Files
ccdi/doc/纪检初核系统-离线演示包/mb-proto2/3.h4vam-vendor-5567a1235ac230e00561.js
2026-01-27 17:09:32 +08:00

32 lines
5.3 MiB
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
try{let Qn=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},qe=new Qn.Error().stack;qe&&(Qn._sentryDebugIds=Qn._sentryDebugIds||{},Qn._sentryDebugIds[qe]="7ce7cb67-2291-4822-b323-9b7565c6fe13",Qn._sentryDebugIdIdentifier="sentry-dbid-7ce7cb67-2291-4822-b323-9b7565c6fe13")}catch(Qn){}{let Qn=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};Qn.SENTRY_RELEASE={id:"22.14.4"}}(self.webpackChunk_mb2024_mb_proto=self.webpackChunk_mb2024_mb_proto||[]).push([[347],{509:(Qn,qe,s)=>{"use strict";s.d(qe,{A:()=>ne});var r=s(95549),I=s(38502),J=s(18381),N=s(75504),T=s(46998),te=s(72214);class q extends I.PureComponent{constructor(){super(...arguments),(0,r.A)(this,"handleCloseModal",l=>{if(typeof l=="string"){this.props.dispatch({type:"previewModal:reset:popup:state",payload:{modalName:l}});return}this.props.dispatch({type:"previewModal:reset:state"})})}render(){const{preOpenHyperlinkModal:l,imagePreviewModal:U}=this.props;return(0,te.jsxs)(te.Fragment,{children:[l.isOpen&&(0,te.jsx)(N.A,{...l,onClose:this.handleCloseModal}),U.isOpen&&(0,te.jsx)(T.A,{...U,onClose:()=>{this.handleCloseModal("imagePreviewModal")}})]})}}const ne=(0,J.Ng)(B=>({...B.container.modals}))(q)},601:(Qn,qe,s)=>{"use strict";s.d(qe,{A:()=>ot});var r=s(18381),I=s(12211),J=s(16454),N=s(96986),T=s(38502),te=s(89960),q=s(72214);const ne=we=>((0,T.useEffect)(()=>{const{dispatch:$e}=we;return $e({type:"entry:preview:toggle:isHiddenToolBar",payload:{value:!1}}),()=>{$e({type:"entry:preview:toggle:isHiddenToolBar",payload:{value:!0,isSetTimeout:!0}})}},[]),(0,q.jsx)(te.L,{...we,commentPanelWidth:we.rightPaneWidth})),B=(0,I.Mz)([N.VT,N.Cb,N.c1,N.M5,J.bF,J.O4],(we,$e,ge,Ze,W,an)=>{let{isHTMLZip:_t}=W;return{commentList:we,activeCommentCid:$e,selected:ge,isShowCompletedComment:Ze,viewType:new URLSearchParams(location.search).get("view_mode"),isHtmlZipPreview:_t,theme:an}}),l=(0,r.Ng)(we=>B(we))(ne);var U=s(67787);const C=U.Ay.div.withConfig({displayName:"styles__StyledRightPane",componentId:"sc-14zoiba-0"})(["position:relative;display:flex;flex-direction:column;height:calc(100% - 48px);top:48px;border-left:1px solid ",";z-index:100;.border-resizer.left{left:-1px;&:hover{background-color:rgba(22,132,252,.6);}&.active{background-color:rgba(22,132,252,.6);}}.preview-panel-wrapper{position:absolute;top:0;left:0;height:100%;width:100%;}&:hover{.toggle-minimized-button{&:not(.is-minimized){opacity:1;pointer-events:auto;}}}"],we=>we.theme.color_bg_border_01);var M=s(5352),w=s(89208),y=s(53940),j=s(44599),Q=s(47892);const ze=null,me=()=>{},Se=(0,I.Mz)([J.x,J.PL,J.bF,J.Ur,J.HW,J.wA],(we,$e,ge,Ze,W,an)=>{let{isHTMLZip:_t}=ge;return{newSelection:[],isST:!0,currentScreen:Ze,isWidgetBeingExported:we,isHtmlZipPreview:_t,currentProject:$e,currentUser:W,currentOrg:an}}),Me=(we,$e)=>({updateExportSettings:me,exportItem:ge=>we({type:"entry:export:item",payload:{exportConfigList:ge,itemToExportKeyList:$e.itemToExportKeyList}})}),De=(0,r.Ng)(we=>Se(we),Me)(Q.A);var tt=s(73658),at=s(33394),ht=s(52490),Je=s(53707);const $=()=>{},mt=we=>{var $e,ge;let{rightPaneWidth:Ze,maxRightPaneWidth:W}=we;const{activeCanvasKey:an,overlayStack:_t}=(0,r.d4)(J.mf),{isHTMLZip:nn}=(0,r.d4)(J.bF),Oe=(0,r.d4)(J.PL),sn="recommend",It=_t.length>0?(0,tt.Je)(_t[_t.length-1].targetOverlayKey,sdkStore):(0,tt.Je)(an,sdkStore),Pt=(0,r.wA)(),[dt,Vn]=(0,T.useState)(""),[o,Gn]=(0,T.useState)(!1),[xt,Ot]=(0,T.useState)(new Set),[wt,Kt]=(0,T.useState)(new Set),fe=!It.every(Nt=>{let{key:jt}=Nt;return wt.has(jt)}),bt=new Set([...Array.from(xt),...Array.from(wt)]),un=It.every(Nt=>{let{key:jt}=Nt;return bt.has(jt)}),gt=Nt=>{Pt({type:"preview:set:rightPaneWidth",payload:{rightPaneWidth:Nt,projectCid:Oe.cid}})},Wt=Nt=>{Vn(Nt)},Un=()=>Vn(""),Jn=Nt=>{const jt=new Set(xt);jt.has(Nt)?jt.delete(Nt):jt.add(Nt),Ot(jt)},Yt=Nt=>{const jt=new Set(wt);jt.add(Nt),Kt(jt)},rt=Nt=>{const jt=new Set(wt);wt.delete(Nt),Kt(jt)},An=()=>{Ot(un?new Set:new Set(It.map(Nt=>{let{key:jt}=Nt;return jt})))};return(0,q.jsxs)(yt,{style:{width:Ze},children:[(0,q.jsx)(M.A,{placement:"left",className:"v-resizer",value:Ze,min:y.xM,max:W,onChange:gt}),(0,q.jsxs)(at.b,{children:[(0,q.jsx)(at.u,{activeIndex:0,onTabChange:$,layoutV9:sn,children:(0,q.jsx)(w.n,{label:I18N.Note.note,active:!0})}),fe&&(0,q.jsx)("span",{className:"expandAll",onClick:An,children:un?I18N.ScreenList.collapse_screens:I18N.ScreenList.expand_screens})]}),It.length===0?(0,q.jsx)(j.h,{}):(0,q.jsx)(Je.TV,{onClick:Un,children:(0,q.jsx)("div",{className:"st-list",children:It.map((Nt,jt)=>(0,q.jsx)(ht.i,{isActive:dt===Nt.key,st:Nt,isHtmlZipPreview:nn,setIsExportOpenFromContainer:Gn,onMouseDown:$,editable:!1,selectST:Wt,deleteST:$,isExpanded:xt.has(Nt.key),isAlreadyExpanded:wt.has(Nt.key),STPanelWidth:Ze,toggleExpandKeySet:Jn,pushToAlreadyExpandKeySet:Yt,deleteFromAlreadyExpandKeySet:rt},jt))})}),!nn&&(0,q.jsx)(De,{selectedWidgetCount:dt?1:It.length,itemToExportKeyList:dt?[dt]:It.map(Nt=>{let{key:jt}=Nt;return jt}),exportWidgetTreeCids:dt||It.map(Nt=>{let{key:jt}=Nt;return jt}).join("-"),isLogin:!!(!(($e=MB)==null||($e=$e.user)==null)&&$e.id),widgetDisplayName:dt?""+I18N.Note.note+(((ge=It.find(Nt=>{let{key:jt}=Nt;return jt===dt}))==null||(ge=ge.hotAttr)==null?void 0:ge.order)||""):I18N.Note.selected_notes,isExportOpenFromContainer:o,setIsExportOpenFromContainer:Gn})]})},yt=U.Ay.div.withConfig({displayName:"STPanel__StyledSTPanelWrapper",componentId:"sc-rki154-0"})(["display:flex;flex-direction:column;height:100%;"]);var Le=s(23200);const He=(0,Le.$)(mt),ye=we=>{let{isCommentPanelShow:$e,isFullScreenMode:ge}=we;const Ze=(0,r.d4)(J.E1),W=(0,r.d4)(J.zo),an=window.innerWidth-y.K_-Ze,_t=(0,r.d4)(J.UB),{isHTMLZip:nn}=(0,r.d4)(J.bF),Oe=(0,r.wA)(),sn=(0,r.d4)(J.U4),It=()=>Oe({type:"entry:preview-setting:toggle:rightPane"}),Pt=nn||_t&&(typeof _t.view_sticky=="string"?_t.view_sticky==="view_sticky":_t.view_sticky);return(0,q.jsx)(C,{id:"mb-preview-rightpane",className:ge?"is-fullscreen-mode":"",children:$e?(0,q.jsx)(l,{rightPaneWidth:W}):Pt&&(0,q.jsx)(He,{isVisible:sn,orientation:"right",toggleFunc:It,rightPaneWidth:W,maxRightPaneWidth:an})})},je=(0,I.Mz)([N.sI,J.Ph,J.ZR],(we,$e,ge)=>{let{isShowRightPane:Ze}=ge;return{isCommentPanelShow:we&&MB.user.id,isFullScreenMode:$e,isShowRightPane:Ze}}),ot=(0,r.Ng)(we=>je(we))(ye)},1061:(Qn,qe,s)=>{"use strict";s.d(qe,{Pq:()=>ne});const r=null,I=null,J=null,N=null,T=null,te=null,q=null,ne=(B,l)=>!!(B&l)},1072:(Qn,qe,s)=>{"use strict";s.d(qe,{A:()=>ze,r:()=>Q});var r=s(95549),I=s(38502),J=s(39e3),N=s(10393),T=s(11619),te=s(20089),q=s(11246),ne=s(79869),B=s(72214);class l extends I.PureComponent{constructor(){super(...arguments),(0,r.A)(this,"handleClick",Me=>{Me.stopPropagation(),Me.preventDefault();const{dispatch:De,tearHi:tt}=this.props;De({type:"ST:update",payload:{activeTearPreview:tt}})})}render(){const{scale:Me,tearHi:De,pageKey:tt,activeKey:at,scrollTop:ht,scrollLeft:Je,STBasketMap:$,basketScrollTopMap:mt,basketScrollLeftMap:yt}=this.props,{key:Le,hotAttr:He}=De,ye=100/Me;let je,ot="visible";He.isInBasket?((0,T.xC)(He,tt,ht,Je,at,$,mt,yt)||(ot="hidden"),je=(0,T.HN)(He,$,mt,yt)):Q(He.refWCKey)?((0,T.D)(He,tt,at)||(ot="hidden"),je=(0,T.$S)(He,tt,at)):((0,T.Zb)(He,tt,ht,Je,at)||(ot="hidden"),je=(0,T.n2)(He,tt));const we={left:je.left,top:je.top,transform:"scale("+ye+")",opacity:He.isVisible?He.opacity:0,position:je.position,visibility:ot};if(He.refWCKey){const $e=(0,ne.R)(He.refWCKey,He.basketKey);$e&&(we.opacity=$e.visible?1:0,$e.duration&&(we.transition="opacity "+$e.duration+"ms"))}return(0,B.jsx)("div",{"data-cid":Le,"data-basket-key":He.basketKey,"data-basketcanvas-key":He.basketCanvasKey,id:"widget"+Le+"p",style:we,onClick:this.handleClick,children:(0,B.jsx)(q._,{widget:De,canHover:!0})},Le)}}var U=s(24281),C=s(63986),M=s.n(C),w=s(34602),y=s(67787);const j=y.Ay.div.withConfig({displayName:"styled__StyledStickyContainer",componentId:"sc-14e01np-0"})(["{overflow:visible;position:absolute;top:0;left:0;height:0;z-index:200;& > div{overflow:visible;position:relative;top:0;left:0;height:0;}.sticky{user-select:text;.arrow{pointer-events:none;}&:hover{.sideline,.arrow{opacity:0.7;}}}}"]);function Q(Se){const{fixedOnTop:Me,fixedOnBottom:De}=(0,U.dI)(Se);return Me||De}class ze extends I.PureComponent{constructor(){super(...arguments),(0,r.A)(this,"state",{stickyList:[],fixedStickyList:[],tearList:[],fixedTearList:[],animatingPageOffset:null}),(0,r.A)(this,"removeRanges",()=>{window.getSelection().removeAllRanges()}),(0,r.A)(this,"handleClickOutside",Me=>{if(typeof Me.clientX!="number"||typeof Me.clientY!="number")return;const De=document.elementFromPoint(Me.clientX,Me.clientY);if((De&&De.closest(".STSticky"))!==null)return;const{dispatch:at}=this.props;at({type:"ST:update",payload:{activeTearPreview:null}})}),(0,r.A)(this,"getSTList",()=>{const{stList:Me,basketSTList:De,STBasketMap:tt,offset:at,scale:ht,dispatch:Je}=this.props,$=[],mt=[],yt=[],Le=[];Me.forEach(je=>{je.hotAttr.type===te.x.WSticky?Q(je.hotAttr.refWCKey)?mt.push(je):$.push(je):je.hotAttr.type===te.x.WTear&&(Q(je.hotAttr.refWCKey)?Le.push(je):yt.push(je))}),De.forEach(je=>{je.hotAttr={...je.hotAttr,cid:je.key,isInBasket:!0,basketKey:je.basketKey,basketCanvasKey:je.basketCanvasKey},je.hotAttr.type===te.x.WSticky?$.push(je):je.hotAttr.type===te.x.WTear&&yt.push(je)}),this.setState({stickyList:$,fixedStickyList:mt,tearList:yt,fixedTearList:Le});const He=(0,T.vb)(Me.concat(De),tt),ye=[He[0]+Math.abs(at.x*100/ht),He[1]+Math.abs(at.y*100/ht)];Je({type:"preview:set:STRenderArea",payload:{STRenderArea:ye}})}),(0,r.A)(this,"componentDidMount",()=>{this.getSTList(),this.observeAppPageAnimating()}),(0,r.A)(this,"observeAppPageAnimating",()=>{const Me=document.getElementById("app");if(Me){const De=at=>{for(const ht of at){const{attributeName:Je,target:$}=ht;if(!$)return;if(Je==="style"&&$.id==="pscreen"+this.props.pageKey){const mt=(0,w.q)($);this.setState({animatingPageOffset:mt})}}},tt=new MutationObserver(De);tt.observe(Me,{subtree:!0,attributes:!0,attributeFilter:["style"]}),this._observer=tt}}),(0,r.A)(this,"clearObserver",()=>{this._observer&&this._observer.disconnect(),this._observer=null}),(0,r.A)(this,"componentDidUpdate",Me=>{(Me.tearStickyCacheTag!==this.props.tearStickyCacheTag||Me.pageKey!==this.props.pageKey||!M()(Me.basketSTList,this.props.basketSTList)||!M()(Me.stList,this.props.stList))&&this.getSTList()})}componentWillUnmount(){this.clearObserver()}render(){let{scrollTop:Me,scale:De,dispatch:tt,pageKey:at,activeKey:ht,scrollLeft:Je,STBasketMap:$,basketScrollTopMap:mt,basketScrollLeftMap:yt}=this.props;const{stickyList:Le,tearList:He,fixedStickyList:ye,fixedTearList:je,animatingPageOffset:ot}=this.state;return ot&&(Me+=ot.translateY,Je+=ot.translateX),(0,B.jsxs)(j,{id:"sticky-container",children:[(0,B.jsxs)("div",{style:{marginTop:Me||0,marginLeft:Je},children:[Le.map((we,$e)=>(0,B.jsx)(me,{sticky:we,scrollTop:Me,scrollLeft:Je,pageKey:at,activeKey:ht,STBasketMap:$,basketScrollTopMap:mt,basketScrollLeftMap:yt},$e)),He.map((we,$e)=>(0,B.jsx)(l,{tearHi:we,scale:De,dispatch:tt,pageKey:at,activeKey:ht,scrollTop:Me,scrollLeft:Je,STBasketMap:$,basketScrollTopMap:mt,basketScrollLeftMap:yt},$e))]}),(0,B.jsxs)("div",{children:[ye.map(we=>(0,B.jsx)(me,{sticky:we,scrollTop:0,scrollLeft:0,pageKey:at,activeKey:ht},we.key)),je.map((we,$e)=>(0,B.jsx)(l,{tearHi:we,scale:De,dispatch:tt,pageKey:at,activeKey:ht,scrollTop:0,scrollLeft:0},$e))]}),(0,B.jsx)(J.A,{target:document,onClick:(0,J.t)(this.handleClickOutside,{capture:!0})}),(0,B.jsx)(J.A,{target:document,onMouseDown:(0,J.t)(this.removeRanges,{capture:!0})})]})}}const me=Se=>{const{sticky:Me,pageKey:De,scrollTop:tt,activeKey:at,scrollLeft:ht,STBasketMap:Je,basketScrollTopMap:$,basketScrollLeftMap:mt}=Se,{key:yt,hotAttr:Le}=Me,{type:He,refWCKey:ye,isInBasket:je,isVisible:ot,basketKey:we,basketCanvasKey:$e,zIndex:ge}=Le,Ze="widget "+He;let W,an="visible",_t=[...sdkStore.getHotAABB(yt)];je?((0,T.xC)(Le,De,tt,ht,at,Je,$,mt)||(an="hidden"),_t=[...(0,T.ec)(yt,Le,Je)],W=(0,T.HN)(Le,Je,$,mt)):Q(ye)?((0,T.tv)(Le,De,at)||(an="hidden"),W=(0,T.$S)(Le,De,at)):((0,T.J3)(Le,De,tt,ht,at)||(an="hidden"),W=(0,T.n2)(Le,De));const nn={...W,zIndex:ge,opacity:Number(ot),visibility:an};if(ye){const Oe=(0,ne.R)(ye,we);Oe&&(nn.opacity=Oe.visible?1:0,Oe.duration&&(nn.transition="opacity "+Oe.duration+"ms"))}return nn.pointerEvents=nn.opacity?"auto":"none",(0,B.jsx)("div",{"data-cid":yt,"data-basket-key":we,"data-basketcanvas-key":$e,id:"widget"+yt+"p",className:Ze,style:nn,children:(0,B.jsx)(N.l,{widget:Me,aabb:_t,isPreview:!0,sdk:sdkStore,type:"preview"})},yt)}},1268:Qn=>{Qn.exports=function(){var qe=document.getSelection();if(!qe.rangeCount)return function(){};for(var s=document.activeElement,r=[],I=0;I<qe.rangeCount;I++)r.push(qe.getRangeAt(I));switch(s.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":s.blur();break;default:s=null;break}return qe.removeAllRanges(),function(){qe.type==="Caret"&&qe.removeAllRanges(),qe.rangeCount||r.forEach(function(J){qe.addRange(J)}),s&&s.focus()}}},1404:(Qn,qe,s)=>{"use strict";s.d(qe,{n:()=>N});var r=s(67787),I=s(24492),J=s(69594);const N=r.Ay.div.withConfig({displayName:"styles__StyledApp",componentId:"sc-1mzbbw4-0"})(["",";position:relative;overflow:hidden;display:flex;flex-direction:column;height:100%;color:",";font-size:12px;z-index:1;background-color:",";ol,ul{list-style:none;}.main-content{position:relative;flex:1;display:flex;justify-content:space-between;overflow:hidden;.mb-viewport{flex:1;display:flex;flex-direction:column;min-width:400px;}}.fixed_area{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;> *{pointer-events:auto;}}a{&.link-highlight,.link-highlight{background:#BAD7FB;}}&.isDeleteRulerLine{cursor:",";}"],I.c,T=>T.theme.color_text_L2,T=>T.theme.color_btn_secondary_active,J.M.rulerDelete)},3149:(Qn,qe,s)=>{"use strict";s.d(qe,{r:()=>I,t:()=>r});const r={keys:{"ctrl+enter":{type:"entry:enter:full-screen-mode"},"command+enter":{type:"entry:enter:full-screen-mode"},"ctrl+numpad_add":{type:"entry:preview:zoom-in"},"command+numpad_add":{type:"entry:preview:zoom-in"},"ctrl+=":{type:"entry:preview:zoom-in"},"command+=":{type:"entry:preview:zoom-in"},"ctrl+numpad_subtract":{type:"entry:preview:zoom-out"},"command+numpad_subtract":{type:"entry:preview:zoom-out"},"ctrl+-":{type:"entry:preview:zoom-out"},"command+-":{type:"entry:preview:zoom-out"},"ctrl+numpad_0":{type:"entry:preview:set:scale",payload:{scale:100}},"command+numpad_0":{type:"entry:preview:set:scale",payload:{scale:100}},"ctrl+0":{type:"entry:preview:set:scale",payload:{scale:100}},"command+0":{type:"entry:preview:set:scale",payload:{scale:100}},"ctrl+numpad_1":[{type:"preview:update:state",payload:{hasChangedScaleManually:!1}},{type:"entry:auto-fit:preview:scale"},{type:"preview:set:canvas:offset:dev",payload:{offset:{x:0,y:0}}}],"command+numpad_1":[{type:"preview:update:state",payload:{hasChangedScaleManually:!1}},{type:"entry:auto-fit:preview:scale"},{type:"preview:set:canvas:offset:dev",payload:{offset:{x:0,y:0}}}],"ctrl+1":[{type:"preview:update:state",payload:{hasChangedScaleManually:!1}},{type:"entry:auto-fit:preview:scale"},{type:"preview:set:canvas:offset:dev",payload:{offset:{x:0,y:0}}}],"command+1":[{type:"preview:update:state",payload:{hasChangedScaleManually:!1}},{type:"entry:auto-fit:preview:scale"},{type:"preview:set:canvas:offset:dev",payload:{offset:{x:0,y:0}}}],c:{type:"entry:comment:toggle"},left:{type:"entry:preview:switch:page",payload:{isPrev:!0}},right:{type:"entry:preview:switch:page"},"command+[":{type:"entry:preview-setting:toggle:isMinimized"},"ctrl+[":{type:"entry:preview-setting:toggle:isMinimized"},"command+]":{type:"entry:preview-setting:toggle:rightPane"},"ctrl+]":{type:"entry:preview-setting:toggle:rightPane"},"command+alt+a":{type:"entry:ST:STMode:toggle"},"ctrl+alt+a":{type:"entry:ST:STMode:toggle"}}},I={keys:{"ctrl+enter":{type:"entry:enter:full-screen-mode"},"command+enter":{type:"entry:enter:full-screen-mode"},"ctrl+numpad_add":{type:"entry:preview:zoom-in"},"command+numpad_add":{type:"entry:preview:zoom-in"},"ctrl+=":{type:"entry:preview:zoom-in"},"command+=":{type:"entry:preview:zoom-in"},"ctrl+numpad_subtract":{type:"entry:preview:zoom-out"},"command+numpad_subtract":{type:"entry:preview:zoom-out"},"ctrl+-":{type:"entry:preview:zoom-out"},"command+-":{type:"entry:preview:zoom-out"},"ctrl+numpad_0":{type:"entry:preview:set:scale",payload:{scale:100}},"command+numpad_0":{type:"entry:preview:set:scale",payload:{scale:100}},"ctrl+0":{type:"entry:preview:set:scale",payload:{scale:100}},"command+0":{type:"entry:preview:set:scale",payload:{scale:100}},"ctrl+numpad_1":[{type:"preview:update:state",payload:{hasChangedScaleManually:!1}},{type:"entry:auto-fit:preview:scale"},{type:"preview:set:canvas:offset:dev",payload:{offset:{x:0,y:0}}}],"command+numpad_1":[{type:"preview:update:state",payload:{hasChangedScaleManually:!1}},{type:"entry:auto-fit:preview:scale"},{type:"preview:set:canvas:offset:dev",payload:{offset:{x:0,y:0}}}],"ctrl+1":[{type:"preview:update:state",payload:{hasChangedScaleManually:!1}},{type:"entry:auto-fit:preview:scale"},{type:"preview:set:canvas:offset:dev",payload:{offset:{x:0,y:0}}}],"command+1":[{type:"preview:update:state",payload:{hasChangedScaleManually:!1}},{type:"entry:auto-fit:preview:scale"},{type:"preview:set:canvas:offset:dev",payload:{offset:{x:0,y:0}}}],c:{type:"entry:comment:toggle"},left:{type:"entry:preview:switch:page",payload:{isPrev:!0}},right:{type:"entry:preview:switch:page"}}}},3876:(Qn,qe,s)=>{"use strict";s.d(qe,{E:()=>y});var r=s(38502),I=s(18381),J=s(12211),N=s(70248),T=s(70933),te=s(60651),q=s(7457),ne=s(4235),B=s(67787);const l=B.Ay.div.withConfig({displayName:"styles__StyledInteractiveTargetHotspotContainer",componentId:"sc-1nlyllx-0"})(["position:absolute;z-index:3;"]),U=B.Ay.div.withConfig({displayName:"styles__StyledInteractiveTargetHotspot",componentId:"sc-1nlyllx-1"})(["position:absolute;pointer-events:auto;z-index:",";transform:",";width:","px;height:","px;"],me=>me.zIndex,me=>"translate("+(me.x-me.w*.5)*me.scale+"px,"+(me.y-me.h*.5)*me.scale+"px) rotate("+me.r+"deg)",me=>me.w*me.scale,me=>me.h*me.scale);var C=s(20089),M=s(98915),w=s(72214),y=function(me){return me[me.canvas=1]="canvas",me[me.canvasList=2]="canvasList",me[me.widget=3]="widget",me[me.group=4]="group",me[me.panel=5]="panel",me[me.page=6]="page",me[me.canvasStateList=7]="canvasStateList",me[me.overlay=8]="overlay",me}(y||{});const j=(0,J.Mz)([q.nF,ne.p$,te.IL,T.X_,te.jI],(me,Se,Me,De,tt)=>{const at=Se[0];return{isDragLink:me,editingBDanliKey:tt,interactiveTriggerKey:at,interactiveTargetKey:Me,scale:De}}),Q=me=>{let{editingBDanliKey:Se,targetKey:Me,scale:De}=me;const tt=sdkStore.getHotItem(Me);if(!tt)return null;const{hotAttr:{zIndex:at}}=tt,ht=Widget.USE_CLIP_TEXT.includes(tt.hotAttr.type)?calcRichTextedHotBound(Me):tt.hotAttr.type==="wWrap"?calcRichTextedWrapHotBound(Me):sdkStore.getHotBound(Me);let Je,$=Se?connShadowKeyRefSeqs([Se,Me]):Me;switch(tt.hotAttr.type){case"rResCanvas":{Je=tt.hotAttr.asOverlay?y.overlay:y.canvas,$=Me;break}case"wWrap":{Je=y.group;break}case"wBasket":{Je=y.panel;break}default:Je=y.widget}const mt=useMemo(()=>{var yt,Le;const He=sdkStore.locUpMainCanvasKey(Me);if(!He)return at;const ye=((yt=sdkStore.getHotItem(He))==null?void 0:yt.hotAttr)||{};return tt.hotAttr.type==="rResCanvas"?at:((Le=ye.zIndex)!=null?Le:0)+at},[Me]);return _jsx(StyledInteractiveTargetHotspot,{className:"interactive-target-hotspot","data-interactive-target-key":$,"data-interactive-target-type":Je,scale:De/100,zIndex:mt,...ht},tt.key)},ze=()=>{const{editingBDanliKey:me,interactiveTriggerKey:Se,interactiveTargetKey:Me,isDragLink:De,scale:tt}=useSelector(j);return De?_jsxs(StyledInteractiveTargetHotspotContainer,{children:[Me&&_jsx(Q,{targetKey:Me,editingBDanliKey:me,scale:tt}),Se&&_jsx(Q,{targetKey:Se,editingBDanliKey:me,scale:tt})]}):null}},4239:(Qn,qe,s)=>{"use strict";s.d(qe,{t5:()=>no,$j:()=>Kr,S1:()=>B0,vp:()=>Li,ac:()=>gf,q:()=>Ch,zE:()=>Uh,Mc:()=>Wl,HN:()=>V1,rK:()=>en,kX:()=>O1,MH:()=>Os,qR:()=>wd,bK:()=>ko,wy:()=>bp,GM:()=>bl});var r=s(38502),I=s(18381),J=s(50001),N=s(28537),T=s(13642),te=s(37320),q=s(67588),ne=s(30728),B=s(93e3),l=s(70933),U=s(60651),C=s(20089),M=s(79770),w=s(53940),y=s(78915),j=s(77709),Q=s(25997),ze=s(67052),me=s(53102),Se=s(95549);class Me{constructor(){(0,Se.A)(this,"_scale",1)}static getInstance(){return Me.instance||(Me.instance=new Me),Me.instance}get scale(){return this._scale}set scale(D){this._scale=D}}const De=Me.getInstance(),tt=K=>{const{ratio:D,viewportRect:z,canvasRect:X}=K,ie=(z.left+me.MV-X.canvasLeft)/D,ue=(z.top+me.MV-X.canvasTop)/D,oe=(z.right-X.canvasLeft)/D,be=(z.bottom-X.canvasTop)/D;return{startX:ie,startY:ue,endX:oe,endY:be}},at=K=>{let{canvas:D,type:z,value:X}=K;const{x:ie=0,y:ue=0,w:oe=0,h:be=0}=(D==null?void 0:D.hotAttr)||{},Ae=ue-be*.5,Ne=ie-oe*.5;return X+(D?z==="horizontal"?Ae:Ne:0)},ht=K=>{let{fromCanvas:D,curCanvas:z,type:X,value:ie,realValue:ue}=K;if(!z)return ue;const{x:oe,y:be,w:Ae,h:Ne}=(z==null?void 0:z.hotAttr)||{},Be=be-Ne*.5,Ge=oe-Ae*.5;if(!D)return X==="horizontal"?ie-Be:ie-Ge;if(D.key===z.key)return ie;const{x:it,y:At,w:zt,h:qt}=(D==null?void 0:D.hotAttr)||{},_n=At-qt*.5,$n=it-zt*.5;return X==="horizontal"?ie+_n-Be:ie+$n-Ge};var Je=s(62532);const $=(K,D)=>{let{scale:z,offset:X,viewportRect:ie}=D;const ue=ne.Z.xy(K.clientX-window.innerWidth/2,K.clientY-ie.top-ie.height/2);return B.L.applyInverse({offset:X,scale:z/100},ue)},mt=()=>{const K=(0,I.d4)(l.X_),D=(0,I.d4)(l.Pz),z=me.MF[(0,I.d4)(q.O4)],X=(0,I.d4)(l.ER),ie=(0,I.d4)(l.eo),ue=(0,I.d4)(j.wT),oe=(0,I.d4)(l.$S),be=(0,I.d4)(ze.uE),Ae=(0,I.d4)(ze.Xf),Ne=(0,I.d4)(U.T7),Be=(0,I.d4)(q.bP),it=(0,I.d4)(U.jx)===y.qi.OnlyView,At=Ne||Be==="old_right"||it?0:w.fn,zt=(0,I.d4)(q.gf)&&!it,qt={width:oe==null?void 0:oe.width,height:oe==null?void 0:oe.height,left:Ae?be+At:At,transform:"matrix(1, 0, 0, 1, "+(Math.round(-X.x)-Math.round(window.innerWidth/2))+", "+(Math.round(-X.y)-Math.round((window.innerHeight-ue)/2))+")"};return{scale:K,theme:z,canvasRect:D,viewportRect:oe,containerStyle:qt,currentScreenCid:ie,curToolBarHeight:ue,isShowReferLine:zt}},yt=()=>{const D=(0,I.d4)(U.jx)===y.qi.OnlyView;return(0,I.d4)(q.gf)&&!D},Le=()=>{const K=(0,I.d4)(l.$S),D=(0,I.d4)(q.qT),z=(0,I.d4)(U.pH),X=(0,I.d4)(U.rg),ie=(0,I.d4)(U.uu);return K&&D&&!z&&!X&&!ie},He=()=>{var K,D;const z=(0,I.d4)(l.eo),X=(0,I.d4)(Q.UV),ie=z?X.getHotItem(z):null;return{alignH:(ie==null||(K=ie.hotAttr)==null?void 0:K.alignH)||[],alignV:(ie==null||(D=ie.hotAttr)==null?void 0:D.alignV)||[]}},ye=()=>{const K=(0,I.d4)(l.eo),D=(0,I.d4)(Q.RX),z=(0,I.d4)(Q.UV);return(0,r.useMemo)(()=>{const ie={};return z.getSubHotItemList(K).forEach(ue=>{var oe,be;const{key:Ae,hotAttr:Ne}=ue;Ne.type===C.x.Canvas&&(((oe=Ne.alignH)==null?void 0:oe.length)>0||((be=Ne.alignV)==null?void 0:be.length)>0)&&(ie[Ae]=ue)}),ie},[K,D,z])},je=()=>{const K=(0,I.d4)(l.eo),D=(0,I.d4)(l.X_),z=(0,I.d4)(l.$S),X=(0,I.d4)(l.ER);return(0,r.useCallback)(ie=>{const ue=$(ie,{scale:D,offset:X,viewportRect:z}),oe=(0,M.Tg)(ue,K);return oe?sdkStore.getHotItem(oe):null},[K,D,z,X])},ot=K=>je()(K),we=()=>{const D=(0,I.d4)(U.jx)===y.qi.OnlyView,z=(0,I.d4)(q.gf)&&!D,X=(0,I.d4)(q.Nn);return{showRuler:(0,I.d4)(q.qT),isShowReferLine:z,isShowAlignLine:X}},$e=K=>{let{canvas:D,type:z,value:X}=K;const ie=(0,I.d4)(l.X_)/100,{startY:ue,startX:oe}=(0,I.d4)(Je.$U)||{};return(0,N.qK)(()=>{const be=z==="horizontal",Ae=be?ue:oe,Be=(at({canvas:D,type:z,value:X})-Ae)*ie+me.MV;return be?"translateY("+Be+"px)":"translateX("+Be+"px)"})},ge=()=>{const K=(0,I.d4)(l.X_)/100,D=(0,I.d4)(l.$S),{startY:z,startX:X}=(0,I.d4)(Je.$U)||{};return(0,N.qK)(ie=>{let{type:ue,canvas:oe}=ie;const be=ue==="horizontal",{x:Ae=0,y:Ne=0,w:Be=0,h:Ge=0}=(oe==null?void 0:oe.hotAttr)||{},it=Ne-Ge*.5,At=Ae-Be*.5,zt=be?D==null?void 0:D.width:D==null?void 0:D.height,qt=be?Be:Ge,_n=(be?At-X:it-z)*K+me.MV,$n=_n<0?0:_n>zt?zt:_n,Fn=_n<0?Math.max(qt*K+_n,0):_n+qt*K>zt?zt-_n:qt*K,Ao=_n+qt*K>zt?0:zt-_n-qt*K,_o=be?"width":"height";return{left:Math.max($n,0),conter:Math.max(Fn,0),right:Math.max(Ao,0),styleKey:_o}})},Ze=()=>{var K;const D=(K=(0,I.d4)(Je.KF))==null?void 0:K[0];return(0,N.qK)(z=>{let{index:X,canvas:ie,type:ue}=z;if(!D||D.type!==ue)return!1;if(ie){var oe;return(D==null||(oe=D.canvas)==null?void 0:oe.key)===ie.key&&D.index===X}return!D.canvas&&D.index===X})},W=()=>(0,I.d4)(U.jx)===y.qi.OnlyView,an=()=>!(0,I.d4)(l.p$),_t=(K,D)=>{K({type:"entry:update:current-screen:screen-align",payload:{lines:D}})},nn=(K,D,z)=>{K({type:"entry:update:canvas:align",payload:{canvasCid:D.key,lines:z}})},Oe={dispatchOuterLines:_t,dispatchCanvasLines:nn},sn=K=>{let{dispatch:D,curCanvas:z,type:X,value:ie,outerAlignH:ue,outerAlignV:oe}=K;if(z){const{hotAttr:{x:Ne,y:Be,w:Ge,h:it}}=z,At=Be-it*.5,zt=Ne-Ge*.5,qt=X==="horizontal"?ie-At:ie-zt,$n=[...X==="horizontal"?z.hotAttr.alignH:z.hotAttr.alignV,qt],Fn=X==="horizontal"?{h:$n,v:z.hotAttr.alignV}:{h:z.hotAttr.alignH,v:$n};return nn(D,z,Fn),{newIndex:$n.length-1,realValue:qt}}const be=X==="horizontal"?{h:[...ue,ie],v:oe}:{h:ue,v:[...oe,ie]};return _t(D,be),{newIndex:X==="horizontal"?be.h.length-1:be.v.length-1,realValue:ie}},It=K=>{let{formCanvas:D,dispatch:z,index:X,type:ie,outerAlignH:ue,outerAlignV:oe}=K;if(!D){const it=(ie==="horizontal"?ue:oe).filter((zt,qt)=>qt!==X);_t(z,ie==="horizontal"?{h:it,v:oe}:{h:ue,v:it});return}const be={h:D.hotAttr.alignH,v:D.hotAttr.alignV},Ne=(ie==="horizontal"?be.h:be.v).filter((Ge,it)=>it!==X),Be=ie==="horizontal"?{...be,h:Ne}:{...be,v:Ne};nn(z,D,Be)},Pt=K=>{let{dispatch:D,formCanvas:z,index:X,type:ie,value:ue,outerAlignH:oe,outerAlignV:be}=K;if(z){Vn({dispatch:D,formCanvas:z,index:X,type:ie,value:ue});return}dt({dispatch:D,index:X,type:ie,value:ue,outerAlignH:oe,outerAlignV:be})},dt=K=>{let{dispatch:D,index:z,type:X,value:ie,outerAlignH:ue,outerAlignV:oe}=K;const Ae=(X==="horizontal"?ue:oe).map((Be,Ge)=>Ge===z?ie:Be);return _t(D,X==="horizontal"?{h:Ae,v:oe}:{h:ue,v:Ae}),{newIndex:z,newValue:ie}},Vn=K=>{let{dispatch:D,formCanvas:z,index:X,type:ie,value:ue}=K;const oe={h:z.hotAttr.alignH,v:z.hotAttr.alignV},be=ie==="horizontal"?oe.h:oe.v,Ae=X===be.length?[...be,ue]:be.map((Be,Ge)=>Ge===X?ue:Be),Ne=ie==="horizontal"?{...oe,h:Ae}:{...oe,v:Ae};return nn(D,z,Ne),{newIndex:X,newValue:ue}},Ot={addLine:sn,moveLine:Pt,delectLine:It,moveOutsideLine:dt,moveBetweenSameCanvas:Vn,moveInsideToOutside:K=>{let{dispatch:D,formCanvas:z,index:X,type:ie,value:ue,outerAlignH:oe,outerAlignV:be}=K;const Ae={h:z.hotAttr.alignH,v:z.hotAttr.alignV},Be=(ie==="horizontal"?Ae.h:Ae.v).filter((aa,oa)=>oa!==X),Ge=ie==="horizontal"?{...Ae,h:Be}:{...Ae,v:Be};nn(D,z,Ge);const{hotAttr:{x:it,y:At,w:zt,h:qt}}=z,_n=At-qt*.5,$n=it-zt*.5,Fn=ie==="horizontal"?ue+_n:ue+$n,_o=[...ie==="horizontal"?oe:be,Fn];return _t(D,ie==="horizontal"?{h:_o,v:be}:{h:oe,v:_o}),{newIndex:_o.length-1,newValue:Fn}},moveOutsideToInside:K=>{let{dispatch:D,curCanvas:z,index:X,type:ie,value:ue,outerAlignH:oe,outerAlignV:be}=K;const Ne=(ie==="horizontal"?oe:be).filter((aa,oa)=>oa!==X);_t(D,ie==="horizontal"?{h:Ne,v:be}:{h:oe,v:Ne});const{hotAttr:{x:Ge,y:it,w:At,h:zt}}=z,qt=it-zt*.5,_n=Ge-At*.5,$n=ie==="horizontal"?ue-qt:ue-_n,Ao=[...ie==="horizontal"?z.hotAttr.alignH:z.hotAttr.alignV,$n],_o=ie==="horizontal"?{h:Ao,v:z.hotAttr.alignV}:{h:z.hotAttr.alignH,v:Ao},zo=Ao.length-1;return nn(D,z,_o),{newIndex:zo,newValue:$n}},moveBetweenDifferentCanvas:K=>{let{dispatch:D,formCanvas:z,curCanvas:X,index:ie,type:ue,value:oe}=K;const be={h:z.hotAttr.alignH,v:z.hotAttr.alignV},Ne=(ue==="horizontal"?be.h:be.v).filter((Pr,Aa)=>Aa!==ie),Be=ue==="horizontal"?{...be,h:Ne}:{...be,v:Ne};nn(D,z,Be);const{hotAttr:{x:Ge,y:it,w:At,h:zt}}=X,qt=it-zt*.5,_n=Ge-At*.5,{hotAttr:{x:$n,y:Fn,w:Ao,h:_o}}=z,zo=Fn-_o*.5,aa=$n-Ao*.5,oa=ue==="horizontal"?oe+zo-qt:oe+aa-_n,Ea=[...ue==="horizontal"?X.hotAttr.alignH:X.hotAttr.alignV,oa],er=ue==="horizontal"?{h:Ea,v:X.hotAttr.alignV}:{h:X.hotAttr.alignH,v:Ea};return nn(D,X,er),{newIndex:Ea.length-1,newValue:oa}}};var wt=s(53732),Kt=s.n(wt),fe=s(72214);const un=(0,r.memo)(K=>{let{type:D,value:z,canvas:X,index:ie,isActive:ue,onClick:oe,onMousemove:be,onMouseup:Ae,onHover:Ne}=K;const Be=an(),[Ge,it]=(0,r.useState)(z),[At,zt]=(0,r.useState)(!1),qt=ge(),_n=$e({canvas:X,type:D,value:Ge}),$n=(0,I.d4)(Je.Q),{left:Fn,conter:Ao,styleKey:_o}=qt({type:D,canvas:X}),zo=D==="horizontal"?"marginLeft":"marginTop",aa=Kt()("ruler-line real",D,{event:!X&&Be,line:!X,"in-canvas":!!X,hide:ue,dragging:At,"is-delete-ruler-line":$n}),oa=Kt()("line-center line",{event:Be});(0,r.useEffect)(()=>{it(z)},[z]);const ma=(0,N.qK)(er=>{Be&&Ne&&!At&&Ne({type:D,index:ie,open:er,value:z,canvas:X})}),Ea=(0,N.qK)(er=>{if(!Be)return;let Pr=!0,Aa=0,fr=0;const Jr=z;let qa=z;Aa=er.clientX,fr=er.clientY;const Ka=Ua=>{if(!Pr)return;const _r=De.scale/100,ni=Ua.clientX-Aa,zr=Ua.clientY-fr,Ur=D==="horizontal"?zr:ni;Ur!==0&&(qa=Math.round(Jr+Ur/_r),zt(!0),it(qa),be==null||be({type:D,value:qa,index:ie,event:Ua,canvas:X}))},rr=Ua=>{Pr=!1,zt(!1),Aa===Ua.clientX&&fr===Ua.clientY?oe==null||oe({type:D,value:qa,index:ie,event:Ua,canvas:X}):Ae==null||Ae({type:D,value:qa,index:ie,event:Ua,canvas:X,callback:_r=>{it(_r)}}),window.removeEventListener("mousemove",Ka),window.removeEventListener("mouseup",rr)};window.addEventListener("mousemove",Ka),window.addEventListener("mouseup",rr)});return X?(0,fe.jsx)("div",{className:aa,style:{transform:_n()},children:(0,fe.jsx)("div",{style:{[_o]:Ao,[zo]:Fn},className:"line-center-wapper",children:(0,fe.jsx)("div",{className:oa,onMouseDown:Ea,onMouseEnter:()=>ma(!0),onMouseLeave:()=>ma(!1)})})}):(0,fe.jsx)("div",{className:aa,style:{transform:_n()},onMouseDown:Ea,onMouseEnter:()=>ma(!0),onMouseLeave:()=>ma(!1)})}),Wt=()=>{const K=(0,I.wA)(),D=Ze(),z=ye(),{alignH:X,alignV:ie}=He(),ue=je(),oe=yt(),be=it=>{const{hotAttr:{alignH:At=[],alignV:zt=[],w:qt,h:_n}}=it,$n=[];return At.forEach((Fn,Ao)=>{Fn<=_n&&Fn>=0&&$n.push({value:Fn,index:Ao,type:"horizontal",canvas:it})}),zt.forEach((Fn,Ao)=>{Fn<=qt&&Fn>=0&&$n.push({value:Fn,index:Ao,type:"vertical",canvas:it})}),$n},Ae=(0,N.qK)(it=>{let{type:At,index:zt,open:qt,value:_n,canvas:$n}=it;T.A.emit("ruler:line:hover",{type:At,index:zt,open:qt,canvas:$n,value:_n})}),Ne=(0,N.qK)(it=>{var At;const zt=ue(it.event);let qt=it.index,_n=it.value;if(zt&&zt.key!==((At=it.canvas)==null?void 0:At.key)){const{newIndex:$n,newValue:Fn}=Ot.moveOutsideToInside({dispatch:K,curCanvas:zt,index:it.index,type:it.type,value:it.value,outerAlignH:X,outerAlignV:ie});qt=$n,_n=Fn}K({type:"ruler:update:state",payload:{rulerLineCanvas:zt,selectedLine:[{canvas:it.canvas||zt,type:it.type,index:qt,value:_n}]}}),K({type:"entry:update:ruler"}),K({type:"entry:clear:selection"})}),Be=(0,N.qK)(it=>{let{type:At,value:zt,index:qt,event:_n,canvas:$n,callback:Fn}=it;T.A.emit("ruler:line:mouseup",{type:At,value:zt,index:qt,event:_n,canvas:$n,callback:Fn})}),Ge=(0,N.qK)(it=>{let{type:At,value:zt,index:qt,event:_n,canvas:$n}=it;T.A.emit("ruler:line:mousemove",{type:At,value:zt,index:qt,event:_n,canvas:$n})});return oe?(0,fe.jsxs)("div",{className:"ruler-line-wrapper",children:[X.map((it,At)=>(0,fe.jsx)(un,{type:"horizontal",value:it,index:At,onHover:Ae,onClick:Ne,onMouseup:Be,onMousemove:Ge,isActive:D({index:At,type:"horizontal",canvas:null})},"h-"+At)),ie.map((it,At)=>(0,fe.jsx)(un,{type:"vertical",value:it,index:At,onHover:Ae,onClick:Ne,onMouseup:Be,onMousemove:Ge,isActive:D({index:At,type:"vertical",canvas:null})},"v-"+At)),Object.values(z).map(it=>be(it).map(At=>(0,fe.jsx)(un,{value:At.value,type:At.type,canvas:At.canvas,index:At.index,onHover:Ae,onClick:Ne,onMouseup:Be,onMousemove:Ge,isActive:D(At)},it.key+At.type+At.index)))]}):null};var Un=s(69623),Jn=s(47163),Yt=s(67787);const rt=(0,Yt.i7)(["from{opacity:0;transform:scale(0.8);}to{opacity:1;transform:scale(1);}"]),An=(0,Yt.i7)(["from{opacity:1;transform:scale(1);}to{opacity:0;transform:scale(0.8);}"]),Nt=Yt.Ay.div.withConfig({displayName:"style__StyleMenu",componentId:"sc-1xsn7rd-0"})(["position:fixed;display:flex;flex-direction:column;align-items:flex-start;box-shadow:",";background:",";border-radius:8px;padding:8px;transition:opacity 0.2s ease-in-out;transform-origin:0 0;animation:"," 0.2s;animation-fill-mode:forwards;z-index:999;width:166px;&.hide-menu{animation:"," 0.1s;animation-fill-mode:forwards;z-index:-9999;}.divider{border-top:1px solid ",";margin:4px 0;width:100%;}.menu-content{font-size:12px;color:",";background:",";width:100%;height:26px;display:flex;align-items:center;padding-left:31px;cursor:pointer;border-radius:4px;&.hasIcon{padding-left:11px;}svg{margin-right:12px;path{fill:currentColor;}}&.disabled{color:",";pointer-events:none;&:hover{cursor:not-allowed;background:none;color:",";}}&:hover{background:",";cursor:pointer;color:",";}}"],K=>K.theme.shadow_m,K=>K.theme.color_bg_white,rt,An,K=>K.theme.color_bg_border_01,K=>K.theme.color_text_L1,K=>K.theme.color_bg_white,K=>K.theme.color_text_disabled01,K=>K.theme.color_text_disabled01,K=>K.theme.color_btn_secondary_hover,K=>K.theme.color_text_L1),vn=K=>{let{position:D,onClose:z,menuConfigs:X,type:ie}=K;const ue=(0,Jn.w)(),oe=(0,I.wA)(),be=(0,r.useRef)(document.createElement("div")),{isShowAlignLine:Ae,isShowReferLine:Ne,showRuler:Be}=we(),Ge=ye(),{alignH:it,alignV:At}=He(),zt=ie==="vertical"?me.qZ[ue].vertical:me.qZ[ue].horizontal;(0,r.useEffect)(()=>{const zo=be.current;return document.body.appendChild(zo),document.addEventListener("click",z),document.addEventListener("mousedown",_n),()=>{document.removeEventListener("mousedown",_n),document.removeEventListener("click",z),document.body.removeChild(zo)}},[]);const qt=(0,r.useMemo)(()=>{let zo=it.length>0,aa=At.length>0;return Object.values(Ge).forEach(oa=>{var ma,Ea;zo=zo||((ma=oa.hotAttr)==null||(ma=ma.alignH)==null?void 0:ma.length)>0,aa=aa||((Ea=oa.hotAttr)==null||(Ea=Ea.alignV)==null?void 0:Ea.length)>0}),ie==="vertical"?aa:zo},[it,At,Ge,ie]),_n=zo=>{zo.button===2&&z()},$n=()=>{oe({type:"entry:update:preference",payload:{ruler:!Be}})},Fn=()=>{oe({type:"entry:update:preference",payload:{show_ruler_line:!Ne}})},Ao=()=>{oe({type:"entry:update:preference",payload:{show_align_line:!Ae}})},_o=()=>{const zo=ie==="vertical"?{v:[],h:it}:{h:[],v:At};Oe.dispatchOuterLines(oe,zo),Object.values(Ge).forEach(aa=>{const oa=ie==="vertical"?{v:[],h:aa.hotAttr.alignH}:{h:[],v:aa.hotAttr.alignV};Oe.dispatchCanvasLines(oe,aa,oa)})};return(0,fe.jsx)(fe.Fragment,{children:(0,Un.createPortal)((0,fe.jsxs)(Nt,{menuConfigs:X,style:{left:D.left,top:D.top},id:"rulerContextMenu",children:[(0,fe.jsxs)("a",{className:"menu-content hasIcon",onClick:$n,children:[me.iU,me.qZ[ue].show_ruler]}),(0,fe.jsxs)("a",{className:Kt()("menu-content",{hasIcon:Ne}),onClick:Fn,children:[Ne&&me.iU,me.qZ[ue].show_refer_line]}),(0,fe.jsxs)("a",{className:Kt()("menu-content",{hasIcon:Ae,disabled:!Ne}),onClick:Ao,children:[Ae&&me.iU,me.qZ[ue].align_line]}),(0,fe.jsx)("div",{className:"divider"}),(0,fe.jsxs)("a",{className:Kt()("menu-content",{disabled:!qt}),onClick:_o,children:[me.qZ[ue].remove_all,zt,me.qZ[ue].refer_line]})]}),be.current)})};var Dt=s(79371),$t=s.n(Dt),kn=s(29794);class Kn{constructor(D,z){var X=this;if((0,Se.A)(this,"canvasH",document.createElement("canvas")),(0,Se.A)(this,"canvasV",document.createElement("canvas")),(0,Se.A)(this,"handleUpdateCanvasConfig",()=>{const{ratio:ie,palette:ue}=this.config,oe=ue||me.GT,be={ratio:ie||me.tj,bgColor:oe.bgColor,longfgColor:oe.longfgColor,shortfgColor:oe.shortfgColor,fontColor:oe.fontColor,shadowColor:oe.shadowColor};this.config={...this.config,canvasConfigs:be}}),(0,Se.A)(this,"handleCompare",ie=>{if(!ie)return!0;const ue={...this.config,...ie},{scale:oe,width:be,height:Ae,thick:Ne,startX:Be,startY:Ge,theme:it,shadow:{x:At,y:zt,width:qt,height:_n},startWithCanvas:$n}=this.config;return this.config=ue,this.handleUpdateCanvasConfig(),oe!==ue.scale||be!==ue.width||Ae!==ue.height||Ne!==ue.thick||Be!==ue.startX||Ge!==ue.startY||it!==ue.theme||At!==ue.shadow.x||zt!==ue.shadow.y||qt!==ue.shadow.width||_n!==ue.shadow.height||$n!==ue.startWithCanvas}),(0,Se.A)(this,"drawContext",function(ie){ie===void 0&&(ie=null),X.handleCompare(ie)&&(X.ctxH=X.drawContextByDirection(X.canvasH),X.ctxV=X.drawContextByDirection(X.canvasV,"v"))}),(0,Se.A)(this,"drawRuler",function(ie,ue){ie===void 0&&(ie=null),ue===void 0&&(ue=!1),!(!ue&&!X.handleCompare(ie))&&(X.drawRulerByDirection(),X.drawRulerByDirection("v"))}),(0,Se.A)(this,"drawContextByDirection",function(ie,ue){ue===void 0&&(ue="h");const{width:oe,height:be,thick:Ae,canvasConfigs:Ne}=X.config,{ratio:Be}=Ne;ue==="h"?(ie.width=oe*Be,ie.height=Ae*Be):(ie.width=Ae*Be,ie.height=be*Be);const Ge=ie.getContext("2d");return Ge.font=12*Be+'px -apple-system, "Helvetica Neue", ".SFNSText-Regular", "SF UI Text", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "WenQuanYi Zen Hei", sans-serif',Ge.lineWidth=1,Ge.textBaseline="middle",Ge}),(0,Se.A)(this,"drawRulerByDirection",function(ie){ie===void 0&&(ie="h");const{scale:ue,width:oe,height:be,thick:Ae,startX:Ne,startY:Be,shadow:Ge,canvasConfigs:it,startWithCanvas:At,layoutV9:zt}=X.config,{x:qt,y:_n,width:$n,height:Fn}=Ge;let Ao=Ne,_o=Be,zo=qt,aa=_n;if(At&&sdkStore.getHotItem(At.key)){const{hotAttr:{x:ma,y:Ea,w:er,h:Pr}}=sdkStore.getHotItem(At.key),Aa=ma-er/2,fr=Ea-Pr/2;Ao-=Aa,_o-=fr,zo-=Aa,aa-=fr}if(ie==="h"){const oa={scale:ue,width:oe,height:Ae,canvasConfigs:it};(0,kn.Dd)(X.ctxH,Ao,{x:zo,w:$n,h:Ae},oa)}else{const oa={scale:ue,width:Ae,height:be,canvasConfigs:it};(0,kn.hJ)(X.ctxV,_o,{y:aa,w:Ae,h:Fn},oa)}}),(0,Se.A)(this,"updateCanvasContext",$t()(ie=>{this.timer&&window.cancelAnimationFrame(this.timer),this.timer=window.requestAnimationFrame(()=>{this.drawContext(ie),this.drawRuler(ie,!0)})},10)),(0,Se.A)(this,"updateCanvasRuler",$t()(ie=>{this.timer&&window.cancelAnimationFrame(this.timer),this.timer=window.requestAnimationFrame(()=>{this.drawRuler(ie)})},10)),this.canvasH.className="ruler rulerH",this.canvasV.className="ruler rulerV",D){for(;D.firstChild;)D.removeChild(D.firstChild);D.appendChild(this.canvasH),D.appendChild(this.canvasV)}this.config=z,this.handleUpdateCanvasConfig()}destory(){this.ctxH=null,this.ctxV=null,this.updateCanvasContext.cancel(),this.updateCanvasRuler.cancel(),this.timer&&window.cancelAnimationFrame(this.timer),this.canvasH.remove(),this.canvasV.remove()}}const ft=()=>{const K=(0,I.d4)(Je.f2),D=(0,r.useRef)(null),z=(0,r.useRef)();return(0,r.useEffect)(()=>{if(K)if(z.current)K.isUpdateContext?z.current.updateCanvasContext(K):z.current.updateCanvasRuler(K);else{const X=new Kn(D.current,K);X.drawContext(),X.drawRuler(),z.current=X}},[K]),(0,r.useEffect)(()=>()=>{var X;(X=z.current)==null||X.destory()},[]),(0,fe.jsx)("div",{className:"canvas-container",ref:D})},Lt=K=>{let{type:D,onGetAlignUtil:z,onRightClick:X}=K;const ie=(0,r.useRef)(null),ue=Kt()("ruler-event",D),{scale:oe,viewportRect:be,canvasRect:Ae}=mt();let Ne,Be,Ge=0,it=0;const At=_n=>{const $n=oe/100,Fn=_n.clientX-Ge,Ao=_n.clientY-it;Be=Math.round(Ne+(D==="horizontal"?Ao:Fn)/$n),T.A.emit("ruler:line:mousemove",{type:D,value:Be,event:_n,action:"create"})},zt=_n=>{Ge=0,it=0,T.A.emit("ruler:line:mouseup",{event:_n,type:D,value:Be,action:"create"}),window.removeEventListener("mousemove",At),window.removeEventListener("mouseup",zt)},qt=_n=>{var $n;if(_n.stopPropagation(),_n.button===2){X(_n);return}z(),Ge=_n.clientX,it=_n.clientY;const{bottom:Fn,right:Ao}=(($n=ie.current)==null?void 0:$n.getBoundingClientRect())||{},_o=D==="horizontal"?_n.clientY-Fn:_n.clientX-Ao,zo=tt({ratio:oe/100,viewportRect:be,canvasRect:Ae}),aa=D==="horizontal"?zo.startY:zo.startX;Ne=Math.round(aa+_o/(oe/100)),Be=Ne,window.addEventListener("mousemove",At),window.addEventListener("mouseup",zt)};return(0,fe.jsx)("div",{className:ue,onMouseDown:qt,ref:ie})},Yn=(0,r.memo)(K=>{let{lineTheme:D,onGetAlignUtil:z}=K;const X=W(),[ie,ue]=(0,r.useState)({isShowMenu:!1,type:"vertical",position:{left:0,top:0}}),oe=D.menu||me.my,be={bgColor:oe.bgColor,dividerColor:oe.dividerColor,listItem:oe.listItem},Ae=Be=>Ge=>{ue({isShowMenu:!0,type:Be,position:{left:Ge.clientX,top:Ge.clientY}})},Ne=()=>{ue({...ie,isShowMenu:!1})};return(0,fe.jsxs)("div",{className:"ruler-canvas-wrapper",children:[(0,fe.jsx)(ft,{}),(0,fe.jsx)("a",{className:"corner",style:{backgroundColor:D.bgColor}}),!X&&(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)(Lt,{type:"horizontal",onRightClick:Ae("horizontal"),onGetAlignUtil:z}),(0,fe.jsx)(Lt,{type:"vertical",onRightClick:Ae("vertical"),onGetAlignUtil:z}),ie.isShowMenu&&(0,fe.jsx)(vn,{position:ie.position,onClose:Ne,menuConfigs:be,type:ie.type})]})]})}),yn=K=>{let{type:D,value:z,canvas:X,isActive:ie,isBoundary:ue,isDragging:oe,className:be}=K;const Ae=$e({canvas:X,type:D,value:z}),Ne=ge(),{left:Be,conter:Ge,right:it,styleKey:At}=Ne({type:D,canvas:X}),zt=Kt()("ruler-line",D,be,{"in-canvas":!!X,active:ie,"move-cursor":oe}),qt=D==="horizontal",{w:_n=0,h:$n=0}=(X==null?void 0:X.hotAttr)||{},Fn=qt?$n:_n,Ao=ue&&(z<0||z>Fn),_o=Kt()("line-center",{dashed:Ao});return(0,fe.jsxs)("div",{className:zt,style:{transform:Ae()},children:[(0,fe.jsx)("span",{className:"line-value",children:Math.floor(z)}),X&&(0,fe.jsxs)("div",{className:"line-box",children:[(0,fe.jsx)("div",{className:"line-left",style:{[At]:Be}}),(0,fe.jsx)("div",{className:_o,style:{[At]:Ge}}),(0,fe.jsx)("div",{className:"line-right",style:{[At]:it}})]})]})},qn=()=>{const K=(0,I.d4)(Je.iX),D=(0,I.d4)(Je.ks),z=(0,I.d4)(Je.Q);if(!K)return;const X=Kt()("active-dragging",{event:K.action==="create","is-delete-ruler-line":z}),ie=ht({value:K.value,realValue:K.realValue,type:K.type,fromCanvas:K.canvas,curCanvas:K.curCanvas});return(0,fe.jsx)("div",{className:"ruler-active-line",children:(0,fe.jsx)(yn,{value:ie,type:K.type,canvas:K.curCanvas,isActive:D,isBoundary:!0,isDragging:!0,className:X})})},Nn=(0,r.memo)(()=>{var K,D;const z=(0,r.useRef)(null),[X,ie]=(0,r.useState)(),ue=(0,I.d4)(Je.KF)[0],oe=(0,I.d4)(Je.o5),be=(0,I.d4)(l.pO),Ae=(0,I.d4)(Je.ks),Ne=ue&&!Ae,Be=X&&ue&&X.type===ue.type&&X.index===ue.index&&(!(X!=null&&X.canvas)&&!(ue!=null&&ue.canvas)||((K=X.canvas)==null?void 0:K.key)===((D=ue.canvas)==null?void 0:D.key)),Ge=X&&!oe&&!Be&&!be;(0,r.useEffect)(()=>(T.A.on("ruler:line:hover",it),()=>{T.A.off("ruler:line:hover",it)}),[]),(0,r.useEffect)(()=>{(oe&&X||Be)&&ie(null)},[oe,X,Be]);const it=At=>{let{value:zt,canvas:qt,type:_n,open:$n,index:Fn}=At;const{type:Ao,index:_o,canvas:zo}=z.current||{};_n===Ao&&Fn===_o&&$n&&(!qt&&!zo||(qt==null?void 0:qt.key)===(zo==null?void 0:zo.key))||(z.current=$n?{value:zt,canvas:qt,type:_n,index:Fn}:null,ie(z.current))};if(!(!Ge&&!Ne))return(0,fe.jsxs)("div",{className:"ruler-active-line",children:[Ge&&(0,fe.jsx)(yn,{value:X.value,type:X.type,canvas:X.canvas}),Ne&&(0,fe.jsx)(yn,{value:ue.value,type:ue.type,canvas:ue.canvas,isActive:!0,isBoundary:ue.isBoundary})]})});var xn=s(69594);const Ye=4,wn=Yt.Ay.div.attrs(K=>({style:{"--r-thick":K.thick+"px","--r-cavas-width":K.containerStyle.width+"px","--r-cavas-height":K.containerStyle.height+"px","--r-cavas-left":K.containerStyle.left+"px","--r-cavas-transform":K.containerStyle.transform,"--r-border-color":K.theme.borderColor,"--r-line-hover-color":K.theme.line.hover,"--r-line-active-color":K.theme.line.active,"--r-line-normal-color":K.theme.line.normal,"--r-line-bgColor":K.theme.bgColor}})).withConfig({displayName:"styles__StyledRulerContainer",componentId:"sc-73css9-0"})(["position:absolute;pointer-events:none;z-index:3;width:var(--r-cavas-width);height:var(--r-cavas-height);left:var(--r-cavas-left);transform:var(--r-cavas-transform);.ruler-canvas-wrapper{position:absolute;left:0;top:0;width:100%;height:100%;}.canvas-container{.ruler{width:100%;height:100%;pointer-events:none;position:absolute;&.rulerH{left:var(--r-thick);top:0;width:calc(100% - var(--r-thick));height:var(--r-thick);border-bottom:1px solid var(--r-border-color);}&.rulerV{top:var(--r-thick);left:0;width:var(--r-thick);height:calc(100% - var(--r-thick));border-right:1px solid var(--r-border-color);}}}.corner{position:absolute;left:0;top:0;width:var(--r-thick);height:var(--r-thick);border-right:1px solid var(--r-border-color);border-bottom:1px solid var(--r-border-color);transition:all 0.2s ease-in-out;box-sizing:border-box;}.ruler-event{pointer-events:auto;display:block;&.vertical{height:calc(100% - var(--r-thick));width:var(--r-thick);cursor:col-resize;cursor:",";}&.horizontal{margin-left:var(--r-thick);height:var(--r-thick);width:calc(100% - var(--r-thick));cursor:row-resize;cursor:",";}}.ruler-active-line{position:absolute;left:0;top:0;}.ruler-active-line,.ruler-line-wrapper{position:absolute;pointer-events:none;left:0;top:0;width:100%;height:100%;.ruler-line{position:absolute;&.dragging,&.move-cursor{will-change:transform;}&.hide,&.dragging{opacity:0;}&.event{pointer-events:auto;}&.is-delete-ruler-line{cursor:"," !important;}&.horizontal{width:100%;height:1px;cursor:",";&:not(.in-canvas){border-top:1px solid var(--r-line-normal-color);&.active-dragging{border-top:1px solid var(--r-line-hover-color);}}&.in-canvas{.line-left,.line-center,.line-right{border-top-width:1px;border-top-color:var(--r-line-normal-color);}&.active-dragging{.line-left,.line-center,.line-right{border-top-color:var(--r-line-hover-color);}}.line-left,.line-right{border-top-style:dashed;}.line-center-wapper{position:absolute;}.line-center{border-top-style:solid;&.event{pointer-events:auto;cursor:",";}&.dashed{border-top-style:dashed;}}}&.event,&.in-canvas .line-center.event{&::after,&::before{width:100%;height:","px;position:absolute;content:'';display:inline-block;}&::before{top:-","px;}&::after{top:0px;}}&.active{pointer-events:auto;&:not(.in-canvas){border-top:1px solid var(--r-line-active-color);}&.in-canvas{.line-left,.line-center,.line-right{border-top-color:var(--r-line-active-color);}}.line-value{color:var(--r-line-active-color);}}.line-box{flex-direction:row;}}&.vertical{height:100%;width:1px;cursor:",";&:not(.in-canvas){border-left:1px solid var(--r-line-normal-color);&.active-dragging{border-left:1px solid var(--r-line-hover-color);}}&.in-canvas{.line-left,.line-center,.line-right{border-left-width:1px;border-left-color:var(--r-line-normal-color);}&.active-dragging{.line-left,.line-center,.line-right{border-left-color:var(--r-line-hover-color);}}.line-left,.line-right{border-left-style:dashed;}.line-center-wapper{position:absolute;.line-center{height:100%;}}.line-center{border-left-style:solid;&.event{pointer-events:auto;}&.dashed{border-left-style:dashed;}}}&.event,&.in-canvas .line-center.event{&::after,&::before{width:","px;height:100%;position:absolute;content:'';display:inline-block;}&::before{left:0px;}&::after{right:1px;}}&.active{&:not(.in-canvas){border-left:1px solid var(--r-line-active-color);}&.in-canvas{.line-left,.line-center,.line-right{border-left-color:var(--r-line-active-color);}}.line-value{color:var(--r-line-active-color);}}.line-box{flex-direction:column;}.line-value{left:auto;top:4px;transform:translateX(4px);}}.line-value{position:absolute;top:0;left:4px;transform-origin:0 0;color:#ff4040;scale:0.83;line-height:12px;font-size:12px;font-weight:600;background-color:var(--r-line-bgColor);transform:translateY(-5px) rotate(-90deg);}.line-box{display:flex;position:absolute;width:100%;height:100%;top:0;left:0;}}}"],xn.M.colloumResize,xn.M.rowResize,xn.M.rulerDelete,xn.M.rowResize,xn.M.rowResize,Ye,Ye,xn.M.colloumResize,Ye),Hn=()=>{var K;const D=(0,I.wA)(),z=je(),X=(0,I.d4)(Je.KF),ie=X[0],ue=(0,I.d4)(Je.Hw),oe=(0,r.useRef)((K=X[0])==null?void 0:K.value),be=(0,I.d4)(Je.o5),{alignH:Ae,alignV:Ne}=He(),Be=(0,I.d4)(q.k3),Ge=(0,r.useRef)({isDraggingDelete:!1}),it=(0,r.useRef)(qa=>({left:0,top:0})),At=qa=>{D({type:"ruler:update:state",payload:{draggingLine:qa}})},zt=qa=>{be!==qa&&D({type:"ruler:update:state",payload:{isDraggingLine:qa}})},{theme:qt,scale:_n,curToolBarHeight:$n,containerStyle:Fn,viewportRect:Ao,canvasRect:_o,currentScreenCid:zo}=mt();(0,r.useEffect)(()=>{De.scale=_n},[_n]),(0,r.useEffect)(()=>{D({type:"entry:init:ruler:canvas"})},[D]),(0,N._N)(me.CX,()=>{ie&&(Ot.delectLine({dispatch:D,formCanvas:ie.canvas,index:ie.index,outerAlignH:Ae,outerAlignV:Ne,type:ie.type}),D({type:"ruler:update:state",payload:{selectedLine:[]}}))},{exactMatch:!0,useCapture:!0}),(0,N._N)(me.zF,(qa,Ka)=>{if(!ie)return;const{type:rr,index:Ua,canvas:_r}=ie,ni=oe.current,zr=me.Jx.includes(Ka)?1:10;let Ur=ni;rr==="vertical"&&me.n2.includes(Ka)&&(Ur=Ka.includes("rightarrow")?ni+zr:ni-zr),rr==="horizontal"&&me.BE.includes(Ka)&&(Ur=Ka.includes("downarrow")?ni+zr:ni-zr),oe.current=Ur,Ot.moveLine({dispatch:D,formCanvas:_r,index:Ua,type:rr,value:Ur,outerAlignH:Ae,outerAlignV:Ne}),er({newIndex:Ua,oldIndex:Ua,canvas:_r,value:Ur,formCanvas:_r,type:rr,isBoundary:!0})},{exactMatch:!0,useCapture:!0,target:document});const aa=(0,N.qK)(qa=>{let{rect:Ka,type:rr,value:Ua,sup:_r}=qa;if(!Be)return Ua;const ni=it.current({_rect:Ka,sup:_r||zo}),{left:zr=0,top:Ur=0}=ni||{},ki={x:zr-Ka.left,y:Ur-Ka.top},ds=rr==="vertical"?ki.x:ki.y;return Ua+ds}),oa=(0,N.qK)(qa=>{let{value:Ka,type:rr,curCanvas:Ua}=qa;const _r=tt({ratio:_n/100,viewportRect:Ao,canvasRect:_o}),ni={left:rr==="vertical"?Ka:Math.round(_r.startX),top:rr==="horizontal"?Ka:Math.round(_r.startY),width:rr==="vertical"?1:Math.round(_r.endX-_r.startX),height:rr==="horizontal"?1:Math.round(_r.endY-_r.startY)};return aa({rect:ni,type:rr,value:Ka,sup:Ua==null?void 0:Ua.key})}),ma=qa=>{var Ka;let{formCanvas:rr,type:Ua,index:_r}=qa;return!!(ie&&(!rr&&!ie.canvas||(rr==null?void 0:rr.key)===((Ka=ie.canvas)==null?void 0:Ka.key))&&ie.index===_r&&ie.type===Ua)},Ea=qa=>{let{formCanvas:Ka,type:rr,index:Ua}=qa;ma({formCanvas:Ka,type:rr,index:Ua})&&D({type:"ruler:update:state",payload:{selectedLine:[]}})},er=qa=>{const{isBoundary:Ka=!1}=qa;if(ma({formCanvas:qa.formCanvas,type:qa.type,index:qa.oldIndex})){const rr={...ie,index:qa.newIndex,canvas:qa.canvas,value:qa.value,isBoundary:Ka};D({type:"ruler:update:state",payload:{selectedLine:[rr]}})}},Pr=(0,N.qK)(qa=>{let{canvas:Ka,type:rr,value:Ua,event:_r,index:ni,action:zr}=qa;const Ur=z(_r);zt(!0);const ki=tt({ratio:_n/100,viewportRect:Ao,canvasRect:_o}),ds=Math.round(rr==="horizontal"?ki.startY:ki.startX),Qs=Math.round(rr==="horizontal"?ki.endY:ki.endX),E=at({canvas:Ka,type:rr,value:Ua});E<ds||E>Qs?(Ge.current.isDraggingDelete=!0,D({type:"ruler:update:state",payload:{isDeleteLine:!0}})):(Ge.current.isDraggingDelete=!1,D({type:"ruler:update:state",payload:{isDeleteLine:!1}}));const le=oa({type:rr,value:E,curCanvas:Ur}),de=le-E+Ua;At({type:rr,value:de,canvas:Ka,event:_r,curCanvas:Ur,index:ni,realValue:le,action:zr}),!(!Ur&&!ue)&&(Ur==null?void 0:Ur.key)!==(ue==null?void 0:ue.key)&&(D({type:"ruler:update:state",payload:{rulerLineCanvas:Ur}}),D({type:"entry:update:ruler"}))}),Aa=(0,N.qK)(qa=>{let{type:Ka,value:rr,index:Ua,event:_r,action:ni,canvas:zr,callback:Ur}=qa;At(null),zt(!1);const ki=z(_r),ds=at({canvas:zr,type:Ka,value:rr}),E=oa({type:Ka,value:ds,curCanvas:ki})-ds+rr;if(Ur==null||Ur(E),ma({formCanvas:zr,type:Ka,index:Ua})&&(oe.current=E),ni==="create"&&Ge.current.isDraggingDelete){Ge.current.isDraggingDelete=!1,D({type:"ruler:update:state",payload:{isDeleteLine:!1}});return}if(Ge.current.isDraggingDelete){Ot.delectLine({formCanvas:zr,dispatch:D,index:Ua,type:Ka,outerAlignH:Ae,outerAlignV:Ne}),Ea({formCanvas:zr,type:Ka,index:Ua}),D({type:"ruler:update:state",payload:{isDeleteLine:!1}});return}if(ni==="create"){const{newIndex:le,realValue:de}=Ot.addLine({dispatch:D,curCanvas:ki,type:Ka,value:E,outerAlignH:Ae,outerAlignV:Ne});D({type:"ruler:update:state",payload:{rulerLineCanvas:ki,selectedLine:[{canvas:ki,type:Ka,index:le,value:de}]}});return}if(!ki&&!zr){const{newIndex:le,newValue:de}=Ot.moveOutsideLine({dispatch:D,index:Ua,type:Ka,value:E,outerAlignH:Ae,outerAlignV:Ne});er({newIndex:le,oldIndex:Ua,canvas:null,value:de,formCanvas:zr,type:Ka});return}if(ki&&zr&&ki.key===zr.key){const{newIndex:le,newValue:de}=Ot.moveBetweenSameCanvas({dispatch:D,formCanvas:zr,index:Ua,type:Ka,value:E});er({newIndex:le,oldIndex:Ua,canvas:zr,value:de,formCanvas:zr,type:Ka});return}if(!ki&&zr){const{newIndex:le,newValue:de}=Ot.moveInsideToOutside({dispatch:D,formCanvas:zr,index:Ua,type:Ka,value:E,outerAlignH:Ae,outerAlignV:Ne});er({newIndex:le,oldIndex:Ua,canvas:null,value:de,formCanvas:zr,type:Ka});return}if(ki&&!zr){const{newIndex:le,newValue:de}=Ot.moveOutsideToInside({dispatch:D,curCanvas:ki,index:Ua,type:Ka,value:E,outerAlignH:Ae,outerAlignV:Ne});er({newIndex:le,oldIndex:Ua,canvas:ki,value:de,formCanvas:null,type:Ka});return}if(ki&&zr&&ki.key!==zr.key){const{newIndex:le,newValue:de}=Ot.moveBetweenDifferentCanvas({dispatch:D,formCanvas:zr,curCanvas:ki,index:Ua,type:Ka,value:E});er({newIndex:le,oldIndex:Ua,canvas:ki,value:de,formCanvas:zr,type:Ka})}});(0,r.useEffect)(()=>(T.A.on("ruler:line:mouseup",Aa),T.A.on("ruler:line:mousemove",Pr),()=>{T.A.off("ruler:line:mouseup",Aa),T.A.off("ruler:line:mousemove",Pr)}),[D,Aa,Pr]);const fr=(0,N.qK)(()=>{it.current=(0,te.ay)({movableItems:[],createSnapper:J.WY,viewport:{scale:_n/100},isRuleLine:!0,getCurrentScreenAlign:()=>te.p$,getCommonParentAlign:()=>te.p$})}),Jr=(0,N.qK)(qa=>{if(qa.target.closest(".line-center")||qa.target.closest(".ruler-line")||qa.target.closest(".line")){fr();return}if(!ie||(D({type:"ruler:update:state",payload:{selectedLine:[],rulerLineCanvas:null}}),D({type:"entry:update:ruler"}),!ie.canvas))return;const rr=ie.type==="horizontal"?ie.canvas.hotAttr.h:ie.canvas.hotAttr.w;(oe.current<0||oe.current>rr)&&(At(null),Ot.delectLine({formCanvas:ie.canvas,dispatch:D,index:ie.index,type:ie.type,outerAlignH:Ae,outerAlignV:Ne}))});return(0,r.useEffect)(()=>{var qa;return document.addEventListener("mousedown",Jr),oe.current=(qa=X[0])==null?void 0:qa.value,()=>{document.removeEventListener("mousedown",Jr)}},[Jr,X]),(0,fe.jsxs)(wn,{id:"mb-ruler",currentToolBarHeight:$n,theme:qt,thick:me.MV,containerStyle:Fn,children:[(0,fe.jsx)(Yn,{lineTheme:qt,onGetAlignUtil:fr}),(0,fe.jsx)(Wt,{}),(0,fe.jsx)(qn,{}),(0,fe.jsx)(Nn,{})]})},ko=()=>Le()?(0,fe.jsx)(Hn,{}):null;var On=s(12211),Mo=s(87765);const jn=(0,On.Mz)([l.lh,l.KW,Mo.$],(K,D,z)=>{var X,ie,ue,oe;const be=K&&sdkStore.getHotItem(K),Ae=(be==null||(X=be.hotAttr)==null?void 0:X.type)===C.x.WRichText&&(be==null||(ie=be.hotAttr)==null||(ie=ie.richTextV1)==null?void 0:ie.sizeType)!==1,Ne=(be==null||(ue=be.hotAttr)==null?void 0:ue.type)===C.x.WSticky||(be==null||(oe=be.hotAttr)==null?void 0:oe.type)===C.x.WTear;return Ae||D||z.isDragging||z.isAdjustingGap||Ne});var xo=s(65744),jo=s.n(xo),Qo=s(70248);const cn=(0,On.Mz)([Q.VH,U.jI,Q.UV],function(K,D,z){if(D===void 0&&(D=""),!K)return null;let X=K;if(D&&(0,Qo.OO)(X)){const ie=(0,Qo.QL)(X),ue=jo()(ie.slice(0,-1),oe=>D.includes(oe));ue.length>0?X=(0,Qo.iK)(ue,ie.at(-1)):X=ie.at(-1)}return z.getSnapshotItem(X)});var In=s(43605),tn=s(8580);const Jt=Yt.Ay.svg.withConfig({displayName:"styles__StyledPathBorder",componentId:"sc-sf1eif-0"})(["position:absolute;overflow:visible;path{stroke-width:2;stroke:#1e98ea;}&.echo-line{path{stroke:",";}}&.is-line-select{path{stroke:",";stroke-width:1;}}&.is-locked{path{stroke:#7d8694;}}"],K=>K.theme.color_proto,K=>K.theme.color_proto);class Ln extends r.PureComponent{constructor(){super(...arguments),(0,Se.A)(this,"getStrokePath",(D,z,X,ie)=>{const ue=[D*X.x,z*X.y],oe=[D*ie.x,z*ie.y];return"M "+ue[0]+" "+ue[1]+" L "+oe[0]+" "+oe[1]})}render(){const{widget:D,showEchoLayer:z,isLineSelect:X,ratio:ie}=this.props,{key:ue,hotAttr:oe}=D,{isLock:be}=oe,{from:Ae,to:Ne}=(0,In.Ne)(oe),{transform:Be,rect:Ge}=(0,tn.Oj)(ue),{a:it,b:At,c:zt,d:qt}=Be,{x:_n,y:$n}=Be.clone().scale(ie,ie).apply({x:Ge.x,y:Ge.y}),{x:Fn,y:Ao}=ne.Z.mul(ne.Z.xy(Ge.w,Ge.h),ie),_o=Ao<1?1:Ao,aa={...{left:_n,top:$n,width:Fn,height:_o},transform:"matrix("+it+","+At+","+zt+","+qt+",0,0)",transformOrigin:"0 0"},oa=this.getStrokePath(Fn,_o,Ae,Ne);return(0,fe.jsx)(Jt,{className:Kt()({"echo-line":z},{"is-locked":be},{"is-line-select":X}),style:aa,children:(0,fe.jsx)("path",{d:oa})})}}(0,Se.A)(Ln,"defaultProps",{isLineSelect:!1});const Xn=Yt.Ay.div.withConfig({displayName:"styles__StyledItemsHoverBorder",componentId:"sc-aa2v06-0"})(["position:absolute;transform-origin:0 0;&.item-hover-border{border:2px solid ",";}&.item-echo-layer{border:1px solid ",";background-color:rgba(41,141,248,0.3);}&.is-locked{border-color:#7d8694;}"],K=>K.theme.color_proto,K=>K.theme.color_proto);var Dn=s(99917),go=s(51561);class Uo extends r.PureComponent{get noBorderRadius(){const{widget:{hotAttr:{type:D}}}=this.props;return D===C.x.WPolygon||D===C.x.WStar||D===C.x.WDigitalStepper||D.startsWith("wCollapse")||D.startsWith("wPagination")}get allBorderRadius(){const{widget:{hotAttr:{type:D,image:z}}}=this.props;return D===C.x.WOval||D===C.x.WImage&&(z==null?void 0:z.imageClipType)===Dn.Mg.circular}render(){const{widget:{key:D,hotAttr:z},showEchoLayer:X,ratio:ie}=this.props,{x:ue,y:oe,r:be,w:Ae,h:Ne}=sdkStore.getHotBound(D),Be={...z.borderRadiusIsVisible===!1?void 0:(0,go.Nb)(z,ie),width:Ae*ie,height:Ne*ie,transform:"translate("+(ue-Ae*.5)*ie+"px,"+(oe-Ne*.5)*ie+"px) rotate("+be+"deg)",transformOrigin:"center center"};return this.allBorderRadius&&(Be.borderRadius="100%"),this.noBorderRadius&&(Be.borderRadius="none"),(0,fe.jsx)(Xn,{className:Kt()({"item-echo-layer":X,"item-hover-border":!X,"is-locked":z.isLock}),style:Be})}}var Ho=s(65057),ua=s(5379),la=s(33848),To=s(18637);const Ia=(K,D,z)=>{const{x:X,y:ie,w:ue,h:oe}=sdkStore.getHotBound(K),{elbowType:be,dPathList:Ae}=D,Ne=X-ue*.5-z.offset.x/z.scale,Be=ie-oe*.5-z.offset.y/z.scale;let Ge;return be==="curve"?Ge=(0,To.Ig)({closed:!1,points:Ae}).map((it,At)=>({x:it.x+Ne,y:it.y+Be,isAdjusted:!1})):Ge=(0,la.Ui)(ne.Z.xy(Ne,Be),Ae),Ge.map(it=>{const At=B.L.apply(z,it);return{x:Math.round(At.x),y:Math.round(At.y)}})},ya=K=>{const D=Math.round(K.length/2)-1,z=[];for(let X=0,ie=K.length;X<ie-1;X+=1){const ue=K[X],oe=K[X+1],be=Math.round(ne.Z.distance(ue,oe)),Ae=Math.atan2(ue.y-oe.y,oe.x-ue.x)*(180/Math.PI),Ne=oe.x-ue.x,Be=oe.y-ue.y;z.push({from:X,to:X+1,length:be,x:ue.x+Ne/2,y:ue.y+Be/2,angle:Ae,direction:(0,la.b4)(Ae),xList:[ue.x+Ne/10,ue.x+Ne*9/10],yList:[ue.y+Be/10,ue.y+Be*9/10],isTextCommentIndex:X===D})}return z},eo=Yt.Ay.div.withConfig({displayName:"styles__StyledElbowResize",componentId:"sc-6p290h-0"})(["pointer-events:none;position:absolute;"]),Oo=Yt.Ay.div.withConfig({displayName:"styles__StyledRectAnchor",componentId:"sc-6p290h-1"})(["pointer-events:auto;.line-rect-anchor{display:block;background-color:rgba(0,119,255,1);position:absolute;transform:translate(-50%,-50%);border-radius:2px;transition:all .3s;&.vertical{cursor:"," !important;}&.horizontal{cursor:"," !important;}}"],xn.M.nsResize,xn.M.ewResize),so=Yt.Ay.div.withConfig({displayName:"styles__StyledCircleAnchor",componentId:"sc-6p290h-2"})(["pointer-events:auto;.line-circle-anchor{display:block;width:12px;height:12px;background-color:#298df8;border:1px solid #298df8;border-radius:50%;position:absolute;transform:translate(-50%,-50%);box-sizing:border-box;&::before{display:block;content:'';width:8px;height:8px;background-color:#ffffff;border-radius:50%;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);}&::after{content:'';position:absolute;inset:-10px;border-radius:50%;background-color:transparent;}}.line-circle-anchor-attached{display:block;width:12px;height:12px;background-color:#ffffff;border:1px solid rgba(0,119,255,1);border-radius:50%;position:absolute;transform:translate(-50%,-50%);box-sizing:border-box;&::before{display:block;content:'';width:8px;height:8px;background-color:rgba(0,119,255,1);border-radius:50%;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);}&::after{content:'';position:absolute;inset:-10px;border-radius:50%;background-color:transparent;}}"]);var to=s(21191);class Vo extends r.PureComponent{constructor(){super(...arguments),(0,Se.A)(this,"state",{isMove:!1,count:0,moveAnchor:""}),(0,Se.A)(this,"onMouseDown",D=>{D.stopPropagation();const{current:z}=D.target.dataset;this.setState({isMove:!0,moveAnchor:z});const{widget:{key:X,hotAttr:ie,sup:ue},dispatch:oe,currPageKey:be}=this.props;if(ie.isLock)return;const Ae=X;oe({type:"elbow:update",payload:{isDraggingElbow:!0,activeElbowKey:Ae}}),sdkStore.combineMergeMark("elbow-drag");const Ne=$t()(Ge=>{const{isMove:it,count:At,moveAnchor:zt}=this.state;if(!it)return;if(sdkStore.isTrashed(X)){var qt;(qt=this.removeMouseEvents)==null||qt.call(this);return}At<2&&this.setState({count:At+1});const{viewport:_n,viewportRect:$n,dispatch:Fn}=this.props,Ao=(0,Ho.mG)(Ge,{scale:100,offset:_n.offset,viewportRect:$n}),_o={x:Ao.x/_n.scale,y:Ao.y/_n.scale};Fn({type:"entry:elbow:drag:start",payload:{elbowKey:Ae,moveAnchor:zt,cursorWorldPos:_o,event:Ge}})},10),Be=Ge=>{var it;if((it=this.removeMouseEvents)==null||it.call(this),sdkStore.isTrashed(X))return;const At=(0,to.G9)(be),zt=sdkStore.getHotItem(X),qt=sdkStore.getHotAABB(X),_n={x:.5*(qt[0]+qt[2]),y:.5*(qt[1]+qt[3])},$n=(0,to.fW)(X,be,At);if(ue!==$n){const Fn=(0,to.Us)();sdkStore.updateHotItem({...zt,sup:$n,hotAttr:{...zt.hotAttr,...sdkStore.toAttrXY(_n,X,$n),zIndex:Fn(X,$n)}})}sdkStore.combineMerge("elbow-drag"),oe({type:"elbow:update",payload:{isDraggingElbow:!1,activeElbowKey:""}}),this.setState({isMove:!1,count:0,moveAnchor:""})};this.removeMouseEvents=()=>{document.removeEventListener("mousemove",Ne,!1),document.removeEventListener("mouseup",Be,!1)},document.addEventListener("mousemove",Ne,!1),document.addEventListener("mouseup",Be,!1)}),(0,Se.A)(this,"handleGetCircleList",D=>{const z=sdkStore.getHotItem(D);if(!z)return[];const{viewport:X}=this.props,{elbow:ie,refFromKey:ue,refToKey:oe}=z.hotAttr,be=Ia(D,ie,X),{isRefFromExist:Ae,isRefToExist:Ne}=(0,ua.v)(D,ue,oe);return z.hotAttr.elbow.elbowType==="curve"?[{...be[0],attached:Ae},{...be[1],attached:!1},{...be[be.length-1],attached:Ne}]:[{...be[0],attached:Ae},{...be[be.length-1],attached:Ne}]}),(0,Se.A)(this,"handleDoubleClick",D=>{const{widget:{key:z},dispatch:X}=this.props,{current:ie}=D.target.dataset;ie==="middle"&&X({type:"entry:elbow:middle-anchor:reset",payload:{elbowKey:z}})})}componentWillUnmount(){this.setState=()=>!1}render(){const{widget:{key:D,hotAttr:z}}=this.props,X=this.handleGetCircleList(D);if(!z.isLock)return(0,fe.jsx)(so,{children:X&&X.map((ie,ue)=>{const oe=ue===0?"start":ue===X.length-1?"end":"middle",be=ie.attached?"line-circle-anchor-attached line_circle_anchor_hover_"+D:"line-circle-anchor line_circle_anchor_hover_"+D;return(0,fe.jsx)("span",{className:be,onMouseDown:this.onMouseDown,onDoubleClick:this.handleDoubleClick,"data-current":oe,style:{left:ie.x,top:ie.y,cursor:"pointer"}},ie.x+"&"+ie.y+"&"+ue)})})}}const ta=(0,On.Mz)([l.X_,l.ER,l.$S,l.eo],(K,D,z,X)=>({viewport:{offset:D,scale:K/100},viewportRect:z,currPageKey:X})),Qa=(0,I.Ng)(K=>ta(K))(Vo);var qr=s(45815),kr=s(10390);const ur=K=>{let{widget:D,scale:z,strokeWidth:X=1,stroke:ie="rgba(0, 119, 255, 1)"}=K;const{key:ue,hotAttr:{elbow:oe,isLock:be}}=D,{dPathList:Ae,elbowType:Ne}=oe,Be=ue+"-selection-path",Ge=(0,r.useMemo)(()=>Ne==="curve"?(0,kr.tE)({points:(0,kr.Ig)({points:Ae,closed:!1}),closed:!1}):(0,qr.X)(Ae,Ne),[Ae,Ne]);X=X/z;const{x:it,y:At,r:zt,w:qt,h:_n}=sdkStore.getHotBound(ue),$n=qt+X*2,Fn=_n+X*2,Ao={width:$n*z,height:Fn*z,transform:"translate("+(it-$n*.5)*z+"px,"+(At-Fn*.5)*z+"px) rotate("+zt+"deg)",transformOrigin:"center center"};return be&&(ie="#7d8694"),(0,fe.jsx)(Mr,{width:$n||1,height:Fn||1,viewBox:-X+" "+-X+" "+($n||1)+" "+(Fn||1),xmlns:"http://www.w3.org/2000/svg",style:Ao,children:(0,fe.jsx)("path",{id:Be,d:Ge,stroke:ie,strokeWidth:X,fill:"none"})})},Mr=Yt.Ay.svg.withConfig({displayName:"ElbowPath__StyledElbowPath",componentId:"sc-12hnvmq-0"})(["position:absolute;"]),gr=ur,dr=Yt.Ay.div.withConfig({displayName:"styles__StyledEchoArea",componentId:"sc-1bcl9nz-0"})(["position:absolute;width:100%;height:100%;z-index:1;pointer-events:none;"]),wi=(0,On.Mz)([l.X_,jn,cn,U.jx],(K,D,z,X)=>{if(D||!z||(z==null?void 0:z.hotAttr.type)===C.x.WTear)return{isShow:!1};const ie=X===y.qi.OnlyView;return{isShow:!0,widget:z,scale:K,onlyView:ie,showEchoLayer:!0}}),gi=K=>{const{isShow:D,scale:z,widget:X,showEchoLayer:ie,onlyView:ue}=K;if(!D||!X)return null;const oe=z/100,{hotAttr:{type:be}}=X;return be===C.x.WTear?null:be===C.x.WElbow?(0,fe.jsxs)(dr,{children:[(0,fe.jsx)(gr,{widget:X,scale:oe,strokeWidth:2}),!ue&&(0,fe.jsx)(Qa,{widget:X})]}):be===C.x.WLine||be===C.x.WArrow?(0,fe.jsx)(dr,{children:(0,fe.jsx)(Ln,{showEchoLayer:ie,widget:X,ratio:oe})}):(0,fe.jsx)(dr,{children:(0,fe.jsx)(Uo,{showEchoLayer:ie,widget:X,ratio:oe})})},Li=(0,I.Ng)(K=>wi(K))(gi),Ni=K=>{K=K||{};const{target:D,onH:z,onV:X}=K,ie={onH:null,onV:null},ue={onH:null,onV:null};return z&&z.size>0&&(z.forEach((oe,be)=>{ue.onH=be,ie.onH=oe}),ie.onH.push([D.left,D.top])),X&&X.size>0&&(X.forEach((oe,be)=>{ue.onV=be,ie.onV=oe}),ie.onV.push([D.left,D.top])),{lines:ie,distances:ue}},Ai=Yt.Ay.div.withConfig({displayName:"styles__StyledSameLines",componentId:"sc-1n9w0mf-0"})([".same-size-h-line{position:absolute;height:1px;border-top:1px solid ",';z-index:11;&::after{width:1px;height:5px;content:" ";background-color:',';position:absolute;right:0;bottom:0;}&::before{width:1px;height:5px;content:" ";background-color:',";position:absolute;bottom:0;}}.same-size-v-line{position:absolute;width:1px;border-left:1px solid ",';z-index:11;&::after{width:5px;height:1px;content:" ";background-color:',';position:absolute;bottom:0;right:0;}&::before{width:5px;height:1px;content:" ";background-color:',";position:absolute;top:0;right:0;}}.same-size-h-value{position:absolute;top:0;left:50%;color:",";transform:translate(-50%,calc(-100% - 3px));}.same-size-v-value{position:absolute;left:-40px;top:50%;color:",";transform:translate(0,-50%);}"],K=>K.theme.color_smartline,K=>K.theme.color_smartline,K=>K.theme.color_smartline,K=>K.theme.color_smartline,K=>K.theme.color_smartline,K=>K.theme.color_smartline,K=>K.theme.color_smartline,K=>K.theme.color_smartline);class Bi extends r.PureComponent{render(){const{ratio:D,sameSize:z}=this.props,{lines:{onH:X,onV:ie},distances:{onH:ue,onV:oe}}=Ni(z);return(0,fe.jsxs)(Ai,{children:[ue&&X.map((be,Ae)=>{let[Ne,Be]=be;return(0,fe.jsx)("div",{className:"same-size-h-line",style:{transform:"translate("+Ne*D+"px,"+Be*D+"px)",width:ue*D},children:(0,fe.jsx)("span",{className:"same-size-h-value",children:ue})},"same-size-h-line-"+Ae)}),oe&&ie.map((be,Ae)=>{let[Ne,Be]=be;return(0,fe.jsx)("div",{className:"same-size-v-line",style:{transform:"translate("+Ne*D+"px,"+Be*D+"px)",height:oe*D},children:(0,fe.jsx)("span",{className:"same-size-v-value",style:{left:-String(oe).length*6-6},children:oe})},"same-size-v-line-"+Ae)})]})}}const Ss=(K,D)=>{const{target:z,onH:X,onV:ie}=K,ue={onH:null,onV:null},oe={onH:null,onV:null};D||(D={onH:null,onV:null});const{onH:be,onV:Ae}=D;let Ne=!0;if((be||Ae)&&(Ne=!1),X&&X.length&&z){const Be=X.map(Ge=>Ga(Ge.y,z,Ge.refTotalRect,"onH"));if(ue.onH=Be,Ne){const Ge=X.map(it=>ai(it.y,z,it.refRects,"onH"));oe.onH=qi(Ge,"onH")}}if(ie&&ie.length&&z){const Be=ie.map(Ge=>Ga(Ge.x,z,Ge.refTotalRect,"onV"));if(ue.onV=Be,Ne){const Ge=ie.map(it=>ai(it.x,z,it.refRects,"onV"));oe.onV=qi(Ge,"onV")}}return{lines:ue,distances:oe}},qi=(K,D)=>{const z=new Map;K.forEach(ie=>{ie.forEach(ue=>{const oe=z.get(ue.length)||[];let be=!1;oe.forEach((Ae,Ne)=>{D==="onV"&&Ae[0].y===ue.line[0].y&&(Ae[0].x>ue.line[0].x&&(oe[Ne]=ue.line,z.set(ue.length,oe)),be=!0),D==="onH"&&Ae[0].x===ue.line[0].x&&(Ae[0].y>ue.line[0].y&&(oe[Ne]=ue.line,z.set(ue.length,oe)),be=!0)}),be||(oe.push(ue.line),z.set(ue.length,oe))})});const X=[];return z.forEach((ie,ue)=>{ie.forEach(oe=>{X.push({length:ue,line:oe})})}),X},Ga=(K,D,z,X)=>{if(X==="onH")return[{x:Math.min(D.left,z.left),y:K},{x:Math.max(D.right,z.right),y:K}];if(X==="onV")return[{x:K,y:Math.min(D.top,z.top)},{x:K,y:Math.max(D.bottom,z.bottom)}]},ai=(K,D,z,X)=>{let ie=[];if(X==="onH"){const{rect:ue,relationship:oe,allRects:be}=fa(D,z,"onH");if(oe==="overlap")ie=[{line:[{x:ue.left,y:K},{x:D.left,y:K}].sort((Ae,Ne)=>Ae.x-Ne.x),length:Math.abs(ue.left-D.left)},{line:[{x:ue.right,y:K},{x:D.right,y:K}].sort((Ae,Ne)=>Ae.x-Ne.x),length:Math.abs(ue.right-D.right)}];else{const Ae=oo({pos:K,allRects:be,target:D});if(Ae)return Ae;ie=ao(K,ue,D)}ie=ie.filter(Ae=>Ae.length===D.width&&Ae.line[0].x===D.left&&Ae.line[1].x===D.right||Ae.length===D.width/2&&(Ae.line[0].x===D.left||Ae.line[1].x===D.right)?!1:Ae)}else if(X==="onV"){const{rect:ue,relationship:oe,allRects:be}=fa(D,z,"onV");if(oe==="overlap")ie=[{line:[{x:K,y:ue.top},{x:K,y:D.top}].sort((Ae,Ne)=>Ae.y-Ne.y),length:Math.abs(ue.top-D.top)},{line:[{x:K,y:ue.bottom},{x:K,y:D.bottom}].sort((Ae,Ne)=>Ae.y-Ne.y),length:Math.abs(ue.bottom-D.bottom)}];else{const Ae=kt({pos:K,allRects:be,target:D});if(Ae)return Ae;ie=Qt(K,ue,D)}ie=ie.filter(Ae=>Ae.length===D.height&&Ae.line[0].y===D.top&&Ae.line[1].y===D.bottom||Ae.length===D.height/2&&(Ae.line[0].y===D.top||Ae.line[1].y===D.bottom)?!1:Ae)}return ie},kt=K=>{let{pos:D,allRects:z,target:X}=K;if(z.top.length<1||z.bottom.length<1)return!1;z.top.sort((be,Ae)=>be.length-Ae.length),z.bottom.sort((be,Ae)=>be.length-Ae.length);const ie=z.top[0],ue=z.bottom[0];let oe=[];return oe=oe.concat(Qt(D,ie.rect,X)),oe=oe.concat(Qt(D,ue.rect,X)),oe},Qt=(K,D,z)=>{const X=z.top>D.top;return[{line:X?[{x:K,y:D.bottom},{x:K,y:z.top}]:[{x:K,y:z.bottom},{x:K,y:z.top}],length:Math.abs(X?z.top-D.bottom:D.top-z.bottom)}]},oo=K=>{let{pos:D,allRects:z,target:X}=K;if(z.left.length<1||z.right.length<1)return!1;z.left.sort((be,Ae)=>be.length-Ae.length),z.right.sort((be,Ae)=>be.length-Ae.length);const ie=z.left[0],ue=z.right[0];let oe=[];return oe=oe.concat(ao(D,ie.rect,X)),oe=oe.concat(ao(D,ue.rect,X)),oe},ao=(K,D,z)=>{if(!z||!D)return[];const X=z.left>D.left;return[{line:X?[{x:D.right,y:K},{x:z.left,y:K}]:[{x:z.right,y:K},{x:D.left,y:K}],length:Math.abs(X?z.left-D.right:D.left-z.right)}]},fa=(K,D,z)=>{const X=z==="onH"?"right":"bottom",ie=z==="onH"?"left":"top",ue=z==="onH"?"width":"height";let oe=1/0;const be={rect:null,relationship:"",allRects:{top:[],bottom:[],left:[],right:[]}};return D.forEach(Ae=>{const Ne=wr(Ae),Be=Math.max(Ne[X],K[X])-Math.min(Ne[ie],K[ie]);if(Be<oe){oe=Be,be.rect=Ne;const it=K[ue]+Ne[ue]>=Be?"overlap":"noOverlap";be.relationship=it}Ne.bottom<=K.top&&be.allRects.top.push({length:Be,rect:Ne}),Ne.top>=K.bottom&&be.allRects.bottom.push({length:Be,rect:Ne}),Ne.right<=K.left&&be.allRects.left.push({length:Be,rect:Ne}),Ne.left>=K.right&&be.allRects.right.push({length:Be,rect:Ne})}),be},wr=K=>{const D=K.cid||K.key;if(D===void 0)return K;const[z,X,ie,ue]=(0,M.C0)(sdkStore,D);return{left:z,top:X,right:ie,bottom:ue,width:ie-z,height:ue-X}},Xa=Yt.Ay.div.withConfig({displayName:"styles__StyledAlignLines",componentId:"sc-1ohv00a-0"})([".h-line,.dis-h-line{position:absolute;height:1px;border-top:1px solid ",";z-index:10;}.v-line,.dis-v-line{position:absolute;width:1px;border-left:1px solid ",";z-index:10;}.edge-h-value,.dis-h-value{position:absolute;top:0;left:50%;color:",";transform:translate(-50%,calc(-100% - 3px));}.edge-v-line{position:absolute;width:1px;border-left:1px solid ",";z-index:10;}.edge-h-line{position:absolute;height:1px;border-top:1px solid ",";z-index:10;}.edge-v-value,.dis-v-value{position:absolute;right:0;top:50%;color:",";transform:translate(0,-50%);}.dis-h-line{border-top:1px solid ",";z-index:10;}.dis-v-line{border-left:1px solid ",";z-index:10;}"],K=>K.theme.color_polyline_hover,K=>K.theme.color_polyline_hover,K=>K.theme.color_smartline,K=>K.theme.color_smartline,K=>K.theme.color_smartline,K=>K.theme.color_smartline,K=>K.theme.color_smartline,K=>K.theme.color_smartline);class ir extends r.PureComponent{render(){const{alignment:D,distributed:z,ratio:X}=this.props,{lines:{onH:ie,onV:ue},distances:{onH:oe,onV:be}}=Ss(D,z);return(0,fe.jsxs)(Xa,{children:[ie&&ie.map((Ae,Ne)=>(0,fe.jsx)("div",{className:"h-line",style:{transform:"translate("+Ae[0].x*X+"px,"+Ae[0].y*X+"px)",width:(Ae[1].x-Ae[0].x)*X}},"h-line-"+Ne)),ue&&ue.map((Ae,Ne)=>(0,fe.jsx)("div",{className:"v-line",style:{transform:"translate("+Ae[0].x*X+"px,"+Ae[0].y*X+"px)",height:(Ae[1].y-Ae[0].y)*X}},"v-line-"+Ne)),oe&&oe.map((Ae,Ne)=>{let{line:[Be],length:Ge}=Ae;return Ge?(0,fe.jsx)("div",{className:"dis-h-line",style:{transform:"translate("+Be.x*X+"px,"+Be.y*X+"px)",width:Ge*X},children:(0,fe.jsx)("span",{className:"dis-h-value",children:Ge})},"dis-h-line-"+Ne):null}),be&&be.map((Ae,Ne)=>{let{line:[Be],length:Ge}=Ae;return Ge?(0,fe.jsx)("div",{className:"dis-v-line",style:{transform:"translate("+Be.x*X+"px,"+Be.y*X+"px)",height:Ge*X},children:(0,fe.jsx)("span",{className:"dis-v-value",style:{left:-String(Ge).length*6-8},children:Ge})},"dis-v-line-"+Ne):null})]})}}const Ir=K=>{const{onV:D,onH:z}=K,X={onV:null,onH:null},ie={onV:{edge:[],gap:[]},onH:{edge:[],gap:[]}};if(D){X.onV=D.gap;const ue=D.rects.map(be=>{let[Ae,Ne]=be;const Be=Math.min(Ae.left,Ne.left),Ge=Math.min(Ae.bottom,Ne.bottom),it=Math.max(Ae.right,Ne.right)-Be;return{left:Be,top:Ge,width:it,height:D.gap}}),oe=new Map;if(ue.forEach(be=>{const Ae=be.top,Ne=oe.get(Ae)||[];Ne.push(be),oe.set(Ae,Ne)}),oe.size<2)ie.onV.gap=[];else{const be=[];oe.forEach((Ae,Ne)=>{if(Ae.length===1){be.push(Ae[0]);return}const Be=Math.max.apply(Math,Ae.map(function(it){return it.left+it.width})),Ge=Math.min.apply(Math,Ae.map(function(it){return it.left}));be.push({left:Ge,top:Ae[0].top,width:Be-Ge,height:Ae[0].height})}),ie.onV.gap=be}}if(z){X.onH=z.gap;const ue=z.rects.map(be=>{let[Ae,Ne]=be;const Be=Math.min(Ae.right,Ne.right),Ge=Math.min(Ae.top,Ne.top),it=Math.max(Ae.bottom,Ne.bottom)-Ge;return{left:Be,top:Ge,width:z.gap,height:it}}),oe=new Map;if(ue.forEach(be=>{const Ae=be.left,Ne=oe.get(Ae)||[];Ne.push(be),oe.set(Ae,Ne)}),oe.size<2)ie.onH.gap=[];else{const be=[];oe.forEach((Ae,Ne)=>{if(Ae.length===1){be.push(Ae[0]);return}const Be=Math.min.apply(Math,Ae.map(function(it){return it.top})),Ge=Math.max.apply(Math,Ae.map(function(it){return it.top+it.height}));be.push({left:Ae[0].left,top:Be,width:Ae[0].width,height:Ge-Be})}),ie.onH.gap=be}}return{gap:X,lines:ie}},Er=Yt.Ay.div.withConfig({displayName:"styles__StyledDistributedLines",componentId:"sc-1nvuwzk-0"})([".h-gap{position:absolute;background:",";.value{position:absolute;top:0;left:50%;transform:translate(-50%,calc(-100% - 3px));color:",";}}.v-gap{position:absolute;background:",";.value{position:absolute;top:50%;transform:translate(0,-50%);color:",";}}"],K=>K.theme.color_spacing,K=>K.theme.color_smartline,K=>K.theme.color_spacing,K=>K.theme.color_smartline);class ji extends r.PureComponent{constructor(){super(...arguments),(0,Se.A)(this,"genHGapIndicators",(D,z,X,ie)=>{let{left:ue,width:oe,top:be,height:Ae}=D;const Ne={transform:"translate("+ue*X+"px,"+be*X+"px)",height:Ae*X,width:oe*X};return(0,fe.jsx)("div",{className:"h-gap",style:Ne,children:(0,fe.jsx)("span",{className:"value",children:ie.onH})},"gap-"+z)}),(0,Se.A)(this,"genVGapIndicators",(D,z,X,ie)=>{let{left:ue,width:oe,top:be,height:Ae}=D;const Ne={transform:"translate("+ue*X+"px,"+be*X+"px)",height:Ae*X,width:oe*X};return(0,fe.jsx)("div",{className:"v-gap",style:Ne,children:(0,fe.jsx)("span",{className:"value",style:{left:-String(ie.onV).length*6-6},children:ie.onV})},"v-gap-"+z)})}render(){const{distributed:D,ratio:z}=this.props,{gap:X,lines:ie}=Ir(D);return(0,fe.jsxs)(Er,{children:[X.onH?ie.onH.gap.map((ue,oe)=>this.genHGapIndicators(ue,oe,z,X)):null,X.onV?ie.onV.gap.map((ue,oe)=>this.genVGapIndicators(ue,oe,z,X)):null]})}}const Cl=(0,r.memo)(K=>{let{sameSize:D,alignment:z,distributed:X,ratio:ie}=K;return(0,fe.jsxs)(r.Fragment,{children:[X&&(0,fe.jsx)(ji,{distributed:X,ratio:ie}),z&&(0,fe.jsx)(ir,{alignment:z,distributed:X,ratio:ie}),D&&(0,fe.jsx)(Bi,{sameSize:D,ratio:ie})]})}),Di=K=>K.screencontainer.alignment,Rs=K=>K.screencontainer.distributed,wc=K=>K.screencontainer.sameSize,Vc=(0,On.Mz)([l.X_,wc,Di,Rs],(K,D,z,X)=>({ratio:K/100,sameSize:D,alignment:z,distributed:X})),Wl=(0,I.Ng)(K=>Vc(K))(Cl);var ca=s(14166),Lr=s(39695),yi=s(21066),Ts=s(24229),Cc=s(29187),Wi=s(17307),Ml=s(89853),Oi=s(5209),zs=s(81717);const{LinkToCanvas:Hl,LinkToSourceCanvas:El,SetBasketCanvas:Xl,OpenExternalUrl:uc,ScrollTo:Pl,SetVisibility:Pc,OpenOverlay:Gl,SwapOverlay:vo,CloseOverlay:ia}=Lr.O2;let na=function(K){return K.settings="\u5C5E\u6027\u9762\u677F\u8BBE\u7F6E",K.handleLinkPage="\u624B\u67C4\u94FE\u63A5\u753B\u5E03(\u5217\u8868)",K.handleLinkScreen="\u624B\u67C4\u94FE\u63A5\u9875\u9762",K.handleLinkScreenList="\u624B\u67C4\u94FE\u63A5\u9875\u9762(\u5217\u8868)",K.handleLinkScreenState="\u624B\u67C4\u94FE\u63A5\u72B6\u6001",K.handleLinkScreenStateList="\u624B\u67C4\u94FE\u63A5\u72B6\u6001(\u5217\u8868)",K.handleLinkPrev="\u8FDE\u7EBF\u8FD4\u56DE\u6765\u6E90\u9875\u9762",K.handleLinkWidget="\u624B\u67C4\u94FE\u63A5\u5143\u7D20",K.handleLinkOverlay="\u624B\u67C4\u94FE\u63A5\u5BB9\u5668",K.handleLinkOverlayClose="\u8FDE\u7EBF\u5173\u95ED\u5F39\u7A97",K}({}),Sa=function(K){return K.pageCanvas="\u9875\u9762",K.basketCanvas="\u52A8\u6001\u7EC4\u4EF6",K.muBan="\u6BCD\u7248",K}({});var Na=function(K){return K.handle="\u624B\u578B",K.click="\u5355\u51FB",K.timer="\u5B9A\u65F6\u5668",K}(Na||{});const Tt={[Hl]:"\u8DF3\u8F6C\u9875\u9762",[uc]:"\u8DF3\u8F6C\u8D85\u94FE\u63A5",[El]:"\u8FD4\u56DE\u6765\u6E90\u753B\u677F",[Xl]:"\u5207\u6362\u7EC4\u4EF6\u72B6\u6001",[Pl]:"\u6EDA\u52A8\u5230",[Pc]:"\u663E\u793A/\u9690\u85CF",[Gl]:"\u6253\u5F00\u5F39\u7A97",[vo]:"\u5207\u6362\u5F39\u7A97",[ia]:"\u5173\u95ED\u5F39\u7A97"},mn=["tap","left","right","up","down","hold","dtap","shake-divider","shake"],Rn=["click","dbclick","longpress","mouseIn","mouseOut","rightClick"],gn=["timer"],Tn=[...mn,...Rn,...gn],wo=K=>{let{add_mode:D,element_type:z,link:X,event_number:ie,canvas_type:ue}=K;const{interactionType:oe,interactionTrigger:be,transition:Ae}=X,Ne=Tn.includes(be)?mn.includes(be)?Na.handle:Rn.includes(be)?Na.click:Na.timer:"",Be=I18N.SettingPanel.g[be],Ge=ie>=10?">=10":""+ie,it=oe===Pl?X.scrollToDir==="vertical"?"\u5782\u76F4\u6EDA\u52A8":X.scrollToDir==="horizontal"?"\u6C34\u5E73\u6EDA\u52A8":"\u53CC\u5411\u6EDA\u52A8":Tt[oe],At={add_mode:D,element_type:z,event_behavior:it,event_trigger_mode:Ne+"-"+Be,state_animation:"",page_animation:Ae==="auto"?"\u667A\u80FD\u52A8\u753B":"\u65E0\u6548\u679C",event_number:Ge,canvas_type:ue};(0,Oi.kH)("event_set_V8",At),zs.Y4.editProjectNew("\u8BBE\u7F6E\u4E8B\u4EF6")},io=K=>{let{add_mode:D,link:z,widgetNode:{key:X,hotAttr:{type:ie}},isEditGlobalLink:ue,eventNumber:oe,canvas_type:be}=K;const Ae=ue?"\u5168\u5C40\u94FE\u63A5":ie==="group"?"\u7EC4\u5408":ie==="lr"?"\u94FE\u63A5\u533A\u57DF":ie==="sticky"?"\u6279\u6CE8":ie==="panel"?"\u52A8\u6001\u7EC4\u4EF6":(0,Qo.OO)(X)?"\u52A8\u6001\u7EC4\u4EF6\u5185\u5143\u7D20":"\u5176\u4ED6";wo({add_mode:D,element_type:Ae,link:z,event_number:oe,canvas_type:be})};var fo=s(76613),co=s(37780),ga=s(26067),Fo=s(93257),Eo=s(51090);const Oa=(0,Yt.Ay)(yi.Ay).withConfig({displayName:"styles__StyledLinkDesignContextMenu",componentId:"sc-69h6p3-0"})(["",";> ul{max-width:240px;width:max-content;li{a{span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}}}}"],Eo.ZJ),Ra=Yt.Ay.div.withConfig({displayName:"styles__StyledLinkDesign",componentId:"sc-69h6p3-1"})(["position:fixed;z-index:5;pointer-events:auto;&.is-dragging{z-index:200;pointer-events:none;.line{border-color:#8d9ea7;}.handler{color:#8d9ea7;}}&.is-active{.line{border-color:#298df8;}.handler{color:#298df8;}}&.shield-corner-events{pointer-events:none;}&.hide{display:none;}.line{position:absolute;top:0;left:0;width:26px;border-top:2px solid #c8cdd0;transform-origin:left center;}.handler{position:absolute;display:flex;justify-content:center;align-items:center;font-size:18px;width:1em;height:1em;margin-top:-0.5em;margin-left:-0.5em;background:white;color:#c8cdd0;border:2px solid #c8cdd0;border-radius:50%;cursor:grab;.icon{font-size:12px;}}"]),tr=Yt.Ay.div.withConfig({displayName:"styles__StyledQuickCreateMark",componentId:"sc-69h6p3-2"})(["position:fixed;color:",";&.isHighlight{color:",";}path{fill:#fff !important;}"],K=>K.theme.color_btn_primary_disabled,K=>K.theme.color_proto);var Ar=s(7457),nr=s(4235);const $a=Yt.Ay.div.withConfig({displayName:"styles__StyledInteractiveTargetHotspotContainer",componentId:"sc-1c47x5u-0"})(["position:absolute;z-index:3;"]),Rr=Yt.Ay.div.withConfig({displayName:"styles__StyledInteractiveTargetHotspot",componentId:"sc-1c47x5u-1"})(["position:absolute;pointer-events:auto;z-index:",";transform:",";width:","px;height:","px;"],K=>K.zIndex,K=>"translate("+(K.x-K.w*.5)*K.scale+"px,"+(K.y-K.h*.5)*K.scale+"px) rotate("+K.r+"deg)",K=>K.w*K.scale,K=>K.h*K.scale);var or=s(98915),Ba=function(K){return K[K.canvas=1]="canvas",K[K.canvasList=2]="canvasList",K[K.widget=3]="widget",K[K.group=4]="group",K[K.panel=5]="panel",K[K.page=6]="page",K[K.canvasStateList=7]="canvasStateList",K[K.overlay=8]="overlay",K}(Ba||{});const Ja=(0,On.Mz)([Ar.nF,nr.p$,U.IL,l.X_,U.jI],(K,D,z,X,ie)=>{const ue=D[0];return{isDragLink:K,editingBDanliKey:ie,interactiveTriggerKey:ue,interactiveTargetKey:z,scale:X}}),Za=K=>{let{editingBDanliKey:D,targetKey:z,scale:X}=K;const ie=sdkStore.getHotItem(z);if(!ie)return null;const{hotAttr:{zIndex:ue}}=ie,oe=C.Q.USE_CLIP_TEXT.includes(ie.hotAttr.type)?(0,or.VU)(z):ie.hotAttr.type==="wWrap"?(0,or.py)(z):sdkStore.getHotBound(z);let be,Ae=D?(0,Qo.j_)([D,z]):z;switch(ie.hotAttr.type){case"rResCanvas":{be=ie.hotAttr.asOverlay?Ba.overlay:Ba.canvas,Ae=z;break}case"wWrap":{be=Ba.group;break}case"wBasket":{be=Ba.panel;break}default:be=Ba.widget}const Ne=(0,r.useMemo)(()=>{var Be,Ge;const it=sdkStore.locUpMainCanvasKey(z);if(!it)return ue;const At=((Be=sdkStore.getHotItem(it))==null?void 0:Be.hotAttr)||{};return ie.hotAttr.type==="rResCanvas"?ue:((Ge=At.zIndex)!=null?Ge:0)+ue},[z]);return(0,fe.jsx)(Rr,{className:"interactive-target-hotspot","data-interactive-target-key":Ae,"data-interactive-target-type":be,scale:X/100,zIndex:Ne,...oe},ie.key)},Nr=()=>{const{editingBDanliKey:K,interactiveTriggerKey:D,interactiveTargetKey:z,isDragLink:X,scale:ie}=(0,I.d4)(Ja);return X?(0,fe.jsxs)($a,{children:[z&&(0,fe.jsx)(Za,{targetKey:z,editingBDanliKey:K,scale:ie}),D&&(0,fe.jsx)(Za,{targetKey:D,editingBDanliKey:K,scale:ie})]}):null};var ii=s(93413),Ci=s(83485),Zi=s(17573),Zr=s(99566),Hi=s(88981);const yr=K=>{if(!K)return Hi.O.Tap;const D=sdkStore.getHotItem(K);return(0,Zr.b7)(D==null?void 0:D.hotAttr.type)&&(0,Zi.qK)()?Hi.O.InputEvent:Hi.O.Tap},$r={isDragging:!1,isActive:!1,deltaX:0,deltaY:0,isShowContextMenu:!1,mouseX:0,mouseY:0,targetCid:"",targetPanel:void 0,linkTargetType:void 0,canvasList:[],isLinkDesignQuickMarkHighlightState:!1,isShowSelfMark:!1};var os=function(K){return K.left="left",K.right="right",K}(os||{});class pt extends r.PureComponent{constructor(D){super(D),(0,Se.A)(this,"highlight",z=>{const{dispatch:X}=this.props;X({type:"links:singleSelectLink:update",payload:{singleSelectLink:z}})}),(0,Se.A)(this,"handleDown",z=>{var X;z.stopPropagation();const{rootScreenCid:ie,selectedItems:ue,editingPanelCid:oe,isEditingCombo:be,dispatch:Ae}=this.props;Ae({type:"artboard:update:state",payload:{isDragLink:!0}}),this.setState({...$r,isDragging:!0});const Ne=z.clientX,Be=z.clientY;let Ge,it,At;const zt=sdkStore.locUpColdCanvasKey(((X=ue[0])==null?void 0:X.key)||""),qt=oe?sdkStore.locUpColdCanvasKey(oe):null;let _n=!1,$n=[];Ae(co.R7.command.clearAllCommand({}));const Fn=_o=>{var zo,aa;const oa=_o.clientX-Ne,ma=_o.clientY-Be;Ge=null;const Ea=(zo=(aa=_o.target).closest)==null?void 0:zo.call(aa,".interactive-target-hotspot");if(Ea)switch(_n=!0,Ge=Ea,it=Ge.dataset.interactiveTargetType,At=Ge.dataset.interactiveTargetKey,$n=(0,ga.Y2)(At),Number(it)){case Ba.canvasStateList:case Ba.overlay:case Ba.canvas:{zt===At&&(_n=!1);break}case Ba.page:{var er;const fr=((er=$n)==null?void 0:er.length)===0;(be||fr)&&(_n=!1);break}case Ba.canvasList:{const fr=sdkStore.getHotItem(At);(zt===At||qt===At||!fr)&&(_n=!1);break}}else{var Pr,Aa;const fr=(Pr=(Aa=_o.target).closest)==null?void 0:Pr.call(Aa,".quick-create-mark");fr?(Ge=fr,it="dummy",_n=!0):(it="",_n=!1)}this.setState({deltaX:oa,deltaY:ma,isActive:_n,isLinkDesignQuickMarkHighlightState:it==="dummy"})},Ao=_o=>{const{editingPanelCid:zo,isEditingMuban:aa,dispatch:oa,selectedItems:ma}=this.props;if(oa({type:"artboard:update:state",payload:{isDragLink:!1}}),document.removeEventListener("mousemove",Fn),document.removeEventListener("mouseup",Ao),!Ge||!_n){this.setState($r);return}if(it==="dummy"){this.setState({...$r}),oa(co.R7.command.intActConnectorDummySelectCommand({e:_o})),(0,Ci.X)();return}switch(Number(it)){case Ba.widget:case Ba.group:{const zr=this.state.deltaX,Ur=this.state.deltaY;this.setState({...$r,isActive:!0,isDragging:!0,deltaX:zr,deltaY:Ur,isShowContextMenu:!0,mouseX:_o.clientX+5,mouseY:_o.clientY,linkTargetType:Ba.widget,targetCid:At});break}case Ba.panel:{const zr=this.state.deltaX,Ur=this.state.deltaY,ki=sdkStore.getHotItem(At);this.setState({...$r,isActive:!0,isDragging:!0,deltaX:zr,deltaY:Ur,isShowContextMenu:!0,mouseX:_o.clientX+5,mouseY:_o.clientY,linkTargetType:Ba.panel,targetCid:At,targetPanel:ki});break}case Ba.canvasStateList:{var Ea,er;this.setState({...$r,linkTargetType:Ba.canvasStateList});const zr={key:(0,Ts.cF)("ita"),interactionType:3,interactionTrigger:yr((Ea=ma[0])==null?void 0:Ea.key),targetBasketKey:fo.VZ,targetResCanvasKey:At,transition:"auto",transitionDuration:"0.2s",transitionDelay:"0",resetTargetCanvasScrollOffset:!0,resetTargetSubWidgetsState:!0};oa(co.R7.command.linkDesignCreateIta({newInteraction:zr,interactionTrigger:yr((er=ma[0])==null?void 0:er.key),e:_o}));break}case Ba.overlay:{var Pr;this.setState($r);let zr;if(At==="close"){var Aa;zr={key:(0,Ts.cF)("ita"),interactionType:Lr.O2.CloseOverlay,interactionTrigger:yr((Aa=ma[0])==null?void 0:Aa.key)}}else{var fr;zr={key:(0,Ts.cF)("ita"),interactionType:Lr.O2.OpenOverlay,interactionTrigger:yr((fr=ma[0])==null?void 0:fr.key),targetRBPageKey:ie,targetOverlayKey:At,closeWhenClickingOutside:!0,addBackdrop:!0,backdropColor:102,backdropFilterBlurRadius:0,overlayRelativePos:"ce",overlayRelativePosX:.42,overlayRelativePosY:.42,transition:"none",transitionDuration:"",transitionDelay:"0",resetTargetSubWidgetsState:!0}}oa(co.R7.command.linkDesignCreateIta({newInteraction:zr,interactionTrigger:yr((Pr=ma[0])==null?void 0:Pr.key),e:_o}));break}case Ba.canvas:{var Jr;this.setState($r);let zr;if(At==="source"){var qa;zr={key:(0,Ts.cF)("ita"),interactionType:2,interactionTrigger:yr((qa=ma[0])==null?void 0:qa.key),resetTargetCanvasScrollOffset:!0,resetTargetSubWidgetsState:!0,transition:"none",transitionDuration:"",transitionDelay:"0"}}else if(zo||aa){var Ka;zr={key:(0,Ts.cF)("ita"),interactionType:3,interactionTrigger:yr((Ka=ma[0])==null?void 0:Ka.key),targetBasketKey:zo&&sdkStore.isActiveKey((0,Qo.j_)([zo,At]))?zo:fo.VZ,targetResCanvasKey:At,resetTargetCanvasScrollOffset:!0,resetTargetSubWidgetsState:!0,transition:"auto",transitionDuration:"0.2s",transitionDelay:"0"}}else{var rr;zr={key:(0,Ts.cF)("ita"),interactionType:1,interactionTrigger:yr((rr=ma[0])==null?void 0:rr.key),targetRBPageKey:ie,targetResCanvasKey:At,resetTargetCanvasScrollOffset:!0,resetTargetSubWidgetsState:!0,transition:"none",transitionDuration:"",transitionDelay:"0"}}oa(co.R7.command.linkDesignCreateIta({newInteraction:zr,interactionTrigger:yr((Jr=ma[0])==null?void 0:Jr.key),e:_o}));break}case Ba.page:{var Ua;const zr=((Ua=$n)==null?void 0:Ua.length)===0;(be||zr)&&!be&&zr&&MB.notice({text:"\u8BE5\u753B\u5E03\u65E0\u9875\u9762",type:"warning"});const Ur=this.state.deltaX,ki=this.state.deltaY;this.setState({...$r,isActive:!0,isDragging:!0,deltaX:Ur,deltaY:ki,isShowContextMenu:!0,mouseX:_o.clientX+5,mouseY:_o.clientY,linkTargetType:Ba.page,targetCid:At,canvasList:$n});break}case Ba.canvasList:{var _r,ni;this.setState({...$r,linkTargetType:Ba.canvasList});const zr=sdkStore.getHotItem(At);if(!zr)return;const Ur={key:(0,Ts.cF)("ita"),interactionType:1,interactionTrigger:yr((_r=ma[0])==null?void 0:_r.key),targetRBPageKey:zr.sup,targetResCanvasKey:At,resetTargetCanvasScrollOffset:!0,resetTargetSubWidgetsState:!0,transition:"none",transitionDuration:"",transitionDelay:"0"};oa(co.R7.command.linkDesignCreateIta({newInteraction:Ur,interactionTrigger:yr((ni=ma[0])==null?void 0:ni.key),e:_o}));break}}};document.addEventListener("mousemove",Fn),document.addEventListener("mouseup",Ao)}),(0,Se.A)(this,"linkTrack",(z,X)=>{const{selectedItems:ie,selectedLinks:ue,isEditingBasket:oe,isEditingMuban:be}=this.props;if(z){const{linkTargetType:Ae}=this.state,{interactionType:Ne}=z;let Be,Ge;switch(Ne){case fo.N_.TYPE.LinkToCanvas:Ae===Ba.canvasList?Be=na.handleLinkScreenList:Ae===Ba.page?Be=na.handleLinkPage:Be=na.handleLinkScreen;break;case fo.N_.TYPE.LinkToSourceCanvas:Be=na.handleLinkPrev;break;case fo.N_.TYPE.SetBasketCanvas:Ae===Ba.canvasStateList?Be=na.handleLinkScreenStateList:Be=na.handleLinkScreenState;break;case fo.N_.TYPE.openOverlay:Be=na.handleLinkOverlay;break;case fo.N_.TYPE.closeOverlay:Be=na.handleLinkOverlayClose;break;default:Be=na.handleLinkWidget;break}be?Ge=Sa.muBan:oe?Ge=Sa.basketCanvas:Ge=Sa.pageCanvas,X&&ie!=null&&ie.length&&io({link:z,widgetNode:ie[0],isEditGlobalLink:!1,eventNumber:ue.length+1,add_mode:Be,canvas_type:Ge})}}),(0,Se.A)(this,"getContextMenu",()=>{const{selectedItems:z,editingPanelCid:X}=this.props,{linkTargetType:ie,targetPanel:ue,canvasList:oe,targetCid:be}=this.state;let Ne=[this.showHideLinkOption,this.scrollLinkOption];switch(ie){case Ba.panel:{const it=sdkStore.getSubHotItemList(ue.hotAttr.refRBPageKey).reduce((qt,_n)=>(_n.hotAttr.type==="rResCanvas"&&qt.push({label:_n.hotAttr.name,onClick:$n=>this.createPanelStateLink(_n.key,$n)}),qt),[]),zt=[{label:I18N.SettingPanel.first_state,onClick:()=>this.createPanelStateLink(fo.L8)},{label:I18N.SettingPanel.pre_state,onClick:()=>this.createPanelStateLink(fo.Gp)},{label:I18N.SettingPanel.next_state,onClick:()=>this.createPanelStateLink(fo.Oh)},{label:I18N.SettingPanel.last_state,onClick:()=>this.createPanelStateLink(fo.Hg)},{label:"divider"}].concat(it);Ne.push({label:I18N.SettingPanel.link_widget_change,children:zt});break}case Ba.page:{var Be;const it=X?sdkStore.locUpColdCanvasKey(X):null,At=sdkStore.locUpColdCanvasKey((Be=z[0])==null?void 0:Be.key,!0);Ne=oe.map(zt=>{let{key:qt,hotAttr:_n}=zt;return{label:_n.name,disabled:qt===At||qt===it,onClick:$n=>this.createCanvasLink(qt,$n)}});break}}if(ie!==Ba.page&&(Ne.push(this.transformLinkOption),Ne.push(this.setAnimationLinkOption),ie===Ba.widget&&(0,Zi.qK)())){var Ge;const it=(Ge=sdkStore.getHotItem(be))==null?void 0:Ge.hotAttr.type;(0,Zr.b7)(it)&&Ne.push(this.setInputFocusLinkOption)}return Ne}),(0,Se.A)(this,"createPanelStateLink",z=>{var X;const{dispatch:ie,selectedItems:ue}=this.props,{targetCid:oe,mouseX:be,mouseY:Ae}=this.state,Ne=yr((X=ue[0])==null?void 0:X.key),Be={key:(0,Ts.cF)("ita"),interactionType:3,interactionTrigger:Ne,targetBasketKey:oe,targetResCanvasKey:z,transition:"auto",transitionDuration:"0.2s",transitionDelay:"0",resetTargetCanvasScrollOffset:!0,resetTargetSubWidgetsState:!0},Ge={clientX:be,clientY:Ae};ie(co.R7.command.linkDesignCreateIta({newInteraction:Be,interactionTrigger:Ne,e:Ge}))}),(0,Se.A)(this,"createScrollLink",z=>{var X;const{dispatch:ie,selectedItems:ue}=this.props,{targetCid:oe,mouseX:be,mouseY:Ae}=this.state,Ne=yr((X=ue[0])==null?void 0:X.key),Be={key:(0,Ts.cF)("ita"),interactionType:5,interactionTrigger:Ne,targetWidgetKey:oe,scrollToOffsetX:0,scrollToOffsetY:0,scrollToDir:z,transition:"auto",transitionDelay:"0",transitionDuration:"0.2s",iterationCount:"1",iterationInterval:"0"},Ge={clientX:be,clientY:Ae};ie(co.R7.command.linkDesignCreateIta({newInteraction:Be,interactionTrigger:Ne,e:Ge}))}),(0,Se.A)(this,"createVisibilityLink",z=>{var X;const{dispatch:ie,selectedItems:ue}=this.props,{targetCid:oe,mouseX:be,mouseY:Ae}=this.state,Ne=yr((X=ue[0])==null?void 0:X.key),Be={key:(0,Ts.cF)("ita"),targetWidgetKey:oe,interactionType:6,interactionTrigger:Ne,...z==="toggleVisibility"?{actionType:z,setVisibleTransition:"auto",setHiddenTransition:"auto",setHiddenTransitionDuration:"0.2s",setVisibleTransitionDuration:"0.2s",transitionDelay:"0"}:z==="setVisible"?{actionType:z,setVisibleTransition:"auto",setVisibleTransitionDuration:"0.2s",transitionDelay:"0"}:{actionType:z,setHiddenTransition:"auto",setHiddenTransitionDuration:"0.2s",transitionDelay:"0"}},Ge={clientX:be,clientY:Ae};ie(co.R7.command.linkDesignCreateIta({newInteraction:Be,interactionTrigger:Ne,e:Ge}))}),(0,Se.A)(this,"createCanvasLink",(z,X)=>{var ie;const{targetCid:ue}=this.state,{dispatch:oe,selectedItems:be}=this.props,Ae=yr((ie=be[0])==null?void 0:ie.key),Ne={key:(0,Ts.cF)("ita"),interactionType:Lr.O2.LinkToCanvas,interactionTrigger:Ae,targetRBPageKey:ue,targetResCanvasKey:z,resetTargetCanvasScrollOffset:!0,resetTargetSubWidgetsState:!0,transition:"auto",transitionDelay:"0",transitionDuration:"0.2s"};oe(co.R7.command.linkDesignCreateIta({newInteraction:Ne,interactionTrigger:Ae,e:X}))}),(0,Se.A)(this,"createTransformLink",()=>{var z,X;const{dispatch:ie,selectedItems:ue}=this.props,{targetCid:oe,mouseX:be,mouseY:Ae}=this.state,Ne=yr((z=ue[0])==null?void 0:z.key),Be={key:(0,Ts.cF)("ita"),interactionType:13,interactionTrigger:Ne,targetWidgetKey:oe,transformTranslateX:0,transformTranslateY:0,transformScaleX:100,transformScaleY:100,transformRotateZ:((X=sdkStore.getHotItem(oe||""))==null?void 0:X.hotAttr.r)||0,transformRotateX:0,transformRotateY:0,transformOriginX:50,transformOriginY:50,rotate3d:!1,transition:"auto",transitionDelay:"0",transitionDuration:"0.2s",iterationCount:"1",iterationInterval:"0"},Ge={clientX:be,clientY:Ae};ie(co.R7.command.linkDesignCreateIta({newInteraction:Be,interactionTrigger:Ne,e:Ge}))}),(0,Se.A)(this,"createSetAnimationLink",()=>{var z;const{dispatch:X,selectedItems:ie}=this.props,{targetCid:ue,mouseX:oe,mouseY:be}=this.state,Ae=yr((z=ie[0])==null?void 0:z.key),Ne={key:(0,Ts.cF)("ita"),interactionType:14,interactionTrigger:Ae,targetWidgetKey:ue,animationName:"",animationDuration:1e3,transitionDelay:"0",iterationCount:"1",iterationInterval:"0"},Be={clientX:oe,clientY:be};X(co.R7.command.linkDesignCreateIta({newInteraction:Ne,interactionTrigger:Ae,e:Be}))}),(0,Se.A)(this,"createSetInputFocusLink",()=>{var z;const{dispatch:X,selectedItems:ie}=this.props,{targetCid:ue,mouseX:oe,mouseY:be}=this.state,Ae=yr((z=ie[0])==null?void 0:z.key),Ne={key:(0,Ts.cF)("ita"),interactionType:15,interactionTrigger:Ae,targetWidgetKey:ue,isFocus:!0,isSelectContent:!1,transitionDelay:"0"},Be={clientX:oe,clientY:be};X(co.R7.command.linkDesignCreateIta({newInteraction:Ne,interactionTrigger:Ae,e:Be}))}),this.state=$r,this.showHideLinkOption={label:I18N.SettingPanel.show_hide,children:[{label:I18N.SettingPanel.show,onClick:z=>this.createVisibilityLink("setVisible",z)},{label:I18N.SettingPanel.hide,onClick:z=>this.createVisibilityLink("setHidden",z)},{label:I18N.SettingPanel.switch,onClick:z=>this.createVisibilityLink("toggleVisibility",z)}]},this.scrollLinkOption={label:I18N.SettingPanel.roll_to,children:[{label:I18N.SettingPanel.scroll_to_vertical,onClick:z=>this.createScrollLink("vertical",z)},{label:I18N.SettingPanel.scroll_to_horizontal,onClick:z=>this.createScrollLink("horizontal",z)},{label:I18N.SettingPanel.scroll_to_both,onClick:z=>this.createScrollLink("both",z)}]},this.transformLinkOption={label:I18N.Interaction.transform.name,onClick:this.createTransformLink},this.setAnimationLinkOption={label:I18N.Interaction.set_animation.name,onClick:this.createSetAnimationLink},this.setInputFocusLinkOption={label:I18N.Interaction.setInputFocus.name,onClick:this.createSetInputFocusLink}}render(){const{showLinkDesign:D,placement:z,startX:X,startY:ie,canvasLeft:ue,canvasTop:oe,isQuickCreateWidget:be,height:Ae}=this.props;if(!D)return null;const{isDragging:Ne,isActive:Be,deltaX:Ge,deltaY:it,isShowContextMenu:At,mouseX:zt,mouseY:qt}=this.state,_n={left:X+ue,top:ie+oe},Fn={x:X+(z==="left"?-26:26)+Ge,y:ie+it},Ao={left:Fn.x-X,top:Fn.y-ie},_o=(0,Ml.Xb)(Fn.x-X,Fn.y-ie),zo=(0,Ml.FP)(Fn.x-X,Fn.y-ie),aa={width:_o,transform:"rotate("+zo+"deg)"},oa=Kt()("design",{"is-dragging":Ne,"is-active":Be,"shield-corner-events":be}),ma=this.state.isLinkDesignQuickMarkHighlightState;return(0,fe.jsxs)(fe.Fragment,{children:[(Ne||ma)&&(0,Cc.Hl)(ii.c.GUIDE_NOVICE_2309_TASK_3)&&(0,fe.jsx)(tr,{className:Kt()("quick-create-mark",{isHighlight:ma}),style:{top:_n.top-Ae/2,left:_n.left+8},children:(0,fe.jsx)(Fo.A,{content:I18N.Interaction.header_title1,children:(0,fe.jsx)(Wi.C,{size:16,name:"interaction/self_mark"})})}),(0,fe.jsxs)(Ra,{id:"link-design",className:oa,style:_n,children:[(0,fe.jsx)("div",{className:"line",style:aa}),(0,fe.jsx)("div",{className:"handler",style:Ao,onMouseDown:this.handleDown,children:(0,fe.jsx)(Wi.C,{name:"new_replace/thunder"})}),At&&(0,fe.jsx)(Oa,{position:{top:qt,left:zt},className:"size-small",onClose:()=>{this.setState($r)},children:this.getContextMenu().map((Ea,er)=>Ea.children?(0,fe.jsx)(yi.Dr,{text:Ea.label,dataIndex:er,isAiry:!0,children:Ea.children.map((Pr,Aa)=>Pr.label==="divider"?(0,fe.jsx)(yi.cG,{},Aa):(0,fe.jsx)(yi.Dr,{text:Pr.label,dataIndex:Aa,onClick:Pr.onClick},Aa))},er):(0,fe.jsx)(yi.Dr,{text:Ea.label,dataIndex:er,disabled:Ea.disabled,onClick:Ea.onClick},er))})]})]})}}var Ee=s(20119),Ue=s(10472),ke=s(67934),Ve=s(40610),st=s(12410);const ut=(0,On.Mz)([nr.nE,Ee.c,l.dK,l.pO,l.Jv,Q.FG,l.eo,Ue.r,U.lY,l.M_,st.X.query.getIsShallowEditing,U.jx],(K,D,z,X,ie,ue,oe,be,Ae,Ne,Be,Ge)=>{let{isEditingCombo:it}=be;const At=K[0],zt=K.length===1&&At.key===oe;if(K.length===1&&At.hotAttr.type===C.x.WCode||zt||Ae||Ge===y.qi.OnlyView)return!1;const _n=K.length===0,$n=D&&(0,Ve.AG)(D),Fn=z||X||ie||ue,Ao=it?!1:K.some(oa=>!sdkStore.locUpHotCanvasKey(oa.key)),_o=K.some(oa=>[C.x.wFlowClosed,C.x.WFlowOpened].includes(oa.hotAttr.type)),zo=K.some(oa=>oa.hotAttr.type===C.x.WSwimlane)&&Be,aa=K.some(oa=>[C.x.WSticky,C.x.WTear].includes(oa.hotAttr.type));return!(_n||$n||Fn||Ao||_o||zo||aa||!_n&&Ne)}),Rt=(0,On.Mz)([ut,l.eo,l.X_,nr.nE,l.wq,l.YT,Q.UV,U.jI,ke.V5,Ue.r,l.Pz],(K,D,z,X,ie,ue,oe,be,Ae,Ne,Be)=>{let{isEditingCombo:Ge,isEditingMuban:it,isEditingBasket:At}=Ne;if(!K||(X==null?void 0:X.length)!==1)return{showLinkDesign:!1};const{canvasTop:zt,canvasLeft:qt}=Be,_n="right",$n=X.length===1&&X[0].hotAttr.type===C.x.WTable;let Fn,Ao,_o,zo;if(K){const oa=z/100,ma=X.map(fr=>fr.key),[Ea,er,Pr,Aa]=ma.reduce((fr,Jr)=>(0,ca.il)(fr,sdkStore.getHotAABB(Jr)),(0,ca.F1)());Fn=Pr*oa,Ao=($n?er:.5*(er+Aa))*oa,_o=Math.abs(Pr-Ea)*oa,zo=Math.abs(Aa-er)*oa}return{showLinkDesign:K,rootScreenCid:D,placement:_n,startX:Fn,startY:Ao,width:_o,height:zo,isQuickCreateWidget:!!ie,currentProjectMeta:ue,widgetStore:oe,selectedItems:X,editingPanelCid:be,selectedLinks:Ae,isEditingCombo:Ge,isEditingMuban:it,isEditingBasket:At,canvasTop:zt,canvasLeft:qt}}),en=(0,I.Ng)(K=>Rt(K))(pt);var Xt=s(96986),Zn=s(24496),bo=s(45611);const Po=(0,On.Mz)([nr.nE],K=>{const D=[];return K.forEach(z=>D.push(...(0,bo.Dx)(z))),D});var ha=s(39e3);const xa=Yt.Ay.div.withConfig({displayName:"styles__StyledSmartSelectionGapInfo",componentId:"sc-1jlh17j-0"})(["position:absolute;background-color:#f54edb;border-radius:2px;z-index:9999;span{font-size:12px;padding:4px;line-height:12px;color:#fff;}"]),da=Yt.Ay.div.withConfig({displayName:"styles__StyledRadiusResizerHandler",componentId:"sc-1jlh17j-1"})(["position:absolute;padding:6px;background-color:#333333;border-radius:2px;top:9999px;left:999px;display:flex;pointer-events:none;z-index:",";span{font-size:12px;line-height:12px;color:#fff;}"],C.Q.STICKY_Z+1);class Ko extends r.PureComponent{constructor(D){super(D),(0,Se.A)(this,"handleMove",z=>{if(!document.querySelector("#screens").contains(z.target)){this.handleRemove();return}document.body.contains(this.$elem)||document.body.appendChild(this.$elem),this.setState({position:{left:z.clientX+22+"px",top:z.clientY+8+"px"}})}),(0,Se.A)(this,"handleRemove",()=>{document.body.contains(this.$elem)&&document.body.removeChild(this.$elem)}),(0,Se.A)(this,"handleMouseOut",z=>{this.handleRemove()}),this.$elem=document.createElement("div"),this.$elem.id="DESIGN_RADIUS_RESIZER_HANDLER",this.state={position:{left:"",top:""}}}componentDidMount(){document.body.appendChild(this.$elem),document.addEventListener("mousemove",this.handleMove),document.addEventListener("mouseout",this.handleMouseOut)}componentWillUnmount(){document.removeEventListener("mousemove",this.handleMove),document.removeEventListener("mouseout",this.handleMouseOut),this.handleRemove()}render(){const{resizingRadiusNum:D}=this.props,{position:z}=this.state,X=I18N.dConst.inspector.radius+" "+D;return(0,Un.createPortal)((0,fe.jsx)(da,{style:z,children:(0,fe.jsx)("span",{children:X})}),this.$elem)}}class Fa extends r.PureComponent{constructor(D){super(D),(0,Se.A)(this,"handleMove",z=>{if(!document.querySelector("#screens").contains(z.target)){this.handleRemove();return}document.body.contains(this.$elem)||document.body.appendChild(this.$elem),this.setState({position:{left:z.clientX+8+"px",top:z.clientY+8+"px"}})}),(0,Se.A)(this,"handleRemove",()=>{document.body.contains(this.$elem)&&document.body.removeChild(this.$elem)}),(0,Se.A)(this,"handleMouseOut",z=>{this.handleRemove()}),this.$elem=document.createElement("div"),this.$elem.id="DESIGN_ADJUST_GAP_INFO",this.state={position:{left:"",top:""}}}componentDidMount(){document.body.appendChild(this.$elem),document.addEventListener("mousemove",this.handleMove),document.addEventListener("mouseout",this.handleMouseOut)}componentWillUnmount(){document.removeEventListener("mousemove",this.handleMove),document.removeEventListener("mouseout",this.handleMouseOut),this.handleRemove()}render(){const{gap:D}=this.props,{position:z}=this.state;return(0,Un.createPortal)((0,fe.jsx)(xa,{style:z,children:(0,fe.jsx)("span",{children:D})}),this.$elem)}}class Pa extends r.PureComponent{constructor(){super(...arguments),(0,Se.A)(this,"handleKeyDown",D=>{const{dispatch:z,isEditingComment:X}=this.props;if(D.repeat||MB.f.isEditTable||MB.isEditing(D)||X)return;const ie=D.metaKey||D.ctrlKey||D.altKey||D.shiftKey,ue=D.keyCode===83,oe=D.keyCode===32,be=D.metaKey||D.ctrlKey,Ae=D.altKey;Ae&&D.preventDefault();const Ne=D.shiftKey;z({type:"set:key:flags",payload:{isKeySDown:ue,isSpaceDown:oe,isCtrlDown:be,isAltDown:Ae,isShiftDown:Ne}}),!be&&ue?(z(y.GO.hoverItem("")),z(y.GO.select([]))):oe&&D.preventDefault()}),(0,Se.A)(this,"handleKeyUp",async D=>{this.props.dispatch({type:"set:key:keyFlags",payload:{isAltDown:D.altKey}}),this.props.dispatch(y.GO.toggleIsShowFloatingToolbar(!0));const{getIsAltDown:z}=this.props;z()||this.props.dispatch({type:"reset:key:flags"})})}componentDidMount(){window.addEventListener("blur",this.handleKeyUp)}componentWillUnmount(){window.removeEventListener("blur",this.handleKeyUp)}render(){const{isKeyDown:D,isAdjustingGap:z,gap:X,isShowRadiusResizerHandler:ie,resizingRadiusNum:ue}=this.props;return(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)(ha.A,{target:document,onKeyDown:this.handleKeyDown}),D&&(0,fe.jsx)(ha.A,{target:document,onKeyUp:this.handleKeyUp}),z&&(0,fe.jsx)(Fa,{gap:X}),ie&&(0,fe.jsx)(Ko,{resizingRadiusNum:ue})]})}}const sr=K=>{let D;return[function(){for(var z=arguments.length,X=new Array(z),ie=0;ie<z;ie++)X[ie]=arguments[ie];return D=X},()=>K(...D)]},[vr,Or]=sr(K=>K),Tr=(0,On.Mz)([Xt.ud,l.X_,l.ZS,Po,l.Pz,l.wq,l.aM,Mo.$,l.iv,l.w8,l.mX,U.Ro,Zn.aJ],(K,D,z,X,ie,ue,oe,be,Ae,Ne,Be,Ge,it)=>{const{isKeySDown:At,isSpaceDown:zt,isCtrlDown:qt,isAltDown:_n,isShiftDown:$n}=z,Fn=At||zt||qt||_n||$n||it,{isAdjustingColGap:Ao,isAdjustingRowGap:_o,colGap:zo,rowGap:aa}=be,oa=Ao?zo:aa,ma=Ao||_o,Ea=Ae&&Ne;return vr(_n),{isEditingComment:K,isKeyDown:Fn,getIsAltDown:Or,isInPreview:oe,gap:oa,isAdjustingGap:ma,isShowRadiusResizerHandler:Ea,resizingRadiusNum:Be,handMode:Ge}}),Kr=(0,I.Ng)(K=>Tr(K))(Pa);var Ha=s(86964);const Br=(0,r.memo)(K=>{var D,z,X;let{hotItem:ie,scale:ue,basket:oe}=K;const be=((D=oe.hotAttr)==null?void 0:D.bunch)===C.x.RbPage,Ae=ie.key,{x:Ne,y:Be}=((z=sdkStore.getHotItem(Ae))==null?void 0:z.hotAttr)||{},{x:Ge,y:it}=((X=sdkStore.getSourceHotItem(Ae))==null?void 0:X.hotAttr)||{},{w:At,h:zt}=oe.hotAttr,qt=ue/100,_n={position:"absolute",transform:"translate("+(Ne-Ge)*qt+"px,"+(Be-it)*qt+"px)",width:At*qt,height:zt*qt,border:be?"1px dashed "+Ha.fm.color_master.value_light:"1px dashed "+Ha.fm.color_comments.value_light,pointerEvents:"none"};return(0,fe.jsx)("div",{className:"basket-viewport",style:_n})});var Gi=s(21856),xi=s(79209),Fr=s(47693);const Fi=Yt.Ay.span.withConfig({displayName:"styles__StyledCanvasName",componentId:"sc-1jxaee9-0"})(["position:absolute;cursor:pointer;display:inline-flex;height:20px;color:rgba(255,255,255,0.8);&.is-black{color:rgba(0,0,0,0.7);}&.is-editing-title{span:not(.overlay-icon){visibility:hidden;padding:1px 3px;}input{visibility:visible;}}span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:inherit;line-height:20px;}&.active,&:active,&:hover{color:",";.overlay-icon{color:",";}}.overlay-icon{flex-shrink:0;width:20px;height:20px;color:",";svg{width:20px;height:20px;}}&.as-overlay{input{width:calc(100% - 20px);left:20px;}}input{position:absolute;display:flex;left:-3px;top:-1px;width:100%;height:20px;pointer-events:auto;font-size:12px;line-height:16px;background-color:",";border:1.5px solid ",";border-radius:1px;padding:0 1.5px;min-width:8px;max-width:inherit;visibility:hidden;}"],K=>K.theme.color_text_link_normal,K=>K.theme.color_text_link_normal,K=>K.theme.color_text_L3,K=>K.theme.color_text_btn,K=>K.theme.color_proto),Ii=Yt.Ay.div.withConfig({displayName:"styles__StyledCanvasCtrlButtons",componentId:"sc-1jxaee9-1"})(["position:absolute;cursor:pointer;display:flex;.icon{&:not(:last-child){margin-right:4px;}width:16px;height:16px;color:",";&:hover{color:",";}&.is-disabled{cursor:not-allowed;> *{fill:",";}}}"],K=>K.theme.color_text_L2,K=>K.theme.color_text_link_normal,K=>K.theme.color_text_L3),Ks=(0,r.memo)(K=>{var D;let{hotItem:z,scale:X,className:ie,dispatch:ue,canDel:oe,basket:be}=K;const Ae=(be==null||(D=be.hotAttr)==null?void 0:D.bunch)===C.x.RbPage,Ne=(0,r.useCallback)(()=>{const{sup:Ao,hotAttr:{zIndex:_o,order:zo}}=z,aa=sdkStore.getSubHotItemList(Ao).map(Aa=>Aa.key),{highZIndexItemsKeyList:oa}=(0,Gi.CB)(aa,_o),ma=sdkStore.dupWithinPage([z.key])[0],Ea=[ma,...oa];let er=_o,Pr=zo;return Ea.forEach(Aa=>{sdkStore.updateHotAttrMerge(Aa,{zIndex:++er,order:++Pr})}),(0,Gi.rq)([ma],Ao,sdkStore,!1),ma},[z]),Be=(0,r.useCallback)(()=>{if(!(0,xi._c)({type:"widget",count:(0,xi.UU)({initKeyList:[z.key],sdk:sdkStore})}))return;sdkStore.combineMergeMark("dup-canvas");const Ao=Ne();ue({type:"entry:refresh:canvas:order"}),ue({type:"entry:layout:basket-canvas"}),sdkStore.updateHotAttrKV(z.sup,"mtime",rootSdk.fssCmt.getClockStore().getMtime()),sdkStore.combineMerge("dup-canvas"),ue({type:"entry:clear:selection"}),ue({type:"entry:select:items",payload:{cids:[Ao]}}),MB.commonGuideHelper.closeGuide(ii.c.GUIDE_BASKET_QUICK_COPY_CANVAS),MB.commonGuideHelper.markGuideAsRead(ii.c.GUIDE_BASKET_QUICK_COPY_CANVAS),(0,Fr.RW)({operation_type:Fr.Q1.CopyState,operation_from:Ae?Fr.IL.Muban:Fr.IL.Dynamic})},[ue,z.key,Ne,Ae]),Ge=(0,r.useCallback)(()=>{ue({type:"entry:basket:delete",payload:{removeList:[z.key]}}),ue({type:"entry:refresh:link-list"}),ue({type:"entry:clear:selection"}),(0,Fr.RW)({operation_type:Fr.Q1.DeleteState,operation_from:Ae?Fr.IL.Muban:Fr.IL.Dynamic})},[ue,z.key,z.sup,Ae]);if(!sdkStore.isActiveKey(z==null?void 0:z.key))return null;const it=X/100,{x:At,y:zt,r:qt,w:_n,h:$n}=sdkStore.getHotBound(z.key),Fn={transform:"translate("+((At+_n*.5)*it-40)+"px,"+((zt-$n*.5)*it-20)+"px) rotate("+qt+"deg)"};return(0,fe.jsxs)(Ii,{className:ie,style:Fn,children:[(0,fe.jsx)(Wi.C,{name:"art_board/basket/canvas_dup",onClick:Be}),(0,fe.jsx)(Wi.C,{name:"art_board/basket/canvas_del",onClick:oe?Ge:void 0,isDisabled:!oe})]})}),Ul=(0,r.memo)(K=>{var D,z;let{hotItem:X,scale:ie,currentScreen:ue}=K;if(!sdkStore.isActiveKey(X==null?void 0:X.key))return null;const oe=ie/100,{x:be,y:Ae,r:Ne,w:Be,h:Ge}=sdkStore.getHotBound(X.key),{deviceOrientation:it,deviceW:At,deviceH:zt}=ue,qt=it==="landscape",_n=qt?zt:At,$n=qt?At:zt,Fn={width:Math.min(_n*oe,Be*oe),transform:"translate("+(be-Be*.5)*oe+"px,"+(Ae-Ge*.5+$n)*oe+"px) rotate("+Ne+"deg)",opacity:(D=X.hotAttr)!=null&&D.isVisible?1:0},Ao={height:Math.min($n*oe,Ge*oe),transform:"translate("+(be-Be*.5+_n)*oe+"px,"+(Ae-Ge*.5)*oe+"px) rotate("+Ne+"deg)",opacity:(z=X.hotAttr)!=null&&z.isVisible?1:0};return(0,fe.jsxs)(fe.Fragment,{children:[Ge>$n&&(0,fe.jsx)("div",{className:"first-page-divider",style:Fn},X.key+"-h"),Be>_n&&(0,fe.jsx)("div",{className:"first-page-divider",style:Ao},X.key+"-v")]})});var ts=s(57479),rn=s(75810);class Ft extends r.PureComponent{constructor(D){super(D),(0,Se.A)(this,"setInputRef",z=>this.$input=z),(0,Se.A)(this,"handleInputChanged",z=>{this.setState({title:z.target.value})}),(0,Se.A)(this,"handleInputConfirmed",z=>{const{hotItem:X,dispatch:ie}=this.props;if(z.trim()===""||z.includes("/")){MB.notice({text:I18N.Common.name_cannot_be_empty_or_symbol,type:"warning"}),this.setState({title:X.hotAttr.name,isEditingTitle:!1});return}this.setState({isEditingTitle:!1}),ie({type:"entry:widget:change",payload:{flatChgList:[{key:X.key,hotAttr:{name:z}}],shouldReBuildTree:!0}})}),(0,Se.A)(this,"handleInputKeyDown",z=>{(z.key===ts._.Enter||z.key===ts._.Escape)&&(z.preventDefault(),this.handleInputConfirmed(z.target.value))}),(0,Se.A)(this,"handleInputFocus",z=>{z.target.select()}),(0,Se.A)(this,"handleInputBlur",z=>{this.handleInputConfirmed(z.target.value)}),(0,Se.A)(this,"handleTitleDblClicked",()=>{const{onlyView:z}=this.props;z||this.setState({isEditingTitle:!0},()=>{var X;return(X=this.$input)==null?void 0:X.focus()})}),this.state={isEditingTitle:!1,title:D.hotItem.hotAttr.name},this.$input=null}static getDerivedStateFromProps(D,z){let{title:X,isEditingTitle:ie}=z;return D.hotItem.hotAttr.name!==X&&!ie?{title:D.hotItem.hotAttr.name}:null}render(){const{hotItem:D,scale:z,isTitleActive:X,screenBgSolidColor:ie}=this.props,ue=ie.toString(16).padStart(8,"0"),oe=(0,rn.EM)(ue,"E5E5E5"),be=(0,rn.bJ)(oe,"FFFFFF"),Ae=(0,rn.bJ)(oe,"000000"),Ne=be<Ae,Be=D.hotAttr.asOverlay,{key:Ge}=D;if(!sdkStore.isActiveKey(Ge))return null;const{isEditingTitle:it,title:At}=this.state,zt=z/100,{x:qt,y:_n,r:$n,w:Fn,h:Ao}=sdkStore.getHotBound(Ge),_o={maxWidth:(Fn-20)*zt,transform:"translate("+(qt-Fn*.5)*zt+"px,"+((_n-Ao*.5)*zt-22)+"px) rotate("+$n+"deg)"};return(0,fe.jsxs)(Fi,{className:Kt()("canvas_title_"+Ge,"canvas-title",{"is-editing-title":it,active:X,"is-black":Ne,"as-overlay":Be}),style:_o,onDoubleClick:this.handleTitleDblClicked,children:[Be&&(0,fe.jsx)("span",{className:"overlay-icon",children:(0,fe.jsx)(Wi.C,{name:"left_panel/overlay/new"})}),(0,fe.jsx)("form",{children:(0,fe.jsx)("input",{ref:this.setInputRef,value:At,onChange:this.handleInputChanged,onKeyDown:this.handleInputKeyDown,onFocus:this.handleInputFocus,onBlur:this.handleInputBlur})}),(0,fe.jsx)("span",{children:At})]})}}const no=K=>{const{onlyView:D}=K,z=(0,I.d4)(l.Ur),X=(0,I.d4)(q.O4),ie=(0,I.d4)(l.X_),ue=(0,w.t6)(X,z),oe=(0,I.d4)(Q.UV),be=(0,I.d4)(Q.RX),Ae=(0,I.d4)(nr.p$),Ne=(0,r.useMemo)(()=>be?oe.getRenderableSubHotItems(be).filter(zt=>zt.hotAttr.type===C.x.Canvas):[],[oe,be]),Be=(0,I.d4)(U.jI),Ge=(0,I.d4)(U.bt),it=(0,I.d4)(U.PR),At=(0,I.wA)();return be?(0,fe.jsxs)("div",{className:"canvas-operation-wrap",children:[(0,fe.jsx)("div",{className:"canvas-title",children:Ne.map(zt=>{const qt=Ae.includes(zt.key);return zt.hotAttr.isVisible?(0,fe.jsx)(Ft,{hotItem:zt,scale:ie,onlyView:D,dispatch:At,isTitleActive:qt,screenBgSolidColor:ue},"title"+zt.key):null})}),(Be||Ge)&&it&&!D&&(0,fe.jsx)("div",{className:"basket-actions-container",children:Ne.map((zt,qt)=>(0,fe.jsxs)(r.Fragment,{children:[(0,fe.jsx)(Ks,{className:qt===0?ii.c.GUIDE_BASKET_QUICK_COPY_CANVAS:"",hotItem:zt,scale:ie,dispatch:At,canDel:Ne.length>1,basket:it}),(0,fe.jsx)(Br,{hotItem:zt,scale:ie,basket:it})]},zt.key))}),!D&&!Be&&!Ge&&z.isShowDeviceGuide&&z.device!=="none"&&(0,fe.jsx)("div",{className:"canvas-divider",children:Ne.map(zt=>!zt.hotAttr.asOverlay&&(0,fe.jsx)(Ul,{hotItem:zt,currentScreen:z,scale:ie},"divider"+zt.key))})]}):null};var wa=s(19396),za=s.n(wa),hr=s(547);const ar=Yt.Ay.div.withConfig({displayName:"styles__StyledRange",componentId:"sc-1k7dwzc-0"})(["z-index:1;position:absolute;pointer-events:none;background:",";border:1px solid ",";"],K=>K.theme.color_grid,K=>K.theme.color_proto);class mi extends r.PureComponent{constructor(){super(...arguments),(0,Se.A)(this,"startWithShift",!1),(0,Se.A)(this,"originalSelection",[]),(0,Se.A)(this,"isRangeSelectMindNode",!1),(0,Se.A)(this,"handleScrollContainer",(D,z)=>{const{canvasOffset:{x:X,y:ie},dispatch:ue}=this.props,oe={x:X+D,y:ie+z};ue({type:"entry:set:canvas:offset",payload:{offset:oe}})}),(0,Se.A)(this,"handleFirstDrag",D=>{this.startWithShift=D.shiftKey;const{isFromLockWidget:z,selection:X,editMindKey:ie,selectedMindNodeKeys:ue,dispatch:oe}=this.props;this.isRangeSelectMindNode=ie&&X.includes(ie),this.originalSelection=this.isRangeSelectMindNode?ue:X,z&&!this.isRangeSelectMindNode&&oe({type:"entry:clear:selection"})}),(0,Se.A)(this,"handleDrag",za()(D=>{this.props.dispatch({type:"selection:update:state",payload:{selectionUndone:!0}}),this.dispatchSelectItems({mouseInfo:D})},16,{trailing:!1})),(0,Se.A)(this,"handleRelease",D=>{let{x1:z,y1:X,x2:ie,y2:ue}=D;const{dispatch:oe}=this.props;oe({type:"end:range:select"}),oe({type:"selection:update:state",payload:{selectionUndone:!1}}),!(Math.abs(z-ie)<=4&&Math.abs(X-ue)<=4)&&(oe({type:"entry:update:select:items:links"}),this.startWithShift=!1)}),(0,Se.A)(this,"dispatchSelectItems",D=>{let{mouseInfo:{x1:z,y1:X,x2:ie,y2:ue}}=D;const{scale:oe,dispatch:be}=this.props,Ae=(0,hr.vI)({startX:z,startY:X,endX:ie,endY:ue},oe),Ne=(0,hr.rn)(Ae);if(this.isRangeSelectMindNode){setTimeout(()=>be({type:"entry:mind:mindNode:by:rect",payload:{rect:Ne,originalSelection:this.startWithShift?this.originalSelection:[]}}));return}setTimeout(()=>be({type:"entry:select:items:by:rect",payload:{rect:Ne,originalSelection:this.startWithShift?this.originalSelection:[]}}))})}render(){const{isActive:D,startX:z,startY:X,viewportRect:ie,canvasOffset:ue,scale:oe,selection:be}=this.props;return D?(0,fe.jsx)(Vi,{startX:z,startY:X,canvasOffset:ue,viewportRect:ie,scale:oe,selection:be,onScrollContainer:this.handleScrollContainer,onFirstDrag:this.handleFirstDrag,onDrag:this.handleDrag,onRelease:this.handleRelease}):null}}class Vi extends r.PureComponent{constructor(D){super(D);const{startX:z,startY:X,scale:ie,canvasOffset:ue,viewportRect:oe}=D;this.startWorldPos={x:(z-window.innerWidth/2-ue.x)/(ie/100),y:(X-oe.top-oe.height/2-ue.y)/(ie/100)},this.state={pointRangeStart:{x:z,y:X-oe.top},pointRangeEnd:{x:z,y:X-oe.top},startWorldPos:{x:(z-window.innerWidth/2-ue.x)/(ie/100),y:(X-oe.top-oe.height/2-ue.y)/(ie/100)},startScale:ie,startOffset:ue}}static getDerivedStateFromProps(D,z){const{canvasOffset:X,scale:ie,viewportRect:ue,onDrag:oe}=D,{startWorldPos:be,startOffset:Ae,startScale:Ne,pointRangeEnd:Be}=z;if(Ae.x!==X.x||Ae.y!==X.y||Ne!==ie){const Ge={x:be.x*ie/100+X.x+window.innerWidth/2,y:be.y*ie/100+X.y+ue.height/2};return oe({x1:Ge.x,y1:Ge.y,x2:Be.x,y2:Be.y}),{pointRangeStart:Ge}}return null}componentDidMount(){const{startX:D,startY:z,viewportRect:X,onFirstDrag:ie,onScrollContainer:ue,onRelease:oe}=this.props,{top:be,left:Ae,bottom:Ne,right:Be}=X;MB.f.isSelecting=!0;let Ge=!1;const it=zt=>{const qt=zt.clientX,_n=zt.clientY;let $n=0,Fn=0;if(qt<Ae?$n=10:qt>Be&&($n=-10),_n<0?Fn=10:_n>Ne-be&&(Fn=-10),($n||Fn)&&ue($n,Fn),Ge===!1&&(Ge=Math.abs(qt-D)>5||Math.abs(_n-z)>5,Ge&&ie(zt)),Ge){const Ao={pointRangeEnd:{x:qt,y:_n-be}};this.setState(Ao,()=>{const{pointRangeStart:_o,pointRangeEnd:zo}=this.state;this.props.onDrag({x1:_o.x,y1:_o.y,x2:zo.x,y2:zo.y})})}},At=()=>{var zt,qt;document.removeEventListener("mousemove",it),document.removeEventListener("mouseup",At),MB.f.isSelecting=!1;const{pointRangeStart:_n,pointRangeEnd:$n}=this.state;oe({x1:_n.x,y1:_n.y,x2:$n.x,y2:$n.y}),!(ENV.IS_WONDER_SHARE||this.props.selection.length<2||(zt=MB)!=null&&(zt=zt.commonGuideHelper)!=null&&zt.checkGuideHasShown(ii.c.GUIDE_COPY_AS_PNG))&&((qt=MB)==null||(qt=qt.commonGuideHelper)==null||qt.tryToShowGuide(ii.c.GUIDE_COPY_AS_PNG))};document.addEventListener("mousemove",it),document.addEventListener("mouseup",At)}render(){const{pointRangeStart:D,pointRangeEnd:z}=this.state,X={top:Math.min(D.y,z.y),left:Math.min(D.x,z.x),width:Math.abs(D.x-z.x),height:Math.abs(D.y-z.y)};return X.width>4||X.height>4?(0,fe.jsx)(ar,{style:X}):null}}const bs=(0,On.Mz)([l.X_,l.ER,l.$S,l.rV,nr.p$,Zn.WH,Zn.ul],(K,D,z,X,ie,ue,oe)=>{const{isActive:be,isFromLockWidget:Ae,startX:Ne,startY:Be}=X;return{scale:K,canvasOffset:D,viewportRect:z,isActive:be,isFromLockWidget:Ae,startX:Ne,startY:Be,selection:ie,editMindKey:ue,selectedMindNodeKeys:oe}}),Os=(0,I.Ng)(K=>bs(K))(mi);var ml=s(70093),Ki=s.n(ml),Bs=s(26781);const ac=function(K,D,z){return K===void 0&&(K=0),D===void 0&&(D=1),z===void 0&&(z=null),Number.parseFloat((1/D*K).toFixed(2))+z},qc=(K,D)=>{const z=[],X=(0,hr.H4)(K,D);if(X.width<K.width+D.width)z[0]=null;else{const ie=Math.round(X.width)-(Math.round(K.width)+Math.round(D.width)),ue=D.left>K.left;z[0]=ue?ie:-ie}if(X.height<K.height+D.height)z[1]=null;else{const ie=Math.round(X.height)-(Math.round(K.height)+Math.round(D.height)),ue=D.top>K.top;z[1]=ue?ie:-ie}return z},Sc=(K,D)=>{if((0,hr.CU)(K,D))return{top:Math.round(K.top)-Math.round(D.top),right:Math.round(D.left)+Math.round(D.width)-(Math.round(K.left)+Math.round(K.width)),bottom:Math.round(D.top)+Math.round(D.height)-(Math.round(K.top)+Math.round(K.height)),left:Math.round(K.left)-Math.round(D.left)};{const z={},X=qc(K,D);return X[0]>0?z.right=X[0]:X[0]<0&&(z.left=Math.abs(X[0])),X[1]>0?z.bottom=X[1]:X[1]<0&&(z.top=Math.abs(X[1])),z}},ei=K=>K*100+"%",as=K=>[K.left,K.top,K.left+K.width,K.top+K.height];class As extends r.PureComponent{constructor(){super(...arguments),(0,Se.A)(this,"getDistanceMarksStyle",D=>{const{ratio:z}=this.props;return{width:D.width*z,height:D.height*z,left:D.left*z,top:D.top*z}}),(0,Se.A)(this,"mapDistanceMarks",(D,z)=>{let[X,ie]=D;const{style:ue,renderValue:oe}=this.props,{showStartAndEndBoundary:be,colorForLines:Ae,colorForText:Ne,backgroundColorForText:Be,dashed:Ge}=ue,it=this.getMarkStyle(X,ie),At=Math.abs(ie),zt=Math.round(ac(At));return(0,fe.jsxs)("div",{children:[(0,fe.jsx)("div",{className:"distance-line "+X,style:{...it.line,[["top","bottom"].includes(X)?"borderLeftStyle":"borderTopStyle"]:Ge?"dashed":"solid",borderColor:Ae}}),oe?oe({value:zt,style:it.value,customClassName:"distance-value "+X}):(0,fe.jsx)("span",{className:"distance-value "+X,style:{...it.value,color:Ne,backgroundColor:Be},children:zt})]},z+"-"+ie)}),(0,Se.A)(this,"getMarkStyle",(D,z)=>{const{baseRect:X,refRect:ie}=this.props,ue={line:{},value:{},endBoundary:{}},oe=as(X),be=as(ie),Ae=(0,ca.Pn)(oe,be),Ne=["right","left"],Be=["right","bottom"],Ge=["top","bottom"],it=Ne.includes(D)?z/X.width:z/X.height,At=(ie.left-X.left+ie.width/2)/X.width,zt=(ie.top-X.top+ie.height/2)/X.height,qt=Ge.includes(D)?"left":"top";return ue.line={[D]:z<0?0:ei(-it),[qt]:Ae?ei(Math.abs(qt==="left"?At:zt)):"50%",[Ne.includes(D)?"width":"height"]:ei(Math.abs(it))},ue.endBoundary={[D]:ei(-it)},ue.value={[Ne.includes(D)?"left":"top"]:Be.includes(D)?ei(1+it/2):ei(-it/2),[qt]:Ae?ei(Math.abs(qt==="left"?At:zt)):"50%"},ue})}render(){const{baseRect:D,refRect:z}=this.props,X=Sc(D,z),ie=this.getDistanceMarksStyle(D);return(0,fe.jsx)("div",{className:"distance-marks",style:ie,children:Object.entries(X).map(this.mapDistanceMarks)})}}const Ys=K=>{let{refRect:D,ratio:z,style:{dashed:X,colorForLines:ie}}=K;return(0,fe.jsx)("div",{style:{position:"absolute",pointerEvents:"none",width:D.width*z,height:D.height*z,left:D.left*z,top:D.top*z,border:"1px "+(X?"dashed":"solid")+" "+ie}})};class rc extends r.Component{constructor(){super(...arguments),(0,Se.A)(this,"getAuxiliaryLinesStyle",D=>{const{ratio:z}=this.props;return{width:D.width*z,height:D.height*z,top:D.top*z,left:D.left*z}}),(0,Se.A)(this,"getAuxiliaryLinesLength",()=>{const D={},{baseRect:z,refRect:X}=this.props,ie=(0,hr.H4)(z,X),ue=ie.width-X.width;ie.height-(z.height+X.height)>0&&ue>z.width/2&&(D.horizontal=ue);const be=ie.height-X.height;return ie.width-(z.width+X.width)>0&&be>z.height/2&&(D.vertical=be),D}),(0,Se.A)(this,"getLineStyle",(D,z)=>{const{baseRect:X,refRect:ie,ratio:ue}=this.props,oe=X.left>ie.left,be=X.top>ie.top,Ae={};if(D){const Ne=D/ie.width;Ae.horizontal={[be?"bottom":"top"]:0,[oe?"right":"left"]:ei(-Ne),width:ei(Ne)}}if(z){const Ne=z/ie.height;Ae.vertical={[oe?"right":"left"]:0,[be?"bottom":"top"]:-Ne*ue,height:Ne*ue}}return Ae})}render(){const{refRect:D,style:z}=this.props,{horizontal:X,vertical:ie}=this.getAuxiliaryLinesLength();if(!X&&!ie)return null;const ue=this.getAuxiliaryLinesStyle(D),oe=this.getLineStyle(X,ie);return(0,fe.jsxs)("div",{className:"smart-auxiliary-lines",style:ue,children:[X&&(0,fe.jsx)("div",{className:"line horizontal",style:{...oe.horizontal,borderTopStyle:z.dashed?"dashed":"solid",borderTopColor:z.colorForLines}}),ie&&(0,fe.jsx)("div",{className:"line vertical",style:{...oe.vertical,borderLeftStyle:z.dashed?"dashed":"solid",borderLeftColor:z.colorForLines}})]})}}const Ql=Yt.Ay.div.withConfig({displayName:"styles__StyledDistanceMeasurement",componentId:"sc-1q2z63f-0"})(["width:100%;height:100%;pointer-events:none;.distance-marks{position:absolute;pointer-events:none;.distance-line{position:absolute;width:1px;height:1px;&.top,&.bottom{border-left:1px solid black;}&.left,&.right{border-top:1px solid black;}}.distance-value{position:absolute;&.top,&.bottom{transform:translateY(-50%);}&.left,&.right{transform:translate(-50%,-100%);}}.distance-mark-start-boundary{&.top{top:0;}&.right{right:0;}&.bottom{bottom:0;}&.left{left:0;}}.distance-mark-start-boundary,.distance-mark-end-boundary{position:absolute;&.top,&.bottom{transform:translateX(-4px);width:9px;height:1px;border-top:1px solid black;}&.left,&.right{transform:translateY(-4px);width:1px;height:9px;border-left:1px solid black;}}}.smart-auxiliary-lines{position:absolute;pointer-events:none;.line{position:absolute;width:1px;height:1px;&.horizontal{border-top:1px solid black;}&.vertical{border-left:1px solid black;}}}.verbose-auxiliary-lines{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;.line{position:absolute;&.top,&.bottom{width:100%;height:1px;border-top:1px solid black;}&.bottom{transform:translateY(-1px);}&.left,&.right{width:1px;height:100%;border-left:1px solid black;}&.right{transform:translateX(-1px);}}}"]),Id={design:{distanceMarks:{showStartAndEndBoundary:!1,dashed:!1,colorForLines:Ha.fm.color_polyline_hover.value_light,colorForText:Ha.fm.color_polyline_hover.value_light},refRectBorder:{dashed:!1,colorForLines:Ha.fm.color_polyline_hover.value_light},verboseAuxiliaryLines:!1,auxiliaryLines:{dashed:!0,colorForLines:Ha.fm.color_polyline_hover.value_light}},preview:{distanceMarks:{showStartAndEndBoundary:!0,dashed:!0,colorForLines:Ha.fm.color_polyline_hover.value_light},refRectBorder:{dashed:!0,colorForLines:Ha.fm.color_proto.value_light},verboseAuxiliaryLines:!0,auxiliaryLines:{dashed:!0,colorForLines:Ha.fm.color_proto.value_light}}};class _d extends r.Component{shouldComponentUpdate(D){return!((0,hr.Jz)(D.baseRect,this.props.baseRect)&&(0,hr.Jz)(D.refRect,this.props.refRect)&&D.ratio===this.props.ratio&&D.theme===this.props.theme)}render(){const{baseRect:D,refRect:z,theme:X,renderValue:ie,ratio:ue}=this.props;return(0,fe.jsxs)(Ql,{className:"distance-measurement-container",children:[(0,fe.jsx)(As,{baseRect:D,refRect:z,ratio:ue,style:Id[X].distanceMarks,renderValue:ie}),(0,fe.jsx)(rc,{baseRect:D,refRect:z,ratio:ue,style:Id[X].auxiliaryLines}),(0,fe.jsx)(Ys,{refRect:z,ratio:ue,style:Id[X].refRectBorder})]})}}const h2=K=>{let{enableSelectionDistance:D,hoverTree:z,newSelection:X,scale:ie}=K;if(!D)return null;const ue=z?(0,bo.Dx)(z):[],oe=X,be=ue.map(Ge=>Ge.key);let Ae,Ne;if(oe.length)if(z&&Ki()(be,oe).length===0)oe.includes(z.key)||(Ae=(0,Bs.nM)(oe),Ne=(0,Bs.nM)(be));else{var Be;const Ge=(0,Gi.dk)(oe),it=Ge?sdkStore.getHotItem(Ge):null;if(it&&((Be=it.hotAttr)==null?void 0:Be.type)==="rResCanvas"){const{x:At,y:zt,w:qt,h:_n}=it.hotAttr;Ae=(0,Bs.nM)(oe),Ne={top:zt-_n/2,left:At-qt/2,right:At+qt/2,bottom:zt+_n/2,width:qt,height:_n}}}else if(z){const Ge=sdkStore.locUpColdCanvasKey((z==null?void 0:z.key)||"");if(Ge&&Ge!==(z==null?void 0:z.key)){const{hotAttr:{x:it,y:At,w:zt,h:qt}}=sdkStore.getHotItem(Ge);Ae=(0,Bs.nM)(be),Ne={top:At-qt/2,left:it-zt/2,right:it+zt/2,bottom:At+qt/2,width:zt,height:qt}}}return(0,fe.jsx)(vp,{baseRect:Ae,refRect:Ne,scale:ie})};class vp extends r.PureComponent{componentDidMount(){var D,z,X;(D=document.querySelector("#link-design"))==null||D.classList.add("hide"),(z=document.querySelector("#mb-linklist"))==null||z.classList.add("hide"),(X=document.querySelectorAll(".selection-handler"))==null||X.forEach(ie=>ie.classList.add("hide"))}componentWillUnmount(){var D,z,X;(D=document.querySelector("#link-design"))==null||D.classList.remove("hide"),(z=document.querySelector("#mb-linklist"))==null||z.classList.remove("hide"),(X=document.querySelectorAll(".selection-handler"))==null||X.forEach(ie=>ie.classList.remove("hide"))}render(){const{baseRect:D,refRect:z,scale:X}=this.props;return D&&z?(0,fe.jsx)(_d,{baseRect:D,refRect:z,theme:"design",ratio:X/100}):null}}const U1=h2,g0=(0,On.Mz)([l.Ur,U.$c,nr.p$,l.X_,l.pO,l.M_,U._b,Q.RX],(K,D,z,X,ie,ue,oe,be)=>({rootScreen:K,screen,hoverTree:D,newSelection:z,scale:X,rootItem:be,enableSelectionDistance:!ie&&ue&&!oe})),bp=(0,I.Ng)(K=>g0(K))(U1),y0=Yt.Ay.div.withConfig({displayName:"styles__StyledMultiCurosr",componentId:"sc-1i4vckz-0"})(["position:absolute;display:flex;transition:left 0.15s ease-out,top 0.15s ease-out;svg{margin:-2px 0 0 -2px;fill:",";}span{flex:1;overflow:visible;margin-top:18px;background-color:",";color:#fff;font-size:12px;min-height:16px;padding:0 4px;white-space:nowrap;}"],K=>K.$fill,K=>K.$fill),R0=[{color:"#ff3333"},{color:"#23B571"},{color:"#1684FC"},{color:"#FF6161"},{color:"#FAAD14"},{color:"#6C4BD5"},{color:"#39CCBC"},{color:"#F54EDB"},{color:"#FF1D47"},{color:"#FF7100"}],Eu=(0,On.Mz)([l.X_,l.Ur,U.pH,U.rg,U.uu,q.lU],(K,D,z,X,ie,ue)=>({scale:K,currentScreen:D,enableMultiCursor:!(z||X||ie),isShowMultiCursor:ue}));function r1(){const{scale:K,currentScreen:D,enableMultiCursor:z,isShowMultiCursor:X}=(0,I.d4)(Eu),[,ie]=(0,r.useState)(0);if((0,r.useEffect)(()=>{if(!X||!window.cssCur)return;let be=0;const Ae=()=>{be=requestAnimationFrame(Ae),!(!window.cssCur||!window.cssCur.pollCurChg())&&ie(Date.now())};return Ae(),()=>{cancelAnimationFrame(be)}},[X]),!z||!X||!window.cssCur)return null;const ue=D==null?void 0:D.cid,oe=window.cssCur.getCurStat(ue);return(0,fe.jsx)(fe.Fragment,{children:oe.map(be=>{let[Ae,Ne,Be,Ge]=be;const it={left:Ne*K*.01,top:Be*K*.01},At=R0[Ae%10].color;return(0,fe.jsxs)(y0,{style:it,$fill:At,children:[(0,fe.jsxs)("svg",{width:"22",height:"22",viewBox:"13 13 22 22",fill:"none",children:[(0,fe.jsx)("path",{stroke:"#fff",d:"m16.16 15.53-.95-.32.32.95 4.38 13.16.42 1.25.52-1.21 2.58-6.05 5.92-2.46 1.24-.52-1.27-.42-13.16-4.38Z",filter:"url(#a)"}),(0,fe.jsxs)("filter",{id:"a",width:"30",height:"30",x:"-2",y:"-1",children:[(0,fe.jsx)("feGaussianBlur",{in:"SourceAlpha",stdDeviation:"1"}),(0,fe.jsx)("feOffset",{dy:"1"}),(0,fe.jsx)("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.4 0"}),(0,fe.jsxs)("feMerge",{children:[(0,fe.jsx)("feMergeNode",{}),(0,fe.jsx)("feMergeNode",{in:"SourceGraphic"})]})]})]}),(0,fe.jsx)("span",{children:Ge})]},Ae+"-"+K)})})}const O1=r1;var Iu=s(6991),i1=s(20315);const Bh=K=>{const{show:D}=K;return D?(0,fe.jsx)(Iu.s,{mode:"design",...K}):null},wp=(0,On.Mz)([l.Ur,nr.p$,l.X_,j.$7,l.pO,i1.MS,U.jx,Q.UV,l.lh,i1.yc],(K,D,z,X,ie,ue,oe,be,Ae,Ne)=>{var Be;let Ge;if(D.length===1)for(const At of D){const zt=sdkStore.getHotItem(At);zt&&zt.hotAttr.type==="wTear"&&zt.sup!=="@@T"&&(Ge=zt)}if(Ge===void 0||!ue||!X||ie||(Be=MB.f)!=null&&Be.isSelecting)return{show:!1};const it=oe===y.qi.OnlyView;return{show:!0,activeTear:Ge,scale:z,isReadonly:it,widgetStore:be,tearOffset:Ne,editingCid:Ae}}),B0=(0,I.Ng)(K=>wp(K))(Bh);var x0=s(94299),v0=s(95106),hc=s(39563),zc=s(70422),m2=s(66195),Wc=s(81973);const _u=(0,On.Mz)([nr.nE,zc.zX,Wc.Yg,Wc.w_,Wc.Jg,Wc.gX,m2.y,Ue.r,U.jx,U.jI,nr.U2,co.R7.query.getSelectInteractionKeyList],(K,D,z,X,ie,ue,oe,be,Ae,Ne,Be,Ge)=>{let{isWidgetSetting:it,isCanvasSetting:At}=oe,{isEditingCombo:zt}=be;try{const _n=Ae===y.qi.OnlyView,$n=K[0];if(!$n||K.length>1||(0,Qo.OO)($n.key)||!$n.hotAttr.isVisible||zt&&!Ne||_n)return null;const Fn=(At||it)&&ie===1;let Ao=[];if(Fn){const _o=D&&D.selectionLeftTopInfo.y===D.selectionRightBottomInfo.y?D.selectionLeftTopInfo.y:null,zo=D&&D.selectionLeftTopInfo.x===D.selectionRightBottomInfo.x?D.selectionLeftTopInfo.x:null;_o!==null&&zo!==null?Ao=!isNaN(_o)&&!isNaN(zo)?(0,hc.SS)($n.hotAttr)?(0,v0.wI)(sdkStore,Be,_o,zo,zt,Ne):(0,v0.je)(sdkStore,Be,_o,zo,zt,Ne):[]:Ao=(0,v0.Xr)(sdkStore,Be,zt,Ne)}else if(ue){var qt;const _o=z!==null?((qt=sdkStore.getHotItem(Be))==null||(qt=qt.hotAttr.carousel)==null?void 0:qt.slides[z].linkCids)||"":X?X.data.linkCids:"";Ao=_o?(0,v0.ER)(sdkStore,Be,_o,zt,Ne):[]}if(Ao&&Ao.length>0)return Ao.filter(_o=>_o.data.interactionType===Lr.O2.ScrollTo&&_o.isUiValid&&Ge.includes(_o.key))}catch(_n){return console.error(_n),null}}),Tu=()=>{const K=(0,I.d4)(_u),D=(0,I.d4)(l.ER),z=(0,I.d4)(l.X_),X=(0,r.useRef)(D.x),ie=(0,r.useRef)(D.y);return(0,r.useEffect)(()=>{X.current=D.x,ie.current=D.y},[D]),K?K.map((ue,oe)=>(0,fe.jsx)(Pu,{interactionScrollToOnSelectedItem:ue,canvasOffset:D,canvasOffsetXRef:X,canvasOffsetYRef:ie,scale:z},oe)):null},Pu=K=>{let{interactionScrollToOnSelectedItem:D,canvasOffsetXRef:z,canvasOffsetYRef:X,scale:ie,canvasOffset:ue}=K;const oe=(0,I.wA)(),[be,Ae]=(0,r.useState)(!1),[Ne,Be]=(0,r.useState)(!1);if((0,I.d4)(Fn=>{var Ao,_o;return(Ao=D.expression)!=null&&Ao.scrollToOffsetX||(_o=D.expression)!=null&&_o.scrollToOffsetY?(0,Wc.ue)(Fn):null}),!D||!(0,Zr.Yy)(D.runtimeNodeTrigger))return null;let Ge,it;try{let Fn=D.targetWidgetKey===fo.rE?D.triggerItemKey:D.targetWidgetKey,Ao=sdkStore.locUpHotCanvasKey(Fn)||"";const _o=sdkStore.locUpHotCanvasKey(D.triggerItemKey)||"";if(Ao!==_o)return null;Fn=(0,Qo.OO)(Fn)?(0,Qo.QL)(Fn).pop():Fn,Ge=Fn?sdkStore.getHotAABB(Fn):null,Ao=(0,Qo.OO)(Ao)?(0,Qo.QL)(Ao).pop():Ao,it=Ao?sdkStore.getHotAABB(Ao):null}catch(Fn){return null}const At=Math.round((0,x0.qE)((0,Zr.SP)(D,"scrollToOffsetX","number"),it&&Ge?it[0]-Ge[0]:-1/0,it&&Ge?it[2]-Ge[0]:1/0)),zt=Math.round((0,x0.qE)((0,Zr.SP)(D,"scrollToOffsetY","number"),it&&Ge?it[1]-Ge[1]:-1/0,it&&Ge?it[3]-Ge[1]:1/0));if(!D||!Ge||!it)return null;const qt=ie/100,_n=Fn=>{Fn.stopPropagation(),Ae(!0),sdkStore.combineMergeMark("update-interaction-scroll-offset");const Ao=Fn.clientX,_o=ue.x;let zo=At;const aa=ma=>{if(ma.stopPropagation(),it===null||Ge===null)return;const Ea=Math.round((ma.clientX-Ao+_o-z.current)/qt);zo=(0,x0.qE)(At+Ea,it[0]-Ge[0],it[2]-Ge[0]),oe(co.R7.command.updateItaKVDirect({runtimeIta:D,attrValueList:[["scrollToOffsetX",zo]]}))},oa=()=>{Ae(!1),sdkStore.combineMerge("update-interaction-scroll-offset"),document.removeEventListener("mousemove",aa),document.removeEventListener("mouseup",oa)};document.addEventListener("mousemove",aa),document.addEventListener("mouseup",oa)},$n=Fn=>{Fn.stopPropagation(),Be(!0),sdkStore.combineMergeMark("update-interaction-scroll-offset");const Ao=Fn.clientY,_o=ue.y;let zo=zt;const aa=ma=>{if(ma.stopPropagation(),it===null||Ge===null)return;const Ea=Math.round((ma.clientY-Ao+_o-X.current)/qt);zo=(0,x0.qE)(zt+Ea,it[1]-Ge[1],it[3]-Ge[1]),oe(co.R7.command.updateItaKVDirect({runtimeIta:D,attrValueList:[["scrollToOffsetY",zo]]}))},oa=()=>{Be(!1),sdkStore.combineMerge("update-interaction-scroll-offset"),document.removeEventListener("mousemove",aa),document.removeEventListener("mouseup",oa)};document.addEventListener("mousemove",aa),document.addEventListener("mouseup",oa)};return(0,fe.jsxs)(F1,{id:"scroll-to-offset-guidelines",children:[be&&(0,fe.jsx)("div",{className:"scroll-to-offset",style:{transform:"translate("+(Math.min(Ge[0],Ge[0]+At)+Math.abs(At)/2)*qt+"px, "+((Ge[1]+Ge[3])/2+5)*qt+"px)"},children:At}),D.scrollToDir!=="vertical"&&(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)("div",{className:"guideline vertical handle",onMouseDown:_n,style:{height:(it[3]-it[1])*qt,transform:"translate("+(Ge[0]+At)*qt+"px, "+it[1]*qt+"px)"}}),Ge[1]<it[1]&&(0,fe.jsx)("div",{className:"guideline vertical dashed handle",onMouseDown:_n,style:{height:(it[1]-Ge[1])*qt,transform:"translate("+(Ge[0]+At)*qt+"px, "+Ge[1]*qt+"px)"}}),Ge[3]>it[3]&&(0,fe.jsx)("div",{className:"guideline vertical dashed handle",onMouseDown:_n,style:{height:(Ge[3]-it[3])*qt,transform:"translate("+(Ge[0]+At)*qt+"px, "+it[3]*qt+"px)"}}),(0,fe.jsx)("div",{className:"guideline horizontal dashed",style:{width:Math.abs(At)*qt,transform:"translate("+Math.min(Ge[0],Ge[0]+At)*qt+"px, "+(Ge[1]+Ge[3])/2*qt+"px)"}})]}),Ne&&(0,fe.jsx)("div",{className:"scroll-to-offset",style:{transform:"translate("+((Ge[0]+Ge[2])/2+5)*qt+"px, "+(Math.min(Ge[1],Ge[1]+zt)+Math.abs(zt)/2)*qt+"px)"},children:zt}),D.scrollToDir!=="horizontal"&&(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)("div",{className:"guideline horizontal handle",onMouseDown:$n,style:{width:(it[2]-it[0])*qt,transform:"translate("+it[0]*qt+"px, "+(Ge[1]+zt)*qt+"px)"}}),Ge[0]<it[0]&&(0,fe.jsx)("div",{className:"guideline horizontal out-of-canvas dashed handle",onMouseDown:$n,style:{width:(it[0]-Ge[0])*qt,transform:"translate("+Ge[0]*qt+"px, "+(Ge[1]+zt)*qt+"px)"}}),Ge[2]>it[2]&&(0,fe.jsx)("div",{className:"guideline horizontal out-of-canvas dashed handle",onMouseDown:$n,style:{width:(Ge[2]-it[2])*qt,transform:"translate("+it[2]*qt+"px, "+(Ge[1]+zt)*qt+"px)"}}),(0,fe.jsx)("div",{className:"guideline vertical dashed",style:{height:Math.abs(zt)*qt,transform:"translate("+(Ge[0]+Ge[2])/2*qt+"px, "+Math.min(Ge[1],Ge[1]+zt)*qt+"px)"}})]})]})},F1=Yt.Ay.div.withConfig({displayName:"InteractionScrollToGuidelines__StyledScrollToOffsetGuidelines",componentId:"sc-1mkxz07-0"})(["pointer-events:none;.guideline{position:absolute;&.horizontal{height:1px;z-index:65535;background-color:#5CDDA1;&.dashed{background-color:transparent;border-top:1px dashed #5CDDA1;&:hover{background-color:transparent;}}&.handle{cursor:",";pointer-events:auto;&:hover{background-color:#23B571;}&::before{content:'';display:inline-block;width:inherit;height:8px;position:absolute;top:-4px;}}}&.vertical{border-right:1px solid #5CDDA1;z-index:65535;&.dashed{border-right:1px dashed #5CDDA1;}&.handle{cursor:",";pointer-events:auto;&:hover{background-color:#23B571;}&::before{content:'';display:inline-block;height:inherit;width:8px;position:absolute;left:-4px;}}}}.scroll-to-offset{position:absolute;color:#5CDDA1;}"],xn.M.rowResize,xn.M.colloumResize);var al=s(75006),el=s(92598),Cp=s(78409);const Lu=(0,On.Mz)([nr.nE,zc.zX,Wc.Yg,Wc.w_,Wc.Jg,Wc.gX,m2.y,Ue.r,U.jx,U.jI,nr.U2,co.R7.query.getSelectInteractionKeyList],(K,D,z,X,ie,ue,oe,be,Ae,Ne,Be,Ge)=>{let{isWidgetSetting:it,isCanvasSetting:At}=oe,{isEditingCombo:zt,isEditingBasket:qt,isEditingMuban:_n}=be;try{var $n;const Ao=Ae===y.qi.OnlyView,_o=K[0];if(!_o||K.length>1||(0,Qo.OO)(_o.key)&&(($n=sdkStore.getHotItem(sdkStore.locUpColdBasketKey(_o.key)||""))==null?void 0:$n.hotAttr.basket)==="bDanli"||!_o.hotAttr.isVisible||zt||qt||_n||Ao)return null;const zo=(At||it)&&ie===1;let aa=[];if(zo){const oa=D&&D.selectionLeftTopInfo.y===D.selectionRightBottomInfo.y?D.selectionLeftTopInfo.y:null,ma=D&&D.selectionLeftTopInfo.x===D.selectionRightBottomInfo.x?D.selectionLeftTopInfo.x:null;oa!==null&&ma!==null?aa=!isNaN(oa)&&!isNaN(ma)?(0,hc.SS)(_o.hotAttr)?(0,v0.wI)(sdkStore,Be,oa,ma,zt,Ne):(0,v0.je)(sdkStore,Be,oa,ma,zt,Ne):[]:aa=(0,v0.Xr)(sdkStore,Be,zt,Ne)}else if(ue){var Fn;const oa=z!==null?((Fn=sdkStore.getHotItem(Be))==null||(Fn=Fn.hotAttr.carousel)==null?void 0:Fn.slides[z].linkCids)||"":X?X.data.linkCids:"";aa=oa?(0,v0.ER)(sdkStore,Be,oa,zt,Ne):[]}if(aa&&aa.length>0)return aa.filter(oa=>oa.data.interactionType===Lr.O2.OpenOverlay&&oa.data.overlayRelativePos==="manual"&&oa.isUiValid&&Ge.includes(oa.key))}catch(Ao){return console.error(Ao),null}}),U0=()=>{const K=(0,I.d4)(Lu),D=(0,I.d4)(Ar.RT),z=(0,I.d4)(nr.nE),X=(0,I.d4)(l.X_),ie=(0,I.d4)(q.PI),ue=(0,I.d4)(q.k3);if(!K)return null;const oe=z[0],be=sdkStore.locUpColdCanvasKey((oe==null?void 0:oe.key)||"");if(!be)return null;const Ae=sdkStore.getHotItem(be);return!Ae||Ae.hotAttr.asOverlay?null:K.map(Ne=>(0,fe.jsx)(f2,{isAdjustOverlayRelPos:D,selectedItems:z,scale:X,isDragModeShow:ie,isAdsorbentReferenceLine:ue,manuallyPosOpenOverlayInteraction:Ne,rcToSelected:Ae},Ne.key))},f2=K=>{let{isAdjustOverlayRelPos:D,selectedItems:z,scale:X,isDragModeShow:ie,isAdsorbentReferenceLine:ue,manuallyPosOpenOverlayInteraction:oe,rcToSelected:be,keyRcToSelected:Ae}=K;const Ne=(0,I.wA)(),Be=z[0],{data:Ge,data:{targetOverlayKey:it,expression:At}}=oe;(0,I.d4)(Qs=>At!=null&&At.overlayRelativePosX||At!=null&&At.overlayRelativePosX?(0,Wc.ue)(Qs):null);const zt=new al.A(sdkStore,it,al.A.MODE.snapshot),qt=zt.getRootSnapshot(),[_n,$n,Fn,Ao]=sdkStore.getHotAABB(Be.key),{hotAttr:{x:_o,y:zo,w:aa,h:oa}}=be,{hotAttr:{x:ma,y:Ea,w:er,h:Pr}}=qt,Aa=_o-aa/2,fr=zo-oa/2,Jr=ma-er/2,qa=Ea-Pr/2,Ka=Aa+(0,Zr.SP)(Ge,"overlayRelativePosX","number"),rr=fr+(0,Zr.SP)(Ge,"overlayRelativePosY","number"),Ua=Qs=>{Qs.stopPropagation(),Ne(y.GO.hoverItem("")),Ne({type:"artboard:update:state",payload:{isAdjustOverlayRelPos:!0}}),sdkStore.combineMergeMark("update-interaction-overlay-rel-pos-xy");const E=Qs.clientX,le=Qs.clientY;let de=null;(ie||ue)&&(de=(0,te.ay)({movableItems:[],createSnapper:ie?J.WY:te.xb,viewport:{scale:X/100}}));const _e=Bt=>{Bt.stopPropagation();const ln=(Bt.clientX-E)/(X/100),Ht=(Bt.clientY-le)/(X/100),En=Math.round(Ka+ln),po=Math.round(rr+Ht),{alignment:Lo,left:Bo,top:Zo}=typeof de=="function"?de({_rect:{width:er,height:Pr,left:En,top:po,right:En+er,bottom:po+Pr},sup:Ae}):{alignment:{},left:En,top:po},Yo=Bo-Aa,Jo=Zo-fr;Ne({type:"set:alignment",payload:{alignment:Lo}}),Ne(co.R7.command.updateItaKVDirect({runtimeIta:oe,attrValueList:[["overlayRelativePosX",Yo],["overlayRelativePosY",Jo]]}))},Vt=()=>{Ne({type:"set:alignment",payload:{alignment:{}}}),Ne({type:"artboard:update:state",payload:{isAdjustOverlayRelPos:!1}}),sdkStore.combineMerge("update-interaction-overlay-rel-pos-xy"),document.removeEventListener("mousemove",_e),document.removeEventListener("mouseup",Vt)};document.addEventListener("mousemove",_e),document.addEventListener("mouseup",Vt)},_r={transform:"translate("+(Ka-Jr)+"px, "+(rr-qa)+"px)"},ni={transform:"translate("+Ka+"px, "+rr+"px)",width:er,height:Pr},zr={transform:"translate("+(_o-aa/2)+"px, "+(zo-oa/2)+"px)",width:aa,height:oa},Ur={position:"absolute",top:-2,left:-2,width:er,height:Pr},ki={transform:"scale("+X/100+")"},ds={transform:"translate(-50%, -50%) scale("+100/X+")"};return(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsxs)(Sp,{id:"overlay-rel-pos-ctrl",style:ki,children:[(0,fe.jsxs)("div",{className:"virtual-overlay-mask",style:ni,onMouseDown:Ua,children:[(0,fe.jsxs)("svg",{className:"virtual-overlay-mask-diagonal-line",xmlns:"http://www.w3.org/2000/svg",version:"1.1",preserveAspectRatio:"none",style:Ur,children:[(0,fe.jsx)("line",{x1:"0",y1:"0",x2:er,y2:Pr}),(0,fe.jsx)("line",{x1:"0",y1:Pr,x2:er,y2:"0"})]}),(0,fe.jsx)("div",{className:"virtual-overlay-pos-handle",style:ds,children:(0,fe.jsx)(Wi.C,{name:"art_board/move_handle"})})]}),(0,fe.jsx)("div",{className:Kt()("canvas-to-trigger-indicator",{"is-adjust-overlay-rel-pos":D}),style:zr}),(0,fe.jsx)("div",{className:"virtual-overlay",style:_r,children:(0,fe.jsx)(Cp.A,{sdkStore:zt,children:(0,fe.jsx)(el.o,{hotItem:qt,mode:"snapshot"})})})]}),D&&(0,fe.jsx)(_d,{theme:"design",baseRect:{top:rr,left:Ka,right:Ka+er,bottom:rr+Pr,width:er,height:Pr},refRect:{top:$n,left:_n,right:Fn,bottom:Ao,width:Fn-_n,height:Ao-$n},ratio:X/100})]})},Sp=Yt.Ay.div.withConfig({displayName:"InteractionOverlayRelPosCtrl__StyledInteractionOverlayRelPosCtrl",componentId:"sc-mi90gv-0"})(["position:absolute;z-index:10000;&:hover{.virtual-overlay-mask{.virtual-overlay-pos-handle{background-color:",";color:#fff;}}.virtual-overlay{opacity:1;}}&:active{.virtual-overlay-mask{opacity:0;}.virtual-overlay{opacity:1;}}.virtual-overlay-mask{position:absolute;top:0;left:0;border:2px solid ",";z-index:3;.virtual-overlay-mask-diagonal-line{color:",";line{stroke:currentColor;stroke-width:2;}}.virtual-overlay-pos-handle{position:absolute;display:flex;justify-content:center;align-items:center;top:50%;left:50%;width:20px;height:20px;background-color:#fff;border-radius:50%;z-index:2;border:2px solid ",";color:",";svg{width:12px;height:12px;}}}.canvas-to-trigger-indicator{position:absolute;pointer-events:none;border:2px dashed ",";z-index:2;&.is-adjust-overlay-rel-pos{border:1px solid ",";}}.virtual-overlay{position:absolute;opacity:0.3;z-index:1;.widget-idendity-key{*{pointer-events:none !important;}}}"],K=>K.theme.color_proto,K=>K.theme.color_proto,K=>K.theme.color_proto,K=>K.theme.color_proto,K=>K.theme.color_proto,K=>K.theme.color_proto,K=>K.theme.color_polyline_hover),V1=()=>(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)(Nr,{}),(0,fe.jsx)(Tu,{}),(0,fe.jsx)(U0,{})]}),Td=()=>{var K;const D=(0,I.d4)(La),{isFocusStickyOffset:z,selectedItems:X,editingBasketHotItem:ie,scale:ue}=D;if(X.length===0||!(z&&X.length===1))return null;let oe;const be=ue/100,{x:Ae,w:Ne,h:Be}=sdkStore.getHotBound(X[0].key);if((0,Qo.OO)(X[0].key)){const it=sdkStore.locUpBasketKey(X[0].key),{y:At,h:zt}=sdkStore.getHotBound(it);oe=At-zt*.5}else{const it=sdkStore.locUpMainCanvasKey(X[0].key);if(!it)return null;const{y:At,h:zt}=sdkStore.getHotBound(it);if(ie){const{y:qt}=sdkStore.getHotItem(it).hotAttr,{y:_n}=sdkStore.getSourceHotItem(it).hotAttr;oe=qt-_n}else oe=At-zt*.5}const Ge={width:Ne*be,height:Be*be,transform:"translate("+(Ae-Ne*.5)*be+"px,"+(oe+((K=X[0])==null?void 0:K.hotAttr.stickyOffset))*be+"px)",transformOrigin:"center center"};return(0,fe.jsx)(cc,{style:Ge})},cc=Yt.Ay.div.withConfig({displayName:"StickyVirtualComponent__StyledStickyVirtualComponent",componentId:"sc-ajoela-0"})(["position:absolute;border:1px solid #5CDDA1;"]),La=(0,On.Mz)([U.HD,nr.nE,U.PR,l.X_],(K,D,z,X)=>({isFocusStickyOffset:K,selectedItems:D,editingBasketHotItem:z,scale:X})),bl=Td;var Ps=s(3902);const Vr=Yt.Ay.div.withConfig({displayName:"styles__StyledFindReplaceHighLightArea",componentId:"sc-5u35x1-0"})(["position:absolute;width:100%;height:100%;z-index:1;pointer-events:none;"]),Ca=Yt.Ay.div.withConfig({displayName:"styles__StyledHighLight",componentId:"sc-5u35x1-1"})(["position:absolute;transform-origin:0 0;width:100%;height:100%;background:",";border:2px solid #ffd500;&.selected{background:rgba(22,132,252,0.2);border:2px solid #1684fc;}"],K=>K.theme.color_feedback_highlight_bg);class rl extends r.PureComponent{constructor(){super(...arguments),(0,Se.A)(this,"handleRenderArea",D=>{if(!D||sdkStore.isTrashed(D)||!sdkStore.getHotItem(D))return null;const{scale:z,findSelectWidgetCid:X}=this.props,{x:ie,y:ue,r:oe,w:be,h:Ae}=sdkStore.getHotBound(D),Ne=z/100,Be={width:be*Ne,height:Ae*Ne,transform:"translate("+(ie-be*.5)*Ne+"px,"+(ue-Ae*.5)*Ne+"px) rotate("+oe+"deg)",transformOrigin:"center center"},Ge=X===D;return(0,fe.jsx)(Ca,{"data-key":D,className:Kt()({selected:Ge}),style:Be})})}render(){const{isShow:D,findReplaceKeys:z,editingCid:X,editingEditableWidgetCid:ie,editingTableKey:ue}=this.props;return D?(0,fe.jsx)(Vr,{children:z.map(oe=>X===oe||ie===oe||ue===oe?null:this.handleRenderArea(oe))}):null}}const Ws=(0,On.Mz)([l.X_,Ps.W,Ps.gP,l.lh,U.Pm,zc.tS,zc.nh],(K,D,z,X,ie,ue,oe)=>{let{findReplaceKeys:be}=D;if(!(be!=null&&be.length))return{isShow:!1};const Ae=ue&&(oe==null?void 0:oe.key);return{isShow:!0,findReplaceKeys:be,findSelectWidgetCid:z,scale:K,editingCid:X,editingEditableWidgetCid:ie,editingTableKey:Ae}}),Uh=(0,I.Ng)(K=>Ws(K))(rl),Oh=K=>{const{items:D,ratio:z,isResizing:X}=K,ie=D.filter(At=>!At.hotAttr.isLock&&!(0,Qo.OO)(At.key));if(ie.length<2)return null;const ue=ie.filter(At=>At.hotAttr.type!==C.x.WTear).map(At=>At.key);if(ue.length===0)return null;const[oe,be,Ae,Ne]=sdkStore.getHotKeyListAABB(ue),Be=Ae-oe,Ge=Ne-be,it={width:Be*z,height:Ge*z,transform:"translate("+oe*z+"px, "+be*z+"px)",...X&&{borderColor:"transparent"}};return(0,fe.jsx)("div",{className:"items-total-border",style:it})},Nu=(0,r.memo)(Oh);var z1=s(83199),s1=s(18390),Pd=s(64580),Yd=s(94590),Sl=s(93157);class Lc extends r.PureComponent{constructor(){super(...arguments),(0,Se.A)(this,"handleUnlock",D=>{D.stopPropagation();const{onlyView:z,dispatch:X}=this.props;!z&&X({type:"entry:toggle:lock"})}),(0,Se.A)(this,"stopPropagation",D=>D.stopPropagation()),(0,Se.A)(this,"handlePreview",(D,z)=>{let{isDynamicWidget:X}=z;D.stopPropagation(),D.preventDefault();const{onlyView:ie,widget:ue,keyToAccessIntAct:oe,dispatch:be}=this.props,{key:Ae,hotAttr:Ne}=ue,{refRBPageKey:Be,refContentKey:Ge}=Ne;be({type:"entry:preview:panel",payload:{activePageKey:Be,activeCanvasKey:(0,Qo.j_)([oe,Ge]),basketKey:oe}}),ie?(0,Pd.A)({operation_type:X?Pd.D.BasketPreview:Pd.D.MubanPreview}):(0,Yd.kX)({operation_type:X?Yd.mV.BasketPreview:Yd.mV.MubanPreview}),ie?(0,Sl.bO)({currentProject:this.props.rootProject,source:X?Pd.D.ReadOnlyBasketPreview:Pd.D.ReadOnlyMubanPreview,preview_type:"\u603B\u89C8\u6A21\u5F0F"}):(0,Sl.bO)({currentProject:this.props.rootProject,source:X?Yd.mV.EditBasketPreview:Yd.mV.EditMubanPreview,preview_type:"\u6F14\u793A\u6A21\u5F0F"})}),(0,Se.A)(this,"handlePreviewCode",()=>{const{widget:{sup:D,key:z},dispatch:X,onlyView:ie}=this.props;X({type:"entry:preview:widget",payload:{activeWidgetKey:z,activePageKey:D}}),(0,Sl.bO)({currentProject:this.props.rootProject,source:ie?Pd.D.ReadOnlyAIComponentPreview:Yd.mV.EditAIComponentPreview,preview_type:ie?"\u603B\u89C8\u6A21\u5F0F":"\u6F14\u793A\u6A21\u5F0F"})}),(0,Se.A)(this,"handleEditChart",async D=>{D.stopPropagation(),D.preventDefault();const{widget:z,dispatch:X}=this.props;z.hotAttr.isLock||X({type:"entry:chart:in:edit",payload:{widget:z,trackType:"\u5355\u51FB\u63D0\u793A"}})}),(0,Se.A)(this,"handlePreviewCanvas",D=>{if(D.stopPropagation(),D.preventDefault(),MB.global.experienceLoginModalHelper("isSave"))return;const{widget:{sup:z,key:X},rootProject:ie,onlyView:ue,dispatch:oe}=this.props;oe({type:"entry:preview:canvas",payload:{activePageKey:z,activeCanvasKey:X}}),(0,Sl.bO)({currentProject:ie,source:ue?"\u603B\u89C8\u6A21\u5F0F-\u9875\u9762\u6F14\u793A":"\u7F16\u8F91\u533A-\u9875\u9762\u6F14\u793A",preview_type:"\u6F14\u793A\u6A21\u5F0F"})}),(0,Se.A)(this,"handleEditGraph",()=>this.props.dispatch({type:"entry:widget:graph:edit",payload:{action:"update-widget"}}))}render(){const{ratio:D,widget:z,dashedBorder:X,editingEditableWidgetCid:ie,editingBasketKey:ue,isCommunityPreview:oe,isVersionPreview:be,editingBasketRefPage:Ae,isMultiSelect:Ne,editMindKey:Be,onlyView:Ge,editingAIComponentKey:it,isShowAIComponentPreview:At,needWillChange:zt,isSelectItemsInMuban:qt}=this.props,{key:_n,hotAttr:{type:$n,isLock:Fn,basket:Ao,chartConfig:_o,asOverlay:zo}}=z,aa=$n===C.x.WBasket&&Ao==="bDanli",oa=$n===C.x.WCode,ma=$n===C.x.WBasket&&Ao==="bMuban",Ea=$n===C.x.WTear,er=_n===ie,Pr=$n===C.x.WChart&&![s1.N.progress_chart,s1.N.gauge_chart].includes(_o.chartType),Aa=_n===Be,fr=$n===C.x.WGraph,{x:Jr,y:qa,r:Ka,w:rr,h:Ua}=sdkStore.getHotBound(_n),_r=Ea?"translate("+(Jr*D-rr*.5)+"px,"+(qa*D-Ua*.5)+"px)":"translate("+(Jr-rr*.5)*D+"px,"+(qa-Ua*.5)*D+"px) rotate("+Ka+"deg)",ni=Ea?rr:rr*D,zr=Ea?Ua:Ua*D,Ur={borderStyle:Ea?"":X?"dashed":"solid",width:ni,height:zr,transform:_r,transformOrigin:"center center"};return zt&&(Ur.willChange="transform"),(0,fe.jsxs)("div",{className:Kt()("item-select-border",{"is-locked":Fn,"is-dy-widget":aa,"is-code":oa,"is-master":ma,"is-editable-widget":er,"is-tear":Ea,"is-shadow-key":(0,Qo.OO)(_n),"is-edit-mind":Aa,"is-edit-code":!!it}),style:Ur,children:[Fn&&!Ea&&(0,fe.jsxs)(r.Fragment,{children:[(0,fe.jsx)("span",{}),(0,fe.jsx)("span",{}),(0,fe.jsx)("span",{}),(0,fe.jsx)(Wi.C,{className:"circle-lock",name:"new_replace/circle_lock",onMouseDown:this.handleUnlock})]}),Fn&&Ea&&(0,fe.jsx)(Wi.C,{className:"circle-lock",name:"new_replace/circle_lock",onMouseDown:this.handleUnlock}),(aa||ma)&&!Fn&&!be&&(0,fe.jsx)("div",{className:"action preview",onMouseDown:ki=>this.handlePreview(ki,{isDynamicWidget:aa}),children:(0,fe.jsx)(Wi.C,{name:"design/panel/mark"})}),$n===C.x.Canvas&&!zo&&!ue&&!oe&&!be&&!Ae&&!Ne&&(0,fe.jsx)("div",{className:"action preview canvas",onMouseDown:this.handlePreviewCanvas,children:(0,fe.jsx)(Wi.C,{name:"design/panel/mark"})}),oa&&!Fn&&At&&!be&&(0,fe.jsx)("div",{className:"action preview code",onMouseDown:this.handlePreviewCode,children:(0,fe.jsx)(Wi.C,{name:"design/panel/mark"})}),Pr&&!Fn&&!Ge&&(0,fe.jsx)("div",{className:"action preview editChartAction",onMouseDown:this.handleEditChart,children:(0,fe.jsx)(Wi.C,{name:"setting_panel/chart/edit"})}),fr&&!Fn&&!Ge&&!qt&&(0,fe.jsx)(z1.A,{content:"\u7F16\u8F91",direction:"down",children:(0,fe.jsx)("div",{className:"action edit-graph-action",onMouseDown:this.handleEditGraph,children:(0,fe.jsx)(Wi.C,{name:"design/graph/edit",size:32})})})]})}}var Fs=s(91174),dd=s(38047),l1=s(16958),il=s(97605);const dc=(K,D)=>{const{hotAttr:z}=sdkStore.getHotItem(K),{x:X,y:ie,r:ue}=sdkStore.getRelocateLocalXYR(K,D),oe=sdkStore.getLocalBound(K),be=X-(z.x-oe.x),Ae=ie-(z.y-oe.y),Ne=ue,Be=oe.w,Ge=oe.h,it=(0,Fs.e)({x:be-Be/2,y:Ae-Ge/2},(0,dd.EQ)(Ne));return{w:Be,h:Ge,...it,r:Ne,rx:be,ry:Ae}},Il=(K,D)=>{const z='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1">\n <defs>\n <mask id="mask">\n <rect width="'+(K[2]-K[0])+'" height="'+(K[3]-K[1])+'" fill="white"></rect>\n <g transform="translate('+(D[0]-K[0])+" "+(D[1]-K[1])+')">\n <rect width="'+(D[2]-D[0])+'" height="'+(D[3]-D[1])+'" fill="black"></rect>\n </g>\n </mask>\n </defs>\n <rect width="'+(K[2]-K[0])+'" height="'+(K[3]-K[1])+'" fill="white" mask="url(#mask)"></rect>\n </svg>';return"url('data:image/svg+xml;charset=utf8,"+encodeURIComponent(z)+"')"},Jl=new Set(["rResCanvas","wWrap"]),y2=(0,r.memo)(K=>{let{widget:D,multiple:z,isDraggingItem:X}=K;const ie=(0,r.useRef)(null),{key:ue,hotAttr:{type:oe}}=D,be=sdkStore.locUpHotCanvasKey(ue),Ae='#canvas .widget[data-cid="'+ue+'"]';(0,r.useEffect)(()=>{const aa=document.querySelector(Ae);let oa;if(aa&&ie.current){const ma=()=>{const Ea=aa.cloneNode(!0);Ea.style.transform="none",ie.current&&(ie.current.firstElementChild?ie.current.replaceChild(Ea,ie.current.firstElementChild):ie.current.appendChild(Ea))};oa=new MutationObserver(ma),oa.observe(aa,{attributes:!0,childList:!0,subtree:!0}),ma()}return()=>{var ma;(ma=oa)==null||ma.disconnect()}},[]);const Ne=sdkStore.getHotAABB(ue),Be=sdkStore.getHotAABB(be),Ge=(0,r.useMemo)(()=>[Math.min(Be[0],Ne[0]),Math.min(Be[1],Ne[1]),Math.max(Be[2],Ne[2]),Math.max(Be[3],Ne[3])],[Be,Ne]),it=(X?z:!0)&&(0,ca.cj)(Ne,Be),At=(0,r.useMemo)(()=>it?Il(Ge,Be):void 0,[it,Ge.join(" "),Be]),{w:zt,h:qt}=sdkStore.getHotBound(be),{w:_n,h:$n}=sdkStore.getHotBound(ue),Fn={width:Ge[2]-Ge[0],height:Ge[3]-Ge[1],transform:"translate("+Ge[0]+"px, "+Ge[1]+"px)",maskImage:At},Ao={width:zt,height:qt,transform:"translate("+(Be[0]-Ge[0])+"px, "+(Be[1]-Ge[1])+"px)"},_o={};if(oe==="wWrap"){const{x:aa,y:oa,r:ma}=sdkStore.getRelocateLocalXYR(ue,be);_o.transform="translate("+aa+"px, "+oa+"px) rotate("+ma+"deg)",_o.transformOrigin="0 0"}else{const{x:aa,y:oa,r:ma,rx:Ea,ry:er}=dc(ue,be);_o.transform="translate("+aa+"px, "+oa+"px) rotate("+ma+"deg)",_o.transformOrigin=Ea+"px "+er+"px"}const zo={width:_n,height:$n,..._o};return(0,fe.jsx)(v2,{className:"oob-indicator",style:Fn,children:(0,fe.jsx)("div",{className:"oob-canvas",style:Ao,children:(0,fe.jsx)("div",{className:"oob-wrap",style:zo,ref:ie})})})}),x2=K=>{var D;const{widget:z}=K,X=(0,I.d4)(Q.UV),{key:ie,sup:ue,hotAttr:{type:oe}}=z,be=oe!=="rResCanvas"?sdkStore.locUpHotCanvasKey(ie):null,Ae=oe===C.x.WCode,Ne=X.getHotItem(ue);if(!Ne||!Jl.has(Ne.hotAttr.type)||Ae||!be||!((D=X.getHotItem(be))!=null&&D.hotAttr.isClipContent))return null;const Ge=sdkStore.getHotAABB(ie),it=sdkStore.getHotAABB(be);return(0,ca.Pn)(it,Ge)?null:(0,fe.jsx)(y2,{...K})},v2=Yt.Ay.div.withConfig({displayName:"OOBIndicator__StyledOOBIndicator",componentId:"sc-6j36ve-0"})(["position:absolute;will-change:transform;.oob-canvas{position:absolute;overflow:visible;}.oob-wrap{position:absolute;z-index:1;opacity:0.5;*{pointer-events:none !important;}}.wMind{.select-wrap{display:none !important;}}"]),Ap=K=>{let{scale:D,selectWidgets:z,isDraggingItem:X}=K;const ie=(0,I.d4)(l.PL),ue=(0,r.useMemo)(()=>{if(!ie)return"";const be=(0,il.Ep)(ie.device),Ae=(0,il.Qx)();return Kt()(be,Ae)},[ie]),oe=z.length>1;return(0,fe.jsx)(pd,{className:ue,scale:D,children:z.map(be=>(0,fe.jsx)(x2,{widget:be,multiple:oe,isDraggingItem:X},be.key))})},pd=Yt.Ay.div.withConfig({displayName:"OOBIndicator__StyledOOBIndicatorWrapper",componentId:"sc-6j36ve-1"})(["position:absolute;transform:scale(",");"," ",""],K=>K.scale/100,l1.H0,l1.PE),O0=Yt.Ay.div.withConfig({displayName:"styles__StyledSelectionBorder",componentId:"sc-pyopc3-0"})(["position:absolute;width:100%;height:100%;z-index:1;pointer-events:none;&.shield-corner-events{.resizable,.square,.action{pointer-events:none !important;}}.items-total-border,.item-hover-border,.item-echo-layer,.item-select-border{position:absolute;transform-origin:0 0;&.is-screen{top:0;left:0;width:100%;height:100%;}&.is-locked{border-color:#7d8694;}}.items-total-border{border:1px solid ",";}.item-hover-border{border:2px solid ",";}.item-echo-layer{border:1px solid ",";background-color:rgba(41,141,248,0.3);}.item-select-border{position:absolute;border:1px solid ",";&.is-tear{border:0;}&.is-dy-widget:not(.is-locked){border:1px solid ",";.preview .svg-icon .main{fill:",";}}&.is-editable-widget:not(.is-locked){border:1px solid ",";}&.is-master:not(.is-locked){border:1px solid #7146FE;.preview .svg-icon .main{fill:",";}}&.is-shadow-key:not(.is-locked){border:1px solid #7146FE;}&.is-screen{.resizable{position:absolute;width:14px;height:14px;&.can-resizer-x{cursor:e-resize;pointer-events:auto;}&.can-resizer-y{cursor:s-resize;pointer-events:auto;}&.can-resizer-t{cursor:n-resize;pointer-events:auto;}&.can-resizer-l{cursor:w-resize;pointer-events:auto;}&.lt{cursor:nw-resize;pointer-events:auto;}&.lb{cursor:sw-resize;pointer-events:auto;}&.rt{cursor:ne-resize;pointer-events:auto;}&.rb{cursor:se-resize;pointer-events:auto;}&.r{top:50%;right:-7px;margin-top:-7px;}&.b{bottom:-7px;left:50%;margin-left:-7px;}&.l{top:50%;left:-7px;margin-top:-7px;}&.t{top:-7px;left:50%;margin-left:-7px;}&.lt{top:-7px;left:-7px;}&.lb{bottom:-7px;left:-7px;}&.rt{top:-7px;right:-7px;}&.rb{bottom:-7px;right:-7px;}}.square{position:absolute;width:7px;height:7px;background:white;border:1px solid ",";border-radius:50%;&.lt{top:-3px;left:-3px;}&.lb{bottom:-3px;left:-3px;}&.rt{top:-3px;right:-3px;}&.rb{bottom:-3px;right:-3px;}}}&.is-edit-mind,&.is-edit-code{border:1px solid ",";}span{position:absolute;margin-top:-3px;margin-left:-3px;width:6px;height:6px;background-color:#7d8694;border:1px solid #fff;border-radius:50%;&:nth-child(1){top:0;left:0;}&:nth-child(2){top:100%;left:0;}&:nth-child(3){top:100%;left:100%;}}.circle-lock{width:18px;height:18px;position:absolute;left:100%;margin-top:-9px;margin-left:-9px;pointer-events:auto;cursor:pointer;circle{fill:#7D8694;}path{fill:#ffffff;}}.preview{display:flex;position:absolute;bottom:calc(100% + 8px);right:0;z-index:101;cursor:pointer;pointer-events:auto;border-radius:4px;transform:scale(0.8);transform-origin:bottom right;transition:transform 0.2s ease-out;color:#fff;div{transform-origin:bottom right;}.svg-icon{width:20px;height:20px;border-radius:4px;}&:hover{transform:scale(1);}}.action.edit-graph-action{width:44px;height:42px;background:",";border:1px solid ",";border-radius:8px;box-shadow:0px 4px 10px 0px #0000001A;justify-content:center;display:flex;align-items:center;position:absolute;bottom:calc(100% + 40px);right:50%;margin-right:-22px;z-index:101;cursor:pointer;pointer-events:auto;color:",";.svg-icon{border-radius:6px;&:hover{background:",";}}}.action.canvas,.action.editChartAction,.action.edit-graph-action,.action.code{svg.icon{.main{fill:",";}}}}.echo-line,.hover-line,.is-line-select{position:absolute;overflow:visible;path{stroke-width:2;stroke:#1e98ea;}&.is-locked{path{stroke:#7d8694;}}}.echo-line{path{stroke:",";}}.is-line-select{path{stroke:",";stroke-width:1;}}"],K=>K.theme.color_proto,K=>K.theme.color_proto,K=>K.theme.color_proto,K=>K.theme.color_proto,K=>K.theme.color_comments,K=>K.theme.color_comments,K=>K.theme.color_comments,K=>K.theme.color_master,K=>K.theme.color_proto,K=>K.theme.color_grid,K=>K.theme.color_bg_white,K=>K.theme.color_btn_secondary_hover,K=>K.theme.color_text_L1,K=>K.theme.color_btn_secondary_hover,K=>K.theme.color_btn_primary_normal,K=>K.theme.color_proto,K=>K.theme.color_proto);var ud=s(95657),Ac=s(14084),hd=s(74945);class md extends r.PureComponent{constructor(){super(...arguments),(0,Se.A)(this,"state",{isLineAnchorAdding:!1,fixedFromIndex:null,fixedToIndex:null,direction:null,dbClickCount:0,isMove:!1,prevPoint:{x:0,y:0},dataset:{direction:void 0,from:void 0,to:void 0}}),(0,Se.A)(this,"onClick",()=>{const{dbClickCount:D}=this.state;this.setState({dbClickCount:D+1}),setTimeout(()=>{const{dbClickCount:z}=this.state;if(z>1){const{elbowKey:X,dispatch:ie}=this.props;ie({type:"entry:elbow:line-adjust",payload:{elbowKey:X}})}this.setState({dbClickCount:0})},300)}),(0,Se.A)(this,"onMouseDown",D=>{D.preventDefault(),D.stopPropagation();const{direction:z,from:X,to:ie}=D.target.dataset;if(["horizontal","vertical"].includes(z))return this.setState({isMove:!0,dataset:{direction:z,from:X,to:ie}}),sdkStore.combineMergeMark("elbow-rect-drag"),document.addEventListener("mousemove",this.onMouseMove,!1),document.addEventListener("mouseup",this.onMouseUp,!1),!1}),(0,Se.A)(this,"onMouseMove",D=>{D.preventDefault(),D.stopPropagation();const{elbowKey:z}=this.props,{direction:X,from:ie,to:ue}=this.state.dataset,{fixedFromIndex:oe,fixedToIndex:be}=this.state;let Ae,Ne;if(oe!==null?(Ae=oe,Ne=be):(Ae=parseInt(ie,10),Ne=parseInt(ue,10)),!["horizontal","vertical"].includes(X))return;const{elbowKey:Be,rectList:Ge,dispatch:it}=this.props,{isMove:At,prevPoint:zt,isLineAnchorAdding:qt}=this.state;if(At&&!(X==="vertical"&&D.pageY===zt.y)&&!(X==="horizontal"&&D.pageX===zt.x))return this.setState({prevPoint:{x:D.pageX,y:D.pageY}}),Ge.length===1||Ae===0||Ne===Ge.length?(qt||this.handleAnchorAdd(Ae,Ne,Be,Ge,X,D,it),!1):(it({type:"entry:elbow:line-segment-move",payload:{event:D,fromIndex:Ae,toIndex:Ne,direction:X,elbowKey:z}}),!1)}),(0,Se.A)(this,"onMouseUp",()=>{const{elbowKey:D,dispatch:z}=this.props;this.setState({isMove:!1,prevPoint:{x:0,y:0},dataset:{},isLineAnchorAdding:!1,fixedFromIndex:null,fixedToIndex:null}),document.removeEventListener("mousemove",this.onMouseMove,!1),document.removeEventListener("mouseup",this.onMouseUp,!1),sdkStore.combineMerge("elbow-rect-drag"),z({type:"entry:elbow:line-optimize",payload:{elbowKey:D}})}),(0,Se.A)(this,"handleAnchorAdd",$t()((D,z,X,ie,ue,oe,be)=>{const Ae=D===0?D:z,Ne=D===0?D+2:D,Be=D===0?z+2:z;this.setState({isLineAnchorAdding:!0,fixedFromIndex:Ne,fixedToIndex:Be}),be({type:"entry:elbow:line-anchor-add",payload:{length:ie.length,index:Ae,direction:ue,event:oe,elbowKey:X}})},300,{leading:!0,trailing:!1}))}componentWillUnmount(){this.setState=()=>!1}render(){const{rectList:D,isLineDragging:z,rectAnchorDraggingIndex:X,hasLineComment:ie}=this.props,ue=ie;return(0,fe.jsx)(Oo,{children:D&&D.map((oe,be)=>(be===0||be===D.length-1)&&oe.length<=20?null:ue&&oe.isTextCommentIndex&&typeof oe.xList=="object"?(0,fe.jsx)("span",{children:[0,1].map(Ae=>(0,fe.jsx)("span",{className:Kt()({"line-rect-anchor vertical":oe.direction==="vertical","line-rect-anchor horizontal":oe.direction==="horizontal"}),onMouseDown:this.onMouseDown,onClick:this.onClick,"data-direction":oe.direction,"data-from":oe.from,"data-to":oe.to,style:{opacity:z&&X!==be?0:1,width:oe.direction==="horizontal"?"8px":"14px",height:oe.direction==="horizontal"?"14px":"8px",left:oe.xList[Ae],top:oe.yList[Ae]}},""+Ae))},oe.x+"&"+oe.y+"&"+be):(0,fe.jsx)("span",{className:Kt()({"line-rect-anchor vertical":oe.direction==="vertical","line-rect-anchor horizontal":oe.direction==="horizontal"}),onMouseDown:this.onMouseDown,onClick:this.onClick,"data-direction":oe.direction,"data-from":oe.from,"data-to":oe.to,style:{opacity:z&&X!==be?0:1,width:oe.direction==="horizontal"?"8px":"20px",height:oe.direction==="horizontal"?"20px":"8px",left:oe.x,top:oe.y}},oe.x+"&"+oe.y+"&"+be))})}}class ju extends r.PureComponent{constructor(){super(...arguments),(0,Se.A)(this,"getComputedInfo",()=>{const{item:{key:D,hotAttr:z},offset:X,scale:ie}=this.props,{elbow:ue,textV0:oe}=z,be=Ia(D,ue,{offset:X,scale:ie});return{rectList:ya(be),hasLineComment:!!(oe&&oe.text)}})}render(){const{editingCid:D,item:z,item:{key:X,hotAttr:ie},isDraggingElbowText:ue,scale:oe,dispatch:be}=this.props,{rectList:Ae,hasLineComment:Ne}=this.getComputedInfo(),Be=D===X,Ge=ie.elbow.elbowType,it=(Ge==="rounded"||Ge==="sharp")&&!Be&&!ue;return(0,fe.jsxs)(eo,{children:[(0,fe.jsx)(gr,{widget:z,scale:oe}),(0,fe.jsx)(Qa,{widget:z}),it&&(0,fe.jsx)(md,{elbowKey:X,rectList:Ae,dispatch:be,isLineDragging:!1,hasLineComment:Ne,rectAnchorDraggingIndex:void 0})]})}}const W1=(0,On.Mz)([l.ER,l.X_,l.lh,hd.CP],(K,D,z,X)=>({offset:K,scale:D/100,editingCid:z,isDraggingElbowText:X})),Du=(0,I.Ng)(K=>W1(K))(ju),Fh=(0,r.memo)(K=>{const{scale:D,selectedWidgets:z,showTotalBorder:X,onlyView:ie}=K,ue=(0,I.d4)(U.lY),oe=(0,I.d4)(Zn.WH),be=(0,I.d4)(ud.Bq),Ae=(0,I.d4)(ud.G1),Ne=(0,I.d4)(ud.ul),Be=(0,I.d4)(U.Pm),Ge=(0,I.d4)(l.PL),it=(0,I.d4)(U.jI),At=(0,I.d4)(U.bt),zt=(0,I.d4)(U.pH),qt=(0,I.d4)(U.YL),_n=(0,I.d4)(nr.U2),$n=(0,I.d4)(Ee.c),Fn=(0,I.d4)(Ac.j),Ao=(0,I.d4)(hd.n9),_o=($n==null?void 0:$n.hotAttr.type)===C.x.WRichText&&$n.hotAttr.richTextV1.sizeType===1,zo=(0,I.wA)(),aa=D/100;return Ao?(0,fe.jsx)(Du,{item:Ao}):z.map(oa=>{const{key:ma,hotAttr:{type:Ea}}=oa;if(ue&&Ea===C.x.WVector)return null;const er=z.length<10;if(Ea===C.x.WLine||Ea===C.x.WArrow)return(0,fe.jsx)(Ln,{isLineSelect:!0,widget:oa,ratio:aa},ma);if(Ea===C.x.WElbow)return(0,fe.jsx)(gr,{widget:oa,scale:aa});const{type:Pr="common"}=Ae[ma]||{},Aa=ma!==be&&Pr==="common"&&ma!==Ne;return(0,fe.jsx)(Lc,{dispatch:zo,editingEditableWidgetCid:Be,dashedBorder:_o,editingBasketKey:it,editingBasketRefPage:At,keyToAccessIntAct:_n,isMultiSelect:X,widget:oa,editingAIComponentKey:be,isShowAIComponentPreview:Aa,rootProject:Ge,isCommunityPreview:zt,isVersionPreview:qt,onlyView:ie,editMindKey:oe,ratio:aa,needWillChange:er,isSelectItemsInMuban:Fn},ma)})}),Ld=()=>{var K;const D=(0,I.d4)(jn),z=(0,I.d4)(l.X_),X=(0,I.d4)(U.jx)===y.qi.OnlyView,ie=!!(0,I.d4)(l.wq),ue=(0,I.d4)(l.pO),oe=(0,I.d4)(nr.p$),be=(0,I.d4)(U.IL),Ae=(0,I.d4)(nr.nE),Ne=(0,I.d4)(U.HY),Be=(0,r.useMemo)(()=>Ae.filter(At=>!(0,bo.SB)(At)),[Ae]),Ge=(0,r.useMemo)(()=>Ae.length>1&&Ae.filter(bo.pT).length>1,[Ae]),it=!!(be&&Ne&&!oe.includes(be));return D?null:(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsxs)(O0,{className:Kt()("selection-border",{"shield-corner-events":ie}),children:[Ge&&(0,fe.jsx)(Nu,{items:Be,ratio:z/100,isResizing:(K=MB)==null||(K=K.f)==null?void 0:K.isResizing}),it&&(0,fe.jsx)(gi,{isShow:!0,widget:Ne,scale:z,onlyView:X}),(0,fe.jsx)(Fh,{selectedWidgets:Be,showTotalBorder:Ge,scale:z,onlyView:X})]}),Be.length>0&&(0,fe.jsx)(Ap,{scale:z,selectWidgets:Be,isDraggingItem:ue})]})};var $c=s(99587),b0=s(59025),H1=s(73662),G1=s(62280),kp=s(33421),ql=s(94986);class Ru extends r.Component{constructor(){super(...arguments),(0,Se.A)(this,"offsetX",0),(0,Se.A)(this,"offsetY",0),(0,Se.A)(this,"controllerOriginalPosition",null),(0,Se.A)(this,"movingControllerIndex",null),(0,Se.A)(this,"state",{points:[]}),(0,Se.A)(this,"getControllerPosition",D=>{const{x:z,y:X,w:ie,h:ue}=this.props.item.hotAttr,{points:oe}=this.state,be=z-ie/2,Ae=X-ue/2;return(0,In.NG)(oe)?[be+ie*Math.floor(oe[D][0]),Ae+ue*Math.floor(oe[D][1])]:[be+ie*oe[D][0],Ae+ue*oe[D][1]]}),(0,Se.A)(this,"adjustLineByAngle",(D,z)=>{const X=(0,In._H)(z[0]-D[0],z[1]-D[1]),ie=45*Math.round(X/45)%360,ue=(0,In.R3)(z[0]-D[0],z[1]-D[1])*Math.cos((0,In.ql)(X-ie)),oe=[ue*Math.cos((0,In.ql)(ie)),ue*Math.sin((0,In.ql)(ie))];return[D[0]+oe[0],D[1]+oe[1]]}),(0,Se.A)(this,"adjustLineByAxis",(D,z)=>{const ie=[...z];return Math.abs(z[0]-D[0])<=6?ie[0]=D[0]:Math.abs(z[1]-D[1])<=6&&(ie[1]=D[1]),ie}),(0,Se.A)(this,"getWidgetPositionAndPoints",(D,z)=>{var X;const ie=(X=this.controllerOriginalPosition)==null?void 0:X[1-this.movingControllerIndex],ue=z?this.adjustLineByAngle(ie,D):this.adjustLineByAxis(ie,D),oe=[];return oe[this.movingControllerIndex]=ue,oe[1-this.movingControllerIndex]=ie,(0,In.ne)(...oe)}),(0,Se.A)(this,"handleControllerDown",D=>{const{item:z,item:{key:X},offsetX:ie=0,offsetY:ue=0,isDragModeShow:oe,isAdsorbentReferenceLine:be,ratio:Ae}=this.props;D.stopPropagation(),this.before=(0,tn.Oj)(X),this.ro=this.before.transform.decompose().ro;const{x:Ne,y:Be,w:Ge,h:it}=sdkStore.getRelocateLocalBound(X,sdkStore.locUpHotCanvasKey(X)||sdkStore.locUpRBPageKey(X));this.left=Ne-Ge/2,this.top=Be-it/2,MB.f.isResizing=!0,MB.action("reducer:flag:set:is-resizing-item",{isResizingItem:!0}),this.offsetX=ie,this.offsetY=ue,this.movingControllerIndex=Number(D.target.dataset.pointindex),this.controllerOriginalPosition=[],this.controllerOriginalPosition[this.movingControllerIndex]=this.getControllerPosition(this.movingControllerIndex),this.controllerOriginalPosition[1-this.movingControllerIndex]=this.getControllerPosition(1-this.movingControllerIndex),this.movingControllerOriginPositionOnScreen=[D.clientX,D.clientY],(oe||be)&&(this.alignUtil=(0,te.ay)({movableItems:[z],createSnapper:oe?J.WY:te.xb,viewport:{scale:Ae}})),sdkStore.combineMergeMark("line-resize-drag"),document.addEventListener("mousemove",this.handleControllerMove),document.addEventListener("mouseup",this.handleControllerUp)}),(0,Se.A)(this,"getControllerMoveVector",(D,z)=>{const{ratio:X,item:ie}=this.props,ue=(0,tn.Oj)(ie.key).transform.decompose().ro*180/Math.PI,oe=[(D-this.movingControllerOriginPositionOnScreen[0])/X,(z-this.movingControllerOriginPositionOnScreen[1])/X];return(0,In.gA)(oe,ue)}),(0,Se.A)(this,"handleControllerMove",D=>{const{item:z,isDragModeShow:X,isAdsorbentReferenceLine:ie,dispatch:ue}=this.props,oe=this.getControllerMoveVector(D.clientX,D.clientY),be=[this.controllerOriginalPosition[this.movingControllerIndex][0]+oe[0],this.controllerOriginalPosition[this.movingControllerIndex][1]+oe[1]],Ae=D.shiftKey;let{top:Ne,left:Be,width:Ge,height:it,line:At}=this.getWidgetPositionAndPoints(be,Ae);if(X||ie){const $n={top:Ne,left:Be,width:Ge,height:it},Fn=this.getDirection(Ge,it,At,this.movingControllerIndex),Ao=this.alignUtil({_rect:$n,resizing:(0,ql.t)(Fn)});let _o,zo,aa;({top:Ne,left:Be,width:Ge,height:it,alignment:_o,distributed:zo,sameSize:aa}=Ao),MB.action("set:alignment",{alignment:_o}),MB.action("set:sameSize",{sameSize:aa}),MB.action("set:distributed",{distributed:zo})}const zt=z.hotAttr,qt=zt.type===C.x.WArrow?{arrow:{...zt.arrow,arrowPointFrom:At.linePointFrom,arrowPointTo:At.linePointTo}}:{line:At};Ge!==zt.w&&(qt.refVars={...zt.refVars,w:void 0});const _n=[{key:z.key,hotAttr:{...qt,x:Be+Ge*.5,y:Ne+it*.5,w:Ge,h:it}}];ue({type:"entry:widget:change",payload:{flatChgList:_n}})}),(0,Se.A)(this,"getDirection",(D,z,X,ie)=>{if(isNaN(ie))return"";let ue;const{linePointFrom:oe,linePointTo:be}=X,Ae=[oe.x,oe.y],Ne=[be.x,be.y],Be=(0,In.W8)(D,z,[Ae,Ne]);return Be>=0&&Be<22.5||Be>=360-22.5&&Be<360?ue=["l","r"]:Be>=45-22.5&&Be<45+22.5?ue=["tl","br"]:Be>=90-22.5&&Be<90+22.5?ue=["t","b"]:Be>=135-22.5&&Be<135+22.5?ue=["tr","bl"]:Be>=180-22.5&&Be<180+22.5?ue=["r","l"]:Be>=225-22.5&&Be<225+22.5?ue=["br","tl"]:Be>=270-22.5&&Be<270+22.5?ue=["b","t"]:Be>=315-22.5&&Be<315+22.5?ue=["bl","tr"]:ue=["l","r"],ue[ie]}),(0,Se.A)(this,"handleControllerUp",()=>{const{isDragModeShow:D,isAdsorbentReferenceLine:z}=this.props;document.removeEventListener("mousemove",this.handleControllerMove),document.removeEventListener("mouseup",this.handleControllerUp),MB.f.isResizing=!1,MB.action("reducer:flag:set:is-resizing-item",{isResizingItem:!1}),(D||z)&&(MB.action("set:alignment",{alignment:{}}),MB.action("set:sameSize",{sameSize:{}}),MB.action("set:distributed",{distributed:{}})),sdkStore.combineMerge("line-resize-drag")}),(0,Se.A)(this,"getControllerCursor",(D,z,X)=>{let[ie,ue]=X;const oe=(0,In.W8)(D,z,[ie,ue]);return oe>=0&&oe<22.5||oe>=360-22.5&&oe<360?["w-resize","e-resize"]:oe>=45-22.5&&oe<45+22.5?["nw-resize","se-resize"]:oe>=90-22.5&&oe<90+22.5?["n-resize","s-resize"]:oe>=135-22.5&&oe<135+22.5?["ne-resize","sw-resize"]:oe>=180-22.5&&oe<180+22.5?["e-resize","w-resize"]:oe>=225-22.5&&oe<225+22.5?["se-resize","nw-resize"]:oe>=270-22.5&&oe<270+22.5?["s-resize","n-resize"]:oe>=315-22.5&&oe<315+22.5?["sw-resize","ne-resize"]:["default","default"]}),(0,Se.A)(this,"getResizerWrapperStyle",D=>{let{top:z,left:X,width:ie,height:ue,ratio:oe,transform:be}=D;const{a:Ae,b:Ne,c:Be,d:Ge}=be;return{position:"absolute",pointerEvents:"none",top:Math.round(z*oe)+"px",left:Math.round(X*oe)+"px",transform:"matrix("+Ae+","+Ne+","+Be+","+Ge+",0,0)"}}),(0,Se.A)(this,"getControllerStyle",(D,z,X,ie,ue)=>{const oe={display:"block",position:"absolute",width:"7px",height:"7px",border:"1px solid #298df8",pointerEvents:"auto",background:"#fff",borderRadius:"50%"},be={top:Math.round(D[ue][1]*X*ie-3)+"px",left:Math.round(D[ue][0]*z*ie-3)+"px"},Ae=this.getControllerCursor(z,X,D);return{...oe,...be,cursor:Ae[ue]}})}static getDerivedStateFromProps(D){const{start:z,end:X}=D;return{points:[z,X]}}render(){const{item:D,ratio:z}=this.props,{transform:X,rect:{x:ie,y:ue,w:oe,h:be}}=(0,tn.Oj)(D.key),{x:Ae,y:Ne}=X.clone().apply({x:ie,y:ue}),{points:Be}=this.state;return(0,fe.jsxs)("div",{style:this.getResizerWrapperStyle({top:Ne,left:Ae,width:oe,height:be,ratio:z,transform:X}),children:[(0,fe.jsx)("i",{style:this.getControllerStyle(Be,oe,be,z,0),"data-pointindex":"0",onMouseDown:this.handleControllerDown}),(0,fe.jsx)("i",{style:this.getControllerStyle(Be,oe,be,z,1),"data-pointindex":"1",onMouseDown:this.handleControllerDown})]})}}var w0=s(20166),F0=s(18630),Mp=s(38358),C0=s(9680),c1=s(5621);const Xd={n:"t",s:"b",e:"r",w:"l",ne:"tr",nw:"tl",se:"br",sw:"bl"},d1={t:"n",b:"s",r:"e",l:"w",tr:"ne",tl:"nw",br:"se",bl:"sw"},kc={n:0,s:0,e:90,w:90,ne:45,nw:135,se:135,sw:45},Nd={ne:"tr",nw:"tl",se:"br",sw:"bl"},Ep="n,s,e,w,ne,sw,se,nw",b2={RESIZE_ARROW_NORMAL:"url(\"data:image/svg+xml,%3Csvg width='31' height='31' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cfilter x='-52.3%25' y='-175.5%25' width='204.6%25' height='450.9%25' filterUnits='objectBoundingBox' id='a'%3E%3CfeOffset dy='1' in='SourceAlpha' result='shadowOffsetOuter1'/%3E%3CfeGaussianBlur stdDeviation='1.5' in='shadowOffsetOuter1' result='shadowBlurOuter1'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.4 0' in='shadowBlurOuter1' result='shadowMatrixOuter1'/%3E%3CfeMerge%3E%3CfeMergeNode in='shadowMatrixOuter1'/%3E%3CfeMergeNode in='SourceGraphic'/%3E%3C/feMerge%3E%3C/filter%3E%3C/defs%3E%3Cg fill='%23000' fill-rule='nonzero' transform='rotate(__absAngle__,16,16)' %3E%3Cg filter='url(%23a)' stroke='%23FFF' transform='rotate(90 5.5 12.5)'%3E%3Crect x='7.5' y='.5' width='2' height='4' rx='.5'/%3E%3Cpath d='M1.5 1.5h14v2h-14z'/%3E%3Cpath d='M-.607 2.72L3.09-.82l.488 6.39L-.607 2.72zM17.607 2.28L13.91 5.82l-.488-6.39 4.185 2.852z'/%3E%3C/g%3E%3Cg transform='rotate(90 5.5 12.5)'%3E%3Crect x='8' y='1' width='1' height='3' rx='.5'/%3E%3Cpath d='M2 2h13v1H2z'/%3E%3Cpath d='M.184 2.346L2.672.273A.2.2 0 013 .427v4.146a.2.2 0 01-.328.154L.184 2.654a.2.2 0 010-.308zM16.816 2.654l-2.488 2.073A.2.2 0 0114 4.573V.427a.2.2 0 01.328-.154l2.488 2.073a.2.2 0 010 .308z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E\") 16 16,auto"},zh={hr:"w,e,n",ve:"n,s,w",ios_switch:" ",android_switch:" ",rectangle:"n,s",search_bar:"w,e",status_bar:" ",tab_item:"w,e",tab_bar:"n",pg:" "},Ip=14,Wh=8,Bu=5,_p=20,Al=10,Zl=20,Nc=6,Z1=(K,D)=>{let z=Math.round(D+K);return z>=360?z-=360:z<0&&(z+=360),z>356||z<4?z=0:z>86&&z<94?z=90:z>176&&z<184?z=180:z>266&&z<274&&(z=270),z},V0=(K,D)=>(ne.Z.radian(K,D)/Math.PI*180+360)%360,K1=(K,D)=>{const{w:z,h:X}=(0,tn.NO)(K.key),{hotAttr:{type:ie,isLockAspect:ue}}=K,oe=D||ue?(0,c1.K)(z,X):-1,be=ie===C.x.WUnifiedKeyboard,Ae=ie===C.x.WQRCode;return be?w2(ie):Ae?1:oe===-1?!1:oe},Tp={ipad:{portrait:[1536,526],landscape:[2048,704]},iphone:{portrait:[640,348],landscape:[1136,252]},android:{portrait:[574,354],landscape:[956,278]}},w2=K=>{const D=K.includes("iphone")?"iphone":K.includes("ipad")?"ipad":K.includes("android")?"android":"iphone",z=K.includes("landscape")?"landscape":"portrait",[X,ie]=Tp[D][z];return X/ie},Y1=K=>{let{w:D,h:z,ratio:X,isTable:ie=!1}=K;const ue=D*X,oe=z*X,be=ue<_p||oe<_p,Ae=ie?ue<Zl||oe<Zl:ue<Al&&oe<Al;return{isHotCornerCriticalPoint:be,isNoHotZone:Ae,anchorHotZone:be?Wh:Ip,lineHotZone:be?Bu:Ip,lineTableZone:be?Bu:Nc}},Pp=Yt.Ay.div.withConfig({displayName:"styles__StyledResizer",componentId:"sc-1ifttgj-0"})(["position:absolute;transform-origin:0 0;border:1px solid ",";&.is-dy-widget:not(.is-locked){border:1px solid ",";.square{border-color:",";}}&.is-master:not(.is-locked){border:1px solid #7146FE;.square{border-color:#7146FE;}}& > *{pointer-events:auto;}.square{position:absolute;width:8px;height:8px;background:white;border:1px solid ",";border-radius:2px;}.resizable-handler{position:absolute;width:","px;height:","px;cursor:pointer;z-index:1;&.t,&.b{height:","px;width:100%;left:3px;}&.l,&.r{width:","px;height:100%;top:3px;}&:not(.is-hotCorner-critical-point){&.tl,&.tr{top:-8.5px;}&.tl,&.bl{left:-8.5px;}&.bl,&.br{bottom:-8.5px;}&.br,&.tr{right:-8.5px;}&.r{right:-8.5px;}&.l{left:-8.5px;}&.t{top:-8.5px;}&.b{bottom:-8.5px;}}&.is-table{&.t{height:","px;}&.l{width:","px;}&:not(.is-hotCorner-critical-point){&.t{top:0;}&.l{left:0;}}}}.rotate{position:absolute;left:50%;top:-26px;width:18px;height:18px;margin-left:-9px;display:flex;justify-content:center;align-items:center;cursor:pointer;path{fill:",";}}.t,.tl,.tr{top:-4.5px;}.b,.bl,.br{bottom:-4.5px;}.r,.tr,.br{right:-4.5px;}.tl,.l,.bl{left:-4.5px;}.l,.r{top:50%;margin-top:-4px;}.t,.b{left:50%;margin-left:-4px;}.ai-semantic{position:absolute;width:16px;height:16px;top:-24px;right:-8px;cursor:pointer;svg{width:100%;height:100%;}}"],K=>K.theme.color_proto,K=>K.theme.color_comments,K=>K.theme.color_comments,K=>K.theme.color_proto,K=>K.anchorHotZone,K=>K.anchorHotZone,K=>K.lineHotZone,K=>K.lineHotZone,K=>K.lineTableZone,K=>K.lineTableZone,K=>K.theme.color_proto),Uu=(0,fe.jsx)("svg",{width:"14",height:"14",xmlns:"http://www.w3.org/2000/svg",children:(0,fe.jsx)("path",{d:"M10.536 3.464A5 5 0 1 0 11 10l1.424 1.425a7 7 0 1 1-.475-9.374L13.659.34A.2.2 0 0 1 14 .483V5.5a.5.5 0 0 1-.5.5H8.483a.2.2 0 0 1-.142-.341l2.195-2.195z",fill:"#eb5648",fillRule:"nonzero"})});class Hh extends r.PureComponent{constructor(){super(...arguments),(0,Se.A)(this,"setElementRef",D=>this.$element=D),(0,Se.A)(this,"onRotate",D=>{if(D.button!==0)return;const{clientX:z,clientY:X}=D,{item:ie,dispatch:ue}=this.props,{key:oe,hotAttr:{r:be=0}}=ie,Ae=(0,to.s_)(oe),Ne=this.$element.getBoundingClientRect(),Be=ne.Z.xy(Ne.left+Ne.width/2,Ne.top+Ne.height/2),Ge=ne.Z.xy(z-Be.x,X-Be.y);sdkStore.combineMergeMark("resize-rotate-drag");const it=zt=>{zt.stopImmediatePropagation();const{clientX:qt,clientY:_n}=zt,$n=ne.Z.xy(qt-Be.x,_n-Be.y),Fn=V0(Ge,$n),Ao=Z1(be+Fn,0),_o=[];(0,F0.bp)(_o,oe,Ao,!1),_o.length&&(_o.forEach(zo=>{let{key:aa,hotAttr:oa}=zo;oa.refVars=(0,C0.VN)(aa,oa)}),ue({type:"entry:widget:change",payload:{flatChgList:_o}}))},At=()=>{document.removeEventListener("mousemove",it),document.removeEventListener("mouseup",At);const{currPageKey:zt}=this.props,qt=[],_n=(0,to.G9)(zt,[oe]),$n=(0,to.wr)(),Fn=(0,to.Rv)(qt,oe,Ae,_n,$n);ue({type:"entry:widget:change",payload:{flatChgList:qt,shouldBreakLayerUICache:Fn}}),sdkStore.combineMerge("resize-rotate-drag")};document.addEventListener("mousemove",it),document.addEventListener("mouseup",At)}),(0,Se.A)(this,"onResize",D=>{const{item:z,isDragModeShow:X,isAdsorbentReferenceLine:ie,ratio:ue,isForbiddenSingleResize:oe,dispatch:be}=this.props;if(oe){be({type:H1.y.entryKey["font:miss:modal:open"]});return}const{clientX:Ae,clientY:Ne}=D,{direction:Be}=D.currentTarget.dataset,Ge=X||ie;MB.f.isResizing=!0,MB.action("reducer:flag:set:is-resizing-item",{isResizingItem:!0});const{key:it,hotAttr:{isLockAspect:At}}=z,zt=K1(z,D.shiftKey),{w:qt,h:_n}=(0,tn.NO)(it),$n=(0,c1.K)(qt,_n);Ge&&(this.alignUtil=(0,te.ay)({movableItems:[z],createSnapper:X?J.WY:te.xb,viewport:{scale:ue}})),sdkStore.combineMergeMark("resize-drag");const Fn=(0,F0.Ie)(it),Ao=(0,to.s_)(it);let _o=zt,zo=Ae,aa=Ne;const oa=(Aa,fr)=>{const{hb:Jr}=Fn[it];fr==="mouseMove"&&(zo=Aa.clientX,aa=Aa.clientY);const qa=(0,Fs.e)({x:(zo-Ae)/ue,y:(aa-Ne)/ue},(0,dd.EQ)(-Jr.r));let Ka=(0,Mp.AL)(Jr,qa.x,qa.y,Be,_o);if(Jr.r===0){const Ua=Ka.w*.5,_r=Ka.h*.5,ni={left:Math.round(Ka.x-Ua),top:Math.round(Ka.y-_r),right:Math.round(Ka.x+Ua),bottom:Math.round(Ka.y+_r),width:Math.round(Ka.w),height:Math.round(Ka.h)};if(Ge){const zr=this.alignUtil({_rect:ni,resizing:(0,ql.t)(Be),altKey:!1,originAspectRatio:_o||void 0});if(zr){const{top:Ur,left:ki,bottom:ds,right:Qs,alignment:E,distributed:le,sameSize:de}=zr;MB.action("set:alignment",{alignment:E}),MB.action("set:sameSize",{sameSize:de}),MB.action("set:distributed",{distributed:le}),Ka={x:(ki+Qs)*.5,y:(Ur+ds)*.5,w:Qs-ki,h:ds-Ur}}}}const rr=[];(0,F0.$O)(rr,it,Ka,Fn,_o,Be),rr.forEach(Ua=>{let{key:_r,hotAttr:ni}=Ua;ni.refVars=(0,C0.VN)(_r,ni)}),be({type:"update:resize-event:state",payload:{isActive:!0,preResizeSnapshot:Fn}}),be({type:"entry:widget:change",payload:{flatChgList:rr}})},ma=Aa=>{oa(Aa,"mouseMove")},Ea=Aa=>{Aa.repeat||(Aa.shiftKey?_o=$n:_o=zt,oa(Aa,"shiftKey"))},er=Aa=>{Aa.key==="Shift"&&(_o=At?zt:!1,oa(Aa,"shiftKey"))},Pr=()=>{const{isDragModeShow:Aa,isAdsorbentReferenceLine:fr,editingPanelCid:Jr,editingPanelRefPage:qa,currPageKey:Ka}=this.props;MB.f.isResizing=!1,MB.action("reducer:flag:set:is-resizing-item",{isResizingItem:!1}),(Aa||fr)&&(MB.action("set:alignment",{alignment:{}}),MB.action("set:sameSize",{sameSize:{}}),MB.action("set:distributed",{distributed:{}}));const rr=[],Ua=(0,to.G9)(Ka,[it]),_r=(0,to.wr)(),ni=(0,to.Rv)(rr,it,Ao,Ua,_r);be({type:"entry:widget:change",payload:{flatChgList:rr,shouldBreakLayerUICache:ni}}),(Jr||qa)&&(be({type:"entry:finish:resize:canvas:within:basket"}),be({type:"entry:layout:basket-canvas"})),be({type:"reset:resize-event:state"}),document.removeEventListener("mousemove",ma),document.removeEventListener("mouseup",Pr),document.removeEventListener("keydown",Ea),document.removeEventListener("keyup",er),sdkStore.combineMerge("resize-drag")};document.addEventListener("mousemove",ma),document.addEventListener("mouseup",Pr),document.addEventListener("keydown",Ea),document.addEventListener("keyup",er),(0,w0.Yq)()}),(0,Se.A)(this,"handleDoubleClick",D=>z=>{const{isForbiddenSingleResize:X,item:ie,dispatch:ue}=this.props;if(X)return;const{type:oe,richTextV1:be}=ie.hotAttr;if(oe===C.x.WRichText){if(D==="e"||D==="w"){if(be.fontDirection==="vertical-lr"&&be.sizeType===0)return;if(z.stopPropagation(),be.fontDirection==="vertical-lr"){if(be.sizeType===0)return;ue({type:"entry:set:text:attr",payload:{value:2,attr:"sizeType"}})}else ue({type:"entry:set:text:attr",payload:{value:0,attr:"sizeType"}})}else if(D==="n"||D==="s"){if(be.fontDirection==="horizontal-tb"&&be.sizeType===0)return;z.stopPropagation(),be.fontDirection==="vertical-lr"?ue({type:"entry:set:text:attr",payload:{value:0,attr:"sizeType"}}):ue({type:"entry:set:text:attr",payload:{value:2,attr:"sizeType"}})}}})}render(){const{ratio:D,canRotate:z,item:X}=this.props,{key:ie,hotAttr:ue}=X,{x:oe,y:be,r:Ae,w:Ne,h:Be}=sdkStore.getHotBound(ie),Ge={width:Ne*D,height:Be*D,transform:"translate("+(oe-Ne*.5)*D+"px,"+(be-Be*.5)*D+"px) rotate("+Ae+"deg)",transformOrigin:"center center"},{type:it,basket:At,isLock:zt}=ue,qt=it===C.x.WBasket&&At==="bDanli",_n=it===C.x.WBasket&&At==="bMuban",$n=it===C.x.WTable,Fn=Ep.split(",").map(Ea=>Ea.trim()).filter(Ea=>Ea),Ao=Fn.filter(Ea=>Nd[Ea]),{isHotCornerCriticalPoint:_o,isNoHotZone:zo,anchorHotZone:aa,lineHotZone:oa,lineTableZone:ma}=Y1({w:Ne,h:Be,ratio:D,isTable:$n});return(0,fe.jsx)(Pp,{className:Kt()({"is-locked":zt,"is-dy-widget":qt,"is-master":_n}),style:Ge,ref:this.setElementRef,anchorHotZone:aa,lineHotZone:oa,lineTableZone:ma,children:zo?null:(0,fe.jsxs)(fe.Fragment,{children:[z&&(0,fe.jsx)("div",{className:"rotate",onMouseDown:this.onRotate,children:Uu}),Fn.map(Ea=>{const er=Ae+kc[Ea],Pr=b2.RESIZE_ARROW_NORMAL.replace("__absAngle__",""+er);return(0,fe.jsx)("div",{style:{cursor:Pr},"data-direction":Xd[Ea],className:Kt()(Xd[Ea]+" resizable-handler",_o&&"is-hotCorner-critical-point",$n&&"is-table"),onMouseDown:this.onResize,onDoubleClick:this.handleDoubleClick(Ea)},Ea)}),Ao.map(Ea=>(0,fe.jsx)("div",{className:Kt()(Xd[Ea]+" square")},Ea))]})})}}const C2=K=>{const{item:D}=K,{hotAttr:z}=D;switch(z.type){case C.x.WLine:case C.x.WArrow:{const{from:X,to:ie}=(0,In.Ne)(z),ue=[X.x,X.y],oe=[ie.x,ie.y];return(0,fe.jsx)(Ru,{...K,start:ue,end:oe})}case C.x.WElbow:return(0,fe.jsx)(Du,{item:D});default:return(0,fe.jsx)(Hh,{...K})}};var sl=s(36050);class X1 extends r.Component{constructor(D){super(D),(0,Se.A)(this,"onResize",(z,X)=>{const{ratio:ie,isDragModeShow:ue,isAdsorbentReferenceLine:oe,dispatch:be,isForbiddenMultiResize:Ae}=this.props,{filteredSelectedWidgets:Ne,aabb:Be}=this.state,{clientX:Ge,clientY:it,shiftKey:At}=z,{direction:zt}=z.currentTarget.dataset;if(Ae){be({type:H1.y.entryKey["font:miss:modal:open"]});return}const qt=Ne.some(Ua=>{let{hotAttr:{isLockAspect:_r,type:ni}}=Ua;return _r||ni===C.x.WImage||(0,sl.If)(ni)||/_(check|radio)$/.test(ni)}),[_n,$n,Fn,Ao]=Be,_o=(0,c1.K)(Fn-_n,Ao-$n),zo=qt||At?_o:void 0,aa=zt&&(ue||oe);MB.f.isResizing=!0,MB.action("reducer:flag:set:is-resizing-item",{isResizingItem:!0}),aa&&(this.alignUtil=(0,te.ay)({movableItems:Ne,createSnapper:ue?J.WY:te.xb,viewport:{scale:ie}}));const oa=[],ma={},Ea=new Map;for(const{key:Ua}of Ne)oa.push(Ua),(0,F0.Ie)(Ua,ma),(0,to.s_)(Ua,Ea);ma["@@START-MR"]={hb:(0,G1.T3)(sdkStore.getHotKeyListAABB(oa)),lbR:0,wasoX:0,wasoY:0},sdkStore.combineMergeMark("multi-resize-drag");let er=zo,Pr=Ge,Aa=it;const fr=(Ua,_r)=>{const{hb:ni}=ma["@@START-MR"];_r==="mouseMove"&&(Pr=Ua.clientX,Aa=Ua.clientY);const zr={x:(Pr-Ge)/ie,y:(Aa-it)/ie};let Ur=(0,Mp.AL)(ni,zr.x,zr.y,zt,er);if(Object.values(ma).some(ds=>{let{hb:Qs}=ds;return Qs.r===0})){const ds=Ur.w*.5,Qs=Ur.h*.5,E={left:Math.round(Ur.x-ds),top:Math.round(Ur.y-Qs),right:Math.round(Ur.x+ds),bottom:Math.round(Ur.y+Qs),width:Math.round(Ur.w),height:Math.round(Ur.h)};if(aa){const le=this.alignUtil({_rect:E,resizing:(0,ql.t)(zt),altKey:!1,originAspectRatio:er||void 0});if(le){const{top:de,left:_e,bottom:Vt,right:Bt,alignment:ln,distributed:Ht,sameSize:En}=le;MB.action("set:alignment",{alignment:ln}),MB.action("set:sameSize",{sameSize:En}),MB.action("set:distributed",{distributed:Ht}),Ur={x:(_e+Bt)*.5,y:(de+Vt)*.5,w:Bt-_e,h:Vt-de}}}}const ki=[];for(const ds of oa){const Qs=(0,F0.h1)("@@START-MR",ds,Ur,ma,X);(0,F0.$O)(ki,ds,Qs,ma,er,zt)}ki.forEach(ds=>{let{key:Qs,hotAttr:E}=ds;E.refVars=(0,C0.VN)(Qs,E)}),be({type:"update:resize-event:state",payload:{isActive:!0,preResizeSnapshot:ma}}),be({type:"entry:widget:change",payload:{flatChgList:ki}})},Jr=Ua=>{fr(Ua,"mouseMove")},qa=Ua=>{Ua.repeat||(Ua.shiftKey?er=_o:er=zo,fr(Ua,"shiftKey"))},Ka=Ua=>{Ua.key==="Shift"&&(er=qt?zo:void 0,fr(Ua,"shiftKey"))},rr=()=>{const{isDragModeShow:Ua,currPageKey:_r}=this.props;MB.f.isResizing=!1,MB.action("reducer:flag:set:is-resizing-item",{isResizingItem:!1}),Ua&&(MB.action("set:alignment",{alignment:{}}),MB.action("set:sameSize",{sameSize:{}}),MB.action("set:distributed",{distributed:{}}));const ni=[],zr=(0,to.G9)(_r,oa),Ur=(0,to.wr)();let ki=!1;for(const ds of oa){const Qs=(0,to.Rv)(ni,ds,Ea,zr,Ur);ki=ki||Qs!==null}be({type:"entry:widget:change",payload:{flatChgList:ni,shouldBreakLayerUICache:ki}}),be({type:"entry:finish:resize:canvas:within:basket"}),be({type:"entry:layout:basket-canvas"}),be({type:"entry:select:smartly"}),be({type:"reset:resize-event:state"}),document.removeEventListener("mousemove",Jr),document.removeEventListener("mouseup",rr),document.removeEventListener("keydown",qa),document.removeEventListener("keyup",Ka),sdkStore.combineMerge("multi-resize-drag")};document.addEventListener("mousemove",Jr),document.addEventListener("mouseup",rr),document.addEventListener("keydown",qa),document.addEventListener("keyup",Ka)}),this.state={filteredSelectedWidgets:[],newSelection:[],aabb:[]}}static getDerivedStateFromProps(D,z){var X,ie;let{prevProps:ue}=z;if((D==null||(X=D.selectedWidgets)==null?void 0:X.length)!==(ue==null||(ie=ue.selectedWidgets)==null?void 0:ie.length)){var oe;const be=D==null||(oe=D.selectedWidgets)==null?void 0:oe.filter(Ne=>Ne.type!==C.x.WTear),Ae=be==null?void 0:be.map(Ne=>Ne.key);return{filteredSelectedWidgets:be,newSelection:Ae,aabb:sdkStore.getHotKeyListAABB(Ae)}}return null}render(){const{ratio:D}=this.props,{filteredSelectedWidgets:z,newSelection:X,aabb:ie}=this.state;if(z.length===0)return null;const[ue,oe,be,Ae]=ie,Ne=be-ue,Be=Ae-oe,Ge={left:ue*D,top:oe*D,width:Ne*D,height:Be*D},it=Ep.split(",").map(Fn=>Fn.trim()).filter(Fn=>Fn),At=it.filter(Fn=>Nd[Fn]),{isHotCornerCriticalPoint:zt,isNoHotZone:qt,anchorHotZone:_n,lineHotZone:$n}=Y1({w:Ne,h:Be,ratio:D});return(0,fe.jsx)(Pp,{style:Ge,anchorHotZone:_n,lineHotZone:$n,children:qt?null:(0,fe.jsxs)(fe.Fragment,{children:[it.map(Fn=>{const Ao=kc[Fn],_o=b2.RESIZE_ARROW_NORMAL.replace("__absAngle__",""+Ao);return(0,fe.jsx)("div",{style:{cursor:_o},"data-direction":Xd[Fn],className:Kt()(Xd[Fn]+" resizable-handler",{isHotCornerCriticalPoint:zt}),onMouseDown:zo=>this.onResize(zo,Fn)},Fn)}),At.map(Fn=>(0,fe.jsx)("div",{className:Xd[Fn]+" square"},Fn))]})})}}(0,Se.A)(X1,"defaultProps",{offsetX:0,offsetY:0});const jc=K=>{const{tree:D,ratio:z}=K,{transform:X,rect:ie}=(0,tn.Oj)(D.key),{a:ue,b:oe,c:be,d:Ae}=X,{x:Ne,y:Be}=X.clone().scale(z,z).apply({x:ie.x,y:ie.y}),{x:Ge,y:it}=ne.Z.mul(ne.Z.xy(ie.w,ie.h),z),At=D.hotAttr.type==="wLine",zt={left:Ne,top:Be,width:Ge,height:it,transform:"matrix("+ue+","+oe+","+be+","+Ae+",0,0)"},qt=ie.w,_n=At?1:ie.h,$n=Math.round(qt),Fn=Math.round(_n);return(0,fe.jsx)(ic,{style:zt,children:(0,fe.jsx)("div",{className:"meta-info",children:$n+" \xD7 "+Fn})})},ic=Yt.Ay.div.withConfig({displayName:"MetaInfo__StyledMetaInfo",componentId:"sc-1mcn3bb-0"})(["z-index:1;position:absolute;pointer-events:none;.meta-info{padding:2px 4px;color:#fff;background:#454647;top:calc(100% + 10px);left:50%;transform:translateX(-50%);border-radius:2px;white-space:nowrap;position:absolute;}"]),rs=jc,is=Yt.Ay.div.withConfig({displayName:"styles__StyledSelectionResizer",componentId:"sc-1mji8la-0"})(["position:absolute;z-index:2;.rect{border:none;.rotate path{fill:",";}.square{border-radius:50%;border-color:",";}}&.hide{display:none;}&.hide-h-side .rect{.t,.b{display:none;}}&.hide-v-side .rect{.l,.r{display:none;}}&.hide-corner .rect{.resizable-handler,.square{display:none;}}&.shield-corner-events{.resizable-handler,.square,.rotate{pointer-events:none;}}&.is-dy-widget{.rect{border:none;.rotate path{fill:",";}.square{border-radius:50%;border-color:",";}}}&.is-master{.rect{border:none;.rotate path{fill:#7146FE;}.square{border-radius:50%;border-color:#9f51c0;}}}"],K=>K.theme.color_proto,K=>K.theme.color_proto,K=>K.theme.color_comments,K=>K.theme.color_comments);class Q1 extends r.PureComponent{constructor(D){super(D),this.state={bound:(0,G1.T3)(sdkStore.getHotKeyListAABB((D==null?void 0:D.newSelection)||[]))}}render(){const{isHide:D,scale:z,selectedWidgets:X,editingPanelCid:ie,editingPanelRefPage:ue,canRotate:oe,showWidgetMetaInfo:be,showSingleResizer:Ae,showMultipleResizer:Ne,isQuickCreateWidget:Be,isDragModeShow:Ge,isAdsorbentReferenceLine:it,currPageKey:At,missFontHiKeySet:zt,dispatch:qt}=this.props,{bound:{w:_n,h:$n}}=this.state;if(D)return null;const Fn=z/100,Ao=X.length===1?X[0]:null,_o=Ao?Ao.hotAttr:null,zo=_o==null?void 0:_o.type;if(zo===C.x.Bunch&&(_o==null?void 0:_o.bunch)===C.x.RbPage)return null;const aa=zo===C.x.WLR,oa=zo===C.x.WRichText&&(_o==null?void 0:_o.size_type)===0,ma=zo===C.x.WRichText&&(_o==null?void 0:_o.size_type)!==0,Ea=zo===C.x.WBasket&&(_o==null?void 0:_o.basket)==="bDanli",er=zo===C.x.WBasket&&(_o==null?void 0:_o.basket)==="bMuban",Pr=Kt()("selection-handler",!aa&&!oa&&{"hide-h-side":_n*Fn<20,"hide-v-side":$n*Fn<20,"hide-corner":(_n*Fn<10||$n*Fn<10)&&!ma,"shield-corner-events":Be,"is-dy-widget":Ea,"is-master":er}),Aa=Ae?(0,kp.f5)([Ao.key],zt):!1,fr=Ne?(0,kp.f5)(X.map(Jr=>Jr.key),zt):!1;return(0,fe.jsxs)(is,{className:Pr,children:[Ae&&(0,fe.jsx)(C2,{item:Ao,ratio:Fn,isDragModeShow:Ge,isAdsorbentReferenceLine:it,editingPanelCid:ie,editingPanelRefPage:ue,currPageKey:At,canRotate:oe,isForbiddenSingleResize:Aa,dispatch:qt},Ao.key),Ne&&(0,fe.jsx)(X1,{selectedWidgets:X,isDragModeShow:Ge,isAdsorbentReferenceLine:it,ratio:Fn,currPageKey:At,isForbiddenMultiResize:fr,dispatch:qt}),be&&(0,fe.jsx)(rs,{tree:Ao,ratio:Fn})]})}}(0,Se.A)(Q1,"defaultProps",{isHide:!1});const Qd=(0,On.Mz)([nr.p$],K=>(0,b0.QH)(K)),Ou=(0,On.Mz)([Mo.$,l.X_,Qd,U.jI,U.bt,nr.nE,Ee.c,l.wq,q.PI,q.k3,l.pO,l.KW,l.lv,$c.P2,U.Pm,zc.tS,l.Jv,U.jx,Ac.j,U.lY,st.X.query.getIsShallowEditing,st.X.query.getIsDeepEditing,ud.Bq,nr.p$,l.eo,H1.y.query.getMissFontHiKeySet],(K,D,z,X,ie,ue,oe,be,Ae,Ne,Be,Ge,it,At,zt,qt,_n,$n,Fn,Ao,_o,zo,aa,oa,ma,Ea)=>{ue=ue.filter(bo.pT);const er=!!be,Pr=$n===y.qi.OnlyView;if(Be||oe||MB.f.editing||ue.length===0||Ge||it||At||zt||qt||K.isAdjustingGap||Pr||Fn||_o||zo||aa)return{isHide:!0};const Aa=ue.length===1&&ue.some(qa=>{let{hotAttr:{type:Ka}}=qa;return Ka===C.x.WTear||Ka===C.x.WVector&&Ao?!1:Ka!==C.x.WMind}),fr=ue.length>1&&!ue.every(qa=>qa.hotAttr.type===C.x.WMind);return{scale:D,canRotate:z,showSingleResizer:Aa,showMultipleResizer:fr,selectedWidgets:ue,isQuickCreateWidget:er,isDragModeShow:Ae,isAdsorbentReferenceLine:Ne,editingPanelCid:X,showWidgetMetaInfo:Aa&&_n,newSelection:oa,editingPanelRefPage:ie,currPageKey:ma,missFontHiKeySet:Ea}}),Zh=(0,I.Ng)(K=>Ou(K))(Q1);var S0=s(63986),p1=s.n(S0),J1=s(50353),q1=s(99963),S2=s(61627);const Kh=["tl","tr","bl","br"],fd=(K,D)=>{switch(K){case"tl":return{operation:ne.Z.xy(1,1),offset:ne.Z.zero};case"tr":return{operation:ne.Z.xy(-1,1),offset:ne.Z.xy(D.w,0)};case"bl":return{operation:ne.Z.xy(1,-1),offset:ne.Z.xy(0,D.h)};case"br":return{operation:ne.Z.xy(-1,-1),offset:ne.Z.xy(D.w,D.h)};default:return{operation:ne.Z.zero,offset:ne.Z.zero}}},Fu=(K,D,z)=>{const X=ne.Z.distance(D,K),ie=ne.Z.distance(K,z),ue=ne.Z.distance(D,z);return ie>X?ue>ie?0:1:ue>X?ie>ue?1:0:ne.Z.distance(z,K)/X},ed=(K,D,z)=>K<=12/z?12/z:K>D?D:K,jd=(K,D,z)=>z?K*D-4:K<=12?8:K*D-4,Ll=K=>{const{hotAttr:{type:D,image:z}}=K;return!(D===C.x.WImage&&(z==null?void 0:z.imageClipType)===Dn.Mg.circular)};var $1=s(2371),u1=s(60312);const A2=Yt.Ay.div.withConfig({displayName:"styles__StyledSmartRadius",componentId:"sc-1msg8ap-0"})(["position:absolute;width:100%;height:100%;pointer-events:none;z-index:9999;.smart-radius-wrapper{position:absolute;}.square{position:absolute;width:8px;height:8px;background:white;border:1px solid ",";border-radius:50%;pointer-events:auto;}.tl{left:",";top:",";}.tr{right:",";top:",";&.last{display:none;}}.bl{left:",";bottom:",";&.hide{display:none;}}.br{right:",";bottom:",";&.hide{display:none;}}"],K=>K.theme.color_proto,K=>K.resizerStyle.tl,K=>K.resizerStyle.tl,K=>K.resizerStyle.tr,K=>K.resizerStyle.tr,K=>K.resizerStyle.bl,K=>K.resizerStyle.bl,K=>K.resizerStyle.br,K=>K.resizerStyle.br);class Nl extends r.PureComponent{constructor(){super(...arguments),(0,Se.A)(this,"limits",new Map),(0,Se.A)(this,"points",new Map),(0,Se.A)(this,"removeMouseEvents",null),(0,Se.A)(this,"state",{setAll:!0,isRadiusResizing:!1,isResizingRadiusDirection:"",prevProps:{borderRadius:this.props.borderRadius}}),(0,Se.A)(this,"getPointsLimits",()=>{const{widget:{key:D,hotAttr:z},scaleRatio:X,isResizingRadius:ie,boundingPoints:ue}=this.props,{isResizingRadiusDirection:oe}=this.state,{transform:be,rect:Ae}=(0,tn.Oj)(D),Ne=be.clone(),{borderRadius:Be,borderRadiusIsRound:Ge}=z,it=Math.min(Ae.w,Ae.h)*.5,At=Ge?it:Be,zt=(0,$1.jf)(At);Object.entries(ue).forEach(qt=>{let[_n,$n]=qt;const{operation:Fn,offset:Ao}=fd(_n,Ae),_o=Math.min(Ae.w,Ae.h)*.5,zo=_n===oe&&ie?zt[_n]:ed(zt[_n],_o,X),aa=ne.Z.mul(Fn,zo),oa=Ne.apply(ne.Z.add(Ao,aa));this.points.set(_n,{worldPoint:oa,operationOffset:aa,radius:zo,maxValue:_o});const ma=ne.Z.mul(Fn,0),Ea=ne.Z.mul(Fn,_o),er=Ne.apply(ne.Z.add(Ao,ma)),Pr=Ne.apply(ne.Z.add(Ao,Ea));this.limits.set(_n,{min:er,max:Pr,maxValue:_o})})}),(0,Se.A)(this,"getHoverStyle",()=>{const{widget:{key:D},scaleRatio:z,isResizingRadius:X}=this.props,{transform:ie,rect:ue}=(0,tn.Oj)(D),{a:oe,b:be,c:Ae,d:Ne}=ie,{x:Be,y:Ge}=ie.clone().scale(z,z).apply({x:ue.x,y:ue.y}),{x:it,y:At}=ne.Z.mul(ne.Z.xy(ue.w,ue.h),z);return{left:Be,top:Ge,width:it,height:At,transform:"matrix("+oe+","+be+","+Ae+","+Ne+",0,0)",transformOrigin:"0 0",pointerEvents:X?"auto":"none"}}),(0,Se.A)(this,"getResizerStyle",()=>{const{widget:{key:D},scaleRatio:z,isResizingRadius:X}=this.props,{isResizingRadiusDirection:ie}=this.state,{rect:ue}=(0,tn.Oj)(D),{x:oe,y:be}=ne.Z.mul(ne.Z.xy(ue.w,ue.h),z),Ae=this.points.get("tl").radius,Ne=this.points.get("tr").radius,Be=this.points.get("bl").radius,Ge=this.points.get("br").radius,it={isResizingRadius:X,tl:jd(Ae,z,ie==="tl")+"px",tr:jd(Ne,z,ie==="tr")+"px",bl:jd(Be,z,ie==="bl")+"px",br:jd(Ge,z,ie==="br")+"px"},At=Ae===Be&&Ae===this.points.get("bl").maxValue,zt=Ne===Ge&&Ne===this.points.get("br").maxValue;return{resizerStyle:it,tlEqualsBl:At,trEqualsBr:oe!==be&&At&&zt?!1:zt,allEquals:At&&zt&&oe===be}}),(0,Se.A)(this,"getIsNotSmall",()=>{const{scaleRatio:D,boundingPoints:z,widget:{hotAttr:{type:X}}}=this.props,ie=C.x.WMTextInput===X||C.x.WMTextArea===X,ue=ne.Z.distance(z.tl,z.tr)*D,oe=ne.Z.distance(z.tl,z.bl)*D;return ie?ue>108&&oe>60:ue>108||oe>108}),(0,Se.A)(this,"setBorderRadius",(D,z)=>{const{dispatch:X,widget:{key:ie,hotAttr:ue}={}}=this.props;if(!ie)return;const{refStyles:oe}=ue;if(oe!=null&&oe.appear){const be=sdkStore.getHotItem(oe==null?void 0:oe.appear);X({type:"entry:libStyle:del:widget:refStyles",payload:{type:"appear",selections:[ie],refStyle:be}}),X({type:"settings:update:currentAppearRefStyle",payload:null})}X({type:"entry:widget:change",payload:{flatChgList:[{key:ie,hotAttr:{borderRadius:D,refVars:z,borderRadiusIsRound:!1}}]}})}),(0,Se.A)(this,"handleSetRadius",(D,z)=>{const{borderRadius:X,widget:{hotAttr:{refVars:ie}}}=this.props,{setAll:ue}=this.state,oe=parseInt(D)||0;let be;if(ue)be=oe,ie!=null&&ie.borderRadius&&be!==X&&(ie.borderRadius=void 0);else{var Ae;const Ne=(0,$1.jf)(X),Be="radius"+z.toUpperCase();be={radiusTL:Ne.tl,radiusTR:Ne.tr,radiusBL:Ne.bl,radiusBR:Ne.br,[Be]:oe},ie!=null&&(Ae=ie.borderRadius)!=null&&Ae[Be]&&be[Be]!==Ne[z]&&(ie.borderRadius[Be]=void 0)}this.setBorderRadius(be,ie)}),(0,Se.A)(this,"onResize",D=>{this.setState({isRadiusResizing:!0}),D.stopPropagation();const{dispatch:z,scaleRatio:X,boundingPoints:ie}=this.props,ue=D.nativeEvent.clientX,oe=D.nativeEvent.clientY,{direction:be}=D.currentTarget.dataset,Ae=this.points.get(be).worldPoint;this.setState({isResizingRadiusDirection:""}),z({type:"reducer:flag:set-isShowRadiusResizer",payload:{isShowRadiusResizer:!0}}),z({type:"reducer:flag:set-isResizingRadius",payload:{isResizingRadius:!0}}),sdkStore.combineMergeMark("smart-radius"),(D.metaKey||D.ctrlKey)&&this.setState({setAll:!1});let Ne,Be;const Ge=At=>{if(!this.props.widget){var zt;(zt=this.removeMouseEvents)==null||zt.call(this);return}At.stopPropagation(),this.setState({isResizingRadiusDirection:be}),z({type:"reducer:flag:set-isResizingRadius",payload:{isResizingRadius:!0}});const qt=this.limits.get(be);if(!qt)return!1;const{min:_n,max:$n,maxValue:Fn}=qt,Ao=(At.clientX-ue)/X>>0,_o=(At.clientY-oe)/X>>0,zo=ne.Z.add(Ae,ne.Z.xy(Ao,_o)),aa=ne.Z.round(zo);Ne=S2.a.contains(ie,aa);const oa=q1.o.projectOnePoint2Line(aa,[_n,$n]),ma=Fu(_n,$n,oa);Be=Math.round(Fn*ma),this.handleSetRadius(Be,be),z({type:"set:resizing:radius:num",payload:{resizingRadiusNum:Be}})},it=At=>{var zt;if(!this.props.widget){var qt;(qt=this.removeMouseEvents)==null||qt.call(this);return}this.setState({isRadiusResizing:!1,isResizingRadiusDirection:""}),At.button===0&&this.handleSetRadius(Be,be),z({type:"reducer:flag:set-isResizingRadius",payload:{isResizingRadius:!1}}),Ne||z({type:"reducer:flag:set-isShowRadiusResizer",payload:{isShowRadiusResizer:!1}}),(zt=this.removeMouseEvents)==null||zt.call(this),sdkStore.combineMerge("smart-radius")};this.removeMouseEvents=()=>{document.removeEventListener("mousemove",Ge),document.removeEventListener("mouseup",it),this.removeMouseEvents=null},document.addEventListener("mousemove",Ge),document.addEventListener("mouseup",it)}),(0,Se.A)(this,"onEnter",D=>{const{borderRadius:z,dispatch:X}=this.props,ie=(0,$1.jf)(z),{direction:ue}=D.currentTarget.dataset,oe=ie[ue];X({type:"set:resizing:radius:num",payload:{resizingRadiusNum:oe}}),X({type:"reducer:flag:set-isShowRadiusResizer",payload:{isShowRadiusResizer:!0}}),X({type:"reducer:flag:set-isResizingRadius",payload:{isResizingRadius:!0}})}),(0,Se.A)(this,"onLeave",()=>{const{dispatch:D}=this.props;this.state.isRadiusResizing||D({type:"reducer:flag:set-isResizingRadius",payload:{isResizingRadius:!1}})})}static getDerivedStateFromProps(D,z){let{borderRadius:X}=D,{prevProps:ie}=z;const{borderRadius:ue}=ie;return p1()(X,ue)?null:{setAll:X?!(0,$1.k4)(X):!0,prevProps:{borderRadius:X}}}componentWillUnmount(){var D;(D=this.removeMouseEvents)==null||D.call(this)}render(){const{widget:D,isHide:z,isShowRadiusResizer:X}=this.props;if(z||!X||!D||!this.getIsNotSmall())return null;this.getPointsLimits();const ue=this.getHoverStyle(),{resizerStyle:oe,tlEqualsBl:be,trEqualsBr:Ae,allEquals:Ne}=this.getResizerStyle();return(0,fe.jsx)(A2,{resizerStyle:oe,children:(0,fe.jsx)("div",{className:"smart-radius-wrapper",style:ue,children:Kh.map(Be=>(0,fe.jsx)("div",{"data-direction":Be,className:Kt()("square",""+Be,{hide:be&&Be==="bl"||Ae&&Be==="br",last:Ne}),onMouseDown:this.onResize,onMouseEnter:this.onEnter,onMouseLeave:this.onLeave},Be))})})}}const Lp=(0,On.Mz)([l.X_,l.iv,l.w8,l.pO,l.Jv,Ee.c,nr.nE,U.Pm],(K,D,z,X,ie,ue,oe,be)=>{oe=oe.filter(_n=>!_n.hotAttr.isLock);const Ae=oe.length===1?oe[0]:null,{type:Ne,borderRadius:Be}=(Ae==null?void 0:Ae.hotAttr)||{};if(Ne===J1.Z6.screenMeta)return{};const Ge=!(0,J1.v8)(Ne),it=ue||MB.f.editing;if(Ge||(X||ie)||it||oe.length!==1||!Ae)return{isHide:!0};if(be&&(0,u1.ji)(Ae.hotAttr))return{isHide:!0};if(!Ll(Ae))return{isHide:!0};const zt=K/100,qt=q1.o.toBoundingPoints((0,tn.Oj)(Ae.key));return{widget:Ae,scaleRatio:zt,borderRadius:Be,boundingPoints:qt,isResizingRadius:z,isShowRadiusResizer:D}}),Dc=(0,I.Ng)(K=>Lp(K))(Nl);var Vu=s(41589),k2=s.n(Vu),Np=s(81900);const zu="n,s,e,w,ne,nw,se,sw";class Ol extends r.PureComponent{constructor(D){super(D),(0,Se.A)(this,"handleResizeStart",()=>{const{activeImage:z}=this.props;MB.f.isResizing=!0,this.activeItem=k2()({...z})}),(0,Se.A)(this,"handleResize",z=>{let{top:X,left:ie,width:ue,height:oe}=z;const{ratio:be,dispatch:Ae}=this.props;if(!this.activeItem)return;const{key:Ne,hotAttr:{image:Be}}=this.activeItem,{imageRectCenterX:Ge,imageRectCenterY:it,imageRectWidth:At,imageRectHeight:zt}=Be,qt={...Be,imageRectCenterX:Ge-At/2+ue/be/2+ie/be,imageRectCenterY:it-zt/2+oe/be/2+X/be,imageRectWidth:Math.round(ue/be),imageRectHeight:Math.round(oe/be)};Ae({type:"entry:widget:change",payload:{flatChgList:[{key:Ne,hotAttr:{image:qt}}]}})}),(0,Se.A)(this,"handleResizeEnd",()=>{MB.f.isResizing=!1,this.activeItem=null}),(0,Se.A)(this,"handleRotateStart",()=>{const{activeImage:z}=this.props;this.activeItem={...z}}),(0,Se.A)(this,"handleRotate",z=>{const{dispatch:X}=this.props;if(!this.activeItem)return;const{key:ie,hotAttr:{image:ue}}=this.activeItem,oe={...ue,imageRectR:(ue.imageRectR+Math.round(z))%360};X({type:"entry:widget:change",payload:{flatChgList:[{key:ie,hotAttr:{image:oe}}]}})}),(0,Se.A)(this,"handleRotateEnd",()=>{this.activeItem=null}),(0,Se.A)(this,"onDrag",(z,X)=>{const{activeImage:ie,ratio:ue,dispatch:oe}=this.props,{key:be,hotAttr:{image:Ae}}=ie,{imageRectWidth:Ne,imageRectHeight:Be,imageRectCenterX:Ge,imageRectCenterY:it}=Ae,At={...Ae,imageRectCenterX:Ge+z/ue,imageRectCenterY:it+X/ue,imageRectWidth:Ne,imageRectHeight:Be};oe({type:"entry:widget:change",payload:{flatChgList:[{key:be,hotAttr:{image:At}}]}})}),(0,Se.A)(this,"onDragStart",()=>{const{activeImage:z,changeCurrentSelect:X}=this.props;X(Dn.Q7.img),this.activeItem={...z},sdkStore.combineMergeMark("re-position-image-wrt-clip")}),(0,Se.A)(this,"onDragEnd",()=>{this.activeItem=null,sdkStore.combineMerge("re-position-image-wrt-clip")}),this.activeItem=null}render(){const{activeImage:D,ratio:z,currentSelect:X}=this.props,{key:ie,hotAttr:{image:ue}}=D,{imageRectWidth:oe,imageRectHeight:be,imageRectAspectRatio:Ae,imageRectR:Ne,imageRectCenterX:Be,imageRectCenterY:Ge}=ue,{x:it,y:At,w:zt,h:qt,r:_n}=sdkStore.getHotBound(ie),$n={zIndex:3,width:zt*z,height:qt*z,transform:"translate("+(it-zt*.5)*z+"px,"+(At-qt*.5)*z+"px) rotate("+_n+"deg)",transformOrigin:"center center"},Fn={width:oe*z,height:be*z,transform:"translate("+(Be-oe*.5)*z+"px,"+(Ge-be*.5)*z+"px) rotate("+Ne+"deg)",transformOrigin:"center center"},Ao={top:0,left:0,width:oe*z,height:be*z};return(0,fe.jsx)("div",{className:Kt()("imageSelectBorder",{currentNotSelect:X!=="img"}),style:$n,children:(0,fe.jsx)("div",{style:Fn,children:(0,fe.jsx)(Np.A,{aspectRatio:Ae,...Ao,minWidth:z,minHeight:z,zoomable:zu,rotatable:!0,rotateAngle:0,onResize:this.handleResize,onResizeStart:this.handleResizeStart,onResizeEnd:this.handleResizeEnd,onRotateStart:this.handleRotateStart,onRotate:this.handleRotate,onRotateEnd:this.handleRotateEnd,onDragStart:this.onDragStart,onDragEnd:this.onDragEnd,onDrag:this.onDrag,cursorAngle:_n})})})}}var ep=s(81592);const M2=(K,D,z,X)=>{const[ie,ue,oe,be]=K;let Ae;switch(X){case"br":{Ae={x:ie+D/2,y:ue+z/2};break}case"bl":{Ae={x:oe-D/2,y:ue+z/2};break}case"tl":{Ae={x:oe-D/2,y:be-z/2};break}case"tr":{Ae={x:ie+D/2,y:be-z/2};break}case"t":{Ae={y:be-z/2};break}case"r":{Ae={x:ie+D/2};break}case"b":{Ae={y:ue+z/2};break}case"l":{Ae={x:oe-D/2};break}}return Ae},Wu=Yt.Ay.div.withConfig({displayName:"styles__StyledCuttingSelectBorderStyle",componentId:"sc-nieg8z-0"})(["position:absolute;z-index:3;&.clipCircular{.single-resizer{border-radius:50%;}}.dragDiv{background:transparent;position:absolute;pointer-events:all;}&.currentNotSelect{.square{display:none;}&.showHoverBorder{.single-resizer{&:first-child{outline:2px solid #2F90F9;}}}}.single-resizer{outline:1px dashed #2F90F9;border:none;&:first-child{pointer-events:auto!important;z-index:1!important;border:none;outline:1px solid #ffffff;}.square{background:#2F90F9;border:1px solid #FFFFFF;width:8px;height:8px;border-radius:2px;&.t{top:-5px;}&.b{bottom:-5px;}&.r{right:-5px;}&.l{left:-5px;}&.tr{right:-5px;top:-5px;}&.tl{top:-5px;left:-5px;}&.br{bottom:-5px;right:-5px;}&.bl{bottom:-5px;left:-5px;}}}"]);class Jd extends r.PureComponent{constructor(){super(...arguments),(0,Se.A)(this,"state",{shouldShowHoverBorder:!1,isShiftKeyDown:!1}),(0,Se.A)(this,"handleResizeStart",()=>{const{changeCurrentSelect:D}=this.props;D(Dn.Q7.cutFrame),MB.f.isResizing=!0,this.top=0,this.left=0,sdkStore.combineMergeMark("resize-image-clip")}),(0,Se.A)(this,"handleResize",(D,z,X)=>{let{top:ie,left:ue,width:oe,height:be}=D;const{ratio:Ae,activeImage:{key:Ne,hotAttr:Be},dispatch:Ge}=this.props,{r:it,image:At}=Be,{x:zt,y:qt,w:_n,h:$n}=sdkStore.getHotBound(Ne),Fn=sdkStore.getHotKeyAABB(Ne),Ao=(this.top-ie)/Ae,_o=(this.left-ue)/Ae;this.top=ie,this.left=ue;const zo=Math.round(oe/Ae),aa=Math.round(be/Ae),oa={x:zt-_n/2-_o,y:qt-$n/2-Ao},ma=M2(Fn,zo,aa,X),Ea=it===0?{x:zt,y:qt,r:it,w:zo,h:aa,...ma}:{x:oa.x+zo/2,y:oa.y+aa/2,r:it,w:zo,h:aa},{x:er,y:Pr}=sdkStore.toAttrXY(Ea,Ne),Aa={x:er,y:Pr,w:zo,h:aa,image:{...At,...(0,ep.N)(Ne,Ea),imageFillType:"stretch"}};Aa.refVars=(0,C0.VN)(Ne,Aa),Ge({type:"entry:widget:change",payload:{flatChgList:[{key:Ne,hotAttr:Aa}]}})}),(0,Se.A)(this,"handleResizeEnd",()=>{MB.f.isResizing=!1,sdkStore.combineMerge("resize-image-clip")}),(0,Se.A)(this,"onDrag",(D,z)=>{const{activeImage:X,ratio:ie,dispatch:ue}=this.props,{key:oe,hotAttr:{r:be,image:Ae}}=X,{x:Ne,y:Be,w:Ge,h:it}=sdkStore.getHotBound(oe);let At=D,zt=z;this.state.isShiftKeyDown?this.lockedDragAxis?(this.lockedDragAxis==="y"&&(At=0),this.lockedDragAxis==="x"&&(zt=0)):Math.abs(D)>Math.abs(z)?(zt=0,this.lockedDragAxis="x"):(At=0,this.lockedDragAxis="y"):this.lockedDragAxis=null;const qt={x:Ne-Ge/2+At/ie,y:Be-it/2+zt/ie},_n={x:Math.round(qt.x+Ge/2),y:Math.round(qt.y+it/2),r:be,w:Ge,h:it},{x:$n,y:Fn}=sdkStore.toAttrXY(_n,oe),Ao={x:$n,y:Fn,image:{...Ae,...(0,ep.N)(oe,_n),imageFillType:"stretch"}};Ao.refVars=(0,C0.VN)(oe,Ao),ue({type:"entry:widget:change",payload:{flatChgList:[{key:oe,hotAttr:Ao}]}})}),(0,Se.A)(this,"onDragStart",()=>{const{changeCurrentSelect:D}=this.props;this.lockedDragAxis=null,D(Dn.Q7.cutFrame),sdkStore.combineMergeMark("re-position-image-clip")}),(0,Se.A)(this,"onDragEnd",()=>{sdkStore.combineMerge("re-position-image-clip")}),(0,Se.A)(this,"handleDrap",D=>{this.onDragStart(),D.stopPropagation();let z=D.clientX,X=D.clientY;const ie=oe=>{const be=oe.clientX-z,Ae=oe.clientY-X;z=oe.clientX,X=oe.clientY,this.onDrag(be,Ae)},ue=()=>{document.removeEventListener("mousemove",ie),document.removeEventListener("mouseup",ue),this.onDragEnd()};document.addEventListener("mousemove",ie),document.addEventListener("mouseup",ue)}),(0,Se.A)(this,"handleMouseEnter",()=>{this.setState({shouldShowHoverBorder:!0})}),(0,Se.A)(this,"handleMouseLeave",()=>{this.setState({shouldShowHoverBorder:!1})}),(0,Se.A)(this,"handlePressShift",D=>{this.setState({isShiftKeyDown:D.shiftKey})}),(0,Se.A)(this,"handleReleaseShift",D=>{this.setState({isShiftKeyDown:D.shiftKey})})}render(){const{activeImage:{key:D,hotAttr:z},ratio:X,currentSelect:ie}=this.props,{shouldShowHoverBorder:ue}=this.state,{image:{imageClipType:oe}}=z,{x:be,y:Ae,w:Ne,h:Be,r:Ge}=sdkStore.getHotBound(D),it=Ne*X,At=Be*X;let zt=0;oe===Dn.Mg.circular&&(zt=1);const qt=[{top:-5,left:0,width:it,height:10},{top:-5,left:it-5,width:10,height:At},{top:At-5,left:-5,width:it+10,height:10},{top:-5,left:-5,width:10,height:At}],_n={position:"absolute",width:it,height:At,transform:"translate("+(be-Ne*.5)*X+"px,"+(Ae-Be*.5)*X+"px) rotate("+Ge+"deg)",transformOrigin:"center center"};return(0,fe.jsxs)(Wu,{className:Kt()({clipCircular:oe===Dn.Mg.circular,currentNotSelect:ie==="img",showHoverBorder:ie==="img"&&ue}),style:_n,children:[(0,fe.jsx)(Np.A,{aspectRatio:zt,top:0,left:0,width:it,height:At,minWidth:X,minHeight:X,zoomable:"",rotatable:!1,rotateAngle:0,onDragStart:this.onDragStart,onDragEnd:this.onDragEnd,onDrag:this.onDrag,cursorAngle:Ge}),(0,fe.jsx)("div",{children:qt.map(($n,Fn)=>(0,fe.jsx)("div",{style:$n,className:"dragDiv",onMouseDown:this.handleDrap,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave},Fn))}),(0,fe.jsx)(Np.A,{aspectRatio:zt,top:0,left:0,width:it,height:At,minWidth:X,minHeight:X,zoomable:Ep,rotatable:!1,rotateAngle:0,onResize:this.handleResize,onResizeStart:this.handleResizeStart,onResizeEnd:this.handleResizeEnd,cursorAngle:Ge}),(0,fe.jsx)(ha.A,{target:document,onKeyDown:(0,ha.t)(this.handlePressShift,{capture:!0}),onKeyUp:(0,ha.t)(this.handleReleaseShift,{capture:!0})})]})}}var Hu=s(92272);const E2=Yt.Ay.div.withConfig({displayName:"styles__StyledCuttingClipSvgStyle",componentId:"sc-svnva1-0"})(["position:absolute;svg{position:absolute;}.imageWarp{position:absolute;top:0;left:0;width:100%;height:100%;z-index:1;.img{position:absolute;}}.originImageWarp{position:absolute;top:0;left:0;width:100%;height:100%;.img{position:absolute;}}"]);class h1 extends r.PureComponent{render(){const{activeImage:D,ratio:z}=this.props,{key:X,hotAttr:ie,hotAttr:{image:ue,opacity:oe,borderRadius:be}}=D,{imageRef:Ae,imageFilter:Ne,imageRectCenterX:Be,imageRectCenterY:Ge,imageRectWidth:it,imageRectHeight:At,imageRectR:zt}=ue,qt=(0,Hu.Kf)(Ae),{x:_n,y:$n,w:Fn,h:Ao,r:_o}=sdkStore.getHotBound(X),zo={width:Fn*z,height:Ao*z,transform:"translate("+(_n-Fn*.5)*z+"px,"+($n-Ao*.5)*z+"px) rotate("+_o+"deg)",transformOrigin:"center center"},aa=Ea=>{let{w:er,h:Pr,ratio:Aa,borderRadius:fr}=Ea;const{radiusTL:Jr,radiusTR:qa,radiusBL:Ka,radiusBR:rr}=typeof fr=="number"?{radiusTL:fr,radiusTR:fr,radiusBL:fr,radiusBR:fr}:fr,Ua="\n M "+Jr*Aa+" 0\n H "+(er-qa)*Aa+"\n A "+qa*Aa+" "+qa*Aa+" 0 0 1 "+er*Aa+" "+qa*Aa+"\n V "+(Pr-Ka)*Aa+"\n A "+Ka*Aa+" "+Ka*Aa+" 0 0 1 "+(er-Ka)*Aa+" "+Pr*Aa+"\n H "+rr*Aa+"\n A "+rr*Aa+" "+rr*Aa+" 0 0 1 0 "+(Pr-rr)*Aa+"\n V "+Jr*Aa+"\n A "+Jr*Aa+" "+Jr*Aa+" 0 0 1 "+Jr*Aa+" 0\n Z\n ";return(0,fe.jsx)("path",{d:Ua})},oa={filter:Ne,width:it*z,height:At*z,opacity:oe,transform:"translate("+(Be-it*.5)*z+"px,"+(Ge-At*.5)*z+"px) rotate("+zt+"deg) "+(0,go.xc)(ie),transformOrigin:"center center"},ma={background:"rgba(221,221,221,0.50)",width:it*z,height:At*z,transform:"translate("+(Be-it*.5)*z+"px,"+(Ge-At*.5)*z+"px) rotate("+zt+"deg)",transformOrigin:"center center"};return(0,fe.jsxs)(E2,{style:zo,children:[(0,fe.jsx)("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:it,height:At,children:(0,fe.jsx)("defs",{children:(0,fe.jsx)("clipPath",{id:"cut-"+X,children:aa({w:Fn,h:Ao,ratio:z,borderRadius:be})})})}),(0,fe.jsx)("div",{className:"imageWarp",children:(0,fe.jsx)("div",{className:"divMask",style:ma,children:" "})}),(0,fe.jsx)("div",{className:"imageWarp",style:{clipPath:"url(#cut-"+X+")"},children:(0,fe.jsx)("img",{src:qt,className:"img",width:it*z,height:At*z,style:oa,alt:"\u56FE\u7247\u6587\u5B57\u5360\u4F4D"})}),(0,fe.jsx)("div",{className:"originImageWarp",style:oa,children:(0,fe.jsx)("img",{src:qt,className:"img",width:it*z,height:At*z,alt:"\u56FE\u7247\u6587\u5B57\u5360\u4F4D"})})]})}}var qd=s(23108),Gu=s(61675),Zu=s(55052);const I2=324,Yh=Yt.Ay.div.withConfig({displayName:"styles__StyledImageEditorOperate",componentId:"sc-w21ycp-0"})(["position:absolute;z-index:4;width:","px;height:","px;background:",";box-shadow:0 4px 10px rgba(0,0,0,0.1);border-radius:8px;transition:opacity,transform 0.2s ease-in-out;transform-origin:0 0;animation-fill-mode:forwards;color:",";border:1px solid ",";display:flex;align-items:center;justify-content:space-between;padding:0 6px 0 12px;.left,.right{display:flex;align-items:center;justify-content:center;}.left{.title{color:",";margin-right:6px;}.radio-line{margin-bottom:0;height:32px;background:",";.radio-option.check-line{flex:0 0 32px;width:32px;height:32px;border-radius:6px;transition:all 0.2s ease-in-out;cursor:pointer;pointer-events:auto;a{width:100%;height:100%;display:flex;align-items:center;justify-content:center;color:",";.svg-icon{width:14px;rect{fill:transparent;stroke:",";}&:not([fill]){[stroke]{fill:none;}}}}&:not(:last-child){margin-right:6px;}&:not(.active):hover{background:",";}&.active{background:",";svg{rect{stroke:",";}}}}}}.right{button{width:60px;height:32px;background:",";border:1px solid ",";color:",";border-radius:6px;cursor:pointer;pointer-events:auto;&:not(:last-child){margin-right:8px;}&:hover{background:",";}}}"],I2,40,K=>K.theme.color_bg_white,K=>K.theme.color_text_L1,K=>K.theme.color_btn_secondary_hover,K=>K.theme.color_text_L1,K=>K.theme.color_bg_white,K=>K.theme.color_text_L1,K=>K.theme.color_text_L1,K=>K.theme.color_btn_secondary_hover,K=>K.theme.color_bg_tab,K=>K.theme.color_btn_primary_normal,K=>K.theme.color_bg_white,K=>K.theme.color_bg_border_02,K=>K.theme.color_text_L1,K=>K.theme.color_btn_secondary_hover),_2=8;class z0 extends r.PureComponent{constructor(D){var z;super(D),(0,Se.A)(this,"IMAGE_OPERATE_LIST",[{label:I18N.SettingPanel.slicing,value:Dn.bl.slicing},{label:I18N.SettingPanel.cutting,value:Dn.bl.cutting}]),(0,Se.A)(this,"CUTTING_OPTIONS",[{label:(0,fe.jsx)(qd.P,{name:"setting_panel/image_view/square",tagName:"SVGIcon",content:I18N.SettingPanel.rectangle_cutting,direction:"down"}),value:Dn.Mg.square},{label:(0,fe.jsx)(qd.P,{name:"setting_panel/image_view/circular",tagName:"SVGIcon",content:I18N.SettingPanel.circular_cutting,direction:"down"}),value:Dn.Mg.circular}]),(0,Se.A)(this,"SLICING_OPTIONS",[{label:(0,fe.jsx)(qd.P,{name:"setting_panel/image_view/cross",tagName:"SVGIcon",content:I18N.SettingPanel.slicing_cross,direction:"down"}),value:Dn.Pv.cross},{label:(0,fe.jsx)(qd.P,{name:"setting_panel/image_view/horizontal",tagName:"SVGIcon",content:I18N.SettingPanel.slicing_horizontal,direction:"down"}),value:Dn.Pv.horizontal},{label:(0,fe.jsx)(qd.P,{name:"setting_panel/image_view/vertical",tagName:"SVGIcon",content:I18N.SettingPanel.slicing_vertical,direction:"down"}),value:Dn.Pv.vertical}]),(0,Se.A)(this,"handleGetIsCutting",()=>{const{currentImageOperateType:X}=this.props;return X===Dn.bl.cutting}),(0,Se.A)(this,"handleShape",X=>{const{dispatch:ie}=this.props,{cuttingType:ue}=this.state,oe=X.currentTarget.dataset.value;ue&&ue===oe||(this.setState({cuttingType:oe}),ie({type:"entry:items:set:clipType",payload:{clipType:oe}}))}),(0,Se.A)(this,"handleChangeSlicingType",X=>{const{slicingType:ie,onChangeSlicingType:ue}=this.props,oe=X.currentTarget.dataset.value;ie&&oe===ie||ue(oe)}),(0,Se.A)(this,"resetClipType",()=>{const{dispatch:X}=this.props;X({type:"entry:items:set:clipType",payload:{clipType:"none"}})}),(0,Se.A)(this,"handleExit",()=>{const{dispatch:X,editingImageNodes:ie}=this.props,{isCut:ue}=this.handleGetImageEditorOperateAttr();if(ue){const oe=ie.map(be=>{let{key:Ae,hotAttr:Ne}=be;return{key:Ae,hotAttr:{...Ne,image:{...Ne.image,imageFillType:"stretch"}}}});X({type:"entry:widget:change",payload:{flatChgList:oe}})}X({type:"entry:image-view:exit:edit"})}),(0,Se.A)(this,"handleGetImageEditorOperateAttr",()=>{const{ratio:X,editingImageNodes:ie,canvasRect:ue}=this.props,oe=this.handleGetIsCutting(),be=(0,Zu.Am)(ie[0].hotAttr);let Ae={};const Ne=-ue.canvasTop+35+40,Be=window.innerHeight-48-ue.canvasTop-35;let Ge=Ne;const[it,At,zt,qt]=sdkStore.getHotKeyListAABB(ie.map(aa=>aa.key)),_n=zt-it,$n=qt-At,{x:Fn,y:Ao}=ne.Z.mul(ne.Z.xy(it,At),X),{x:_o,y:zo}=ne.Z.mul(ne.Z.xy(_n,$n),X);return Ge=Math.round(Ao+zo+_2),Ae={left:Math.floor(Fn+_o/2-I2/2)},Ae={...Ae,top:Ge<Ne?Ne:Ge>Be?Be:Ge},{isCut:oe,canShowResetImage:be,imageStyle:Ae}}),this.state={cuttingType:(z=D.editingImageNodes[0])==null||(z=z.hotAttr)==null||(z=z.image)==null?void 0:z.imageClipType}}render(){var D;const{currentImageOperateType:z,slicingType:X,editingImageNodes:ie}=this.props;if(!ie||!(ie!=null&&ie.length))return null;const{cuttingType:ue}=this.state,oe=(D=this.IMAGE_OPERATE_LIST.find(Be=>{let{value:Ge}=Be;return Ge===z}))==null?void 0:D.label,{isCut:be,canShowResetImage:Ae,imageStyle:Ne}=this.handleGetImageEditorOperateAttr();return(0,fe.jsxs)(Yh,{style:Ne,className:"imageEditorOperate",children:[(0,fe.jsxs)("div",{className:"left",children:[(0,fe.jsx)("span",{className:"title",children:oe}),(0,fe.jsx)(Gu.A,{className:Kt()({cut:be}),options:be?this.CUTTING_OPTIONS:this.SLICING_OPTIONS,value:be?ue:X,handleChange:be?this.handleShape:this.handleChangeSlicingType})]}),(0,fe.jsxs)("div",{className:"right",children:[be&&Ae&&(0,fe.jsx)("button",{onClick:this.resetClipType,children:I18N.SettingPanel.undo}),(0,fe.jsx)("button",{onClick:this.handleExit,children:be?I18N.SettingPanel.confirm:I18N.SettingPanel.exit})]})]})}}const td=Yt.Ay.svg.withConfig({displayName:"styles__StyledImageSlicing",componentId:"sc-19j82hu-0"})(["position:absolute;z-index:4;width:100vw;height:100vh;top:0;left:0;pointer-events:auto;&.image-editing-slicing{cursor:",";}line{stroke:",";stroke-width:1px;stroke-dasharray:3 2;}"],xn.M.imageBlade,K=>K.theme.color_polyline_normal);class T2 extends r.PureComponent{constructor(D){var z,X,ie,ue;super(D),(0,Se.A)(this,"handleGetSlicingDirection",()=>{const{slicingType:oe}=this.props,be=oe!==Dn.Pv.vertical,Ae=oe!==Dn.Pv.horizontal;return{isH:be,isV:Ae}}),(0,Se.A)(this,"handleClick",oe=>{const{scale:be,editingImageNodes:Ae,isSpaceDown:Ne,isDraggingCanvas:Be,handMode:Ge,canvasOffset:it,viewportRect:At,dispatch:zt}=this.props,{show:qt}=this.state;if(!qt||!(Ae!=null&&Ae.length)||Ne||Be||Ge)return;const _n=this.handleGetSlicingDirection(),$n=(0,Ho.mG)(oe,{scale:be,offset:it,viewportRect:At}),Fn=Ae.map(Ao=>Ao.key);zt({type:"entry:image-view:slicing",payload:{sliceWorldPos:$n,wImageKeyList:Fn,slicingDirection:_n}})}),(0,Se.A)(this,"handleChangeOffset",(oe,be)=>this.setState({show:!0,offsetX:oe,offsetY:be})),(0,Se.A)(this,"handleEnter",oe=>this.handleChangeOffset(oe.nativeEvent.offsetX,oe.nativeEvent.offsetY)),(0,Se.A)(this,"handleMove",oe=>this.handleChangeOffset(oe.nativeEvent.offsetX,oe.nativeEvent.offsetY)),(0,Se.A)(this,"handleLeave",()=>this.setState({show:!1})),this.state={show:((z=D.defaultImageSlicingOffset)==null?void 0:z.x)&&((X=D.defaultImageSlicingOffset)==null?void 0:X.y),offsetX:((ie=D.defaultImageSlicingOffset)==null?void 0:ie.x)||0,offsetY:((ue=D.defaultImageSlicingOffset)==null?void 0:ue.y)||0}}render(){const{show:D,offsetX:z,offsetY:X}=this.state,{isSpaceDown:ie,isDraggingCanvas:ue,handMode:oe,canvasRect:{canvasLeft:be,canvasTop:Ae}}=this.props,Ne={left:-be+"px",top:-Ae+"px"},{isH:Be,isV:Ge}=this.handleGetSlicingDirection(),it=!ie&&!ue&&!oe&&D;return(0,fe.jsx)(td,{className:Kt()("imageSlicing",{"image-editing-slicing":it}),xmlns:"http://www.w3.org/2000/svg",style:Ne,onClick:this.handleClick,onMouseEnter:this.handleEnter,onMouseMove:this.handleMove,onMouseLeave:this.handleLeave,children:it&&(0,fe.jsxs)(fe.Fragment,{children:[Be&&(0,fe.jsx)("line",{className:"horizontal",xmlns:"http://www.w3.org/2000/svg",x1:0,y1:X,x2:"100%",y2:X}),Ge&&(0,fe.jsx)("line",{xmlns:"http://www.w3.org/2000/svg",className:"vertical",x1:z,y1:0,x2:z,y2:"100%"})]})})}}const jp=Yt.Ay.div.withConfig({displayName:"styles__StyledImageWrapperMask",componentId:"sc-1cs6ddm-0"})([".cutWrapper{position:absolute;}.single-resizer{position:absolute;z-index:3;pointer-events:none;& > *{pointer-events:auto;}}.imageSelectBorder{position:absolute;&.currentNotSelect{.single-resizer{border:none;.rotate,.square{display:none;}&:hover{outline:2px solid #2F90F9;}}}.single-resizer{pointer-events:auto;border:1px solid #2F90F9;.rotate{path{fill:#2F90F9;}}.square{background:#FFFFFF;border:1px solid #2F90F9;width:8px;height:8px;border-radius:50%;&.t{top:-4px;}&.b{bottom:-4px;}&.r{right:-4px;}&.l{left:-4px;}&.tr{right:-4px;top:-4px;}&.tl{top:-4px;left:-4px;}&.br{bottom:-4px;right:-4px;}&.bl{bottom:-4px;left:-4px;}}}.imgDragWarp{position:absolute;pointer-events:auto;}}"]);class tp extends r.PureComponent{constructor(){super(...arguments),(0,Se.A)(this,"state",{slicingType:Dn.Pv.cross}),(0,Se.A)(this,"handleGetIsCutting",()=>{const{currentImageOperateType:D}=this.props;return D===Dn.bl.cutting}),(0,Se.A)(this,"changeCurrentSelect",D=>{const{dispatch:z}=this.props;z({type:"image:update:state",payload:{currentImageClipSelected:D}})}),(0,Se.A)(this,"handleDocDown",D=>{const{dispatch:z}=this.props;D.target.closest(".imageWrapperResizeBox")||D.target.closest("#setting-panel")||D.target.closest("#IBOT_DROPDOWN_MENU_ROOT")||D.target.closest(".imageSlicing")||z({type:"entry:image-view:exit:edit"})}),(0,Se.A)(this,"handleChangeSlicingType",D=>this.setState({slicingType:D}))}componentDidMount(){var D;(D=document.querySelector("#link-design"))==null||D.classList.add("hide")}componentDidUpdate(D){const{newSelections:z,dispatch:X,editingImageNodes:ie}=this.props,{editingImageNodes:ue}=D;this.handleGetIsCutting()&&ie&&!ue&&this.changeCurrentSelect(Dn.Q7.cutFrame),ie&&z!=null&&z.length&&(ie.find(Ae=>{let{key:Ne}=Ae;return z.includes(Ne)})||X({type:"entry:image-view:exit:edit"})),ie&&ie.some(Ae=>{let{key:Ne}=Ae;return sdkStore.isTrashed(Ne)})&&X({type:"entry:image-view:exit:edit"})}componentWillUnmount(){var D;(D=document.querySelector("#link-design"))==null||D.classList.remove("hide")}render(){const{editingImageNodes:D,scale:z,dispatch:X,canvasOffset:ie,viewportRect:ue,currentImageClipSelected:oe,currentImageOperateType:be,isSpaceDown:Ae,isDraggingCanvas:Ne,canvasRect:Be,defaultImageSlicingOffset:Ge}=this.props,{slicingType:it}=this.state;if(!D||!(D!=null&&D.length))return null;const At=z/100,zt=this.handleGetIsCutting();return(0,fe.jsxs)(jp,{className:"imageWrapperResizeBox",children:[zt?(0,fe.jsxs)("div",{className:"cutWrapper",children:[(0,fe.jsx)(Ol,{dispatch:X,activeImage:D[0],ratio:At,currentSelect:oe,changeCurrentSelect:this.changeCurrentSelect}),(0,fe.jsx)(h1,{activeImage:D[0],ratio:At}),(0,fe.jsx)(Jd,{dispatch:X,activeImage:D[0],ratio:At,currentSelect:oe,changeCurrentSelect:this.changeCurrentSelect})]}):(0,fe.jsx)(T2,{scale:z,canvasOffset:ie,viewportRect:ue,editingImageNodes:D,slicingType:it,isSpaceDown:Ae,isDraggingCanvas:Ne,canvasRect:Be,defaultImageSlicingOffset:Ge,dispatch:X}),(0,fe.jsx)(z0,{editingImageNodes:D,currentImageOperateType:be,ratio:At,slicingType:it,canvasRect:Be,onChangeSlicingType:this.handleChangeSlicingType,dispatch:X}),(0,fe.jsx)(ha.A,{target:document,onMouseDown:(0,ha.t)(this.handleDocDown,{capture:!0})})]})}}const Xh=(0,On.Mz)([$c.tl,l.X_,l.$S,l.ER,nr.p$,$c.KF,$c.tR,l.ZS,l.AW,l.Pz,l.Fe],(K,D,z,X,ie,ue,oe,be,Ae,Ne,Be)=>{let{isSpaceDown:Ge}=be;return{editingImageNodes:K,scale:D,canvasOffset:X,viewportRect:z,newSelections:ie,currentImageClipSelected:ue,currentImageOperateType:oe,isSpaceDown:Ge,isDraggingCanvas:Ae,canvasRect:Ne,defaultImageSlicingOffset:Be}}),P2=(0,I.Ng)(K=>Xh(K))(tp),np=Yt.Ay.div.withConfig({displayName:"styles__StyledItemElbowAnchorContainer",componentId:"sc-10t3c75-0"})([".anchor-container{.anchor{position:absolute;transition:all 0.3s;z-index:10;display:flex;justify-content:center;align-items:center;transform:translate(-50%,-50%);pointer-events:auto;cursor:",';&:hover{background:"red";}svg{width:100%;height:100%;}}.anchor-top{top:-',"px;left:50%;}.anchor-left{top:50%;left:-","px;}.anchor-right{top:50%;left:calc(100% + ","px);}.anchor-bottom{top:calc(100% + ","px);left:50%;}.arrow{position:absolute;transition:all 0.3s;z-index:10;display:flex;justify-content:center;align-items:center;transform:translate(-50%,-50%);pointer-events:auto;cursor:",";svg{width:100%;height:100%;}}.arrow-top{top:0;left:50%;}.arrow-left{top:50%;left:0;}.arrow-right{top:50%;left:100%;}.arrow-bottom{top:100%;left:50%;}}"],xn.M.elbowConnect,K=>K.delta,K=>K.delta,K=>K.delta,K=>K.delta,xn.M.elbowConnect);class L2 extends r.PureComponent{render(){const{isShow:D,viewport:z,testHoverItem:X,dispatch:ie}=this.props;if(!D)return null;const ue={position:"absolute",left:0,top:0,pointerEvents:"none",zIndex:2};return(0,fe.jsx)("div",{style:ue,children:(0,fe.jsx)(Yu,{viewport:z,hoverItem:X,dispatch:ie})})}}class Yu extends r.PureComponent{constructor(D){super(D),(0,Se.A)(this,"handleMouseLeave",()=>{this.setState({activeAnchor:"none"})}),(0,Se.A)(this,"handleMouseEnter",z=>{this.setState({activeAnchor:z})}),(0,Se.A)(this,"handleMouseDown",(z,X)=>{z.stopPropagation(),z.persist();const{hoverItem:ie,dispatch:ue}=this.props,oe={key:ie.key,startDirection:X};ue({type:"entry:elbow:isInElbowMode:create",payload:{event:z,key:ie.key,givinStartInfo:oe,canInstantCreate:!0}})}),this.state={activeAnchor:"none"}}render(){const{viewport:D,hoverItem:z}=this.props,{activeAnchor:X}=this.state,{x:ie,y:ue,w:oe,h:be,r:Ae}=sdkStore.getHotBound(z.key),Ne=D.scale,Be=(ie-oe*.5)*D.scale,Ge=(ue-be*.5)*D.scale,it="translate("+Be+"px,"+Ge+"px) rotate("+Ae+"deg)",At={position:"absolute",width:oe*Ne,height:be*Ne,transform:it,cursor:"move"},zt=16,qt={width:zt+"px",height:zt+"px"},_n=20*1,$n=["top","right","bottom","left"];return(0,fe.jsx)(np,{delta:_n,className:"artboard-item",style:At,children:(0,fe.jsx)("div",{className:"anchor-container",children:$n.map(Fn=>(0,fe.jsx)("div",{className:"anchor anchor-"+Fn,onMouseEnter:()=>this.handleMouseEnter(Fn),onMouseLeave:()=>this.handleMouseLeave(Fn),children:(0,fe.jsx)("span",{style:qt,onMouseDown:Ao=>this.handleMouseDown(Ao,Fn),children:X===Fn?(0,fe.jsx)(Wi.C,{isColorPure:!0,size:16,name:"flow/create/add"}):(0,fe.jsx)(Wi.C,{isColorPure:!0,size:16,name:"flow/create/ready"})})},Fn))})})}}const Qh=(0,On.Mz)([l.$S,l.X_,l.ER],(K,D,z)=>{var X,ie;return{scale:D/100,size:{w:(X=K==null?void 0:K.width)!=null?X:0,h:(ie=K==null?void 0:K.height)!=null?ie:0},offset:z}}),W0=(0,On.Mz)([Qh,hd.rP,hd.Q1,nr.p$,l.lh,l.pO,l.Jv,U.jx],(K,D,z,X,ie,ue,oe,be)=>{if(X.length!==1)return{isShow:!1};const Ae=sdkStore.getHotItem(X[0]);return!Ae||![C.x.WFlowOpened,C.x.wFlowClosed].includes(Ae.hotAttr.type)?{isShow:!1}:{isShow:!(be===y.qi.OnlyView||oe||ue||ie||z||D||X.length!==1||(0,Qo.OO)(X[0])),viewport:K,testHoverItem:Ae}}),$d=(0,I.Ng)(K=>W0(K))(L2);var A0=s(1002),ll=s(7198),nd=s(8452);const Xu={keys:{mod:{type:"entry:vector:shortcut:by:mod"},"command+a":{type:"entry:vector:shortcut:by:selectAll"},"ctrl+a":{type:"entry:vector:shortcut:by:selectAll"},"mod+alt+o":{type:"entry:vector:shortcut:by:toggle:closed"},tab:{type:"entry:vector:shortcut:by:tab"},backspace:{type:"entry:vector:shortcut:by:del"},del:{type:"entry:vector:shortcut:by:del"},"command+x":{type:"entry:vector:shortcut:by:del"},"ctrl+x":{type:"entry:vector:shortcut:by:del"},1:{type:"entry:vector:shortcut:by:pointType",payload:{pointType:To.pQ.Straight}},2:{type:"entry:vector:shortcut:by:pointType",payload:{pointType:To.pQ.Mirrored}},3:{type:"entry:vector:shortcut:by:pointType",payload:{pointType:To.pQ.Asymmetric}},4:{type:"entry:vector:shortcut:by:pointType",payload:{pointType:To.pQ.Disconnected}},enter:{type:"entry:vector:exit:edit",payload:{end:nd.z9.Enter}},esc:{type:"entry:vector:esc"},"mod+enter":{type:"entry:vector:exit:edit",payload:{end:nd.z9.Enter}},left:{type:"entry:vector:shortcut:by:arrowKey",payload:{dir:"x",rate:-1}},right:{type:"entry:vector:shortcut:by:arrowKey",payload:{dir:"x",rate:1}},up:{type:"entry:vector:shortcut:by:arrowKey",payload:{dir:"y",rate:-1}},down:{type:"entry:vector:shortcut:by:arrowKey",payload:{dir:"y",rate:1}},"shift+left":{type:"entry:vector:shortcut:by:arrowKey",payload:{dir:"x",rate:-10}},"shift+right":{type:"entry:vector:shortcut:by:arrowKey",payload:{dir:"x",rate:10}},"shift+up":{type:"entry:vector:shortcut:by:arrowKey",payload:{dir:"y",rate:-10}},"shift+down":{type:"entry:vector:shortcut:by:arrowKey",payload:{dir:"y",rate:10}}},priority:ll.zu.Mode},Dp=Yt.Ay.div.withConfig({displayName:"styles__StyledVectorContainer",componentId:"sc-1ey6xav-0"})(["position:absolute;width:100vw;height:",";pointer-events:none;z-index:3;.vector-container{position:absolute;top:0;height:100%;}"],K=>"calc(100vh - "+K.currentToolBarHeight+"px)"),Hc={top:-w.MV,left:-w.MV};class Rp extends r.PureComponent{constructor(D){var z;super(D),z=this,(0,Se.A)(this,"handleUpdateState",()=>this.setState({innerHeight:window.innerHeight,innerWidth:window.innerWidth})),(0,Se.A)(this,"handleAdsorption",(X,ie)=>{(0,xi._c)({type:C.x.WVector})||this.props.dispatch({type:"set:quick-create-widget",payload:{widget:null}});const{viewport:ue,listX:oe,listY:be}=this.props,Ae=(0,To.pF)(ue.scale*100),{x:Ne,y:Be}=B.L.applyInverse(ue,X),Ge=(0,To.xZ)(Math.round(Ne),oe,Ae),it=(0,To.xZ)(Math.round(Be),be,Ae);return ie.inverted().apply({x:Ge||Math.round(Ne),y:it||Math.round(Be)})}),(0,Se.A)(this,"handleClientPosition",X=>{const{leftPanelWidth:ie,currentToolBarHeight:ue}=this.props;return ne.Z.xy(X.clientX-ie,X.clientY-ue)}),(0,Se.A)(this,"handleChangeProps",function(X,ie){ie===void 0&&(ie=!1);const{vector:ue}=X,{dispatch:oe}=z.props;ue&&oe({type:"entry:vector:update:vector",payload:{vector:ue,compressible:ie}})}),(0,Se.A)(this,"handleChangeState",function(X,ie){ie===void 0&&(ie=void 0);const{vectorEditor:ue,dispatch:oe}=z.props;oe(y.GO.update({vectorEditor:{...ue,selectedIndex:X,selectedAssistIndex:ie}}))}),(0,Se.A)(this,"handleExitEdit",()=>{this.props.dispatch(y.GO.update({enabledRangeSelection:2}))}),(0,Se.A)(this,"handleClearSelection",()=>{this.props.dispatch(y.GO.update({enabledRangeSelection:1}))}),(0,Se.A)(this,"handleMouseUp",()=>{}),(0,Se.A)(this,"handleClickOutSide",X=>{const ie=document.querySelector("svg.vector-container"),ue=document.querySelector("#setting-panel");ie&&!ie.contains(X.target)&&!(ue!=null&&ue.contains(X.target))&&!X.target.closest(".var-dropmenu")&&!X.target.closest(".var-editor")&&this.props.dispatch({type:"entry:vector:exit:edit",payload:{end:nd.z9.ClickBlank}})}),(0,Se.A)(this,"handleCombineMarkChange",X=>sdkStore.combineMergeMark(X)),(0,Se.A)(this,"handleCombineChange",X=>sdkStore.combineMerge(X)),this.state={innerWidth:window.innerWidth,innerHeight:window.innerHeight}}componentDidMount(){window.addEventListener("resize",this.handleUpdateState);const{widgetStore:D,widget:z,dispatch:X}=this.props;this.removeRemoteListener=D==null?void 0:D.addSdkStoreChangeListener(ie=>{let{isRemote:ue}=ie;ue&&z&&D.isTrashed(z.key)&&(X({type:"entry:clear:selection"}),X({type:"entry:vector:clear:vectorEditor"}))})}componentWillUnmount(){var D;window.removeEventListener("resize",this.handleUpdateState),(D=this.removeRemoteListener)==null||D.call(this)}render(){var D;const{mapX:z,mapY:X,viewport:ie,widget:ue,rect:oe,vectorEditor:be,boundingBoxTransform:Ae,leftPanelWidth:Ne,currentToolBarHeight:Be,canvasOffset:Ge}=this.props;if(!be)return null;const{x:it,y:At}=Ge,{innerWidth:zt,innerHeight:qt}=this.state,_n={top:w.MV,left:w.MV,pointerEvents:"auto"},$n={width:((D=ie.size)==null?void 0:D.w)+"px",left:Ne+"px"},Fn={transform:"matrix(1, 0, 0, 1, "+(Math.round(-it)-zt/2)+", "+(Math.round(-At)-(qt-Be)/2)+")"};return(0,fe.jsx)(Dp,{currentToolBarHeight:Be,style:Fn,children:(0,fe.jsxs)("div",{className:"vector-container",style:$n,children:[(0,fe.jsx)(To.VV,{shortcutsSheet:Xu,svgStyle:Hc,wrapperStyle:_n,mapX:z,mapY:X,rect:oe,widget:ue,viewport:ie,vectorEditor:be,boundingBoxTransform:Ae,onExit:this.handleExitEdit,onClearSelection:this.handleClearSelection,onMouseUp:this.handleMouseUp,onChangeProps:this.handleChangeProps,onChangeState:this.handleChangeState,handleAdsorption:this.handleAdsorption,handleClientPosition:this.handleClientPosition,handleCombineMarkChange:this.handleCombineMarkChange,handleCombineChange:this.handleCombineChange}),(0,fe.jsx)(ha.A,{target:document,onPointerDown:(0,ha.t)(this.handleClickOutSide,{capture:!0})})]})})}}var op=s(16402);const Qu=(0,On.Mz)([op.H,Q.UV,U.lY,op.n,j.wT,l.ER,Q.RX],(K,D,z,X,ie,ue)=>{if(!z)return{};const{key:oe}=z,be=D.getHotItem(oe);if(!be)return{};const{hotAttr:{type:Ae,vector:Ne}}=be;if(Ae!==C.x.WVector||!Ne)return{};const Be=(0,To.YW)(oe),Ge=B.L.toMutableTransform(K).append(Be);return{viewport:K,vectorEditor:z,widget:be,boundingBoxTransform:Ge,leftPanelWidth:X,rect:(0,To.rj)(Ne),mapX:new Map,mapY:new Map,listX:[],listY:[],currentToolBarHeight:ie,canvasOffset:ue,widgetStore:D}}),m1=(0,I.Ng)(K=>Qu(K))(Rp),N2=(K,D,z)=>({x:z.a*K+z.c*D+z.e,y:z.b*K+z.d*D+z.f});var Bp=s(15186);const j2=Yt.Ay.div.withConfig({displayName:"styles__StyledPencilDraw",componentId:"sc-q64jqb-0"})(["position:absolute;width:100%;height:100%;overflow:hidden;&.init-cursor{cursor:",";}.vector-container{position:absolute;top:0;left:0;width:100%;height:100%;}"],xn.M.pencilCreate);var Ju=s(28894);const qu={top:me.MV,left:me.MV,pointerEvents:"auto"},$u={top:-me.MV,left:-me.MV},Up=K=>({closed:!!K.closed,points:K.segments.map(D=>{let{point:z,handleOut:X,handleIn:ie}=D;return{x:z.x,y:z.y,type:To.pQ.Mirrored,radius:0,prev:{x:ie.x,y:ie.y},next:{x:X.x,y:X.y}}})});class Dd extends r.Component{constructor(){super(...arguments),(0,Se.A)(this,"state",{points:[],isDrawing:!1}),(0,Se.A)(this,"svgRef",r.createRef()),(0,Se.A)(this,"path",null),(0,Se.A)(this,"paper",null),(0,Se.A)(this,"handleKeydown",D=>{D.key===ts._.Enter&&(this.props.dispatch({type:"entry:pencil:vector:exit:edit",payload:{isSelectLastCreate:!0}}),this.props.dispatch({type:"set:quick-create-widget",payload:{widget:null}}))}),(0,Se.A)(this,"getMouseRelativePoint",D=>{var z;const ie=(z=this.svgRef.current.getScreenCTM())==null?void 0:z.inverse();return N2(D.clientX,D.clientY,ie)}),(0,Se.A)(this,"drawPoint",D=>{var z;const X=this.getMouseRelativePoint(D);if(!this.paper)return;const ie=new this.paper.Point(X.x,X.y);this.setState({points:[...this.state.points,ie]}),(z=this.path)==null||z.add(ie)}),(0,Se.A)(this,"endDraw",()=>{if(!this.path)return;const{dispatch:D}=this.props;D({type:"entry:pencil:create:vector",payload:{path:this.path.clone(),getRelativeVectorFromPath:Up}}),this.setState({isDrawing:!1,points:[]}),this.path.remove(),this.paper&&(this.path=new this.paper.Path)}),(0,Se.A)(this,"handleMouseDown",D=>{this.setState({isDrawing:!0}),this.drawPoint(D)}),(0,Se.A)(this,"handleMouseMove",D=>{this.state.isDrawing&&this.drawPoint(D)}),(0,Se.A)(this,"handleMouseUp",D=>{this.state.isDrawing&&(this.drawPoint(D),this.endDraw())})}async componentDidMount(){const{paper:D}=await Ju.W3.loadLLG();D&&(D.setup(document.createElement("canvas")),this.path=new D.Path,this.paper=D,document.addEventListener("keydown",this.handleKeydown))}componentWillUnmount(){document.removeEventListener("keydown",this.handleKeydown)}render(){const D=this.state.points.map(Be=>Be.x+","+Be.y).join(" "),z="init-cursor",{bdrStyle:X,bdrColor:ie,bdrWidth:ue,scale:oe}=this.props,be=(0,Bp.t0)(ie),Ae=(0,kr.Mx)(X,Number.parseInt(ue)),Ne=ue*oe/100;return(0,fe.jsx)(j2,{className:z+" pencil-draw-container",style:qu,children:(0,fe.jsx)("svg",{ref:this.svgRef,className:"vector-container",style:$u,onMouseDown:this.handleMouseDown,onMouseMove:this.handleMouseMove,onMouseUp:this.handleMouseUp,children:(0,fe.jsx)("polyline",{points:D,fill:"transparent",stroke:be,strokeWidth:Ne,strokeDasharray:Ae})})})}}var Op=s(31093);const Fp=(0,On.Mz)([op.H,op.n,j.wT,l.ER,Op.lu,Op.E,Op.pp,l.X_],(K,D,z,X,ie,ue,oe,be)=>({viewport:K,leftPanelWidth:D,currentToolBarHeight:z,canvasOffset:X,bdrColor:ie,bdrWidth:ue,bdrStyle:oe,scale:be})),f1=()=>{var K;const{viewport:D,leftPanelWidth:z,currentToolBarHeight:X,canvasOffset:ie,bdrColor:ue,bdrWidth:oe,bdrStyle:be,scale:Ae}=(0,I.d4)(Fp),Ne=(0,I.wA)(),[[Be,Ge],it]=(0,r.useState)([window.innerWidth,window.innerHeight]),{x:At,y:zt}=ie,qt={transform:"matrix(1, 0, 0, 1, "+(Math.round(-At)-Be/2)+", "+(Math.round(-zt)-(Ge-X)/2)+")"},_n={width:((K=D.size)==null?void 0:K.w)+"px",left:z+"px"};return(0,r.useEffect)(()=>{const $n=()=>{it([window.innerWidth,window.innerHeight])};return window.addEventListener("resize",$n),()=>{window.removeEventListener("resize",$n)}},[]),(0,fe.jsx)(Dp,{currentToolBarHeight:X,style:qt,children:(0,fe.jsx)("div",{className:"vector-container",style:_n,children:(0,fe.jsx)(Dd,{bdrColor:ue,bdrWidth:oe,bdrStyle:be,scale:Ae,dispatch:Ne})})})};var Mc=s(50365);const Jh=Yt.Ay.div.withConfig({displayName:"styles__StyledTableResize",componentId:"sc-1oejtjh-0"})(["position:absolute;z-index:1;width:100%;height:100%;left:0;top:0;pointer-events:none;&.ns{cursor:",";pointer-events:auto;}&.ew{cursor:",";pointer-events:auto;}.horizontal{position:absolute;width:100%;height:3px;background:rgba(22,132,252,.6);cursor:",";pointer-events:auto;}.vertical{position:absolute;height:100%;width:3px;background:rgba(22,132,252,.6);cursor:",";pointer-events:auto;}.vertical,.horizontal{opacity:0;&:hover,&.active{opacity:1;transition-property:opacity;transition-duration:0.5s;}}"],xn.M.nsResize,xn.M.ewResize,xn.M.nsResize,xn.M.ewResize),eh=(0,On.Mz)([nr.p$,l.X_],(K,D)=>{const z=D/100;return{selection:K,ratio:z}}),Rd=()=>{const{selection:K,ratio:D}=(0,I.d4)(eh);if(K.length!==1)return null;const z=K[0],X=sdkStore.getHotItem(z);if(!X||X.hotAttr.type!==C.x.WSwimlane)return null;const ie={widgetKey:z,ratio:D};return(0,fe.jsx)(qh,{...ie})},qh=K=>{const{widgetKey:D,ratio:z}=K,X=sdkStore.getHotItem(D),{x:ie,y:ue,w:oe,h:be}=sdkStore.getHotBound(D),{database:Ae,swimConfig:Ne,swimlaneType:Be}=X.hotAttr,{isShowBigTitle:Ge}=Ne,{table:it,widthList:At,heightList:zt}=Ae,qt=(0,I.wA)(),[_n,$n]=(0,r.useState)([]),[Fn,Ao]=(0,r.useState)([]),[_o,zo]=(0,r.useState)(""),[aa,oa]=(0,r.useState)(""),ma=(0,r.useCallback)(Aa=>{const fr=[];let Jr=0,qa=0;!Ge&&Be==="topBottom"&&(qa=1);for(let Ka=qa;Ka<it[1].length;Ka++){const rr=Aa[Ka];Jr+=rr,fr.push(Jr)}Ao(fr)},[Ge,Be,it]),Ea=(0,r.useCallback)(Aa=>{const fr=[];let Jr=0,qa=0;!Ge&&Be==="leftRight"&&(qa=1);for(let Ka=qa;Ka<it.length;Ka++){const rr=Aa[Ka];Jr+=rr,fr.push(Jr)}$n(fr)},[Ge,Be,it.length]);(0,r.useEffect)(()=>{Ea(zt),ma(At)},[zt,At,Ea,ma]);const er=Aa=>{Aa.preventDefault(),Aa.stopPropagation();const{clientX:fr,clientY:Jr}=Aa,{lineType:qa,pos:Ka}=Aa.currentTarget.dataset,rr=(0,F0.Ie)(X.key),{hb:Ua}=rr[X.key],_r=Ua.x-Ua.w*.5,ni=Ua.y-Ua.h*.5,zr=ki=>{const ds=[{key:X.key,hotAttr:{...X.hotAttr,database:{...Ae}}}],Qs=Math.ceil(Number(ki.clientX-fr)/z),E=Math.ceil(Number(ki.clientY-Jr)/z);oa(qa);let le=null;if(qa.includes("HL")){const{newHeightList:de,newH:_e}=(0,Mc.s2)({handleAttr:{type:"bottom",delta:E,heightList:zt,x:parseInt(Ka),swimlaneType:Be,isShowBigTitle:Ge}});ds[0].hotAttr.h=_e,ds[0].hotAttr.y=ni+_e*.5;const{y:Vt}=sdkStore.toAttrXY({x:0,y:ni+_e*.5},X.key);ds[0].hotAttr.y=Vt,ds[0].hotAttr.database.heightList=de,le=()=>Ea(de),zo("ns")}else{const{newWidthList:de,newW:_e}=(0,Mc.s2)({handleAttr:{type:"right",delta:Qs,widthList:At,y:parseInt(Ka),swimlaneType:Be,isShowBigTitle:Ge}});ds[0].hotAttr.w=_e,ds[0].hotAttr.x=_r+_e*.5;const{x:Vt}=sdkStore.toAttrXY({x:_r+_e*.5,y:0},X.key);ds[0].hotAttr.x=Vt,ds[0].hotAttr.database.widthList=de,le=()=>ma(de),zo("ew")}qt({type:"entry:widget:change",payload:{flatChgList:ds}}),le&&le()},Ur=()=>{oa(""),zo(""),document.removeEventListener("mousemove",zr),document.removeEventListener("mouseup",Ur)};document.addEventListener("mousemove",zr),document.addEventListener("mouseup",Ur)},Pr={width:oe*z,height:be*z,transform:"translate("+(ie-oe*.5)*z+"px,"+(ue-be*.5)*z+"px) "};return(0,fe.jsxs)(Jh,{className:Kt()("tableResize",_o&&_o),style:Pr,children:[_n.map((Aa,fr)=>{let Jr=fr;const qa="HL-"+(fr+1);return!Ge&&Be==="leftRight"&&(Jr+=1),(0,fe.jsx)("div",{"data-pos":Jr,"data-line-type":qa,onMouseDown:er,className:Kt()("horizontal",aa===qa&&"active"),style:{top:(Aa-1)*z+"px"}},fr)}),Fn.map((Aa,fr)=>{let Jr=fr;const qa="VL-"+(fr+1);return!Ge&&Be==="topBottom"&&(Jr+=1),(0,fe.jsx)("div",{"data-pos":Jr,"data-line-type":qa,onMouseDown:er,className:Kt()("vertical",aa===qa&&"active"),style:{left:(Aa-1)*z+"px"}},fr)})]})},th=Yt.Ay.div.withConfig({displayName:"styles__StyledBasketTooltip",componentId:"sc-s75pp2-0"})(["z-index:2;.behavior{position:absolute;top:50%;left:50%;margin-left:-61px;margin-top:-16px;line-height:32px;height:32px;width:122px;font-size:12px;z-index:101;text-align:center;background-color:rgba(31,41,46,0.64);border-radius:2px;pointer-events:none;&:lang(en){width:220px;margin-left:-110px;}&:lang(ja){width:150px;margin-left:-75px;}p{color:#fff;}}"]);class $h extends r.PureComponent{render(){var D;const{onlyView:z,hoverItem:X,scale:ie,isShow:ue}=this.props;if(!ue)return null;const oe=sdkStore.getHotItem(X);if(!oe||oe!=null&&(D=oe.hotAttr)!=null&&D.isLock)return null;const be=(oe==null?void 0:oe.hotAttr.type)==="wBasket"&&(oe==null?void 0:oe.hotAttr.basket)==="bDanli",Ae=(0,b0.td)([oe.key]);if(!be||Ae&&!z)return null;const{transform:Ne,rect:Be}=(0,tn.Oj)(X),{a:Ge,b:it,c:At,d:zt}=Ne,{x:qt,y:_n}=Ne.clone().scale(ie/100,ie/100).apply({x:Be.x,y:Be.y}),{x:$n,y:Fn}=ne.Z.mul(ne.Z.xy(Be.w,Be.h),ie/100),Ao={position:"absolute",overflow:"hidden",left:qt,top:_n,width:$n,height:Fn,transform:"matrix("+Ge+","+it+","+At+","+zt+",0,0)"};return(0,fe.jsx)(th,{style:Ao,children:(0,fe.jsx)("div",{className:"behavior",children:(0,fe.jsx)("p",{children:be?z?"\u53CC\u51FB\u67E5\u770B\u52A8\u6001\u7EC4\u4EF6":I18N.ScreenContainer.dblclick_to_edit_dy:I18N.ScreenContainer.dblclick_to_edit})})})}}const D2=(0,On.Mz)([U.IL,l.X_,U.jx,l.pO],(K,D,z,X)=>{var ie;return!K||X?{isShow:!1}:((ie=sdkStore.getHotItem(K))==null?void 0:ie.hotAttr.type)!==C.x.WBasket?{isShow:!1}:{isShow:!0,hoverItem:K,scale:D,onlyView:z===y.qi.OnlyView}}),Vp=(0,I.Ng)(K=>D2(K))($h);var g1=s(89002);const R2=Yt.Ay.div.withConfig({displayName:"style__StyledTableResize",componentId:"sc-1vrbotd-0"})(["position:absolute;z-index:1;width:100%;height:100%;left:0;top:0;pointer-events:none;.horizontal{position:absolute;width:100%;height:3px;background:rgba(22,132,252,.6);cursor:row-resize;pointer-events:all;}.vertical{position:absolute;height:100%;width:3px;background:rgba(22,132,252,.6);cursor:col-resize;pointer-events:all;}.vertical,.horizontal{opacity:0;&.is-table-dragging{cursor:grabbing;&:hover,&:active{opacity:0;}}&:hover,&:active{opacity:1;transition-property:opacity;transition-duration:0.5s;}}.horizontal-options{position:absolute;width:100%;left:0;top:-30px;height:30px;background-color:red;display:flex;align-items:center;}.vertical-options{position:absolute;height:100%;left:-30px;top:0;width:30px;background-color:gray;display:flex;align-items:center;flex-direction:column;}"]),gd=14,B2=24,mc=10,e0=mc+1,U2=40,k0=Yt.Ay.div.withConfig({displayName:"styles__TableAddStyled",componentId:"sc-12imdr0-0"})(["width:","px;height:","px;position:absolute;pointer-events:all;display:flex;cursor:pointer;display:flex;align-items:center;flex-direction:row;&.horizontal-add-handle-warp{left:-","px;align-items:center;}&.vertical-add-handle-warp{top:-","px;justify-content:center;}.horizontal-add-handle{background:#DBDBDB;width:4px;height:4px;border-radius:50%;position:absolute;left:5px;}.vertical-add-handle{width:4px;height:4px;background:#DBDBDB;border-radius:50%;position:absolute;top:5px;}.add-lineH,.add-lineV,.horizontal-add-handle-svg,.vertical-add-handle-svg{display:none;}.horizontal-add-handle-svg,.vertical-add-handle-svg,.on-mouser-leaveV,.on-mouser-leaveH{width:","px;height:","px;}.on-mouser-leaveH{animation:0.4s svgScaleReverseH 1;animation-fill-mode:forwards;position:absolute;left:-5px;}.on-mouser-leaveV{animation:0.4s svgScaleReverseV 1;animation-fill-mode:forwards;position:absolute;top:-5px;}&.drag-select{.horizontal-add-handle-warp,.vertical-add-handle-warp,.add-lineH,.add-lineV{display:block;}}&.is-dragging{cursor:grabbing;.horizontal-add-handle-warp,.vertical-add-handle-warp,.add-lineH,.add-lineV{pointer-events:none;}}.add-lineH{height:2px;background:#298DF8;position:absolute;left:","px;}.add-lineV{width:2px;background:#298DF8;position:absolute;top:","px;}&:not(.drag-select):not(.is-dragging):hover{.horizontal-add-handle-svg,.add-lineH,.add-lineV,.vertical-add-handle-svg{display:block;}.vertical-add-handle-svg{position:absolute;top:-5px;animation:0.4s svgScaleV 1;}.horizontal-add-handle-svg{position:absolute;left:-5px;animation:0.4s svgScaleV 1;}.horizontal-add-handle,.on-mouser-leaveH,.on-mouser-leaveV .vertical-add-handle{display:none;}}@keyframes svgScaleV{0%{transform:scale(0)}100%{transform:scale(1)}}@keyframes svgScaleReverseH{0%{transform:scale(1);opacity:1}60%{transform:scale(0.2);opacity:0}100%{transform:scale(0);opacity:0}}@keyframes svgScaleReverseV{0%{transform:scale(1);opacity:1}60%{transform:scale(0.2);opacity:0}100%{transform:scale(0);opacity:0}}"],gd,gd,gd+e0,gd+e0,B2,B2,gd+e0,gd+e0),O2=K=>{let{values:D,indexAndType:z,handleAddRows:X,onAddHandleMouseLeave:ie,styles:ue,isDragSelect:oe}=K;const be=(0,I.d4)(zc.CY),Ae=(0,I.d4)(zc.sx);return(0,fe.jsx)(fe.Fragment,{children:D.map((Ne,Be)=>{const Ge=oe&&z&&z.index===String(Be)&&z.rtype==="h";return(0,fe.jsxs)(k0,{"data-index":Be,"data-rtype":"h",className:"table-add-handle horizontal-add-handle-warp "+(Ge&&"drag-select")+" "+(Ae&&"is-dragging"),style:{top:Ne-gd/2+"px"},onMouseDown:X,onMouseLeave:ie,children:[(0,fe.jsx)("div",{className:"horizontal-add-handle"}),(0,fe.jsx)(Wi.C,{name:"design/table/Hhandle",className:"horizontal-add-handle-svg"}),!be&&z&&z.index===String(Be)&&z.rtype==="h"&&(0,fe.jsx)(Wi.C,{name:"design/table/Hhandle",className:"on-mouser-leaveH"}),(0,fe.jsx)("div",{className:"add-lineH",style:ue})]},Be)})})},nh=K=>{let{values:D,indexAndType:z,handleAddColumns:X,onAddHandleMouseLeave:ie,styles:ue,isDragSelect:oe}=K;const be=(0,I.d4)(zc.CY),Ae=(0,I.d4)(zc.sx);return(0,fe.jsx)(fe.Fragment,{children:D.map((Ne,Be)=>{const Ge=oe&&z&&z.index===String(Be)&&z.rtype==="v";return(0,fe.jsxs)(k0,{"data-index":Be,"data-rtype":"v",className:"table-add-handle vertical-add-handle-warp "+(Ge&&"drag-select")+" "+(Ae&&"is-dragging"),style:{left:Ne-gd/2+"px"},onMouseDown:X,onMouseLeave:ie,children:[(0,fe.jsx)("div",{className:"vertical-add-handle"}),(0,fe.jsx)(Wi.C,{name:"design/table/handle",className:"vertical-add-handle-svg"}),!be&&z&&z.index===String(Be)&&z.rtype==="v"&&(0,fe.jsx)(Wi.C,{name:"design/table/handle",className:"on-mouser-leaveV"}),(0,fe.jsx)("div",{className:"add-lineV",style:ue})]},Ne)})})},Bd=(0,r.memo)(K=>{const{isRow:D,widget:z,radio:X}=K,{hotAttr:{w:ie,h:ue}}=z;return(0,fe.jsx)(fe.Fragment,{children:D?(0,fe.jsx)(O2,{...K,styles:{width:ie*X,height:2*X}}):(0,fe.jsx)(nh,{...K,styles:{height:ue*X,width:2*X}})})});var ap=s(76805),y1=s(15776),t0=s(40860);const zp=(K,D)=>{if(!K||!D)return{selRows:[],selColumns:[]};const{selectionLeftTopInfo:{x:z,y:X},selectionRightBottomInfo:{x:ie,y:ue}}=D;let oe,be;const Ae=ie-z+1,Ne=ue-X+1;if((0,hc.SS)(K)){const{widthList:Be,heightList:Ge}=K;oe=Ge.map((it,At)=>{if(At>=X&&At<=ue&&Ae===Be.length)return At}).filter(it=>it!==void 0),be=Be.map((it,At)=>{if(At>=z&&At<=ie&&Ne===Ge.length)return At}).filter(it=>it!==void 0)}else{const{tableData:{data:Be,rows:Ge,columns:it}}=K;oe=Ge.map((At,zt)=>{if(zt>=X&&zt<=ue&&Be[zt].length===Ae)return zt}).filter(At=>At!==void 0),be=it.map((At,zt)=>{if(zt>=z&&zt<=ie&&Be.length===Ne)return zt}).filter(At=>At!==void 0)}return{selRows:oe,selColumns:be}},oh=K=>{let{isHorizontal:D,isShiftDown:z,index:X,widget:ie,selectTableCellInfo:ue}=K;const{hotAttr:oe}=ie,{tableData:{rows:be,columns:Ae}}=oe;let Ne,Be;if((0,hc.SS)(oe)){const{widthColumns:zt,heightRows:qt}=(0,Mc.SK)(oe);Be=zt,Ne=qt}else Be=Ae,Ne=be;const{selColumns:Ge,selRows:it}=zp(oe,ue);let At={x1:0,y1:0,x2:0,y2:0};if(D)if(Ge.length===0||!z)At={x1:X,y1:0,x2:X,y2:Ne.length-1};else{const{selectionLeftTopInfo:{x:zt,y:qt},selectionRightBottomInfo:{x:_n,y:$n}}=ue;At=Ge.some(Ao=>Number(Ao)>X)?{x1:X,y1:0,x2:_n,y2:$n}:{x1:zt,y1:qt,x2:X,y2:Ne.length-1}}else if(it.length===0||!z)At={x1:0,y1:X,x2:Be.length-1,y2:X};else{const{selectionLeftTopInfo:{x:zt,y:qt},selectionRightBottomInfo:{x:_n,y:$n}}=ue;At=it.some(Ao=>Number(Ao)>X)?{x1:zt,y1:X,x2:_n,y2:$n}:{x1:zt,y1:qt,x2:Be.length-1,y2:X}}(0,y1.Z)({widget:ie,...At,isDragSelected:!0}),(0,t0.t0)({isEditTable:!0})},Ud=(K,D,z)=>{if(!D||!z)return!1;const{tableData:{mergeCells:X}}=D.hotAttr,{selectionLeftTopInfo:{x:ie,y:ue},selectionRightBottomInfo:{x:oe,y:be}}=z;return!Object.entries(X).some(Ne=>{let[Be,Ge]=Ne;if(K){const it=Ge[0],At=Number(Be.split("-")[0]),zt=At+it,qt=oe+1;return At<ie&&zt>ie||zt>qt&&At<qt}else{const it=Ge[1],At=Number(Be.split("-")[1]),zt=At+it,qt=be+1;return At<ue&&zt>ue||zt>qt&&At<qt}})},M0=K=>{let{widget:D,values:z,selectRowsOrColumns:X,isHorizontal:ie,scale:ue}=K;const oe=[0],{tableData:{mergeCells:be}}=D;z.reduce((Ge,it)=>(Ge=Ge+it*ue,oe.push(Ge),Ge),0);let Ae=oe.map((Ge,it)=>{let At=0,zt=0;const qt=z.map(_n=>_n*ue);return it===0?(At=-1e6,zt=qt[it]/2):it===qt.length?(At=Ge-qt[it-1]/2,zt=Ge+1e6):(At=Ge-qt[it-1]/2,zt=Ge+qt[it]/2),{index:it,location:Ge,hotZoonStart:At,hotZoonEnd:zt}}).filter((Ge,it)=>!X.includes(it-1));X.length>0&&(Ae=Ae.filter(Ge=>{let{index:it}=Ge;return it!==Number(X[0])}));function Ne(Ge,it){const At=[];for(let zt=Ge;zt<=it;zt++)At.push(zt);return At}let Be=[];return Object.entries(be).some(Ge=>{let[it,At]=Ge;if(ie){const zt=At[0],qt=Number(it.split("-")[0]),_n=qt+zt,$n=Ne(qt+1,_n-1);Be=Array.from(new Set(Be.concat($n)))}else{const zt=At[1],qt=Number(it.split("-")[1]),_n=qt+zt,$n=Ne(qt+1,_n-1);Be=Array.from(new Set(Be.concat($n)))}}),Ae=Ae.filter(Ge=>{let{index:it}=Ge;return!Be.includes(it)}),Ae},n0=K=>{let{dispatch:D,widget:z,isHorizontal:X,startIndex:ie,dragMoveIndex:ue,rowOrColumnNum:oe,selectRowsOrColumns:be}=K;const{key:Ae,hotAttr:Ne,hotAttr:{tableData:Be,widthList:Ge,heightList:it}}=z,At=be.length,{cellStyles:zt,columns:qt,links:_n,data:$n,rows:Fn,mergeCells:Ao}=k2()(Be),_o=ue>ie?ue-At:ue,zo=be[0],aa=[];let oa;(0,hc.SS)(Ne)?oa=X?Ge.length-1:it.length-1:oa=X?qt.length-1:Fn.length-1;for(let Aa=0;Aa<=oa;Aa++)aa.push(Aa);const ma=Aa=>{const fr=Aa.splice(zo,At);Aa.splice(_o,0,...fr)};let Ea;X?((0,hc.SS)(Ne)?Ea=(0,Mc.A8)({database:(0,Mc.Nf)(Ne),areaStart:zo,dragLength:At,moveIndex:_o}):(zt.forEach(Aa=>{ma(Aa)}),_n.forEach(Aa=>{ma(Aa)}),$n.forEach(Aa=>{ma(Aa)}),ma(qt)),ma(aa)):((0,hc.SS)(Ne)?Ea=(0,Mc.gh)({database:(0,Mc.Nf)(Ne),areaStart:zo,dragLength:At,moveIndex:_o}):(ma(zt),ma(_n),ma($n),ma(Fn)),ma(aa));const er={};Object.entries(Ao).some(Aa=>{let[fr,Jr]=Aa;if(X){const[qa,Ka]=fr.split("-"),Ua=aa.indexOf(Number(qa))+"-"+Ka;er[Ua]=Jr}else{const[qa,Ka]=fr.split("-"),rr=aa.indexOf(Number(Ka)),Ua=qa+"-"+rr;er[Ua]=Jr}}),Be.mergeCells=er,D({type:"entry:widget:change",payload:{flatChgList:[{key:Ae,hotAttr:{tableData:Be,...Ea}}]}}),ue=ue>ie?Math.max(ue-At,0):ue;const Pr=X?{x1:ue,y1:0,x2:ue+At-1,y2:oe-1}:{x1:0,y1:ue,x2:oe-1,y2:ue+At-1};D({type:"table:update:info",payload:{isMouseDownInTable:!1}}),(0,y1.Z)({widget:z,...Pr,isDragSelected:!0}),(0,zs.of)(X?"row":"column")},H0=Yt.Ay.div.withConfig({displayName:"styles__TableRowOrColumnDragStyle",componentId:"sc-1qgg2iu-0"})(["display:flex;position:absolute;align-items:center;overflow:hidden;background-color:#E5E5E5;border-top-left-radius:3px;&.horizontal-drag{left:0;top:-","px;height:","px;border-top-right-radius:3px;}&.vertical-drag{border-bottom-left-radius:3px;flex-direction:column;top:0;left:-","px;height:100%;width:","px;}"],e0,mc,e0,mc),F2=Yt.Ay.div.withConfig({displayName:"styles__TableDragStyled",componentId:"sc-1qgg2iu-1"})(["cursor:pointer;width:100%;height:100%;overflow:hidden;pointer-events:all;&.is-dragging{cursor:grabbing;}&.is-selected{background-color:#1685FC;cursor:grab;}&:not(.is-selected):not(.is-dragging):hover{background-color:#B8BCBF;}"]),Wp=Yt.Ay.div.withConfig({displayName:"styles__TableDragMoveStyled",componentId:"sc-1qgg2iu-2"})(["display:flex;position:absolute;width:60px;height:90px;z-index:1;overflow:hidden;flex-direction:column;border-radius:4px;border:1px solid #1685FC;.drag-move-top{width:100%;height:10px;background-color:#1685FC;}.drag-move-number{width:100%;height:calc(100% - 10px);display:flex;align-items:center;justify-content:center;color:#333;font-family:PingFang SC;font-size:14px;background-color:rgba(218,235,254,0.7);}&.is-row{width:110px;height:40px;flex-direction:row;.drag-move-top{width:10px;height:100%;background-color:#1685FC;}.drag-move-number{width:calc(100% - 10px);height:100%;}}"]),rp=(0,r.memo)(K=>{let{isHorizontal:D,values:z,widget:X,scale:ie,setHoverIndexAndType:ue}=K;const oe=(0,I.d4)(zc.zX),be=(0,I.d4)(zc.sx),Ae=(0,I.wA)(),Ne=(0,r.useRef)(null),[Be,Ge]=(0,r.useState)([]),[it,At]=(0,r.useState)([]),[zt,qt]=(0,r.useState)(!1),[_n,$n]=(0,r.useState)({left:0,top:0}),Fn=D?"drag-row":"drag-column",Ao=1*ie,_o=D?{top:"-"+mc+"px",width:"calc(100% + "+Ao+"px)"}:{left:"-"+mc+"px",height:"calc(100% + "+Ao+"px)"};let zo;const{hotAttr:aa}=X,{heightList:oa,widthList:ma,tableData:Ea}=aa;if((0,hc.SS)(aa))zo=D?oa.length:ma.length;else{var er,Pr;zo=D?Ea==null||(er=Ea.rows)==null?void 0:er.length:Ea==null||(Pr=Ea.columns)==null?void 0:Pr.length}(0,r.useEffect)(()=>{if(!oe||!aa){Ge([]),At([]);return}const{selRows:Ua,selColumns:_r}=zp(aa,oe);Ge(Ua),At(_r)},[oe,aa,z,ie]);const Aa=(0,r.useCallback)(Ua=>{const{clientX:_r,clientY:ni}=Ua;MB.action("entry:contextmenu:withtype",{position:{top:ni,left:_r}}),(0,t0.t0)({isShowTableDragMenu:!0,tableRightClickDragInfo:{isHorizontal:D,index:Number(Ua.target.dataset.index)}})},[D]),fr=(0,r.useCallback)(Ua=>D?it.includes(Ua):Be.includes(Ua),[D,Be,it]),Jr=(0,r.useCallback)(Ua=>{const _r=Number(Ua.target.dataset.index),ni=Ua.shiftKey;fr(_r)||(oh({isHorizontal:D,isShiftDown:ni,index:_r,selectTableCellInfo:oe,widget:X}),(0,t0.KN)("isEditTable",!0))},[X,oe,D,fr]),qa=(0,ap.nF)((0,r.useCallback)(()=>{MB.notice({text:I18N.Popups.do_not_drag_table_merge_cell,type:"warning"})},[]),1e3,!0),Ka=Ua=>{Ua.stopPropagation();const _r=Number(Ua.target.dataset.index),ni=fr(_r),zr=Ua.clientX,Ur=Ua.clientY;let ki=0,ds=0,Qs=!1,E=0,le=!1;if(ni||Jr(Ua),Ua.button===2){Aa(Ua);return}if(Ae({type:"table:update:info",payload:{isMovingInDrag:!0}}),ni){le=Ud(D,X,oe);const Bt=Ne.current.getBoundingClientRect();ki=Ua.clientX-Bt.left,ds=Ua.clientY-Bt.top,$n({left:ki,top:ds})}const de=M0({widget:aa,scale:ie,isHorizontal:D,selectRowsOrColumns:D?it:Be,values:z}),_e=Bt=>{if(ni){if(!le){qa();return}Qs=!0,qt(!0),Ae({type:"table:update:info",payload:{isDragging:!0}});const ln=Bt.clientX-zr+ki,Ht=Bt.clientY-Ur+ds,En=D?ln:Ht,po=de.find(Lo=>{let{hotZoonStart:Bo,hotZoonEnd:Zo}=Lo;return En<=Zo&&En>=Bo});ue(po?{rtype:D?"v":"h",index:""+po.index}:null),E=po?po.index:-1,$n({left:ln,top:Ht})}else{if(Bt.target.dataset.horizontal!==Fn)return;const ln=Bt.target.dataset.index;if(_r>=0&&ln>=0){const Ht=ln>=_r?ln:_r,En=ln<_r?ln:_r,po=D?{x1:En,y1:0,x2:Ht,y2:zo-1}:{x1:0,y1:En,x2:zo-1,y2:Ht};(0,y1.Z)({widget:X,...po,isDragSelected:!0})}}},Vt=()=>{qt(!1),ue(null),Ae({type:"table:update:info",payload:{isDragging:!1,isMovingInDrag:!1}}),Qs&&E>=0&&X&&n0({dispatch:Ae,widget:X,isHorizontal:D,selectRowsOrColumns:D?it:Be,dragMoveIndex:E,startIndex:_r,rowOrColumnNum:zo}),document.removeEventListener("mousemove",_e),document.removeEventListener("mouseup",Vt)};document.addEventListener("mousemove",_e),document.addEventListener("mouseup",Vt)},rr=(0,r.useMemo)(()=>{let Ua=D?I18N.ContextMenu.table_drag_total_column.replace("%num",it.length):I18N.ContextMenu.table_drag_total_row.replace("%num",Be.length);const _r=D?it.length:Be.length;return ENV.IS_MO&&_r>1&&(Ua=Ua+"s"),Ua},[D,it,Be]);return(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)(H0,{className:D?"horizontal-drag":"vertical-drag",ref:Ne,style:_o,children:z&&z.map((Ua,_r)=>{let ni=!1;(D?it.length>0:Be.length>0)?ni=D?it.at(-1)===_r:Be.at(-1)===_r:ni=_r===z.length-1;const Ur=ni?Ao:0;return(0,fe.jsx)(F2,{"data-index":_r,"data-horizontal":Fn,className:Kt()(Fn,fr(_r)&&"is-selected",be&&"is-dragging"),style:D?{width:Ua*ie+Ur+"px"}:{height:Ua*ie+Ur+"px"},onMouseDown:Ka},_r)})}),zt&&(0,fe.jsxs)(Wp,{className:!D&&"is-row ",style:_n,children:[(0,fe.jsx)("div",{className:"drag-move-top"}),(0,fe.jsx)("div",{className:"drag-move-number",children:rr})]})]})});var Ls=s(175);class x1 extends r.PureComponent{constructor(){var D;super(...arguments),D=this,(0,Se.A)(this,"state",{v:[],h:[],startX:null,startY:null,selectLineInfo:null,widths:[],heights:[],isResizeCell:!1,hoverIndexAndType:null,originTopLeft:[0,0],isDragSelectIndex:!1,dragWidths:[],dragHeights:[]}),(0,Se.A)(this,"setWidthHeight",function(z){z===void 0&&(z=D.props);const{widget:{hotAttr:X},scale:ie}=z,{widthList:ue,heightList:oe,tableData:be}=X;let Ae,Ne;(0,hc.SS)(X)?(Ae=ue,Ne=oe):(Ae=be.columns.map(Be=>Be.width),Ne=be.rows.map(Be=>Be.height)),D.setState({widths:Ae,heights:Ne}),D.init(Ae,Ne,ie)}),(0,Se.A)(this,"init",function(z,X,ie){ie===void 0&&(ie=D.props.scale);const ue=ie/100,oe=[0],be=[0];z.reduce((Ae,Ne)=>(Ae=Ae+Ne*ue,oe.push(Ae),Ae),0),X.reduce((Ae,Ne)=>(Ae=Ae+Number.parseFloat(Ne)*ue,be.push(Ae),Ae),0),D.setState({v:be,h:oe,dragWidths:z,dragHeights:X})}),(0,Se.A)(this,"handleDown",z=>{const{widget:{hotAttr:{x:X,y:ie}}}=this.props,{rtype:ue,index:oe}=z.currentTarget.dataset,{clientX:be,clientY:Ae}=z;z.stopPropagation(),sdkStore.combineMergeMark("drag-table-cell"),this.setState({startX:be,startY:Ae,selectLineInfo:{rtype:ue,index:oe},originTopLeft:[X,ie]}),this.setState({isResizeCell:!0}),(0,t0.t0)({isResizeCell:!0})}),(0,Se.A)(this,"handleMouseUp",()=>{const{selectLineInfo:z}=this.state,{widget:X}=this.props;z&&((0,Ls.On)(X),this.setState({startX:null,startY:null,selectLineInfo:null}),(0,t0.t0)({isResizeCell:!1}),this.setWidthHeight(),this.setState({isResizeCell:!1}),sdkStore.combineMerge("drag-table-cell"))}),(0,Se.A)(this,"onDrag",z=>{const{selectLineInfo:X,startX:ie,startY:ue,widths:oe,heights:be}=this.state,{widget:Ae,scale:Ne}=this.props,Be=Ne/100;if(!X)return;const Ge=[...oe],it=[...be],{rtype:At,index:zt}=X,qt=Math.ceil(Number(z.clientX-(ie||0))/Be),_n=Math.ceil(Number(z.clientY-(ue||0))/Be),$n=zt===0?0:zt-1;if(At==="h"){const Ao=Number.parseFloat(it[$n])+_n;if(Ao<g1.__)return;it[$n]+=_n;const _o=(0,g1.M$)(Ae,Number($n),Ao);MB.action("entry:table:widget:change",{data:_o})}if(At==="v"){const Ao=Number.parseFloat(Ge[$n])+qt;if(Ao<g1.__)return;Ge[$n]+=qt;const _o=(0,g1.V0)(Ae,Number($n),Ao);MB.action("entry:table:widget:change",{data:_o})}this.init(Ge,it)}),(0,Se.A)(this,"handleAddRows",z=>{if(z.buttons===2)return;z.stopPropagation();const{widget:X}=this.props,{index:ie}=z.currentTarget.dataset,ue=Number(ie),oe=(0,g1.BG)(X,1,Math.max(ue-1,0),ue===0);oe&&((0,Ls.On)(oe),(0,zs.Wv)(1))}),(0,Se.A)(this,"handleAddColumns",z=>{if(z.buttons===2)return;z.stopPropagation();const{widget:X}=this.props,{index:ie}=z.currentTarget.dataset,ue=Number(ie),oe=(0,g1.GF)(X,1,Math.max(ue-1,0),ue===0);oe&&((0,Ls.On)(oe),(0,zs.qt)(1))}),(0,Se.A)(this,"onAddHandleMouseLeave",z=>{const{rtype:X,index:ie}=z.currentTarget.dataset;this.setState({isDragSelectIndex:!1,hoverIndexAndType:{rtype:X,index:ie}}),setTimeout(()=>{this.setState({isDragSelectIndex:!1,hoverIndexAndType:null})},350)}),(0,Se.A)(this,"setHoverIndexAndType",z=>{this.setState({isDragSelectIndex:!0,hoverIndexAndType:z})})}componentDidMount(){this.setWidthHeight()}UNSAFE_componentWillUpdate(D,z){const{widget:X,scale:ie}=D,{widget:ue,scale:oe}=this.props,{h:be,w:Ae,tableData:Ne}=X.hotAttr,{h:Be,w:Ge,tableData:it}=ue.hotAttr,{isResizeCell:At}=z;((Ge!==Ae||be!==Be||Ne!==it)&&!At||ie!==oe)&&this.setWidthHeight(D)}componentWillUnmount(){(0,t0.t0)({selectTableCellInfo:null,isShowTableMenu:!1,widget:null,isEditTable:!1}),(0,t0.KN)("isEditTable",!1)}render(){const{isMouseDownInTable:D,widget:z,scale:X,isResizingItem:ie,isEditTable:ue,isTableDragging:oe}=this.props,{v:be,h:Ae,selectLineInfo:Ne,hoverIndexAndType:Be,isDragSelectIndex:Ge,dragWidths:it,dragHeights:At,isResizeCell:zt}=this.state,{w:qt,h:_n,isLock:$n}=z.hotAttr;if($n)return null;const Fn=!!(Ne&&Ne.rtype==="v"),Ao=!!(Ne&&Ne.rtype==="h"),_o=X/100,{transform:zo,rect:aa}=(0,tn.Oj)(z.key),{x:oa,y:ma}=zo.clone().apply({x:aa.x,y:aa.y}),{a:Ea,b:er,c:Pr,d:Aa}=zo,fr={left:oa*_o,top:ma*_o,width:qt*_o,height:_n*_o,transform:"matrix("+Ea+","+er+","+Pr+","+Aa+",0,0)",transformOrigin:"0px 0px"},Jr={indexAndType:Be,widget:z,radio:_o,onAddHandleMouseLeave:this.onAddHandleMouseLeave};return(0,fe.jsxs)(R2,{className:"tableResize",style:fr,children:[!Fn&&ue&&!D&&be.map((qa,Ka)=>(0,fe.jsx)("div",{"data-index":Ka,"data-rtype":"h",onMouseDown:this.handleDown,className:Kt()("horizontal",oe&&"is-table-dragging"),style:{top:qa-1+"px"}},qa)),!Ao&&ue&&!D&&Ae.map((qa,Ka)=>(0,fe.jsx)("div",{"data-index":Ka,"data-rtype":"v",onMouseDown:this.handleDown,className:Kt()("vertical",oe&&"is-table-dragging"),style:{left:qa-1+"px"}},qa)),!ie&&!zt&&(0,fe.jsxs)(fe.Fragment,{children:[[it,At].map((qa,Ka)=>(0,fe.jsx)(rp,{values:qa,scale:_o,isHorizontal:Ka===0,widget:z,setHoverIndexAndType:this.setHoverIndexAndType},Ka)),[be,Ae].map((qa,Ka)=>(0,fe.jsx)(Bd,{...Jr,isRow:Ka===0,values:qa,isDragSelect:Ge,handleAddRows:this.handleAddRows,handleAddColumns:this.handleAddColumns},Ka))]}),Ne&&(0,fe.jsx)(ha.A,{target:document,onMouseMove:this.onDrag,onMouseUp:this.handleMouseUp})]})}}function Rc(K){if(K.isDraggingItem||!K.widget||K.onlyView)return null;const{isSpaceDown:D,isCtrlDown:z}=K.keyFlags;return D||z?null:(0,fe.jsx)(x1,{...K})}const Zc=(0,On.Mz)([l.X_,l.Jv,nr.nE,zc.tS,zc.p$,U.jx,zc.sx,l.pO,l.ZS],(K,D,z,X,ie,ue,oe,be,Ae)=>{var Ne;let Be=null;const Ge=ue===y.qi.OnlyView;return((Ne=z[0])==null?void 0:Ne.hotAttr.type)===C.x.WTable&&(Be=z[0]),{scale:K,widget:Be,isResizingItem:D,isEditTable:X,isMouseDownInTable:ie,onlyView:Ge,isTableDragging:oe,isDraggingItem:be,keyFlags:Ae}}),ah=(0,I.Ng)(K=>Zc(K))(Rc);var o0=s(24457),rh=s(29158);const jl=Yt.Ay.div.withConfig({displayName:"styles__StyledFixedSlider",componentId:"sc-1ljh147-0"})(["position:absolute;width:0;.slider{position:absolute;width:3px;top:0;left:-15px;bottom:0;background:transparent;pointer-events:auto;}"]),Ec=25,yd=16,V2=Yt.Ay.div.withConfig({displayName:"styles__StyledArrowSlider",componentId:"sc-1ljh147-1"})(["position:absolute;cursor:grab;margin-left:-15px;width:","px;height:","px;&.hh{margin-top:-7px;}&.fh{margin-bottom:-10px;}&:active{cursor:grabbing;}.slider-arrow{width:22px;height:13px;.main{fill:",";}.fore{fill:#fff;}}.slider-line{position:absolute;top:6px;left:30px;width:320px;border-top:1px dashed ",";z-index:65535;}.slider-number{position:absolute;top:0;left:-25px;font-size:12px;line-height:","px;color:#f54edb;}.slider-vertical-surface{position:absolute;left:30px;background:rgba(255,0,255,0.2);z-index:65535;&.hh{bottom:10px;}&.fh{top:7px;}}"],Ec,yd,K=>K.theme.color_proto,K=>K.theme.color_proto,yd),cr=(K,D,z)=>{const X=[],ie=K.getHotItem(D).hotAttr.h;return K.walkHotItemSubtree2(D,ue=>{if((0,Qo.OO)(ue.key))return rh.NU;const{y:oe,h:be}=K.getRelocateLocalBound(ue.key,D);X.push(z?oe-be/2:ie-(oe-be/2)),X.push(z?oe+be/2:ie-(oe+be/2))}),X};class v1 extends r.PureComponent{constructor(){super(...arguments),(0,Se.A)(this,"handleDown",D=>{D.stopPropagation();const{screenCid:z,attr:X,value:ie,editingRichText:ue,dispatch:oe}=this.props;ue&&oe({type:"quit:rich:text:editing"});const be=D.clientY,Ae=ie,Ne=cr(sdkStore,z,X==="hh");oe({type:"set:numberLineType:show",payload:{type:X}}),oe({type:"reducer:flag:set:is-selection-border-resizer",payload:{isHideSelectionBorder_Resizer:!0}}),oe({type:"entry:update:selection:select:items",payload:{cids:[z]}}),sdkStore.combineMergeMark("drag-fixed-h");const Be=it=>{const{attr:At,screenHeight:zt,scale:qt,onChange:_n}=this.props,$n=(it.clientY-be)/(qt/100);let Fn;At==="hh"?Fn=Ae+$n:Fn=Ae-$n,Fn<0&&(Fn=0),Fn>zt&&(Fn=zt),Ne.forEach(Ao=>{Math.abs(Fn-Ao)<=5&&(Fn=Ao)}),_n(Math.round(Fn))},Ge=()=>{oe({type:"set:numberLineType:show",payload:{type:""}}),oe({type:"reducer:flag:set:is-selection-border-resizer",payload:{isHideSelectionBorder_Resizer:!1}}),document.removeEventListener("mousemove",Be),document.removeEventListener("mouseup",Ge),sdkStore.combineMerge("drag-fixed-h")};document.addEventListener("mousemove",Be),document.addEventListener("mouseup",Ge)})}render(){const{attr:D,value:z,scale:X,screenWidth:ie,showNumberLineType:ue}=this.props,oe=X/100,be=z*oe,Ae=D==="hh"?{top:be}:{bottom:be},Ne=ie,Be=Ne-2>0?Ne-2:0,Ge=be-2>0?be-2:0;return(0,fe.jsxs)(V2,{style:Ae,className:Kt()("slider-wrapper",D),onMouseDown:this.handleDown,children:[(0,fe.jsx)(Wi.C,{className:"slider-arrow",name:"design/slider_arrow"}),ue===D&&(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)("span",{className:"slider-line",style:{width:Ne}}),(0,fe.jsx)("span",{className:Kt()("slider-vertical-surface",D),style:{width:Be+2,height:Ge+1}}),(0,fe.jsx)("span",{className:"slider-number",children:z})]})]})}}const ip=K=>{const D=(0,l.v7)(K),z=(0,l.X_)(K),X=(0,o0.c)(K);return{showNumberLineType:D,scale:z,editingRichText:X}};class z2 extends r.PureComponent{constructor(){super(...arguments),(0,Se.A)(this,"handleHeaderHeight",D=>{const{widget:{key:z,hotAttr:X},dispatch:ie}=this.props,{stickyFooterHeight:ue,h:oe}=X;D+ue>oe-14&&(D=oe-ue-14),ie({type:"entry:widget:change",payload:{flatChgList:[{key:z,hotAttr:{stickyHeaderHeight:D}}]}})}),(0,Se.A)(this,"handleFooterHeight",D=>{const{widget:{key:z,hotAttr:X},dispatch:ie}=this.props,{stickyHeaderHeight:ue,h:oe}=X;D+ue>oe-14&&(D=oe-ue-14),ie({type:"entry:widget:change",payload:{flatChgList:[{key:z,hotAttr:{stickyFooterHeight:D}}]}})})}render(){const{widget:D,scale:z,showNumberLineType:X,editingRichText:ie,dispatch:ue}=this.props,{key:oe,hotAttr:{asOverlay:be,h:Ae,stickyHeaderHeight:Ne,stickyFooterHeight:Be}}=D;if(!(!be&&Ae*z/100>=110))return null;const it=z/100,{x:At,y:zt,r:qt,w:_n,h:$n}=sdkStore.getHotBound(oe),Fn={height:$n*it,transform:"translate("+(At-_n*.5)*it+"px,"+(zt-$n*.5)*it+"px) rotate("+qt+"deg)"},Ao=Ne<=Ae,_o=Ne+Be<=Ae-14;return(0,fe.jsx)(jl,{style:Fn,children:(0,fe.jsxs)("div",{className:"slider",children:[Ao&&(0,fe.jsx)(v1,{attr:"hh",value:Ne,scale:z,screenCid:oe,screenWidth:_n*it,screenHeight:$n,showNumberLineType:X,editingRichText:ie,onChange:this.handleHeaderHeight,dispatch:ue}),_o&&(0,fe.jsx)(v1,{attr:"fh",value:Be,scale:z,screenCid:oe,screenWidth:_n*it,screenHeight:$n,showNumberLineType:X,editingRichText:ie,onChange:this.handleFooterHeight,dispatch:ue})]})})}}const W2=(0,I.Ng)(ip)(z2),Hp=(0,On.Mz)([nr.nE],K=>{if(K.length===1&&K[0].hotAttr.type===C.x.Canvas)return K[0]}),ih=(0,On.Mz)([U.jI,U.bt,Hp],(K,D,z)=>K||D||!z?{isShow:!1}:{isShow:!0,canvas:z}),sp=()=>{const{isShow:K,canvas:D}=(0,I.d4)(z=>ih(z));return K?(0,fe.jsx)(W2,{widget:D}):null},H2=(0,r.memo)(sp),E0=Yt.Ay.div.withConfig({displayName:"styles__StyleCodeTooltip",componentId:"sc-cs11vq-0"})([".behavior{position:absolute;top:50%;left:50%;margin-left:-61px;margin-top:-16px;line-height:32px;height:32px;width:122px;font-size:12px;z-index:101;text-align:center;background-color:rgba(31,41,46,0.64);border-radius:2px;pointer-events:none;&:lang(en){width:220px;margin-left:-110px;}&:lang(ja){width:150px;margin-left:-75px;}p{color:#fff;}}"]);class fc extends r.PureComponent{render(){var D;const{hoverItem:z,scale:X,isShow:ie}=this.props;if(!ie)return null;const ue=sdkStore.getHotItem(z);if(!ue||ue!=null&&(D=ue.hotAttr)!=null&&D.isLock)return null;const{transform:oe,rect:be}=(0,tn.Oj)(z),{a:Ae,b:Ne,c:Be,d:Ge}=oe,{x:it,y:At}=oe.clone().scale(X/100,X/100).apply({x:be.x,y:be.y}),{x:zt,y:qt}=ne.Z.mul(ne.Z.xy(be.w,be.h),X/100),_n={position:"absolute",overflow:"hidden",left:it,top:At,width:zt,height:qt,transform:"matrix("+Ae+","+Ne+","+Be+","+Ge+",0,0)",transformOrigin:"0px 0px"};return(0,fe.jsx)(E0,{style:_n,children:(0,fe.jsx)("div",{className:"behavior",children:(0,fe.jsx)("p",{children:"\u53CC\u51FB\u7F16\u8F91 AI \u7EC4\u4EF6"})})})}}const Od=(0,On.Mz)([U.IL,l.X_,l.pO,ud.Bq,ud.ul,nr.nE],(K,D,z,X,ie)=>{if(!K||z)return{isShow:!1};const ue=sdkStore.getHotItem(K);return(ue==null?void 0:ue.hotAttr.type)!==C.x.WCode||K===X||K===ie?{isShow:!1}:{isShow:!0,hoverItem:K,scale:D}}),sh=(0,I.Ng)(K=>Od(K))(fc);var lh=s(7018);const Gp=["\u901A\u8FC7\u591A\u6B65\u8C03\u6574\u6765\u4E0D\u65AD\u5B8C\u5584\u7EC4\u4EF6","\u660E\u786E\u5177\u4F53\u7684\u63D0\u793A\u8BCD\u6548\u679C\u66F4\u4F73","\u9009\u4E2D\u7EC4\u4EF6\u5185\u5143\u7D20\u6765\u5B9E\u73B0\u7CBE\u786E\u8C03\u6574","\u751F\u6210\u5185\u5BB9\u53EF\u80FD\u5177\u6709\u8BEF\u5BFC\u6027\u6216\u9519\u8BEF","Al\u751F\u6210\u7ED3\u679C\u5177\u6709\u968F\u673A\u6027\uFF0C\u53EF\u591A\u6B21\u5C1D\u8BD5"],ch=K=>{var D;return K==null||(D=K.screencontainer)==null?void 0:D.dragEventState},dh=K=>{var D;return K==null||(D=K.screencontainer)==null?void 0:D.resizeEventState},ph=(K,D)=>{const z=(0,I.d4)(ch),X=(0,I.d4)(dh),ie=(0,r.useRef)({}),ue=()=>{if(!K||!sdkStore.getHotItem(K)||sdkStore.isTrashed(K))return{};const{transform:oe,rect:be}=(0,tn.Oj)(K),{a:Ae,b:Ne,c:Be,d:Ge}=oe,{x:it,y:At}=oe.clone().scale(D,D).apply({x:be.x,y:be.y}),{x:zt,y:qt}=ne.Z.mul(ne.Z.xy(be.w,be.h),D);return{position:"absolute",overflow:"hidden",left:it,top:At,width:zt,height:qt,transform:"matrix("+Ae+","+Ne+","+Be+","+Ge+",0,0)",transformOrigin:"0px 0px"}};return ie.current=ue(),(0,r.useEffect)(()=>{var oe,be;(z!=null&&z.isActive&&z!=null&&(oe=z.preDragSnapshot)!=null&&oe[K]||X!=null&&X.isActive&&X!=null&&(be=X.preResizeSnapshot)!=null&&be[K])&&(ie.current=ue())},[z,K]),ie.current},yl=K=>{const D=Gp.length,[z,X]=(0,r.useState)(Math.floor(Math.random()*D));return(0,r.useEffect)(()=>{if(!K)return;const ie=setInterval(()=>{X((z+1)%D)},8e3);return()=>clearInterval(ie)},[z,K,D]),Gp[z]},Ic=()=>{const K=(0,I.d4)(ud.ul),D=K&&sdkStore.getHotItem(K);return{isShowLoading:(0,r.useMemo)(()=>K&&D&&!sdkStore.isTrashed(K),[K,D])}},uh=()=>{const K=(0,I.d4)(ud.ul),D=(0,I.d4)(l.X_),z=K&&sdkStore.getHotItem(K),X=D/100,{w:ie,h:ue,injection:oe}=(z==null?void 0:z.hotAttr)||{},be=(0,lh.f)(oe),Ae=(0,r.useMemo)(()=>{const{x:Ge,y:it}=ne.Z.mul(ne.Z.xy(ie,ue),X);return z&&Number(Ge)>240&&Number(it)>180&&!be.includes("<body")},[ie,ue,X,z,be]),Ne=yl(Ae),Be=ph(K,D/100);return{isShowTips:Ae,text:Ne,style:Be}},em=Yt.Ay.div.withConfig({displayName:"style__StyledCodeLoadingTip",componentId:"sc-1hj0d6h-0"})(["position:absolute;height:100%;width:100%;left:0;top:0;.loading-container{width:50%;height:50%;max-width:66px;max-height:66px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);}.loading-icon{width:100%;height:100%;display:flex;justify-content:center;align-items:center;animation:loading 1s infinite;@keyframes loading{0%{transform:rotate(0deg);}100%{transform:rotate(360deg);}}}.progress{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);color:rgba(22,132,252,1);font-size:16px;}.tips-container{position:absolute;bottom:10px;left:0;right:0;margin:auto;width:max-content;color:rgba(0,0,0,0.9);background-color:#F1F8FF;border:1px solid rgba(214,232,255,1);padding:6px 8px;border-radius:6px;display:flex;align-items:center;.tips-icon{width:20px;height:20px;margin-right:6px;}}"]),tm=()=>{const{isShowLoading:K}=Ic();return K?(0,fe.jsx)(hh,{}):null},hh=()=>{const{isShowTips:K,text:D,style:z}=uh();return(0,fe.jsxs)(em,{style:z,children:[(0,fe.jsx)("div",{className:"loading-container",children:(0,fe.jsx)(Wi.C,{className:"loading-icon",name:"chatGPT/ai-component/generate-loading",isColorPure:!0})}),K&&(0,fe.jsxs)("div",{className:"tips-container",children:[(0,fe.jsx)(Wi.C,{className:"tips-icon",name:"chatGPT/ai-component/generate-tips",isColorPure:!0}),(0,fe.jsx)("span",{children:D})]})]})},G2=K=>{let{type:D}=K;if(!D)return null;switch(D){case C.x.WSwimlane:return(0,fe.jsx)(Rd,{});case C.x.WFlowOpened:case C.x.wFlowClosed:return(0,fe.jsx)($d,{});case C.x.WTable:return(0,fe.jsx)(ah,{});case C.x.Canvas:return(0,fe.jsx)(H2,{});default:return null}},L=K=>{let{type:D,isElbowMode:z}=K;return D?(0,fe.jsxs)(fe.Fragment,{children:[D===C.x.WBasket&&(0,fe.jsx)(Vp,{}),D===C.x.WCode&&(0,fe.jsx)(sh,{}),z&&(0,fe.jsx)(A0.uw,{})]}):null},P=(0,On.Mz)([U.IL,$c.P2,nr.p$,U.lY,hd.Q1,hd.rP,U.pq],(K,D,z,X,ie,ue,oe)=>{var be,Ae;const Ne=K&&((be=sdkStore.getHotItem(K))==null||(be=be.hotAttr)==null?void 0:be.type),Be=(z==null?void 0:z.length)===1&&z[0],Ge=Be&&((Ae=sdkStore.getHotItem(Be))==null||(Ae=Ae.hotAttr)==null?void 0:Ae.type);return{isEditingImageWrapperCid:D,singleSelectItemType:Ge,hoverItemType:Ne,enableVectorEditor:!!X,isElbowMode:ie||ue,isPencilMode:!!oe}}),u=(0,r.memo)(()=>{const{isEditingImageWrapperCid:K,singleSelectItemType:D,hoverItemType:z,enableVectorEditor:X,isElbowMode:ie,isPencilMode:ue}=(0,I.d4)(P);return(0,fe.jsxs)(fe.Fragment,{children:[K&&(0,fe.jsx)(P2,{}),X&&(0,fe.jsx)(m1,{}),ue&&(0,fe.jsx)(f1,{}),(0,fe.jsx)(G2,{type:D}),(0,fe.jsx)(L,{type:z,isElbowMode:ie}),(0,fe.jsx)(tm,{})]})});var f=s(78401),g=s(32286),S=s(89054),_=s(28068),O=s(4820),V=s(39679),H=s(70169),Y=s(46745),re=s(86493),pe=s(55584),Ce=s(46199);const Pe=Yt.Ay.div.withConfig({displayName:"styles__StyledTextEditor",componentId:"sc-1qetlj9-0"})(["&.editor{display:flex;position:absolute;top:0;left:0;min-width:12px;min-height:12px;z-index:16;outline:none;overflow:hidden;background-color:lightblue;border-color:transparent;user-select:text;pointer-events:auto;}*{user-select:text;}.text{width:100%;white-space:pre-wrap;word-break:break-word;word-wrap:break-word;p{padding:0;margin-bottom:5px;white-space:pre-wrap;&:last-child{margin-bottom:0;}}}&.wMTextarea{p{margin-bottom:0;}}&.wMTooltip .text{position:static;padding:0 !important;}&.wElbow{border:1px solid #1684fc;border-radius:4px;}&.hleft{justify-content:flex-start;}&.hcenter{justify-content:center;}&.hright{justify-content:flex-end;}&.vtop{align-items:flex-start;}&.vmiddle{align-items:center;}&.vertical-lr{writing-mode:vertical-lr;}&.horizontal-tb{writing-mode:horizontal-tb;}&.vbottom{align-items:flex-end;}"]);function Ie(K){let{widget:D}=K;if((0,Ce.kY)(D)||D.type===C.x.WElbow){const{placeholderStyle:z,placeholderHTML:X}=(0,Ce.s3)(D);return(0,fe.jsx)(Pe,{style:{...z},dangerouslySetInnerHTML:{__html:X}})}else return null}class Re extends r.Component{constructor(D){super(D),(0,Se.A)(this,"setElementRef",X=>this.$elem=X),(0,Se.A)(this,"handleMouseDown",X=>{const{dispatch:ie}=this.props;X.button===2&&(X.preventDefault(),ie({type:"open:contextmenu",payload:{position:{top:X.clientY,left:X.clientX}}})),X.stopPropagation()}),(0,Se.A)(this,"handleKeyDown",X=>{const{dispatch:ie,item:ue}=this.props,oe=X.key===ts._.Escape,be=X.key===ts._.Enter,Ae=X.metaKey||X.ctrlKey;(oe||Ae&&be)&&((0,S.ay)(ue,"remove"),ie({type:"set:editing:cid",payload:{cid:""}}),ie(y.GO.update({textEditor:{selectionAttrs:{},defaultAttrs:{}}})))}),(0,Se.A)(this,"handleSave",()=>{const{dispatch:X,item:ie,item:{key:ue,hotAttr:oe}}=this.props,be=this.getEditorContent(),Ae=(0,C0.m5)(oe),Ne=Ae&&be!==(0,C0.U_)(Ae),Be=(0,H.oB)(ie,be.split("\n"),Ne?void 0:Ae).hotAttr;X({type:"entry:widget:change",payload:{flatChgList:[{key:ue,hotAttr:Be}]}})}),(0,Se.A)(this,"handleInput",()=>{const{item:{hotAttr:X}}=this.props,{needPlaceholder:ie}=this.state,ue=this.getEditorContent();this.prevText!==ue&&(this.prevText=ue,((0,Ce.kY)(X)||X.type===C.x.WElbow)&&(ue!==""&&ie?this.setState({needPlaceholder:!1}):ue===""&&!ie&&this.setState({needPlaceholder:!0})))}),(0,Se.A)(this,"handleCopy",X=>{var ie;const{item:{hotAttr:ue}}=this.props,{textV0:oe={}}=ue,be=((ie=window.getSelection())==null?void 0:ie.toString())||"",Ae=(0,V.lN)(be),Ne=(0,Y.n)((0,re.mx)(Ae)),Be=_.$t.forceSelection(Ne,new _.wc({anchorKey:"#000000",anchorOffset:0,focusKey:"#000000",focusOffset:be.length,isBackward:!1,hasFocus:!1})),Ge=oe.textDecoration==="normal"?{}:oe.textDecoration==="underline"?{underline:!0}:oe.textDecoration==="line-through"?{strikethrough:!0}:{},it={...(0,O.$$)(),textColor:(0,Bp.t0)(oe.textColor),bold:oe.bold,italic:oe.italic,fontSize:oe.fontSize,lineHeight:oe.lineHeight,...Ge},At=(0,pe.vd)({editorState:Be,richTextV1:it});X.preventDefault(),X.clipboardData.setData("text/html",At),X.clipboardData.setData("text/plain",be)});const{item:{hotAttr:z}}=D;this.state={needPlaceholder:z.type===C.x.WElbow?z.textV0.text==="":(0,Ce.kY)(z)?(0,u1.vr)(z).needShowPlaceholder:!1}}componentDidMount(){MB.f.editing=!0,this.prevText=null;const{item:{hotAttr:D}}=this.props;(0,Ce.kY)(D)?setTimeout(()=>{this.focusLast()}):setTimeout(()=>{this.selectAll()})}componentDidUpdate(){We(this.$elem)}componentWillUnmount(){MB.f.editing=!1,this.handleSave()}focusLast(){const D=this.$elem;if(D&&(D.focus(),D.childNodes.length>0)){const z=document.createRange();z.selectNodeContents(D),z.collapse(!1);const X=window.getSelection();X==null||X.removeAllRanges(),X==null||X.addRange(z)}}selectAll(){const D=this.$elem;if(D&&(D.focus(),D.childNodes.length>0)){const z=document.createRange(),X=window.getSelection();z.setStartBefore(D.childNodes[0]),z.setEndAfter(D.childNodes[D.childNodes.length-1]),X==null||X.removeAllRanges(),X==null||X.addRange(z)}}getEditorContent(){const{item:{hotAttr:D}}=this.props,z=this.$elem;if(Ce.XQ.includes(D.type)){const X=z.querySelector(".text");return X?X.innerHTML:z.innerHTML}else if([C.x.WMSelect,C.x.WMTextArea,C.x.WElbow].includes(D.type)){const X=this.$elem.querySelectorAll("p"),ie=z.innerText;return ie.trim()===""?"":Array.from(X).length===0&&ie?ie:Array.from(X).map(oe=>oe.innerText==="\n"?"":oe.innerText).join("\n")}else return z.textContent}render(){const{item:D}=this.props,{hotAttr:z}=D,{needPlaceholder:X}=this.state,ie=(0,Ce.NX)(z,X),ue=(0,Ce.sV)(z),{horizontalAlign:oe,verticalAlign:be}=z.textV0||{},Ae=Kt()("editor",z.type,{["h"+oe]:oe,["v"+be]:be});return(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)(Pe,{contentEditable:!0,id:"text_editor",style:ie,className:Ae,ref:this.setElementRef,dangerouslySetInnerHTML:{__html:ue},onInput:this.handleInput,onMouseDown:this.handleMouseDown,onKeyDown:this.handleKeyDown,onCopy:this.handleCopy}),X&&(0,fe.jsx)(Ie,{widget:z})]})}}const We=K=>{const D=document.createTextNode("");K.appendChild(D);const z=document.activeElement===K;if(!D||!D.nodeValue||!z)return;const X=window.getSelection();if(X!==null){const ie=document.createRange();ie.setStart(D,D.nodeValue.length),ie.collapse(!0),X.removeAllRanges(),X.addRange(ie)}K instanceof HTMLElement&&K.focus()};class ct extends r.PureComponent{constructor(){super(...arguments),(0,Se.A)(this,"handleKeyDown",D=>{const{dispatch:z}=this.props,X=D.metaKey||D.ctrlKey,ie=D.shiftKey,ue=window.getSelection().toString();if(ue&&ue!=="")switch(D.keyCode){case ts.Ju.B:X&&(D.preventDefault(),z({type:"entry:set:text:attr:by:key",payload:{isInEditing:!0,attr:"bold"}}),(0,g.L)("command+b \u9009\u4E2D\u90E8\u5206"));break;case ts.Ju.I:X&&(D.preventDefault(),z({type:"entry:set:text:attr:by:key",payload:{isInEditing:!0,attr:"italic"}}),(0,g.L)("command+i \u9009\u4E2D\u90E8\u5206"));break;case ts.Ju.U:X&&(D.preventDefault(),z({type:"entry:set:text:attr:by:key",payload:{isInEditing:!0,attr:"underline"}}),(0,g.L)("command+u \u9009\u4E2D\u90E8\u5206"));break;case ts.Ju.S:X&&ie&&(D.preventDefault(),z({type:"entry:set:text:attr:by:key",payload:{isInEditing:!0,attr:"lineThrough"}}),(0,g.L)("command+shift+s \u9009\u4E2D\u90E8\u5206"));break}}),(0,Se.A)(this,"handleDocDown",D=>{if(D.target.closest("#text_editor"))return;if(D.target.closest("#text-settings")||D.target.closest("#text-settings-font-menu")||D.target.closest(".DropdownMenuBase")||D.target.closest('[type="color-panel"]')||D.target.closest(".--mb--color-picker")||D.target.closest(".draft-inline-toolbar")||D.target.closest(".quick-menu-option .content")||D.target.closest("#ai-semantic-modal")||D.target.closest("#textediting-menu")){D.preventDefault();return}const{dispatch:z,item:X}=this.props;(0,S.ay)(X,"remove"),z({type:"set:editing:cid",payload:{cid:""}}),z({type:"elbow:update",payload:{activeElbowKey:""}}),z(y.GO.update({textEditor:{selectionAttrs:{},defaultAttrs:{}}})),z({type:"colorpanel:set:attr",payload:{attr:void 0}}),z({type:"colorpanel:set:attrPanel",payload:{attrPanel:void 0}})}),(0,Se.A)(this,"handleSelectionChange",()=>{const D=(0,f.Ay)();this.props.dispatch(y.GO.update({textEditor:{selectionAttrs:D}}))})}render(){const{item:D,dispatch:z}=this.props,X={position:"absolute",...(0,Bs.zG)(D)};return(0,fe.jsxs)("div",{className:"editor-wrapper",style:X,children:[(0,fe.jsx)(Re,{item:D,dispatch:z}),(0,fe.jsx)(ha.A,{target:document,onMouseDown:(0,ha.t)(this.handleDocDown,{capture:!0}),onSelectionChange:this.handleSelectionChange,onKeyDown:this.handleKeyDown})]})}}const vt=(0,On.Mz)([Ee.c],K=>K&&(0,Ve.yD)(K.hotAttr.type)?K:null),pn=()=>{const K=(0,I.d4)(vt),D=(0,I.wA)();return K?(0,fe.jsx)(ct,{item:K,dispatch:D}):null},fn=Yt.Ay.div.withConfig({displayName:"style__StyledRichEditor",componentId:"sc-1wppsg6-0"})(["&.draft-rich-text-editor-wrapper{display:flex;position:absolute;top:0;left:0;min-width:1px;min-height:12px;z-index:16;overflow:visible;cursor:text;pointer-events:auto;&.wLine,&.wArrow{.draft-basic-text-editor-wrapper{word-break:keep-all;}}&.wFlowClosed,&.wFlowOpened{top:50%;left:50%;transform:translate(-50%,-50%);}.editor{outline:none;border-color:transparent;user-select:text;}}*{user-select:text;}&.auto{width:max-content;}&.left{text-align:left;}&.center{text-align:center;justify-content:center;}&.right{text-align:right;justify-content:flex-end;}&.justify{text-align:justify;}&.top{align-items:flex-start;}&.middle{align-items:center;}&.bottom{align-items:flex-end;}a{color:",";}&.isShallowEditText{pointer-events:none;}"],K=>K.style.color);var uo=s(45709),Mn=s(39182);const Gt=K=>{let D,z,X,ie,ue,oe,be,Ae,Ne,Be,Ge,it,At="hidden";if(Ve.VV.includes(K.type)){const{richTextV1:{fontSize:qt,textColor:_n,lineHeight:$n,paddingTuple:Fn,letterSpacing:Ao,fontFamily:_o,fontWeight:zo,italic:aa,bold:oa,verticalAlign:ma,horizontalAlign:Ea,fontDirection:er}}=K;be=qt,Be=_n,Ae=$n,Ge=(0,b0.N3)(Fn),z=Ea,X=ma,Ne=Ao,ie=_o,ue=zo,D=er,oe=aa?"italic":"normal",it=oa}if([C.x.WRichText,C.x.WMindNode,C.x.WLine,C.x.WArrow,C.x.WPlaceholder,C.x.WElbow].includes(K.type)){const{richTextV1:{fontFamily:qt,fontDirection:_n,fontWeight:$n}}=K;ie=qt,ue=$n,At="visible"}C.Q.USE_CLIP_TEXT.includes(K.type)&&!K.richTextV1.isClipText&&(At="visible"),K.type===C.x.WRect&&K.richTextV1.isClipText===void 0&&(At="hidden");const zt=(0,uo._y)(ue,it);return{fontFamily:ie,fontWeight:zt,fontStyle:oe,fontSize:be+"px",lineHeight:Ae+"px",letterSpacing:Ne+"px",color:Be,writingMode:D,justifyContent:X,alignItems:(0,Mn.xC)(z),padding:Ge,flexDirection:"column",overflow:At}};var yo=s(86433),Do=s(84877),Wo=s(28064),Ro=s(66360);const ra=Yt.Ay.div.withConfig({displayName:"styles__StyledDraftBasicTextEditorDiv",componentId:"sc-1qxigk0-0"})(["position:relative;::-webkit-scrollbar-thumb{background-color:rgba(51,51,51,.2);}"," &.horizontal:not(.wLine):not(.wArrow):not(.auto){width:100%;}&.vertical:not(.wLine):not(.wArrow){height:100%;}&.auto{.draft-basic-text-editor-wrapper{width:max-content;}}&.","{.draft-basic-text-editor{.draft-link-decorator-a.","{background-color:#BAD7FB !important;}}}.draft-basic-text-editor-wrapper{width:100%;height:100%;word-break:break-word;white-space:break-spaces;.draft-basic-text-editor{width:100%;.DraftEditor-editorContainer{height:initial;border:none;> div > div{ul,ol{> li{",":","px;}}> div{",":",'px;}}}[data-contents="true"] > :last-child{margin:0!important;}span::selection{background-color:'," !important;}span::-webkit-selection{background-color:"," !important;}span::-moz-selection{background-color:"," !important;}.public-DraftEditorPlaceholder-inner{color:","}.public-DraftEditor-content{line-height:",";text-align:",";&[contenteditable=false]{user-select:none!important;}}.public-DraftStyleDefault-block{margin:0;text-align:",";min-width:1px;min-height:1px;display:",";& > span,& > a,& > div{text-decoration:",";}}.rdw-left-aligned-block{.public-DraftStyleDefault-block{text-align:left;}}.rdw-center-aligned-block{.public-DraftStyleDefault-block{text-align:center;}}.rdw-right-aligned-block{.public-DraftStyleDefault-block{text-align:right;}}.rdw-justify-aligned-block{.public-DraftStyleDefault-block{text-align:justify;}}.rdw-indent-0{margin-left:0;}.rdw-indent-2{margin-left:2rem;}.rdw-indent-4{margin-left:4rem;}.rdw-indent-6{margin-left:6rem;}}}&:not(.wRichText) .draft-basic-text-editor-wrapper .draft-basic-text-editor .public-DraftEditor-content{h1{font-size:26px;span{font-size:26px !important;}}h2{font-size:22px;span{font-size:22px !important;}}h3{font-size:18px;span{font-size:18px !important;}}}"],K=>K.psList.map(D=>"\n .rdw-paraspacing-"+(D+"").replace(".","-")+"{ \n "+(K.fontDirection==="vertical-lr"&&K.psVersion===3?"margin-right":"margin-bottom")+": "+D+"px !important; \n }\n\n .rdw-paraspacing-"+(D+"").replace(".","-")+":last-child {\n "+(K.fontDirection==="vertical-lr"&&K.psVersion===3?"margin-right":"margin-bottom")+": 0 !important;\n }\n "),K=>"active-"+K.activeKey,K=>"active-"+K.activeKey,K=>K.psVersion!==3?void 0:K.fontDirection==="vertical-lr"?"margin-right":"margin-bottom",K=>K.paraSpacing,K=>K.fontDirection==="vertical-lr"&&K.psVersion===3?"margin-right":"margin-bottom",K=>K.paraSpacing,K=>K.isShallowEditText?"transparent":K.theme.color_textarea,K=>K.isShallowEditText?"transparent":K.theme.color_textarea,K=>K.isShallowEditText?"transparent":K.theme.color_textarea,K=>K.placeHolderColor||"#101010",K=>K.lineHeight+"px",K=>K.horizontalAlign,K=>K.horizontalAlign,K=>K.isWRichText?"inline-block":"block",K=>K.textDecoration);var ka=s(51648),pa=s(45469);const Ma=Yt.Ay.a.withConfig({displayName:"styles__StyledDraftLinkA",componentId:"sc-953nd7-0"})(["position:relative;display:inline-block;color:#333333;cursor:inherit;span{text-decoration:"," !important;}"],K=>K.liVersion===3||K.isNeedMigrateLinkItalic?"":"underline");function Ya(K,D,z){K.findEntityRanges(X=>{const ie=X.getEntity();return ie!==null&&z.getEntity(ie).getType()==="LINK"},D)}class di extends r.PureComponent{constructor(){super(...arguments),(0,Se.A)(this,"onMouseEnter",D=>{if(this.isFree)return;const{contentState:z,entityKey:X,blockKey:ie,decoratedText:ue,start:oe,end:be,callback:Ae}=this.props,{url:Ne}=z.getEntity(X).getData();if(!Ae)return;const Be=D.currentTarget.getBoundingClientRect();if(!Be)return;const{top:Ge,bottom:it,left:At,width:zt}=Be,qt={top:it,left:At+zt/2-24};Ae&&Ae({entityKey:X,style:qt,decoratedText:ue,url:Ne,blockKey:ie,start:oe,end:be})}),(0,Se.A)(this,"openLink",D=>(D.preventDefault(),!1)),(0,Se.A)(this,"isFree",(0,xi._S)())}render(){const{contentState:D,entityKey:z,children:X,version:ie,isNeedMigrateLinkItalic:ue}=this.props,{url:oe,targetOption:be}=D.getEntity(z).getData();return(0,fe.jsx)(Ma,{className:"draft-link-decorator-a active-"+z,href:this.isFree?"":(0,pa.H)(oe),target:be,onClick:this.openLink,onMouseEnter:this.onMouseEnter,liVersion:ie,isNeedMigrateLinkItalic:ue,children:X})}}var ja=s(788);const ri=(K,D,z)=>X=>{const ie=X.getData();let ue="";if(ie){const oe=ie.get("textIndent");if(Object.keys(ja.En).map(Ae=>parseInt(Ae,10)).filter(Ae=>Ae!==0).includes(oe)&&(ue+="rdw-indent-"+oe+" "),K){const Ae=ie.get("textAlign");if(Ae)return ue+("rdw-"+Ae+"-aligned-block")}else return ue+("rdw-"+D+"-aligned-block");const be=ie.get("paraSpacing");return be!==void 0?ue+("rdw-paraspacing-"+(be+"").replace(".","-")):ue}return ue};var ks=s(69815),ti=s(44916),vi=s(56202);const Hr=(0,vi.cX)(),Yr={isCtrlKeyCommand:K=>!!K.ctrlKey&&!K.altKey,hasCommandModifier:K=>Hr?!!K.metaKey&&!K.altKey:Yr.isCtrlKeyCommand(K)},br=Hr,zi=Yr.hasCommandModifier,mr=Yr.isCtrlKeyCommand;function pi(K){return Hr&&K.altKey||mr(K)}function ui(K){return zi(K)?K.shiftKey?"redo":"undo":null}function tl(K){return!Hr&&K.shiftKey?null:pi(K)?"delete-word":"delete"}function Yi(K){return zi(K)&&Hr?"backspace-to-start-of-line":pi(K)?"backspace-word":"backspace"}const us=K=>{switch(K.keyCode){case 66:return zi(K)?"bold":null;case 68:return mr(K)?"delete":null;case 72:return mr(K)?"backspace":null;case 73:return zi(K)?"italic":null;case 74:return zi(K)?"code":null;case 75:return Hr&&mr(K)?"secondary-cut":null;case 77:return mr(K)?"split-block":null;case 79:return mr(K)?"split-block":null;case 84:return Hr&&mr(K)?"transpose-characters":null;case 85:return zi(K)?"underline":null;case 87:return Hr&&mr(K)?"backspace-word":null;case 90:return ui(K)||null;case 13:return"split-block";case 46:return tl(K);case 8:return Yi(K);case 37:return br&&zi(K)?"move-selection-to-start-of-block":null;case 39:return br&&zi(K)?"move-selection-to-end-of-block":null;default:return null}};var pl=s(34697),Va=s(10549);const Xi=K=>{let{editorState:D}=K;if(!D.getSelection().isCollapsed())return;const z=(0,ja.d8)(D);if((0,Va.oY)(z.type))return;const X=z.text,ie=oe=>{let{value:be}=oe;const{_setEditorState:Ae}=(0,ks.DT)();if(!Ae)return;const Ne=be==="ordered"?2:1;let Be=(0,Ro.ZQ)(D,0,Ne);Be=(0,ja.ws)(Be,be),Ae(Be)},ue=D.getSelection();if(ue.isCollapsed()){const oe=ue.getFocusOffset();return oe===2&&(X.startsWith("1.")||X.startsWith("1)"))?(ie({value:"ordered"}),"skip"):oe===1&&X.startsWith("-")?(ie({value:"unordered"}),"skip"):void 0}},hs={"header-one":{deleteLength:1,fontSize:26},"header-two":{deleteLength:2,fontSize:22},"header-three":{deleteLength:3,fontSize:18},default:{deleteLength:0,fontSize:14}},Xs=K=>{let{editorState:D}=K;if(!D.getSelection().isCollapsed())return;const z=(0,ja.d8)(D);if((0,Va.wH)(z.type))return;const X=z.text,ie=oe=>{let{value:be}=oe;const{_setEditorState:Ae}=(0,ks.DT)();if(!Ae)return;const Ne=hs[be]||hs.default;let Be=(0,Ro.ZQ)(D,0,Ne.deleteLength);Be=(0,ja.et)(Be,be),(0,ks.l2)(Be,"fontSize",Ne.fontSize)},ue=D.getSelection();if(ue.isCollapsed()){const oe=ue.getFocusOffset();return oe===1&&X.startsWith("#")?(ie({value:"header-one"}),"skip"):oe===2&&X.startsWith("##")?(ie({value:"header-two"}),"skip"):oe===3&&X.startsWith("###")?(ie({value:"header-three"}),"skip"):void 0}};var Ti=s(83744);const ms=["backspace","backspace-word","backspace-to-start-of-line","delete","delete-word","delete-to-end-of-block"],Fl=(K,D)=>{if((0,Ro.$B)(K)){const z=(0,_.dM)(K.getCurrentContent()),X=(0,re.qn)(z);(0,Ti.Xq)([(0,tn.Op)(D.key,{textV1:X})])}},b1=K=>{var D,z,X,ie,ue,oe,be;if(!(K!=null&&(D=K.refStyles)!=null&&D.text))return;const Ae=sdkStore.getHotItem(K==null||(z=K.refStyles)==null?void 0:z.text),Ne=Ae?{color:{...(X=K==null||(ie=K.refStyles)==null?void 0:ie.color)!=null?X:{},...(ue=Ae==null||(oe=Ae.hotAttr)==null||(oe=oe.refStyles)==null?void 0:oe.color)!=null?ue:{}},appear:K==null||(be=K.refStyles)==null?void 0:be.appear,text:""}:{...K==null?void 0:K.refStyles};MB.action("entry:widget:change",{flatChgList:[{key:K.key,hotAttr:{refStyles:Ne}}]}),MB.action("settings:update:currentTextRefStyle",null)};function lp(){const K=(0,Ro.SZ)();let D,z;return{store:K,onChange:X=>{const ie=X.getCurrentContent();if(!ie.equals(z))return z=ie,X;z=ie;const ue=X.getSelection();if(D&&ue.equals(D))return D=X.getSelection(),X;const oe=K.getAll();return D&&(0,Ro.AA)(ie,D.getStartKey(),D.getEndKey()).some(Ne=>oe.includes(Ne))||(0,Ro.AA)(ie,ue.getStartKey(),ue.getEndKey()).some(Ae=>oe.includes(Ae))?(D=ue,(0,Ro.Qg)(X)):X},handleReturn:(X,ie,ue)=>{const oe=X.setEditorState;if((0,Ro.pU)(ue,K))return oe((0,Ro.p2)(ue)),"handled";const be=(0,ja.d8)(ue),Ae=be.getType(),Ne=ue.getSelection(),Be=be.getText(),Ge=Ne.getStartOffset(),it=Be.slice(Ge);if((0,Va.wH)(Ae))if(it.length>0){const zt=(0,Ro.h_)(ue,ie);if(zt)return oe(zt),"handled"}else{const zt=(0,Ro.h_)(ue,ie),qt=(0,ja.ex)(zt,"unstyled"),_n=(0,ja.xE)(qt,14);if(_n)return oe(_n),"handled"}const At=(0,Ro.h_)(ue,ie);return At?(oe(At),"handled"):"not-handled"},handleKeyCommand:(X,ie,ue,oe)=>{const be=X.setEditorState,Ae=X.getWidget(),{type:Ne}=Ae;if(["bold","italic","underline","strikethrough"].includes(ie)){let Be;if(ie==="bold"?[C.x.WTear,C.x.WSticky].includes(Ne)?(Be=(0,ja.q0)(ue),Be=_.U7.handleKeyCommand(Be,"bold")):(Be=_.U7.removeInlineStyle(ue,"bold"),Be=(0,ja.IP)(ue,700)):Be=_.U7.handleKeyCommand(ue,ie),Be)return be(Be),Fl(Be,Ae),b1(Ae),"handled"}if(ms.includes(ie)&&(0,Ro.pU)(ue,K)){const Be=ue.getSelection().getStartKey(),Ge=(0,Ro.wC)(ue,Be);if(Ge!==ue)return be(Ge),"handled"}if(ie==="backspace"&&ue){const Be=(0,yo.$w)(ue);if(Be){const Ge=Be.getText(),it=Be.get("type"),At=(0,yo.BU)(ue).get("textIndent"),qt=ue.getSelection().getEndOffset();if(qt===0){const $n=ue.getSelection().getAnchorKey(),Fn=ue.getCurrentContent().getBlockBefore($n),Ao=Fn==null?void 0:Fn.getType();if(["unordered-list-item","ordered-list-item"].includes(it)){const _o=(0,ja.ex)(ue,"unstyled");return _o&&be(_o),"handled"}if((0,Va.wH)(it)&&!Ge){const _o=(0,ja.ex)(ue,"unstyled"),zo=(0,ja.xE)(_o,14);return zo&&be(zo),"handled"}if(Fn){if(Fn.getText())return"not-handled";if((0,Va.wH)(Ao)&&!Fn.getText()){const _o=Ao==="header-one"?26:Ao==="header-two"?22:Ao==="header-three"?18:14,zo=(0,ja.ex)(ue,"unstyled"),aa=(0,ja.xE)(zo,_o);return(0,Ro.D8)(()=>aa,be,Fn),"handled"}}}if(qt===1&&(0,Va.wH)(it)){const _n=it==="header-one"?26:it==="header-two"?22:it==="header-three"?18:14,$n=(0,Ro.ZQ)(ue,0,1),Fn=(0,ja.xE)($n,_n);return be(Fn),"handled"}if(!Ge&&At===2){const _n=(0,ja.fM)(ue,"outdent",2);return _n&&be(_n),"handled"}}}return"not-handled"},keyBindingFn:(X,ie)=>{const ue=X.getEditorState,oe=X.setEditorState,be=ue(),Ae=X.getWidget();if(!(Zp({evt:ie,editorState:be,setEditorState:oe,widget:Ae})==="SKIP"||nm({evt:ie,editorState:be,setEditorState:oe,editorType:"common"})==="SKIP"||I0({blockKeyStore:K,editorState:be,evt:ie,getEditorState:ue,setEditorState:oe})==="SKIP")){if(w1({blockKeyStore:K,editorState:be,evt:ie,getEditorState:ue,setEditorState:oe}),ie.keyCode===32){const it=Xi({editorState:be}),At=Xs({editorState:be});return it==="skip"||At==="skip"?"apply":void 0}return us(ie)}},keyBindingFn2:(X,ie)=>{const ue=X.getEditorState,oe=X.setEditorState,be=ue(),Ae=X.getWidget(),Ne=X.isShallowEditText;if(!(C1({evt:ie,editorState:be,setEditorState:oe,widget:Ae,isShallowEditText:Ne})==="SKIP"||Zp({evt:ie,editorState:be,setEditorState:oe,widget:Ae})==="SKIP"||nm({evt:ie,editorState:be,setEditorState:oe,editorType:"basic"})==="SKIP"||I0({blockKeyStore:K,editorState:be,evt:ie,getEditorState:ue,setEditorState:oe})==="SKIP"))return w1({blockKeyStore:K,editorState:be,evt:ie,getEditorState:ue,setEditorState:oe}),ie.keyCode===32&&Ae.type===C.x.WRichText?Xi({editorState:be})==="skip"?"apply":void 0:us(ie)}}}const w1=K=>{let{editorState:D,getEditorState:z,setEditorState:X,blockKeyStore:ie,evt:ue}=K;if(ue.keyCode===37){const oe=D.getSelection(),be=oe.getAnchorKey(),Ae=D.getCurrentContent().getBlockBefore(be);Ae&&oe.getAnchorOffset()===0&&ie.includes(Ae.getKey())&&(0,Ro.td)(z,X,"up",ue)}if(ue.keyCode===39){const oe=D.getSelection(),be=oe.getFocusKey(),Ae=D.getCurrentContent().getBlockForKey(be),Ne=D.getCurrentContent().getBlockAfter(be),Be=Ae.getType()!=="atomic"&&Ae.getLength()===oe.getFocusOffset();Ne&&Be&&ie.includes(Ne.getKey())&&(0,Ro.td)(z,X,"down",ue)}if(ue.keyCode===38){const oe=D.getSelection().getAnchorKey(),be=D.getCurrentContent().getBlockBefore(oe);be&&ie.includes(be.getKey())&&(0,Ro.td)(z,X,"up",ue)}if(ue.keyCode===40){const oe=D.getSelection().getAnchorKey(),be=D.getCurrentContent().getBlockAfter(oe);be&&ie.includes(be.getKey())&&(0,Ro.td)(z,X,"down",ue)}},Zp=K=>{let{evt:D,editorState:z,setEditorState:X,widget:ie}=K;if(((0,vi.cX)()?D.metaKey:D.ctrlKey)&&D.shiftKey){var oe;const be=(0,ja.ny)(z).fontSize||((oe=ie.richTextV1)==null?void 0:oe.fontSize)||14,Ae=Ne=>{Fl(Ne,ie),b1(ie)};return D.keyCode===190||D.keyCode===188?D.keyCode===190?(0,ks.l2)(z,"fontSize",be+1,!0,Ae):(0,ks.l2)(z,"fontSize",be-1,!0,Ae):D.keyCode===83&&(0,ks.l2)(z,"line-through",void 0,!0,Ae),"SKIP"}},I0=K=>{let{editorState:D,blockKeyStore:z,setEditorState:X,getEditorState:ie,evt:ue}=K;if((0,Ro.pU)(D,z)&&(ue.keyCode===37&&(0,Ro.td)(ie,X,"up",ue),ue.keyCode===39&&(0,Ro.td)(ie,X,"down",ue),ue.keyCode===38&&(0,Ro.td)(ie,X,"up",ue),ue.keyCode===40))return(0,Ro.td)(ie,X,"down",ue),"SKIP"},nm=K=>{let{evt:D,editorState:z,setEditorState:X,editorType:ie}=K;if(D.key==="Tab"){D.preventDefault();let ue;const oe=D.shiftKey?"outdent":"indent",be=(0,ja.DN)(z),Ae=(0,yo.ew)(z);for(const Ne of Ae){if((0,yo.Eg)(Ne)){const Be=Ne.depth;oe==="outdent"&&Be===0?ue=(0,ja.ex)(z,"unstyled"):ue=(0,Ro.ar)(z,oe==="outdent"?-1:1,4)}else ie==="common"&&(ue=(0,ja.fM)(z,oe,be));X(ue)}return"SKIP"}},C1=K=>{let{evt:D,editorState:z,setEditorState:X,widget:ie,isShallowEditText:ue}=K;if(ie.type===C.x.WMindNode){if(ue){if((0,pl.or)(D))return"SKIP"}else if(D.key==="Enter"&&!D.shiftKey&&!D.altKey)return X((0,Ro.gN)(z)),"SKIP"}},A1=lp();var od=s(36449),Km=s(93093),xl=s(86594),Fd=s(43838),k1=s(1320);const{handleReturn:Z2}=Wo.A,{handleKeyCommand:K2,keyBindingFn2:om}=A1,Y2=[Wo.A,A1],z3=500;class am extends r.PureComponent{constructor(D){super(D),(0,Se.A)(this,"editorRef",null),(0,Se.A)(this,"containerRef",null),(0,Se.A)(this,"handleCompositionstart",()=>{const{editorState:oe}=this.state,be=(0,Ro.AR)(oe);this.setState({editorState:be})}),(0,Se.A)(this,"initSelectionOnMind",()=>{const{widget:oe,isEditingSelectAll:be,isShallowEditText:Ae,isEditingMoveToEnd:Ne}=this.props;oe.type===C.x.WMindNode&&(Ae?this.handleEditorStateChange((0,Ro.gN)(this.state.editorState)):be?this.handleEditorStateChange((0,Ro.gN)(this.state.editorState)):Ne&&this.handleEditorStateChange(_.$t.moveFocusToEnd(this.state.editorState)))}),(0,Se.A)(this,"handleEditorSelection",oe=>{let{widget:be,linkTitle:Ae,originLinkTarget:Ne,blockKey:Be,start:Ge,end:it}=oe;const At=be.cid||be.key;if(!be||!At)return;const{editorState:zt}=this.state,{widget:qt,dispatch:_n}=this.props;if(!qt||!qt.cid||qt.cid!==At)return;let $n;if(Be){const _o=zt.getCurrentContent(),zo=_o.getBlockForKey(Be);if($n=zo.getEntityAt(Ge),!$n){let aa;zo.findEntityRanges(oa=>(aa=oa.getEntity(),aa!==null&&_o.getEntity(aa).getType()==="LINK"),(oa,ma)=>{oa===Ge&&it===ma&&($n=aa)})}}const Fn=(0,ja.Bm)(zt.getCurrentContent(),Be,Ge,it,Ne,Ae);if(!Fn)return;const Ao=(0,ja.N$)(zt,Fn);Ao&&this.handleEditorStateChange(Ao),$n&&_n({type:od.k.EntryKey["entry:draft:activeEntityKey:update"],payload:{activeEntityKey:$n}})}),(0,Se.A)(this,"getBasicTextEditor",()=>({setEditorState:this.handleEditorStateChange,getEditorState:this.getEditorState,getEditorRef:this.getEditorRef,getWidget:this.getWidget,isShallowEditText:this.props.isShallowEditText})),(0,Se.A)(this,"setContainerEditorRef",oe=>{this.containerRef=oe}),(0,Se.A)(this,"setEditorRef",oe=>{this.editorRef=oe}),(0,Se.A)(this,"getEditorRef",()=>this.editorRef&&this.editorRef.editor),(0,Se.A)(this,"getEditorState",()=>this.state.editorState),(0,Se.A)(this,"getWidget",()=>this.props.widget),(0,Se.A)(this,"handleEditorStateChange",(oe,be)=>{const{onSelectionChange:Ae,isWidgetFirstEdit:Ne,widget:Be,dispatch:Ge}=this.props,{richTextV1:it,type:At}=Be;if(!oe)return;let zt=oe;Ne&&be!=null&&be.firstcall&&(zt=(0,Ti.Z5)({editorState:zt,widgetType:At,richTextV1:it})),this.setState({editorState:zt},()=>{Y2.forEach(qt=>{qt.onChange&&(zt=qt.onChange(zt))})}),Ae(zt,be)}),(0,Se.A)(this,"handleEditorClick",oe=>{document.activeElement.contentEditable!=="true"&&this.focus();const{dispatch:be}=this.props;oe.button===2&&be({type:"open:contextmenu",payload:{position:{top:oe.clientY,left:oe.clientX}}})}),(0,Se.A)(this,"handleMouseDown",oe=>{const{widget:be,dispatch:Ae}=this.props;be.type!==C.x.WMindNode&&oe.button===2&&Ae({type:"entry:contextmenu:withtype",payload:{position:{top:oe.clientY,left:oe.clientX},type:"text"}})}),(0,Se.A)(this,"focus",()=>{setTimeout(()=>{this.editorRef&&this.editorRef.focusEditor()},0)}),(0,Se.A)(this,"getTextDecoration",(oe,be)=>{let Ae="";return oe&&(Ae="underline"),be&&(Ae+=(Ae?" ":"")+"line-through"),Ae===""&&(Ae="none"),Ae}),(0,Se.A)(this,"handlePaste",async()=>{const oe=await(0,Fd.v)();oe!=null&&oe.content&&this.handlePastedText(oe==null?void 0:oe.content,oe==null?void 0:oe.content)}),(0,Se.A)(this,"handlePastedText",(oe,be)=>{const{isShallowEditText:Ae}=this.props;if(Ae)return!0;if(be){const{widget:Ne}=this.props,{editorState:Be}=this.state,Ge=(0,pe.DL)({html:be,editorState:Be,inlineProcessType:"merge",componentType:Ne.type===C.x.WRichText?ti.a.TEXT:ti.a.BASIC});if(Ge)return this.handleEditorStateChange(Ge),!0}return!1}),(0,Se.A)(this,"linkCallback",oe=>{let{entityKey:be,style:Ae,decoratedText:Ne,url:Be,blockKey:Ge,start:it,end:At}=oe;const{widget:zt,isCreatingLink:qt,dispatch:_n}=this.props;qt||(_n({type:od.k.EntryKey["entry:draft:activeEntityKey:update"],payload:{activeEntityKey:be}}),T.A.emit("draft:link-toast:view",{widget:zt,linkTitle:Ne,linkTarget:Be,style:Ae,blockKey:Ge,start:it,end:At,fromType:"settingPanel"}))}),(0,Se.A)(this,"handleFocus",()=>{setTimeout(()=>{this.getEditorState().getSelection().hasFocus},10)}),(0,Se.A)(this,"handleBlur",()=>{const{isShallowEditText:oe}=this.props;oe&&this.handleEditorStateChange((0,Ro.gN)(this.state.editorState))}),(0,Se.A)(this,"handleCopy",async(oe,be)=>{const{widget:Ae,isShallowEditText:Ne}=this.props,{editorState:Be}=this.state;if(Ne)be&&(be.preventDefault(),be.stopPropagation(),Ae.type===C.x.WMindNode&&be.clipboardData.setData("text/plain","COPIED__MB__WIDGET"));else{var Ge;const it=Ae.type==="wRichText"?Ae.w:void 0,At=Ae.type==="wRichText"?Ae.h:void 0,zt=Ae==null||(Ge=Ae.refStyles)==null?void 0:Ge.text,qt=(0,pe.vd)({editorState:Be,richTextV1:Ae.richTextV1,refStyleText:zt,w:it,h:At}),_n=(0,yo.u0)(Be);be&&(be.preventDefault(),be.clipboardData.setData("text/html",qt),be.clipboardData.setData("text/plain",_n)),await(0,Fd.$H)({hasNotice:!1})?await(0,xl.NO)({html:qt}):await(0,Fd.qG)({html:qt,selectionText:_n})}}),(0,Se.A)(this,"handleCut",async(oe,be)=>{const{widget:Ae}=this.props,{editorState:Ne}=this.state,Be=(0,yo.u0)(Ne),Ge=(0,pe.ag)({editorState:Ne,richTextV1:Ae.richTextV1,w:Ae.w,h:Ae.h});be&&(be.preventDefault(),be.clipboardData.setData("text/html",Ge),be.clipboardData.setData("text/plain",Be)),await(0,Fd.$H)({hasNotice:!1})?(0,xl.NO)({html:Ge}):(0,Fd.qG)({html:Ge,selectionText:Be})}),(0,Se.A)(this,"handleBeforeInput",()=>MB.f.isPastingRichText?"handled":"not-handled"),(0,Se.A)(this,"handleCustomStyleFn",(oe,be)=>{const Ae=be.getText();if((oe==null?void 0:oe.size)===0&&!(Ae!=null&&Ae.length)){const{editorState:Ne}=this.state;try{const Be=Ne.getCurrentInlineStyle();return(0,ja.Od)(Be)}catch(Be){return(0,Km.Cp)(Be,{level:"debug",fingerprint:["get-sltyle-CSS-From-InlineStyle"],extra:{selection:JSON.stringify(Ne.getSelection()),blocks:JSON.stringify(Ne.getCurrentContent().getBlockMap())}}),{}}}return{}}),(0,Se.A)(this,"handleDrop",(oe,be,Ae)=>(0,Ro.$B)(this.state.editorState)&&Ae==="internal"?"handled":"not-handled");const{widget:z}=D,{textV1:X}=z,ie=(0,re.mx)(X);let ue=(0,Y.n)(ie);D.isNeedMigrateLinkItalic&&(ue=(0,k1.cA)({textV1:X,editorState:ue})),this.state={editorState:ue}}componentDidMount(){Y2.forEach(X=>{X&&X.initialize&&typeof X.initialize=="function"&&X.initialize(this.getBasicTextEditor())});const{isLinkToastShow:D}=this.props,{editorState:z}=this.state;if(this.props.widget.type===C.x.WMindNode?this.initSelectionOnMind():D||this.handleEditorStateChange((0,Ro.gN)(z),{firstcall:!0}),T.A.on("draft:design:editorState:selection:basic",this.handleEditorSelection),T.A.on("draft:text:copy",this.handleCopy),T.A.on("draft:text:cut",this.handleCut),T.A.on("draft:text:paste",this.handlePaste),this.editorRef){const X=document.querySelector('.public-DraftEditor-content[contenteditable="true"]');X&&X.addEventListener("compositionstart",this.handleCompositionstart)}}componentDidUpdate(D){const{widget:{key:z,textV1:X,richTextV1:ie},isShallowEditText:ue,isEditingSelectAll:oe,isEditingMoveToEnd:be}=D,{widget:{key:Ae,type:Ne,textV1:Be,richTextV1:Ge},isShallowEditText:it,isEditingSelectAll:At,isEditingMoveToEnd:zt}=this.props;if(Ne===C.x.WMindNode)if(!(0,V.eI)(Be,X)&&z!==Ae||!p1()(ie,Ge)){const qt=(0,re.mx)(Be);this.handleEditorStateChange((0,Ro.gN)((0,Y.n)(qt)))}else(it!==ue||At!==oe||zt!==be)&&this.initSelectionOnMind()}componentWillUnmount(){if(Y2.forEach(D=>{D&&D.unmounted&&typeof D.unmounted=="function"&&D.unmounted()}),T.A.off("draft:design:editorState:selection:basic",this.handleEditorSelection),T.A.off("draft:text:copy",this.handleCopy),T.A.off("draft:text:cut",this.handleCut),T.A.off("draft:text:paste",this.handlePaste),this.setState=()=>!1,this.editorRef){const D=document.querySelector('.public-DraftEditor-content[contenteditable="true"]');D&&D.removeEventListener("compositionstart",this.handleCompositionstart)}}render(){const{editorState:D}=this.state,{widget:z,activeEntityKey:X,isShallowEditText:ie,dispatch:ue,fontDirection:oe,lhVersion:be,isNeedMigrateLinkItalic:Ae}=this.props,Ne=z.type===C.x.WRichText,Be=z["!liVersion"],Ge=Ne?z["!psVersion"]:3,it=[{strategy:Ya,component:di,props:{callback:this.linkCallback,version:Be,isNeedMigrateLinkItalic:Ae,dispatch:ue}}],{richTextV1:{sizeType:At,lineHeight:zt,paraSpacing:qt,horizontalAlign:_n,underline:$n,strikethrough:Fn},shadow:Ao}=z,_o=z.type==="wRichText"&&Ao?{textShadow:Ao!=null&&Ao.shadowIsVisible?(Ao==null?void 0:Ao.offsetX)+"px "+(Ao==null?void 0:Ao.offsetY)+"px "+(Ao==null?void 0:Ao.blurRadius)+"px "+(0,Bp.t0)(Ao==null?void 0:Ao.shadowColor):"none"}:{},zo=this.getTextDecoration($n,Fn),aa=Kt()(z.type,{auto:At===0,fixed:At!==0,vertical:oe==="vertical-lr",horizontal:oe==="horizontal-tb"}),oa=(0,ks.FM)(D,"state");return(0,fe.jsx)(ra,{style:_o,className:aa,lineHeight:zt,psVersion:Ge,paraSpacing:qt,horizontalAlign:_n,fontDirection:oe,psList:oa,textDecoration:zo,activeKey:X,isWRichText:Ne,isShallowEditText:ie,ref:this.setContainerEditorRef,onClick:this.handleEditorClick,onMouseDown:this.handleMouseDown,id:"test-design-dom"+z.cid,children:(0,fe.jsx)(Do.c,{preserveSelectionOnBlur:!0,wrapperClassName:"draft-basic-text-editor-wrapper",editorClassName:"draft-basic-text-editor",ref:this.setEditorRef,editorState:D,blockStyleFn:ri(!0,"center"),customDecorators:it,onEditorStateChange:this.handleEditorStateChange,customStyleMap:{...ka.a2,...ka.cN,...ka.aV},handlePastedText:this.handlePastedText,keyBindingFn:om.bind(this,this.getBasicTextEditor()),handleKeyCommand:K2.bind(this,this.getBasicTextEditor()),handleReturn:Z2.bind(this,this.getBasicTextEditor()),handleBeforeInput:this.handleBeforeInput,handleDrop:this.handleDrop,onFocus:this.handleFocus,onBlur:this.handleBlur,onCopy:this.handleCopy,onCut:this.handleCut,customStyleFn:this.handleCustomStyleFn,canBlockAlign:!1,lhVersion:be})})}}const mh=am;var Ym=s(15748),cp=s(30294),rm=s(68049);class Xm extends r.Component{constructor(D){var z;super(D),(0,Se.A)(this,"saveAction",()=>{this.props.dispatch({type:"quit:rich:text:editing",payload:{isWidgetFirstEdit:this.state.isWidgetFirstEdit,isNeedMigrateLinkItalic:this.state.isNeedMigrateLinkItalic,onlySave:!0}})}),(0,Se.A)(this,"getWrapperStyleV0",oe=>{const{swimlaneSelectedCellInfo:be}=this.props,{richTextV1:{sizeType:Ae,fontDirection:Ne,horizontalAlign:Be,verticalAlign:Ge}}=oe,{borderLeft:it,borderTop:At,borderRight:zt,borderBottom:qt}=(0,go.NV)(oe),{top:_n,left:$n,width:Fn,height:Ao}=(0,Bs.zG)(oe);let _o=_n,zo=$n,aa=Fn-it-zt,oa=Ao-At-qt,ma={};const Ea=oe.type;if(Ea===C.x.WSwimlane){const{x:Aa,y:fr}=be.tl,{database:Jr,swimlaneType:qa,swimConfig:{isShowBigTitle:Ka}}=oe,{table:rr}=Jr,Ua=(0,Mc.u3)({database:Jr,x:Aa,y:fr,swimlaneType:qa}),_r=(0,Mc.XY)({database:Jr,x:Aa,y:fr,swimlaneType:qa,isShowBigTitle:Ka}),ni=oe.border.bdrWidth;(Aa===rr[fr].length-1?"last":"normal")==="normal"?(zo+=_r.left+ni,aa=Ua.width-ni):(zo+=_r.left+ni,aa=Ua.width-ni*2),(fr===rr.length-1?"last":"normal")==="normal"?(_o+=_r.top+ni*1.5,oa=Ua.height-ni*2):(_o+=_r.top,oa=Ua.height)}if(Ea===C.x.WFlowOpened){const Aa=oe.subType;Aa!=="concurrent"&&(aa=Fn*.8,(Aa==="commentRight"||Aa==="noteRight")&&(zo+=Fn*.2))}if(Ea===C.x.wFlowClosed&&oe.subType==="subProcess"&&(aa=Fn*.7,zo+=Fn*.14),[C.x.WFlowOpened,C.x.wFlowClosed].includes(Ea)&&(aa=aa+it+zt,oa=oa+At+qt,zo=zo-it,_o=_o-At),(Ea===C.x.WLine||Ea===C.x.WArrow)&&(oa=oa>0?oa+At+qt:1,aa=aa>0?aa+it+zt:1,ma={top:_o,left:zo,minHeight:"auto"}),Ea===C.x.WMTooltip){const Aa=oe.tooltip.placement,fr=oe.tooltip.arrowSize,Jr={top:"marginTop",right:"marginRight",bottom:"marginBottom",left:"marginLeft"},qa=["top","bottom"].includes(Aa);ma={[Jr[Aa]]:fr,width:qa?aa:aa-fr,height:qa?oa-fr:oa}}if(Ea===C.x.WElbow){const{elbow:{dPathList:Aa,elbowType:fr,textPositionProportion:Jr}}=oe,{x:qa,y:Ka}=(0,cp.xd)(Aa,fr,Jr);_o=_o+Ka,zo=zo+qa,ma={width:"max-content",transform:"translate(-50%, -50%)",height:"auto",padding:"4px 8px",border:"1px solid #1684fc",borderRadius:6,fontFamily:"PingFangSC",backgroundColor:"#fff"}}if(Ea===C.x.WButton){const{icon:Aa}=oe;if(Aa!=null&&Aa.path){const{width:fr}=(0,rm.F7)(oe),{iconSize:Jr,gap:qa,position:Ka}=Aa;Ne==="vertical-lr"?Ka==="left"?Ge==="flex-start"?zo=zo+Jr+qa:Ge==="center"&&(zo=zo+(Jr+qa+fr)/2-fr/2):Ge==="flex-end"?zo=zo-(Jr+qa):Ge==="center"&&(zo=zo+fr/2-(Jr+qa+fr)/2):Ka==="left"?Be==="center"?zo=zo+(Jr+qa+fr)/2-fr/2:Be==="left"&&(zo=zo+Jr+qa):Be==="center"?zo=zo+fr/2-(Jr+qa+fr)/2:Be==="right"&&(zo=zo-(Jr+qa))}}const{padding:er,...Pr}=Gt(oe);return{display:"flex",top:_o+At,left:zo+it,width:aa,height:Ne==="vertical-lr"||Ae===1?oa:"",borderRadius:Ea===C.x.WOval&&0,...er,...Pr,...ma}}),(0,Se.A)(this,"getMindNodeWrapperStyleV0",()=>{const{editingMindNode:oe,widgetStore:be}=this.props,{richTextNode:Ae,mindNode:Ne}=oe,Be=be.mindTrees.get(Ne.key),{top:Ge,left:it}=(0,Bs.zG)(Ne),{hotAttr:{border:{bdrIsVisible:At,bdrWidth:zt},theme:qt}}=Ne,_n=At&&zt||0,{richTextV1:{sizeType:$n,fontDirection:Fn},border:{bdrIsVisible:Ao,bdrWidth:_o}}=Ae.hotAttr,zo=Ao&&_o||0,aa=(0,Ym.ss)({theme:qt,node:Ae.hotAttr,isRootSub:Be==null?void 0:Be.isRootSub(Ae.key)}),oa=Gt({...Ae.hotAttr,richTextV1:{...Ae.hotAttr.richTextV1,...aa}}),ma=(Be==null?void 0:Be.getMindPosition())||{x:0,y:0},{x:Ea,y:er}=(Be==null?void 0:Be.getNodePosition(Ae.key))||{x:0,y:0},Pr=Be==null?void 0:Be.getNodeSize(Ae.key),{w:Aa,h:fr}=(Pr==null?void 0:Pr.text)||{w:0,h:0},{x:Jr,y:qa}=(Be==null?void 0:Be.calcNodeTextPosition(Ae.key))||{x:0,y:0},Ka=it+Ea+ma.x+_n+zo+Jr,rr=Ge+er+ma.y+_n+zo+qa;return{display:"flex",left:Ka,top:rr,width:Aa,height:Fn==="vertical-lr"||$n===1?fr:"",...oa}}),(0,Se.A)(this,"handleMouseDown",oe=>{(0,f.kI)(oe)}),(0,Se.A)(this,"handleSelectionChange",(oe,be)=>{const{node:Ae,defaultAttrs:Ne,dispatch:Be}=this.props;Be({type:"set:rich:text:editor:state",payload:{richTextEditorState:oe}}),be!=="color"&&(Be({type:"entry:mind:update:textV1"}),Be({type:"entry:button:update:textV1",payload:{firstcall:be==null?void 0:be.firstcall}})),oe.getCurrentContent().getPlainText()===""&&Ae&&Be({type:"entry:widget:change",payload:{flatChgList:[{key:Ae==null?void 0:Ae.key,hotAttr:{richTextV1:Ne}}]}})}),(0,Se.A)(this,"handleKeyDownOnMindNodeEdit",oe=>{if(!oe.target.closest(".editing-text-area"))return;const{isLinkToastShow:be,isShallowEditText:Ae,richTextEditorState:Ne,dispatch:Be}=this.props,Ge=oe.shiftKey,it=oe.altKey,At=oe.metaKey||oe.ctrlKey,zt=oe.key===ts._.Escape,qt=oe.key===ts._.Enter,_n=oe.keyCode===ts.Ju.Space,$n=(Ne==null?void 0:Ne.isInCompositionMode)&&(Ne==null?void 0:Ne.isInCompositionMode()),Fn=be?At&&qt:!Ge&&!it&&qt&&!$n,Ao=Ae&&(0,pl.or)(oe);(zt||Fn||Ao&&!_n)&&(this.props.dispatch({type:"quit:rich:text:editing",payload:{isWidgetFirstEdit:!1,isNeedMigrateLinkItalic:!1}}),Be({type:"mind:update:isShallowEditText",payload:!0})),Ao&&(oe.preventDefault(),oe.stopPropagation(),(0,pl.or)(oe,Be))}),(0,Se.A)(this,"handleKeySave",oe=>{oe.preventDefault(),this.saveAction()}),(0,Se.A)(this,"quitRichTextEditingByEsc",oe=>{if(oe.key==="s"&&(oe.ctrlKey||oe.metaKey)){this.handleKeySave(oe);return}const{editingMindNode:Ae}=this.props;if(Ae){this.handleKeyDownOnMindNodeEdit(oe);return}const Ne=oe.metaKey||oe.ctrlKey,Be=oe.key===ts._.Escape,Ge=oe.key===ts._.Enter;(Be||Ne&&Ge)&&this.props.dispatch({type:"quit:rich:text:editing",payload:{isWidgetFirstEdit:this.state.isWidgetFirstEdit,isNeedMigrateLinkItalic:this.state.isNeedMigrateLinkItalic}})}),(0,Se.A)(this,"quitRichTextEditing",oe=>{const{isLinkToastShow:be,isShallowEditText:Ae}=this.props;if(!Ae){if(!oe.target.closest(".draft-link-toast")&&be&&!oe.target.dataset.text){["INPUT","LABEL","TEXTAREA"].includes(oe.target.tagName)||(oe.preventDefault(),oe.stopPropagation()),T.A.emit("draft:link-toast:quit"),this.props.dispatch({type:"quit:rich:text:editing",payload:{isWidgetFirstEdit:this.state.isWidgetFirstEdit,isNeedMigrateLinkItalic:this.state.isNeedMigrateLinkItalic}});return}oe.target.closest(".draft-link-toast")||oe.target.closest(".draft-inline-toolbar")||oe.target.closest(".quick-menu-option .content")||oe.target.closest('.public-DraftEditor-content[contenteditable="true"] .draft-image-atomic')||oe.target.closest(".image-content")||oe.target.closest("#ai-semantic-modal")||oe.target.closest(".ai-semantic-recommend-panel")||oe.target.closest(".WorkspaceInputNumber")||oe.target.closest("#textediting-menu")||oe.target.closest(".font-family-menu")||oe.target.closest(".--mb--color-picker")||oe.target.closest("#ai-semantic-modal")||oe.target.closest(".ai-semantic-recommend-panel")||oe.target.closest(".context-menu-mask")||oe.target.closest(".draft-rich-text-editor.draft-rich-text-editor-wrapper")||oe.target.closest(".font-size-input-menu")||oe.target.closest("#text-settings")||oe.target.closest(".font-options-menu #text-settings-font-menu")||document.getElementById("font-list-panel")||oe.target.closest(".md-magnifier-color-item")||(T.A.emit("draft:link-toast:quit"),this.props.dispatch({type:"quit:rich:text:editing",payload:{isWidgetFirstEdit:this.state.isWidgetFirstEdit,isNeedMigrateLinkItalic:this.state.isNeedMigrateLinkItalic}}))}}),(0,Se.A)(this,"getEditorStyle",()=>{const{node:oe,swimlaneSelectedCellInfo:be,editingMindNode:Ae}=this.props;let Ne=oe?{...oe.hotAttr,key:oe.key}:void 0,Be={},Ge={};if(Ne){if(Be=Ne.richTextV1,Ne.type===C.x.WSwimlane){const{cells:ma,table:Ea}=Ne.database,{x:er,y:Pr}=be.tl,Aa=ma[Ea[Pr][er]];Aa&&(Ne.textV1=Aa.textV1,Ne.richTextV1=Aa.richTextV1,Be=Aa.richTextV1)}Ge=this.getWrapperStyleV0(Ne)}if(Ae){const{richTextNode:ma}=Ae;Ne={...ma.hotAttr,key:ma.key},Be=Ne.richTextV1,Ge=this.getMindNodeWrapperStyleV0()}if(!Ne)return null;const{type:it}=Ne,{sizeType:At,fontDirection:zt,horizontalAlign:qt,verticalAlign:_n}=Be,$n=Be["!lhVersion"],Fn=At===0?"auto":"fixed",{left:Ao,top:_o,...zo}=Ge,aa={transform:"translate("+Ao+"px, "+_o+"px)",width:zo.width,height:zo.height,display:"flex"},oa={...zo};return zt==="vertical-lr"&&At===0&&(oa.height="max-content"),{widget:Ne,type:it,editorWarpperStyle:aa,richEditorStyle:oa,lhVersion:$n,sizeType:Fn,fontDirection:zt,horizontalAlign:qt,verticalAlign:_n}});let X=!1,ie=!1;const ue=(z=this.props.node)==null?void 0:z.hotAttr;ue!=null&&ue.textV1&&(X=(0,Va.SD)(ue.textV1.blocks),ie=ue["!liVersion"]===1),this.state={containerBorderHeight:0,containerBorderWidth:0,isWidgetFirstEdit:X,isNeedMigrateLinkItalic:ie}}componentDidMount(){var D;MB.f.editing=!0,MB.f.editingRichText=!0;const z=this.props.node||((D=this.props.editingMindNode)==null?void 0:D.richTextNode);z!=null&&z.hotAttr.textV1&&(0,S.ay)(z,"add")}componentWillUnmount(){var D;MB.f.editing=!1,MB.f.editingRichText=!1;const z=this.props.node||((D=this.props.editingMindNode)==null?void 0:D.richTextNode);z!=null&&z.hotAttr.textV1&&(0,S.ay)(z,"remove")}render(){const{activeEntityKey:D,isLinkToastShow:z,isCreatingLink:X,isShallowEditText:ie,isEditingSelectAll:ue,isEditingMoveToEnd:oe,dispatch:be}=this.props,{isNeedMigrateLinkItalic:Ae,isWidgetFirstEdit:Ne}=this.state,Be=this.getEditorStyle();if(!(Be!=null&&Be.widget)||sdkStore.isTrashed(Be.widget.key))return this.props.dispatch({type:"quit:rich:text:editing"}),null;const Ge=Kt()("draft-rich-text-editor","draft-rich-text-editor-wrapper",Be.type,Be.sizeType,Be.fontDirection,{horizontalAlign:Be.horizontalAlign,verticalAlign:Be.verticalAlign,fontDirection:Be.fontDirection,isShallowEditText:ie});return(0,fe.jsx)("div",{style:Be.editorWarpperStyle,children:(0,fe.jsxs)(fn,{className:Ge,style:Be.richEditorStyle,onMouseDown:this.handleMouseDown,children:[(0,fe.jsx)(mh,{isShallowEditText:ie,isEditingSelectAll:ue,isEditingMoveToEnd:oe,widget:Be.widget,onSelectionChange:this.handleSelectionChange,activeEntityKey:D,isLinkToastShow:z,isCreatingLink:X,fontDirection:Be.fontDirection,dispatch:be,lhVersion:Be.lhVersion,isWidgetFirstEdit:Ne,isNeedMigrateLinkItalic:Ae}),(0,fe.jsx)(ha.A,{target:document,onKeyDown:(0,ha.t)(this.quitRichTextEditingByEsc,{capture:!0}),onMouseDown:(0,ha.t)(this.quitRichTextEditing,{capture:!0})})]})})}}const im=(0,On.Mz)([o0.c,Zn.oi,Zn.uA,Zn.ah,Zn.aJ,od.k.Query.getActiveEntityKey,od.k.Query.getLinkToastShow,od.k.Query.getIsCreatingLink,st.X.query.getSelectedCellsInfo,st.X.query.getIsDeepEditing,l.Mj,U.Gq,Q.UV],(K,D,z,X,ie,ue,oe,be,Ae,Ne,Be,Ge,it)=>({node:K,activeEntityKey:ue,isLinkToastShow:oe,isCreatingLink:be,swimlaneSelectedCellInfo:Ae,swimlaneIsDeepEditing:Ne,editingMindNode:D,isShallowEditText:ie,isEditingSelectAll:z,isEditingMoveToEnd:X,richTextEditorState:Be,defaultAttrs:Ge,widgetStore:it})),X2=K=>(K.node||K.editingMindNode)&&(0,fe.jsx)(Xm,{...K}),sm=(0,I.Ng)(K=>im(K))(X2);var ul=s(56074);function _0(){const K=(0,ul.A)({isVisible:!1});return{store:K,initialize:D=>{const z=D.getReadOnly,X=D.getEditorState,ie=D.setEditorState,ue=D.getWidget;K.updateItem("getReadOnly",z),K.updateItem("getEditorState",X),K.updateItem("setEditorState",ie),K.updateItem("getWidget",ue)},unmounted:()=>{K.updateItem("getReadOnly",null),K.updateItem("getEditorState",null),K.updateItem("setEditorState",()=>!1),K.updateItem("getWidget",null)}}}const ns=_0();function lm(){const K={getEditorRef:void 0,getReadOnly:void 0,getEditorState:void 0,setEditorState:void 0};return{store:K,initialize:D=>{K.getReadOnly=D.getReadOnly,K.getEditorRef=D.getEditorRef,K.getEditorState=D.getEditorState,K.setEditorState=D.setEditorState}}}const Q2=lm();var cm=s(42738);const Qm=K=>{const D=K.WrappedComponent||K;return D.displayName||D.name||"Component"},Jm=K=>{const D=K.blockKeyStore;return z=>{const X=(ie,ue)=>{const{block:oe,mode:be,contentState:Ae,blockProps:Ne,className:Be,style:Ge,onMouseDown:it,onMouseMove:At,onMouseLeave:zt}=ie,{isFocused:qt,alignment:_n,setFocusToBlock:$n}=Ne;(0,r.useEffect)(()=>(D.add(oe.getKey()),()=>{D.remove(oe.getKey())}),[]);const Fn=_o=>{_o.preventDefault(),_o.stopPropagation(),$n()},Ao=Kt()(Be,{focused:qt,unfocused:!qt});return(0,fe.jsx)(z,{block:oe,mode:be,contentState:Ae,ref:ue,className:Ao,alignment:_n,style:Ge,onClick:Fn,onMouseDown:it,onMouseMove:At,onMouseLeave:zt})};return X.displayName="BlockFocus("+Qm(z)+")",X.WrappedComponent=z.WrappedComponent||z,r.forwardRef(X)}},Ns=K=>{const D=K.WrappedComponent||K;return D.displayName||D.name||"Component"},qm=K=>{const D=K.store;return z=>{const X=(ie,ue)=>{const{block:oe,mode:be,contentState:Ae,className:Ne,blockProps:Be,style:Ge,onMouseDown:it,onMouseMove:At,onMouseLeave:zt}=ie,{src:qt,alt:_n,isFocused:$n,isCollapsedSelection:Fn,alignment:Ao,setAlignment:_o}=Be,zo=(0,r.useRef)();return(0,r.useEffect)(()=>{if($n&&Fn&&zo.current){const aa=zo.current.getBoundingClientRect();D.updateItem("setAlignment",_o),D.updateItem("alignment",Ao),D.updateItem("boundingRect",aa),D.updateItem("visibleBlock",oe.getKey()),D.updateItem("imageProps",{src:qt,alt:_n})}else D.getItem("visibleBlock")===oe.getKey()&&D.updateItem("visibleBlock",null);return()=>{D.updateItem("visibleBlock",null)}},[qt,_n,$n,Fn,Ao,_o,oe]),(0,fe.jsx)(z,{block:oe,mode:be,contentState:Ae,className:Ne,blockProps:Be,style:Ge,ref:aa=>{zo.current=aa,typeof ue=="function"?ue(aa):ue&&(ue.current=aa)},onMouseDown:it,onMouseMove:At,onMouseLeave:zt})};return X.displayName="Alignment("+Ns(z)+")",X.WrappedComponent=z.WrappedComponent||z,r.forwardRef(X)}},$m=(K,D,z)=>{let{isLeft:X,isRight:ie}=K,{startWidth:ue,startX:oe}=D;return X?ue+oe-z.clientX:ue+z.clientX-oe},ef=(K,D,z)=>{let{isTop:X,isBottom:ie}=K,{startHeight:ue,startWidth:oe,startY:be}=D;const Ae=oe/ue;return(X?ue+be-z.clientY:ue+z.clientY-be)*Ae},tf=K=>{const D=K.WrappedComponent||K;return D.displayName||D.name||"Component"},J2=(K,D)=>Math.ceil(K/D)*D,nf=K=>{const D=K.store;return z=>{const X=(ie,ue)=>{const{block:oe,mode:be,contentState:Ae,className:Ne,blockProps:Be,initialWidth:Ge,initialHeight:it}=ie,{resizeData:At,setResizeData:zt}=Be,qt=ie.isResizable===void 0?!0:ie.isResizable,_n=ie.resizeSteps===void 0?1:ie.resizeSteps,$n=D.getReadOnly&&D.getReadOnly(),Fn=ie.vertical===void 0?"relative":ie.vertical,Ao=ie.horizontal===void 0?"relative":ie.horizontal,[_o,zo]=(0,r.useState)(!1),[aa,oa]=(0,r.useState)(0),[ma,Ea]=(0,r.useState)(0),[er,Pr]=(0,r.useState)({isTop:!1,isLeft:!1,isRight:!1,isBottom:!1,canResize:!0}),Aa=(0,r.useRef)(),fr=(0,r.useCallback)(()=>{!_o&&Pr({isTop:!1,isLeft:!1,isRight:!1,isBottom:!1,canResize:!0})},[_o]),Jr=(0,r.useCallback)(rr=>{const _r=Aa.current.getBoundingClientRect(),ni=rr.clientX-_r.left,zr=rr.clientY-_r.top,Ur=Fn&&Fn!=="auto"?zr<6:!1,ki=Ao?ni<6:!1,ds=Ao?ni>=_r.width-6&&ni<_r.width:!1,Qs=Fn&&Fn!=="auto"?zr>=_r.height-6&&zr<_r.height:!1,le={isTop:Ur,isLeft:ki,isRight:ds,isBottom:Qs,canResize:(Ur||ki||ds||Qs)&&qt};Pr(de=>Object.keys(le).filter(Vt=>de[Vt]!==le[Vt]).length?le:de)},[Fn,Ao,qt]),qa=(0,r.useCallback)(rr=>{if(!er.canResize)return;rr.preventDefault();const Ua=er.isTop,_r=er.isLeft,ni=er.isRight,zr=er.isBottom,Ur=Aa.current.getImgElement(),ki=rr.clientX,ds=rr.clientY,Qs=Ur&&parseInt(document.defaultView.getComputedStyle(Ur).width,10),E=Ur&&parseInt(document.defaultView.getComputedStyle(Ur).height,10);let le=aa,de=ma;const _e=Bt=>{let ln=$m({isLeft:_r,isRight:ni},{startWidth:Qs,startX:ki},Bt),Ht=ef({isTop:Ua,isBottom:zr},{startHeight:E,startWidth:Qs,startY:ds},Bt);const En=D.getEditorRef(),po=En.refs&&En.refs.editor?En.refs.editor:En.editor;ln=Math.min(po.clientWidth,ln),Ht=Math.min(po.clientWidth,Ht);const Lo=100/po.clientWidth*ln,Bo=100/po.clientWidth*Ht;(_r||ni)&&Ao==="relative"?(le=_n?J2(Lo,_n):Lo,oa(le)):(_r||ni)&&Ao==="absolute"&&(le=_n?J2(ln,_n):ln,oa(le)),(Ua||zr)&&Fn==="relative"?(le=_n?J2(Bo,_n):Bo,oa(le)):(Ua||zr)&&Fn==="absolute"&&(de=_n?J2(Ht,_n):Ht,Ea(de)),Bt.preventDefault()},Vt=()=>{document.removeEventListener("mousemove",_e,!1),document.removeEventListener("mouseup",Vt,!1),zo(!1),zt({width:le,height:de||void 0})};document.addEventListener("mousemove",_e,!1),document.addEventListener("mouseup",Vt,!1),zo(!0)},[er,aa,ma,Ao,Fn,zt,_n]),Ka=(0,r.useMemo)(()=>{const rr={position:"relative",cursor:"pointer",width:"100%",height:"auto"},Ua=er.isTop,_r=er.isLeft,ni=er.isRight,zr=er.isBottom;if(Ao==="auto")rr.width="auto";else if(Ao==="relative"){const Ur=aa||At.width;!Ur&&Ge?rr.width=Ge:rr.width=(Ur||40)+(Ur&&(Ur+"").includes("%")?"":"%")}else if(Ao==="absolute"){const Ur=aa||At.width;!Ur&&Ge?rr.width=Ge:rr.width=(Ur||40)+"px"}if(Fn==="auto")rr.height="auto";else if(Fn==="relative"){const Ur=aa||At.width;!Ur&&Ge?rr.width=Ge:rr.width=(Ur||40)+(Ur&&(Ur+"").includes("%")?"":"%")}else if(Fn==="absolute"){const Ur=ma||At.height;!Ur&&it?rr.height=it:rr.height=(Ur||40)+"%"}return qt?ni&&zr||_r&&Ua?rr.cursor="nwse-resize":ni&&Ua||zr&&_r?rr.cursor="nesw-resize":ni||_r?rr.cursor="ew-resize":zr||Ua?rr.cursor="ns-resize":rr.cursor="pointer":rr.cursor="pointer",rr},[Ao,Fn,qt,er,aa,ma,Ge,it,At.width,At.height]);return(0,fe.jsx)(z,{block:oe,mode:be,contentState:Ae,className:Ne,blockProps:Be,style:Ka,onMouseDown:$n?void 0:qa,onMouseMove:$n?void 0:Jr,onMouseLeave:$n?void 0:fr,ref:rr=>{Aa.current=rr,typeof ue=="function"?ue(rr):ue&&(ue.current=rr)}})};return X.displayName="BlockResizeable("+tf(z)+")",X.WrappedComponent=z.WrappedComponent||z,r.forwardRef(X)}},of={options:["imageAlign","v_separator","enlarge"],imageAlign:{inDropdown:!0,icon:"draft/alignment",className:"draft-alignment",title:"\u5BF9\u9F50\u65B9\u5F0F",options:["left","center","right","justify"],left:{icon:"draft/text-align/left",className:"draft-text-align-left",title:"\u5DE6\u5BF9\u9F50"},center:{icon:"draft/text-align/center",className:"draft-text-align-center",title:"\u5C45\u4E2D\u5BF9\u9F50"},right:{icon:"draft/text-align/right",className:"draft-text-align-right",title:"\u53F3\u5BF9\u9F50"},justify:{icon:"draft/text-align/justify",className:"draft-text-align-justify",title:"\u4E24\u7AEF\u5BF9\u9F50"}},enlarge:{inDropdown:!1,icon:"draft/enlarge",className:"draft-enlarge",title:"\u9884\u89C8"},v_separator:{inDropdown:!1,icon:void 0,className:"draft-separator-v",title:void 0}},af=Yt.Ay.div.withConfig({displayName:"styles__StyledDraftImageAtomicDiv",componentId:"sc-5nznd1-0"})(['.draggable-btn{position:absolute;width:20px;height:20px;display:none;justify-content:center;align-items:center;z-index:1;&.top{top:0px;}&.left{left:0px;}&.right{right:0px;}&.bottom{bottom:0px;}&::after{content:"";display:block;height:10px;width:10px;border:1px solid #3370ff;border-radius:50%;box-sizing:border-box;background-color:#ffffff;}}&.focused{.draggable-btn{display:flex;z-index:2;}}']),q2=" ",fh=(K,D)=>{const{block:z,mode:X,className:ie,alignment:ue,contentState:oe,style:be,onClick:Ae,onMouseDown:Ne,onMouseMove:Be,onMouseLeave:Ge}=K,it=oe.getEntity(z.getEntityAt(0)),{src:At,alt:zt}=it.getData(),qt=r.useRef(null),_n=Fn=>{Fn.preventDefault(),Fn.stopPropagation(),MB.action&&MB.action("modal:update:state",{imagePreviewModal:{isOpen:!0,imgSrc:At,alt:zt}})},$n={width:"100%",height:"max-content",fontSize:0,textAlign:void 0};return of.imageAlign.options.includes(ue)&&($n.textAlign=ue),r.useImperativeHandle(D,()=>({getImgElement:()=>qt.current,getBoundingClientRect:()=>qt.current.getBoundingClientRect()})),(0,fe.jsxs)(af,{style:$n,children:[q2,(0,fe.jsx)("img",{ref:qt,style:be,className:ie,onDoubleClick:X==="edit"?void 0:_n,onClick:Ae,onMouseDown:Ne,onMouseMove:Be,onMouseLeave:Ge,src:At,alt:zt,draggable:"false",role:"presentation"})]})},rf=r.forwardRef(fh),sf=K=>{let{contentState:D,block:z}=K;const X=z.getKey(),ue=D.getFirstBlock().getKey(),be=D.getLastBlock().getKey(),Ae=D.getBlockBefore(X),Ne=D.getBlockAfter(X),Be="draft-image-atomic",Ge=X!==ue&&(Ae.getType()==="atomic"||Ae.getType()!=="atomic"&&Ae.getText()),it=X!==be&&Ne.getType()!=="atomic";return Be},Yp=K=>{let{alignmentStore:D,resizeableStore:z,blockKeyStore:X}=K;return(ie,ue)=>{const oe=ie.getEditorState,be=ie.setEditorState;if(ue.getType()==="atomic"){const Ae=oe(),Ne=Ae.getCurrentContent(),Be=ue.getEntityAt(0);if(!Be)return null;const Ge=Ne.getEntity(Be);if(!Ge)return null;const it=Ge.getType();if(["image","IMAGE"].includes(it)){const At=Ge.getData(),{src:zt,alt:qt,width:_n,height:$n,alignment:Fn}=At,Ao={src:zt,alt:qt},_o=_n?typeof _n=="number"?_n+"%":_n.includes("%")?_n:_n+"%":"100%",zo=Jm({blockKeyStore:X}),aa={isFocused:Ae.getSelection().getHasFocus()&&(0,Ro.rr)(Ae,ue.getKey()),isCollapsedSelection:Ae.getSelection().isCollapsed(),setFocusToBlock:()=>{(0,Ro.D8)(oe,be,ue)}},oa=qm({store:D}),ma={alignment:Fn||"default",setAlignment:(0,Ro.Uf)(ue,{getEditorState:oe,setEditorState:be})},Ea=nf({store:z}),er={resizeData:{width:_n,height:$n},setResizeData:(0,Ro.Rr)(ue,{getEditorState:oe,setEditorState:be})},Pr=sf({contentState:Ne,block:ue}),Aa=r.createElement(Ea(oa(zo(rf))),{block:ue,mode:"edit",contentState:Ne,className:Pr,isResizable:void 0,resizeSteps:void 0,vertical:void 0,horizontal:void 0,initialWidth:_o,initialHeight:void 0,blockProps:{...Ao,...ma,...aa,...er}});return{component:()=>Aa,editable:!1}}return null}return null}};var cl=s(73629);const M1=[Wo.A,ns,Q2,A1];class $l extends r.PureComponent{constructor(D){super(D),(0,Se.A)(this,"editorRef",null),(0,Se.A)(this,"containerRef",null),(0,Se.A)(this,"handleCompositionstart",()=>{const{editorState:oe}=this.state,be=(0,Ro.AR)(oe);this.setState({editorState:be})}),(0,Se.A)(this,"handleWheel",oe=>{oe.stopPropagation(),(oe.metaKey||oe.ctrlKey)&&oe.preventDefault()}),(0,Se.A)(this,"getPluginMethods",()=>({setEditorState:this.handleEditorStateChange,getEditorState:this.getEditorState,getEditorRef:this.getEditorRef,getWidget:this.getWidget})),(0,Se.A)(this,"setContainerEditorRef",oe=>{this.containerRef=oe}),(0,Se.A)(this,"setEditorRef",oe=>{this.editorRef=oe}),(0,Se.A)(this,"getEditorRef",()=>this.editorRef&&this.editorRef.editor),(0,Se.A)(this,"getEditorState",()=>this.state.editorState),(0,Se.A)(this,"getWidget",()=>this.state.widget),(0,Se.A)(this,"handleEditorSelection",oe=>{let{widget:be,linkTitle:Ae,originLinkTarget:Ne,blockKey:Be,start:Ge,end:it}=oe;if(!be||!be.cid)return;const{widget:At,editorState:zt}=this.state;if(!At||!At.cid||At.cid!==be.cid)return;let qt;if(Be){const Ao=zt.getCurrentContent(),_o=Ao.getBlockForKey(Be);if(qt=_o.getEntityAt(Ge),!qt){let zo;_o.findEntityRanges(aa=>(zo=aa.getEntity(),zo!==null&&Ao.getEntity(zo).getType()==="LINK"),(aa,oa)=>{aa===Ge&&it===oa&&(qt=zo)})}}const _n=(0,ja.Bm)(zt.getCurrentContent(),Be,Ge,it,Ne,Ae);if(!_n)return;const $n=(0,ja.N$)(zt,_n);$n&&this.handleEditorStateChange($n);const{dispatch:Fn}=this.props;qt&&Fn({type:od.k.EntryKey["entry:draft:activeEntityKey:update"],payload:{activeEntityKey:qt}})}),(0,Se.A)(this,"handleEditorStateChange",oe=>{let be=oe;M1.forEach(Ae=>{Ae.onChange&&(be=Ae.onChange(be))}),this.setState({editorState:be})}),(0,Se.A)(this,"handleEditorClick",()=>{document.activeElement.contentEditable!=="true"&&this.focus()}),(0,Se.A)(this,"focus",()=>{setTimeout(()=>{this.editorRef&&this.editorRef.focusEditor()},0)}),(0,Se.A)(this,"handlePastedText",(oe,be)=>{if(be){const{editorState:Ae}=this.state,Ne=(0,pe.DL)({html:be,editorState:Ae,inlineProcessType:"merge",componentType:ti.a.COMMON});if(Ne)return this.handleEditorStateChange(Ne),!0}return!1}),(0,Se.A)(this,"handlePastedFiles",oe=>{if(!oe||!oe.length)return;const be=oe[0];if(["image/gif","image/jpg","image/jpeg","image/png","image/svg+xml"].includes(be.type))return T.A.emit("draft:side-toolbar:image-paste",{target:{files:[be]}}),"handled"});const{widget:z}=D,{textV1:X}=z,ie=(0,re.mx)(X),ue=(0,Y.n)(ie);this.blockRendererFn=Yp({alignmentStore:ns.store,resizeableStore:Q2.store,blockKeyStore:A1.store}),this.state={widget:z,editorState:ue,readOnly:!1}}componentDidMount(){if(M1.forEach(D=>{D&&D.initialize&&typeof D.initialize=="function"&&D.initialize(this.getPluginMethods())}),MB.f.editing=!0,MB.f.editingRichText=!0,T.A.on("draft:design:editorState:selection",this.handleEditorSelection),this.focus(),this.editorRef){const D=document.querySelector('.public-DraftEditor-content[contenteditable="true"]');D&&D.addEventListener("compositionstart",this.handleCompositionstart)}}componentWillUnmount(){if(M1.forEach(D=>{D&&D.unmounted&&typeof D.unmounted=="function"&&D.unmounted()}),this.setState=()=>!1,MB.f.editing=!1,MB.f.editingRichText=!1,T.A.off("draft:design:editorState:selection",this.handleEditorSelection),this.editorRef){const D=document.querySelector('.public-DraftEditor-content[contenteditable="true"]');D&&D.removeEventListener("compositionstart",this.handleCompositionstart)}}}const{handleKeyCommand:G0,handleReturn:xd,keyBindingFn:Xp}=A1,T0=[Wo.A,ns,Q2,A1];class Qp extends $l{constructor(D){super(D),(0,Se.A)(this,"editorRef",null),(0,Se.A)(this,"containerRef",null),(0,Se.A)(this,"handleCompositionstart",()=>{const{editorState:oe}=this.state,be=(0,Ro.AR)(oe);this.setState({editorState:be})}),(0,Se.A)(this,"getReadOnly",()=>this.state.readOnly),(0,Se.A)(this,"setReadOnly",oe=>{oe!==this.state.readOnly&&this.setState({readOnly:oe})}),(0,Se.A)(this,"getPluginMethods",()=>({setEditorState:this.handleEditorStateChange,getEditorState:this.getEditorState,getEditorRef:this.getEditorRef,getWidget:this.getWidget,getReadOnly:this.getReadOnly,setReadOnly:this.setReadOnly})),(0,Se.A)(this,"handleEditorStateChange",(oe,be)=>{var Ae;const{isNeedMigrateLinkItalic:Ne,dispatch:Be,widget:Ge}=this.props;let it=oe;const At=(0,_.dM)(it.getCurrentContent()),zt=(0,re.qn)(At);it=(0,Ti.Jk)(At,it,Ge.type),this.setState({editorState:it},()=>{T0.forEach($n=>{$n.onChange&&(it=$n.onChange(it))})}),(Ae=MB)==null||Ae.action("set:rich:text:editor:state",{richTextEditorState:it});const _n=(be==null?void 0:be.isImageInserted)?200:16.7;setTimeout(()=>{const{widgetKey:$n,widget:{textV1:Fn,textV0:{padding:Ao},h:_o,type:zo}}=this.props;let aa=!1,oa=!1;(0,V.eI)(zt,Fn)||(aa=!0);let ma=_o;if(this.editorRef&&this.editorRef.editor&&this.editorRef.editor.editorContainer){ma=this.editorRef.editor.editorContainer.offsetHeight||0;const{showAuthor:er,showTime:Pr}=this.props.widget.info;(er||Pr)&&(ma+=28),ma=ma+(Ao||0)*2,ma<100&&(ma=100),ma>_o&&(oa=zo===C.x.WTear?(0,cl.SW)(ma)&&(0,cl.qz)(ma)!==_o:!0)}if(!aa&&!oa)return;const Ea={key:$n,textV1:void 0,h:void 0,stickyH:void 0,isNeedMigrateLinkItalic:Ne};aa&&(Ea.textV1=zt),zo===C.x.WTear?(0,cl.SW)(ma)&&(Ea.stickyH=(0,cl.qz)(ma)):oa&&(Ea.h=ma),Be({type:od.k.EntryKey["entry:draft:sticky:update"],payload:Ea})},_n)}),(0,Se.A)(this,"linkCallback",oe=>{let{entityKey:be,style:Ae,decoratedText:Ne,url:Be,blockKey:Ge,start:it,end:At}=oe;const{widget:zt,widgetKey:qt,isCreatingLink:_n,dispatch:$n}=this.props;_n||($n({type:od.k.EntryKey["entry:draft:activeEntityKey:update"],payload:{activeEntityKey:be}}),T.A.emit("draft:link-toast:view",{widget:{key:qt,...zt},linkTitle:Ne,linkTarget:Be,style:Ae,blockKey:Ge,start:it,end:At}))}),(0,Se.A)(this,"handleCustomStyleFn",(oe,be)=>{const Ae=be.getText();if((oe==null?void 0:oe.size)===0&&!(Ae!=null&&Ae.length)){const{editorState:Ne}=this.state,Be=Ne.getCurrentInlineStyle();return(0,ja.Od)(Be)}return{}}),(0,Se.A)(this,"handleMouseDown",oe=>{const{dispatch:be}=this.props;if(oe.button===2){if(oe.target.tagName==="IMG")return;be({type:"entry:contextmenu:withtype",payload:{position:{top:oe.clientY,left:oe.clientX},type:"text"}})}}),(0,Se.A)(this,"handleCopy",async(oe,be)=>{const{editorState:Ae}=this.state,Ne=(0,pe.vd)({editorState:Ae,richTextV1:void 0}),Be=(0,yo.u0)(Ae);be&&(be.preventDefault(),be.clipboardData.setData("text/html",Ne),be.clipboardData.setData("text/plain",Be)),await(0,Fd.$H)({hasNotice:!1})?await(0,xl.NO)({html:Ne}):await(0,Fd.qG)({html:Ne,selectionText:Be})}),(0,Se.A)(this,"handleCut",async(oe,be)=>{const{widget:Ae}=this.props,{editorState:Ne}=this.state,Be=(0,yo.u0)(Ne),Ge=(0,pe.ag)({editorState:Ne,richTextV1:void 0,w:Ae.w,h:Ae.h});be&&(be.preventDefault(),be.clipboardData.setData("text/html",Ge),be.clipboardData.setData("text/plain",Be)),await(0,Fd.$H)({hasNotice:!1})?(0,xl.NO)({html:Ge}):(0,Fd.qG)({html:Ge,selectionText:Be})}),(0,Se.A)(this,"handlePaste",async()=>{const oe=await(0,Fd.v)();oe!=null&&oe.content&&this.handlePastedText(oe==null?void 0:oe.content,oe==null?void 0:oe.content)});const{widget:z}=D,{textV1:X}=z,ie=(0,re.mx)(X);let ue=(0,Y.n)(ie);D.isNeedMigrateLinkItalic&&(ue=(0,k1.cA)({textV1:X,editorState:ue})),this.blockRendererFn=Yp({alignmentStore:ns.store,resizeableStore:Q2.store,blockKeyStore:A1.store}),this.state={widget:z,editorState:ue,readOnly:!1}}componentDidUpdate(D){const{widget:{textV0:z}}=D,{widget:{textV1:X,textV0:ie}}=this.props;if(!p1()(z,ie)){const ue=(0,re.mx)(X);this.setState({editorState:(0,Y.n)(ue)})}}componentDidMount(){if(T0.forEach(D=>{D&&D.initialize&&typeof D.initialize=="function"&&D.initialize(this.getPluginMethods())}),MB.f.editing=!0,MB.f.editingRichText=!0,T.A.on("draft:design:editorState:selection",this.handleEditorSelection),T.A.on("draft:text:copy",this.handleCopy),T.A.on("draft:text:cut",this.handleCut),T.A.on("draft:text:paste",this.handlePaste),this.focus(),this.props.is4Tear&&this.containerRef.addEventListener("wheel",this.handleWheel,{passive:!1}),this.handleEditorStateChange(_.$t.moveFocusToEnd(this.state.editorState)),this.editorRef){const D=document.querySelector('.public-DraftEditor-content[contenteditable="true"]');D&&D.addEventListener("compositionstart",this.handleCompositionstart)}}componentWillUnmount(){if(T0.forEach(D=>{D&&D.unmounted&&typeof D.unmounted=="function"&&D.unmounted()}),this.setState=()=>!1,MB.f.editing=!1,MB.f.editingRichText=!1,T.A.off("draft:design:editorState:selection",this.handleEditorSelection),T.A.off("draft:text:copy",this.handleCopy),T.A.off("draft:text:cut",this.handleCut),T.A.off("draft:text:paste",this.handlePaste),this.props.is4Tear&&this.containerRef.removeEventListener("wheel",this.handleWheel,{passive:!1}),this.editorRef){const D=document.querySelector('.public-DraftEditor-content[contenteditable="true"]');D&&D.removeEventListener("compositionstart",this.handleCompositionstart)}}render(){const{activeEntityKey:D,is4Tear:z,widget:X,isNeedMigrateLinkItalic:ie,dispatch:ue}=this.props,{editorState:oe}=this.state,be=X["!liVersion"],Ae=[{strategy:Ya,component:di,props:{callback:this.linkCallback,version:be,isNeedMigrateLinkItalic:ie,dispatch:ue}}];let Ne=!1;(X.type==="wTear"||X.type==="wSticky")&&(Ne=X["!haVersion"]!==3);const Be=X.textV0.horizontalAlign,Ge=ri(Ne,Be);return(0,fe.jsx)(cm.w,{className:Kt()("editing",z&&"wTear"),activeKey:D,ref:this.setContainerEditorRef,onClick:this.handleEditorClick,onMouseDown:this.handleMouseDown,children:(0,fe.jsx)(Do.c,{preserveSelectionOnBlur:!0,wrapperClassName:"draft-common-editor-wrapper",editorClassName:"draft-common-editor",ref:this.setEditorRef,editorState:oe,onEditorStateChange:this.handleEditorStateChange,blockStyleFn:Ge,customDecorators:Ae,customStyleMap:{...ka.a2},customBlockRenderFunc:this.blockRendererFn.bind(this,this.getPluginMethods()),keyBindingFn:Xp.bind(this,this.getPluginMethods()),handleKeyCommand:G0.bind(this,this.getPluginMethods()),handleReturn:xd.bind(this,this.getPluginMethods()),handlePastedText:this.handlePastedText,handlePastedFiles:this.handlePastedFiles,customStyleFn:this.handleCustomStyleFn,onCopy:this.handleCopy,onCut:this.handleCut,textAlign:Be})})}}var gh=s(33908);class Jf extends r.PureComponent{constructor(D){super(D),(0,Se.A)(this,"handleDocDown",z=>{const{item:X,linkToastShow:ie,dispatch:ue}=this.props;if(!z.target.closest(".draft-link-toast")&&ie){["INPUT","LABEL","TEXTAREA"].includes(z.target.tagName)||(z.preventDefault(),z.stopPropagation()),T.A.emit("draft:link-toast:quit");return}if(!(z.target.closest('.public-DraftEditor-content[contenteditable="true"] .draft-image-atomic')||z.target.closest(".image-content"))){if(z.target.closest(".draft-rich-editor-wrapper")){z.stopPropagation();return}if(z.target.closest("#text-settings")||z.target.closest("#text-settings-font-menu")||z.target.closest(".DropdownMenuBase")||z.target.closest('[type="color-panel"]')||z.target.closest(".--mb--color-picker")||z.target.closest(".draft-inline-toolbar")||z.target.closest(".quick-menu-option .content")||z.target.closest(".draft-alignment-toolbar")||z.target.closest(".image-preview-modal-portal")||z.target.closest(".side-sticky-content-menu")||z.target.closest(".context-menu-mask")){z.preventDefault();return}if(z.target.closest(".draft-link-toast")){["INPUT","LABEL","TEXTAREA"].includes(z.target.tagName)||z.preventDefault();return}if(ie){z.preventDefault(),z.stopPropagation();return}z.target.closest("#ai-semantic-modal")||((0,S.ay)(X,"remove"),ue({type:"set:editing:cid",payload:{cid:""}}),ue({type:"colorpanel:set:attr",payload:{attr:void 0}}),ue({type:"colorpanel:set:attrPanel",payload:{attrPanel:void 0}}))}}),(0,Se.A)(this,"getPositionV0",()=>{const{item:z,tearOffset:X,scale:ie}=this.props;if(!z)return{left:0,top:0};if(z.hotAttr.type===C.x.WTear)return(0,cl._l)(z.hotAttr,ie,X);{const{x:ue,y:oe,w:be,h:Ae}=sdkStore.getHotBound(z.key);return{left:ue-be*.5,top:oe-Ae*.5}}}),(0,Se.A)(this,"handleMouseDown",z=>{(0,f.kI)(z)}),this.state={freshCount:0,position:{top:0,left:0,width:0,height:0}}}render(){const{item:D,activeEntityKey:z,isCreatingLink:X,dispatch:ie}=this.props;if(!D)return null;const{hotAttr:ue}=D,oe=ue["!liVersion"]===1,be={position:"absolute",pointerEvents:"auto",...this.getPositionV0(),zIndex:99999};let Ae={...ue,key:D.key,cid:D.key};const Ne=ue.type===C.x.WTear;return Ne&&(Ae={...Ae,h:ue.stickyH,w:280}),(0,fe.jsxs)("div",{className:Kt()("draft-rich-editor-wrapper",{STSticky:Ne}),style:be,"data-cid":D.key,onMouseDown:this.handleMouseDown,children:[(0,fe.jsx)(gh.A,{widget:Ae,isEditingArea:!0,hasPositionStyle:!1,mode:"design",children:(0,fe.jsx)(Qp,{is4Tear:Ne,stickyH:Ae.h,widgetKey:D.key,widget:Ae,activeEntityKey:z,isCreatingLink:X,dispatch:ie,isNeedMigrateLinkItalic:oe})}),(0,fe.jsx)(ha.A,{target:document,onMouseDown:(0,ha.t)(this.handleDocDown)})]})}}const vd=Jf,lf=(0,On.Mz)([Ee.c],K=>K&&(0,Ve.e_)(K.hotAttr.type)?K:null),cf=(0,On.Mz)([lf,od.k.Query.getLinkToastShow,od.k.Query.getActiveEntityKey,i1.yc,od.k.Query.getIsCreatingLink,l.X_],(K,D,z,X,ie,ue)=>({item:K,linkToastShow:D,activeEntityKey:z,tearOffset:X,isCreatingLink:ie,scale:ue})),E1=(0,I.Ng)(K=>cf(K))(vd);var gc=s(27937);const yh=(0,On.Mz)([l.lh,Zn.A6,Q.UV,Q.RX],(K,D,z,X)=>{const ie=K||D;if(!(!ie||z.isTrashed(ie)))return z.getHotItem(ie)}),xh=()=>{var K;const D=(0,I.d4)(yh);if(!D)return null;switch((0,Ve.wz)(D==null||(K=D.hotAttr)==null?void 0:K.type)){case Ve.N1.Text:return(0,fe.jsx)(pn,{});case Ve.N1.RichDraft:return(0,fe.jsx)(sm,{});case Ve.N1.Draft:return(0,fe.jsx)(E1,{});default:return null}},P0=()=>{const K=(0,I.d4)(l.PL).device,D=(0,I.d4)(l.X_),z=(0,I.d4)(yh);if(!z)return null;const X=z.hotAttr.type===C.x.WTear?void 0:{transform:"scale("+D/100+")"};return(0,fe.jsx)("div",{className:"zoom-area editing-text-area "+(0,il.Km)(K),style:X,children:(0,fe.jsx)(gc.tH,{fallback:(0,fe.jsx)(xh,{},z.key),beforeCapture:()=>{console.warn("-- Capture TextEditor error to prevent page crashed\uFF01")},children:(0,fe.jsx)(xh,{},z.key)})})};var bh=s(64972),dp=s(27480),bd=s(27879);const wh=Yt.Ay.div.withConfig({displayName:"styles__StyledSmartSelectionController",componentId:"sc-f8r5qv-0"})(["position:absolute;pointer-events:auto;will-change:transform;&.unclickable{pointer-events:none;}div.tidy-up-button{position:absolute;bottom:5px;right:5px;pointer-events:auto;width:20px;height:20px;background-color:#1684fc;border-radius:4px;white-space:nowrap;will-change:transform;svg{width:20px;height:20px;color:#fff;}}"]),dm=Yt.Ay.div.withConfig({displayName:"styles__StyledGapAdjuster",componentId:"sc-f8r5qv-1"})(["&.gap-adjuster-wrapper{position:absolute;box-sizing:content-box;background-color:#f54edb;background-clip:content-box;pointer-events:auto;border-radius:5px;will-change:transform;cursor:",";}"],K=>K.type==="row"?xn.M.nsResize:xn.M.ewResize);var Jp=function(K){return K.Row="row",K.Column="column",K.Grid="grid",K}(Jp||{}),qp=function(K){return K.Row="row",K.Column="column",K}(qp||{});const pm=K=>{let D=Jp.Grid;return K.length>0&&(K.length===1&&(D=Jp.Row),K.every(z=>z.items.length===1)&&(D=Jp.Column)),D};class df extends r.PureComponent{constructor(){super(...arguments),(0,Se.A)(this,"state",{isLimited:!0,selectedWidgetInfo:[],tidyUpActionType:pm(this.props.sortedRows),filteredSelectedItems:[],aabb:[]}),(0,Se.A)(this,"handleSortWidgets",D=>{D.stopPropagation();const{dispatch:z}=this.props;z({type:"entry:smart-selection:arrange:widgets"})}),(0,Se.A)(this,"onGapAdjusterMouseDown",(D,z,X)=>{const{itemMargin:ie,lineSpace:ue,viewport:oe,dispatch:be}=this.props,{selectedWidgetInfo:Ae}=this.state,{result:Ne}=(0,bd.N8)(Ae,null),{minItemMargin:Be,minLineSpace:Ge}=(0,bd.no)(Ne),it=D.clientX,At=D.clientY;sdkStore.combineMergeMark("adjust-ss-gap");const zt=_n=>{be({type:"reducer:flag:set:is-dragging-item",payload:{isDraggingItem:!0}}),be({type:"reducer:flag:set:is-selection-border-resizer",payload:{isHideSelectionBorder_Resizer:!0}});const{scale:$n}=oe,Fn=(_n.clientX-it)/$n>>0,Ao=(_n.clientY-At)/$n>>0,_o=Math.round(Fn),zo=Math.round(Ao),aa={x:_o,y:zo};if(be(bh.UU.update({[z===qp.Row?"isAdjustingRowGap":"isAdjustingColGap"]:!0})),z===qp.Column){const oa=Math.max(Math.round(ie+aa.x*X),Be);be({type:"entry:smart-selection:updating:gap",payload:{colGap:oa}})}if(z===qp.Row){const oa=Math.max(Math.round(ue+aa.y*X),Ge);be({type:"entry:smart-selection:updating:gap",payload:{rowGap:oa}})}},qt=()=>{be({type:"reducer:flag:set:is-selection-border-resizer",payload:{isHideSelectionBorder_Resizer:!1}}),be({type:"reducer:flag:set:is-dragging-item",payload:{isDraggingItem:!1}}),be(bh.UU.update({isAdjustingColGap:!1,isAdjustingRowGap:!1})),be({type:"entry:select:smartly"}),document.removeEventListener("pointermove",zt),document.removeEventListener("pointerup",qt),sdkStore.combineMerge("adjust-ss-gap")};return document.addEventListener("pointermove",zt),document.addEventListener("pointerup",qt),!0})}static getDerivedStateFromProps(D,z){var X,ie,ue,oe;let{prevProps:be,selectedWidgetInfo:Ae}=z;if((D==null||(X=D.selectedItems)==null?void 0:X.length)!==(be==null||(ie=be.selectedItems)==null?void 0:ie.length)){const Ne=(0,bd.$3)(D.selectedItems),Be=Ne.map(At=>At.key),Ge=(0,bd.cb)(Ne),it=pm(D.sortedRows);return{filteredSelectedItems:Ne,selectedWidgetInfo:Ge,aabb:sdkStore.getHotKeyListAABB(Be),isLimited:Ge.findIndex(At=>{let{wW:zt,wH:qt}=At;return zt*D.viewport.scale<40||qt*D.viewport.scale<40})!==-1,tidyUpActionType:it}}if((D==null||(ue=D.viewport)==null?void 0:ue.scale)!==(be==null||(oe=be.viewport)==null?void 0:oe.scale))return{isLimited:Ae.findIndex(Ne=>{let{wW:Be,wH:Ge}=Ne;return Be*D.viewport.scale<40||Ge*D.viewport.scale<40})!==-1}}render(){const{isActive:D,lineSpace:z,itemMargin:X,sortedRows:ie,isAdjustingRowGap:ue,isAdjustingColGap:oe,isUnSmartSelectable:be,viewport:Ae,isDraggingItem:Ne}=this.props,{isLimited:Be,selectedWidgetInfo:Ge,tidyUpActionType:it,filteredSelectedItems:At,aabb:zt}=this.state;if(be||At.length<2)return null;const{scale:qt}=Ae,[_n,$n,Fn,Ao]=zt,_o=Fn-_n,zo=Ao-$n,aa={width:_o*qt,height:zo*qt,transform:"translate("+_n*qt+"px,"+$n*qt+"px)"},oa={transform:it===Jp.Column?"rotate(90deg)":void 0};return(0,fe.jsxs)("div",{className:"smart-wrap",children:[(0,fe.jsx)(wh,{className:ii.c.GUIDE_COPY_AS_PNG,ref:this.smartSelectionController,onMouseDown:ma=>ma.currentTarget.classList.add("unclickable"),style:aa,children:!D&&qt>=.3&&(0,fe.jsx)("div",{className:"tidy-up-button",onMouseDown:this.handleSortWidgets,style:oa,children:(0,fe.jsx)(Wi.C,{name:"art_board/smart_selection/"+it})})}),D&&!Ne&&!Be&&!(ue||oe)&&uf({viewport:Ae,itemMargin:X,lineSpace:z,sortedRows:ie,selectedWidgetInfo:Ge,handleGapAdjusterMouseDown:this.onGapAdjusterMouseDown,isAdjustingGap:oe||ue}),(ue||oe)&&pf({isAdjustingRowGap:ue,isAdjustingColGap:oe,lineSpace:z,itemMargin:X,selectedWidgetInfo:Ge,sortedRows:ie,scale:qt})]})}}const um=K=>{let{type:D,position:z,ratio:X,scale:ie,handleMouseDown:ue,isAdjustingGap:oe,lineWidth:be}=K;const Ae=D==="row"?be*ie*.8:2,Ne=D==="row"?2:16,Be=z.x*ie-Ae/2-(D==="row"?0:8),Ge=z.y*ie-Ne/2-(D==="row"?8:0),it=D==="row"?"8px 0":"0 8px",At={opacity:oe?"0":"1",transform:"translate("+Be+"px,"+Ge+"px)",padding:it,width:Ae+"px",height:Ne+"px"};return(0,fe.jsx)(dm,{className:"gap-adjuster-wrapper",style:At,type:D,onPointerDown:zt=>ue(zt,D,X)})},pf=K=>{let{isAdjustingRowGap:D,isAdjustingColGap:z,sortedRows:X,selectedWidgetInfo:ie,lineSpace:ue,itemMargin:oe,scale:be}=K,Ae=null;return X.flatMap((Be,Ge)=>{const{items:it,rowH:At}=Be,zt=[];if(D){const{w:qt,x:_n}=dp.rw.enclosing(ie.flatMap($n=>S2.a.points($n.boundingPoints)));if(Ge>0&&Ae!==null){const $n={x:_n,y:Ae,w:Math.abs(qt),h:Math.abs(ue)};ue<0&&($n.y=$n.y+ue);const Fn=dp.rw.xywh($n.x*be,$n.y*be,$n.w*be,$n.h*be);zt.push(Fn),Ae=Ae+ue+At}else Ae=X[0].centerY+X[0].rowH*.5}if(z){let qt=0,_n=null;for(;qt<it.length;){const $n=it[qt];if(_n!==null){const Fn={x:_n.x,y:_n.y,w:Math.abs(oe),h:Math.abs(At)};oe<0&&(Fn.x=Fn.x+oe);const Ao=dp.rw.xywh(Fn.x*be,Fn.y*be,Fn.w*be,Fn.h*be);zt.push(Ao),_n=ne.Z.xy(_n.x+oe+$n.width,_n.y)}else _n=ne.Z.xy($n.boundingPoints.tr.x,Math.min(...it.map(Fn=>Fn.boundingPoints.tr.y)));qt++}}return zt}).map((Be,Ge)=>{const it={position:"absolute",width:Be.w,height:Be.h,transform:"translate("+Be.x+"px,"+Be.y+"px)",zIndex:9999,backgroundColor:"rgba(245, 78, 219, 0.3)"};return(0,fe.jsx)("div",{style:it},Ge)})},uf=K=>{let{sortedRows:D,selectedWidgetInfo:z,itemMargin:X,lineSpace:ie,viewport:ue,handleGapAdjusterMouseDown:oe,isAdjustingGap:be}=K;const Ae=[];return D.forEach((Ne,Be)=>{const{centerY:Ge,items:it}=Ne,{w:At,x:zt}=dp.rw.enclosing(z.flatMap(Fn=>S2.a.points(Fn.boundingPoints))),qt=D[Be-1];if(Be>0){const Fn={x:zt,y:qt.centerY+qt.rowH*.5,w:At,h:ie},Ao=dp.rw.center(Fn),_o=At*ue.scale,zo=1/(Be-.5),aa=ne.Z.div(ne.Z.xy(_o*.4+bd.v_,3+bd.v_),ue.scale),oa=B.L.apply(ue,ne.Z.subtract(Ao,aa)),ma=ne.Z.xy(_o*.8+bd.v_*2,6+bd.v_*2),Ea={x:oa.x,y:oa.y,w:ma.x,h:ma.y};Ae.push({type:"row",rect:Ea,rowIndex:Be,ratio:zo,position:Ao,lineWidth:At})}let _n=0,$n=null;for(;_n<it.length;){const Fn=it[_n];if($n!==null){const Ao=$n+X*.5,_o=Ge,zo=1/(_n-.5),aa=ne.Z.div(ne.Z.xy(1+bd.v_,9+bd.v_),ue.scale),oa=B.L.apply(ue,ne.Z.subtract(ne.Z.xy(Ao,_o),aa)),ma=ne.Z.xy(4+bd.v_*2,18+bd.v_*2),Ea={x:oa.x,y:oa.y,w:ma.x,h:ma.y};Ae.push({type:"column",rect:Ea,rowIndex:Be,ratio:zo,scale:ue.scale,position:{x:Ao,y:_o}})}$n=Fn.boundingPoints.br.x,_n++}}),Ae.map((Ne,Be)=>(0,fe.jsx)(um,{...Ne,scale:ue.scale,handleMouseDown:oe,isAdjustingGap:be},Be))},hm=(0,On.Mz)([$c.P2,$c.tR],(K,D)=>K?D===Dn.bl.slicing:!1),hf=(0,On.Mz)([nr.nE,Mo.$,l.$S,l.ER,l.X_,l.Jv,hm,l.pO],(K,D,z,X,ie,ue,oe,be)=>{const{isHidden:Ae,isActive:Ne,rowStates:Be,rowGap:Ge,colGap:it,changes:At,enableMarginChange:zt,isDragging:qt,isResizingGap:_n,isAdjustingColGap:$n,isAdjustingRowGap:Fn}=D,Ao={scale:ie/100,size:z,offset:X};return{changes:At,sortedRows:Be,lineSpace:Ge,itemMargin:it,rowGap:Ge,colGap:it,viewport:Ao,isActive:Ne,selectedItems:K,isDragging:qt,isAdjustingColGap:$n,isAdjustingRowGap:Fn,isUnSmartSelectable:!zt||ue||_n||Ae||oe,isDraggingItem:be}}),mf=(0,I.Ng)(K=>hf(K))(df),I1={position:"absolute",top:0,left:0,pointerEvents:"none"},Ch=()=>(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsxs)("div",{className:"fe-canvas",style:I1,children:[(0,fe.jsx)(u,{}),(0,fe.jsx)(Ld,{}),(0,fe.jsx)(Zh,{}),(0,fe.jsx)(mf,{}),(0,fe.jsx)(Dc,{})]}),(0,fe.jsx)(P0,{})]}),wd=()=>{const K=(0,I.d4)(U._b),D={position:"absolute",top:0,left:0,pointerEvents:"none"};return(0,fe.jsxs)("div",{className:"ro-fe-canvas",id:"ro-fe-canvas",style:D,children:[!K&&(0,fe.jsx)(Ld,{}),(0,fe.jsx)(Vp,{})]})},$f=Yt.Ay.div.withConfig({displayName:"styles__StyledAIHTMLCtrlBar",componentId:"sc-11x62dz-0"})(["position:absolute;border-radius:8px;border:1px solid ",";box-shadow:0px 4px 10px 0px rgba(0,0,0,0.10);display:flex;background:",";z-index:150;> *{transition:all 0.3s ease-in-out;}&:not(.is-collapsed){> *{opacity:0;}}.handle{width:22px;background:",";display:grid;grid-template-columns:1fr 1fr;grid-template-rows:auto auto auto;gap:2.5px;padding:14px 7.5px;cursor:grab;&.is-grabbing{cursor:grabbing;}&:hover{.knob{background:#7582FF;}}.knob{width:2.5px;height:2.5px;background:",";border-radius:100%;}}.btn-container{padding:4px 6px;display:flex;gap:6px;.divider{height:16px;border:0.5px solid ",";align-self:center;border-radius:1px;}.status{.spinner{width:14px;height:14px;border-radius:50%;border:2px solid transparent;border-top:2px #7582FF solid;border-right:2px #7582FF solid;border-bottom:2px #7582FF solid;animation:spin 1.5s linear infinite;}@keyframes spin{0%{transform:rotate(0deg);}100%{transform:rotate(360deg);}}}.status,.expand,.close{display:flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:6px;cursor:pointer;&:not(.status) svg{color:",";}svg{width:32px;height:32px;}&:hover{background:",";}&:active{background:",";}}}"],K=>K.theme.color_btn_secondary_hover,K=>K.theme.color_bg_white,K=>K.theme.color_navigation_hover,K=>K.theme.color_text_disabled01,K=>K.theme.color_btn_secondary_hover,K=>K.theme.color_text_L1,K=>K.theme.color_btn_secondary_hover,K=>K.theme.color_btn_secondary_active),ff=Yt.Ay.div.withConfig({displayName:"styles__StyledAIHTMLIframe",componentId:"sc-11x62dz-1"})(["width:100vw;height:100vh;background:rgba(247,247,253,1);position:absolute;top:0;left:0;z-index:2147483647;transform:scale(1);transition:transform .3s ease-in-out,opacity .3s ease-in-out;display:flex;flex-direction:column;iframe{width:100%;height:100%;border:none;}"]),Sh=K=>{let{embededPotato:D,collapsed:z,position:X,onLoadingChange:ie}=K;const[ue,oe]=(0,r.useState)(!0),be=(0,I.d4)(U.w5),Ae=(0,I.d4)(U.P$),Ne=(0,I.d4)(U.vN),Be=(0,I.d4)(U.C1),Ge=(0,r.useMemo)(()=>{const zt=new URLSearchParams;return zt.append("defaultAgentType",Ne||"prototyping"),zt.append("isLoadInPrototype","true"),Be&&zt.append("fileStorageKey",Be),be&&zt.append("presetScene",be),Ae&&zt.append("source",Ae),new URL("/ai",location.origin).toString()+"?"+zt.toString()},[be,Ae]),it=(0,r.useMemo)(()=>{const zt=X.left+75+"px "+X.top+"px";return z?{transform:"scale(0.1)",opacity:0,pointerEvents:"none",transformOrigin:zt}:{transformOrigin:zt}},[z,X.left,X.top]),At=()=>{oe(!1)};return(0,r.useEffect)(()=>{ie==null||ie(ue)},[ue,ie]),(0,fe.jsx)(ff,{style:it,children:(0,fe.jsx)("iframe",{src:Ge,ref:D,onLoad:At,title:be||"Modao AI"})})},gf=()=>{const K=(0,I.wA)(),D=(0,I.d4)(U.Rk),z=(0,I.d4)(U.bT),[X,ie]=(0,r.useState)("idle"),ue=(0,r.useRef)(""),[oe,be]=(0,r.useState)(!1),Ae=(0,I.d4)(ze.uE),Ne=(0,I.d4)(q.bP),Be=(0,I.d4)(ze.Xf),Ge=(0,I.d4)(l.$S),it=(0,r.useRef)(!1),[At,zt]=(0,r.useState)(!0),[qt,_n]=(0,r.useState)({top:0,left:0}),$n=(0,r.useRef)(null);(0,r.useEffect)(()=>{Ge&&!it.current&&(_n({top:window.innerHeight-64,left:(Be?Ae:0)+(Ne==="old_right"?0:w.fn)+(Ge==null?void 0:Ge.width)/2-75}),it.current=!0)},[Be,Ae,Ne,Ge]);const Fn=(0,r.useCallback)(oa=>{be(!0);const ma=oa.clientX-qt.left,Ea=oa.clientY-qt.top,er=Aa=>{_n({left:Math.max(Math.min(Aa.clientX-ma,window.innerWidth-150),0),top:Math.max(Math.min(Aa.clientY-Ea,window.innerHeight-64),0)})},Pr=()=>{be(!1),window.removeEventListener("mousemove",er),window.removeEventListener("mouseup",Pr)};window.addEventListener("mousemove",er),window.addEventListener("mouseup",Pr)},[qt]),Ao=()=>{X==="pending"?MB.global.popupHelper.confirmAsync({title:I18N.Popups.terminateAIHTMLTask,desc:I18N.Popups.terminateAIHTMLTaskDesc,confirmText:I18N.Popups.terminateAIHTMLTaskConfirm,cancelText:I18N.Popups.terminateAIHTMLTaskCancel}).then(oa=>{oa&&(K(y.GO.disableAIHTML()),MB.commonGuideHelper.restoreAllGuides(),K(y.GO.updateAIHTMLSceenTag("")),K(y.GO.updateAIHTMLSource("")))}):(K(y.GO.disableAIHTML()),MB.commonGuideHelper.restoreAllGuides(),K(y.GO.updateAIHTMLSceenTag("")),K(y.GO.updateAIHTMLSource("")))},_o=()=>{K(y.GO.expandAIHTML()),MB.commonGuideHelper.hideAllGuides(),X!=="pending"&&ie("idle")},zo=()=>{K(y.GO.collapseAIHTML()),MB.commonGuideHelper.restoreAllGuides(),ie(oa=>oa!=="pending"?"idle":oa)};(0,r.useEffect)(()=>{const oa=async ma=>{switch(ma.data.type){case"begin-generate":{ie("pending"),ue.current=ma.data.msgCid;break}case"succeed-generate":{ma.data.msgCid===ue.current&&(ie("succeeded"),ue.current="");break}case"fail-generate":{ma.data.msgCid===ue.current&&(ie("failed"),ue.current="");break}case"collapse-me":{zo();break}case"close-me":{K(y.GO.disableAIHTML()),MB.commonGuideHelper.restoreAllGuides();break}case"succeed-export":{const{htmlText:er,htmlString:Pr}=ma.data;K({type:"entry:import:aihtml",payload:{htmlText:er,htmlString:Pr}}),zo();break}case"fail-export":{MB.notice({text:ma.data.reason,type:"error"});break}case"request-auth-info-and-start":{var Ea;(Ea=$n.current)==null||Ea.contentWindow.postMessage({type:"start",uId:MB.user.id,upperCid:MB.getRootProject().cid});break}}};return window.addEventListener("message",oa),()=>{window.removeEventListener("message",oa)}},[]);const aa=()=>{const oa=Math.max(Math.min(qt.left,window.innerWidth-150),0),ma=Math.max(Math.min(qt.top,window.innerHeight-64),0);_n({left:oa,top:ma})};return(0,r.useEffect)(()=>(window.addEventListener("resize",aa),()=>{window.removeEventListener("resize",aa)}),[aa]),(0,r.useEffect)(()=>{z&&!D&&(At?MB.safeLoading(I18N.dModals.in_progress):MB.safeLoading(!1))},[z,D,At]),(0,r.useEffect)(()=>{z||(zt(!0),ie("idle"))},[z]),z?(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsxs)($f,{id:"aihtml-ctrl-bar",className:Kt()({"is-collapsed":D}),style:{...qt},children:[(0,fe.jsx)("div",{className:Kt()("handle",{"is-grabbing":oe}),onMouseDown:Fn,children:Array(6).fill(1).map((oa,ma)=>(0,fe.jsx)("div",{className:"knob"},ma))}),(0,fe.jsxs)("div",{className:"btn-container",children:[(0,fe.jsx)(z1.A,{enterHoverTime:400,isSkipShortTimerHover:!0,content:I18N.aiHTML["generate_"+X],direction:"up",children:(0,fe.jsx)("div",{className:Kt()("status",{succeeded:X==="succeeded",failed:X==="failed"}),onClick:_o,children:X==="pending"?(0,fe.jsx)("div",{className:"spinner"}):(0,fe.jsx)(Wi.C,{name:"aihtml/"+X,isColorPure:!0})})}),(0,fe.jsx)("div",{className:"divider"}),(0,fe.jsx)(z1.A,{enterHoverTime:400,isSkipShortTimerHover:!0,content:I18N.Common.expandPanel,direction:"up",children:(0,fe.jsx)("div",{className:"expand",onClick:_o,children:(0,fe.jsx)(Wi.C,{name:"aihtml/expand"})})}),(0,fe.jsx)(z1.A,{enterHoverTime:400,isSkipShortTimerHover:!0,content:I18N.Common.close,direction:"up",children:(0,fe.jsx)("div",{className:"close",onClick:Ao,children:(0,fe.jsx)(Wi.C,{name:"aihtml/close"})})})]})]}),(0,fe.jsx)(Sh,{embededPotato:$n,collapsed:D,position:qt,onLoadingChange:zt})]}):null}},4803:(Qn,qe,s)=>{"use strict";s.d(qe,{A:()=>M});var r=s(38502),I=Object.defineProperty,J=Object.defineProperties,N=Object.getOwnPropertyDescriptors,T=Object.getOwnPropertySymbols,te=Object.prototype.hasOwnProperty,q=Object.prototype.propertyIsEnumerable,ne=(w,y,j)=>y in w?I(w,y,{enumerable:!0,configurable:!0,writable:!0,value:j}):w[y]=j,B=(w,y)=>{for(var j in y||(y={}))te.call(y,j)&&ne(w,j,y[j]);if(T)for(var j of T(y))q.call(y,j)&&ne(w,j,y[j]);return w},l=(w,y)=>J(w,N(y)),U=(w,y)=>{var j={};for(var Q in w)te.call(w,Q)&&y.indexOf(Q)<0&&(j[Q]=w[Q]);if(w!=null&&T)for(var Q of T(w))y.indexOf(Q)<0&&q.call(w,Q)&&(j[Q]=w[Q]);return j},M=(0,r.forwardRef)((w,y)=>{var j=w,{size:Q,spin:ze,style:me}=j,Se=U(j,["size","spin","style"]);const Me=B(B({width:Q||"var(--x-icon-size, 1em)",height:Q||"var(--x-icon-size, 1em)",animation:ze?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),me);return r.createElement("svg",l(B({ref:y,style:Me},Se),{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),r.createElement("path",{d:"M12 5.25C12.4142 5.25 12.75 5.58579 12.75 6V11.25H18C18.4142 11.25 18.75 11.5858 18.75 12C18.75 12.4142 18.4142 12.75 18 12.75H12.75V18C12.75 18.4142 12.4142 18.75 12 18.75C11.5858 18.75 11.25 18.4142 11.25 18V12.75H6C5.58579 12.75 5.25 12.4142 5.25 12C5.25 11.5858 5.58579 11.25 6 11.25H11.25V6C11.25 5.58579 11.5858 5.25 12 5.25Z",fill:"#19191A"}))})},5352:(Qn,qe,s)=>{"use strict";s.d(qe,{A:()=>M});var r=s(25582),I=s.n(r),J=s(38502),N=s(53732),T=s.n(N),te=s(67787);const q=te.Ay.div.withConfig({displayName:"styles__StyledBorderResizer",componentId:"sc-13o263g-0"})(["position:absolute;z-index:3;.v-resizer{z-index:11;}&.top,&.bottom{left:0;width:100%;height:3px;cursor:ns-resize;}&.top{top:1px;}&.bottom{bottom:-1px;}&.left,&.right{top:0;width:3px;height:100%;cursor:ew-resize;}&.left{left:1px;}&.right{right:0;}&:hover,&.active{background:#ff6161;}&.none-active-style{&:hover,&.active{background:none;}}"]),ne=(0,te.DU)([".body-ns-resize{cursor:ns-resize !important;width:100%;height:100%;position:fixed;z-index:10000;}.body-ew-resize{cursor:ew-resize !important;width:100%;height:100%;position:fixed;z-index:10000;}"]);var B=s(72214);function l(w,y,j){return(y=U(y))in w?Object.defineProperty(w,y,{value:j,enumerable:!0,configurable:!0,writable:!0}):w[y]=j,w}function U(w){var y=C(w,"string");return typeof y=="symbol"?y:y+""}function C(w,y){if(typeof w!="object"||!w)return w;var j=w[Symbol.toPrimitive];if(j!==void 0){var Q=j.call(w,y||"default");if(typeof Q!="object")return Q;throw new TypeError("@@toPrimitive must return a primitive value.")}return(y==="string"?String:Number)(w)}class M extends J.Component{constructor(){super(),l(this,"handleDown",y=>{y.preventDefault();const{placement:j,value:Q,onResizeStart:ze,onResizeEnd:me,onChange:Se}=this.props,Me=["left","right"].includes(j),De=Me?y.clientX:y.clientY,tt=["bottom","right"].includes(j)?1:-1;this.setState({active:!0}),ze();const at=document.createElement("div");document.body.appendChild(at),at.classList.add(Me?"body-ew-resize":"body-ns-resize");const ht=$=>{const{min:mt,max:yt}=this.props,He=((Me?$.clientX:$.clientY)-De)*tt,ye=Math.max(Math.min(Q+He,yt),mt);Se(ye)},Je=()=>{at.remove(),document.removeEventListener("mousemove",ht),document.removeEventListener("mouseup",Je),this.setState({active:!1}),me()};document.addEventListener("mousemove",ht),document.addEventListener("mouseup",Je)}),this.state={active:!1}}render(){const{placement:y,className:j}=this.props,{active:Q}=this.state;return(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(q,{className:T()("border-resizer",j,y,{active:Q}),onMouseDown:this.handleDown}),(0,B.jsx)(ne,{})]})}}l(M,"propTypes",{placement:I().oneOf(["top","left","right","bottom"]),min:I().number,max:I().number,className:I().string,value:I().number,onChange:I().func,onResizeStart:I().func,onResizeEnd:I().func}),l(M,"defaultProps",{onResizeStart:()=>null,onResizeEnd:()=>null})},6323:(Qn,qe,s)=>{"use strict";s.d(qe,{A:()=>q});var r=s(59895),I=s(76241),J=s(91834),N=s(38502),T=["show"];function te(ne,B){if(!B.max)return!0;var l=B.strategy(ne);return l<=B.max}function q(ne,B){return N.useMemo(function(){var l={};B&&(l.show=(0,J.A)(B)==="object"&&B.formatter?B.formatter:!!B),l=(0,I.A)((0,I.A)({},l),ne);var U=l,C=U.show,M=(0,r.A)(U,T);return(0,I.A)((0,I.A)({},M),{},{show:!!C,showFormatter:typeof C=="function"?C:void 0,strategy:M.strategy||function(w){return w.length}})},[ne,B])}},6357:(Qn,qe,s)=>{"use strict";s.d(qe,{g$:()=>T,hb:()=>te,nU:()=>J,n_:()=>N});var r=s(67787),I=s(21066);const J=(0,r.Ay)(I.Ay).withConfig({displayName:"styles__StyledRightClickMenu",componentId:"sc-11cd6gn-0"})(["ul{padding:8px;border-radius:8px;background:",";box-shadow:",";border:1px solid ",";}li.MenuItem{&:not(.disabled).active{a{background:",";border-radius:4px;}}a{color:",";svg:not(.is-multi-color-icon) > path{fill:",";}.right-arrow svg > path{fill:",";}.shortfont kbd{color:",";}}&.disabled{a{color:",";svg path{fill:",";}.shortfont kbd{color:",";}}}&.in-beta-icon{a{flex-direction:row-reverse;justify-content:flex-end;.beta{width:31px !important;height:14px !important;}> span{flex:none;margin-right:4px;}}}}"],q=>q.theme.color_bg_white,q=>q.theme.shadow_m,q=>q.theme.color_bg_border_01,q=>q.theme.color_btn_secondary_hover,q=>q.theme.color_text_L1,q=>q.theme.color_text_L1,q=>q.theme.color_text_L3,q=>q.theme.color_text_L3,q=>q.theme.color_text_disabled01,q=>q.theme.color_text_disabled01,q=>q.theme.color_text_disabled01),N=r.Ay.div.withConfig({displayName:"styles__StyledIconMenuItem",componentId:"sc-11cd6gn-1"})(["display:flex;align-items:center;justify-content:space-between;height:28px;li.MenuItem{flex:1;a{padding-right:6px;}}.icon-box{flex:0 0 26px;height:24px;display:flex;align-items:center;justify-content:center;cursor:pointer;position:relative;svg.svg-icon{width:16px;}& .menu-z_forward,.menu-z_backward{svg.svg-icon{width:24px;}}&::before{display:inline-block;content:'';width:1px;height:16px;background:",";position:absolute;left:0;margin:0 2px;}&.disabled{opacity:0.4;cursor:not-allowed;a{cursor:not-allowed;}}&:not(.disabled):hover{background:#666;}&.forward,&.backward,&.unGroup{a{color:#979797;}}&.menu-right-box{padding-left:5px;padding-right:10px;&.from-topbar{padding-right:12px;}&:hover{background:rgba(0,0,0,0);}.auto-fill-box:hover{background:#666;}.menu-icon-box{width:24px;height:24px;display:flex;align-items:center;justify-content:center;border-radius:4px;color:",";&:hover{background:",";}}}&.unGroup{svg.svg-icon{path{&:nth-child(2),&:nth-child(4){fill:#dedee4;}}}}}.en-auto-fill-box{position:absolute;right:14px;pointer-events:none;width:24px;&.from-topbar{right:12px;}svg{width:24px;height:24px;}}"],q=>q.theme.color_bg_border_01,q=>q.theme.color_text_L1,q=>q.theme.color_btn_secondary_hover),T=r.Ay.div.withConfig({displayName:"styles__StyledMenuItemTips",componentId:"sc-11cd6gn-2"})(["display:flex;align-items:center;height:28px;position:relative;li.MenuItem{width:100%;a{padding-right:8px;}}.tipsIcon{position:absolute;right:10px;top:0px;width:24px;height:24px;border-radius:4px;path{color:",";}&:not(.disabled):hover{background:",";}&:not(.disabled):active{background:",";}}"],q=>q.theme.color_text_L1,q=>q.theme.color_btn_secondary_hover,q=>q.theme.color_btn_secondary_hover),te=(0,r.DU)(["#IBOT_TOOLTIP_ROOT{.tips-container{&.Tip.on-right{transform:translate(0,-50%);}&.is-open{transform:translate(0,-50%);}}}"])},6991:(Qn,qe,s)=>{"use strict";s.d(qe,{s:()=>C});var r=s(38502),I=s(78401),J=s(30728),N=s(33908),T=s(35862),te=s(18381),q=s(73629),ne=s(36449),B=s(13642),l=s(34602),U=s(72214);function C(M){const{activeTear:w,mode:y,isReadonly:j,scale:Q,tearOffset:ze,editingCid:me,activeCanvasKey:Se,activePageKey:Me,STBasketMap:De,scrollLeft:tt,scrollTop:at,basketScrollTopMap:ht,basketScrollLeftMap:Je}=M,{hotAttr:$}=w,mt=(0,te.wA)(),yt=(0,r.useRef)(null),Le=(0,r.useCallback)(ot=>{var we;ot.stopPropagation(),(ot.metaKey||ot.ctrlKey)&&ot.preventDefault(),((we=document.elementFromPoint(ot.clientX,ot.clientY))==null?void 0:we.closest("a"))||(mt({type:ne.k.EntryKey["entry:draft:activeEntityKey:update"],payload:{activeEntityKey:""}}),B.A.emit("draft:link-toast:hide"))},[mt]),He=(0,r.useCallback)(ot=>{ot.stopPropagation();const we=document.elementFromPoint(ot.clientX,ot.clientY);if(j&&we&&(we.tagName==="SPAN"||we.tagName==="P"||we.tagName==="IMG"))return;const $e={x:ot.clientX,y:ot.clientY},ge=ze;mt({type:"ST:update",payload:{isDraggingWTear:!1}}),mt({type:"ST:update",payload:{isDraggingTearSticky:!0}}),(0,I.FJ)({onDrag:(Ze,W)=>{const an={x:Ze,y:W},_t=J.Z.subtract(an,$e),{x:nn,y:Oe}=J.Z.add(J.Z.xy(ge.left,ge.top),_t),sn={...ge,left:nn,top:Oe};mt({type:"ST:update",payload:{tearOffset:sn}})},onDrop:()=>{mt({type:"ST:update",payload:{isDraggingTearSticky:!1}})}})},[mt,j,ze]),ye=(0,r.useCallback)(()=>{$.isLock||j||mt({type:"set:editing:cid",payload:{cid:w.key}})},[w.key,mt,j,$.isLock]);if((0,r.useEffect)(()=>{var ot;return(ot=yt.current)==null||ot.addEventListener("wheel",Le,{passive:!1}),mt({type:"ST:update",payload:{isShowTearSticky:!0}}),()=>{var we;(we=yt.current)==null||we.removeEventListener("wheel",Le,{passive:!1}),mt({type:"ST:update",payload:{isDraggingTearSticky:!1,isShowTearSticky:!1,isLeftDown:!1,tearOffset:{left:0,top:0}}})}},[mt,Le]),(w==null?void 0:w.key)===me)return null;const je=y==="design"?(0,q._l)(w==null?void 0:w.hotAttr,Q,ze):(0,q.Ot)({tearAttr:$,scale:Q,activeCanvasKey:Se,scrollTop:at,scrollLeft:tt,activePageKey:Me,STBasketMap:De,basketScrollTopMap:ht,basketScrollLeftMap:Je,tearOffset:ze});if(y==="preview"){const ot=document.querySelector("#pscreen"+Se);if(ot){const{translateX:we,translateY:$e}=(0,l.q)(ot);je.transform="translate("+we*Q/100+"px, "+$e*Q/100+"px)"}}return(0,U.jsx)("div",{"data-cid":w.key,className:"STSticky tear-sticky-panel-container wiggle--wiggle--animate",style:{...je,width:"280px",position:"absolute"},onMouseDown:He,onDoubleClick:ye,ref:yt,children:(0,U.jsx)(N.A,{widget:{...$,w:280,h:$.stickyH},children:y==="design"?(0,U.jsx)(T.M,{is4Tear:!0,widget:{...$,w:280,h:$.stickyH,cid:w.key},placeHolderColor:"#7D8694"}):(0,U.jsx)(T.a,{is4Tear:!0,widget:{...$,w:280,h:$.stickyH,cid:w.key},placeHolderColor:"#7D8694",isPreview:!0})})})}},8342:(Qn,qe,s)=>{"use strict";s.d(qe,{c:()=>te});var r=s(93413),I=s(32060),J=s(81717),N=s(10245),T=s(47695);const te=q=>({[r.c.INTER_SWITCHABLE_VIEW_MODE_RELOCATED_INSPECT_TOGGLE]:{selector:"."+r.c.INTER_SWITCHABLE_VIEW_MODE_RELOCATED_INSPECT_TOGGLE,relativePos:"top",content:q.CommonGuides.inspect_feature_locate_bottom},[r.c.INTER_SWITCHABLE_VIEW_MODE_OV_TOGGLE_PANE_BTN]:{selector:"."+r.c.INTER_SWITCHABLE_VIEW_MODE_OV_TOGGLE_PANE_BTN+".left",relativePos:"right",content:q.CommonGuides.toggle_left_panel},[r.c.INTER_SWITCHABLE_VIEW_MODE_PV_TOGGLE_PANE_BTN]:{selector:"."+r.c.INTER_SWITCHABLE_VIEW_MODE_PV_TOGGLE_PANE_BTN+".left",relativePos:"right",content:q.CommonGuides.toggle_left_panel},[r.c.GUIDE_2309_CLICK_SHARE]:{selector:"."+r.c.GUIDE_2309_CLICK_SHARE,relativePos:"bottom",content:"\u70B9\u51FB\u5206\u4EAB\u6309\u94AE\u5373\u53EF\u5FEB\u901F\u5C06\u539F\u578B\u5206\u4EAB\u7ED9\u4ED6\u4EBA\uFF0C\u5FEB\u6765\u8BD5\u8BD5\u5427\uFF01",offset:{x:-82,y:-8},arrowPosition:{left:196},howToShow:ne=>{let{isInDesign:B=!0}=ne;(0,I.CK)()&&setTimeout(()=>{var l;const U=(l=MB.getRootProject())==null?void 0:l.scene_tag;if((0,J.IP)(U),!(0,I.CK)())return!1;MB.commonGuideHelper.tryToShowGuide(r.c.GUIDE_2309_CLICK_SHARE),MB.commonGuideHelper.markGuideAsRead(r.c.GUIDE_2309_CLICK_SHARE)},B?N.b:0)}},[r.c.GUIDE_2407_PREVIEW]:{selector:"."+r.c.GUIDE_2407_PREVIEW,relativePos:"bottom",content:"\u70B9\u51FB\u6309\u94AE\u5373\u53EF\u4F53\u9A8C\u771F\u673A\u4EA4\u4E92\u6548\u679C\uFF0C\u5FEB\u6765\u8BD5\u8BD5\u5427\uFF01",offset:{x:-82,y:-3},arrowPosition:{left:196},howToShow:ne=>{let{isInDesign:B=!0}=ne;(0,I.WM)()&&setTimeout(()=>{var l;const U=(l=MB.getRootProject())==null?void 0:l.scene_tag;if((0,J.t4)(U),!(0,I.WM)())return!1;MB.commonGuideHelper.tryToShowGuide(r.c.GUIDE_2407_PREVIEW),MB.commonGuideHelper.markGuideAsRead(r.c.GUIDE_2407_PREVIEW)},B?N.b:0)}},[r.c.GUIDE_2506_LIB_INTERGRATED]:{selector:"."+r.c.GUIDE_2506_LIB_INTERGRATED,relativePos:"right",content:'\n <p class="title">\u672C\u5730\u6BCD\u7248\u8D44\u6E90</p>\n <p class="desc">\u5F53\u524D\u6587\u4EF6\u6240\u521B\u5EFA\u7684\u6BCD\u7248\u90FD\u88AB\u6574\u5408\u5230\u4E86\u672C\u5730\u6BCD\u7248\u8D44\u6E90\u4E2D\u3002</p>',offset:{x:4,y:-3},arrowPosition:{left:-2},hasKnow:!0,howToShow:ne=>{let{currentUser:B}=ne;setTimeout(()=>{if(MB.commonGuideHelper.checkGuideHasShown(r.c.GUIDE_2506_LIB_INTERGRATED))return;const l=(0,T.yX)();l!=null&&l.isCompleted&&(0,I.Wq)(B)&&MB.commonGuideHelper.tryToShowGuide(r.c.GUIDE_2506_LIB_INTERGRATED)},1e3)}},[r.c.GUIDE_2506_LIB_INTERGRATED_RIGHT_LAYOUT]:{selector:"."+r.c.GUIDE_2506_LIB_INTERGRATED,relativePos:"right",content:'\n <p class="title">\u672C\u5730\u6BCD\u7248\u8D44\u6E90</p>\n <p class="desc">\u5F53\u524D\u6587\u4EF6\u6240\u521B\u5EFA\u7684\u6BCD\u7248\u90FD\u88AB\u6574\u5408\u5230\u4E86\u672C\u5730\u6BCD\u7248\u8D44\u6E90\u4E2D\u3002</p>',offset:{x:-558,y:0},arrowPosition:{left:297},hasKnow:!0,howToShow:ne=>{let{currentUser:B}=ne;setTimeout(()=>{if(MB.commonGuideHelper.checkGuideHasShown(r.c.GUIDE_2506_LIB_INTERGRATED))return;const l=(0,T.yX)();l!=null&&l.isCompleted&&(0,I.Wq)(B)&&MB.commonGuideHelper.tryToShowGuide(r.c.GUIDE_2506_LIB_INTERGRATED_RIGHT_LAYOUT)},1e3)}}})},8702:(Qn,qe,s)=>{"use strict";s.d(qe,{A:()=>Gl});var r=s(18381),I=s(12211),J=s(70933),N=s(28173),T=s(10472),te=s(7457),q=s(67588),ne=s(60651),B=s(81973),l=s(78915),U=s(95549),C=s(38502),M=s(17307),w=s(67787),y=s(72214);class j extends C.PureComponent{constructor(){super(...arguments),(0,U.A)(this,"handleDoubleClick",()=>{const{dispatch:ia}=this.props;ia({type:"entry:auto:create:combo:on:screenList"})})}render(){return(0,y.jsx)(Q,{onDoubleClick:this.handleDoubleClick,children:(0,y.jsxs)("div",{className:"main",children:[(0,y.jsx)(M.C,{name:"art_board/empty/combo"}),(0,y.jsx)("span",{className:"none",children:"\u6682\u65E0\u7EC4\u4EF6"}),(0,y.jsx)("span",{className:"double",children:"\u53CC\u51FB\u521B\u5EFA\u7EC4\u4EF6"})]})})}}const Q=w.Ay.div.withConfig({displayName:"EmptyEditCombo__StyledEmptyEditCombo",componentId:"sc-19i6v5g-0"})(["width:100%;height:100%;display:flex;justify-content:center;align-items:center;transition:background 0.2s ease-in-out;background:rgba(31,41,46,0.3);cursor:pointer;pointer-events:auto;.main{display:flex;flex-direction:column;align-items:center;svg.svg-icon{width:90px;}span{display:inline-block;&.none{margin-top:22px;color:",";}&.double{margin-top:12px;color:",";}}}"],vo=>vo.theme.color_text_L2,vo=>vo.theme.color_text_L1);var ze=s(93257),me=s(3876);const Se=w.Ay.div.withConfig({displayName:"styles__StyledStickyBoard",componentId:"sc-1hpbcbf-0"})(["z-index:4;position:absolute;left:32px;top:",";display:flex;justify-content:center;gap:12px;align-items:center;.stickyBoardItem{width:30px;height:30px;display:flex;align-items:center;justify-content:center;box-shadow:0 2px 6px rgba(39,54,78,0.08);border-radius:4px;white-space:nowrap;cursor:pointer;pointer-events:auto;background-color:",";.svg-icon{width:30px;height:30px;color:",";}.undoIcon,.redoIcon{width:24px;height:24px;path{fill:",";}}&.disabled{cursor:not-allowed;.undoIcon,.redoIcon{path{fill:",";}}}&:not(.disabled):hover{background-color:",";}&.linking{background:",";color:",";}}.stickyBoardContainer{display:flex;align-items:center;justify-content:center;margin-left:8px;border-radius:4px;box-shadow:0 2px 6px rgba(39,54,78,0.08);overflow:hidden;position:relative;.stickyBoardItem{border-radius:0;box-shadow:none;position:relative;&:first-child{&::after{content:'';display:inline-block;width:1px;height:16px;background:",";position:absolute;right:0;}}}}"],vo=>vo.showPanelEditBreadNav?"76px":"30px",vo=>vo.theme.color_bg_white,vo=>vo.theme.color_text_L1,vo=>vo.theme.color_text_L2,vo=>vo.theme.color_text_disabled01,vo=>vo.theme.color_btn_secondary_active,vo=>vo.theme.color_btn_secondary_active,vo=>vo.theme.color_text_L2,vo=>vo.theme.color_btn_secondary_active),De=vo=>{let{showPanelEditBreadNav:ia,dispatch:na}=vo;const Sa=()=>{na({type:"modal:update:state",payload:{linkBackModal:{isOpen:!0}}})},Na=(0,r.d4)(te.nF);return(0,y.jsx)(Se,{showPanelEditBreadNav:ia,children:Na&&(0,y.jsx)(ze.A,{content:I18N.ArtBoard.link_to_prev,direction:"down",children:(0,y.jsx)("div",{className:"stickyBoardItem interactive-target-hotspot","data-interactive-target-key":"source","data-interactive-target-type":me.E.canvas,onClick:Sa,children:(0,y.jsx)(M.C,{name:"art_board/linkBack",className:"linkBackIcon"})})})})};var tt=s(15974),at=s(79287),ht=s.n(at),Je=s(53732),$=s.n(Je),mt=s(39e3),yt=s(93413),Le=s(88670),He=s(83199),ye=s(21677),je=s(8228);const ot=w.Ay.div.withConfig({displayName:"styles__StyledHelperButton",componentId:"sc-83yeen-0"})(["z-index:106;position:absolute;right:20px;bottom:20px;pointer-events:auto;cursor:pointer;display:flex;align-items:center;height:34px;padding:0 8px;background:",";box-shadow:0px 3.25px 4.875px 0px rgba(0,0,0,0.10);border-radius:17px;&.only-helpButton{padding:0;width:28px;height:28px;border-radius:50%;display:flex;align-items:center;justify-content:center;}.round{width:28px;height:28px;display:flex;justify-content:center;align-items:center;position:relative;color:",";svg{width:100%;height:100%;path{fill:currentColor;}}}.expand-panel{position:absolute;border-radius:8px;right:0;bottom:44px;width:176px;padding:8px;background-color:",";font-size:12px;color:",";box-shadow:",";line-height:0px;.box-icon{width:18px;height:18px;display:flex;align-items:center;justify-content:center;position:relative;svg path{fill:",";}&.tempDisabled,&.tempDisabled + span{opacity:0.4;}.video{font-size:14px;}}.show-task-list{position:relative;.text-icon{font-size:14px;}.task-list-text{position:relative;.task-tips{top:0;left:100%;}}}& > div{height:28px;display:flex;justify-content:flex-start;align-items:center;& > *{margin-left:13px;&.qr-code-box{margin:0;}}&:hover{background-color:",";.in{border-color:",";}}}}.expand-panel{border:1px solid ",";.box-icon{svg path{color:",";}}& > div{border-radius:4px;.in{border-color:",";}}}.question-button{pointer-events:none;path{fill:",";}}.ai-semantic{width:26px;height:26px;position:relative;svg{width:100%;height:100%;}.semantic-tip{background-color:#1684FC;right:-4px;}}.line{width:1px;height:24px;background-color:",";margin:0 6px;}"],vo=>vo.theme.help_button_background_color,vo=>vo.theme.color_text_L1,vo=>vo.theme.color_bg_white,vo=>vo.theme.color_text_L1,vo=>vo.theme.shadow_m,vo=>vo.theme.color_text_L1,vo=>vo.theme.color_btn_secondary_hover,vo=>vo.theme.color_btn_secondary_hover,vo=>vo.theme.color_bg_border_01,vo=>vo.theme.color_text_L1,vo=>vo.theme.color_bg_white,vo=>vo.theme.help_button_question_fill_color,vo=>vo.theme.help_button_line_color),we=w.Ay.span.withConfig({displayName:"styles__StyledDivider",componentId:"sc-83yeen-1"})(["display:inline-block;width:160px;height:1px;background:",";margin:8px 0;"],vo=>vo.theme.color_bg_border_01),$e=w.Ay.div.withConfig({displayName:"styles__StyledBlueTips",componentId:"sc-83yeen-2"})(["position:absolute;top:0;right:0;display:inline-block;width:10px;height:10px;background:#1684fc;border:2px solid ",";border-radius:50%;&.in{top:-2px;right:-2px;border-color:#333;}"],vo=>vo.theme.color_bg_menu);var ge=s(56202);function Ze(vo){let{isShowBlueTips:ia,setShowBlueTips:na,onClose:Sa}=vo;const Na=(0,r.wA)(),Tt=(0,C.useMemo)(()=>{const Rn=(0,ge.cX)()?"\u2318 K":"Ctrl + K";return(0,He.u)({text:I18N.ChatGPT.ai_semantic,key:"<kbd>"+Rn+"</kbd>"})},[]),mn=Rn=>{Rn.stopPropagation(),Na({type:Le.X.AIToggleOpenSemantic,payload:{source:"\u5DE6\u4FA7AI\u5165\u53E3"}}),na(!1),(0,ye.Z)(je.SR.Semantic),Sa&&Sa()};return(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(He.A,{content:Tt,direction:"down",children:(0,y.jsxs)("div",{className:"ai-semantic",onClick:mn,children:[(0,y.jsx)(M.C,{name:"chatGPT/ai-semantic",isColorPure:!0}),ia&&(0,y.jsx)($e,{className:"semantic-tip"})]})}),(0,y.jsx)("div",{className:"line"})]})}const W=(0,C.memo)(Ze);function an(vo){let{isShowBlueTips:ia,isOpen:na,onClick:Sa}=vo;return(0,y.jsx)(He.A,{content:I18N.ToolBar.help,direction:"down",children:(0,y.jsxs)("div",{className:"round",onClick:Sa,children:[(0,y.jsx)(M.C,{className:"question-button",name:na?"common/question_close":"common/question_mark",isColorPure:!0}),ia&&(0,y.jsx)($e,{})]})})}const _t=(0,C.memo)(an);var nn=s(5209);let Oe=function(vo){return vo.ChatGroup="\u65B0\u7248\u4EA4\u6D41\u7FA4",vo.TaskList="\u65B0\u4EBA\u5F15\u5BFC",vo.NewFeature="\u65B0\u7248\u672C\u529F\u80FD",vo.NewbieVideo="\u5FEB\u901F\u5165\u95E8",vo.ShortcutKey="\u5FEB\u6377\u952E",vo.HelperCenter="\u5E2E\u52A9\u4E2D\u5FC3",vo.Feedback="\u9700\u6C42\u53CD\u9988",vo.OnlineSupport="\u5728\u7EBF\u5BA2\u670D",vo.LayoutV9="\u65B0\u7248\u5E03\u5C40\u5207\u6362",vo}({}),sn=!1;const It=()=>{sn=!0},Pt=vo=>{(0,nn.kH)("v8_q_action",{click_options:vo,is_v7_upgrade:sn})},dt=(0,y.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,y.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.6021 2.58107C10.8632 2.31128 11.283 2.27488 11.5866 2.4957C12.0089 2.80289 12.1251 3.38255 11.8539 3.82883L11.7189 4.05107H9.17989L10.6021 2.58107ZM7.98585 5.05107C7.99153 5.05123 7.99723 5.0513 8.00294 5.05126C8.00682 5.05124 8.0107 5.05118 8.01457 5.05107L11.9829 5.05107C11.994 5.05144 12.0051 5.05144 12.0162 5.05107H13.4989L13.4989 6.45066H2.50098V5.05107H4.0178C4.02871 5.05142 4.03963 5.05142 4.05056 5.05107L7.98585 5.05107ZM6.80237 4.05107L5.37883 2.61155C5.12745 2.35735 4.72897 2.32256 4.43734 2.52935C4.01231 2.83074 3.89891 3.41281 4.17972 3.85172L4.30726 4.05107H6.80237ZM3.16345 4.05107C2.83495 3.22072 3.10435 2.24869 3.8589 1.71363C4.54995 1.2236 5.4942 1.30603 6.08988 1.9084L7.9963 3.83623L9.88345 1.88573C10.491 1.25778 11.4682 1.17303 12.1748 1.68702C12.9267 2.23396 13.1926 3.2136 12.8571 4.05107H13.4989C14.0512 4.05107 14.4989 4.49878 14.4989 5.05107V6.45066C14.4989 6.96917 14.1043 7.39551 13.599 7.44572V13.1495C13.599 13.9779 12.9274 14.6495 12.099 14.6495H7.99994H3.90075C3.07232 14.6495 2.40075 13.9779 2.40075 13.1495V7.4457C1.89553 7.39542 1.50098 6.96912 1.50098 6.45066V5.05107C1.50098 4.49878 1.94869 4.05107 2.50098 4.05107H3.16345ZM7.49994 7.4507H3.40075V13.1495C3.40075 13.4256 3.62461 13.6495 3.90075 13.6495H7.49994V7.4507ZM8.49994 13.6495V7.4507H12.599V13.1495C12.599 13.4256 12.3752 13.6495 12.099 13.6495H8.49994Z",fill:"#333333"})});function Vn(vo){let{onClose:ia}=vo;const na=(0,r.wA)(),Sa=(0,C.useCallback)(Na=>{Na.stopPropagation(),na({type:"entry:show:taskList"}),ia&&ia(),Pt(Oe.TaskList)},[na,ia]);return(0,y.jsxs)(y.Fragment,{children:[(0,y.jsxs)("div",{className:"show-task-list",onClick:Sa,children:[(0,y.jsx)("div",{className:"box-icon",children:dt}),(0,y.jsx)("span",{className:"task-list-text",children:I18N.CommonGuides.show_novice_tasks})]}),(0,y.jsx)(we,{})]})}const o=(0,C.memo)(Vn),Gn=(0,y.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,y.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.1001 3.50156C3.1001 3.28065 3.27918 3.10156 3.5001 3.10156H12.5001C12.721 3.10156 12.9001 3.28065 12.9001 3.50156V12.5016C12.9001 12.7225 12.721 12.9016 12.5001 12.9016H3.5001C3.27918 12.9016 3.1001 12.7225 3.1001 12.5016V3.50156ZM3.5001 2.10156C2.7269 2.10156 2.1001 2.72836 2.1001 3.50156V12.5016C2.1001 13.2748 2.7269 13.9016 3.5001 13.9016H12.5001C13.2733 13.9016 13.9001 13.2748 13.9001 12.5016V3.50156C13.9001 2.72836 13.2733 2.10156 12.5001 2.10156H3.5001ZM6.6001 5.23022C6.4454 5.1409 6.2548 5.1409 6.1001 5.23022C5.9454 5.31954 5.8501 5.4846 5.8501 5.66323V8.00149V10.3398C5.8501 10.5184 5.9454 10.6834 6.1001 10.7728C6.2548 10.8621 6.4454 10.8621 6.6001 10.7728L8.6251 9.60364L10.6501 8.43451C10.8048 8.34519 10.9001 8.18013 10.9001 8.00149C10.9001 7.82286 10.8048 7.6578 10.6501 7.56848L8.6251 6.39935L6.6001 5.23022ZM6.8501 8.00149V6.52926L8.1251 7.26538L9.40009 8.00149L8.1251 8.73761L6.8501 9.47373V8.00149Z",fill:"black",fillOpacity:"0.85"})});function xt(vo){let{isShowBlueTips:ia,setShowBlueTips:na,onClose:Sa}=vo;const Na=(0,r.wA)(),Tt=(0,C.useCallback)(()=>{Na({type:"newbieVideoPanelState:toggle",payload:{show:!0}}),MB.commonGuideHelper.markGuideAsRead(yt.c.GUIDE_NEWBIE_VIDEO),na(!1),Sa&&Sa(),Pt(Oe.NewbieVideo)},[Na,na,Sa]);return(0,y.jsxs)("div",{onClick:Tt,children:[(0,y.jsxs)("div",{className:"box-icon",children:[Gn,ia&&(0,y.jsx)($e,{className:"in"})]}),(0,y.jsx)("span",{children:I18N.ToolBar.newbie_video})]})}const Ot=(0,C.memo)(xt),wt=(0,y.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,y.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.5 4H13.5V12H2.5L2.5 4ZM1.5 4C1.5 3.44772 1.94772 3 2.5 3H13.5C14.0523 3 14.5 3.44772 14.5 4V12C14.5 12.5523 14.0523 13 13.5 13H2.5C1.94772 13 1.5 12.5523 1.5 12V4ZM4 7C4 6.72386 4.22386 6.5 4.5 6.5H5.09929C5.37543 6.5 5.59929 6.72386 5.59929 7C5.59929 7.27614 5.37543 7.5 5.09929 7.5H4.5C4.22386 7.5 4 7.27614 4 7ZM7.19971 6.5C6.92356 6.5 6.69971 6.72386 6.69971 7C6.69971 7.27614 6.92356 7.5 7.19971 7.5H7.799C8.07514 7.5 8.299 7.27614 8.299 7C8.299 6.72386 8.07514 6.5 7.799 6.5H7.19971ZM9.09961 7C9.09961 6.72386 9.32347 6.5 9.59961 6.5H11.6994C11.9756 6.5 12.1994 6.72386 12.1994 7C12.1994 7.27614 11.9756 7.5 11.6994 7.5H9.59961C9.32347 7.5 9.09961 7.27614 9.09961 7ZM4.5 9.19971C4.22386 9.19971 4 9.42356 4 9.69971C4 9.97585 4.22386 10.1997 4.5 10.1997H11.6993C11.9755 10.1997 12.1993 9.97585 12.1993 9.69971C12.1993 9.42356 11.9755 9.19971 11.6993 9.19971H4.5Z",fill:"black",fillOpacity:"0.85"})});function Kt(vo){let{isShowBlueTips:ia,setShowBlueTips:na,onClose:Sa}=vo;const Na=(0,r.wA)(),Tt=(0,C.useCallback)(()=>{Na({type:"toggle:showShortCutArtBoard",payload:{helpCenterModal:{index:1}}}),MB.commonGuideHelper.markGuideAsRead(yt.c.GUIDE_SHORT_CUT_PANEL),na(!1),Sa&&Sa(),Pt(Oe.ShortcutKey)},[Na,na,Sa]);return(0,y.jsxs)("div",{onClick:Tt,children:[(0,y.jsxs)("div",{className:"box-icon",children:[wt,ia&&(0,y.jsx)($e,{className:"in"})]}),(0,y.jsx)("span",{children:I18N.ArtBoard.shortCutKey})]})}const fe=(0,C.memo)(Kt);var bt=s(86964),un=s(25582),gt=s.n(un),Wt=s(95358);Un.propTypes={productId:gt().string,children:gt().oneOfType([gt().array,gt().string,gt().node]),isWonderShare:gt().bool,className:gt().string,wsLink:gt().string,onClick:gt().func,data:gt().object,params:gt().string,disabled:gt().bool,canClick:gt().bool};function Un(vo){let{isWonderShare:ia=!1,wsLink:na="https://mockitt.wondershare.com/feedback.html",productId:Sa="315118",className:Na="",params:Tt="",data:mn,children:Rn,onClick:gn=null,disabled:Tn,canClick:wo}=vo;const io=()=>{if(Tn){wo&&gn&&gn();return}gn&&gn(),(0,Wt.v)({productId:Sa,data:mn,params:Tt,isWonderShare:ia,wsLink:na})};return(0,y.jsx)("div",{className:Na,onClick:io,children:Rn})}var Jn=s(47163),Yt=s(37342);const rt=(0,y.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,y.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 13C10.7614 13 13 10.7614 13 8C13 5.23858 10.7614 3 8 3C5.23858 3 3 5.23858 3 8C3 10.7614 5.23858 13 8 13ZM8 14C11.3137 14 14 11.3137 14 8C14 4.68629 11.3137 2 8 2C4.68629 2 2 4.68629 2 8C2 11.3137 4.68629 14 8 14Z",fill:"black",fillOpacity:"0.85"}),(0,y.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 5C7.17157 5 6.5 5.67157 6.5 6.5C6.5 6.77614 6.27614 7 6 7C5.72386 7 5.5 6.77614 5.5 6.5C5.5 5.11929 6.61929 4 8 4C9.38071 4 10.5 5.11929 10.5 6.5C10.5 7.07815 10.3472 7.51571 10.0838 7.85811C9.83337 8.18368 9.50835 8.38604 9.25952 8.53714C9.24553 8.54564 9.2318 8.55396 9.21833 8.56214C8.96702 8.71457 8.80401 8.81345 8.6832 8.94692C8.58235 9.05834 8.5 9.209 8.5 9.5C8.5 9.77614 8.27614 10 8 10C7.72386 10 7.5 9.77614 7.5 9.5C7.5 8.97141 7.66765 8.57876 7.9418 8.27587C8.16636 8.02776 8.45515 7.8541 8.67487 7.72197C8.69752 7.70835 8.71944 7.69516 8.74048 7.68239C8.99165 7.52987 9.16663 7.41033 9.29119 7.2484C9.4028 7.10331 9.5 6.88779 9.5 6.5C9.5 5.67157 8.82843 5 8 5Z",fill:"black",fillOpacity:"0.85"}),(0,y.jsx)("path",{d:"M8.75 11.5C8.75 11.9142 8.41421 12.25 8 12.25C7.58579 12.25 7.25 11.9142 7.25 11.5C7.25 11.0858 7.58579 10.75 8 10.75C8.41421 10.75 8.75 11.0858 8.75 11.5Z",fill:"black",fillOpacity:"0.85"})]}),An=(0,y.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,y.jsx)("g",{clipPath:"url(#clip0_2026_37846)",children:(0,y.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.5 4.00684V12C1.5 12.5523 1.94772 13 2.5 13H13.5C14.0523 13 14.5 12.5523 14.5 12V4C14.5 3.44772 14.0523 3 13.5 3H2.5C1.95143 3 1.50603 3.44171 1.50006 3.98886C1.50002 3.99257 1.5 3.99628 1.5 4M2.5 4.93426L7.72265 8.41603C7.89679 8.53212 8.12482 8.52747 8.29409 8.40437L13.5 4.61825V12H2.5L2.5 4.93426ZM12.6499 4H2.90139L7.98757 7.39079L12.6499 4Z",fill:"black",fillOpacity:"0.85"})}),(0,y.jsx)("defs",{children:(0,y.jsx)("clipPath",{id:"clip0_2026_37846",children:(0,y.jsx)("rect",{width:"16",height:"16",fill:"white"})})})]}),Nt=(0,y.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,y.jsx)("g",{clipPath:"url(#clip0_2026_37851)",children:(0,y.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.97058 2.25C2.1584 2.25 1.5 2.9084 1.5 3.72058V10.7794C1.5 11.5916 2.1584 12.25 2.97058 12.25H3.6V13.25C3.6 13.4233 3.68973 13.5842 3.83713 13.6753C3.98454 13.7664 4.16861 13.7747 4.32361 13.6972L7.21803 12.25H13.0294C13.8416 12.25 14.5 11.5916 14.5 10.7794V3.72058C14.5 2.9084 13.8416 2.25 13.0294 2.25H2.97058ZM2.5 3.72058C2.5 3.46069 2.71069 3.25 2.97058 3.25H13.0294C13.2893 3.25 13.5 3.46069 13.5 3.72058V10.7794C13.5 11.0393 13.2893 11.25 13.0294 11.25H7.1C7.02238 11.25 6.94582 11.2681 6.87639 11.3028L4.6 12.441V11.75C4.6 11.4739 4.37614 11.25 4.1 11.25H2.97058C2.71069 11.25 2.5 11.0393 2.5 10.7794V3.72058ZM10.5996 5.44995C10.5996 5.17381 10.3758 4.94995 10.0996 4.94995C9.82347 4.94995 9.59961 5.17381 9.59961 5.44995V5.74995C9.59961 6.02609 9.82347 6.24995 10.0996 6.24995C10.3758 6.24995 10.5996 6.02609 10.5996 5.74995V5.44995ZM5.90039 4.94995C6.17653 4.94995 6.40039 5.17381 6.40039 5.44995V5.74995C6.40039 6.02609 6.17653 6.24995 5.90039 6.24995C5.62425 6.24995 5.40039 6.02609 5.40039 5.74995V5.44995C5.40039 5.17381 5.62425 4.94995 5.90039 4.94995ZM5.67678 7.70293C5.92363 7.57951 6.22376 7.67943 6.34739 7.92611L6.34719 7.92572L6.34714 7.92548C6.34918 7.92924 6.3534 7.93689 6.35987 7.94786C6.37284 7.96987 6.39461 8.0049 6.42559 8.04864C6.48794 8.13666 6.58517 8.25653 6.72007 8.37644C6.98568 8.61253 7.39679 8.85015 8.00039 8.85015C8.60399 8.85015 9.0151 8.61253 9.28071 8.37644C9.41561 8.25653 9.51284 8.13666 9.57519 8.04864C9.60617 8.0049 9.62794 7.96987 9.64091 7.94786C9.64738 7.93689 9.6516 7.92924 9.65364 7.92548L9.65359 7.92572L9.65339 7.92612C9.77701 7.67944 10.0771 7.57951 10.324 7.70293C10.571 7.82643 10.6711 8.12676 10.5476 8.37375L10.1004 8.15015C10.5476 8.37375 10.5475 8.37398 10.5474 8.3742L10.5471 8.37468L10.5466 8.37573L10.5454 8.37815L10.5422 8.38432L10.5329 8.40176C10.5254 8.41558 10.5153 8.43372 10.5024 8.45555C10.4767 8.49917 10.4399 8.5579 10.3912 8.62666C10.2942 8.76363 10.1477 8.94377 9.94507 9.12385C9.53568 9.48776 8.89679 9.85015 8.00039 9.85015C7.10399 9.85015 6.4651 9.48776 6.05571 9.12385C5.85311 8.94377 5.70659 8.76363 5.60957 8.62666C5.56086 8.5579 5.52403 8.49917 5.49833 8.45555C5.48546 8.43372 5.47533 8.41558 5.46785 8.40176L5.45858 8.38432L5.4554 8.37815L5.45417 8.37573L5.45364 8.37468L5.4534 8.3742C5.45329 8.37398 5.45318 8.37375 5.90039 8.15015L5.45318 8.37375C5.32968 8.12676 5.42979 7.82643 5.67678 7.70293ZM9.65364 7.92548L9.65395 7.925L9.65452 7.92388L9.65504 7.92286L9.65505 7.92284C9.65505 7.92284 9.65458 7.92374 9.65364 7.92548ZM6.34714 7.92548L6.34683 7.925L6.34626 7.92388L6.34574 7.92286L6.34573 7.92284C6.34573 7.92284 6.3462 7.92374 6.34714 7.92548Z",fill:"black",fillOpacity:"0.85"})}),(0,y.jsx)("defs",{children:(0,y.jsx)("clipPath",{id:"clip0_2026_37851",children:(0,y.jsx)("rect",{width:"16",height:"16",fill:"white"})})})]});function jt(vo){let{onClose:ia}=vo;const na=(0,r.wA)(),Sa=(0,C.useCallback)(()=>{(0,Jn.k)()?na({type:"modal:update:state",payload:{helpCenterModal:{isOpen:!0,productName:"a10_proto_tool_v8"}}}):(0,Yt.JW)("https://mockitt.wondershare.com/guide/","_blank","noreferrer"),ia&&ia(),Pt(Oe.HelperCenter)},[na,ia]),Na=(0,C.useCallback)(()=>{Pt(Oe.Feedback),ia&&ia()},[ia]),Tt=(0,C.useCallback)(()=>{Pt(Oe.OnlineSupport),ia&&ia()},[ia]);return(0,y.jsxs)(y.Fragment,{children:[(0,y.jsxs)("div",{onClick:Sa,children:[(0,y.jsx)("div",{className:"box-icon",children:rt}),(0,y.jsx)("span",{children:I18N.ArtBoard.helpCenter})]}),(0,y.jsxs)(Un,{isWonderShare:ENV.IS_MO,data:{nickname:MB.user.name,avatar:MB.user.avatar,openid:MB.user.cid},canClick:!0,onClick:Na,children:[(0,y.jsx)("div",{className:"box-icon",children:An}),(0,y.jsx)("span",{children:I18N.ArtBoard.feedBack})]}),(0,y.jsxs)(bt.kN,{isWonderShare:ENV.IS_MO,canClick:!0,onClick:Tt,children:[(0,y.jsx)("div",{className:"box-icon",children:Nt}),(0,y.jsx)("span",{children:I18N.ArtBoard.onLine})]})]})}const vn=(0,C.memo)(jt);var Dt=s(15515),$t=s(18501);const kn="2022-08-17",Kn=(0,I.j8)({rootProject:J.PL,currentUser:J.HW,currentOrg:J.wA,isHideTaskList:J.SD,isCompleteTaskList:J.jj,currentViewType:ne.jx,currentEditMode:T.r,showAISemanticTip:$t.tK,layoutV9:q.MZ});function dn(){const{rootProject:vo,currentUser:ia,currentOrg:na,isHideTaskList:Sa,isCompleteTaskList:Na,currentViewType:Tt,currentEditMode:{isEditingProjectMain:mn},showAISemanticTip:Rn,layoutV9:gn}=(0,r.d4)(Kn),[Tn,wo]=(0,C.useState)(!1),io=(0,C.useRef)(null),fo=(0,C.useCallback)(()=>wo(Za=>!Za),[]),co=(0,C.useCallback)(()=>wo(!1),[]),ga=(0,C.useCallback)(Za=>{var Nr;let{target:ii}=Za;!((Nr=io.current)!=null&&Nr.contains(ii))&&wo(!1)},[]),[Fo,Eo]=(0,C.useState)(()=>!MB.commonGuideHelper.checkGuideHasShown(yt.c.GUIDE_SEMANTIC_PANEL)),[Oa,Ra]=(0,C.useState)(()=>{const Za=ia?ht()(ia==null?void 0:ia.created_at).isAfter(ht()(kn)):!1;return!ENV.IS_MO&&Za&&!MB.commonGuideHelper.checkGuideHasShown(yt.c.GUIDE_NEWBIE_VIDEO)}),[tr,Ar]=(0,C.useState)(()=>{const Za=ia?ht()(ia==null?void 0:ia.created_at).isAfter(ht()(kn)):!1;return!ENV.IS_MO&&Za&&!MB.commonGuideHelper.checkGuideHasShown(yt.c.GUIDE_SHORT_CUT_PANEL)}),nr=(0,Dt.Yt)("UPGRADED_PROJECT_"+(vo==null?void 0:vo.cid),!1,Dt.qW.String),[$a,Rr]=(0,C.useState)(nr&&!MB.commonGuideHelper.checkGuideHasShown(yt.c.UPGRADE_V8_COMMUNITY_GROUP)),or=!ENV.IS_ON_PREMISES&&!Na&&Sa,Ba=!1,Ja=tr||$a||Oa;return(0,y.jsxs)(ot,{ref:io,className:$()(!Ba&&"only-helpButton"),children:[Ba&&(0,y.jsx)(W,{isShowBlueTips:Fo&&Rn,setShowBlueTips:Eo}),(0,y.jsx)(_t,{isOpen:Tn,isShowBlueTips:Ja,onClick:fo}),Tn&&(0,y.jsxs)("div",{className:"expand-panel",children:[or&&Rn&&(0,y.jsx)(o,{onClose:co}),!ENV.IS_MO&&(0,y.jsx)(Ot,{isShowBlueTips:Oa,setShowBlueTips:Ra,onClose:co}),(0,y.jsx)(fe,{isShowBlueTips:tr,setShowBlueTips:Ar,onClose:co}),!ENV.IS_MO&&!ENV.IS_ON_PREMISES&&(0,y.jsx)(we,{}),!ENV.IS_ON_PREMISES&&(0,y.jsx)(vn,{onClose:co})]}),Tn&&(0,y.jsx)(mt.A,{target:document,onClick:ga})]})}const ft=(0,C.memo)(dn);var Lt=s(51582),bn=s(58603),Yn=s(28681);const on=(0,w.DU)(["::-webkit-scrollbar-track{background-color:transparent;}::-webkit-scrollbar{width:6px;height:6px;}::-webkit-scrollbar-thumb{background-color:rgb(222,222,228);border-radius:4px;}::-webkit-scrollbar-corner{background-color:transparent;}"]),yn=w.Ay.div.withConfig({displayName:"styled__StyledShortCut",componentId:"sc-e1juno-0"})(["position:absolute;background:#333;border:1px solid rgba(0,0,0,0.11);border-radius:8px;color:#fff;header{display:flex;flex-flow:row nowrap;justify-content:center;align-items:center;border:1px solid rgba(255,255,255,0.1);padding:0 10%;position:relative;a{margin:auto;line-height:32px;cursor:pointer;p{margin:0 auto;width:fit-content;opacity:0.6;line-height:1.2;padding-top:12px;padding-bottom:8px;}&.is-active p{opacity:1;font-weight:500;}}}.indicator{position:absolute;height:2px;width:28px;background-color:#fff;bottom:0px;display:inline-block;transition:0.2s all ease-out;}.close-icon{position:absolute;right:14px;top:4px;display:flex;align-items:center;justify-content:center;cursor:pointer;z-index:1;svg{width:24px;height:24px;path{fill:#fff;}}}.shortcut-content{overflow-x:auto;height:calc(100% - 34px);padding:27px 50px;.shortcut-box{display:flex;height:100%;justify-content:space-start;margin:0 auto;.shortcut-column{&.has-border{border-right:1px solid rgba(255,255,255,0.1);}}.shortcut-item{padding:10px 40px;min-width:275px;line-height:1.33;display:flex;justify-content:space-between;p{margin:0px;}&:first-child{padding-top:0px;}&:last-child{padding-bottom:0px;}&:lang(en){min-width:325px;}.left-svg{margin-left:5px;}}}}"]),lo=w.Ay.div.withConfig({displayName:"styled__ShortcutItemStyled",componentId:"sc-e1juno-1"})(["color:",";.shortcut-item{padding:2px 10px;cursor:pointer;&:hover{background-color:",";}}"],vo=>vo.theme.color_text_L1,vo=>vo.theme.color_btn_secondary_hover);class qn extends C.PureComponent{constructor(ia){super(ia),(0,U.A)(this,"state",{activeIndex:this.props.defaultIndex||0,isOpenDropdown:!1}),(0,U.A)(this,"maxColumn",0),(0,U.A)(this,"formatData",()=>{let{list:na,maxRows:Sa}=this.props,Na=[];na.map((Tt,mn)=>{Na[mn]=Na[mn]||[],Na[mn].label=Tt.label,Na[mn].title=Tt.title;let Rn=[];Tt.data.map((gn,Tn)=>{let wo=Math.floor(Tn/Sa);Rn[wo]=Rn[wo]||[],Rn[wo].push(gn),wo>this.maxColumn&&(this.maxColumn=wo)}),Na[mn].data=Rn}),this.list=Na}),(0,U.A)(this,"componentDidMount",()=>{let na=document.querySelector(".shortcut-content").offsetWidth,Sa=document.querySelector(".shortcut-column").offsetWidth*(this.maxColumn+1);Sa<na&&(document.querySelector(".shortcut-box").style.width=Sa+"px"),this.placeIndicator(this.state.activeIndex)}),(0,U.A)(this,"changeTab",na=>{let Sa=na.target.dataset.index,{activeIndex:Na}=this.state;if(Sa!==Na){this.setState({activeIndex:Sa}),this.placeIndicator(Sa);const{onTrack:Tt}=this.props,mn=na.target.dataset.track;Tt&&Tt(mn)}}),(0,U.A)(this,"placeIndicator",na=>{const Sa=document.querySelector(".shortcut-panel"),Na=Sa&&Sa.querySelector("[data-index='"+na+"']"),Tt=Sa&&Sa.querySelector(".indicator");!Sa||!Na||!Tt||requestAnimationFrame(()=>{const{left:mn}=Sa.getBoundingClientRect(),{left:Rn}=Na.getBoundingClientRect(),gn=Na.offsetWidth,Tn=Tt.offsetWidth,wo=Rn-mn+gn/2-Tn/2;Object.assign(Tt.style,{left:wo+"px"})})}),(0,U.A)(this,"handleToggle",na=>{this.setState({isOpenDropdown:na})}),(0,U.A)(this,"handleChangeShortcut",na=>{this.handleToggle(!1),(0,Dt.cH)(Yn._v,na.key)}),(0,U.A)(this,"getFastCopyShortcutName",na=>{var Sa;if(na.key!=="fast_copy")return na.shortcut;const Na=(0,Dt.kV)(Yn._v);return Na&&((Sa=na.options)==null||(Sa=Sa.find(Tt=>Tt.key===Na))==null?void 0:Sa.label)||na.shortcut}),this.formatData()}render(){const{activeIndex:ia,isOpenDropdown:na}=this.state,{changeTab:Sa,list:Na}=this,{onClose:Tt,style:mn}=this.props,Rn=Na[ia].data;return(0,y.jsxs)(yn,{className:"shortcut-panel",style:mn,children:[(0,y.jsx)(on,{}),(0,y.jsx)("div",{className:"close-icon",onClick:Tt,children:(0,y.jsx)(Lt.A,{name:"general/modal/times"})}),(0,y.jsxs)("header",{children:[Na.map((gn,Tn)=>(0,y.jsx)("a",{className:$()({"is-active":parseInt(ia)===Tn}),"data-index":Tn,"data-track":gn.title,onClick:Sa,children:gn.title},gn.label)),(0,y.jsx)("span",{className:"indicator"})]}),(0,y.jsx)("div",{className:"shortcut-content",children:(0,y.jsx)("div",{className:"shortcut-box",children:Rn.map((gn,Tn)=>(0,y.jsx)("div",{className:$()("shortcut-column",{"has-border":Tn!==Rn.length-1||Tn===0}),children:gn.map((wo,io)=>wo.options?(0,y.jsx)(bn.A,{menuY:"bottom",onToggle:this.handleToggle,isOpen:na,opener:(0,y.jsxs)("div",{className:"shortcut-item",children:[(0,y.jsx)("p",{children:wo.label}),(0,y.jsxs)("p",{className:"shortcut",children:[this.getFastCopyShortcutName(wo),(0,y.jsx)(M.C,{className:"left-svg",name:"toolbar/triangle-down-16-left"})]})]}),menu:(0,y.jsx)(lo,{children:wo.options.map(fo=>(0,y.jsx)("div",{className:"shortcut-item",onClick:()=>this.handleChangeShortcut(fo),children:(0,y.jsx)("p",{children:fo.label})},fo.key))})}):(0,y.jsxs)("div",{className:"shortcut-item",children:[(0,y.jsx)("p",{children:wo.label}),(0,y.jsx)("p",{children:wo.shortcut})]},io))},Tn))})})]})}}(0,U.A)(qn,"propTypes",{defaultIndex:gt().number,maxRows:gt().number,list:gt().array.isRequired,style:gt().object.isRequired,onClose:gt().func.isRequired,onTrack:gt().func}),(0,U.A)(qn,"defaultProps",{defaultIndex:0,maxRows:6,list:[],style:{},onClose:()=>null});const Wn=()=>{const vo=ENV.IS_ON_PREMISES?[{key:"fast_copy_alt",label:Ye("alt+"+I18N.WorkspaceGuidePane.mouse_dray,"+")},{key:"fast_copy_ctrl",label:Ye("ctrl+"+I18N.WorkspaceGuidePane.mouse_dray,"+")}]:void 0;return[{label:"frequency",title:I18N.WorkspaceGuidePane.frequency,data:[{label:I18N.WorkspaceGuidePane.fast_copy,shortcut:Ye("alt+"+I18N.WorkspaceGuidePane.mouse_dray,"+"),key:"fast_copy",options:vo},{label:I18N.WorkspaceGuidePane.select_inner_elements,shortcut:Ye("mod+"+I18N.WorkspaceGuidePane.single_clike,"+")},{label:I18N.WorkspaceGuidePane.group,shortcut:Ye("mod+G")},{label:I18N.WorkspaceGuidePane.ungroup,shortcut:Ye("shift+mod+g")},{label:I18N.WorkspaceGuidePane.geometric_scaling,shortcut:Ye("shift+"+I18N.WorkspaceGuidePane.mouse_dray,"+")},{label:I18N.WorkspaceGuidePane.fast_moving,shortcut:Ye("shift+"+I18N.WorkspaceGuidePane.up_and_down,"+")},{label:I18N.WorkspaceGuidePane.move_canvas,shortcut:Ye("Space+"+I18N.WorkspaceGuidePane.mouse_dray,"+")},{label:I18N.WorkspaceGuidePane.zoom_canvas,shortcut:Ye(["mod+/-"+I18N.SettingPanel.or,"mod+"+I18N.WorkspaceGuidePane.wheel],"+")},{label:I18N.WorkspaceGuidePane.widget_panel,shortcut:Ye("1")},{label:I18N.WorkspaceGuidePane.bold_text,shortcut:Ye("mod+B")},{label:I18N.WorkspaceGuidePane.preview,shortcut:Ye("mod+P")}]},{label:"tool",title:I18N.WorkspaceGuidePane.tool,data:[{label:I18N.WorkspaceGuidePane.artboard,shortcut:Ye("A")},{label:I18N.WorkspaceGuidePane.text,shortcut:Ye("T")},{label:I18N.WorkspaceGuidePane.rounded_rect,shortcut:Ye("R")},{label:I18N.WorkspaceGuidePane.circle,shortcut:Ye("O")},{label:I18N.WorkspaceGuidePane.straight_line,shortcut:Ye("L")},{label:I18N.WorkspaceGuidePane.lr,shortcut:Ye("H")},{label:I18N.WorkspaceGuidePane.connect_line,shortcut:Ye("E")},{label:I18N.w.sticky,shortcut:Ye("N")},{label:I18N.w.annotate,shortcut:Ye("W")},{label:I18N.WorkspaceGuidePane.comment,shortcut:Ye("C")},{label:I18N.WorkspaceGuidePane.color_picker,shortcut:Ye("I")}]},{label:"edit",title:I18N.WorkspaceGuidePane.edit,data:[{label:I18N.WorkspaceGuidePane.save,shortcut:Ye("mod+S")},{label:I18N.WorkspaceGuidePane.delete,shortcut:Ye("Del/Backspace")},{label:I18N.WorkspaceGuidePane.undo,shortcut:Ye("mod+Z")},{label:I18N.WorkspaceGuidePane.redo,shortcut:Ye("shift+mod+Z")},{label:I18N.WorkspaceGuidePane.cut,shortcut:Ye("mod+X")},{label:I18N.WorkspaceGuidePane.copy+"/"+I18N.ContextMenu.copy_properties,shortcut:Ye("mod+C")},{label:I18N.WorkspaceGuidePane.fast_copy,shortcut:Ye("alt+"+I18N.WorkspaceGuidePane.mouse_dray,"+"),key:"fast_copy",options:vo},{label:I18N.WorkspaceGuidePane.duplicate,shortcut:Ye("mod+D")},{label:I18N.WorkspaceGuidePane.paste,shortcut:Ye("mod+V")},{label:I18N.WorkspaceGuidePane.p_to_cursor,shortcut:Ye("shift+mod+V")},{label:I18N.ContextMenu.paste_properties,shortcut:Ye("alt+mod+V")},{label:I18N.WorkspaceGuidePane.launch,shortcut:Ye("mod+P")},{label:I18N.ToolBar.find_replace,shortcut:Ye("mod+F")}]},{label:"selectOperation",title:I18N.WorkspaceGuidePane.selectOperation,data:[{label:I18N.WorkspaceGuidePane.multi_select,shortcut:Ye("shift+"+I18N.WorkspaceGuidePane.click,"+")},{label:I18N.WorkspaceGuidePane.select_part,shortcut:Ye("S+"+I18N.WorkspaceGuidePane.electorates,"+")},{label:I18N.WorkspaceGuidePane.select_all,shortcut:Ye("mod+A")},{label:I18N.WorkspaceGuidePane.select_inner_elements,shortcut:Ye("mod+"+I18N.WorkspaceGuidePane.single_clike,"+")},{label:I18N.ContextMenu.hide,shortcut:Ye("shift+mod+H")},{label:I18N.ContextMenu.lock_widget,shortcut:Ye("shift+mod+L")},{label:I18N.WorkspaceGuidePane.group,shortcut:Ye("mod+G")},{label:I18N.WorkspaceGuidePane.ungroup,shortcut:Ye("shift+mod+g")},{label:I18N.WorkspaceGuidePane.text_editor,shortcut:Ye("Enter")},{label:I18N.WorkspaceGuidePane.exit_editing,shortcut:Ye("mod+Enter")},{label:I18N.WorkspaceGuidePane.geometric_scaling,shortcut:Ye("shift+"+I18N.WorkspaceGuidePane.mouse_dray,"+")},{label:I18N.WorkspaceGuidePane.fast_moving,shortcut:Ye("shift+"+I18N.WorkspaceGuidePane.up_and_down,"+")},{label:I18N.WorkspaceGuidePane.hide_or_show_stroke,shortcut:Ye("shift+/")}]},{label:"text",title:I18N.WorkspaceGuidePane.text,data:[{label:I18N.WorkspaceGuidePane.bold,shortcut:Ye("mod+B")},{label:I18N.WorkspaceGuidePane.italic,shortcut:Ye("mod+ I")},{label:I18N.WorkspaceGuidePane.underline,shortcut:Ye("mod+U")},{label:I18N.WorkspaceGuidePane.strike_through,shortcut:Ye("shift+mod+S")},{label:I18N.WorkspaceGuidePane.add_fond_size,shortcut:Ye("shift+mod+ .")},{label:I18N.WorkspaceGuidePane.reduce_font_size,shortcut:Ye("shift+mod+ ,")}]},{label:"arrayControl",title:I18N.WorkspaceGuidePane.arrayControl,data:[{label:I18N.WorkspaceGuidePane.vtop_2,shortcut:Ye("alt+mod+T")},{label:I18N.WorkspaceGuidePane.vbottom_2,shortcut:Ye("alt+mod+B")},{label:I18N.WorkspaceGuidePane.hleft_2,shortcut:Ye("alt+mod+L")},{label:I18N.WorkspaceGuidePane.hright_2,shortcut:Ye("alt+mod+R")},{label:I18N.WorkspaceGuidePane.hcenter_2,shortcut:Ye("alt+mod+C")},{label:I18N.WorkspaceGuidePane.vcenter_2,shortcut:Ye("alt+mod+M")},{label:I18N.WorkspaceGuidePane.hdistribute,shortcut:Ye("alt+mod+H")},{label:I18N.WorkspaceGuidePane.vdistribute,shortcut:Ye("alt+mod+U")},{label:I18N.WorkspaceGuidePane.forward,shortcut:Ye("alt+mod+\u2191")},{label:I18N.WorkspaceGuidePane.backward,shortcut:Ye("alt+mod+\u2193")},{label:I18N.WorkspaceGuidePane.send_front_2,shortcut:Ye("shift+mod+\u2191")},{label:I18N.WorkspaceGuidePane.send_back_2,shortcut:Ye("shift+mod+\u2193")},{label:I18N.WorkspaceGuidePane.expand_all,shortcut:Ye("mod+;")},{label:I18N.WorkspaceGuidePane.shrink_all,shortcut:Ye("mod+'")}]},{label:"view",title:I18N.WorkspaceGuidePane.view,data:[{label:I18N.WorkspaceGuidePane.move_canvas,shortcut:Ye("Space+"+I18N.WorkspaceGuidePane.mouse_dray,"+")},{label:I18N.WorkspaceGuidePane.horizontalScroll,shortcut:Ye("shift+"+I18N.WorkspaceGuidePane.wheel,"+")},{label:I18N.WorkspaceGuidePane.zoom_canvas,shortcut:Ye(["mod+/-"+I18N.SettingPanel.or,"mod+"+I18N.WorkspaceGuidePane.wheel],"+")},{label:I18N.WorkspaceGuidePane.catalogue_panel,shortcut:Ye("alt+1")},{label:I18N.WorkspaceGuidePane.layer_panel,shortcut:Ye("alt+2")},{label:I18N.WorkspaceGuidePane.widget_panel,shortcut:Ye("1")},{label:I18N.WorkspaceGuidePane.page_panel,shortcut:Ye("2")},{label:I18N.WorkspaceGuidePane.icon_pannel,shortcut:Ye("3")},{label:I18N.WorkspaceGuidePane.image_panel,shortcut:Ye("4")},{label:I18N.WorkspaceGuidePane.master_panel,shortcut:Ye("5")},{label:I18N.WorkspaceGuidePane.hideLeftSidePanel,shortcut:Ye("mod+[")},{label:I18N.WorkspaceGuidePane.hideRightSidePanel,shortcut:Ye("mod+]")},{label:I18N.WorkspaceGuidePane.showOrHideAnnotatePanel,shortcut:Ye("alt+mod+A")}]}]},Nn=new Map;function xn(vo,ia){if(ia===void 0&&(ia=""),!vo)return;let na=Nn.get(vo);if(na!==void 0)return na;const Sa=vo.split("+");if((0,ge.cX)()){const Na=Tt=>Tt==="mod"?"\u2318":Tt==="alt"?"\u2325":Tt==="shift"?"\u21E7":Tt==="ctrl"?"\u2303":Tt==="backspace"?"\u232B":Tt==="del"?"Delete":Tt.charAt(0).toUpperCase()+Tt.slice(1);na=Sa.map(Na).join(ia)}else{const Na=Tt=>Tt==="mod"?"Ctrl":Tt.toLowerCase()==="alt"?"Alt":Tt.toLowerCase()==="shift"?"Shift":Tt.toLowerCase()==="ctrl"?"Ctrl":Tt==="backspace"?"Backspace":Tt==="del"?"Delete":Tt.toLowerCase()==="return"?"Enter":Tt.charAt(0).toUpperCase()+Tt.slice(1);na=Sa.map(Na).join("+")}return Nn.set(vo,na),na}function Ye(vo,ia){if(ia===void 0&&(ia=""),!!vo)if(Array.isArray(vo)){const na=[];return vo.forEach(Sa=>{na.push(xn(Sa,ia))}),na.join("")}else return xn(vo,ia)}class wn extends C.PureComponent{constructor(){super(...arguments),(0,U.A)(this,"close",()=>{const{dispatch:ia}=this.props;ia({type:"hide:showShortCutArtBoard"})})}render(){var ia,na,Sa,Na;const Rn=document.body.clientHeight,gn=document.body.clientWidth,Tn=(ia=(na=document.querySelector("#left-slide-panel"))==null?void 0:na.getBoundingClientRect().width)!=null?ia:0,wo=(Sa=(Na=document.querySelector("#right-slide-panel"))==null?void 0:Na.getBoundingClientRect().width)!=null?Sa:0,io={top:Rn-56-Math.min(Rn,244),left:25,width:gn-Tn-wo-25-20,height:Math.min(Rn-64,244),zIndex:107,pointerEvents:"auto"};return(0,y.jsx)(qn,{style:io,maxRows:5,list:Wn(),onClose:this.close})}}var Hn=s(68455);const zn=(0,w.Ay)(Hn.A).withConfig({displayName:"styles__StyledListMenu",componentId:"sc-1eh6q20-0"})(["&.list-content{min-width:120px;margin-left:-105px;.action{height:24px;}}"]),ko=w.Ay.div.withConfig({displayName:"styles__StyledTaskList",componentId:"sc-1eh6q20-1"})(['z-index:106;position:absolute;right:21px;bottom:58px;pointer-events:auto;.tack-list-container{width:190px;background-color:#fff;background-image:url("/mb-proto2/images/guide/noviceGuides2309/task_list_bg.png");background-repeat:no-repeat;background-size:100% auto;border-radius:4px;box-shadow:0 3px 6px rgb(0 0 0 / 2%),0 6px 16px rgb(0 0 0 / 2%),0 9px 28px rgb(0 0 0 / 9%);margin-bottom:12px;.header{width:100%;height:60px;padding:18px 16px;display:flex;align-items:center;justify-content:space-between;.title{font-size:14px;color:#333;font-weight:500;}.action{width:24px;height:24px;border-radius:4px;margin-bottom:12px;color:',";&:hover{background-color:rgba(22,132,252,0.15)}&.is-open{background-color:rgba(22,132,252,0.15)}.more-icon{cursor:pointer;width:24px;}}}.content{position:relative;padding-bottom:8px;.task-list{li.task-item{height:36px;color:#333333;font-size:12px;font-weight:400;cursor:pointer;position:relative;&:hover{background-color:#F1F8FF;}&.complete{color:#CCCCCC;&:hover{background-color:#F5F5F5;}.task-icon{background-color:#F7F7F7;color:#CCCCCC;}.check{color:#E5E5E5;}}.task-content{display:flex;align-items:center;padding:0 25px 0 16px;height:100%;}.task-icon{width:28px;height:28px;border-radius:50%;background-color:#F1F8FF;color:#1684FC;display:flex;align-items:center;justify-content:center;}.title{margin-left:9px;flex:1;}.check{color:#1684FC;}.task-img-wrap{position:absolute;left:-264px;top:-75px;width:260px;background-color:#ffffff;visibility:hidden;background-color:#1685FC;padding:10px;border-radius:10px;color:#FFFFFF;&.show{visibility:visible;}img.task-img{width:100%;height:100%;border-radius:8px;}.task-img-desc{line-height:18px;font-weight:500;font-size:12px;img{vertical-align:text-top;}}}}}}.bottom{width:100%;height:36px;padding:8px 20px;display:flex;align-items:center;justify-content:flex-start;background:linear-gradient(97deg,#FDEEFF -36.68%,#E8F7FF 66.4%);border-bottom-right-radius:4px;border-bottom-left-radius:4px;.gift-icon{width:20px;margin-right:4px;}.desc{font-size:12px;font-weight:400;line-height:12px;background:linear-gradient(77deg,#1E8AFF 25.47%,#F67EFF 108.44%);background-clip:text;-webkit-background-clip:text;-webkit-text-fill-color:transparent;}}}.gift{cursor:pointer;}.animate-gift{width:40px;height:60px;position:absolute;bottom:0px;right:-6px;overflow:hidden;.new-box{width:80px;position:absolute;left:-20px;}}.ani-gift{animation-duration:1s;animation-iteration-count:infinite;}.task-icon-btn{width:28px;height:28px;background-color:#1684fc;border-radius:50%;color:#fff;display:flex;align-items:center;justify-content:center;margin-left:auto;cursor:pointer;box-shadow:0 4px 6px rgba(0,96,185,0.100306);}.collapse-task-list{display:none;}"],vo=>vo.theme.color_text_L1);var On=s(60129),Mo=s(18250),jn=s.n(Mo),xo=s(88987),jo=s(34),Qo=s(21385);const cn=(0,y.jsxs)("svg",{width:"16",height:"16",fill:"none",children:[(0,y.jsx)("path",{fill:"white",d:"M2.136 2.136a.75.75 0 0 1 1.061 0l10.667 10.667a.75.75 0 0 1-1.061 1.06L2.136 3.198a.75.75 0 0 1 0-1.06Z"}),(0,y.jsx)("path",{fill:"white",d:"M13.864 2.136a.75.75 0 0 1 0 1.061L3.197 13.864a.75.75 0 1 1-1.06-1.061L12.802 2.136a.75.75 0 0 1 1.06 0Z"})]});class In extends C.PureComponent{constructor(){super(...arguments),(0,U.A)(this,"state",{activeGuide:null,isOpenActionsMenu:!1,canReceiveReward:!1,isAnimateGift:!0}),(0,U.A)(this,"setElementRef",ia=>this.$element=ia),(0,U.A)(this,"handleToggleTaskListData",()=>{const{dispatch:ia,isCollapse:na}=this.props;ia({type:"update:taskList:isCollapse",payload:{isCollapse:!na}}),na||this.handleToggleActionMenu(!1)}),(0,U.A)(this,"handleHideTaskList",()=>{const{dispatch:ia}=this.props;this.handleToggleActionMenu(!1),ia({type:"entry:hide:taskList"})}),(0,U.A)(this,"handleHover",ia=>this.setState({activeGuide:ia})),(0,U.A)(this,"handleToggleActionMenu",ia=>this.setState({isOpenActionsMenu:jn()(ia)?ia:!this.state.isOpenActionsMenu}))}async componentDidMount(){const{dispatch:ia,currentOrg:na}=this.props;this.isHidden||(0,jo.BT)(Object.values(On.Pr==null?void 0:On.Pr.map(Rn=>Rn==null?void 0:Rn.imgUrl)));const{orgs:Sa}=await(0,xo.F3)(),Na=Sa.find(Rn=>Rn.cid===(na==null?void 0:na.cid))||Sa[Sa.length-1],{cid:Tt,is_ws_rewarded:mn}=Na||{cid:"",is_ws_rewarded:!0};this.setState({canReceiveReward:Tt&&!mn}),ia({type:"entry:initial:guide:task"})}componentDidUpdate(ia){ia.isCollapse!==this.props.isCollapse&&this.state.isAnimateGift&&this.setState({isAnimateGift:!1})}render(){const{isCollapse:ia,isHide:na,completeList:Sa,isComplete:Na,sourceUpperCid:Tt,sceneTag:mn=""}=this.props,{activeGuide:Rn,isOpenActionsMenu:gn,canReceiveReward:Tn,isAnimateGift:wo}=this.state,io=MB.commonGuideHelper.checkGuideHasShown(yt.c.GUIDE_AWARDED),fo=!!Tt,ga=["MP","PC","DS"].includes((0,Qo.VC)(mn))&&!Sa.includes(yt.c.GUIDE_NOVICE_2309)&&!fo;return this.isHidden=na||Na||io||ga,this.isHidden?null:(0,y.jsxs)(ko,{children:[(0,y.jsxs)("div",{className:$()("tack-list-container",{"collapse-task-list":ia}),children:[(0,y.jsxs)("div",{className:"header",children:[(0,y.jsx)("span",{className:"title",children:I18N.CommonGuides.novice_tasks}),(0,y.jsx)("div",{className:$()("action",{active:gn}),onClick:this.handleToggleActionMenu,ref:this.setElementRef,children:(0,y.jsx)(M.C,{name:"common/more",className:"more-icon"})}),gn&&(0,y.jsx)(y.Fragment,{children:(0,y.jsx)(zn,{targetNode:this.$element,direction:"bottom",distance:4,menuItems:[{isShow:!0,label:I18N.CommonGuides.hide_tasks,onClick:this.handleHideTaskList}]})})]}),(0,y.jsx)("div",{className:"content",children:(0,y.jsx)("ul",{className:"task-list",children:On.Pr.map((Fo,Eo)=>{const Oa=Sa.findIndex(nr=>nr===Fo.guideKey)!==-1,Ra=Rn===Fo.guideKey,tr="v8guide_task_step"+(Eo+1),Ar=I18N.CommonGuides[tr];return(0,y.jsxs)("li",{className:$()("task-item",{complete:Oa}),children:[(0,y.jsxs)("div",{className:"task-content",onMouseEnter:()=>this.handleHover(Fo.guideKey),onMouseLeave:()=>this.handleHover(null),children:[(0,y.jsx)("div",{className:"task-icon",children:(0,y.jsx)(M.C,{name:Fo.icon.name,style:{width:Fo.icon.width,height:Fo.icon.height}})}),(0,y.jsx)("span",{className:"title",children:I18N.CommonGuides[Fo.label]}),Oa&&(0,y.jsx)(M.C,{className:"check",name:"art_board/guide/task/check"})]}),(0,y.jsxs)("div",{className:$()("task-img-wrap",{show:Ra}),children:[(0,y.jsx)("img",{src:Fo.imgUrl,alt:I18N.CommonGuides.guidance_image,className:"task-img"}),(0,y.jsx)("div",{className:"task-img-desc",dangerouslySetInnerHTML:{__html:Ar}})]})]},Fo.guideKey)})})}),(!ENV.IS_MO||ENV.IS_MO&&Tn)&&(0,y.jsxs)("div",{className:"bottom",children:[(0,y.jsx)(M.C,{name:"art_board/guide/task/gift",className:"gift-icon",isColorPure:!0}),(0,y.jsx)("span",{className:"desc",children:I18N.CommonGuides.finish_tasks_to_get_rewards})]})]}),ia?wo?(0,y.jsx)("div",{className:"animate-gift",children:(0,y.jsx)("img",{className:"gift new-box",src:"/mb-proto2/images/guide-gift.gif",onClick:this.handleToggleTaskListData})}):(0,y.jsx)(M.C,{name:"art_board/guide/task/gift/new",className:"tada gift",onClick:this.handleToggleTaskListData,size:32,isColorPure:!0}):(0,y.jsx)("div",{className:"task-icon-btn",onClick:this.handleToggleTaskListData,children:cn})]})}}const tn=(0,I.Mz)([J.Rm,J.zv,J.SD,J.jj,J.wA,J.PL],(vo,ia,na,Sa,Na,Tt)=>{const{source_upper_cid:mn,scene_tag:Rn}=Tt;return{isHide:na,isCollapse:vo,completeList:ia,isComplete:Sa,currentOrg:Na,sourceUpperCid:mn,sceneTag:Rn}}),Jt=(0,r.Ng)(vo=>tn(vo))(In);var Ln=s(75276);const Xn=w.Ay.div.withConfig({displayName:"styles__StyledMktWMTip",componentId:"sc-1uvm0mq-0"})(['z-index:106;position:absolute;right:58px;bottom:16px;pointer-events:auto;.up-mkt-btn{padding:6px 14px;display:flex;justify-content:center;align-items:center;border-radius:100px;border:0.5px solid rgba(255,74,118,0.20);box-shadow:2px 2px 8px 0px rgba(140,1,24,0.10);background:linear-gradient(250deg,rgba(255,61,112,0.00) 50.75%,rgba(255,61,112,0.08) 100%),linear-gradient(68deg,rgba(255,196,59,0.00) 1.79%,rgba(255,196,59,0.15) 100%),#FFF3F2;gap:6px;cursor:pointer;&:hover{background:linear-gradient(250deg,rgba(255,61,112,0.00) 50.75%,rgba(255,61,112,0.15) 100%),linear-gradient(68deg,rgba(255,196,59,0.00) 1.79%,rgba(255,196,59,0.20) 100%),#FFEDEB;}span{text-align:center;font-family:"HarmonyOS Sans SC";font-size:13px;font-weight:500;background:linear-gradient(90deg,#FF6871 0%,#FF65A8 100%);background-clip:text;-webkit-background-clip:text;-webkit-text-fill-color:transparent;}.icon{width:14px;height:14px;}}.up-mkt-tip{width:395px;height:310px;border-radius:10px;box-shadow:',";background:url('/mb-proto2/images/mktWM/mkt_wm_export_modal_bg-new.svg');background-size:395px 310px;animation:expandFromBottomRight 0.25s ease-in-out;transform-origin:bottom right;display:flex;justify-content:center;.up-mkt-btn{padding:8.5px 64px;position:absolute;bottom:16px;box-shadow:none;span{font-weight:700;}}}@keyframes expandFromBottomRight{from{transform:scale(0.5);}to{transform:scale(1);}}"],bt.$B.shadow_l.value_light);var Dn=s(21770),go=s(35428),Uo=s(17573),Ho=s(70812);const la=vo=>{const{mdMktList:ia,mtMktlist:na,isShowUpMktTip:Sa,currentUser:Na}=vo,Tt=(0,r.wA)(),mn=!!ia.size,Rn=!!na.size,{isSoloMdMember:gn}=(0,Dn.s)(Na,MB.currentOrg),Tn=mn||Rn,[wo,io]=(0,C.useState)(!0),[fo,co]=(0,C.useState)(!1);(0,C.useEffect)(()=>{if(Sa){io(!1),co(!0),Tt({type:"reducer:watermark:update:is-show-up-mkt-tip",payload:!1});const tr=setTimeout(()=>{io(!0),co(!1),clearTimeout(tr)},8*1e3)}},[Sa]);const ga=()=>{const tr=!!MB.currentOrg,Ar={mode:"mat",templatePaySource:"\u7F16\u8F91\u533A-\u79FB\u9664\u6C34\u5370",templatePayClickType:"\u79FB\u9664\u6C34\u5370",payEntrance:"\u7F16\u8F91\u533A-v8-"+(tr?"\u56E2\u961F":"\u4E2A\u4EBA")+"-\u4ED8\u8D39\u7D20\u6750\u8BD5\u7528-\u53F3\u4E0B\u89D2-\u53BB\u6C34\u5370",checkoutPlace:"workspace_v8_"+(tr?"org":"solo")+"_watermark_bottom-right_"+(gn?"template":"vip-template"),checkoutArea:"proto"};MB.global.popupHelper.chargeAsync({...Ar}),(0,go._)({click_button:"\u7F16\u8F91\u533A\u53F3\u4E0B\u89D2-"+(gn?"\u5347\u7EA7\u7D20\u6750\u4F1A\u5458":"\u5347\u7EA7\u53CC\u4F1A\u5458")})},Fo=()=>{io(!1),!fo&&Ho.U4.watermarkExposureTrack("conrner")},Eo=()=>{io(!0)},Oa=()=>(0,y.jsxs)("div",{className:"up-mkt-btn",onMouseEnter:Fo,children:[(0,y.jsx)(M.C,{className:"upgrade-icon",name:"common/watermark/new-upgrade-mt",isColorPure:!0}),(0,y.jsx)("span",{children:I18N.WaterMark.mkt.remove_wm})]}),Ra=()=>(0,y.jsx)("div",{className:"up-mkt-tip",onMouseLeave:Eo,children:(0,y.jsxs)("div",{className:"up-mkt-btn",onClick:ga,children:[(0,y.jsx)(M.C,{className:"upgrade-icon",name:"common/watermark/new-upgrade-mt",isColorPure:!0}),(0,y.jsx)("span",{children:I18N.WaterMark.mkt.remove_wm})]})});return!(0,Uo._5)()||!Tn?null:(0,y.jsx)(Xn,{children:fo||!wo?Ra():Oa()})},To=(0,I.Mz)([Ln.S1,Ln.U6,Ln.gK,J.HW],(vo,ia,na,Sa)=>({mdMktList:vo,mtMktlist:ia,isShowUpMktTip:na,currentUser:Sa})),Ia=(0,r.Ng)(vo=>To(vo))(la),ya=vo=>{let{showShortCutArtBoard:ia,isShowNps:na,currentUser:Sa,theme:Na,dispatch:Tt,onlyView:mn}=vo;const Rn=!ENV.IS_ON_PREMISES&&!mn&&Sa;return(0,y.jsxs)(y.Fragment,{children:[Rn&&(0,y.jsx)(Jt,{}),!ENV.IS_ON_PREMISES&&(0,y.jsx)(ft,{}),ia&&(0,y.jsx)(wn,{dispatch:Tt}),!mn&&(0,y.jsx)(Ia,{}),(0,y.jsx)(tt.A,{})]})};var eo=s(67052),Oo=s(4235),so=s(70629),to=s(20089),Vo=s(3862),ta=s(80226);class Qa extends C.PureComponent{constructor(){super(...arguments),(0,U.A)(this,"handleZoomIn",()=>{this.props.dispatch({type:"entry:design:zoom:in"})}),(0,U.A)(this,"handleZoomOut",()=>{this.props.dispatch({type:"entry:design:zoom:out"})}),(0,U.A)(this,"handleZoomInitialScale",ia=>{ia.stopPropagation(),ia.preventDefault();const{dispatch:na}=this.props;na({type:"entry:zoom:fit:scale:offset"})}),(0,U.A)(this,"handleZoomSpecifiedScale",ia=>{const na=Number(ia);this.props.dispatch({type:"entry:set:scale",payload:{scale:na}})}),(0,U.A)(this,"handleZoomSelection",ia=>{ia.stopPropagation(),ia.preventDefault(),this.props.dispatch({type:"entry:design:zoom:selection"})}),(0,U.A)(this,"handleToggleFullScreenMode",()=>this.props.dispatch({type:"entry:toolbar:toggle:fullScreen"}))}render(){const{scale:ia,isEmbedV2Preview:na,isCommunityComboPreview:Sa,viewModeSwitchable:Na,dispatch:Tt}=this.props;return(0,y.jsxs)(y.Fragment,{children:[Na&&(0,y.jsx)(ta.D,{size:"compact",mode:"read_only",isShowInspect:!1}),(0,y.jsx)(so.j,{isReadOnly:!0,scale:ia,isCommunityPreview:!0,isEmbedV2Preview:na,isCommunityComboPreview:Sa,handleZoomIn:this.handleZoomIn,handleZoomOut:this.handleZoomOut,handleZoomInitialScale:this.handleZoomInitialScale,handleZoomSpecifiedScale:this.handleZoomSpecifiedScale,handleZoomSelection:this.handleZoomSelection,handleToggleFullScreenMode:this.handleToggleFullScreenMode,dispatch:Tt})]})}}const qr=(0,I.Mz)([J.X_,eo.Hs,Oo.nE,J.PL],(vo,ia,na,Sa)=>{let{category:Na}=Sa;const Tt=na.filter(gn=>gn.hotAttr.type===to.x.Canvas),mn=Na===Vo.t_,Rn=Na!==Vo.t_&&Na!==Vo.Gd;return{scale:vo,screenSelection:ia,selectionsCanvas:Tt,isCommunityComboPreview:mn,viewModeSwitchable:Rn}}),kr=(0,r.Ng)(vo=>qr(vo))(Qa);var ur=s(32424),Mr=s(16966),gr=s(70248),dr=s(69623),wi=s(69874),gi=s(93446);const Li=w.Ay.div.withConfig({displayName:"styles__StyledBasketEditorControl",componentId:"sc-1a2l41f-0"})(["pointer-events:auto;position:absolute;display:flex;z-index:5;right:14px;top:","px;width:calc(100% - ","px);height:36px;justify-content:space-between;align-items:center;background-color:",";border-radius:4px;overflow:hidden;padding-right:3px;box-shadow:0 2px 10px rgba(0,0,0,0.1);.left-content,.right-content{display:flex;align-items:center;}.left-content{flex:1;max-width:calc(100% - 238px - 40px);overflow:hidden;.quit-container{display:flex;align-items:center;cursor:pointer;}.icon-box{width:24px;height:24px;display:flex;align-items:center;justify-content:center;&.quit{width:30px;height:30px;margin:0 4px 0 3px;color:",";.svg-icon{width:30px;height:30px;}&:hover{background-color:",";border-radius:4px;}}&.arrow{color:",";.svg-icon{transform:rotate(180deg);}}}}.ctrl-btn-wrapper{display:flex;justify-content:center;align-items:center;width:34px;height:28px;cursor:pointer;border-radius:4px;color:",";&:last-child{margin-right:0;}.svg-icon.state{width:24px;height:24px;}&:hover,&.active{background-color:",";}.icon{width:34px;height:28px;}&.layout-row{svg.icon{path{stroke:currentColor;}}}}.divide{height:20px;width:1px;background-color:",";margin:0 10px;}"],vo=>14+(vo.isShowRuler?18:0),vo=>2*14+(vo.isShowRuler?18:0),vo=>vo.theme.color_bg_white,vo=>vo.theme.color_text_L1,vo=>vo.theme.color_btn_secondary_active,vo=>vo.theme.color_text_L1,vo=>vo.theme.color_text_L1,vo=>vo.theme.color_btn_secondary_active,vo=>vo.theme.color_bg_border_02),Ni=(0,w.AH)(["display:flex;flex:1;align-items:center;cursor:pointer;position:relative;height:32px;padding-left:8px;padding-right:4px;color:",";font-size:12px;max-width:200px;white-space:nowrap;.state-icon{display:flex;margin-right:2px;.svg-icon{width:20px;height:20px;}}"],vo=>vo.theme.color_content_text_item_state),Ai=w.Ay.div.withConfig({displayName:"styles__StyledStatePanel",componentId:"sc-1a2l41f-1"})(["position:fixed;width:240px;background-color:",";color:",";box-shadow:4px 12px 40px rgba(39,54,78,0.1),0 2px 10px rgba(39,54,78,0.08);border-radius:4px;border:1px solid ",";z-index:110;pointer-events:auto;header{height:40px;background-color:",";display:flex;justify-content:space-between;align-items:center;padding:0 16px;cursor:move;border-radius:4px 4px 0;.title{font-weight:500;}.icon{color:",";width:18px;height:18px;&:hover{color:",";}}}#mb-state-list{position:relative;}.state-list{display:flex;flex-direction:column;max-height:320px;width:100%;padding:8px 0;overflow-x:hidden;.list-index{font-weight:500;flex-shrink:0;height:32px;width:30px;line-height:32px;text-align:center;color:",";padding-left:5px;}.state-list-box{display:flex;align-items:center;cursor:pointer;&:hover{background-color:",";}&.active{background-color:",";color:#333333;.list-index{font-weight:500;}}.state-list-item{",";.invisible{width:20px;height:20px;margin-right:6px;color:",";}}}}"],vo=>vo.theme.color_bg_white,vo=>vo.theme.color_title_text_state,vo=>vo.theme.color_border_state,vo=>vo.theme.color_header_background_state,vo=>vo.theme.color_text_L2,vo=>vo.theme.color_text_L1,vo=>vo.theme.color_content_text_item_state,vo=>vo.theme.color_content_background_item_state_hover,vo=>vo.theme.color_content_background_item_state_active,Ni,bt.fm.color_text_L2.value_light),Bi=(0,w.DU)([".dragging-item{.state-list-item{","}}"],Ni),Ss=(0,w.DU)([".DesignDropdownMenuBase{.basket-path-list{.content{padding:8px 0;}}}"]),qi=w.Ay.ul.withConfig({displayName:"styles__StyledBasketPathList",componentId:"sc-1a2l41f-2"})(["display:flex;flex-direction:column;max-width:240px;align-items:center;cursor:pointer;font-size:12px;font-weight:400;width:auto;padding:8px;background-color:",";box-shadow:",";border-radius:8px;color:",";border:1px solid ",";li{display:flex;align-items:center;width:100%;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;padding-left:10px;padding-right:12px;border-radius:4px;height:24px;svg.svg-icon{width:20px;height:20px;margin-right:4px;}& > .Ellipsis{flex:1;}&:not(.is-disabled):hover{background-color:",";}}"],vo=>vo.theme.color_bg_white,vo=>vo.theme.shadow_m,vo=>vo.theme.color_text_L0,vo=>vo.theme.color_bg_border_01,vo=>vo.theme.color_btn_secondary_hover),Ga=w.Ay.div.withConfig({displayName:"styles__StyledBasketPathBreadCrumb",componentId:"sc-1a2l41f-3"})(["display:flex;flex:1 1 0%;min-width:0;align-items:center;.breadcrumb-item{white-space:nowrap;color:",";cursor:pointer;font-size:12px;line-height:28px;flex-shrink:100000;min-width:24px;&.page{max-width:84px;}&.ellipsis{min-width:fit-content;}div.path-name-container{display:flex;span{text-overflow:ellipsis;overflow:hidden;white-space:nowrap;}}&.active{color:",";font-weight:500;}&:hover{color:",";}&:not(:first-child):last-child{flex-shrink:1;max-width:100%;min-width:70px;text-overflow:ellipsis;overflow:hidden;}}.breadcrumb-separator{width:24px;flex-shrink:0;height:24px;display:flex;align-items:center;justify-content:center;color:",";.svg-icon{transform:rotate(180deg);}}"],vo=>vo.theme.color_text_L2,vo=>vo.theme.color_text_L1,vo=>vo.theme.color_text_L1,vo=>vo.theme.color_text_L1);var ai=s(30542),kt=s(78401);const Qt=vo=>{const ia=document.querySelector("#mb-state-list-container"),na=document.querySelector("#mb-state-list"),Sa=Array.from(na.querySelectorAll(".state-list-item")),Na=na.getBoundingClientRect(),Tt=ia.getBoundingClientRect(),mn=[],Rn={},gn={},Tn={},wo={};return Sa.forEach((io,fo)=>{const{cid:co}=io.dataset,ga=io.getBoundingClientRect();Rn[co]=Tn[co]=ga;const Fo=(0,kt.yB)(io);gn[co]=Fo;const{left:Eo,top:Oa,width:Ra,height:tr}=ga,Ar=Eo-Na.left,nr=Oa-Na.top,$a=Ar+Ra,Rr=nr+tr,or={top:nr,left:Fo.left-Na.left,width:Ra,height:tr};if(wo[co]={contentRect:or,rect:or,treeRect:or},co===vo.key){mn.push({cid:co,type:null,min:{x:Ar,y:nr},max:{x:$a,y:Rr},isValid:!1,parentCid:null});return}mn.push({cid:co,type:"prevSibling",min:{x:Ar,y:nr},max:{x:$a,y:nr+tr/2},isValid:!0,parentCid:null}),mn.push({cid:co,type:"nextSibling",min:{x:Ar,y:nr+tr/2},max:{x:$a,y:Rr},isValid:!0,parentCid:null})}),{matchDataList:mn,containerRect:Tt,rectQueryMap:wo}},oo=vo=>{let{cid:ia,type:na,screenState:Sa,refRBPageKey:Na}=vo;const mn=sdkStore.getSubHotItemList(Na).filter(Tn=>{let{hotAttr:{type:wo}}=Tn;return wo===to.x.Canvas}).sort((Tn,wo)=>Tn.hotAttr.order-wo.hotAttr.order).filter(Tn=>Tn.key!==Sa.key),Rn=mn.findIndex(Tn=>Tn.key===ia),gn=na==="prevSibling"?Rn:na==="nextSibling"?Rn+1:"error";mn.splice(gn,0,Sa),mn.forEach((Tn,wo)=>{Tn.hotAttr.order!==wo+1&&sdkStore.updateHotAttrKV(Tn.key,"order",wo+1)})},ao=vo=>sdkStore.getSubHotItemList(vo).filter(ia=>{let{hotAttr:{type:na}}=ia;return na===to.x.Canvas}).sort((ia,na)=>ia.hotAttr.order-na.hotAttr.order);class fa extends C.PureComponent{constructor(ia){super(ia),(0,U.A)(this,"portal",document.createElement("div")),(0,U.A)(this,"setElementRef",na=>this.$item=na),(0,U.A)(this,"handleUpdateState",()=>this.setState({innerHeight:window.innerHeight,innerWidth:window.innerWidth})),(0,U.A)(this,"handleWheel",na=>na.preventDefault()),(0,U.A)(this,"handleMove",(na,Sa)=>{this.props.dispatch(l.GO.updateBasketStatePanelPosition({left:na,top:Sa}))}),(0,U.A)(this,"handleClose",()=>{this.props.onClose(),document.removeChild(this.portal)}),(0,U.A)(this,"getContainerElement",()=>document.getElementById("mb-state-list-container")),(0,U.A)(this,"handleMouseDown",(na,Sa,Na)=>{na.stopPropagation();const{top:Tt,left:mn}=Na.getBoundingClientRect(),Rn=na.clientX-mn,gn=na.clientY-Tt,Tn={screenState:Sa,$element:Na,offsetX:Rn,offsetY:gn,...Qt(Sa)};this.setState({dragAndDropState:Tn})}),(0,U.A)(this,"handleDropState",na=>{let{cid:Sa,type:Na,isValid:Tt}=na;const{dragAndDropState:{screenState:mn}}=this.state;if(this.setState({dragAndDropState:null}),!Tt)return;const{refRBPageKey:Rn,dispatch:gn}=this.props;oo({cid:Sa,type:Na,screenState:mn,refRBPageKey:Rn}),this.setState({stateList:ao(Rn)}),gn({type:"entry:layout:basket-canvas"})}),(0,U.A)(this,"handleScroll",()=>{}),(0,U.A)(this,"handleNameChange",(na,Sa)=>{if(Sa==="")return;const{dispatch:Na}=this.props;Na({type:"entry:widget:change",payload:{flatChgList:[{key:na.key,hotAttr:{name:Sa}}],shouldBreakLayerUICache:!0}}),this.setState({stateList:ao(this.props.refRBPageKey)})}),this.state={dragAndDropState:null,stateList:ao(ia.refRBPageKey),innerHeight:window.innerHeight,innerWidth:window.innerWidth}}componentDidUpdate(ia,na,Sa){JSON.stringify(ao(this.props.refRBPageKey))!==JSON.stringify(this.state.stateList)&&this.setState({stateList:ao(this.props.refRBPageKey)})}static getDerivedStateFromProps(ia,na){let{stateList:Sa}=na;return sdkStore.getHotItem(ia.refRBPageKey).sub.length!==Sa.length?{stateList:ao(ia.refRBPageKey)}:null}componentDidMount(){document.body.appendChild(this.portal),this.portal.addEventListener("wheel",this.handleWheel,{passive:!1}),window.addEventListener("resize",this.handleUpdateState)}componentWillUnmount(){document.body.removeChild(this.portal),this.portal.removeEventListener("wheel",this.handleWheel,{passive:!1}),window.removeEventListener("resize",this.handleUpdateState)}render(){const{isOpen:ia,statePanelPosition:na,onClose:Sa,newSelections:Na,dispatch:Tt}=this.props;if(!ia)return null;const{dragAndDropState:mn,stateList:Rn,innerWidth:gn,innerHeight:Tn}=this.state,{$element:wo,matchDataList:io,containerRect:fo,rectQueryMap:co,offsetX:ga,offsetY:Fo}=mn||{},Eo=Math.max(Math.min(na==null?void 0:na.left,gn-240),0),Oa=Math.max(Math.min(na==null?void 0:na.top,Tn-360),0);return(0,y.jsx)(y.Fragment,{children:(0,dr.createPortal)((0,y.jsx)(gi.A,{position:{left:Eo,top:Oa},onMove:this.handleMove,children:(0,y.jsxs)(Ai,{className:"basket-state-panel-container","data-is-widget-insertable":!1,children:[(0,y.jsxs)("header",{type:"draggable",children:[(0,y.jsx)("span",{className:"title",children:I18N.builtin.state}),(0,y.jsx)("a",{className:"icon",onClick:Sa,children:(0,y.jsx)(M.C,{className:"times-icon",name:"general/times"})})]}),(0,y.jsx)("div",{id:"mb-state-list-container",className:"state-list",onScroll:this.handleScroll,children:(0,y.jsx)("div",{id:"mb-state-list-indicator-container",className:"mb-state-list-indicator-container",children:(0,y.jsxs)("div",{id:"mb-state-list",children:[Rn.map(Ra=>(0,y.jsxs)("div",{"data-type":"state",className:$()("state-list-box","interactive-target-hotspot",{active:Ra.key===Na[0]}),"data-cid":Ra.key,"data-interactive-target-key":Ra.key,"data-interactive-target-type":me.E.canvasStateList,children:[(0,y.jsx)("span",{className:"list-index",children:Ra.hotAttr.order}),(0,y.jsx)(wr,{item:Ra,onMouseDown:this.handleMouseDown,onChangeName:this.handleNameChange,dispatch:Tt})]},Ra.key)),mn&&(0,y.jsx)(ai.A,{draggingElement:wo,getContainerElement:this.getContainerElement,matchDataList:io,containerRect:fo,rectQueryMap:co,offsetX:ga,offsetY:Fo,onDrop:this.handleDropState})]})})}),(0,y.jsx)(Bi,{})]})}),document.querySelector(".statePanelRoot"))})}}class wr extends C.PureComponent{constructor(){super(...arguments),(0,U.A)(this,"setElementRef",ia=>this.$item=ia),(0,U.A)(this,"state",{isEditing:!1}),(0,U.A)(this,"handleMouseDown",ia=>{const{item:na}=this.props;this.props.onMouseDown(ia,na,this.$item)}),(0,U.A)(this,"handleClick",()=>{this.props.dispatch(l.GO.select([this.props.item.key])),this.props.dispatch({type:"entry:design:zoom:selection",payload:{initScale:!0}})}),(0,U.A)(this,"handleEdit",()=>{this.setState({isEditing:!0})}),(0,U.A)(this,"handleNameChange",(ia,na)=>{this.setState({isEditing:!1}),ia!==""&&this.props.onChangeName(this.props.item,ia)}),(0,U.A)(this,"handleInvisibleClick",(ia,na)=>{ia.stopPropagation(),this.props.dispatch({type:"entry:toggle:visible",payload:{widget:na}})})}render(){const{item:ia}=this.props,{isEditing:na}=this.state;return(0,y.jsxs)("div",{"data-cid":ia.key,ref:this.setElementRef,className:"state-list-item",onMouseDown:this.handleMouseDown,onClick:this.handleClick,onDoubleClick:this.handleEdit,children:[(0,y.jsx)(wi.A,{isEditing:na,className:"editable-span",value:(0,kt.wh)(ia.hotAttr.name),onConfirm:this.handleNameChange},ia.hotAttr.name),!ia.hotAttr.isVisible&&(0,y.jsx)(M.C,{className:"invisible",name:"common/invisible",onClick:Sa=>this.handleInvisibleClick(Sa,ia)})]})}}var Xa=s(68677),ir=s(87332),Ir=s(74222),Er=function(vo){return vo[vo.mainPage=0]="mainPage",vo[vo.mubanRefPage=1]="mubanRefPage",vo[vo.danli=2]="danli",vo}(Er||{});const ji=vo=>{const ia=sdkStore.getHotItem(vo);if(!ia)return null;const{hotAttr:{name:na,basket:Sa},sup:Na}=ia,Tt=Sa==="bDanli"?Er.danli:Na===Ir.fW?Er.mubanRefPage:Er.mainPage;return{key:vo,name:na,type:Tt}},ci=vo=>{const ia=[];if((0,gr.OO)(vo)){const na=(0,gr.QL)(vo);for(let Sa=0;Sa<na.length;Sa++)Sa===0?ia.push(ji(na[Sa])):ia.push(ji((0,gr.iK)(na.slice(0,Sa),na[Sa])))}else ia.push(ji(vo));return ia.filter(na=>!!na)},Cl=vo=>{let{basketPathList:ia,onBasketPathClick:na}=vo;return(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(ir.A,{shouldPreventScrollingPropagation:!0,isDisabled:!1,menuX:"left",isPlaceholder:!1,className:"",renderOpener:(0,y.jsx)("div",{className:"breadcrumb-item ellipsis",children:"..."}),menuClassName:"basket-path-list",renderMenu:(0,y.jsx)(qi,{children:ia.map(Sa=>(0,y.jsxs)("li",{onClick:()=>na(Sa),children:[(0,y.jsx)(M.C,{name:"left_panel/dynamic/new"}),(0,y.jsx)(Xa.A,{children:Sa.name})]},Sa.key))})}),(0,y.jsx)(Ss,{})]})},Di=vo=>{let{currentPageKey:ia,editingBasketKey:na,editingBasketRefPage:Sa,dispatch:Na}=vo;const Tt=ia&&ji(ia),mn=Tt?[Tt]:[],Rn=Sa&&ji(Sa);Rn&&mn.push(Rn),na&&mn.push(...ci(na));const gn=mn.slice(1,-1).at(-1),Tn=mn.slice(1,-1).slice(0,-1),wo=fo=>{if(!fo)return;const{type:co,key:ga}=fo;switch(co){case Er.mainPage:{Na({type:"entry:exit:edit:basket"});break}case Er.mubanRefPage:{const Fo=sdkStore.getHotItem(ga);Na({type:"entry:edit:basket:source:muban",payload:{item:{...Fo,...Fo.hotAttr}}});break}case Er.danli:{Na({type:"entry:edit:bDanli",payload:{bDanliKey:ga}});break}default:break}},io=mn.at(-1);return(0,y.jsxs)(Ga,{hasEllipsis:Tn.length>0,hasSecondLastPath:!!gn,children:[na&&(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("div",{className:"breadcrumb-item page",onClick:()=>wo(mn[0]),children:(0,y.jsx)("div",{className:"path-name-container",children:(0,y.jsx)("span",{children:mn[0].name})})}),(0,y.jsx)("div",{className:"breadcrumb-separator",children:(0,y.jsx)(M.C,{name:"common/back"})})]}),Tn.length>0&&(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(Cl,{basketPathList:Tn,onBasketPathClick:wo}),(0,y.jsx)("div",{className:"breadcrumb-separator",children:(0,y.jsx)(M.C,{name:"common/back"})})]}),gn&&(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(He.A,{content:gn.name,distance:5,direction:"down",children:(0,y.jsx)("div",{className:"breadcrumb-item",onClick:()=>wo(gn),children:(0,y.jsx)("div",{className:"path-name-container",children:(0,y.jsx)("span",{children:gn.name})})})}),(0,y.jsx)("div",{className:"breadcrumb-separator",children:(0,y.jsx)(M.C,{name:"common/back"})})]}),io&&(0,y.jsx)(He.A,{content:io.name,distance:5,direction:"down",children:(0,y.jsx)("div",{className:"breadcrumb-item active",onClick:()=>wo(io),children:(0,y.jsx)("div",{className:"path-name-container",children:(0,y.jsx)("span",{children:io.name})})})})]})};var Rs=s(25997),wc=s(65209),Vc=s(85131),Wl=s(94590),ca=s(64580),Lr=s(47693);const yi=(0,I.Mz)([ne.jI,ne.bt,ne.jj,Oo.p$,eo.p$,ne.jx,J.$S,q.qT,ne.pH,ne.rg,ne.uu,Rs.UV,ne.PR,Rs.RX,ne.YL],(vo,ia,na,Sa,Na,Tt,mn,Rn,gn,Tn,wo,io,fo,co,ga)=>{const Fo=Tt===l.qi.OnlyView,Eo=mn&&Rn&&!gn&&!Tn&&!wo;return{statePanelPosition:na,editingBasketKey:vo,editingBasketRefPage:ia,newSelections:Sa,pageKey:Na==null?void 0:Na.key,onlyView:Fo,isShowRuler:Eo,editingBasketHotItem:fo,isVersionPreview:ga,widgetStore:io}});function Ts(vo){const[ia,na]=(0,C.useState)(vo);return(0,C.useEffect)(()=>{na(vo)},[vo]),[ia,na]}const Cc=(0,C.memo)(vo=>{var ia,na,Sa,Na,Tt;let{editingBasketHotItem:mn,editingBasketKey:Rn,editingBasketRefPage:gn,statePanelPosition:Tn,newSelections:wo,pageKey:io,onlyView:fo,isShowRuler:co,isVersionPreview:ga,widgetStore:Fo,dispatch:Eo}=vo;const[Oa,Ra]=(0,C.useState)(!1),tr=(0,C.useRef)(null),[Ar,nr]=(0,C.useState)(0),$a=mn==null?void 0:mn.key,Rr=(mn==null||(ia=mn.hotAttr)==null?void 0:ia.type)==="rResBunch"?$a:mn==null||(na=mn.hotAttr)==null?void 0:na.refRBPageKey,[or,Ba]=Ts(mn==null||(Sa=mn.hotAttr)==null?void 0:Sa.layout),Ja=(mn==null||(Na=mn.hotAttr)==null?void 0:Na.type)===to.x.WBasket&&(mn==null||(Tt=mn.hotAttr)==null?void 0:Tt.basket)==="bDanli",Za=(0,C.useRef)(mn);Za.current=mn;const Nr=(0,C.useCallback)(()=>{var Hi,yr,$r;if(!mn)return;const os=mn==null||(Hi=mn.hotAttr)==null?void 0:Hi.w,pt=mn==null||(yr=mn.hotAttr)==null?void 0:yr.h,Ee=($r=(0,Vc.BZ)(Rr))==null?void 0:$r.length,Ue=(0,ur.kt)("rc");sdkStore.combineMergeMark("add-canvas");const ke={key:Ue,sup:Rr,sub:[],hotAttr:{...(0,Mr.Nc)(I18N.builtin.state+" "+(Ee+1),Ee+1),w:os,h:pt,x:os/2,y:pt/2,fill:{fillIsVisible:!0,fill:"solid",solidColor:4294967040},order:(0,Vc.QN)(Rr),zIndex:(0,wc._)(Rr)}};sdkStore.updateHotItem(ke),sdkStore.updateHotAttrKV(Rr,"mtime",rootSdk.fssCmt.getClockStore().getMtime()),Ee||(Ja?sdkStore.updateHotAttrKV($a,"refContentKey",ke.key):sdkStore.updateHotAttrKV($a,"defaultCanvasKey",ke.key),Eo(l.GO.editBasketHotItem(sdkStore.getHotItem($a)))),Eo({type:"entry:layout:basket-canvas"}),sdkStore.combineMerge("add-canvas"),Eo({type:"entry:refresh:link-list"}),Eo({type:"entry:clear:selection"}),Eo({type:"entry:select:items",payload:{cids:[Ue]}}),(0,Lr.RW)({operation_type:Lr.Q1.AddState,operation_from:Ja?Lr.IL.Dynamic:Lr.IL.Muban})},[Eo,mn,Ja,Rr]),ii=(0,C.useCallback)(()=>{Eo({type:"entry:preview:current-project"}),fo?(0,ca.A)({operation_type:Ja?ca.D.BasketPreview:ca.D.MubanPreview}):(0,Wl.kX)({operation_type:Ja?Wl.mV.BasketPreview:Wl.mV.MubanPreview}),(0,Lr.RW)({operation_type:Lr.Q1.Device,operation_from:Ja?Lr.IL.Dynamic:Lr.IL.Muban})},[Eo,Ja,fo]),Ci=(0,C.useCallback)(Hi=>{Ba(Hi),Rn&&sdkStore.updateHotAttrKV((0,gr.OO)(Rn)?(0,gr.QL)(Rn).pop():Rn,"layout",Hi),gn&&sdkStore.updateHotAttrKV(gn,"layout",Hi),Eo({type:"entry:layout:basket-canvas"}),Eo({type:"entry:refresh:link-list"}),Eo({type:"entry:zoom:fit:scale:offset"}),(0,Lr.RW)({operation_type:Lr.Q1[Hi],operation_from:Ja?Lr.IL.Dynamic:Lr.IL.Muban})},[Eo,Rn,gn,Ja,Ba]),Zi=(0,C.useCallback)(()=>{Eo({type:"entry:exit:edit:basket"}),(0,Lr.RW)({operation_type:Lr.Q1.BackToCanvas,operation_from:Ja?Lr.IL.Dynamic:Lr.IL.Muban})},[Eo,Ja]),Zr=(0,C.useCallback)(()=>{if(Tn.top===0&&Tn.left===0&&!Oa){const{left:Hi,top:yr,width:$r,height:os}=tr.current.getBoundingClientRect(),pt=Hi-240+$r,Ee=yr+os+16;Eo(l.GO.updateBasketStatePanelPosition({left:pt,top:Ee}))}Ra(!Oa),(0,Lr.RW)({operation_type:Lr.Q1.StatePanel,operation_from:Ja?Lr.IL.Dynamic:Lr.IL.Muban})},[Eo,Ja,Oa,Tn.left,Tn.top]);return(0,C.useEffect)(()=>{const Hi=Fo.addSdkStoreChangeListener(yr=>{let{changedKeyList:$r,isRemote:os}=yr;if(!os||!$a)return;const pt=$a!==Rr;if(Fo.isTrashed($a)||Rn&&Fo.isTrashed(Rn))Eo({type:"entry:exit:edit:basket"}),MB.notice({text:"\u5F53\u524D\u7F16\u8F91"+(pt?"\u52A8\u6001\u7EC4\u4EF6":"\u6BCD\u7248")+"\u5DF2\u88AB\u6B63\u5728\u534F\u540C\u7684\u6210\u5458\u5220\u9664",type:"warning"});else{const Ee=Fo.getHotItem(Rr),Ue=Ee==null?void 0:Ee.sub;if(!(Ue!=null&&Ue.length)||Ue.every(ut=>Fo.isTrashed(ut))){Eo({type:"entry:exit:edit:basket"}),sdkStore.deleteHotItem($a);return}const ke=(0,gr.OO)($a)?(0,gr.QL)($a):[$a];pt&&ke.push(Ee.key,io);const Ve=ke.some(ut=>$r.includes(ut)),st=Fo.sdkStore.getHotItem($a);Ve&&(Eo(l.GO.editBasketHotItem(st)),pt&&nr(Math.random())),(["w","h"].some(ut=>Za.current.hotAttr[ut]!==st.hotAttr[ut])||Za.current.sub.join(" ")!==st.sub.join(" ")||$r.some(ut=>{const Rt=Fo.sdkStore.getHotItem(ut);return(Rt==null?void 0:Rt.hotAttr.type)===to.x.Canvas&&(Rt.sup===$a||Rt.sup===Rr)}))&&Eo({type:"entry:layout:basket-canvas",payload:{canUpdateTear:!1}})}});return()=>{Hi()}},[Fo,io,Rn,$a,Rr]),(0,y.jsxs)(Li,{isShowRuler:co,"data-is-widget-insertable":!1,children:[(0,y.jsxs)("div",{className:"left-content",children:[(0,y.jsx)("div",{className:"quit-container",onClick:Zi,children:(0,y.jsx)("div",{className:"icon-box quit",children:(0,y.jsx)(He.A,{content:I18N.dModule.exit_editing,direction:"down",children:(0,y.jsx)(M.C,{name:"art_board/basket/quit"})})})}),(0,y.jsx)(Di,{currentPageKey:io,editingBasketKey:Rn,editingBasketRefPage:gn,basketPathCacheTag:Ar,dispatch:Eo})]}),(0,y.jsxs)("div",{className:"right-content",children:[!ga&&(0,y.jsx)(He.A,{content:I18N.builtin.demo,direction:"down",distance:8,children:(0,y.jsx)("div",{className:"ctrl-btn-wrapper",onClick:ii,children:(0,y.jsx)(M.C,{name:"art_board/basket/preview"})})}),!fo&&(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(He.A,{content:I18N.builtin.add_state,direction:"down",distance:8,children:(0,y.jsx)("div",{className:"ctrl-btn-wrapper",onClick:Nr,children:(0,y.jsx)(M.C,{name:"art_board/basket/add"})})}),(0,y.jsx)("div",{className:"divide"}),(0,y.jsx)(He.A,{content:I18N.builtin.horizontal,direction:"down",distance:8,children:(0,y.jsx)("div",{className:$()("ctrl-btn-wrapper",{active:or==="col"}),onClick:()=>Ci("col"),children:(0,y.jsx)(M.C,{name:"art_board/basket/layout/col"})})}),(0,y.jsx)(He.A,{content:I18N.builtin.vertical,direction:"down",distance:8,children:(0,y.jsx)("div",{className:$()("ctrl-btn-wrapper","layout-row",{active:or==="row"}),onClick:()=>Ci("row"),children:(0,y.jsx)(M.C,{name:"art_board/basket/layout/row"})})}),(0,y.jsx)("div",{className:"divide"}),(0,y.jsx)(He.A,{content:I18N.builtin.state_panel,direction:"down",distance:8,children:(0,y.jsx)("div",{ref:tr,className:$()("ctrl-btn-wrapper",{active:Oa}),onClick:Zr,children:(0,y.jsx)(M.C,{name:"art_board/state",className:"state"})})})]})]}),Rr&&(0,y.jsx)(fa,{isOpen:Oa,statePanelPosition:Tn,refRBPageKey:Rr,newSelections:wo,onClose:()=>Ra(!1),dispatch:Eo})]})}),Wi=(0,r.Ng)(vo=>yi(vo))(Cc);var Ml=s(27660),Oi=s(48892);class zs extends C.PureComponent{constructor(){super(),(0,U.A)(this,"handleScroll",ia=>{ia.stopPropagation();const na=ia.target.dataset.axis,{clientX:Sa,clientY:Na}=ia,{canvasOffset:{x:Tt,y:mn},viewportHeight:Rn,viewportWidth:gn,canvasRange:Tn,onScroll:wo}=this.props,io=na==="x"?gn:Rn,fo=ga=>{const{clientY:Fo,clientX:Eo}=ga;let Oa=na==="x"?Eo-Sa:Fo-Na;Oa=Oa/(io-io/Tn[na]*io)*Tn[na];const Ra=na==="x"?{x:Tt-Oa,y:mn}:{x:Tt,y:mn-Oa};wo(Ra)},co=ga=>{document.removeEventListener("mousemove",fo),document.removeEventListener("mouseup",co)};document.addEventListener("mousemove",fo),document.addEventListener("mouseup",co)}),(0,U.A)(this,"handleClickTrack",ia=>{const na=ia.target.dataset.axis,{clientX:Sa,clientY:Na}=ia,{onScroll:Tt,canvasRange:mn,viewportHeight:Rn,viewportWidth:gn}=this.props,{top:Tn,bottom:wo,left:io,right:fo}=this.scrollbarX.getBoundingClientRect(),co=na==="x"?this.scrollbarX:this.scrollbarY,ga=na==="x"?Sa>fo:Na>wo,Fo=na==="x"?Sa<io:Na<Tn,Eo=na==="x"?gn:Rn,Oa=()=>{const{top:tr,bottom:Ar,left:nr,right:$a}=co.getBoundingClientRect(),{canvasOffset:{x:Rr,y:or}}=this.props,Ba=na==="x"?Sa>$a:Na>Ar,Ja=na==="x"?Sa<nr:Na<tr,Nr=(Ja?-1:Ba?1:0)*Math.min(mn[na]/10,Eo),ii=na==="x"?{x:Rr-Nr,y:or}:{x:Rr,y:or-Nr};(Ba||Ja)&&Tt(ii)};(ga||Fo)&&(co.style.transition="all 0.1s linear",Oa(),this.timer=setTimeout(()=>this.timeInterval=setInterval(Oa,100),500));const Ra=tr=>{co.style.transition="",clearTimeout(this.timer),clearInterval(this.timeInterval),document.removeEventListener("mouseup",Ra)};document.addEventListener("mouseup",Ra)}),this.setRefY=ia=>this.scrollbarY=ia,this.setRefX=ia=>this.scrollbarX=ia}render(){const{className:ia,canvasOffset:{x:na,y:Sa},canvasRange:Na,viewportWidth:Tt,viewportHeight:mn,showRuler:Rn}=this.props,gn=Tt/Na.x;let Tn=(Na.x/2-na)*(Na.x-Tt)/(Na.x*Na.x);Tn=Math.min(Math.max(Tn,0),(Na.x-Tt)/Na.x);const wo=mn/Na.y;let io=(Na.y/2-Sa)*(Na.y-mn)/(Na.y*Na.y);io=Math.min(Math.max(io,0),(Na.y-mn)/Na.y);const fo={width:gn*100+"%",transform:"translateX("+Tn*Tt+"px)",willChange:"transform"},co={height:wo*100+"%",transform:"translateY("+io*mn+"px)",willChange:"transform"},ga=Rn?null:{left:0},Fo=Rn?null:{top:0};return(0,y.jsxs)(Oi.W,{className:ia,children:[(0,y.jsx)("div",{"data-axis":"x",className:"track x-track",style:ga,onMouseDown:this.handleClickTrack,children:(0,y.jsx)("div",{ref:this.setRefX,className:"handler","data-axis":"x",onMouseDown:this.handleScroll,style:fo,children:(0,y.jsx)("div",{className:"thumb"})})}),(0,y.jsx)("div",{"data-axis":"y",className:"track y-track",style:Fo,onMouseDown:this.handleClickTrack,children:(0,y.jsx)("div",{ref:this.setRefY,className:"handler y-handler","data-axis":"y",onMouseDown:this.handleScroll,style:co,children:(0,y.jsx)("div",{className:"thumb"})})})]})}}(0,U.A)(zs,"propTypes",{className:gt().string,canvasOffset:gt().object,canvasRange:gt().object,viewportWidth:gt().number,viewportHeight:gt().number,showRuler:gt().bool,onScroll:gt().func}),(0,U.A)(zs,"defaultProps",{showRuler:!1});const Hl=(0,Ml.R)((vo,ia)=>({x:vo,y:ia})),El=(0,I.Mz)([J.$S,J.X_,J.Ur],(vo,ia,na)=>{var Sa;if(!vo||!na)return{x:0,y:0};const Na=(Sa=sdkStore.getHotItem(na==null?void 0:na.cid))==null?void 0:Sa.sub.filter(fo=>sdkStore.isActiveKey(fo)&&sdkStore.getHotItem(fo).hotAttr.type!=="rResBunch");let[Tt,mn,Rn,gn]=sdkStore.getHotKeyListAABB(Na);const Tn=ia/100;Tt=Math.min(Tt*Tn,-vo.width*3/2),Rn=Math.max(Rn*Tn,vo.width*3/2),mn=Math.min(mn*Tn,-vo.height*3/2),gn=Math.max(gn*Tn,vo.height*3/2);const wo=Math.max(-Tt,Rn,0),io=Math.max(-mn,gn,0);return Hl(wo*2,io*2)}),Xl=vo=>{let{viewportRect:ia,showRuler:na,onScroll:Sa}=vo;const Na=(0,r.d4)(mn=>(0,J.ER)(mn)),Tt=(0,r.d4)(mn=>El(mn));return(0,y.jsx)(zs,{viewportWidth:ia.width,viewportHeight:ia.height,canvasOffset:Na,canvasRange:Tt,showRuler:na,onScroll:Sa})},uc=w.Ay.section.withConfig({displayName:"styles__StyledArtboard",componentId:"sc-1a974hx-0"})(["flex:1;position:relative;pointer-events:none;#mb-ruler{.h-container,.v-container{.indicator .value{padding:3px;background-color:",";color:",";}}.corner::after{top:8px;left:6px;padding:0 6px;}}.shortcut-panel{header{a{color:#b8bcbf;&.is-active{color:#fff;}}}.shortcut-box{.shortcut-column{&:last-child{border:none;}.shortcut-item{p:last-child{letter-spacing:1px;}}}}}.operate{z-index:106;pointer-events:auto;cursor:pointer;position:absolute;top:15px;right:30px;display:flex;column-gap:5px;}"],vo=>vo.theme.color_bg_white,vo=>vo.theme.color_text_L2);class Pl extends C.PureComponent{constructor(){super(...arguments),(0,U.A)(this,"handleScroll",ia=>this.props.dispatch({type:"entry:set:canvas:offset",payload:{offset:ia}}))}componentDidMount(){const{isCommunityPreview:ia,isEmbedV2Preview:na,handMode:Sa,dispatch:Na}=this.props;this.props.dispatch({type:"entry:update:viewport:rect"}),(ia||na)&&!Sa&&(Na({type:"entry:hand-tool:enable",payload:{triggerMethod:"click"}}),Na(l.GO.toggleInspectMode(!1)))}render(){const{showPanelEditBreadNav:ia,viewportRect:na,showRuler:Sa,showLinkBack:Na,dispatch:Tt,showShortCutArtBoard:mn,isShowNps:Rn,currentUser:gn,theme:Tn,onlyView:wo,isCommunityPreview:io,isEmbedV2Preview:fo,isHtmlZipPreview:co,isVersionPreview:ga,fullScreenMode:Fo,showEmptyEditCombo:Eo,isShowVersionView:Oa}=this.props,Ra=!(io||fo||co||ga||Oa);return na?(0,y.jsx)(uc,{id:"mb-artboard",className:yt.c.GUIDE_NEW_OVERLAY_ONCE,children:Eo?(0,y.jsx)(j,{dispatch:Tt}):(0,y.jsxs)(y.Fragment,{children:[!wo&&(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(De,{showLinkBack:Na,showPanelEditBreadNav:ia,dispatch:Tt}),(0,y.jsx)("div",{className:"statePanelRoot"})]}),ia&&(0,y.jsx)(Wi,{}),Ra&&(0,y.jsx)(ya,{showShortCutArtBoard:mn,isShowNps:Rn,currentUser:gn,theme:Tn,dispatch:Tt,onlyView:wo}),!io&&(0,y.jsx)(Xl,{viewportRect:na,showRuler:Sa,onScroll:this.handleScroll}),io&&!Fo&&(0,y.jsx)(kr,{isEmbedV2Preview:fo})]})}):null}}const Pc=(0,I.Mz)([J.$S,q.qT,te.Z7,J.HW,te.xM,q.O4,ne.jx,T.r,ne.pH,ne.rg,ne.uu,ne.YL,ne.T7,ne.Ro,N.C,te.nF,B.cS],(vo,ia,na,Sa,Na,Tt,mn,Rn,gn,Tn,wo,io,fo,co,ga,Fo,Eo)=>{let{isEditingBasket:Oa,isDirectlyEditingBasket:Ra,isEditingCombo:tr}=Rn,{isEmptyScreen:Ar}=ga;const nr=!!Eo.currentViewing;return{onlyView:mn===l.qi.OnlyView,isCommunityPreview:gn,isEmbedV2Preview:Tn,isHtmlZipPreview:wo,isVersionPreview:io,fullScreenMode:fo,showLinkBack:Fo,showPanelEditBreadNav:Oa||Ra,showRuler:ia,viewportRect:vo,showShortCutArtBoard:na,isShowNps:Na,currentUser:Sa,theme:Tt,handMode:co,showEmptyEditCombo:Ar&&tr,isShowVersionView:nr}}),Gl=(0,r.Ng)(vo=>Pc(vo))(Pl)},9106:(Qn,qe,s)=>{"use strict";s.d(qe,{A:()=>M});var r=s(38502),I=Object.defineProperty,J=Object.defineProperties,N=Object.getOwnPropertyDescriptors,T=Object.getOwnPropertySymbols,te=Object.prototype.hasOwnProperty,q=Object.prototype.propertyIsEnumerable,ne=(w,y,j)=>y in w?I(w,y,{enumerable:!0,configurable:!0,writable:!0,value:j}):w[y]=j,B=(w,y)=>{for(var j in y||(y={}))te.call(y,j)&&ne(w,j,y[j]);if(T)for(var j of T(y))q.call(y,j)&&ne(w,j,y[j]);return w},l=(w,y)=>J(w,N(y)),U=(w,y)=>{var j={};for(var Q in w)te.call(w,Q)&&y.indexOf(Q)<0&&(j[Q]=w[Q]);if(w!=null&&T)for(var Q of T(w))y.indexOf(Q)<0&&q.call(w,Q)&&(j[Q]=w[Q]);return j},M=(0,r.forwardRef)((w,y)=>{var j=w,{size:Q,spin:ze,style:me}=j,Se=U(j,["size","spin","style"]);const Me=B(B({width:Q||"var(--x-icon-size, 1em)",height:Q||"var(--x-icon-size, 1em)",animation:ze?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),me);return r.createElement("svg",l(B({ref:y,style:Me},Se),{width:"12",height:"10",viewBox:"0 0 12 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),r.createElement("path",{d:"M12 5C12 2.23858 9.76142 0 7 0H5C2.23858 0 0 2.23858 0 5C0 7.76142 2.23858 10 5 10H7C9.76142 10 12 7.76142 12 5Z",fill:"url(#paint0_linear_941_72)"}),r.createElement("path",{d:"M12 5C12 2.23858 9.76142 0 7 0H5C2.23858 0 0 2.23858 0 5C0 7.76142 2.23858 10 5 10H7C9.76142 10 12 7.76142 12 5Z",fill:"url(#paint1_linear_941_72)",fillOpacity:"0.9"}),r.createElement("path",{d:"M12 5C12 2.23858 9.76142 0 7 0H5C2.23858 0 0 2.23858 0 5C0 7.76142 2.23858 10 5 10H7C9.76142 10 12 7.76142 12 5Z",fill:"url(#paint2_linear_941_72)",fillOpacity:"0.8"}),r.createElement("g",{filter:"url(#filter0_d_941_72)"},r.createElement("path",{d:"M7.9487 7.625H4.5513C4.083 7.625 3.67742 7.30001 3.57535 6.84296L2.99351 4.23773C2.89935 3.8161 3.34817 3.48155 3.72534 3.69225L4.10411 3.90384C4.32873 4.02932 4.6119 3.96386 4.75865 3.75252L5.82859 2.21172C6.02658 1.92661 6.44771 1.92502 6.64783 2.20864L7.74053 3.75726C7.88803 3.96631 8.16955 4.03028 8.39291 3.9055L8.77466 3.69225C9.15183 3.48155 9.60066 3.8161 9.50649 4.23773L8.92465 6.84296C8.82258 7.30001 8.417 7.625 7.9487 7.625Z",fill:"white"})),r.createElement("mask",{id:"mask0_941_72",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"2",y:"1",width:"8",height:"7"},r.createElement("path",{d:"M7.9487 7.625H4.5513C4.083 7.625 3.67742 7.30001 3.57535 6.84296L2.99351 4.23773C2.89935 3.8161 3.34817 3.48155 3.72534 3.69225L4.10411 3.90384C4.32873 4.02932 4.6119 3.96386 4.75865 3.75252L5.82859 2.21172C6.02658 1.92661 6.44771 1.92502 6.64783 2.20864L7.74053 3.75726C7.88803 3.96631 8.16955 4.03028 8.39291 3.9055L8.77466 3.69225C9.15183 3.48155 9.60066 3.8161 9.50649 4.23773L8.92465 6.84296C8.82258 7.30001 8.417 7.625 7.9487 7.625Z",fill:"white"})),r.createElement("g",{mask:"url(#mask0_941_72)"},r.createElement("path",{d:"M7.5 7.50011V5.00006L6.68054 2.13201C6.68054 2.13201 6.53336 1.78672 6.14453 1.74609C5.86401 1.71679 5.35547 1.66797 5.35547 1.66797C4.80859 1.48047 4.55469 1.32422 3.5 1L2 2.5001L3.50035 7.50011H7.5Z",fill:"url(#paint3_linear_941_72)"})),r.createElement("defs",null,r.createElement("filter",{id:"filter0_d_941_72",x:"1.98083",y:"0.996948",width:"8.53833",height:"7.62805",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},r.createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),r.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),r.createElement("feOffset",null),r.createElement("feGaussianBlur",{stdDeviation:"0.5"}),r.createElement("feComposite",{in2:"hardAlpha",operator:"out"}),r.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 1 0 0 0 0 0.388235 0 0 0 0 0.490196 0 0 0 1 0"}),r.createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_941_72"}),r.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_941_72",result:"shape"})),r.createElement("linearGradient",{id:"paint0_linear_941_72",x1:"7",y1:"0.5",x2:"7.9638",y2:"9.79641",gradientUnits:"userSpaceOnUse"},r.createElement("stop",{stopColor:"#FEAF92"}),r.createElement("stop",{offset:"1",stopColor:"#FE3666"})),r.createElement("linearGradient",{id:"paint1_linear_941_72",x1:"12",y1:"11.3889",x2:"7.98929",y2:"10.5319",gradientUnits:"userSpaceOnUse"},r.createElement("stop",{stopColor:"#D55C81"}),r.createElement("stop",{offset:"1",stopColor:"#D55C81",stopOpacity:"0"})),r.createElement("linearGradient",{id:"paint2_linear_941_72",x1:"11.0294",y1:"-1.1551e-07",x2:"7.5861",y2:"2.53388",gradientUnits:"userSpaceOnUse"},r.createElement("stop",{stopColor:"white"}),r.createElement("stop",{offset:"1",stopColor:"white",stopOpacity:"0"})),r.createElement("linearGradient",{id:"paint3_linear_941_72",x1:"7",y1:"4",x2:"7",y2:"7.5",gradientUnits:"userSpaceOnUse"},r.createElement("stop",{stopColor:"#FFD5DF"}),r.createElement("stop",{offset:"1",stopColor:"#FFD5DF",stopOpacity:"0"}))))})},9135:(Qn,qe,s)=>{"use strict";s.d(qe,{A:()=>xn});var r=s(38502),I=s(18381),J=s(12211),N=s(16454),T=s(95549),te=s(53732),q=s.n(te),ne=s(79150),B=s(17307),l=s(83199),U=s(21066),C=s(78301),M=s(25067),w=s(93413),y=s(53940),j=s(48281),Q=s(67787),ze=s(87332);const me=Q.Ay.div.withConfig({displayName:"styles__StyledCanvasPreviewToolbar",componentId:"sc-mefi91-0"})(["height:50px;display:flex;justify-content:space-between;padding:0 20px;background:",";border-bottom:1px solid ",";cursor:move;.toolbar-left{display:flex;align-items:center;.prev,.next{width:28px;height:28px;color:",";path{fill:none;stroke:currentColor;}&.disabled{color:",";}}.next{transform:rotate(180deg);margin-left:6px;}.reset{width:28px;height:28px;margin:0 6px;}}.toolbar-right{display:flex;align-items:center;.open-in-device-mode{width:28px;height:28px;margin-left:6px;color:",";}.close{margin-left:6px;width:26px;height:26px;cursor:pointer;color:",";&:hover{color:",";}&:active{color:",";}}}.prev,.next,.open-in-device-mode{color:",";&:not(.disabled):hover{color:",";}&:not(.disabled):active{color:",";}}"],Ye=>Ye.theme.color_bg_white,Ye=>Ye.theme.color_bg_border_02,Ye=>Ye.theme.color_text_L2,Ye=>Ye.theme.color_text_disabled01,Ye=>Ye.theme.color_text_L2,Ye=>Ye.theme.color_text_L2,Ye=>Ye.theme.color_text_L1,Ye=>Ye.theme.color_text_L1,Ye=>Ye.theme.color_text_L2,Ye=>Ye.theme.color_text_L1,Ye=>Ye.theme.color_text_L1),Se=(0,Q.Ay)(ze.A).withConfig({displayName:"styles__StyledViewMenu",componentId:"sc-mefi91-1"})([".toolbar-icon-item{width:28px;height:28px;color:",";cursor:pointer;&:hover{color:",";}}&.is-open{.toolbar-icon-item{color:",";}}"],Ye=>Ye.theme.color_text_L2,Ye=>Ye.theme.color_text_L1,Ye=>Ye.theme.color_text_L1);var Me=s(72214);class De extends r.PureComponent{render(){const{dispatch:wn,propsForMenu:Hn}=this.props;return(0,Me.jsx)(tt,{dispatch:wn,propsForMenu:Hn})}}const tt=Ye=>{let{dispatch:wn,propsForMenu:Hn}=Ye;const zn=(0,Me.jsx)(B.C,{name:"toolbar/selected",className:"selected-icon"}),{theme:ko,isHighlight:On,isPreviewAIComponent:Mo}=Hn,jn=(0,r.useRef)(null),[xo,jo]=(0,r.useState)({left:-999,top:-999}),Qo=()=>{wn({type:"entry:preview-setting:update:is-highlight",payload:{isHighlight:!On}}),(0,j.v)({operation_type:j.$.HighLight})},cn=tn=>{wn({type:"reducer:preview-toolbar:update",payload:{theme:tn}}),(0,j.v)({operation_type:tn===y.Sx.DARK?j.$.DarkBackground:j.$.LightBackground})},In=tn=>{var Jt,Ln,Xn;if(jn!=null&&(Jt=jn.current)!=null&&Jt.$element&&tn){var Dn;const go=jn==null||(Dn=jn.current)==null||(Dn=Dn.$element)==null?void 0:Dn.getBoundingClientRect();if(go){const Uo=(48-go.height)/2,Ho={left:go.left-2+32,top:go.bottom+Uo-2};jo(Ho)}}(Ln=MB)==null||(Ln=Ln.commonGuideHelper)==null||Ln.closeGuide(w.c.GUIDE_PREVIEW_VIEW_BTN),(Xn=MB)==null||(Xn=Xn.commonGuideHelper)==null||Xn.markGuideAsRead(w.c.GUIDE_PREVIEW_VIEW_BTN)};return(0,Me.jsx)(Se,{ref:jn,onClick:In,className:"canvas-preview-toolbar-view-menu",renderOpener:(0,Me.jsx)(M.A,{name:I18N.pPreviewToolbar.comment,toolTipName:I18N.ToolBar.view,svgIconName:"toolbar/canvas_preview/view",toolTipDistance:8,size:24}),renderMenu:(0,Me.jsxs)(C.Sv,{className:q()("onlyPreview"),position:xo,onClose:()=>{},children:[!Mo&&(0,Me.jsxs)(Me.Fragment,{children:[(0,Me.jsx)(U.Dr,{text:I18N.ToolBar.lingLink,disabled:!1,icon:On?zn:void 0,onClick:Qo}),(0,Me.jsx)("div",{className:"menu-divider"})]}),(0,Me.jsx)(U.Dr,{text:I18N.PreferenceBar.dark_background,disabled:!1,icon:ko===y.Sx.DARK?zn:void 0,onClick:()=>cn(y.Sx.DARK)}),(0,Me.jsx)(U.Dr,{text:I18N.PreferenceBar.light_background,disabled:!1,icon:ko===y.Sx.LIGHT?zn:void 0,onClick:()=>cn(y.Sx.LIGHT)}),(0,Me.jsx)(C.kb,{})]})})},at=(0,J.Mz)([N.m5,N.Re,N.ks],(Ye,wn,Hn)=>({propsForMenu:{theme:Ye,isHighlight:wn,isPreviewAIComponent:Hn}})),ht=(0,I.Ng)(Ye=>at(Ye))(De);class Je extends r.PureComponent{constructor(){super(...arguments),(0,T.A)(this,"handleGoto",wn=>{const{dispatch:Hn}=this.props;Hn({type:"entry:preview:switch:page",payload:{isPrev:wn}}),(0,j.v)({operation_type:wn?j.$.previousPage:j.$.NextPage})}),(0,T.A)(this,"handleResetScreen",()=>{const{dispatch:wn}=this.props;wn({type:"entry:runner:reset"})})}render(){const{activeCanvasKey:wn,activePageKey:Hn,canvasKeyList:zn,onCloseModal:ko,onLunch:On}=this.props,Mo=zn==null?void 0:zn.length,jn=zn.indexOf(wn)+1,xo=[0,1].includes(jn),jo=[0,Mo].includes(jn);return(0,Me.jsxs)(me,{type:"draggable",children:[(0,Me.jsxs)("div",{className:"toolbar-left",children:[(0,Me.jsx)(l.A,{content:I18N.w.prev_page,direction:"down",children:(0,Me.jsx)(ne.A,{name:"toolbar/preview/arrow",className:q()("prev",{disabled:xo}),onClick:xo?void 0:()=>this.handleGoto(!0)})}),(0,Me.jsx)(l.A,{content:I18N.w.next_page,direction:"down",children:(0,Me.jsx)(ne.A,{name:"toolbar/preview/arrow",className:q()("next",{disabled:jo}),onClick:jo?void 0:()=>this.handleGoto(!1)})}),(0,Me.jsx)(l.A,{content:I18N.SettingPanel.reset,direction:"down",children:(0,Me.jsx)(ne.A,{name:"toolbar/preview/reset",className:"reset",onClick:this.handleResetScreen})})]}),(0,Me.jsxs)("div",{className:"toolbar-right",children:[(0,Me.jsx)(ht,{}),(0,Me.jsx)(l.A,{content:I18N.dModals.canvas_preview.open_in_device_mode,direction:"down",children:(0,Me.jsx)(ne.A,{className:"open-in-device-mode",name:"toolbar/canvas_preview/open_in_device_mode",onClick:()=>On({activePageKey:Hn,activeCanvasKey:wn})})}),(0,Me.jsx)(B.C,{name:"general/times",className:"close",onClick:ko})]})]})}}const $=(0,J.Mz)([N.mf,N.lR],(Ye,wn)=>{let{activeCanvasKey:Hn,activePageKey:zn}=Ye;return{activeCanvasKey:Hn,activePageKey:zn,canvasKeyList:wn}}),mt=(0,I.Ng)(Ye=>$(Ye))(Je);var yt=s(69246),Le=s(46464),He=s(20089),ye=s(20640);const je=(0,Q.Ay)(U.Ay).withConfig({displayName:"styles__StyledMenuContent",componentId:"sc-1nes2uf-0"})(["&.isFullScreen > ul{width:189px;}ul{width:160px;min-width:0;}.scroll{overflow-y:overlay;max-height:258px;&::-webkit-scrollbar{display:none;}}.padd{display:flex;flex-direction:row;align-items:center;li{&.rResBunch::after{top:11px;}a{height:24px;}}}li{list-style:none;&.canExpand{a{padding-left:6px;}}&.isFolder{a{padding-left:15px;}&.canExpand{a{padding-left:6px;}}a a .screen-icon{padding-left:2px;}}&.MenuItem.hasIcon.rResCanvas > a:first-child{padding-left:4px;}&.rResBunch.selected .arrow-right{}&.rResBunch::before{opacity:0;position:absolute;top:9.5px;right:25px;content:'';display:none;width:5px;height:5px;background-color:#999999;border-radius:50%;}&.rResBunch.selected:not(.isPreviewCombo):not(.isPanelPreview)::before{display:block;opacity:1;}&.rResBunch::after{opacity:0;position:absolute;top:13px;left:8px;content:'';width:7px;height:4px;display:none;border:1px solid #fff;border-width:0 0 2px 2px;transform:rotate(-45deg);}&.rResBunch.selected.isPreviewCombo::after{opacity:1;display:inline-block;}}a{height:24px;padding-left:16px;color:#fff;&>.expander{padding-left:4px;padding-right:8px !important;&.canExpand{}.arrow-icon{width:9px;height:6px;path{fill:#999999;}&:not(.is-expand){transform:rotate(-90deg);}}.screen-icon{padding-left:1px;.sm-folder-icon{width:23px;height:22px;color:#333 !important;path{stroke:#fff;fill:transparent !important;}}.page{path{fill:#fff;}}}.design-rResCanvas-new{width:20px;height:20px;path{fill:",";}}.arrow-right{position:absolute;right:7px;top:7px;width:10px;transform:rotate(-90deg);path{fill:#999;}}}span{max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-right:0;}}.MenuItem{flex:1;width:100%;.is-selected{width:8px;height:6px;margin-right:8px;}&.isPanelPreview{& > a{padding-left:8px;}}.right-arrow{display:none;}}.SubMenu{border-radius:4px;min-width:200px;background:#333;color:#fff;box-shadow:",";border:1px solid #454647;}ul{padding:8px;border-radius:8px;border:1px solid ",";color:",";background:",";box-shadow:",";li.rResBunch::after{border-color:",";}li.MenuItem{a{border-radius:4px;background:",";color:",";svg path{fill:",";}.right-arrow svg > path{fill:",";}.shortfont kbd{color:",";}& > .expander .screen-icon .page path{fill:",";}& > .expander .screen-icon .sm-folder-icon path{stroke:",";}}&:not(.disabled).active{a{background:",";}}&.disabled{a{color:",";svg path{fill:",";}.shortfont kbd{color:",";}}}}}a{color:",";}.SubMenu{border-radius:8px;background:",";color:",";box-shadow:",";border:1px solid ",";}"],Ye=>Ye.theme.color_text_L1,Ye=>Ye.theme.menu_content_shadow,Ye=>Ye.theme.color_bg_border_01,Ye=>Ye.theme.color_text_L1,Ye=>Ye.theme.color_bg_white,Ye=>Ye.theme.shadow_m,Ye=>Ye.theme.color_text_L1,Ye=>Ye.theme.color_bg_white,Ye=>Ye.theme.color_text_L1,Ye=>Ye.theme.color_text_L1,Ye=>Ye.theme.color_text_L2,Ye=>Ye.theme.color_text_L2,Ye=>Ye.theme.color_text_L1,Ye=>Ye.theme.color_text_L1,Ye=>Ye.theme.color_btn_secondary_hover,Ye=>Ye.theme.color_text_disabled01,Ye=>Ye.theme.color_text_disabled01,Ye=>Ye.theme.color_text_disabled01,Ye=>Ye.theme.color_text_L1,Ye=>Ye.theme.color_bg_white,Ye=>Ye.theme.color_text_L1,Ye=>Ye.theme.shadow_m,Ye=>Ye.theme.color_bg_border_01),ot=Q.Ay.div.withConfig({displayName:"styles__StyledScreenMetaMenu",componentId:"sc-1nes2uf-1"})(["display:flex;align-items:center;cursor:pointer;.toolbar-menu-opener{display:flex;align-items:center;width:160px;height:28px;border:1px solid ",";border-radius:4px;transition:all 0.2s ease-in-out 0s;&:hover{background-color:",";}&.isFullScreen{width:189px;height:28px;}.title{flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:0 10px;font-weight:400;font-size:12px;color:",";}.arrow-right{margin-right:8px;color:",";width:9px;}}"],Ye=>Ye.theme.color_border_state,Ye=>Ye.theme.color_content_background_item_state_hover,Ye=>Ye.theme.color_content_text_item_state,Ye=>Ye.theme.color_content_text_item_state);class we extends r.PureComponent{constructor(){super(...arguments),(0,T.A)(this,"state",{isOpen:!1,isShowMoreTips:!0,position:{left:90,top:48}}),(0,T.A)(this,"createRef",wn=>this.$ref=wn),(0,T.A)(this,"handleToggle",wn=>{const{isOpen:Hn}=this.state,zn=wn===void 0?!Hn:wn;this.setState({isOpen:zn,isShowMoreTips:!this.state.isShowMoreTips}),this.handleSetPosition(zn)}),(0,T.A)(this,"handleSetPosition",wn=>{if(!this.$ref||!wn)return;const{isEmbedV2NotFull:Hn}=this.props,zn=this.$ref.getBoundingClientRect(),ko=Hn?32:48;if(zn){const On=(ko-zn.height)/2,Mo={left:zn.left-2,top:zn.bottom+On-2};this.setState({position:Mo})}}),(0,T.A)(this,"handleScreenList",(wn,Hn,zn)=>{const ko=Hn.children;for(const On of ko){const Mo={...On,depth:zn,canExpand:!1,expand:!1,show:!0};On.children&&On.children.length>0?(wn.push({...Mo,canExpand:!0,expand:!0}),this.handleScreenList(wn,On,zn+1)):wn.push(Mo)}}),(0,T.A)(this,"handleClickScreen",(wn,Hn)=>{const{dispatch:zn}=this.props;Hn||zn({type:"entry:sync-runner:set-screen",payload:{cid:wn}}),this.handleToggle(!1)}),(0,T.A)(this,"handleClickCanvas",async(wn,Hn)=>{let{screenCid:zn,asFolder:ko}=Hn;await this.handleClickScreen(zn,ko);const{activePageKey:On,activeCanvasKey:Mo,dispatch:jn}=this.props;wn!==Mo&&(jn({type:"entry:runner:activate:canvas",payload:{pageKey:On,canvasKey:wn}}),(0,j.v)({operation_type:j.$.SwitchPage}))})}render(){var wn,Hn;const{screenTreeData:zn,activePageKey:ko,activeCanvasKey:On,isFullScreenMode:Mo,theme:jn,isPreviewCombo:xo}=this.props,{position:jo,isOpen:Qo}=this.state,cn=new URLSearchParams(location.search),In=On||ko?((Hn=sdkStore.getHotItem(On||ko||""))==null||(Hn=Hn.hotAttr)==null?void 0:Hn.name)||"":((wn=sdkStore.getHotItem(cn.get("canvasId")||cn.get("screen")||""))==null||(wn=wn.hotAttr)==null?void 0:wn.name)||"",tn=[];return this.handleScreenList(tn,zn,0),tn.length===0?null:(0,Me.jsxs)(ot,{children:[(0,Me.jsxs)("div",{className:q()("toolbar-menu-opener",{isFullScreen:Mo},""+jn),onClick:()=>this.handleToggle(!Qo),ref:this.createRef,children:[(0,Me.jsx)("span",{className:"title",children:In}),(0,Me.jsx)(B.C,{className:"arrow-right",name:"common/expand"})]}),Qo&&(0,Me.jsxs)(je,{className:q()(Mo?"isFullScreen":"canvas-menu-container"),position:jo,alwaysOpen:!0,onClose:()=>this.handleToggle(!1),children:[(0,Me.jsx)($e,{activeScreenCid:ko,activeCanvasCid:On,screenList:tn,isPreviewCombo:xo,onClickScreen:this.handleClickScreen,onClickCanvas:this.handleClickCanvas}),(0,Me.jsx)(C.kb,{})]})]})}}(0,T.A)(we,"defaultProps",{isEmbedV2NotFull:!1});const $e=Ye=>{let{activeScreenCid:wn,activeCanvasCid:Hn,screenList:zn,isPreviewCombo:ko,onClickScreen:On,onClickCanvas:Mo}=Ye;const[jn,xo]=(0,r.useState)(zn),[jo,Qo]=(0,r.useState)(!1);(0,r.useEffect)(()=>{const Jt=document.querySelector(".scroll.rResBunch"),Ln=document.querySelector(".content-list.rResBunch");if(wn){const Xn=document.querySelector(".padd."+wn);if(Jt&&Ln&&Xn){const{top:Dn}=Ln.getBoundingClientRect(),{top:go}=Xn.getBoundingClientRect();Jt.scrollTo(0,go-Dn)}}},[wn]);const cn=(0,r.useCallback)(()=>{const Jt=document.querySelector(".scroll.rResCanvas"),Ln=document.querySelector(".content-list.rResCanvas");if(Hn){const Xn=document.querySelector(".rResCanvas."+Hn);if(Jt&&Ln&&Xn){const{top:Dn}=Ln.getBoundingClientRect(),{top:go}=Xn.getBoundingClientRect();Jt.scrollTo(0,go-Dn)}}},[Hn]);(0,r.useEffect)(()=>{jo&&setTimeout(()=>cn(),10),Qo(!1)},[jo,cn]);const In=(Jt,Ln,Xn,Dn,go)=>{Jt.stopPropagation();let Uo=1/0,Ho=0,ua=!1;const la=[];jn.forEach((To,Ia)=>{let ya=To;To.cid===Ln&&(ya={...To,expand:!To.expand},Uo=Ia),ua&&(Ia===Ho?ua=!1:ya={...To,show:!1}),!ua&&Ia>Uo&&(To.data.sup!==Xn&&To.depth>Dn?ya={...To,show:!go}:(To.data.sup===Xn||To.depth<=Dn)&&(Uo=1/0),!go&&!To.expand&&(Ho=jn.slice(Ia+1).findIndex(eo=>eo.data.sup===To.data.sup||eo.depth<=To.depth)+(Ia+1),Ho!==-1&&(ua=!0))),la.push(ya)}),xo(la)},tn=Jt=>{let{type:Ln,canExpand:Xn,cid:Dn,supCid:go,depth:Uo,expand:Ho,icon:ua,hasSubCanvas:la,isSelected:To}=Jt;return Ln==="rResBunch"?(0,Me.jsxs)("a",{className:q()("expander rResBunch",{canExpand:Xn}),onClick:Ia=>In(Ia,Dn,go,Uo,Ho),style:{paddingLeft:8*Uo+"px"},children:[Xn&&(0,Me.jsx)(B.C,{className:q()("arrow-icon",{"is-expand":Ho}),name:"common/triangle-filled-down"}),(0,Me.jsx)(yt.k,{icon:ua,theme:"",isExpand:Ho}),la&&(0,Me.jsx)(B.C,{className:q()("arrow-right",{"is-expand":Ho}),name:"common/expand"})]}):(0,Me.jsxs)("a",{className:q()("expander rResCanvas"),children:[To?(0,Me.jsx)(B.C,{className:"is-selected",name:"toolbar/selected"}):(0,Me.jsx)("i",{className:"is-selected"}),(0,Me.jsx)(Le.A,{widget:{key:Dn,hotAttr:{type:He.x.Canvas}}})]})};return(0,Me.jsx)("div",{className:"scroll rResBunch",children:(0,Me.jsx)("div",{className:"content-list rResBunch screen-menu",children:jn.map(Jt=>{let{cid:Ln,isVisible:Xn,data:{name:Dn,asFolder:go,sup:Uo,icon:Ho},depth:ua,show:la,expand:To,canExpand:Ia}=Jt;const ya=sdkStore.getSubHotItemList(Ln).filter(so=>{let{hotAttr:{type:to,asOverlay:Vo}}=so;return to===He.x.Canvas&&!Vo}),eo=ya.length>0,Oo=!eo&&!ko&&!go;if(la)return(0,Me.jsx)("div",{className:"padd "+Ln,children:(0,Me.jsx)(U.Dr,{dataIndex:Ln,text:Dn,icon:tn({type:"rResBunch",canExpand:Ia,cid:Ln,supCid:Uo,depth:ua,expand:To,icon:Ho,hasSubCanvas:eo,isSelected:!1}),onClick:()=>On(Ln,go),className:q()("rResBunch",Ia&&"canExpand",{isFolder:go},{selected:wn===Ln},{isPreviewCombo:ko,selected:wn===Ln},{disabled:Oo}),disabled:Oo,onMouseEnter:()=>Qo(!0),isAiry:!0,children:!go&&eo&&(0,Me.jsx)("div",{className:"scroll rResCanvas",children:(0,Me.jsx)("div",{className:"content-list rResCanvas",children:ya.map(so=>{let{key:to,hotAttr:{name:Vo,isVisible:ta}}=so;return(0,Me.jsx)(U.Dr,{text:Vo,dataIndex:to,icon:tn({type:"rResCanvas",canExpand:Ia,cid:Ln,supCid:Uo,depth:ua,expand:To,icon:Ho,hasSubCanvas:!1,isSelected:Hn===to}),onClick:()=>Mo(to,{screenCid:Ln,asFolder:go}),isVisible:!ta,className:q()("rResCanvas "+to,{selected:Hn===to})},to)})})})},Ln)},Ln)})})})},ge=(0,J.Mz)([N.HA,N.mf,N.Ph,N.m5,N.bF,N.UB,N.hM],(Ye,wn,Hn,zn,ko,On,Mo)=>{let{activePageKey:jn,activeCanvasKey:xo}=wn,{isEmbedV2:jo}=ko,Qo=Ye;if(On){const{screen_visible_list:cn,screen_visible_switch:In}=On;if(In){const{screenTreeData:tn}=(0,ye.wb)(cn);Qo=tn}}return{screenTreeData:Qo,activePageKey:jn,activeCanvasKey:xo,isFullScreenMode:Hn,theme:zn,isEmbedV2:jo,isPreviewCombo:Mo}}),Ze=(0,I.Ng)(Ye=>ge(Ye))(we);var W=s(70248),an=s(26067);class _t extends r.PureComponent{constructor(){super(...arguments),(0,T.A)(this,"state",{isOpen:!1,isShowMoreTips:!0,position:{left:90,top:48}}),(0,T.A)(this,"createRef",wn=>this.$ref=wn),(0,T.A)(this,"handleToggle",wn=>{const{isOpen:Hn}=this.state,zn=wn===void 0?!Hn:wn;this.setState({isOpen:zn,isShowMoreTips:!this.state.isShowMoreTips}),this.handleSetPosition(zn)}),(0,T.A)(this,"handleSetPosition",wn=>{if(!this.$ref||!wn)return;const Hn=this.$ref.getBoundingClientRect();if(Hn){const zn=(48-Hn.height)/2,ko={left:Hn.left-2,top:Hn.bottom+zn-2};this.setState({position:ko})}}),(0,T.A)(this,"handleActivate",wn=>{const{activePageKey:Hn,dispatch:zn}=this.props;zn({type:"entry:runner:activate:canvas",payload:{pageKey:Hn,canvasKey:wn}})})}render(){const{stateList:wn,activeCanvasKey:Hn,activeWidgetKey:zn}=this.props,{position:ko,isOpen:On}=this.state;if((wn==null?void 0:wn.length)===0||zn)return null;const Mo=wn.find(jn=>jn.key===Hn);return(0,Me.jsxs)(ot,{children:[(0,Me.jsxs)("div",{className:q()("toolbar-menu-opener state-list"),onClick:()=>this.handleToggle(!On),ref:this.createRef,children:[(0,Me.jsx)("span",{className:"title",children:Mo==null?void 0:Mo.name}),(0,Me.jsx)(B.C,{className:"arrow-right",name:"common/expand"})]}),On&&(0,Me.jsxs)(je,{position:ko,alwaysOpen:!0,onClose:()=>this.handleToggle(!1),children:[(0,Me.jsx)("div",{className:"scroll",children:wn.map(jn=>{let{key:xo,name:jo,isVisible:Qo}=jn;return(0,Me.jsx)("div",{className:"padd",children:(0,Me.jsx)(U.Dr,{isVisible:!Qo,icon:Hn===xo?(0,Me.jsx)(B.C,{className:"is-selected",name:"toolbar/selected"}):(0,Me.jsx)("i",{className:"is-selected"}),dataIndex:xo,text:jo,onClick:()=>this.handleActivate(xo),className:q()("rResBunch","isPanelPreview",{selected:Hn===xo})},xo)},xo)})}),(0,Me.jsx)(C.kb,{})]})]})}}const nn=(0,J.Mz)([N.mf,N.Mo],(Ye,wn)=>{let{activePageKey:Hn,activeCanvasKey:zn,activeWidgetKey:ko,panelPreviewStateListCacheTag:On}=Ye;return{stateList:(Hn?(0,an.Y2)(Hn):[]).map(jn=>{var xo;return{key:wn&&((xo=sdkStore.getHotItem(wn))==null||(xo=xo.hotAttr)==null?void 0:xo.type)==="wBasket"?(0,W.j_)([wn,jn.key]):jn.key,...jn.hotAttr}}),activePageKey:Hn,activeCanvasKey:zn,activeWidgetKey:ko}}),Oe=(0,I.Ng)(Ye=>nn(Ye))(_t),sn=(0,r.memo)(()=>{const Ye=(0,I.d4)(N.Cb),wn=()=>{if(!Ye)return;const Hn=sdkStore.getHotItem(Ye);if(!(!Hn||Hn.hotAttr.type!==He.x.WCode))try{var zn;const ko=(zn=document.querySelector("#preview-combo-modal"))==null||(zn=zn.querySelector("#simulator-container"))==null||(zn=zn.querySelector('[data-cid="'+Ye+'"]'))==null?void 0:zn.querySelector("iframe");if(!ko||!(ko!=null&&ko.contentWindow))return;ko.contentWindow.postMessage({type:"reloadWidget"},"*")}catch(ko){console.error(ko)}};return(0,Me.jsx)(M.A,{className:"preview-view-icon preview-view-icon-refresh",name:"\u91CD\u65B0\u52A0\u8F7D",toolTipName:"\u91CD\u65B0\u52A0\u8F7D",svgIconName:"toolbar/reload",toolTipDistance:8,onClick:wn,size:24})}),It=Q.Ay.div.withConfig({displayName:"styles__StyledComboPreviewToolbar",componentId:"sc-1y80tqu-0"})(["height:50px;display:flex;justify-content:space-between;padding:0 20px;background:",";border-bottom:1px solid ",";cursor:move;.toolbar-left{display:flex;align-items:center;.reset{width:28px;height:28px;margin:0 6px;}}.toolbar-right{display:flex;align-items:center;.preview-view-icon-refresh{width:28px;height:28px;margin-right:6px;color:",";cursor:pointer;svg.svg-icon{width:24px;height:24px;}&:hover{color:",";}&:active{color:",";}}.close{margin-left:6px;width:26px;height:26px;cursor:pointer;color:",";&:hover{color:",";}&:active{color:",";}}}"],Ye=>Ye.theme.color_bg_white,Ye=>Ye.theme.color_bg_border_02,Ye=>Ye.theme.color_text_L2,Ye=>Ye.theme.color_text_L1,Ye=>Ye.theme.color_text_L1,Ye=>Ye.theme.color_text_L2,Ye=>Ye.theme.color_text_L1,Ye=>Ye.theme.color_text_L1);class Pt extends r.PureComponent{constructor(){super(...arguments),(0,T.A)(this,"handleResetScreen",()=>{const{dispatch:wn}=this.props;wn({type:"entry:runner:reset"})})}render(){const{isPanelPreviewMode:wn,isPreviewAIComponent:Hn,onCloseModal:zn}=this.props;return(0,Me.jsxs)(It,{type:"draggable",children:[(0,Me.jsxs)("div",{className:"toolbar-left",children:[wn?(0,Me.jsx)(Oe,{}):Hn?null:(0,Me.jsx)(Ze,{}),!Hn&&(0,Me.jsx)(l.A,{content:I18N.SettingPanel.reset,direction:"down",children:(0,Me.jsx)(ne.A,{name:"toolbar/preview/reset",className:"reset",onClick:this.handleResetScreen})})]}),(0,Me.jsxs)("div",{className:"toolbar-right",children:[Hn&&(0,Me.jsx)(sn,{}),(0,Me.jsx)(ht,{}),(0,Me.jsx)(B.C,{name:"general/times",className:"close",onClick:zn})]})]})}}const dt=(0,J.Mz)([N.KR,N.ks],(Ye,wn)=>({isPanelPreviewMode:Ye,isPreviewAIComponent:wn})),Vn=(0,I.Ng)(Ye=>dt(Ye))(Pt);var o=s(96986),Gn=s(82066);class xt extends r.PureComponent{constructor(){super(...arguments),(0,T.A)(this,"handleZoomIn",()=>{const{dispatch:wn}=this.props;wn({type:"entry:preview:zoom-in"})}),(0,T.A)(this,"handleZoomOut",()=>{const{dispatch:wn}=this.props;wn({type:"entry:preview:zoom-out:set-offset"})}),(0,T.A)(this,"handleZoomSpecifiedScale",wn=>{const{dispatch:Hn,scale:zn}=this.props;Hn({type:"entry:preview:set:scale",payload:{scale:wn}}),zn>wn&&Hn({type:"entry:preview:zoom-out:center-position",payload:{nextScale:wn,oldScale:zn}})}),(0,T.A)(this,"handleZoomInitialScale",wn=>{wn==null||wn.stopPropagation(),wn==null||wn.preventDefault();const{dispatch:Hn}=this.props;Hn({type:"preview:update:state",payload:{hasChangedScaleManually:!1}}),Hn({type:"entry:auto-fit:preview:scale"}),Hn({type:"preview:set:canvas:offset:dev",payload:{offset:{x:0,y:0}}})})}componentDidMount(){const{isEmbedV2:wn}=this.props;wn&&this.handleZoomInitialScale(null)}render(){const{scale:wn,isEmbedV2:Hn,isSquare:zn,isHTMLZip:ko,isFullScreenMode:On}=this.props;return(0,Me.jsx)("div",{className:q()("ZoomButton",{isEmbedV2Preview:Hn},{isCommunity:zn},{NotFullScreen:!On},{isBorder:zn||Hn||ko}),children:(0,Me.jsx)(Gn.Pd,{onlyPreview:!0,scale:wn,isShowZoomSelection:!1,onZoomIn:this.handleZoomIn,onZoomOut:this.handleZoomOut,onZoomInitialScale:this.handleZoomInitialScale,onZoomSpecifiedScale:this.handleZoomSpecifiedScale})})}}const Ot=(0,J.Mz)([N.St,N.Ph,N.bF],(Ye,wn,Hn)=>{let{isEmbedV2:zn,isSquare:ko,isHTMLZip:On}=Hn;return{scale:Ye,isFullScreenMode:wn,isEmbedV2:zn,isSquare:ko,isHTMLZip:On}}),wt=(0,I.Ng)(Ye=>Ot(Ye))(xt);var Kt=s(8342),fe=s(30986),bt=s(29342);const gt=Ye=>{const{user:wn,dispatch:Hn}=Ye,zn=(0,r.useContext)(fe.G),ko=(0,r.useContext)(fe.n),[On,Mo]=(0,r.useState)((0,bt.N)()),[jn,xo]=(0,r.useState)(!1),jo=async()=>{MB.global.experienceLoginModalHelper&&MB.global.experienceLoginModalHelper("isSave")||(On&&(MB.commonGuideHelper.closeGuide(w.c.GUIDE_2309_CLICK_SHARE),MB.commonGuideHelper.markGuideAsRead(w.c.GUIDE_NOVICE_2309_TASK_5_DEVICE_MODE),xo(On),setTimeout(()=>{Mo(!1),xo(!1)},6e3)),Hn({type:"entry:preview:toggle:sharingManager"}))};return(0,r.useEffect)(()=>{zn!=="read_only"&&ko&&(0,Kt.c)(I18N)[w.c.GUIDE_2309_CLICK_SHARE].howToShow({isInDesign:!1})},[zn,ko]),zn==="read_only"?null:(0,Me.jsx)("div",{style:{fontSize:12},id:"preview-sharing-box",className:w.c.GUIDE_2309_CLICK_SHARE,children:(0,Me.jsxs)("div",{className:q()("share-menu-wrapper",{fill:wn==null?void 0:wn.id,"show-animation":On}),onClick:jo,children:[(0,Me.jsx)("span",{children:I18N.pPreviewToolbar.share}),On&&(0,Me.jsx)("div",{className:q()("animation-list",{"is-hidding":On&&jn}),children:Array(12).fill(0).map((Qo,cn)=>(0,Me.jsx)("div",{className:"circle circle-"+(cn+1)},cn))})]})})};var Wt=s(29303),Un=s(25234),Jn=s(39e3),Yt=s(78401),rt=s(18183),An=s(53008),Nt=s(24437),jt=s(15515),vn=s(47695),Dt=s(58053),$t=s(37342),kn=s(22835),Kn=s(5209),dn=s(80226),ft=s(86102),Lt=s(81122),bn=s(62118),Yn=s(97644);const on=Q.Ay.header.withConfig({displayName:"styles__StyledPreviewToolbar",componentId:"sc-1jkr5iz-0"})(["position:absolute;display:flex;align-items:center;z-index:",";background:",";height:48px;width:100%;box-shadow:0 1px 0 ",";padding:0 8px;transition:all 0.3s ease-in-out;color:",";opacity:1;pointer-events:auto;top:0px;&.isHidden{opacity:0;> *{pointer-events:none;}}&.isEmbedV2NotFull{height:32px;.toolbar-left svg.modao-logo{width:51px;height:30px;}}.toolbar-left{.modao-logo{margin-left:8px;}.toolbar-logo-icon{width:24px;height:24px;margin:4px 12px;path{fill:",";}}}&.isHTMLZip > .toolbar-left{.modao-logo{margin-right:13px}}.svg-icon{color:",';> *{fill:currentColor;}}.edit-btn{display:flex;align-items:center;justify-content:center;width:58px;max-height:32px;.btn-icon-text-container{font-weight:500;}}&.isCommunity,&.isEmbedV2{.toolbar-left svg.modao-logo{cursor:default;}}&.dark{.toolbar-right{.settings-dropdown,.fullscreen-box{svg{color:#f2f4f5 !important;}}.ZoomButton{&.isBorder,&.isEmbedV2Preview.NotFullScreen > div:first-child{outline:1px solid #454647;}}}}.toolbar-right{font-size:18px;display:flex;align-items:center;justify-content:flex-end;height:100%;&.toolbar-right-abar-import{padding-right:78px;}.new_version_artboard_guide{margin-right:15px;text-decoration:none;display:flex;align-items:flex-end;img{width:27px;}span{margin-bottom:2px;margin-left:6px;font-size:14px;line-height:16px;color:#FFFFFF;line-height:17px;background:linear-gradient(90.17deg,#FF6D20 4.49%,#FC1616 44.72%,#FC8D16 97.02%,#FCE516 158.98%);-webkit-background-clip:text;-webkit-text-fill-color:transparent;}}.preview-seeting{width:21px;height:22px;}.login{margin-right:6px;&:lang(en){width:80px;}}.signup{margin-right:6px;width:96px;background:linear-gradient(230.47deg,#FFA41C -0.87%,#FE4141 25.89%,#F4153E 77.87%,#FF27C3 97.94%),#E73828;&:hover:not([class*="is-disabled"]){color:#d9d9d9;background:linear-gradient(230.47deg,#FFA41C -0.87%,#FE4141 25.89%,#F4153E 77.87%,#FF27C3 97.94%),#E73828;}&:active:not([class*="is-disabled"]){color:#d9d9d9;background:linear-gradient(230.47deg,#FFA41C -0.87%,#FE4141 25.89%,#F4153E 77.87%,#FF27C3 97.94%),#E73828;}&:lang(en){width:120px;}}.to-share{width:32px;height:32px;cursor:pointer;font-size:12px;.svg-icon{width:32px;height:32px;}}.share-menu-wrapper{display:flex;align-items:center;height:32px;padding:0 15px;font-weight:500;background:',";border:1px solid ",";border-radius:6px;font-size:13px;color:",";transition:all 0.2s ease-in-out;white-space:nowrap;cursor:pointer;&.fill{background:",";border:none;color:#fff;&:hover{background:",";}&:active{background:",";}}&:not(.fill):hover{color:",";background:",";border:1px solid ",";&:hover:not(.disabled){background:",";border:1px solid ",";&:lang(en){border:1px solid #000;}}&:active:not(.disabled){background:",";border:1px solid ",";&:lang(en){border:1px solid #000;}}}}.share-menu-wrapper.show-animation{",";}a,.svg-icon{&:active,&.active{cursor:pointer;}}label.Dropdown:not(:global(.is-disabled)){&:hover{.svg-icon{color:#415058;}}}span.share-icon:hover{color:",";}.full-screen-button{width:32px;height:32px;border-radius:6px;&.small{width:24px;height:24px;align-items:center;.svg-icon{width:24px;height:24px;}}svg.svg-icon{width:32px;height:32px;}}.ZoomButton{&.isBorder{outline:1px solid #e5e5e5;border-radius:3px;margin:0 6px;& > div:first-child{width:71px;height:28px;.zoom-main > .zoom-box{.zoom-scale{font-size:13px;font-weight:400;}.zoom-arrow{width:7px;margin-left:12px;}}}}&.isEmbedV2Preview{&.NotFullScreen{margin:0 4px;& > div:first-child{width:48px;height:20px;outline:1px solid #e5e5e5;border-radius:2px;.zoom-main > .zoom-box{width:100%;height:100%;.zoom-scale{flex:1;margin-left:2px;font-size:13px;font-weight:400;transform:scale(0.8);}.zoom-arrow{width:5px;margin-left:0;margin-right:6px;}}}}.mac,.others{top:132%;}}&.isCommunity{.mac,.others{top:132%;}}}.close{margin-left:8px;width:24px;height:24px;cursor:pointer;color:",";&:hover{color:",";}&:active{color:",";}}.settings-dropdown{margin-left:6px;cursor:pointer;.isEmbedV2Preview.toolbar-icon-item{width:38px;height:32px;svg{width:32px;height:32px;}&.NotFullScreen{width:28px;height:24px;svg{width:24px;height:24px;}}}}.preview-view-icon{width:32px;}.comment{cursor:pointer;width:32px;height:32px;border-radius:6px;margin-right:6px;&.disabled{cursor:not-allowed;.svg-icon{color:",";}}.svg-icon{display:flex;width:32px;height:32px;justify-content:center;align-items:center;gap:10px;flex-shrink:0;color:",";[fill]{fill:currentColor;stroke:none;}[stroke]{stroke:currentColor;fill:none;}}}}a{&[disabled]{cursor:not-allowed;color:#c8cdd0 !important;> span{color:#c8cdd0 !important;}}}.back-icon{display:flex;width:32px;height:100%;justify-content:center;align-items:center;margin-left:-8px;margin-right:-6px;color:",";font-size:16px;cursor:pointer;transition:all 0.1s linear;> div{width:32px;height:32px;}}.line{height:20px;width:1px;background:",";margin:0 25px;}.toolbar-left{flex-basis:510px;flex-shrink:0;}.toolbar-right{flex-basis:510px;flex-shrink:0;}.toolbar-left{position:relative;display:flex;height:100%;align-items:center;.modao-logo{height:32px;cursor:pointer;margin-right:","px;g{path:nth-child(2){fill:","}path:nth-child(3){fill:","}}}.mockitt-logo{width:106px;height:22px;cursor:pointer;margin-left:8px;}div.divider{border-left:1px solid ",";margin:0px 16px 0px 16px;height:24px;}.toolbar-item{width:38px;height:32px;border-radius:4px;}.arrow-back{margin-right:10px;}.project-name{padding:6px 0px;margin-right:12px;align-items:center;gap:10px;font-size:13px;font-weight:bold;color:",";max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:center;}}.toolbar-center{flex:1;max-width:calc(100% - 596px);min-width:334px;height:100%;}.toolbar-main{position:relative;height:100%;display:flex;align-items:center;justify-content:center;flex:1;.toolbar-center-dropDown{height:16px;width:16px;display:flex;align-items:center;justify-content:center;cursor:pointer;border-radius:4px;margin-left:4px;.svg-icon{color:",";width:7px;height:4px;}&.is-open,&:hover{.toolbar-dropDown{margin-top:5px;transition:margin-top ease-in-out 0.2s;}}}.project-name{font-size:14px;font-weight:500;color:",";overflow:hidden;text-overflow:ellipsis;white-space:nowrap;user-select:text;text-align:center;}.update{display:flex;align-items:center;justify-content:center;margin-right:4px;width:24px;height:24px;border-radius:4px;&:hover{background:",";}&:active{background:",";}.unRead{position:relative;top:auto;right:auto;}svg.svg-icon{width:14px;height:14px;cursor:pointer;color:#DE1E00;path{fill:#DE1E00;}}}}.preview-toolbar-nav{display:flex;height:100%;background:#fff;border-bottom:none;justify-content:space-between;.nav-icon{.svg-icon{width:28px;height:28px;}&:hover{color:#415058;}}.active .nav-icon,.active .nav-label{color:#f55d54;transition:none;.svg-icon{color:",";}}> li{width:260px;font-size:14px;border-bottom:2px solid transparent;&:not(.active){&:hover{overflow:visible;.icon{color:#415058;}}}}.background-cube{border:none;height:calc(100% + 1px);&::after{content:'';position:absolute;left:18px;bottom:-1px;width:52px;border-top:2px solid #f55d54;}}}.toolbar-main-wrapper{position:relative;display:flex;justify-content:space-around;width:200px;height:100%;}@media only screen and (max-width:985px){.toolbar-left{.project-name{max-width:140px;}}.toolbar-right{label.Dropdown:first-child,span.line:nth-child(2){display:none;}#preview-sharing-box{.share-menu-wrapper{font-size:12px;}}}}@media only screen and (max-width:1082px){&.isEmbedV2NotFull{.toolbar-left,.toolbar-right{flex-basis:calc(50% - 75px);}}}"],Ye=>Ye.isEmbedV2?198:1e3,Ye=>Ye.theme.color_bg_white,Ye=>Ye.theme.color_bg_border_01,Ye=>Ye.theme.color_text_L1,Ye=>Ye.theme.color_text_L1,Ye=>Ye.theme.color_text_L1,Ye=>Ye.theme.color_bg_white,Ye=>Ye.theme.color_bg_border_02,Ye=>Ye.theme.color_text_L1,Ye=>Ye.theme.color_btn_primary_normal,Ye=>Ye.theme.color_btn_primary_hover,Ye=>Ye.theme.color_btn_primary_clicked,Ye=>Ye.theme.color_text_L1,Ye=>Ye.theme.color_bg_white,Ye=>Ye.theme.color_bg_border_02,Ye=>Ye.theme.color_btn_secondary_hover,Ye=>Ye.theme.color_bg_border_02,Ye=>Ye.theme.color_btn_secondary_active,Ye=>Ye.theme.color_bg_border_02,Yn.e,Ye=>Ye.theme.color_text_L2,Ye=>Ye.theme.color_text_L2,Ye=>Ye.theme.color_text_L1,Ye=>Ye.theme.color_text_L1,Ye=>Ye.theme.color_text_disabled01,Ye=>Ye.theme.color_text_L1,Ye=>Ye.theme.color_text_L3,Ye=>Ye.theme.color_bg_canvas,Ye=>Ye.isEmbedV2||Ye.isSquare?13:0,Ye=>Ye.theme.color_text_L1,Ye=>Ye.theme.color_text_L1,Ye=>Ye.theme.color_bg_border_02,Ye=>Ye.theme.color_text_L1,Ye=>Ye.theme.color_text_L1,Ye=>Ye.theme.color_text_L1,Ye=>Ye.theme.color_btn_secondary_active,Ye=>Ye.theme.color_btn_secondary_active,Ye=>Ye.theme.color_primary_brand01);class yn extends r.PureComponent{constructor(){super(...arguments),(0,T.A)(this,"handleTabChange",wn=>{const{dispatch:Hn}=this.props;switch(Hn({type:"entry:preview:select",payload:{toolbarActiveItem:wn}}),wn){case"comment":{Hn({type:"entry:comment:toggle"});break}}}),(0,T.A)(this,"handleCloseGuide",()=>{(0,jt.a0)("new_version_artboard_guide_has_shown",!0,jt.qW.Boolean)}),(0,T.A)(this,"handleExitFullScreen",async()=>{Dt.A.isFullscreen&&await Dt.A.exit(),this.props.dispatch({type:"entry:exit:fill-screen-mode"})}),(0,T.A)(this,"handleEnterFullScreen",()=>{this.props.dispatch({type:"entry:enter:full-screen-mode"})}),(0,T.A)(this,"handleBackReadOnly",()=>{const{sharing:wn}=this.props,{page_begin:Hn,canvas_begin:zn,screen_visible_list:ko}=wn,On=(0,An.Uh)(ko),Mo=(0,rt.H)({search:"",pathname:location.pathname}),jn=(0,Nt.s_)({accessToken:Mo,viewMode:"read_only",pageId:Hn,canvasId:zn,selection:On});(0,$t.JW)(jn,"_self")}),(0,T.A)(this,"handleClickOutSide",wn=>{let{target:Hn}=wn;const zn=document.querySelector("#simulator"),ko=document.querySelector("#mb-toolbar.preview-toolbar"),On=document.querySelector(".preview-footer-toolbar"),Mo=document.querySelector(".canvas-menu-container"),jn=document.querySelector(".context-menu-mask"),xo=document.querySelector("#app-sharing");zn!=null&&zn.contains(Hn)||ko&&ko!=null&&ko.contains(Hn)||On&&On!=null&&On.contains(Hn)||Mo&&Mo!=null&&Mo.contains(Hn)||jn&&jn!=null&&jn.contains(Hn)||xo&&xo!=null&&xo.contains(Hn)||this.props.dispatch({type:"entry:preview:toggle:isHiddenToolBar",payload:{value:!0}})}),(0,T.A)(this,"handleMouseLeave",wn=>{let{target:Hn}=wn;const zn=document.querySelector(".context-menu-mask"),ko=document.querySelector("#preview-sharing-box"),On=document.querySelector("#app-sharing"),Mo=document.querySelector(".sharingBoxV2"),jn=document.querySelector(".preview-zoom-options-panel"),xo=document.querySelector(".ZoomButton"),jo=document.querySelector(".toolbar-center-dropDown-menu");zn&&zn!=null&&zn.contains(Hn)||(On||Mo)&&ko!=null&&ko.contains(Hn)||jn&&xo!=null&&xo.contains(Hn)||jo&&jo!=null&&jo.contains(Hn)||this.props.dispatch({type:"entry:preview:toggle:isHiddenToolBar",payload:{value:!0,isSetTimeout:!0}})}),(0,T.A)(this,"handleToggleMinimized",()=>{const{dispatch:wn,isMinimized:Hn,activeCanvasKey:zn,activePageKey:ko}=this.props;wn({type:"entry:preview-setting:toggle:isMinimized"});const On=setTimeout(()=>{(0,kn.cL)(zn),(0,kn.fl)(ko),clearTimeout(On)},50);Hn?(0,j.v)({operation_type:j.$.OpenPageList}):(0,j.v)({operation_type:j.$.ClosePageList})}),(0,T.A)(this,"onClickLogo",()=>{const{isSquare:wn,isEmbedV2:Hn,isHTMLZip:zn}=this.props;wn||Hn||(setTimeout(()=>(0,j.v)({operation_type:j.$.Logo}),0),zn?location.href="https://modao.cc/workspace/home":location.href=location.origin+"/workspace/home")}),(0,T.A)(this,"handleGoEdit",()=>{if((0,Lt.BG)())(0,Lt.sg)(Lt.ZW.enterEdit);else{const{project:wn,sharing:Hn}=this.props,zn=new URLSearchParams(location.search),ko=(zn.get("selection")?"&selection="+zn.get("selection"):"")+(zn.get("screen")?"&screen="+zn.get("screen"):"")+(zn.get("canvasId")?"&canvasId="+zn.get("canvasId"):""),On=MB.canEditByCurrentUser?(0,rt.Dw)("design/"+wn.cid):(0,rt.Dw)(Hn.access_token+"/sharing?view_mode=read_only"+ko);(0,jt.a0)(y.NF+"-"+wn.cid,zn.get("screen")+","+(zn.get("canvasId")||""),jt.qW.String),location.href=""+location.origin+On}(0,Kn.kH)("model_change",{change_type:"\u6F14\u793A\u6A21\u5F0F\u5207\u6362\u7F16\u8F91\u6A21\u5F0F"})}),(0,T.A)(this,"handleSwitchPreviewViewMode",wn=>{MB.action("entry:handle-tool:preview:view_mode",{previewViewMode:wn})}),(0,T.A)(this,"handleToggleComment",()=>{const{sharing:wn,dispatch:Hn}=this.props;(wn==null?void 0:wn.comment_permission)==="off"||Hn({type:"entry:comment:toggle"})})}get isShowNewVersionArtboardGuide(){const{toolbarActiveItem:wn,isShowNewVersionArtboardGuide:Hn}=this.props;return wn==="inspect"&&Hn}componentDidMount(){const{isSquare:wn,isEmbedV2:Hn,isHTMLZip:zn,dispatch:ko,isFromAbar:On}=this.props;On&&ko({type:"entry:preview-setting:toggle:isMinimized"}),!(wn||zn||Hn)&&setTimeout(()=>{(0,vn.jo)()||this.props.dispatch({type:"entry:preview:toggle:isHiddenToolBar",payload:{value:!0,isSetTimeout:!0}})},4e3)}render(){var wn,Hn,zn;const{project:ko,dispatch:On,isHTMLZip:Mo,isSquare:jn,isEmbedV2:xo,isFullScreenMode:jo,theme:Qo,user:cn,isHiddenToolBar:In,previewViewMode:tn,isInCommentMode:Jt,sharing:Ln}=this.props,{isShowNewVersionArtboardGuide:Xn,onClickLogo:Dn}=this,go=ko.name||"",Uo=xo&&((wn=new URLSearchParams(location.search))==null?void 0:wn.get("from"))==="launch",Ho=xo&&!jo||jn&&!ft.isFullscreen,ua=(0,y.Y8)(Qo);return(0,Me.jsxs)(Me.Fragment,{children:[(0,Me.jsxs)(on,{id:"mb-toolbar",className:q()("preview-toolbar",""+Qo,{"is-fullscreen-mode":jo,isEmbedV2NotFull:xo&&!jo,isEmbedV2:xo,isCommunity:jn,isHTMLZip:Mo,isHidden:In}),isEmbedV2:xo,isSquare:jn,onMouseEnter:()=>On({type:"entry:preview:toggle:isHiddenToolBar",payload:{value:!1}}),onMouseLeave:this.handleMouseLeave,children:[(0,Me.jsxs)("div",{className:"toolbar-left",children:[Uo?(0,Me.jsx)(ne.A,{className:q()("arrow-back"),onClick:this.handleBackReadOnly,name:"common/back"}):(0,Me.jsx)(l.A,{content:I18N.ToolBar.back_to_dashboard,direction:"down",tipClassName:"toolbar-modao-logo-tips",children:(0,Me.jsx)("img",{className:"toolbar-logo-icon",src:ua,onClick:()=>this.onClickLogo()})}),Ho&&(0,Me.jsx)(Ze,{isEmbedV2NotFull:xo&&!jo}),(xo||jn?jo:!0)&&(0,Me.jsxs)(Me.Fragment,{children:[(0,Me.jsx)("span",{className:q()("project-name"),children:(0,Yt.qk)(go)}),MB.canEditByCurrentUser&&!(xo||jn)&&(0,Me.jsx)(Un.Oc,{className:"edit-btn "+w.c.GUIDE_NOVICE_2309_TIP_1,type:"secondary",size:"common",onClick:this.handleGoEdit,children:I18N.pPreviewToolbar.edit})]})]}),(0,Me.jsx)("div",{className:"toolbar-center",children:(!jn||ko.category==="project_basic"&&jo)&&(0,Me.jsx)("div",{className:"toolbar-main",children:(0,Me.jsx)(dn.D,{size:xo&&!jo?"small":"normal",isShowInspect:!xo&&!jn,mode:tn,onSwitch:this.handleSwitchPreviewViewMode})})}),(0,Me.jsxs)("div",{className:q()("toolbar-right",{"toolbar-right-abar-import":(0,Lt.Zt)()}),children:[!ENV.IS_ON_PREMISES&&Xn&&(0,Me.jsxs)("a",{onClick:this.handleCloseGuide,className:"new_version_artboard_guide",href:"/feature/aboard/index.html",target:"_blank",children:[(0,Me.jsx)("img",{src:"/mb-workspace/images/preview/toolbar-artboard-guide.png"}),(0,Me.jsx)("span",{children:"\u4E0A\u65B0\uFF01\u5F00\u53D1\u6807\u6CE8\u66F4\u7CBE\u51C6\uFF0C\u62A2\u5148\u4F53\u9A8C"})]}),!((Hn=MB)!=null&&(Hn=Hn.user)!=null&&Hn.id)&&!Mo&&!ENV.IS_ON_PREMISES&&!jn&&!xo?(0,Me.jsxs)(Me.Fragment,{children:[(0,Me.jsx)(Un.tA,{className:"login",onClick:()=>MB.global.popupHelper.loginAsync({onConfirm:()=>{setTimeout(()=>location.reload(),50),(0,$t.JW)("/dashboard/me","_blank","noreferrer"),ENV.IS_MO&&(0,Kn.lW)("Readonly-Top-Signin")},type:"signin",source:"proto-preview"}),children:I18N.pPreviewToolbar.login}),(0,Me.jsx)(Un.jn,{className:"signup",onClick:()=>MB.global.popupHelper.loginAsync({onConfirm:()=>{setTimeout(()=>location.reload(),50),(0,$t.JW)("/dashboard/me","_blank","noreferrer"),ENV.IS_MO&&(0,Kn.lW)("Readonly-Top-Start for Free")},type:"signup",source:"proto-preview"}),children:I18N.pPreviewToolbar.signup}),(0,Me.jsx)(Wt.A,{}),(0,Me.jsx)(wt,{}),jo?(0,Me.jsx)(l.A,{direction:"down",content:I18N.pPreviewToolbar.exit_fullscreen,children:(0,Me.jsx)(ne.A,{className:q()("full-screen-button",{small:xo&&!jo}),name:"design/collapse_screen",onClick:this.handleExitFullScreen})}):(0,Me.jsx)(l.A,{direction:"down",content:I18N.pPreviewToolbar.fullscreen,children:(0,Me.jsx)(ne.A,{className:q()("full-screen-button",{small:xo&&!jo}),name:"design/fullscreen",onClick:this.handleEnterFullScreen})})]}):(0,Me.jsxs)(Me.Fragment,{children:[!Mo&&!xo&&!jn&&((zn=MB)==null||(zn=zn.user)==null?void 0:zn.id)&&(0,Me.jsx)(M.A,{svgIconName:"design/preview/comment",active:Jt,className:"comment",disabled:(Ln==null?void 0:Ln.comment_permission)==="off",toolTipName:(0,bn.Qc)("comment"),direction:"down",toolTipDistance:8,onClick:this.handleToggleComment}),!(Mo||xo||jn||(0,Lt.BG)())&&(0,Me.jsx)(gt,{dispatch:On,user:cn}),(0,Me.jsx)(Wt.A,{}),(0,Me.jsx)(wt,{}),jo?(0,Me.jsx)(l.A,{direction:"down",content:I18N.pPreviewToolbar.exit_fullscreen,children:(0,Me.jsx)(ne.A,{className:q()("full-screen-button",{small:xo&&!jo}),name:"design/collapse_screen",onClick:this.handleExitFullScreen})}):(0,Me.jsx)(l.A,{direction:"down",content:I18N.pPreviewToolbar.fullscreen,children:(0,Me.jsx)(ne.A,{className:q()("full-screen-button",{small:xo&&!jo}),name:"design/fullscreen",onClick:this.handleEnterFullScreen})})]})]})]}),(0,Me.jsx)(Jn.A,{target:document,onPointerDown:(0,Jn.t)(this.handleClickOutSide,{capture:!0})})]})}}const lo=(0,J.Mz)([N.bF,N.Br,N.PL,N.Ph,N.m5,N.HW,N.H9,N.kM,N.Pf,N.UB,N.mf,N.Zr,N.tp,o.sI],(Ye,wn,Hn,zn,ko,On,Mo,jn,xo,jo,Qo,cn,In,tn)=>{let{isHTMLZip:Jt,isSquare:Ln,isEmbedV2:Xn}=Ye,{isShowNewVersionArtboardGuide:Dn}=Mo,{activePageKey:go,activeCanvasKey:Uo}=Qo;return{project:Hn||{},isHTMLZip:Jt,isSquare:Ln,isEmbedV2:Xn,isFullScreenMode:zn,toolbarActiveItem:wn,theme:ko,user:On,isShowNewVersionArtboardGuide:Dn,isHiddenToolBar:jn,isMinimized:xo,sharing:jo,activePageKey:go,activeCanvasKey:Uo,isFromAbar:cn,previewViewMode:In,isInCommentMode:tn}}),qn=(0,I.Ng)(Ye=>lo(Ye))(yn);class Wn extends r.PureComponent{render(){const{isPanelPreviewMode:wn,isPreviewCombo:Hn,isQuickPreview:zn,...ko}=this.props;return(0,Me.jsx)(Me.Fragment,{children:zn?(0,Me.jsx)(mt,{...ko}):wn||Hn?(0,Me.jsx)(Vn,{...ko}):(0,Me.jsx)(qn,{})})}}const Nn=(0,J.Mz)([N.KR,N.hM,N.k6],(Ye,wn,Hn)=>({isPanelPreviewMode:Ye,isPreviewCombo:wn,isQuickPreview:Hn})),xn=(0,I.Ng)(Nn)(Wn)},9338:(Qn,qe,s)=>{"use strict";s.d(qe,{A:()=>ne});var r=s(38502),I=s(56193),J=s(27937),N=s(47163),T=s(29158),te=s(85449),q=s(72214);class ne extends r.Component{render(){return(0,q.jsx)(J.tH,{fallback:(0,q.jsx)(I.A,{locale:(0,N.w)()}),beforeCapture:l=>{var U,C,M;l.setLevel("fatal");const w=window.reduxLogList.filter(Boolean).map(yt=>yt.type),y=JSON.stringify(w,null,2),j=(0,te.dP)(),Q=[];if(j){var ze;const yt=(j==null||(ze=j.editor)==null||(ze=ze.state)==null||(ze=ze.mode)==null?void 0:ze.selections)||[];for(const Le of yt){var me,Se,Me;!((me=sdkStore)!=null&&me.isTrashed(Le))&&(Se=sdkStore)!=null&&(Me=Se.findUpHotItemList)!=null&&Me.call(Se,Le,T.gT)&&Q.push(sdkStore.findUpHotItemList(Le,T.gT).map(He=>({key:He.key,type:He.hotAttr.type,name:He.hotAttr.name})))}}const{language:De,hardwareConcurrency:tt}=navigator,{devicePixelRatio:at,outerWidth:ht,outerHeight:Je,innerWidth:$,innerHeight:mt}=window;l.setExtras({reduxLogList:y,selectionKeyPathList:JSON.stringify(Q,null,2),htmlLang:(U=document.querySelector("html"))==null?void 0:U.getAttribute("lang"),navigator:JSON.stringify({language:De,hardwareConcurrency:tt,devicePixelRatio:at,outerWidth:ht,outerHeight:Je,innerWidth:$,innerHeight:mt},null,2),multiCursor:((C=rootSdk)==null||(C=C.cssCur)==null?void 0:C.getRoomStat().length)>1?JSON.stringify([...(M=rootSdk)==null||(M=M.cssCur)==null||(M=M.__curStatMap)==null?void 0:M.values()],null,2):void 0})},children:this.props.children})}}},10245:(Qn,qe,s)=>{"use strict";s.d(qe,{b:()=>r});const r=1e4},11817:Qn=>{const qe=q=>({IMPORTANT:{className:"meta",begin:"!important"},HEXCOLOR:{className:"number",begin:"#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})"},ATTRIBUTE_SELECTOR_MODE:{className:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[q.APOS_STRING_MODE,q.QUOTE_STRING_MODE]}}),s=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],r=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"],I=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"],J=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],N=["align-content","align-items","align-self","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","auto","backface-visibility","background","background-attachment","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","clear","clip","clip-path","color","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","content","counter-increment","counter-reset","cursor","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-variant","font-variant-ligatures","font-variation-settings","font-weight","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inherit","initial","justify-content","left","letter-spacing","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marks","mask","max-height","max-width","min-height","min-width","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","perspective","perspective-origin","pointer-events","position","quotes","resize","right","src","tab-size","table-layout","text-align","text-align-last","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-indent","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","white-space","widows","width","word-break","word-spacing","word-wrap","z-index"].reverse(),T=I.concat(J);function te(q){const ne=qe(q),B=T,l="and or not only",U="[\\w-]+",C="("+U+"|@\\{"+U+"\\})",M=[],w=[],y=function(Je){return{className:"string",begin:"~?"+Je+".*?"+Je}},j=function(Je,$,mt){return{className:Je,begin:$,relevance:mt}},Q={$pattern:/[a-z-]+/,keyword:l,attribute:r.join(" ")},ze={begin:"\\(",end:"\\)",contains:w,keywords:Q,relevance:0};w.push(q.C_LINE_COMMENT_MODE,q.C_BLOCK_COMMENT_MODE,y("'"),y('"'),q.CSS_NUMBER_MODE,{begin:"(url|data-uri)\\(",starts:{className:"string",end:"[\\)\\n]",excludeEnd:!0}},ne.HEXCOLOR,ze,j("variable","@@?"+U,10),j("variable","@\\{"+U+"\\}"),j("built_in","~?`[^`]*?`"),{className:"attribute",begin:U+"\\s*:",end:":",returnBegin:!0,excludeEnd:!0},ne.IMPORTANT);const me=w.concat({begin:/\{/,end:/\}/,contains:M}),Se={beginKeywords:"when",endsWithParent:!0,contains:[{beginKeywords:"and not"}].concat(w)},Me={begin:C+"\\s*:",returnBegin:!0,end:/[;}]/,relevance:0,contains:[{begin:/-(webkit|moz|ms|o)-/},{className:"attribute",begin:"\\b("+N.join("|")+")\\b",end:/(?=:)/,starts:{endsWithParent:!0,illegal:"[<=$]",relevance:0,contains:w}}]},De={className:"keyword",begin:"@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b",starts:{end:"[;{}]",keywords:Q,returnEnd:!0,contains:w,relevance:0}},tt={className:"variable",variants:[{begin:"@"+U+"\\s*:",relevance:15},{begin:"@"+U}],starts:{end:"[;}]",returnEnd:!0,contains:me}},at={variants:[{begin:"[\\.#:&\\[>]",end:"[;{}]"},{begin:C,end:/\{/}],returnBegin:!0,returnEnd:!0,illegal:"[<='$\"]",relevance:0,contains:[q.C_LINE_COMMENT_MODE,q.C_BLOCK_COMMENT_MODE,Se,j("keyword","all\\b"),j("variable","@\\{"+U+"\\}"),{begin:"\\b("+s.join("|")+")\\b",className:"selector-tag"},j("selector-tag",C+"%?",0),j("selector-id","#"+C),j("selector-class","\\."+C,0),j("selector-tag","&",0),ne.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",begin:":("+I.join("|")+")"},{className:"selector-pseudo",begin:"::("+J.join("|")+")"},{begin:"\\(",end:"\\)",contains:me},{begin:"!important"}]},ht={begin:U+":(:)?"+("("+B.join("|")+")"),returnBegin:!0,contains:[at]};return M.push(q.C_LINE_COMMENT_MODE,q.C_BLOCK_COMMENT_MODE,De,tt,ht,Me,at),{name:"Less",case_insensitive:!0,illegal:"[=>'/<($\"]",contains:M}}Qn.exports=te},12247:(Qn,qe,s)=>{"use strict";s.d(qe,{A:()=>M});var r=s(38502),I=Object.defineProperty,J=Object.defineProperties,N=Object.getOwnPropertyDescriptors,T=Object.getOwnPropertySymbols,te=Object.prototype.hasOwnProperty,q=Object.prototype.propertyIsEnumerable,ne=(w,y,j)=>y in w?I(w,y,{enumerable:!0,configurable:!0,writable:!0,value:j}):w[y]=j,B=(w,y)=>{for(var j in y||(y={}))te.call(y,j)&&ne(w,j,y[j]);if(T)for(var j of T(y))q.call(y,j)&&ne(w,j,y[j]);return w},l=(w,y)=>J(w,N(y)),U=(w,y)=>{var j={};for(var Q in w)te.call(w,Q)&&y.indexOf(Q)<0&&(j[Q]=w[Q]);if(w!=null&&T)for(var Q of T(w))y.indexOf(Q)<0&&q.call(w,Q)&&(j[Q]=w[Q]);return j},M=(0,r.forwardRef)((w,y)=>{var j=w,{size:Q,spin:ze,style:me}=j,Se=U(j,["size","spin","style"]);const Me=B(B({width:Q||"var(--x-icon-size, 1em)",height:Q||"var(--x-icon-size, 1em)",animation:ze?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),me);return r.createElement("svg",l(B({ref:y,style:Me},Se),{width:"51",height:"17",viewBox:"0 0 51 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),r.createElement("rect",{x:"0.25",y:"0.25",width:"50.5",height:"16.5",rx:"4.25",fill:"url(#paint0_linear_291_90)"}),r.createElement("rect",{x:"0.25",y:"0.25",width:"50.5",height:"16.5",rx:"4.25",fill:"url(#paint1_linear_291_90)",fillOpacity:"0.5"}),r.createElement("rect",{x:"0.25",y:"0.25",width:"50.5",height:"16.5",rx:"4.25",fill:"url(#paint2_linear_291_90)",fillOpacity:"0.8"}),r.createElement("rect",{x:"0.25",y:"0.25",width:"50.5",height:"16.5",rx:"4.25",stroke:"url(#paint3_linear_291_90)",strokeWidth:"0.5"}),r.createElement("path",{d:"M12.01 10.88C13.53 11.16 14.88 11.49 16.27 11.97V13.07C14.78 12.58 13.45 12.25 12.01 11.98V10.88ZM11.48 11.15V12.26L8.07 12.69L7.91 11.6L11.48 11.15ZM15.21 7.71C15.76 7.99 16.42 8.25 17.2 8.45L16.92 9.53C15.96 9.25 15.07 8.86 14.31 8.38C13.91 8.62 13.46 8.85 12.95 9.05C13.97 9.26 14.83 9.47 15.92 9.8V10.9C14.7 10.53 13.77 10.31 12.59 10.08V9.19C12.29 9.3 11.96 9.41 11.62 9.51L11.32 8.47C12.14 8.27 12.82 8.01 13.39 7.69C13.1 7.43 12.83 7.16 12.6 6.86C12.36 7.09 12.1 7.31 11.8 7.54L11.46 6.66C11.14 7.61 10.6 8.46 9.91 9.17L11.23 9.03V10.11L8.25 10.41L8.12 9.37L8.41 9.34C8.91 8.92 9.33 8.44 9.67 7.91L8.11 7.98L7.97 6.94L8.17 6.93C8.87 6.03 9.29 5.14 9.57 4H10.71C10.47 5.09 10.02 6.05 9.43 6.89L10.23 6.86C10.39 6.48 10.52 6.09 10.62 5.68H11.7C11.67 5.87 11.63 6.05 11.59 6.23C12.35 5.59 12.68 4.83 12.9 4.01H14.16C14.1 4.3 14.02 4.57 13.93 4.83H15.95C16.4 4.83 16.65 5.06 16.65 5.49C16.65 5.69 16.59 5.92 16.5 6.09C16.17 6.71 15.75 7.24 15.21 7.71ZM14.25 7.11C14.7 6.74 15.06 6.31 15.36 5.83H13.45C13.36 5.97 13.27 6.1 13.17 6.23H13.37C13.58 6.52 13.87 6.82 14.25 7.11ZM25.4 9.92V12.05C25.4 12.56 24.98 12.92 24.45 12.98C23.99 13.03 22.89 12.92 22.48 12.82L22.21 11.83C22.56 11.94 23.58 12.04 23.93 12.01C24.1 12 24.2 11.9 24.2 11.73V10.73C22.57 11.71 20.58 12.45 17.88 13L17.62 11.85C19.51 11.47 21.22 10.96 22.77 10.19H17.67L17.57 9.21H18.8V5.43C18.8 4.98 19.05 4.73 19.5 4.73H20.92L21.07 4.01H22.53L22.38 4.73H24.69C25.14 4.73 25.4 4.97 25.4 5.43V8.47C25.76 8.16 26.11 7.83 26.44 7.48L26.82 8.7C26.37 9.14 25.9 9.54 25.4 9.92ZM24.2 9.21V8.66H20V9.21H24.2ZM24.2 7.74V7.18H20V7.74H24.2ZM24.2 6.26V5.86C24.2 5.77 24.14 5.71 24.05 5.71H20.15C20.06 5.71 20 5.77 20 5.86V6.26H24.2Z",fill:"#7E2203"}),r.createElement("path",{d:"M30.7256 12.5L27.6792 4.5928H29.5608L31.8792 10.988H31.1064L33.4584 4.5928H35.3176L32.2376 12.5H30.7256ZM35.746 12.5V4.5928H37.5044V12.5H35.746ZM39.8712 9.6216V8.2552H41.5736C41.7902 8.2552 41.988 8.2104 42.1672 8.1208C42.3464 8.0312 42.4883 7.90053 42.5928 7.7288C42.6974 7.55707 42.7496 7.348 42.7496 7.1016C42.7496 6.86267 42.6974 6.65733 42.5928 6.4856C42.4883 6.31387 42.3464 6.1832 42.1672 6.0936C41.988 6.004 41.7902 5.9592 41.5736 5.9592H39.8712V4.5928H41.8312C42.3315 4.5928 42.7832 4.6936 43.1864 4.8952C43.5896 5.0968 43.907 5.388 44.1384 5.7688C44.3774 6.14213 44.4968 6.5864 44.4968 7.1016C44.4968 7.6168 44.3774 8.0648 44.1384 8.4456C43.907 8.81893 43.5896 9.11013 43.1864 9.3192C42.7832 9.5208 42.3315 9.6216 41.8312 9.6216H39.8712ZM38.5272 12.5V4.5928H40.2856V12.5H38.5272Z",fill:"#7E2203"}),r.createElement("defs",null,r.createElement("linearGradient",{id:"paint0_linear_291_90",x1:"50.5",y1:"8.5",x2:"18.6073",y2:"-9.04453",gradientUnits:"userSpaceOnUse"},r.createElement("stop",{stopColor:"#FFE6DD"}),r.createElement("stop",{offset:"1",stopColor:"#FFBEA9"})),r.createElement("linearGradient",{id:"paint1_linear_291_90",x1:"0.500001",y1:"18.7222",x2:"13.8428",y2:"11.2975",gradientUnits:"userSpaceOnUse"},r.createElement("stop",{stopColor:"#D55C81"}),r.createElement("stop",{offset:"1",stopColor:"#D55C81",stopOpacity:"0"})),r.createElement("linearGradient",{id:"paint2_linear_291_90",x1:"4.54412",y1:"0.5",x2:"9.2775",y2:"9.57088",gradientUnits:"userSpaceOnUse"},r.createElement("stop",{stopColor:"white"}),r.createElement("stop",{offset:"1",stopColor:"white",stopOpacity:"0"})),r.createElement("linearGradient",{id:"paint3_linear_291_90",x1:"51.2353",y1:"7.5",x2:"0.498777",y2:"7.22966",gradientUnits:"userSpaceOnUse"},r.createElement("stop",{stopColor:"#FFE7DE"}),r.createElement("stop",{offset:"1",stopColor:"#FFBEA9"}))))})},12953:(Qn,qe,s)=>{"use strict";s.d(qe,{A:()=>M});var r=s(38502),I=Object.defineProperty,J=Object.defineProperties,N=Object.getOwnPropertyDescriptors,T=Object.getOwnPropertySymbols,te=Object.prototype.hasOwnProperty,q=Object.prototype.propertyIsEnumerable,ne=(w,y,j)=>y in w?I(w,y,{enumerable:!0,configurable:!0,writable:!0,value:j}):w[y]=j,B=(w,y)=>{for(var j in y||(y={}))te.call(y,j)&&ne(w,j,y[j]);if(T)for(var j of T(y))q.call(y,j)&&ne(w,j,y[j]);return w},l=(w,y)=>J(w,N(y)),U=(w,y)=>{var j={};for(var Q in w)te.call(w,Q)&&y.indexOf(Q)<0&&(j[Q]=w[Q]);if(w!=null&&T)for(var Q of T(w))y.indexOf(Q)<0&&q.call(w,Q)&&(j[Q]=w[Q]);return j},M=(0,r.forwardRef)((w,y)=>{var j=w,{size:Q,spin:ze,style:me}=j,Se=U(j,["size","spin","style"]);const Me=B(B({width:Q||"var(--x-icon-size, 1em)",height:Q||"var(--x-icon-size, 1em)",animation:ze?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),me);return r.createElement("svg",l(B({ref:y,style:Me},Se),{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),r.createElement("path",{d:"M9.72363 2.0882C9.90657 2.03488 10.1013 2.03476 10.2842 2.0882L16.3047 3.84698C16.7311 3.97162 17.0244 4.36271 17.0244 4.80695V8.263C17.0242 12.5721 14.3356 16.4107 10.3154 17.8958C10.1128 17.9705 9.88915 17.9706 9.68652 17.8958C5.6652 16.4107 2.97577 12.5712 2.97559 8.26105V4.80695C2.97559 4.3626 3.26976 3.97152 3.69629 3.84698L9.72363 2.0882ZM10.1006 5.47882C8.56872 5.47929 7.32664 6.72137 7.32617 8.25323C7.32629 9.5237 8.18151 10.5921 9.34668 10.9212V13.8069C9.34688 14.1783 9.64823 14.4796 10.0195 14.4798C10.3909 14.4797 10.6922 14.1783 10.6924 13.8069V12.931C10.7058 12.9318 10.7198 12.9358 10.7334 12.9359H11.4297C11.8009 12.9356 12.1023 12.6343 12.1025 12.263C12.1023 11.8917 11.8009 11.5904 11.4297 11.5901H10.7334C10.7198 11.5902 10.7058 11.5932 10.6924 11.5941V10.9632C11.9404 10.6918 12.8759 9.58243 12.876 8.25323C12.8755 6.72109 11.6328 5.47884 10.1006 5.47882ZM10.1006 6.82452C10.8896 6.82454 11.5298 7.46435 11.5303 8.25323L11.5225 8.39972C11.4492 9.12026 10.8405 9.68291 10.1006 9.68292L9.95508 9.67511C9.23467 9.60178 8.67201 8.99297 8.67188 8.25323C8.67234 7.46463 9.31198 6.82499 10.1006 6.82452Z",fill:"#B7B9BD"}))})},13696:(Qn,qe,s)=>{"use strict";s.d(qe,{A:()=>Yt});var r=s(18381),I=s(12211),J=s(16454),N=s(53940),T=s(95549),te=s(38502),q=s(53732),ne=s.n(q),B=s(39e3),l=s(77533),U=s(17307),C=s(62490),M=s(60121),w=s(78401),y=s(93257),j=s(69246),Q=s(85584),ze=s(29078),me=s(67787),Se=s(51090);const Me=me.Ay.div.withConfig({displayName:"styles__StyledScreenItem",componentId:"sc-bxhybw-0"})([""," .expander{display:flex;align-items:center;justify-content:center;cursor:pointer;width:14px;height:14px;margin-left:-15px;margin-right:1px;.arrow-icon{color:#999;width:8px;height:8px;&:not(.is-expand){transform:rotate(-90deg);}}}.screen-name{display:flex;align-items:center;width:100%;padding-right:5px;.screen-item-icon{display:flex;flex-shrink:0;justify-content:center;align-items:center;width:24px;height:24px;margin-right:2px;color:",";}.editable-span{color:",";",";line-height:24px;border:none;span.highlight-keyword{font-weight:600;}}}&[disabled]{opacity:0.4;pointer-events:none;}.actions{padding:0 10px;.actions-ellipsis{font-size:14px;pointer-events:none;color:",";}&:hover{.actions-ellipsis{color:",";}}}.child-screens{position:relative;}&.wait-hover *{pointer-events:none;}&.linking{color:",";background:",";.actions{display:none;}}&:hover,&.hover{color:",";background:",";.screen-name .screen-item-icon .icon{color:",";}}&.dummy-select{background:",";border-radius:0;}&.active,&.is-active{color:",";background-color:",";.screen-name{.editable-span{font-weight:500;}.screen-item-icon .icon{color:",";}}.expander .arrow-icon{color:#999;}}.active-circle{position:absolute;right:11px;width:6px;height:6px;display:inline-block;border-radius:50%;background:",";}border-radius:6px;.editable-span,.editable-name{&.is-editing{textarea{margin-right:18px;border:1px solid #0077FF;border-radius:6px;line-height:16px;padding:3px 6px;}}}"],Se.Aw,rt=>rt.theme.color_text_L1,rt=>rt.theme.color_text_L1,Se.L9,rt=>rt.theme.color_text_L2,rt=>rt.theme.color_proto,rt=>rt.theme.color_text_L2,rt=>rt.theme.color_bg_select02,rt=>rt.theme.color_text_L1,rt=>rt.theme.color_directory_hover,rt=>rt.theme.color_text_L1,rt=>rt.theme.color_directory_hover,rt=>rt.theme.color_text_L1,rt=>rt.theme.color_directory_active,rt=>rt.theme.color_text_L1,rt=>rt.theme.color_text_link_normal);var De=s(72214);class tt extends te.PureComponent{constructor(){super(...arguments),(0,T.A)(this,"setElementRef",An=>this.$elem=An),(0,T.A)(this,"handleExpand",An=>{An.stopPropagation();const{screenMeta:Nt,actionProps:{onExpand:jt}}=this.props;jt(Nt)}),(0,T.A)(this,"handleClick",An=>{An.stopPropagation();const{screenMeta:Nt,actionProps:{onSelect:jt}}=this.props;jt(An,Nt)}),(0,T.A)(this,"onShowTipsByTarget",(An,Nt)=>{const jt=Nt.querySelector(".editable-span");return jt?jt.offsetWidth<jt.scrollWidth:!1}),(0,T.A)(this,"handleToggleHover",(An,Nt)=>{An.stopPropagation();const{actionProps:{onToggleHover:jt},screenMeta:{cid:vn}}=this.props;jt&&jt(Nt?vn:"")})}stopPropagation(An){An.stopPropagation()}render(){const{screenMeta:An,depth:Nt,isExpand:jt,isDummySelect:vn,isActive:Dt,showExpander:$t,isHTMLZip:kn,screenCommentThreadCountMap:Kn,theme:dn,initPaddingLeft:ft,paddingLeftLayout:Lt,highlightKeyword:bn}=this.props,Yn=(0,ze.N8)(Nt,Lt,ft),on=(0,Q.Mo)(An),{cid:yn,name:lo,icon:qn}=An,Nn=(Kn&&Kn[yn]||0)>=1&&!kn;return(0,De.jsx)(y.A,{content:lo,distance:5,direction:"right",onMouseEvent:"onDoubleClick",onChangeTooltipsHover:(xn,Ye)=>Ye==null?void 0:Ye(),isShowTipsByTarget:this.onShowTipsByTarget,children:(0,De.jsxs)(Me,{ref:this.setElementRef,"data-cid":yn,onClick:this.handleClick,onMouseEnter:xn=>this.handleToggleHover(xn,!0),onMouseLeave:xn=>this.handleToggleHover(xn,!1),style:{paddingLeft:Yn},className:ne()("rn-list-item",{"dummy-select":vn,active:Dt,select:Dt,folder:on}),children:[$t&&(0,De.jsx)("a",{className:"expander",onClick:this.handleExpand,onDoubleClick:this.stopPropagation,children:(0,De.jsx)(U.C,{className:ne()("arrow-icon",{"is-expand":jt}),name:"common/expand"})}),(0,De.jsxs)("div",{className:"screen-name",children:[(0,De.jsx)("div",{className:"screen-item-icon",children:(0,De.jsx)(j.k,{icon:qn,theme:dn,isExpand:jt})}),(0,De.jsx)(C.O,{className:"editable-span",children:(0,De.jsx)(M.A,{value:(0,w.wh)(lo),highlightKeyword:bn})})]}),Nn&&(0,De.jsx)("span",{className:"toggle-comment",children:(0,De.jsx)(U.C,{name:"new_replace/comment"})}),Dt&&(0,De.jsx)("span",{className:"active-circle"})]})})}}var at=s(31228),ht=s(86969),Je=s(93413);let $=function(rt){return rt.community="community",rt.workspace="workspace",rt}({});var mt=s(22835);class yt extends te.PureComponent{constructor(An){super(An),(0,T.A)(this,"setElementRef",Nt=>this.$elem=Nt),(0,T.A)(this,"autoScrollSelected",()=>{const{activePageKey:Nt}=this.props;Nt&&this.$elem&&(0,mt.yA)(this.$elem,Nt)}),(0,T.A)(this,"handleScreenMetaExpand",Nt=>{let{cid:jt}=Nt;const{collapseKeySet:vn,dispatch:Dt}=this.props,$t=new Set(vn);vn.has(jt)?$t.delete(jt):$t.add(jt),Dt({type:"preview:set:collapsedRBPageKeySet",payload:{collapsedRBPageKeySet:$t}})}),(0,T.A)(this,"handleSelectScreenMeta",(Nt,jt)=>{const{activePageKey:vn,dispatch:Dt,toolbarActiveItem:$t}=this.props;(0,Q.Mo)(jt)?this.handleScreenMetaExpand(jt):vn===jt.cid?this.handleScreenMetaExpand(jt):(Dt({type:"entry:sync-runner:set-screen",payload:{cid:jt.cid}}),Dt({type:"preview:set:canvas:offset:dev",payload:{offset:{x:0,y:0}}}),Dt({type:"entry:auto-fit:preview:scale"}),$t===ht.YK&&Dt({type:"entry:state:update:previewUserCommonGuidesData",payload:{key:Je.c.GUIDE_PREVIEW_ADD_COMMENT}}))}),(0,T.A)(this,"handleSearch",Nt=>{const{screenTreeData:jt}=this.props,vn=Nt==null?void 0:Nt.toLowerCase(),[Dt]=(0,Q.ZG)(jt,vn);this.setState({displayTreeData:Dt,keyword:vn})}),(0,T.A)(this,"handleToggleExpanded",()=>{const{collapseKeySet:Nt}=this.props;Nt.size>0?this.unfoldAllScreen():this.foldAllScreen()}),(0,T.A)(this,"handleKeyDown",Nt=>{(Nt.ctrlKey||Nt.metaKey)&&(Nt.keyCode===186&&(Nt.preventDefault(),this.unfoldAllScreen()),Nt.keyCode===222&&(Nt.preventDefault(),this.foldAllScreen()))}),(0,T.A)(this,"unfoldAllScreen",()=>{const{dispatch:Nt}=this.props;Nt({type:"preview:set:collapsedRBPageKeySet",payload:{collapsedRBPageKeySet:new Set}})}),(0,T.A)(this,"foldAllScreen",()=>{const{screenTreeData:Nt,dispatch:jt}=this.props,vn=(0,Q.YU)(Nt),Dt=new Set(vn.map($t=>$t.cid));jt({type:"preview:set:collapsedRBPageKeySet",payload:{collapsedRBPageKeySet:Dt}})}),(0,T.A)(this,"handleToggleHover",Nt=>this.setState({hoverCid:Nt})),(0,T.A)(this,"renderScreenMetaItem",Nt=>{let{depth:jt,screenMeta:vn,hasScreenMetaChildren:Dt,collapseScreenMetaCidSet:$t,activeScreenMetaCid:kn,dummySelect:Kn}=Nt;const{isHTMLZip:dn,screenCommentThreadCountMap:ft,theme:Lt,isSquare:bn}=this.props,{keyword:Yn}=this.state,{cid:on}=vn,yn=kn===on,lo=Kn.has(on),qn=!$t.has(on),Wn=Dt||(0,Q.Mo)(vn),{initPaddingLeft:Nn,paddingLeftLayout:xn}=(0,ze.zD)({isPreview:!0,isCommunityPreview:bn});return(0,De.jsx)(tt,{theme:Lt,depth:jt,screenMeta:vn,isActive:yn,isExpand:qn,isDummySelect:lo,showExpander:Wn,actionProps:this.literalActionProps,isHTMLZip:dn,screenCommentThreadCountMap:ft,paddingLeftLayout:xn,initPaddingLeft:Nn,highlightKeyword:Yn})}),this.state={displayTreeData:An.screenTreeData,keyword:"",hoverCid:""},this.literalActionProps={onExpand:this.handleScreenMetaExpand,onSelect:this.handleSelectScreenMeta,onToggleHover:this.handleToggleHover},this.thumbnailActionProps={onClick:this.handleSelectScreenMeta}}componentDidMount(){this.autoScrollSelected()}componentDidUpdate(An,Nt){const{activePageKey:jt,screenCommentThreadCountMap:vn,screenTreeData:Dt,collapseKeySet:$t,dispatch:kn}=this.props,{keyword:Kn,displayTreeData:dn,hoverCid:ft}=this.state;if(An.screenTreeData!==Dt){const[Lt]=(0,Q.ZG)(Dt,Kn);this.setState({displayTreeData:Lt})}if(An.activePageKey!==jt){const Lt=(0,Q.e7)(jt),bn=new Set($t);Lt.forEach(Yn=>{let{cid:on}=Yn;return $t.has(on)&&bn.delete(on)}),bn.size!==$t.size&&kn({type:"preview:set:collapsedRBPageKeySet",payload:{collapsedRBPageKeySet:bn}}),this.autoScrollSelected()}An.screenCommentThreadCountMap!==vn&&kn({type:"preview:set:collapsedRBPageKeySet",payload:{collapsedRBPageKeySet:new Set($t)}})}render(){const{screenDataMap:An={},activePageKey:Nt,isSquare:jt,collapseKeySet:vn}=this.props,{keyword:Dt}=this.state,{displayTreeData:$t}=this.state,kn=vn.size>0,Kn=Object.values(An).filter(ft=>!ft.hotAttr.asFolder).length,dn=(0,Q.he)([Nt],$t);return(0,De.jsxs)("div",{className:"screen-panel",style:{minHeight:100},children:[(0,De.jsx)(at.A,{onlyView:!1,keyword:Dt,hasFoldedScreen:kn,isPreview:!0,isCommunityPreview:jt,onSearch:this.handleSearch,nonFolderPGCount:Kn,onToggleExpanded:this.handleToggleExpanded}),(0,De.jsx)("div",{className:"screen-list-container",ref:this.setElementRef,children:$t&&(0,De.jsx)(l.A,{screenTreeData:$t,activeScreenMetaCid:Nt,collapseScreenMetaCidSet:vn,dummySelect:dn,renderScreenMetaItem:this.renderScreenMetaItem})}),(0,De.jsx)(B.A,{target:document,onKeyDown:(0,B.t)(this.handleKeyDown,{capture:!0})})]})}}(0,T.A)(yt,"defaultProps",{from:$.workspace});var Le=s(20640),He=s(34860);const ye=new Set(["demo","cS1AXKF5jtrJePbEKiYcdcHosQPdzrk","workout","sI3GY2tDz76RrZ4MGFiIcZTZpAHyluC","UMQzYmknxWeHNvvVyeyJDuSkgyvi6Xw","9Py1L5RdC8ZPRSmnWEt4uuUUSDUAxkM"]),je=(0,I.Mz)([J.hm,J.Br,J.PL,J.He,J.HA,J.jm,J.Ur,J.O4,J.UR,J.bm,J.mf,J.UB,J.bF,J.M2],(rt,An,Nt,jt,vn,Dt,$t,kn,Kn,dn,ft,Lt,bn,Yn)=>{let{activePageKey:on}=ft,{isSquare:yn}=bn,lo=vn,qn=jt,Wn=dn.length;if((0,He.St)()){const{screen_visible_list:Nn,screen_visible_switch:xn}=Lt;if(xn){const{screenTreeData:Ye,screenDataMap:wn}=(0,Le.wb)(Nn);lo=Ye,qn=wn,Wn=Nn.length}else lo=vn,Wn=dn.length}return{designOptions:rt,toolbarActiveItem:An,isDemo:ye.has(Nt==null?void 0:Nt.accessToken),screenTreeData:lo,screenCommentThreadCountMap:Dt,activeCid:$t==null?void 0:$t.cid,theme:kn,panelHeight:Kn,screensCount:Wn,activePageKey:on,projectShare:Lt,isSquare:yn,screenDataMap:qn,collapseKeySet:Yn}}),ot=(0,r.Ng)(rt=>je(rt))(yt);var we=s(5352),$e=s(25912),ge=s(98722),Ze=s(20089),W=s(98267),an=s(83199),_t=s(79150),nn=s(19295),Oe=s(37361);const sn=me.Ay.div.withConfig({displayName:"styles__StyledPreviewCanvasPanel",componentId:"sc-1o2w5ph-0"})(["position:relative;background:",";width:100%;height:100%;display:flex;flex-direction:column;overflow:hidden;.border-resizer.top{top:0;&:hover{background-color:rgba(22,132,252,.6);}&.active{background-color:rgba(22,132,252,.6);}}.canvas-scroll-list{flex:1;overflow-x:hidden;overflow-y:overlay;",";.canvas-sortable-list{position:relative;.layer-item{",";padding-left:19px;color:",";background-color:",";&.is-disabled{&.active{color:",";}}&.dummy-select{background:",";}&.active{background:",";}&:not(.active):not(.dummy-select):hover,&:not(.active):not(.dummy-select).hover{background:",";}.expander{display:flex;align-items:center;justify-content:center;margin-left:-15px;margin-right:1px;width:14px;height:14px;.arrow-icon{margin-right:0;color:#999;width:8px;&:not(.is-expand){transform:rotate(-90deg);}}}.layer-item-icon{",";}.homepage{width:20px;height:20px;color:",";margin-right:6px;}.group-icon{opacity:1;.main{fill:#1684fc;}}.ant-icon{width:16px;height:16px;color:#8d9ea7;}.editable-name{overflow:hidden;white-space:nowrap;flex:1;text-overflow:ellipsis;margin-right:0;border:none;}.action{width:20px;height:20px;display:flex;align-items:center;justify-content:center;visibility:hidden;cursor:pointer;.svg-icon{width:20px;height:20px;}}&:hover{.action{visibility:visible;}}&:hover,&.hover,&.active{.arrow-icon{color:#999;}.actions{background-color:transparent;}}&.is-disabled{& > *{opacity:0.4;}.actions{display:none;background:inherit;}}&.is-hidden{.eye-icon{visibility:visible;}}&.is-locked{.lock-icon{visibility:visible;}}&.is-linked{.link-icon{visibility:visible;color:",";}}&.is-hidden,&.is-locked,&.is-linked{.actions{display:flex;align-items:center;}}}}}.canvas-scroll-list{padding:8px;.canvas-sortable-list{.layer-item{border-radius:6px;.editable-span,.editable-name{&.is-editing{textarea{margin-right:18px;border:1px solid #0077FF;border-radius:6px;line-height:16px;padding:3px 6px;}}}}}}"],rt=>rt.theme.color_bg_white,Se.eP,Se.Aw,rt=>rt.theme.color_text_L1,rt=>rt.theme.color_bg_white,rt=>rt.theme.color_proto,rt=>rt.theme.color_directory_hover,rt=>rt.theme.color_directory_active,rt=>rt.theme.color_directory_hover,Oe.u6,rt=>rt.theme.color_text_L3,rt=>rt.theme.color_proto),It=me.Ay.header.withConfig({displayName:"styles__StyledHeader",componentId:"sc-1o2w5ph-1"})(["width:100%;height:40px;display:flex;align-items:center;justify-content:space-between;border-top:1px solid ",";border-bottom:1px solid ",";&:not(.is-search-mode){padding:0 9px 0 24px;&:lang(en){padding:0 9px 0 16px;}&.isCommunityPreview{padding:0 6px 0 14px;}}&.dark{.buttons .sticky-collapse svg path{stroke:rgb(242,244,245);}}.title{color:",";font-weight:500;&:lang(en){width:52px;text-align:center;}}&.has-drag{cursor:grab;}.header-icon{"," &:not(:first-child){margin-left:6px;}}.buttons{display:flex;.sticky-collapse{margin-left:4px;}}"],rt=>rt.theme.color_bg_border_01,rt=>rt.theme.color_bg_border_01,rt=>rt.theme.color_text_L1,Se.n9);class Pt extends te.PureComponent{constructor(An){super(An),(0,T.A)(this,"handleDown",Nt=>{Nt.stopPropagation();const{height:jt,onChangeHeight:vn}=this.props,{isSearching:Dt}=this.state;if(Dt)return;const $t=window.innerHeight-310,kn=Nt.clientY,Kn=-1,dn=Lt=>{const Yn=(Lt.clientY-kn)*Kn,on=Math.max(Math.min(jt+Yn,$t),N.nG);vn(on)},ft=()=>{document.removeEventListener("mousemove",dn),document.removeEventListener("mouseup",ft)};document.addEventListener("mousemove",dn),document.addEventListener("mouseup",ft)}),(0,T.A)(this,"handleExitSearch",Nt=>{Nt.stopPropagation(),this.props.onChangeKeyword(""),this.setState({isSearching:!1})}),(0,T.A)(this,"handleOpenSearch",()=>{this.setState({isSearching:!0})}),this.state={isSearching:!1}}handStopPropagation(An){An.stopPropagation()}render(){const{isSearching:An}=this.state,{keyword:Nt,onChangeKeyword:jt,isCommunityPreview:vn,theme:Dt}=this.props;return(0,De.jsx)(It,{className:ne()({"has-drag":!An},{"is-search-mode":An},{isCommunityPreview:vn},""+Dt),onMouseDown:this.handleDown,children:An?(0,De.jsx)(nn.A,{keyword:Nt,placeholder:I18N.ScreenPanel.search_screen,onChangeKeyword:jt,onExitSearch:this.handleExitSearch}):(0,De.jsxs)(De.Fragment,{children:[(0,De.jsx)("span",{className:"title",children:I18N.LeftSidePanel.artboard}),(0,De.jsx)("div",{className:"buttons",children:(0,De.jsx)(an.A,{content:I18N.ScreenPanel.element_search,direction:"down",children:(0,De.jsx)("a",{className:"header-icon",onMouseDown:this.handStopPropagation,onClick:this.handleOpenSearch,children:(0,De.jsx)(_t.A,{name:"common/search"})})})})]})})}}class dt extends te.PureComponent{constructor(An){super(An),(0,T.A)(this,"handleHeightChange",Nt=>{this.props.dispatch({type:"preview:panel:set:height",payload:{panelHeight:Nt}})}),(0,T.A)(this,"handleChangeKeyword",Nt=>this.setState({keyword:Nt})),(0,T.A)(this,"handleClick",(Nt,jt)=>{const{activePageKey:vn,activeCanvasKey:Dt,dispatch:$t}=this.props,kn=jt.key;kn!==Dt&&($t({type:"entry:runner:activate:canvas",payload:{pageKey:vn,canvasKey:kn}}),$t({type:"preview:set:canvas:offset:dev",payload:{offset:{x:0,y:0}}}))}),this.state={keyword:"",hoverCid:""},this.treeProps={onClick:this.handleClick,onMouseEnter:Nt=>{const{cid:jt}=Nt;this.setState({hoverCid:jt})},onMouseLeave:()=>{this.setState({hoverCid:""})}}}render(){const{height:An,canvasList:Nt,activeCanvasKey:jt,history:vn=[],isSquare:Dt,theme:$t}=this.props,{keyword:kn}=this.state,Kn=[];Nt.forEach(Yn=>{const on=(0,ge._k)(Yn,sdkStore,(0,ge.B8)(kn),!1);on&&Kn.push(on)});const dn=Dt?262:310,{initPaddingLeft:ft,paddingLeftLayout:Lt}=(0,ze.zD)({isPreview:!0,isCommunityPreview:Dt,isCanvasSortableList:!0}),bn=(0,W.Lf)(vn.at(-1))[1];return(0,De.jsxs)(sn,{style:{flexBasis:An},children:[(0,De.jsx)(we.A,{placement:"top",value:An,min:N.nG,max:window.innerHeight-dn,onChange:this.handleHeightChange}),(0,De.jsx)(Pt,{height:An,keyword:kn,isCommunityPreview:Dt,theme:$t,onChangeKeyword:this.handleChangeKeyword,onChangeHeight:this.handleHeightChange}),Kn&&(0,De.jsx)("div",{className:"canvas-scroll-list",children:(0,De.jsx)("ul",{className:"canvas-sortable-list",children:Kn.map((Yn,on)=>(0,De.jsx)($e.A,{depth:0,index:on+1,treeNode:Yn,hoverItem:"",newSelection:jt?[jt]:[],childrenSelect:!1,onlyView:!0,isHomepage:yn=>bn===yn,treeProps:this.treeProps,showAction:!1,maxOrderDigit:Kn.length,initPaddingLeft:ft,paddingLeftLayout:Lt,isPreview:!0},Yn.key))})})]})}}const Vn=(0,I.Mz)([J.De,J.UR,J.mf,J.bF,J.m5],(rt,An,Nt,jt,vn)=>{let{activePageKey:Dt,activeCanvasKey:$t,history:kn}=Nt,{isSquare:Kn}=jt;return{canvasList:rt?sdkStore.getSubHotItemList(rt.key).filter(ft=>{let{hotAttr:{type:Lt,asOverlay:bn}}=ft;return Lt===Ze.x.Canvas&&!bn}).sort((ft,Lt)=>ft.hotAttr.order-Lt.hotAttr.order):[],height:An,activePageKey:Dt,activeCanvasKey:$t,history:kn,isSquare:Kn,theme:vn}}),o=(0,r.Ng)(rt=>Vn(rt))(dt);var Gn=s(56202);const xt=me.Ay.div.withConfig({displayName:"styles__StyledPreviewPanel",componentId:"sc-1ohehmd-0"})(["position:relative;width:100%;height:calc(100% - 48px);display:flex;flex-direction:column;font-size:12px;color:#525e71;background-color:",";box-shadow:1px 0 0 ",";overflow:hidden;.title{white-space:nowrap;}&.is-uichina{box-shadow:none;}&.is-community{height:100%;}header{.screen-count{color:",';padding:0 3px;font-weight:600;}.toggle-icon{width:20px;height:20px;display:flex;justify-content:center;align-items:center;color:#8d9ea7;cursor:pointer;.icon{height:12px;}}}.screen-panel{flex:1;display:flex;flex-direction:column;overflow:hidden;.screen-header{height:36px;padding:0 4px 0 10px;display:flex;align-items:center;[type="search"]{flex:1;margin-right:4px;}.header-icon{',";}}.screen-list-container{flex:1;overflow-x:hidden;overflow-y:auto;padding:8px;",";.toggle-comment{position:absolute;right:22px;top:50%;transform:translateX(100%) translateY(-50%);& > .icon{color:",";}& > .icon-comment{margin-right:2px;}}&.thumbnail{padding-left:10px;.toggle-comment{display:none;}}.thumbnail-list{width:calc(100% + 15px);.thumbnail-item{width:105px;margin-right:10px;.image-wrapper{height:105px;}}}}}.no-slice{display:flex;align-items:center;justify-content:center;flex-direction:column;height:calc(100% - 50px);> img{width:93px;margin:-100px 10px 0;}span{color:",";font-size:14px;&:nth-child(2){padding-top:21px;}&:nth-child(3){font-size:12px;padding-top:8px;}&:nth-child(4){padding-top:4px;font-size:12px;}}a{margin-top:31px;text-decoration:none;padding:4px 13px;font-size:12px;color:",";border:1px solid ",";border-radius:3px;background-color:",";&:hover{color:",";background-color:",";}&:active{color:",";background:",";}img{width:14px;display:inline-block;vertical-align:middle;margin-right:5px;}}}"],rt=>rt.theme.color_bg_white,rt=>rt.theme.color_bg_border_01,rt=>rt.theme.color_text_L2,Se.n9,Se.eP,rt=>rt.theme.color_text_L3,rt=>rt.theme.color_text_L2,rt=>rt.theme.color_text_L2,rt=>rt.theme.color_bg_border_02,rt=>rt.theme.color_bg_white,rt=>rt.theme.color_text_L2,rt=>rt.theme.color_btn_secondary_active,rt=>rt.theme.color_text_L2,rt=>rt.theme.color_bg_canvas);class Ot extends te.PureComponent{render(){const{isHTMLZip:An,isCommunityComboPreview:Nt,isSquare:jt}=this.props;return(0,De.jsxs)(xt,{className:ne()("preview-panel",{"is-uichina":(0,Gn.II)()||(0,Gn.uf)()},{"is-community":jt}),children:[(0,De.jsx)(ot,{isHTMLZip:An}),!Nt&&(0,De.jsx)(o,{})]})}}const wt=(0,I.Mz)([J.bF,J.ub],(rt,An)=>{let{isHTMLZip:Nt,isSquare:jt}=rt;return{isHTMLZip:Nt,isCommunityComboPreview:An,isSquare:jt}}),Kt=(0,r.Ng)(rt=>wt(rt))(Ot);var fe=s(23200),bt=s(64639);const un=me.Ay.div.withConfig({displayName:"styles__StyledLeftPane",componentId:"sc-1ryw8zy-0"})(["position:relative;top:48px;height:100%;z-index:100;&.isCommunity{top:0;transition:none;}.preview-panel-wrapper{position:absolute;top:0;right:0;height:100%;width:100%;}svg:not(.","):not(.","):not(.",") > *{fill:currentColor;}.nav-back-icon{svg:not(.","):not(.","):not(.",") > *{fill:none;}}.toggle-minimized-button{width:28px;height:28px;background:",";box-shadow:0 2px 6px rgba(0,0,0,0.08);border-radius:4px;position:absolute;left:calc(100% + 26px);bottom:30px;cursor:pointer;color:",";svg.svg-icon{width:28px;height:28px;}&.is-minimized{svg.svg-icon{transform:rotate(180deg);}}&:hover{background:",";}&:active{background:",";}&.isSquare{display:none;}}.border-resizer.right{position:absolute;right:-1px;&:hover{background-color:rgba(22,132,252,.6);}&.active{background-color:rgba(22,132,252,.6);}}"],bt.Gd,bt.pf,bt.FQ,bt.Gd,bt.pf,bt.FQ,rt=>rt.theme.color_bg_white,rt=>rt.theme.color_text_L1,rt=>rt.theme.color_btn_secondary_active,rt=>rt.theme.color_btn_secondary_active),gt=(0,te.memo)(rt=>{let{isMinimized:An,leftPaneWidth:Nt,maxLeftPaneWidth:jt,handleWidthChange:vn}=rt;return An?null:(0,De.jsxs)("div",{style:{width:Nt},children:[(0,De.jsx)("div",{className:"preview-panel-wrapper",children:(0,De.jsx)(Kt,{})}),(0,De.jsx)(we.A,{placement:"right",className:"v-resizer",value:Nt,min:ht.CN,max:jt,onChange:vn})]})}),Wt=(0,fe.$)(gt);class Un extends te.PureComponent{constructor(){super(...arguments),(0,T.A)(this,"handleWidthChange",An=>{const{dispatch:Nt,currentProject:jt}=this.props;Nt({type:"preview:set:leftPaneWidth",payload:{leftPaneWidth:An,projectCid:jt.cid}})}),(0,T.A)(this,"toggleLeftPane",()=>this.props.dispatch({type:"entry:preview-setting:toggle:isMinimized"}))}render(){const{isFullScreenMode:An,isMinimized:Nt,isEmbedV2:jt,isSquare:vn,leftPaneWidth:Dt,maxLeftPaneWidth:$t}=this.props;return(0,De.jsx)(un,{id:"mb-preview-leftpane",className:ne()(An&&!jt?"is-fullscreen-mode":"",{isCommunity:vn&&!An}),children:vn&&!An?(0,De.jsx)(gt,{leftPaneWidth:Dt,maxLeftPaneWidth:$t,isMinimized:Nt,handleWidthChange:this.handleWidthChange}):(0,De.jsx)(Wt,{orientation:"left",toggleFunc:this.toggleLeftPane,isVisible:!Nt,leftPaneWidth:Dt,maxLeftPaneWidth:$t,isMinimized:Nt,handleWidthChange:this.handleWidthChange,guideKey:Je.c.INTER_SWITCHABLE_VIEW_MODE_PV_TOGGLE_PANE_BTN})})}}const Jn=(0,I.Mz)([J.Ph,J.Pf,J.bF,J.E1,J.zo,J.PL],(rt,An,Nt,jt,vn,Dt)=>{const{isEmbedV2:$t,isSquare:kn}=Nt;return{isFullScreenMode:rt,isMinimized:An,isEmbedV2:$t,isSquare:kn,leftPaneWidth:jt,maxLeftPaneWidth:window.innerWidth-N.K_-vn,currentProject:Dt}}),Yt=(0,r.Ng)(rt=>Jn(rt))(Un)},14084:(Qn,qe,s)=>{"use strict";s.d(qe,{j:()=>N});var r=s(12211),I=s(59025),J=s(4235);const N=(0,r.Mz)([J.p$],T=>(0,I.td)(T))},14794:(Qn,qe,s)=>{"use strict";s.d(qe,{v:()=>M});var r=s(38502),I=s(79287),J=s.n(I),N=s(17307),T=s(15515),te=s(81122),q=s(37342),ne=s(5209),B=s(67787);const l=B.Ay.div.withConfig({displayName:"styles__StyledSignUpPrompt",componentId:"sc-1iuu3ne-0"})(["svg.close-btn{cursor:pointer;width:24px;height:24px;border-radius:4px;transition:background-color 0.2s ease-in-out;&:hover{background:#f2f2f2;}&:active{background:#e5e5e5;}}position:absolute;display:flex;align-items:center;flex-direction:row;left:50%;top:78px;transform:translateX(-50%);padding:16px;width:430px;height:64px;background-color:#fff;box-shadow:0 2px 10px rgba(82,94,113,0.1);border-radius:4px;pointer-events:auto;z-index:11;.content{display:flex;flex-direction:column;> span:first-child{font-weight:500;font-size:14px;line-height:14px;color:#333;margin-bottom:4px;}}.login-btn{cursor:pointer;&:lang(en){color:#5303AF;}}button.signup-btn{display:flex;flex-direction:row;justify-content:center;align-items:center;margin-left:auto;margin-right:12px;padding:8px 15px;white-space:nowrap;width:77px;height:28px;color:#fff;border-radius:6px;font-size:13px;&:lang(en){background:#FFC401;color:#000;&:hover{color:#000;border:1px solid #000;}}}svg.close-btn{bottom:36px;}.logo{height:22px;margin-right:16px;}.login-btn{color:#f33;}button.signup-btn{background:linear-gradient(230.47deg,#ffa41c -0.87%,#fe4141 25.89%,#f4153e 77.87%,#ff27c3 97.94%),#e73828;}"]);var U=s(72214);const C="local_signup_prompt_close",M=w=>{let{withOffset:y}=w;const j=()=>{setTimeout(()=>{if((0,te.BG)()){window.top.location.reload();return}location.reload()},50),(0,q.JW)("/dashboard/me","_blank","noreferrer")},Q=()=>{MB.global.popupHelper.loginAsync({onConfirm:j,type:"signin",source:"proto-preview"}),ENV.IS_MO&&(0,ne.lW)("Readonly-Middlie-Signin")},ze=()=>{MB.global.popupHelper.loginAsync({onConfirm:j,type:"signup",source:"proto-preview"}),ENV.IS_MO&&(0,ne.lW)("Readonly-Middle-Join Now")},me=(0,T.Yt)(C,null,T.qW.Object),Se=me?J()().isAfter(J()(me.expired)):!0,Me=I18N.SignUpPrompt.after_sigin_1;return(0,U.jsx)(U.Fragment,{children:Se&&(0,U.jsxs)(l,{withOffset:y,children:[ENV.IS_MO?(0,U.jsx)(N.C,{className:"logo",name:"common/mockitt-logo/new",isColorPure:!0}):(0,U.jsx)("img",{className:"logo",src:"/mb-static/2509/logo-text.svg"}),(0,U.jsxs)("div",{className:"content",children:[(0,U.jsx)("span",{children:I18N.SignUpPrompt.welcome}),(0,U.jsxs)("span",{children:[(0,U.jsx)("span",{className:"login-btn",onClick:Q,children:I18N.SignUpPrompt.signin}),(0,U.jsxs)("span",{children:[" ",Me]})]})]}),(0,U.jsx)("button",{className:"signup-btn",onClick:ze,children:I18N.pComment.signIn}),(0,U.jsx)(N.C,{className:"close-btn",onClick:De=>{De.currentTarget.parentElement.style.display="none";const tt=J()().add(1,"week").startOf("week").format("YYYY-MM-DD");(0,T.a0)(C,{expired:tt},T.qW.Object)},name:"common/close_sm"})]})})}},15170:(Qn,qe,s)=>{"use strict";s.d(qe,{M:()=>J,y:()=>I});var r=s(14861);const I=N=>{switch(N){case"iphone":case"ipad":case"apple_watch":return"ios";case"android":return"android";default:return"others"}},J=(N,T)=>{let{width:te,orientation:q}=T;const ne=q==="landscape";let B="customize";return!ne&&N.width===te||ne&&N.height===te?B=N.device:Object.entries(r.v2).forEach(l=>{let[U]=l;(!ne&&U.width===te||ne&&U.height===te)&&(B=U.device)}),!N.template&&!N.combo&&["android","ipad","iphone"].includes(N.device)&&["android","ipad","iphone"].includes(B)}},15399:(Qn,qe,s)=>{"use strict";s.d(qe,{F:()=>r});var r=function(I){return I[I.Design=0]="Design",I[I.Experience=1]="Experience",I}(r||{})},15974:(Qn,qe,s)=>{"use strict";s.d(qe,{A:()=>B});var r=s(38502),I=s(67787);const J=I.Ay.div.withConfig({displayName:"styles__StyledBrowserPrompt",componentId:"sc-lp9kv4-0"})(["display:flex;flex-direction:row;align-items:center;justify-content:center;padding:6px 12px;z-Index:10;position:absolute;height:36px;min-width:460px;bottom:40px;left:50%;transform:translateX(-50%);background:#FFFFFF;box-shadow:0 2px 6px rgba(39,54,78,0.08),0 6px 12px rgba(39,54,78,0.05);border-radius:100px;pointer-events:auto;svg.tik{color:#FF9000;}p{height:12px;font-size:12px;line-height:12px;color:#333333;margin:0 10px;}a{color:#1684fc;&:hover{text-decoration:underline;}}.clickble{cursor:pointer;}.close-btn{width:24px;height:24px;display:flex;align-items:center;justify-content:center;cursor:pointer;svg{width:20px;height:20px;}&:hover{background:#F2F2F2;border-radius:4px;}&:active{background:#E5E5E5;border-radius:4px;}}"]);var N=s(66633),T=s(28990),te=s(51582),q=s(72214);const ne="local_browser_prompt_show";function B(){if((0,N.H8)())return null;const U=Date.parse((0,T.Yt)(ne,"",T.qW.String));return U&&U>Date.now()?null:(0,q.jsx)(l,{})}const l=()=>{const[U,C]=(0,r.useState)(!0),M=()=>{const w=new Date;w.setUTCDate(w.getUTCDate()+1),(0,T.a0)(ne,w.toISOString(),T.qW.String),C(!1)};return U&&(0,q.jsxs)(J,{children:[(0,q.jsx)(te.A,{name:"sigh",className:"tik"}),(0,q.jsxs)("p",{children:["\u5F53\u524D\u6D4F\u89C8\u5668\u517C\u5BB9\u6027\u5DEE\uFF0C\u8BF7\u4F7F\u7528 ",(0,q.jsx)("a",{href:"https://www.google.cn/chrome/",target:"_blank",rel:"noreferrer",children:" Chrome \u6D4F\u89C8\u5668"}),"\u6216 ",(0,q.jsx)("a",{className:"clickble",href:"https://modao.cc/feature/downloads.html",target:"_blank",rel:"noreferrer",children:"\u4E0B\u8F7D\u58A8\u5200\u5BA2\u6237\u7AEF"})," \u4F7F\u7528"]}),(0,q.jsx)("div",{className:"close-btn",onClick:M,children:(0,q.jsx)(te.A,{name:"close_sm"})})]})}},16666:(Qn,qe,s)=>{"use strict";s.d(qe,{Qt:()=>I,Ue:()=>N});var r=s(19249);const I=T=>(0,r.zi)("/api/payment/v4/coupon/workspace_guide_2203_coupon",{space_type:T}),J=T=>fetchPostJSON("/api/web/v3/account/workspace_guide_days",{org_cid:T}),N=()=>(0,r.SN)("/api/dashboard/v4/users/enable_trial")},16738:(Qn,qe,s)=>{"use strict";s.d(qe,{D:()=>N});var r=s(38502),I=s(72214);const J={light:"plain",grey:"core",dark:"core"},N=r.createContext("light"),T=te=>{class q extends PureComponent{render(){const{forwardedRef:B,...l}=this.props;return _jsx(N.Consumer,{children:U=>React.createElement(te,{ref:B,theme:J[U],...l})})}}return _defineProperty(q,"propTypes",{forwardedRef:PropTypes.object}),React.forwardRef((ne,B)=>_jsx(q,{...ne,forwardedRef:B}))}},16810:(Qn,qe,s)=>{"use strict";s.d(qe,{A:()=>sn});var r=s(18381),I=s(16454),J=s(95549),N=s(38502),T=s(53732),te=s.n(T),q=s(15974),ne=s(13696),B=s(601),l=s(46147),U=s(67787);const C=U.Ay.div.withConfig({displayName:"styles__StyledMainContent",componentId:"sc-yjqvb1-0"})(["flex:1;position:relative;width:100%;height:100%;pointer-events:none;"]);var M=s(72214);class w extends N.PureComponent{constructor(){super(...arguments),(0,J.A)(this,"handleResize",()=>{const Pt=document.querySelector("#preview_scrollBar_viewport");if(!Pt)return;const{width:dt,height:Vn,left:o,top:Gn}=Pt.getBoundingClientRect();this.props.dispatch({type:"preview:scrollbar:viewport",payload:{width:dt,height:Vn,left:o,top:Gn}})})}componentDidMount(){this.handleResize()}render(){return(0,M.jsx)(C,{id:"preview_scrollBar_viewport",children:(0,M.jsx)(l.A,{onResize:this.handleResize})})}}var y=s(16976),j=s(78795),Q=s(509),ze=s(9135),me=s(14794),Se=s(29372),Me=s(12211),De=s(69623),tt=s(39e3),at=s(3289),ht=s(20640);const Je=U.Ay.div.withConfig({displayName:"styles__StyledSharingManager",componentId:"sc-2qoxmh-0"})(["min-width:376px;background:",";color:",";position:absolute;transform:",";top:48px;border-radius:8px;border:1px solid ",";box-shadow:",";overflow:hidden;cursor:auto;z-index:100;&.isNotLogined{right:-88px;}"],It=>It.theme.color_bg_white,It=>It.theme.color_text_L2,It=>It.isLogined?"translateX(-80%)":"translateX(-48%)",It=>It.theme.color_bg_border_02,It=>It.theme.shadow_5),$=(0,Me.Mz)([I.O4,I.H5,I.HW,I.wA,I.UB],(It,Pt,dt,Vn,o)=>({theme:It,isShowSharingManager:Pt,currentUser:dt,currentOrg:Vn,currentProjectShare:o}));function mt(){var It;const{theme:Pt,isShowSharingManager:dt,currentUser:Vn,currentProjectShare:o,currentOrg:Gn}=(0,r.d4)(Un=>$(Un)),xt=!!((It=MB.user)!=null&&It.id),Ot=MB.currentProject,wt=(0,r.wA)(),[Kt,fe]=(0,N.useState)(void 0),bt=Un=>{const Jn=document.elementFromPoint(Un.clientX,Un.clientY),Yt=document.querySelector("#preview-sharing-box"),rt=Un.target.closest("#preview-sharing-box");document.querySelector("#IBOT_MODAL_ROOT").contains(Jn)||rt!==null||Yt.contains(Jn)||Un.target.closest(".context-menu-mask")!==null||Un.target.closest(".sharing--drop-canvas-list")!==null||Un.target.closest(".dropmenu-no-exit")!==null||wt({type:"entry:preview:toggle:sharingManager"})},{screenDataMap:un,screenTreeData:gt}=(0,ht.tb)(),Wt={pageAttrMap:un,pageKeyList:Object.keys(un),treeData:gt};return(0,N.useEffect)(()=>{dt&&fe(document.getElementById("preview-sharing-box"))},[dt,Kt]),!Kt||!dt?null:(0,De.createPortal)((0,M.jsxs)(Je,{id:"app-sharing",isLogined:xt,className:te()({isNotLogined:!xt}),children:[(0,M.jsx)(at.n,{theme:Pt,user:Vn,project:Ot,hostType:"proto",org:Gn,screenMetaList:Wt,hostSharingData:o}),(0,M.jsx)(tt.A,{target:document,onClick:(0,tt.t)(bt,{capture:!0})})]}),Kt)}var yt=s(71123),Le=s(88849),He=s(93413),ye=s(88856),je=s(58053),ot=s(3149),we=s(12583),$e=s(81122),ge=s(33236),Ze=s(15305),W=s(24492);const an=U.Ay.div.withConfig({displayName:"styles__StyledApp",componentId:"sc-17zn461-0"})(["",";&{width:100%;height:100%;display:flex;flex-direction:column;background:",";a{&.link-highlight,.link-highlight{background:#BAD7FB;}}.svg-icon{",";}.preview-content-container{position:relative;flex:1;display:flex;overflow:hidden;.center-main{position:relative;flex:1;.preview-footer-toolbar{bottom:0;opacity:1;transition:all 0.3s ease-in-out;&.hidden{opacity:0;}}}}&.full-screen{#preview_scrollBar_viewport{transition:opacity 0.5s ease-in-out;}}.download-client-tip{display:flex;justify-content:space-around;align-items:center;position:absolute;left:50%;bottom:26px;transform:translate(-50%);padding:0 12px 0 10px;height:34px;border-radius:22px;background:#fff;box-shadow:0 -2px 30px 0 rgba(39,54,78,0.11);.download-text{color:#415058;margin:0 10px;}span{color:#415058;a{color:",";}}.download-client-tip-icon{font-size:22px;color:",";}.download-client-close-icon{cursor:pointer;color:#c8cdd0;&:hover{color:#8d9ea7;}}}.marign-top-20{margin-top:20px;}&.is-offline-mode{.screen-actions .viewmode,.download-client-tip{display:none;}.event-gift{display:none;}.preview-sub-toolbar{.mode{min-width:initial;.picker{display:none;}}.param{margin-left:0;}}}&.is-uichina{header{background:transparent;.toolbar-main{order:1;flex:unset;flex-basis:240px;.toolbar-main-wrapper{display:none;flex:unset;}}.toolbar-left{flex:1;order:2;justify-content:center;.project-name{text-align:center;margin-left:0;}}.toolbar-right{order:3;}}}@media only screen and (max-width:985px){&.is-uichina{header{.toolbar-main{flex-basis:140px;padding:0;}}}}}"],W.c,It=>It.theme.color_bg_canvas,Ze.T,It=>It.theme.color_primary_brand01,It=>It.theme.color_polyline_normal),_t=(0,U.DU)([".context-menu-mask{z-index:1000;}"]);var nn=s(34860);class Oe extends N.PureComponent{constructor(){super(...arguments),(0,J.A)(this,"abarHandleOnMessage",Pt=>{(0,$e.cS)(Pt,this.props.dispatch)}),(0,J.A)(this,"handleFullScreenChange",()=>{if(je.A.isFullscreen){(0,nn.oK)()&&setTimeout(()=>MB.commonGuideHelper.tryToShowGuide(He.c.INTER_SWITCHABLE_VIEW_MODE_PV_TOGGLE_PANE_BTN),1e3);return}this.props.dispatch({type:"entry:exit:fill-screen-mode"}),this.props.dispatch({type:"entry:preview-setting:restore:leftrightpane"}),MB.commonGuideHelper.closeGuide(He.c.INTER_SWITCHABLE_VIEW_MODE_PV_TOGGLE_PANE_BTN),MB.commonGuideHelper.markGuideAsRead(He.c.INTER_SWITCHABLE_VIEW_MODE_PV_TOGGLE_PANE_BTN)})}componentDidMount(){je.A.on("change",this.handleFullScreenChange),(0,$e.BG)()&&(0,$e.sg)("currentTheme",{theme:this.props.theme}),(0,$e.BG)()&&window.addEventListener("message",this.abarHandleOnMessage,!1)}componentWillUnmount(){je.A.off("change",this.handleFullScreenChange),(0,$e.BG)()&&window.removeEventListener("message",this.abarHandleOnMessage,!1)}preventDefault(Pt){Pt.preventDefault()}render(){var Pt;const{previewOptions:dt,previewSetting:Vn,user:o,onCloseModal:Gn,isHiddenToolBar:xt,isPanelPreviewMode:Ot,isQuickPreview:wt,onLunch:Kt,dispatch:fe}=this.props,{isMobile:bt,isEmbedV1:un,isHTMLZip:gt,isUIChina:Wt,isForum:Un}=dt;if(bt||un){const{appVersion:vn}=Vn,Dt=!!vn;return(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)(yt.A,{}),Dt&&(0,M.jsx)(j.A,{}),(0,M.jsx)(Q.A,{}),(0,M.jsx)(ye.Ay,{})]})}const{isFullScreenMode:Jn}=Vn,Yt=!Ot&&!wt,rt=!Ot&&!wt,An=!Ot&&!wt,Nt=te()("preview-app",{"is-offline-mode":gt,"is-uichina":Wt||Un,"full-screen":Jn}),jt=!Ot&&!wt&&!ENV.IS_ON_PREMISES&&!gt&&!(o!=null&&o.id||(Pt=MB)!=null&&(Pt=Pt.user)!=null&&Pt.id);return(0,M.jsxs)(an,{className:Nt,onContextMenu:this.preventDefault,children:[An&&(0,M.jsx)(we.Ad,{sheet:ot.t,viewMode:"device"}),(0,M.jsx)(ze.A,{onCloseModal:Gn,onLunch:Kt}),(0,M.jsxs)("div",{id:"preview-content-container",className:"preview-content-container",children:[rt&&(0,M.jsx)(ne.A,{}),(0,M.jsxs)("div",{className:"center-main",children:[(0,M.jsx)(y.A,{}),!wt&&!Ot&&(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)(w,{dispatch:fe}),(0,M.jsx)("div",{onMouseEnter:()=>fe({type:"entry:preview:toggle:isHiddenToolBar",payload:{value:!1}}),onMouseLeave:()=>fe({type:"entry:preview:toggle:isHiddenToolBar",payload:{value:!0,isSetTimeout:!0}}),className:te()("preview-footer-toolbar",{hidden:xt}),children:(0,M.jsx)(Le.A,{})})]})]}),Yt&&(0,M.jsx)(B.A,{}),(0,M.jsx)(Se.d,{})]}),(0,M.jsxs)("div",{className:"fixed_area",children:[jt&&(0,M.jsx)(me.v,{}),(0,M.jsx)(mt,{}),(0,M.jsx)(q.A,{}),!Ot&&(0,M.jsx)(ye.Ay,{})]}),(0,M.jsx)(Q.A,{}),!Ot&&!wt&&(0,M.jsx)(ge.r,{}),(0,M.jsx)(_t,{})]})}}const sn=(0,r.Ng)(It=>{const Pt=(0,I.ZR)(It),dt=(0,I.bF)(It),Vn=(0,I.Br)(It),o=(0,I.HW)(It),Gn=(0,I.m5)(It),xt=(0,I.KR)(It),Ot=(0,I.k6)(It);return{user:o,mode:Vn,theme:Gn,previewOptions:dt,previewSetting:Pt,isHiddenToolBar:(0,I.kM)(It),isPanelPreviewMode:xt,isQuickPreview:Ot}})(Oe)},16958:(Qn,qe,s)=>{"use strict";s.d(qe,{H0:()=>I,Jj:()=>N,PE:()=>J});var r=s(67787);const I=(0,r.AH)(["&.mac{&.ios{font-family:-apple-system,BlinkMacSystemFont,'Helvetica Neue',Arial,'Pingfang SC','Microsoft Yahei','WenQuanYi Micro Hei',sans-serif;}&.android{font-family:Roboto,Arial,'Noto Sans CJK SC','Noto Sans CJK TC','Pingfang SC','Microsoft Yahei','WenQuanYi Micro Hei',sans-serif;}&.others{font-family:Roboto,-apple-system,BlinkMacSystemFont,'Helvetica Neue',Arial,'Pingfang SC','Microsoft Yahei','WenQuanYi Micro Hei',sans-serif;}}"]),J=(0,r.AH)(["&.windows,&.other-os{&.ios{font-family:BlinkMacSystemFont,'Helvetica Neue',Arial,'Microsoft Yahei','WenQuanYi Micro Hei','Pingfang SC',sans-serif;}&.android{font-family:Roboto,Arial,'Noto Sans CJK SC','Noto Sans CJK TC','Microsoft Yahei','WenQuanYi Micro Hei','Pingfang SC',sans-serif;}&.others{font-family:Roboto,BlinkMacSystemFont,'Helvetica Neue',Arial,'Microsoft Yahei','WenQuanYi Micro Hei','Pingfang SC',sans-serif;}}"]),N=(0,r.AH)(["&.mb-screen{color:#5b6b73;&.others{input,textarea{cursor:text;&[type='radio'],&[type='checkbox']{cursor:pointer;}}}"," ","}"],I,J)},16976:(Qn,qe,s)=>{"use strict";s.d(qe,{A:()=>Kt});var r=s(18381),I=s(12211),J=s(16454),N=s(96986),T=s(4410),te=s(61565),q=s(95549),ne=s(38502),B=s(53732),l=s.n(B),U=s(39e3),C=s(68818),M=s(42715),w=s(67787);const y=w.Ay.div.withConfig({displayName:"styles__StyledShell",componentId:"sc-1kdv61o-0"})(["position:absolute;pointer-events:none;background-size:cover;z-index:4;"]);var j=s(72214);class Q extends ne.PureComponent{render(){const{page:bt}=this.props,un=(0,M.MR)(bt.device);if(!un)return null;const{shellStyle:gt,topOffset:Wt,leftOffset:Un,imageUrl:Jn}=(0,M.eC)(un,(bt==null?void 0:bt.orientation)==="landscape"),Yt="url("+((0,C.FM)()?".":"")+Jn;return(0,j.jsx)(y,{className:"shell",id:"simulator-shell",style:{...gt,top:-Wt,left:-Un,backgroundImage:Yt}})}}var ze=s(71123),me=s(42520);const Se=(0,ne.memo)(fe=>{let{previewCommentCacheTag:bt,...un}=fe;return(0,j.jsx)(me.A,{mode:"preview",...un},bt)}),Me=(0,I.Mz)([J.X_,J.ER,N.Cb,N.YW,N.uX,N.QV,N.Ou,N.fd,N.RF,N.Li,N.V8,N.VT,J.mf,J.wA,J.O4,N.sT],(fe,bt,un,gt,Wt,Un,Jn,Yt,rt,An,Nt,jt,vn,Dt,$t,kn)=>{let{runnerCacheTag:Kn}=vn;return{viewport:{offset:bt,scale:fe},activeCommentCid:un,wigglingCommentCid:gt,editorRawContentObject:Wt,commentIsEditing:Un,editingRecordCid:Jn,isCommentDragging:Yt,emojiToastStyle:rt,atStyle:An,creatingComment:Nt,commentList:jt,viewType:new URLSearchParams(location.search).get("view_mode"),runnerCacheTag:Kn,currentOrg:Dt,theme:$t,previewCommentCacheTag:kn}}),De=(0,r.Ng)(fe=>Me(fe))(Se);var tt=s(73658),at=s(1072),ht=s(70248);const Je=fe=>{let{scrollTop:bt,scale:un,activePageKey:gt,activeCanvasKey:Wt,STMode:Un,scrollLeft:Jn,tearStickyCacheTag:Yt,basketCanvasMap:rt,screenScrollTopMap:An,screenScrollLeftMap:Nt,offset:jt,dispatch:vn}=fe;const[Dt,$t]=(0,ne.useState)([]),[kn,Kn]=(0,ne.useState)([]),[dn,ft]=(0,ne.useState)(new Map);(0,ne.useEffect)(()=>{if(!Un||!gt||!Wt)return;const Yn=(0,tt.GG)(gt,Wt);$t(Yn)},[Un,gt,Wt,Yt]),(0,ne.useEffect)(()=>{if(!Un||!gt||!Wt||!rt)return;const{basketSTList:Yn,STBasketMap:on}=(0,tt.ej)(Wt,rt);Kn(Yn),ft(on)},[Un,Wt,gt,rt,Yt]);const{basketScrollTopMap:Lt,basketScrollLeftMap:bn}=(0,ne.useMemo)(()=>{const Yn={},on={};return rt&&[...rt.keys()].forEach(yn=>{let lo=yn;(0,ht.OO)(yn)&&(lo=(0,ht.QL)(yn).at(-1));const{activeCanvas:qn}=rt.get(yn)||{};lo&&qn&&(Yn[lo]=-An[qn]||0,on[lo]=-Nt[qn]||0)}),{basketScrollTopMap:Yn,basketScrollLeftMap:on}},[rt,An]);return!Un||!gt||!Wt?null:(0,j.jsx)(at.A,{activeKey:gt,pageKey:Wt,stList:Dt,basketSTList:kn,STBasketMap:dn,scrollTop:bt,scrollLeft:Jn,scale:un,dispatch:vn,tearStickyCacheTag:Yt,basketScrollTopMap:Lt,basketScrollLeftMap:bn,offset:jt},gt)},$=fe=>{var bt,un;const{activePageKey:gt,activeCanvasKey:Wt,screenScrollTopMap:Un={},screenScrollLeftMap:Jn={},tearStickyCacheTag:Yt,basketCanvasMap:rt,overlayStack:An}=(0,J.mf)(fe),Nt=(0,J.X_)(fe),jt=(0,te.Lc)(fe),vn=(0,J.A3)(fe),Dt=An==null?void 0:An[An.length-1],$t=Dt?{activePageKey:Dt.targetRBPageKey,activeCanvasKey:Dt.targetOverlayKey,scrollTop:Dt.overlayRelativePosY,scrollLeft:Dt.overlayRelativePosX}:{activePageKey:gt,activeCanvasKey:Wt,scrollTop:(bt=Un[Wt])!=null?bt:0,scrollLeft:(un=Jn[Wt])!=null?un:0};return{scale:Nt,STMode:jt,tearStickyCacheTag:Yt,basketCanvasMap:rt,screenScrollTopMap:Un,screenScrollLeftMap:Jn,offset:vn,...$t}},mt=(0,r.Ng)($)(Je);var yt=s(6991);const Le=fe=>{const{show:bt,activeTear:un,STMode:gt,activePageKey:Wt,activeCanvasKey:Un,basketCanvasMap:Jn,tearStickyCacheTag:Yt,screenScrollTopMap:rt,screenScrollLeftMap:An,...Nt}=fe,[jt,vn]=(0,ne.useState)(new Map);(0,ne.useEffect)(()=>{if(!gt||!Wt||!Un||!Jn)return;const{STBasketMap:kn}=(0,tt.ej)(Un,Jn);vn(kn)},[gt,Un,Wt,Jn,Yt]);const{basketScrollTopMap:Dt,basketScrollLeftMap:$t}=(0,ne.useMemo)(()=>{const kn={},Kn={};return Jn&&[...Jn.keys()].forEach(dn=>{let ft=dn;(0,ht.OO)(dn)&&(ft=(0,ht.QL)(dn).at(-1));const{activeCanvas:Lt}=Jn.get(dn)||{};ft&&Lt&&(kn[ft]=-(rt==null?void 0:rt[Lt])||0,Kn[ft]=-(An==null?void 0:An[Lt])||0)}),{basketScrollTopMap:kn,basketScrollLeftMap:Kn}},[Jn,rt]);return!bt||!un?null:(0,j.jsx)(yt.s,{mode:"preview",activeTear:un,STBasketMap:jt,activePageKey:Wt,activeCanvasKey:Un,basketScrollTopMap:Dt,basketScrollLeftMap:$t,...Nt})},He=(0,I.Mz)([J.X_,te.nC,te.yc,J.mf,te.Lc],(fe,bt,un,gt,Wt)=>{let{activePageKey:Un,activeCanvasKey:Jn,screenScrollTopMap:Yt,screenScrollLeftMap:rt,basketCanvasMap:An,tearStickyCacheTag:Nt,overlayStack:jt}=gt;if(!bt)return{show:!1};const vn=jt[jt.length-1];return vn?{show:!0,activeTear:bt,scale:fe,isReadonly:!0,tearOffset:un,activePageKey:vn==null?void 0:vn.targetRBPageKey,activeCanvasKey:vn==null?void 0:vn.targetOverlayKey,scrollTop:vn==null?void 0:vn.overlayRelativePosY,scrollLeft:vn==null?void 0:vn.overlayRelativePosX,basketCanvasMap:An,screenScrollTopMap:Yt,screenScrollLeftMap:rt,STMode:Wt,tearStickyCacheTag:Nt}:{show:!0,activeTear:bt,scale:fe,isReadonly:!0,tearOffset:un,activePageKey:Un,activeCanvasKey:Jn,scrollTop:Yt[Jn],scrollLeft:rt[Jn],basketCanvasMap:An,screenScrollTopMap:Yt,screenScrollLeftMap:rt,STMode:Wt,tearStickyCacheTag:Nt}}),ye=(0,r.Ng)(fe=>He(fe))(Le);var je=s(36449),ot=s(76805),we=s(31561),$e=s(85449),ge=s(63986),Ze=s.n(ge),W=s(20089),an=s(89989);const _t=fe=>{var bt,un,gt,Wt,Un;const Jn=(0,$e.ll)();if(!Jn)return;const Yt=sdkStore.getHotItem(fe[0]),rt=(0,J.Ur)(Jn),{activePageKey:An,activeCanvasKey:Nt}=(0,J.mf)(Jn),jt=(0,J.KR)(Jn),vn=(0,J.Mo)(Jn),Dt=(0,J.hM)(Jn),$t=(0,ht.OO)(Nt)?(0,ht.QL)(Nt).pop():Nt;if((Yt==null?void 0:Yt.hotAttr.type)==="rResBunch"&&(Yt==null?void 0:Yt.hotAttr.bunch)===W.x.RbPage){const ao=Jn.container.current.screenDataMap[fe[0]];if(!ao)MB.webpackInterface.store.dispatch({type:"entry:update:preview:screenTreeData"}),!An&&Dt&&MB.webpackInterface.store.dispatch({type:"entry:preview:reload:screen"});else if(sdkStore.isTrashed(fe[0]))MB.webpackInterface.store.dispatch({type:"entry:update:preview:screenTreeData"}),MB.webpackInterface.store.dispatch({type:"entry:preview:reload:screen"});else if(Yt){if(!Ze()(Yt==null?void 0:Yt.hotAttr,ao==null?void 0:ao.hotAttr)){var kn,Kn,dn,ft;if(((ao==null||(kn=ao.hotAttr)==null?void 0:kn.name)!==(Yt==null||(Kn=Yt.hotAttr)==null?void 0:Kn.name)||(ao==null||(dn=ao.hotAttr)==null?void 0:dn.zIndex)!==(Yt==null||(ft=Yt.hotAttr)==null?void 0:ft.zIndex))&&MB.webpackInterface.store.dispatch({type:"entry:update:preview:screenTreeData"}),(rt==null?void 0:rt.cid)===fe[0]){var Lt,bn,Yn,on,yn,lo,qn,Wn,Nn,xn,Ye,wn,Hn,zn,ko,On;if((ao==null||(Lt=ao.hotAttr)==null?void 0:Lt.deviceOrientation)!==(Yt==null||(bn=Yt.hotAttr)==null?void 0:bn.deviceOrientation)||(ao==null||(Yn=ao.hotAttr)==null?void 0:Yn.device)!==(Yt==null||(on=Yt.hotAttr)==null?void 0:on.device)||(ao==null||(yn=ao.hotAttr)==null?void 0:yn.deviceW)!==(Yt==null||(lo=Yt.hotAttr)==null?void 0:lo.deviceW)||(ao==null||(qn=ao.hotAttr)==null?void 0:qn.deviceH)!==(Yt==null||(Wn=Yt.hotAttr)==null?void 0:Wn.deviceH)||(ao==null||(Nn=ao.hotAttr)==null?void 0:Nn.deviceScroll)!==(Yt==null||(xn=Yt.hotAttr)==null?void 0:xn.deviceScroll)||jt&&((ao==null||(Ye=ao.hotAttr)==null?void 0:Ye.scroll)!==(Yt==null||(wn=Yt.hotAttr)==null?void 0:wn.scroll)||(ao==null||(Hn=ao.hotAttr)==null?void 0:Hn.w)!==(Yt==null||(zn=Yt.hotAttr)==null?void 0:zn.w)||(ao==null||(ko=ao.hotAttr)==null?void 0:ko.h)!==(Yt==null||(On=Yt.hotAttr)==null?void 0:On.h))){var Mo,jn,xo,jo,Qo,cn,In,tn,Jt,Ln,Xn,Dn;MB.webpackInterface.store.dispatch({type:"entry:preview:reload"}),((ao==null||(Mo=ao.hotAttr)==null?void 0:Mo.deviceOrientation)!==(Yt==null||(jn=Yt.hotAttr)==null?void 0:jn.deviceOrientation)||(ao==null||(xo=ao.hotAttr)==null?void 0:xo.device)!==(Yt==null||(jo=Yt.hotAttr)==null?void 0:jo.device)||(ao==null||(Qo=ao.hotAttr)==null?void 0:Qo.deviceW)!==(Yt==null||(cn=Yt.hotAttr)==null?void 0:cn.deviceW)||(ao==null||(In=ao.hotAttr)==null?void 0:In.deviceH)!==(Yt==null||(tn=Yt.hotAttr)==null?void 0:tn.deviceH)||(ao==null||(Jt=ao.hotAttr)==null?void 0:Jt.w)!==(Yt==null||(Ln=Yt.hotAttr)==null?void 0:Ln.w)||(ao==null||(Xn=ao.hotAttr)==null?void 0:Xn.h)!==(Yt==null||(Dn=Yt.hotAttr)==null?void 0:Dn.h))&&(MB.webpackInterface.store.dispatch({type:"entry:preview:zoom-quick-preview"}),MB.webpackInterface.store.dispatch({type:"entry:runner:re:pos:overlay"}))}}}(rt==null?void 0:rt.cid)===fe[0]&&MB.webpackInterface.store.dispatch({type:"entry:update:preview:data"})}}else if((Yt==null||(bt=Yt.hotAttr)==null?void 0:bt.type)===W.x.Canvas){const ao=Jn.container.current.folderTreeData.widgetStore.getNode(fe[0]);if(!ao)Yt.sup===rt.cid&&($t?MB.webpackInterface.store.dispatch({type:"entry:update:preview:data"}):MB.webpackInterface.store.dispatch({type:"entry:preview:reload:screen"}));else if(ao.sup===rt.cid){if(sdkStore.isTrashed(fe[0]))$t===fe[0]?MB.webpackInterface.store.dispatch({type:"entry:preview:reload:screen"}):(MB.webpackInterface.store.dispatch({type:"entry:update:preview:data"}),ao.hotAttr.asOverlay&&MB.webpackInterface.store.dispatch({type:"entry:runner:reset:overlay:stack",payload:{targetOverlayKey:fe[0]}}));else if(!Ze()(Yt==null?void 0:Yt.hotAttr,ao==null?void 0:ao.hotAttr)){var go,Uo,Ho,ua,la;if(((ao==null||(go=ao.hotAttr)==null?void 0:go.name)!==(Yt==null||(Uo=Yt.hotAttr)==null?void 0:Uo.name)||(ao==null||(Ho=ao.hotAttr)==null?void 0:Ho.order)!==(Yt==null||(ua=Yt.hotAttr)==null?void 0:ua.order))&&MB.webpackInterface.store.dispatch({type:"entry:update:preview:data"}),ao!=null&&(la=ao.hotAttr)!=null&&la.asOverlay){var To;if(!(Yt!=null&&(To=Yt.hotAttr)!=null&&To.isVisible))MB.webpackInterface.store.dispatch({type:"entry:runner:reset:overlay:stack",payload:{targetOverlayKey:fe[0]}});else{var Ia,ya,eo,Oo;((ao==null||(Ia=ao.hotAttr)==null?void 0:Ia.w)!==(Yt==null||(ya=Yt.hotAttr)==null?void 0:ya.w)||(ao==null||(eo=ao.hotAttr)==null?void 0:eo.h)!==(Yt==null||(Oo=Yt.hotAttr)==null?void 0:Oo.h))&&MB.webpackInterface.store.dispatch({type:"entry:runner:re:pos:overlay",payload:{targetOverlayKey:fe[0]}})}}if($t===fe[0]){var so,to,Vo,ta,Qa,qr,kr,ur,Mr,gr,dr,wi,gi,Li,Ni,Ai;if(!Ze()(ao==null||(so=ao.hotAttr)==null?void 0:so.fill,Yt==null||(to=Yt.hotAttr)==null?void 0:to.fill)||(ao==null||(Vo=ao.hotAttr)==null?void 0:Vo.orientation)!==(Yt==null||(ta=Yt.hotAttr)==null?void 0:ta.orientation)||(ao==null||(Qa=ao.hotAttr)==null?void 0:Qa.w)!==(Yt==null||(qr=Yt.hotAttr)==null?void 0:qr.w)||(ao==null||(kr=ao.hotAttr)==null?void 0:kr.h)!==(Yt==null||(ur=Yt.hotAttr)==null?void 0:ur.h)||(ao==null||(Mr=ao.hotAttr)==null?void 0:Mr.stickyHeaderHeight)!==(Yt==null||(gr=Yt.hotAttr)==null?void 0:gr.stickyHeaderHeight)||(ao==null||(dr=ao.hotAttr)==null?void 0:dr.stickyFooterHeight)!==(Yt==null||(wi=Yt.hotAttr)==null?void 0:wi.stickyFooterHeight)||jt&&((ao==null||(gi=ao.hotAttr)==null?void 0:gi.x)!==(Yt==null||(Li=Yt.hotAttr)==null?void 0:Li.x)||(ao==null||(Ni=ao.hotAttr)==null?void 0:Ni.y)!==(Yt==null||(Ai=Yt.hotAttr)==null?void 0:Ai.y))){var Bi,Ss,qi,Ga,ai,kt;MB.webpackInterface.store.dispatch({type:"entry:update:preview:data"}),MB.webpackInterface.store.dispatch({type:"runner:update:state",payload:{runnerCacheTag:Math.random()}}),rt.device==="none"&&((ao==null||(Bi=ao.hotAttr)==null?void 0:Bi.orientation)!==(Yt==null||(Ss=Yt.hotAttr)==null?void 0:Ss.orientation)||(ao==null||(qi=ao.hotAttr)==null?void 0:qi.w)!==(Yt==null||(Ga=Yt.hotAttr)==null?void 0:Ga.w)||(ao==null||(ai=ao.hotAttr)==null?void 0:ai.h)!==(Yt==null||(kt=Yt.hotAttr)==null?void 0:kt.h))&&(MB.webpackInterface.store.dispatch({type:"entry:preview:zoom-quick-preview"}),MB.webpackInterface.store.dispatch({type:"entry:runner:re:pos:overlay"}))}}}}}else(0,tt.yT)(Yt==null||(un=Yt.hotAttr)==null?void 0:un.type)?MB.webpackInterface.store.dispatch({type:"runner:update:state",payload:{tearStickyCacheTag:Math.random()}}):(Yt==null||(gt=Yt.hotAttr)==null?void 0:gt.type)===W.x.WAudio?(MB.webpackInterface.store.dispatch({type:"entry:runner:cleanup:audio"}),MB.webpackInterface.store.dispatch({type:"runner:update:state",payload:{audioList:[]}}),MB.webpackInterface.store.dispatch({type:"runner:update:state",payload:{runnerCacheTag:Math.random()}})):(Yt==null||(Wt=Yt.hotAttr)==null?void 0:Wt.type)===W.x.WVideo?(MB.webpackInterface.store.dispatch({type:"runner:update:state",payload:{videoList:[]}}),MB.webpackInterface.store.dispatch({type:"runner:update:state",payload:{runnerCacheTag:Math.random()}})):(Yt==null||(Un=Yt.hotAttr)==null?void 0:Un.type)===W.x.WBasket&&jt&&((0,ht.OO)(vn)?(0,ht.QL)(vn).pop():vn)===fe[0]&&(MB.webpackInterface.store.dispatch({type:"entry:preview:zoom-quick-preview"}),MB.webpackInterface.store.dispatch({type:"runner:update:state",payload:{runnerCacheTag:Math.random()}}));MB.webpackInterface.store.dispatch({type:"entry:runner:update:overlay:stack",payload:{keyItemUpdated:fe[0]}});let Qt=!1,oo=!1;if(fe.forEach(ao=>{const fa=sdkStore.getHotItem(ao);(0,tt.yT)(fa==null?void 0:fa.hotAttr.type)?Qt=!0:(fa==null?void 0:fa.hotAttr.type)===W.x.WBasket&&(oo=!0)}),Qt&&MB.webpackInterface.store.dispatch({type:"runner:update:state",payload:{tearStickyCacheTag:Math.random()}}),oo){const ao=Dt?An:Nt;ao&&MB.webpackInterface.store.dispatch({type:"entry:runner:update:basket:status:under",payload:{key:ao}}),MB.webpackInterface.store.dispatch({type:"entry:runner:update:basket:status:in:overlay"})}},nn=fe=>{_t(fe)},Oe={repaint:fe=>{let{type:bt,payload:un}=fe;bt===we.a&&nn(un.changedKeyList)}},sn=(0,ot.nF)(()=>{const fe=(0,$e.ll)();!fe||!(0,N.sI)(fe)||MB.webpackInterface.store.dispatch({type:"comment:update:state",payload:{previewCommentCacheTag:Math.random()}})},.5*1e3),It={repaint:fe=>{let{type:bt,payload:un}=fe;bt===an.a&&sn()}},Pt=(0,I.Mz)([J.bF,N.sI],(fe,bt)=>{let{isHTMLZip:un,isSquare:gt}=fe;return{isHTMLZip:un,isSquare:gt,isInCommentMode:bt}}),dt=(0,ne.memo)(fe=>{let{isHTMLZip:bt,isSquare:un,isInCommentMode:gt}=fe;const Wt=Un=>{It.repaint(Un)};return(0,ne.useEffect)(()=>{if(!(un||bt))return gt&&rootSdk.cmtStore.subscribe(Wt),()=>{gt&&rootSdk.cmtStore.unsubscribe(Wt)}},[bt,un,gt]),null}),Vn=(0,r.Ng)(Pt)(dt);var o=s(55804),Gn=s(69594);const xt=(0,w.Ay)(o.A).withConfig({displayName:"styles__StyledSimulatorContainer",componentId:"sc-19u8nby-0"})(["transition:right 0.5s ease-in-out;z-index:0;position:absolute;top:0;left:0;right:0;bottom:0;display:flex;justify-content:center;align-items:center;overflow:hidden;&.wait-create-comment{.zoom-area .screen-content{cursor:",";*{pointer-events:none !important;}}}&.is-dragging{cursor:grabbing;}&.is-try-drag{cursor:grab;}.screen-viewport{position:relative;.zoom-area{position:absolute;width:100%;height:100%;}.no-zoom-area{position:absolute;}}"],Gn.M.comment);class Ot extends ne.PureComponent{constructor(){super(...arguments),(0,q.A)(this,"state",{isCmdDown:!1,multiple:1,isDragging:!1}),(0,q.A)(this,"handleScaleAndOffsetChange",(bt,un,gt)=>{const{dispatch:Wt,scale:Un}=this.props;gt-Un>=0?(Wt({type:"entry:preview:set:scale",payload:{scale:gt}}),gt<=400&&gt>=20&&this.handleOffSet({x:bt,y:un})):(Wt({type:"entry:preview:set:scale",payload:{scale:gt}}),gt<=400&&gt>=20&&Wt({type:"entry:preview:zoom-out:center-position",payload:{nextScale:gt,oldScale:Un}}))}),(0,q.A)(this,"handleOffsetChange",(bt,un)=>{this.handleOffSet({x:bt,y:un})}),(0,q.A)(this,"handleKeyDown",bt=>{var un,gt,Wt,Un,Jn,Yt;const{dispatch:rt,isInCommentMode:An}=this.props,Nt=((un=(gt=bt.target).matches)==null?void 0:un.call(gt,"input"))||((Wt=(Un=bt.target).matches)==null?void 0:Wt.call(Un,"textarea"))||((Jn=(Yt=bt.target).matches)==null?void 0:Jn.call(Yt,"[contenteditable]:focus"))||bt.target.ariaLabel==="rdw-editor";bt.keyCode===32&&(Nt||(bt.preventDefault(),rt({type:"preview:set:key:flags",payload:{isSpaceDown:!0}}))),bt.keyCode===16&&!Nt&&(bt.preventDefault(),rt({type:"preview:set:key:flags",payload:{isShiftDown:!0}})),bt.keyCode===27&&!Nt&&(bt.preventDefault(),An&&rt({type:"entry:comment:create:esc"})),(bt.keyCode===8||bt.keyCode===46)&&!Nt&&(bt.preventDefault(),An&&rt({type:"enter:comment:shortcut:del"})),(bt.keyCode===91||bt.keyCode===93||bt.keyCode===224)&&this.setState({isCmdDown:!0})}),(0,q.A)(this,"handleKeyUp",bt=>{this.props.dispatch({type:"preview:reset:key:flags"}),(bt.keyCode===91||bt.keyCode===93||bt.keyCode===224)&&this.setState({isCmdDown:!1})}),(0,q.A)(this,"handleOffSet",bt=>{const{STRenderArea:un,scale:gt,dispatch:Wt,offset:Un,STMode:Jn,isInCommentMode:Yt,leftPaneWidth:rt,isMinimized:An}=this.props,[Nt,jt]=un,vn=document.querySelector("#simulator-shell")?document.querySelector("#simulator-shell").getBoundingClientRect():document.querySelector("#simulator-container .zoom-area").getBoundingClientRect(),{top:Dt,bottom:$t,left:kn,right:Kn}=vn,{clientHeight:dn,clientWidth:ft}=document.body,Lt=kn-(An?0:rt),bn=ft-Kn-(Yt?240:0),Yn=Jn?Nt*gt/100:0,on=(Jn?jt*gt/100:0)+48,yn=bt.x-Un.x,lo=bt.y-Un.y;yn>0?Lt+yn<=Yn?Wt({type:"preview:set:canvas:offset:dev",payload:{offset:{x:bt.x}}}):Lt+yn>Yn&&Lt<Yn&&Wt({type:"preview:set:canvas:offset:dev",payload:{offset:{x:bt.x-(Lt+yn-Yn)}}}):yn<0&&(bn-yn<=Yn?Wt({type:"preview:set:canvas:offset:dev",payload:{offset:{x:bt.x}}}):bn-yn>Yn&&bn<Yn&&Wt({type:"preview:set:canvas:offset:dev",payload:{offset:{x:bt.x+(bn-yn-Yn)}}})),lo>0?Dt+lo<=on?Wt({type:"preview:set:canvas:offset:dev",payload:{offset:{y:bt.y}}}):Dt+lo>on&&Dt<on&&Wt({type:"preview:set:canvas:offset:dev",payload:{offset:{y:bt.y-(Dt+lo-on)}}}):lo<0&&(dn-$t-lo<=on?Wt({type:"preview:set:canvas:offset:dev",payload:{offset:{y:bt.y}}}):dn-$t-lo>on&&dn-$t<on&&Wt({type:"preview:set:canvas:offset:dev",payload:{offset:{y:bt.y+(dn-$t-lo-on)}}}))}),(0,q.A)(this,"handleMouseDown",bt=>{const{dispatch:un,isSpaceDown:gt}=this.props;if(bt.button===1||bt.button===0&&gt){this.setState({isDragging:!0});const Wt=bt.target.closest(".panel");if(Wt&&(Wt.offsetWidth<Wt.scrollWidth||Wt.offsetHeight<Wt.scrollHeight))return;this.initDraggingCanvas(bt)}else un({type:"entry:comment:mousedown",payload:{event:bt}})}),(0,q.A)(this,"handleMouseMove",bt=>{const{isInCommentMode:un,dispatch:gt}=this.props,{isDragging:Wt}=this.state;un&&!Wt&&gt({type:"entry:comment:create:mousemove",payload:{event:bt}}),gt({type:je.k.EntryKey["entry:draft:screen:mousemove"],payload:{event:bt,from:"preview"}})}),(0,q.A)(this,"handleMouseUp",bt=>{const{isInCommentMode:un,dispatch:gt}=this.props,{isDragging:Wt}=this.state;un&&!Wt&&gt({type:"entry:comment:create:mouseup",payload:{event:bt}}),Wt&&this.setState({isDragging:!1})}),(0,q.A)(this,"handlePreventWheel",bt=>{var un,gt;return!!((un=bt.target)!=null&&(gt=un.closest)!=null&&gt.call(un,"#simulator #app"))})}componentDidUpdate(bt,un){const{dispatch:gt}=this.props;bt.runnerCacheTag!==this.props.runnerCacheTag&&gt({type:"entry:preview:set:shellContainer"})}initDraggingCanvas(bt){const un=bt.clientX,gt=bt.clientY,{offset:Wt}=this.props,{x:Un,y:Jn}=Wt,Yt=An=>{const Nt={x:Un+(An.clientX-un),y:Jn+(An.clientY-gt)};this.handleOffSet(Nt)},rt=An=>{document.removeEventListener("mousemove",Yt),document.removeEventListener("mouseup",rt)};document.addEventListener("mousemove",Yt),document.addEventListener("mouseup",rt)}render(){const{scale:bt,page:un,showShell:gt,isInCommentMode:Wt,offset:Un,isSpaceDown:Jn,isQuickPreview:Yt,isPanelPreviewMode:rt,isPreviewCombo:An}=this.props,{isDragging:Nt}=this.state,jt={transform:"scale("+bt/100+")"},vn={top:(100-bt)/2+"%",left:(100-bt)/2+"%"},{w:Dt,h:$t,orientation:kn}=un,Kn=kn==="landscape",[dn,ft]=Kn?[$t,Dt]:[Dt,$t],Lt={width:dn,height:ft,minWidth:dn,minHeight:ft,transform:"matrix(1, 0, 0, 1, "+Math.round(Un.x)+", "+Math.round(Un.y)+")"},bn=l()("simulator-container",{"wait-create-comment":Wt&&!Nt},{"is-dragging":Nt},{"is-try-drag":Jn&&!Nt}),Yn=!Yt&&!rt&&!An,on=gt&&Yn;return(0,j.jsxs)(xt,{x:Un.x,y:Un.y,scale:bt,id:"simulator-container",className:bn,isDisabled:!Yn,onScaleAndOffsetChange:this.handleScaleAndOffsetChange,onOffsetChange:this.handleOffsetChange,onMouseDown:this.handleMouseDown,onMouseUp:this.handleMouseUp,onMouseMove:this.handleMouseMove,preventWheelEvent:this.handlePreventWheel,children:[(0,j.jsxs)("div",{className:"screen-viewport",style:Lt,children:[(0,j.jsxs)("div",{className:"zoom-area",style:jt,children:[(0,j.jsx)(ze.A,{isShellShow:on}),on&&(0,j.jsx)(Q,{page:un}),Yn&&(0,j.jsx)(mt,{})]}),Yn&&(0,j.jsxs)("div",{className:"no-zoom-area",style:vn,children:[Wt&&(0,j.jsx)(De,{}),(0,j.jsx)(ye,{})]})]},"1"),(0,j.jsx)(Vn,{}),(0,j.jsx)(U.A,{target:document,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp})]})}}const wt=(0,I.Mz)([J.St,J.Kv,J.m5,J.KR,J.mf,J.Mh,J.ub,J.hM,N.sI,J.PN,J.A3,te.Lc,J.p$,J.E1,J.Pf,J._v,J.k6,J.Mo],(fe,bt,un,gt,Wt,Un,Jn,Yt,rt,An,Nt,jt,vn,Dt,$t,kn,Kn,dn)=>{var ft,Lt;let{activePageKey:bn,activeCanvasKey:Yn,activeWidgetKey:on,runnerCacheTag:yn}=Wt;const lo=sdkStore.getHotItem(bn);let qn={};if(gt){if(dn){const Ye=sdkStore.getHotItem(dn);Ye&&(qn={...Ye.hotAttr,orientation:"portrait"})}}else if(lo){const{hotAttr:{deviceW:Ye,deviceH:wn,deviceOrientation:Hn,device:zn}}=lo;if(qn={w:Ye,h:wn,orientation:Hn,device:zn},zn==="none"&&Yn){const ko=sdkStore.getHotItem(Yn);qn=zn==="none"?{...qn,w:ko==null?void 0:ko.hotAttr.w,h:ko==null?void 0:ko.hotAttr.h}:{...ko.hotAttr}}if(Jn||Yt){let{w:ko,h:On}=(0,T.lY)(lo,sdkStore,!0);if(on&&!sdkStore.isTrashed(on)){var Wn,Nn;const Mo=sdkStore.getHotItem(on);ko=Mo==null||(Wn=Mo.hotAttr)==null?void 0:Wn.w,On=Mo==null||(Nn=Mo.hotAttr)==null?void 0:Nn.h}qn={device:"customize",orientation:"portrait",w:ko,h:On}}}const xn=((ft=qn)==null?void 0:ft.device)&&!["customize","none"].includes((Lt=qn)==null?void 0:Lt.device);return{page:qn,scale:fe,isImmersive:bt,theme:un,showShell:Un&&!gt&&xn,runnerCacheTag:yn,isInCommentMode:rt,STRenderArea:An,offset:Nt,STMode:jt,isSpaceDown:vn,leftPaneWidth:Dt,isMinimized:$t,shellContainer:kn,isQuickPreview:Kn,isPanelPreviewMode:gt,isPreviewCombo:Yt}}),Kt=(0,r.Ng)(fe=>wt(fe))(Ot)},17730:function(){(function(Qn,qe){Qn.Shake=qe(Qn,Qn.document)})(typeof window<"u"?window:this,function(Qn,qe){"use strict";function s(r){if(this.hasDeviceMotion="ondevicemotion"in Qn,this.options={threshold:15,timeout:1e3},typeof r=="object")for(var I in r)r.hasOwnProperty(I)&&(this.options[I]=r[I]);if(this.lastTime=new Date,this.lastX=null,this.lastY=null,this.lastZ=null,typeof qe.CustomEvent=="function")this.event=new qe.CustomEvent("shake",{bubbles:!0,cancelable:!0});else if(typeof qe.createEvent=="function")this.event=qe.createEvent("Event"),this.event.initEvent("shake",!0,!0);else return!1}return s.prototype.reset=function(){this.lastTime=new Date,this.lastX=null,this.lastY=null,this.lastZ=null},s.prototype.start=function(){this.reset(),this.hasDeviceMotion&&Qn.addEventListener("devicemotion",this,!1)},s.prototype.stop=function(){this.hasDeviceMotion&&Qn.removeEventListener("devicemotion",this,!1),this.reset()},s.prototype.devicemotion=function(r){var I=r.accelerationIncludingGravity;if(I){var J,N,T=0,te=0,q=0;if(this.lastX===null&&this.lastY===null&&this.lastZ===null){this.lastX=I.x,this.lastY=I.y,this.lastZ=I.z;return}T=Math.abs(this.lastX-I.x),te=Math.abs(this.lastY-I.y),q=Math.abs(this.lastZ-I.z),(T>this.options.threshold&&te>this.options.threshold||T>this.options.threshold&&q>this.options.threshold||te>this.options.threshold&&q>this.options.threshold)&&(J=new Date,N=J.getTime()-this.lastTime.getTime(),N>this.options.timeout&&(Qn.dispatchEvent(this.event),this.lastTime=new Date)),this.lastX=I.x,this.lastY=I.y,this.lastZ=I.z}},s.prototype.handleEvent=function(r){if(typeof this[r.type]=="function")return this[r.type](r)},s})},18102:Qn=>{const qe=te=>({IMPORTANT:{className:"meta",begin:"!important"},HEXCOLOR:{className:"number",begin:"#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})"},ATTRIBUTE_SELECTOR_MODE:{className:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[te.APOS_STRING_MODE,te.QUOTE_STRING_MODE]}}),s=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],r=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"],I=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"],J=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],N=["align-content","align-items","align-self","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","auto","backface-visibility","background","background-attachment","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","clear","clip","clip-path","color","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","content","counter-increment","counter-reset","cursor","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-variant","font-variant-ligatures","font-variation-settings","font-weight","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inherit","initial","justify-content","left","letter-spacing","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marks","mask","max-height","max-width","min-height","min-width","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","perspective","perspective-origin","pointer-events","position","quotes","resize","right","src","tab-size","table-layout","text-align","text-align-last","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-indent","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","white-space","widows","width","word-break","word-spacing","word-wrap","z-index"].reverse();function T(te){const q=qe(te),ne="and or not only",B={className:"variable",begin:"\\$"+te.IDENT_RE},l=["charset","css","debug","extend","font-face","for","import","include","keyframes","media","mixin","page","warn","while"],U="(?=[.\\s\\n[:,(])";return{name:"Stylus",aliases:["styl"],case_insensitive:!1,keywords:"if else for in",illegal:"("+["\\?","(\\bReturn\\b)","(\\bEnd\\b)","(\\bend\\b)","(\\bdef\\b)",";","#\\s","\\*\\s","===\\s","\\|","%"].join("|")+")",contains:[te.QUOTE_STRING_MODE,te.APOS_STRING_MODE,te.C_LINE_COMMENT_MODE,te.C_BLOCK_COMMENT_MODE,q.HEXCOLOR,{begin:"\\.[a-zA-Z][a-zA-Z0-9_-]*"+U,className:"selector-class"},{begin:"#[a-zA-Z][a-zA-Z0-9_-]*"+U,className:"selector-id"},{begin:"\\b("+s.join("|")+")"+U,className:"selector-tag"},{className:"selector-pseudo",begin:"&?:("+I.join("|")+")"+U},{className:"selector-pseudo",begin:"&?::("+J.join("|")+")"+U},q.ATTRIBUTE_SELECTOR_MODE,{className:"keyword",begin:/@media/,starts:{end:/[{;}]/,keywords:{$pattern:/[a-z-]+/,keyword:ne,attribute:r.join(" ")},contains:[te.CSS_NUMBER_MODE]}},{className:"keyword",begin:"@((-(o|moz|ms|webkit)-)?("+l.join("|")+"))\\b"},B,te.CSS_NUMBER_MODE,{className:"function",begin:"^[a-zA-Z][a-zA-Z0-9_-]*\\(.*\\)",illegal:"[\\n]",returnBegin:!0,contains:[{className:"title",begin:"\\b[a-zA-Z][a-zA-Z0-9_-]*"},{className:"params",begin:/\(/,end:/\)/,contains:[q.HEXCOLOR,B,te.APOS_STRING_MODE,te.CSS_NUMBER_MODE,te.QUOTE_STRING_MODE]}]},{className:"attribute",begin:"\\b("+N.join("|")+")\\b",starts:{end:/;|$/,contains:[q.HEXCOLOR,B,te.APOS_STRING_MODE,te.QUOTE_STRING_MODE,te.CSS_NUMBER_MODE,te.C_BLOCK_COMMENT_MODE,q.IMPORTANT],illegal:/\./,relevance:0}}]}}Qn.exports=T},19167:(Qn,qe,s)=>{var r=s(46269),I=s(71882),J=s(92898),N=parseFloat,T=Math.min,te=Math.random;function q(ne,B,l){if(l&&typeof l!="boolean"&&I(ne,B,l)&&(B=l=void 0),l===void 0&&(typeof B=="boolean"?(l=B,B=void 0):typeof ne=="boolean"&&(l=ne,ne=void 0)),ne===void 0&&B===void 0?(ne=0,B=1):(ne=J(ne),B===void 0?(B=ne,ne=0):B=J(B)),ne>B){var U=ne;ne=B,B=U}if(l||ne%1||B%1){var C=te();return T(ne+C*(B-ne+N("1e-"+((C+"").length-1))),B)}return r(ne,B)}Qn.exports=q},19199:(Qn,qe,s)=>{"use strict";s.d(qe,{J7:()=>U,PF:()=>j,tt:()=>w,xO:()=>y,xz:()=>M});var r=s(79287),I=s.n(r),J=s(86594),N=s(7198),T=s(32286),te=s(56202),q=s(43838),ne=s(88670),B=s(78915),l=s(94456);const U=()=>MB.getSelectionItems().length===0,C=async()=>{const Q={clientX:MB.clientX,clientY:MB.clientY},ze=await(0,J.LD)({isShowPrompt:!1});await(0,q.$H)({hasNotice:!1})&&ze!=null&&ze.data?MB.action("entry:paste:items:at",{clientPos:Q,hasPrompt:!0}):MB.action("entry:prepare:paste:by:contextmenu",{cursorPos:Q})},M={keys:{tab:()=>{if(document.activeElement===document.body)return!1},enter:()=>{MB.action("entry:enter:key"),(0,T.L)("enter")},f2:()=>{MB.action("entry:enter:key"),(0,T.L)("f2")},"command+shift+h":()=>{MB.action("entry:toggle:visible"),(0,T.L)("command+shift+h")},"ctrl+shift+h":()=>{MB.action("entry:toggle:visible"),(0,T.L)("ctrl+shift+h")},left:()=>{MB.action("entry:arrow:key",{direction:"x",rate:-1}),(0,T.L)("left")},"alt+left":()=>{MB.action("entry:arrow:key",{direction:"x",rate:-1}),(0,T.L)("alt+left")},right:()=>{MB.action("entry:arrow:key",{direction:"x",rate:1}),(0,T.L)("right")},"alt+right":()=>{MB.action("entry:arrow:key",{direction:"x",rate:1}),(0,T.L)("alt+right")},up:()=>{MB.action("entry:arrow:key",{direction:"y",rate:-1}),(0,T.L)("up")},"alt+up":()=>{MB.action("entry:arrow:key",{direction:"y",rate:-1}),(0,T.L)("alt+up")},down:()=>{MB.action("entry:arrow:key",{direction:"y",rate:1}),(0,T.L)("down")},"alt+down":()=>{MB.action("entry:arrow:key",{direction:"y",rate:1}),(0,T.L)("alt+down")},"shift+left":()=>{MB.action("entry:arrow:key",{direction:"x",rate:-10}),(0,T.L)("shift+left")},"alt+shift+left":()=>{MB.action("entry:arrow:key",{direction:"x",rate:-10}),(0,T.L)("alt+shift+left")},"shift+right":()=>{MB.action("entry:arrow:key",{direction:"x",rate:10}),(0,T.L)("shift+right")},"alt+shift+right":()=>{MB.action("entry:arrow:key",{direction:"x",rate:10}),(0,T.L)("alt+shift+right")},"shift+up":()=>{MB.action("entry:arrow:key",{direction:"y",rate:-10}),(0,T.L)("shift+up")},"alt+shift+up":()=>{MB.action("entry:arrow:key",{direction:"y",rate:-10}),(0,T.L)("alt+shift+up")},"shift+down":()=>{MB.action("entry:arrow:key",{direction:"y",rate:10}),(0,T.L)("shift+down")},"alt+shift+down":()=>{MB.action("entry:arrow:key",{direction:"y",rate:10}),(0,T.L)("alt+shift+down")},"command+c":()=>{U()||(MB.action("entry:copy:items",{needPasteProperties:!0}),(0,J.P8)(),(0,T.L)("command+c"))},"ctrl+c":()=>{U()||(MB.action("entry:copy:items",{needPasteProperties:!0}),(0,J.P8)(),(0,T.L)("ctrl+c"))},"command+d":()=>{U()||(MB.action("entry:duplicate:items",{shift:!1}),(0,T.L)("command+d"))},"ctrl+d":()=>{U()||(MB.action("entry:duplicate:items",{shift:!1}),(0,T.L)("ctrl+d"))},"command+shift+d":()=>{U()||(MB.action("entry:duplicate:items",{shift:!0}),(0,T.L)("command+shift+d"))},"ctrl+shift+d":()=>{U()||(MB.action("entry:duplicate:items",{shift:!0}),(0,T.L)("ctrl+shift+d"))},"command+shift+v":()=>{C(),(0,T.L)("command+shift+v")},"ctrl+shift+v":()=>{C(),(0,T.L)("ctrl+shift+v")},"command+x":()=>{U()||(MB.action("entry:cut:items"),(0,J.P8)(),(0,T.L)("command+x"))},"ctrl+x":()=>{U()||(MB.action("entry:cut:items"),(0,J.P8)(),(0,T.L)("ctrl+x"))},backspace:()=>{var Q,ze,me,Se;(Q=MB.shortKeyCallbackBucket)!=null&&(ze=Q.deleteItaNodeCallback)!=null&&ze.call(Q)||(me=MB.shortKeyCallbackBucket)!=null&&(Se=me.deleteVarNodeCallback)!=null&&Se.call(me)||(MB.action("entry:delete:selected-items"),MB.action("enter:comment:shortcut:del"),(0,T.L)("backspace"))},del:()=>{var Q,ze,me,Se;(Q=MB.shortKeyCallbackBucket)!=null&&(ze=Q.deleteItaNodeCallback)!=null&&ze.call(Q)||(me=MB.shortKeyCallbackBucket)!=null&&(Se=me.deleteVarNodeCallback)!=null&&Se.call(me)||(MB.action("entry:delete:selected-items"),MB.action("enter:comment:shortcut:del"),(0,T.L)("delete"))},"command+shift+l":()=>{MB.action("entry:toggle:lock"),(0,T.L)("command+shift+l")},"ctrl+shift+l":()=>{MB.action("entry:toggle:lock"),(0,T.L)("ctrl+shift+l")},"command+g":()=>{MB.action("entry:group:items"),(0,T.L)("command+g")},"ctrl+g":()=>{MB.action("entry:group:items"),(0,T.L)("ctrl+g")},"command+shift+g":()=>{MB.action("entry:ungroup:items"),(0,T.L)("command+shift+g")},"ctrl+shift+g":()=>{MB.action("entry:ungroup:items"),(0,T.L)("ctrl+shift+g")},"command+alt+l":()=>{MB.action("entry:align:items",{direction:"left"}),(0,T.L)("command+alt+l")},"ctrl+alt+l":()=>{MB.action("entry:align:items",{direction:"left"}),(0,T.L)("ctrl+alt+l")},"command+alt+c":()=>{MB.action("entry:align:items",{direction:"center"}),(0,T.L)("command+alt+c")},"ctrl+alt+c":()=>{MB.action("entry:align:items",{direction:"center"}),(0,T.L)("ctrl+alt+c")},"command+alt+r":()=>{MB.action("entry:align:items",{direction:"right"}),(0,T.L)("command+alt+r")},"ctrl+alt+r":()=>{MB.action("entry:align:items",{direction:"right"}),(0,T.L)("ctrl+alt+r")},"command+alt+t":()=>{MB.action("entry:align:items",{direction:"top"}),(0,T.L)("command+alt+t")},"ctrl+alt+t":()=>{MB.action("entry:align:items",{direction:"top"}),(0,T.L)("ctrl+alt+t")},"command+alt+m":()=>{MB.action("entry:align:items",{direction:"middle"}),(0,T.L)("command+alt+m")},"ctrl+alt+m":()=>{MB.action("entry:align:items",{direction:"middle"}),(0,T.L)("ctrl+alt+m")},"command+alt+b":()=>{MB.action("entry:align:items",{direction:"bottom"}),(0,T.L)("command+alt+b")},"ctrl+alt+b":()=>{MB.action("entry:align:items",{direction:"bottom"}),(0,T.L)("ctrl+alt+b")},"command+alt+h":()=>{MB.action("entry:distribute:items",{direction:"horizontal"}),(0,T.L)("command+alt+h")},"ctrl+alt+h":()=>{MB.action("entry:distribute:items",{direction:"horizontal"}),(0,T.L)("ctrl+alt+h")},"command+alt+u":()=>{MB.action("entry:distribute:items",{direction:"vertical"}),(0,T.L)("command+alt+u")},"ctrl+alt+u":()=>{MB.action("entry:distribute:items",{direction:"vertical"}),(0,T.L)("ctrl+alt+u")},"command+alt+up":()=>{MB.action("entry:items:forward"),(0,T.L)("command+alt+up")},"ctrl+alt+up":()=>{MB.action("entry:items:forward"),(0,T.L)("ctrl+alt+up")},"command+alt+down":()=>{MB.action("entry:items:backward"),(0,T.L)("command+alt+down")},"ctrl+alt+down":()=>{MB.action("entry:items:backward"),(0,T.L)("ctrl+alt+down")},"command+shift+up":()=>{MB.action("entry:items:send:front"),(0,T.L)("command+shift+up")},"ctrl+shift+up":()=>{MB.action("entry:items:send:front"),(0,T.L)("ctrl+shift+up")},"command+shift+down":()=>{MB.action("entry:items:send:back"),(0,T.L)("command+shift+down")},"ctrl+shift+down":()=>{MB.action("entry:items:send:back"),(0,T.L)("ctrl+shift+down")},"command+;":()=>{MB.action("entry:expand:all:screen"),(0,T.L)("command+;")},"ctrl+;":()=>{MB.action("entry:expand:all:screen"),(0,T.L)("ctrl+;")},"command+'":()=>{MB.action("entry:unExpand:all:screen"),(0,T.L)("command+''")},"ctrl+'":()=>{MB.action("entry:unExpand:all:screen"),(0,T.L)("ctrl+'")},"`":()=>{(0,T.L)("`")},"\xB7":()=>{(0,T.L)("`")},"[, ]":()=>{I()().isBefore("2021-11-12 23:59:59")&&MB.notice({text:I18N.Common.brackets_key_update_tips.replace("%key%",'<span class="key">'+((0,te.uF)()?"Ctrl":"\u2318")+"</span>")}),(0,T.L)("[, ]")},"command+[":()=>{MB.action("entry:toggle:left-nav-panel"),(0,T.L)("command+[")},"ctrl+[":()=>{MB.action("entry:toggle:left-nav-panel"),(0,T.L)("ctrl+[")},"command+]":()=>{MB.action("entry:toggle:right-panel"),(0,T.L)("command+]")},"ctrl+]":()=>{MB.action("entry:toggle:right-panel"),(0,T.L)("ctrl+]")},"command+p":()=>{MB.action("entry:preview:root-or-current:project"),(0,T.L)("command+p")},"ctrl+p":()=>{MB.action("entry:preview:root-or-current:project"),(0,T.L)("ctrl+p")},"command+s":()=>{MB.global.experienceLoginModalHelper("isSave")||MB.action("entry:start:saving"),(0,T.L)("command+s")},"ctrl+s":()=>{MB.global.experienceLoginModalHelper("isSave")||MB.action("entry:start:saving"),(0,T.L)("ctrl+s")},"command+k":()=>{MB.action(ne.X.AIToggleOpenSemantic)},"ctrl+k":()=>{MB.action(ne.X.AIToggleOpenSemantic)},1:()=>{MB.action("entry:number:key",{key:1}),(0,T.L)("1")},2:()=>{MB.action("entry:number:key",{key:2}),(0,T.L)("2")},3:()=>{MB.action("entry:number:key",{key:3}),(0,T.L)("3")},4:()=>{MB.action("entry:number:key",{key:"4"}),(0,T.L)("4")},5:()=>{MB.action("entry:number:key",{key:5}),(0,T.L)("5")},6:()=>{MB.action("entry:number:key",{key:6}),(0,T.L)("6")},7:()=>{MB.action("entry:number:key",{key:7}),(0,T.L)("7")},8:()=>{MB.action("entry:number:key",{key:8}),(0,T.L)("8")},"command+a":()=>{MB.action("entry:select:all"),(0,T.L)("command+a")},"ctrl+a":()=>{MB.action("entry:select:all"),(0,T.L)("ctrl+a")},esc:()=>{MB.action("entry:escape:key"),(0,T.L)("esc")},"command+z":()=>{MB.action("entry:undo-stack:undo"),(0,T.L)("command+z")},"ctrl+z":()=>{MB.action("entry:undo-stack:undo"),(0,T.L)("ctrl+z")},"command+shift+z":()=>{MB.action("entry:undo-stack:redo"),(0,T.L)("command+shift+z")},"ctrl+shift+z":()=>{MB.action("entry:undo-stack:redo"),(0,T.L)("ctrl+shift+z")},"command+=":()=>{MB.action("entry:design:zoom:in"),(0,T.L)("command+=")},"ctrl+=":()=>{MB.action("entry:design:zoom:in"),(0,T.L)("ctrl+=")},"command+numpad_add":()=>{MB.action("entry:design:zoom:in"),(0,T.L)("command+numpad_add")},"ctrl+numpad_add":()=>{MB.action("entry:design:zoom:in"),(0,T.L)("ctrl+numpad_add")},"command+-":()=>{MB.action("entry:design:zoom:out"),(0,T.L)("command+-")},"ctrl+-":()=>{MB.action("entry:design:zoom:out"),(0,T.L)("ctrl+-")},"command+numpad_subtract":()=>{MB.action("entry:design:zoom:out"),(0,T.L)("command+numpad_subtract")},"ctrl+numpad_subtract":()=>{MB.action("entry:design:zoom:out"),(0,T.L)("ctrl+numpad_subtract")},"command+0":()=>{MB.action("entry:set:scale",{scale:100}),(0,T.L)("command+0")},"ctrl+0":()=>{MB.action("entry:set:scale",{scale:100}),(0,T.L)("ctrl+0")},"command+numpad_0":()=>{MB.action("entry:set:scale",{scale:100}),(0,T.L)("command+numpad_0")},"ctrl+numpad_0":()=>{MB.action("entry:set:scale",{scale:100}),(0,T.L)("ctrl+numpad_0")},"command+1":()=>{MB.action("entry:zoom:fit:scale:offset"),(0,T.L)("command+1")},"ctrl+1":()=>{MB.action("entry:zoom:fit:scale:offset"),(0,T.L)("ctrl+1")},"command+numpad_1":()=>{MB.action("entry:zoom:fit:scale:offset"),(0,T.L)("command+numpad_1")},"ctrl+numpad_1":()=>{MB.action("entry:zoom:fit:scale:offset"),(0,T.L)("ctrl+numpad_1")},"command+2":()=>{MB.action("entry:design:zoom:selection"),(0,T.L)("command+2")},"ctrl+2":()=>{MB.action("entry:design:zoom:selection"),(0,T.L)("ctrl+2")},"command+numpad_2":()=>{MB.action("entry:design:zoom:selection"),(0,T.L)("command+numpad_2")},"ctrl+numpad_2":()=>{MB.action("entry:design:zoom:selection"),(0,T.L)("ctrl+numpad_2")},"command+alt+a":()=>{MB.action("entry:isShowSticky:toggle"),(0,T.L)("command+alt+a")},"ctrl+alt+a":()=>{MB.action("entry:isShowSticky:toggle"),(0,T.L)("ctrl+alt+a")},"command+f":()=>{MB.action("entry:findReplacePanel:toggle:show"),(0,T.L)("command+f")},"ctrl+f":()=>{MB.action("entry:findReplacePanel:toggle:show"),(0,T.L)("ctrl+f")},"command+alt+v":()=>{U()||(MB.action("entry:paste:items:properties"),(0,T.L)("command+alt+v"))},"ctrl+alt+v":()=>{U()||(MB.action("entry:paste:items:properties"),(0,T.L)("ctrl+alt+v"))},"command+b":()=>{MB.action("entry:set:text:attr:by:key",{attr:"boldType"}),(0,T.L)("command+b \u9009\u4E2D\u6574\u4F53")},"ctrl+b":()=>{MB.action("entry:set:text:attr:by:key",{attr:"boldType"}),(0,T.L)("command+b \u9009\u4E2D\u6574\u4F53")},"command+i":()=>{MB.action("entry:set:text:attr:by:key",{attr:"italic"}),(0,T.L)("command+i \u9009\u4E2D\u6574\u4F53")},"ctrl+i":()=>{MB.action("entry:set:text:attr:by:key",{attr:"italic"}),(0,T.L)("command+i \u9009\u4E2D\u6574\u4F53")},"command+u":()=>{MB.action("entry:set:text:attr:by:key",{attr:"underline"}),(0,T.L)("command+u \u9009\u4E2D\u6574\u4F53")},"ctrl+u":()=>{MB.action("entry:set:text:attr:by:key",{attr:"underline"}),(0,T.L)("command+u \u9009\u4E2D\u6574\u4F53")},"command+shift+s":()=>{MB.action("entry:set:text:attr:by:key",{attr:"lineThrough"}),(0,T.L)("command+shift+s \u9009\u4E2D\u6574\u4F53")},"ctrl+shift+s":()=>{MB.action("entry:set:text:attr:by:key",{attr:"lineThrough"}),(0,T.L)("command+shift+s \u9009\u4E2D\u6574\u4F53")},"command+shift+.":()=>{MB.action("entry:set:text:attr:by:key",{attr:"fontSize",action:"increase"}),(0,T.L)("command+shift+. \u9009\u4E2D\u6574\u4F53")},"ctrl+shift+.":()=>{MB.action("entry:set:text:attr:by:key",{attr:"fontSize",action:"increase"}),(0,T.L)("command+shift+. \u9009\u4E2D\u6574\u4F53")},"command+shift+,":()=>{MB.action("entry:set:text:attr:by:key",{attr:"fontSize",action:"decrease"}),(0,T.L)("command+shift+, \u9009\u4E2D\u6574\u4F53")},"ctrl+shift+,":()=>{MB.action("entry:set:text:attr:by:key",{attr:"fontSize",action:"decrease"}),(0,T.L)("command+shift+, \u9009\u4E2D\u6574\u4F53")},"shift+/":()=>{MB.action("entry:shortcut:undoable:items:set:attr:border")},i:()=>{l.w[(0,l.y)()]()(ze=>{let{sRGBHex:me}=ze;return MB.action("entry:i:key",{color:me})}),(0,T.L)("i")},"alt+1":()=>{MB.action("entry:directory:nav:key",{key:1}),(0,T.L)("alt+1")},"alt+2":()=>{MB.action("entry:directory:nav:key",{key:2}),(0,T.L)("alt+2")},c:()=>{MB.action("entry:keyC"),(0,T.L)("c")},e:()=>{MB.action("entry:elbow:isInElbowMode:toggle"),MB.action("entry:ST:STMode:disable"),MB.action("set:quick-create-widget",{widget:null})}},priority:N.zu.Normal,isGlobal:!1},w={keys:{"command+[":()=>{MB.action("entry:toggle:left-nav-panel"),(0,T.L)("command+[")},"ctrl+[":()=>{MB.action("entry:toggle:left-nav-panel"),(0,T.L)("ctrl+[")},"command+]":()=>{MB.action("entry:toggle:right-panel"),(0,T.L)("command+]")},"ctrl+]":()=>{MB.action("entry:toggle:right-panel"),(0,T.L)("ctrl+]")},esc:()=>{MB.action("entry:escape:key"),(0,T.L)("esc")},"command+=":()=>{MB.action("entry:design:zoom:in"),(0,T.L)("command+=")},"ctrl+=":()=>{MB.action("entry:design:zoom:in"),(0,T.L)("ctrl+=")},"command+numpad_add":()=>{MB.action("entry:design:zoom:in"),(0,T.L)("command+numpad_add")},"ctrl+numpad_add":()=>{MB.action("entry:design:zoom:in"),(0,T.L)("ctrl+numpad_add")},"command+-":()=>{MB.action("entry:design:zoom:out"),(0,T.L)("command+-")},"ctrl+-":()=>{MB.action("entry:design:zoom:out"),(0,T.L)("ctrl+-")},"command+numpad_subtract":()=>{MB.action("entry:design:zoom:out"),(0,T.L)("command+numpad_subtract")},"ctrl+numpad_subtract":()=>{MB.action("entry:design:zoom:out"),(0,T.L)("ctrl+numpad_subtract")},"command+0":()=>{MB.action("entry:set:scale",{scale:100}),(0,T.L)("command+0")},"ctrl+0":()=>{MB.action("entry:set:scale",{scale:100}),(0,T.L)("ctrl+0")},"command+numpad_0":()=>{MB.action("entry:set:scale",{scale:100}),(0,T.L)("command+numpad_0")},"ctrl+numpad_0":()=>{MB.action("entry:set:scale",{scale:100}),(0,T.L)("ctrl+numpad_0")},"command+1":()=>{MB.action("entry:zoom:fit:scale:offset"),(0,T.L)("command+1")},"ctrl+1":()=>{MB.action("entry:zoom:fit:scale:offset"),(0,T.L)("ctrl+1")},"command+numpad_1":()=>{MB.action("entry:zoom:fit:scale:offset"),(0,T.L)("command+numpad_1")},"ctrl+numpad_1":()=>{MB.action("entry:zoom:fit:scale:offset"),(0,T.L)("ctrl+numpad_1")},"command+2":()=>{MB.action("entry:design:zoom:selection"),(0,T.L)("command+2")},"ctrl+2":()=>{MB.action("entry:design:zoom:selection"),(0,T.L)("ctrl+2")},"command+numpad_2":()=>{MB.action("entry:design:zoom:selection"),(0,T.L)("command+numpad_2")},"ctrl+numpad_2":()=>{MB.action("entry:design:zoom:selection"),(0,T.L)("ctrl+numpad_2")},"command+f":()=>{MB.action("entry:findReplacePanel:toggle:show"),(0,T.L)("command+f")},"ctrl+f":()=>{MB.action("entry:findReplacePanel:toggle:show"),(0,T.L)("ctrl+f")},c:()=>{MB.action("entry:comment:toggle",{onlyView:!0}),MB.action("entry:observe:dom:size:update-viewport-rect"),MB.action(B.GO.toggleInspectMode(!1)),MB.action(B.GO.toggleHandMode(!1)),MB.action(B.GO.select([])),MB.action({type:"elbow:update",payload:{isInElbowMode:!1}}),MB.action({type:"entry:ST:STMode:disable"}),(0,T.L)("c")},"alt+1":()=>{MB.action("entry:directory:nav:key",{key:1}),(0,T.L)("alt+1")},"alt+2":()=>{MB.action("entry:directory:nav:key",{key:2}),(0,T.L)("alt+2")},"command+p":()=>{MB.action("entry:preview:root-or-current:project"),(0,T.L)("command+p")},"ctrl+p":()=>{MB.action("entry:preview:root-or-current:project"),(0,T.L)("ctrl+p")},"command+alt+a":()=>{MB.action("entry:isShowSticky:toggle"),(0,T.L)("command+alt+a")},"ctrl+alt+a":()=>{MB.action("entry:isShowSticky:toggle"),(0,T.L)("ctrl+alt+a")}},priority:N.zu.Normal,isGlobal:!1},y={keys:{esc:()=>{MB.action("entry:escape:key"),(0,T.L)("esc")},"command+=":()=>{MB.action("entry:design:zoom:in"),(0,T.L)("command+=")},"ctrl+=":()=>{MB.action("entry:design:zoom:in"),(0,T.L)("ctrl+=")},"command+numpad_add":()=>{MB.action("entry:design:zoom:in"),(0,T.L)("command+numpad_add")},"ctrl+numpad_add":()=>{MB.action("entry:design:zoom:in"),(0,T.L)("ctrl+numpad_add")},"command+-":()=>{MB.action("entry:design:zoom:out"),(0,T.L)("command+-")},"ctrl+-":()=>{MB.action("entry:design:zoom:out"),(0,T.L)("ctrl+-")},"command+numpad_subtract":()=>{MB.action("entry:design:zoom:out"),(0,T.L)("command+numpad_subtract")},"ctrl+numpad_subtract":()=>{MB.action("entry:design:zoom:out"),(0,T.L)("ctrl+numpad_subtract")},"command+0":()=>{MB.action("entry:set:scale",{scale:100}),(0,T.L)("command+0")},"ctrl+0":()=>{MB.action("entry:set:scale",{scale:100}),(0,T.L)("ctrl+0")},"command+numpad_0":()=>{MB.action("entry:set:scale",{scale:100}),(0,T.L)("command+numpad_0")},"ctrl+numpad_0":()=>{MB.action("entry:set:scale",{scale:100}),(0,T.L)("ctrl+numpad_0")},"command+1":()=>{MB.action("entry:zoom:fit:scale:offset"),(0,T.L)("command+1")},"ctrl+1":()=>{MB.action("entry:zoom:fit:scale:offset"),(0,T.L)("ctrl+1")},"command+numpad_1":()=>{MB.action("entry:zoom:fit:scale:offset"),(0,T.L)("command+numpad_1")},"ctrl+numpad_1":()=>{MB.action("entry:zoom:fit:scale:offset"),(0,T.L)("ctrl+numpad_1")}},priority:N.zu.Normal,isGlobal:!1},j={keys:{"command+[":()=>{MB.action("entry:toggle:left-nav-panel"),(0,T.L)("command+[")},"ctrl+[":()=>{MB.action("entry:toggle:left-nav-panel"),(0,T.L)("ctrl+[")},"command+]":()=>{MB.action("entry:toggle:right-panel"),(0,T.L)("command+]")},"ctrl+]":()=>{MB.action("entry:toggle:right-panel"),(0,T.L)("ctrl+]")},esc:()=>{MB.action("entry:escape:key"),(0,T.L)("esc")},"command+=":()=>{MB.action("entry:design:zoom:in"),(0,T.L)("command+=")},"ctrl+=":()=>{MB.action("entry:design:zoom:in"),(0,T.L)("ctrl+=")},"command+numpad_add":()=>{MB.action("entry:design:zoom:in"),(0,T.L)("command+numpad_add")},"ctrl+numpad_add":()=>{MB.action("entry:design:zoom:in"),(0,T.L)("ctrl+numpad_add")},"command+-":()=>{MB.action("entry:design:zoom:out"),(0,T.L)("command+-")},"ctrl+-":()=>{MB.action("entry:design:zoom:out"),(0,T.L)("ctrl+-")},"command+numpad_subtract":()=>{MB.action("entry:design:zoom:out"),(0,T.L)("command+numpad_subtract")},"ctrl+numpad_subtract":()=>{MB.action("entry:design:zoom:out"),(0,T.L)("ctrl+numpad_subtract")},"command+0":()=>{MB.action("entry:set:scale",{scale:100}),(0,T.L)("command+0")},"ctrl+0":()=>{MB.action("entry:set:scale",{scale:100}),(0,T.L)("ctrl+0")},"command+numpad_0":()=>{MB.action("entry:set:scale",{scale:100}),(0,T.L)("command+numpad_0")},"ctrl+numpad_0":()=>{MB.action("entry:set:scale",{scale:100}),(0,T.L)("ctrl+numpad_0")},"command+1":()=>{MB.action("entry:zoom:fit:scale:offset"),(0,T.L)("command+1")},"ctrl+1":()=>{MB.action("entry:zoom:fit:scale:offset"),(0,T.L)("ctrl+1")},"command+numpad_1":()=>{MB.action("entry:zoom:fit:scale:offset"),(0,T.L)("command+numpad_1")},"ctrl+numpad_1":()=>{MB.action("entry:zoom:fit:scale:offset"),(0,T.L)("ctrl+numpad_1")},"command+2":()=>{MB.action("entry:design:zoom:selection"),(0,T.L)("command+2")},"ctrl+2":()=>{MB.action("entry:design:zoom:selection"),(0,T.L)("ctrl+2")},"command+numpad_2":()=>{MB.action("entry:design:zoom:selection"),(0,T.L)("command+numpad_2")},"ctrl+numpad_2":()=>{MB.action("entry:design:zoom:selection"),(0,T.L)("ctrl+numpad_2")},"command+f":()=>{MB.action("entry:findReplacePanel:toggle:show"),(0,T.L)("command+f")},"ctrl+f":()=>{MB.action("entry:findReplacePanel:toggle:show"),(0,T.L)("ctrl+f")},"alt+1":()=>{MB.action("entry:directory:nav:key",{key:1}),(0,T.L)("alt+1")},"alt+2":()=>{MB.action("entry:directory:nav:key",{key:2}),(0,T.L)("alt+2")},"command+p":()=>{MB.action("entry:preview:root-or-current:project"),(0,T.L)("command+p")},"ctrl+p":()=>{MB.action("entry:preview:root-or-current:project"),(0,T.L)("ctrl+p")}},priority:N.zu.Normal,isGlobal:!1}},19295:(Qn,qe,s)=>{"use strict";s.d(qe,{A:()=>ne});var r=s(95549),I=s(38502),J=s(88463),N=s(79150),T=s(67787);const te=T.Ay.div.withConfig({displayName:"styles__StyledSearchComponent",componentId:"sc-tgw1rb-0"})(["display:flex;width:100%;height:100%;align-items:center;padding:0 12px 0 8px;.nav-back-icon{flex-shrink:0;margin-right:4px;svg.svg-icon{width:9px;height:14px;path{stroke:",";fill:none;}}}.searchBar{height:28px;border:1px solid ",";border-radius:6px;background:",";color:",";flex:1;&:hover,&.isFocus{background:",";border-color:",";}}.WorkspaceInput{border-radius:13px;}"],B=>B.theme.color_text_L1,B=>B.theme.color_bg_border_02,B=>B.theme.color_bg_white,B=>B.theme.color_text_L3,B=>B.theme.color_bg_white,B=>B.theme.color_text_link_normal);var q=s(72214);class ne extends I.PureComponent{constructor(){super(...arguments),(0,r.A)(this,"setSearchBarRef",l=>this.searchBar=l)}componentDidMount(){this.searchBar&&this.searchBar.focus()}render(){const{keyword:l,placeholder:U,onChangeKeyword:C,onExitSearch:M}=this.props;return(0,q.jsxs)(te,{children:[(0,q.jsx)(N.A,{className:"nav-back-icon",name:"left_panel/back/arrow",onClick:M}),(0,q.jsx)(J.A,{className:"searchBar",ref:this.setSearchBarRef,value:l,placeholder:U,onChange:C})]})}}},19713:(Qn,qe,s)=>{"use strict";s.d(qe,{FH:()=>Oe,LH:()=>nn,Ly:()=>sn,YU:()=>je,_H:()=>$,bB:()=>xt,k1:()=>ye,kB:()=>o,qk:()=>an,rn:()=>Gn,t$:()=>Je,wp:()=>He});var r=s(41589),I=s.n(r),J=s(20089),N=s(69986),T=s(86493),te=s(69815),q=s(28068),ne=s(41815),B=s(44916),l=s(9521),U=s(43838),C=s(39563),M=s(9680);const w=[J.x.WRichText,J.x.WRect,J.x.WOval,J.x.WPolygon,J.x.WStar,J.x.WSticky,J.x.WVector,J.x.WTriangle,J.x.WMindNode,J.x.wFlowClosed,J.x.WFlowOpened,J.x.WButton],y=[J.x.WPlaceholder,J.x.WMTooltip],j=[J.x.WButtonSolid,J.x.WMTextInput,J.x.WMTextArea],Q=[J.x.WDropMenu,J.x.WNavigationMenu,J.x.WCollapse,J.x.WSegmentedControl,J.x.WTabs,J.x.WMobileTabBars,J.x.WSelectionControl,J.x.WTree],ze=y.concat(j),me=/(>)[^>]+(?=<[/]?\w+.*>)/g,Se=[],Me="xAxis",De="series",tt="highOption",at="highText",ht=Ot=>Ot.length===0||Ot==="<p></p>"?"<p>&nbsp;</p>":Ot,Je=Ot=>Ot.toLowerCase(),$=Ot=>{const wt={"<":"&lt;",">":"&gt;","&":"&amp;"};return Ot.replace(/(<|>|&)/g,Kt=>wt[Kt])},mt=function(Ot,wt){return wt===void 0&&(wt="-"),Ot.toString().split(wt).map(Kt=>isNaN(parseInt(Kt))?Kt:parseInt(Kt))},yt=Ot=>Ot.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),Le=Ot=>{const wt=yt(Ot);return new RegExp(wt,"ig")},He=Ot=>{let{isCurrentScreen:wt,currentScreenCid:Kt}=Ot;const fe=(bt,un,gt,Wt)=>{var Un;const Jn=[];if(!bt)return Jn;const{key:Yt,sub:rt,hotAttr:An}=bt,Nt=(Un=An.bunch)!=null?Un:An.type;if([J.x.RbPage,J.x.Canvas,J.x.WWrap].includes(Nt)){const jt=rt.map(Dt=>sdkStore.getHotItem(Dt)).sort((Dt,$t)=>{var kn,Kn;return((kn=$t.hotAttr)==null?void 0:kn.zIndex)-((Kn=Dt.hotAttr)==null?void 0:Kn.zIndex)}),vn=Nt===J.x.RbPage?bt.key:un;Jn.push(...jt.map(Dt=>[...fe(Dt,vn,gt,Wt)]).flat(1/0))}else if(Nt===J.x.WBasket&&An.basket==="bMuban"){const jt=rt.map(Dt=>sdkStore.getHotItem(Dt)).sort((Dt,$t)=>{var kn,Kn;return((kn=$t.hotAttr)==null?void 0:kn.zIndex)-((Kn=Dt.hotAttr)==null?void 0:Kn.zIndex)}),vn=un;Jn.push(...jt.map(Dt=>[...fe(Dt,vn,!0)]).flat(1/0))}else if(Nt===J.x.WMind&&rt.length){const jt=sdkStore.getHotItem(An.refContentKey);Jn.push(...fe(jt,un,gt,Yt))}else if(Nt===J.x.WMindNode){if(gt&&An.basket==="bDanli")return Jn;Jn.push({...bt,pageKey:un,mindKey:Wt});const jt=rt.map(vn=>sdkStore.getHotItem(vn)).sort((vn,Dt)=>{var $t,kn;return(($t=vn.hotAttr)==null?void 0:$t.order)-((kn=Dt.hotAttr)==null?void 0:kn.order)});Jn.push(...jt.map(vn=>[...fe(vn,un,gt,Wt)]).flat(1/0))}else{if(gt&&An.basket==="bDanli")return Jn;Jn.push({...bt,pageKey:un})}return Jn};if(wt){const bt=sdkStore.getHotItem(Kt);return fe(bt,Kt,!1)}else return sdkStore.getSubHotItemList("B@main").filter(un=>{var gt;return((gt=un.hotAttr.bunch)!=null?gt:un.hotAttr.type)===J.x.RbPage}).sort((un,gt)=>{var Wt,Un;return((Wt=gt.hotAttr)==null?void 0:Wt.zIndex)-((Un=un.hotAttr)==null?void 0:Un.zIndex)}).map(un=>[...fe(un,un.key,!1)]).flat(1/0)},ye=Ot=>{let{widgetList:wt,searchValue:Kt,findWidgetList:fe,findWidgetPanelList:bt,mubans:un,parent:gt=null}=Ot,Wt=!0;Wt&&wt.forEach(Un=>{const{hotAttr:{type:Jn,refRBPageKey:Yt},pageKey:rt,mindKey:An}=Un;if(Jn===J.x.WBasket&&Un.hotAttr.basket==="bDanli"){const Nt=He({isCurrentScreen:!0,currentScreenCid:Yt});ye({widgetList:Nt,searchValue:Kt,findWidgetList:fe,findWidgetPanelList:bt,mubans:un,parent:{widget:Un,pageKey:rt}})}else{const Nt=je(Un,Kt);if((Nt==null?void 0:Nt.length)>0&&(Nt.forEach((jt,vn)=>{fe.push({widget:Un,parent:gt,index:vn,pageKey:rt,mindKey:An})}),gt)){const{widget:{hotAttr:{type:jt,refRBPageKey:vn,basket:Dt}}}=gt,$t=jt===J.x.WBasket&&Dt==="bMuban";Wt=!$t||!un.has(vn),$t&&un.add(vn),!$t&&bt.push(gt)}}})},je=function(Ot,wt,Kt){Kt===void 0&&(Kt=0);const{hotAttr:{type:fe,textV0:bt,textV1:un,tableData:gt,chartData:Wt,optionData:Un}}=Ot;if(w.includes(fe)){wt=$(wt);const Jn=(0,te.YZ)(un,!0);return Ze({str:Jn,matchValue:wt,replaceEndIndex:Kt})}else if(ze.includes(fe)){const Jn=bt.text,Yt=j.includes(fe);return wt=j.includes(fe)?wt:$(wt),Ze({str:Jn,matchValue:wt,pureHTML:Yt,replaceEndIndex:Kt})}else{if(fe===J.x.WMSelect)return bt.text.split(/\n/).map((Yt,rt)=>Ze({str:Yt,matchValue:wt,pureHTML:!0}).map(Nt=>rt+"-"+Nt)).flat();if(fe===J.x.WTable){const Jn=[];if(wt=$(wt),(0,C.SS)(Ot.hotAttr))for(const[Yt,rt]of Object.entries(Ot.hotAttr.cells)){const An=Ze({str:rt.data,matchValue:wt,pureHTML:!0});An.length>0&&Jn.push(An.map(Nt=>Yt+"-"+Nt))}else gt.data.forEach((rt,An)=>{rt.forEach((Nt,jt)=>{const vn=Ze({str:Nt,matchValue:wt,pureHTML:!0});vn.length>0&&Jn.push(vn.map(Dt=>An+"-"+jt+"-"+Dt))})});return Jn.flat()}else if(fe===J.x.WChart){const{xAxis:Jn,series:Yt}=Wt,rt=Yt.map(jt=>{let{name:vn}=jt;return vn}),An=Jn.map((jt,vn)=>Ze({str:jt,matchValue:wt,pureHTML:!0}).map($t=>Me+"-"+vn+"-"+$t)),Nt=rt.map((jt,vn)=>Ze({str:jt,matchValue:wt,pureHTML:!0}).map($t=>De+"-"+vn+"-"+$t));return An.concat(Nt).flat()}else if(Q.includes(fe)){const Jn=fe===J.x.WDropMenu?bt.text:"",Yt=[];W(Un,Yt,wt);const rt=Ze({str:Jn,matchValue:wt,pureHTML:!0});return Yt.push(rt.map(An=>at+"/"+An)),Yt.flat()}}return Se},ot=function(Ot,wt,Kt){return Kt===void 0&&(Kt=0),Je(Ot).indexOf(Je(wt),Kt)},we=function(Ot,wt,Kt){Kt===void 0&&(Kt=0);let fe=[],bt=ot(Ot,wt,Kt);for(;bt!==-1;)fe.push(bt),bt=ot(Ot,wt,bt+wt.length);return fe=fe.sort((un,gt)=>un-gt),fe},$e=Ot=>{const wt=[...Ot.matchAll(me)];return wt&&wt.length>0?wt.map(Kt=>({...Kt,0:Kt[0].replace(">",""),index:Kt.index+1})):Se},ge=function(Ot,wt,Kt){Kt===void 0&&(Kt=0);const fe=$e(Ot),bt=[];if(fe&&fe.length>0){const un=Je(wt.substring(0,1)),gt=Je(wt.substring(wt.length-1)),Wt=fe.map((jt,vn)=>Je(jt[0]).includes(un)?vn:null).filter(jt=>jt!==null),Un=fe.map((jt,vn)=>Je(jt[0]).includes(gt)?vn:null).filter(jt=>jt!==null),Jn=[],Yt=[];Wt.forEach(jt=>{const vn=fe[jt][0];we(vn,un).forEach($t=>{Jn.push(jt+"-"+$t)})}),Un.forEach(jt=>{const vn=fe[jt][0];we(vn,gt).forEach($t=>{Yt.push(jt+"-"+$t)})});const rt=[];Jn.forEach(jt=>{const vn=mt(jt);Yt.forEach(Dt=>{const $t=mt(Dt);$t[0]===vn[0]?$t[1]>=vn[1]&&rt.push({start:jt,end:Dt}):$t[0]>vn[0]&&rt.push({start:jt,end:Dt})})});const An=rt.map(jt=>{let{start:vn,end:Dt}=jt;const $t=mt(vn),kn=mt(Dt),Kn={contents:[],startIndex:$t[1],endIndex:kn[1]};return fe.forEach((dn,ft)=>{ft>=$t[0]&&ft<=kn[0]&&Kn.contents.push(dn)}),Kn}),Nt=[];An.forEach(jt=>{const{contents:vn,startIndex:Dt,endIndex:$t}=jt;if(vn.length===1)Je(vn[0][0].substring(Dt,$t+1))===Je(wt)&&Nt.push(jt);else{const kn=vn.reduce((Kn,dn,ft)=>ft===0?Kn+dn[0].substring(Dt):ft===vn.length-1?Kn+dn[0].substring(0,$t+1):Kn+dn[0],"");Je(kn)===Je(wt)&&Nt.push(jt)}}),Nt.forEach(jt=>{const vn=jt.contents[0].index+jt.startIndex;if(vn>=Kt)if(bt.length>0){const{contents:Dt,endIndex:$t}=bt[bt.length-1],kn=Dt[Dt.length-1].index+$t;vn>kn&&bt.push(jt)}else bt.push(jt)})}return bt},Ze=Ot=>{let{str:wt,matchValue:Kt,pureHTML:fe=!1,replaceEndIndex:bt=0}=Ot,un=[];return wt&&(fe||$e(wt).length===0?un=we(wt,Kt,bt):un=ge(wt,Kt,bt)),un},W=function(Ot,wt,Kt,fe){fe===void 0&&(fe=""),Ot.forEach((bt,un)=>{let{data:gt,children:Wt}=bt;const Un=fe.length>0?fe+"-"+un:""+un,Jn=Ze({str:gt.name,matchValue:Kt,pureHTML:!0});wt.push(Jn.map(Yt=>tt+"/"+Un+"/"+Yt)),Wt&&Wt.length>0&&W(Wt,wt,Kt,Un)})},an=Ot=>{let{hotItem:wt,matchValue:Kt,replaceValue:fe,current:bt}=Ot;const{hotAttr:{type:un,textV0:gt,textV1:Wt,tableData:Un,chartData:Jn,optionData:Yt,refVars:rt}}=wt,An=(0,M.m5)(wt.hotAttr);if(w.includes(un)){const Dt=(0,te.YZ)(Wt,!0);fe=$(fe);const{newHtml:$t,replaceEndIndex:kn}=Pt(Dt,bt,Kt,fe),Kn=un===J.x.WTear||un===J.x.WSticky?B.a.COMMON:un===J.x.WRichText?B.a.TEXT:B.a.BASIC,dn=(0,ne.A)({html:$t,componentType:Kn,isSearchReplace:!0}),ft=q.z6.createFromBlockArray(dn.contentBlocks,dn.entityMap),bn=q.$t.createWithContent(ft).getCurrentContent(),Yn=(0,q.dM)(bn),on=(0,T.qn)(Yn),yn={...wt.hotAttr,textV1:on},lo=bn.getPlainText();return An&&lo!==(0,M.U_)(An)&&(yn.refVars={...rt,textV1:(0,M.JK)(rt==null?void 0:rt.textV1,"text")}),un===J.x.WRichText&&(0,l.PQ)(yn),{newItem:{...wt,hotAttr:yn},replaceEndIndex:kn}}else if(y.includes(un)){const Dt=gt.text;if(fe=$(fe),isNaN(bt)){const{newHtml:$t,replaceEndIndex:kn}=Pt(Dt,bt,Kt,fe),Kn=ht($t),dn={...wt.hotAttr,textV0:{...wt.hotAttr.textV0,text:Kn}};return An&&Kn!==(0,M.U_)(An)&&(dn.refVars={...rt,textV0:(0,M.JK)(rt==null?void 0:rt.textV0,"text")}),{newItem:{...wt,hotAttr:dn},replaceEndIndex:kn}}else{const{newData:$t,replaceEndIndex:kn}=dt(Dt,bt,Kt,fe),Kn=ht($t),dn={...wt.hotAttr,textV0:{...wt.hotAttr.textV0,text:Kn}};return An&&Kn!==(0,M.U_)(An)&&(dn.refVars={...rt,textV0:(0,M.JK)(rt==null?void 0:rt.textV0,"text")}),{newItem:{...wt,hotAttr:dn},replaceEndIndex:kn}}}else if(un===J.x.WMSelect){const Dt=gt.text.split(/\n/),$t=mt(bt),Kn=Vn({data:Dt,indexArr:$t,matchValue:Kt,replaceValue:fe}).join("\n"),dn={...wt.hotAttr,textV0:{...wt.hotAttr.textV0,text:Kn}};return An&&Kn!==(0,M.U_)(An)&&(dn.refVars={...rt,textV0:(0,M.JK)(rt==null?void 0:rt.textV0,"text")}),{newItem:{...wt,hotAttr:dn}}}else if(un===J.x.WTable){const Dt=mt(bt);if(fe=$(fe),Kt=$(Kt),(0,C.SS)(wt.hotAttr)){const $t={...wt.hotAttr.cells},kn={...rt==null?void 0:rt.cells},Kn={...wt.hotAttr,cells:$t,refVars:{...wt.hotAttr.refVars,cells:kn}};for(const[dn,ft]of Object.entries($t))if(dn===""+Dt[0]){var Nt;const{newData:Lt}=dt(ft.data||"",Dt[1],Kt,fe);$t[dn].data=Lt;const bn=kn==null||(Nt=kn[dn])==null?void 0:Nt.data;bn&&Lt!==(0,M.U_)(bn)&&(kn[dn].data=void 0)}return{newItem:{...wt,hotAttr:Kn}}}else{const kn=Un.data.map((Kn,dn)=>dn===Dt[0]?Kn.map((ft,Lt)=>{if(Lt===Dt[1]){const{newData:bn}=dt(ft,Dt[2],Kt,fe);return bn}return ft}):Kn);return{newItem:{...wt,hotAttr:{...wt.hotAttr,tableData:{...wt.hotAttr.tableData,data:kn}}}}}}else if(un===J.x.WChart){const{xAxis:Dt,series:$t}=Jn,kn=mt(bt),Kn=kn[0]===Me;let dn=[];return Kn?dn=Vn({data:Dt,indexArr:kn.slice(1),matchValue:Kt,replaceValue:fe}):dn=$t.map((ft,Lt)=>{if(Lt===kn[1]){const{newData:bn}=dt(ft.name,kn[2],Kt,fe);return{...ft,name:bn}}return ft}),Kn?{newItem:{...wt,hotAttr:{...wt.hotAttr,chartData:{...wt.hotAttr.chartData,xAxis:dn}}}}:{newItem:{...wt,hotAttr:{...wt.hotAttr,chartData:{...wt.hotAttr.chartData,series:dn}}}}}else if(j.includes(un)){const Dt=gt.text,{newData:$t,replaceEndIndex:kn}=dt(Dt,bt,Kt,fe),Kn={...wt.hotAttr,textV0:{...wt.hotAttr.textV0,text:$t}};return An&&$t!==(0,M.U_)(An)&&(Kn.refVars={...rt,textV0:(0,M.JK)(rt==null?void 0:rt.textV0,"text")}),{newItem:{...wt,hotAttr:{...wt.hotAttr,textV0:{...wt.hotAttr.textV0,text:$t}}},replaceEndIndex:kn}}else if(Q.includes(un)){const Dt=bt.split("/");if(Dt[0]===tt){const $t=I()(Yt),kn=I()(rt==null?void 0:rt.optionData)||[],Kn=Dt[1],dn=mt(Kn);if(dn.length===1){var jt;const Lt=$t[dn[0]],{newData:bn}=dt(Lt.data.name,parseInt(Dt[2]),Kt,fe);$t[dn[0]].data={...$t[dn[0]].data,name:bn};const Yn=(jt=kn[dn[0]])==null||(jt=jt.data)==null?void 0:jt.name;Yn&&bn!==(0,M.U_)(Yn)&&(kn[dn[0]].data.name=void 0)}else{var vn;let Lt;const bn=(yn,lo)=>{const{newData:qn}=dt(yn.data.name,parseInt(Dt[2]),Kt,fe);yn.data={...yn.data,name:qn},Lt=qn};(0,N.PM)({newOptionData:$t,pathArr:dn.slice(),onUpdate:bn});const Yn=dn.reduce((yn,lo,qn)=>{if(qn===0)return yn[lo];if(qn<=dn.length-1){var Wn;return yn==null||(Wn=yn.children)==null?void 0:Wn[lo]}},kn),on=Yn==null||(vn=Yn.data)==null?void 0:vn.name;on&&Lt!==(0,M.U_)(on)&&(Yn.data.name=void 0)}return{newItem:{...wt,hotAttr:{...wt.hotAttr,optionData:$t,refVars:{...rt,optionData:kn}}}}}else{const $t=gt.text,{newData:kn}=dt($t,Dt[1],Kt,fe),Kn={...wt.hotAttr,textV0:{...wt.hotAttr.textV0,text:kn}};return An&&kn!==(0,M.U_)(An)&&(Kn.refVars={...rt,textV0:(0,M.JK)(rt==null?void 0:rt.textV0,"text")}),{newItem:{...wt,hotAttr:Kn}}}}return null},_t=(Ot,wt)=>{const{widget:{key:Kt},pageKey:fe}=Ot,{widget:{key:bt},pageKey:un}=wt;return Kt===bt&&fe===un},nn=(Ot,wt,Kt)=>{const fe=Ot.find((gt,Wt)=>Wt===wt-1),un=Ot.filter(gt=>_t(fe,gt)).filter(gt=>{let{index:Wt}=gt;return Wt!==fe.index}).map((gt,Wt)=>({...gt,newIndex:Wt}));return Ot.filter((gt,Wt)=>Wt!==wt-1).map(gt=>{const{index:Wt}=gt,Un=un.find(Jn=>{let{index:Yt,...rt}=Jn;return _t(gt,rt)&&Wt===Yt});return Un?{...gt,index:Un.newIndex,widget:Kt}:gt})},Oe=Ot=>{const wt=new Map;return Ot.forEach(Kt=>{const{widget:{key:fe},pageKey:bt}=Kt,un=bt+"-"+fe;if(wt.has(un))wt.get(un).push(Kt);else{const gt=[Kt];wt.set(un,gt)}}),[...wt.values()]},sn=Ot=>{let{hotItem:wt,matchValue:Kt,replaceValue:fe,indexs:bt}=Ot,un=Le(Kt);const{hotAttr:{type:gt,textV0:Wt,tableData:Un,chartData:Jn,optionData:Yt}}=wt;if(w.concat(y).concat(j).includes(gt)){let rt=wt;const An=bt.length;let Nt=0;for(;bt.length&&Nt<An;){const jt=bt[0],{newItem:vn,replaceEndIndex:Dt}=an({hotItem:rt,matchValue:Kt,replaceValue:fe,current:jt});Nt+=1,rt=vn,rt?bt=je(rt,Kt,Dt):bt.shift()}return rt}else if(gt===J.x.WMSelect){const An=Wt.text.split(/\n/).map(Nt=>Nt.replace(un,fe));return{...wt,hotAttr:{...wt.hotAttr,textV0:{...wt.hotAttr.textV0,text:An.join("\n")}}}}else if(gt===J.x.WTable)if(fe=$(fe),Kt=$(Kt),un=Le(Kt),(0,C.SS)(wt.hotAttr)){const rt={...wt.hotAttr.cells};for(const[An,Nt]of Object.entries(rt))rt[An].data=(Nt.data||"").replace(un,fe);return{...wt,hotAttr:{...wt.hotAttr,cells:rt}}}else{const An=Un.data.map(Nt=>Nt.map(jt=>jt.replace(un,fe)));return{...wt,hotAttr:{...wt.hotAttr,tableData:{...wt.hotAttr.tableData,data:An}}}}else if(gt===J.x.WChart){const{xAxis:rt,series:An}=Jn,Nt=rt.map(vn=>vn.replace(un,fe)),jt=An.map(vn=>({...vn,name:vn.name.replace(un,fe)}));return{...wt,hotAttr:{...wt.hotAttr,chartData:{...wt.hotAttr.chartData,xAxis:Nt,series:jt}}}}else if(Q.includes(gt)){const rt=I()(Yt);It(rt,un,fe);let An={...wt,hotAttr:{...wt.hotAttr,optionData:rt}};if(Wt){const jt=Wt.text.replace(un,fe);An={...An,hotAttr:{...An.hotAttr,textV0:{...wt.hotAttr.textV0,text:jt}}}}return An}},It=(Ot,wt,Kt)=>{Ot.forEach(fe=>{let{data:bt,children:un}=fe;bt.name=bt.name.replace(wt,Kt),un&&un.length>0&&It(un,wt,Kt)})},Pt=(Ot,wt,Kt,fe)=>{let bt="",un=0;const{contents:gt,startIndex:Wt,endIndex:Un}=wt;if(gt&&gt.length>0)if(gt.length===1){const{index:Jn}=gt[0];bt=Ot.substring(0,Jn+Wt)+fe+Ot.substring(Jn+Un+1),un=Jn+Wt+fe.length}else bt=gt.reduce((Jn,Yt,rt)=>{const{index:An}=Yt;return rt===0?(un=An+Wt+fe.length,Jn+Ot.substring(0,An+Wt)+fe+Ot.substring(An+Yt[0].length,gt[rt+1].index)):rt===gt.length-1?Jn+Ot.substring(An+Un+1):Jn+Ot.substring(An+Yt[0].length,gt[rt+1].index)},"");return{newHtml:bt.trim()+U.ze,replaceEndIndex:un}},dt=(Ot,wt,Kt,fe)=>{const bt=Ot.substring(0,wt)+fe+Ot.substring(wt+Kt.length),un=wt+fe.length;return{newData:bt.trim(),replaceEndIndex:un}},Vn=Ot=>{let{data:wt,indexArr:Kt,matchValue:fe,replaceValue:bt}=Ot;return wt.map((un,gt)=>gt===Kt[0]?dt(un,Kt[1],fe,bt).newData:un)},o=Ot=>{const{widget:wt}=Ot;return sdkStore.isTrashed(wt.key)?null:sdkStore.getHotItem(wt.key)},Gn=Ot=>{},xt=Ot=>{let wt=sdkStore.getHotItem(Ot);for(;wt;){var Kt;if(((Kt=wt.hotAttr.bunch)!=null?Kt:wt.hotAttr.type)===J.x.RbPage)return wt.key;wt=sdkStore.getHotItem(wt.sup)}return null}},20014:(Qn,qe,s)=>{"use strict";s.d(qe,{e:()=>l});var r=s(38502),I=s(18381),J=s(87332),N=s(17307),T=s(67787),te=s(53732),q=s.n(te),ne=s(53940),B=s(72214);const l=C=>{let{layout:M}=C;const w=(0,I.wA)(),y=j=>{var Q;M!==j&&(w({type:"entry:update:preference-layout_v8",payload:{layout_v8:j}}),w({type:"left-panel:set:width",payload:{width:j==="old_right"?ne.sR:ne.Cj,projectCid:(Q=MB.getRootProject())==null?void 0:Q.cid}}))};return(0,B.jsx)(J.A,{className:"set-layout-dropdown",renderOpener:(0,B.jsx)(N.C,{name:"common/set-layout-dropdown",className:"more-icon",size:24}),direction:"right",renderMenu:(0,B.jsxs)(U,{className:q()("set-layout-dropdown-menu"),children:[(0,B.jsxs)("li",{className:"item-menu left",onMouseDown:()=>y("recommend"),children:[(0,B.jsx)(N.C,{name:"toolbar/selected",className:q()("selected-icon",{show:M==="recommend"})}),(0,B.jsx)(N.C,{name:"left_panel/layout/left",className:"layout-icon"}),(0,B.jsx)("span",{className:"title",children:I18N.LeftSidePanel.left_aligned})]}),(0,B.jsxs)("li",{className:"item-menu right",onMouseDown:()=>y("old_right"),children:[(0,B.jsx)(N.C,{name:"toolbar/selected",className:q()("selected-icon",{show:M==="old_right"})}),(0,B.jsx)(N.C,{name:"left_panel/layout/right",className:"layout-icon"}),(0,B.jsx)("span",{className:"title",children:I18N.LeftSidePanel.right_aligned})]})]})})},U=T.Ay.ul.withConfig({displayName:"LayoutDropDown__StyledLayoutMenu",componentId:"sc-1m8444o-0"})(["width:126px;background:",";box-shadow:",";border-radius:8px;color:",";border:1px solid ",";padding:8px;&:lang(en){width:166px;}li.item-menu{list-style:none;height:28px;padding-left:16px;padding-right:14px;display:flex;align-items:center;cursor:pointer;&:hover{background:",";}.selected-icon{opacity:0;width:8px;&.show{opacity:1;}}.layout-icon{width:20px;margin:0 4px 0 8px;}}li.item-menu{border-radius:4px;}"],C=>C.theme.color_bg_white,C=>C.theme.shadow_m,C=>C.theme.color_text_L1,C=>C.theme.color_bg_border_01,C=>C.theme.color_btn_secondary_hover)},20085:(Qn,qe,s)=>{"use strict";s.d(qe,{H:()=>r});function r(I){const J=new Map;I.forEach(te=>{J.set(te.cid,{...te,subFolder:[],level:1})});const N=[],T=(te,q,ne)=>{ne.has(te.cid)||(ne.add(te.cid),te.level=q,te.subFolder.forEach(B=>T(B,q+1,ne)))};return I.forEach(te=>{if(te.parent_cid===null){const q=J.get(te.cid);N.push(q),T(q,1,new Set)}else{const q=J.get(te.parent_cid);if(q){const ne=J.get(te.cid);ne.level=(q.level||1)+1,q.subFolder.push(ne),T(ne,ne.level,new Set)}}}),N}},20852:(Qn,qe,s)=>{"use strict";s.d(qe,{A:()=>M});var r=s(38502),I=Object.defineProperty,J=Object.defineProperties,N=Object.getOwnPropertyDescriptors,T=Object.getOwnPropertySymbols,te=Object.prototype.hasOwnProperty,q=Object.prototype.propertyIsEnumerable,ne=(w,y,j)=>y in w?I(w,y,{enumerable:!0,configurable:!0,writable:!0,value:j}):w[y]=j,B=(w,y)=>{for(var j in y||(y={}))te.call(y,j)&&ne(w,j,y[j]);if(T)for(var j of T(y))q.call(y,j)&&ne(w,j,y[j]);return w},l=(w,y)=>J(w,N(y)),U=(w,y)=>{var j={};for(var Q in w)te.call(w,Q)&&y.indexOf(Q)<0&&(j[Q]=w[Q]);if(w!=null&&T)for(var Q of T(w))y.indexOf(Q)<0&&q.call(w,Q)&&(j[Q]=w[Q]);return j},M=(0,r.forwardRef)((w,y)=>{var j=w,{size:Q,spin:ze,style:me}=j,Se=U(j,["size","spin","style"]);const Me=B(B({width:Q||"var(--x-icon-size, 1em)",height:Q||"var(--x-icon-size, 1em)",animation:ze?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),me);return r.createElement("svg",l(B({ref:y,style:Me},Se),{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),r.createElement("path",{d:"M19 12C19 8.13401 15.866 5 12 5C8.13401 5 5 8.13401 5 12C5 15.866 8.13401 19 12 19",stroke:"#6669FF",strokeWidth:"1.8",strokeLinecap:"round"}))})},21337:(Qn,qe,s)=>{"use strict";s.d(qe,{A:()=>M});var r=s(38502),I=s(53732),J=s.n(I),N=s(23744),T=s(37342),te=s(46905),q=s(67787);const ne=q.Ay.div.withConfig({displayName:"styles__StyledAIPointTag",componentId:"sc-w3t3ub-0"})(["background:",";font-weight:500;font-size:12px;border-radius:12px;padding:0 10px;display:flex;height:24px;align-items:center;min-width:70px;justify-content:center;&:not(.isbeta):hover{background:",";}&:not(.disable){cursor:pointer;}&.disable{pointer-events:none;}&.free-limited-time{background:none;}svg{width:14px;height:14px;margin-right:5px;}span{line-height:16px;background:linear-gradient(265.2deg,"," -21.19%,"," 105.08%);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;text-fill-color:transparent;flex:none;order:0;flex-grow:0;}&.isbeta{pointer-events:none;span{padding:0 12px;}}&.right-tag-red{background:",";&:not(.isbeta):hover{background:",";}span{line-height:16px;background:linear-gradient(265.2deg,#EC4954 -21.19%,#FA52D6 105.08%);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;text-fill-color:transparent;}}&.ai-semantic{padding:0 10px;min-width:0;height:20px;font-size:10px;svg{width:12px;height:12px;}}"],w=>w.theme.color_background_AI_head_tag,w=>w.theme.color_background_AI_head_tag_hover,w=>w.theme.color_AI_switch_gradient_start,w=>w.theme.color_AI_switch_gradient_end,w=>w.theme.color_background_AI_head_tag_red,w=>w.theme.color_background_AI_head_tag_red_hover);var B=s(72214);const l=w=>{const{from:y,user:j,org:Q,project:ze}=w,me=(0,r.useCallback)(at=>{at.preventDefault(),at.stopPropagation(),ENV.IS_WONDER_SHARE?(0,T.Ix)(te.Jh,"_blank","noreferrer"):MB.global.popupHelper.chargeAsync({orgCid:(Q==null?void 0:Q.cid)||"",checkoutArea:"workspace",checkoutPlace:"workspace-V8_AI_popup",isChatGPT:!0})},[Q]),Se=(0,r.useMemo)(()=>({aiPoints:(0,te._F)({user:j,org:Q}),aiUseTimes:(0,te.kK)({user:j,org:Q})}),[j,Q]);let Me="",De=!1;const tt=(0,te.vW)(j,Q,ze);return ENV.IS_WONDER_SHARE?(Me=tt?"Beta":I18N.ChatGPT.Limit+": "+(te.Dw-Se.aiUseTimes<0?0:te.Dw-Se.aiUseTimes),De=!tt&&te.Dw-Se.aiUseTimes<=3):(Me=""+Se.aiPoints,De=Se.aiPoints<=200),y!=="ai-left-panel"&&(De=!1,Me=I18N.ChatGPT.ai_limited_time_free),ENV.IS_ON_PREMISES||y!=="ai-left-panel"&&ENV.IS_WONDER_SHARE?null:(0,B.jsxs)(ne,{className:J()(De&&"right-tag-red",y==="ai-semantic"&&"ai-semantic","disable"),onMouseDown:me,children:[y==="ai-left-panel"&&!ENV.IS_WONDER_SHARE&&(0,B.jsx)(N.C,{name:"chatGPT/ai-point-icon"+(De?"-red":""),isColorPure:!0}),(0,B.jsx)("span",{children:Me})]})},U=(0,r.memo)(l),C=q.Ay.div.withConfig({displayName:"styles__StyledAIToolBar",componentId:"sc-1rvrsfz-0"})(["display:flex;justify-content:space-between;flex-direction:row;align-items:center;width:100%;height:100%;position:relative;&.tool-bar{padding:0 20px;height:50px;}&.is-ai-chat{border-bottom:1px solid ",";}.title{display:flex;align-items:center;}.sub-title{color:",";font-size:12px;font-weight:400;}.tool-title{line-height:40px;font-family:PingFang SC;display:flex;align-items:center;color:",";font-weight:500;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;pointer-events:none;}.ai-beta{width:40px;margin-left:4px;}.ai-help{margin-left:4px;&:hover{path{fill:#666666;}}}.tips{z-index:1;max-width:351px;background-color:#fff;box-sizing:border-box;padding:20px 24px;background:#333333;border-radius:4px;font-weight:400;font-size:12px;line-height:18px;color:#FFFFFF;flex-direction:column;text-align:left;position:fixed;div{white-space:pre-line;line-height:18px;margin-top:10px;}span{color:white;}.tip-title{font-size:14px;font-weight:500;margin-top:0;display:flex;svg{margin-right:2px;}}.tip-desc{margin-top:10px;font-size:12px;line-height:18px;display:flex;align-items:center;color:rgba(255,255,255,0.5);}}.tool-right{display:flex;align-items:center;white-space:nowrap;order:2;margin-left:6px;.close-modal{cursor:pointer;width:24px;height:24px;margin-left:6px;border-radius:4px;path{fill:",";}&:hover{path{fill:",";}}}}"],w=>w.theme.color_bg_border_01,w=>w.theme.color_text_L3,w=>w.theme.color_text_L1,w=>w.theme.color_text_L2,w=>w.theme.color_text_L1);function M(w){const{title:y,closeModal:j,isHeaderPanel:Q,project:ze,org:me,user:Se,isAIChatPanel:Me=!1}=w,De=(0,r.useRef)(null);return(0,B.jsxs)(C,{ref:De,className:J()(Q?"ai-panel-header":"tool-bar",{"is-ai-chat":Me}),type:Me&&"draggable",children:[(0,B.jsxs)("div",{className:Q?"title":"tool-title",type:Me&&"draggable",children:[(0,B.jsxs)(B.Fragment,{children:[y||I18N.ChatGPT.mockitt_ai,Me&&(0,B.jsx)("span",{className:"sub-title",children:"\uFF08"+I18N.ChatGPT.ai_chat_supported_full_version+"\uFF09"})]}),Q&&!ENV.IS_WONDER_SHARE&&(0,B.jsx)(N.C,{className:"ai-beta",name:"chatGPT/ai-beta",isColorPure:!0})]}),(0,B.jsxs)("div",{className:"tool-right",children:[(0,B.jsx)(U,{from:Q?"ai-left-panel":"ai-component",user:Se,org:me,project:ze}),!Q&&(0,B.jsx)(N.C,{name:"chatGPT/ai-panel-head-close",className:"close-modal",onClick:j})]})]})}},21385:(Qn,qe,s)=>{"use strict";s.d(qe,{CJ:()=>Me,Dx:()=>C,H:()=>N,NR:()=>me,VC:()=>De,bu:()=>J,g7:()=>Se,jI:()=>ze,xR:()=>Q});var r=s(93413);const I=+(ENV.IS_MO===!0),J=[r.c.GUIDE_NOVICE_2309_STEP_2,r.c.GUIDE_NOVICE_2309_STEP_3,r.c.GUIDE_NOVICE_2309_STEP_4,r.c.GUIDE_NOVICE_2309_STEP_5],N=[r.c.GUIDE_NOVICE_2309_STEP_1,r.c.GUIDE_NOVICE_2309_STEP_2,r.c.GUIDE_NOVICE_2309_STEP_3,r.c.GUIDE_NOVICE_2309_STEP_4,r.c.GUIDE_NOVICE_2309_STEP_5],T={[r.c.GUIDE_NOVICE_2309_STEP_2]:["/mb-proto2/images/guide/noviceGuides2309/"+r.c.GUIDE_NOVICE_2309_TASK_2+".gif","https://cdn-release.modao.cc/mb_proto/guide/GUIDE_NOVICE_2309_TASK_2_ws.gif"],[r.c.GUIDE_NOVICE_2309_STEP_3]:["/mb-proto2/images/guide/noviceGuides2309/"+r.c.GUIDE_NOVICE_2309_TASK_3+".gif","https://cdn-release.modao.cc/mb_proto/guide/GUIDE_NOVICE_2309_TASK_3_ws.gif"],[r.c.GUIDE_NOVICE_2309_STEP_4]:["/mb-proto2/images/guide/noviceGuides2309/"+r.c.GUIDE_NOVICE_2309_TASK_4+".gif","https://cdn-release.modao.cc/mb_proto/guide/GUIDE_NOVICE_2309_TASK_4_ws.gif"],[r.c.GUIDE_NOVICE_2309_STEP_5]:["/mb-proto2/images/guide/DSGuides2403/"+r.c.GUIDE_NOVICE_2309_STEP_5+".gif","https://cdn-release.modao.cc/mb_proto/guide/GUIDE_NOVICE_2309_TASK_5_ws.gif"],[r.c.GUIDE_NOVICE_2309_TIP_1]:["/mb-proto2/images/guide/noviceGuides2309/"+r.c.GUIDE_NOVICE_2309_TIP_1+".gif","https://cdn-release.modao.cc/mb_proto/guide/GUIDE_NOVICE_2309_TIP_1_ws.gif"],[r.c.GUIDE_NOVICE_2408_CREATE_PAGE]:["/mb-proto2/images/guide/noviceGuides2309/"+r.c.GUIDE_NOVICE_2309_TASK_1+".gif","https://cdn-release.modao.cc/mb_proto/guide/GUIDE_NOVICE_2309_STEP_1_ws.gif"]},te={[r.c.GUIDE_NOVICE_2309_STEP_2]:["/mb-proto2/images/guide/webGuides2403/"+r.c.GUIDE_NOVICE_2309_STEP_2+".gif","/mb-proto2/images/guide/webGuides2403/"+r.c.GUIDE_NOVICE_2309_STEP_2+".gif"],[r.c.GUIDE_NOVICE_2309_STEP_3]:["/mb-proto2/images/guide/webGuides2403/"+r.c.GUIDE_NOVICE_2309_STEP_3+".gif","/mb-proto2/images/guide/webGuides2403/"+r.c.GUIDE_NOVICE_2309_STEP_3+".gif"],[r.c.GUIDE_NOVICE_2309_STEP_4]:["/mb-proto2/images/guide/webGuides2403/"+r.c.GUIDE_NOVICE_2309_STEP_4+".gif","/mb-proto2/images/guide/webGuides2403/"+r.c.GUIDE_NOVICE_2309_STEP_4+".gif"],[r.c.GUIDE_NOVICE_2309_STEP_5]:["/mb-proto2/images/guide/DSGuides2403/"+r.c.GUIDE_NOVICE_2309_STEP_5+".gif","/mb-proto2/images/guide/DSGuides2403/"+r.c.GUIDE_NOVICE_2309_STEP_5+".gif"],[r.c.GUIDE_NOVICE_2309_TIP_1]:["/mb-proto2/images/guide/webGuides2403/"+r.c.GUIDE_NOVICE_2309_TIP_1+".gif","/mb-proto2/images/guide/webGuides2403/"+r.c.GUIDE_NOVICE_2309_TIP_1+".gif"],[r.c.GUIDE_NOVICE_2408_CREATE_PAGE]:["/mb-proto2/images/guide/webGuides2403/"+r.c.GUIDE_NOVICE_2309_STEP_1+".gif","/mb-proto2/images/guide/webGuides2403/"+r.c.GUIDE_NOVICE_2309_STEP_1+".gif"]},q={[r.c.GUIDE_NOVICE_2309_STEP_1]:["/mb-proto2/images/guide/DSGuides2403/"+r.c.GUIDE_NOVICE_2309_STEP_1+".gif","/mb-proto2/images/guide/DSGuides2403/"+r.c.GUIDE_NOVICE_2309_STEP_1+".gif"],[r.c.GUIDE_NOVICE_2309_STEP_2]:["/mb-proto2/images/guide/DSGuides2403/"+r.c.GUIDE_NOVICE_2309_STEP_2+".gif","/mb-proto2/images/guide/DSGuides2403/"+r.c.GUIDE_NOVICE_2309_STEP_2+".gif"],[r.c.GUIDE_NOVICE_2309_STEP_3]:["/mb-proto2/images/guide/DSGuides2403/"+r.c.GUIDE_NOVICE_2309_STEP_3+".gif","/mb-proto2/images/guide/DSGuides2403/"+r.c.GUIDE_NOVICE_2309_STEP_3+".gif"],[r.c.GUIDE_NOVICE_2309_STEP_4]:["/mb-proto2/images/guide/DSGuides2403/"+r.c.GUIDE_NOVICE_2309_STEP_4+".gif","/mb-proto2/images/guide/DSGuides2403/"+r.c.GUIDE_NOVICE_2309_STEP_4+".gif"],[r.c.GUIDE_NOVICE_2309_STEP_5]:["/mb-proto2/images/guide/DSGuides2403/"+r.c.GUIDE_NOVICE_2309_STEP_5+".gif","/mb-proto2/images/guide/DSGuides2403/"+r.c.GUIDE_NOVICE_2309_STEP_5+".gif"],[r.c.GUIDE_NOVICE_2309_TIP_1]:["/mb-proto2/images/guide/webGuides2403/"+r.c.GUIDE_NOVICE_2309_TIP_1+".gif","/mb-proto2/images/guide/webGuides2403/"+r.c.GUIDE_NOVICE_2309_TIP_1+".gif"]},ne=tt=>({[r.c.GUIDE_NOVICE_2309_STEP_2]:{selector:r.c.GUIDE_NOVICE_2309,guide:{offset:{y:398,x:220},content:tt.CommonGuides.v8guide_novice_step2},imgUrl:T[r.c.GUIDE_NOVICE_2309_STEP_2][I]},[r.c.GUIDE_NOVICE_2309_STEP_3]:{selector:r.c.GUIDE_NOVICE_2309,guide:{offset:{y:66,x:50},content:tt.CommonGuides.v8guide_novice_step3},imgUrl:T[r.c.GUIDE_NOVICE_2309_STEP_3][I]},[r.c.GUIDE_NOVICE_2309_STEP_4]:{selector:r.c.GUIDE_NOVICE_2309_STEP_4,guide:{offset:{y:40,x:-104},content:tt.CommonGuides.v8guide_novice_step4},imgUrl:T[r.c.GUIDE_NOVICE_2309_STEP_4][I]},[r.c.GUIDE_NOVICE_2309_STEP_5]:{selector:r.c.GUIDE_NOVICE_2309_STEP_5,guide:{offset:{y:43,x:-91},content:tt.CommonGuides.v8guide_novice_step5},imgUrl:T[r.c.GUIDE_NOVICE_2309_STEP_5][I]},[r.c.GUIDE_NOVICE_2309_TIP_1]:{selector:r.c.GUIDE_NOVICE_2309_TIP_1,guide:{offset:{y:68,x:260},content:tt.CommonGuides.v8guide_novice_tip1},imgUrl:T[r.c.GUIDE_NOVICE_2309_TIP_1][I]},[r.c.GUIDE_NOVICE_2408_CREATE_PAGE]:{selector:r.c.GUIDE_NOVICE_2408_CREATE_PAGE,guide:{offset:{y:48,x:0},content:tt.CommonGuides.v8guide_novice_step1},imgUrl:T[r.c.GUIDE_NOVICE_2408_CREATE_PAGE][I]}}),B=tt=>({[r.c.GUIDE_NOVICE_2309_STEP_2]:{selector:r.c.GUIDE_NOVICE_2309,guide:{offset:{y:398,x:220},content:tt.CommonGuides.v8guide_novice_step2},imgUrl:te[r.c.GUIDE_NOVICE_2309_STEP_2][I]},[r.c.GUIDE_NOVICE_2309_STEP_3]:{selector:r.c.GUIDE_NOVICE_2309,guide:{offset:{y:66,x:50},content:tt.CommonGuides.v8guide_novice_step3},imgUrl:te[r.c.GUIDE_NOVICE_2309_STEP_3][I]},[r.c.GUIDE_NOVICE_2309_STEP_4]:{selector:r.c.GUIDE_NOVICE_2309_STEP_4,guide:{offset:{y:40,x:-104},content:tt.CommonGuides.v8guide_novice_step4},imgUrl:te[r.c.GUIDE_NOVICE_2309_STEP_4][I]},[r.c.GUIDE_NOVICE_2309_STEP_5]:{selector:r.c.GUIDE_NOVICE_2309_STEP_5,guide:{offset:{y:43,x:-91},content:tt.CommonGuides.v8guide_novice_step5},imgUrl:te[r.c.GUIDE_NOVICE_2309_STEP_5][I]},[r.c.GUIDE_NOVICE_2309_TIP_1]:{selector:r.c.GUIDE_NOVICE_2309_TIP_1,guide:{offset:{y:68,x:260},content:tt.CommonGuides.v8guide_novice_tip1},imgUrl:te[r.c.GUIDE_NOVICE_2309_TIP_1][I]},[r.c.GUIDE_NOVICE_2408_CREATE_PAGE]:{selector:r.c.GUIDE_NOVICE_2408_CREATE_PAGE,guide:{offset:{y:48,x:0},content:tt.CommonGuides.v8guide_novice_step1},imgUrl:te[r.c.GUIDE_NOVICE_2408_CREATE_PAGE][I]}}),l=tt=>({[r.c.GUIDE_NOVICE_2309_STEP_1]:{selector:r.c.GUIDE_NOVICE_2408_CREATE_PAGE,guide:{offset:{y:48,x:0},content:tt.CommonGuides.v8guide_novice_step1},imgUrl:q[r.c.GUIDE_NOVICE_2309_STEP_1][I]},[r.c.GUIDE_NOVICE_2309_STEP_2]:{selector:r.c.GUIDE_NOVICE_2309,guide:{offset:{y:254,x:178},content:tt.CommonGuides.v8guide_novice_step2_DS},imgUrl:q[r.c.GUIDE_NOVICE_2309_STEP_2][I]},[r.c.GUIDE_NOVICE_2309_STEP_3]:{selector:r.c.GUIDE_NOVICE_2309,guide:{offset:{y:254,x:178},content:tt.CommonGuides.v8guide_novice_step3_DS},imgUrl:q[r.c.GUIDE_NOVICE_2309_STEP_3][I]},[r.c.GUIDE_NOVICE_2309_STEP_4]:{selector:r.c.GUIDE_NOVICE_2309_STEP_4,guide:{offset:{y:40,x:-104},content:tt.CommonGuides.v8guide_novice_step4},imgUrl:q[r.c.GUIDE_NOVICE_2309_STEP_4][I]},[r.c.GUIDE_NOVICE_2309_STEP_5]:{selector:r.c.GUIDE_NOVICE_2309_STEP_5,guide:{offset:{y:43,x:-91},content:tt.CommonGuides.v8guide_novice_step5},imgUrl:q[r.c.GUIDE_NOVICE_2309_STEP_5][I]},[r.c.GUIDE_NOVICE_2309_TIP_1]:{selector:r.c.GUIDE_NOVICE_2309_TIP_1,guide:{offset:{y:53,x:150},content:tt.CommonGuides.v8guide_novice_tip1},imgUrl:q[r.c.GUIDE_NOVICE_2309_TIP_1][I]}}),U=new Map([["MP",ne],["PC",B],["DS",l]]),C=(tt,at)=>{const ht=De(tt);return U.has(ht)?U.get(ht)(at):U.get("MP")(at)},M=new Map([["MP",["mtlnslwr5rypkaqh","mtlzqys30zwyejs"]],["PC",["mtlnslwr5rypkaqh","mtlzwbocy0zzxbvn"]]]),w=new Map([["MP",["rcTnYFbNTspk9Oq1IW6BNo",["rcTnYFbNULCdungtfnN8ST","rcTnYHQXULCdunhG5Sz8GJ"]]],["PC",["rcTnYFbNTspk9Oq1IW6BNo",["rcU55LSYU55wSd6rxYCo1U","rcU4swuuU4ufqiHYqNOzk8"]]]]),y=new Map([["MP",["rcTnYHQXTspk9OpcBxaoMz","rcTnYHQXULCdunhG5Sz8GJ"]],["PC",["rcTnYHQXTspk9OpcBxaoMz","rcU4swuuU4ufqiHYqNOzk8"]]]),j=(tt,at)=>{var ht;let Je=((ht=tt.split("-"))==null?void 0:ht[0])||"MP";at.has(Je)||(Je="MP");const $=at.get(Je);return Array.isArray($)?$[+!ENV.IS_MO]:$},Q=tt=>j(tt,M),ze=tt=>j(tt,w),me=tt=>j(tt,y),Se=["mtltnojakmadr9kr","mtltnolur84xkk9k"],Me=["rbpU6lViN5GdzBr9G","rbpU6lWXjFqf4SBnp"],De=tt=>tt?tt.split("-")[0]:""},21605:(Qn,qe,s)=>{"use strict";s.d(qe,{A:()=>M});var r=s(38502),I=Object.defineProperty,J=Object.defineProperties,N=Object.getOwnPropertyDescriptors,T=Object.getOwnPropertySymbols,te=Object.prototype.hasOwnProperty,q=Object.prototype.propertyIsEnumerable,ne=(w,y,j)=>y in w?I(w,y,{enumerable:!0,configurable:!0,writable:!0,value:j}):w[y]=j,B=(w,y)=>{for(var j in y||(y={}))te.call(y,j)&&ne(w,j,y[j]);if(T)for(var j of T(y))q.call(y,j)&&ne(w,j,y[j]);return w},l=(w,y)=>J(w,N(y)),U=(w,y)=>{var j={};for(var Q in w)te.call(w,Q)&&y.indexOf(Q)<0&&(j[Q]=w[Q]);if(w!=null&&T)for(var Q of T(w))y.indexOf(Q)<0&&q.call(w,Q)&&(j[Q]=w[Q]);return j},M=(0,r.forwardRef)((w,y)=>{var j=w,{size:Q,spin:ze,style:me}=j,Se=U(j,["size","spin","style"]);const Me=B(B({width:Q||"var(--x-icon-size, 1em)",height:Q||"var(--x-icon-size, 1em)",animation:ze?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),me);return r.createElement("svg",l(B({ref:y,style:Me},Se),{width:"12",height:"10",viewBox:"0 0 12 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),r.createElement("path",{d:"M12 5C12 2.23858 9.76142 0 7 0H5C2.23858 0 0 2.23858 0 5C0 7.76142 2.23858 10 5 10H7C9.76142 10 12 7.76142 12 5Z",fill:"url(#paint0_linear_941_73)"}),r.createElement("g",{filter:"url(#filter0_d_941_73)"},r.createElement("path",{d:"M7.9487 7.625H4.5513C4.083 7.625 3.67742 7.30001 3.57535 6.84296L2.99351 4.23773C2.89935 3.8161 3.34817 3.48155 3.72534 3.69225L4.10411 3.90384C4.32873 4.02932 4.6119 3.96386 4.75865 3.75252L5.82859 2.21172C6.02658 1.92661 6.44771 1.92502 6.64783 2.20864L7.74053 3.75726C7.88803 3.96631 8.16955 4.03028 8.39291 3.9055L8.77466 3.69225C9.15183 3.48155 9.60066 3.8161 9.50649 4.23773L8.92465 6.84296C8.82258 7.30001 8.417 7.625 7.9487 7.625Z",fill:"white"})),r.createElement("mask",{id:"mask0_941_73",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"2",y:"1",width:"8",height:"7"},r.createElement("path",{d:"M7.9487 7.625H4.5513C4.083 7.625 3.67742 7.30001 3.57535 6.84296L2.99351 4.23773C2.89935 3.8161 3.34817 3.48155 3.72534 3.69225L4.10411 3.90384C4.32873 4.02932 4.6119 3.96386 4.75865 3.75252L5.82859 2.21172C6.02658 1.92661 6.44771 1.92502 6.64783 2.20864L7.74053 3.75726C7.88803 3.96631 8.16955 4.03028 8.39291 3.9055L8.77466 3.69225C9.15183 3.48155 9.60066 3.8161 9.50649 4.23773L8.92465 6.84296C8.82258 7.30001 8.417 7.625 7.9487 7.625Z",fill:"white"})),r.createElement("g",{mask:"url(#mask0_941_73)"},r.createElement("path",{d:"M7.5 7.50011V5.00006L6.68054 2.13201C6.68054 2.13201 6.53336 1.78672 6.14453 1.74609C5.86401 1.71679 5.35547 1.66797 5.35547 1.66797C4.80859 1.48047 4.55469 1.32422 3.5 1L2 2.5001L3.50035 7.50011H7.5Z",fill:"url(#paint1_linear_941_73)"})),r.createElement("defs",null,r.createElement("filter",{id:"filter0_d_941_73",x:"1.98083",y:"0.996948",width:"8.53833",height:"7.62805",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},r.createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),r.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),r.createElement("feOffset",null),r.createElement("feGaussianBlur",{stdDeviation:"0.5"}),r.createElement("feComposite",{in2:"hardAlpha",operator:"out"}),r.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.983333 0 0 0 0 0.620304 0 0 0 0 0.0778472 0 0 0 0.5 0"}),r.createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_941_73"}),r.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_941_73",result:"shape"})),r.createElement("linearGradient",{id:"paint0_linear_941_73",x1:"-0.5",y1:"-2.5",x2:"3.48782",y2:"11.4977",gradientUnits:"userSpaceOnUse"},r.createElement("stop",{stopColor:"#FFDF8B"}),r.createElement("stop",{offset:"0.463542",stopColor:"#FFCC7E"}),r.createElement("stop",{offset:"1",stopColor:"#EA920E"})),r.createElement("linearGradient",{id:"paint1_linear_941_73",x1:"7",y1:"4",x2:"7",y2:"7.5",gradientUnits:"userSpaceOnUse"},r.createElement("stop",{stopColor:"#FFE9C8"}),r.createElement("stop",{offset:"1",stopColor:"#FFE9C8",stopOpacity:"0"}))))})},22215:(Qn,qe,s)=>{"use strict";s.d(qe,{o:()=>Kn});var r=s(38502),I=s(70768),J=s(67787),N=s(60690),T=s(70933),te=s(60651),q=s(16454),ne=s(72214);const B=r.createContext("light"),U=dn=>{var ft,Lt,bn,Yn;let{Component:on,props:yn}=dn;const lo=yn==null?void 0:yn.params.isDesign,qn=yn==null?void 0:yn.params.isPreview,Wn=yn.store.getState(),Nn=qn?(0,q.bF)(Wn):{},xn=lo?(0,te.uu)(Wn):Nn==null?void 0:Nn.isHTMLZip,Ye=lo?(0,te.pH)(Wn):Nn==null?void 0:Nn.isSquare,wn=lo?(0,te.rg)(Wn):Nn==null?void 0:Nn.isEmbedV2,Hn=lo?(0,T.HW)(Wn):(0,q.HW)(Wn),zn=lo?!1:(0,q.hM)(Wn),ko=lo?!1:(0,q.KR)(Wn),On=(0,te.bT)(Wn);if(xn||Ye||wn||!Hn||zn||ko||On)return;let jn=document.querySelector("#GUIDES");jn||(jn=document.createElement("div"),jn.id="GUIDES",document.body.appendChild(jn));const xo=document.createElement("div");jn.appendChild(xo);const jo=(0,I.createRoot)(xo),Qo=()=>{jo.unmount(),xo.remove()},cn=lo?Wn==null||(ft=Wn.ui)==null||(ft=ft.fixedLayout)==null?void 0:ft.preference:Wn==null||(Lt=Wn.container)==null||(Lt=Lt.common)==null?void 0:Lt.preference,In=(bn=cn==null?void 0:cn.theme)!=null?bn:"light",tn=(Yn=MB)==null?void 0:Yn.user;jo.render((0,ne.jsx)(J.NP,{theme:N.A[In],children:(0,ne.jsx)(B.Provider,{value:In,children:(0,ne.jsx)(on,{onClose:Qo,currentUser:tn,...yn})})}))};var C=s(93413),M=s(95549),w=s(53732),y=s.n(w),j=s(37342),Q=s(17307),ze=s(79150),me=s(56202),Se=s(25234),Me=s(86964);const De=J.Ay.div.withConfig({displayName:"styles__StyledGuideRectBox",componentId:"sc-1ucr0lj-0"})(["position:absolute;z-index:1049;pointer-events:none;&.grabbing{pointer-events:initial;cursor:grab;.grab-box{display:flex;}}.context{position:absolute;width:236px;padding:20px 16px 20px 20px;pointer-events:auto;background:#fff;border-radius:4px;box-shadow:0 0 20px 0 rgba(39,54,78,0.10);.content-title{position:relative;font-size:14px;font-weight:500;color:#1F292E;margin-bottom:10px;z-index:2;&.main-1{&::after{content:'';position:absolute;left:0;top:13px;width:32px;height:4px;background:#C8CDD0;z-index:-1;}}&.main-2{&::after{content:'';position:absolute;left:0;top:13px;width:28px;height:4px;background:#C8CDD0;z-index:-1;}}}.content-text{font-size:12px;color:#415058;margin-bottom:26px;}.close{margin-top:20px;margin-left:auto;width:80px;height:28px;display:flex;align-items:center;justify-content:center;background:#5B6B73;border-radius:2px;color:#FFFFFF;cursor:pointer;transition:all 0.2s ease-out;&:hover{background:#1F292E;color:#fff;}&:active{background:#1F292E;color:rgba(255,255,255,0.6);}}.icon-triangle{position:absolute;width:11px;height:6px;color:#fff;&.left{transform:rotate(-90deg);}&.right{transform:rotate(90deg);}}&:not(.grabbing){cursor:default;}.grab-box{display:none;position:absolute;top:0px;left:118px;cursor:grab;}&:hover{.grab-box{display:flex;}}}&#MD_",",&#MD_","{z-index:1102;.context{width:248px;border-radius:8px;border:2px solid ",";}.arrow-container{position:absolute;display:flex;align-items:center;justify-content:center;flex-direction:column;z-index:2;&.left{transform:rotate(270deg);}&.right{transform:rotate(90deg);}.circle{width:11px;height:11px;border-radius:50%;background-color:",";}.line{width:2px;background-color:",";}}.container-box{display:flex;align-items:center;justify-content:center;img{width:208px;border-radius:4px;}.title{display:block;color:",";font-weight:500;font-size:14px;margin-top:9px;}.desc{display:block;font-size:12px;color:",";margin-top:10px;}.btn-wrapper{display:flex;margin-top:22px;margin-left:auto;flex-direction:row;align-items:center;justify-content:flex-end;.btn{width:64px;}}}}&#MD_","{.container-box{.btn-wrapper{gap:6px;.btn{width:76px;font-weight:400;&.tutorial{border:1px solid ",";background:",";color:",";&:hover{background:",";}}}}}}&#MD_","{.container-box .box img{border-radius:4px;}.arrow-container .line{height:29px;}}&#MD_",",&#MD_",",&#MD_","{top:auto !important;bottom:40px !important;left:50% !important;transform:translateX(-50%);.context{background:rgba(21,21,21,0.8);border:1px solid #363738;position:relative;box-shadow:0 3px 6px rgba(0,0,0,0.02),0 6px 16px rgba(0,0,0,0.02),0 9px 28px rgba(0,0,0,0.09);border-radius:6px;width:auto;height:auto;padding:0;}}"],C.c.GUIDE_NEW_OVERLAY_ONCE,C.c.GUIDE_POSITION_STICKY_FEATURES,dn=>dn.theme.color_proto,dn=>dn.theme.color_proto,dn=>dn.theme.color_proto,dn=>dn.theme.color_proto,Me.fm.color_text_L2.value_light,C.c.GUIDE_NEW_OVERLAY_ONCE,Me.fm.color_bg_border_02.value_light,Me.fm.color_bg_white.value_light,Me.fm.color_text_L1.value_light,Me.fm.color_btn_secondary_hover.value_light,C.c.GUIDE_POSITION_STICKY_FEATURES,C.c.GUIDE_VECTOR_TASK_QUICK_CREATE,C.c.GUIDE_VECTOR_TASK_ENDING_EDITING,C.c.GUIDE_VECTOR_TASK_EDITING_EXIST_VECTOR),tt=J.Ay.div.withConfig({displayName:"styles__StyledGuideRectBoxTips",componentId:"sc-1ucr0lj-1"})(["display:flex;align-items:center;width:100%;height:100%;padding:6px 10px;.vector{width:24px;margin-right:10px;path{&:not([fill]){fill:none;}}}span{font-size:12px;line-height:18px;color:rgba(255,255,255,0.9);white-space:nowrap;overflow:hidden;}.closeIcon{margin-left:10px;svg{path{fill:#b8bcbf;}}&:hover,&:active{background:#4f5052;}}"]),at=(dn,ft)=>({selector:ft,renderBox:Lt=>{let{close:bn}=Lt;return(0,ne.jsxs)(tt,{children:[(0,ne.jsx)(Q.C,{name:"art_board/guide/vector",className:"vector"}),(0,ne.jsx)("span",{dangerouslySetInnerHTML:{__html:dn}}),(0,ne.jsx)(ze.A,{className:"closeIcon",name:"art_board/guide/vector/close",onClick:bn})]})}}),ht=dn=>{let{selector:ft,title:Lt,desc:bn,getPosition:Yn,arrow:on,imgUrl:yn,subSelector:lo,isShowGrab:qn=!1,howToShow:Wn,hasTutorial:Nn=!1,tutorialUrl:xn=""}=dn;return{selector:ft,getPosition:Yn,subSelector:lo,isShowGrab:qn,hasTutorial:Nn,tutorialUrl:xn,renderBox:Ye=>{let{close:wn}=Ye;return(0,ne.jsxs)(ne.Fragment,{children:[on&&(0,ne.jsxs)("div",{className:"arrow-container "+on.position,style:on.offset,children:[(0,ne.jsx)("div",{className:"circle"}),(0,ne.jsx)("div",{className:"line"})]}),(0,ne.jsx)("div",{className:"container-box",children:(0,ne.jsxs)("div",{className:"box",children:[(0,ne.jsx)("img",{src:yn,alt:""}),(0,ne.jsx)("span",{className:"title",children:Lt}),(0,ne.jsx)("span",{className:"desc",children:bn}),(0,ne.jsxs)("div",{className:"btn-wrapper",children:[Nn&&(0,ne.jsx)(Se.Oc,{forceTheme:"light",type:"primary",size:"tiny",corner:"soft",className:"btn tutorial",onClick:()=>(0,j.Ix)(xn),children:I18N.CommonGuides.visit_tutorial}),(0,ne.jsx)(Se.Oc,{forceTheme:"light",type:"primary",size:"tiny",corner:"soft",className:"btn",onClick:wn,children:I18N.CommonGuides.v8guide3})]})]})})]})},howToShow:Ye=>{Wn&&Wn(Ye)}}},Je=dn=>({[C.c.GUIDE_VECTOR_TASK_QUICK_CREATE]:at(dn.CommonGuides.guide_vector_task_quick_create,"mb-viewport"),[C.c.GUIDE_VECTOR_TASK_ENDING_EDITING]:at(dn.CommonGuides.guide_vector_task_ending_editing,"mb-viewport"),[C.c.GUIDE_VECTOR_TASK_EDITING_EXIST_VECTOR]:at(dn.CommonGuides.guide_vector_task_editing_exist_vector.replace(/%shortcut%/,(0,me.cX)()?"\u2318":"ctrl"),"mb-viewport"),[C.c.GUIDE_POSITION_STICKY_FEATURES]:ht({selector:C.c.GUIDE_POSITION_STICKY_FEATURES,subSelector:'[data-value="sticky"]',imgUrl:"/mb-proto2/images/guide/newGuides/guide_"+C.c.GUIDE_POSITION_STICKY_FEATURES+".gif",title:"\u65B0\u589E\u5438\u9876\u56FA\u5B9A",desc:"\u652F\u6301\u8BA9\u7EC4\u4EF6\u6EDA\u52A8\u5230\u7279\u5B9A\u4F4D\u7F6E\u65F6\u56FA\u5B9A",getPosition:()=>({top:-152,right:33}),arrow:{position:"right",offset:{top:143,right:-26}}}),[C.c.GUIDE_NEW_OVERLAY_ONCE]:ht({selector:C.c.GUIDE_NEW_OVERLAY_ONCE,imgUrl:"/mb-proto2/images/guide/guide_new_overlay_once.png",title:dn.CommonGuides.guide_new_overlay_once.title,desc:dn.CommonGuides.guide_new_overlay_once.desc,hasTutorial:!0,tutorialUrl:"/hc/articles/441",getPosition:()=>({top:30,left:30})})});var $=s(34);class mt extends r.PureComponent{constructor(ft){super(ft),(0,M.A)(this,"minLeft",0),(0,M.A)(this,"minTop",0),(0,M.A)(this,"maxLeft",window.innerWidth),(0,M.A)(this,"maxTop",window.innerHeight),(0,M.A)(this,"setRef",bn=>this.$ref=bn),(0,M.A)(this,"handleResize",()=>{const bn=Je(I18N)[this.props.guideType];this.setState({style:(0,$.gd)("."+bn.selector+" "+(bn.subSelector?bn.subSelector:""))})}),(0,M.A)(this,"handleCloseGuide",()=>{const{guideType:bn}=this.props;setTimeout(this.props.onClose,250),MB.commonGuideHelper.markGuideAsRead(bn)}),(0,M.A)(this,"handleCustom",()=>{const{guideType:bn}=this.props;this.handleCustomAction(bn)}),(0,M.A)(this,"handleCustomAction",bn=>{({[C.c.GUIDE_TOOLBAR_EXPORT_TO_ABOARD]:()=>{MB.commonGuideHelper.closeGuide(C.c.GUIDE_TOOLBAR_EXPORT_TO_ABOARD),MB.commonGuideHelper.markGuideAsRead(C.c.GUIDE_TOOLBAR_EXPORT_TO_ABOARD)}})[bn]()}),(0,M.A)(this,"getLimitValue",()=>{if(!this.$ref)return;const{width:bn,height:Yn}=this.$ref.getBoundingClientRect();this.minLeft=0,this.minTop=66,this.maxLeft=window.innerWidth-bn,this.maxTop=window.innerHeight-Yn}),(0,M.A)(this,"validatePosition",(bn,Yn)=>(bn>this.maxLeft&&(bn=this.maxLeft),bn<this.minLeft&&(bn=this.minLeft),Yn>this.maxTop&&(Yn=this.maxTop),Yn<this.minTop&&(Yn=this.minTop),{left:bn,top:Yn})),(0,M.A)(this,"handleMouseDown",(bn,Yn)=>{const{style:on}=this.state;if(!on)return;this.setState({isGrabbing:!0});const{x:yn,y:lo}=on;this.getLimitValue();const{clientX:qn,clientY:Wn}=bn,Nn=(Yn==null?void 0:Yn.left)||0,xn=(Yn==null?void 0:Yn.top)||0,Ye=Hn=>{const zn=Hn.clientX-qn+Nn,ko=Hn.clientY-Wn+xn,{left:On,top:Mo}=this.validatePosition(yn+zn,lo+ko),jn=On-Nn,xo=Mo-xn;this.setState({style:{...on,x:jn,y:xo}})},wn=()=>{this.setState({isGrabbing:!1}),document.removeEventListener("mousemove",Ye),document.removeEventListener("mouseup",Ye)};document.addEventListener("mousemove",Ye),document.addEventListener("mouseup",wn)});const Lt=Je(I18N)[this.props.guideType];this.state={style:(0,$.gd)("."+Lt.selector+" "+(Lt.subSelector?Lt.subSelector:"")),tabIndex:0,isGrabbing:!1}}componentDidMount(){window.addEventListener("resize",this.handleResize)}componentWillUnmount(){window.removeEventListener("resize",this.handleResize)}render(){const{guideType:ft}=this.props,{style:Lt,isGrabbing:bn}=this.state;if(!Lt)return null;const{y:Yn,x:on,width:yn,height:lo}=Lt,qn=Je(I18N)[ft],{getPosition:Wn,isShowGrab:Nn}=qn,xn=typeof Wn=="function"?Wn({width:yn,height:lo}):void 0;return(0,ne.jsx)(De,{id:"MD_"+ft,style:{top:Yn,left:on},className:y()(bn&&"grabbing"),children:(0,ne.jsxs)("div",{className:y()("context",bn&&"grabbing"),style:{...xn},ref:this.setRef,children:[Nn&&(0,ne.jsx)("div",{className:"grab-box",onMouseDown:Ye=>this.handleMouseDown(Ye,xn),children:(0,ne.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"10",fill:"none",children:(0,ne.jsx)("path",{stroke:"#fff",strokeLinecap:"round",d:"M1 3.5h10M1 6.5h10"})})}),qn.renderBox({close:this.handleCloseGuide,custom:this.handleCustom,tabIndex:this.state.tabIndex})]})})}}var yt=s(76431);const Le=J.Ay.div.withConfig({displayName:"styles__StyledNewGuideText",componentId:"sc-13rt4x7-0"})(["position:absolute;&#MD_GUIDE_SELECT_STICKY{.context{margin-left:100%;}}.context{position:absolute;width:290px;min-height:136px;padding:17px 38px 13px 14px;pointer-events:auto;display:flex;background:linear-gradient(110.63deg,#1684FC -0.49%,#6C72FF 87.66%);border-radius:4px;color:#ffffff;z-index:1049;.context-background.svg-icon{position:absolute;width:120px;height:127px;bottom:0;right:0;z-index:1;> *{fill:none;}}.arrow-container{position:absolute;display:flex;align-items:center;justify-content:center;flex-direction:column;z-index:2;&.left{transform:rotate(270deg);}&.right{transform:rotate(90deg);}.circle{width:13px;height:13px;border-radius:50%;background-color:",";}.line{width:2px;height:13px;background-color:",";}}.content-container{flex:1;display:flex;flex-direction:column;justify-content:center;z-index:2;row-gap:6px;.content{flex:1;.title{font-size:14px;line-height:20px;font-weight:500;height:28px;display:flex;align-items:center;margin-bottom:6px;.title-icon{width:28px;height:100%;margin-right:6px;background:rgba(255,255,255,0.2);border-radius:50%;display:flex;align-items:center;justify-content:center;.svg-icon{&.GUIDE_MORE_PAGE,&.GUIDE_TO_PREVIEW_IN_SHARE{> *{fill:none;}}}}}}.bottom{display:flex;justify-content:end;.btn{width:69px;height:28px;background-color:#ffffff;color:#1684FC;display:flex;align-items:center;justify-content:center;border-radius:4px;cursor:pointer;&:hover{background-color:#F1F8FF;}&.more{background-color:inherit;border:1px solid #FFFFFF;color:#fff;margin-right:8px;&:hover{background:rgba(255,255,255,0.2);}}&.secondry{background-color:transparent;color:#ffffff;border:1px solid #ffffff;margin-right:8px;&:hover{background:rgba(255,255,255,0.2);}}}}}}"],dn=>dn.arrowColor,dn=>dn.arrowColor),He=dn=>{const{guideType:ft,onClose:Lt,store:bn,params:Yn}=dn,on=(0,r.useMemo)(()=>{var Jt;return!Yn.isDesign||!bn||typeof(bn==null?void 0:bn.getState)!="function"?!1:((Jt=bn.getState().ui)==null?void 0:Jt.fixedLayout.preference.layoutV8)==="old_right"},[bn,Yn]),yn=(0,r.useMemo)(()=>{var Jt;return!Yn.isDesign||!bn||typeof(bn==null?void 0:bn.getState)!="function"?0:((Jt=bn.getState().ui)==null?void 0:Jt.leftLayout.leftPanel.width)+(on?0:48)},[bn,Yn,on]),[lo,qn]=(0,r.useState)(!1),Wn=(0,r.useCallback)(()=>(0,$.gd)("."+(0,yt.K)(I18N,on)[ft].selector),[ft,on]);(0,r.useEffect)(()=>{lo&&(MB.commonGuideHelper.closeGuide(ft),MB.commonGuideHelper.markGuideAsRead(ft))},[lo,ft]);const Nn=Wn();if(!Nn)return null;const{y:xn,x:Ye,width:wn,height:Hn}=Nn,zn=(0,yt.K)(I18N,on)[ft],{primaryBtnText:ko,secondaryBtnText:On,onClickPrimaryBtn:Mo,onClickSecondryBtn:jn}=zn,xo=zn==null?void 0:zn.guide;if(zn!=null&&zn.getPositionOffset){const Jt=zn.getPositionOffset(Ye,xn,wn,Hn,yn),Ln=(xo==null?void 0:xo.position)||{};for(const Xn in Ln)Ln[Xn]=Ln[Xn]+Jt[Xn]}const jo=zn==null?void 0:zn.arrow,Qo=zn==null?void 0:zn.icon,cn=async()=>{await MB.commonGuideHelper.markGuideAsRead(ft),zn.callback&&zn.callback(),Lt(),qn(!0)},In=async()=>{await cn(),Mo&&Mo()},tn=async()=>{await cn(),jn&&jn()};return(0,ne.jsx)(Le,{id:"MD_"+ft,style:{top:xn,left:Ye,width:wn,height:Hn},arrowColor:jo==null?void 0:jo.color,children:(0,ne.jsxs)("div",{className:"context",style:{...xo==null?void 0:xo.position},children:[(0,ne.jsx)(Q.C,{name:"art_board/guide/text/background",className:"context-background"}),jo&&(0,ne.jsxs)("div",{className:y()(jo==null?void 0:jo.direction,"arrow-container"),style:{...jo==null?void 0:jo.position},children:[(0,ne.jsx)("div",{className:"circle"}),(0,ne.jsx)("div",{className:"line"})]}),(0,ne.jsxs)("div",{className:"content-container",children:[(0,ne.jsxs)("div",{className:"content",children:[(0,ne.jsxs)("div",{className:"title",children:[(0,ne.jsx)("div",{className:"title-icon",children:(0,ne.jsx)(Q.C,{className:ft,name:Qo==null?void 0:Qo.name,style:{width:Qo.width,height:Qo.height}})}),xo.title]}),(0,ne.jsx)("div",{className:"text",dangerouslySetInnerHTML:{__html:xo==null?void 0:xo.content}})]}),(0,ne.jsxs)("div",{className:"bottom",children:[(zn==null?void 0:zn.moreLink)&&(0,ne.jsx)("a",{className:"btn more",href:zn==null?void 0:zn.moreLink,target:"_blank",rel:"noopener noreferrer",children:I18N.CommonGuides.version_guide_learn_more}),jn&&(0,ne.jsx)("div",{className:"btn secondry",onClick:tn,children:On||I18N.CommonGuides.v8guide3}),(0,ne.jsx)("div",{className:"btn primary",onClick:In,children:ko||I18N.CommonGuides.v8guide3})]})]})]})})};var ye=s(38462),je=s(5209),ot=s(91110),we=s(67588);const $e=J.Ay.div.withConfig({displayName:"styles__StyledGuideRectBox",componentId:"sc-c63e9t-0"})(["position:absolute;.frame-border{position:absolute;border-radius:6px;border:1px solid #1684FC;outline:2px solid rgba(22,132,252,0.25);z-index:1;pointer-events:none;}.context{position:absolute;width:248px;height:320px;padding:20px 20px 24px;pointer-events:auto;background-color:#fff;border-radius:8px;display:flex;border:2px solid #1684FC;z-index:1049;.arrow-container{position:absolute;display:flex;align-items:center;justify-content:center;flex-direction:column;&.left{transform:rotate(270deg);}&.right{transform:rotate(90deg);}.circle{width:11px;height:11px;border-radius:50%;background-color:#1684FC;}.line{width:2px;height:13px;background-color:#1684FC;}}.content-container{display:flex;flex-direction:column;justify-content:center;.top-content{position:relative;width:208px;height:151px;border-radius:4px;overflow:hidden;img{width:100%;height:100%;}.close-btn{position:absolute;right:4px;top:4px;width:20px;height:20px;display:flex;align-items:center;justify-content:center;cursor:pointer;color:#ffffff;border-radius:4px;&:hover{background:rgba(0,0,0,0.2);}svg{width:20px;}}}.bottom-content{font-size:12px;color:#666;flex:1;display:flex;flex-direction:column;.content{flex:1;.title{color:#1684FC;font-size:14px;line-height:20px;font-weight:500;margin:9px 0 10px;}}.bottom{display:flex;justify-content:flex-end;align-items:center;.steps{color:#999999;}.steps-btn{display:flex;.btn{width:76px;height:24px;border-radius:4px;font-size:12px;line-height:14px;display:flex;align-items:center;justify-content:center;cursor:pointer;&.next{background-color:#1684FC;color:#ffffff;margin-left:6px;&:hover{background-color:#1169C9;}}&.prev{border:1px solid #DBDBDB;color:#333333;&:hover{background-color:#F2F2F2;}}}}}}}}"]),ge=dn=>{const{guideType:ft,params:Lt,onClose:bn}=dn,{store:{getState:Yn}}=dn,on=Lt.isDesign,yn=Yn(),qn=(on&&(0,we.bP)(yn))==="old_right",[Wn,Nn]=(0,r.useState)(!1),xn=(0,ye.K)(I18N,qn)[ft],Ye="."+xn.selector,wn=!document.querySelector(Ye),Hn=(0,r.useCallback)(()=>wn?(0,$.gd)("."+C.c.GUIDE_TOOLBAR_COMMON):(0,$.gd)(Ye),[wn,Ye]),zn=ye.E;(0,r.useEffect)(()=>{Wn&&(MB.commonGuideHelper.closeGuide(ft),MB.commonGuideHelper.markGuideAsRead(ft))},[Wn,ft]);const ko=Hn();if(!ko)return null;const{y:On,x:Mo,width:jn,height:xo}=ko,jo=xn,Qo=jo==null?void 0:jo.guide,cn=jo==null?void 0:jo.imgUrl,In=wn||jo==null?void 0:jo.arrow,tn=wn||jo==null?void 0:jo.frame,Jt=zn.indexOf(ft)+1,Ln=wn?(0,ye.K)(I18N)[C.c.GUIDE_TOOLBAR_COMMON].position:Qo==null?void 0:Qo.position,Xn=()=>{(0,je.kH)("step_guide_V8",{guide_number:Jt,guide_type:"\u8001\u7528\u6237"}),!ENV.IS_MO&&(0,je.kH)("novice_task_V8",{operation_type:"\u5F00\u59CB"})},Dn=()=>{MB.commonGuideHelper.batchMarkGuideAsRead(zn),bn(),Nn(!0),Xn(),ot.Y.closeNewGuideTrack({step_num:Jt})},go=async()=>{if(bn(),ot.Y.clickNewGuideTrack({step_num:Jt}),MB.commonGuideHelper.markGuideAsRead(ft),Jt===zn.length){Xn();return}const Uo=zn[Jt];MB.commonGuideHelper.tryToShowGuide(Uo)};return MB.commonGuideHelper.batchMarkGuideAsRead(zn),(0,ne.jsxs)($e,{id:"MD_"+ft,style:{top:On,left:Mo,width:jn,height:xo},children:[tn&&(0,ne.jsx)("div",{className:"frame-border",style:{...tn.position,width:tn.width,height:tn.height}}),(0,ne.jsxs)("div",{className:"context",style:{...Ln},children:[In&&(0,ne.jsxs)("div",{className:y()(In==null?void 0:In.direction,"arrow-container"),style:{...In==null?void 0:In.position},children:[(0,ne.jsx)("div",{className:"circle"}),(0,ne.jsx)("div",{className:"line"})]}),(0,ne.jsxs)("div",{className:"content-container",children:[(0,ne.jsxs)("div",{className:"top-content",children:[(0,ne.jsx)("img",{src:cn,alt:""}),(0,ne.jsx)("div",{className:"close-btn",onClick:Dn,children:(0,ne.jsx)(Q.C,{name:"common/close_weight"})})]}),(0,ne.jsxs)("div",{className:"bottom-content",children:[(0,ne.jsxs)("div",{className:"content",children:[(0,ne.jsx)("div",{className:"title",children:Qo.title}),(0,ne.jsx)("div",{className:"text",children:Qo.content})]}),(0,ne.jsx)("div",{className:"bottom",children:(0,ne.jsx)("div",{className:"steps-btn",children:(0,ne.jsx)("div",{onClick:go,className:"btn next",children:Jt===zn.length?I18N.CommonGuides.tryNow:I18N.CommonGuides.next})})})]})]})]})]})},Ze=(0,r.memo)(ge);var W=s(75908),an=s(21385),_t=s(78257),nn=s(60129),Oe=s(46712),sn=s(4235),It=s(62532);const Pt=dn=>{const{guideType:ft,guideConfig:Lt,currentStep:bn=1,totalStep:Yn,resizeFlag:on=0,sceneTag:yn,handleCloseGuide:lo,dispatch:qn,isOpenCreatePage:Wn}=dn,[Nn,xn]=(0,r.useState)({x:0,y:0}),[Ye,wn]=(0,r.useState)({x:0,y:0}),[Hn,zn]=(0,r.useState)(bn),[ko,On]=(0,r.useState)(!1),[Mo,jn]=(0,r.useState)(!0),{guide:xo,imgUrl:jo,selector:Qo}=Lt||{},cn=xo==null?void 0:xo.offset,In=(0,r.useMemo)(()=>{var go,Uo;let Ho=(0,$.gd)("."+Qo);if(ft===C.c.GUIDE_NOVICE_2309_TIP_1&&(Ho={x:0,y:0}),ft===C.c.GUIDE_NOVICE_2309_STEP_3){var ua,la;const ya=MB.__store__.getState(),eo=(0,sn.nE)(ya);if((0,an.VC)(yn)==="DS"||!eo[0])Ho={x:0,y:0};else{var To,Ia;const{x:so=0,y:to=0,w:Vo=0,h:ta=0}=sdkStore.getLocalBound((To=eo[0])==null?void 0:To.key)||{},Qa=so-Vo/2,qr=to-ta/2,kr=(Ia=eo[0])==null?void 0:Ia.sup,{hotAttr:ur}=sdkStore.getHotItem(kr),{x:Mr,y:gr,w:dr,h:wi}=ur||{},gi=Mr-dr/2,Li=gr-wi/2,Ni=(0,T.X_)(ya)/100,{startX:Ai,startY:Bi}=(0,It.$U)(ya);Ho={x:(Ai-gi-Qa)*Ni,y:(Bi-Li-qr)*Ni}}return{top:-((ua=Ho)==null?void 0:ua.y)+cn.y,left:-((la=Ho)==null?void 0:la.x)+(cn==null?void 0:cn.x)}}return Ho?{top:((go=Ho)==null?void 0:go.y)+cn.y,left:((Uo=Ho)==null?void 0:Uo.x)+(cn==null?void 0:cn.x)}:null},[Qo,ft,cn,yn]),tn=(0,r.useMemo)(()=>Hn!==bn?In:{...In||{},transform:"translate("+(Ye.x+Nn.x)+"px, "+(Ye.y+Nn.y)+"px)"},[In,Ye,Nn,bn,Hn]),Jt=(0,r.useCallback)(go=>{const{pageX:Uo,pageY:Ho}=go.nativeEvent;On(!0);const ua=(In==null?void 0:In.top)||0,la=(In==null?void 0:In.left)||0,To=ua+Ye.y,Ia=la+Ye.x,ya=so=>{const to=so.pageX-Uo,Vo=so.pageY-Ho,ta=Math.min(window.innerHeight-To-Oe.mO-10,Math.max(-To+10,Vo));return{offsetX:Math.min(window.innerWidth-Ia-Oe.NW-10,Math.max(-Ia+10,to)),offsetY:ta}},eo=so=>{const{offsetX:to,offsetY:Vo}=ya(so);xn({x:to,y:Vo})},Oo=so=>{const{offsetX:to,offsetY:Vo}=ya(so);wn({x:Ye.x+to,y:Ye.y+Vo}),xn({x:0,y:0}),On(!1),document.removeEventListener("mousemove",eo),document.removeEventListener("mouseup",Oo)};document.addEventListener("mousemove",eo),document.addEventListener("mouseup",Oo)},[In,Ye]),Ln=(0,r.useMemo)(()=>(0,ne.jsxs)(ne.Fragment,{children:[bn===1&&(0,ne.jsx)(Oe.yP,{}),bn===3&&(0,ne.jsx)(Oe.id,{}),bn===4&&(0,ne.jsx)(Oe.ss,{})]}),[bn]),Xn=(0,r.useMemo)(()=>(0,ne.jsxs)(ne.Fragment,{children:[bn===1&&(0,ne.jsx)(Oe.$D,{}),(bn===2||bn===3)&&(0,ne.jsx)(Oe.no,{currentStep:bn}),bn===4&&(0,ne.jsx)(Oe.id,{}),bn===5&&(0,ne.jsx)(Oe.ss,{})]}),[bn]),Dn=(0,r.useCallback)(()=>{if(!Mo)return null;const go=(0,an.VC)(yn);if(Wn)return(0,ne.jsx)(Oe.$D,{});switch(go){case"MP":case"PC":return Ln;case"DS":return Xn;default:return null}},[Ln,Xn,Mo,Wn,yn]);return(0,r.useEffect)(()=>{xn({x:0,y:0}),wn({x:0,y:0}),zn(bn)},[bn]),!Lt||!bn||!In?null:(0,ne.jsxs)(ne.Fragment,{children:[(0,ne.jsx)(Oe.GT,{id:"MD_"+ft,className:y()(ko&&"grabbing"),children:(0,ne.jsxs)("div",{className:y()("context",ko&&"grabbing"),style:{...tn},children:[(0,ne.jsx)("div",{className:"grab-box",onMouseDown:Jt,children:(0,ne.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"10",fill:"none",children:(0,ne.jsx)("path",{stroke:"#fff",strokeLinecap:"round",d:"M1 3.5h10M1 6.5h10"})})}),(0,ne.jsxs)("div",{className:"content",children:[(0,ne.jsx)("div",{className:"top",children:(0,ne.jsx)("img",{src:jo,alt:"",draggable:"false"})}),(0,ne.jsxs)("div",{className:"bottom",children:[(0,ne.jsx)("div",{className:"desc-guide",children:(0,ne.jsx)(dt,{guideType:ft,content:xo==null?void 0:xo.content})}),(0,ne.jsxs)("div",{className:"steps-guide",children:[(0,ne.jsx)("div",{className:"step-info",children:Yn&&bn+"/"+Yn}),(0,ne.jsx)("div",{className:"action-btn",children:!Yn&&(0,ne.jsx)("button",{onClick:lo,className:"btn know",children:I18N.CommonGuides.v8guide3})})]})]})]})]})}),Dn()]})};function dt(dn){const{guideType:ft,content:Lt}=dn;if(ft===C.c.GUIDE_NOVICE_2309_STEP_3&&Lt!=null&&Lt.includes("\u3010\u26A1\uFE0F\u3011")){const bn=Lt==null?void 0:Lt.split("\u3010\u26A1\uFE0F\u3011");return(0,ne.jsxs)("div",{className:"text",children:[bn[0],(0,ne.jsx)("div",{className:"handler",children:(0,ne.jsx)(Q.C,{name:"new_replace/thunder"})}),bn[1]]})}return ft===C.c.GUIDE_NOVICE_2408_CREATE_PAGE?(0,ne.jsxs)(ne.Fragment,{children:[(0,ne.jsx)("div",{className:"guide-title",children:I18N.CommonGuides.v8guide_create_page}),(0,ne.jsx)("div",{className:"text",children:I18N.CommonGuides.v8guide_novice_step1})]}):(0,ne.jsx)("div",{className:"text",dangerouslySetInnerHTML:{__html:Lt}})}const Vn=(0,r.memo)(Pt),o=J.Ay.div.withConfig({displayName:"styles__StyledGuideStartModal",componentId:"sc-1woarnk-0"})(["position:fixed;left:0;right:0;top:0;bottom:0;background:rgba(0,0,0,0.4);z-index:9999;transition:all 0.3s;.modal-bg{z-index:10;opacity:1;cursor:initial;position:fixed;display:flex;flex-direction:column;align-items:center;justify-content:center;top:50%;right:50%;transform:translate(50%,-60%);transition:all 0.3s;width:400px;padding:20px 20px 14px 20px;background:#FFF;border-radius:10px;box-shadow:0px 9px 28px 0px rgba(0,0,0,0.09),0px 6px 16px 0px rgba(0,0,0,0.02),0px 3px 6px 0px rgba(0,0,0,0.02);.image{width:100%;height:180px;border-radius:10px;margin-bottom:20px;img{width:100%;}}.title{color:#333;font-size:18px;font-weight:700;margin-bottom:8px;}.description{color:#333;font-size:14px;font-weight:400;margin-bottom:14px;.step{color:#1684FC;font-weight:500;}.new-user-gift-tips{-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-image:linear-gradient(90deg,#366eff,#1abccb);}}.start-button{display:flex;width:180px;height:36px;justify-content:center;align-items:center;background-color:#1684FC;border-radius:6px;margin-bottom:10px;color:#ffffff;font-size:14px;font-weight:500;transition:background-color 0.3 ease-in;&:hover{background-color:#459DFD;}&:active{background-color:#1971D1;}.new-user-tips-icon{width:20px;height:20px;}}.guide-close{position:absolute;top:-30px;right:-30px;cursor:pointer;svg{width:24px;height:24px;rect{fill:",";&:hover{fill:",";}}}}}"],dn=>dn.theme.color_slider_normal,dn=>dn.theme.color_slider_hover);var Gn=s(47163);function xt(dn){let{sceneTag:ft="",handleStart:Lt,handleClose:bn}=dn;const Yn=(0,an.VC)(ft)==="DS";return(0,r.useEffect)(()=>{var on;(on=MB)==null||(on=on.commonGuideHelper)==null||on.markGuideAsRead(C.c.GUIDE_NOVICE_2309_START)},[]),(0,ne.jsx)(o,{children:(0,ne.jsxs)("div",{className:"modal-bg",onClick:on=>on.stopPropagation(),children:[(0,ne.jsx)("div",{className:"image",children:(0,ne.jsx)("img",{src:"/mb-proto2/images/guide/noviceGuides2309/guide_start_background_image.png",alt:I18N.CommonGuides.guide_start_2309_title,draggable:"false"})}),(0,ne.jsx)("div",{className:"title",children:Yn?I18N.CommonGuides.guide_start_2309_DS_title:I18N.CommonGuides.guide_start_2309_title}),(0,ne.jsxs)("div",{className:"description",children:[I18N.CommonGuides.guide_start_2309_desc_1,(0,ne.jsxs)("span",{className:"step",children:[" ",Yn?5:4," "]}),I18N.CommonGuides.guide_start_2309_desc_2,(0,ne.jsx)("span",{className:"new-user-gift-tips",children:I18N.CommonGuides.guide_start_2309_desc_3})]}),(0,ne.jsxs)("button",{className:"start-button",onClick:Lt,children:[I18N.CommonGuides.guide_start_2309_button_start,(0,Gn.w)()==="zh-CN"&&(0,ne.jsx)("img",{className:"new-user-tips-icon",src:"https://cdn.modao.cc/dashboard/guide/new_user_gift_tips.png"})]}),(0,ne.jsx)("div",{className:"guide-close",onClick:bn,children:(0,ne.jsx)(Q.C,{name:"design/guides/close"})})]})})}const Ot=xt;var wt=s(47695);const fe=dn=>{const{dispatch:ft,sceneTag:Lt="",onClose:bn}=dn,[Yn,on]=(0,r.useState)(0),[yn,lo]=(0,r.useState)(0),qn=(0,an.VC)(Lt)==="DS",Wn=qn?an.H:an.bu,Nn=Wn[Yn-1],xn=(0,an.Dx)(Lt,I18N)[Nn],Ye=(0,r.useCallback)(async Mo=>{var jn;const xo=(0,an.VC)(Lt)==="DS";switch(Mo){case 1:if(xo)break;await ft({type:"entry:prepare:novice:guide:screen:data",payload:{mtResourceCid:(0,an.xR)(Lt),marketTemplateKey:(0,an.jI)(Lt),sceneTag:Lt}}),await ft({type:"set:current:popup:panel",payload:{name:_t.lS.Builtin}});break;case 2:if(!xo)break;ft({type:"widget-panel:update:platFormType",payload:{platformType:"DS-screen",projectCid:(jn=MB.getRootProject())==null?void 0:jn.cid}}),ft({type:"widget-panel:update:level1",payload:{level1:"\u6846\u67B6\u80CC\u666F",isScrollLevel1:!0}});break;case 3:if(xo){var jo;ft({type:"widget-panel:update:platFormType",payload:{platformType:"DS-screen",projectCid:(jo=MB.getRootProject())==null?void 0:jo.cid}}),ft({type:"widget-panel:update:level1",payload:{level1:"\u5730\u56FE",isScrollLevel1:!0}})}break;default:break}},[Lt,ft]),wn=(0,r.useCallback)(()=>{MB.commonGuideHelper.markGuideAsRead(C.c.GUIDE_NOVICE_2309),bn()},[bn]),Hn=(0,r.useCallback)(async()=>{await Ye(1),on(1),ot.Y.noviceGuide2309StartClick("\u7ACB\u5373\u5F00\u59CB",Lt),["PC","DS"].includes((0,an.VC)(Lt))&&ft({type:"entry:set:scale",payload:{scale:30}})},[ft,Ye,Lt]),zn=(0,r.useCallback)(()=>{ft({type:"entry:skip:novice:guide"}),MB.commonGuideHelper.markGuideAsRead(C.c.GUIDE_NOVICE_2309),MB.commonGuideHelper.markGuideAsRead(C.c.GUIDE_2407_PREVIEW_CLOSE);const Mo=MB.commonGuideHelper.getState().commonGuidesHasShown;ft({type:"update:taskList:data",payload:{completeList:Mo}}),ft({type:"update:taskList:isCollapse",payload:{isCollapse:!1}}),ot.Y.noviceGuide2309StartClick("\u81EA\u884C\u63A2\u7D22",Lt),wn()},[Lt,wn,ft]),ko=(0,r.useCallback)(async Mo=>{const jn=Wn[Yn-1];if(Mo&&Mo!==jn)return;if(jn&&MB.commonGuideHelper.markGuideAsRead(jn),ot.Y.noviceGuide2309StepClick(Yn,Lt),Yn===Wn.length){try{await ft({type:"entry:fetch:guideTask:award"})}catch(Qo){console.error("guide error:",Qo)}setTimeout(()=>wn(),200);return}let xo=Yn;if(!qn)try{var jo;const Qo=(jo=MB)==null||(jo=jo.commonGuideHelper)==null?void 0:jo.getState().commonGuidesHasShown,cn=nn._D.filter((Jt,Ln)=>Ln+1!==Yn).find(Jt=>!Qo.includes(Jt)),In=nn._D.indexOf(cn),tn=In<0?Wn.length:In;xo=Math.max(Yn,tn)}catch(Qo){console.log(Qo.message)}if(xo===Wn.length){try{await ft({type:"entry:fetch:guideTask:award"})}catch(Qo){console.error("guide error:",Qo)}setTimeout(()=>wn(),200);return}await Ye(xo+1),on(xo+1)},[Yn,Ye,wn,Lt]),On=(0,r.useCallback)(()=>lo(Mo=>(Mo+1)%10),[]);if((0,r.useEffect)(()=>{window.addEventListener("resize",On)},[On]),(0,r.useEffect)(()=>(MB.commonGuideHelper.registerMountGuideCallback(C.c.GUIDE_NOVICE_2309,{handleContinue:ko,handleClose:wn,handleResize:On}),()=>{MB.commonGuideHelper.removeMountGuideCallback(C.c.GUIDE_NOVICE_2309)}),[ko,wn,On]),(0,r.useEffect)(()=>{if((0,wt.cz)())return;const Mo=(0,an.VC)(Lt)==="DS"?an.g7:[(0,an.xR)(Lt)];ft({type:"entry:resources:init:marketTemplateItemList:map",payload:{resourcesCids:Mo}})},[Lt,ft]),Yn===0){if((0,wt.cz)()){ft({type:"set:current:popup:panel",payload:{name:_t.lS.AI}}),ft({type:"entry:skip:novice:guide"}),MB.commonGuideHelper.markGuideAsRead(C.c.GUIDE_NOVICE_2309);const Mo=MB.commonGuideHelper.getState().commonGuidesHasShown;ft({type:"update:taskList:data",payload:{completeList:Mo}});return}return(0,ne.jsx)(Ot,{sceneTag:Lt,handleStart:Hn,handleClose:zn})}return xn?(0,ne.jsx)(Vn,{guideType:Nn,guideConfig:xn,currentStep:Yn,totalStep:Wn.length,sceneTag:Lt,resizeFlag:yn,dispatch:ft}):null},bt=dn=>{const{guideType:ft,sceneTag:Lt,onClose:bn}=dn,[Yn,on]=(0,r.useState)(!0),yn=(0,r.useCallback)(()=>{bn(),MB.commonGuideHelper.closeGuide(ft),MB.commonGuideHelper.markGuideAsRead(ft),on(!1)},[bn,ft]),lo=(0,an.Dx)(Lt,I18N)[ft];return(0,r.useEffect)(()=>(MB.commonGuideHelper.registerMountGuideCallback(C.c.GUIDE_NOVICE_2408_CREATE_PAGE,{handleClose:yn}),()=>{MB.commonGuideHelper.removeMountGuideCallback(C.c.GUIDE_NOVICE_2408_CREATE_PAGE)}),[yn]),(0,ne.jsx)(Vn,{guideType:ft,guideConfig:lo,sceneTag:Lt,currentStep:5,handleCloseGuide:yn,isOpenCreatePage:Yn})},un=(0,r.memo)(bt),gt=dn=>{const{onClose:ft,guideType:Lt}=dn,{store:{dispatch:bn,getState:Yn}}=dn,on=Yn(),{scene_tag:yn}=(0,T.PL)(on),lo=(0,r.useCallback)(async()=>{var qn,Wn;(qn=MB)!=null&&(qn=qn.commonGuideHelper)!=null&&qn.checkGuideHasShown(Lt)||Lt&&((Wn=MB)==null||(Wn=Wn.commonGuideHelper)==null||Wn.markGuideAsRead(Lt))},[Lt]);return(0,r.useEffect)(()=>(window.addEventListener("beforeunload",lo),()=>{window.removeEventListener("beforeunload",lo)}),[lo]),(0,r.useEffect)(()=>{var qn;(0,$.BT)((qn=Object.values((0,an.Dx)(yn,I18N)))==null?void 0:qn.map(Wn=>Wn==null?void 0:Wn.imgUrl))},[yn]),Lt===C.c.GUIDE_NOVICE_2309_TIP_1||Lt===C.c.GUIDE_NOVICE_2408_CREATE_PAGE?(0,ne.jsx)(un,{guideType:Lt,sceneTag:yn,onClose:ft}):(0,ne.jsx)(fe,{dispatch:bn,sceneTag:yn,onClose:ft})},Wt=(0,r.memo)(gt);var Un=s(8342);const Jn=J.Ay.div.withConfig({displayName:"styles__StyledBubbleGuide",componentId:"sc-wol0v6-0"})(["position:absolute;padding:4px 4px;font-size:12px;line-height:20px;speak:none;transition-property:opacity,transform;transition-duration:0.15s;user-select:text;z-index:1049;& > .arrow{position:absolute;z-index:10;display:block;font-size:14px;line-height:0;svg{width:16px;height:14px;fill:",";}}&.on-top{left:50%;bottom:100%;transform:translate(-50%,-10%);& > .arrow{left:50%;bottom:1px;transform:translate(-50%,30%);svg{transform:rotate(180deg);}}}&.on-bottom{left:50%;top:100%;transform:translate(-50%,10%);& > .arrow{top:1px;left:50%;transform:translate(-50%,-30%) rotate(90deg);}}&.on-left{right:100%;top:50%;transform:translate(0%,-50%);& > .arrow{top:50%;right:0;transform:translate(30%,-50%);svg{transform:rotate(180deg);}}}&.on-right{left:100%;top:50%;transform:translate(0,-50%);& > .arrow{top:50%;left:0;transform:translate(-30%,-50%);}}> .content{position:relative;z-index:20;width:max-content;min-width:2em;min-height:2em;padding:8px 16px;background-color:",";border-radius:10px;color:#fff;display:flex;.text{max-width:156px;&:lang(en){max-width:max-content;}}.bottom{display:flex;justify-content:end;margin-top:8px;.btn{width:64px;height:28px;padding:6px 12px;border:1px solid transparent;border-radius:6px;background-color:#fff;color:",";font-weight:500;cursor:pointer;display:flex;align-items:center;justify-content:center;}}}.times-icon{margin-left:16px;cursor:pointer;width:18px;height:18px;}&#MD_GUIDE_2506_LIB_INTERGRATED,&#MD_GUIDE_2506_LIB_INTERGRATED_RIGHT_LAYOUT,&#MD_GUIDE_DRAW_IO_NAV,&#MD_GUIDE_DRAW_IO_NAV_RIGHT_LAYOUT{width:300px;.content{padding:18px 20px 20px 20px;display:flex;flex-direction:column;width:100%;.text{max-width:max-content;.title{font-size:14px;font-weight:500;margin-bottom:10px;}.desc{font-size:12px;}}.times-icon{position:absolute;top:16px;right:19px;}}}&#MD_GUIDE_2506_LIB_INTERGRATED_RIGHT_LAYOUT{.arrow{svg{transform:rotate(180deg);}}}"],dn=>dn.theme.color_proto,dn=>dn.theme.color_proto,dn=>dn.theme.color_proto),Yt=(0,J.DU)(["#popups-template-panel{.lib-item-container.GUIDE_2506_LIB_INTERGRATED{",";}}"],Oe.K6),rt=(dn,ft,Lt)=>{const bn=document.querySelector(dn);if(!bn)return null;const{top:Yn,left:on,bottom:yn,right:lo,width:qn,height:Wn}=bn.getBoundingClientRect(),{x:Nn=0,y:xn=0}=Lt||{};switch(ft){case"top":return{bottom:xn+window.innerHeight-Yn+4,left:Nn+on+qn/2};case"bottom":return{top:xn+yn+4,left:Nn+on+qn/2};case"left":return{top:xn+Yn+Wn/2,right:Nn+on+4};case"right":return{top:xn+Yn+Wn/2,left:Nn+lo+4}}},An=dn=>{let{guideType:ft,onClose:Lt,store:bn}=dn;const{dispatch:Yn}=bn,on=()=>{Lt(),ft===C.c.GUIDE_2407_PREVIEW?MB.commonGuideHelper.markGuideAsRead(C.c.GUIDE_2407_PREVIEW_CLOSE):MB.commonGuideHelper.markGuideAsRead(ft);const zn=MB.commonGuideHelper.getState().commonGuidesHasShown;Yn({type:"update:taskList:data",payload:{completeList:zn}})},yn=()=>ft===C.c.GUIDE_2506_LIB_INTERGRATED||ft===C.c.GUIDE_2506_LIB_INTERGRATED_RIGHT_LAYOUT?(0,ne.jsx)(Yt,{}):null,lo=(0,Un.c)(I18N)[ft],{relativePos:qn,selector:Wn,content:Nn,offset:xn,arrowPosition:Ye,hasKnow:wn=!1}=lo,Hn=rt(Wn,qn,xn);return Hn?(0,ne.jsxs)(ne.Fragment,{children:[(0,ne.jsxs)(Jn,{id:"MD_"+ft,className:y()("on-"+qn),style:Hn,children:[(0,ne.jsx)("div",{className:"arrow",style:Ye,children:(0,ne.jsx)("svg",{width:"12",height:"16",fill:"none",viewBox:"0 0 12 16",children:(0,ne.jsx)("path",{fill:"#07F",d:"M1.04 9.74a2 2 0 0 1 0-3.48L12 0v16z"})})}),(0,ne.jsxs)("div",{className:"content",children:[(0,ne.jsx)("div",{className:"text",dangerouslySetInnerHTML:{__html:Nn}}),(0,ne.jsx)(Q.C,{className:"times-icon",name:"general/times",onClick:on}),wn&&(0,ne.jsx)("div",{className:"bottom",children:(0,ne.jsx)("div",{className:"btn primary",onClick:on,children:I18N.CommonGuides.v8guide3})})]})]}),yn()]}):null},Nt=()=>({[C.c.GUIDE_COMMON_V9_OPERATIONS_GUIDE]:{selector:"."+C.c.GUIDE_COMMON_V9_OPERATIONS_GUIDE,arrowPosition:{right:-8},relativePos:"left",offset:{x:312,y:-2},title:"\u5E38\u7528\u64CD\u4F5C",content:"\u5BF9\u9F50\u3001\u56FE\u5C42\u3001\u7EC4\u5408\u7B49\u5E38\u7528\u64CD\u4F5C\u805A\u5408\u5728\u53F3\u4FA7\u9762\u677F\u3002"}});var jt=s(77257);const vn=(0,J.Ay)(jt.eA).withConfig({displayName:"styles__StyledToolTipGuide",componentId:"sc-124w038-0"})(["> .content{.footer{justify-content:flex-end;}}"]),Dt=(dn,ft,Lt)=>{const bn=document.querySelector(dn);if(!bn)return null;const{top:Yn,left:on,bottom:yn,right:lo,width:qn,height:Wn}=bn.getBoundingClientRect(),{x:Nn=0,y:xn=0}=Lt||{};switch(ft){case"top":return{bottom:xn+window.innerHeight-Yn+4,left:Nn+on+qn/2};case"bottom":return{top:xn+yn+4,left:Nn+on+qn/2};case"left":return{top:xn+Yn+Wn/2,left:on-Nn-6};case"right":return{top:xn+Yn+Wn/2,left:lo-Nn+4}}},$t=dn=>{let{guideType:ft,onClose:Lt,store:bn}=dn;const{dispatch:Yn,getState:on}=bn,yn=on(),lo=Nt()[C.c.GUIDE_COMMON_V9_OPERATIONS_GUIDE],{relativePos:qn,selector:Wn,title:Nn,content:xn,arrowPosition:Ye,offset:wn}=lo,Hn=(0,wt.XM)(),zn=(0,we.MZ)(yn);(0,r.useEffect)(()=>{var Mo;(Mo=MB)==null||(Mo=Mo.commonGuideHelper)==null||Mo.markGuideAsRead(ft)},[]);const ko=Dt(Wn,qn,wn),On=()=>{var Mo,jn;Lt(),(Mo=MB.commonGuideHelper)==null||Mo.markGuideAsRead(C.c.GUIDE_COMMON_V9_OPERATIONS_GUIDE);const xo=((jn=MB)==null||(jn=jn.commonGuideHelper)==null||(jn=jn.getState())==null?void 0:jn.commonGuidesHasShown)||[];Yn({type:"update:taskList:data",payload:{completeList:xo}})};return Hn||!ko?null:(0,ne.jsx)(ne.Fragment,{children:(0,ne.jsxs)(vn,{id:"MD_"+ft,className:y()("on-"+qn),style:ko,children:[(0,ne.jsx)("div",{className:"arrow",style:Ye,children:(0,ne.jsx)("svg",{width:"12",height:"16",fill:"none",viewBox:"0 0 12 16",children:(0,ne.jsx)("path",{fill:"#07F",d:"M1.04 9.74a2 2 0 0 1 0-3.48L12 0v16z"})})}),(0,ne.jsxs)("div",{className:"content",children:[(0,ne.jsx)("svg",{className:"close-icon",onClick:On,width:"24",height:"24",fill:"none",viewBox:"0 0 24 24",children:(0,ne.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M8.11 7.4a.5.5 0 1 0-.7.71L11.28 12 7.4 15.89a.5.5 0 1 0 .71.7L12 12.72l3.89 3.89a.5.5 0 1 0 .7-.71L12.72 12l3.89-3.89a.5.5 0 1 0-.71-.7L12 11.28z",clipRule:"evenodd",opacity:".9"})}),(0,ne.jsx)("span",{className:"title",children:Nn}),(0,ne.jsx)("span",{className:"main-content",children:xn}),(0,ne.jsx)("div",{className:"footer",children:(0,ne.jsx)("span",{className:"btn-next",onClick:On,children:"\u77E5\u9053\u4E86"})})]})]})})},kn=(0,r.memo)($t),Kn=(dn,ft,Lt)=>{switch(dn){case C.c.GUIDE_POSITION_STICKY_FEATURES:case C.c.GUIDE_NEW_OVERLAY_ONCE:case C.c.GUIDE_VECTOR_TASK_QUICK_CREATE:case C.c.GUIDE_VECTOR_TASK_ENDING_EDITING:case C.c.GUIDE_VECTOR_TASK_EDITING_EXIST_VECTOR:U({Component:mt,props:{store:ft,guideType:dn,params:Lt}});break;case C.c.GUIDE_NOVICE_2309:case C.c.GUIDE_NOVICE_2309_TIP_1:case C.c.GUIDE_NOVICE_2408_CREATE_PAGE:U({Component:Wt,props:{store:ft,guideType:dn,params:Lt}});break;case C.c.GUIDE_OLD_NEW_CREATE_PAGE:case C.c.GUIDE_OLD_ADD_LINE_FEATURE:case C.c.GUIDE_OLD_UPGRADE_ANNOTATE:case C.c.GUIDE_OLD_USE_COMMENT:U({Component:Ze,props:{store:ft,guideType:dn,params:Lt}});break;case C.c.GUIDE_NOVICE_V9_2408:case C.c.GUIDE_NOVICE_V9_2408_STEP_1:case C.c.GUIDE_NOVICE_V9_2408_STEP_2:case C.c.GUIDE_NOVICE_V9_2408_STEP_3:U({Component:W.A,props:{store:ft,guideType:dn,params:Lt}});break;case C.c.GUIDE_COMMON_V9_OPERATIONS_GUIDE:U({Component:kn,props:{store:ft,guideType:dn,params:Lt}});break;case C.c.GUIDE_ALL_REPLACE_PAGE:case C.c.GUIDE_SELECT_STICKY:case C.c.GUIDE_BASKET_QUICK_COPY_CANVAS:case C.c.GUIDE_PAGE_CREAT_LINK:case C.c.GUIDE_PAGE_CREAT_LINK2:case C.c.GUIDE_TO_PREVIEW_IN_SHARE:case C.c.GUIDE_MORE_PAGE:case C.c.GUIDE_PREVIEW_VIEW_BTN:case C.c.GUIDE_BASKET_MUBAN_USE:case C.c.GUIDE_FIND_MORE_SCENE_COMBO:case C.c.GUIDE_PUBLISH_COMBO_TO_MKT:case C.c.GUIDE_COPY_AS_PNG:U({Component:He,props:{store:ft,guideType:dn,params:Lt}});break;case C.c.INTER_SWITCHABLE_VIEW_MODE_RELOCATED_INSPECT_TOGGLE:case C.c.INTER_SWITCHABLE_VIEW_MODE_OV_TOGGLE_PANE_BTN:case C.c.INTER_SWITCHABLE_VIEW_MODE_PV_TOGGLE_PANE_BTN:case C.c.GUIDE_2309_CLICK_SHARE:case C.c.GUIDE_2407_PREVIEW:case C.c.GUIDE_2506_LIB_INTERGRATED:case C.c.GUIDE_2506_LIB_INTERGRATED_RIGHT_LAYOUT:{U({Component:An,props:{store:ft,guideType:dn,params:Lt}});break}default:break}}},22375:(Qn,qe,s)=>{"use strict";s.d(qe,{Cl:()=>N,_n:()=>q,h0:()=>te,kA:()=>ne,yK:()=>J});var r=s(15722);const I={name:"\u5168\u90E8",value:r.y,position:0},J=[I,{name:"App",value:"app",position:1},{name:"Web\u540E\u53F0",value:"web_back",position:2},{name:"\u5C0F\u7A0B\u5E8F",value:"applet",position:3},{name:"Web\u7F51\u7AD9",value:"website",position:4},{name:"\u53EF\u89C6\u5316\u5927\u5C4F",value:"display_screen",position:5},{name:"HMI",value:"HMI",position:6},{name:"\u5E73\u677F\u7AEF",value:"ipad",position:7},{name:"\u667A\u80FD\u7535\u89C6",value:"smart_tv",position:8},{name:"\u6D3B\u52A8",value:"activity",position:9},{name:"\u624B\u8868",value:"apple_watch",position:10},{name:"\u5E7B\u706F\u7247",value:"slide",position:11},{name:"\u5176\u5B83",value:"other",position:12}],N=[I,{name:"App",value:"app",position:1},{name:"Web\u540E\u53F0",value:"web_back",position:2},{name:"\u5C0F\u7A0B\u5E8F",value:"applet",position:3},{name:"Web\u7F51\u7AD9",value:"website",position:4},{name:"\u5E73\u677F\u7AEF",value:"ipad",position:7},{name:"\u5176\u5B83",value:"other",position:12}];let T=function(l){return l.Platform="platform",l.PLabel="plabel",l.CLabel="clabel",l.Category="category",l}({});const te=[{name:"\u70ED\u95E8\u63A8\u8350",value:"recommend"},{name:"\u6700\u65B0\u53D1\u5E03",value:"recent"},{name:"\u6700\u591A\u6D4F\u89C8",value:"views"},{name:"\u6700\u591A\u4F7F\u7528",value:"used"}],q={Everyone:"everyone",MdMemberFree:"member_free",MdMemberDiscount:"member_discount",MdOriginPrice:"origin_price",MktMemberFree:"mt_member_free",MktMemberDiscount:"mt_member_discount",MktOriginPrice:"mt_origin_price"},ne=[{label:"\u5168\u90E8\u4F5C\u54C1",key:r.y},{type:"divider",key:""},{label:"\u514D\u8D39",key:q.Everyone},{label:"\u7D20\u6750\u4F1A\u5458\u514D\u8D39",key:q.MktMemberFree},{label:"\u4F1A\u5458\u514D\u8D39",key:q.MdMemberFree}];let B=function(l){return l.Basic="project_basic",l.Page="screen_list",l.Combo="combo_group",l.Icon="icon_group",l.Default="default",l}({})},22424:(Qn,qe,s)=>{"use strict";s.d(qe,{A:()=>M});var r=s(38502),I=Object.defineProperty,J=Object.defineProperties,N=Object.getOwnPropertyDescriptors,T=Object.getOwnPropertySymbols,te=Object.prototype.hasOwnProperty,q=Object.prototype.propertyIsEnumerable,ne=(w,y,j)=>y in w?I(w,y,{enumerable:!0,configurable:!0,writable:!0,value:j}):w[y]=j,B=(w,y)=>{for(var j in y||(y={}))te.call(y,j)&&ne(w,j,y[j]);if(T)for(var j of T(y))q.call(y,j)&&ne(w,j,y[j]);return w},l=(w,y)=>J(w,N(y)),U=(w,y)=>{var j={};for(var Q in w)te.call(w,Q)&&y.indexOf(Q)<0&&(j[Q]=w[Q]);if(w!=null&&T)for(var Q of T(w))y.indexOf(Q)<0&&q.call(w,Q)&&(j[Q]=w[Q]);return j},M=(0,r.forwardRef)((w,y)=>{var j=w,{size:Q,spin:ze,style:me}=j,Se=U(j,["size","spin","style"]);const Me=B(B({width:Q||"var(--x-icon-size, 1em)",height:Q||"var(--x-icon-size, 1em)",animation:ze?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),me);return r.createElement("svg",l(B({ref:y,style:Me},Se),{width:"61",height:"17",viewBox:"0 0 61 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),r.createElement("rect",{x:"0.25",y:"0.25",width:"60.5",height:"16.5",rx:"4.25",fill:"url(#paint0_linear_291_104)"}),r.createElement("rect",{x:"0.25",y:"0.25",width:"60.5",height:"16.5",rx:"4.25",fill:"url(#paint1_linear_291_104)",fillOpacity:"0.68"}),r.createElement("rect",{x:"0.25",y:"0.25",width:"60.5",height:"16.5",rx:"4.25",fill:"url(#paint2_linear_291_104)",fillOpacity:"0.62"}),r.createElement("rect",{x:"0.25",y:"0.25",width:"60.5",height:"16.5",rx:"4.25",stroke:"#F6E0B1",strokeWidth:"0.5"}),r.createElement("path",{d:"M6.55 6.48C8.34 5.71 9.59 4.8 10.55 3.5H11.6C12.57 4.81 13.93 5.73 15.64 6.48L15.34 7.6C13.49 6.85 12.07 5.84 11.08 4.56C10.17 5.84 8.65 6.85 6.85 7.6L6.55 6.48ZM12.02 11.09H15.43V12.13H6.71L6.61 11.09H7.94V7.55H9.12V11.09H10.8V6.18H12.02V8.06H14.46V9.06H12.02V11.09ZM25.04 4.9C24.86 6.42 24.58 7.95 24.22 9.47H23.02C23.38 7.95 23.66 6.42 23.84 4.9H25.04ZM17.36 9.47C17.16 7.95 16.88 6.42 16.54 4.9H17.74C18.08 6.42 18.36 7.95 18.56 9.47H17.36ZM22.53 11.09H25.3V12.13H16.43L16.34 11.09H19.09V3.5H20.31V11.09H21.31V3.5H22.53V11.09ZM31.04 10.96H33.65L32.72 7.57H33.94L34.89 11.08C35.05 11.66 34.79 12.04 34.19 12.04H29.72L29.62 10.96H29.81C30.81 8.6 31.2 6.62 31.28 3.7H32.56C32.5 6.48 32.1 8.67 31.04 10.96ZM28.86 9.28V12.5H27.68V9.07C27.54 9.05 27.39 9.04 27.24 9.03C27.18 9.7 27.04 10.49 26.77 11.25L25.81 11C26.21 9.81 26.34 8.69 26.34 8.05V7.4H27.29V7.96C27.42 7.97 27.55 7.98 27.68 7.99V7.04H26.15L26.06 6H27.68V4.91H27.51H26.24L26.14 3.87H27.51C28.43 3.87 29.29 3.88 30.08 3.64V4.62C29.67 4.76 29.27 4.84 28.86 4.87V6H30.26V7.04H28.86V8.19C29.29 8.29 29.71 8.42 30.11 8.58V9.68C29.71 9.52 29.29 9.38 28.86 9.28ZM42.7 10.59H38.44V12.5H37.22V8.32C36.87 8.61 36.5 8.89 36.09 9.18L35.62 8.02C36.69 7.22 37.48 6.42 38.05 5.48H35.91L35.8 4.42H38.57C38.68 4.13 38.78 3.82 38.87 3.5H40.25C40.18 3.82 40.09 4.13 39.99 4.42H44.63V5.48H39.55C39.41 5.77 39.25 6.04 39.07 6.31H43.12C43.6 6.31 43.92 6.63 43.92 7.11V11.42C43.92 12.05 43.56 12.42 42.84 12.45C42.35 12.47 41.56 12.46 40.95 12.32L40.67 11.3C41.14 11.41 41.92 11.48 42.35 11.45C42.57 11.43 42.7 11.31 42.7 11.12V10.59ZM42.7 9.63V8.95H38.44V9.63H42.7ZM42.7 7.99V7.46C42.7 7.36 42.65 7.31 42.55 7.31H38.59C38.49 7.31 38.44 7.37 38.44 7.46V7.99H42.7ZM51.05 8.84V10.83C51.05 11.13 51.19 11.31 51.5 11.35C51.88 11.4 52.31 11.4 52.68 11.35C53.01 11.31 53.17 11.12 53.17 10.8V9.45L54.39 9.61V11.15C54.39 11.82 54.03 12.3 53.21 12.39C52.47 12.47 51.66 12.47 50.94 12.39C50.28 12.32 49.83 11.82 49.83 11.15V9.57C49.44 9.78 49.03 9.97 48.59 10.16L48.27 8.97C48.84 8.73 49.36 8.48 49.83 8.2V3.5H51.05V7.35C51.98 6.58 52.63 5.69 53.06 4.7H54.34C53.72 6.41 52.64 7.75 51.05 8.84ZM46.41 7.06H47.24C47.69 7.06 47.94 7.31 47.94 7.76V12.5H46.72V7.87H45.62L45.25 6.72C46.48 5.67 47.17 4.57 47.45 3.5H48.74C48.38 4.91 47.61 6.13 46.41 7.06Z",fill:"#F6E0B1"}),r.createElement("path",{d:"M6.55 6.48C8.34 5.71 9.59 4.8 10.55 3.5H11.6C12.57 4.81 13.93 5.73 15.64 6.48L15.34 7.6C13.49 6.85 12.07 5.84 11.08 4.56C10.17 5.84 8.65 6.85 6.85 7.6L6.55 6.48ZM12.02 11.09H15.43V12.13H6.71L6.61 11.09H7.94V7.55H9.12V11.09H10.8V6.18H12.02V8.06H14.46V9.06H12.02V11.09ZM25.04 4.9C24.86 6.42 24.58 7.95 24.22 9.47H23.02C23.38 7.95 23.66 6.42 23.84 4.9H25.04ZM17.36 9.47C17.16 7.95 16.88 6.42 16.54 4.9H17.74C18.08 6.42 18.36 7.95 18.56 9.47H17.36ZM22.53 11.09H25.3V12.13H16.43L16.34 11.09H19.09V3.5H20.31V11.09H21.31V3.5H22.53V11.09ZM31.04 10.96H33.65L32.72 7.57H33.94L34.89 11.08C35.05 11.66 34.79 12.04 34.19 12.04H29.72L29.62 10.96H29.81C30.81 8.6 31.2 6.62 31.28 3.7H32.56C32.5 6.48 32.1 8.67 31.04 10.96ZM28.86 9.28V12.5H27.68V9.07C27.54 9.05 27.39 9.04 27.24 9.03C27.18 9.7 27.04 10.49 26.77 11.25L25.81 11C26.21 9.81 26.34 8.69 26.34 8.05V7.4H27.29V7.96C27.42 7.97 27.55 7.98 27.68 7.99V7.04H26.15L26.06 6H27.68V4.91H27.51H26.24L26.14 3.87H27.51C28.43 3.87 29.29 3.88 30.08 3.64V4.62C29.67 4.76 29.27 4.84 28.86 4.87V6H30.26V7.04H28.86V8.19C29.29 8.29 29.71 8.42 30.11 8.58V9.68C29.71 9.52 29.29 9.38 28.86 9.28ZM42.7 10.59H38.44V12.5H37.22V8.32C36.87 8.61 36.5 8.89 36.09 9.18L35.62 8.02C36.69 7.22 37.48 6.42 38.05 5.48H35.91L35.8 4.42H38.57C38.68 4.13 38.78 3.82 38.87 3.5H40.25C40.18 3.82 40.09 4.13 39.99 4.42H44.63V5.48H39.55C39.41 5.77 39.25 6.04 39.07 6.31H43.12C43.6 6.31 43.92 6.63 43.92 7.11V11.42C43.92 12.05 43.56 12.42 42.84 12.45C42.35 12.47 41.56 12.46 40.95 12.32L40.67 11.3C41.14 11.41 41.92 11.48 42.35 11.45C42.57 11.43 42.7 11.31 42.7 11.12V10.59ZM42.7 9.63V8.95H38.44V9.63H42.7ZM42.7 7.99V7.46C42.7 7.36 42.65 7.31 42.55 7.31H38.59C38.49 7.31 38.44 7.37 38.44 7.46V7.99H42.7ZM51.05 8.84V10.83C51.05 11.13 51.19 11.31 51.5 11.35C51.88 11.4 52.31 11.4 52.68 11.35C53.01 11.31 53.17 11.12 53.17 10.8V9.45L54.39 9.61V11.15C54.39 11.82 54.03 12.3 53.21 12.39C52.47 12.47 51.66 12.47 50.94 12.39C50.28 12.32 49.83 11.82 49.83 11.15V9.57C49.44 9.78 49.03 9.97 48.59 10.16L48.27 8.97C48.84 8.73 49.36 8.48 49.83 8.2V3.5H51.05V7.35C51.98 6.58 52.63 5.69 53.06 4.7H54.34C53.72 6.41 52.64 7.75 51.05 8.84ZM46.41 7.06H47.24C47.69 7.06 47.94 7.31 47.94 7.76V12.5H46.72V7.87H45.62L45.25 6.72C46.48 5.67 47.17 4.57 47.45 3.5H48.74C48.38 4.91 47.61 6.13 46.41 7.06Z",fill:"url(#paint3_linear_291_104)"}),r.createElement("defs",null,r.createElement("linearGradient",{id:"paint0_linear_291_104",x1:"27.7727",y1:"3.05333",x2:"32.6585",y2:"19.0268",gradientUnits:"userSpaceOnUse"},r.createElement("stop",{stopColor:"#131210"}),r.createElement("stop",{offset:"1",stopColor:"#515459"})),r.createElement("linearGradient",{id:"paint1_linear_291_104",x1:"2.10714",y1:"16.5",x2:"16.0953",y2:"8.73261",gradientUnits:"userSpaceOnUse"},r.createElement("stop",{stopColor:"#682B00"}),r.createElement("stop",{offset:"1",stopColor:"#842F00",stopOpacity:"0"})),r.createElement("linearGradient",{id:"paint2_linear_291_104",x1:"5.35294",y1:"2.06943",x2:"8.89102",y2:"11.0906",gradientUnits:"userSpaceOnUse"},r.createElement("stop",{stopColor:"#FFF8DF"}),r.createElement("stop",{offset:"1",stopColor:"white",stopOpacity:"0"})),r.createElement("linearGradient",{id:"paint3_linear_291_104",x1:"55.2552",y1:"15.4203",x2:"42.2763",y2:"9.62375",gradientUnits:"userSpaceOnUse"},r.createElement("stop",{stopColor:"#EFB66D"}),r.createElement("stop",{offset:"1",stopColor:"#F8C784",stopOpacity:"0"}))))})},22440:(Qn,qe,s)=>{"use strict";s.d(qe,{Nd:()=>Q});var r=s(38502),I=s(70768),J=s(78401),N=s(37342),T=s(67787),te=s(58320);const q=(0,T.Ay)(te.H).withConfig({displayName:"styles__StyledWSRenewModal",componentId:"sc-1m4aq3c-0"})(["",""],ze=>ENV.IS_MO&&ze.action==="comment_deny_limitation"?"&.functional-modal {\n .confirm-btn {\n background-color: #425fff;\n border-radius: 2px;\n color: #fff;\n padding: 0 1em;\n font-weight: normal;\n\n &:not([disabled]):hover {\n background-color: #3c4ee5;\n color: #fff;\n }\n }\n }":null),ne=(0,T.DU)([".renew-modal{z-index:1049 !important;}"]);var B=s(72214);function l(ze,me){const Se=(0,J.XN)(),Me=(0,I.createRoot)(Se),De=()=>setTimeout(()=>{Me.unmount(),document.body.removeChild(Se)});Me.render((0,B.jsx)(ze,{...me,onClose:De}))}const U=ze=>(0,N.JW)("/renew?"+new URLSearchParams(ze).toString(),"_blank","noreferrer"),C=()=>(0,N.JW)("/pricing?next="+location.href,"_blank","noreferrer"),M=(ze,me)=>{const Se={...me,orgCid:ze,checkoutArea:me.from||"proto"};MB.global.popupHelper.chargeAsync(Se)},w=(ze,me)=>{ze?MB.global.popupHelper.chargeAsync({mode:"org",orgCid:ze,payEntrance:me.payEntrance}):MB.global.popupHelper.chargeAsync({mode:"solo",payEntrance:me.payEntrance})},y=ze=>{let{reason:me,data:Se,onClose:Me}=ze;return(0,B.jsxs)(q,{isOpen:!0,portalClassName:"renew-modal",title:I18N.dModals.renew_prompt.title,isUsePortal:!1,onConfirm:ENV.IS_MO?()=>{w(Se.orgCid,Se.paymentRenewModalParams),Me()}:Se&&Se.renewRedirectParams?()=>U(Se.renewRedirectParams):Se.gotoPrice?()=>C():Se.paymentRenewModalParams?()=>{M(Se.orgCid,Se.paymentRenewModalParams),Me()}:null,confirmText:Se&&Se.renewRedirectParams?I18N.dModals.renew_now:Se.submit?Se.submit:null,canConfirm:!0,onClose:Me,action:Se.action,canCancel:!1,children:[Se.format===I18N.dModals.apk_file?(0,B.jsx)("p",{children:I18N.dModals.renew_prompt.apk_exportable_on_web}):(0,B.jsx)("p",{children:j(me,Se)}),(0,B.jsx)(ne,{})]})},j=(ze,me)=>{let{storage:Se="",format:Me="",action:De=MB.user&&MB.user.expired?"renew":"upgrade",role:tt="user"}=me;return(I18N.dModals.renew_prompt[ze]+(De?I18N.dModals.renew_prompt[tt+"_"+De]:"")).replace("{storage}",Se).replace("{format}",Me)},Q=function(ze,me){me===void 0&&(me={}),l(y,{reason:ze,data:me})}},23036:(Qn,qe,s)=>{"use strict";s.d(qe,{A:()=>M});var r=s(38502),I=Object.defineProperty,J=Object.defineProperties,N=Object.getOwnPropertyDescriptors,T=Object.getOwnPropertySymbols,te=Object.prototype.hasOwnProperty,q=Object.prototype.propertyIsEnumerable,ne=(w,y,j)=>y in w?I(w,y,{enumerable:!0,configurable:!0,writable:!0,value:j}):w[y]=j,B=(w,y)=>{for(var j in y||(y={}))te.call(y,j)&&ne(w,j,y[j]);if(T)for(var j of T(y))q.call(y,j)&&ne(w,j,y[j]);return w},l=(w,y)=>J(w,N(y)),U=(w,y)=>{var j={};for(var Q in w)te.call(w,Q)&&y.indexOf(Q)<0&&(j[Q]=w[Q]);if(w!=null&&T)for(var Q of T(w))y.indexOf(Q)<0&&q.call(w,Q)&&(j[Q]=w[Q]);return j},M=(0,r.forwardRef)((w,y)=>{var j=w,{size:Q,spin:ze,style:me}=j,Se=U(j,["size","spin","style"]);const Me=B(B({width:Q||"var(--x-icon-size, 1em)",height:Q||"var(--x-icon-size, 1em)",animation:ze?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),me);return r.createElement("svg",l(B({ref:y,style:Me},Se),{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),r.createElement("path",{d:"M6.99843 9.84928C6.99843 10.4015 6.55058 10.8491 5.99843 10.8493C5.44615 10.8493 4.99843 10.4016 4.99843 9.84928V5.84928H3.04043C2.62132 5.84928 2.38833 5.36513 2.6498 5.03776L5.60976 1.33756C5.80987 1.08762 6.18984 1.08773 6.39003 1.33756L9.35 5.03776C9.61169 5.36514 9.37855 5.84928 8.95937 5.84928H6.99843V9.84928Z",fill:"url(#paint0_linear_511_62)"}),r.createElement("defs",null,r.createElement("linearGradient",{id:"paint0_linear_511_62",x1:"5.99995",y1:"1.15015",x2:"6.00049",y2:"12.4998",gradientUnits:"userSpaceOnUse"},r.createElement("stop",{offset:"0.373469",stopColor:"white"}),r.createElement("stop",{offset:"1",stopColor:"white",stopOpacity:"0"}))))})},23138:(Qn,qe,s)=>{"use strict";s.d(qe,{A:()=>M});var r=s(38502),I=Object.defineProperty,J=Object.defineProperties,N=Object.getOwnPropertyDescriptors,T=Object.getOwnPropertySymbols,te=Object.prototype.hasOwnProperty,q=Object.prototype.propertyIsEnumerable,ne=(w,y,j)=>y in w?I(w,y,{enumerable:!0,configurable:!0,writable:!0,value:j}):w[y]=j,B=(w,y)=>{for(var j in y||(y={}))te.call(y,j)&&ne(w,j,y[j]);if(T)for(var j of T(y))q.call(y,j)&&ne(w,j,y[j]);return w},l=(w,y)=>J(w,N(y)),U=(w,y)=>{var j={};for(var Q in w)te.call(w,Q)&&y.indexOf(Q)<0&&(j[Q]=w[Q]);if(w!=null&&T)for(var Q of T(w))y.indexOf(Q)<0&&q.call(w,Q)&&(j[Q]=w[Q]);return j},M=(0,r.forwardRef)((w,y)=>{var j=w,{size:Q,spin:ze,style:me}=j,Se=U(j,["size","spin","style"]);const Me=B(B({width:Q||"var(--x-icon-size, 1em)",height:Q||"var(--x-icon-size, 1em)",animation:ze?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),me);return r.createElement("svg",l(B({ref:y,style:Me},Se),{width:"51",height:"17",viewBox:"0 0 51 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),r.createElement("rect",{x:"0.25",y:"0.25",width:"50.5",height:"16.5",rx:"4.25",fill:"url(#paint0_linear_291_94)"}),r.createElement("rect",{x:"0.25",y:"0.25",width:"50.5",height:"16.5",rx:"4.25",fill:"url(#paint1_linear_291_94)",fillOpacity:"0.5"}),r.createElement("rect",{x:"0.25",y:"0.25",width:"50.5",height:"16.5",rx:"4.25",fill:"url(#paint2_linear_291_94)",fillOpacity:"0.8"}),r.createElement("rect",{x:"0.25",y:"0.25",width:"50.5",height:"16.5",rx:"4.25",stroke:"url(#paint3_linear_291_94)",strokeWidth:"0.5"}),r.createElement("path",{d:"M15.49 4.21H16.44L16.73 5.37H15.78L15.49 4.21ZM10.39 5.77L8.35 5.08V4.08L10.39 4.77V5.77ZM15.27 6.55C15.42 8.47 15.72 10.24 15.98 11.33C16.12 11.89 16.4 11.97 17.18 11.59L17.02 12.75C15.86 13.16 15.2 13.02 14.94 12.05C14.58 10.71 14.24 8.6 14.09 6.55H10.91L10.81 5.52H14.04L13.96 4H15.11L15.2 5.52H17.07V6.55H15.27ZM13.01 11.11L14.14 10.93V11.95L10.82 12.51L10.64 11.66L8.71 12.88L8.51 11.65L8.74 11.51C8.83 10.92 8.85 10.27 8.85 9.72V7.67C8.85 7.58 8.79 7.51 8.7 7.51H8.06L7.96 6.41H9.31C9.77 6.41 10.02 6.66 10.02 7.12V9.73C10.02 10.12 9.98 10.47 9.92 10.8L10.78 10.27V11.46L11.85 11.29V8.72H10.95L10.85 7.7H13.91V8.72H13.01V11.11ZM25.02 10.11H22.93V12.89H21.73V10.11H19.55C19.45 11.28 19.25 12.17 18.89 13.01H17.62C18.24 11.42 18.42 10.14 18.42 7.78V5.2C18.42 4.66 18.68 4.4 19.22 4.4H25.43C25.97 4.4 26.23 4.66 26.23 5.2V11.82C26.23 12.46 25.76 12.95 25.05 12.99C24.46 13.02 24.02 12.98 23.54 12.86L23.27 11.83C24.14 11.98 24.1 11.99 24.52 11.96C24.85 11.94 25.02 11.77 25.02 11.45V10.11ZM25.02 9.09V7.77H22.93V9.09H25.02ZM25.02 6.75V5.59C25.02 5.49 24.97 5.44 24.87 5.44H22.93V6.75H25.02ZM21.73 9.09V7.77H19.63V7.78C19.63 8.25 19.62 8.69 19.61 9.09H21.73ZM21.73 6.75V5.44H19.78C19.68 5.44 19.63 5.49 19.63 5.59V6.75H21.73Z",fill:"#C6500F"}),r.createElement("path",{d:"M30.7256 12.5L27.6792 4.5928H29.5608L31.8792 10.988H31.1064L33.4584 4.5928H35.3176L32.2376 12.5H30.7256ZM35.746 12.5V4.5928H37.5044V12.5H35.746ZM39.8712 9.6216V8.2552H41.5736C41.7902 8.2552 41.988 8.2104 42.1672 8.1208C42.3464 8.0312 42.4883 7.90053 42.5928 7.7288C42.6974 7.55707 42.7496 7.348 42.7496 7.1016C42.7496 6.86267 42.6974 6.65733 42.5928 6.4856C42.4883 6.31387 42.3464 6.1832 42.1672 6.0936C41.988 6.004 41.7902 5.9592 41.5736 5.9592H39.8712V4.5928H41.8312C42.3315 4.5928 42.7832 4.6936 43.1864 4.8952C43.5896 5.0968 43.907 5.388 44.1384 5.7688C44.3774 6.14213 44.4968 6.5864 44.4968 7.1016C44.4968 7.6168 44.3774 8.0648 44.1384 8.4456C43.907 8.81893 43.5896 9.11013 43.1864 9.3192C42.7832 9.5208 42.3315 9.6216 41.8312 9.6216H39.8712ZM38.5272 12.5V4.5928H40.2856V12.5H38.5272Z",fill:"#C6500F"}),r.createElement("defs",null,r.createElement("linearGradient",{id:"paint0_linear_291_94",x1:"23.2273",y1:"1.59091",x2:"29.9893",y2:"18.2067",gradientUnits:"userSpaceOnUse"},r.createElement("stop",{stopColor:"#FFCC7C"}),r.createElement("stop",{offset:"1",stopColor:"#FFF1CC"})),r.createElement("linearGradient",{id:"paint1_linear_291_94",x1:"-2.55304",y1:"20.9444",x2:"9.30572",y2:"2.20874",gradientUnits:"userSpaceOnUse"},r.createElement("stop",{stopColor:"#FF7658"}),r.createElement("stop",{offset:"1",stopColor:"#D55C5C",stopOpacity:"0"})),r.createElement("linearGradient",{id:"paint2_linear_291_94",x1:"4.54412",y1:"0.5",x2:"9.2775",y2:"9.57088",gradientUnits:"userSpaceOnUse"},r.createElement("stop",{stopColor:"white"}),r.createElement("stop",{offset:"1",stopColor:"white",stopOpacity:"0"})),r.createElement("linearGradient",{id:"paint3_linear_291_94",x1:"0.867647",y1:"8",x2:"50.8676",y2:"8",gradientUnits:"userSpaceOnUse"},r.createElement("stop",{stopColor:"#FFD897"}),r.createElement("stop",{offset:"1",stopColor:"#FFEDC6"}))))})},23200:(Qn,qe,s)=>{"use strict";s.d(qe,{$:()=>q});var r=s(38502),I=s(53732),J=s.n(I),N=s(67787),T=s(17307),te=s(72214);const q=B=>U=>{const[C,M]=(0,r.useState)(!1),w=(0,r.useRef)(null),{className:y=""}=U,j=()=>{clearTimeout(w.current),M(!0)},Q=()=>{w.current&&clearTimeout(w.current),w.current=setTimeout(()=>{M(!1)},200)};return(0,te.jsxs)(ne,{orientation:U.orientation,vacuum:U.vacuum,onMouseLeave:Q,className:y,children:[(0,te.jsx)("div",{className:J()("toggleable-zone",{"is-visible":U.isVisible,"pane-visible":U.isVisible}),onMouseEnter:j,children:(0,te.jsx)(B,{...U})}),(0,te.jsx)("button",{className:J()("toggle-button",U.guideKey||"",{[U.orientation]:U.orientation,visible:C,"pane-visible":U.isVisible}),onClick:U.toggleFunc,onMouseEnter:j,children:(0,te.jsx)(T.C,{name:"common/back/new"})})]})},ne=N.Ay.div.withConfig({displayName:"ToggleVisibilityButtonHOC__StyledToggleWrapper",componentId:"sc-10pgtyu-0"})(["display:flex;height:100%;width:100%;position:relative;.toggleable-zone{display:flex;flex-direction:column;height:100%;width:0;&.is-visible{width:100%;}&:not(.pane-visible)::after{width:48px;",";}&::after{content:'';position:absolute;top:0;",";width:","px;height:100%;}}.toggle-button{position:absolute;display:flex;align-items:center;justify-content:center;background-color:",";border:1px solid ",";transition:all 0.3s ease-in-out;visibility:hidden;opacity:0;width:16px;height:44px;flex-shrink:0;border-radius:8px;top:40%;.svg-icon:not(.progress):not(.pane-visible){width:6px;height:12px;path{fill:",";}}&:hover{.svg-icon:not(.pane-visible) > path{fill :",";}}&:not(.pane-visible){visibility:visible;opacity:1;}&.visible{visibility:visible;opacity:1;}&.left:not(.pane-visible){.svg-icon{rotate:180deg;}}&.right.pane-visible{.svg-icon{rotate:180deg;}}&.left{transform:translateY(-40%);}",";}"],B=>B.orientation==="right"?"left: -48px":"right: -48px",B=>B.orientation==="right"?"left: -"+(B.vacuum>0?14+B.vacuum:20)+"px":"right: -"+(B.vacuum>0?14+B.vacuum:20)+"px",B=>B.vacuum>0?14:20,B=>B.theme.color_bg_white,B=>B.theme.color_bg_border_02,B=>B.theme.color_text_L3,B=>B.theme.color_text_L1,B=>B.orientation==="right"?"left: -"+(B.vacuum>0?14+B.vacuum:22)+"px":"right: -"+(B.vacuum>0?14+B.vacuum:22)+"px")},24457:(Qn,qe,s)=>{"use strict";s.d(qe,{c:()=>N});var r=s(12211),I=s(40610),J=s(20119);const N=(0,r.Mz)([J.c],T=>T&&(0,I.gM)(T.hotAttr.type)?T:null)},24492:(Qn,qe,s)=>{"use strict";s.d(qe,{c:()=>I});var r=s(67787);const I=(0,r.AH)(["*::selection{background-color:",";text-shadow:none;}*::-webkit-selection{background-color:",";text-shadow:none;}*::-moz-selection{background-color:",";text-shadow:none;}"],J=>J.theme.color_textarea,J=>J.theme.color_textarea,J=>J.theme.color_textarea)},25337:(Qn,qe,s)=>{"use strict";s.d(qe,{EX:()=>N,WG:()=>I,WR:()=>T,av:()=>ne,mk:()=>J});function r(B){return B*Math.PI/180}function I(B,l,U){const C=r(U),M=Math.cos(C),w=Math.sin(C),y=B.x-l.x,j=B.y-l.y;return{x:y*M-j*w+l.x,y:y*w+j*M+l.y}}function J(B,l,U){const{x:C,y:M,w,h:y,rotate:j}=B;let Q;switch(U){case"t":Q={x:C+w/2,y:M};break;case"b":Q={x:C+w/2,y:M+y};break;case"l":Q={x:C,y:M+y/2};break;case"r":Q={x:C+w,y:M+y/2};break;case"tl":Q={x:C,y:M};break;case"tr":Q={x:C+w,y:M};break;case"bl":Q={x:C,y:M+y};break;case"br":Q={x:C+w,y:M+y};break;default:break}return I(Q,l,j)}function N(B,l){return{x:B.x+(l.x-B.x)/2,y:B.y+(l.y-B.y)/2}}function T(B){return(B+360)%360}function te(B){return Math.abs(Math.sin(r(B)))}function q(B){return Math.abs(Math.cos(r(B)))}function ne(B,l){l===void 0&&(l="deg");let U;if(l==="deg")U=B-B%45;else{let C=Math.round(B*(180/Math.PI));C=C-C%45,U=C*Math.PI/180}return U}},25884:(Qn,qe,s)=>{"use strict";var r;r={value:!0},r=r=r=r=r=r=r=void 0;var I=s(80595),J=y(I),N=s(34835),T=y(N),te=s(27276),q=y(te),ne=s(27122),B=y(ne),l=s(65251),U=y(l),C=s(52171),M=y(C),w=s(27921);function y(j){return j&&j.__esModule?j:{default:j}}qe.Ay=J.default,r=T.default,r=q.default,r=B.default,r=U.default,r=M.default,r=w.renderValue,r=w.renderData},25912:(Qn,qe,s)=>{"use strict";s.d(qe,{A:()=>Je});var r=s(38502),I=s(95549),J=s(53732),N=s.n(J),T=s(69173),te=s.n(T),q=s(17307),ne=s(46464),B=s(83199),l=s(61790),U=s(69874),C=s(20089),M=s(3876),w=s(37361),y=s(70248),j=s(29078),Q=s(72214);class ze extends r.PureComponent{constructor(mt){super(mt),(0,I.A)(this,"setElementRef",yt=>this.$element=yt),(0,I.A)(this,"handleMouseDown",yt=>{const{isEditing:Le}=this.state;if(Le)return;const{onMouseDown:He,onContextMenu:ye}=this.props;if(yt.button===0)this.timer=setTimeout(()=>{He&&this.$element&&He(yt,this.$element)},200);else if(yt.button===2){if(MB.f.editing||(yt.preventDefault(),yt.ctrlKey))return;ye&&ye(yt)}}),(0,I.A)(this,"handleMouseUp",()=>{clearTimeout(this.timer)}),(0,I.A)(this,"handleToggleLock",yt=>{yt.stopPropagation();const{treeNode:Le,onLock:He}=this.props;He(Le)}),(0,I.A)(this,"handleToggleVisible",yt=>{yt.stopPropagation();const{treeNode:Le,onVisible:He}=this.props;He(Le)}),(0,I.A)(this,"handleToggleExpand",yt=>{yt.stopPropagation();const{onToggleExpanded:Le}=this.props;Le()}),(0,I.A)(this,"handleDoubleClick",()=>{const{isDisabled:yt}=this.props;yt||this.setState({isEditing:!0})}),(0,I.A)(this,"handleConfirm",async(yt,Le)=>{if(Le){const{onChangeDisplayName:He,treeNode:ye}=this.props;await He(ye.key,yt)}this.setState({isEditing:!1})}),(0,I.A)(this,"onShowTipsByTarget",(yt,Le)=>{const He=Le.querySelector(".editable-name");return He.offsetWidth<He.scrollWidth}),this.state={isEditing:!1}}stopPropagation(mt){mt.stopPropagation()}render(){const{index:mt,depth:yt,isSelect:Le,isExpanded:He,isHover:ye,isDisabled:je,isLinked:ot,onClick:we,onMouseEnter:$e,onMouseLeave:ge,onClickLink:Ze,onClickIcon:W,initPaddingLeft:an,paddingLeftLayout:_t,isDummySelect:nn,treeNode:Oe,onlyView:sn,showAction:It,maxOrderDigit:Pt,isCanvasList:dt,isPreview:Vn,expandEnable:o,isHomepage:Gn}=this.props;if(!Oe)return null;const{isEditing:xt}=this.state,{key:Ot,hotAttr:wt}=Oe,{type:Kt,isLock:fe,isVisible:bt,basket:un}=wt,gt=(0,l.KD)(Oe),Wt=Kt===C.x.WBasket&&un==="bDanli",Un=fe?"lock":"unlock",Jn=bt?"visible":"invisible",Yt=It&&!je&&!xt,rt=(0,j.N8)(yt,_t,an);return(0,Q.jsx)(B.A,{content:je?(0,Q.jsx)(me,{}):gt,direction:"right",distance:5,onMouseEvent:"onDoubleClick",isShowTipsByTarget:je?void 0:this.onShowTipsByTarget,style:{overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box","-webkit-line-clamp":"10","-webkit-box-orient":"vertical",lineHeight:"20px",textAlign:"left"},children:(0,Q.jsxs)("div",{"data-interactive-target-key":Ot,"data-interactive-target-type":dt?M.E.canvasList:"",ref:this.setElementRef,className:N()("rn-list-item","layer-item",{active:Le,"dummy-select":nn,"is-disabled":je,"is-hidden":!bt,"is-locked":fe,hover:ye,"is-linked":ot,"is-not-drag":(0,y.OO)(Ot),"interactive-target-hotspot":dt}),style:{paddingLeft:rt},onClick:we,onMouseEnter:$e,onMouseLeave:ge,onMouseDown:this.handleMouseDown,onMouseUp:this.handleMouseUp,onDoubleClick:this.handleDoubleClick,children:[te()(mt)&&Pt&&(0,Q.jsx)(w.MI,{len:JSON.stringify(Pt).length,children:mt}),o&&(0,Q.jsx)("a",{className:"expander",onClick:this.handleToggleExpand,onDoubleClick:this.stopPropagation,children:(0,Q.jsx)(q.C,{className:N()("arrow-icon",{"is-expand":He}),name:"common/expand"})}),!Vn&&(0,Q.jsx)("div",{className:"layer-item-icon",onDoubleClick:W,children:(0,Q.jsx)(ne.A,{widget:Oe,isDynamic:Wt,isExpanded:He})}),sn?(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)("span",{className:"editable-name",children:gt}),Gn&&(0,Q.jsx)(q.C,{className:"homepage",name:"toolbar/preview/homepage"}),!bt&&!Yt&&(0,Q.jsx)(q.C,{className:"homepage invisible",name:"common/invisible"})]}):(0,Q.jsxs)(Q.Fragment,{children:[je?(0,Q.jsx)("span",{className:"editable-name",children:gt}):(0,Q.jsx)(U.A,{value:gt,className:"editable-name",isEditing:xt,onConfirm:this.handleConfirm},gt),Yt&&(0,Q.jsxs)("div",{className:"actions",onDoubleClick:this.stopPropagation,children:[(0,Q.jsx)("i",{className:N()("action"),onClick:this.handleToggleVisible,children:(0,Q.jsx)(q.C,{name:"left_panel/"+Jn,className:"eye-icon"})}),(0,Q.jsx)("i",{className:"action",onClick:this.handleToggleLock,children:(0,Q.jsx)(q.C,{name:"left_panel/"+Un,className:"lock-icon"})}),(0,Q.jsx)("i",{className:"action",onClick:Ze,children:(0,Q.jsx)(q.C,{name:"left_panel/link_mark",className:"link-icon"})})]})]})]})})}}const me=()=>(0,Q.jsx)("p",{style:{textAlign:"justify"},children:I18N.ScreenPanel.layer_item_disabled});var Se=s(95106),Me=s(18381),De=s(25997),tt=s(60651);const at=[C.x.WSticky],ht=$=>{var mt;const{index:yt,depth:Le,treeNode:He,hoverItem:ye,newSelection:je,treeProps:ot,childrenSelect:we,initPaddingLeft:$e,paddingLeftLayout:ge=4,dummySelect:Ze=new Set,layerExpandedKeySet:W=new Set,onlyView:an,isHomepage:_t,showAction:nn=!0,maxOrderDigit:Oe,isCanvasList:sn,isPreview:It,keyword:Pt}=$,dt=(0,Me.d4)(De.UV),Vn=(0,Me.d4)(tt.jI),o=(0,Me.d4)(tt.oO),{key:Gn,node:xt,children:Ot}=He,{hotAttr:{type:wt,basket:Kt}}=xt,{onLock:fe,onVisible:bt,onChangeDisplayName:un}=ot,gt=W.has(Gn),Wt=wt===C.x.WBasket&&Kt==="bDanli",Un=wt===C.x.WBasket&&Kt==="bMuban",Jn=wt===C.x.WMind,Yt=ye===Gn,rt=je.some(on=>on===Gn),An=(Un?(mt=Ot[0])==null?void 0:mt.children:Ot)||[],Nt=we?!0:rt&&wt===C.x.WWrap&&An.length>=1,jt=Ze==null?void 0:Ze.has(Gn),vn=An.length>0&&!Wt&&!Jn,Dt=(0,r.useMemo)(()=>dt?(0,Se.Xr)(dt,xt.key,o,Vn):[],[xt,dt,o,Vn]),$t=on=>{on.stopPropagation(),ot.onClick(on,xt)},kn=(on,yn)=>{an||ot.onMouseDown(on,xt,yn)},Kn=on=>{an||ot.onContextMenu(on,xt)},dn=()=>{var on;(on=ot.onMouseEnter)==null||on.call(ot,xt)},ft=()=>{var on;(on=ot.onMouseLeave)==null||on.call(ot,xt)},Lt=()=>{ot.onToggleExpanded(Gn)},bn=on=>{on.stopPropagation(),ot.onClick(on,xt);const yn=Dt.find(lo=>lo.interactive);yn?MB.action("entry:select:link",{link:yn}):MB.action("links:active:link",{cid:[]}),MB.action("right-side-panel:show:panel"),MB.action("settings:set:autoTabIndex",{autoTabIndex:1})},Yn=on=>{on.stopPropagation(),ot.onClickIcon()};return(0,Q.jsxs)("li",{"data-cid":Gn,className:N()("rn-content-item",{active:rt,hover:Yt,"dummy-select":jt}),children:[(0,Q.jsx)(ze,{index:yt,depth:Le,treeNode:xt,initPaddingLeft:$e,paddingLeftLayout:ge,isHover:Yt,isSelect:rt,isExpanded:gt,isLinked:Dt.some(on=>on.interactive),isDummySelect:jt,maxOrderDigit:Oe,isCanvasList:sn,onClick:$t,onClickLink:bn,onContextMenu:Kn,onMouseDown:kn,onMouseEnter:dn,onMouseLeave:ft,onToggleExpanded:Lt,onLock:fe,onVisible:bt,onChangeDisplayName:un,onClickIcon:Yn,onlyView:an,isHomepage:!!(_t&&_t(Gn)),isPreview:It,showAction:nn,expandEnable:vn}),vn&&gt&&(0,Q.jsx)("ul",{className:"children",children:An.map(on=>(0,Q.jsx)(ht,{initPaddingLeft:$e,paddingLeftLayout:ge,depth:Le+1,treeNode:on,hoverItem:ye,newSelection:je,childrenSelect:Nt,treeProps:ot,dummySelect:Ze,layerExpandedKeySet:W,onlyView:an,isHomepage:_t,showAction:nn,maxOrderDigit:Oe,isPreview:It,keyword:Pt},on.key))})]})},Je=ht},26348:(Qn,qe,s)=>{"use strict";s.d(qe,{G:()=>N});var r=s(38502);const J={defaultFirst:"",defaultActiveIndex:0,defaultSecond:"",secondQueryName:"",defaultScrollTop:0,defaultOffsetTop:50},N=function(T,te){te===void 0&&(te={});const q={...J,...te},{defaultFirst:ne,defaultActiveIndex:B,defaultSecond:l,secondQueryName:U,defaultScrollTop:C,defaultOffsetTop:M}=q,[w,y]=(0,r.useState)(ne),[j,Q]=(0,r.useState)(l),[ze,me]=(0,r.useState)(B||0),[Se,Me]=(0,r.useState)(0),De=(0,r.useRef)([]),[tt,at]=(0,r.useState)(C||0);return(0,r.useEffect)(()=>{var yt;const Le=()=>{const ye=De.current[0];if(!ye)return;const je=ye==null?void 0:ye.querySelector("span.title");if(je){const{key:ge}=je==null?void 0:je.dataset;y(ge!=null?ge:"")}if(me(0),U){var ot;const ge=(ot=De.current[0])==null?void 0:ot.querySelectorAll(U);if(ge.length>0){var we;const Ze=ge[0];if(!Ze)return;if((we=Ze.dataset)!=null&&we.key){var $e;Q(($e=Ze.dataset)==null?void 0:$e.key)}else{const W=Ze.querySelector("span.title"),{key:an}=(W==null?void 0:W.dataset)||{};Q(an!=null?an:"")}Me(0)}}},He=ye=>{const je=ye.target.scrollTop;at(je);let ot=0;if(je===0){Le();return}for(let nn=0;nn<((we=De.current)==null?void 0:we.length);nn++){var we;const Oe=De.current[nn];if(Oe&&Oe.offsetTop-M<=je&&Oe.offsetTop-M+Oe.offsetHeight>je){const sn=Oe==null?void 0:Oe.querySelector("span.title");if(sn){const{key:It}=sn==null?void 0:sn.dataset;y(It!=null?It:"")}me(nn),ot=nn;break}}if(U){var $e,ge;const nn=($e=De.current[ot])==null?void 0:$e.querySelectorAll(U),Oe=(ge=De.current[ot])==null?void 0:ge.querySelector(".show-title");if(nn.length>0)for(let sn=0;sn<nn.length;sn++){const It=nn[sn];if(It){if(sn===0&&Oe){if(Oe.offsetTop-M<=je&&Oe.offsetTop-M+Oe.offsetHeight+It.offsetHeight>je){var Ze;if((Ze=It.dataset)!=null&&Ze.key){var W;Q((W=It.dataset)==null?void 0:W.key)}else{const Pt=It.querySelector("span.title"),{key:dt}=(Pt==null?void 0:Pt.dataset)||{};Q(dt!=null?dt:"")}Me(sn);break}}else if(It.offsetTop-M<=je&&It.offsetTop-M+It.offsetHeight>je){var an;if((an=It.dataset)!=null&&an.key){var _t;Q((_t=It.dataset)==null?void 0:_t.key)}else{const Pt=It.querySelector("span.title"),{key:dt}=(Pt==null?void 0:Pt.dataset)||{};Q(dt!=null?dt:"")}Me(sn);break}}}}};return T==null||(yt=T.current)==null||yt.addEventListener("scroll",He),()=>{var ye;return T==null||(ye=T.current)==null?void 0:ye.removeEventListener("scroll",He)}},[]),{setItemRef:(0,r.useCallback)(yt=>Le=>{De.current[yt]=Le},[]),scrollToItem:function(yt,Le,He){if(Le===void 0&&(Le=0),He===void 0&&(He=!0),He&&yt===ze&&Le===Se)return;me(yt),Me(Le);let ye=0;if(yt===0&&Le===0)ye=0;else if(U){if(De.current[yt]){var je;const ge=((je=De.current[yt])==null?void 0:je.querySelectorAll(U))[Le];if(ge)if(Le===0){var ot;const Ze=(ot=De.current[yt])==null?void 0:ot.querySelector(".show-title");Ze?ye=(Ze==null?void 0:Ze.offsetTop)-M:ye=(ge==null?void 0:ge.offsetTop)-M}else ye=(ge==null?void 0:ge.offsetTop)-M}}else if(Le===0){var we;ye=((we=De.current[yt])==null?void 0:we.offsetTop)-M}T.current.scrollTop=ye},scrollToSecondItem:yt=>{if(De.current[ze]){var Le;const ye=(Le=De.current[ze])==null?void 0:Le.querySelectorAll(U);if(ye[yt]){var He;T.current.scrollTop=((He=ye[yt])==null?void 0:He.offsetTop)-M}}},activeTitleValue:w,setActiveTitle:y,activeSecondTitleValue:j,scrollTop:tt,scrollToByOffset:yt=>{T.current.scrollTop=yt}}}},26781:(Qn,qe,s)=>{"use strict";s.d(qe,{dP:()=>B,nM:()=>l,q2:()=>ne,zG:()=>U});var r=s(99963),I=s(61627),J=s(27480),N=s(43605),T=s(547),te=s(20089),q=s(8580);const ne=(C,M)=>[te.x.WLine,te.x.WArrow].includes(C)?(0,N.ne)([M.startX,M.startY],[M.endX,M.endY]):(0,T.rn)(M),B=C=>{const M=C.map(w=>{const y=r.o.toBoundingPoints((0,q.Oj)(w));return I.a.axisAligned(y)});return J.rw.enclosingRects(M)},l=C=>{const{x:M,y:w,w:y,h:j}=B(C);return{top:w,left:M,right:M+y,bottom:w+j,width:y,height:j}},U=C=>{let{key:M}=C;const w=(0,q.Oj)(M),{transform:y,rect:{w:j,h:Q}}=w,ze=y.clone().apply(J.rw.center(w.rect)),me=ze.x-j/2,Se=ze.y-Q/2;return{top:Se,left:me,width:j,height:Q,right:me+j,bottom:Se+Q}}},26998:(Qn,qe,s)=>{"use strict";s.d(qe,{P:()=>J,g:()=>N});var r=s(25306),I=s(27845);const J=T=>{if(!T)return"\u514D\u8D39\u7248";const te=r.tz.InitialUser(T),q=te.planSdk.prototypePlan.getUserPlan();return te.planSdk.prototypePlan.getUserStatus()===I.pZ.Trial?"\u8BD5\u7528\u7248":q===I.L1.PremiumLifetime?"\u5C0A\u4EAB\u7EC8\u8EAB\u7248":q===I.L1.Lifetime?"\u7EC8\u8EAB\u7248":q===I.L1.Solo?"\u6807\u51C6\u7248":"\u514D\u8D39\u7248"},N=T=>{if(!T)return"free";const te=r.tz.InitialUser(T),q=te.planSdk.prototypePlan.getUserPlan();return te.planSdk.prototypePlan.getUserStatus()===I.pZ.Trial?"trial":q!==I.L1.Free?"paid":"free"}},27122:(Qn,qe,s)=>{"use strict";Object.defineProperty(qe,"__esModule",{value:!0});var r=Object.assign||function(w){for(var y=1;y<arguments.length;y++){var j=arguments[y];for(var Q in j)Object.prototype.hasOwnProperty.call(j,Q)&&(w[Q]=j[Q])}return w},I=function(){function w(y,j){for(var Q=0;Q<j.length;Q++){var ze=j[Q];ze.enumerable=ze.enumerable||!1,ze.configurable=!0,"value"in ze&&(ze.writable=!0),Object.defineProperty(y,ze.key,ze)}}return function(y,j,Q){return j&&w(y.prototype,j),Q&&w(y,Q),y}}(),J=s(38502),N=B(J),T=s(25582),te=B(T),q=s(36221),ne=B(q);function B(w){return w&&w.__esModule?w:{default:w}}function l(w,y){if(!(w instanceof y))throw new TypeError("Cannot call a class as a function")}function U(w,y){if(!w)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:w}function C(w,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);w.prototype=Object.create(y&&y.prototype,{constructor:{value:w,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(w,y):w.__proto__=y)}var M=function(w){C(y,w);function y(){return l(this,y),U(this,(y.__proto__||Object.getPrototypeOf(y)).apply(this,arguments))}return I(y,[{key:"render",value:function(){var Q=this.props,ze=Q.cell,me=Q.row,Se=Q.col,Me=Q.attributesRenderer,De=Q.className,tt=Q.style,at=Q.onMouseDown,ht=Q.onMouseOver,Je=Q.onDoubleClick,$=Q.onContextMenu,mt=ze.colSpan,yt=ze.rowSpan,Le=Me?Me(ze,me,Se):{};return N.default.createElement("td",r({className:De,onMouseDown:at,onMouseOver:ht,onDoubleClick:Je,onTouchEnd:Je,onContextMenu:$,colSpan:mt,rowSpan:yt,style:tt},Le),this.props.children)}}]),y}(J.PureComponent);qe.default=M,M.propTypes={row:te.default.number.isRequired,col:te.default.number.isRequired,cell:te.default.shape(ne.default).isRequired,selected:te.default.bool,editing:te.default.bool,updated:te.default.bool,attributesRenderer:te.default.func,onMouseDown:te.default.func.isRequired,onMouseOver:te.default.func.isRequired,onDoubleClick:te.default.func.isRequired,onContextMenu:te.default.func.isRequired,className:te.default.string,style:te.default.object},M.defaultProps={selected:!1,editing:!1,updated:!1,attributesRenderer:function(){}}},27276:(Qn,qe,s)=>{"use strict";Object.defineProperty(qe,"__esModule",{value:!0});var r=function(){function M(w,y){for(var j=0;j<y.length;j++){var Q=y[j];Q.enumerable=Q.enumerable||!1,Q.configurable=!0,"value"in Q&&(Q.writable=!0),Object.defineProperty(w,Q.key,Q)}}return function(w,y,j){return y&&M(w.prototype,y),j&&M(w,j),w}}(),I=s(38502),J=ne(I),N=s(25582),T=ne(N),te=s(36221),q=ne(te);function ne(M){return M&&M.__esModule?M:{default:M}}function B(M,w){if(!(M instanceof w))throw new TypeError("Cannot call a class as a function")}function l(M,w){if(!M)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return w&&(typeof w=="object"||typeof w=="function")?w:M}function U(M,w){if(typeof w!="function"&&w!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof w);M.prototype=Object.create(w&&w.prototype,{constructor:{value:M,enumerable:!1,writable:!0,configurable:!0}}),w&&(Object.setPrototypeOf?Object.setPrototypeOf(M,w):M.__proto__=w)}var C=function(M){U(w,M);function w(){return B(this,w),l(this,(w.__proto__||Object.getPrototypeOf(w)).apply(this,arguments))}return r(w,[{key:"render",value:function(){return J.default.createElement("tr",null,this.props.children)}}]),w}(I.PureComponent);C.propTypes={row:T.default.number.isRequired,cells:T.default.arrayOf(T.default.shape(q.default)).isRequired},qe.default=C},27921:(Qn,qe)=>{"use strict";Object.defineProperty(qe,"__esModule",{value:!0}),qe.renderValue=s,qe.renderData=r;function s(I,J,N,T){var te=T(I,J,N);return te===null||typeof te>"u"?"":te}function r(I,J,N,T,te){var q=te?te(I,J,N):null;return q===null||typeof q>"u"?s(I,J,N,T):q}},28147:(Qn,qe,s)=>{"use strict";s.d(qe,{A:()=>M});var r=s(38502),I=Object.defineProperty,J=Object.defineProperties,N=Object.getOwnPropertyDescriptors,T=Object.getOwnPropertySymbols,te=Object.prototype.hasOwnProperty,q=Object.prototype.propertyIsEnumerable,ne=(w,y,j)=>y in w?I(w,y,{enumerable:!0,configurable:!0,writable:!0,value:j}):w[y]=j,B=(w,y)=>{for(var j in y||(y={}))te.call(y,j)&&ne(w,j,y[j]);if(T)for(var j of T(y))q.call(y,j)&&ne(w,j,y[j]);return w},l=(w,y)=>J(w,N(y)),U=(w,y)=>{var j={};for(var Q in w)te.call(w,Q)&&y.indexOf(Q)<0&&(j[Q]=w[Q]);if(w!=null&&T)for(var Q of T(w))y.indexOf(Q)<0&&q.call(w,Q)&&(j[Q]=w[Q]);return j},M=(0,r.forwardRef)((w,y)=>{var j=w,{size:Q,spin:ze,style:me}=j,Se=U(j,["size","spin","style"]);const Me=B(B({width:Q||"var(--x-icon-size, 1em)",height:Q||"var(--x-icon-size, 1em)",animation:ze?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),me);return r.createElement("svg",l(B({ref:y,style:Me},Se),{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),r.createElement("path",{d:"M13.7041 7.01074C14.7128 7.113 15.5 7.96435 15.5 9V18C15.5 19.0357 14.7128 19.887 13.7041 19.9893L13.5 20H6.5C5.46435 20 4.613 19.2128 4.51074 18.2041L4.5 18V9C4.5 7.89543 5.39543 7 6.5 7H13.5L13.7041 7.01074ZM6.5 8.5C6.22386 8.5 6 8.72386 6 9V18C6 18.2761 6.22386 18.5 6.5 18.5H13.5C13.7761 18.5 14 18.2761 14 18V9C14 8.72386 13.7761 8.5 13.5 8.5H6.5ZM17.7041 4.01074C18.7128 4.113 19.5 4.96435 19.5 6V15C19.5 16.0357 18.7128 16.887 17.7041 16.9893L17.5 17H16.5V15.5H17.5C17.7761 15.5 18 15.2761 18 15V6C18 5.72386 17.7761 5.5 17.5 5.5H10.5C10.2239 5.5 10 5.72386 10 6H8.5C8.5 4.89543 9.39543 4 10.5 4H17.5L17.7041 4.01074Z",fill:"#19191A"}))})},28173:(Qn,qe,s)=>{"use strict";s.d(qe,{C:()=>te});var r=s(12211),I=s(20089),J=s(85584),N=s(70933),T=s(67052);const te=(0,r.Mz)([T.HA,N.Ur],(q,ne)=>{var B;const l=!q||(q==null||(B=q.children)==null?void 0:B.length)===0;if(!l){const U=(0,J.YU)(q).filter(C=>C.bunch===I.x.RbPage&&!(0,J.Mo)(C));return{isEmptyScreen:!(U!=null&&U.length)||!ne,isEmpty:l}}return{isEmptyScreen:!0,isEmpty:l}})},28731:(Qn,qe,s)=>{"use strict";s.d(qe,{I:()=>I,a:()=>J});var r=s(18833);const I={request401:"request401",requestVersion403:"requestVersion403",requestVersionRO403:"requestVersionRO403",requestVersion404:"requestVersion404"},J=N=>{const{type:T}=N.data;switch(T){case I.request401:MB.global.popupHelper.alertAsyncBlocked({title:I18N.dModule.err_info_modal.INVALID_COOKIE.title,desc:I18N.dModule.err_info_modal.INVALID_COOKIE.desc,confirmText:I18N.dModule.confirm,isHTML:!1}).then(()=>(0,r.AG)());break;case I.requestVersion403:MB.global.popupHelper.alertAsyncBlocked({title:I18N.dModule.cant_edit,confirmText:I18N.dModule.exit_editing,desc:I18N.dModule.cant_edit_desc,isHTML:!1}).then(()=>MB.global.onBackButtonClick());break;case I.requestVersionRO403:MB.global.popupHelper.alertAsync({title:I18N.dModule.project_share_p_changed,confirmText:I18N.dModule.confirm,desc:I18N.dModule.project_share_p_changed_desc}).then(()=>location.reload());break;case I.requestVersion404:MB.global.popupHelper.alertAsync({title:I18N.dModule.version_deleted,confirmText:I18N.dModule.confirm,desc:I18N.dModule.version_deleted_desc}).then(()=>location.reload());break;default:break}}},28732:(Qn,qe,s)=>{"use strict";s.d(qe,{A:()=>M});var r=s(38502),I=Object.defineProperty,J=Object.defineProperties,N=Object.getOwnPropertyDescriptors,T=Object.getOwnPropertySymbols,te=Object.prototype.hasOwnProperty,q=Object.prototype.propertyIsEnumerable,ne=(w,y,j)=>y in w?I(w,y,{enumerable:!0,configurable:!0,writable:!0,value:j}):w[y]=j,B=(w,y)=>{for(var j in y||(y={}))te.call(y,j)&&ne(w,j,y[j]);if(T)for(var j of T(y))q.call(y,j)&&ne(w,j,y[j]);return w},l=(w,y)=>J(w,N(y)),U=(w,y)=>{var j={};for(var Q in w)te.call(w,Q)&&y.indexOf(Q)<0&&(j[Q]=w[Q]);if(w!=null&&T)for(var Q of T(w))y.indexOf(Q)<0&&q.call(w,Q)&&(j[Q]=w[Q]);return j},M=(0,r.forwardRef)((w,y)=>{var j=w,{size:Q,spin:ze,style:me}=j,Se=U(j,["size","spin","style"]);const Me=B(B({width:Q||"var(--x-icon-size, 1em)",height:Q||"var(--x-icon-size, 1em)",animation:ze?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),me);return r.createElement("svg",l(B({ref:y,style:Me},Se),{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),r.createElement("g",{clipPath:"url(#clip0_121_559)"},r.createElement("rect",{width:"32",height:"32",rx:"7.07292",fill:"#FF75E8"}),r.createElement("path",{d:"M28.2575 22.815C28.2509 22.6265 28.1274 22.4913 27.9491 22.4781C27.8014 22.4674 27.6658 22.4613 27.5344 22.4589C27.2658 22.455 26.9967 22.5077 26.7119 22.6202C26.4386 22.7281 26.0833 22.8824 25.7575 23.1191C25.502 23.3048 25.1678 23.5521 24.8479 23.8186C24.7783 23.8767 24.7106 23.9369 24.6453 23.9952C24.5097 24.116 24.3816 24.2301 24.24 24.3227C24.0983 24.4153 23.9808 24.4784 23.8559 24.4924C23.6605 24.5144 23.6299 24.4533 23.6018 24.3499C23.5622 24.2031 23.5663 24.0452 23.5707 23.8774C23.5733 23.7735 23.58 23.6702 23.587 23.5613C23.5932 23.4649 23.5996 23.365 23.6029 23.2651L23.6033 23.2544C23.611 23.0167 23.6198 22.771 23.6141 22.5261C23.6073 22.198 23.5444 21.91 23.4219 21.6464C23.2679 21.3145 23.0155 21.0658 22.6718 20.9072C22.4693 20.8136 22.2663 20.7787 22.041 20.7456C21.7858 20.7082 21.5236 20.731 21.2408 20.8156C20.8199 20.9417 20.429 21.185 20.0791 21.5385C19.7522 21.8692 19.4844 22.2444 19.2436 22.6006C19.2023 22.6618 19.1611 22.7232 19.12 22.7847C18.9129 23.0944 18.717 23.388 18.481 23.6547C18.3585 23.7939 18.2444 23.9126 18.0957 23.9647C17.9975 23.9991 17.9605 23.9742 17.9311 23.9459C17.8989 23.9153 17.8821 23.8668 17.8669 23.762C17.8283 23.5003 17.8583 23.234 17.8907 22.9521L17.8923 22.9406C17.9213 22.6831 17.9593 22.4248 17.9961 22.1751C18.0121 22.0664 18.0271 21.9639 18.0416 21.8608L18.0438 21.8452C18.0491 21.7677 18.0548 21.6921 18.0603 21.6185C18.0729 21.4492 18.0848 21.2892 18.0908 21.1268C18.0974 20.9623 18.0955 20.7886 18.0854 20.6096C18.0689 20.3242 18.0042 20.044 17.8941 19.7812C17.7594 19.4582 17.5601 19.2033 17.3022 19.0237C16.939 18.7704 16.5115 18.6469 16.0328 18.6569C15.7998 18.6632 15.5688 18.7041 15.3472 18.7783C15.0291 18.8801 14.7268 19.0274 14.4495 19.2156L14.4315 19.2281C14.2048 19.383 13.9702 19.5432 13.7543 19.7348C13.4233 20.0284 13.1814 20.2667 12.9696 20.5091C12.7989 20.7039 12.5987 20.9355 12.4083 21.1749C12.2032 21.4327 11.9856 21.7105 11.782 21.9991C11.5136 22.3792 11.273 22.7372 11.0464 23.0936C10.7797 23.5133 10.5226 23.9453 10.2823 24.3516C10.1431 24.5871 10.0975 24.8097 10.1433 25.032C10.2145 25.3783 10.424 25.618 10.7493 25.7258C10.8107 25.7459 10.8737 25.7605 10.9377 25.7693C11.2859 25.8183 11.5929 25.6701 11.7986 25.3464C11.9008 25.1856 11.9953 25.0193 12.0868 24.8584C12.1512 24.7452 12.2177 24.6282 12.2853 24.5159C12.3239 24.4519 12.3624 24.3878 12.4009 24.3237C12.5973 23.9968 12.8003 23.6589 13.0119 23.3374C13.2493 22.9769 13.5052 22.629 13.7471 22.3034C13.8815 22.1225 14.0335 21.9377 14.2259 21.7224C14.4048 21.5203 14.5965 21.3282 14.7434 21.1834C14.8726 21.0559 15.0002 20.9327 15.138 20.8299C15.2996 20.7092 15.48 20.6035 15.619 20.5254C15.7901 20.4292 15.9528 20.3801 16.116 20.3755C16.3044 20.3703 16.3616 20.5113 16.3789 20.5957C16.3998 20.6977 16.4045 20.8104 16.3934 20.9504C16.3862 21.0423 16.3802 21.1353 16.3739 21.2251C16.3632 21.3857 16.3522 21.5518 16.3352 21.7123C16.3142 21.912 16.2892 22.1155 16.2651 22.3125C16.2404 22.5139 16.2148 22.7224 16.1933 22.9279C16.1717 23.1334 16.164 23.3386 16.1565 23.5377L16.1556 23.5622C16.1462 23.8374 16.1794 24.1121 16.2538 24.3766C16.3425 24.6966 16.4779 24.947 16.6677 25.142C17.0148 25.4985 17.4592 25.6825 17.9889 25.6891C18.411 25.6942 18.8142 25.5602 19.1872 25.291C19.4822 25.0781 19.749 24.8004 19.98 24.4658C20.1633 24.2002 20.3421 23.9263 20.5151 23.6616C20.5814 23.5599 20.648 23.4582 20.7148 23.3567C20.9069 23.0653 21.1006 22.7848 21.3561 22.5609C21.4951 22.439 21.6366 22.3648 21.7888 22.3341C21.8376 22.3241 21.9065 22.3206 21.9586 22.3599C22.0072 22.3966 22.0221 22.4572 22.0263 22.5016C22.0364 22.6144 22.0377 22.7278 22.0301 22.8409C22.02 22.9878 22.0058 23.1383 21.992 23.2839C21.9819 23.3915 21.9714 23.5025 21.9624 23.6133L21.9599 23.6462C21.9474 23.8009 21.9344 23.9614 21.9344 24.1234C21.9343 24.3855 21.9597 24.6147 22.0119 24.825C22.0881 25.1313 22.2206 25.3776 22.4167 25.5779C22.6441 25.8102 22.9191 25.9535 23.2575 26.0163C23.5677 26.0738 23.8796 26.0449 24.2107 25.9287C24.5007 25.8261 24.7465 25.6568 24.9282 25.5213C25.1761 25.3355 25.3899 25.117 25.5967 24.906C25.6297 24.8723 25.6629 24.8385 25.6962 24.8047C25.7922 24.7074 25.889 24.608 25.9825 24.512C26.208 24.2805 26.4411 24.0412 26.6778 23.817C26.857 23.6468 27.0582 23.5018 27.2757 23.3861C27.4956 23.2696 27.7315 23.1874 27.9753 23.1422C28.1473 23.1086 28.2631 22.9747 28.2575 22.815Z",fill:"url(#paint0_linear_121_559)"}),r.createElement("path",{d:"M19.1285 9.0139C19.6194 8.29134 19.1773 7.12975 18.1407 6.41024C17.1041 5.69073 15.8572 5.69073 15.3572 6.41024L14.3816 7.79743C14.2539 7.99783 14.2093 8.24003 14.2571 8.47277C14.3049 8.7055 14.4414 8.91051 14.6377 9.04439L16.8968 10.6054C17.091 10.7417 17.3305 10.7972 17.5649 10.7603C17.7993 10.7233 18.0101 10.5967 18.1529 10.4072L19.1163 9.0139H19.1285Z",fill:"white",fillOpacity:"0.7"}),r.createElement("path",{d:"M8.23823 24.7349L16.4699 12.8629C16.6104 12.6709 16.6706 12.4316 16.6376 12.196C16.6045 11.9603 16.481 11.7468 16.2931 11.6007L13.9364 9.96964C13.7337 9.84499 13.4904 9.80425 13.2582 9.85604C13.0259 9.90784 12.823 10.0481 12.6925 10.2471L4.4608 22.119C4.21001 22.473 4.10121 22.9082 4.15592 23.3385L4.29311 24.3294C4.32048 24.5485 4.39378 24.7594 4.50821 24.9483C4.62264 25.1372 4.77563 25.2998 4.95718 25.4256C5.13874 25.5513 5.34478 25.6373 5.56185 25.678C5.77892 25.7187 6.00212 25.7131 6.21689 25.6617L7.19555 25.4452C7.62044 25.3488 7.99301 25.095 8.23823 24.7349Z",fill:"white"})),r.createElement("defs",null,r.createElement("linearGradient",{id:"paint0_linear_121_559",x1:"19.3752",y1:"22.5255",x2:"30.3741",y2:"24.2232",gradientUnits:"userSpaceOnUse"},r.createElement("stop",{stopColor:"white"}),r.createElement("stop",{offset:"1",stopColor:"white",stopOpacity:"0.14"})),r.createElement("clipPath",{id:"clip0_121_559"},r.createElement("rect",{width:"32",height:"32",fill:"white"}))))})},28878:(Qn,qe,s)=>{"use strict";s.d(qe,{A:()=>M});var r=s(38502),I=Object.defineProperty,J=Object.defineProperties,N=Object.getOwnPropertyDescriptors,T=Object.getOwnPropertySymbols,te=Object.prototype.hasOwnProperty,q=Object.prototype.propertyIsEnumerable,ne=(w,y,j)=>y in w?I(w,y,{enumerable:!0,configurable:!0,writable:!0,value:j}):w[y]=j,B=(w,y)=>{for(var j in y||(y={}))te.call(y,j)&&ne(w,j,y[j]);if(T)for(var j of T(y))q.call(y,j)&&ne(w,j,y[j]);return w},l=(w,y)=>J(w,N(y)),U=(w,y)=>{var j={};for(var Q in w)te.call(w,Q)&&y.indexOf(Q)<0&&(j[Q]=w[Q]);if(w!=null&&T)for(var Q of T(w))y.indexOf(Q)<0&&q.call(w,Q)&&(j[Q]=w[Q]);return j},M=(0,r.forwardRef)((w,y)=>{var j=w,{size:Q,spin:ze,style:me}=j,Se=U(j,["size","spin","style"]);const Me=B(B({width:Q||"var(--x-icon-size, 1em)",height:Q||"var(--x-icon-size, 1em)",animation:ze?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),me);return r.createElement("svg",l(B({ref:y,style:Me},Se),{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),r.createElement("path",{d:"M12.8889 14.6667C12.8889 15.1576 12.4909 15.5556 12 15.5556C11.5091 15.5556 11.1111 15.1576 11.1111 14.6667C11.1111 14.1757 11.5091 13.7778 12 13.7778C12.4909 13.7778 12.8889 14.1757 12.8889 14.6667Z",fill:"#19191A"}),r.createElement("path",{d:"M12.0002 12.8893C12.3666 12.8893 12.6735 12.6116 12.7099 12.247L13.0217 9.12924C13.0822 8.52487 12.6075 8.00043 12.0002 8.00043C11.3928 8.00043 10.9182 8.52487 10.9786 9.12925L11.2904 12.247C11.3268 12.6116 11.6337 12.8893 12.0002 12.8893Z",fill:"#19191A"}),r.createElement("path",{d:"M12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM18.6667 12C18.6667 15.6819 15.6819 18.6667 12 18.6667C8.3181 18.6667 5.33333 15.6819 5.33333 12C5.33333 8.3181 8.3181 5.33333 12 5.33333C15.6819 5.33333 18.6667 8.3181 18.6667 12Z",fill:"#19191A"}))})},29078:(Qn,qe,s)=>{"use strict";s.d(qe,{N8:()=>M,uX:()=>ze,vl:()=>l,ww:()=>U,zD:()=>C});var r=s(80777),I=s.n(r),J=s(83106),N=s.n(J),T=s(76967),te=s.n(T),q=s(20089),ne=s(24437),B=s(85449);const l=me=>[...sdkStore.findAllTypeUnderNoSubPage(me,q.x.Canvas).map(Se=>Se.key),...sdkStore.findAllTypeUnderNoSubPage(me,q.x.WWrap).map(Se=>Se.key),...sdkStore.findAllTypeUnderNoSubPage(me,q.x.WBasket).filter(Se=>Se.hotAttr.basket==="bMuban").map(Se=>Se.key)],U=(me,Se)=>{if(!(0,B.dP)())return!1;const De=l(me==null?void 0:me.cid);let tt=!0;for(const at of De)if(!Se.has(at)){tt=!1;break}return tt},C=me=>{const{isPreview:Se,isCommunityPreview:Me,isCanvasSortableList:De}=me||{};let tt=20,at=20;return Se&&(tt=20),Me&&(tt=24,at=10),De&&(tt=20,at=20,Me&&(tt=14,at=14)),{initPaddingLeft:tt,paddingLeftLayout:at}},M=(me,Se,Me)=>(Me||21)+(Se||22)*me,w=me=>me?me.shiftKey?"range":me.metaKey||me.ctrlKey?"multiple":"single":"single",y=(me,Se)=>me.includes(Se)?N()(me,Se):me.concat(Se),j=(me,Se)=>{const Me=(0,ne.BH)([Se]);return me.includes(Se)?N()(me,...Me):I()(me.concat([...Me]))},Q=(me,Se)=>me.findIndex(Me=>Me===Se),ze=(me,Se,Me)=>{const{rangeStart:De,rangeEnd:tt,selected:at}=me,{cid:ht,cids:Je,e:$,selectFrom:mt,isMultiplePage:yt=!1,canCheck:Le=!0}=Se;let He=w($);mt==="screen"&&(He=yt?"multiple":Le?He:"single");const ye=Je.indexOf(ht);if(He==="range")if(tt===void 0){const we=ye<De?Je.slice(ye,De+1):Je.slice(De,ye+1);De>ye&&we.reverse();const $e=we.filter(Ze=>Q(at,Ze)===-1),ge={rangeStart:De,rangeEnd:ye,selected:at.concat($e)};return Me&&Me(ge),ge}else{if(ye===tt)return Me&&Me(me),me;{const we=Je.slice(Math.min(De,tt),Math.max(De,tt)+1),$e=Je.slice(Math.min(De,ye),Math.max(De,ye)+1),ge=I()(te()(at,we),$e);De>ye&&ge.reverse();const Ze={rangeStart:De,rangeEnd:ye,selected:ge};return Me&&Me(Ze),Ze}}let je=He==="single"?[ht]:y(at,ht);if(mt==="screen"){const we=at.length===1?at[0]:void 0;je=He==="single"?[ht]:!yt&&He==="multiple"&&ht===we?(0,ne.BH)([ht]):j(at,ht)}const ot={rangeStart:ye,rangeEnd:void 0,selected:je};return Me&&Me(ot),ot}},29303:(Qn,qe,s)=>{"use strict";s.d(qe,{A:()=>De});var r=s(38502),I=s(18381),J=s(53732),N=s.n(J),T=s(12211),te=s(21066),q=s(87332),ne=s(78301),B=s(25067),l=s(17307),U=s(93413),C=s(78661),M=s(16454),w=s(53940),y=s(48281),j=s(61565),Q=s(20089),ze=s(72214);class me extends r.PureComponent{render(){const{dispatch:at,propsForMenu:ht}=this.props;return(0,ze.jsx)(Se,{dispatch:at,propsForMenu:ht})}}const Se=tt=>{let{dispatch:at,propsForMenu:ht}=tt;const Je=(0,ze.jsx)(l.C,{name:"toolbar/selected",className:"selected-icon"}),{isFullScreenMode:$,isSquare:mt,isEmbedV2:yt,theme:Le,isHighlight:He,isPreviewAIComponent:ye,isShowShell:je,isCommunityComboPreview:ot,isPreviewCombo:we,isPanelPreviewMode:$e,STMode:ge,isViewSticky:Ze,isLeftShow:W,isRightShow:an}=ht,_t=!Ze,nn=(0,r.useRef)(null),[Oe,sn]=(0,r.useState)({left:-999,top:-999}),It=!ot&&!we&&!$e;(0,r.useEffect)(()=>{It&&at({type:"ST:update",payload:{STMode:!_t}})},[at,It,_t]);const Pt=()=>{at({type:"entry:preview-setting:update:is-highlight",payload:{isHighlight:!He}}),(0,y.v)({operation_type:y.$.HighLight})},dt=bt=>{bt&&at({type:"preview:set:canvas:offset:dev",payload:{offset:{x:0,y:0}}}),at({type:"entry:ST:STMode:toggle"}),(0,y.v)({operation_type:y.$.Sticky})},Vn=()=>{at({type:"entry:preview-setting:update:show:shell",payload:{isShowShell:!je}}),(0,y.v)({operation_type:y.$.ShowShell})},o=bt=>{at({type:"reducer:preview-toolbar:update",payload:{theme:bt}}),(0,y.v)({operation_type:bt===w.Sx.DARK?y.$.DarkBackground:y.$.LightBackground})},Gn=!we&&!$e&&!mt&&!yt,xt=!we&&!$e&&!mt&&!yt,Ot=!ye,wt=bt=>{var un,gt,Wt;if(nn!=null&&(un=nn.current)!=null&&un.$element&&bt){var Un;const Jn=nn==null||(Un=nn.current)==null||(Un=Un.$element)==null?void 0:Un.getBoundingClientRect();if(Jn){const Yt=(48-Jn.height)/2,rt={left:Jn.left-2+32,top:Jn.bottom+Yt-2};sn(rt)}}(gt=MB)==null||(gt=gt.commonGuideHelper)==null||gt.closeGuide(U.c.GUIDE_PREVIEW_VIEW_BTN),(Wt=MB)==null||(Wt=Wt.commonGuideHelper)==null||Wt.markGuideAsRead(U.c.GUIDE_PREVIEW_VIEW_BTN)},Kt=()=>at({type:"entry:preview-setting:toggle:isMinimized"}),fe=()=>at({type:"entry:preview-setting:toggle:rightPane"});return(0,ze.jsx)(q.A,{ref:nn,onClick:wt,className:N()("settings-dropdown",{isCommunity:mt}),renderOpener:(0,ze.jsx)(B.A,{className:N()("fixed-layout-position","preview-view-icon",{isEmbedV2Preview:yt},{NotFullScreen:!$}),name:I18N.pPreviewToolbar.comment,toolTipName:I18N.ToolBar.view,svgIconName:"toolbar/layout",toolTipDistance:8,size:32}),renderMenu:(0,ze.jsxs)(ne.Sv,{className:N()("onlyPreview",{fullScreen:$},{isCommunity:mt},{isEmbedV2Preview:yt},{combo_group:ot}),position:Oe,onClose:()=>{},children:[Gn&&(0,ze.jsx)(te.Dr,{text:I18N.PreferenceBar.left_panel,disabled:!1,icon:W?Je:void 0,onClick:Kt,hotKeyText:C.V.showLeftPanel}),xt&&(0,ze.jsx)(te.Dr,{text:I18N.PreferenceBar.right_panel,disabled:!Ze,icon:an?Je:void 0,onClick:fe,hotKeyText:C.V.showRightPanel}),Ot&&(0,ze.jsx)(te.Dr,{text:I18N.ToolBar.lingLink,disabled:!1,icon:He?Je:void 0,onClick:Pt}),It&&(0,ze.jsx)(te.Dr,{text:I18N.PreferenceBar.show_device_frame,disabled:!1,icon:je?Je:void 0,onClick:Vn}),It&&(0,ze.jsx)(te.Dr,{text:I18N.ToolBar.sticky,disabled:_t,icon:ge&&!_t?Je:void 0,onClick:()=>dt(ge)}),(Ot||It)&&(0,ze.jsx)("div",{className:"menu-divider"}),(0,ze.jsx)(te.Dr,{text:I18N.PreferenceBar.dark_background,disabled:!1,icon:Le===w.Sx.DARK?Je:void 0,onClick:()=>o(w.Sx.DARK)}),(0,ze.jsx)(te.Dr,{text:I18N.PreferenceBar.light_background,disabled:!1,icon:Le===w.Sx.LIGHT?Je:void 0,onClick:()=>o(w.Sx.LIGHT)}),(0,ze.jsx)(ne.kb,{})]})})},Me=(0,T.Mz)([M.Ph,M.Pf,M.U4,M.bF,M.m5,M.Re,M.Mh,M.ub,M.hM,M.KR,j.Lc,M.UB,M.Cb],(tt,at,ht,Je,$,mt,yt,Le,He,ye,je,ot,we)=>{var $e;let{isSquare:ge,isEmbedV2:Ze,isHTMLZip:W}=Je,an=!0;return W||(an=ot==null?void 0:ot.view_sticky,ot&&typeof ot.view_sticky=="string"&&(an=ot.view_sticky==="view_sticky")),{propsForMenu:{isPreviewAIComponent:we&&(($e=sdkStore.getHotItem(we))==null?void 0:$e.hotAttr.type)===Q.x.WCode,isFullScreenMode:tt,isLeftShow:!at,isRightShow:ht,isSquare:ge,isEmbedV2:Ze,theme:$,isHighlight:mt,isShowShell:yt,isCommunityComboPreview:Le,isPreviewCombo:He,isPanelPreviewMode:ye,STMode:je,isViewSticky:an}}}),De=(0,I.Ng)(tt=>Me(tt))(me)},29342:(Qn,qe,s)=>{"use strict";s.d(qe,{N:()=>I});var r=s(93413);const I=()=>{var J;const N=(J=MB)==null?void 0:J.user;if(!!!(N!=null&&N.id)||ENV.IS_ON_PREMISES)return!1;const te=MB.commonGuideHelper.getState().commonGuidesHasShown||[];if(te.includes(r.c.GUIDE_NOVICE_2309_TASK_5)||te.includes(r.c.GUIDE_NOVICE_2309_TASK_5_DEVICE_MODE))return!1;const q=24*60*60*1e3,ne=new Date().getTime(),B=new Date(N.created_at).getTime();return!(ne-7*q>B)}},29372:(Qn,qe,s)=>{"use strict";s.d(qe,{H:()=>tt,d:()=>at});var r=s(95549),I=s(38502),J=s(18381),N=s(12211),T=s(79371),te=s.n(T),q=s(79150),ne=s(13642),B=s(70933),l=s(60651),U=s(16454),C=s(36449),M=s(78915),w=s(20089),y=s(57479),j=s(10549),Q=s(67787);const ze=Q.Ay.div.withConfig({displayName:"styles__StyledDraftLinkToastDiv",componentId:"sc-bordw3-0"})(["position:absolute;width:max-content;z-index:107;left:50%;-webkit-transform:translate(-50%) scale(0);-ms-transform:translate(-50%) scale(0);transform:translate(-50%) scale(0);transition:transform 0.15s cubic-bezier(.3,1.2,.2,1);.container{width:240px;height:32px;box-sizing:border-box;border:1px solid ",";background:",";border-radius:6px;padding:4px;position:relative;display:flex;flex-direction:row;justify-content:space-between;align-items:center;box-sizing:border-box;&::before{top:0;left:10%;border:solid transparent;content:' ';position:absolute;pointer-events:none;transform:rotate(135deg);border-radius:2px;border-width:1px;background-color:",";border-color:transparent transparent "," ",";margin-left:-4px;margin-top:-5px;height:10px;width:10px;}.link-hot-area{position:relative;display:flex;flex-direction:row;justify-content:flex-start;align-items:center;flex:1;padding-right:8px;.link-separator-v{margin-left:4px;}}.link-input{min-width:120px;height:18px;border:none;outline:none;text-indent:8px;color:",";width:100%;&::placeholder{font-size:12px;}}.link-separator-v{height:12px;border-right:1px solid ",";}.link-icon{border-radius:6px;}.right{display:flex;flex-direction:row;justify-content:center;align-items:center;.link-separator-v{margin-right:4px;}}}.modal{width:100%;height:8px;position:relative;background:transparent;}"],ht=>ht.theme.color_border_state,ht=>ht.theme.color_bg_white,ht=>ht.theme.color_bg_white,ht=>ht.theme.color_border_state,ht=>ht.theme.color_border_state,ht=>ht.theme.color_text_L1,ht=>ht.theme.color_bg_border_01);var me=s(72214);class Se extends I.Component{constructor(){var Je;super(...arguments),Je=this,(0,r.A)(this,"$inputRef",null),(0,r.A)(this,"$containerRef",null),(0,r.A)(this,"state",{widget:null,linkMode:"",linkTitle:"",originLinkTarget:"",linkTarget:"",linkStyle:{top:0,left:0},blockKey:"",start:void 0,end:void 0,fromType:void 0,canEditLink:!1,settingLevel:"editing",selection:void 0,isPreviewModal:!1}),(0,r.A)(this,"setContainerRef",$=>{this.$containerRef=$}),(0,r.A)(this,"setInputRef",$=>{this.$inputRef=$}),(0,r.A)(this,"handleLinkToastAdd",$=>{var mt;let{widget:yt,linkTitle:Le,linkTarget:He,style:ye,blockKey:je,start:ot,end:we,fromType:$e,settingLevel:ge,selection:Ze}=$;!yt||!(yt.cid||yt.key)||(this.setState({widget:yt,linkMode:"add",linkTitle:Le,originLinkTarget:He,linkTarget:He,linkStyle:ye,blockKey:je,start:ot,end:we,fromType:$e,settingLevel:ge,selection:Ze},()=>{this.$inputRef&&this.$inputRef.focus()}),(mt=MB)!=null&&mt.action&&MB.action("draft:update:state",{linkToastShow:!0}))}),(0,r.A)(this,"handleLinkToastView",te()($=>{let{widget:mt,linkTitle:yt,linkTarget:Le,style:He,blockKey:ye,start:je,end:ot,fromType:we,canEditLink:$e=!0,isPreviewModal:ge}=$;!mt||!(mt.cid||mt.key)||(this.setState({widget:mt,linkMode:"view",linkTitle:yt,originLinkTarget:Le,linkTarget:Le,linkStyle:He,blockKey:ye,start:je,end:ot,fromType:we,canEditLink:$e,isPreviewModal:ge}),this.setLinkToastShow(ge))},300,{leading:!1,trailing:!0})),(0,r.A)(this,"handleLinkToastEdit",$=>{let{widget:mt,linkTitle:yt,linkTarget:Le,style:He,blockKey:ye,start:je,end:ot,fromType:we,settingLevel:$e}=$;!mt||!(mt.cid||mt.key)||(this.setState({widget:mt,linkMode:"edit",linkTitle:yt,originLinkTarget:Le,linkTarget:Le,linkStyle:He,blockKey:ye,start:je,end:ot,fromType:we,settingLevel:$e}),this.setLinkToastShow())}),(0,r.A)(this,"handleLinkToastHide",()=>{const{linkMode:$}=this.state;["add","edit"].includes($)||this.resetState()}),(0,r.A)(this,"handleLinkToastQuit",()=>{if(!this.props.linkToastShow)return;const{linkMode:$}=this.state;if(["add","edit"].includes($)){this.onLink();return}this.resetState()}),(0,r.A)(this,"setLinkToastShow",function($){$===void 0&&($=!1);const{linkToastShow:mt,dispatch:yt}=Je.props;if(!mt){if($){var Le,He;!((Le=MB)==null||(Le=Le.webpackInterface)==null)&&Le.store&&((He=MB)==null||(He=He.webpackInterface)==null||He.store.dispatch({type:"draft:update:state",payload:{linkToastShow:!0}}));return}yt({type:C.k.EntryKey["entry:draft:linkToastShow:update"],payload:{linkToastShow:!0}})}}),(0,r.A)(this,"resetState",te()(()=>{this.setState({widget:null,linkMode:"",linkTitle:"",originLinkTarget:"",linkTarget:"",linkStyle:{top:0,left:0},blockKey:"",start:void 0,end:void 0,fromType:void 0});const{linkToastShow:$,dispatch:mt}=this.props;$&&mt({type:C.k.EntryKey["entry:draft:batch:update"],payload:{linkToastShow:!1,isCreatingLink:!1}})},10,{leading:!1,trailing:!0})),(0,r.A)(this,"getStyle",($,mt)=>{if(!$||!mt)return{left:0,top:-100,visibility:"hidden"};const{left:yt,top:Le}=mt;return{top:Le,left:yt,visibility:"visible",transform:"scale(1)"}}),(0,r.A)(this,"onLink",()=>{const{linkTitle:$,linkTarget:mt,originLinkTarget:yt,blockKey:Le,start:He,end:ye,fromType:je,widget:ot,settingLevel:we}=this.state;we==="editing"?ne.A.emit("draft:inline-toolbar:link",{action:"link",linkTitle:$,linkTarget:mt,originLinkTarget:yt,blockKey:Le,start:He,end:ye,fromType:je,widget:ot}):ne.A.emit("draft:inline-toolbar:link-widget",{action:"link",linkTitle:$,linkTarget:mt,originLinkTarget:yt,fromType:je,widget:ot}),this.resetState()}),(0,r.A)(this,"handleUrlChange",$=>{this.setState({linkTarget:$.target.value})}),(0,r.A)(this,"handleInputKeyDown",$=>{$.keyCode===y.Ju.Enter&&($.preventDefault(),$.stopPropagation(),this.onLink()),$.key==="Escape"&&($.preventDefault(),$.stopPropagation(),this.resetState())}),(0,r.A)(this,"handleEdit",$=>{var mt;$.preventDefault(),$.stopPropagation();const{dispatch:yt}=this.props,{widget:Le,linkTitle:He,originLinkTarget:ye,blockKey:je,start:ot,end:we,fromType:$e}=this.state;yt({type:C.k.EntryKey["entry:draft:isCreatingLink:update"],payload:{isCreatingLink:!0}});const ge=Le.cid||Le.key,Ze=((0,j.HO)((Le==null?void 0:Le.hotAttr)||Le)==="exist","editing");(Le.type||((mt=Le.hotAttr)==null?void 0:mt.type))===w.x.WMindNode?yt({type:"mind:update:state",payload:{selectedMindNodeKeys:[ge]}}):Ze!=="widget"&&(yt({type:"entry:select:items",payload:{cids:[ge]}}),yt({type:"set:editing:cid",payload:{cid:ge}})),setTimeout(()=>{$e==="settingPanel"?ne.A.emit("draft:design:editorState:selection:basic",{widget:Le,linkTitle:He,originLinkTarget:ye,blockKey:je,start:ot,end:we}):ne.A.emit("draft:design:editorState:selection",{widget:Le,linkTitle:He,originLinkTarget:ye,blockKey:je,start:ot,end:we}),this.setLinkToastShow(),this.setState({linkMode:"edit",settingLevel:Ze,widget:Le},()=>{setTimeout(()=>{this.$inputRef&&this.$inputRef.focus()},16.7)})},16.7)}),(0,r.A)(this,"handleUnlink",$=>{$.preventDefault(),$.stopPropagation();const{linkTitle:mt,linkTarget:yt,originLinkTarget:Le,blockKey:He,start:ye,end:je,fromType:ot,widget:we,settingLevel:$e}=this.state;$e!=="widget"?ne.A.emit("draft:inline-toolbar:link",{action:"unlink",linkTitle:mt,linkTarget:yt,originLinkTarget:Le,blockKey:He,start:ye,end:je,fromType:ot,widget:we}):ne.A.emit("draft:inline-toolbar:link-widget",{action:"unlink",linkTitle:mt,linkTarget:yt,originLinkTarget:Le,blockKey:He,start:ye,end:je,fromType:ot,widget:we}),this.resetState()}),(0,r.A)(this,"handleView",$=>{$.preventDefault(),$.stopPropagation();const{linkMode:mt,linkTarget:yt,isPreviewModal:Le}=this.state;if(mt!=="view")return;const{dispatch:He}=this.props;He({type:C.k.EntryKey["entry:draft:open:hyperlink"],payload:{hyperlink:yt,transition:"newTab",isPreviewModal:Le}})})}componentDidMount(){ne.A.on("draft:link-toast:add",this.handleLinkToastAdd),ne.A.on("draft:link-toast:view",this.handleLinkToastView),ne.A.on("draft:link-toast:edit",this.handleLinkToastEdit),ne.A.on("draft:link-toast:hide",this.handleLinkToastHide),ne.A.on("draft:link-toast:quit",this.handleLinkToastQuit)}componentDidUpdate(Je){const{canvasScale:$,canvasOffset:{x:mt=0,y:yt=0}={}}=Je,{canvasScale:Le,canvasOffset:{x:He=0,y:ye=0}={},linkToastShow:je}=this.props;(Le!==$||He+"$"+ye!=mt+"$"+yt)&&je&&this.resetState()}componentWillUnmount(){this.setState=()=>!1,ne.A.off("draft:link-toast:add",this.handleLinkToastAdd),ne.A.off("draft:link-toast:view",this.handleLinkToastView),ne.A.off("draft:link-toast:edit",this.handleLinkToastEdit),ne.A.off("draft:link-toast:hide",this.handleLinkToastHide),ne.A.off("draft:link-toast:quit",this.handleLinkToastQuit)}render(){const{linkMode:Je,linkStyle:$,linkTarget:mt,canEditLink:yt}=this.state,{linkToastShow:Le}=this.props;if(!Le)return null;const He=this.getStyle(Le,$),{isReadOnly:ye}=this.props;return(0,me.jsxs)(ze,{className:"draft-link-toast",style:He,ref:this.setContainerRef,children:[(0,me.jsxs)("div",{className:"container",children:[(0,me.jsxs)("div",{className:"link-hot-area",onClick:this.handleView,children:[Je==="view"&&(0,me.jsxs)(me.Fragment,{children:[(0,me.jsx)(q.A,{name:"draft/link/add",className:"link-icon"}),(0,me.jsx)("span",{className:"link-separator-v"})]}),(0,me.jsx)("input",{ref:this.setInputRef,type:"text",className:"link-input",placeholder:I18N.TextToolbar.url1,readOnly:Je==="view",style:{cursor:Je==="view"?"pointer":"default"},value:mt,onChange:this.handleUrlChange,onBlur:this.handleUrlChange,onKeyDown:this.handleInputKeyDown})]}),Je==="view"&&!ye&&yt&&(0,me.jsxs)("div",{className:"right",children:[(0,me.jsx)("span",{className:"link-separator-v"}),(0,me.jsx)(q.A,{name:"draft/link/edit",className:"link-icon",onClick:this.handleEdit})]}),Je==="edit"&&(0,me.jsxs)("div",{className:"right",children:[(0,me.jsx)("span",{className:"link-separator-v"}),(0,me.jsx)(q.A,{name:"draft/link/remove",className:"link-icon",onClick:this.handleUnlink})]})]}),(0,me.jsx)("div",{className:"modal",style:{display:$&&($.left||$.top)?"block":"none"}})]})}}const Me=(0,N.Mz)([C.k.Query.getLinkToastShow,B.X_,B.ER,l.jx],(ht,Je,$,mt)=>{const yt=mt===M.qi.OnlyView;return{linkToastShow:ht,canvasScale:Je,canvasOffset:$,isReadOnly:yt}}),De=(0,N.Mz)([C.k.Query.getLinkToastShow,U.X_,U.A3],(ht,Je,$)=>({linkToastShow:ht,canvasScale:Je,canvasOffset:$,isReadOnly:!0})),tt=(0,J.Ng)(ht=>Me(ht))(Se),at=(0,J.Ng)(ht=>De(ht))(Se)},29767:(Qn,qe,s)=>{"use strict";s.d(qe,{V:()=>ne,X:()=>q});var r=s(56193),I=s(23033),J=s(38502),N=s(85584),T=s(47163),te=s(72214);const q=B=>{if((0,N.lB)(B))return ne()},ne=function(B){return B===void 0&&(B=!0),setTimeout(()=>{var l;return(l=MB)==null||(l=l.messageBucket)==null?void 0:l.send("mobileLoadProjectError",{errMsg:"\u753B\u5E03\u65E0\u9875\u9762\uFF0C\u65E0\u6CD5\u9884\u89C8"})},1e3),(0,te.jsx)(r.A,{errorType:404,locale:(0,T.w)(),isShowPrimaryBtn:B,customTitle:I18N.dModule.project_screen_err_title,customDes:I18N.ToolBar.ReEnter,isShowSecondaryBtn:!1,primaryClick:()=>(0,I.os)("zh-CN","\u539F\u578B-\u5206\u4EAB\u94FE\u63A5\u9875\u9762\u4E3A\u7A7A")})}},29794:(Qn,qe,s)=>{"use strict";s.d(qe,{Dd:()=>l,eA:()=>C,hJ:()=>U});var r=s(53102);const I=.83,J=1,N=!1,T=(M,w,y)=>Math.round(w+M/y),te=M=>M<=.05?200:M<=.1?100:M<=.2?50:M<=.5?20:M<=1?10:M<=2?5:M<=5?2:(M<=40,1),q=M=>M<=10?10:M<=20?5:M<=40?2:10,ne=(M,w)=>{const y=te(M),j=y*M,Q=y*q(M),ze=Q*M,me=Math.floor(w/y)*y,Se=Math.floor(w/Q)*Q,Me=(me-w)/y*j,De=(Se-w)/Q*ze;return{gridSize:y,gridPixel:j,gridSize_10:Q,gridPixel_10:ze,startValue:me,startValue_10:Se,offset:Me,offset_10:De}},B=function(M,w,y,j,Q,ze){if(ze===void 0&&(ze="h"),!Q)return;const{x:me,y:Se,w:Me,h:De}=Q,tt=ze==="h"?(me-j)*y:0,at=ze==="h"?0:(Se-j)*y,ht=ze==="h"?Me*y:Me*J,Je=ze==="h"?De*J:De*y;M.fillStyle=w,M.fillRect(tt,at,ht,Je)},l=(M,w,y,j)=>{const{scale:Q,width:ze,height:me,canvasConfigs:Se}=j,{bgColor:Me,fontColor:De,ratio:tt,shadowColor:at,longfgColor:ht,shortfgColor:Je}=Se,$=N;M.scale(tt,tt),M.clearRect(0,0,ze,me),M.fillStyle=Me,M.fillRect(0,0,ze,me),B(M,at,Q,w,y);const{gridSize:mt,gridPixel:yt,gridSize_10:Le,gridPixel_10:He,startValue:ye,startValue_10:je,offset:ot,offset_10:we}=ne(Q,w),$e=w+Math.ceil(ze/Q);M.beginPath(),M.fillStyle=De,M.strokeStyle=ht;for(let ge=je,Ze=0;ge<$e;ge+=Le,Ze++){const W=we+Ze*He+.5;M.moveTo(W,0),M.save(),M.translate(W,me*.4),M.scale(I/tt,I/tt),M.fillText(ge,-M.measureText(ge).width/2,4*tt),M.restore(),M.moveTo(W,me-2),M.lineTo(W,me)}if(M.stroke(),M.closePath(),$){M.beginPath(),M.strokeStyle=Je;for(let ge=ye,Ze=0;ge<$e;ge+=mt,Ze++){const W=ot+Ze*yt+.5;M.moveTo(W,0),ge%Le!==0&&M.lineTo(W,me*1/4)}M.stroke(),M.closePath()}M.setTransform(1,0,0,1,0,0)},U=(M,w,y,j)=>{const{scale:Q,width:ze,height:me,canvasConfigs:Se}=j,{bgColor:Me,fontColor:De,ratio:tt,shadowColor:at,longfgColor:ht,shortfgColor:Je}=Se,$=N;M.scale(tt,tt),M.clearRect(0,0,ze,me),M.fillStyle=Me,M.fillRect(0,0,ze,me),B(M,at,Q,w,y,"v");const{gridSize:mt,gridPixel:yt,gridSize_10:Le,gridPixel_10:He,startValue:ye,startValue_10:je,offset:ot,offset_10:we}=ne(Q,w),$e=w+Math.ceil(me/Q);M.beginPath(),M.fillStyle=De,M.strokeStyle=ht;for(let ge=je,Ze=0;ge<$e;ge+=Le,Ze++){const W=we+Ze*He+.5;M.moveTo(0,W),M.save(),M.translate(ze*.4,W),M.rotate(-Math.PI/2),M.scale(I/tt,I/tt),M.fillText(ge,-M.measureText(ge).width/2,4*tt),M.restore(),M.moveTo(ze-2,W),M.lineTo(ze,W)}if(M.stroke(),M.closePath(),$){M.beginPath(),M.strokeStyle=Je;for(let ge=ye,Ze=0;ge<$e;ge+=mt,Ze++){const W=ot+Ze*yt+.5;M.moveTo(0,W),ge%Le!==0&&M.lineTo(ze*1/4,W)}M.stroke(),M.closePath()}M.setTransform(1,0,0,1,0,0)},C=M=>{const{ratio:w,viewportRect:y,canvasLeft:j,canvasTop:Q,x:ze,y:me,width:Se,height:Me,selectedParentCanvas:De,rulerLineCanvas:tt}=M,at=y.width-r.MV,ht=y.height-r.MV,Je=(y.left+r.MV-j)/w,$=(y.top+r.MV-Q)/w;return{rulerWidth:at,rulerHeight:ht,startX:Je,startY:$,shadow:{x:ze,y:me,width:Se,height:Me},startWithCanvas:tt||De}}},30024:(Qn,qe,s)=>{"use strict";s.d(qe,{A:()=>l});var r=s(38502),I=s(38182),J=s(68455),N=s(39e3),T=s(67787);const te=T.Ay.span.withConfig({displayName:"styles__StyledTriggerContainerDiv",componentId:"sc-1dwln2t-0"})([".toolbar-btn{margin:0 4px;width:32px;cursor:pointer;border-radius:4px;&.free-width{width:auto;}&.disabled{background-color:transparent;opacity:.3;cursor:not-allowed;}&:hover{background-color:#f7f7f7;}&:active,&.active{background-color:#e5e5e5;}&.active:hover{background-color:#e5e5e5;}}.toolbar-btn .svg-icon{width:32px;height:32px;}"]),q=(0,T.DU)([".more-drop-menu.list-content{min-width:96px;}"]);var ne=s(72214);const l=U=>{const{onChange:C,options:M}=U,w=(0,r.useRef)(null),[y,j]=(0,r.useState)(!1),Q=(0,r.useCallback)(tt=>()=>{C&&C(tt),me()},[C]),ze=()=>{j(!0)},me=()=>{j(!1)},Se=()=>{y?me():ze()},Me=tt=>{var at;let{target:ht}=tt;!y||!(w!=null&&w.current)||w!=null&&(at=w.current)!=null&&at.contains(ht)||ht.closest(".list-content")||me()},De=()=>M.map(tt=>({isShow:!0,label:I18N.Comment[tt.label],onClick:Q(tt.value)}));return(0,ne.jsxs)(ne.Fragment,{children:[(0,ne.jsx)(te,{ref:w,onClick:Se,children:(0,ne.jsx)(I.A,{className:"toolbar-btn comment-more-btn",name:I18N.Comment.more,icon:"more",active:y})}),y&&(w==null?void 0:w.current)&&(0,ne.jsxs)(ne.Fragment,{children:[(0,ne.jsx)(q,{}),(0,ne.jsx)(J.A,{className:"more-drop-menu",menuItems:De(),targetNode:w==null?void 0:w.current,direction:"down-end",distance:2}),(0,ne.jsx)(N.A,{target:document,onMouseDown:(0,N.t)(Me,{capture:!0})})]})]})}},30245:(Qn,qe,s)=>{"use strict";s.d(qe,{v:()=>q});var r=s(33831),I=s(72680),J=s(28732),N=s(83291),T=s(30508),te=s(83815);const q=(ne,B)=>{var l,U,C,M;const w=ne==="light",y=B==="solo";return[{id:r.fv,title:"\u58A8\u5200\u539F\u578B",icon:T.A,hoverBgColor:w?"#E6EFFF":"#223252",shortTitle:"\u539F\u578B"},...(l=ENV)!=null&&l.NO_FEAT_BOMX?[]:[{id:r.Pq,title:"\u58A8\u5200\u767D\u677F",icon:J.A,hoverBgColor:w?"#FBE9F6":"#523149",shortTitle:"\u767D\u677F"}],...(U=ENV)!=null&&U.NO_FEAT_DESIGN?[]:[{id:r.N5,title:"\u58A8\u5200\u8BBE\u8BA1",icon:te.A,hoverBgColor:w?"#EEEDFF":"#383659",shortTitle:"\u8BBE\u8BA1"}],...(C=ENV)!=null&&C.NO_FEAT_AIPPT?[]:[{id:r.X3,title:"\u58A8\u5200AIPPT",icon:I.A,hoverBgColor:w?"#FFEDF0":"#59363B",shortTitle:"AIPPT"}],...(M=ENV)!=null&&M.IS_FEAT_AI||!ENV.IS_ON_PREMISES&&y?[{id:r.Zl,title:"\u58A8\u5200AI",icon:N.A,hoverBgColor:w?"#EDEDFF":"#37375C",shortTitle:"AI"}]:[]]}},30508:(Qn,qe,s)=>{"use strict";s.d(qe,{A:()=>M});var r=s(38502),I=Object.defineProperty,J=Object.defineProperties,N=Object.getOwnPropertyDescriptors,T=Object.getOwnPropertySymbols,te=Object.prototype.hasOwnProperty,q=Object.prototype.propertyIsEnumerable,ne=(w,y,j)=>y in w?I(w,y,{enumerable:!0,configurable:!0,writable:!0,value:j}):w[y]=j,B=(w,y)=>{for(var j in y||(y={}))te.call(y,j)&&ne(w,j,y[j]);if(T)for(var j of T(y))q.call(y,j)&&ne(w,j,y[j]);return w},l=(w,y)=>J(w,N(y)),U=(w,y)=>{var j={};for(var Q in w)te.call(w,Q)&&y.indexOf(Q)<0&&(j[Q]=w[Q]);if(w!=null&&T)for(var Q of T(w))y.indexOf(Q)<0&&q.call(w,Q)&&(j[Q]=w[Q]);return j},M=(0,r.forwardRef)((w,y)=>{var j=w,{size:Q,spin:ze,style:me}=j,Se=U(j,["size","spin","style"]);const Me=B(B({width:Q||"var(--x-icon-size, 1em)",height:Q||"var(--x-icon-size, 1em)",animation:ze?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),me);return r.createElement("svg",l(B({ref:y,style:Me},Se),{width:"32",height:"33",viewBox:"0 0 32 33",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),r.createElement("rect",{width:"32",height:"32.0025",rx:"7",fill:"#459BFF"}),r.createElement("rect",{x:"6.42213",y:"9.60242",width:"9.6",height:"16",rx:"1.38962",fill:"white"}),r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.956 16.0557C17.956 14.8885 18.9022 13.9423 20.0694 13.9423H24.6235C25.7907 13.9423 26.7369 14.8885 26.7369 16.0557V23.9431C26.7369 25.1103 25.7907 26.0565 24.6235 26.0565H20.0694C18.9022 26.0565 17.956 25.1103 17.956 23.9431V16.0557ZM20.0694 15.3898C19.7016 15.3898 19.4035 15.688 19.4035 16.0557V23.9431C19.4035 24.3109 19.7016 24.609 20.0694 24.609H24.6235C24.9912 24.609 25.2893 24.3109 25.2893 23.9431V16.0557C25.2893 15.688 24.9912 15.3898 24.6235 15.3898H20.0694Z",fill:"white",fillOpacity:"0.8"}),r.createElement("rect",{x:"4.79961",y:"6.40015",width:"22.4",height:"6.4",rx:"1.38962",fill:"#BADAFF",fillOpacity:"0.8"}))})},30719:(Qn,qe,s)=>{"use strict";s.d(qe,{O:()=>Wn});var r=s(95549),I=s(38502),J=s(12211),N=s(18381),T=s(70933),te=s(67052),q=s(10472),ne=s(78257),B=s(88463),l=s(94344),U=s(67588),C=s(44817),M=s(16335),w=s(67787),y=s(80985),j=s(89208);const Q=w.Ay.div.withConfig({displayName:"styles__StyledHistoryPanel",componentId:"sc-4wgm4b-0"})(["height:100%;overflow-y:hidden;flex:1 1 0%;display:flex;flex-direction:column;"]),ze=(0,w.Ay)(y.A).withConfig({displayName:"styles__StyledHistoryContent",componentId:"sc-4wgm4b-1"})(["flex:1 1 0;height:100%;transition:box-shadow 0.2s ease-in-out;overflow-x:hidden;overflow-y:overlay;"]),me=w.Ay.div.withConfig({displayName:"styles__StyledHistoryHeader",componentId:"sc-4wgm4b-2"})(["display:flex;align-items:center;justify-content:space-between;height:40px;min-height:40px;padding:0 12px;border-bottom:1px solid ",";.back{.template-title{font-size:14px;font-weight:500;flex:1;text-align:center;}}"],Nn=>Nn.theme.color_btn_secondary_active),Se=(0,w.Ay)(j.A).withConfig({displayName:"styles__StyledHistoryNewSlideNav",componentId:"sc-4wgm4b-3"})(["height:40px;min-height:36px;background:transparent;align-items:center;.nav-underline{display:none;}.nav-item{justify-content:center;font-size:13px;height:24px;padding:4px 6px;margin-right:16px;border-radius:5px;&:hover{background:",";}&.active{background:",";}}.nav-item:not(:first-child){margin-left:unset;}.nav-label{flex-shrink:0;padding:0;}&.template-modal{margin:0 0 0 32px !important;padding:0;.nav-item{font-size:12px;height:32px;border:1px solid ",";padding:8px 12px;&.active{color:",";font-weight:500;background:",";border-color:",";}}}"],Nn=>Nn.theme.color_btn_secondary_hover,Nn=>Nn.theme.color_btn_secondary_active,Nn=>Nn.theme.color_bg_border_01,Nn=>Nn.theme.color_text_link_normal,Nn=>Nn.theme.color_bg_tab,Nn=>Nn.theme.color_bg_tab),Me=w.Ay.div.withConfig({displayName:"styles__StyledSearchResultMessage",componentId:"sc-4wgm4b-4"})(["display:flex;align-items:center;height:28px;padding-left:13px;background:",";"],Nn=>Nn.theme.color_bg_canvas),De=w.Ay.div.withConfig({displayName:"styles__StyledIconContent",componentId:"sc-4wgm4b-5"})(["flex:1;overflow-y:overlay;overflow-x:hidden;margin:12px 0;.icon-list{display:grid;grid-row-gap:7px;grid-column-gap:8px;padding:0 12px;grid-template-columns:repeat(5,1fr);& > li{border:none;border-radius:6px;transition:all 0.2s ease-out 0s;&:hover{background:",";}}}"],Nn=>Nn.theme.color_btn_secondary_hover);var tt=s(93971),at=s(49903),ht=s(3862),Je=s(72214);const $=(0,J.Mz)([U.O4,T.PL],(Nn,xn)=>({theme:Nn,rootProject:xn})),mt=I.memo(function(xn){const{theme:Ye,rootProject:wn}=(0,N.d4)(xo=>$(xo)),{data:{iconItems:Hn},keyword:zn,multiColorIconObj:ko}=xn,On=(0,N.wA)(),Mo=(xo,jo,Qo,cn)=>{const In=Jt=>{let{itemCid:Ln,groupCid:Xn}=Jt;const Dn={projectUpperType:"icon_group",projectUpperCid:Xn,itemCid:Ln};(0,M.Cp)(Dn)},tn=ko[jo.groupCid];On({type:"entry:create:svg_icon_path:by:mousedown",payload:{event:xo,icon:jo,iconName:Qo,iconDisplayName:cn,isMultiColorIcon:tn,callback:()=>{In({itemCid:jo.id,groupCid:jo.groupCid}),jn({addType:(xo==null?void 0:xo.type)==="mousedown"?tt.k8.Drag:tt.k8.DoubleClick,iconName:Qo,iconType:jo.type,isMultiColorIcon:tn,groupCid:jo.groupCid})}}})},jn=xo=>{let{addType:jo,iconName:Qo,iconType:cn,isMultiColorIcon:In,groupCid:tn}=xo;const Jt=at.jS[cn]||cn,Ln=In?ht.WY:ht.C;(0,tt.Mi)({popupsName:ne.lS.History,addType:jo,source:tt.Jj[Ln],category:Ln,templateGroupName:Jt,name:Qo,rootProject:wn,templateGroupCid:tn})};return(0,Je.jsx)(Je.Fragment,{children:(0,Je.jsx)(De,{children:Hn.length!==0?(0,Je.jsx)(C.q,{iconList:Hn,multiColorIconObj:ko,onMouseDown:Mo,onDoubleClick:Mo}):(0,Je.jsx)(l.A,{theme:Ye,hasNoTips2:!0,keyword:zn,onHandleClickSquarePanel:()=>{}})})})});var yt=s(78401),Le=s(92272),He=s(4410),ye=s(88225),je=s(78903),ot=s(7279),we=s(19062);const $e=w.Ay.div.withConfig({displayName:"styles__StyledLoading",componentId:"sc-vx4onj-0"})(["width:100%;margin-top:120px;display:flex;justify-content:center;.loading{width:50px;height:50px;}"]),ge=(0,w.Ay)(y.A).withConfig({displayName:"styles__StyledImagePanelContent",componentId:"sc-vx4onj-1"})(["flex:1;margin-top:0;overflow-y:overlay;overflow-x:hidden;margin-top:12px;"]),Ze=w.Ay.div.withConfig({displayName:"styles__StyledRecentPanelContent",componentId:"sc-vx4onj-2"})(["flex:1;width:100%;position:relative;overflow:hidden;.recent-scroll-container{width:100%;height:100%;overflow-x:hidden;overflow-y:overlay;scrollbar-width:none;&.show-footer{height:calc(100% - 68px);}}&.template{margin-top:0;}&.recent-panel-content{height:100%;.empty-template-search-container{padding-top:120px;.center{.pure-svg-icon{width:80px;height:80px;}}}.combos-container,.screens-container{padding:0 4px 0 12px;display:grid;grid-row-gap:8px;grid-column-gap:8px;grid-template-columns:repeat(auto-fill,109px);.template-item{margin:0 8px 10px 0;}.combo-item{margin:0 8px 10px 0;}li > .img-wrapper{width:109px;height:109px;}}.screens-container{padding-top:8px;}.file-container{padding:8px;display:grid;grid-row-gap:2px;grid-column-gap:2px;grid-template-columns:repeat(auto-fill,116px);}.iconGroup-container{display:grid;grid-row-gap:7px;grid-column-gap:8px;padding:0 12px;grid-template-columns:repeat(5,1fr);& > li{border:none;border-radius:6px;margin-right:7px;margin-bottom:8px;&:hover{background:",";}}}.collapse-panel{.arrow-icon{width:16px;}.title{color:",";font-size:14px;font-weight:500;}}}"],Nn=>Nn.theme.color_btn_secondary_hover,Nn=>Nn.theme.color_text_L2),W=(0,J.Mz)([U.O4,T.wA,T.Pz,T.PL,U.PI,U.k3,T.HW,te.oE,U.MZ,te.p],(Nn,xn,Ye,wn,Hn,zn,ko,On,Mo,jn)=>({theme:Nn,canvasRect:Ye,rootProject:wn,showDragMode:Hn,isAdsorbentReferenceLine:zn,isOrgProject:!!xn,currentUser:ko,isRequestFindAssets:On,layoutV9:Mo,stickerData:jn})),an=I.memo(function(xn){const{theme:Ye,canvasRect:wn,rootProject:Hn,showDragMode:zn,isAdsorbentReferenceLine:ko,isOrgProject:On,currentUser:Mo,isRequestFindAssets:jn,layoutV9:xo,stickerData:jo}=(0,N.d4)(go=>W(go)),{keyword:Qo,data:{assetList:cn,pictureList:In}}=xn,[tn,Jt]=(0,I.useState)(!1),Ln=(0,N.wA)(),Xn=(go,Uo,Ho,ua)=>{(0,tt.BZ)({popupsName:ne.lS.History,addType:Uo,category:ht.b4,name:Ho,rootProject:Hn,currentUser:Mo,esSearchKey:go,resId:ua})},Dn={onAssetDownload:go=>{(0,yt.z3)(go.name,go.image)},onAssetMove:go=>{MB.global.experienceLoginModalHelper("isSave")||Ln({type:"entry:batch:transfer:user-asset",payload:{userAsset:go}})},onAssetRemove:go=>{MB.global.experienceLoginModalHelper("isSave")||Ln({type:"entry:batch:remove:user-asset",payload:{userAsset:go}})},onAssetAdd:On?go=>{MB.global.experienceLoginModalHelper("isSave")||Ln({type:"entry:batch:transfer:user:asset:to:org",payload:{userAsset:go}})}:null,onAssetNameConfirm:(go,Uo)=>{const Ho={...go};Ho.name=Uo,Ln({type:"entry:refresh:user-asset:update",payload:{userAssetUpdateList:[Ho]}})},onAssetImport:go=>{var Uo;Ln({type:"entry:create:widget:by:asset",payload:{asset:go}}),Xn((Uo=go.cid)!=null?Uo:go.asset_cid,tt.k8.DoubleClick,go.name,go.id)},onMouseDown:async(go,Uo)=>{const Ho=(0,Le.BL)(Uo),ua=(0,He.g)(ne.lS.History);(0,He.dD)({e:go,items:[Ho],width:Ho.w,height:Ho.h,doNotCreateRect:ua,callback:()=>{var la;Xn((la=Uo.cid)!=null?la:Uo.asset_cid,tt.k8.Drag,Uo.name,Uo.id)},canvasRect:wn,rootProject:Hn,showDragMode:zn,isAdsorbentReferenceLine:ko})}};return(0,I.useEffect)(()=>{const go=In==null?void 0:In.find(Ho=>Ho.includes("findPicture_")),Uo=In==null?void 0:In.find(Ho=>Ho.includes("findSticker_"));go&&!jn&&(Jt(!0),(0,ye._)().then(Ho=>Jt(!1)).catch(Ho=>{console.error("download meta.json failed",Ho),Jt(!1)})),Uo&&(!jo||jo.length===0)&&(Jt(!0),(0,ot.e)().then(Ho=>Jt(!1)).catch(Ho=>{console.error("download meta.json failed",Ho),Jt(!1)}))},[In]),tn?(0,Je.jsx)(we.S,{}):(0,Je.jsx)(ge,{children:go=>cn.length+In.length>0?(0,Je.jsx)(je.R,{containerRect:go,currentUserId:void 0,assetList:cn,pictureList:In.filter(Uo=>Uo!==null),shouldAuth:!1,assetActions:Dn,canListItemGroup:!1}):(0,Je.jsx)(l.A,{theme:Ye,keyword:Qo,hasNoTips2:!0})})});var _t=s(44421),nn=s(39303);class Oe extends I.PureComponent{render(){const{isLoading:xn,isSearchLoading:Ye,foundNum:wn,historyKeyword:Hn,isShowResultMessage:zn}=this.props;return(0,Je.jsx)(Je.Fragment,{children:xn?(0,Je.jsx)($e,{className:"history-loading",children:(0,Je.jsx)(nn.A,{className:"loading"})}):Ye?(0,Je.jsx)(we.S,{className:"history-loading margin-top-120",children:(0,Je.jsx)("span",{children:I18N.Resources.searching.load})}):Hn!=null&&Hn.length&&zn?(0,Je.jsx)(Me,{className:"result",children:(0,Je.jsx)("span",{dangerouslySetInnerHTML:{__html:I18N.Resources.searchPanel.resultDesc.replace(/%num%/,(0,yt.rB)().process(String(wn))).replace(/%keyword%/,(0,yt.rB)().process(Hn))}})}):null})}}var sn=s(53732),It=s.n(sn),Pt=s(29294),dt=s(64966),Vn=s(33573),o=s(99402),Gn=s(31757),xt=s(83199),Ot=s(78161),wt=s(88194),Kt=s(41240);const fe=(0,w.AH)(["opacity:0;pointer-events:none;"]),bt=(0,w.AH)(["opacity:1;pointer-events:auto;"]),un=w.Ay.li.withConfig({displayName:"styles__StyledComboThumbnailItem",componentId:"sc-h0w76r-0"})(["display:flex;flex-direction:column;justify-content:center;align-items:center;cursor:pointer;margin-left:-1px;.img-wrapper{position:relative;width:75px;height:70px;border:1px solid ",";background-color:",";display:flex;align-items:center;justify-content:center;border-radius:6px;",";img{max-width:100%;max-height:100%;pointer-events:none;}}.dynamic-flag{display:flex;align-items:center;justify-content:center;position:absolute;top:2px;left:2px;width:16px;height:16px;background:",";border-top-left-radius:2px;.icon{width:8px;}}.operation-box{position:absolute;left:0;top:8px;width:100%;padding:0 8px;height:24px;display:flex;flex-direction:row;justify-content:space-between;align-items:center;.left{",";",";.check{visibility:visible;position:relative;top:0;left:0;}}.right{display:flex;align-items:center;",";.scale-box{width:24px;height:24px;border-radius:6px;background:",";backdrop-filter:blur(4px);display:flex;align-items:center;justify-content:center;&:hover,&:active{background:",";}svg{path{fill:",";}}.svgContainer{width:100%;height:100%;display:flex;align-items:center;justify-content:center;svg{border-radius:none;background:none;&:hover{background:none;}}}}}}.combo-name{width:72px;height:31px;line-height:31px;text-align:center;color:",";white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}&:hover{.img-wrapper{border-color:",";border-width:2px;}}&:hover{.operation-box{.left,.right{",";.check{visibility:visible;}}}}&.checked{&:hover{.img-wrapper{border-width:1px;border-color:",";outline:1px solid ",";}}.img-wrapper{border-color:",";outline:1px solid ",";.operation-box{.left{",";.check{visibility:visible;}}}}}"],Nn=>Nn.theme.color_btn_secondary_active,Nn=>Nn.theme.color_bg_card,Kt.GR,Nn=>Nn.theme.color_bg_border_02,fe,Kt.GR,fe,Nn=>Nn.theme.color_slider_hover,Nn=>Nn.theme.color_bg_mask,Nn=>Nn.theme.color_text_btn,Nn=>Nn.theme.color_text_L2,Nn=>Nn.theme.color_proto,bt,Nn=>Nn.theme.color_btn_primary_normal,Nn=>Nn.theme.color_btn_primary_normal,Nn=>Nn.theme.color_btn_primary_normal,Nn=>Nn.theme.color_btn_primary_normal,bt);class gt extends I.PureComponent{constructor(xn){super(xn),(0,r.A)(this,"setElementRef",Ye=>this.$elem=Ye),(0,r.A)(this,"updateIsVisible",()=>{this.setState({isVisible:this.isInBoundingClientRect()})}),(0,r.A)(this,"handleImport",Ye=>{Ye.stopPropagation();const{item:wn,comboActions:{onImport:Hn},from:zn}=this.props;zn!=="widget-modal"&&Hn&&Hn(Ye,wn)}),(0,r.A)(this,"handleMouseDown",Ye=>{Ye.preventDefault();const{item:wn,comboActions:{onMouseDown:Hn},from:zn}=this.props;zn!=="widget-modal"&&Hn&&Hn(Ye,wn)}),(0,r.A)(this,"handleClick",Ye=>{const{item:wn,from:Hn,canChecked:zn,checkedSet:ko,onAddItem:On,dispatch:Mo}=this.props;Hn==="widget-modal"&&(zn&&ko!=null&&ko.size?this.handleCheckedResource(Ye):On(wn.key))}),(0,r.A)(this,"handleCheckedResource",Ye=>{const{onCheckedResource:wn,item:Hn}=this.props;Ye.stopPropagation(),wn==null||wn(Hn.key)}),(0,r.A)(this,"handleClickOpenPreviewModal",Ye=>{const{onOpenPreviewModal:wn,item:Hn}=this.props;Ye.stopPropagation(),Ye.preventDefault(),wn==null||wn(Hn.key)}),(0,r.A)(this,"handleGetFlatshotData",()=>{const{item:Ye}=this.props,{key:wn,flpakKey:Hn}=Ye,zn=Ye.sup==="B@ref-muban"?Ye.hotAttr.defaultCanvasKey:wn,ko=Ye.sup==="B@ref-muban"?wt.rY.PNG_CANVAS:wt.rY.PNG_PAGE;return{flpakKey:Hn,snapshotKey:zn,snapshotMode:ko}}),(0,r.A)(this,"handleGetImageSrc",()=>{const{flpakKey:Ye,snapshotKey:wn,snapshotMode:Hn}=this.handleGetFlatshotData();return(0,Vn.NI)({flpakKey:Ye,ssKey:wn,ssTaskMode:Hn,ssZoomMode:wt.BU.LETTERBOX_256})}),(0,r.A)(this,"handleShowTipsByTarget",(Ye,wn)=>wn.offsetWidth<wn.scrollWidth),this.state={isVisible:!1}}componentDidMount(){this.props.containerRect&&this.updateIsVisible()}componentDidUpdate(){this.updateIsVisible()}isInBoundingClientRect(){const{containerRect:xn}=this.props;if(!xn||!this.$elem)return!1;const Ye=this.$elem.getBoundingClientRect();return Ye.bottom>xn.top&&Ye.top<xn.bottom}render(){var xn,Ye;const{item:wn,canChecked:Hn,checkedSet:zn,isCanPreviewInModal:ko}=this.props,{isVisible:On}=this.state,{key:Mo}=wn,{flpakKey:jn,snapshotKey:xo,snapshotMode:jo}=this.handleGetFlatshotData();return(0,Je.jsxs)(un,{className:It()("combo-item",{checked:zn==null?void 0:zn.has(Mo)}),onClick:this.handleClick,children:[(0,Je.jsxs)("div",{ref:this.setElementRef,className:"img-wrapper",onDoubleClick:this.handleImport,onMouseDown:this.handleMouseDown,children:[(0,Je.jsx)(Vn.Ay,{projectMetaCid:jn,snapshotKey:xo,isVisible:On,mode:jo}),(0,Je.jsxs)("div",{className:"operation-box",children:[Hn&&(0,Je.jsx)("div",{className:"left",children:(0,Je.jsx)(o.A,{className:"check "+((zn==null?void 0:zn.has(Mo))&&"is-show"),checked:zn==null?void 0:zn.has(Mo),onChange:this.handleCheckedResource,onClick:Qo=>Qo.stopPropagation()})}),ko&&(0,Je.jsx)("div",{className:"right",children:(0,Je.jsx)(Ot.Y,{className:"scale-box",getImgSrc:this.handleGetImageSrc,onClick:this.handleClickOpenPreviewModal,modalName:"mb-widget-modals",children:(0,Je.jsx)(Gn.A,{size:12})})})]})]}),(0,Je.jsx)(xt.A,{content:(xn=wn.hotAttr)==null?void 0:xn.name,direction:"down",isShowTipsByTarget:this.handleShowTipsByTarget,children:(0,Je.jsx)("span",{className:"combo-name",children:(Ye=wn.hotAttr)==null?void 0:Ye.name})})]})}}var Wt=s(53940),Un=s(60589),Jn=s(34771),Yt=s(40410),rt=s(38382),An=s(77698),Nt=s(84864),jt=s(60440);const vn=Nn=>{let{from:xn,data:Ye}=Nn;if(xn==="template-modal")return(0,Nt.B)({templateList:Ye.screenItems,marketTemplateListMap:Ye.marketTemplateListMap,isFromSameResource:!1});if(xn==="widget-modal"){const{checkedSet:wn,curRes:Hn,handleChangeChecked:zn,handleSelectAll:ko,handleClearAll:On,handleBySeparately:Mo,handleMemberClick:jn,handleAddItem:xo,handleAddItems:jo,handleAddItemsAll:Qo,handleOpenPreviewModal:cn}=(0,jt.m)({templateList:Ye.comboItems,resourcesMap:Ye.marketTemplateListMap,isFromSameResource:!1});return{checkedResourceSet:wn,currentResources:Hn,handleChangeCheckedResource:zn,handleBySeparately:Mo,handleMemberClick:jn,handleAddItem:xo,handleAddItems:jo,handleAddItemsAll:Qo,handleSelectAll:ko,handleClearAll:On,handleOpenPreviewModal:cn}}return{}};var Dt=s(47424),$t=s(42459);const kn=(0,J.Mz)([U.O4,T.X_,T.Pz,T.PL,U.PI,U.k3,T.HW],(Nn,xn,Ye,wn,Hn,zn,ko)=>({theme:Nn,scale:xn,canvasRect:Ye,rootProject:wn,showDragMode:Hn,isAdsorbentReferenceLine:zn,currentUser:ko})),Kn=I.memo(function(xn){var Ye;const{theme:wn,scale:Hn,canvasRect:zn,rootProject:ko,showDragMode:On,isAdsorbentReferenceLine:Mo,currentUser:jn}=(0,N.d4)(Ga=>kn(Ga)),xo=(0,N.wA)(),{activeIndex:jo,data:Qo,keyword:cn,onPaidResources:In,isShowTag:tn,from:Jt,onUpdateFileRecent:Ln}=xn,[Xn,Dn]=(0,I.useState)(0),{checkedResourceSet:go,currentResources:Uo,handleChangeCheckedResource:Ho,handleBySeparately:ua,handleMemberClick:la,handleAddItems:To,handleAddItem:Ia,handleAddItemsAll:ya,handleSelectAll:eo,handleClearAll:Oo,handleOpenPreviewModal:so}=vn({from:Jt,data:Qo}),to=(0,N.d4)(Un.Kr),Vo=(0,I.useRef)(null),ta=(0,I.useMemo)(()=>[{key:0,label:"\u9875\u9762"},{key:1,label:"\u6587\u4EF6"}],[]),Qa=(0,I.useMemo)(()=>{if(jo!==0||!go||(go==null?void 0:go.size)===0)return!1;const{comboItems:Ga}=Qo;return Array.from(go).map(kt=>Ga.find(Qt=>Qt.key===kt)).every(kt=>kt.type==="user-combo")},[Qo,jo,go]),qr=async(Ga,ai)=>{Ga.persist&&Ga.persist();const kt=(0,He.g)(ne.lS.History);(0,He.WP)({e:Ga,combo:ai,store:userSdkStore,doNotCreateRect:kt,scale:Hn,canvasRect:zn,showDragMode:On,isAdsorbentReferenceLine:Mo,callback:()=>{ur(ai),Mr(tt.k8.Drag,ai)}})},kr=(Ga,ai)=>{(0,He.QI)({e:Ga,combo:ai,store:userSdkStore,scale:Hn}),ur(ai)},ur=Ga=>{const ai={projectUpperType:"user_combo",projectUpperCid:Ga==null?void 0:Ga.fcgCid,itemCid:Ga.key};(0,M.Cp)(ai)},Mr=(Ga,ai)=>{const{type:kt,hotAttr:{name:Qt}}=ai,oo=kt.includes("combo")?ht.t_:ht.Gd;(0,tt.BZ)({popupsName:ne.lS.History,addType:Ga,category:oo,name:Qt,rootProject:ko,currentUser:jn})},gr=(Ga,ai,kt,Qt)=>{const{policy:oo,category:ao,title:fa,platform:wr}=kt;(0,tt.Mi)({popupsName:ne.lS.History,addType:ai,source:tt.Jj[ao],category:ao,platform:wr,policy:oo,templateGroupName:fa,name:Qt,rootProject:ko,esSearchKey:Ga})},dr={onMouseDown:qr,onImport:kr},wi=Ga=>{xo({type:"modal:update:state",payload:{templateFileDetialModal:{isOpen:!0,template:Ga}}})},gi=(0,I.useCallback)(Ga=>{Ga.category===ht.t_?xo({type:"widget-modal:update:state",payload:{currentResource:Ga}}):xo({type:"modal:update:state",payload:{templateModal:{...to,currentDetailResource:Ga}}})},[to,xo]),Li=(0,I.useCallback)(async Ga=>{if(!Ga||MB.global.experienceLoginModalHelper("isSave"))return;const ai=!Ga.is_liked,kt=Ga.target_upper_cid||Ga.cid;ai?await(0,Dt.q3)(kt):await(0,Dt.V)(kt);const Qt=ai?Ga.liked_count+1:Ga.liked_count-1,oo={is_liked:ai,liked_count:Qt},ao=(0,$t.$G)(Qo.fileItems,fa=>fa.cid===Ga.cid,{...Ga,...oo});Ln&&Ln(ao)},[Qo.fileItems,Ln]),Ni=(0,I.useCallback)(Ga=>{const ai={used_count:Ga.used_count+1},kt=(0,$t.$G)(Qo.fileItems,Qt=>Qt.cid===Ga.cid,{...Ga,...ai});Ln&&Ln(kt)},[Qo.fileItems,Ln]),{comboItems:Ai,screenItems:Bi,marketTemplateListMap:Ss,fileItems:qi}=Qo;return(0,Je.jsxs)(Ze,{className:It()("recent-panel-content",{template:jo===2},{widget:jo===0}),children:[(0,Je.jsx)(y.o,{className:It()("recent-scroll-container",{"show-footer":(go==null?void 0:go.size)>0}),ref:Vo,children:Ga=>(0,Je.jsxs)(Je.Fragment,{children:[jo===0&&(0,Je.jsx)(Je.Fragment,{children:Ai.length===0?(0,Je.jsx)(rt.H,{type:"common",desc:I18N.LibraryContainer.no_widget_group}):(0,Je.jsx)("ul",{className:It()("combos-container"),style:{width:Wt.qv},children:Ai.map(ai=>{const{type:kt}=ai;return kt==="user-combo"?(0,Je.jsx)(gt,{from:Jt,item:ai,comboActions:dr,containerRect:Ga,canChecked:Jt==="widget-modal",checkedSet:go,onCheckedResource:Ho,onOpenPreviewModal:so,onAddItem:Ia,isCanPreviewInModal:Jt==="widget-modal",dispatch:xo},ai.key):(0,Je.jsx)(Pt.A,{isFloatPreviewMkt:Jt!=="widget-modal",from:Jt,marketTemplate:ai,currentResources:Ss==null?void 0:Ss.get(ai.marketTemplateCid),containerRect:Ga,onTrack:gr,onPaidTemplates:()=>In(ai.marketTemplateCid),canChecked:Jt==="widget-modal",checkedSet:go,onCheckedResource:Ho,onOpenPreviewModal:so,onOpenFolder:gi,isShowFolderIcon:Jt==="widget-modal"},ai.key)})})}),jo===2&&(0,Je.jsxs)(Je.Fragment,{children:[!(Jt==="template-modal"&&Bi.length===0&&(qi==null?void 0:qi.length)===0)&&(0,Je.jsx)(Se,{activeIndex:Xn,onTabChange:Dn,className:It()("slide-nav",Jt),children:ta.map(ai=>{let{key:kt,label:Qt}=ai;return(0,Je.jsx)(Jn.nl,{label:Qt},kt)})}),(0,Je.jsxs)("div",{className:"content",children:[Xn===0&&(0,Je.jsx)(Je.Fragment,{children:Bi.length===0?(0,Je.jsx)(rt.H,{type:"common",desc:I18N.LeftSidePanel.modals.not_found}):(0,Je.jsx)("ul",{className:"screens-container",style:{width:Wt.qv},children:Bi.map(ai=>(0,Je.jsx)(Pt.A,{marketTemplate:ai,from:Jt,currentResources:Ss.get(ai.marketTemplateCid),containerRect:Ga,onPaidTemplates:()=>In(ai.marketTemplateCid),canChecked:Jt==="template-modal",checkedSet:go,onCheckedResource:Ho,onOpenPreviewModal:so,onOpenFolder:gi,isShowFolderIcon:Jt==="template-modal",isFloatPreviewMkt:Jt!=="template-modal"},ai.key))})}),Xn===1&&(0,Je.jsx)(Je.Fragment,{children:qi.length===0?(0,Je.jsx)(rt.H,{type:"common",desc:I18N.LeftSidePanel.modals.not_found}):(0,Je.jsx)("ul",{className:"file-container",style:{width:Wt.qv},children:qi.map(ai=>(0,Je.jsx)(Yt.A,{isStared:ai.is_star,marketTemplate:ai,isShowStar:!1,isShowTag:tn,onClickCard:wi,onFavorite:Li,onUsedCallback:Ni},ai.cid))})})]})]})]})}),(0,Je.jsx)(An.yP,{type:"vertical",containerRef:Vo,isAutoHideBar:!0}),((Ye=go==null?void 0:go.size)!=null?Ye:0)>0&&Jt!==void 0&&["widget-modal","template-modal"].includes(Jt)&&(0,Je.jsx)(dt.W,{type:Jt==="widget-modal"?"widget":"page",isOnlyShowCreates:Qa,resource:Uo,checkedSet:go!=null?go:new Set,onBuySeparately:ua,onMemberClick:la,onSelectAll:eo,onClearAll:Oo,onAddItems:To,onAddItemsAll:ya})]})});var dn=s(40610);const ft=Nn=>{let{groups:xn,p2mMMap:Ye={},projectUppers:wn,marketTemplateListMap:Hn,type:zn}=Nn;const ko=[];return xn!=null&&xn.length&&xn.forEach(On=>{const[Mo,jn]=On,xo=wn[Mo];if(xo){const{project_metas:Qo,market_template:cn}=xo;if(Qo!=null&&Qo.length&&cn){var jo;Hn.set(Mo,cn);const In=(jo=Qo[0])==null?void 0:jo.cid,tn=Ye[In];if(tn){const Jt=tn[jn];if(Jt){const[Ln,Xn,Dn]=Jt;ko.push({key:Ln,sup:Xn,hotAttr:Dn,type:zn,marketTemplateCid:Mo,projectMetaCid:In,marketTemplateSource:cn})}}}}}),ko},Lt=Nn=>{let{protoLists:xn,projectUppers:Ye}=Nn;const wn=[];if((xn==null?void 0:xn.length)>0)for(const Hn of xn){const[zn,ko]=Hn,On=Ye[zn];On!=null&&On.market_template&&wn.push(On.market_template)}return wn},bn=Nn=>{const{combo_groups:xn,screen_lists:Ye,user_combo_groups:wn,p2mMMap:Hn,icon_groups:zn,project_uppers:ko,user_fcg:On,proto_lists:Mo}=Nn,jn=new Map,xo=ft({groups:xn,p2mMMap:Hn,projectUppers:ko,marketTemplateListMap:jn,type:ht.t_}),jo=ft({groups:Ye,p2mMMap:Hn,projectUppers:ko,marketTemplateListMap:jn,type:ht.Gd});if(wn!=null&&wn.length&&On){const{project_meta_cid:In}=On;wn.forEach(tn=>{const[Jt,Ln]=tn;if(Jt===On.cid){const Dn=Hn[In];if(Dn){const go=Dn[Ln];if(go){var Xn;const[Uo,Ho,ua]=go;xo.push({key:Uo,sup:Ho,hotAttr:ua,type:"user-combo",fcgCid:Jt,flpakKey:(Xn=userSdk)==null||(Xn=Xn.fssDat)==null?void 0:Xn.flpakKey})}}}})}const Qo=(0,dn.D2)(zn),cn=Lt({protoLists:Mo,projectUppers:ko});return{comboItems:xo,screenItems:jo,iconItems:Qo,fileItems:cn,marketTemplateListMap:jn}};var Yn=s(55914),on=s(82515),yn=function(Nn){return Nn[Nn.Builtin=0]="Builtin",Nn[Nn.Icon=1]="Icon",Nn[Nn.Asset=2]="Asset",Nn[Nn.Page=3]="Page",Nn[Nn.FIle=4]="FIle",Nn}(yn||{});const lo=(0,J.Mz)([te.OW,te.ld,T.HW,T.wA,T.F2,T._x,q.r,U.MZ,te.p],(Nn,xn,Ye,wn,Hn,zn,ko,On,Mo)=>{const{isEditingBasket:jn,isEditingMuban:xo,isEditingCombo:jo}=ko;return{currentPopupPanel:Nn,findPictureMetaData:xn,currentUser:Ye,currentOrg:wn,userFcg:Hn,orgFcg:zn,isShowPage:!(jn||xo||jo),layoutV9:On,findStickerData:Mo}});class qn extends I.PureComponent{constructor(xn){var Ye;super(xn),(0,r.A)(this,"getHsitoryTabs",()=>[{key:yn.Builtin,panel:ne.lS.Builtin,label:I18N.ArtBoard.widget},{key:yn.Icon,panel:ne.lS.Icon,label:I18N.ArtBoard.icon},{key:yn.Asset,panel:ne.lS.Asset,label:I18N.ArtBoard.image},{key:yn.Page,panel:ne.lS.Page,label:"\u6A21\u677F"}]),(0,r.A)(this,"initComboSdkStore",async()=>{const{currentUser:zn,currentOrg:ko,userFcg:On,orgFcg:Mo}=this.props,jn=zn==null?void 0:zn.id;jn&&(!window.userSdkStore&&On&&await(0,on.Z)({fcg:On,userId:jn}),ko!=null&&ko.cid&&!window.orgSdkStore&&Mo&&await(0,on.Z)({fcg:Mo,userId:jn,isOrg:!0}))}),(0,r.A)(this,"handleSetMtSdkStore",zn=>{const{dispatch:ko}=this.props,{comboItems:On,screenItems:Mo}=zn,jn=On.filter(cn=>cn.type===ht.t_).concat(Mo),xo=[],jo=new Map,Qo=new Map;jn.forEach(cn=>{const{marketTemplateCid:In,projectMetaCid:tn,marketTemplateSource:Jt}=cn;xo.push(In),jo.set(In,tn),Qo.set(In,Jt)}),ko({type:"resources:set:resources_map",payload:{mtResourcesMap:Qo}}),ko({type:"entry:resources:set:mtSdkStore:map",payload:{mtResourceCidList:xo,mtProjectMetaCidMap:jo}})}),(0,r.A)(this,"renderPanel",()=>{const{recentData:zn,searchRecentData:ko,keyword:On,multiColorIconObj:Mo}=this.state,{from:jn}=this.props,xo=ko||zn;switch(this.getRealKey()){case yn.Builtin:return(0,Je.jsx)(Kn,{activeIndex:0,data:xo,keyword:On,from:jn,onPaidResources:this.handlePaidResources});case yn.Icon:return(0,Je.jsx)(mt,{data:xo,keyword:On,multiColorIconObj:Mo});case yn.Asset:return(0,Je.jsx)(an,{data:xo,keyword:On});case yn.Page:return(0,Je.jsx)(Kn,{activeIndex:2,data:xo,keyword:On,from:jn,onPaidResources:this.handlePaidResources,isShowTag:jn==="template-modal",onUpdateFileRecent:this.handleUpdateFileRecent})}}),(0,r.A)(this,"handleTabChange",zn=>this.setState({navIndex:zn})),(0,r.A)(this,"handleNavBack",()=>this.props.dispatch({type:"historyPanel:set:show",payload:{show:!1}})),(0,r.A)(this,"handleSearch",zn=>{const{findPictureMetaData:ko,findStickerData:On,onUpdateKeyword:Mo}=this.props,{recentData:jn}=this.state;if(this.setState({searchRecentData:null,keyword:zn}),Mo==null||Mo(zn),zn){this.setState({isSearchLoading:!0});const xo=new RegExp((0,Yn.$)(zn),"i"),{comboItems:jo,iconItems:Qo,screenItems:cn,assetList:In,pictureList:tn,fileItems:Jt}=jn,Ln=[];ko!=null&&ko.length&&ko.forEach(Dn=>{Dn.imgs.forEach(go=>{let[Uo,,,Ho]=go;for(const ua of Ho)ua.includes(zn)&&tn.includes("findPicture_"+Uo)&&Ln.push("findPicture_"+Uo)})}),On!=null&&On.length&&On.forEach(Dn=>{var go;Dn==null||(go=Dn.list)==null||go.forEach(Uo=>{Uo!=null&&Uo.name.includes(zn)&&tn.includes("findSticker_"+(Uo==null?void 0:Uo.url))&&Ln.push("findSticker_"+(Uo==null?void 0:Uo.url))})});const Xn={...jn,comboItems:jo.filter(Dn=>{var go;return xo.test((go=Dn.hotAttr)==null?void 0:go.name)}),iconItems:Qo.filter(Dn=>xo.test(Dn.keywords)),screenItems:cn.filter(Dn=>{var go;return xo.test((go=Dn.hotAttr)==null?void 0:go.name)}),assetList:In.filter(Dn=>xo.test(Dn.name)),pictureList:Ln,fileItems:Jt.filter(Dn=>xo.test(Dn.title))};setTimeout(()=>{this.setState({isSearchLoading:!1,searchRecentData:Xn})},1e3)}}),(0,r.A)(this,"getRealKey",()=>{var zn;const{navIndex:ko}=this.state;return(zn=this.getHsitoryTabs()[ko])==null?void 0:zn.key}),(0,r.A)(this,"handleGetFoundNum",()=>{const{searchRecentData:zn}=this.state;if(zn){const{comboItems:ko,screenItems:On,iconItems:Mo,assetList:jn,pictureList:xo,fileItems:jo}=zn;switch(this.getRealKey()){case yn.Builtin:return(ko==null?void 0:ko.length)||0;case yn.Icon:return(Mo==null?void 0:Mo.length)||0;case yn.Asset:return(jn==null?void 0:jn.length)+(xo==null?void 0:xo.length)||0;case yn.Page:return(On==null?void 0:On.length)+(jo==null?void 0:jo.length)||0}}return 0}),(0,r.A)(this,"handlePaidResources",zn=>{const{searchRecentData:ko,recentData:On}=this.state,Mo=ko||On;if(!Mo)return;const{marketTemplateListMap:jn}=Mo;if(!jn)return;const xo=new Map;let jo=null;if(jn)for(const[cn,In]of jn)cn===zn&&(xo.set(cn,{...In,is_purchased:!0,is_star:!0}),jo=In),xo.set(cn,In);const Qo={...Mo,marketTemplateListMap:xo};ko?this.setState({searchRecentData:Qo}):this.setState({recentData:Qo}),jo&&this.props.dispatch({type:"entry:resources:update:find:data",payload:{cid:jo.cid,category:jo.category}})}),(0,r.A)(this,"handleUpdateFileRecent",zn=>{const{recentData:ko,searchRecentData:On}=this.state;if(On){this.setState({searchRecentData:{...On,fileItems:zn}});return}this.setState({recentData:{...ko,fileItems:zn}})});const wn=((Ye=this.getHsitoryTabs().find(zn=>zn.panel===xn.currentPopupPanel))==null?void 0:Ye.key)||yn.Builtin,Hn=xn.from==="widget-modal"?0:xn.from==="template-modal"?3:wn;this.state={keyword:xn.keyword,navIndex:Hn,isLoading:!1,isSearchLoading:!1,recentData:{comboItems:[],screenItems:[],iconItems:[],assetList:[],pictureList:[],fileItems:[]},searchRecentData:null,multiColorIconObj:{}}}async componentDidMount(){this.props.keyword?this.setState({isSearchLoading:!0}):this.setState({isLoading:!0}),await this.initComboSdkStore();const[xn,Ye]=await Promise.all([(0,M.Uy)(),(0,M.PJ)()]);if(xn){const wn=await bn(xn);this.handleSetMtSdkStore(wn),this.setState({recentData:{...wn,assetList:xn.user_assets,pictureList:xn.pictures},multiColorIconObj:Ye},()=>{this.state.keyword&&this.handleSearch(this.state.keyword)})}this.setState({isLoading:!1})}render(){const{navIndex:xn,isLoading:Ye,isSearchLoading:wn,keyword:Hn}=this.state,{isShowPage:zn,layoutV9:ko,from:On}=this.props,Mo=this.handleGetFoundNum(),jn=["widget-modal","template-modal"].includes(On);return(0,Je.jsxs)(Q,{children:[(0,Je.jsx)(me,{className:"history-header",children:jn?(0,Je.jsx)(B.A,{className:"search-bar is-searching",value:Hn,placeholder:I18N.ScreenPanel.keyword_search,onSearch:this.handleSearch}):(0,Je.jsx)(_t.H,{title:I18N.Resources.searchHeader.history,iconName:"design/arrow/right",layoutV9:ko,onBack:this.handleNavBack,onSearch:this.handleSearch})}),!jn&&(0,Je.jsx)(Se,{className:"history-slide-nav",activeIndex:xn,onTabChange:this.handleTabChange,children:this.getHsitoryTabs().map(xo=>{let{key:jo,label:Qo}=xo;return jo===yn.Page&&!zn?(0,Je.jsx)(Je.Fragment,{}):(0,Je.jsx)(j.n,{index:jo,label:Qo},jo)})}),(0,Je.jsx)(Oe,{isLoading:Ye,isSearchLoading:wn,foundNum:Mo,historyKeyword:Hn,isShowResultMessage:On!=="template-modal"}),!Ye&&!wn&&(0,Je.jsx)(ze,{children:()=>this.renderPanel()})]})}}const Wn=(0,N.Ng)(Nn=>lo(Nn))(qn)},31093:(Qn,qe,s)=>{"use strict";s.d(qe,{E:()=>J,lu:()=>I,n$:()=>N,pp:()=>r});const r=T=>T.editor.state.pencil.bdrStyle,I=T=>T.editor.state.pencil.bdrColor,J=T=>T.editor.state.pencil.bdrWidth,N=T=>T.editor.state.pencil.lastCreateKey},31174:(Qn,qe,s)=>{"use strict";s.d(qe,{G:()=>q});var r=s(38502),I=s(18381),J=s(67588),N=s(67787);const T=N.Ay.ul.withConfig({displayName:"styles__StyledOpenModalCard",componentId:"sc-1ga0mut-0"})(["display:flex;align-items:center;padding:12px;background:",";z-index:2;&.sticky{position:absolute;top:40px;width:100%;li{padding:4px 0;svg{display:none !important;}}}li{display:flex;flex-direction:column;align-items:center;max-width:108px;min-width:68px;flex:1;padding-bottom:8px;border-radius:6px;cursor:pointer;span{font-weight:500;}&.page{background:#F6F3FF;margin-right:10px;&:hover{background:#F0EBFF;}span.name{color:#8742FF;}&.dark{background:#372c5c;&:hover{background:#463975;}span.name{color:#b68cff;}}}&.file{background:#F0F7FF;&:hover{background:#E5F2FF;}span.name{color:#008CEE;}&.dark{background:#2a3a5c;&:hover{background:#354b75;}span.name{color:#34abff;}}}&.largeFactory,&.user-widget{background:#f6f3ff;margin-right:6px;&:hover{background:#f0ebff;}span.name{color:#8742ff;}&.dark{background:#372C5C;&:hover{background:#463975;}span.name{color:#B68CFF;}}}&.componentLibrary,&.org-widget{background:#f0f7ff;margin-right:6px;&:hover{background:#e5f1ff;}span.name{color:#008cee;}&.dark{background:#2a3a4c;&:hover{background:#354b75;}span.name{color:#34abff;}}}&.file{background:#F0F7FF;&.dark{background:#2a3a5c;&:hover{background:#354b75;}span.name{color:#34abff;}}}&.icon{background:#fef6ee;&:hover{background:#fef0e2;}span.name{color:#ff8802;}&.dark{background:#473222;&:hover{background:#664731;}span.name{color:#f58200;}}}}"],ne=>ne.theme.color_bg_white);var te=s(72214);const q=(0,r.forwardRef)((ne,B)=>{let{cardList:l}=ne;const U=(0,I.d4)(J.O4);return(0,te.jsx)(T,{className:"open-modal-cards-wrap",ref:B,children:l.map(C=>(0,te.jsxs)("li",{className:"card-item "+C.value+" "+U,onClick:()=>C==null?void 0:C.onClick(C.value),children:[C.icon,(0,te.jsx)("span",{className:"name",children:C.label})]},C.value))})})},31181:(Qn,qe,s)=>{"use strict";s.d(qe,{J:()=>J,r:()=>I});var r=s(19249);const I=()=>(0,r.DE)("/api/web/v3/guide/guide_data"),J=N=>(0,r.iv)("/api/web/v3/guide/workspace_guides",{guide:{workspace_guides:N}})},31228:(Qn,qe,s)=>{"use strict";s.d(qe,{A:()=>Je});var r=s(95549),I=s(38502),J=s(53732),N=s.n(J),T=s(83199),te=s(79150),q=s(39e3),ne=s(68455),B=s(67787),l=s(51090);const U=B.Ay.div.withConfig({displayName:"styles__StyledScreenActionsMenu",componentId:"sc-1fn9xyn-0"})(["",";&.is-open{.action-menu-opener{background:",";}}"],l.n9,$=>$.theme.color_btn_secondary_active);var C=s(72214);class M extends I.PureComponent{constructor(mt){var yt;super(mt),yt=this,(0,r.A)(this,"setElementRef",Le=>this.$element=Le),(0,r.A)(this,"handleClickAction",Le=>{Le.stopPropagation(),this.handleToggleActionMenu()}),(0,r.A)(this,"handleToggleActionMenu",function(Le){Le===void 0&&(Le=void 0);const{isOpenScreenActionsMenu:He}=yt.state,{onCloseGuide:ye}=yt.props,je=Le===void 0?!He:Le;yt.setState({isOpenScreenActionsMenu:je}),je&&ye&&ye()}),(0,r.A)(this,"actionToggleExpanded",Le=>{const{handleToggleExpanded:He,isPreview:ye,dispatch:je}=this.props;Le.stopPropagation(),He(),this.handleToggleActionMenu(!1),!ye&&setTimeout(()=>{je({type:"entry:update:screen_list_rect"})},50)}),(0,r.A)(this,"actionOpenTrash",Le=>{Le.stopPropagation(),this.props.handleOpenTrash(),this.handleToggleActionMenu(!1)}),(0,r.A)(this,"handleMultipleSelect",()=>{const{isMultiplePage:Le,dispatch:He}=this.props;He({type:"screen:update:state",payload:{isMultiplePage:!Le}}),this.handleToggleActionMenu(!1)}),(0,r.A)(this,"getScreenActionsMenuItems",()=>{const{isPreview:Le,hasFoldedScreen:He,isEditingCombo:ye,isMultiplePage:je,isOnlyView:ot}=this.props;return ye?[{isShow:!0,label:He?I18N.LeftSidePanel.expand_combo:I18N.LeftSidePanel.collapse_combo,onClick:this.actionToggleExpanded},{isShow:!0,label:"divider"},{isShow:!0,label:I18N.ToolBar.widget_trash_bin,onClick:this.actionOpenTrash}]:[{isShow:!0,label:He?I18N.LeftSidePanel.expand_page:I18N.LeftSidePanel.collapse_page,onClick:this.actionToggleExpanded},{isShow:!ot&&!Le,label:(0,C.jsx)("span",{className:"exit-multiple-btn-in-list-menu",children:je?I18N.LeftSidePanel.exit_multi_select:I18N.LeftSidePanel.multi_select_page}),onClick:this.handleMultipleSelect},{isShow:!Le,label:"divider"},{isShow:!Le,label:I18N.LeftSidePanel.page_recycle_bin,onClick:this.actionOpenTrash}]}),(0,r.A)(this,"handleDocDown",Le=>{let{target:He}=Le;const{isOpenScreenActionsMenu:ye}=this.state;ye&&(He.closest(".screenHeaderAction")||He.closest(".list-content")||this.handleToggleActionMenu(!1))}),this.state={isOpenScreenActionsMenu:!1}}render(){const{isOpenScreenActionsMenu:mt}=this.state,{className:yt}=this.props,Le=this.getScreenActionsMenuItems();return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(T.A,{content:I18N.LeftSidePanel.menu,direction:"down",children:(0,C.jsx)(U,{className:N()("screenHeaderAction",{"is-open":mt},yt),ref:this.setElementRef,onClick:this.handleClickAction,children:(0,C.jsx)(te.A,{className:"action-menu-opener",name:"left_panel/screen_action_menu"})})}),mt&&(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(ne.A,{targetNode:this.$element,direction:"right-start",distance:0,menuItems:Le}),(0,C.jsx)(q.A,{target:document,onMouseDown:(0,q.t)(this.handleDocDown,{capture:!0})})]})]})}}(0,r.A)(M,"defaultProps",{isPreview:!1,handleOpenTrash:()=>null});var w=s(19295),y=s(24437),j=s(74923),Q=s(61068);const ze=B.Ay.div.withConfig({displayName:"styles__StyledMultiplePageTop",componentId:"sc-1x5cwqh-0"})(["width:100%;height:100%;display:flex;align-items:center;.page-count{font-size:12px;font-weight:400;line-height:16px;color:",";margin-left:8px;}"],$=>$.theme.color_text_L1);var me=s(93093),Se=s(18381);const Me=($,mt)=>$.length!==mt.length?!1:$.every(yt=>mt.includes(yt)),De=$=>{const{screenSelection:mt,handleSelectAll:yt,displayTreeData:Le}=$,{screenDataMap:He,currentPage:ye,keyword:je}=(0,Se.d4)(j.CY);Le||(0,me.Cp)(new Error("DEBUG setry issue 57258"),{level:"debug",fingerprint:["debug-sentry-issue-57258"],extra:{displayTreeData:JSON.stringify(Le),screenSelection:mt,screenDataMap:Object.keys(He),currentPage:ye==null?void 0:ye.key,keyWord:je}});const ot=Le.children.map(an=>an.cid),we=(0,I.useMemo)(()=>(0,y.BH)(ot),[ot]),$e=(0,I.useMemo)(()=>(0,y.FT)(mt),[mt]),ge=(0,I.useMemo)(()=>mt.length===0,[mt]),Ze=(0,I.useMemo)(()=>Me(we,mt),[we,mt]),W=!Ze&&!ge?"mixed":Ze;return(0,C.jsxs)(ze,{className:"multiple-page-top",children:[(0,C.jsx)(Q.A,{attr:"isMultiplePage",isChecked:W,onChange:yt}),(0,C.jsx)("span",{className:"page-count",children:I18N.SettingPanel.choose_pages2.replace(/%page/,$e.length)})]})},tt=(0,I.memo)(De);var at=s(93413);const ht=B.Ay.div.withConfig({displayName:"styles__StyledScreenHeader",componentId:"sc-e653cx-0"})(["height:40px;display:flex;align-items:center;border-top:1px solid transparent;border-bottom:1px solid ",";flex-shrink:0;&:not(.is-search-mode){padding:0 11px 0 24px;&.isCommunityPreview{padding:0 6px 0 14px;}}.title{color:",";font-weight:500;}.screen-title-right{display:flex;margin-left:auto;align-items:center;height:100%;color:#415058;transition:flex 0.2s ease-in-out;.box{&:not(:first-child){margin-left:4px;}}.svg-icon{width:24px;height:24px;}.arrow-icon{margin-left:4px;.svg-icon{transform:rotate(-90deg);}&.expanded .svg-icon{transform:rotate(0);}}}.header-icon{",";}"],$=>$.theme.color_bg_border_01,$=>$.theme.color_text_L1,l.n9);class Je extends I.PureComponent{constructor(mt){super(mt),(0,r.A)(this,"handleOpenSearch",()=>{this.setState({isSearching:!0})}),(0,r.A)(this,"handleExitSearch",yt=>{yt.stopPropagation(),this.setState({isSearching:!1});const{keyword:Le,onSearch:He}=this.props;Le&&He("")}),(0,r.A)(this,"handleNewScreen",yt=>{yt.preventDefault();const{isEditingCombo:Le,dispatch:He}=this.props;if(Le){He({type:"entry:auto:create:combo:on:screenList"});return}He({type:"entry:create:screen:auto:to:root-project"})}),(0,r.A)(this,"handleNewScreenFolder",yt=>{yt.preventDefault();const{isEditingCombo:Le,dispatch:He}=this.props;if(Le){He({type:"entry:auto:create:comboGroup:on:screenList"});return}He({type:"entry:create:screen_folder:auto:to:root-project"})}),(0,r.A)(this,"handleToggleExpanded",()=>{const{hasFoldedScreen:yt,onToggleExpanded:Le}=this.props;Le(yt)}),(0,r.A)(this,"handleOpenTrash",()=>{const{dispatch:yt,isEditingCombo:Le,isEditingUserCombo:He}=this.props;yt({type:"modal:update:state",payload:{screenTrashModal:{isOpen:!0,isEditingCombo:Le,isEditingUserCombo:He}}})}),(0,r.A)(this,"handleCloseGuide",()=>{const{onlyView:yt,isPreview:Le}=this.props;yt||Le||MB.commonGuideHelper.checkGuideHasShown(at.c.GUIDE_TOOLBAR_TRASH)&&MB.commonGuideHelper.closeGuide(at.c.GUIDE_TOOLBAR_TRASH)}),(0,r.A)(this,"handleSelectAll",yt=>{const{displayTreeData:Le,dispatch:He}=this.props,ye=Le.children.map(je=>je.cid);typeof yt=="boolean"&&He({type:"screen:update:state",payload:{screenSelection:yt?(0,y.BH)(ye):[]}})}),this.state={isSearching:!1}}render(){const{isEditingCombo:mt,isMultiplePage:yt,keyword:Le,hasFoldedScreen:He,onlyView:ye,nonFolderPGCount:je,isPreview:ot,isCommunityPreview:we,onSearch:$e,screenSelection:ge,displayTreeData:Ze,dispatch:W}=this.props,{isSearching:an}=this.state,_t=mt?I18N.LeftSidePanel.widget:ye||ot?I18N.LeftSidePanel.page+"\uFF08"+je+"\uFF09":I18N.LeftSidePanel.page;return(0,C.jsx)(ht,{className:N()("header",{"is-search-mode":an},{isCommunityPreview:we}),children:an?(0,C.jsx)(w.A,{keyword:Le,placeholder:I18N.ScreenPanel.keyword_search,onChangeKeyword:$e,onExitSearch:this.handleExitSearch}):(0,C.jsxs)(C.Fragment,{children:[yt?(0,C.jsx)(tt,{screenSelection:ge,displayTreeData:Ze,handleSelectAll:this.handleSelectAll}):(0,C.jsx)("span",{className:"title",children:_t}),(0,C.jsxs)("div",{className:N()("screen-title-right",{"is-search-mode":an}),children:[!yt&&!(ye||ot)&&(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(T.A,{content:mt?I18N.LeftSidePanel.widget:I18N.LeftSidePanel.build_page,direction:"down",children:(0,C.jsx)("div",{className:"box screen-title",onClick:this.handleNewScreen,children:(0,C.jsx)(te.A,{className:"s-page",name:"common/add_plus"})})}),(0,C.jsx)(T.A,{content:mt?I18N.LeftSidePanel.widget_folder:I18N.LeftSidePanel.build_page_folder,direction:"down",children:(0,C.jsx)("div",{className:"box screen-folder",onClick:this.handleNewScreenFolder,children:(0,C.jsx)(te.A,{className:"s-folder",name:"left_panel/screen/folder"})})})]}),(0,C.jsx)(T.A,{content:mt?I18N.LeftSidePanel.search_widget:I18N.LeftSidePanel.search_page,direction:"down",children:(0,C.jsx)("div",{className:"box header-icon",onClick:this.handleOpenSearch,children:(0,C.jsx)(te.A,{name:"common/search"})})}),(0,C.jsx)(M,{className:at.c.GUIDE_TOOLBAR_TRASH,hasFoldedScreen:He,handleToggleExpanded:this.handleToggleExpanded,handleOpenTrash:this.handleOpenTrash,onCloseGuide:this.handleCloseGuide,isPreview:ye||ot,isEditingCombo:mt,isMultiplePage:yt,isOnlyView:ye,dispatch:W})]})]})})}}},31348:(Qn,qe,s)=>{"use strict";s.d(qe,{A:()=>N});var r=s(18833),I=s(19249);const N={noticeCommentAtUsers:async T=>{let{projectCid:te,noticeType:q,userCids:ne,content:B,screenCid:l,commentCid:U,basketCid:C=""}=T;try{await(0,I.Ds)("/api/aboard/web_v1/comment_notice",{project_cid:te,notice_type:q,content:B,user_cids:ne,screen_cid:l,comment_cid:U,basket_cid:C})}catch(M){await(0,r.FY)(M)}}}},32060:(Qn,qe,s)=>{"use strict";s.d(qe,{CK:()=>ne,WM:()=>B,Wq:()=>U,iX:()=>l});var r=s(79287),I=s.n(r),J=s(93413),N=s(29187),T=s(34860);const te="2024-02-27",q=()=>{var C;return dayjs((C=MB.user)==null?void 0:C.created_at).isBefore(dayjs(te))},ne=()=>{var C;const M=(C=MB)==null?void 0:C.user;if(!!!(M!=null&&M.id)||ENV.IS_MO)return!1;const y=(0,T.OB)(),j=24*60*60*1e3,Q=new Date().getTime(),ze=new Date(M.created_at).getTime();return Q-7*j>ze||MB.commonGuideHelper.checkGuideHasShown(J.c.GUIDE_NOVICE_2309_TASK_5)||MB.commonGuideHelper.checkGuideHasShown(J.c.GUIDE_NOVICE_2309_TASK_5_DEVICE_MODE)||MB.commonGuideHelper.checkGuideHasShown(J.c.GUIDE_2309_CLICK_SHARE)||y?!1:!MB.commonGuideHelper.checkGuideHasShown(J.c.GUIDE_NOVICE_2309_START)},B=()=>{var C;const M=(C=MB)==null?void 0:C.user;if(!!!(M!=null&&M.id)||ENV.IS_MO)return!1;const y=(0,T.OB)(),j=24*60*60*1e3,Q=new Date().getTime(),ze=new Date(M.created_at).getTime();return!(Q-7*j>ze||MB.commonGuideHelper.checkGuideHasShown(J.c.GUIDE_NOVICE_2309_TASK_4)||MB.commonGuideHelper.checkGuideHasShown(J.c.GUIDE_2407_PREVIEW_CLOSE)||MB.commonGuideHelper.checkGuideHasShown(J.c.GUIDE_2407_PREVIEW)||y&&!MB.commonGuideHelper.checkGuideHasShown(J.c.GUIDE_NOVICE_2309)&&!(0,N.p7)())},l=()=>{const C=(0,N.Po)();if(C!=null&&C.isAllGuidesCompleted){if(MB.commonGuideHelper.checkGuideHasShown(J.c.GUIDE_NOVICE_2408_CREATE_PAGE)||MB.commonGuideHelper.checkGuideHasShown(J.c.GUIDE_NOVICE_2309_TASK_1))return;MB.commonGuideHelper.tryToShowGuide(J.c.GUIDE_NOVICE_2408_CREATE_PAGE),MB.action("entry:move:screen:right")}},U=C=>C?I()(C.created_at).isBefore(I()("2025-06-03")):!1},32267:(Qn,qe,s)=>{"use strict";s.d(qe,{T:()=>r});const r=I=>{var J,N;let{activePageKey:T,activeCanvasKey:te,previewOptions:q,windowSize:ne={width:window.innerWidth,height:window.innerHeight}}=I;const B=(J=sdkStore.getHotItem(T))==null?void 0:J.hotAttr,l=(N=sdkStore.getHotItem(te))==null?void 0:N.hotAttr;if(!B||!l)return{};const{isMobile:U}=q,C=U;let M;if(C){const w=ne,y=w.width,j=w.height,Q=y/l.w,ze=l.w;let me=j,Se=0;l.h*Q<j&&(me=l.h*Q,Se=Math.floor(Math.max((j-me)/2,0))),l.w===B.w&&w.width<w.height&&(me=Math.min(B.h*Q,j),Se=Math.floor(Math.max((j-me)/2,0))),M={width:ze,height:me/Q,transform:"scale("+Q+")",marginTop:Se}}return M}},33394:(Qn,qe,s)=>{"use strict";s.d(qe,{b:()=>J,u:()=>N});var r=s(67787),I=s(89208);const J=r.Ay.div.withConfig({displayName:"styles__StyledSTCommentSwitchHeader",componentId:"sc-24q1pa-0"})(["width:100%;height:40px;box-sizing:border-box;border-bottom:1px solid ",";padding:0 10px 0 16px;display:flex;flex-direction:row;justify-content:space-between;align-items:center;background:",";h3{flex:1;font-size:12px;font-weight:500;line-height:16px;color:",";}.tab-container{display:inline-flex;align-items:center;}.comment-filter-dropdown,.comment-options-dropdown{width:auto;}.options-trigger-container{width:24px;height:24px;margin-left:4px;}.options-content-container{padding:2px 0;width:240px;background:#fff;box-shadow:0 3px 6px -4px rgba(0,0,0,0.12),0px 6px 16px rgba(0,0,0,0.08),0px 9px 28px 8px rgba(0,0,0,0.05);border-radius:4px;.options-item-container{padding:0 15px;display:flex;align-items:center;justify-content:space-between;margin:2px 0;.info-content{flex:1;.main-info{font-size:12px;line-height:12px;color:#333;}.desc-info{margin-top:3px;font-size:12px;transform:scale(0.75);transform-origin:left center;line-height:16px;color:#999;white-space:nowrap;margin-right:-50px;}}}.end-comment{height:45px;}.show-comment-in-canvas{height:45px;}}.filter-trigger-container,.options-trigger-container{color:#999;cursor:pointer;border-radius:4px;transition:300ms;color:",";&.active{color:",";background:",";}&:not(.active):hover{background:",";}.svg-icon{width:24px;height:24px;path[fill]{fill:currentColor;}path[stroke]{stroke:currentColor;}}}span.expandAll{cursor:pointer;color:",";margin-right:6px;&:hover,&:active{color:",";}}"],T=>T.theme.color_bg_border_01,T=>T.theme.color_bg_white,T=>T.theme.color_text_L1,T=>T.theme.color_text_L1,T=>T.theme.color_text_L1,T=>T.theme.color_btn_secondary_active,T=>T.theme.color_btn_secondary_hover,T=>T.theme.color_text_L2,T=>T.theme.color_text_L1),N=(0,r.Ay)(I.A).withConfig({displayName:"styles__StyledNewSlideNav",componentId:"sc-24q1pa-1"})(["margin-left:-8px;.nav-label{padding:0;}.nav-item{padding:0 8px;&.active{font-weight:600;&::after{display:none;}}}height:40px;min-height:40px;"])},33674:(Qn,qe,s)=>{"use strict";s.d(qe,{A:()=>M});var r=s(38502),I=Object.defineProperty,J=Object.defineProperties,N=Object.getOwnPropertyDescriptors,T=Object.getOwnPropertySymbols,te=Object.prototype.hasOwnProperty,q=Object.prototype.propertyIsEnumerable,ne=(w,y,j)=>y in w?I(w,y,{enumerable:!0,configurable:!0,writable:!0,value:j}):w[y]=j,B=(w,y)=>{for(var j in y||(y={}))te.call(y,j)&&ne(w,j,y[j]);if(T)for(var j of T(y))q.call(y,j)&&ne(w,j,y[j]);return w},l=(w,y)=>J(w,N(y)),U=(w,y)=>{var j={};for(var Q in w)te.call(w,Q)&&y.indexOf(Q)<0&&(j[Q]=w[Q]);if(w!=null&&T)for(var Q of T(w))y.indexOf(Q)<0&&q.call(w,Q)&&(j[Q]=w[Q]);return j},M=(0,r.forwardRef)((w,y)=>{var j=w,{size:Q,spin:ze,style:me}=j,Se=U(j,["size","spin","style"]);const Me=B(B({width:Q||"var(--x-icon-size, 1em)",height:Q||"var(--x-icon-size, 1em)",animation:ze?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),me);return r.createElement("svg",l(B({ref:y,style:Me},Se),{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),r.createElement("path",{d:"M18.2579 7.21973C18.5507 6.92691 19.0255 6.92705 19.3184 7.21973C19.6112 7.51263 19.6113 7.98743 19.3184 8.28027L10.8331 16.7656C10.6925 16.9062 10.5016 16.9853 10.3028 16.9854C10.1041 16.9853 9.91309 16.9061 9.77252 16.7656L4.6817 11.6748C4.38884 11.3819 4.38891 10.9072 4.6817 10.6143C4.97459 10.3214 5.44936 10.3214 5.74225 10.6143L10.3028 15.1748L18.2579 7.21973Z",fill:"#19191A"}))})},33704:(Qn,qe,s)=>{"use strict";s.d(qe,{Sh:()=>I,dM:()=>r,m7:()=>J,qT:()=>te,vj:()=>T});function r(q){const{avatar:ne,name:B,email:l,mobile:U,cid:C,id:M}=q||{},w=B||l||U||C,y=ne||"";return{isDefaultAvatar:y.includes("/images/avatar.png"),name:w,avatarUrl:y,id:M}}function I(q){const{logo:ne,name:B,cid:l}=q||{},U=!ne,C=Number(l.split("").filter(M=>parseInt(M)).join(""))||0;return{isDefaultAvatar:U,name:B,avatarUrl:ne,id:C}}function J(q){const{logo:ne,name:B,cid:l}=q||{},U=!ne,C=Number(l.split("").filter(M=>parseInt(M)).join(""))||0;return{isDefaultAvatar:U,name:B,avatarUrl:ne,id:C}}const N=["#64b6fa","#a088ff","#5ad5c6","#da89f1"];function T(q){return q?N[q%N.length]:N[0]}function te(q){return{backgroundColor:q,border:"1px solid rgba(18, 17, 42, 0.07)"}}},34428:(Qn,qe,s)=>{"use strict";s.d(qe,{CW:()=>te,Xw:()=>U,er:()=>M,ke:()=>C,lp:()=>T,qd:()=>l,tP:()=>q});const r=300,I=1200,J=240,N=800,T=50,te=480,q=480,ne=N-T,B=ne/I,l=(w,y,j)=>{const Q=document.querySelector(".main-content");if(!Q)return;const ze=Q.getBoundingClientRect(),{top:me,left:Se,width:Me,height:De}=w,tt={left:Se,top:me};let at={width:Me,height:De};if(["tl","tr","bl","br"].includes(y)){if((Me<r||Me>I)&&(De<J||De>N))return;const ht=Math.min(Math.max(Me,r),I),Je=Math.min(Math.max(De,J),N);tt.left=Math.max(ze.left,Math.min(Se,ze.right-ht)),tt.top=Math.max(ze.top,Math.min(me,ze.bottom-Je)),at={width:ht,height:Je}}else{if(Me<r||Me>I||De<J||De>N)return;tt.left=Math.max(ze.left,Math.min(Se,ze.right-Me)),tt.top=Math.max(ze.top,Math.min(me,ze.bottom-De))}j({...at,...tt})},U=(w,y)=>{let{width:j,height:Q}=w;const{width:ze,height:me}=y,Se=me/ze;let Me=j,De=Q;return(j>I||Q>ne)&&(Se>=B?(Me=ne/me*ze,De=ne):(Me=I,De=I/ze*me)),{width:Math.min(Math.max(Me,r),I),height:Math.min(Math.max(De,J),N)}},C=()=>{const w=document.getElementById("IBOT_MODAL_ROOT")||Object.assign(document.createElement("div"),{id:"IBOT_MODAL_ROOT"});return document.body.contains(w)||document.body.appendChild(w),w},M={CanvasModal:"preview-canvas-modal",ComboModal:"preview-combo-modal",PanelModal:"preview-panel-modal"}},34567:(Qn,qe,s)=>{"use strict";s.d(qe,{e:()=>te});var r=s(16454),I=s(20640),J=s(85584),N=s(56202);const T=l=>{const{screenTreeData:U,dataMap:C}=(0,I.tb)(l),M=[];(0,J.sV)(U,y=>{const j=y.data;j&&!(0,J.Mo)(j)&&M.push(j),j&&j.parent_cid&&C[j.parent_cid]&&(0,J.Mo)(C[j.parent_cid])&&(j.parent_cid=C[j.parent_cid].parent_cid)});const w={};for(const y of M){const j=C[y.parent_cid],Q=j&&j.cid!==y.cid?j.cid:"root";w[Q]=w[Q]||[],w[Q].push(y)}for(const y of Object.values(w))y.forEach((j,Q)=>{j&&j.position!==0+Q&&(j.position=0+Q)});return M},te=()=>{const l=w=>{let{type:y,payload:j}=w;try{return ne[y]&&ne[y]({type:y,payload:j})}catch(Q){console.warn("[request] error message data",Q,y,j)}},U=function(w,y,j){y===void 0&&(y={}),j===void 0&&(j="*"),!(!window.ReactNativeWebView&&!window.parent)&&(w&&window.ReactNativeWebView?window.ReactNativeWebView.postMessage(JSON.stringify({event:w,payload:y})):w&&window.parent.postMessage(JSON.stringify({event:w,payload:y}),j))},C=w=>{if(!(w.source===window||w.origin.includes("qiyukf")||!w.data||typeof w.data!="string"))try{const{event:y,type:j=y,payload:Q={}}=JSON.parse(w.data),ze=l({type:j,payload:Q});ze&&U(ze.type,ze.payload)}catch(y){console.warn("[receive] error message data",y,w)}},M=()=>window.removeEventListener("message",C);return(0,N.m0)()?document.addEventListener("message",C):window.addEventListener("message",C),{request:l,send:U,clear:M}},q={"preview-ready":!1},ne={"message:get:record":()=>({type:"message:data:record",payload:q}),"message:set:record":l=>{let{payload:{key:U,value:C}}=l;q[U]=C},"message:get:preview-state":()=>{const{state:l,isHighlight:U}=B();return{type:"message:data:preview-state",payload:{screenCid:l.container.current.screenMeta.cid,isHighlight:U}}},"message:set:preview-state":l=>{let{payload:{isHighlight:U,screenCid:C}}=l;const{state:{model:{screens:M},container:{current:{screenMeta:w}}},dispatch:y}=B();if(U!==void 0&&y({type:"reducer:preview-toolbar:update:highlight",payload:{isHighlight:U}}),w.cid&&C!==void 0&&C!==w.cid){if(!M.find(j=>j.cid===C))return console.warn("[message:set:preview-state] invalid screenCid");y({type:"entry:sync-runner:set-screen",payload:{cid:C}})}},"message:get:screen-list":()=>{const l=MB.webpackInterface.store.getState(),U=(0,r.PL)(l).cid,C=(0,r.Qv)(l);return{type:"message:data:screen-list",payload:T(C.concat()).map(y=>{let{cid:j,name:Q,position:ze,parent_cid:me}=y;return{cid:j,name:Q,position:ze,parent_cid:me,project_cid:U}})}},"message:get:notification-state":()=>{const{notifications:l}=MB.notification&&MB.notification.store&&MB.notification.store.getState()||{};return{type:"message:data:notification-state",payload:{unreadCount:l?l.notifications.unreadNum:0}}},"message:get:notification-list":()=>{const{notifications:l}=MB.notification&&MB.notification.store&&MB.notification.store.getState()||{};return{type:"message:data:notification-list",payload:l?l.notifications.notifications:[]}},"message:get:app:init:status":l=>{let{payload:{version:U,isDummyApk:C=!1}}=l;MB.webpackInterface.store.dispatch({type:"reducer:preview-toolbar:update",payload:{appVersion:U,isDummyApk:C}})}},B=()=>{const{getState:l,dispatch:U}=MB.webpackInterface.store,C=l(),M=(0,r.Re)(C);return{dispatch:U,state:C,isHighlight:M}}},34602:(Qn,qe,s)=>{"use strict";s.d(qe,{q:()=>r});const r=I=>{const J=window.getComputedStyle(I),N=new DOMMatrixReadOnly(J.transform);return{translateX:N.m41,translateY:N.m42}}},34835:(Qn,qe,s)=>{"use strict";Object.defineProperty(qe,"__esModule",{value:!0});var r=function(){function U(C,M){for(var w=0;w<M.length;w++){var y=M[w];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(C,y.key,y)}}return function(C,M,w){return M&&U(C.prototype,M),w&&U(C,w),C}}(),I=s(38502),J=te(I),N=s(25582),T=te(N);function te(U){return U&&U.__esModule?U:{default:U}}function q(U,C){if(!(U instanceof C))throw new TypeError("Cannot call a class as a function")}function ne(U,C){if(!U)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return C&&(typeof C=="object"||typeof C=="function")?C:U}function B(U,C){if(typeof C!="function"&&C!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof C);U.prototype=Object.create(C&&C.prototype,{constructor:{value:U,enumerable:!1,writable:!0,configurable:!0}}),C&&(Object.setPrototypeOf?Object.setPrototypeOf(U,C):U.__proto__=C)}var l=function(U){B(C,U);function C(){return q(this,C),ne(this,(C.__proto__||Object.getPrototypeOf(C)).apply(this,arguments))}return r(C,[{key:"render",value:function(){return J.default.createElement("table",{className:this.props.className},J.default.createElement("tbody",null,this.props.children))}}]),C}(I.PureComponent);l.propTypes={className:T.default.string,data:T.default.array.isRequired},qe.default=l},35125:(Qn,qe,s)=>{"use strict";s.d(qe,{C:()=>I,b:()=>J});var r=s(48150);function I(N){return(0,r.oX)(N,{inputAffixPadding:N.paddingXXS})}const J=N=>{const{controlHeight:T,fontSize:te,lineHeight:q,lineWidth:ne,controlHeightSM:B,controlHeightLG:l,fontSizeLG:U,lineHeightLG:C,paddingSM:M,controlPaddingHorizontalSM:w,controlPaddingHorizontal:y,colorFillAlter:j,colorPrimaryHover:Q,colorPrimary:ze,controlOutlineWidth:me,controlOutline:Se,colorErrorOutline:Me,colorWarningOutline:De,colorBgContainer:tt,inputFontSize:at,inputFontSizeLG:ht,inputFontSizeSM:Je}=N,$=at||te,mt=Je||$,yt=ht||U,Le=Math.round((T-$*q)/2*10)/10-ne,He=Math.round((B-mt*q)/2*10)/10-ne,ye=Math.ceil((l-yt*C)/2*10)/10-ne;return{paddingBlock:Math.max(Le,0),paddingBlockSM:Math.max(He,0),paddingBlockLG:Math.max(ye,0),paddingInline:M-ne,paddingInlineSM:w-ne,paddingInlineLG:y-ne,addonBg:j,activeBorderColor:ze,hoverBorderColor:Q,activeShadow:"0 0 0 "+me+"px "+Se,errorActiveShadow:"0 0 0 "+me+"px "+Me,warningActiveShadow:"0 0 0 "+me+"px "+De,hoverBg:tt,activeBg:tt,inputFontSize:$,inputFontSizeLG:yt,inputFontSizeSM:mt}}},36221:(Qn,qe,s)=>{"use strict";Object.defineProperty(qe,"__esModule",{value:!0});var r=s(25582),I=J(r);function J(T){return T&&T.__esModule?T:{default:T}}var N={readOnly:I.default.bool,key:I.default.string,className:I.default.string,component:I.default.oneOfType([I.default.element,I.default.func]),forceComponent:I.default.bool,disableEvents:I.default.bool,disableUpdatedFlag:I.default.bool,colSpan:I.default.number,rowSpan:I.default.number,width:I.default.oneOfType([I.default.number,I.default.string]),overflow:I.default.oneOf(["wrap","nowrap","clip"]),dataEditor:I.default.func,valueViewer:I.default.func};qe.default=N},36315:(Qn,qe,s)=>{var r=s(92898);function I(J){var N=r(J),T=N%1;return N===N?T?N-T:N:0}Qn.exports=I},36466:(Qn,qe,s)=>{"use strict";s.d(qe,{A:()=>ya});var r=s(38502),I=s(63296),J=s(94586),N={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"};const T=N;var te=s(40080),q=function(Oo,so){return r.createElement(te.A,(0,J.A)({},Oo,{ref:so,icon:T}))},ne=r.forwardRef(q);const B=ne;var l=s(53732),U=s.n(l),C=s(59063),M=s(77172),w=s(18767),y=s(94815),j=s(13199),Q=s(21425),ze=s(79544),me=function(Oo){if((0,ze.A)()&&window.document.documentElement){var so=Array.isArray(Oo)?Oo:[Oo],to=window.document.documentElement;return so.some(function(Vo){return Vo in to.style})}return!1},Se=function(Oo,so){if(!me(Oo))return!1;var to=document.createElement("div"),Vo=to.style[Oo];return to.style[Oo]=so,to.style[Oo]!==Vo};function Me(eo,Oo){return!Array.isArray(eo)&&Oo!==void 0?Se(eo,Oo):me(eo)}var De=s(46757),tt=s(34321),at=s(20366),ht={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z"}}]},name:"enter",theme:"outlined"};const Je=ht;var $=function(Oo,so){return r.createElement(te.A,(0,J.A)({},Oo,{ref:so,icon:Je}))},mt=r.forwardRef($);const yt=mt;var Le=s(49358),He=s(67916),ye=s(52401),je=s(55095),ot=s(58196),we=s(59640),$e=s(61972);const ge=(eo,Oo,so,to)=>{const{titleMarginBottom:Vo,fontWeightStrong:ta}=to;return{marginBottom:Vo,color:so,fontWeight:ta,fontSize:eo,lineHeight:Oo}},Ze=eo=>{const Oo=[1,2,3,4,5],so={};return Oo.forEach(to=>{so["\n h"+to+"&,\n div&-h"+to+",\n div&-h"+to+" > textarea,\n h"+to+"\n "]=ge(eo["fontSizeHeading"+to],eo["lineHeightHeading"+to],eo.colorTextHeading,eo)}),so},W=eo=>{const{componentCls:Oo}=eo;return{"a&, a":Object.assign(Object.assign({},(0,je.Y1)(eo)),{userSelect:"text",["&[disabled], &"+Oo+"-disabled"]:{color:eo.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:eo.colorTextDisabled},"&:active":{pointerEvents:"none"}}})}},an=eo=>({code:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.2em 0.1em",fontSize:"85%",fontFamily:eo.fontFamilyCode,background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3},kbd:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.15em 0.1em",fontSize:"90%",fontFamily:eo.fontFamilyCode,background:"rgba(150, 150, 150, 0.06)",border:"1px solid rgba(100, 100, 100, 0.2)",borderBottomWidth:2,borderRadius:3},mark:{padding:0,backgroundColor:we.bK[2]},"u, ins":{textDecoration:"underline",textDecorationSkipInk:"auto"},"s, del":{textDecoration:"line-through"},strong:{fontWeight:eo.fontWeightStrong},"ul, ol":{marginInline:0,marginBlock:"0 1em",padding:0,li:{marginInline:"20px 0",marginBlock:0,paddingInline:"4px 0",paddingBlock:0}},ul:{listStyleType:"circle",ul:{listStyleType:"disc"}},ol:{listStyleType:"decimal"},"pre, blockquote":{margin:"1em 0"},pre:{padding:"0.4em 0.6em",whiteSpace:"pre-wrap",wordWrap:"break-word",background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3,fontFamily:eo.fontFamilyCode,code:{display:"inline",margin:0,padding:0,fontSize:"inherit",fontFamily:"inherit",background:"transparent",border:0}},blockquote:{paddingInline:"0.6em 0",paddingBlock:0,borderInlineStart:"4px solid rgba(100, 100, 100, 0.2)",opacity:.85}}),_t=eo=>{const{componentCls:Oo,paddingSM:so}=eo,to=so;return{"&-edit-content":{position:"relative","div&":{insetInlineStart:eo.calc(eo.paddingSM).mul(-1).equal(),marginTop:eo.calc(to).mul(-1).equal(),marginBottom:"calc(1em - "+(0,$e.zA)(to)+")"},[Oo+"-edit-content-confirm"]:{position:"absolute",insetInlineEnd:eo.calc(eo.marginXS).add(2).equal(),insetBlockEnd:eo.marginXS,color:eo.colorIcon,fontWeight:"normal",fontSize:eo.fontSize,fontStyle:"normal",pointerEvents:"none"},textarea:{margin:"0!important",MozTransition:"none",height:"1em"}}}},nn=eo=>({[eo.componentCls+"-copy-success"]:{"\n &,\n &:hover,\n &:focus":{color:eo.colorSuccess}},[eo.componentCls+"-copy-icon-only"]:{marginInlineStart:0}}),Oe=()=>({"\n a&-ellipsis,\n span&-ellipsis\n ":{display:"inline-block",maxWidth:"100%"},"&-ellipsis-single-line":{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis","a&, span&":{verticalAlign:"bottom"},"> code":{paddingBlock:0,maxWidth:"calc(100% - 1.2em)",display:"inline-block",overflow:"hidden",textOverflow:"ellipsis",verticalAlign:"bottom",boxSizing:"content-box"}},"&-ellipsis-multiple-line":{display:"-webkit-box",overflow:"hidden",WebkitLineClamp:3,WebkitBoxOrient:"vertical"}}),sn=eo=>{const{componentCls:Oo,titleMarginTop:so}=eo;return{[Oo]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:eo.colorText,wordBreak:"break-word",lineHeight:eo.lineHeight,["&"+Oo+"-secondary"]:{color:eo.colorTextDescription},["&"+Oo+"-success"]:{color:eo.colorSuccessText},["&"+Oo+"-warning"]:{color:eo.colorWarningText},["&"+Oo+"-danger"]:{color:eo.colorErrorText,"a&:active, a&:focus":{color:eo.colorErrorTextActive},"a&:hover":{color:eo.colorErrorTextHover}},["&"+Oo+"-disabled"]:{color:eo.colorTextDisabled,cursor:"not-allowed",userSelect:"none"},"\n div&,\n p\n ":{marginBottom:"1em"}},Ze(eo)),{["\n & + h1"+Oo+",\n & + h2"+Oo+",\n & + h3"+Oo+",\n & + h4"+Oo+",\n & + h5"+Oo+"\n "]:{marginTop:so},"\n div,\n ul,\n li,\n p,\n h1,\n h2,\n h3,\n h4,\n h5":{"\n + h1,\n + h2,\n + h3,\n + h4,\n + h5\n ":{marginTop:so}}}),an(eo)),W(eo)),{["\n "+Oo+"-expand,\n "+Oo+"-collapse,\n "+Oo+"-edit,\n "+Oo+"-copy\n "]:Object.assign(Object.assign({},(0,je.Y1)(eo)),{marginInlineStart:eo.marginXXS})}),_t(eo)),nn(eo)),Oe()),{"&-rtl":{direction:"rtl"}})}},It=()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"}),Pt=(0,ot.OF)("Typography",eo=>[sn(eo)],It),Vn=eo=>{const{prefixCls:Oo,"aria-label":so,className:to,style:Vo,direction:ta,maxLength:Qa,autoSize:qr=!0,value:kr,onSave:ur,onCancel:Mr,onEnd:gr,component:dr,enterIcon:wi=r.createElement(yt,null)}=eo,gi=r.useRef(null),Li=r.useRef(!1),Ni=r.useRef(null),[Ai,Bi]=r.useState(kr);r.useEffect(()=>{Bi(kr)},[kr]),r.useEffect(()=>{var ir;if(!((ir=gi.current)===null||ir===void 0)&&ir.resizableTextArea){const{textArea:Ir}=gi.current.resizableTextArea;Ir.focus();const{length:Er}=Ir.value;Ir.setSelectionRange(Er,Er)}},[]);const Ss=ir=>{let{target:Ir}=ir;Bi(Ir.value.replace(/[\n\r]/g,""))},qi=()=>{Li.current=!0},Ga=()=>{Li.current=!1},ai=ir=>{let{keyCode:Ir}=ir;Li.current||(Ni.current=Ir)},kt=()=>{ur(Ai.trim())},Qt=ir=>{let{keyCode:Ir,ctrlKey:Er,altKey:ji,metaKey:ci,shiftKey:Cl}=ir;Ni.current!==Ir||Li.current||Er||ji||ci||Cl||(Ir===Le.A.ENTER?(kt(),gr==null||gr()):Ir===Le.A.ESC&&Mr())},oo=()=>{kt()},[ao,fa,wr]=Pt(Oo),Xa=U()(Oo,Oo+"-edit-content",{[Oo+"-rtl"]:ta==="rtl",[Oo+"-"+dr]:!!dr},to,fa,wr);return ao(r.createElement("div",{className:Xa,style:Vo},r.createElement(ye.A,{ref:gi,maxLength:Qa,value:Ai,onChange:Ss,onKeyDown:ai,onKeyUp:Qt,onCompositionStart:qi,onCompositionEnd:Ga,onBlur:oo,"aria-label":so,rows:1,autoSize:qr}),wi!==null?(0,He.Ob)(wi,{className:Oo+"-edit-content-confirm"}):null))};var o=s(46675),Gn=s.n(o),xt=s(75586);const wt=function(eo,Oo){return Oo===void 0&&(Oo=!1),Oo&&eo==null?[]:Array.isArray(eo)?eo:[eo]};var Kt=function(eo,Oo,so,to){function Vo(ta){return ta instanceof so?ta:new so(function(Qa){Qa(ta)})}return new(so||(so=Promise))(function(ta,Qa){function qr(Mr){try{ur(to.next(Mr))}catch(gr){Qa(gr)}}function kr(Mr){try{ur(to.throw(Mr))}catch(gr){Qa(gr)}}function ur(Mr){Mr.done?ta(Mr.value):Vo(Mr.value).then(qr,kr)}ur((to=to.apply(eo,Oo||[])).next())})};const bt=eo=>{let{copyConfig:Oo,children:so}=eo;const[to,Vo]=r.useState(!1),[ta,Qa]=r.useState(!1),qr=r.useRef(null),kr=()=>{qr.current&&clearTimeout(qr.current)},ur={};Oo.format&&(ur.format=Oo.format),r.useEffect(()=>kr,[]);const Mr=(0,xt.A)(gr=>Kt(void 0,void 0,void 0,function*(){var dr;gr==null||gr.preventDefault(),gr==null||gr.stopPropagation(),Qa(!0);try{const wi=typeof Oo.text=="function"?yield Oo.text():Oo.text;Gn()(wi||wt(so,!0).join("")||"",ur),Qa(!1),Vo(!0),kr(),qr.current=setTimeout(()=>{Vo(!1)},3e3),(dr=Oo.onCopy)===null||dr===void 0||dr.call(Oo,gr)}catch(wi){throw Qa(!1),wi}}));return{copied:to,copyLoading:ta,onClick:Mr}};function un(eo,Oo){return r.useMemo(()=>{const so=!!eo;return[so,Object.assign(Object.assign({},Oo),so&&typeof eo=="object"?eo:null)]},[eo])}const Wt=eo=>{const Oo=(0,r.useRef)(void 0);return(0,r.useEffect)(()=>{Oo.current=eo}),Oo.current},Jn=(eo,Oo,so)=>(0,r.useMemo)(()=>eo===!0?{title:Oo!=null?Oo:so}:(0,r.isValidElement)(eo)?{title:eo}:typeof eo=="object"?Object.assign({title:Oo!=null?Oo:so},eo):{title:eo},[eo,Oo,so]);var Yt=function(eo,Oo){var so={};for(var to in eo)Object.prototype.hasOwnProperty.call(eo,to)&&Oo.indexOf(to)<0&&(so[to]=eo[to]);if(eo!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Vo=0,to=Object.getOwnPropertySymbols(eo);Vo<to.length;Vo++)Oo.indexOf(to[Vo])<0&&Object.prototype.propertyIsEnumerable.call(eo,to[Vo])&&(so[to[Vo]]=eo[to[Vo]]);return so};const An=r.forwardRef((eo,Oo)=>{const{prefixCls:so,component:to="article",className:Vo,rootClassName:ta,setContentRef:Qa,children:qr,direction:kr,style:ur}=eo,Mr=Yt(eo,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:gr,direction:dr,className:wi,style:gi}=(0,De.TP)("typography"),Li=kr!=null?kr:dr,Ni=Qa?(0,Q.K4)(Oo,Qa):Oo,Ai=gr("typography",so),[Bi,Ss,qi]=Pt(Ai),Ga=U()(Ai,wi,{[Ai+"-rtl"]:Li==="rtl"},Vo,ta,Ss,qi),ai=Object.assign(Object.assign({},gi),ur);return Bi(r.createElement(to,Object.assign({className:Ga,style:ai,ref:Ni},Mr),qr))});var Nt=s(52656),jt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"};const vn=jt;var Dt=function(Oo,so){return r.createElement(te.A,(0,J.A)({},Oo,{ref:so,icon:vn}))},$t=r.forwardRef(Dt);const kn=$t;var Kn=s(66147);function dn(eo){return eo===!1?[!1,!1]:Array.isArray(eo)?eo:[eo]}function ft(eo,Oo,so){return eo===!0||eo===void 0?Oo:eo||so&&Oo}function Lt(eo){const Oo=document.createElement("em");eo.appendChild(Oo);const so=eo.getBoundingClientRect(),to=Oo.getBoundingClientRect();return eo.removeChild(Oo),so.left>to.left||to.right>so.right||so.top>to.top||to.bottom>so.bottom}const bn=eo=>["string","number"].includes(typeof eo),on=eo=>{let{prefixCls:Oo,copied:so,locale:to,iconOnly:Vo,tooltips:ta,icon:Qa,tabIndex:qr,onCopy:kr,loading:ur}=eo;const Mr=dn(ta),gr=dn(Qa),{copied:dr,copy:wi}=to!=null?to:{},gi=so?dr:wi,Li=ft(Mr[so?1:0],gi),Ni=typeof Li=="string"?Li:gi;return r.createElement(at.A,{title:Li},r.createElement("button",{type:"button",className:U()(Oo+"-copy",{[Oo+"-copy-success"]:so,[Oo+"-copy-icon-only"]:Vo}),onClick:kr,"aria-label":Ni,tabIndex:qr},so?ft(gr[1],r.createElement(Nt.A,null),!0):ft(gr[0],ur?r.createElement(Kn.A,null):r.createElement(kn,null),!0)))},yn=r.forwardRef((eo,Oo)=>{let{style:so,children:to}=eo;const Vo=r.useRef(null);return r.useImperativeHandle(Oo,()=>({isExceed:()=>{const ta=Vo.current;return ta.scrollHeight>ta.clientHeight},getHeight:()=>Vo.current.clientHeight})),r.createElement("span",{"aria-hidden":!0,ref:Vo,style:Object.assign({position:"fixed",display:"block",left:0,top:0,pointerEvents:"none",backgroundColor:"rgba(255, 0, 0, 0.65)"},so)},to)}),lo=eo=>eo.reduce((Oo,so)=>Oo+(bn(so)?String(so).length:1),0);function qn(eo,Oo){let so=0;const to=[];for(let Vo=0;Vo<eo.length;Vo+=1){if(so===Oo)return to;const ta=eo[Vo],qr=bn(ta)?String(ta).length:1,kr=so+qr;if(kr>Oo){const ur=Oo-so;return to.push(String(ta).slice(0,ur)),to}to.push(ta),so=kr}return eo}const Wn=0,Nn=1,xn=2,Ye=3,wn=4,Hn={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function zn(eo){const{enableMeasure:Oo,width:so,text:to,children:Vo,rows:ta,expanded:Qa,miscDeps:qr,onEllipsis:kr}=eo,ur=r.useMemo(()=>(0,M.A)(to),[to]),Mr=r.useMemo(()=>lo(ur),[to]),gr=r.useMemo(()=>Vo(ur,!1),[to]),[dr,wi]=r.useState(null),gi=r.useRef(null),Li=r.useRef(null),Ni=r.useRef(null),Ai=r.useRef(null),Bi=r.useRef(null),[Ss,qi]=r.useState(!1),[Ga,ai]=r.useState(Wn),[kt,Qt]=r.useState(0),[oo,ao]=r.useState(null);(0,w.A)(()=>{ai(Oo&&so&&Mr?Nn:Wn)},[so,to,ta,Oo,ur]),(0,w.A)(()=>{var ir,Ir,Er,ji;if(Ga===Nn){ai(xn);const ci=Li.current&&getComputedStyle(Li.current).whiteSpace;ao(ci)}else if(Ga===xn){const ci=!!(!((ir=Ni.current)===null||ir===void 0)&&ir.isExceed());ai(ci?Ye:wn),wi(ci?[0,Mr]:null),qi(ci);const Cl=((Ir=Ni.current)===null||Ir===void 0?void 0:Ir.getHeight())||0,Di=ta===1?0:((Er=Ai.current)===null||Er===void 0?void 0:Er.getHeight())||0,Rs=((ji=Bi.current)===null||ji===void 0?void 0:ji.getHeight())||0,wc=Math.max(Cl,Di+Rs);Qt(wc+1),kr(ci)}},[Ga]);const fa=dr?Math.ceil((dr[0]+dr[1])/2):0;(0,w.A)(()=>{var ir;const[Ir,Er]=dr||[0,0];if(Ir!==Er){const ci=(((ir=gi.current)===null||ir===void 0?void 0:ir.getHeight())||0)>kt;let Cl=fa;Er-Ir===1&&(Cl=ci?Ir:Er),wi(ci?[Ir,Cl]:[Cl,Er])}},[dr,fa]);const wr=r.useMemo(()=>{if(!Oo)return Vo(ur,!1);if(Ga!==Ye||!dr||dr[0]!==dr[1]){const ir=Vo(ur,!1);return[wn,Wn].includes(Ga)?ir:r.createElement("span",{style:Object.assign(Object.assign({},Hn),{WebkitLineClamp:ta})},ir)}return Vo(Qa?ur:qn(ur,dr[0]),Ss)},[Qa,Ga,dr,ur].concat((0,I.A)(qr))),Xa={width:so,margin:0,padding:0,whiteSpace:oo==="nowrap"?"normal":"inherit"};return r.createElement(r.Fragment,null,wr,Ga===xn&&r.createElement(r.Fragment,null,r.createElement(yn,{style:Object.assign(Object.assign(Object.assign({},Xa),Hn),{WebkitLineClamp:ta}),ref:Ni},gr),r.createElement(yn,{style:Object.assign(Object.assign(Object.assign({},Xa),Hn),{WebkitLineClamp:ta-1}),ref:Ai},gr),r.createElement(yn,{style:Object.assign(Object.assign(Object.assign({},Xa),Hn),{WebkitLineClamp:1}),ref:Bi},Vo([],!0))),Ga===Ye&&dr&&dr[0]!==dr[1]&&r.createElement(yn,{style:Object.assign(Object.assign({},Xa),{top:400}),ref:gi},Vo(qn(ur,fa),!0)),Ga===Nn&&r.createElement("span",{style:{whiteSpace:"inherit"},ref:Li}))}const On=eo=>{let{enableEllipsis:Oo,isEllipsis:so,children:to,tooltipProps:Vo}=eo;return!(Vo!=null&&Vo.title)||!Oo?to:r.createElement(at.A,Object.assign({open:so?void 0:!1},Vo),to)};var Mo=function(eo,Oo){var so={};for(var to in eo)Object.prototype.hasOwnProperty.call(eo,to)&&Oo.indexOf(to)<0&&(so[to]=eo[to]);if(eo!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Vo=0,to=Object.getOwnPropertySymbols(eo);Vo<to.length;Vo++)Oo.indexOf(to[Vo])<0&&Object.prototype.propertyIsEnumerable.call(eo,to[Vo])&&(so[to[Vo]]=eo[to[Vo]]);return so};function jn(eo,Oo){let{mark:so,code:to,underline:Vo,delete:ta,strong:Qa,keyboard:qr,italic:kr}=eo,ur=Oo;function Mr(gr,dr){dr&&(ur=r.createElement(gr,{},ur))}return Mr("strong",Qa),Mr("u",Vo),Mr("del",ta),Mr("code",to),Mr("mark",so),Mr("kbd",qr),Mr("i",kr),ur}const xo="...",jo=["delete","mark","code","underline","strong","keyboard","italic"],cn=r.forwardRef((eo,Oo)=>{var so;const{prefixCls:to,className:Vo,style:ta,type:Qa,disabled:qr,children:kr,ellipsis:ur,editable:Mr,copyable:gr,component:dr,title:wi}=eo,gi=Mo(eo,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:Li,direction:Ni}=r.useContext(De.QO),[Ai]=(0,tt.A)("Text"),Bi=r.useRef(null),Ss=r.useRef(null),qi=Li("typography",to),Ga=(0,j.A)(gi,jo),[ai,kt]=un(Mr),[Qt,oo]=(0,y.A)(!1,{value:kt.editing}),{triggerType:ao=["icon"]}=kt,fa=Fo=>{var Eo;Fo&&((Eo=kt.onStart)===null||Eo===void 0||Eo.call(kt)),oo(Fo)},wr=Wt(Qt);(0,w.A)(()=>{var Fo;!Qt&&wr&&((Fo=Ss.current)===null||Fo===void 0||Fo.focus())},[Qt]);const Xa=Fo=>{Fo==null||Fo.preventDefault(),fa(!0)},ir=Fo=>{var Eo;(Eo=kt.onChange)===null||Eo===void 0||Eo.call(kt,Fo),fa(!1)},Ir=()=>{var Fo;(Fo=kt.onCancel)===null||Fo===void 0||Fo.call(kt),fa(!1)},[Er,ji]=un(gr),{copied:ci,copyLoading:Cl,onClick:Di}=bt({copyConfig:ji,children:kr}),[Rs,wc]=r.useState(!1),[Vc,Wl]=r.useState(!1),[ca,Lr]=r.useState(!1),[yi,Ts]=r.useState(!1),[Cc,Wi]=r.useState(!0),[Ml,Oi]=un(ur,{expandable:!1,symbol:Fo=>Fo?Ai==null?void 0:Ai.collapse:Ai==null?void 0:Ai.expand}),[zs,Hl]=(0,y.A)(Oi.defaultExpanded||!1,{value:Oi.expanded}),El=Ml&&(!zs||Oi.expandable==="collapsible"),{rows:Xl=1}=Oi,uc=r.useMemo(()=>El&&(Oi.suffix!==void 0||Oi.onEllipsis||Oi.expandable||ai||Er),[El,Oi,ai,Er]);(0,w.A)(()=>{Ml&&!uc&&(wc(Me("webkitLineClamp")),Wl(Me("textOverflow")))},[uc,Ml]);const[Pl,Pc]=r.useState(El),Gl=r.useMemo(()=>uc?!1:Xl===1?Vc:Rs,[uc,Vc,Rs]);(0,w.A)(()=>{Pc(Gl&&El)},[Gl,El]);const vo=El&&(Pl?yi:ca),ia=El&&Xl===1&&Pl,na=El&&Xl>1&&Pl,Sa=(Fo,Eo)=>{var Oa;Hl(Eo.expanded),(Oa=Oi.onExpand)===null||Oa===void 0||Oa.call(Oi,Fo,Eo)},[Na,Tt]=r.useState(0),mn=Fo=>{let{offsetWidth:Eo}=Fo;Tt(Eo)},Rn=Fo=>{var Eo;Lr(Fo),ca!==Fo&&((Eo=Oi.onEllipsis)===null||Eo===void 0||Eo.call(Oi,Fo))};r.useEffect(()=>{const Fo=Bi.current;if(Ml&&Pl&&Fo){const Eo=Lt(Fo);yi!==Eo&&Ts(Eo)}},[Ml,Pl,kr,na,Cc,Na]),r.useEffect(()=>{const Fo=Bi.current;if(typeof IntersectionObserver>"u"||!Fo||!Pl||!El)return;const Eo=new IntersectionObserver(()=>{Wi(!!Fo.offsetParent)});return Eo.observe(Fo),()=>{Eo.disconnect()}},[Pl,El]);const gn=Jn(Oi.tooltip,kt.text,kr),Tn=r.useMemo(()=>{if(!(!Ml||Pl))return[kt.text,kr,wi,gn.title].find(bn)},[Ml,Pl,wi,gn.title,vo]);if(Qt)return r.createElement(Vn,{value:(so=kt.text)!==null&&so!==void 0?so:typeof kr=="string"?kr:"",onSave:ir,onCancel:Ir,onEnd:kt.onEnd,prefixCls:qi,className:Vo,style:ta,direction:Ni,component:dr,maxLength:kt.maxLength,autoSize:kt.autoSize,enterIcon:kt.enterIcon});const wo=()=>{const{expandable:Fo,symbol:Eo}=Oi;return Fo?r.createElement("button",{type:"button",key:"expand",className:qi+"-"+(zs?"collapse":"expand"),onClick:Oa=>Sa(Oa,{expanded:!zs}),"aria-label":zs?Ai.collapse:Ai==null?void 0:Ai.expand},typeof Eo=="function"?Eo(zs):Eo):null},io=()=>{if(!ai)return;const{icon:Fo,tooltip:Eo,tabIndex:Oa}=kt,Ra=(0,M.A)(Eo)[0]||(Ai==null?void 0:Ai.edit),tr=typeof Ra=="string"?Ra:"";return ao.includes("icon")?r.createElement(at.A,{key:"edit",title:Eo===!1?"":Ra},r.createElement("button",{type:"button",ref:Ss,className:qi+"-edit",onClick:Xa,"aria-label":tr,tabIndex:Oa},Fo||r.createElement(B,{role:"button"}))):null},fo=()=>Er?r.createElement(on,Object.assign({key:"copy"},ji,{prefixCls:qi,copied:ci,locale:Ai,onCopy:Di,loading:Cl,iconOnly:kr==null})):null,co=Fo=>[Fo&&wo(),io(),fo()],ga=Fo=>[Fo&&!zs&&r.createElement("span",{"aria-hidden":!0,key:"ellipsis"},xo),Oi.suffix,co(Fo)];return r.createElement(C.A,{onResize:mn,disabled:!El},Fo=>r.createElement(On,{tooltipProps:gn,enableEllipsis:El,isEllipsis:vo},r.createElement(An,Object.assign({className:U()({[qi+"-"+Qa]:Qa,[qi+"-disabled"]:qr,[qi+"-ellipsis"]:Ml,[qi+"-ellipsis-single-line"]:ia,[qi+"-ellipsis-multiple-line"]:na},Vo),prefixCls:to,style:Object.assign(Object.assign({},ta),{WebkitLineClamp:na?Xl:void 0}),component:dr,ref:(0,Q.K4)(Fo,Bi,Oo),direction:Ni,onClick:ao.includes("text")?Xa:void 0,"aria-label":Tn==null?void 0:Tn.toString(),title:wi},Ga),r.createElement(zn,{enableMeasure:El&&!Pl,text:kr,rows:Xl,width:Na,onEllipsis:Rn,expanded:zs,miscDeps:[ci,zs,Cl,ai,Er,Ai].concat((0,I.A)(jo.map(Eo=>eo[Eo])))},(Eo,Oa)=>jn(eo,r.createElement(r.Fragment,null,Eo.length>0&&Oa&&!zs&&Tn?r.createElement("span",{key:"show-content","aria-hidden":!0},Eo):Eo,ga(Oa)))))))});var In=function(eo,Oo){var so={};for(var to in eo)Object.prototype.hasOwnProperty.call(eo,to)&&Oo.indexOf(to)<0&&(so[to]=eo[to]);if(eo!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Vo=0,to=Object.getOwnPropertySymbols(eo);Vo<to.length;Vo++)Oo.indexOf(to[Vo])<0&&Object.prototype.propertyIsEnumerable.call(eo,to[Vo])&&(so[to[Vo]]=eo[to[Vo]]);return so};const Jt=r.forwardRef((eo,Oo)=>{var{ellipsis:so,rel:to}=eo,Vo=In(eo,["ellipsis","rel"]);const ta=Object.assign(Object.assign({},Vo),{rel:to===void 0&&Vo.target==="_blank"?"noopener noreferrer":to});return delete ta.navigate,r.createElement(cn,Object.assign({},ta,{ref:Oo,ellipsis:!!so,component:"a"}))}),Xn=r.forwardRef((eo,Oo)=>r.createElement(cn,Object.assign({ref:Oo},eo,{component:"div"})));var Dn=function(eo,Oo){var so={};for(var to in eo)Object.prototype.hasOwnProperty.call(eo,to)&&Oo.indexOf(to)<0&&(so[to]=eo[to]);if(eo!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Vo=0,to=Object.getOwnPropertySymbols(eo);Vo<to.length;Vo++)Oo.indexOf(to[Vo])<0&&Object.prototype.propertyIsEnumerable.call(eo,to[Vo])&&(so[to[Vo]]=eo[to[Vo]]);return so};const go=(eo,Oo)=>{var{ellipsis:so}=eo,to=Dn(eo,["ellipsis"]);const Vo=r.useMemo(()=>so&&typeof so=="object"?(0,j.A)(so,["expandable","rows"]):so,[so]);return r.createElement(cn,Object.assign({ref:Oo},to,{ellipsis:Vo,component:"span"}))},Uo=r.forwardRef(go);var Ho=function(eo,Oo){var so={};for(var to in eo)Object.prototype.hasOwnProperty.call(eo,to)&&Oo.indexOf(to)<0&&(so[to]=eo[to]);if(eo!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Vo=0,to=Object.getOwnPropertySymbols(eo);Vo<to.length;Vo++)Oo.indexOf(to[Vo])<0&&Object.prototype.propertyIsEnumerable.call(eo,to[Vo])&&(so[to[Vo]]=eo[to[Vo]]);return so};const ua=[1,2,3,4,5],To=r.forwardRef((eo,Oo)=>{const{level:so=1}=eo,to=Ho(eo,["level"]),Vo=ua.includes(so)?"h"+so:"h1";return r.createElement(cn,Object.assign({ref:Oo},to,{component:Vo}))}),Ia=An;Ia.Text=Uo,Ia.Link=Jt,Ia.Title=To,Ia.Paragraph=Xn;const ya=Ia},36689:(Qn,qe,s)=>{"use strict";s.d(qe,{A:()=>U});var r=s(95549),I=s(38502),J=s(53732),N=s.n(J),T=s(82066),te=s(79150),q=s(25067),ne=s(67787);const B=ne.Ay.div.withConfig({displayName:"styles__StyledDesignZoomBoxExpand",componentId:"sc-125c6kt-0"})(["display:flex;align-items:center;.zoomBox{display:flex;align-items:center;margin:0 8px;width:111px;height:32px;border:1px solid ",";border-radius:6px;.zoom-control{width:30px;height:30px;&.zoom-out{border-radius:6px 0 0 6px;}&.zoom-in{border-radius:0 6px 6px 0;}svg{width:30px;height:30px;path{fill:",";}}}.zoomBoxExpand{flex:1;width:24px;height:32px;border-radius:0;.zoom-box{line-height:20px;.zoom-scale{flex:1 1 0%;margin-left:2px;font-size:13px;font-weight:400;transform:scale(1);}.zoom-arrow{width:7px;margin-left:7px;margin-right:6px;transform:translateY(0);}}.mac,.others{top:132%;}}&.is-embed-v2:not(.is-fullscreen-mode){width:96px;height:20px;.zoom-control{width:24px;height:20px;svg{width:16px;height:20px;}}.zoomBoxExpand{width:32px;height:20px;border-radius:0;.zoom-main > .zoom-box{.zoom-scale{transform:scale(0.8);}.zoom-arrow{width:5px;margin-left:4px;}}}}}.full-screen-button{width:38px;height:32px;&.small{width:24px !important;height:24px;align-items:center;.svg-icon{width:24px;height:24px;}}}"],C=>C.theme.color_bg_border_01,C=>C.theme.color_text_L1);var l=s(72214);class U extends I.PureComponent{constructor(){super(...arguments),(0,r.A)(this,"handleToggleFullScreenMode",()=>this.props.dispatch({type:"entry:toolbar:toggle:fullScreen"})),(0,r.A)(this,"handleExitFullScreenMode",async()=>{const{dispatch:M}=this.props;M({type:"entry:toolbar:toggle:fullScreen"})})}componentDidMount(){const{isEmbedV2Preview:M,onZoomInitialScale:w}=this.props;M&&w(null)}render(){const{scale:M,fullScreenMode:w,isShowZoomSelection:y,isEmbedV2Preview:j,onZoomSpecifiedScale:Q,onZoomIn:ze,onZoomOut:me,onZoomInitialScale:Se,onZoomSelection:Me}=this.props;return(0,l.jsxs)(B,{children:[(0,l.jsxs)("div",{className:N()("zoomBox",{"is-fullscreen-mode":w,"is-embed-v2":j}),children:[(0,l.jsx)(te.A,{className:"zoom-control zoom-out",onClick:me,name:"common/minus_bold"}),(0,l.jsx)(T.Pd,{scale:M,className:"zoomBoxExpand",isShowZoomSelection:y,onZoomIn:ze,onZoomOut:me,onZoomInitialScale:Se,onZoomSpecifiedScale:Q,onZoomSelection:Me,withDropdownMarker:!1}),(0,l.jsx)(te.A,{className:"zoom-control zoom-in",onClick:ze,name:"common/add_bold"})]}),w?(0,l.jsx)(q.A,{size:32,className:N()("full-screen-button",{small:j&&!w}),svgIconName:"design/collapse_screen",toolTipName:I18N.pPreviewToolbar.exit_fullscreen,direction:"down",toolTipDistance:8,onClick:this.handleExitFullScreenMode}):(0,l.jsx)(q.A,{size:32,className:N()("full-screen-button",{small:j&&!w}),svgIconName:"design/fullscreen",toolTipName:I18N.pPreviewToolbar.fullscreen,direction:"down",toolTipDistance:8,onClick:this.handleToggleFullScreenMode})]})}}},37754:(Qn,qe,s)=>{"use strict";s.d(qe,{P:()=>I});var r=s(19249);const I=async J=>{let{keyword:N,size:T=6,uId:te,projectCid:q="0",triggerSensitiveWord:ne=()=>null}=J;const B={uId:te,upperCid:q,Q:N,N:T};try{return(await(0,r.zi)("/js-hpr/v8ai2408/pick-image-list?"+new URLSearchParams(B))).map(U=>{const{size:C,sizeThmb:M,imageUrl:w="",imageUrlThmb:y}=U,j=w.split("/").pop().split(".")[0],Q=Number.isNaN(Number(j))?j:w;let ze=M.w,me=M.h;return ze!==200&&(me=Math.floor(200*me/ze),ze=200),{asset_cid:Q,image:w,width:ze,height:me,img_tag:[N],copyright:{},size:C,thumb:y,name:"\u793A\u4F8B\u56FE\u7247",group_cid:"",from:""}})}catch(l){return console.log("#### error:",l),l.status===451&&l.errors==="detected illegal text"&&ne(),[]}}},37898:(Qn,qe,s)=>{"use strict";s.d(qe,{F4:()=>T,OL:()=>I,bk:()=>r,gS:()=>N});function r(te){return!!(te.addonBefore||te.addonAfter)}function I(te){return!!(te.prefix||te.suffix||te.allowClear)}function J(te,q,ne){var B=q.cloneNode(!0),l=Object.create(te,{target:{value:B},currentTarget:{value:B}});return B.value=ne,typeof q.selectionStart=="number"&&typeof q.selectionEnd=="number"&&(B.selectionStart=q.selectionStart,B.selectionEnd=q.selectionEnd),B.setSelectionRange=function(){q.setSelectionRange.apply(q,arguments)},l}function N(te,q,ne,B){if(ne){var l=q;if(q.type==="click"){l=J(q,te,""),ne(l);return}if(te.type!=="file"&&B!==void 0){l=J(q,te,B),ne(l);return}ne(l)}}function T(te,q){if(te){te.focus(q);var ne=q||{},B=ne.cursor;if(B){var l=te.value.length;switch(B){case"start":te.setSelectionRange(0,0);break;case"end":te.setSelectionRange(l,l);break;default:te.setSelectionRange(0,l)}}}}},38182:(Qn,qe,s)=>{"use strict";s.d(qe,{A:()=>l});var r=s(95549),I=s(38502),J=s(53732),N=s.n(J),T=s(17307),te=s(83199),q=s(67787);const ne=q.Ay.span.withConfig({displayName:"styles__StyledCommentIcon",componentId:"sc-ruhsdd-0"})(["position:relative;height:28px;width:28px;display:flex;flex-direction:column;justify-content:center;align-items:center;color:",";svg circle{stroke:currentColor;}&.active{background-color:#e5e5e5;}"],U=>U.theme.color_text_L1);var B=s(72214);class l extends I.PureComponent{constructor(){super(...arguments),(0,r.A)(this,"ref",null),(0,r.A)(this,"handleClick",C=>{const{disabled:M,onClick:w}=this.props;M||(w&&C.stopPropagation(),w&&w(C))}),(0,r.A)(this,"setRef",C=>{this.props.iconRef&&this.props.iconRef(C),this.ref=C})}render(){const{id:C,disabled:M,active:w,name:y,icon:j,className:Q,selected:ze,svgClassName:me}=this.props,Se=this.props.content||y;return(0,B.jsx)(te.A,{content:Se,direction:"down",children:(0,B.jsx)(ne,{ref:this.setRef,id:C,className:N()("comment-icon",{"is-selected":ze},Q,{disabled:M,active:w}),onClick:this.handleClick,children:j?(0,B.jsx)(T.C,{style:{},className:me,name:"comment/"+j}):(0,B.jsx)("p",{children:y})})})}}},38382:(Qn,qe,s)=>{"use strict";s.d(qe,{H:()=>ne});var r=s(18381),I=s(53732),J=s.n(I),N=s(17307),T=s(67588),te=s(67787),q=s(72214);const ne=l=>{const U=(0,r.d4)(T.O4),{type:C="search",desc:M,className:w=""}=l,y="left_panel/modal/"+U+"_empty_"+C+"_icon";return(0,q.jsx)(B,{className:J()("empty-template-search-container",C,U,w),children:(0,q.jsxs)("div",{className:"center-container",children:[(0,q.jsx)(N.C,{name:y,isColorPure:!0}),(0,q.jsx)("span",{children:M||I18N.LeftSidePanel.modals.search_not_found})]})})},B=te.Ay.div.withConfig({displayName:"ModalEmptySearchContainer__StyledEmptyTemplateContainer",componentId:"sc-xrbhzq-0"})(["width:100%;flex:1;padding-top:170px;&.center{padding:0;display:flex;align-items:center;justify-content:center;}.center-container{display:flex;flex-direction:column;align-items:center;justify-content:center;.pure-svg-icon{width:88px;height:88px;}span{font-family:PingFang SC;font-size:14px;font-weight:400;color:",";margin-top:16px;}}"],l=>l.theme.color_text_L3)},38739:(Qn,qe,s)=>{"use strict";s.d(qe,{l:()=>r});var r=function(I){return I.LargeFactory="largeFactory",I.ComponentLibrary="componentLibrary",I.Me="me",I.History="history",I}(r||{})},38829:(Qn,qe,s)=>{"use strict";s.d(qe,{A:()=>M});var r=s(38502),I=Object.defineProperty,J=Object.defineProperties,N=Object.getOwnPropertyDescriptors,T=Object.getOwnPropertySymbols,te=Object.prototype.hasOwnProperty,q=Object.prototype.propertyIsEnumerable,ne=(w,y,j)=>y in w?I(w,y,{enumerable:!0,configurable:!0,writable:!0,value:j}):w[y]=j,B=(w,y)=>{for(var j in y||(y={}))te.call(y,j)&&ne(w,j,y[j]);if(T)for(var j of T(y))q.call(y,j)&&ne(w,j,y[j]);return w},l=(w,y)=>J(w,N(y)),U=(w,y)=>{var j={};for(var Q in w)te.call(w,Q)&&y.indexOf(Q)<0&&(j[Q]=w[Q]);if(w!=null&&T)for(var Q of T(w))y.indexOf(Q)<0&&q.call(w,Q)&&(j[Q]=w[Q]);return j},M=(0,r.forwardRef)((w,y)=>{var j=w,{size:Q,spin:ze,style:me}=j,Se=U(j,["size","spin","style"]);const Me=B(B({width:Q||"var(--x-icon-size, 1em)",height:Q||"var(--x-icon-size, 1em)",animation:ze?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),me);return r.createElement("svg",l(B({ref:y,style:Me},Se),{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),r.createElement("path",{d:"M15.5253 15.6429H2.47474C2.04085 15.6429 1.6754 15.3187 1.6237 14.8879L0.603573 6.38683C0.525383 5.73524 1.1785 5.24109 1.78428 5.4935L4.11126 6.46307C4.46746 6.61148 4.87891 6.50359 5.11644 6.19948L8.286 2.14145C8.62692 1.70497 9.28609 1.70155 9.63152 2.13448L12.8826 6.20914C13.1213 6.5082 13.5292 6.61291 13.8823 6.46576L16.2158 5.4935C16.8215 5.24109 17.4747 5.73524 17.3965 6.38683L16.3763 14.8879C16.3246 15.3187 15.9592 15.6429 15.5253 15.6429Z",fill:"url(#paint0_linear_291_69)"}),r.createElement("path",{d:"M13.6512 8.21462H9.42845C9.19176 8.21462 8.99988 8.02275 8.99988 7.78605V2.50765C8.99988 2.10253 9.51003 1.92358 9.76311 2.23993L13.9858 7.51832C14.2103 7.79894 14.0105 8.21462 13.6512 8.21462Z",fill:"url(#paint1_linear_291_69)",style:{mixBlendMode:"overlay"}}),r.createElement("path",{d:"M8.79919 9.90656L5.85506 8.34528C5.43691 8.12353 5.02085 8.64346 5.32887 9.00282L8.67458 12.9061C8.84562 13.1057 9.15433 13.1057 9.32537 12.9061L12.6711 9.00282C12.9791 8.64346 12.563 8.12353 12.1449 8.34528L9.20076 9.90656C9.07518 9.97315 8.92476 9.97315 8.79919 9.90656Z",fill:"url(#paint2_linear_291_69)"}),r.createElement("path",{d:"M8.77219 9.89224L5.85506 8.34528C5.43691 8.12353 5.02085 8.64346 5.32887 9.00282L8.62299 12.846C8.75246 12.997 8.99997 12.9054 8.99997 12.7065V10.2709C8.99997 10.1122 8.91234 9.96657 8.77219 9.89224Z",fill:"url(#paint3_linear_291_69)"}),r.createElement("defs",null,r.createElement("linearGradient",{id:"paint0_linear_291_69",x1:"5.35716",y1:"0.64291",x2:"13.7771",y2:"17.8378",gradientUnits:"userSpaceOnUse"},r.createElement("stop",{offset:"0.166018",stopColor:"#4EF29D"}),r.createElement("stop",{offset:"0.649716",stopColor:"#09C761"}),r.createElement("stop",{offset:"0.932292",stopColor:"#1AB866"})),r.createElement("linearGradient",{id:"paint1_linear_291_69",x1:"10.9173",y1:"7.39446",x2:"9.71118",y2:"1.68137",gradientUnits:"userSpaceOnUse"},r.createElement("stop",{stopColor:"white",stopOpacity:"0"}),r.createElement("stop",{offset:"1",stopColor:"#C7FFE2"})),r.createElement("linearGradient",{id:"paint2_linear_291_69",x1:"9",y1:"8",x2:"8.55235",y2:"13.2476",gradientUnits:"userSpaceOnUse"},r.createElement("stop",{stopColor:"white"}),r.createElement("stop",{offset:"1",stopColor:"#9BE8C0"})),r.createElement("linearGradient",{id:"paint3_linear_291_69",x1:"7.0714",y1:"9.8572",x2:"8.5374",y2:"12.768",gradientUnits:"userSpaceOnUse"},r.createElement("stop",{stopColor:"white",stopOpacity:"0.7"}),r.createElement("stop",{offset:"1",stopColor:"white"}))))})},40011:(Qn,qe,s)=>{"use strict";s.d(qe,{A:()=>M});var r=s(38502),I=Object.defineProperty,J=Object.defineProperties,N=Object.getOwnPropertyDescriptors,T=Object.getOwnPropertySymbols,te=Object.prototype.hasOwnProperty,q=Object.prototype.propertyIsEnumerable,ne=(w,y,j)=>y in w?I(w,y,{enumerable:!0,configurable:!0,writable:!0,value:j}):w[y]=j,B=(w,y)=>{for(var j in y||(y={}))te.call(y,j)&&ne(w,j,y[j]);if(T)for(var j of T(y))q.call(y,j)&&ne(w,j,y[j]);return w},l=(w,y)=>J(w,N(y)),U=(w,y)=>{var j={};for(var Q in w)te.call(w,Q)&&y.indexOf(Q)<0&&(j[Q]=w[Q]);if(w!=null&&T)for(var Q of T(w))y.indexOf(Q)<0&&q.call(w,Q)&&(j[Q]=w[Q]);return j},M=(0,r.forwardRef)((w,y)=>{var j=w,{size:Q,spin:ze,style:me}=j,Se=U(j,["size","spin","style"]);const Me=B(B({width:Q||"var(--x-icon-size, 1em)",height:Q||"var(--x-icon-size, 1em)",animation:ze?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),me);return r.createElement("svg",l(B({ref:y,style:Me},Se),{width:"51",height:"17",viewBox:"0 0 51 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),r.createElement("rect",{x:"0.25",y:"0.25",width:"50.5",height:"16.5",rx:"4.25",fill:"url(#paint0_linear_291_87)"}),r.createElement("rect",{x:"0.25",y:"0.25",width:"50.5",height:"16.5",rx:"4.25",fill:"url(#paint1_linear_291_87)",fillOpacity:"0.5"}),r.createElement("rect",{x:"0.25",y:"0.25",width:"50.5",height:"16.5",rx:"4.25",fill:"url(#paint2_linear_291_87)",fillOpacity:"0.8"}),r.createElement("rect",{x:"0.25",y:"0.25",width:"50.5",height:"16.5",rx:"4.25",stroke:"url(#paint3_linear_291_87)",strokeWidth:"0.5"}),r.createElement("path",{d:"M7.87 7.19C9.81 6.37 11.2 5.21 11.96 4H13.04C13.88 5.33 15.22 6.37 17.13 7.15L16.84 8.27C14.81 7.42 13.44 6.45 12.5 5.19C11.55 6.44 10.17 7.41 8.16 8.27L7.87 7.19ZM13.12 13H11.88V7.27H13.12V13ZM22.8 5.76C22.95 8.18 24.16 10.03 26.8 11.74L26.46 13.01C24.34 11.72 22.95 10.17 22.23 8.36C21.52 10.13 20.12 11.68 17.94 13.01L17.6 11.74C20.61 9.87 21.58 7.76 21.58 5.21V4H22.82V5.21C22.82 5.39 22.81 5.58 22.8 5.76Z",fill:"#7E2203"}),r.createElement("path",{d:"M30.7256 12.5L27.6792 4.5928H29.5608L31.8792 10.988H31.1064L33.4584 4.5928H35.3176L32.2376 12.5H30.7256ZM35.746 12.5V4.5928H37.5044V12.5H35.746ZM39.8712 9.6216V8.2552H41.5736C41.7902 8.2552 41.988 8.2104 42.1672 8.1208C42.3464 8.0312 42.4883 7.90053 42.5928 7.7288C42.6974 7.55707 42.7496 7.348 42.7496 7.1016C42.7496 6.86267 42.6974 6.65733 42.5928 6.4856C42.4883 6.31387 42.3464 6.1832 42.1672 6.0936C41.988 6.004 41.7902 5.9592 41.5736 5.9592H39.8712V4.5928H41.8312C42.3315 4.5928 42.7832 4.6936 43.1864 4.8952C43.5896 5.0968 43.907 5.388 44.1384 5.7688C44.3774 6.14213 44.4968 6.5864 44.4968 7.1016C44.4968 7.6168 44.3774 8.0648 44.1384 8.4456C43.907 8.81893 43.5896 9.11013 43.1864 9.3192C42.7832 9.5208 42.3315 9.6216 41.8312 9.6216H39.8712ZM38.5272 12.5V4.5928H40.2856V12.5H38.5272Z",fill:"#7E2203"}),r.createElement("defs",null,r.createElement("linearGradient",{id:"paint0_linear_291_87",x1:"50.5",y1:"8.5",x2:"18.6073",y2:"-9.04453",gradientUnits:"userSpaceOnUse"},r.createElement("stop",{stopColor:"#FFE6DD"}),r.createElement("stop",{offset:"1",stopColor:"#FFBEA9"})),r.createElement("linearGradient",{id:"paint1_linear_291_87",x1:"0.500001",y1:"18.7222",x2:"13.8428",y2:"11.2975",gradientUnits:"userSpaceOnUse"},r.createElement("stop",{stopColor:"#D55C81"}),r.createElement("stop",{offset:"1",stopColor:"#D55C81",stopOpacity:"0"})),r.createElement("linearGradient",{id:"paint2_linear_291_87",x1:"4.54412",y1:"0.5",x2:"9.2775",y2:"9.57088",gradientUnits:"userSpaceOnUse"},r.createElement("stop",{stopColor:"white"}),r.createElement("stop",{offset:"1",stopColor:"white",stopOpacity:"0"})),r.createElement("linearGradient",{id:"paint3_linear_291_87",x1:"51.2353",y1:"7.5",x2:"0.498777",y2:"7.22966",gradientUnits:"userSpaceOnUse"},r.createElement("stop",{stopColor:"#FFE7DE"}),r.createElement("stop",{offset:"1",stopColor:"#FFBEA9"}))))})},40191:(Qn,qe,s)=>{"use strict";s.d(qe,{D:()=>Na});var r=s(95549),I=s(38502),J=s(18381),N=s(12211),T=s(60651),te=s(67588),q=s(78915),ne=s(53732),B=s.n(ne),l=s(83199),U=s(62118),C=s(17307),M=s(67052),w=s(70933),y=s(28173),j=s(10472),Q=s(78257),ze=s(56202),me=s(20014),Se=s(53940),Me=s(15515),De=s(93413),tt=s(94590),at=s(88670),ht=s(8228),Je=s(46905),$=s(67787);const mt=$.Ay.div.withConfig({displayName:"styles__StyledRecommendNav",componentId:"sc-3kb17s-0"})(["position:absolute;left:105%;bottom:32px;width:28px;height:28px;display:flex;justify-content:center;align-items:center;cursor:pointer;background:",";border-radius:4px;z-index:4;transition:all 0.2s ease-in-out;box-shadow:0px 2px 6px rgba(0,0,0,0.08);&:hover{background:",";}.toggle-btn{color:",";&.isToggle{transform:rotate(180deg);}}"],Tt=>Tt.theme.color_bg_white,Tt=>Tt.theme.color_btn_secondary_active,Tt=>Tt.theme.color_text_L2),yt=$.Ay.div.withConfig({displayName:"styles__StyledLeftNav",componentId:"sc-3kb17s-1"})(["width:","px;height:100%;padding:6px 0;display:flex;flex-direction:column;align-items:center;justify-content:space-between;background:",";border-right:1px solid ",";.left-nav-top{position:relative;width:100%;display:flex;flex-direction:column;align-items:center;}ul.catalog-list{width:100%;display:flex;flex-direction:column;align-items:center;li{width:38px;height:52px;border-radius:6px;display:flex;flex-direction:column;align-items:center;cursor:pointer;position:relative;color:",";.item-label{font-size:12px;font-weight:400;line-height:12px;white-space:nowrap;}.item-icon{width:32px;height:32px;}&.builtin{.item-icon{path{stroke:",";}}&.active{.item-icon{path{fill:",";stroke:none;}}}&.disabled{.item-icon{path{stroke:",";}}&.active{.item-icon{path{fill:",";stroke:none;}}}}}&.active{background:",";}&.disabled{color:",";cursor:not-allowed;}&:not(.active):not(.disabled):hover{background:",";}&:not(.active):not(.disabled):active{background:",";}&:not(:first-child){margin-top:8px;}}}.set-layout-dropdown{width:24px;height:24px;border-radius:4px;margin-bottom:4px;color:",";&:hover{background-color:",";}&.is-open{background-color:",";}.more-icon{cursor:pointer;width:24px;}}.toggle-btn{width:32px;height:32px;display:flex;align-items:center;justify-content:center;cursor:pointer;&.isToggle{svg.svg-icon{transform:rotate(180deg);}}svg.svg-icon{width:32px;height:32px;path{fill:",";}&:hover{path{fill:",";}}&:active{path{fill:",";}}}}"],Se.fn,Tt=>Tt.theme.color_bg_white,Tt=>Tt.theme.color_bg_border_01,Tt=>Tt.theme.color_text_L1,Tt=>Tt.theme.color_text_L1,Tt=>Tt.theme.color_text_L1,Tt=>Tt.theme.color_text_disabled01,Tt=>Tt.theme.color_text_disabled01,Tt=>Tt.theme.color_navigation_active,Tt=>Tt.theme.color_text_disabled01,Tt=>Tt.theme.color_navigation_active,Tt=>Tt.theme.color_navigation_active,Tt=>Tt.theme.color_text_L1,Tt=>Tt.theme.color_btn_secondary_active,Tt=>Tt.theme.color_btn_secondary_active,Tt=>Tt.theme.color_text_L1,Tt=>Tt.theme.color_interaction_text_area,Tt=>Tt.theme.color_proto),Le=(0,$.DU)(["ul.set-layout-dropdown-menu{position:absolute;top:-72px;}#IBOT_TOOLTIP_ROOT{.nav-item-tooltip.on-right{transform:translate(-5px,-50%);}.nav-item-tooltip.on-right.is-open{transform:translate(-5px,-50%);}}"]);var He=s(8342),ye=s(47695),je=s(70812),ot=s(99863),we=s(72214);const $e=(0,N.Mz)([M.Xf,M.OW,T.T7,j.r,y.C,te.bP,w.PL,w.HW,te.MZ],(Tt,mn,Rn,gn,Tn,wo,io,fo,co)=>{let{isEditingCombo:ga,isEditingMuban:Fo,isEditingBasket:Eo}=gn,{isEmptyScreen:Oa}=Tn;return{currentPopupPanel:mn,isLeftPanelShow:Tt,fullScreenMode:Rn,isEditingBasket:Eo||Fo,isEditingCombo:ga,isEmptyScreen:Oa,layout:wo,rootProject:io,currentUser:fo,layoutV9:co}}),ge=()=>{const{currentPopupPanel:Tt,isLeftPanelShow:mn,fullScreenMode:Rn,isEditingBasket:gn,isEditingCombo:Tn,isEmptyScreen:wo,layout:io,rootProject:fo,currentUser:co,layoutV9:ga}=(0,J.d4)(or=>$e(or)),Fo=(0,I.useRef)(),Eo=(0,I.useRef)(!1),Oa=(0,J.wA)(),Ra=(0,I.useMemo)(()=>[{key:Q.lS.Directory,label:I18N.LeftSidePanel.directory,icon:"left_panel/nav/directory",shortCut:U.lk["catalogue_"+((0,ze.cX)()?"mac":"win")]},{key:Q.lS.Builtin,label:I18N.LeftSidePanel.widget,icon:"left_panel/nav/builtin",shortCut:"1",isColorPure:!0},{key:Q.lS.Page,label:I18N.LeftSidePanel.screens,icon:"left_panel/nav/page",shortCut:"2"},{key:Q.lS.Icon,label:I18N.LeftSidePanel.icon,icon:"left_panel/nav/icon",shortCut:"3"},{key:Q.lS.Asset,label:I18N.LeftSidePanel.image,icon:"left_panel/nav/asset",shortCut:"4"},{key:Q.lS.Template,label:I18N.LeftSidePanel.master,icon:"left_panel/nav/template",shortCut:"5"}],[]),tr=(0,I.useMemo)(()=>[{key:Q.lS.Directory,label:I18N.LeftSidePanel.directory,icon:"left_panel/nav/directory",shortCut:U.lk["catalogue_"+((0,ze.cX)()?"mac":"win")]},{key:Q.lS.Builtin,label:I18N.LeftSidePanel.widget,icon:"left_panel/nav/builtin",shortCut:"1",isColorPure:!0},{key:Q.lS.Icon,label:I18N.LeftSidePanel.icon,icon:"left_panel/nav/icon",shortCut:"2"},{key:Q.lS.Asset,label:I18N.LeftSidePanel.image,icon:"left_panel/nav/asset",shortCut:"3"},{key:Q.lS.Template,label:I18N.LeftSidePanel.master,icon:"left_panel/nav/template",shortCut:"5"}],[]),Ar=(0,I.useMemo)(()=>[{key:Q.lS.Directory,label:I18N.LeftSidePanel.directory,icon:"left_panel/nav/directory",shortCut:U.lk["catalogue_"+((0,ze.cX)()?"mac":"win")]},{key:Q.lS.Builtin,label:I18N.LeftSidePanel.widget,icon:"left_panel/nav/builtin",shortCut:"1",isColorPure:!0},{key:Q.lS.Icon,label:I18N.LeftSidePanel.icon,icon:"left_panel/nav/icon",shortCut:"2"},{key:Q.lS.Asset,label:I18N.LeftSidePanel.image,icon:"left_panel/nav/asset",shortCut:"3"}],[]);(0,I.useEffect)(()=>{var or,Ba;const Ja=(0,ye.XM)();return ga==="recommend"&&!Ja&&!((or=MB.commonGuideHelper)!=null&&or.checkGuideHasShown(De.c.GUIDE_NOVICE_V9_2408))&&!((Ba=MB.commonGuideHelper)!=null&&Ba.checkGuideHasShown(De.c.GUIDE_NOVICE_V9_2408_STEP_1))&&setTimeout(()=>{Tt!==Q.lS.Builtin&&Oa({type:"entry:active:popup:panel",payload:{name:Q.lS.Builtin}})},0),Tt===Q.lS.Template&&ga==="recommend"&&(0,He.c)(I18N)[De.c.GUIDE_2506_LIB_INTERGRATED].howToShow({currentUser:co}),()=>{ga==="recommend"&&MB.commonGuideHelper.closeGuide(De.c.GUIDE_2506_LIB_INTERGRATED)}},[]);const nr=(0,I.useMemo)(()=>{const or=!!(co!=null&&co.id);return gn?tr:Tn?Ar:Ra},[gn,Tn,co==null?void 0:co.id]),$a=()=>Oa({type:"entry:toggle:left-nav-panel"}),Rr=or=>{if(Eo.current)return;const Ba=(0,Je.gu)();if(or===Q.lS.AI&&Ba){Oa({type:at.X.AIOpenModal,payload:{type:ht.SR.AIAssistant}}),(0,tt.kX)({operation_type:tt.bZ[or]});return}if(or===Q.lS.Template?(0,He.c)(I18N)[De.c.GUIDE_2506_LIB_INTERGRATED].howToShow({currentUser:co}):(MB.commonGuideHelper.markGuideAsRead(De.c.GUIDE_2506_LIB_INTERGRATED),MB.commonGuideHelper.closeGuide(De.c.GUIDE_2506_LIB_INTERGRATED)),Tt!==or){Oa({type:"entry:toggle:left-nav-panel",payload:{isAlwaysShow:!0}});const Za=io==="old_right"?Se.sR:Se.Cj;or===Q.lS.Directory?Oa({type:"left-panel:set:width",payload:{width:(0,Me.Yt)("layer_left_panel_width_"+fo.cid,Za,Me.qW.Number),isNotSaveLocal:!0}}):Oa({type:"left-panel:set:width",payload:{width:Za,isNotSaveLocal:!0}}),Oa({type:"entry:active:popup:panel",payload:{name:or}})}else Oa({type:"entry:toggle:left-nav-panel"});if((0,tt.kX)({operation_type:tt.bZ[or]}),or===Q.lS.Template){var Ja;je.U4.protoMasterClickTrack((Ja=MB)==null||(Ja=Ja.user)==null?void 0:Ja.id)}};return Rn?(0,we.jsx)(mt,{onClick:$a,children:(0,we.jsx)(C.C,{size:28,className:B()("toggle-btn",{isToggle:!mn}),name:"left_panel/nav/arrow"})}):(0,we.jsxs)(yt,{children:[(0,we.jsx)("div",{className:"left-nav-top",children:(0,we.jsxs)("ul",{className:B()("catalog-list",De.c.GUIDE_MORE_PAGE),children:[nr.map(or=>{let{key:Ba,label:Ja,icon:Za,shortCut:Nr,isColorPure:ii=!1}=or;const Ci=Nr?(0,l.u)({text:Ba===Q.lS.AI?I18N.LeftSidePanel.ai_label:Ja,key:Nr}):Ja,Zi=wo&&![Q.lS.Directory].includes(Ba),Zr=mn&&Tt===Ba;return(0,we.jsx)(l.A,{content:Ci,direction:"right",tipClassName:"nav-item-tooltip",distance2:5,children:(0,we.jsxs)("li",{className:B()(Ba,{active:Zr},{disabled:Zi}),onClick:Zi?null:()=>Rr(Ba),children:[(0,we.jsx)(C.C,{className:"item-icon",name:Zr?Za+"/selected":Za,isColorPure:ii}),(0,we.jsx)("span",{className:"item-label",children:Ja})]})},Ba)}),(0,we.jsx)(l.A,{content:I18N.WorkspaceGuidePane.tool,direction:"right",tipClassName:"nav-item-tooltip",distance2:5,children:(0,we.jsx)(ot.j,{})})]})}),(0,we.jsx)(me.e,{layout:io}),(0,we.jsx)(Le,{})]})};var Ze=s(62532),W=s(74923),an=s(5352),_t=s(39e3),nn=s(64639),Oe=s(21066),sn=s(88856),It=s(65575),Pt=s(85584),dt=s(66361),Vn=s(20089),o=s(61893),Gn=s(53008),xt=s(43641),Ot=s(81122),wt=s(85449);const Kt=(0,$.Ay)(Oe.Ay).withConfig({displayName:"styles__StyledContextMenu",componentId:"sc-1p3afdo-0"})(["&.mb-screen-context-menu{ul{min-width:176px;padding:8px;}ul{border-radius:8px;border:1px solid ",";color:",";background:",";box-shadow:",";li.MenuItem{a{border-radius:4px;background:",";color:",";svg path{fill:",";}.right-arrow svg > path{fill:",";}.shortfont kbd{color:",";}}&:not(.disabled).active{a{background:",";}}&.disabled{a{color:",";svg path{fill:",";}.shortfont kbd{color:",";}}}}}.SubMenu{min-width:160px;max-width:152px;position:absolute;&:lang(en){max-width:200px;}li.MenuItem{position:relative;width:100%;> a{padding-left:16px;align-items:stretch;span{display:inline-block;width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;&.text{line-height:28px;}}}}}}"],Tt=>Tt.theme.color_bg_border_01,Tt=>Tt.theme.color_text_L1,Tt=>Tt.theme.color_bg_white,Tt=>Tt.theme.shadow_m,Tt=>Tt.theme.color_bg_white,Tt=>Tt.theme.color_text_L1,Tt=>Tt.theme.color_text_L1,Tt=>Tt.theme.color_text_L3,Tt=>Tt.theme.color_text_L3,Tt=>Tt.theme.color_btn_secondary_hover,Tt=>Tt.theme.color_text_disabled01,Tt=>Tt.theme.color_text_disabled01,Tt=>Tt.theme.color_text_disabled01);var fe=s(15400);const bt=Tt=>{const mn=io=>sdkStore.getHotItem(io),Rn=io=>{let fo=0,co=io;for(;co!=="B@main";){const ga=mn(co);if(!ga)return-1;fo++,co=ga.sup}return fo},gn=io=>{const fo=mn(io);if(!fo||fo.hotAttr.asFolder===!1)return 0;let co=0;for(const ga of fo.sub){const Fo=gn(ga);Fo>co&&(co=Fo)}return co+1},Tn=Rn(Tt),wo=gn(Tt);return{rootToTargetDepth:Tn,targetSubtreeDepth:wo}};class un extends I.PureComponent{render(){const{position:mn,screenTreeData:Rn,screenDataMap:gn,screenSelection:Tn,onMouseLeave:wo,actionProps:io,screenMeta:fo,isEditingCombo:co,isEditingProjectMain:ga,currentProject:Fo,isMultiplePage:Eo}=this.props;return(0,we.jsx)(Kt,{className:B()("mb-screen-context-menu"),position:mn,onClose:wo,children:(0,we.jsx)(gt,{isSelectedSingle:!0,contextScreenSelection:[fo.cid],onMouseLeave:wo,screenTreeData:Rn,screenDataMap:gn,screenSelection:Tn,isEditingProjectMain:ga,currentProject:Fo,isEditingCombo:co,isMultiplePage:Eo,...io})})}}const gt=Tt=>{let{isSelectedSingle:mn,onCreateNewScreenMetaChild:Rn,onCreateNewScreenMetaPrevSibling:gn,onCreateNewScreenMetaNextSibling:Tn,onCreateNewScreenFolderNextSibling:wo,onCreateNewScreenFolderPrevSibling:io,onNewScreenFolderChild:fo,onUpdateScreenLevel:co,onDup:ga,onTransfer:Fo,onDel:Eo,onExportPng:Oa,onSingleSelect:Ra,onRename:tr,selectNotMoveDownScreenSet:Ar,selectNotMoveUpScreenSet:nr,isNotUpgrade:$a,isNotDownGrade:Rr,contextScreenSelection:or,screenTreeData:Ba,screenDataMap:Ja,screenSelection:Za,currentProject:Nr,isEditingProjectMain:ii,isEditingCombo:Ci,isMultiplePage:Zi}=Tt;const Zr=Ja[or[0]];if(!Zr)return null;const Hi=or.every(Ha=>Ja[Ha].hotAttr.asFolder),yr=Zi&&(!mn||mn&&Za.length===1&&Zr.key===Za[0]),$r=Ha=>{Ha.preventDefault(),Rn(mn?Zr:null)},os=Ha=>{Ha.preventDefault(),gn(mn?Zr:null)},pt=Ha=>{Ha.preventDefault(),Tn(mn?Zr:null)},Ee=Ha=>{Ha.preventDefault(),io(mn?Zr:null)},Ue=Ha=>{Ha.preventDefault(),wo(mn?Zr:null)},ke=Ha=>{Ha.preventDefault(),fo(mn?Zr:null)},Ve=function(Ha,Br){Br===void 0&&(Br=1),Ha.preventDefault(),co(mn?Zr:null,Br)},st=Ha=>{Ha.preventDefault(),ga(mn?Zr:null,yr)},ut=Ha=>{Ha.preventDefault(),Fo(mn?Zr:null,yr)},Rt=Ha=>{Ha.preventDefault(),Eo(mn?Zr:null,yr)},en=Ha=>{Ha.preventDefault(),!MB.global.experienceLoginModalHelper("isSave")&&(mn&&Ra(mn?Zr:null),Oa())},Xt=()=>{tr(Zr)},Zn=Ha=>async Br=>{if(Br.preventDefault(),MB.global.experienceLoginModalHelper("isSave"))return;if(!1)MB.action("modal:update:state",{rightsAndInterestsModal:{isOpen:!0,type:o.hC.MaxSharingCount,isFromScreenList:!0,project:Nr}});else{var xi,Fr;let Fi;const Ii=or[0];Ha==="curPage"?Fi=or:Ha==="curPageWithChid"||Ha==="selectedMultiPage"?Fi=Array.from(new Set([...or,...(0,Pt.he)(or,Ba)])):Ha==="curFolderWithChid"?Fi=or:Ha==="allPage"&&(Fi=[]);const Ks=Zr.hotAttr.name;let Ul="\u5206\u4EAB";Fi.length===1?Ul=""+Ks:Fi.length>1&&(Ul=Ks+"...\u7B49"+Fi.length+"\u4E2A\u9875\u9762"),Fi=(0,Gn.Uh)(Fi);const ts=(0,Me.Yt)(Nr.cid+"_default_sharing_view_mode","read_only",Me.qW.String),rn=(0,Gn.CV)({accessToken:Nr.access_token,view_mode:ts,selection:null,pageKey:Ii}),Ft=(0,Gn.R_)(rn,MB.getRootProject().name,Ul,"");(0,xt.$)(Ft);const Sn=(0,wt.dP)();(Sn==null||(xi=Sn.current)==null||(xi=xi.importAbarOptions)==null?void 0:xi.isFromAbar)&&(0,Ot.M2)()?MB.notice({text:"\u5206\u4EAB\u94FE\u63A5\u5DF2\u590D\u5236",duration:5e3}):MB.notice({text:I18N.ScreenPanel.copy_share_url_success,CustomChildComponent:sn.pU,duration:5e3}),je.U4.protoEditorShareTrack((Fr=MB)==null||(Fr=Fr.user)==null?void 0:Fr.id,"\u753B\u5E03\u53F3\u952E\u5206\u4EAB")}};let bo,Po,ha,xa,da,Ko,Fa=!1,Pa=!1,sr=!1,vr=!1;if(mn){var Or,Tr,Kr;const{sup:Ha}=Zr,Br=(0,Pt.BS)(Zr);bo=((Or=Br[(Br==null?void 0:Br.length)-1])==null?void 0:Or.cid)===Zr.key;const Gi=(0,Pt.c$)(Zr),xi=(0,Pt.zK)(Zr.key);da=xi<7;const Fr=4;Po=((Tr=Br[0])==null?void 0:Tr.cid)===(Zr==null?void 0:Zr.key),xa=xi-1+Gi===7||Po,ha=((Kr=sdkStore.getHotItem(Ha))==null?void 0:Kr.hotAttr.bunch)!==Vn.x.RbPage,Fa=(0,Pt.Mo)(Zr);const Fi=Br.findIndex(Ul=>Ul.cid===Zr.key),{rootToTargetDepth:Ii,targetSubtreeDepth:Ks}=bt(Zr.key);sr=Ii+Ks>Fr||Po||!(0,Pt.Mo)(Br[Fi-1]),Pa=Ha==="B@main",vr=xi<Fr,(0,Pt.Mo)(Zr)?Ko="curFolderWithChid":(Ha==null?void 0:Ha.length)>0?Ko="curPageWithChid":Ko="curPage"}else bo=Array.from(Ar||[]).length===or.length,Po=Array.from(nr||[]).length===or.length,ha=$a,xa=Rr||Po,Ko="selectedMultiPage";return(0,we.jsxs)(we.Fragment,{children:[!Zi&&mn&&!Ci&&(0,we.jsxs)(Oe.Dr,{text:I18N.ContextMenu.add,isAiry:!0,children:[(0,we.jsx)(Oe.Dr,{text:I18N.ContextMenu.sub_page,disabled:!da,onClick:$r}),(0,we.jsx)(Oe.Dr,{text:I18N.ContextMenu.add_page_above,onClick:os}),(0,we.jsx)(Oe.Dr,{text:I18N.ContextMenu.add_page_below,onClick:pt}),(0,we.jsx)(Oe.Dr,{text:I18N.ContextMenu.sub_folder,disabled:!da,onClick:ke})]}),!Zi&&mn&&Ci&&Ci&&Fa&&(0,we.jsxs)(Oe.Dr,{text:I18N.ContextMenu.add,isAiry:!0,children:[(0,we.jsx)(Oe.Dr,{text:I18N.Resources.combo_panel.add_folder_above,onClick:Ee}),(0,we.jsx)(Oe.Dr,{text:I18N.Resources.combo_panel.add_folder_below,onClick:Ue}),(0,we.jsx)(Oe.Dr,{text:I18N.ContextMenu.sub_folder,disabled:!vr,onClick:ke})]}),(0,we.jsxs)(Oe.Dr,{text:I18N.ContextMenu.move,isAiry:!0,children:[(0,we.jsx)(Oe.Dr,{text:I18N.ContextMenu.move_up,disabled:Po,onClick:Ha=>Ve(Ha,dt.$.MOVEUP)}),(0,we.jsx)(Oe.Dr,{text:I18N.ContextMenu.move_down,disabled:bo,onClick:Ha=>Ve(Ha,dt.$.MOVEDOWN)}),Ci&&Fa&&(0,we.jsx)(Oe.Dr,{text:I18N.ContextMenu.upgrade,disabled:Pa,onClick:Ha=>Ve(Ha,dt.$.UPGRADE)}),Ci&&Fa&&(0,we.jsx)(Oe.Dr,{text:I18N.ContextMenu.downgrade,disabled:sr,onClick:Ha=>Ve(Ha,dt.$.DOWNGRADE)}),!Ci&&(0,we.jsx)(Oe.Dr,{text:I18N.ContextMenu.upgrade,disabled:ha,onClick:Ha=>Ve(Ha,dt.$.UPGRADE)}),!Ci&&(0,we.jsx)(Oe.Dr,{text:I18N.ContextMenu.downgrade,disabled:xa,onClick:Ha=>Ve(Ha,dt.$.DOWNGRADE)})]}),(0,we.jsx)(Oe.Dr,{text:I18N.ContextMenu.duplicate,onClick:st}),!Ci&&(0,we.jsx)(Oe.Dr,{text:I18N.ContextMenu.move_to,onClick:ut,canClick:!0}),!Zi&&mn&&(0,we.jsxs)(we.Fragment,{children:[(0,we.jsx)(Oe.Dr,{text:I18N.ContextMenu.rename,onClick:Xt}),!Ci&&(0,we.jsx)(fe.cG,{})]}),(0,we.jsx)(Oe.Dr,{text:I18N.ContextMenu.delete,onClick:Rt}),(mn&&(Zr==null?void 0:Zr.orientation)!=="folder"||!mn)&&!Ci&&ii&&(0,we.jsxs)(we.Fragment,{children:[(0,we.jsx)(fe.cG,{}),(0,we.jsx)(Oe.Dr,{text:I18N.ContextMenu.export_to_png,onClick:en,disabled:Hi})]}),!Zi&&(mn||Ko==="curFolderWithChid")&&!Ci&&(0,we.jsxs)(we.Fragment,{children:[(0,we.jsx)(fe.cG,{}),Ko==="curFolderWithChid"?(0,we.jsx)(It.$m,{text:I18N.ContextMenu.copy_share_link,tips:I18N.ContextMenu.include_all_paged,onClick:Zn("allPage")}):(0,we.jsx)(It.$m,{text:I18N.ContextMenu.copy_share_link,tips:I18N.ContextMenu.share_link_browsing_from_current_page,onClick:Zn("allPage")})]})]})},Wt=Tt=>{let{screenMeta:mn,screenTreeData:Rn}=Tt;return(0,Pt.Bq)((mn==null?void 0:mn.sup)||"B@main",Rn).children.findIndex(Tn=>Tn.cid===(mn==null?void 0:mn.key))+1},Un=Tt=>{let{screenSelection:mn,screenDataMap:Rn,screenTreeData:gn}=Tt;const Tn=new Set,io=mn.map(co=>Rn[co]).filter(co=>co==null?void 0:co.key).sort((co,ga)=>co.hotAttr.zIndex-ga.hotAttr.zIndex);return io.forEach(co=>{Wt({screenMeta:co,screenTreeData:gn})<=1&&Tn.add(co==null?void 0:co.key)}),io.filter(co=>{let{key:ga}=co;return!Tn.has(ga)}).forEach(co=>{var ga;const Fo=(0,Pt.Bq)((co==null?void 0:co.sup)||"B@main",gn),Eo=Fo.children.findIndex(Oa=>Oa.cid===(co==null?void 0:co.key))+1;Tn.has((ga=Fo.children[Eo-1-1])==null?void 0:ga.cid)&&Tn.add(co==null?void 0:co.key)}),Tn},Jn=Tt=>{let{screenSelection:mn,screenDataMap:Rn,screenTreeData:gn}=Tt;const Tn=new Set,io=mn.map(co=>Rn[co]).filter(co=>co==null?void 0:co.key).sort((co,ga)=>ga.hotAttr.zIndex-co.hotAttr.zIndex);return io.forEach(co=>{const ga=(0,Pt.Bq)((co==null?void 0:co.sup)||"B@main",gn);ga.children.findIndex(Eo=>Eo.cid===(co==null?void 0:co.key))+1>=ga.children.length&&Tn.add(co==null?void 0:co.key)}),io.filter(co=>{let{key:ga}=co;return!Tn.has(ga)}).forEach(co=>{var ga;const Fo=(0,Pt.Bq)((co==null?void 0:co.sup)||"B@main",gn),Eo=Fo.children.findIndex(Oa=>Oa.cid===(co==null?void 0:co.key))+1;Tn.has((ga=Fo.children[Eo])==null?void 0:ga.cid)&&Tn.add(co==null?void 0:co.key)}),Tn},Yt=Tt=>{let{screenSelection:mn,selectScreenMetaParentSet:Rn,screenDataMap:gn,screenTreeData:Tn,selectNotMoveUpScreenSet:wo}=Tt;const io=new Set;return mn.map(Eo=>gn[Eo]).filter(Eo=>Eo==null?void 0:Eo.key).forEach(Eo=>{const Oa=(0,Pt.Bq)(Eo==null?void 0:Eo.key,Tn),Ra=(0,Pt.QR)(Oa),tr=(0,Pt.zK)(Eo==null?void 0:Eo.key),Ar=Wt({screenMeta:Eo,screenTreeData:Tn});(tr-1+Ra===7||Ar===1)&&io.add(Eo.key)}),{isNotDownGrade:Array.from(Rn).filter(Eo=>!io.has(Eo)&&!wo.has(Eo)).length===0,selectNotDownGradeScreenSet:io}},rt=Tt=>{let{screenSelection:mn,screenDataMap:Rn,screenTreeData:gn}=Tt;const Tn=new Set,io=mn.map(fo=>Rn[fo]).filter(fo=>fo==null?void 0:fo.key).sort((fo,co)=>co.hotAttr.zIndex-fo.hotAttr.zIndex);return io.forEach(fo=>{(0,Pt.Bq)(fo.key,gn).children.length>=0&&Tn.add(fo.key)}),io.forEach(fo=>{(0,Pt.e7)(fo.key).forEach(ga=>{Tn.has(ga.key)&&Tn.delete(fo.key)})}),Tn},An=Tt=>{let{screenSelection:mn,screenDataMap:Rn,selectScreenMetaParentSet:gn}=Tt;const Tn=new Set;return mn.map(fo=>Rn[fo]).filter(fo=>fo==null?void 0:fo.key).forEach(fo=>{(!fo.sup||fo.sup==="B@main")&&Tn.add(fo.key)}),{isNotUpgrade:Tn.size===gn.size}};class Nt extends I.PureComponent{constructor(mn){var Rn;super(mn),Rn=this,(0,r.A)(this,"handleClose",()=>{this.props.dispatch({type:"screen:close:contextmenu"})}),(0,r.A)(this,"handleDelete",function(io,fo){fo===void 0&&(fo=!1);const{contextScreenSelection:co,dispatch:ga}=Rn.props;if(fo){ga({type:"entry:remove:screen:selection:del"});return}if(io){ga({type:"entry:remove:screen:check:del",payload:{screen:io}});return}ga({type:"entry:remove:screen:list:by:context_menu",payload:{screenSelection:co}})}),(0,r.A)(this,"handleUpdateScreenLevel",(io,fo)=>{const{dispatch:co}=this.props;co({type:"entry:update:screen_list:by:sort:direction",payload:{screenMeta:io,direction:fo}})}),(0,r.A)(this,"handleExportPng",()=>this.props.dispatch({type:"entry:toolbar:open:export_menu",payload:{open:!0}})),(0,r.A)(this,"handleTransfer",function(io,fo){fo===void 0&&(fo=!1);const{dispatch:co}=Rn.props;MB.global.experienceLoginModalHelper("isSave")||co({type:"entry:transfer:screen",payload:{screen:io,isScreenSelectionContextMenu:fo}})}),(0,r.A)(this,"handleOnDup",function(io,fo){fo===void 0&&(fo=!1);const{dispatch:co}=Rn.props;if(fo){co({type:"entry:dup:screen:selection",payload:{isScreenSelectionContextMenu:fo}});return}if(io){co({type:"entry:check:dup:screen:page:folder",payload:{screen:io}});return}co({type:"entry:check:dup:screen:page:folder:batch"})}),(0,r.A)(this,"handleCreateNewScreenMetaChild",io=>{const{dispatch:fo}=this.props;fo({type:"entry:create:screen:auto:to:root-project",payload:{isCreateChildren:!0,parentScreen:io}})}),(0,r.A)(this,"handleCreateNewScreenMetaNextSibling",io=>{const{dispatch:fo}=this.props;fo({type:"entry:create:screen:auto:to:root-project",payload:{parentScreen:io}})}),(0,r.A)(this,"handleCreateNewScreenMetaPrevSibling",io=>{const{dispatch:fo}=this.props;fo({type:"entry:create:screen:auto:to:root-project",payload:{parentScreen:io,direction:dt.$.MOVEDOWN}})}),(0,r.A)(this,"handleNewScreenFolderChild",io=>{const{dispatch:fo}=this.props;fo({type:"entry:create:screen_folder:auto:to:root-project",payload:{isCreateChildren:!0,parentScreenFolder:io}})}),(0,r.A)(this,"handleNewScreenFolderNextSibling",io=>{const{dispatch:fo}=this.props;fo({type:"entry:create:creeen_folder:auto:to:current_folder",payload:{isCreateNextSibling:!0,curScreenFolder:io}})}),(0,r.A)(this,"handleNewScreenFolderPrevSibling",io=>{const{dispatch:fo}=this.props;fo({type:"entry:create:creeen_folder:auto:to:current_folder",payload:{curScreenFolder:io}})}),(0,r.A)(this,"handleActiveScreenMeta",io=>{const{dispatch:fo}=this.props,{cid:co,key:ga}=io,Fo=co||ga;fo({type:"entry:memory:current:screen:offset:scale"}),fo({type:"entry:exit:edit:basket"}),fo({type:"entry:goto:project-alike",payload:{screenMetaCid:Fo}}),fo({type:"entry:memory:last:screenAndCanvas",payload:{screenMetaCid:Fo}}),fo({type:"screen:update:screen-selection",payload:{screenSelection:[Fo]}}),fo({type:"entry:activate:screen",payload:{screenCid:Fo}})}),(0,r.A)(this,"onRename",io=>{const{key:fo,hotAttr:co,sup:ga,sub:Fo}=io,Eo={cid:fo,...co,sup:ga,sub:Fo};this.handleActiveScreenMeta(Eo);const{dispatch:Oa}=this.props;Oa({type:"screen:update:editing-screen-cid",payload:{cid:Eo.cid}})});const{screenTreeData:gn,screenDataMap:Tn,contextScreenSelection:wo}=mn;if(wo.length>1){const io=rt({screenSelection:wo,screenDataMap:Tn,screenTreeData:gn}),fo=Un({screenTreeData:gn,screenSelection:wo,screenDataMap:Tn}),co=Jn({screenTreeData:gn,screenSelection:wo,screenDataMap:Tn}),{isNotUpgrade:ga}=An({screenSelection:wo,screenDataMap:Tn,selectScreenMetaParentSet:io});this.isNotUpgrade=ga;const{isNotDownGrade:Fo,selectNotDownGradeScreenSet:Eo}=Yt({screenSelection:wo,screenTreeData:gn,selectScreenMetaParentSet:io,screenDataMap:Tn,selectNotMoveUpScreenSet:fo});this.isNotDownGrade=Fo,this.props.dispatch({type:"screen:update:state",payload:{selectNotMoveUpScreenSet:fo,selectNotMoveDownScreenSet:co,selectNotDownGradeScreenSet:Eo,selectScreenMetaParentSet:io}})}}render(){const{position:mn,selectNotMoveUpScreenSet:Rn,selectNotMoveDownScreenSet:gn,screenTreeData:Tn,contextScreenSelection:wo,screenDataMap:io,currentProject:fo,isEditingProjectMain:co,isEditingCombo:ga,isMultiplePage:Fo,screenSelection:Eo}=this.props;return(0,we.jsx)(Kt,{className:B()("mb-screen-context-menu"),position:mn,onClose:this.handleClose,children:(0,we.jsx)(gt,{isSelectedSingle:wo.length===1,onUpdateScreenLevel:this.handleUpdateScreenLevel,onExportPng:this.handleExportPng,onDel:this.handleDelete,onTransfer:this.handleTransfer,onDup:this.handleOnDup,selectNotMoveUpScreenSet:Rn,selectNotMoveDownScreenSet:gn,isNotUpgrade:this.isNotUpgrade,isNotDownGrade:this.isNotDownGrade,contextScreenSelection:wo,screenTreeData:Tn,screenDataMap:io,screenSelection:Eo,onCreateNewScreenMetaChild:this.handleCreateNewScreenMetaChild,onCreateNewScreenMetaNextSibling:this.handleCreateNewScreenMetaNextSibling,onCreateNewScreenMetaPrevSibling:this.handleCreateNewScreenMetaPrevSibling,onCreateNewScreenFolderNextSibling:this.handleNewScreenFolderNextSibling,onCreateNewScreenFolderPrevSibling:this.handleNewScreenFolderPrevSibling,onNewScreenFolderChild:this.handleNewScreenFolderChild,onSingleSelect:this.handleActiveScreenMeta,onRename:this.onRename,currentProject:fo,isEditingProjectMain:co,isEditingCombo:ga,isMultiplePage:Fo})})}}const jt=(0,N.Mz)([W.I_,M.Hs,M.He,M.HA,W.ey,W.Xw,W.nF,M.WU,w.Ur,w.PL,j.r,w.fv],(Tt,mn,Rn,gn,Tn,wo,io,fo,co,ga,Fo,Eo)=>{let{isEditingProjectMain:Oa,isEditingCombo:Ra}=Fo,{isFromAbar:tr}=Eo;const{position:Ar,show:nr,contextScreenSelection:$a}=Tt,{cid:Rr}=co||{};return{show:nr,contextScreenSelection:$a,position:Ar,screenSelection:mn,screenDataMap:Rn,screenTreeData:gn,selectNotMoveUpScreenSet:Tn,selectNotMoveDownScreenSet:wo,selectNotDownGradeScreenSet:io,activeScreenMetaCid:Rr,currentProject:ga,isEditingProjectMain:Oa,isEditingCombo:Ra,isFromAbar:tr,isMultiplePage:fo}}),vn=Tt=>{let{show:mn,dispatch:Rn,position:gn,...Tn}=Tt;return mn&&(0,we.jsx)(Nt,{position:gn,dispatch:Rn,...Tn},String(gn.top)+String(gn.left))},Dt=(0,J.Ng)(Tt=>jt(Tt))(vn);var $t=s(31228),kn=s(30542),Kn=s(77533),dn=s(69874),ft=s(60121),Lt=s(78401);class bn extends I.PureComponent{constructor(){var mn;super(...arguments),mn=this,(0,r.A)(this,"state",{isMenuOpen:!1,position:{left:0,top:0}}),(0,r.A)(this,"setElementRef",Rn=>this.$element=Rn),(0,r.A)(this,"handleClickAction",Rn=>{Rn.stopPropagation(),this.handleToggle()}),(0,r.A)(this,"handleToggle",function(Rn){Rn===void 0&&(Rn=void 0);const{isMenuOpen:gn}=mn.state,{screenMeta:Tn,onToggle:wo}=mn.props,io=Rn!==void 0?Rn:!gn;mn.setState({isMenuOpen:io}),wo(io?Tn.cid:""),mn.handleSetPosition()}),(0,r.A)(this,"handleSetPosition",()=>{if(!this.$element)return;const Rn=this.$element.getBoundingClientRect();this.setState({position:{left:Rn.left+Rn.width,top:Rn.top}})}),(0,r.A)(this,"handleClickOutSide",Rn=>{let{target:gn}=Rn;const{isMenuOpen:Tn}=this.state;Tn&&(gn.closest(".MenuItem")||this.$element.contains(gn)||gn.closest(".action")||gn.closest(".settingScreenConfig")||gn.closest(".go-to-sharing")||this.handleToggle(!1))})}render(){const{screenMeta:mn,actionProps:Rn,screenTreeData:gn,screenDataMap:Tn,screenSelection:wo,isEditingCombo:io,isEditingProjectMain:fo,currentProject:co,isMultiplePage:ga}=this.props,{isMenuOpen:Fo,position:Eo}=this.state;return(0,we.jsxs)("div",{ref:this.setElementRef,className:B()("actions",{"is-active":Fo}),onClick:this.handleClickAction,children:[(0,we.jsx)(C.C,{className:"actions-ellipsis",name:"left_panel/screen_action_menu/min"}),Fo&&(0,we.jsx)(un,{screenMeta:mn,actionProps:Rn,position:Eo,onMouseLeave:()=>this.handleToggle(!1),screenTreeData:gn,screenDataMap:Tn,screenSelection:wo,isEditingProjectMain:fo,isEditingCombo:io,currentProject:co,isMultiplePage:ga}),(0,we.jsx)(_t.A,{target:document,onMouseDown:(0,_t.t)(this.handleClickOutSide,{capture:!0})})]})}}var Yn=s(69246),on=s(29078),yn=s(3876),lo=s(61068),qn=s(18654),Wn=s(86964),Nn=s(51090);const xn=(Tt,mn)=>{var Rn,gn;if(Tt.forceDarkTheme)switch(mn){case"workspace_dropdown_menu_shadow":return"0 2px 7px 0 rgba(0, 0, 0, 0.26), 0 12px 36px 0 rgba(0, 0, 0, 0.1)";case"color_proto":return"#1A70D8";case"interation_active_box_shadow":return"0 0 4px 0 rgba(41,141,248,0.50)";case"color_bg_select01":return"rgba(69, 157, 253, 0.5)";case"color_bg_select02":return"rgba(69, 157, 253, 0.3)";default:return((Rn=Wn.fm[mn])==null?void 0:Rn.value_dark)||((gn=qn.qY[mn])==null?void 0:gn.value)}return Tt.theme[mn]},Ye=(0,$.AH)(["position:relative;height:32px;width:100%;padding-left:14px;display:flex;align-items:center;border:1px solid transparent;color:",";font-size:12px;cursor:pointer;.expander{width:12px;margin-left:-12px;color:",";}.editable-span,.editable-name{margin-right:14px;line-height:24px;border-radius:2px;&.is-editing{border-bottom-color:transparent;}}.actions{display:none;height:100%;padding-left:6px;.Dropdown > button{display:flex;padding:8px 10px 8px 0;}.action{margin-right:6px;font-size:12px;color:",";&:hover{color:",";}}&.is-active{display:flex;align-items:center;color:",";}}&:hover{.actions{display:flex;align-items:center;}}&:hover,&.hover{color:",";background:",";}&.active{color:",";}"],Tt=>xn(Tt,"color_text_L2"),Tt=>xn(Tt,"color_text_disabled01"),Tt=>xn(Tt,"color_text_L2"),Tt=>xn(Tt,"color_text_L2"),Tt=>xn(Tt,"color_text_L1"),Tt=>xn(Tt,"color_text_L1"),Tt=>xn(Tt,"color_btn_secondary_hover"),Tt=>xn(Tt,"color_text_L1")),wn=$.Ay.div.withConfig({displayName:"styles__StyledScreenItem",componentId:"sc-121m7wg-0"})([""," .screen-checkbox{position:absolute;z-index:1;left:16px;}.expander{display:flex;align-items:center;justify-content:center;margin-left:-15px;width:14px;height:14px;margin-right:1px;pointer-events:all;.arrow-icon{color:#999;width:8px;&:not(.is-expand){transform:rotate(-90deg);}}}.screen-item-icon{display:flex;flex-shrink:0;justify-content:center;align-items:center;width:24px;height:24px;margin-right:2px;color:",";}.editable-span{flex:1;color:",";margin-right:0;border:none;",";&.show-circle{margin-right:16px;}span.highlight-keyword{font-weight:600;}}&[disabled]{opacity:0.4;pointer-events:none;}.actions{padding:0;margin-right:4px;width:20px;height:20px;border-radius:4px;color:#333;.svg-icon{width:100%;height:100%;color:",";}}.child-screens{position:relative;}&.wait-hover *{pointer-events:none;}&.linking{color:",";background:",";.actions{display:none;}}&:hover,&.hover{background:",";color:unset;}&:not(.is-mult-select):hover,&:not(.is-mult-select).hover{.active-circle{display:none;}.editable-span{margin-right:0;}}&.active,&.is-active{color:",";background:unset;.screen-name{.editable-span{font-weight:500;}.screen-item-icon .icon{color:",";}}.expander .arrow-icon{color:#999;}}&.dummy-select{background:",";.screen-icon{&:not(.disabled).can-hover:hover{background:",";}}.screen-item-icon{.is-open{.screen-icon.canClick{background:",";}}}}&.select{color:",";background:",";.editable-span{font-weight:500;}.screen-name .screen-item-icon .icon{color:",";}.screen-icon{&:not(.disabled).can-hover:hover{background:",";}}.screen-item-icon{.is-open{.screen-icon.canClick{background:",";}}}}&.active .editable-span{font-weight:500;}.active-circle{position:absolute;right:11px;width:6px;height:6px;display:inline-block;border-radius:50%;background:",";}&.is-mult-select{background:",";.screen-name .screen-item-icon .icon{color:",";}}&.context-menu-select{border:1px solid ",";border-radius:4px;&:not(.dummy-select):not(.select){background-color:",";}}.editable-span,.editable-name{&.is-editing{textarea{margin-right:18px;border:1px solid #0077FF;border-radius:6px;line-height:16px;padding:3px 6px;}}}"],Ye,Tt=>xn(Tt,"color_text_L1"),Tt=>xn(Tt,"color_text_L1"),Nn.L9,Tt=>xn(Tt,"color_text_L1"),Tt=>xn(Tt,"color_text_L2"),Tt=>xn(Tt,"color_bg_select02"),Tt=>xn(Tt,"color_directory_hover"),Tt=>xn(Tt,"color_text_L1"),Tt=>xn(Tt,"color_text_L1"),Tt=>xn(Tt,"color_directory_hover"),Tt=>xn(Tt,"color_bg_border_01"),Tt=>xn(Tt,"color_bg_border_01"),Tt=>xn(Tt,"color_text_L1"),Tt=>xn(Tt,"color_directory_active"),Tt=>xn(Tt,"color_text_L1"),Tt=>xn(Tt,"color_bg_border_02"),Tt=>xn(Tt,"color_bg_border_02"),Tt=>xn(Tt,"color_text_link_normal"),Tt=>xn(Tt,"color_directory_active"),Tt=>xn(Tt,"color_text_L1"),Tt=>Tt.theme.color_btn_primary_normal,Tt=>xn(Tt,"color_directory_active"));class Hn extends I.PureComponent{constructor(mn){super(mn),(0,r.A)(this,"timer",null),(0,r.A)(this,"setElementRef",Rn=>this.$elem=Rn),(0,r.A)(this,"handleExpand",Rn=>{Rn.stopPropagation();const{screenMeta:gn,actionProps:{onExpand:Tn}}=this.props;Tn(gn)}),(0,r.A)(this,"handleClick",async Rn=>{Rn.stopPropagation();const{depth:gn,screenMeta:Tn,actionProps:{onClick:wo},isMultiplePage:io}=this.props;wo(Rn,Tn,gn,io)}),(0,r.A)(this,"handleDown",Rn=>{const{screenMeta:gn,actionProps:{onDropDown:Tn,onContextMenu:wo}}=this.props;Rn.button===0?this.timer=setTimeout(()=>{Tn&&Tn(Rn,gn)},200):Rn.button===2&&wo&&wo(Rn,gn)}),(0,r.A)(this,"handleMouseUp",()=>{clearTimeout(this.timer)}),(0,r.A)(this,"handleEdit",()=>{const{isMultiplePage:Rn}=this.props;if(Rn)return;const{screenMeta:gn,actionProps:{onEdit:Tn}}=this.props;Tn&&Tn(gn)}),(0,r.A)(this,"handleNameChange",(Rn,gn)=>{const{screenMeta:Tn,actionProps:{onNameChange:wo}}=this.props;wo&&wo(Tn,Rn,this.isNewScreenMeta,gn),this.isNewScreenMeta=!1}),(0,r.A)(this,"handleToggle",Rn=>{this.setState({hoverCid:Rn})}),(0,r.A)(this,"onShowTipsByTarget",(Rn,gn)=>{const Tn=gn.querySelector(".editable-span");return Tn.offsetWidth<Tn.scrollWidth}),(0,r.A)(this,"onSelectByCheckbox",(Rn,gn,Tn)=>{Tn.stopPropagation();const{depth:wo,screenMeta:io,actionProps:{onClick:fo},isMultiplePage:co}=this.props;fo(Tn,io,wo,co)}),(0,r.A)(this,"handleToggleHover",(Rn,gn)=>{Rn.stopPropagation();const{actionProps:{onToggleHover:Tn},screenMeta:{cid:wo}}=this.props;Tn&&Tn(gn?wo:"")}),this.isNewScreenMeta=!1,this.state={hoverCid:""}}componentDidMount(){this.props.isEditing&&(this.isNewScreenMeta=!0)}stopPropagation(mn){mn.stopPropagation()}render(){const{depth:mn,screenMeta:Rn,actionProps:gn,isMultSelect:Tn,screenTreeData:wo,screenDataMap:io,screenSelection:fo,contextMenuState:co,isActive:ga,isEditing:Fo,isSelect:Eo,isExpand:Oa,showExpander:Ra,isDummySelect:tr,paddingLeftLayout:Ar,theme:nr,recentlyUsedScreenMetaIcons:$a,onlyView:Rr,isEditingCombo:or,initPaddingLeft:Ba,isEditingProjectMain:Ja,currentProject:Za,isMultiplePage:Nr,highlightKeyword:ii}=this.props,{hoverCid:Ci}=this.state,Zi=(0,on.N8)(mn,Ar,Ba)+28*Number(Nr),Zr=(0,Pt.Mo)(Rn),{cid:Hi,name:yr,icon:$r}=Rn,os=Ci===Hi,pt=(co==null?void 0:co.show)&&(co==null?void 0:co.contextScreenSelection.length)===1&&(co==null?void 0:co.contextScreenSelection[0])===Hi,Ee=ga&&!Fo&&!os;return(0,we.jsx)(l.A,{content:yr,distance:5,direction:"right",onMouseEvent:"onDoubleClick",isShowTipsByTarget:this.onShowTipsByTarget,children:(0,we.jsxs)(wn,{ref:this.setElementRef,"data-cid":Hi,"data-interactive-target-type":Zr?"":yn.E.page,"data-interactive-target-key":Hi,onClick:this.handleClick,onMouseDown:this.handleDown,onDoubleClick:this.handleEdit,onMouseUp:this.handleMouseUp,onMouseEnter:Ue=>this.handleToggleHover(Ue,!0),onMouseLeave:Ue=>this.handleToggleHover(Ue,!1),style:{paddingLeft:Zi},className:B()("rn-list-item",{active:ga,select:Eo,hover:os&&!pt,folder:Zr,page:!Zr,"dummy-select":tr,"is-mult-select":Tn,"context-menu-select":pt,"interactive-target-hotspot":!Zr}),children:[Nr&&(0,we.jsx)("div",{className:"screen-checkbox",onClick:this.stopPropagation,children:(0,we.jsx)(lo.A,{attr:"selectByCheckbox",isChecked:Eo,onChange:this.onSelectByCheckbox})}),Ra&&(0,we.jsx)("a",{className:"expander",onClick:this.handleExpand,onDoubleClick:this.stopPropagation,children:(0,we.jsx)(C.C,{className:B()("arrow-icon",{"is-expand":Oa}),name:"common/expand"})}),(0,we.jsx)("div",{className:"screen-item-icon",onClick:Ra?this.handleExpand:null,onDoubleClick:this.stopPropagation,children:(0,we.jsx)(Yn.k,{isEditingCombo:or,screenMeta:Rn,icon:$r,theme:nr,isExpand:Oa,recentlyUsedScreenMetaIcons:$a,actionProps:gn.iconAction})}),Rr?(0,we.jsx)("span",{className:B()("editable-span",{"show-circle":Ee}),children:(0,we.jsx)(ft.A,{value:(0,Lt.wh)(yr),highlightKeyword:ii})}):(0,we.jsxs)(we.Fragment,{children:[(0,we.jsx)(dn.A,{isEditing:Fo,className:B()("editable-span",{"show-circle":Ee}),value:(0,Lt.wh)(yr),highlightKeyword:ii,onConfirm:this.handleNameChange},yr),!Fo&&!Tn&&!pt&&(0,we.jsx)(bn,{screenMeta:Rn,actionProps:gn,viewMode:"literal",onToggle:this.handleToggle,screenTreeData:wo,screenDataMap:io,screenSelection:fo,isEditingCombo:or,isEditingProjectMain:Ja,currentProject:Za,isMultiplePage:Nr})]}),Ee&&(0,we.jsx)("span",{className:"active-circle"})]})})}}const zn=(Tt,mn,Rn)=>{const gn=document.querySelector("#screen-scroll-list"),Tn=gn.firstChild,wo=Array.from(gn.querySelectorAll(".rn-content-item")),io=gn.getBoundingClientRect(),fo=Tn.getBoundingClientRect(),co=[],ga={},Fo=MB.__store__.getState(),Eo=(0,W.TZ)(Fo);let Oa=new Set,Ra=1,tr=mn;if(Tt){const nr=new Set(mn),$a=new Set;for(const or of mn){const Ba=sdkStore.getHotItem(or);Ba&&nr.has(Ba.sup)&&$a.add(Ba.key)}for(const or of $a)nr.delete(or);tr=Array.from(nr),Oa=new Set(tr);const Rr=[];(0,Pt.sV)(Rn,or=>{const{cid:Ba,children:Ja}=or;if(Oa.has(Ba)&&Ja.length>0)for(const Za of or.children)Oa.add(Za.cid);mn.includes(Ba)&&Rr.push(or)});for(const or of Rr){const Ba=(0,Pt.QR)(or);Ra=Math.max(Ba,Ra)}}const Ar=wo.length;return wo.forEach((nr,$a)=>{const{cid:Rr}=nr.dataset,or=(0,Pt.Bq)(Rr,Rn),Ba=or.data,Ja=(0,Pt.zK)(or.cid,Rn),Za=nr.querySelector(":scope > .rn-list-item"),Nr=Za.getBoundingClientRect(),ii=(0,Lt.yB)(Za),Ci=nr.getBoundingClientRect(),Zi={top:Nr.top-fo.top,left:Nr.left-fo.left,width:Nr.width,height:Nr.height},Zr={top:ii.top-fo.top,left:ii.left-fo.left,width:ii.width,height:ii.height},Hi={top:Ci.top-fo.top,left:Zr.left,width:Zr.width,height:Ci.height};ga[Rr]={rect:Zi,contentRect:Zr,treeRect:Hi};const{left:yr,top:$r,width:os,height:pt}=Zi,Ee=yr+os,Ue=$r+pt/3,ke=$r+pt/3*2,Ve=$r+pt;if(Oa.has(Rr)){co.push({cid:Rr,type:null,min:{x:yr,y:$r},max:{x:Ee,y:Ve},isValid:!1});return}$a===0&&co.push({cid:Rr,type:"prevSibling",parentCid:Ba.sup,min:{x:yr,y:$r},max:{x:Ee,y:Ue},isValid:!0}),$a===Ar-1&&co.push({cid:Rr,type:"nextSibling",parentCid:Ba.sup,min:{x:yr,y:Ve},max:{x:Ee,y:io.height},isValid:!0});const st=7,ut=Ja+Ra<=st,Rt=Ja-1+Ra<=st;if(co.push({cid:Rr,type:"firstChild",parentCid:Rr,min:{x:yr,y:$r},max:{x:Ee,y:ke},isValid:ut}),!Eo.has(Rr)&&or.children.length>0){const{cid:Xt}=or.children[0];co.push({cid:Xt,type:"prevSibling",parentCid:Rr,min:{x:yr,y:ke},max:{x:Ee,y:Ve},isValid:ut})}else{const Xt=(0,Pt.Bq)(Ba.sup,Rn);if((0,Pt.pe)(Rr,Rn)&&Xt){co.push({cid:Rr,type:"nextSibling",parentCid:Ba.sup,min:{x:ga[Rr].contentRect.left,y:ke},max:{x:Ee,y:Ve},isValid:Rt});let bo=or,Po=null;for(;bo&&(0,Pt.pe)(bo.cid,Rn)&&(Po=(0,Pt.Bq)(bo.data.parent_cid,Rn));){const ha=(0,Pt.zK)(Po,Rn)-1+Ra<=4;co.push({cid:Po.cid,type:"nextSibling",parentCid:Po.data.sup,min:{x:ga[Po.cid].contentRect.left,y:ke},max:{x:ga[bo.cid].contentRect.left,y:Ve},isValid:ha}),bo=Po}}else co.push({cid:Rr,type:"nextSibling",parentCid:Ba.sup,min:{x:yr,y:ke},max:{x:Ee,y:Ve},isValid:Rt})}}),{matchDataList:co,containerRect:io,rectQueryMap:ga,pathSelectedIds:tr}},ko=(Tt,mn,Rn)=>{const gn=document.querySelector("#screen-scroll-list"),Tn=gn.firstChild,wo=Array.from(gn.querySelectorAll(".rn-content-item")),io=gn.getBoundingClientRect(),fo=Tn.getBoundingClientRect(),co=[],ga={},Fo=MB.__store__.getState(),Eo=(0,W.TZ)(Fo);let Oa=new Set,Ra=1,tr=mn,Ar=!1,nr=!1;if(Tt){const or=new Set(mn),Ba=new Set;for(const Za of mn){const Nr=sdkStore.getHotItem(Za);Nr&&or.has(Nr.sup)&&Ba.add(Nr.key)}for(const Za of Ba)or.delete(Za);tr=Array.from(or),Oa=new Set(tr);const Ja=[];(0,Pt.sV)(Rn,Za=>{const{cid:Nr,children:ii}=Za;if(Oa.has(Nr)&&ii.length>0)for(const Ci of Za.children)Oa.add(Ci.cid);mn.includes(Nr)&&Ja.push(Za)}),Ar=Ja.find(Za=>!(0,Pt.Mo)(Za.data)),nr=Ja.find(Za=>(0,Pt.Mo)(Za.data));for(const Za of Ja){const Nr=(0,Pt._A)(Za);Ra=Math.max(Nr,Ra)}}const $a=or=>or?Ar?or!=="B@main":!0:!1,Rr=wo.length;return wo.forEach((or,Ba)=>{const{cid:Ja}=or.dataset,Za=(0,Pt.Bq)(Ja,Rn),Nr=Za.data,ii=(0,Pt.zK)(Za.cid,Rn),Ci=or.querySelector(":scope > .rn-list-item"),Zi=Ci.getBoundingClientRect(),Zr=(0,Lt.yB)(Ci),Hi=or.getBoundingClientRect(),yr={top:Zi.top-fo.top,left:Zi.left-fo.left,width:Zi.width,height:Zi.height},$r={top:Zr.top-fo.top,left:Zr.left-fo.left,width:Zr.width,height:Zr.height},os={top:Hi.top-fo.top,left:$r.left,width:$r.width,height:Hi.height};ga[Ja]={rect:yr,contentRect:$r,treeRect:os};const{left:pt,top:Ee,width:Ue,height:ke}=yr,Ve=pt+Ue,st=Ee+ke/3,ut=Ee+ke/3*2,Rt=Ee+ke;if(Oa.has(Ja)){co.push({cid:Ja,type:null,min:{x:pt,y:Ee},max:{x:Ve,y:Rt},isValid:!1});return}Ba===0&&co.push({cid:Ja,type:"prevSibling",parentCid:Nr.sup,min:{x:pt,y:Ee},max:{x:Ve,y:st},isValid:$a(Nr.sup)}),Ba===Rr-1&&co.push({cid:Ja,type:"nextSibling",parentCid:Nr.sup,min:{x:pt,y:Rt},max:{x:Ve,y:io.height},isValid:$a(Nr.sup)});const en=4,Xt=ii+Ra<=en&&(0,Pt.Mo)(Nr),Zn=ii-1+Ra<=en;if((0,Pt.Mo)(Nr)){let Po=!1;Ra>1||(0,Pt.Mo)(Tt)?Po=ii+Ra<=en:Po=ii+Ra<=en+1,co.push({cid:Ja,type:"firstChild",parentCid:Ja,min:{x:pt,y:Ee},max:{x:Ve,y:ut},isValid:Po&&$a(Ja)})}else co.push({cid:Ja,type:null,parentCid:Ja,min:{x:pt,y:Ee},max:{x:Ve,y:ut},isValid:Xt&&$a(Ja)});if(!Eo.has(Ja)&&Za.children.length>0){const{cid:Po}=Za.children[0];co.push({cid:Po,type:"prevSibling",parentCid:Ja,min:{x:pt,y:ut},max:{x:Ve,y:Rt},isValid:Xt&&$a(Ja)})}else{const Po=(0,Pt.Bq)(Nr.sup,Rn);if((0,Pt.pe)(Ja,Rn)&&Po){co.push({cid:Ja,type:"nextSibling",parentCid:Nr.sup,min:{x:ga[Ja].contentRect.left,y:ut},max:{x:Ve,y:Rt},isValid:Zn&&$a(Nr.sup)});let xa=Za,da=null;for(;xa&&(0,Pt.pe)(xa.cid,Rn)&&(da=(0,Pt.Bq)(xa.data.parent_cid,Rn));){const Ko=(0,Pt.zK)(da,Rn)-1+Ra<=en;co.push({cid:da.cid,type:"nextSibling",parentCid:da.data.sup,min:{x:ga[da.cid].contentRect.left,y:ut},max:{x:ga[xa.cid].contentRect.left,y:Rt},isValid:Ko&&$a(da.data.sup)}),xa=da}}else co.push({cid:Ja,type:"nextSibling",parentCid:Nr.sup,min:{x:pt,y:ut},max:{x:Ve,y:Rt},isValid:Zn&&$a(Nr.sup)})}}),{matchDataList:co,containerRect:io,rectQueryMap:ga,pathSelectedIds:tr}};var On=s(77872);const Mo=$.Ay.div.withConfig({displayName:"styles__StyledSortableList",componentId:"sc-gd43tn-0"})([".sm-list{",";}&.is-multiple{.sm-list{padding-bottom:42px;}}"],Nn.nw);class jn extends I.PureComponent{constructor(mn){super(mn),(0,r.A)(this,"handleScreenMetaDropDown",(Rn,gn)=>{const{editingScreenMetaCid:Tn,searchKeyword:wo,screenTreeData:io,screenSelection:fo,isEditingCombo:co,onlyView:ga}=this.props;if(ga||Tn===gn.cid||wo)return;const Fo=document.querySelector('#screen_list [data-cid="'+gn.cid+'"] .rn-list-item'),{top:Eo,left:Oa}=Fo.getBoundingClientRect(),Ra=Rn.clientX-Oa,tr=Rn.clientY-Eo,Ar=fo.includes(gn.cid)?fo:[gn.cid],$a={screen:gn,$element:Fo,offsetX:Ra,offsetY:tr,...(co?ko:zn)(gn,Ar,io)};this.setState({dragAndDropState:$a})}),(0,r.A)(this,"handleDropScreen",Rn=>{let{cid:gn,type:Tn,parentCid:wo,isValid:io}=Rn;const{dispatch:fo,isEditingCombo:co}=this.props,{dragAndDropState:ga}=this.state;if(!ga)return;const{pathSelectedIds:Fo}=ga;if(this.setState({dragAndDropState:null}),!io){Tn&&MB.notice({text:I18N.ScreenPanel.invalid_screen_nested_level.replace(/%s/,co?4:7),type:"warning"});return}fo({type:"entry:update:screen_list:by:sort",payload:{pathSelectedIds:Fo,parentCid:wo,type:Tn,cid:gn}}),fo({type:"entry:update:screen_list_rect"})}),(0,r.A)(this,"getContainerElement",()=>document.getElementById("screen-scroll-list")),(0,r.A)(this,"handleToggleHover",Rn=>this.setState({hoverCid:Rn})),(0,r.A)(this,"renderScreenMetaItem",Rn=>{let{depth:gn,screenMeta:Tn,hasScreenMetaChildren:wo,screenSelection:io,activeScreenMetaCid:fo,editingScreenMetaCid:co,collapseScreenMetaCidSet:ga,dummySelect:Fo}=Rn;const{screenTreeData:Eo,screenDataMap:Oa,contextMenuState:Ra,theme:tr,recentlyUsedScreenMetaIcons:Ar,onlyView:nr,isEditingCombo:$a,isEditingProjectMain:Rr,isCommunityPreview:or,currentProject:Ba,isMultiplePage:Ja,searchKeyword:Za}=this.props,{cid:Nr}=Tn,ii=fo===Nr,Ci=co===Nr,Zi=!ga.has(Nr),Zr=io.includes(Nr),Hi=wo||(0,Pt.Mo)(Tn),yr=Fo.has(Nr),$r=io.length>1&&Zr||io.length===1&&Zr&&Ja,{initPaddingLeft:os,paddingLeftLayout:pt}=(0,on.zD)({isCommunityPreview:or});return(0,we.jsx)(Hn,{theme:tr,depth:gn,screenMeta:Tn,isActive:ii,isEditing:Ci,isSelect:Zr,isMultSelect:$r,isExpand:Zi,isDummySelect:yr,showExpander:Hi,initPaddingLeft:os,paddingLeftLayout:pt,actionProps:this.literalActionProps,screenTreeData:Eo,screenDataMap:Oa,screenSelection:io,contextMenuState:Ra,recentlyUsedScreenMetaIcons:Ar,onlyView:nr,isEditingProjectMain:Rr,isEditingCombo:$a,currentProject:Ba,isMultiplePage:Ja,highlightKeyword:Za})}),this.state={dragAndDropState:null,hoverCid:"",dummySelect:new Set},this.literalActionProps={...mn.literalActionProps,onDropDown:this.handleScreenMetaDropDown,onToggleHover:this.handleToggleHover}}componentDidMount(){const{currentProject:{cid:mn},onlyView:Rn,dispatch:gn}=this.props;if(!Rn){const Tn=(0,Me.Yt)((0,On.l)(mn),[],Me.qW.Array);gn({type:"screen:add:collapseKeySet",payload:{refs:Tn}})}}render(){const{screenTreeData:mn,screenSelection:Rn,activeScreenMetaCid:gn,editingScreenMetaCid:Tn,screenCollapseKeySet:wo,onlyView:io,isMultiplePage:fo}=this.props,{dragAndDropState:co}=this.state,ga=(0,Pt.he)(Rn,mn),{$element:Fo,matchDataList:Eo,containerRect:Oa,rectQueryMap:Ra,offsetX:tr,offsetY:Ar}=co||{};return(0,we.jsxs)(Mo,{className:"sortable-container "+(fo?"is-multiple":""),children:[(0,we.jsx)("div",{className:"sm-list",children:(0,we.jsx)(Kn.A,{screenTreeData:mn,activeScreenMetaCid:gn,editingScreenMetaCid:Tn,screenSelection:Rn,dummySelect:ga,collapseScreenMetaCidSet:wo,renderScreenMetaItem:this.renderScreenMetaItem})}),co&&!io&&(0,we.jsx)(kn.A,{draggingElement:Fo,getContainerElement:this.getContainerElement,matchDataList:Eo,containerRect:Oa,rectQueryMap:Ra,offsetX:tr,offsetY:Ar,onDrop:this.handleDropScreen})]})}}const xo=$.Ay.div.withConfig({displayName:"styles__StyledScreenListBottom",componentId:"sc-qsyvjd-0"})(["position:absolute;width:calc(100% - 24px);height:34px;margin:0 12px;padding:4px 0;bottom:4px;background-color:",";border:1px solid ",";border-radius:6px;display:flex;align-items:center;justify-content:space-between;z-index:2;.btn{width:100%;height:24px;border-radius:4px;margin:0 4px;color:",";background-color:",";display:flex;align-items:center;justify-content:center;&:hover,&.active{background-color:",";}&.disabled{color:#999;background-color:",";cursor:not-allowed;}}.svg-box svg{width:auto;height:13px;}.divider{width:1px;height:16px;margin:0 4px;background-color:",";flex-shrink:0;}.exit-multiple-btn{font-size:12px;font-weight:400;line-height:16px;}"],Tt=>Tt.theme.color_bg_card,Tt=>Tt.theme.color_bg_border_02,Tt=>Tt.theme.color_text_L1,Tt=>Tt.theme.color_bg_card,Tt=>Tt.theme.color_btn_secondary_active,Tt=>Tt.theme.color_bg_card,Tt=>Tt.theme.color_bg_border_02),jo=Tt=>{const{screenSelection:mn,screenDataMap:Rn,dispatch:gn}=Tt,Tn=mn.length===1,wo=mn.length===0,io=Rn[mn[0]],fo=(0,I.useCallback)(Eo=>{wo||(Eo.preventDefault(),gn({type:"entry:dup:screen:selection",payload:{isScreenSelectionContextMenu:!0}}))},[gn,wo]),co=(0,I.useCallback)(Eo=>{wo||(Eo.preventDefault(),!MB.global.experienceLoginModalHelper("isSave")&&gn({type:"entry:transfer:screen",payload:{screen:Tn?io:null,isScreenSelectionContextMenu:!0}}))},[gn,wo,Tn,io]),ga=(0,I.useCallback)(Eo=>{wo||(Eo.preventDefault(),gn({type:"entry:remove:screen:selection:del"}))},[gn,wo]),Fo=(0,I.useCallback)(()=>{gn({type:"screen:update:state",payload:{isMultiplePage:!1}})},[gn]);return(0,we.jsxs)(xo,{className:"screen-list-bottom",children:[(0,we.jsx)(l.A,{isShowTips:!wo,distance:8,enterHoverTime:100,content:I18N.ScreenPanel.make_a_copy,direction:"up",children:(0,we.jsx)("div",{className:B()("svg-box","btn",{disabled:wo}),onClick:fo,children:(0,we.jsx)(C.C,{className:"",name:"left_panel/bottom/dup"})})}),(0,we.jsx)(l.A,{isShowTips:!wo,distance:8,enterHoverTime:100,content:I18N.ScreenPanel.move_or_copy_to2,direction:"up",children:(0,we.jsx)("div",{className:B()("svg-box","btn",{disabled:wo}),onClick:co,children:(0,we.jsx)(C.C,{className:"",name:"left_panel/bottom/transfer"})})}),(0,we.jsx)(l.A,{isShowTips:!wo,distance:8,enterHoverTime:100,content:I18N.SettingPanel.delete,direction:"up",children:(0,we.jsx)("div",{className:B()("svg-box","btn",{disabled:wo}),onClick:ga,children:(0,we.jsx)(C.C,{className:"",name:"left_panel/bottom/del"})})}),(0,we.jsx)("div",{className:"divider"}),(0,we.jsx)("div",{className:"exit-multiple-btn btn",onClick:Fo,children:I18N.SettingPanel.exit})]})},Qo=(0,I.memo)(jo);var cn=s(77698),In=s(98267),tn=s(64580),Jt=s(70466),Ln=s(24437),Xn=s(22835);const Dn=$.Ay.div.withConfig({displayName:"styles__StyledScreenList",componentId:"sc-3gv3ja-0"})(["flex:1;display:flex;flex-direction:column;overflow:hidden;position:relative;min-height:100px;.sortable-container{position:relative;min-height:100%;}.screen-scroll-list{width:","}"],Tt=>Tt.scrollHeight>Tt.clientHeight?"calc(100% - 2px)":"100%");var go=s(19396),Uo=s.n(go);class Ho extends I.PureComponent{constructor(mn){var Rn;super(mn),Rn=this,(0,r.A)(this,"setElementRef",gn=>this.$elem=gn),(0,r.A)(this,"autoScrollSelected",()=>{const{screenSelection:gn}=this.props,Tn=gn[0];Tn&&this.$elem&&(0,Xn.yA)(this.$elem,Tn)}),(0,r.A)(this,"setAttr",(gn,Tn,wo)=>{const{dispatch:io}=this.props;io({type:"entry:update:screen-name",payload:{attr:gn,value:Tn,screen:wo}})}),(0,r.A)(this,"handleScreenMetaContextMenu",(gn,Tn)=>{const{screenSelection:wo,dispatch:io,onlyView:fo}=this.props;if(fo)return;const co={left:gn.clientX,top:gn.clientY},ga=wo.findIndex(Fo=>Fo===Tn.cid)!==-1?wo:[Tn.cid];io({type:"screen:open:contextmenu",payload:{contextMenuState:{contextScreenSelection:ga,show:!0,position:co}}})}),(0,r.A)(this,"handleCloseScreenMetaContextMenu",()=>this.props.dispatch({type:"screen:open:contextmenu",payload:{contextMenuState:{show:!1,contextScreenSelection:[],position:{left:-9999,top:-9999}}}})),(0,r.A)(this,"handleSingleSelectedScreenMeta",gn=>{const{dispatch:Tn}=this.props,wo=(0,Jt.F)();if(wo){Tn({type:"entry:comment:wigglingCommentCid",payload:{wigglingCommentCid:wo}});return}Tn({type:"entry:comment:clear"}),this.handleActiveScreenMeta(gn),Tn({type:"screen:update:screen-selection",payload:{screenSelection:[gn.cid||gn.key]}})}),(0,r.A)(this,"handleSelectScreenMeta",function(gn,Tn,wo,io){io===void 0&&(io=!1);const{onlyView:fo,isEditingCombo:co}=Rn.props,ga=!fo&&!co,Fo=gn.target.type==="checkbox";if(gn.button!==0&&!io)return;const{dispatch:Eo}=Rn.props,Oa=(0,Jt.F)();if(Oa){Eo({type:"entry:comment:wigglingCommentCid",payload:{wigglingCommentCid:Oa}});return}Eo({type:"entry:comment:clear"}),(gn.shiftKey||gn.metaKey||gn.ctrlKey)&&ga?Eo({type:"screen:update:state",payload:{isMultiplePage:!0}}):(!Fo||!ga)&&Rn.handleActiveScreenMeta(Tn);const{screenSelection:Ra,screenRange:tr}=Rn.props,{displayTreeData:Ar}=Rn.state,nr=(0,Pt.kz)(Ar);nr.shift(),(0,on.uX)({rangeStart:tr.start,rangeEnd:tr.end,selected:Ra},{cid:Tn.cid,cids:nr,e:gn,selectFrom:"screen",isMultiplePage:io,canCheck:ga},$a=>{let{rangeStart:Rr,rangeEnd:or,selected:Ba}=$a,Ja=Ba;if(Ba.length>0&&or!==void 0){let Za,Nr;Rr<or?(Za=Ba.pop(),Nr=(0,Ln.BH)([Za]),Ja=Ba.concat(Nr)):(Za=Ba.shift(),Nr=(0,Ln.BH)([Za]),Ja=Nr.concat(Ba))}Eo({type:"screen:update:select:range",payload:{screenRange:{start:Rr,end:or}}}),Eo({type:"screen:update:screen-selection",payload:{screenSelection:Ja}})})}),(0,r.A)(this,"handleScreenMetaNameChange",(gn,Tn)=>{const{isEditingCombo:wo}=this.props,io=Tn.trim()==="";if(wo?io:io||Tn.includes("/")){this.props.dispatch({type:"screen:update:editing-screen-cid",payload:{cid:""}});const co=wo?I18N.Common.name_cannot_be_empty:I18N.Common.name_cannot_be_empty_or_symbol;MB.notice({text:co,type:"warning"})}else this.setAttr("name",Tn,gn),this.props.dispatch({type:"screen:update:editing-screen-cid",payload:{cid:""}})}),(0,r.A)(this,"handleScreenMetaEdit",gn=>{this.props.dispatch({type:"screen:update:editing-screen-cid",payload:{cid:gn.cid}})}),(0,r.A)(this,"handleScreenMetaRename",gn=>{const{key:Tn,hotAttr:wo,sup:io,sub:fo}=gn,co={cid:Tn,...wo,sup:io,sub:fo};this.handleSingleSelectedScreenMeta(co),this.handleScreenMetaEdit(co)}),(0,r.A)(this,"handleScreenMetaExpand",gn=>{const{currentProject:{cid:Tn},dispatch:wo}=this.props,{keyword:io}=this.state,fo=gn.cid;if(io){const{searchCollapseKeySet:co}=this.state,ga=new Set(co);co.has(fo)?ga.delete(fo):ga.add(fo),this.setState({searchCollapseKeySet:ga})}else wo({type:"screen:update:collapseKeySet",payload:{screenExpandedKeySetRef:fo,projectCid:Tn}});setTimeout(()=>{this.props.dispatch({type:"entry:update:screen_list_rect"})},50)}),(0,r.A)(this,"handleActiveScreenMeta",gn=>{if((0,Pt.Mo)(gn))return;const{onlyView:wo,activeScreenMetaCid:io,dispatch:fo}=this.props,{cid:co,key:ga}=gn,Fo=co||ga;if(io===Fo)return;fo({type:"entry:exit:edit:basket"}),fo({type:"entry:memory:current:screen:offset:scale"}),fo({type:"entry:goto:project-alike",payload:{screenMetaCid:Fo,isResetScale:!0}}),fo({type:"entry:memory:last:screenAndCanvas",payload:{screenMetaCid:Fo}}),wo&&(0,In.AT)(Fo,"",!1);const Eo=sdkStore.getHotItem(Fo);fo({type:"screen:update:state",payload:{currentPage:Eo}})}),(0,r.A)(this,"handleCreateNewScreenMetaChild",gn=>{const{dispatch:Tn}=this.props;Tn({type:"entry:create:screen:auto:to:root-project",payload:{isCreateChildren:!0,parentScreen:gn}})}),(0,r.A)(this,"handleCreateNewScreenMetaNextSibling",gn=>{const{dispatch:Tn}=this.props;Tn({type:"entry:create:screen:auto:to:root-project",payload:{parentScreen:gn}})}),(0,r.A)(this,"handleCreateNewScreenMetaPrevSibling",gn=>{const{dispatch:Tn}=this.props;Tn({type:"entry:create:screen:auto:to:root-project",payload:{parentScreen:gn,direction:dt.$.MOVEDOWN}})}),(0,r.A)(this,"handleUpdateScreenLevel",(gn,Tn)=>{const{dispatch:wo}=this.props;wo({type:"entry:update:screen_list:by:sort:direction",payload:{screenMeta:gn,direction:Tn}})}),(0,r.A)(this,"handleNewScreenFolderChild",gn=>{const{dispatch:Tn}=this.props;Tn({type:"entry:create:screen_folder:auto:to:root-project",payload:{isCreateChildren:!0,parentScreenFolder:gn}})}),(0,r.A)(this,"handleNewScreenFolderNextSibling",gn=>{const{dispatch:Tn}=this.props;Tn({type:"entry:create:creeen_folder:auto:to:current_folder",payload:{isCreateNextSibling:!0,curScreenFolder:gn}})}),(0,r.A)(this,"handleNewScreenFolderPrevSibling",gn=>{const{dispatch:Tn}=this.props;Tn({type:"entry:create:creeen_folder:auto:to:current_folder",payload:{curScreenFolder:gn}})}),(0,r.A)(this,"handleScreenMetaDup",gn=>{const{dispatch:Tn}=this.props;Tn({type:"entry:check:dup:screen:page:folder",payload:{screen:gn}})}),(0,r.A)(this,"handleScreenMetaTransfer",gn=>{const{dispatch:Tn}=this.props;MB.global.experienceLoginModalHelper("isSave")||Tn({type:"entry:transfer:screen",payload:{screen:gn}})}),(0,r.A)(this,"handleScreenMetaDel",gn=>{const{dispatch:Tn}=this.props;Tn({type:"entry:remove:screen:check:del",payload:{screen:gn}})}),(0,r.A)(this,"handleThrottleUpdateScreenListRect",Uo()(gn=>{gn({type:"entry:update:screen_list_rect"})},20)),(0,r.A)(this,"handleScroll",gn=>{const{dispatch:Tn}=this.props;this.handleThrottleUpdateScreenListRect(Tn)}),(0,r.A)(this,"handleExportPng",()=>{this.props.dispatch({type:"entry:toolbar:open:export_menu",payload:{open:!0}})}),(0,r.A)(this,"onClickOutside",gn=>{var Tn,wo;const{activeScreenMetaCid:io,screenSelection:fo,isMultiplePage:co,dispatch:ga}=this.props,{target:Fo}=gn;let Eo;const Oa=[".mb-screen-context-menu",".screenSettings",".screen-info-menu",".export-panel-menu",".export-panel-more-pages-state-menu",".export-screen-btn",".export-screen-btn2",".transfer-screen-modal",".transfer-screen-modal-select-menu",".screen-action-modal",".WorkspaceSelectMenu","#right-slide-panel",".screen-name-edit",".screen-width-edit",".screen-height-edit",".exit-multiple-btn"];(Tn=this.$elem)!=null&&Tn.contains(Fo)||document.querySelector(".--mb--color-picker")||!co&&fo.length===1||co&&[".catalog-list",".exit-multiple-btn"].every(Ra=>{var tr;return!((tr=Fo.closest)!=null&&tr.call(Fo,Ra))})&&!(Eo=(wo=document.querySelector(".exit-multiple-btn-in-list-menu"))==null||(wo=wo.parentNode)==null||(wo=wo.parentNode)==null?void 0:wo.contains(Fo))||Oa.some(Ra=>{var tr;return(tr=Fo.closest)==null?void 0:tr.call(Fo,Ra)})||(!Eo&&ga({type:"screen:update:state",payload:{isMultiplePage:!1}}),ga({type:"entry:reset:screen:selection",payload:{resetScreenCid:io}}))}),(0,r.A)(this,"handleChangeIcon",async(gn,Tn)=>{Tn&&(this.setAttr("icon",Tn,gn),await this.handleUpdateRecentlyUsedScreenMetaIcon(Tn))}),(0,r.A)(this,"handleUpdateRecentlyUsedScreenMetaIcon",async gn=>{const{isDesign:Tn,isLoggedExperience:wo,recentlyUsedScreenMetaIcons:io,dispatch:fo}=this.props,[co,ga]=gn.split(nn.wv),Fo=co===nn.L7&&ga;if((Tn||wo)&&!Fo){const Eo=Array.from(new Set(io));Eo.unshift(gn);const Oa=JSON.stringify(Eo.splice(0,12));fo({type:"entry:update:preference-data",payload:{recently_used_screen_meta_icons:Oa}})}}),(0,r.A)(this,"handleCloseGuide",()=>{}),(0,r.A)(this,"handleTrack",()=>{}),(0,r.A)(this,"handleSearch",gn=>{const{screenTreeData:Tn}=this.props,[wo,io]=(0,Pt.ZG)(Tn,gn);this.setState({displayTreeData:wo,searchCollapseKeySet:new Set(io),keyword:gn}),gn&&(0,tn.A)({operation_type:tn.D.SearchCanvas}),setTimeout(()=>{this.props.dispatch({type:"entry:update:screen_list_rect"})},50)}),(0,r.A)(this,"handleToggleExpanded",gn=>{const{dispatch:Tn}=this.props;Tn(gn?{type:"entry:expand:all:screen"}:{type:"entry:unExpand:all:screen"}),(0,tn.A)({operation_type:gn?tn.D.ExpandCanvas:tn.D.CollapseCanvas})}),this.literalActionProps={onExpand:this.handleScreenMetaExpand,onActive:this.handleActiveScreenMeta,onEdit:this.handleScreenMetaEdit,onNameChange:this.handleScreenMetaNameChange,onCreateNewScreenMetaChild:this.handleCreateNewScreenMetaChild,onCreateNewScreenMetaNextSibling:this.handleCreateNewScreenMetaNextSibling,onCreateNewScreenMetaPrevSibling:this.handleCreateNewScreenMetaPrevSibling,onCreateNewScreenFolderNextSibling:this.handleNewScreenFolderNextSibling,onCreateNewScreenFolderPrevSibling:this.handleNewScreenFolderPrevSibling,onNewScreenFolderChild:this.handleNewScreenFolderChild,onUpdateScreenLevel:this.handleUpdateScreenLevel,onDup:this.handleScreenMetaDup,onTransfer:this.handleScreenMetaTransfer,onDel:this.handleScreenMetaDel,onExportPng:this.handleExportPng,onContextMenu:this.handleScreenMetaContextMenu,onCloseContextMenu:this.handleCloseScreenMetaContextMenu,onClick:this.handleSelectScreenMeta,onSingleSelect:this.handleSingleSelectedScreenMeta,iconAction:mn.onlyView?null:{onChangeIcon:this.handleChangeIcon,onClickIcon:this.handleCloseGuide,onTrack:this.handleTrack},onRename:this.handleScreenMetaRename},this.state={displayTreeData:mn.screenTreeData,searchCollapseKeySet:new Set,keyword:""}}componentDidUpdate(mn){const{screenTreeData:Rn}=this.props,{keyword:gn}=this.state;if(mn.screenTreeData!==Rn){const[Tn]=(0,Pt.ZG)(Rn,gn);this.setState({displayTreeData:Tn})}}componentDidMount(){const{dispatch:mn}=this.props;mn({type:"entry:update:screen_list_rect"}),this.autoScrollSelected()}render(){var mn,Rn;const{isExperience:gn,isLoggedExperience:Tn,activeScreenMetaCid:wo,editingScreenMetaCid:io,screenRange:fo,screenSelection:co,dispatch:ga,screenDataMap:Fo,screenCollapseKeySet:Eo,contextMenuState:Oa,theme:Ra,recentlyUsedScreenMetaIcons:tr,onlyView:Ar,isEditingCombo:nr,isCommunityPreview:$a,currentProject:Rr,isEditingProjectMain:or,isEditingUserCombo:Ba,isMultiplePage:Ja,layoutV9:Za}=this.props,{displayTreeData:Nr,searchCollapseKeySet:ii,keyword:Ci}=this.state,Zi=Ci?ii:Eo,Zr=Eo.size>0,Hi=Object.values(Fo).filter(yr=>!yr.hotAttr.asFolder).length;return(0,we.jsxs)(Dn,{id:"screen_list",scrollHeight:(mn=this.$elem)==null?void 0:mn.scrollHeight,clientHeight:(Rn=this.$elem)==null?void 0:Rn.clientHeight,children:[(0,we.jsx)($t.A,{isEditingCombo:nr,isEditingUserCombo:Ba,isMultiplePage:Ja,screenSelection:co,displayTreeData:Nr,onlyView:Ar,keyword:Ci,hasFoldedScreen:Zr,isCommunityPreview:$a,dispatch:ga,nonFolderPGCount:Hi,onSearch:this.handleSearch,onToggleExpanded:this.handleToggleExpanded}),(0,we.jsxs)("div",{ref:this.setElementRef,id:"screen-scroll-list",className:B()("rn-content-body","scrollbar2-container",{isCommunityPreview:$a}),onScroll:this.handleScroll,children:[Nr&&(0,we.jsx)(jn,{theme:Ra,isExperience:gn,isLoggedExperience:Tn,activeScreenMetaCid:wo,searchKeyword:Ci,editingScreenMetaCid:io,screenTreeData:Nr,screenRange:fo,screenSelection:co,screenCollapseKeySet:Zi,dispatch:ga,literalActionProps:this.literalActionProps,screenDataMap:Fo,contextMenuState:Oa,recentlyUsedScreenMetaIcons:tr,onlyView:Ar,isEditingProjectMain:or,isEditingCombo:nr,isEditingUserCombo:Ba,isCommunityPreview:$a,currentProject:Rr,isMultiplePage:Ja,layoutV9:Za}),this.$elem&&(0,we.jsx)(cn.yP,{type:"vertical",containerRef:{current:this.$elem},isAutoHideBar:!0})]}),Ja&&(0,we.jsx)(Qo,{screenSelection:co,screenDataMap:Fo,dispatch:ga}),(0,we.jsx)(Dt,{}),(0,we.jsx)(_t.A,{target:document,onMouseDown:(0,_t.t)(this.onClickOutside,{capture:!0})})]})}}const ua=(0,N.Mz)([W.CY,M.HA,M.Hs,M.He,W.TZ,W.I_,M.WU,te.O4,w.W4,w.PL,te.Dc,w.HW,w.wA,T.jx,j.r,T.pH,M.p$,te.MZ],(Tt,mn,Rn,gn,Tn,wo,io,fo,co,ga,Fo,Eo,Oa,Ra,tr,Ar,nr,$a)=>{let{isDesign:Rr,isExperience:or,isLoggedExperience:Ba}=co,{isEditingProjectMain:Ja,isEditingCombo:Za,isEditingUserCombo:Nr}=tr;const{editingScreenMetaCid:ii,screenRange:Ci,height:Zi}=Tt,{key:Zr}=nr;return{onlyView:Ra===q.qi.OnlyView,theme:fo,isExperience:or,isLoggedExperience:Ba,isDesign:Rr,activeScreenMetaCid:Zr,editingScreenMetaCid:ii,screenTreeData:mn,screenSelection:Rn,screenDataMap:gn,screenRange:Ci,screenCollapseKeySet:Tn,contextMenuState:wo,recentlyUsedScreenMetaIcons:Fo,currentUser:Eo,currentOrg:Oa,componentPanelHeight:Zi,isEditingProjectMain:Ja,isEditingCombo:Za,isEditingUserCombo:Nr,isCommunityPreview:Ar,currentProject:ga,isMultiplePage:io,layoutV9:$a}}),la=(0,J.Ng)(Tt=>ua(Tt))(Ho);var To=s(25997),Ia=s(4235),ya=s(25912),eo=s(98722),Oo=s(59025),so=s(70248);const to=()=>document.getElementById("layer-scroll-list"),ta=Tt=>{const{treeNode:mn,hoverItem:Rn,layerExpandedKeySet:gn,onlyView:Tn,widgetStore:wo,newSelection:io,keyword:fo}=Tt,[co,ga]=(0,I.useState)(),{matchDataList:Fo,containerRect:Eo,rectQueryMap:Oa,$element:Ra,offsetX:tr,offsetY:Ar}=co||{},nr=(0,eo.xk)(io),$a=(0,J.d4)(T._b),Rr=(0,J.d4)(w.eo),or=(0,J.d4)(W.vB),Ba=(0,J.wA)(),{initPaddingLeft:Ja,paddingLeftLayout:Za}=(0,on.zD)(),Nr=(0,I.useMemo)(()=>{var yr;const $r=(0,eo.B8)(fo);return((yr=(0,eo._k)(mn,wo,$r))==null?void 0:yr.children)||[]},[fo,mn,wo]),ii=(0,I.useCallback)((yr,$r)=>{const{key:os,hotAttr:pt}=$r;if(pt.type===Vn.x.WWrap&&$a)return;const Ee=io.length===1&&io[0]===Rr?[]:io,Ue=(0,eo.aW)(Rr);(0,on.uX)({rangeStart:or.start,rangeEnd:or.end,selected:Ee},{cid:os,cids:Ue,e:yr},ke=>{const{rangeStart:Ve,rangeEnd:st,selected:ut}=(0,eo.MQ)(ke.selected,Ue),Rt=ut.filter(en=>{var Xt;return!(((Xt=sdkStore.getHotItem(en))==null||(Xt=Xt.hotAttr)==null?void 0:Xt.type)===Vn.x.Canvas&&(0,so.OO)(en))});Ba({type:"entry:select:items",payload:{cids:Rt,hasNotScrollTop:!0}}),MB.action("update:layer:select:range",{layerRange:{start:Ve,end:st}})})},[io,$a,Rr,or,Ba]),Ci=(0,I.useCallback)((yr,$r,os)=>{const{key:pt}=$r,Ee=io.includes(pt)?io:[pt];if((0,Oo.td)(Ee)||fo)return;const{top:Ue,left:ke}=os.getBoundingClientRect(),Ve=yr.clientX-ke,st=yr.clientY-Ue,ut={item:$r,$element:os,offsetX:Ve,offsetY:st,...(0,eo.tE)(Nr,Ee,gn)};ga(ut)},[fo,gn,io,Nr]),Zi=(0,I.useCallback)((yr,$r)=>{const{key:os}=$r,pt=(0,eo.aW)(Rr),Ee={left:yr.clientX,top:yr.clientY};Ba({type:"entry:open:contextmenu:by:component-list",payload:{key:os,position:Ee}}),Ba({type:"update:layer:select:range",payload:{layerRange:{start:pt.findIndex(Ue=>Ue===os),end:void 0}}})},[mn,Ba]),Zr=(0,I.useCallback)(yr=>{let{cid:$r,type:os,parentCid:pt,isValid:Ee}=yr;if(ga(null),!Ee||!co)return;const{pathSelectedIds:Ue}=co,ke=Ue.map(Xt=>wo.getHotItem(Xt)).filter(Xt=>!!Xt);ke.sort((Xt,Zn)=>Zn.hotAttr.zIndex-Xt.hotAttr.zIndex);const Ve=Nr.map(Xt=>Xt.node),ut=((pt?wo.getRenderableSubHotItems(pt):Ve)||[]).filter(Xt=>!Ue.includes(Xt.key)),Rt=ut.findIndex(Xt=>Xt.key===$r),en=os==="prevSibling"?Rt:os==="firstChild"?-ut.length:os==="nextSibling"?Rt+1:"error";if(en==="error")throw new Error("drag type error");ut.splice(en,0,...ke),sdkStore.combineMergeMark("sort-component"),ut.reverse().forEach((Xt,Zn)=>{if(Xt.sup!==pt||Xt.hotAttr.zIndex!==Zn+1){const bo={...Xt,hotAttr:{...Xt.hotAttr,zIndex:Zn+1}};sdkStore.updateHotItem(bo),Xt.sup!==pt&&sdkStore.changeRndSup(Xt.key,pt)}}),sdkStore.combineMerge("sort-component"),Ba({type:"entry:refresh:link-list"})},[co,Ba,Nr,wo]),Hi=(0,I.useMemo)(()=>({onClick:ii,onMouseDown:Ci,onMouseEnter:yr=>{const{key:$r}=yr;Ba({type:"set:echo:item",payload:{cid:$r}})},onMouseLeave:()=>{Ba({type:"clear:echo:item"})},onContextMenu:Zi,onToggleExpanded:yr=>{Ba({type:"layerExpandedKeySet:toggle:ref",payload:{layerExpandedKeySetRef:yr}})},onLock:yr=>Ba({type:"entry:toggle:lock",payload:{widget:yr}}),onVisible:yr=>Ba({type:"entry:toggle:visible",payload:{widget:yr}}),onChangeDisplayName:(yr,$r)=>{$r.trim()===""||$r.includes("/")?MB.notice({text:I18N.Common.name_cannot_be_empty_or_symbol,type:"warning"}):Ba({type:"entry:widget:change",payload:{flatChgList:[{key:yr,hotAttr:{name:$r}}],shouldBreakLayerUICache:!0}})},onClickIcon:()=>{Ba({type:"entry:design:zoom:selection"})}}),[ii,Ci,Zi,Ba]);return(0,we.jsxs)("div",{className:"layer-sortable-list",children:[(0,we.jsx)("ul",{id:"mb-enabled-layer-list",children:Nr.map(yr=>(0,we.jsx)(ya.A,{depth:0,treeNode:yr,hoverItem:Rn,newSelection:io,layerExpandedKeySet:gn,childrenSelect:!1,initPaddingLeft:Ja,paddingLeftLayout:Za,treeProps:Hi,dummySelect:nr,onlyView:Tn,isPreview:!1,keyword:fo},yr.key))}),co&&(0,we.jsx)(kn.A,{draggingElement:Ra,getContainerElement:to,matchDataList:Fo,containerRect:Eo,rectQueryMap:Oa,offsetX:tr,offsetY:Ar,onDrop:Zr})]})};var Qa=s(37361);const kr=(0,I.memo)(Tt=>{const{show:mn,keyword:Rn,hoverItem:gn,newSelection:Tn=[],layerExpandedKeySet:wo,dispatch:io,onlyView:fo,currentScreen:co}=Tt,ga=(0,J.d4)(To.UV),Fo=(0,J.d4)(To.RX),Eo=(0,I.useRef)(null);(0,I.useEffect)(()=>{if(Tn.length){const Ra=new Set;Tn.forEach(tr=>{const Ar=sdkStore.locUpColdCanvasKey(tr);Ar&&!wo.has(Ar)&&Ra.add(Ar)}),Ra.size&&io({type:"layerExpandedKeySet:delAllSet:ref",payload:{refs:Ra}})}},[]),(0,I.useEffect)(()=>{(0,Xn.yA)(Eo.current,Tn[0])},[Tn]);const Oa=(0,I.useDeferredValue)(gn);return!mn||!Fo?null:(0,we.jsx)(Qa.PN,{className:B()("mb-layer-panel"),children:(0,we.jsxs)("div",{id:"layer-scroll-list",className:"layer-scroll-list scrollbar2-container",ref:Eo,children:[(0,we.jsx)(ta,{keyword:Rn,hoverItem:Oa,treeNode:Fo,newSelection:Tn,layerExpandedKeySet:wo,onlyView:fo,widgetStore:ga,currentScreen:co}),Eo&&(0,we.jsx)(cn.yP,{type:"vertical",containerRef:Eo,isAutoHideBar:!0})]})})}),ur=(0,N.Mz)([To.GO,To.Aw],(Tt,mn)=>Tt.map(Rn=>mn[Rn][0].data)),Mr=(0,N.Mz)([W.vB,M.wJ,T.IL,Ia.p$,ur,T.jx,T._b,w.Ur],(Tt,mn,Rn,gn,Tn,wo,io,fo)=>{if(!fo)return{show:!1};const co=wo===q.qi.OnlyView;return{show:!0,hoverItem:Rn,newSelection:gn,ghostLayers:Tn,layerRange:Tt,layerExpandedKeySet:mn,onlyView:co,inspectMode:io,currentScreen:fo}}),gr=(0,J.Ng)(Tt=>Mr(Tt))(kr);var dr=s(69173),wi=s.n(dr);class gi extends I.PureComponent{constructor(mn){super(mn),(0,r.A)(this,"timer",null),(0,r.A)(this,"setElementRef",Rn=>this.$element=Rn),(0,r.A)(this,"handleClick",Rn=>{Rn.stopPropagation();const{canvas:gn,treeProps:{onClick:Tn}}=this.props;Tn(Rn,gn),Rn.shiftKey||Rn.ctrlKey||this.handleClickIcon(Rn)}),(0,r.A)(this,"handleClickIcon",Rn=>{Rn.stopPropagation();const{treeProps:{onClickIcon:gn}}=this.props;gn(),(0,tn.A)({operation_type:tn.D.DoubleClickPageIcon})}),(0,r.A)(this,"handleMouseDown",Rn=>{const{isEditing:gn}=this.state;if(gn)return;const{canvas:Tn,onlyView:wo,treeProps:{onMouseDown:io,onContextMenu:fo}}=this.props;if(!wo){if(Rn.button===0)this.timer=setTimeout(()=>{io&&io(Rn,Tn,this.$element)},200);else if(Rn.button===2){if(MB.f.editing||(Rn.preventDefault(),Rn.ctrlKey))return;fo&&fo(Rn,Tn)}}}),(0,r.A)(this,"handleDoubleClick",()=>{this.setState({isEditing:!0})}),(0,r.A)(this,"handleConfirm",async(Rn,gn)=>{if(gn){const{treeProps:{onChangeDisplayName:Tn}}=this.props;Tn(Rn)}this.setState({isEditing:!1})}),(0,r.A)(this,"onShowTipsByTarget",(Rn,gn)=>{const Tn=gn.querySelector(".editable-name");return Tn.offsetWidth<Tn.scrollWidth}),(0,r.A)(this,"handleMouseUp",()=>{clearTimeout(this.timer)}),(0,r.A)(this,"handleInvisibleClick",Rn=>{Rn.stopPropagation();const{onlyView:gn,canvas:Tn,treeProps:{onToggleVisible:wo}}=this.props;gn||wo&&wo(Tn)}),this.state={isEditing:!1}}render(){const{index:mn,depth:Rn,canvas:gn,isHover:Tn,isSelected:wo,onlyView:io,maxOrderDigit:fo,initPaddingLeft:co,paddingLeftLayout:ga,treeProps:{onMouseEnter:Fo,onMouseLeave:Eo}}=this.props;if(!gn)return null;const{isEditing:Oa}=this.state,{hotAttr:{isLock:Ra,isVisible:tr,name:Ar}}=gn,nr=Ar,$a=(0,on.N8)(Rn,ga,co);return(0,we.jsx)("li",{"data-cid":gn.key,className:B()("rn-content-item",{active:wo,hover:Tn}),children:(0,we.jsx)(l.A,{content:nr,direction:"right",distance:5,onMouseEvent:"onDoubleClick",isShowTipsByTarget:this.onShowTipsByTarget,children:(0,we.jsxs)("div",{"data-interactive-target-type":yn.E.canvasList,"data-interactive-target-key":gn==null?void 0:gn.key,ref:this.setElementRef,className:B()("rn-list-item","layer-item","interactive-target-hotspot",{active:wo,"is-hidden":!tr,"is-locked":Ra,hover:Tn}),style:{paddingLeft:$a},onClick:this.handleClick,onMouseEnter:()=>Fo(gn),onMouseLeave:Eo,onMouseDown:this.handleMouseDown,onDoubleClick:this.handleDoubleClick,onMouseUp:this.handleMouseUp,children:[wi()(mn)?(0,we.jsxs)(Qa.MI,{len:JSON.stringify(fo).length,children:[mn," "]}):(0,we.jsx)(Qa.MI,{len:JSON.stringify(fo).length}),(0,we.jsxs)(we.Fragment,{children:[io?(0,we.jsx)("span",{className:"editable-name",children:nr}):(0,we.jsx)(dn.A,{value:nr,className:"editable-name",isEditing:Oa,onConfirm:this.handleConfirm},nr),tr?null:(0,we.jsx)(C.C,{name:"left_panel/invisible",className:"eye-icon",onClick:this.handleInvisibleClick})]})]})})})}}const Li=Tt=>{const mn=document.querySelector("#canvas-scroll-list"),gn=document.querySelector("#mb-enabled-canvas-list").getBoundingClientRect(),Tn=mn.getBoundingClientRect(),wo=[],io={},fo={},co={},ga={};return Array.from(document.querySelectorAll("#mb-enabled-canvas-list >.rn-content-item")).forEach((Eo,Oa)=>{const{cid:Ra}=Eo.dataset,tr=Eo.querySelector(":scope > .rn-list-item"),Ar=tr.getBoundingClientRect();io[Ra]=co[Ra]=Ar;const nr=(0,Lt.yB)(tr);fo[Ra]=nr;const{left:$a,top:Rr,width:or,height:Ba}=Ar,Ja=$a-gn.left,Za=Rr-gn.top,Nr=Ja+or,ii=Za+Ba,Ci={top:Za,left:nr.left-gn.left,width:or,height:Ba};if(ga[Ra]={contentRect:Ci,rect:Ci,treeRect:Ci},Tt.includes(Ra)){wo.push({cid:Ra,type:null,min:{x:Ja,y:Za},max:{x:Nr,y:ii},isValid:!1,parentCid:null});return}wo.push({cid:Ra,type:"prevSibling",min:{x:Ja,y:Za},max:{x:Nr,y:Za+Ba/2},isValid:!0,parentCid:null}),wo.push({cid:Ra,type:"nextSibling",min:{x:Ja,y:Za+Ba/2},max:{x:Nr,y:ii},isValid:!0,parentCid:null})}),{matchDataList:wo,containerRect:Tn,rectQueryMap:ga}},Ni=$.Ay.div.withConfig({displayName:"styles__StyledCanvasListPanel",componentId:"sc-9vkdg5-0"})(["&.canvas-scroll-list{flex:1;overflow-x:hidden;overflow-y:overlay;width:100%;.canvas-sortable-list{position:relative;",";.layer-item{",";padding-left:19px;color:",";background-color:",";&.is-disabled{&.active{color:",";}}.eye-icon{width:20px;height:20px;}&.dummy-select{background:",";}&.active{background:",";}&:not(.active):not(.dummy-select):hover,&:not(.active):not(.dummy-select).hover{background:",";}.expander{display:flex;align-items:center;justify-content:center;margin-left:-15px;margin-right:1px;width:14px;height:14px;.arrow-icon{margin-right:0;color:#999;width:8px;&:not(.is-expand){transform:rotate(-90deg);}}}.layer-item-icon{",";svg.design-rResCanvas-new{color:",";}}.group-icon{opacity:1;.main{fill:#1684fc;}}.ant-icon{width:16px;height:16px;color:#8d9ea7;}.editable-name{overflow:hidden;white-space:nowrap;flex:1;text-overflow:ellipsis;margin-right:0;border:none;}.action{width:20px;height:20px;display:flex;align-items:center;justify-content:center;visibility:visible;cursor:pointer;.svg-icon{width:20px;height:20px;}}&:hover{.action{visibility:visible;}}&:hover,&.hover,&.active{.arrow-icon{color:#999;}.actions{background-color:transparent;}}&.is-disabled{& > *{opacity:0.4;}.actions{display:none;background:inherit;}}&.is-hidden{.eye-icon{visibility:visible;margin-right:6px;color:",";}}&.is-locked{.lock-icon{visibility:visible;}}&.is-linked{.link-icon{visibility:visible;color:",";}}&.is-hidden,&.is-locked,&.is-linked{.actions{display:flex;align-items:center;}}}}}&.canvas-scroll-list{padding:8px;.canvas-sortable-list{.layer-item{border-radius:6px;.editable-span,.editable-name{&.is-editing{textarea{margin-right:18px;border:1px solid #0077FF;border-radius:6px;line-height:16px;padding:3px 6px;}}}}}}"],Nn.eP,Nn.Aw,Tt=>Tt.theme.color_text_L1,Tt=>Tt.theme.color_bg_white,Tt=>Tt.theme.color_proto,Tt=>Tt.theme.color_bg_select03,Tt=>Tt.theme.color_directory_active,Tt=>Tt.theme.color_directory_hover,Qa.u6,Tt=>Tt.theme.color_text_L1,Tt=>Tt.theme.color_text_L2,Tt=>Tt.theme.color_proto),Ai=function(Tt,mn){return mn===void 0&&(mn=sdkStore),Tt?mn.getSubHotItemList(Tt).filter(Rn=>Rn&&Rn.hotAttr.type===Vn.x.Canvas&&!Rn.hotAttr.asOverlay).sort((Rn,gn)=>Rn.hotAttr.order-gn.hotAttr.order):[]},Bi=Tt=>{let{widgetStore:mn,pageKey:Rn,newSelection:gn=[],hoverItem:Tn,onlyView:wo,isCommunityPreview:io,show:fo,keyword:co,layoutV9:ga,dispatch:Fo}=Tt;const[Eo,Oa]=(0,I.useState)([]),[Ra,tr]=(0,I.useState)(null),[Ar,nr]=(0,I.useState)({start:0,end:void 0}),$a=(0,I.useRef)();(0,I.useEffect)(()=>{let Ee;return mn&&(Oa(Ai(Rn,mn)),Ee=mn==null?void 0:mn.externalSubscribe(()=>{Oa(Ai(Rn,mn))})),()=>{var Ue;(Ue=Ee)==null||Ue()}},[mn,Rn]),(0,I.useEffect)(()=>{(()=>{var Ue;const ke=gn[0];ke&&$a.current&&(mn==null||(Ue=mn.getHotItem(ke))==null?void 0:Ue.hotAttr.type)===Vn.x.Canvas&&(0,Xn.yA)($a.current,ke)})()},[mn,gn]);const Rr=(Ee,Ue)=>{const ke=MB.getCurrentScreen().cid,Ve=gn.length===1&&gn[0]===ke?[]:gn,st=Eo.map(ut=>{let{key:Rt}=ut;return Rt});(0,on.uX)({rangeStart:Ar.start,rangeEnd:Ar.end,selected:Ve},{cid:Ue.key,cids:st,e:Ee},ut=>{let{rangeStart:Rt,rangeEnd:en,selected:Xt}=ut;Fo({type:"entry:exit:edit:basket"}),Fo({type:"entry:select:items",payload:{cids:Xt,hasNotScrollTop:!0}}),nr({start:Rt,end:en})})},or=(Ee,Ue,ke)=>{if(co)return;const{top:Ve,left:st}=ke.getBoundingClientRect(),ut=Ee.clientX-st,Rt=Ee.clientY-Ve,en=gn.includes(Ue.key)?gn:[Ue.key],Xt={$element:ke,offsetX:ut,offsetY:Rt,selection:en,...Li(en)};tr(Xt)},Ba=(Ee,Ue)=>{const ke={left:Ee.clientX,top:Ee.clientY};Fo({type:"entry:open:contextmenu:by:component-list",payload:{key:Ue.key,position:ke,byCanvasLayers:!0,byComponentList:!1}}),nr({start:Eo.findIndex(Ve=>{let{key:st}=Ve;return st===Ue.key}),end:void 0})},Ja=Ee=>{let{cid:Ue,type:ke,isValid:Ve}=Ee;if(tr(null),!Ve)return;const st=[];for(const Xt of Ra==null?void 0:Ra.selection){const Zn=sdkStore.getHotItem(Xt);Zn&&st.push(Zn)}st.sort((Xt,Zn)=>Xt.hotAttr.order-Zn.hotAttr.order);const ut=(Eo||[]).filter(Xt=>!(Ra!=null&&Ra.selection.includes(Xt.key))),Rt=ut.findIndex(Xt=>Xt.key===Ue),en=ke==="prevSibling"?Rt:ke==="nextSibling"?Rt+1:"error";if(en==="error")throw new Error("drag type error");ut.splice(en,0,...st),sdkStore.combineMergeMark("sort-canvas"),ut.forEach((Xt,Zn)=>{if(Xt.hotAttr.order!==Zn+1){const bo={...Xt,hotAttr:{...Xt.hotAttr,order:Zn+1}};sdkStore.updateHotItem(bo)}}),sdkStore.combineMerge("sort-canvas"),Fo({type:"entry:refresh:link-list"}),Fo({type:"directory-panel:bottom:update",payload:{canvasListCacheTag:Math.random()}})},Za={onClick:Rr,onMouseDown:or,onMouseEnter:Ee=>{Fo({type:"set:echo:item",payload:{cid:Ee.key}})},onMouseLeave:()=>{Fo({type:"clear:echo:item"})},onContextMenu:Ba,onChangeDisplayName:Ee=>{if(Ee.trim()===""||Ee.includes("/"))MB.notice({text:I18N.Common.name_cannot_be_empty_or_symbol,type:"warning"});else{const ke=gn.map(Ve=>({key:Ve,hotAttr:{name:Ee}}));Fo({type:"entry:widget:change",payload:{flatChgList:ke,shouldBreakLayerUICache:!0,shouldBreakCanvasUICache:!0}})}},onClickIcon:()=>{Fo({type:"entry:design:zoom:selection"})},onToggleVisible:Ee=>{Fo({type:"entry:toggle:visible",payload:{widget:Ee}})}};if(!fo)return null;const{matchDataList:Nr,containerRect:ii,rectQueryMap:Ci,$element:Zi,offsetX:Zr,offsetY:Hi}=Ra||{},yr=co?Eo.filter(Ee=>Ee.hotAttr.name.toLowerCase().indexOf(co)!==-1):Eo,{initPaddingLeft:$r,paddingLeftLayout:os}=(0,on.zD)({isCommunityPreview:io,isCanvasSortableList:!0}),pt=ga==="recommend";return(0,we.jsxs)(Ni,{id:"canvas-scroll-list",className:B()("canvas-scroll-list","scrollbar2-container",{isV9Layout:pt}),ref:$a,children:[(0,we.jsxs)("div",{className:"canvas-sortable-list",children:[(0,we.jsx)("ul",{id:"mb-enabled-canvas-list",children:yr.map((Ee,Ue)=>(0,we.jsx)(gi,{depth:0,index:Ue+1,canvas:Ee,isHover:Tn===Ee.key,isSelected:gn.includes(Ee.key),onlyView:wo,treeProps:Za,initPaddingLeft:$r,paddingLeftLayout:os,maxOrderDigit:yr.length},Ee.key))}),Ra&&!wo&&(0,we.jsx)(kn.A,{draggingElement:Zi,getContainerElement:()=>$a.current,matchDataList:Nr,containerRect:ii,rectQueryMap:Ci,offsetX:Zr,offsetY:Hi,onDrop:Ja})]}),$a.current&&(0,we.jsx)(cn.yP,{type:"vertical",containerRef:$a,isAutoHideBar:!0})]})},Ss=(0,N.Mz)([Ia.p$,T.IL,T.jx,T.pH,M.p$,To.UV,te.MZ],(Tt,mn,Rn,gn,Tn,wo,io)=>{const fo=Tn==null?void 0:Tn.key;if(!fo)return{show:!1};const co=Rn===q.qi.OnlyView;return{show:!0,newSelection:Tt,hoverItem:mn,onlyView:co,isCommunityPreview:gn,widgetStore:wo,layoutV9:io,pageKey:fo}}),qi=(0,J.Ng)(Tt=>Ss(Tt))(Bi);var Ga=s(79150),ai=s(71272),kt=s(19295),Qt=s(63763),oo=s(20166);function ao(){const Tt=(0,J.d4)(w.Ur),mn=(0,J.wA)(),Rn=(0,I.useCallback)(Tn=>Tn.stopPropagation(),[]),gn=(0,I.useCallback)(()=>{if(!Tt){MB.notice({text:"\u5F53\u524D\u65E0\u753B\u5E03\uFF0C\u8BF7\u5148\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u753B\u5E03",type:"warning"});return}const Tn=(0,Qt.gu)({type:Vn.x.Canvas,screen:Tt,attrs:{width:0,height:0}});mn({type:"entry:batch:create:items:position",payload:{finalWidget:Tn}}),(0,oo.wH)({page:Tn})},[mn,Tt]);return(0,we.jsx)(l.A,{content:I18N.ScreenPanel.screen,direction:"down",children:(0,we.jsx)("a",{className:"header-icon",onMouseDown:Rn,onClick:gn,children:(0,we.jsx)(Ga.A,{name:"common/add_plus"})})})}const fa=(0,I.memo)(ao);var wr=s(93257);function Xa(){const Tt=(0,J.d4)(w.Ur),mn=(0,J.d4)(M.wJ),Rn=(0,J.wA)(),gn=(0,I.useMemo)(()=>(0,on.ww)(Tt,mn),[Tt,mn]),Tn=(0,I.useMemo)(()=>gn?{content:I18N.Comment.collapse,onClick:()=>Rn({type:"layerExpandedKeySet:close:ref",payload:{refs:[]}}),iconName:"common/layer_collpase_close"}:{content:I18N.ScreenPanel.expand,onClick:()=>Rn({type:"layerExpandedKeySet:open:ref"}),iconName:"common/layer_collpase_open"},[Rn,gn]),wo=(0,I.useCallback)(io=>io.stopPropagation(),[]);return(0,we.jsx)(wr.A,{content:Tn.content,direction:"down",children:(0,we.jsx)("a",{className:"header-icon",onMouseDown:wo,onClick:Tn.onClick,children:(0,we.jsx)(Ga.A,{name:Tn.iconName})})})}const ir=(0,I.memo)(Xa),Ir=$.Ay.header.withConfig({displayName:"styles__StyledHeader",componentId:"sc-1vhzls3-0"})(["width:100%;height:40px;display:flex;align-items:center;justify-content:space-between;border-top:1px solid ",";border-bottom:1px solid ",";&:not(.is-search-mode){padding:0 9px 0 16px;&.isCommunityPreview{padding:0 6px 0 14px;}}.switch-tab{position:relative;display:flex;align-items:center;height:100%;.label{color:",";font-size:12px;font-style:normal;font-weight:400;line-height:12px;&.active{color:",";font-weight:500;}}button{height:40px;width:40px;&:lang(en){width:52px;}display:flex;justify-content:center;align-items:center;&.readonly{pointer-events:none;color:",";}}.indicator{position:absolute;left:8px;bottom:0px;height:2px;width:24px;background-color:",";transition:left 0.2s ease-in-out;&.page{left:8px;}&.layer{left:48px;&:lang(en){left:60px;}}}}&.has-drag{cursor:grab;}.header-icon{","}.buttons{display:flex;.sticky-collapse{margin-left:4px;}}.searchBar{height:28px;margin:6px 0;}"],Tt=>Tt.theme.color_bg_border_01,Tt=>Tt.theme.color_bg_border_01,Tt=>Tt.theme.color_text_L3,Tt=>Tt.theme.color_text_L1,Tt=>Tt.theme.color_text_L1,Tt=>Tt.theme.color_text_L1,Nn.n9);function Er(Tt){const{mode:mn="all",keyword:Rn,height:gn,navIndex:Tn,onSwitchTab:wo,onChangeHeight:io,onChangeKeyword:fo}=Tt,co=(0,J.d4)(T.pH),ga=(0,J.d4)(T.jx),Fo=(0,J.d4)(j.r),Eo=(0,I.useRef)(null),Oa=ga===q.qi.OnlyView,Ra=Fo==null?void 0:Fo.isEditingProjectMain,[tr,Ar]=(0,I.useState)(!1),nr=(0,I.useCallback)(Ci=>Ci.stopPropagation(),[]),$a=(0,I.useCallback)(Ci=>{Ci.stopPropagation(),wo(Number(Ci.currentTarget.dataset.index))},[wo]),Rr=(0,I.useCallback)(Ci=>{if(Ci.stopPropagation(),tr)return;const Zi=window.innerHeight-310,Zr=Ci.clientY,Hi=-1,yr=os=>{const Ee=(os.clientY-Zr)*Hi,Ue=Math.max(Math.min(gn+Ee,Zi),Se.nG);io(Ue)},$r=()=>{document.removeEventListener("mousemove",yr),document.removeEventListener("mouseup",$r)};document.addEventListener("mousemove",yr),document.addEventListener("mouseup",$r)},[tr,gn,io]),or=(0,I.useCallback)(()=>Ar(!0),[]),Ba=(0,I.useCallback)(Ci=>{Ci.stopPropagation(),fo(""),Ar(!1)},[fo]),Ja=Ci=>{Eo.current&&clearTimeout(Eo.current),Eo.current=setTimeout(()=>{wo(Number(Ci))},ai.wy)},Za=()=>{Eo.current&&(clearTimeout(Eo.current),Eo.current=null)},Nr=co?262:310,ii=Tn===0?I18N.ScreenPanel.search_screen:I18N.ScreenPanel.search_widgets;return(0,we.jsxs)(we.Fragment,{children:[(0,we.jsx)(an.A,{placement:"top",value:gn,min:Se.nG,max:window.innerHeight-Nr,onChange:io}),(0,we.jsx)(Ir,{className:B()({"has-drag":!tr},{"is-search-mode":tr},{isCommunityPreview:co}),onMouseDown:Rr,children:tr?(0,we.jsx)(kt.A,{keyword:Rn,placeholder:ii,onChangeKeyword:fo,onExitSearch:Ba}):(0,we.jsxs)(we.Fragment,{children:[(0,we.jsxs)("div",{className:"switch-tab",children:[["all","page"].includes(mn)&&(0,we.jsx)("button",{className:B()("label page",Tn===0&&"active",mn!=="all"&&"readonly"),"data-index":"0",onClick:$a,onMouseEnter:()=>Ja(0),onMouseLeave:Za,children:I18N.LeftSidePanel.artboard}),["all","layer"].includes(mn)&&(0,we.jsx)("button",{className:B()("label layer",Tn===1&&"active",mn!=="all"&&"readonly"),"data-index":"1",onClick:$a,onMouseEnter:()=>Ja(1),onMouseLeave:Za,children:I18N.LeftSidePanel.layer})]}),(0,we.jsxs)("div",{className:"buttons",children:[Tn===0&&!Oa&&Ra&&(0,we.jsx)(fa,{}),(0,we.jsx)(l.A,{content:Tn===0?I18N.ScreenPanel.search_screen:I18N.ScreenPanel.element_search,direction:"down",children:(0,we.jsx)("a",{className:"header-icon",onMouseDown:nr,onClick:or,children:(0,we.jsx)(Ga.A,{name:"common/search"})})}),Tn===1&&(0,we.jsx)(ir,{})]})]})})]})}const ji=(0,I.memo)(Er),ci=$.Ay.div.withConfig({displayName:"styles__StyledBottomPanel",componentId:"sc-1uo4d86-0"})(["position:relative;background:",";width:100%;height:100%;display:flex;flex-direction:column;overflow:hidden;&.has-bottom-padding{padding-bottom:130px;}.border-resizer.top{top:0;&:hover{background-color:rgba(22,132,252,.6);}&.active{background-color:rgba(22,132,252,.6);}}"],Tt=>Tt.theme.color_bg_white);function Cl(Tt,mn){mn==="click"&&(0,tt.kX)({operation_type:Tt===0?tt.mV.directoryPage:tt.mV.directoryLayer}),mn==="search"&&(0,tn.A)({operation_type:Tt===0?tn.D.SearchPage:tn.D.SearchLayers})}function Di(Tt){let{mode:mn="all",isRenderFreeNumberExceeded:Rn}=Tt;const gn=(0,J.wA)(),Tn=(0,J.d4)(M.K_),wo=(0,J.d4)(M.AT),[io,fo]=(0,I.useState)(""),co=B()({"has-bottom-padding":Rn}),ga=(0,I.useMemo)(()=>mn==="all"?wo:mn==="page"?0:mn==="layer"?1:wo,[mn,wo]),Fo=(0,I.useCallback)(Ar=>{gn({type:"directory-panel:bottom:set:nav",payload:{nav:Ar}}),Cl(Ar,"click")},[gn]),Eo=Uo()((0,I.useCallback)(Ar=>{Ar({type:"entry:update:screen_list_rect"})},[]),20),Oa=(0,I.useCallback)(Ar=>{gn({type:"directory-panel:bottom:set:height",payload:{height:Ar}}),Eo(gn)},[gn,Eo]),Ra=(0,I.useCallback)(Ar=>{fo(Ar),Cl(ga,"search")},[ga]);(0,I.useEffect)(()=>{Cl(ga,"click")},[]);const tr=io.toLowerCase();return(0,we.jsxs)(ci,{style:{flexBasis:Tn},className:co,children:[(0,we.jsx)(ji,{mode:mn,height:Tn,keyword:io,navIndex:ga,onSwitchTab:Fo,onChangeKeyword:Ra,onChangeHeight:Oa}),ga===0&&(0,we.jsx)(qi,{keyword:tr}),ga===1&&(0,we.jsx)(gr,{keyword:tr})]})}const Rs=(0,I.memo)(Di);var wc=s(25306),Vc=s(12246);const Wl=$.Ay.div.withConfig({displayName:"styles__StyledFreeNumberExceeded",componentId:"sc-8hzan9-0"})(["width:100%;padding:16px 10px 10px 10px;display:flex;align-items:center;justify-content:center;color:",";font-size:12px;position:absolute;bottom:0;.free-container{width:100%;border-radius:10px;border:1px solid ",";background:",";display:flex;flex-direction:column;overflow:hidden;.upgrade-head{padding:0 12px;height:40px;background:",";display:flex;align-items:center;justify-content:space-between;color:",';font-family:"PingFang SC";font-size:12px;font-style:normal;font-weight:500;line-height:normal;.upgrade-title{display:flex;align-items:center;gap:6px;.img-box{width:24px;height:24px;display:flex;align-items:center;justify-content:center;border-radius:100%;background:',";img{width:15px;height:15px;}}}.upgrade-btn{padding:4px 8px;border-radius:6px;background:",";;display:flex;align-items:center;font-size:11px;color:white;font-weight:500;gap:2px;cursor:pointer;&:hover{svg{transform:translateY(-2px);transition:all 0.3s ease-in-out;}}}}.rights-box{padding:12px;display:flex;flex-direction:column;gap:8px;}}"],Tt=>Tt.theme.color_text_L1,Tt=>Tt.theme.free_exceeded_panel_border_color,Tt=>Tt.theme.color_bg_white,Tt=>Tt.theme.free_exceeded_panel_bg,Tt=>Tt.theme.color_text_L1,Tt=>Tt.theme.free_exceeded_panel_rocket_bg,Tt=>Tt.theme.free_card_panel_upgrade_btn_bg);var ca=s(79209),Lr=s(27845);const yi={[Lr.L1.Free]:{maxWidgetCount:100,maxPageCount:10,maxCanvasCount:2},[Lr.L1.Solo]:{maxWidgetCount:-1,maxPageCount:480,maxCanvasCount:480},[Lr.Sj.OrgFree]:{maxWidgetCount:100,maxPageCount:10,maxCanvasCount:2},[Lr.Sj.OrgLite]:{maxWidgetCount:-1,maxPageCount:2900,maxCanvasCount:2900}},Ts=$.Ay.div.withConfig({displayName:"styles__StyledRightsProgressItem",componentId:"sc-oqbum8-0"})(["width:100%;height:15px;display:flex;align-items:center;justify-content:space-between;color:",';font-family:"PingFang SC";font-size:11px;font-style:normal;font-weight:400;line-height:normal;.left-container{display:flex;align-items:center;gap:8px;flex:1 0;margin-right:16px;.progress-container{flex:1 0;height:3px;border-radius:2px;background:',";position:relative;.progress-val{position:absolute;top:0;left:0;height:100%;border-radius:2px;background:#4F5BFF;&.red{background:",";}}}}.value-box{display:flex;align-items:center;justify-content:flex-end;.red{color:",";}}"],Tt=>Tt.theme.color_text_L1,Tt=>Tt.theme.color_bg_border_01,Tt=>Tt.theme.color_btn_danger_normal,Tt=>Tt.theme.color_btn_danger_normal),Cc=(0,I.memo)(Tt=>{let{label:mn,value:Rn,maxValue:gn,minWidth:Tn,showValue:wo}=Tt;const io=Rn>=gn;return(0,we.jsxs)(Ts,{children:[(0,we.jsxs)("div",{className:"left-container",children:[mn,(0,we.jsx)("div",{className:"progress-container",children:(0,we.jsx)("div",{className:B()("progress-val",{red:io}),style:{width:Math.min(Rn/gn,1)*100+"%"}})})]}),(0,we.jsxs)("div",{className:"value-box",style:{minWidth:Tn+"px"},children:[(0,we.jsx)("span",{className:B()("current-val",{red:io}),children:wo}),(0,we.jsxs)("span",{className:"max-val",children:["/",gn]})]})]})}),Wi=Tt=>{const Rn=document.createElement("canvas").getContext("2d");if(!Rn)return 0;Rn.font='400 11px "PingFang SC", sans-serif';const gn=Rn.measureText(Tt).width;return Math.floor(gn)},Ml=Tt=>{let{org:mn,setIsRenderFreeNumberExceeded:Rn}=Tt;const gn=(0,J.d4)(To.RX),Tn=(0,J.d4)(M.HA),[wo,io]=(0,I.useState)(0),[fo,co]=(0,I.useState)(0),[ga,Fo]=(0,I.useState)(!1),{maxScreenCount:Eo,maxWidgetCount:Oa,limitExceeded:Ra}=(0,I.useMemo)(()=>{const or=wc.tz.InitialOrg(mn),Ba=or.limitationSdk.prototypeLimit,{plan:Ja}=or.planSdk.prototypePlan,Za=yi[Ja];return{maxScreenCount:Ba.getV8MaxPageCount(),maxWidgetCount:Ba.getMaxWidgetCount(),limitExceeded:Za}},[mn]);(0,I.useEffect)(()=>{const or=(0,ca.Uu)();io(or),co((0,ca.UU)({}))},[gn,wo,Tn]);const tr=function(or){or===void 0&&(or=!1);const Ba=mn&&mn.otype!=="personal",Ja=Ba?"v8_\u4F01\u4E1A_\u6587\u4EF6\u4FE1\u606F\u70B9\u51FB":"v8_\u4E2A\u4EBA_\u6587\u4EF6\u4FE1\u606F\u70B9\u51FB",Za=or?"proto-v8_file_info_upgrade":"proto-v8_file_info_click",Nr=(0,Vc.l)(Ba&&mn,Ja,Za);MB.global.popupHelper.chargeAsync(Nr)};if((0,I.useEffect)(()=>{if(!Ra)return;const{maxCanvasCount:or,maxWidgetCount:Ba}=Ra;if(or<=wo||Ba>0&&Ba<=fo){Fo(!0),Rn(!0);return}Fo(!1)},[wo,fo,Rn,Ra]),!ga||!mn)return null;const Ar=(0,ca.N)(Oa),nr=wo+"/"+Eo,$a=Math.min(fo,999)+"/"+Oa,Rr=Wi(nr.length>$a.length?nr:$a);return(0,we.jsx)(Wl,{children:(0,we.jsxs)("div",{className:"free-container",children:[(0,we.jsxs)("div",{className:"upgrade-head",children:[(0,we.jsxs)("div",{className:"upgrade-title",children:[(0,we.jsx)("div",{className:"img-box",children:(0,we.jsx)("img",{src:"/mb-proto2/images/free-up-rocket.png",alt:""})}),I18N.payment.number_exceeded]}),(0,we.jsxs)("div",{className:"upgrade-btn",onClick:()=>tr(!0),children:[I18N.payment.upgrade,(0,we.jsx)(C.C,{name:"plan/upgrade-white-arrow",isColorPure:!0})]})]}),(0,we.jsxs)("div",{className:"rights-box",children:[(0,we.jsx)(Cc,{label:I18N.LeftSidePanel.page,value:wo,maxValue:Eo,minWidth:Rr,showValue:wo}),!Ar&&(0,we.jsx)(Cc,{label:I18N.LeftSidePanel.widgets,value:fo,maxValue:Oa,minWidth:Rr,showValue:Math.min(fo,999)})]})]})})},Oi=(0,I.memo)(Ml);function zs(){const Tt=(0,J.d4)(j.r),mn=Tt==null?void 0:Tt.isEditingCombo,Rn=(0,J.d4)(T.jx),gn=(0,J.d4)(w.K$),[Tn,wo]=(0,I.useState)(!1),io=!mn&&Rn!==q.qi.OnlyView&&gn;return(0,we.jsx)("div",{className:"mb-left-panel-container",children:(0,we.jsxs)("div",{className:"list-panel",children:[(0,we.jsx)(la,{}),(0,we.jsx)(Rs,{mode:mn?"layer":"all",isRenderFreeNumberExceeded:Tn}),io&&(0,we.jsx)(Oi,{setIsRenderFreeNumberExceeded:wo,org:gn})]})})}const Hl=(0,I.memo)(zs);var El=s(46573);const Xl=$.Ay.div.withConfig({displayName:"styles__StyledLeftPane",componentId:"sc-5fx6js-0"})(["box-sizing:border-box;position:relative;flex-shrink:0;display:flex;align-items:stretch;background:",";box-shadow:1px 0 0 ",";font-size:12px;z-index:4;width:","px;height:100%;&.left-panel-size{box-sizing:border-box;}.mb-left-panel{width:100%;height:100%;display:flex;overflow:hidden;.title{white-space:nowrap;}.mb-left-panel-container{display:flex;flex-direction:column;width:100%;header.tabs-container{height:40px;flex-shrink:0;border-bottom:1px solid ",";font-size:12px;padding:0px 20px 0px 20px;.nav-item:not(:first-child){margin-left:16%;}.nav-item{padding:0;.nav-label{padding:0;width:30px;}&.active{font-weight:500;}}.left-panel-tabs{max-width:104px;}}#mb-layer-panel{flex:1;}}.list-panel{flex:1;position:relative;background:",";display:flex;flex-direction:column;overflow:hidden;.rn-content-body{flex:1;overflow-x:hidden;overflow-y:overlay;padding:8px;}}aside.popups-panel{width:100%;height:100%;border:none;box-shadow:none;}.border-resizer.right{right:-1px;&:hover{background-color:rgba(22,132,252,.6);}&.active{background-color:rgba(22,132,252,.6);}}.scrollbar2-container{overflow:auto;scrollbar-width:none;&::-webkit-scrollbar{display:none;}.bar-vertical{top:40px;height:calc(100% - 40px);}}}&.isDeleteRulerLine{pointer-events:none;}"],Tt=>Tt.theme.color_bg_white,Tt=>Tt.theme.color_bg_border_01,Se.Cj,Tt=>Tt.theme.color_bg_border_02,Tt=>Tt.theme.color_bg_white);class uc extends I.PureComponent{constructor(){super(...arguments),(0,r.A)(this,"setElementRef",mn=>this.$elem=mn),(0,r.A)(this,"handleResizeStart",()=>{this.$elem.style.transition="none"}),(0,r.A)(this,"handleResizeEnd",()=>this.$elem.style.transition=""),(0,r.A)(this,"handleWidthChange",mn=>{const{dispatch:Rn,rootProject:gn}=this.props;Rn({type:"left-panel:set:width",payload:{width:mn,projectCid:gn.cid}}),Rn({type:"entry:update:viewport:rect"}),Rn({type:"entry:observe:dom:left-panel-width"})})}render(){const{isLeftShow:mn,currentPopupPanel:Rn,leftPanelWidth:gn,isDeleteRulerLine:Tn,maxWidth:wo,layout:io,isCommunityPreview:fo}=this.props,co=fo||mn?1:0,ga=Rn===Q.lS.Directory,Fo=Rn===Q.lS.AI,Eo=Q.P4.includes(Rn)||io==="old_right",Oa=co*gn,Ra=co===0?"none":" ";return(0,we.jsx)(Xl,{className:B()("left-panel-box",{"left-panel-size":!mn},{isDeleteRulerLine:Tn}),style:{width:Oa,display:Ra},children:(0,we.jsxs)("div",{className:"mb-left-panel left-panel-body",ref:this.setElementRef,children:[io==="old_right"&&(0,we.jsx)(Hl,{}),io!=="old_right"&&(0,we.jsxs)(we.Fragment,{children:[" ",ga?(0,we.jsx)(Hl,{}):(0,we.jsx)(El.A,{})]}),mn&&!Tn&&Eo&&(0,we.jsx)(an.A,{placement:"right",className:"v-resizer",value:gn,min:Fo?Se.Cj:Se.CN,max:wo,onResizeStart:this.handleResizeStart,onResizeEnd:this.handleResizeEnd,onChange:this.handleWidthChange})]})})}}const Pl=(0,N.Mz)([M.Xf,M.OW,M.uE,Ze.Q,W.g6,w.PL,te.bP,T.pH],(Tt,mn,Rn,gn,Tn,wo,io,fo)=>({isLeftShow:Tt,currentPopupPanel:mn,leftPanelWidth:Rn,isDeleteRulerLine:gn,maxWidth:Tn,rootProject:wo,layout:io,isCommunityPreview:fo})),Pc=(0,J.Ng)(Tt=>Pl(Tt))(uc),Gl=$.Ay.div.withConfig({displayName:"styles__StyledLeftSidePanel",componentId:"sc-1i1nmxp-0"})(["display:flex;position:relative;z-index:2;"]);var vo=s(23200);const ia=(0,vo.$)(Pc);class na extends I.PureComponent{constructor(){super(...arguments),(0,r.A)(this,"toggleLeftPane",()=>{const{dispatch:mn}=this.props;mn({type:"entry:toggle:left-nav-panel"})})}componentDidMount(){var mn,Rn;const{dispatch:gn,layoutV9:Tn}=this.props,wo=(0,ye.XM)();Tn==="recommend"&&!wo&&!((mn=MB.commonGuideHelper)!=null&&mn.checkGuideHasShown(De.c.GUIDE_NOVICE_V9_2408))&&!((Rn=MB.commonGuideHelper)!=null&&Rn.checkGuideHasShown(De.c.GUIDE_NOVICE_V9_2408_STEP_1))&&setTimeout(()=>{gn({type:"left-panel:collapse:panel:show"})},0)}render(){const{isCommunityPreview:mn,isHTMLZipPreviewMode:Rn,isEmbedV2Preview:gn,layout:Tn,isShowRuler:wo,isShowLeftPane:io,isFullScreenMode:fo,onlyView:co}=this.props;return(0,we.jsxs)(Gl,{id:"left-slide-panel","data-is-widget-insertable":!1,"data-is-quick-create-quit":!0,children:[!mn&&!gn&&!co&&Tn!=="old_right"&&(0,we.jsx)(ge,{}),co&&(!mn||fo)?(0,we.jsx)(ia,{isVisible:io,orientation:"left",vacuum:!wo||mn||gn||Rn?0:24,toggleFunc:this.toggleLeftPane,guideKey:De.c.INTER_SWITCHABLE_VIEW_MODE_OV_TOGGLE_PANE_BTN}):(0,we.jsx)(Pc,{})]})}}const Sa=(0,N.Mz)([T.pH,T.rg,T.uu,te.bP,te.qT,M.Xf,T.T7,T.jx,te.MZ],(Tt,mn,Rn,gn,Tn,wo,io,fo,co)=>{const ga=fo===q.qi.OnlyView;return{isCommunityPreview:Tt,isHTMLZipPreviewMode:mn,isEmbedV2Preview:Rn,layout:gn,isShowLeftPane:wo,isShowRuler:Tn,isFullScreenMode:io,onlyView:ga,layoutV9:co}}),Na=(0,J.Ng)(Tt=>Sa(Tt))(na)},40715:(Qn,qe,s)=>{"use strict";s.d(qe,{m:()=>l});var r=s(38502),I=s(18381),J=s(67787),N=s(83199),T=s(17307),te=s(8614),q=s(44229),ne=s(15400),B=s(72214);const l=()=>{const C=(0,I.d4)(te.eP),M=(0,I.d4)(te.SP),w=(0,I.wA)();(0,r.useEffect)(()=>{(0,q._o)(()=>{M&&w({type:"entry:libStyle:manage:set:needUpdateLibs"})})},[w,M]);const y=()=>{w({type:"modal:update:state",payload:{manageStyleLibModal:{isOpen:!0}}})};return(0,B.jsx)(N.A,{content:"\u7BA1\u7406\u8D44\u6E90\u5E93",direction:"down",children:(0,B.jsxs)(U,{className:"manage-libs-opener",children:[C.length>0&&(0,B.jsx)(ne.Jz,{className:"update-red-tip"}),(0,B.jsx)(T.C,{name:"setting_panel/libPanel/manage",size:24,className:"manage-libs-icon",onClick:y})]})})},U=J.Ay.div.withConfig({displayName:"LibManageOpenIcon__StyledLibManageOpenIcon",componentId:"sc-1ixn35e-0"})(["&.manage-libs-opener{width:24px;height:24px;margin-right:4px;position:relative;border-radius:4px;cursor:pointer;&:hover{background:",";}&:active{background:",";}.update-red-tip{top:3px;right:3px;}.svg-icon.manage-libs-icon{fill:none;color:",";path{fill:none;stroke:currentColor;}}}"],C=>C.theme.color_btn_secondary_hover,C=>C.theme.color_btn_secondary_active,C=>C.theme.color_text_L1)},42520:(Qn,qe,s)=>{"use strict";s.d(qe,{A:()=>Qo});var r=s(38502),I=s(95549),J=s(53732),N=s.n(J),T=s(17307),te=s(21489),q=s(93e3),ne=s(27480),B=s(30728),l=s(25337);function U(cn,In,tn,Jt,Ln,Xn,Dn){const{rotate:go}=cn,{w:Uo}=In,Ho=(0,l.WG)(tn,Jt,-go),ua=(0,l.WG)({x:Jt.x,y:Ho.y},Jt,go);let la=Math.sqrt((ua.x-Jt.x)**2+(ua.y-Jt.y)**2);const To={x:ua.x-(ua.x-Jt.x)/2,y:ua.y+(Jt.y-ua.y)/2};if(Ln)return{x:To.x-la/2,y:To.y-la/2,w:la,h:la};if(Dn){const{h:Ia}=Dn;if(la<Ia&&(To.y=To.y-(Ia-la)/2,la=Ia),ua.y>=Jt.y)return In}return{x:To.x-Uo/2,y:To.y-la/2,w:Uo,h:la}}function C(cn,In,tn,Jt,Ln,Xn,Dn){const{rotate:go}=cn,{w:Uo}=In,Ho=(0,l.WG)(tn,Jt,-go),ua=(0,l.WG)({x:Jt.x,y:Ho.y},Jt,go);let la=Math.sqrt((ua.x-Jt.x)**2+(ua.y-Jt.y)**2);const To={x:ua.x-(ua.x-Jt.x)/2,y:ua.y+(Jt.y-ua.y)/2};if(Ln)return{x:To.x-la/2,y:To.y-la/2,w:la,h:la};if(Dn){const{h:Ia}=Dn;if(la<Ia&&(To.y=To.y+(Ia-la)/2,la=Ia),ua.y<=Jt.y)return In}return{x:To.x-Uo/2,y:To.y-la/2,w:Uo,h:la}}function M(cn,In,tn,Jt,Ln,Xn,Dn){const{rotate:go}=cn,{h:Uo}=In,Ho=(0,l.WG)(tn,Jt,-go),ua=(0,l.WG)({x:Ho.x,y:Jt.y},Jt,go);let la=Math.sqrt((ua.x-Jt.x)**2+(ua.y-Jt.y)**2);const To={x:ua.x-(ua.x-Jt.x)/2,y:ua.y+(Jt.y-ua.y)/2};if(Ln)return{x:To.x-la/2,y:To.y-la/2,w:la,h:la};if(Dn){const{w:Ia}=Dn;if(la<Ia&&(To.x=To.x-(Ia-la)/2,la=Ia),ua.x>=Jt.x)return In}return{x:To.x-la/2,y:To.y-Uo/2,w:la,h:Uo}}function w(cn,In,tn,Jt,Ln,Xn,Dn){const{rotate:go}=cn,{h:Uo}=In,Ho=(0,l.WG)(tn,Jt,-go),ua=(0,l.WG)({x:Ho.x,y:Jt.y},Jt,go);let la=Math.sqrt((ua.x-Jt.x)**2+(ua.y-Jt.y)**2);const To={x:ua.x-(ua.x-Jt.x)/2,y:ua.y+(Jt.y-ua.y)/2};if(Ln)return{x:To.x-la/2,y:To.y-la/2,w:la,h:la};if(Dn){const{w:Ia}=Dn;if(la<Ia&&(To.x=To.x+(Ia-la)/2,la=Ia),ua.x<=Jt.x)return In}return{x:To.x-la/2,y:To.y-Uo/2,w:la,h:Uo}}function y(cn,In,tn,Jt,Ln,Xn,Dn){let go=In,Uo=tn;if(Ln){const Ia=Math.atan2(Jt.y-Xn.y,Xn.x-Jt.x),ya=B.Z.distance(tn,Jt),eo={x:Jt.x+ya,y:Jt.y};tn.x<Jt.x||tn.y<Jt.y?Uo=B.Z.rotate(Jt,-Ia,eo):Uo=B.Z.rotate(Jt,Math.PI-Ia,eo)}const{rotate:Ho}=cn,ua=(0,l.EX)(Uo,Jt),la=(0,l.WG)(Uo,ua,-Ho),To=(0,l.WG)(Jt,ua,-Ho);if(Dn){const{w:Ia,h:ya}=Dn,eo=To.x-la.x,Oo=To.y-la.y;if(eo<=0||Oo<=0)return In;eo<Ia&&(la.x=la.x-(Ia-eo)),Oo<ya&&(la.y=la.y-(ya-Oo))}return go={x:la.x<To.x?la.x:To.x,y:la.y<To.y?la.y:To.y,w:Math.abs(To.x-la.x),h:Math.abs(To.y-la.y)},go}function j(cn,In,tn,Jt,Ln,Xn,Dn){let go=In,Uo=tn;if(Ln){const Ia=Math.atan2(Jt.y-Xn.y,Xn.x-Jt.x),ya=B.Z.distance(tn,Jt),eo={x:Jt.x+ya,y:Jt.y};tn.x>Jt.x||tn.y<Jt.y?Uo=B.Z.rotate(Jt,-Ia,eo):Uo=B.Z.rotate(Jt,Math.PI-Ia,eo)}const{rotate:Ho}=cn,ua=(0,l.EX)(Uo,Jt),la=(0,l.WG)(Uo,ua,-Ho),To=(0,l.WG)(Jt,ua,-Ho);if(Dn){const{w:Ia,h:ya}=Dn,eo=la.x-To.x,Oo=To.y-la.y;if(eo<=0||Oo<=0)return In;eo<Ia&&(la.x=la.x+(Ia-eo)),Oo<ya&&(la.y=la.y-(ya-Oo))}return go={x:To.x<la.x?To.x:la.x,y:To.y<la.y?To.y:la.y,w:Math.abs(la.x-To.x),h:Math.abs(To.y-la.y)},go}function Q(cn,In,tn,Jt,Ln,Xn,Dn){let go=In,Uo=tn;if(Ln){const Ia=Math.atan2(Jt.y-Xn.y,Xn.x-Jt.x),ya=B.Z.distance(tn,Jt),eo={x:Jt.x+ya,y:Jt.y};tn.x<Jt.x||tn.y>Jt.y?Uo=B.Z.rotate(Jt,-Ia,eo):Uo=B.Z.rotate(Jt,Math.PI-Ia,eo)}const{rotate:Ho}=cn,ua=(0,l.EX)(Uo,Jt),la=(0,l.WG)(Jt,ua,-Ho),To=(0,l.WG)(Uo,ua,-Ho);if(Dn){const{w:Ia,h:ya}=Dn,eo=la.x-To.x,Oo=To.y-la.y;if(eo<=0||Oo<=0)return In;eo<Ia&&(To.x=To.x-(Ia-eo)),Oo<ya&&(To.y=To.y+(ya-Oo))}return go={x:To.x<la.x?To.x:la.x,y:To.y<la.y?To.y:la.y,w:Math.abs(la.x-To.x),h:Math.abs(To.y-la.y)},go}function ze(cn,In,tn,Jt,Ln,Xn,Dn){let go=In,Uo=tn;if(Ln){const Ia=Math.atan2(Jt.y-Xn.y,Xn.x-Jt.x),ya=B.Z.distance(tn,Jt),eo={x:Jt.x+ya,y:Jt.y};tn.x>Jt.x||tn.y>Jt.y?Uo=B.Z.rotate(Jt,-Ia,eo):Uo=B.Z.rotate(Jt,Math.PI-Ia,eo)}const{rotate:Ho}=cn,ua=(0,l.EX)(Uo,Jt),la=(0,l.WG)(Jt,ua,-Ho),To=(0,l.WG)(Uo,ua,-Ho);if(Dn){const{w:Ia,h:ya}=Dn,eo=To.x-la.x,Oo=To.y-la.y;if(eo<=0||Oo<=0)return In;eo<Ia&&(To.x=To.x+(Ia-eo)),Oo<ya&&(To.y=To.y+(ya-Oo))}return go={x:la.x<To.x?la.x:To.x,y:la.y<To.y?la.y:To.y,w:Math.abs(To.x-la.x),h:Math.abs(To.y-la.y)},go}const me={t:U,r:w,l:M,b:C,tl:y,tr:j,bl:Q,br:ze};function Se(cn,In,tn,Jt,Ln,Xn,Dn,go){return me[cn](In,tn,Jt,Ln,Xn,Dn,go)}const Me=["tl","t","tr","r","br","b","bl","l"],De=["tl","tr","br","bl"],tt={tl:0,t:45,tr:90,r:135,br:180,b:225,bl:270,l:315},at=[{start:338,end:23,cursor:"nw",rotateCursor:"url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0nMjAnIGhlaWdodD0nMjAnIHhtbG5zPSdodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2Zycgc3R5bGU9J3RyYW5zZm9ybTogcm90YXRlKDI3Ni45Nzc5MjU2ODcyNDkzNWRlZyknPjxkZWZzPjxmaWx0ZXIgeD0nLTc1JScgeT0nLTc1JScgd2lkdGg9JzI1MCUnIGhlaWdodD0nMjUwJScgZmlsdGVyVW5pdHM9J29iamVjdEJvdW5kaW5nQm94JyBpZD0nYSc+PGZlT2Zmc2V0IGR5PScxJyBpbj0nU291cmNlQWxwaGEnIHJlc3VsdD0nc2hhZG93T2Zmc2V0T3V0ZXIxJy8+PGZlR2F1c3NpYW5CbHVyIHN0ZERldmlhdGlvbj0nMS41JyBpbj0nc2hhZG93T2Zmc2V0T3V0ZXIxJyByZXN1bHQ9J3NoYWRvd0JsdXJPdXRlcjEnLz48ZmVDb2xvck1hdHJpeCB2YWx1ZXM9JzAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAuNCAwJyBpbj0nc2hhZG93Qmx1ck91dGVyMScgcmVzdWx0PSdzaGFkb3dNYXRyaXhPdXRlcjEnLz48ZmVNZXJnZT48ZmVNZXJnZU5vZGUgaW49J3NoYWRvd01hdHJpeE91dGVyMScvPjxmZU1lcmdlTm9kZSBpbj0nU291cmNlR3JhcGhpYycvPjwvZmVNZXJnZT48L2ZpbHRlcj48L2RlZnM+PGcgZmlsdGVyPSd1cmwoI2EpJyB0cmFuc2Zvcm09J3RyYW5zbGF0ZSg0IDMpJyBmaWxsPScjMDAwJyBmaWxsLXJ1bGU9J25vbnplcm8nIHN0cm9rZT0nI0ZGRic+PHBhdGggZD0nTTIuOTkxLS43MjRMMy40MTQgMS41SDVjMS41MTkgMCAyLjg5NC42MTYgMy44OSAxLjYxQTUuNDgzIDUuNDgzIDAgMDExMC41IDdoMHYxLjVoMi4wMTlsLTIuOCA0LjEwN0w2LjI3NiA5LjAxIDguNSA4LjU4NlY3YzAtLjk2Ni0uMzkyLTEuODQxLTEuMDI1LTIuNDc1QTMuNDg5IDMuNDg5IDAgMDA1IDMuNWgwLTEuNXYyLjAxOWwtNC4xMDctMi44TDIuOTktLjcyNHonLz48L2c+PC9zdmc+) 12 12, auto"},{start:23,end:68,cursor:"n",rotateCursor:"url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0nMjAnIGhlaWdodD0nMjAnIHhtbG5zPSdodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2Zycgc3R5bGU9J3RyYW5zZm9ybTogcm90YXRlKDMxMi45OTIzMDc4MzEwMDM3ZGVnKSc+PGRlZnM+PGZpbHRlciB4PSctNzUlJyB5PSctNzUlJyB3aWR0aD0nMjUwJScgaGVpZ2h0PScyNTAlJyBmaWx0ZXJVbml0cz0nb2JqZWN0Qm91bmRpbmdCb3gnIGlkPSdhJz48ZmVPZmZzZXQgZHk9JzEnIGluPSdTb3VyY2VBbHBoYScgcmVzdWx0PSdzaGFkb3dPZmZzZXRPdXRlcjEnLz48ZmVHYXVzc2lhbkJsdXIgc3RkRGV2aWF0aW9uPScxLjUnIGluPSdzaGFkb3dPZmZzZXRPdXRlcjEnIHJlc3VsdD0nc2hhZG93Qmx1ck91dGVyMScvPjxmZUNvbG9yTWF0cml4IHZhbHVlcz0nMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMC40IDAnIGluPSdzaGFkb3dCbHVyT3V0ZXIxJyByZXN1bHQ9J3NoYWRvd01hdHJpeE91dGVyMScvPjxmZU1lcmdlPjxmZU1lcmdlTm9kZSBpbj0nc2hhZG93TWF0cml4T3V0ZXIxJy8+PGZlTWVyZ2VOb2RlIGluPSdTb3VyY2VHcmFwaGljJy8+PC9mZU1lcmdlPjwvZmlsdGVyPjwvZGVmcz48ZyBmaWx0ZXI9J3VybCgjYSknIHRyYW5zZm9ybT0ndHJhbnNsYXRlKDQgMyknIGZpbGw9JyMwMDAnIGZpbGwtcnVsZT0nbm9uemVybycgc3Ryb2tlPScjRkZGJz48cGF0aCBkPSdNMi45OTEtLjcyNEwzLjQxNCAxLjVINWMxLjUxOSAwIDIuODk0LjYxNiAzLjg5IDEuNjFBNS40ODMgNS40ODMgMCAwMTEwLjUgN2gwdjEuNWgyLjAxOWwtMi44IDQuMTA3TDYuMjc2IDkuMDEgOC41IDguNTg2VjdjMC0uOTY2LS4zOTItMS44NDEtMS4wMjUtMi40NzVBMy40ODkgMy40ODkgMCAwMDUgMy41aDAtMS41djIuMDE5bC00LjEwNy0yLjhMMi45OS0uNzI0eicvPjwvZz48L3N2Zz4=) 12 12, auto"},{start:68,end:113,cursor:"ne",rotateCursor:"url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0nMjAnIGhlaWdodD0nMjAnIHhtbG5zPSdodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2Zycgc3R5bGU9J3RyYW5zZm9ybTogcm90YXRlKDQuOTY0NDg0NzY1NjM0MjExZGVnKSc+PGRlZnM+PGZpbHRlciB4PSctNzUlJyB5PSctNzUlJyB3aWR0aD0nMjUwJScgaGVpZ2h0PScyNTAlJyBmaWx0ZXJVbml0cz0nb2JqZWN0Qm91bmRpbmdCb3gnIGlkPSdhJz48ZmVPZmZzZXQgZHk9JzEnIGluPSdTb3VyY2VBbHBoYScgcmVzdWx0PSdzaGFkb3dPZmZzZXRPdXRlcjEnLz48ZmVHYXVzc2lhbkJsdXIgc3RkRGV2aWF0aW9uPScxLjUnIGluPSdzaGFkb3dPZmZzZXRPdXRlcjEnIHJlc3VsdD0nc2hhZG93Qmx1ck91dGVyMScvPjxmZUNvbG9yTWF0cml4IHZhbHVlcz0nMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMC40IDAnIGluPSdzaGFkb3dCbHVyT3V0ZXIxJyByZXN1bHQ9J3NoYWRvd01hdHJpeE91dGVyMScvPjxmZU1lcmdlPjxmZU1lcmdlTm9kZSBpbj0nc2hhZG93TWF0cml4T3V0ZXIxJy8+PGZlTWVyZ2VOb2RlIGluPSdTb3VyY2VHcmFwaGljJy8+PC9mZU1lcmdlPjwvZmlsdGVyPjwvZGVmcz48ZyBmaWx0ZXI9J3VybCgjYSknIHRyYW5zZm9ybT0ndHJhbnNsYXRlKDQgMyknIGZpbGw9JyMwMDAnIGZpbGwtcnVsZT0nbm9uemVybycgc3Ryb2tlPScjRkZGJz48cGF0aCBkPSdNMi45OTEtLjcyNEwzLjQxNCAxLjVINWMxLjUxOSAwIDIuODk0LjYxNiAzLjg5IDEuNjFBNS40ODMgNS40ODMgMCAwMTEwLjUgN2gwdjEuNWgyLjAxOWwtMi44IDQuMTA3TDYuMjc2IDkuMDEgOC41IDguNTg2VjdjMC0uOTY2LS4zOTItMS44NDEtMS4wMjUtMi40NzVBMy40ODkgMy40ODkgMCAwMDUgMy41aDAtMS41djIuMDE5bC00LjEwNy0yLjhMMi45OS0uNzI0eicvPjwvZz48L3N2Zz4=) 12 12, auto"},{start:113,end:158,cursor:"e",rotateCursor:"url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0nMjAnIGhlaWdodD0nMjAnIHhtbG5zPSdodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2Zycgc3R5bGU9J3RyYW5zZm9ybTogcm90YXRlKDM4LjQ1NTk0Nzc2NzY3MzcwNmRlZyknPjxkZWZzPjxmaWx0ZXIgeD0nLTc1JScgeT0nLTc1JScgd2lkdGg9JzI1MCUnIGhlaWdodD0nMjUwJScgZmlsdGVyVW5pdHM9J29iamVjdEJvdW5kaW5nQm94JyBpZD0nYSc+PGZlT2Zmc2V0IGR5PScxJyBpbj0nU291cmNlQWxwaGEnIHJlc3VsdD0nc2hhZG93T2Zmc2V0T3V0ZXIxJy8+PGZlR2F1c3NpYW5CbHVyIHN0ZERldmlhdGlvbj0nMS41JyBpbj0nc2hhZG93T2Zmc2V0T3V0ZXIxJyByZXN1bHQ9J3NoYWRvd0JsdXJPdXRlcjEnLz48ZmVDb2xvck1hdHJpeCB2YWx1ZXM9JzAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAuNCAwJyBpbj0nc2hhZG93Qmx1ck91dGVyMScgcmVzdWx0PSdzaGFkb3dNYXRyaXhPdXRlcjEnLz48ZmVNZXJnZT48ZmVNZXJnZU5vZGUgaW49J3NoYWRvd01hdHJpeE91dGVyMScvPjxmZU1lcmdlTm9kZSBpbj0nU291cmNlR3JhcGhpYycvPjwvZmVNZXJnZT48L2ZpbHRlcj48L2RlZnM+PGcgZmlsdGVyPSd1cmwoI2EpJyB0cmFuc2Zvcm09J3RyYW5zbGF0ZSg0IDMpJyBmaWxsPScjMDAwJyBmaWxsLXJ1bGU9J25vbnplcm8nIHN0cm9rZT0nI0ZGRic+PHBhdGggZD0nTTIuOTkxLS43MjRMMy40MTQgMS41SDVjMS41MTkgMCAyLjg5NC42MTYgMy44OSAxLjYxQTUuNDgzIDUuNDgzIDAgMDExMC41IDdoMHYxLjVoMi4wMTlsLTIuOCA0LjEwN0w2LjI3NiA5LjAxIDguNSA4LjU4NlY3YzAtLjk2Ni0uMzkyLTEuODQxLTEuMDI1LTIuNDc1QTMuNDg5IDMuNDg5IDAgMDA1IDMuNWgwLTEuNXYyLjAxOWwtNC4xMDctMi44TDIuOTktLjcyNHonLz48L2c+PC9zdmc+) 12 12, auto"},{start:158,end:203,cursor:"se",rotateCursor:"url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0nMjAnIGhlaWdodD0nMjAnIHhtbG5zPSdodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2Zycgc3R5bGU9J3RyYW5zZm9ybTogcm90YXRlKDEwMC42MTE5NjU2NDIyMTg1OWRlZyknPjxkZWZzPjxmaWx0ZXIgeD0nLTc1JScgeT0nLTc1JScgd2lkdGg9JzI1MCUnIGhlaWdodD0nMjUwJScgZmlsdGVyVW5pdHM9J29iamVjdEJvdW5kaW5nQm94JyBpZD0nYSc+PGZlT2Zmc2V0IGR5PScxJyBpbj0nU291cmNlQWxwaGEnIHJlc3VsdD0nc2hhZG93T2Zmc2V0T3V0ZXIxJy8+PGZlR2F1c3NpYW5CbHVyIHN0ZERldmlhdGlvbj0nMS41JyBpbj0nc2hhZG93T2Zmc2V0T3V0ZXIxJyByZXN1bHQ9J3NoYWRvd0JsdXJPdXRlcjEnLz48ZmVDb2xvck1hdHJpeCB2YWx1ZXM9JzAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAuNCAwJyBpbj0nc2hhZG93Qmx1ck91dGVyMScgcmVzdWx0PSdzaGFkb3dNYXRyaXhPdXRlcjEnLz48ZmVNZXJnZT48ZmVNZXJnZU5vZGUgaW49J3NoYWRvd01hdHJpeE91dGVyMScvPjxmZU1lcmdlTm9kZSBpbj0nU291cmNlR3JhcGhpYycvPjwvZmVNZXJnZT48L2ZpbHRlcj48L2RlZnM+PGcgZmlsdGVyPSd1cmwoI2EpJyB0cmFuc2Zvcm09J3RyYW5zbGF0ZSg0IDMpJyBmaWxsPScjMDAwJyBmaWxsLXJ1bGU9J25vbnplcm8nIHN0cm9rZT0nI0ZGRic+PHBhdGggZD0nTTIuOTkxLS43MjRMMy40MTQgMS41SDVjMS41MTkgMCAyLjg5NC42MTYgMy44OSAxLjYxQTUuNDgzIDUuNDgzIDAgMDExMC41IDdoMHYxLjVoMi4wMTlsLTIuOCA0LjEwN0w2LjI3NiA5LjAxIDguNSA4LjU4NlY3YzAtLjk2Ni0uMzkyLTEuODQxLTEuMDI1LTIuNDc1QTMuNDg5IDMuNDg5IDAgMDA1IDMuNWgwLTEuNXYyLjAxOWwtNC4xMDctMi44TDIuOTktLjcyNHonLz48L2c+PC9zdmc+) 12 12, auto"},{start:203,end:248,cursor:"s",rotateCursor:"url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0nMjAnIGhlaWdodD0nMjAnIHhtbG5zPSdodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2Zycgc3R5bGU9J3RyYW5zZm9ybTogcm90YXRlKDEzMC4wMDY5MDQxMzM2NjA5ZGVnKSc+PGRlZnM+PGZpbHRlciB4PSctNzUlJyB5PSctNzUlJyB3aWR0aD0nMjUwJScgaGVpZ2h0PScyNTAlJyBmaWx0ZXJVbml0cz0nb2JqZWN0Qm91bmRpbmdCb3gnIGlkPSdhJz48ZmVPZmZzZXQgZHk9JzEnIGluPSdTb3VyY2VBbHBoYScgcmVzdWx0PSdzaGFkb3dPZmZzZXRPdXRlcjEnLz48ZmVHYXVzc2lhbkJsdXIgc3RkRGV2aWF0aW9uPScxLjUnIGluPSdzaGFkb3dPZmZzZXRPdXRlcjEnIHJlc3VsdD0nc2hhZG93Qmx1ck91dGVyMScvPjxmZUNvbG9yTWF0cml4IHZhbHVlcz0nMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMC40IDAnIGluPSdzaGFkb3dCbHVyT3V0ZXIxJyByZXN1bHQ9J3NoYWRvd01hdHJpeE91dGVyMScvPjxmZU1lcmdlPjxmZU1lcmdlTm9kZSBpbj0nc2hhZG93TWF0cml4T3V0ZXIxJy8+PGZlTWVyZ2VOb2RlIGluPSdTb3VyY2VHcmFwaGljJy8+PC9mZU1lcmdlPjwvZmlsdGVyPjwvZGVmcz48ZyBmaWx0ZXI9J3VybCgjYSknIHRyYW5zZm9ybT0ndHJhbnNsYXRlKDQgMyknIGZpbGw9JyMwMDAnIGZpbGwtcnVsZT0nbm9uemVybycgc3Ryb2tlPScjRkZGJz48cGF0aCBkPSdNMi45OTEtLjcyNEwzLjQxNCAxLjVINWMxLjUxOSAwIDIuODk0LjYxNiAzLjg5IDEuNjFBNS40ODMgNS40ODMgMCAwMTEwLjUgN2gwdjEuNWgyLjAxOWwtMi44IDQuMTA3TDYuMjc2IDkuMDEgOC41IDguNTg2VjdjMC0uOTY2LS4zOTItMS44NDEtMS4wMjUtMi40NzVBMy40ODkgMy40ODkgMCAwMDUgMy41aDAtMS41djIuMDE5bC00LjEwNy0yLjhMMi45OS0uNzI0eicvPjwvZz48L3N2Zz4=) 12 12, auto"},{start:248,end:293,cursor:"sw",rotateCursor:"url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0nMjAnIGhlaWdodD0nMjAnIHhtbG5zPSdodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2Zycgc3R5bGU9J3RyYW5zZm9ybTogcm90YXRlKDE3OC4xNjgxMzM0MTgxMDYzZGVnKSc+PGRlZnM+PGZpbHRlciB4PSctNzUlJyB5PSctNzUlJyB3aWR0aD0nMjUwJScgaGVpZ2h0PScyNTAlJyBmaWx0ZXJVbml0cz0nb2JqZWN0Qm91bmRpbmdCb3gnIGlkPSdhJz48ZmVPZmZzZXQgZHk9JzEnIGluPSdTb3VyY2VBbHBoYScgcmVzdWx0PSdzaGFkb3dPZmZzZXRPdXRlcjEnLz48ZmVHYXVzc2lhbkJsdXIgc3RkRGV2aWF0aW9uPScxLjUnIGluPSdzaGFkb3dPZmZzZXRPdXRlcjEnIHJlc3VsdD0nc2hhZG93Qmx1ck91dGVyMScvPjxmZUNvbG9yTWF0cml4IHZhbHVlcz0nMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMC40IDAnIGluPSdzaGFkb3dCbHVyT3V0ZXIxJyByZXN1bHQ9J3NoYWRvd01hdHJpeE91dGVyMScvPjxmZU1lcmdlPjxmZU1lcmdlTm9kZSBpbj0nc2hhZG93TWF0cml4T3V0ZXIxJy8+PGZlTWVyZ2VOb2RlIGluPSdTb3VyY2VHcmFwaGljJy8+PC9mZU1lcmdlPjwvZmlsdGVyPjwvZGVmcz48ZyBmaWx0ZXI9J3VybCgjYSknIHRyYW5zZm9ybT0ndHJhbnNsYXRlKDQgMyknIGZpbGw9JyMwMDAnIGZpbGwtcnVsZT0nbm9uemVybycgc3Ryb2tlPScjRkZGJz48cGF0aCBkPSdNMi45OTEtLjcyNEwzLjQxNCAxLjVINWMxLjUxOSAwIDIuODk0LjYxNiAzLjg5IDEuNjFBNS40ODMgNS40ODMgMCAwMTEwLjUgN2gwdjEuNWgyLjAxOWwtMi44IDQuMTA3TDYuMjc2IDkuMDEgOC41IDguNTg2VjdjMC0uOTY2LS4zOTItMS44NDEtMS4wMjUtMi40NzVBMy40ODkgMy40ODkgMCAwMDUgMy41aDAtMS41djIuMDE5bC00LjEwNy0yLjhMMi45OS0uNzI0eicvPjwvZz48L3N2Zz4=) 12 12, auto"},{start:293,end:338,cursor:"w",rotateCursor:"url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0nMjAnIGhlaWdodD0nMjAnIHhtbG5zPSdodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2Zycgc3R5bGU9J3RyYW5zZm9ybTogcm90YXRlKDIyMi41OTMwMjg0OTU4OTM5OGRlZyknPjxkZWZzPjxmaWx0ZXIgeD0nLTc1JScgeT0nLTc1JScgd2lkdGg9JzI1MCUnIGhlaWdodD0nMjUwJScgZmlsdGVyVW5pdHM9J29iamVjdEJvdW5kaW5nQm94JyBpZD0nYSc+PGZlT2Zmc2V0IGR5PScxJyBpbj0nU291cmNlQWxwaGEnIHJlc3VsdD0nc2hhZG93T2Zmc2V0T3V0ZXIxJy8+PGZlR2F1c3NpYW5CbHVyIHN0ZERldmlhdGlvbj0nMS41JyBpbj0nc2hhZG93T2Zmc2V0T3V0ZXIxJyByZXN1bHQ9J3NoYWRvd0JsdXJPdXRlcjEnLz48ZmVDb2xvck1hdHJpeCB2YWx1ZXM9JzAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAuNCAwJyBpbj0nc2hhZG93Qmx1ck91dGVyMScgcmVzdWx0PSdzaGFkb3dNYXRyaXhPdXRlcjEnLz48ZmVNZXJnZT48ZmVNZXJnZU5vZGUgaW49J3NoYWRvd01hdHJpeE91dGVyMScvPjxmZU1lcmdlTm9kZSBpbj0nU291cmNlR3JhcGhpYycvPjwvZmVNZXJnZT48L2ZpbHRlcj48L2RlZnM+PGcgZmlsdGVyPSd1cmwoI2EpJyB0cmFuc2Zvcm09J3RyYW5zbGF0ZSg0IDMpJyBmaWxsPScjMDAwJyBmaWxsLXJ1bGU9J25vbnplcm8nIHN0cm9rZT0nI0ZGRic+PHBhdGggZD0nTTIuOTkxLS43MjRMMy40MTQgMS41SDVjMS41MTkgMCAyLjg5NC42MTYgMy44OSAxLjYxQTUuNDgzIDUuNDgzIDAgMDExMC41IDdoMHYxLjVoMi4wMTlsLTIuOCA0LjEwN0w2LjI3NiA5LjAxIDguNSA4LjU4NlY3YzAtLjk2Ni0uMzkyLTEuODQxLTEuMDI1LTIuNDc1QTMuNDg5IDMuNDg5IDAgMDA1IDMuNWgwLTEuNXYyLjAxOWwtNC4xMDctMi44TDIuOTktLjcyNHonLz48L2c+PC9zdmc+) 12 12, auto"}];var ht=s(67787);const Je=ht.Ay.div.withConfig({displayName:"styles__StyledResizerDiv",componentId:"sc-2o9ura-0"})(["position:absolute;z-index:2;& > *{pointer-events:auto;}.square{position:absolute;width:15px;height:15px;&::before{content:'';display:block;width:7px;height:7px;position:absolute;left:4px;top:4px;background-color:#fff;border:1px solid #1684FC;}}.rotate{position:absolute;width:14px;height:14px;background-color:transparent;&.tr{top:-14px;right:-14px;transform:scale(1.5);}&.tl{top:-14px;left:-14px;transform:scale(1.5);}&.br{bottom:-14px;right:-14px;transform:scale(1.5);}&.bl{bottom:-14px;left:-14px;transform:scale(1.5);}}.resizable-handler{position:absolute;width:14px;height:14px;cursor:pointer;z-index:1;&.tl,&.tr,&.bl,&.br{z-index:2;}&.tl,&.tr{top:-7px;}&.tl,&.bl{left:-7px;}&.bl,&.br{bottom:-7px;}&.br,&.tr{right:-7px;}&.r,&.l{height:100%;top:3px;}&.r{right:-7px;}&.l{left:-7px;}&.t,&.b{left:3px;width:100%;}&.t{top:-7px;}&.b{bottom:-7px;}}.t,.tl,.tr{top:-7px;}.b,.bl,.br{bottom:-7px;}.r,.tr,.br{right:-7px;}.tl,.l,.bl{left:-7px;}.l,.r{top:50%;margin-top:-7px;}.t,.b{left:50%;margin-left:-7px;}"]);var $=s(72214);class mt extends r.Component{constructor(){super(...arguments),(0,I.A)(this,"onResize",In=>{const{style:tn,comment:{canvasCid:Jt,cid:Ln,rect:Xn},viewport:{scale:Dn,offset:go},mode:Uo,dispatch:Ho}=this.props,ua={offset:{x:0,y:0},scale:Dn/100},{direction:la}=In.currentTarget.dataset,{rotate:To=0}=Xn||{rotate:0};let Ia={...q.L.applyRect(ua,Xn),rotate:To};Uo==="preview"&&(Ia={...ne.rw.xywh(Number(tn.left),Number(tn.top),Number(tn.width),Number(tn.height)),rotate:To});const ya=ne.rw.center(Ia),eo=(0,l.mk)(Ia,ya,la),Oo={x:In.clientX,y:In.clientY},so={x:ya.x-(eo.x-ya.x),y:ya.y-(eo.y-ya.y)};let to=!0;const Vo=Qa=>{if(to){to=!1;return}Ho({type:"entry:comment:be-dragging"});const{style:qr}=this.props,kr={x:Qa.clientX,y:Qa.clientY},ur=B.Z.add(eo,B.Z.subtract(kr,Oo)),Mr=Se(la,Ia,{x:qr.left,y:qr.top,w:qr.width,h:qr.height},ur,so),gr={x:Mr.x,y:Mr.y},dr={x:Mr.x+Mr.w,y:Mr.y+Mr.h};if(Uo==="design"){const wi=q.L.applyInverse(ua,gr),gi=q.L.applyInverse(ua,dr),Li={x:wi.x,y:wi.y,w:gi.x-wi.x,h:gi.y-wi.y,rotate:To};Ho({type:"entry:comment:resize",payload:{cid:Ln,rect:Li}})}else{const wi=(0,te._p)(gr,Jt,{offset:go,scale:Dn/100}),gi=(0,te._p)(dr,Jt,{offset:go,scale:Dn/100}),Li={x:wi.x,y:wi.y,w:gi.x-wi.x,h:gi.y-wi.y,rotate:To};Ho({type:"entry:comment:resize",payload:{cid:Ln,rect:Li,screenRect:Mr}})}},ta=()=>{Ho({type:"entry:comment:benot-dragging",payload:{cid:Ln,undo:!0}}),document.removeEventListener("mousemove",Vo,!1),document.removeEventListener("mouseup",ta,!1)};document.addEventListener("mousemove",Vo,!1),document.addEventListener("mouseup",ta,!1)}),(0,I.A)(this,"getCursor",In=>{const tn=(0,l.WR)(In),Jt={};let Ln=-1;return Me.forEach(Xn=>{const Dn=(0,l.WR)(tt[Xn]+tn),go=at.length;for(;;){Ln=(Ln+1)%go;const Uo=at[Ln];if(Dn<23||Dn>=338){Jt[Xn]={cursor:at[0].cursor+"-resize",rotateCursor:at[0].rotateCursor};return}if(Uo.start<=Dn&&Dn<Uo.end){Jt[Xn]={cursor:Uo.cursor+"-resize",rotateCursor:Uo.rotateCursor};return}}}),Jt})}render(){const{style:In,comment:{rect:tn}}=this.props,Jt=(tn==null?void 0:tn.rotate)||0,Ln=this.getCursor(Jt);return(0,$.jsxs)(Je,{className:"single-resizer",style:In,children:[De.map(Xn=>(0,$.jsx)("div",{className:Xn+" square"},Xn)),Me.map(Xn=>{const Dn=Ln[Xn].cursor;return(0,$.jsx)("div",{style:{cursor:Dn},"data-direction":Xn,className:Xn+" resizable-handler",onMouseDown:this.onResize},Xn)})]})}}const yt=mt;class Le extends r.Component{constructor(){super(...arguments),(0,I.A)(this,"onAnchorMouseDown",In=>{In.stopPropagation();const{comment:tn,dispatch:Jt}=this.props;Jt({type:"entry:comment:anchor:mousedown",payload:{event:In,comment:tn}})}),(0,I.A)(this,"getAvatar",(In,tn)=>{if(tn!=null&&tn.includes("/images/avatar.png")||!tn){var Jt;return(0,$.jsx)("div",{className:N()("anchor--anchorLabel"),style:{color:"#FFF",fontSize:"14px",lineHeight:"24px",backgroundColor:"rgba(22, 132, 252)"},children:(Jt=In.slice(0,1))==null?void 0:Jt.toUpperCase()})}else return(0,$.jsx)("img",{className:"anchor--anchorLabel",src:tn,draggable:"false",alt:""})}),(0,I.A)(this,"getAnchorRenderDom",(In,tn,Jt)=>{const Ln=(0,te.ug)(Jt),Xn=this.getAvatar(Ln.name,Ln.avatar);return(0,$.jsxs)($.Fragment,{children:[In==="creating"&&(0,$.jsx)(T.C,{className:"comment-icon",name:"comment/creating_comment",size:38}),In==="created"&&(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(T.C,{className:"comment-icon comment-created-icon "+(tn&&"is-active"),name:"comment/created_comment",size:32}),Xn]}),In==="checked"&&(0,$.jsxs)("span",{style:{opacity:.5},children:[(0,$.jsx)(T.C,{className:"comment-icon comment-created-icon "+(tn&&"is-active"),name:"comment/created_comment",size:32}),Xn]})]})})}render(){const{mode:In,viewport:tn,comment:Jt,activeCommentCid:Ln,dispatch:Xn,creatingComment:Dn}=this.props,{cid:go,status:Uo,userInfo:Ho}=Jt,ua=go===Ln,la=go===(Dn==null?void 0:Dn.cid),To=this.getAnchorRenderDom(Uo,ua,Ho),{threadType:Ia}=Jt,ya=(0,te.V3)({comment:Jt,mode:In,viewport:tn});return(0,$.jsx)($.Fragment,{children:Ia==="point"?(0,$.jsx)("div",{"data-cid":go,className:N()({"comment-anchor-container point comment-anchor":!0,active:ua}),style:ya,onMouseDown:this.onAnchorMouseDown,children:To}):(0,$.jsxs)("div",{"data-cid":go,className:N()("rect-anchor-container",{active:ua,creating:la}),style:{pointerEvents:"none"},children:[(0,$.jsx)("div",{className:"comment-anchor-container frame",style:{pointerEvents:"none",position:"absolute",...ya},children:(0,$.jsx)("div",{className:N()({"comment-anchor":!0,active:ua}),style:{right:-36.5,top:-32},onMouseDown:this.onAnchorMouseDown,children:To})}),(0,$.jsx)("div",{className:"comment-rect-anchor",style:{...ya},onMouseDown:this.onAnchorMouseDown}),ua&&(0,$.jsx)(yt,{mode:In,style:ya,viewport:tn,comment:Jt,dispatch:Xn})]})})}}var He=s(78401),ye=s(77866),je=s(28068),ot=s(84877),we=s(66360);function $e(){return{handleReturn:(cn,In,tn)=>{const Jt=cn.setEditorState,Ln=(0,we.h_)(tn,In);return Ln?(Jt(Ln),"handled"):"not-handled"},keyBindingFn:(cn,In)=>[13,38,40].includes(In.keyCode)?In.keyCode:(0,je.K6)(In),handleKeyCommand:(cn,In)=>{const tn=cn.getIsInSearch,Jt=cn.handleConfirm,{isInSearch:Ln}=tn(),Xn=cn.getIsAt();return Ln&&[13,38,40].includes(In)?"handled":[13,"split-block"].includes(In)&&!Xn?(Jt(),"handled"):"not-handled"}}}const Ze=$e();var W=s(13642),an=s(25234),_t=s(38182),nn=s(86964);const Oe=ht.Ay.span.withConfig({displayName:"styles__StyledEmojiIconDiv",componentId:"sc-1uxa3yv-0"})([".emoji-btn{margin:0 4px;width:28px;height:28px;cursor:pointer;border-radius:4px;color:",";&.free-width{width:auto;}&.disabled{background-color:transparent;opacity:.3;cursor:not-allowed;}&:hover{background-color:",";}&:active,&.active{background-color:",";}}.emoji-btn .svg-icon{width:32px;height:32px;}"],cn=>cn.theme.color_text_L1,cn=>cn.theme.color_btn_secondary_active,cn=>cn.theme.color_btn_secondary_active),sn=ht.Ay.div.withConfig({displayName:"styles__StyledEmojiToastDiv",componentId:"sc-1uxa3yv-1"})(["pointer-events:auto;position:absolute;width:282px;border-radius:8px;background-color:",";border:1px solid ",";filter:drop-shadow(2px 8px 20px rgba(0,0,0,0.10));cursor:default;z-index:5;.emoji-triangle{width:24px;height:12px;position:absolute;left:24px;top:-12px;g{path{&:nth-child(1){fill:",";}&:nth-child(2){stroke:",";stroke-opacity:1;fill:none;}}}}.expression-container{width:100%;box-sizing:border-box;padding:10px 0;.expression-title{font-size:12px;flex-wrap:500;line-height:16px;padding:0 20px;margin-bottom:8px;color:",";}.expression-list{color:black;width:100%;height:236px;padding:0 16px;overflow-y:auto;display:flex;flex-direction:row;justify-content:flex-start;align-items:center;flex-wrap:wrap;.emoji-span{width:30px;height:30px;padding:6px;font-size:20px;border-radius:50%;display:flex;flex-direction:row;justify-content:center;align-items:center;&:hover{background-color:",";}}}}.icon-list{width:100%;box-sizing:border-box;border-top:1px solid ",";padding:15px 16px;display:flex;flex-direction:row;justify-content:flex-start;align-items:center;}.emoji-btn{margin:0 4px;width:32px;cursor:pointer;border-radius:4px;.svg-icon{color:",";}&.free-width{width:auto;}&.disabled{background-color:transparent;opacity:.3;cursor:not-allowed;}&:hover{background-color:",";}&:active,&.active{background-color:",";.svg-icon{color:",";}}}.emoji-btn .svg-icon{width:32px;height:32px;}"],cn=>cn.theme.color_bg_white,cn=>cn.theme.color_bg_border_01,cn=>cn.theme.color_bg_white,cn=>cn.theme.color_bg_border_01,cn=>cn.theme.color_text_L1,cn=>cn.theme.color_btn_secondary_hover,cn=>cn.theme.color_bg_border_01,cn=>cn.theme.color_text_L3,cn=>cn.theme.color_btn_secondary_active,cn=>cn.theme.color_btn_secondary_active,cn=>cn.theme.color_text_L1);class It extends r.PureComponent{constructor(){super(...arguments),(0,I.A)(this,"ref",null),(0,I.A)(this,"state",{active:!1}),(0,I.A)(this,"handleEmojiAdd",In=>{let{commentCid:tn,emoji:Jt}=In;const{active:Ln}=this.state;if(!Ln)return;const{commentCid:Xn,onValueChange:Dn}=this.props;Xn===tn&&Dn&&Dn(Jt)}),(0,I.A)(this,"handleClick",()=>{if(!this.ref){this.setState({active:!1});return}const In=this.ref.getBoundingClientRect();if(!In){this.setState({active:!1});return}const{recordCid:tn,dispatch:Jt}=this.props;let Ln=0;if(tn){const Dn=document.querySelector(".comment-panel-container .comment-record-list");Ln=Dn&&Dn.scrollTop||0}const Xn={clientX:In.x,clientY:In.y};Jt({type:"entry:comment:update:emojiToastStyle",payload:{event:Xn,scrollTop:Ln,dom:this.ref}}),this.setState({active:!0})})}componentDidMount(){W.A.on("comment:emoji:add",this.handleEmojiAdd)}componentDidUpdate(){const{emojiToastStyle:In}=this.props,{left:tn,top:Jt}=In,{active:Ln}=this.state;!tn&&!Jt&&Ln&&this.setState({active:!1})}componentWillUnmount(){W.A.off("comment:emoji:add",this.handleEmojiAdd)}render(){const{active:In}=this.state;return(0,$.jsx)(Oe,{className:"emoji-icon",children:(0,$.jsx)(_t.A,{iconRef:tn=>{this.ref=tn},className:"emoji-btn",name:I18N.Comment.emoji,icon:"expressions",active:In,onClick:this.handleClick})})}}const Pt=It,dt=cn=>{const{confirmIsDisabled:In,commentCid:tn,recordCid:Jt,onAddEmoji:Ln,emojiToastStyle:Xn,dispatch:Dn,onConfirm:go,onCancel:Uo}=cn,Ho=(0,r.useCallback)(()=>{Uo&&Uo()},[Uo]),ua=(0,r.useCallback)(()=>{In||go&&go()},[In,go]),la=(0,r.useCallback)(Ia=>{Ln&&Ln(Ia)},[Ln]),To=Ia=>{Ia.stopPropagation()};return(0,$.jsxs)("div",{className:"comment-operation-container clearfix",children:[(0,$.jsx)("div",{className:"pull-left",onMouseDown:To,children:(0,$.jsx)(Pt,{commentCid:tn,recordCid:Jt,emojiToastStyle:Xn,dispatch:Dn,onValueChange:la})}),(0,$.jsxs)("div",{className:"pull-right",onMouseDown:To,children:[(0,$.jsx)(an.Oc,{forceTheme:"light",type:"text",size:"tiny",corner:"soft",className:"operation-btn cancel-btn",onClick:Ho,children:I18N.Comment.cancel}),(0,$.jsx)(an.Oc,{forceTheme:"light",type:"primary",size:"tiny",corner:"soft",className:"operation-btn confirm-btn",disabled:In,onClick:ua,children:I18N.Comment.submit})]})]})},Vn=(0,r.memo)(dt),{handleKeyCommand:o,handleReturn:Gn,keyBindingFn:xt}=Ze;class Ot extends r.PureComponent{constructor(In){super(In),(0,I.A)(this,"editorRef",null),(0,I.A)(this,"handleCompositionstart",()=>{const{editorState:tn}=this.state,Jt=(0,we.AR)(tn);this.setState({editorState:Jt})}),(0,I.A)(this,"getPluginMethods",()=>({setEditorState:this.handleEditorStateChange,getEditorState:this.getEditorState,getIsInSearch:this.getIsInSearch,handleConfirm:this.handleConfirm,getIsAt:this.getIsAt})),(0,I.A)(this,"getEditorState",()=>this.state.editorState),(0,I.A)(this,"getIsInSearch",()=>this.state.isInSearch),(0,I.A)(this,"getIsAt",()=>{var tn,Jt;return((tn=this.props.atStyle)==null?void 0:tn.left)!==0&&((Jt=this.props.atStyle)==null?void 0:Jt.top)!==0}),(0,I.A)(this,"initFocus",()=>{const tn=je.$t.moveFocusToEnd(this.state.editorState);this.handleEditorStateChange(tn)}),(0,I.A)(this,"handleKeyDown",tn=>{const{atStyle:Jt}=this.props,{isInSearch:Ln}=this.state,Xn=(Jt==null?void 0:Jt.left)!==0&&(Jt==null?void 0:Jt.top)!==0;if((Ln||Xn)&&[13,38,40].includes(tn.keyCode))return tn.preventDefault(),!1;const{dispatch:Dn}=this.props;tn.keyCode===27&&Dn({type:"entry:comment:create:esc"})}),(0,I.A)(this,"handleAddEmoji",tn=>{const{editorState:Jt}=this.state,Ln=je.e6.insertText(Jt.getCurrentContent(),Jt.getSelection(),tn,Jt.getCurrentInlineStyle()),Xn=je.$t.push(Jt,Ln,"insert-characters");this.handleEditorStateChange(Xn)}),(0,I.A)(this,"handleCancel",()=>{const{onCancel:tn}=this.props;tn&&tn()}),(0,I.A)(this,"handleConfirm",()=>{var tn;const{editorRawContentObject:Jt,onConfirm:Ln}=this.props;(tn=Jt.blocks)!=null&&(tn=tn[0])!=null&&tn.text&&Ln&&Ln()}),(0,I.A)(this,"handleFocus",()=>{var tn;const{isEditing:Jt,editorRawContentObject:Ln,isCreating:Xn,onChange:Dn}=this.props;if(!Jt&&Dn({isEditing:!0}),(tn=Ln.blocks)!=null&&(tn=tn[0])!=null&&tn.text||Xn)return;const{insertText:go,insertUrl:Uo}=this.insertEntity;if(!go||!Uo)return;const{editorState:Ho}=this.state,ua=(0,we.ts)(Ho,go,Uo);this.handleEditorStateChange(ua)}),(0,I.A)(this,"onSearchChange",tn=>{const{isInSearch:Jt}=this.state,{dispatch:Ln}=this.props,[Xn,Dn,go]=(0,we.Aw)(tn);if(!Xn){this.state.isInSearch&&(Ln({type:"comment:update:atStyle",payload:{atStyle:{keywords:"",top:0,left:0}}}),this.setState({isInSearch:!1,inSearchSelectionJson:null}));return}if(!Jt){const Uo=this.editorRef.getBoundingClientRect(),Ho={clientX:Uo.x,clientY:Uo.y};Ln({type:"entry:comment:update:atStyle",payload:{event:Ho,dom:this.editorRef}}),Ln({type:"comment:update:atStyle",payload:{atStyle:{keywords:Dn}}}),this.setState({isInSearch:!0,inSearchSelectionJson:go});return}Ln({type:"comment:update:atStyle",payload:{atStyle:{keywords:Dn}}}),this.setState({inSearchSelectionJson:go})}),(0,I.A)(this,"handleAtChange",tn=>{let{user:Jt,commentCid:Ln,recordCid:Xn}=tn;if(Xn)return;const{cid:Dn}=this.props;if(Dn!==Ln||!Jt)return;const Uo="@"+(Jt.name||Jt.email||Jt.mobile||Jt.user_cid),Ho="userCid:"+Jt.user_cid,{editorState:ua,inSearchSelectionJson:la}=this.state,To=(0,we.dy)(ua,la,Uo,Ho);this.handleEditorStateChange(To,!0,!0)}),(0,I.A)(this,"handleEditorStateChange",(tn,Jt,Ln)=>{const{onChange:Xn,dispatch:Dn}=this.props;Ln?(Dn({type:"comment:update:atStyle",payload:{atStyle:{keywords:"",top:0,left:0}}}),this.setState({editorState:tn,isInSearch:!1,inSearchSelectionJson:null})):this.setState({editorState:tn}),setTimeout(()=>{Jt||this.onSearchChange(tn)},10);const go=(0,je.dM)(tn.getCurrentContent());Xn({editorRawContentObject:go})}),(0,I.A)(this,"handlePastedText",(tn,Jt,Ln)=>{if(!tn)return"not-handled";const Xn=je.e6.replaceText(Ln.getCurrentContent(),Ln.getSelection(),tn.replace(/\s/g,"").replace(/&nbsp;/g,"").trim());return this.handleEditorStateChange(je.$t.push(Ln,Xn,"insert-fragment")),"handled"}),(0,I.A)(this,"handleTextareaClick",()=>{if(document.activeElement.contentEditable!=="true"){const{isInSearch:tn}=this.state;tn||this.initFocus()}}),(0,I.A)(this,"handleMouseDown",(tn,Jt)=>{let{confirmIsDisabled:Ln}=Jt;Ln||tn.stopPropagation()}),this.state={editorState:je.$t.createEmpty(),isInSearch:!1,inSearchSelectionJson:null}}get insertEntity(){const{isCreating:In,comment:tn,members:Jt}=this.props;if(In)return{insertText:"",insertUrl:""};const{user:Ln}=window.MB,{userInfo:Xn}=tn;if(Ln.cid===Xn.cid)return{insertText:"",insertUrl:""};const Dn=Jt.find(ua=>ua.user_cid===Xn.cid);Dn&&(Xn.name=Dn.name,Xn.avatar=Dn.avatar,Xn.email=Dn.email);const Uo="\u56DE\u590D@"+((Xn==null?void 0:Xn.name)||Xn.email||Xn.mobile||Xn.cid)+": ",Ho="replyUserCid:"+Xn.cid;return{insertText:Uo,insertUrl:Ho}}componentDidMount(){const{isCreating:In}=this.props;if(In&&this.initFocus(),window.addEventListener("keydown",this.handleKeyDown,!1),W.A.on("comment:at:add",this.handleAtChange),this.editorRef){const tn=document.querySelector('.public-DraftEditor-content[contenteditable="true"]');tn&&tn.addEventListener("compositionstart",this.handleCompositionstart)}}componentDidUpdate(In){In.length!==this.props.length&&this.props.editorRawContentObject===""&&this.setState({editorState:je.$t.createEmpty()},()=>{setTimeout(()=>{this.editorRef&&this.editorRef.blur()},16.7)}),In.isEditing!==this.props.isEditing&&this.props.isEditing===!1&&this.setState({editorState:je.$t.createEmpty()},()=>{setTimeout(()=>{this.editorRef&&this.editorRef.blur()},16.7)})}componentWillUnmount(){if(window.removeEventListener("keydown",this.handleKeyDown,!1),W.A.off("comment:at:add",this.handleAtChange),this.editorRef){const In=document.querySelector('.public-DraftEditor-content[contenteditable="true"]');In&&In.removeEventListener("compositionstart",this.handleCompositionstart)}}render(){var In;const{cid:tn,placeholder:Jt,isEditing:Ln,isRecordEditing:Xn,editorRawContentObject:Dn,emojiToastStyle:go,dispatch:Uo}=this.props,{editorState:Ho}=this.state,{insertText:ua}=this.insertEntity,la=ua||Jt,To=Xn||!(Dn&&(In=Dn.blocks)!=null&&(In=In[0])!=null&&In.text);return(0,$.jsxs)("div",{className:"comment-text-area",children:[(0,$.jsx)("div",{className:"comment-editor-container",onClick:this.handleTextareaClick,onMouseDown:Ia=>this.handleMouseDown(Ia,{confirmIsDisabled:To}),children:(0,$.jsx)(ot.c,{editorRef:Ia=>{this.editorRef=Ia},stripPastedStyles:!0,wrapperClassName:"comment-editor-wrapper",editorClassName:"comment-editor",textAlignment:"left",placeholder:la,editorState:Ho,onEditorStateChange:this.handleEditorStateChange,onFocus:this.handleFocus,handlePastedText:this.handlePastedText,keyBindingFn:xt.bind(this,this.getPluginMethods()),handleKeyCommand:o.bind(this,this.getPluginMethods()),handleReturn:Gn.bind(this,this.getPluginMethods()),toolbarHidden:!0,toolbar:{link:{showOpenOptionOnHover:!1}}},tn)}),Ln&&(0,$.jsx)(Vn,{commentCid:tn,confirmIsDisabled:To,emojiToastStyle:go,onAddEmoji:this.handleAddEmoji,onConfirm:this.handleConfirm,onCancel:this.handleCancel,dispatch:Uo})]})}}const wt=Ot,Kt=cn=>{const{cid:In,commentIsEditing:tn,isRecordEditing:Jt,length:Ln,isCreating:Xn,placeholder:Dn,comment:go,emojiToastStyle:Uo,editorRawContentObject:Ho,viewType:ua,members:la,atStyle:To,dispatch:Ia}=cn,{threadType:ya,canvasCid:eo}=go,Oo=(0,r.useCallback)(()=>{Ia({type:"entry:comment:confirm",payload:{cid:In}}),(0,ye.i4)({operation_type:Xn?ye.nU.Create:ye.nU.Response,comment_type:ye.ej[ya],relation:!!eo,operation_from:ye.HI[ua]})},[eo,In,Ia,Xn,ya,ua]),so=(0,r.useCallback)(()=>{Ia({type:"entry:comment:cancel"})},[Ia]),to=(0,r.useCallback)(Vo=>{let{isEditing:ta,rawContent:Qa,editorRawContentObject:qr}=Vo;ta&&(Ia({type:"comment:update:editorIsEditing",payload:{editorIsEditing:!0}}),Ia({type:"comment:update:editingCommentCid",payload:{editingCommentCid:In}})),qr&&Ia({type:"comment:update:editorRawContentObject",payload:{editorRawContentObject:qr}})},[In,Ia]);return(0,$.jsx)("div",{className:"comment-text-input-component",children:(0,$.jsx)(wt,{cid:In,editorRawContentObject:Ho,isEditing:tn,isRecordEditing:Jt,placeholder:Dn,comment:go,length:Ln,isCreating:Xn,emojiToastStyle:Uo,members:la,atStyle:To,onChange:to,onConfirm:Oo,onCancel:so,dispatch:Ia})})},fe=(0,r.memo)(Kt);var bt=s(55244),un=s(34860),gt=s(30024),Wt=s(69815),Un=s(86493),Jn=s(46745);const{handleKeyCommand:Yt,handleReturn:rt,keyBindingFn:An}=Ze;class Nt extends r.PureComponent{constructor(In){super(In),(0,I.A)(this,"editorRef",null),(0,I.A)(this,"getInitData",Ln=>{const Xn=(0,Un.mx)(Ln);return(0,Jn.n)(Xn)}),(0,I.A)(this,"handleCompositionstart",()=>{const{editorState:Ln}=this.state,Xn=(0,we.AR)(Ln);this.setState({editorState:Xn})}),(0,I.A)(this,"getPluginMethods",()=>({setEditorState:this.handleEditorStateChange,getEditorState:this.getEditorState,getIsInSearch:this.getIsInSearch,handleConfirm:this.handleConfirm,getIsAt:this.getIsAt})),(0,I.A)(this,"handleCompositionstart",()=>{const{editorState:Ln}=this.state,Xn=(0,we.AR)(Ln);this.setState({editorState:Xn})}),(0,I.A)(this,"getEditorState",()=>this.state.editorState),(0,I.A)(this,"getIsInSearch",()=>this.state.isInSearch),(0,I.A)(this,"getIsAt",()=>{var Ln,Xn;return((Ln=this.props.atStyle)==null?void 0:Ln.left)!==0&&((Xn=this.props.atStyle)==null?void 0:Xn.top)!==0}),(0,I.A)(this,"initFocus",()=>{const Ln=je.$t.moveFocusToEnd(this.state.editorState);this.handleEditorStateChange(Ln)}),(0,I.A)(this,"handleKeyDown",Ln=>{const{isInSearch:Xn}=this.state;if(Xn&&[13,38,40].includes(Ln.keyCode))return Ln.preventDefault(),!1}),(0,I.A)(this,"handleAddEmoji",Ln=>{const{editorState:Xn}=this.state,Dn=je.e6.insertText(Xn.getCurrentContent(),Xn.getSelection(),Ln,Xn.getCurrentInlineStyle()),go=je.$t.push(Xn,Dn,"insert-characters");this.handleEditorStateChange(go)}),(0,I.A)(this,"handleCancel",()=>{const{onCancel:Ln}=this.props;Ln&&Ln()}),(0,I.A)(this,"handleConfirm",()=>{const{onConfirm:Ln}=this.props,{editorState:Xn}=this.state,Dn=(0,je.dM)(Xn.getCurrentContent());Ln&&Ln(Dn)}),(0,I.A)(this,"onSearchChange",Ln=>{const{isInSearch:Xn}=this.state,{recordCid:Dn,dispatch:go}=this.props,[Uo,Ho,ua]=(0,we.Aw)(Ln);if(!Uo){this.state.isInSearch&&(go({type:"comment:update:atStyle",payload:{atStyle:{keywords:"",top:0,left:0}}}),this.setState({isInSearch:!1,inSearchSelectionJson:null}));return}if(!Xn){const la=this.editorRef.getBoundingClientRect(),To={clientX:la.x,clientY:la.y};go({type:"entry:comment:update:atStyle",payload:{event:To,dom:this.editorRef}}),go({type:"comment:update:atStyle",payload:{atStyle:{keywords:Ho,recordCid:Dn}}}),this.setState({isInSearch:!0,inSearchSelectionJson:ua});return}Ho!==this.state.searchText&&(go({type:"comment:update:atStyle",payload:{atStyle:{keywords:Ho,recordCid:Dn}}}),this.setState({inSearchSelectionJson:ua}))}),(0,I.A)(this,"handleAtChange",Ln=>{let{user:Xn,commentCid:Dn,recordCid:go}=Ln;const{commentCid:Uo,recordCid:Ho}=this.props;if(Uo!==Dn||Ho!==go||!Xn)return;const la="@"+(Xn.name||Xn.email||Xn.mobile||Xn.user_cid),To="userCid:"+Xn.user_cid,{editorState:Ia,inSearchSelectionJson:ya}=this.state,eo=(0,we.dy)(Ia,ya,la,To);this.handleEditorStateChange(eo,!0,!0)}),(0,I.A)(this,"handleEditorStateChange",(Ln,Xn,Dn)=>{const{dispatch:go}=this.props,Uo=(0,je.dM)(Ln.getCurrentContent());Dn?(go({type:"comment:update:atStyle",payload:{atStyle:{keywords:"",top:0,left:0}}}),this.setState({editorState:Ln,curContentObject:Uo,isInSearch:!1,inSearchSelectionJson:null})):this.setState({editorState:Ln,curContentObject:Uo}),setTimeout(()=>{Xn||this.onSearchChange(Ln)},10)}),(0,I.A)(this,"handlePastedText",(Ln,Xn,Dn)=>{if(!Ln)return"not-handled";const go=je.e6.replaceText(Dn.getCurrentContent(),Dn.getSelection(),Ln.replace(/\s/g,"").replace(/&nbsp;/g,"").trim());return this.handleEditorStateChange(je.$t.push(Dn,go,"insert-fragment")),"handled"}),(0,I.A)(this,"handleTextareaClick",()=>{if(document.activeElement.contentEditable!=="true"){const{isInSearch:Ln}=this.state;Ln||this.initFocus()}}),(0,I.A)(this,"handleMouseDown",(Ln,Xn)=>{let{confirmIsDisabled:Dn}=Xn;Dn||Ln.stopPropagation()});const{message:tn}=In,Jt=this.getInitData(tn);this.state={searchText:"",editorState:Jt,curContentObject:(0,Un.mx)(tn),isInSearch:!1,inSearchSelectionJson:null}}componentDidMount(){if(this.initFocus(),window.addEventListener("keydown",this.handleKeyDown,!1),W.A.on("comment:at:add",this.handleAtChange),this.editorRef){const In=document.querySelector('.public-DraftEditor-content[contenteditable="true"]');In&&In.addEventListener("compositionstart",this.handleCompositionstart)}}componentWillUnmount(){if(window.removeEventListener("keydown",this.handleKeyDown,!1),W.A.off("comment:at:add",this.handleAtChange),this.editorRef){const In=document.querySelector('.public-DraftEditor-content[contenteditable="true"]');In&&In.removeEventListener("compositionstart",this.handleCompositionstart)}}render(){var In;const{commentCid:tn,recordCid:Jt,emojiToastStyle:Ln,dispatch:Xn}=this.props,{editorState:Dn,curContentObject:go}=this.state,Uo=!(go&&(In=go.blocks)!=null&&(In=In[0])!=null&&In.text);return(0,$.jsxs)("div",{className:"comment-text-area comment-record-text-area",onMouseDown:Ho=>{this.handleMouseDown(Ho,{confirmIsDisabled:Uo})},children:[(0,$.jsx)("div",{className:"comment-editor-container",onClick:this.handleTextareaClick,children:(0,$.jsx)(ot.c,{editorRef:Ho=>{this.editorRef=Ho},stripPastedStyles:!0,wrapperClassName:"comment-editor-wrapper",editorClassName:"comment-editor",textAlignment:"left",placeholder:"\u8F93\u5165\u8BC4\u8BBA",editorState:Dn,onEditorStateChange:this.handleEditorStateChange,handlePastedText:this.handlePastedText,keyBindingFn:An.bind(this,this.getPluginMethods()),handleKeyCommand:Yt.bind(this,this.getPluginMethods()),handleReturn:rt.bind(this,this.getPluginMethods()),toolbarHidden:!0,toolbar:{link:{showOpenOptionOnHover:!1}}})}),(0,$.jsx)(Vn,{recordCid:Jt,commentCid:tn,emojiToastStyle:Ln,onAddEmoji:this.handleAddEmoji,onConfirm:this.handleConfirm,onCancel:this.handleCancel,dispatch:Xn,confirmIsDisabled:Uo})]})}}const jt=Nt,vn=cn=>{const{isEditing:In,commentCid:tn,record:Jt,emojiToastStyle:Ln,atStyle:Xn,dispatch:Dn}=cn,{cid:go,message:Uo}=Jt,Ho=(0,r.useMemo)(()=>(0,Wt.vp)(Uo,!0),[Uo]),ua=(0,r.useCallback)(To=>{Dn({type:"entry:comment:record:confirm",payload:{cid:tn,recordCid:go,rawContent:To}})},[tn,go,Dn]),la=(0,r.useCallback)(()=>{Dn({type:"entry:comment:record:cancel",payload:{cid:tn,recordCid:go}})},[tn,go,Dn]);return(0,$.jsx)("div",{className:"record-content-component",children:In?(0,$.jsx)(jt,{commentCid:tn,recordCid:go,message:Uo,emojiToastStyle:Ln,atStyle:Xn,onConfirm:ua,onCancel:la,dispatch:Dn}):(0,$.jsx)("div",{onMouseDown:To=>{To.stopPropagation()},className:"record-plain-text",readOnly:!0,dangerouslySetInnerHTML:{__html:Ho}})})},Dt=(0,r.memo)(vn),$t=[{label:"edit",value:"edit"},{label:"delete",value:"delete"}],Kn=cn=>{var In;const{commentCid:tn,commentStatus:Jt,index:Ln,record:Xn,editingRecordCid:Dn,prevRecord:go,emojiToastStyle:Uo,dispatch:Ho,comment:ua,viewType:la,atStyle:To,theme:Ia}=cn,{cid:ya,userInfo:eo,ctime:Oo,mtime:so}=Xn,{threadType:to,canvasCid:Vo}=ua||{},[ta,Qa]=(0,r.useState)(""),qr=!!so,{user:kr}=window.MB,ur=(0,r.useMemo)(()=>Ln!==0,[Ln]),Mr=(0,te.ug)(eo);(0,r.useEffect)(()=>{const Ai=qr?so:Oo,Bi=(0,bt.zW)(Ai);Qa(Bi)},[so]);const gr=(0,r.useMemo)(()=>{let Ai=$t;return(kr==null?void 0:kr.cid)!==(Mr==null?void 0:Mr.cid)&&(Ai=Ai.filter(Bi=>!["edit","delete"].includes(Bi.value))),Ai},[kr,Mr]),dr=(0,r.useMemo)(()=>Dn===ya,[Dn,ya]),wi=(0,r.useMemo)(()=>kr.cid!==(Mr==null?void 0:Mr.cid)?!1:dr,[dr,kr,Mr]),gi=(0,r.useCallback)(Ai=>{Ai==="edit"&&(!dr&&Ho({type:"entry:comment:record:editing",payload:{cid:tn,recordCid:ya}}),(0,ye.i4)({operation_type:ye.nU.edit,comment_type:ye.ej[to],relation:!!Vo,operation_from:ye.HI[la]})),Ai==="delete"&&(Ln===0&&MB.global.popupHelper.confirmAsync({className:"DeleteCommentModal",title:I18N.Comment.delete_comment_title,theme:Ia,confirmText:I18N.Common.confirm,desc:I18N.Comment.delete_comment_desc}).then(Bi=>{Bi&&Ho({type:"entry:comment:delete",payload:{cid:tn}}),Bi&&(0,ye.i4)({operation_type:ye.nU.deleteInEditArea,comment_type:ye.ej[to],relation:!!Vo,operation_from:ye.HI[la]})}),Ln!==0&&Ho({type:"entry:comment:record:delete",payload:{cid:tn,recordCid:ya}}))},[dr,Ho,tn,ya,to,Vo,la,Ln]),Li=(0,r.useCallback)(()=>{Ho({type:"entry:comment:checked",payload:{cid:tn,status:Jt!=="checked"}}),(0,ye.i4)({operation_type:Jt==="checked"?ye.nU.CancelFinishInEditArea:ye.nU.FinishInEditArea,comment_type:ye.ej[to],relation:!!Vo,operation_from:ye.HI[la]})},[Ho,tn,Jt,to,Vo,la]),Ni=(0,r.useMemo)(()=>Ln===1,[Ln]);return(0,$.jsxs)("div",{className:N()("record-item-container",{isReply:ur,isFirstReplay:Ni}),children:[(0,$.jsxs)("div",{className:"top-area",children:[(0,$.jsxs)("div",{className:"left-content",children:[(0,$.jsx)("div",{className:"avatar-container",children:Mr.avatar&&!Mr.avatar.includes("/images/avatar.png")?(0,$.jsx)("img",{className:"image-avatar",src:Mr.avatar,alt:"avatar"}):(0,$.jsx)("span",{className:"image-avatar isSpan",children:(In=Mr.name.substring(0,1))==null?void 0:In.toUpperCase()})}),(0,$.jsxs)("div",{className:"name-item",children:[Mr.name&&(0,$.jsx)("h3",{className:"user-name",children:Mr.name}),(0,$.jsxs)("p",{className:"update-time",children:[ta,qr&&(0,$.jsx)("span",{className:"isEdited-text",children:I18N.Comment.edited})]})]})]}),(0,$.jsxs)("div",{className:"operation-item",children:[!go&&((0,un.OB)()||MB.canEditByCurrentUser||Mr.cid===kr.cid)&&(0,$.jsx)(_t.A,{className:"toolbar-btn comment-check-btn "+Jt,name:Jt==="checked"?I18N.Comment.cancel_confirm:I18N.Comment.resolve,icon:Jt==="checked"?"checked":"un_checked",onClick:Li}),gr.length>0&&(0,$.jsx)(gt.A,{options:gr,onChange:gi})]})]}),(0,$.jsx)("div",{className:"bottom-area",children:(0,$.jsx)(Dt,{commentCid:tn,record:Xn,isEditing:wi,emojiToastStyle:Uo,atStyle:To,dispatch:Ho})})]})};class dn extends r.Component{constructor(In){super(In),(0,I.A)(this,"panelRef",null),(0,I.A)(this,"listRef",null),(0,I.A)(this,"handleWheel",Dn=>{Dn.stopPropagation(),(Dn.metaKey||Dn.ctrlKey)&&Dn.preventDefault()}),(0,I.A)(this,"handleMouseDown",Dn=>{Dn.stopPropagation();const{mode:go}=this.props,Uo={x:Dn.clientX,y:Dn.clientY},Ho=this.state.style,ua=document.elementFromPoint(Dn.clientX,Dn.clientY),la=document.querySelector("#"+go+"-comment-view-container .comment-check-btn");if(la&&la.contains(ua))return;const To=document.querySelector("#"+go+"-comment-view-container .comment-more-btn");To&&To.contains(ua)||(0,He.FJ)({onDrag:(Ia,ya)=>{const eo={x:Ia,y:ya},Oo=B.Z.subtract(eo,Uo),{x:so,y:to}=B.Z.add(B.Z.xy(Ho.left,Ho.top),Oo),Vo={...Ho,left:so,top:to};this.setState({style:Vo})},onDrop:()=>{}})}),(0,I.A)(this,"scrollToBottom",()=>{if(!this.listRef)return;const{scrollHeight:Dn,clientHeight:go}=this.listRef;Dn!==go&&(0,He.VG)(this.listRef,Dn-go,200)});const{comment:tn,viewport:Jt,mode:Ln}=In,Xn=tn.status==="creating"?[]:[{...tn},...tn.comments];this.state={style:(0,te.KA)({comment:tn,viewport:Jt,mode:Ln,recordList:Xn})}}componentDidMount(){this.panelRef&&this.panelRef.addEventListener("wheel",this.handleWheel,{passive:!1})}componentDidUpdate(In){const{viewport:tn,emojiToastStyle:Jt,atStyle:Ln,comment:Xn,dispatch:Dn,activeCommentCid:go,mode:Uo}=this.props,{left:Ho,top:ua}=Jt,{left:la,top:To}=Ln;JSON.stringify(In.viewport)!==JSON.stringify(tn)&&(Ho||ua)&&Dn({type:"comment:update:emojiToastStyle",payload:{emojiToastStyle:{left:0,top:0}}}),JSON.stringify(In.viewport)!==JSON.stringify(tn)&&(la||To)&&Dn({type:"comment:update:atStyle",payload:{atStyle:{keywords:"",top:0,left:0}}});const{comments:Ia}=Xn,ya=Xn.status==="creating"?[]:[{...Xn},...Xn.comments];In.comment.comments.length!==Ia.length&&this.scrollToBottom(),go!==In.activeCommentCid&&this.setState({style:(0,te.KA)({comment:Xn,viewport:tn,mode:Uo,recordList:ya})}),In.viewport.scale!==tn.scale&&this.setState({style:(0,te.KA)({comment:Xn,viewport:tn,mode:Uo,recordList:ya})})}componentWillUnmount(){this.panelRef&&this.panelRef.removeEventListener("wheel",this.handleWheel,{passive:!1});const{emojiToastStyle:In,dispatch:tn}=this.props,{left:Jt,top:Ln}=In;(Jt||Ln)&&tn({type:"comment:update:emojiToastStyle",payload:{emojiToastStyle:{left:0,top:0}}})}render(){const{comment:In,wigglingCommentCid:tn,editorRawContentObject:Jt,commentIsEditing:Ln,editingRecordCid:Xn,emojiToastStyle:Dn,viewType:go,members:Uo,atStyle:Ho,theme:ua,dispatch:la}=this.props,{cid:To,comments:Ia,status:ya}=In,eo=ya==="creating";let Oo,so;eo?(so=I18N.Comment.add_a_comment,Oo=[]):(so=I18N.Comment.reply,Oo=[{...In},...Ia]);const{style:to}=this.state,Vo=Oo.some(ta=>ta.cid===Xn);return(0,$.jsxs)("div",{className:N()({"comment-panel-container":!0,"wiggle--wiggle--animate":To===tn}),style:to,ref:ta=>{this.panelRef=ta},onMouseDown:this.handleMouseDown,children:[Oo&&Oo.length>0&&(0,$.jsx)("div",{className:"comment-record-list",ref:ta=>{this.listRef=ta},children:Oo.map((ta,Qa)=>{let qr=null;return Qa>0&&(qr=Oo[Qa-1]),(0,$.jsx)(Kn,{index:Qa,commentStatus:ya,commentCid:To,record:ta,editingRecordCid:Xn,emojiToastStyle:Dn,prevRecord:qr,dispatch:la,comment:In,viewType:go,atStyle:Ho,theme:ua},ta.cid)})}),(0,$.jsx)(fe,{cid:To,commentIsEditing:Ln,isRecordEditing:Vo,isCreating:eo,length:Oo.length,placeholder:so,editorRawContentObject:Jt,comment:In,emojiToastStyle:Dn,viewType:go,members:Uo,atStyle:Ho,dispatch:la})]})}}const ft=dn;var Lt=s(27660);const bn=["\u{1F604}","\u{1F606}","\u{1F60A}","\u{1F603}","\u{1F60F}","\u{1F60D}","\u{1F618}","\u{1F61A}","\u{1F633}","\u{1F60C}","\u{1F601}","\u{1F609}","\u{1F61C}","\u{1F61D}","\u{1F600}","\u{1F617}","\u{1F619}","\u{1F61B}","\u{1F634}","\u{1F61F}","\u{1F626}","\u{1F627}","\u{1F62E}","\u{1F62C}","\u{1F615}","\u{1F62F}","\u{1F611}","\u{1F612}","\u{1F605}","\u{1F613}","\u{1F625}","\u{1F629}","\u{1F614}","\u{1F61E}","\u{1F616}","\u{1F628}","\u{1F630}","\u{1F623}","\u{1F622}","\u{1F62D}","\u{1F602}","\u{1F632}","\u{1F631}","\u{1F62B}","\u{1F620}","\u{1F621}","\u{1F624}","\u{1F62A}","\u{1F60B}","\u{1F637}","\u{1F60E}","\u{1F635}","\u{1F47F}","\u{1F608}","\u{1F610}","\u{1F636}","\u{1F607}","\u{1F47D}","\u{1F49B}","\u{1F499}","\u{1F49C}","\u2764\uFE0F","\u{1F49A}","\u{1F494}","\u{1F493}","\u{1F497}","\u{1F495}","\u{1F49E}","\u{1F498}","\u{1F496}","\u2728","\u2B50","\u{1F31F}","\u{1F4AB}","\u{1F4A5}","\u{1F4A2}","\u2757","\u2753","\u2755","\u2754","\u{1F4A4}","\u{1F4A8}","\u{1F4A6}","\u{1F3B6}","\u{1F3B5}","\u{1F525}","\u{1F4A9}","\u{1F44D}","\u{1F44E}","\u{1F44C}","\u{1F44A}","\u270A","\u270C\uFE0F","\u{1F44B}","\u270B","\u{1F450}","\u261D\uFE0F","\u{1F447}","\u{1F448}","\u{1F449}","\u{1F64C}","\u{1F64F}","\u{1F446}","\u{1F44F}","\u{1F4AA}","\u{1F918}","\u{1F595}","\u{1F6B6}","\u{1F3C3}","\u{1F46B}","\u{1F46A}","\u{1F46C}","\u{1F46D}","\u{1F483}","\u{1F46F}","\u{1F646}\u200D\u2640\uFE0F","\u{1F645}","\u{1F481}","\u{1F64B}","\u{1F470}","\u{1F647}","\u{1F48F}","\u{1F491}","\u{1F486}","\u{1F487}","\u{1F485}","\u{1F466}","\u{1F467}","\u{1F469}","\u{1F468}","\u{1F476}","\u{1F475}","\u{1F474}","\u{1F472}","\u{1F473}\u200D\u2642\uFE0F","\u{1F477}","\u{1F46E}","\u{1F47C}","\u{1F478}","\u{1F63A}","\u{1F638}","\u{1F63B}","\u{1F63D}","\u{1F63C}","\u{1F640}","\u{1F63F}","\u{1F639}","\u{1F63E}","\u{1F479}","\u{1F47A}","\u{1F648}","\u{1F649}","\u{1F64A}","\u{1F482}\u200D\u2642\uFE0F","\u{1F480}","\u{1F43E}","\u{1F444}","\u{1F48B}","\u{1F4A7}","\u{1F442}","\u{1F440}","\u{1F443}","\u{1F445}","\u{1F48C}","\u{1F464}","\u{1F465}","\u{1F4AC}","\u{1F4AD}"],Yn=["\u2600\uFE0F","\u2614","\u2601\uFE0F","\u2744\uFE0F","\u26C4","\u26A1","\u{1F300}","\u{1F301}","\u{1F30A}","\u{1F431}","\u{1F436}","\u{1F42D}","\u{1F439}","\u{1F430}","\u{1F43A}","\u{1F438}","\u{1F42F}","\u{1F428}","\u{1F43B}","\u{1F437}","\u{1F43D}","\u{1F42E}","\u{1F417}","\u{1F435}","\u{1F412}","\u{1F434}","\u{1F40E}","\u{1F42B}","\u{1F411}","\u{1F418}","\u{1F43C}","\u{1F40D}","\u{1F426}","\u{1F424}","\u{1F425}","\u{1F423}","\u{1F414}","\u{1F427}","\u{1F422}","\u{1F41B}","\u{1F41D}","\u{1F41C}","\u{1F41E}","\u{1F40C}","\u{1F419}","\u{1F420}","\u{1F41F}","\u{1F433}","\u{1F40B}","\u{1F42C}","\u{1F404}","\u{1F40F}","\u{1F400}","\u{1F403}","\u{1F405}","\u{1F407}","\u{1F409}","\u{1F410}","\u{1F413}","\u{1F415}","\u{1F416}","\u{1F401}","\u{1F402}","\u{1F432}","\u{1F421}","\u{1F40A}","\u{1F42A}","\u{1F406}","\u{1F408}","\u{1F429}","\u{1F43E}","\u{1F490}","\u{1F338}","\u{1F337}","\u{1F340}","\u{1F339}","\u{1F33B}","\u{1F33A}","\u{1F341}","\u{1F343}","\u{1F342}","\u{1F33F}","\u{1F344}","\u{1F335}","\u{1F334}","\u{1F332}","\u{1F333}","\u{1F330}","\u{1F331}","\u{1F33C}","\u{1F33E}","\u{1F41A}","\u{1F310}","\u{1F31E}","\u{1F31D}","\u{1F31A}","\u{1F311}","\u{1F312}","\u{1F313}","\u{1F314}","\u{1F315}","\u{1F316}","\u{1F317}","\u{1F318}","\u{1F31C}","\u{1F31B}","\u{1F30D}","\u{1F30E}","\u{1F30F}","\u{1F30B}","\u{1F30C}","\u26C5"],on=["\u{1F38D}","\u{1F49D}","\u{1F38E}","\u{1F392}","\u{1F393}","\u{1F38F}","\u{1F386}","\u{1F387}","\u{1F390}","\u{1F391}","\u{1F383}","\u{1F47B}","\u{1F385}","\u{1F384}","\u{1F381}","\u{1F514}","\u{1F515}","\u{1F38B}","\u{1F389}","\u{1F38A}","\u{1F388}","\u{1F52E}","\u{1F4BF}","\u{1F4C0}","\u{1F4BE}","\u{1F4F7}","\u{1F4F9}","\u{1F3A5}","\u{1F4BB}","\u{1F4FA}","\u{1F4F1}","\u260E\uFE0F","\u{1F4DE}","\u{1F4DF}","\u{1F4E0}","\u{1F4BD}","\u{1F4FC}","\u{1F509}","\u{1F508}","\u{1F507}","\u{1F4E2}","\u{1F4E3}","\u231B","\u23F3","\u23F0","\u231A","\u{1F4FB}","\u{1F4E1}","\u27BF","\u{1F50D}","\u{1F50E}","\u{1F513}","\u{1F512}","\u{1F50F}","\u{1F510}","\u{1F511}","\u{1F4A1}","\u{1F526}","\u{1F506}","\u{1F505}","\u{1F50C}","\u{1F50B}","\u{1F4F2}","\u2709\uFE0F","\u{1F4EB}","\u{1F4EE}","\u{1F6C0}","\u{1F6C1}","\u{1F6BF}","\u{1F6BD}","\u{1F527}","\u{1F529}","\u{1F528}","\u{1F4BA}","\u{1F4B0}","\u{1F4B4}","\u{1F4B5}","\u{1F4B7}","\u{1F4B6}","\u{1F4B3}","\u{1F4B8}","\u{1F4E7}","\u{1F4E5}","\u{1F4E4}","\u{1F4E8}","\u{1F4EF}","\u{1F4EA}","\u{1F4EC}","\u{1F4ED}","\u{1F4E6}","\u{1F6AA}","\u{1F6AC}","\u{1F4A3}","\u{1F52B}","\u{1F52A}","\u{1F48A}","\u{1F489}","\u{1F4C4}","\u{1F4C3}","\u{1F4D1}","\u{1F4CA}","\u{1F4C8}","\u{1F4C9}","\u{1F4DC}","\u{1F4CB}","\u{1F4C6}","\u{1F4C5}","\u{1F4C7}","\u{1F4C1}","\u{1F4C2}","\u2702\uFE0F","\u{1F4CC}","\u{1F4CE}","\u2712\uFE0F","\u270F\uFE0F","\u{1F4CF}","\u{1F4D0}","\u{1F4D5}","\u{1F4D7}","\u{1F4D8}","\u{1F4D9}","\u{1F4D3}","\u{1F4D4}","\u{1F4D2}","\u{1F4DA}","\u{1F516}","\u{1F4DB}","\u{1F52C}","\u{1F52D}","\u{1F4F0}","\u{1F3C8}","\u{1F3C0}","\u26BD","\u26BE","\u{1F3BE}","\u{1F3B1}","\u{1F3C9}","\u{1F3B3}","\u26F3","\u{1F6B5}","\u{1F6B4}","\u{1F3C7}","\u{1F3C2}","\u{1F3CA}","\u{1F3C4}","\u{1F3BF}","\u2660\uFE0F","\u2665\uFE0F","\u2663\uFE0F","\u2666\uFE0F","\u{1F48E}","\u{1F48D}","\u{1F3C6}","\u{1F3BC}","\u{1F3B9}","\u{1F3BB}","\u{1F47E}","\u{1F3AE}","\u{1F0CF}","\u{1F3B4}","\u{1F3B2}","\u{1F3AF}","\u{1F004}","\u{1F3AC}","\u{1F4DD}","\u{1F4D6}","\u{1F3A8}","\u{1F3A4}","\u{1F3A7}","\u{1F3BA}","\u{1F3B7}","\u{1F3B8}","\u{1F45E}","\u{1F461}","\u{1F460}","\u{1F484}","\u{1F462}","\u{1F455}","\u{1F454}","\u{1F45A}","\u{1F457}","\u{1F3BD}","\u{1F456}","\u{1F458}","\u{1F459}","\u{1F380}","\u{1F3A9}","\u{1F451}","\u{1F452}","\u{1F302}","\u{1F4BC}","\u{1F45C}","\u{1F45D}","\u{1F45B}","\u{1F453}","\u{1F3A3}","\u2615","\u{1F375}","\u{1F376}","\u{1F37C}","\u{1F37A}","\u{1F37B}","\u{1F378}","\u{1F379}","\u{1F377}","\u{1F374}","\u{1F355}","\u{1F354}","\u{1F35F}","\u{1F357}","\u{1F356}","\u{1F35D}","\u{1F35B}","\u{1F364}","\u{1F371}","\u{1F363}","\u{1F365}","\u{1F359}","\u{1F358}","\u{1F35A}","\u{1F35C}","\u{1F372}","\u{1F362}","\u{1F361}","\u{1F95A}","\u{1F35E}","\u{1F369}","\u{1F36E}","\u{1F366}","\u{1F368}","\u{1F367}","\u{1F382}","\u{1F370}","\u{1F36A}","\u{1F36B}","\u{1F36C}","\u{1F36D}","\u{1F36F}","\u{1F34E}","\u{1F34F}","\u{1F34A}","\u{1F34B}","\u{1F352}","\u{1F347}","\u{1F349}","\u{1F353}","\u{1F351}","\u{1F348}","\u{1F34C}","\u{1F350}","\u{1F34D}","\u{1F360}","\u{1F346}","\u{1F345}","\u{1F33D}"],yn=["\u{1F3E0}","\u{1F3E1}","\u{1F3EB}","\u{1F3E2}","\u{1F3E3}","\u{1F3E5}","\u{1F3E6}","\u{1F3EA}","\u{1F3E9}","\u{1F3E8}","\u{1F492}","\u26EA","\u{1F3EC}","\u{1F3E4}","\u{1F307}","\u{1F306}","\u{1F3EF}","\u{1F3F0}","\u26FA","\u{1F3ED}","\u{1F5FC}","\u{1F5FE}","\u{1F5FB}","\u{1F304}","\u{1F305}","\u{1F320}","\u{1F5FD}","\u{1F309}","\u{1F3A0}","\u{1F308}","\u{1F3A1}","\u26F2","\u{1F3A2}","\u{1F6A2}","\u{1F6A4}","\u26F5","\u{1F6A3}","\u2693","\u{1F680}","\u2708\uFE0F","\u{1F681}","\u{1F682}","\u{1F68A}","\u{1F69E}","\u{1F6B2}","\u{1F6A1}","\u{1F69F}","\u{1F6A0}","\u{1F69C}","\u{1F699}","\u{1F698}","\u{1F697}","\u{1F695}","\u{1F696}","\u{1F69B}","\u{1F68C}","\u{1F68D}","\u{1F6A8}","\u{1F693}","\u{1F694}","\u{1F692}","\u{1F691}","\u{1F690}","\u{1F69A}","\u{1F68B}","\u{1F689}","\u{1F686}","\u{1F685}","\u{1F684}","\u{1F688}","\u{1F69D}","\u{1F683}","\u{1F68E}","\u{1F3AB}","\u26FD","\u{1F6A6}","\u{1F6A5}","\u26A0\uFE0F","\u{1F6A7}","\u{1F530}","\u{1F3E7}","\u{1F3B0}","\u{1F68F}","\u{1F488}","\u2668\uFE0F","\u{1F3C1}","\u{1F38C}","\u{1F3EE}","\u{1F5FF}","\u{1F3AA}","\u{1F3AD}","\u{1F4CD}","\u{1F6A9}","\u{1F1EF}\u{1F1F5}","\u{1F1F0}\u{1F1F7}","\u{1F1E8}\u{1F1F3}","\u{1F1FA}\u{1F1F8}","\u{1F1EB}\u{1F1F7}","\u{1F1EA}\u{1F1F8}","\u{1F1EE}\u{1F1F9}","\u{1F1F7}\u{1F1FA}","\u{1F1EC}\u{1F1E7}","\u{1F1E9}\u{1F1EA}"],lo=["1\uFE0F\u20E3","2\uFE0F\u20E3","3\uFE0F\u20E3","4\uFE0F\u20E3","5\uFE0F\u20E3","6\uFE0F\u20E3","7\uFE0F\u20E3","8\uFE0F\u20E3","9\uFE0F\u20E3","\u{1F51F}","\u{1F522}","0\uFE0F\u20E3","#\uFE0F\u20E3","\u{1F523}","\u25C0\uFE0F","\u2B07\uFE0F","\u25B6\uFE0F","\u2B05\uFE0F","\u{1F520}","\u{1F521}","\u{1F524}","\u2199\uFE0F","\u2198\uFE0F","\u27A1\uFE0F","\u2B06\uFE0F","\u2196\uFE0F","\u2197\uFE0F","\u23EC","\u23EB","\u{1F53D}","\u2935\uFE0F","\u2934\uFE0F","\u21A9\uFE0F","\u21AA\uFE0F","\u2194\uFE0F","\u2195\uFE0F","\u{1F53C}","\u{1F503}","\u{1F504}","\u23EA","\u23E9","\u2139\uFE0F","\u{1F197}","\u{1F500}","\u{1F501}","\u{1F502}","\u{1F195}","\u{1F51D}","\u{1F199}","\u{1F192}","\u{1F193}","\u{1F196}","\u{1F3A6}","\u{1F201}","\u{1F4F6}","\u{1F239}","\u{1F234}","\u{1F23A}","\u{1F22F}","\u{1F237}\uFE0F","\u{1F236}","\u{1F235}","\u{1F21A}","\u{1F238}","\u{1F233}","\u{1F232}","\u{1F202}\uFE0F","\u{1F6BB}","\u{1F6B9}","\u{1F6BA}","\u{1F6BC}","\u{1F6AD}","\u{1F17F}\uFE0F","\u267F","\u{1F687}","\u{1F6C4}","\u{1F251}","\u{1F6BE}","\u{1F6B0}","\u{1F6AE}","\u3299\uFE0F","\u3297\uFE0F","\u24C2\uFE0F","\u{1F6C2}","\u{1F6C5}","\u{1F6C3}","\u{1F250}","\u{1F191}","\u{1F198}","\u{1F194}","\u{1F6AB}","\u{1F51E}","\u{1F4F5}","\u{1F6AF}","\u{1F6B1}","\u{1F6B3}","\u{1F6B7}","\u{1F6B8}","\u26D4","\u2733\uFE0F","\u2747\uFE0F","\u2734\uFE0F","\u{1F49F}","\u{1F19A}","\u{1F4F3}","\u{1F4F4}","\u{1F4B9}","\u{1F4B1}","\u274E","\u{1F170}\uFE0F","\u{1F171}\uFE0F","\u{1F18E}","\u{1F17E}\uFE0F","\u{1F4A0}","\u267B\uFE0F","\u{1F51A}","\u{1F519}","\u{1F51B}","\u{1F51C}","\u{1F550}","\u{1F55C}","\u{1F559}","\u{1F565}","\u{1F55A}","\u{1F566}","\u{1F55B}","\u{1F567}","\u{1F551}","\u{1F55D}","\u{1F552}","\u{1F55E}","\u{1F553}","\u{1F55F}","\u{1F554}","\u{1F560}","\u{1F555}","\u{1F561}","\u{1F556}","\u{1F562}","\u{1F557}","\u{1F563}","\u{1F558}","\u{1F564}","\u{1F4B2}","\xA9\uFE0F","\xAE\uFE0F","\u2122\uFE0F","\u274C","\u2757","\u203C\uFE0F","\u2049\uFE0F","\u2B55","\u2716\uFE0F","\u2795","\u2796","\u2797","\u{1F4AE}","\u{1F4AF}","\u2714\uFE0F","\u2611\uFE0F","\u{1F518}","\u{1F517}","\u27B0","\u3030\uFE0F","\u303D\uFE0F","\u{1F531}","\u25AA\uFE0F","\u25AB\uFE0F","\u25FE","\u25FD","\u25FC\uFE0F","\u25FB\uFE0F","\u2B1B","\u2B1C","\u2705","\u{1F532}","\u{1F533}","\u26AB","\u26AA","\u{1F534}","\u{1F535}","\u{1F537}","\u{1F536}","\u{1F539}","\u{1F538}","\u{1F53A}","\u{1F53B}"],qn=(0,Lt.R)(()=>({expressions:{label:I18N.Comment.smileys_people,options:bn},animals:{label:I18N.Comment.animals_nature,options:Yn},goods:{label:I18N.Comment.food_drinks,options:on},locations:{label:I18N.Comment.travel_places,options:yn},symbols:{label:I18N.Comment.symbols,options:lo}}));class Wn extends r.PureComponent{constructor(){super(...arguments),(0,I.A)(this,"emojiRef",null),(0,I.A)(this,"state",{value:"expressions"}),(0,I.A)(this,"handleWheel",In=>{In.stopPropagation()}),(0,I.A)(this,"handleGlobalClick",In=>{if(!this.emojiRef||!In.target||this.emojiRef===In.target||this.emojiRef.contains(In.target))return;const{dispatch:tn}=this.props;tn({type:"comment:update:emojiToastStyle",payload:{emojiToastStyle:{left:0,top:0}}})}),(0,I.A)(this,"handleTab",In=>{const{icon:tn}=In.currentTarget.dataset;this.setState({value:tn})}),(0,I.A)(this,"handleSelect",In=>()=>{const{commentCid:tn,dispatch:Jt}=this.props;tn&&(W.A.emit("comment:emoji:add",{commentCid:tn,emoji:In}),Jt({type:"comment:update:emojiToastStyle",payload:{emojiToastStyle:{left:0,top:0}}}))}),(0,I.A)(this,"stopPropagation",In=>{In.stopPropagation()})}componentDidMount(){this.emojiRef&&this.emojiRef.addEventListener("wheel",this.handleWheel,!1),document.addEventListener("click",this.handleGlobalClick,!1)}componentWillUnmount(){this.emojiRef&&this.emojiRef.removeEventListener("wheel",this.handleWheel,!1),document.removeEventListener("click",this.handleGlobalClick,!1)}render(){const{left:In=0,top:tn=0}=this.props,{value:Jt}=this.state,Ln=qn(),Xn=Ln[Jt]||Ln.expressions,Dn=Xn.label,go=Xn.options;return(0,$.jsxs)(sn,{className:"emoji-toast",style:{top:tn,left:In},onClick:this.stopPropagation,ref:Uo=>{this.emojiRef=Uo},children:[(0,$.jsx)(T.C,{name:"art_board/emoji_triangle",className:"emoji-triangle"}),(0,$.jsxs)("div",{className:"expression-container",children:[(0,$.jsx)("h3",{className:"expression-title",children:Dn}),(0,$.jsx)("div",{className:"expression-list",children:go&&go.length>0&&go.map((Uo,Ho)=>(0,$.jsx)("span",{className:"emoji-span",onClick:this.handleSelect(Uo),children:Uo},Ho))})]}),(0,$.jsxs)("div",{className:"icon-list",children:[(0,$.jsx)("span",{"data-icon":"expressions",onClick:this.handleTab,children:(0,$.jsx)(_t.A,{svgClassName:"fill",className:"emoji-btn",name:I18N.Comment.smileys_people,icon:"expressions",active:Jt==="expressions"})}),(0,$.jsx)("span",{"data-icon":"animals",onClick:this.handleTab,children:(0,$.jsx)(_t.A,{svgClassName:"fill",className:"emoji-btn",name:I18N.Comment.animals_nature,icon:"animals",active:Jt==="animals"})}),(0,$.jsx)("span",{"data-icon":"goods",onClick:this.handleTab,children:(0,$.jsx)(_t.A,{svgClassName:"fill",className:"emoji-btn",name:I18N.Comment.food_drinks,icon:"goods",active:Jt==="goods"})}),(0,$.jsx)("span",{"data-icon":"locations",onClick:this.handleTab,children:(0,$.jsx)(_t.A,{svgClassName:"fill",className:"emoji-btn",name:I18N.Comment.travel_places,icon:"locations",active:Jt==="locations"})}),(0,$.jsx)("span",{"data-icon":"symbols",onClick:this.handleTab,children:(0,$.jsx)(_t.A,{svgClassName:"fill",className:"emoji-btn",name:I18N.Comment.symbols,icon:"symbols",active:Jt==="symbols"})})]})]})}}const Nn=Wn;function xn(cn){const In=cn.length,tn=[];for(let Ln=0;Ln<In;Ln+=1){let Dn=cn[Ln],go=Ln+1,Uo=cn[go];for(;Uo;)Dn=Dn+" "+Uo,tn.push(Dn),go+=1,Uo=cn[go]}const Jt=[...cn];return tn.concat(Jt)}function Ye(cn,In){return In.map(tn=>{if(tn.name===cn||tn.email===cn)return{...tn,priority:0};let Jt,Ln;if(tn.name){const Xn=tn.name.indexOf(cn);Xn!==-1&&(Jt={...tn,priority:Xn+1})}if(tn.email){const Xn=tn.email.indexOf(cn);Xn!==-1&&(Ln={...tn,priority:Xn+1})}if(Jt&&Ln){const Xn=Jt.priority,Dn=Ln.priority;return Xn<=Dn?Jt:Ln}return Jt||Ln||null}).filter(Boolean)}function wn(cn){const In=cn.reduce((Ln,Xn)=>Ln.concat(Xn.map(Dn=>Dn.user_cid)),[]);return Array.from(new Set(In)).map(Ln=>cn.map(Dn=>Dn.find(go=>go.user_cid===Ln)).filter(Boolean).sort((Dn,go)=>Dn.priority-go.priority)[0]).sort((Ln,Xn)=>Ln.priority===Xn.priority?Ln.id-Xn.id:Ln.priority-Xn.priority)}function Hn(cn,In){if(!cn)return In;let tn=cn.trim();tn=tn.replace(/( )+/g," ");const Jt=tn.split(" "),Xn=xn(Jt).map(go=>Ye(go,In));return wn(Xn)}const zn=ht.Ay.div.withConfig({displayName:"styles__StyledProjectMembersListDiv",componentId:"sc-ibhzo0-0"})(["pointer-events:auto;width:253px;height:238px;position:absolute;overflow:hidden;overflow-y:auto;background-color:#fff;box-shadow:0 3px 10px rgba(0,0,0,.1);border-radius:4px;box-sizing:border-box;padding:6px 0;cursor:default;z-index:3;::-webkit-scrollbar{width:0px;}.member-item-container{width:100%;position:relative;box-sizing:border-box;padding:6px 12px;display:flex;flex-direction:row;justify-content:flex-start;align-items:flex-start;&:hover,&.active{background-color:#f2f2f2;}.left-area{width:32px;height:32px;margin-right:12px;position:relative;display:flex;flex-direction:row;justify-content:center;align-items:flex-start;.image-avatar{display:block;width:100%;height:100%;border-radius:50%;color:#fff;font-size:12px;text-align:center;line-height:32px;&.isSpan{background-color:#e96d2c;}}}.right-area{width:calc(100% - 44px);position:relative;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;.user-name{font-size:14px;font-weight:500;line-height:18px;color:#333333;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}.user-email{font-size:12px;font-weight:normal;line-height:14px;color:rgba(51,51,51,0.5);width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}}}.empty-item-container{width:100%;height:44px;position:relative;box-sizing:border-box;font-size:12px;font-weight:normal;line-height:14px;color:rgba(51,51,51,0.5);display:flex;flex-direction:row;justify-content:center;align-items:center;}"]);class ko extends r.Component{constructor(){super(...arguments),(0,I.A)(this,"state",{filterMembers:[],activeCid:""}),(0,I.A)(this,"handleWheel",In=>{In.stopPropagation()}),(0,I.A)(this,"handleGlobalClick",In=>{if(!this.atRef||!In.target||this.atRef===In.target||this.atRef.contains(In.target))return;const{dispatch:tn}=this.props;tn({type:"comment:update:atStyle",payload:{atStyle:{keywords:"",top:0,left:0}}})}),(0,I.A)(this,"getMembers",In=>{const{members:tn,dispatch:Jt,recordCid:Ln,commentCid:Xn}=this.props,Dn=Hn(In,tn);if(!Dn.length)Jt({type:"comment:update:atStyle",payload:{atStyle:{display:"none"}}});else{Jt({type:"comment:update:atStyle",payload:{atStyle:{display:"block",recordCid:Ln,commentCid:Xn}}});const go={filterMembers:Dn};this.state.activeCid||(go.activeCid=Dn[0].user_cid),this.setState(go)}}),(0,I.A)(this,"handleKeyDown",In=>{if(![13,38,40].includes(In.keyCode))return;const{filterMembers:tn,activeCid:Jt}=this.state;if(tn.length===0)return;if(!Jt){this.setState({activeCid:tn[0].user_cid});return}if(In.keyCode===13){let ua;Jt&&(ua=tn.find(ya=>ya.user_cid===Jt)),ua||(ua=tn[0]);const{commentCid:la,recordCid:To,dispatch:Ia}=this.props;W.A.emit("comment:at:add",{user:ua,commentCid:la,recordCid:To}),Ia({type:"comment:update:atStyle",payload:{atStyle:{keywords:"",top:0,left:0}}});return}const Ln=tn.findIndex(ua=>ua.user_cid===Jt);let Xn;In.keyCode===40&&(Xn=Ln+1),In.keyCode===38&&(Xn=Ln-1),Xn>=tn.length&&(Xn=0),Xn<0&&(Xn=tn.length-1);const{clientHeight:Dn,scrollTop:go}=this.atRef,Uo=6+Xn*44,Ho=Uo-go;Ho<0&&(this.atRef.scrollTop=Uo),Ho+44>Dn&&(this.atRef.scrollTop=Uo+44),this.setState({activeCid:tn[Xn].user_cid})}),(0,I.A)(this,"handleSelect",In=>()=>{const{commentCid:tn,recordCid:Jt,dispatch:Ln}=this.props;W.A.emit("comment:at:add",{user:In,commentCid:tn,recordCid:Jt}),Ln({type:"comment:update:atStyle",payload:{atStyle:{keywords:"",top:0,left:0}}})})}componentDidMount(){this.getMembers(this.props.keywords),window.addEventListener("keydown",this.handleKeyDown,!1),this.atRef&&this.atRef.addEventListener("wheel",this.handleWheel,!1),document.addEventListener("click",this.handleGlobalClick,!1)}componentDidUpdate(In){In.keywords!==this.props.keywords&&this.getMembers(this.props.keywords)}componentWillUnmount(){window.removeEventListener("keydown",this.handleKeyDown,!1),this.atRef&&this.atRef.removeEventListener("wheel",this.handleWheel,!1),document.removeEventListener("click",this.handleGlobalClick,!1)}render(){const{activeCid:In,filterMembers:tn}=this.state,{left:Jt,top:Ln,atDisplay:Xn}=this.props;return(0,$.jsxs)(zn,{style:{left:Jt,top:Ln,display:Xn},ref:Dn=>{this.atRef=Dn},className:"project-member-list",children:[tn.length>0&&tn.map(Dn=>(0,$.jsxs)("div",{className:In===Dn.user_cid?"member-item-container active":"member-item-container",onClick:this.handleSelect(Dn),children:[(0,$.jsx)("div",{className:"left-area",children:Dn.avatar?(0,$.jsx)("img",{className:"image-avatar",src:Dn.avatar,alt:Dn.name||Dn.email||Dn.mobile||Dn.user_cid}):(0,$.jsx)("span",{className:"image-avatar isSpan",children:(Dn.name||Dn.email||Dn.mobile||Dn.user_cid).substring(0,1)})}),(0,$.jsxs)("div",{className:"right-area",children:[(0,$.jsx)("div",{className:"user-name",children:Dn.name||Dn.email||Dn.mobile||Dn.user_cid}),(0,$.jsx)("div",{className:"user-email",children:Dn.email||"--"})]})]},Dn.user_cid)),tn.length===0&&(0,$.jsx)("div",{className:"empty-item-container",children:"\u6682\u65E0\u6570\u636E"})]})}}const On=ko;var Mo=s(97974);const jn=ht.Ay.div.withConfig({displayName:"styles__StyledCommentsViewContainerDiv",componentId:"sc-i62rwr-0"})(["position:absolute;top:0;left:0;z-index:10;.clearfix:before,.clearfix:after{content:'';display:table;}.clearfix:after{clear:both;}.pull-right{float:right !important;.operation-btn{border-radius:6px;font-size:13px;}.cancel-btn{background-color:",";border:1px solid ",";color:",";&:hover:not([class*='is-disabled']){color:",";background-color:",";border:1px solid ",";}&:active:not([class*='is-disabled']){color:",";background-color:",";border:1px solid ",";}&[class*='is-disabled']{background-color:",";border:1px solid ",";}}.confirm-btn{background-color:",";&:hover:not([class*='is-disabled']){color:",";background-color:",";}&:active:not([class*='is-disabled']){color:",";background-color:",";}&[class*='is-disabled']{opacity:1;background-color:",";color:",";}}}.pull-left{float:left !important;}.comment-anchor{width:37px;height:35px;pointer-events:auto;position:absolute;cursor:default;filter:drop-shadow(1px 1px 2px rgba(0,0,0,.2));transform-origin:left bottom;transition:transform .12s ease-in-out;z-index:3;&:hover{transform:scale(1.2);}&.active{.comment-created-icon{color:#1684FC;}}.comment-icon{filter:drop-shadow(0px 1px 3px rgba(0,0,0,0.2));}.comment-created-icon{color:#fff;}.anchor--anchorLabel{position:absolute;left:4px;top:4px;width:24px;height:24px;border-radius:50%;display:block;text-align:center;}}.rect-anchor-container{.comment-rect-anchor{position:absolute;pointer-events:auto;cursor:pointer;border:2px dashed #1684FC;display:none;}&:hover,&.active,&.creating{.comment-rect-anchor{display:block;}}}.comment-panel-container{background-color:",";pointer-events:auto;position:absolute;box-shadow:",";border:1px solid ",";border-radius:8px;box-sizing:border-box;cursor:default;z-index:3;.comment-record-list{width:100%;max-height:472px;position:relative;overflow-y:auto;border-bottom:1px solid ",";.record-item-container{width:100%;min-height:106px;box-sizing:border-box;padding:20px 0 15px 0;flex-direction:row;justify-content:flex-start;align-items:flex-start;.top-area{display:flex;padding:0 20px;.left-content{flex:1;display:flex;align-items:center;.avatar-container{width:40px;height:40px;margin-right:10px;.image-avatar{display:block;width:100%;height:100%;border-radius:50%;color:#fff;font-size:14px;text-align:center;line-height:40px;&.isSpan{font-size:18px;display:flex;align-items:center;justify-content:center;background-color:#1684FC;}}}.name-item{flex:1;.user-name{font-size:14px;font-weight:500;line-height:14px;color:",";margin-bottom:4px;}.update-time{font-size:12px;font-weight:normal;line-height:12px;color:",";opacity:0.5;.isEdited-text{margin-left:16px;}}}}.operation-item{display:flex;flex-direction:row;justify-content:flex-end;align-items:flex-start;.checked svg{color:",";}}}.bottom-area{margin-top:10px;padding-left:70px;padding-right:20px;.record-content-component{margin:0;.record-plain-text{p{font-size:14px;line-height:20px;color:",";text-align:justify;}}}}&.isFirstReplay{border-top:1px solid ",";}&.isReply{position:relative;&:not(:last-child)::after{position:absolute;bottom:0;left:41px;content:'';width:258px;height:1px;background-color:",";}.top-area{.avatar-container{width:28px;height:28px;margin-left:22px;.image-avatar.isSpan{font-size:14px;}}}.bottom-area{padding-left:80px;}}}.toolbar-btn{margin:0 2px;width:24px;height:24px;cursor:pointer;border-radius:4px;&.free-width{width:auto;}&.disabled{background-color:transparent;opacity:.3;cursor:not-allowed;}&:hover{background:",";}&:active,&.active{background:",";}}.toolbar-btn .svg-icon{width:24px;height:24px;}}.record-content-component{margin:10px 0;.record-plain-text{width:100%;text-align:left;word-break:break-all;word-wrap:break-word;a{color:#298DF8;display:inline-block;padding-left:2px;padding-right:2px;border-radius:2px;text-decoration:none;background-color:#e6f3ff;}p{user-select:text;font-size:14px;line-height:20px;color:",";padding:2px 0;}}}.record-content-component:hover{cursor:text;}.comment-text-input-component{width:100%;box-sizing:border-box;padding:16px;position:relative;}.comment-operation-container{width:100%;margin-top:16px;.emoji-icon{color:black;display:flex;flex-direction:row;justify-content:center;align-items:center;}.operation-btn{margin-left:1em;transition:color ease-in-out 0.1s;transition:100ms;}}.comment-text-area{width:100%;box-sizing:border-box;position:relative;}.comment-editor-container{cursor:text;}.comment-editor-wrapper{width:100%;}.comment-editor{width:100%;max-height:280px;overflow-y:auto;a{color:",";display:inline-block;padding-right:2px;border-radius:2px;text-decoration:none;}.DraftEditor-editorContainer,.DraftEditor-root,.public-DraftEditor-content{height:inherit;text-align:initial;}.public-DraftEditor-content[contenteditable=true]{-webkit-user-modify:read-write-plaintext-only;}.DraftEditor-root{position:relative;margin-top:-5px;}.DraftEditor-editorContainer{background-color:rgba(255,255,255,0);position:relative;z-index:1;}.public-DraftEditor-block{position:relative;}.DraftEditor-alignLeft .public-DraftStyleDefault-block{text-align:left;}.DraftEditor-alignLeft .public-DraftEditorPlaceholder-root{left:0;text-align:left;}.DraftEditor-alignCenter .public-DraftStyleDefault-block{text-align:center;}.DraftEditor-alignCenter .public-DraftEditorPlaceholder-root{margin:0 auto;text-align:center;width:100%;}.DraftEditor-alignRight .public-DraftStyleDefault-block{text-align:right;}.DraftEditor-alignRight .public-DraftEditorPlaceholder-root{right:0;text-align:right;}.public-DraftEditorPlaceholder-root{color:#9197a3;position:absolute;width:100%;z-index:1;padding:2px 0;}.public-DraftEditorPlaceholder-hasFocus{color:#bdc1c9;}.DraftEditorPlaceholder-hidden{display:none;}.public-DraftStyleDefault-block{position:relative;white-space:pre-wrap;margin:0;padding:2px 0;word-break:break-all;word-wrap:break-word;font-size:14px;line-height:20px;color:",';}.public-DraftStyleDefault-ltr{direction:ltr;text-align:left;}.public-DraftStyleDefault-rtl{direction:rtl;text-align:right;}.public-DraftStyleDefault-listLTR{direction:ltr;}.public-DraftStyleDefault-listRTL{direction:rtl;}.public-DraftStyleDefault-ol,.public-DraftStyleDefault-ul{margin:0;padding:0;}.public-DraftStyleDefault-depth0.public-DraftStyleDefault-listLTR{margin-left:1.5em;}.public-DraftStyleDefault-depth0.public-DraftStyleDefault-listRTL{margin-right:1.5em;}.public-DraftStyleDefault-depth1.public-DraftStyleDefault-listLTR{margin-left:3em;}.public-DraftStyleDefault-depth1.public-DraftStyleDefault-listRTL{margin-right:3em;}.public-DraftStyleDefault-depth2.public-DraftStyleDefault-listLTR{margin-left:4.5em;}.public-DraftStyleDefault-depth2.public-DraftStyleDefault-listRTL{margin-right:4.5em;}.public-DraftStyleDefault-depth3.public-DraftStyleDefault-listLTR{margin-left:6em;}.public-DraftStyleDefault-depth3.public-DraftStyleDefault-listRTL{margin-right:6em;}.public-DraftStyleDefault-depth4.public-DraftStyleDefault-listLTR{margin-left:7.5em;}.public-DraftStyleDefault-depth4.public-DraftStyleDefault-listRTL{margin-right:7.5em;}.public-DraftStyleDefault-unorderedListItem{list-style-type:disc;position:relative;}.public-DraftStyleDefault-orderedListItem{list-style-type:none;position:relative;}.public-DraftStyleDefault-orderedListItem.public-DraftStyleDefault-listLTR:before{left:-36px;position:absolute;text-align:right;width:30px;}.public-DraftStyleDefault-orderedListItem.public-DraftStyleDefault-listRTL:before{position:absolute;right:-36px;text-align:left;width:30px;}.public-DraftStyleDefault-orderedListItem:before{content:counter(ol0) ". ";counter-increment:ol0;}.public-DraftStyleDefault-orderedListItem.public-DraftStyleDefault-depth1:before{content:counter(ol1,lower-alpha) ". ";counter-increment:ol1;}.public-DraftStyleDefault-orderedListItem.public-DraftStyleDefault-depth2:before{content:counter(ol2,lower-roman) ". ";counter-increment:ol2;}.public-DraftStyleDefault-orderedListItem.public-DraftStyleDefault-depth3:before{content:counter(ol3) ". ";counter-increment:ol3;}.public-DraftStyleDefault-orderedListItem.public-DraftStyleDefault-depth4:before{content:counter(ol4,lower-alpha) ". ";counter-increment:ol4;}.public-DraftStyleDefault-depth0.public-DraftStyleDefault-reset{counter-reset:ol0;}.public-DraftStyleDefault-depth1.public-DraftStyleDefault-reset{counter-reset:ol1;}.public-DraftStyleDefault-depth2.public-DraftStyleDefault-reset{counter-reset:ol2;}.public-DraftStyleDefault-depth3.public-DraftStyleDefault-reset{counter-reset:ol3;}.public-DraftStyleDefault-depth4.public-DraftStyleDefault-reset{counter-reset:ol4;}.public-DraftEditorPlaceholder-inner{color:#999999;font-size:14px;line-height:20px;}}}.wiggle--wiggle--animate{animation:wiggle-wiggle-01 .6s linear;transform-origin:center;}@keyframes wiggle-wiggle-01{0%{transform:translate(0)}20%{transform:translate(-24px) rotate(-1deg)}40%{transform:translate(24px) rotate(1deg)}60%{transform:translate(-24px) rotate(-1deg)}80%{transform:translate(24px) rotate(1deg)}to{transform:translate(0)}}'],cn=>cn.theme.color_bg_white,cn=>cn.theme.color_bg_border_02,cn=>cn.theme.color_text_L1,cn=>cn.theme.color_text_L1,cn=>cn.theme.color_btn_secondary_hover,cn=>cn.theme.color_bg_border_02,cn=>cn.theme.color_text_L1,cn=>cn.theme.color_btn_secondary_active,cn=>cn.theme.color_bg_border_02,cn=>cn.theme.color_bg_white,cn=>cn.theme.color_bg_border_02,cn=>cn.theme.color_btn_primary_normal,cn=>cn.theme.color_text_btn,cn=>cn.theme.color_btn_primary_hover,cn=>cn.theme.color_text_btn,cn=>cn.theme.color_btn_primary_clicked,cn=>cn.theme.color_btn_primary_disabled,cn=>cn.theme.color_text_disabled02,cn=>cn.theme.color_bg_white,cn=>cn.theme.shadow_l,cn=>cn.theme.color_bg_border_01,cn=>cn.theme.color_bg_border_01,cn=>cn.theme.color_text_L1,cn=>cn.theme.color_text_L1,cn=>cn.theme.color_btn_primary_normal,cn=>cn.theme.color_text_L1,cn=>cn.theme.color_bg_border_01,cn=>cn.theme.color_bg_border_01,cn=>cn.theme.color_btn_secondary_active,cn=>cn.theme.color_btn_secondary_active,cn=>cn.theme.color_text_L1,cn=>cn.theme.color_text_link_normal,cn=>cn.theme.color_text_L1),xo=(0,ht.DU)([".DeleteCommentModal{background:",";box-shadow:0px 4px 20px 6px rgba(31,41,46,0.103438);border-radius:8px;width:400px;border:1px solid ",";.header{border-bottom:1px solid ",";color:",";background-color:",";}.close-btn{color:",";&:hover{color:",";}&:active{color:",";}}.content{color:",";background-color:",";p{color:",";}}footer{background:",";.button-root{","}}}"],cn=>cn.theme.color_bg_white,cn=>cn.theme.color_bg_border_02,cn=>cn.theme.color_bg_border_02,cn=>cn.theme.color_text_L1,cn=>cn.theme.color_bg_white,cn=>cn.theme.color_text_L2,cn=>cn.theme.color_text_L1,cn=>cn.theme.color_text_L1,cn=>cn.theme.color_text_L1,cn=>cn.theme.color_bg_white,cn=>cn.theme.color_text_L2,cn=>cn.theme.color_bg_white,Mo.in);class jo extends r.PureComponent{async componentDidMount(){this.props.dispatch({type:"entry:comment:rebuild:commentList"}),this.handleShowAnchor(),this.updateAnchor()}componentDidUpdate(In,tn){this.props.commentList.length!==(In==null?void 0:In.commentList.length)&&this.handleShowAnchor(),this.props.runnerCacheTag!==(In==null?void 0:In.runnerCacheTag)&&this.updateAnchor()}handleShowAnchor(){this.props.dispatch({type:"entry:comment:show-or-hide:anchor-node"})}updateAnchor(){this.props.dispatch({type:"entry:comment:update:view-container-style"})}render(){const{viewport:In,commentList:tn=[],activeCommentCid:Jt,wigglingCommentCid:Ln,editorRawContentObject:Xn,commentIsEditing:Dn,editingRecordCid:go,isCommentDragging:Uo,dispatch:Ho,creatingComment:ua,mode:la,viewType:To,currentOrg:Ia,theme:ya}=this.props,eo=tn.concat(ua||[]);if((eo==null?void 0:eo.length)===0)return null;let Oo;Jt&&(Oo=eo.find(gr=>gr.cid===Jt));const{emojiToastStyle:so,atStyle:to}=this.props,{left:Vo,top:ta}=so,{left:Qa,top:qr,keywords:kr,recordCid:ur,display:Mr}=to;return(0,$.jsxs)($.Fragment,{children:[(0,$.jsxs)(jn,{id:la+"-comment-view-container",className:la+"-comment",children:[eo.map(gr=>(0,$.jsx)(Le,{mode:la,creatingComment:ua,viewport:In,comment:gr,activeCommentCid:Jt,dispatch:Ho},gr.cid)),!Uo&&Oo&&(0,$.jsx)(ft,{mode:la,viewport:In,activeCommentCid:Jt,comment:Oo,wigglingCommentCid:Ln,editorRawContentObject:Xn,commentIsEditing:Dn,editingRecordCid:go,emojiToastStyle:so,atStyle:to,viewType:To,members:(Ia==null?void 0:Ia.members)||[],theme:ya,dispatch:Ho}),Oo&&(Vo!==0||ta!==0)&&(0,$.jsx)(Nn,{commentCid:Oo.cid,left:Vo,top:ta,dispatch:Ho}),Oo&&(Qa!==0||qr!==0)&&(0,$.jsx)(On,{atDisplay:Mr,commentCid:Oo.cid,recordCid:ur,keywords:kr,left:Qa,top:qr,members:(Ia==null?void 0:Ia.members)||[],dispatch:Ho})]}),(0,$.jsx)(xo,{})]})}}const Qo=jo},43619:(Qn,qe,s)=>{"use strict";s.d(qe,{A:()=>M});var r=s(38502),I=Object.defineProperty,J=Object.defineProperties,N=Object.getOwnPropertyDescriptors,T=Object.getOwnPropertySymbols,te=Object.prototype.hasOwnProperty,q=Object.prototype.propertyIsEnumerable,ne=(w,y,j)=>y in w?I(w,y,{enumerable:!0,configurable:!0,writable:!0,value:j}):w[y]=j,B=(w,y)=>{for(var j in y||(y={}))te.call(y,j)&&ne(w,j,y[j]);if(T)for(var j of T(y))q.call(y,j)&&ne(w,j,y[j]);return w},l=(w,y)=>J(w,N(y)),U=(w,y)=>{var j={};for(var Q in w)te.call(w,Q)&&y.indexOf(Q)<0&&(j[Q]=w[Q]);if(w!=null&&T)for(var Q of T(w))y.indexOf(Q)<0&&q.call(w,Q)&&(j[Q]=w[Q]);return j},M=(0,r.forwardRef)((w,y)=>{var j=w,{size:Q,spin:ze,style:me}=j,Se=U(j,["size","spin","style"]);const Me=B(B({width:Q||"var(--x-icon-size, 1em)",height:Q||"var(--x-icon-size, 1em)",animation:ze?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),me);return r.createElement("svg",l(B({ref:y,style:Me},Se),{width:"51",height:"17",viewBox:"0 0 51 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),r.createElement("rect",{x:"0.25",y:"0.25",width:"50.5",height:"16.5",rx:"4.25",fill:"url(#paint0_linear_291_100)"}),r.createElement("rect",{x:"0.25",y:"0.25",width:"50.5",height:"16.5",rx:"4.25",fill:"url(#paint1_linear_291_100)",fillOpacity:"0.68"}),r.createElement("rect",{x:"0.25",y:"0.25",width:"50.5",height:"16.5",rx:"4.25",fill:"url(#paint2_linear_291_100)",fillOpacity:"0.62"}),r.createElement("rect",{x:"0.25",y:"0.25",width:"50.5",height:"16.5",rx:"4.25",stroke:"#F6E0B1",strokeWidth:"0.5"}),r.createElement("path",{d:"M7.95 6.98C9.74 6.21 10.99 5.3 11.95 4H13C13.97 5.31 15.33 6.23 17.04 6.98L16.74 8.1C14.89 7.35 13.47 6.34 12.48 5.06C11.57 6.34 10.05 7.35 8.25 8.1L7.95 6.98ZM13.42 11.59H16.83V12.63H8.11L8.01 11.59H9.34V8.05H10.52V11.59H12.2V6.68H13.42V8.56H15.86V9.56H13.42V11.59ZM26.44 5.4C26.26 6.92 25.98 8.45 25.62 9.97H24.42C24.78 8.45 25.06 6.92 25.24 5.4H26.44ZM18.76 9.97C18.56 8.45 18.28 6.92 17.94 5.4H19.14C19.48 6.92 19.76 8.45 19.96 9.97H18.76ZM23.93 11.59H26.7V12.63H17.83L17.74 11.59H20.49V4H21.71V11.59H22.71V4H23.93V11.59Z",fill:"#F6E0B1"}),r.createElement("path",{d:"M7.95 6.98C9.74 6.21 10.99 5.3 11.95 4H13C13.97 5.31 15.33 6.23 17.04 6.98L16.74 8.1C14.89 7.35 13.47 6.34 12.48 5.06C11.57 6.34 10.05 7.35 8.25 8.1L7.95 6.98ZM13.42 11.59H16.83V12.63H8.11L8.01 11.59H9.34V8.05H10.52V11.59H12.2V6.68H13.42V8.56H15.86V9.56H13.42V11.59ZM26.44 5.4C26.26 6.92 25.98 8.45 25.62 9.97H24.42C24.78 8.45 25.06 6.92 25.24 5.4H26.44ZM18.76 9.97C18.56 8.45 18.28 6.92 17.94 5.4H19.14C19.48 6.92 19.76 8.45 19.96 9.97H18.76ZM23.93 11.59H26.7V12.63H17.83L17.74 11.59H20.49V4H21.71V11.59H22.71V4H23.93V11.59Z",fill:"url(#paint3_linear_291_100)"}),r.createElement("path",{d:"M30.7256 12.5L27.6792 4.5928H29.5608L31.8792 10.988H31.1064L33.4584 4.5928H35.3176L32.2376 12.5H30.7256ZM35.746 12.5V4.5928H37.5044V12.5H35.746ZM39.8712 9.6216V8.2552H41.5736C41.7902 8.2552 41.988 8.2104 42.1672 8.1208C42.3464 8.0312 42.4883 7.90053 42.5928 7.7288C42.6974 7.55707 42.7496 7.348 42.7496 7.1016C42.7496 6.86267 42.6974 6.65733 42.5928 6.4856C42.4883 6.31387 42.3464 6.1832 42.1672 6.0936C41.988 6.004 41.7902 5.9592 41.5736 5.9592H39.8712V4.5928H41.8312C42.3315 4.5928 42.7832 4.6936 43.1864 4.8952C43.5896 5.0968 43.907 5.388 44.1384 5.7688C44.3774 6.14213 44.4968 6.5864 44.4968 7.1016C44.4968 7.6168 44.3774 8.0648 44.1384 8.4456C43.907 8.81893 43.5896 9.11013 43.1864 9.3192C42.7832 9.5208 42.3315 9.6216 41.8312 9.6216H39.8712ZM38.5272 12.5V4.5928H40.2856V12.5H38.5272Z",fill:"#F6E0B1"}),r.createElement("path",{d:"M30.7256 12.5L27.6792 4.5928H29.5608L31.8792 10.988H31.1064L33.4584 4.5928H35.3176L32.2376 12.5H30.7256ZM35.746 12.5V4.5928H37.5044V12.5H35.746ZM39.8712 9.6216V8.2552H41.5736C41.7902 8.2552 41.988 8.2104 42.1672 8.1208C42.3464 8.0312 42.4883 7.90053 42.5928 7.7288C42.6974 7.55707 42.7496 7.348 42.7496 7.1016C42.7496 6.86267 42.6974 6.65733 42.5928 6.4856C42.4883 6.31387 42.3464 6.1832 42.1672 6.0936C41.988 6.004 41.7902 5.9592 41.5736 5.9592H39.8712V4.5928H41.8312C42.3315 4.5928 42.7832 4.6936 43.1864 4.8952C43.5896 5.0968 43.907 5.388 44.1384 5.7688C44.3774 6.14213 44.4968 6.5864 44.4968 7.1016C44.4968 7.6168 44.3774 8.0648 44.1384 8.4456C43.907 8.81893 43.5896 9.11013 43.1864 9.3192C42.7832 9.5208 42.3315 9.6216 41.8312 9.6216H39.8712ZM38.5272 12.5V4.5928H40.2856V12.5H38.5272Z",fill:"url(#paint4_linear_291_100)"}),r.createElement("defs",null,r.createElement("linearGradient",{id:"paint0_linear_291_100",x1:"23.2273",y1:"3.05333",x2:"28.8776",y2:"18.4473",gradientUnits:"userSpaceOnUse"},r.createElement("stop",{stopColor:"#131210"}),r.createElement("stop",{offset:"1",stopColor:"#515459"})),r.createElement("linearGradient",{id:"paint1_linear_291_100",x1:"1.83929",y1:"16.5",x2:"14.4007",y2:"10.6874",gradientUnits:"userSpaceOnUse"},r.createElement("stop",{stopColor:"#682B00"}),r.createElement("stop",{offset:"1",stopColor:"#842F00",stopOpacity:"0"})),r.createElement("linearGradient",{id:"paint2_linear_291_100",x1:"4.54412",y1:"2.06943",x2:"8.55457",y2:"10.5908",gradientUnits:"userSpaceOnUse"},r.createElement("stop",{stopColor:"#FFF8DF"}),r.createElement("stop",{offset:"1",stopColor:"white",stopOpacity:"0"})),r.createElement("linearGradient",{id:"paint3_linear_291_100",x1:"27.6042",y1:"14.9878",x2:"21.4815",y2:"13.7973",gradientUnits:"userSpaceOnUse"},r.createElement("stop",{stopColor:"#EFB66D"}),r.createElement("stop",{offset:"1",stopColor:"#F8C784",stopOpacity:"0"})),r.createElement("linearGradient",{id:"paint4_linear_291_100",x1:"45.5938",y1:"15.4203",x2:"40.0249",y2:"14.5067",gradientUnits:"userSpaceOnUse"},r.createElement("stop",{stopColor:"#EFB66D"}),r.createElement("stop",{offset:"1",stopColor:"#F8C784",stopOpacity:"0"}))))})},44007:(Qn,qe,s)=>{"use strict";s.d(qe,{A:()=>Pt});var r=s(95549),I=s(38502);let J=function(dt){return dt[dt.message=0]="message",dt[dt.picture=1]="picture",dt[dt.video=2]="video",dt[dt.unknown=3]="unknown",dt}({}),N=function(dt){return dt.user="user",dt.bot="bot",dt}({}),T=function(dt){return dt[dt.finish=0]="finish",dt[dt.generating=1]="generating",dt[dt.fail=2]="fail",dt[dt.streaming=3]="streaming",dt}({});var te=s(46905);const q=()=>({content:"You are the intelligent AI assistant of the prototyping tool Mockitt",role:"system"}),ne=(dt,Vn,o,Gn)=>{const xt=""+(dt.length+1),Ot=(0,te.AM)({user:o,project:Gn}),wt={id:xt,role:N.user,associateID:Ot,status:T.finish,message:Vn},Kt={id:Ot,role:N.bot,associateID:xt,status:T.generating,message:"",time:C()};return{chatList:dt.concat([wt]),streamChat:Kt}};async function B(dt){if(dt){try{return await navigator.clipboard.writeText(dt),!0}catch(Vn){const o=document.createElement("textarea");o.value=dt,document.body.appendChild(o),o.focus(),o.select();try{return document.execCommand("copy"),document.body.removeChild(o),!0}catch(Gn){console.log("### \u590D\u5236\u5931\u8D25"),document.body.removeChild(o)}}return!1}}const l=dt=>{let Vn=0;for(let o=0;o<dt.length;o++){const Gn=dt.charCodeAt(o);Gn>=19968&&Gn<=40869?Vn+=2:(Gn>=32&&Gn<=126,Vn+=1)}return Vn},U=(dt,Vn)=>{const o=[...Vn],Gn=Vn.filter(wt=>{const Kt=o.find(fe=>fe.associateID===wt.id);return Kt&&Kt.role===N.bot&&Kt.status!==T.finish||wt.role===N.bot&&wt.status!==T.finish?!1:Kt});let xt=13+l(dt);const Ot=[];for(let wt=0;wt<Gn.length;wt++){const Kt=Gn[Gn.length-wt-1];if(Kt&&(xt=xt+l(Kt.message),xt<2e3)){Ot.push({[Kt.role]:Kt.message});continue}}return Ot.reverse(),Ot.length>0&&Ot[Ot.length-1].role===N.user&&Ot.pop(),ENV.IS_WONDER_SHARE&&(Ot.unshift(q()),Ot.push({content:dt,role:N.user})),Ot},C=()=>{const dt=new Date,Vn=String(dt.getMonth()+1).padStart(2,"0"),o=String(dt.getDate()).padStart(2,"0"),Gn=String(dt.getHours()).padStart(2,"0"),xt=String(dt.getMinutes()).padStart(2,"0");return Vn+"/"+o+" "+Gn+":"+xt},M=dt=>{let Vn="",o="";for(const Gn of dt.split("\n"))if(Gn.trim())try{const{value:xt,done:Ot}=JSON.parse(Gn);if(Ot)return{value:xt,done:!0};Vn+=xt.partialAnswer,xt.partialReasoning&&(o+=xt.partialReasoning)}catch(xt){break}return{content:Vn,reasoningContent:o,done:!1}};var w=s(46723),y=s(53732),j=s.n(y),Q=s(46219),ze=s(23744),me=s(67787);const Se=me.Ay.div.withConfig({displayName:"styles__StyledChatBottomTool",componentId:"sc-1m3zz5y-0"})(["padding-top:10px;padding-bottom:16px;padding-right:18px;.new-dialogue{line-height:28px;padding:0px 11px 0 8px;font-size:13px;font-weight:500;border-radius:6px;display:flex;align-items:center;width:fit-content;text-align:center;cursor:pointer;color:",";border:1px solid ",";background:",";svg{width:12px;height:12px;margin-right:4px;path{stroke:",";}}&.disabled{pointer-events:none;color:",";svg{path{stroke:",";}}}&:not(.disabled):hover{background:",";}&:not(.disabled):active{background:",";}}"],dt=>dt.theme.color_text_L1,dt=>dt.theme.color_bg_border_02,dt=>dt.theme.color_bg_white,dt=>dt.theme.color_text_L1,dt=>dt.theme.color_text_disabled01,dt=>dt.theme.color_text_disabled01,dt=>dt.theme.color_btn_secondary_hover,dt=>dt.theme.color_btn_secondary_active),Me=me.Ay.div.withConfig({displayName:"styles__StyledChatTextArea",componentId:"sc-1m3zz5y-1"})(["width:100%;flex-direction:column;font-size:12px;background:linear-gradient(97.39deg,#D5CCFF 1.15%,#FFCCFF 33.16%,#BBFAFA 66.15%,#BFDFFF 99.64%);padding:2px;border-radius:6px;&:not(.generating):hover{background:linear-gradient(90deg,#7F66FF 0%,#FF66FF 32.5%,#6699FF 67%,#64FAFA 100%);}&.isFocus{background:linear-gradient(90deg,#7F66FF 0%,#FF66FF 32.5%,#6699FF 67%,#64FAFA 100%);}.colorful-border-content{padding:10px;border-radius:4px;background-color:",";}&.generating{pointer-events:none;}.chat-input{width:100%;height:42px;font-family:inherit;resize:none;outline:none;border:none;background:rgba(0,0,0,0);color:",";caret-color:",";word-break:break-all;}.chat-input::-webkit-scrollbar{width:4px;height:4px;margin-left:5px;}.chat-input::-webkit-scrollbar-thumb{border-radius:2px;-moz-border-radius:2px;-webkit-border-radius:2px;background:rgba(22,132,252,0.25);}.chat-input::-webkit-scrollbar-track{background-color:transparent;}.chat-input::-webkit-input-placeholder{color:",";}.chat-input:-moz-placeholder{color:",";}.chat-input::-moz-placeholder{color:",";}.chat-input::-ms-input-placeholder{color:",";}.bottom-tool{display:flex;align-items:center;justify-content:space-between;pointer-events:auto;.bottom-right{display:flex;align-items:center;}.input-number{color:",";font-size:12px;line-height:17px;margin-right:16px;&.error{color:",";}}.send-message{display:flex;font-family:PingFang SC;align-items:center;justify-content:center;color:white;cursor:pointer;font-weight:500;font-size:12px;svg{height:28px;width:28px;}&:not(.disabled):hover{svg{rect{&:not(.center-rect){fill:",";}}}}&.disabled{pointer-events:none;svg{rect{fill:",";}path{fill:",";}}}}}"],dt=>dt.theme.color_bg_white,dt=>dt.theme.color_text_L1,dt=>dt.theme.color_text_L1,dt=>dt.theme.color_text_L3,dt=>dt.theme.color_text_L3,dt=>dt.theme.color_text_L3,dt=>dt.theme.color_text_L3,dt=>dt.theme.color_text_L3,dt=>dt.theme.color_primary_brand02,dt=>dt.theme.color_btn_primary_normal,dt=>dt.theme.color_btn_primary_disabled,dt=>dt.theme.color_text_disabled02);var De=s(72214);function tt(dt){let{isEmpty:Vn,generating:o,userInput:Gn,isDark:xt,sendMessageHandle:Ot,createNewDialogueHandle:wt,handleChatInputValue:Kt,stopGeneratingHandle:fe}=dt;const[bt,un]=(0,I.useState)(!1),gt=(0,I.useRef)(null),Wt=(Gn==null?void 0:Gn.length)===0&&!o,Un=rt=>{rt.keyCode===13&&!rt.shiftKey&&(Gn.length>0&&Jn(),rt.preventDefault())},Jn=()=>{var rt;if(!Wt){if(o){fe();return}gt==null||(rt=gt.current)==null||rt.blur(),Ot(Gn)}},Yt=()=>{wt()};return(0,De.jsx)(Se,{isDark:xt,children:(0,De.jsx)(Me,{isDark:xt,className:j()(bt&&"isFocus",o&&"generating"),children:(0,De.jsxs)("div",{className:"colorful-border-content",children:[(0,De.jsx)("textarea",{ref:gt,id:"chat-input",className:"chat-input",maxLength:200,value:Gn,onChange:rt=>Kt(rt.target.value),onKeyDown:Un,onFocus:()=>{un(!0)},rows:3,onBlur:()=>{un(!1)},placeholder:I18N.ChatGPT.ask_me_anything}),(0,De.jsxs)("div",{className:"bottom-tool",children:[(0,De.jsxs)("div",{className:j()("new-dialogue",Vn&&"disabled"),onClick:Yt,children:[(0,De.jsx)(ze.C,{name:"chatGPT/ai-add_new_dialogue",isColorPure:!0}),I18N.ChatGPT.add_new_chat]}),(0,De.jsxs)("div",{className:"bottom-right",children:[(0,De.jsxs)("div",{className:j()("input-number",{error:Gn.length>=200}),children:[Gn.length>=200?200:Gn.length,"/200"]}),(0,De.jsx)(Q.A,{arrowed:!0,content:{click:null,hover:o?I18N.ChatGPT.ai_chat_stop:null},duration:1500,position:"top",onClick:Jn,children:(0,De.jsx)("div",{className:j()("send-message",Wt&&"disabled",o&&"is-generating"),children:(0,De.jsx)(ze.C,{name:o?"chatGPT/ai-chat-stop":"chatGPT/ai-chat-send",isColorPure:!0})})})]})]})]})})})}const at=me.Ay.div.withConfig({displayName:"styles__StyledChatMessageEmpty",componentId:"sc-b70yeb-0"})(["width:100%;height:100%;display:flex;flex-direction:column;justify-content:center;text-align:center;.question-tip{font-size:12px;line-height:20px;color:",";}.recommend-list{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;margin:24px 0;}.chat-recommend-item{padding:1px;display:flex;align-items:center;justify-content:center;font-family:PingFang SC;font-style:normal;font-weight:400;font-size:12px;color:",";cursor:pointer;border-radius:16px;&:hover{color:",";background:linear-gradient(90deg,#7F66FF 0%,#FF66FF 32.5%,#6699FF 67%,#64FAFA 100%);& .item-message{border:1px solid rgba(0,0,0,0);}}.item-message{width:fit-content;line-height:30px;border-radius:15px;background:",";padding:0 16px;border:1px solid ",";}}.refresh{font-size:12px;line-height:20px;display:flex;align-items:center;color:",";justify-content:center;width:fit-content;margin:0 auto;cursor:pointer;&:hover{color:",";path{stroke:",";}}svg{width:24px;height:24px;margin-right:4px;path{fill:white;}}}"],dt=>dt.theme.color_text_L3,dt=>dt.isDark?"rgba(255,255,255,0.9)":dt.theme.color_text_L1,dt=>dt.isDark?"white":dt.theme.color_text_L1,dt=>dt.theme.color_background_white,dt=>dt.isDark?"#FFFFFF14":"#12112A12",dt=>dt.theme.color_primary_proto01,dt=>dt.theme.color_primary_proto02,dt=>dt.theme.color_primary_proto02);class ht extends I.PureComponent{constructor(){super(...arguments),(0,r.A)(this,"state",{currentPage:0,recommendedDialogues:[[I18N.ChatGPT.recommended_dialogue1,I18N.ChatGPT.recommended_dialogue2,I18N.ChatGPT.recommended_dialogue3,I18N.ChatGPT.recommended_dialogue4,I18N.ChatGPT.recommended_dialogue5],[I18N.ChatGPT.recommended_dialogue6,I18N.ChatGPT.recommended_dialogue7,I18N.ChatGPT.recommended_dialogue8,I18N.ChatGPT.recommended_dialogue9,I18N.ChatGPT.recommended_dialogue10],[I18N.ChatGPT.recommended_dialogue11,I18N.ChatGPT.recommended_dialogue12,I18N.ChatGPT.recommended_dialogue13,I18N.ChatGPT.recommended_dialogue14,I18N.ChatGPT.recommended_dialogue15]]}),(0,r.A)(this,"changePage",()=>{const{currentPage:Vn}=this.state;this.setState({currentPage:Vn===2?0:Vn+1})}),(0,r.A)(this,"selectItemHandle",Vn=>{const{sendMessageHandle:o}=this.props;o&&o(Vn)})}render(){const{isDark:Vn}=this.props,{currentPage:o,recommendedDialogues:Gn}=this.state,xt=Gn[o];return(0,De.jsxs)(at,{isDark:Vn,children:[(0,De.jsx)("div",{className:"question-tip",children:I18N.ChatGPT.you_can_ask}),(0,De.jsx)("div",{className:"recommend-list",children:xt.map((Ot,wt)=>(0,De.jsx)("div",{"data-item":Ot,className:"chat-recommend-item",onClick:()=>this.selectItemHandle(Ot),children:(0,De.jsx)("span",{className:"item-message",children:Ot})},Ot+"-"+wt))}),(0,De.jsx)("div",{className:"refresh",onClick:this.changePage,children:I18N.ChatGPT.Change})]})}}const Je=me.Ay.div.withConfig({displayName:"styles__StyledChatGPTModal",componentId:"sc-nbqxms-0"})(["display:flex;justify-content:center;align-items:center;color:",";width:100%;padding:0 2px 0 20px;height:calc(100% - 64px);&.show-switch{height:calc(100% - 88px);}.chat-content{display:flex;position:relative;width:100%;height:100%;flex-direction:column;scroll-behavior:smooth;.chat-body{flex:1 1;overflow:auto;overflow-y:overlay;padding-right:18px;padding-bottom:15px;padding-top:10px;::-webkit-scrollbar{--bar-width:4px;width:var(--bar-width);height:var(--bar-width);}::-webkit-scrollbar-track{background-color:transparent;}::-webkit-scrollbar-thumb{background-color:",";border-radius:4px;&:hover{background-color:",";}border-radius:20px;border:1px solid transparent;}}.stop-generating{position:absolute;left:50%;bottom:158px;transform:translateX(-50%);background:",";padding:6px 9px;line-height:14px;text-align:center;border:1px solid ",";border-radius:6px;font-size:12px;color:",";&:hover{background:",";}&:active{background:",";}}}"],dt=>dt.theme.color_text_L1,dt=>dt.theme.color_slider_normal,dt=>dt.theme.color_slider_hover,dt=>dt.theme.color_background_white,dt=>dt.theme.color_background_white_modal_active,dt=>dt.theme.color_text_L1,dt=>dt.theme.color_background_icon_hover,dt=>dt.theme.color_background_white_modal_hover),$=me.Ay.div.withConfig({displayName:"styles__StyledChatBorderButton",componentId:"sc-nbqxms-1"})(["border:1px solid ",";border-radius:6px;font-size:12px;display:flex;align-items:center;text-align:center;color:",";padding:0px 10px;width:fit-content;height:28px;cursor:pointer;background:",";&:hover{background:",";}&:active{background:",";}"],dt=>dt.theme.color_ai_button_border,dt=>dt.theme.color_text_L0,dt=>dt.theme.color_ai_button_bg,dt=>dt.theme.color_ai_button_bg_hover,dt=>dt.theme.color_ai_button_bg_active);var mt=s(57999),yt=s(69623);const Le=me.Ay.div.withConfig({displayName:"styles__StyledLoading",componentId:"sc-170tjww-0"})(["display:flex;align-items:center;font-size:0;color:",";height:14px;gap:4px;& > div{position:relative;box-sizing:border-box;display:inline-block;float:none;background-color:currentColor;border:0 solid currentColor;width:6px;height:6px;border-radius:100%;animation:ball-beat 0.7s -0.15s infinite linear;}& > div:nth-child(2n-1){animation-delay:-0.5s;}@keyframes ball-beat{50%{opacity:0.25;transform:scale(0.75);}100%{opacity:1;transform:scale(1);}}"],dt=>dt.theme.color_text_L3);class He extends I.PureComponent{render(){return(0,De.jsx)(Le,{children:Array.from({length:3}).map((Vn,o)=>(0,De.jsx)("div",{},o))})}}var ye=s(28894),je=s(93093),ot=s(85449);class we extends I.Component{constructor(){super(...arguments),(0,r.A)(this,"state",{hasError:!1,libRehype:ye.zl.hasLLG()?ye.zl.getLLG():void 0})}componentDidMount(){this.state.libRehype||ye.zl.loadLLG().then(Vn=>this.setState({libRehype:Vn}))}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(Vn,o){var Gn;const{message:xt,id:Ot}=this.props,Kt=(((Gn=(0,ot.dP)())==null||(Gn=Gn.ai)==null?void 0:Gn.chatMessages)||[]).find(fe=>fe.associateID===Ot);(0,je.Cp)(Vn,{level:"debug",fingerprint:["ai chat render error"],extra:{message:xt,question:Kt==null?void 0:Kt.message}})}render(){const{hasError:Vn,libRehype:o}=this.state;if(!o)return null;const{message:Gn,className:xt}=this.props,{ReactMarkdown:Ot,RehypeHighlight:wt,RemarkMath:Kt,RemarkBreaks:fe,RehypeKatex:bt,RemarkGfm:un}=o,gt=[Kt,un,fe],Wt=Vn?[bt]:[bt,[wt,{detect:!1,ignoreMissing:!0}]];return(0,De.jsx)("div",{className:j()("markdown-body",xt),onMouseDown:Un=>{Un.stopPropagation()},children:(0,De.jsx)(Ot,{remarkPlugins:gt,rehypePlugins:Wt,linkTarget:"_blank",children:Gn})})}}const $e=we,ge=me.Ay.div.withConfig({displayName:"styles__StyledChatMessageItem",componentId:"sc-18jikxs-0"})(["width:100%;display:flex;flex-direction:column;.row-content{display:flex;width:100%;align-items:center;margin-top:10px;&.user{justify-content:flex-end;}&.assistant{justify-content:flex-start;}}.message-content{-webkit-user-select:auto !important;-ms-user-select:auto !important;user-select:auto !important;padding:10px 16px;max-width:100%;color:",";&.loading{width:66px;padding:12px 0;display:flex;justify-content:center;}&.fail{color:",";.markdown-body{border-radius:10px;padding:10px 16px;background:",";}}&.user{border-radius:10px;background:",";}&.is-stream{width:100%;padding:10px 0px;}}.deep-seek-container{width:100%;border-radius:10px;overflow:hidden;border:1px solid ",";display:flex;flex-direction:column;margin-bottom:20px;color:",";.deep-seek-head{padding:0 12px;height:36px;display:flex;align-items:center;justify-content:space-between;background:",";border-bottom:1px solid rgba(0,0,0,0);&:not(.is-collapse){border-bottom:1px solid ",";}}.head-left{display:flex;align-items:center;.status{font-size:12px;font-weight:500;margin-left:6px;margin-right:12px;color:",";span{font-weight:400;color:",";}}}.svg-box{display:flex;align-items:center;cursor:pointer;animation:rotate 1.5s linear infinite;&.is-collapse{transform:rotate(-90deg);}&:hover{color:",";background-color:",";border-radius:4px;}.ai-chat-expand-arrow{path{stroke:currentColor;fill:rgba(0,0,0,0);}}.ai-chat-copy{path{fill:currentColor;stroke:rgba(0,0,0,0);}}}svg{width:24px;height:24px;cursor:pointer;}}.markdown-body-deep-seek{padding:16px;}"],dt=>dt.theme.color_text_L1,dt=>dt.theme.color_text_error,dt=>dt.theme.color_error_bg,dt=>dt.theme.color_bg_tab,dt=>dt.theme.color_bg_border_01,dt=>dt.theme.color_text_L2,dt=>dt.theme.color_navigation_hover,dt=>dt.theme.color_bg_border_01,dt=>dt.theme.color_text_L1,dt=>dt.theme.color_text_L3,dt=>dt.theme.color_text_L1,dt=>dt.theme.color_btn_secondary_active),Ze=(0,me.DU)(['.markdown-body{-webkit-user-select:auto !important;-ms-user-select:auto !important;user-select:auto !important;*{-webkit-user-select:text !important;-ms-user-select:text !important;user-select:text !important;}pre{padding:0;}pre,code{font-family:Consolas,Monaco,"Andale Mono","Ubuntu Mono",monospace;}pre code{display:block;overflow-x:auto;padding:1em;}code{padding:3px 5px;}.hljs,pre{background:#1a1b26;color:#cbd2ea;}.hljs-comment,.hljs-meta{color:#565f89;}.hljs-deletion,.hljs-doctag,.hljs-regexp,.hljs-selector-attr,.hljs-selector-class,.hljs-selector-id,.hljs-selector-pseudo,.hljs-tag,.hljs-template-tag,.hljs-variable.language_{color:#f7768e;}.hljs-link,.hljs-literal,.hljs-number,.hljs-params,.hljs-template-variable,.hljs-type,.hljs-variable{color:#ff9e64;}.hljs-attribute,.hljs-built_in{color:#e0af68;}.hljs-keyword,.hljs-property,.hljs-subst,.hljs-title,.hljs-title.class_,.hljs-title.class_.inherited__,.hljs-title.function_{color:#7dcfff;}.hljs-selector-tag{color:#73daca;}.hljs-addition,.hljs-bullet,.hljs-quote,.hljs-string,.hljs-symbol{color:#9ece6a;}.hljs-code,.hljs-formula,.hljs-section{color:#7aa2f7;}.hljs-attr,.hljs-char.escape_,.hljs-keyword,.hljs-name,.hljs-operator{color:#bb9af7;}.hljs-punctuation{color:#c0caf5;}.hljs-emphasis{font-style:italic;}.hljs-strong{font-weight:700;}}.markdown-body{-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%;margin:0;background-color:var(--color-canvas-default);font-size:12px;line-height:1.5;word-wrap:break-word;}.markdown-body .octicon{display:inline-block;fill:currentColor;vertical-align:text-bottom;}.markdown-body h1:hover .anchor .octicon-link:before,.markdown-body h2:hover .anchor .octicon-link:before,.markdown-body h3:hover .anchor .octicon-link:before,.markdown-body h4:hover .anchor .octicon-link:before,.markdown-body h5:hover .anchor .octicon-link:before,.markdown-body h6:hover .anchor .octicon-link:before{width:16px;height:16px;content:" ";display:inline-block;background-color:currentColor;}.markdown-body details,.markdown-body figcaption,.markdown-body figure{display:block;}.markdown-body summary{display:list-item;}.markdown-body [hidden]{display:none !important;}.markdown-body a{background-color:transparent;color:var(--color-accent-fg);text-decoration:none;}.markdown-body abbr[title]{border-bottom:none;text-decoration:underline dotted;}.markdown-body b,.markdown-body strong{font-weight:var(--base-text-weight-semibold,600);}.markdown-body dfn{font-style:italic;}.markdown-body h1{margin:0.67em 0;font-weight:var(--base-text-weight-semibold,600);padding-bottom:0.3em;font-size:2em;border-bottom:1px solid var(--color-border-muted);}.markdown-body mark{background-color:var(--color-attention-subtle);color:var(--color-fg-default);}.markdown-body small{font-size:90%;}.markdown-body sub,.markdown-body sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline;}.markdown-body sub{bottom:-0.25em;}.markdown-body sup{top:-0.5em;}.markdown-body img{border-style:none;max-width:100%;box-sizing:content-box;background-color:var(--color-canvas-default);}.markdown-body code,.markdown-body kbd,.markdown-body pre,.markdown-body samp{font-family:monospace;font-size:1em;}.markdown-body figure{margin:1em 40px;}.markdown-body hr{box-sizing:content-box;overflow:hidden;background:transparent;border-bottom:1px solid var(--color-border-muted);height:1px;padding:0;margin:15px 0;background-color:',';border:0;}.markdown-body input{font:inherit;margin:0;overflow:visible;font-family:inherit;font-size:inherit;line-height:inherit;}.markdown-body [type="button"],.markdown-body [type="reset"],.markdown-body [type="submit"]{-webkit-appearance:button;}.markdown-body [type="checkbox"],.markdown-body [type="radio"]{box-sizing:border-box;padding:0;}.markdown-body [type="number"]::-webkit-inner-spin-button,.markdown-body [type="number"]::-webkit-outer-spin-button{height:auto;}.markdown-body [type="search"]::-webkit-search-cancel-button,.markdown-body [type="search"]::-webkit-search-decoration{-webkit-appearance:none;}.markdown-body ::-webkit-input-placeholder{color:inherit;opacity:0.54;}.markdown-body ::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}.markdown-body a:hover{text-decoration:underline;}.markdown-body ::placeholder{color:var(--color-fg-subtle);opacity:1;}.markdown-body hr::before{display:table;content:"";}.markdown-body hr::after{display:table;clear:both;content:"";}.markdown-body table{border-spacing:0;border-collapse:collapse;display:block;width:max-content;max-width:100%;overflow:auto;}.markdown-body td,.markdown-body th{padding:0;}.markdown-body details summary{cursor:pointer;}.markdown-body details:not([open]) > *:not(summary){display:none !important;}.markdown-body a:focus,.markdown-body [role="button"]:focus,.markdown-body input[type="radio"]:focus,.markdown-body input[type="checkbox"]:focus{outline:2px solid var(--color-accent-fg);outline-offset:-2px;box-shadow:none;}.markdown-body a:focus:not(:focus-visible),.markdown-body [role="button"]:focus:not(:focus-visible),.markdown-body input[type="radio"]:focus:not(:focus-visible),.markdown-body input[type="checkbox"]:focus:not(:focus-visible){outline:solid 1px transparent;}.markdown-body a:focus-visible,.markdown-body [role="button"]:focus-visible,.markdown-body input[type="radio"]:focus-visible,.markdown-body input[type="checkbox"]:focus-visible{outline:2px solid var(--color-accent-fg);outline-offset:-2px;box-shadow:none;}.markdown-body a:not([class]):focus,.markdown-body a:not([class]):focus-visible,.markdown-body input[type="radio"]:focus,.markdown-body input[type="radio"]:focus-visible,.markdown-body input[type="checkbox"]:focus,.markdown-body input[type="checkbox"]:focus-visible{outline-offset:0;}.markdown-body kbd{display:inline-block;padding:3px 5px;font:11px ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace;line-height:10px;color:var(--color-fg-default);vertical-align:middle;background-color:var(--color-canvas-subtle);border:solid 1px var(--color-neutral-muted);border-bottom-color:var(--color-neutral-muted);border-radius:6px;box-shadow:inset 0 -1px 0 var(--color-neutral-muted);}.markdown-body h1,.markdown-body h2,.markdown-body h3,.markdown-body h4,.markdown-body h5,.markdown-body h6{margin-top:24px;margin-bottom:16px;font-weight:var(--base-text-weight-semibold,600);line-height:1.25;}.markdown-body h2{font-weight:var(--base-text-weight-semibold,600);padding-bottom:0.3em;font-size:1.5em;border-bottom:1px solid var(--color-border-muted);}.markdown-body h3{font-weight:var(--base-text-weight-semibold,600);font-size:1.25em;}.markdown-body h4{font-weight:var(--base-text-weight-semibold,600);font-size:1em;}.markdown-body h5{font-weight:var(--base-text-weight-semibold,600);font-size:0.875em;}.markdown-body h6{font-weight:var(--base-text-weight-semibold,600);font-size:0.85em;color:var(--color-fg-muted);}.markdown-body p{margin-top:0;margin-bottom:10px;}.markdown-body blockquote{margin:0;padding:0 1em;color:var(--color-fg-muted);border-left:0.25em solid var(--color-border-default);}.markdown-body ul,.markdown-body ol{margin-top:0;margin-bottom:0;padding-left:2em;}.markdown-body ol ol,.markdown-body ul ol{list-style-type:lower-roman;}.markdown-body ul ul ol,.markdown-body ul ol ol,.markdown-body ol ul ol,.markdown-body ol ol ol{list-style-type:lower-alpha;}.markdown-body dd{margin-left:0;}.markdown-body tt,.markdown-body code,.markdown-body samp{font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace;font-size:12px;}.markdown-body pre{margin-top:0;margin-bottom:0;font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace;font-size:12px;word-wrap:normal;}.markdown-body .octicon{display:inline-block;overflow:visible !important;vertical-align:text-bottom;fill:currentColor;}.markdown-body input::-webkit-outer-spin-button,.markdown-body input::-webkit-inner-spin-button{margin:0;-webkit-appearance:none;appearance:none;}.markdown-body::before{display:table;content:"";}.markdown-body::after{display:table;clear:both;content:"";}.markdown-body > *:first-child{margin-top:0 !important;}.markdown-body > *:last-child{margin-bottom:0 !important;}.markdown-body a:not([href]){color:inherit;text-decoration:none;}.markdown-body .absent{color:var(--color-danger-fg);}.markdown-body .anchor{float:left;padding-right:4px;margin-left:-20px;line-height:1;}.markdown-body .anchor:focus{outline:none;}.markdown-body p,.markdown-body blockquote,.markdown-body ul,.markdown-body ol,.markdown-body dl,.markdown-body table,.markdown-body pre,.markdown-body details{margin-top:0;margin-bottom:16px;}.markdown-body blockquote > :first-child{margin-top:0;}.markdown-body blockquote > :last-child{margin-bottom:0;}.markdown-body h1 .octicon-link,.markdown-body h2 .octicon-link,.markdown-body h3 .octicon-link,.markdown-body h4 .octicon-link,.markdown-body h5 .octicon-link,.markdown-body h6 .octicon-link{color:var(--color-fg-default);vertical-align:middle;visibility:hidden;}.markdown-body h1:hover .anchor,.markdown-body h2:hover .anchor,.markdown-body h3:hover .anchor,.markdown-body h4:hover .anchor,.markdown-body h5:hover .anchor,.markdown-body h6:hover .anchor{text-decoration:none;}.markdown-body h1:hover .anchor .octicon-link,.markdown-body h2:hover .anchor .octicon-link,.markdown-body h3:hover .anchor .octicon-link,.markdown-body h4:hover .anchor .octicon-link,.markdown-body h5:hover .anchor .octicon-link,.markdown-body h6:hover .anchor .octicon-link{visibility:visible;}.markdown-body h1 tt,.markdown-body h1 code,.markdown-body h2 tt,.markdown-body h2 code,.markdown-body h3 tt,.markdown-body h3 code,.markdown-body h4 tt,.markdown-body h4 code,.markdown-body h5 tt,.markdown-body h5 code,.markdown-body h6 tt,.markdown-body h6 code{padding:0 0.2em;font-size:inherit;}.markdown-body summary h1,.markdown-body summary h2,.markdown-body summary h3,.markdown-body summary h4,.markdown-body summary h5,.markdown-body summary h6{display:inline-block;}.markdown-body summary h1 .anchor,.markdown-body summary h2 .anchor,.markdown-body summary h3 .anchor,.markdown-body summary h4 .anchor,.markdown-body summary h5 .anchor,.markdown-body summary h6 .anchor{margin-left:-40px;}.markdown-body summary h1,.markdown-body summary h2{padding-bottom:0;border-bottom:0;}.markdown-body ol li{list-style:auto;}.markdown-body ul li{list-style:initial;}.markdown-body ul.no-list,.markdown-body ol.no-list{padding:0;list-style-type:none;}.markdown-body ol[type="a"]{list-style-type:lower-alpha;}.markdown-body ol[type="A"]{list-style-type:upper-alpha;}.markdown-body ol[type="i"]{list-style-type:lower-roman;}.markdown-body ol[type="I"]{list-style-type:upper-roman;}.markdown-body ol[type="1"]{list-style-type:decimal;}.markdown-body div > ol:not([type]){list-style-type:decimal;}.markdown-body ul ul,.markdown-body ul ol,.markdown-body ol ol,.markdown-body ol ul{margin-top:0;margin-bottom:0;}.markdown-body li > p{margin-top:16px;}.markdown-body li + li{margin-top:0.25em;}.markdown-body dl{padding:0;}.markdown-body dl dt{padding:0;margin-top:16px;font-size:1em;font-style:italic;font-weight:var(--base-text-weight-semibold,600);}.markdown-body dl dd{padding:0 16px;margin-bottom:16px;}.markdown-body table th{font-weight:var(--base-text-weight-semibold,600);}.markdown-body table th,.markdown-body table td{padding:6px 13px;border:1px solid var(--color-border-default);}.markdown-body table tr{background-color:var(--color-canvas-default);border-top:1px solid var(--color-border-muted);}.markdown-body table img{background-color:transparent;}.markdown-body img[align="right"]{padding-left:20px;}.markdown-body img[align="left"]{padding-right:20px;}.markdown-body .emoji{max-width:none;vertical-align:text-top;background-color:transparent;}.markdown-body span.frame{display:block;overflow:hidden;}.markdown-body span.frame > span{display:block;float:left;width:auto;padding:7px;margin:13px 0 0;overflow:hidden;border:1px solid var(--color-border-default);}.markdown-body span.frame span img{display:block;float:left;}.markdown-body span.frame span span{display:block;padding:5px 0 0;clear:both;color:var(--color-fg-default);}.markdown-body span.align-center{display:block;overflow:hidden;clear:both;}.markdown-body span.align-center > span{display:block;margin:13px auto 0;overflow:hidden;text-align:center;}.markdown-body span.align-center span img{margin:0 auto;text-align:center;}.markdown-body span.align-right{display:block;overflow:hidden;clear:both;}.markdown-body span.align-right > span{display:block;margin:13px 0 0;overflow:hidden;text-align:right;}.markdown-body span.align-right span img{margin:0;text-align:right;}.markdown-body span.float-left{display:block;float:left;margin-right:13px;overflow:hidden;}.markdown-body span.float-left span{margin:13px 0 0;}.markdown-body span.float-right{display:block;float:right;margin-left:13px;overflow:hidden;}.markdown-body span.float-right > span{display:block;margin:13px auto 0;overflow:hidden;text-align:right;}.markdown-body code,.markdown-body tt{padding:0.2em 0.4em;margin:0;font-size:85%;white-space:break-spaces;background-color:var(--color-neutral-muted);border-radius:6px;}.markdown-body code br,.markdown-body tt br{display:none;}.markdown-body del code{text-decoration:inherit;}.markdown-body samp{font-size:85%;}.markdown-body pre code{font-size:100%;}.markdown-body pre > code{padding:0;margin:0;word-break:normal;white-space:pre;background:transparent;border:0;}.markdown-body .highlight{margin-bottom:16px;}.markdown-body .highlight pre{margin-bottom:0;word-break:normal;}.markdown-body .highlight pre,.markdown-body pre{padding:16px 16px 8px 16px;overflow:auto;font-size:85%;line-height:1.45;border-radius:6px;}.markdown-body pre code,.markdown-body pre tt{display:inline-block;max-width:100%;padding:0;margin:0;overflow-x:scroll;line-height:inherit;word-wrap:normal;background-color:transparent;border:0;}.markdown-body .csv-data td,.markdown-body .csv-data th{padding:5px;overflow:hidden;font-size:12px;line-height:1;text-align:left;white-space:nowrap;}.markdown-body .csv-data .blob-num{padding:10px 8px 9px;text-align:right;background:var(--color-canvas-default);border:0;}.markdown-body .csv-data tr{border-top:0;}.markdown-body .csv-data th{font-weight:var(--base-text-weight-semibold,600);background:var(--color-canvas-subtle);border-top:0;}.markdown-body [data-footnote-ref]::before{content:"[";}.markdown-body [data-footnote-ref]::after{content:"]";}.markdown-body .footnotes{font-size:12px;color:var(--color-fg-muted);border-top:1px solid var(--color-border-default);}.markdown-body .footnotes ol{padding-left:16px;}.markdown-body .footnotes ol ul{display:inline-block;padding-left:16px;margin-top:16px;}.markdown-body .footnotes li{position:relative;}.markdown-body .footnotes li:target::before{position:absolute;top:-8px;right:-8px;bottom:-8px;left:-24px;pointer-events:none;content:"";border:2px solid var(--color-accent-emphasis);border-radius:6px;}.markdown-body .footnotes li:target{color:var(--color-fg-default);}.markdown-body .footnotes .data-footnote-backref g-emoji{font-family:monospace;}.markdown-body .pl-c{color:var(--color-prettylights-syntax-comment);}.markdown-body .pl-c1,.markdown-body .pl-s .pl-v{color:var(--color-prettylights-syntax-constant);}.markdown-body .pl-e,.markdown-body .pl-en{color:var(--color-prettylights-syntax-entity);}.markdown-body .pl-smi,.markdown-body .pl-s .pl-s1{color:var(--color-prettylights-syntax-storage-modifier-import);}.markdown-body .pl-ent{color:var(--color-prettylights-syntax-entity-tag);}.markdown-body .pl-k{color:var(--color-prettylights-syntax-keyword);}.markdown-body .pl-s,.markdown-body .pl-pds,.markdown-body .pl-s .pl-pse .pl-s1,.markdown-body .pl-sr,.markdown-body .pl-sr .pl-cce,.markdown-body .pl-sr .pl-sre,.markdown-body .pl-sr .pl-sra{color:var(--color-prettylights-syntax-string);}.markdown-body .pl-v,.markdown-body .pl-smw{color:var(--color-prettylights-syntax-variable);}.markdown-body .pl-bu{color:var(--color-prettylights-syntax-brackethighlighter-unmatched);}.markdown-body .pl-ii{color:var(--color-prettylights-syntax-invalid-illegal-text);background-color:var(--color-prettylights-syntax-invalid-illegal-bg);}.markdown-body .pl-c2{color:var(--color-prettylights-syntax-carriage-return-text);background-color:var(--color-prettylights-syntax-carriage-return-bg);}.markdown-body .pl-sr .pl-cce{font-weight:bold;color:var(--color-prettylights-syntax-string-regexp);}.markdown-body .pl-ml{color:var(--color-prettylights-syntax-markup-list);}.markdown-body .pl-mh,.markdown-body .pl-mh .pl-en,.markdown-body .pl-ms{font-weight:bold;color:var(--color-prettylights-syntax-markup-heading);}.markdown-body .pl-mi{font-style:italic;color:var(--color-prettylights-syntax-markup-italic);}.markdown-body .pl-mb{font-weight:bold;color:var(--color-prettylights-syntax-markup-bold);}.markdown-body .pl-md{color:var(--color-prettylights-syntax-markup-deleted-text);background-color:var(--color-prettylights-syntax-markup-deleted-bg);}.markdown-body .pl-mi1{color:var(--color-prettylights-syntax-markup-inserted-text);background-color:var(--color-prettylights-syntax-markup-inserted-bg);}.markdown-body .pl-mc{color:var(--color-prettylights-syntax-markup-changed-text);background-color:var(--color-prettylights-syntax-markup-changed-bg);}.markdown-body .pl-mi2{color:var(--color-prettylights-syntax-markup-ignored-text);background-color:var(--color-prettylights-syntax-markup-ignored-bg);}.markdown-body .pl-mdr{font-weight:bold;color:var(--color-prettylights-syntax-meta-diff-range);}.markdown-body .pl-ba{color:var(--color-prettylights-syntax-brackethighlighter-angle);}.markdown-body .pl-sg{color:var(--color-prettylights-syntax-sublimelinter-gutter-mark);}.markdown-body .pl-corl{text-decoration:underline;color:var(--color-prettylights-syntax-constant-other-reference-link);}.markdown-body g-emoji{display:inline-block;min-width:1ch;font-family:"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";font-size:1em;font-style:normal !important;font-weight:var(--base-text-weight-normal,400);line-height:1;vertical-align:-0.075em;}.markdown-body g-emoji img{width:1em;height:1em;}.markdown-body .task-list-item{}.markdown-body .task-list-item label{font-weight:var(--base-text-weight-normal,400);}.markdown-body .task-list-item.enabled label{cursor:pointer;}.markdown-body .task-list-item + .task-list-item{margin-top:4px;}.markdown-body .task-list-item .handle{display:none;}.markdown-body .task-list-item-checkbox{margin:0 0.2em 0.25em -1.4em;vertical-align:middle;}.markdown-body .contains-task-list:dir(rtl) .task-list-item-checkbox{margin:0 -1.6em 0.25em 0.2em;}.markdown-body .contains-task-list{position:relative;}.markdown-body .contains-task-list:hover .task-list-item-convert-container,.markdown-body .contains-task-list:focus-within .task-list-item-convert-container{display:block;width:auto;height:24px;overflow:visible;clip:auto;}.markdown-body ::-webkit-calendar-picker-indicator{filter:invert(50%);}'],dt=>dt.theme.color_bg_border_01),W=me.Ay.div.withConfig({displayName:"styles__StyledChatMessageHead",componentId:"sc-1hjb7u8-0"})(["display:flex;align-items:center;margin-bottom:10px;svg{width:30px;height:30px;margin-right:8px;border-radius:15px;border:1px solid ",";}.header-right{.name{color:",';font-family:"PingFang SC";font-size:12px;font-weight:500;line-height:18px;}.time{color:',';font-family:"PingFang SC";font-size:12px;line-height:18px;}}'],dt=>dt.theme.color_bg_border_01,dt=>dt.theme.color_text_L1,dt=>dt.theme.color_text_L3),an=(0,I.memo)(dt=>{let{time:Vn}=dt;return(0,De.jsxs)(W,{children:[(0,De.jsx)(ze.C,{name:"chatGPT/ai-chat-avatar",isColorPure:!0}),(0,De.jsxs)("div",{className:"header-right",children:[(0,De.jsx)("div",{className:"name",children:I18N.ChatGPT.ai_chat_mockitt+" DeepSeek-R1"}),(0,De.jsx)("div",{className:"time",children:Vn})]})]})}),_t=(0,I.memo)(dt=>{let{chatMessage:Vn,onChatCollapseDt:o}=dt;const{status:Gn,id:xt,message:Ot,time:wt="",dtMessage:Kt="",dtTime:fe,collapseDt:bt}=Vn,{isFail:un,isStreaming:gt,isSuccess:Wt}=(0,I.useMemo)(()=>{const Yt=Gn===T.generating,rt=Gn===T.fail,An=Gn===T.streaming,Nt=Gn===T.finish;return{isFail:rt,isStreaming:Yt||An,isSuccess:Nt}},[Gn]),Un=(0,I.useCallback)(async()=>{var Yt;await B(Ot)&&((Yt=MB)==null||Yt.notice({text:I18N.ChatGPT.copied_successfully,svgName:"chatGPT/copy-success"}))},[Ot]),Jn=(0,I.useCallback)(()=>{Wt&&o&&o(Vn)},[Wt,Vn,o]);return(0,De.jsxs)(ge,{id:"message-"+xt,children:[(0,De.jsx)("div",{className:j()("row-content","assistant"),children:(0,De.jsxs)("div",{className:j()("message-content",un&&"fail",(gt||Wt)&&"is-stream"),children:[(0,De.jsx)(an,{time:wt}),!un&&(0,De.jsxs)("div",{className:"deep-seek-container",children:[(0,De.jsxs)("div",{className:j()("deep-seek-head",bt&&"is-collapse"),children:[(0,De.jsxs)("div",{className:"head-left",children:[(0,De.jsx)("div",{className:j()("svg-box",bt&&"is-collapse"),children:(0,De.jsx)(ze.C,{name:"chatGPT/ai-chat-expand-arrow",className:"ai-chat-expand-arrow",onClick:Jn})}),(0,De.jsxs)("div",{className:"status",children:[gt&&!Ot.length?I18N.ChatGPT.ai_chat_thinking:I18N.ChatGPT.ai_chat_deeply_thought,(!gt||Ot.length>0)&&(0,De.jsx)("span",{children:"\uFF08"+I18N.ChatGPT.ai_chat_elapsed+" "+(fe||0)+"s\uFF09"})]}),gt&&(0,De.jsx)(He,{})]}),(0,De.jsx)("div",{className:"svg-box",children:Wt&&(0,De.jsx)(ze.C,{name:"chatGPT/ai-chat-copy",className:"ai-chat-copy",onClick:Un})})]}),!bt&&(0,De.jsx)($e,{message:Kt,id:xt,className:"markdown-body-deep-seek"})]}),(0,De.jsx)($e,{message:Ot,id:xt})]})}),(0,De.jsx)(Ze,{})]})}),nn=(0,I.memo)(dt=>{let{chatMessage:Vn}=dt;const{id:o,message:Gn}=Vn;return(0,De.jsxs)(ge,{id:"message-"+o,children:[(0,De.jsx)("div",{className:j()("row-content","user"),children:(0,De.jsx)("div",{className:j()("message-content","user"),children:(0,De.jsx)($e,{message:Gn,id:o})})}),(0,De.jsx)(Ze,{})]})}),Oe=(0,I.memo)(dt=>{let{chatMessage:Vn,onChatCollapseDt:o}=dt;const{role:Gn}=Vn;return Gn===N.user?(0,De.jsx)(nn,{chatMessage:Vn}):(0,De.jsx)(_t,{chatMessage:Vn,onChatCollapseDt:o})}),sn=async dt=>{let{params:Vn,chatID:o,user:Gn,org:xt,projectCid:Ot,signal:wt,handelChatResult:Kt,handleChatStream:fe}=dt;try{const bt=await fetch("/js-hpr/v8chat?uId="+Gn.id+"&upperCid="+Ot,{signal:wt,method:"POST",credentials:"same-origin",headers:{"content-type":"application/json"},body:JSON.stringify(Vn)});if(!bt||!bt.ok||!bt.body){Kt({success:!1,erroMsg:(0,w.iH)({code:bt.status,user:Gn,org:xt}),chatID:o,status:bt.status}),(bt==null?void 0:bt.status)===401&&((0,w.K7)(),await MB.global.popupHelper.alertAsyncBlocked({title:I18N.dModule.err_info_modal.INVALID_COOKIE.title,desc:I18N.dModule.err_info_modal.INVALID_COOKIE.desc,confirmText:I18N.dModule.confirm}).then(()=>(0,w.AG)()));return}const un=bt.body.getReader(),gt=new TextDecoder("utf-8"),Wt=performance.now();let Un="",Jn=!1;const Yt=rt=>{const{content:An,reasoningContent:Nt,done:jt,value:vn}=M(rt),Dt=$t=>{let{message:kn="",dtMessage:Kn=""}=$t;const dn={chatId:o,chatContent:{message:kn,dtMessage:Kn}};if(kn&&!Jn){const ft=((performance.now()-Wt)/1e3).toFixed(2).replace(/\.?0+$/,"");dn.chatContent={...dn.chatContent,dtTime:ft,collapseDt:!0},Jn=!0}fe(dn)};if(jt&&vn&&vn.answer){const{answer:$t,reasoning:kn}=vn;Dt({message:$t,dtMessage:kn});return}Dt({message:An,dtMessage:Nt})};for(;;){const{value:rt,done:An}=await un.read();if(rt&&(Un+=gt.decode(rt,{stream:!0}),Yt(Un)),An)break}Kt({success:!0,erroMsg:"",chatID:o,status:200})}catch(bt){Kt({success:!1,erroMsg:(0,w.iH)({code:0,user:Gn,org:xt}),chatID:o,status:402})}};let It=null;class Pt extends I.PureComponent{constructor(){var Vn;super(...arguments),Vn=this,(0,r.A)(this,"state",{style:{left:0,top:0},inputChat:"",streamChat:null,chatMessages:[],generating:!1,isUserScrolling:!1}),(0,r.A)(this,"setElemRef",o=>this.$chatBody=o),(0,r.A)(this,"getOrgID",()=>{const{commonData:{org:o,user:Gn}}=this.props;return(0,te.WX)({user:Gn,org:o})}),(0,r.A)(this,"handleScroll",o=>{const{scrollTop:Gn,scrollHeight:xt,clientHeight:Ot}=o.currentTarget;this.setState({isUserScrolling:!0}),Gn+Ot>=xt-5&&setTimeout(()=>this.setState({isUserScrolling:!1}),50)}),(0,r.A)(this,"onChatBodyScrollBottom",()=>{const{isUserScrolling:o}=this.state;!this.$chatBody||o||requestAnimationFrame(()=>{this.$chatBody.scrollTop=this.$chatBody.scrollHeight})}),(0,r.A)(this,"sendMessageHandle",async function(o,Gn){Gn===void 0&&(Gn=!1),Vn.setState({inputChat:""});const{commonData:{user:xt,project:Ot}}=Vn.props,{chatMessages:wt}=Vn.state,{chatList:Kt,streamChat:fe}=ne(wt,o,xt,Ot);Vn.setState({chatMessages:Kt,streamChat:fe,generating:!0,isUserScrolling:!1},()=>{bt()});const bt=async()=>{Vn.onChatBodyScrollBottom(),ENV.IS_WONDER_SHARE?await Vn.handleWonderShareChat(o,fe):await Vn.handleStreamChat(o,fe,Gn)}}),(0,r.A)(this,"handleUpdateAIUsedTimes",o=>{const{commonData:{user:Gn,org:xt,project:Ot},actions:{updateCurrentOrg:wt,updateCurrentUser:Kt}}=this.props;Ot.is_org_project&&xt?wt({org:Object.assign(xt,{used_times:o})}):Kt({user:Object.assign(Gn,{used_times:o})})}),(0,r.A)(this,"handleUpdateAIPoints",o=>{const{commonData:{user:Gn,org:xt,project:Ot},actions:{updateCurrentOrg:wt,updateCurrentUser:Kt}}=this.props;Ot.is_org_project&&xt?wt({org:Object.assign(xt,{ai_points:o})}):Kt({user:Object.assign(Gn,{ai_points:o})})}),(0,r.A)(this,"handleWonderShareChat",async(o,Gn)=>{try{const{chatMessages:xt,generating:Ot,streamChat:wt}=this.state,{commonData:{user:Kt,org:fe}}=this.props,bt=await(0,w.om)(U(o,xt),this.getOrgID(),Gn.id);if(!Ot)return;const{reply:un,loadingID:gt}=bt;if(gt!==wt.id)return;let{limited:Wt}=bt;if(un&&un){const{limited:Jn,success:Yt}=await(0,w.GM)({user:Kt,org:fe,onUpdateAIUsedTimes:this.handleUpdateAIUsedTimes});Yt&&(Wt=Jn)}const Un=un&&!Wt;this.setState({chatMessages:[...xt,{...wt,message:Wt?I18N.ChatGPT.chat_restricted:un||I18N.ChatGPT.chat_error,status:Un?T.finish:T.fail}],streamChat:null,generating:!1}),this.onChatBodyScrollBottom(),this.aiFunctionTrackHandle(o)}catch(xt){this.setState({streamChat:null,generating:!1}),this.onChatBodyScrollBottom(),this.aiFunctionTrackHandle(o)}}),(0,r.A)(this,"handleStreamChat",async(o,Gn,xt)=>{const{chatMessages:Ot}=this.state,{commonData:{user:wt,org:Kt,project:fe}}=this.props;It&&It.abort(),It=new AbortController,await sn({params:{user:o,history:U(o,Ot)},chatID:Gn.id,user:wt,org:Kt,projectCid:(fe==null?void 0:fe.cid)||"",signal:It.signal,handelChatResult:bt=>{let{success:un,erroMsg:gt,chatID:Wt,status:Un}=bt;const{chatMessages:Jn,streamChat:Yt,generating:rt}=this.state;if(rt&&Yt&&Yt.id===Wt){const Nt={...Yt,status:un?T.finish:T.fail,message:Yt.message||I18N.ChatGPT.ai_chat_stream_error};un||(Nt.message=gt),(0,yt.flushSync)(()=>{this.setState({generating:!1,streamChat:null,chatMessages:[...Jn,Nt]})}),this.onChatBodyScrollBottom(),this.aiFunctionTrackHandle(o)}if(It=null,xt)return;const An=document.getElementById("chat-input");An&&An.focus()},handleChatStream:bt=>{let{chatId:un,chatContent:gt}=bt;const{streamChat:Wt,generating:Un}=this.state;Un&&Wt&&Wt.id===un&&((0,yt.flushSync)(()=>{this.setState({streamChat:{...Wt,...gt,status:T.streaming}})}),this.onChatBodyScrollBottom())}})}),(0,r.A)(this,"stopGeneratingHandle",async function(o){o===void 0&&(o=!1);const{chatMessages:Gn,streamChat:xt}=Vn.state,Ot=o?[]:Gn;!o&&xt&&(xt.dtMessage||xt.message)&&Ot.push({...xt,status:T.finish}),Vn.setState({chatMessages:Ot,streamChat:null,generating:!1});const wt=document.getElementById("chat-input");wt&&wt.focus(),It&&(It.abort(),It=null)}),(0,r.A)(this,"aiFunctionTrackHandle",o=>{const{actions:{track:Gn}}=this.props;Gn("proto_ai_use",{ai_func:"AI\u5BF9\u8BDD",ai_input:o})}),(0,r.A)(this,"createNewDialogueHandle",async()=>{this.setState({inputChat:""}),await this.stopGeneratingHandle(!0)}),(0,r.A)(this,"modalOnMouseOver",()=>{const{actions:{updateIsInChatModal:o}}=this.props;o(!0)}),(0,r.A)(this,"modalOnMouseLeave",()=>{const{actions:{updateIsInChatModal:o}}=this.props;o(!1)}),(0,r.A)(this,"handleSelectRecommend",o=>{this.handleChatInputValue(o);const Gn=document.getElementById("chat-input");Gn&&Gn.focus()}),(0,r.A)(this,"handleChatInputValue",o=>{this.setState({inputChat:o})}),(0,r.A)(this,"handleChatCollapseDt",o=>{const{chatMessages:Gn}=this.state,xt=Gn.map(Ot=>Ot.id===o.id?{...Ot,collapseDt:!Ot.collapseDt}:Ot);this.setState({chatMessages:xt})})}componentDidMount(){mt.A.addListener(mt.d,Vn=>{this.stopGeneratingHandle(!1),this.sendMessageHandle(Vn,!0)}),this.$chatBody&&this.$chatBody.addEventListener("scroll",this.handleScroll)}componentWillUnmount(){mt.A.removeAllListeners(),this.$chatBody&&this.$chatBody.removeEventListener("scroll",this.handleScroll)}render(){const{inputChat:Vn,generating:o,streamChat:Gn,chatMessages:xt}=this.state,{commonData:{theme:Ot,showHeadSwitch:wt}}=this.props,Kt=!xt||xt.length===0,fe=Ot==="dark";return(0,De.jsx)(Je,{className:wt?"show-switch":"",onMouseOver:this.modalOnMouseOver,onMouseLeave:this.modalOnMouseLeave,children:(0,De.jsxs)("div",{className:"chat-content",children:[(0,De.jsx)("div",{className:"chat-body",ref:this.setElemRef,children:Kt?(0,De.jsx)(ht,{isDark:fe,sendMessageHandle:this.handleSelectRecommend}):(0,De.jsxs)(De.Fragment,{children:[xt.map((bt,un)=>(0,De.jsx)(Oe,{chatMessage:bt,onChatCollapseDt:this.handleChatCollapseDt},un+"-"+bt.id)),Gn&&(0,De.jsx)(Oe,{chatMessage:Gn})]})}),(0,De.jsx)(tt,{isDark:fe,sendMessageHandle:this.sendMessageHandle,isEmpty:Kt,userInput:Vn,generating:o,createNewDialogueHandle:this.createNewDialogueHandle,handleChatInputValue:this.handleChatInputValue,stopGeneratingHandle:this.stopGeneratingHandle})]})})}}},44174:(Qn,qe,s)=>{"use strict";s.d(qe,{Q:()=>q,t:()=>te});var r=s(50960),I=s.n(r),J=s(46905),N=s(34394),T=s(18848);const te=ne=>{let{selectedTrees:B,selectedCarouseImage:l}=ne;try{const C=(0,J.n3)(B).filter(w=>w.type===(N.x.WImage||N.x.WCarousel));let M=0;return C.forEach(w=>{w.type===N.x.WImage&&(M=M+1),w.type===N.x.WCarousel&&(l==null?M=M+w.carousel.slides.length:M=M+1)}),M=Math.max(M,3),M}catch(U){return console.error("getImageAutoFillNumber error:",U),3}},q=(ne,B)=>{try{if(!ne||Object.keys(ne).length===0)return null;const{images:l}=ne;if(!l||l.length===0)return null;const U=l.map((C,M)=>{const{keyword:w,originalSize:{width:y,height:j},url:Q}=C,ze=200,me=I()(200*j/y);return{asset_cid:"ai_"+M,image:Q,width:ze,height:me,img_tag:[w],size:"",thumb:Q,name:"\u793A\u4F8B\u56FE\u7247",group_cid:""}});(0,T.bY)({result:U,...B})}catch(l){return null}}},44599:(Qn,qe,s)=>{"use strict";s.d(qe,{h:()=>N});var r=s(38502),I=s(67787),J=s(72214);function N(){return(0,J.jsxs)(T,{children:[te,(0,J.jsx)("span",{className:"text",children:I18N.Note.no_node})]})}const T=I.Ay.div.withConfig({displayName:"STEmptyList__StyledEmptyList",componentId:"sc-nz9lz6-0"})(["width:100%;height:100%;display:flex;align-items:center;justify-content:center;flex-direction:column;flex:1;background:",";.text{white-space:nowrap;margin-top:16px;font-size:12px;line-height:16px;color:#666666;}"],q=>q.theme.color_bg_white),te=(0,J.jsxs)("svg",{width:"123",height:"94",viewBox:"0 0 123 94",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,J.jsx)("path",{d:"M47.4341 29.4479C46.8511 29.4478 46.2703 29.5195 45.705 29.6616C45.705 29.5868 45.705 29.5227 45.705 29.4479C45.7986 28.4797 45.6878 27.5028 45.3795 26.5797C45.0713 25.6567 44.5725 24.808 43.9152 24.0881C43.2579 23.3681 42.4566 22.7929 41.5627 22.3992C40.6688 22.0056 39.702 21.8022 38.7245 21.8022C37.7469 21.8022 36.7802 22.0056 35.8863 22.3992C34.9924 22.7929 34.1911 23.3681 33.5338 24.0881C32.8764 24.808 32.3777 25.6567 32.0695 26.5797C31.7612 27.5028 31.6503 28.4797 31.7439 29.4479V29.512C30.7145 29.6494 29.7287 30.0127 28.8575 30.5754C27.9864 31.1382 27.2518 31.8865 26.7068 32.7663C26.1618 33.646 25.82 34.6352 25.7061 35.6624C25.5922 36.6896 25.7091 37.7291 26.0482 38.7059C26.3873 39.6827 26.9403 40.5723 27.6671 41.3105C28.394 42.0487 29.2766 42.6171 30.2511 42.9745C31.2256 43.3319 32.2678 43.4695 33.3023 43.3773C34.3368 43.2851 35.3378 42.9654 36.233 42.4413C37.1564 42.862 38.1599 43.0806 39.1755 43.0824C40.5826 43.0908 41.9583 42.6694 43.1169 41.875C43.9936 42.5663 45.0241 43.0385 46.122 43.2521C47.2199 43.4657 48.3533 43.4144 49.4272 43.1026C50.5011 42.7908 51.4843 42.2275 52.2944 41.4599C53.1045 40.6923 53.718 39.7427 54.0835 38.6907C54.4489 37.6387 54.5558 36.5149 54.395 35.4134C54.2342 34.3118 53.8105 33.2647 53.1594 32.3596C52.5082 31.4545 51.6486 30.7178 50.6525 30.2112C49.6564 29.7046 48.5528 29.4429 47.4341 29.4479Z",fill:"url(#paint0_linear_7226_73395)"}),(0,J.jsx)("path",{d:"M16.4603 19.5625C16.2338 19.5655 16.0084 19.5952 15.7888 19.6508C15.7888 19.6508 15.7888 19.5919 15.7888 19.5625C15.7525 18.8657 15.4494 18.2095 14.9421 17.7291C14.4348 17.2488 13.762 16.981 13.0625 16.981C12.363 16.981 11.6902 17.2488 11.1829 17.7291C10.6756 18.2095 10.3725 18.8657 10.3362 19.5625C9.93751 19.6176 9.55607 19.7602 9.21929 19.98C8.88251 20.1998 8.59877 20.4913 8.38849 20.8336C8.17821 21.1758 8.04662 21.5604 8.0032 21.9595C7.95978 22.3585 8.00559 22.7623 8.13736 23.1416C8.26912 23.5209 8.48355 23.8663 8.76522 24.1531C9.04688 24.4398 9.38878 24.6607 9.76629 24.7998C10.1438 24.939 10.5475 24.9929 10.9485 24.9577C11.3494 24.9226 11.7375 24.7992 12.0849 24.5965C12.4426 24.7646 12.833 24.8525 13.2285 24.8541C13.7758 24.8536 14.3104 24.6895 14.7632 24.383C15.1042 24.6506 15.5043 24.833 15.9302 24.9151C16.3561 24.9972 16.7956 24.9766 17.2119 24.855C17.6282 24.7334 18.0094 24.5143 18.3236 24.216C18.6379 23.9178 18.8761 23.5489 19.0185 23.1402C19.1609 22.7314 19.2034 22.2947 19.1423 21.8663C19.0812 21.4379 18.9183 21.0303 18.6673 20.6774C18.4163 20.3245 18.0844 20.0365 17.6992 19.8374C17.314 19.6384 16.8867 19.534 16.4529 19.5331L16.4603 19.5625Z",fill:"url(#paint1_linear_7226_73395)"}),(0,J.jsx)("path",{d:"M114.874 27.4273C114.205 27.4211 113.538 27.5034 112.89 27.672C112.902 27.5909 112.902 27.5084 112.89 27.4273C112.89 25.2988 112.044 23.2575 110.537 21.7525C109.031 20.2474 106.987 19.4019 104.857 19.4019C102.726 19.4019 100.683 20.2474 99.1767 21.7525C97.6702 23.2575 96.8238 25.2988 96.8238 27.4273C95.6461 27.5872 94.5185 28.0062 93.5224 28.6541C92.5263 29.302 91.6866 30.1626 91.0637 31.174C90.4409 32.1853 90.0503 33.3221 89.9204 34.5025C89.7905 35.6828 89.9245 36.8773 90.3125 37.9997C90.7006 39.1221 91.3331 40.1445 92.1644 40.9931C92.9958 41.8418 94.0053 42.4955 95.1201 42.9072C96.235 43.319 97.4274 43.4784 98.6114 43.374C99.7954 43.2696 100.942 42.9041 101.967 42.3037C103.029 42.7855 104.181 43.0358 105.347 43.0377C106.952 43.0382 108.52 42.5612 109.853 41.6675C110.861 42.4656 112.045 43.0104 113.308 43.2561C114.57 43.5018 115.872 43.4411 117.106 43.0793C118.34 42.7175 119.469 42.0651 120.398 41.1768C121.327 40.2886 122.029 39.1906 122.445 37.975C122.861 36.7594 122.979 35.4618 122.788 34.1913C122.598 32.9208 122.105 31.7145 121.351 30.6738C120.598 29.633 119.605 28.7883 118.456 28.2106C117.308 27.6329 116.037 27.3391 114.751 27.3539L114.874 27.4273Z",fill:"url(#paint2_linear_7226_73395)"}),(0,J.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.90182 42.1735L4.9033 42.173L4.90182 42.1735ZM8.65192 40.7023C9.70269 40.8731 10.6949 41.099 11.5664 41.3514C12.4957 41.6204 14.0916 43.1779 14.804 44.8451C15.0107 45.6439 14.3012 44.7245 12.9295 44.0637C12.4627 43.8323 11.7991 43.5814 10.9887 43.3468C9.37049 42.8783 7.27742 42.5063 5.22568 42.4583C4.94562 42.4518 4.69145 42.434 4.48486 42.3997C4.38696 42.3834 4.25506 42.3565 4.12267 42.3055C4.05726 42.2803 3.95273 42.2347 3.84302 42.1554C3.74251 42.0828 3.54639 41.9161 3.44697 41.6218C3.33065 41.2776 3.40935 40.9523 3.54558 40.7268C3.66102 40.5357 3.80804 40.4257 3.88305 40.3752C4.03676 40.2719 4.19543 40.2177 4.2836 40.1902C4.4856 40.1272 4.73907 40.0802 5.01413 40.0424C5.521 39.9729 6.00599 39.8888 6.40015 39.7641C6.59471 39.7025 6.74016 39.6392 6.84207 39.5795C6.88994 39.5515 6.92113 39.5284 6.94053 39.5121C6.93116 39.474 6.9082 39.4098 6.85576 39.3105C6.66666 38.9526 6.19845 38.3837 5.21304 37.5672C5.10857 37.4807 5.00723 37.3901 4.91842 37.2972C4.83994 37.2151 4.72111 37.0801 4.63382 36.9024C4.55259 36.737 4.39548 36.3094 4.65066 35.8513C4.88228 35.4355 5.27808 35.3269 5.40897 35.2975C5.69258 35.2337 5.99798 35.2713 6.1595 35.2928C6.3695 35.3208 6.61315 35.3667 6.86198 35.4169C7.02851 35.4504 7.20266 35.4868 7.38239 35.5243C8.33205 35.7225 9.43774 35.9533 10.4012 35.9788C10.9761 35.994 11.3655 35.9285 11.589 35.8262C11.7428 35.7558 11.7804 35.6992 11.7987 35.5603C11.8303 35.3212 11.7731 34.81 11.3334 33.8899C10.9045 32.9924 10.1643 31.8135 8.99751 30.2862C8.81698 30.0498 8.65698 29.7828 8.5642 29.4964C8.47756 29.2289 8.40489 28.7974 8.6235 28.3665C8.86976 27.8811 9.3282 27.6919 9.69446 27.6518C10.0353 27.6144 10.3706 27.6879 10.6555 27.7857C12.3008 28.351 14.8172 29.2126 17.3407 28.7778C19.7277 28.3666 22.3473 26.7438 24.1075 21.7794C24.2545 21.3648 24.5483 20.9527 24.8784 20.7055C24.9683 20.6381 25.1024 20.5514 25.2735 20.4931C25.4371 20.4373 25.7442 20.372 26.086 20.5108C26.4614 20.6633 26.6535 20.9678 26.7342 21.2076C26.8074 21.425 26.8069 21.6272 26.7973 21.7596C26.7752 22.0648 26.7068 22.456 26.6261 22.9177C26.2518 25.0584 26.9827 29.1871 28.732 32.5794C29.3613 33.7997 29.2973 33.9554 28.3944 32.9211C26.8671 31.1717 24.6585 28.0482 24.6827 24.7135C23.4253 29.176 20.0491 30.4192 17.6934 30.825C15.4193 31.2168 13.207 30.7566 11.5607 30.2674C12.2928 31.31 12.8342 32.2125 13.2078 32.9942C13.7116 34.0486 13.968 35.0011 13.8582 35.8324C13.7351 36.764 13.1763 37.3844 12.4534 37.7152C11.8004 38.014 11.0332 38.0736 10.3462 38.0554C9.70776 38.0385 9.02219 37.9478 8.37878 37.8369C8.50096 38.0079 8.60557 38.1755 8.69256 38.3401C9.09917 39.1098 9.17525 39.9528 8.67178 40.6743C8.66523 40.6837 8.65861 40.693 8.65192 40.7023ZM6.94448 39.5578C6.94448 39.5578 6.94171 39.5483 6.94503 39.5343C6.94762 39.5516 6.94448 39.5578 6.94448 39.5578Z",fill:"#FF6161"}),(0,J.jsx)("g",{clipPath:"url(#clip0_7226_73395)",children:(0,J.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M98.7292 30.9892L62.4203 19.8885C61.6436 19.651 60.8215 20.0882 60.584 20.8648L49.4833 57.1737C49.2458 57.9504 49.6829 58.7726 50.4596 59.01L81.7007 68.5614C82.0737 68.6754 82.4767 68.6366 82.821 68.4535L89.4383 64.935C89.7827 64.7519 90.0402 64.4395 90.1542 64.0666L99.7056 32.8255C99.943 32.0488 99.5059 31.2267 98.7292 30.9892ZM63.7493 15.5416C60.5719 14.5702 57.2086 16.3585 56.2372 19.5359L45.1364 55.8448C44.165 59.0222 45.9533 62.3854 49.1307 63.3569L80.3717 72.9082C81.8976 73.3747 83.5462 73.216 84.955 72.4669L91.5723 68.9484C92.981 68.1994 94.0346 66.9214 94.5011 65.3955L104.052 34.1545C105.024 30.9771 103.236 27.6138 100.058 26.6424L63.7493 15.5416ZM59.8927 46.4463C59.5257 47.6466 60.2013 48.9172 61.4016 49.2842L72.2687 52.6066C73.4691 52.9736 74.7397 52.298 75.1066 51.0977C75.4736 49.8973 74.798 48.6267 73.5977 48.2598L62.7306 44.9373C61.5303 44.5704 60.2597 45.2459 59.8927 46.4463ZM64.724 38.4171C63.5237 38.0501 62.8481 36.7795 63.2151 35.5792C63.5821 34.3788 64.8527 33.7033 66.053 34.0702L87.7872 40.7151C88.9875 41.082 89.6631 42.3526 89.2961 43.553C88.9292 44.7533 87.6586 45.4289 86.4582 45.0619L64.724 38.4171Z",fill:"#90C0FA"})}),(0,J.jsx)("ellipse",{cx:"61.3846",cy:"85.3804",rx:"33.3764",ry:"6.92983",transform:"rotate(2.57165 61.3846 85.3804)",fill:"url(#paint3_linear_7226_73395)"}),(0,J.jsx)("path",{d:"M36.4098 69.0505L35.9903 68.1427L33.9816 69.0711C33.4802 69.3027 32.886 69.0842 32.6543 68.5828L31.7453 66.616L30.8376 67.0356L29.0197 63.102L29.9274 62.6825L28.1095 58.7489L27.2018 59.1684L25.3838 55.2349L26.2916 54.8153L24.4737 50.8818L23.5659 51.3013L21.748 47.3677L22.6557 46.9482L21.7468 44.9814C21.5151 44.4801 21.7337 43.8859 22.235 43.6542L24.2018 42.7452L23.7823 41.8375L27.7158 40.0195L28.1354 40.9273L32.0689 39.1094L31.6494 38.2016L35.583 36.3837L36.0025 37.2914L39.9361 35.4735L39.5165 34.5658L43.4501 32.7479L43.8696 33.6556L45.8364 32.7467C46.3378 32.515 46.932 32.7335 47.1637 33.2349L48.1149 35.2932L49.0227 34.8736L50.9252 38.9902L50.0174 39.4097L51.9199 43.5263L52.8277 43.1068L54.7302 47.2234L53.8224 47.6429L54.7737 49.7012C54.8889 49.9504 54.8965 50.2361 54.7948 50.4911L53.7363 53.1451L54.6651 53.5156L52.5481 58.8235L51.6193 58.453L50.5608 61.107C50.466 61.3447 50.2837 61.5369 50.0514 61.6443L48.0427 62.5726L48.4622 63.4804L44.4448 65.3371L44.0252 64.4293L40.0078 66.286L40.4273 67.1938L36.4098 69.0505Z",fill:"white",stroke:"#90C0FA",strokeWidth:"2",strokeDasharray:"4 4"}),(0,J.jsx)("path",{d:"M45.5695 41.6833L29.8901 48.9296C29.5212 49.1001 29.3604 49.5373 29.5309 49.9062L29.821 50.5341C29.9915 50.903 30.4288 51.0639 30.7977 50.8934L46.4771 43.6471C46.846 43.4766 47.0068 43.0393 46.8363 42.6704L46.5461 42.0426C46.3756 41.6736 45.9384 41.5128 45.5695 41.6833Z",fill:"#9EA9BC"}),(0,J.jsx)("path",{d:"M41.4228 50.2093L32.0409 54.5452C31.8743 54.6222 31.867 54.961 32.0246 55.3021L32.2929 55.8825C32.4505 56.2236 32.7134 56.4376 32.88 56.3606L42.2618 52.0248C42.4284 51.9478 42.4357 51.6089 42.2781 51.2678L42.0099 50.6874C41.8522 50.3463 41.5894 50.1323 41.4228 50.2093Z",fill:"#9EA9BC"}),(0,J.jsxs)("defs",{children:[(0,J.jsxs)("linearGradient",{id:"paint0_linear_7226_73395",x1:"31.1855",y1:"15.0012",x2:"42.8442",y2:"43.4977",gradientUnits:"userSpaceOnUse",children:[(0,J.jsx)("stop",{stopColor:"#CEE1FF"}),(0,J.jsx)("stop",{offset:"1",stopColor:"#FCF7FF"})]}),(0,J.jsxs)("linearGradient",{id:"paint1_linear_7226_73395",x1:"10.1443",y1:"13.9103",x2:"14.699",y2:"25.0094",gradientUnits:"userSpaceOnUse",children:[(0,J.jsx)("stop",{stopColor:"#CEE1FF"}),(0,J.jsx)("stop",{offset:"1",stopColor:"#FCF7FF"})]}),(0,J.jsxs)("linearGradient",{id:"paint2_linear_7226_73395",x1:"105.812",y1:"17.3955",x2:"106.545",y2:"39.1474",gradientUnits:"userSpaceOnUse",children:[(0,J.jsx)("stop",{stopColor:"#E9EEFF"}),(0,J.jsx)("stop",{offset:"1",stopColor:"#FCF7FF"})]}),(0,J.jsxs)("linearGradient",{id:"paint3_linear_7226_73395",x1:"46.1107",y1:"78.4505",x2:"68.9711",y2:"99.6003",gradientUnits:"userSpaceOnUse",children:[(0,J.jsx)("stop",{stopColor:"#CDE1FF"}),(0,J.jsx)("stop",{offset:"1",stopColor:"#FBF6FF"})]}),(0,J.jsx)("clipPath",{id:"clip0_7226_73395",children:(0,J.jsx)("rect",{width:"71.0369",height:"71.0369",fill:"white",transform:"translate(51.2004) rotate(17.3641)"})})]})]})},46147:(Qn,qe,s)=>{"use strict";s.d(qe,{A:()=>T});var r=s(95549),I=s(38502);const J={detector:"nT4U2_NOIS7CAZHovWxY"};var N=s(72214);class T extends I.PureComponent{constructor(){super(...arguments),(0,r.A)(this,"handleResize",()=>{const q=this.elem.getBoundingClientRect();this.props.onResize(q)})}componentDidMount(){var q;((q=this.elem)==null?void 0:q.contentWindow)&&this.elem.contentWindow.addEventListener("resize",this.handleResize)}componentWillUnmount(){var q;const ne=(q=this.elem)==null?void 0:q.contentWindow;ne&&ne.removeEventListener("resize",this.handleResize)}render(){return(0,N.jsx)("iframe",{ref:q=>this.elem=q,className:J.detector})}}},46199:(Qn,qe,s)=>{"use strict";s.d(qe,{NX:()=>C,XQ:()=>B,kY:()=>w,s3:()=>M,sV:()=>l});var r=s(15186),I=s(40610),J=s(20089),N=s(69815),T=s(78401),te=s(30294),q=s(59025),ne=s(45709);const B=["text_view",J.x.WMTooltip,J.x.WPlaceholder];function l(y){if(I.VV.includes(y.type)){const Q=(0,N.YZ)(y.textV1);return(0,T.wh)(Q)}else{if(B.includes(y.type))return y.type===J.x.WPlaceholder?'<div class="text" style="background-color: ">'+(0,T.c1)(y.textV0.text)+"</div>":'<div class="text">'+(0,T.c1)(y.textV0.text)+"</div>";if([J.x.WMSelect,J.x.WElbow].includes(y.type))return(0,T.c1)(y.textV0.text);if(y.type===J.x.WWebpage)return(0,T.wh)(y.webpage.url);if(y.type===J.x.WMTextInput||y.type===J.x.WMTextArea)return y.type===J.x.WMTextArea?(0,T.c1)(y.textInput.prefillTextV0):(0,T.wh)(y.textInput.prefillTextV0||"");var j;return(0,T.wh)(((j=y.textV0)==null?void 0:j.text)||"")}}const U=y=>{let{w:j,needPlaceHolder:Q}=y,ze;return Q?ze=(0,r.t0)(j.textV0.textColor):ze=(0,r.t0)(j.textInput.prefillTextColorV0),ze};function C(y,j){const{type:Q,w:ze,h:me,border:Se,textV0:Me}=y;let De=0,tt=0,at=ze,ht=me,Je=Me!=null&&Me.paddingTuple?(0,q.JG)(Me==null?void 0:Me.paddingTuple):{padding:(Me==null?void 0:Me.padding)+"px"},$="transparent",mt="flex",yt=Me?(0,r.t0)(Me.textColor):"rgb(102, 102, 102)",Le=Me==null?void 0:Me.verticalAlign,He=Me==null?void 0:Me.horizontalAlign;const ye=(Me==null?void 0:Me.lineHeight)+"px";let je=null,ot={},we={};switch(Q){case J.x.WMSelect:{tt=-6,De=-2,ht=200,$="white",mt="block",He=void 0,we={boxShadow:"0px 2px 14px 0px rgba(0,0,0,0.08)",borderRadius:"6px"},at=at+4;break}case J.x.WMTextArea:{const $e=Math.max(Math.round(Me.padding-(Me.lineHeight-Me.fontSize)/2),0);Je={padding:$e+1+"px "+Me.padding+"px "+$e+"px "+(Me.padding+1)+"px"},Le=void 0,mt="block",De=1,yt=U({w:y,needPlaceHolder:j});break}case J.x.WMTextInput:{const $e=Se.bdrWidth;j&&(we={lineHeight:ht-2*$e+"px"}),Je={padding:"0 8px"},yt=U({w:y,needPlaceHolder:j}),De=1,je="nowrap";break}case J.x.WWebpage:{ht=50,Je={paddingTop:"11px",paddingRight:"0",paddingBottom:"0",paddingLeft:"86px"};break}case J.x.WElbow:{const{elbow:{dPathList:$e,elbowType:ge}}=y,{x:Ze,y:W}=(0,te.zG)($e,ge),an=(0,te.X)(y,j);mt="block",De=Ze,tt=W,Je={paddingTop:"4px",paddingRight:"6px",paddingBottom:"4px",paddingLeft:"6px"},$=j?"transparent":"#fff",ot={width:"max-content",height:"auto",transform:"translateX(-50%) translateY(-50%)",minWidth:an}}}return{display:mt,top:tt+"px",left:De+"px",width:at+"px",height:ht+"px",backgroundColor:$,justifyContent:Me==null?void 0:Me.horizontalAlign,fontSize:(Me==null?void 0:Me.fontSize)+"px",lineHeight:ye,color:yt,alignItems:Le,textAlign:He,...Je,fontWeight:(0,ne._y)(Me==null?void 0:Me.fontWeight,Me==null?void 0:Me.bold),fontStyle:Me!=null&&Me.italic?"italic":"",textDecoration:Me==null?void 0:Me.textDecoration,fontFamily:(Me==null?void 0:Me.fontFamily)||"PingFangSC",whiteSpace:je,cursor:"text",letterSpacing:(Me==null?void 0:Me.letterSpacing)||0,...ot,...we}}const M=y=>{const j=y.type===J.x.WElbow?I18N.Widget.text:y.textV0.text,Q=y.type===J.x.WElbow?"#666666":(0,r.t0)(y.textV0.textColor),ze=C(y,!1);return ze.overflowX="hidden",ze.color=Q,ze.wordWrap="break-word",ze.position="absolute",y.type===J.x.WMTextInput&&(ze.overflowY="hidden"),{placeholderHTML:j,placeholderStyle:ze}},w=y=>{let{type:j}=y;return[J.x.WMTextArea,J.x.WMTextInput].includes(j)}},46269:Qn=>{var qe=Math.floor,s=Math.random;function r(I,J){return I+qe(s()*(J-I+1))}Qn.exports=r},46407:(Qn,qe,s)=>{"use strict";s.d(qe,{F:()=>T,c:()=>te});var r=s(19249),I=s(81122),J=s(91771),N=s(98033);const T=function(q){var ne;q===void 0&&(q="");const{isExperience:B,isLoggedExperience:l}=(ne=MB.global)==null?void 0:ne.designOptions;if(q==="isSave"){if(B)return MB.global.popupHelper.loginAsync({onConfirm:te}),!0;if(l){const U=MB.getRootProject&&MB.getRootProject();return MB.global.popupHelper.teamSelectModalAsync({projectCid:U==null?void 0:U.cid,onConfirm:C=>(0,J.E)(C)}),!0}else return!1}else return B?(MB.global.popupHelper.loginAsync({onConfirm:te}),!0):!1},te=async()=>{if((0,I.BG)()){window.parent.location.reload();return}const{user:q}=await(0,r.DE)("/api/web/v3/initial"),{currentUser:ne}=(0,N.n)({user:q,org:{}});(0,r.iv)("/api/web/v3/guide/complete_workspace_guide"),MB.user=q,Object.assign(MB.global.designOptions,{isExperience:!1,isLoggedExperience:!0}),MB.action("update:design:options",{designOptions:{...MB.global.designOptions}}),MB.action("current:update:state",{currentUser:ne});const B=MB.getRootProject&&MB.getRootProject();MB.global.popupHelper.teamSelectModalAsync({projectCid:B==null?void 0:B.cid,onConfirm:l=>(0,J.E)(l)})}},46573:(Qn,qe,s)=>{"use strict";s.d(qe,{A:()=>Qs});var r=s(38502),I=s(18381),J=s(12211),N=s(67052),T=s(74923),te=s(67588),q=s(10472),ne=s(70933),B=s(34771),l=s(83199),U=s(79150),C=s(53732),M=s.n(C),w=s(79287),y=s.n(w),j=s(17307),Q=s(89240),ze=Object.defineProperty,me=Object.defineProperties,Se=Object.getOwnPropertyDescriptors,Me=Object.getOwnPropertySymbols,De=Object.prototype.hasOwnProperty,tt=Object.prototype.propertyIsEnumerable,at=(E,le,de)=>le in E?ze(E,le,{enumerable:!0,configurable:!0,writable:!0,value:de}):E[le]=de,ht=(E,le)=>{for(var de in le||(le={}))De.call(le,de)&&at(E,de,le[de]);if(Me)for(var de of Me(le))tt.call(le,de)&&at(E,de,le[de]);return E},Je=(E,le)=>me(E,Se(le)),$=(E,le)=>{var de={};for(var _e in E)De.call(E,_e)&&le.indexOf(_e)<0&&(de[_e]=E[_e]);if(E!=null&&Me)for(var _e of Me(E))le.indexOf(_e)<0&&tt.call(E,_e)&&(de[_e]=E[_e]);return de},yt=(0,r.forwardRef)((E,le)=>{var de=E,{size:_e,spin:Vt,style:Bt}=de,ln=$(de,["size","spin","style"]);const Ht=ht(ht({width:_e||"var(--x-icon-size, 1em)",height:_e||"var(--x-icon-size, 1em)",animation:Vt?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),Bt);return r.createElement("svg",Je(ht({ref:le,style:Ht},ln),{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.6093 5.88625L10.1186 4.39228L7.60573 6.91841L7.04754 6.80104C6.64371 6.71613 6.22609 6.72212 5.82485 6.81856C5.68321 6.85261 5.54485 6.89762 5.41097 6.95303L9.04453 10.6106C9.09865 10.4786 9.14273 10.3422 9.17621 10.2026C9.27266 9.80046 9.27865 9.38185 9.19373 8.97707L9.07712 8.42125L11.6093 5.88625ZM8.93237 11.9876L4.04111 7.06395C4.00645 7.029 3.97947 6.98719 3.9619 6.94119C3.94434 6.89519 3.93657 6.84602 3.9391 6.79684C3.94162 6.74766 3.95439 6.69955 3.97659 6.6556C3.99878 6.61165 4.0299 6.57283 4.06796 6.54163C4.51052 6.1846 5.02679 5.93048 5.57945 5.79764C6.13211 5.6648 6.70735 5.65656 7.26358 5.77351L9.11651 3.91083L8.84413 3.63814C8.70207 3.5039 8.61843 3.31913 8.61125 3.12369C8.60407 2.92825 8.67394 2.73783 8.80577 2.5935C8.95111 2.46132 9.14273 2.39199 9.3389 2.40062C9.53507 2.40925 9.71988 2.49515 9.85307 2.63959L13.3786 6.17293C13.5175 6.31025 13.597 6.4967 13.5998 6.69211C13.6027 6.88751 13.5288 7.07622 13.394 7.21757C13.2496 7.35072 13.0586 7.4214 12.8624 7.41421C12.6865 7.40775 12.5192 7.33914 12.3898 7.22162C12.3749 7.20811 12.3605 7.19395 12.3467 7.17916L12.0743 6.90648L10.2214 8.76149C10.3382 9.31834 10.3299 9.89423 10.1973 10.4475C10.0646 11.0008 9.81073 11.5176 9.4541 11.9607C9.42294 11.9988 9.38416 12.03 9.34026 12.0522C9.29636 12.0744 9.2483 12.0872 9.19918 12.0897C9.15005 12.0922 9.10094 12.0845 9.05499 12.0669C9.00904 12.0493 8.96728 12.0223 8.93237 11.9876ZM5.13828 9.80613L6.20861 10.8584L3.036 13.5238C2.98407 13.5727 2.91547 13.5999 2.84419 13.5999C2.77291 13.5999 2.70431 13.5727 2.65237 13.5238L2.47591 13.3471C2.42708 13.2952 2.3999 13.2265 2.3999 13.1551C2.3999 13.0838 2.42708 13.0151 2.47591 12.9631L5.13828 9.80613Z",fill:"#8B8C8F"}))}),Le=s(58603),He=s(40486),ye=s(67787),je=s(21066),ot=s(51090);const we=ye.Ay.div.withConfig({displayName:"styles__StyledMenuFilter",componentId:"sc-17ksmo3-0"})([".filter-opener{width:100%;height:24px;display:flex;align-items:center;border-radius:6px;padding-left:6px;padding-right:4px;cursor:pointer;.level-box,.display-name{text-align:left;color:",";}.display-name{max-width:132px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;}.level-box{width:132px;height:100%;display:flex;align-items:center;flex-direction:row;.level1-span{max-width:40%;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;}.level2-span{max-width:60%;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;}}button{display:flex;align-items:center;.arrow-icon{margin-left:2px;transition:transform 0.2s ease-out 0s;path{stroke:",";}&.is-expand{transform:rotateX(180deg);}}}&:hover,&.is-open{background:",";}}"],E=>E.theme.color_text_L1,E=>E.theme.color_text_L1,E=>E.theme.color_btn_secondary_hover),$e=(0,ye.Ay)(je.Ay).withConfig({displayName:"styles__StyledContextMenu",componentId:"sc-17ksmo3-1"})(["",";ul,ul.is-normal{width:140px;min-width:140px;li.MenuItem.hasIcon,li.MenuItem{> a{padding-left:32px;.checked{width:16px;height:16px;position:absolute;left:8px;}.right-arrow{display:none;}> span{width:100%;span.text{display:block;}}}&.menu-displayed{> a{padding-left:8px;svg{margin-right:8px;}}}}}&.widget-modal-detail-header-menu{z-index:1052;}"],ot.ZJ),ge=ye.Ay.div.withConfig({displayName:"styles__StyledDivider",componentId:"sc-17ksmo3-2"})(["width:100%;height:1px;background:",";margin:8px 0;"],E=>E.theme.color_bg_border_01),Ze=(0,ye.DU)(["#IBOT_DROPDOWN_MENU_ROOT{.DesignDropdownMenuBase{.DesignDropdownMenu{&.official-sub-filter-menu{width:100%;border-radius:9px;box-shadow:",";border:1px solid ",";margin-top:0;&.is-downward{top:0;right:0;left:0;bottom:initial;}&.x-center.is-open{transition:unset;transform:unset;}.content{padding:0;background:",";color:",";width:100%;}ul{width:100%;list-style:none;font-size:12px;padding:8px;li{border-radius:4px;height:28px;padding:0 16px 0 32px;cursor:pointer;display:flex;align-items:center;justify-content:space-between;position:relative;span{color:",";overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%;}.checked{width:16px;height:16px;position:absolute;left:8px;}svg:not(.checked){margin-right:8px;}&:hover,&.show-sub{background:",";}&.menu-displayed{padding-left:8px;}}}.sub-ul{position:absolute;left:100%;top:0;background:",";border-radius:9px;box-shadow:",";border:1px solid ",";}}}}}"],E=>E.theme.shadow_m,E=>E.theme.color_bg_border_01,E=>E.theme.color_bg_white,E=>E.theme.color_text_L1,E=>E.theme.color_text_L1,E=>E.theme.color_btn_secondary_hover,E=>E.theme.color_bg_white,E=>E.theme.shadow_m,E=>E.theme.color_bg_border_01);var W=s(72214);const an=(0,r.memo)(E=>{var le;const{level1:de,level2:_e="",optionList:Vt,onChange:Bt,onChangeMode:ln}=E,[Ht,En]=(0,r.useState)(!1),po=(0,r.useRef)(null),[Lo,Bo]=(0,r.useState)({}),[Zo,Yo]=(0,r.useState)(de),Jo=(0,r.useCallback)(()=>{var ba;const sa=Vt.find(pr=>pr.value===de),va=sa!=null&&(ba=sa.children)!=null&&ba.length?sa.children.find(pr=>pr.value===_e):null;return sa&&va?(0,He.JT)(de+"/"+_e)<132?(0,W.jsxs)("span",{className:"display-name",children:[de,"\xA0/\xA0",_e]}):(0,W.jsxs)("div",{className:"level-box",children:[(0,W.jsx)("span",{className:"level1-span",children:de}),"\xA0/\xA0",(0,W.jsx)("span",{className:"level2-span",children:_e})]}):sa?(0,W.jsx)("span",{className:"display-name",children:sa.text||sa.value}):""},[de,_e,Vt]),ea=(0,r.useMemo)(()=>{let ba=null;return Vt.forEach((sa,va)=>{sa.value===Zo&&(ba={...sa,index:va})}),ba},[Zo,Vt]);(0,r.useEffect)(()=>{var ba;if(!po.current)return;const sa=(ba=po.current)==null?void 0:ba.querySelector("label.filter-opener");if(!sa)return;const{bottom:va,right:pr,top:lr,height:Cr}=sa.getBoundingClientRect();Bo({top:va+5,right:pr})},[po.current]);const qo=(0,r.useCallback)(ba=>{Yo(ba)},[Yo]),Go=(0,r.useCallback)(ba=>{En(ba),Yo(de)},[de,Yo,En]),$o=(0,r.useCallback)((ba,sa)=>{Bt(ba,sa),En(!1)},[Bt,En]);return(0,W.jsxs)(we,{className:"official-menu-filter-container",ref:po,children:[(0,W.jsx)(Le.A,{menuY:"bottom",isOpen:Ht,className:"filter-opener",onToggle:Go,shouldPreventScrollingPropagation:!1,menuBaseStyle:{...Lo,width:140},hoverDelay:150,closeDelay:100,opener:(0,W.jsxs)(r.Fragment,{children:[Jo(),(0,W.jsx)(Q.A,{className:M()("arrow-icon",{"is-expand":Ht}),size:14})]}),menuClassName:"official-sub-filter-menu",menu:(0,W.jsxs)(W.Fragment,{children:[(0,W.jsxs)("ul",{children:[Vt.map((ba,sa)=>{let{value:va,text:pr,children:lr}=ba;const Cr=de===va;return va==="divider"?(0,W.jsx)(ge,{}):(0,W.jsxs)("li",{className:M()({active:Cr},{"show-sub":Zo===va}),"data-key":va,onClick:lr!=null&&lr.length?()=>{var si;return $o({data:va,index:sa},{data:(si=lr[0])==null?void 0:si.value,index:0})}:()=>$o({data:va,index:sa}),onMouseEnter:()=>qo(va),children:[Cr&&(0,W.jsx)(j.C,{name:"common/checked",className:"checked"}),(0,W.jsx)("span",{children:pr||va})]},va)}),ln&&(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(ge,{}),(0,W.jsxs)("li",{className:"menu-displayed",onClick:ln,children:[(0,W.jsx)(yt,{size:16}),(0,W.jsx)("span",{children:I18N.LeftSidePanel.official.menuDisplayed})]})]})]}),ea&&(ea==null||(le=ea.children)==null?void 0:le.length)&&(0,W.jsx)("ul",{className:"sub-ul",style:{top:28*(ea==null?void 0:ea.index)},children:ea==null?void 0:ea.children.map((ba,sa)=>{let{value:va,text:pr}=ba;const lr=_e===va;return(0,W.jsxs)("li",{className:M()({active:lr}),"data-key":va,onClick:()=>$o({data:ea.value,index:ea.index},{data:va,index:sa}),children:[lr&&(0,W.jsx)(j.C,{name:"common/checked",className:"checked"}),(0,W.jsx)("span",{children:pr||va})]},va)})})]})}),(0,W.jsx)(Ze,{})]})});var _t=s(55326),nn=s(93413),Oe=s(50325);const sn=ye.Ay.div.withConfig({displayName:"styles__StyledOfficialFilter",componentId:"sc-1cyl466-0"})(["width:100%;display:flex;align-items:center;flex-direction:column;border-bottom:1px solid ",";&.menu{height:40px;}.top{width:100%;height:40px;display:flex;align-items:center;justify-content:space-between;.left{margin-left:6px;.tile-box{font-size:12px;font-weight:400;color:",";margin-left:6px;height:24px;display:flex;align-items:center;padding:0 4px 0 6px;border-radius:5px;cursor:pointer;&:hover{background:",";}&:active{background:",";}}}.right{margin-right:6px;.platform-sub-filter{height:24px;.filter-opener{padding-left:4px;button{svg:not(.arrow-icon){path{fill:",";}&.mp-applet{path{stroke:",";fill:none;}}}}}}}}"],E=>E.theme.color_bg_border_01,E=>E.theme.color_text_L1,E=>E.theme.color_btn_secondary_hover,E=>E.theme.color_btn_secondary_active,E=>E.theme.color_text_L1,E=>E.theme.color_text_L1),It=ye.Ay.div.withConfig({displayName:"styles__StyledOfficialMenuFilter",componentId:"sc-1cyl466-1"})([".filter-opener{width:100%;height:24px;display:flex;align-items:center;border-radius:6px;padding-left:6px;cursor:pointer;.display-name{max-width:80px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;text-align:left;color:",";}.arrow-icon{margin-left:10px;transition:transform 0.2s ease-out 0s;&.is-expand{transform:rotateX(180deg);}}&:hover,&.is-open{background:",";}}label{width:100%;height:24px;display:flex;border-radius:6px;padding-left:6px;.display-name{max-width:80px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;text-align:left;color:",";}button{display:flex;align-items:center;.arrow-icon{margin-left:10px;transition:transform 0.2s ease-out 0s;&.is-expand{transform:rotateX(180deg);}}}&:hover,&.is-open{background:",";}}.svg-icon{width:8px;height:8px;margin-right:7px;}"],E=>E.theme.color_text_L1,E=>E.theme.color_btn_secondary_hover,E=>E.theme.color_text_L1,E=>E.theme.color_btn_secondary_hover),Pt=(0,ye.Ay)(je.Ay).withConfig({displayName:"styles__StyledOfficialContextMenu",componentId:"sc-1cyl466-2"})(["",";ul,ul.is-normal{width:140px;min-width:140px;li.MenuItem.hasIcon,li.MenuItem{> a{padding-left:32px;.checked{width:16px;height:16px;position:absolute;left:8px;}.right-arrow{display:none;}}&.menu-displayed{> a{padding-left:8px;svg{margin-right:8px;}}}}}&.widget-modal-detail-header-menu{z-index:1052;}"],ot.ZJ),dt=ye.Ay.div.withConfig({displayName:"styles__StyledDivider",componentId:"sc-1cyl466-3"})(["width:100%;height:1px;background:",";margin:8px 0;"],E=>E.theme.color_bg_border_01),Vn=ye.Ay.div.withConfig({displayName:"styles__StyledOfficialListFilter",componentId:"sc-1cyl466-4"})(["width:100%;display:flex;align-items:center;flex-flow:row wrap;align-items:flex-start;padding:4px 11px 8px 12px;row-gap:8px;column-gap:6px;.option,.platform-sub-filter .filter-opener{font-family:PingFang SC;height:24px;width:auto;word-break:keep-all;padding:0 8px;display:flex;flex-direction:row;align-items:center;text-decoration:none;color:",";max-width:123px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer;background:",";border-radius:5px;button,.display-name{color:",";span.active{color:",";font-weight:500;}}.arrow-icon{margin-left:4px;margin-right:0;color:",";}&:hover{background:",";}&.is-active{background:",";color:",";font-weight:500;}}"],E=>E.theme.color_text_L2,E=>E.theme.color_navigation_hover,E=>E.theme.color_text_L2,E=>E.theme.color_text_L1,E=>E.theme.color_text_L2,E=>E.theme.color_navigation_active,E=>E.theme.color_btn_secondary_active,E=>E.theme.color_text_L1),o=(0,r.memo)(E=>{const{platformType:le,optionList:de,level1:_e,onChange:Vt}=E,Bt=(0,r.useMemo)(()=>Oe.iv[le]||(de==null?void 0:de.length),[le,de]),ln=(0,r.useMemo)(()=>de.slice(0,Bt),[de,Bt]),Ht=(0,r.useMemo)(()=>de.slice(Bt).map(Lo=>({value:Lo.value,label:Lo.value})),[de]),En=(0,r.useCallback)(()=>Ht.find(Bo=>Bo.value===_e)?(0,W.jsx)("span",{className:"active",children:_e}):(0,W.jsx)("span",{children:I18N.LeftSidePanel.pLabel.more}),[_e,Ht]),po=(0,r.useCallback)((Lo,Bo)=>{Vt({...Lo,index:Bo+6})},[Vt]);return(0,W.jsxs)(Vn,{className:"official-list-filter-container",children:[ln.map((Lo,Bo)=>{let{value:Zo}=Lo;return(0,W.jsx)("div",{"data-category-guide-id":Zo,className:M()("option",{"is-active":_e===Zo},{[nn.c.GUIDE_NOVICE_V9_2408_STEP_1]:_e==="\u6D41\u7A0B"}),onClick:()=>Vt({data:Zo,index:Bo}),children:(0,W.jsx)("span",{children:Zo})},Zo)}),Ht!=null&&Ht.length?(0,W.jsx)(_t.A,{width:140,selectedValue:_e,optionList:Ht,onChange:po,renderDisplayName:En}):null]})});var Gn=s(80783),xt=Object.defineProperty,Ot=Object.defineProperties,wt=Object.getOwnPropertyDescriptors,Kt=Object.getOwnPropertySymbols,fe=Object.prototype.hasOwnProperty,bt=Object.prototype.propertyIsEnumerable,un=(E,le,de)=>le in E?xt(E,le,{enumerable:!0,configurable:!0,writable:!0,value:de}):E[le]=de,gt=(E,le)=>{for(var de in le||(le={}))fe.call(le,de)&&un(E,de,le[de]);if(Kt)for(var de of Kt(le))bt.call(le,de)&&un(E,de,le[de]);return E},Wt=(E,le)=>Ot(E,wt(le)),Un=(E,le)=>{var de={};for(var _e in E)fe.call(E,_e)&&le.indexOf(_e)<0&&(de[_e]=E[_e]);if(E!=null&&Kt)for(var _e of Kt(E))le.indexOf(_e)<0&&bt.call(E,_e)&&(de[_e]=E[_e]);return de},Yt=(0,r.forwardRef)((E,le)=>{var de=E,{size:_e,spin:Vt,style:Bt}=de,ln=Un(de,["size","spin","style"]);const Ht=gt(gt({width:_e||"var(--x-icon-size, 1em)",height:_e||"var(--x-icon-size, 1em)",animation:Vt?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),Bt);return r.createElement("svg",Wt(gt({ref:le,style:Ht},ln),{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),r.createElement("path",{d:"M13.5 3.5C14.3284 3.5 15 4.17157 15 5V15C15 15.8284 14.3284 16.5 13.5 16.5H6.5C5.67157 16.5 5 15.8284 5 15V5C5 4.17157 5.67157 3.5 6.5 3.5H13.5ZM6.5 4.5C6.22386 4.5 6 4.72386 6 5V15C6 15.2761 6.22386 15.5 6.5 15.5H13.5C13.7761 15.5 14 15.2761 14 15V5C14 4.72386 13.7761 4.5 13.5 4.5H6.5ZM8.01562 13.1006C7.98887 13.1538 7.95089 13.201 7.90527 13.2393C7.85969 13.2774 7.80695 13.3062 7.75 13.3232C7.69286 13.3403 7.63247 13.3449 7.57324 13.3379C7.5141 13.3309 7.45682 13.3121 7.40527 13.2822C7.35387 13.2524 7.3089 13.2127 7.27344 13.165C7.23789 13.1172 7.21191 13.062 7.19824 13.0039C7.18465 12.946 7.18294 12.8857 7.19336 12.8271C7.20381 12.7685 7.22695 12.7128 7.25977 12.6631L7.28418 12.6211C7.33086 12.541 7.39803 12.4738 7.47852 12.4277C7.5588 12.3819 7.64973 12.3581 7.74219 12.3584H8.44238L8.01562 13.1006ZM11.8057 11.0459H13.0625C13.1785 11.0459 13.29 11.0918 13.3721 11.1738C13.4541 11.2559 13.5 11.3674 13.5 11.4834C13.5 11.5994 13.4541 11.711 13.3721 11.793C13.29 11.875 13.1785 11.9209 13.0625 11.9209H12.3135L12.7373 12.6631C12.77 12.7127 12.7923 12.7686 12.8027 12.8271C12.8132 12.8858 12.8115 12.9459 12.7979 13.0039C12.7842 13.062 12.7592 13.1172 12.7236 13.165C12.6881 13.2129 12.6424 13.2524 12.5908 13.2822C12.5392 13.3121 12.4821 13.3319 12.4229 13.3389C12.3639 13.3458 12.304 13.3402 12.2471 13.3232C12.19 13.3062 12.1365 13.2775 12.0908 13.2393C12.0453 13.201 12.0082 13.1537 11.9814 13.1006L10.5527 10.6289C10.4608 10.4694 10.4122 10.2886 10.4121 10.1045C10.4121 9.92018 10.4606 9.73872 10.5527 9.5791L10.7559 9.22949L11.8057 11.0459ZM10.8203 7.00293C10.8795 7.00991 10.9367 7.02875 10.9883 7.05859C11.0399 7.08846 11.0846 7.12889 11.1201 7.17676C11.1556 7.22457 11.1816 7.27895 11.1953 7.33691C11.209 7.39496 11.2107 7.45594 11.2002 7.51465C11.1897 7.57325 11.1666 7.62904 11.1338 7.67871L9.18848 11.0459H9.8877C10.0087 11.0478 10.1272 11.0812 10.2314 11.1426C10.3357 11.2039 10.4229 11.2907 10.4834 11.3955L10.7871 11.9209H6.9375C6.82152 11.9209 6.70997 11.875 6.62793 11.793C6.54593 11.711 6.50006 11.5994 6.5 11.4834C6.5 11.3674 6.54595 11.2559 6.62793 11.1738C6.70998 11.0918 6.82147 11.0459 6.9375 11.0459H8.19434L9.49609 8.79199L8.85547 7.67871C8.82267 7.62907 8.80053 7.5732 8.79004 7.51465C8.77958 7.45594 8.78126 7.39496 8.79492 7.33691C8.8086 7.27905 8.83371 7.22451 8.86914 7.17676C8.90464 7.12895 8.94946 7.08845 9.00098 7.05859C9.05259 7.02872 9.1107 7.0099 9.16992 7.00293C9.22897 6.99605 9.28874 7.00154 9.3457 7.01855C9.40284 7.03563 9.45626 7.06422 9.50195 7.10254C9.54751 7.14081 9.58462 7.18804 9.61133 7.24121L10 7.91699L10.3779 7.24121C10.4047 7.18792 10.4426 7.14086 10.4883 7.10254C10.5339 7.06432 10.5866 7.03562 10.6436 7.01855C10.7007 7.00148 10.7611 6.99596 10.8203 7.00293Z",fill:"black",fillOpacity:"0.85"}))}),rt=Object.defineProperty,An=Object.defineProperties,Nt=Object.getOwnPropertyDescriptors,jt=Object.getOwnPropertySymbols,vn=Object.prototype.hasOwnProperty,Dt=Object.prototype.propertyIsEnumerable,$t=(E,le,de)=>le in E?rt(E,le,{enumerable:!0,configurable:!0,writable:!0,value:de}):E[le]=de,kn=(E,le)=>{for(var de in le||(le={}))vn.call(le,de)&&$t(E,de,le[de]);if(jt)for(var de of jt(le))Dt.call(le,de)&&$t(E,de,le[de]);return E},Kn=(E,le)=>An(E,Nt(le)),dn=(E,le)=>{var de={};for(var _e in E)vn.call(E,_e)&&le.indexOf(_e)<0&&(de[_e]=E[_e]);if(E!=null&&jt)for(var _e of jt(E))le.indexOf(_e)<0&&Dt.call(E,_e)&&(de[_e]=E[_e]);return de},Lt=(0,r.forwardRef)((E,le)=>{var de=E,{size:_e,spin:Vt,style:Bt}=de,ln=dn(de,["size","spin","style"]);const Ht=kn(kn({width:_e||"var(--x-icon-size, 1em)",height:_e||"var(--x-icon-size, 1em)",animation:Vt?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),Bt);return r.createElement("svg",Kn(kn({ref:le,style:Ht},ln),{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),r.createElement("path",{d:"M5.5 5C5.5 4.44771 5.94772 4 6.5 4H13.5C14.0523 4 14.5 4.44772 14.5 5V15.0004C14.5 15.5527 14.0523 16.0004 13.5 16.0004H6.5C5.94772 16.0004 5.5 15.5527 5.5 15.0004V5Z",stroke:"black",strokeOpacity:"0.85"}),r.createElement("path",{d:"M11.5 10C11.7967 10 12.0867 9.91204 12.3334 9.74722C12.58 9.58237 12.7723 9.3481 12.8858 9.07402C12.9993 8.79994 13.0291 8.49835 12.9712 8.20738C12.9133 7.91638 12.7704 7.64911 12.5606 7.43935C12.3509 7.22956 12.0836 7.0867 11.7926 7.02883C11.5016 6.97093 11.2001 7.00066 10.926 7.11418C10.6519 7.2277 10.4176 7.41997 10.2528 7.66666C10.088 7.91332 10 8.20333 10 8.5V11.5C10 11.7967 9.91204 12.0867 9.74722 12.3334C9.58237 12.58 9.34813 12.7723 9.07402 12.8858C8.79994 12.9993 8.49835 13.0291 8.20738 12.9712C7.91638 12.9133 7.64911 12.7704 7.43935 12.5606C7.22956 12.3509 7.0867 12.0836 7.02883 11.7926C6.97093 11.5016 7.00066 11.2001 7.11418 10.926C7.2277 10.6519 7.41997 10.4176 7.66666 10.2528C7.91332 10.088 8.20333 10 8.5 10",stroke:"black",strokeOpacity:"0.85",strokeLinecap:"round",strokeLinejoin:"round"}))}),bn=Object.defineProperty,Yn=Object.defineProperties,on=Object.getOwnPropertyDescriptors,yn=Object.getOwnPropertySymbols,lo=Object.prototype.hasOwnProperty,qn=Object.prototype.propertyIsEnumerable,Wn=(E,le,de)=>le in E?bn(E,le,{enumerable:!0,configurable:!0,writable:!0,value:de}):E[le]=de,Nn=(E,le)=>{for(var de in le||(le={}))lo.call(le,de)&&Wn(E,de,le[de]);if(yn)for(var de of yn(le))qn.call(le,de)&&Wn(E,de,le[de]);return E},xn=(E,le)=>Yn(E,on(le)),Ye=(E,le)=>{var de={};for(var _e in E)lo.call(E,_e)&&le.indexOf(_e)<0&&(de[_e]=E[_e]);if(E!=null&&yn)for(var _e of yn(E))le.indexOf(_e)<0&&qn.call(E,_e)&&(de[_e]=E[_e]);return de},Hn=(0,r.forwardRef)((E,le)=>{var de=E,{size:_e,spin:Vt,style:Bt}=de,ln=Ye(de,["size","spin","style"]);const Ht=Nn(Nn({width:_e||"var(--x-icon-size, 1em)",height:_e||"var(--x-icon-size, 1em)",animation:Vt?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),Bt);return r.createElement("svg",xn(Nn({ref:le,style:Ht},ln),{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),r.createElement("path",{d:"M13.5 3.5C14.3284 3.5 15 4.17157 15 5V15C15 15.8284 14.3284 16.5 13.5 16.5H6.5C5.67157 16.5 5 15.8284 5 15V5C5 4.17157 5.67157 3.5 6.5 3.5H13.5ZM6.5 4.5C6.22386 4.5 6 4.72386 6 5V15C6 15.2761 6.22386 15.5 6.5 15.5H13.5C13.7761 15.5 14 15.2761 14 15V5C14 4.72386 13.7761 4.5 13.5 4.5H6.5ZM12.0996 6.59961C12.7622 6.59961 13.2996 7.13726 13.2998 7.7998V12C13.2998 12.6627 12.7624 13.2002 12.0996 13.2002H7.89941C7.23693 13.1999 6.69922 12.6626 6.69922 12V7.7998C6.69946 7.13745 7.23708 6.59991 7.89941 6.59961H12.0996ZM7.60352 11.8818C7.60248 11.8828 7.60065 11.8829 7.59961 11.8838V12C7.59961 12.1655 7.73399 12.2995 7.89941 12.2998H12.0996C12.2653 12.2998 12.3994 12.1657 12.3994 12V11.2871L11.541 10.6445L11.1338 11.0508L11.4922 11.3584C11.6809 11.5201 11.7028 11.8045 11.541 11.9932C11.3793 12.1814 11.0958 12.2034 10.9072 12.042L9.10938 10.501L7.60352 11.8818ZM7.89941 7.5C7.73413 7.5003 7.59985 7.63451 7.59961 7.7998V10.665L8.59961 9.74805L8.71094 9.66406C8.94484 9.51857 9.24173 9.51304 9.48047 9.65039L9.59473 9.73145L10.4482 10.4639L10.9971 9.91602L11.1035 9.82812C11.3643 9.64898 11.7164 9.65099 11.9775 9.84668L12.3994 10.1631V7.7998C12.3992 7.63432 12.2651 7.5 12.0996 7.5H7.89941Z",fill:"black",fillOpacity:"0.85"}))}),zn=Object.defineProperty,ko=Object.defineProperties,On=Object.getOwnPropertyDescriptors,Mo=Object.getOwnPropertySymbols,jn=Object.prototype.hasOwnProperty,xo=Object.prototype.propertyIsEnumerable,jo=(E,le,de)=>le in E?zn(E,le,{enumerable:!0,configurable:!0,writable:!0,value:de}):E[le]=de,Qo=(E,le)=>{for(var de in le||(le={}))jn.call(le,de)&&jo(E,de,le[de]);if(Mo)for(var de of Mo(le))xo.call(le,de)&&jo(E,de,le[de]);return E},cn=(E,le)=>ko(E,On(le)),In=(E,le)=>{var de={};for(var _e in E)jn.call(E,_e)&&le.indexOf(_e)<0&&(de[_e]=E[_e]);if(E!=null&&Mo)for(var _e of Mo(E))le.indexOf(_e)<0&&xo.call(E,_e)&&(de[_e]=E[_e]);return de},Jt=(0,r.forwardRef)((E,le)=>{var de=E,{size:_e,spin:Vt,style:Bt}=de,ln=In(de,["size","spin","style"]);const Ht=Qo(Qo({width:_e||"var(--x-icon-size, 1em)",height:_e||"var(--x-icon-size, 1em)",animation:Vt?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),Bt);return r.createElement("svg",cn(Qo({ref:le,style:Ht},ln),{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),r.createElement("path",{d:"M17 4C17.5523 4 18 4.44772 18 5V15C18 15.5523 17.5523 16 17 16H3C2.44772 16 2 15.5523 2 15V5C2 4.44772 2.44772 4 3 4H17ZM3 15H17V7H3V15ZM3.5 5C3.22386 5 3 5.22386 3 5.5C3 5.77614 3.22386 6 3.5 6C3.77614 6 4 5.77614 4 5.5C4 5.22386 3.77614 5 3.5 5ZM5 5C4.72386 5 4.5 5.22386 4.5 5.5C4.5 5.77614 4.72386 6 5 6C5.27614 6 5.5 5.77614 5.5 5.5C5.5 5.22386 5.27614 5 5 5ZM6.5 5C6.22386 5 6 5.22386 6 5.5C6 5.77614 6.22386 6 6.5 6C6.77614 6 7 5.77614 7 5.5C7 5.22386 6.77614 5 6.5 5Z",fill:"black",fillOpacity:"0.85"}))}),Ln=Object.defineProperty,Xn=Object.defineProperties,Dn=Object.getOwnPropertyDescriptors,go=Object.getOwnPropertySymbols,Uo=Object.prototype.hasOwnProperty,Ho=Object.prototype.propertyIsEnumerable,ua=(E,le,de)=>le in E?Ln(E,le,{enumerable:!0,configurable:!0,writable:!0,value:de}):E[le]=de,la=(E,le)=>{for(var de in le||(le={}))Uo.call(le,de)&&ua(E,de,le[de]);if(go)for(var de of go(le))Ho.call(le,de)&&ua(E,de,le[de]);return E},To=(E,le)=>Xn(E,Dn(le)),Ia=(E,le)=>{var de={};for(var _e in E)Uo.call(E,_e)&&le.indexOf(_e)<0&&(de[_e]=E[_e]);if(E!=null&&go)for(var _e of go(E))le.indexOf(_e)<0&&Ho.call(E,_e)&&(de[_e]=E[_e]);return de},eo=(0,r.forwardRef)((E,le)=>{var de=E,{size:_e,spin:Vt,style:Bt}=de,ln=Ia(de,["size","spin","style"]);const Ht=la(la({width:_e||"var(--x-icon-size, 1em)",height:_e||"var(--x-icon-size, 1em)",animation:Vt?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),Bt);return r.createElement("svg",To(la({ref:le,style:Ht},ln),{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),r.createElement("path",{d:"M17 4C17.5523 4 18 4.44772 18 5V15C18 15.5523 17.5523 16 17 16H3C2.44772 16 2 15.5523 2 15V5C2 4.44772 2.44772 4 3 4H17ZM6 15H17V5H6V15ZM3.25 9.5C2.97386 9.5 2.75 9.72386 2.75 10C2.75 10.2761 2.97386 10.5 3.25 10.5H4.75C5.02614 10.5 5.25 10.2761 5.25 10C5.25 9.72386 5.02614 9.5 4.75 9.5H3.25ZM3.25 7.5C2.97386 7.5 2.75 7.72386 2.75 8C2.75 8.27614 2.97386 8.5 3.25 8.5H4.75C5.02614 8.5 5.25 8.27614 5.25 8C5.25 7.72386 5.02614 7.5 4.75 7.5H3.25ZM3.25 5.5C2.97386 5.5 2.75 5.72386 2.75 6C2.75 6.27614 2.97386 6.5 3.25 6.5H4.75C5.02614 6.5 5.25 6.27614 5.25 6C5.25 5.72386 5.02614 5.5 4.75 5.5H3.25Z",fill:"black",fillOpacity:"0.85"}))}),Oo=Object.defineProperty,so=Object.defineProperties,to=Object.getOwnPropertyDescriptors,Vo=Object.getOwnPropertySymbols,ta=Object.prototype.hasOwnProperty,Qa=Object.prototype.propertyIsEnumerable,qr=(E,le,de)=>le in E?Oo(E,le,{enumerable:!0,configurable:!0,writable:!0,value:de}):E[le]=de,kr=(E,le)=>{for(var de in le||(le={}))ta.call(le,de)&&qr(E,de,le[de]);if(Vo)for(var de of Vo(le))Qa.call(le,de)&&qr(E,de,le[de]);return E},ur=(E,le)=>so(E,to(le)),Mr=(E,le)=>{var de={};for(var _e in E)ta.call(E,_e)&&le.indexOf(_e)<0&&(de[_e]=E[_e]);if(E!=null&&Vo)for(var _e of Vo(E))le.indexOf(_e)<0&&Qa.call(E,_e)&&(de[_e]=E[_e]);return de},dr=(0,r.forwardRef)((E,le)=>{var de=E,{size:_e,spin:Vt,style:Bt}=de,ln=Mr(de,["size","spin","style"]);const Ht=kr(kr({width:_e||"var(--x-icon-size, 1em)",height:_e||"var(--x-icon-size, 1em)",animation:Vt?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),Bt);return r.createElement("svg",ur(kr({ref:le,style:Ht},ln),{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),r.createElement("path",{d:"M17 4C17.5523 4 18 4.44772 18 5V15C18 15.5523 17.5523 16 17 16H3C2.44772 16 2 15.5523 2 15V5C2 4.44772 2.44772 4 3 4H17ZM3 15H17V5H3V15ZM11.7002 14C11.8657 14.0001 11.9999 14.1343 12 14.2998C12 14.4654 11.8658 14.5995 11.7002 14.5996H8.2998C8.13421 14.5995 8 14.4654 8 14.2998C8.00011 14.1343 8.13427 14.0001 8.2998 14H11.7002Z",fill:"black",fillOpacity:"0.85"}))}),wi=Object.defineProperty,gi=Object.defineProperties,Li=Object.getOwnPropertyDescriptors,Ni=Object.getOwnPropertySymbols,Ai=Object.prototype.hasOwnProperty,Bi=Object.prototype.propertyIsEnumerable,Ss=(E,le,de)=>le in E?wi(E,le,{enumerable:!0,configurable:!0,writable:!0,value:de}):E[le]=de,qi=(E,le)=>{for(var de in le||(le={}))Ai.call(le,de)&&Ss(E,de,le[de]);if(Ni)for(var de of Ni(le))Bi.call(le,de)&&Ss(E,de,le[de]);return E},Ga=(E,le)=>gi(E,Li(le)),ai=(E,le)=>{var de={};for(var _e in E)Ai.call(E,_e)&&le.indexOf(_e)<0&&(de[_e]=E[_e]);if(E!=null&&Ni)for(var _e of Ni(E))le.indexOf(_e)<0&&Bi.call(E,_e)&&(de[_e]=E[_e]);return de},Qt=(0,r.forwardRef)((E,le)=>{var de=E,{size:_e,spin:Vt,style:Bt}=de,ln=ai(de,["size","spin","style"]);const Ht=qi(qi({width:_e||"var(--x-icon-size, 1em)",height:_e||"var(--x-icon-size, 1em)",animation:Vt?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),Bt);return r.createElement("svg",Ga(qi({ref:le,style:Ht},ln),{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),r.createElement("path",{d:"M16.0049 4.5C16.6218 4.5 17.1219 4.93764 17.1221 5.47754V14.5225L17.1172 14.6221C17.0601 15.1152 16.5834 15.5 16.0049 15.5H3.99512C3.41663 15.5 2.94094 15.1152 2.88379 14.6221L2.87793 14.5225V5.47754C2.87808 4.93765 3.3782 4.50002 3.99512 4.5H16.0049ZM3.99512 5.5C3.93762 5.50001 3.89919 5.51718 3.87793 5.53027V14.4688C3.89909 14.4819 3.93722 14.5 3.99512 14.5H16.0049C16.0625 14.5 16.1008 14.4819 16.1221 14.4688V5.53027C16.1007 5.51721 16.0621 5.5 16.0049 5.5H3.99512Z",fill:"black",fillOpacity:"0.85"}),r.createElement("path",{d:"M9.56764 7.85254C8.06271 7.85254 6.83472 9.06663 6.83472 10.5465C6.83472 12.0264 8.06636 13.2405 9.56764 13.2405C11.0689 13.2405 12.3006 12.0264 12.3006 10.5465C12.3006 10.41 12.2095 10.3202 12.071 10.3202H9.79721V8.07883C9.79721 7.94234 9.70611 7.85254 9.56764 7.85254ZM11.8451 10.7728C11.7066 12.0085 10.5916 12.9065 9.33808 12.77C8.08458 12.6335 7.17724 11.5343 7.31207 10.2987C7.42867 9.24623 8.27042 8.41289 9.34172 8.30154V10.5465C9.34172 10.683 9.43282 10.7728 9.57129 10.7728H11.8451Z",fill:"black",fillOpacity:"0.85"}),r.createElement("path",{d:"M9.56812 7.75293C9.65913 7.75303 9.7429 7.78308 9.80444 7.84375C9.86611 7.90464 9.89722 7.98812 9.89722 8.0791V10.2207H12.071C12.1622 10.2207 12.2467 10.2498 12.3083 10.3105C12.3701 10.3715 12.4001 10.4558 12.4001 10.5469C12.4 12.083 11.1229 13.3406 9.56812 13.3408C8.01307 13.3408 6.7353 12.0832 6.73511 10.5469C6.73511 9.01048 8.00922 7.75293 9.56812 7.75293ZM9.24194 8.41699C8.33284 8.55751 7.61686 9.24317 7.44019 10.124L7.41187 10.3096C7.28325 11.4883 8.14872 12.5402 9.34937 12.6709C10.5099 12.797 11.5424 11.9954 11.7273 10.873H9.57104C9.48006 10.873 9.39629 10.8428 9.33472 10.7822C9.27301 10.7214 9.24202 10.6378 9.24194 10.5469V8.41699Z",stroke:"black",strokeOpacity:"0.85",strokeWidth:"0.2"}),r.createElement("path",{d:"M10.882 6.43896C10.7362 6.43896 10.6403 6.53352 10.6403 6.67725V9.27953C10.6403 9.42326 10.7362 9.51782 10.882 9.51782H13.5219C13.6677 9.51782 13.7636 9.42326 13.7636 9.27953C13.7598 7.71741 12.4667 6.43896 10.882 6.43896ZM11.1237 9.04124V6.91176C12.2748 7.02902 13.1612 7.90653 13.284 9.04124H11.1237Z",fill:"black",fillOpacity:"0.85"}),r.createElement("path",{d:"M10.8824 6.33936C12.5209 6.3396 13.8597 7.66089 13.8639 9.27881V9.27979C13.8638 9.37437 13.8311 9.46098 13.7672 9.52393C13.7035 9.58656 13.6167 9.61763 13.5221 9.61768H10.8824C10.7876 9.61768 10.7001 9.58671 10.6364 9.52393C10.5725 9.46098 10.5407 9.37437 10.5406 9.27979V6.67725C10.5407 6.58256 10.5724 6.4961 10.6364 6.43311C10.7001 6.37024 10.7876 6.33936 10.8824 6.33936ZM11.2233 8.94092H13.1676C13.0115 7.94387 12.2365 7.17666 11.2233 7.02686V8.94092Z",stroke:"black",strokeOpacity:"0.85",strokeWidth:"0.2"}))}),oo=Object.defineProperty,ao=Object.defineProperties,fa=Object.getOwnPropertyDescriptors,wr=Object.getOwnPropertySymbols,Xa=Object.prototype.hasOwnProperty,ir=Object.prototype.propertyIsEnumerable,Ir=(E,le,de)=>le in E?oo(E,le,{enumerable:!0,configurable:!0,writable:!0,value:de}):E[le]=de,Er=(E,le)=>{for(var de in le||(le={}))Xa.call(le,de)&&Ir(E,de,le[de]);if(wr)for(var de of wr(le))ir.call(le,de)&&Ir(E,de,le[de]);return E},ji=(E,le)=>ao(E,fa(le)),ci=(E,le)=>{var de={};for(var _e in E)Xa.call(E,_e)&&le.indexOf(_e)<0&&(de[_e]=E[_e]);if(E!=null&&wr)for(var _e of wr(E))le.indexOf(_e)<0&&ir.call(E,_e)&&(de[_e]=E[_e]);return de},Di=(0,r.forwardRef)((E,le)=>{var de=E,{size:_e,spin:Vt,style:Bt}=de,ln=ci(de,["size","spin","style"]);const Ht=Er(Er({width:_e||"var(--x-icon-size, 1em)",height:_e||"var(--x-icon-size, 1em)",animation:Vt?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),Bt);return r.createElement("svg",ji(Er({ref:le,style:Ht},ln),{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),r.createElement("path",{d:"M13.5 15.7222C13.7761 15.7222 14 15.946 14 16.2222C14 16.4983 13.7761 16.7222 13.5 16.7222H6.5C6.22386 16.7222 6 16.4983 6 16.2222C6 15.946 6.22386 15.7222 6.5 15.7222H13.5ZM16.7451 3.27783C17.4382 3.27784 18 3.7379 18 4.30518V13.8062C18 14.3734 17.4382 14.8335 16.7451 14.8335H3.25488C2.56183 14.8335 2 14.3734 2 13.8062V4.30518C2 3.7379 2.56183 3.27784 3.25488 3.27783H16.7451ZM3.5957 4.24268C3.28173 4.2427 3.02478 4.43439 3.00195 4.67725L3 4.7124V13.3979C3 13.6455 3.2435 13.8488 3.55176 13.8667L3.5957 13.8677H16.4043C16.7184 13.8677 16.9753 13.676 16.998 13.4331L17 13.3979V4.7124C17 4.46502 16.7572 4.26274 16.4492 4.24463L16.4043 4.24268H3.5957Z",fill:"black",fillOpacity:"0.85"}))}),Rs=Object.defineProperty,wc=Object.defineProperties,Vc=Object.getOwnPropertyDescriptors,Wl=Object.getOwnPropertySymbols,ca=Object.prototype.hasOwnProperty,Lr=Object.prototype.propertyIsEnumerable,yi=(E,le,de)=>le in E?Rs(E,le,{enumerable:!0,configurable:!0,writable:!0,value:de}):E[le]=de,Ts=(E,le)=>{for(var de in le||(le={}))ca.call(le,de)&&yi(E,de,le[de]);if(Wl)for(var de of Wl(le))Lr.call(le,de)&&yi(E,de,le[de]);return E},Cc=(E,le)=>wc(E,Vc(le)),Wi=(E,le)=>{var de={};for(var _e in E)ca.call(E,_e)&&le.indexOf(_e)<0&&(de[_e]=E[_e]);if(E!=null&&Wl)for(var _e of Wl(E))le.indexOf(_e)<0&&Lr.call(E,_e)&&(de[_e]=E[_e]);return de},Oi=(0,r.forwardRef)((E,le)=>{var de=E,{size:_e,spin:Vt,style:Bt}=de,ln=Wi(de,["size","spin","style"]);const Ht=Ts(Ts({width:_e||"var(--x-icon-size, 1em)",height:_e||"var(--x-icon-size, 1em)",animation:Vt?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),Bt);return r.createElement("svg",Cc(Ts({ref:le,style:Ht},ln),{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),r.createElement("path",{d:"M9.23145 7.87744C9.48059 7.8899 9.71643 7.99476 9.89258 8.17139C10.0687 8.348 10.1728 8.58436 10.1846 8.8335V9.45947C10.2877 9.42454 10.396 9.40753 10.5049 9.40771C10.6971 9.407 10.8856 9.46096 11.0479 9.56396C11.2101 9.66697 11.3397 9.81456 11.4209 9.98877C11.6626 9.88151 11.9367 9.87454 12.1836 9.96924C12.4305 10.064 12.6303 10.2523 12.7383 10.4937L12.748 10.5171C12.9919 10.4118 13.2676 10.4076 13.5146 10.5054C13.7618 10.6033 13.9608 10.7955 14.0664 11.0396C14.1202 11.1637 14.1477 11.2978 14.1484 11.4331V14.4556C14.1468 15.0279 13.9182 15.576 13.5127 15.98C13.1071 16.384 12.5578 16.6105 11.9854 16.6099H10.4658C10.0922 16.6083 9.72699 16.4999 9.41309 16.2974C9.32939 16.2493 9.25245 16.1902 9.18457 16.1216L6.32227 13.2622C6.11594 13.0557 6 12.7758 6 12.4839C6.00001 12.1919 6.11593 11.9121 6.32227 11.7056C6.52874 11.4991 6.8086 11.3825 7.10059 11.3823C7.39274 11.3823 7.67329 11.499 7.87988 11.7056L8.17969 12.0054V8.8335C8.18593 8.70171 8.21819 8.57199 8.27441 8.45264C8.33066 8.33326 8.41015 8.22594 8.50781 8.13721C8.60544 8.04854 8.71962 7.97961 8.84375 7.93506C8.96789 7.89052 9.09971 7.87108 9.23145 7.87744ZM9.1377 8.54248C9.06314 8.54927 8.9934 8.58235 8.94043 8.63525C8.88738 8.6883 8.8544 8.75878 8.84766 8.8335V12.8413C8.84868 12.9095 8.82933 12.9766 8.79199 13.0337C8.75458 13.0907 8.70062 13.1353 8.6377 13.1616C8.57586 13.1854 8.50826 13.1915 8.44336 13.1782C8.37841 13.1649 8.31808 13.1336 8.27051 13.0874L7.38574 12.2007C7.31053 12.1249 7.20829 12.0815 7.10156 12.0796C6.99171 12.0798 6.88621 12.1239 6.80859 12.2017C6.73112 12.2794 6.6875 12.3849 6.6875 12.4946C6.68727 12.5492 6.69802 12.6033 6.71875 12.6538C6.73951 12.7043 6.77006 12.75 6.80859 12.7886L9.64258 15.6362C9.671 15.6636 9.7032 15.6866 9.73828 15.7046L9.76367 15.7192C9.96682 15.8551 10.2058 15.9279 10.4502 15.9292H11.9697C12.3605 15.9292 12.7353 15.7738 13.0117 15.4976C13.288 15.2212 13.4432 14.8463 13.4434 14.4556V11.4331C13.4499 11.3492 13.4234 11.266 13.3691 11.2017C13.3148 11.1372 13.2372 11.096 13.1533 11.0884C13.0725 11.0824 12.9919 11.1079 12.9287 11.1587C12.8656 11.2095 12.8241 11.2826 12.8125 11.3628V11.8276C12.8126 11.8728 12.8034 11.9177 12.7861 11.9595C12.7689 12.0011 12.7438 12.039 12.7119 12.0708C12.6801 12.1026 12.6422 12.1278 12.6006 12.145C12.5589 12.1622 12.5138 12.1715 12.4688 12.1714C12.3777 12.1714 12.29 12.1351 12.2256 12.0708C12.1612 12.0064 12.125 11.9187 12.125 11.8276V11.4634C12.1219 11.4533 12.1221 11.4432 12.1221 11.4331V10.9038C12.1285 10.8201 12.1019 10.7366 12.0479 10.6724C11.9937 10.608 11.9158 10.5679 11.832 10.5601C11.7511 10.554 11.6707 10.5786 11.6074 10.6294C11.5442 10.6801 11.5029 10.7533 11.4912 10.8335V11.5786C11.4887 11.668 11.4514 11.7531 11.3877 11.8159C11.3239 11.8787 11.2379 11.9144 11.1484 11.9155C11.0576 11.9154 10.9705 11.8792 10.9062 11.8149C10.8418 11.7505 10.8057 11.6629 10.8057 11.5718V10.9399C10.8025 10.9298 10.8018 10.9198 10.8018 10.9097V10.4175C10.8084 10.3336 10.7817 10.2504 10.7275 10.186C10.6734 10.1217 10.5964 10.0806 10.5127 10.0728C10.436 10.0671 10.3596 10.0894 10.2979 10.1353C10.2361 10.1813 10.1924 10.2485 10.1758 10.3237C10.1783 10.3392 10.1802 10.3549 10.1807 10.3706V11.2036C10.1806 11.2945 10.1443 11.3814 10.0801 11.4458C10.0158 11.5102 9.92883 11.5472 9.83789 11.5474C9.74684 11.5474 9.65913 11.5111 9.59473 11.4468C9.53033 11.3824 9.49416 11.2947 9.49414 11.2036V10.4985C9.48653 10.4703 9.48288 10.4408 9.48242 10.4116V8.8335C9.47476 8.74958 9.43355 8.67201 9.36914 8.61768C9.30474 8.56339 9.22166 8.5359 9.1377 8.54248ZM17 3.39014C17.5523 3.39014 18 3.83785 18 4.39014V14.3901C18 14.9424 17.5523 15.3901 17 15.3901H15.5C15.2239 15.3901 15 15.1663 15 14.8901C15 14.614 15.2239 14.3901 15.5 14.3901H17V4.89014H3V14.3901H6C6.27614 14.3901 6.5 14.614 6.5 14.8901C6.5 15.1663 6.27614 15.3901 6 15.3901H3C2.44772 15.3901 2 14.9424 2 14.3901V4.39014C2 3.83785 2.44772 3.39014 3 3.39014H17ZM9.05566 6.39111C9.63986 6.37246 10.2074 6.58702 10.6338 6.98682C11.0601 7.38654 11.3101 7.9389 11.3291 8.52295V8.66553C11.3291 8.7106 11.321 8.75573 11.3037 8.79736C11.2864 8.83892 11.2604 8.8769 11.2285 8.90869C11.1967 8.94036 11.1587 8.96579 11.1172 8.98291C11.0757 8.99998 11.0312 9.00834 10.9863 9.0083C10.8954 9.0083 10.8075 8.97201 10.7432 8.90771C10.6791 8.84345 10.6436 8.75628 10.6436 8.66553C10.6513 8.46628 10.6189 8.2676 10.5498 8.08057C10.4807 7.89356 10.3757 7.72196 10.2402 7.57568C10.1048 7.42948 9.94183 7.31124 9.76074 7.22803C9.5795 7.14481 9.38289 7.09776 9.18359 7.09033C8.78189 7.07519 8.39062 7.22048 8.0957 7.49365C7.80084 7.76683 7.62594 8.14571 7.61035 8.54736V8.66553C7.61035 8.7106 7.60223 8.75573 7.58496 8.79736C7.56769 8.83892 7.54162 8.8769 7.50977 8.90869C7.47794 8.94036 7.43995 8.96579 7.39844 8.98291C7.35696 8.99998 7.31243 9.00834 7.26758 9.0083C7.22252 9.00839 7.1774 9.00009 7.13574 8.98291C7.09417 8.96576 7.05627 8.94043 7.02441 8.90869C6.99262 8.87696 6.96746 8.83882 6.9502 8.79736C6.93293 8.75573 6.92383 8.7106 6.92383 8.66553C6.90503 8.08141 7.11897 7.51385 7.51855 7.0874C7.91835 6.66092 8.4714 6.41005 9.05566 6.39111Z",fill:"black",fillOpacity:"0.85"}))}),zs=Object.defineProperty,Hl=Object.defineProperties,El=Object.getOwnPropertyDescriptors,Xl=Object.getOwnPropertySymbols,uc=Object.prototype.hasOwnProperty,Pl=Object.prototype.propertyIsEnumerable,Pc=(E,le,de)=>le in E?zs(E,le,{enumerable:!0,configurable:!0,writable:!0,value:de}):E[le]=de,Gl=(E,le)=>{for(var de in le||(le={}))uc.call(le,de)&&Pc(E,de,le[de]);if(Xl)for(var de of Xl(le))Pl.call(le,de)&&Pc(E,de,le[de]);return E},vo=(E,le)=>Hl(E,El(le)),ia=(E,le)=>{var de={};for(var _e in E)uc.call(E,_e)&&le.indexOf(_e)<0&&(de[_e]=E[_e]);if(E!=null&&Xl)for(var _e of Xl(E))le.indexOf(_e)<0&&Pl.call(E,_e)&&(de[_e]=E[_e]);return de},Sa=(0,r.forwardRef)((E,le)=>{var de=E,{size:_e,spin:Vt,style:Bt}=de,ln=ia(de,["size","spin","style"]);const Ht=Gl(Gl({width:_e||"var(--x-icon-size, 1em)",height:_e||"var(--x-icon-size, 1em)",animation:Vt?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),Bt);return r.createElement("svg",vo(Gl({ref:le,style:Ht},ln),{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.6018 4.29835L17.5988 3.79835H2.40156C2.18338 3.79805 1.96716 3.84286 1.76679 3.92921C1.56635 4.01559 1.38532 4.14151 1.23554 4.3003C1.08586 4.45903 0.970421 4.64707 0.895699 4.85206C0.821146 5.05676 0.788773 5.27517 0.800972 5.49268V5.49366L1.27656 14.686V14.6909C1.30185 15.0984 1.48096 15.4817 1.77753 15.7622C2.07409 16.0427 2.46604 16.2002 2.87421 16.2017H17.1262C17.535 16.2012 17.9282 16.0435 18.2248 15.7622C18.5214 15.4809 18.6996 15.097 18.7228 14.689V14.686L19.1984 5.49366C19.2116 5.27645 19.1804 5.05877 19.1066 4.85401C19.0325 4.64823 18.9166 4.45962 18.7668 4.3003C18.6171 4.14114 18.4363 4.01458 18.2355 3.92823C18.0354 3.84218 17.8196 3.79767 17.6018 3.79835V4.29835ZM2.1623 4.84718C2.23733 4.81484 2.31902 4.79823 2.40058 4.79835H17.6037C17.6848 4.79796 17.7654 4.81418 17.84 4.8462C17.9148 4.87834 17.9823 4.92632 18.0383 4.98585C18.0942 5.04537 18.1374 5.1157 18.1652 5.19288C18.193 5.27008 18.2055 5.35209 18.2004 5.43409L17.7248 14.6333C17.7157 14.787 17.6483 14.9312 17.5373 15.0366C17.426 15.1422 17.2777 15.2014 17.1252 15.2017H2.87714C2.72399 15.2009 2.57595 15.1415 2.46406 15.0357C2.35261 14.9301 2.28472 14.7854 2.27461 14.6314L1.8 5.43995L1.79902 5.43702C1.79433 5.35467 1.80698 5.27225 1.83515 5.19483C1.86334 5.11743 1.90681 5.04653 1.96308 4.98682C2.01938 4.92712 2.08725 4.87953 2.1623 4.84718ZM11.5137 6.56051C11.029 6.32915 10.4863 6.20016 9.91508 6.20016C7.86345 6.2002 6.20028 7.86337 6.20023 9.915C6.20023 11.9667 7.86342 13.6298 9.91508 13.6298C10.9607 13.6298 11.9066 13.1976 12.5811 12.5029C12.7473 12.3317 12.8973 12.1441 13.0284 11.9433C13.1791 11.7121 13.114 11.4018 12.8829 11.2509C12.6517 11.1 12.3415 11.1654 12.1905 11.3964C12.0947 11.5432 11.985 11.6803 11.8633 11.8056C11.3693 12.3145 10.6794 12.6298 9.91508 12.6298C8.4157 12.6298 7.20023 11.4144 7.20023 9.915C7.20028 8.41565 8.41573 7.2002 9.91508 7.20016C10.3341 7.20016 10.7299 7.29433 11.083 7.46285C11.3756 7.60251 11.6396 7.79391 11.8633 8.02437C12.0556 8.22235 12.3722 8.22721 12.5704 8.03512C12.7684 7.84288 12.7731 7.52624 12.5811 7.32809C12.2757 7.01352 11.9146 6.75185 11.5137 6.56051ZM9.89945 8.24312C9.31734 7.96329 8.6114 8.3831 8.61137 9.05855V10.7714C8.61137 11.4917 9.41438 11.9219 10.0137 11.5224L11.2979 10.665C11.8334 10.308 11.8334 9.52198 11.2979 9.165L10.0137 8.30855L9.89945 8.24312ZM10.6202 9.915L9.61137 10.5879V9.24215L10.6202 9.915Z",fill:"black",fillOpacity:"0.85"}))}),Na=Object.defineProperty,Tt=Object.defineProperties,mn=Object.getOwnPropertyDescriptors,Rn=Object.getOwnPropertySymbols,gn=Object.prototype.hasOwnProperty,Tn=Object.prototype.propertyIsEnumerable,wo=(E,le,de)=>le in E?Na(E,le,{enumerable:!0,configurable:!0,writable:!0,value:de}):E[le]=de,io=(E,le)=>{for(var de in le||(le={}))gn.call(le,de)&&wo(E,de,le[de]);if(Rn)for(var de of Rn(le))Tn.call(le,de)&&wo(E,de,le[de]);return E},fo=(E,le)=>Tt(E,mn(le)),co=(E,le)=>{var de={};for(var _e in E)gn.call(E,_e)&&le.indexOf(_e)<0&&(de[_e]=E[_e]);if(E!=null&&Rn)for(var _e of Rn(E))le.indexOf(_e)<0&&Tn.call(E,_e)&&(de[_e]=E[_e]);return de},Fo=(0,r.forwardRef)((E,le)=>{var de=E,{size:_e,spin:Vt,style:Bt}=de,ln=co(de,["size","spin","style"]);const Ht=io(io({width:_e||"var(--x-icon-size, 1em)",height:_e||"var(--x-icon-size, 1em)",animation:Vt?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),Bt);return r.createElement("svg",fo(io({ref:le,style:Ht},ln),{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),r.createElement("path",{d:"M7.47119 14.6499C8.1267 15.0031 8.87655 15.2036 9.67334 15.2036C10.4701 15.2036 11.22 15.003 11.8755 14.6499H11.9233V16.0005C11.9231 16.663 11.3857 17.1997 10.7231 17.1997H8.62354C7.96093 17.1997 7.42358 16.663 7.42334 16.0005V14.6499H7.47119ZM9.9126 5.40283C11.9428 5.5059 13.6284 6.91139 14.1528 8.80029H14.7192C14.8617 8.80068 14.9771 8.91649 14.9771 9.05908V10.9341C14.9768 11.0765 14.8616 11.1915 14.7192 11.1919H14.1812C13.671 13.206 11.8461 14.6966 9.67334 14.6968L9.43408 14.6909C7.05655 14.5705 5.14969 12.664 5.02881 10.2866L5.02295 10.0474C5.02295 7.4793 7.10531 5.39708 9.67334 5.39697L9.9126 5.40283ZM9.67334 6.39697C7.65759 6.39708 6.02295 8.03159 6.02295 10.0474C6.02337 12.0628 7.65785 13.6967 9.67334 13.6968C11.6887 13.6966 13.3223 12.0627 13.3228 10.0474C13.3228 8.03165 11.689 6.39718 9.67334 6.39697ZM10.7231 2.80029C11.3859 2.80029 11.9233 3.33774 11.9233 4.00049V5.3501H11.8755C11.22 4.99703 10.47 4.79639 9.67334 4.79639C8.87663 4.7964 8.12666 4.997 7.47119 5.3501H7.42334V4.00049C7.42334 3.33774 7.96078 2.80029 8.62354 2.80029H10.7231Z",fill:"black",fillOpacity:"0.85"}))}),Eo=Object.defineProperty,Oa=Object.defineProperties,Ra=Object.getOwnPropertyDescriptors,tr=Object.getOwnPropertySymbols,Ar=Object.prototype.hasOwnProperty,nr=Object.prototype.propertyIsEnumerable,$a=(E,le,de)=>le in E?Eo(E,le,{enumerable:!0,configurable:!0,writable:!0,value:de}):E[le]=de,Rr=(E,le)=>{for(var de in le||(le={}))Ar.call(le,de)&&$a(E,de,le[de]);if(tr)for(var de of tr(le))nr.call(le,de)&&$a(E,de,le[de]);return E},or=(E,le)=>Oa(E,Ra(le)),Ba=(E,le)=>{var de={};for(var _e in E)Ar.call(E,_e)&&le.indexOf(_e)<0&&(de[_e]=E[_e]);if(E!=null&&tr)for(var _e of tr(E))le.indexOf(_e)<0&&nr.call(E,_e)&&(de[_e]=E[_e]);return de},Za=(0,r.forwardRef)((E,le)=>{var de=E,{size:_e,spin:Vt,style:Bt}=de,ln=Ba(de,["size","spin","style"]);const Ht=Rr(Rr({width:_e||"var(--x-icon-size, 1em)",height:_e||"var(--x-icon-size, 1em)",animation:Vt?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),Bt);return r.createElement("svg",or(Rr({ref:le,style:Ht},ln),{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),r.createElement("path",{d:"M8 10.5C8.82843 10.5 9.5 11.1716 9.5 12V15C9.5 15.8284 8.82843 16.5 8 16.5H5C4.17157 16.5 3.5 15.8284 3.5 15V12C3.5 11.1716 4.17157 10.5 5 10.5H8ZM15 10.5C15.8284 10.5 16.5 11.1716 16.5 12V15C16.5 15.8284 15.8284 16.5 15 16.5H12C11.1716 16.5 10.5 15.8284 10.5 15V12C10.5 11.1716 11.1716 10.5 12 10.5H15ZM5 11.5C4.72386 11.5 4.5 11.7239 4.5 12V15C4.5 15.2761 4.72386 15.5 5 15.5H8C8.27614 15.5 8.5 15.2761 8.5 15V12C8.5 11.7239 8.27614 11.5 8 11.5H5ZM12 11.5C11.7239 11.5 11.5 11.7239 11.5 12V15C11.5 15.2761 11.7239 15.5 12 15.5H15C15.2761 15.5 15.5 15.2761 15.5 15V12C15.5 11.7239 15.2761 11.5 15 11.5H12ZM8 3.5C8.82843 3.5 9.5 4.17157 9.5 5V8C9.5 8.82843 8.82843 9.5 8 9.5H5C4.17157 9.5 3.5 8.82843 3.5 8V5C3.5 4.17157 4.17157 3.5 5 3.5H8ZM13.5 3.5C15.1569 3.5 16.5 4.84315 16.5 6.5C16.5 8.15685 15.1569 9.5 13.5 9.5C11.8431 9.5 10.5 8.15685 10.5 6.5C10.5 4.84315 11.8431 3.5 13.5 3.5ZM5 4.5C4.72386 4.5 4.5 4.72386 4.5 5V8C4.5 8.27614 4.72386 8.5 5 8.5H8C8.27614 8.5 8.5 8.27614 8.5 8V5C8.5 4.72386 8.27614 4.5 8 4.5H5ZM13.5 4.5C12.3954 4.5 11.5 5.39543 11.5 6.5C11.5 7.60457 12.3954 8.5 13.5 8.5C14.6046 8.5 15.5 7.60457 15.5 6.5C15.5 5.39543 14.6046 4.5 13.5 4.5Z",fill:"black",fillOpacity:"0.85"}))}),Nr=Object.defineProperty,ii=Object.defineProperties,Ci=Object.getOwnPropertyDescriptors,Zi=Object.getOwnPropertySymbols,Zr=Object.prototype.hasOwnProperty,Hi=Object.prototype.propertyIsEnumerable,yr=(E,le,de)=>le in E?Nr(E,le,{enumerable:!0,configurable:!0,writable:!0,value:de}):E[le]=de,$r=(E,le)=>{for(var de in le||(le={}))Zr.call(le,de)&&yr(E,de,le[de]);if(Zi)for(var de of Zi(le))Hi.call(le,de)&&yr(E,de,le[de]);return E},os=(E,le)=>ii(E,Ci(le)),pt=(E,le)=>{var de={};for(var _e in E)Zr.call(E,_e)&&le.indexOf(_e)<0&&(de[_e]=E[_e]);if(E!=null&&Zi)for(var _e of Zi(E))le.indexOf(_e)<0&&Hi.call(E,_e)&&(de[_e]=E[_e]);return de},Ue=(0,r.forwardRef)((E,le)=>{var de=E,{size:_e,spin:Vt,style:Bt}=de,ln=pt(de,["size","spin","style"]);const Ht=$r($r({width:_e||"var(--x-icon-size, 1em)",height:_e||"var(--x-icon-size, 1em)",animation:Vt?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),Bt);return r.createElement("svg",os($r({ref:le,style:Ht},ln),{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),r.createElement("path",{d:"M11.0256 16.5H6.02563V15.5H11.0256V16.5ZM14.6467 13.1465C14.842 12.9513 15.1585 12.9513 15.3538 13.1465L17.8293 15.6211L17.8928 15.6992C18.021 15.8932 17.9999 16.1572 17.8293 16.3281C17.6584 16.499 17.3936 16.5209 17.1995 16.3926L17.1213 16.3281L15.0002 14.207L12.8792 16.3281C12.6839 16.5234 12.3674 16.5234 12.1721 16.3281C11.977 16.1329 11.9769 15.8163 12.1721 15.6211L14.6467 13.1465ZM11.0256 12.5H6.02563V11.5H11.0256V12.5ZM12.1721 7.67188C12.3674 7.47666 12.6839 7.47663 12.8792 7.67188L15.0002 9.79297L17.1213 7.67188L17.1995 7.60742C17.3936 7.47912 17.6574 7.50096 17.8284 7.67188C17.9993 7.8428 18.0211 8.1067 17.8928 8.30078L17.8284 8.37891L15.3538 10.8535C15.26 10.9473 15.1328 11 15.0002 11C14.8677 11 14.7405 10.9473 14.6467 10.8535L12.1721 8.37891C11.9769 8.18365 11.9769 7.86714 12.1721 7.67188ZM11.0247 8.5H6.02466V7.5H11.0247V8.5Z",fill:"#8B8C8F"}))}),ke=s(82959),Ve=s(15515),st=s(18356);const ut=E=>E?y()(E.created_at).isBefore(y()("2025-10-01")):!1,Rt={[ke.Iw.MP_App]:(0,W.jsx)(Yt,{size:20}),[ke.Iw.MP_Applet]:(0,W.jsx)(Lt,{className:"mp-applet",size:20}),[ke.Iw.MP_H5]:(0,W.jsx)(Hn,{size:20}),[ke.Iw.PC_WebBack]:(0,W.jsx)(Jt,{size:20}),[ke.Iw.PC_Website]:(0,W.jsx)(eo,{size:20}),[ke.Iw.Pad]:(0,W.jsx)(dr,{size:20}),[ke.Iw.DS_Screen]:(0,W.jsx)(Qt,{size:20}),[ke.Iw.SmartTV]:(0,W.jsx)(Di,{size:20}),[ke.Iw.HMI_IndusHmi]:(0,W.jsx)(Oi,{size:20}),[ke.Iw.HMI_Car]:(0,W.jsx)(Sa,{size:20}),[ke.Iw.Watch]:(0,W.jsx)(Fo,{size:20}),[ke.Iw.Common]:(0,W.jsx)(Za,{size:20})},en=E=>{var le;const{isWatchCommonPlatformType:de,officialFilterList:_e,scrollToItem:Vt,scrollToByOffset:Bt}=E,[ln,Ht]=(0,r.useState)((0,Ve.Yt)(ke.I8,ke.JS.menu,Ve.qW.String)),En=(0,I.d4)(T.f3),po=(0,I.d4)(T.tt),Lo=(0,I.d4)(T.mR),Bo=(0,I.d4)(ne.HW),Zo=(0,I.d4)(T.S2),Yo=(0,I.wA)(),{sceName:Jo}=(0,st.yj)(),ea=(0,I.d4)(ne.PL),qo=(0,r.useMemo)(()=>{const lr=[];for(const[Cr,si]of Object.entries(ke.Iw))lr.push({label:I18N.LeftSidePanel.category[si],value:si,icon:Rt[si]});return lr},[]),Go=(0,r.useMemo)(()=>ut(Bo),[Bo]),$o=(0,r.useCallback)(lr=>{(0,Ve.a0)(ke.I8,lr,Ve.qW.String),Ht(lr)},[]);(0,r.useEffect)(()=>{!Go&&ln===ke.JS.tile&&$o(ke.JS.menu)},[Go,$o,ln]);const ba=(0,r.useCallback)(lr=>{Yo({type:"widget-panel:update:platFormType",payload:{platformType:lr,projectCid:ea==null?void 0:ea.cid}}),Bt(0)},[Yo,ea]),sa=(0,r.useCallback)((lr,Cr)=>{Vt(lr.index,(Cr==null?void 0:Cr.index)||0);const si=Zo.filter(Ui=>Ui!==(Cr==null?void 0:Cr.data));Yo({type:"widget-panel:update:sceCollapsedCategories",payload:{sceCollapsedCategories:si}}),(0,Ve.a0)(Jo+"-collapsed-categories",si,Ve.qW.Array)},[Jo,Vt,Zo,Yo]),va=(0,r.useCallback)((lr,Cr)=>{if(de){const si=(0,ke.HA)()[En]||[],Ui=si==null?void 0:si.length;(lr==null?void 0:lr.index)<Ui?sa({data:ke.ni,index:0},lr):sa({...lr,index:lr.index-Ui+1});return}sa(lr,Cr)},[sa,En]),pr=(0,r.useCallback)(()=>{const lr=Rt[En];return lr||null},[En]);return(0,W.jsxs)(sn,{className:M()("official-filter",ln),children:[(0,W.jsxs)("div",{className:"top",children:[(0,W.jsxs)("div",{className:"left",children:[ln===ke.JS.menu&&(0,W.jsx)(an,{level1:po,level2:Lo,optionList:_e,onChange:va,onChangeMode:Go?()=>$o(ke.JS.tile):void 0}),ln===ke.JS.tile&&(0,W.jsxs)("div",{className:"tile-box",onClick:()=>$o(ke.JS.menu),children:[(0,W.jsx)("span",{children:I18N.BasicWidgetsNav.fold}),(0,W.jsx)(Ue,{size:24})]})]}),(0,W.jsxs)("div",{className:"right",children:[(0,W.jsx)(_t.A,{menuClassName:"official-platform-type-menu",width:140,selectedValue:En,optionList:qo,tooltips:((le=I18N.LeftSidePanel)==null?void 0:le.category[En])||En,shouldOpenOnHover:!1,onChange:ba,renderDisplayName:pr}),(0,W.jsx)(Gn.R,{})]})]}),(0,W.jsx)("div",{className:"bottom",children:ln===ke.JS.tile&&(0,W.jsx)(o,{platformType:En,level1:po,optionList:_e,onChange:va})})]})},Xt=(0,r.memo)(en);var Zn=s(77698),bo=s(11582),Po=s(68434),ha=s(19396),xa=s.n(ha),da=s(67061),Ko=Object.defineProperty,Fa=Object.defineProperties,Pa=Object.getOwnPropertyDescriptors,sr=Object.getOwnPropertySymbols,vr=Object.prototype.hasOwnProperty,Or=Object.prototype.propertyIsEnumerable,Tr=(E,le,de)=>le in E?Ko(E,le,{enumerable:!0,configurable:!0,writable:!0,value:de}):E[le]=de,Kr=(E,le)=>{for(var de in le||(le={}))vr.call(le,de)&&Tr(E,de,le[de]);if(sr)for(var de of sr(le))Or.call(le,de)&&Tr(E,de,le[de]);return E},Ha=(E,le)=>Fa(E,Pa(le)),Br=(E,le)=>{var de={};for(var _e in E)vr.call(E,_e)&&le.indexOf(_e)<0&&(de[_e]=E[_e]);if(E!=null&&sr)for(var _e of sr(E))le.indexOf(_e)<0&&Or.call(E,_e)&&(de[_e]=E[_e]);return de},xi=(0,r.forwardRef)((E,le)=>{var de=E,{size:_e,spin:Vt,style:Bt}=de,ln=Br(de,["size","spin","style"]);const Ht=Kr(Kr({width:_e||"var(--x-icon-size, 1em)",height:_e||"var(--x-icon-size, 1em)",animation:Vt?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),Bt);return r.createElement("svg",Ha(Kr({ref:le,style:Ht},ln),{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),r.createElement("path",{d:"M8 9.27368L10.8286 6.44507C11.089 6.18481 11.511 6.18481 11.7714 6.44507C12.0316 6.70532 12.0316 7.12768 11.7714 7.38794L8.70715 10.4519C8.31653 10.8425 7.68335 10.8425 7.29285 10.4519L4.22864 7.38794C3.96838 7.12768 3.96838 6.70532 4.22864 6.44507C4.48901 6.18481 4.91101 6.18481 5.17126 6.44507L8 9.27368Z",fill:"#555557"}))});const Fr=(E,le)=>E.reduce((de,_e,Vt)=>(Vt%le===0&&de.push([]),de[de.length-1].push(_e),de),[]),Ii=(0,r.memo)(E=>{let{className:le,list:de,size:_e=6,renderItem:Vt,onGetNextScrollLeft:Bt}=E;const ln=(0,r.useRef)(null),[Ht,En]=(0,r.useState)(null),[po,Lo]=(0,r.useState)(),Bo=(0,r.useMemo)(()=>Fr(de,_e),[de,_e]);(0,r.useEffect)(()=>{var Jo;En(ln.current),Lo((Jo=ln.current)==null?void 0:Jo.getBoundingClientRect())},[]);const Zo=Jo=>{if(Bt)return Bt(Ht,Jo);if(!Ht)return 0;const ea=Ht.scrollLeft,qo=Jo==="right"?2:-2;return Math.floor(Math.ceil(ea)/117+qo)*117},Yo=xa()(Jo=>{if(!Ht)return null;Lo(Ht.getBoundingClientRect())},100,{trailing:!1});return(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)("ul",{onScroll:Yo,ref:ln,className:le,children:Bo.map((Jo,ea)=>(0,W.jsx)("li",{children:Jo.map((qo,Go)=>Vt({item:qo,index:ea+"-"+Go},po))},ea))}),Ht&&Bo.length>=2&&(0,W.jsx)(da.j,{scrollContainerEl:Ht,getNextScrollLeft:Zo,leftIcon:(0,W.jsx)(xi,{size:16}),rightIcon:(0,W.jsx)(xi,{size:16})})]})});var Ks=s(79743),Ul=s(47695),ts=s(53940),rn=s(32879);const Ft=(E,le)=>{const de=(0,I.d4)(T.S2);(0,r.useEffect)(()=>{const Vt=(0,Ve.Yt)(E+"-collapsed-categories",[],Ve.qW.Array);le({type:"widget-panel:update:sceCollapsedCategories",payload:{sceCollapsedCategories:Vt}})},[]),(0,r.useEffect)(()=>{Array.isArray(de)&&(0,Ve.a0)(E+"-collapsed-categories",de,Ve.qW.Array)},[E,de]);const _e=(0,r.useCallback)(Vt=>{le({type:"widget-panel:update:sceCollapsedCategories",payload:{sceCollapsedCategories:Vt}})},[le]);return[de,_e]},no=E=>{const{categoryToWidgetInsertableMap:le,onSetItemRef:de,onChangeCurWidgetInsertable:_e}=E,Vt=(0,I.d4)(te.MZ),Bt=(0,I.d4)(ne.L8),ln=(0,I.wA)(),{sceName:Ht}=(0,st.yj)(),[En,po]=Ft(Ht,ln),{basic:Lo,flow:Bo}=(0,ke.YN)(),Zo=(0,r.useCallback)(qo=>{En.includes(qo)?po(En.filter(Go=>Go!==qo)):po(En.concat([qo]))},[En,po]),Yo=(0,Ul.XM)();(0,r.useEffect)(()=>{var qo,Go;Vt==="recommend"&&!Yo&&!((qo=MB.commonGuideHelper)!=null&&qo.checkGuideHasShown(nn.c.GUIDE_NOVICE_V9_2408))&&!((Go=MB.commonGuideHelper)!=null&&Go.checkGuideHasShown(nn.c.GUIDE_NOVICE_V9_2408_STEP_1))&&po(En.filter($o=>$o!==Lo&&$o!==Bo))},[]);const Jo=(0,r.useCallback)(qo=>{let{item:Go}=qo;return(0,W.jsx)(Po.A,{widgetInsertableData:Go,className:M()({active:Bt===Go.data})},Go.key)},[Bt]),ea=(qo,Go)=>{if(!qo||!(Go!=null&&Go.length))return 0;const $o=qo.scrollLeft,ba=Go==="right"?3:-3;return Math.floor(Math.ceil($o)/78+ba)*78};return(0,W.jsxs)(rn.cF,{ref:de(0),children:[(0,W.jsx)("span",{className:"title hide","data-key":ke.ni,children:ke.ni}),Array.from(le.entries()).map(qo=>{let[Go,$o]=qo;return Go===Bo?(0,W.jsx)(Ks.A,{className:"flow-collapse-panel second-collapse-panel "+nn.c.GUIDE_NOVICE_V9_2408_STEP_1,dataCid:Go,title:Go,canCollapse:!1,onClickResources:()=>_e({title:Go,list:$o}),children:(0,W.jsx)("div",{className:"widget-insertable-list",style:{width:ts.qv},children:(0,W.jsx)(Ii,{list:$o,className:"widget-flow-list",size:18,renderItem:Jo,onGetNextScrollLeft:ea})})},Go):(0,W.jsx)(bo.A,{className:"second-collapse-panel",id:Go,"data-category":Go,title:Go,width:ts.qv,expanded:!En.includes(Go),onToggle:Zo,children:(0,W.jsx)("div",{className:"widget-insertable-list",style:{width:ts.qv},children:$o.map(sa=>(0,W.jsx)(Po.A,{widgetInsertableData:sa,className:M()({active:Bt===sa.data})},sa.key))})},Go)})]})};var wa=s(31174),za=Object.defineProperty,hr=Object.defineProperties,ar=Object.getOwnPropertyDescriptors,mi=Object.getOwnPropertySymbols,Vi=Object.prototype.hasOwnProperty,bs=Object.prototype.propertyIsEnumerable,Os=(E,le,de)=>le in E?za(E,le,{enumerable:!0,configurable:!0,writable:!0,value:de}):E[le]=de,ml=(E,le)=>{for(var de in le||(le={}))Vi.call(le,de)&&Os(E,de,le[de]);if(mi)for(var de of mi(le))bs.call(le,de)&&Os(E,de,le[de]);return E},Ki=(E,le)=>hr(E,ar(le)),Bs=(E,le)=>{var de={};for(var _e in E)Vi.call(E,_e)&&le.indexOf(_e)<0&&(de[_e]=E[_e]);if(E!=null&&mi)for(var _e of mi(E))le.indexOf(_e)<0&&bs.call(E,_e)&&(de[_e]=E[_e]);return de},qc=(0,r.forwardRef)((E,le)=>{var de=E,{size:_e,spin:Vt,style:Bt}=de,ln=Bs(de,["size","spin","style"]);const Ht=ml(ml({width:_e||"var(--x-icon-size, 1em)",height:_e||"var(--x-icon-size, 1em)",animation:Vt?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),Bt);return r.createElement("svg",Ki(ml({ref:le,style:Ht},ln),{width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),r.createElement("g",{filter:"url(#filter0_i_915_70)"},r.createElement("path",{d:"M11 14.2C11 13.0799 11 12.5198 11.218 12.092C11.4097 11.7157 11.7157 11.4097 12.092 11.218C12.5198 11 13.0799 11 14.2 11H15.9C17.0201 11 17.5802 11 18.008 11.218C18.3843 11.4097 18.6903 11.7157 18.882 12.092C19.1 12.5198 19.1 13.0799 19.1 14.2V19.1H14.2C13.0799 19.1 12.5198 19.1 12.092 18.882C11.7157 18.6903 11.4097 18.3843 11.218 18.008C11 17.5802 11 17.0201 11 15.9V14.2Z",fill:"#A069FF"})),r.createElement("g",{filter:"url(#filter1_i_915_70)"},r.createElement("path",{d:"M29 14.2C29 13.0799 29 12.5198 28.782 12.092C28.5903 11.7157 28.2843 11.4097 27.908 11.218C27.4802 11 26.9201 11 25.8 11H24.1C22.9799 11 22.4198 11 21.992 11.218C21.6157 11.4097 21.3097 11.7157 21.118 12.092C20.9 12.5198 20.9 13.0799 20.9 14.2V19.1H25.8C26.9201 19.1 27.4802 19.1 27.908 18.882C28.2843 18.6903 28.5903 18.3843 28.782 18.008C29 17.5802 29 17.0201 29 15.9V14.2Z",fill:"#A069FF"})),r.createElement("g",{filter:"url(#filter2_i_915_70)"},r.createElement("path",{d:"M11 25.8C11 26.9201 11 27.4802 11.218 27.908C11.4097 28.2843 11.7157 28.5903 12.092 28.782C12.5198 29 13.0799 29 14.2 29H15.9C17.0201 29 17.5802 29 18.008 28.782C18.3843 28.5903 18.6903 28.2843 18.882 27.908C19.1 27.4802 19.1 26.9201 19.1 25.8V20.9H14.2C13.0799 20.9 12.5198 20.9 12.092 21.118C11.7157 21.3097 11.4097 21.6157 11.218 21.992C11 22.4198 11 22.9799 11 24.1V25.8Z",fill:"#A069FF"})),r.createElement("g",{filter:"url(#filter3_i_915_70)"},r.createElement("path",{d:"M29 27.2C29 28.1941 28.1941 29 27.2 29H22.7C21.7059 29 20.9 28.1941 20.9 27.2V20.9H27.2C28.1941 20.9 29 21.7059 29 22.7V27.2Z",fill:"#D5BCFF"})),r.createElement("defs",null,r.createElement("filter",{id:"filter0_i_915_70",x:"11",y:"11",width:"8.6001",height:"8.6001",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},r.createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),r.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),r.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),r.createElement("feOffset",{dx:"0.5",dy:"0.5"}),r.createElement("feGaussianBlur",{stdDeviation:"0.5"}),r.createElement("feComposite",{in2:"hardAlpha",operator:"arithmetic",k2:"-1",k3:"1"}),r.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.73976 0 0 0 0 0.583171 0 0 0 0 1 0 0 0 1 0"}),r.createElement("feBlend",{mode:"normal",in2:"shape",result:"effect1_innerShadow_915_70"})),r.createElement("filter",{id:"filter1_i_915_70",x:"20.8999",y:"11",width:"8.6001",height:"8.6001",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},r.createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),r.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),r.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),r.createElement("feOffset",{dx:"0.5",dy:"0.5"}),r.createElement("feGaussianBlur",{stdDeviation:"0.5"}),r.createElement("feComposite",{in2:"hardAlpha",operator:"arithmetic",k2:"-1",k3:"1"}),r.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.73976 0 0 0 0 0.583171 0 0 0 0 1 0 0 0 1 0"}),r.createElement("feBlend",{mode:"normal",in2:"shape",result:"effect1_innerShadow_915_70"})),r.createElement("filter",{id:"filter2_i_915_70",x:"11",y:"20.8999",width:"8.6001",height:"8.6001",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},r.createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),r.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),r.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),r.createElement("feOffset",{dx:"0.5",dy:"0.5"}),r.createElement("feGaussianBlur",{stdDeviation:"0.5"}),r.createElement("feComposite",{in2:"hardAlpha",operator:"arithmetic",k2:"-1",k3:"1"}),r.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.73976 0 0 0 0 0.583171 0 0 0 0 1 0 0 0 1 0"}),r.createElement("feBlend",{mode:"normal",in2:"shape",result:"effect1_innerShadow_915_70"})),r.createElement("filter",{id:"filter3_i_915_70",x:"20.3999",y:"20.3999",width:"8.6001",height:"8.6001",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},r.createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),r.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),r.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),r.createElement("feOffset",{dx:"-0.5",dy:"-0.5"}),r.createElement("feGaussianBlur",{stdDeviation:"0.5"}),r.createElement("feComposite",{in2:"hardAlpha",operator:"arithmetic",k2:"-1",k3:"1"}),r.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.775373 0 0 0 0 0.65 0 0 0 0 1 0 0 0 1 0"}),r.createElement("feBlend",{mode:"normal",in2:"shape",result:"effect1_innerShadow_915_70"}))))}),Sc=Object.defineProperty,ei=Object.defineProperties,as=Object.getOwnPropertyDescriptors,As=Object.getOwnPropertySymbols,$s=Object.prototype.hasOwnProperty,Ys=Object.prototype.propertyIsEnumerable,rc=(E,le,de)=>le in E?Sc(E,le,{enumerable:!0,configurable:!0,writable:!0,value:de}):E[le]=de,Ql=(E,le)=>{for(var de in le||(le={}))$s.call(le,de)&&rc(E,de,le[de]);if(As)for(var de of As(le))Ys.call(le,de)&&rc(E,de,le[de]);return E},Id=(E,le)=>ei(E,as(le)),_d=(E,le)=>{var de={};for(var _e in E)$s.call(E,_e)&&le.indexOf(_e)<0&&(de[_e]=E[_e]);if(E!=null&&As)for(var _e of As(E))le.indexOf(_e)<0&&Ys.call(E,_e)&&(de[_e]=E[_e]);return de},vp=(0,r.forwardRef)((E,le)=>{var de=E,{size:_e,spin:Vt,style:Bt}=de,ln=_d(de,["size","spin","style"]);const Ht=Ql(Ql({width:_e||"var(--x-icon-size, 1em)",height:_e||"var(--x-icon-size, 1em)",animation:Vt?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),Bt);return r.createElement("svg",Id(Ql({ref:le,style:Ht},ln),{width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),r.createElement("path",{d:"M12.0789 12.2222C11.1069 12.2222 10.3188 13.0102 10.3188 13.9823V28.2398C10.3188 29.2118 11.1069 29.9999 12.0789 29.9999H27.8179C28.79 29.9999 29.578 29.2118 29.578 28.2398V13.9823C29.578 13.0102 28.79 12.2222 27.8179 12.2222H12.0789Z",fill:"url(#paint0_linear_915_77)"}),r.createElement("g",{filter:"url(#filter0_ddd_915_77)"},r.createElement("rect",{width:"7.17121",height:"7.17125",rx:"1.40741",transform:"matrix(0.877882 0.478877 -0.478875 0.877883 23.3855 10)",fill:"#99C8FF"})),r.createElement("g",{filter:"url(#filter1_ddd_915_77)"},r.createElement("path",{d:"M14.5886 11.5075L11.3831 16.6364C10.9205 17.3764 11.4526 18.3363 12.3253 18.3363H18.7363C19.609 18.3363 20.141 17.3764 19.6785 16.6364L16.473 11.5075C16.0378 10.8113 15.0237 10.8113 14.5886 11.5075Z",fill:"#CCE3FF"})),r.createElement("g",{filter:"url(#filter2_ddd_915_77)"},r.createElement("circle",{cx:"19.9508",cy:"18.8888",r:"4.44443",fill:"white"})),r.createElement("foreignObject",{x:"8.11872",y:"15.9483",width:"23.6595",height:"16.2518"},r.createElement("div",{xmlns:"http://www.w3.org/1999/xhtml",style:{backdropFilter:"blur(1.1px)",clipPath:"url(#bgblur_0_915_77_clip_path)",height:"100%",width:"100%"}})),r.createElement("path",{dataFigmaBgBlurRadius:"2.20013",d:"M12.0789 18.1486C11.1069 18.1484 10.3188 18.9365 10.3188 19.9085V28.2401C10.3188 29.2122 11.1069 30.0002 12.0789 30.0002H27.8179C28.79 30.0002 29.578 29.2122 29.578 28.2401V19.9106C29.578 18.9379 28.7891 18.1497 27.8164 18.1502C22.5706 18.1532 17.3248 18.1494 12.0789 18.1486Z",fill:"url(#paint1_linear_915_77)"}),r.createElement("rect",{x:"16.988",y:"22.5928",width:"5.9259",height:"2.96295",rx:"0.740738",fill:"#E1ECFA"}),r.createElement("defs",null,r.createElement("filter",{id:"filter0_ddd_915_77",x:"14.8235",y:"6.27973",width:"19.9853",height:"19.9853",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},r.createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),r.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),r.createElement("feOffset",null),r.createElement("feGaussianBlur",{stdDeviation:"0.351852"}),r.createElement("feComposite",{in2:"hardAlpha",operator:"out"}),r.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.0980392 0 0 0 0 0.0980392 0 0 0 0 0.101961 0 0 0 0.24 0"}),r.createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_915_77"}),r.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),r.createElement("feOffset",{dy:"0.703703"}),r.createElement("feGaussianBlur",{stdDeviation:"0.703703"}),r.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.0980392 0 0 0 0 0.0980392 0 0 0 0 0.101961 0 0 0 0.12 0"}),r.createElement("feBlend",{mode:"normal",in2:"effect1_dropShadow_915_77",result:"effect2_dropShadow_915_77"}),r.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),r.createElement("feOffset",{dy:"1.40741"}),r.createElement("feGaussianBlur",{stdDeviation:"2.81481"}),r.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.0980392 0 0 0 0 0.0980392 0 0 0 0 0.101961 0 0 0 0.08 0"}),r.createElement("feBlend",{mode:"normal",in2:"effect2_dropShadow_915_77",result:"effect3_dropShadow_915_77"}),r.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect3_dropShadow_915_77",result:"shape"})),r.createElement("filter",{id:"filter1_ddd_915_77",x:"5.58278",y:"6.76313",width:"19.896",height:"18.6103",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},r.createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),r.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),r.createElement("feOffset",null),r.createElement("feGaussianBlur",{stdDeviation:"0.351852"}),r.createElement("feComposite",{in2:"hardAlpha",operator:"out"}),r.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.0980392 0 0 0 0 0.0980392 0 0 0 0 0.101961 0 0 0 0.24 0"}),r.createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_915_77"}),r.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),r.createElement("feOffset",{dy:"0.703703"}),r.createElement("feGaussianBlur",{stdDeviation:"0.703703"}),r.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.0980392 0 0 0 0 0.0980392 0 0 0 0 0.101961 0 0 0 0.12 0"}),r.createElement("feBlend",{mode:"normal",in2:"effect1_dropShadow_915_77",result:"effect2_dropShadow_915_77"}),r.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),r.createElement("feOffset",{dy:"1.40741"}),r.createElement("feGaussianBlur",{stdDeviation:"2.81481"}),r.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.0980392 0 0 0 0 0.0980392 0 0 0 0 0.101961 0 0 0 0.08 0"}),r.createElement("feBlend",{mode:"normal",in2:"effect2_dropShadow_915_77",result:"effect3_dropShadow_915_77"}),r.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect3_dropShadow_915_77",result:"shape"})),r.createElement("filter",{id:"filter2_ddd_915_77",x:"9.87672",y:"10.2221",width:"20.1482",height:"20.1479",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},r.createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),r.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),r.createElement("feOffset",null),r.createElement("feGaussianBlur",{stdDeviation:"0.351852"}),r.createElement("feComposite",{in2:"hardAlpha",operator:"out"}),r.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.0980392 0 0 0 0 0.0980392 0 0 0 0 0.101961 0 0 0 0.24 0"}),r.createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_915_77"}),r.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),r.createElement("feOffset",{dy:"0.703703"}),r.createElement("feGaussianBlur",{stdDeviation:"0.703703"}),r.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.0980392 0 0 0 0 0.0980392 0 0 0 0 0.101961 0 0 0 0.12 0"}),r.createElement("feBlend",{mode:"normal",in2:"effect1_dropShadow_915_77",result:"effect2_dropShadow_915_77"}),r.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),r.createElement("feOffset",{dy:"1.40741"}),r.createElement("feGaussianBlur",{stdDeviation:"2.81481"}),r.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.0980392 0 0 0 0 0.0980392 0 0 0 0 0.101961 0 0 0 0.08 0"}),r.createElement("feBlend",{mode:"normal",in2:"effect2_dropShadow_915_77",result:"effect3_dropShadow_915_77"}),r.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect3_dropShadow_915_77",result:"shape"})),r.createElement("clipPath",{id:"bgblur_0_915_77_clip_path",transform:"translate(-8.11872 -15.9483)"},r.createElement("path",{d:"M12.0789 18.1486C11.1069 18.1484 10.3188 18.9365 10.3188 19.9085V28.2401C10.3188 29.2122 11.1069 30.0002 12.0789 30.0002H27.8179C28.79 30.0002 29.578 29.2122 29.578 28.2401V19.9106C29.578 18.9379 28.7891 18.1497 27.8164 18.1502C22.5706 18.1532 17.3248 18.1494 12.0789 18.1486Z"})),r.createElement("linearGradient",{id:"paint0_linear_915_77",x1:"19.467",y1:"12.2222",x2:"19.467",y2:"29.506",gradientUnits:"userSpaceOnUse"},r.createElement("stop",{offset:"0.175273",stopColor:"#479CFF"}),r.createElement("stop",{offset:"1",stopColor:"#215BCC"})),r.createElement("linearGradient",{id:"paint1_linear_915_77",x1:"19.9484",y1:"18.1484",x2:"19.9484",y2:"31.6934",gradientUnits:"userSpaceOnUse"},r.createElement("stop",{offset:"0.015922",stopColor:"#76D6FF",stopOpacity:"0.75"}),r.createElement("stop",{offset:"0.615584",stopColor:"#57B7F8"}),r.createElement("stop",{offset:"0.834691",stopColor:"#44A3F4"}),r.createElement("stop",{offset:"1",stopColor:"#3191F0"}))))}),U1=Object.defineProperty,g0=Object.defineProperties,bp=Object.getOwnPropertyDescriptors,y0=Object.getOwnPropertySymbols,R0=Object.prototype.hasOwnProperty,Eu=Object.prototype.propertyIsEnumerable,r1=(E,le,de)=>le in E?U1(E,le,{enumerable:!0,configurable:!0,writable:!0,value:de}):E[le]=de,O1=(E,le)=>{for(var de in le||(le={}))R0.call(le,de)&&r1(E,de,le[de]);if(y0)for(var de of y0(le))Eu.call(le,de)&&r1(E,de,le[de]);return E},Iu=(E,le)=>g0(E,bp(le)),i1=(E,le)=>{var de={};for(var _e in E)R0.call(E,_e)&&le.indexOf(_e)<0&&(de[_e]=E[_e]);if(E!=null&&y0)for(var _e of y0(E))le.indexOf(_e)<0&&Eu.call(E,_e)&&(de[_e]=E[_e]);return de},wp=(0,r.forwardRef)((E,le)=>{var de=E,{size:_e,spin:Vt,style:Bt}=de,ln=i1(de,["size","spin","style"]);const Ht=O1(O1({width:_e||"var(--x-icon-size, 1em)",height:_e||"var(--x-icon-size, 1em)",animation:Vt?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),Bt);return r.createElement("svg",Iu(O1({ref:le,style:Ht},ln),{width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),r.createElement("circle",{cx:"19.9994",cy:"20.0004",r:"9.99986",fill:"url(#paint0_linear_915_86)"}),r.createElement("g",{filter:"url(#filter0_iii_915_86)"},r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.268 14.8061C10.0919 13.8072 10.8691 12.3862 12.0987 12.1694C13.3283 11.9526 14.4679 12.5867 14.644 13.5857C14.4679 12.5867 15.3219 11.6011 16.5515 11.3843C17.781 11.1675 18.9974 12.2369 19.1735 13.2359C19.581 15.5465 17.9311 16.5842 15.6981 18.5679C15.6054 18.6503 15.4729 18.6736 15.3575 18.6279C12.5808 17.5276 10.6755 17.1168 10.268 14.8061Z",fill:"url(#paint1_linear_915_86)"}),r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.268 14.8061C10.0919 13.8072 10.8691 12.3862 12.0987 12.1694C13.3283 11.9526 14.4679 12.5867 14.644 13.5857C14.4679 12.5867 15.3219 11.6011 16.5515 11.3843C17.781 11.1675 18.9974 12.2369 19.1735 13.2359C19.581 15.5465 17.9311 16.5842 15.6981 18.5679C15.6054 18.6503 15.4729 18.6736 15.3575 18.6279C12.5808 17.5276 10.6755 17.1168 10.268 14.8061Z",fill:"url(#paint2_radial_915_86)",fillOpacity:"0.5"}),r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.268 14.8061C10.0919 13.8072 10.8691 12.3862 12.0987 12.1694C13.3283 11.9526 14.4679 12.5867 14.644 13.5857C14.4679 12.5867 15.3219 11.6011 16.5515 11.3843C17.781 11.1675 18.9974 12.2369 19.1735 13.2359C19.581 15.5465 17.9311 16.5842 15.6981 18.5679C15.6054 18.6503 15.4729 18.6736 15.3575 18.6279C12.5808 17.5276 10.6755 17.1168 10.268 14.8061Z",fill:"url(#paint3_radial_915_86)",fillOpacity:"0.5"})),r.createElement("g",{filter:"url(#filter1_iii_915_86)"},r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M29.729 14.8061C29.9052 13.8072 29.1279 12.3862 27.8984 12.1694C26.6688 11.9526 25.5292 12.5867 25.353 13.5857C25.5292 12.5867 24.6752 11.6011 23.4456 11.3843C22.216 11.1675 20.9997 12.2369 20.8235 13.2359C20.4161 15.5465 22.066 16.5842 24.2989 18.5679C24.3917 18.6503 24.5242 18.6736 24.6396 18.6279C27.4163 17.5276 29.3216 17.1168 29.729 14.8061Z",fill:"url(#paint4_linear_915_86)"}),r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M29.729 14.8061C29.9052 13.8072 29.1279 12.3862 27.8984 12.1694C26.6688 11.9526 25.5292 12.5867 25.353 13.5857C25.5292 12.5867 24.6752 11.6011 23.4456 11.3843C22.216 11.1675 20.9997 12.2369 20.8235 13.2359C20.4161 15.5465 22.066 16.5842 24.2989 18.5679C24.3917 18.6503 24.5242 18.6736 24.6396 18.6279C27.4163 17.5276 29.3216 17.1168 29.729 14.8061Z",fill:"url(#paint5_radial_915_86)",fillOpacity:"0.5"}),r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M29.729 14.8061C29.9052 13.8072 29.1279 12.3862 27.8984 12.1694C26.6688 11.9526 25.5292 12.5867 25.353 13.5857C25.5292 12.5867 24.6752 11.6011 23.4456 11.3843C22.216 11.1675 20.9997 12.2369 20.8235 13.2359C20.4161 15.5465 22.066 16.5842 24.2989 18.5679C24.3917 18.6503 24.5242 18.6736 24.6396 18.6279C27.4163 17.5276 29.3216 17.1168 29.729 14.8061Z",fill:"url(#paint6_radial_915_86)",fillOpacity:"0.5"})),r.createElement("g",{filter:"url(#filter2_d_915_86)"},r.createElement("path",{d:"M19.9971 19.2407C21.9509 19.2407 23.797 19.4605 25.4333 19.8498C25.7598 19.9275 26.0019 20.2089 26.002 20.5444C26.002 23.8817 23.3145 26.5873 19.999 26.5874C16.6835 26.5874 13.9951 23.8818 13.9951 20.5444C13.9951 20.2089 14.2363 19.9275 14.5627 19.8499C16.1986 19.4607 18.044 19.2407 19.9971 19.2407Z",fill:"url(#paint7_radial_915_86)"})),r.createElement("mask",{id:"mask0_915_86",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"13",y:"19",width:"14",height:"8"},r.createElement("path",{d:"M19.9963 19.2407C21.9498 19.2407 23.7956 19.4604 25.4316 19.8496C25.7587 19.9274 26.0012 20.2093 26.0012 20.5454C26.001 23.8825 23.3136 26.5873 19.9983 26.5874C16.6829 26.5874 13.9946 23.8826 13.9944 20.5454C13.9944 20.2093 14.236 19.9274 14.563 19.8496C16.1986 19.4606 18.0436 19.2407 19.9963 19.2407Z",fill:"url(#paint8_radial_915_86)"})),r.createElement("g",{mask:"url(#mask0_915_86)"},r.createElement("path",{d:"M15.0935 16.834C15.0935 16.2229 15.5889 15.7275 16.2 15.7275H23.7961C24.4072 15.7275 24.9026 16.2229 24.9026 16.834V19.6151C24.9026 20.2262 24.4072 20.7216 23.7961 20.7216H16.2C15.5889 20.7216 15.0935 20.2262 15.0935 19.6151V16.834Z",fill:"url(#paint9_linear_915_86)"}),r.createElement("ellipse",{cx:"19.9995",cy:"29.0369",rx:"5.24246",ry:"5.0808",fill:"url(#paint10_linear_915_86)"}),r.createElement("ellipse",{cx:"19.9995",cy:"29.0369",rx:"5.24246",ry:"5.0808",fill:"url(#paint11_radial_915_86)"})),r.createElement("g",{filter:"url(#filter3_iii_915_86)"},r.createElement("circle",{cx:"20.0004",cy:"19.9999",r:"9.99986",fill:"url(#paint12_linear_915_86)"})),r.createElement("g",{style:{mixBlendMode:"multiply"},filter:"url(#filter4_f_915_86)"},r.createElement("circle",{cx:"13.3513",cy:"17.9143",r:"3.35078",fill:"url(#paint13_radial_915_86)"})),r.createElement("g",{style:{mixBlendMode:"multiply"},filter:"url(#filter5_f_915_86)"},r.createElement("circle",{cx:"26.6499",cy:"17.9143",r:"3.35078",fill:"url(#paint14_radial_915_86)"})),r.createElement("g",{filter:"url(#filter6_iii_915_86)"},r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.2688 14.8057C10.0926 13.8067 10.8699 12.3857 12.0994 12.1689C13.329 11.9521 14.4686 12.5862 14.6448 13.5852C14.4686 12.5862 15.3226 11.6006 16.5522 11.3838C17.7818 11.167 18.9981 12.2364 19.1743 13.2354C19.5817 15.5461 17.9318 16.5837 15.6989 18.5674C15.6061 18.6498 15.4736 18.6731 15.3582 18.6274C12.5815 17.5271 10.6762 17.1163 10.2688 14.8057Z",fill:"url(#paint15_linear_915_86)"}),r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.2688 14.8057C10.0926 13.8067 10.8699 12.3857 12.0994 12.1689C13.329 11.9521 14.4686 12.5862 14.6448 13.5852C14.4686 12.5862 15.3226 11.6006 16.5522 11.3838C17.7818 11.167 18.9981 12.2364 19.1743 13.2354C19.5817 15.5461 17.9318 16.5837 15.6989 18.5674C15.6061 18.6498 15.4736 18.6731 15.3582 18.6274C12.5815 17.5271 10.6762 17.1163 10.2688 14.8057Z",fill:"url(#paint16_radial_915_86)",fillOpacity:"0.5"}),r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.2688 14.8057C10.0926 13.8067 10.8699 12.3857 12.0994 12.1689C13.329 11.9521 14.4686 12.5862 14.6448 13.5852C14.4686 12.5862 15.3226 11.6006 16.5522 11.3838C17.7818 11.167 18.9981 12.2364 19.1743 13.2354C19.5817 15.5461 17.9318 16.5837 15.6989 18.5674C15.6061 18.6498 15.4736 18.6731 15.3582 18.6274C12.5815 17.5271 10.6762 17.1163 10.2688 14.8057Z",fill:"url(#paint17_radial_915_86)",fillOpacity:"0.5"})),r.createElement("g",{filter:"url(#filter7_iii_915_86)"},r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M29.732 14.8057C29.9081 13.8067 29.1309 12.3857 27.9013 12.1689C26.6717 11.9521 25.5321 12.5862 25.356 13.5852C25.5321 12.5862 24.6781 11.6006 23.4485 11.3838C22.219 11.167 21.0026 12.2364 20.8265 13.2354C20.419 15.5461 22.0689 16.5837 24.3019 18.5674C24.3946 18.6498 24.5271 18.6731 24.6425 18.6274C27.4192 17.5271 29.3245 17.1163 29.732 14.8057Z",fill:"url(#paint18_linear_915_86)"}),r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M29.732 14.8057C29.9081 13.8067 29.1309 12.3857 27.9013 12.1689C26.6717 11.9521 25.5321 12.5862 25.356 13.5852C25.5321 12.5862 24.6781 11.6006 23.4485 11.3838C22.219 11.167 21.0026 12.2364 20.8265 13.2354C20.419 15.5461 22.0689 16.5837 24.3019 18.5674C24.3946 18.6498 24.5271 18.6731 24.6425 18.6274C27.4192 17.5271 29.3245 17.1163 29.732 14.8057Z",fill:"url(#paint19_radial_915_86)",fillOpacity:"0.5"}),r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M29.732 14.8057C29.9081 13.8067 29.1309 12.3857 27.9013 12.1689C26.6717 11.9521 25.5321 12.5862 25.356 13.5852C25.5321 12.5862 24.6781 11.6006 23.4485 11.3838C22.219 11.167 21.0026 12.2364 20.8265 13.2354C20.419 15.5461 22.0689 16.5837 24.3019 18.5674C24.3946 18.6498 24.5271 18.6731 24.6425 18.6274C27.4192 17.5271 29.3245 17.1163 29.732 14.8057Z",fill:"url(#paint20_radial_915_86)",fillOpacity:"0.5"})),r.createElement("g",{filter:"url(#filter8_d_915_86)"},r.createElement("path",{d:"M19.998 19.2402C21.9519 19.2402 23.798 19.46 25.4343 19.8493C25.7608 19.927 26.0029 20.2084 26.0029 20.5439C26.0029 23.8813 23.3154 26.5868 20 26.5869C16.6844 26.5869 13.9961 23.8813 13.9961 20.5439C13.9961 20.2084 14.2373 19.927 14.5637 19.8494C16.1996 19.4602 18.0449 19.2402 19.998 19.2402Z",fill:"url(#paint21_radial_915_86)"})),r.createElement("mask",{id:"mask1_915_86",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"13",y:"19",width:"14",height:"8"},r.createElement("path",{d:"M19.9973 19.2402C21.9511 19.2402 23.7972 19.46 25.4336 19.8493C25.76 19.927 26.0022 20.2084 26.0022 20.5439C26.0022 23.8813 23.3147 26.5868 19.9993 26.5869C16.6837 26.5869 13.9954 23.8813 13.9954 20.5439C13.9954 20.2084 14.2366 19.927 14.563 19.8494C16.1988 19.4602 18.0442 19.2402 19.9973 19.2402Z",fill:"url(#paint22_radial_915_86)"})),r.createElement("g",{mask:"url(#mask1_915_86)"},r.createElement("path",{d:"M15.0945 16.8335C15.0945 16.2224 15.5899 15.7271 16.201 15.7271H23.7971C24.4082 15.7271 24.9036 16.2224 24.9036 16.8335V19.6146C24.9036 20.2257 24.4082 20.7211 23.7971 20.7211H16.201C15.5899 20.7211 15.0945 20.2257 15.0945 19.6146V16.8335Z",fill:"url(#paint23_linear_915_86)"}),r.createElement("ellipse",{cx:"20.0005",cy:"29.0364",rx:"5.24246",ry:"5.0808",fill:"url(#paint24_linear_915_86)"}),r.createElement("ellipse",{cx:"20.0005",cy:"29.0364",rx:"5.24246",ry:"5.0808",fill:"url(#paint25_radial_915_86)"})),r.createElement("defs",null,r.createElement("filter",{id:"filter0_iii_915_86",x:"9.72223",y:"10.5746",width:"10.0343",height:"8.33679",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},r.createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),r.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),r.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),r.createElement("feOffset",{dx:"0.130233",dy:"0.130233"}),r.createElement("feGaussianBlur",{stdDeviation:"0.260467"}),r.createElement("feComposite",{in2:"hardAlpha",operator:"arithmetic",k2:"-1",k3:"1"}),r.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 1 0 0 0 0 0.725 0 0 0 0 0.923 0 0 0 0.7 0"}),r.createElement("feBlend",{mode:"normal",in2:"shape",result:"effect1_innerShadow_915_86"}),r.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),r.createElement("feOffset",{dx:"-0.520933",dy:"-0.7814"}),r.createElement("feGaussianBlur",{stdDeviation:"0.911633"}),r.createElement("feComposite",{in2:"hardAlpha",operator:"arithmetic",k2:"-1",k3:"1"}),r.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.870833 0 0 0 0 0 0 0 0 0 0.0486801 0 0 0 0.54 0"}),r.createElement("feBlend",{mode:"normal",in2:"effect1_innerShadow_915_86",result:"effect2_innerShadow_915_86"}),r.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),r.createElement("feOffset",{dx:"0.520933",dy:"0.260467"}),r.createElement("feGaussianBlur",{stdDeviation:"0.520933"}),r.createElement("feComposite",{in2:"hardAlpha",operator:"arithmetic",k2:"-1",k3:"1"}),r.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 1 0 0 0 0 0.454167 0 0 0 0 0.716167 0 0 0 1 0"}),r.createElement("feBlend",{mode:"normal",in2:"effect2_innerShadow_915_86",result:"effect3_innerShadow_915_86"})),r.createElement("filter",{id:"filter1_iii_915_86",x:"20.2405",y:"10.5746",width:"10.0343",height:"8.33679",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},r.createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),r.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),r.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),r.createElement("feOffset",{dx:"0.130233",dy:"0.130233"}),r.createElement("feGaussianBlur",{stdDeviation:"0.260467"}),r.createElement("feComposite",{in2:"hardAlpha",operator:"arithmetic",k2:"-1",k3:"1"}),r.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 1 0 0 0 0 0.725 0 0 0 0 0.923 0 0 0 0.7 0"}),r.createElement("feBlend",{mode:"normal",in2:"shape",result:"effect1_innerShadow_915_86"}),r.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),r.createElement("feOffset",{dx:"-0.520933",dy:"-0.7814"}),r.createElement("feGaussianBlur",{stdDeviation:"0.911633"}),r.createElement("feComposite",{in2:"hardAlpha",operator:"arithmetic",k2:"-1",k3:"1"}),r.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.870833 0 0 0 0 0 0 0 0 0 0.0486801 0 0 0 0.54 0"}),r.createElement("feBlend",{mode:"normal",in2:"effect1_innerShadow_915_86",result:"effect2_innerShadow_915_86"}),r.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),r.createElement("feOffset",{dx:"0.520933",dy:"0.260467"}),r.createElement("feGaussianBlur",{stdDeviation:"0.520933"}),r.createElement("feComposite",{in2:"hardAlpha",operator:"arithmetic",k2:"-1",k3:"1"}),r.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 1 0 0 0 0 0.454167 0 0 0 0 0.716167 0 0 0 1 0"}),r.createElement("feBlend",{mode:"normal",in2:"effect2_innerShadow_915_86",result:"effect3_innerShadow_915_86"})),r.createElement("filter",{id:"filter2_d_915_86",x:"13.4419",y:"18.9641",width:"13.1133",height:"8.45316",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},r.createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),r.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),r.createElement("feOffset",{dy:"0.276619"}),r.createElement("feGaussianBlur",{stdDeviation:"0.276619"}),r.createElement("feComposite",{in2:"hardAlpha",operator:"out"}),r.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 1 0 0 0 0 0.804651 0 0 0 0 0.4 0 0 0 1 0"}),r.createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_915_86"}),r.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_915_86",result:"shape"})),r.createElement("filter",{id:"filter3_iii_915_86",x:"8.34077",y:"7.78705",width:"22.2127",height:"22.7657",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},r.createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),r.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),r.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),r.createElement("feOffset",{dx:"-1.65971",dy:"-2.21295"}),r.createElement("feGaussianBlur",{stdDeviation:"2.76619"}),r.createElement("feComposite",{in2:"hardAlpha",operator:"arithmetic",k2:"-1",k3:"1"}),r.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 1 0 0 0 0 0.605392 0 0 0 0 0.0416667 0 0 0 1 0"}),r.createElement("feBlend",{mode:"normal",in2:"shape",result:"effect1_innerShadow_915_86"}),r.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),r.createElement("feOffset",{dx:"-1.10648",dy:"-1.10648"}),r.createElement("feGaussianBlur",{stdDeviation:"0.849311"}),r.createElement("feComposite",{in2:"hardAlpha",operator:"arithmetic",k2:"-1",k3:"1"}),r.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.95 0 0 0 0 0.57 0 0 0 0 0 0 0 0 1 0"}),r.createElement("feBlend",{mode:"normal",in2:"effect1_innerShadow_915_86",result:"effect2_innerShadow_915_86"}),r.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),r.createElement("feOffset",{dx:"0.553238",dy:"0.553238"}),r.createElement("feGaussianBlur",{stdDeviation:"1.38309"}),r.createElement("feComposite",{in2:"hardAlpha",operator:"arithmetic",k2:"-1",k3:"1"}),r.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 1 0 0 0 0 0.882353 0 0 0 0 0.517647 0 0 0 1 0"}),r.createElement("feBlend",{mode:"normal",in2:"effect2_innerShadow_915_86",result:"effect3_innerShadow_915_86"})),r.createElement("filter",{id:"filter4_f_915_86",x:"8.04169",y:"12.6047",width:"10.6193",height:"10.6193",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},r.createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),r.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),r.createElement("feGaussianBlur",{stdDeviation:"0.979398",result:"effect1_foregroundBlur_915_86"})),r.createElement("filter",{id:"filter5_f_915_86",x:"21.3403",y:"12.6047",width:"10.6193",height:"10.6193",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},r.createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),r.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),r.createElement("feGaussianBlur",{stdDeviation:"0.979398",result:"effect1_foregroundBlur_915_86"})),r.createElement("filter",{id:"filter6_iii_915_86",x:"9.72296",y:"10.5741",width:"10.0343",height:"8.33679",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},r.createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),r.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),r.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),r.createElement("feOffset",{dx:"0.130233",dy:"0.130233"}),r.createElement("feGaussianBlur",{stdDeviation:"0.260467"}),r.createElement("feComposite",{in2:"hardAlpha",operator:"arithmetic",k2:"-1",k3:"1"}),r.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 1 0 0 0 0 0.725 0 0 0 0 0.923 0 0 0 0.7 0"}),r.createElement("feBlend",{mode:"normal",in2:"shape",result:"effect1_innerShadow_915_86"}),r.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),r.createElement("feOffset",{dx:"-0.520933",dy:"-0.7814"}),r.createElement("feGaussianBlur",{stdDeviation:"0.911633"}),r.createElement("feComposite",{in2:"hardAlpha",operator:"arithmetic",k2:"-1",k3:"1"}),r.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.870833 0 0 0 0 0 0 0 0 0 0.0486801 0 0 0 0.54 0"}),r.createElement("feBlend",{mode:"normal",in2:"effect1_innerShadow_915_86",result:"effect2_innerShadow_915_86"}),r.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),r.createElement("feOffset",{dx:"0.520933",dy:"0.260467"}),r.createElement("feGaussianBlur",{stdDeviation:"0.520933"}),r.createElement("feComposite",{in2:"hardAlpha",operator:"arithmetic",k2:"-1",k3:"1"}),r.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 1 0 0 0 0 0.454167 0 0 0 0 0.716167 0 0 0 1 0"}),r.createElement("feBlend",{mode:"normal",in2:"effect2_innerShadow_915_86",result:"effect3_innerShadow_915_86"})),r.createElement("filter",{id:"filter7_iii_915_86",x:"20.2435",y:"10.5741",width:"10.0343",height:"8.33679",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},r.createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),r.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),r.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),r.createElement("feOffset",{dx:"0.130233",dy:"0.130233"}),r.createElement("feGaussianBlur",{stdDeviation:"0.260467"}),r.createElement("feComposite",{in2:"hardAlpha",operator:"arithmetic",k2:"-1",k3:"1"}),r.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 1 0 0 0 0 0.725 0 0 0 0 0.923 0 0 0 0.7 0"}),r.createElement("feBlend",{mode:"normal",in2:"shape",result:"effect1_innerShadow_915_86"}),r.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),r.createElement("feOffset",{dx:"-0.520933",dy:"-0.7814"}),r.createElement("feGaussianBlur",{stdDeviation:"0.911633"}),r.createElement("feComposite",{in2:"hardAlpha",operator:"arithmetic",k2:"-1",k3:"1"}),r.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.870833 0 0 0 0 0 0 0 0 0 0.0486801 0 0 0 0.54 0"}),r.createElement("feBlend",{mode:"normal",in2:"effect1_innerShadow_915_86",result:"effect2_innerShadow_915_86"}),r.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),r.createElement("feOffset",{dx:"0.520933",dy:"0.260467"}),r.createElement("feGaussianBlur",{stdDeviation:"0.520933"}),r.createElement("feComposite",{in2:"hardAlpha",operator:"arithmetic",k2:"-1",k3:"1"}),r.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 1 0 0 0 0 0.454167 0 0 0 0 0.716167 0 0 0 1 0"}),r.createElement("feBlend",{mode:"normal",in2:"effect2_innerShadow_915_86",result:"effect3_innerShadow_915_86"})),r.createElement("filter",{id:"filter8_d_915_86",x:"13.4429",y:"18.9636",width:"13.1133",height:"8.45316",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},r.createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),r.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),r.createElement("feOffset",{dy:"0.276619"}),r.createElement("feGaussianBlur",{stdDeviation:"0.276619"}),r.createElement("feComposite",{in2:"hardAlpha",operator:"out"}),r.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 1 0 0 0 0 0.804651 0 0 0 0 0.4 0 0 0 1 0"}),r.createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_915_86"}),r.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_915_86",result:"shape"})),r.createElement("linearGradient",{id:"paint0_linear_915_86",x1:"15.7446",y1:"13.3934",x2:"24.7102",y2:"25.6663",gradientUnits:"userSpaceOnUse"},r.createElement("stop",{stopColor:"#FFF2B9"}),r.createElement("stop",{offset:"0.378122",stopColor:"#FFE976"}),r.createElement("stop",{offset:"0.887607",stopColor:"#FFD752"})),r.createElement("linearGradient",{id:"paint1_linear_915_86",x1:"9.70071",y1:"11.2826",x2:"17.7679",y2:"18.5944",gradientUnits:"userSpaceOnUse"},r.createElement("stop",{stopColor:"#FF00AE"}),r.createElement("stop",{offset:"0.373582",stopColor:"#FF2976"}),r.createElement("stop",{offset:"1",stopColor:"#FF003D"})),r.createElement("radialGradient",{id:"paint2_radial_915_86",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(16.0416 13.6044) rotate(69.6769) scale(1.54409 1.99954)"},r.createElement("stop",{stopColor:"#FFB9D1"}),r.createElement("stop",{offset:"1",stopColor:"#FFA0C1",stopOpacity:"0"})),r.createElement("radialGradient",{id:"paint3_radial_915_86",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(11.8518 13.7164) rotate(28.1043) scale(3.28694 4.25648)"},r.createElement("stop",{stopColor:"#FFE4EE"}),r.createElement("stop",{offset:"1",stopColor:"#E92B67",stopOpacity:"0"})),r.createElement("linearGradient",{id:"paint4_linear_915_86",x1:"21.7851",y1:"9.85354",x2:"27.7687",y2:"18.2756",gradientUnits:"userSpaceOnUse"},r.createElement("stop",{stopColor:"#FF39C0"}),r.createElement("stop",{offset:"0.373582",stopColor:"#FF327C"}),r.createElement("stop",{offset:"1",stopColor:"#FF003D"})),r.createElement("radialGradient",{id:"paint5_radial_915_86",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(22.4262 13.2487) rotate(61.1668) scale(2.05888 2.66618)"},r.createElement("stop",{stopColor:"#FFB9D1"}),r.createElement("stop",{offset:"1",stopColor:"#FFA0C1",stopOpacity:"0"})),r.createElement("radialGradient",{id:"paint6_radial_915_86",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(27.0448 13.991) rotate(144.698) scale(2.20426 2.85444)"},r.createElement("stop",{stopColor:"#FFE4EE"}),r.createElement("stop",{offset:"1",stopColor:"#E92B67",stopOpacity:"0"})),r.createElement("radialGradient",{id:"paint7_radial_915_86",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(19.9985 19.8943) rotate(90) scale(8.75897 24.6984)"},r.createElement("stop",{stopColor:"#000018"}),r.createElement("stop",{offset:"1",stopColor:"#D70892"})),r.createElement("radialGradient",{id:"paint8_radial_915_86",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(19.9978 22.2719) rotate(90) scale(4.31553 7.05297)"},r.createElement("stop",{stopColor:"#361B13"}),r.createElement("stop",{offset:"1",stopColor:"white"})),r.createElement("linearGradient",{id:"paint9_linear_915_86",x1:"19.998",y1:"19.3858",x2:"19.998",y2:"20.4311",gradientUnits:"userSpaceOnUse"},r.createElement("stop",{stopColor:"#E2E2EB"}),r.createElement("stop",{offset:"1",stopColor:"white"})),r.createElement("linearGradient",{id:"paint10_linear_915_86",x1:"19.9995",y1:"23.9561",x2:"19.9996",y2:"27.558",gradientUnits:"userSpaceOnUse"},r.createElement("stop",{stopColor:"#FF37A3"}),r.createElement("stop",{offset:"1",stopColor:"#F30036"})),r.createElement("radialGradient",{id:"paint11_radial_915_86",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(19.7844 23.0481) rotate(158.54) scale(3.3632 2.5817)"},r.createElement("stop",{stopColor:"#FF408B"}),r.createElement("stop",{offset:"1",stopColor:"#FF79AF",stopOpacity:"0"})),r.createElement("linearGradient",{id:"paint12_linear_915_86",x1:"15.7456",y1:"13.3929",x2:"24.7112",y2:"25.6659",gradientUnits:"userSpaceOnUse"},r.createElement("stop",{stopColor:"#FFF2B9"}),r.createElement("stop",{offset:"0.378122",stopColor:"#FFE976"}),r.createElement("stop",{offset:"0.887607",stopColor:"#FFD752"})),r.createElement("radialGradient",{id:"paint13_radial_915_86",cx:"0",cy:"0",r:"1",gradientTransform:"matrix(-1.14305 3.85281 -3.86218 -1.09953 13.3513 17.9142)",gradientUnits:"userSpaceOnUse"},r.createElement("stop",{stopColor:"#FF8989"}),r.createElement("stop",{offset:"1",stopColor:"#FFBABA",stopOpacity:"0"})),r.createElement("radialGradient",{id:"paint14_radial_915_86",cx:"0",cy:"0",r:"1",gradientTransform:"matrix(-1.14305 3.85281 -3.86218 -1.09953 26.6499 17.9142)",gradientUnits:"userSpaceOnUse"},r.createElement("stop",{stopColor:"#FF7E7E"}),r.createElement("stop",{offset:"1",stopColor:"#FFBABA",stopOpacity:"0"})),r.createElement("linearGradient",{id:"paint15_linear_915_86",x1:"9.70145",y1:"11.2821",x2:"17.7686",y2:"18.5939",gradientUnits:"userSpaceOnUse"},r.createElement("stop",{stopColor:"#FF00AE"}),r.createElement("stop",{offset:"0.373582",stopColor:"#FF2976"}),r.createElement("stop",{offset:"1",stopColor:"#FF003D"})),r.createElement("radialGradient",{id:"paint16_radial_915_86",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(16.0424 13.6039) rotate(69.6769) scale(1.54409 1.99954)"},r.createElement("stop",{stopColor:"#FFB9D1"}),r.createElement("stop",{offset:"1",stopColor:"#FFA0C1",stopOpacity:"0"})),r.createElement("radialGradient",{id:"paint17_radial_915_86",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(11.8525 13.7159) rotate(28.1043) scale(3.28694 4.25648)"},r.createElement("stop",{stopColor:"#FFE4EE"}),r.createElement("stop",{offset:"1",stopColor:"#E92B67",stopOpacity:"0"})),r.createElement("linearGradient",{id:"paint18_linear_915_86",x1:"21.788",y1:"9.85305",x2:"27.7717",y2:"18.2752",gradientUnits:"userSpaceOnUse"},r.createElement("stop",{stopColor:"#FF39C0"}),r.createElement("stop",{offset:"0.373582",stopColor:"#FF327C"}),r.createElement("stop",{offset:"1",stopColor:"#FF003D"})),r.createElement("radialGradient",{id:"paint19_radial_915_86",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(22.4292 13.2483) rotate(61.1668) scale(2.05888 2.66618)"},r.createElement("stop",{stopColor:"#FFB9D1"}),r.createElement("stop",{offset:"1",stopColor:"#FFA0C1",stopOpacity:"0"})),r.createElement("radialGradient",{id:"paint20_radial_915_86",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(27.0478 13.9905) rotate(144.698) scale(2.20426 2.85444)"},r.createElement("stop",{stopColor:"#FFE4EE"}),r.createElement("stop",{offset:"1",stopColor:"#E92B67",stopOpacity:"0"})),r.createElement("radialGradient",{id:"paint21_radial_915_86",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(19.9995 19.8939) rotate(90) scale(8.75897 24.6984)"},r.createElement("stop",{stopColor:"#000018"}),r.createElement("stop",{offset:"1",stopColor:"#D70892"})),r.createElement("radialGradient",{id:"paint22_radial_915_86",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(19.9988 22.2714) rotate(90) scale(4.31553 7.05297)"},r.createElement("stop",{stopColor:"#361B13"}),r.createElement("stop",{offset:"1",stopColor:"white"})),r.createElement("linearGradient",{id:"paint23_linear_915_86",x1:"19.999",y1:"19.3854",x2:"19.999",y2:"20.4306",gradientUnits:"userSpaceOnUse"},r.createElement("stop",{stopColor:"#E2E2EB"}),r.createElement("stop",{offset:"1",stopColor:"white"})),r.createElement("linearGradient",{id:"paint24_linear_915_86",x1:"20.0005",y1:"23.9556",x2:"20.0005",y2:"27.5575",gradientUnits:"userSpaceOnUse"},r.createElement("stop",{stopColor:"#FF37A3"}),r.createElement("stop",{offset:"1",stopColor:"#F30036"})),r.createElement("radialGradient",{id:"paint25_radial_915_86",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(19.7854 23.0476) rotate(158.54) scale(3.3632 2.5817)"},r.createElement("stop",{stopColor:"#FF408B"}),r.createElement("stop",{offset:"1",stopColor:"#FF79AF",stopOpacity:"0"}))))}),B0=s(15207),x0=s(29294),v0=s(46442),hc=s(80985);const zc=(0,ye.Ay)(hc.A).withConfig({displayName:"styles__StyledStarResourcesPanel",componentId:"sc-1kxvdvm-0"})(["flex:1;overflow-x:hidden;overflow-y:overlay;.combo-groups-item-collapse{& > header{padding-left:12px;.title{color:",";font-size:12px;font-weight:normal;}svg.arrow-icon{width:12px;}.star{display:none;}.sign{display:inline-block;}&:hover{.star{display:flex;}.sign{display:none;}}}.combo-groups-item-container{padding:0 12px;display:grid;grid-row-gap:8px;grid-column-gap:8px;grid-template-columns:repeat(auto-fill,109px);.template-item{margin:0 8px 10px 0;}li > .img-wrapper{width:109px;height:109px;}}}"],E=>E.theme.color_text_L1),m2=ye.Ay.div.withConfig({displayName:"styles__StyledLoadingContainer",componentId:"sc-1kxvdvm-1"})(["display:flex;align-items:center;justify-content:center;.loading{width:18px;height:18px;}&.all-height{flex:1;}"]),Wc=ye.Ay.div.withConfig({displayName:"styles__StyledStarScreenList",componentId:"sc-1kxvdvm-2"})(["display:flex;flex:1 1 0;flex-direction:column;margin-top:10px;overflow-x:hidden;overflow-y:overlay;.screen_list_star{.resources-card-list{padding:0 8px;}}"]),_u=(0,r.memo)(E=>{let{containerRect:le,list:de,onPaidTemplates:_e,onOpenFolder:Vt}=E;const Bt=(0,r.useCallback)((ln,Ht)=>{let{item:En,index:po}=ln;return"hotAttr"in En&&"marketTemplateSource"in En?(0,W.jsx)(x0.A,{marketTemplate:En,currentResources:En.marketTemplateSource,containerRect:le,xContainerRect:Ht,isShowSign:!0,isShowFolderIcon:!0,onPaidTemplates:()=>_e(En.marketTemplateSource),onOpenFolder:Vt},En.key+po):(0,W.jsx)(v0.a,{item:En},En.key+po)},[le,_e,Vt]);return(0,W.jsx)(Ii,{className:M()("combo-groups-item-container",{"list-2":de.length<=2},{"list-4":de.length>2&&de.length<=4}),list:de,renderItem:Bt})}),Tu=E=>{const{containerRect:le,resource:de,resource:{type:_e,name:Vt,title:Bt,list:ln,children:Ht},onChangeCurOfSubPlatResource:En,onOpenFolder:po}=E,Lo=(0,I.wA)(),{sceName:Bo}=(0,st.yj)(),[Zo,Yo]=Ft(Bo,Lo),Jo=(0,r.useCallback)(qo=>{Zo.includes(qo)?Yo(Zo.filter(Go=>Go!==qo)):Yo(Zo.concat([qo]))},[Zo,Yo]),ea=(0,r.useCallback)(qo=>{const{cid:Go,category:$o}=qo;Lo({type:"entry:resources:update:find:data",payload:{cid:Go,category:$o}})},[]);return Ht!=null&&Ht.length?(0,W.jsx)(Ks.A,{className:"combo-group second-collapse-panel",dataCid:Vt,title:Vt,canCollapse:!1,onClickResources:(Ht==null?void 0:Ht.length)>6?()=>En(de):void 0,children:(0,W.jsx)(_u,{list:Ht,containerRect:le,onPaidTemplates:ea,onOpenFolder:po})},Vt):ln!=null&&ln.length?_e===ke.O3.Builtin?(0,W.jsx)(bo.A,{className:"second-collapse-panel",id:Bt,"data-category":Bt,title:Bt,width:ts.qv,expanded:!Zo.includes(Bt),onToggle:Jo,children:(0,W.jsx)("div",{className:"widget-insertable-list",style:{width:ts.qv},children:ln.map(qo=>(0,W.jsx)(Po.A,{widgetInsertableData:qo},qo.key))})},Bt):ln.map((qo,Go)=>{const{name:$o,children:ba}=qo,sa=!(ba!=null&&ba.length),va=(ba==null?void 0:ba.length)>6;return(0,W.jsx)(Ks.A,{className:"combo-group second-collapse-panel",dataCid:$o,title:$o,canCollapse:!1,onClickResources:va?()=>En(qo):void 0,children:sa?(0,W.jsx)(m2,{children:(0,W.jsx)(B0.f,{className:"loading"})}):(0,W.jsx)(_u,{list:ba,containerRect:le,onPaidTemplates:ea,onOpenFolder:po})},$o+Go)}):null},Pu=(0,r.memo)(Tu);var F1=s(28306),al=s(13642),el=s(88909);const Cp=ye.Ay.div.withConfig({displayName:"styles__StyledSceResourcesPanel",componentId:"sc-1ici4r5-0"})(["margin-top:6px;.sec-container{.sec-header{height:33px;border-bottom:1px solid ",";align-items:center;margin:0 12px 8px 12px;display:none;span.title{font-family:PingFang SC;font-size:12px;font-weight:400;color:",";}&.show-title{display:flex;}}}.combo-group{&:not(:last-child){margin-bottom:8px;}.header{.right{.arrow-right{display:none;}}}}.combo-group .collapse-box{position:relative;width:250px;padding:0 12px;&:hover{.scroll-bar{opacity:1;}}}.combo-groups-item-container{width:100%;overflow:auto hidden;scrollbar-width:none;-ms-overflow-style:none;display:flex;flex-direction:row;&.list-2{> li{grid-template-rows:repeat(1,1fr);}}&.list-4{> li{grid-template-rows:repeat(2,1fr);}}> li{width:100%;display:grid;grid-row-gap:8px;grid-column-gap:8px;grid-template-columns:repeat(2,109px);align-items:flex-start;grid-template-rows:repeat(3,1fr);margin-right:8px;> li{margin-bottom:0;> .img-wrapper{width:109px;height:109px;}}}&::-webkit-scrollbar{display:none;}.template-item{width:109px;span.template-name{width:100%;text-align:left;padding:6px 6px 0 6px;}}}"],E=>E.theme.color_bg_border_01,E=>E.theme.color_text_L3),Lu=E=>{let{resources:le,sceTag:de,plabel:_e}=E;return(0,r.useEffect)(()=>{let Vt=[];le!=null&&le.length&&le.forEach(ln=>{if((ln==null?void 0:ln.type)===ke.O3.Resources){var Ht,En;ln!=null&&(Ht=ln.list)!=null&&Ht.length?Vt=Vt.concat(ln.list):ln!=null&&(En=ln.children)!=null&&En.length&&(Vt=Vt.concat(ln.children))}});const Bt=(0,F1.X_)({list:Vt,sceTag:de,plabel:_e});al.A.emit(el.jy,{observeMtItemObj:Bt}),al.A.emit(el.BD)},[le,_e,de]),(0,r.useEffect)(()=>(setTimeout(()=>{al.A.emit(el.l7),al.A.emit(el.wO)}),()=>{al.A.emit(el.P2,{shownMtItemCids:[]})}),[_e,de]),null},U0=E=>{const{containerRect:le,sec:{isLoading:de,officialPlatResources:_e},onSetItemRef:Vt,onChangeCurOfSubPlatResource:Bt,onOpenFolder:ln}=E,Ht=(0,I.d4)(T.xH),En=(0,I.d4)(T.tt),po=(0,I.d4)(T.mR),Lo=(0,I.d4)(T.AC),Bo=(0,I.d4)(T.f3),Zo=(0,I.wA)(),Yo=[ke.Iw.MP_App,ke.Iw.MP_Applet,ke.Iw.MP_H5,ke.Iw.PC_WebBack,ke.Iw.PC_Website].includes(Bo),Jo=(0,r.useMemo)(()=>_e.filter(ea=>!!ea.num),[_e]);return(0,W.jsx)(Cp,{className:"variable-height",children:de?null:Jo.map((ea,qo)=>(0,W.jsxs)("div",{className:"sec-container",ref:Vt(qo+1),children:[(0,W.jsx)("header",{className:M()("sec-header",{"show-title":Yo}),"data-key":ea.title,children:(0,W.jsx)("span",{className:"title","data-key":ea.title,children:ea.title+"\uFF08"+ea.num+"\uFF09"})}),ea.list.map((Go,$o)=>(0,W.jsx)(Pu,{containerRect:le,resource:Go,onChangeCurOfSubPlatResource:Bt,onOpenFolder:ln},$o)),(0,W.jsx)(Lu,{resources:ea.list,sceTag:Bo,plabel:En})]},qo))})},f2=(0,r.memo)(U0);var Sp=s(25409),g2=s(65415),V1=s(77036),Td=s(19062);const cc=(E,le)=>E.length===0?[]:E.map(de=>(le.get(de.mtCid)||[]).find(Bt=>Bt.key===de.key)||de);var La=s(3862),bl=s(55914);const Ps=ye.Ay.div.withConfig({displayName:"styles__StyledOfficialResDetailPanel",componentId:"sc-1ce1jta-0"})(["height:100%;flex:1 1 0%;display:flex;flex-direction:column;overflow:hidden;.resources-details-search{height:28px;}.search-no-results{flex:1;justify-content:center;}.marketTemplate-list{height:100%;overflow:hidden;position:relative;}.template-item{width:109px;}"]),Vr=(0,r.memo)(E=>{const{res:{name:le,children:de},onBack:_e,onOpenFolder:Vt}=E,Bt=(0,I.d4)(T.AC),ln=(0,I.d4)(T.xH),Ht=(0,I.d4)(te.MZ),En=(0,I.wA)(),[po,Lo]=r.useState(!1),[Bo,Zo]=r.useState(null),Yo=sa=>{var va;return(sa==null||(va=sa.marketTemplateSource)==null?void 0:va.cid)||(sa==null?void 0:sa.mtCid)},Jo=(0,r.useMemo)(()=>de.every((sa,va,pr)=>Yo(sa)===Yo(pr[0])),[de,Yo]),ea=(0,r.useMemo)(()=>cc(de,Bt),[de,Bt]);(0,r.useEffect)(()=>{if(de.length===0)return;const sa=de.map(va=>va.mtCid).filter(va=>!!va);sa!=null&&sa.length&&En({type:"entry:resources:init:marketTemplateItemList:map",payload:{resourcesCids:sa}})},[de,En]);const qo=sa=>{En({type:"entry:resources:update:find:data",payload:{cid:sa.cid,category:La.t_}})},Go=sa=>{if(Zo(null),sa){const va=new RegExp((0,bl.$)(sa),"i");if(ea&&ea.length>0){Lo(!0);const pr=ea.filter(lr=>{var Cr;return va.test((Cr=lr.hotAttr)==null?void 0:Cr.name)});setTimeout(()=>{Lo(!1),Zo(pr)},1e3)}}},$o=Bo||ea,ba=$o&&$o.length===0;return(0,W.jsxs)(Ps,{children:[(0,W.jsx)(Sp.l,{resources:{title:le},onBack:_e,showStar:!1,onSearch:Go}),po?(0,W.jsx)(Td.S,{children:(0,W.jsx)("span",{children:I18N.Resources.searching.load})}):ba?(0,W.jsx)(g2.b,{isNeedLink:!Bo}):(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)("div",{className:"marketTemplate-list",children:(0,W.jsx)(V1.L,{category:La.t_,marketTemplateItemList:$o,isShowFolderIcon:!Jo,isShowSign:!Jo,onTrack:()=>{},onPaidResources:qo,onOpenFolder:Vt})}),(0,W.jsx)(Ca,{list:$o})]})]})}),Ca=E=>{let{list:le}=E;return(0,r.useEffect)(()=>{const de=(0,F1.R9)({source:"detail",list:le});al.A.emit(el.jy,{observeMtItemObj:de}),al.A.emit(el.BD)},[le]),null};var rl=s(80771),Ws=s(11032);const Oh=E=>{const{currentResources:le,setCurrentResources:de,onBack:_e}=E,Vt=(0,I.wA)(),Bt=async()=>{if(!le||MB.global.experienceLoginModalHelper("isSave"))return;const{is_star:En,cid:po}=le,Lo={...le,is_star:!En};de(Lo),Vt({type:"entry:resources:update:find:data",payload:{cid:po,category:La.t_,updateData:Bo=>({...Bo,is_star:!Bo.is_star})}}),await(0,Ws.lU)(En,po)},ln=()=>{de({...le,is_star:!0,is_purchased:!0}),Ht(le)},Ht=En=>{Vt({type:"entry:resources:update:find:data",payload:{cid:En.cid,category:La.t_}})};return(0,W.jsx)(rl.A,{className:"search-resources-detail-panel",currentResources:le,onStarTemplates:Bt,onPaidTemplates:ln,onBack:_e})},Nu=ye.Ay.div.withConfig({displayName:"styles__StyledWidgetInsertableDetailPanel",componentId:"sc-1cyqkxd-0"})(["height:100%;flex:1 1 0%;display:flex;flex-direction:column;overflow:hidden;.resources-details-search{height:28px;}.search-no-results{flex:1;justify-content:center;}.widget-insertable-list{position:relative;width:100%;flex:1;overflow:hidden;.widget-scroll-container{width:100%;height:100%;overflow-x:hidden;overflow-y:overlay;scrollbar-width:none;.list{width:100%;height:100%;padding:0 4px 0 12px;display:flex;flex-flow:row wrap;}}}"]),z1=(0,r.memo)(E=>{const{curWidgetInsertable:{title:le,list:de},onBack:_e}=E,Vt=(0,I.d4)(te.MZ),[Bt,ln]=(0,r.useState)(!1),[Ht,En]=(0,r.useState)(null),po=(0,r.useRef)(null),Lo=Yo=>{if(En(null),Yo){const Jo=new RegExp((0,bl.$)(Yo),"i");if(de&&de.length>0){ln(!0);const ea=de.filter(qo=>{var Go;return Jo.test((Go=qo.meta)==null?void 0:Go.name)});setTimeout(()=>{ln(!1),En(ea)},1e3)}}},Bo=Ht||de,Zo=Bo&&(Bo==null?void 0:Bo.length)===0;return(0,W.jsxs)(Nu,{children:[(0,W.jsx)(Sp.l,{resources:{title:le},layoutV9:Vt,onBack:_e,showStar:!1,onSearch:Lo}),Bt?(0,W.jsx)(Td.S,{children:(0,W.jsx)("span",{children:I18N.Resources.searching.load})}):Zo?(0,W.jsx)(g2.b,{isNeedLink:!Ht}):(0,W.jsx)("div",{className:"widget-insertable-list",children:(0,W.jsxs)("div",{className:"widget-scroll-container",ref:po,children:[(0,W.jsx)("div",{className:"list",children:Bo.map(Yo=>(0,W.jsx)(Po.A,{widgetInsertableData:Yo},Yo.key))}),po&&(0,W.jsx)(Zn.yP,{type:"vertical",containerRef:po,isAutoHideBar:!0})]})})]})});var s1=s(32330);const Pd=E=>{let{scrollRef:le}=E;const[de,_e]=(0,r.useState)(!1),Vt=xa()(()=>{if(!le.current)return;le.current.scrollTop>le.current.offsetHeight?_e(!0):_e(!1)},100);(0,r.useEffect)(()=>{if(le.current)return le.current.addEventListener("scroll",Vt),()=>{var ln,Ht;(ln=Vt.cancel)==null||ln.call(Vt),(Ht=le.current)==null||Ht.removeEventListener("scroll",Vt)}},[le,Vt]);const Bt=()=>{le.current.scrollTop=0};return de?(0,W.jsx)(l.A,{content:"\u6EDA\u52A8\u5230\u9876\u90E8",direction:"up",children:(0,W.jsx)(Yd,{onClick:Bt,children:(0,W.jsx)(s1.A,{size:24})})}):null},Yd=ye.Ay.div.withConfig({displayName:"ScrollTopButton__StyledScrollTopButton",componentId:"sc-pettco-0"})(["width:32px;height:32px;border-radius:50%;border:1px solid ",";background:",";box-shadow:0 4px 10px 0 rgba(0,18,38,0.10);display:flex;align-items:center;justify-content:center;position:absolute;right:12px;bottom:16px;cursor:pointer;z-index:999;svg path{fill:",";}&:hover{svg path{fill:",";}}"],E=>E.theme.color_bg_border_01,E=>E.theme.color_bg_menu,E=>E.theme.color_text_L1,E=>E.theme.color_btn_primary_normal);var Sl=s(26348);const Lc=E=>{const[le,de]=(0,r.useState)(),_e=xa()(()=>{if(!E.current)return;const Vt=E.current.scrollTop;Vt>40&&de("up"),Vt<=40&&de("down")},100);return(0,r.useEffect)(()=>{const Vt=E.current;if(Vt)return _e(),Vt.addEventListener("scroll",_e),()=>{var Bt;(Bt=_e.cancel)==null||Bt.call(_e),Vt.removeEventListener("scroll",_e)}},[E,_e]),le};var Fs=s(16335);const dd={[ke.Iw.MP_App]:"app",[ke.Iw.MP_Applet]:"applet",[ke.Iw.MP_H5]:"activity",[ke.Iw.PC_Website]:"website",[ke.Iw.PC_WebBack]:"web_back",[ke.Iw.Pad]:"ipad",[ke.Iw.DS_Screen]:"display_screen",[ke.Iw.SmartTV]:"smart_tv",[ke.Iw.HMI_IndusHmi]:"HMI",[ke.Iw.HMI_Car]:"smart_car",[ke.Iw.Watch]:"apple_watch",[ke.Iw.Common]:"common"},l1=()=>{const E=(0,I.d4)(T.f3),le=(0,I.d4)(T.AC),de=(0,I.d4)(T.up),{isEditingCombo:_e,isEditingBasket:Vt,isEditingMuban:Bt}=(0,I.d4)(q.r),ln=(0,I.wA)(),[Ht,En]=(0,r.useState)(!1),po=(0,r.useMemo)(()=>[ke.Iw.Watch,ke.Iw.Common].includes(E),[E]),Lo=(0,r.useCallback)(ea=>{const qo=Oe.gD[ea]||[],Go=de.get(ea)||[],$o=(0,ke.HA)()[ea]||[];return qo.map(ba=>{var sa;if(ba.value===ke.ni)return[ke.Iw.Watch,ke.Iw.Common].includes(ea)?$o.map(pr=>({value:pr})):{...ba,children:$o.map(pr=>({value:pr}))};const va=Go.find(pr=>pr.name===ba.value);return va?{...ba,children:ba==null||(sa=ba.children)==null?void 0:sa.filter(pr=>{if(!pr.value.includes("\u5185\u7F6E")){var lr,Cr;const si=va==null||(lr=va.children)==null?void 0:lr.find(Ui=>Ui.name===pr.value);return si&&(si==null||(Cr=si.children)==null?void 0:Cr.length)>0}return!0})}:null}).filter(ba=>!!ba).flat(1/0)},[de]),Bo=(0,r.useMemo)(()=>Lo(E),[E,de,Lo]),Zo=(0,r.useCallback)(ea=>{const{sceListing:qo,sceData:Go}=(0,st.yj)(),$o=Bt||_e||Vt?qo.filter(lr=>{var Cr;return((Cr=Go[lr.split("/")[1]])==null?void 0:Cr.meta.type)!=="rResCanvasAsOverlay"}):qo,ba=(0,ke.HA)()[ea]||[],sa=new Map;return ba.forEach((lr,Cr)=>{sa.set(lr,Cr)}),$o.filter(lr=>ba.includes(lr.split("/")[0])).sort((lr,Cr)=>sa.get(lr.split("/")[0])-sa.get(Cr.split("/")[0])).reduce((lr,Cr)=>{const[si,Ui]=Cr.split("/");return lr.has(si)?lr.set(si,[...lr.get(si),{key:Ui,...Go[Ui]}]):lr.set(si,[{key:Ui,...Go[Ui]}]),lr},new Map)},[_e,Vt,Bt]),Yo=(0,r.useMemo)(()=>Zo(E),[E,Zo]);(0,r.useEffect)(()=>{const ea=async()=>{try{En(!0);const qo=dd[E];if(qo!=null&&qo.length){const Go=await(0,Fs.GH)("v1",qo),$o=new Map(de);$o.set(E,Go||[]),ln({type:"widget-panel:update:platformMarketTemplatesMap",payload:$o})}En(!1)}catch(qo){}};de.get(E)||ea()},[ln,E,de]);const Jo=(0,r.useMemo)(()=>{const ea=de.get(E)||[],{fetchList:qo}=(0,Oe.aM)(ea,le),Go=Zo("all");if(ea){const $o=[];return Bo.filter(ba=>ba.value!==ke.ni).forEach(ba=>{var sa;const va=[];let pr=0;(sa=ba.children)==null||sa.forEach(jr=>{if(jr.value.includes("\u5185\u7F6E")){const[Gr,Ei]=jr.value.split("\u5185\u7F6E");if(Ei!=null&&Ei.length){const fs=Go.get(Ei);fs!=null&&fs.length&&(va.push({type:ke.O3.Builtin,title:jr.value,list:fs}),pr+=fs==null?void 0:fs.length)}}});const lr=qo.find(jr=>jr.name===ba.value);if(lr){var Cr;if((Cr=ba.children)!=null&&Cr.length){var si;const jr=(si=ba.children)==null?void 0:si.map(Gr=>lr.children.find(fs=>fs.name===Gr.value)).filter(Gr=>!!Gr);va.push({type:ke.O3.Resources,title:ba.value,list:jr||[]}),pr=jr==null?void 0:jr.reduce((Gr,Ei)=>{var fs;return Gr+=Ei==null||(fs=Ei.children)==null?void 0:fs.length,Gr},pr)}else{var Ui;if(ba.value===(lr==null||(Ui=lr.children)==null||(Ui=Ui[0])==null?void 0:Ui.name)){var Qi;const jr=lr==null||(Qi=lr.children)==null||(Qi=Qi[0])==null?void 0:Qi.children;va.push({type:ke.O3.Resources,name:ba.value,children:jr||[]}),pr+=jr==null?void 0:jr.length}}}$o.push({title:ba.value,list:va,num:pr})}),$o}return[]},[de,E,Bo,le,Zo]);return{isWatchCommonPlatformType:po,officialFilterList:Bo,handleGetOfficialFilterList:Lo,categoryToWidgetInsertableMap:Yo,sec:{isLoading:Ht,officialPlatResources:Jo}}};var il=s(38739);const dc=ye.Ay.div.withConfig({displayName:"styles__StyledOfficial",componentId:"sc-1utg50z-0"})(["flex:1;display:flex;flex-direction:column;overflow:hidden;position:relative;.bar-vertical{z-index:3;}.official-bottom{width:100%;height:100%;position:relative;overflow:hidden;.open-modal-cards-wrap{&.sticky{top:0;}}}"]),Il=(0,ye.Ay)(hc.o).withConfig({displayName:"styles__StyledWidgetInsertableContainer",componentId:"sc-1utg50z-1"})(["height:100%;overflow:hidden auto;margin-bottom:8px;display:flex;flex-direction:column;scrollbar-width:none;&::-webkit-scrollbar{display:none;}&:hover::-webkit-scrollbar{display:block;}&.padding-top-90{padding-top:90px;}.widget-insertable-list{display:flex;flex-flow:row wrap;padding:0 4px 0 12px;margin-top:8px;position:relative;.widget-flow-list{width:100%;overflow:auto hidden;scrollbar-width:none;-ms-overflow-style:none;display:flex;flex-direction:row;> li{width:100%;display:grid;grid-row-gap:8px;grid-column-gap:8px;grid-template-columns:repeat(3,70px);grid-template-rows:repeat(6,1fr);margin-right:8px;}}&:hover{.scroll-bar{opacity:1;}}}.x-scroll-bar-action{.scroll-bar{width:16px;height:32px;top:calc(50% - 16px);background:",";border:1px solid ",";cursor:pointer;border-radius:4px;transition:all 0.2s ease-in-out;&:hover{background:",";}&.dark{background:",";&:hover{background:",";}}&.left,&.right{&:hover{height:40px;background:",";top:calc(50% - 20px);}}svg{path{fill:",";}}&.left{svg{transform:rotate(90deg);}}&.right{svg{transform:rotate(-90deg);}}}}"],E=>E.theme.color_bg_white,E=>E.theme.color_bg_border_02,E=>E.theme.color_bg_white,E=>E.theme.color_bg_white,E=>E.theme.color_bg_white,E=>E.theme.color_bg_white,E=>E.theme.color_text_L2),Jl=E=>{var le;const{isOffUpdateScroll:de,onIsUpdateScroll:_e}=E,[Vt,Bt]=(0,r.useState)(null),[ln,Ht]=(0,r.useState)(null),[En,po]=(0,r.useState)(null),Lo=(0,r.useCallback)(()=>{Bt(null),po(null),Ht(null),_e()},[Bt,po,Ht,_e]);return En?(0,W.jsx)(z1,{curWidgetInsertable:En,onBack:Lo}):ln?(0,W.jsx)(Oh,{currentResources:ln,setCurrentResources:Ht,onBack:Lo}):Vt!=null&&(le=Vt.children)!=null&&le.length?(0,W.jsx)(Vr,{res:Vt,onBack:Lo,onOpenFolder:Ht}):(0,W.jsx)(y2,{isOffUpdateScroll:de,onChangeCurWidgetInsertable:po,onChangeCurOfSubPlatResource:Bt,onOpenFolder:Ht})},y2=(0,r.memo)(E=>{const{isOffUpdateScroll:le,onChangeCurWidgetInsertable:de,onChangeCurOfSubPlatResource:_e,onOpenFolder:Vt}=E,Bt=(0,r.useRef)(null),ln=(0,r.useRef)(null),Ht=Lc(Bt),En=(0,I.wA)(),po=(0,I.d4)(T.f3),{scene_tag:Lo,cid:Bo}=(0,I.d4)(ne.PL),Zo=(0,I.d4)(T.tt),Yo=(0,I.d4)(T.mR),Jo=(0,I.d4)(T.eH),ea=(0,I.d4)(T.ok),{setItemRef:qo,activeTitleValue:Go,activeSecondTitleValue:$o,scrollTop:ba,scrollToItem:sa,scrollToByOffset:va}=(0,Sl.G)(Bt,{defaultFirst:Zo,defaultSecond:Yo,secondQueryName:".second-collapse-panel",defaultScrollTop:Jo}),{isWatchCommonPlatformType:pr,officialFilterList:lr,categoryToWidgetInsertableMap:Cr,sec:si}=l1(),Ui=(0,r.useMemo)(()=>(0,ke.Ow)(Lo),[Lo]),Qi=(0,r.useCallback)(Ei=>{En({type:"modal:update:state",payload:{widgetModal:{isOpen:!0,source:Ei}}})},[En]),jr=(0,r.useCallback)(Ei=>{En({type:"modal:update:state",payload:{iconModal:{isOpen:!0}}})},[En]),Gr=(0,r.useMemo)(()=>[{label:I18N.LeftSidePanel.widgetPanel.largeFactoryModal,value:il.l.LargeFactory,icon:(0,W.jsx)(qc,{size:40}),onClick:Qi},{label:I18N.LeftSidePanel.widgetPanel.componentsModal,value:il.l.ComponentLibrary,icon:(0,W.jsx)(vp,{size:40}),onClick:Qi},{label:I18N.LeftSidePanel.widgetPanel.iconsModal,value:"icon",icon:(0,W.jsx)(wp,{size:40}),onClick:jr}],[Qi,jr]);return(0,r.useEffect)(()=>{po||En({type:"widget-panel:update:platFormType",payload:{platformType:Ui,projectCid:Bo}})},[po,Bo]),(0,r.useEffect)(()=>{Go===ke.ni&&pr&&(En({type:"widget-panel:update:level1",payload:{level1:$o||""}}),En({type:"widget-panel:update:level2",payload:{level2:""}}));const Ei=lr.find(ec=>ec.value===Go);if(Ei){var fs;En({type:"widget-panel:update:level1",payload:{level1:Go}});const ec=(fs=Ei.children)==null?void 0:fs.find(yc=>yc.value===$o);En({type:"widget-panel:update:level2",payload:{level2:(ec==null?void 0:ec.value)||""}})}},[Go,$o,lr,po,pr]),(0,r.useEffect)(()=>{if(Ht==="up"){if(ln.current){var Ei,fs;(Ei=ln.current)==null||Ei.classList.add("sticky"),Bt==null||(fs=Bt.current)==null||fs.classList.add("padding-top-90")}}else{var ec,yc;(ec=ln.current)==null||ec.classList.remove("sticky"),Bt==null||(yc=Bt.current)==null||yc.classList.remove("padding-top-90")}},[Ht]),(0,r.useEffect)(()=>{En({type:"widget-panel:update:state",payload:{scrollTop:ba}})},[En,ba]),(0,r.useEffect)(()=>{le&&va(Jo)},[le,Jo,va]),(0,r.useEffect)(()=>{if(ea){const Ei=lr.findIndex(fs=>fs.value===Zo);Ei>-1&&sa(Ei)}},[sa,ea,Zo,lr]),(0,W.jsxs)(dc,{children:[(0,W.jsx)(Xt,{isWatchCommonPlatformType:pr,officialFilterList:lr,scrollToItem:sa,scrollToByOffset:va}),(0,W.jsxs)("div",{className:"official-bottom",children:[(0,W.jsx)(Il,{ref:Bt,children:Ei=>(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(wa.G,{cardList:Gr,ref:ln}),(0,W.jsx)(no,{categoryToWidgetInsertableMap:Cr,onSetItemRef:qo,onChangeCurWidgetInsertable:de}),(0,W.jsx)(f2,{containerRect:Ei,sec:si,onSetItemRef:qo,onChangeCurOfSubPlatResource:_e,onOpenFolder:Vt})]})}),Bt&&(0,W.jsx)(Zn.yP,{type:"vertical",containerRef:Bt,isAutoHideBar:!0}),(0,W.jsx)(Pd,{scrollRef:Bt})]})]})}),x2=Jl;var v2=Object.defineProperty,Ap=Object.defineProperties,pd=Object.getOwnPropertyDescriptors,O0=Object.getOwnPropertySymbols,ud=Object.prototype.hasOwnProperty,Ac=Object.prototype.propertyIsEnumerable,hd=(E,le,de)=>le in E?v2(E,le,{enumerable:!0,configurable:!0,writable:!0,value:de}):E[le]=de,md=(E,le)=>{for(var de in le||(le={}))ud.call(le,de)&&hd(E,de,le[de]);if(O0)for(var de of O0(le))Ac.call(le,de)&&hd(E,de,le[de]);return E},ju=(E,le)=>Ap(E,pd(le)),W1=(E,le)=>{var de={};for(var _e in E)ud.call(E,_e)&&le.indexOf(_e)<0&&(de[_e]=E[_e]);if(E!=null&&O0)for(var _e of O0(E))le.indexOf(_e)<0&&Ac.call(E,_e)&&(de[_e]=E[_e]);return de},Fh=(0,r.forwardRef)((E,le)=>{var de=E,{size:_e,spin:Vt,style:Bt}=de,ln=W1(de,["size","spin","style"]);const Ht=md(md({width:_e||"var(--x-icon-size, 1em)",height:_e||"var(--x-icon-size, 1em)",animation:Vt?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),Bt);return r.createElement("svg",ju(md({ref:le,style:Ht},ln),{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),r.createElement("path",{d:"M10 13C10.5523 13 11 13.4477 11 14V17C11 17.5177 10.6067 17.9438 10.1025 17.9951L10 18H7L6.89746 17.9951C6.42703 17.9472 6.05278 17.573 6.00488 17.1025L6 17V14C6 13.4477 6.44772 13 7 13H10ZM17 13C17.5523 13 18 13.4477 18 14V17C18 17.5177 17.6067 17.9438 17.1025 17.9951L17 18H14L13.8975 17.9951C13.427 17.9472 13.0528 17.573 13.0049 17.1025L13 17V14C13 13.4477 13.4477 13 14 13H17ZM14 17H17V14H14V17ZM7 17H10V14H7V17ZM10 6C10.5523 6 11 6.44772 11 7V10C11 10.5177 10.6067 10.9438 10.1025 10.9951L10 11H7L6.89746 10.9951C6.42703 10.9472 6.05278 10.573 6.00488 10.1025L6 10V7C6 6.44772 6.44772 6 7 6H10ZM17 6C17.5523 6 18 6.44772 18 7V10C18 10.5177 17.6067 10.9438 17.1025 10.9951L17 11H14L13.8975 10.9951C13.427 10.9472 13.0528 10.573 13.0049 10.1025L13 10V7C13 6.44772 13.4477 6 14 6H17ZM7 10H10V7H7V10ZM14 10H17V7H14V10Z",fill:"#19191A"}))}),Vh=Object.defineProperty,Ld=Object.defineProperties,$c=Object.getOwnPropertyDescriptors,b0=Object.getOwnPropertySymbols,H1=Object.prototype.hasOwnProperty,G1=Object.prototype.propertyIsEnumerable,kp=(E,le,de)=>le in E?Vh(E,le,{enumerable:!0,configurable:!0,writable:!0,value:de}):E[le]=de,ql=(E,le)=>{for(var de in le||(le={}))H1.call(le,de)&&kp(E,de,le[de]);if(b0)for(var de of b0(le))G1.call(le,de)&&kp(E,de,le[de]);return E},Ru=(E,le)=>Ld(E,$c(le)),w0=(E,le)=>{var de={};for(var _e in E)H1.call(E,_e)&&le.indexOf(_e)<0&&(de[_e]=E[_e]);if(E!=null&&b0)for(var _e of b0(E))le.indexOf(_e)<0&&G1.call(E,_e)&&(de[_e]=E[_e]);return de},Mp=(0,r.forwardRef)((E,le)=>{var de=E,{size:_e,spin:Vt,style:Bt}=de,ln=w0(de,["size","spin","style"]);const Ht=ql(ql({width:_e||"var(--x-icon-size, 1em)",height:_e||"var(--x-icon-size, 1em)",animation:Vt?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),Bt);return r.createElement("svg",Ru(ql({ref:le,style:Ht},ln),{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),r.createElement("path",{d:"M7.00098 6.5C7.55326 6.5 8.00293 6.94772 8.00293 7.5C8.00293 8.05228 7.55326 8.5 7.00098 8.5C6.44884 8.49983 6 8.05218 6 7.5C6 6.94782 6.44884 6.50017 7.00098 6.5ZM17.5 7C17.7761 7 18 7.22386 18 7.5C18 7.77614 17.7761 8 17.5 8H9.98926C9.71312 8 9.48926 7.77614 9.48926 7.5C9.48926 7.22386 9.71312 7 9.98926 7H17.5Z",fill:"#19191A"}),r.createElement("path",{d:"M7.00098 11C7.55326 11 8.00293 11.4477 8.00293 12C8.00293 12.5523 7.55326 13 7.00098 13C6.44884 12.9998 6 12.5522 6 12C6 11.4478 6.44884 11.0002 7.00098 11ZM17.5 11.5C17.7761 11.5 18 11.7239 18 12C18 12.2761 17.7761 12.5 17.5 12.5H9.98926C9.71312 12.5 9.48926 12.2761 9.48926 12C9.48926 11.7239 9.71312 11.5 9.98926 11.5H17.5Z",fill:"#19191A"}),r.createElement("path",{d:"M7.00098 15.5C7.55326 15.5 8.00293 15.9477 8.00293 16.5C8.00293 17.0523 7.55326 17.5 7.00098 17.5C6.44884 17.4998 6 17.0522 6 16.5C6 15.9478 6.44884 15.5002 7.00098 15.5ZM17.5 16C17.7761 16 18 16.2239 18 16.5C18 16.7761 17.7761 17 17.5 17H9.98926C9.71312 17 9.48926 16.7761 9.48926 16.5C9.48926 16.2239 9.71312 16 9.98926 16H17.5Z",fill:"#19191A"}))});const C0=ye.Ay.div.withConfig({displayName:"styles__StyledMeFilter",componentId:"sc-100i2m6-0"})(["&.me-filter-group{display:flex;width:100%;height:40px;padding:7px 6px;justify-content:space-between;align-items:center;.nav-item{margin-left:8px;&:first-child{margin-left:0;}}.right-mode-icon{cursor:pointer;border-radius:4px;transition:background-color 0.2s ease-in-out;path{fill:",";}&:hover{background:",";}&:active{background:",";}}}"],E=>E.theme.color_text_L1,E=>E.theme.color_btn_secondary_hover,E=>E.theme.color_btn_secondary_active),c1=ye.Ay.div.withConfig({displayName:"styles__StyledMeSelect",componentId:"sc-100i2m6-1"})(["width:100%;height:40px;display:flex;align-items:center;padding:0 6px;border-bottom:1px solid ",";"],E=>E.theme.color_bg_border_01),Xd="local-widget-panel-me-tab-mode",d1=(0,r.memo)(E=>{let{navIndex:le,mode:de,onSetMode:_e}=E;const Vt=(0,I.wA)(),Bt=(0,r.useMemo)(()=>[{key:"1",label:I18N.Popups.my_widgets},{key:"2",label:ENV.IS_ON_PREMISES?"\u6536\u85CF":I18N.LeftSidePanel.modals.tab.star_purchased}],[]),ln=(0,r.useCallback)(()=>{const En=de==="list"?"grid":"list";_e(En),(0,Ve.a0)(Xd,En,Ve.qW.String)},[de,_e]),Ht=(0,r.useCallback)(En=>{Vt({type:"widget-panel:update:state",payload:{meNavIndex:En}})},[Vt]);return(0,W.jsxs)(C0,{className:"me-filter-group",children:[(0,W.jsx)(B.Ay,{activeIndex:le,onTabChange:Ht,children:Bt.map(En=>{let{key:po,label:Lo}=En;return(0,W.jsx)(B.nl,{label:Lo},po)})}),le===1&&(0,W.jsx)(l.A,{content:de==="list"?"\u5BAB\u683C\u6A21\u5F0F":"\u5217\u8868\u6A21\u5F0F",direction:"down",distance:8,children:de==="list"?(0,W.jsx)(Fh,{size:24,className:"right-mode-icon",onClick:ln}):(0,W.jsx)(Mp,{size:24,className:"right-mode-icon",onClick:ln})})]})}),kc=null;var Nd=s(62987),Ep=s(38382),b2=s(40410);const zh=ye.Ay.div.withConfig({displayName:"styles__StyledHome",componentId:"sc-18fdmk0-0"})(["flex:1;display:flex;flex-direction:column;overflow:hidden;position:relative;.me-filter-group{flex:0 0 40px;}.custom-combo-group-panel{> header{padding-top:4px;}}.container{flex:1;width:100%;display:flex;flex-direction:column;overflow:hidden;position:relative;.widget-starbuy-scroll-list{display:flex;flex-direction:column;flex:1;overflow-x:hidden;overflow-y:overlay;width:100%;scrollbar-width:none;.widget-starbuy-scrollable-list{position:relative;min-height:100%;.me-com-entry{display:flex;flex-direction:row;align-items:center;height:60px;padding:6px;margin:8px 6px;border-radius:8px;cursor:pointer;.left{background:#f6f3ff;width:64px;height:48px;border-radius:6px;display:flex;align-items:center;justify-content:center;flex:0 0 64px;}.right{flex:1;display:flex;flex-direction:column;margin-left:12px;span{font-size:12px;font-family:PingFang SC;color:",";}}&.dark{.left{background:#372c5c;}&:hover{.left{background:#463975;}}}&:hover{background:",";.left{background:#f0ebff;}}}.loading-container{margin-left:0;}}}}.fixed-bottom-button{width:100%;flex:0 0 40px;background-color:",";display:flex;align-items:center;justify-content:center;border-top:1px solid transparent;&.show-border{border-top:1px solid ",";}.button{width:226px;height:28px;background:",";border:1px solid ",";border-radius:6px;display:flex;align-items:center;justify-content:center;font-family:PingFang SC;font-weight:500;font-size:12px;color:",";cursor:pointer;&:hover{background:",";}&:active{background:",";}svg{margin-right:4px;}}}"],E=>E.theme.color_text_L1,E=>E.theme.color_btn_secondary_hover,E=>E.theme.color_bg_white,E=>E.theme.color_bg_border_01,E=>E.theme.color_bg_white,E=>E.theme.color_btn_primary_disabled,E=>E.theme.color_text_L1,E=>E.theme.color_bg_select03,E=>E.theme.color_bg_tab),Ip=ye.Ay.div.withConfig({displayName:"styles__StyledResources",componentId:"sc-18fdmk0-1"})(["&.list{padding:0 6px;ul{flex-direction:column;padding:0;}}&.grid{padding:0 8px;ul{padding:0;}.chosen-title{padding-left:4px;}}.divider.show{margin:8px 0;width:100%;height:1px;background:",";}.chosen-title{width:100%;display:flex;height:32px;align-items:center;font-family:PingFang SC;font-weight:500;font-size:12px;color:",";padding-left:6px;margin-bottom:4px;}ul{display:flex;flex-wrap:wrap;padding:0 12px;}.empty-template-search-container{height:185px;.center{.pure-svg-icon{width:70px;height:70px;}span{font-size:12px;}}}"],E=>E.theme.color_bg_border_01,E=>E.theme.color_text_L1),Wh=ye.Ay.li.withConfig({displayName:"styles__StyledListResourceItem",componentId:"sc-18fdmk0-2"})(["display:flex;flex-direction:row;align-items:center;position:relative;margin-bottom:8px;border-radius:8px;cursor:pointer;padding:6px;width:100%;.img-box{width:74px;height:54px;margin-right:12px;flex:0 0 74px;border-radius:8px;overflow:hidden;position:relative;border:1px solid ",";img{width:100%;height:100%;background:",";-webkit-user-drag:none;object-fit:cover;}}.list-right{flex:1;.title{color:",";margin-top:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;display:block;max-width:145px;}.text-container{flex:1;display:flex;align-items:center;color:",";margin-top:4px;.period{width:2px;height:2px;background:",";border-radius:100%;margin:0 7px;}}}.star{display:none;border-radius:4px;align-items:center;justify-content:center;flex:0 0 24px;&:not(.isStarred):hover{background:",";}}&:hover{background:",";.star{display:flex;}.title{max-width:120px;}}"],E=>E.theme.color_bg_border_01,E=>E.theme.color_bg_card,E=>E.theme.color_text_L1,E=>E.theme.color_text_L3,E=>E.theme.color_text_L3,E=>E.theme.color_navigation_active,E=>E.theme.color_btn_secondary_hover),Bu=ye.Ay.li.withConfig({displayName:"styles__StyledGridResourceItem",componentId:"sc-18fdmk0-3"})(["display:flex;flex-direction:column;align-items:center;position:relative;margin-bottom:8px;cursor:pointer;width:116px;height:112px;position:relative;border-radius:8px;padding:4px 4px 8px 4px;.img-box{width:108px;height:76px;border-radius:6px;overflow:hidden;position:relative;border:1px solid ",";img{width:100%;height:100%;background:",";-webkit-user-drag:none;object-fit:cover;}}&:nth-child(2n + 1){margin-right:2px;}.title-container{display:flex;justify-content:space-between;align-items:center;width:100%;height:16px;margin-top:8px;.title{width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;text-align:left;color:",";}.arrow-left{display:none;.svg-icon{width:6px;height:10px;color:",";}}}.star{display:none;border-radius:4px;align-items:center;justify-content:center;position:absolute;width:16px;height:16px;flex:0 0 16px;top:58px;right:10px;.pure-svg-icon{path{fill:",";stroke:",";}}&.isStarred{background:",";.pure-svg-icon{path{fill:",";stroke:",";}}}&:not(.isStarred){background:",";backdrop-filter:blur(4px);}}&:hover{background:",";.star{display:flex;}.arrow-left{display:block;}}"],E=>E.theme.color_bg_border_01,E=>E.theme.color_bg_card,E=>E.theme.color_text_L2,E=>E.theme.color_text_L3,E=>E.theme.color_text_btn,E=>E.theme.color_text_btn,E=>E.theme.color_btn_primary_normal,E=>E.theme.color_text_btn,E=>E.theme.color_text_btn,E=>E.theme.color_slider_normal,E=>E.theme.color_btn_secondary_hover),_p=(0,r.memo)(E=>{const{isLoading:le,mode:de,resources:_e,chosens:Vt,onChangeCurrentResource:Bt,onStartTemplates:ln}=E;return le?(0,W.jsx)(Td.S,{}):(0,W.jsxs)(Ip,{className:de,children:[_e!=null&&_e.length?(0,W.jsx)("ul",{children:_e.map(Ht=>(0,W.jsx)(Al,{resource:Ht,mode:de,onGotoDetail:Bt,onToggleStar:ln}))}):(0,W.jsx)(Ep.H,{className:"center",type:"common",desc:I18N.LeftSidePanel.widgetPanel.no_star_purchased_desc}),(Vt==null?void 0:Vt.length)>0&&(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)("div",{className:M()("divider",{show:!!(Vt!=null&&Vt.length)})}),(0,W.jsx)("span",{className:"chosen-title",children:"\u7CBE\u9009\u8D44\u6E90\u5E93"}),(0,W.jsx)("ul",{children:Vt.map(Ht=>(0,W.jsx)(Al,{resource:Ht,mode:de,isChosen:!0,onGotoDetail:Bt,onToggleStar:ln}))})]})]})}),Al=(0,r.memo)(E=>{const{mode:le,resource:de,isChosen:_e=!1,onGotoDetail:Vt,onToggleStar:Bt}=E,{cid:ln,title:Ht,cover:En,is_star:po,is_purchased:Lo}=de,Bo=le==="list",Zo=(qo,Go)=>{const $o=Go.querySelector(".title");return $o.offsetWidth<$o.scrollWidth},Yo=(0,r.useCallback)(async qo=>{qo.stopPropagation(),qo.preventDefault(),Bt(de)},[Bt,de]),Jo=(0,r.useCallback)(()=>(0,W.jsxs)(Wh,{onClick:()=>Vt(de),children:[(0,W.jsx)("div",{className:"img-box",children:(0,W.jsx)("img",{src:En||"/mb-proto2/images/lib/lib-emtry.png"})}),(0,W.jsxs)("div",{className:"list-right",children:[(0,W.jsx)("span",{className:"title",children:Ht}),_e?null:(0,W.jsxs)("div",{className:"text-container",children:[Lo&&(0,W.jsx)("span",{children:"\u5DF2\u8D2D"}),Lo&&po&&(0,W.jsx)("span",{className:"period"}),po&&(0,W.jsx)("span",{children:"\u5DF2\u6536\u85CF"})]})]}),(0,W.jsx)(Nd.X,{isStar:po,onClick:Yo})]}),[de]),ea=(0,r.useCallback)(()=>(0,W.jsx)(b2.A,{isStared:de.is_star,marketTemplate:de,onStarTemplates:()=>Bt(de),onClickCard:()=>Vt(de)}),[de]);return(0,W.jsx)(l.A,{content:Ht,distance:20,direction:"down",isShowTipsByTarget:Zo,children:Bo?Jo():ea()},ln)});var Zl=Object.defineProperty,Nc=Object.defineProperties,Z1=Object.getOwnPropertyDescriptors,V0=Object.getOwnPropertySymbols,K1=Object.prototype.hasOwnProperty,Tp=Object.prototype.propertyIsEnumerable,w2=(E,le,de)=>le in E?Zl(E,le,{enumerable:!0,configurable:!0,writable:!0,value:de}):E[le]=de,Y1=(E,le)=>{for(var de in le||(le={}))K1.call(le,de)&&w2(E,de,le[de]);if(V0)for(var de of V0(le))Tp.call(le,de)&&w2(E,de,le[de]);return E},Pp=(E,le)=>Nc(E,Z1(le)),Uu=(E,le)=>{var de={};for(var _e in E)K1.call(E,_e)&&le.indexOf(_e)<0&&(de[_e]=E[_e]);if(E!=null&&V0)for(var _e of V0(E))le.indexOf(_e)<0&&Tp.call(E,_e)&&(de[_e]=E[_e]);return de},Gh=(0,r.forwardRef)((E,le)=>{var de=E,{size:_e,spin:Vt,style:Bt}=de,ln=Uu(de,["size","spin","style"]);const Ht=Y1(Y1({width:_e||"var(--x-icon-size, 1em)",height:_e||"var(--x-icon-size, 1em)",animation:Vt?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),Bt);return r.createElement("svg",Pp(Y1({ref:le,style:Ht},ln),{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),r.createElement("g",{clipPath:"url(#clip0_1011_142)"},r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.40203 13.653L10.5631 9.03816C11.1897 8.12335 12.6271 8.12335 13.2537 9.03816L16.4147 13.653C17.0903 14.6393 16.3277 15.9298 15.0694 15.9298H8.74735C7.48905 15.9298 6.72648 14.6393 7.40203 13.653Z",fill:"#3D7FFF"}),r.createElement("path",{d:"M9.89024 8.64044C10.8302 7.26823 12.9863 7.26823 13.9262 8.64044L14.3899 9.31786L15.2879 10.6289C15.2906 10.6193 15.2931 10.6097 15.2955 10.6L16.2563 6.78144C16.4568 5.98472 15.9241 5.18788 15.0665 5.00165L10.9563 4.10904C10.0987 3.92281 9.24105 4.4177 9.04059 5.21442L8.07981 9.03296C7.93798 9.59666 8.16317 10.1604 8.61077 10.5079L9.27629 9.53634L9.89024 8.64044Z",fill:"#FF75E8"}),r.createElement("path",{d:"M7.30368 8.55427C7.09067 9.40088 7.43003 10.2463 8.09975 10.7663L8.1793 10.828L7.82114 11.3508L6.99605 12.5554C4.96367 12.5036 3.33325 10.9566 3.33325 9.05595C3.33325 7.12253 5.0203 5.55518 7.10138 5.55518C7.42228 5.55518 7.73381 5.59244 8.03123 5.66257L7.75887 6.74506L7.30368 8.55427Z",fill:"#FFA558"})),r.createElement("defs",null,r.createElement("clipPath",{id:"clip0_1011_142"},r.createElement("rect",{width:"20",height:"20",fill:"white"}))))}),C2=s(25234),sl=s(95549),X1=s(54450);const jc=ye.Ay.div.withConfig({displayName:"styles__StyledItemThumbnailList",componentId:"sc-1qlb8ua-0"})(["height:100%;padding-top:4px;padding-left:12px;overflow-x:hidden;overflow-y:auto;&::-webkit-scrollbar{display:none;}&:hover::-webkit-scrollbar{display:block;}ul{width:calc(100% + 18px);display:flex;flex-wrap:wrap;}"]);class ic extends r.PureComponent{render(){const{groupCid:le,currentUserId:de,canEditLibrary:_e,canAddToOrg:Vt,selectCidSet:Bt,items:ln,itemActions:Ht,containerRect:En,createTemplatesData:po}=this.props;return(0,W.jsx)(jc,{className:M()("item-thumbnail-list","thumbnail-list"),children:(0,W.jsx)("ul",{children:ln.map(Lo=>(0,W.jsx)(X1.A,{canAddToOrg:Vt,canEditLibrary:_e,groupCid:le,item:Lo,currentUserId:de,isSelect:Bt.has(Lo.key),containerRect:En,comboActions:Ht,createTemplatesData:po},Lo.key))})})}}(0,sl.A)(ic,"defaultProps",{selectCidSet:new Set,canEditLibrary:!0});var rs=s(39303),is=s(78257),Q1=s(72140),Qd=s(69874);const Ou=(0,ye.Ay)(je.Ay).withConfig({displayName:"styles__StyledActionsMenu",componentId:"sc-1cwo72i-0"})(["",";"],ot.ZJ),Zh=(0,ye.DU)(["body > div > div.context-menu-mask{width:initial;height:initial;.mb-resource-action-menu{ul{min-width:auto;width:136px;.add-sub-item > a{padding-left:16px;}}}}"]);var S0=s(39e3),p1=s(81717);const J1=(E,le)=>{if(!E)return 0;let de=le?E.assets_count:E.children?E.children.length:0;if(E.subFolder)for(const _e of E.subFolder)de+=J1(_e,le);return de},q1=(0,r.memo)(E=>{const{canRemove:le,position:de,isShowAddToOrg:_e,level:Vt,onShowMenu:Bt}=E,{onEdit:ln,onTransferOrg:Ht,onRemove:En,onAdd:po,onAddSub:Lo}=E,Bo=(0,I.d4)(ne.qv),Zo=Go=>{Ht(Go),Bt(!1)},Yo=Go=>{ln(Go),Bt(!1)},Jo=Go=>{En(Go),Bt(!1)},ea=Go=>{Go.stopPropagation(),Lo(Go),Bt(!1)},qo=(Go,$o)=>{Go.stopPropagation(),po(Go,$o),Bt(!1)};return(0,W.jsxs)(W.Fragment,{children:[(0,W.jsxs)(Ou,{className:M()("mb-resource-action-menu"),position:de,children:[(0,W.jsx)(je.Dr,{text:I18N.Resources.combo_panel.rename,onClick:Yo}),(0,W.jsxs)(je.Dr,{text:I18N.Resources.combo_panel.add,isAiry:!0,children:[(0,W.jsx)(je.Dr,{text:I18N.Resources.combo_panel.subfolder,className:"add-sub-item",disabled:Vt===4,onClick:ea}),(0,W.jsx)(je.Dr,{text:I18N.Resources.combo_panel.add_folder_above,className:"add-sub-item",onClick:Go=>qo(Go,"up")}),(0,W.jsx)(je.Dr,{text:I18N.Resources.combo_panel.add_folder_below,className:"add-sub-item",onClick:Go=>qo(Go,"down")})]}),_e&&Bo&&(0,W.jsx)(je.Dr,{text:I18N.Resources.combo_panel.add_to_org,onClick:Zo}),le&&(0,W.jsx)(je.Dr,{text:I18N.Resources.combo_panel.delete,onClick:Jo})]}),(0,W.jsx)(Zh,{})]})});q1.displayName="ActionsMenu";const S2=E=>{const{source:le,isOrg:de,sceneTag:_e,canRemove:Vt,cgCid:Bt,level:ln,isShowAddToOrg:Ht,showMenu:En,projectUpperCid:po,teamCid:Lo,group:Bo,onShowMenu:Zo,onEdit:Yo,onRemove:Jo,onTransferOrg:ea,onAdd:qo,onAddSub:Go}=E,{name:$o,children:ba}=Bo,va=J1(Bo,!1)>0,[pr,lr]=r.useState({top:0,left:0}),Cr=r.useRef(null),si=jr=>{if(jr.stopPropagation(),Zo(!En),En)return;const{top:Gr,left:Ei}=Cr.current.getBoundingClientRect();lr({top:Gr+24,left:Ei})},Ui=jr=>{let{target:Gr}=jr;!En||!Cr||Gr.closest(".resource-menu-opener."+Bt)||Gr.closest(".mb-resource-action-menu")||Zo(!1)},Qi=jr=>{jr.stopPropagation(),va?(MB.action("modal:update:state",{comboUploadModal:{isOpen:!0,cgCid:Bt,projectUpperCid:po,teamCid:Lo,comboName:$o}}),(0,p1.d8)($o,_e)):MB.notice({type:"warning",text:I18N.Resources.combo_panel.no_combo_publish_mkt_error})};return(0,W.jsxs)(W.Fragment,{children:[le===is.lS.Builtin&&!de&&!ENV.IS_ON_PREMISES&&(0,W.jsx)(l.A,{content:I18N.Resources.combo_panel.publish_to_mkt,direction:"down",children:(0,W.jsx)("a",{className:"action",onClick:Qi,children:(0,W.jsx)(j.C,{name:"left_panel/combo/upload"})})}),(0,W.jsx)(l.A,{content:I18N.Resources.all,direction:"down",children:(0,W.jsx)("a",{className:M()("action resource-menu-opener",Bt,{"show-menu":En}),onClick:si,ref:Cr,children:(0,W.jsx)(j.C,{name:"left_panel/combo/action_menu"})})}),En&&(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(q1,{position:pr,isShowAddToOrg:Ht,canRemove:Vt,level:ln,onEdit:Yo,onRemove:Jo,onTransferOrg:ea,onShowMenu:Zo,onAdd:qo,onAddSub:Go}),(0,W.jsx)(S0.A,{target:document,onMouseDown:(0,S0.t)(Ui,{capture:!0})})]})]})},Kh=(0,J.Mz)([ne.F2,ne.H7,ne.PL],(E,le,de)=>{let{scene_tag:_e}=de;return{projectUpperCid:E==null?void 0:E.cid,teamCid:le==null?void 0:le.cid,sceneTag:_e}}),fd=(0,I.Ng)(E=>Kh(E))((0,r.memo)(S2)),Fu=E=>{const{isOrg:le,source:de,level:_e,cgCid:Vt,isShowAddToOrg:Bt,canRemove:ln,groupAction:Ht,group:En,isEditing:po,showMenu:Lo,onShowMenu:Bo}=E,{onTransfer:Zo,onEdit:Yo,onRemove:Jo,onAdd:ea,onAddSub:qo}=Ht,Go=(0,r.useMemo)(()=>po?"":En.cid,[po,En.cid]),$o=(0,r.useCallback)(Cr=>{Cr.stopPropagation(),Zo(En)},[En,Zo]),ba=(0,r.useCallback)(Cr=>{Cr.stopPropagation(),Yo(Go)},[Go,Yo]),sa=(0,r.useCallback)(Cr=>{Cr.stopPropagation(),Jo(En)},[En,Jo]),va=(0,r.useCallback)((Cr,si)=>{Cr.stopPropagation(),ea(En,si)},[En,ea]),pr=(0,r.useCallback)(Cr=>{Cr.stopPropagation(),qo(En)},[En,qo]),lr=Cr=>Cr.preventDefault();return po?null:(0,W.jsx)("div",{className:"actions "+(de||""),children:ENV.IS_MO?de===is.lS.Builtin&&!le?(0,W.jsx)(fd,{cgCid:Vt,isShowAddToOrg:Bt,showMenu:Lo,canRemove:ln,group:En,onShowMenu:Bo,onEdit:ba,onRemove:sa,onTransferOrg:$o}):(0,W.jsxs)(W.Fragment,{children:[Bt?(0,W.jsx)(l.A,{content:I18N.Popups.add_to_org,direction:"down",children:(0,W.jsx)("a",{className:"action",onClick:$o,children:(0,W.jsx)(j.C,{name:"design/add_to_org"})})}):null,(0,W.jsx)("a",{className:"action",onMouseDown:lr,onClick:ba,children:(0,W.jsx)(j.C,{name:"general/pen"})}),ln&&(0,W.jsx)("a",{className:"action",onClick:sa,children:(0,W.jsx)(j.C,{name:"design/trash"})})]}):(0,W.jsx)(fd,{isOrg:le,source:de,cgCid:Vt,level:_e,isShowAddToOrg:Bt,showMenu:Lo,canRemove:ln,group:En,onShowMenu:Bo,onEdit:ba,onRemove:sa,onTransferOrg:$o,onAdd:(Cr,si)=>va(Cr,si),onAddSub:pr})})},ed=(0,r.memo)(Fu),jd=ye.Ay.div.withConfig({displayName:"styles__StyledCollapsePanel",componentId:"sc-jkmcuu-0"})(["&.show-guide:first-child header{background:",";}header{height:32px;padding-left:10px;padding-right:10px;display:flex;align-items:center;cursor:pointer;.title{flex:1;height:20px;line-height:18px;color:",";white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}.arrow-16{margin-right:6px;transition:transform 0.2s ease-in-out;path{stroke:",";}}.arrow-icon{flex-shrink:0;margin:0 6px 0 4px;width:6px;height:8px;text-align:center;color:",";transition:transform 0.2s ease-in-out;}.expanded-icon{width:14px;height:14px;margin-right:4px;.main{fill:",";}.secondary{fill:",";}}&:hover,&.show-menu{background:",";}}&.collapse-children > header{padding-left:12px;}&:not(.expanded) > header .arrow-16{transform:rotate(-90deg);}"],E=>E.theme.color_btn_secondary_hover,E=>E.theme.color_text_L1,E=>E.theme.color_text_L3,E=>E.theme.sce_svg_arrow_icon_color,E=>E.theme.color_text_L3,E=>E.theme.color_text_disabled01,E=>E.theme.color_btn_secondary_hover);function Ll(E){let{isOrg:le,canEditLibrary:de,className:_e,width:Vt,level:Bt,isEditing:ln=!1,shouldAuth:Ht=!1,currentUserId:En="",isShowTransferOrg:po,children:Lo,groupAction:Bo,group:Zo,isAsset:Yo,isExpanded:Jo,source:ea,showComboUploadGuide:qo,onConfirm:Go}=E;const $o=(0,r.useRef)(null),[ba,sa]=r.useState(!1),va=jr=>{jr.stopPropagation();const{onToggle:Gr}=Bo;Gr(Zo)},{cid:pr,name:lr}=Zo,Cr=J1(Zo,Yo),{onTransfer:si}=Bo,Ui=!0,Qi=Jo?"design/group_open":"design/group_close";return(0,W.jsxs)(jd,{type:"asset-collapse-panel",className:M()("collapse-panel","collapse-children",_e,{expanded:Jo},{"show-guide":qo}),"data-cid":pr,children:[(0,W.jsxs)("header",{className:M()({"show-menu":ba}),onClick:va,style:{width:Vt},children:[(0,W.jsx)(Q.A,{className:"arrow-16",size:16}),(0,W.jsx)(j.C,{className:"expanded-icon",name:Qi}),(0,W.jsx)(Qd.A,{value:lr,className:"title",isEditing:ln,onConfirm:Go},ln+lr),!ln&&(0,W.jsx)("span",{className:M()("count",{"is-always-show":!de}),children:Cr}),de&&(0,W.jsx)(ed,{isOrg:le,source:ea,level:Bt,cgCid:pr,isEditing:ln,isShowAddToOrg:si&&po,canRemove:Ui,group:Zo,groupAction:Bo,showMenu:ba,onShowMenu:sa})]}),(0,W.jsx)(Q1.A,{collapse:!Jo,children:Lo})]})}const $1=(0,ye.Ay)(Ll).withConfig({displayName:"styles__StyledCollapsePanel",componentId:"sc-71qotj-0"})(["position:relative;&.collapse-children > header{padding-left:","px;}&.show-guide:first-child header{.expanded-icon .main{fill:",";}.actions{display:block;background:",";color:",";}.count{display:none;}}& > header{position:relative;transition:border-color 0.2s ease-in-out;padding-left:12px;.count{margin-left:auto;margin-right:10px;color:",";opacity:0.7;}.actions{display:none;position:absolute;top:5px;bottom:5px;right:12px;background:",";.action{display:inline-flex;align-items:center;justify-content:center;column-gap:4px;width:24px;height:24px;color:",";font-size:12px;border-radius:4px;.svg-icon{width:12px;height:12px;}&:hover,&.show-menu{background-color:",";}}}&:hover,&.show-menu{.expanded-icon .main{fill:",";}.title{width:","px;flex:0 1 auto;}.actions{display:block;background:",";color:",";}.count{display:none;}.is-always-show.count{display:block;}}}&::after{content:'';position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;border:2px solid transparent;transition:all 0.15s ease-in-out;}&.active{pointer-events:none;& > header{border-color:transparent;.actions{display:none;}}&::after{background:rgba(41,141,248,0.06);border-color:#298df8;}}.collapse-loading{height:24px;}.item-thumbnail-list.thumbnail-list{ul{li.thumbnail-list-item{.item-name{text-align:left;padding:0 6px;}}}}"],E=>12+(E.level-1)*8,E=>E.theme.color_proto,E=>E.theme.color_btn_secondary_hover,E=>E.theme.color_proto,E=>E.theme.color_text_L3,E=>E.theme.color_bg_white,E=>E.theme.color_text_L1,E=>E.theme.color_btn_secondary_active,E=>E.theme.color_proto,E=>E.isOrg?185:165,E=>E.theme.color_btn_secondary_hover,E=>E.theme.color_proto);class u1 extends r.PureComponent{constructor(le){super(le),(0,sl.A)(this,"handleConfirm",de=>{const{comboGroupAction:{onConfirm:_e},comboGroup:Vt}=this.props;_e(de,Vt,()=>{this.isNewGroup&&MB.notice({text:I18N.Popups.folder_save_success}),this.isNewGroup=!1})}),(0,sl.A)(this,"renderSubFolders",de=>{const{isOrg:_e,isEditing:Vt,canEditLibrary:Bt,canAddToOrg:ln,editingCid:Ht,width:En,level:po,containerRect:Lo,comboActions:Bo,comboGroupAction:Zo,isShowTransferOrg:Yo,currentUserId:Jo,comboOpenCids:ea,showComboUploadGuide:qo,createTemplatesData:Go}=this.props;return de.map($o=>(0,W.jsx)(u1,{isOrg:_e,canEditLibrary:!_e||Bt,canAddToOrg:ln,comboGroup:$o,isEditing:Ht===$o.cid,editingCid:Ht,width:En,level:po+1,containerRect:Lo,comboActions:Bo,comboGroupAction:Zo,isShowTransferOrg:Yo,currentUserId:Jo,comboOpenCids:ea,showComboUploadGuide:qo,createTemplatesData:Go},$o.cid))}),this.isNewGroup=!1}componentDidMount(){this.props.isEditing&&(this.isNewGroup=!0)}render(){const{isOrg:le,canEditLibrary:de,canAddToOrg:_e,comboGroup:Vt,isEditing:Bt,editingCid:ln,width:Ht,level:En,containerRect:po,comboActions:Lo,comboGroupAction:Bo,isShowTransferOrg:Zo,currentUserId:Yo,comboOpenCids:Jo,showComboUploadGuide:ea,createTemplatesData:qo}=this.props,{cid:Go,children:$o,subFolder:ba}=Vt,sa=Jo.includes(Go);let va;const pr=$o,lr=!!($o!=null&&$o.length);return(0,W.jsx)($1,{isOrg:le,canEditLibrary:de,source:is.lS.Builtin,"data-cid":Go,className:"combo-group-panel",group:Vt,isExpanded:sa,width:Ht,level:En,isEditing:Bt,editingCid:ln,currentUserId:Yo,isShowTransferOrg:Zo,groupAction:Bo,showComboUploadGuide:ea,onConfirm:this.handleConfirm,children:(0,W.jsxs)(W.Fragment,{children:[va?(0,W.jsx)(rs.A,{className:"collapse-loading"}):null,lr?(0,W.jsx)(ic,{groupCid:Go,canEditLibrary:de,canAddToOrg:_e,items:pr,currentUserId:Yo,containerRect:sa?po:null,itemActions:Lo,createTemplatesData:qo}):null,ba&&this.renderSubFolders(ba)]})})}}(0,sl.A)(u1,"defaultProps",{level:1});const A2=ye.Ay.div.withConfig({displayName:"StyledNoComboGroups",componentId:"sc-3xhtxy-0"})(["padding:0 12px;display:flex;align-items:center;justify-content:center;img{width:48px;height:48px;margin-right:11px;}p{color:",";a{color:",";&:hover{color:",";}}}"],E=>E.theme.color_text_L3,E=>E.theme.color_text_link_normal,E=>E.theme.color_text_link_hover),Nl=(0,ye.Ay)(hc.o).withConfig({displayName:"StyledCustomizeList",componentId:"sc-txzsf6-0"})(["&.active{box-shadow:inset 0 0 0 3px rgba(41,141,248,0.6);}.thumbnail-list{height:unset;padding-top:8px;}"]);var Lp=s(51007),Dc=s(43371),Vu=s(27508),k2=s(76431);const Np=(0,r.memo)(E=>{const{isOrg:le,comboGroupList:de,rootProject:_e,editingCid:Vt,canEditLibrary:Bt,canAddToOrg:ln,currentOrg:Ht,currentUser:En,comboOpenCids:po,isShowUpgradeButton:Lo,showComboUploadGuide:Bo,createTemplatesData:Zo,onScroll:Yo}=E,Jo=(0,r.useRef)(null),ea=(0,I.wA)();return(0,r.useEffect)(()=>{!le&&(0,k2.K)(I18N)[nn.c.GUIDE_PUBLISH_COMBO_TO_MKT].howToShow({sceneTag:_e.scene_tag,hasComboFolder:!!de&&de.length>0})},[]),(0,W.jsx)(Lp.Z,{id:"group-list-container",isShowUpgradeButton:Lo,children:(0,W.jsx)("div",{className:M()("group-main",nn.c.GUIDE_PUBLISH_COMBO_TO_MKT),children:(0,W.jsx)(Nl,{id:"group-list",show:!0,type:"main",style:{width:ts.qv},ref:Jo,onScrollChange:Yo,children:(qo,Go)=>(0,W.jsx)(W.Fragment,{children:de.length?de.map($o=>(0,W.jsx)(u1,{isOrg:le,canEditLibrary:Bt,canAddToOrg:ln,level:$o.level+1,comboGroup:$o,comboOpenCids:po,width:ts.qv,isEditing:Vt===$o.cid,editingCid:Vt,containerRect:Go?qo:null,comboActions:(0,Dc.s)({...E,dispatch:ea,group:$o,popupsName:is.lS.Builtin}),comboGroupAction:(0,Vu.H)({...E,dispatch:ea,popupsName:is.lS.Builtin}),isShowTransferOrg:!!Ht,currentUserId:En==null?void 0:En.id,showComboUploadGuide:Bo,createTemplatesData:Zo},$o.cid)):(0,W.jsx)(zu,{isOrg:le})})})})})}),zu=E=>{let{isOrg:le}=E;return(0,W.jsxs)(A2,{children:[(0,W.jsx)("img",{src:"/mb-workspace/images/workspace/design/empty_self_make.png",alt:""}),(0,W.jsx)("p",{children:le?I18N.Resources.ComboPanel.noOrgCombo:I18N.Resources.ComboPanel.noUserCombo})]})},Ol=Np;var ep=s(54190),M2=s(83413);const Wu=ye.Ay.div.withConfig({displayName:"styles__StyledCustomComboGroupPanel",componentId:"sc-mpecqb-0"})(["display:flex;flex:1 1 0;flex-direction:column;overflow:hidden;> header{display:flex;align-items:center;padding:16px 12px;.box-item{border:1px solid ",";background:",";color:",";p{margin-left:0;}&.disabled{color:",";}&:not(.disabled):hover{background:",";}&:not(.disabled):active{background:",";}}}"],E=>E.theme.color_bg_border_02,E=>E.theme.color_bg_white,E=>E.theme.color_text_L1,E=>E.theme.color_text_disabled01,E=>E.theme.color_btn_secondary_hover,E=>E.theme.color_btn_secondary_active),Jd=ye.Ay.div.withConfig({displayName:"styles__StyledCustomComboPanel",componentId:"sc-mpecqb-1"})(["display:flex;flex:1;overflow:hidden;.upgrade-combo{width:100%;height:40px;background-color:",";display:flex;align-items:center;justify-content:center;position:absolute;bottom:0;left:0;border-top:1px solid transparent;&.show-border{border-top:1px solid ",";}.button-root{width:226px;height:28px;}}"],E=>E.theme.color_bg_white,E=>E.theme.color_bg_border_02),Hu=(0,J.Mz)([T.tl,ne.wA,ne.qv,T.tY,ne.X_,ne.Pz,ne.PL,ne.HW,te.PI,te.k3,T.wS,T.lb,T.MV,T.bg,q.r,ne.F2,ne._x,T.L,T.G6,T.TD,T.WF,ne.H7,T.wY,ne.YY],(E,le,de,_e,Vt,Bt,ln,Ht,En,po,Lo,Bo,Zo,Yo,Jo,ea,qo,Go,$o,ba,sa,va,pr,lr)=>({userComboGroupList:Lo,orgComboGroupList:Bo,editingCid:E,currentOrg:le,canEditLibrary:de,collapsePanelSet:_e,scale:Vt,canvasRect:Bt,rootProject:ln,currentUser:Ht,showDragMode:En,isAdsorbentReferenceLine:po,localUserComboOpenCids:Zo,localOrgComboOpenCids:Yo,currentEditMode:Jo,projectUpperCid:ea==null?void 0:ea.cid,userFcg:ea,orgFcg:qo,upgradeUserComboGroupList:Go,upgradeOrgComboGroupList:$o,isRequestV7UserComboGroup:ba,isRequestV7OrgComboGroup:sa,teamCid:va==null?void 0:va.cid,showComboUploadGuide:pr,createTemplatesData:lr})),E2=(0,r.memo)(E=>{let{isOrg:le}=E;const de=(0,I.d4)(Hu),[_e,Vt]=(0,r.useState)(!1),{isLoading:Bt,initComboSdkStore:ln}=(0,M2.x)(),Ht=(0,I.wA)(),{canEditLibrary:En,userComboGroupList:po,orgComboGroupList:Lo,localUserComboOpenCids:Bo,localOrgComboOpenCids:Zo,projectUpperCid:Yo,upgradeUserComboGroupList:Jo,upgradeOrgComboGroupList:ea,...qo}=de,Go=le&&ea.length!==0||!le&&Jo.length!==0,$o=async()=>{const{currentUser:va,currentOrg:pr,isRequestV7UserComboGroup:lr,isRequestV7OrgComboGroup:Cr}=de;if(va!=null&&va.id){if(le){if(pr!=null&&pr.cid&&!Cr){const{orgComboGroupList:Ui}=await(0,ep.bX)({orgCid:pr.cid}),Qi=Ui.sort((jr,Gr)=>jr.position-Gr.position);MB.action("entry:upgrade:org:combo:group:list",{upgradeOrgComboGroupList:Qi||[]})}}else if(!lr){const{userComboGroupList:Ui}=await(0,ep.qi)(),Qi=Ui.sort((jr,Gr)=>jr.position-Gr.position);MB.action("entry:upgrade:user:combo:group:list",{upgradeUserComboGroupList:Qi||[]})}}},ba=()=>{const{currentUser:va,userFcg:pr,orgFcg:lr,orgComboGroupList:Cr,userComboGroupList:si,upgradeUserComboGroupList:Ui,upgradeOrgComboGroupList:Qi}=de;Ht({type:"modal:update:state",payload:{upgradeComboModal:{isOpen:!0,currentComboPanel:le?"org":"user",comboGroupList:le?Cr:si,upgradeComboGroupList:le?Qi:Ui,userFcg:pr,orgFcg:lr,userId:va==null?void 0:va.id}}})};(0,r.useEffect)(()=>{(async()=>{await ln(le),await $o()})()},[]);const sa=va=>{var pr;Vt(((pr=va.target)==null?void 0:pr.scrollTop)>0)};return Bt?(0,W.jsx)(Td.S,{className:"margin-top-120"}):(0,W.jsxs)(Jd,{children:[(0,W.jsx)(Ol,{isOrg:le,canEditLibrary:!le||En,canAddToOrg:En,comboGroupList:le?Lo:po,comboOpenCids:le?Zo:Bo,projectUpperCid:le?"":Yo,isShowUpgradeButton:(!le||En)&&Go,...qo,onScroll:sa}),(!le||En)&&Go&&(0,W.jsx)("div",{className:M()("upgrade-combo",{"show-border":_e}),onClick:ba,children:(0,W.jsx)(C2.Oc,{type:"secondary",size:"tiny",corner:"soft",children:I18N.Resources.import_old_widgets})})]})});var h1=s(5288),qd=s(47163);const Gu=ye.Ay.div.withConfig({displayName:"styles__StyledTabResourcesOptionBox",componentId:"sc-17ufrg5-0"})(["width:100%;display:flex;flex-shrink:0;align-items:center;cursor:pointer;.new-picture{margin-left:14px;}.box-item{height:28px;background:",";color:",";border-radius:6px;display:flex;flex:1;flex-shrink:0;align-items:center;justify-content:center;&.disabled{cursor:not-allowed;color:",";.upload-image{svg.svg-icon{path{stroke:",";}}}}&:not(.disabled):hover{background:",";.upload-image{svg.svg-icon{path{stroke:",";}}}}p{margin-left:2px;}}"],E=>E.theme.color_bg_card,E=>E.theme.color_text_L1,E=>E.theme.color_text_L3,E=>E.theme.color_text_L3,E=>E.theme.color_btn_secondary_hover,E=>E.theme.color_text_L1),Zu=ye.Ay.div.withConfig({displayName:"styles__StyledIconResourcesOptionBox",componentId:"sc-17ufrg5-1"})(["display:flex;align-items:center;.container{&:first-child{margin-right:8px;}}"]),I2=ye.Ay.div.withConfig({displayName:"styles__StyledIconPark",componentId:"sc-17ufrg5-2"})(["width:","px;height:","px;display:flex;align-items:center;justify-content:center;&.add{svg.svg-icon{width:10px;height:10px;}}&.add-folder{svg.svg-icon{width:13px;height:12px;}}&.upload-image{svg.svg-icon{width:8px;height:10px;path{stroke:",";}}}&.disabled{cursor:not-allowed;color:",";}&:not(.disabled).icon-container{border-radius:4px;cursor:pointer;transition:all 0.2s ease-in-out;&:active{background-color:",";}&:not(:active):hover{background-color:",";}}"],E=>E.width||16,E=>E.width||16,E=>E.theme.color_text_L2,E=>E.theme.color_text_L3,E=>E.theme.color_btn_secondary_active,E=>E.theme.color_btn_secondary_active);class Ku extends r.PureComponent{constructor(){super(...arguments),(0,sl.A)(this,"handleAddToNewWeights",()=>{const{canCreateCombo:le,isOrg:de,dispatch:_e}=this.props;le&&_e({type:"entry:check:combo:auto:to:user:org:group",payload:{isOrg:de}})}),(0,sl.A)(this,"handleAddToNewAssets",()=>{const{dispatch:le,isOrg:de}=this.props;le({type:"entry:check:asset:auto:to:user:org:group",payload:{isOrg:de}})}),(0,sl.A)(this,"handleCreateGroup",()=>{const{isOrg:le,isImage:de,collapsePanelSet:_e,dispatch:Vt}=this.props;Vt(de?{type:"entry:auto:create:asset-group",payload:{isOrg:le}}:{type:"entry:auto:create:combo-group",payload:{isOrg:le}});const Bt=new Set(_e),ln=de?le?h1.eA:h1.Hj:le?h1.iT:h1.fO;Bt.add(ln),Vt({type:"resources:update:collapsePanelSet",payload:{collapsePanelSet:Bt}})})}render(){const{canCreateCombo:le,hasSelectedTree:de,isPureIcon:_e,isStar:Vt,isImage:Bt,isOrg:ln,canEditLibrary:Ht,onGotoFind:En}=this.props,po=Bt?"":de?le&&_e?I18N.Popups.new_weights:"":I18N.Resources.userResources.selectedElement;return(0,W.jsx)(W.Fragment,{children:_e?Vt?(0,qd.k)()?(0,W.jsx)(l.A,{content:I18N.Popups.findMore,direction:"down",children:(0,W.jsx)("div",{className:"container",children:(0,W.jsx)(z0,{name:"panel/add",className:"add icon-container",width:24,onClick:En})})}):null:(0,W.jsx)(Yh,{comboTips:po,canCreateCombo:le,onAddToNewWeights:this.handleAddToNewWeights,onCreateGroup:this.handleCreateGroup}):(0,W.jsx)(_2,{comboTips:po,canCreateCombo:le,isOrg:ln,canEditLibrary:Ht,isImage:Bt,onAddToNewAssets:this.handleAddToNewAssets,onAddToNewWeights:this.handleAddToNewWeights,onCreateGroup:this.handleCreateGroup})})}}const Yh=(0,r.memo)(E=>{let{comboTips:le,canCreateCombo:de,onAddToNewWeights:_e,onCreateGroup:Vt}=E;return(0,W.jsxs)(Zu,{children:[(0,W.jsx)(l.A,{content:le,direction:"down",children:(0,W.jsx)("div",{className:"container",children:(0,W.jsx)(z0,{name:"panel/add",className:M()("add","icon-container",{disabled:!de}),width:24,onClick:_e})})}),(0,W.jsx)(l.A,{content:I18N.Popups.new_folder,direction:"down",children:(0,W.jsx)("div",{className:"container",children:(0,W.jsx)(z0,{name:"common/add/folder",className:"add-folder icon-container",width:24,onClick:Vt})})})]})}),_2=(0,r.memo)(E=>{let{comboTips:le,canCreateCombo:de,isImage:_e,isOrg:Vt,canEditLibrary:Bt,onAddToNewWeights:ln,onAddToNewAssets:Ht,onCreateGroup:En}=E;const po=Vt&&!Bt||!_e&&!de,Lo=Vt&&!Bt;return(0,W.jsxs)(Gu,{children:[(0,W.jsx)(l.A,{maxWidth:"236px",content:Vt?Bt?le:I18N.pComment.no_permission_contact_administrator:le,direction:"down",children:(0,W.jsxs)("div",{className:M()("box-item",{disabled:po}),onClick:po?void 0:_e?Ht:ln,children:[(0,W.jsx)(z0,{name:_e?"art_board/upload/image":"panel/add",className:_e?"upload-image":"add",width:24}),(0,W.jsx)("p",{children:_e?I18N.LibraryContainer.add_image:I18N.Popups.new_weights})]})}),(0,W.jsx)(l.A,{content:Lo?I18N.pComment.no_permission_contact_administrator:"",direction:"down",maxWidth:"236px",style:{padding:"12px 16px"},children:(0,W.jsxs)("div",{className:M()("new-picture box-item",{disabled:Lo}),onClick:Lo?void 0:En,children:[(0,W.jsx)(z0,{name:"common/add/folder",className:"add-folder",width:24}),(0,W.jsx)("p",{children:I18N.Popups.new_folder})]})})]})}),z0=(0,r.memo)(E=>{let{className:le,name:de,width:_e,onClick:Vt}=E;return(0,W.jsx)(I2,{className:le,width:_e,onClick:Vt,children:(0,W.jsx)(j.C,{name:de})})});var td=s(4235),T2=s(59025);const tp=(0,r.memo)(E=>{const{isOrg:le}=E,de=(0,I.wA)(),_e=(0,I.d4)(td.nE),Vt=_e.length>0,Bt=!!((0,T2.ju)(_e)&&!(0,T2.vZ)(_e)),ln=(0,I.d4)(T.tY),Ht=(0,I.d4)(ne.qv);return(0,W.jsxs)(Wu,{className:"custom-combo-group-panel",children:[(0,W.jsx)("header",{children:(0,W.jsx)(Ku,{isOrg:!!le,hasSelectedTree:Vt,canCreateCombo:Bt,collapsePanelSet:ln,isPureIcon:!1,isStar:!1,canEditLibrary:Ht,dispatch:de})}),(0,W.jsx)(E2,{isOrg:!!le})]})}),P2=(0,r.memo)(E=>{const{isLoading:le,resources:de,chosens:_e,onChangeCurrentResource:Vt,onStartTemplates:Bt}=E,[ln,Ht]=(0,r.useState)((0,Ve.Yt)(Xd,"grid",Ve.qW.String)),En=(0,r.useRef)(null),po=(0,I.d4)(T.dR),[Lo,Bo]=(0,r.useState)(!1),Zo=(0,I.wA)(),Yo=ea=>{var qo;Bo(((qo=ea.target)==null?void 0:qo.scrollTop)>0)},Jo=(0,r.useCallback)(()=>{Zo({type:"modal:update:state",payload:{widgetModal:{isOpen:!0,source:il.l.ComponentLibrary}}})},[Zo]);return(0,W.jsxs)(zh,{children:[(0,W.jsx)(d1,{navIndex:po,mode:ln,onSetMode:Ht}),po===0&&(0,W.jsx)(tp,{}),po===1&&(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)("div",{className:"container",children:(0,W.jsxs)("div",{className:"widget-starbuy-scroll-list",ref:En,onScroll:Yo,children:[(0,W.jsx)(hc.A,{className:"widget-starbuy-scrollable-list",children:ea=>(0,W.jsx)(W.Fragment,{children:(0,W.jsx)(_p,{isLoading:le,mode:ln,resources:de,chosens:_e,onChangeCurrentResource:Vt,onStartTemplates:Bt})})}),En&&(0,W.jsx)(Zn.yP,{type:"vertical",containerRef:En,isAutoHideBar:!0})]})}),!ENV.IS_ON_PREMISES&&(0,W.jsx)("div",{className:M()("fixed-bottom-button",{"show-border":Lo}),children:(0,W.jsxs)("div",{className:"button",onClick:Jo,children:[(0,W.jsx)(Gh,{size:20}),I18N.LeftSidePanel.widgetPanel.more_selected_component_libraries]})})]})]})}),np=["mtk6lnxh00wgcu8u","mtk6rlt9u4p7hmtf","mtk6lnewpp7b5x00","mtki03rbk1qwhipm","mtk7mtq58izz3teo"],L2=["mtk6lnxh00wgcu8u","mtm1eo13xsfdpjtu","mtk6rlt9u4p7hmtf","mtk6rmq9a5jc4q79","mtk4s6tmmqedt3o3","mtki03rbk1qwhipm"],Yu=()=>{const E=window.location.hostname;return E.includes("modao.cc")?L2:E.includes("d2test.dev2")?np:[]},W0=(0,r.memo)(()=>{const E=(0,I.d4)(T.w2),[le,de]=(0,r.useState)(!0),[_e,Vt]=(0,r.useState)(!1),[Bt,ln]=(0,r.useState)([]),[Ht,En]=(0,r.useState)(null),po=(0,I.d4)(te.rk),Lo=(0,I.d4)(T.fK),Bo=(0,I.wA)(),Zo=(0,r.useMemo)(()=>Yu(),[]),Yo=(0,r.useMemo)(()=>Zo.map(sa=>{const va=Lo.get(sa);if(va&&!(va!=null&&va.is_star))return va}).filter(sa=>!!sa),[Lo]);(0,r.useEffect)(()=>{(async()=>{if(_e)return;de(!0);const va=await(0,Fs.YC)(La.t_,po);await Bo({type:"entry:resources:init:marketTemplateItemList:map",payload:{resourcesCids:Zo}}),ln(va),de(!1),Vt(!0)})()},[_e]),(0,r.useEffect)(()=>{if(!(Bt!=null&&Bt.length))return;const sa=Bt.find(va=>va.cid===E);sa!=null&&sa.cid&&En(sa)},[E,Bt,En]);const Jo=(0,r.useCallback)(async(sa,va)=>{const{cid:pr}=sa,lr=await(0,Fs.YC)(La.t_,po);if(ln(lr),(Ht==null?void 0:Ht.cid)===pr&&En(va(Ht)),Zo.includes(pr)){const Cr=new Map;Cr.set(pr,va(sa)),Bo({type:"resources:set:resources_map",payload:{mtResourcesMap:Cr}})}},[po,ln,Ht,En,Bo]),ea=(0,r.useCallback)(async sa=>{if(!sa)return;const{is_star:va,cid:pr}=sa,lr=Cr=>({...Cr,is_star:!sa.is_star,star_count:sa.is_star?(sa.star_count||1)-1:(sa.star_count||0)+1});await(0,Ws.lU)(va,pr),await Jo(sa,lr)},[Jo]),qo=(0,r.useCallback)(()=>{En(null),Bo({type:"widget-panel:update:state",payload:{currentStarResourcesCid:""}})},[Bo]),Go=sa=>{Bo({type:"entry:resources:update:find:data",payload:{cid:sa.cid,category:La.t_}})},$o=(0,r.useCallback)(async()=>{const sa=va=>({...va,is_purchased:!0});Ht&&Ht.cid&&(await Jo(Ht,sa),Go(Ht))},[Jo,Go]),ba=(0,r.useCallback)(sa=>{En(sa)},[]);return Ht!=null&&Ht.cid?(0,W.jsx)(rl.A,{className:"me-resources-detail-panel",currentResources:Ht,onStarTemplates:ea,onPaidTemplates:$o,onBack:qo}):(0,W.jsx)(P2,{isLoading:le,resources:Bt,chosens:Yo,onChangeCurrentResource:ba,onStartTemplates:ea})});var $d=s(40610),A0=s(4410),ll=s(78161),nd=s(59890),Xu=s(69623);const Dp=ye.Ay.div.withConfig({displayName:"style__StyledCopyPromptIcon",componentId:"sc-jf92za-0"})(["display:flex;justify-content:center;align-items:center;.svgContainer{width:16px;height:16px;}svg{width:100%;height:100%;border-radius:4px;background-color:rgba(51,51,51,0.5);&:hover{background-color:rgba(51,51,51,0.7);}}"]),Hc=ye.Ay.div.withConfig({displayName:"style__StyledTooltipChildren",componentId:"sc-jf92za-1"})(["padding:12px 16px 12px 16px;color:rgba(255,255,255,1);font-size:12px;line-height:20px;font-weight:400;.title{font-weight:500;margin-bottom:4px;}.copy-btn{color:rgba(128,188,255,1);&:hover{color:rgba(166,210,255,1);}}"]),Rp=(0,ye.DU)([".tooltip-with-hover{position:absolute;left:0;top:0;z-index:1;width:250px;height:auto;background-color:rgba(69,70,71,1);box-shadow:0px 9px 28px 8px rgba(0,0,0,0.05);box-shadow:0px 6px 16px 0px rgba(0,0,0,0.08);box-shadow:0px 3px 6px -4px rgba(0,0,0,0.12);border-radius:6px;.arrow{position:absolute;width:12px;height:7px;svg{width:100%;height:100%;}&.bottom{transform:rotate(180deg);}}}"]),op=r.memo(E=>{let{className:le,prompt:de,onToggleHover:_e}=E;const[Vt,Bt]=(0,r.useState)(!1),ln=(0,r.useRef)(null),Ht=(0,r.useRef)(null),En=Yo=>{Bt(Yo),_e(Yo)},po=Yo=>{Yo.buttons===0&&(clearTimeout(ln.current),En(!0))},Lo=()=>{ln.current=setTimeout(()=>{En(!1)},200)},Bo=Yo=>{const{height:Jo}=Yo.current.getBoundingClientRect();Jo>255&&(Yo.current.style.width="350px")},Zo=(0,r.useMemo)(()=>(0,W.jsxs)(Hc,{children:[(0,W.jsx)("div",{className:"title",children:"\u63D0\u793A\u8BCD"}),(0,W.jsx)("div",{className:"prompt",children:de})]}),[de]);return(0,W.jsxs)(Dp,{className:le,children:[(0,W.jsx)("div",{className:"svgContainer",onMouseEnter:po,onMouseLeave:Lo,ref:Ht,children:(0,W.jsx)(j.C,{name:"design/view/prompt"})}),Vt&&(0,W.jsx)(Bp,{setTooltipSize:Bo,tooltipChildren:Zo,targetNode:Ht.current,handMouseEnter:po,handMouseLeave:Lo})]})}),Qu=12,m1=7,N2=10,Bp=E=>{let{setTooltipSize:le,tooltipChildren:de,targetNode:_e,handMouseEnter:Vt,handMouseLeave:Bt}=E;const ln=(0,r.useRef)(null),[Ht,En]=(0,r.useState)({});(0,r.useEffect)(()=>{ln.current&&le&&le(ln)},[le,ln]),(0,r.useEffect)(()=>{En((()=>{if(!_e||!ln.current)return;const{left:Jo,top:ea,width:qo,height:Go}=_e.getBoundingClientRect(),{offsetWidth:$o,offsetHeight:ba}=ln.current,sa=Jo+qo/2,va=ea+Go,pr=()=>{let jr=sa-$o/2;jr<0&&(jr=0),jr+$o>window.innerWidth&&(jr=window.innerWidth-$o);let Gr=va+N2;return Gr+ba>window.innerHeight&&(Gr=ea-ba-N2),{tooltipLeft:jr,tooltipTop:Gr}},lr=(jr,Gr)=>{const Ei=Jo-jr+qo/2-Qu/2;return Gr<ea?{position:{left:Ei+"px",top:"100%"},className:"bottom"}:{position:{left:Ei+"px",top:-m1+"px"},className:"top"}},{tooltipLeft:Cr,tooltipTop:si}=pr(),{position:Ui,className:Qi}=lr(Cr,si);return{tooltipPosition:{left:Cr+"px",top:si+"px"},arrowPosition:Ui,arrowClassName:Qi}})())},[_e,ln]);const po=Yo=>{Yo.stopPropagation()},{tooltipPosition:Lo,arrowPosition:Bo,arrowClassName:Zo}=Ht;return _e===null?null:(0,Xu.createPortal)((0,W.jsxs)(W.Fragment,{children:[(0,W.jsxs)("div",{className:"tooltip-with-hover",ref:ln,style:Lo,onMouseEnter:Vt,onMouseLeave:Bt,onMouseDown:po,children:[de,(0,W.jsx)(j.C,{className:"arrow "+Zo,style:Bo,name:"design/view/prompt/arrow",isColorPure:!0})]}),(0,W.jsx)(Rp,{})]}),document.body)};var j2=s(4179);const Ju=ye.Ay.div.withConfig({displayName:"style__StyledAIComponentDemoList",componentId:"sc-1p4ymf5-0"})(["height:100%;display:flex;flex-direction:column;.demo-list-title{height:32px;min-height:32px;margin:0 12px 8px 12px;display:flex;align-items:center;font-weight:500;font-size:12px;color:",";}.demo-list-container{padding:0 12px;overflow-y:auto;flex:1;&::-webkit-scrollbar{display:none;}&:hover::-webkit-scrollbar{display:block;}}.list-wrap{display:grid;grid-template-columns:repeat(2,1fr);grid-gap:8px;.ai-widget-item{&.active{opacity:0.5;}}}"],E=>E.theme.color_text_L1),qu=ye.Ay.div.withConfig({displayName:"style__StyledAIComponentDemoItem",componentId:"sc-1p4ymf5-1"})(["display:flex;flex-direction:column;justify-content:center;align-items:center;cursor:pointer;.img-container{width:109px;height:109px;display:flex;justify-content:center;align-items:center;border-radius:6px;overflow:hidden;border:1px solid ",";position:relative;background-color:",";img{max-width:100%;max-height:100%;pointer-events:none;}.preview-icon,.copy-prompt-icon{position:absolute;bottom:6px;opacity:0;z-index:1;}.copy-prompt-icon{right:28px;}.preview-icon{right:6px;}&:hover,&.is-hover{background:",";.preview-icon,.copy-prompt-icon{opacity:1;}}}.demo-title{margin-top:4px;color:",";}"],E=>E.theme.color_bg_border_01,E=>E.theme.color_bg_card,E=>E.theme.color_btn_secondary_active,E=>E.theme.color_text_L3),$u=(0,r.memo)(E=>{let{className:le}=E;const de=(0,I.d4)(ne.X_),_e=(0,I.d4)(ne.Pz),Vt=(0,I.d4)(N.B8),Bt=(0,I.d4)(ne.L8),ln=!0,Ht=!0,En=(0,I.wA)(),[po,Lo]=(0,r.useState)(null),Bo=($o,ba)=>{var sa;const va=(sa=document.getElementById(Vt))==null?void 0:sa.getBoundingClientRect(),pr=(0,$d.yC)()[ba];(0,A0.ow)({e:$o,template:pr,doNotCreateRect:va,canvasRect:_e,scale:de,showDragMode:ln,isAdsorbentReferenceLine:Ht,callback:()=>{Lo(null),nd.ZF.setCache("AI\u7EC4\u4EF6\u5DE6\u4FA7\u521B\u5EFA"),(0,nd.e$)({code:200,userTextContent:"",snapshotBase64Url:"",startTimestamp:""})},onMouseMove:()=>{Lo(ba)}})},Zo=(0,r.useCallback)(async($o,ba)=>{const sa=(0,$d.yC)()[ba];await(0,A0.lc)($o,sa),nd.ZF.setCache("AI\u7EC4\u4EF6\u5DE6\u4FA7\u521B\u5EFA"),(0,nd.e$)({code:200,userTextContent:"",snapshotBase64Url:"",startTimestamp:""})},[]),Yo=(0,r.useCallback)(async($o,ba)=>{if(Jo!=null&&Jo.current){Lo(null);return}const sa=(0,$d.yC)()[ba];if(sa!=null&&sa.data){if(Bt===(sa==null?void 0:sa.data)){En({type:"set:quick-create-widget",payload:{widget:null}});return}En({type:"set:quick-create-widget",payload:{widget:null,quickCreateBuiltinSceneData:sa==null?void 0:sa.data}})}},[Bt,En]),{isMoveAfterClick:Jo,handleMouseDown:ea,handleClick:qo,handleDoubleClick:Go}=(0,j2.A)({onMouseDown:($o,ba)=>Bo($o,ba),onClick:($o,ba)=>Yo($o,ba),onDoubleClick:($o,ba)=>Zo($o,ba)});return(0,W.jsxs)(Ju,{className:le,children:[(0,W.jsx)("div",{className:"demo-list-title",children:"\u7EC4\u4EF6\u751F\u6210\u6848\u4F8B"}),(0,W.jsx)("div",{className:"demo-list-container",children:(0,W.jsx)("div",{className:"list-wrap",children:(0,$d.yC)().map(($o,ba)=>{let{prompt:sa,imgUrl:va,name:pr,data:lr}=$o;return(0,W.jsx)("div",{className:M()("ai-widget-item",{active:Bt===lr||po===ba}),onClick:Cr=>qo(Cr,ba),onDoubleClick:Cr=>Go(Cr,ba),onMouseDown:Cr=>ea(Cr,ba),children:(0,W.jsx)(Up,{prompt:sa,imgUrl:va,name:pr})},ba)})})})]})}),Up=E=>{let{imgUrl:le,name:de,prompt:_e}=E;const[Vt,Bt]=(0,r.useState)(!1),ln=Ht=>{Bt(Ht)};return(0,W.jsxs)(qu,{children:[(0,W.jsxs)("div",{className:"img-container "+(Vt?"is-hover":""),children:[(0,W.jsx)("img",{src:le,alt:""}),(0,W.jsx)("span",{className:"frame"}),(0,W.jsx)(op,{className:"copy-prompt-icon",prompt:_e,onToggleHover:ln}),(0,W.jsx)(ll.Y,{className:"preview-icon",getImgSrc:()=>le,onToggleHover:ln})]}),(0,W.jsx)("span",{className:"demo-title",children:de})]})};var Dd=s(23744);const Op=ye.Ay.div.withConfig({displayName:"styles__StylesAIComponentListItem",componentId:"sc-1v5zp2r-0"})(["position:relative;width:100%;height:74px;margin-top:10px;.item-content{width:100%;height:100%;background:",";box-shadow:0px 2px 12px rgba(3,3,3,0.06);border-radius:8px;display:flex;align-items:start;padding:12px;cursor:pointer;transition:0.2s;&:hover{transform:translateY(-4px);box-shadow:0px 2px 14px rgba(3,3,3,0.12);}.item-left{width:32px;height:32px;display:flex;align-items:center;border-radius:8px;margin-right:12px;justify-content:center;svg{width:32px;height:32px;}&.ai-page{background:",";}&.ai-component{background:",";svg{stop:first-child{stop-color:",";}stop:nth-child(2){stop-color:",";}}}&.ai-flow{background:",";svg{path{fill:",";}}}&.ai-mind{background:",";svg{path{fill:",";}}}&.ai-table{background:",";svg{path{fill:",";}}}&.ai-chart{background:",";svg{path{fill:",";}}}&.ai-magic-fill{background:",";svg{path{fill:",";}}}}.item-right{width:calc(100% - 44px);.item-title{display:flex;justify-content:space-between;align-items:center;font-weight:500;font-size:12px;line-height:17px;color:",";.title-container{height:20px;display:flex;align-items:center;}svg.item-arrow{width:14px;height:14px;path{fill:rgba(0,0,0,0);stroke:",";}}svg.icon-beta{width:40px;height:20px;margin-left:4px;}}.item-des{margin-top:2px;font-weight:400;font-size:12px;line-height:17px;color:",";position:relative;text-align:justify;margin-right:2px;.help-des{color:",";position:absolute;right:0;bottom:0;&:hover{color:",";}}}}}"],E=>E.theme.color_background_white_modal,E=>E.theme.comment_active,E=>E.theme.color_background_AI_component,E=>E.theme.color_AI_component_stop_color_1,E=>E.theme.color_AI_component_stop_color_2,E=>E.theme.color_background_AI_flow,E=>E.theme.color_AI_flow_path,E=>E.theme.color_background_AI_mind,E=>E.theme.color_AI_mind_path,E=>E.theme.color_background_AI_table,E=>E.theme.color_AI_table_path,E=>E.theme.color_background_AI_chart,E=>E.theme.color_AI_chart_path,E=>E.theme.color_background_AI_magin_fill,E=>E.theme.color_AI_magic_fill_path,E=>E.theme.color_text_L1,E=>E.theme.color_text_L1,E=>E.theme.color_text_L2,E=>E.theme.color_text_link_normal,E=>E.theme.color_text_link_hover);class Fp extends r.PureComponent{constructor(){super(...arguments),(0,sl.A)(this,"handleSelectAIComponent",()=>{const{onSelect:le,item:de}=this.props;de.source="\u5DE6\u4FA7AI\u5165\u53E3",le(de)}),(0,sl.A)(this,"handleJumpToHelp",le=>{le.stopPropagation();const{item:{helpUrl:de}}=this.props;de&&window.open(de)})}render(){const{item:{icon:le,title:de,desc:_e,className:Vt,componentTitle:Bt,isShowBeta:ln,helpUrl:Ht}}=this.props;return(0,W.jsx)(Op,{className:"item-content-container",onClick:this.handleSelectAIComponent,children:(0,W.jsxs)("div",{className:"item-content",children:[(0,W.jsx)("div",{className:M()("item-left",Vt),children:(0,W.jsx)(Dd.C,{name:le,isColorPure:!0})}),(0,W.jsxs)("div",{className:"item-right",children:[(0,W.jsxs)("div",{className:"item-title",children:[(0,W.jsxs)("div",{className:"title-container",children:[Bt||de,ln&&(0,W.jsx)(Dd.C,{className:"icon-beta",name:"chatGPT/ai-beta",isColorPure:!0})]}),(0,W.jsx)(Dd.C,{className:"item-arrow",name:"chatGPT/ai-component-item-arror"})]}),(0,W.jsxs)("div",{className:"item-des",children:[_e,Ht&&(0,W.jsx)("a",{className:"help-des",onClick:this.handleJumpToHelp,target:"__brank",children:I18N.ChatGPT.view_help})]})]})]})})}}const Gc=(0,I.Ng)()(Fp);var f1=s(49612);const Mc=E=>{let{aiOpenTrackSource:le,aiFunctionTrackSource:de}=E;const _e=(0,I.wA)(),Vt={title:"AI\u751F\u6210\u7EC4\u4EF6",type:f1.SR.Component,points:200,aiType:"AI\u751F\u6210\u7EC4\u4EF6",source:"",icon:"chatGPT/ai-component-component",desc:I18N.ChatGPT.ai_component_desc,className:"ai-component",isShowBeta:!0,helpUrl:"https://modao.cc/hc/articles/410"},Bt=()=>{nd.ZF.setCache(de),(0,nd.U2)({source:le}),_e({type:"entry:aiComponent:open:mode"})};return(0,W.jsx)(Gc,{item:Vt,onSelect:Bt})},Jh=E=>{let{theme:le}=E;return(0,W.jsxs)(eh,{className:le,children:[(0,W.jsx)(Mc,{aiOpenTrackSource:"\u7EC4\u4EF6\u9762\u677F\u751F\u6210AI\u7EC4\u4EF6",aiFunctionTrackSource:"\u7EC4\u4EF6AI"}),(0,W.jsx)($u,{className:"demo-list"})]})},eh=ye.Ay.div.withConfig({displayName:"AIComponentPanel__StyledAIComponentPanel",componentId:"sc-11rxfbl-0"})(["height:100%;display:flex;flex-direction:column;flex:1;overflow:hidden;.item-content-container{margin:12px;width:auto;.item-content{.item-right{.item-des{.help-des{position:relative;color:",";margin-left:1px;}}}}}.demo-list{flex:1;overflow:hidden;}&.dark{.item-content-container{.item-content{.item-right{.item-title{.title-container{.icon-beta{defs{linearGradient{stop{&:nth-child(1){stop-color:#BA52FA;}&:nth-child(2){stop-color:#7EBCFF;}}}}}}}}}}}"],E=>E.theme.color_text_link_normal);var Rd=s(68789);const qh=ye.Ay.div.withConfig({displayName:"styles__StyledHomePanel",componentId:"sc-11gy8y5-0"})(["flex:1;display:flex;flex-direction:column;overflow:hidden;position:relative;.panel-header{ol{li.nav-item:not(:first-child){margin-left:4px;}}}.basic-list{padding-top:0;}.home-panel-header{display:flex;flex-shrink:0;align-items:center;justify-content:space-between;height:50px;padding:0 12px 0 5px;border-bottom:1px solid ",";.home-nav-box{display:flex;align-items:center;flex-shrink:0;height:32px;padding:0 8px;cursor:pointer;&.disabled{pointer-events:none;}.nav-menu-icon{width:13px;height:12px;margin-right:10px;color:",";}.item-icon{width:24px;height:24px;}&:hover{background:",";border-radius:4px;}&.active{background:",";border-radius:4px;}.nav-title{max-width:130px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:16px;font-weight:500;color:",";&:lang(en){font-weight:600;}}.nav-hover-btn{width:13px;height:12px;margin-right:10px;}}.nav-back{height:100%;display:flex;align-items:center;cursor:pointer;margin-left:7px;.svg-icon{color:",";}&:hover{.svg-icon{color:",";}}.nav-back-icon{width:9px;height:15px;}}.home-panel-search{margin-left:13px;}}.resources-new-slide-nav{height:40px;}"],E=>E.theme.color_btn_secondary_active,E=>E.theme.color_text_L3,E=>E.theme.color_bg_canvas,E=>E.theme.color_bg_canvas,E=>E.theme.color_text_L1,E=>E.theme.color_text_L3,E=>E.theme.color_text_L2),th=(0,ye.AH)(["width:100%;display:flex;height:40px;padding:7px 6px;justify-content:space-between;align-items:center;border-bottom:1px solid ",";.history-box-icon{position:relative;&::before{content:'';position:absolute;top:4px;left:-12px;display:block;width:1px;height:16px;background:",";}}.nav-item{margin-left:8px;&:first-child{margin-left:0;}}"],E=>E.theme.color_bg_border_01,E=>E.theme.color_bg_border_01),$h=ye.Ay.div.withConfig({displayName:"styles__StyledWidgetPanel",componentId:"sc-11gy8y5-1"})(["flex:1;display:flex;flex-direction:column;overflow:hidden;position:relative;.panel-header{",";}"],th),D2=(0,J.Mz)([N.OW,te.O4,q.r,ne.wA],(E,le,de,_e)=>{let{isEditingUserCombo:Vt,isEditingOrgCombo:Bt}=de;return{show:E===is.lS.Builtin,theme:le,isEditingUserCombo:Vt,isEditingOrgCombo:Bt,currentOrg:_e}}),Vp=()=>{const{show:E,theme:le,isEditingUserCombo:de,isEditingOrgCombo:_e,currentOrg:Vt}=(0,I.d4)(Go=>D2(Go)),Bt=(0,I.d4)(T.SG),ln=(0,I.wA)(),[Ht,En]=(0,r.useState)(!1),po=[{label:I18N.Resources.widgetPanel.tab.official,source:Rd.V.Find},{label:I18N.LeftSidePanel.user_resources,source:Rd.V.User},{label:I18N.LeftSidePanel.org_resources,source:Rd.V.Org},{label:I18N.LeftSidePanel.ai_component,source:Rd.V.AIComponent}],Lo=(0,r.useMemo)(()=>{const Go=Vt?po:po.filter(($o,ba)=>ba!==2);return de?Go.filter($o=>$o.source!==Rd.V.User&&$o.source!==Rd.V.AIComponent):_e?Go.filter($o=>$o.source!==Rd.V.Org&&$o.source!==Rd.V.AIComponent):ENV.IS_ON_PREMISES?Go.filter($o=>$o.source!==Rd.V.AIComponent):Go},[po,Vt,_e,de]),Bo=(0,r.useCallback)(()=>{En(!0),setTimeout(()=>{En(!1)},500)},[En]),Zo=Go=>{Bt!==Go&&(Go===1&&MB.global.experienceLoginModalHelper("isSave")||(ln({type:"widget-panel:update:state",payload:{navIndex:Go}}),Go===0&&Bo()))},Yo=()=>{MB.global.experienceLoginModalHelper("isSave")||(ln({type:"exalt:panel:order",payload:{name:is.lS.History}}),ln({type:"historyPanel:set:show",payload:{show:!0}}))};if(!E)return null;const Jo=de?!1:Bt===1,ea=Vt&&(de?Bt===1:_e?!1:Bt===2),qo=Vt?Bt===3:Bt===2;return(0,W.jsxs)($h,{children:[(0,W.jsxs)("div",{className:"panel-header",children:[(0,W.jsx)(B.Ay,{activeIndex:Bt,onTabChange:Zo,children:Lo.map((Go,$o)=>(0,W.jsx)(B.nl,{label:Go.label},$o))}),(0,W.jsx)(l.A,{content:I18N.Resources.searchHeader.history,direction:"down",children:(0,W.jsx)("a",{className:"history-box-icon",onClick:Yo,children:(0,W.jsx)(U.A,{name:"art_board/widget/history",className:"history"})})})]}),Bt===0&&(0,W.jsx)(x2,{isOffUpdateScroll:Ht,onIsUpdateScroll:Bo}),Jo&&(0,W.jsx)(W0,{}),ea&&(0,W.jsx)(tp,{isOrg:!0}),qo&&(0,W.jsx)(Jh,{theme:le})]})},g1=ye.Ay.div.withConfig({displayName:"PopupPanelBody",componentId:"sc-m9v6xh-0"})(["flex:1;display:flex;flex-direction:column;overflow:hidden;position:relative;.iconLibrary-active{position:absolute;top:-1px;left:-1px;right:-1px;bottom:-1px;animation:twinkling 0.8s 2 ease-in-out;}@keyframes twinkling{0%{background:unset;box-shadow:unset;}50%{background:rgba(41,141,248,0.3);box-shadow:inset 0 0 0 4px rgba(41,141,248,0.6);}100%{background:unset;box-shadow:unset;}}.panel-content-nav{justify-content:space-around;height:32px;border-bottom:1px solid ",';}& > [type="search"]{margin:10px;}.template-panel-header [type="text"]{border-radius:13px;}& > main,& > [type="main"]{flex:1;overflow-x:hidden;overflow-y:auto;}'],E=>E.theme.color_bg_canvas);var R2=s(76527),gd=s(79581),B2=s(50521),mc=s(8614),e0=s(60651);const U2=ye.Ay.ul.withConfig({displayName:"styles__StyledLibList",componentId:"sc-1irdab5-0"})(["&.lib-list{margin:0 4px;display:flex;align-items:center;flex-direction:column;&.list{margin:0 8px;li.lib-item-container{padding:6px;flex-direction:row;height:66px;border-radius:8px;&:hover{background:",";}img{width:72px;height:55px;margin-right:12px;-webkit-user-drag:none;object-fit:cover;}.lib-item-content{margin-top:0;width:calc(100% - 84px);.content-left{flex-direction:column;align-items:flex-start;justify-content:center;width:100%;.nums{margin-left:0;margin-top:8px;}.name{",";width:100%;}}}}}li.lib-item-container{display:flex;flex-direction:column;width:100%;height:197px;border-radius:10px;padding:8px;margin-bottom:8px;cursor:pointer;&:hover{background:",";}img{width:100%;height:155px;border-radius:8px;background:",";border:1px solid ",";-webkit-user-drag:none;object-fit:cover;}.lib-item-content{display:flex;align-items:center;color:",";margin-top:8px;justify-content:space-between;.content-left{display:flex;align-items:center;.nums{color:",";margin-left:8px;}}.arrow-left{display:none;.svg-icon{width:6px;height:10px;color:",";}}}}&.grid{li.lib-item-container{&:hover{.arrow-left{display:block;}.lib-item-content .content-left .name{max-width:135px;}}.lib-item-content{.content-left{.name{max-width:144px;",";}}}}}}"],E=>E.theme.color_btn_secondary_hover,ot.L9,E=>E.theme.color_btn_secondary_hover,E=>E.theme.color_bg_card,E=>E.theme.color_bg_border_01,E=>E.theme.color_text_L1,E=>E.theme.color_text_L3,E=>E.theme.color_text_L3,ot.L9),k0=ye.Ay.div.withConfig({displayName:"styles__StyledRecommendList",componentId:"sc-1irdab5-1"})(["border-top:1px solid ",";margin:0 8px;.recommend-header{margin-top:8px;margin-bottom:8px;justify-content:flex-start;padding:0 4px;height:32px;display:flex;align-items:center;color:",";font-weight:500;.question-icon{width:12px;color:",";}a:hover{background:none;}}&.list{ul{flex-direction:column;padding:0;li.recommend-lib-item{flex-direction:row;padding:6px;width:100%;.img-box{width:74px;height:54px;margin-right:12px;flex:0 0 74px;img{width:100%;height:100%;}}.title{color:",";margin-top:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;width:100%;}.action.add{position:relative;margin-right:2px;margin-left:12px;top:0;left:0;background:unset;color:",";&:hover{background:",";color:",";}}&:hover{background:",";.action.add{display:flex;}}}}}&.grid{ul{padding:0 4px;li.recommend-lib-item{width:109px;.title{width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;text-align:center;}&:nth-child(2n + 1){margin-right:8px;}.img-box{&::before{content:'';display:none;position:absolute;top:0;left:0;width:100%;height:100%;background:",";backdrop-filter:blur(4px);}}&:hover{.action.add{display:flex;}.img-box{&::before{display:block;}}}}}}ul{display:flex;flex-wrap:wrap;padding:0 12px;li.recommend-lib-item{display:flex;flex-direction:column;align-items:center;position:relative;margin-bottom:8px;border-radius:8px;cursor:pointer;.title{color:",";margin-top:8px;}.action.add{display:none;align-items:center;justify-content:center;width:24px;height:24px;position:absolute;top:29px;left:43px;border-radius:4px;background:",";color:",";flex:0 0 24px;}.added-flag{padding:3px 6px;border-radius:4px;background:",";position:absolute;top:16px;left:16px;}.img-box{width:109px;height:82px;border-radius:8px;overflow:hidden;position:relative;border:1px solid ",";img{width:100%;height:100%;background:",";-webkit-user-drag:none;object-fit:cover;}}}}"],E=>E.theme.color_bg_border_01,E=>E.theme.color_text_L1,E=>E.theme.color_text_L3,E=>E.theme.color_text_L1,E=>E.theme.color_text_L3,E=>E.theme.color_navigation_active,E=>E.theme.color_text_L1,E=>E.theme.color_btn_secondary_hover,E=>E.theme.color_slider_normal,E=>E.theme.color_text_L3,E=>E.theme.color_btn_primary_normal,E=>E.theme.color_text_btn,E=>E.theme.color_bg_white,E=>E.theme.color_bg_border_01,E=>E.theme.color_bg_card),O2=ye.Ay.div.withConfig({displayName:"styles__StyledEmptyContent",componentId:"sc-1irdab5-2"})(["display:flex;align-items:center;flex-direction:column;background:",";border-radius:10px;padding:16px;margin:10px 12px 14px;padding:16px;.title{color:",";font-weight:500;}.desc{color:",";margin:12px 0;}button.solid.muban-manage{height:28px;padding:5px 54px;}"],E=>E.theme.color_navigation_hover,E=>E.theme.color_text_L1,E=>E.theme.color_text_L2),nh=(0,ye.Ay)(je.Ay).withConfig({displayName:"styles__StyledMubanContextMenu",componentId:"sc-1irdab5-3"})(["&.mb-muban-context-menu{ul{border-radius:8px;border:1px solid ",";color:",";background:",";box-shadow:",";min-width:130px;li.MenuItem{a{border-radius:4px;background:",";color:",";}&:not(.disabled).active{a{background:",";}}}}}"],E=>E.theme.color_bg_border_01,E=>E.theme.color_text_L1,E=>E.theme.color_bg_white,E=>E.theme.shadow_m,E=>E.theme.color_bg_white,E=>E.theme.color_text_L1,E=>E.theme.color_btn_secondary_hover);var Bd=s(17573),ap=s(8926);const y1=E=>{let le=E==null?void 0:E.filter(de=>!de.hotAttr.asFolder).length;return E==null||E.forEach(de=>{le+=de.children.length}),le},t0=E=>{let{isHasMubanInLocal:le,libMubanTreeMap:de,addedLibList:_e,currentMode:Vt,onGotoLib:Bt,onRemoveLib:ln}=E;const Ht=(0,I.d4)(ne.PL),[En,po]=(0,r.useState)(!1),[Lo,Bo]=(0,r.useState)(null),[Zo,Yo]=(0,r.useState)(null),Jo=(0,r.useMemo)(()=>{var va;return Ht!=null&&Ht.is_custom_cover?Ht==null?void 0:Ht.custom_cover:(va=Ht==null?void 0:Ht.cover)!=null?va:""},[Ht==null?void 0:Ht.cover,Ht==null?void 0:Ht.custom_cover,Ht==null?void 0:Ht.is_custom_cover]),ea=(0,r.useMemo)(()=>_e.map(va=>{const pr=y1(de==null?void 0:de.get(va.hotAttr.extInfo.flatKey));if(pr>0)return{...va,nums:pr}}).filter(va=>va),[_e,de]),qo=(0,r.useCallback)((va,pr)=>{if(va.button===2){const lr={left:va.clientX,top:va.clientY};Bo(lr),Yo(pr),po(!0)}},[]),Go=()=>{Bo(null),Yo(null),po(!1)},$o=(va,pr)=>{va.stopPropagation(),ln(va,pr),Go(),(0,ap.Cj)()},ba=va=>{Bt(va),Go()},sa=(va,pr)=>{const lr=pr.querySelector(".name");return lr.offsetWidth<lr.scrollWidth};return!le&&ea.length===0?(0,Bd.bJ)()?(0,W.jsx)(zp,{}):(0,W.jsx)(Ic,{keyword:""}):(0,W.jsxs)(U2,{className:M()("lib-list",Vt,{"has-bottom-border":!0}),children:[le&&(0,W.jsxs)("li",{className:"lib-item-container "+nn.c.GUIDE_2506_LIB_INTERGRATED,onClick:()=>Bt({key:"local"}),children:[(0,W.jsx)("img",{src:Jo||"/mb-proto2/images/lib/lib-emtry.png",onError:va=>{va.target.src="/mb-proto2/images/lib/lib-emtry.png",va.target.onerror=null}}),(0,W.jsxs)("div",{className:"lib-item-content",children:[(0,W.jsxs)("div",{className:"content-left",children:[(0,W.jsx)("span",{className:"name",children:I18N.Resources.muban.lib.local.title}),(0,W.jsx)("span",{className:"nums",children:y1(de==null?void 0:de.get("local"))+" \u4E2A\u6BCD\u7248"})]}),(0,W.jsx)(U.A,{name:"design/arrow/right",className:"arrow-left",iconBoxSize:16})]})]}),ea.map(va=>(0,W.jsxs)("li",{className:"lib-item-container",onClick:()=>Bt(va),onMouseDown:pr=>qo(pr,va),children:[(0,W.jsx)("img",{src:va.hotAttr.extData||"/mb-proto2/images/lib/lib-emtry.png"}),(0,W.jsx)(l.A,{content:va.hotAttr.name,distance:20,direction:"down",isShowTipsByTarget:sa,children:(0,W.jsxs)("div",{className:"lib-item-content",children:[(0,W.jsxs)("div",{className:"content-left",children:[(0,W.jsx)("span",{className:"name",children:va.hotAttr.name}),(0,W.jsx)("span",{className:"nums",children:va.nums+" \u4E2A\u6BCD\u7248"})]}),(0,W.jsx)(U.A,{name:"design/arrow/right",className:"arrow-left",iconBoxSize:16})]})})]},va.key)),En&&(0,W.jsxs)(nh,{className:"mb-muban-context-menu",position:Lo,onClose:Go,children:[(0,W.jsx)(je.Dr,{text:I18N.Resources.muban.lib.remove,onClick:va=>Zo&&$o(va,Zo)}),(0,W.jsx)(je.Dr,{text:I18N.Resources.muban.lib.open,onClick:()=>Zo&&ba(Zo)})]})]})},zp=()=>{const E=(0,I.d4)(ne.wA),le=(0,I.wA)(),de=()=>{le({type:"modal:update:state",payload:{manageStyleLibModal:{isOpen:!0,activeTab:"team"}}})};return(0,W.jsxs)(O2,{className:"empty-content",children:[(0,W.jsx)("span",{className:"title",children:"\u5F53\u524D\u6587\u4EF6\u6682\u65E0\u6BCD\u7248\u8D44\u6E90"}),(0,W.jsx)("span",{className:"desc",children:"\u60A8\u53EF\u4EE5\u6DFB\u52A0"+(E?"\u56E2\u961F":"\u4E2A\u4EBA")+"\u7A7A\u95F4\u8D44\u6E90\u5E93\u4EE5\u4F7F\u7528\u6BCD\u7248\u8D44\u6E90\u3001\u6837\u5F0F\u8D44\u6E90\u6765\u5FEB\u901F\u642D\u5EFA\u9875\u9762"}),(0,W.jsx)("button",{className:"solid muban-manage",onClick:de,children:"\u6DFB\u52A0"+(E?"\u56E2\u961F":"\u6211\u7684")+"\u8D44\u6E90\u5E93"})]})};var oh=s(47946);const Ud=E=>{const le=(0,r.useRef)(!1);return(0,r.useCallback)(function(){le.current||(le.current=!0,E(...arguments))},[E])};var M0=s(70812);const n0=E=>{let{currentMode:le,onGotoLib:de}=E;const[_e,Vt]=(0,r.useState)(!1),Bt=(0,I.d4)(mc.Qe),ln=(0,I.d4)(mc.oo),Ht=(0,I.d4)(mc.nC),En=(0,I.wA)(),po=(0,r.useMemo)(()=>Bt.filter(Yo=>ln.findIndex(Jo=>Jo.hotAttr.extInfo.projectCid===Yo.cid&&!Jo.hotAttr.extInfo.isRemove)===-1),[ln,Bt]),Lo=Ud((Yo,Jo)=>{var ea;Yo.stopPropagation(),En({type:"entry:libStyle:add:recommendLib",payload:{lib:Jo}}),M0.U4.protoMasterUseTrack((ea=MB)==null||(ea=ea.user)==null?void 0:ea.id,"\u7CBE\u9009\u8D44\u6E90\u5E93","\u6DFB\u52A0")}),Bo=Ud(async Yo=>{if(_e)return;const Jo=Yo.sclib_cid,ea=Ht.get(Jo);Vt(!0);try{if(!ea){const{sdkStore:Go}=await(0,oh.O3)({flpakKey:Jo});await En({type:"style-lib:set:libSdkStoreMap",payload:{key:Jo,value:Go}})}await En({type:"entry:libStyle:update:mubanPanel:libMubanTreeMap",payload:{libFlatKey:Yo.sclib_cid}});const qo={...Yo,key:Yo.cid,hotAttr:{extData:Yo.cover,extInfo:{flatKey:Yo.sclib_cid,projectCid:Yo.cid,name:Yo.name},extType:"extProtoLib",name:Yo.name}};de(qo)}finally{Vt(!1)}}),Zo=(Yo,Jo)=>{const ea=Jo.querySelector(".title");return ea.offsetWidth<ea.scrollWidth};return po.length===0?null:(0,W.jsxs)(k0,{className:le,children:[(0,W.jsx)("div",{className:"recommend-header",children:(0,W.jsx)("span",{children:I18N.Resources.muban.lib.recommend.title})}),(0,W.jsx)("ul",{children:po.map(Yo=>(0,W.jsx)(l.A,{content:Yo.name,distance:20,direction:"down",isShowTipsByTarget:Zo,children:(0,W.jsxs)("li",{className:"recommend-lib-item",onClick:()=>Bo(Yo),children:[(0,W.jsx)("div",{className:"img-box",children:(0,W.jsx)("img",{src:Yo.cover||"/mb-proto2/images/lib/lib-emtry.png"})}),(0,W.jsx)("span",{className:"title",children:Yo.name}),(0,W.jsx)(l.A,{content:"\u6DFB\u52A0",direction:"down",distance:8,isShowTipsByTarget:()=>le==="list",children:(0,W.jsx)("div",{className:"action add",onClick:Jo=>Lo(Jo,Yo),children:(0,W.jsx)(j.C,{name:"common/add@10"})})})]})},Yo.cid))})]})};var H0=s(11891),F2=s(88194),Wp=s(33573),rp=s(79209),Ls=s(93971);const x1=E=>{const[le,de]=(0,r.useState)({isOpen:!1,isRightClick:!1,position:{left:0,top:0}});return{menuState:le,handleCloseMenu:()=>{de({isOpen:!1,isRightClick:!1,position:{left:0,top:0}})},handleOpenMenu:Bt=>{Bt.stopPropagation(),Bt.preventDefault();let ln=0,Ht=0,En=!1;if(Bt.button===0){if(E){const{top:po,left:Lo,height:Bo}=E.current.getBoundingClientRect();ln=po+Bo,Ht=Lo}}else ln=Bt.clientY,Ht=Bt.clientX,En=!0;de({isOpen:!0,isRightClick:En,position:{left:Ht,top:ln}})}}};var Rc=s(85584),Zc=s(78401);const ah=E=>{const le=sdkStore.dupWithinPage([E.key]),de=sdkStore.getHotItem(le[0]),_e=E.hotAttr.name+" Copy";return de.hotAttr.name=_e,sdkStore.updateHotAttrKV(de.key,"name",_e),{...de,children:[]}},o0=(E,le)=>{const de=(0,Rc.aR)(E,le),_e=(0,Rc.BS)(de,le);return _e[_e.length-1].key===E},rh=(E,le,de)=>{const _e={key:"root",children:de},Vt=document.querySelector(".template-panel-content"),Bt=Vt==null?void 0:Vt.querySelector(".muban-panel-scroll-list"),ln=Array.from(document.querySelectorAll(".muban-panel-container li.muban-content-item")),Ht=Vt==null?void 0:Vt.getBoundingClientRect(),En={left:Ht==null?void 0:Ht.left,top:(Ht==null?void 0:Ht.top)+40,right:Ht==null?void 0:Ht.right,bottom:Ht==null?void 0:Ht.bottom,width:Ht==null?void 0:Ht.width,height:(Ht==null?void 0:Ht.height)-40},po=Bt==null?void 0:Bt.getBoundingClientRect(),Lo=[],Bo={};let Zo=new Set,Yo=1,Jo=le;if(E){const qo=new Set(le),Go=new Set;for(const ba of le){const sa=sdkStore.getHotItem(ba);sa&&qo.has(sa.sup)&&Go.add(sa.key)}for(const ba of Go)qo.delete(ba);Jo=Array.from(qo),Zo=new Set(Jo);const $o=[];(0,Rc.sV)(_e,ba=>{const{key:sa,children:va}=ba;if(Zo.has(sa)&&(va==null?void 0:va.length)>0)for(const pr of ba.children)Zo.add(pr.key);le.includes(sa)&&$o.push(ba)});for(const ba of $o){const sa=(0,Rc.QR)(ba);Yo=Math.max(sa,Yo)}}const ea=ln.length;return ln.forEach((qo,Go)=>{const{key:$o}=qo.dataset,ba=(0,Rc.aR)($o,_e),sa=ba,va=(0,Rc.zK)(ba.key,_e),pr=qo.querySelector(":scope > .muban-list-item"),lr=pr==null?void 0:pr.getBoundingClientRect(),Cr=(0,Zc.yB)(pr),si=qo.getBoundingClientRect(),Ui={top:lr.top-po.top,left:lr.left-po.left,width:lr.width,height:lr.height},Qi={top:Cr.top-po.top,left:Cr.left-po.left,width:Cr.width,height:Cr.height},jr={top:si.top-po.top,left:Qi.left+8,width:Qi.width,height:si.height};Bo[$o]={rect:Ui,contentRect:Qi,treeRect:jr};const{left:Gr,top:Ei,width:fs,height:ec}=Ui,yc=Gr+fs,ad=Ei+ec/3,Ji=Ei+ec/3*2,Kl=Ei+ec;if(Zo.has($o)){Lo.push({cid:$o,type:null,min:{x:Gr,y:Ei},max:{x:yc,y:Kl},isValid:!1});return}Go===0&&Lo.push({cid:$o,type:"prevSibling",parentCid:sa.sup,min:{x:Gr,y:Ei},max:{x:yc,y:ad},isValid:!0}),Go===ea-1&&Lo.push({cid:$o,type:"nextSibling",parentCid:sa.sup,min:{x:Gr,y:Kl},max:{x:yc,y:En.height},isValid:!0});const e2=2,Z0=va+Yo<=e2,_1=va-1+Yo<=e2;Lo.push({cid:$o,type:"firstChild",parentCid:$o,min:{x:Gr,y:Ei},max:{x:yc,y:Ji},isValid:Z0});const mm=(0,Rc.aR)(sa.sup,_e);if(o0($o,_e)&&mm){Lo.push({cid:$o,type:"nextSibling",parentCid:sa.sup,min:{x:Bo[$o].contentRect.left,y:Ji},max:{x:yc,y:Kl},isValid:_1});let $i=ba,fl=null;for(;$i&&o0($i.key,_e)&&(fl=(0,Rc.aR)($i.sup,_e));){const _c=(0,Rc.zK)(fl,_e)-1+Yo<=4;Lo.push({cid:fl.key,type:"nextSibling",parentCid:fl.sup,min:{x:Bo[fl.key].contentRect.left,y:Ji},max:{x:Bo[$i.key].contentRect.left,y:Kl},isValid:_c}),$i=fl}}else Lo.push({cid:$o,type:"nextSibling",parentCid:sa.sup,min:{x:Gr,y:Ji},max:{x:yc,y:Kl},isValid:_1})}),{matchDataList:Lo,containerRect:En,rectQueryMap:Bo,pathSelectedIds:Jo}};var jl=s(68863);const Ec=(0,ye.i7)(["from{transform:translateY(-80%);}to{transform:translateY(0);}"]),yd=ye.Ay.div.withConfig({displayName:"styles__StyledPanelDetail",componentId:"sc-1f2gapk-0"})(["ul.muban-item-list{display:flex;flex-wrap:wrap;}.actions{width:16px;height:16px;border-radius:6px;display:flex;align-items:center;justify-content:center;margin-left:auto;visibility:hidden;&:hover{visibility:visible;}.svg-icon{g{rect{fill:",";fill-opacity:1;}path{fill:",";}}}}&.grid{margin-top:40px;li.detail-panel-item{.muban-content{flex-direction:column;&:hover,&.is-active{.muban-img-box{background:",";border:1px solid ",";}.actions{visibility:visible;}}}&:nth-child(2n+1){margin-left:12px;}&:nth-child(2n){margin-right:0;}.actions{right:6px;bottom:30px;}.muban-img-box{padding:8px;}}}&.list{margin-top:44px;ul.muban-item-list{flex-direction:column;}ul.muban-folder-list{li.folder ul{flex-direction:column;}}li.detail-panel-item{flex-direction:row;width:234px;height:52px;margin:0 0 0 8px;.muban-content{padding:6px;border-radius:8px;width:100%;height:100%;.editable-span{text-align:left;color:",";flex:1;}&:hover,&.is-active{background:",";.actions{visibility:visible;}}&.is-active{.actions{background:",";}}}.actions{right:6px;width:24px;height:24px;border-radius:4px;transform:rotate(90deg);color:",";&:hover{background:",";}}.muban-img-box{padding:4px;width:40px;height:40px;margin-right:12px;}img{width:100%;height:100%;}}}li.folder{width:100%;.folder-name{height:32px;padding:0 12px 0 8px;display:flex;align-items:center;color:",";cursor:pointer;transform:translateY(-100%);position:relative;top:32px;&:not(.sticky):hover,&:not(.sticky).is-active{background:",";.actions{visibility:visible;}}&.is-active{.actions{background:",";}}&.is-expand .arrow-icon-box{transform:rotate(90deg);}.name-box{display:flex;align-items:center;width:calc(100% - 40px);height:100%;.editable-span{flex:1;}}.arrow-icon-box{width:16px;height:16px;margin-right:4px;color:",";display:flex;align-items:center;justify-content:center;.arrow-expand{width:6px;}}.arrow-expand-sticky{width:6px;color:",";transform:rotate(90deg);margin-left:8px;visibility:hidden;}}ul{margin:8px 0;display:flex;flex-wrap:wrap;}}.folder-sticky{position:absolute;transform:translateY(-100%);top:-40px;width:250px;height:40px;background:",";z-index:1;padding:0px 12px 0px 6px;border-bottom:1px solid ",";visibility:hidden;color:",";display:flex;&.is-active{.name-box{background:",";}}.name-box{width:fit-content;height:28px;padding:6px;margin:4px 0 8px;border-radius:6px;max-width:100%;display:flex;align-items:center;&:hover{background:",';}&::after{content:"";display:inline-block;position:absolute;bottom:0;width:100%;height:10px;}.editable-span{width:auto;font-weight:500;}.arrow-expand-sticky{width:6px;color:',";transform:rotate(90deg);margin-left:8px;}}&.is-show{visibility:visible;position:fixed;top:129px;animation:"," 0.5s ease forwards;animation-iteration-count:1;&.old_right{top:169px;}}}li.detail-panel-item{display:flex;flex-direction:column;align-items:center;width:108px;height:125px;margin-right:10px;margin-bottom:8px;cursor:pointer;.muban-content{width:100%;display:flex;align-items:center;position:relative;.editable-span{text-align:center;color:",";}.actions{position:absolute;}&.is-click-active{opacity:0.5;}}.muban-img-box{width:100%;height:103px;display:flex;align-items:center;justify-content:center;border-radius:6px;overflow:hidden;border:1px solid ",";background:",";}img{width:100%;height:100%;-webkit-user-drag:none;object-fit:contain;}.muban-name{color:",";margin-top:6px;}}"],E=>E.theme.color_slider_hover,E=>E.theme.color_text_btn,E=>E.theme.color_btn_secondary_active,E=>E.theme.color_bg_border_01,E=>E.theme.color_text_L1,E=>E.theme.color_btn_secondary_hover,E=>E.theme.color_navigation_active,E=>E.theme.color_text_L1,E=>E.theme.color_navigation_active,E=>E.theme.color_text_L1,E=>E.theme.color_btn_secondary_hover,E=>E.theme.color_bg_border_01,E=>E.theme.color_text_disabled01,E=>E.theme.color_text_disabled01,E=>E.theme.color_bg_white,E=>E.theme.color_bg_border_01,E=>E.theme.color_text_L1,E=>E.theme.color_btn_secondary_hover,E=>E.theme.color_btn_secondary_hover,E=>E.theme.color_text_disabled01,Ec,E=>E.theme.color_text_L3,E=>E.theme.color_bg_border_01,E=>E.theme.color_btn_secondary_hover,E=>E.theme.color_text_L3),V2=(0,ye.Ay)(je.Ay).withConfig({displayName:"styles__StyleContextMenu",componentId:"sc-1f2gapk-1"})(["",";ul{width:130px;min-width:130px;}"],ot.ZJ),cr=ye.Ay.div.withConfig({displayName:"styles__StyledFolderMenu",componentId:"sc-1f2gapk-2"})(["&.is-open{visibility:visible;}position:fixed;width:140px;z-index:2;overflow:hidden;border-radius:8px;visibility:hidden;box-shadow:",";margin-top:-1px;",";ul.folder-menus{width:100%;max-height:296px;overflow-y:scroll;margin:0 !important;li.MenuItem{width:100%;height:28px;padding:4px 12px;border-radius:4px;cursor:pointer;display:flex;align-items:center;&:not(.is-checked){padding-left:28px;}div.name{max-width:70px;margin-left:8px;",";}&:hover{background:",";}}}"],E=>E.theme.shadow_m,ot.ZJ,ot.L9,E=>E.theme.color_btn_secondary_hover),v1=(0,r.memo)(E=>{let{projectMetaCid:le,data:de,parent:_e,isLocal:Vt,currentLib:Bt,currentMode:ln,onDelete:Ht,onAdd:En,onReName:po}=E;const Lo=(0,r.useRef)(null),Bo=(0,r.useRef)(),Zo=(0,I.d4)(e0.bt),Yo=(0,I.d4)(ne.X_),Jo=(0,I.d4)(ne.Pz),ea=(0,I.d4)(te.PI),qo=(0,I.d4)(te.k3),Go=(0,I.d4)(mc.nC),$o=(0,I.d4)(mc.oo),ba=(0,I.d4)(ne.YY),[sa,va]=(0,r.useState)(!1),[pr,lr]=(0,r.useState)(de.hotAttr.name),[Cr,si]=(0,r.useState)(de),{menuState:Ui,handleCloseMenu:Qi,handleOpenMenu:jr}=x1(Lo),Gr=(0,I.wA)();(0,r.useEffect)(()=>{lr(de.hotAttr.name)},[de.hotAttr.name]);const Ei=_i=>{if(Z0(_i),_i.preventDefault(),Zo===de.key){MB.notice({text:"\u4E0D\u80FD\u5220\u9664\u6B63\u5728\u7F16\u8F91\u4E2D\u7684\u6BCD\u7248"});return}const Hs=sdkStore.findAllBasketFRBPage(de.key);Gr({type:"modal:update:state",payload:{masterDeleteModal:{isOpen:!0,name:de.hotAttr.name,panelCount:Hs.length,onConfirm:()=>{try{if(Hs.length>0){const Vs=(0,rp.UU)({initKeyList:[sdkStore.getHotItem(Hs[0]).hotAttr.refRBPageKey].filter(Boolean)})*Hs.length;if(!(0,rp._c)({type:"basket",count:Vs}))return;Gr({type:"entry:basket:transform",payload:{itemsKeyList:Hs,basketType:"bDanli",type:"removeMuban"}})}if((de==null?void 0:de.sup)!=="B@ref-muban"){const Vs=sdkStore.getHotItem(de==null?void 0:de.sup);(Vs==null?void 0:Vs.sub.length)===1&&(Vs==null?void 0:Vs.sub[0])===(de==null?void 0:de.key)&&sdkStore.deleteHotItem(de==null?void 0:de.sup)}sdkStore.deleteHotItem(de==null?void 0:de.key),Ht(de.key,de.sup),MB.notice({text:I18N.dModals.master_del_success})}catch(Vs){}}}}}),Qi()},fs=_i=>{Z0(_i),_i.preventDefault(),Gr({type:"entry:edit:basket:source:muban",payload:{item:de}}),Qi()},ec=async _i=>{Z0(_i),_i.preventDefault();const Hs=sdkStore.getHotItem(de.key);if(!(0,rp._c)({type:"widget",count:(0,rp.UU)({initKeyList:[Hs.key]})}))return;const Vs=await ah(Hs);En(Vs,de.sup),(0,Ls.SJ)("\u5DE6\u4FA7\u6BCD\u7248\u526F\u672C",!1,Hs.sub),Qi()},yc=(_i,Hs)=>{if(!(0,Bd.bJ)()){if(Hs&&_i.trim()){lr(_i),sdkStore.updateHotAttrMerge(de.key,{name:_i,mtime:rootSdk.fssCmt.getClockStore().getMtime()});const Vs={...de,hotAttr:{...de.hotAttr,name:_i}};po(Vs,de.sup),Qi()}va(!1);return}if(Hs&&_i.trim()){const Vs=(0,ap.PL)(_i,de.key);sdkStore.updateHotAttrMerge(de.key,{name:Vs,mtime:rootSdk.fssCmt.getClockStore().getMtime()}),Gr({type:"entry:libStyle:update:mubanPanel:libMubanTreeMap",payload:{libFlatKey:"local",needUpdate:!0}}),lr(Vs),Qi()}else lr(de.hotAttr.name);va(!1)},ad=async()=>{var _i;if(Vt)return;!($o.findIndex($2=>{var a0;return((a0=$2.hotAttr)==null||(a0=a0.extInfo)==null?void 0:a0.flatKey)===le})!==-1)&&Bt&&Gr({type:"entry:libStyle:add:recommendLib",payload:{lib:Bt}});const Vs=(_i=Go.get(le))!=null?_i:sdkStore,zd=await(0,ap.fZ)({libSdkStore:Vs,data:de,projectMetaCid:le});si(zd)},Ji=()=>{if(!sdkStore.isActiveKey(de.key))return!1;const _i=sdkStore.getHotItem(de.key);if(Zo===de.key||sdkStore.parseSubtree(sdkStore.saveSubtree(_i.sub)).contentFlatTree.get("B@ref-muban").sub.includes(Zo))return MB.notice({text:I18N.SettingPanel.design.master_cannot_nesting,type:"error"}),!0;const Hs=sdkStore.findAllTypeUnder(de.key,"rResCanvas");return Hs!=null&&Hs.length?!1:(MB.notice({text:I18N.SettingPanel.design.master_no_canvas,type:"error"}),!0)},Kl=_i=>{if(sa||(_i.preventDefault(),_i.stopPropagation(),Ji()))return;const Hs=Bo.current.getBoundingClientRect();(0,A0.PK)({e:_i,template:Cr,thumbnailRect:Hs,scale:Yo,canvasRect:Jo,showDragMode:ea,isAdsorbentReferenceLine:qo,createLocalRefPageFromLib:ad,callback:()=>{var Vs,zd;const $2=Vt?"\u672C\u5730\u8D44\u6E90":Bt!=null&&(Vs=Bt.hotAttr)!=null&&(Vs=Vs.extInfo)!=null&&(Vs=Vs.projectCid)!=null&&Vs.startsWith("mt")?"\u7CBE\u9009\u8D44\u6E90\u5E93":"\u56E2\u961F\u8D44\u6E90";M0.U4.protoMasterUseTrack((zd=MB)==null||(zd=zd.user)==null?void 0:zd.id,$2,"\u7F6E\u5165")}})},e2=_i=>{sa||(_i.stopPropagation(),_i.button===0&&(Ji()||(0,A0.UL)(Cr,ad)))},Z0=_i=>_i.stopPropagation(),_1=_i=>{var Hs;if(sa||Mi!=null&&Mi.current||(Z0(_i),_i.preventDefault(),Ji()))return;const Vs=(Hs=Go.get(le))!=null?Hs:sdkStore;if(!Vs)return;const zd=[[[{...Cr}],Vs,{isTemplate:!0,createLocalRefPageFromLib:ad}]];Gr({type:"entry:resources:quick:create:template",payload:{data:zd}})},mm=_i=>{if(Z0(_i),_i.preventDefault(),_e){var Hs,Vs;lr((_e==null||(Hs=_e.hotAttr)==null?void 0:Hs.name)+"/"+(de==null||(Vs=de.hotAttr)==null?void 0:Vs.name))}va(!0),Qi()},{isMoveAfterClick:Mi,isDragging:$i,handleMouseDown:fl,handleClick:_c,handleDoubleClick:T1}=(0,j2.A)({onMouseDown:Kl,onClick:_1,onDoubleClick:e2}),Vd=(0,r.useMemo)(()=>{const _i=(0,jl.F)(ba);return $i||(_i==null?void 0:_i.key)===(Cr==null?void 0:Cr.key)},[ba,Cr,$i]);return(0,W.jsxs)("div",{className:M()("muban-content",{"is-active":Ui.isOpen},{"is-click-active":Vd}),ref:Bo,onClick:_c,onMouseDown:fl,onDoubleClick:T1,children:[(0,W.jsx)("div",{className:"muban-img-box",children:(0,W.jsx)(Wp.Ay,{projectMetaCid:le,snapshotKey:de.hotAttr.defaultCanvasKey,isVisible:!0,mode:F2.rY.PNG_CANVAS})}),(0,W.jsx)(Qd.A,{className:"editable-span",isEditing:sa,value:pr,onConfirm:yc},pr),!(sa||!Vt||Ui.isRightClick)&&(0,W.jsx)("div",{className:"actions",onMouseDown:jr,ref:Lo,children:ln==="list"?(0,W.jsx)(j.C,{name:"left_panel/screen_action_menu",size:24}):(0,W.jsx)(j.C,{name:"design/templates/temp-btn",size:16})}),Ui.isOpen&&(0,W.jsxs)(V2,{position:Ui.position,onClose:Qi,children:[(0,W.jsx)(je.Dr,{text:"\u91CD\u547D\u540D",onClick:mm}),(0,W.jsx)(je.Dr,{text:"\u7F16\u8F91\u6BCD\u7248",onClick:fs}),(0,W.jsx)(je.Dr,{text:"\u521B\u5EFA\u526F\u672C",onClick:ec}),(0,W.jsx)(je.Dr,{text:"\u5220\u9664",onClick:Ei})]})]})}),ip=(0,ye.Ay)(yd).withConfig({displayName:"styles__StyledSearch",componentId:"sc-1pky404-0"})(["&.grid,&.list{margin-top:0;}.search-empty{position:absolute;}.lib-header{height:32px;display:flex;align-items:center;margin-top:8px;margin-bottom:8px;padding-left:8px;&:hover{background:",";}.lib-name{color:",";font-weight:500;}&.is-expand .arrow-expand{transform:rotate(90deg);}.arrow-expand{.svg-icon{width:6px;color:",";}}}"],E=>E.theme.color_btn_secondary_hover,E=>E.theme.color_text_L1,E=>E.theme.color_text_disabled01),z2=E=>{let{searchLibMubanTreeMap:le,currentMode:de,currentLib:_e}=E;const[Vt,Bt]=(0,r.useState)(new Set),ln=(0,I.d4)(ne.YT),Ht=(0,I.d4)(mc.oo),En=(0,I.wA)(),po=(0,r.useMemo)(()=>Array.from(le.keys()),[le]),Lo=Jo=>{const ea=new Set(Vt);Vt.has(Jo)?ea.delete(Jo):ea.add(Jo),Bt(ea)},Bo=function(Jo,ea){ea===void 0&&(ea="B@ref-muban"),En({type:"entry:libStyle:mubanPanel:libMubanTreeMap:del:treeData",payload:{libKey:"local",key:Jo,supKey:ea}})},Zo=function(Jo,ea){ea===void 0&&(ea="B@ref-muban"),En({type:"entry:libStyle:mubanPanel:libMubanTreeMap:add:treeData",payload:{libKey:"local",data:Jo,supKey:ea}})},Yo=function(Jo,ea){ea===void 0&&(ea="B@ref-muban"),En({type:"entry:libStyle:mubanPanel:libMubanTreeMap:change:treeData",payload:{libKey:"local",data:Jo,supKey:ea}})};return(0,W.jsx)(ip,{className:de,children:po.length===0?(0,W.jsx)(H0.Z,{}):(0,W.jsx)("ul",{children:po==null?void 0:po.map(Jo=>{var ea;const qo=(Ht==null?void 0:Ht.find(Go=>{var $o;return(Go==null||($o=Go.hotAttr)==null||($o=$o.extInfo)==null?void 0:$o.flatKey)===Jo}))||_e;return(0,W.jsxs)("li",{children:[(0,W.jsxs)("div",{className:M()("lib-header",{"is-expand":!Vt.has(Jo)}),onClick:()=>Lo(Jo),children:[(0,W.jsx)(U.A,{name:"new/arrow_1/mini",className:"arrow-expand"}),(0,W.jsx)("span",{className:"lib-name",children:Jo==="local"?"\u672C\u5730\u8D44\u6E90\u5E93":qo==null?void 0:qo.hotAttr.name})]}),!Vt.has(Jo)&&(0,W.jsx)("ul",{className:"muban-item-list",children:le==null||(ea=le.get(Jo))==null?void 0:ea.map(Go=>(0,W.jsx)("li",{className:"detail-panel-item",children:(0,W.jsx)(v1,{projectMetaCid:Jo==="local"?ln.cid:Jo,data:Go,isLocal:Jo==="local",onDelete:Bo,onAdd:Zo,onReName:Yo})},Go.key))})]},Jo)})})})},W2=E=>{let{isHasMubanInLocal:le,libMubanTreeMap:de,currentMode:_e,addedLibList:Vt,onGotoLib:Bt,keyword:ln,onRemoveLib:Ht}=E;const[En,po]=(0,r.useState)(new Map);return(0,r.useEffect)(()=>{if(ln){const Lo=new Map;de==null||de.forEach((Bo,Zo)=>{var Yo;if(Vt.findIndex(Go=>{var $o;return(($o=Go.hotAttr)==null||($o=$o.extInfo)==null?void 0:$o.flatKey)===Zo})===-1&&Zo!=="local")return;const Jo=(Yo=Bo.filter(Go=>!Go.hotAttr.asFolder&&Go.hotAttr.name.toUpperCase().includes(ln.toUpperCase())))!=null?Yo:[],ea=Bo.map(Go=>{var $o;if((Go==null||($o=Go.children)==null?void 0:$o.length)>0){var ba,sa;return(ba=Go==null||(sa=Go.children)==null?void 0:sa.filter(va=>va.hotAttr.name.toUpperCase().includes(ln.toUpperCase())))!=null?ba:[]}}).filter(Go=>Go).flat(),qo=[...Jo,...ea];qo.length>0&&(Lo.set(Zo,qo),po(Lo))})}else po(new Map)},[Vt,ln,de]),ln?(0,W.jsx)(z2,{searchLibMubanTreeMap:En,currentMode:_e}):(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(t0,{isHasMubanInLocal:le,libMubanTreeMap:de,addedLibList:Vt,currentMode:_e,onGotoLib:Bt,onRemoveLib:Ht}),(0,Bd.bJ)()&&(0,W.jsx)(n0,{currentMode:_e,onGotoLib:Bt})]})};var Hp=s(30542),ih=s(2099);const sp=E=>{var le,de;let{projectMetaCid:_e,currentLib:Vt,data:Bt,isLocal:ln,onDelete:Ht,onAdd:En,onReName:po}=E;const Lo=(0,r.useRef)(null),Bo=(0,I.d4)(e0.bt),Zo=(0,I.d4)(mc._h),[Yo,Jo]=(0,r.useState)(Bt.hotAttr.name),[ea,qo]=(0,r.useState)(!1),{menuState:Go,handleCloseMenu:$o,handleOpenMenu:ba}=x1(Lo),sa=(0,I.wA)(),va=si=>sa({type:"style-lib:update:collapseMubanFolderKeySet",payload:{key:si}}),pr=(si,Ui)=>{const Qi=si.split("/").join("");if(Ui&&Qi){const jr=sdkStore.getSubHotItemList("B@ref-muban").find(Ei=>Ei.hotAttr.asFolder&&Ei.key!==Bt.key&&Ei.hotAttr.name===Qi);if(jr){const Ei=Bt.sub.map(fs=>[fs,jr.key]);sdkStore.moveHotItemBatch(Ei),sdkStore.deleteHotItem(Bt.key),qo(!1),$o(),sa({type:"entry:libStyle:update:mubanPanel:libMubanTreeMap",payload:{libFlatKey:"local",needUpdate:!0}});return}Jo(Qi);const Gr={...Bt,hotAttr:{...Bt.hotAttr,name:Qi}};po(Gr),sdkStore.updateHotAttrKV(Bt.key,"name",Qi),qo(!1),$o()}qo(!1)},lr=()=>{var si,Ui;if(((si=Bt.children)==null?void 0:si.findIndex(jr=>jr.key===Bo))!==-1){MB.notice({text:"\u4E0D\u80FD\u5220\u9664\u6B63\u5728\u7F16\u8F91\u4E2D\u7684\u6BCD\u7248"});return}let Qi=[];(Ui=Bt.children)==null||Ui.forEach(jr=>{Qi=Qi.concat(sdkStore.findAllBasketFRBPage(jr.key))}),sa({type:"modal:update:state",payload:{masterDeleteModal:{isOpen:!0,name:Bt.hotAttr.name,panelCount:Qi.length,onConfirm:()=>{try{Qi.length>0&&sa({type:"entry:basket:transform",payload:{itemsKeyList:Qi,basketType:"bDanli",type:"removeMuban"}}),sdkStore.deleteHotItem(Bt.key),Ht(Bt.key),$o(),MB.notice({text:I18N.dModals.master_del_success})}catch(jr){}}}}})},Cr=()=>{va(Bt.key)};return(0,W.jsxs)(W.Fragment,{children:[(0,W.jsxs)("div",{className:M()("folder-name muban-list-item",{"is-expand":!Zo.has(Bt.key),"is-active":Go.isOpen}),onClick:Cr,onContextMenu:ba,children:[(0,W.jsx)("div",{className:"arrow-icon-box",children:(0,W.jsx)(j.C,{name:"new/arrow_1/mini",className:"arrow-expand"})}),(0,W.jsx)("div",{className:"name-box",children:(0,W.jsx)(Qd.A,{className:"editable-span",isEditing:ea,value:Yo,onConfirm:pr},Yo)}),!(ea||!ln||Go.isRightClick)&&(0,W.jsx)("div",{className:"actions",ref:Lo,onClick:ba,children:(0,W.jsx)(j.C,{name:"left_panel/screen_action_menu/min",size:20})})]}),!Zo.has(Bt.key)&&(0,W.jsx)("ul",{children:Bt==null||(le=Bt.children)==null?void 0:le.map(si=>(0,W.jsx)("li",{className:"detail-panel-item",children:(0,W.jsx)(v1,{projectMetaCid:_e,currentLib:Vt,data:si,parent:Bt,isLocal:ln,onDelete:Ht,onAdd:En,onReName:po},si.key)},si.key))}),Go.isOpen&&(0,W.jsxs)(V2,{position:Go.position,onClose:$o,children:[(0,W.jsx)(je.Dr,{text:"\u7F16\u8F91\u6587\u4EF6\u5939",onClick:()=>qo(!0)}),(0,W.jsx)(je.Dr,{text:"\u5220\u9664 "+(Bt==null||(de=Bt.children)==null?void 0:de.length)+" \u4E2A\u6BCD\u7248",onClick:lr})]})]})},H2=(0,r.memo)(E=>{var le,de,_e,Vt,Bt;let{currentMode:ln,currentLib:Ht,treeData:En,keyword:po}=E;const[Lo,Bo]=(0,r.useState)(null),[Zo,Yo]=(0,r.useState)(new Map),[Jo,ea]=(0,r.useState)(""),qo=(0,r.useRef)(null),Go=(0,r.useRef)(null),$o=(0,r.useRef)(),ba=(0,r.useRef)(),sa=(0,I.d4)(ne.YT),va=(0,I.d4)(te.bP),{menuState:pr,handleCloseMenu:lr,handleOpenMenu:Cr}=x1($o),si=(0,I.wA)();(0,r.useEffect)(()=>{if(po)return;const Mi=document.querySelector(".muban-panel-container .muban-folder-list"),$i=Array.from(Mi.querySelectorAll(".muban-content-item")),fl=T1=>{const Vd=T1.target.scrollTop;if(Vd<=Mi.offsetTop){ea("");return}for(const _i of $i){const{key:Hs}=_i.dataset;(_i==null?void 0:_i.offsetTop)<=Vd&&(_i==null?void 0:_i.offsetTop)+(_i==null?void 0:_i.offsetHeight)>=Vd&&ea(Hs)}},_c=document.querySelector(".template-panel-content");return _c==null||_c.addEventListener("scroll",fl),()=>_c==null?void 0:_c.removeEventListener("scroll",fl)},[po]);const Ui=(0,r.useMemo)(()=>{var Mi;return(Ht==null?void 0:Ht.key)==="local"?sa.cid:Ht==null||(Mi=Ht.hotAttr)==null||(Mi=Mi.extInfo)==null?void 0:Mi.flatKey},[Ht==null||(le=Ht.hotAttr)==null||(le=le.extInfo)==null?void 0:le.flatKey,Ht==null?void 0:Ht.key,sa.cid]),Qi=(0,r.useCallback)(function(Mi,$i){$i===void 0&&($i="B@ref-muban"),(Ht==null?void 0:Ht.key)==="local"&&si({type:"entry:libStyle:mubanPanel:libMubanTreeMap:del:treeData",payload:{libKey:"local",key:Mi,supKey:$i}})},[Ht,si]),jr=(0,r.useCallback)(function(Mi,$i){$i===void 0&&($i="B@ref-muban"),(Ht==null?void 0:Ht.key)==="local"&&si({type:"entry:libStyle:mubanPanel:libMubanTreeMap:add:treeData",payload:{libKey:"local",data:Mi,supKey:$i}})},[Ht,si]),Gr=(0,r.useCallback)(function(Mi,$i){$i===void 0&&($i="B@ref-muban"),(Ht==null?void 0:Ht.key)==="local"&&si({type:"entry:libStyle:mubanPanel:libMubanTreeMap:change:treeData",payload:{libKey:"local",data:Mi,supKey:$i}})},[Ht,si]),Ei=Mi=>{let{cid:$i,type:fl,parentCid:_c,isValid:T1}=Mi;if(!Lo)return;const{pathSelectedIds:Vd}=Lo;if(Bo(null),!T1)return;const _i=Vd.map(a0=>En.find(Ah=>Ah.key===a0)),Hs=En.filter(a0=>{let{key:Ah}=a0;return!Vd.includes(Ah)}),Vs=Hs.findIndex(a0=>a0.key===$i),zd=fl==="prevSibling"?Vs:fl==="firstChild"?0:fl==="nextSibling"?Vs+1:0;Hs.splice(zd,0,..._i),sdkStore.combineMergeMark("sort-muban-folder"),Hs.forEach((a0,Ah)=>{const fm=sdkStore.getHotItem(a0.key),W3={...fm,hotAttr:{...fm==null?void 0:fm.hotAttr,zIndex:Hs.length-Ah}};sdkStore.updateHotItem(W3)}),sdkStore.combineMerge("sort-muban-folder");const $2=(0,ih.t_)();si({type:"style-lib:update:libMubanTreeMap",payload:{key:"local",val:$2}})},fs=()=>document.querySelector(".template-panel-content"),ec=(Mi,$i)=>{(Ht==null?void 0:Ht.key)==="local"&&Mi.button===0&&(qo.current=setTimeout(()=>{const fl=document.querySelector('.muban-panel-container .muban-folder-list [data-key="'+$i.key+'"] .muban-list-item');if(!fl)return;const{top:_c,left:T1}=fl.getBoundingClientRect(),Vd=Mi.clientX-T1,_i=Mi.clientY-_c,Hs=[$i.key],Vs={screen:$i,$element:fl,offsetX:Vd,offsetY:_i,...rh($i,Hs,En)};Bo(Vs)},200))},yc=()=>{(Ht==null?void 0:Ht.key)==="local"&&qo.current&&clearTimeout(qo.current)};(0,r.useEffect)(()=>{if(po){var Mi;const fl=new Map,_c=(Mi=En.filter(_i=>!_i.hotAttr.asFolder&&_i.hotAttr.name.toUpperCase().includes(po.toUpperCase())))!=null?Mi:[],T1=En.map(_i=>{var Hs;if((_i==null||(Hs=_i.children)==null?void 0:Hs.length)>0){var Vs,zd;return(Vs=_i==null||(zd=_i.children)==null?void 0:zd.filter($2=>$2.hotAttr.name.toUpperCase().includes(po.toUpperCase())))!=null?Vs:[]}}).filter(_i=>_i).flat(),Vd=[..._c,...T1];if(Vd.length>0){var $i;fl.set((Ht==null||($i=Ht.hotAttr)==null||($i=$i.extInfo)==null?void 0:$i.flatKey)||"local",Vd),Yo(fl)}}else Yo(new Map)},[Ht==null||(de=Ht.hotAttr)==null||(de=de.extInfo)==null?void 0:de.flatKey,Ht.key,po,En]);const ad=(0,r.useMemo)(()=>Jo?En.find(Mi=>Mi.key===Jo):{},[Jo]),Ji=Mi=>{Go.current=setTimeout(()=>{Z0(Mi)},150)},Kl=Mi=>{if(Mi.key===Jo)return;const $i=document.querySelector(".template-panel-content"),fl=document.querySelector('.muban-folder-list li[data-key="'+Mi.key+'"]');$i&&($i.scrollTop=(fl==null?void 0:fl.offsetTop)+10,_1())},e2=Mi=>{Go!=null&&Go.current&&clearTimeout(Go==null?void 0:Go.current),!Mi.target.closest(".folder-menus-context")&&_1()},Z0=Mi=>{var $i;if(Cr(Mi),($i=$o.current)==null||$i.classList.add("is-active"),ba.current){var fl;const _c=ba.current.querySelector("li.MenuItem.is-checked");ba.current.scrollTop=(fl=_c==null?void 0:_c.offsetTop)!=null?fl:0}},_1=()=>{var Mi;lr(),(Mi=$o.current)==null||Mi.classList.remove("is-active")},mm=Mi=>{var $i,fl;const _c=($i=$o.current)==null?void 0:$i.querySelector(".name-box");_c!=null&&_c.contains(Mi.target)||ba!=null&&(fl=ba.current)!=null&&fl.contains(Mi.target)||_1()};if(En)return po?(0,W.jsx)(z2,{searchLibMubanTreeMap:Zo,currentMode:ln,currentLib:Ht}):(0,W.jsxs)(W.Fragment,{children:[(0,W.jsxs)(yd,{className:ln,children:[(0,W.jsx)("div",{className:M()("folder-sticky",{"is-show":!!Jo},va),ref:$o,children:(0,W.jsxs)("div",{className:"name-box",onClick:pr.isOpen?e2:Ji,children:[(0,W.jsx)(Qd.A,{isEditing:!1,className:"editable-span",value:ad==null||(_e=ad.hotAttr)==null?void 0:_e.name},ad==null||(Vt=ad.hotAttr)==null?void 0:Vt.name),(0,W.jsx)(j.C,{name:"new/arrow_1/mini",className:"arrow-expand-sticky"})]})}),(0,W.jsx)("ul",{className:"muban-item-list",children:(Bt=En.filter(Mi=>!Mi.hotAttr.asFolder))==null?void 0:Bt.map(Mi=>(0,W.jsx)("li",{"data-key":Mi.key,className:"detail-panel-item",children:(0,W.jsx)(v1,{projectMetaCid:Ui,data:Mi,isLocal:(Ht==null?void 0:Ht.key)==="local",currentLib:Ht,currentMode:ln,onDelete:Qi,onAdd:jr,onReName:Gr})},Mi.key))}),(0,W.jsxs)("ul",{className:"muban-folder-list",children:[En.filter(Mi=>Mi.hotAttr.asFolder).map(Mi=>(0,W.jsx)("li",{"data-key":Mi.key,className:"folder muban-content-item",onMouseDown:$i=>ec($i,Mi),onMouseUp:yc,children:(0,W.jsx)(sp,{projectMetaCid:Ui,currentLib:Ht,data:Mi,isLocal:(Ht==null?void 0:Ht.key)==="local",onDelete:Qi,onAdd:jr,onReName:Gr})},Mi.key)),Lo&&(0,W.jsx)(Hp.A,{draggingElement:Lo.$element,getContainerElement:fs,matchDataList:Lo.matchDataList,containerRect:Lo.containerRect,rectQueryMap:Lo.rectQueryMap,offsetX:Lo.offsetX,offsetY:Lo.offsetY,onDrop:Ei})]})]}),(0,W.jsx)(cr,{className:"folder-menus-context "+(pr.isOpen?"is-open":""),style:pr.position,children:(0,W.jsx)("ul",{className:"folder-menus",ref:ba,children:En.filter(Mi=>Mi.hotAttr.asFolder).map(Mi=>{const $i=Mi.key===Jo;return(0,W.jsxs)("li",{className:"MenuItem "+($i?"is-checked":""),onClick:()=>Kl(Mi),children:[$i&&(0,W.jsx)(j.C,{name:"common/checked",className:"checked",size:16}),(0,W.jsx)("div",{className:"name",children:Mi.hotAttr.name})]},Mi.key)})})}),(0,W.jsx)(S0.A,{target:document,onMouseDown:(0,S0.t)(mm,{capture:!0})})]})});var E0=s(40715),fc=s(44229),Od=s(26842);const sh=ye.Ay.div.withConfig({displayName:"styles__StyledMubanPanel",componentId:"sc-1glgvok-0"})(["&.is-loading{display:flex;align-items:center;justify-content:center;height:100%;img.loading{width:50px;height:50px;}}&.muban-panel-scroll-list{min-height:calc(100% - 40px);position:relative;.muban-panel-container{min-height:100%;}}button.solid{",";}button.blue{",";}"],Od.FC,Od._j),lh=ye.Ay.header.withConfig({displayName:"styles__StyledHeader",componentId:"sc-1glgvok-1"})(["padding:0 12px;height:32px;display:flex;justify-content:space-between;align-items:center;color:",";font-weight:500;&.detail-header{position:absolute;top:0;z-index:2;width:100%;background:",";margin-top:0;height:32px;}.back-content{display:flex;align-items:center;width:calc(100% - 52px);.arrow-box{margin-right:4px;margin-left:-4px;width:24px;height:24px;display:flex;align-items:center;justify-content:center;border-radius:4px;cursor:pointer;.svg-icon{width:6px;transform:rotate(-180deg);}&:hover{background-color:",";}}.header-title{",";width:calc(100% - 30px);}}.right-content{display:flex;align-items:center;.svg-icon{",";&.manage-libs-icon{fill:none;margin-right:4px;path{fill:none;}}}}"],E=>E.theme.color_text_L1,E=>E.theme.color_bg_white,E=>E.theme.color_btn_secondary_hover,ot.L9,Od.eK),Gp="local_muban_panel_mode",ch=E=>{var le,de,_e;let{keyword:Vt}=E;const[Bt,ln]=(0,r.useState)((0,Ve.Yt)(Gp,"grid",Ve.qW.String)),Ht=(0,I.d4)(mc.aD),En=(0,I.d4)(mc.SP),po=(0,I.d4)(mc.kR),Lo=(0,I.d4)(mc.fn),Bo=(0,I.d4)(e0.bt),Zo=(0,I.d4)(mc.oo),Yo=(0,I.wA)();(0,r.useEffect)(()=>{(0,Bd.bJ)()||Yo({type:"entry:libStyle:mubanPanel:init:libMubanTreeMap"}),En?Yo({type:"entry:libStyle:mubanPanel:init:libMubanTreeMap"}):Bo&&(0,fc._o)(()=>{Yo({type:"entry:libStyle:init"})},{timeout:200})},[Yo,Bo,En]);const Jo=(0,r.useMemo)(()=>{var sa;return((sa=Lo.get("local"))==null?void 0:sa.length)>0},[Lo]),ea=()=>{const sa=Bt==="list"?"grid":"list";ln(sa),(0,Ve.a0)(Gp,sa,Ve.qW.String)},qo=sa=>{Yo({type:"style-lib:update:mubanDetailLib",payload:sa})},Go=()=>Yo({type:"style-lib:update:mubanDetailLib",payload:null}),$o=(0,r.useCallback)((sa,va)=>{sa.stopPropagation(),sdkStore.updateHotAttrKV(va.key,"extInfo",{...va.hotAttr.extInfo,isRemove:!0}),Yo({type:"entry:libStyle:remove:addedLibList",payload:{key:va.key}})},[]),ba=(sa,va)=>va.offsetWidth<va.scrollWidth;return(0,W.jsxs)(W.Fragment,{children:[!Vt&&(0,W.jsxs)(lh,{className:Ht?"detail-header":"",children:[Ht?(0,W.jsxs)("div",{className:"back-content",onClick:Go,children:[(0,W.jsx)("div",{className:"arrow-box",children:(0,W.jsx)(j.C,{name:"design/arrow/right",className:"arrow"})}),(0,W.jsx)(l.A,{content:Ht==null||(le=Ht.hotAttr)==null?void 0:le.name,distance:20,direction:"down",isShowTipsByTarget:ba,children:(0,W.jsx)("span",{className:"header-title",children:(Ht==null?void 0:Ht.key)==="local"?"\u672C\u5730\u8D44\u6E90\u5E93":Ht==null||(de=Ht.hotAttr)==null?void 0:de.name})})]}):(0,W.jsx)("span",{children:"\u5168\u90E8\u8D44\u6E90\u5E93"}),(0,Bd.bJ)()&&(0,W.jsxs)("div",{className:"right-content",children:[(0,W.jsx)(E0.m,{}),(0,W.jsx)(B2.Q,{icon:(0,W.jsx)(j.C,{name:"setting_panel/libPanl/mode/"+Bt,size:24}),content:I18N.libPanel.display_mode[Bt],direction:"down",onClick:ea})]})]}),(0,W.jsx)(sh,{className:M()("muban-panel-scroll-list",{"is-loading":!po}),children:po?(0,W.jsx)("div",{className:"muban-panel-container",children:Ht?(0,W.jsx)(H2,{currentMode:Bt,currentLib:Ht,keyword:Vt,treeData:Lo.get((Ht==null||(_e=Ht.hotAttr)==null||(_e=_e.extInfo)==null?void 0:_e.flatKey)||"local")}):(0,W.jsx)(W2,{libMubanTreeMap:Lo,isHasMubanInLocal:Jo,currentMode:Bt,onGotoLib:qo,keyword:Vt,addedLibList:Zo,onRemoveLib:$o})}):(0,W.jsx)(B0.f,{className:"loading"})}),(0,W.jsx)(Zn.yP,{type:"vertical",containerRef:{current:document.querySelector(".template-panel-content")},isAutoHideBar:!0})]})};class dh extends r.PureComponent{componentDidMount(){this.props.dispatch({type:"muban-panel:update:mubanList",payload:{mubanList:(0,Ws.AG)()}})}componentDidUpdate(le,de,_e){var Vt;(le==null||(Vt=le.templates)==null?void 0:Vt.length)!==(0,Ws.AG)().length&&this.props.dispatch({type:"muban-panel:update:mubanList",payload:{mubanList:(0,Ws.AG)()}})}render(){const{keyword:le,layout:de}=this.props;return(0,W.jsx)(g1,{children:(0,W.jsx)(gd.k0,{className:M()("template-panel-content",{right:de==="old_right"}),children:(0,W.jsx)(ch,{keyword:le})})})}}const ph=(0,J.Mz)([te.O4,te.PI,te.k3,T.GI,T.AG,te.bP],(E,le,de,_e,Vt,Bt)=>({templates:Vt,theme:E,showDragMode:le,isAdsorbentReferenceLine:de,keyword:_e,layout:Bt})),yl=(0,I.Ng)(E=>ph(E))(dh),Ic=E=>{let{keyword:le}=E;const de=(0,I.d4)(te.O4);if(le)return(0,W.jsx)(uh,{theme:de});const _e=Vt=>ENV.IS_ON_PREMISES?Vt==null?void 0:Vt.replace(/<a\b[^>]*>(.*?)<\/a>/gi,""):Vt;return(0,W.jsxs)(gd.I1,{children:[(0,W.jsx)("div",{className:"title",children:I18N.Popups.noMaster_title_1}),(0,W.jsxs)("div",{className:"content",children:[(0,W.jsx)("p",{dangerouslySetInnerHTML:{__html:_e(I18N.Popups.noMaster_tips1)}}),(0,W.jsx)("p",{dangerouslySetInnerHTML:{__html:_e(I18N.Popups.noMaster_tips3)}})]}),(0,W.jsx)("div",{className:"title",children:I18N.Popups.noMaster_title_2}),(0,W.jsx)("div",{className:"content",children:(0,W.jsx)("p",{dangerouslySetInnerHTML:{__html:_e(I18N.Popups.noMaster_tips2)}})})]})},uh=E=>{let{theme:le}=E;return(0,W.jsxs)(R2.k,{children:[(0,W.jsx)("img",{src:le==="dark"?"/mb-workspace/images/workspace/design/no_icons_dark.png":"/mb-workspace/images/workspace/design/no_icons_light.png"}),(0,W.jsx)("p",{className:"tips",children:I18N.Popups.no_result})]})};class em extends r.PureComponent{render(){const{show:le}=this.props;return le?(0,W.jsx)(yl,{}):null}}const tm=(0,I.Ng)(E=>({show:(0,N.OW)(E)===is.lS.Template}))(em);var hh=s(63619),G2=s(67773),L=s(91210),P=s(89505),b=s(78903);const u=(0,ye.Ay)(Ll).withConfig({displayName:"styles__StyledCollapsePanel",componentId:"sc-13sltcn-0"})(["position:relative;&.collapse-children > header{padding-left:","px;}& > header{position:relative;transition:border-color 0.2s ease-in-out;padding-left:12px;.count{margin-left:auto;margin-right:10px;color:",";opacity:0.7;}.actions{display:none;position:absolute;top:5px;bottom:5px;right:12px;background:",";.action{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;color:",";font-size:12px;border-radius:4px;.svg-icon{width:12px;height:12px;}&:hover{background-color:",";}}}&:hover{color:",";.expanded-icon .main{fill:",";}.title{width:185px;flex:0 1 auto;}.actions{display:block;background:",";color:",";}.count{display:none;}.is-always-show.count{display:block;}}}&::after{content:'';position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;border:2px solid transparent;transition:all 0.15s ease-in-out;}&.active{pointer-events:none;& > header{border-color:transparent;.actions{display:none;}}&::after{background:rgba(41,141,248,0.06);border-color:#298df8;}}.collapse-loading{height:24px;}"],E=>12+(E.level-1)*8,E=>E.theme.color_text_L3,E=>E.theme.color_bg_white,E=>E.theme.color_text_L1,E=>E.theme.color_btn_secondary_active,E=>E.theme.color_proto,E=>E.theme.color_proto,E=>E.theme.color_btn_secondary_hover,E=>E.theme.color_proto),f=(0,r.memo)(function E(le){const{assetGroup:de,assetsMap:_e,isEditing:Vt,editingCid:Bt,canEditLibrary:ln,canAddToOrg:Ht,width:En,level:po,containerRect:Lo,assetActions:Bo,assetGroupAction:Zo,shouldAuth:Yo,isShowTransferOrg:Jo,keyword:ea,currentUserId:qo,assetsOpenCids:Go}=le,{cid:$o,subFolder:ba}=de,sa=Go.includes($o),[va,pr]=(0,r.useState)(!1),lr=jr=>{const{onConfirm:Gr}=Zo;Gr(jr,de,()=>{va&&MB.notice({text:I18N.Popups.folder_save_success}),pr(!1)})},{isShowLoading:Cr,displayAsset:si,isShowAssetList:Ui}=(0,r.useMemo)(()=>{const jr=_e.get($o),Gr=(yc,ad)=>ad?yc.filter(Ji=>{let{name:Kl}=Ji;return Kl.toLowerCase().indexOf(ad.toLowerCase())!==-1}).sort((Ji,Kl)=>Kl.timestamp-Ji.timestamp):yc.sort((Ji,Kl)=>Kl.timestamp-Ji.timestamp);let Ei,fs,ec;return Yo?(Ei=sa&&!jr,fs=!Ei&&sa&&jr&&Gr(jr,ea),ec=!Ei&&sa&&fs.length):(Ei=!jr,fs=!Ei&&Gr(jr,ea),ec=!Ei&&fs.length),{isShowLoading:Ei,displayAsset:fs,isShowAssetList:ec}},[Yo,sa,_e,$o,ea]);(0,r.useEffect)(()=>{const{onLoadData:jr}=Zo;if(Vt&&pr(!0),!Yo)Go.includes($o)&&jr($o);else{const{cid:Gr}=de;Go.includes(Gr)&&(_e.get(Gr)||jr(Gr))}},[]);const Qi=jr=>jr.map(Gr=>(0,W.jsx)(E,{assetGroup:Gr,isEditing:Gr.cid===Bt,editingCid:Bt,canEditLibrary:ln,canAddToOrg:Ht,assetsMap:_e,keyword:ea,width:En,level:po+1,containerRect:Lo,assetActions:Bo,assetGroupAction:Zo,shouldAuth:Yo,isShowTransferOrg:Jo,currentUserId:qo,assetsOpenCids:Go},Gr.cid));return(0,W.jsx)(u,{"data-cid":$o,className:"asset-group-panel",group:de,isExpanded:sa,width:En,level:po,isEditing:Vt,editingCid:Bt,shouldAuth:Yo,canEditLibrary:ln,currentUserId:qo,isShowTransferOrg:Jo,groupAction:Zo,isAsset:!0,onConfirm:lr,children:(0,W.jsxs)(W.Fragment,{children:[Cr?(0,W.jsx)(rs.A,{className:"collapse-loading"}):null,Ui?(0,W.jsx)(b.R,{shouldAuth:Yo,canEditLibrary:ln,canAddToOrg:Ht,assetList:si,currentUserId:qo,containerRect:sa?Lo:null,assetActions:Bo}):null,ba&&Qi(ba)]})})});var g=s(20085);const S=(0,r.memo)(function(le){const{assetList:de,assetMap:_e,editingCid:Vt,canEditLibrary:Bt,canAddToOrg:ln,keyword:Ht,currentOrg:En,assetActions:po,assetGroupAction:Lo,theme:Bo,isOrg:Zo,currentUserId:Yo,assetsOpenCids:Jo}=le,[ea,qo]=(0,r.useState)((0,g.H)(de));return(0,r.useEffect)(()=>{const Go=(0,g.H)(de);qo(Go)},[de]),(0,W.jsx)(Lp.Z,{id:"group-list-container",children:(0,W.jsx)("div",{className:"group-main",children:(0,W.jsx)(Lp.g,{id:"group-list",className:M()("asset-content"),children:Go=>ea.length>0?ea.map($o=>(0,W.jsx)(f,{assetGroup:$o,assetsMap:_e,canEditLibrary:Bt,canAddToOrg:ln,assetsOpenCids:Jo,width:ts.qv,level:$o.level,isEditing:Vt===$o.cid,editingCid:Vt,containerRect:Go,assetActions:po,assetGroupAction:Lo,keyword:Ht,isShowTransferOrg:!!En,currentUserId:Yo,shouldAuth:Zo},$o.cid)):Ht?(0,W.jsx)(O,{theme:Bo}):(0,W.jsx)(_,{isOrg:Zo})})})})}),_=E=>{const{isOrg:le}=E;return(0,r.useMemo)(()=>{const de=le?I18N.Resources.assetPanel.chooseImg:I18N.Resources.assetPanel.chooseMyImg;let _e='<span class="title">'+I18N.Resources.assetPanel.uploadImg+"</span>"+de;return!ENV.IS_MO&&!ENV.IS_ON_PREMISES&&(_e+="<a href='/hc/articles/27' target=\"_blank\">"+I18N.Resources.assetPanel.learnMore+"</a>"),(0,W.jsx)(A2,{children:(0,W.jsx)("p",{dangerouslySetInnerHTML:{__html:_e}})})},[le])},O=()=>(0,W.jsx)(R2.k,{children:(0,W.jsx)("p",{className:"tips",children:I18N.Popups.content_not_found})}),V=(0,J.Mz)([T.M5,ne.Ur,T.$L,T.cb,ne.qv],(E,le,de,_e,Vt)=>{const{userAssetsMap:Bt,userAssetGroupList:ln}=E;return{userAssetGroupList:ln.sort((En,po)=>En.position-po.position),userAssetsMap:Bt,currentScreen:le,localUserAssetsOpenCids:de,isRequestUserAssetGroup:_e,canEditLibrary:Vt}}),H=(0,r.memo)(function(le){const de=(0,I.wA)(),{userAssetGroupList:_e,userAssetsMap:Vt,currentScreen:Bt,localUserAssetsOpenCids:ln,isRequestUserAssetGroup:Ht}=(0,I.d4)(qo=>V(qo)),{keyword:En,editingCid:po,theme:Lo,currentOrg:Bo,currentUser:Zo,canEditLibrary:Yo}=le,Jo=(0,L.B)({...le,dispatch:de,isOrg:!1,popupsName:is.lS.Asset,localUserAssetsOpenCids:ln}),ea=(0,P.c)({...le,dispatch:de,currentScreen:Bt,popupsName:is.lS.Asset});return(0,r.useEffect)(()=>{Ht||(async()=>{await de({type:"entry:load:user:asset:group:list"})})()},[]),(0,W.jsx)(S,{assetList:_e,assetMap:Vt,assetsOpenCids:ln,editingCid:po,canEditLibrary:!0,canAddToOrg:Yo,keyword:En,currentOrg:Bo,assetActions:ea,assetGroupAction:Jo,theme:Lo,currentUserId:Zo==null?void 0:Zo.id,isOrg:!1})}),Y=(0,J.Mz)([T.vl,ne.Ur,T.i,T.Hl],(E,le,de,_e)=>{const{orgAssetsMap:Vt,orgAssetGroupList:Bt}=E;return{orgAssetGroupList:Bt.sort((Ht,En)=>Ht.position-En.position),orgAssetsMap:Vt,currentScreen:le,localOrgAssetsOpenCids:de,isRequestOrgAssetGroup:_e}}),re=(0,r.memo)(function(le){const de=(0,I.wA)(),{orgAssetGroupList:_e,orgAssetsMap:Vt,currentScreen:Bt,localOrgAssetsOpenCids:ln,isRequestOrgAssetGroup:Ht}=(0,I.d4)(qo=>Y(qo)),{keyword:En,editingCid:po,theme:Lo,currentOrg:Bo,currentUser:Zo,canEditLibrary:Yo}=le,Jo=(0,L.B)({...le,dispatch:de,isOrg:!0,popupsName:is.lS.Asset,localOrgAssetsOpenCids:ln}),ea=(0,P.c)({...le,dispatch:de,isOrg:!0,currentScreen:Bt,popupsName:is.lS.Asset});return(0,r.useEffect)(()=>{Ht||(async()=>{de({type:"entry:load:org:asset:group:list"})})()},[de,Ht]),(0,W.jsx)(S,{assetList:_e,assetMap:Vt,assetsOpenCids:ln,editingCid:po,canEditLibrary:Yo,keyword:En,currentOrg:Bo,assetActions:ea,assetGroupAction:Jo,theme:Lo,currentUserId:Zo==null?void 0:Zo.id,dispatchPath:"image-panel:set:org-assets-groups",requestAPI:(0,ep.XG)(Bo.cid),isOrg:!0})});var pe=s(88225),Ce=s(7279),Pe=s(90144),Ie=s(35298);const Re=()=>{const E=(0,I.wA)(),le=(0,I.d4)(T._V),de=(0,I.d4)(T.Z1),_e=(0,I.d4)(N.p),Vt=(0,I.d4)(N.DU);(0,r.useEffect)(()=>{Vt||(0,Ce.e)().catch(po=>{console.error("download meta.json failed",po)})},[Vt]);const Bt=po=>{E({type:"image-panel:update:state",payload:{assetNavIndex:Number(po)}}),(0,Pe.Ac)({source:po===0?"\u56FE\u7247":"\u8D34\u7EB8"})},ln=_e.length>0,Ht=(0,r.useMemo)(()=>[{key:"1",label:I18N.LeftSidePanel.image},{key:"2",label:I18N.LeftSidePanel.image_sticker,disabled:!ln}].filter(po=>!po.disabled),[ln]),En=()=>(0,W.jsx)(Td.S,{});return(0,W.jsxs)(Ie.CN,{children:[!de&&(0,W.jsx)(B.Ay,{className:"switch-tab",activeIndex:le,onTabChange:Bt,children:Ht.map(po=>{let{key:Lo,label:Bo}=po;return(0,W.jsx)(B.nl,{label:Bo},Lo)})}),le===0&&(0,W.jsx)(pe.Z,{activeWord:de,renderLoading:En}),le===1&&(0,W.jsx)(Ce.S,{activeWord:de,renderLoading:En})]})},We=(0,J.Mz)([T.tl,te.O4,ne.wA,ne.qv,T.tY,ne.X_,ne.Pz,ne.PL,ne.HW,te.PI,te.k3,T.Z_,T.EV],(E,le,de,_e,Vt,Bt,ln,Ht,En,po,Lo,Bo,Zo)=>({canEditLibrary:_e,editingCid:E,theme:le,collapsePanelSet:Vt,scale:Bt,canvasRect:ln,rootProject:Ht,currentUser:En,currentOrg:de,showDragMode:po,isAdsorbentReferenceLine:Lo,assetUploadState:Bo,assetUpload:Zo}));function ct(E){const le=(0,I.d4)(Vt=>We(Vt)),{isOrgProject:de,activeIndex:_e}=E;return(0,W.jsxs)(W.Fragment,{children:[_e===0&&(0,W.jsx)(Re,{}),_e===1&&(0,W.jsx)(H,{...le}),de&&_e===2&&(0,W.jsx)(re,{...le})]})}const vt=ye.Ay.div.withConfig({displayName:"styles__StyledProgressBar",componentId:"sc-y7ckqj-0"})(["position:absolute;width:100%;display:flex;align-items:center;.rail{position:absolute;top:13px;left:0;width:100%;height:3px;&::before{content:'';position:absolute;height:100%;left:0;right:0;background:#b0d4fa;border-radius:3px;}}.fill{position:absolute;left:0;width:0;height:100%;background:",";border-radius:3px;transition:width 0.5s ease-in-out;}"],E=>E.theme.color_proto),Ut=ye.Ay.div.withConfig({displayName:"styles__StyledAssetUploadState",componentId:"sc-y7ckqj-1"})(["position:relative;width:100%;height:32px;display:flex;justify-content:center;align-items:center;p{color:#5b6b73;}","{visibility:hidden;}&.prepare{background:#faf0cb;}&.loading{background:#d3e6fb;","{visibility:visible;}}&.success{background:#ddf2e4;}&.failed{background:#fcdcdc;padding:0 22px;justify-content:flex-start;.image-failed{color:#5b6b73;text-decoration:underline;cursor:pointer;position:relative;padding-left:8px;&:hover{& + .image-zk{display:flex;}}}.times-icon{margin-left:auto;cursor:pointer;color:#5b6b73;}}"],vt,vt),pn=ye.Ay.div.withConfig({displayName:"styles__StyledImageFailedTips",componentId:"sc-y7ckqj-2"})(["display:none;position:absolute;flex-direction:column;bottom:40px;left:5px;min-width:210px;height:107px;padding:16px;background:#fff;border-radius:2px;box-shadow:0 2px 8px 0 rgba(0,0,0,0.15);.tips-mian{font-size:14px;font-weight:600;color:#415058;line-height:20px;margin-bottom:12px;}.tips-item{line-height:20px;margin-bottom:4px;}.asset-failure-list{overflow:hidden;}"]),fn=(0,r.memo)(function(le){const{assetUploadState:de,assetUpload:_e,onCloseUpload:Vt}=le;if(de==="close")return null;const Bt=de==="start"&&_e.index===0,ln=de==="start"&&_e.index>0,Ht=de==="end"&&_e.assetUploaderFailure.length===0,En=de==="failure"&&_e.assetUploaderFailure.length!==0,po=M()({prepare:Bt,loading:ln,success:Ht,failed:En}),Lo=Bt?I18N.LibraryContainer.image_uploading_wait:ln?I18N.LibraryContainer.image_uploading+" "+_e.index+" / "+_e.indexMax:Ht?I18N.LibraryContainer.image_uploaded_ok:I18N.LibraryContainer.image_faild_tips,Bo=Bt?0:_e.index/_e.indexMax||0;return(0,W.jsxs)(Ut,{className:po,children:[(0,W.jsx)("p",{children:Lo}),En&&(0,W.jsx)(Mn,{assetFailureList:_e.assetUploaderFailure,onClose:Vt}),(0,W.jsx)(uo,{value:Bo})]})}),uo=E=>{let{value:le}=E;return(0,W.jsx)(vt,{className:"slider",children:(0,W.jsx)("div",{className:"rail",children:(0,W.jsx)("div",{className:"fill",style:{width:le*100+"%"}})})})},Mn=E=>{let{assetFailureList:le,onClose:de}=E;return(0,W.jsxs)(r.Fragment,{children:[(0,W.jsx)("p",{className:"image-failed",children:I18N.LibraryContainer.image_faila_tips1}),(0,W.jsxs)(pn,{className:"image-zk",children:[(0,W.jsx)("p",{className:"tips-mian",children:I18N.LibraryContainer.image_faild}),(0,W.jsx)("div",{className:"asset-failure-list",children:le.map(_e=>{const{name:Vt}=_e;return(0,W.jsx)("p",{className:"tips-item",children:Vt},Vt)})})]}),(0,W.jsx)(j.C,{className:"times-icon",name:"general/times",onClick:de})]})},Gt=ye.Ay.div.withConfig({displayName:"styles__StyledImagePanel",componentId:"sc-1herk0a-0"})(["height:100%;display:flex;flex:1;flex-direction:column;overflow:hidden;> header{display:flex;align-items:center;padding:16px 10px 8px 12px;}"]),yo=(0,ye.Ay)(hc.A).withConfig({displayName:"styles__StyledImageContent",componentId:"sc-1herk0a-1"})(["display:flex;flex:1;justify-content:center;overflow:hidden auto;transition:box-shadow 0.2s ease-in-out;&::-webkit-scrollbar{display:none;}&:hover::-webkit-scrollbar{display:block;}"]),Do=(0,J.Mz)([T.tY,T.R4,ne.PL,T.Z_,T.EV,ne.W4,ne.qv],(E,le,de,_e,Vt,Bt,ln)=>{const{is_org_project:Ht}=de;return{collapsePanelSet:E,imagePanelNavIndex:le,isOrgProject:Ht,assetUploadState:_e,assetUpload:Vt,currentDesignOptions:Bt,canEditLibrary:ln}});function Wo(){const E=(0,I.wA)(),{collapsePanelSet:le,imagePanelNavIndex:de,isOrgProject:_e,assetUploadState:Vt,assetUpload:Bt,canEditLibrary:ln,currentDesignOptions:{isExperience:Ht}}=(0,I.d4)(Jo=>Do(Jo)),[En,po]=(0,r.useState)(!1);(0,r.useEffect)(()=>{po(Bo===2)},[]);const Lo=(0,r.useMemo)(()=>_e?[{key:0,label:I18N.Resources.findTab},{key:1,label:I18N.LeftSidePanel.user_resources},{key:2,label:I18N.LeftSidePanel.org_resources}]:[{key:0,label:I18N.Resources.findTab},{key:1,label:I18N.LeftSidePanel.user_resources}],[_e]),Bo=de>=0&&de<=(Lo==null?void 0:Lo.length)-1?de:0,Zo=Jo=>{Jo===1&&Ht&&MB.global.experienceLoginModalHelper("isSave")||(E({type:"image-panel:update:state",payload:{navIndex:Jo}}),po(Jo===2))},Yo=Bo===0||Ht;return(0,W.jsxs)(Gt,{className:M()("image-panel-container"),children:[(0,W.jsx)(G2.d,{activeIndex:Bo,onTabChange:Zo,tabList:Lo}),!Yo&&(0,W.jsx)("header",{children:(0,W.jsx)(Ku,{isOrg:En,isImage:!0,canEditLibrary:ln,collapsePanelSet:le,dispatch:E})}),(0,W.jsx)(yo,{className:"image-content",children:()=>(0,W.jsx)(ct,{isOrgProject:_e,activeIndex:Bo})}),(0,W.jsx)(fn,{assetUpload:Bt,assetUploadState:Vt,onCloseUpload:()=>{console.log("must been closed")}})]})}class Ro extends r.PureComponent{render(){const{show:le}=this.props;return le?(0,W.jsx)(Wo,{}):null}}const ra=(0,J.Mz)([N.OW],E=>({show:E===is.lS.Asset})),ka=(0,I.Ng)(E=>ra(E))(Ro);var pa=s(65791),Ma=s(90592),Ya=Object.defineProperty,di=Object.defineProperties,ja=Object.getOwnPropertyDescriptors,ri=Object.getOwnPropertySymbols,ks=Object.prototype.hasOwnProperty,ti=Object.prototype.propertyIsEnumerable,vi=(E,le,de)=>le in E?Ya(E,le,{enumerable:!0,configurable:!0,writable:!0,value:de}):E[le]=de,Hr=(E,le)=>{for(var de in le||(le={}))ks.call(le,de)&&vi(E,de,le[de]);if(ri)for(var de of ri(le))ti.call(le,de)&&vi(E,de,le[de]);return E},Yr=(E,le)=>di(E,ja(le)),br=(E,le)=>{var de={};for(var _e in E)ks.call(E,_e)&&le.indexOf(_e)<0&&(de[_e]=E[_e]);if(E!=null&&ri)for(var _e of ri(E))le.indexOf(_e)<0&&ti.call(E,_e)&&(de[_e]=E[_e]);return de},mr=(0,r.forwardRef)((E,le)=>{var de=E,{size:_e,spin:Vt,style:Bt}=de,ln=br(de,["size","spin","style"]);const Ht=Hr(Hr({width:_e||"var(--x-icon-size, 1em)",height:_e||"var(--x-icon-size, 1em)",animation:Vt?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),Bt);return r.createElement("svg",Yr(Hr({ref:le,style:Ht},ln),{width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),r.createElement("path",{d:"M12 13.6667C12 12.1939 13.1939 11 14.6667 11H22.6667L28 16.3333V26.3333C28 27.8061 26.8061 29 25.3333 29H14.6667C13.1939 29 12 27.8061 12 26.3333L12 13.6667Z",fill:"#A069FF"}),r.createElement("path",{d:"M22.6667 14.5556V11L28.0001 16.3333H24.4445C23.4627 16.3333 22.6667 15.5374 22.6667 14.5556Z",fill:"#E8D9FF"}))}),pi=Object.defineProperty,ui=Object.defineProperties,tl=Object.getOwnPropertyDescriptors,Yi=Object.getOwnPropertySymbols,us=Object.prototype.hasOwnProperty,pl=Object.prototype.propertyIsEnumerable,Va=(E,le,de)=>le in E?pi(E,le,{enumerable:!0,configurable:!0,writable:!0,value:de}):E[le]=de,Xi=(E,le)=>{for(var de in le||(le={}))us.call(le,de)&&Va(E,de,le[de]);if(Yi)for(var de of Yi(le))pl.call(le,de)&&Va(E,de,le[de]);return E},hs=(E,le)=>ui(E,tl(le)),Xs=(E,le)=>{var de={};for(var _e in E)us.call(E,_e)&&le.indexOf(_e)<0&&(de[_e]=E[_e]);if(E!=null&&Yi)for(var _e of Yi(E))le.indexOf(_e)<0&&pl.call(E,_e)&&(de[_e]=E[_e]);return de},ms=(0,r.forwardRef)((E,le)=>{var de=E,{size:_e,spin:Vt,style:Bt}=de,ln=Xs(de,["size","spin","style"]);const Ht=Xi(Xi({width:_e||"var(--x-icon-size, 1em)",height:_e||"var(--x-icon-size, 1em)",animation:Vt?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),Bt);return r.createElement("svg",hs(Xi({ref:le,style:Ht},ln),{width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),r.createElement("path",{d:"M12 11C10.8954 11 10 11.8954 10 13V27C10 28.1046 10.8954 29 12 29H28C29.1046 29 30 28.1046 30 27V13C30 11.8954 29.1046 11 28 11H12Z",fill:"url(#paint0_linear_915_62)"}),r.createElement("path",{opacity:"0.4",d:"M15 13C14.4477 13 14 13.4477 14 14V23C14 23.5523 14.4477 24 15 24H25C25.5523 24 26 23.5523 26 23V14C26 13.4477 25.5523 13 25 13H15Z",fill:"url(#paint1_linear_915_62)"}),r.createElement("path",{d:"M14 15C13.4477 15 13 15.4477 13 16V25C13 25.5523 13.4477 26 14 26H26C26.5523 26 27 25.5523 27 25V18.3V16C27 15.4477 26.5523 15 26 15H24.375H14Z",fill:"#B5D7FF"}),r.createElement("path",{d:"M13 17C12.4477 17 12 17.4477 12 18V25C12 25.5523 12.4477 26 13 26H27C27.5523 26 28 25.5523 28 25V19.7V18C28 17.4477 27.5523 17 27 17H25H13Z",fill:"#F2F8FF"}),r.createElement("foreignObject",{x:"6.5",y:"16.5",width:"27",height:"15"},r.createElement("div",{xmlns:"http://www.w3.org/1999/xhtml",style:{backdropFilter:"blur(1.25px)",clipPath:"url(#bgblur_0_915_62_clip_path)",height:"100%",width:"100%"}})),r.createElement("path",{dataFigmaBgBlurRadius:"2.5",d:"M17.4105 21C17.1453 21 16.8946 20.8946 16.7071 20.7071L15.2929 19.2929C15.1054 19.1054 14.851 19 14.5858 19H10C9.44772 19 9 19.4477 9 20V27C9 28.1046 9.89543 29 11 29H29C30.1046 29 31 28.1046 31 27V22C31 21.4477 30.5582 21 30.0059 21C27.2662 21 19.6616 21 17.4105 21Z",fill:"url(#paint2_linear_915_62)"}),r.createElement("defs",null,r.createElement("clipPath",{id:"bgblur_0_915_62_clip_path",transform:"translate(-6.5 -16.5)"},r.createElement("path",{d:"M17.4105 21C17.1453 21 16.8946 20.8946 16.7071 20.7071L15.2929 19.2929C15.1054 19.1054 14.851 19 14.5858 19H10C9.44772 19 9 19.4477 9 20V27C9 28.1046 9.89543 29 11 29H29C30.1046 29 31 28.1046 31 27V22C31 21.4477 30.5582 21 30.0059 21C27.2662 21 19.6616 21 17.4105 21Z"})),r.createElement("linearGradient",{id:"paint0_linear_915_62",x1:"19.5",y1:"11",x2:"19.5",y2:"28.5",gradientUnits:"userSpaceOnUse"},r.createElement("stop",{offset:"0.175273",stopColor:"#479CFF"}),r.createElement("stop",{offset:"1",stopColor:"#215BCC"})),r.createElement("linearGradient",{id:"paint1_linear_915_62",x1:"19.6358",y1:"10.7026",x2:"19.6291",y2:"27.2083",gradientUnits:"userSpaceOnUse"},r.createElement("stop",{offset:"0.0929332",stopColor:"white"}),r.createElement("stop",{offset:"0.748117",stopColor:"white",stopOpacity:"0"})),r.createElement("linearGradient",{id:"paint2_linear_915_62",x1:"20",y1:"19",x2:"20",y2:"30.4286",gradientUnits:"userSpaceOnUse"},r.createElement("stop",{offset:"0.015922",stopColor:"#76D6FF",stopOpacity:"0.75"}),r.createElement("stop",{offset:"0.615584",stopColor:"#57B7F8"}),r.createElement("stop",{offset:"0.834691",stopColor:"#44A3F4"}),r.createElement("stop",{offset:"1",stopColor:"#3191F0"}))))});const Fl=E=>{let{activeTitleValue:le,scrollToItem:de,scrollContainerRef:_e,setActiveTitle:Vt}=E;const Bt=(0,I.d4)(T.E),ln=(0,I.d4)(T.WG),Ht=(0,I.d4)(T.CL),En=(0,I.wA)();(0,r.useEffect)(()=>{le&&En({type:"page-panel:update:state",payload:{findPlatformSubType:le}})},[le,En]);const po=(0,r.useMemo)(()=>(Ht.get(Bt)||[{cid:"recommend",name:I18N.Resources.page_panel.recommend,children:[]}]).map(Jo=>{let{name:ea,cid:qo}=Jo;return{label:ea,value:qo}}),[Bt,Ht]),Lo=(0,r.useMemo)(()=>[{label:I18N.Resources.page_panel.mobile,value:"mobile"},{label:I18N.Resources.page_panel.web,value:"web"},{label:I18N.Resources.page_panel.visual,value:"visual"}],[]),Bo=(0,r.useCallback)(Yo=>{var Jo;if(Yo===Bt)return;_e.current.scrollTop=0;const ea=(Jo=Ht.get(Yo)[0])==null?void 0:Jo.cid;En({type:"entry:resources:set:pagePanel:find:update:data",payload:{platformType:Yo,platformSubType:ea}}),Vt(null)},[En,_e,Bt]),Zo=(0,r.useCallback)(Yo=>{En({type:"entry:resources:set:pagePanel:find:update:data",payload:{platformSubType:Yo}});const Jo=po.findIndex(ea=>{let{value:qo}=ea;return Yo===qo});setTimeout(()=>{de(Jo)},16)},[En,po,de]);return(0,W.jsxs)("div",{className:"platform-group",children:[(0,W.jsx)(_t.A,{selectedValue:Bt,optionList:Lo,onChange:Bo}),(0,W.jsx)(_t.A,{selectedValue:ln,optionList:po,onChange:Zo})]})},b1=ye.Ay.div.withConfig({displayName:"styles__StyledPageComp",componentId:"sc-8jxtcs-0"})(["display:flex;flex:1;flex-direction:column;overflow:hidden;.template-list-loading-container{padding-top:8px;}.template-filter-group{display:flex;width:100%;height:40px;padding:7px 6px;justify-content:space-between;align-items:center;border-bottom:1px solid ",";.platform-group{display:flex;flex:1;height:28px;}}.template-list-scroll-container{overflow:hidden overlay;display:flex;flex-direction:column;flex:1;height:100%;scrollbar-width:none;}.bar-vertical{z-index:3;}"],E=>E.theme.color_bg_border_01),lp=ye.Ay.div.withConfig({displayName:"styles__StyledPageFind",componentId:"sc-8jxtcs-1"})(["display:flex;flex:1 1 0;flex-direction:column;overflow:hidden;.create-group{display:flex;justify-content:space-between;align-items:center;width:100%;padding:0 12px;margin-top:0;button{display:flex;align-items:center;justify-content:center;width:109px;height:28px;border-radius:4px;background:",";&:hover{background:",";}&:active{background:",";}.title{color:",";font-size:12px;font-style:normal;line-height:12px;}&.model-generate-button{svg{width:10px;margin-right:4px;color:",";}}&.hide-ai{width:100%;}&.ai-entry-icon-button{.Tooltip{display:flex;height:100%;align-items:center;}&.is-page{svg{margin-right:4px;}}svg{width:16px;margin-right:2px;}}}}"],E=>E.theme.color_bg_card,E=>E.theme.color_btn_secondary_hover,E=>E.theme.color_btn_secondary_active,E=>E.theme.color_text_L1,E=>E.theme.color_text_L1),w1=ye.Ay.div.withConfig({displayName:"styles__StyledPageFindList",componentId:"sc-8jxtcs-2"})(["display:flex;flex:1 1 0;flex-direction:column;overflow:hidden;position:relative;.first-title{margin:0 12px;display:flex;color:",";.title{width:100%;padding:8px 0;border-bottom:1px solid ",";}&.is-hide{visibility:hidden;height:0;padding:0;}}.second-title{padding:8px 12px;display:flex;color:",";font-weight:500;}.page-scroll-list-container{scrollbar-width:none;}.market-template-masonry-list-container{margin-bottom:8px;&.web,&.visual{.template-item{.img-wrapper{border-radius:8px;}}}}&.mobile{.template-list-loading-container{.template-box{.template-cover,.template-info{border-radius:6px;}}}}.template-list-loading-container{margin-top:12px;}"],E=>E.theme.color_text_L3,E=>E.theme.color_bg_border_01,E=>E.theme.color_text_L1),Zp=ye.Ay.div.withConfig({displayName:"styles__StyledPageLibrary",componentId:"sc-8jxtcs-3"})(["display:flex;flex:1 1 0;flex-direction:column;overflow:hidden;.switch-tab{width:24px;height:32px;padding:0;button{&.community{margin-right:12px;}}.indicator{&.community{left:18px;}&.star{left:66px;}&:lang(en){&.community{left:24px;}&.star{left:91px;}}}}.switch-tab{position:absolute;top:57px;left:214px;}.page-library-back{display:flex;align-items:center;color:",";cursor:pointer;margin:0 0 12px 6px;width:fit-content;.arrow-left{margin-right:4px;flex:0 0 24px;.svg-icon{width:6px;height:10px;transform:rotate(-180deg);}}.title{font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}}header{padding-top:0;}"],E=>E.theme.color_text_L1);function I0(){const E=(0,I.d4)(T.Le),le=(0,I.d4)(T.E),de=(0,I.d4)(T.WG),_e=(0,I.d4)(T.v3),Vt=(0,I.d4)(T.CL),Bt=(0,I.d4)(pa.xN),ln=(0,I.d4)(T.SH),Ht=(0,I.d4)(T.xQ),En=(0,I.d4)(ne.PL),po=(0,r.useRef)(null),Lo=Lc(po),Bo=(0,r.useRef)(null),{activeTitleValue:Zo,scrollToItem:Yo,setItemRef:Jo,setActiveTitle:ea}=(0,Sl.G)(po),qo=le+"-"+de,Go=(0,r.useMemo)(()=>_e.get(qo),[qo,_e]),$o=(0,r.useMemo)(()=>ln.get(Ht),[ln,Ht]),ba=(0,r.useMemo)(()=>le==="mobile"?{itemWidth:109,itemHeight:109}:{itemWidth:225,itemHeight:150},[le]),sa=(0,I.wA)();(0,r.useEffect)(()=>{if(Lo==="up"){if(Bo.current){var jr,Gr;(jr=Bo.current)==null||jr.classList.add("sticky"),po==null||(Gr=po.current)==null||Gr.classList.add("padding-top-90")}}else{var Ei,fs;(Ei=Bo.current)==null||Ei.classList.remove("sticky"),po==null||(fs=po.current)==null||fs.classList.remove("padding-top-90")}},[Lo,le]);const va=(0,r.useCallback)(async function(jr){if(jr===void 0&&(jr=!1),!$o||MB.global.experienceLoginModalHelper("isSave"))return;const{is_star:Gr,cid:Ei}=$o,fs=jr?{...$o,is_purchased:!0,is_star:!0}:{...$o,is_star:!Gr};sa({type:"page-panel:update:map:state",payload:{key:"findMtResourceMap",value:new Map([[fs.cid,fs]])}}),(!jr||jr&&!Gr)&&await(0,Ws.lU)(Gr,Ei)},[$o,sa]),pr=(0,r.useCallback)(()=>va(!0),[va]),lr=(0,r.useCallback)((jr,Gr,Ei,fs)=>{try{const{policy:ec,category:yc,title:ad,copyright:Ji,platform:Kl}=Ei;(0,Ls.Mi)({popupsName:is.lS.Page,addType:Gr,source:Ls.Ii.PageFind,category:yc,platform:Kl,policy:ec,templateGroupName:ad,copyright:Ji,name:fs,rootProject:En,esSearchKey:jr})}catch(ec){console.log(ec.message)}},[En]),Cr=(0,r.useCallback)(jr=>{sa({type:"page-panel:update:state",payload:{findCurrentMtResourceCid:jr==null?void 0:jr.cid}})},[sa]),si=(0,r.useCallback)(jr=>{var Gr;sa({type:"modal:open:templateModal",payload:{source:jr}}),M0.U4.protoTemplatePopupClick((Gr=MB)==null||(Gr=Gr.user)==null?void 0:Gr.id,jr==="page"?"\u9875\u9762\u6A21\u677F\u5F39\u7A97":"\u6587\u4EF6\u6A21\u677F\u5F39\u7A97")},[sa]),Ui=(0,r.useMemo)(()=>[{label:"\u9875\u9762\u6A21\u677F",value:"page",icon:(0,W.jsx)(mr,{size:40}),onClick:si},{label:"\u6587\u4EF6\u6A21\u677F",value:"file",icon:(0,W.jsx)(ms,{size:40}),onClick:si}],[si]),Qi=()=>{sa({type:"page-panel:update:state",payload:{pageMode:"library"}}),sa({type:"entry:resources:reset:templatePanel:filter"})};return(0,W.jsxs)(w1,{className:le,children:[(0,W.jsxs)("div",{className:"template-filter-group",children:[(0,W.jsx)(Fl,{activeTitleValue:Zo,setActiveTitle:ea,scrollToItem:Yo,scrollContainerRef:po}),!ENV.IS_ON_PREMISES&&(0,W.jsx)(l.A,{content:I18N.Resources.page_panel.switch_icon.single,direction:"down",children:(0,W.jsx)(U.A,{name:"left_panel/template/page/single-page-icon",size:24,onClick:Qi})})]}),(0,W.jsxs)("div",{className:"bottom-container",children:[(0,W.jsx)(Ma.i4,{ref:po,className:"page-scroll-list-container",children:jr=>(0,W.jsx)(W.Fragment,{children:Bt?(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(wa.G,{cardList:Ui,ref:Bo}),jr&&(0,W.jsx)(W.Fragment,{children:Vt.get(le).map((Gr,Ei)=>{const fs=_e.get(le+"-"+(Gr==null?void 0:Gr.cid));return(0,W.jsxs)("div",{className:"template-list-content",ref:Jo(Ei),children:[(0,W.jsx)("span",{className:"second-title title","data-key":Gr==null?void 0:Gr.cid,children:Gr==null?void 0:Gr.name}),(0,W.jsx)(V1.A,{category:La.Gd,marketTemplateItemList:fs,isShowSign:!0,isShowFolderIcon:!0,platform:le,onTrack:lr,onPaidTemplates:pr,onOpenFolder:Cr,containerRect:jr,isRequsetMktStore:!0})]},Gr==null?void 0:Gr.cid)})})]}):(0,W.jsx)(V1.A,{category:La.Gd,marketTemplateItemList:Go,isShowSign:!0,isShowFolderIcon:!0,platform:le,onTrack:lr,onPaidTemplates:pr,onOpenFolder:Cr,containerRect:jr,isFloatPreviewMkt:!1,isRequsetMktStore:!0})})}),(po==null?void 0:po.current)&&(0,W.jsx)(Zn.yP,{type:"vertical",containerRef:po,isAutoHideBar:!0}),(0,W.jsx)(Pd,{scrollRef:po})]})]})}const nm=(0,r.memo)(I0);var C1=s(60407);function S1(){const E=(0,I.d4)(T.Le),le=(0,I.d4)(T.E),de=(0,r.useMemo)(()=>le==="mobile"?{itemWidth:109,itemHeight:109}:{itemWidth:225,itemHeight:150},[le]);return E?le?(0,W.jsx)(C1.A,{...de}):null:(0,W.jsx)(lp,{children:(0,W.jsx)(nm,{})})}var A1=Object.defineProperty,od=Object.defineProperties,Km=Object.getOwnPropertyDescriptors,xl=Object.getOwnPropertySymbols,Fd=Object.prototype.hasOwnProperty,k1=Object.prototype.propertyIsEnumerable,Z2=(E,le,de)=>le in E?A1(E,le,{enumerable:!0,configurable:!0,writable:!0,value:de}):E[le]=de,K2=(E,le)=>{for(var de in le||(le={}))Fd.call(le,de)&&Z2(E,de,le[de]);if(xl)for(var de of xl(le))k1.call(le,de)&&Z2(E,de,le[de]);return E},om=(E,le)=>od(E,Km(le)),Y2=(E,le)=>{var de={};for(var _e in E)Fd.call(E,_e)&&le.indexOf(_e)<0&&(de[_e]=E[_e]);if(E!=null&&xl)for(var _e of xl(E))le.indexOf(_e)<0&&k1.call(E,_e)&&(de[_e]=E[_e]);return de},am=(0,r.forwardRef)((E,le)=>{var de=E,{size:_e,spin:Vt,style:Bt}=de,ln=Y2(de,["size","spin","style"]);const Ht=K2(K2({width:_e||"var(--x-icon-size, 1em)",height:_e||"var(--x-icon-size, 1em)",animation:Vt?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),Bt);return r.createElement("svg",om(K2({ref:le,style:Ht},ln),{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),r.createElement("path",{d:"M7.63647 7C7.63647 6.44772 8.08419 6 8.63647 6H15.3637C15.916 6 16.3637 6.44772 16.3637 7V17.6471C16.3637 17.8025 16.1943 17.8986 16.061 17.8187L12.0001 15.3873L7.93922 17.8187C7.80591 17.8986 7.63647 17.8025 7.63647 17.6471V7Z",fill:"white",stroke:"white",strokeLinejoin:"round"}))});const mh=E=>{let{temp:le,onClickCard:de,onStarTemplate:_e}=E;const[Vt,Bt]=(0,r.useMemo)(()=>le!=null&&le.isMdVipTemplate?["/mb-proto2/images/nav/md_vip.png","art_board/community_resources/md_vip_s"]:le!=null&&le.isVipTemplate?["/mb-proto2/images/nav/mt_vip.png","art_board/community_resources/mt_vip_s"]:["",""],[]);return(0,W.jsxs)(Ym,{className:"template-item",onClick:()=>de(le),children:[(0,W.jsx)("img",{src:le.cover,className:"cover"}),(0,W.jsxs)("div",{className:"bottom-wrap",children:[(0,W.jsx)(Qd.A,{value:le.title,className:"editable-span",isEditing:!1},le.title),(0,W.jsx)(j.C,{name:"common/expand",className:"expand-icon"})]}),(0,W.jsx)("div",{className:M()("btn-box",{"isStarred ":le.is_star}),onClick:ln=>_e(ln,le),children:(0,W.jsx)(l.A,{content:le.is_star?I18N.Resources.stared:I18N.Resources.star,direction:"down",children:(0,W.jsx)(am,{size:20,className:"star-icon"})})}),Bt&&(0,W.jsx)(j.C,{className:"sign short",name:Bt,isColorPure:!0}),Vt&&(0,W.jsx)("img",{className:"sign long",src:Vt})]},le.cid)},Ym=ye.Ay.li.withConfig({displayName:"TemplateCard__StyledLi",componentId:"sc-zr5gi1-0"})(["display:flex;padding:4px 4px 0px;flex-direction:column;border-radius:8px;position:relative;width:115px;margin-bottom:4px;cursor:pointer;&:hover{background:",";.bottom-wrap .expand-icon{visibility:visible;}.btn-box{display:flex;}}.btn-box{display:none;position:absolute;width:18px;height:18px;bottom:41px;right:8px;border-radius:4px;align-items:center;justify-content:center;background:",";.star-icon{path{fill:",";stroke:",";}}&.isStarred{background:",";}&:not(.isStarred):hover{background:",";}}img.cover{width:108px;height:76px;border-radius:6px;object-fit:cover;border:1px solid ",";}.sign{height:16px;position:absolute;top:10px;right:10px;&.short{width:16px}}&:hover{.sign.short{visibility:hidden}}&:not(:hover){.sign.long{visibility:hidden}}.bottom-wrap{display:flex;justify-content:space-between;align-items:center;margin:8px 2px;.editable-span{color:",";height:20px;line-height:20px;flex:1;}.expand-icon{visibility:hidden;transform:rotate(-90deg);color:",";margin-top:1px;}}"],E=>E.theme.color_btn_secondary_hover,E=>E.theme.color_slider_hover,E=>E.theme.color_text_btn,E=>E.theme.color_text_btn,E=>E.theme.color_proto,E=>E.theme.color_bg_mask,E=>E.theme.color_bg_border_01,E=>E.theme.color_text_L2,E=>E.theme.color_text_L3);var cp=s(42459);const rm=E=>{let{scrollRef:le}=E;const[de,_e]=(0,r.useState)(!1),Vt=xa()(()=>{if(!le.current)return;le.current.scrollTop>le.current.offsetHeight?_e(!0):_e(!1)},100);(0,r.useEffect)(()=>{if(le.current)return le.current.addEventListener("scroll",Vt),()=>{var ln,Ht;(ln=Vt.cancel)==null||ln.call(Vt),(Ht=le.current)==null||Ht.removeEventListener("scroll",Vt)}},[le,Vt]);const Bt=()=>{le.current.scrollTop=0};return de?(0,W.jsx)(l.A,{content:"\u6EDA\u52A8\u5230\u9876\u90E8",direction:"up",children:(0,W.jsx)(Xm,{onClick:Bt,children:(0,W.jsx)(s1.A,{size:24})})}):null},Xm=ye.Ay.div.withConfig({displayName:"ScrollTopButton__StyledScrollTopButton",componentId:"sc-dnyxw6-0"})(["width:32px;height:32px;border-radius:50%;border:1px solid ",";background:",";box-shadow:0 4px 10px 0 rgba(0,18,38,0.10);display:flex;align-items:center;justify-content:center;position:absolute;right:12px;bottom:16px;cursor:pointer;z-index:999;svg path{fill:",";}&:hover{svg path{fill:",";}}"],E=>E.theme.color_bg_border_01,E=>E.theme.color_bg_menu,E=>E.theme.color_text_L1,E=>E.theme.color_btn_primary_normal),im=E=>{let{activeTitleValue:le,activeSecondTitleValue:de,scrollToItem:_e}=E;const Vt=(0,I.d4)(pa.dr),Bt=(0,I.d4)(pa.zA),ln=(0,I.d4)(pa.XA),Ht=(0,I.d4)(pa.JI),En=(0,I.wA)();(0,r.useEffect)(()=>{le&&En({type:"page-panel:update:state",payload:{templateLibraryPlatformType:le}})},[le,En]),(0,r.useEffect)(()=>{de&&En({type:"page-panel:update:state",payload:{templateLibraryPlatformSubType:de}})},[de,En]);const po=(0,r.useMemo)(()=>Ht.map(Bo=>{const Zo=ln.get(Bo.title)||[];return{label:Bo.title,value:Bo.title,children:Zo.map(Yo=>({label:Yo,value:Yo}))}}),[Vt,ln,Ht]),Lo=(0,r.useCallback)((Bo,Zo)=>{_e(Bo.index,(Zo==null?void 0:Zo.index)||0)},[_e]);return(0,W.jsx)("div",{className:"platform-group",children:(0,W.jsx)(an,{level1:Vt,level2:Bt,optionList:po,onChange:Lo})})},X2=(0,ye.AH)(["li.template-list-content{color:",";span.title{display:flex;height:32px;padding:8px 12px;font-size:12px;font-weight:500;}ul.template-list{padding:0 8px;flex-wrap:wrap;display:flex;}}"],E=>E.theme.color_text_L1),sm=ye.Ay.div.withConfig({displayName:"styles__StyledFileComp",componentId:"sc-1lneh49-0"})(["display:flex;flex:1 1 0;flex-direction:column;overflow:hidden;position:relative;.file-filter-group{display:flex;width:100%;height:40px;padding:7px 6px;justify-content:space-between;align-items:center;border-bottom:1px solid ",";.platform-sub-filter{height:28px;}}.template-list-scroll-container{overflow:hidden overlay;display:flex;flex-direction:column;flex:1;scrollbar-width:none;height:100%;}.bar-vertical{z-index:3;}ul.file-home-template-list{",";}"],E=>E.theme.color_bg_border_01,X2),ul=ye.Ay.div.withConfig({displayName:"styles__StyledLibraryPageComp",componentId:"sc-17kkemn-0"})(["display:flex;flex:1;flex-direction:column;overflow:hidden;position:relative;li.first-template-title{& > span.title{height:33px;display:flex;align-items:center;margin:0 12px 8px;border-bottom:1px solid ",";color:",";&.is-hide{visibility:hidden;height:0;}}}ul.page-library-template-list{",";}"],E=>E.theme.color_bg_border_01,E=>E.theme.color_text_L3,X2),_0=()=>{const E=(0,I.d4)(pa.JI),le=(0,I.wA)(),de=(0,r.useRef)(null),_e=Lc(de),Vt=(0,r.useRef)(null),{setItemRef:Bt,activeTitleValue:ln,activeSecondTitleValue:Ht,scrollToItem:En,scrollToSecondItem:po}=(0,Sl.G)(de,{secondQueryName:"li.template-list-content"});(0,r.useEffect)(()=>{if(_e==="up"){if(Vt.current){var ea,qo;(ea=Vt.current)==null||ea.classList.add("sticky"),de==null||(qo=de.current)==null||qo.classList.add("padding-top-90")}}else{var Go,$o;(Go=Vt.current)==null||Go.classList.remove("sticky"),de==null||($o=de.current)==null||$o.classList.remove("padding-top-90")}},[_e]);const Lo=(0,r.useCallback)(ea=>{le({type:"page-panel:update:state",payload:{libraryCurrentResources:ea}})},[le]),Bo=(0,r.useCallback)(ea=>{var qo;le({type:"modal:open:templateModal",payload:{source:ea}}),M0.U4.protoTemplatePopupClick((qo=MB)==null||(qo=qo.user)==null?void 0:qo.id,ea==="page"?"\u9875\u9762\u6A21\u677F\u5F39\u7A97":"\u6587\u4EF6\u6A21\u677F\u5F39\u7A97")},[le]),Zo=(0,r.useMemo)(()=>[{label:"\u9875\u9762\u6A21\u677F",value:"page",icon:(0,W.jsx)(mr,{size:40}),onClick:Bo},{label:"\u6587\u4EF6\u6A21\u677F",value:"file",icon:(0,W.jsx)(ms,{size:40}),onClick:Bo}],[Bo]),Yo=()=>{le({type:"page-panel:update:state",payload:{pageMode:"single"}}),le({type:"entry:resources:reset:templatePanel:filter"})},Jo=async(ea,qo,Go,$o)=>{var ba;if(ea.stopPropagation(),!qo||MB.global.experienceLoginModalHelper("isSave"))return;const{is_star:sa,cid:va}=qo;await(0,Ws.lU)(sa,va);const pr={is_star:!qo.is_star},lr=[...E],Cr=(ba=lr[Go])==null||(ba=ba.templateList[$o])==null?void 0:ba.list,si=(0,cp.$G)(Cr,Ui=>Ui.cid===qo.cid,{...qo,...pr});lr[Go].templateList[$o].list=si,le({type:"page-panel:update:state",payload:{templatePageLibraryList:lr}})};return(0,W.jsxs)(ul,{children:[(0,W.jsxs)("div",{className:"template-filter-group",children:[(0,W.jsx)(im,{activeTitleValue:ln,activeSecondTitleValue:Ht,scrollToItem:En}),(0,W.jsx)(l.A,{content:I18N.Resources.page_panel.switch_icon.library,direction:"down",children:(0,W.jsx)(U.A,{name:"left_panel/template/page/library-page-icon",size:24,onClick:Yo})})]}),(0,W.jsxs)("div",{className:"bottom-container",children:[(0,W.jsxs)("div",{className:"template-list-scroll-container",ref:de,children:[(0,W.jsx)(wa.G,{cardList:Zo,ref:Vt}),(0,W.jsx)("ul",{children:E.map((ea,qo)=>(0,W.jsxs)("li",{className:"first-template-title",ref:Bt(qo),children:[(0,W.jsx)("span",{className:M()("title",{"is-hide":qo===0},{"show-title":qo!==0}),"data-key":ea.title,children:ea.title+"\uFF08"+ea.nums+"\uFF09"}),(0,W.jsx)("ul",{className:"page-library-template-list",children:ea.templateList.map((Go,$o)=>Go.list.length===0?null:(0,W.jsxs)("li",{className:"template-list-content",children:[(0,W.jsx)("span",{className:"title","data-key":Go.title,children:Go.title}),(0,W.jsx)("ul",{className:"template-list",children:Go.list.map(ba=>(0,W.jsx)(mh,{temp:ba,onClickCard:Lo,onStarTemplate:(sa,va)=>Jo(sa,va,qo,$o)},ba.cid))})]},Go.title))})]},ea.title))})]}),(de==null?void 0:de.current)&&(0,W.jsx)(Zn.yP,{type:"vertical",containerRef:de,isAutoHideBar:!0}),(0,W.jsx)(rm,{scrollRef:de})]})]})},Kp=()=>{const E=(0,I.d4)(T.zS),le=(0,I.wA)(),de=(0,I.d4)(pa.Lt),_e=(0,I.d4)(pa.xN),Vt=(0,I.d4)(pa.MM),Bt=(0,I.d4)(T.SH),ln=(0,I.d4)(T.xQ),Ht=(0,I.d4)(T.CL),En=(0,r.useMemo)(()=>Bt.get(ln),[Bt,ln]),po=(0,r.useMemo)(()=>{if(de==="single")return En;if(de==="library")return E},[E,En,de]);(0,r.useEffect)(()=>{(async()=>{de==="single"&&!_e&&le({type:"entry:resources:set:templatePanel:page:single:init:data"}),de==="library"&&!Vt&&le({type:"entry:resources:set:templatePanel:page:library:init:data"})})()},[le,Vt,_e,de]);const Lo=(0,r.useCallback)(Jo=>{de==="library"&&le({type:"page-panel:update:state",payload:{libraryCurrentResources:Jo}}),de==="single"&&le({type:"page-panel:update:map:state",payload:{key:"findMtResourceMap",value:new Map([[Jo.cid,Jo]])}})},[le,de]),Bo=(0,r.useCallback)(Jo=>{if(!po||MB.global.experienceLoginModalHelper("isSave"))return;const{is_star:ea,cid:qo}=po,$o=typeof Jo=="function"?Jo(po):(ba=>({...ba,is_star:!ba.is_star}))(po);Lo($o),(0,Ws.lU)(ea,qo)},[po,Lo]),Zo=(0,r.useCallback)(()=>{},[]),Yo=(0,r.useCallback)(()=>{de==="single"&&le({type:"page-panel:update:state",payload:{findCurrentMtResourceCid:null}}),de==="library"&&Lo(null),window.isBackFromLeftTemplateDetail=!0},[le,Lo,de]);return po?(0,W.jsx)(rl.A,{currentResources:po,onBack:Yo,onStarTemplates:Bo,onPaidTemplates:()=>Bo(Jo=>({...Jo,is_purchased:!0,is_star:!0})),onTrack:Zo}):(0,W.jsxs)(b1,{children:[de==="library"&&(Vt?(0,W.jsx)(_0,{}):(0,W.jsx)(B0.f,{className:"mb-loading"})),de==="single"&&(0,W.jsx)(S1,{})]})},ns=[{label:"\u63A8\u8350",value:"recommend"},{label:"\u5927\u5382\u8D44\u6E90",value:"resource"},{label:"\u7BA1\u7406\u540E\u53F0",value:"back"},{label:"App",value:"app"},{label:"\u5C0F\u7A0B\u5E8F",value:"mini"},{label:"\u5B98\u7F51",value:"website"},{label:"AI",value:"ai"},{label:"\u53EF\u89C6\u5316\u5927\u5C4F",value:"dashboard"},{label:"HMI",value:"hmi"}],lm=[{label:"\u63A8\u8350",value:"recommend"},{label:"\u5927\u5382\u8D44\u6E90",value:"resource"},{label:"\u5B98\u7F51",value:"website"}],Qf=()=>ENV.IS_ON_PREMISES?lm:ns,Q2=E=>{let{activeTitleValue:le,scrollToItem:de}=E;const _e=(0,I.d4)(pa.c3),Vt=(0,I.wA)();(0,r.useEffect)(()=>{le&&Vt({type:"page-panel:update:state",payload:{filePlatformType:le}})},[le,Vt]);const Bt=ln=>{const Ht=ns.findIndex(En=>En.value===ln);setTimeout(()=>{de(Ht)},16)};return(0,W.jsx)("div",{className:"file-filter-group",children:(0,W.jsx)(_t.A,{selectedValue:_e,optionList:ns,onChange:Bt,shouldOpenOnHover:!0})})};var cm=s(47424);const Qm=E=>{let{onSetItemRef:le,scrollToItem:de}=E;const _e=(0,I.d4)(pa.c3),Vt=(0,I.d4)(pa.FC),Bt=(0,I.d4)(pa.sq),ln=(0,I.wA)(),Ht=Qf();(0,r.useEffect)(()=>{(async()=>{if(Bt)return;const Bo=await(0,cm.e$)(Ht);ln({type:"page-panel:update:state",payload:{fileTemplateList:Bo,isLoadedfileData:!0}})})()},[ln,Ht,Bt]),(0,r.useEffect)(()=>{if(Bt){const Lo=Ht.findIndex(Bo=>Bo.value===_e);setTimeout(()=>{de(Lo)},16)}},[Bt]);const En=Lo=>{ln({type:"modal:update:state",payload:{templateFileDetialModal:{isOpen:!0,template:Lo}}})},po=async(Lo,Bo,Zo)=>{if(Lo.stopPropagation(),!Bo||MB.global.experienceLoginModalHelper("isSave"))return;const{is_star:Yo,cid:Jo}=Bo;await(0,Ws.lU)(Yo,Jo);const ea={is_star:!Bo.is_star},qo=[...Vt],Go=qo[Zo].list,$o=(0,cp.$G)(Go,ba=>ba.cid===Bo.cid,{...Bo,...ea});qo[Zo].list=$o,ln({type:"page-panel:update:state",payload:{fileTemplateList:qo}})};return Bt?(0,W.jsx)("ul",{className:"file-home-template-list",children:Vt.map((Lo,Bo)=>(0,W.jsxs)("li",{className:"template-list-content",ref:le(Bo),children:[(0,W.jsx)("span",{className:"title","data-key":Lo.key,children:Lo.title}),(0,W.jsx)("ul",{className:"template-list",children:Lo.list.map(Zo=>(0,W.jsx)(mh,{temp:Zo,onClickCard:En,onStarTemplate:(Yo,Jo)=>po(Yo,Jo,Bo)},Zo.cid))})]},Lo.key))}):(0,W.jsx)(B0.f,{className:"mb-loading"})},Jm=()=>{const E=(0,r.useRef)(null),le=Lc(E),de=(0,r.useRef)(null),{setItemRef:_e,activeTitleValue:Vt,scrollToItem:Bt}=(0,Sl.G)(E),ln=(0,I.wA)();(0,r.useEffect)(()=>{if(le==="up"){if(de.current){var po,Lo;(po=de.current)==null||po.classList.add("sticky"),E==null||(Lo=E.current)==null||Lo.classList.add("padding-top-90")}}else{var Bo,Zo;(Bo=de.current)==null||Bo.classList.remove("sticky"),E==null||(Zo=E.current)==null||Zo.classList.remove("padding-top-90")}},[le]);const Ht=(0,r.useCallback)(po=>{var Lo;ln({type:"modal:open:templateModal",payload:{source:po}}),M0.U4.protoTemplatePopupClick((Lo=MB)==null||(Lo=Lo.user)==null?void 0:Lo.id,po==="page"?"\u9875\u9762\u6A21\u677F\u5F39\u7A97":"\u6587\u4EF6\u6A21\u677F\u5F39\u7A97")},[ln]),En=(0,r.useMemo)(()=>[{label:"\u9875\u9762\u6A21\u677F",value:"page",icon:(0,W.jsx)(mr,{size:40}),onClick:Ht},{label:"\u6587\u4EF6\u6A21\u677F",value:"file",icon:(0,W.jsx)(ms,{size:40}),onClick:Ht}],[Ht]);return(0,W.jsxs)(sm,{children:[!ENV.IS_ON_PREMISES&&(0,W.jsx)(Q2,{activeTitleValue:Vt,scrollToItem:Bt}),(0,W.jsxs)("div",{className:"bottom-container",children:[(0,W.jsxs)("div",{className:"template-list-scroll-container",ref:E,children:[(0,W.jsx)(wa.G,{cardList:En,ref:de}),(0,W.jsx)(Qm,{onSetItemRef:_e,scrollToItem:Bt})]}),(E==null?void 0:E.current)&&(0,W.jsx)(Zn.yP,{type:"vertical",containerRef:E,isAutoHideBar:!0}),(0,W.jsx)(rm,{scrollRef:E})]})]})};var Ns=s(60921),qm=s(87332);const $m=E=>{let{navIndex:le,filter:de="all",onSetNavIndex:_e,onSetFilter:Vt}=E;const[Bt,ln]=(0,r.useState)(!1),Ht=(0,r.useMemo)(()=>ENV.IS_ON_PREMISES?[{key:"1",label:"\u6536\u85CF"}]:[{key:"1",label:"\u5168\u90E8"},{key:"2",label:"\u6536\u85CF"},{key:"3",label:"\u5DF2\u8D2D"}],[]),En=po=>{ln(po)};return(0,W.jsxs)("div",{className:"me-filter-group",children:[(0,W.jsx)(B.Ay,{activeIndex:le,onTabChange:_e,children:Ht.map(po=>{let{key:Lo,label:Bo}=po;return(0,W.jsx)(B.nl,{label:Bo},Lo)})}),(0,W.jsx)(qm.A,{renderOpener:(0,W.jsx)(l.A,{content:"\u7B5B\u9009",direction:"down",children:(0,W.jsx)(U.A,{name:"left_panel/template/filter/all",size:24,className:M()("filter-icon",de,{active:Bt})})}),direction:"down",onClick:En,renderMenu:(0,W.jsx)(ef,{children:(0,W.jsxs)("ul",{children:[(0,W.jsxs)("li",{className:"MenuItem "+(de==="all"&&"active"),onClick:()=>Vt("all"),children:[de==="all"&&(0,W.jsx)(j.C,{name:"toolbar/selected",className:"selected-icon"}),(0,W.jsx)("span",{className:"text",children:"\u5168\u90E8\u7C7B\u578B"})]}),(0,W.jsx)("div",{className:"divider"}),(0,W.jsxs)("li",{className:"MenuItem "+(de==="page"&&"active"),onClick:()=>Vt("page"),children:[de==="page"&&(0,W.jsx)(j.C,{name:"toolbar/selected",className:"selected-icon"}),(0,W.jsx)(U.A,{name:"left_panel/template/filter/page",size:24}),(0,W.jsx)("span",{className:"text",children:"\u9875\u9762"})]}),(0,W.jsxs)("li",{className:"MenuItem "+(de==="file"&&"active"),onClick:()=>Vt("file"),children:[de==="file"&&(0,W.jsx)(j.C,{name:"toolbar/selected",className:"selected-icon"}),(0,W.jsx)(U.A,{name:"left_panel/template/filter/file",size:24}),(0,W.jsx)("span",{className:"text",children:"\u6587\u4EF6"})]})]})})})]})},ef=ye.Ay.div.withConfig({displayName:"MeFilter__StyledContextMenu",componentId:"sc-1w6vlqm-0"})(["padding:8px;min-width:140px;background:",";color:",";box-shadow:",";border-radius:8px;border:1px solid ",";margin-left:47px;li{list-style:none;}li.MenuItem{position:relative;height:28px;padding:0px 12px 0px 8px;display:flex;align-items:center;cursor:pointer;color:",";border-radius:4px;&:hover{background:",";}&:not(.active){padding-left:32px;}.selected-icon{margin-right:12px;margin-left:5px;width:8px;}}.divider{height:1px;margin:8px 0;background-color:",";}"],E=>E.theme.color_bg_white,E=>E.theme.color_text_L1,E=>E.theme.shadow_m,E=>E.theme.color_bg_border_01,E=>E.theme.color_text_L1,E=>E.theme.color_btn_secondary_hover,E=>E.theme.color_bg_border_01);var tf=s(90853);const J2=E=>{let{navIndex:le,filter:de,templateList:_e,onUpdateTemplateList:Vt,isLoaded:Bt,onChangeCurrentResources:ln}=E;const Ht=(0,r.useRef)(null),En=(0,I.wA)(),po=(0,r.useMemo)(()=>le===0?(0,Ns.N)(_e,de):le===1?(0,Ns.N)(_e.filter(Zo=>Zo.is_star),de):le===2?(0,Ns.N)(_e.filter(Zo=>Zo.is_purchased),de):(0,Ns.N)(_e,de),[le,de,_e]),Lo=async(Zo,Yo)=>{if(Zo.stopPropagation(),Yo==null?void 0:Yo.is_star){const ea=async qo=>{await(0,Ws.lU)(qo==null?void 0:qo.is_star,qo==null?void 0:qo.cid);const Go=(0,Ns.Z)(qo,_e);Vt(Go)};En({type:"modal:update:state",payload:{secondaryConfirmModal:{isOpen:!0,title:I18N.Resources.unStar.title,isHTML:!0,desc:I18N.Resources.unStar.desc.replace(/%name%/,Yo==null?void 0:Yo.title),onConfirm:()=>ea(Yo)}}})}else{await(0,Ws.lU)(Yo==null?void 0:Yo.is_star,Yo==null?void 0:Yo.cid);const ea=(0,Ns.Z)(Yo,_e);Vt(ea)}},Bo=(0,r.useCallback)(Zo=>{if(Zo.category==="project_basic"){En({type:"modal:update:state",payload:{templateFileDetialModal:{isOpen:!0,template:Zo}}});return}ln(Zo)},[En]);return(0,W.jsx)(W.Fragment,{children:po.length===0?Bt?(0,W.jsx)(tf.C,{isShowAiButton:!1}):(0,W.jsx)(B0.f,{className:"mb-loading"}):(0,W.jsxs)("ul",{className:"template-lists",ref:Ht,children:[po.map(Zo=>(0,W.jsxs)("li",{onClick:()=>Bo(Zo),children:[(0,W.jsx)("img",{src:Zo.cover,className:"cover"}),(0,W.jsxs)("div",{className:"template-item-right-content",children:[(0,W.jsx)(Qd.A,{value:Zo.title,className:"editable-span",isEditing:!1},Zo.title),(0,W.jsxs)("div",{className:"template-item-type",children:[Zo.is_star&&(0,W.jsx)("span",{className:"star-text",children:"\u5DF2\u6536\u85CF\xA0\xA0"}),Zo.is_purchased&&(0,W.jsx)(W.Fragment,{children:Zo.download_expired?(0,W.jsxs)(W.Fragment,{children:[Zo.is_star?(0,W.jsx)("span",{children:"\xB7\xA0\xA0\u5DF2\u8FC7\u671F"}):(0,W.jsx)("span",{children:"\u5DF2\u8FC7\u671F"}),(0,W.jsx)(l.A,{content:"\u4E0B\u8F7D\u5DF2\u8FC7\u671F\uFF0C\u8BF7\u91CD\u65B0\u4E0B\u8F7D",direction:"down",children:(0,W.jsx)(j.C,{name:"common/invalid",size:16,className:"invalid-icon"})})]}):(0,W.jsx)(W.Fragment,{children:Zo.is_star?(0,W.jsx)("span",{children:"\xB7\xA0\xA0\u5DF2\u8D2D\u4E70"}):(0,W.jsx)("span",{children:"\u5DF2\u8D2D\u4E70"})})})]})]}),(0,W.jsx)(Nd.X,{isStar:Zo.is_star,onClick:Yo=>Lo(Yo,Zo)})]},Zo.cid)),(Ht==null?void 0:Ht.current)&&(0,W.jsx)(Zn.yP,{type:"vertical",containerRef:Ht,isAutoHideBar:!0})]})})},nf=ye.Ay.div.withConfig({displayName:"styles__StyledMeComp",componentId:"sc-u0bm5r-0"})(["display:flex;flex-direction:column;height:calc(100% - 80px);.me-filter-group{display:flex;width:100%;height:40px;padding:7px 6px;justify-content:space-between;align-items:center;.filter-icon{transform:rotate(90deg);}.nav-label{padding:0;}.nav-item{margin-left:8px;&:first-child{margin-left:0;}}}ul.template-lists{flex:1;display:flex;flex-direction:column;margin:8px;overflow:auto;scrollbar-width:none;&::-webkit-scrollbar{display:none;}.bar-vertical{top:126px;height:calc(100% - 126px);}li{height:56px;padding:4px;width:100%;margin-bottom:8px;display:flex;align-items:center;border-radius:8px;cursor:pointer;&:hover{background:",";.star{visibility:visible;}}img.cover{width:64px;height:48px;border-radius:6px;border:1px solid ",";margin-right:12px;}.template-item-right-content{flex:1;max-width:114px;margin-right:12px;display:flex;align-items:center;flex-direction:column;.editable-span{color:",";height:16px;line-height:16px;}.template-item-type{color:",";width:100%;margin-top:4px;display:flex;align-items:center;.invalid-icon{margin-left:2px;&:hover{color:",";}}}}.star{visibility:hidden;}}}"],E=>E.theme.color_btn_secondary_hover,E=>E.theme.color_bg_border_01,E=>E.theme.color_text_L1,E=>E.theme.color_text_L3,E=>E.theme.color_text_L2),of=()=>{const E=(0,I.d4)(pa.Eq),le=(0,I.d4)(pa.ru),de=(0,I.d4)(pa.Fi),[_e,Vt]=(0,r.useState)([]),[Bt,ln]=(0,r.useState)(!1),[Ht,En]=(0,r.useState)(null),po=(0,I.d4)(T.zw),Lo=(0,I.wA)();(0,r.useEffect)(()=>{(async()=>{if(Bt)return;const Go=await(0,cm.Gi)();Vt(Go),ln(!0);const $o=Go.find(ba=>ba.cid===po);$o&&En($o)})()},[Lo,Bt]),(0,r.useEffect)(()=>{if(!(_e!=null&&_e.length))return;const qo=_e.find(Go=>Go.cid===de);qo!=null&&qo.cid&&En(qo)},[de,_e,En]);const Bo=(0,r.useCallback)(qo=>{En(qo)},[Lo]),Zo=(0,r.useCallback)(qo=>{if(!Ht||MB.global.experienceLoginModalHelper("isSave"))return;const{is_star:Go,cid:$o}=Ht,sa=qo?qo(Ht):(pr=>({...pr,is_star:!pr.is_star}))(Ht);Bo(sa);const va=(0,Ns.Z)(resources,_e);Vt(va),(0,Ws.lU)(Go,$o)},[Ht,Lo,Bo]),Yo=qo=>{Lo({type:"page-panel:update:state",payload:{meNavIndex:qo}})},Jo=qo=>{Lo({type:"page-panel:update:state",payload:{meFilter:qo}})},ea=(0,r.useCallback)(()=>{En(null),Lo({type:"page-panel:update:state",payload:{currentStarResourcesCid:""}})},[En,Lo]);return Ht?(0,W.jsx)(rl.A,{currentResources:Ht,onBack:ea,onStarTemplates:Zo,onPaidTemplates:()=>Zo(qo=>({...qo,is_purchased:!0,is_star:!0}))}):(0,W.jsxs)(nf,{children:[(0,W.jsx)($m,{navIndex:E,onSetNavIndex:Yo,filter:le,onSetFilter:Jo}),(0,W.jsx)(J2,{navIndex:E,filter:le,onUpdateTemplateList:Vt,templateList:_e,isLoaded:Bt,onChangeCurrentResources:Bo})]})},af=ye.Ay.div.withConfig({displayName:"styles__StyledTemplatePanel",componentId:"sc-1mqrvsq-0"})(["display:flex;flex:1 1 0;flex-direction:column;overflow:hidden;.padding-top-90{padding-top:90px;}.mb-loading{width:64px;position:absolute;top:50%;left:50%;margin-top:-32px;margin-left:-32px;}.switch-tab{position:relative;display:flex;height:100%;align-items:center;.label{font-family:PingFang SC;color:",";font-size:12px;display:flex;align-items:center;height:26px;padding:0px 14px;border-radius:4px;background:",";&.active{color:",";background-color:",";svg path{fill:#fff;}}&:active{background:",";color:",";}&:not(.active):hover{background:",";}}button{height:100%;display:flex;align-items:center;}.indicator{position:absolute;left:0px;bottom:0px;height:2px;width:35px;background-color:",";transition:left 0.3s ease-in-out;}}.bottom-container{width:100%;height:100%;position:relative;overflow:hidden;.open-modal-cards-wrap{&.sticky{top:0;}}}.ai-agent-box{height:40px;border-top:1px solid ",";display:flex;align-items:center;padding:0 12px;.ai-agent-btn{cursor:pointer;height:28px;width:100%;background:",";color:",";border-radius:6px;padding:1px;overflow:hidden;.ai-agent-inner{display:flex;align-items:center;justify-content:center;background:",";border-radius:5px;overflow:hidden;}&:hover .ai-agent-inner{background:"," ",";}svg:first-child{margin-right:4px;transform:scale(1.23);transform-origin:center center;}svg:last-child{margin-left:6px;width:47px;height:16px;}}}"],E=>E.theme.color_text_L2,E=>E.theme.color_navigation_hover,E=>E.theme.color_text_link_normal,E=>E.theme.color_bg_tab,E=>E.theme.color_bg_tab,E=>E.theme.color_text_link_normal,E=>E.theme.color_navigation_active,E=>E.theme.color_text_L1,E=>E.theme.color_bg_border_01,E=>E.theme.ai_agent_bg2,E=>E.theme.color_text_L1,E=>E.theme.color_bg_white,E=>E.theme.color_bg_white,E=>E.theme.ai_agent_bg_hov2);var q2=s(78915),fh=s(8228);const rf=(0,J.Mz)([N.OW,q.r],(E,le)=>{let{isEditingProjectMain:de}=le;return{show:E===is.lS.Page&&de}}),sf=()=>{var E;const{show:le}=(0,I.d4)(po=>rf(po)),de=(0,I.d4)(T.rx),_e=(0,I.d4)(ne.HW),Vt=(0,I.wA)();(0,r.useEffect)(()=>{if(_e){if(!(0,Ws.kn)(_e.created_at))return;MB.commonGuideHelper.tryToShowGuide(nn.c.PAGE_PANEL)}return()=>{MB.commonGuideHelper.closeGuide(nn.c.PAGE_PANEL)}},[_e]);const Bt=(0,r.useMemo)(()=>[{key:"1",label:I18N.Resources.page_panel.page,Comp:Kp},{key:"2",label:I18N.Resources.page_panel.file,disabled:!1,Comp:Jm},{key:"3",label:I18N.Resources.page_panel.me,disabled:!1,Comp:of}],[]),ln=po=>{Vt({type:"page-panel:update:state",payload:{navIndex:po}}),po===0&&Vt({type:"entry:resources:reset:templatePanel:filter"})},Ht=()=>{Vt(q2.GO.updateAIHTMLAgentType("prototyping")),Vt(q2.GO.enableAIHTML()),Vt(q2.GO.expandAIHTML()),Vt(q2.GO.updateAIHTMLSource("designMubanPanelBottom")),MB.commonGuideHelper.hideAllGuides(),M0.U4.AIOpenSourceTrack(fh.SR.AIHTML)};if(!le)return null;const En=(E=Bt[de])==null?void 0:E.Comp;return(0,W.jsxs)(af,{children:[(0,W.jsx)(G2.d,{activeIndex:de,onTabChange:ln,tabList:Bt}),En&&(0,W.jsx)(En,{}),!ENV.IS_ON_PREMISES&&(0,W.jsx)("div",{className:"ai-agent-box",children:(0,W.jsx)("div",{className:"ai-agent-btn",onClick:Ht,children:(0,W.jsxs)("div",{className:"ai-agent-inner",children:[(0,W.jsx)(j.C,{name:"toolbar/ai",className:"pure-svg-icon",size:26}),I18N.ChatGPT.ai_prototype_component_title,(0,W.jsx)(j.C,{name:"toolbar/ai/agent",className:"pure-svg-icon agent-icon"})]})})}),(0,W.jsx)(Gn.R,{})]})};var Yp=s(66553),cl=s(30719);class M1 extends r.PureComponent{render(){const{show:le}=this.props;return le?(0,W.jsx)(Yp.A,{id:"popups-"+is.lS.History+"-panel",className:"popups-panel",children:(0,W.jsx)(cl.O,{})}):null}}const $l=(0,J.Mz)([N.SE],E=>({show:E})),G0=(0,I.Ng)(E=>$l(E))(M1);var xd=s(15572);const Xp=E=>le=>E(le);var T0=s(49439),Qp=s(5010);const gh=ye.Ay.div.withConfig({displayName:"styles__StyledDraftDropdownOptionDiv",componentId:"sc-v8z8h3-0"})(["&.draft-toolbar-dropdown-option{width:100%;height:28px;display:flex;flex-direction:row;justify-content:flex-start;align-items:center;padding:0 10px;margin:1px 0;background-color:transparent;color:",";cursor:pointer;border-radius:4px;&:hover{background-color:",";}&.active{background-color:",";}&.disabled{cursor:not-allowed;opacity:0.3;background-color:unset!important;}}"],E=>E.theme.color_text_L1,E=>E.theme.color_btn_secondary_hover,E=>E.theme.color_btn_secondary_hover),vd=E=>{const{disabled:le,value:de,preventDefault:_e=!0,active:Vt,children:Bt,title:ln,showTitle:Ht,supTitle:En,widget:po,onClick:Lo,onNativeClick:Bo}=E,Zo=(0,r.useCallback)(Yo=>{if(_e&&Yo.preventDefault(),Yo.stopPropagation(),le)return;Lo&&Lo(de),Bo&&Bo(Yo);const Jo=Qp.Mh[En];(0,Qp.Uz)({operation_type:Jo||Qp.P6[de],widget:po==null?void 0:po.hotAttr})},[le,Lo,de,Bo,po,En]);return(0,W.jsx)(gh,{className:M()("draft-toolbar-dropdown-option",{active:Vt,disabled:le}),onClick:Zo,children:Ht?(0,W.jsx)(l.A,{content:ln,direction:"down",distance:12,children:Bt}):Bt})},lf=ye.Ay.div.withConfig({displayName:"styles__StyledMindThemeTriggerContainer",componentId:"sc-fg56ub-0"})(["width:42px;padding:0;margin-right:5px;.icon.floating_toolbar-mind-theme{width:14px;height:14px;path{fill:none;stroke:",";}circle{fill:",";}}"],E=>E.theme.color_text_L1,E=>E.theme.color_text_L1),cf=ye.Ay.div.withConfig({displayName:"styles__StyledMindCard",componentId:"sc-fg56ub-1"})(["&.theme-container{display:flex;flex-direction:column;justify-content:center;align-items:center;.img-container{width:110px;height:82px;border-radius:4px;border:1px solid ",";position:relative;box-sizing:content-box;background-color:",";img{width:100%;border-radius:4px;}.frame{position:absolute;border-radius:6px;pointer-events:none;inset:-2px;}}.theme-title{margin-top:4px;}}"],E=>E.theme.color_bg_border_02,E=>E.theme.color_text_btn),E1=ye.Ay.div.withConfig({displayName:"styles__StyledMindThemeOptionContainers",componentId:"sc-fg56ub-2"})(["&.mind-theme-options{display:grid;grid-row-gap:8px;grid-column-gap:16px;border-radius:8px;padding:20px;grid-template-columns:repeat(2,110px);.draft-toolbar-dropdown-option{width:110px;height:103px;padding:0;margin:0;&:active{background-color:unset;}&:not(.active):hover{background-color:unset;.frame{box-shadow:#79BAFF 0 0 0 2px inset;}}&.active{background-color:unset;.frame{box-shadow:"," 0 0 0 2px inset;}}}}"],E=>E.theme.color_proto);class gc extends r.PureComponent{render(){const{config:le,dropdownPosition:de,widget:_e,onChange:Vt}=this.props,{title:Bt,icon:ln,className:Ht,options:En}=le,{hotAttr:{theme:po}}=_e;return(0,W.jsx)(T0.A,{title:Bt,top:de==="bottom"?40:-260,left:-29,closeOnContentClick:!0,trigger:(0,W.jsxs)(lf,{className:"trigger-container",children:[(0,W.jsx)("div",{className:"icon",children:(0,W.jsx)(j.C,{name:ln,className:Ht})}),(0,W.jsx)("div",{className:"trigger",children:(0,W.jsx)(j.C,{name:"draft/tri-drop",className:"tri-drop"})})]}),children:(0,W.jsx)(E1,{className:"content-container mind-theme-options",children:En.map((Lo,Bo)=>{let{theme:Zo,src:Yo,title:Jo}=Lo;return(0,W.jsx)(vd,{value:Zo,active:po===Zo,title:"",supTitle:Jo,widget:_e,onClick:Vt,children:(0,W.jsx)(yh,{src:Yo,title:Jo})},Bo)})})})}}const yh=E=>{let{src:le,title:de}=E;return(0,W.jsxs)(cf,{className:"theme-container",children:[(0,W.jsxs)("div",{className:"img-container",children:[(0,W.jsx)("img",{src:"/mb-proto2/images/floatingToolbar/mind_v1/"+le+((0,qd.k)()?"":"_en")+".png",alt:""}),(0,W.jsx)("span",{className:"frame"})]}),(0,W.jsx)("span",{className:"theme-title",children:de})]})};var xh=s(4648),vh=s(15186),P0=s(62587),bh=s(63986),dp=s.n(bh);const bd=ye.Ay.div.withConfig({displayName:"styles__StyledMindBgColorTriggerContainer",componentId:"sc-1e0e3hw-0"})(["&.trigger-container{width:28px;padding:0;display:flex;align-items:center;justify-content:center;margin-right:5px;.icon.noSetColor{width:28px;height:28px;circle{fill:none;}mask{circle{fill:#fbfbfb;}}}}"]),wh=ye.Ay.div.withConfig({displayName:"styles__StyledMindBgColorContainer",componentId:"sc-1e0e3hw-1"})(["width:","px;height:","px;border-radius:50%;border-width:1px;border-color:rgba(102,102,102,0.3);border-style:solid;background:",";position:relative;.frame{position:absolute;border-radius:50%;pointer-events:none;inset:-4px;}&.dark{border-color:","}"],E=>E.size||14,E=>E.size||14,E=>E.color?E.color:"unset",E=>E.color==="#191919"?"#606060":"rgba(102, 102, 102, 0.3)"),dm=ye.Ay.div.withConfig({displayName:"styles__StyledMindBgColorOptionContainers",componentId:"sc-1e0e3hw-2"})(["width:150px;padding:20px 13px;.color-option-container{width:122px;display:grid;grid-template-columns:repeat(auto-fill,18px);grid-row-gap:5px;grid-column-gap:8px;.icon.noSetColor{width:18px;circle{fill:none;}&.dark{circle,path{stroke:#606060;}}}.draft-toolbar-dropdown-option{width:18px;height:18px;padding:0;margin:0;position:relative;.frame{position:absolute;border-radius:50%;pointer-events:none;inset:-4px;}&:active{background-color:unset;}&:not(.active):hover{background-color:unset;.frame{box-shadow:"," 0 0 0 2px inset;}}&.active{background-color:unset;.frame{box-shadow:"," 0 0 0 2px inset;}}}}.border-style-option-container{display:grid;align-items:center;justify-content:center;grid-template-columns:repeat(3,33.33%);background:",";width:124px;padding:0 2px;height:24px;border-radius:4px;.border-style-option{display:flex;align-items:center;justify-content:center;height:20px;border-radius:4px;cursor:pointer;.icon{width:16px;}&.selected{background:",";box-shadow:0 2px 4px rgba(0,0,0,0.09);&.dark{box-shadow:0 2px 3px rgba(0,0,0,0.15);}}}}.border-width-container{margin-top:14px;margin-bottom:15px;width:122px;display:flex;align-items:center;justify-content:space-between;.left{display:flex;align-items:center;justify-content:center;.icon{width:13px;margin-right:4px;}}.right{width:50px;}.bdr-input{width:54px;height:28px;border-radius:4px;}}"],E=>E.theme.color_bg_select01,E=>E.theme.color_proto,E=>E.theme.color_background_icon_hover2,E=>E.theme.color_bg_white);class Jp extends r.Component{constructor(){super(...arguments),(0,sl.A)(this,"$ref",null),(0,sl.A)(this,"setDropdownRef",le=>{this.$ref=le}),(0,sl.A)(this,"toggleColor",le=>{const de=(0,P0.zX)(le);this.props.onChange({fillIsVisible:!0,fill:"solid",solidColor:de}),this.$ref&&this.$ref.close&&this.$ref.close()}),(0,sl.A)(this,"handleVisibleChange",()=>{const{widget:{hotAttr:{fill:le}},onChange:de}=this.props;de({...le,fillIsVisible:!1})}),(0,sl.A)(this,"handleChangeColor",le=>{const{onChange:de}=this.props;de({...le,fillIsVisible:!0})})}shouldComponentUpdate(le,de,_e){return le.widget.key!==this.props.widget.key||!dp()(le.widget.hotAttr.fill,this.props.widget.hotAttr.fill)}render(){const{config:le,dropdownPosition:de,widget:_e,onOpenColorPanel:Vt,onCloseColorPanel:Bt}=this.props,{colors:ln}=le,{hotAttr:{fill:Ht,fill:{fillIsVisible:En,solidColor:po}}}=_e,Lo=(0,vh.t0)(po);return(0,W.jsx)(T0.A,{ref:this.setDropdownRef,top:de==="bottom"?40:-93,left:-61,closeOnContentClick:!1,title:le.title,trigger:(0,W.jsx)(bd,{className:"trigger-container",children:En?(0,W.jsx)(wh,{color:Lo}):(0,W.jsx)(j.C,{name:"floating_toolbar/mind/bg/transparent",className:"noSetColor"})}),children:(0,W.jsx)(dm,{className:"content-container mind-bgColor-options",children:(0,W.jsxs)("div",{className:"color-option-container",children:[(0,W.jsxs)(vd,{value:"",title:"",active:!En,onClick:this.handleVisibleChange,children:[(0,W.jsx)(j.C,{name:"floating_toolbar/mind/noSetColor",className:"noSetColor"}),(0,W.jsx)("span",{className:"frame"})]}),ln.map((Bo,Zo)=>{const Yo=(0,P0.dT)(po).solidColor,Jo=(0,P0.dT)(Bo).solidColor;return(0,W.jsx)(vd,{value:Bo,active:En&&Yo===Jo,title:"",widget:_e,onClick:this.toggleColor,children:(0,W.jsx)(wh,{size:18,color:Bo,children:(0,W.jsx)("span",{className:"frame"})})},Zo)}),(0,W.jsx)(xh.R_,{attr:"solidColor",supAttr:"fill",color:Ht,pIsSolidColorOnly:!0,iconImg:{src:"/mb-proto2/images/font_color_picker.png",width:18,height:18},colorPanelPosOffset:{offsetLeft:380,offsetTop:340},onChange:this.handleChangeColor,onOpenColorPanel:Vt,onCloseColorPanel:Bt,canOpenLib:!1})]})})})}}var qp=s(27660),pm=s(5649),df=s(66339),um=s(86964);const pf=(0,P0.zX)(um.fm.color_bg_white.value_light),uf=(0,P0.zX)(um.fm.color_bg_white.value_dark),hm=E=>{const{borderColor:le,configTheme:de}=E,_e=(0,P0.dT)(le).solidColor;return de===ts.Sx.LIGHT&&_e===pf||de===ts.Sx.DARK&&_e===uf?"block":"none"},hf=ye.Ay.div.withConfig({displayName:"styles__StyledMindStrokeTriggerContainer",componentId:"sc-1ormd06-0"})(["&.trigger-container{width:28px;padding:0;display:flex;align-items:center;justify-content:center;margin-right:5px;.icon.noSetColor{width:28px;height:28px;path{fill:#f5f5f5;}g{path{fill:#9fa0a4;}}}&.mind-node-stroke{margin-right:0;}}"]),qf=ye.Ay.div.withConfig({displayName:"styles__StyledMindStrokeDiv",componentId:"sc-1ormd06-1"})(["width:14px;height:14px;border-radius:50%;border-width:3px;border-color:",";border-style:",";position:relative;&::after{content:'';display:",";width:8px;height:8px;position:absolute;top:0;left:0;border:1px solid ",";border-radius:50%;}&::before{content:'';display:",";width:14px;height:14px;position:absolute;top:-3px;left:-3px;border:1px solid ",";border-radius:50%;}"],E=>E.borderColor,E=>E.bdrStyle,E=>hm(E),E=>E.configTheme===ts.Sx.LIGHT?"rgba(0, 0, 0, 0.2)":"rgba(255, 255, 255, 0.2)",E=>hm(E),E=>E.configTheme===ts.Sx.LIGHT?"rgba(0, 0, 0, 0.2)":"rgba(255, 255, 255, 0.2)"),mf=(0,qp.R)(()=>[{label:(0,W.jsx)(j.C,{name:"floating_toolbar/mind/bs_solid"}),value:"solid"},{label:(0,W.jsx)(j.C,{name:"floating_toolbar/mind/bs_dotted"}),value:"dashed"},{label:(0,W.jsx)(j.C,{name:"floating_toolbar/mind/bs_dashed"}),value:"dotted"}]);class I1 extends r.Component{constructor(){super(...arguments),(0,sl.A)(this,"$ref",null),(0,sl.A)(this,"setDropdownRef",le=>{this.$ref=le}),(0,sl.A)(this,"toggleColor",le=>{const{widget:{hotAttr:{border:de}},onChange:_e}=this.props,Vt=(0,P0.zX)(le);_e({...de,bdrIsVisible:!0,bdrColor:Vt}),this.$ref&&this.$ref.close&&this.$ref.close()}),(0,sl.A)(this,"handleVisibleChange",()=>{const{widget:{hotAttr:{border:le}},onChange:de}=this.props;de({...le,bdrIsVisible:!1})}),(0,sl.A)(this,"handleChangeMore",le=>{const{widget:{hotAttr:{border:de}},onChange:_e}=this.props;_e({...de,bdrIsVisible:!0,bdrColor:le})}),(0,sl.A)(this,"handleTabChange",le=>{const{widget:{hotAttr:{border:de}},onChange:_e}=this.props;_e({...de,bdrStyle:le})}),(0,sl.A)(this,"handleChangeBorder",(le,de)=>{const{widget:{hotAttr:{border:_e}},onChange:Vt}=this.props;Vt({..._e,[de]:le})})}shouldComponentUpdate(le,de,_e){return le.widget.key!==this.props.widget.key||!dp()(le.widget.hotAttr.border,this.props.widget.hotAttr.border)}render(){const{config:le,dropdownPosition:de,widget:_e,theme:Vt,onOpenColorPanel:Bt,onCloseColorPanel:ln}=this.props,{colors:Ht,title:En,className:po}=le,{hotAttr:{border:{bdrIsVisible:Lo,bdrColor:Bo,bdrStyle:Zo,bdrWidth:Yo}}}=_e,Jo=(0,vh.t0)(Bo),ea=mf();return(0,W.jsx)(T0.A,{ref:this.setDropdownRef,top:de==="bottom"?40:-168,left:-61,closeOnContentClick:!1,title:le.title,trigger:(0,W.jsx)(hf,{className:M()("trigger-container",po),children:Lo?(0,W.jsx)(qf,{borderColor:Jo,bdrStyle:Zo,configTheme:Vt}):(0,W.jsx)(j.C,{name:"floating_toolbar/mind/stroke/transparent",className:"noSetColor"})}),children:(0,W.jsxs)(dm,{className:"content-container mind-bgColor-options mind-stroke-options",children:[(0,W.jsx)("div",{className:"border-style-option-container",children:ea.map(qo=>{let{label:Go,value:$o}=qo;return(0,W.jsx)("div",{className:M()("border-style-option",{selected:Zo===$o},Vt),onClick:()=>this.handleTabChange($o),children:Go},$o)})}),(0,W.jsxs)("div",{className:"border-width-container",children:[(0,W.jsxs)("div",{className:"left",children:[(0,W.jsx)(j.C,{name:"floating_toolbar/mind/stroke"}),(0,W.jsx)("span",{children:En})]}),(0,W.jsx)("div",{className:"right",children:(0,W.jsx)(pm.A,{className:"bdr-input",attr:"bdrWidth",value:Yo,optionList:df.xq,onConfirm:this.handleChangeBorder})})]}),(0,W.jsxs)("div",{className:"color-option-container",children:[(0,W.jsxs)(vd,{value:"",title:"",active:!Lo,onClick:this.handleVisibleChange,children:[(0,W.jsx)(j.C,{name:"floating_toolbar/mind/noSetColor",className:M()("noSetColor",Vt)}),(0,W.jsx)("span",{className:"frame"})]}),Ht.map((qo,Go)=>{const $o=(0,P0.dT)(Bo).solidColor,ba=(0,P0.dT)(qo).solidColor;return(0,W.jsx)(vd,{value:qo,active:Lo&&$o===ba,title:"",widget:_e,onClick:this.toggleColor,children:(0,W.jsx)(wh,{className:Vt,size:18,color:qo,children:(0,W.jsx)("span",{className:"frame"})})},Go)}),(0,W.jsx)(xh.R_,{attr:"bdrColor",color:Bo,pIsSolidColorOnly:!0,iconImg:{src:"/mb-proto2/images/font_color_picker.png",width:18,height:18},colorPanelPosOffset:{offsetLeft:380,offsetTop:340},onChange:this.handleChangeMore,onOpenColorPanel:Bt,onCloseColorPanel:ln,canOpenLib:!1})]})]})})}}var $p=s(34697),Ch=s(96427);const wd=E=>[{theme:$p.dr.DEFAULT,src:"default",title:E.FloatingToolbar.Mind.themeSelect.default},{theme:$p.dr.RAINBOW,src:"rainbow",title:E.FloatingToolbar.Mind.themeSelect.rainbow},{theme:$p.dr.RETRO,src:"retro",title:E.FloatingToolbar.Mind.themeSelect.retro},{theme:$p.dr.YOUTH,src:"youth",title:E.FloatingToolbar.Mind.themeSelect.youth},{theme:$p.dr.CLASSICAL,src:"classical",title:E.FloatingToolbar.Mind.themeSelect.classical},{theme:$p.dr.DARK,src:"dark",title:E.FloatingToolbar.Mind.themeSelect.dark}],$f=Xp(E=>({controlConfig:[{component:gc,styleConfig:{inDropdown:!0,icon:"floating_toolbar/mind/theme",className:"floating_toolbar-mind-theme",title:E.FloatingToolbar.Mind.theme,options:wd(E)},getMiddleProps:le=>{const{theme:de,widget:_e,refresh:Vt,dispatch:Bt}=le;return{theme:de,onChange:Ht=>{Bt({type:"entry:widget:change",payload:{flatChgList:[{key:_e.key,hotAttr:{theme:Ht}}]}}),(0,Ch.h)("\u4FEE\u6539\u4E3B\u9898"),Vt()}}}},{component:Jp,styleConfig:{inDropdown:!0,title:E.FloatingToolbar.Mind.bgColor,colors:["#ffffff","#e6e6e6","#ff9e93","#9dc4ff","#54d691","#daa3ff","#fdd143","#ff9e47"]},getMiddleProps:le=>{const{widget:de,refresh:_e,dispatch:Vt}=le;return{onChange:ln=>{Vt({type:"entry:widget:change",payload:{flatChgList:[{key:de.key,hotAttr:{fill:ln}}]}}),(0,Ch.h)("\u4FEE\u6539\u80CC\u666F\u8272"),_e()}}}},{component:I1,styleConfig:{inDropdown:!0,title:E.FloatingToolbar.Mind.stroke,className:"mind-node-stroke",colors:["#191919","#666666","#ffffff","#1684fc","#00A056","#9B33E1","#E96200","#EC4954"]},getMiddleProps:le=>{const{widget:de,theme:_e,refresh:Vt,dispatch:Bt}=le;return{theme:_e,onChange:Ht=>{Bt({type:"entry:widget:change",payload:{flatChgList:[{key:de.key,hotAttr:{border:Ht}}]}}),(0,Ch.h)("\u4FEE\u6539\u63CF\u8FB9"),Vt()}}}}]})),ff=ye.Ay.div.withConfig({displayName:"styles__StyledMindPanel",componentId:"sc-1t93uac-0"})(["display:flex;.mind-content-wrap{display:flex;ul{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;padding-top:8px;}li.mind-option{width:110px;height:103px;margin-bottom:8px;&:nth-child(odd){margin-right:8px;}.img-container{width:100%;height:82px;}&:hover{background-color:unset;.frame{box-shadow:#79BAFF 0 0 0 2px inset;}}}}"]);class Sh extends r.PureComponent{constructor(){super(...arguments),(0,sl.A)(this,"handleMouseDown",(le,de)=>{var _e;const{showDragMode:Vt,isAdsorbentReferenceLine:Bt,canvasRect:ln,scale:Ht}=this.props,En=(_e=document.getElementById("popups-mind-panel"))==null?void 0:_e.getBoundingClientRect(),po=(0,$d.aU)()[de];(0,A0.ow)({e:le,template:po,doNotCreateRect:En,canvasRect:ln,scale:Ht,showDragMode:Vt,isAdsorbentReferenceLine:Bt,callback:()=>{(0,Ls.gJ)("\u62D6\u62FD\u521B\u5EFA")}})}),(0,sl.A)(this,"handleCreate",async(le,de)=>{const _e=(0,$d.aU)()[de];await(0,A0.lc)(le,_e),(0,Ls.gJ)("\u53CC\u51FB\u521B\u5EFA")})}render(){return(0,W.jsx)(ff,{className:"mind-content-panel",children:(0,W.jsx)("div",{className:"mind-content-wrap",children:(0,W.jsx)("ul",{children:wd(I18N).map((le,de)=>{let{src:_e,title:Vt}=le;return(0,W.jsx)("li",{className:"mind-option",onDoubleClick:Bt=>this.handleCreate(Bt,de),onMouseDown:Bt=>this.handleMouseDown(Bt,de),children:(0,W.jsx)(yh,{src:_e,title:Vt})},de)})})})})}}const gf=(0,J.Mz)([N.OW,te.PI,te.k3,ne.Pz,ne.X_],(E,le,de,_e,Vt)=>({currentPopupPanel:E,showDragMode:le,isAdsorbentReferenceLine:de,canvasRect:_e,scale:Vt})),K=(0,I.Ng)(E=>gf(E))(Sh);class D extends r.PureComponent{render(){const{show:le}=this.props;return le?(0,W.jsx)(K,{}):null}}const z=(0,J.Mz)([N.OW],E=>({show:E===is.lS.Mind})),X=(0,I.Ng)(E=>z(E))(D);var ie=s(42402),ue=s(24374);const oe=ye.Ay.div.withConfig({displayName:"styles__StyledHomePanel",componentId:"sc-iw79iw-0"})(["flex:1;display:flex;flex-direction:column;overflow:hidden;position:relative;.basic-list{padding-top:0;}.home-panel-header{display:flex;flex-shrink:0;align-items:center;justify-content:space-between;height:50px;padding:0 12px 0 5px;border-bottom:1px solid ",";.home-nav-box{display:flex;align-items:center;flex-shrink:0;height:32px;padding:0 8px;cursor:pointer;&.disabled{pointer-events:none;}.nav-menu-icon{width:13px;height:12px;margin-right:10px;color:",";}.item-icon{width:24px;height:24px;}&:hover{background:",";border-radius:4px;}&.active{background:",";border-radius:4px;}.nav-title{max-width:130px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:16px;font-weight:500;color:",";&:lang(en){font-weight:600;}}.nav-hover-btn{width:13px;height:12px;margin-right:10px;}}.nav-back{height:100%;display:flex;align-items:center;cursor:pointer;margin-left:7px;.svg-icon{color:",";}&:hover{.svg-icon{color:",";}}.nav-back-icon{width:9px;height:15px;}}.home-panel-search{margin-left:13px;}}"],E=>E.theme.color_btn_secondary_active,E=>E.theme.color_text_L3,E=>E.theme.color_bg_canvas,E=>E.theme.color_bg_canvas,E=>E.theme.color_text_L1,E=>E.theme.color_text_L3,E=>E.theme.color_text_L2),be=ye.Ay.div.withConfig({displayName:"styles__StyledFlowPanelContent",componentId:"sc-iw79iw-1"})(["flex:1;width:calc(100% - 2px);overflow-x:hidden;overflow-y:auto;padding-bottom:1vh;.basic-list{display:flex;flex-flow:row wrap;padding:12px 4px 0 12px;margin-top:8px;}"]),Ae=(0,J.Mz)([ne.PL,ne.Ur,te.PI,te.k3,N.B8],(E,le,de,_e,Vt)=>({rootProject:E,screenMeta:le,showDragMode:de,isAdsorbentReferenceLine:_e,popupsPanelName:Vt}));function Ne(){const{rootProject:E,screenMeta:le,showDragMode:de,isAdsorbentReferenceLine:_e,popupsPanelName:Vt}=(0,I.d4)(ln=>Ae(ln)),Bt=(0,I.wA)();return(0,W.jsx)(be,{children:(0,W.jsx)("div",{className:"basic-list",style:{width:ts.qv},children:$d.v0.map(ln=>(0,W.jsx)(ue.Y,{screenMeta:le,rootProject:E,type:ln.type,name:ln.name,icon:ln.svg_icon,showDragMode:de,isAdsorbentReferenceLine:_e,popupsPanelName:Vt,source:Ls.ol.BuiltPanel,dispatch:Bt},ln.name))})})}class Be extends r.PureComponent{render(){const{show:le}=this.props;return le?(0,W.jsx)(oe,{children:(0,W.jsx)(Ne,{})}):null}}const Ge=(0,J.Mz)([N.OW],E=>({show:E===is.lS.Flow})),it=(0,I.Ng)(E=>Ge(E))(Be),At=ye.Ay.div.withConfig({displayName:"styles__StylesAIComponentListPanel",componentId:"sc-1d7xjdj-0"})(["width:100%;padding:0 12px 25px 12px;overflow:auto;height:100%;&:lang(en){height:calc(100% - 44px);}&::-webkit-scrollbar{width:4px;height:4px;}.section-title{font-weight:400;font-size:12px;line-height:16px;color:",";margin-top:20px;}"],E=>E.theme.color_text_L2);class zt extends r.PureComponent{render(){const{openAIModal:le,openAIComponentCreateMode:de}=this.props;return(0,W.jsx)(At,{children:(0,f1.UP)().map((_e,Vt)=>(0,W.jsxs)("div",{children:[(0,W.jsx)("div",{className:"section-title",children:_e.title}),_e.items.map((Bt,ln)=>{const{label:Ht}=Bt,En=Ht===f1.Tq?de:le;return(0,W.jsx)(Gc,{item:Bt,onSelect:En},ln)})]},Vt))})}}var qt=s(44007),_n=s(21337),$n=s(46723);const Fn=ye.Ay.div.withConfig({displayName:"styles__StylesAIContentPanel",componentId:"sc-1ni4k55-0"})(["width:100%;display:flex;flex-direction:column;height:100%;.ai-panel-header{height:50px;min-height:50px;align-items:center;justify-content:space-between;padding:0 9px 0 15px;border-bottom:1px solid ",";position:relative;display:flex;.title{max-width:130px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:16px;color:",";font-weight:500;&:lang(en){font-weight:600;}}}.ai-labels-content{display:flex;flex-wrap:wrap;-webkit-box-align:center;align-items:center;-webkit-box-pack:center;justify-content:start;padding:0px 7px 10px 7px;.ai-label{width:68px;line-height:24px;margin-top:10px;margin-left:8px;font-size:12px;text-align:center;border-radius:4px;color:",";border:1px solid ",";cursor:pointer;transition:all 0.2s ease-out 0s;&:hover{background:",";}}}"],E=>E.theme.color_background_icon_hover,E=>E.theme.color_text_L1,E=>E.theme.color_text_L1,E=>E.theme.color_background_icon_hover,E=>E.theme.color_background_icon_active),Ao=ye.Ay.div.withConfig({displayName:"styles__StylesAISwitchBar",componentId:"sc-1jqe9tx-0"})(["width:100%;margin-top:12px;padding:0 12px;.switch-content{height:32px;background:",";border-radius:8px;padding:4px;display:flex;width:100%;align-items:center;position:relative;z-index:0;.ai-switch-bg{position:absolute;width:calc(50% - 4px);top:4px;left:4px;height:24px;transition:0.3s;box-shadow:0px 1.11697px 3.35092px rgba(0,0,0,0.2);border-radius:6px;background:",";z-index:-1;&.select-chat{left:50%;}}.ai-switch-item{width:50%;display:flex;justify-content:center;font-size:12px;color:#999999;cursor:pointer;height:100%;align-items:center;svg{width:14px;margin-right:4px;&.isDark{path{fill:url(#paint_linear_1);}}&.no-select{path{fill:#999999;}}}&.selected{font-weight:500;span{background:linear-gradient(265.2deg,"," -21.19%,"," 105.08%);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;text-fill-color:transparent;}}}}"],E=>E.theme.color_background_AIPannel_component_item,E=>E.theme.color_background_AI_switch,E=>E.theme.color_AI_switch_gradient_start,E=>E.theme.color_AI_switch_gradient_end),_o=E=>{let{switchIsChat:le,theme:de,updateSwitchIsChat:_e}=E;const Vt=de==="dark",Bt=(0,r.useCallback)(Ht=>{_e&&_e(Ht)},[_e]),ln=r.useMemo(()=>[{select:!le,icon:"chatGPT/ai-switch-left",title:I18N.ChatGPT.ai_create},{select:le,icon:"chatGPT/ai-switch-right",title:I18N.ChatGPT.ai_chat}],[le]);return(0,W.jsx)(Ao,{children:(0,W.jsxs)("div",{className:"switch-content",children:[(0,W.jsx)("div",{className:M()("ai-switch-bg",le&&"select-chat")}),ln.map((Ht,En)=>(0,W.jsxs)("div",{className:M()("ai-switch-item",Ht.select&&"selected"),onClick:()=>Bt(En===1),children:[(0,W.jsx)(Dd.C,{className:M()(!Ht.select&&"no-select",Vt&&"isDark"),name:Ht.select,isColorPure:!0}),(0,W.jsx)("span",{children:Ht.title})]},En))]})})},zo=r.memo(_o);class aa extends r.PureComponent{constructor(){super(...arguments),(0,sl.A)(this,"handleUpdateAIPoints",le=>{const{commonData:{user:de,org:_e,project:Vt},actions:{updateCurrentOrg:Bt,updateCurrentUser:ln}}=this.props;Vt.is_org_project&&_e?Bt({org:Object.assign(_e,{ai_points:le})}):ln({user:Object.assign(de,{ai_points:le})})})}async componentDidMount(){const{commonData:{user:le,org:de}}=this.props;await(0,$n.Rn)({user:le,org:de,onUpdateAIPoints:this.handleUpdateAIPoints})}render(){const{commonData:{user:le,org:de,project:_e,theme:Vt,switchIsChat:Bt,showHeadSwitch:ln},actions:{openAIModal:Ht,updateSwitchIsChat:En,openAIComponentCreateMode:po}}=this.props;return(0,W.jsxs)(Fn,{children:[(0,W.jsx)(_n.A,{isHeaderPanel:!0,user:le,org:de,project:_e}),ln&&(0,W.jsx)(zo,{switchIsChat:Bt,theme:Vt,updateSwitchIsChat:En}),Bt?(0,W.jsx)(qt.A,{...this.props}):(0,W.jsx)(zt,{openAIModal:Ht,openAIComponentCreateMode:po})]})}}const oa=E=>{const le=E();return(0,W.jsx)(aa,{...le})};var ma=s(88670),Ea=s(5209),er=s(21677),Pr=s(18501);const Aa=E=>{const{show:le,currentEditorMode:{isEditingProjectMain:de},user:_e,org:Vt,project:Bt,theme:ln,switchIsChat:Ht,dispatch:En}=E,[po,Lo]=(0,r.useState)((0,W.jsx)(W.Fragment,{})),Bo=(0,r.useMemo)(()=>({user:_e,org:Vt,project:Bt,theme:ln,switchIsChat:Ht}),[Vt,Bt,_e,ln,Ht]),Zo=(0,r.useMemo)(()=>({openAIModal:Jo=>{En({type:ma.X.AIOpenModal,payload:Jo}),(0,er.Z)(Jo==null?void 0:Jo.type)},openAIComponentCreateMode:Jo=>En({type:ma.X.AIComponentCreateMode,payload:Jo}),updateIsInChatModal:Jo=>En({type:"reducer:flag:is-in-chatGPT",payload:{isInChatModal:Jo}}),updateSwitchIsChat:Jo=>En({type:"ai:update:switchIsChat",payload:Jo}),updateCurrentOrg:Jo=>{let{org:ea}=Jo;return En({type:"set:current:org",payload:{org:ea}})},updateCurrentUser:Jo=>{let{user:ea}=Jo;return En({type:"set:current:user",payload:{user:ea}})},track:(Jo,ea)=>(0,Ea.kH)(Jo,ea)}),[En]),Yo=(0,r.useMemo)(()=>({commonData:{...Bo,showHeadSwitch:!0},actions:Zo}),[Bo,Zo]);return(0,r.useEffect)(()=>{Lo(!le||!de?(0,W.jsx)(W.Fragment,{}):oa(()=>Yo))},[le,de,Yo]),(0,W.jsx)(W.Fragment,{children:po})},fr=(0,J.Mz)([N.OW,q.r,ne.wA,ne.PL,ne.HW,te.O4,Pr.Bg],(E,le,de,_e,Vt,Bt,ln)=>({show:E===is.lS.AI,currentEditorMode:le,org:de,project:_e,user:Vt,theme:Bt,switchIsChat:ln})),Jr=(0,I.Ng)(E=>fr(E))(Aa);var qa=s(28173),Ka=s(61541),rr=s(85449);const Ua=()=>{const E=(0,r.useRef)(new IntersectionObserver(()=>{},{})),le=(0,r.useRef)([]),de=(0,r.useRef)({}),_e=()=>{const En=po=>{const Lo=le.current||[],Bo=de.current||{};po.forEach(Zo=>{if(Zo.isIntersecting){var Yo,Jo;const ea=(Yo=Zo.target)==null?void 0:Yo.dataset.cid,qo=(Jo=Zo.target)==null?void 0:Jo.dataset.resourcesCid,Go=ea||qo?ea+"-"+(qo||""):"";if(Go&&!Lo.includes(Go)){const $o=Bo[Go];if($o){Lo.push(Go);const{isMdVipTemplate:ba,isMktVipTemplate:sa}=(0,Ka.wY)($o.policy),va={...$o,is_scvip_template:sa,vip_template:ba};(0,Pe.d0)(va)}}}}),Bt({shownMtItemCids:Lo})};E&&(E.current=(0,rr.e)({mode:"exposure",callback:En}))},Vt=()=>{setTimeout(()=>{const En=document.querySelectorAll(".mt-exposure-observer");!(E!=null&&E.current)||En.length===0||En.forEach(po=>E.current.observe(po))},800)},Bt=En=>{let{shownMtItemCids:po=[]}=En;le&&(le.current=po)},ln=En=>{let{observeMtItemObj:po={}}=En;de&&(de.current=po)},Ht=En=>{let{addItemsObj:po={}}=En;de&&(de.current={...de.current||{},...po})};(0,r.useEffect)(()=>(_e(),al.A.on(el.P2,Bt),al.A.on(el.jy,ln),al.A.on(el.A6,Ht),al.A.on(el.BD,Vt),()=>{var En;(En=E.current)==null||En.disconnect(),al.A.off(el.P2,Bt),al.A.off(el.jy,ln),al.A.off(el.A6,Ht),al.A.off(el.BD,Vt)}),[])},_r=()=>{const E=(0,r.useRef)(new IntersectionObserver(()=>{},{})),le=(0,r.useRef)([]),de=(0,I.wA)(),_e=()=>{const Bt=ln=>{const Ht=le.current||[],En=[];ln.forEach(po=>{if(po.isIntersecting){var Lo,Bo;const Zo=(Lo=po.target)==null?void 0:Lo.dataset.cid,Yo=Zo!=null&&Zo.startsWith("mt")?Zo:(Bo=po.target)==null?void 0:Bo.dataset.resourcesCid;Yo&&!Ht.includes(Yo)&&(En.push(Yo),Ht.push(Yo))}}),le.current=Ht,de({type:"entry:search-panel:resources:set:mtSdkStore:map",payload:{mtResourceCidList:En}})};E&&(E.current=(0,rr.e)({mode:"preload",callback:Bt}))},Vt=function(Bt){var ln;Bt===void 0&&(Bt=500),(ln=E.current)==null||ln.disconnect();const En=document.querySelectorAll("#mb-search-results-panel .combo_group .observe-target-list .resources-list");if(!E.current)return null;if(En.length>0)for(let po=0;po<En.length;po++)E.current.observe(En[po]);setTimeout(()=>{const Lo=document.querySelectorAll("#mb-search-results-panel .screen_list .mt-exposure-observer");if(Lo.length===0)return null;for(let Bo=0;Bo<Lo.length;Bo++)E.current.observe(Lo[Bo])},Bt)};(0,r.useEffect)(()=>(al.A.on(el.rg,_e),al.A.on(el.kE,Vt),()=>{var Bt;(Bt=E.current)==null||Bt.disconnect(),al.A.off(el.rg,_e),al.A.off(el.kE,Vt)}),[])},ni=()=>{const E=(0,r.useRef)(new IntersectionObserver(()=>{},{})),le=(0,r.useRef)([]),de=(0,I.wA)(),_e=()=>{const Bt=ln=>{const Ht=le.current||[],En=[];ln.forEach(po=>{if(po.isIntersecting){var Lo;const Bo=(Lo=po.target)==null?void 0:Lo.dataset.resourcesCid;Bo&&!Ht.includes(Bo)&&(En.push(Bo),Ht.push(Bo))}}),le.current=Ht,de({type:"entry:resources:init:marketTemplateItemList:map",payload:{resourcesCids:En}})};E&&(E.current=(0,rr.e)({mode:"preload",callback:Bt,root:document.querySelector("#popups-builtin-panel .widget-panel-container"),rootMargin:"0px 0px 150px 0px"}))},Vt=()=>{const Bt=".combo-group .mt-exposure-observer",ln=document.querySelectorAll(Bt);if(!E.current)return null;if(ln.length>0)for(let Ht=0;Ht<ln.length;Ht++)E.current.observe(ln[Ht]);setTimeout(()=>{document.querySelectorAll(Bt).length!==ln.length&&Vt()},1e3)};(0,r.useEffect)(()=>(al.A.on(el.l7,_e),al.A.on(el.wO,Vt),()=>{var Bt;(Bt=E.current)==null||Bt.disconnect(),al.A.off(el.l7,_e),al.A.off(el.wO,Vt)}),[])},zr=()=>{const E=(0,r.useRef)(new IntersectionObserver(()=>{},{})),le=(0,r.useRef)([]),de=(0,I.wA)(),_e=(0,r.useRef)(null);(0,r.useEffect)(()=>{const Vt=()=>{const ln=Ht=>{const En=le.current||[],po=[];Ht.forEach(Lo=>{if(Lo.isIntersecting){var Bo;const Zo=(Bo=Lo.target)==null?void 0:Bo.dataset.resourcesCid;Zo&&!En.includes(Zo)&&(po.push(Zo),En.push(Zo))}}),le.current=En,de({type:"entry:resources:init:marketTemplateItemList:map",payload:{resourcesCids:po}})};E&&(E.current=(0,rr.e)({mode:"preload",callback:ln,root:document.querySelector(".mb-widget-modals .detail-scrollable-list"),rootMargin:"0px 0px 0px 0px"}))},Bt=()=>{const ln=".container .box .mt-exposure-observer",Ht=document.querySelectorAll(ln);if(!E.current)return null;if(Ht.length>0)for(let En=0;En<Ht.length;En++)E.current.observe(Ht[En]);_e.current=setTimeout(()=>{document.querySelectorAll(ln).length!==Ht.length&&Bt()},1e3)};return al.A.on(el.dK,Vt),al.A.on(el.aI,Bt),()=>{var ln;(ln=E.current)==null||ln.disconnect(),al.A.off(el.dK,Vt),al.A.off(el.aI,Bt),_e.current&&(clearTimeout(_e.current),_e.current=null)}},[_e])},Ur=()=>(Ua(),_r(),ni(),zr(),null);class ki extends r.PureComponent{componentDidMount(){var le,de,_e;const{currentPopupPanel:Vt,layoutV9:Bt,dispatch:ln}=this.props,Ht=(0,Ul.XM)();if(Bt==="recommend"&&!Ht&&!((le=MB.commonGuideHelper)!=null&&le.checkGuideHasShown(nn.c.GUIDE_NOVICE_V9_2408))&&!((de=MB.commonGuideHelper)!=null&&de.checkGuideHasShown(nn.c.GUIDE_NOVICE_V9_2408_STEP_1))&&(_e=(0,Ul.yX)())!=null&&_e.isCompleted){var En;(En=MB.commonGuideHelper)==null||En.markGuideAsRead(nn.c.GUIDE_NOVICE_V9_2408),setTimeout(()=>{Vt!==is.lS.Builtin&&ln({type:"entry:active:popup:panel",payload:{name:is.lS.Builtin}})},0)}}componentDidUpdate(le){const{currentPopupPanel:de}=this.props,{currentPopupPanel:_e}=le;de!==_e&&al.A.emit(el.jy,{observeMtItemObj:{}})}render(){const{currentPopupPanel:le,isShowHistoryPanel:de,isShowSearchPanel:_e,showGlobalHeader:Vt,popupsPanelName:Bt,isEmptyScreen:ln}=this.props,Ht=le===is.lS.AI;return ln?null:de?(0,W.jsx)(G0,{}):le||_e?(0,W.jsxs)(Yp.A,{id:Bt,className:"popups-panel","data-is-widget-insertable":!1,"data-is-quick-create-quit":!0,children:[!Ht&&(0,W.jsx)(ie.F,{show:Vt}),_e?(0,W.jsx)(xd.P,{}):(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(Vp,{}),(0,W.jsx)(hh.x,{}),(0,W.jsx)(ka,{}),(0,W.jsx)(sf,{}),(0,W.jsx)(tm,{}),(0,W.jsx)(it,{}),(0,W.jsx)(X,{}),(0,W.jsx)(Jr,{})]}),(0,W.jsx)(Ur,{})]}):null}}const ds=(0,J.Mz)([N.OW,N.SE,N.ut,N.B8,T.lj,qa.C,te.MZ],(E,le,de,_e,Vt,Bt,ln)=>{let{isEmptyScreen:Ht}=Bt;return{currentPopupPanel:E,isShowHistoryPanel:le,isShowSearchPanel:de,popupsPanelName:_e,showGlobalHeader:Vt,isEmptyScreen:Ht,layoutV9:ln}}),Qs=(0,I.Ng)(E=>ds(E))(ki)},46675:(Qn,qe,s)=>{"use strict";var r=s(1268),I={"text/plain":"Text","text/html":"Url",default:"Text"},J="Copy to clipboard: #{key}, Enter";function N(te){var q=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return te.replace(/#{\s*key\s*}/g,q)}function T(te,q){var ne,B,l,U,C,M,w=!1;q||(q={}),ne=q.debug||!1;try{l=r(),U=document.createRange(),C=document.getSelection(),M=document.createElement("span"),M.textContent=te,M.ariaHidden="true",M.style.all="unset",M.style.position="fixed",M.style.top=0,M.style.clip="rect(0, 0, 0, 0)",M.style.whiteSpace="pre",M.style.webkitUserSelect="text",M.style.MozUserSelect="text",M.style.msUserSelect="text",M.style.userSelect="text",M.addEventListener("copy",function(j){if(j.stopPropagation(),q.format)if(j.preventDefault(),typeof j.clipboardData>"u"){ne&&console.warn("unable to use e.clipboardData"),ne&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var Q=I[q.format]||I.default;window.clipboardData.setData(Q,te)}else j.clipboardData.clearData(),j.clipboardData.setData(q.format,te);q.onCopy&&(j.preventDefault(),q.onCopy(j.clipboardData))}),document.body.appendChild(M),U.selectNodeContents(M),C.addRange(U);var y=document.execCommand("copy");if(!y)throw new Error("copy command was unsuccessful");w=!0}catch(j){ne&&console.error("unable to copy using execCommand: ",j),ne&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(q.format||"text",te),q.onCopy&&q.onCopy(window.clipboardData),w=!0}catch(Q){ne&&console.error("unable to copy using clipboardData: ",Q),ne&&console.error("falling back to prompt"),B=N("message"in q?q.message:J),window.prompt(B,te)}}finally{C&&(typeof C.removeRange=="function"?C.removeRange(U):C.removeAllRanges()),M&&document.body.removeChild(M),l()}return w}Qn.exports=T},46712:(Qn,qe,s)=>{"use strict";s.d(qe,{$D:()=>C,GT:()=>te,K6:()=>q,NW:()=>N,id:()=>l,mO:()=>T,no:()=>M,ss:()=>U,yP:()=>B});var r=s(67787),I=s(93413),J=s(21385);const N=260,T=250,te=r.Ay.div.withConfig({displayName:"styles__StyledGuideStepRect",componentId:"sc-130n2mx-0"})(["position:fixed;z-index:1050;inset:0;width:100vw;height:100vh;pointer-events:none;background-color:transparent;&.grabbing{pointer-events:initial;cursor:grabbing;}.context{position:absolute;pointer-events:initial;width:","px;padding:10px;pointer-events:auto;background-color:#1684FC;border-radius:8px;display:flex;&:not(.grabbing){cursor:default;transition:all 0.2s ease-out;}&:hover{.grab-box{display:flex;}&.grabbing{.grab-box{cursor:grabbing;}}.content .top .close{display:block;}}.grab-box{display:none;position:absolute;top:0px;left:118px;&:hover{cursor:grab;}}.content{width:100%;height:100%;display:flex;flex-direction:column;justify-content:center;.top{position:relative;background-color:#ffffff;border-radius:4px;overflow:hidden;width:240px;height:150px;img{width:100%;height:100%;}.close{cursor:pointer;display:none;position:absolute;top:6px;left:202px;width:20px;border-radius:4px;color:#fff;background:rgba(0,0,0,0.2);}.close-btn{position:absolute;right:4px;top:4px;width:20px;height:20px;display:flex;align-items:center;justify-content:center;cursor:pointer;color:#ffffff;border-radius:4px;&:hover{background:rgba(0,0,0,0.2);}svg{width:20px;}}}.bottom{flex:1;display:flex;flex-direction:column;margin-top:10px;color:#ffffff;font-size:12px;.desc-guide{flex:1;max-width:240px;min-height:44px;.handler{width:16px;height:16px;border:1px solid #ffffff;border-radius:50%;display:inline-block;margin:0 5px;line-height:16px;text-align:center;}.guide-title{font-size:14px;font-weight:500;line-height:18px;margin-bottom:8px;}.text{font-weight:500;font-size:12px;line-height:18px;margin-bottom:16px;align-items:center;img{vertical-align:text-top;}}}.steps-guide{display:flex;justify-content:space-between;align-items:flex-end;.step-info{margin-bottom:6px;}.action-btn{display:flex;.btn{&.prev{margin-right:20px;}&.next{}&.know{width:70px;height:28px;display:flex;justify-content:center;align-items:center;border-radius:6px;background:#ffffff;color:#1684FC;font-size:12px;line-height:20px;&:hover{background:#F1F8FF}}}}}}}}"],N),q='\n outline: 2px solid #1685FC;\n position: relative;\n\n ::after,\n ::before {\n content: "";\n position: absolute;\n background: transparent;\n pointer-events: none;\n\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n width: 100%;\n height: 100%;\n border-radius: 8px;\n outline: 2px solid #1685FC;\n }\n\n ::after {\n z-index: 0;\n -webkit-animation: ripple-animate 2s linear infinite;\n animation: ripple-animate 2s linear infinite;\n }\n\n ::before {\n z-index: 1;\n -webkit-animation: ripple-animate 2s linear 1s infinite;\n animation: ripple-animate 2s linear 1s infinite;\n }\n\n @keyframes ripple-animate{\n 0% {\n width: 100%;\n height: 100%;\n opacity: 0.5;\n }\n\n 100% {\n width: calc(100% + 10px);\n height: calc(100% + 10px);\n opacity: 0.0;\n }\n }\n',ne=(0,r.DU)(['#workspace{#popups-page-panel{.market-template-masonry-list-container.mobile{ul{li:first-child{margin-top:10px;}}li[data-cid="','"]{.img-wrapper{overflow:visible;',';::before,::after{border-radius:6px;}}}}.market-template-masonry-list-container.web{ul{li:first-child{margin-top:10px;}}li[data-cid="','"]{.img-wrapper{overflow:visible;',";::before,::after{border-radius:6px;}}}}}}"],w=>(0,J.NR)(w.sceneTag),q,w=>(0,J.NR)(w.sceneTag),q),B=(0,r.DU)(['#workspace{#popups-builtin-panel{div[data-guide-id="button_solid"]{',"}}}"],q),l=(0,r.DU)(["#workspace{#mb-toolbar{.toolbar-right{.","{width:50px;height:34px;border-radius:8px;transition:none;",";::before,::after{border-radius:8px;}}}}}"],I.c.GUIDE_NOVICE_2309_STEP_4,q),U=(0,r.DU)(["#workspace{#mb-toolbar{.","{",";border-radius:8px;::before,::after{border-radius:8px;}}}}"],I.c.GUIDE_NOVICE_2309_STEP_5,q),C=(0,r.DU)(["#workspace{#mb-toolbar{.","{",";}}}"],I.c.GUIDE_DS_SCREEN_STEP_1,q),M=(0,r.DU)(['#workspace{#popups-builtin-panel{.widget-panel-container{div[data-cid="','"]{ul{padding:6px 12px 0 12px;li{border-radius:4px;padding-bottom:4px;}li[data-cid="','"]{',"}}}}}}"],w=>J.g7[w.currentStep-2],w=>J.CJ[w.currentStep-2],q)},46723:(Qn,qe,s)=>{"use strict";s.d(qe,{AG:()=>N,AP:()=>B,GE:()=>Me,GM:()=>w,K7:()=>T,Kd:()=>U,L4:()=>q,Ni:()=>C,Rn:()=>y,Uy:()=>tt,cD:()=>l,iH:()=>M,nI:()=>te,om:()=>Q,ri:()=>ne,x$:()=>De});var r=s(19249),I=s(44174),J=s(46905);const N=async()=>{try{await(0,r.DE)("/api/web/v3/initial"),location.reload()}catch(at){location.href=location.origin+"/signin?next="+location.pathname}},T=()=>{window.top.postMessage(JSON.stringify({sharingMessage:"sharing:loginInvalid"}),"*")},te=async at=>{let{success:ht,status:Je,user:$,org:mt,isAuto:yt=!1,updateAIState:Le,notice:He}=at;if(yt||Le({aiGenerating:!1}),ht)return;const ye=M({code:Je,user:$,org:mt,isChat:!1});ye&&He({text:ye,svgName:Je===451?"chatGPT/tip-warning":"chatGPT/tip-error"}),Je===401&&(T(),await MB.global.popupHelper.alertAsyncBlocked({title:I18N.dModule.err_info_modal.INVALID_COOKIE.title,desc:I18N.dModule.err_info_modal.INVALID_COOKIE.desc,confirmText:I18N.dModule.confirm}).then(()=>N()))},q=async at=>{let{prompt:ht,workspace:Je,taskID:$,user:mt,org:yt,updateAIState:Le,notice:He}=at;try{const ye=await(0,r.zi)("/go/ai/chatbot/generate_page"+(ENV.IS_WONDER_SHARE?"2":""),{prompt:ht,workspace:Je,task_id:$});return await te({success:!0,status:200,user:mt,org:yt,updateAIState:Le,notice:He}),{result:ye,status:200}}catch(ye){const je=ye.status;return await te({success:!1,status:je,user:mt,org:yt,updateAIState:Le,notice:He}),{status:je}}},ne=async at=>{let{message:ht}=at;try{return{res:await(await fetch("/js-hpr/demo2405/genproto/genFlow?"+new URLSearchParams({uId:MB.user.id,upperCid:"0",Q:ht}),{method:"POST"})).json(),status:200}}catch(Je){return{res:"",status:0}}},B=async at=>{let{prompt:ht,type:Je,workspace:$,taskID:mt,user:yt,org:Le,updateAIState:He,notice:ye}=at;try{const je=await(0,r.zi)("/go/ai/chatbot/generate_widget"+(ENV.IS_WONDER_SHARE?"2":""),{prompt:ht,type:Je,workspace:$,task_id:mt});return await te({success:!0,status:200,user:yt,org:Le,updateAIState:He,notice:ye}),{result:je,status:200}}catch(je){const ot=je.status;return await te({success:!1,status:ot,user:yt,org:Le,updateAIState:He,notice:ye}),{status:ot}}},l=async at=>{let{prompt:ht,textListLength:Je,workspace:$,taskID:mt,user:yt,org:Le,updateAIState:He,notice:ye}=at;const je=ht+(" ,textList.length ==="+Je);try{const ot=await(0,r.zi)("/go/ai/chatbot/generate_widget"+(ENV.IS_WONDER_SHARE?"2":""),{prompt:je,type:"autofill",workspace:$,task_id:mt});return await te({success:!0,status:200,user:yt,org:Le,isAuto:!0,updateAIState:He,notice:ye}),{result:ot,status:200}}catch(ot){const we=ot.status;return await te({success:!1,status:we,user:yt,org:Le,isAuto:!0,updateAIState:He,notice:ye}),{status:we}}},U=async(at,ht)=>{const{selectedTrees:Je,selectedCarouseImage:$,user:mt,org:yt,updateAIState:Le,notice:He}=ht;try{const ye=(0,I.t)({selectedTrees:Je,selectedCarouseImage:$}),je=await(0,r.zi)("/go/ai/chatbot/smart_generate",{...at,size:ye});return await te({success:!0,status:200,user:mt,org:yt,isAuto:!0,updateAIState:Le,notice:He}),{result:je,status:200}}catch(ye){const je=ye.status;return await te({success:!1,status:je,user:mt,org:yt,isAuto:!0,updateAIState:Le,notice:He}),{status:je}}},C=async at=>{try{return await(0,r.zi)("/go/ai/chatbot/edit_text",at)}catch(ht){return null}},M=at=>{let{code:ht,user:Je,org:$,isChat:mt=!0}=at,yt=mt?I18N.ChatGPT.ai_api_conversation_error:I18N.ChatGPT.ai_api_error_create;if(ht===403){mt||(yt="");const Le=(0,J.WX)({user:Je,org:$});MB.global.popupHelper.upgradeChatGPTAsync({orgCid:Le,checkoutArea:"workspace",checkoutPlace:"workspace-V8_AI_Remaining"})}else ht===451?yt=I18N.ChatGPT.ai_api_error_illegal:ht===405&&(yt=I18N.ChatGPT.ai_api_conversation_progress);return yt},w=async at=>{let{user:ht,org:Je,onUpdateAIUsedTimes:$}=at;if(!ENV.IS_WONDER_SHARE)return{success:!1};try{const mt=(0,J.WX)({user:ht,org:Je}),{used_times:yt,limited:Le}=await(0,r.DE)("/go/ai/chatbot/count_chat?workspace="+mt);return $(yt),{times:yt,limited:Le,success:!0}}catch(mt){return console.log("#### error:",mt),{success:!1}}},y=async at=>{let{user:ht,org:Je,onUpdateAIPoints:$}=at;if(!ENV.IS_WONDER_SHARE)try{const mt=(0,J.WX)({user:ht,org:Je}),{points:yt}=await(0,r.DE)("/go/ai/chatbot/chat/points?workspace="+mt);$(yt)}catch(mt){console.log("#### error:",mt)}},j=async at=>{let{taskID:ht,points:Je=0,confirm:$="stop",lane:mt="generate",user:yt,org:Le,onUpdateAIPoints:He}=at;if(!ENV.IS_WONDER_SHARE)try{const ye=getAIWorkspace({user:yt,org:Le});await fetchPostJSON("/go/ai/chatbot/chat/confirm ",{workspace:ye,points:Je,confirm:$,lane:mt,task_id:ht}),await y({user:yt,org:Le,onUpdateAIPoints:He})}catch(ye){console.log("### error:",ye)}},Q=async(at,ht,Je)=>{try{const{reply:$,used_times:mt,limited:yt,usage:Le}=await(0,r.zi)("/go/ai/chatbot/chat",{messages:at,workspace:ht,task_id:Je});return{reply:$,limited:yt,times:mt,loadingID:Je,usage:Le}}catch($){return($.status===401||/401/.test($.message))&&(T(),await MB.global.popupHelper.alertAsyncBlocked({title:I18N.dModule.err_info_modal.INVALID_COOKIE.title,desc:I18N.dModule.err_info_modal.INVALID_COOKIE.desc,confirmText:I18N.dModule.confirm}).then(()=>N())),{loadingID:Je}}},ze=async(at,ht,Je,$,mt,yt,Le,He)=>{try{const ye=await fetch("/go/ai/kb/knowledge_base_chat",{method:"POST",credentials:"same-origin",headers:{"content-type":"application/json"},body:JSON.stringify({messages:at,workspace:ht,task_id:Je})});if(!ye||!ye.ok||!ye.body){yt(!1,M({code:ye.status,user:$,org:mt}),Je,ye.status),(ye==null?void 0:ye.status)===401&&(T(),await MB.global.popupHelper.alertAsyncBlocked({title:I18N.dModule.err_info_modal.INVALID_COOKIE.title,desc:I18N.dModule.err_info_modal.INVALID_COOKIE.desc,confirmText:I18N.dModule.confirm}).then(()=>N()));return}const je=ye.body.getReader(),ot=new TextDecoder;for(;;){const{value:we,done:$e}=await je.read(),ge=ot.decode(we);if(Le(ge,Je),$e)break}yt(!0,"",Je,200),await y({user:$,org:mt,onUpdateAIPoints:He})}catch(ye){yt(!1,M({code:0,user:$,org:mt}),Je,402)}},me=async(at,ht,Je,$,mt,yt,Le,He)=>{try{const ye=await fetch("/go/ai/kb/knowledge_base_chat",{signal:yt,method:"POST",credentials:"same-origin",headers:{"content-type":"application/json"},body:JSON.stringify({query:at,history:ht})});if(!ye||!ye.ok||!ye.body){Le(!1,M({code:ye.status,user:$,org:mt}),Je,ye.status),(ye==null?void 0:ye.status)===401&&(T(),await MB.global.popupHelper.alertAsyncBlocked({title:I18N.dModule.err_info_modal.INVALID_COOKIE.title,desc:I18N.dModule.err_info_modal.INVALID_COOKIE.desc,confirmText:I18N.dModule.confirm}).then(()=>N()));return}const je=ye.body.getReader(),ot=new TextDecoder;for(;;){const{value:we,done:$e}=await je.read(),ge=ot.decode(we);if(He(ge,Je),$e)break}Le(!0,"",Je,200)}catch(ye){Le(!1,M({code:0,user:$,org:mt}),Je,402)}};function Se(at,ht){throw new Error("Function not implemented.")}const Me=async function(at,ht){let{searchValue:Je,signal:$}=at;if(ht===void 0&&(ht="8081"),!Je||!Je.trim())return null;const mt=ht==="8081"?"/go/ai/nlp/analyse_custom":"/go/ai/nlp/analyse";try{const yt=await fetch(mt+"?q="+Je.toLowerCase(),{signal:$,method:"GET",mode:"cors",headers:{"content-type":"application/json"}});if(!yt.ok)throw Se("[fetchPostText] failed with "+yt.status+": /go/ai/nlp/analyse",{status:yt.status});return yt.json()}catch(yt){return null}},De=async function(at,ht){ht===void 0&&(ht="8081");try{return await(0,r.zi)("/go/ai/nlp/attr_conversion",{attrs:at})}catch(Je){return null}},tt=async at=>{try{return await(0,r.zi)("/go/ai/nlp/log",{...at})}catch(ht){return null}}},46998:(Qn,qe,s)=>{"use strict";s.d(qe,{A:()=>ne});var r=s(17307),I=s(38502),J=s(67787),N=s(58320);const T=(0,J.Ay)(N.H).withConfig({displayName:"styles__StyledImagePreviewModal",componentId:"sc-4glxva-0"})(["&.image-preview-modal{height:100%;background:transparent;.container{width:100%;height:100%;position:relative;}.image-wrapper{width:initial;height:initial;position:absolute;left:50%;top:50%;padding:10px;background-color:#ffffff;border-radius:4px;transform:translate(-50%,-50%);transition:transform .2s;img{display:block;width:auto;height:auto;max-width:80vw;max-height:80vh;}}.close-btn{position:absolute;top:40px;right:40px;display:flex;flex-direction:row;justify-content:center;align-items:center;background-color:transparent;cursor:pointer;.svg-icon{width:32px;height:32px;circle{fill:#333333;}path{fill:#ffffff;}}}}}"]);var te=s(72214);const q=B=>{const{isOpen:l,alt:U,imgSrc:C,onClose:M}=B,w=(0,I.useRef)(null),y=(0,I.useCallback)(Q=>{if(w&&w.current){const ze=document.elementFromPoint(Q.clientX,Q.clientY);w.current.contains(ze)||l&&M();return}l&&M()},[w,l,M]),j=(0,I.useCallback)(Q=>{Q.preventDefault(),Q.stopPropagation(),Q.key==="Escape"&&l&&M()},[l,M]);return(0,I.useEffect)(()=>(document.addEventListener("keydown",j,!0),()=>{document.removeEventListener("keydown",j,!0)})),(0,te.jsx)(T,{className:"image-preview-modal",portalClassName:"image-preview-modal-portal",title:"\u56FE\u7247\u9884\u89C8",isOpen:l,canCloseOnClickMask:!0,onClose:M,centered:!0,width:"100%",modalRender:()=>(0,te.jsxs)("div",{className:"container",onClick:y,children:[(0,te.jsx)("div",{className:"image-wrapper",ref:w,children:(0,te.jsx)("img",{src:C,alt:U})}),(0,te.jsx)("span",{className:"close-btn",onClick:M,children:(0,te.jsx)(r.C,{name:"draft/close"})})]})})},ne=(0,I.memo)(q)},47424:(Qn,qe,s)=>{"use strict";s.d(qe,{V:()=>C,q3:()=>U,e$:()=>ne,kz:()=>l,Gi:()=>q});var r=s(79287),I=s.n(r),J=s(19249),N=s(18833),T=s(61541);const te='{"\u79FB\u52A8\u7AEF":{"\u6CE8\u518C\u767B\u5F55":[{"name":"\u767B\u5F55\u4E00","canvas_key":"ssk4s6teTtBtqPLSw8nbYy","pm_cid":"pk4s6te01s5mtan","mt_cid":"mtk4s6te0a5t9kjn"},{"name":"\u767B\u5F55\u4E8C","canvas_key":"ssk4s6teTtBtqPb5B7IrCh","pm_cid":"pk4s6te01s5mtan","mt_cid":"mtk4s6te0a5t9kjn"},{"name":"\u53F7\u7801\u5F52\u5C5E\u5730","canvas_key":"ssk4s6teTtBtqPndTsJc2b","pm_cid":"pk4s6te01s5mtan","mt_cid":"mtk4s6te0a5t9kjn"},{"name":"\u83B7\u53D6\u9A8C\u8BC1\u7801","canvas_key":"ssk4s6teTtBtqQ6IY9bB32","pm_cid":"pk4s6te01s5mtan","mt_cid":"mtk4s6te0a5t9kjn"},{"name":"\u586B\u5199\u9A8C\u8BC1\u7801","canvas_key":"ssk4s6teTtBtqQGAzL2Iil","pm_cid":"pk4s6te01s5mtan","mt_cid":"mtk4s6te0a5t9kjn"},{"name":"\u8BED\u97F3\u9A8C\u8BC1","canvas_key":"ssk4s6teTtBtqQP7PaKd1Q","pm_cid":"pk4s6te01s5mtan","mt_cid":"mtk4s6te0a5t9kjn"},{"name":"\u8D26\u53F7\u5BC6\u7801\u767B\u5F55","canvas_key":"ssk4s6teTtBtqQaxHGmD3X","pm_cid":"pk4s6te01s5mtan","mt_cid":"mtk4s6te0a5t9kjn"},{"name":"\u5FD8\u8BB0\u5BC6\u7801","canvas_key":"ssk4s6teTtBtqQlSlbSJwJ","pm_cid":"pk4s6te01s5mtan","mt_cid":"mtk4s6te0a5t9kjn"},{"name":"\u624B\u673A\u53F7\u6CE8\u518C","canvas_key":"ssk4s6teTtBtqQvwfkDjzE","pm_cid":"pk4s6te01s5mtan","mt_cid":"mtk4s6te0a5t9kjn"},{"name":"\u6CE8\u518C\u83B7\u53D6\u9A8C\u8BC1\u7801","canvas_key":"ssk4s6teTtBtqR4WyedHex","pm_cid":"pk4s6te01s5mtan","mt_cid":"mtk4s6te0a5t9kjn"},{"name":"\u8BBE\u7F6E\u5BC6\u7801","canvas_key":"ssk4s6teTtBtqRGULOBmvM","pm_cid":"pk4s6te01s5mtan","mt_cid":"mtk4s6te0a5t9kjn"},{"name":"\u767B\u5F55\u4E09","canvas_key":"ssk4s6teTtBtqRQeunAsfg","pm_cid":"pk4s6te01s5mtan","mt_cid":"mtk4s6te0a5t9kjn"},{"name":"\u5FD8\u8BB0\u5BC6\u7801","canvas_key":"ssk4s6teTtBtqRXlAfa4B4","pm_cid":"pk4s6te01s5mtan","mt_cid":"mtk4s6te0a5t9kjn"},{"name":"\u624B\u673A\u53F7\u6CE8\u518C","canvas_key":"ssk4s6teTtBtqReE2HhqLB","pm_cid":"pk4s6te01s5mtan","mt_cid":"mtk4s6te0a5t9kjn"},{"name":"\u6CE8\u518C\u83B7\u53D6\u9A8C\u8BC1\u7801","canvas_key":"ssk4s6teTtBtqRkQMaYWHB","pm_cid":"pk4s6te01s5mtan","mt_cid":"mtk4s6te0a5t9kjn"},{"name":"\u8BBE\u7F6E\u5BC6\u7801","canvas_key":"ssk4s6teTtBtqRqBT4jAgG","pm_cid":"pk4s6te01s5mtan","mt_cid":"mtk4s6te0a5t9kjn"},{"name":"\u767B\u5F55","canvas_key":"ssl7pf34TtCXmGKo7OHwHf","pm_cid":"plbtfd8tm9oay9z","mt_cid":"mtl86o896kdk9hrv"},{"name":"\u9A8C\u8BC1\u7801\u767B\u5F55","canvas_key":"ssl85lleTtCXmKJmufES7e","pm_cid":"plbtfd8tm9oay9z","mt_cid":"mtl86o896kdk9hrv"},{"name":"\u8F93\u5165\u9A8C\u8BC1\u7801","canvas_key":"ssl85oaeTtCXmKbO8o8VWb","pm_cid":"plbtfd8tm9oay9z","mt_cid":"mtl86o896kdk9hrv"},{"name":"\u5BC6\u7801\u767B\u9646","canvas_key":"ssl86l9bTtCXmL3Xu9viTS","pm_cid":"plbtfd8tm9oay9z","mt_cid":"mtl86o896kdk9hrv"},{"name":"\u5FD8\u8BB0\u5BC6\u7801","canvas_key":"ssl86mg3TtCXmLOiCVm8C","pm_cid":"plbtfd8tm9oay9z","mt_cid":"mtl86o896kdk9hrv"},{"name":"\u8F93\u5165\u9A8C\u8BC1\u7801","canvas_key":"ssl86mjbTtCXmLZjFarobG","pm_cid":"plbtfd8tm9oay9z","mt_cid":"mtl86o896kdk9hrv"},{"name":"\u91CD\u8BBE\u5BC6\u7801","canvas_key":"ssl86mupTtCXmLuNoFrZo8","pm_cid":"plbtfd8tm9oay9z","mt_cid":"mtl86o896kdk9hrv"},{"name":"\u9996\u9875-\u72B6\u6001 1","canvas_key":"ssl7pf34TtCXmGqCcRSMDz","pm_cid":"plbtfd8tm9oay9z","mt_cid":"mtl86o896kdk9hrv"},{"name":"\u9996\u9875-\u72B6\u6001 2","canvas_key":"ssl86ng2TtCXmIyMGnCotY","pm_cid":"plbtfd8tm9oay9z","mt_cid":"mtl86o896kdk9hrv"},{"name":"\u767B\u5F55-\u7A7A","canvas_key":"ssl6broiTtCVG5Cd7CNlu1","pm_cid":"pl6broij4yw4q55","mt_cid":"mtl6broilohv3wdm"},{"name":"\u767B\u5F55-\u6709","canvas_key":"ssl6broiTtCVG5LCwV4wgw","pm_cid":"pl6broij4yw4q55","mt_cid":"mtl6broilohv3wdm"},{"name":"\u8BBE\u7F6E\u5BC6\u7801-\u7A7A","canvas_key":"ssl6broiTtCVG5hyJIegAu","pm_cid":"pl6broij4yw4q55","mt_cid":"mtl6broilohv3wdm"},{"name":"\u8BBE\u7F6E\u5BC6\u7801-\u6709","canvas_key":"ssl6broiTtCVG5mVJD0pbk","pm_cid":"pl6broij4yw4q55","mt_cid":"mtl6broilohv3wdm"},{"name":"\u5BC6\u7801\u767B\u5F55-\u7A7A","canvas_key":"ssl6broiTtCVG5vpzVe5Gi","pm_cid":"pl6broij4yw4q55","mt_cid":"mtl6broilohv3wdm"},{"name":"\u5BC6\u7801\u767B\u5F55-\u6709","canvas_key":"ssl6broiTtCVG61ms3Tktq","pm_cid":"pl6broij4yw4q55","mt_cid":"mtl6broilohv3wdm"},{"name":"\u627E\u56DE\u5BC6\u7801-\u7A7A","canvas_key":"ssl6broiTtCVG6Bbq1OGCS","pm_cid":"pl6broij4yw4q55","mt_cid":"mtl6broilohv3wdm"},{"name":"\u627E\u56DE\u5BC6\u7801-\u6709","canvas_key":"ssl6broiTtCVG6Gzj7IZt1","pm_cid":"pl6broij4yw4q55","mt_cid":"mtl6broilohv3wdm"},{"name":"\u627E\u56DE\u5BC6\u7801-\u83B7\u53D6\u9A8C\u8BC1\u7801-\u7A7A","canvas_key":"ssl6broiTtCVG5VQ9GgahW","pm_cid":"pl6broij4yw4q55","mt_cid":"mtl6broilohv3wdm"},{"name":"\u627E\u56DE\u5BC6\u7801-\u83B7\u53D6\u9A8C\u8BC1\u7801-\u6709","canvas_key":"ssl6broiTtCVG5ZWu9VOhB","pm_cid":"pl6broij4yw4q55","mt_cid":"mtl6broilohv3wdm"},{"name":"\u91CD\u65B0\u8BBE\u7F6E\u5BC6\u7801-\u7A7A","canvas_key":"ssl6broiTtCVG6U3mNOsfH","pm_cid":"pl6broij4yw4q55","mt_cid":"mtl6broilohv3wdm"},{"name":"\u91CD\u65B0\u8BBE\u7F6E\u5BC6\u7801-\u6709","canvas_key":"ssl6broiTtCVG6WXc5vslx","pm_cid":"pl6broij4yw4q55","mt_cid":"mtl6broilohv3wdm"},{"name":"\u83B7\u53D6\u9A8C\u8BC1\u7801 -\u7A7A","canvas_key":"ssl6broiTtCVG6eYqTD5sl","pm_cid":"pl6broij4yw4q55","mt_cid":"mtl6broilohv3wdm"},{"name":"\u83B7\u53D6\u9A8C\u8BC1\u7801 -\u6709","canvas_key":"ssl6broiTtCVG6gGvDDfUD","pm_cid":"pl6broij4yw4q55","mt_cid":"mtl6broilohv3wdm"},{"name":"\u4E00\u952E\u767B\u5F55-\u7A7A","canvas_key":"ssl6broiTtCVG6nGngu3MA","pm_cid":"pl6broij4yw4q55","mt_cid":"mtl6broilohv3wdm"},{"name":"\u4E00\u952E\u767B\u5F55-\u6709","canvas_key":"ssl6broiTtCVG6r2BD9mLu","pm_cid":"pl6broij4yw4q55","mt_cid":"mtl6broilohv3wdm"},{"name":"\u767B\u5F552","canvas_key":"sslecb65TxSOARK5jFL5yu","pm_cid":"plpmc41ga5mrjpc","mt_cid":"mtlpi53v8nr42pe3"},{"name":"\u767B\u5F555","canvas_key":"sslecbeiTxSOAS4ggHrfsO","pm_cid":"plpmc41ga5mrjpc","mt_cid":"mtlpi53v8nr42pe3"},{"name":"\u767B\u5F557","canvas_key":"sslecebzTxSOASsTM8dVwd","pm_cid":"plpmc41ga5mrjpc","mt_cid":"mtlpi53v8nr42pe3"},{"name":"\u767B\u5F551","canvas_key":"sslecev2TxSOAU9JtMWvjZ","pm_cid":"plpmc41ga5mrjpc","mt_cid":"mtlpi53v8nr42pe3"},{"name":"\u767B\u5F553","canvas_key":"sslecev2TxSOAWeHjhfaXH","pm_cid":"plpmc41ga5mrjpc","mt_cid":"mtlpi53v8nr42pe3"},{"name":"\u767B\u5F558","canvas_key":"sslecebzTxSOAXIE8PZycv","pm_cid":"plpmc41ga5mrjpc","mt_cid":"mtlpi53v8nr42pe3"},{"name":"\u767B\u5F556","canvas_key":"sslphp4gTxSOAXfvX5AjiN","pm_cid":"plpmc41ga5mrjpc","mt_cid":"mtlpi53v8nr42pe3"},{"name":"\u767B\u5F559-\u9A8C\u8BC1\u7801","canvas_key":"sslphp4gTxSOAYVrOLG0O3","pm_cid":"plpmc41ga5mrjpc","mt_cid":"mtlpi53v8nr42pe3"},{"name":"\u767B\u5F554","canvas_key":"sslecev2TxSOAYoi1rxPKU","pm_cid":"plpmc41ga5mrjpc","mt_cid":"mtlpi53v8nr42pe3"},{"name":"\u767B\u5F559","canvas_key":"sslphp4gTxSOAZJgxeHhnX","pm_cid":"plpmc41ga5mrjpc","mt_cid":"mtlpi53v8nr42pe3"},{"name":"\u767B\u5F55","canvas_key":"sslecev2TxSOAanmdmZYe","pm_cid":"plpmc41ga5mrjpc","mt_cid":"mtlpi53v8nr42pe3"},{"name":"\u767B\u5F55-\u53D1\u9001\u9A8C\u8BC1\u7801-\u72B6\u6001 1","canvas_key":"sslecev2TxSOAdeHytmjds","pm_cid":"plpmc41ga5mrjpc","mt_cid":"mtlpi53v8nr42pe3"},{"name":"\u767B\u5F55-\u53D1\u9001\u9A8C\u8BC1\u7801-\u72B6\u6001 2","canvas_key":"sslphykmTxSOAeLk24XeUS","pm_cid":"plpmc41ga5mrjpc","mt_cid":"mtlpi53v8nr42pe3"},{"name":"\u767B\u5F55-\u53D1\u9001\u9A8C\u8BC1\u7801-\u72B6\u6001 3","canvas_key":"sslphyktTxSOAf3esN8sTr","pm_cid":"plpmc41ga5mrjpc","mt_cid":"mtlpi53v8nr42pe3"},{"name":"\u767B\u5F55-\u53D1\u9001\u9A8C\u8BC1\u7801-\u72B6\u6001 4","canvas_key":"sslphylkTxSOAfgYnhlYm3","pm_cid":"plpmc41ga5mrjpc","mt_cid":"mtlpi53v8nr42pe3"},{"name":"\u767B\u5F55-\u53D1\u9001\u9A8C\u8BC1\u7801-\u72B6\u6001 5","canvas_key":"sslphylqTxSOAgOcCoci6w","pm_cid":"plpmc41ga5mrjpc","mt_cid":"mtlpi53v8nr42pe3"},{"name":"\u767B\u5F55-\u53D1\u9001\u9A8C\u8BC1\u7801-\u72B6\u6001 6","canvas_key":"sslphyluTxSOAgtBbImwC3","pm_cid":"plpmc41ga5mrjpc","mt_cid":"mtlpi53v8nr42pe3"},{"name":"\u767B\u5F55-\u53D1\u9001\u9A8C\u8BC1\u7801-\u72B6\u6001 7","canvas_key":"sslphym2TxSOAhnPAKTEnk","pm_cid":"plpmc41ga5mrjpc","mt_cid":"mtlpi53v8nr42pe3"},{"name":"\u767B\u5F55-\u53D1\u9001\u9A8C\u8BC1\u7801-\u72B6\u6001 8","canvas_key":"sslphym6TxSOAid3lNYhQI","pm_cid":"plpmc41ga5mrjpc","mt_cid":"mtlpi53v8nr42pe3"},{"name":"\u767B\u5F55-\u53D1\u9001\u9A8C\u8BC1\u7801-\u72B6\u6001 9","canvas_key":"sslphymaTxSOAj8EqJG7c0","pm_cid":"plpmc41ga5mrjpc","mt_cid":"mtlpi53v8nr42pe3"},{"name":"\u767B\u5F55-\u53D1\u9001\u9A8C\u8BC1\u7801-\u72B6\u6001 10","canvas_key":"sslphymfTxSOAjpUqDWoo2","pm_cid":"plpmc41ga5mrjpc","mt_cid":"mtlpi53v8nr42pe3"},{"name":"\u767B\u5F55-\u53D1\u9001\u9A8C\u8BC1\u7801-\u72B6\u6001 11","canvas_key":"sslphymjTxSOAkTQG0kLJX","pm_cid":"plpmc41ga5mrjpc","mt_cid":"mtlpi53v8nr42pe3"},{"name":"\u767B\u5F55-\u53D1\u9001\u9A8C\u8BC1\u7801-\u72B6\u6001 12","canvas_key":"sslphymnTxSOAlGXitVE0s","pm_cid":"plpmc41ga5mrjpc","mt_cid":"mtlpi53v8nr42pe3"},{"name":"\u767B\u5F55-\u53D1\u9001\u9A8C\u8BC1\u7801-\u72B6\u6001 13","canvas_key":"sslphymqTxSOAm5DSiUDwL","pm_cid":"plpmc41ga5mrjpc","mt_cid":"mtlpi53v8nr42pe3"},{"name":"\u767B\u5F55-\u53D1\u9001\u9A8C\u8BC1\u7801-\u72B6\u6001 14","canvas_key":"sslphymtTxSOAmtrh3LudD","pm_cid":"plpmc41ga5mrjpc","mt_cid":"mtlpi53v8nr42pe3"},{"name":"\u767B\u5F55-\u53D1\u9001\u9A8C\u8BC1\u7801-\u72B6\u6001 15","canvas_key":"sslphymyTxSOAoGP5vlImc","pm_cid":"plpmc41ga5mrjpc","mt_cid":"mtlpi53v8nr42pe3"},{"name":"\u767B\u5F55-\u9A8C\u8BC1\u7801","canvas_key":"sslphymyTxSOApNGjsF3l5","pm_cid":"plpmc41ga5mrjpc","mt_cid":"mtlpi53v8nr42pe3"},{"name":"\u767B\u5F55-\u5DF2\u9605\u8BFB","canvas_key":"sslphymyTxSOAq6NNjN7Xa","pm_cid":"plpmc41ga5mrjpc","mt_cid":"mtlpi53v8nr42pe3"},{"name":"\u767B\u5F55-\u9605\u8BFB\u63D0\u9192","canvas_key":"sslphymyTxSOAqvWrQ6q7r","pm_cid":"plpmc41ga5mrjpc","mt_cid":"mtlpi53v8nr42pe3"},{"name":"\u5BC6\u7801\u767B\u5F55-\u9ED8\u8BA4","canvas_key":"sslecev2TxSOArzWWdQWGA","pm_cid":"plpmc41ga5mrjpc","mt_cid":"mtlpi53v8nr42pe3"},{"name":"\u5BC6\u7801\u767B\u5F55-\u624B\u673A\u53F7","canvas_key":"sslphzphTxSOAsVlGKgBHE","pm_cid":"plpmc41ga5mrjpc","mt_cid":"mtlpi53v8nr42pe3"},{"name":"\u5BC6\u7801\u767B\u5F55-\u5BC6\u7801","canvas_key":"sslphzpyTxSOAt5oLJPrn6","pm_cid":"plpmc41ga5mrjpc","mt_cid":"mtlpi53v8nr42pe3"},{"name":"\u5BC6\u7801\u767B\u5F55-\u63D0\u793A\u9605\u8BFB","canvas_key":"sslphzroTxSOAtVNigQxyI","pm_cid":"plpmc41ga5mrjpc","mt_cid":"mtlpi53v8nr42pe3"},{"name":"\u5BC6\u7801\u767B\u5F55-\u767B\u5F55","canvas_key":"sslphztmTxSOAuARARpk1W","pm_cid":"plpmc41ga5mrjpc","mt_cid":"mtlpi53v8nr42pe3"},{"name":"\u7ACB\u5373\u6CE8\u518C-\u9ED8\u8BA4","canvas_key":"sslpi35iTxSOAvWVGaoFyf","pm_cid":"plpmc41ga5mrjpc","mt_cid":"mtlpi53v8nr42pe3"},{"name":"\u7ACB\u5373\u6CE8\u518C-\u624B\u673A\u53F7","canvas_key":"sslpi345TxSOAw7RUdGNVC","pm_cid":"plpmc41ga5mrjpc","mt_cid":"mtlpi53v8nr42pe3"},{"name":"\u7ACB\u5373\u6CE8\u518C-\u9A8C\u8BC1\u7801","canvas_key":"sslpi351TxSOAwopRaT9tA","pm_cid":"plpmc41ga5mrjpc","mt_cid":"mtlpi53v8nr42pe3"},{"name":"\u7ACB\u5373\u6CE8\u518C-\u5BC6\u7801","canvas_key":"sslecev2TxSOAxL69iSWDW","pm_cid":"plpmc41ga5mrjpc","mt_cid":"mtlpi53v8nr42pe3"},{"name":"\u7ACB\u5373\u6CE8\u518C-\u518D\u6B21\u8F93\u5165\u5BC6\u7801","canvas_key":"sslpi3c5TxSOAy3XOZAnO5","pm_cid":"plpmc41ga5mrjpc","mt_cid":"mtlpi53v8nr42pe3"},{"name":"\u5FAE\u4FE1\u767B\u5F55","canvas_key":"sslecev2TxSOAywNr5Vt2P","pm_cid":"plpmc41ga5mrjpc","mt_cid":"mtlpi53v8nr42pe3"},{"name":"\u652F\u4ED8\u5B9D\u767B\u5F55","canvas_key":"sslecev2TxSOAzqfMOTG2w","pm_cid":"plpmc41ga5mrjpc","mt_cid":"mtlpi53v8nr42pe3"},{"name":"\u9875\u9762 1","canvas_key":"rcUfJOBEUBjgnqwX","pm_cid":"pm2m8o7338hn31ztc","mt_cid":"mtm8o7338j30jgpa"},{"name":"\u9875\u9762 1","canvas_key":"rcUfJOBEUfOXTD3NBYvw3c","pm_cid":"pm2m8o7338hn31ztc","mt_cid":"mtm8o7338j30jgpa"},{"name":"\u9875\u9762 1","canvas_key":"rcUfJOBEUgR9R2LqK5socp","pm_cid":"pm2m8o7338hn31ztc","mt_cid":"mtm8o7338j30jgpa"},{"name":"\u9875\u9762 1","canvas_key":"rcUfJOBEUgRDeaf6GFpDqS","pm_cid":"pm2m8o7338hn31ztc","mt_cid":"mtm8o7338j30jgpa"},{"name":"\u9875\u9762 1","canvas_key":"rcUfJOBEUgRF8x7okUGtQS","pm_cid":"pm2m8o7338hn31ztc","mt_cid":"mtm8o7338j30jgpa"},{"name":"\u9875\u9762 1","canvas_key":"rcUfJOBEUgRH7cFZRT4jdX","pm_cid":"pm2m8o7338hn31ztc","mt_cid":"mtm8o7338j30jgpa"},{"name":"\u9875\u9762 1","canvas_key":"rcUfJOBEUgRIRTGevK6BT2","pm_cid":"pm2m8o7338hn31ztc","mt_cid":"mtm8o7338j30jgpa"},{"name":"\u9875\u9762 1","canvas_key":"rcUfJOBEUgRKRG04kCD7tm","pm_cid":"pm2m8o7338hn31ztc","mt_cid":"mtm8o7338j30jgpa"},{"name":"\u5BC6\u7801\u767B\u5F55","canvas_key":"rcTdD1LlZm7eZrsF","pm_cid":"pm2lhu8gk26txcx8e","mt_cid":"mtlhu8gk2qqtnlg8"},{"name":"\u627E\u56DE\u5BC6\u7801","canvas_key":"rcTdD1LlTeQfDDizfI9HCn","pm_cid":"pm2lhu8gk26txcx8e","mt_cid":"mtlhu8gk2qqtnlg8"},{"name":"\u627E\u56DE\u5BC6\u7801-\u56FE\u7247\u9A8C\u8BC1","canvas_key":"rcTdD1LlTeQnJQ1oXUUpL0","pm_cid":"pm2lhu8gk26txcx8e","mt_cid":"mtlhu8gk2qqtnlg8"},{"name":"\u627E\u56DE\u5BC6\u7801-\u52A8\u6001\u9A8C\u8BC1\u7801","canvas_key":"rcTdD1LlTecfqADhvZ4LTW","pm_cid":"pm2lhu8gk26txcx8e","mt_cid":"mtlhu8gk2qqtnlg8"},{"name":"\u627E\u56DE\u5BC6\u7801-\u4FEE\u6539\u5BC6\u7801","canvas_key":"rcTdD1LlTecgF9oPAuwVgy","pm_cid":"pm2lhu8gk26txcx8e","mt_cid":"mtlhu8gk2qqtnlg8"},{"name":"\u9A8C\u8BC1\u7801\u767B\u5F55","canvas_key":"rcTdD1LlTeFKHQnyK7LXAA","pm_cid":"pm2lhu8gk26txcx8e","mt_cid":"mtlhu8gk2qqtnlg8"},{"name":"\u9A8C\u8BC1\u7801\u767B\u5F55-\u56FE\u7247\u9A8C\u8BC1","canvas_key":"rcTdD1LlTeFKHQn8knYO0L","pm_cid":"pm2lhu8gk26txcx8e","mt_cid":"mtlhu8gk2qqtnlg8"},{"name":"\u9A8C\u8BC1\u7801\u767B\u5F55-\u5012\u8BA1\u65F6","canvas_key":"rcTdD1LlTeFKHQoIA62xhO","pm_cid":"pm2lhu8gk26txcx8e","mt_cid":"mtlhu8gk2qqtnlg8"},{"name":"\u672C\u673A\u767B\u5F55","canvas_key":"rcTdD1LlTeQp0qw1ii3my1","pm_cid":"pm2lhu8gk26txcx8e","mt_cid":"mtlhu8gk2qqtnlg8"},{"name":"\u6388\u6743\u767B\u5F55","canvas_key":"rcTdD1LlTeclT19CBnySI3","pm_cid":"pm2lhu8gk26txcx8e","mt_cid":"mtlhu8gk2qqtnlg8"},{"name":"\u9A8C\u8BC1\u7801\u767B\u5F55-\u672A\u8F93\u5165","canvas_key":"sslkuyfqTtD9p7JDKPqucc","pm_cid":"pllc0qp92njizgs","mt_cid":"mtll4irwq6yal6xc"},{"name":"\u767B\u5F55-\u8F93\u5165\u624B\u673A\u53F7","canvas_key":"sslkuyfqTtD9p7gVyZRTuF","pm_cid":"pllc0qp92njizgs","mt_cid":"mtll4irwq6yal6xc"},{"name":"\u767B\u5F55-\u63D0\u793A","canvas_key":"sslkuyfqTtD9p7rFOUai4w","pm_cid":"pllc0qp92njizgs","mt_cid":"mtll4irwq6yal6xc"},{"name":"\u9A8C\u8BC1\u7801\u91CD\u65B0\u53D1\u9001","canvas_key":"sslkuyfqTtD9p85PE0eSZF","pm_cid":"pllc0qp92njizgs","mt_cid":"mtll4irwq6yal6xc"},{"name":"\u8F93\u5165\u9A8C\u8BC1\u7801","canvas_key":"sslkuyfqTtD9p8JedPSWEU","pm_cid":"pllc0qp92njizgs","mt_cid":"mtll4irwq6yal6xc"},{"name":"\u767B\u5F55-\u672A\u8F93\u5165","canvas_key":"sslkuyfqTtD9p8SMfkVIpB","pm_cid":"pllc0qp92njizgs","mt_cid":"mtll4irwq6yal6xc"},{"name":"\u9A8C\u8BC1\u7801\u767B\u5F55-\u8F93\u5165","canvas_key":"sslkuyfqTtD9p8eEFzuwyR","pm_cid":"pllc0qp92njizgs","mt_cid":"mtll4irwq6yal6xc"},{"name":"\u6CE8\u518C-\u672A\u8F93\u5165","canvas_key":"sslkuyfqTtD9p8qbuO5svu","pm_cid":"pllc0qp92njizgs","mt_cid":"mtll4irwq6yal6xc"},{"name":"\u5BC6\u7801\u767B\u5F55-\u672A\u8F93\u5165","canvas_key":"sslkuyfqTtD9p95wInb3pB","pm_cid":"pllc0qp92njizgs","mt_cid":"mtll4irwq6yal6xc"},{"name":"\u5BC6\u7801\u767B\u5F55-\u8F93\u5165","canvas_key":"sslkuyfqTtD9p9HN45HI5M","pm_cid":"pllc0qp92njizgs","mt_cid":"mtll4irwq6yal6xc"},{"name":"\u6CE8\u518C-\u8F93\u5165","canvas_key":"sslkuyfqTtD9p9Wso9VSPJ","pm_cid":"pllc0qp92njizgs","mt_cid":"mtll4irwq6yal6xc"},{"name":"\u6CE8\u518C-\u672A\u8F93\u5165","canvas_key":"sslkuyfqTtD9p9sjZK06qq","pm_cid":"pllc0qp92njizgs","mt_cid":"mtll4irwq6yal6xc"},{"name":"\u6CE8\u518C-\u8F93\u5165","canvas_key":"sslkuyfqTtD9pAEaCmsoK","pm_cid":"pllc0qp92njizgs","mt_cid":"mtll4irwq6yal6xc"},{"name":"\u767B\u5F55-\u672A\u8F93\u5165","canvas_key":"sslkuyfqTtD9pAUakNeBYq","pm_cid":"pllc0qp92njizgs","mt_cid":"mtll4irwq6yal6xc"},{"name":"\u767B\u5F55-\u8F93\u5165","canvas_key":"sslkuyfqTtD9pAigWo8njT","pm_cid":"pllc0qp92njizgs","mt_cid":"mtll4irwq6yal6xc"},{"name":"\u4E00\u952E\u767B\u5F55","canvas_key":"sslkuyfqTtD9pAwVMtdFAm","pm_cid":"pllc0qp92njizgs","mt_cid":"mtll4irwq6yal6xc"},{"name":"\u6B22\u8FCE\u6CE8\u518C","canvas_key":"sslkuyfqTtD9pBOOYT6BFp","pm_cid":"pllc0qp92njizgs","mt_cid":"mtll4irwq6yal6xc"},{"name":"\u627E\u56DE\u5BC6\u7801","canvas_key":"sslkuyfqTtD9pBezc1T3hw","pm_cid":"pllc0qp92njizgs","mt_cid":"mtll4irwq6yal6xc"},{"name":"\u6B22\u8FCE\u6CE8\u518C-\u624B\u673A\u53F7","canvas_key":"sslkuyfqTtD9pBvKFKTV3N","pm_cid":"pllc0qp92njizgs","mt_cid":"mtll4irwq6yal6xc"},{"name":"\u9A8C\u8BC1\u7801\u53D1\u9001","canvas_key":"sslkuyfqTtD9pC93D3SnD7","pm_cid":"pllc0qp92njizgs","mt_cid":"mtll4irwq6yal6xc"},{"name":"\u4E00\u952E\u767B\u5F55","canvas_key":"sslkuyfqTtD9pCRl4VMBCd","pm_cid":"pllc0qp92njizgs","mt_cid":"mtll4irwq6yal6xc"},{"name":"\u6B22\u8FCE\u6CE8\u518C","canvas_key":"sslkuyfqTtD9pCeO7Sr9N9","pm_cid":"pllc0qp92njizgs","mt_cid":"mtll4irwq6yal6xc"},{"name":"\u627E\u56DE\u5BC6\u7801","canvas_key":"sslkuyfqTtD9pCzjM46vnb","pm_cid":"pllc0qp92njizgs","mt_cid":"mtll4irwq6yal6xc"},{"name":"\u6B22\u8FCE\u6CE8\u518C-\u624B\u673A\u53F7","canvas_key":"sslkuyfqTtD9pDFHGxrybM","pm_cid":"pllc0qp92njizgs","mt_cid":"mtll4irwq6yal6xc"},{"name":"\u9A8C\u8BC1\u7801\u53D1\u9001","canvas_key":"sslkuyfqTtD9pDT3xf54dQ","pm_cid":"pllc0qp92njizgs","mt_cid":"mtll4irwq6yal6xc"},{"name":"\u624B\u673A\u5FEB\u901F\u767B\u5F55","canvas_key":"sslkuyfqTtD9pDhZgRFcAB","pm_cid":"pllc0qp92njizgs","mt_cid":"mtll4irwq6yal6xc"},{"name":"\u8D26\u53F7\u5BC6\u7801\u767B\u5F55","canvas_key":"sslkuyfqTtD9pDzZmwE1dx","pm_cid":"pllc0qp92njizgs","mt_cid":"mtll4irwq6yal6xc"},{"name":"\u624B\u673A\u5FEB\u901F\u767B\u5F55-\u8F93\u5165","canvas_key":"sslkuyfqTtD9pEESFEvP6O","pm_cid":"pllc0qp92njizgs","mt_cid":"mtll4irwq6yal6xc"},{"name":"\u624B\u673A\u5FEB\u901F\u767B\u5F55-\u534F\u8BAE","canvas_key":"sslkuyfqTtD9pEbhMkP0fG","pm_cid":"pllc0qp92njizgs","mt_cid":"mtll4irwq6yal6xc"},{"name":"\u8D26\u53F7\u5BC6\u7801\u767B\u5F55-\u8F93\u5165","canvas_key":"sslkuyfqTtD9pEqgC0dCJR","pm_cid":"pllc0qp92njizgs","mt_cid":"mtll4irwq6yal6xc"},{"name":"\u627E\u56DE\u5BC6\u7801","canvas_key":"sslkuyfqTtD9pF3KFBh2SG","pm_cid":"pllc0qp92njizgs","mt_cid":"mtll4irwq6yal6xc"},{"name":"\u4E00\u952E\u767B\u5F55","canvas_key":"sslkuyfqTtD9pFGvSMV6dD","pm_cid":"pllc0qp92njizgs","mt_cid":"mtll4irwq6yal6xc"},{"name":"\u6B22\u8FCE\u6CE8\u518C","canvas_key":"sslkuyfqTtD9pFSF9Syies","pm_cid":"pllc0qp92njizgs","mt_cid":"mtll4irwq6yal6xc"},{"name":"\u6B22\u8FCE\u6CE8\u518C-\u624B\u673A\u53F7","canvas_key":"sslkuyfqTtD9pFf41D4334","pm_cid":"pllc0qp92njizgs","mt_cid":"mtll4irwq6yal6xc"},{"name":"\u9A8C\u8BC1\u7801\u53D1\u9001","canvas_key":"sslkuyfqTtD9pFrDRfQS8Y","pm_cid":"pllc0qp92njizgs","mt_cid":"mtll4irwq6yal6xc"},{"name":"\u627E\u56DE\u5BC6\u7801","canvas_key":"sslkuyfqTtD9pG6rapU7zz","pm_cid":"pllc0qp92njizgs","mt_cid":"mtll4irwq6yal6xc"},{"name":"\u4E00\u952E\u767B\u5F55","canvas_key":"sslkuyfqTtD9pGUH0cIEYr","pm_cid":"pllc0qp92njizgs","mt_cid":"mtll4irwq6yal6xc"},{"name":"\u6B22\u8FCE\u6CE8\u518C","canvas_key":"sslkuyfqTtD9pGgPbnDeXC","pm_cid":"pllc0qp92njizgs","mt_cid":"mtll4irwq6yal6xc"},{"name":"\u6B22\u8FCE\u6CE8\u518C-\u624B\u673A\u53F7","canvas_key":"sslkuyfqTtD9pGsGE1VEBz","pm_cid":"pllc0qp92njizgs","mt_cid":"mtll4irwq6yal6xc"},{"name":"\u9A8C\u8BC1\u7801\u53D1\u9001","canvas_key":"sslkuyfqTtD9pH5vwu1G4K","pm_cid":"pllc0qp92njizgs","mt_cid":"mtll4irwq6yal6xc"},{"name":"\u627E\u56DE\u5BC6\u7801","canvas_key":"sslkuyfqTtD9pHJLds1x6O","pm_cid":"pllc0qp92njizgs","mt_cid":"mtll4irwq6yal6xc"},{"name":"\u4E00\u952E\u767B\u5F55","canvas_key":"sslkuyfqTtD9pHZXuuVrm2","pm_cid":"pllc0qp92njizgs","mt_cid":"mtll4irwq6yal6xc"},{"name":"\u6B22\u8FCE\u6CE8\u518C","canvas_key":"sslkuyfqTtD9pHnt2e3sNe","pm_cid":"pllc0qp92njizgs","mt_cid":"mtll4irwq6yal6xc"},{"name":"\u6B22\u8FCE\u6CE8\u518C-\u624B\u673A\u53F7","canvas_key":"sslkuyfqTtD9pIAYpjWiLr","pm_cid":"pllc0qp92njizgs","mt_cid":"mtll4irwq6yal6xc"},{"name":"\u9A8C\u8BC1\u7801\u53D1\u9001","canvas_key":"sslkuyfqTtD9pINiiGrG7T","pm_cid":"pllc0qp92njizgs","mt_cid":"mtll4irwq6yal6xc"}],"\u9996\u9875":[{"name":"\u7F8E\u56E2\u5916\u5356\u9996\u9875-\u72B6\u6001 1","canvas_key":"ssl34g6lTtCB08b2tJ6Fip","pm_cid":"pl34g6lk3vtuh0e","mt_cid":"mtl34g6lsiwy5swo"},{"name":"\u7F8E\u56E2\u5916\u5356\u9996\u9875-\u72B6\u6001 2","canvas_key":"ssl34g6lTtCB09BjfTfjs1","pm_cid":"pl34g6lk3vtuh0e","mt_cid":"mtl34g6lsiwy5swo"},{"name":"\u997F\u4E86\u4E48\u5916\u5356\u9996\u9875","canvas_key":"ssl34g6lTtCB09rTi9qtCm","pm_cid":"pl34g6lk3vtuh0e","mt_cid":"mtl34g6lsiwy5swo"},{"name":"\u9996\u98751","canvas_key":"ssl34g6lTtCB0AnKG0FDb","pm_cid":"pl34g6lk3vtuh0e","mt_cid":"mtl34g6lsiwy5swo"},{"name":"\u9996\u98752","canvas_key":"ssl34g6lTtCB0BqYI9UwZD","pm_cid":"pl34g6lk3vtuh0e","mt_cid":"mtl34g6lsiwy5swo"},{"name":"\u817E\u8BAF\u8BFE\u5802\u9996\u9875","canvas_key":"ssl34eeuTtCAxPlfhrMQMJ","pm_cid":"pl34eeu0il59p4m","mt_cid":"mtl34eeu9zq3vh89"},{"name":"\u91D1\u878DAPP\u9996\u9875","canvas_key":"ssl08xxsU8mqFsFe4d0V4q","pm_cid":"pltzjk0bpuwl77f","mt_cid":"mtl0aourpru314g3"},{"name":"\u9AD8\u94C1APP\u9996\u9875","canvas_key":"ssl08xxsU8mqFuGeYGtSyB","pm_cid":"pltzjk0bpuwl77f","mt_cid":"mtl0aourpru314g3"},{"name":"\u5496\u5561APP\u9996\u9875","canvas_key":"ssl0aj9zU8mqFwFw1jseEq","pm_cid":"pltzjk0bpuwl77f","mt_cid":"mtl0aourpru314g3"},{"name":"\u9605\u8BFBAPP\u9996\u9875","canvas_key":"ssl0alnuU8mqFyTezULNqp","pm_cid":"pltzjk0bpuwl77f","mt_cid":"mtl0aourpru314g3"},{"name":"\u6DD8\u5B9D\u9996\u9875","canvas_key":"ssl34f4fTtCAybcV3T4zdq","pm_cid":"pl34f4fcawjbacl","mt_cid":"mtl34f4fl184xr2g"},{"name":"\u9996\u98751","canvas_key":"ssl34f4fTtCAycVCzVk0Hh","pm_cid":"pl34f4fcawjbacl","mt_cid":"mtl34f4fl184xr2g"},{"name":"\u9875\u9762","canvas_key":"rcUVFLjAQrzVUDdD","pm_cid":"pm2m5dm5jw6lxuq6p","mt_cid":"mtm3yntdfumw5eb0"},{"name":"\u9875\u9762","canvas_key":"rcUVFLjC4SD1JjYb","pm_cid":"pm2m5dm5jw6lxuq6p","mt_cid":"mtm3yntdfumw5eb0"},{"name":"\u9875\u9762","canvas_key":"rcUVFLjD3OjCQi4P","pm_cid":"pm2m5dm5jw6lxuq6p","mt_cid":"mtm3yntdfumw5eb0"},{"name":"\u9875\u9762","canvas_key":"rcUVFLjDRT92E7ku","pm_cid":"pm2m5dm5jw6lxuq6p","mt_cid":"mtm3yntdfumw5eb0"},{"name":"\u9875\u9762","canvas_key":"rcUVFLjDsmumermf","pm_cid":"pm2m5dm5jw6lxuq6p","mt_cid":"mtm3yntdfumw5eb0"},{"name":"\u9875\u9762","canvas_key":"rcUVFLjELaAFIMvV","pm_cid":"pm2m5dm5jw6lxuq6p","mt_cid":"mtm3yntdfumw5eb0"},{"name":"\u9875\u9762","canvas_key":"rcUVFLjGC3Usb6yv","pm_cid":"pm2m5dm5jw6lxuq6p","mt_cid":"mtm3yntdfumw5eb0"},{"name":"\u9875\u9762","canvas_key":"rcUVFLjHG6RKoFWo","pm_cid":"pm2m5dm5jw6lxuq6p","mt_cid":"mtm3yntdfumw5eb0"},{"name":"\u9875\u9762","canvas_key":"rcUVFLjHsiYQCP2A","pm_cid":"pm2m5dm5jw6lxuq6p","mt_cid":"mtm3yntdfumw5eb0"},{"name":"\u9875\u9762","canvas_key":"rcUVFLjIcrt4GUTb","pm_cid":"pm2m5dm5jw6lxuq6p","mt_cid":"mtm3yntdfumw5eb0"},{"name":"\u9875\u9762","canvas_key":"rcUVFLjIzt5oAZQ","pm_cid":"pm2m5dm5jw6lxuq6p","mt_cid":"mtm3yntdfumw5eb0"},{"name":"\u9875\u9762","canvas_key":"rcUVFLjJh8biHpeV","pm_cid":"pm2m5dm5jw6lxuq6p","mt_cid":"mtm3yntdfumw5eb0"},{"name":"\u9875\u9762","canvas_key":"rcUVFLjKXoBgu8LC","pm_cid":"pm2m5dm5jw6lxuq6p","mt_cid":"mtm3yntdfumw5eb0"},{"name":"\u9875\u9762","canvas_key":"rcUVFLjLOeDgzDOF","pm_cid":"pm2m5dm5jw6lxuq6p","mt_cid":"mtm3yntdfumw5eb0"},{"name":"\u9875\u9762","canvas_key":"rcUVFLjMFQpE7rWs","pm_cid":"pm2m5dm5jw6lxuq6p","mt_cid":"mtm3yntdfumw5eb0"},{"name":"\u9875\u9762","canvas_key":"rcUVFLjMykFsNa6n","pm_cid":"pm2m5dm5jw6lxuq6p","mt_cid":"mtm3yntdfumw5eb0"},{"name":"\u9875\u9762","canvas_key":"rcUVFLjNbDV78aMe","pm_cid":"pm2m5dm5jw6lxuq6p","mt_cid":"mtm3yntdfumw5eb0"},{"name":"\u9875\u9762","canvas_key":"rcUVFLjNy9Md66zp","pm_cid":"pm2m5dm5jw6lxuq6p","mt_cid":"mtm3yntdfumw5eb0"},{"name":"\u9875\u9762","canvas_key":"rcUVFLjOFU2qTcif","pm_cid":"pm2m5dm5jw6lxuq6p","mt_cid":"mtm3yntdfumw5eb0"},{"name":"\u9875\u9762","canvas_key":"rcUVFLjOkrsBv5Lh","pm_cid":"pm2m5dm5jw6lxuq6p","mt_cid":"mtm3yntdfumw5eb0"},{"name":"\u9875\u9762","canvas_key":"rcUVFLjPDGvy7Ec5","pm_cid":"pm2m5dm5jw6lxuq6p","mt_cid":"mtm3yntdfumw5eb0"},{"name":"\u9875\u9762","canvas_key":"rcUVFLjQYHqof7zi","pm_cid":"pm2m5dm5jw6lxuq6p","mt_cid":"mtm3yntdfumw5eb0"},{"name":"\u9875\u9762","canvas_key":"rcUVFLjRnFUbjiz4","pm_cid":"pm2m5dm5jw6lxuq6p","mt_cid":"mtm3yntdfumw5eb0"},{"name":"\u9875\u9762","canvas_key":"rcUVFLjSXegVdsn9","pm_cid":"pm2m5dm5jw6lxuq6p","mt_cid":"mtm3yntdfumw5eb0"},{"name":"\u9875\u9762","canvas_key":"rcUVFLjTLUSJaBxi","pm_cid":"pm2m5dm5jw6lxuq6p","mt_cid":"mtm3yntdfumw5eb0"},{"name":"\u9875\u9762","canvas_key":"rcUVFLjTryEdcdQv","pm_cid":"pm2m5dm5jw6lxuq6p","mt_cid":"mtm3yntdfumw5eb0"},{"name":"\u9875\u9762","canvas_key":"rcUVFLjUJyy4hoiY","pm_cid":"pm2m5dm5jw6lxuq6p","mt_cid":"mtm3yntdfumw5eb0"},{"name":"\u9875\u9762","canvas_key":"rcUVFLjVj8OuNz3b","pm_cid":"pm2m5dm5jw6lxuq6p","mt_cid":"mtm3yntdfumw5eb0"},{"name":"\u9875\u9762","canvas_key":"rcUVFLjWop4S96Ck","pm_cid":"pm2m5dm5jw6lxuq6p","mt_cid":"mtm3yntdfumw5eb0"},{"name":"\u9875\u9762","canvas_key":"rcUVFLjXXOg4nPwX","pm_cid":"pm2m5dm5jw6lxuq6p","mt_cid":"mtm3yntdfumw5eb0"}],"\u6211\u7684":[{"name":"1","canvas_key":"rcUGfiGwQRsaTKjh","pm_cid":"pm2m7v7kjngueei55","mt_cid":"mtlxu27i7i4pecqr"},{"name":"2","canvas_key":"rcUGfiGwUGfiZYCS50Fjyd","pm_cid":"pm2m7v7kjngueei55","mt_cid":"mtlxu27i7i4pecqr"},{"name":"3","canvas_key":"rcUGfiGwUGfnPYfmRwsFNB","pm_cid":"pm2m7v7kjngueei55","mt_cid":"mtlxu27i7i4pecqr"},{"name":"6","canvas_key":"rcUGfiGwUGft5TynOAVSUC","pm_cid":"pm2m7v7kjngueei55","mt_cid":"mtlxu27i7i4pecqr"},{"name":"5","canvas_key":"rcUGfiGwUGfxW0nGONkLZ1","pm_cid":"pm2m7v7kjngueei55","mt_cid":"mtlxu27i7i4pecqr"},{"name":"4","canvas_key":"rcUGfiGwUGg055R6eYZqWV","pm_cid":"pm2m7v7kjngueei55","mt_cid":"mtlxu27i7i4pecqr"},{"name":"7","canvas_key":"rcUGfiGwUGg5ajlwev8tYh","pm_cid":"pm2m7v7kjngueei55","mt_cid":"mtlxu27i7i4pecqr"},{"name":"8","canvas_key":"rcUGfiGwUGg9XA9oB0ydNu","pm_cid":"pm2m7v7kjngueei55","mt_cid":"mtlxu27i7i4pecqr"},{"name":"9","canvas_key":"rcUGfiGwUGggAJ5LuoQGqd","pm_cid":"pm2m7v7kjngueei55","mt_cid":"mtlxu27i7i4pecqr"},{"name":"10","canvas_key":"rcUGfiGwUGgn1navHiQUkA","pm_cid":"pm2m7v7kjngueei55","mt_cid":"mtlxu27i7i4pecqr"},{"name":"1 1","canvas_key":"rcUGfiGwUXYbjzQc6GgRsL","pm_cid":"pm2m7v7kjngueei55","mt_cid":"mtlxu27i7i4pecqr"},{"name":"\u4F1A\u5458\u4E2D\u5FC3","canvas_key":"rcUGfiGwUGft5TynOAVSUC","pm_cid":"pm2lxvk1sw532xjt5","mt_cid":"mtlxvk1sw73eqfq4"},{"name":"\u4F1A\u5458\u4E2D\u5FC3","canvas_key":"rcUGfiGwUGlTmPZqfTUnKj","pm_cid":"pm2lxvk1sw532xjt5","mt_cid":"mtlxvk1sw73eqfq4"},{"name":"\u4F1A\u5458\u4E2D\u5FC3","canvas_key":"rcUGfiGwUGlXliM1HGWDab","pm_cid":"pm2lxvk1sw532xjt5","mt_cid":"mtlxvk1sw73eqfq4"},{"name":"\u4F1A\u5458\u4E2D\u5FC3","canvas_key":"rcUGfiGwUGlYqCdEP31NHQ","pm_cid":"pm2lxvk1sw532xjt5","mt_cid":"mtlxvk1sw73eqfq4"},{"name":"\u4F1A\u5458\u4E2D\u5FC3","canvas_key":"rcUGfiGwUGld6Tzlhv5Lii","pm_cid":"pm2lxvk1sw532xjt5","mt_cid":"mtlxvk1sw73eqfq4"},{"name":"\u4F1A\u5458\u4E2D\u5FC3-\u8D2D\u4E70","canvas_key":"rcUGfiGwUGlkdDWxXx3r8o","pm_cid":"pm2lxvk1sw532xjt5","mt_cid":"mtlxvk1sw73eqfq4"},{"name":"\u4F1A\u5458\u4E2D\u5FC3-\u672A\u5F00\u901A","canvas_key":"rcUGfiGwUGllvlb1O1qLif","pm_cid":"pm2lxvk1sw532xjt5","mt_cid":"mtlxvk1sw73eqfq4"},{"name":"\u4F1A\u5458\u4E2D\u5FC3-\u5DF2\u5F00\u901A","canvas_key":"rcUGfiGwUGlzRl52cHx8K5","pm_cid":"pm2lxvk1sw532xjt5","mt_cid":"mtlxvk1sw73eqfq4"},{"name":"\u4F1A\u5458\u4E2D\u5FC3-\u672A\u5F00\u901A","canvas_key":"rcUGfiGwUGmWU5N3OdawQR","pm_cid":"pm2lxvk1sw532xjt5","mt_cid":"mtlxvk1sw73eqfq4"},{"name":"\u4F1A\u5458\u4E2D\u5FC3-\u5DF2\u5F00\u901A","canvas_key":"rcUGfiGwUGmbXyGVnrzIIy","pm_cid":"pm2lxvk1sw532xjt5","mt_cid":"mtlxvk1sw73eqfq4"},{"name":"\u4F1A\u5458\u4E2D\u5FC3-\u672A\u5F00\u901A","canvas_key":"rcUGfiGwUGmcrbmH10T1Zy","pm_cid":"pm2lxvk1sw532xjt5","mt_cid":"mtlxvk1sw73eqfq4"},{"name":"\u4F1A\u5458\u4E2D\u5FC3- \u5DF2\u5F00\u901A","canvas_key":"rcUGfiGwUGmlOBfdL9la4X","pm_cid":"pm2lxvk1sw532xjt5","mt_cid":"mtlxvk1sw73eqfq4"},{"name":"\u4F1A\u5458\u4E2D\u5FC3-\u8D2D\u4E70","canvas_key":"rcUGfiGwUGmmRcQaTX6WvI","pm_cid":"pm2lxvk1sw532xjt5","mt_cid":"mtlxvk1sw73eqfq4"},{"name":"\u4F1A\u5458\u4E2D\u5FC3 1","canvas_key":"rcUGfiGwUGmmadSwkn98f2","pm_cid":"pm2lxvk1sw532xjt5","mt_cid":"mtlxvk1sw73eqfq4"},{"name":"\u4F1A\u5458\u4E2D\u5FC3 2","canvas_key":"rcUGfiGwUGmu6VQrcDEAdR","pm_cid":"pm2lxvk1sw532xjt5","mt_cid":"mtlxvk1sw73eqfq4"},{"name":"\u4F1A\u5458\u4E2D\u5FC3 3","canvas_key":"rcUGfiGwUGmvty7Mfttspx","pm_cid":"pm2lxvk1sw532xjt5","mt_cid":"mtlxvk1sw73eqfq4"},{"name":"\u4F1A\u5458\u4E2D\u5FC3-\u5DF2\u5F00\u901A\u5206\u9500","canvas_key":"sskvc2ghTtC95gNlmCrgmv","pm_cid":"pkvc2ghlfqg7irt","mt_cid":"mtkvc2gho25nyw3s"},{"name":"\u4F1A\u5458\u4E2D\u5FC3--\u672A\u5F00\u901A\u5206\u9500","canvas_key":"sskvc2ghTtC95gmaPZFS3Y","pm_cid":"pkvc2ghlfqg7irt","mt_cid":"mtkvc2gho25nyw3s"},{"name":"\u4F1A\u5458\u4E2D\u5FC3--\u672A\u5F00\u901A\u4F1A\u5458 Copy","canvas_key":"sskvc2ghTtC95h0hnpDDLX","pm_cid":"pkvc2ghlfqg7irt","mt_cid":"mtkvc2gho25nyw3s"},{"name":"\u4F1A\u5458\u4E2D\u5FC3-\u5DF2\u5F00\u901A\u5206\u9500 \u529F\u80FD1","canvas_key":"sskvc2ghTtC95hEDKvRd9j","pm_cid":"pkvc2ghlfqg7irt","mt_cid":"mtkvc2gho25nyw3s"},{"name":"\u4F1A\u5458\u4E2D\u5FC3-\u5DF2\u5F00\u901A\u5206\u9500 \u529F\u80FD2","canvas_key":"sskvc2ghTtC95hVQwJKv7S","pm_cid":"pkvc2ghlfqg7irt","mt_cid":"mtkvc2gho25nyw3s"},{"name":"\u4F1A\u5458\u4E2D\u5FC3-\u5DF2\u5F00\u901A\u5206\u9500 \u529F\u80FD3","canvas_key":"sskvc2ghTtC95hiAsol2GO","pm_cid":"pkvc2ghlfqg7irt","mt_cid":"mtkvc2gho25nyw3s"},{"name":"\u8D2D\u4E70\u4F1A\u5458","canvas_key":"sskvc2ghTtC95htq0UCLtP","pm_cid":"pkvc2ghlfqg7irt","mt_cid":"mtkvc2gho25nyw3s"},{"name":"\u5168\u5458\u5206\u9500\u6A21\u5F0F","canvas_key":"sskvc2ghTtC95iOSRDCm8o","pm_cid":"pkvc2ghlfqg7irt","mt_cid":"mtkvc2gho25nyw3s"},{"name":"\u7533\u8BF7\u5206\u9500\u6A21\u5F0F","canvas_key":"sskvc2ghTtC95k3KGQDgAn","pm_cid":"pkvc2ghlfqg7irt","mt_cid":"mtkvc2gho25nyw3s"},{"name":"\u7533\u8BF7\u5206\u9500\u6A21\u5F0F","canvas_key":"sskvc2ghTtC95lVdl515eS","pm_cid":"pkvc2ghlfqg7irt","mt_cid":"mtkvc2gho25nyw3s"},{"name":"\u5168\u5458\u5206\u9500\u6A21\u5F0F","canvas_key":"sskvc2ghTtC95mgxfuBz9v","pm_cid":"pkvc2ghlfqg7irt","mt_cid":"mtkvc2gho25nyw3s"},{"name":"\u4E2A\u4EBA\u4E3B\u9875","canvas_key":"rcUDnvUzDdI66BXT","pm_cid":"pm2lxq36xsrwygz9y","mt_cid":"mtlwnucmbp5lpzvu"},{"name":"\u4E2A\u4EBA\u4E3B\u9875","canvas_key":"rcUDoCeFesc4W8hs","pm_cid":"pm2lxq36xsrwygz9y","mt_cid":"mtlwnucmbp5lpzvu"},{"name":"\u4E2A\u4EBA\u4E3B\u9875","canvas_key":"rcUDoIDFV5LILvT","pm_cid":"pm2lxq36xsrwygz9y","mt_cid":"mtlwnucmbp5lpzvu"},{"name":"\u4E2A\u4EBA\u4E3B\u9875 ","canvas_key":"rcUDoIDFUDrhO4j2JYnNl7","pm_cid":"pm2lxq36xsrwygz9y","mt_cid":"mtlwnucmbp5lpzvu"},{"name":"\u4E2A\u4EBA\u4E3B\u9875","canvas_key":"rcUDoCeFUDrtY69Kg2iUpC","pm_cid":"pm2lxq36xsrwygz9y","mt_cid":"mtlwnucmbp5lpzvu"},{"name":"\u4E2A\u4EBA\u4E3B\u9875","canvas_key":"rcUDoCeFUDrzq8coKRf0dY","pm_cid":"pm2lxq36xsrwygz9y","mt_cid":"mtlwnucmbp5lpzvu"},{"name":"\u4E2A\u4EBA\u4E3B\u9875","canvas_key":"rcUDoCeFUDsB5VwgQL1abc","pm_cid":"pm2lxq36xsrwygz9y","mt_cid":"mtlwnucmbp5lpzvu"},{"name":"\u4E2A\u4EBA\u4E3B\u9875","canvas_key":"rcUDoCeFUDsPhST6dYZQK2","pm_cid":"pm2lxq36xsrwygz9y","mt_cid":"mtlwnucmbp5lpzvu"},{"name":"\u4E2A\u4EBA\u4E3B\u9875","canvas_key":"rcUDseUYTpVdFQl7","pm_cid":"pm2lxq36xsrwygz9y","mt_cid":"mtlwnucmbp5lpzvu"},{"name":"\u4E2A\u4EBA\u4E3B\u9875","canvas_key":"rcUDoCeFUDt2yQcaOoKZ9D","pm_cid":"pm2lxq36xsrwygz9y","mt_cid":"mtlwnucmbp5lpzvu"},{"name":"\u4E2A\u4EBA\u4E3B\u9875","canvas_key":"rcUDoCeFUDt9cX6vPXw0GO","pm_cid":"pm2lxq36xsrwygz9y","mt_cid":"mtlwnucmbp5lpzvu"},{"name":"\u4E2A\u4EBA\u4E3B\u9875","canvas_key":"rcUDoCeFUDtLLctqsoJwrl","pm_cid":"pm2lxq36xsrwygz9y","mt_cid":"mtlwnucmbp5lpzvu"},{"name":"\u4E2A\u4EBA\u4E3B\u9875","canvas_key":"rcUDoCeFUDtTv9osc9HXNr","pm_cid":"pm2lxq36xsrwygz9y","mt_cid":"mtlwnucmbp5lpzvu"},{"name":"\u4E2A\u4EBA\u4E3B\u9875","canvas_key":"rcUDoCeFUDtt7LNsxG9oBi","pm_cid":"pm2lxq36xsrwygz9y","mt_cid":"mtlwnucmbp5lpzvu"},{"name":"\u4E2A\u4EBA\u4E3B\u9875","canvas_key":"rcUDseUYUDtxF04z1NOXaQ","pm_cid":"pm2lxq36xsrwygz9y","mt_cid":"mtlwnucmbp5lpzvu"},{"name":"\u4E2A\u4EBA\u4E3B\u9875","canvas_key":"rcUDoCeFUDtyiRd9ROqppw","pm_cid":"pm2lxq36xsrwygz9y","mt_cid":"mtlwnucmbp5lpzvu"},{"name":"\u4E2A\u4EBA\u4E3B\u9875","canvas_key":"rcUDoIDFUDtzq30dMVHFTu","pm_cid":"pm2lxq36xsrwygz9y","mt_cid":"mtlwnucmbp5lpzvu"},{"name":"\u4E2A\u4EBA\u4E3B\u9875","canvas_key":"rcUDoIDFUDu0nN2oTiukIM","pm_cid":"pm2lxq36xsrwygz9y","mt_cid":"mtlwnucmbp5lpzvu"},{"name":"\u4E2A\u4EBA\u4E3B\u9875","canvas_key":"rcUDoCeFUDu1eRcbQGGTwg","pm_cid":"pm2lxq36xsrwygz9y","mt_cid":"mtlwnucmbp5lpzvu"},{"name":"\u4E2A\u4EBA\u4E3B\u9875","canvas_key":"rcUDoCeFUDu2EzZpMKw0It","pm_cid":"pm2lxq36xsrwygz9y","mt_cid":"mtlwnucmbp5lpzvu"},{"name":"\u4E2A\u4EBA\u4E2D\u5FC3-\u6559\u80B2","canvas_key":"sskb3i9eTtBuWBeF4AhpWa","pm_cid":"pkb3i9e6djfu9nc","mt_cid":"mtkb3i9e6l946h6n"},{"name":"\u4E2A\u4EBA\u4E2D\u5FC3-\u8BB0\u5355\u8BCD","canvas_key":"sskb3i9eTtBuWC6stMsMA2","pm_cid":"pkb3i9e6djfu9nc","mt_cid":"mtkb3i9e6l946h6n"},{"name":"\u4E2A\u4EBA\u4E2D\u5FC3-\u7F51\u6821","canvas_key":"sskb3i9eTtBuWCktJ9Bzqv","pm_cid":"pkb3i9e6djfu9nc","mt_cid":"mtkb3i9e6l946h6n"},{"name":"\u4E2A\u4EBA\u4E2D\u5FC3-\u9AD8\u8003\u7F51\u6821","canvas_key":"sskb3i9eTtBuWDD5UB0K0h","pm_cid":"pkb3i9e6djfu9nc","mt_cid":"mtkb3i9e6l946h6n"},{"name":"\u4E2A\u4EBA\u4E2D\u5FC3-\u8D85\u5E02\u7535\u5546","canvas_key":"sskb3i9eTtBuWDghfaCJD5","pm_cid":"pkb3i9e6djfu9nc","mt_cid":"mtkb3i9e6l946h6n"},{"name":"\u4E2A\u4EBA\u4E2D\u5FC3-\u5206\u4EAB\u7535\u5546","canvas_key":"sskb3i9eTtBuWEIeCsvSUC","pm_cid":"pkb3i9e6djfu9nc","mt_cid":"mtkb3i9e6l946h6n"},{"name":"\u4E2A\u4EBA\u4E2D\u5FC3-\u7535\u5546\uFF08\u672A\u767B\u5F55\uFF09","canvas_key":"sskb3i9eTtBuWEz66p3qhW","pm_cid":"pkb3i9e6djfu9nc","mt_cid":"mtkb3i9e6l946h6n"},{"name":"\u4E2A\u4EBA\u4E2D\u5FC3-\u793E\u4EA41","canvas_key":"sskb3i9eTtBuWFdC7PhwY4","pm_cid":"pkb3i9e6djfu9nc","mt_cid":"mtkb3i9e6l946h6n"},{"name":"\u4E2A\u4EBA\u4E2D\u5FC3-\u793E\u4EA43","canvas_key":"sskb3i9eTtBuWG7pCnapwC","pm_cid":"pkb3i9e6djfu9nc","mt_cid":"mtkb3i9e6l946h6n"},{"name":"\u4E2A\u4EBA\u4E2D\u5FC3-\u793E\u4EA42","canvas_key":"sskb3i9eTtBuWGhW1QJ02P","pm_cid":"pkb3i9e6djfu9nc","mt_cid":"mtkb3i9e6l946h6n"},{"name":"\u4E2A\u4EBA\u4E2D\u5FC3-\u76F4\u64AD2","canvas_key":"sskb3i9eTtBuWHEPnUl9dH","pm_cid":"pkb3i9e6djfu9nc","mt_cid":"mtkb3i9e6l946h6n"},{"name":"\u4E2A\u4EBA\u4E2D\u5FC3-\u76F4\u64AD1","canvas_key":"sskb3i9eTtBuWHpBEHQuLk","pm_cid":"pkb3i9e6djfu9nc","mt_cid":"mtkb3i9e6l946h6n"},{"name":"\u4E2A\u4EBA\u4E2D\u5FC3-\u91D1\u878D1","canvas_key":"sskb3i9eTtBuWINgEfHrKG","pm_cid":"pkb3i9e6djfu9nc","mt_cid":"mtkb3i9e6l946h6n"},{"name":"\u4E2A\u4EBA\u4E2D\u5FC3-\u91D1\u878D2","canvas_key":"sskb3i9eTtBuWIxqwrhDJA","pm_cid":"pkb3i9e6djfu9nc","mt_cid":"mtkb3i9e6l946h6n"},{"name":"\u76D2\u9A6C","canvas_key":"rcUO1sf1x3QlV7QF","pm_cid":"pm2m7eouobgaypgtu","mt_cid":"mtm24fhcwsjobz21"},{"name":"\u5C71\u59C6","canvas_key":"rcUMGJ9dUP9ZUzCs1Q7Esk","pm_cid":"pm2m7eouobgaypgtu","mt_cid":"mtm24fhcwsjobz21"},{"name":"\u6296\u97F3","canvas_key":"rcUO1siC9v250qx2","pm_cid":"pm2m7eouobgaypgtu","mt_cid":"mtm24fhcwsjobz21"},{"name":"\u6DD8\u5B9D","canvas_key":"rcUO1sjUXE2Jnsyw","pm_cid":"pm2m7eouobgaypgtu","mt_cid":"mtm24fhcwsjobz21"},{"name":"\u5F97\u5230","canvas_key":"rcUO1sk8njQkgp2Z","pm_cid":"pm2m7eouobgaypgtu","mt_cid":"mtm24fhcwsjobz21"},{"name":"\u652F\u4ED8\u5B9D","canvas_key":"rcUO1snvNQAHB2no","pm_cid":"pm2m7eouobgaypgtu","mt_cid":"mtm24fhcwsjobz21"},{"name":"\u95F2\u9C7C","canvas_key":"rcUO1sozxnjJLAHY","pm_cid":"pm2m7eouobgaypgtu","mt_cid":"mtm24fhcwsjobz21"},{"name":"\u53BB\u54EA\u7F51","canvas_key":"rcUO1svaaSzNk2lV","pm_cid":"pm2m7eouobgaypgtu","mt_cid":"mtm24fhcwsjobz21"},{"name":"\u7F8E\u56E2","canvas_key":"rcUO1sxqxUKXt4UU","pm_cid":"pm2m7eouobgaypgtu","mt_cid":"mtm24fhcwsjobz21"},{"name":"\u5927\u4F17\u70B9\u8BC4","canvas_key":"rcUO1sz5D2UbyqBD","pm_cid":"pm2m7eouobgaypgtu","mt_cid":"mtm24fhcwsjobz21"},{"name":"\u730E\u8058","canvas_key":"rcUO1tELf6y6tGSe","pm_cid":"pm2m7eouobgaypgtu","mt_cid":"mtm24fhcwsjobz21"},{"name":"\u997F\u4E86\u4E48","canvas_key":"rcUO1tGut7vX4xES","pm_cid":"pm2m7eouobgaypgtu","mt_cid":"mtm24fhcwsjobz21"},{"name":"\u4EAC\u4E1C","canvas_key":"rcUQs4lUKvcOvtbm","pm_cid":"pm2m7eouobgaypgtu","mt_cid":"mtm24fhcwsjobz21"},{"name":"\u5FAE\u4FE1","canvas_key":"rcUO1smfSd5yD00J","pm_cid":"pm2m7eouobgaypgtu","mt_cid":"mtm24fhcwsjobz21"},{"name":"\u5C0F\u7EA2\u4E66","canvas_key":"rcUO1skldMhwBx8a","pm_cid":"pm2m7eouobgaypgtu","mt_cid":"mtm24fhcwsjobz21"},{"name":"\u667A\u8054","canvas_key":"rcUO1sklUPMV7xy1WHz6v9","pm_cid":"pm2m7eouobgaypgtu","mt_cid":"mtm24fhcwsjobz21"},{"name":"\u5B66\u4E60\u5F3A\u56FD","canvas_key":"rcUSfNwrUTy88YKjVhphAa","pm_cid":"pm2m7eouobgaypgtu","mt_cid":"mtm24fhcwsjobz21"},{"name":"\u79EF\u5206","canvas_key":"rcUT8MQ0UTy88YKyHhW8wV","pm_cid":"pm2m7eouobgaypgtu","mt_cid":"mtm24fhcwsjobz21"},{"name":"\u7231\u5EB7\u56FD\u5BBE","canvas_key":"rcUUB5pRUdwJTPxD","pm_cid":"pm2m7eouobgaypgtu","mt_cid":"mtm24fhcwsjobz21"},{"name":"\u5927\u9EA6\u7F51","canvas_key":"rcUWJSIWJM3LHX1b","pm_cid":"pm2m7eouobgaypgtu","mt_cid":"mtm24fhcwsjobz21"},{"name":"\u8D1D\u58F3\u627E\u623F","canvas_key":"rcUWJWkOuUjr02yq","pm_cid":"pm2m7eouobgaypgtu","mt_cid":"mtm24fhcwsjobz21"},{"name":"\u6EF4\u6EF4\u6253\u8F66","canvas_key":"rcUWJdFS4oBbZtKF","pm_cid":"pm2m7eouobgaypgtu","mt_cid":"mtm24fhcwsjobz21"},{"name":"\u745E\u5E78\u5496\u5561","canvas_key":"rcUWLadlw2gmWK5R","pm_cid":"pm2m7eouobgaypgtu","mt_cid":"mtm24fhcwsjobz21"},{"name":"\u987A\u4E30\u5FEB\u9012","canvas_key":"rcUWQD9h1ItHa9aP","pm_cid":"pm2m7eouobgaypgtu","mt_cid":"mtm24fhcwsjobz21"},{"name":"\u9EA6\u5F53\u52B3","canvas_key":"rcUWQERhbYyPyMc3","pm_cid":"pm2m7eouobgaypgtu","mt_cid":"mtm24fhcwsjobz21"},{"name":"\u7F8E\u7684\u7F8E\u5C45","canvas_key":"rcUU4n4AUWDrJLhEkrPtKg","pm_cid":"pm2m7eouobgaypgtu","mt_cid":"mtm24fhcwsjobz21"},{"name":"\u8363\u8000\u8FD0\u52A8\u5065\u5EB7","canvas_key":"rcUU6ksQUU6qchMNRUuTKp","pm_cid":"pm2m7eouobgaypgtu","mt_cid":"mtm24fhcwsjobz21"}],"\u5217\u8868\u9875":[{"name":"\u5206\u7C7B\u5217\u8868","canvas_key":"ssl34e4eTtCAwkAf2wMx3U","pm_cid":"pl34e4emir8csbk","mt_cid":"mtl34e4exhdy035h"},{"name":"\u6559\u5E08\u63A8\u8350","canvas_key":"ssl34e4eTtCAwkWPq0qrvI","pm_cid":"pl34e4emir8csbk","mt_cid":"mtl34e4exhdy035h"},{"name":"\u8BFE\u7A0B\u5217\u8868","canvas_key":"ssl34e4eTtCAwl9ZQNA0nv","pm_cid":"pl34e4emir8csbk","mt_cid":"mtl34e4exhdy035h"},{"name":"\u8BFE\u7A0B\u63A8\u8350","canvas_key":"ssl34e4eTtCAwlWKaf6kEf","pm_cid":"pl34e4emir8csbk","mt_cid":"mtl34e4exhdy035h"},{"name":"\u4EA7\u54C1\u63A8\u8350","canvas_key":"ssl332ccTtCAu80ucb93TW","pm_cid":"pl332ccdnypenhd","mt_cid":"mtl332ccsb4wyvry"},{"name":"\u4EBA\u7269\u63A8\u8350","canvas_key":"ssl332ccTtCAu8KAsssLZt","pm_cid":"pl332ccdnypenhd","mt_cid":"mtl332ccsb4wyvry"},{"name":"\u5217\u8868","canvas_key":"ssl332ccTtCAu8Zvk7bU4B","pm_cid":"pl332ccdnypenhd","mt_cid":"mtl332ccsb4wyvry"},{"name":"\u5217\u88681","canvas_key":"ssl332ccTtCAu8t2z6pqW1","pm_cid":"pl332ccdnypenhd","mt_cid":"mtl332ccsb4wyvry"},{"name":"\u5217\u88682","canvas_key":"ssl332ccTtCAu92lLmd0gp","pm_cid":"pl332ccdnypenhd","mt_cid":"mtl332ccsb4wyvry"},{"name":"\u5217\u88683","canvas_key":"ssl332ccTtCAu98lGlHNvf","pm_cid":"pl332ccdnypenhd","mt_cid":"mtl332ccsb4wyvry"},{"name":"\u699C\u5355\u63A8\u8350","canvas_key":"ssl332ccTtCAu9GlD1YjOj","pm_cid":"pl332ccdnypenhd","mt_cid":"mtl332ccsb4wyvry"},{"name":"\u4ECA\u65E5\u63A8\u8350","canvas_key":"ssl332ccTtCAu9UtENbWwU","pm_cid":"pl332ccdnypenhd","mt_cid":"mtl332ccsb4wyvry"},{"name":"\u7535\u5F71\u63A8\u8350","canvas_key":"ssl332ccTtCAu9ilRB8aRw","pm_cid":"pl332ccdnypenhd","mt_cid":"mtl332ccsb4wyvry"},{"name":"\u4EA7\u54C1\u5217\u8868","canvas_key":"ssl332ccTtCAu9tqMGF2Gq","pm_cid":"pl332ccdnypenhd","mt_cid":"mtl332ccsb4wyvry"},{"name":"\u9650\u65F6\u62A2\u8D2D","canvas_key":"ssl34ewrTtCAxvhBUSS027","pm_cid":"pl34ewrqebixd3i","mt_cid":"mtl34ewrz5ju6luz"},{"name":"\u4EA7\u54C1\u5217\u8868-\u72B6\u6001 1","canvas_key":"ssl34ewrTtCAxwLJ7cdipV","pm_cid":"pl34ewrqebixd3i","mt_cid":"mtl34ewrz5ju6luz"},{"name":"\u4EA7\u54C1\u5217\u8868-\u72B6\u6001 2","canvas_key":"ssl34ewrTtCAxwsr5OkxIb","pm_cid":"pl34ewrqebixd3i","mt_cid":"mtl34ewrz5ju6luz"},{"name":"\u4EA7\u54C1\u5217\u88681-\u72B6\u6001 1","canvas_key":"ssl34fw4TtCAyxVvNgvrjz","pm_cid":"pl34fw43jswf0e1","mt_cid":"mtl34fw4cvz9n0mi"},{"name":"\u4EA7\u54C1\u5217\u88681-\u72B6\u6001 2","canvas_key":"ssl34fw4TtCAyxpNEX7vSO","pm_cid":"pl34fw43jswf0e1","mt_cid":"mtl34fw4cvz9n0mi"},{"name":"\u4EA7\u54C1\u5217\u88682-\u72B6\u6001 1","canvas_key":"ssl34fw4TtCAyybtTDQgDL","pm_cid":"pl34fw43jswf0e1","mt_cid":"mtl34fw4cvz9n0mi"},{"name":"\u4EA7\u54C1\u5217\u88682-\u72B6\u6001 2","canvas_key":"ssl34fw4TtCAyz84ecyT05","pm_cid":"pl34fw43jswf0e1","mt_cid":"mtl34fw4cvz9n0mi"},{"name":"\u63A8\u8350\u5217\u88683-\u72B6\u6001 1","canvas_key":"ssl34fw4TtCAyzn5cktFca","pm_cid":"pl34fw43jswf0e1","mt_cid":"mtl34fw4cvz9n0mi"},{"name":"\u63A8\u8350\u5217\u88683-\u72B6\u6001 2","canvas_key":"ssl34fw4TtCAz03xw6ITUh","pm_cid":"pl34fw43jswf0e1","mt_cid":"mtl34fw4cvz9n0mi"},{"name":"\u5E97\u94FA\u5217\u88684-\u9ED8\u8BA4","canvas_key":"ssl34fw4TtCAz1NdVETBVN","pm_cid":"pl34fw43jswf0e1","mt_cid":"mtl34fw4cvz9n0mi"},{"name":"\u5E97\u94FA\u5217\u88684-\u9644\u8FD1","canvas_key":"ssl34fw4TtCAz2PS77vR4P","pm_cid":"pl34fw43jswf0e1","mt_cid":"mtl34fw4cvz9n0mi"},{"name":"\u5E97\u94FA\u5217\u88684-\u7F8E\u98DF","canvas_key":"ssl34fw4TtCAz3TOj7Xw5p","pm_cid":"pl34fw43jswf0e1","mt_cid":"mtl34fw4cvz9n0mi"},{"name":"\u5E97\u94FA\u5217\u88684-\u6392\u5E8F","canvas_key":"ssl34fw4TtCAz4VoZiI6wL","pm_cid":"pl34fw43jswf0e1","mt_cid":"mtl34fw4cvz9n0mi"},{"name":"\u5E97\u94FA\u5217\u88684-\u7B5B\u9009","canvas_key":"ssl34fw4TtCAz5V1mpdGZs","pm_cid":"pl34fw43jswf0e1","mt_cid":"mtl34fw4cvz9n0mi"},{"name":"\u8BA2\u5355\u8BB0\u5F55","canvas_key":"rcUQmMjnUlvv0foHskHw4v","pm_cid":"pm2mb0firqt9wmzn6","mt_cid":"mtmazfwh2tugn1v9"},{"name":"\u8BA2\u5355\u8BB0\u5F55","canvas_key":"rcUQmMjnUlvvEVdGZINNd2","pm_cid":"pm2mb0firqt9wmzn6","mt_cid":"mtmazfwh2tugn1v9"},{"name":"\u5DE5\u5355\u8BA2\u5355\u5217\u8868","canvas_key":"sslewn6fUEdzjqQspINVs8","pm_cid":"pm2lxq3q5ya5wfsy8","mt_cid":"mtlx939tekzthuab"},{"name":"\u8BA2\u5355\u5217\u8868","canvas_key":"sslewn6fUEeN64jw5mJGN5","pm_cid":"pm2lxq3q5ya5wfsy8","mt_cid":"mtlx939tekzthuab"},{"name":"\u8BA2\u5355\u5217\u8868","canvas_key":"sslewn6fUEekexhM9jqOMh","pm_cid":"pm2lxq3q5ya5wfsy8","mt_cid":"mtlx939tekzthuab"},{"name":"\u8BA2\u5355\u5217\u8868","canvas_key":"sslewn6fUEpINZXqt1YHU","pm_cid":"pm2lxq3q5ya5wfsy8","mt_cid":"mtlx939tekzthuab"},{"name":"\u8BA2\u5355\u5217\u8868","canvas_key":"sslewn6fUEsyIcHYwdMlkq","pm_cid":"pm2lxq3q5ya5wfsy8","mt_cid":"mtlx939tekzthuab"},{"name":"\u8BA2\u5355\u5217\u8868","canvas_key":"sslewn6fUEwHnEO4v20WRS","pm_cid":"pm2lxq3q5ya5wfsy8","mt_cid":"mtlx939tekzthuab"},{"name":"\u8BA2\u5355\u5217\u8868","canvas_key":"sslewn6fUEwXLORExmz8ex","pm_cid":"pm2lxq3q5ya5wfsy8","mt_cid":"mtlx939tekzthuab"},{"name":"\u5145\u503C\u8BA2\u5355\u8BB0\u5F55","canvas_key":"sslewn6fUF71MbUAqaxBNZ","pm_cid":"pm2lxq3q5ya5wfsy8","mt_cid":"mtlx939tekzthuab"},{"name":"\u6536\u6B3E\u8BA2\u5355\u8BB0\u5F55","canvas_key":"sslewn6fUF7PJ8yqPz3F1t","pm_cid":"pm2lxq3q5ya5wfsy8","mt_cid":"mtlx939tekzthuab"},{"name":"\u63A5\u5355\u8BA2\u5355\u5217\u8868","canvas_key":"sslewn6fUF7WCh5FLc94Dk","pm_cid":"pm2lxq3q5ya5wfsy8","mt_cid":"mtlx939tekzthuab"},{"name":"\u7EF4\u4FEE\u8BA2\u5355\u5217\u8868","canvas_key":"sslewn6fUF7lYfXi6zisov","pm_cid":"pm2lxq3q5ya5wfsy8","mt_cid":"mtlx939tekzthuab"},{"name":"\u5DE5\u5355\u8BA2\u5355\u5217\u8868","canvas_key":"sslewn6fUF7sQPBm4bDPjA","pm_cid":"pm2lxq3q5ya5wfsy8","mt_cid":"mtlx939tekzthuab"},{"name":"\u8D2D\u4E70\u8BA2\u5355\u8BB0\u5F55","canvas_key":"sslewn6fUFDPIULTCIKtk5","pm_cid":"pm2lxq3q5ya5wfsy8","mt_cid":"mtlx939tekzthuab"},{"name":"\u5546\u54C1\u8BA2\u5355\u8BE6\u60C5","canvas_key":"rcUFDRgWgTwcksVR","pm_cid":"pm2lxq3q5ya5wfsy8","mt_cid":"mtlx939tekzthuab"},{"name":"\u8FD0\u8F93\u8BA2\u5355\u8BE6\u60C5 ","canvas_key":"rcUFDRgWUFDkcVnZ5HbF6k","pm_cid":"pm2lxq3q5ya5wfsy8","mt_cid":"mtlx939tekzthuab"},{"name":"\u70B9\u5355\u8BA2\u5355\u8BE6\u60C5","canvas_key":"rcUFDRgWUFDr0FLRc7VHM3","pm_cid":"pm2lxq3q5ya5wfsy8","mt_cid":"mtlx939tekzthuab"},{"name":"\u56E2\u8D2D\u8BA2\u5355\u8BE6\u60C5","canvas_key":"rcUFDRgWUFHreNusVc7upT","pm_cid":"pm2lxq3q5ya5wfsy8","mt_cid":"mtlx939tekzthuab"},{"name":"\u70B9\u5355\u8BA2\u5355\u8BE6\u60C5 ","canvas_key":"rcUFDRgWUFI7mL2uuYHvCp","pm_cid":"pm2lxq3q5ya5wfsy8","mt_cid":"mtlx939tekzthuab"},{"name":"\u5145\u7535\u8BA2\u5355\u8BE6\u60C5","canvas_key":"rcUFDRgWUFIRvtlnd1EBbi","pm_cid":"pm2lxq3q5ya5wfsy8","mt_cid":"mtlx939tekzthuab"},{"name":"\u5DE5\u5355\u8BA2\u5355\u8BE6\u60C5","canvas_key":"rcUFDRgWUFIvCOLDBX5U9r","pm_cid":"pm2lxq3q5ya5wfsy8","mt_cid":"mtlx939tekzthuab"}],"\u641C\u7D22":[{"name":"\u641C\u7D22\u9875-1","canvas_key":"sslllotrTtDAOQxeCxIhWx","pm_cid":"pllm4lydtf4hvkl","mt_cid":"mtllm4lype7uw5pi"},{"name":"\u641C\u7D22\u9875-2","canvas_key":"sslllotrTtDAORKzeYQX1y","pm_cid":"pllm4lydtf4hvkl","mt_cid":"mtllm4lype7uw5pi"},{"name":"\u6BCD\u7248\u9875","canvas_key":"sslllov0TtDAORkHLPEYSW","pm_cid":"pllm4lydtf4hvkl","mt_cid":"mtllm4lype7uw5pi"},{"name":"\u641C\u7D22\u9875-3","canvas_key":"sslllvraTtDAOTqlaGm3J7","pm_cid":"pllm4lydtf4hvkl","mt_cid":"mtllm4lype7uw5pi"},{"name":"\u641C\u7D22\u9875-4","canvas_key":"ssllm24fTtDAOUGN7n0mIB","pm_cid":"pllm4lydtf4hvkl","mt_cid":"mtllm4lype7uw5pi"},{"name":"\u641C\u7D22\u9875-5","canvas_key":"ssllm24gTtDAOUnLpvzOCx","pm_cid":"pllm4lydtf4hvkl","mt_cid":"mtllm4lype7uw5pi"},{"name":"\u641C\u7D22\u6846-\u6846-\u767D\u5E95","canvas_key":"ssl331fyTtCAs8ugisGGMh","pm_cid":"pl331fy0yp5unv8","mt_cid":"mtl331fyheipf0wu"},{"name":"\u641C\u7D22\u6846-\u7EBF-\u767D\u5E95","canvas_key":"ssl331fyTtCAs956L0PxM","pm_cid":"pl331fy0yp5unv8","mt_cid":"mtl331fyheipf0wu"},{"name":"\u641C\u7D22\u6846-\u6846-\u5F69\u8272","canvas_key":"ssl331fyTtCAs9Dt9FLoLk","pm_cid":"pl331fy0yp5unv8","mt_cid":"mtl331fyheipf0wu"},{"name":"\u641C\u7D22\u680F-\u5F69\u8272","canvas_key":"ssl331fyTtCAs9K8arVk89","pm_cid":"pl331fy0yp5unv8","mt_cid":"mtl331fyheipf0wu"},{"name":"\u641C\u7D22\u680F-\u767D\u5E95","canvas_key":"ssl331fyTtCAs9RzsXkp58","pm_cid":"pl331fy0yp5unv8","mt_cid":"mtl331fyheipf0wu"},{"name":"\u641C\u7D22\u7ED3\u679C\u4E3A\u7A7A","canvas_key":"ssl331fyTtCAs9YVpvnzWG","pm_cid":"pl331fy0yp5unv8","mt_cid":"mtl331fyheipf0wu"},{"name":"\u641C\u7D22\u680F-\u5DE6\u53F3\u56FE\u6807","canvas_key":"ssl331fyTtCAs9h984bHag","pm_cid":"pl331fy0yp5unv8","mt_cid":"mtl331fyheipf0wu"},{"name":"\u641C\u7D22\u680F-\u5730\u5740","canvas_key":"ssl331fyTtCAs9s2Br2Mcb","pm_cid":"pl331fy0yp5unv8","mt_cid":"mtl331fyheipf0wu"},{"name":"\u641C\u7D22\u680F-\u5934\u50CF+\u56FE\u6807","canvas_key":"ssl331fyTtCAsAMNz0SA5I","pm_cid":"pl331fy0yp5unv8","mt_cid":"mtl331fyheipf0wu"},{"name":"\u641C\u7D22\u680F-\u5730\u5740+\u56FE\u6807","canvas_key":"ssl331fyTtCAsAX2qudaOP","pm_cid":"pl331fy0yp5unv8","mt_cid":"mtl331fyheipf0wu"},{"name":"\u641C\u7D22\u680F-\u626B\u4E00\u626B","canvas_key":"ssl331fyTtCAsAhDdIWHKu","pm_cid":"pl331fy0yp5unv8","mt_cid":"mtl331fyheipf0wu"},{"name":"16","canvas_key":"sskhx42hTtBwm7LUFB3fwu","pm_cid":"pkhx42hnwqf2puf","mt_cid":"mtkhx42hqr63ujbi"},{"name":"17","canvas_key":"sskhx42hTtBwm7XaXEGRXf","pm_cid":"pkhx42hnwqf2puf","mt_cid":"mtkhx42hqr63ujbi"},{"name":"3","canvas_key":"sskhx42hTtBwm7pltLxiD8","pm_cid":"pkhx42hnwqf2puf","mt_cid":"mtkhx42hqr63ujbi"},{"name":"4","canvas_key":"sskhx42hTtBwm81OZjX649","pm_cid":"pkhx42hnwqf2puf","mt_cid":"mtkhx42hqr63ujbi"},{"name":"19","canvas_key":"sskhx42hTtBwm8Mb6cFD31","pm_cid":"pkhx42hnwqf2puf","mt_cid":"mtkhx42hqr63ujbi"},{"name":"20","canvas_key":"sskhx42hTtBwm8lEwrBJts","pm_cid":"pkhx42hnwqf2puf","mt_cid":"mtkhx42hqr63ujbi"},{"name":"7","canvas_key":"sskhx42hTtBwm8yk3n5PWR","pm_cid":"pkhx42hnwqf2puf","mt_cid":"mtkhx42hqr63ujbi"},{"name":"8","canvas_key":"sskhx42hTtBwm9L6piZntl","pm_cid":"pkhx42hnwqf2puf","mt_cid":"mtkhx42hqr63ujbi"},{"name":"9","canvas_key":"sskhx42hTtBwm9qk74kMSZ","pm_cid":"pkhx42hnwqf2puf","mt_cid":"mtkhx42hqr63ujbi"},{"name":"10","canvas_key":"sskhx42hTtBwmABEiXkFSN","pm_cid":"pkhx42hnwqf2puf","mt_cid":"mtkhx42hqr63ujbi"},{"name":"11","canvas_key":"sskhx42hTtBwmAWJobBMrK","pm_cid":"pkhx42hnwqf2puf","mt_cid":"mtkhx42hqr63ujbi"},{"name":"12","canvas_key":"sskhx42hTtBwmAyigNvNij","pm_cid":"pkhx42hnwqf2puf","mt_cid":"mtkhx42hqr63ujbi"},{"name":"13","canvas_key":"sskhx42hTtBwmBEuQxGVpx","pm_cid":"pkhx42hnwqf2puf","mt_cid":"mtkhx42hqr63ujbi"},{"name":"14","canvas_key":"sskhx42hTtBwmBlSMzzHgw","pm_cid":"pkhx42hnwqf2puf","mt_cid":"mtkhx42hqr63ujbi"},{"name":"15","canvas_key":"sskhx42hTtBwmByr4MyMal","pm_cid":"pkhx42hnwqf2puf","mt_cid":"mtkhx42hqr63ujbi"},{"name":"2","canvas_key":"sskhx42hTtBwmCPMmobTnu","pm_cid":"pkhx42hnwqf2puf","mt_cid":"mtkhx42hqr63ujbi"},{"name":"5","canvas_key":"sskhx42hTtBwmCcsag4WCc","pm_cid":"pkhx42hnwqf2puf","mt_cid":"mtkhx42hqr63ujbi"},{"name":"18","canvas_key":"sskhx42hTtBwmCyslYizEq","pm_cid":"pkhx42hnwqf2puf","mt_cid":"mtkhx42hqr63ujbi"},{"name":"6","canvas_key":"sskhx42hTtBwmDEEdiK451","pm_cid":"pkhx42hnwqf2puf","mt_cid":"mtkhx42hqr63ujbi"},{"name":"1","canvas_key":"sskhx42hTtBwmDfIRNbr5I","pm_cid":"pkhx42hnwqf2puf","mt_cid":"mtkhx42hqr63ujbi"},{"name":"\u641C\u7D22-\u7F51\u6613\u4E91\u8BFE\u5802","canvas_key":"ssk4s6teTtBtqVvT5PPprU","pm_cid":"pk4s6teaksl2cry","mt_cid":"mtk4s6teatmfmvxn"},{"name":"\u641C\u7D22-\u5F97\u5230-\u72B6\u6001 1","canvas_key":"ssk4s6teTtBtqWFXo8Aitb","pm_cid":"pk4s6teaksl2cry","mt_cid":"mtk4s6teatmfmvxn"},{"name":"\u641C\u7D22-\u5F97\u5230-\u72B6\u6001 2","canvas_key":"ssk4s6teTtBtqWQcJX0xx3","pm_cid":"pk4s6teaksl2cry","mt_cid":"mtk4s6teatmfmvxn"},{"name":"\u641C\u7D22-\u5FAE\u4FE1","canvas_key":"ssk4s6teTtBtqWidFNYjlB","pm_cid":"pk4s6teaksl2cry","mt_cid":"mtk4s6teatmfmvxn"},{"name":"\u641C\u7D22-\u6625\u96E8\u533B\u751F","canvas_key":"ssk4s6teTtBtqWwd5NAkCI","pm_cid":"pk4s6teaksl2cry","mt_cid":"mtk4s6teatmfmvxn"},{"name":"\u641C\u7D22-\u77E5\u4E4E","canvas_key":"ssk4s6teTtBtqXD9au5nTJ","pm_cid":"pk4s6teaksl2cry","mt_cid":"mtk4s6teatmfmvxn"},{"name":"\u641C\u7D22-\u4EAC\u4E1C","canvas_key":"ssk4s6teTtBtqXcjVuOmv3","pm_cid":"pk4s6teaksl2cry","mt_cid":"mtk4s6teatmfmvxn"},{"name":"\u641C\u7D22-\u81EA\u5982","canvas_key":"ssk4s6teTtBtqXu2t5gAtF","pm_cid":"pk4s6teaksl2cry","mt_cid":"mtk4s6teatmfmvxn"},{"name":"\u641C\u7D22-\u74DC\u5B50\u4E8C\u624B\u8F66","canvas_key":"ssk4s6teTtBtqYCxMU57So","pm_cid":"pk4s6teaksl2cry","mt_cid":"mtk4s6teatmfmvxn"},{"name":"\u641C\u7D22-\u7F8E\u67DA","canvas_key":"ssk4s6teTtBtqYWU8f6ojy","pm_cid":"pk4s6teaksl2cry","mt_cid":"mtk4s6teatmfmvxn"},{"name":"\u641C\u7D22-\u7231\u5F7C\u8FCE","canvas_key":"ssk4s6teTtBtqYpBW20AEN","pm_cid":"pk4s6teaksl2cry","mt_cid":"mtk4s6teatmfmvxn"},{"name":"\u641C\u7D22-\u8003\u62C9\u6D77\u8D2D","canvas_key":"ssk4s6teTtBtqZ8VhrKgXe","pm_cid":"pk4s6teaksl2cry","mt_cid":"mtk4s6teatmfmvxn"},{"name":"\u641C\u7D22-keep","canvas_key":"ssk4s6teTtBtqZZD2lmeHV","pm_cid":"pk4s6teaksl2cry","mt_cid":"mtk4s6teatmfmvxn"},{"name":"\u641C\u7D22-\u643A\u7A0B","canvas_key":"ssk4s6teTtBtqZn4OHJedJ","pm_cid":"pk4s6teaksl2cry","mt_cid":"mtk4s6teatmfmvxn"},{"name":"\u641C\u7D22-\u4EBA\u4EBA\u90FD\u662F\u4EA7\u54C1\u7ECF\u7406","canvas_key":"ssk4s6teTtBtqaCMNH3JIH","pm_cid":"pk4s6teaksl2cry","mt_cid":"mtk4s6teatmfmvxn"},{"name":"\u641C\u7D22-\u997F\u4E86\u4E48","canvas_key":"ssk4s6teTtBtqaP3uJJmsd","pm_cid":"pk4s6teaksl2cry","mt_cid":"mtk4s6teatmfmvxn"},{"name":"\u641C\u7D22\u98752","canvas_key":"ssl5hsrwTtf8IWrAGukmQM","pm_cid":"plo4awowbahu3ug","mt_cid":"mtl5izjs0ajipkxy"},{"name":"\u641C\u7D22\u98751","canvas_key":"ssl5hsrwTtf8IXPz4i8czK","pm_cid":"plo4awowbahu3ug","mt_cid":"mtl5izjs0ajipkxy"},{"name":"\u641C\u7D22\u98753","canvas_key":"ssl5hu94Ttf8IXq6v7hoSj","pm_cid":"plo4awowbahu3ug","mt_cid":"mtl5izjs0ajipkxy"},{"name":"\u641C\u7D22\u98754","canvas_key":"ssl5hwdaTtf8IY7yQAGMqf","pm_cid":"plo4awowbahu3ug","mt_cid":"mtl5izjs0ajipkxy"},{"name":"\u641C\u7D22\u98755","canvas_key":"ssl5hx0nTtf8IYT26NG0SU","pm_cid":"plo4awowbahu3ug","mt_cid":"mtl5izjs0ajipkxy"},{"name":"\u641C\u7D20\u98756","canvas_key":"ssl5hxrsTtf8IZ2ibHNKlt","pm_cid":"plo4awowbahu3ug","mt_cid":"mtl5izjs0ajipkxy"},{"name":"\u641C\u7D22\u98757","canvas_key":"ssl5hydaTtf8IZO3vIFu0f","pm_cid":"plo4awowbahu3ug","mt_cid":"mtl5izjs0ajipkxy"},{"name":"\u641C\u7D22\u98758","canvas_key":"ssl5hz6mTtf8IZlyY16cok","pm_cid":"plo4awowbahu3ug","mt_cid":"mtl5izjs0ajipkxy"},{"name":"\u641C\u7D22\u98759","canvas_key":"ssl5iyjeTtf8IaIRN7kqDj","pm_cid":"plo4awowbahu3ug","mt_cid":"mtl5izjs0ajipkxy"},{"name":"\u641C\u7D22\u987510","canvas_key":"ssl5iyx2Ttf8Iaal1X8APD","pm_cid":"plo4awowbahu3ug","mt_cid":"mtl5izjs0ajipkxy"}],"\u5FAE\u4FE1":[{"name":"\u516C\u4F17\u53F7\u4F1A\u8BDD\u9875","canvas_key":"ssk6j0g2TtBtvHzGBEMKGJ","pm_cid":"pk6j0g26s3eume0","mt_cid":"mtk6j0g274qpjp7x"},{"name":"\u516C\u4F17\u53F7\u8BE6\u60C5\u9875","canvas_key":"ssk6j0g2TtBtvIC6Xrq4GN","pm_cid":"pk6j0g26s3eume0","mt_cid":"mtk6j0g274qpjp7x"},{"name":"\u516C\u4F17\u53F7\u4F1A\u8BDD\u9875-\u83DC\u5355","canvas_key":"ssk6j0g2TtBtvIOnLPjc2f","pm_cid":"pk6j0g26s3eume0","mt_cid":"mtk6j0g274qpjp7x"},{"name":"\u516C\u4F17\u53F7\u8BE6\u60C5\u9875-\u83DC\u5355","canvas_key":"ssk6j0g2TtBtvIdVTTbwX5","pm_cid":"pk6j0g26s3eume0","mt_cid":"mtk6j0g274qpjp7x"},{"name":"\u5C0F\u7A0B\u5E8F\u4E3B\u9875","canvas_key":"ssk6j0g2TtBtvIrCyMTxfU","pm_cid":"pk6j0g26s3eume0","mt_cid":"mtk6j0g274qpjp7x"},{"name":"\u5FAE\u4FE1","canvas_key":"ssk4s6sgTtBtfP8GgXfIwW","pm_cid":"pk4s6sgwlwlcypr","mt_cid":"mtk4s6sgwyf8utmj"},{"name":"\u7279\u5B9A\u516C\u4F17\u53F7","canvas_key":"ssk4s6sgTtBtfRFURfK75O","pm_cid":"pk4s6sgwlwlcypr","mt_cid":"mtk4s6sgwyf8utmj"},{"name":"\u641C\u7D22\u5F39\u51FA","canvas_key":"ssk4s6sgTtBtfT5jB5s61s","pm_cid":"pk4s6sgwlwlcypr","mt_cid":"mtk4s6sgwyf8utmj"},{"name":"\u4F1A\u8BDD\u9875\u9762","canvas_key":"ssk4s6sgTtBtfTGyUNia28","pm_cid":"pk4s6sgwlwlcypr","mt_cid":"mtk4s6sgwyf8utmj"},{"name":"\u4E0B\u62C9\u5524\u51FA\u5C0F\u7A0B\u5E8F\u754C\u9762","canvas_key":"ssk4s6sgTtBtfTXssHEP8H","pm_cid":"pk4s6sgwlwlcypr","mt_cid":"mtk4s6sgwyf8utmj"},{"name":"\u901A\u8BAF\u5F55","canvas_key":"ssk4s6sgTtBtfPxVfblhfO","pm_cid":"pk4s6sgwlwlcypr","mt_cid":"mtk4s6sgwyf8utmj"},{"name":"\u516C\u4F17\u53F7\u5217\u8868","canvas_key":"ssk4s6sgTtBtfSfutcTFJq","pm_cid":"pk4s6sgwlwlcypr","mt_cid":"mtk4s6sgwyf8utmj"},{"name":"\u6211","canvas_key":"ssk4s6sgTtBtfQKWxsuFKm","pm_cid":"pk4s6sgwlwlcypr","mt_cid":"mtk4s6sgwyf8utmj"},{"name":"\u53D1\u73B0","canvas_key":"ssk4s6sgTtBtfQljI472g8","pm_cid":"pk4s6sgwlwlcypr","mt_cid":"mtk4s6sgwyf8utmj"},{"name":"\u6211\u7684\u5C0F\u7A0B\u5E8F","canvas_key":"ssk4s6sgTtBtfVkhOu2oZO","pm_cid":"pk4s6sgwlwlcypr","mt_cid":"mtk4s6sgwyf8utmj"},{"name":"\u83B7\u53D6\u5730\u7406\u4F4D\u7F6E\u4FE1\u606F\u5F39\u7A97","canvas_key":"ssk4s6sgTtBtfWLW3wv9to","pm_cid":"pk4s6sgwlwlcypr","mt_cid":"mtk4s6sgwyf8utmj"},{"name":"\u5C0F\u7A0B\u5E8F\u4E3B\u9875","canvas_key":"ssk4s6sgTtBtfV6DcGZGYi","pm_cid":"pk4s6sgwlwlcypr","mt_cid":"mtk4s6sgwyf8utmj"},{"name":"\u83B7\u53D6\u4E2A\u4EBA\u4FE1\u606F\u5F39\u7A97","canvas_key":"ssk4s6sgTtBtfTu175Ru5p","pm_cid":"pk4s6sgwlwlcypr","mt_cid":"mtk4s6sgwyf8utmj"},{"name":"\u66F4\u591A","canvas_key":"ssk4s6sgTtBtfUatQ3zI6U","pm_cid":"pk4s6sgwlwlcypr","mt_cid":"mtk4s6sgwyf8utmj"},{"name":"\u5173\u4E8E\u5C0F\u7A0B\u5E8F","canvas_key":"ssk4s6sgTtBtfVUjaSNNz6","pm_cid":"pk4s6sgwlwlcypr","mt_cid":"mtk4s6sgwyf8utmj"},{"name":"\u670B\u53CB\u5708","canvas_key":"ssk4s6sgTtBtfWfYuNmjNH","pm_cid":"pk4s6sgwlwlcypr","mt_cid":"mtk4s6sgwyf8utmj"},{"name":"\u793E\u4EA4\u52A8\u6001","canvas_key":"rcUDtsOTknsDdhxa","pm_cid":"pm2m1qrm3vk2j82cv","mt_cid":"mtlwnx02b7tsudm5"},{"name":"\u793E\u4EA4\u52A8\u6001","canvas_key":"rcUDtsOTUDuCfLDtDWg5SK","pm_cid":"pm2m1qrm3vk2j82cv","mt_cid":"mtlwnx02b7tsudm5"},{"name":"\u793E\u4EA4\u52A8\u6001","canvas_key":"rcUDtsOTUDuGXQ6wsUSIF3","pm_cid":"pm2m1qrm3vk2j82cv","mt_cid":"mtlwnx02b7tsudm5"},{"name":"\u793E\u4EA4\u52A8\u6001","canvas_key":"rcUDtsOTUDuJ5StqUraXw0","pm_cid":"pm2m1qrm3vk2j82cv","mt_cid":"mtlwnx02b7tsudm5"},{"name":"\u793E\u4EA4\u52A8\u6001","canvas_key":"rcUDtsOTUDuMmS0EiZBYAt","pm_cid":"pm2m1qrm3vk2j82cv","mt_cid":"mtlwnx02b7tsudm5"},{"name":"\u8BDD\u9898\u5708\u5B50","canvas_key":"rcUF0zfpUFJ5uB2WI0aOBB","pm_cid":"pm2m1qrm3vk2j82cv","mt_cid":"mtlwnx02b7tsudm5"},{"name":"\u95EE\u9898\u95EE\u7B54","canvas_key":"rcUF0zfpUFJ5uB3tBAH0Qh","pm_cid":"pm2m1qrm3vk2j82cv","mt_cid":"mtlwnx02b7tsudm5"},{"name":"\u6D3B\u52A8\u5217\u8868 ","canvas_key":"sslewn6fUFJ5uB3BRz4dCr","pm_cid":"pm2m1qrm3vk2j82cv","mt_cid":"mtlwnx02b7tsudm5"},{"name":"\u793E\u4EA4\u52A8\u6001","canvas_key":"rcUDtsOTUPvxVYjHBr7dML","pm_cid":"pm2m1qrm3vk2j82cv","mt_cid":"mtlwnx02b7tsudm5"},{"name":"\u793E\u4EA4\u52A8\u6001","canvas_key":"rcUDtsOTUPw58iLE6nYCfK","pm_cid":"pm2m1qrm3vk2j82cv","mt_cid":"mtlwnx02b7tsudm5"},{"name":"\u793E\u4EA4\u52A8\u6001-\u65C5\u884C","canvas_key":"rcUDtsOTUPwEdQaXtfpjp4","pm_cid":"pm2m1qrm3vk2j82cv","mt_cid":"mtlwnx02b7tsudm5"},{"name":"\u793E\u4EA4\u52A8\u6001","canvas_key":"rcUDtsOTUPwKA4FaF3hWy1","pm_cid":"pm2m1qrm3vk2j82cv","mt_cid":"mtlwnx02b7tsudm5"},{"name":"\u52A8\u6001-\u65C5\u884C","canvas_key":"sslewn6fUPxpf0p2UUz6TZ","pm_cid":"pm2m1qrm3vk2j82cv","mt_cid":"mtlwnx02b7tsudm5"},{"name":"\u52A8\u6001-\u4E92\u52A8","canvas_key":"sslewn6fUPxvIfePZkAsGi","pm_cid":"pm2m1qrm3vk2j82cv","mt_cid":"mtlwnx02b7tsudm5"},{"name":"\u4E16\u754C\u52A8\u6001","canvas_key":"rcUDtsOTUPy9gybtAgwUDS","pm_cid":"pm2m1qrm3vk2j82cv","mt_cid":"mtlwnx02b7tsudm5"},{"name":"\u4EA4\u53CB\u52A8\u6001","canvas_key":"rcUDtsOTUPyOfgrjp9gi9s","pm_cid":"pm2m1qrm3vk2j82cv","mt_cid":"mtlwnx02b7tsudm5"},{"name":"\u4EA4\u53CB\u96F7\u8FBE","canvas_key":"rcUDtsOTUPyU07PxP8nc6z","pm_cid":"pm2m1qrm3vk2j82cv","mt_cid":"mtlwnx02b7tsudm5"},{"name":"\u4EA4\u53CB","canvas_key":"rcUDtsOTUPyXBkWxcgmyBm","pm_cid":"pm2m1qrm3vk2j82cv","mt_cid":"mtlwnx02b7tsudm5"},{"name":"\u793E\u533A\u4E3B\u9875","canvas_key":"ssk54jo1TtBtsL3uwPaXdY","pm_cid":"pk54jo1wnaxwj0t","mt_cid":"mtk54jo1x1k0w0ef"},{"name":"\u6211\u7684\u5173\u6CE8","canvas_key":"ssk54jo1TtBtsMED8smWFu","pm_cid":"pk54jo1wnaxwj0t","mt_cid":"mtk54jo1x1k0w0ef"},{"name":"\u4F5C\u8005\u9996\u9875","canvas_key":"ssk54jo1TtBtsOetO01uK8","pm_cid":"pk54jo1wnaxwj0t","mt_cid":"mtk54jo1x1k0w0ef"},{"name":"\u5185\u5BB9\u63A8\u8350","canvas_key":"ssk54jo1TtBtsPM8hcdSWh","pm_cid":"pk54jo1wnaxwj0t","mt_cid":"mtk54jo1x1k0w0ef"},{"name":"\u5185\u5BB9\u8BE6\u60C5","canvas_key":"ssk54jo1TtBtsPvDi1Hz9S","pm_cid":"pk54jo1wnaxwj0t","mt_cid":"mtk54jo1x1k0w0ef"}],"\u6D88\u606F":[{"name":"\u804A\u5929\u9875\u9762-\u7FA4\u804A","canvas_key":"ssl4i6uuUIaywVd4fb2V1G","pm_cid":"plyi1v1lrwyrhkh","mt_cid":"mtl6vlnofdhgkcfh"},{"name":"\u6863\u671F-\u7FA4\u804A","canvas_key":"ssl4i7i2UIaywW8sgwS0aV","pm_cid":"plyi1v1lrwyrhkh","mt_cid":"mtl6vlnofdhgkcfh"},{"name":"\u804A\u5929\u9875\u9762-\u7FA4\u804A-\u6211\u65B9\u9080\u7EA6","canvas_key":"ssl6kghoUIaywaHQ5uPpHH","pm_cid":"plyi1v1lrwyrhkh","mt_cid":"mtl6vlnofdhgkcfh"},{"name":"\u804A\u5929\u9875\u9762-\u7FA4\u804A-\u88AB\u54CD\u5E94\u9080\u7EA6","canvas_key":"ssl6kgwwUIaywaevaTbnLB","pm_cid":"plyi1v1lrwyrhkh","mt_cid":"mtl6vlnofdhgkcfh"},{"name":"\u7FA4-\u7BA1\u7406\u6211\u7684\u6863\u671F","canvas_key":"ssl5tg52UIaywYAo9CKRA","pm_cid":"plyi1v1lrwyrhkh","mt_cid":"mtl6vlnofdhgkcfh"},{"name":"\u7BA1\u7406\u6211\u7684\u6863\u671F-\u53D6\u6D88\u6863\u671F","canvas_key":"ssl6kfrzUIaywYbI5G7VQi","pm_cid":"plyi1v1lrwyrhkh","mt_cid":"mtl6vlnofdhgkcfh"},{"name":"\u7BA1\u7406\u6211\u7684\u6863\u671F-\u6DFB\u52A0\u6863\u671F","canvas_key":"ssl6kg0gUIaywZNmclKMIq","pm_cid":"plyi1v1lrwyrhkh","mt_cid":"mtl6vlnofdhgkcfh"},{"name":"\u6863\u671F-\u6709\u6863\u671F\u7684\u7FA4\u53CB","canvas_key":"ssl6kj1hUIaywfb1JG100e","pm_cid":"plyi1v1lrwyrhkh","mt_cid":"mtl6vlnofdhgkcfh"},{"name":"\u804A\u5929\u9875\u9762\u666E\u901A\u4E2A\u4EBA","canvas_key":"ssl6khr8UIaywavP2qYjl8","pm_cid":"plyi1v1lrwyrhkh","mt_cid":"mtl6vlnofdhgkcfh"},{"name":"\u6863\u671F\u4E2A\u4EBA\u5BF9\u4E2A\u4EBA","canvas_key":"ssl6khr8UIaywbCsO67GOq","pm_cid":"plyi1v1lrwyrhkh","mt_cid":"mtl6vlnofdhgkcfh"},{"name":"\u804A\u5929\u9875\u9762\u666E\u901A\u4E2A\u4EBA-\u6211\u65B9\u9080\u7EA6","canvas_key":"ssl6khr8UIaywe4csaRcCr","pm_cid":"plyi1v1lrwyrhkh","mt_cid":"mtl6vlnofdhgkcfh"},{"name":"\u804A\u5929\u9875\u9762\u666E\u901A\u4E2A\u4EBA-\u88AB\u540C\u610F\u9080\u7EA6","canvas_key":"ssl6khr8UIayweHGwcrKNO","pm_cid":"plyi1v1lrwyrhkh","mt_cid":"mtl6vlnofdhgkcfh"},{"name":"\u804A\u5929\u9875\u9762\u666E\u901A\u4E2A\u4EBA-\u88AB\u62D2\u7EDD\u9080\u7EA6 Copy","canvas_key":"ssl6khr8UIayweWGjfuLxk","pm_cid":"plyi1v1lrwyrhkh","mt_cid":"mtl6vlnofdhgkcfh"},{"name":"\u7BA1\u7406\u6211\u7684\u6863\u671F","canvas_key":"ssl6khr8UIaywbhxgNQzMQ","pm_cid":"plyi1v1lrwyrhkh","mt_cid":"mtl6vlnofdhgkcfh"},{"name":"\u7BA1\u7406\u6211\u7684\u6863\u671F-\u53D6\u6D88\u6863\u671F","canvas_key":"ssl6khr8UIaywd575ylDw9","pm_cid":"plyi1v1lrwyrhkh","mt_cid":"mtl6vlnofdhgkcfh"},{"name":"\u7BA1\u7406\u6211\u7684\u6863\u671F-\u6DFB\u52A0\u6863\u671F","canvas_key":"ssl6khr8UIaywdX8MtQw2f","pm_cid":"plyi1v1lrwyrhkh","mt_cid":"mtl6vlnofdhgkcfh"},{"name":"\u804A\u5929\u9875\u9762\u666E\u901A\u4E2A\u4EBA-\u5BF9\u65B9\u9080\u7EA6","canvas_key":"ssl6khr8UIaywejivfGFmH","pm_cid":"plyi1v1lrwyrhkh","mt_cid":"mtl6vlnofdhgkcfh"},{"name":"\u804A\u5929\u9875\u9762\u666E\u901A\u4E2A\u4EBA-\u540C\u610F\u9080\u7EA6","canvas_key":"ssl6khr8UIaywf0KJUX8tD","pm_cid":"plyi1v1lrwyrhkh","mt_cid":"mtl6vlnofdhgkcfh"},{"name":"\u804A\u5929\u9875\u9762\u666E\u901A\u4E2A\u4EBA-\u62D2\u7EDD\u9080\u7EA6 Copy","canvas_key":"ssl6khr8UIaywfDLPYQwIu","pm_cid":"plyi1v1lrwyrhkh","mt_cid":"mtl6vlnofdhgkcfh"},{"name":"\u804A\u5929\u9875\u9762-\u7FA4\u804A\u6709\u7EA6","canvas_key":"ssl6vkv0UIaywgQpY4i7NQ","pm_cid":"plyi1v1lrwyrhkh","mt_cid":"mtl6vlnofdhgkcfh"},{"name":"\u6D88\u606F\u5217\u8868","canvas_key":"ssl6vkzwUIaywgqc1Eu9Zl","pm_cid":"plyi1v1lrwyrhkh","mt_cid":"mtl6vlnofdhgkcfh"},{"name":"\u6D88\u606F\u4E2D\u5FC3","canvas_key":"rcUa22lY4XGD2FQM","pm_cid":"pm2m6yfysxzrub72i","mt_cid":"mtm6yfysy11mi737"},{"name":"\u5F85\u529E\u7BB1","canvas_key":"rcUaZaMHpLsYhNyr","pm_cid":"pm2m6yfysxzrub72i","mt_cid":"mtm6yfysy11mi737"},{"name":"\u4EFB\u52A1\u4E2D\u5FC3","canvas_key":"rcUaZaMHUaabVWe5YXhLWA","pm_cid":"pm2m6yfysxzrub72i","mt_cid":"mtm6yfysy11mi737"},{"name":"\u968F\u8EAB\u529E\u52A9\u624B","canvas_key":"rcUaZaMHUaaoFGKfWmdNPe","pm_cid":"pm2m6yfysxzrub72i","mt_cid":"mtm6yfysy11mi737"},{"name":"\u4EFB\u52A1\u52A9\u624B","canvas_key":"rcUaZaMHUaav0Js8OXHzr3","pm_cid":"pm2m6yfysxzrub72i","mt_cid":"mtm6yfysy11mi737"},{"name":"\u901A\u8BAF\u5F55","canvas_key":"rcUaZaMHUaayRmQtyS23v6","pm_cid":"pm2m6yfysxzrub72i","mt_cid":"mtm6yfysy11mi737"},{"name":"\u804A\u5929\u8BE6\u60C5","canvas_key":"rcUaZaMHUab0r8Q9nZM9C8","pm_cid":"pm2m6yfysxzrub72i","mt_cid":"mtm6yfysy11mi737"},{"name":"\u597D\u53CB\u5217\u88681","canvas_key":"ssl332m2TtCAuiLTyYGuKi","pm_cid":"pl332m2nfi1ufzl","mt_cid":"mtl332m31s2mabte"},{"name":"\u597D\u53CB\u5217\u88682","canvas_key":"ssl332m2TtCAuids2LoVE0","pm_cid":"pl332m2nfi1ufzl","mt_cid":"mtl332m31s2mabte"},{"name":"\u804A\u5929\u754C\u97621","canvas_key":"ssl332m2TtCAuiqG8BUtoC","pm_cid":"pl332m2nfi1ufzl","mt_cid":"mtl332m31s2mabte"},{"name":"\u804A\u5929\u754C\u97622","canvas_key":"ssl332m2TtCAujEC3UIAzN","pm_cid":"pl332m2nfi1ufzl","mt_cid":"mtl332m31s2mabte"},{"name":"\u804A\u5929\u754C\u97623","canvas_key":"ssl332m2TtCAujRUCzgSgp","pm_cid":"pl332m2nfi1ufzl","mt_cid":"mtl332m31s2mabte"},{"name":"\u804A\u5929\u754C\u97624","canvas_key":"ssl332m2TtCAujfzEiZtF4","pm_cid":"pl332m2nfi1ufzl","mt_cid":"mtl332m31s2mabte"},{"name":"\u6D88\u606F\u5217\u88681","canvas_key":"ssl5j7sdTtf8Iln2qDErIT","pm_cid":"plo4as1uby2e5aw","mt_cid":"mtl5jcf61y7vr405"},{"name":"\u6D88\u606F\u5217\u88682","canvas_key":"ssl5j7sdTtf8ImKApXFvgD","pm_cid":"plo4as1uby2e5aw","mt_cid":"mtl5jcf61y7vr405"},{"name":"\u6D88\u606F\u5217\u88683","canvas_key":"ssl5j7v9Ttf8ImhxMjLUza","pm_cid":"plo4as1uby2e5aw","mt_cid":"mtl5jcf61y7vr405"},{"name":"\u6D88\u606F\u5217\u88684","canvas_key":"ssl5j7vyTtf8In0S0JUyCT","pm_cid":"plo4as1uby2e5aw","mt_cid":"mtl5jcf61y7vr405"},{"name":"\u6D88\u606F\u5217\u88685","canvas_key":"ssl5j7wtTtf8InHfLUJaFT","pm_cid":"plo4as1uby2e5aw","mt_cid":"mtl5jcf61y7vr405"},{"name":"\u6D88\u606F\u5217\u88686","canvas_key":"ssl5j7ybTtf8InUFWCtjo6","pm_cid":"plo4as1uby2e5aw","mt_cid":"mtl5jcf61y7vr405"},{"name":"\u6D88\u606F\u5217\u88687","canvas_key":"ssl5j822Ttf8InoPYVxDUR","pm_cid":"plo4as1uby2e5aw","mt_cid":"mtl5jcf61y7vr405"},{"name":"\u6D88\u606F\u5217\u88688","canvas_key":"ssl5j82nTtf8IoDIntKkd7","pm_cid":"plo4as1uby2e5aw","mt_cid":"mtl5jcf61y7vr405"},{"name":"\u6D88\u606F\u5217\u88689","canvas_key":"ssl5j830Ttf8IoXSDjz0zT","pm_cid":"plo4as1uby2e5aw","mt_cid":"mtl5jcf61y7vr405"},{"name":"\u6D88\u606F\u5217\u886810","canvas_key":"ssl5j83bTtf8IotSgEXVh6","pm_cid":"plo4as1uby2e5aw","mt_cid":"mtl5jcf61y7vr405"},{"name":"\u6D88\u606F\u901A\u77E5","canvas_key":"ssk4s6taTtBtpBrBBhq7oQ","pm_cid":"pk4s6tawq83rwbz","mt_cid":"mtk4s6tax2zq338p"},{"name":"\u6D88\u606F\u901A\u77E5","canvas_key":"ssk4s6taTtBtpC91gfG7F","pm_cid":"pk4s6tawq83rwbz","mt_cid":"mtk4s6tax2zq338p"},{"name":"\u6D88\u606F\u901A\u77E5","canvas_key":"ssk4s6taTtBtpCU5IOE1GW","pm_cid":"pk4s6tawq83rwbz","mt_cid":"mtk4s6tax2zq338p"},{"name":"\u6D88\u606F\u901A\u77E5","canvas_key":"ssk4s6taTtBtpCnwKLrNWR","pm_cid":"pk4s6tawq83rwbz","mt_cid":"mtk4s6tax2zq338p"},{"name":"\u6D88\u606F\u901A\u77E5-\u5206\u7C7B1","canvas_key":"ssk9jjnuTtBu0w7mMJHRCD","pm_cid":"pk9jjnultbzzu9f","mt_cid":"mtk9jjnumxuad6yc"},{"name":"\u6D88\u606F\u901A\u77E5-\u5E38\u89C42","canvas_key":"ssk9jjnuTtBu0wUUKoMKPU","pm_cid":"pk9jjnultbzzu9f","mt_cid":"mtk9jjnumxuad6yc"},{"name":"\u6D88\u606F\u901A\u77E5-\u5206\u7C7B3","canvas_key":"ssk9jjnuTtBu0x2CyteNQb","pm_cid":"pk9jjnultbzzu9f","mt_cid":"mtk9jjnumxuad6yc"},{"name":"\u6D88\u606F\u901A\u77E5-\u5206\u7C7B2","canvas_key":"ssk9jjnuTtBu0xQonYT6w2","pm_cid":"pk9jjnultbzzu9f","mt_cid":"mtk9jjnumxuad6yc"},{"name":"\u6D88\u606F\u901A\u77E5-\u5206\u7C7B4","canvas_key":"ssk9jjnuTtBu0xiCy1u6TE","pm_cid":"pk9jjnultbzzu9f","mt_cid":"mtk9jjnumxuad6yc"},{"name":"\u6D88\u606F\u901A\u77E5-\u5176\u5B831","canvas_key":"ssk9jjnuTtBu0y03npvw5m","pm_cid":"pk9jjnultbzzu9f","mt_cid":"mtk9jjnumxuad6yc"},{"name":"\u6D88\u606F\u901A\u77E5-\u5176\u5B832","canvas_key":"ssk9jjnuTtBu0yTjvzy2cZ","pm_cid":"pk9jjnultbzzu9f","mt_cid":"mtk9jjnumxuad6yc"},{"name":"\u6D88\u606F\u901A\u77E5-\u5E38\u89C41","canvas_key":"ssk9jjnuTtBu0ynqCkjQaj","pm_cid":"pk9jjnultbzzu9f","mt_cid":"mtk9jjnumxuad6yc"},{"name":"\u9875\u9762 1","canvas_key":"rcUoMGQYf8Yz9UHr","pm_cid":"pm2mc05ysv5q4cm9f","mt_cid":"mtmc05ysv8g1tblc"},{"name":"\u9875\u9762 1","canvas_key":"rcUoMGYJh7R08W1r","pm_cid":"pm2mc05ysv5q4cm9f","mt_cid":"mtmc05ysv8g1tblc"},{"name":"\u9875\u9762 1","canvas_key":"rcUoMGYMLs2hQEJG","pm_cid":"pm2mc05ysv5q4cm9f","mt_cid":"mtmc05ysv8g1tblc"},{"name":"\u9875\u9762 1","canvas_key":"rcUoMGYP2KXZHDEc","pm_cid":"pm2mc05ysv5q4cm9f","mt_cid":"mtmc05ysv8g1tblc"}],"\u5F39\u6846\u9875\u9762":[{"name":"\u9690\u79C1\u534F\u8BAE\u5F39\u7A97","canvas_key":"rcUEJd8wi7paasTe","pm_cid":"pm2lxq3hlm8p8s268","mt_cid":"mtlwxvtkc0iumpa6"},{"name":"\u83B7\u53D6\u7CFB\u7EDF\u6743\u9650\u5F39\u7A97","canvas_key":"rcUEJd8wUENymwlgvBKF6u","pm_cid":"pm2lxq3hlm8p8s268","mt_cid":"mtlwxvtkc0iumpa6"},{"name":"\u9752\u5C11\u5E74\u6A21\u5F0F\u5F39\u7A97","canvas_key":"rcUEJd8wUERAHTWBUZSIds","pm_cid":"pm2lxq3hlm8p8s268","mt_cid":"mtlwxvtkc0iumpa6"},{"name":"\u9752\u5C11\u5E74\u6A21\u5F0F\u5F39\u7A97 ","canvas_key":"rcUEJd8wUERD3PquInOO3Z","pm_cid":"pm2lxq3hlm8p8s268","mt_cid":"mtlwxvtkc0iumpa6"},{"name":"\u5E94\u7528\u5347\u7EA7\u5F39\u7A97","canvas_key":"rcUEJd8wUEREn8BV7V7oD","pm_cid":"pm2lxq3hlm8p8s268","mt_cid":"mtlwxvtkc0iumpa6"},{"name":"\u5E94\u7528\u5347\u7EA7\u5F39\u7A97","canvas_key":"rcUEJd8wUERGeNB3vlY0ml","pm_cid":"pm2lxq3hlm8p8s268","mt_cid":"mtlwxvtkc0iumpa6"},{"name":"\u5185\u5BB9\u63D0\u793A\u5F39\u7A97","canvas_key":"rcUEJd8wUESVcui4ZmuCeN","pm_cid":"pm2lxq3hlm8p8s268","mt_cid":"mtlwxvtkc0iumpa6"},{"name":"\u8EAB\u4EFD\u8BA4\u8BC1\u5F39\u7A97","canvas_key":"rcUEJd8wUESXtqLjclMehz","pm_cid":"pm2lxq3hlm8p8s268","mt_cid":"mtlwxvtkc0iumpa6"},{"name":"\u8EAB\u4EFD\u8BA4\u8BC1\u5F39\u7A97","canvas_key":"rcUEJd8wUESZN01J9hVHG","pm_cid":"pm2lxq3hlm8p8s268","mt_cid":"mtlwxvtkc0iumpa6"},{"name":"\u670D\u52A1\u4ECB\u7ECD\u5F39\u7A97","canvas_key":"rcUEJd8wUESbdcolohH2AU","pm_cid":"pm2lxq3hlm8p8s268","mt_cid":"mtlwxvtkc0iumpa6"},{"name":"\u670D\u52A1\u4ECB\u7ECD\u5F39\u7A97","canvas_key":"rcUEJd8wUESfbYX6Rtsfrt","pm_cid":"pm2lxq3hlm8p8s268","mt_cid":"mtlwxvtkc0iumpa6"},{"name":"\u6D41\u7A0B\u4ECB\u7ECD\u5F39\u7A97","canvas_key":"rcUEJd8wUESiYjTMchfUuI","pm_cid":"pm2lxq3hlm8p8s268","mt_cid":"mtlwxvtkc0iumpa6"},{"name":"\u6D41\u7A0B\u4ECB\u7ECD\u5F39\u7A97","canvas_key":"rcUEJd8wUESlgv48IePahE","pm_cid":"pm2lxq3hlm8p8s268","mt_cid":"mtlwxvtkc0iumpa6"},{"name":"\u4EF7\u683C\u660E\u7EC6\u5F39\u7A97","canvas_key":"rcUEJd8wUESp3ac16yZZWg","pm_cid":"pm2lxq3hlm8p8s268","mt_cid":"mtlwxvtkc0iumpa6"},{"name":"\u91D1\u989D\u660E\u7EC6\u5F39\u7A97","canvas_key":"rcUEJd8wUEStyvGOZeEdFm","pm_cid":"pm2lxq3hlm8p8s268","mt_cid":"mtlwxvtkc0iumpa6"},{"name":"\u5355\u9009\u9009\u62E9\u5F39\u7A97","canvas_key":"rcUEJd8wUESzqJZJY7Zs7T","pm_cid":"pm2lxq3hlm8p8s268","mt_cid":"mtlwxvtkc0iumpa6"},{"name":"\u9000\u6B3E\u539F\u56E0\u5F39\u7A97","canvas_key":"rcUEJd8wUETI8EMOFtdahx","pm_cid":"pm2lxq3hlm8p8s268","mt_cid":"mtlwxvtkc0iumpa6"},{"name":"\u5185\u5BB9\u63D0\u793A\u53EF\u64CD\u4F5C\u5F39\u7A97","canvas_key":"rcUEJd8wUETKDQriUja0Ii","pm_cid":"pm2lxq3hlm8p8s268","mt_cid":"mtlwxvtkc0iumpa6"},{"name":"\u5F00\u542F\u6D88\u606F\u901A\u77E5\u5F39\u7A97","canvas_key":"rcUEJd8wUETM21ub94nARA","pm_cid":"pm2lxq3hlm8p8s268","mt_cid":"mtlwxvtkc0iumpa6"},{"name":"\u5173\u6CE8\u670D\u52A1\u53F7\u901A\u77E5\u5F39\u7A97","canvas_key":"rcUEJd8wUETM4QdgNjgRkJ","pm_cid":"pm2lxq3hlm8p8s268","mt_cid":"mtlwxvtkc0iumpa6"},{"name":"\u8EAB\u4EFD\u8BA4\u8BC1\u5F39\u7A97","canvas_key":"rcUEJd8wUETOefhGgzSESo","pm_cid":"pm2lxq3hlm8p8s268","mt_cid":"mtlwxvtkc0iumpa6"},{"name":"\u7B5B\u9009-\u4FA7\u8FB9\u5F39\u7A97","canvas_key":"rcTzVlSfUETRoid906zMAD","pm_cid":"pm2lxq3hlm8p8s268","mt_cid":"mtlwxvtkc0iumpa6"},{"name":"\u7B80\u5355\u64CD\u4F5C\u5F39\u7A97","canvas_key":"rcUEJd8wUETSTlO4JdQlJx","pm_cid":"pm2lxq3hlm8p8s268","mt_cid":"mtlwxvtkc0iumpa6"},{"name":"\u786E\u8BA4\u64CD\u4F5C\u5F39\u7A97","canvas_key":"rcUEJd8wUETTwMQthOv48k","pm_cid":"pm2lxq3hlm8p8s268","mt_cid":"mtlwxvtkc0iumpa6"},{"name":"\u5C0F\u5F39\u7A97","canvas_key":"rcUEJd8wUETV1vPoVEW1Nz","pm_cid":"pm2lxq3hlm8p8s268","mt_cid":"mtlwxvtkc0iumpa6"},{"name":"\u767B\u5F55\u6CE8\u518C\u5F39\u7A97","canvas_key":"rcUEJd8wUEW8U69eeDisvZ","pm_cid":"pm2lxq3hlm8p8s268","mt_cid":"mtlwxvtkc0iumpa6"},{"name":"\u4E00\u952E\u767B\u5F55\u5F39\u7A97","canvas_key":"rcUEJd8wUEWDwdqwP51wKe","pm_cid":"pm2lxq3hlm8p8s268","mt_cid":"mtlwxvtkc0iumpa6"},{"name":"\u767B\u5F55\u5F39\u7A97 ","canvas_key":"rcUEJd8wUEWJI2ZuenqghY","pm_cid":"pm2lxq3hlm8p8s268","mt_cid":"mtlwxvtkc0iumpa6"},{"name":"\u624B\u673A\u53F7\u52A0\u5BC6\u5F39\u7A97","canvas_key":"rcUEJd8wUEWT2re8L1TZoP","pm_cid":"pm2lxq3hlm8p8s268","mt_cid":"mtlwxvtkc0iumpa6"},{"name":"\u624B\u673A\u9A8C\u8BC1\u7801\u5F39\u7A97","canvas_key":"rcUEJd8wUEWXIPYznJCvd9","pm_cid":"pm2lxq3hlm8p8s268","mt_cid":"mtlwxvtkc0iumpa6"},{"name":"\u9A8C\u8BC1\u7801\u81EA\u52A8\u586B\u5165\u5F39\u7A97","canvas_key":"rcUEJd8wUEWZIYcz9omqQ0","pm_cid":"pm2lxq3hlm8p8s268","mt_cid":"mtlwxvtkc0iumpa6"},{"name":"\u9A8C\u8BC1\u7801\u81EA\u52A8\u586B\u5165\u5F39\u7A97","canvas_key":"rcUEJd8wUEWb3wggirvGpP","pm_cid":"pm2lxq3hlm8p8s268","mt_cid":"mtlwxvtkc0iumpa6"},{"name":"\u7B5B\u9009-\u5E95\u90E8\u5F39\u7A97","canvas_key":"rcUEJd8wUEWdKoD3BMbVIH","pm_cid":"pm2lxq3hlm8p8s268","mt_cid":"mtlwxvtkc0iumpa6"},{"name":"\u7B5B\u9009-\u9876\u90E8\u5F39\u7A97","canvas_key":"rcUEJd8wUEWfV8I3YmhfMb","pm_cid":"pm2lxq3hlm8p8s268","mt_cid":"mtlwxvtkc0iumpa6"},{"name":"\u7B5B\u9009-\u9876\u90E8\u5F39\u7A97","canvas_key":"rcUEJd8wUEYUgNfVXawKcQ","pm_cid":"pm2lxq3hlm8p8s268","mt_cid":"mtlwxvtkc0iumpa6"},{"name":"\u5206\u4EAB\u5F39\u7A97","canvas_key":"rcUEJd8wUEYgMfNndbb9Tg","pm_cid":"pm2lxq3hlm8p8s268","mt_cid":"mtlwxvtkc0iumpa6"},{"name":"\u5206\u4EAB\u5F39\u7A97","canvas_key":"rcUEJd8wUEYiPNdmBOKzA6","pm_cid":"pm2lxq3hlm8p8s268","mt_cid":"mtlwxvtkc0iumpa6"},{"name":"\u529F\u80FD\u4ECB\u7ECD\u5F39\u7A97","canvas_key":"rcUDoCeFUEYlDJwPnAXvaX","pm_cid":"pm2lxq3hlm8p8s268","mt_cid":"mtlwxvtkc0iumpa6"},{"name":"\u529F\u80FD\u8BBE\u7F6E\u5F39\u7A97","canvas_key":"rcUDoCeFUEYnoJ5lavPZYE","pm_cid":"pm2lxq3hlm8p8s268","mt_cid":"mtlwxvtkc0iumpa6"},{"name":"\u7B7E\u5230\u5F39\u7A97","canvas_key":"rcUEJd8wUEYoVkSQdAL0fa","pm_cid":"pm2lxq3hlm8p8s268","mt_cid":"mtlwxvtkc0iumpa6"},{"name":"\u505A\u4EFB\u52A1\u5F39\u7A97","canvas_key":"rcUEJd8wUEYtJP5VWGwVIa","pm_cid":"pm2lxq3hlm8p8s268","mt_cid":"mtlwxvtkc0iumpa6"},{"name":"\u5206\u4EAB\u6210\u529F\u5F39\u7A97","canvas_key":"rcUEJd8wUEYviU55CpSsq8","pm_cid":"pm2lxq3hlm8p8s268","mt_cid":"mtlwxvtkc0iumpa6"},{"name":"\u6210\u529F\u53CD\u9988\u5F39\u7A97","canvas_key":"rcUEJd8wUEYz3V9380njPj","pm_cid":"pm2lxq3hlm8p8s268","mt_cid":"mtlwxvtkc0iumpa6"},{"name":"\u7B7E\u5230\u63D0\u9192\u5F39\u7A97","canvas_key":"rcUEJd8wUEZ0m1X6TEe2ho","pm_cid":"pm2lxq3hlm8p8s268","mt_cid":"mtlwxvtkc0iumpa6"},{"name":"\u95EE\u5377\u54A8\u8BE2\u5F39\u7A97","canvas_key":"rcUEJd8wUEZ2XMMLGDS2o6","pm_cid":"pm2lxq3hlm8p8s268","mt_cid":"mtlwxvtkc0iumpa6"},{"name":"\u9009\u62E9\u5F39\u7A97","canvas_key":"rcUEJd8wUEZ4IRKzx3iH7q","pm_cid":"pm2lxq3hlm8p8s268","mt_cid":"mtlwxvtkc0iumpa6"},{"name":"\u9009\u62E9\u5F39\u7A97","canvas_key":"rcUEJd8wUEZ6LES8RJulZD","pm_cid":"pm2lxq3hlm8p8s268","mt_cid":"mtlwxvtkc0iumpa6"},{"name":"\u5F00\u901A\u4F1A\u5458\u5F39\u7A97 Copy 1","canvas_key":"rcUEJd8wUEZ812HseggTnC","pm_cid":"pm2lxq3hlm8p8s268","mt_cid":"mtlwxvtkc0iumpa6"},{"name":"\u5F00\u901A\u8054\u5408\u4F1A\u5458\u5F39\u7A97 Copy 1","canvas_key":"rcUEJd8wUEZ812IjH9ORjO","pm_cid":"pm2lxq3hlm8p8s268","mt_cid":"mtlwxvtkc0iumpa6"},{"name":"\u7EA7\u8054\u9009\u62E9\u5F39\u7A97 ","canvas_key":"rcUEJd8wUEZA56XyHVi9Q1","pm_cid":"pm2lxq3hlm8p8s268","mt_cid":"mtlwxvtkc0iumpa6"},{"name":"\u5347\u7EA7\u5F39\u6846-1","canvas_key":"rcUSvioSUT2W2f9zI7IFtA","pm_cid":"pm2m5s832pjfgbin9","mt_cid":"mtm330xup2dk41ug"},{"name":"\u5347\u7EA7\u5F39\u6846-2","canvas_key":"rcUSvioSUT2XfArjTDJRHo","pm_cid":"pm2m5s832pjfgbin9","mt_cid":"mtm330xup2dk41ug"},{"name":"\u5347\u7EA7\u5F39\u6846-3","canvas_key":"rcUSvioSUT2cruo8OLLJ1j","pm_cid":"pm2m5s832pjfgbin9","mt_cid":"mtm330xup2dk41ug"},{"name":"\u5347\u7EA7\u5F39\u6846-4","canvas_key":"rcUSvioSUT2dvkAEWVv4US","pm_cid":"pm2m5s832pjfgbin9","mt_cid":"mtm330xup2dk41ug"},{"name":"\u5347\u7EA7\u5F39\u6846-5","canvas_key":"rcUSvioSUT2fRTKbJNAGoK","pm_cid":"pm2m5s832pjfgbin9","mt_cid":"mtm330xup2dk41ug"},{"name":"\u5347\u7EA7\u5F39\u6846-6","canvas_key":"rcUSvioSUT2gutbpVPhXxR","pm_cid":"pm2m5s832pjfgbin9","mt_cid":"mtm330xup2dk41ug"},{"name":"\u5347\u7EA7\u5F39\u6846-7","canvas_key":"rcUSvioSUT2ifgJ67TgTWs","pm_cid":"pm2m5s832pjfgbin9","mt_cid":"mtm330xup2dk41ug"},{"name":"\u5347\u7EA7\u5F39\u6846-8","canvas_key":"rcUSvioSUT4a6YQk4EFDOu","pm_cid":"pm2m5s832pjfgbin9","mt_cid":"mtm330xup2dk41ug"},{"name":"\u5347\u7EA7\u5F39\u6846-9","canvas_key":"rcUSvioSUT4aY7IxfBU977","pm_cid":"pm2m5s832pjfgbin9","mt_cid":"mtm330xup2dk41ug"},{"name":"\u5347\u7EA7\u5F39\u6846-10","canvas_key":"rcUSvioSUT4b9tPqleX1Hr","pm_cid":"pm2m5s832pjfgbin9","mt_cid":"mtm330xup2dk41ug"},{"name":"\u5347\u7EA7\u5F39\u6846-11","canvas_key":"rcUSvioSUT4cNLXUwlAMAG","pm_cid":"pm2m5s832pjfgbin9","mt_cid":"mtm330xup2dk41ug"},{"name":"\u5347\u7EA7\u5F39\u6846-12","canvas_key":"rcUSvioSUT4gpBqqSTPErf","pm_cid":"pm2m5s832pjfgbin9","mt_cid":"mtm330xup2dk41ug"},{"name":"2.PM\u540C\u8DEF\u4EBA-\u72B6\u6001 1","canvas_key":"ssl1rejmU7LDqsibHPyJgL","pm_cid":"pltpn09nfdo2xze","mt_cid":"mtl25t6nh2tt6hn"},{"name":"2.PM\u540C\u8DEF\u4EBA-\u72B6\u6001 2","canvas_key":"ssl1rejmU7LDqsxb3Y3nH6","pm_cid":"pltpn09nfdo2xze","mt_cid":"mtl25t6nh2tt6hn"},{"name":"1.\u5173\u4E8E\u4F5C\u8005","canvas_key":"ssl1rejmU7LDqtCdP0Gh3M","pm_cid":"pltpn09nfdo2xze","mt_cid":"mtl25t6nh2tt6hn"},{"name":"3.\u8DF3\u65B0\u9875\u63D0\u793A","canvas_key":"ssl1rek2U7LDqtfdBrFs7E","pm_cid":"pltpn09nfdo2xze","mt_cid":"mtl25t6nh2tt6hn"},{"name":"7.\u5F15\u5BFC\u53BB\u8BA2\u9605","canvas_key":"ssl1rek2U7LDqu2LFquvQT","pm_cid":"pltpn09nfdo2xze","mt_cid":"mtl25t6nh2tt6hn"},{"name":"1.\u9884\u8BA2\u586B\u8D44\u6599","canvas_key":"ssl1rek2U7LDquOxXBCD28","pm_cid":"pltpn09nfdo2xze","mt_cid":"mtl25t6nh2tt6hn"},{"name":"11.\u7EAF\u6587\u5B57\u63D0\u793A-\u72B6\u6001 1","canvas_key":"ssl1rek2U7LDquuUPniVpz","pm_cid":"pltpn09nfdo2xze","mt_cid":"mtl25t6nh2tt6hn"},{"name":"11.\u7EAF\u6587\u5B57\u63D0\u793A-\u72B6\u6001 2","canvas_key":"ssl1rek2U7LDqv8SO5Oy4U","pm_cid":"pltpn09nfdo2xze","mt_cid":"mtl25t6nh2tt6hn"},{"name":"8.\u4E00\u952E\u53BB\u62A5\u540D","canvas_key":"ssl1rek2U7LDqvXcBFL5Pz","pm_cid":"pltpn09nfdo2xze","mt_cid":"mtl25t6nh2tt6hn"},{"name":"12.\u5F15\u5BFC\u53BB\u5019\u8865","canvas_key":"ssl1rek2U7LDqxwIYN2fAL","pm_cid":"pltpn09nfdo2xze","mt_cid":"mtl25t6nh2tt6hn"},{"name":"2.\u9009\u9884\u7EA6\u65E5\u671F","canvas_key":"ssl1rek2U7LDqySaQwWVoO","pm_cid":"pltpn09nfdo2xze","mt_cid":"mtl25t6nh2tt6hn"},{"name":"14.\u6DFB\u52A0\u4F18\u60E0\u5238","canvas_key":"ssl1rek2U7LDr034S2knjq","pm_cid":"pltpn09nfdo2xze","mt_cid":"mtl25t6nh2tt6hn"},{"name":"5.\u5173\u6CE8\u516C\u4F17\u53F7","canvas_key":"ssl1rek2U7LDr0PkLx7t0C","pm_cid":"pltpn09nfdo2xze","mt_cid":"mtl25t6nh2tt6hn"},{"name":"13.\u9009\u62E9\u4F18\u60E0\u5238","canvas_key":"ssl1rek2U7LDr0mgkBgq74","pm_cid":"pltpn09nfdo2xze","mt_cid":"mtl25t6nh2tt6hn"},{"name":"10.\u5019\u8865\u524D\u987B\u77E5","canvas_key":"ssl1rek2U7LDr1U405SLbP","pm_cid":"pltpn09nfdo2xze","mt_cid":"mtl25t6nh2tt6hn"},{"name":"9.\u5DF2\u62A5\u540D\u7528\u6237","canvas_key":"ssl1rek2U7LDr2UxlmsicN","pm_cid":"pltpn09nfdo2xze","mt_cid":"mtl25t6nh2tt6hn"},{"name":"4.\u62A5\u8BFE\u9009\u6392\u671F-\u72B6\u6001 1","canvas_key":"ssl1rek2U7LDr4qv9jJlFu","pm_cid":"pltpn09nfdo2xze","mt_cid":"mtl25t6nh2tt6hn"},{"name":"4.\u62A5\u8BFE\u9009\u6392\u671F-\u72B6\u6001 2","canvas_key":"ssl1rek2U7LDr7noflQmCy","pm_cid":"pltpn09nfdo2xze","mt_cid":"mtl25t6nh2tt6hn"},{"name":"6.\u4E00\u6B21\u6027\u8BA2\u9605","canvas_key":"ssl1rek2U7LDr8PxLUfvYL","pm_cid":"pltpn09nfdo2xze","mt_cid":"mtl25t6nh2tt6hn"},{"name":"5.\u8054\u7CFB\u5BA2\u670D\u9875-\u72B6\u6001 1","canvas_key":"ssl1rek2U7LDr93WMM9YmM","pm_cid":"pltpn09nfdo2xze","mt_cid":"mtl25t6nh2tt6hn"},{"name":"5.\u8054\u7CFB\u5BA2\u670D\u9875-\u72B6\u6001 2","canvas_key":"ssl1rek2U7LDr9TbF3UvAj","pm_cid":"pltpn09nfdo2xze","mt_cid":"mtl25t6nh2tt6hn"},{"name":"23.\u5B8C\u6210\u597D\u8BC4\u9875","canvas_key":"ssl1rek2U7LDrADmpc82RQ","pm_cid":"pltpn09nfdo2xze","mt_cid":"mtl25t6nh2tt6hn"},{"name":"29.\u6E29\u99A8\u63D0\u793A\u9875","canvas_key":"ssl1rek2U7LDrAjhSCmPTe","pm_cid":"pltpn09nfdo2xze","mt_cid":"mtl25t6nh2tt6hn"},{"name":"25.\u63D0\u4EA4\u6210\u529F\u540E","canvas_key":"ssl1rek2U7LDrBB4myN91a","pm_cid":"pltpn09nfdo2xze","mt_cid":"mtl25t6nh2tt6hn"},{"name":"21.\u9886\u5238\u6210\u529F\u9875","canvas_key":"ssl1rek2U7LDrBVW7PM4Yk","pm_cid":"pltpn09nfdo2xze","mt_cid":"mtl25t6nh2tt6hn"},{"name":"19.\u586B\u62A5\u540D\u4FE1\u606F","canvas_key":"ssl1rek2U7LDrBz13JKfYQ","pm_cid":"pltpn09nfdo2xze","mt_cid":"mtl25t6nh2tt6hn"},{"name":"16.\u65B0\u589E\u4E0A\u8BFE\u4EBA","canvas_key":"ssl1rek2U7LDrCinno41I8","pm_cid":"pltpn09nfdo2xze","mt_cid":"mtl25t6nh2tt6hn"},{"name":"24.\u5B8C\u6210\u5DEE\u8BC4\u9875","canvas_key":"ssl1rek2U7LDrD3oEmqSbY","pm_cid":"pltpn09nfdo2xze","mt_cid":"mtl25t6nh2tt6hn"},{"name":"17.\u5220\u9664\u4E0A\u8BFE\u4EBA","canvas_key":"ssl1rek2U7LDrDIjFsre5r","pm_cid":"pltpn09nfdo2xze","mt_cid":"mtl25t6nh2tt6hn"},{"name":"26.\u5C0F\u7EA2\u82B1\u8F6C\u8D60","canvas_key":"ssl1rek2U7LDrDcMTbkaqZ","pm_cid":"pltpn09nfdo2xze","mt_cid":"mtl25t6nh2tt6hn"},{"name":"28.\u786E\u8BA4\u8BA2\u5355\u9875","canvas_key":"ssl1rek2U7LDrE5lwBbObN","pm_cid":"pltpn09nfdo2xze","mt_cid":"mtl25t6nh2tt6hn"},{"name":"27.\u9009\u53D6\u8D27\u65B9\u5F0F","canvas_key":"ssl1rek2U7LDrJJktwJGeU","pm_cid":"pltpn09nfdo2xze","mt_cid":"mtl25t6nh2tt6hn"},{"name":"18.\u9009\u652F\u4ED8\u65B9\u5F0F","canvas_key":"ssl1rek2U7LDrJr3uw6LYI","pm_cid":"pltpn09nfdo2xze","mt_cid":"mtl25t6nh2tt6hn"},{"name":"15.\u52FE\u9009\u4E0A\u8BFE\u4EBA","canvas_key":"ssl1rek2U7LDrLNBwA4rC8","pm_cid":"pltpn09nfdo2xze","mt_cid":"mtl25t6nh2tt6hn"},{"name":"22.\u4F60\u6765\u665A\u4E86\u5566","canvas_key":"ssl1rek2U7LDrLynNVNERp","pm_cid":"pltpn09nfdo2xze","mt_cid":"mtl25t6nh2tt6hn"},{"name":"20.\u53D6\u6D88\u9884\u8BA2\u9875","canvas_key":"ssl1rek2U7LDrMI804JY8u","pm_cid":"pltpn09nfdo2xze","mt_cid":"mtl25t6nh2tt6hn"},{"name":"36.\u63D0\u95EE\u51FA\u4EF7\u9875","canvas_key":"ssl1rek2U7LDrMaJDqeu5u","pm_cid":"pltpn09nfdo2xze","mt_cid":"mtl25t6nh2tt6hn"},{"name":"39.\u6DFB\u52A0\u53D1\u7968\u9875","canvas_key":"ssl1rek2U7LDrNBEyHhtct","pm_cid":"pltpn09nfdo2xze","mt_cid":"mtl25t6nh2tt6hn"},{"name":"37.\u8F93\u5165\u70B9\u8BC4\u9875","canvas_key":"ssl1rek2U7LDrNaO6LAsGn","pm_cid":"pltpn09nfdo2xze","mt_cid":"mtl25t6nh2tt6hn"},{"name":"32.\u7B7E\u5230\u540D\u5355\u9875","canvas_key":"ssl1rek2U7LDrO44dgCEgU","pm_cid":"pltpn09nfdo2xze","mt_cid":"mtl25t6nh2tt6hn"},{"name":"33.\u9009\u95E8\u7968\u7B7E\u5230","canvas_key":"ssl1rek2U7LDrPLDwGboia","pm_cid":"pltpn09nfdo2xze","mt_cid":"mtl25t6nh2tt6hn"},{"name":"38.\u9009\u8BA2\u5355\u5F00\u7968","canvas_key":"ssl1rek2U7LDrPdcmjfkbT","pm_cid":"pltpn09nfdo2xze","mt_cid":"mtl25t6nh2tt6hn"},{"name":"31.\u4F01\u4E1A\u5207\u6362\u9875","canvas_key":"ssl1rek2U7LDrR1Zjbjy9G","pm_cid":"pltpn09nfdo2xze","mt_cid":"mtl25t6nh2tt6hn"},{"name":"40.\u9009\u62E9\u7968\u79CD\u7C7B","canvas_key":"ssl1rek2U7LDrRECu3MNnw","pm_cid":"pltpn09nfdo2xze","mt_cid":"mtl25t6nh2tt6hn"},{"name":"34.\u591A\u5F20\u7968\u7B7E\u5230","canvas_key":"ssl1rek2U7LDrRje0RxNe0","pm_cid":"pltpn09nfdo2xze","mt_cid":"mtl25t6nh2tt6hn"},{"name":"35.\u67E5\u770B\u8BA2\u5355\u9875","canvas_key":"ssl1rek2U7LDrS887kNnYZ","pm_cid":"pltpn09nfdo2xze","mt_cid":"mtl25t6nh2tt6hn"},{"name":"30.\u7533\u8BF7\u9000\u6B3E\u9875","canvas_key":"ssl1rek2U7LDrTPfEh2Y1F","pm_cid":"pltpn09nfdo2xze","mt_cid":"mtl25t6nh2tt6hn"},{"name":"42.\u8D60\u8BFE\u7ED9\u597D\u53CB","canvas_key":"ssl1rek2U7LDrTqtKyVtmK","pm_cid":"pltpn09nfdo2xze","mt_cid":"mtl25t6nh2tt6hn"},{"name":"43.\u6D77\u62A5\u5F15\u5BFC\u9875","canvas_key":"ssl1rek2U7LDrUIzKEKaSK","pm_cid":"pltpn09nfdo2xze","mt_cid":"mtl25t6nh2tt6hn"},{"name":"44.\u6682\u505C\u53D1\u8D27\u9875","canvas_key":"ssl1rek2U7LDrUcvfYWK5l","pm_cid":"pltpn09nfdo2xze","mt_cid":"mtl25t6nh2tt6hn"}],"\u5BFC\u822A":[{"name":"\u4F7F\u7528\u8BF4\u660E","canvas_key":"ssl5qw7vTtCAe0Q5lv1NYu","pm_cid":"pl5qw7vrn9iyssb","mt_cid":"mtl2ichdarkvzjd6"},{"name":"\u793E\u4EA4\u7C7B\u5BFC\u822A\u7EC4\u4EF6","canvas_key":"ssl5qw7vTtCAe0sWADIVdL","pm_cid":"pl5qw7vrn9iyssb","mt_cid":"mtl2ichdarkvzjd6"},{"name":"\u7535\u5546\u7C7B\u5BFC\u822A\u7EC4\u5EFA","canvas_key":"ssl5qw7vTtCAe1QeaGcOqP","pm_cid":"pl5qw7vrn9iyssb","mt_cid":"mtl2ichdarkvzjd6"},{"name":"\u65C5\u884C\u7C7B\u5BFC\u822A\u7EC4\u4EF6","canvas_key":"ssl5qw7vTtCAe1xR5uurYX","pm_cid":"pl5qw7vrn9iyssb","mt_cid":"mtl2ichdarkvzjd6"},{"name":"\u5916\u5356\u7C7B\u5BFC\u822A\u7EC4\u4EF6","canvas_key":"ssl5qw7vTtCAe2XibYPqem","pm_cid":"pl5qw7vrn9iyssb","mt_cid":"mtl2ichdarkvzjd6"},{"name":"\u652F\u4ED8\u7C7B\u5BFC\u822A\u7EC4\u4EF6","canvas_key":"ssl5qw7vTtCAe2sduccH3v","pm_cid":"pl5qw7vrn9iyssb","mt_cid":"mtl2ichdarkvzjd6"},{"name":"\u6559\u80B2\u7C7B\u5BFC\u822A\u7EC4\u4EF6","canvas_key":"ssl5qw7vTtCAe3NNAjGIah","pm_cid":"pl5qw7vrn9iyssb","mt_cid":"mtl2ichdarkvzjd6"},{"name":"\u4F5C\u8005\u4FE1\u606F","canvas_key":"ssl5qw7vTtCAe428zEXVjp","pm_cid":"pl5qw7vrn9iyssb","mt_cid":"mtl2ichdarkvzjd6"},{"name":"\u793E\u4EA4\u7C7B\uFF1A\u5E95\u90E8\u5BFC\u822A","canvas_key":"ssl2ib0gTtCAdtmsQdPKnz","pm_cid":"pl2ib0gb3mlm8rm","mt_cid":"mtl2ib0gesimq9wk"},{"name":"\u77ED\u89C6\u9891\uFF1A\u5E95\u90E8\u5BFC\u822A","canvas_key":"ssl2ib0gTtCAduDCj0nS8k","pm_cid":"pl2ib0gb3mlm8rm","mt_cid":"mtl2ib0gesimq9wk"},{"name":"\u65B0\u95FB\u7C7B\uFF1A\u5E95\u90E8\u5BFC\u822A","canvas_key":"ssl2ib0gTtCAduiYANuZw7","pm_cid":"pl2ib0gb3mlm8rm","mt_cid":"mtl2ib0gesimq9wk"},{"name":"\u9910\u996E\u7C7B\uFF1A\u5E95\u90E8\u5BFC\u822A","canvas_key":"ssl2ib0gTtCAdvAS4q7sF8","pm_cid":"pl2ib0gb3mlm8rm","mt_cid":"mtl2ib0gesimq9wk"},{"name":"\u7535\u5546\u7C7B\uFF1A\u5E95\u90E8\u5BFC\u822A","canvas_key":"ssl2ib0gTtCAdvaYarOb4i","pm_cid":"pl2ib0gb3mlm8rm","mt_cid":"mtl2ib0gesimq9wk"},{"name":"\u5E95\u90E8\u5BFC\u822A\u680F 01-\u521D\u59CB\u72B6\u6001","canvas_key":"sskk6iwjTtBwvxeedsLMAG","pm_cid":"pkk6iwjklglsds5","mt_cid":"mtkiim3zbpmwxb98"},{"name":"\u5E95\u90E8\u5BFC\u822A\u680F 01-\u9876\u90E8","canvas_key":"sskk6iwjTtBwvy5VKFofnj","pm_cid":"pkk6iwjklglsds5","mt_cid":"mtkiim3zbpmwxb98"},{"name":"\u5E95\u90E8\u5BFC\u822A\u680F 02","canvas_key":"sskk6iwjTtBwvyVoKNSiV3","pm_cid":"pkk6iwjklglsds5","mt_cid":"mtkiim3zbpmwxb98"},{"name":"\u5E95\u90E8\u5BFC\u822A\u680F 04","canvas_key":"sskk6iwjTtBwvz0MJGoliX","pm_cid":"pkk6iwjklglsds5","mt_cid":"mtkiim3zbpmwxb98"},{"name":"\u5E95\u90E8\u5BFC\u822A\u680F 05","canvas_key":"sskk6iwjTtBwvzMk9SH1NR","pm_cid":"pkk6iwjklglsds5","mt_cid":"mtkiim3zbpmwxb98"},{"name":"\u5E95\u90E8\u5BFC\u822A\u680F 03","canvas_key":"sskk6iwjTtBww04nYxmQQG","pm_cid":"pkk6iwjklglsds5","mt_cid":"mtkiim3zbpmwxb98"},{"name":"\u6211\u7684\u4FE1\u606F","canvas_key":"sskk6iwjTtBww0bqqyUgot","pm_cid":"pkk6iwjklglsds5","mt_cid":"mtkiim3zbpmwxb98"}],"\u652F\u4ED8":[{"name":"\u4E3B\u9875-\u9ED8\u8BA4\u72B6\u6001","canvas_key":"ssl0br1uTtC9nVWB18ryc8","pm_cid":"pl0br1upxsek27w","mt_cid":"mtl0br1uv31glwvf"},{"name":"\u4E3B\u9875-\u72B6\u6001 2","canvas_key":"ssl0br1uTtC9nWLU2jFKxR","pm_cid":"pl0br1upxsek27w","mt_cid":"mtl0br1uv31glwvf"},{"name":"\u6536\u94B1","canvas_key":"ssl0br1uTtC9nX6VG5SBFO","pm_cid":"pl0br1upxsek27w","mt_cid":"mtl0br1uv31glwvf"},{"name":"\u626B\u4E00\u626B-\u9ED8\u8BA4\u72B6\u6001","canvas_key":"ssl0br1uTtC9nXOL8ttW3L","pm_cid":"pl0br1upxsek27w","mt_cid":"mtl0br1uv31glwvf"},{"name":"\u626B\u4E00\u626B-\u72B6\u6001 2","canvas_key":"ssl0br1uTtC9nXXObBmyXw","pm_cid":"pl0br1upxsek27w","mt_cid":"mtl0br1uv31glwvf"},{"name":"\u626B\u4E00\u626B-\u72B6\u6001 3","canvas_key":"ssl0br1uTtC9nXbpFcnNhU","pm_cid":"pl0br1upxsek27w","mt_cid":"mtl0br1uv31glwvf"},{"name":"\u4ED8\u94B1","canvas_key":"ssl0br1uTtC9nXn3oZ2d26","pm_cid":"pl0br1upxsek27w","mt_cid":"mtl0br1uv31glwvf"},{"name":"\u8F6C\u8D26","canvas_key":"ssl0br1uTtC9nY4E0WC9NA","pm_cid":"pl0br1upxsek27w","mt_cid":"mtl0br1uv31glwvf"},{"name":"\u8F6C\u5230\u652F\u4ED8\u5B9D\u8D26\u6237-\u9ED8\u8BA4\u72B6\u6001","canvas_key":"ssl0br1uTtC9nZJGmGZNXH","pm_cid":"pl0br1upxsek27w","mt_cid":"mtl0br1uv31glwvf"},{"name":"\u8F6C\u5230\u652F\u4ED8\u5B9D\u8D26\u6237-\u72B6\u6001 2","canvas_key":"ssl0br1uTtC9nZmWZ36qid","pm_cid":"pl0br1upxsek27w","mt_cid":"mtl0br1uv31glwvf"},{"name":"\u8F6C\u5230\u652F\u4ED8\u5B9D\u8D26\u6237-\u72B6\u6001 3","canvas_key":"ssl0br1uTtC9na9wtYdywA","pm_cid":"pl0br1upxsek27w","mt_cid":"mtl0br1uv31glwvf"},{"name":"\u8F6C\u5230\u652F\u4ED8\u5B9D\u8D26\u6237-\u72B6\u6001 4","canvas_key":"ssl0br1uTtC9naH4YM9gjA","pm_cid":"pl0br1upxsek27w","mt_cid":"mtl0br1uv31glwvf"},{"name":"\u8F6C\u5230\u652F\u4ED8\u5B9D\u8D26\u6237-\u72B6\u6001 5","canvas_key":"ssl0br1uTtC9naPXo0HoeA","pm_cid":"pl0br1upxsek27w","mt_cid":"mtl0br1uv31glwvf"},{"name":"\u8F6C\u5230\u652F\u4ED8\u5B9D\u8D26\u6237-\u72B6\u6001 6","canvas_key":"ssl0br1uTtC9naYZszCGwi","pm_cid":"pl0br1upxsek27w","mt_cid":"mtl0br1uv31glwvf"},{"name":"\u8F6C\u5230\u652F\u4ED8\u5B9D\u8D26\u6237-\u72B6\u6001 7","canvas_key":"ssl0br1uTtC9nah3DlmQOr","pm_cid":"pl0br1upxsek27w","mt_cid":"mtl0br1uv31glwvf"},{"name":"\u652F\u4ED8\u6210\u529F","canvas_key":"ssl0br1uTtC9nb0vTosE5S","pm_cid":"pl0br1upxsek27w","mt_cid":"mtl0br1uv31glwvf"},{"name":"\u8F6C\u5165-\u9ED8\u8BA4\u72B6\u6001","canvas_key":"ssl0br1uTtC9nbPLIT43tS","pm_cid":"pl0br1upxsek27w","mt_cid":"mtl0br1uv31glwvf"},{"name":"\u8F6C\u5165-\u72B6\u6001 2","canvas_key":"ssl0br1uTtC9nc3oXIxTIx","pm_cid":"pl0br1upxsek27w","mt_cid":"mtl0br1uv31glwvf"},{"name":"\u8F6C\u5165-\u72B6\u6001 3","canvas_key":"ssl0br1uTtC9ncGhSSjAW1","pm_cid":"pl0br1upxsek27w","mt_cid":"mtl0br1uv31glwvf"},{"name":"\u8F6C\u5165-\u72B6\u6001 4","canvas_key":"ssl0br1uTtC9ncbawWdsRq","pm_cid":"pl0br1upxsek27w","mt_cid":"mtl0br1uv31glwvf"},{"name":"\u8F6C\u5165-\u72B6\u6001 5","canvas_key":"ssl0br1uTtC9ncjCBYfPey","pm_cid":"pl0br1upxsek27w","mt_cid":"mtl0br1uv31glwvf"},{"name":"\u8F6C\u5165\u6210\u529F","canvas_key":"ssl0br1uTtC9nd0HdeFiB7","pm_cid":"pl0br1upxsek27w","mt_cid":"mtl0br1uv31glwvf"},{"name":"\u8F6C\u51FA-\u9ED8\u8BA4\u72B6\u6001","canvas_key":"ssl0br1uTtC9ndl24QIhB8","pm_cid":"pl0br1upxsek27w","mt_cid":"mtl0br1uv31glwvf"},{"name":"\u8F6C\u51FA-\u72B6\u6001 2","canvas_key":"ssl0br1uTtC9ndwnmdbRiv","pm_cid":"pl0br1upxsek27w","mt_cid":"mtl0br1uv31glwvf"},{"name":"\u8F6C\u51FA-\u72B6\u6001 3","canvas_key":"ssl0br1uTtC9ne2LRJv7Fg","pm_cid":"pl0br1upxsek27w","mt_cid":"mtl0br1uv31glwvf"},{"name":"\u8F6C\u51FA-\u72B6\u6001 4","canvas_key":"ssl0br1uTtC9ne9H9DzSQS","pm_cid":"pl0br1upxsek27w","mt_cid":"mtl0br1uv31glwvf"},{"name":"\u8F6C\u51FA-\u72B6\u6001 5","canvas_key":"ssl0br1uTtC9neOLRNBL6z","pm_cid":"pl0br1upxsek27w","mt_cid":"mtl0br1uv31glwvf"},{"name":"\u8F6C\u51FA-\u72B6\u6001 6","canvas_key":"ssl0br1uTtC9neVaT2391l","pm_cid":"pl0br1upxsek27w","mt_cid":"mtl0br1uv31glwvf"},{"name":"\u8F6C\u51FA\u6210\u529F","canvas_key":"ssl0br1uTtC9ndDNxxdImI","pm_cid":"pl0br1upxsek27w","mt_cid":"mtl0br1uv31glwvf"},{"name":"\u652F\u4ED8\u5B9D-\u652F\u4ED8\u8DF3\u8F6C","canvas_key":"ssk4s6t6TtBtoIC9Jh91T2","pm_cid":"pk4s6t613ttg9bm","mt_cid":"mtk4s6t61fej3v17"},{"name":"\u5FAE\u4FE1\u542F\u52A8","canvas_key":"ssk4s6t6TtBtoIJe8y2bEe","pm_cid":"pk4s6t613ttg9bm","mt_cid":"mtk4s6t61fej3v17"},{"name":"\u652F\u4ED8","canvas_key":"ssk4s6t6TtBtoIPPJtQE3R","pm_cid":"pk4s6t613ttg9bm","mt_cid":"mtk4s6t61fej3v17"},{"name":"\u786E\u8BA4\u652F\u4ED8","canvas_key":"ssk4s6t6TtBtoIgUkIk3s1","pm_cid":"pk4s6t613ttg9bm","mt_cid":"mtk4s6t61fej3v17"},{"name":"\u6307\u7EB9\u652F\u4ED8","canvas_key":"ssk4s6t6TtBtoJ1bQ8ZK5l","pm_cid":"pk4s6t613ttg9bm","mt_cid":"mtk4s6t61fej3v17"},{"name":"\u4ED8\u6B3E\u8DF3\u8F6C","canvas_key":"ssk4s6t6TtBtoJE1GG8N7A","pm_cid":"pk4s6t613ttg9bm","mt_cid":"mtk4s6t61fej3v17"},{"name":"\u652F\u4ED8\u6210\u529F","canvas_key":"ssk4s6t6TtBtoJPcnUWdjq","pm_cid":"pk4s6t613ttg9bm","mt_cid":"mtk4s6t61fej3v17"},{"name":"\u652F\u4ED8\u5B9D\u542F\u52A8","canvas_key":"ssk4s6t5TtBtoDhAorrwYF","pm_cid":"pk4s6t5p499w7lu","mt_cid":"mtk4s6t5phopwxsl"},{"name":"\u652F\u4ED8","canvas_key":"ssk4s6t5TtBtoDn7SLyEp1","pm_cid":"pk4s6t5p499w7lu","mt_cid":"mtk4s6t5phopwxsl"},{"name":"\u6307\u7EB9\u652F\u4ED8","canvas_key":"ssk4s6t5TtBtoE0A2nXkkq","pm_cid":"pk4s6t5p499w7lu","mt_cid":"mtk4s6t5phopwxsl"},{"name":"\u4ED8\u6B3E\u6210\u529F1","canvas_key":"ssk4s6t5TtBtoEBiiSlsOd","pm_cid":"pk4s6t5p499w7lu","mt_cid":"mtk4s6t5phopwxsl"},{"name":"\u4ED8\u6B3E\u6210\u529F2","canvas_key":"ssk4s6t5TtBtoEJChIhzVz","pm_cid":"pk4s6t5p499w7lu","mt_cid":"mtk4s6t5phopwxsl"},{"name":"\u4E3B\u9875-\u9ED8\u8BA4\u72B6\u6001","canvas_key":"ssl096m4TtC9mbmNWxHMK4","pm_cid":"pl096m45jekpdpf","mt_cid":"mtl096m4g7gki6zf"},{"name":"\u4E3B\u9875-\u72B6\u6001 2","canvas_key":"ssl096m4TtC9mcJqznD9VZ","pm_cid":"pl096m45jekpdpf","mt_cid":"mtl096m4g7gki6zf"},{"name":"\u8F6C\u8D26","canvas_key":"ssl096m4TtC9mcmkTssxw5","pm_cid":"pl096m45jekpdpf","mt_cid":"mtl096m4g7gki6zf"},{"name":"\u652F\u4ED8\u6210\u529F","canvas_key":"ssl096m4TtC9mccRNRWOyv","pm_cid":"pl096m45jekpdpf","mt_cid":"mtl096m4g7gki6zf"},{"name":"\u8F6C\u5230\u652F\u4ED8\u5B9D\u8D26\u6237-\u9ED8\u8BA4\u72B6\u6001","canvas_key":"ssl096m4TtC9mdkEIh714Q","pm_cid":"pl096m45jekpdpf","mt_cid":"mtl096m4g7gki6zf"},{"name":"\u8F6C\u5230\u652F\u4ED8\u5B9D\u8D26\u6237-\u72B6\u6001 2","canvas_key":"ssl096m4TtC9me27RDjbPK","pm_cid":"pl096m45jekpdpf","mt_cid":"mtl096m4g7gki6zf"},{"name":"\u8F6C\u5230\u652F\u4ED8\u5B9D\u8D26\u6237-\u72B6\u6001 3","canvas_key":"ssl096m4TtC9meCi115sul","pm_cid":"pl096m45jekpdpf","mt_cid":"mtl096m4g7gki6zf"},{"name":"\u8F6C\u5230\u652F\u4ED8\u5B9D\u8D26\u6237-\u72B6\u6001 4","canvas_key":"ssl096m4TtC9meJ3eVlDF6","pm_cid":"pl096m45jekpdpf","mt_cid":"mtl096m4g7gki6zf"},{"name":"\u8F6C\u5230\u652F\u4ED8\u5B9D\u8D26\u6237-\u72B6\u6001 5","canvas_key":"ssl096m4TtC9meRCT5jI26","pm_cid":"pl096m45jekpdpf","mt_cid":"mtl096m4g7gki6zf"},{"name":"\u8F6C\u5230\u652F\u4ED8\u5B9D\u8D26\u6237-\u72B6\u6001 6","canvas_key":"ssl096m4TtC9meZcrWP8pX","pm_cid":"pl096m45jekpdpf","mt_cid":"mtl096m4g7gki6zf"},{"name":"\u8F6C\u5230\u652F\u4ED8\u5B9D\u8D26\u6237-\u72B6\u6001 7","canvas_key":"ssl096m4TtC9menZCTxDWx","pm_cid":"pl096m45jekpdpf","mt_cid":"mtl096m4g7gki6zf"},{"name":"\u626B\u4E00\u626B-\u9ED8\u8BA4\u72B6\u6001","canvas_key":"ssl096m4TtC9mcyKah6cra","pm_cid":"pl096m45jekpdpf","mt_cid":"mtl096m4g7gki6zf"},{"name":"\u626B\u4E00\u626B-\u72B6\u6001 2","canvas_key":"ssl096m4TtC9md49d0V3N0","pm_cid":"pl096m45jekpdpf","mt_cid":"mtl096m4g7gki6zf"},{"name":"\u626B\u4E00\u626B-\u72B6\u6001 3","canvas_key":"ssl096m4TtC9md7tSULwFK","pm_cid":"pl096m45jekpdpf","mt_cid":"mtl096m4g7gki6zf"},{"name":"\u6536\u94B1","canvas_key":"ssl096m4TtC9mdLs671nG","pm_cid":"pl096m45jekpdpf","mt_cid":"mtl096m4g7gki6zf"},{"name":"\u4ED8\u94B1","canvas_key":"ssl096m4TtC9mf9IZhp2Bk","pm_cid":"pl096m45jekpdpf","mt_cid":"mtl096m4g7gki6zf"},{"name":"\u8F6C\u5165-\u9ED8\u8BA4\u72B6\u6001","canvas_key":"ssl096m4TtC9mfUJQtyueA","pm_cid":"pl096m45jekpdpf","mt_cid":"mtl096m4g7gki6zf"},{"name":"\u8F6C\u5165-\u72B6\u6001 2","canvas_key":"ssl096m4TtC9mfgWxZferV","pm_cid":"pl096m45jekpdpf","mt_cid":"mtl096m4g7gki6zf"},{"name":"\u8F6C\u5165-\u72B6\u6001 3","canvas_key":"ssl096m4TtC9mflvc9iDwo","pm_cid":"pl096m45jekpdpf","mt_cid":"mtl096m4g7gki6zf"},{"name":"\u8F6C\u5165-\u72B6\u6001 4","canvas_key":"ssl096m4TtC9mfqMqEARcc","pm_cid":"pl096m45jekpdpf","mt_cid":"mtl096m4g7gki6zf"},{"name":"\u8F6C\u5165-\u72B6\u6001 5","canvas_key":"ssl096m4TtC9mfuBPLooCg","pm_cid":"pl096m45jekpdpf","mt_cid":"mtl096m4g7gki6zf"},{"name":"\u8F6C\u5165\u6210\u529F","canvas_key":"ssl096m4TtC9mhkt3KGnk","pm_cid":"pl096m45jekpdpf","mt_cid":"mtl096m4g7gki6zf"},{"name":"\u8F6C\u51FA-\u9ED8\u8BA4\u72B6\u6001","canvas_key":"ssl096m4TtC9mgZgVP2LQv","pm_cid":"pl096m45jekpdpf","mt_cid":"mtl096m4g7gki6zf"},{"name":"\u8F6C\u51FA-\u72B6\u6001 2","canvas_key":"ssl096m4TtC9mgkN6GKJT9","pm_cid":"pl096m45jekpdpf","mt_cid":"mtl096m4g7gki6zf"},{"name":"\u8F6C\u51FA-\u72B6\u6001 3","canvas_key":"ssl096m4TtC9mgrLM0NCsk","pm_cid":"pl096m45jekpdpf","mt_cid":"mtl096m4g7gki6zf"},{"name":"\u8F6C\u51FA-\u72B6\u6001 4","canvas_key":"ssl096m4TtC9mgzJe1ihQy","pm_cid":"pl096m45jekpdpf","mt_cid":"mtl096m4g7gki6zf"},{"name":"\u8F6C\u51FA-\u72B6\u6001 5","canvas_key":"ssl096m4TtC9mh7odjWvJp","pm_cid":"pl096m45jekpdpf","mt_cid":"mtl096m4g7gki6zf"},{"name":"\u8F6C\u51FA-\u72B6\u6001 6","canvas_key":"ssl096m4TtC9mhH1Az3NHK","pm_cid":"pl096m45jekpdpf","mt_cid":"mtl096m4g7gki6zf"},{"name":"\u8F6C\u51FA\u6210\u529F","canvas_key":"ssl096m4TtC9mhv9HCgNXi","pm_cid":"pl096m45jekpdpf","mt_cid":"mtl096m4g7gki6zf"}],"\u8868\u5355":[{"name":"\u8868\u5355\u586B\u5199-\u63D0\u4EA4\u7EBF\u7D22","canvas_key":"rcUGkBX5BHdxUWzA","pm_cid":"pm2ly0bq8r2t5ovdb","mt_cid":"mtly0bq8r3l9a857"},{"name":"\u8868\u5355\u586B\u5199-\u5B8C\u5584\u8F66\u8F86\u4FE1\u606F","canvas_key":"rcUGkBX5UGv51VIr5r91hg","pm_cid":"pm2ly0bq8r2t5ovdb","mt_cid":"mtly0bq8r3l9a857"},{"name":"\u8868\u5355\u586B\u5199-\u6DFB\u52A0\u5DE5\u4F5C\u4FE1\u606F","canvas_key":"rcUGkBX5UGy7u5RWp1xUum","pm_cid":"pm2ly0bq8r2t5ovdb","mt_cid":"mtly0bq8r3l9a857"},{"name":"\u8868\u5355\u586B\u5199-\u4F01\u4E1A\u4FE1\u606F","canvas_key":"rcUGkBX5UH04D1zJrM2CZF","pm_cid":"pm2ly0bq8r2t5ovdb","mt_cid":"mtly0bq8r3l9a857"},{"name":"\u8868\u5355\u586B\u5199-\u8EAB\u4EFD\u9A8C\u8BC1","canvas_key":"rcUGkBX5UH0FLaQQSzQrxL","pm_cid":"pm2ly0bq8r2t5ovdb","mt_cid":"mtly0bq8r3l9a857"},{"name":"\u8868\u5355\u586B\u5199-\u8EAB\u4EFD\u9A8C\u8BC1","canvas_key":"rcUGkBX5UH0MNHAW1pSsE8","pm_cid":"pm2ly0bq8r2t5ovdb","mt_cid":"mtly0bq8r3l9a857"},{"name":"\u8868\u5355\u586B\u5199-\u4E2A\u4EBA\u4FE1\u606F\u7F16\u8F91","canvas_key":"rcUGkBX5UH0RZy4cjDR6Rg","pm_cid":"pm2ly0bq8r2t5ovdb","mt_cid":"mtly0bq8r3l9a857"},{"name":"\u8868\u5355\u586B\u5199-\u5B9E\u540D\u8BA4\u8BC1-1","canvas_key":"rcUGkBX5UH0W2gTfRimjXD","pm_cid":"pm2ly0bq8r2t5ovdb","mt_cid":"mtly0bq8r3l9a857"},{"name":"\u8868\u5355\u586B\u5199-\u5B9E\u540D\u8BA4\u8BC1-2","canvas_key":"rcUGkBX5UH1B1WxMji5lFI","pm_cid":"pm2ly0bq8r2t5ovdb","mt_cid":"mtly0bq8r3l9a857"},{"name":"\u8868\u5355\u586B\u5199-\u53D1\u5E03\u6D3B\u52A8","canvas_key":"rcUGkBX5UH1QqPewY7fxQQ","pm_cid":"pm2ly0bq8r2t5ovdb","mt_cid":"mtly0bq8r3l9a857"},{"name":"\u8868\u5355\u586B\u5199-\u586B\u5199\u6295\u4FDD\u4FE1\u606F","canvas_key":"rcUGkBX5UH3SkGvqRdCwv","pm_cid":"pm2ly0bq8r2t5ovdb","mt_cid":"mtly0bq8r3l9a857"},{"name":"\u8868\u5355\u586B\u5199-\u4E2A\u4EBA\u4FE1\u606F\u6CE8\u518C","canvas_key":"rcUGkBX5UH3loRxIyjX3iY","pm_cid":"pm2ly0bq8r2t5ovdb","mt_cid":"mtly0bq8r3l9a857"},{"name":"\u8868\u5355\u586B\u5199-\u59D4\u6258\u7BA1\u7406","canvas_key":"rcUGkBX5UH4BbY5nINmDDV","pm_cid":"pm2ly0bq8r2t5ovdb","mt_cid":"mtly0bq8r3l9a857"},{"name":"\u8868\u5355\u586B\u5199-\u53D1\u5E03\u5546\u54C1","canvas_key":"rcUGkBX5UH4Fa6kdhnnBTf","pm_cid":"pm2ly0bq8r2t5ovdb","mt_cid":"mtly0bq8r3l9a857"},{"name":"\u8868\u5355\u586B\u5199-\u53D1\u5E03\u56E2\u8D2D","canvas_key":"rcUGkBX5UH4IxTfpQnA98p","pm_cid":"pm2ly0bq8r2t5ovdb","mt_cid":"mtly0bq8r3l9a857"},{"name":"\u8868\u5355\u586B\u5199-\u63CF\u8FF0\u75C5\u60C5","canvas_key":"rcUGkBX5UH4TTE9b0U508X","pm_cid":"pm2ly0bq8r2t5ovdb","mt_cid":"mtly0bq8r3l9a857"},{"name":"\u8868\u5355\u586B\u5199-\u7535\u8BDD\u54A8\u8BE2\u75C5\u60C5","canvas_key":"rcUGkBX5UH4ZDwmdaQn7gM","pm_cid":"pm2ly0bq8r2t5ovdb","mt_cid":"mtly0bq8r3l9a857"},{"name":"\u8868\u5355\u586B\u5199-\u610F\u89C1\u53CD\u9988","canvas_key":"rcUGkBX5UH4exZdO5Vvr6k","pm_cid":"pm2ly0bq8r2t5ovdb","mt_cid":"mtly0bq8r3l9a857"},{"name":"\u8868\u5355\u586B\u5199-\u586B\u5199\u8054\u7CFB\u4EBA","canvas_key":"rcUGkBX5UH4i2LYIg1S26Y","pm_cid":"pm2ly0bq8r2t5ovdb","mt_cid":"mtly0bq8r3l9a857"},{"name":"\u8868\u5355\u586B\u5199-\u5F00\u7968","canvas_key":"rcUGkBX5UH4nsoBnVvvgCf","pm_cid":"pm2ly0bq8r2t5ovdb","mt_cid":"mtly0bq8r3l9a857"},{"name":"\u8868\u5355\u586B\u5199-\u6DFB\u52A0\u94F6\u884C\u5361","canvas_key":"rcUGkBX5UH4uJ6dAre2y0W","pm_cid":"pm2ly0bq8r2t5ovdb","mt_cid":"mtly0bq8r3l9a857"},{"name":"\u8868\u5355\u586B\u5199-\u4FEE\u6539\u6211\u7684\u4E2A\u4EBA\u4FE1\u606F","canvas_key":"rcUGkBX5UH5TWVwO3W1R00","pm_cid":"pm2ly0bq8r2t5ovdb","mt_cid":"mtly0bq8r3l9a857"},{"name":"\u8868\u5355\u586B\u5199-\u9884\u7EA6\u7533\u8BF7","canvas_key":"rcUGkBX5UH5Zj1I5Bp5tf6","pm_cid":"pm2ly0bq8r2t5ovdb","mt_cid":"mtly0bq8r3l9a857"},{"name":"\u8868\u5355\u586B\u5199-\u6DFB\u52A0\u5E38\u7528\u65C5\u5BA2","canvas_key":"rcUGkBX5UH5c1uvkek7npS","pm_cid":"pm2ly0bq8r2t5ovdb","mt_cid":"mtly0bq8r3l9a857"},{"name":"\u8868\u5355\u586B\u5199-\u53D1\u5E03\u52A8\u6001","canvas_key":"rcUGkBX5UH5pAFRpBfixdb","pm_cid":"pm2ly0bq8r2t5ovdb","mt_cid":"mtly0bq8r3l9a857"},{"name":"\u8868\u5355\u586B\u5199-\u53D1\u5E03\u52A8\u6001","canvas_key":"rcUGkBX5UH5tu53DOATJR6","pm_cid":"pm2ly0bq8r2t5ovdb","mt_cid":"mtly0bq8r3l9a857"},{"name":"\u8868\u5355\u586B\u5199-\u53D1\u5E03\u5185\u5BB9","canvas_key":"rcUGkBX5UH5wcZ3mJMUQBl","pm_cid":"pm2ly0bq8r2t5ovdb","mt_cid":"mtly0bq8r3l9a857"},{"name":"\u8868\u5355\u586B\u5199-\u521B\u5EFA\u5DE5\u5355","canvas_key":"rcUGkBX5UH61bHVO29tceG","pm_cid":"pm2ly0bq8r2t5ovdb","mt_cid":"mtly0bq8r3l9a857"},{"name":"\u8868\u5355\u586B\u5199-\u610F\u89C1\u53CD\u9988","canvas_key":"rcUGkBX5UH64qhNkNdfqol","pm_cid":"pm2ly0bq8r2t5ovdb","mt_cid":"mtly0bq8r3l9a857"},{"name":"\u8868\u5355\u586B\u5199-\u5728\u7EBF\u62A5\u4FEE","canvas_key":"sslewjb0UH6OAoM6IAept3","pm_cid":"pm2ly0bq8r2t5ovdb","mt_cid":"mtly0bq8r3l9a857"},{"name":"Navbar\u5BFC\u822A\u680F","canvas_key":"ssl2flfnTtCAK3Cevw7gCq","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"TitleButton\u6807\u9898\u6309\u94AE","canvas_key":"ssl2flfnTtCAK4LvUR3B6w","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"PageNav\u9875\u9762\u5BFC\u822A-\u72B6\u6001 1","canvas_key":"ssl2flfnTtCAK4jfPoA7OL","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"PageNav\u9875\u9762\u5BFC\u822A-\u6253\u5F00\u5C0F\u7A0B\u5E8F\u63D0\u793A","canvas_key":"ssl2flfnTtCAK4oiIPzb6a","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"\u65B0\u9875\u9762","canvas_key":"ssl2flfnTtCAK58ypSoEt9","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"Swipe \u8F6E\u64AD\u56FE","canvas_key":"ssl2flfnTtCAK5IZII80Zu","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"Grid \u5BAB\u683C","canvas_key":"ssl2flfnTtCAK5otN5Ligm","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"Tabbar \u5E95\u90E8\u5BFC\u822A","canvas_key":"ssl2flfnTtCAK6tKuluWn8","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"Tab \u6807\u7B7E\u9875","canvas_key":"ssl2flfnTtCAK78x2l60iW","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"Footer \u9875\u811A-\u72B6\u6001 1","canvas_key":"ssl2flfnTtCAK8GrZGAnrU","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"Footer \u9875\u811A-\u72B6\u6001 2","canvas_key":"ssl2flfnTtCAK8Pk9wJZBP","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"Curtain \u5E55\u5E18-\u72B6\u6001 1","canvas_key":"ssl2flfnTtCAK8mJcFY1by","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"Curtain \u5E55\u5E18-\u5728\u5185\u90E8","canvas_key":"ssl2flfnTtCAK8tzPrCAP0","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"Curtain \u5E55\u5E18-\u5DE6\u4E0A","canvas_key":"ssl2flfnTtCAK8zbuiCiNv","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"Curtain \u5E55\u5E18-\u9876\u90E8","canvas_key":"ssl2flfnTtCAK94WJDB8xW","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"Curtain \u5E55\u5E18-\u53F3\u4E0A","canvas_key":"ssl2flfnTtCAK9Az09WUUb","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"Curtain \u5E55\u5E18-\u5DE6\u4E0B","canvas_key":"ssl2flfnTtCAK9GDVclTTW","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"Curtain \u5E55\u5E18-\u5E95\u90E8","canvas_key":"ssl2flfnTtCAK9Vrh6ay4b","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"Curtain \u5E55\u5E18-\u53F3\u4E0B","canvas_key":"ssl2flfnTtCAK9bMaLZHRY","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"Curtain \u5E55\u5E18-\u906E\u7F69\u5173\u95ED","canvas_key":"ssl2flfnTtCAK9gM91vGju","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"Collapse \u6298\u53E0\u9762\u677F","canvas_key":"ssl2flfnTtCAK9sEmqLNdS","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"Pagination \u5206\u9875","canvas_key":"ssl2flfnTtCAKAHYlunp5J","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"Steps \u6B65\u9AA4\u6761","canvas_key":"ssl2flfnTtCAKAxTwYLnPl","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"Radio \u5355\u9009","canvas_key":"ssl2flfnTtCAKBY1xyMrb4","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"Check \u591A\u9009","canvas_key":"ssl2flfnTtCAKCqeSYIYXw","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"Switch \u5F00\u5173-\u72B6\u6001 1","canvas_key":"ssl2flfnTtCAKECDYj7CqE","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"Switch \u5F00\u5173-\u72B6\u6001 3","canvas_key":"ssl2flfnTtCAKENbA9C9zo","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"Switch \u5F00\u5173-\u63D0\u793A\u6253\u5F00","canvas_key":"ssl2flfnTtCAKEW4ECOjLk","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"Switch \u5F00\u5173-\u63D0\u793A\u5173\u95ED","canvas_key":"ssl2flfnTtCAKEguqrSFqP","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"Input \u8F93\u5165\u6846","canvas_key":"ssl2flfnTtCAKF8D77eXyL","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"MultilineText \u591A\u884C\u6587\u672C\u8F93\u5165","canvas_key":"ssl2flfnTtCAKFVzJESfy2","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"Progress \u8FDB\u5EA6\u6761","canvas_key":"ssl2flfnTtCAKFg1VGMwOA","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"Editor \u7F16\u8F91\u5668","canvas_key":"ssl2flfnTtCAKFzNJBn6zS","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"Picker \u9009\u62E9\u5668-\u72B6\u6001 1","canvas_key":"ssl2flfnTtCAKGywd4Sboe","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"Picker \u9009\u62E9\u5668-\u9009\u62E9\u56FD\u5BB6","canvas_key":"ssl2flfnTtCAKHJn40kjMV","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"Picker \u9009\u62E9\u5668-\u9009\u62E9\u5927\u5B66\u4E13\u4E1A","canvas_key":"ssl2flfnTtCAKHZbRxxeJW","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"Picker \u9009\u62E9\u5668-\u9009\u62E9\u5730\u533A","canvas_key":"ssl2flfnTtCAKHq5sUaIF8","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"Picker \u9009\u62E9\u5668-\u9009\u9879\u5305\u542B\u7981\u7528","canvas_key":"ssl2flfnTtCAKIH8IC3ibL","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"Picker \u9009\u62E9\u5668-\u9519\u8BEF","canvas_key":"ssl2flfnTtCAKIWrAvaXw6","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"Picker \u9009\u62E9\u5668-\u9009\u62E9\u804C\u4F4D","canvas_key":"ssl2flfnTtCAKIn44aGUmt","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"Picker \u9009\u62E9\u5668-\u9009\u62E9\u56FD\u5BB6","canvas_key":"ssl2flfnTtCAKJDLA0I9LG","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"Picker \u9009\u62E9\u5668-\u9009\u62E9\u65F6\u95F4","canvas_key":"ssl2flfnTtCAKJW4aNPypz","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"Picker \u9009\u62E9\u5668-\u9009\u62E9\u65E5\u671F","canvas_key":"ssl2flfnTtCAKJsgH4s1aA","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"PickerView \u9009\u62E9\u89C6\u56FE","canvas_key":"ssl2flfnTtCAKKWnx40wwY","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"Slider \u6ED1\u5757","canvas_key":"ssl2flfnTtCAKKwfW6jOpK","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"List \u5217\u8868","canvas_key":"ssl2flfnTtCAKLAbArMUbz","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"SwipeAction \u6ED1\u52A8\u64CD\u4F5C","canvas_key":"ssl2flfnTtCAKLd8Qzzvrn","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"Form \u8868\u5355","canvas_key":"ssl2flfnTtCAKMIK4dWUhS","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"FormTxample \u8868\u5355\u793A\u4F8B","canvas_key":"ssl2flfnTtCAKMf9QNJDd0","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"Upload \u4E0A\u4F20","canvas_key":"ssl2flfnTtCAKNVMR1wjxM","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"InputNumber \u8BA1\u6570\u5668","canvas_key":"ssl2flfnTtCAKNo6MhTHXZ","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"Avatar \u5934\u50CF","canvas_key":"ssl2flfnTtCAKOF2BxUs38","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"OverLay \u906E\u7F69\u5C42-\u72B6\u6001 1","canvas_key":"ssl2flfnTtCAKOeY6vrRfA","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"OverLay \u906E\u7F69\u5C42-\u906E\u7F69\u5C42","canvas_key":"ssl2flfnTtCAKOjZXy1t18","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"OverLay \u906E\u7F69\u5C42-\u5D4C\u5957\u5185\u5BB9","canvas_key":"ssl2flfnTtCAKOnqPEY8Nx","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"Article \u6587\u7AE0","canvas_key":"ssl2flfnTtCAKP1w6g8vpt","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"Badge \u5FBD\u6807","canvas_key":"ssl2flfnTtCAKPLPC7j7DI","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"ImgPreview \u56FE\u7247\u9884\u89C8-\u72B6\u6001 1","canvas_key":"ssl2flfnTtCAKPsoX2jYId","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"ImgPreview \u56FE\u7247\u9884\u89C8-a1","canvas_key":"ssl2flfnTtCAKPzLEbaBEC","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"ImgPreview \u56FE\u7247\u9884\u89C8-a2","canvas_key":"ssl2flfnTtCAKQ9BI0W1yq","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"ImgPreview \u56FE\u7247\u9884\u89C8-b1","canvas_key":"ssl2flfnTtCAKQOq4sLB0B","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"ImgPreview \u56FE\u7247\u9884\u89C8-b2","canvas_key":"ssl2flfnTtCAKQUgmyOwPv","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"ImgPreview \u56FE\u7247\u9884\u89C8-c1","canvas_key":"ssl2flfnTtCAKQZwIksk3c","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"ImgPreview \u56FE\u7247\u9884\u89C8-c2","canvas_key":"ssl2flfnTtCAKQg3VPJItg","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"ImgCropper \u56FE\u7247\u88C1\u526A-\u72B6\u6001 1","canvas_key":"ssl2flfnTtCAKR0Y6Z8VnT","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"ImgCropper \u56FE\u7247\u88C1\u526A-\u4E0A\u4F20\u540E","canvas_key":"ssl2flfnTtCAKR6q54BI6d","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"ImgCropper \u56FE\u7247\u88C1\u526A-1","canvas_key":"ssl2flfnTtCAKRBvjxVlsI","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"ImgCropper \u56FE\u7247\u88C1\u526A-2","canvas_key":"ssl2flfnTtCAKRJBpDUU1h","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"ImgCropper \u56FE\u7247\u88C1\u526A-3","canvas_key":"ssl2flfnTtCAKRQma11ygZ","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"ImgCropper \u56FE\u7247\u88C1\u526A-4","canvas_key":"ssl2flfnTtCAKRZTv4bZUw","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"LoadMore \u52A0\u8F7D\u66F4\u591A","canvas_key":"ssl2flfnTtCAKRxZH7C41j","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"Loading \u52A0\u8F7D\u4E2D","canvas_key":"ssl2flfnTtCAKSBHCpaamM","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"Empty \u7A7A\u72B6\u6001","canvas_key":"ssl2flfnTtCAKSURa7YW8e","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"Panel \u9762\u677F","canvas_key":"ssl2flfnTtCAKSrHdhTV8p","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"FormPreview \u8868\u5355\u9884\u89C8","canvas_key":"ssl2flfnTtCAKTSQ1tCR2p","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"Rate \u8BC4\u5206","canvas_key":"ssl2flfnTtCAKTkjnQWGzg","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"Tag \u6807\u7B7E","canvas_key":"ssl2flfnTtCAKUjhJwGtb7","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"\u5BF9\u8BDD\u6846-\u72B6\u6001 1","canvas_key":"ssl2flfnTtCAKVF5bUvaBP","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"\u5BF9\u8BDD\u6846-\u53EF\u53D6\u6D88","canvas_key":"ssl2flfnTtCAKVLiA5P9Ko","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"\u5BF9\u8BDD\u6846-\u53EA\u6709\u786E\u8BA4","canvas_key":"ssl2flfnTtCAKVSsntayYT","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"\u63D0\u793A\u9875","canvas_key":"ssl2flfnTtCAKVnoOONrGv","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"\u6210\u529F\u63D0\u793A\u9875","canvas_key":"ssl2flfnTtCAKVzTGMXLU9","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"\u5931\u8D25\u63D0\u793A\u9875","canvas_key":"ssl2flfnTtCAKWDPmTm53K","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"\u65E0\u56FE\u6807\u63D0\u793A\u98751","canvas_key":"ssl2flfnTtCAKWPfwgS0D3","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"\u65E0\u56FE\u6807\u63D0\u793A\u98752","canvas_key":"ssl2flfnTtCAKWapmOGmvP","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"\u534A\u5C4F\u5BF9\u8BDD\u6846-\u72B6\u6001 1","canvas_key":"ssl2flfnTtCAKWuCtfi0gc","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"\u534A\u5C4F\u5BF9\u8BDD\u6846-1","canvas_key":"ssl2flfnTtCAKX9Zr1xDCG","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"\u534A\u5C4F\u5BF9\u8BDD\u6846-2","canvas_key":"ssl2flfnTtCAKXGKiopEqN","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"\u534A\u5C4F\u5BF9\u8BDD\u6846-3","canvas_key":"ssl2flfnTtCAKXNi3DPXo5","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"\u5F39\u51FA\u5F0F\u83DC\u5355-\u72B6\u6001 1","canvas_key":"ssl2flfnTtCAKXlPR302Ag","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"\u5F39\u51FA\u5F0F\u83DC\u5355-\u72B6\u6001 2","canvas_key":"ssl2flfnTtCAKXujhhicbi","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"\u9876\u90E8\u63D0\u793A-\u72B6\u6001 1","canvas_key":"ssl2flfnTtCAKYOTvOZd9h","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"\u9876\u90E8\u63D0\u793A-\u6210\u529F\u63D0\u793A","canvas_key":"ssl2flfnTtCAKYTpYuCVUw","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"\u9876\u90E8\u63D0\u793A-\u9519\u8BEF\u63D0\u793A","canvas_key":"ssl2flfnTtCAKYhWnPWgVG","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"\u9876\u90E8\u63D0\u793A-\u8B66\u544A\u63D0\u793A","canvas_key":"ssl2flfnTtCAKYuSqGHYmU","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"\u9876\u90E8\u63D0\u793A-\u4FE1\u606F\u63D0\u793A","canvas_key":"ssl2flfnTtCAKZIndQuw61","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"Toast \u8F7B\u63D0\u793A-\u72B6\u6001 1","canvas_key":"ssl2flfnTtCAKZrFVcTZpQ","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"Toast \u8F7B\u63D0\u793A-\u9ED8\u8BA4\u63D0\u793A","canvas_key":"ssl2flfnTtCAKZyYS3R7Da","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"Toast \u8F7B\u63D0\u793A-\u591A\u884C\u63D0\u793A","canvas_key":"ssl2flfnTtCAKa4WiExoFM","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"Toast \u8F7B\u63D0\u793A-\u6210\u529F\u63D0\u793A","canvas_key":"ssl2flfnTtCAKaATbkEYuC","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"Toast \u8F7B\u63D0\u793A-\u5931\u8D25\u63D0\u793A","canvas_key":"ssl2flfnTtCAKaHDb9WWPh","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"Toast \u8F7B\u63D0\u793A-\u52A0\u8F7D\u4E2D","canvas_key":"ssl2flfnTtCAKaPr0XkjLm","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"Toast \u8F7B\u63D0\u793A-\u5012\u8BA1\u65F6","canvas_key":"ssl2flfnTtCAKajpV5S5qi","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"Tooltip \u6587\u5B57\u63D0\u793A-\u72B6\u6001 1","canvas_key":"ssl2flfnTtCAKbNhTKzKzb","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"Tooltip \u6587\u5B57\u63D0\u793A-\u5355\u884C\u6587\u672C","canvas_key":"ssl2flfnTtCAKbTpQLqiNJ","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"Tooltip \u6587\u5B57\u63D0\u793A-\u591A\u884C\u6587\u672C","canvas_key":"ssl2flfnTtCAKbZ35BsWY1","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"Tooltip \u6587\u5B57\u63D0\u793A-\u663E\u793A\u5173\u95ED\u6309\u94AE","canvas_key":"ssl2flfnTtCAKbhGXLYdjI","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"Tooltip \u6587\u5B57\u63D0\u793A-\u5E26\u6309\u94AE\u63A7\u5236","canvas_key":"ssl2flfnTtCAKbnIOeeUdc","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"Popover \u6C14\u6CE1-\u72B6\u6001 1","canvas_key":"ssl2flfnTtCAKcEcVtKQ86","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"Popover \u6C14\u6CE1-\u57FA\u7840\u6C14\u6CE1","canvas_key":"ssl2flfnTtCAKcLexcGVIo","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"Popover \u6C14\u6CE1-\u5217\u8868\u6C14\u6CE1","canvas_key":"ssl2flfnTtCAKcQfhygEE1","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"\u6298\u7EBF\u56FE","canvas_key":"ssl2flfnTtCAKchTBbi4jp","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"\u67F1\u72B6\u56FE","canvas_key":"ssl2flfnTtCAKd3u9zY5Xq","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"\u6761\u5F62\u56FE","canvas_key":"ssl2flfnTtCAKdJKGyBBYz","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"\u997C\u56FE","canvas_key":"ssl2flfnTtCAKdjciWTI8q","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"\u9762\u79EF\u56FE","canvas_key":"ssl2flfnTtCAKe1EquUpf4","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"\u96F7\u8FBE\u56FE","canvas_key":"ssl2flfnTtCAKeJCJyZMmN","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"\u641C\u7D22","canvas_key":"ssl2flfnTtCAKeXxNCxDK0","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"\u56FE\u7247","canvas_key":"ssl2flfnTtCAKemReLqrsj","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"\u89C6\u9891","canvas_key":"ssl2flfnTtCAKeyQb9oTBS","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"\u97F3\u9891","canvas_key":"ssl2flfnTtCAKfKz0ejYfs","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"\u6388\u6743-\u72B6\u6001 1","canvas_key":"ssl2flfnTtCAKfifQrAwzP","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"\u6388\u6743-\u624B\u673A","canvas_key":"ssl2flfnTtCAKg03Q5vBhY","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"\u6388\u6743-\u7528\u6237\u4FE1\u606F","canvas_key":"ssl2flfnTtCAKgCfIXeHl5","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"\u5BA2\u670D\u4F1A\u8BDD","canvas_key":"ssl2flfnTtCAKgWbDWLZM9","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"\u7528\u6237\u8F6C\u53D1","canvas_key":"ssl2flfnTtCAKgxC9l120Y","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"\u952E\u76D8","canvas_key":"ssl2flfnTtCAKhakmSdA82","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"\u72B6\u6001\u680F","canvas_key":"ssl2flfnTtCAKjOQZsr4Yw","pm_cid":"pl2flfn0mxvqfxj","mt_cid":"mtl2flfnh5v4yr78"},{"name":"\u9875\u9762 1","canvas_key":"rcUnbb6Ez4qB6JX9","pm_cid":"pm2mbori5gzh9t2r8","mt_cid":"mtmbori5h182p9b7"},{"name":"\u9875\u9762 1","canvas_key":"rcUnbbICciB38ZP","pm_cid":"pm2mbori5gzh9t2r8","mt_cid":"mtmbori5h182p9b7"},{"name":"\u9875\u9762 1","canvas_key":"rcUnbbOK3sTy5hZQ","pm_cid":"pm2mbori5gzh9t2r8","mt_cid":"mtmbori5h182p9b7"},{"name":"\u9875\u9762 1","canvas_key":"rcUnbbTqcLowaN5H","pm_cid":"pm2mbori5gzh9t2r8","mt_cid":"mtmbori5h182p9b7"},{"name":"\u9875\u9762 1","canvas_key":"rcUnbbcFUjEbEtuw","pm_cid":"pm2mbori5gzh9t2r8","mt_cid":"mtmbori5h182p9b7"},{"name":"\u9875\u9762 1","canvas_key":"rcUnbbl7soi3i7ic","pm_cid":"pm2mbori5gzh9t2r8","mt_cid":"mtmbori5h182p9b7"},{"name":"\u9875\u9762 1","canvas_key":"rcUnbbw5v43574o9","pm_cid":"pm2mbori5gzh9t2r8","mt_cid":"mtmbori5h182p9b7"},{"name":"\u9875\u9762 1","canvas_key":"rcUnbc7ZgSnpzfkX","pm_cid":"pm2mbori5gzh9t2r8","mt_cid":"mtmbori5h182p9b7"},{"name":"\u9875\u9762 1","canvas_key":"rcUnbcFCw49vrT8K","pm_cid":"pm2mbori5gzh9t2r8","mt_cid":"mtmbori5h182p9b7"},{"name":"\u9875\u9762 1","canvas_key":"rcUnbcNbXCisEiZS","pm_cid":"pm2mbori5gzh9t2r8","mt_cid":"mtmbori5h182p9b7"},{"name":"\u9875\u9762 1","canvas_key":"rcUnbcTaszzyvHcX","pm_cid":"pm2mbori5gzh9t2r8","mt_cid":"mtmbori5h182p9b7"}],"\u8D2D\u7269\u8F66":[{"name":"\u667A\u80FD\u8D2D\u7269\u8F66","canvas_key":"rcUluGran8rx3Uhk","pm_cid":"pm2mbhfk7dik0k867","mt_cid":"mtmbhfk7dt8xx4pm"},{"name":"\u6D6E\u5C422","canvas_key":"rcUEDRX9UlzXINsh98BKXM","pm_cid":"pm2mbhfk7dik0k867","mt_cid":"mtmbhfk7dt8xx4pm"},{"name":"\u6D6E\u5C422 1","canvas_key":"rcUEDRX9UlzarTYrVqAxRY","pm_cid":"pm2mbhfk7dik0k867","mt_cid":"mtmbhfk7dt8xx4pm"},{"name":"\u9875\u9762 1","canvas_key":"rcUlvcMiyArvehD9","pm_cid":"pm2mbhmi3sxp106h3","mt_cid":"mtmb02sg79t4ca7e"}],"\u5546\u54C1\u8BE6\u60C5":[{"name":"\u4EA7\u54C1\u8BE6\u60C5-\u4E66\u520A","canvas_key":"rcUGxLDEFSXaN5F8","pm_cid":"pm2lybhsehhhqb4m","mt_cid":"mtlybhsehidxjeyx"},{"name":"\u4EA7\u54C1\u8BE6\u60C5-\u9152\u5E97\u8BE6\u60C5","canvas_key":"rcUGxLDEUHliYOq83De6qM","pm_cid":"pm2lybhsehhhqb4m","mt_cid":"mtlybhsehidxjeyx"},{"name":"\u4EA7\u54C1\u8BE6\u60C5","canvas_key":"rcUGxLDEUHlpoQv3KFt2vP","pm_cid":"pm2lybhsehhhqb4m","mt_cid":"mtlybhsehidxjeyx"},{"name":"\u4EA7\u54C1\u8BE6\u60C5 ","canvas_key":"rcUGxLDEUHmCuLlfk5H6Yj","pm_cid":"pm2lybhsehhhqb4m","mt_cid":"mtlybhsehidxjeyx"},{"name":"\u5546\u54C1\u8BE6\u60C5","canvas_key":"rcUGxLDEUHmHz4rshiyUEW","pm_cid":"pm2lybhsehhhqb4m","mt_cid":"mtlybhsehidxjeyx"},{"name":"\u5546\u54C1\u8BE6\u60C5","canvas_key":"rcUGxLDEUHmQrgmlrTt8jH","pm_cid":"pm2lybhsehhhqb4m","mt_cid":"mtlybhsehidxjeyx"},{"name":"\u5546\u54C1\u8BE6\u60C5","canvas_key":"rcUGxLDEUHor4kC230xKgq","pm_cid":"pm2lybhsehhhqb4m","mt_cid":"mtlybhsehidxjeyx"},{"name":"\u5546\u54C1\u8BE6\u60C5","canvas_key":"rcUGxLDEUHpd3UBMm9Dm1m","pm_cid":"pm2lybhsehhhqb4m","mt_cid":"mtlybhsehidxjeyx"},{"name":"\u8BFE\u7A0B\u8BE6\u60C5","canvas_key":"rcUGxLDEUHpjAtf4Ig0ImY","pm_cid":"pm2lybhsehhhqb4m","mt_cid":"mtlybhsehidxjeyx"},{"name":"\u5546\u54C1\u8BE6\u60C5","canvas_key":"rcUGxLDEUHq1RAQkoPy8Is","pm_cid":"pm2lybhsehhhqb4m","mt_cid":"mtlybhsehidxjeyx"}],"\u4E0A\u4F20":[{"name":"\u4E00\u7EC41\u53F7","canvas_key":"rcUPYovlt9R4WIBi","pm_cid":"pm2m1ksh7ujynvv9a","mt_cid":"mtm1ksh7uwtc4zx1"},{"name":"\u4E00\u7EC42\u53F7 ","canvas_key":"rcUPYovlUPZulg84xFaE5z","pm_cid":"pm2m1ksh7ujynvv9a","mt_cid":"mtm1ksh7uwtc4zx1"},{"name":"\u4E00\u7EC43\u53F7 ","canvas_key":"rcUPYovlUPZunk1ksoTzko","pm_cid":"pm2m1ksh7ujynvv9a","mt_cid":"mtm1ksh7uwtc4zx1"},{"name":"\u4E00\u7EC44\u53F7 ","canvas_key":"rcUPYovlUPZunsnY9XhhXq","pm_cid":"pm2m1ksh7ujynvv9a","mt_cid":"mtm1ksh7uwtc4zx1"},{"name":"\u4E00\u7EC45\u53F7 ","canvas_key":"rcUPYovlUPZxlvXMBZbS","pm_cid":"pm2m1ksh7ujynvv9a","mt_cid":"mtm1ksh7uwtc4zx1"},{"name":"\u4E8C\u7EC41\u53F7 ","canvas_key":"rcUPYovlUPZz87I3hvZ9qy","pm_cid":"pm2m1ksh7ujynvv9a","mt_cid":"mtm1ksh7uwtc4zx1"},{"name":"\u4E8C\u7EC42\u53F7 ","canvas_key":"rcUPYovlUPa7lbAoJznFOu","pm_cid":"pm2m1ksh7ujynvv9a","mt_cid":"mtm1ksh7uwtc4zx1"},{"name":"\u4E8C\u7EC43\u53F7 ","canvas_key":"rcUPYovlUPa7lnK1Z3bYCT","pm_cid":"pm2m1ksh7ujynvv9a","mt_cid":"mtm1ksh7uwtc4zx1"},{"name":"\u4E8C\u7EC44\u53F7 ","canvas_key":"rcUPYovlUPa7pmUhWft1bD","pm_cid":"pm2m1ksh7ujynvv9a","mt_cid":"mtm1ksh7uwtc4zx1"},{"name":"\u9875\u9762 2","canvas_key":"rcUPZv62UPZvtxwuaGM8yz","pm_cid":"pm2m1ksh7ujynvv9a","mt_cid":"mtm1ksh7uwtc4zx1"},{"name":"\u9875\u9762 1","canvas_key":"rcUPZv62JdKzMqbJ","pm_cid":"pm2m1ksh7ujynvv9a","mt_cid":"mtm1ksh7uwtc4zx1"},{"name":"\u6700\u8FD1\u9879\u76EE","canvas_key":"ssl98cd3TtC8SZ3vfxJIx","pm_cid":"pl98cd320ire2d3","mt_cid":"mtksosynkfpz76te"},{"name":"\u76F8\u518C\u9009\u62E9","canvas_key":"ssl98cd3TtC8SaIZ9z2TBb","pm_cid":"pl98cd320ire2d3","mt_cid":"mtksosynkfpz76te"},{"name":"\u9009\u4E2D\u7D20\u6750","canvas_key":"ssl98cd3TtC8SbevQpgAnc","pm_cid":"pl98cd320ire2d3","mt_cid":"mtksosynkfpz76te"},{"name":"\u9884\u89C8\u56FE\u7247","canvas_key":"ssl98cd3TtC8ScoBoHHFQL","pm_cid":"pl98cd320ire2d3","mt_cid":"mtksosynkfpz76te"},{"name":"\u9884\u89C8\u56FE\u7247","canvas_key":"ssl98cd3TtC8SeL46w7I7c","pm_cid":"pl98cd320ire2d3","mt_cid":"mtksosynkfpz76te"},{"name":"\u9884\u89C8\u89C6\u9891","canvas_key":"ssl98cd3TtC8Scwe3v85i0","pm_cid":"pl98cd320ire2d3","mt_cid":"mtksosynkfpz76te"},{"name":"\u9884\u89C8\u89C6\u9891","canvas_key":"ssl98cd3TtC8Sfde41LQfB","pm_cid":"pl98cd320ire2d3","mt_cid":"mtksosynkfpz76te"},{"name":"\u4F5C\u8005\u4ECB\u7ECD","canvas_key":"ssl98cd3TtC8SgiMlKEaCQ","pm_cid":"pl98cd320ire2d3","mt_cid":"mtksosynkfpz76te"}],"\u53CD\u9988":[{"name":"\u610F\u89C1\u53CD\u99883","canvas_key":"ssk9b1e1TtBu0iYaa5DD01","pm_cid":"pk9b1e1i7kmxc2i","mt_cid":"mtk9b1e1ji3hjc9l"},{"name":"\u610F\u89C1\u53CD\u99886","canvas_key":"ssk9b1e1TtBu0ins2PTniK","pm_cid":"pk9b1e1i7kmxc2i","mt_cid":"mtk9b1e1ji3hjc9l"},{"name":"\u610F\u89C1\u53CD\u99882","canvas_key":"ssk9b1e1TtBu0j17RCb0hf","pm_cid":"pk9b1e1i7kmxc2i","mt_cid":"mtk9b1e1ji3hjc9l"},{"name":"\u610F\u89C1\u53CD\u99887","canvas_key":"ssk9b1e1TtBu0j92GNfhLh","pm_cid":"pk9b1e1i7kmxc2i","mt_cid":"mtk9b1e1ji3hjc9l"},{"name":"\u610F\u89C1\u53CD\u99881","canvas_key":"ssk9b1e1TtBu0jMHXWb84u","pm_cid":"pk9b1e1i7kmxc2i","mt_cid":"mtk9b1e1ji3hjc9l"},{"name":"\u610F\u89C1\u53CD\u99884","canvas_key":"ssk9b1e1TtBu0jaN0C6wyc","pm_cid":"pk9b1e1i7kmxc2i","mt_cid":"mtk9b1e1ji3hjc9l"},{"name":"\u610F\u89C1\u53CD\u99888","canvas_key":"ssk9b1e1TtBu0jlaNJxbMv","pm_cid":"pk9b1e1i7kmxc2i","mt_cid":"mtk9b1e1ji3hjc9l"},{"name":"\u610F\u89C1\u53CD\u99885","canvas_key":"ssk9b1e1TtBu0k1rLdiubw","pm_cid":"pk9b1e1i7kmxc2i","mt_cid":"mtk9b1e1ji3hjc9l"},{"name":"\u9875\u9762 1","canvas_key":"rcUn8bxSofHSfO40","pm_cid":"pm2mbopvfxa83ympn","mt_cid":"mtmbhpdywf3xx7ps"},{"name":"\u9875\u9762 1","canvas_key":"rcUn8bxWVdlCbxVN","pm_cid":"pm2mbopvfxa83ympn","mt_cid":"mtmbhpdywf3xx7ps"},{"name":"\u9875\u9762 1","canvas_key":"rcUn8bxZjCXx3H81","pm_cid":"pm2mbopvfxa83ympn","mt_cid":"mtmbhpdywf3xx7ps"},{"name":"\u9875\u9762 1","canvas_key":"rcUn8bxdUOmGXhiG","pm_cid":"pm2mbopvfxa83ympn","mt_cid":"mtmbhpdywf3xx7ps"},{"name":"\u9875\u9762 1","canvas_key":"rcUn8bxgiKgrsYsn","pm_cid":"pm2mbopvfxa83ympn","mt_cid":"mtmbhpdywf3xx7ps"},{"name":"\u9875\u9762 1 Copy 1","canvas_key":"rcUn8bxgUn8huudxWTBiOP","pm_cid":"pm2mbopvfxa83ympn","mt_cid":"mtmbhpdywf3xx7ps"},{"name":"\u9875\u9762 1","canvas_key":"rcUn8bxkCEpQY8NQ","pm_cid":"pm2mbopvfxa83ympn","mt_cid":"mtmbhpdywf3xx7ps"},{"name":"\u5E2E\u52A9\u53CD\u9988","canvas_key":"rcUgoqr4Uh5uWQEAyFOlm2","pm_cid":"pm2m8y4etuhdat9ne","mt_cid":"mtm8y4etuinpu0xj"},{"name":"\u5E2E\u52A9\u53CD\u9988 1","canvas_key":"rcUgoqr4Uh5uWQEZsQYXJc","pm_cid":"pm2m8y4etuhdat9ne","mt_cid":"mtm8y4etuinpu0xj"},{"name":"\u5E2E\u52A9\u53CD\u9988 2","canvas_key":"rcUgoqr4Uh5uWQEOlkexxZ","pm_cid":"pm2m8y4etuhdat9ne","mt_cid":"mtm8y4etuinpu0xj"},{"name":"\u5E2E\u52A9\u53CD\u9988 3","canvas_key":"rcUgoqr4Uh5uWQEuIad8TM","pm_cid":"pm2m8y4etuhdat9ne","mt_cid":"mtm8y4etuinpu0xj"},{"name":"\u5E2E\u52A9\u53CD\u9988 4","canvas_key":"rcUgoqr4Uh5uWQFqvKlTVP","pm_cid":"pm2m8y4etuhdat9ne","mt_cid":"mtm8y4etuinpu0xj"},{"name":"\u5E2E\u52A9\u53CD\u9988 5","canvas_key":"rcUgoqr4Uh5uWQFxxgUF4A","pm_cid":"pm2m8y4etuhdat9ne","mt_cid":"mtm8y4etuinpu0xj"},{"name":"\u5E2E\u52A9\u53CD\u9988 6","canvas_key":"rcUgoqr4Uh5uWQFO6TzseP","pm_cid":"pm2m8y4etuhdat9ne","mt_cid":"mtm8y4etuinpu0xj"},{"name":"\u5E2E\u52A9\u53CD\u9988 7","canvas_key":"rcUgoqr4Uh5uWQFHyfBMmF","pm_cid":"pm2m8y4etuhdat9ne","mt_cid":"mtm8y4etuinpu0xj"}],"\u7B7E\u5230":[{"name":"\u8FDB\u5EA6\u73AF2","canvas_key":"ssl2fxplTtCAc2z4NQoPkG","pm_cid":"pl2fxplj2lrntjd","mt_cid":"mtl2fxplot1ff8ox"},{"name":"\u8FDB\u5EA6\u73AF1","canvas_key":"ssl2fxplTtCAc3BU83KsGz","pm_cid":"pl2fxplj2lrntjd","mt_cid":"mtl2fxplot1ff8ox"},{"name":"\u7B7E\u52301","canvas_key":"ssl2fxplTtCAc3Ollox6u","pm_cid":"pl2fxplj2lrntjd","mt_cid":"mtl2fxplot1ff8ox"},{"name":"\u7B7E\u52302","canvas_key":"ssl2fxplTtCAc3ou8sATuU","pm_cid":"pl2fxplj2lrntjd","mt_cid":"mtl2fxplot1ff8ox"},{"name":"\u6697\u591C\u6A21\u5F0F","canvas_key":"ssl2fxplTtCAc4CjUoD4YK","pm_cid":"pl2fxplj2lrntjd","mt_cid":"mtl2fxplot1ff8ox"},{"name":"\u7B7E\u52303","canvas_key":"ssl2fxplTtCAc4RWU9Bctv","pm_cid":"pl2fxplj2lrntjd","mt_cid":"mtl2fxplot1ff8ox"},{"name":"\u6697\u591C\u6A21\u5F0F","canvas_key":"ssl2fxplTtCAc4mZh1lZYb","pm_cid":"pl2fxplj2lrntjd","mt_cid":"mtl2fxplot1ff8ox"},{"name":"\u7B7E\u52304","canvas_key":"ssl2fxplTtCAc5BgIe0AmJ","pm_cid":"pl2fxplj2lrntjd","mt_cid":"mtl2fxplot1ff8ox"},{"name":"\u8FDB\u5EA6\u73AF3","canvas_key":"ssl2fxplTtCAc5mzydYJ1E","pm_cid":"pl2fxplj2lrntjd","mt_cid":"mtl2fxplot1ff8ox"},{"name":"\u7B7E\u5230\u9875\u9762v1","canvas_key":"rcUGgyE5RqAFWIgO","pm_cid":"pm2lzi7eyvze65wyc","mt_cid":"mtlzi7eyw0wt4ddj"},{"name":"\u7B7E\u5230\u9875\u9762v2","canvas_key":"rcUGmQ9q422GmCQJ","pm_cid":"pm2lzi7eyvze65wyc","mt_cid":"mtlzi7eyw0wt4ddj"},{"name":"\u7B7E\u5230\u9875\u9762v3","canvas_key":"rcUGx8MV0aSCljjY","pm_cid":"pm2lzi7eyvze65wyc","mt_cid":"mtlzi7eyw0wt4ddj"},{"name":"\u7B7E\u5230\u9875\u9762v4","canvas_key":"rcUGxX4nk1cvNOka","pm_cid":"pm2lzi7eyvze65wyc","mt_cid":"mtlzi7eyw0wt4ddj"},{"name":"\u7B7E\u5230\u9875\u9762v5","canvas_key":"rcUHdQJa3Hg8So28","pm_cid":"pm2lzi7eyvze65wyc","mt_cid":"mtlzi7eyw0wt4ddj"},{"name":"\u7B7E\u5230\u9875\u9762v6","canvas_key":"rcUI0kX81dH5yywi","pm_cid":"pm2lzi7eyvze65wyc","mt_cid":"mtlzi7eyw0wt4ddj"},{"name":"\u7B7E\u5230\u9875\u9762v7-1","canvas_key":"rcUJzcpR1npt5BkA","pm_cid":"pm2lzi7eyvze65wyc","mt_cid":"mtlzi7eyw0wt4ddj"},{"name":"\u7B7E\u5230\u9875\u9762v7-2","canvas_key":"rcUJzcpRUJzsM0UTyYX6bv","pm_cid":"pm2lzi7eyvze65wyc","mt_cid":"mtlzi7eyw0wt4ddj"},{"name":"\u7B7E\u5230\u9875\u9762v8-3","canvas_key":"rcUKXSlalHAhwhka","pm_cid":"pm2lzi7eyvze65wyc","mt_cid":"mtlzi7eyw0wt4ddj"},{"name":"\u7B7E\u5230\u9875\u9762v8-2","canvas_key":"rcUKXSlaUKXaz7BAYnim0L","pm_cid":"pm2lzi7eyvze65wyc","mt_cid":"mtlzi7eyw0wt4ddj"},{"name":"\u7B7E\u5230\u9875\u9762v8-1","canvas_key":"rcUKXSlaUKXclmqADgTnzY","pm_cid":"pm2lzi7eyvze65wyc","mt_cid":"mtlzi7eyw0wt4ddj"},{"name":"\u7B7E\u5230\u9875\u9762v2","canvas_key":"rcUGmQ9qUKewE8MPYqXGZx","pm_cid":"pm2lzi7eyvze65wyc","mt_cid":"mtlzi7eyw0wt4ddj"},{"name":"\u7B7E\u5230\u9875\u9762v3","canvas_key":"rcUGx8MVUKewKbwYxGfns0","pm_cid":"pm2lzi7eyvze65wyc","mt_cid":"mtlzi7eyw0wt4ddj"},{"name":"\u7B7E\u5230\u9875\u9762v4","canvas_key":"rcUGxX4nUKewQQj8T7XIOe","pm_cid":"pm2lzi7eyvze65wyc","mt_cid":"mtlzi7eyw0wt4ddj"},{"name":"\u7B7E\u5230\u9875\u9762v5","canvas_key":"rcUHdQJaUKewXUogyRR9Uy","pm_cid":"pm2lzi7eyvze65wyc","mt_cid":"mtlzi7eyw0wt4ddj"},{"name":"\u7B7E\u5230\u9875\u9762v6","canvas_key":"rcUI0kX8UKewxukBKpxR3n","pm_cid":"pm2lzi7eyvze65wyc","mt_cid":"mtlzi7eyw0wt4ddj"},{"name":"\u7B7E\u5230\u9875\u9762v7-1","canvas_key":"rcUJzcpRUKex2XpCEgivJt","pm_cid":"pm2lzi7eyvze65wyc","mt_cid":"mtlzi7eyw0wt4ddj"},{"name":"\u7B7E\u5230\u9875\u9762v7-2","canvas_key":"rcUJzcpRUKex2XqB2Ywt7k","pm_cid":"pm2lzi7eyvze65wyc","mt_cid":"mtlzi7eyw0wt4ddj"},{"name":"\u7B7E\u5230\u9875\u9762v8-3","canvas_key":"rcUKXSlaUKexDnIrqs92Es","pm_cid":"pm2lzi7eyvze65wyc","mt_cid":"mtlzi7eyw0wt4ddj"},{"name":"\u7B7E\u5230\u9875\u9762v8-2","canvas_key":"rcUKXSlaUKexDnJGPQ3arg","pm_cid":"pm2lzi7eyvze65wyc","mt_cid":"mtlzi7eyw0wt4ddj"},{"name":"\u7B7E\u5230\u9875\u9762v8-1","canvas_key":"rcUKXSlaUKexDnJ9ekijHS","pm_cid":"pm2lzi7eyvze65wyc","mt_cid":"mtlzi7eyw0wt4ddj"},{"name":"\u7B7E\u5230\u9875\u9762v1","canvas_key":"rcUGgyE5UKexhoAuOsOlp7","pm_cid":"pm2lzi7eyvze65wyc","mt_cid":"mtlzi7eyw0wt4ddj"}],"\u7B5B\u9009":[{"name":"\u7B5B\u9009-\u81EA\u5982","canvas_key":"ssk4s6t5TtBto7K9acDuyc","pm_cid":"pk4s6t5hzyv7p8t","mt_cid":"mtk4s6t5i87lmg3v"},{"name":"\u7B5B\u9009-\u74DC\u5B50\u4E8C\u624B\u8F66","canvas_key":"ssk4s6t5TtBto7q3gz0zKo","pm_cid":"pk4s6t5hzyv7p8t","mt_cid":"mtk4s6t5i87lmg3v"},{"name":"\u7B5B\u9009-\u997F\u4E86\u4E48","canvas_key":"ssk4s6t5TtBto8p3ew8zGR","pm_cid":"pk4s6t5hzyv7p8t","mt_cid":"mtk4s6t5i87lmg3v"},{"name":"\u7B5B\u9009-\u62C9\u52FE","canvas_key":"ssk4s6t5TtBto9KmRaAZLO","pm_cid":"pk4s6t5hzyv7p8t","mt_cid":"mtk4s6t5i87lmg3v"},{"name":"\u7B5B\u9009-\u62C9\u52FE","canvas_key":"ssk4s6t5TtBto9yk1gGepv","pm_cid":"pk4s6t5hzyv7p8t","mt_cid":"mtk4s6t5i87lmg3v"},{"name":"\u5355\u9879\u9009\u62E9-\u7F8E\u56E2-\u72B6\u6001 1","canvas_key":"sskb3ibhTtBv0p9mrULZ19","pm_cid":"pkb3ibh2djwivz1","mt_cid":"mtkb3ibh2mmq964a"},{"name":"\u5355\u9879\u9009\u62E9-\u7F8E\u56E2-\u72B6\u6001 2","canvas_key":"sskb3ibhTtBv0pI5Z8KhFh","pm_cid":"pkb3ibh2djwivz1","mt_cid":"mtkb3ibh2mmq964a"},{"name":"\u5355\u9879\u9009\u62E9-\u7F8E\u56E2-\u72B6\u6001 3","canvas_key":"sskb3ibhTtBv0pKPHQe3I2","pm_cid":"pkb3ibh2djwivz1","mt_cid":"mtkb3ibh2mmq964a"},{"name":"\u5355\u9879\u9009\u62E9-\u7F8E\u56E2-\u72B6\u6001 4","canvas_key":"sskb3ibhTtBv0pSyZbL8I1","pm_cid":"pkb3ibh2djwivz1","mt_cid":"mtkb3ibh2mmq964a"},{"name":"\u5355\u9879\u9009\u62E9-\u997F\u6CA1-\u72B6\u6001 1","canvas_key":"sskb3ibhTtBv0plmAqw2fI","pm_cid":"pkb3ibh2djwivz1","mt_cid":"mtkb3ibh2mmq964a"},{"name":"\u5355\u9879\u9009\u62E9-\u997F\u6CA1-\u72B6\u6001 4","canvas_key":"sskb3ibhTtBv0q7ohYtv7F","pm_cid":"pkb3ibh2djwivz1","mt_cid":"mtkb3ibh2mmq964a"},{"name":"\u5355\u9879\u9009\u62E9-\u997F\u6CA1-\u72B6\u6001 2","canvas_key":"sskb3ibhTtBv0qGZ31ZerJ","pm_cid":"pkb3ibh2djwivz1","mt_cid":"mtkb3ibh2mmq964a"},{"name":"\u5355\u9879\u9009\u62E9-\u997F\u6CA1-\u72B6\u6001 3","canvas_key":"sskb3ibhTtBv0qJFKXlZdm","pm_cid":"pkb3ibh2djwivz1","mt_cid":"mtkb3ibh2mmq964a"},{"name":"\u5355\u9879\u9009\u62E9-\u997F\u6CA1-\u72B6\u6001 5","canvas_key":"sskb3ibhTtBv0qM23od46P","pm_cid":"pkb3ibh2djwivz1","mt_cid":"mtkb3ibh2mmq964a"},{"name":"\u591A\u9879\u9009\u62E9-\u627E\u623F-\u72B6\u6001 1","canvas_key":"sskb3ibhTtBv0qZzuJHZA3","pm_cid":"pkb3ibh2djwivz1","mt_cid":"mtkb3ibh2mmq964a"},{"name":"\u591A\u9879\u9009\u62E9-\u627E\u623F-\u72B6\u6001 2","canvas_key":"sskb3ibhTtBv0qnrPsd2Yt","pm_cid":"pkb3ibh2djwivz1","mt_cid":"mtkb3ibh2mmq964a"},{"name":"\u591A\u9879\u9009\u62E9-\u627E\u623F-\u72B6\u6001 3","canvas_key":"sskb3ibhTtBv0qxKlos95R","pm_cid":"pkb3ibh2djwivz1","mt_cid":"mtkb3ibh2mmq964a"},{"name":"\u591A\u9879\u9009\u62E9-\u7F8E\u56E2-\u72B6\u6001 1","canvas_key":"sskb3ibhTtBv0r8G57sjpu","pm_cid":"pkb3ibh2djwivz1","mt_cid":"mtkb3ibh2mmq964a"},{"name":"\u591A\u9879\u9009\u62E9-\u7F8E\u56E2-\u72B6\u6001 2","canvas_key":"sskb3ibhTtBv0rJhHKeoQS","pm_cid":"pkb3ibh2djwivz1","mt_cid":"mtkb3ibh2mmq964a"},{"name":"\u591A\u9879\u9009\u62E9-\u7F8E\u56E2-\u72B6\u6001 3","canvas_key":"sskb3ibhTtBv0rT9vD1AKQ","pm_cid":"pkb3ibh2djwivz1","mt_cid":"mtkb3ibh2mmq964a"},{"name":"\u5355\u9879\u9009\u62E9-\u5FAE\u535A-\u72B6\u6001 1","canvas_key":"sskb3ibhTtBv0rlLN8PCHj","pm_cid":"pkb3ibh2djwivz1","mt_cid":"mtkb3ibh2mmq964a"},{"name":"\u5355\u9879\u9009\u62E9-\u5FAE\u535A-\u72B6\u6001 2","canvas_key":"sskb3ibhTtBv0rweYE6DOl","pm_cid":"pkb3ibh2djwivz1","mt_cid":"mtkb3ibh2mmq964a"},{"name":"\u5355\u9879\u9009\u62E9-\u5FAE\u535A-\u72B6\u6001 3","canvas_key":"sskb3ibhTtBv0ryB0Ur6w0","pm_cid":"pkb3ibh2djwivz1","mt_cid":"mtkb3ibh2mmq964a"},{"name":"\u7B5B\u9009\u9875\u9762\u96C6\u5408-\u72B6\u6001 1","canvas_key":"sskb3ibhTtBv0s6CEjnByi","pm_cid":"pkb3ibh2djwivz1","mt_cid":"mtkb3ibh2mmq964a"},{"name":"\u7B5B\u9009\u9875\u9762\u96C6\u5408-\u72B6\u6001 2","canvas_key":"sskb3ibhTtBv0s8RVwgThK","pm_cid":"pkb3ibh2djwivz1","mt_cid":"mtkb3ibh2mmq964a"},{"name":"\u7B5B\u9009\u9875\u9762\u96C6\u5408-\u72B6\u6001 3","canvas_key":"sskb3ibhTtBv0sBsK0pX7a","pm_cid":"pkb3ibh2djwivz1","mt_cid":"mtkb3ibh2mmq964a"},{"name":"\u591A\u9879\u9009\u62E9-\u65C5\u884C-\u72B6\u6001 1","canvas_key":"sskb3ibhTtBv0sQ3VnNPQQ","pm_cid":"pkb3ibh2djwivz1","mt_cid":"mtkb3ibh2mmq964a"},{"name":"\u591A\u9879\u9009\u62E9-\u65C5\u884C-\u72B6\u6001 2","canvas_key":"sskb3ibhTtBv0sgCaa2iNS","pm_cid":"pkb3ibh2djwivz1","mt_cid":"mtkb3ibh2mmq964a"},{"name":"\u591A\u9879\u9009\u62E9-\u65C5\u884C-\u72B6\u6001 3","canvas_key":"sskb3ibhTtBv0sn9MAApuM","pm_cid":"pkb3ibh2djwivz1","mt_cid":"mtkb3ibh2mmq964a"},{"name":"\u5206\u7C7B4","canvas_key":"ssk4y5wqTtBtrjiKtZ7GJr","pm_cid":"pk4y5wqg6yd9ra0","mt_cid":"mtk4y5wqh6wzv1n3"},{"name":"\u5206\u7C7B1","canvas_key":"ssk4y5wqTtBtrkIShIfZZ2","pm_cid":"pk4y5wqg6yd9ra0","mt_cid":"mtk4y5wqh6wzv1n3"},{"name":"\u5206\u7C7B2","canvas_key":"ssk4y5wqTtBtrki54ZF7ve","pm_cid":"pk4y5wqg6yd9ra0","mt_cid":"mtk4y5wqh6wzv1n3"},{"name":"\u5206\u7C7B3","canvas_key":"ssk4y5wqTtBtrlPwNfivkP","pm_cid":"pk4y5wqg6yd9ra0","mt_cid":"mtk4y5wqh6wzv1n3"},{"name":"\u7B5B\u9009","canvas_key":"rcUQQ0dO8yIngnBM","pm_cid":"pm2m1xtbe53idv10k","mt_cid":"mtm1xtbe5e87loyt"},{"name":"\u7B5B\u9009-\u9876\u90E8\u5F39\u7A97","canvas_key":"rcUEJd8wUQQD59iZlE2mfO","pm_cid":"pm2m1xtbe53idv10k","mt_cid":"mtm1xtbe5e87loyt"},{"name":"\u7B5B\u9009\u6761\u4EF6-\u5E95\u90E8\u5F39\u7A97","canvas_key":"rcUEJd8wUQQKqAhLmlGGMk","pm_cid":"pm2m1xtbe53idv10k","mt_cid":"mtm1xtbe5e87loyt"},{"name":"\u7B5B\u9009-\u9876\u90E8\u5F39\u7A97","canvas_key":"rcUEJd8wUQQjTYRNrccKmu","pm_cid":"pm2m1xtbe53idv10k","mt_cid":"mtm1xtbe5e87loyt"},{"name":"\u6761\u4EF6\u7B5B\u9009-\u4F30\u4EF7\u4FE1\u606F","canvas_key":"rcUQQ0dOUQQrUCHSsTBNgu","pm_cid":"pm2m1xtbe53idv10k","mt_cid":"mtm1xtbe5e87loyt"},{"name":"\u6761\u4EF6\u7B5B\u9009-\u9009\u62E9\u9152\u5E97","canvas_key":"rcUEJd8wUQQyqRLDkViJkl","pm_cid":"pm2m1xtbe53idv10k","mt_cid":"mtm1xtbe5e87loyt"},{"name":"\u7B5B\u9009-\u4FA7\u8FB9\u5F39\u7A97","canvas_key":"rcTzVlSfUQRAquRQgEXqMY","pm_cid":"pm2m1xtbe53idv10k","mt_cid":"mtm1xtbe5e87loyt"},{"name":"\u6B65\u9AA4\u7B5B\u9009","canvas_key":"rcUQQ0dOUQRPcS7ks9Nz6L","pm_cid":"pm2m1xtbe53idv10k","mt_cid":"mtm1xtbe5e87loyt"}],"\u5206\u4EAB":[{"name":"\u5206\u4EAB1-\u72B6\u6001 1","canvas_key":"ssl331smTtCAt0wsIeIDNl","pm_cid":"pl331slxjy0c919","mt_cid":"mtl331smigwyw281"},{"name":"\u5206\u4EAB1-\u72B6\u6001 2","canvas_key":"ssl331smTtCAt195aD4m4X","pm_cid":"pl331slxjy0c919","mt_cid":"mtl331smigwyw281"},{"name":"\u5206\u4EAB2-\u72B6\u6001 1","canvas_key":"ssl331smTtCAt1YcZyBfXv","pm_cid":"pl331slxjy0c919","mt_cid":"mtl331smigwyw281"},{"name":"\u5206\u4EAB2-\u72B6\u6001 2","canvas_key":"ssl331smTtCAt1fATBQkGQ","pm_cid":"pl331slxjy0c919","mt_cid":"mtl331smigwyw281"},{"name":"\u4F5C\u8005\u4ECB\u7ECD","canvas_key":"sskwurn2TtC9OhDxqkK5X2","pm_cid":"pkwurn2kdffbyd4","mt_cid":"mtkwurn2sgnzz872"},{"name":"\u5206\u4EAB\u8F6C\u53D101","canvas_key":"sskwurn2TtC9OhSzKMNVgA","pm_cid":"pkwurn2kdffbyd4","mt_cid":"mtkwurn2sgnzz872"},{"name":"\u5206\u4EAB\u8F6C\u53D102","canvas_key":"sskwurn2TtC9OhhclbTliv","pm_cid":"pkwurn2kdffbyd4","mt_cid":"mtkwurn2sgnzz872"},{"name":"\u5206\u4EAB\u8F6C\u53D103","canvas_key":"sskwurn2TtC9OhuBYqr78q","pm_cid":"pkwurn2kdffbyd4","mt_cid":"mtkwurn2sgnzz872"},{"name":"\u5206\u4EAB\u8F6C\u53D105","canvas_key":"sskwurn2TtC9Oi323n3iUs","pm_cid":"pkwurn2kdffbyd4","mt_cid":"mtkwurn2sgnzz872"},{"name":"\u5206\u4EAB\u8F6C\u53D104","canvas_key":"sskwurn2TtC9OiIxxIprzs","pm_cid":"pkwurn2kdffbyd4","mt_cid":"mtkwurn2sgnzz872"},{"name":"\u5206\u4EAB\u8F6C\u53D106","canvas_key":"sskwurn2TtC9OiSKYy0hL9","pm_cid":"pkwurn2kdffbyd4","mt_cid":"mtkwurn2sgnzz872"},{"name":"\u5206\u4EAB\u8F6C\u53D107","canvas_key":"sskwurn2TtC9OikkV4f0Zt","pm_cid":"pkwurn2kdffbyd4","mt_cid":"mtkwurn2sgnzz872"},{"name":"\u5206\u4EAB\u8F6C\u53D108","canvas_key":"sskwurn2TtC9OiuyfhWjYx","pm_cid":"pkwurn2kdffbyd4","mt_cid":"mtkwurn2sgnzz872"},{"name":"\u5206\u4EAB\u8F6C\u53D109","canvas_key":"sskwurn2TtC9Oj5ulWtpSn","pm_cid":"pkwurn2kdffbyd4","mt_cid":"mtkwurn2sgnzz872"},{"name":"\u5206\u4EAB\u8F6C\u53D110","canvas_key":"sskwurn2TtC9OjHxmuBN96","pm_cid":"pkwurn2kdffbyd4","mt_cid":"mtkwurn2sgnzz872"},{"name":"\u9875\u9762 1","canvas_key":"rcUOtGaDUklQ5f4TkDbhNq","pm_cid":"pm2mahsg3sh886nr8","mt_cid":"mtmahsg3si9mi6pc"},{"name":"\u9875\u9762 2","canvas_key":"rcUOtGaDUklQ5f4f6MPZiY","pm_cid":"pm2mahsg3sh886nr8","mt_cid":"mtmahsg3si9mi6pc"},{"name":"\u9875\u9762 3","canvas_key":"rcUOtGaDUklQ5f4VAqIZeu","pm_cid":"pm2mahsg3sh886nr8","mt_cid":"mtmahsg3si9mi6pc"},{"name":"\u901A\u7528\u79FB\u52A8\u7AEF\u5728\u7EBF\u89C6\u9891\u5206\u4EAB\u9875 - \u6D45\u8272","canvas_key":"rcUlhJTQUln34bWaKf6cp8","pm_cid":"pm2mazeyxroaxo2h8","mt_cid":"mtmazeyxrqt5dmbu"},{"name":"\u901A\u7528\u79FB\u52A8\u7AEF\u5728\u7EBF\u89C6\u9891\u5206\u4EAB\u9875 - \u6DF1\u8272","canvas_key":"rcUlhJTQUlvq5FjrcW3G4f","pm_cid":"pm2mazeyxroaxo2h8","mt_cid":"mtmazeyxrqt5dmbu"}],"\u7A7A\u9875\u9762":[{"name":"\u7F3A\u7701\u9875-\u6CA1\u6709\u7F51\u7EDC","canvas_key":"rcUGrEJftxQb2F2d","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875-\u6CA1\u6709\u8BA2\u5355","canvas_key":"rcUGrEJfUGrGJS1b12SU2N","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875-\u6682\u65E0\u641C\u7D22\u7ED3\u679C","canvas_key":"rcUGrEJfUGrGbdklyE6RYl","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875-\u8D2D\u7269\u8F66\u4E3A\u7A7A","canvas_key":"rcUGrEJfUGrGplFm7RqlI0","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875-\u6CA1\u6709\u4F18\u60E0\u5238","canvas_key":"rcUGrEJfUGrHGIM3GhQXq8","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875-\u6CA1\u6709\u6536\u8D27\u5730\u5740","canvas_key":"rcUGrEJfUGrHR8t39P34uY","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875-\u6682\u65E0\u8BC4\u8BBA","canvas_key":"rcUGrEJfUGrHag6ZKfT8kX","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875-\u6743\u9650\u4E0D\u8DB3","canvas_key":"rcUGrEJfUGrHkNnrNh8o7v","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875-\u6CA1\u6709\u6570\u636E","canvas_key":"rcUGrEJfUGrILeJdjFSUYY","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875-\u65E0\u5386\u53F2\u8BB0\u5F55","canvas_key":"rcUGrEJfUGrIYaYbLd1R3R","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875-\u65E0\u65B0\u95FB\u5217\u8868","canvas_key":"rcUGrEJfUGrIlLoka6blS8","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875-\u65E0\u6536\u85CF","canvas_key":"rcUGrEJfUGrLoYJ4EpBd15","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875-\u6682\u65E0\u6D88\u606F","canvas_key":"rcUGrEJfUGrPRQiteRVJxi","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875-\u9875\u9762\u4E0D\u5B58\u5728","canvas_key":"rcUGrEJfUGrPjJLECe4daz","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875-\u6682\u65E0\u6D88\u606F","canvas_key":"rcUGrEJfUGrPtq7uQL8RJs","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875-\u6682\u65E0\u7F51\u7EDC","canvas_key":"rcUGrEJfUGrhdZj58qwGht","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875-\u6682\u65E0\u8BA2\u5355","canvas_key":"rcUGrEJfUGrhdZltE33sgh","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875-\u8D2D\u7269\u8F66\u4E3A\u7A7A","canvas_key":"rcUGrEJfUGrhdZnf1az98g","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875-\u6CA1\u6709\u4F18\u60E0\u5238","canvas_key":"rcUGrEJfUGrhdZobZmQ4Hm","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875-\u6682\u65E0\u6536\u85CF","canvas_key":"rcUGrEJfUGrhdZtZJ8TuF9","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875-\u6682\u65E0\u6D88\u606F","canvas_key":"rcUGrEJfUGrhdZuT2WKXml","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875-\u6682\u65E0\u6D88\u606F","canvas_key":"rcUGrEJfUGrhdZv7fOvF9Z","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875-\u6682\u65E0\u901A\u77E5","canvas_key":"rcUGrEJfUGriPbaR8IwTun","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875-\u6682\u65E0\u4E0B\u8F7D","canvas_key":"rcUGrEJfUGribhnmH1CMfR","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875-\u6682\u65E0\u8DB3\u8FF9","canvas_key":"rcUGrEJfUGrioExehLVbME","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875-\u6682\u65E0\u8BBF\u5BA2","canvas_key":"rcUGrEJfUGrj0OikAc8PRN","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875-\u6682\u65E0\u6587\u4EF6","canvas_key":"rcUGrEJfUGrjC5fRV4Rq7O","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875-\u6682\u65E0\u8D26\u5355","canvas_key":"rcUGrEJfUGrjMcACP3e3dy","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875-\u6682\u65E0\u8BC4\u4EF7","canvas_key":"rcUGrEJfUGrjpcupfk681j","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875-\u6682\u65E0\u53D1\u7968","canvas_key":"rcUGrEJfUGrkGaVQ1Go9ER","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875-\u6682\u65E0\u6743\u9650","canvas_key":"rcUGrEJfUd1vSVLnGG1QT1","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875-\u6682\u65E0\u65E5\u7A0B\u5B89\u6392","canvas_key":"rcUGrEJfUd1vSVMFiFN2sJ","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875-\u8D2D\u7269\u8F66\u4E3A\u7A7A","canvas_key":"rcUGrEJfUd1vSVNiu8mnDy","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875-\u6682\u65E0\u89C6\u9891","canvas_key":"rcUGrEJfUd1vSVNr9JrRVn","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875-\u6682\u65E0\u6536\u85CF\u4FE1\u606F","canvas_key":"rcUGrEJfUd1vSVNkLobPQ0","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875-\u6682\u65E0\u6D88\u606F","canvas_key":"rcUGrEJfUd1vSVOCbMvIU1","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875-\u6B63\u5728\u52A0\u8F7D\u4E2D","canvas_key":"rcUGrEJfUd1vSVOiXA0Rhb","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875-\u4FE1\u606F\u5DF2\u53D1\u9001","canvas_key":"rcUGrEJfUd1vSVO17eu1UW","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875-\u6682\u65E0\u4FE1\u606F","canvas_key":"rcUGrEJfUd1vSVPbpGIJC6","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875-\u6682\u65E0\u8BA2\u5355","canvas_key":"rcUGrEJfUd1vSVPRz6CHlE","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875-\u6682\u65E0\u56FE\u7247","canvas_key":"rcUGrEJfUd1vSVPEL2Xs3g","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875-\u6536\u85CF\u5939\u4E3A\u7A7A","canvas_key":"rcUGrEJfUd1vSVQOEj5F7l","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875-\u6682\u65E0\u7F51\u7EDC\u4FE1\u606F","canvas_key":"rcUGrEJfUd1vSVQ7jwMCFX","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875-\u6B63\u5728\u5F00\u53D1\u4E2D","canvas_key":"rcUGrEJfUd1vSVRVD5JJyP","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875-\u6682\u65E0\u8DB3\u8FF9","canvas_key":"rcUGrEJfUd1vSVSbk5YDQf","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875-\u6682\u65E0\u641C\u7D22\u7ED3\u679C","canvas_key":"rcUGrEJfUd22DXveHsktVD","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875-404\u9875\u9762\u4E0D\u5B58\u5728","canvas_key":"rcUGrEJfUdRfqvWAtoo0QN","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875-\u627E\u4E0D\u5230\u5B9A\u4F4D","canvas_key":"rcUGrEJfUdRgEchr8gfVwB","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875-\u8FDE\u63A5\u8D85\u65F6","canvas_key":"rcUGrEJfUdRgb3ewRAhBgM","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875","canvas_key":"rcUGrEJfUdRgogc7pbgULk","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875","canvas_key":"rcUGrEJfUdRh5YmXLuVlTl","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875","canvas_key":"rcUGrEJfUdRhRjFxEetlwF","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875","canvas_key":"rcUGrEJfUdRhs6eUuKljo0","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875","canvas_key":"rcUGrEJfUdRi2IhtlPfr7Q","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875","canvas_key":"rcUGrEJfUdRiCAOZLPMZQC","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875","canvas_key":"rcUGrEJfUdRiM80MKO7Upo","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875","canvas_key":"rcUGrEJfUdRiu4aGNHczwu","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875","canvas_key":"rcUGrEJfUdRj2SevASaxlB","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875","canvas_key":"rcUGrEJfUdRjChfcAYv4Zy","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875","canvas_key":"rcUGrEJfUdRjMEk5RiPqdd","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875","canvas_key":"rcUGrEJfUdRjYRkJa2659k","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875","canvas_key":"rcUGrEJfUdRjiTtbI6OyGS","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875","canvas_key":"rcUGrEJfUdRjrY92XdyU6q","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875-\u7F51\u7EDC\u4E0D\u7A33\u5B9A","canvas_key":"rcUGrEJfUeX7TmHqJFaAwr","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875-\u6682\u65E0\u8BA2\u5355","canvas_key":"rcUGrEJfUeX7TmIgZzegvN","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875-\u8D2D\u7269\u8F66\u4E3A\u7A7A","canvas_key":"rcUGrEJfUeX7TmIM90x5O9","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875-\u6682\u65E0\u6570\u636E","canvas_key":"rcUGrEJfUeX7TmJx0wS8q0","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875-\u6682\u65E0\u6536\u85CF","canvas_key":"rcUGrEJfUeX7TmJnaRxgiN","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875-\u6682\u65E0\u6D88\u606F","canvas_key":"rcUGrEJfUeX7TmKJ0rDobi","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875-\u672A\u627E\u5230\u8BBF\u95EE\u9875\u9762404","canvas_key":"rcUGrEJfUeX7TmKFziVs9D","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875-\u6682\u672A\u5F00\u53D1","canvas_key":"rcUGrEJfUeX7TmKuP39SKa","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875-\u6682\u672A\u53D1\u5E03","canvas_key":"rcUGrEJfUeX7TmLdcPXJ4x","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875-\u5BA1\u6838\u4E2D","canvas_key":"rcUGrEJfUeX7TmLAy49v0m","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875-\u52A0\u8F7D\u4E2D","canvas_key":"rcUGrEJfUeX7TmMJd2ZFe6","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875-\u52A0\u8F7D\u5931\u8D25","canvas_key":"rcUGrEJfUeX7TmMe0QViqe","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875-\u6682\u65E0\u5546\u54C1","canvas_key":"rcUGrEJfUeX7TmM8jcY4J","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875-\u6682\u65E0\u5730\u5740\u65E0\u6CD5\u83B7\u53D6\u4F4D\u7F6E","canvas_key":"rcUGrEJfUeX7TmNcI8dNec","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875-\u6CA1\u6709\u627E\u5230\u76F8\u5173\u7ED3\u679C","canvas_key":"rcUGrEJfUeX7TmOdoWLL4P","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875-\u6682\u65E0\u8BB0\u5F55","canvas_key":"rcUGrEJfUeXBPNsy1k6gF","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875-\u4E2A\u4EBA\u8BA4\u8BC1\u5931\u8D25","canvas_key":"rcUGrEJfUeXCbWVKFsbhv8","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875-\u4E2A\u4EBA\u8BA4\u8BC1\u6210\u529F","canvas_key":"rcUGrEJfUeXEqjP2GO2Kom","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875-\u4FE1\u606F\u5DF2\u63D0\u4EA4","canvas_key":"rcUGrEJfUeXF4G2MggG3EB","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875-\u652F\u4ED8\u8D85\u65F6\uFF0C\u8BA2\u5355\u5DF2\u53D6\u6D88","canvas_key":"rcUGrEJfUeXFH4bjRsAJUf","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875-\u5BA1\u6838\u5931\u8D25","canvas_key":"rcUGrEJfUeXFXTmglVp6PK","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875-\u4FE1\u606F\u5BA1\u6838\u4E2D","canvas_key":"rcUGrEJfUeXFuukROuBj5h","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875-\u6682\u65E0\u6D88\u606F","canvas_key":"rcUGrEJfUeXG8PTzWFe5pf","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875-\u641C\u7D22\u4E2D","canvas_key":"rcUGrEJfUeXGHPOL9X0xuQ","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875-\u6CA1\u6709\u6570\u636E","canvas_key":"rcUGrEJfUeXGQyBpkrEnyz","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875-\u7F51\u7EDC\u8FDE\u63A5\u65AD\u5F00","canvas_key":"rcUGrEJfUeXGi8da6lFWMc","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875-\u52A0\u8F7D\u4E2D\u8BF7\u7B49\u5F85","canvas_key":"rcUGrEJfUeXHRYVzPZnA20","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875-\u52A0\u8F7D\u5931\u8D25","canvas_key":"rcUGrEJfUeXHdCDSZgNmjq","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875-\u5DF2\u52A0\u5165\u9ED1\u540D\u5355","canvas_key":"rcUGrEJfUeXHnKCRRvd7uK","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875-\u8FD8\u6CA1\u6709\u8BC4\u8BBA","canvas_key":"rcUGrEJfUeXIbQQiYthXoo","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875-\u6CA1\u6709\u6587\u4EF6","canvas_key":"rcUGrEJfUeXIpFsdGkYWxM","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"},{"name":"\u7F3A\u7701\u9875-\u5DF2\u56DE\u590D\u6D88\u606F","canvas_key":"rcUGrEJfUeXJ1dOdK0LNgh","pm_cid":"pm2m7y0dxoifed0ns","mt_cid":"mtlxwy4mxaq56cc5"}],"AI":[{"name":"\u767B\u5F55","canvas_key":"rcUfgGT8UgeD0ejpYX1Uuv","pm_cid":"pm2m8sk69llnpqnmi","mt_cid":"mtm8sk69lmqq4vun"},{"name":"\u5FEB\u6377\u767B\u5F55","canvas_key":"rcUfgGT8UgeF6cAjfFRhaQ","pm_cid":"pm2m8sk69llnpqnmi","mt_cid":"mtm8sk69lmqq4vun"},{"name":"\u9996\u9875","canvas_key":"rcUgeEqJoss9tD0s","pm_cid":"pm2m8sk69llnpqnmi","mt_cid":"mtm8sk69lmqq4vun"},{"name":"\u5386\u53F2\u4F1A\u8BDD","canvas_key":"rcUgeEqJUgeMUOwu9TMlVM","pm_cid":"pm2m8sk69llnpqnmi","mt_cid":"mtm8sk69lmqq4vun"},{"name":"AI\u95EE\u7B54\u804A\u5929","canvas_key":"rcUgeEqJUgeSQcLge0I41K","pm_cid":"pm2m8sk69llnpqnmi","mt_cid":"mtm8sk69lmqq4vun"},{"name":"AI\u95EE\u7B54\u804A\u59292","canvas_key":"rcUgeEqJUgeYpxvjtCiydM","pm_cid":"pm2m8sk69llnpqnmi","mt_cid":"mtm8sk69lmqq4vun"},{"name":"AI\u95EE\u7B54\u65B0\u4F1A\u8BDD","canvas_key":"rcUgeEqJUged7LkvTjBSv6","pm_cid":"pm2m8sk69llnpqnmi","mt_cid":"mtm8sk69lmqq4vun"},{"name":"AI\u95EE\u7B54\u65B0\u4F1A\u8BDD \u601D\u8003\u4E2D","canvas_key":"rcUgeEqJUgiGVehazKhQ0b","pm_cid":"pm2m8sk69llnpqnmi","mt_cid":"mtm8sk69lmqq4vun"},{"name":"AI\u95EE\u7B54\u65B0\u4F1A\u8BDD \u601D\u8003\u5B8C\u6210","canvas_key":"rcUgeEqJUgiLSTeWSCyWqU","pm_cid":"pm2m8sk69llnpqnmi","mt_cid":"mtm8sk69lmqq4vun"},{"name":"AI\u95EE\u7B54\u65B0\u4F1A\u8BDD \u601D\u8003\u5B8C\u6210 \u5206\u6790\u8FC7\u7A0B\u5C55\u5F00","canvas_key":"rcUgeEqJUgiOv91yBIckJZ","pm_cid":"pm2m8sk69llnpqnmi","mt_cid":"mtm8sk69lmqq4vun"},{"name":"\u6587\u4EF6\u9009\u62E9","canvas_key":"rcUgiRLA6dKrLHxv","pm_cid":"pm2m8sk69llnpqnmi","mt_cid":"mtm8sk69lmqq4vun"},{"name":"\u56FE\u7247\u5206\u6790\u8BC6\u522B","canvas_key":"rcUgidO4Uzl6c5aH","pm_cid":"pm2m8sk69llnpqnmi","mt_cid":"mtm8sk69lmqq4vun"},{"name":"\u56FE\u7247\u5206\u6790\u8BC6\u522B\u7ED3\u679C","canvas_key":"rcUgidO4UgifLswzt5v5wz","pm_cid":"pm2m8sk69llnpqnmi","mt_cid":"mtm8sk69lmqq4vun"},{"name":"\u56FE\u7247\u5206\u6790\u8BC6\u522B","canvas_key":"rcUgidO4UgiiVObs0QNwFP","pm_cid":"pm2m8sk69llnpqnmi","mt_cid":"mtm8sk69lmqq4vun"},{"name":"\u56FE\u7247\u4FEE\u6539\u5B8C\u6210","canvas_key":"rcUgidO4UgiiVObhNEYPgV","pm_cid":"pm2m8sk69llnpqnmi","mt_cid":"mtm8sk69lmqq4vun"},{"name":"\u56FE\u7247\u4FEE\u6539\u4E2D","canvas_key":"rcUgeEqJUgikRmb4lQvIHP","pm_cid":"pm2m8sk69llnpqnmi","mt_cid":"mtm8sk69lmqq4vun"},{"name":"\u6587\u6863\u3001word\u3001\u8868\u683C\u3001pdf \u5206\u6790\u8BC6\u522B","canvas_key":"rcUgidO4Ugin1oW7XDT4BV","pm_cid":"pm2m8sk69llnpqnmi","mt_cid":"mtm8sk69lmqq4vun"},{"name":"\u6587\u6863\u3001word\u3001\u8868\u683C\u3001pdf \u5206\u6790\u8BC6\u522B\u7ED3\u679C","canvas_key":"rcUgidO4Ugin1oWIiypVs9","pm_cid":"pm2m8sk69llnpqnmi","mt_cid":"mtm8sk69lmqq4vun"},{"name":"\u6211\u7684","canvas_key":"rcUgiwQgA21UZfyt","pm_cid":"pm2m8sk69llnpqnmi","mt_cid":"mtm8sk69lmqq4vun"},{"name":"AI\u95EE\u7B54\u65B0\u4F1A\u8BDD","canvas_key":"rcUgeEqJUgizBKhDgOkHSX","pm_cid":"pm2m8sk69llnpqnmi","mt_cid":"mtm8sk69lmqq4vun"},{"name":"\u4E3B\u9898\u5207\u6362","canvas_key":"rcUgiwQgUgj0CK56Q4U1Q3","pm_cid":"pm2m8sk69llnpqnmi","mt_cid":"mtm8sk69lmqq4vun"},{"name":"\u9996\u9875--\u673A\u5668\u4EBA\u60AC\u6D6E","canvas_key":"sslyy164UNpwL60Uc0gm8f","pm_cid":"pm0nk4pvo8kykxg","mt_cid":"mtm0nk4q0c388qgt"},{"name":"\u5F39\u7A97","canvas_key":"sslyy164UNpwL8Nd23S8iP","pm_cid":"pm0nk4pvo8kykxg","mt_cid":"mtm0nk4q0c388qgt"},{"name":"\u601D\u8003\u4E2D","canvas_key":"sslyy164UNpwLA7JiYbjmj","pm_cid":"pm0nk4pvo8kykxg","mt_cid":"mtm0nk4q0c388qgt"},{"name":"\u5206\u6790\u7ED3\u679C","canvas_key":"sslyy164UNpwLAeLQfGMcL","pm_cid":"pm0nk4pvo8kykxg","mt_cid":"mtm0nk4q0c388qgt"},{"name":"\u89E3\u51B3\u65B9\u6848-1","canvas_key":"sslyy164UNpwLCMC7XrBJR","pm_cid":"pm0nk4pvo8kykxg","mt_cid":"mtm0nk4q0c388qgt"},{"name":"\u89E3\u51B3\u65B9\u6848-1 \u53BB\u8425\u9500","canvas_key":"sslyy164UNpwLEaWSx8H39","pm_cid":"pm0nk4pvo8kykxg","mt_cid":"mtm0nk4q0c388qgt"},{"name":"\u89E3\u51B3\u65B9\u6848-1 \u77ED\u4FE1","canvas_key":"sslyy164UNpwLFeNlgOqhR","pm_cid":"pm0nk4pvo8kykxg","mt_cid":"mtm0nk4q0c388qgt"},{"name":"\u89E3\u51B3\u65B9\u6848-2","canvas_key":"sslyy164UNpwLDagqXN9n5","pm_cid":"pm0nk4pvo8kykxg","mt_cid":"mtm0nk4q0c388qgt"}],"\u5176\u5B83":[{"name":"\u4F7F\u7528\u8BF4\u660E","canvas_key":"ssl5qw7vTtCAe0Q5lv1NYu","pm_cid":"pl5qw7vrn9iyssb","mt_cid":"mtl2ichdarkvzjd6"},{"name":"\u793E\u4EA4\u7C7B\u5BFC\u822A\u7EC4\u4EF6","canvas_key":"ssl5qw7vTtCAe0sWADIVdL","pm_cid":"pl5qw7vrn9iyssb","mt_cid":"mtl2ichdarkvzjd6"},{"name":"\u7535\u5546\u7C7B\u5BFC\u822A\u7EC4\u5EFA","canvas_key":"ssl5qw7vTtCAe1QeaGcOqP","pm_cid":"pl5qw7vrn9iyssb","mt_cid":"mtl2ichdarkvzjd6"},{"name":"\u65C5\u884C\u7C7B\u5BFC\u822A\u7EC4\u4EF6","canvas_key":"ssl5qw7vTtCAe1xR5uurYX","pm_cid":"pl5qw7vrn9iyssb","mt_cid":"mtl2ichdarkvzjd6"},{"name":"\u5916\u5356\u7C7B\u5BFC\u822A\u7EC4\u4EF6","canvas_key":"ssl5qw7vTtCAe2XibYPqem","pm_cid":"pl5qw7vrn9iyssb","mt_cid":"mtl2ichdarkvzjd6"},{"name":"\u652F\u4ED8\u7C7B\u5BFC\u822A\u7EC4\u4EF6","canvas_key":"ssl5qw7vTtCAe2sduccH3v","pm_cid":"pl5qw7vrn9iyssb","mt_cid":"mtl2ichdarkvzjd6"},{"name":"\u6559\u80B2\u7C7B\u5BFC\u822A\u7EC4\u4EF6","canvas_key":"ssl5qw7vTtCAe3NNAjGIah","pm_cid":"pl5qw7vrn9iyssb","mt_cid":"mtl2ichdarkvzjd6"},{"name":"\u4F5C\u8005\u4FE1\u606F","canvas_key":"ssl5qw7vTtCAe428zEXVjp","pm_cid":"pl5qw7vrn9iyssb","mt_cid":"mtl2ichdarkvzjd6"},{"name":"\u8EAB\u4EFD\u8BA4\u8BC11-\u672A\u586B\u5199","canvas_key":"sskb3icbTtBvMMap1PbNiV","pm_cid":"pkb3icbsh4e92um","mt_cid":"mtkb3icbspf8fcvc"},{"name":"\u8EAB\u4EFD\u8BA4\u8BC11-\u5DF2\u586B\u5199","canvas_key":"sskb3icbTtBvMMoxiF0lRC","pm_cid":"pkb3icbsh4e92um","mt_cid":"mtkb3icbspf8fcvc"},{"name":"\u8EAB\u4EFD\u8BA4\u8BC12","canvas_key":"sskb3icbTtBvMNIzwEoSdu","pm_cid":"pkb3icbsh4e92um","mt_cid":"mtkb3icbspf8fcvc"},{"name":"\u4EBA\u8138\u8BC6\u522B1","canvas_key":"sskb3icbTtBvMNb16sUsG3","pm_cid":"pkb3icbsh4e92um","mt_cid":"mtkb3icbspf8fcvc"},{"name":"\u8EAB\u4EFD\u8BA4\u8BC13","canvas_key":"sskb3icbTtBvMNtEooVlM5","pm_cid":"pkb3icbsh4e92um","mt_cid":"mtkb3icbspf8fcvc"},{"name":"\u8EAB\u4EFD\u8BA4\u8BC14","canvas_key":"sskb3icbTtBvMOMfqk5vSu","pm_cid":"pkb3icbsh4e92um","mt_cid":"mtkb3icbspf8fcvc"},{"name":"\u8EAB\u4EFD\u8BA4\u8BC15-\u672A\u586B\u5199","canvas_key":"sskb3icbTtBvMOhZ3L2Gj4","pm_cid":"pkb3icbsh4e92um","mt_cid":"mtkb3icbspf8fcvc"},{"name":"\u8EAB\u4EFD\u8BA4\u8BC15-\u5DF2\u586B\u5199","canvas_key":"sskb3icbTtBvMP0Ea4qoLN","pm_cid":"pkb3icbsh4e92um","mt_cid":"mtkb3icbspf8fcvc"},{"name":"\u8EAB\u4EFD\u8BA4\u8BC16","canvas_key":"sskb3icbTtBvMPLJOuYCbi","pm_cid":"pkb3icbsh4e92um","mt_cid":"mtkb3icbspf8fcvc"},{"name":"\u8EAB\u4EFD\u8BA4\u8BC17-\u672A\u586B\u5199","canvas_key":"sskb3icbTtBvMPjCkaPF6j","pm_cid":"pkb3icbsh4e92um","mt_cid":"mtkb3icbspf8fcvc"},{"name":"\u8EAB\u4EFD\u8BA4\u8BC17-\u5DF2\u586B\u5199","canvas_key":"sskb3icbTtBvMQ0gDdDry","pm_cid":"pkb3icbsh4e92um","mt_cid":"mtkb3icbspf8fcvc"},{"name":"\u8EAB\u4EFD\u8BA4\u8BC18-\u672A\u586B\u5199","canvas_key":"sskb3icbTtBvMQCPscbI8x","pm_cid":"pkb3icbsh4e92um","mt_cid":"mtkb3icbspf8fcvc"},{"name":"\u8EAB\u4EFD\u8BA4\u8BC18-\u5DF2\u586B\u5199","canvas_key":"sskb3icbTtBvMQHspH1xy4","pm_cid":"pkb3icbsh4e92um","mt_cid":"mtkb3icbspf8fcvc"},{"name":"\u8EAB\u4EFD\u8BA4\u8BC19","canvas_key":"sskb3icbTtBvMQSsSjbCau","pm_cid":"pkb3icbsh4e92um","mt_cid":"mtkb3icbspf8fcvc"}],"":[]}}',q=async()=>{let M=[];try{var w,y,j,Q,ze;const Me=await(0,J.DE)("/api/community/v1/market_template/star_list?user_cid="+MB.user.cid),De=(w=MB.getRootProject())!=null&&w.is_org_project?(y=MB)==null||(y=y.currentOrg)==null?void 0:y.cid:"";let tt=[];try{tt=De?await(0,J.DE)("/api/web/v3/market_template/mt_vip/org_used_vip_templates?org_cid="+De):await(0,J.DE)("/api/web/v3/market_template/mt_vip/used_vip_templates")}catch(ht){}const at=await(0,J.DE)("/api/community/v1/community/purchased");if(Me&&(Me==null||(j=Me.market_templates)==null?void 0:j.length)>0&&(M=[...Me==null?void 0:Me.market_templates.filter(ht=>(ht==null?void 0:ht.version)!=="v1"&&((ht==null?void 0:ht.category)==="screen_list"||(ht==null?void 0:ht.category)==="project_basic")).map(ht=>({...ht,is_star:!0}))]),tt&&((Q=tt)==null||(Q=Q.market_templates)==null?void 0:Q.length)>0){var me;const ht=(me=tt)==null||(me=me.market_templates)==null?void 0:me.sort((Je,$)=>I()($.date_month).valueOf()-I()(Je.date_month).valueOf()).filter((Je,$,mt)=>mt.findIndex(yt=>yt.cid===Je.cid)===$);M=[...M.map(Je=>{const $=ht.find(mt=>mt.cid===Je.cid);return $?{...Je,is_purchased:!0,download_expired:I()($.date_month).format("YYYY-MM")!==I()().format("YYYY-MM")}:{...Je}}),...ht==null?void 0:ht.map(Je=>({...Je,umt_created_at:Je.created_at,is_purchased:!0,download_expired:I()(Je.date_month).format("YYYY-MM")!==I()().format("YYYY-MM")})).filter(Je=>(Je.category==="project_basic"||Je.category==="screen_list")&&M.findIndex($=>$.cid===Je.cid)===-1)]}if(at&&(at==null||(ze=at.market_templates)==null?void 0:ze.length)>0){var Se;M=[...M.map(ht=>(at==null?void 0:at.market_templates.find($=>$.cid===ht.cid))?{...ht,is_purchased:!0}:{...ht}),...at==null||(Se=at.market_templates)==null?void 0:Se.map(ht=>({...ht,umt_created_at:ht.created_at,is_purchased:!0})).filter(ht=>(ht.category==="project_basic"||ht.category==="screen_list")&&M.findIndex(Je=>Je.cid===ht.cid)===-1)]}}catch(Me){(0,N.FY)(Me)}return M.sort((Me,De)=>new Date(De==null?void 0:De.umt_created_at).getTime()-new Date(Me==null?void 0:Me.umt_created_at).getTime())},ne=async M=>{try{const w=M.map(async j=>{const Q=await(0,J.DE)("/api/community/v1/workspace/mkt_list?en_name="+j.value);return{title:j.label,key:j.value,list:Q.map(ze=>{const{isPurchased:me,isVipTemplate:Se,isMdVipTemplate:Me,isMktVipTemplate:De}=(0,T.TX)(ze);return{...ze,isPurchased:me,isVipTemplate:Se,isMdVipTemplate:Me,isMktVipTemplate:De}})}});return await Promise.all(w)}catch(w){return(0,N.FY)(w),[]}},B=async()=>{const M=JSON.parse(SCREENS_MOCK_DATA),w=new Map,y=M.\u79FB\u52A8\u7AEF,j=M.\u7F51\u9875\u7AEF;return w.set("mobile",y),w.set("web",j),w},l=async M=>{try{const w=M.map(async j=>{const Q=await(0,J.Yo)("/api/community/v1/workspace?category=screen_list&plabel="+j),ze=Object.keys(Q.market_templates);return{title:j,nums:Object.values(Q.market_templates).flat().length,templateList:ze.map(me=>({title:me,list:Q.market_templates[me].map(Se=>{const{isPurchased:Me,isVipTemplate:De,isMdVipTemplate:tt,isMktVipTemplate:at}=(0,T.TX)(Se);return{...Se,isPurchased:Me,isVipTemplate:De,isMdVipTemplate:tt,isMktVipTemplate:at}})}))}});return await Promise.all(w)}catch(w){return(0,N.FY)(w),[]}},U=M=>{try{return(0,J.Ds)("/api/community/v1/market_template/like/"+M)}catch(w){(0,N.FY)(w)}},C=M=>{try{return(0,J.DW)("/api/community/v1/market_template/like/"+M)}catch(w){(0,N.FY)(w)}}},47693:(Qn,qe,s)=>{"use strict";s.d(qe,{IL:()=>J,Q1:()=>I,RW:()=>N});var r=s(5209);let I=function(T){return T.BackToCanvas="\u8FD4\u56DE\u753B\u5E03",T.Device="\u6F14\u793A",T.AddState="\u6DFB\u52A0\u72B6\u6001",T.col="\u6A2A\u6392",T.row="\u7AD6\u6392",T.StatePanel="\u72B6\u6001\u9762\u677F",T.CopyState="\u590D\u5236\u72B6\u6001",T.DeleteState="\u5220\u9664\u72B6\u6001",T}({}),J=function(T){return T.Dynamic="\u52A8\u6001\u7EC4\u4EF6",T.Muban="\u6BCD\u7248",T}({});const N=T=>{let{operation_type:te,operation_from:q}=T;(0,r.kH)("component_operation_V8",{operation_type:te,operation_from:q})}},48281:(Qn,qe,s)=>{"use strict";s.d(qe,{$:()=>I,v:()=>J});var r=s(5209);let I=function(N){return N.Logo="logo",N.SwitchPage="\u5207\u6362\u9875\u9762",N.Edit="\u7F16\u8F91",N.Refresh="\u5237\u65B0",N.Zoom="\u7F29\u653E",N.HighLight="\u4EA4\u4E92\u94FE\u63A5\u9AD8\u4EAE",N.NotHighLight="\u4EA4\u4E92\u94FE\u63A5\u9AD8\u4EAE(\u5173)",N.ShowShell="\u663E\u793A\u771F\u673A\u5916\u58F3",N.HideShell="\u9690\u85CF\u771F\u673A\u5916\u58F3",N.DarkBackground="\u6DF1\u8272\u80CC\u666F",N.LightBackground="\u6D45\u8272\u80CC\u666F",N.FullScreen="\u5168\u5C4F",N.BackHome="\u56DE\u5230\u4E3B\u9875",N.previousPage="\u4E0A\u4E00\u9875",N.NextPage="\u4E0B\u4E00\u9875",N.Back="\u8FD4\u56DE",N.Event="\u89E6\u53D1\u4EA4\u4E92\u4E8B\u4EF6",N.OpenPageList="\u5C55\u5F00\u9875\u9762\u5217\u8868",N.ClosePageList="\u5173\u95ED\u9875\u9762\u5217\u8868",N.OpenSTList="\u5C55\u5F00\u6279\u6CE8\u5217\u8868",N.CloseSTList="\u5173\u95ED\u6279\u6CE8\u5217\u8868",N.Sticky="\u6279\u6CE8",N}({});const J=N=>{let{operation_type:T}=N;(0,r.kH)("function_click_present_V8",{operation_type:T})}},48559:(Qn,qe,s)=>{"use strict";s.d(qe,{Eq:()=>I,GZ:()=>N,b8:()=>r,nv:()=>J});const r=()=>{var T,te;return((T=window)==null?void 0:T.MB_DESKTOP_VERSION)||((te=window)==null?void 0:te.isElectron)||/Electron/i.test(navigator.userAgent)},I=()=>/wxwork/i.test(navigator.userAgent),J=()=>/(Lark)/i.test(navigator.userAgent),N=()=>{try{return window.self!==window.top}catch(T){return!0}}},48661:(Qn,qe,s)=>{"use strict";s.d(qe,{p:()=>r});const r=J=>J<=20?I[J]:J>=21&&J<=24?24:J>=25&&J<=29?20:J>=30&&J<=31?17:J>=32&&J<=38?16:J>=39&&J<=45?13:J>=46&&J<=49?11:J>=50&&J<=62?10:J>=63&&J<=71?8:J>=72&&J<=83?7:J>=84&&J<=99?6:J>=100&&J<=124?5:J>=125&&J<=166?4:J>=167&&J<=249?3:J>=250&&J<=500?2:0,I=[334,270,170,137,112,92,75,75,56,50,50,49,41,41,34,34,34,28,28,27]},49420:(Qn,qe,s)=>{"use strict";s.d(qe,{$:()=>I,A:()=>J});var r=s(67787);const I=r.Ay.div.withConfig({displayName:"styles__StyledCommentList",componentId:"sc-16m80ox-0"})(["height:calc(100% - 40px);flex:1;.comment-list{width:100%;height:100%;overflow-y:auto;position:relative;.blank-list{width:100%;display:flex;flex-direction:column;justify-content:flex-start;align-items:center;position:absolute;top:calc(50%);left:50%;transform:translate(-50%,-50%);.text{margin-top:16px;font-size:12px;line-height:16px;color:",";}.login{margin-top:20px;border:1px solid ",";border-radius:4px;font-size:12px;line-height:16px;color:",";width:78px;height:28px;}.icon{width:123px;height:89px;}}.comment-card{width:100%;position:relative;box-sizing:border-box;border-bottom:1px solid ",";.comment-card-header{padding:15px 10px 15px 20px;display:flex;position:relative;width:100%;.comment-summary{flex:1;display:flex;position:relative;width:calc(100% - 20px);.user-avatar{width:26px;height:26px;border-radius:50%;margin-right:6px;&.isSpan{color:#fff;background-color:",";font-size:14px;display:flex;justify-content:center;align-items:center;}}.text-container{position:relative;width:calc(100% - 31px);.user-name,.page-name{font-size:12px;line-height:12px;}.user-name{font-weight:500;color:",";width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}.page-name{margin-top:4px;transform:scale(0.834);transform-origin:left center;color:",";width:calc(100% / 0.834);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}}}.more-btn{width:20px;height:20px;.toolbar-btn{width:20px;height:20px;margin:0;cursor:pointer;border-radius:4px;.svg-icon{color:",";width:20px;height:20px;}}}}.comment-card-content{padding:0 15px 0 20px;.raw-content{width:100%;margin-bottom:4px;word-break:break-all;word-wrap:break-word;a{color:#298df8;display:inline-block;padding-left:2px;padding-right:2px;border-radius:2px;text-decoration:none;background-color:#e6f3ff;}p{user-select:text;font-size:12px;line-height:18px;text-align:justify;color:",";}&.fold-content{display:-webkit-box;-webkit-line-clamp:5;-webkit-box-orient:vertical;overflow:hidden;}}.fold-btn{font-size:12px;line-height:17px;color:",";cursor:pointer;}.replay-info{font-size:12px;line-height:16px;font-weight:normal;color:",";}}.comment-card-footer{padding:10px 10px 10px 20px;display:flex;align-items:center;.time{flex:1;font-size:12px;line-height:12px;transform:scale(0.834);transform-origin:left center;font-weight:normal;color:",";}.toolbar-btn{width:24px;height:24px;cursor:pointer;border-radius:4px;.svg-icon{color:",";width:24px;height:24px;}&.checked{.svg-icon{color:",";}}}}.related-info{display:flex;flex-direction:row;justify-content:space-between;align-items:center;margin-bottom:8px;.star-container{display:flex;flex-direction:row;justify-content:flex-start;align-items:center;.star-icon{margin-right:6px;display:flex;justify-content:center;align-items:center;}.star-count{font-size:12px;font-weight:500;line-height:16px;color:",";}}.artboard-name{font-size:12px;line-height:16px;font-weight:normal;text-align:right;color:",";width:167px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-left:8px;}}.user-info{display:flex;flex-direction:row;justify-content:space-between;align-items:center;margin-bottom:8px;.user-name{font-size:12px;line-height:16px;font-weight:500;color:",";}}&:hover{background-color:",";.more-btn,.comment-card-footer{.toolbar-btn:hover{background:",";}.toolbar-btn.active{background:",";}}}&.comment-active{background:",";.more-btn,.comment-card-footer{.toolbar-btn:hover{background:",";}.toolbar-btn.active{background:",";}}}}.no-more-tips{font-size:12px;transform:scale(0.834);transform-origin:center;line-height:24px;text-align:center;color:",";margin-top:2px;}}"],N=>N.theme.color_text_L2,N=>N.theme.color_text_L1,N=>N.theme.color_text_L1,N=>N.theme.color_bg_border_02,N=>N.theme.color_proto,N=>N.theme.color_text_L1,N=>N.theme.color_text_L2,N=>N.theme.color_text_L1,N=>N.theme.color_text_L1,N=>N.theme.color_proto,N=>N.theme.color_text_L3,N=>N.theme.color_text_L2,N=>N.theme.color_text_L1,N=>N.theme.color_proto,N=>N.theme.color_text_L1,N=>N.theme.color_text_L3,N=>N.theme.color_text_L1,N=>N.theme.color_ruler_shadow_color,N=>N.theme.color_btn_secondary_hover,N=>N.theme.color_btn_secondary_active,N=>N.theme.comment_active,N=>N.theme.color_btn_secondary_hover,N=>N.theme.color_btn_secondary_active,N=>N.theme.color_text_L3),J=r.Ay.div.withConfig({displayName:"styles__StyledCommentPanelContainer",componentId:"sc-16m80ox-1"})(["&.comment-panel{width:100%;height:100%;position:relative;right:0;top:0;background:",";border-radius:4px;.filter-header{width:100%;height:40px;box-sizing:border-box;border-bottom:1px solid ",";padding:0 10px 0 16px;display:flex;flex-direction:row;justify-content:space-between;align-items:center;background:",";h3{flex:1;font-size:12px;font-weight:500;line-height:16px;color:",";}.comment-filter-dropdown,.comment-options-dropdown{width:auto;}.options-trigger-container{width:24px;height:24px;margin-left:4px;}.options-content-container{padding:2px 0;width:240px;background:",";box-shadow:0px 3px 6px -4px rgba(0,0,0,0.12),0px 6px 16px rgba(0,0,0,0.08),0px 9px 28px 8px rgba(0,0,0,0.05);border-radius:4px;.options-item-container{padding:0 15px;display:flex;align-items:center;justify-content:space-between;margin:2px 0;.info-content{flex:1;.main-info{font-size:12px;line-height:12px;color:",";}.desc-info{margin-top:3px;font-size:12px;transform:scale(0.75);transform-origin:left center;line-height:16px;color:",";white-space:nowrap;margin-right:-50px;}}}.end-comment{height:45px;}.show-comment-in-canvas{height:45px;}}.filter-trigger-container,.options-trigger-container{color:",";cursor:pointer;border-radius:4px;transition:300ms;color:",";&.active{color:",";background:",";}&:not(.active):hover{color:",";background:",";}.svg-icon{width:24px;height:24px;path[fill]{fill:currentColor;}path[stroke]{stroke:currentColor;}}}}}"],N=>N.theme.color_bg_white,N=>N.theme.color_bg_border_01,N=>N.theme.color_bg_white,N=>N.theme.color_text_L1,N=>N.theme.color_text_btn,N=>N.theme.color_text_L1,N=>N.theme.color_text_L3,N=>N.theme.color_text_L3,N=>N.theme.color_text_L1,N=>N.theme.color_text_L1,N=>N.theme.color_btn_secondary_active,N=>N.theme.color_text_L1,N=>N.theme.color_btn_secondary_hover)},49439:(Qn,qe,s)=>{"use strict";s.d(qe,{A:()=>B});var r=s(38502),I=s(53732),J=s.n(I),N=s(83199),T=s(67787);const te=T.Ay.div.withConfig({displayName:"styles__StyledDraftDropdownDiv",componentId:"sc-loihs8-0"})(["position:relative;width:100%;margin-left:1px;margin-right:1px;&.center{&.visible > .content{transform:translateX(-50%) scale(1);}> .content{left:50%;transform:translateX(-50%) scale(.9);}}&.visible > .content{border-radius:4px;opacity:1;transform:scale(1);visibility:visible;}&.transparent > .content{background-color:transparent;}> .content{position:absolute;top:100%;opacity:0;transform:scale(.9);transform-origin:50% 0;transition:visibility .2s,transform .2s,opacity .2s;visibility:hidden;z-index:1000;}.trigger-container{height:28px;border-radius:4px;display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding-right:6px;&.disabled{opacity:0.3;cursor:not-allowed;background-color:unset!important;}&:hover{background-color:",";}.icon{flex:1;display:flex;flex-direction:row;justify-content:flex-start;align-items:center;position:relative;color:",";svg{fill:none;}}.trigger{display:flex;flex-direction:row;justify-content:center;align-items:center;.tri-drop{width:6px;height:4px;color:#999;}}}.content-container{position:absolute;top:0;left:0;background-color:",";color:",";border:1px solid transparent;border-radius:4px;display:flex;flex-direction:column;justify-content:flex-start;align-items:center;filter:drop-shadow(4px 12px 40px rgba(39,54,78,0.1)) drop-shadow(0px 2px 10px rgba(39,54,78,0.08));}"],l=>l.theme.color_btn_secondary_hover,l=>l.theme.color_text_L1,l=>l.theme.color_bg_white,l=>l.theme.color_text_L1);var q=s(72214);const ne=(l,U)=>{const{disabled:C,title:M,position:w,top:y,right:j,bottom:Q,left:ze,dark:me,center:Se,className:Me,trigger:De,onBeforeShow:tt,onShow:at,onClose:ht,onBeforeClose:Je,closeOnContentClick:$,onClickOutside:mt}=l,[yt,Le]=(0,r.useState)(!1),[He,ye]=(0,r.useState)(!1),je=(0,r.useRef)(),ot=(0,r.useRef)(),we=(0,r.useMemo)(()=>({position:w,top:y,right:j,bottom:Q,left:ze}),[w,y,j,ze,Q]),$e=(0,r.useCallback)(async ge=>{const Ze=je&&je.current&&je.current.contains(ge.target),W=ot&&ot.current&&ot.current.contains(ge.target);if(je.current===ge.target||Ze){if(!yt&&tt&&!await tt())return;!C&&Le(an=>!an)}else ot.current===ge.target||W?$&&Le(!1):Je?Je(ge)!==!1&&Le(!1):mt?mt(ge)!==!1&&Le(!1):Le(!1)},[C,yt,tt,Je,$,mt]);return(0,r.useImperativeHandle)(U,()=>({setDropdownVisible:Le,show:()=>Le(!0),close:()=>Le(!1)})),(0,r.useEffect)(()=>(!C&&document.addEventListener("click",$e,!0),()=>{document.removeEventListener("click",$e,!0)}),[C,$e]),(0,r.useEffect)(()=>{at&&yt&&at()},[yt,at]),(0,r.useEffect)(()=>{He&&ht&&!yt&&ht()},[yt,He,ht]),(0,r.useEffect)(()=>{ye(!0)},[]),(0,q.jsxs)(te,{className:J()(Me,{dark:me,center:Se,visible:!C&&yt}),children:[(0,q.jsx)("a",{ref:je,className:"trigger",id:"drop-trigger",children:M?(0,q.jsx)(N.A,{className:"floating-tooltip",content:M,direction:"down",distance:12,children:De}):De}),(0,q.jsx)("div",{ref:ot,className:"content",style:we,children:l.children})]})},B=r.memo(r.forwardRef(ne))},50219:(Qn,qe,s)=>{"use strict";s.d(qe,{J:()=>I});var r=s(48559);const I=(J,N,T)=>{const te=(0,r.nv)()?"_self":N;return window.open(J,te,T)}},50325:(Qn,qe,s)=>{"use strict";s.d(qe,{aM:()=>q,gD:()=>N,iv:()=>T});var r=s(82959),I=s(85449);const J=[{value:r.ni},{value:"\u6309\u94AE",children:[{value:"\u57FA\u7840\u6309\u94AE"},{value:"\u56FE\u6807\u6309\u94AE"}]},{value:"\u6570\u636E\u5F55\u5165",children:[{value:"\u5185\u7F6E\u8868\u5355"},{value:"\u641C\u7D22"},{value:"\u5355\u9009"},{value:"\u65E5\u671F"},{value:"\u8F93\u5165\u6846"},{value:"\u4E0B\u62C9\u83DC\u5355"},{value:"\u5F00\u5173"},{value:"\u591A\u9009"},{value:"\u4E0A\u4F20"},{value:"\u8BC4\u5206"},{value:"\u9009\u62E9\u5668"},{value:"\u8868\u5355"}]},{value:"\u6570\u636E\u5C55\u793A",children:[{value:"\u5185\u7F6E\u591A\u5A92\u4F53"},{value:"\u5185\u7F6E\u56FE\u8868"},{value:"\u5185\u7F6E\u9AD8\u7EA7\u56FE\u8868"},{value:"\u6807\u7B7E"},{value:"\u5934\u50CF"},{value:"\u5217\u8868"},{value:"\u8FDB\u5EA6"},{value:"\u6298\u53E0\u9762\u677F"},{value:"\u56FE\u8868"},{value:"\u5730\u56FE"},{value:"\u5361\u7247"},{value:"\u5206\u9875"},{value:"\u7B5B\u9009"},{value:"\u8F6E\u64AD"}]},{value:"\u5BFC\u822A",children:[{value:"\u5185\u7F6E\u5BFC\u822A"},{value:"\u5BFC\u822A\u680F"},{value:"Tab\u6807\u7B7E\u680F"},{value:"\u83DC\u5355&\u5BAB\u683C"},{value:"\u4FA7\u8FB9\u5BFC\u822A"},{value:"\u6B65\u9AA4\u6761"}]},{value:"\u53CD\u9988"},{value:"\u5176\u4ED6"}],N={[r.Iw.MP_App]:J,[r.Iw.MP_Applet]:J,[r.Iw.MP_H5]:J,[r.Iw.PC_WebBack]:[{value:r.ni},{value:"\u6309\u94AE&\u5E03\u5C40",children:[{value:"\u57FA\u7840\u6309\u94AE"},{value:"\u56FE\u6807\u6309\u94AE"},{value:"\u5E03\u5C40"}]},{value:"\u6570\u636E\u5F55\u5165",children:[{value:"\u5185\u7F6E\u8868\u5355"},{value:"\u641C\u7D22"},{value:"\u65E5\u671F\u65F6\u95F4"},{value:"\u4E0A\u4F20"},{value:"\u5355\u9009"},{value:"\u8F93\u5165"},{value:"\u591A\u9009"},{value:"\u5BCC\u6587\u672C"},{value:"\u5F00\u5173"},{value:"\u7B5B\u9009"}]},{value:"\u6570\u636E\u5C55\u793A",children:[{value:"\u5185\u7F6E\u591A\u5A92\u4F53"},{value:"\u5185\u7F6E\u56FE\u8868"},{value:"\u5185\u7F6E\u9AD8\u7EA7\u56FE\u8868"},{value:"\u8868\u683C"},{value:"\u6807\u7B7E"},{value:"\u6EDA\u52A8\u6761"},{value:"\u8FDB\u5EA6"},{value:"\u5934\u50CF"},{value:"\u5730\u56FE"},{value:"\u5217\u8868"},{value:"\u56FE\u8868"}]},{value:"\u5BFC\u822A",children:[{value:"\u5185\u7F6E\u5BFC\u822A"},{value:"\u5BFC\u822A\u680F"},{value:"\u4E0B\u62C9\u83DC\u5355"},{value:"\u5206\u9875"},{value:"\u6B65\u9AA4\u6761"}]},{value:"\u53CD\u9988"},{value:"\u5176\u4ED6"}],[r.Iw.PC_Website]:[{value:r.ni},{value:"\u5B98\u7F51\u5BFC\u822A",children:[{value:"\u5185\u7F6E\u5BFC\u822A"},{value:"\u9876\u90E8\u5BFC\u822A"},{value:"\u4FA7\u8FB9\u5BFC\u822A"},{value:"\u5176\u4ED6\u5BFC\u822A"}]},{value:"\u5185\u5BB9\u533A",children:[{value:"\u5185\u7F6E\u591A\u5A92\u4F53"},{value:"Banner"},{value:"\u5B98\u7F51\u7B80\u4ECB"},{value:"\u5BA2\u6237\u6848\u4F8B"},{value:"\u56FE\u6587\u5361\u7247"},{value:"\u5176\u4ED6\u5185\u5BB9"}]},{value:"\u7279\u5F81\u533A",children:[{value:"\u4EA7\u54C1\u65B9\u6848"},{value:"\u56E2\u961F"},{value:"\u5B9A\u4EF7"}]},{value:"\u9875\u811A",children:[{value:"\u9875\u811A\uFF08\u4EAE\u8272\uFF09"},{value:"\u9875\u811A\uFF08\u6697\u9ED1\uFF09"}]}],[r.Iw.DS_Screen]:[{value:r.ni},{value:"\u6846\u67B6\u80CC\u666F"},{value:"\u6807\u9898\u6837\u5F0F"},{value:"\u56FE\u8868",children:[{value:"\u5185\u7F6E\u56FE\u8868"},{value:"\u5185\u7F6E\u9AD8\u7EA7\u56FE\u8868"},{value:"\u5E38\u89C1\u56FE\u8868"},{value:"\u7279\u6B8A\u56FE\u8868"}]},{value:"\u5730\u56FE"},{value:"\u6309\u94AE"},{value:"\u7A97\u53E3\u6846"},{value:"\u5F39\u7A97"},{value:"\u6307\u6807"},{value:"\u5176\u4ED6"}],[r.Iw.HMI_IndusHmi]:[{value:r.ni},{value:"\u6309\u94AE"},{value:"\u6307\u793A\u706F"},{value:"\u5F00\u5173"},{value:"\u6ED1\u5757"},{value:"\u4EEA\u8868\u76D8"},{value:"\u8BBE\u5907\u7EC4\u4EF6"},{value:"\u7B26\u53F7"},{value:"\u5176\u4ED6"}],[r.Iw.HMI_Car]:[{value:r.ni},{value:"\u4E2D\u63A7\u6846\u67B6"},{value:"\u4EEA\u8868\u76D8"},{value:"\u5BFC\u822A"},{value:"\u5185\u5BB9\u5361\u7247"},{value:"\u56FE\u6807"},{value:"\u5176\u4ED6"}],[r.Iw.Pad]:[{value:r.ni},{value:"\u5BFC\u822A\u680F"},{value:"\u72B6\u6001\u680F"},{value:"\u5F39\u7A97"},{value:"\u5217\u8868\u83DC\u5355"},{value:"\u952E\u76D8"},{value:"\u65F6\u95F4\u9009\u62E9\u5668"},{value:"\u5176\u4ED6"}],[r.Iw.SmartTV]:[{value:r.ni},{value:"\u5BFC\u822A"},{value:"banner"},{value:"\u5185\u5BB9\u533A"},{value:"\u4ED8\u8D39\u5F39\u7A97"},{value:"\u952E\u76D8"},{value:"\u5176\u4ED6"}],[r.Iw.Watch]:[{value:r.ni},{value:"Apple Watch OS"},{value:"Android Watch"}],[r.Iw.Common]:[{value:r.ni}]},T={[r.Iw.DS_Screen]:6,[r.Iw.HMI_IndusHmi]:7,[r.Iw.HMI_Car]:4,[r.Iw.Pad]:6,[r.Iw.Watch]:7},te=(ne,B,l,U)=>ne.length===0?[]:ne.map(C=>{const w=(B.get(C.mt_cid)||[]).find(y=>y.key===C.cid);return w&&(l.set(C.cid,w),U.push(w)),w||{...C,key:C.cid,mtCid:C.mt_cid}}),q=(ne,B)=>{const l=new Map,U=[],C=ne.map(M=>{const w=M.children.map(y=>{const j=te((0,I.YT)(y.children,"cid"),B,l,U);return{...y,children:j}});return{...M,children:w}});return{itemsMap:l,templateList:U,fetchList:C}}},50918:Qn=>{function qe(De){return De?typeof De=="string"?De:De.source:null}function s(De){return r("(?=",De,")")}function r(){for(var De=arguments.length,tt=new Array(De),at=0;at<De;at++)tt[at]=arguments[at];return tt.map(Je=>qe(Je)).join("")}function I(){for(var De=arguments.length,tt=new Array(De),at=0;at<De;at++)tt[at]=arguments[at];return"("+tt.map(Je=>qe(Je)).join("|")+")"}const J=De=>r(/\b/,De,/\w$/.test(De)?/\b/:/\B/),N=["Protocol","Type"].map(J),T=["init","self"].map(J),te=["Any","Self"],q=["associatedtype","async","await",/as\?/,/as!/,"as","break","case","catch","class","continue","convenience","default","defer","deinit","didSet","do","dynamic","else","enum","extension","fallthrough",/fileprivate\(set\)/,"fileprivate","final","for","func","get","guard","if","import","indirect","infix",/init\?/,/init!/,"inout",/internal\(set\)/,"internal","in","is","lazy","let","mutating","nonmutating",/open\(set\)/,"open","operator","optional","override","postfix","precedencegroup","prefix",/private\(set\)/,"private","protocol",/public\(set\)/,"public","repeat","required","rethrows","return","set","some","static","struct","subscript","super","switch","throws","throw",/try\?/,/try!/,"try","typealias",/unowned\(safe\)/,/unowned\(unsafe\)/,"unowned","var","weak","where","while","willSet"],ne=["false","nil","true"],B=["assignment","associativity","higherThan","left","lowerThan","none","right"],l=["#colorLiteral","#column","#dsohandle","#else","#elseif","#endif","#error","#file","#fileID","#fileLiteral","#filePath","#function","#if","#imageLiteral","#keyPath","#line","#selector","#sourceLocation","#warn_unqualified_access","#warning"],U=["abs","all","any","assert","assertionFailure","debugPrint","dump","fatalError","getVaList","isKnownUniquelyReferenced","max","min","numericCast","pointwiseMax","pointwiseMin","precondition","preconditionFailure","print","readLine","repeatElement","sequence","stride","swap","swift_unboxFromSwiftValueWithType","transcode","type","unsafeBitCast","unsafeDowncast","withExtendedLifetime","withUnsafeMutablePointer","withUnsafePointer","withVaList","withoutActuallyEscaping","zip"],C=I(/[/=\-+!*%<>&|^~?]/,/[\u00A1-\u00A7]/,/[\u00A9\u00AB]/,/[\u00AC\u00AE]/,/[\u00B0\u00B1]/,/[\u00B6\u00BB\u00BF\u00D7\u00F7]/,/[\u2016-\u2017]/,/[\u2020-\u2027]/,/[\u2030-\u203E]/,/[\u2041-\u2053]/,/[\u2055-\u205E]/,/[\u2190-\u23FF]/,/[\u2500-\u2775]/,/[\u2794-\u2BFF]/,/[\u2E00-\u2E7F]/,/[\u3001-\u3003]/,/[\u3008-\u3020]/,/[\u3030]/),M=I(C,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),w=r(C,M,"*"),y=I(/[a-zA-Z_]/,/[\u00A8\u00AA\u00AD\u00AF\u00B2-\u00B5\u00B7-\u00BA]/,/[\u00BC-\u00BE\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF]/,/[\u0100-\u02FF\u0370-\u167F\u1681-\u180D\u180F-\u1DBF]/,/[\u1E00-\u1FFF]/,/[\u200B-\u200D\u202A-\u202E\u203F-\u2040\u2054\u2060-\u206F]/,/[\u2070-\u20CF\u2100-\u218F\u2460-\u24FF\u2776-\u2793]/,/[\u2C00-\u2DFF\u2E80-\u2FFF]/,/[\u3004-\u3007\u3021-\u302F\u3031-\u303F\u3040-\uD7FF]/,/[\uF900-\uFD3D\uFD40-\uFDCF\uFDF0-\uFE1F\uFE30-\uFE44]/,/[\uFE47-\uFEFE\uFF00-\uFFFD]/),j=I(y,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),Q=r(y,j,"*"),ze=r(/[A-Z]/,j,"*"),me=["autoclosure",r(/convention\(/,I("swift","block","c"),/\)/),"discardableResult","dynamicCallable","dynamicMemberLookup","escaping","frozen","GKInspectable","IBAction","IBDesignable","IBInspectable","IBOutlet","IBSegueAction","inlinable","main","nonobjc","NSApplicationMain","NSCopying","NSManaged",r(/objc\(/,Q,/\)/),"objc","objcMembers","propertyWrapper","requires_stored_property_inits","testable","UIApplicationMain","unknown","usableFromInline"],Se=["iOS","iOSApplicationExtension","macOS","macOSApplicationExtension","macCatalyst","macCatalystApplicationExtension","watchOS","watchOSApplicationExtension","tvOS","tvOSApplicationExtension","swift"];function Me(De){const tt={match:/\s+/,relevance:0},at=De.COMMENT("/\\*","\\*/",{contains:["self"]}),ht=[De.C_LINE_COMMENT_MODE,at],Je={className:"keyword",begin:r(/\./,s(I(...N,...T))),end:I(...N,...T),excludeBegin:!0},$={match:r(/\./,I(...q)),relevance:0},mt=q.filter(Dt=>typeof Dt=="string").concat(["_|0"]),yt=q.filter(Dt=>typeof Dt!="string").concat(te).map(J),Le={variants:[{className:"keyword",match:I(...yt,...T)}]},He={$pattern:I(/\b\w+/,/#\w+/),keyword:mt.concat(l),literal:ne},ye=[Je,$,Le],je={match:r(/\./,I(...U)),relevance:0},ot={className:"built_in",match:r(/\b/,I(...U),/(?=\()/)},we=[je,ot],$e={match:/->/,relevance:0},ge={className:"operator",relevance:0,variants:[{match:w},{match:"\\.(\\.|"+M+")+"}]},Ze=[$e,ge],W="([0-9]_*)+",an="([0-9a-fA-F]_*)+",_t={className:"number",relevance:0,variants:[{match:"\\b("+W+")(\\.("+W+"))?"+("([eE][+-]?("+W+"))?\\b")},{match:"\\b0x("+an+")(\\.("+an+"))?"+("([pP][+-]?("+W+"))?\\b")},{match:/\b0o([0-7]_*)+\b/},{match:/\b0b([01]_*)+\b/}]},nn=function(Dt){return Dt===void 0&&(Dt=""),{className:"subst",variants:[{match:r(/\\/,Dt,/[0\\tnr"']/)},{match:r(/\\/,Dt,/u\{[0-9a-fA-F]{1,8}\}/)}]}},Oe=function(Dt){return Dt===void 0&&(Dt=""),{className:"subst",match:r(/\\/,Dt,/[\t ]*(?:[\r\n]|\r\n)/)}},sn=function(Dt){return Dt===void 0&&(Dt=""),{className:"subst",label:"interpol",begin:r(/\\/,Dt,/\(/),end:/\)/}},It=function(Dt){return Dt===void 0&&(Dt=""),{begin:r(Dt,/"""/),end:r(/"""/,Dt),contains:[nn(Dt),Oe(Dt),sn(Dt)]}},Pt=function(Dt){return Dt===void 0&&(Dt=""),{begin:r(Dt,/"/),end:r(/"/,Dt),contains:[nn(Dt),sn(Dt)]}},dt={className:"string",variants:[It(),It("#"),It("##"),It("###"),Pt(),Pt("#"),Pt("##"),Pt("###")]},Vn={match:r(/`/,Q,/`/)},o={className:"variable",match:/\$\d+/},Gn={className:"variable",match:"\\$"+j+"+"},xt=[Vn,o,Gn],Ot={match:/(@|#)available/,className:"keyword",starts:{contains:[{begin:/\(/,end:/\)/,keywords:Se,contains:[...Ze,_t,dt]}]}},wt={className:"keyword",match:r(/@/,I(...me))},Kt={className:"meta",match:r(/@/,Q)},fe=[Ot,wt,Kt],bt={match:s(/\b[A-Z]/),relevance:0,contains:[{className:"type",match:r(/(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)/,j,"+")},{className:"type",match:ze,relevance:0},{match:/[?!]+/,relevance:0},{match:/\.\.\./,relevance:0},{match:r(/\s+&\s+/,s(ze)),relevance:0}]},un={begin:/</,end:/>/,keywords:He,contains:[...ht,...ye,...fe,$e,bt]};bt.contains.push(un);const gt={match:r(Q,/\s*:/),keywords:"_|0",relevance:0},Wt={begin:/\(/,end:/\)/,relevance:0,keywords:He,contains:["self",gt,...ht,...ye,...we,...Ze,_t,dt,...xt,...fe,bt]},Un={beginKeywords:"func",contains:[{className:"title",match:I(Vn.match,Q,w),endsParent:!0,relevance:0},tt]},Jn={begin:/</,end:/>/,contains:[...ht,bt]},Yt={begin:I(s(r(Q,/\s*:/)),s(r(Q,/\s+/,Q,/\s*:/))),end:/:/,relevance:0,contains:[{className:"keyword",match:/\b_\b/},{className:"params",match:Q}]},rt={begin:/\(/,end:/\)/,keywords:He,contains:[Yt,...ht,...ye,...Ze,_t,dt,...fe,bt,Wt],endsParent:!0,illegal:/["']/},An={className:"function",match:s(/\bfunc\b/),contains:[Un,Jn,rt,tt],illegal:[/\[/,/%/]},Nt={className:"function",match:/\b(subscript|init[?!]?)\s*(?=[<(])/,keywords:{keyword:"subscript init init? init!",$pattern:/\w+[?!]?/},contains:[Jn,rt,tt],illegal:/\[|%/},jt={beginKeywords:"operator",end:De.MATCH_NOTHING_RE,contains:[{className:"title",match:w,endsParent:!0,relevance:0}]},vn={beginKeywords:"precedencegroup",end:De.MATCH_NOTHING_RE,contains:[{className:"title",match:ze,relevance:0},{begin:/{/,end:/}/,relevance:0,endsParent:!0,keywords:[...B,...ne],contains:[bt]}]};for(const Dt of dt.variants){const $t=Dt.contains.find(Kn=>Kn.label==="interpol");$t.keywords=He;const kn=[...ye,...we,...Ze,_t,dt,...xt];$t.contains=[...kn,{begin:/\(/,end:/\)/,contains:["self",...kn]}]}return{name:"Swift",keywords:He,contains:[...ht,An,Nt,{className:"class",beginKeywords:"struct protocol class extension enum",end:"\\{",excludeEnd:!0,keywords:He,contains:[De.inherit(De.TITLE_MODE,{begin:/[A-Za-z$_][\u00C0-\u02B80-9A-Za-z$_]*/}),...ye]},jt,vn,{beginKeywords:"import",end:/$/,contains:[...ht],relevance:0},...ye,...we,...Ze,_t,dt,...xt,...fe,bt,Wt]}}Qn.exports=Me},50960:(Qn,qe,s)=>{var r=s(63195),I=r("floor");Qn.exports=I},51885:(Qn,qe,s)=>{"use strict";s.d(qe,{a:()=>l,A:()=>Se});var r=s(76241),I=s(94586),J=s(95549),N=s(91834),T=s(53732),te=s.n(T),q=s(38502),ne=s(37898),B=q.forwardRef(function(Me,De){var tt,at,ht,Je=Me.inputElement,$=Me.children,mt=Me.prefixCls,yt=Me.prefix,Le=Me.suffix,He=Me.addonBefore,ye=Me.addonAfter,je=Me.className,ot=Me.style,we=Me.disabled,$e=Me.readOnly,ge=Me.focused,Ze=Me.triggerFocus,W=Me.allowClear,an=Me.value,_t=Me.handleReset,nn=Me.hidden,Oe=Me.classes,sn=Me.classNames,It=Me.dataAttrs,Pt=Me.styles,dt=Me.components,Vn=Me.onClear,o=$!=null?$:Je,Gn=(dt==null?void 0:dt.affixWrapper)||"span",xt=(dt==null?void 0:dt.groupWrapper)||"span",Ot=(dt==null?void 0:dt.wrapper)||"span",wt=(dt==null?void 0:dt.groupAddon)||"span",Kt=(0,q.useRef)(null),fe=function(dn){var ft;(ft=Kt.current)!==null&&ft!==void 0&&ft.contains(dn.target)&&(Ze==null||Ze())},bt=(0,ne.OL)(Me),un=(0,q.cloneElement)(o,{value:an,className:te()((tt=o.props)===null||tt===void 0?void 0:tt.className,!bt&&(sn==null?void 0:sn.variant))||null}),gt=(0,q.useRef)(null);if(q.useImperativeHandle(De,function(){return{nativeElement:gt.current||Kt.current}}),bt){var Wt=null;if(W){var Un=!we&&!$e&&an,Jn="".concat(mt,"-clear-icon"),Yt=(0,N.A)(W)==="object"&&W!==null&&W!==void 0&&W.clearIcon?W.clearIcon:"\u2716";Wt=q.createElement("button",{type:"button",tabIndex:-1,onClick:function(dn){_t==null||_t(dn),Vn==null||Vn()},onMouseDown:function(dn){return dn.preventDefault()},className:te()(Jn,(0,J.A)((0,J.A)({},"".concat(Jn,"-hidden"),!Un),"".concat(Jn,"-has-suffix"),!!Le))},Yt)}var rt="".concat(mt,"-affix-wrapper"),An=te()(rt,(0,J.A)((0,J.A)((0,J.A)((0,J.A)((0,J.A)({},"".concat(mt,"-disabled"),we),"".concat(rt,"-disabled"),we),"".concat(rt,"-focused"),ge),"".concat(rt,"-readonly"),$e),"".concat(rt,"-input-with-clear-btn"),Le&&W&&an),Oe==null?void 0:Oe.affixWrapper,sn==null?void 0:sn.affixWrapper,sn==null?void 0:sn.variant),Nt=(Le||W)&&q.createElement("span",{className:te()("".concat(mt,"-suffix"),sn==null?void 0:sn.suffix),style:Pt==null?void 0:Pt.suffix},Wt,Le);un=q.createElement(Gn,(0,I.A)({className:An,style:Pt==null?void 0:Pt.affixWrapper,onClick:fe},It==null?void 0:It.affixWrapper,{ref:Kt}),yt&&q.createElement("span",{className:te()("".concat(mt,"-prefix"),sn==null?void 0:sn.prefix),style:Pt==null?void 0:Pt.prefix},yt),un,Nt)}if((0,ne.bk)(Me)){var jt="".concat(mt,"-group"),vn="".concat(jt,"-addon"),Dt="".concat(jt,"-wrapper"),$t=te()("".concat(mt,"-wrapper"),jt,Oe==null?void 0:Oe.wrapper,sn==null?void 0:sn.wrapper),kn=te()(Dt,(0,J.A)({},"".concat(Dt,"-disabled"),we),Oe==null?void 0:Oe.group,sn==null?void 0:sn.groupWrapper);un=q.createElement(xt,{className:kn,ref:gt},q.createElement(Ot,{className:$t},He&&q.createElement(wt,{className:vn},He),un,ye&&q.createElement(wt,{className:vn},ye)))}return q.cloneElement(un,{className:te()((at=un.props)===null||at===void 0?void 0:at.className,je)||null,style:(0,r.A)((0,r.A)({},(ht=un.props)===null||ht===void 0?void 0:ht.style),ot),hidden:nn})});const l=B;var U=s(63296),C=s(53034),M=s(59895),w=s(94815),y=s(13199),j=s(6323),Q=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],ze=(0,q.forwardRef)(function(Me,De){var tt=Me.autoComplete,at=Me.onChange,ht=Me.onFocus,Je=Me.onBlur,$=Me.onPressEnter,mt=Me.onKeyDown,yt=Me.onKeyUp,Le=Me.prefixCls,He=Le===void 0?"rc-input":Le,ye=Me.disabled,je=Me.htmlSize,ot=Me.className,we=Me.maxLength,$e=Me.suffix,ge=Me.showCount,Ze=Me.count,W=Me.type,an=W===void 0?"text":W,_t=Me.classes,nn=Me.classNames,Oe=Me.styles,sn=Me.onCompositionStart,It=Me.onCompositionEnd,Pt=(0,M.A)(Me,Q),dt=(0,q.useState)(!1),Vn=(0,C.A)(dt,2),o=Vn[0],Gn=Vn[1],xt=(0,q.useRef)(!1),Ot=(0,q.useRef)(!1),wt=(0,q.useRef)(null),Kt=(0,q.useRef)(null),fe=function(Wn){wt.current&&(0,ne.F4)(wt.current,Wn)},bt=(0,w.A)(Me.defaultValue,{value:Me.value}),un=(0,C.A)(bt,2),gt=un[0],Wt=un[1],Un=gt==null?"":String(gt),Jn=(0,q.useState)(null),Yt=(0,C.A)(Jn,2),rt=Yt[0],An=Yt[1],Nt=(0,j.A)(Ze,ge),jt=Nt.max||we,vn=Nt.strategy(Un),Dt=!!jt&&vn>jt;(0,q.useImperativeHandle)(De,function(){var qn;return{focus:fe,blur:function(){var Nn;(Nn=wt.current)===null||Nn===void 0||Nn.blur()},setSelectionRange:function(Nn,xn,Ye){var wn;(wn=wt.current)===null||wn===void 0||wn.setSelectionRange(Nn,xn,Ye)},select:function(){var Nn;(Nn=wt.current)===null||Nn===void 0||Nn.select()},input:wt.current,nativeElement:((qn=Kt.current)===null||qn===void 0?void 0:qn.nativeElement)||wt.current}}),(0,q.useEffect)(function(){Ot.current&&(Ot.current=!1),Gn(function(qn){return qn&&ye?!1:qn})},[ye]);var $t=function(Wn,Nn,xn){var Ye=Nn;if(!xt.current&&Nt.exceedFormatter&&Nt.max&&Nt.strategy(Nn)>Nt.max){if(Ye=Nt.exceedFormatter(Nn,{max:Nt.max}),Nn!==Ye){var wn,Hn;An([((wn=wt.current)===null||wn===void 0?void 0:wn.selectionStart)||0,((Hn=wt.current)===null||Hn===void 0?void 0:Hn.selectionEnd)||0])}}else if(xn.source==="compositionEnd")return;Wt(Ye),wt.current&&(0,ne.gS)(wt.current,Wn,at,Ye)};(0,q.useEffect)(function(){if(rt){var qn;(qn=wt.current)===null||qn===void 0||qn.setSelectionRange.apply(qn,(0,U.A)(rt))}},[rt]);var kn=function(Wn){$t(Wn,Wn.target.value,{source:"change"})},Kn=function(Wn){xt.current=!1,$t(Wn,Wn.currentTarget.value,{source:"compositionEnd"}),It==null||It(Wn)},dn=function(Wn){$&&Wn.key==="Enter"&&!Ot.current&&(Ot.current=!0,$(Wn)),mt==null||mt(Wn)},ft=function(Wn){Wn.key==="Enter"&&(Ot.current=!1),yt==null||yt(Wn)},Lt=function(Wn){Gn(!0),ht==null||ht(Wn)},bn=function(Wn){Ot.current&&(Ot.current=!1),Gn(!1),Je==null||Je(Wn)},Yn=function(Wn){Wt(""),fe(),wt.current&&(0,ne.gS)(wt.current,Wn,at)},on=Dt&&"".concat(He,"-out-of-range"),yn=function(){var Wn=(0,y.A)(Me,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return q.createElement("input",(0,I.A)({autoComplete:tt},Wn,{onChange:kn,onFocus:Lt,onBlur:bn,onKeyDown:dn,onKeyUp:ft,className:te()(He,(0,J.A)({},"".concat(He,"-disabled"),ye),nn==null?void 0:nn.input),style:Oe==null?void 0:Oe.input,ref:wt,size:je,type:an,onCompositionStart:function(xn){xt.current=!0,sn==null||sn(xn)},onCompositionEnd:Kn}))},lo=function(){var Wn=Number(jt)>0;if($e||Nt.show){var Nn=Nt.showFormatter?Nt.showFormatter({value:Un,count:vn,maxLength:jt}):"".concat(vn).concat(Wn?" / ".concat(jt):"");return q.createElement(q.Fragment,null,Nt.show&&q.createElement("span",{className:te()("".concat(He,"-show-count-suffix"),(0,J.A)({},"".concat(He,"-show-count-has-suffix"),!!$e),nn==null?void 0:nn.count),style:(0,r.A)({},Oe==null?void 0:Oe.count)},Nn),$e)}return null};return q.createElement(l,(0,I.A)({},Pt,{prefixCls:He,className:te()(ot,on),handleReset:Yn,value:Un,focused:o,triggerFocus:fe,suffix:lo(),disabled:ye,classes:_t,classNames:nn,styles:Oe,ref:Kt}),yn())});const Se=ze},52171:(Qn,qe,s)=>{"use strict";Object.defineProperty(qe,"__esModule",{value:!0});var r=function(){function M(w,y){for(var j=0;j<y.length;j++){var Q=y[j];Q.enumerable=Q.enumerable||!1,Q.configurable=!0,"value"in Q&&(Q.writable=!0),Object.defineProperty(w,Q.key,Q)}}return function(w,y,j){return y&&M(w.prototype,y),j&&M(w,j),w}}(),I=s(38502),J=ne(I),N=s(25582),T=ne(N),te=s(36221),q=ne(te);function ne(M){return M&&M.__esModule?M:{default:M}}function B(M,w){if(!(M instanceof w))throw new TypeError("Cannot call a class as a function")}function l(M,w){if(!M)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return w&&(typeof w=="object"||typeof w=="function")?w:M}function U(M,w){if(typeof w!="function"&&w!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof w);M.prototype=Object.create(w&&w.prototype,{constructor:{value:M,enumerable:!1,writable:!0,configurable:!0}}),w&&(Object.setPrototypeOf?Object.setPrototypeOf(M,w):M.__proto__=w)}var C=function(M){U(w,M);function w(){return B(this,w),l(this,(w.__proto__||Object.getPrototypeOf(w)).apply(this,arguments))}return r(w,[{key:"render",value:function(){var j=this.props.value;return J.default.createElement("span",{className:"value-viewer"},j)}}]),w}(I.PureComponent);qe.default=C,C.propTypes={row:T.default.number.isRequired,col:T.default.number.isRequired,cell:T.default.shape(q.default),value:T.default.node.isRequired}},52183:(Qn,qe,s)=>{"use strict";s.d(qe,{A:()=>te});var r=s(38502),I=s(18381),J=s(75276);const N=(q,ne)=>q===ne?!0:(q==null?void 0:q.size)!==(ne==null?void 0:ne.size)?!1:[...q].some(B=>!ne.has(B)),te=q=>{const ne=(0,I.d4)(J.j9),B=(0,r.useRef)(ne);(0,r.useEffect)(()=>{if(!ne||!q.current)return;const l=["noWMMktList","mtWMMktList","mdWMMktList"];let U=!1;const C=[];l.forEach(M=>{const w=ne[M];if(M&&!N(w,B.current[M]))for(const y of w){const j=q.current.getMktCidEffectWidgetKeys(y);if(U=j.length+C.length>2e3,U)return;C.push(...j)}}),C.length&&q.current.triggerSnapshotChange(C),B.current=ne},[ne])}},52401:(Qn,qe,s)=>{"use strict";s.d(qe,{A:()=>xt});var r=s(38502),I=s(53732),J=s.n(I),N=s(94586),T=s(95549),te=s(76241),q=s(63296),ne=s(53034),B=s(59895),l=s(51885),U=s(6323),C=s(37898),M=s(94815),w=s(91834),y=s(59063),j=s(18767),Q=s(23653),ze="\n min-height:0 !important;\n max-height:none !important;\n height:0 !important;\n visibility:hidden !important;\n overflow:hidden !important;\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important;\n pointer-events: none !important;\n",me=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],Se={},Me;function De(Ot){var wt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Kt=Ot.getAttribute("id")||Ot.getAttribute("data-reactid")||Ot.getAttribute("name");if(wt&&Se[Kt])return Se[Kt];var fe=window.getComputedStyle(Ot),bt=fe.getPropertyValue("box-sizing")||fe.getPropertyValue("-moz-box-sizing")||fe.getPropertyValue("-webkit-box-sizing"),un=parseFloat(fe.getPropertyValue("padding-bottom"))+parseFloat(fe.getPropertyValue("padding-top")),gt=parseFloat(fe.getPropertyValue("border-bottom-width"))+parseFloat(fe.getPropertyValue("border-top-width")),Wt=me.map(function(Jn){return"".concat(Jn,":").concat(fe.getPropertyValue(Jn))}).join(";"),Un={sizingStyle:Wt,paddingSize:un,borderSize:gt,boxSizing:bt};return wt&&Kt&&(Se[Kt]=Un),Un}function tt(Ot){var wt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Kt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,fe=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;Me||(Me=document.createElement("textarea"),Me.setAttribute("tab-index","-1"),Me.setAttribute("aria-hidden","true"),Me.setAttribute("name","hiddenTextarea"),document.body.appendChild(Me)),Ot.getAttribute("wrap")?Me.setAttribute("wrap",Ot.getAttribute("wrap")):Me.removeAttribute("wrap");var bt=De(Ot,wt),un=bt.paddingSize,gt=bt.borderSize,Wt=bt.boxSizing,Un=bt.sizingStyle;Me.setAttribute("style","".concat(Un,";").concat(ze)),Me.value=Ot.value||Ot.placeholder||"";var Jn=void 0,Yt=void 0,rt,An=Me.scrollHeight;if(Wt==="border-box"?An+=gt:Wt==="content-box"&&(An-=un),Kt!==null||fe!==null){Me.value=" ";var Nt=Me.scrollHeight-un;Kt!==null&&(Jn=Nt*Kt,Wt==="border-box"&&(Jn=Jn+un+gt),An=Math.max(Jn,An)),fe!==null&&(Yt=Nt*fe,Wt==="border-box"&&(Yt=Yt+un+gt),rt=An>Yt?"":"hidden",An=Math.min(Yt,An))}var jt={height:An,overflowY:rt,resize:"none"};return Jn&&(jt.minHeight=Jn),Yt&&(jt.maxHeight=Yt),jt}var at=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],ht=0,Je=1,$=2,mt=r.forwardRef(function(Ot,wt){var Kt=Ot,fe=Kt.prefixCls,bt=Kt.defaultValue,un=Kt.value,gt=Kt.autoSize,Wt=Kt.onResize,Un=Kt.className,Jn=Kt.style,Yt=Kt.disabled,rt=Kt.onChange,An=Kt.onInternalAutoSize,Nt=(0,B.A)(Kt,at),jt=(0,M.A)(bt,{value:un,postState:function(jo){return jo!=null?jo:""}}),vn=(0,ne.A)(jt,2),Dt=vn[0],$t=vn[1],kn=function(jo){$t(jo.target.value),rt==null||rt(jo)},Kn=r.useRef();r.useImperativeHandle(wt,function(){return{textArea:Kn.current}});var dn=r.useMemo(function(){return gt&&(0,w.A)(gt)==="object"?[gt.minRows,gt.maxRows]:[]},[gt]),ft=(0,ne.A)(dn,2),Lt=ft[0],bn=ft[1],Yn=!!gt,on=function(){try{if(document.activeElement===Kn.current){var jo=Kn.current,Qo=jo.selectionStart,cn=jo.selectionEnd,In=jo.scrollTop;Kn.current.setSelectionRange(Qo,cn),Kn.current.scrollTop=In}}catch(tn){}},yn=r.useState($),lo=(0,ne.A)(yn,2),qn=lo[0],Wn=lo[1],Nn=r.useState(),xn=(0,ne.A)(Nn,2),Ye=xn[0],wn=xn[1],Hn=function(){Wn(ht)};(0,j.A)(function(){Yn&&Hn()},[un,Lt,bn,Yn]),(0,j.A)(function(){if(qn===ht)Wn(Je);else if(qn===Je){var xo=tt(Kn.current,!1,Lt,bn);Wn($),wn(xo)}else on()},[qn]);var zn=r.useRef(),ko=function(){Q.A.cancel(zn.current)},On=function(jo){qn===$&&(Wt==null||Wt(jo),gt&&(ko(),zn.current=(0,Q.A)(function(){Hn()})))};r.useEffect(function(){return ko},[]);var Mo=Yn?Ye:null,jn=(0,te.A)((0,te.A)({},Jn),Mo);return(qn===ht||qn===Je)&&(jn.overflowY="hidden",jn.overflowX="hidden"),r.createElement(y.A,{onResize:On,disabled:!(gt||Wt)},r.createElement("textarea",(0,N.A)({},Nt,{ref:Kn,style:jn,className:J()(fe,Un,(0,T.A)({},"".concat(fe,"-disabled"),Yt)),disabled:Yt,value:Dt,onChange:kn})))});const yt=mt;var Le=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize","onClear","onPressEnter","readOnly","autoSize","onKeyDown"],He=r.forwardRef(function(Ot,wt){var Kt,fe=Ot.defaultValue,bt=Ot.value,un=Ot.onFocus,gt=Ot.onBlur,Wt=Ot.onChange,Un=Ot.allowClear,Jn=Ot.maxLength,Yt=Ot.onCompositionStart,rt=Ot.onCompositionEnd,An=Ot.suffix,Nt=Ot.prefixCls,jt=Nt===void 0?"rc-textarea":Nt,vn=Ot.showCount,Dt=Ot.count,$t=Ot.className,kn=Ot.style,Kn=Ot.disabled,dn=Ot.hidden,ft=Ot.classNames,Lt=Ot.styles,bn=Ot.onResize,Yn=Ot.onClear,on=Ot.onPressEnter,yn=Ot.readOnly,lo=Ot.autoSize,qn=Ot.onKeyDown,Wn=(0,B.A)(Ot,Le),Nn=(0,M.A)(fe,{value:bt,defaultValue:fe}),xn=(0,ne.A)(Nn,2),Ye=xn[0],wn=xn[1],Hn=Ye==null?"":String(Ye),zn=r.useState(!1),ko=(0,ne.A)(zn,2),On=ko[0],Mo=ko[1],jn=r.useRef(!1),xo=r.useState(null),jo=(0,ne.A)(xo,2),Qo=jo[0],cn=jo[1],In=(0,r.useRef)(null),tn=(0,r.useRef)(null),Jt=function(){var dr;return(dr=tn.current)===null||dr===void 0?void 0:dr.textArea},Ln=function(){Jt().focus()};(0,r.useImperativeHandle)(wt,function(){var gr;return{resizableTextArea:tn.current,focus:Ln,blur:function(){Jt().blur()},nativeElement:((gr=In.current)===null||gr===void 0?void 0:gr.nativeElement)||Jt()}}),(0,r.useEffect)(function(){Mo(function(gr){return!Kn&&gr})},[Kn]);var Xn=r.useState(null),Dn=(0,ne.A)(Xn,2),go=Dn[0],Uo=Dn[1];r.useEffect(function(){if(go){var gr;(gr=Jt()).setSelectionRange.apply(gr,(0,q.A)(go))}},[go]);var Ho=(0,U.A)(Dt,vn),ua=(Kt=Ho.max)!==null&&Kt!==void 0?Kt:Jn,la=Number(ua)>0,To=Ho.strategy(Hn),Ia=!!ua&&To>ua,ya=function(dr,wi){var gi=wi;!jn.current&&Ho.exceedFormatter&&Ho.max&&Ho.strategy(wi)>Ho.max&&(gi=Ho.exceedFormatter(wi,{max:Ho.max}),wi!==gi&&Uo([Jt().selectionStart||0,Jt().selectionEnd||0])),wn(gi),(0,C.gS)(dr.currentTarget,dr,Wt,gi)},eo=function(dr){jn.current=!0,Yt==null||Yt(dr)},Oo=function(dr){jn.current=!1,ya(dr,dr.currentTarget.value),rt==null||rt(dr)},so=function(dr){ya(dr,dr.target.value)},to=function(dr){dr.key==="Enter"&&on&&on(dr),qn==null||qn(dr)},Vo=function(dr){Mo(!0),un==null||un(dr)},ta=function(dr){Mo(!1),gt==null||gt(dr)},Qa=function(dr){wn(""),Ln(),(0,C.gS)(Jt(),dr,Wt)},qr=An,kr;Ho.show&&(Ho.showFormatter?kr=Ho.showFormatter({value:Hn,count:To,maxLength:ua}):kr="".concat(To).concat(la?" / ".concat(ua):""),qr=r.createElement(r.Fragment,null,qr,r.createElement("span",{className:J()("".concat(jt,"-data-count"),ft==null?void 0:ft.count),style:Lt==null?void 0:Lt.count},kr)));var ur=function(dr){var wi;bn==null||bn(dr),(wi=Jt())!==null&&wi!==void 0&&wi.style.height&&cn(!0)},Mr=!lo&&!vn&&!Un;return r.createElement(l.a,{ref:In,value:Hn,allowClear:Un,handleReset:Qa,suffix:qr,prefixCls:jt,classNames:(0,te.A)((0,te.A)({},ft),{},{affixWrapper:J()(ft==null?void 0:ft.affixWrapper,(0,T.A)((0,T.A)({},"".concat(jt,"-show-count"),vn),"".concat(jt,"-textarea-allow-clear"),Un))}),disabled:Kn,focused:On,className:J()($t,Ia&&"".concat(jt,"-out-of-range")),style:(0,te.A)((0,te.A)({},kn),Qo&&!Mr?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof kr=="string"?kr:void 0}},hidden:dn,readOnly:yn,onClear:Yn},r.createElement(yt,(0,N.A)({},Wn,{autoSize:lo,maxLength:Jn,onKeyDown:to,onChange:so,onFocus:Vo,onBlur:ta,onCompositionStart:eo,onCompositionEnd:Oo,className:J()(ft==null?void 0:ft.textarea),style:(0,te.A)((0,te.A)({},Lt==null?void 0:Lt.textarea),{},{resize:kn==null?void 0:kn.resize}),disabled:Kn,prefixCls:jt,onResize:ur,ref:tn,readOnly:yn})))});const je=He;var ot=s(74901),we=s(49212),$e=s(46757),ge=s(16981),Ze=s(46656),W=s(37567),an=s(90852),_t=s(73650),nn=s(31161),Oe=s(81764),sn=s(58196),It=s(48150),Pt=s(35125);const dt=Ot=>{const{componentCls:wt,paddingLG:Kt}=Ot,fe=wt+"-textarea";return{["textarea"+wt]:{maxWidth:"100%",height:"auto",minHeight:Ot.controlHeight,lineHeight:Ot.lineHeight,verticalAlign:"bottom",transition:"all "+Ot.motionDurationSlow,resize:"vertical",["&"+wt+"-mouse-active"]:{transition:"all "+Ot.motionDurationSlow+", height 0s, width 0s"}},[wt+"-textarea-affix-wrapper-resize-dirty"]:{width:"auto"},[fe]:{position:"relative","&-show-count":{[wt+"-data-count"]:{position:"absolute",bottom:Ot.calc(Ot.fontSize).mul(Ot.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:Ot.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},["\n &-allow-clear > "+wt+",\n &-affix-wrapper"+fe+"-has-feedback "+wt+"\n "]:{paddingInlineEnd:Kt},["&-affix-wrapper"+wt+"-affix-wrapper"]:{padding:0,["> textarea"+wt]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent",minHeight:Ot.calc(Ot.controlHeight).sub(Ot.calc(Ot.lineWidth).mul(2)).equal(),"&:focus":{boxShadow:"none !important"}},[wt+"-suffix"]:{margin:0,"> *:not(:last-child)":{marginInline:0},[wt+"-clear-icon"]:{position:"absolute",insetInlineEnd:Ot.paddingInline,insetBlockStart:Ot.paddingXS},[fe+"-suffix"]:{position:"absolute",top:0,insetInlineEnd:Ot.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},["&-affix-wrapper"+wt+"-affix-wrapper-rtl"]:{[wt+"-suffix"]:{[wt+"-data-count"]:{direction:"ltr",insetInlineStart:0}}},["&-affix-wrapper"+wt+"-affix-wrapper-sm"]:{[wt+"-suffix"]:{[wt+"-clear-icon"]:{insetInlineEnd:Ot.paddingInlineSM}}}}}},Vn=(0,sn.OF)(["Input","TextArea"],Ot=>{const wt=(0,It.oX)(Ot,(0,Pt.C)(Ot));return[dt(wt)]},Pt.b,{resetFont:!1});var o=function(Ot,wt){var Kt={};for(var fe in Ot)Object.prototype.hasOwnProperty.call(Ot,fe)&&wt.indexOf(fe)<0&&(Kt[fe]=Ot[fe]);if(Ot!=null&&typeof Object.getOwnPropertySymbols=="function")for(var bt=0,fe=Object.getOwnPropertySymbols(Ot);bt<fe.length;bt++)wt.indexOf(fe[bt])<0&&Object.prototype.propertyIsEnumerable.call(Ot,fe[bt])&&(Kt[fe[bt]]=Ot[fe[bt]]);return Kt};const xt=(0,r.forwardRef)((Ot,wt)=>{var Kt;const{prefixCls:fe,bordered:bt=!0,size:un,disabled:gt,status:Wt,allowClear:Un,classNames:Jn,rootClassName:Yt,className:rt,style:An,styles:Nt,variant:jt,showCount:vn,onMouseDown:Dt,onResize:$t}=Ot,kn=o(Ot,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant","showCount","onMouseDown","onResize"]),{getPrefixCls:Kn,direction:dn,allowClear:ft,autoComplete:Lt,className:bn,style:Yn,classNames:on,styles:yn}=(0,$e.TP)("textArea"),lo=r.useContext(ge.A),qn=gt!=null?gt:lo,{status:Wn,hasFeedback:Nn,feedbackIcon:xn}=r.useContext(an.$W),Ye=(0,we.v)(Wn,Wt),wn=r.useRef(null);r.useImperativeHandle(wt,()=>{var Ho;return{resizableTextArea:(Ho=wn.current)===null||Ho===void 0?void 0:Ho.resizableTextArea,focus:ua=>{var la,To;(0,C.F4)((To=(la=wn.current)===null||la===void 0?void 0:la.resizableTextArea)===null||To===void 0?void 0:To.textArea,ua)},blur:()=>{var ua;return(ua=wn.current)===null||ua===void 0?void 0:ua.blur()}}});const Hn=Kn("input",fe),zn=(0,Ze.A)(Hn),[ko,On,Mo]=(0,Oe.MG)(Hn,Yt),[jn]=Vn(Hn,zn),{compactSize:xo,compactItemClassnames:jo}=(0,nn.RQ)(Hn,dn),Qo=(0,W.A)(Ho=>{var ua;return(ua=un!=null?un:xo)!==null&&ua!==void 0?ua:Ho}),[cn,In]=(0,_t.A)("textArea",jt,bt),tn=(0,ot.A)(Un!=null?Un:ft),[Jt,Ln]=r.useState(!1),[Xn,Dn]=r.useState(!1),go=Ho=>{Ln(!0),Dt==null||Dt(Ho);const ua=()=>{Ln(!1),document.removeEventListener("mouseup",ua)};document.addEventListener("mouseup",ua)},Uo=Ho=>{var ua,la;if($t==null||$t(Ho),Jt&&typeof getComputedStyle=="function"){const To=(la=(ua=wn.current)===null||ua===void 0?void 0:ua.nativeElement)===null||la===void 0?void 0:la.querySelector("textarea");To&&getComputedStyle(To).resize==="both"&&Dn(!0)}};return ko(jn(r.createElement(je,Object.assign({autoComplete:Lt},kn,{style:Object.assign(Object.assign({},Yn),An),styles:Object.assign(Object.assign({},yn),Nt),disabled:qn,allowClear:tn,className:J()(Mo,zn,rt,Yt,jo,bn,Xn&&Hn+"-textarea-affix-wrapper-resize-dirty"),classNames:Object.assign(Object.assign(Object.assign({},Jn),on),{textarea:J()({[Hn+"-sm"]:Qo==="small",[Hn+"-lg"]:Qo==="large"},On,Jn==null?void 0:Jn.textarea,on.textarea,Jt&&Hn+"-mouse-active"),variant:J()({[Hn+"-"+cn]:In},(0,we.L)(Hn,Ye)),affixWrapper:J()(Hn+"-textarea-affix-wrapper",{[Hn+"-affix-wrapper-rtl"]:dn==="rtl",[Hn+"-affix-wrapper-sm"]:Qo==="small",[Hn+"-affix-wrapper-lg"]:Qo==="large",[Hn+"-textarea-show-count"]:vn||((Kt=Ot.count)===null||Kt===void 0?void 0:Kt.show)},On)}),prefixCls:Hn,suffix:Nn&&r.createElement("span",{className:Hn+"-textarea-suffix"},xn),showCount:vn,ref:wn,onResize:Uo,onMouseDown:go}))))})},52490:(Qn,qe,s)=>{"use strict";s.d(qe,{i:()=>me});var r=s(95549),I=s(38502),J=s(53732),N=s.n(J),T=s(49439),te=s(67787);const q=te.Ay.span.withConfig({displayName:"styles__StyledTriggerContainerDiv",componentId:"sc-1hyrv03-0"})([".toolbar-btn{margin:0 4px;width:18px;cursor:pointer;border-radius:4px;&.free-width{width:auto;}&.disabled{background-color:transparent;opacity:.3;cursor:not-allowed;}&:hover{background-color:rgba(255,255,255,0.3);}}.toolbar-btn .svg-icon{width:18px;height:18px;}"]),ne=te.Ay.div.withConfig({displayName:"styles__StyledContentContainer",componentId:"sc-1hyrv03-1"})(["width:max-content;position:relative;.list-container{width:100%;position:relative;box-sizing:border-box;padding:8px;.item-container{width:100%;height:28px;font-size:12px;color:",";display:flex;padding-left:20px;align-items:center;cursor:pointer;&:hover{background-color:",";}}}.list-container{border-radius:8px;border:1px solid ",";color:",";background:",";box-shadow:",";.item-container{border-radius:4px;background:",";}}"],Me=>Me.theme.color_text_L1,Me=>Me.theme.color_btn_secondary_hover,Me=>Me.theme.color_bg_border_01,Me=>Me.theme.color_text_L1,Me=>Me.theme.color_bg_white,Me=>Me.theme.shadow_m,Me=>Me.theme.color_bg_white);var B=s(72214);const U=Me=>{const{style:De,onChange:tt,options:at}=Me,{top:ht,right:Je,width:$}=De,mt=(0,I.useCallback)(yt=>()=>{tt&&tt(yt)},[tt]);return(0,B.jsx)(T.A,{dark:!0,top:Number(ht),right:Number(Je),closeOnContentClick:!0,trigger:(0,B.jsx)(q,{children:(0,B.jsxs)("svg",{className:"toolbar-btn comment-more-btn",width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,B.jsx)("g",{clipPath:"url(#clip0_6819_28530)",children:(0,B.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.625 9C5.625 8.37868 5.12132 7.875 4.5 7.875C3.87868 7.875 3.375 8.37868 3.375 9C3.375 9.62132 3.87868 10.125 4.5 10.125C5.12132 10.125 5.625 9.62132 5.625 9ZM9.00001 7.875C9.62133 7.875 10.125 8.37868 10.125 9C10.125 9.62132 9.62133 10.125 9.00001 10.125C8.37868 10.125 7.87501 9.62132 7.87501 9C7.87501 8.37868 8.37868 7.875 9.00001 7.875ZM13.5 7.875C14.1213 7.875 14.625 8.37868 14.625 9C14.625 9.62132 14.1213 10.125 13.5 10.125C12.8787 10.125 12.375 9.62132 12.375 9C12.375 8.37868 12.8787 7.875 13.5 7.875Z",fill:"#333333"})}),(0,B.jsx)("defs",{children:(0,B.jsx)("clipPath",{id:"clip0_6819_28530",children:(0,B.jsx)("rect",{y:"18",width:"18",height:"18",rx:"4",transform:"rotate(-90 0 18)",fill:"white"})})})]})}),children:(0,B.jsx)(ne,{style:{width:$},children:(0,B.jsx)("div",{className:"list-container",children:at.map(yt=>(0,B.jsx)("div",{className:"item-container",onClick:mt(yt.value),children:yt.label},yt.value))})})})};var C=s(15186),M=s(35862),w=s(5010),y=s(53707),j=s(37342),Q=s(79287),ze=s.n(Q);const me=Me=>{var De;let{st:tt,setIsExportOpenFromContainer:at,onMouseDown:ht,editable:Je,isActive:$,isExpanded:mt,isAlreadyExpanded:yt,STPanelWidth:Le,isHtmlZipPreview:He,toggleExpandKeySet:ye,pushToAlreadyExpandKeySet:je,deleteFromAlreadyExpandKeySet:ot,selectST:we,deleteST:$e}=Me;const ge=[{label:I18N.Note.export,value:"export"},{label:I18N.Note.delete,value:"delete"}],Ze=[{label:I18N.Note.export,value:"export"}],{key:W,hotAttr:an}=tt,_t=(0,I.useRef)(),{info:nn}=an||{},{author:Oe,authorCid:sn}=nn||{},It=(De=MB.currentOrg)==null?void 0:De.members,Pt=(0,I.useMemo)(()=>{if(sn){var Ot,wt;if(It){var Kt;const fe=It==null||(Kt=It.find(bt=>bt.user_cid===sn))==null?void 0:Kt.name;if(fe)return fe}if(((Ot=MB.user)==null?void 0:Ot.cid)===sn&&(wt=MB.user)!=null&&wt.name)return MB.user.name}return Oe},[It,Oe,sn]),dt=(0,I.useCallback)(Ot=>{Ot.stopPropagation(),we&&we(W),(0,w.Uz)({operation_type:w.P6.Select,widget:an})},[W,we,an]),Vn=(0,I.useCallback)(Ot=>{if(Ot==="delete")$e&&$e(W);else if(Ot==="export"){var wt;if(!((wt=MB)!=null&&(wt=wt.user)!=null&&wt.id)){MB.global.popupHelper.loginAsync({onConfirm:()=>{setTimeout(()=>location.reload(),50),(0,j.Ix)("/dashboard/me","_blank","noreferrer")},type:"signin",source:"proto-preview"});return}at(!0)}},[W,$e,at]),o=Ot=>{ht(Ot,tt,_t.current)},Gn=(0,C.t0)(tt.hotAttr.fill.solidColor),xt="1px solid "+Gn;return(0,B.jsx)(y.dX,{"data-cid":tt.key,className:N()("st-card",{isActive:$}),onClick:dt,ref:_t,border:xt,children:(0,B.jsxs)("div",{className:N()("st-card-container"),children:[(0,B.jsxs)("header",{className:"st-card-header",style:{background:Gn},onMouseDown:o,children:[(0,B.jsx)("div",{className:"st-summary",children:(0,B.jsx)("div",{className:"user-name",children:""+tt.hotAttr.order})}),!He&&(0,B.jsx)("div",{className:"more-btn",children:(0,B.jsx)(U,{options:Je?ge:Ze,style:{width:96,top:22,right:0},onChange:Vn})})]}),(0,B.jsx)(Se,{st:tt,isExpand:mt,showExpand:!yt,STPanelWidth:Le,toggleExpandKeySet:ye,pushToAlreadyExpandKeySet:je,deleteFromAlreadyExpandKeySet:ot,authorName:Pt})]})})};class Se extends I.PureComponent{constructor(){super(...arguments),(0,r.A)(this,"createRef",De=>this.$ref=De),(0,r.A)(this,"handleExpand",()=>{const{st:{key:De},toggleExpandKeySet:tt}=this.props;tt(De)}),(0,r.A)(this,"handleUpdateAlreadyExpandKeySet",()=>{setTimeout(()=>{if(this.$ref){const De=this.$ref.querySelector(".draft-editor-div"),{st:{key:tt},pushToAlreadyExpandKeySet:at,deleteFromAlreadyExpandKeySet:ht}=this.props;De.scrollHeight<=52?at(tt):ht(tt)}})})}componentDidMount(){this.handleUpdateAlreadyExpandKeySet()}componentDidUpdate(De,tt,at){const{STPanelWidth:ht}=this.props,{STPanelWidth:Je}=De;ht!==Je&&this.handleUpdateAlreadyExpandKeySet()}render(){const{st:De,isExpand:tt,showExpand:at,authorName:ht}=this.props,{hotAttr:{info:{showAuthor:Je,showTime:$,time:mt}}}=De,yt=mt?ze()(Number(mt)).format("YYYY.MM.DD"):"";return(0,B.jsxs)(y.AB,{className:"st-card-content",ref:this.createRef,children:[(0,B.jsxs)("div",{className:N()("content-container",{isExpand:tt},{showExpand:at}),children:[(0,B.jsx)(M.a,{is4Tear:!1,widget:{...De.hotAttr,cid:De.key},placeHolderColor:"#7D8694",placeHolder:I18N.Note.no_content}),at&&(Je||$)&&(0,B.jsxs)("div",{className:"footer",children:[Je&&(0,B.jsx)("span",{className:"username",children:ht}),$&&(0,B.jsx)("span",{children:yt})]})]}),at?(0,B.jsx)("span",{className:"expand",onClick:this.handleExpand,children:tt?I18N.Comment.collapse:I18N.Comment.expand}):(0,B.jsx)(B.Fragment,{children:(Je||$)&&(0,B.jsxs)("div",{className:"footer",children:[Je&&(0,B.jsx)("span",{className:"username",children:ht}),$&&(0,B.jsx)("span",{children:yt})]})})]})}}},53102:(Qn,qe,s)=>{"use strict";s.d(qe,{BE:()=>y,CX:()=>j,GT:()=>ne,Jx:()=>C,MF:()=>T,MV:()=>N,iU:()=>B,my:()=>U,n2:()=>w,qZ:()=>l,tj:()=>q,zF:()=>Q});var r=s(18654),I=s(86964),J=s(72214);const N=18,T={light:{bgColor:I.fm.color_bg_white.value_light,borderColor:I.fm.color_bg_border_01.value_light,cornerActiveColor:r.af.color_interaction_grid.value,fontColor:I.fm.color_text_disabled01.value_light,line:{normal:I.fm.color_polyline_normal.value_light,hover:I.fm.color_polyline_hover.value_light,active:I.fm.color_polyline_select.value_light},shadowColor:r.af.color_ruler_shadow_color.value,longfgColor:I.fm.color_text_disabled01.value_light,shortfgColor:I.fm.color_text_disabled01.value_light,menu:{bgColor:r.af.color_text_L1.value,dividerColor:"rgba(255, 255, 255, 0.1)",listItem:{textColor:I.fm.color_text_btn.value_light,hoverTextColor:I.fm.color_text_btn.value_light,disabledTextColor:r.af.color_text_disabled01.value,bgColor:r.af.color_text_L1.value,hoverBgColor:r.af.color_text_L2.value}}},dark:{bgColor:I.fm.color_bg_white.value_dark,borderColor:I.fm.color_bg_border_01.value_dark,cornerActiveColor:r.af.color_interaction_grid.value,fontColor:I.fm.color_text_disabled01.value_dark,line:{normal:I.fm.color_polyline_normal.value_dark,hover:I.fm.color_polyline_hover.value_dark,active:I.fm.color_polyline_select.value_dark},shadowColor:r.qY.ruler_dark_common_color2.value,longfgColor:I.fm.color_text_disabled01.value_dark,shortfgColor:I.fm.color_text_disabled01.value_dark,menu:{bgColor:r.af.color_text_L1.value,dividerColor:"rgba(255, 255, 255, 0.1)",listItem:{textColor:I.fm.color_text_btn.value_light,hoverTextColor:I.fm.color_text_btn.value_light,disabledTextColor:r.af.color_text_disabled01.value,bgColor:r.af.color_text_L1.value,hoverBgColor:r.af.color_text_L2.value}}}},te={distance_line:26,distance_left:18,distance_right:18,distance_top:18,distance_bottom:48,guide_width:281,guide_height:284},q=2,ne={bgColor:"rgba(225,225,225)",longfgColor:"#babbbc",shortfgColor:"#c8cdd0",fontColor:"#7d8694",shadowColor:"#f2f2f2",line:{normal:"rgba(255, 19, 19, 0.5)",hover:"#ff1313",active:"#1684fc"},borderColor:"#dadadc",cornerActiveColor:"rgb(235, 86, 72, 0.6)"},B=(0,J.jsx)("svg",{width:"10",height:"10",xmlns:"http://www.w3.org/2000/svg",children:(0,J.jsx)("path",{d:"M1 5.066c0 .211.07.39.212.538L3.346 7.78A.699.699 0 0 0 3.872 8a.69.69 0 0 0 .517-.221l4.39-4.49A.731.731 0 0 0 9 2.753a.717.717 0 0 0-.22-.532A.714.714 0 0 0 8.255 2a.714.714 0 0 0-.524.221l-3.86 3.955L2.26 4.528a.714.714 0 0 0-.524-.221.714.714 0 0 0-.524.221.749.749 0 0 0-.212.538z",fill:"#415058",fillRule:"evenodd"})}),l={"zh-CN":{vertical:"\u7EB5\u5411",horizontal:"\u6A2A\u5411",show_ruler:"\u663E\u793A\u6807\u5C3A",show_refer_line:"\u663E\u793A\u53C2\u8003\u7EBF",remove_all:"\u5220\u9664\u6240\u6709",refer_line:"\u53C2\u8003\u7EBF",align_line:"\u5BF9\u9F50\u53C2\u8003\u7EBF"},en:{vertical:"vertical",horizontal:"horizontal",show_ruler:"show rulers",show_refer_line:"show all guides",remove_all:"remove all ",refer_line:"guides",align_line:"align guides"}},U={bgColor:"#fff",dividerColor:"#dbdbdb",listItem:{textColor:"#415058",hoverTextColor:"#298df8",disabledTextColor:"rgba(65, 80, 88, 0.4)",bgColor:"#fff",hoverBgColor:"#f2f2f2"}},C=["downarrow","uparrow","leftarrow","rightarrow"],M=["shift.downarrow","shift.uparrow","shift.leftarrow","shift.rightarrow"],w=["leftarrow","rightarrow","shift.leftarrow","shift.rightarrow"],y=["downarrow","uparrow","shift.downarrow","shift.uparrow"],j=["backspace","delete"],Q=[...C,...M]},53707:(Qn,qe,s)=>{"use strict";s.d(qe,{AB:()=>N,TV:()=>I,dX:()=>J});var r=s(67787);const I=r.Ay.div.withConfig({displayName:"styles__StyledSTList",componentId:"sc-3kk9jt-0"})(["height:calc(100% - 40px);flex:1 1 0;overflow-y:auto;position:relative;background:",";.st-list{.no-more-tips{font-size:12px;transform:scale(0.834);transform-origin:center;line-height:24px;text-align:center;color:#999;margin-top:2px;}}"],T=>T.theme.color_bg_white),J=r.Ay.div.withConfig({displayName:"styles__StyledSTCard",componentId:"sc-3kk9jt-1"})(["width:100%;position:relative;box-sizing:border-box;.st-card-container{height:100%;width:100%;padding:10px 16px;display:flex;flex-direction:column;.st-card-header{display:flex;position:relative;width:100%;border-top-right-radius:8px;border-top-left-radius:8px;border-right:",";border-left:",";border-top:",";.st-summary{flex:1;display:flex;position:relative;width:calc(100% - 20px);.user-name{font-weight:500;color:#333;width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-left:10px;}}.more-btn{width:20px;height:20px;margin-right:10px;.toolbar-btn{width:20px;height:20px;margin:0;cursor:pointer;border-radius:4px;.svg-icon{width:20px;height:20px;}}}}.st-card-content{border-bottom-right-radius:8px;border-bottom-left-radius:8px;padding:10px;font-size:12px;align-items:center;color:#000;border-right:",";border-left:",";border-bottom:",";background:#fff;}}&:not(.isActive):hover{background:",";}&.isActive{background:",";}}"],T=>T.border,T=>T.border,T=>T.border,T=>T.border,T=>T.border,T=>T.border,T=>T.theme.color_btn_secondary_active,T=>T.theme.color_bg_select02),N=r.Ay.div.withConfig({displayName:"styles__StyledSTCardContent",componentId:"sc-3kk9jt-2"})([".expand{display:block;margin-top:4px;color:",";cursor:pointer;font-size:12px;line-height:14px;&:hover,&:active{color:",";}}.footer{font-size:12px;background:white;color:rgba(0,0,0,0.4);display:flex;align-items:center;.username{margin-right:6px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}}.content-container{.draft-editor-div{padding:0;background:initial !important;color:#000 !important;&.show-placeholder{pointer-events:none;}}.footer{font-size:12px;background:white;color:rgba(0,0,0,0.4);display:flex;align-items:center;height:24px;.username{margin-right:6px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}}&:not(.isExpand){height:52px;overflow:hidden;position:relative;&.showExpand{&::after{content:'';height:24px;width:100%;position:absolute;bottom:0;background:linear-gradient(180deg,rgba(255,255,255,0) 0%,#ffffff 100%);z-index:1;}}}}"],T=>T.theme.color_proto,T=>T.theme.color_primary_proto02)},54222:(Qn,qe,s)=>{"use strict";s.d(qe,{K:()=>De});var r=s(38502),I=s(53732),J=s.n(I),N=s(55244),T=s(30024),te=s(83199),q=s(38182),ne=s(18381),B=s(21489),l=s(34860),U=s(77866),C=s(69815),M=s(72214);const w=[{label:"delete",value:"delete"}],j=tt=>{var at,ht;const Je=(0,ne.wA)(),[$,mt]=(0,r.useState)(""),yt=(0,r.useRef)(),{comment:Le,activeCommentCid:He,viewType:ye,commentPanelWidth:je,theme:ot}=tt,{cid:we,screenCid:$e,status:ge,comments:Ze,userInfo:W,ctime:an,mtime:_t,message:nn,threadType:Oe,canvasCid:sn}=Le,{user:It}=window.MB,Pt=Ze.length,dt=(0,B.ug)(W),Vn=(0,r.useMemo)(()=>{let bt=w;return(It==null?void 0:It.cid)!==(W==null?void 0:W.cid)&&(bt=bt.filter(un=>!["edit","delete"].includes(un.value))),bt},[It,W]),o=(0,r.useMemo)(()=>{const bt=_t||an;return(0,N.zW)(bt)},[an,_t]),Gn=(0,r.useMemo)(()=>(0,C.vp)(nn,!0),[nn]),xt=(0,r.useMemo)(()=>{var bt;return((bt=rootSdk.sdkStore.getHotItem($e))==null||(bt=bt.hotAttr)==null?void 0:bt.name)||"\u672A\u5173\u8054\u9875\u9762"},[$e]),Ot=(0,r.useCallback)(bt=>{bt.stopPropagation(),Je({type:"preference:update",payload:{commentOptionsShowCommentChecked:!0}}),Je({type:"entry:comment:rightPanel:active",payload:{commentCid:we}}),(0,U.i4)({operation_type:U.nU.SelectComment,comment_type:U.ej[Oe],relation:!!sn,operation_from:U.HI[ye]})},[sn,we,Je,Oe,ye]),wt=(0,r.useCallback)(bt=>{bt==="delete"&&MB.global.popupHelper.confirmAsync({className:"DeleteCommentModal",title:I18N.Comment.delete_comment_title,confirmText:I18N.Common.confirm,desc:I18N.Comment.delete_comment_desc,theme:ot}).then(un=>{un&&Je({type:"entry:comment:delete",payload:{cid:we}}),un&&(0,U.i4)({operation_type:U.nU.deleteInEditArea,comment_type:U.ej[Oe],relation:!!sn,operation_from:U.HI[ye]})})},[sn,we,Je,Oe,ye]),Kt=(0,r.useCallback)(()=>{Je({type:"entry:comment:checked",payload:{cid:we,status:ge!=="checked"}}),(0,U.i4)({operation_type:ge==="checked"?U.nU.CancelFinishInPanel:U.nU.FinishInPanel,comment_type:U.ej[Oe],relation:!!sn,operation_from:U.HI[ye]})},[sn,we,Je,ge,Oe,ye]),fe=(0,r.useCallback)(bt=>{bt.stopPropagation(),$===I18N.Comment.expand?mt(I18N.Comment.collapse):$===I18N.Comment.collapse&&mt(I18N.Comment.expand)},[$]);return(0,r.useEffect)(()=>{if(!yt||!yt.current)return;const{scrollHeight:bt}=yt.current;bt>90?mt(I18N.Comment.expand):mt("")},[Gn,je]),(0,M.jsxs)("div",{className:J()({"comment-card":!0,"comment-active":we===He}),onClick:Ot,children:[(0,M.jsxs)("header",{className:"comment-card-header",children:[(0,M.jsxs)("div",{className:"comment-summary",children:[dt.avatar&&!((at=dt.avatar)!=null&&at.includes("/images/avatar.png"))?(0,M.jsx)("img",{className:"user-avatar",src:dt.avatar,alt:"avatar"}):(0,M.jsx)("span",{className:"user-avatar isSpan",children:(ht=dt.name.substring(0,1))==null?void 0:ht.toUpperCase()}),(0,M.jsxs)("div",{className:"text-container",children:[(0,M.jsx)(te.A,{content:dt.name,distance:5,direction:"left",children:(0,M.jsx)("div",{className:"user-name",children:dt.name})}),(0,M.jsx)(te.A,{content:xt||"\u8FD9\u91CC\u662F\u9875\u9762\u540D\u79F0",distance:5,direction:"left",children:(0,M.jsx)("div",{className:"page-name",children:xt||"\u8FD9\u91CC\u662F\u9875\u9762\u540D\u79F0"})})]})]}),(0,M.jsx)("div",{className:"more-btn",children:Vn.length>0&&(0,M.jsx)(T.A,{options:Vn,onChange:wt,style:{width:96,top:24,right:0}})})]}),(0,M.jsxs)("section",{className:"comment-card-content",children:[(0,M.jsx)("div",{className:J()("raw-content",{"fold-content":$===I18N.Comment.expand}),ref:yt,dangerouslySetInnerHTML:{__html:Gn}}),$&&(0,M.jsx)("div",{className:"fold-btn",onClick:fe,children:$}),Pt>0&&(0,M.jsxs)("div",{className:"replay-info",children:[Pt," ",I18N.Comment.num_replies]})]}),(0,M.jsxs)("footer",{className:"comment-card-footer",children:[(0,M.jsxs)("div",{className:"time",children:[I18N.Comment.comment_on," ",o]}),((0,l.OB)()||MB.canEditByCurrentUser||dt.cid===It.cid)&&(0,M.jsx)(q.A,{className:J()("toolbar-btn",{checked:ge==="checked"}),name:ge==="checked"?I18N.Comment.cancel_confirm:I18N.Comment.resolve,icon:ge==="checked"?"checked":"un_checked",onClick:Kt})]})]})};var Q=s(78401),ze=s(49420),me=s(37342),Se=s(5209);const Me=(0,M.jsxs)("svg",{width:"123",height:"89",viewBox:"0 0 123 89",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,M.jsx)("path",{d:"M47.434 24.4479C46.851 24.4478 46.2702 24.5195 45.705 24.6616C45.705 24.5868 45.705 24.5227 45.705 24.4479C45.7986 23.4797 45.6877 22.5028 45.3795 21.5797C45.0712 20.6567 44.5725 19.808 43.9152 19.0881C43.2579 18.3681 42.4565 17.7929 41.5626 17.3992C40.6687 17.0056 39.702 16.8022 38.7244 16.8022C37.7469 16.8022 36.7801 17.0056 35.8862 17.3992C34.9923 17.7929 34.191 18.3681 33.5337 19.0881C32.8764 19.808 32.3776 20.6567 32.0694 21.5797C31.7612 22.5028 31.6503 23.4797 31.7439 24.4479V24.512C30.7145 24.6494 29.7286 25.0127 28.8575 25.5754C27.9864 26.1382 27.2518 26.8865 26.7068 27.7663C26.1618 28.646 25.82 29.6352 25.7061 30.6624C25.5922 31.6896 25.709 32.7291 26.0481 33.7059C26.3873 34.6827 26.9402 35.5723 27.6671 36.3105C28.3939 37.0487 29.2765 37.6171 30.251 37.9745C31.2256 38.3319 32.2677 38.4695 33.3022 38.3773C34.3367 38.2851 35.3377 37.9654 36.2329 37.4413C37.1564 37.862 38.1598 38.0806 39.1755 38.0824C40.5825 38.0908 41.9582 37.6694 43.1168 36.875C43.9936 37.5663 45.0241 38.0385 46.122 38.2521C47.2199 38.4657 48.3532 38.4144 49.4271 38.1026C50.501 37.7908 51.4842 37.2275 52.2943 36.4599C53.1045 35.6923 53.7179 34.7427 54.0834 33.6907C54.4489 32.6387 54.5557 31.5149 54.3949 30.4134C54.2341 29.3118 53.8104 28.2647 53.1593 27.3596C52.5082 26.4545 51.6485 25.7178 50.6524 25.2112C49.6563 24.7046 48.5527 24.4429 47.434 24.4479Z",fill:"url(#paint0_linear_3145_29864)"}),(0,M.jsx)("path",{d:"M16.4602 14.5624C16.2337 14.5654 16.0083 14.5951 15.7888 14.6507C15.7888 14.6507 15.7888 14.5918 15.7888 14.5624C15.7524 13.8656 15.4493 13.2093 14.942 12.729C14.4347 12.2486 13.7619 11.9808 13.0624 11.9808C12.363 11.9808 11.6901 12.2486 11.1828 12.729C10.6755 13.2093 10.3724 13.8656 10.3361 14.5624V14.5624C9.93745 14.6175 9.55601 14.7601 9.21923 14.9799C8.88245 15.1996 8.59871 15.4912 8.38843 15.8334C8.17815 16.1757 8.04656 16.5602 8.00314 16.9593C7.95971 17.3584 8.00553 17.7621 8.1373 18.1415C8.26906 18.5208 8.48349 18.8662 8.76516 19.153C9.04682 19.4397 9.38872 19.6606 9.76623 19.7997C10.1437 19.9388 10.5475 19.9928 10.9484 19.9576C11.3493 19.9224 11.7374 19.7991 12.0848 19.5963C12.4426 19.7645 12.8329 19.8524 13.2284 19.8539C13.7757 19.8535 14.3103 19.6894 14.7632 19.3829C15.1041 19.6505 15.5042 19.8329 15.9301 19.915C16.3561 19.9971 16.7955 19.9765 17.2118 19.8549C17.6282 19.7333 18.0093 19.5142 18.3236 19.2159C18.6378 18.9176 18.8761 18.5488 19.0185 18.14C19.1609 17.7313 19.2033 17.2945 19.1422 16.8662C19.0811 16.4378 18.9183 16.0301 18.6672 15.6772C18.4162 15.3243 18.0843 15.0364 17.6991 14.8373C17.3139 14.6383 16.8866 14.5339 16.4528 14.5329L16.4602 14.5624Z",fill:"url(#paint1_linear_3145_29864)"}),(0,M.jsx)("path",{d:"M114.874 22.4274C114.205 22.4213 113.538 22.5035 112.89 22.6721C112.902 22.591 112.902 22.5085 112.89 22.4274C112.89 20.2989 112.044 18.2576 110.537 16.7526C109.031 15.2475 106.987 14.402 104.857 14.402C102.726 14.402 100.683 15.2475 99.1767 16.7526C97.6702 18.2576 96.8238 20.2989 96.8238 22.4274V22.4274C95.6461 22.5873 94.5185 23.0063 93.5224 23.6542C92.5263 24.3021 91.6866 25.1628 91.0637 26.1741C90.4409 27.1855 90.0503 28.3223 89.9204 29.5026C89.7905 30.683 89.9245 31.8774 90.3125 32.9998C90.7006 34.1222 91.3331 35.1446 92.1644 35.9932C92.9958 36.8419 94.0053 37.4957 95.1201 37.9074C96.235 38.3191 97.4274 38.4785 98.6114 38.3741C99.7954 38.2698 100.942 37.9042 101.967 37.3038C103.029 37.7856 104.181 38.0359 105.347 38.0379C106.952 38.0383 108.52 37.5613 109.853 36.6677C110.861 37.4658 112.045 38.0106 113.308 38.2562C114.57 38.5019 115.872 38.4413 117.106 38.0794C118.34 37.7176 119.469 37.0652 120.398 36.177C121.327 35.2887 122.029 34.1907 122.445 32.9751C122.861 31.7595 122.979 30.4619 122.788 29.1914C122.598 27.9209 122.105 26.7146 121.351 25.6739C120.598 24.6332 119.605 23.7884 118.456 23.2107C117.308 22.633 116.037 22.3392 114.751 22.354L114.874 22.4274Z",fill:"url(#paint2_linear_3145_29864)"}),(0,M.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.90176 37.1733L4.90324 37.1729ZM8.65186 35.7022C9.70263 35.8729 10.6948 36.0989 11.5664 36.3513C12.4956 36.6203 14.0915 38.1778 14.8039 39.845C15.0106 40.6438 14.3011 39.7244 12.9295 39.0635C12.4627 38.8322 11.799 38.5813 10.9887 38.3467C9.37042 37.8782 7.27736 37.5061 5.22562 37.4582C4.94556 37.4517 4.69139 37.4339 4.4848 37.3996C4.3869 37.3833 4.25499 37.3563 4.12261 37.3054C4.0572 37.2802 3.95266 37.2346 3.84296 37.1553C3.74245 37.0827 3.54633 36.916 3.44691 36.6217C3.33059 36.2775 3.40929 35.9522 3.54552 35.7267C3.66096 35.5355 3.80798 35.4256 3.88299 35.3751C4.03669 35.2717 4.19537 35.2176 4.28354 35.1901C4.48554 35.1271 4.73901 35.0801 5.01407 35.0423C5.52094 34.9728 6.00593 34.8887 6.40008 34.764C6.59465 34.7024 6.7401 34.6391 6.84201 34.5794C6.88988 34.5513 6.92107 34.5282 6.94047 34.5119C6.9311 34.4739 6.90814 34.4096 6.8557 34.3104C6.6666 33.9524 6.19839 33.3836 5.21298 32.5671C5.10851 32.4805 5.00717 32.39 4.91836 32.2971C4.83988 32.215 4.72105 32.08 4.63376 31.9023C4.55253 31.7369 4.39542 31.3093 4.6506 30.8512C4.88221 30.4354 5.27802 30.3268 5.40891 30.2974C5.69252 30.2336 5.99792 30.2711 6.15944 30.2927C6.36943 30.3207 6.61309 30.3666 6.86192 30.4167C7.02845 30.4503 7.20259 30.4867 7.38233 30.5242C8.33198 30.7224 9.43768 30.9532 10.4011 30.9787C10.976 30.9939 11.3654 30.9284 11.589 30.8261C11.7427 30.7557 11.7803 30.6991 11.7987 30.5602C11.8303 30.3211 11.7731 29.8099 11.3334 28.8898C10.9045 27.9923 10.1642 26.8133 8.99745 25.286C8.81692 25.0497 8.65692 24.7827 8.56414 24.4963C8.47749 24.2288 8.40483 23.7973 8.62344 23.3664C8.8697 22.881 9.32814 22.6918 9.6944 22.6517C10.0352 22.6143 10.3705 22.6877 10.6554 22.7856C12.3008 23.3508 14.8172 24.2125 17.3406 23.7777C19.7277 23.3664 22.3472 21.7437 24.1075 16.7793C24.2545 16.3647 24.5483 15.9526 24.8783 15.7054C24.9682 15.638 25.1023 15.5513 25.2735 15.493C25.437 15.4372 25.7441 15.3719 26.0859 15.5107C26.4614 15.6632 26.6534 15.9677 26.7341 16.2075C26.8073 16.4249 26.8068 16.6271 26.7972 16.7595C26.7752 17.0647 26.7068 17.4559 26.626 17.9176C26.2517 20.0582 26.9826 24.187 28.7319 27.5793C29.3612 28.7995 29.2972 28.9553 28.3943 27.921C26.8671 26.1715 24.6585 23.0481 24.6827 19.7134C23.4252 24.1759 20.049 25.419 17.6933 25.8249C15.4192 26.2167 13.2069 25.7565 11.5606 25.2673C12.2927 26.3099 12.8341 27.2124 13.2077 27.9941C13.7116 29.0485 13.968 30.001 13.8581 30.8323C13.735 31.7638 13.1762 32.3843 12.4534 32.715C11.8003 33.0139 11.0331 33.0735 10.3461 33.0553C9.7077 33.0384 9.02213 32.9477 8.37872 32.8367C8.5009 33.0078 8.60551 33.1754 8.69249 33.34C9.09911 34.1097 9.17519 34.9526 8.67172 35.6742C8.66517 35.6836 8.65855 35.6929 8.65186 35.7022ZM6.94442 34.5577C6.94442 34.5577 6.94165 34.5482 6.94497 34.5342C6.94756 34.5515 6.94442 34.5577 6.94442 34.5577Z",fill:"#FF6161"}),(0,M.jsxs)("g",{clipPath:"url(#clip0_3145_29864)",children:[(0,M.jsx)("path",{d:"M82.2023 43.6661C81.6241 45.5153 82.6591 47.4903 84.5082 48.0685C86.3593 48.6473 88.3351 47.6137 88.9133 45.7646C89.4915 43.9155 88.4568 41.9394 86.6058 41.3606C84.7566 40.7824 82.7805 41.8171 82.2023 43.6661Z",fill:"#90C0FA"}),(0,M.jsx)("path",{d:"M107.887 33.2812C108.728 30.5905 107.224 27.7171 104.531 26.8751L58.776 12.5678C56.0854 11.7265 53.2101 13.2303 52.3687 15.921L41.8762 49.4762C41.0349 52.1669 42.5412 55.0408 45.2319 55.8821L60.2812 60.5879C61.2934 60.9044 62.1384 61.6099 62.6306 62.5492L64.3007 65.7367C65.3257 67.6929 67.7421 68.4483 69.6987 67.4242L72.8855 65.7563C73.8252 65.2644 74.9218 65.166 75.9341 65.4825L90.9869 70.1894C93.6797 71.0314 96.553 69.527 97.3943 66.8364L99.1036 61.37L99.1242 61.2833L107.887 33.2812ZM94.2106 64.1666C94.2106 64.1666 94.2106 64.1666 94.2106 64.1666C93.7368 65.6819 92.1238 66.5265 90.6085 66.0527L75.3016 61.2663C74.2888 60.9496 73.1917 61.0483 72.2517 61.5407L71.4013 61.9862C69.4436 63.0117 67.0251 62.2552 66.0007 60.2967L65.5568 59.448C65.0649 58.5074 64.2192 57.8009 63.2061 57.4841L47.9017 52.6985C46.3864 52.2247 45.5399 50.611 46.0137 49.0957L55.5524 18.5908C56.0262 17.0755 57.6422 16.2286 59.1574 16.7024L101.864 30.0566C103.379 30.5304 104.223 32.1464 103.749 33.6616L95.5386 59.9193L94.79 62.3136L94.2105 64.1666C94.2105 64.1666 94.2106 64.1666 94.2106 64.1666V64.1666Z",fill:"#90C0FA"}),(0,M.jsx)("path",{d:"M71.5266 40.328C70.9484 42.1771 71.9833 44.1522 73.8324 44.7304C75.6816 45.3086 77.6573 44.275 78.2355 42.4258C78.8137 40.5767 77.7791 38.6006 75.9299 38.0224C74.0808 37.4443 72.1048 38.4789 71.5266 40.328Z",fill:"#90C0FA"}),(0,M.jsx)("path",{d:"M60.8509 36.9897C60.2727 38.8389 61.3077 40.8139 63.1568 41.3921C65.0059 41.9703 66.9816 40.9367 67.5598 39.0876C68.138 37.2384 67.1034 35.2624 65.2543 34.6842C63.4051 34.106 61.4291 35.1407 60.8509 36.9897Z",fill:"#90C0FA"})]}),(0,M.jsx)("path",{d:"M46.897 62.7862C46.6285 62.7862 46.3712 62.8942 46.1831 63.086C45.995 63.2777 45.892 63.5371 45.8972 63.8056L45.9242 65.1939L46.924 65.1745L46.978 67.9511L45.9789 67.9705L44.5249 67.0945L44.0088 67.9511L39.4 65.1745L39.916 64.3179L37.6116 62.9296C37.4558 62.8358 37.2774 62.7862 37.0955 62.7862H35.3172V63.7862H31.7606V62.7862H28.204V63.7862H24.6474V62.7862H22.9584C22.9265 62.7364 22.888 62.6408 22.888 62.5058V60.4422H21.888V56.3149H22.888V52.1876H21.888V48.0603H22.888V43.933H21.888V39.8057H22.888V37.742C22.888 37.6071 22.9265 37.5114 22.9584 37.4617H24.8896V36.4617H28.9307V37.4617H32.9717V36.4617H37.0128V37.4617H41.0538V36.4617H45.0948V37.4617H49.1359V36.4617H53.1769V37.4617H55.1081C55.14 37.5114 55.1785 37.6071 55.1785 37.742V39.8061H56.1785V43.9342H55.1785V48.0623H56.1785V52.1904H55.1785V56.3185H56.1785V60.4466H55.1785V62.5064C55.1771 62.6423 55.1377 62.7373 55.1059 62.7862H53.1186V63.7862H48.9709V62.7862H46.897ZM46.9745 69.3806C46.9524 69.4068 46.9272 69.4301 46.8994 69.4501L46.8225 69.3429L46.9273 69.3409L46.9745 69.3806ZM46.6879 69.3455L46.7489 69.3444L46.8095 69.499C46.7776 69.5115 46.7443 69.52 46.7103 69.5242L46.6879 69.3455ZM46.6302 69.3467L46.6079 69.5242C46.574 69.52 46.5406 69.5115 46.5088 69.499L46.568 69.3479L46.6302 69.3467ZM46.4912 69.3494L46.4189 69.4501C46.391 69.4301 46.3658 69.4068 46.3438 69.3806L46.3783 69.3516L46.4912 69.3494Z",fill:"white",stroke:"#90C0FA",strokeWidth:"2",strokeLinejoin:"round",strokeDasharray:"4 4"}),(0,M.jsx)("path",{d:"M38.1109 43.1309H27.8924C27.486 43.1309 27.1566 43.4603 27.1566 43.8667V44.5584C27.1566 44.9648 27.486 45.2943 27.8924 45.2943H38.1109C38.5173 45.2943 38.8467 44.9648 38.8467 44.5584V43.8667C38.8467 43.4603 38.5173 43.1309 38.1109 43.1309Z",fill:"#9EA9BC"}),(0,M.jsx)("path",{d:"M45.1652 48.9392H27.8924C27.486 48.9392 27.1566 49.2687 27.1566 49.6751V50.3667C27.1566 50.7731 27.486 51.1026 27.8924 51.1026H45.1652C45.5716 51.1026 45.9011 50.7731 45.9011 50.3667V49.6751C45.9011 49.2687 45.5716 48.9392 45.1652 48.9392Z",fill:"#9EA9BC"}),(0,M.jsx)("path",{d:"M50.7773 54.7526H27.8924C27.486 54.7526 27.1566 55.082 27.1566 55.4884V56.1801C27.1566 56.5865 27.486 56.916 27.8924 56.916H50.7773C51.1837 56.916 51.5131 56.5865 51.5131 56.1801V55.4884C51.5131 55.082 51.1837 54.7526 50.7773 54.7526Z",fill:"#9EA9BC"}),(0,M.jsx)("ellipse",{cx:"61.3847",cy:"80.3806",rx:"33.3764",ry:"6.92983",transform:"rotate(2.57165 61.3847 80.3806)",fill:"url(#paint3_linear_3145_29864)"}),(0,M.jsxs)("defs",{children:[(0,M.jsxs)("linearGradient",{id:"paint0_linear_3145_29864",x1:"31.1854",y1:"10.0012",x2:"42.8441",y2:"38.4977",gradientUnits:"userSpaceOnUse",children:[(0,M.jsx)("stop",{stopColor:"#CEE1FF"}),(0,M.jsx)("stop",{offset:"1",stopColor:"#FCF7FF"})]}),(0,M.jsxs)("linearGradient",{id:"paint1_linear_3145_29864",x1:"10.1443",y1:"8.91019",x2:"14.6989",y2:"20.0093",gradientUnits:"userSpaceOnUse",children:[(0,M.jsx)("stop",{stopColor:"#CEE1FF"}),(0,M.jsx)("stop",{offset:"1",stopColor:"#FCF7FF"})]}),(0,M.jsxs)("linearGradient",{id:"paint2_linear_3145_29864",x1:"105.812",y1:"12.3956",x2:"106.545",y2:"34.1475",gradientUnits:"userSpaceOnUse",children:[(0,M.jsx)("stop",{stopColor:"#E9EEFF"}),(0,M.jsx)("stop",{offset:"1",stopColor:"#FCF7FF"})]}),(0,M.jsxs)("linearGradient",{id:"paint3_linear_3145_29864",x1:"46.1107",y1:"73.4508",x2:"68.9711",y2:"94.6006",gradientUnits:"userSpaceOnUse",children:[(0,M.jsx)("stop",{stopColor:"#CDE1FF"}),(0,M.jsx)("stop",{offset:"1",stopColor:"#FBF6FF"})]}),(0,M.jsx)("clipPath",{id:"clip0_3145_29864",children:(0,M.jsx)("rect",{width:"71.0369",height:"71.0369",fill:"white",transform:"translate(50.606) rotate(17.3641)"})})]})]});function De(tt){var at;const{commentList:ht,activeCommentCid:Je,viewType:$,isHtmlZipPreview:mt,commentPanelWidth:yt,theme:Le}=tt,He=(0,r.useRef)();return(0,r.useEffect)(()=>{var ye;if(!He||!He.current)return;const{clientHeight:je,scrollTop:ot}=He.current,we=He==null||(ye=He.current)==null?void 0:ye.querySelector(".comment-active");if(!we)return;const{scrollHeight:$e,offsetTop:ge}=we,Ze=ge-ot;(Ze<0||Ze>je||je-Ze<$e/2)&&(0,Q.VG)(He.current,ge-je/2,200)},[He,Je]),mt?null:(0,M.jsx)(ze.$,{children:(0,M.jsx)("div",{className:"comment-list",ref:He,children:ht.length>0?(0,M.jsxs)(M.Fragment,{children:[ht.map(ye=>(0,M.jsx)(j,{comment:ye,activeCommentCid:Je,viewType:$,commentPanelWidth:yt,theme:Le},ye.cid)),(0,M.jsxs)("div",{className:"no-more-tips",children:["- ",I18N.Comment.no_more_comment," -"]})]}):(at=MB)!=null&&(at=at.user)!=null&&at.id?(0,M.jsxs)("div",{className:"blank-list",children:[(0,M.jsx)("span",{className:"icon",children:Me}),(0,M.jsx)("span",{className:"text",children:I18N.Comment.click_drag_to_add_comment})]}):(0,M.jsxs)("div",{className:"blank-list",children:[(0,M.jsx)("span",{className:"icon",children:Me}),(0,M.jsx)("span",{className:"text",children:I18N.Comment.view_comments_after_login}),(0,M.jsx)("button",{className:"login",onClick:()=>{MB.global.popupHelper.loginAsync({onConfirm:()=>{setTimeout(()=>location.reload(),50),(0,me.JW)("/workspace","_blank","noreferrer"),ENV.IS_MO&&(0,Se.lW)("Device-Comment-Signin")},type:"signin",source:"proto-preview-comment"})},children:I18N.pPreviewToolbar.login})]})})})}},55109:(Qn,qe,s)=>{"use strict";s.d(qe,{ax:()=>N,r_:()=>J,wr:()=>I});var r=s(19249);const I=async T=>{let{flpakKey:te}=T;return await(0,r.HS)("/flatkiq/htmlzip/build?fKey="+te)},J=async T=>{let{flpakKey:te}=T;return await(0,r.HS)("/flatkiq/apk/build?fKey="+te)},N=async T=>{let{flpakKey:te}=T;return await(0,r.HS)("/go/v1/mdrp/build?fKey="+te)}},55326:(Qn,qe,s)=>{"use strict";s.d(qe,{A:()=>U});var r=s(38502),I=s(53732),J=s.n(I),N=s(17307),T=s(58603),te=s(83199),q=s(89240),ne=s(80783),B=s(72214);function l(C){var M,w;const{selectedValue:y,optionList:j,className:Q="",menuClassName:ze="",onChange:me,width:Se=140,shouldOpenOnHover:Me=!0,tooltips:De="",onMouseEnter:tt=()=>{},onMouseLeave:at=()=>{},renderDisplayName:ht}=C,[Je,$]=(0,r.useState)(!1),[mt,yt]=(0,r.useState)({}),Le=(0,r.useRef)(null),He=async($e,ge)=>{$(!1),me($e,ge)};(0,r.useEffect)(()=>{var $e;if(!Le.current)return;const ge=($e=Le.current)==null?void 0:$e.querySelector("label.filter-opener");if(!ge)return;const{bottom:Ze,right:W,top:an,height:_t}=ge.getBoundingClientRect();yt({top:Ze+5,right:W})},[Le.current]);const ye=(0,r.useCallback)($e=>{$($e)},[]),je=(0,r.useCallback)(($e,ge)=>!!(De!=null&&De.length)&&!Je,[De,Je]),ot=($e,ge)=>{let{setIsOpen:Ze}=ge;Ze(!1)},we=(M=j.find($e=>{let{value:ge}=$e;return ge===y}))==null?void 0:M.label;return(0,B.jsx)(ne.L,{className:J()("platform-sub-filter",Q),ref:Le,children:(0,B.jsx)(T.A,{menuY:"bottom",isOpen:Je,className:"filter-opener",onToggle:ye,shouldPreventScrollingPropagation:!1,menuBaseStyle:{...mt,width:Se},hoverDelay:150,closeDelay:100,onMouseEnter:tt,onMouseLeave:at,opener:(0,B.jsx)(r.Fragment,{children:(0,B.jsxs)(te.A,{content:De,direction:"down",isShowTipsByTarget:je,onClick:ot,children:[ht?(w=ht())!=null?w:(0,B.jsx)("span",{className:"display-name",children:we}):(0,B.jsx)("span",{className:"display-name",children:we}),(0,B.jsx)(q.A,{size:14,className:J()("arrow-icon",{"is-expand":Je})})]})}),menuClassName:J()("platform-sub-filter-menu",ze),menu:(0,B.jsx)("ul",{children:j.map(($e,ge)=>{let{label:Ze,value:W,icon:an}=$e;const _t=y===W;return(0,B.jsxs)("li",{className:J()({active:_t}),"data-key":W,onClick:()=>He(W,ge),children:[_t&&(0,B.jsx)(N.C,{name:"common/checked",className:"checked"}),an||null,(0,B.jsx)("span",{children:Ze})]},W)})})})})}const U=(0,r.memo)(l)},55603:Qn=>{function qe(ft){return ft instanceof Map?ft.clear=ft.delete=ft.set=function(){throw new Error("map is read-only")}:ft instanceof Set&&(ft.add=ft.clear=ft.delete=function(){throw new Error("set is read-only")}),Object.freeze(ft),Object.getOwnPropertyNames(ft).forEach(function(Lt){var bn=ft[Lt];typeof bn=="object"&&!Object.isFrozen(bn)&&qe(bn)}),ft}var s=qe,r=qe;s.default=r;class I{constructor(Lt){Lt.data===void 0&&(Lt.data={}),this.data=Lt.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function J(ft){return ft.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function N(ft){const Lt=Object.create(null);for(const yn in ft)Lt[yn]=ft[yn];for(var bn=arguments.length,Yn=new Array(bn>1?bn-1:0),on=1;on<bn;on++)Yn[on-1]=arguments[on];return Yn.forEach(function(yn){for(const lo in yn)Lt[lo]=yn[lo]}),Lt}const T="</span>",te=ft=>!!ft.kind;class q{constructor(Lt,bn){this.buffer="",this.classPrefix=bn.classPrefix,Lt.walk(this)}addText(Lt){this.buffer+=J(Lt)}openNode(Lt){if(!te(Lt))return;let bn=Lt.kind;Lt.sublanguage||(bn=""+this.classPrefix+bn),this.span(bn)}closeNode(Lt){te(Lt)&&(this.buffer+=T)}value(){return this.buffer}span(Lt){this.buffer+='<span class="'+Lt+'">'}}class ne{constructor(){this.rootNode={children:[]},this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(Lt){this.top.children.push(Lt)}openNode(Lt){const bn={kind:Lt,children:[]};this.add(bn),this.stack.push(bn)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(Lt){return this.constructor._walk(Lt,this.rootNode)}static _walk(Lt,bn){return typeof bn=="string"?Lt.addText(bn):bn.children&&(Lt.openNode(bn),bn.children.forEach(Yn=>this._walk(Lt,Yn)),Lt.closeNode(bn)),Lt}static _collapse(Lt){typeof Lt!="string"&&Lt.children&&(Lt.children.every(bn=>typeof bn=="string")?Lt.children=[Lt.children.join("")]:Lt.children.forEach(bn=>{ne._collapse(bn)}))}}class B extends ne{constructor(Lt){super(),this.options=Lt}addKeyword(Lt,bn){Lt!==""&&(this.openNode(bn),this.addText(Lt),this.closeNode())}addText(Lt){Lt!==""&&this.add(Lt)}addSublanguage(Lt,bn){const Yn=Lt.root;Yn.kind=bn,Yn.sublanguage=!0,this.add(Yn)}toHTML(){return new q(this,this.options).value()}finalize(){return!0}}function l(ft){return new RegExp(ft.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&"),"m")}function U(ft){return ft?typeof ft=="string"?ft:ft.source:null}function C(){for(var ft=arguments.length,Lt=new Array(ft),bn=0;bn<ft;bn++)Lt[bn]=arguments[bn];return Lt.map(on=>U(on)).join("")}function M(){for(var ft=arguments.length,Lt=new Array(ft),bn=0;bn<ft;bn++)Lt[bn]=arguments[bn];return"("+Lt.map(on=>U(on)).join("|")+")"}function w(ft){return new RegExp(ft.toString()+"|").exec("").length-1}function y(ft,Lt){const bn=ft&&ft.exec(Lt);return bn&&bn.index===0}const j=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function Q(ft,Lt){Lt===void 0&&(Lt="|");let bn=0;return ft.map(Yn=>{bn+=1;const on=bn;let yn=U(Yn),lo="";for(;yn.length>0;){const qn=j.exec(yn);if(!qn){lo+=yn;break}lo+=yn.substring(0,qn.index),yn=yn.substring(qn.index+qn[0].length),qn[0][0]==="\\"&&qn[1]?lo+="\\"+String(Number(qn[1])+on):(lo+=qn[0],qn[0]==="("&&bn++)}return lo}).map(Yn=>"("+Yn+")").join(Lt)}const ze=/\b\B/,me="[a-zA-Z]\\w*",Se="[a-zA-Z_]\\w*",Me="\\b\\d+(\\.\\d+)?",De="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",tt="\\b(0b[01]+)",at="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",ht=function(ft){ft===void 0&&(ft={});const Lt=/^#![ ]*\//;return ft.binary&&(ft.begin=C(Lt,/.*\b/,ft.binary,/\b.*/)),N({className:"meta",begin:Lt,end:/$/,relevance:0,"on:begin":(bn,Yn)=>{bn.index!==0&&Yn.ignoreMatch()}},ft)},Je={begin:"\\\\[\\s\\S]",relevance:0},$={className:"string",begin:"'",end:"'",illegal:"\\n",contains:[Je]},mt={className:"string",begin:'"',end:'"',illegal:"\\n",contains:[Je]},yt={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},Le=function(ft,Lt,bn){bn===void 0&&(bn={});const Yn=N({className:"comment",begin:ft,end:Lt,contains:[]},bn);return Yn.contains.push(yt),Yn.contains.push({className:"doctag",begin:"(?:TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):",relevance:0}),Yn},He=Le("//","$"),ye=Le("/\\*","\\*/"),je=Le("#","$"),ot={className:"number",begin:Me,relevance:0},we={className:"number",begin:De,relevance:0},$e={className:"number",begin:tt,relevance:0},ge={className:"number",begin:Me+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},Ze={begin:/(?=\/[^/\n]*\/)/,contains:[{className:"regexp",begin:/\//,end:/\/[gimuy]*/,illegal:/\n/,contains:[Je,{begin:/\[/,end:/\]/,relevance:0,contains:[Je]}]}]},W={className:"title",begin:me,relevance:0},an={className:"title",begin:Se,relevance:0},_t={begin:"\\.\\s*"+Se,relevance:0};var Oe=Object.freeze({__proto__:null,MATCH_NOTHING_RE:ze,IDENT_RE:me,UNDERSCORE_IDENT_RE:Se,NUMBER_RE:Me,C_NUMBER_RE:De,BINARY_NUMBER_RE:tt,RE_STARTERS_RE:at,SHEBANG:ht,BACKSLASH_ESCAPE:Je,APOS_STRING_MODE:$,QUOTE_STRING_MODE:mt,PHRASAL_WORDS_MODE:yt,COMMENT:Le,C_LINE_COMMENT_MODE:He,C_BLOCK_COMMENT_MODE:ye,HASH_COMMENT_MODE:je,NUMBER_MODE:ot,C_NUMBER_MODE:we,BINARY_NUMBER_MODE:$e,CSS_NUMBER_MODE:ge,REGEXP_MODE:Ze,TITLE_MODE:W,UNDERSCORE_TITLE_MODE:an,METHOD_GUARD:_t,END_SAME_AS_BEGIN:function(ft){return Object.assign(ft,{"on:begin":(Lt,bn)=>{bn.data._beginMatch=Lt[1]},"on:end":(Lt,bn)=>{bn.data._beginMatch!==Lt[1]&&bn.ignoreMatch()}})}});function sn(ft,Lt){ft.input[ft.index-1]==="."&&Lt.ignoreMatch()}function It(ft,Lt){Lt&&ft.beginKeywords&&(ft.begin="\\b("+ft.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",ft.__beforeBegin=sn,ft.keywords=ft.keywords||ft.beginKeywords,delete ft.beginKeywords,ft.relevance===void 0&&(ft.relevance=0))}function Pt(ft,Lt){Array.isArray(ft.illegal)&&(ft.illegal=M(...ft.illegal))}function dt(ft,Lt){if(ft.match){if(ft.begin||ft.end)throw new Error("begin & end are not supported with match");ft.begin=ft.match,delete ft.match}}function Vn(ft,Lt){ft.relevance===void 0&&(ft.relevance=1)}const o=["of","and","for","in","not","or","if","then","parent","list","value"],Gn="keyword";function xt(ft,Lt,bn){bn===void 0&&(bn=Gn);const Yn={};return typeof ft=="string"?on(bn,ft.split(" ")):Array.isArray(ft)?on(bn,ft):Object.keys(ft).forEach(function(yn){Object.assign(Yn,xt(ft[yn],Lt,yn))}),Yn;function on(yn,lo){Lt&&(lo=lo.map(qn=>qn.toLowerCase())),lo.forEach(function(qn){const Wn=qn.split("|");Yn[Wn[0]]=[yn,Ot(Wn[0],Wn[1])]})}}function Ot(ft,Lt){return Lt?Number(Lt):wt(ft)?0:1}function wt(ft){return o.includes(ft.toLowerCase())}function Kt(ft,Lt){let{plugins:bn}=Lt;function Yn(Wn,Nn){return new RegExp(U(Wn),"m"+(ft.case_insensitive?"i":"")+(Nn?"g":""))}class on{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(Nn,xn){xn.position=this.position++,this.matchIndexes[this.matchAt]=xn,this.regexes.push([xn,Nn]),this.matchAt+=w(Nn)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const Nn=this.regexes.map(xn=>xn[1]);this.matcherRe=Yn(Q(Nn),!0),this.lastIndex=0}exec(Nn){this.matcherRe.lastIndex=this.lastIndex;const xn=this.matcherRe.exec(Nn);if(!xn)return null;const Ye=xn.findIndex((Hn,zn)=>zn>0&&Hn!==void 0),wn=this.matchIndexes[Ye];return xn.splice(0,Ye),Object.assign(xn,wn)}}class yn{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(Nn){if(this.multiRegexes[Nn])return this.multiRegexes[Nn];const xn=new on;return this.rules.slice(Nn).forEach(Ye=>{let[wn,Hn]=Ye;return xn.addRule(wn,Hn)}),xn.compile(),this.multiRegexes[Nn]=xn,xn}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(Nn,xn){this.rules.push([Nn,xn]),xn.type==="begin"&&this.count++}exec(Nn){const xn=this.getMatcher(this.regexIndex);xn.lastIndex=this.lastIndex;let Ye=xn.exec(Nn);if(this.resumingScanAtSamePosition()&&!(Ye&&Ye.index===this.lastIndex)){const wn=this.getMatcher(0);wn.lastIndex=this.lastIndex+1,Ye=wn.exec(Nn)}return Ye&&(this.regexIndex+=Ye.position+1,this.regexIndex===this.count&&this.considerAll()),Ye}}function lo(Wn){const Nn=new yn;return Wn.contains.forEach(xn=>Nn.addRule(xn.begin,{rule:xn,type:"begin"})),Wn.terminatorEnd&&Nn.addRule(Wn.terminatorEnd,{type:"end"}),Wn.illegal&&Nn.addRule(Wn.illegal,{type:"illegal"}),Nn}function qn(Wn,Nn){const xn=Wn;if(Wn.isCompiled)return xn;[dt].forEach(wn=>wn(Wn,Nn)),ft.compilerExtensions.forEach(wn=>wn(Wn,Nn)),Wn.__beforeBegin=null,[It,Pt,Vn].forEach(wn=>wn(Wn,Nn)),Wn.isCompiled=!0;let Ye=null;if(typeof Wn.keywords=="object"&&(Ye=Wn.keywords.$pattern,delete Wn.keywords.$pattern),Wn.keywords&&(Wn.keywords=xt(Wn.keywords,ft.case_insensitive)),Wn.lexemes&&Ye)throw new Error("ERR: Prefer `keywords.$pattern` to `mode.lexemes`, BOTH are not allowed. (see mode reference) ");return Ye=Ye||Wn.lexemes||/\w+/,xn.keywordPatternRe=Yn(Ye,!0),Nn&&(Wn.begin||(Wn.begin=/\B|\b/),xn.beginRe=Yn(Wn.begin),Wn.endSameAsBegin&&(Wn.end=Wn.begin),!Wn.end&&!Wn.endsWithParent&&(Wn.end=/\B|\b/),Wn.end&&(xn.endRe=Yn(Wn.end)),xn.terminatorEnd=U(Wn.end)||"",Wn.endsWithParent&&Nn.terminatorEnd&&(xn.terminatorEnd+=(Wn.end?"|":"")+Nn.terminatorEnd)),Wn.illegal&&(xn.illegalRe=Yn(Wn.illegal)),Wn.contains||(Wn.contains=[]),Wn.contains=[].concat(...Wn.contains.map(function(wn){return bt(wn==="self"?Wn:wn)})),Wn.contains.forEach(function(wn){qn(wn,xn)}),Wn.starts&&qn(Wn.starts,Nn),xn.matcher=lo(xn),xn}if(ft.compilerExtensions||(ft.compilerExtensions=[]),ft.contains&&ft.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return ft.classNameAliases=N(ft.classNameAliases||{}),qn(ft)}function fe(ft){return ft?ft.endsWithParent||fe(ft.starts):!1}function bt(ft){return ft.variants&&!ft.cachedVariants&&(ft.cachedVariants=ft.variants.map(function(Lt){return N(ft,{variants:null},Lt)})),ft.cachedVariants?ft.cachedVariants:fe(ft)?N(ft,{starts:ft.starts?N(ft.starts):null}):Object.isFrozen(ft)?N(ft):ft}var un="10.7.3";function gt(ft){return!!(ft||ft==="")}function Wt(ft){const Lt={props:["language","code","autodetect"],data:function(){return{detectedLanguage:"",unknownLanguage:!1}},computed:{className(){return this.unknownLanguage?"":"hljs "+this.detectedLanguage},highlighted(){if(!this.autoDetect&&!ft.getLanguage(this.language))return console.warn('The language "'+this.language+'" you specified could not be found.'),this.unknownLanguage=!0,J(this.code);let Yn={};return this.autoDetect?(Yn=ft.highlightAuto(this.code),this.detectedLanguage=Yn.language):(Yn=ft.highlight(this.language,this.code,this.ignoreIllegals),this.detectedLanguage=this.language),Yn.value},autoDetect(){return!this.language||gt(this.autodetect)},ignoreIllegals(){return!0}},render(Yn){return Yn("pre",{},[Yn("code",{class:this.className,domProps:{innerHTML:this.highlighted}})])}};return{Component:Lt,VuePlugin:{install(Yn){Yn.component("highlightjs",Lt)}}}}const Un={"after:highlightElement":ft=>{let{el:Lt,result:bn,text:Yn}=ft;const on=Yt(Lt);if(!on.length)return;const yn=document.createElement("div");yn.innerHTML=bn.value,bn.value=rt(on,Yt(yn),Yn)}};function Jn(ft){return ft.nodeName.toLowerCase()}function Yt(ft){const Lt=[];return function bn(Yn,on){for(let yn=Yn.firstChild;yn;yn=yn.nextSibling)yn.nodeType===3?on+=yn.nodeValue.length:yn.nodeType===1&&(Lt.push({event:"start",offset:on,node:yn}),on=bn(yn,on),Jn(yn).match(/br|hr|img|input/)||Lt.push({event:"stop",offset:on,node:yn}));return on}(ft,0),Lt}function rt(ft,Lt,bn){let Yn=0,on="";const yn=[];function lo(){return!ft.length||!Lt.length?ft.length?ft:Lt:ft[0].offset!==Lt[0].offset?ft[0].offset<Lt[0].offset?ft:Lt:Lt[0].event==="start"?ft:Lt}function qn(xn){function Ye(wn){return" "+wn.nodeName+'="'+J(wn.value)+'"'}on+="<"+Jn(xn)+[].map.call(xn.attributes,Ye).join("")+">"}function Wn(xn){on+="</"+Jn(xn)+">"}function Nn(xn){(xn.event==="start"?qn:Wn)(xn.node)}for(;ft.length||Lt.length;){let xn=lo();if(on+=J(bn.substring(Yn,xn[0].offset)),Yn=xn[0].offset,xn===ft){yn.reverse().forEach(Wn);do Nn(xn.splice(0,1)[0]),xn=lo();while(xn===ft&&xn.length&&xn[0].offset===Yn);yn.reverse().forEach(qn)}else xn[0].event==="start"?yn.push(xn[0].node):yn.pop(),Nn(xn.splice(0,1)[0])}return on+J(bn.substr(Yn))}const An={},Nt=ft=>{console.error(ft)},jt=function(ft){for(var Lt=arguments.length,bn=new Array(Lt>1?Lt-1:0),Yn=1;Yn<Lt;Yn++)bn[Yn-1]=arguments[Yn];console.log("WARN: "+ft,...bn)},vn=(ft,Lt)=>{An[ft+"/"+Lt]||(console.log("Deprecated as of "+ft+". "+Lt),An[ft+"/"+Lt]=!0)},Dt=J,$t=N,kn=Symbol("nomatch");var dn=function(ft){const Lt=Object.create(null),bn=Object.create(null),Yn=[];let on=!0;const yn=/(^(<[^>]+>|\t|)+|\n)/gm,lo="Could not find the language '{}', did you forget to load/include a language module?",qn={disableAutodetect:!0,name:"Plain text",contains:[]};let Wn={noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",tabReplace:null,useBR:!1,languages:null,__emitter:B};function Nn(so){return Wn.noHighlightRe.test(so)}function xn(so){let to=so.className+" ";to+=so.parentNode?so.parentNode.className:"";const Vo=Wn.languageDetectRe.exec(to);if(Vo){const ta=Ho(Vo[1]);return ta||(jt(lo.replace("{}",Vo[1])),jt("Falling back to no-highlight mode for this block.",so)),ta?Vo[1]:"no-highlight"}return to.split(/\s+/).find(ta=>Nn(ta)||Ho(ta))}function Ye(so,to,Vo,ta){let Qa="",qr="";typeof to=="object"?(Qa=so,Vo=to.ignoreIllegals,qr=to.language,ta=void 0):(vn("10.7.0","highlight(lang, code, ...args) has been deprecated."),vn("10.7.0","Please use highlight(code, options) instead.\nhttps://github.com/highlightjs/highlight.js/issues/2277"),qr=so,Qa=to);const kr={code:Qa,language:qr};ya("before:highlight",kr);const ur=kr.result?kr.result:wn(kr.language,kr.code,Vo,ta);return ur.code=kr.code,ya("after:highlight",ur),ur}function wn(so,to,Vo,ta){function Qa(Xa,ir){const Ir=Bi.case_insensitive?ir[0].toLowerCase():ir[0];return Object.prototype.hasOwnProperty.call(Xa.keywords,Ir)&&Xa.keywords[Ir]}function qr(){if(!Ga.keywords){kt.addText(Qt);return}let Xa=0;Ga.keywordPatternRe.lastIndex=0;let ir=Ga.keywordPatternRe.exec(Qt),Ir="";for(;ir;){Ir+=Qt.substring(Xa,ir.index);const Er=Qa(Ga,ir);if(Er){const[ji,ci]=Er;if(kt.addText(Ir),Ir="",oo+=ci,ji.startsWith("_"))Ir+=ir[0];else{const Cl=Bi.classNameAliases[ji]||ji;kt.addKeyword(ir[0],Cl)}}else Ir+=ir[0];Xa=Ga.keywordPatternRe.lastIndex,ir=Ga.keywordPatternRe.exec(Qt)}Ir+=Qt.substr(Xa),kt.addText(Ir)}function kr(){if(Qt==="")return;let Xa=null;if(typeof Ga.subLanguage=="string"){if(!Lt[Ga.subLanguage]){kt.addText(Qt);return}Xa=wn(Ga.subLanguage,Qt,!0,ai[Ga.subLanguage]),ai[Ga.subLanguage]=Xa.top}else Xa=zn(Qt,Ga.subLanguage.length?Ga.subLanguage:null);Ga.relevance>0&&(oo+=Xa.relevance),kt.addSublanguage(Xa.emitter,Xa.language)}function ur(){Ga.subLanguage!=null?kr():qr(),Qt=""}function Mr(Xa){return Xa.className&&kt.openNode(Bi.classNameAliases[Xa.className]||Xa.className),Ga=Object.create(Xa,{parent:{value:Ga}}),Ga}function gr(Xa,ir,Ir){let Er=y(Xa.endRe,Ir);if(Er){if(Xa["on:end"]){const ji=new I(Xa);Xa["on:end"](ir,ji),ji.isMatchIgnored&&(Er=!1)}if(Er){for(;Xa.endsParent&&Xa.parent;)Xa=Xa.parent;return Xa}}if(Xa.endsWithParent)return gr(Xa.parent,ir,Ir)}function dr(Xa){return Ga.matcher.regexIndex===0?(Qt+=Xa[0],1):(wr=!0,0)}function wi(Xa){const ir=Xa[0],Ir=Xa.rule,Er=new I(Ir),ji=[Ir.__beforeBegin,Ir["on:begin"]];for(const ci of ji)if(ci&&(ci(Xa,Er),Er.isMatchIgnored))return dr(ir);return Ir&&Ir.endSameAsBegin&&(Ir.endRe=l(ir)),Ir.skip?Qt+=ir:(Ir.excludeBegin&&(Qt+=ir),ur(),!Ir.returnBegin&&!Ir.excludeBegin&&(Qt=ir)),Mr(Ir),Ir.returnBegin?0:ir.length}function gi(Xa){const ir=Xa[0],Ir=to.substr(Xa.index),Er=gr(Ga,Xa,Ir);if(!Er)return kn;const ji=Ga;ji.skip?Qt+=ir:(ji.returnEnd||ji.excludeEnd||(Qt+=ir),ur(),ji.excludeEnd&&(Qt=ir));do Ga.className&&kt.closeNode(),!Ga.skip&&!Ga.subLanguage&&(oo+=Ga.relevance),Ga=Ga.parent;while(Ga!==Er.parent);return Er.starts&&(Er.endSameAsBegin&&(Er.starts.endRe=Er.endRe),Mr(Er.starts)),ji.returnEnd?0:ir.length}function Li(){const Xa=[];for(let ir=Ga;ir!==Bi;ir=ir.parent)ir.className&&Xa.unshift(ir.className);Xa.forEach(ir=>kt.openNode(ir))}let Ni={};function Ai(Xa,ir){const Ir=ir&&ir[0];if(Qt+=Xa,Ir==null)return ur(),0;if(Ni.type==="begin"&&ir.type==="end"&&Ni.index===ir.index&&Ir===""){if(Qt+=to.slice(ir.index,ir.index+1),!on){const Er=new Error("0 width match regex");throw Er.languageName=so,Er.badRule=Ni.rule,Er}return 1}if(Ni=ir,ir.type==="begin")return wi(ir);if(ir.type==="illegal"&&!Vo){const Er=new Error('Illegal lexeme "'+Ir+'" for mode "'+(Ga.className||"<unnamed>")+'"');throw Er.mode=Ga,Er}else if(ir.type==="end"){const Er=gi(ir);if(Er!==kn)return Er}if(ir.type==="illegal"&&Ir==="")return 1;if(fa>1e5&&fa>ir.index*3)throw new Error("potential infinite loop, way more iterations than matches");return Qt+=Ir,Ir.length}const Bi=Ho(so);if(!Bi)throw Nt(lo.replace("{}",so)),new Error('Unknown language: "'+so+'"');const Ss=Kt(Bi,{plugins:Yn});let qi="",Ga=ta||Ss;const ai={},kt=new Wn.__emitter(Wn);Li();let Qt="",oo=0,ao=0,fa=0,wr=!1;try{for(Ga.matcher.considerAll();;){fa++,wr?wr=!1:Ga.matcher.considerAll(),Ga.matcher.lastIndex=ao;const Xa=Ga.matcher.exec(to);if(!Xa)break;const ir=to.substring(ao,Xa.index),Ir=Ai(ir,Xa);ao=Xa.index+Ir}return Ai(to.substr(ao)),kt.closeAllNodes(),kt.finalize(),qi=kt.toHTML(),{relevance:Math.floor(oo),value:qi,language:so,illegal:!1,emitter:kt,top:Ga}}catch(Xa){if(Xa.message&&Xa.message.includes("Illegal"))return{illegal:!0,illegalBy:{msg:Xa.message,context:to.slice(ao-100,ao+100),mode:Xa.mode},sofar:qi,relevance:0,value:Dt(to),emitter:kt};if(on)return{illegal:!1,relevance:0,value:Dt(to),emitter:kt,language:so,top:Ga,errorRaised:Xa};throw Xa}}function Hn(so){const to={relevance:0,emitter:new Wn.__emitter(Wn),value:Dt(so),illegal:!1,top:qn};return to.emitter.addText(so),to}function zn(so,to){to=to||Wn.languages||Object.keys(Lt);const Vo=Hn(so),ta=to.filter(Ho).filter(la).map(Mr=>wn(Mr,so,!1));ta.unshift(Vo);const Qa=ta.sort((Mr,gr)=>{if(Mr.relevance!==gr.relevance)return gr.relevance-Mr.relevance;if(Mr.language&&gr.language){if(Ho(Mr.language).supersetOf===gr.language)return 1;if(Ho(gr.language).supersetOf===Mr.language)return-1}return 0}),[qr,kr]=Qa,ur=qr;return ur.second_best=kr,ur}function ko(so){return Wn.tabReplace||Wn.useBR?so.replace(yn,to=>to==="\n"?Wn.useBR?"<br>":to:Wn.tabReplace?to.replace(/\t/g,Wn.tabReplace):to):so}function On(so,to,Vo){const ta=to?bn[to]:Vo;so.classList.add("hljs"),ta&&so.classList.add(ta)}const Mo={"before:highlightElement":so=>{let{el:to}=so;Wn.useBR&&(to.innerHTML=to.innerHTML.replace(/\n/g,"").replace(/<br[ /]*>/g,"\n"))},"after:highlightElement":so=>{let{result:to}=so;Wn.useBR&&(to.value=to.value.replace(/\n/g,"<br>"))}},jn=/^(<[^>]+>|\t)+/gm,xo={"after:highlightElement":so=>{let{result:to}=so;Wn.tabReplace&&(to.value=to.value.replace(jn,Vo=>Vo.replace(/\t/g,Wn.tabReplace)))}};function jo(so){let to=null;const Vo=xn(so);if(Nn(Vo))return;ya("before:highlightElement",{el:so,language:Vo}),to=so;const ta=to.textContent,Qa=Vo?Ye(ta,{language:Vo,ignoreIllegals:!0}):zn(ta);ya("after:highlightElement",{el:so,result:Qa,text:ta}),so.innerHTML=Qa.value,On(so,Vo,Qa.language),so.result={language:Qa.language,re:Qa.relevance,relavance:Qa.relevance},Qa.second_best&&(so.second_best={language:Qa.second_best.language,re:Qa.second_best.relevance,relavance:Qa.second_best.relevance})}function Qo(so){so.useBR&&(vn("10.3.0","'useBR' will be removed entirely in v11.0"),vn("10.3.0","Please see https://github.com/highlightjs/highlight.js/issues/2559")),Wn=$t(Wn,so)}const cn=()=>{if(cn.called)return;cn.called=!0,vn("10.6.0","initHighlighting() is deprecated. Use highlightAll() instead."),document.querySelectorAll("pre code").forEach(jo)};function In(){vn("10.6.0","initHighlightingOnLoad() is deprecated. Use highlightAll() instead."),tn=!0}let tn=!1;function Jt(){if(document.readyState==="loading"){tn=!0;return}document.querySelectorAll("pre code").forEach(jo)}function Ln(){tn&&Jt()}typeof window<"u"&&window.addEventListener&&window.addEventListener("DOMContentLoaded",Ln,!1);function Xn(so,to){let Vo=null;try{Vo=to(ft)}catch(ta){if(Nt("Language definition for '{}' could not be registered.".replace("{}",so)),on)Nt(ta);else throw ta;Vo=qn}Vo.name||(Vo.name=so),Lt[so]=Vo,Vo.rawDefinition=to.bind(null,ft),Vo.aliases&&ua(Vo.aliases,{languageName:so})}function Dn(so){delete Lt[so];for(const to of Object.keys(bn))bn[to]===so&&delete bn[to]}function go(){return Object.keys(Lt)}function Uo(so){vn("10.4.0","requireLanguage will be removed entirely in v11."),vn("10.4.0","Please see https://github.com/highlightjs/highlight.js/pull/2844");const to=Ho(so);if(to)return to;throw new Error("The '{}' language is required, but not loaded.".replace("{}",so))}function Ho(so){return so=(so||"").toLowerCase(),Lt[so]||Lt[bn[so]]}function ua(so,to){let{languageName:Vo}=to;typeof so=="string"&&(so=[so]),so.forEach(ta=>{bn[ta.toLowerCase()]=Vo})}function la(so){const to=Ho(so);return to&&!to.disableAutodetect}function To(so){so["before:highlightBlock"]&&!so["before:highlightElement"]&&(so["before:highlightElement"]=to=>{so["before:highlightBlock"](Object.assign({block:to.el},to))}),so["after:highlightBlock"]&&!so["after:highlightElement"]&&(so["after:highlightElement"]=to=>{so["after:highlightBlock"](Object.assign({block:to.el},to))})}function Ia(so){To(so),Yn.push(so)}function ya(so,to){const Vo=so;Yn.forEach(function(ta){ta[Vo]&&ta[Vo](to)})}function eo(so){return vn("10.2.0","fixMarkup will be removed entirely in v11.0"),vn("10.2.0","Please see https://github.com/highlightjs/highlight.js/issues/2534"),ko(so)}function Oo(so){return vn("10.7.0","highlightBlock will be removed entirely in v12.0"),vn("10.7.0","Please use highlightElement now."),jo(so)}Object.assign(ft,{highlight:Ye,highlightAuto:zn,highlightAll:Jt,fixMarkup:eo,highlightElement:jo,highlightBlock:Oo,configure:Qo,initHighlighting:cn,initHighlightingOnLoad:In,registerLanguage:Xn,unregisterLanguage:Dn,listLanguages:go,getLanguage:Ho,registerAliases:ua,requireLanguage:Uo,autoDetection:la,inherit:$t,addPlugin:Ia,vuePlugin:Wt(ft).VuePlugin}),ft.debugMode=function(){on=!1},ft.safeMode=function(){on=!0},ft.versionString=un;for(const so in Oe)typeof Oe[so]=="object"&&s(Oe[so]);return Object.assign(ft,Oe),ft.addPlugin(Mo),ft.addPlugin(Un),ft.addPlugin(xo),ft}({});Qn.exports=dn},55614:(Qn,qe,s)=>{"use strict";s.d(qe,{A:()=>M});var r=s(38502),I=Object.defineProperty,J=Object.defineProperties,N=Object.getOwnPropertyDescriptors,T=Object.getOwnPropertySymbols,te=Object.prototype.hasOwnProperty,q=Object.prototype.propertyIsEnumerable,ne=(w,y,j)=>y in w?I(w,y,{enumerable:!0,configurable:!0,writable:!0,value:j}):w[y]=j,B=(w,y)=>{for(var j in y||(y={}))te.call(y,j)&&ne(w,j,y[j]);if(T)for(var j of T(y))q.call(y,j)&&ne(w,j,y[j]);return w},l=(w,y)=>J(w,N(y)),U=(w,y)=>{var j={};for(var Q in w)te.call(w,Q)&&y.indexOf(Q)<0&&(j[Q]=w[Q]);if(w!=null&&T)for(var Q of T(w))y.indexOf(Q)<0&&q.call(w,Q)&&(j[Q]=w[Q]);return j},M=(0,r.forwardRef)((w,y)=>{var j=w,{size:Q,spin:ze,style:me}=j,Se=U(j,["size","spin","style"]);const Me=B(B({width:Q||"var(--x-icon-size, 1em)",height:Q||"var(--x-icon-size, 1em)",animation:ze?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),me);return r.createElement("svg",l(B({ref:y,style:Me},Se),{width:"51",height:"17",viewBox:"0 0 51 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),r.createElement("rect",{x:"0.25",y:"0.25",width:"50.5",height:"16.5",rx:"4.25",fill:"url(#paint0_linear_291_84)"}),r.createElement("rect",{x:"0.25",y:"0.25",width:"50.5",height:"16.5",rx:"4.25",fill:"url(#paint1_linear_291_84)",fillOpacity:"0.5"}),r.createElement("rect",{x:"0.25",y:"0.25",width:"50.5",height:"16.5",rx:"4.25",fill:"url(#paint2_linear_291_84)",fillOpacity:"0.8"}),r.createElement("rect",{x:"0.25",y:"0.25",width:"50.5",height:"16.5",rx:"4.25",stroke:"url(#paint3_linear_291_84)",strokeWidth:"0.5"}),r.createElement("path",{d:"M15.49 4.21H16.44L16.73 5.37H15.78L15.49 4.21ZM10.39 5.77L8.35 5.08V4.08L10.39 4.77V5.77ZM15.27 6.55C15.42 8.47 15.72 10.24 15.98 11.33C16.12 11.89 16.4 11.97 17.18 11.59L17.02 12.75C15.86 13.16 15.2 13.02 14.94 12.05C14.58 10.71 14.24 8.6 14.09 6.55H10.91L10.81 5.52H14.04L13.96 4H15.11L15.2 5.52H17.07V6.55H15.27ZM13.01 11.11L14.14 10.93V11.95L10.82 12.51L10.64 11.66L8.71 12.88L8.51 11.65L8.74 11.51C8.83 10.92 8.85 10.27 8.85 9.72V7.67C8.85 7.58 8.79 7.51 8.7 7.51H8.06L7.96 6.41H9.31C9.77 6.41 10.02 6.66 10.02 7.12V9.73C10.02 10.12 9.98 10.47 9.92 10.8L10.78 10.27V11.46L11.85 11.29V8.72H10.95L10.85 7.7H13.91V8.72H13.01V11.11ZM25.02 10.11H22.93V12.89H21.73V10.11H19.55C19.45 11.28 19.25 12.17 18.89 13.01H17.62C18.24 11.42 18.42 10.14 18.42 7.78V5.2C18.42 4.66 18.68 4.4 19.22 4.4H25.43C25.97 4.4 26.23 4.66 26.23 5.2V11.82C26.23 12.46 25.76 12.95 25.05 12.99C24.46 13.02 24.02 12.98 23.54 12.86L23.27 11.83C24.14 11.98 24.1 11.99 24.52 11.96C24.85 11.94 25.02 11.77 25.02 11.45V10.11ZM25.02 9.09V7.77H22.93V9.09H25.02ZM25.02 6.75V5.59C25.02 5.49 24.97 5.44 24.87 5.44H22.93V6.75H25.02ZM21.73 9.09V7.77H19.63V7.78C19.63 8.25 19.62 8.69 19.61 9.09H21.73ZM21.73 6.75V5.44H19.78C19.68 5.44 19.63 5.49 19.63 5.59V6.75H21.73Z",fill:"#7E2203"}),r.createElement("path",{d:"M30.7256 12.5L27.6792 4.5928H29.5608L31.8792 10.988H31.1064L33.4584 4.5928H35.3176L32.2376 12.5H30.7256ZM35.746 12.5V4.5928H37.5044V12.5H35.746ZM39.8712 9.6216V8.2552H41.5736C41.7902 8.2552 41.988 8.2104 42.1672 8.1208C42.3464 8.0312 42.4883 7.90053 42.5928 7.7288C42.6974 7.55707 42.7496 7.348 42.7496 7.1016C42.7496 6.86267 42.6974 6.65733 42.5928 6.4856C42.4883 6.31387 42.3464 6.1832 42.1672 6.0936C41.988 6.004 41.7902 5.9592 41.5736 5.9592H39.8712V4.5928H41.8312C42.3315 4.5928 42.7832 4.6936 43.1864 4.8952C43.5896 5.0968 43.907 5.388 44.1384 5.7688C44.3774 6.14213 44.4968 6.5864 44.4968 7.1016C44.4968 7.6168 44.3774 8.0648 44.1384 8.4456C43.907 8.81893 43.5896 9.11013 43.1864 9.3192C42.7832 9.5208 42.3315 9.6216 41.8312 9.6216H39.8712ZM38.5272 12.5V4.5928H40.2856V12.5H38.5272Z",fill:"#7E2203"}),r.createElement("defs",null,r.createElement("linearGradient",{id:"paint0_linear_291_84",x1:"50.5",y1:"8.5",x2:"18.6073",y2:"-9.04453",gradientUnits:"userSpaceOnUse"},r.createElement("stop",{stopColor:"#FFE6DD"}),r.createElement("stop",{offset:"1",stopColor:"#FFBEA9"})),r.createElement("linearGradient",{id:"paint1_linear_291_84",x1:"0.500001",y1:"18.7222",x2:"13.8428",y2:"11.2975",gradientUnits:"userSpaceOnUse"},r.createElement("stop",{stopColor:"#D55C81"}),r.createElement("stop",{offset:"1",stopColor:"#D55C81",stopOpacity:"0"})),r.createElement("linearGradient",{id:"paint2_linear_291_84",x1:"4.54412",y1:"0.5",x2:"9.2775",y2:"9.57088",gradientUnits:"userSpaceOnUse"},r.createElement("stop",{stopColor:"white"}),r.createElement("stop",{offset:"1",stopColor:"white",stopOpacity:"0"})),r.createElement("linearGradient",{id:"paint3_linear_291_84",x1:"51.2353",y1:"7.5",x2:"0.498777",y2:"7.22966",gradientUnits:"userSpaceOnUse"},r.createElement("stop",{stopColor:"#FFE7DE"}),r.createElement("stop",{offset:"1",stopColor:"#FFBEA9"}))))})},55804:(Qn,qe,s)=>{"use strict";s.d(qe,{A:()=>te});var r=s(95549),I=s(38502),J=s(53940),N=s(56202),T=s(72214);class te extends I.PureComponent{constructor(){super(...arguments),(0,r.A)(this,"setElementRef",ne=>this.$elem=ne),(0,r.A)(this,"handleWheel",ne=>{const{x:B,y:l,scale:U,isDisabled:C,onOffsetChange:M}=this.props;if(C)return;ne.preventDefault();const w=Math.max(-1,Math.min(ne.deltaY,1));if(ne.ctrlKey||ne.metaKey){const{top:Q,left:ze,right:me,bottom:Se}=this.$elem.getBoundingClientRect(),Me=(ze+me)/2,De=(Q+Se)/2,tt=U<=100?U-w*5:U-U*w*.05,at=ne.pageX-Me,ht=ne.pageY-De;this.handleZoom(tt,at,ht)}else{var y,j;if((y=(j=this.props).preventWheelEvent)!=null&&y.call(j,ne))return;if((0,N.uF)()&&ne.shiftKey){M(B-ne.deltaY,l-ne.deltaX);return}M(B-ne.deltaX,l-ne.deltaY)}}),(0,r.A)(this,"renderChild",ne=>{const{x:B,y:l,scale:U,isDisabled:C}=this.props;return typeof ne=="function"?ne(B,l,U,C):ne})}componentDidMount(){this.$elem.addEventListener("wheel",this.handleWheel,{passive:!1})}componentWillUnmount(){this.$elem.removeEventListener("wheel",this.handleWheel)}handleZoom(ne,B,l){const{x:U,y:C,scale:M,onScaleAndOffsetChange:w}=this.props;ne=Math.min(Math.max(ne,J.sI),J.sH);const y=ne/M;if(y===1)return;const j=B+y*(U-B),Q=l+y*(C-l);w(j,Q,ne)}render(){const{x:ne,y:B,scale:l,children:U,isDisabled:C,onOffsetChange:M,onScaleAndOffsetChange:w,...y}=this.props;return(0,T.jsx)("div",{...y,ref:this.setElementRef,children:U.length>1?U.map(j=>this.renderChild(j)):this.renderChild(U)})}}},56249:(Qn,qe,s)=>{"use strict";s.d(qe,{A:()=>M});var r=s(38502),I=Object.defineProperty,J=Object.defineProperties,N=Object.getOwnPropertyDescriptors,T=Object.getOwnPropertySymbols,te=Object.prototype.hasOwnProperty,q=Object.prototype.propertyIsEnumerable,ne=(w,y,j)=>y in w?I(w,y,{enumerable:!0,configurable:!0,writable:!0,value:j}):w[y]=j,B=(w,y)=>{for(var j in y||(y={}))te.call(y,j)&&ne(w,j,y[j]);if(T)for(var j of T(y))q.call(y,j)&&ne(w,j,y[j]);return w},l=(w,y)=>J(w,N(y)),U=(w,y)=>{var j={};for(var Q in w)te.call(w,Q)&&y.indexOf(Q)<0&&(j[Q]=w[Q]);if(w!=null&&T)for(var Q of T(w))y.indexOf(Q)<0&&q.call(w,Q)&&(j[Q]=w[Q]);return j},M=(0,r.forwardRef)((w,y)=>{var j=w,{size:Q,spin:ze,style:me}=j,Se=U(j,["size","spin","style"]);const Me=B(B({width:Q||"var(--x-icon-size, 1em)",height:Q||"var(--x-icon-size, 1em)",animation:ze?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),me);return r.createElement("svg",l(B({ref:y,style:Me},Se),{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),r.createElement("path",{d:"M8 9.27368L10.8286 6.44507C11.089 6.18481 11.511 6.18481 11.7714 6.44507C12.0316 6.70532 12.0316 7.12768 11.7714 7.38794L8.70715 10.4519C8.31653 10.8425 7.68335 10.8425 7.29285 10.4519L4.22864 7.38794C3.96838 7.12768 3.96838 6.70532 4.22864 6.44507C4.48901 6.18481 4.91101 6.18481 5.17126 6.44507L8 9.27368Z",fill:"#555557"}))})},56568:(Qn,qe,s)=>{"use strict";s.d(qe,{A:()=>M});var r=s(38502),I=Object.defineProperty,J=Object.defineProperties,N=Object.getOwnPropertyDescriptors,T=Object.getOwnPropertySymbols,te=Object.prototype.hasOwnProperty,q=Object.prototype.propertyIsEnumerable,ne=(w,y,j)=>y in w?I(w,y,{enumerable:!0,configurable:!0,writable:!0,value:j}):w[y]=j,B=(w,y)=>{for(var j in y||(y={}))te.call(y,j)&&ne(w,j,y[j]);if(T)for(var j of T(y))q.call(y,j)&&ne(w,j,y[j]);return w},l=(w,y)=>J(w,N(y)),U=(w,y)=>{var j={};for(var Q in w)te.call(w,Q)&&y.indexOf(Q)<0&&(j[Q]=w[Q]);if(w!=null&&T)for(var Q of T(w))y.indexOf(Q)<0&&q.call(w,Q)&&(j[Q]=w[Q]);return j},M=(0,r.forwardRef)((w,y)=>{var j=w,{size:Q,spin:ze,style:me}=j,Se=U(j,["size","spin","style"]);const Me=B(B({width:Q||"var(--x-icon-size, 1em)",height:Q||"var(--x-icon-size, 1em)",animation:ze?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),me);return r.createElement("svg",l(B({ref:y,style:Me},Se),{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.7 6.75384H3.37052C2.98462 6.75384 2.74419 6.33523 2.93863 6.00191L5.56811 1.49422C5.76105 1.16347 6.23895 1.16347 6.43189 1.49422L9.06137 6.00191C9.25581 6.33523 9.01538 6.75384 8.62948 6.75384H7.3L6.59806 10.2636C6.54104 10.5486 6.29073 10.7538 6 10.7538C5.70927 10.7538 5.45896 10.5486 5.40194 10.2636L4.7 6.75384Z",fill:"#CE7710"}))})},57999:(Qn,qe,s)=>{"use strict";s.d(qe,{A:()=>N,d:()=>J});var r=s(58317),I=s.n(r);const J="ai-chat-event-notice",N=new r.EventEmitter},58053:(Qn,qe,s)=>{"use strict";s.d(qe,{A:()=>T});var r=s(86102),I=s.n(r);const J=()=>{},T=I().isEnabled?I():{isFullscreen:!1,on:J,off:J,request:J,exit:J}},58579:(Qn,qe,s)=>{"use strict";s.d(qe,{A:()=>mre});var r=s(18381),I=s(12211),J=s(62532),N=s(96986),T=s(77709),te=s(67588),q=s(60651),ne=s(24496),B=s(95549),l=s(38502),U=s(53732),C=s.n(U),M=s(67787),w=s(16738),y=s(46147),j=s(7198),Q=s(29372),ze=s(88856),me=s(70933),Se=s(14084),Me=s(10472),De=s(70422),tt=s(4235);const at=(0,I.Mz)([me.Ur,tt.p$],(e,t)=>t.includes(e==null?void 0:e.cid));var ht=s(79770),Je=s(14166),$=s(20089);const mt=(e,t,n,a)=>(e.hotAttr.type===$.x.WBasket?[]:a.getRenderableSubHotItems(e)).filter(c=>{try{switch(c.hotAttr.type){case"wLine":case"wArrow":return(0,ht.Xs)(t,n,c.key);case"wElbow":return(0,ht.kA)(t,n,c.key);case"wTear":return(0,ht.Vj)(t,n,c.key);default:return(0,Je.N0)(sdkStore.getHotAABB(c.key),t)}}catch(d){return console.error("[fatal]: collectChildrenAtWorldPos",d,c),!1}}).sort((c,d)=>d.hotAttr.zIndex-c.hotAttr.zIndex),yt=(e,t,n,a)=>[e].reduce((i,c)=>[...i,{...c,sub:[]},...mt(c,t,n,a).flatMap(d=>yt(d,t,n,a))],[]);var Le=s(78915),He=s(25997);const ye=e=>e.ui.fixedLayout.contextmenu.show,je=e=>e.ui.fixedLayout.contextmenu.position,ot=e=>e.ui.fixedLayout.contextmenu.byCanvasLayers,we=e=>e.ui.fixedLayout.contextmenu.byComponentList,$e=e=>e.ui.fixedLayout.contextmenu.canPaste,ge=e=>e.ui.fixedLayout.contextmenu.canPasteProperties,Ze=(0,I.Mz)([me.eo,je,me.Pz,me.X_,He.UV],(e,t,n,a,i)=>{const{left:c,top:d}=t,{canvasTop:p,canvasLeft:h}=n,m={x:(c-h)/(a/100),y:(d-p)/(a/100)},x=i.getRootSnapshot();return!x||e!==x.key?[]:yt(x,m,a/100,i).slice(1)}),W=(0,I.Mz)([ye,at],(e,t)=>e&&!t),an=(0,I.Mz)([W,tt.p$,q.jx,Ze],(e,t,n,a)=>n===Le.qi.OnlyView&&(t.length===0||a.length===0)?!1:e);var _t=s(15400),nn=s(65575),Oe=s(21066),sn=s(78661),It=s(86594),Pt=s(15515),dt=s(74302),Vn=s(37780),o=s(72214);class Gn extends l.PureComponent{constructor(t){super(t),(0,B.A)(this,"handleCopy",n=>{n.preventDefault(),this.props.dispatch({type:"entry:copy:items:properties"})}),(0,B.A)(this,"pasteProperties",n=>{n.preventDefault();const{dispatch:a}=this.props;a({type:"entry:paste:items:properties"})}),(0,B.A)(this,"copyInteraction",()=>{const{dispatch:n,isCanvasLayerItemContext:a}=this.props;n(Vn.R7.command.interactionCopyCommand({isCanvasLayerItemContext:a}))}),(0,B.A)(this,"pasteInteraction",()=>{const{dispatch:n}=this.props;n(Vn.R7.command.pasteIta({targetInteractionKey:void 0,uiFrom:void 0}))}),(0,B.A)(this,"handleCopyAsPNG",()=>{const{currentProject:n,dispatch:a}=this.props,i=(0,Pt.Yt)(dt.XY.SCALE,1,Pt.qW.Number),c=[{format:"png",scale:String(i),affix:"suffix",isWithDeviceFrame:!1}];a({type:"copy:as:png",payload:{exportConfigList:c,actionType:"copy"}})}),(0,B.A)(this,"handleCopyAsHTML",()=>{this.props.dispatch({type:"copy:as:html"})}),this.state={canPasteInteraction:!1}}componentDidMount(){(0,It.YF)().then(t=>{this.setState({canPasteInteraction:t&&this.props.canPasteInteraction})})}render(){const{canCopyAsPNG:t,canCopyAsHTML:n,canPasteProperties:a,canCopyInteraction:i,showCopyOrPasteProperties:c,canCopyProerties:d}=this.props,{canPasteInteraction:p}=this.state;return(0,o.jsxs)(Oe.Dr,{text:I18N.ContextMenu.copy_paste_as,isAiry:!0,children:[(0,o.jsx)(Oe.Dr,{text:I18N.ContextMenu.copy_as_png,onClick:this.handleCopyAsPNG,disabled:!t}),n&&(0,o.jsx)(Oe.Dr,{text:"\u590D\u5236\u4E3A HTML",onClick:this.handleCopyAsHTML}),(0,o.jsx)(_t.cG,{}),c&&(0,o.jsxs)("div",{children:[(0,o.jsx)(Oe.Dr,{text:I18N.ContextMenu.copy_properties,onClick:this.handleCopy,hotKeyText:sn.V.copy,disabled:!d}),(0,o.jsx)(Oe.Dr,{text:I18N.ContextMenu.paste_properties,onClick:this.pasteProperties,hotKeyText:sn.V.pasteProperties,disabled:!a}),(0,o.jsx)(_t.cG,{})]}),(0,o.jsx)(Oe.Dr,{text:I18N.Interaction.copy_ita,onClick:this.copyInteraction,disabled:!i}),(0,o.jsx)(Oe.Dr,{text:I18N.Interaction.paste_ita,onClick:this.pasteInteraction,disabled:!p})]})}}var xt=s(17307),Ot=s(88944);let wt=function(e){return e[e.General=0]="General",e[e.Common=1]="Common",e[e.Text=2]="Text",e[e.Appearance=3]="Appearance",e[e.PolygonInfo=4]="PolygonInfo",e[e.ImageDrop=5]="ImageDrop",e[e.Carousel=6]="Carousel",e[e.Canvas=7]="Canvas",e[e.LayoutGrid=8]="LayoutGrid",e[e.StickyArea=9]="StickyArea",e[e.WebPagePanel=10]="WebPagePanel",e[e.VideoPanel=11]="VideoPanel",e[e.AudioPanel=12]="AudioPanel",e[e.QRCodePanel=13]="QRCodePanel",e[e.TablePanel=14]="TablePanel",e[e.TableCellPanel=15]="TableCellPanel",e[e.DropMenuPanel=16]="DropMenuPanel",e[e.OptionDropMenuPanel=17]="OptionDropMenuPanel",e[e.OptionNavigationMenuPanel=18]="OptionNavigationMenuPanel",e[e.OptionNavigationMenuHPanel=19]="OptionNavigationMenuHPanel",e[e.OptionNavigationMenuVPanel=20]="OptionNavigationMenuVPanel",e[e.OptionCollapsePanel=21]="OptionCollapsePanel",e[e.OptionSegmentedControlPanel=22]="OptionSegmentedControlPanel",e[e.OptionTabsPanel=23]="OptionTabsPanel",e[e.NavigationMenuTypePanel=24]="NavigationMenuTypePanel",e[e.NavigationMenuOtherOptionsPanel=25]="NavigationMenuOtherOptionsPanel",e[e.NavigationMenuSettingsPanel=26]="NavigationMenuSettingsPanel",e[e.CollapseSettingsPanel=27]="CollapseSettingsPanel",e[e.CollapseSwitchOptionsPanel=28]="CollapseSwitchOptionsPanel",e[e.SegmentedControlPanel=29]="SegmentedControlPanel",e[e.TabsPanel=30]="TabsPanel",e[e.PaginationMobilePanel=31]="PaginationMobilePanel",e[e.PaginationWebPanel=32]="PaginationWebPanel",e[e.DigitalStepperPanel=33]="DigitalStepperPanel",e[e.SliderPanel=34]="SliderPanel",e[e.SwitchOptionsPanel=35]="SwitchOptionsPanel",e[e.SwitchPanel=36]="SwitchPanel",e[e.MobileTabBarsSwitchOptionsPanel=37]="MobileTabBarsSwitchOptionsPanel",e[e.MobileTabBarsPanel=38]="MobileTabBarsPanel",e[e.SelectionControlTypeSettingsPanel=39]="SelectionControlTypeSettingsPanel",e[e.SelectionControlAttrSettingsPanel=40]="SelectionControlAttrSettingsPanel",e[e.SelectionControlColorSettingsPanel=41]="SelectionControlColorSettingsPanel",e[e.ChartSettingsPanel=42]="ChartSettingsPanel",e[e.TemplatePanel=43]="TemplatePanel",e[e.Animation=44]="Animation",e[e.CanvasColorPanel=45]="CanvasColorPanel",e[e.InputTypePanel=46]="InputTypePanel",e[e.InputPlaceholderPanel=47]="InputPlaceholderPanel",e[e.IconFlipPanel=48]="IconFlipPanel",e[e.DropMenuOptionColor=49]="DropMenuOptionColor",e[e.MaxPageNumber=50]="MaxPageNumber",e[e.TreeSwitchPanel=51]="TreeSwitchPanel",e}({});const Kt="default",fe="multiple";var bt=s(59025),un=s(64320);const gt=(e,t,n)=>{switch(e){case $.x.Canvas:{if(["asOverlay","shadow","border","borderRadius","borderVisibility"].includes(t)||t==="fill"&&n.fill!=="solid")return!1;break}case $.x.CanvasAsOverlay:{if(["asOverlay","stickyHeaderHeight","stickyFooterHeight","layoutGrid","orientation","device"].includes(t))return!1;break}default:return!0}return!0},Wt=e=>{let{value:t,attr:n,refVar:a,dispatch:i,supAttr:c,selections:d=[]}=e;const p=d.map(h=>{if(sdkStore.isTrashed(h))return null;const m=sdkStore.getHotItem(h),x=(0,bt.o9)(m);if(!gt(x,n,t)||!gt(x,c,t))return null;const{refVars:v,refStyles:A}=m.hotAttr;let k=v,R,F=!1;if(c&&m.hotAttr[c]){var Z;F=(v==null||(Z=v[c])==null?void 0:Z[n])!==a,F&&(k={...v,[c]:{...v==null?void 0:v[c],[n]:a}},Object.keys(k).forEach(G=>{k[c][G]||delete k[c][G]})),R={[c]:{...m.hotAttr[c],[n]:t}}}else F=(v==null?void 0:v[n])!==a,F&&(k={...v,[n]:a},k&&!k[n]&&delete k[n]),R={[n]:t};return un.vZ.includes(n)&&(R.refStyles={...A,appear:void 0}),F&&(R.refVars=k),{key:h,hotAttr:R}}).filter(h=>!!h);i({type:"entry:widget:change",payload:{flatChgList:p}})},Un=e=>{let{selectedTrees:t,settingPanelMap:n,otherProps:a}=e;const i={},c=[],d=t.map(h=>h.widget),p=h=>(n[getItemWidgetType(h)]||n[DefaultType])(t,{...a}).flat().filter(m=>typeof m=="number");d.forEach(h=>{p(h).forEach(x=>{i[x]=i[x]?i[x]+1:1})});for(const[h,m]of Object.entries(i))m===d.length&&c.push(Number(h));return c},Jn={0:$.Q.FIXED_TYPE.not_fixed,1:$.Q.FIXED_TYPE.top,2:$.Q.FIXED_TYPE.bottom,3:$.Q.FIXED_TYPE.sticky};class Yt extends l.PureComponent{constructor(){super(...arguments),(0,B.A)(this,"handleFixed",t=>{const{dispatch:n,selections:a}=this.props;t.preventDefault();const i=t.currentTarget.dataset.type,c=Jn[i];if(c==="sticky"){var d;if(((d=sdkStore.getHotItem(a[0]))==null||(d=d.hotAttr)==null?void 0:d.stickyOffset)===null){var p;const h=sdkStore.locUpHotCanvasKey(a[0]),m=(a==null?void 0:a.length)>1?0:h&&((p=sdkStore.getHotItem(h))==null||(p=p.hotAttr)==null?void 0:p.stickyHeaderHeight)||0;Wt({value:m,attr:"stickyOffset",dispatch:n,selections:a})}}n({type:"entry:set:Fixed",payload:{value:c}}),Ot.Vi[c]&&(0,Ot.O3)({operation_from:this.props.from,operation_type:Ot.Vi[c]})})}render(){const{fixPosTo:t}=this.props,n=(0,o.jsx)(xt.C,{name:"toolbar/selected",className:"selected-icon"});return(0,o.jsxs)(Oe.Dr,{text:I18N.ContextMenu.fixed_widget,isAiry:!0,children:[(0,o.jsx)(Oe.Dr,{text:I18N.ContextMenu.not_fixed,onClick:this.handleFixed,dataType:0,icon:t===$.Q.FIXED_TYPE.not_fixed?n:null}),(0,o.jsx)(Oe.Dr,{text:I18N.ContextMenu.fixed_top,onClick:this.handleFixed,dataType:1,icon:t===$.Q.FIXED_TYPE.top?n:null}),(0,o.jsx)(Oe.Dr,{text:I18N.ContextMenu.fixed_bottom,onClick:this.handleFixed,dataType:2,icon:t===$.Q.FIXED_TYPE.bottom?n:null}),(0,o.jsx)(Oe.Dr,{text:I18N.ContextMenu.sticky,onClick:this.handleFixed,dataType:3,icon:t===$.Q.FIXED_TYPE.sticky?n:null})]})}}var rt=s(67052),An=s(46464);const Nt=M.Ay.div.withConfig({displayName:"styles__StyledLayerSelectMenu",componentId:"sc-1fdsglm-0"})([".layer-item{position:relative;height:24px;padding-left:24px;display:flex;align-items:center;cursor:pointer;a{padding-left:0;padding-right:0;}&.MenuItem.hasIcon > a{padding-left:4px;}.state-icon{position:absolute;left:4px;width:20px;height:100%;display:flex;justify-content:center;align-items:center;font-size:12px;color:#f2f4f5;&.widget-icon-selected{width:8px;margin-left:8px;}}span{max-width:132px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;}.svg-icon{height:16px;width:16px;margin-right:6px;}.widget-icon{font-size:20px;width:20px;height:20px;margin-right:4px;&.group-icon{path:first-child{fill:transparent;stroke:",";}path:last-child{fill:transparent;stroke:",";}}}.svg-icon-path-icon{width:20px;height:14px;margin-right:6px;fill:currentcolor;}.is-multi-color-icon{width:20px;height:14px;margin-right:6px;}&:hover{background:",";}&.MenuItem:not(.disabled).active{a{background:none;}}}.layer-tree-node{.children .layer-item{padding-left:40px;}}.layer-item{border-radius:4px;}"],e=>e.theme.color_text_L2,e=>e.theme.color_text_L2,e=>e.theme.color_btn_secondary_hover);var jt=s(61790);class vn extends l.PureComponent{constructor(){super(...arguments),(0,B.A)(this,"handleSelect",t=>{t.preventDefault();const{type:n}=t.currentTarget.dataset;this.props.dispatch({type:"entry:select:items",payload:{cids:[n]}}),(0,Ot.m8)({operationType:Ot.VW.SelectLayers})}),(0,B.A)(this,"handleHover",t=>{t.stopPropagation();const{type:n}=t.currentTarget.dataset;this.props.dispatch(Le.GO.hoverItem(n))}),(0,B.A)(this,"handleLeave",()=>{this.props.dispatch(Le.GO.hoverItem(""))})}render(){const{newSelection:t,layerExpandedKeySet:n,noDivider:a=!1,layerTreeList:i}=this.props;return i.length===0?null:(0,o.jsxs)(l.Fragment,{children:[(0,o.jsx)(Oe.Dr,{text:I18N.ContextMenu.select_layer,isAiry:!0,children:(0,o.jsx)(Nt,{children:i.map(c=>(0,o.jsx)(Dt,{tree:c,newSelection:t,layerExpandedKeySet:n,onSelect:this.handleSelect,onHover:this.handleHover,onLeave:this.handleLeave},c.key))})}),!a&&(0,o.jsx)(_t.cG,{})]})}}const Dt=e=>{let{tree:t,newSelection:n,layerExpandedKeySet:a,onSelect:i,onHover:c,onLeave:d}=e;return(0,o.jsxs)("div",{className:"layer-tree-node",children:[(0,o.jsx)($t,{widget:t,isSelect:n.includes(t.key),layerExpandedKeySet:a,onClick:i,onMouseEnter:c,onMouseLeave:d}),(0,o.jsx)("div",{className:"children",children:t.sub.map(p=>(0,o.jsx)(Dt,{tree:sdkStore.getHotItem(p),newSelection:n,layerExpandedKeySet:a,onSelect:i,onHover:c,onLeave:d},p))})]})},$t=e=>{let{widget:t,isSelect:n,layerExpandedKeySet:a,onClick:i,onMouseEnter:c,onMouseLeave:d}=e;const{key:p,hotAttr:{basket:h,isLock:m}}=t,x=h==="bDanli",v=a.has(p),A=()=>(0,o.jsxs)(o.Fragment,{children:[m?(0,o.jsx)(xt.C,{className:"state-icon",name:"new_replace/lock"}):n?(0,o.jsx)(xt.C,{className:"state-icon widget-icon-selected",name:"toolbar/selected"}):null,(0,o.jsx)(An.A,{className:"widget-icon",widget:t,isDynamic:x,isExpanded:v})]}),k=(0,jt.KD)(t);return(0,o.jsx)(Oe.Dr,{dataIndex:p,dataType:p,className:"layer-item",icon:A(),text:k,onClick:i,onMouseEnter:c,onMouseLeave:d,isAiry:!0})},kn=(0,I.Mz)([tt.p$,rt.wJ,Ze],(e,t,n)=>({newSelection:e,layerExpandedKeySet:t,layerTreeList:n})),Kn=(0,r.Ng)(e=>kn(e))(vn);var dn=s(31569),ft=s(55052),Lt=s(87945),bn=s(57479);const Yn=M.Ay.div.withConfig({displayName:"styles__StyledBatchAddRowOrColumn",componentId:"sc-734udh-0"})(["display:flex;justify-content:center;align-items:center;padding:0px 16px;height:28px;justify-content:flex-start;cursor:pointer;.texts-0{padding-right:10px;}.texts-1{padding-left:10px;}.batch-input{width:36px;height:18px;padding:0 6px;color:",";border-radius:4px;border:1px solid ",";background:",";font-size:12px;font-weight:400;line-height:16px;&:hover{border:1px solid #1684FC;}&.is-editing{color:",";}}&:hover{background:",";}border-radius:4px;background:",";color:",";"],e=>e.theme.color_text_L2,e=>e.theme.color_bg_border_02,e=>e.theme.color_bg_menu,e=>e.theme.color_text_L1,e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_bg_white,e=>e.theme.color_text_L1),on=1,yn=99,lo=e=>{const t=e.replace(/[^\d.-]+/g,"");return e?Number(t)>yn?yn:+(t<on)?on:Number(t):0},qn=e=>{e.stopPropagation()};function Wn(e){let{text:t,operateFunc:n,onCloseContextMenu:a}=e;const[i,c]=l.useState(!1),[d,p]=l.useState(!1),[h,m]=l.useState(1),x=l.useRef(null),v=(0,l.useCallback)(ee=>{const{key:ce}=ee;ce===bn._.Enter&&(ee.preventDefault(),ee.stopPropagation(),n&&n(h||1),setTimeout(()=>a()))},[h,a,n]),A=(0,l.useCallback)(ee=>{qn(ee),n&&n(h||1)},[n,h]),k=(0,l.useCallback)(ee=>{qn(ee);const ce=he=>{p(!0),qn(he)},se=he=>{qn(he),document.removeEventListener("mousemove",ce),document.removeEventListener("mouseup",se),setTimeout(()=>p(!1),250)};document.addEventListener("mousemove",ce),document.addEventListener("mouseup",se)},[]),R=(0,l.useCallback)(()=>{x.current&&x.current.select(),c(!0)},[c,x]),F=(0,l.useCallback)(ee=>{const{target:{value:ce}}=ee;!i&&c(!0);const se=lo(ce);m(se)},[i,c,m]),[Z,G]=t.split(" %input ");return(0,o.jsxs)(Yn,{onMouseDown:A,onClick:d?qn:null,children:[(0,o.jsx)("span",{className:"texts-0",children:Z}),(0,o.jsx)("div",{onClick:qn,onMouseDown:k,children:(0,o.jsx)("input",{className:C()("batch-input",i&&"is-editing"),id:"table-batch-input",type:"text",value:h||"",ref:x,onChange:F,onFocus:R,onKeyDown:v})}),(0,o.jsx)("span",{className:"texts-1",children:G})]})}const Nn=(0,l.memo)(Wn);class xn extends l.PureComponent{constructor(t){var n;super(t),n=this,(0,B.A)(this,"copy",a=>{const{dispatch:i}=this.props;i({type:"entry:table:copy:selection"})}),(0,B.A)(this,"copyProperties",a=>{const{dispatch:i}=this.props;i({type:"entry:table:copy:cell:properties"})}),(0,B.A)(this,"copyInteraction",a=>{const{dispatch:i}=this.props;i(Vn.R7.command.interactionCopyTableCellCommand({})),(0,Ot.O3)({operation_from:"\u753B\u5E03\u53F3\u952E",operation_type:Ot.VW.CopyIta})}),(0,B.A)(this,"pasteInteraction",a=>{const{dispatch:i}=this.props;i(Vn.R7.command.pasteIta({targetInteractionKey:void 0,uiFrom:void 0}))}),(0,B.A)(this,"cut",()=>{const{dispatch:a}=this.props;a({type:"entry:table:cut:selection"})}),(0,B.A)(this,"paste",a=>{const{dispatch:i}=this.props;i({type:"entry:table:paste:selection"})}),(0,B.A)(this,"insertTopRow",function(a){a===void 0&&(a=1);const{dispatch:i}=n.props;i({type:"entry:insert:top:row",payload:{rowNumber:a}})}),(0,B.A)(this,"insertBottomRow",function(a){a===void 0&&(a=1);const{dispatch:i}=n.props;i({type:"entry:insert:bottom:row",payload:{rowNumber:a}})}),(0,B.A)(this,"deleteManyRows",()=>{const{dispatch:a}=this.props;a({type:"entry:table:delete:row"})}),(0,B.A)(this,"deleteRow",()=>{const{dispatch:a}=this.props;a({type:"entry:table:delete:row"})}),(0,B.A)(this,"deleteManyColumns",()=>{const{dispatch:a}=this.props;a({type:"entry:table:delete:column"})}),(0,B.A)(this,"deleteColumn",()=>{const{dispatch:a}=this.props;a({type:"entry:table:delete:column"})}),(0,B.A)(this,"insertLeftColumn",function(a){a===void 0&&(a=1);const{dispatch:i}=n.props;i({type:"entry:table:insert:left:column",payload:{columnNumber:a}})}),(0,B.A)(this,"insertRightColumn",function(a){a===void 0&&(a=1);const{dispatch:i}=n.props;i({type:"entry:table:insert:right:column",payload:{columnNumber:a}})}),(0,B.A)(this,"mergeCell",()=>{const{dispatch:a}=this.props;a({type:"entry:table:merge:cell"})}),(0,B.A)(this,"removeMerge",()=>{const{dispatch:a}=this.props;a({type:"entry:table:remove:merge:cell"})}),(0,B.A)(this,"pasteProperties",()=>{const{dispatch:a}=this.props;a({type:"entry:table:paste:cell:properties"})}),this.state={canPasteProperties:!1}}async componentDidMount(){const t=await(0,It._d)({isShowPrompt:!1});this.setState({canPasteProperties:t})}render(){const{selectedTableCell:t,dispatch:n,user:a,org:i,onClose:c}=this.props,{canPasteProperties:d}=this.state,{selectionLeftTopName:p,selectionLeftTopInfo:h,selectionRightBottomName:m,selectionRightBottomInfo:x,isCanRemoveMerge:v}=t,A=p!==m&&!v,k=A&&h.y!==x.y,R=A&&h.x!==x.x;return(0,o.jsxs)("div",{id:"tableMenu",children:[(0,o.jsx)(Oe.Dr,{text:I18N.ContextMenu.table_copy,onClick:this.copy,hotKeyText:sn.V.copy}),(0,o.jsx)(Oe.Dr,{text:I18N.ContextMenu.table_cut,onClick:this.cut,hotKeyText:sn.V.cut}),(0,o.jsx)(Oe.Dr,{text:I18N.ContextMenu.table_paste,onClick:this.paste,hotKeyText:sn.V.past}),(0,o.jsxs)(Oe.Dr,{text:I18N.ContextMenu.copy_paste_as,isAiry:!0,children:[(0,o.jsx)(Oe.Dr,{text:I18N.ContextMenu.copy_properties,onClick:this.copyProperties,hotKeyText:sn.V.copy}),(0,o.jsx)(Oe.Dr,{text:I18N.ContextMenu.paste_properties,onClick:this.pasteProperties,hotKeyText:sn.V.pasteProperties,disabled:!d}),(0,o.jsx)(_t.cG,{}),(0,o.jsx)(Oe.Dr,{text:I18N.Interaction.copy_ita,onClick:this.copyInteraction}),(0,o.jsx)(Oe.Dr,{text:I18N.Interaction.paste_ita,onClick:this.pasteInteraction})]}),(0,o.jsx)(_t.cG,{}),(0,o.jsx)(Nn,{text:I18N.ContextMenu.table_insert_top_row,operateFunc:this.insertTopRow,onCloseContextMenu:c}),(0,o.jsx)(Nn,{text:I18N.ContextMenu.table_insert_bottom_row,operateFunc:this.insertBottomRow,onCloseContextMenu:c}),k?(0,o.jsx)(Oe.Dr,{text:I18N.ContextMenu.table_delete_mul_row,onClick:this.deleteManyRows}):(0,o.jsx)(Oe.Dr,{text:I18N.ContextMenu.table_delete_row,onClick:this.deleteRow}),(0,o.jsx)(_t.cG,{}),(0,o.jsx)(Nn,{text:I18N.ContextMenu.table_insert_left_column,operateFunc:this.insertLeftColumn,onCloseContextMenu:c}),(0,o.jsx)(Nn,{text:I18N.ContextMenu.table_insert_right_column,operateFunc:this.insertRightColumn,onCloseContextMenu:c}),R?(0,o.jsx)(Oe.Dr,{text:I18N.ContextMenu.table_delete_mul_columns,onClick:this.deleteManyColumns}):(0,o.jsx)(Oe.Dr,{text:I18N.ContextMenu.table_delete_columns,onClick:this.deleteColumn}),A&&(0,o.jsxs)(l.Fragment,{children:[(0,o.jsx)(_t.cG,{}),(0,o.jsx)(Oe.Dr,{text:I18N.ContextMenu.table_merge_title,onClick:this.mergeCell})]}),v&&(0,o.jsxs)(l.Fragment,{children:[(0,o.jsx)(_t.cG,{}),(0,o.jsx)(Oe.Dr,{text:I18N.ContextMenu.table_unmerge_cell,onClick:this.removeMerge})]}),(0,o.jsx)(_t.cG,{}),(0,o.jsx)(nn.fc,{from:Lt.G.RightClick,dispatch:n,user:a,org:i})]})}}var Ye=s(34697);class wn extends l.PureComponent{constructor(){super(...arguments),(0,B.A)(this,"handleCopy",()=>{const{dispatch:t}=this.props;t({type:"entry:mind:copy:selected:node-mind"})}),(0,B.A)(this,"handleCut",()=>this.props.dispatch({type:"entry:mind:cut:node"})),(0,B.A)(this,"handlePaste",()=>this.props.dispatch({type:"entry:paste:items:into:current-page",payload:{triggerType:"contextmenu"}})),(0,B.A)(this,"handlePasteProperties",()=>{const{dispatch:t}=this.props;t({type:"entry:mind:paste:node:properties"})}),(0,B.A)(this,"handleDelete",()=>{const{dispatch:t}=this.props;t({type:"entry:mind:del:selected:node-mind"})}),(0,B.A)(this,"handleInsertSubTheme",()=>{const{dispatch:t}=this.props;t({type:"entry:mind:add:node-mind",payload:{type:Ye.eB.CHILD_LEVEL}})}),(0,B.A)(this,"handleInsertPeerTheme",()=>{const{dispatch:t}=this.props;t({type:"entry:mind:add:node-mind",payload:{type:Ye.eB.SAME_LEVEL}})})}render(){const{canPasteProperties:t,selectedMindNodeKeys:n}=this.props,a=n.length===1,i=n.map(sdkStore.getHotItem);return(0,o.jsxs)("div",{id:"mind-node-menu",children:[(0,o.jsx)(Oe.Dr,{text:a?I18N.ContextMenu.copy+"/"+I18N.ContextMenu.copy_properties:""+I18N.ContextMenu.copy,onClick:this.handleCopy,hotKeyText:sn.V.copy}),(0,o.jsx)(Oe.Dr,{text:I18N.ContextMenu.cut,onClick:this.handleCut,hotKeyText:sn.V.cut,disabled:i[0].hotAttr.isRoot}),(0,o.jsx)(Oe.Dr,{text:I18N.ContextMenu.table_paste,onClick:this.handlePaste,hotKeyText:sn.V.past}),(0,o.jsx)(Oe.Dr,{text:I18N.ContextMenu.paste_properties,onClick:this.handlePasteProperties,hotKeyText:sn.V.pasteProperties,disabled:!t}),(0,o.jsx)(Oe.Dr,{text:I18N.ContextMenu.delete,onClick:this.handleDelete,disabled:i[0].hotAttr.isRoot}),a&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(_t.cG,{}),(0,o.jsx)(Oe.Dr,{text:I18N.ContextMenu.insertSubTheme,onClick:this.handleInsertSubTheme,hotKeyText:sn.V.insertSubTheme}),(0,o.jsx)(Oe.Dr,{text:I18N.ContextMenu.insertPeerTheme,onClick:this.handleInsertPeerTheme,hotKeyText:sn.V.insertPeerTheme,disabled:i[0].hotAttr.isRoot})]})]})}}var Hn=s(6357),zn=s(12410),ko=s(43838),On=s(43641);class Mo extends l.PureComponent{constructor(t){super(t),(0,B.A)(this,"copy",n=>{const{dispatch:a}=this.props;a({type:"entry:flow:copy:cell:self",payload:{isOnlyPasteText:!1}}),(0,On.$)(It.o)}),(0,B.A)(this,"cut",()=>{const{dispatch:n}=this.props;n({type:"entry:flow:cut:cell:self"})}),(0,B.A)(this,"paste",async n=>{const{dispatch:a}=this.props,{type:i,content:c}=await(0,ko.v)();if(await(0,ko.$H)({hasNotice:!1}))a({type:zn.X.entryKey["entry:flow:swimlane:paste"],payload:{pasteType:i,content:c}});else{const d={pasteType:i,content:c};i==="html"&&await(0,ko.EU)("swimlane")&&(d.pasteType="cell"),a({type:zn.X.entryKey["entry:flow:swimlane:paste"],payload:d})}}),(0,B.A)(this,"insertTopRow",()=>{const{dispatch:n}=this.props;n({type:zn.X.entryKey["entry:flow:contextMenu:col:add-del"],payload:{changeType:"add",handleType:"bottom",opDirection:"top"}})}),(0,B.A)(this,"insertBottomRow",()=>{const{dispatch:n}=this.props;n({type:zn.X.entryKey["entry:flow:contextMenu:col:add-del"],payload:{changeType:"add",handleType:"bottom",opDirection:"bottom"}})}),(0,B.A)(this,"deleteRow",()=>{const{dispatch:n}=this.props;n({type:zn.X.entryKey["entry:flow:contextMenu:col:add-del"],payload:{changeType:"del",handleType:"bottom",opDirection:"top"}})}),(0,B.A)(this,"deleteColumn",()=>{const{dispatch:n}=this.props;n({type:zn.X.entryKey["entry:flow:contextMenu:col:add-del"],payload:{changeType:"del",handleType:"right",opDirection:"left"}})}),(0,B.A)(this,"insertRightColumn",()=>{const{dispatch:n}=this.props;n({type:zn.X.entryKey["entry:flow:contextMenu:col:add-del"],payload:{changeType:"add",handleType:"right",opDirection:"right"}})}),(0,B.A)(this,"insertLeftColumn",()=>{const{dispatch:n}=this.props;n({type:zn.X.entryKey["entry:flow:contextMenu:col:add-del"],payload:{changeType:"add",handleType:"right",opDirection:"left"}})}),(0,B.A)(this,"pasteProperties",()=>{const{dispatch:n}=this.props;n({type:zn.X.entryKey["entry:flow:paste:cell:properties"]})}),this.state={canPasteProperties:!1}}async componentDidMount(){const t=await(0,It._d)({isShowPrompt:!1});this.setState({canPasteProperties:!!t})}render(){const{canPasteProperties:t}=this.state,{swimlaneSelectedCellsInfo:{tl:{x:n,y:a}}}=this.props,i=this.props.selectedItems[0].swimlaneType,c=n===0&&a===0;return(0,o.jsxs)("div",{id:"swimlaneMenu",children:[(0,o.jsx)(Oe.Dr,{text:I18N.ContextMenu.table_copy,onClick:this.copy,hotKeyText:sn.V.copy}),(0,o.jsx)(Oe.Dr,{text:I18N.ContextMenu.table_cut,onClick:this.cut,hotKeyText:sn.V.cut}),(0,o.jsx)(Oe.Dr,{text:I18N.ContextMenu.table_paste,onClick:this.paste,hotKeyText:sn.V.past}),(0,o.jsxs)(Oe.Dr,{text:I18N.ContextMenu.copy_paste_as,isAiry:!0,children:[(0,o.jsx)(Oe.Dr,{text:""+I18N.ContextMenu.copy_properties,onClick:this.copy,hotKeyText:sn.V.copy}),(0,o.jsx)(Oe.Dr,{text:I18N.ContextMenu.paste_properties,onClick:this.pasteProperties,hotKeyText:sn.V.pasteProperties,disabled:!t})]}),(0,o.jsx)(_t.cG,{}),i==="leftRight"?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(Oe.Dr,{text:I18N.ContextMenu.flowInsertLeftColumn,onClick:this.insertLeftColumn}),(0,o.jsx)(Oe.Dr,{text:I18N.ContextMenu.flowInsertRightColumn,onClick:this.insertRightColumn}),(0,o.jsx)(Oe.Dr,{text:I18N.ContextMenu.flowDeleteColumn,onClick:this.deleteColumn,disabled:c})]}):(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(Oe.Dr,{text:I18N.ContextMenu.flowInsertTopRow,onClick:this.insertTopRow}),(0,o.jsx)(Oe.Dr,{text:I18N.ContextMenu.flowInsertBottomRow,onClick:this.insertBottomRow}),(0,o.jsx)(Oe.Dr,{text:I18N.ContextMenu.flowDeleteColumn,onClick:this.deleteRow,disabled:c})]})]})}}var jn=s(83535);const xo=e=>{let{user:t,org:n,onClose:a}=e;const i=(0,r.wA)(),c=(0,r.d4)(De.nH),d=(0,r.d4)(De.zX),p=(0,l.useCallback)(()=>{const{isHorizontal:xe}=c;i(xe?{type:"entry:table:delete:column"}:{type:"entry:table:delete:row"})},[c,i]),h=(0,l.useCallback)(()=>{i({type:"entry:table:merge:cell"})},[i]),m=(0,l.useCallback)(function(xe){xe===void 0&&(xe=1),i({type:"entry:insert:top:row",payload:{rowNumber:xe}})},[i]),x=(0,l.useCallback)(function(xe){xe===void 0&&(xe=1),i({type:"entry:insert:bottom:row",payload:{rowNumber:xe}})},[i]),v=(0,l.useCallback)(function(xe){xe===void 0&&(xe=1),i({type:"entry:table:insert:left:column",payload:{columnNumber:xe}})},[i]),A=(0,l.useCallback)(function(xe){xe===void 0&&(xe=1),i({type:"entry:table:insert:right:column",payload:{columnNumber:xe}})},[i]),k=(0,l.useCallback)(()=>{i({type:"entry:table:remove:merge:cell"})},[i]);if(!c||!d)return null;const{selectionLeftTopName:R,selectionLeftTopInfo:F,selectionRightBottomName:Z,selectionRightBottomInfo:G,isCanRemoveMerge:ee}=d,ce=R!==Z&&!ee,se=ce&&F.y!==G.y,he=ce&&F.x!==G.x,{isHorizontal:ve}=c,Te=ve?he?I18N.ContextMenu.table_delete_mul_columns:I18N.ContextMenu.table_delete_columns:se?I18N.ContextMenu.table_delete_mul_row:I18N.ContextMenu.table_delete_row;return(0,o.jsxs)("div",{children:[ve?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(Nn,{text:I18N.ContextMenu.table_insert_left_column,operateFunc:v,onCloseContextMenu:a}),(0,o.jsx)(Nn,{text:I18N.ContextMenu.table_insert_right_column,operateFunc:A,onCloseContextMenu:a})]}):(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(Nn,{text:I18N.ContextMenu.table_insert_top_row,operateFunc:m,onCloseContextMenu:a}),(0,o.jsx)(Nn,{text:I18N.ContextMenu.table_insert_bottom_row,operateFunc:x,onCloseContextMenu:a})]}),(0,o.jsx)(Oe.Dr,{text:Te,onClick:p}),(0,o.jsx)(_t.cG,{}),ce&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(Oe.Dr,{text:I18N.ContextMenu.table_merge_title,onClick:h}),(0,o.jsx)(_t.cG,{})]}),ee&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(Oe.Dr,{text:I18N.ContextMenu.table_unmerge_cell,onClick:k}),(0,o.jsx)(_t.cG,{})]}),(0,o.jsx)(nn.fc,{from:Lt.G.RightClick,user:t,org:n,dispatch:i})]})},jo=(0,l.memo)(xo);var Qo=s(86433),cn=s(69815),In=s(55584),tn=s(44916);const Jt=l.memo(e=>{let{editingItem:t,canPaste:n}=e;const a=async(A,k)=>{await(0,ko.$H)({hasNotice:!1})?(await(0,It.NO)({html:A}),(0,ko.Rh)({value:k})):await(0,ko.qG)({html:A,selectionText:k})},i=async()=>{let A;const k=await(0,It.LD)({isShowPrompt:!0});return await(0,ko.$H)({hasNotice:!1})?A=k!=null&&k.html?k.html:void 0:A=(k==null?void 0:k.html)||!(k!=null&&k.data)&&await(0,ko.Xy)()||await(0,ko.oV)({itemType:"text/plain"}),A},c=A=>{const{_getEditorState:k}=(0,cn.DT)(),R=k(),F=(0,Qo.u0)(R),Z=t.type==="wRichText"?t.w:void 0,G=t.type==="wRichText"?t.h:void 0,ee=(0,In.vd)({editorState:R,richTextV1:t.richTextV1,w:Z,h:G});a(ee,F)},d=A=>{const k=t.type==="wRichText"?t.w:void 0,R=t.type==="wRichText"?t.h:void 0,{_getEditorState:F}=(0,cn.DT)(),Z=F(),G=(0,Qo.u0)(Z),ee=(0,In.ag)({richTextV1:t.richTextV1,w:k,h:R});a(ee,G)},p=async A=>{const k=await i(),{_getEditorState:R,_setEditorState:F}=(0,cn.DT)();if(R&&F){const Z=R(),G=(0,In.DL)({html:k,editorState:Z,inlineProcessType:"total",componentType:t.type==="wRichText"?tn.a.TEXT:tn.a.BASIC});F(G)}},h=async A=>{const k=await i(),{_getEditorState:R,_setEditorState:F}=(0,cn.DT)();if(R&&F){const Z=R(),G=(0,In.DL)({html:k,editorState:Z,inlineProcessType:"merge",componentType:t.type==="wRichText"?tn.a.TEXT:tn.a.BASIC});F(G)}},m=async A=>{const k=await i(),{_getEditorState:R,_setEditorState:F}=(0,cn.DT)();if(R&&F){const Z=R(),G=(0,In.DL)({html:k,editorState:Z,inlineProcessType:"plain",componentType:t.type==="wRichText"?tn.a.TEXT:tn.a.BASIC});F(G)}},{_getEditorState:x}=(0,cn.DT)();let v=!1;return x&&(v=x().getSelection().isCollapsed()),(0,o.jsxs)("div",{id:"textediting-menu",children:[(0,o.jsx)(Oe.Dr,{text:I18N.ContextMenu.copy,onClick:c,disabled:v,hotKeyText:sn.V.copy}),(0,o.jsx)(Oe.Dr,{text:I18N.ContextMenu.cut,onClick:d,disabled:v,hotKeyText:sn.V.cut}),(0,o.jsx)(Oe.Dr,{text:I18N.ContextMenu.paste,onClick:h,hotKeyText:sn.V.past,disabled:!n}),(0,o.jsx)(Oe.Dr,{text:"\u4FDD\u7559\u539F\u683C\u5F0F\u7C98\u8D34",onClick:p,disabled:!n}),(0,o.jsx)(Oe.Dr,{text:"\u4EE5\u7EAF\u6587\u672C\u683C\u5F0F\u7C98\u8D34",onClick:m,disabled:!n})]})});var Ln=s(8580),Xn=s(73658);class Dn extends l.PureComponent{constructor(){super(...arguments),(0,B.A)(this,"handleCreatePage",()=>{const{dispatch:t}=this.props;t(Le.GO.updateAIHTMLAgentType("prototyping")),t(Le.GO.enableAIHTML()),t(Le.GO.expandAIHTML()),MB.commonGuideHelper.hideAllGuides()}),(0,B.A)(this,"handleCreateComponent",()=>{const{dispatch:t}=this.props;t({type:"entry:aiComponent:open:mode"})})}render(){return(0,o.jsxs)(Oe.Dr,{text:I18N.ContextMenu.ai,isAiry:!0,children:[(0,o.jsx)(Oe.Dr,{text:I18N.ChatGPT.ai_prototype_component_title,onClick:this.handleCreatePage}),(0,o.jsx)(Oe.Dr,{text:I18N.ContextMenu.ai_create_widget,onClick:this.handleCreateComponent})]})}}class go extends l.PureComponent{constructor(){super(...arguments),(0,B.A)(this,"handleClose",()=>{const{isShowTableMenu:t,isShowMindNodeMenu:n,isShowTableDragMenu:a,dispatch:i}=this.props;i({type:"close:contextmenu"}),t&&i({type:"table:update:info",payload:{isShowTableMenu:!1}}),n&&i({type:"mind:update:state",payload:{isShowMindNodeMenu:!1}}),a&&i({type:"table:update:info",payload:{isShowTableDragMenu:!1,rightClickDragInfo:null}})}),(0,B.A)(this,"getIsShowAddToMyWidgetOrAsset",(t,n)=>{const{canEditLibrary:a,isMeDesign:i,isEditingOrgCombo:c,isEditingUserCombo:d}=this.props;return(t||n)&&!(d&&!n&&!(a&&!i&&!c))})}render(){var t;const{isMeDesign:n,isProject:a,position:i,isComponentItemContext:c,isCanvasLayerItemContext:d,dispatch:p,isShowTableMenu:h,isShowSwimlaneMenu:m,swimlaneSelectedCellsInfo:x,selectedTableCell:v,currentSharings:A,currentProject:k,editingPanelCid:R,isSelectItemsInMuban:F,isEditingBasket:Z,isEditingMuban:G,isEditingUserCombo:ee,isEditingOrgCombo:ce,editingPanelRefPage:se,isShowMindNodeMenu:he,selectedMindNodeKeys:ve,isFromAbar:Te,viewType:xe,currentUser:Fe,currentOrg:et,canEditLibrary:Ke,isShowTableDragMenu:Qe,newSelection:nt,editingItem:Xe,canPaste:lt,canPasteProperties:Ct}=this.props,St=nt.filter(ol=>ol).map(ol=>(0,Ln.Op)(ol)),hn=St.length!==0,Cn=hn&&St.every(ol=>{var vs;return((vs=ol.hotAttr)==null?void 0:vs.type)===$.x.Canvas&&!ol.hotAttr.asOverlay}),Mt=hn&&St.every(ol=>{var vs;return(0,Xn.yT)((vs=ol.hotAttr)==null?void 0:vs.type)}),Co=hn&&!Cn&&!Mt,Pn=c?Ot._Y.LayersList:d?Ot._Y.PageList:Ot._Y.CanvasRight,ro=(0,bt.ju)(St)&&(!ee||!n&&!ce),Io=(a||Z||G)&&(0,bt.jp)(St)&&!ee,mo=(0,bt.mO)(St),So=!!(0,dn.i)(St,"isLock"),ho=!!(0,dn.i)(St,"isVisible"),No=(0,dn.i)(St,"fixPosTo"),Xo=(0,bt.kE)(nt),Ta=(0,bt.P6)(nt),Da=(0,bt.sQ)(nt),xr=(0,bt.K4)(nt),Wa=(0,bt.ue)(nt),Dr=(0,bt.KF)(nt),Wr=(0,bt.h1)(nt)||F,hi=(0,bt.s5)(St),Sr=(0,bt._A)(nt),oi=St.every(ol=>{var vs;return ol.type===$.x.WImage&&!!((vs=ol.image)!=null&&vs.imageRef)}),js=(0,bt.zQ)(St),Ri=(0,ft.Dt)(St),li=(0,ft.yS)(St),fi=(0,bt.WP)(St),bi=(0,bt.XV)(St),ls=(0,bt.MP)(St),Pi=(0,bt.zi)(St),es=(0,dn.i)(St,"type"),qs=St.length===1&&es===$.x.Canvas,Us=St.length===1&&(0,jn.mV)(es,(0,dn.i)(St,"interactions")).length>0,pc=St.every(ol=>ol.type!==$.x.WCode),Yl=St.length===1&&Co,xs=hn&&bi&&!Mt&&(!ENV.IS_ON_PREMISES||ENV.IS_ON_PREMISES&&ENV.OP2_V8AI2511),wl=St.some(ol=>ol.type!==$.x.WCode),nl=St.length===1&&es===$.x.WCode;if(xe===Le.qi.OnlyView)return(0,o.jsx)(Hn.nU,{position:i,onClose:this.handleClose,children:!c&&(0,o.jsx)(Kn,{noDivider:!0})});let _a;if(qs?_a=sdkStore.getHotItem(St[0].cid):_a=void 0,Qe)return(0,o.jsx)(Hn.nU,{position:i,onClose:this.handleClose,children:(0,o.jsx)(jo,{onClose:this.handleClose,user:Fe,org:et})});if(h&&v)return(0,o.jsx)(Hn.nU,{position:i,onClose:this.handleClose,children:(0,o.jsx)(xn,{selectedTableCell:v,dispatch:p,user:Fe,org:et,onClose:this.handleClose})});if(Xe!=null&&(t=Xe.hotAttr)!=null&&t.textV1)return(0,o.jsx)(Hn.nU,{position:i,onClose:this.handleClose,children:(0,o.jsx)(Jt,{editingItem:Xe.hotAttr,canPaste:lt})});if(m&&hn)return(0,o.jsx)(Hn.nU,{position:i,onClose:this.handleClose,children:(0,o.jsx)(Mo,{dispatch:p,selectedItems:St,swimlaneSelectedCellsInfo:x})});if(he&&ve!=null&&ve.length)return(0,o.jsx)(Hn.nU,{position:i,onClose:this.handleClose,children:(0,o.jsx)(wn,{selectedMindNodeKeys:ve,dispatch:p,canPasteProperties:Ct})});const hl=!Mt&&!Pi&&(nt.length===1?!(0,bt.Wi)(nt[0]):!0)&&Sr;return(0,o.jsxs)(Hn.nU,{position:i,onClose:this.handleClose,children:[!c&&(0,o.jsx)(Kn,{}),hn&&!Mt&&(0,o.jsxs)(o.Fragment,{children:[d?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(nn.F0,{disabled:!(0,bt.Ly)(St),dispatch:p,from:Pn}),(0,o.jsx)(nn.YR,{disabled:!(0,bt.Qc)(St),dispatch:p,from:Pn})]}):(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(nn.Am,{disabled:!Da,dispatch:p,from:Pn}),(0,o.jsx)(nn.cz,{disabled:!Da,dispatch:p,from:Pn})]}),ls&&!Mt&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(nn.YJ,{disabled:!Xo,dispatch:p,from:Pn}),(0,o.jsx)(nn.Xr,{disabled:!Ta,dispatch:p,from:Pn})]}),(0,o.jsx)(_t.cG,{}),ls&&!Mt&&c&&(0,o.jsx)(nn.yX,{dispatch:p})]}),hn&&(0,o.jsx)(nn.QR,{dispatch:p,from:Pn}),hn&&(0,o.jsx)(nn.lD,{disabled:!!R||F,dispatch:p,from:Pn}),!d&&(0,o.jsxs)(o.Fragment,{children:[!c&&(0,o.jsx)(nn.sg,{disabled:!lt,dispatch:p,from:Pn}),!c&&(0,o.jsx)(nn.do,{disabled:!lt,position:i,dispatch:p,from:Pn})]}),!c&&!d&&!hn&&(0,o.jsx)(o.Fragment,{children:(0,o.jsx)(nn.fc,{dispatch:p,from:Lt.G.EmptyRightClick,user:Fe,org:et})}),!c&&!d&&!hn&&!ENV.IS_ON_PREMISES&&!G&&!ce&&!ee&&!Z&&(0,o.jsx)(Dn,{dispatch:p}),hn&&!Mt&&(0,o.jsx)(Gn,{showCopyOrPasteProperties:Co,canPasteProperties:Ct,canCopyInteraction:Us,canPasteInteraction:pc,canCopyProerties:Yl,canCopyAsPNG:wl,canCopyAsHTML:nl,isCanvasLayerItemContext:d,currentProject:k,dispatch:p,from:Pn}),hn&&(0,o.jsx)(o.Fragment,{children:(0,o.jsx)(nn.ep,{disabled:F,dispatch:p,from:Pn})}),hn&&(0,o.jsx)(_t.cG,{}),hn&&li&&(0,o.jsxs)(o.Fragment,{children:[Ri&&(0,o.jsx)(nn.Kf,{dispatch:p}),(0,o.jsx)(nn.xx,{dispatch:p}),(0,o.jsx)(_t.cG,{})]}),hn&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(nn.c_,{isLocked:So,dispatch:p,from:Pn}),!Mt&&(0,o.jsx)(nn.Ld,{isLocked:!1,isVisible:ho,disabled:!js,dispatch:p,from:Pn}),hl&&(0,o.jsx)(Yt,{fixPosTo:No,dispatch:p,from:Pn,selections:nt})]}),hn&&!Mt&&(0,o.jsxs)(o.Fragment,{children:[(ro||oi||Io||mo)&&(0,o.jsx)(_t.cG,{}),this.getIsShowAddToMyWidgetOrAsset(ro,oi)&&(0,o.jsx)(nn.Qq,{canCreateCombo:ro,canCreateAsset:oi,canEditLibrary:Ke,canAddToMyOrOrgAsset:fi,isMeDesign:n,isEditingUserCombo:ee,isEditingOrgCombo:ce,from:Pn,dispatch:p,disabled:F}),Io&&(0,o.jsx)(nn.fs,{selectedItems:St,isEditingBasket:Z,dispatch:p,from:Pn,disabled:F}),mo&&(0,o.jsx)(nn.ZE,{selectedItems:St,isEditingBasket:Z,dispatch:p,from:Pn,disabled:F})]}),qs&&!R&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(_t.cG,{}),(0,o.jsx)(nn.av,{dispatch:p,canvas:_a,currentProject:k,currentSharings:A,from:Pn,isFromAbar:Te})]}),qs&&(0,o.jsx)(nn.ns,{dispatch:p,from:Pn}),xs&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(_t.cG,{}),(0,o.jsx)(nn.fc,{dispatch:p,from:Pn,user:Fe,org:et})]}),!So&&(0,o.jsxs)(o.Fragment,{children:[hn&&(hi||xr||Wa||Dr||Dr||Wr)&&(0,o.jsx)(_t.cG,{}),hi&&(0,o.jsx)(nn.qv,{dispatch:p,disabled:F}),xr&&(0,o.jsx)(nn.OD,{dispatch:p}),Wa&&(0,o.jsx)(nn.af,{dispatch:p,widget:St[0]}),Dr&&(0,o.jsx)(nn.u2,{dispatch:p,widget:St[0]}),Wr&&(0,o.jsx)(nn.Om,{dispatch:p,selectItems:St})]})]})}}var Uo=s(20119);const Ho=(0,I.Mz)([Me.r,an,je,we,ot,De.zX,De.Xf,me.wA,me.HW,me.qv,me.lw,me.PL,q.jI,Se.j,q.bt,zn.X.query.getIsShallowEditing,zn.X.query.getSelectedCellsInfo,ne.jZ,ne.ul,me.fv,q.jx,De.bC,tt.p$,Uo.c,$e,ge],(e,t,n,a,i,c,d,p,h,m,x,v,A,k,R,F,Z,G,ee,ce,se,he,ve,Te,xe,Fe)=>{let{isEditingProjectMain:et,isEditingBasket:Ke,isEditingMuban:Qe,isEditingCombo:nt,isEditingUserCombo:Xe,isEditingOrgCombo:lt}=e,{isFromAbar:Ct}=ce;return{show:t,isShowTableMenu:d,isShowSwimlaneMenu:F,isShowMindNodeMenu:G,selectedMindNodeKeys:ee,selectedTableCell:c,isProject:et,position:n,showStateRelatedMenu:!1,isComponentItemContext:a,isCanvasLayerItemContext:i,isMeDesign:!p,currentSharings:x,currentProject:v,editingPanelCid:A,isEditingBasket:Ke,isEditingMuban:Qe,isEditingCombo:nt,isEditingUserCombo:Xe,isEditingOrgCombo:lt,isSelectItemsInMuban:k,editingPanelRefPage:R,swimlaneSelectedCellsInfo:Z,isFromAbar:Ct,viewType:se,currentOrg:p,currentUser:h,canEditLibrary:m,isShowTableDragMenu:he,newSelection:ve,editingItem:Te,canPaste:xe,canPasteProperties:Fe}}),ua=e=>{let{show:t,position:n,...a}=e;return t&&(0,o.jsx)(go,{position:n,...a},String(n.top)+String(n.left))},la=(0,r.Ng)(e=>Ho(e))(ua);var To=s(86964),Ia=s(25582),ya=s.n(Ia),eo=s(27992),Oo=s(79371),so=s.n(Oo),to=s(63986),Vo=s.n(to),ta=s(51582),Qa=s(93446),qr=s(5352),kr=s(63938);const Mr=M.Ay.div.withConfig({displayName:"styles__StyledHelpCenter",componentId:"sc-179lhd2-0"})(["z-index:",";display:flex;flex-direction:column;width:","px;height:606px;position:fixed;border:1px solid rgba(0,0,0,0.12);box-shadow:0 8px 24px -12px rgba(42,6,70,0.24);border-radius:16px;color:#333333;overflow:hidden;background-color:#fff;&.is-home{background-image:url(data:image/png;base64,",');background-size:auto 800px;background-repeat:no-repeat;background-position:center;.hc-header{border:none;}}&.is-not-dragged{transform:translate(-50%,-50%);}.hc-header{display:flex;justify-content:space-between;align-items:center;padding:18px 20px;border-bottom:1px solid rgb(230,230,230);cursor:move;.hc-header-left{display:flex;align-items:center;.svg-icon{width:24px;height:24px;margin-right:12px;cursor:pointer;}.hc-header-title{font-weight:500;font-size:18px;line-height:20px;}.hc-hits{font-size:14px;line-height:24px;color:#666;margin-left:12px;}}.hc-header-right{display:flex;align-items:center;.hc-close-btn{width:24px;height:24px;color:#666;cursor:pointer;border-radius:6px;&:hover{background-color:#F2F2F2;color:#333;}&:active{background-color:#E5E5E5;color:#333;}}}}.topic-wrap{width:100%;font-size:14px;line-height:16px;padding:0 20px;& > p{font-weight:600;margin:6px 0 20px;}& > ul{display:flex;flex-wrap:wrap;padding-left:20px;margin:20px 0 32px;li{list-style:none;flex:0 0 33%;span{cursor:pointer;&::before{content:"";position:relative;display:inline-block;width:4px;height:4px;border-radius:50%;background:#333;margin:4px 8px;}&:hover{color:#1684fc;&::before{background:#1684fc;}}}}li:nth-child(n+4){margin:16px 0 0 0;}}}.topic-by-category{.category-title{display:flex;align-items:center;padding:0 28px;font-weight:500;font-size:18px;line-height:18px;.product-icon{width:30px;margin:0 12px 0 0;}}.link-list{height:320px;margin:12px 0 0 0;padding:0 28px 0 8px;& > li{display:flex;align-items:center;padding:0 20px;height:40px;cursor:pointer;.svg-icon{width:24px;margin:0 8px 0 0;flex-shrink:0;&.get-more-icon > *{fill:none;}&.link-icon{& path:nth-child(1){fill:none;}& path:nth-child(2){fill:#333;}}}span{font-size:16px;line-height:16px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;}&.is-active{background:#f5f5f5;border-radius:8px;}}}}.hc-search{height:486px;display:flex;position:relative;.search-match-container{background-color:#f7f7f7;overflow-y:auto;overscroll-behavior:contain;-ms-scroll-chaining:contain;padding:20px 28px 0;width:292px;flex-shrink:0;border-right:1px solid #e6e6e6;&::-webkit-scrollbar{width:12px;}&::-webkit-scrollbar-track{background:transparent;}&::-webkit-scrollbar-thumb{background-color:#fff;border-radius:6px;border:3px solid #f7f7f7;}}.loading-result,.no-matched-result{height:100%;min-height:204px;display:flex;align-items:center;justify-content:center;flex-direction:column;& > p{font-size:14px;line-height:28px;color:#666;}& > div{color:#1684fc;}}.search-match-box{.list-title{font-size:12px;line-height:12px;color:#999;margin:0 0 8px 16px;}.result-list{& > li{padding:10px 16px;font-size:14px;line-height:14px;cursor:pointer;color:#333;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;&.selected{color:#fff;background:#1684FC;border-radius:8px;}.result-divider{margin:0 4px;color:#ddd;}}&.customized{& > li{padding:13px 16px;&.selected{font-weight:600;}}.result-all{display:flex;justify-content:space-between;.counts{font-size:12px;line-height:12px;color:#999;font-weight:normal !important;}}}}&:nth-child(n + 2){margin:16px 0 0 0;}}.category-list-bg-mask{position:fixed;display:none;width:',"px;height:604px;margin-top:-73px;border-radius:16px;background:#000000;opacity:0.4;}.category-list{position:absolute;width:310px;height:606px;margin-left:-310px;margin-top:-73px;background-color:#f7f7f7;transition:margin-left 0.3s ease 0s;.category-title{display:flex;align-items:center;justify-content:space-between;height:46px;line-height:46px;padding:0 16px 0 40px;border-bottom:1px solid rgba(0,0,0,0.12);span{color:#333;font-size:14px;}.svg-icon{cursor:pointer;width:15px;height:15px;}}.category-catalog{height:560px;overflow-y:auto;overscroll-behavior:contain;-ms-scroll-chaining:contain;&::-webkit-scrollbar{display:none;}.article-catalog-box{.meaningless-title{padding:16px 44px 8px;margin:0;font-size:12px;line-height:12px;color:rgba(102,102,102,0.8);}.article-title-list{margin:0 0 4px 0;& > li{padding:16px 10px 16px 60px;cursor:pointer;span{color:#555;font-size:14px;line-height:14px;}&.active-title{background:#1684fc;span{color:#fff;}}&:not(.active-title):hover{background:#fff;}}}}}}&.show-category{.category-list-bg-mask{display:flex;}.category-list{margin-left:0;}}}.bottom-description{width:100%;height:48px;background:#f7f7f7;border-top:1px solid rgb(230,230,230);border-bottom-right-radius:16px;border-bottom-left-radius:16px;.svg-icon{width:20px;height:20px;}.desc-cont{display:flex;height:100%;padding:0 36px;justify-content:space-between;font-size:12px;line-height:12px;color:#333;.desc-part{display:flex;.to-hc-page{cursor:pointer;}.svg-open-hc-page > *,.svg-triangle > *{fill:none;}> div{display:flex;align-items:center;.margin-r-4{margin-right:4px;}.margin-r-6{margin-right:6px;}.margin-r-8{margin-right:8px;}}div:nth-child(2){margin-left:20px;}}.svg-rotate{transform:rotate(180deg);}}}"],e=>e.zIndex,e=>e.width,"iVBORw0KGgoAAAANSUhEUgAABLAAAAOHCAMAAAAAJ0pmAAAAOVBMVEX////+/P349Pn89ff28/z9+vv99/f69vz6+fz/+/r7+v7w8Pv/9O/+8evN3vr42drq7fn74+LW5fuQQ4LaAADRFklEQVR42uyb3ZLTMAxGqRrHBnOx7/+0UAvlVHyIlLAwXCA7tiz/ZGHYM5JiPtyfZL//Idlbq882r0u1u0WzKtNLNVuPL4zdtt9ut2bmo3cS2/3MdxV7aVGIDw1pt4c0nzyWWCV33+DrHkOWovbbkm6VDD8CQW63Ucxw3K/P8lPZJenfZBiCbGpQm+7aYutmo91uvW/2tfyXvy8f7vtRnFgYypLkcyhqQZ6Bted15o8L5Aqj94iTKm95/GLud/PJ96n+2+7a+9Wz+Qws8yGGg1hAR4ElG2K1PwqkJeMasfolJo1yOsN5XETW/Wt5gOunDKLdxI7uj7db8K23WwNZa7auV8nGLsTPoilk+vPS/NSJf1qegfX5BFiASBClrTHrLlaXHYDHoJULDpbrEMpwuXC6bg4Xn7zi2CC8pb2njwWYz5c4YGL47G45sXrARwXC8RfTDu8qTv4RsX7KjvarxAIWF6YhVjPbcplQxOsqjL3pfUGrd6cNDRhxkAjEVFeoPWDRb7c2XmaRree8bNO74BF/RK8uoYe9lLlq7hKR3I5qrnlllPf6ptWie82FDgvKlbLNBSycq3tzjUpFcHGwGATKU5/dtO8SFK4dhkflI3MIPTpX3JyYtrqwHr+Ye0wyn7STkgd3J9ZwBlwu6cj6JJbAlETukIDLWqwBXtj8rNgw0koOfBdi2e8Qa6uK/1iN9xKaCUQQbPf+kEd7DiQd4lcx5M2Bur7+fWwGi7RmtkxzzVUaY2oJkGK/C6sUlsZsha+sgiDzZ8oG45UwDaLOTYRj37b1vIV1MnwLSyxHmeXj8sFx5OXBlZJYEuk9jU16Wdn2hgEBcieeCO5WKI9NgYQ9fCyJHXHiTsT0J4KC18TkxEoSzlwA1rOQcnpJwsfCwQJdLCmJxYJRxoumuHklj9XPc0f8UYU14TNt2eDGiAttISs4t1qvYYEMXhDYFBpGSGJ9PGLDLbGoElxE16bNZ3AdPpbFMeYd8Eyh4imadJCBwBytOEVI2pGWU1fnStr6FisR1sTypaDNpK/qwNqfaOUuVhUVSvQHQxC3fM7wstfz7maSqTosuBsxOoon3nGwaCTmLKrdw5liuUFBu1LzAP+qrOTdQyOMc+bsDpciJQWNcv56BAgJMZWC7QqxmoCOsOyUWDBhRo8P4691Jwa8pAdwHZvoHFeRymITC5RTxlHZo+NFDJwgvX9qw/nlLokWorzA1Qw64UrxmHc5+uMUvDA2FXxChFJYXDM8KMSYZ3FoeEhMnwIU9wo8saIWgEVIuEroWhO0/EFM9F0zWRDrMz18eM5aAQ63axrLxadW+cinQolcQUclYJDD1ceySy0D+pLbUNspqmQKYi0RSKns+Cnl0nbiY/Wf+lhVjPZSVDhNZaZo9ZNhzm+QAJEukLUKyEKqo7Azk23BDzydT+3TCHCmWO9hlLokmBX+FTyiwrpk4dVVSh8TDopIvDbTxwcpAvTKLitYJNY3iwZW0SMQVFiqrPsAihwyu7d1reM5QQqtA0uDQrBnOBY4VMuowMKvM9yW5nBxm4LjJIcEIWKwzuiHj2XXcGVp4LUqGpcegp5TTph1GBudWEwFm5/lwqdCppptB2a2R7+96mNNA1CTHn+qx9fCnE+iUvCeQExf8ujUBYuVjgGFGNbwefJcGB0cY4w+AjypnFSwpAKPYBmKuVoLHGIEDSrMqM+UzDlwzCn3wI6xL5/HCYx5MM+J4tUFD4ty/1iFhNClFLOMh8LFEmhBiIQkHB5WMIoajaexLIM0Z99r9yrB73ip+ydmLPy1lm0gqxa4ic0USk6sVt1qCBv7Bon6Cm7jjFi9JlZj27QsA6acpLk2K4RoFQ4dsMogQ6PrfYycfWdngleRe2dpFhwgwDHGSFl1myYEojqOYm0Un7RcY0I8MWUWpim8oVOs4YvBF7A4NY40pQ5D5A1ggaE3XTvD7QJPKEGuAFaKAuu8OxiAM3gTCqBMJSXWnmbJToGm6OJ383Mkcw47S+NTIdwhyjIcGK3wDF6x3T+R8ZZfa9M2Gqt/Cjh19EIYiKWC6wS/POI74t6TC6RXiNUkwjrxsZhOO+HDPCLAgUO5eVuHc3RIjw+GQ/eobDrBFtQMLrjVxycLIk1XVu9t6XB5mQFBZVtWNtapWHTi5VgGDNGi8sMYMFzVAk2wBnpZfuFUMoIsAkM0ZNb3sPCtyLu/9JmQFJV09Igk3gshZEmIRPORMoHEe1qNC6aSHLmECA5pHPoeyEI0Xo2K8ZkrWFoilhDKRMZaDvpoE5CuX24YyWOZTDmS5MnImjGMAbJVXws3L3CG3LsPeVO3fl/IkqjwOWwDIApBvkaibLwYX8f9rN7L+w21wKxpkquSr4S0CL5V6fEwkRmidUkaoIOsic4iOmhUBqNzqs4qNgAsWIVWRIXe4UIZ5ArMiLAMF6uOLfEvoE1oqPICs9WOSLyzkPw9g1SMFfq1MhLv3Vf9ZlAYFqZoJSIOkUuhd4gloKJ37djSWJ59NgbtBWL1kwukm6mPtbqZH2+Y9ias9Fu6RJpQVYlSzQPD7iKhI/QBZfBJexJYx07iMByt0aurUnX5/lqWASa5nEXsKeD6hQ+GuhhlYiJOFByG2apjZyjJn/JGRMxxd0s8LK9x373+SqiOlmSHckRG64e0HAi6mQQYPk6QSI+V/3RIypz/VSi+jaCANems9FnyCDV3EPoLrf4UxgPGNJEliLUErqDLx4QnFQjnG4pVv0CsURIr7iVI+NRLrORpda3m6nH/RuzRCBKIsIS13H03DwxxqM5ET+JlZM25NGVBEhuf+saEzXRDPSo+FUADWX4S3GIV/WpQCzhp2lt9JjJZmuEiqDT4FJWfizdVlxbeDAuXSlGxvgn45nQPC3eqDgqdU+AKakm0xWTKoJ8HhTkQkgteOZGEvvrwlfxidwod2YFK5fR0vLmFUHPnZS+0vDGbUHgTY6w86UK7fNbbK/qoXVwy3TheuI7VywxX+n0WHyvLzHksLGxnIWHhJ87NASHkQtdrWVx+D9g8fyhkl/fsr27K04Yz5DpE6dadWrmGkLsKzWGABWEnuGKSMbZMJddqIKkJq27hXMBV31sPLs2jfWOop4ulCglRv7B2tttSgzAUVdoOHekP3/9p1XIzO+ceY6sjjhSSwPix3CsJoXJSiF/lzklDpnBpZNLBV13b4BvLv3mrgQ8pxeBAa/v4Z4yh+zv6XRwRUvak+DiJBfLu9dG5CLECnRkjyaXXhQgCNSZyaJhz6mTqWHWzgLRd+VjuLXVSWyvRHuqevapYPhBy0rDt5bsWHCMCICl+72FnwR5bMqsjUOFnwkciS/8VHq6KHkcYW8w+HzMCaD2XDCHwKmpIFUvNWSNpKUGNqlTfdDe1ZIsRRVlGIfe+TGp5e+qwqB89exgGyQ4PBh02yMy0JNYhRoABbuQ6cXOZMOCODiI2zVSQH9GJnNS7Fjfc6ulMpL9FtW0sUrSlFpO4CN1QO7Syqp/maCP0xewesXpNLAkL63qsVQpBpx7xMgwJOfceczikzlAd781U1r7n6nfZAwEEQ6MjSezDHYVSAGbvu2efaKojY4W1+VjS12VZuSqhkZDHTvNSzbyqCEddw/Ixv53g0w11MTUKCAcDFWL8vajDOl/L8Iy8O5+aVsGy9ihiQ0BxBoXbS8EAA0tYN4uxCOIkmqNMkvJP3C+v5QIUfmsmruqoj/U+spiYh1XMirdeERXiGjrXkC8fxJoc1nvQ2NXEgnp1bWm9TOMpcu/oteFx2UEmSuXIygfkIPfAMLAjsAtGocW58XwWnIIZWigV0mmOnabgrbXaFaG+C0TxLJoThN4xEx+kGvrVVlgaj1zqnpVn2dgBD0u4FC7W9uKVGPjNHI8JvTUWXqSxHEyEgGnuQJsGERRuc2rJf8tpUfXlKSe+knKs+0EhnYqwmh/PYRU3Io1HZR5L7Rjuk+Wu9kjz34i1aYWA12MNGJRoY9UNLFRfrZ803cBLtrcGfBjN+zrksrDQhJdtLAy05Jkd3Ck+oEvXkJAyBv2BMMlGKGAw3+YE89YykWIGcfDFHIb03ggE2dbgiAl8+k6nph4MsjR5WPKZcZseEU5QHdlfcccICU0XbEKsskmk5iEdPSNO0DaS6B574X2xsOHL0Gdi7eem/y8opCGjZ8AbHKInNWXFngt6GrLOvWmEhJEXxFq5pFPBbCv9o14UiIaa3HsSI9LaC89WKT2Q05CALCJDJ51tYiRbVaf5Jc3BT9nU5+hwTAyBKAHYEKS9yk+9RosnDhsW4p4ZRzQhD4CAVzwI/0Kc6rD85ViWKpNjQvLuTL9XBVmewwJKL0/qGQIeRTvqf3qADNfhVuKd9ZAIgMAVMuapIit8LEWfM4Pojyw+seSpAB/teW76Nq40C+cymc4BjFICObHQ+Rwfiw1BVXzBn0reqTyvS96puipq3lftBq/cE0bRIVspcGArAKP1DWhsDrJalyNF38e380b0CC2msArxlDYDngWbxsmpgWQl/e4bMWR0HQ8qVgALQukFTQxYip6fKIARMmZpoophyfovGUvyjPJRgZm5VCSxQkRDwPA6KLRKK1iF12QBorhOM1JCyTooAqWQ4GdZAoyS97dPCctcFrPKBLhIeToyT2Vl3STWhtXrlDQtfbxR8r67RnysCkcQq+CBv4oU2oHGAiUOL/WyUP3ttRwaxGkrzCKHzg+pW8ItGlRgYUo4mE4GVyS+a/EyhYskOANDyRALzNA0PCzx9qooD5lVYTlQP5v3LzhRPKIYi2kUqB/CoCOeQQw58WshaKH7ELWTWGF5RS2jXstxkrOzQawSm+r24bzMXqCUctpses/DctcJuiJExiL1TRkrkfCHJGTEEXPhsr3M9U9ysYvQdSJ8/zOxgESUMmieiuaHhVi4IxYb7VXQatd0Sujxuqyf3c5WmrK3Yq+iapXew7W548jxHfrAGyQKNf4WEj4xZzxedVy6fXT6yPEc09Bx4MdgWrBCFLGKRYY2CfzgFxPe0FDn5fe+d+qwrOBd0li80N09G5cfZoNJu+ljKfbILYmK3fmadFRoIMP21GnSPoSA8BzHwll8OTX3keUiv/N8J4elFKqvAHL4IGEkYfWTNz2wJ9svd3ysvebFFuvwfPQsEAYxJCw0AwbDMlmstmL3FaFK4NE6kTWb/ErMcl1dulapLyvp5CM3nJVrBHyMG4eCqKxx1bqyIW67CMhQm9FQPUzCFjENdKms4BSgVOvz70hfkaxngqfkKQUP0orwDyeMBhuOtGJ7xI5sfnFiSJZcXRgMCJm4B+3X9HRZAIspBas852p8rL85JXSRnwTytF8ldnCFIXSBVhYbxuI5/hbE+sRA97Hq8MivFbL2yy5wUR/LSrWABMTCgAGGZLI2RGhv3KlBc3pYy+SWVzWwBvzZrgjS0t/TauSgbzhcfisZWlYaRETIV1HLGZZFK1PjzPHbWFNHhkzZHBFHfEwtBmSiYeK8Sk6TF/jxORnyVU4KD6qxoE+RKD/UhmEIHsUr3jHPF1PYm4Q4KOCZShGeERWG4BO1GnijhkEokrwOtpibvuthWeKNxpS5/NbVI4JYVgVKeSir9JIO27Hy7LlWuNrnRh5rL+Owjkx4BkG6Ks0nMyerfiWM4yx6e8XfhJaDSFAkct1UgaVICciUn+yVddEJL3DghIXilw3UVXKe9aqizgHqiGaEuGHEFhpnovc2OC78DugIFml93wWX1dsaeG5L0tT16S5CULX7QaGd6VnoxI3pkJKsCQJ4KaZtR20EXdPAjUs6d3DFSkTqcRlO86zxwAysxAB/CIxZE80kFjrreR1EEfd4ybuwpMv1PvexhpIEiQJLtTH85GR53ZT6IXLaB+CyoC9RTeqAc+9JSUTi7OwYC3m8qTa2y03iRwOWRI78uC4lHVf+FjZa6yBqNF65gHj+wFBLGZxTYdrP1oBg0n3xiJCrOBt+F8x6eO0mDR1jTS8lYt0FlrytSuRqp+ptZmZjLV9uGDIQ2n84TYT4INQse3WuEEknNELkFbOCLzjlERwyDfS89l1uIbIKswViJfKMu5d0YvPhuu4YUrPegYQ3Py7c6xw4I68BtSqH5eMVNNfRZf11K7AKtFAorz9oTFRg1wyRQrHQTtsRg7rBGB3WmSdmOFdQ7AdrZ7icSA6DwVtnFmbXqRSV93/Y2xi0zUejzFF1Cgy2bA/8SZekkeVHRHmPEG2mzlZz3Tq1NaJTc5Je13LJzmkAWxGJt0uHnpHcVNibYK7H4qBWsRDyvJMefqoDrhIkECIfAdJdbbAQ4bMxzsebdLg5qjaG1W2MZmTQYy2hNTw4J2DVJR0/zv56m5c3JrLmxW2FRglxLNtYdvb8sHA+OoKzXjKygKpYlWxi2EhbqKp3f0S0y9kQ4iKlgbHcsWxPkIZ9byOMaXxdfYdelnFIsBlIpJGIYslgpRPNTLXoywMc559/YOWMivx6gu4JLXbooGrFjqFBddLUtanw/5Bii4q9E8YKqEWRBoC12lEIAkrhcbKtsN7tVYiSxZXWk2JYnoMfmWR6TizxC8+5NkJfPiJPnkYQyzvzDks37I1dArJEDc+w2MgyNzcdzxXOIM/+FMzK8u9b0ImGeWYoYiVV+w5dj9UYDoQbpXRppN/fc/R1i+kg3WZBUyU3G1YTTWxvHoThz+ftTGC91rSSW3Pen5VLTqMLLglXTU+ZWQpjvXgQqcoIvzMGd9gHzZpRbKJLrhfbgAWsKId+okjgwVNCxazaI3xQ1CdrZF0pcWGdYW+vkFmCUhHr82PeNGC5GtdbUvxYXPmeWGUgycbaz9xr1it3FuIW2q/DyOKMCniSv5WuMhuYVmwiAM8PkBwgDFJSckHndenV/D1K6myUscp8VLxptvWPbVF57WByLoI7SPOccfng2znG1UkFQfd3uYWrH+mjiMLu1WrxNWo+Y/2mQq3GAyye0CHVEkRcZ3PAleqLQq4MrtccVwusr2MjNHx52cKSkZVpZA7g+ddQLiuj5PA6UrOMsGV+zo+Pj2L8kNgrdLH1/aBosgWvS8kPCG4hMENjI2uXI9hku0sdkLnGstZ13yGg8iYY4nZBwixh1bwe68PMvPhFcVNWo4dSpEE0yHAR+Kw+M1nrW9C0oeUTV+sP/ULV73OSyoUhajWjsrDqRTefFIao70ysQbOvjXV8z85DSieLfXE1tULHdrbiIMJqBD4iKg/iSBff66YGFQTqccXaiLkzo/kp1SjeiliuRsM8Z5x+/gHW5TEXAoBhYzVoOfQKtzaONb2EKXX2KfpJ8/FxYe3VCU4p5X0TzqqRK8km9fmrxiGMks9MCAulWYG4RAMvL0l1hbT6r7BMNVBwka83gZDnGWP3cv56D7y/upNMvKiENetGF+0lpPlXtfLd0Xx/UCHdthYM0whjobRglkVmpbtxUgUgglggbbUJWulF9lLGvYpvdR5D+HZclXPhAUWvegsrZ4BPKFNGIjZWJ4CsDr3/+COfyT6c3wU1PK6pmNOxV1gLRcvdITGbYcaZxXt1RC7nr3schnFeNNEsAOQlre+IfQXCHBknvE2R5DCdwrubQphqvJOSCvmQpg7WRFUKp5xb5RAVt8PWWlEA8zJ7f5mIPg01LKxGSB+tpsDWB6reK/LuSuWne8YsYhWt3hNGiPPZdYjEvTWDagV38N8Gt1KyO0raWagZCo7wCrs6DbawlHkvWOWM4SWMFFABLMRa3cPyDT//+fz8MrHmUsAq4CavMEssbMfEYl2aZz/ZWMiJ0THlrpCx70IkK/xCBdRV9lhMA2HM2M4ZzdJ9onyDD48uyCgbqz+UMNEUoIktPdUHhJCK2UflTV3tCrpE3Ar/UFxi92Fwim9ZofS93fiTNl6/HdpB9144WNUGGGXewwzqxQQi8C77yuKi7gIlqGLOLa87bCBVdlEd9zIxUD6UcMAr7HPco0dTrDWM8zOMP/pARXEsRbEag2v7XMT6PDHzISk+i81sL5xh72eFmFqZ3sDVGVmWKfRE4UEU4gqwAT607wlXwazKz2rOgWa9UMi9kh69YBDRhlX6tKkmKL1eiTSBhE7JVtmZRxVuyCANJUdUTBtbdNIxPbaw7vcUKsxFnCqY824jSd0u8D4G17grzp5umXGjpA87UWpUwTBABAuGUFEsJPJ+ynI3bf1QBhj1xFSDXFUeDSwnPSCWzSvL5eNmYmVYftyX4IJYjeej0g2KvG8ZO691586/cqxr4yaBrhrdMLIgCfCwMKd3GvfKJD2Hsec11uUFc2nEI0EGGNuAUVBqMnni/yGRAvaC9KdO0ApeyFDCKJNwy3aM8Uu90DCt9AaWhdwGh7kogyUwKfMTrYj19xAeCsTLMXyHZ2AGDsAdG3FZ+bymL4WSnvjVQT1cMJD4gziWrvTczO/iFevulHJXGcEeOiaW2fX1iPBmYmFTeUkRi6B44uX8LbH2LmlppTeg1IZoGVmTe9AzrlkhrLgLUlBkHO1ZOGtz4jxt55mGl6ckhNI+yasKWvHsUJmi3DFgF23Eta9axNnZA5hCm7OxIGBqGbB45CKX8FBqh46z4b90TYl3PhQsF7E8ZEkKduohegySG9ZfES+8vzCvdIApfIidOouDfY67caUHfvzRcXEv05Nf13iFQpT6K2m0iJU3wcRyARtbRMdeoRPXiVJVH3V1mWKZzslaPwQrC18w+EGDK0rWQNWb7OvylHkbSrqMrTdQalOrBgr+5Ac64E4jsymwubTQsDB0+rRQpscib/srROVaGlLQC1/wVWBV2Ya0rU5ooBUtbSNER2OQP8rAQa4Ea2XKJBfJF8XGKs9N9k2SoGZlvlZhjgXrrs0uQnrRRJUvp9dCKACaxArkFkXDxvIuQZ59nsbHRxHrczsJbFxV0O9Vr3DJZt48zceSmRM4m1+dN+44bWQ5yx4QdX0DC/Zcs98r28FLnI8FtsKSumcUOJoJpptqvebDpOkDK5Y7NsAd2NKZq5bZ9xzQyi6zvHYKS7prbHu+mGAQUMcWCli9U7joZGzZhUGV+Y/l7TE1wlinxoqSpxW04XMoklRJoZXcgE9HeRmyBOgP+nyJkqHwCm1I0bPpxVsgUshdxbKYDjnrZ4dXSFCqiV/d5BZ4pxqNNyJCLIqIQpbtyCs8Q6OIiC8WVEfkchGtlKlQvENZfZlkP/qzs5h21uLW27KzWM6CFo75GLAuvApIFEkmJxVW1VDNWtcNPCWbABYPEyVDDhwyY9QV6NcAOwlHVHyo/sYEUuOFOHB0qV/B6dB0l+YFYEGsSC1Nu4cOfcuI8bFczp+wL+0o39BzhpzPxEqlYw34c3thorA2KyJwU95FPgr6/ccYFmKjSeAvPX/MTvylkI/l8FV1ZuGqkPV1vTjjvTQq6Pfis8IiHIxQttWEGrQdyBLfbGRVpSxgRCsApiF1WDMi08H4zDLJPhUoeBJFFtL9o7rfHBP1dkeruCKuc7pUj7yR+Nxmm085QiuQxwcL8zPnTd+q0aBS0L2VX8GrZSoJMU6Jt6lEG0U6hSPRRAzJtwA2qJ2hvj6xsYQC+JZxfICGPSaIZCVmvhAdTQaBbV3k5yYs9attWi6JfKymdsNpfPFJxPpCVt0ms2qxsSKoHE/wKOhniSFYoKR3RbGy2Pv0s0Y+XcRhb8/96e0pdzdyrPbrjh2dDwab3NWB+M46uLOZwuMbDFU3T4EOxbx1GB4xbRLSN2lSa4rRdLboZEVcGa+vsW1FOjvrmpj7y8A6/VChmdN6IyBNoaz32kqIhv9PMt7H0h/L8FnvWCujLgkZbKz00VgYdVtqlJtjzFzbEGt1D5OvcpAPvoavaqNdzOdSVC2wQqzYUVTLNnAVXuGSS+w5xNAMG2tzoMleYY6dIwbl4g2MpsgQyzugSs3v+rWAx8d10RLDRJ2wsso3TAJiYMlO469YlA8NI6P9Zk7xrjIy8wZwXlhdOJZ66bAey9Qn1GjOmCYWpRsYOmgm7qNnzWTUpVqvxLCQCjNRxs+CCXYstrGqYzfqoDwEMXEy3DVrpWP9qnnkmCbXAFzc8f6u1Se74WdicBhX3v4oo4xWeKH6E7SWYGAFsSxlXQlZpb8cHXaBbBg2flboE1Y3M2YDRpOhQNfGJMl0xH7NJ5SlM1XpYi06eZSeSotWBfh1xYpjXZuaFbWSoVEIY7GpUMAJ1N3mMwGyWNCmgdRbW9I5I7QudhCnMEi3cTD9LdDKwDomFtyw5B7D8R5ngPUCsbBVWukzGu5AJAOs6vk9PF2rhr2vpfR5hnFAIl4hIzmvt7CctMA4xLWF5R65DZiGVW2mnGAkwletV2hvEhvrzUc0+1mhT1hVIqeT3uWmTRlizdNBrSTFQdMChRYqNIhqUZ/06wpIE0t5M0iWdYw5kweSBbPyPZXaTgYDuVql1Ek81/UWg8L5CDR4N6ft9OnwnoniCIt0DazjMFbuX84/W1i1tzCwoFj6iYz3rFbDKr4YNhD+BgWZK++U97yh6TaAnyPgNnaKWENnTBtzoeFP5ln7omkTK86Hhlix32a95ucTYH38IdYFtnmzjiPvAGY7fFa4MyQHzObT1JdQJMvnUiTEZqSkKavCpJIRJQfRsnBV4OK5oQToPbqEs7Ci7X4KxDOMkF0F7LyYrrMqfDtwZHzU+DCj6kLQih+SzxgTVdm7VPJVXeUTyiU8NoI6o8plHipZ3RVIs+VSM0NDtBD/81ffhgndItYg4wF0uEwVIS0ZN+RlUdAvvsxNa7pMd3oCGy1+kuuujq5qctVpuDxD1mX/4R2Id5Yb2Q1OqgJp3xJrGxMGbcrIWuPc1piQRj4hCKKE8t5UTI6uKyhHEWQ+A1l1VU6pZFEiMEJ/XQBNhuGryR9zMnGU/T0ZAqsBvuFAZsIInfJAETQJPibT40Yo4RQq2X4XAevYKTSo8rUu8n4aGXYKPd6vTq6ZVvfg+FuB9LSaeuKXdpvhxS3LVGF2EUuZYjSFK8AjXtJqHxGaV3A7qyY3dWZkZV32f+qAVS4AK7xCwYI41n+0sewVJiy4LZGpg3rw89lteWAYMfDVRmeDSvuk6Sa09vUezikN8kFM+KFI9h1kikalZXRdQ+n6D+UkPp73PPl6M8p9d0AHhhUEy0iVWeVJXDGkemC94hKS8H4qHoGriGkxFDH1IXh5+99e5+gMB6DhiYyTHBqPvhnUglgOV0GQKCajobEeZGqDzSIWOi6OWFmT3NEcOYS0QS1QxiCCWEpeX8vukPU5l8dsvpGPFl5hFwBKr9Bj/AcXYewWTh9IgzCLNxK3jqqpvxsDSCVCNSQJs6y27ez7tZFT0g2lkc8K1wXryIcaTp1Zwb5CskbbPYrK+DKy+lBSvQca2jB3gCEsNF7cYCirPQiaB9lfVhfdy8A6/aLZT3r5OWGeX69yBX3WKIwg5ZucBmedY2PJbqFLW2BMjGGk4RW2uBqpcR4VL1Aul5AF+SvlFo6MvD+VE+H3yUmOYO/4WSH5VNU48Ao1tD3fWEiLHrNCxJkAED9597TNSVdN1gO2VXXv/dRbqkM14lfpGyj0rqeDjSxklXs3ByGr6molgfjuK2g32Dp+cOcwvOyvbgM1K4925ECvl6o12Ck8Zpsg09YmfbHG+3tVczgpNqSi5wE9MiDPUbqPzS1ZfwabZHUBFnOvHbzCQJRtJfPM2DG9TNaeWJmh8a1XON5m8WoVxKpih50/6IPxmzjWgY21pUc3h60n5T4cV8mSaYUBp1CWKKWHfNlOZoEyuuzcoX7WtnXllSPtHZPoaJNgqamnjA/oxRn24lbcpBcfYl89F0amn23mQy/fl6Fc58TRV4GFU/i68Owvswiy7t84ItaoBNQ2lI/HmDXawcftCHvSqFSiTyyJaRG6AoXYWPkr6DuqJV5VP6Ekl1DDtTwaXeT9DQiRk/Uvc2ei3LoNQ9GakUQl9EyX///Y1qSQA+gGYuymC6wnkeBitzM5A0Ag+ejNkdBkmTKEAjaWnAwxfVfIwkKgQLnKYTlyUM7RzTe8wSiUzTNLrKxFTxsUkIlMtl+uJvvj2h/3rpcB0Cfs1oe5xGViGvMDKZ77N8ORMAy7LGbLz6VIPaKFu6myJNW497McBgaeWBv9m0wzA5Y6hT8kJRYJvMOBbwv+U+LZFbd/A4t0YI4MMW9TmxzFMLbC4V/0vrKwdIUQwvjQrsTiEUdLHMvFtqCXmVh/vJmS9QBFhC4vrSvULf10SY4ZJ7RpwhfdkJaUgSFpWZ6VCiqU+H/EnRRyo5UVRLWMeNaQL8/pCRZViF8pK5KdkrGewBli1bjBO6SgNpUW8xeiBjUGk9VoFm2bRva1pbEPqQBrIu/rdXse4sKmUnUJxIoMuhe7iwgeNDGpF3hCrKGDBlznbZMBlu5qCoQCsco8hqUuYfJG0NXRShgM8TvjXJ+wanH335zTZ17hfH+sGrkQ41j7JPIOiIZBxJ5+YrT1gm7goImmLSVXzHFYkjNzgiuIr6Z7uVNSz3K3gJbt7FC/zgLTU5xlP1LyEsIuM+eUUtjkidSAYmmBVBF16IVEXMIuOomSzmgk8EUNpmXvCButM2C97hQmVLpHzcGj4tXrXyKhGbFURCxqFbuBmJBYevwJ9w/k4ePDVZ432FToCgWIZeqrt4TWAIAQ4ZaURCv8Nwbpu0IXm2vdwEJv+4tqvIuCEmvBERMba3L8F0J2KIJMNnCgDXApwnZ3BpBQ9kLojIah6hzu9RNbQzRZomBjgZx4OGFgVgNiBLfohSU1amDJGiEkXiPlmQAMxU98F2g3CVqJR2g9S77RKHgDX08Da7t9q5fWotw1jRQbS94TzoVYe8ST1Qi720Jo5tZ98kJKKReAcHMb9fAKgVSahyXGHQRUF1A1ii1k1GWf94oOdm1h9SDHDH2EjmFGiWMtX9lAV8Rab5zxRa4VyKJRkNN7E8kKW3MJSnSBYVmDY0g3itaXR79oJKOUgSIkwZd6CKyCgaQleIOHXCwwBbqMS4Njx5IdOvLHTzfSJ9AKqhRI1NOD6JVnqNIFhvh5+lU64+trCd3WWP+osMc7sqmNgliLmhrhbjwzr/B9FEkCpUv/J+mbvgIRMch4V0j7dzLd9T8reRuolEKJ4BQOPGMQwZywS3LUs3cYGoLwR2GbxbHqnFjJImFC7/RQdoGsC0MLEXzv0EN3r6IOoxItDdLp2FV575GtXpRzwWCVNzpKxJSBCtsLhVEVMyzsjNxVp13YAZjsw6D4SKBEsigFSmiFY40LqmnjaQM/ZmrPAssO0ZmKdim+kh+JVVhV2BUS5BFBD0940lDuh5ZlhaAhOH32kSASUBxF0CSR9yGa5JCvJYwEYwRVidNnvCrOJIzE+szUYvOGP6z8STkcPnxgwDVu4Sydxt9w+46NRZisFbXS1loFOC0zsrRT0yMOcYlwDB0+uGFBmYAXtd4gS0hvp6fllA4ZTwbGdE7sKwNRB41pyii3CC5NhwgXUX36xVgXo0WcCsDQ2JQz2p+EeLv46qZn5Z9FVhfWpVYB1lxeMbE0A0uwosdBP+ENKrpQwxVkEAsKEOYnZKOnn3JBKyLSPvJe5nlY4EnAgwLG6QuCzMYSKm0EnYCP7ZRcDUVoV9fbGsadWSWOFWTqFa5xg1FmgUQ4fJlArMYziOp4Y1j5BRqNIu4u4afMwrIhkWsWg9+NWLujlrECcpkWewi8oPdrddAxjDpjgdwQXQytguWEUJMW8rTESNOuybZ+OjWs6vICsLb3eZfAj7tfqqOH7FDVVYXxD7LkFMyiRlS5lyPl3cL7ugSazhACCAAspzx7hfJrogZK0YiCVq+NV7ghjmP6Yk83SzYDyysPYmGQjTvLKIHgFk7pWqZxLDyzQDnKajuF6RfKB7LQ0ZMu7Tx8kbysBXZwP4p2ASI9WocaA0LrWzUpw0s0ZpH43iVi73xgPa4h7wuTY3WYUmJWjanBVSKaOYq3l2e108uNogDYBIfNX7QMUi2P6/HJgfVybsPcHFJkbbSV41UhwNFkUYUd5zCcs5xoNDsBG4s+Yq3wsHEYYKNuRb4FG2u6llAtLCT+GN3vmTZUCFE1vqQaXiJ+/PpDPS3MnEQ6cIun2IOeFm2sOl9YGA+r50/cGoRFTdA2lUU0OIYSLAsk0mZkudKeY/P1LHuPbZ1PU51dPsthxKjGHT0GE/V+oWuoDt2EWsUnfjZlEMsNdT934EMv7eHRBQDLYNXjsz+uWolhPSW3WRhru1AJdJLAO/20XK54iIFTlHm0WRwLEmE5YaGc1slo+jyuYSCWteV5WBqh4yo8uMCj4muIQJfdJQwvfi/lXFjCJDizCcQr1ChTaNUvqNYZKHkQ0SCrePQYC6Za6B55NzRYWau9Pv0yi1RtKgWVHHpPi8iIw5tXiOz++5DpusJ4hCrRKRbrgDgawJndp9IyHWhSPVCLnWk3rfiXLTiAVtpfzHQnt+HHRNkTt/PzRJkLVJl+3UYkGg4ALFw+6DDKAR9YWtBIshv4auEXHyTNvjouqlxDxLREjFiAR4VGI9ZZxsRhyi23Y9arFFJGemLMbCdsMZiVWHgogBdCXlZV0OQWFk88rcQII9SNsEi6w2t/fB5X4eVe/jFEYSh57pgGq6i0/kC8YcUzjWHJtljcuMcaV9KMMjqI1HEAD6MKWAEs6DCXrZtA8z6yo7IS6E78yZQQK+iLHWGvzo/EsWTzYBgQs0HH3yTAgh10hlWAgEqfTr7wINblWkIG0cg0GazEykp51SWgBhtLKKQqIu/QjYRT+kAsv97PnxI4X1jYklNWK8TwhljLs03VcVTBygJZexJPB0W0JV4g/059lWRnM2t/aPa+skejV3aRUOojVz531G84o84gKn+5WxE7KbzUyw6eKISy/BSwjumCltMomAeran+U98eDGV+0sHAK/ymBWFHUMRMaSneIIcpHwW82Yw/r54YWNAZAjfBbh0Cs3MLSl49Iksku4MrNMyw4WQW4CqCoBRkWqKHK6IylxZR7nGahMCPWHqwmOb6UytdhdZCVgin+nKZWVuLYhoG6AhFA0bKIRrHHL4Ja+0Me94NeBhBJUGjE2S30PipoyoL4ppaYUUCLZq1puhRUyprb5fpAUEZcHavqZFc12a1BjjGdycQp/PZ0+ibfdNtG4D09A5rDpO/JtJAGHac12PZYevS74wuIoIcOibRTr/AybdTUaPQGrPIdZtRxzG2sObNWYCQ9zFuGWOKDLXiFF+kN5GAJLOpOfoNpETXH2qhrJ7sY4t8YhkWGYUtkTVKgyA2rMpINdqGnW4zEd16VupvJVccQBI8wnqPK20L2xsI64wOchp7CuDNIJUskVWY1VGDGa1okVQ2xKqwqoR9iwHqaWdt63awVpOT04rlDLCYgMo54HNEvqiHNqBonOrGoQp6j9lna4rbIvdzVMaudL+jEulpLKBhEBEfU80XRMto6u4WAtyFgh0JKrFV7qFd4owsY4ez4IsJoCU7Fv2cISA+BhlhZTQqarUXpdohp58fc0y5P+lKku8zcUxz2upeHhdXBawzrCtmDlNR1i2E13W0GzNlgykMi2ChnwriAoqJYK4FdxNb5xvppUi1iVdVFRBY/vyTXTuHGvVtA11KOHlvkDjs3ZMNmwuGCCGXysTaxovKjdHSpoZlYxOOxsWBssluDRqQoyDNqNBEr6sl/lb1hEkKJdnMWmZyLH7dNfsu2RS/7jFjWsel7RjCklpbmm9KLhwKI75Bc0pUDUHUIdUnMCqZZCrUCTiDbApstFi+yQwwgI+cSikHWVYAiNlLx9+lJYKrUOBUCtEj/DCbVZ6xql0kZx0LoBrB+kljAStV5QxEYrRCLBwUsLo1n0U2BNS4bvw5iYU0ZfUr8ijM5MLhkby1sLNOnMSyuIEovcRy5QVdtFQqtErKZZzesb74XlRgak70bJhu98w1ZVrqG3unBo9GWbkaaxL++QlYVzhiJYoGy03MHW+o+hkloKvteHx+R3dYkFjw+yZLyC6AJbH0aV82F3kPECz+zydQ4eNQSkai6BqmKT/9c9k6qYFUxVnHH83Vgbbc850q3SS6GK7Rxo+Q7dSVWkWWHSQIqg3mCIp4E2Vc8Gp/UDq0wYSAXxhbzU4ZY5EBMD/kSDskTOsUmDct7ICIPDTaW8QxBA8mqwUi5NmYn6T3LnRwdrohVcQQZjo1VZ5v0Jaet0iJ0Q8zaIf6+BrxYmWr++o9xVGQ0SKPJassIvatgfnXHUU5L9Rtl+VuxK74O5MJVpFmkKDo0M4Fv8KZgXTCoBp2GyfjRQfUhaEr2gBeX8CVZ37/lE8IVTgLbMsCUdJN3Guicvi+MK4cBBhhC9k+vcOi992NzcG4FrGAmoQleIfsI0u65wsdLyck1CtKHb6XOjyT3XU5wnsibEUuSIMCWEEvAUKcppPHvW7dlEC1rEONSnaqTNGYPw+lio/fbjR0MBT5IpBmmFmYYFXQynjZWWS+9cM0tAvPGGTOaYJYtxRFm4foZvKi1y8R3tNCEknf8cHEJUj1o1UHVqWWDmUCNumIK/MPfXgHWJvs2bNoDcwrWwCvowlai+Tpo/jwnAhwBkzhMulfozjoUaOG9PiJByqbCr6N0JhakUkNRL/HrhJSZhUXVje1iwMLG2q+ARRvEklOkTVirGE5pJxg1OmzXuze0mNDO2LdSa0STxuD5RrHHFHaQKr7EC5lZ0ChQRTFEcaHfp54nXxXususyQa5LaBHx2v1BrRw7MeglzME15MJWS4ysFstNsFUPUC21Hpd94FR9WFRVp+bO1A2V5mG9TqwtD2NxQOEdgvVPL+URJ8qYWMVOry+0ASV1CjX/iTz2+zkIzk7mUIHAlGErEuVQJNaSI1aPKTPqu3lYjAjF6ZGq2hGyHAQHLytuoLqCQiOa7Ublc+WP2CLzhYUQC4xQZI+s1NoRVcQbLQ2rTIcvEVmkauhanDymnp5+hgifhGoQqzNgbmrFBdVLqZhQLHd2eKLZswtamSJKKxSt1Swou1FcHiAdtw/v/mn6PN9NQ7KPQ8MlBELPybYaiJyuXxRPbXTOvUIU8VUh2yzT5w44xMjKDnYOSwVLMa+w0MTv8LszMAvAUcNqlCDWxsvKJ/KwSsIrvlp1Ck/oApdIyOrVuVTbBZ8Z/OS6sHABEdhE6xWx6oFPPWTGFkNLvF1WCzYyq6rYLyoNRCyx575aoC+Jm6vnp1kPrkx/BWQkYHZIYSk7p1u4yPx+YXp1zHskmcCswhV9RQlIyXs+nL3x3Ed5kMmC6dYQA1PqA0peBIr81Jz7S8R6XwETsoGscS+u5U47AlK8Rk9XzTGnsNI2NMTUw8EUkUWyugbXivEhy4HZ/VvI05gAFi5mUG5pf6EYQ/11gpUp6jeJFTd6J6uLVu47xBJIsExnmpDFkJDjGW2sJgnw6hfSDOqSscKkuq9hzc7gC4DCMcQJw3/kzpPSwENqpGVLaMzje2ALXH1AryC7VEc/o6UJaOI5ov/1UcKEOore3Rtoiv+qV+ZvGyGXNWhSaZMTW190CSNrbnh7fMTa2mRwkogugldY7ud9EZJcB15Cas4Ttg79eXnmgz804UthlAGswAQ+gVgkxk/ysNQTZBxNohDUBScUzFinmEJqFIZBSTZERc04OkvSezBAZsSqY/42ruDIEXvXNFBq0hlJujdZW4jwzrAKWCipKIkEWypqV8akT7V4hg/4EaNZ9kG8Zu9XbOwKu+2HZj9GMCxgal8+fT172bcDqt6zC+DB+9NDclBiTxXo1cvMJsB6nVgGrbt3EQEYAmeoIxEmeIVifkEmdNSpqp9JE2LnYW0HPfUMUTaPisdD63mtVo5eIfyY52HBJC4UjEPDDPSlB4Eq+92aQmodfFe4ZMt00COMWAnmE/WhMCFWoTEAJmw4rGH2RQwUkrISSbCnzFqJZs1lufIH5wKeQlA/+nIij19ZysnsUtm5w699EApA2b3/6w8mIx7V2WTmVK9YlAqJJNL10qmIHcadcwnv5EDNhJPix607U0M5PpS33oFPOtNcWAf9Y6LYMq8QphCyxpCiaNg5mUy5uwNweU4vPhKyEhWsO+0wI1BiFWBnaSqMYmHhLM00ZdIyO5uiMlQtlINYCXXok6ZDaCcJyOvOVtXybHc1l6wnejcFhTSytSjR8DZP0e+SpqjHSl0kV14sqp0q2Op1FmEbrUr9fNFXsaTGbakT6MzlySNesbDu5rypbJnaJNl+VGZ8WYaJdTHVHLaaTsCTIsQKyQ3xQhhONZHNiCW2kf9cvyXkSTUhFr04WAPQFhuQEYtevQjgSG8AgFRIIV0FCrNToQncS6ZB81MQyZobT3RXkRysdFbyHLCDkhU3tDpoUaRz3PxPZnCLd8Ii5igYX7LT8qE88kzhF/6iRrdoN4yZBuvMQuv/nbD4WZ031FGroaqbjrVx+rHmp2T7WzZWdKyGUONoQfMKQw7TaJejbCgmR5l6L7QbD7u4vvLLcrOKR5r5zsRxbvPa4I8pWaYzz8gi6R39xZ+36Jc0hXS+4V9zU+y1RkWDaU2YIKnvBLrgVlAv1s2ZWbskOhwtVHnMjTkqKrqlzBJOv0HFFAS6cik+to7F2ksDbWWsvD5u/fMCmUqiz06xeA1YgyMAhht8QguLPvU3hvPpF6lY9pgYX68Ra5ZUavFmBxbd7cqIVekDiord4QEMiKbMaNJDofdjbBLFyo20PM2/0kIH+EcSWTxVcJRYU7MqoijpUmhmQ+htxEqRFYmlwNvJQtfIu6VktUtuzo2sfLMa1Mrhj7qX12QpLw+087+wvbrCNGf57PzPi66wXkSBNLERX7SwhDDQSNDjy7S+36gqtaJsPJ6RNSNW0T9ZRA0e8MRQK3GGKAqGs4FyPLdwaAhT04iVZDZWUX8TggUyUqdCAN1EU1dpOcTv3UXVfh0ppOhl8Q2a0d11xTfUA3pSwVaZBLJ0WeJIydLGN4hGW9wdntQGXf5DjUKL65qruIaSnZXeEK9OPm46K4T9YFy15OGgf1Yy9ICtZMyLwkn8bVhYwibhl3QKFLu9v0GzULoLm6g+I7afX46sQlFF38+hhRzmJW0AJETf3fJBIAAv3FpEGNjVZmNp6qjLq+IbKH+igxSwaNRVzwyKXz81fQpiZSYWVQC3jZrOSaB64FkQgis6OzNaeWC6HlehkRZw5MX8SBVy35eAKjTy0hAYP4csyMdtZo5BsP4k+T3kfT5Bl59FlphWgZYCYhhrmQoz4dDq2P+XyCZFF4+cW7cNXRwSktu9/llZt3XLcCVgSkTzOil6G0uTyckQoChxLPgl5x2O1Kd3j8hIWhOoFHMoPD+881mPEgzJIEUTBc6m2GQTBh3CqdAE5vnATCOWyJRYWGCL5JBDp0ckWVZZ26MR2VoKA84n9LTvZTxgZ3XZPx7/r3hrCI8oZvCKlZb+Yzom52BoECG0+KdAlX+ZxNakS9SU5ioZtuiTuISWQBVBZVpU7rqfsbTd4BOPRz8Rm/gFYm31skOZtEhUOzhYQ41XSEYAUPIAoRVC+VQITe3c7BzEE14ZzyQBUtEI5BegMOtOqETnwj26c6SQhh+tmWgDkAexoBSzGtLZIYvhGhMKWapKLI25I/tfgqrNt+vr778kvUtz30GJUgxkYZQygZ+LOWhFOxemQ64R9K9ErQoluxA9kyf8E8OKMkIjz6LACrbS/XG/G8H6s9fHjQe9x7XeMKAoyEtByi84h1tuY4Gj3B+UKhX4RQap1ccHxoXXbjiitHr8QSFLL8fGssKEuGCVcdHsqwYOSOd+GjWQ1G+akHVeeyMJtABuZwr7gZ6rFWLNHT+VVc5ndSaW2VhVkcKfuh5eg1W2TDIdtBsemrmGIyutaqK9Cs16NkbTf/Rnv4po1RSYkcWT4MYPkUwIhZIrtLfBGyvEUFSOrXnbLxq3QhEf1gk11/quHmNqSL2a3ACx0neE83AWYwQehXeFPhqFb5dACmeQu1hYEIsfptN6MtqVC+CJZhOaWKFHugupLrzJz/+SMzbOB9k/YuQ5sWhKLDBx85B9IGvJ3/G1yCAcQ5SL759uCINa7KwPfkNiHy1Rn9QQhSZxLDFgyvJfCBn5ImzZjMr0Jq3oARYqLRbi9jLbHRyl4feALpxF++AUhhEiM7Pr9eQGsZtUAEOwXQrl4r1CGAZPON0df5FZY56mS9MkOXUFkwCN0dI2aigpMpB0zhdEiRUxqccRkkJ6+j/qqFiDo5kQa3XNSqwq+4N6htQDWRDligeLbUEcEzXpHclHDVZirsW1hh/yvdwbDzRWF6gtqUtIOla0oNTtEvlpsBVBFyR9xlfV0FbLOlBp4hLaRT1GtHztUFmnm+l4vG5Y5ckN6eiS1lBpnRKBo7CusGvikusYZgZldnM+HHUOtqrAjBi+XaR05eiFvIbdzf7wtxc+EOsmxhlPtxbRiEWWBa8JOPhjJdoF89Txm+eQKpQwsvCsLli1+CFV+UeZwUJA4QoJpbe9MjYRbRSoiUuIfadeF8D4t4XdJJqxRmNbdo5iuzbK3GiFVqNUnOIXIGQ8chy6R5hZN7TO/LqZAYX2h4GlyQ0wRE6dmHpTUiaYjo1FhzkU0RbdN9ka9x4toqN9gB3LqhnFTY6FhlgvW1hvpJAKnoLCZDe8xZ9tBbA/ol2J7EIs5Vl0yqgvuIUhb0rC3zQuxwLqaj2bokmiX+kSnFMIfq8SbpPJ00N9pjvEP2Ml/bMQKwSj4JBdQlKK5gEWTKUraaHACBJHwRFGEvQKqlijfuss8U0/L+v2HqcNyEIBJ+ZSVGU21hMisf2MmlufmGbstGSJ9Wg0HRQjwI4vtr30gVgaV1Jg0b2WYFsSx/N5pmueElaTl4VQUVYVUze3sDwpdd8YA5last37kr+7g93snaVHyRoaFzQAlO/Q9c+cO/+/kkIhtb1opwHotMJdp2rnCRFvYd2DDwi6cAdpEaAdxdsa/MnLxHYmFpnbWDkkUFMO10SmxCrpJaJMhVjWoBF7ZgyOpXEpZrNDrL8tFa9QRW2ujTeL/R+0oh/EyqSyU3MSet+v1+jZcaNi3MR6NMC2da2E1S/cTmaARJz2aloySte1hp46oR6Wo9nvJnT4/yDLZ4XiA6KhYyhF3492/EqJwFNvFGLiqJhWXAKqO6lbDlK3k2LyjpDpgszfFUIOPXwhoCANXJXZ9fauJ6xOqJRf/UZ1JGQxrn9OWamBWBoeM/Gk295etrG+3m+Gn4Xq817XozO/lc8ncuVY6CRUpWJUXEGEOmlkONCSr4tBsePCARcZAnsyIZ61Es+iMayqZjLNJ1XSovmfGVlpdiiHIwKzaGDpTK0kdlujMUpbfhFOCa8yO0sj9DHwnsetjIB0u38bWO/YWHneVazzsepE2G1G9MnnCQtrEMu7reSXR9eKRdsxqM9YZnCh9xdkc8RaDU5O+F38JOtshB0NfrN8OpmR+HQgC5svOxFif4g6bZQWxviI/baXRgvj6Bh0LWaok+yFf4pzyFcyH98lwX5BLYMh1n++r4vBJDKJhItWhDvWFo6aQGigTO06D4sUUXzBkD4KogRttB6BdzPDJiH2O32fkf6qUFIYqCJSp/fVx3oNGwttgqU5yvSInPUgVvDz+JvHYDndMClhFZDYxrgX7KwhkVhgB6sp7kIKsehm5Bo3tiF9u2JSZVJpJYk0i2RLJIu+CzxoceS+EbFfNJi16Ku8qBUYDmattq8D2jS0vyTBOZnZ3MI5s6rd/iG+lS+LrZxx1rLUVbqBL+CnyKKzlX7RVYLUz3YVDEsYt666UwM5WT8Tydo4EHqCqyKuGnoRHTa2U0H7egxLip1YJvH4Q48igBFHo4wHZFTS3Z+TEXqHWAAr5M7DlXjuBB6ttY5arW9lx9F8LoeU1lX/oheKGFkSv86Or8GZrNI9H9pQNBSSOWF2FpsNEgNbwN8ivyzUqv6Ob0Hop0mVowbrSklDFRyZw6jJXDnSukQA/mLQYZ0N+Qxx1Y7V6aaIu1GcZoYO1AGuZ4i1JlTA4LBSKsIaIVonVk04h2aOMj2Jy4gFU9mMmcCRN3KcOwZAho7R1apPW1gaeg9nztq07HxAd7LG8G5HrT6K22wtdKUZ1CJG0CZIWkLs3SsaAPBKE4Zt9RySF5ggeIPcFTckO3CCBR0jdskLlQT7WqqYZUNqZ1L/J3B6EVc6sNYUWUlDOQJPj8dRkDNvur6X6bUcmtIel40qWa77L8G0CoX7SRtuQC1et8C9CCeFEt2esrLW95XuPywlvtCzJASPFmg4v3PTuQMDeV8YKUEcm4f1kjWMpW6GuKeE0PuN0DseHjD59dfflVgbXiFnoUHVOnxHm4X7N3NId9zCeOdJ4vuShrxkLKuiTdLR2pJkxltpJQq/Z6ErJs8KUepSAEk1xPCYSn0RZ5WRZC4owZh9trSZEg8dA+686pd8GyxKclNW2We9nRzCzW1ZKgIK+dCQfB5zbmsvcmPCOBHl/GdEtEAXiBV70EUwlCJLLbGVmeMANtYCV8c3eVoCNsTiWEDoex8nZhx8fT7Or7/+ekcRiGWEtVJh8c4N33EaXE/zG66lXiRlLRcI26sZZw5j/UqCT4I9wZFkwn/UmjmoGnuPc+tX11rngPlBYbpkX3lcQsFSC5c9rVFI1SBYbINbA1iRS/docSmpqPLB3lpvwAEuEYFHBRF50nrxGe8KN+sHisRI1KFDLagKNYBgxCrKHCpdIIncucX71meOmMS7Y0KrHho8wcirY8y2Hbh6SiDX25oS623/9S/5fUdRfOj9dLAse3pZtItBeeg9t7FodvnuQ0kkqwpa7Jl+dbVh0lDqeKhFxO5VVpUgGczCO1w4pUJcUHZmoOo/wyU0YFUXWqf6D+GKOTHuylmBpvGcC4CKpKPaIuN+4S+cMNZpuc493zf5DsRs0G2lMjtyR1Mq8BAvrq3HsSJRJb6GjtqzOfhE3oVvwq+phaUoMxuruIlKjFLJSzjPMxM3MmPVJBHey5pmvd9/fchbicTiXOhafdydQLyF3nfCctPQuwJtn0EXYuVSPX1wDOsOOXQMrOKhga1Gi4/C4x1+eBMQbFEznC1qFpra+FCBBdiqV95ifRpmNQzAE6yhsWrcCxXWkajoRHEGXdIaMKt4WEX9QF2dI2t05lxgciEMDfk1Dv/SIV/PpFh8nVjiFFKYO4RxODOHfgTfPemi+4nrdZTIx9qSQyJyiet01izr/fcOrN/PYw1v/DfALLcfvDLn2UDWjEZ7l/Kk2EmkZ114ZsxqDEBDTkUwtLoZuSv04BaSR//5k/5XpVAU1Pyb8gvk4XlXAIRkLSpfouQWPDD5DKXAzhfmH7OxGHM3k3A8N95+yk+1T7yBseDUbu8JscSwUisqiWFRvN3eg9YfbbHBJr6RwWdxeyv/ydu5KLtOw1CU2NhyzxyGuf//sxApm4UQbtryUNLElh/JHeYsJEVx5gZQc7sl2bxZaN+/VmBhPomwroOo1q/ROJqfEYsb2sPYIFZu3UelgJ3BrEwtq7iCMhlfFMr0PDsEvAzOSNJF44emmRzHYi/t6pabPgq9W2FWmVc1ftU0s5sL3La1dYyfSkboVSGYtYEJ6VkMKI8KnxCnc/5m+VJiTM8WvAlizZHai1eYYAbRuPpmAVRmCxkQa/OWT5xeeUpIQ/MLPI4HgXjOZWXRuFt5WiFdP9+Blows0NBvYloZXhBr9WpgXQ8KEcwnssewEYWulGi6Z9ITYimJdEctkGVZReGp5Lws08lcsc+D34XJeeNQYn92D4vhBgHhlpHxYETTtsBAhb40fiKMa0DPCgkRUy+hSgPaNuDWzk3DrMB3fQXxI4YFc4rZFKdvCAOr0M28CtYYIl9Fj6gYJxk3KNBOuXx/H1HvQ8TKZpv6Fc61qbniV40qGJWUvKZTpZUqyoIsVJx5WJiTJygw7ZQmfx21LpjQpmCGzCdbFVkDvSG/SlbtjvlErF0F14pYNa0dsduPV9y7hWYf+oU8MswCKJAUeQc4ySHcUfH4IqRllXim89PVwOIP35lmFvgwjleJqJaeLV59tRunaPUdGNLFr6J2zQmK7tn4uVgzW0fIWuunmU2p+oDtm1rf58THSB2Px9XGWIaKEsCOysUnaKUDPUQxX2xmSIlVlqg1pQO+OTQPl3Yyt5H3RjUFs+hAOSOIzk4s5qHTjAL+lWbPM+UP6hDWmquBKT8/lcqvIWKJLMsNLJfvVWGSlpJJGfwsQTMPem2I9ZFbmFVrjT2x7D6YtRpivjHs5+0y7ego4TsS0cI9dP4OoEX43TYpDSmLy8zpZqIJR5U4xo9TFRqp7atin2gJ4KJ0Z6KZSUXRojkPX4vkkC9La7rXhbDqAza5VdnyYlQJvAsMoKu6fHmsCoGdNF6DOD/0YQqN54Ahp1aKycFlOFKqWm5m3rx3U3FW8VWbZWPhW5ZsBwhQHVJo5RoRYrpCPHrLwpr1YWEPh1BOYbcKk4CNndc2E2BTKB6ubWU9N6J0kQ2MavDdtFexPbKs9LRi6aRioRfdN/I1DmQtGWmMZfj++/hYTWmjuGn6YGOkkyk0u7wKzlbK9EMPzWg0oWqMsZb0ZLq3O1MjSza0aushOrkUWwYe4Z9ppwxIpnCXZcyBV8imeeqzwozJGwsLYbkZBATVZ4WwpwCqEoyHhfSrRZ0tKhNL7ZKECCeWFnGw9y2sFMg6ExouXIGsb2tZBniLG8Vb9Q2u3RHrsE/cwhrJsg8/HE+ag3K9MLKARzWMMmB4RSivj8NgM0XiWbUUoTev8NRMizBzmiGeq7U3ot4VRlJUWZzy0728uqxzW9hV48voj4VFFEn8uNsrYfL+OHq2ZcACihyc0qVxGeUdQh/wEooRNlbeMcxqepf0tDAvgIWyOlZiAauElIosGncAm8w8m25IbmEzvEEcLYLuCEnyoZ7SvxnDksqOS8BVsrKS24XDx+2a5c+PEcjiOeZ7gaw98SwXFclCZYVV9iQOZlhojofqE1LKnyAUn16SJf8Qam3e3lbGqUqmt2REDiNavbej/hULSxWTjQWwchkdR6rUAJk/WpEsYyqA9dAfsYsQshXMo4qsNO5xzCn2lQD8zADClcN9KxepplBccw7mp7HGvfBEuasyXxa6i1gDdbZ8OALchDDpM81wOYemIEyNfcKDt0Ip6zMKHb3qY0rziYUluvQf4lWxsvrfB7KU0EACfvlo4exvL/ZejSy7M7KW0QcxjlsBWclLo7QRWtLY5+NYTIvPhwlM+yuY97CTpphVsOS/s7BMZKRevD8UnKhXMXOrisyP2uMC1qEIt/+Su7Q5JL7Qe3J23XHkJ3dgKg6l3HO3uCEUwo1XGDlGJlZ2JbHbdFTHdzNIIRYcuhE63PdZx5G0RKxEIoyUxKZaQPqc/bVc9yTSxTKGP379sSFWTnDgtZ6Lrdy918ghhWs3a2RtZMlRfSuNtDLKboabrWXbbgTUi+yZtR9itrAuCMenb/bLUQScl3USPCFO9R9ZWGwU4NBLmVattqz0CtPX180CfsdBoIn9/pC/Ew0qcNeOB9NxyvjrGWpIphctKlO94lhQCMlc1RVRAsA6MSpgCbHaLhkCzSwZCjlTncrM6Q3Sp5XcVQ61RRuiainPqr23sJC+jh8uG2RZZYnDRm6pQEU6bEwqI6l/EsjCLbSn8LGMLLq+KubI8lL5ZATyORJ995/E5CFiaqytiYWTaASyeGr4H1pYgSz95BdW39CwtuAZ0pYlRpulCfA4pQhgPTIgbriFjUJH12XvSm8VgoO5ezwHQDI9NutHaDodPY4l8hBHZ8LsAOqwi2TtqQWxYCPoYtr7XK2W2oQtiAXOEmlybmkCkWqVYCO1v2phoV2/PAGWZt4sOMNzAT8KtXDt5jure/Hx6wkRevILCzsIbNmrSV1Aai90vG9YmzLv8iBfwlaJySsTIKilyNIukEW21tublZq4pUJ2BAGVrohraLYsc3ktQJWgWJj5O7AOLI669AEFjulQMAe58uJYNX8UqjBEx4svp5CaVWgQrWMMJqV7ymKoRKX/LagKsV73+urbyXBKJ4mIRc8CLCyuG6HTtBg1341hXUPs0fEKcwhrtQzfs8pLg2nJwQ5a6WWf5TeU/Aj6ba2sT8Ua44nBwznUCYNUjFFv4c6WXESsLb8TRMBqLc5OBoAVm0kJBOCalB9ZWGxq3ESnUIfNmsN1aZTdOa0OrAOglJeFKVRCTTBRVqXyyuPAdKEziwOmmTUMWvVecOXn4rBFPha3uDEZc0uG7T7VvRLroQrsqcH+OiW0opjHDWAIucpna6iBl/pyDSOm3ea67y2s7nABWeCqUlO5VgVGvRYgzqerYHGVZs9yrV4nlj2zs+zG6YNN/6bw9w22PLpVo2mLzPYotHOTMltFF+lcm20iaawYYtXCQtS4S303T+dN/B1fIC4RlQp6JID16LNuFIs++XMEmmgnF8DPuQl4MF2UJJQSMavrGaMUec/22eQi2pDQA8qNlOb6xUJcujqyGljUUae4/qCR/ARC1l4pgrKI3MIPLax+weUnD2Vto+1IIdZNr2c9bolWkdbhCG7wcnENIFB/a8g+LI5rWSysVKSaKVaVzEyx1WJ1EvmL938U70SDhyZwOFlwD5sUoc1SlT5G+42FBbWSGLlm3Lgtemla5smM/HsL6+DPsiZXVWMrWT0CEP1QKuPdO5Z56FdyROMc5RAYqSHpZpVBCpZmugDDac7/QOSzFFIEmbVD/nZEkZGnxq96TqhuT4llc35uYfUeIaUHxPphTy0W3MJn8qpb+PEEyHJ5NhNb0TXSHGzVMaVYprJ8iax8RxZuIvI13FWU2XSi1snTLBh21gFSO48qRgcF7n309rODdxZW7hue+JFlrZU7Gqh6x8JyKY+40kvP336QbpK8kLOcqEAXJ1ZN4iyGEw0l28rLXFfqdBpa0E+S7iNNjvvJVgiDomr9/xIyHAlFlY5crbzTrAF11IRYsCqHgIQxhBj8duk+eyMPi8kIO52Q/sMtfBpHI6j+sFeINW56rCfNg2UB7zyriix7Di8UT8NhtFfPdN1bWGW6pw3kP2C24Cse5x0GeUKa8W6eWGUYU9bO/foIhgW19ku2FzRVt8+y38dLgLpydf+KhUWZYrKwHkc4hRK+5JU3TKIKHOAFvuSYKYxVEqA03A9JnUGR1nCYdIKqym6Y1GBWTanYrB4oTZVkfxYbaxvIKh0o1FHIyMRiYT6V++suIVIyskBejo7xLWod9IHBSHDAH4RnO5TwHPA+dL7vMe5tuZvbgTa2JVTlFApL3LPazkhLDVsLS8XViqyqDE3RG1YMwkoQa8XtVPJcLAtaRWv9Rm2KcRUBNUsLvyA8+isXThC6s7AoIz/NmJ03/NjYqeP7pceIxYWkw0FjTTulxOzgqg5JkMsyHmNIj+eJCcc0hXjZ8ruX4YwHOS+mkDZqoKoSjtC76HQHLGTWLUVtOnfQ6nf47VRlHRcfR7+I1feWHAWIVflQ87ZoM1OXKIyz3aISP5XsPK0BsZIXVmSF0AkY3VtYtvUuC4Ny+OvOwsosu5f199liA9OmyAjhXcOWIcQnUF0bqFLBrCmdyiWYPerVSPxcOzPMefWqhUX5LxZWf+AU3i6l/i2okN9OMx0SA8bRM5cYABsTtqqQ41DMJ+yxx+ORPEp5muBLdYiV6oy+i76Pkt6wC73TIbONqhfqw0KcRgwgipVNzyAWg0xHE4byfqqrXmMaOaRn1enmerxS1/sQWDSsQVvzHqZ56bXi7pT9mOTsQU1EgwZDl0nYa1VsjVMybV62sGhJ7qXRNYyTxVxppAwq6PZWHMsqqpR2SgePEq0v+Ys7cdyMINkabov5wJX3s/nr7DuO5/L7BYfZslN2MXy7dG9bWLEjP3lMJj0pZCmZnIBQ14hB58eEAiBwHGr2BhopVAsnOYyb1w1LdoOQpXkoMZirpAea9TklBUQdSSEtLYVxBUjT6yhUyYGstC4LptZH0vVqob7FZYVKjprzR9XObtYQCxOrH5ZnN0cVFcHrcPE255CWcLAePb1gQ0nO6mXW03b2GFKCtBYDiGTV2JR32CIL9WsWFloPfl/MAlUGVRj5UgyLUdQA0r0sdfuT87dOX40g/b8o5IStVo0pIzzPDsQItb8Yw/JhycISsepHaDh9YxXpSBCc0BQsYy4nFt5dSPUd6+O/3JMIlpRTJ+A0RCwk8a0E4ujDtT9KIXWk7KSVDreDiJEBrPyeTqVSqqiTj7aotjnRpZ3Zq97YA1gOoaR3kfEm9pkCWUt3Z9Z1m+adYrBe1DEcwiTd51mqxNTuJcYQ3M+bTCiQVfq8bGGBLK1gk0n188bCklQLi/r7YhDNC6Y1HPLre3EbZvGoc7hPt2I7vo4hM0n7WTm+1vH79rVGcM9C3J3ciblAI1LfaYdnr1lYIA4LS1+iy7kJXstWTZzoRngpK6FaaOOtQs2oEtYbyCjuHqI3tAmawzhpwsaCaToVdxTjTvUSGlNxJxNHmswpZAvASXxoJ+FID5zJGEUwPD0XlNpan3WVd7PLGQyzaviAS1V2jQy/zRKwXHnmj35HoBw9gsPnNHLbKDqDw3Pi7EyRnmDWBSk2uYUjKpKAVY69p1D3Bl0LZIGWly2sEoFfrAezHFaBrVcsrArXVaqvCGF6HmJ6TN0fA5YPSDRi5opcZUkLvyDRt+41e1TIqkCL3Q+vxrBQYGERxsq5TyoEhqqgrbU8/nhoWkLgdKv9k4hyuyFIEGt0FDpKlSRPSqmqqHSdLs67AgTSUxUoRLuYXa6gWhDrLLTz14lFzfJJHPOGeVWis+ngZ2txdAdshgHjNpBpD7OIMc6OYhZ0/1T9ETLxCCGanEolhhHIukhl3XyMJrTQDnHNrnuLAvCycBshWXQloDWErIwY2IWssfAL37GwKMKsIUhYY9jaWFjSUqwNgPUJnkBUbbOLIwojKbJkcIMaQiswKnuV7K9Bn92qymp+NYalIxYW1sIx/kymxumSrmrzHQ7kv8XV6TbnisZj0AlZs7lyaQ7E+CWx9KsIDa9wN9TO+1OxS82BQffSp4i1EU255idy8jD9t5BLF0ebbdoUHaZXo0Nr8e/rbZ69mtm8/Cy3ssa0iG6fx0BEF46sY1J1CwZFtUe5ff/4VkRXnAoSIgKWt5DfYLqAgRExEqculNnGOiXmGWYIJBYaIVb1w6pfuIa1Ty0smnEN6fHzZqSE2v4Z5fuydLQVyQokLXiSu6myoQ9U+my90ICSaKRzghkA+kcWFibWxJmLP7TmyIl9nadgzIrW5TUdvU1N0VfTTH+rcMYMJmBEq/eKyVeChn3wwyu8VKbbD6wEG5eKfQlfHF78uawrIUQEE6rtH/+C8oF52VntSur0/0jh480IXU/nwdnsOJMN4siYuCVhNjm/vNkuQBBuN8FEBdf7OcoRcwoZ0VCyA/Bd/XpaZxmNRkSvwB5uYQ/UQSZhy4mFiWVkQNQ3gswqDSqyln1gYVVZIRepFk8KGV1YVRF2Tyl7CVhrObUiHZSUd1PI28EjR5E91Ka1TX+uhYytuluw0bLnV+wlCPSpheVx8ZDLXcN4WhPpVIMy0UfHRTcvx89c58SSSLd8l4UFpFS4tbZoY1TvyStM92feIcp9oY8DYve/gKHSGzBLe73dj+kLsRxX/mvdf226+zUvH3F6yGl6eoN7XV7tZqFoZlOIMnO30LrJYFA50rB6c73SFLSnP6sJseROWu9yCeUbxo+E9oDqucsxBJCd9AQLXmFhCVvtSnBAmmJZXuJC+zAWOhs8MHxuYFGm+E5a6hvcWbeq9XQgxJJFlV62cY5cRengUUTsY3OlClpzy8n3xESzOP4PFhZO4YO11rFJ+pRhdOqFlxXAYQ9lX95V0AM+41AZZUy7uswdYNCDCNeeg1mmtl7YFZ7a4zfezkA5dhuEolkpMqTz/v97W4FuTij1203aKfbaEkLa7ZvJKWBsX/KxYg9quoyyNUVTkKV1XxIjbhNVuDaBsOS3hJRcJrKIDCNfH8do2+aRLr4FL9PPCkeM23iOYnc2v67404r5Wyufp6SfLtpJsbRJpT2OuBDU3rJhObBb1DecVJmJhaN4cWkmP7B7WDOI5ThZXBbUgUyWWU1ndVL4UmBYYPVTOdVM/jsWeVPeizPlVhhnEvO2HwWZFLXBm2zLF7No89x4NWTcSdtrrXCw4NB/7mF9/uXtuwp3jyfyJX9wrSxOgkx9QktCgcAr5/oXX6Ole0QMEepgz/gN5Kctziu21EZXySiDjREVPpYcxTxoDVeWzc+K3hw6QHl/TjuItfnI65kxa+B66XytfTjYf6x+DSIU1JG11L3wifEBKZX/Pj8hd0Vjn76WTsQ5OFeuUYYM3gG2qJEgGjRoeexLfUOwjHQ5xaYmq80iuCRs6bKjSVTfRQBIkr+Q6sXAsNc++V3Su1hlN4CldyJaGqadm++D5VlLmJulUV09Zm2tjZhjnlbHVFD03LcRS9tW2HvOF6ZGfU+8+hbjtdbdFC3yzun+AGSprMSV4BEpBRb/lYd1HfnI26C5xvWfC4u/KqZaiaSTNoFS8FpS66B7jdaZaAFfeVMS51twx14S5sg3De/GZlmgrfq9tZMzTlh4iKPl0D2R/siK7YZec4hZ5YkPMwvn0a+I4FaJjCZv1An7UF2ALly3POW6qzhZdpywGE2AbUCRoQ/gdA9rWnGyqHzHhYKNTZquBIYIAphQwJgAElJqHUZ4eedBVWZk5XwrA7RoEVQMIBs1zRBBP3L36DHFznSW25q9aL2oqmmbQclL2JGcMz/dEZp91Dop4xwBW5z/Gw8rZT5ErCYfcaBDs+yhYbQJ8Q0mrL36n6GcgsqpbGQTpcbthFKPj5XhIxPTX8xzhrlSFWeInVbrSyCWSkKsmzH9peUlNfVOLosepuXThKILbkRfmfwa8+IOnm1A8Si38yhXNs4+54BYlnm1xJUlh/DIVMPqMg5UqcSr3NFjJjNTkVXxsPLoXC3cwwdsRIb6Jh8viYOs1wWPZ5+QwzSjuxHh+SODX0mr1L8r/5bAqHtAOybQCIl2jGrFstvd3k0HDa14fq+p+8K+Lc0Tyg6usJCv9v6feVh4QG9vASxwFBtYqWNFCrJyXPPpPlZbRq2bRQ1Ucc8Punp7EGFqECt0LNI9rIkKaiD0et+whlgjv6fT7+ly9Fk7m6ohxchmJ9STDP7cgo8mJ2vOLJOQYyW4XPOzX15uCK1CS1iYg7WUldxW7kYRKVUSpSy1PHImEdU9LN0ODcpGvVrID3shy42X5a8iyzl4cqtK1BWArI0j4aU4eiaMxdZ3cwjVhBXbyO3+W3mJUNUm3LAEsWLXc6JALutX40Cpu46v12GhNID161rpY4GS7mEBH7iFrk+r8ms9QseUODUUqr9qSkYZrAl+5lpHzf2MK8YPQ4z0fuaw8hTbdUWrMsbYW59mgYxeABawrGaIvb58nZIVqqT0jt9YPk2aAZ4pmI+wUFcf45P6uWmVfIoeRauxIcXJAlh5TeDMaq9QXVwcTEjVoneZWWqMwBCfSlWkQwyLzUSBZFra9IKs54GhP39PhOsIr1pwqI76Cpd0VbNcfu3OEcGdiEycKBu1jTjz3sO6xVB4eMy8cd66MhkWYvV3+dCPPa9M9HMJssR5oIp7BlOpPS15/HICC2hk3j2JBVEKs557WLmjK/3HgzWRPq8Hh+UdOAAr1dwJhC0+lkrGziDinG48rFuPC3NKSFcrqa/5d3u2PGearSJr2oEX0vP2TfSPV+9AyrCw/L9Zj52pT3oIAGXOaSsFOFsUkSqYlJ8mTyompcpJZNUqdNtykl+6qJilD1SQCk9x4ObCo6gOh4lY/mJBwSL9/l1xf4Ysc/+kBeFWHk9sGEahVcooXRdZHIbYMYjo6ywXs3L6HgAbSjQpyKOm1s0F+FDyHeym3yhYukfPvxq8ux+WpWslNvr2vMI4xoRLUQpARVuKvauhDs+WSSM8LILCt4/rF8CBI7QZ/UClvgSlFPkNdNnrvP63puQ5j4hJ14ZLgdKniFiPYxlWqqFwYq48/dzDore+3Clg/4GHBc6oyJKr2RjVRYOc56zA0ltoN7HqQ9wz7lNV/ch+DIpGJLMuwkJBrt6ZaAkr5bNIL4XLxCOYE5NC5lJYaIPATwVa1L0LVjG0xxAi0NfE/Hlg6KMLWawuCQT1ZJ8QyN0SZ1RxWRj6UZsq12MotjAAWMwKfRqcqCzn2VENgJX9XN1z2M80dg9wntBURjZCD8LObjHszN9f7/oN8hX1tC3h6ByO/rDrq9LyI24BLBj0ePtLWlDYuswoqmculohFtxl1UYK43E2d+jW3lEjQlNtaigqDIPhYnSEOvLrBMw9LPSWyBiY/z2GpyZlEFlqkZ/G7aG598uu4gjQRA6aHI0LtA7n361J6CzCloT+OUBuRu0U3akeNTP4BXNqp7D3a2vMTVgGhxFHyzafFLUdysuRhKcjaO26b6Hj3PhsYl2zxFhg6sV8cOKYmt5DfeFr0XA5O7M3aqipMGMqNAeuzMNC4xc4M+jR+I+YYBYfKr/FQAL2xLWiYvLSU5BAlEjoJRsR+0clhzgof3wom1lsS61cL1WgSJpadz62LJWL96othxI6IV0R/p6cjdapSKCpcodXk4lypWnXCAGsuz4seloh1e5XQXl2+LExjrliclfq30GSQ+Qx9pvsiZ7USHlMJquzlOXNc2je2wJqCwEvEMoFshj4tTaud0JAi0mNONRaPszFKsradmASZDCdrmqQnoZXJevGdD/6NwNDZuWL4JDhEQ7tsVfP/ybjdqtgNX0U1OWdyrHZHnIuwdMeKuFfEhSKXztZcMLJab1ACF4srfL9xsbr0qBGVOr/+osiT5FcbtE9c6a3LpK5Ck6MxYqGepJZWalWOnwMUZmog+j/2sCDWmndmnO73W6NE/bqZ8HxFo4g0akXjmKBatvWJJEoc6JTclCJGgDW/3lsIswQqbq1uVwvNhl4MJMdIeSzT6+zJcV0RZUxXSotMFpqEGXyyVpRlLwWG696sV5feA6szij4qpK4y/q/tZZSFYG+KeAkJKTlz9hO2brU4Nfz9fdRMO3vqrb+JIpRvfwPH25adxnrmYtG5Zw26Y4aPxTKVf22pEvHtxpoXgAqI7fM+yZuaMtFrT7nHMXayVh5d9f+JHGvvlU2rY0x8FCBZ4Qc1pDdWc2rxl8z7+J668QG1Aj4ZccMqoMWzAnn1TgHbmtGxxxEZ607CIISeFz80ujAeNmEZj4vIdlil66S8eqmoHNRkoa9PQqAoCzUWTQgMhSxniGasVitLwc0LntYf7pbL/T8e1viPPKyiJgRMFEnXH8PodnS2MRXJLByrbIpGoOv0eAYEwKqE+Hi87cy7aFKI80RajIiSzmbVQwqQ1Wc14R4TosP26jCZqrs+klhxN06tRSWHRXa7iqGrJQLdv6kXC0tgx9I/9LAYWI91y6Tn++yPDQpgJbFwqj4dMHmzqQnwpNmcGUOqBOLr1cKKuSuQFH2Fd0ERjJWSjeFSBlqeksUlQjZlstThOn80lXwXsgBVbdcSA3fy7zJUqz8GAmg9kV5WatLdYEXK8W+3gxgr/tCwUZNkTgTnpOE1MXphNHyYLF0GuoQQ5xhFY4Tx+WYxXvQKt2KTSvQ6egwVEtaU06kf/dVSVfhTN3sVlDmLNdZDLQxp95IvcMWr67XXx5UKQ5isRIgiQSctrz/zCbSs7I1UJhOEISWaeEQW1NLppw4Woguf7fMvZfGGj4Op0zhNaa5UYGZz74nqLXbZ3kNEjyYKCy/KQ5FpqMIqVc0UJ8uzvce7ZVjgiXXp6/o6Qt2TTlR9iWS63fh3DksvK0XMCS2boKSPCgF4t4uYXKKgSD4eFUkfKY6GKAElbQZ2ecw91hC6NJa6QU3EOKtnXUbWvoeQpiIWzL61DFaYyMMCDL+uzauoeO8oeSLwDNQwC0iJWD3AxLZLVo5myIdXtXC3do+SB9lcOD1OhXvu6pN3724LuLorG0BIveN6wbMXP/dDVGR1XNlPPnzWikW+vUuMBzhQnR7kSoBNtgtiPYxCKzZUx87PU0jRs9XCdxkFvcoikK9v1vpys8jJGG8cLIXoprguz686WpflG2vExZeyWh5fLl1nWVjcEMuGnJ7hItQ7dahmyHulN42XJTlDpx6EIsI94kA8LpRbcL2UdIcfkcai+uAui8WZvQqzWElQfJAlu5vEBHBQM+6EfrFJH7Y0FyWk28Y/J2VJ1u6LZVZ3RD0QVQc5HWLRr/bP0XFvxqOTi/wAWdUeH+u7AtQNJwu/xC4du0vj6xhPWfNsK6l4eLKJRk0uMlk2jyKoxZrUkbohSPkJB3UbWEKWIlIt1ysohoK7byDL4jskGXN1aLVuyXaNOtAnMAp59R+RftInOdhc5LDWeHnzr2tadGAWCrwszoDrmIAx417CkqwKYL09vdfmWQ4LbYPidhSqeffL1EaIRUSo+KQGgNVnwxMV+uQ6oXY8rk6iXoNwM1LYNE+0M7HD2F4kQDfkUh9hIUu+Hmze2y//kadGzYaI5TaPZyVgVRfr8OQjrevQ9OJh7QXkt03UdSkK36W4bPgoPpP/zskqSv6wYdbWVgzagFrGbTp5JDjjxNBRHWYBLfflTvVrAY4+hIQwiqV/m1E3XMXqR/l7bNGQOjXvGvxjj5ga+/RHdPrRzeMj6/iYAS2HSSIl3UM3NIa/dSpg/yDprkbUNuz94xdaWPJyCgt1cbRIxiB9Hr2aY9lNslhrt9farfLmsTUFijD84FphPqfBd1NmcRDJnnhYbWRRkS4fiEQWUxBj+cVXccawDxEW+qxLlrXvz8zoQgktYk8rMaqf9TiyBh6QkIUkaEiHkxc6+zWK9+NcLpTgDF2DmqxQzOGjFMjrPmpSWePvmw9+wmam2LSKm4X/NY6xcw8y8jU4Gzq56ytStSXnBRiFLS91YKS9clLMrgTUQmidccaiSej37nkenu0/eEKouXk0lYXfB/izj3nqx/jkKhtgqFzL68pfiQHb6+vhF7fvuP1x5A0yIHGl8O0BOyhN+K6DBbIwglgf0tDquEO+JIMvokH28rQ+rhZyY2HFQSrwugDG0/tmuPLWoz+IxVyayPyBh0VYiFmh1sCc7pBl/s3pa3KOyWLaWlotTdXmHErOlpvMk0HVkxE8ilc0nORSGGcNu8vFqvklx8kqm2AUbIFpZxG8tLNirMLXaUsztYJ2BK5fkZV2+Fe8CSMOFFUEoywJI9jAxN0QSzTPtxAgeogpygzz/GxNZ1PVDRoxg8FAVP5cfbEo4rzgFPDovzUBZPHxbPejPnRRxfJxTD7FSZcICQDVUIb9wOqgCmDBC3ysLZ1D9PvepfMO4SadbwqJKt0JTYo9DhLFiImQINa0XoEuvIXxNz0sLLEhkbW6/t5RWWpUW506Em8ST9Z+buXwDQ6DY2a2iHrUWgEnlOXMkF4gCBbwgYQpG6Ghv2Ss4TgVDyuGFksiflbn2X8OUoQd17iR6k89AFEnHKJLpDteFiCxLQxFBxE5cdkCSSJYQs3FipP1wrk0vooIMY2oM31eo9pCRvru5qqRSsrK6fF3T5iMrRF0/D19rZGkSY11Th33zNOCY6gIF3GzAFSAq3CKU1AdWBVgdfkIYPWS9PV3+iw0CMNdViFWX34tTKv5mnt0TtWQ2mERb4zebVye7MkpS2I1FKikAW/pdQ8LWadLcKmq9yP1Pyw66y/heMW2tpH60dVBp7SKL0hTTWYQTjq/37e1rez6GvuonxQr+LWynZ6X4oFlLmydZHS2Bx6MR1MaE7HCLrkhnypWjtawAwYCtT0sZXGiUqMyiJrwMjP5ZGmCJ8TGimFD4synD1ft/CWT4QYr91Qiw4LtcjESBhsXFIc4rLN7skvNNM0PdatgazfjX7xUrPq9wDPoRl+1VCKVB2hOfIgbJLr8YcpkBX9GsgZOOaGfzvSOlXM0rQ+05G5lh665/wGqGrCas8RNhR+/qjqGWkPkWvx5pSobmKIP1eMhXcwqq5zjVqGY61rUB+WHrVRipSoNKciapK6LLyJVUPBlD6sa1sVUQ2pfULhEh2xAmRC1a7ciCcDtsNCyi7nmWP4r27hs2Cp3LI59DEKvdaDmti5+oG/ilktys/gtOcCwzvKhcLI8rIHByI+PZJYS5qSW/B89LDJZ3cmaGi+F70iQceQ4vy7MBo5SfDVLFg8rGiCEQLVdjNw7/zK8mRp8Katl2VJFBFWraeULV6vGiPCni/SM8wB5UHaKO31s70lZ9eTW2F38K7lWFOJuAxeo4kNbZ3reHDHyWt6eJoq4+x2r9pDhYSEEhb+J6KrHEIql8zoGqfhKnexnZzMkp2pU5+ow0Mw7c0hdkb7a2lIQGqrcjvLLOwQtNT2/JNtveVi4a7Spek8nDklWg6FlayvUiVP20XBi21/gV9fyzxv+1ElfAawVHRxLS3Zx05GvjPK8omqeTaerOTtCkxEW2nBcjOuAavpMjy2VLrwp+TS81UiZadn2FvuBH6a4EAMe9MBVR3L9Wr5syDyuYYkM3dOJqxcjwXKtM8XZylNm30Wu5EjyI0bkf1mQpUFr5QSkwIkOqrM5FsKomSWlhtgxUpPMkoKrfPkBVDWfxdnULbQSx+ChHDwTMz38qvjgXiFubnpaQ9u5qbDq7oGlA8AikBHFKrj2thGSM231vz3rzQwK19Kt0ALV4h0yMVZcr9NfH3mnn51BPCwhSiPf9rAWUDi2i2e9414dqn/iarPKBK3TTjaZTqnKUyo0Lg8VsumToxZF6HtbwamxdXM3PCg1ducy2Pkpy5cpMPy89LYywvPiTixrkkriQuB2IsRLLlOQxA1rLsO1GiknBXXrYaUv9dVk4GGV9R4p6iLNw3LiPgMg6WF56nGmoqW4kgS781A8cSm7XDzMtHqOg6SAFtwSLw80HWz9HljSi4quu4uoiMLjSSfXjwrGRLkCoSAUKudjY7hYHEGYOKeZ7ompZJX5H9ok7k7gWDysnsZiuFGrxXpkWGDSJ74AV/USPkKZf2vabXfQLT5LaFy6Kljrqvoj3wWM3Si36RAWzmyRybLveliTJppJ6r0KUS80ioa4k+cPNQrFsSMstGXN0g5zjjul4s7sKkoMMRzhlESc2QUTJOlIsdFkE1oI9Ux1QDFh4DjZCC1Oj3R/97BGqrw5WSM7HBUXUtZlGq82YfbMw7Lh/CSqpnwZP1Xele8m/uQJByFRdHdfCEulaa/5pyOWhFpdeJ7VbZn8qNVgOoivvCnw3cfJm4N6w4Mi4gMzBoPUcmHszsWSLj/htsqn0jHjQcGK2xzz5/AAv7Zv7UPPxgpFE0hVPSc8CE7KWlWPIL7kA03u9e/040/mzgDJYRqGomyKIoXh/ucF6/vzRpiyhWEAJ01sWXbLQh+SrLg5rCxjL2BUvNhF0xs4bChZxxTbNpY51VqlCqTJTywsqpyzuordQnAIsQwnai/glZiVABuxKnaqmUE6anauwvJaQgQi9SvJsjLHIsLSNS6jyqt7jrerwTN8uD5xZEeNBIeb4bJL7G7VBXWsrGW6SQ2p5VwuxH5qLV1Jgigi3fflfnR6HvQ4IJfrXjnUUBKmKi2XXaLuvhHH2sWxdTKqjC1kCazInupesh7OUoWnSNEbcEiwX6uRiqD5h79wDOGYCSRsWcCVqDq08p0XV9zCjdoG0noZvQaWumxX4Y+uoVhYb8NYX28MLIgV1IOOwFYQx3CKsk8Jvr5CIrk6sMuyAbKlCpEcVm9mRfuD3QZSfQ8S4Nn/JVtUkkOZbr+NYdXo+fNCIIsc0ljiiW7wkxFpCVfC7nSicN8KZKHDpCtKpUePLmGufq2nbS1du1FrQOXdw/1PtyojiFybTcH6GBwK9WWF3S/cwrbWjBinOeR1C1qp773V18zF3FLEknFyaqq3ljYW1lJK4Y9sKyws60xkJSlZ6yT7oow4fSYNvbKijKyGLjE8QOc4tS9URQkyQnk2EemGWpI736/agbR6g63Qd/9ygY4yct3WJXlCsETawjmsdtQybU9BrZJ2N0t9ZtO0qYjG+/qj7anfSnZdaAJVqwarHML/LWGeKNU8RxjrTPukQCmqXp1PqKWCAaWK3BokDEp0cA01Aw6MdkZ5qX5zJb+BQhb6M4VlEIXH59+0sGZDpqbdwjFh6ARXkMgNrl1J/hhjkP5+q7Z1mKniztrvqzV5QZen/9IVEEpZik6z6ojOeOwPK6hU1ffUfRpwZpHeWFhp5m3zxG4auVRWnEaXpi0nT3WHryN7ITYNiGEBL9ktZxLYfZX55Y+3+jyMYNYuTHy1Zk/LR9IwV00v4kr9MUjbIjVeYOFxnB7iuFbFer0tVRQZc2ySCrBEKp7vq/SlpeUnAittRYka3Zx5DfRjTZG3ZT/vXamNLPw/UJVZh6VnC+ubbCxQ9fP9fb725xqysZYOBwZS6MY0uJvExPTh4hXhazH6LgjaPSJWemTxZd0S0ArR1liJOFWkqaYVArWAWB4guZGuI7m7SkeYY4md9bhT71AYWB7WApO3a5falXkH+1AUka0LnLbI4/U9c7r6xg8bMrh6/LY8kawid+CFHVIt0Ij5qE5IioU1jS4wuE5p6aoTv9CWD1ExtUrkgajKyLoEM3Guq6wGyh7EM8Q1ZGbH22gK46q6YiMLYAlLRLaMrS13/qjuqhFRe1emr8VYOYb+uQpDYl2RVPKS1M2UDNhpbmVzoSAGAapvgaU5ycgqx/y7CrPqyMM6E94n057RyimkdWi8P7FAdOF+zEyAjeGxjtf6Cj+ilPAGHequUCkR6/m6cwtG9ma/sPfsu9JxFmse/ZaQ9Y4SDIJIUCaSF13YUIh0yC0EWZhnHQpu9GTqVzgyMKx2rVwz3qIBt3YTrZCrVxmyIVYj2CpJ5Yp9dxfYuom9A4xqXQBHyvptZQog0MgZybovaHrt0LfJ1SoSz1VCA3cgq/VEFaWTOhHjbngMHvXwCJDFzEzuFPy6XB1LiuJRVwyoFrtR3U9tWGWE5LPkoX5DroivKDHMZLiU9y6+HAVppppvdbKLmEMc6oMiPc3QzGTBEj9yNQVCG3ii0fdhLGHi58fUEA50O0ocjKLnLGELBB3mfzt9m1NQDOPrYVjd0R5fVMhLatHTAIEax5FUN/OQcJnaU4Fh4dD7eDPQIiUgwwG9zmGqksTF9FxSllM47UKQWgU6yRyVxbAkxipJrk2Je3zxL7VhEDULnB9FFikAEllYrPIYAktzHfCW6oib3VIDIm05ls+774bfuUqI+cOmOOq5bbfJwqpu3JhKtuOmZ1iZZGaxZCnU9bQNHqzJa5hYrBSKSuolND8T1vHywBZ+4mflKyJK1IA5SanaTfNkFBGKfKm/WIpCXseakud7oNWqNcocTiMP6zhn/mjzittH+8x8Vl4QSz7g+3mtNYf3VX2Ba4dHV+vU/wxrQetZ7+dgQHeocw3UXQhxn7Wqegrf16mDCW5dPLQv9+P9NdU0dGI6fYnAAXii8ZtOh4XFamHeFmpcnySbxZmZUeLWJTTF5UT4GDlZQhTLZJBpF9fKFRBk34xI1mVriGQAPxY4Hy7cRd1LddhJGFmV4olpBbOIdh0xrJGnDrIUxYJLL0etBZ9zzRBEdLzIgNLNJp/F3QHyil3i9ZYAS85fC/o+eeXTIk9je+dzbjW14qcQRDZNvlYz1LYV9NM/Uoin63bZIWVZh/i97kUEX11YWO8KJhblmfV58qzcGyXOp/Ucx2q92F7erIx5RKNHeHqplveTYla8oi2vCsyxrKZW3TozRKxcUndIxffsKoNCNR2he586mED+56KiqkucuIXqnqGreDXB8i5xMiGOddKjXuaXhg8jS7gm+XSpZ1ypDxs7xT3SqLKVJVexcnXrSvzupWC9VgD9xVe2NIGmUJoDyfFlbFWtsSwX5jZeSIjwGCAYViZgNr0y43CQrXKWksjEysixSkhkaiwYtkx6MiPbxxS4MJ665U9UQfFuXj10Ve0Kqq7Rdh7JgU+AlQmYsg8Dy2WDTgpbks01dpgXtdaBSfWWWPHVzGqLqWurrFuE7pRy33eFAeWb7bUuydJpae10V7pLWe99J1i29+x6E8P6mf0+j18qfHSFJHaAPi/AbHiFz6H256OIZPnjkkx/29LSeQxUjv0odQiQflDK14o24xpjAlymPI8n3D8X+/rcKDMR3SmFMrsQtjKHUrJUF7SEOh6NulgelGGVd7R5JSJdSUJDD/ItFnUKK2t6fvzUKc7gNMAwssrWjrGwx5ESzvZXoOhKryVGmksohhxADKt9ukjnmhYWeep67zKyircsASltix1rhp4hor42E0ok3JYaf6Z+t6acob+oM3fUYyGPYJUZdm4Yr6oKqe7uVRk71+gSo0i67CnHx10Z0KEaH1HqfUm22NqF36guLUzuUBW70eRMrl8W1s/Lx+P8tU2dMNa5PPix3/d8xyx5ad+MpRXB9VQyAQiD4yXqjH6/Z0HXHZQDvmgRYpeO2hpEgoSQs+oVNrvSGVl3ymKLKsysTay+hYFFmGpEsBCr4lc4wYEJwysLbaE5hhVKxeLBwnukOfBQdPCQ6BpWmEShXRx0kVCX1e7evsdu3BhZJdeusvus9JIBlLFlVr5vi/QOYTKZhnXmjCQpGRLUUtFjlcSwiEXJ1CL6HizpbadO6V5tX2GZtflleBl4QEuUdXq/DlZE5TWKRWy0nE5oSALuUhKTwBMbj1Kwv0CaGgLXxaKhCbYgu+ylCqEKREEpqm/a1eqzJPdJKLX4dXtMYSciH9nzDbBVNbl+2GGppzn1LNuKwPoMY+mU/Dt/ELD0hC2ZWLAOP9bzBzOipRk025gEV/E1ucWx2UURsWSSIPMNAZdJK4SDeFUGVlcqcBrvsFuYBpoABYFcr8Ci0gGZECO0xMQihdTHFdnQSvnBl8gkZ5VfOYtLEFPg+TLuJvrD0qqkm7AdV4Z43cFucY5xnj4D9ZrK9z5U0DQJ27jdgRFVKDbwBF5SX5uVL1CLHaj1QeJrIonsK+WK2jDUn8nIiibWusTSreENduNucvjcHPEv+DlmhVu4G1tn/vDOVYgIe/m2FHqunlJnqalS/SYywHRxwvwyt76+KlKt8ZBf/lR6JaV8uKjpLjTQ9wAotf8YVWQ1bGjJwkKkTHet/VGhjPzRD0t8vD3WtzbW51YbOQ54qZgix7GI9XQKaQyozYMLgDj6idfViPFXRd/7WAppTyekEqwQplojQXSEqZDkY0ihxpNOe7VwzrLKJbn37kqRib3AdE31uK05rqpVY8Zv/l5cOTCyzFQu5zSL9UP57eEl2MoSs86zSjr6W+Mahm6sAYCsIvpEttncpa+0fGlzTXmoy8ASuCq8SNiW2Fg+7AKjjBFzyYlWtpFKchhmVhGht5pu5S4pClyetisSSXeHHxUCT/IVPi0ekhTgxK3oFMJGsH0D9NKONsWDQToyizD8D7asWAh8RnCI/NHBho/zRD+l3Ems56/PEiTQn4lNnBKbWJDoVERK3nm3HA7nSckBrIgQsLrWDXJIUyp8XLXGMak0Y173k4ES8kiMLGZQAmiL94PP5lXDyg9Cl14LqNeSrKs32vQ/Yk5yC41JMj6HmulzGFmdiCuN8SemGU0slFle0Mk/sTXjfg+sqts6QAh60ByO4U3gq4DXashsquPMjGhL68goJb+B5UIC7Tt+NZ7SGb/eqhquoxtoaERZliIa2fHkQmhmI65ZsxSgyt8sywDzK30XAzHFTjvLWtqywi12feDBxdzs+gEudNDqWTdV1tkyiOX41oPn6NxNlThu6qT9DFeOM7ZXiCq9ngWvkDnxOp8RGDOscJA4Jbi/RKwzTYATTqHCJS19jah7v3AMd638pd1aGEPtBooupozeUEpJgjsgWJUDcDfEyuCjZjkbS2zqrKX2U9WTVYJYyMSyit9BBNnUPPfD2YexLhWYYhWQdcPU8y9s0ymJZIWOZJTaW7VMrCz96Y/8Rs/WOhmp0+t5NrhkJu2iPkOHx5l3te7DopBGyDPsg12VHQfT27HFBOMoSGhMidI+8S9HL60SCUwE+um1QObOtrJAz+cvMYuX2kVGF27hYNW1YeV1wa0794Zg+2W7hECIFTdyrgi8S9clvomkU0DPOYTbmUFqsjHJmI2CDp9iRMYxB6CXQu8sve2+aV8xeusgJ5dq4LqK0FVzyUuGwaOFrRCmqYjV006Pq4DEs17oxyv4zBqLxRG/o7C+X7GKYFTCVuY2qxSi3s2sde9aUExYpvU5PW9L6CH1gpws0l/HhGAvUA9U5sTMa5/vnYVVebPPQ3mVwNDQ3a4fjuGAkRVLNcXU+dqDtbuiyCSofGGo9eh2EAmE/fExG/s1ZVt89l5uTi+2hnEJr+AJ0PnLr0NSvjM/oS23ijcuNFga/C38nsPCsn21jr77QgNiof2x0zZZcwKLXmwsBsYx4LN3DmnyfRrY0Ute4fQfOa0HVlBShXFt7oBfMrPWrUSx2DjBLYzg+13sDhNwMdRnJWhJDUwQe5cjNbxczSs+yRPMXBXd8+ai3HelGA1+susZiDJ5pjEKUSfqiWTJ0+MJzTPgKHUrt4B/8MGsHi/EVB6OocqdN75jsVU9ua5YIK0o3ckit5LdB30ONmTVNrTazqqRA+aUdzK1dHIskFF18ItS8zGh2au+2hWqBgecchubS8ffQla9adSYG2ARd9/yWR0b1IhbM62hQ1c2qKDRsyQPe2NJQ0qH8QRezlBURN9QVTn8xfbRzrHsuWyPErpIjxF8FilOC2vARl7hMEi8L5V0Tzg8I4hCbRWHsG5ysHwr55M6v6FaM2zudbezsGi6jyz3abdIPmJB7JIFLCJKw5u+KeeP7NFaZ2QIVrp2t0ZzVGfjDt/YWAwsvoeVAhLCgOmMvUtcE3t7EOqxkZXDquVIG1D3m0femmLG2oKav/RhlrhyxfjtH2XMYyMUDy2COLDmWjPrC2aFeiAN1+rZ/Itj1e1WVRt9HW6bW9fs5dka14cpxXYangE/8bLtA3r+5ovGwFS65vfxBakONU0pkrDGs4RPg8vhKxdsLn74C4VAj4KQGi3zBXLFakXXB7EiYNZRmVG0GcqaK4Zz9S0d1QnDLh6IZR1AtGtnwyGlYVW8yulLJMaPBPhOzwryGwioVd9Fpwo1/bUHXq/V7Pc9li+5OsEhhIwWo62YTq7TsGqMrrJwRZyrWjrC+sv7mguwBpX59NY3VL1OZL2a3VZuQdmaYrmw0OHfYtqPXr3SFHBPCytLacCiUMxvsFhC5brnE0VLDQUG1ThnHH8ziyTz6omvYvvC0i0vXzUzAtWsf9JRZppe6eJ0M9DZwuE44ggCOB5l/ruo8o0GASveEPew4BNdErDLaSZ7L3dVme7CUF8dan9ux7LmY9CUEyymACWel+nRGImQ3upZ6q7YJBKxLIm+eiasKnVryMzTCj7RbkAZvt78h79C/Y8SftSDi2d1RtI4g/RobWD5ArvEK4i1GTbZY7Z1S31+VJFnCZModR7M0on7dnivGZujuZ3WrJTqlkaUQOZh4LzmciGg0sk9fR20r/Uay4WSxcigLc9lbw9lncMA3spEqQDWKs42UylbWQ1kLJYZPZqOYWXeW4Gd3i9bBs5+BFZmg33DzayvqirxSMrExarfuKWqvfjVsyoHna6+khmR1UuZA0COm/NpIIVmcsvtqoIil/kCdj6oT9FkF7zCB0U2sVn4iGVNfMFVddC9/T6C7XIF19GtkfF+uIzbRsrHWaK6mEDxRCzWjP/A1K96K+cmjYi1GtX9T58eHuZiSFWyepal8ETc2TX1PqH5zqyFmUX1iseLhYk05mbyMRtMRyynx9hMwRMEXgbX+v5gYoykdlxAtXctUkuN8BIzcYxUv8N1HSc6vNeRDq4o1B1s0lC3KebU/j7IWwWFmvYxxiXwfT4pOVYpMo/lwnVhHmbvN7N64OVG2Cpre8weuVgYJJGWHhh1c0fvnHIf8/vb5iamibLfVVplnhSmoEOcEUl+2n7hFz98071FfKeLetypNhYiekhxq0j/ZDJ4qnfThQ6QAXavQvaTufO2Pk0rRMiAk+6+XLiBw8YCWH0j0yv9V2lgiVlGE/dnZGYpjPVgig33DyAt5ZNPZpdqUtrj2Z/FxLJ59Gh3FCK+uqtIcMbY1XZz2hf4dHwF2W+mT8wW8p1U84vpEK76MLKKeFbTRrUmTzqQtfRbFIkvWlH+0La1ysCa6PFx7tK61+QmrggYJfsf3hkqMK+FptWxS4R6ym318ofZGOWa6PCTJFgvMd8HfnGgPqxb+41VZhfJuTandiosBpdQHWOz+cAsoqZbBchK4wxEjet0xC62IWX7BCXDR38X/8fFBpbK+7pa4AoJaBtMLBh1LlCCzeLYtwtv0WkNKg/skhiKza1mwATEEiUwoMQlzUsXz/NhLm3vjx3vHnUHp17+GvGW0mQqnEkbDXxhz53jbY3Y3rmTDjWG10XfGaMJsqPwClU2thyeaoGJZePJs6oR9o1UsUs44QsHYqb2W62Cjf2GuyvquExfFzkyVVK3Hiz7C0YDHe7gExq6MiNZ07/U2MGwtPowGk2pBpYbtf1H/b/5BFZLnAfhIhI5M9Rrht0ArcmKvGNLlmBYMXJPZqUKnMPwNlSd8vS/e9lG8vGujuNmZLm5p5KgyLsCW24DfUbXqBThrlZ0HF1PQLPjVZ+uHzsms1DoTlsiT0QIUPLLiIwTbxBksrvCQ/0t3cTyV0Ue3wxWaew2gsjJD81XG5YEO/4wyJO0INZhiY3v65MWqZ2B8+hpTeYJLLVKxFIDp4iVQUWw/LGL1KfjM6UrNMBtsucMK6oMBlMDR+If8iP/k9vGFpI8PtbIhUfHrRnJCsZ5qMdZXeCAwBz+k2toJhv3KXaYeIhZjbBWst3Ejsw82lYtcoP4+4hW8+303bVLnVZypbaV1eBq53ATK/+Hr20kFSTqIkxBEfNodajJzQ2dVp3nofnG+oRcPzjQrjR23VVXzQ3CWN1AAXRhDbkhdJgehJW2MaQesg/wCtlcYfAQSXNKaEQxgjZLadNECpw3pNrqHf1En0DNkUfK4uP4Zr60VEgQS7TquxzEEXvPKIfaFZvvolYTS00/A/Os19zX3Y1Ji4yxXHisGhzp6kN+ZGlincKHMyqIebpvD/AbzJ1ppBGBVqIfqAcmmaW8dWUZxIYb/4NTmuw4WTDEzTt3pTeyMAdXW/Lp2nCppNBff7y3nr/F/zmejpdD5r1l+6pUla61ZKrBmNnUqdsF2+gbrJvXP3NU++mdH0Qe2VPPuqoqGmFikT/q5M5WpoAVIQjGiEIjNXoaV3sUVX4SGl9wrgliszkSLxG+qUmCnwJbThtLxLqPUDaOoV+JyLkG56M89gp1qu62Kizwq1kAC3trpmfx95krldxkBSZ9rE7ALQxPnTCCbhLqeZsnka97YaGZTmIY6rpqAiBITj7Eum2ijYRTjSH4jklGRxpYq3jicL6pV0FOYN1JKAs7CN/OKOsacBWnzjzxosUehsWpcUeyQ1SkI+H/H27pMGlrbMlw6YaHd/VLldwPUxOO6p7xc2KSl+rllsRlwXs76weRagCq697DXUK1WSok0BWdRUV51LbLFoLNA7CEHhdpGTqhZhOrx2GIPTvFBh8zHqypm/dk1pgWE2aJu+ZPuvJ/bx08OnNQ9cjUes2EhwhIpRt5WTy3E3ZzsrvL2zxUTDcRYys9PVjlPbFh5qK/9yJ1P+i2sclQZGOqqadqhYgwUztE8GSw5Nx8tV+I2cT0hLNQP/zCEUJlMVbB92Bd0cu2VZU+bxGrpJU8WXibK2q6R1aW3z1No9uqtXS9uXLd1b2ey0QkAdUxeF0qQhD43yArha3Nqh/x3RIw7RtuYF1il4Fzdd04EtNY/1vn5UpP5YbLO2A5l2GmihJ/37GtR8j6QcSCbBRhJRRZwszZQNvybfzDFhCmzgxH3jeCUpqBj5g8Di0FuiR0BaC4RZvvK3Hgx4uFyTdU3ZgP7OXpRUO8kyM9axfWCMs2lwCEWyhzCkr51zp3E2PrNF18vWnwofjlQgwphmga/hTudr05PLdWMBoFkKqxlEHf+EMDQgjb4hl851ONt0HI44WOnk8GrYuL80gNq3WnSOIMC8cq0g8nheuqahdWmBWRmibXTOnq3viwSvLVVkUzZa1pNG8pCN8FdxNm6fzP7qpvLJlI3eDnwJwDwU/gZ4pZ2FMeY8mV0/Iy3fwG3N6Hsn4QrNhr1P4hlpVcws0xEetxdOuxveMYUjyTXUKL17MBG/kNb7anaXgIPywa4h4KZ3OV0KRinpfdyq6+JFuHtIiQ6/7oycL57I+cFMtXE9/3JV20W8XCASxnNaTI1BSykfV4U4fM8NMgIkeM4NaSjQPA6MP4Q8GtJSu5UaDECDgog2yu3D1Wolss7IkdQnt5f3qmH5GuY5G1XyON1J/beJxzBX6hv/ej5KiHQOgiyDnGsMfv9xeBDKxmGcopfc+4EecAWSVbzapRd8vHnoJi5ObW/jddtSdk1tqF1IF/+0511RpEbLen2tU3S/JqEE3TqU9pmHoClnSs34xjpLrsF74pPJpD1pWqFsCwuVQoPVQ9UeOIjdUf3EMNicCwmhtv+QaxCNr3qNRduak9PJfKc3e9G3fgJepNmNUjVaMhfSVVP+rtI1iACiaZO6si3kQ2S/mVMb/kK6QsA/l+imR5tbCEqjsj1rn5g0uYeeyL3Mpq4glzmQkOhzc8fEDgIBG5XYKghDMyWESyMIx0RwT8zmjW8UA0aoeFJXWMLGHB/zPwd0rnXfiFKTXlhXI1nsLTuWht0URLyXSLiSw9Jq5MwsK2aok/U7dShOwhXq3ceNV0TBumFmkE/+Z91AyXKlZDTSLZVjahLEkhraVLAbCJW1azUCwjij8sq5rHBtYv1J2LmuM2CIXjtlg47//ArTg6319G9SSzO70Rry0hpKSX/AsYK5fk5DK/yMiHtoklBQM3Eoy+J8xTHms2hb1aKTQ8u+F3nm6cjCSl6R8haNeCl6su6gyPqupdQLUYBSTL2u1I2ZDM0cFkvgJsnR4jUymgjEERqTFV35U42+59WQNnnYIXOWrpo5Vektoq56VttGDu7HTrd0Zt5xYcGdwutObatzvFlpjV0aYjSyhwOnlQZr/OhlfBE87u5VgmX9RIDTjizKS2WDCSgoneTmbAKTlKWg6ZPAIuut9rT6za6V3HqptrvpILQlfxinKkXNUOXfwV/eddLLcoteJh5WJVsjkppJI6h2lG5TxuL97a4PcVtSq7YjVQ7Y8q5gSW3IlLV6BVL0YYdeL9o/7mxejXXiLWdTrI1AcJ8Wc9lhilDTFrQuvmQ7s/TcpWk6MuU/xtELFcI7BVrQIwIlMd1ezAoq0o8CzgrN/RUkSQMfsUkcYYpZvDZVMydBphvhhse1woXLQCAmsyosVcOEO2wnnbaqpuvCfweIbC7Wqd6vs17fajPB7RIyFWyzblEOvlyQgimRAuRo6VohJl1rBwoaXTywpGUyUPB2DksNUgGab4LstwHkPL61c6QJYWECyrlQUqPlYOO4HVJZOpgTHFAWyXnEJeSy818mmF9fR55aZ/3d88rO+R1On1kuykteMKD0tfZ1/peQipMApiWZiwy8nom8JbFT3iGkUaIam6MWZDGgtO1/ah6ccVPtUEB6hUR1z85X2VTgbe1JTHtjUcHIScgEysDYUe7I3nv2lH5tQPikjXl2+OFVRSP0CzvKuAH4UBgwx/hqbbqOLIFpkVY7ACgO1tuFeni3TKWbVgWEJTN3WLYgww5mJ0CXGhNIgVvWfrN2Sh7YWEkPWmQJf37E8fjlgLx8oBfMKscFH85m/UiTN+kSUZaHr6rMU4qAJk6T8vdyPdLdwfOpNhx6T3+NBcrJYJHtblqyiwOStY+alCRpiwvSxf97BErIKVMHMO7/cg3ixsSUYddx4WnUqwyXHzfhGuzBeKJrJm4+Ah7qITRfqhjsBUNmHl1crQ8vQvuhpTZ+YogF2jtDl13C3UX8/XyCgXYJ7rdmQEXFJ8gcNDFqttQd90FL6TWdofbL7ZW8fWvpQO0rmjFofFlOxHRlBsUJ4QXgv7LCSClDYAnHW3IsPzJYQwu1uTiCagSmCJ3WfoMryGHT8hi/CwSyjKwvdQPnyek0eRSUUVahgwd5aqnWl5RmtuyNj+5EsLFgKZN5PucMXHwcNS1jp6dPiXHhbE2miEIJDiC8Jb1ddYkRuoirqIq+JVabtX13qy4azbmVpUrlBMEXyuQ3cLP9xGvC5Hf8KTzgSDeGsc1Sdnq8hG8Ek935Opug0ncUbWcH1dHcAME4uc+HA3BKx9f3ReKhQPUWLLbCv31IrhabmsgVSXSh24DwqubLkdd8BSsLR7La/4kwP7N70iDL/Py2qB7FdEsaOiRZ7sWcLKXZ4EiNMa1NAEC1KnYyzG2hnW7ajqi2O8/XlLmTqvP/tKzRAtqHLjmeMBUMQs6HKTwyKNheci+V4Pi6jQwDoVD67QLlZ+qwFLUUh3Ed0IfMgFrFpy6tSPEGQOp971EbwHjhX8hD73QrktSSZLa0ucEFZ14pX1ZPMY1ygFZd8ptGTm1I6RSrdXe/Rbe73Mct+eiz9GSneytllSMOhp1Jd6iH/u7VFQDsktyfCwnP2hwgEsDV1lQkOko/q8G42dEHEXvnnuwCwYskF/Lf+ogWXjKe/du6evCot9/+ukDMtrbxLxDC9k6mTDVT4BTdfTu2GdrjQ9X0fmjf9Ea1Pe4E7iLsM+3AGsfNr8JR8GCrAKMLR5WDoFxGo0+l4Pa4pq3q/wizxUXXGcRp3Ntvu8mWPCeSmEaUUKPed5hYUXBWUFRkoHCADxMRJ92975sjImTa+zEhfynGQQs+uwsBSRNU4w6GqHhSp7RqCmQaqRy6oIcu/7HmGct198qNPmK+F+Aq94z8MChMprx/C3mC+pU9MggOvmlEUAC4wRbPvgvRnvgaAaKCM6smAn0nA13AhXN4xRJ+QmPgRbbA+VjT2mAcEimHFnJ9fwILYaTTXaGbbssxjAjCUbDhnf4IRtfwp7CR5WXPg1cethSUHi3SrLd3pY3Cu0PyUcEdOZa9gLFtLeL7zWOBffgt1SXYivcs5Qt2+31b+0URdTCb3MeBg7cLX8V+sEmHb71i7BbFQ3Ylrofl2WyVSJB2ugmmElezWQc28843eWhSxjqZdMbY8zBX1ZDjBpCnLEVzwsoXhLAJF8BxOfyXfHhXhZ4OnXebrnISh5JxyUcMtTu1R/2LM41YCJmyTi+4jZb/XhgO3gaO3OLzSQz1rQ2C+syYJ9kMl3HtYOUhGxJSmfx7PXYfUSBUYQKdgc6wMavt3DqreKdQ9w4F4FkWBgL90LD0uoOr2Oqh3sSRlNwuRZ708FQ3UON1wTq1bwBHaAilPhJBLe78S/XjodqXXnHmKNKoofhTaHja6FSrcyV2VpDUunxNMUyp/WTUUOI3V/WHJcozlYgAx6ERnC4T2TRfPew/LPYydA6B4LuGpm6DShW2NF/wRZ9yGhDpDFOrToD5pw5E1kjSS0NQTZkaah6xZa2sMU+Q0egJ38azC4zUg2qHl+uiOLG2T1N6bRB4HehjQN9YmufNfzQBHP449XAavld2J3mHYXpSfeOxq+2cPiXqFQ4gQ8/Oqc1cBnHpatZXUWtKK8N88XYNqDHQdb4XBDkF0D5WH9uRTr8vhlukk/XBV9FoxccZUTT9REzo+QMW2dwxp8zdPNSvvY5QIEEMI6p9dhTMoF62Fjd7Bo9rMacrUINYGS5Xxx+KO3/BTIIpXV0IAwp1uz3A4ZUMSxi+16RQITeAPa8YJZw8ZcUKrUpbrwCiFAhFtNnpG5rLiFmEMXHbCj8UUXVOZJwg/4guaz6A1rWIS6Mw2SNZ7lb7iNU47jWf+UMTt4WDrELL9aZZMb4frRKXtdaJ+B+i7Fhd4t2twr1H4PcqnqmtWeWuxrQA0pbuVcqDoX/2Jat0RWuOqde2JyxBzryVAOlg24ue+1wjYUlKoeMaKAdY4yq7wrcWH4cY70re9pTLV1Rv19HLNrtyCrM9vLeGhuqinDrLYjOmVRQqVi9QnYYgMQ/SolV1kQFa4uSH0VEqb5qfpJeVkIyBr5jpDKekNgyjfeMeRTvJw2+lXASpwr9gEkMNRVs+6oZZew/ww861LnJCV8cThJrQLxoDTpAcCij+fWaEsTkNrWfaNs38om+eirs3zIxeTZi+liPagMIFkNm8DXKf1sRJ1JvGsE/jCjDS1F93ZKmIGBWmTe43SGXY4V8MLDiqWW9oUDp+lOjEVFihGuzZpXOTug5ox0msyntp1N2UI4NipcIWit4AdvV2rKz9aKT9S9z6b2t5oNGUqW9Rg6z1Xpec3Z9nXZM17EjFz6s8SNVZ5+rk64pcZNT0cA7Pw86Z4gLU+AtX33Hwd7VXYJuzrKBxIXjjpii+VQ2RKExOJGYKw1H0dEtAEoI5iGBoWZOF4wa9A4nYKv9pmLU1syi0u+iBD7w4jL8lltNlcHDg1aPvuvtgUir6OOa8ESei411ekyEcx0Kgv3c8A/tbnzihxZgDqivKqJq3meUh5Wu/vWc+yG2VL6EoJLmFgNDUw4Pqx2/EXwqJyQ+rf+2TzJl9OCSLd0E9zdC5A76ctlcxrqUup9aQ6RJ9aoUetg0LHkXCXktqU+R06LkO21f8kFMXOu2Fm7JAp63kXHropr7/OKXlVhbq6uK/XtFc5G2/g163pVMyIdZyKnznQRLdRGTG+9DmsxAVvaCNofmiXz5D7mGOuvw8ex8U6v9JoKizPmhCpxkF2M2chTbX4DSHHVtNS0yLp6lSni0xw4HmZbDFczIDvHOrJ2g+YDLTicVgqEiwZGh9tWS0OI+Cm5/BaeYbI+6Q2HgMvUFxGKT8wJD7FL5bg04IWks/3s15XFh/Sa/1FyU5Q8YoVYhpNDrFJAHCqjiB69ASmYIOfVpjEVwjAOCZnsJpn3SUZMeHU4oXnpYqkGdSNl6CiLQpaU6DUBVcFgXtCARUJoDwUGwUe1Uhb6iyDUey4XsPr+Si25fK5pOV/VwiT150qZoUt/PWsWindlZxoPBGm5pbLBHhKixcpzJoHErEjZb7ch28RlfxyYAtClQY6y/GsxZ+AP38935EDy7xaD9VaeR6SKTuu0yRMYbUOY0Lkzov+eYKoslY8mDDFrPCIIr7xPgl52uaCKHAsoRnEDyOnkmNZ9VDoGpOJsE5Cz7sKJWJt0OH3mYUUIHPUixg0+MLCWPqu+AfVOIwZ6F1huk1hdF59A1nnJXTClTBrfAxWN0rQCXiBJZmUuS8xS/fWFzEW0XW71IIFze+Ja6MSnwYbDOuBiM/w0/e/lrbI0REQpNDJjGFmZd0Wsr5GV6aPhBw2CMNY499DEf0Rg1q2/RbzY5ElrHoCEkSfnPoD+K7L4CY+gU9ywauAgPpzzIanTvoVOBq3Rs9+R68RqtwNXb44xqutBQdd2S9CvAwCdZU9U+LaHtZtiGdRjteoIeV50FBZmKaw030F7fzPRSIiBde0wsnbg1aRTX74QKvHM8LDUvEAVcnXS5JqEGf2fFbyX/QblESkV6v2QBahjtdpB+WEvK7Mtn8HG8ryFGXec2QNYvwdCYJgfgTWiIyi+7iw1pyf/OSFIfCVxHM83vCa6+ENo1cAAATIsAoYOwylWc15inpG7FOB46CthbMXmHYhYBtaHoG757YEWf6d7Wg1S2DXnq4ePQMhL1l279z2sLgKLbYK3hVZqhxocSr1DFRr00CEsikk/4NzHAjPH23naULwpCzysuyMD2SzVJwj8JmjRFyD4MUXsNt+MMbpOs+FlCSwAK7cVnevXhIOIFHk7MIRWe2Ro+e+Fhl3e5Zbs8rU86/W+kIMCQ+ruByYxp31+b/VxGVjhYAlRAEVxVoAqn00sPCEsJLY9dz71V8tssRLsU1T4poe1m8FJZZ4KirF8raUn9lLfPtY0RBdtYXunXQXJDCPEExoqw6fQoa9efcJc9n69ERKGI8fbkDCyJEI0+FHBhQEc5I1IV+Fk9dgPHS18rgw7WbONtVsc0mWacItYWxD6KbIA1mgl+DJ8HeB1g4aG/OdFOHoXXLKO6uh3E+MZz5jHHCEkfObxjOJRWgjwDrVMohCFIo9MDW2xH7iqhV7IeICrWNfGAiLBElDjIs12qxB24B65h6Z1GUUt7QHpJIoK3/OwdgFPIvHkChTiDIAksXLvAYAafOBMXViIPl2M9sAwmMYTm0fUuAeDhFYq2quzGuApQVkZWa9mCxEzf4xY93cMwVWyOyI8ooFlP9qtwzwOIwu87Qzy1qvFCQiHwZqMgKxNKdjJBQVZP+ArNWDkvyT8Qs/xvHl9SUDOliqXAh2m0gSjdUegPt57jpvLKB54VgSHiMNCP2vYnJ6WxurZIxDCRXJCLL8kvetWn6uHkl96WAx2s7YyAAJV1vcYLuRkESzunwDmmLvogyM6vHrcrFbwH+JU7n2Ch3g9iQ5/KiTk+EY5IRRFDGpCjRf70XgUg4NMlov9s9MuAZOy77IfGGFA4xZZma542B2mtPwvQkMkTC/CReSGY7d0I5ib5yNmq+HLY9uRyoMd+UUh6R6gav868ix0OH2k2imIFa2AlADOPphLmDZgdVJJzXQanUdiYwnDLHIrmwMYVh8tx25p3C5i9bt5SGNvgHnrP06CU5GCHD6VelSYyMmS0rUNqWvEi5AwbkLC3rfhET8spKp+NbHYdDr9KaAWvRPs7Ae3Ak/iwkqNZQdWTmNq0uQ0LmJlGpWc64rksSMro0V4agXIivyS/KN+1rsOizLvX3exTKKDyM4NaDUVAcJkzg3In/gHePTUVfRwB1JErBDNxAnpj1bcAJlkdayiy+5n7bvGEywSOBovjYIqyLrzsF5vsAWtWpo7/ExheCSYWe3lZF1MITgM6xv2ezUbak0n+29ctdDUH2fl3tuyZs5Ph4REhT9DrOyxId7RSY48V3vbtpkDkDh7hT4HcaF+7N+8SsNly4EtZCVv5vFddmT1ArVh9ySjP7coZbrRBeW/Hhs+P1EG/xaC6/GZRCGOe3tHVrar0Kc0ViYBNcmpH4cs4pCQcKhFVHgl0TFD9wwTS13o4w6VW4BDJGtrqsFZggZinc05Y5E7wRQz8EAj3HXbtoSFTIY021t0ehYoCAz5q6GxTxLdzgUOh58G8KS4fv4uIcdPZ92btMw4WKPnYc5oOBJ9JlVZZN/LudJLZuCy1b6zkERtJI2snVg4WojqqyK/LC0F/2/LeGlRefKofRJWVm9SafK2sk7TYypWpen0OYifr97zfWBxf+qk0sq9w1++MsF1AmwQy9saQBp8KoJBQkVrEOx92kBgH4sB7D997WZqB+GhjADZGiF/VupW8tHwTmF7g10/k/gnlw449x8lW1+8DNmaf7P7oyGhpyFkZr8seccu+qzNlmLNoisQQJYnqazI/p5cmKw9XG3fjXdJkNUl5Wd1MXTkhd3KNtj9Fs+O0Y1eBpwvDN5dbfgEUZBd+/SJ9miGDH+jP7XLI4owbADsc0hZJ7ElyGcv9bHm+iEdU6BOzFz2a5QRw83vzcpWyAx7HtMJGfRfYvV7q+8TTRat8CXZWqYaDt6OKBVPU9dYcLewxYVbMLjgr4Z0ZMpL497ZOMVZoRukLGRBO02/DwmvyIayN0LCjL9X8qeLJzLIvh8pxaslG7JeCch6z/b4Ib53ZvkOAlCMr/pFcW8VX8fEcx56IRuzKBYdawY2z8/X/gnBw6Is/bIsICAiD2ZI6f3rqjoEDA0eXt2KsmAt9AttyMEbdJnEUsPYYhX6KGkinTKnGnhNgsvs/c7dGa5HasNQNPqhrpn3f+AW3bnf+VRKDUOgm2pYsGXZTDaZkytjSMGq2vzImdTz398u7hQoSrklY8lgZtwvOQqP6lbxdRYpJ0eBRH+WIq3AgNAkH/Tp+4aLrZTEb2/khUdsuEecCI4T4LmOrKgz73Anu/oiBs9chFG6mJMBG4AlerU2e/T6pwYqVOdYBVhLvEETEaQjcrPWWwCJ2mHVIp+I5dEU7nKEXeWRG7zRqcoOCgeqgieKWNXkzg5SRacoN++STVYD5+pJN2WfP1/9y1gxMuqYozpnZmmVcngOZeRYq6tPnvItCh3M4DIJnsDDXo2IM91PEzL8Ru7AcgeQ40IDFp5RUMTkup9YQRG7B1lYHI4fHyDLwVegZYn1q83f5x5n3JaT+xt/fQokxBAFjvhfr1/CEnh6iWN9G1oV2jf6OKycv9xqD1sF1bKG1EdWH9D0d2E9KMEpT2DUwYh/jpa430ysSyP4mJFilv4b4o8I3cqo/xKuteWKriwipmwYGMrAhiFjj7y1QxVhMdLxpk2blhJX3Ozkxm3sN7kemMII874rLOH0AlaeRFbZHchCZR1NIj9F1vgbs/b4I58aszv9QBiaMGC3Qc05bFFvrOIW5oYmPYC03GzwaHcjBudOl6/I0OZ8I8qygJBLro0uYLnsEGvtdP9ryfiKvHSusozK6gCWkr56CVhvLbUsns0uRcc0kA8AxB7augElkU3B6DE2mZ0QCzE1Ztf6aO10ogKwxg/ICU+qLDqcSAwzTuBNlh9aNBsnLOchKKzrsZI8v4glIQRKOuxs4wCwxhFgORMUrAymDCkY1/Rz3YG1R6wnrG5izAvnMvh83U1TUwWsGpUkERv6V/4cbqkCRaywhpM+rgKsRaXRuo+tUvAnqQGrD4jRsEkJt3Aa5f8h0BKAzieGh8LHOWTldyJLPn0Xxi+olFNW5QXMzeesoNqWYkioh4AlBWXBLmbBI9V87Ws3JVwjHtRYIsqlc4nTWsXuv8JBLlWXC2rz3TK5GDej5s7GaLNGPedTU29V11wA3ah/SSRwWVTzTkDz/dDVMzlhCDcHU0IaCACPP2Hq/SaVhYGscSwW2nwDtGZGDojlBVa9CJimiNvSS+sbGrBuTQnFJouoZQss1xJgdWM26LlpLCVvl/RcejGml49rEi+1hW9DKoQYZcJQaaxIlUc1q2mAl7YKyjRgjARbRHr9ukqkb+6AyNoorJ2UkKa+qXMMksnh8g8BVnK7zq3IukFmzaGVsR8IrW6yeYbY1zaYVH653rddEhHPoJp03wdWZgIspX7+DjglxKilX6RpJtb9CuuyxoroazR97UH5cZWixFeW471c01yoMAErbZ0hIdLwj9SvpZnLoMrUOVgpDyWJrNxLCTuztpCi0EPb6sb8GRb/L2Rl2L72R7K84lESqqjEvhWJ9ZpblzQQA3hrZVehVdZh7ZRcwBsghkeylwsH/AJhW8DhFLk6sJT/6MNqeRBGkhqaQSesE4u2Gy0jTawPLb3+isdZZVRZKPNyiT+Cq4KU6rQqOgE0+lPFsaC24FpFSzapF6qqyvAr27IHEXP4cmEIVR5oNAYeSglRhz1wdMt77AIWr10wPBXPJcOHmJVxMD2EO68ijqDz8r1Er1fIa+E/DCk1C1DxGu6e8r5vBnRDddO4Kz5ypJ6x57O96j1w//MT9pX65KbmoSy1gg91woiJPaix/O5ErI+G6DfF6FiSkrsJYxGzzBSDYC3z8+QFDTw1Dwap7Brxdi2u4KEAHxtVwnnhRmFpvyOyuos9Bcp0MLLaoL/P1Pz5qaxPkHUWN3nJjjBrlTlZ2qN0SP61CRzyDbW4PqUAuofYmTH6kxZfzoYkKyJ9xVBUaHKL7FAlXmSFDy3H8sx7XliQlf2G59WGc0QDyyaYCy7K4rSQxlkeDKptMIe9vlhdpVWoNHc5NNzDzRgjBJcLN3GMQnxPW+1fNqMOXK1F97XmCJVIODaW4cwiQ7fiGG2hXaiA57jsikmaFzHpRAVk3ZUZEn4LtEZmSvAk0KiiLPw8l2ZSSFReP9IKWP3xStITxafaGwiZaWrt25JfzgofUFiex/pMZEVkSkxISiqHC//BmVFE9LbudCf44FF9lpWi3vACifF2YdHK4WRRkUOj1jtQo08yBFTFrdWhnotEFuvD/BYq2GOEB1WDRgiNHpmpNu5vGGC6ir5JISugnCNilFM6VF/7SvJIZdKRq0OjRw61bvgEv3AGAWEfnWhjD1D2Vob2fth5WUbwM8yap4djNJXj6pqojZ/NpElK6J/zFKeqHEJTbaxmyJgDK5Z4ZB7L1MrKQj8TdMnGI+0jeAo7o7b7gsgUy+fbEdVGowp4uCGIkGquJgLpZp+KjXu+R25xTw8W7qGSu4tLOqjkbrxZNcqZNCueMqCuPqluwf8Bvwkil4mUiqvzXgDopA66TWXBmryVWWsS6DklAQt4DRW9XbLx+p0sClhBXhSR6QzQM/GBkRJCDY7PLHnntEbkZ4oOk9YYyTPTpTAmtkCxp83E+o6Tt690qbq29SyNhYa0yVhaSGJOh4hUWUK1gDVimqvNDQVGkRJTWdHa9o0edyKLDjdQS3PsglaBK5m4Uk3247PAMoCVKYElaCVSAvVxcM49F/V8ZMl7RvqwxGeKDnIVnpz1rMUYBa4WtLV2d/UxSkLWadwWjEGRPwRmhrRWFS3oUEh2OpAa8FK0yJUWW8nTI3x69Jk9kVn1FKwsXP01dULZFankvPkIYk9Rhenid0bBgYe5rDvm3xXvVPIOag35V0rVoz/Ha2yIpPpIFUkgfzLKvjTfnr4iyDpyGXcTTsHl5IYFpA8oLJ1RfDw7BFYfRFJBfzw3hLwsskCJC4CIao8zJNIcsQzy5UIFq1Vlr8qoo1kmMldAVoFH7GABiN7twEgFN6lZJ5D5lKkYKIRRn7houfN+nfgAWfE0shitm2ayksVQq5HGZQMUFSIwPJsySaaGJ4DRxplkclxUWNzznAG23vPY1viQC3AtwRFgPaKxusLKTy8WJq9cgkfzhVPDIIAeOJrIOgZMQER+ZRB1jaOdPO/vAc/dEkz8gVudtWPQrCoTSowfhRS1pUIlcjiZ+qszVmEOXrRJPnUCK0DqvOT7VmBhOE9iihHjELKCwoVFDmSGz6WGc2x5VWcWU8wWHjwVWVX982KIkYqTFeGoK9U0p1KQyfITyyl9VqOy0VJFPAmx0kfKc2BZUbx/DD2TJTRZfghHFmLgiWNDGMR6RGFxsfDcEN2W/pi9qcLyIORXU3M0ZzOhOBfiyENS9VtLYUcpvNVs+X8HyxSuMgSWaJNNGzTNYRUw6qjK8rnnI59FFk+sxnM3s+bU+i/tlbIxnH16C+gEoJpDgSeMle7vCVZywCqJSD7k1h067C4gvcuyrwWrM57SWB1u1iwsv5oqLFsyk3WCklJyPSWkRS7EmLM8NJSnjpx/Z0XxzdOC5XXnKoX2wvVdL36dZBai6kDR1fM273Z+Mv08ss4/BivuYNZvBa2IlGLTEj0yxaqo/vaPaxcsv4Klk1zfJmNYj66rYDG2iwfForHuVVic8uy0GUY2JGChf6YKK9XTXJkZvfZjEaq4+AXBmXw3lZCVVlx5UPABsBvNlIJd18GExQFkxYHBTkMuzs5NjX+lSnDAxTEuUGv3jPfYeAGssnfeSDLYCiPPTv6XLhF8tGfGlYxkDeAQiXPHcrl5HguFxWvJkxcLtwBDuWQJzrnCgiA6nKLkJGR+66anv61nl+1yjMyZgJq0X1Nk7b4Il1RRkVYdCJH5yBA71wtpmN1i2N1+ANYHzDpzm2HOddbONc09F44dbhFJIk6CTkA3hdJE9YiN9F2GklXrsfGIWS2VKah1asUUAwk+qRAQixizzOHN6JHcpPOEwpLiOHG+PQbu6ZN92rSpqTOUxKYY635EmvLA8EyWVv+S+/3nCgtsXbeMgxrto7uiUVnjaA8h64RdT9+AssajEr9Ljjig1Tb/o2GwP2NRKmg1wKRf3hTVAMW4tu4Dhte/95OAWxUWFwuvKKxtea6wVONq4Q0Ka9f/nqHnAcraoPklxXT9JfuWsfxlHfqVD4AmYZsu5yen8pR9gBNipwnuHFunL8iejR6V89VexPK+SyquIR62uuJpGdSxREq40OaqGqhjcIwboWsq/AGFJVqgsS4oLMrHFJZqCNIHFBaM9uMH02lhKnEqTuT/SWFFegtx2XzeZDnyoLIGzftpYhyjXPTiZv59zlNpM7Jbdj7gidg7P6EcoVpsjV5EUsFz9XqIn1ST+UpuuDaY0gVEFu27K7eYF9N3iBvPgnswyBA3fzLLWwfWdtX0130ai1kPXtxZ+LjCqj3/RQ8pLFZBhFdlMTP0+jd1c1VhHe31rRILA1T+cgGanNXOzBRRDnRcVTmArOokn2J7PzfAAzVzCqPDXOD9Zdh4Z/BYgWWqdw6f03IYb/Nme+XgT3VpbxrJ2TyTBaw1QBSqZF8khYik1ZBY0QWWYojG8Hv5FsS6X2FxsTAPibpvVljtXpfl+xSWk3WZChh+Jt/1/IZFmLhFYTH0owoLdB00+COyTK0hKw51UZQRd9CSyA6w7s03wEDe7D4ByniaXchIj5uez7Wakj7wxBGdJYfbWPSa0c3AErGgknaLq7XXywcVmsE6yusYZIUTu6qw0FhZAH5aYekA9eOywvJA6QfOi0OpTDDWQsi3hvnnG02bS943h2X7jxTW8RVhicrKA/0URpfJyWCLiwfen/p1llBsLsHKwKKIBXtcQQfCYse2vWeImnPylaElDvVU0lGeXOE18rW6I6NyxshXlNePUH2N91f+J3vnuuQ0DEPhehgx6wz84P1fFmpx5kMjhNYtTctFDV1bviTbkm+PbCcZ2Wxh7DIWVfSnmxlBxrHEMYBFLuosPPTBXOEpCssxyf5OHMOKV+rcrbCYCeS/XNwZ4QbBjgbfi67/LYV1jBgYvqOFwj8Js/d9DAayRm8JWXVLnPqWCXqXRd7gGQFcYGmUpuqepitasleHaRw9y4Nux1AnKjpMXULFt3ccGf3bFVXru9HpRgiYlyxmIkW3FBZMs0c8ERp+WH5xnc7JCgvCCFn3Kywt6a0I5F4SrHCwX0/Z/eFjWDsNYmD43hYgy2w0HwPiCg61u4mko2VlNu4149xvq7rByGhWZPsDEKiWqGobcLj8T1qrd/yrYYIQGHEXJKwGljiHhajwFIU1DGKdOoYlLxct36uw9On75cacFGgrd87gnBo5tOIwkmv+vQrr+kpRXt+ibUP1gKz36qyDxsgLCPaI1Sf1CNYe9YK9u+bv6v8YLn58bm1yS82w7KpAVlBe+HAkYp2jsIZNY7LwbIUVBrLuV1i6ZCiGfp7IHkGNEKgQVXeeC/HsfnGFNYYF/PTHK8qhzOrqhV7yVL0bPkOQdaHpA5af5F/Too1nmlm09JujsJZdRCwuxPGfpOoL3ygV2GLoyG3ez1FYfhjdHh+lsPgUEFs3KiwWh+r+1VXYEEZ9GXwvpNBRZ/cV1vHqCisqJmX64wVZsKhUWLQKlGwUltJUv1Rh5b3Y77+Wn4LrQmq9brSq7R4tAdaM1/1N/ydW6YeMJEKMbALWhFjbtq+wQBZ7PE9hKcfncZfCssGdfWzKGX5MEpiuiE5/6K1QWPMehXWMF1dYmv6LUV7dImIOZjUK6wiRodr3CmuwN4zsoxRWImJWOyENtvZfEU7vV3XHQVoHoMQFJ49aQHDFsE91iAApwhGJtbxnKKx4ZeH5CiuKrFZh9cYwlptZWG+IOwWGV8d/hcX0XzNlGLGVo8lOYWW1ZL3CwpVnDm2cp7BqdGVrkfPeRnuTO4SEut0uU4QRS2HWcFUBVxiVHvAonZlteZVOm4g1ftrstm22fbE/HTcyNRmVi9+De4Ry13yzta3U1Ppp92eRdQlur/zPjWGRjFHe6BTWkdvYqBVWmjSEQa3CymskaG7nKiwKKuvJdP/fHsqwDKyZrnhO1xIGj6BVBITA5u5xrPlzhpHO23WvqpOa3baNvq8JqahFJreOFrub2sH6BGxyPzJkn61SG9N0enCkUgYuNdmUQh8iESllK83YvKWyL6ewmDK8EBh2CguZRaNOYR15mRWpRmHRlv14/hkKa6tfrG9a1TvaL5mQUMSSKMnQEotYSxru8VAEhCq6dz3WbMvzNkdxKeMdwOr7qvbXmkRUuXFRm+BgsMIAk8kjZTtMB6HCqXzmEZcVs7NlcqLx6NGoRs9R8r2CwiLIY2Voo7CIJgfSrFVYCVnvUlj4kk5R5tUU1tjhWG6z3fFlRGIx5A6zJgoBgnF6il84MHekqHBfaCl22gGW73U8A1iILOrk3zm5ukOzNWXI2JXgw7t3w+W2+lZhmRk4Az1eg0osoo+rnLkamD0tCzot1GDDnqWwiiCvUVjVnGGtsI4iNOwUFr4yOryR9n+Ewmo7FrCElJVLixsm3KFYWzyZ3YGRJyp0767Z3BVe2usweyCwrAQWCbzR5qbC8udEgpoBcIz4MLYyhrJM8R+4oy9DfYV1+9pgnhJoNvyCsFxvqlrIzDMVFpkosxYEQp0EIKTnxW2la4XFQTJriDbrFVacqMRwPE9hHVaDzg75jjgLdpQdES/oozgoDtVTSMhUoRBFUBiXWGkTuTgdC17FqLB48mg32Z8UVjicmnOMO5yqsCiuHra6r7DYh5oTHuKZAUxzMpJVG8WtEwQJmew+slA45V3GiXu2wsqrHHQ4Zh8/fFz24aMJR8EsNuoVFuEdfeworANllY7jSWNY0Q/7RKls69HU18JjrPereUJvQ6loeClFYbF+VMAi3BPA8vjxLM9RtcVHVOj5bTOI1QOLGkwvn6uwkqxoVkrE7vqtNw5It6XjSPoIzfrdIPkMlxkpNhQdO3/KGBaMWSLLbXz89OlzsE8frOR6WIHaKKwQUYKbXmHhpAfMlj1BYQGtnf3ad+pYAJanBtlkVB4JWCKWTcQRzPFQDkCkZe4ZYmIbPqLCOW5ZabAfEvJg6Hm6wkqJ9uB3FBZm/VSEf/L6NufGzkzRH5uaQqgpKHGTAOYL3zyF2qK7lXuGwooqa8zPhX0c2cziRGOtsMjke2BtKKwqPDT3nDyGFSM+5XKc6NrKlas3Ow4b8dk4400Z+cf3vOHHLANLQ7TwIwyrkxphzl0eZYUhJSDOhRNnf6XBvGl2Taven6GweqymQfgdYDVRNL3ZNKmsDWC1LIvr7oU2gj9dsq3TPGxqysmXVMBDFZY48vHjj4j68jnah49VZEho2CgsUhagtamw0qXSMnuKwmpujmYr77/CSuvpzh7+bSksDGDFYSyQxCiVyMWsIZOJKjKWmIaoY7Ixz55U2T3Aak6tRSw7TWHl0gJQlv/r3QAsK1lIE5YGm/0WYGFxGF4bY2hMWyZkESIWJ8aDFBb/PsCmPZklYrGctFFY6KwUG/YKC3dSa2DsNIUVK1GCE0ONSVaN3wgspgp1XuQbjyqF9jJbNaJSYIwmaB1FhTZrYGHZKTdJEvXGg6GfMktIGh8Z7GEKSz3rkav5qEix8aeIOirijvLMFYpCrPUShIWqqTrm/XlKlY/TFZaBpS1ksZ7LzTOdwiKww2xDYeXw0NIRnaywUll26Wkoh6l88Wm9MFNIeJhnbaGtDwmnBt7dJFD0GHvByx2m2EBEszGndJZpxjs+lJWnflboKAd/8ulKqo9fmC08SWHtj7bdL3qw7DGTymoMSO2YJBXzCW/4+UnScGAnKqzDkFeNfbCfzxnGtVm9wipuj7ylsEjYsozR8xRWz8FsZkFPmWuw5XE/2ituA4WVh7FkM45c8b7otdI8YseBJUJ4JffLQlT4O4CVm9QiC2Kdo7BuBVS9c9674yr8uu/M48xuLjxdYTF2le1LI7JyaChatArrKJ5Dsaew8EdmAbJHK6wGhNUXBYajka/9XPwcTbfbY3zKpZVnjWBR5Ven3INnsBoCCzOiQiExh4Q0qSYg91UKF0OfPUvIwSdPtAgs0pSqoww5KpEIFZTl/KruBCK7tK9tswiuJyqs8aHjVbRPo0GWnrTTKyxQQy+e2VJY+BOfQNnrKayD9/VM+zczjwbH22Hj+qzUb+92bfv2tmp+c6upGcCKxIp8WO+i1kBYqdTADjQhEaFlNhjHcv+GRKnogavmka1LC5+lsPq40CpgJcvASumgh4OnUVmA6kn2SIVF5lNiVGMf9D00k4bDeoUFaJx36mlTYeX40PLBvaLC8jr2bg1+sEb1MrIxVchp4MCCWCvN+SlqsYxhmI9yud8LvFDfLtKnwEL+DUoqRDDN7tLCuoI9bAwLXtygDhtglZKumq0UsUrdRFn/utGs+Ft9gsI6CAc3bLLjegBeuU5hZZ0l7OwpLCVkP4WW22sprMOGj0sppXF4AYr1oivlSyMqYH2z/Oh55b+Dy+bUFKGk1SRuFIYYnZ+20kSFi2J2rerYEi6k2tgIgqhj+UTXUG4JIJu+2C8zUhUeNUuI1FFu2s4sIS1DSOg5/KlHosFwYOiBZP+Awjrm55tsjtpA1kXc6RQWj0JM8NtXWEcfIS57HYVlXsHhtVIAy1lmB5vTq1JYLG7gKjhOihgQTvlXgSxUHWIcPNIJM9mLQksnl5d4bfpfp/nVeECNKphPUJpoNgUgU3NPX4bvKRxmLfZ6hRXeexVFue0orIg7/JFKnqyUV/SCrHYMq3/dbZyRvd2rsPZ41Q+9Q5qgs3qFpZ/5XjI3K6yjUFVRxD1XYZlpMzNpKF8Yv5Ksp9dm7kRhFauxHmV8sRtmMYei8C+YxasMUy1p55qL1sWDm0rQTIo6m3t+6/CWsIm/PZTeWXwBexCi0avZV+7ORcdtEIiiIMtWU6X//7vN+mp0NJoSCAvY22uKYcDxI/XphSSuu4lRq796vpagPb+XQxbAKDssrdn43D6zcYfDir9hlNJLhGcotyX30Eex6pVxFq+w/68COLfC3zP/xORJSjy8Yak4tYl65J8g/s3onsNimybG3QFs+59mRWTpJYLrQCAr2T+NNYcFhvzsve7tLofljgxwpiS5rlF775V9n/YYlOSeWIlS4rXvlPeUox5nmkuTB8S6All5rh45/xBoRZf1LYc1aOCYvrm81bOJVFpeiVB5UAgdDA9JOgOtDotH0UAtLFKXw6LshoiQSzK7803tXUnHbMTmsTWcLx8S/htYGlzxM+gpC29K+z7GKdXaO5c+pSuWQKzpDqv9tGfqMP6EhSgdgo7yxwEU/NAQi/PWYRFTZzbX9p0OS2U3ayRBrajfPUs7pBDHqzinpLUk51UAFjO85n9mEot9rGVW2VcM1+OuZkvnGkzWRIeV6PZO44gctQOj8mKsAl1oz1EQx0rOZok5TQ5LIbb3zOp1WDzOWsSQ7J1IJl20aUNCkpf9NEfIOyvqw+Wy5z/sb4aEj3Te1fci1kClKTeLV9sxX2ixQJaqLjzFYflO6w0WBCpKxLJFkecrPVURFN47LGOOh1auOixC9dFhu8NyD/mPiYEi5EL7J6msUr9fnMELSlpZ8Utm3OyTxBRhIV5hsabxijfjCmR5k3X9t4/W698Dw9kOq66ZDuv4dKKd+KlXYQtPq4sOSzWGhhilJodFLDBLFPvUYfFflpRBA7bgFhoLLJI7fRXR/juEwtsqc2XEWuaxriFWmnSzdOgih6UVtwSa5rBCx4UWay9Biqyop0kYqTqs3xDHI0uqOCzFAAlGDWg1OiyGhXXQUE5IYy3TKIdFWP6KX+Bw1MK1OySrgCt81gpi5Q+JNVTa8XDFG7nOjPUyxASXtcBhVV59msM6GPMJQeLQOfhj6kph+qnRePXnCC9dcFiSGxsqkJsdFr859O9RwEN0WBLlvQ6aMFREwlZCuaC92EAKisRlZ36KLc66WLaUWGdhObEmfVrYvoNw/17msHgn0FyHlYpXet6b+7C5qDPBKXIlNdKP8qleDx2MFlkOJZCxqxaZdXJMayraUGXbXOljYBVPIyoPUEJld+f3ZAYLj8Wc+IJR4fphYfVST3dYCZe5VCAGSHAzrHBYbDPNYSlHxxNXJQxZwYpEGCK6uCwWn6gF7UYbBmK/c2QWQzQ/jST2aJZcrZLWxiwPrd82SBXWOAKK9fGgtMeKPzin1CwcWqOy027KNRxBrGnLJVPvKCkvQGaRw+IaXOSwWL+0zmGlAuaHKIVXlXMi/QkuilGg6oqwgVaAp0OjPEn9ZXhqPpFIK/AWukUBWKqEvileikRExVQDwwqPlZd+u2HBPFa7wwruZqGiw+p0e/0OC61wWIczVSFzDcrdGtgdeR2y4n8GVnivYofd1pSUKPugiWoEWezs+4YNCvFME2oAVg0ODJumMevKUSHIGnjzfOKwyLkGVzgsQqnHZPU5rMiwgQYrOqznMFUsTt0nlrcFUHy+R4RC8YX4WjhDQlZFYLnMtrTtaAAdiDhSPfaOHVB0WDGSHvlWHmv51DvIKkAHTXVY66eyosOKB7LGYaU1DuvxbNDWDKzolRIXs3waFaMFjhD8olbiX2zbIVLwWhEybELBwkF0YQNSDmV2D0sl1xA7w68qiux+/q/nsXIqTvyucVgpkGKxwyIYkTVxDovKcEWHdYhHlm9fadu+MtUU+HPmqqjboSYF1fsIrGh3WB5ZZWZ5PBVjZf7JazVIKPgZ+nJY1xPrpXQHYl3osNJykxUdVjiQRQ4rVqY4rAMTpcwClJALxqYiKKoOq4dZiDCNAZ4prxD7r2scD1O+BbG0k2uJlVy9ciNMcFgqQ+6rHFaf3bu9w8r70xHLoGRR2aztDBxqedktRa0X2Z69ArTqDgtBrTH61qvxhVaVEU3UGraPjlEZ3Sgri8+IZvP0uAex/Jv+uPbX0Bc6LMC9QGWH5ZFV1wiHpVY02mE9Xqw5ANVxVi3i3JRFaVJ9+2pR6FGgRP0EFG9DFltRo0HlCdBynHIoYY1odQVByVas+UNXOqqEQijlNi6kRfNYHfsZptT2AId5Dit+TneNw6KVI1k0h8XhfFPRYR1/xCh5qGM7zdS2CVqvjHTGINpmRuzseSivIyI1HVYa5YvG+TbwUm43j0SQAqLqfZmqgWfS7l6bfp8MCbmdZ1os/7iZO/5Sp1X14aMpOCx3Ieap7rBSwe9NdViqoJEO63gKRS9KPZW2Vy4WAaVDsU19lWzS/Tgzka5qbNodVhoAmRHgioSCG6xYU6LoYUa4cW+hrrx6ixZGbGq42Rey7ABHwCul2zxehgtxncOKyFrhsCZ90z0fxyF7JFul7LRaclXHK51+SiuRTQ0KqSywbRU8NB8W5G7nSx3pPdCK3uhDsQ1rikQrrKKICKfcrGTEutUj/WwZZLduSazhqjusODBc5rCizRvksI6TO5u4JT9F2caDJ5rIrQdNm1a5dfqo0WERgy4tTrOCsXBcN/o3+a0YOe5EcgFYhWEX3meBxyLW57VUkXwTdSnM/JcuBYH4ehQHarbJyrnmsNo/MRzrsIj0KzqsApUoCGOq0hdu0Xbk9yqyoeyw+oxWBWOU6J5+Frn8ZHzSXeZTmVhaP+71SL8BSzxLixX7gSdahmr2TFaTw0KVYxnssGhFAxyWuSXck4KKKg6utKIBZFWBFZHV4rCqzOpwWIVOjlqdVzp2RVWSxjj5mykvyBCtBEkK9uMej/Sbgcwc5PrMVY0SCxxWZWC4wmH5aIeiw2IqygyTYjBMU+tU6SGqQa+MGpiFqg4rtUzCt3PBd3L6aYPE9w6rwJI+Yt3MWbyR+MzORx5Fx4vOvBbNDotY8VhmOKzY5XsOC2+lFV9f0MzUprDFXA1q2SxY6XAk5JDQ6rBSxWl1O6zCFj9omPiXvHPbbRsGgqj44AIE+v/f29qDwcF0qlCK5F43jEQuV5QUlyeztJw6/TlUmMpp7icyPEQty02zdC7Kjhe7/YVbc+owsn6PwmpkvfVdwuuLWfsKSzvSPmohvKgBMeg1929vF1nYWmEdXDA/r7D2ofVXUKsfHN2dz4qO2zn07t3x2HlZV1x7HzNfvfMAYoq1u+tb+d8ksq4qrE4Mf6nCkp/4C89hAR3tVYdSwanwRsBSYdFoZh1WWIyxx6wLCosLPket7Rd8YYcV1t5XzeQTqqlcH8aeQH1zAKeK6/3SbR1WUgInQ8SRWPHoJtvuVlnXr6ZIdmrczyqs7bLCYlGKaqBI/lqYt2u16N7wzxfxjMJi30S5SWHRai5tv0lzbcvOebgEsQ4fedTmHbJiy+3m2qZiGxtOSKQDMtIhOkRVFQ58dqjizT/9Pxz+CXnDaYUV/AFOblDRBo/bkRp+RIpiUf+bPq6w1sy6rrCo9DiFrXcrr0W68VNJdYxY82gCdtQi+BqwDA3Rx98AKqpquH/atclLn8FHOMXftOof3SFZ+LHIDxq/iYlblraNqUd8lffZtn1SYeWzV0kiKgkvIvVtzx1/HBk0LRRWZ24LzX1WYeXxbb9Sbq0+rru3khLA2X+4ofDtgjPvsJOsxr+KzJ4uSCg1uR3qnN4smQLRi0vzuROgtFW4ejwrKQNUZYf3DEQQl68A15NC+N2WS5YHdwaFVWdH0GzbJ1Tn1H/8+uxImwbSjFX1zP6o5frW5AAFjc/bbdN+FyAXFBad6/OuEXavwuqeuYqQ7TwbRNFRTHg6KOrL21ekYYMvhtaWSuilfLFgT52bztcWbcVg3AHFu5luNbmaKKnnVoXo0HLNOyK7NGIptlrto3rM1nkJ5VY7P6CBlfZklytU5ZdnIrIcPlUbV+w67GuSLAwKHVZY1NfgwsabbWtPdVQdYnHLKTp6yiZeBnPRhw37CLAt5iWj1az3ZQEW++GUafXsRHBB1RpU++nRpmMYdNI+SClGrra3aDdg/EEx593cTz+L89hGVCaAi2lXavtPeExEjyMIPs/aV5VJivhqvroA2asxXzW1deS4BOPKH9bxVXxcseJEfl4K68rNvB9eYDQTmCQxaVcKD4RVzko8NI0AcGCnZ//LpqNDo7VCyqGDhybdMDtCDIEsnQVIgb2N1ghkcb1QSpWpb266cX24JHSokm6CgxXGfYji+S4ItW3U3qkV2t4n2aSORB/rJbWntu5HWakmZMk95XxcvuXryWEe96c8ROV//u+yRIxaNJxXeG8HRy7KNAK0ndR9AtQPDlWOiiwz1YVTmpIucMZrWJBLLYM1bn2DdDHKpEfhHhAhVyw/80NTm6F0AsZbj5yLCNWx+CVLb47T/6Gi/ZTbrUY/rbMg0ARF1lFkhl/lhlpkhdi4wbZg1kmFRZXBNtv9tO9xPtY/o+0qp2TMifocI3DqBRWED33ThUEpYICgWl+SHBqkUsXVWVsFR0V7FqbU596ZKSEwGxTQFYsE/AjyBvKsE7zJ19fe2xzEUGTBjKs1SIFkF4aGy6GXP9JT1A8+8Sqj49fYeWQJQjItvEsx2Y/uovEK8drVdPfXx7huIEt2z4gNrUbN9YcOFr/c/E25zTbWROKKaEgx4MpMINmE4GAywQ5jgHStEIa+6oWsWVuwUVmVCEoP5OJguUm3prcMCTjBHKNoINgZkORoBS+2gyEQhvnDhaMa2SFlvfA2W1ftfKiNGJyLDBFmdUBPl0vg4aI/YTNFktDTC/CoKxa85Kf+GDfbpc84tzW2zlLj6svUcSeRqGoPEkkg0zTfogdanlteKAp5pMOZzWgNHekcrBUMhxtCHaDO2OZKNEXHc+LUd3F7Ew0S22g+DUaocEVQh3ikEKN9tA2lN3YUVr1AkHdW0S5vyxdT7zdG0q8qVqzrN2R5iQigFqJdtSLlvhS4z2AV5MFHBVh5Jw+Ncb+xXHqCTPudQIuI7Y6vOmsbyLlfZHmCQCtXmbhVUYwsMpnEFvMOFJGsDObmeBa8Ccs9hUW89i5xQ1N32BhgMiNqQuZM70LngUFYMzjal04Dyn285U6RmyxlcUPBnNJiFHVzg1xOYUB97L1lpE65XVU9108ySWdQCs3kEhUMgrUzd+tpMZ/2HTxTUJrG0JRjqvJ4ul4NuYJhOnqOe2z9Oeli+DmYb7Y7Pye26EFh3WtbKqx8Twk3qFKAQ3sCJ6dInZi8ljuMxkhAgDPrYAJUh1ZqaGBK3BDRCD5SsOmNKwlqLjvesWQ4oJyYrQehUGB1H0RP9GGiNUQvyAkIV+E+uLmZOmsMGrBMBScx1GtNM5hlJ+jqwsnq32VX7rIp4HzRzl8GlOFljj2+tx6WYM/6szy/3yGwijKHow+OyKhXxZZ3n7JtuTxKq/CHwqo7YOFKKoXVnVp5Z9n4FRwL0lZOpF8gcOqgyIZyWQnWYSR2lhlgYrqkTCSFS+0hv/ABRHF6XEACSzILhm4MYXFGIhS5bHpwct9yQzCGToy4mwKcucuSn8GkZhVZeSosaA9QuU8Z3m1ROj+8ME/XomOKTxNcCVJPn2ClqmIejxew1Hi2vrdfnjlus220C6W1VljEnIDWdtMlr0MpFwbCUFhedQYsTI1NbRgwmCm1hiUX9VxNLvJN+pm4PlmvKo+Jc3YGxekQFw7MpR1HcUEOllMuO+vJfQ8kM7M8lqrsuJUkFB4NEjfWCktjw8SHfDqyzWeCPCOy+qRyrwOqC1rVQ22QEtzaPHREUzpB9F6V+oSVG/HOAP1Wm6uMZTrte23Yhakt54OUcL6AJS9nftvkD2R1GB2fhNalh17PQuvGnw1sGDFr8ChIXaQ87o/UJqmVz2GxA1szw7gWRXOiWJz3xiEMjErgbkqrcCazOJmaaitzI5gVjK6JiSeamZTiURxOKMnJ3ACmP65RzCggcxo25jKvCjRsPcSvrXp3lJQa1j6gj63eLKbUMhgokqkDnqnST9wxCsWnjjgNGKtTn7b6nf82pRJ0+VSWDPNq2B6b2OWInSpeYRxhq9H6zSx9u4CDSVj+W0BxRNMxzAjtIq2Y5FjBQoKZx7bQcWAmiTnqjU7UAD3uGJNYBcyo+OaZIxMmhZ5C1MV1qOkN2AoAlMIyL8h7/ZJB6LbOylLEypV3l2kilIyfXWkxD4g7Lwo25igJ8lqLZ7x1NplBEMw/KYrOMG+wIwC6vsqdL3DO6MufCypoYdjJ/4Fy/cdtl1/r0cieIlfLRzlrKrs/coCecCq0LCRydTsyong4MtKtWvSOFCuYCTjsHyoBDUhs7+QKFFpLRsHNflKTAza4iEBF90yNL4/66YVWlXi3/hu5tpbb/JMUvq/UvR6018L6uQ7ukBLCu4iFE5Ebl8gx/bD8LqjYcwkUqQbXOJWu/gYT+oJLMFcAyDcoGi5AR7UPBIlu82lx2gU6zqWIDN6m/yf+jymR8ejXOTBh1mlPYScLYZCQYB1kbq4POr3hmzfECnYypjHBLelw2OnRGN6wGmS1I3GXyoRMpWCdD7a3UkApzj2lyKliGHdN2uY6xEqYU/FYgMsoZiC5+TFGRu/BDGECgvrgJpNVB1HJ8VFWs2HIiFHiUj5+0zKJP8YdxNKZuAluSJWQdI500+FLG4yfcFnrMu8IPYkumQjxp1k8kK3lZipMXNdVoZDupIBRFPX47HO++xi/c+N3EnPOpeclCgtM6PiY2ZAPNuSjRwL1rKWrqWZkLIA0WZanREGPmN+pp/BA2n4ElNF8AlDR+XLqlgmuPJP7Nv3Fb5x4zbRjIMLcMyKXTJL2Ry/hqup5HHdLb5aRIGTEWVMcUamD5kXLP5uUOoqU1LBF5kWSp8i1JXzsDPXWWRVLgt23eyCG4OohVNZfVO/9yuUAZqDqACR/oz9S4mdO4robcIq0T23UBNAL4g1mbKDCDqaVWyz5IKG4VpWJsxbV4ionE1dRRU4ugUtPpDOXHIyeag8ADGFAjotLTZ4SwUAKl6N6fVKpxLRvgtDg7Yxr4Na14ZaZrMGTkOGuuTdl30iR2eJOltIfgdNIwFUAmqcspbUbRaHq6N61oepbS5N2gjB57FbT1CPrRoW57F+Phzr4Z6ecP2qjwe/NCP1rApyrpfPn3ebvQcKYJrWEEeItMA/RxBc+5PfgSPLHQlZL2eGCAuc00T18POSESmrF5eaycq6+M3PdA0Ni1pFRUlE9pFaE8gPN1gQwrWfyZXLzYWgGx6mZKB7SgILMsb6uOoyg7mpNMfrb1X0sBuJlnd117m9BhJzqotRzN76XV1214docbrprum/7n23kV1VRZRsko0dutuYHdOnkVk4IfYD5GvCMZTiTJ+ZzvNsFY/BAi8E4jFn0RKZEMmQ/89vuUFhy9foXsS2yHAf3gGOntnY52C5aY/pauD0iQDQaR+2WWaRxLv3pK+7XkMaDkIMJ9hzjwrWJcfuomP/4twubaUjRfFbUrf3/zatv7N3bioMwFAXQOY/5/x8emCCbcOZWdSa0rFVKTaKltHQTNdEp2jyV1K7Wodd9ndSn1Nv/Ty2FPPvR6pHFtH7ZrU5VN5aTat9tmua0JFXWTE9V9BX6j9evaZOGnoL59NG/gARSNo/kfG8eDyRFAvPw7H/amT9TEilVsayjfwVsUNnNq7y0ypHbhH8U9K+ADeoUeQXs8MANM48DXfYHgU1mEP36oX8FbFT1QGY5PQhcips4/R4OXwF/68ZEqbchroCb/Xhp8nE2sjIErk9anwtPP+wM2OOYLdPN2iuRVVnOAOaSV8A5/f6Ix8K4MnGmPi8PWQVc0q7Qkuo7vMz0IwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAN7ZgwMBAAAAACD/10ZQVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVRX24EAAAAAAAMj/tRFUVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVYU9OBAAAAAAAPJ/bQRVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVWEPDgQAAAAAgPxfG0FVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVdiDAwEAAAAAIP/XRlBVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVFfbgQAAAAAAAyP+1EVRVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVhT04EAAAAAAA8n9tBFVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVYQ8OBAAAAACA/F8bQVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV2IMDAQAAAAAg/9dGUFVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVUV9uBAAAAAAADI/7URVFVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVWlPTggAQAAABD0/3U/QgUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABgIUobGc+JGHE/AAAAAElFTkSuQmCC",e=>e.width-1),gr=M.Ay.div.withConfig({displayName:"styles__StyledSearchInput",componentId:"sc-179lhd2-1"})(["&.search-container{width:240px;height:36px;position:relative;display:flex;align-items:center;justify-content:space-between;background:rgba(255,255,255,0.25);background:#fff;border:1px solid rgba(0,0,0,0.12);box-sizing:border-box;border-radius:32px;margin-right:26px;.search-icon{width:24px;margin:0 4px;& > *{fill:none;}}.search-input{height:100%;flex:1;font-size:14px;line-height:28px;color:#333;&::placeholder{color:rgba(102,102,102,0.7);}}.clear-icon{width:20px;height:20px;margin:0 12px 0 8px;cursor:pointer;opacity:0;pointer-events:none;transition:all 0.15s ease-in-out;&.is-show{pointer-events:auto;opacity:1;}}}"]),dr=M.Ay.div.withConfig({displayName:"styles__StyledMarkDown",componentId:"sc-179lhd2-2"})(["width:100%;overflow-y:auto;overscroll-behavior:contain;-ms-scroll-chaining:contain;letter-spacing:1px;padding:26px 40px 0;color:#555;&::-webkit-scrollbar{width:12px;}&::-webkit-scrollbar-track{background:transparent;}&::-webkit-scrollbar-thumb{background-color:#f7f7f7;border-radius:6px;border:3px solid #fff;}.md-preview{&.disable-events{pointer-events:none;}mark,.mark{padding:0.14em;background-color:#fcf8e3;}img,video{margin:0;border:0;max-width:100%;}img{border:solid 1px rgba(0,0,0,0.06);}p{margin:1rem 0;font-size:1rem;line-height:1.4rem;}a{color:#1684fc;cursor:pointer;&:visited{color:#1169c9;background-color:transparent;}&:active{color:#1684fc;background-color:transparent;}&:hover{text-decoration:none;}}h1,h2,h3,h4,h5,h6{color:#333;background-color:transparent;margin:0.7rem 0;font-weight:normal;}h1{font-size:1.25rem;font-weight:500;margin:0;}h2{font-size:16px;line-height:16px;font-weight:500;padding-top:61px;margin:-50px 0 11px 0;}h3{font-size:140%;}h4{font-size:110%;}h5{font-size:105%;}h6{font-size:100%;}code{margin:0 4px;color:#666;border-radius:4px;padding:2px 6px;background-color:#f1f1f1;border:1px solid #efefef;}pre{display:block;font-size:87.5%;margin-top:0;margin-bottom:0.7rem;overflow:auto;code{font-size:9px;border:none;background-color:rgb(0,43,54);}}pre{font-size:9px;border-radius:2px;background-color:rgb(0,43,54);}blockquote{margin:1.4rem 0;font-size:0.7rem;font-weight:400;border-left:4px solid rgb(238,238,238);font-style:italic;padding:7px 14px;}ol,ul,dl{display:block;list-style:initial;margin-block-start:0.7rem;margin-block-end:0.7rem;margin-inline-start:0;margin-inline-end:0;padding-inline-start:32px;margin-top:0;margin-bottom:0.7rem;font-size:0.7rem;line-height:1.4rem;ul{list-style-type:circle;}}ol{list-style-type:decimal;}ul{list-style-type:disc;}table{border-collapse:collapse;border:1px solid #efefef;border-bottom:1px solid #ddd;-webkit-box-shadow:0 1px 3px 0 #eee;-moz-box-shadow:0 1px 3px 0 #eee;-ms-box-shadow:0 1px 3px 0 #eee;box-shadow:0 1px 3px 0 #eee;}td,th{border:1px solid #ddd;padding:0.35rem;}th{background-color:#f5f5f5;}}"]),wi=(e,t)=>{const n=new Error(e);return Object.assign(n,t),n},gi=async e=>{const t=await fetch(e,{method:"GET"});if(!t.ok)throw wi("[fetchPutJSON] failed with "+t.status+": "+e,{...await t.json(),status:t.status});return t.json()},Li={learn:["a1_proto_tool","a10_proto_tool_v8","a2_design_tool","a3_design_canvas","a4_org_space","a5_market","a6_account","a11_axfile"]},Ni={a1_proto_tool:["a1_proto_tool","a4_org_space","a5_market","a6_account","a7_abnormal","a8_payment"],a10_proto_tool_v8:["a1_proto_tool","a4_org_space","a5_market","a6_account","a7_abnormal","a8_payment"],a2_design_tool:["a2_design_tool","a4_org_space","a5_market","a6_account","a7_abnormal","a8_payment"],a3_design_canvas:["a3_design_canvas","a4_org_space","a6_account","a7_abnormal","a8_payment"]},Ai=e=>{const t={};return e.forEach(n=>{t[n]=[]}),t},Bi=function(e,t){t===void 0&&(t="order"),e.sort((n,a)=>n[t]-a[t])},Ss=(e,t)=>{for(const n of Object.keys(e))Bi(e[n],t)},qi=e=>{let t=[],n=Ai(Li.learn);return e.forEach(a=>{let{root:i,parent:c,order:d,title:p,article:h}=a;switch(i){case"recommend":t.push({recommendTitle:p,...h,recommendOrder:d});break;case"learn":c!==null&&n[c].push({recommendTitle:p,...h,learnOrder:d});break;default:break}}),Bi(t,"recommendOrder"),Ss(n,"learnOrder"),{recommend:t.slice(0,6),learn:n}},Ga=async()=>{let e,t="/go/v1/hc/homepage";try{e=await gi(t),e=qi(e)}catch(n){console.error(n)}return e},ai=async(e,t)=>{let n=Ni[t],a=Ai(Ni[t]),{hits:i,nbHits:c,offset:d,query:p}=e;return c=0,await i.forEach(h=>{n.includes(h.root_category)&&(a[h.root_category]&&a[h.root_category].push(h),c+=1)}),{resultList:a,hits:i,nbHits:c,offset:d,query:p}},kt=async e=>{let{keywords:t=""}=e,n;try{n=await gi("/go/v1/hc/search?q="+t)}catch(a){console.error(a)}return n},Qt=async e=>{let t,n="/go/v1/hc/categories?root_category="+e;try{t=await gi(n),t=oo(t)}catch(a){console.error(a)}return t},oo=e=>{let t=[],n=[],a={},i=new Set;return e.forEach(c=>{let{category:d,category_order:p}=c;if(i.has(p))return;i.add(p);let h=[];e.forEach(v=>{v.category_order===p&&(h.push(v),a[v.id]=v.title)}),Bi(h);let m=h.map(v=>v.id),x={categoryOrder:p,name:d,catalogs:h,articleIdList:m};t.push(x)}),Bi(t,"category_order"),t.forEach(c=>n.push(...c.articleIdList)),{categoryList:t,articleIdList:n,idTitleMap:a}},ao=async e=>{let t,n="/go/v1/hc/articles/"+e;try{t=await gi(n)}catch(a){console.error(a)}return t};function fa(e,t,n){return(t=wr(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wr(e){var t=Xa(e,"string");return typeof t=="symbol"?t:t+""}function Xa(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var a=n.call(e,t||"default");if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}const ir={a1_proto_tool:"\u539F\u578B\u5DE5\u5177",a10_proto_tool_v8:"\u539F\u578B V8",a2_design_tool:"\u8BBE\u8BA1\u5DE5\u5177",a3_design_canvas:"\u8BBE\u8BA1\u534F\u4F5C",a4_org_space:"\u4F01\u4E1A\u7A7A\u95F4",a5_market:"\u7D20\u6750\u5E7F\u573A",a6_account:"\u8D26\u53F7\u4E0E\u7BA1\u7406",a7_abnormal:"\u5F02\u5E38\u95EE\u9898",a8_payment:"\u4ED8\u8D39\u4E0E\u53D1\u7968",a9_other:"\u5176\u4ED6"},Ir=/[`~!@#$%^&*()_\-+=<>?:~"{}|,.\/;'\\[\]·~@#¥%……&…*()——\-+={}|《》?:”“【】、;‘',。、「」『』〈〉]/im;class Er extends l.PureComponent{constructor(){super(...arguments),fa(this,"state",{position:{top:"50%",left:"50%"},isDragged:!1,width:800,page:"home",homePageData:null,recommend:null,learn:null,categoryList:null,inputValue:"",isOnComposition:!0,isFocus:!1,isCanHover:!0,isFetching:!0,matchList:"",hits:"",nbHits:"",selectedId:"",selectedTitle:"",selectedCategory:"",selectedContent:"",isShowCategory:!1,showCategoryCatalog:!1,isV8New:!1}),fa(this,"setCategoryLinkList",t=>this.$linkList=t),fa(this,"setSearchRef",t=>this.$search=t),fa(this,"setSearchInput",t=>this.$searchInput=t),fa(this,"handleComposition",async t=>{let n=t.type==="compositionend";this.setState({isOnComposition:n}),!n&&navigator.userAgent.indexOf("Chrome")>-1&&await this.handleInputChange(t)}),fa(this,"handleCompositionStart",()=>{this.setState({isOnComposition:!1})}),fa(this,"handleCompositionEnd",async t=>{this.setState({isOnComposition:!0}),await this.handleInputChange(t)}),fa(this,"filterFirstSpecialChar",t=>{if(t&&t.length>0){let n=t.substr(0,1);if(Ir.test(n)||n===" ")return t=t.substr(1),this.filterFirstSpecialChar(t)}return t}),fa(this,"handleInputChange",async t=>{let n=t.target.value;if(n.slice(-1)==="/")return;n=this.filterFirstSpecialChar(n);const a=n?"search":"home";await this.setState({inputValue:n,page:a,isFocus:!!n,isShowCategory:!n,isFetching:!0}),await this.debounceSearchHandler(n)}),fa(this,"clearInputValue",()=>{this.setState({page:"home",inputValue:"",isShowCategory:!1,isFocus:!1})}),fa(this,"handleInputFocus",()=>{this.setState({isFocus:!0}),this.$searchInput.focus()}),fa(this,"handleInputBlur",()=>{this.setState({isFocus:!1}),this.$searchInput.blur()}),fa(this,"handleOnFocus",()=>{this.setState({isFocus:!0})}),fa(this,"handleOnBlur",()=>{this.setState({isFocus:!1})}),fa(this,"handleSearch",async t=>{if(!this.state.isOnComposition)return;const{productName:n}=this.props;let{selectedId:a,page:i}=this.state;const c=await kt({keywords:t});let{resultList:d,hits:p,nbHits:h}=await ai(c,n);const m=Object.entries(d).filter(x=>x[1].length!==0);a=i==="search"&&h?m[0][1][0].id.split("-")[1]:a,this.setState({matchList:m,hits:p,nbHits:h,selectedId:a,selectedTitle:"\u67E5\u770B\u5168\u90E8",selectedCategory:"\u67E5\u770B\u5168\u90E8",isFetching:!1})}),fa(this,"debounceSearchHandler",so()(this.handleSearch,500)),fa(this,"debounceSearchSetHover",so()(()=>{this.setState({isCanHover:!0})},300)),fa(this,"handleKeyDown",async t=>{t.stopPropagation();const{page:n,isFocus:a,selectedId:i,isShowCategory:c}=this.state;if(t.key==="Enter"&&!a&&i&&!c)await this.toSearchPage();else if((t.key==="ArrowDown"||t.key==="ArrowUp")&&!c){this.handleInputBlur(),this.setState({isCanHover:!1});let d=t.key==="ArrowDown"?1:-1,p=n==="home",h=p?this.$linkList:this.$search,m=Array.from(h.querySelectorAll("li"));for(let x=0;x<m.length;x++){let v=m[x],A=(x+d+m.length)%m.length,k=m[A];if(v.dataset.id===i){const{id:R,category:F}=k.dataset;if(this.setState({selectedId:R,selectedCategory:F}),!p){const Z=k.getBoundingClientRect().top-h.getBoundingClientRect().top*2;h.scrollBy({top:Z,behavior:"smooth"})}this.debounceSearchSetHover();break}}}else t.key==="Escape"?this.handleOnClose():t.key==="/"&&this.handleInputFocus()}),fa(this,"toSearchPage",async()=>{const{productName:t}=this.props,{page:n,selectedId:a,learn:i,matchList:c,selectedCategory:d}=this.state,p=i[t].slice(0,9);let h,m,x=n==="home";x?h=this.getArticleContent(p,a):h=c.find(k=>k[0]===d)[1].find(k=>k.id==="article-"+a).content_html,m=x?t:d;const{categoryList:v}=await Qt(m);this.setState({selectedContent:h,page:"search",isShowCategory:!0,categoryList:v,isCanHover:!0})}),fa(this,"toggleHover",t=>{if(!this.state.isCanHover)return;let{id:n,title:a,category:i}=t.target.dataset;this.setState({selectedId:n,selectedTitle:a,selectedCategory:i})}),fa(this,"updateCategoryList",async t=>{const{categoryList:n}=await Qt(t);this.setState({categoryList:n})}),fa(this,"handleMove",(t,n)=>{const a={left:t,top:n};this.setState({position:a,isDragged:!0})}),fa(this,"handleWidthChange",t=>{this.setState({width:t})}),fa(this,"handleOnClose",()=>this.props.onClose()),fa(this,"getArticleContent",(t,n)=>t.find(a=>a.id===parseInt(n)).content_html),fa(this,"handleSelectRecommend",async t=>{t.stopPropagation();const{recommend:n}=this.state,{articleId:a,root:i}=t.currentTarget.dataset;await this.updateCategoryList(i);const c=this.getArticleContent(n,a);this.setState({page:"search",isShowCategory:!0,selectedContent:c,selectedId:a,isCanHover:!0})}),fa(this,"selectCatalog",async t=>{const{id:n}=t.currentTarget.dataset,a=await ao(n),{content_html:i}=a;this.setState({selectedId:n,selectedContent:i,isShowCategory:!0,page:"search",showCategoryCatalog:!1})}),fa(this,"showCategoryCatalogAction",()=>{const{showCategoryCatalog:t}=this.state;this.setState({showCategoryCatalog:!t})}),fa(this,"handleToHCPage",()=>{const{selectedId:t}=this.state;window.open("https://modao.cc/hc/articles/"+t)}),fa(this,"getMarkDownContent",()=>{let{selectedContent:t,hits:n,isShowCategory:a,selectedId:i}=this.state;if(!a){let c=n&&n.find(d=>d.id.split("-")[1]===i);t=c==null?void 0:c.content_html}return t})}async componentDidMount(){const{productName:t}=this.props,{recommend:n,learn:a}=await Ga(),i=String(a[t][0].id),c=a[t].slice(1,9),{categoryList:d}=await Qt(t);this.setState({recommend:n,learn:a,categoryList:d,selectedId:i,recommendAll:i,productRecommend:c})}async componentDidUpdate(t,n){const{frontPageId:a}=this.props,{page:i}=n,{page:c,recommendAll:d,isV8New:p}=this.state;if(a&&!p){const h=await ao(a),{content_html:m}=h;this.setState({page:"search",isShowCategory:!0,selectedContent:m,selectedId:a,isCanHover:!0,isV8New:!0})}else!Vo()(c,i)&&c==="home"&&this.setState({selectedId:d,isShowCategory:!1})}render(){const{draggableContainer:t,zIndex:n,productName:a}=this.props,{page:i,position:c,width:d,isDragged:p,recommend:h,learn:m,recommendAll:x,productRecommend:v,categoryList:A,matchList:k,nbHits:R,inputValue:F,isFetching:Z,selectedId:G,isShowCategory:ee,showCategoryCatalog:ce}=this.state;if(!h||!m)return null;const se=d<500,he=i==="search",ve=i==="home",Te=!Z&&R,xe=this.getMarkDownContent();return(0,o.jsx)(Qa.A,{container:t,position:c,onMove:this.handleMove,children:(0,o.jsxs)(Mr,{width:d,zIndex:n,className:C()("hc-container",{"is-not-dragged":!p},{"is-home":ve}),ref:this.setElementRef,children:[(0,o.jsxs)("header",{className:"hc-header",type:"draggable",children:[(0,o.jsxs)("div",{className:"hc-header-left",children:[he&&ee&&(0,o.jsx)(ta.A,{name:"searchbar_menu",onClick:this.showCategoryCatalogAction}),!se&&(0,o.jsx)("span",{className:"hc-header-title",children:ve?"\u58A8\u5200\u5E2E\u52A9\u4E2D\u5FC3":ee?"\u539F\u578B\u5E2E\u52A9\u6587\u6863":"\u641C\u7D22\u7ED3\u679C"}),he&&!ee&&Te?(0,o.jsxs)("span",{className:"hc-hits",children:["\u201C"+F+"\u201D","\u7684\u641C\u7D22\u7ED3\u679C\u6709",R+"\u6761\uFF1A"]}):""]}),(0,o.jsxs)("div",{className:"hc-header-right",children:[(0,o.jsxs)(gr,{className:"search-container",children:[(0,o.jsx)(ta.A,{name:"search_icon",className:"search-icon"}),(0,o.jsx)("input",{value:F,ref:this.setSearchInput,className:"search-input",type:"text",placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\uFF1A\u9AD8\u7EA7\u7EC4\u4EF6",onChange:this.handleInputChange,onFocus:this.handleOnFocus,onBlur:this.handleOnBlur,onCompositionStart:this.handleCompositionStart,onCompositionUpdate:this.handleComposition,onCompositionEnd:this.handleCompositionEnd}),(0,o.jsx)(ta.A,{name:"common_close",className:C()("clear-icon",F&&"is-show"),onClick:this.clearInputValue})]}),(0,o.jsx)(ta.A,{className:"hc-close-btn",name:"general/times",onClick:this.handleOnClose})]})]}),ve&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("div",{className:"topic-wrap",children:[(0,o.jsx)("p",{children:"\u{1F525}\xA0\xA0\xA0\u70ED\u95E8\u63A8\u8350"}),(0,o.jsx)("ul",{children:h.map(Fe=>{let{recommendTitle:et,id:Ke,root_category:Qe}=Fe;return(0,o.jsx)("li",{"data-article-id":Ke,"data-root":Qe,onClick:this.handleSelectRecommend,children:(0,o.jsx)("span",{children:et})},Ke)})})]}),(0,o.jsxs)("div",{className:"topic-by-category",children:[(0,o.jsxs)("div",{className:"category-title",children:[(0,o.jsx)("img",{"data-source":"\u5E2E\u52A9\u4E2D\u5FC3\u9996\u9875_\u56FE\u6807","data-category":a,src:"https://modao.cc/mb-brand/images/hc/category/"+a+".png",alt:"product-image",className:"product-icon"}),(0,o.jsx)("span",{"data-source":"\u5E2E\u52A9\u4E2D\u5FC3\u9996\u9875_\u6807\u9898","data-category":a,className:"product-name",children:ir[a]+"\u5E2E\u52A9\u6587\u6863"})]}),(0,o.jsxs)("ul",{className:"link-list",ref:this.setCategoryLinkList,children:[(0,o.jsxs)("li",{className:C()(x===G&&"is-active"),"data-id":x,"data-category":a,onMouseEnter:this.toggleHover,onClick:this.toSearchPage,children:[(0,o.jsx)(ta.A,{name:"get_more_icon",className:"get-more-icon"}),(0,o.jsx)("span",{children:"\u67E5\u770B"+ir[a]+"\u5168\u90E8\u6559\u7A0B"})]},"cat-link-"+x),v.map(Fe=>{let{recommendTitle:et,id:Ke,root_category:Qe}=Fe;return(0,o.jsxs)("li",{className:C()(Ke===parseInt(G)&&"is-active"),"data-id":Ke,"data-category":Qe,onMouseEnter:this.toggleHover,onClick:this.toSearchPage,children:[(0,o.jsx)(ta.A,{name:"link_icon",className:"link-icon"}),(0,o.jsx)("span",{children:et})]},"cat-link-"+et)})]})]})]}),he&&(0,o.jsxs)("div",{className:C()("hc-search",ce&&"show-category"),children:[!ee&&(0,o.jsx)("div",{className:"search-match-container",ref:this.setSearchRef,children:Z?(0,o.jsxs)("div",{className:"loading-result",children:[" ",(0,o.jsx)("p",{children:"\u641C\u7D22\u4E2D..."})," "]}):Te?(0,o.jsx)(o.Fragment,{children:k.map(Fe=>(0,o.jsxs)("div",{className:"search-match-box",children:[(0,o.jsx)("p",{className:"list-title",children:ir[Fe[0]]}),(0,o.jsx)("ul",{className:"result-list",children:Fe[1].map(et=>{let{id:Ke,category:Qe,title:nt,root_category:Xe}=et,lt=new RegExp(F,"g"),Ct='<span class="result-divider">/</span>';Ke=Ke.split("-")[1],Qe=Qe.replace(lt,"<strong>"+F+"</strong>");let St=nt.replace(lt,"<strong>"+F+"</strong>"),hn=Qe+Ct+St;return(0,o.jsx)("li",{"data-id":Ke,"data-title":nt,"data-category":Xe,className:C()("result-li",Ke===G&&"selected"),onClick:this.toSearchPage,onMouseEnter:this.toggleHover,dangerouslySetInnerHTML:{__html:hn}},"match-list-"+Ke)})})]},Fe[0]))}):(0,o.jsxs)("div",{className:"no-matched-result",children:[(0,o.jsxs)("p",{children:["\u62B1\u6B49 \u6CA1\u627E\u5230\u201C",(0,o.jsx)("strong",{children:F}),"\u201D\u76F8\u5173\u5185\u5BB9"]}),(0,o.jsx)(kr.A,{children:"\u5728\u7EBF\u5BA2\u670D"})]})}),(0,o.jsx)(dr,{children:(0,o.jsx)("div",{className:C()("md-preview",!ee&&"disable-events"),dangerouslySetInnerHTML:{__html:xe}})}),ee&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("div",{className:"category-list-bg-mask"}),(0,o.jsxs)("div",{className:"category-list",children:[(0,o.jsxs)("div",{className:"category-title",children:[(0,o.jsx)("span",{children:"\u6587\u7AE0\u76EE\u5F55"}),(0,o.jsx)(ta.A,{name:"category_close",onClick:this.showCategoryCatalogAction})]}),(0,o.jsx)("aside",{className:"category-catalog",children:A.sort((Fe,et)=>Fe.categoryOrder-et.categoryOrder).map(Fe=>{let{name:et,catalogs:Ke}=Fe;return(0,o.jsxs)("div",{className:"article-catalog-box",children:[et&&(0,o.jsx)("p",{className:"meaningless-title",children:et}),(0,o.jsx)("ul",{className:"article-title-list",children:Ke.map(Qe=>{let{title:nt,id:Xe}=Qe;return(0,o.jsx)("li",{"data-id":Xe,className:C()(Number(G)===Xe&&"active-title"),onClick:this.selectCatalog,children:(0,o.jsx)("span",{children:nt})},"article-link-"+Xe)})})]},et)})})]})]})]}),(0,o.jsx)("div",{className:"bottom-description",children:(0,o.jsxs)("div",{className:"desc-cont",children:[(0,o.jsx)("div",{className:"desc-part",children:he&&ee?(0,o.jsx)(o.Fragment,{children:(0,o.jsxs)("div",{className:"to-hc-page",onClick:this.handleToHCPage,children:[(0,o.jsx)(ta.A,{className:"svg-open-hc-page margin-r-4",name:"open_hc_page"}),(0,o.jsx)("span",{children:"\u53BB\u5E2E\u52A9\u4E2D\u5FC3web\u67E5\u770B\u6559\u7A0B"})]})}):(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("div",{children:[(0,o.jsx)(ta.A,{className:"svg-triangle margin-r-4",name:"common_triangle_down"}),(0,o.jsx)(ta.A,{className:"svg-triangle svg-rotate margin-r-8",name:"common_triangle_down"}),(0,o.jsx)("span",{children:"\u9009\u62E9\u5217\u8868"})]}),(0,o.jsxs)("div",{children:[(0,o.jsx)(ta.A,{className:"margin-r-6",name:"common_enter"}),(0,o.jsx)("span",{children:"\u8FDB\u5165\u6587\u6863\u8BE6\u60C5\u9875"})]})]})}),!se&&(0,o.jsxs)("div",{className:"desc-part",children:[(0,o.jsxs)("div",{children:[(0,o.jsx)("span",{className:"margin-r-8",children:"/"}),(0,o.jsx)("span",{children:"\u8F93\u5165\u641C\u7D22\u5173\u952E\u8BCD"})]}),(0,o.jsxs)("div",{children:[(0,o.jsx)("span",{className:"margin-r-6",children:"esc"}),(0,o.jsx)("span",{children:"\u5173\u95ED"})]})]})]})}),he&&ee&&(0,o.jsx)(qr.A,{className:"none-active-style",placement:"right",value:d,min:375,max:800,onChange:this.handleWidthChange}),(0,o.jsx)(eo.A,{target:document,onKeyDown:this.handleKeyDown})]})})}}fa(Er,"propTypes",{onClose:ya().func,productName:ya().string,draggableContainer:ya().string,zIndex:ya().number,frontPageId:ya().string}),fa(Er,"defaultProps",{productName:"a1_proto_tool"});var ji=s(4650),ci=s(58320);const Cl=(0,M.Ay)(ci.H).withConfig({displayName:"styles__StyledMasterCreateModal",componentId:"sc-1s1gto9-0"})([".content{display:flex;flex-direction:column;.modal-content{.masterbox{display:flex;img{width:100px;height:100px;margin-right:26px;}.master{display:flex;flex-direction:column;.master-title{font-size:16px;color:",";letter-spacing:0;span{font-size:12px;color:",";margin-left:10px;}:lang(en){span{margin-left:0;display:block;margin-top:14px;}}}input{border-color:",";border-radius:6px;&:enabled:not([readonly]):focus{border:1px solid ",";}}.master-context{font-size:13px;color:",";line-height:22px;margin:10px 0 12px 0;}}}}}"],e=>e.theme.color_text_L1,e=>e.theme.color_text_link_normal,e=>e.theme.color_border_state,e=>e.theme.color_proto,e=>e.theme.color_text_L2);class Di extends l.PureComponent{constructor(t){super(t),(0,B.A)(this,"setInputRef",n=>this.input=n),(0,B.A)(this,"handleNameChange",n=>this.setState({templateName:n})),(0,B.A)(this,"handleCreate",()=>{const{onConfirm:n}=this.props,{templateName:a}=this.state;n({name:a,onSuccess:()=>{MB.notice({text:I18N.dModals.master_create_success})}})}),this.state={templateName:t.name}}componentDidMount(){this.input.querySelector("input").select()}render(){const{isOpen:t,onClose:n}=this.props,{templateName:a}=this.state;return(0,o.jsx)(Cl,{isOpen:t,canConfirm:!0,onClose:n,onConfirm:this.handleCreate,className:"top-modal",title:null,canClose:!1,mask:!1,confirmBtnProps:{type:"danger"},children:(0,o.jsx)("div",{className:"master-create-modal",children:(0,o.jsxs)("div",{className:"masterbox",children:[(0,o.jsx)("div",{children:(0,o.jsx)("img",{src:"/mb-workspace/images/workspace/design/master.png"})}),(0,o.jsxs)("div",{className:"master",ref:this.setInputRef,children:[(0,o.jsxs)("p",{className:"master-title",children:[I18N.dModals.create_master,(0,o.jsx)("span",{children:I18N.dModals.can_reuse})]}),(0,o.jsx)("p",{className:"master-context",children:I18N.dModals.be_master}),(0,o.jsx)(ji.A,{type:"text",placeholder:I18N.dModals.input_master_name,value:a,onChange:this.handleNameChange})]})]})})})}}var Rs=s(78401);const wc=(0,M.Ay)(ci.H).withConfig({displayName:"styles__StyledMasterDeleteModal",componentId:"sc-13z9y7p-0"})(["&.master-delete-modal{.content{p{font-size:14px;color:",";line-height:22px;span{color:",";&:hover{color:",";}}}}}"],e=>e.theme.color_text_L1,e=>e.theme.color_text_link_normal,e=>e.theme.color_text_link_hover);class Vc extends l.PureComponent{constructor(){super(...arguments),(0,B.A)(this,"handleConfirm",()=>{const{onConfirm:t}=this.props;t()})}render(){const{isOpen:t,onClose:n,name:a,panelCount:i}=this.props,c=i>0,d=c?I18N.dModals.delete:I18N.dModals.confirm,p=c?I18N.dModals.contains_the_project+" "+i+" "+I18N.dModals.widget_from_master+"\u300E<span>"+(0,Rs.rB)().process(a)+"</span>\u300F</br>"+I18N.dModals.independent_widget:I18N.dModals.confirm_del_master+" \u300E<span>"+(0,Rs.rB)().process(a)+"</span>\u300F "+I18N.dModals.is_confirm;return(0,o.jsx)(wc,{className:"master-delete-modal top-modal",isOpen:t,onConfirm:this.handleConfirm,onClose:n,confirmText:d,canConfirm:!0,canClose:!1,mask:!1,confirmBtnProps:{type:"danger"},title:I18N.dModals.del_master,children:(0,o.jsx)("p",{dangerouslySetInnerHTML:{__html:p}})})}}const Wl=(0,M.Ay)(ci.H).withConfig({displayName:"styles__StyledComboGroupRemoveModal",componentId:"sc-yqtdi7-0"})(["&.combo-group-remove-modal{.content{p{font-size:14px;color:",";span{color:#298df8;}}}footer{.link-opener-wrapper{margin-right:auto;.dropLibraryFolderMenu{width:180px;height:34px;border-color:",";transition:border-color 0.3s;border-radius:6px;&:hover{border:1px solid #1684FC;}.select-title.is-placeholder{color:",";}}button[disabled]{.dropLibraryFolderMenu:hover{border-color:",";}}}.select-title{margin-left:0.5em;text-align:left;flex:1;overflow:hidden;color:",";}}}"],e=>e.theme.color_text_L1,e=>e.theme.color_bg_border_02,e=>e.theme.color_text_L1,e=>e.theme.color_bg_line,e=>e.theme.color_text_L1),ca=(0,M.DU)([".DropdownMenuPortal{.DesignDropdownMenu.dropLibraryFolderMenu{width:200px;border-radius:8px;.content{background-color:rgba(51,51,51,1);width:200px;max-height:434px;padding:0;}}}"]),Lr=M.Ay.div.withConfig({displayName:"styles__NodeContainer",componentId:"sc-yqtdi7-1"})(["transition:max-height 0.5s ease-in-out;overflow:hidden;max-height:",";"],e=>e.expanded?"1000px":"24px"),yi=M.Ay.div.withConfig({displayName:"styles__NodeLabel",componentId:"sc-yqtdi7-2"})(["height:24px;display:flex;align-items:center;cursor:pointer;color:",";padding-left:","px;svg.svg-icon{width:16px;height:16px;margin-right:4px;fill:currentColor;&.expander{color:",";margin-right:4px;&.is-collapsed{transform:rotate(90deg);}}&.folder{min-width:20px;min-height:20px;margin-right:8px;color:#4F5052 !important;}}.title{max-width:118px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}:not(.is-show-collapsed){padding-left:","px;}&:hover{background:",";}&.is-selected{background:",";}border-radius:4px;background:",";svg.svg-icon{&.folder{path{stroke:",";fill:none;}}}"],e=>e.theme.color_text_L1,e=>e.isOnlyOneLevel?16:e.depth*16,e=>e.theme.color_text_L1,e=>e.isOnlyOneLevel?(e.depth-1)*16+20:e.depth*16+20,e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_bg_white,e=>e.theme.color_text_L1),Ts=M.Ay.div.withConfig({displayName:"styles__TreeContainer",componentId:"sc-yqtdi7-3"})(["box-sizing:border-box;width:200px;max-height:434px;padding:8px;font-weight:400;overflow:hidden;color:",";border-radius:8px;border:1px solid ",";background:",";box-shadow:",";"],e=>e.theme.color_text_L1,e=>e.theme.color_bg_border_01,e=>e.theme.color_bg_white,e=>e.theme.shadow_m),Cc=M.Ay.div.withConfig({displayName:"styles__ScrollableContent",componentId:"sc-yqtdi7-4"})(["overflow-y:auto;max-height:417px;width:182px;::-webkit-scrollbar-thumb{background-color:rgba(255,255,255,0.25);&:hover,&:active{background-color:rgba(255,255,255,0.35);}}"]),Wi=M.Ay.div.withConfig({displayName:"styles__Divider",componentId:"sc-yqtdi7-5"})(["margin:4px 0;border-top:1px solid ",";"],e=>e.theme.color_bg_border_01);var Ml=s(33515);const Oi=e=>{var t,n,a;let{node:i,depth:c,selected:d,isOnlyOneLevel:p,onNodeSelect:h}=e;const[m,x]=(0,l.useState)(!1),v=R=>{R.stopPropagation(),x(!m)},A=R=>{R.stopPropagation(),h(i)},k=i.cid!=="no unset";return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(Lr,{expanded:m,children:[(0,o.jsxs)(yi,{className:C()({"is-show-collapsed":((t=i.subFolder)==null?void 0:t.length)>0,"is-selected":i.cid===d}),onClick:A,depth:c,isOnlyOneLevel:p,children:[((n=i.subFolder)==null?void 0:n.length)>0&&(0,o.jsx)(xt.C,{className:C()("expander",{"is-collapsed":m}),name:"common/solid-arrow",onClick:v}),k&&(0,o.jsx)(xt.C,{className:"folder",name:m?"common/design-system/folder-icon":"common/design-system/folder-icon-close"}),(0,o.jsx)("span",{className:"title",children:i.name})]}),m&&(0,o.jsx)("div",{children:(a=i.subFolder)==null?void 0:a.map(R=>(0,o.jsx)(Oi,{node:R,onNodeSelect:h,depth:c+1},R.cid))})]}),!k&&(0,o.jsx)(Wi,{})]})},zs=e=>{let{data:t,group:n,selected:a,onNodeSelect:i}=e;const c=t.find(d=>d.subFolder.length>0)===void 0;return(0,o.jsx)(Ts,{children:(0,o.jsx)(Cc,{children:t.map(d=>{if((n==null?void 0:n.cid)!==d.cid)return(0,o.jsx)(Oi,{selected:a,node:d,onNodeSelect:i,depth:1,isOnlyOneLevel:c},d.cid)})})})},Hl="no unset";class El extends l.PureComponent{constructor(t){super(t),(0,B.A)(this,"setComponentRef",n=>this.dropdown=n),(0,B.A)(this,"handleNodeSelect",n=>{this.setState({selectedCid:n.cid,selectedNode:n}),this.dropdown.close()}),(0,B.A)(this,"handleDelete",()=>{const{onModalDelete:n}=this.props,{selectedCid:a}=this.state;n({isDeleteCombo:a===Hl,selectedCid:a})}),(0,B.A)(this,"renderFooterContent",()=>{const{combosToRemove:n,comboGroupsCanMoveTo:a,comboGroup:i}=this.props,{selectedCid:c}=this.state,d=(n==null?void 0:n.length)>0,p=[{name:I18N.dModals.not_transfer,cid:Hl,subFolder:[]}].concat(a.sort((m,x)=>m.data.zIndex-x.data.zIndex)),h=a.length===1&&a[0].cid===i.cid;if(d)return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(Ml.Ay,{isOpen:!1,ref:this.setComponentRef,title:this.state.selectedNode.name||I18N.dModals.not_transfer,isPlaceholder:c===Hl,isOpenerAttrDisabled:h,menux:"left",forceDarkTheme:!0,shouldPreventScrollingPropagation:!1,className:"dropLibraryFolderMenu",renderMenu:(0,o.jsx)(zs,{data:p,group:i,selected:c,onNodeSelect:this.handleNodeSelect})}),(0,o.jsx)(ca,{})]})}),this.state={selectedCid:Hl,selectedNode:{}}}render(){const{isOpen:t,title:n,onClose:a,comboGroup:i,combosToRemove:c}=this.props,{selectedCid:d}=this.state,p=(c==null?void 0:c.length)>0,h=d!==Hl?I18N.dModals.move_and_del:I18N.dModals.confirm,m=(c==null?void 0:c.length)===1?I18N.dModals.move_widget_library_one:I18N.dModals.move_widget_library_than_one,x=p?"\u300E"+i.name+"\u300F"+I18N.dModals.contain+" "+(c==null?void 0:c.length)+" "+m:I18N.dModals.confirm_del_widget_library.replace("{name}",i.name);return(0,o.jsx)(Wl,{isOpen:t,className:"combo-group-remove-modal top-modal",onConfirm:this.handleDelete,onClose:a,confirmText:h,renderFooterContent:this.renderFooterContent,canConfirm:!0,canClose:!1,mask:!1,confirmBtnProps:{type:"danger"},title:n||I18N.dModals.del_my_widgets,children:(0,o.jsx)("p",{children:x})})}}const Xl=(0,M.Ay)(ci.H).withConfig({displayName:"styles__StyledWorkspaceAsyncModal",componentId:"sc-k42yjc-0"})(["margin-bottom:24px;.content{p{font-size:14px;span{display:inline-flex;color:",";}.desc-color{color:",";}.desc-text-1{display:block;font-size:14px;line-height:22px;color:",";}.desc-text-2{display:block;font-size:12px;line-height:22px;color:",";}}}"],e=>e.theme.color_text_link_normal,e=>e.theme.color_text_L3,e=>e.theme.color_title_text_state,e=>e.theme.color_AI_Text_Auto_fill_path_hover);class uc extends l.PureComponent{render(){var t;const{isOpen:n,className:a,desc:i,title:c,confirmText:d,cancelText:p=(t=I18N)==null||(t=t.Common)==null?void 0:t.cancel,canCancel:h,onClose:m,onConfirm:x,onCancel:v,renderDesc:A}=this.props;return(0,o.jsxs)(Xl,{isOpen:n,className:"workspace-async-modal top-modal "+a,onConfirm:x,canCancel:h,canConfirm:!0,canClose:!1,onClose:()=>m("workspaceConfirmAsyncModal"),onCancel:v,confirmText:d,cancelText:p,title:c,mask:!1,confirmBtnProps:{type:"danger"},children:[i&&(0,o.jsx)("p",{dangerouslySetInnerHTML:{__html:i}}),A&&A()]})}}(0,B.A)(uc,"defaultProps",{onCancel:()=>{}});var Pl=s(58093);const Pc=(0,M.Ay)(ci.H).withConfig({displayName:"styles__StyledTransferModal",componentId:"sc-u1cnes-0"})(['.content{padding:0;.library-model-content{height:343px;display:flex;flex-direction:column;padding:0;p{font-size:12px;padding:12px 20px;}[type="search"]{height:32px;margin:0 20px 6px;input{width:99%;border-radius:6px;border-color:',";background-color:",";}input:focus{border-color:",";box-shadow:none;}input:active{border-color:",";}input::-webkit-input-placeholder{color:",";font-size:12px;}}.clear-icon{right:8px;}.list-content{width:calc(100% - 4px);flex:1;overflow-y:scroll;transform:translate3d(0,0,0);padding:0 14px 0 20px;&.only-one-level{padding:0 14px 0 20px;}&.only-one-level .item .list-item .icon-container{width:0;}span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}}}}footer{margin-top:24px;}"],e=>e.theme.color_bg_line,e=>e.theme.color_bg_white,e=>e.theme.color_proto,e=>e.theme.color_proto,e=>e.theme.color_text_L2),Gl=M.Ay.div.withConfig({displayName:"styles__StyledListItem",componentId:"sc-u1cnes-1"})(["display:flex;flex-direction:column;margin-top:4px;.list-item{display:flex;align-items:center;height:40px;padding-left:","px;cursor:pointer;&:not(.is-show-expand){padding-left:","px;}&.is-has-expand:not(.is-show-expand){}.icon-container{width:14px;margin-right:2px;display:flex;justify-content:center;align-items:center;color:",";.expand-icon.svg-icon path:last-child{fill:currentColor;stroke:currentColor;}.expand-icon.expand-icon-close{transform:rotate(-90deg);}}.icon{width:20px;height:20px;&.icon-folder path:first-child{fill:transparent;stroke:",";}&.icon-folder path:last-child{fill:",";stroke:",";}&.icon-folder{margin-right:4px;}}span{flex:1;color:",";}&:hover{color:",";background:",";border-radius:6px;}&.active{color:",";border-radius:6px;background:",";}.expand-icon.svg-icon{width:8px;height:8px;}input{margin-right:6px;}}.nested-list{}"],e=>e.level*8,e=>e.level*8,e=>e.theme.color_text_L3,e=>e.theme.color_text_L1,e=>e.theme.color_bg_border_02,e=>e.theme.color_text_L1,e=>e.theme.color_text_L2,e=>e.theme.color_text_L1,e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_text_L1,e=>e.theme.color_btn_secondary_active),vo=e=>{const t=new Map;e.forEach(i=>{t.set(i.cid,{...i,subFolder:[],level:0})});const n=[],a=(i,c,d)=>{d.has(i.cid)||(d.add(i.cid),i.level=c,i.subFolder.forEach(p=>a(p,c+1,d)))};return e.forEach(i=>{if(i.parent_cid===null){const c=t.get(i.cid);n.push(c),a(c,0,new Set)}else{const c=t.get(i.parent_cid);if(c){const d=t.get(i.cid);d.level=(c.level||0)+1,c.subFolder.push(d),a(d,d.level,new Set)}}}),n},ia=(e,t)=>e.sort((n,a)=>t?n.position-a.position:n.data.zIndex-a.data.zIndex),na=(e,t)=>{const n=[],a=i=>{i.name.toLowerCase().indexOf(t.toLowerCase())!==-1&&n.push({...i,subFolder:[]}),i.subFolder&&i.subFolder.length>0&&i.subFolder.forEach(c=>a(c))};return e.forEach(i=>a(i)),n};class Sa extends l.PureComponent{constructor(t){super(t),(0,B.A)(this,"setComponentRef",n=>this.modal=n),(0,B.A)(this,"handleChangeSelectedGroupCid",n=>{this.setState({selectedGroupCid:n})}),(0,B.A)(this,"handleSearch",n=>{this.setState({keyword:n})}),(0,B.A)(this,"handleModalTimesClose",n=>{n.stopPropagation(),this.modal.handleClose()}),(0,B.A)(this,"handleTransfer",()=>{const{onModalTransfer:n}=this.props,{selectedGroupCid:a}=this.state;n({selectedGroupCid:a})}),(0,B.A)(this,"toggleGroupExpansion",n=>{this.setState(a=>{const i=new Set(a.expandedGroups);return i.has(n)?i.delete(n):i.add(n),{expandedGroups:i}})}),(0,B.A)(this,"getRenderListAndIsShowExpand",(n,a)=>{let i,c;return this.state.keyword===""?(i=a?vo(n):n,c=i.some(d=>{var p;return((p=d.subFolder)==null?void 0:p.length)>0})):(i=n,c=!1),{isHasExpand:c,renderList:i}}),this.state={keyword:"",selectedGroupCid:"",expandedGroups:new Set}}render(){const{isOpen:t,itemGroups:n,onClose:a,title:i,confirmText:c,isImage:d}=this.props,{selectedGroupCid:p,keyword:h,expandedGroups:m}=this.state,x=h?d?ia(n.filter(R=>R.name.toLowerCase().indexOf(h)!==-1),d):na(n,this.state.keyword):ia(n,d),v=!!p,{isHasExpand:A,renderList:k}=this.getRenderListAndIsShowExpand(x,d);return(0,o.jsx)(Pc,{isOpen:t,ref:this.setComponentRef,className:"library-transfer-modal top-modal",onConfirm:this.handleTransfer,onClose:a,confirmText:c||I18N.dModals.move,canConfirm:v,canClose:!1,mask:!1,confirmBtnProps:{type:"danger"},title:i,children:(0,o.jsxs)("div",{className:"library-model-content no-padding",children:[(0,o.jsx)("p",{children:I18N.dModals.move_tips}),(0,o.jsx)(Pl.A,{placeholder:I18N.dModals.keyword_search,value:h,onChange:this.handleSearch}),(0,o.jsx)("div",{className:C()("list-content",{"only-one-level":!A}),children:k.map(R=>(0,o.jsx)(Na,{className:A?"is-has-expand":"",group:R,selectedGroupCid:p,onChangeSelectedGroupCid:this.handleChangeSelectedGroupCid,toggleGroupExpansion:this.toggleGroupExpansion,expandedGroups:m,level:0},R.cid))})]})})}}class Na extends l.PureComponent{constructor(){super(...arguments),(0,B.A)(this,"handleChangeSelectedGroupCid",()=>{const{group:t,onChangeSelectedGroupCid:n}=this.props;n(t.cid)}),(0,B.A)(this,"handleToggleExpansion",t=>{t.stopPropagation();const{group:n,toggleGroupExpansion:a}=this.props;a(n.cid)}),(0,B.A)(this,"handleSelectGroup",t=>{t.stopPropagation(),this.handleChangeSelectedGroupCid()})}render(){var t;const{className:n,group:a,selectedGroupCid:i,expandedGroups:c,level:d}=this.props,p=i===a.cid,h=c.has(a.cid),m=((t=a.subFolder)==null?void 0:t.length)>0;return(0,o.jsxs)(Gl,{className:C()("item",{active:p}),level:d,children:[(0,o.jsxs)("div",{className:C()(n,"list-item",{"is-show-expand":m}),onClick:this.handleSelectGroup,children:[(0,o.jsx)("div",{className:"icon-container",onClick:this.handleToggleExpansion,children:m&&(0,o.jsx)(xt.C,{className:C()("expand-icon",{"expand-icon-close":!h}),name:"library/design-system/open"})}),(0,o.jsx)(xt.C,{className:"icon-folder",name:h?"left_panel/group_open":"left_panel/group_close"}),(0,o.jsx)("span",{children:a.name}),(0,o.jsx)("input",{type:"radio",checked:p,onChange:this.handleSelectGroup})]}),h&&m&&(0,o.jsx)("div",{className:"nested-list",children:a.subFolder.map(x=>(0,o.jsx)(Na,{group:x,selectedGroupCid:i,onChangeSelectedGroupCid:this.props.onChangeSelectedGroupCid,toggleGroupExpansion:this.props.toggleGroupExpansion,expandedGroups:c,level:d+1},x.cid))})]})}}const Tt=(0,M.Ay)(ci.H).withConfig({displayName:"styles__CSSDesignModal",componentId:"sc-1ymb6u5-0"})([".content{.Input{width:100%;height:32px;input{color:",";}}}footer{.footer-actions{width:166px;display:flex;justify-content:space-between;position:absolute;left:20px;align-items:center;.Select,.Input{height:32px;width:128px;input{color:",";}}.icons-box{width:32px;height:32px;line-height:40px;text-align:center;border-radius:6px;&:hover{background-color:",";}&:active{background-color:",";}.svg-icon{font-size:18px;cursor:pointer;color:",";path:nth-child(1){fill:#F2F4F5;}path:nth-child(3){fill:#333;}}}.exit-create{margin-left:10px;color:",";}.link-opener-wrapper{margin-right:10px;.dropLibraryFolderMenu{width:128px;height:32px;border-color:",";transition:border-color 0.3s;border-radius:6px;&:hover{border:1px solid #1684FC;}&.options-opener .select-title{margin-left:0.5em;text-align:left;color:",";}.select-title.is-placeholder{color:",";}.svg-icon{margin-right:4px;color:",";}}button[disabled]{.dropLibraryFolderMenu:hover{border-color:",";}}}}.select-title{flex:1;overflow:hidden;}}.combo-create-check{margin-top:10px;}"],e=>e.theme.color_text_L1,e=>e.theme.color_text_L1,e=>e.theme.color_btn_secondary_active,e=>e.theme.color_btn_secondary_active,e=>e.theme.color_text_L1,e=>e.theme.color_proto,e=>e.theme.color_bg_border_02,e=>e.theme.color_text_L1,e=>e.theme.color_text_L1,e=>e.theme.color_text_L1,e=>e.theme.color_bg_line),mn=(0,M.DU)([".DropdownMenuPortal{.DesignDropdownMenu.dropLibraryFolderMenu{width:128px;border-radius:8px;.content{background-color:rgba(51,51,51,1);width:200px;max-height:434px;padding:0;}}}"]),Rn=e=>{var t;let n=1;const a=i=>{for(const d of i){var c;n+=1,((c=d.subFolder)==null?void 0:c.length)>0&&a(d.subFolder)}};return((t=e.subFolder)==null?void 0:t.length)>0&&a(e.subFolder),n};class gn extends l.PureComponent{constructor(t){super(t),(0,B.A)(this,"setInputRef",p=>this.input=p),(0,B.A)(this,"setTextRef",p=>this.textInput=p),(0,B.A)(this,"setComponentRef",p=>this.dropdown=p),(0,B.A)(this,"handleNodeSelect",p=>{this.setState({targetGroupCid:p.cid,curSelectedName:p.name}),this.dropdown.close()}),(0,B.A)(this,"handleNameChange",p=>{this.setState({createName:p})}),(0,B.A)(this,"handleTargetGroupCidChange",p=>{this.setState({targetGroupCid:p})}),(0,B.A)(this,"handleGroupNameChange",p=>{this.setState({groupName:p})}),(0,B.A)(this,"handleCreateGroup",()=>{this.setState({isCreating:!0},()=>{this.input.querySelector("input").select()})}),(0,B.A)(this,"handleCancelCreateComboGroup",()=>{this.setState({isCreating:!1})}),(0,B.A)(this,"handleConfirm",async()=>{const{onModalConfirm:p,onClose:h}=this.props,{isCreating:m,createName:x,targetGroupCid:v,groupName:A}=this.state;p({isCreating:m,createName:x,targetGroupCid:v,groupName:A,onModalClose:h})}),(0,B.A)(this,"renderFooterContent",()=>{const{inputGroupPlaceholder:p}=this.props,{optionGroupItemList:h,groupName:m,curSelectedName:x,targetGroupCid:v,isCreating:A}=this.state;let k;h.length===1?k=Rn(h[0])<=1:k=h.length<=1;const R=h.length>=1;return A?(0,o.jsxs)("div",{className:"footer-actions",ref:this.setInputRef,children:[(0,o.jsx)(ji.A,{type:"text",placeholder:p,value:m,onChange:this.handleGroupNameChange}),R&&(0,o.jsx)("a",{className:"exit-create",onClick:this.handleCancelCreateComboGroup,children:I18N.dModals.cancel})]}):(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("div",{className:"footer-actions",ref:this.setInputRef,children:[(0,o.jsx)(Ml.Ay,{isOpen:!1,ref:this.setComponentRef,isOpenerAttrDisabled:k,title:x,menux:"left",forceDarkTheme:!0,shouldPreventScrollingPropagation:!1,className:"dropLibraryFolderMenu",renderMenu:(0,o.jsx)(zs,{data:h,onNodeSelect:this.handleNodeSelect,selected:v})}),(0,o.jsx)("div",{className:"icons-box",children:(0,o.jsx)(xt.C,{name:"design/new_widgets",onClick:this.handleCreateGroup})})]}),(0,o.jsx)(mn,{})]})});const{isCreating:n,createName:a,targetGroupCid:i,groupName:c,optionGroupItemList:d}=t;this.state={isCreating:n,createName:a,targetGroupCid:d.length?d[0].cid:"",curSelectedName:d.length?d[0].name:null,groupName:c,optionGroupItemList:d}}componentDidMount(){const t=this.textInput&&this.textInput.querySelector("input");t&&t.select()}render(){const{isOpen:t,onClose:n,modalTitle:a,inputPlaceholder:i=I18N.dModals.input_widget_name}=this.props,{createName:c,groupName:d,isCreating:p}=this.state,h=c!==""&&(p?d!=="":!0);return(0,o.jsx)(Tt,{isOpen:t,onConfirm:this.handleConfirm,onClose:n,renderFooterContent:this.renderFooterContent,canConfirm:h,className:"top-modal",canClose:!1,mask:!1,confirmBtnProps:{type:"danger"},title:a,children:(0,o.jsx)("div",{ref:this.setTextRef,children:(0,o.jsx)(ji.A,{type:"text",placeholder:i,value:c,onChange:this.handleNameChange})})})}}(0,B.A)(gn,"defaultProps",{isCreating:!1});const Tn=(0,M.Ay)(ci.H).withConfig({displayName:"styles__StyledLinkBackModal",componentId:"sc-nzr9h5-0"})(["&.FunctionalModal{width:480px;box-shadow:0 3px 6px rgba(0,0,0,0.02),0 6px 16px rgba(0,0,0,0.02),0 9px 28px rgba(0,0,0,0.09);}.tips{figure{display:flex;flex-direction:column;align-items:center;}figcaption{order:1;margin-bottom:1.5em;line-height:1.5;color:",";&:lang(zh){text-align:justify;}}img{order:2;box-sizing:content-box;width:100%;}}.link-back-modal{img:lang(en){border-top:none;border-left:none;}}"],e=>e.theme.color_text_L1),io=e=>{let{isOpen:t,onClose:n}=e;return(0,o.jsx)(Tn,{isOpen:t,onClose:n,title:I18N.dModals.whats_this,children:(0,o.jsx)("div",{className:"tips link-back-modal",children:(0,o.jsxs)("figure",{children:[(0,o.jsx)("img",{src:"/mb-workspace/images/workspace/link_back_bg.png",alt:""}),(0,o.jsx)("figcaption",{children:I18N.dModals.link_back_desc})]})})})};var fo=s(84860),co=s(90108);const ga=(0,M.Ay)(ci.H).withConfig({displayName:"styles__StyledScreenDupModal",componentId:"sc-u9nad1-0"})(["&.screen-action-modal{.content .desc{text-align:start;display:flex;}}"]);class Fo extends l.PureComponent{constructor(t){super(t),(0,B.A)(this,"onChangeDupingAll",n=>{let{value:a}=n;return this.setState({isDupingAll:a==="all"})}),(0,B.A)(this,"onConfirm",()=>{const{onClose:n,screen:a,isBatch:i,isEditingCombo:c,dispatch:d}=this.props,{isDupingAll:p}=this.state;if(i){if(c){d({type:"entry:auto:dup:combo:comboGroup:on:screenList",payload:{isWithChildren:p}});return}d({type:"entry:dup:screen:page:folder:batch",payload:{isWithChildren:p}})}else d({type:"entry:dup:screen:page",payload:{screen:a,isWithChildren:p}});n()}),this.state={isDupingAll:!1}}render(){const{isOpen:t,onClose:n,isBatch:a,screenTreeNode:i}=this.props,{isDupingAll:c}=this.state,d=a?"\u6240\u9009\u753B\u5E03\u5305\u542B\u5B50\u753B\u5E03\uFF0C\u60A8\u8981\uFF1F":I18N.dModals.dup_parental_screen_desc.replace(/%name/,(0,Rs.rB)().process(i==null?void 0:i.data.name)).replace(/%count/,i==null?void 0:i.children.length);return(0,o.jsx)(ga,{isOpen:t,onClose:n,type:"alert",title:(0,o.jsx)("p",{dangerouslySetInnerHTML:{__html:d}}),className:"screen-action-modal top-modal",canClose:!1,onCancel:n,onConfirm:this.onConfirm,canConfirm:!0,mask:!1,confirmBtnProps:{type:"danger"},children:(0,o.jsx)(fo._,{children:(0,o.jsx)(co.A,{optionList:[{label:I18N.dModals.duplicate_parent_only,value:"parent"},{label:I18N.dModals.duplicate_all,value:"all"}],value:c?"all":"parent",onChange:this.onChangeDupingAll})})})}}var Eo=s(54190),Oa=s(44327),Ra=s(12246),tr=s(53559),Ar=s(34121),nr=s(85584),$a=s(4410),Rr=s(60399),or=s(63902),Ba=s(60892),Ja=s(24229),Za=s(74222),Nr=s(9911);const ii=(e,t,n)=>{for(const i of e.getSubHotItemList(KEY_RB_EXT))if(i.hotAttr.extData===n)return i;const a={key:createKey("e"),hotAttr:newResExt(t,0,n,"extImage"),sup:KEY_RB_EXT,sub:[]};return e.updateHotItem(a),a},Ci=(e,t)=>e===""?t:e+"_"+t,Zi=e=>(0,Ja.cF)(e.slice(0,8).padEnd(8,"_")),Zr=()=>{const e=new Map;return{presetRefKeyM:(i,c)=>(c||(c=Zi(i)),e.set(i,c),c),remapRefKeyM:i=>{if(!i)return"";const c=e.get(i);return c===void 0?i:c},remapCanvasRefKeyM:(i,c)=>{if(!c)return"";const d=Ci(i,c),p=e.get(d);return p===void 0?c:p},map:e}},Hi=function(e,t,n,a,i){a===void 0&&(a=!1),i===void 0&&(i=!1);const c=new Map,d=new Map,p=[],h=[],m=()=>h,x=[];return{pushWidgetLinkCids:(he,ve)=>{(ve==null?void 0:ve.length)>3&&c.set(he,ve)},pushWidgetSubLinkCids:he=>{switch(he.hotAttr.type){case"wCarousel":{const Te=[];for(const xe of he.hotAttr.carousel.slides)xe.linkCids!==""&&Te.push(xe.linkCids);d.set(he.key,Te);break}case"wCollapse":case"wDropMenu":case"wSelectionControl":case"wSegmentedControl":case"wTabs":case"wMobileTabBars":case"wNavigationMenu":{const Te=[],xe=Fe=>{Fe.forEach(et=>{et.data.linkCids!==""&&Te.push(et.data.linkCids),xe(et.children)})};xe(he.hotAttr.optionData),d.set(he.key,Te);break}case"wTable":{const Te=[];for(const xe of he.hotAttr.tableData.links)for(const Fe of xe)Fe!==""&&Te.push(Fe);d.set(he.key,Te);break}default:break}},pushInteraction:he=>{p.push(he)},buildMainInteraction:he=>{const ve=[];for(const[Te,xe]of c){const Fe=e.getHotItem(Te);if((Fe==null?void 0:Fe.hotAttr.type)==="wSticky")continue;const et=xe.split(","),Ke=[];for(const Qe of et){const nt=p.find(Xe=>Xe.cid===Qe);if(nt!==void 0){if(!$r(nt))continue;const lt=Po(nt,t,n,a,i,he);if(!lt)continue;Ke.push(lt),h.push({widgetKey:Te,ita:lt}),lt.interactionType===3&&x.push(Te)}}ve.push([Te,{interactions:Ke}])}e.updateHotAttrMergeBatch(ve)},buildMainInteraction4combo:(he,ve)=>{const Te=[];for(const[xe,Fe]of c){const et=e.getHotItem(xe);if((et==null?void 0:et.hotAttr.type)==="wSticky")continue;const Ke=Fe.split(","),Qe=[];for(const nt of Ke){const Xe=p.find(lt=>lt.cid===nt);if(Xe!==void 0){if(!$r(Xe))continue;const Ct=ha(Xe,he,ve);if(Ct===void 0)continue;Qe.push(Ct),h.push({widgetKey:xe,ita:Ct})}}Te.push([xe,{interactions:Qe}])}e.updateHotAttrMergeBatch(Te)},buildCanvasInteraction:(he,ve)=>{const Te=[];for(const xe of p){if(!xe.widget_cids||ve.remapRefKeyM(xe.widget_cids)!==t||!$r(xe))continue;const et=Po(xe,t,n,a,i,ve);Te.push(et),h.push({widgetKey:he,ita:et}),et.interactionType===3&&x.push(he)}e.updateHotAttrKV(he,"interactions",Te)},buildCanvasInteraction4combo:(he,ve,Te)=>{const xe=[];for(const Fe of p){if(Te+Fe.widget_cids!==t||!$r(Fe))continue;const Ke=ha(Fe,he,Te);xe.push(Ke),h.push({widgetKey:ve,ita:Ke})}e.updateHotAttrKV(ve,"interactions",xe)},buildSubInteraction:he=>{const ve=[];for(const[xe,Fe]of d){const et=[];for(const Ke of Fe){const Qe=p.find(lt=>lt.cid===Ke);if(Qe===void 0||!$r(Qe))continue;const Xe=Po(Qe,t,n,a,i,he,Ke);et.push(Xe),h.push({widgetKey:xe,ita:Xe}),Xe.interactionType===3&&x.push(xe)}if(et.length>=1){var Te;const Ke=((Te=e.getHotItem(xe))==null?void 0:Te.hotAttr).interactions;ve.push([xe,{interactions:[...Ke,...et]}])}}e.updateHotAttrMergeBatch(ve)},buildSubInteraction4combo:(he,ve)=>{const Te=[];for(const[Fe,et]of d){const Ke=[];for(const Qe of et){const nt=p.find(Ct=>Ct.cid===Qe);if(nt===void 0||!$r(nt))continue;const lt=ha(nt,he,ve,Qe);!lt!==void 0&&(Ke.push(lt),h.push({widgetKey:Fe,ita:lt}))}if(Ke.length>=1){var xe;const Qe=((xe=e.getHotItem(Fe))==null?void 0:xe.hotAttr).interactions;Te.push([Fe,{interactions:[...Qe,...Ke]}])}}e.updateHotAttrMergeBatch(Te)},getFInalWorkingInteractionList:m,getType3WidgetKeyList:()=>x}},yr=e=>e===0?"0s":e,$r=e=>{const{screen_target_cid:t,scroll_offset:n,state_cid:a,targetstate_cid:i}=e;return t===void 0&&n===void 0&&a===void 0&&i===void 0?e.link_type===7:!0},os=(e,t)=>{const n={FIRST_STATE:"FIRST_CANVAS",PREV_STATE:"PREV_CANVAS",NEXT_STATE:"NEXT_CANVAS",LAST_STATE:"LAST_CANVAS"};return["FIRST_STATE","PREV_STATE","NEXT_STATE","LAST_STATE"].includes(e)?n[e]:t.remapRefKeyM(e)},pt=(e,t,n)=>{const a={FIRST_STATE:"FIRST_CANVAS",PREV_STATE:"PREV_CANVAS",NEXT_STATE:"NEXT_CANVAS",LAST_STATE:"LAST_CANVAS"};return["FIRST_STATE","PREV_STATE","NEXT_STATE","LAST_STATE"].includes(t)?a[t]:n.remapCanvasRefKeyM(e,t)},Ee=(e,t)=>{const n={FIRST_STATE:"FIRST_CANVAS",PREV_STATE:"PREV_CANVAS",NEXT_STATE:"NEXT_CANVAS",LAST_STATE:"LAST_CANVAS"};return["FIRST_STATE","PREV_STATE","NEXT_STATE","LAST_STATE"].includes(e)?n[e]:createPrefixKey(t,e)},Ue=e=>["FIRST_STATE","PREV_STATE","NEXT_STATE","LAST_STATE","KEEP_STATE","PREV_LINKED_STATE"].includes(e),ke=(e,t,n)=>({interactionTrigger:e.gesture,interactionType:1,key:createKeyFix(e.cid),menuOrDrawerOffset:e.menu_offset,resetTargetCanvasScrollOffset:e.reset,resetTargetSubWidgetsState:!0,targetRBPageKey:t.remapRefKeyM(e.target_cid),targetResCanvasKey:Ue(e.targetstate_cid)?e.targetstate_cid:e.targetstate_cid?t.remapRefKeyM(e.targetstate_cid):"Empty",timerDuration:yr(e.timer),transition:e.transition==="newTab"?"none":e.transition,transitionDelay:e.ani_delay,transitionDuration:e.ani_duration,subKey:n,order:0,"!validVersion":1,triggerDisable:!1,actionDisable:!1}),Ve=(e,t,n)=>{let a=t;switch(t){case"FIRST_STATE":a=n[0];break;case"PREV_STATE":{const c=(n.indexOf(e)+n.length-1)%n.length;a=n[c]}break;case"NEXT_STATE":{const c=(n.indexOf(e)+1)%n.length;a=n[c]}break;case"LAST_STATE":a=n.at(-1);break;case"KEEP_STATE":a=n[0];break;case"PREV_LINKED_STATE":a=n[0];break;default:break}return a},st=(e,t,n,a)=>({interactionTrigger:e.gesture,interactionType:1,key:createKeyFix(e.cid),menuOrDrawerOffset:void 0,resetTargetCanvasScrollOffset:e.reset,resetTargetSubWidgetsState:!0,targetRBPageKey:t,targetResCanvasKey:Ue(e.targetstate_cid)?e.targetstate_cid:n.remapRefKeyM(e.targetstate_cid),timerDuration:yr(e.timer),transition:sr(e.ani_duration),transitionDelay:e.ani_delay,transitionDuration:e.ani_duration,subKey:a,order:0,"!validVersion":1,triggerDisable:!1,actionDisable:!1}),ut=(e,t,n,a)=>{const i=n.remapCanvasRefKeyM(t,e.target_cid);return{interactionTrigger:e.gesture,interactionType:3,key:createKeyFix(e.cid),menuOrDrawerOffset:e.menu_offset,targetBasketKey:i!=null?i:"Empty",targetResCanvasKey:pt(i,e.targetstate_cid,n),timerDuration:yr(e.timer),transition:sr(e.ani_duration),transitionDelay:e.ani_delay,transitionDuration:e.ani_duration,subKey:a,order:0,"!validVersion":1,triggerDisable:!1,actionDisable:!1,resetTargetCanvasScrollOffset:!0,resetTargetSubWidgetsState:!0}},Rt=(e,t)=>{let n=e.transition;return e.link_type===2&&(n=sr(e.ani_duration)),{interactionTrigger:e.gesture,interactionType:2,key:createKeyFix(e.cid),menuOrDrawerOffset:e.menu_offset,resetTargetCanvasScrollOffset:e.reset,resetTargetSubWidgetsState:!0,transition:n,transitionDelay:e.ani_delay,transitionDuration:e.ani_duration,timerDuration:yr(e.timer),subKey:t,order:0,"!validVersion":1,triggerDisable:!1,actionDisable:!1}},en=(e,t)=>({interactionExternalUrl:e.target_cid,interactionTrigger:e.gesture,interactionType:4,key:createKeyFix(e.cid),openIn:e.transition,subKey:t,order:0,"!validVersion":1,triggerDisable:!1,actionDisable:!1,transitionDelay:"0"}),Xt=(e,t,n,a)=>{var i,c;return{interactionTrigger:e.gesture,interactionType:5,key:createKeyFix(e.cid),scrollToDir:"vertical",scrollToOffsetX:0,scrollToOffsetY:(i=e.scroll_offset)!=null?i:0,targetWidgetKey:(c=n.remapCanvasRefKeyM(t,e.target_cid))!=null?c:"Empty",timerDuration:yr(e.timer),transition:sr(e.ani_duration),transitionDelay:e.ani_delay,transitionDuration:e.ani_duration,iterationCount:"1",iterationInterval:"0",subKey:a,order:0,"!validVersion":1,triggerDisable:!1,actionDisable:!1}},Zn={show:"setVisible",hide:"setHidden",change:"toggleVisibility"},bo=(e,t,n,a)=>{var i;return{actionType:Zn[e.transition],interactionTrigger:e.gesture,interactionType:6,key:createKeyFix(e.cid),setHiddenTransition:sr(e.ani_hide_duration),setHiddenTransitionDuration:e.ani_hide_duration,setVisibleTransition:sr(e.ani_duration),setVisibleTransitionDuration:e.ani_duration,targetWidgetKey:(i=n.remapCanvasRefKeyM(t,e.target_cid))!=null?i:"Empty",timerDuration:yr(e.timer),transitionDelay:e.ani_delay,subKey:a,order:0,"!validVersion":1,triggerDisable:!1,actionDisable:!1}},Po=(e,t,n,a,i,c,d)=>{switch(e.link_type){case 8:return e.target_cid==="PREV_LINKED_STATE"?Rt(e,d):xa(e,c,d);case 7:return bo(e,n,c,d);case 6:return Xt(e,n,c,d);case 5:return en(e,d);case 3:return ut(e,n,c,d);case 2:return e.screen_target_cid?da(e,c,d):!e.widget_cids&&!e.target_cid&&i?Ko(e,t,c,d):!e.screen_target_cid&&!e.target_cid&&i?da({...e,target_cid:e.widget_cids},c,d):a?Pa(e,c,d):e.targetstate_cid==="PREV_LINKED_STATE"?Rt(e,d):st(e,t,c,d);case 1:return e.target_cid==="prev"?Rt(e,d):ke(e,c,d);default:return}},ha=(e,t,n,a)=>{switch(e.link_type){case 5:return en(e,a);case 2:return Fa(e,t,n,a);default:return}},xa=(e,t,n)=>({interactionTrigger:e.gesture,interactionType:1,key:createKeyFix(e.cid),menuOrDrawerOffset:void 0,resetTargetCanvasScrollOffset:e.reset,resetTargetSubWidgetsState:!0,targetRBPageKey:t.remapRefKeyM(e.screen_target_cid),targetResCanvasKey:Ue(e.targetstate_cid)?e.targetstate_cid:t.remapRefKeyM(e.targetstate_cid),timerDuration:yr(e.timer),transition:sr(e.ani_duration),transitionDelay:e.ani_delay,transitionDuration:e.ani_duration,subKey:n,order:0,"!validVersion":1,triggerDisable:!1,actionDisable:!1}),da=(e,t,n)=>{const a=t.remapRefKeyM(e.target_cid);return{interactionTrigger:e.gesture,interactionType:3,key:createKeyFix(e.cid),menuOrDrawerOffset:e.menu_offset,targetBasketKey:"placeHolder"+t.remapRefKeyM(e.target_cid),targetResCanvasKey:pt(a,e.targetstate_cid,t),timerDuration:yr(e.timer),transition:sr(e.ani_duration),transitionDelay:e.ani_delay,transitionDuration:e.ani_duration,subKey:n,order:0,"!validVersion":1,triggerDisable:!1,actionDisable:!1,resetTargetCanvasScrollOffset:!0,resetTargetSubWidgetsState:!0}},Ko=(e,t,n,a)=>({interactionTrigger:e.gesture,interactionType:3,key:createKeyFix(e.cid),menuOrDrawerOffset:e.menu_offset,targetBasketKey:"placeHolder"+t,targetResCanvasKey:os(e.targetstate_cid,n),timerDuration:yr(e.timer),transition:sr(e.ani_duration),transitionDelay:e.ani_delay,transitionDuration:e.ani_duration,subKey:a,order:0,"!validVersion":1,triggerDisable:!1,actionDisable:!1,resetTargetCanvasScrollOffset:!0,resetTargetSubWidgetsState:!0}),Fa=(e,t,n,a)=>{const i=Ue(e.targetstate_cid)?Ee(e.targetstate_cid,n):n+e.targetstate_cid;return{interactionTrigger:e.gesture,interactionType:3,key:createKeyFix(e.cid),menuOrDrawerOffset:e.menu_offset,targetBasketKey:t,targetResCanvasKey:i,timerDuration:yr(e.timer),transition:sr(e.ani_duration),transitionDelay:e.ani_delay,transitionDuration:e.ani_duration,subKey:a,order:0,"!validVersion":1,triggerDisable:!1,actionDisable:!1,resetTargetCanvasScrollOffset:!0,resetTargetSubWidgetsState:!0}},Pa=(e,t,n)=>({interactionTrigger:e.gesture,interactionType:3,key:createKeyFix(e.cid),menuOrDrawerOffset:e.menu_offset,targetBasketKey:"CURRENT_BASKET_REF",targetResCanvasKey:os(e.targetstate_cid,t),timerDuration:yr(e.timer),transition:sr(e.ani_duration),transitionDelay:e.ani_delay,transitionDuration:e.ani_duration,subKey:n,order:0,"!validVersion":1,triggerDisable:!1,actionDisable:!1,resetTargetCanvasScrollOffset:!0,resetTargetSubWidgetsState:!0}),sr=e=>e==="0s"?"none":"auto",vr=(e,t)=>{const n=t.hotAttr,a=[];for(const i of n.carousel.slides)if(i.asset==="")a.push(i);else{const c=newOrReuseExtImage(e,"",i.asset);a.push({asset:c.key,linkCids:i.linkCids,fillType:"default"})}n.carousel.slides=a},Or=(e,t)=>{const n=t.hotAttr;if(!n.image.imageRef)return;const a=newOrReuseExtImage(e,"",n.image.imageRef);n.image.imageRef=a.key},Tr=(e,t)=>{const n=t.hotAttr,a=newOrReuseExtImage(e,"map",n.map.mapImageSrc);n.map.mapImageSrc=a.key},Kr=(e,t)=>{const n=t.hotAttr,a=newOrReuseExtImage(e,"keyboard","/mb-proto2/images/widget/"+n.kbImageSrc);n.kbImageSrc=a.key},Ha=async function(e,t,n){n===void 0&&(n=e.getSubHotItemList("B@main"));let a="";const i=new Set,c=v=>{if(i.has(v))return;i.add(v);const A=e.getHotItem(v);if((A==null?void 0:A.hotAttr.type)!=="rResBunch"){const k=[];let R=!1;for(const F of(A==null?void 0:A.hotAttr).interactions)if(F.interactionType===1){let Z=F.targetRBPageKey;t.map.get(Z)&&(Z=t.remapRefKeyM(Z));const G=e.getHotItem(Z);if(G===void 0){k.push(F);continue}const ee=G.sub.filter(he=>{var ve;return((ve=e.getHotItem(he))==null?void 0:ve.hotAttr.type)==="rResCanvas"});let ce=F.targetResCanvasKey;Ue(ce)?ce=Ve(a,F.targetResCanvasKey,ee):ee.includes(ce)||(ce=t.remapRefKeyM(ce));const se={...F,targetRBPageKey:Z,targetResCanvasKey:ce};k.push(se),R=!0}else if(F.interactionType===3){let Z=F.targetResCanvasKey;if(!Ue(Z)){const ee=F.targetBasketKey;if(ee==="CURRENT_BASKET_REF"){const se=Array.from(t.map.keys()).find(he=>{const ve=he.split("_");return ve.length===2?Z===ve[1]:!1});se&&(Z=t.remapRefKeyM(se))}else Z=t.remapCanvasRefKeyM(ee,Z)}const G={...F,targetResCanvasKey:Z};k.push(G),R=!0}else k.push(F);R&&(m[v]=k)}if((A==null?void 0:A.hotAttr.type)==="wBasket"){const k=e.getHotItem(A.hotAttr.refRBPageKey);d(A.hotAttr.refRBPageKey);for(const R of k.sub)c(R)}else for(const k of A.sub)c(k)},d=v=>{const A=e.getHotItem(v),k=t.remapRefKeyM((A==null?void 0:A.hotAttr).defaultCanvasKey);k&&(h[v]=k)},p=async v=>{for(const A of v){d(A.key);for(const k of A.sub){const R=e.getHotItem(k);(R==null?void 0:R.hotAttr.type)==="rResBunch"?(d(k),await p([R])):((R==null?void 0:R.hotAttr.type)==="rResCanvas"&&(a=R.key),await(0,Ba.Y_)(0),c(k))}}},h={},m={},x=n.filter(v=>!t.map.has(v.key));await p(x),e.updateHotAttrMergeBatch([...Object.entries(h).map(v=>{let[A,k]=v;return[A,{defaultCanvasKey:k}]}),...Object.entries(m).map(v=>{let[A,k]=v;return[A,{interactions:k}]})])},Br={rResCanvas:"\u9875\u9762",wRect:"\u77E9\u5F62",wRichText:"\u6587\u672C",wOval:"\u5706\u5F62",wLine:"\u7EBF\u6761",wImage:"\u56FE\u7247",wLr:"\u94FE\u63A5\u533A\u57DF",wButton:"\u6309\u94AE",wTable:"\u8868\u683C",wArrow:"\u7BAD\u5934",wMTextInput:"\u5355\u884C\u8F93\u5165",wMTextarea:"\u591A\u884C\u8F93\u5165",wMSelect:"\u4E0B\u62C9\u9009\u62E9\u5668",wPolygon:"\u591A\u8FB9\u5F62",wStar:"\u661F\u5F62",wTriangleb:"\u4E09\u89D2\u5F62",wTrianglel:"\u4E09\u89D2\u5F62",wDropMenu:"\u4E0B\u62C9\u83DC\u5355",wMFileInput:"\u9009\u62E9\u6587\u4EF6",wAndroidSwitch:"\u5B89\u5353\u5F00\u5173",wIosSwitch:"IOS\u5F00\u5173",wSlider:"\u6ED1\u52A8\u6761",wDigitalStepper:"\u6570\u5B57\u6B65\u8FDB\u5668",wMobileTabBars:"\u79FB\u52A8\u7AEF\u5BFC\u822A",wSegmentedControl:"\u5206\u6BB5\u5668",wCollapse:"\u6298\u53E0\u9762\u677F",wTabs:"\u6807\u7B7E\u9875",wPaginationMobile:"\u5206\u9875\u56681",wPaginationWeb:"\u5206\u9875\u56682",wWebpage:"\u7F51\u9875",wCarousel:"\u8F6E\u64AD\u56FE",wChart:"\u56FE\u8868",wVideo:"\u89C6\u9891",wAudio:"\u97F3\u9891",wQRCode:"\u4E8C\u7EF4\u7801",wMTooltip:"\u804A\u5929\u6C14\u6CE1",wMapView:"\u5730\u56FE",wWrap:"\u7FA4\u7EC4",wSticky:"\u6279\u6CE8"},Gi=()=>{const e=new Map,t=(n,a)=>{var i;return n||((i=Br[a])!=null?i:"\u7EC4\u4EF6")};return{remapName:(n,a,i,c)=>{let p=t(i,c)+" "+createKeyFix();return n?e.set(a,p):e.has(a)&&(p=e.get(a)),p}}};var xi=s(20166),Fr=s(61893);const Fi=(0,M.Ay)(ci.H).withConfig({displayName:"styles__StyledScreenTransferModal",componentId:"sc-nk4mrk-0"})(["width:776px;height:448px;background-color:#fff;box-shadow:0 2px 10px rgba(39,54,78,0.08),0 12px 40px rgba(39,54,78,0.1);border-radius:8px;overflow:hidden;.content{width:100%;height:448px;padding:0;}iframe{width:100%;height:100%;border:0;}"]);var Ii=s(79209);class Ks extends l.PureComponent{constructor(){super(...arguments),(0,B.A)(this,"setElemRef",t=>this.iframeRef=t),(0,B.A)(this,"handleMessage",async t=>{t.data==="close"?this.props.onClose():t.data.msg==="submit"&&await this.handleTransfer(t.data.param)}),(0,B.A)(this,"upgradeWidthPagesOver",t=>()=>{const{onClose:n}=this.props,a="\u7F16\u8F91\u533A-v8_\u9875\u9762\u8D85\u9650_\u9875\u9762\u8F6C\u79FB",i="workspace-filepage_pagetrans_limit",c=t==="me"?void 0:{cid:t},d=(0,Ra.l)(c,a,i);MB.global.popupHelper.chargeAsync(d),n()}),(0,B.A)(this,"handleTransfer",async t=>{var n;let{selectedProjectCid:a,isChecked:i,selectedOrgCid:c}=t;const{screenMetaList:d,currentUser:p,isAllTransfer:h,isMultiplePage:m=!1,rootProject:x,onClose:v,dispatch:A}=this.props;if(!a)return;if(h&&!i){var k;A({type:"modal:update:confirm:state",payload:{isOpen:!0,canCancel:!1,title:I18N.__entry__.warning,desc:I18N.__entry__.cant_transfer_screen,onConfirm:()=>{}}}),(k=this.iframeRef)!=null&&k.contentWindow&&this.iframeRef.contentWindow.postMessage({msg:"stopSubmitLoading"},"*");return}const R=d.map(nt=>(0,nr.YU)(nt)).flat(),F=await(0,Eo.sw)(a),Z=(0,Rr.n)(F),G=Z.screens_count||Z.screensCount,ee=R.length+G,ce=a===x.cid,{org:se}=await(0,Eo.up)(c),{maxScreenCount:he,maxWidgetCount:ve}=(0,tr.xR)(p,se);if(ee>he)return v(),MB.action("modal:update:state",{rightsAndInterestsModal:{isOpen:!0,type:Fr.hC.OrgMaxProto2PageCount,selectedOrg:se,isCurrentProject:ce}});MB.safeLoading(I18N.dModals.in_progress),await rootSdk.saveAsync(),MB.safeLoading(!1);const{userId:Te,flatKey:xe}=await(0,Eo.yk)({projectBasicCid:F.cid}),Fe=await(0,Oa.i_)({project_meta_cid:xe,userId:Te,isAllowDat:!0});if(!Fe)return;const et=Fe.sdkStore;if(!(0,Ii.N)(ve)){const nt=(0,Ii.UU)({initKeyList:R.map(lt=>lt.cid),sdk:sdkStore,isKeepInnerSkip:!1}),Xe=(0,Ii.UU)({sdk:et,isKeepInnerSkip:!1});if(nt+Xe>ve)return v(),MB.action("modal:update:state",{rightsAndInterestsModal:{isOpen:!0,type:Fr.hC.OrgMaxProto2PageCount,selectedOrg:se,isCurrentProject:ce}})}const Ke=Zr();for(const nt of R){const Xe=Ke.presetRefKeyM(nt.cid),lt=sdkStore.getHotItem(nt.cid),Ct=d.find(Cn=>Cn.cid===nt.cid),St=Ke.remapRefKeyM(lt.sup),hn={...lt,key:Xe,sup:Ct?Za.$k:St};if(et.updateHotItem(hn),!nt.asFolder){const Mt=sdkStore.getSubHotItemList(nt.cid).filter(Io=>{let{hotAttr:mo}=Io;return mo.bunch!==$.x.RbPage}).map(Io=>Io.key),Et=sdkStore.saveSubtree(Mt),{x:Co,y:Pn}=(0,$a.lY)(lt,sdkStore);(0,or.BB)({data:Et,worldPos:{x:Co,y:Pn},keyRndSup:Xe,currentPageKey:Xe,store:Fe.sdkStore,option:{isRename:!1,isResetStickyPoint:!1}}).forEach((Io,mo)=>{Mt[mo]&&Ke.presetRefKeyM(Mt[mo],Io)})}}const Qe=(n=et.getSubHotItemList(Za.$k).sort((nt,Xe)=>Xe.hotAttr.zIndex-nt.hotAttr.zIndex)[0])==null||(n=n.hotAttr)==null?void 0:n.zIndex;d.sort((nt,Xe)=>nt.data.zIndex-Xe.data.zIndex).forEach((nt,Xe)=>{const lt=Ke.remapRefKeyM(nt.cid);et.updateHotAttrKV(lt,"zIndex",Qe+Xe+1)}),Ha(et,Ke),i||(m?(sdkStore.combineMergeMark("remove-screen-selection"),R.forEach(nt=>{const{cid:Xe}=nt,lt=sdkStore.getHotItem(Xe),{sub:Ct}=lt;Ct.filter(Cn=>{const{hotAttr:{bunch:Mt}}=sdkStore.getHotItem(Cn);return Mt===$.x.RbPage}).length>0?A({type:"entry:screen:delete:page:by:father",payload:{screenTreeNode:lt,isRemovingAll:!1}}):((0,Ar.X3)(lt.key,p),A({type:"entry:activate:root-project:home-screen"}))}),sdkStore.combineMerge("remove-screen-selection")):(0,Ar.gu)(R,p),MB.action("entry:activate:root-project:home-screen")),await Fe.saveAsync(),MB.notice({text:I18N.dModals.page_transfer_success,type:"success"}),A({type:"screen:update:state",payload:{isMultiplePage:!1}}),(0,xi.yU)(i),v()})}componentDidMount(){window.addEventListener("message",this.handleMessage,!1)}componentWillUnmount(){window.removeEventListener("message",this.handleMessage,!1)}render(){const{isOpen:t,currentOrg:n,theme:a,onClose:i}=this.props,c={spaceSelectDisabled:!1,title:I18N.ScreenPanel.move_or_copy_to,cancelBtnText:I18N.dModule.cancel,submitBtnText:I18N.dModals.screenTransfer.move,projectType:"proto2",isShowCheck:!0,checkboxText:I18N.dModals.screenTransfer.dup_move_projects,currentOrgCid:(n==null?void 0:n.cid)||"",from:"workspace",isFromProto:!0,theme:a};return(0,o.jsx)(Fi,{isOpen:t,className:"ScreenTransferModal",width:776,onClose:()=>i(),portalClassName:"ScreenTransferModalPortal",modalRender:()=>(0,o.jsx)("iframe",{src:"/embed/project_select?param="+JSON.stringify(c),ref:this.setElemRef})})}}const Ul=(0,M.Ay)(ci.H).withConfig({displayName:"styles__StyledRemovalModal",componentId:"sc-1g9ncx2-0"})([".modal-top{display:flex;}.FormEntry > .val:only-child{margin-left:0;padding-left:0.5em;}.RadioGroup{flex-direction:column;margin-bottom:5px;}.restore-tip{font-size:12px;color:",";}.desc{b{margin-top:-1px;}}"],e=>e.theme.color_text_L3);class ts extends l.PureComponent{constructor(t){super(t),(0,B.A)(this,"onChangeRemovingAll",n=>{let{value:a}=n;return this.setState({isRemovingAll:a==="all"})}),(0,B.A)(this,"handleConfirm",()=>{const{onClose:n,onConfirm:a}=this.props,{isRemovingAll:i}=this.state;a(i),n()}),(0,B.A)(this,"handleCancel",()=>{const{onClose:n,onCancel:a}=this.props;a&&a(),n()}),(0,B.A)(this,"handleGetOptionList",()=>{const{isDelAnnotate:n}=this.props;return[{label:n?I18N.AnnotatePanel.remove_parent_only:I18N.dModals.remove_parent_only,value:"parent"},{label:n?I18N.AnnotatePanel.remove_all:I18N.dModals.remove_all,value:"all"}]}),this.state={isRemovingAll:!1}}render(){const{isOpen:t,name:n,count:a,isDelAnnotate:i,isEditingCombo:c,onClose:d}=this.props,{isRemovingAll:p}=this.state,h=i?I18N.AnnotatePanel.del_parental_annotate_desc:c?I18N.__entry__.del_multi_widget_desc:I18N.dModals.del_parental_screen_desc,m=this.handleGetOptionList();return(0,o.jsxs)(Ul,{isOpen:t,onClose:d,canClose:!1,mask:!1,confirmBtnProps:{type:"danger"},type:"alert",title:c?"\u5220\u9664\u7EC4\u4EF6":I18N.dModals.del_screen_title,className:"screen-action-modal top-modal",onCancel:this.handleCancel,onConfirm:this.handleConfirm,canConfirm:!0,children:[(0,o.jsx)("p",{className:"modal-top",dangerouslySetInnerHTML:{__html:h.replace(/%name/,(0,Rs.rB)().process(n)).replace(/%count/,(0,Rs.rB)().process(a))}}),(0,o.jsxs)(fo._,{children:[(0,o.jsx)(co.A,{optionList:m,value:p?"all":"parent",onChange:this.onChangeRemovingAll}),!i&&!c&&(0,o.jsx)("span",{className:"restore-tip",children:I18N.dModals.restore_in_recycle_in})]})]})}}var rn=s(79287),Ft=s.n(rn),Sn=s(61068),no=s(69246),wa=s(71862),za=s(51090);const hr=M.Ay.div.withConfig({displayName:"styles__StyledScreenItem",componentId:"sc-zlx3hk-0"})(["display:flex;height:100%;width:100%;align-items:center;.svg-icon{width:20px;height:20px;}.expander{display:flex;align-items:center;justify-content:center;cursor:pointer;width:8px;margin-left:-8px;margin-right:0;.arrow-icon{color:#999;&:not(.is-expand){transform:rotate(-90deg);}}}.screen-name{max-width:12em;",";}.info{display:flex;margin-left:auto;margin-right:6px;color:#a9afb8;.user-name{max-width:4em;",";}time{margin-left:9px;}}"],za.L9,za.L9),ar=(0,M.Ay)(ci.H).withConfig({displayName:"styles__StyledScreenTrashModal",componentId:"sc-zlx3hk-1"})(["footer{margin-top:24px;}&.screen-trash-modal{.library-model-content{&.no-padding{padding:0;}.dele-tips{display:flex;padding:9px 20px;font-size:12px;margin-bottom:10px;background-color:",";.tips-icon{color:#FF7100;margin-right:8px;}p{color:",";}}}.screen-list{height:178px;overflow-y:auto;padding:0 24px;.desc{display:flex;align-items:center;flex-direction:column;margin-top:15px;.desc-icon{margin-bottom:12px;width:144px;height:94px;defs{stop:nth-child(1){stop-color:",";}stop:nth-child(2){stop-color:",";}}circle{fill:",";}}p{color:",";}}ol,li{list-style:none;}.content-item{display:flex;flex-direction:column;.item{display:flex;height:32px;align-items:center;cursor:pointer;color:",";.check{margin-left:10px;cursor:pointer;}.is-checked{.Check-state{background-color:#1684FC;border:1px solid #1684FC;.icon{color:white;}}}}}}.content{padding:0;}}"],e=>e.theme.color_background_white_modal_tips,e=>e.theme.color_title_text_state,e=>e.theme.color_background_trash_01,e=>e.theme.color_background_trash_02,e=>e.theme.color_background_trash_circle,e=>e.theme.color_text_L2,e=>e.theme.color_title_text_state),mi="\u6062\u590D\u7684\u7EC4\u4EF6";class Vi extends l.PureComponent{constructor(t){super(t),(0,B.A)(this,"getSupPagesByKey",a=>sdkStore.getSubHotItemList(a).filter(i=>i.hotAttr.bunch===$.x.RbPage).sort((i,c)=>c.hotAttr.zIndex-i.hotAttr.zIndex)),(0,B.A)(this,"getSubListByKey",a=>{const i=[],c=this.getSupPagesByKey(a);return i.push(...c),c.forEach(d=>i.push(...this.getSubListByKey(d.key))),i}),(0,B.A)(this,"handleCheck",a=>{const{checkedCidSet:i}=this.state,c=i.has(a.key),d=this.getSubListByKey(a.key);c?(i.delete(a.key),d.forEach(p=>i.delete(p.key))):(i.add(a.key),d.forEach(p=>i.add(p.key))),this.setState({checkedCidSet:new Set(i)})}),(0,B.A)(this,"handModalTimesClose",()=>{this.modal.handleClose()}),(0,B.A)(this,"setComponentRef",a=>this.modal=a),(0,B.A)(this,"handleRecoverFolderKeyOnEditingCombo",a=>{let c=sdkStore.getSubHotItemList("B@main").filter(h=>(0,nr.Mo)(h)).find(h=>{var m;return((m=h.hotAttr)==null?void 0:m.name)===mi});c||(c=(0,Ar.Hz)({name:mi,sup:"B@main",asFolder:!0}));const d=this.getSupPagesByKey(c.key),p=d[0]?d[0].hotAttr.zIndex+1:1;sdkStore.moveHotItem(a,c.key),sdkStore.updateHotAttrMerge(a,{zIndex:p})}),(0,B.A)(this,"handleRecover",async()=>{const{currentUser:a,currentOrg:i,isEditingCombo:c,onClose:d,dispatch:p}=this.props,{checkedCidSet:h}=this.state,m=Array.from(h),x=m.map(F=>this.getSupPagesByKey(F).filter(G=>!h.has(G.key))).flat(1/0);x.forEach(F=>(0,Ar.X3)(F.key,a));const v=m.filter(F=>!x.includes(F)),A=v.filter(F=>{var Z;const G=(Z=rootSdk.sdkStore.getHotItem(F))==null?void 0:Z.hotAttr;return G?!(G.bunch===$.x.RbPage&&G.asFolder):!1});if(!c&&!(0,Ii.X9)(A,!1)){d();return}const k=this.getSupPagesByKey("B@main"),R=k[0]?k[0].hotAttr.zIndex+1:1;v.forEach((F,Z)=>{const G=sdkStore.getHotItem(F),ee=v.includes(G.sup),ce=(0,nr.Mo)(G);ee||(c&&!ce?this.handleRecoverFolderKeyOnEditingCombo(F):(sdkStore.moveHotItem(F,"B@main"),sdkStore.updateHotAttrMerge(F,{zIndex:R+Z})))}),p({type:"entry:update:screen:list"}),d()}),this.state={checkedCidSet:new Set},this.days=(0,tr.ln)(t.currentUser,t.currentOrg);const n=sdkStore.getSubHotItemList("B@trash");this.trashPageList=(0,wa.y)(n,this.days)}render(){const{isOpen:t,onClose:n,currentOrg:a,theme:i,isEditingCombo:c,isEditingUserCombo:d}=this.props,{checkedCidSet:p}=this.state,h=this.trashPageList.length===0;return(0,o.jsx)(ar,{isOpen:t,ref:this.setComponentRef,mask:!1,title:c?I18N.dModals.widget_trash_can:I18N.dModals.page_trash_can,className:"screen-trash-modal top-modal",onClose:n,onConfirm:this.handleRecover,confirmText:I18N.dModals.recover,canConfirm:p.size!==0,confirmBtnProps:{type:"danger"},children:(0,o.jsxs)("div",{className:"library-model-content no-padding",children:[(0,o.jsxs)("div",{className:"dele-tips",children:[(0,o.jsx)(xt.C,{className:"tips-icon",name:"common/screen_trash"}),(0,o.jsx)("p",{children:c?I18N.dModals.widget_recycle.replace("{n}",this.days):I18N.dModals.page_recycle.replace("{n}",this.days)})]}),(0,o.jsx)("div",{className:"screen-list",children:h?(0,o.jsxs)("div",{className:"desc",children:[(0,o.jsx)(xt.C,{className:"desc-icon",name:"screen/recycle",isColorPure:!0}),(0,o.jsx)("p",{children:I18N.dModals.no_deleted_screens})]}):(0,o.jsx)(bs,{theme:i,screenTreeData:this.trashPageList,checkedCidSet:p,onCheck:this.handleCheck,currentOrg:a,isEditingCombo:c,isEditingUserCombo:d})})]})})}}const bs=e=>{let{theme:t,screenTreeData:n,checkedCidSet:a,onCheck:i,currentOrg:c,isEditingCombo:d,isEditingUserCombo:p}=e;return(0,o.jsx)(o.Fragment,{children:n.map(h=>(0,o.jsx)(Os,{theme:t,currentOrg:c,treeNode:h,root:!0,depth:0,checkedCidSet:a,onCheck:i,isEditingCombo:d,isEditingUserCombo:p},h.key))})};class Os extends l.PureComponent{constructor(t){super(t),(0,B.A)(this,"handleCheck",()=>{const{treeNode:n,onCheck:a}=this.props;a(n)}),(0,B.A)(this,"handleExpand",n=>{n.stopPropagation(),this.setState({expand:!this.state.expand})}),this.state={expand:!1}}render(){const{theme:t,treeNode:n,root:a,depth:i,checkedCidSet:c,onCheck:d,currentOrg:p,isEditingCombo:h,isEditingUserCombo:m}=this.props,{expand:x}=this.state,{sub:v,key:A}=n,k=sdkStore.getHotItem(A).hotAttr,R=v.filter(G=>sdkStore.getHotItem(G).hotAttr.bunch===$.x.RbPage),F=R.length!==0,Z=c.has(A);return(0,o.jsxs)("li",{className:"content-item",children:[(0,o.jsxs)("div",{className:"item",onClick:this.handleCheck,children:[(0,o.jsx)(ml,{theme:t,currentOrg:p,root:a,depth:i,showExpander:F,data:k,expand:x,isEditingCombo:h,isEditingUserCombo:m,onExpand:this.handleExpand}),(0,o.jsx)(Sn.A,{readOnly:!0,className:"check",isChecked:Z,onChange:this.handleCheck})]}),R.length>0&&x&&(0,o.jsx)("ol",{className:"child-screens",children:R.map(G=>{const ee=sdkStore.getHotItem(G);return(0,o.jsx)(Os,{theme:t,currentOrg:p,treeNode:ee,root:!1,depth:i+1,checkedCidSet:c,onCheck:d,isEditingCombo:h,isEditingUserCombo:m},G)})})]})}}class ml extends l.PureComponent{render(){const{theme:t,currentOrg:n,root:a,depth:i,showExpander:c,data:d,expand:p,isEditingCombo:h,isEditingUserCombo:m,onExpand:x}=this.props,v=i+1,A=h?!m:!!n;return(0,o.jsxs)(hr,{style:{paddingLeft:v},children:[c&&(0,o.jsx)("div",{className:"expander",onClick:x,children:(0,o.jsx)(xt.C,{className:C()("arrow-icon",{"is-expand":p}),name:"common/expand"})}),(0,o.jsx)(no.k,{icon:d.icon,theme:t,isExpand:p,isEditingCombo:h}),(0,o.jsx)("span",{className:"screen-name",children:(0,Rs.wh)(d.name)}),a&&d.deleteInfo&&d.deleteInfo.deleteUserName&&(0,o.jsxs)("div",{className:"info",children:[A&&(0,o.jsx)("span",{className:"user-name",children:d.deleteInfo.deleteUserName}),(0,o.jsx)("time",{children:Ft()(d.deleteInfo.deleteTime*1e3).format("YYYY-MM-DD HH:mm:ss")})]})]})}}var Ki=s(69623),Bs=s(16402),ac=s(81900),qc=s(16810),Sc=s(61232),ei=s(70248),as=s(34428),As=s(86769),$s=s(55802);const Ys=M.Ay.div.withConfig({displayName:"styles__StyledPreviewCanvasModal",componentId:"sc-oct9bq-0"})([".single-resizer{border:0;z-index:108;pointer-events:none;.resizable-handler{z-index:108;pointer-events:auto;&.t,&.b{width:100%;left:7px;}&.l,&.r{height:100%;top:7px;}}.square{display:none;}}"]),rc=(0,M.Ay)($s.A).withConfig({displayName:"styles__StyledPreviewCanvasModalContent",componentId:"sc-oct9bq-1"})(["border:",";border-radius:10px 10px 0 0;overflow:hidden;z-index:107;background:",";display:flex;flex-direction:column;box-shadow:none;&.is-focus-panel{border:",";box-shadow:2px 8px 20px 0px rgba(0,0,0,0.10);}.content{height:100%;width:100%;}.mask{position:absolute;top:0;left:0;width:100%;height:100%;z-index:1;}"],e=>"1px solid "+e.theme.preview_modal_border_style,e=>e.theme.color_bg_white,e=>"1px solid "+e.theme.color_bg_border_01),Ql=(0,l.memo)(e=>{let{isOpen:t,basketKey:n,activePageKey:a,activeCanvasKey:i,...c}=e;const d=(0,r.d4)(tt.nE),p=(0,r.d4)(He.UV),h=(0,r.d4)(Bs.n),m=(0,l.useMemo)(()=>({left:h+30,top:78}),[h]),[x,v]=(0,l.useState)({activePageKey:a,activeCanvasKey:i,resetTargetCanvasScrollOffset:!0}),A=(0,l.useRef)(x.activeCanvasKey);A.current=x.activeCanvasKey;const k=(0,r.wA)();(0,l.useEffect)(()=>{v({activePageKey:a,activeCanvasKey:i,resetTargetCanvasScrollOffset:!0})},[a,i]),(0,l.useEffect)(()=>{if(t&&d!=null&&d.length){var F;const Z=n&&((F=sdkStore.getHotItem(n))==null?void 0:F.hotAttr.bunch)==="rbPage",G=d.filter(he=>{let{key:ve}=he;if((0,ei.OO)(ve)){const[Te]=(0,ei.QL)(ve);return Te===n}return sdkStore.locUpRBPageKey(ve)===x.activePageKey});if(!(G!=null&&G.length))return;const ee=G.some(he=>{let{key:ve}=he;const Te=(0,ei.OO)(ve)?(0,ei.QL)(ve).pop():ve,xe=(0,ei.OO)(x.activeCanvasKey)?(0,ei.QL)(x.activeCanvasKey).pop():x.activeCanvasKey;return sdkStore.locUpColdCanvasKey(Te)===xe});let ce=x.activePageKey,se=x.activeCanvasKey;ee||d.find(he=>{let{key:ve}=he;const Te=(0,ei.OO)(ve)?(0,ei.QL)(ve).pop():ve,xe=sdkStore.locUpColdCanvasKey(Te);return xe?(ce=sdkStore.locUpRBPageKey(xe),!Z&&!(0,ei.OO)(xe)?se=(0,ei.iK)([n],xe):se=xe,!0):!1}),v({activePageKey:ce,activeCanvasKey:se,resetTargetCanvasScrollOffset:!0})}},[t,d,n]),(0,l.useEffect)(()=>{let F;return t&&(F=p.addSdkStoreChangeListener(Z=>{var G;let{isRemote:ee}=Z;if(ee){if(n&&p.isTrashed(n)||a&&(p.isTrashed(a)||!((G=sdkStore.getHotItem(a))!=null&&G.sub.length))){k({type:"modal:update:state",payload:{previewModal:{isOpen:!1}}});return}if(A.current&&p.isTrashed(A.current)){var ce;const se=(ce=sdkStore.getHotItem(n))==null?void 0:ce.sub.find(he=>p.isActiveKey(he));se&&v({activePageKey:a,activeCanvasKey:se,resetTargetCanvasScrollOffset:!0})}}})),()=>{var Z;(Z=F)==null||Z()}},[t,p,a,n]);const R=F=>{let{activePageKey:Z,activeCanvasKey:G,resetTargetCanvasScrollOffset:ee}=F;v({activePageKey:Z,activeCanvasKey:G,resetTargetCanvasScrollOffset:ee})};return t&&(0,o.jsx)(Id,{basketKey:n,position:m,dispatch:k,...x,...c,onActiveRunner:R})});class Id extends l.PureComponent{constructor(t){super(t),(0,B.A)(this,"handleMove",(x,v)=>{this.setState({left:x,top:v})}),(0,B.A)(this,"handleWheel",x=>x.preventDefault()),(0,B.A)(this,"handleResize",(x,v,A)=>{(0,as.qd)(x,A,k=>{var R;this.setState(k);const{width:F,height:Z}=k;!((R=MB)==null||(R=R.webpackInterface)==null)&&R.store&&MB.webpackInterface.store.dispatch({type:"entry:preview:zoom-quick-preview",payload:{quickPreviewSize:{width:F,height:Z-as.lp}}})})}),(0,B.A)(this,"handleUpdateDragOrResizeModal",x=>{var v,A;this.props.dispatch({type:"modal:update:state",payload:{isDragOrResizeModal:x}}),(v=MB)!=null&&v.runnerController&&((A=MB)==null||(A=A.runnerController)==null||A.setIsPreventEvent(x))}),this.$portalElem=(0,as.ke)();const{PreviewApp:n,runnerController:a,messageBucket:i,webpackInterface:c}=(0,Sc._)(qc.A);MB.previewModalActiveRunner=x=>t.onActiveRunner(x),this.popGlobalPreviewRelated=As.A.tryStashGlobalPreviewRelated({runnerController:a,messageBucket:i,webpackInterface:c}),this.PreviewApp=n;const d=t.height,p=t.width,{width:h,height:m}=(0,as.Xw)({width:p,height:d},{width:p,height:d});this.state={left:t.position.left,top:t.position.top,width:h,height:m+as.lp}}componentDidMount(){var t;!((t=MB)==null||(t=t.webpackInterface)==null)&&t.store&&MB.webpackInterface.store.dispatch({type:"reducer:preview-toolbar:update",payload:{theme:this.props.theme}}),this.$portalElem.addEventListener("wheel",this.handleWheel,{passive:!1})}componentDidUpdate(t,n,a){var i;if((i=MB)!=null&&(i=i.webpackInterface)!=null&&i.store){if(t.activeCanvasKey!==this.props.activeCanvasKey)MB.webpackInterface.store.dispatch({type:"entry:runner:activate:canvas",payload:{pageKey:this.props.activePageKey,canvasKey:this.props.activeCanvasKey,resetTargetSubWidgetsState:this.props.resetTargetSubWidgetsState,resetTargetCanvasScrollOffset:this.props.resetTargetCanvasScrollOffset}});else if(t.theme!==this.props.theme)MB.webpackInterface.store.dispatch({type:"reducer:preview-toolbar:update",payload:{theme:this.props.theme}});else if(t.width!==this.props.width||t.height!==this.props.height){var c;const d=this.props.width,p=this.props.height,{width:h,height:m}=(0,as.Xw)({width:d,height:p},{width:d,height:p}),x=h,v=m+as.lp;this.setState({width:x,height:v}),!((c=MB)==null||(c=c.webpackInterface)==null)&&c.store&&MB.webpackInterface.store.dispatch({type:"entry:preview:zoom-quick-preview",payload:{quickPreviewSize:{width:x,height:v}}})}}}componentWillUnmount(){this.handleUpdateDragOrResizeModal(!1),setTimeout(()=>this.popGlobalPreviewRelated(),500),this.$portalElem.removeEventListener("wheel",this.handleWheel,{passive:!1})}render(){var t,n;const{projectAlike:a,activePageKey:i,activeCanvasKey:c,basketKey:d,onClose:p}=this.props,{PreviewApp:h}=this,{left:m,top:x,width:v,height:A}=this.state;return!((t=MB)!=null&&(t=t.webpackInterface)!=null&&t.store)||!((n=MB)!=null&&n.runnerController)?null:(0,Ki.createPortal)((0,o.jsxs)(Ys,{children:[(0,o.jsx)(Qa.A,{position:{left:m,top:x},dragContainer:as.er.PanelModal,onMove:this.handleMove,onMoveStart:()=>this.handleUpdateDragOrResizeModal(!0),onMoveEnd:()=>this.handleUpdateDragOrResizeModal(!1),children:(0,o.jsx)(rc,{id:as.er.PanelModal,style:{width:v,height:A},className:"preview-modal-portal-root is-focus-panel",children:(0,o.jsx)("div",{className:"content",children:(0,o.jsx)(h,{store:MB.webpackInterface.store,projectAlike:a,activePageKey:i,activeCanvasKey:c,basketKey:d,quickPreviewSize:{width:v,height:A-as.lp},isPanelPreviewMode:!0,onCloseModal:p})})})}),(0,o.jsx)(ac.A,{classname:"resizer",top:x,left:m,width:v,height:A,zoomable:"n,s,e,w,ne,nw,se,sw",rotatable:!1,rotateAngle:0,onResize:this.handleResize,onResizeStart:()=>this.handleUpdateDragOrResizeModal(!0),onResizeEnd:()=>this.handleUpdateDragOrResizeModal(!1),cursorAngle:0})]}),this.$portalElem)}}const _d=Ql,h2=(0,M.Ay)(ci.H).withConfig({displayName:"styles__StyledAssetGroupRemoveModal",componentId:"sc-dgyr8s-0"})(["&.asset-group-remove-modal{.content{p{font-size:14px;color:",";}}footer{.link-opener-wrapper{margin-right:auto;.dropLibraryFolderMenu{width:180px;height:34px;border-color:",";transition:border-color 0.3s;border-radius:6px;&:hover{border:1px solid #1684FC;}.select-title.is-placeholder{color:",";}}button[disabled]{.dropLibraryFolderMenu:hover{border-color:",";}}}.select-title{margin-left:0.5em;text-align:left;flex:1;overflow:hidden;color:",";}}}"],e=>e.theme.color_text_L1,e=>e.theme.color_bg_border_02,e=>e.theme.color_text_L1,e=>e.theme.color_bg_line,e=>e.theme.color_text_L1),vp=(0,M.DU)([".DropdownMenuPortal{.DesignDropdownMenu.dropLibraryFolderMenu{width:180px;border-radius:8px;.content{background-color:rgba(51,51,51,1);width:200px;max-height:434px;padding:0;}}}"]);var U1=s(20085);const g0="no unset";class bp extends l.PureComponent{constructor(t){super(t),(0,B.A)(this,"setComponentRef",n=>this.dropdown=n),(0,B.A)(this,"handleNodeSelect",n=>{this.setState({selectedCid:n.cid,selectedNode:n}),this.dropdown.close()}),(0,B.A)(this,"handleDelete",()=>{const{onModalDelete:n}=this.props,{selectedCid:a}=this.state;n({isDeleteAsset:a===g0,selectedCid:a})}),(0,B.A)(this,"renderFooterContent",()=>{const{otherAssetGroups:n,assetToRemove:a,assetGroup:i}=this.props,{selectedCid:c}=this.state,d=a.length>0,p=(0,U1.H)(n),h=[{name:I18N.dModals.not_transfer,cid:g0,subFolder:[]}].concat(p.sort((m,x)=>m.position-x.position));if(d)return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(Ml.Ay,{isOpen:!1,ref:this.setComponentRef,title:this.state.selectedNode.name||I18N.dModals.not_transfer,isPlaceholder:c===g0,isOpenerAttrDisabled:h.length<2,menux:"left",forceDarkTheme:!0,shouldPreventScrollingPropagation:!1,className:"dropLibraryFolderMenu",renderMenu:(0,o.jsx)(zs,{data:h,group:i,selected:c,onNodeSelect:this.handleNodeSelect})}),(0,o.jsx)(vp,{})]})}),this.state={selectedCid:g0,selectedNode:{}}}render(){const{isOpen:t,onClose:n,assetGroup:a,assetToRemove:i}=this.props,{selectedCid:c}=this.state,d=i.length>0,p=c!==g0?I18N.dModals.move_and_del:I18N.dModals.confirm,h=d?"\u300C"+a.name+"\u300D "+I18N.dModals.contain+" \u300C"+i.length+"\u300D "+I18N.dModals.move_asset_library_one:I18N.dModals.confirm_del_folder.replace("{name}",a.name);return(0,o.jsx)(h2,{isOpen:t,className:"asset-group-remove-modal top-modal",onConfirm:this.handleDelete,onClose:n,confirmText:p,renderFooterContent:this.renderFooterContent,canConfirm:!0,canClose:!1,mask:!1,confirmBtnProps:{type:"danger"},title:"\u5220\u9664\u6587\u4EF6\u5939",children:(0,o.jsx)("p",{children:h})})}}var y0=s(62537);const R0=(0,M.Ay)(ci.H).withConfig({displayName:"styles__CSSDesignModal",componentId:"sc-1h8r1s1-0"})([".content{.modal-tips{font-size:13px;color:",";}.Input .input{color:",";}}footer{.footer-actions{width:166px;display:flex;justify-content:space-between;position:absolute;left:20px;align-items:center;.link-opener-wrapper{margin-right:10px;.dropLibraryFolderMenu{width:128px;height:32px;border-color:",";transition:border-color 0.3s;border-radius:6px;&:hover{border:1px solid #1684FC;}&.options-opener .select-title{margin-left:0.5em;text-align:left;color:",";}.select-title.is-placeholder{color:",";}.svg-icon{color:",";margin-right:4px;}}button[disabled]{.dropLibraryFolderMenu:hover{border-color:",";}}}.Select,.Input{height:32px;width:128px;input{color:",";}}.icons-box{width:32px;height:32px;line-height:40px;text-align:center;border-radius:6px;&:hover{background-color:",";}&:active{background-color:",";}.svg-icon{font-size:18px;cursor:pointer;color:",";path:nth-child(1){fill:#F2F4F5;}path:nth-child(3){fill:#333;}}}.exit-create{margin-left:10px;color:#298df8;}}.select-title{flex:1;overflow:hidden;}}.combo-create-check{margin-top:10px;}"],e=>e.theme.color_text_L2,e=>e.theme.color_text_L1,e=>e.theme.color_bg_border_02,e=>e.theme.color_text_L1,e=>e.theme.color_text_L1,e=>e.theme.color_text_L1,e=>e.theme.color_bg_line,e=>e.theme.color_text_L1,e=>e.theme.color_btn_secondary_active,e=>e.theme.color_btn_secondary_active,e=>e.theme.color_text_L1),Eu=(0,M.DU)([".DropdownMenuPortal{.DesignDropdownMenu.dropLibraryFolderMenu{width:200px;border-radius:8px;.content{background-color:rgba(51,51,51,1);width:200px;max-height:434px;padding:0;}}}"]);class r1 extends l.PureComponent{constructor(t){var n,a;super(t),(0,B.A)(this,"setInputRef",h=>this.input=h),(0,B.A)(this,"setAssetInputRef",h=>this.assetInput=h),(0,B.A)(this,"setComponentRef",h=>this.dropdown=h),(0,B.A)(this,"handleNodeSelect",h=>{this.setState({targetGroupCid:h.cid,curSelectedName:h.name}),this.dropdown.close()}),(0,B.A)(this,"handleTargetGroupCidChange",h=>{this.setState({targetGroupCid:h})}),(0,B.A)(this,"handleGroupNameChange",h=>{this.setState({groupName:h})}),(0,B.A)(this,"handleCreateGroup",()=>{this.setState({isCreating:!0},()=>{this.input.querySelector("input").select()})}),(0,B.A)(this,"handleCancelCreateComboGroup",()=>{this.setState({isCreating:!1})}),(0,B.A)(this,"handleConfirm",()=>(this.assetInput.click(),!0)),(0,B.A)(this,"createAssetByFiles",async h=>{const{onModalConfirm:m,onClose:x}=this.props,{isCreating:v,targetGroupCid:A,groupName:k}=this.state;m({files:h,isCreating:v,targetGroupCid:A,groupName:k,onModalClose:x})}),(0,B.A)(this,"renderFooterContent",()=>{const{inputGroupPlaceholder:h}=this.props,{optionGroupItemList:m,groupName:x,curSelectedName:v,targetGroupCid:A,isCreating:k}=this.state,R=(0,U1.H)(m);let F;R.length===1?F=Rn(R[0])<=1:F=R.length<=1;const Z=R.length>=1;return k?(0,o.jsxs)("div",{className:"footer-actions",ref:this.setInputRef,children:[(0,o.jsx)(ji.A,{type:"text",placeholder:h,value:x,onChange:this.handleGroupNameChange}),Z&&(0,o.jsx)("a",{className:"exit-create",onClick:this.handleCancelCreateComboGroup,children:I18N.dModals.cancel})]}):(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("div",{className:"footer-actions",ref:this.setInputRef,children:[(0,o.jsx)(Ml.Ay,{isOpen:!1,ref:this.setComponentRef,isOpenerAttrDisabled:F,title:v,menux:"left",forceDarkTheme:!0,shouldPreventScrollingPropagation:!1,className:"dropLibraryFolderMenu",renderMenu:(0,o.jsx)(zs,{data:R,selected:this.state.targetGroupCid,onNodeSelect:this.handleNodeSelect})}),(0,o.jsx)("div",{className:"icons-box",children:(0,o.jsx)(xt.C,{name:"design/new_widgets",onClick:this.handleCreateGroup})})]}),(0,o.jsx)(Eu,{})]})});const{isCreating:i,targetGroupCid:c,groupName:d,optionGroupItemList:p}=t;this.state={isCreating:i,targetGroupCid:(p==null||(n=p[0])==null?void 0:n.cid)||"",curSelectedName:(p==null||(a=p[0])==null?void 0:a.name)||"",groupName:d,optionGroupItemList:p}}render(){const{isOpen:t,onClose:n,modalTitle:a}=this.props,{groupName:i,isCreating:c}=this.state,d=c?i!=="":!0;return(0,o.jsxs)(R0,{isOpen:t,onConfirm:this.handleConfirm,onClose:n,renderFooterContent:this.renderFooterContent,canConfirm:d,title:a,className:"top-modal",canClose:!1,mask:!1,confirmBtnProps:{type:"danger",callOnClose:!1,shouldCloseOnAction:!1},children:[(0,o.jsx)("p",{className:"modal-tips",children:I18N.Resources.allow_upload_in_batched}),(0,o.jsx)(y0.A,{ref:this.setAssetInputRef,onChange:this.createAssetByFiles})]})}}(0,B.A)(r1,"defaultProps",{isCreating:!1,inputGroupPlaceholder:""});var O1={};(function e(t,n,a,i){var c=!!(t.Worker&&t.Blob&&t.Promise&&t.OffscreenCanvas&&t.OffscreenCanvasRenderingContext2D&&t.HTMLCanvasElement&&t.HTMLCanvasElement.prototype.transferControlToOffscreen&&t.URL&&t.URL.createObjectURL),d=typeof Path2D=="function"&&typeof DOMMatrix=="function",p=function(){if(!t.OffscreenCanvas)return!1;var Mt=new OffscreenCanvas(1,1),Et=Mt.getContext("2d");Et.fillRect(0,0,1,1);var Co=Mt.transferToImageBitmap();try{Et.createPattern(Co,"no-repeat")}catch(Pn){return!1}return!0}();function h(){}function m(Mt){var Et=n.exports.Promise,Co=Et!==void 0?Et:t.Promise;return typeof Co=="function"?new Co(Mt):(Mt(h,h),null)}var x=function(Mt,Et){return{transform:function(Co){if(Mt)return Co;if(Et.has(Co))return Et.get(Co);var Pn=new OffscreenCanvas(Co.width,Co.height),ro=Pn.getContext("2d");return ro.drawImage(Co,0,0),Et.set(Co,Pn),Pn},clear:function(){Et.clear()}}}(p,new Map),v=function(){var Mt=Math.floor(16.666666666666668),Et,Co,Pn={},ro=0;return typeof requestAnimationFrame=="function"&&typeof cancelAnimationFrame=="function"?(Et=function(Io){var mo=Math.random();return Pn[mo]=requestAnimationFrame(function So(ho){ro===ho||ro+Mt-1<ho?(ro=ho,delete Pn[mo],Io()):Pn[mo]=requestAnimationFrame(So)}),mo},Co=function(Io){Pn[Io]&&cancelAnimationFrame(Pn[Io])}):(Et=function(Io){return setTimeout(Io,Mt)},Co=function(Io){return clearTimeout(Io)}),{frame:Et,cancel:Co}}(),A=function(){var Mt,Et,Co={};function Pn(ro){function Io(mo,So){ro.postMessage({options:mo||{},callback:So})}ro.init=function(So){var ho=So.transferControlToOffscreen();ro.postMessage({canvas:ho},[ho])},ro.fire=function(So,ho,No){if(Et)return Io(So,null),Et;var Xo=Math.random().toString(36).slice(2);return Et=m(function(Ta){function Da(xr){xr.data.callback===Xo&&(delete Co[Xo],ro.removeEventListener("message",Da),Et=null,x.clear(),No(),Ta())}ro.addEventListener("message",Da),Io(So,Xo),Co[Xo]=Da.bind(null,{data:{callback:Xo}})}),Et},ro.reset=function(){ro.postMessage({reset:!0});for(var So in Co)Co[So](),delete Co[So]}}return function(){if(Mt)return Mt;if(!a&&c){var ro=["var CONFETTI, SIZE = {}, module = {};","("+e.toString()+")(this, module, true, SIZE);","onmessage = function(msg) {"," if (msg.data.options) {"," CONFETTI(msg.data.options).then(function () {"," if (msg.data.callback) {"," postMessage({ callback: msg.data.callback });"," }"," });"," } else if (msg.data.reset) {"," CONFETTI && CONFETTI.reset();"," } else if (msg.data.resize) {"," SIZE.width = msg.data.resize.width;"," SIZE.height = msg.data.resize.height;"," } else if (msg.data.canvas) {"," SIZE.width = msg.data.canvas.width;"," SIZE.height = msg.data.canvas.height;"," CONFETTI = module.exports.create(msg.data.canvas);"," }","}"].join("\n");try{Mt=new Worker(URL.createObjectURL(new Blob([ro])))}catch(Io){return typeof console!==void 0&&typeof console.warn=="function"&&console.warn("\u{1F38A} Could not load worker",Io),null}Pn(Mt)}return Mt}}(),k={particleCount:50,angle:90,spread:45,startVelocity:45,decay:.9,gravity:1,drift:0,ticks:200,x:.5,y:.5,shapes:["square","circle"],zIndex:100,colors:["#26ccff","#a25afd","#ff5e7e","#88ff5a","#fcff42","#ffa62d","#ff36ff"],disableForReducedMotion:!1,scalar:1};function R(Mt,Et){return Et?Et(Mt):Mt}function F(Mt){return Mt!=null}function Z(Mt,Et,Co){return R(Mt&&F(Mt[Et])?Mt[Et]:k[Et],Co)}function G(Mt){return Mt<0?0:Math.floor(Mt)}function ee(Mt,Et){return Math.floor(Math.random()*(Et-Mt))+Mt}function ce(Mt){return parseInt(Mt,16)}function se(Mt){return Mt.map(he)}function he(Mt){var Et=String(Mt).replace(/[^0-9a-f]/gi,"");return Et.length<6&&(Et=Et[0]+Et[0]+Et[1]+Et[1]+Et[2]+Et[2]),{r:ce(Et.substring(0,2)),g:ce(Et.substring(2,4)),b:ce(Et.substring(4,6))}}function ve(Mt){var Et=Z(Mt,"origin",Object);return Et.x=Z(Et,"x",Number),Et.y=Z(Et,"y",Number),Et}function Te(Mt){Mt.width=document.documentElement.clientWidth,Mt.height=document.documentElement.clientHeight}function xe(Mt){var Et=Mt.getBoundingClientRect();Mt.width=Et.width,Mt.height=Et.height}function Fe(Mt){var Et=document.createElement("canvas");return Et.style.position="fixed",Et.style.top="0px",Et.style.left="0px",Et.style.pointerEvents="none",Et.style.zIndex=Mt,Et}function et(Mt,Et,Co,Pn,ro,Io,mo,So,ho){Mt.save(),Mt.translate(Et,Co),Mt.rotate(Io),Mt.scale(Pn,ro),Mt.arc(0,0,1,mo,So,ho),Mt.restore()}function Ke(Mt){var Et=Mt.angle*(Math.PI/180),Co=Mt.spread*(Math.PI/180);return{x:Mt.x,y:Mt.y,wobble:Math.random()*10,wobbleSpeed:Math.min(.11,Math.random()*.1+.05),velocity:Mt.startVelocity*.5+Math.random()*Mt.startVelocity,angle2D:-Et+(.5*Co-Math.random()*Co),tiltAngle:(Math.random()*(.75-.25)+.25)*Math.PI,color:Mt.color,shape:Mt.shape,tick:0,totalTicks:Mt.ticks,decay:Mt.decay,drift:Mt.drift,random:Math.random()+2,tiltSin:0,tiltCos:0,wobbleX:0,wobbleY:0,gravity:Mt.gravity*3,ovalScalar:.6,scalar:Mt.scalar,flat:Mt.flat}}function Qe(Mt,Et){Et.x+=Math.cos(Et.angle2D)*Et.velocity+Et.drift,Et.y+=Math.sin(Et.angle2D)*Et.velocity+Et.gravity,Et.velocity*=Et.decay,Et.flat?(Et.wobble=0,Et.wobbleX=Et.x+10*Et.scalar,Et.wobbleY=Et.y+10*Et.scalar,Et.tiltSin=0,Et.tiltCos=0,Et.random=1):(Et.wobble+=Et.wobbleSpeed,Et.wobbleX=Et.x+10*Et.scalar*Math.cos(Et.wobble),Et.wobbleY=Et.y+10*Et.scalar*Math.sin(Et.wobble),Et.tiltAngle+=.1,Et.tiltSin=Math.sin(Et.tiltAngle),Et.tiltCos=Math.cos(Et.tiltAngle),Et.random=Math.random()+2);var Co=Et.tick++/Et.totalTicks,Pn=Et.x+Et.random*Et.tiltCos,ro=Et.y+Et.random*Et.tiltSin,Io=Et.wobbleX+Et.random*Et.tiltCos,mo=Et.wobbleY+Et.random*Et.tiltSin;if(Mt.fillStyle="rgba("+Et.color.r+", "+Et.color.g+", "+Et.color.b+", "+(1-Co)+")",Mt.beginPath(),d&&Et.shape.type==="path"&&typeof Et.shape.path=="string"&&Array.isArray(Et.shape.matrix))Mt.fill(St(Et.shape.path,Et.shape.matrix,Et.x,Et.y,Math.abs(Io-Pn)*.1,Math.abs(mo-ro)*.1,Math.PI/10*Et.wobble));else if(Et.shape.type==="bitmap"){var So=Math.PI/10*Et.wobble,ho=Math.abs(Io-Pn)*.1,No=Math.abs(mo-ro)*.1,Xo=Et.shape.bitmap.width*Et.scalar,Ta=Et.shape.bitmap.height*Et.scalar,Da=new DOMMatrix([Math.cos(So)*ho,Math.sin(So)*ho,-Math.sin(So)*No,Math.cos(So)*No,Et.x,Et.y]);Da.multiplySelf(new DOMMatrix(Et.shape.matrix));var xr=Mt.createPattern(x.transform(Et.shape.bitmap),"no-repeat");xr.setTransform(Da),Mt.globalAlpha=1-Co,Mt.fillStyle=xr,Mt.fillRect(Et.x-Xo/2,Et.y-Ta/2,Xo,Ta),Mt.globalAlpha=1}else if(Et.shape==="circle")Mt.ellipse?Mt.ellipse(Et.x,Et.y,Math.abs(Io-Pn)*Et.ovalScalar,Math.abs(mo-ro)*Et.ovalScalar,Math.PI/10*Et.wobble,0,2*Math.PI):et(Mt,Et.x,Et.y,Math.abs(Io-Pn)*Et.ovalScalar,Math.abs(mo-ro)*Et.ovalScalar,Math.PI/10*Et.wobble,0,2*Math.PI);else if(Et.shape==="star")for(var Wa=Math.PI/2*3,Dr=4*Et.scalar,Wr=8*Et.scalar,hi=Et.x,Sr=Et.y,oi=5,js=Math.PI/oi;oi--;)hi=Et.x+Math.cos(Wa)*Wr,Sr=Et.y+Math.sin(Wa)*Wr,Mt.lineTo(hi,Sr),Wa+=js,hi=Et.x+Math.cos(Wa)*Dr,Sr=Et.y+Math.sin(Wa)*Dr,Mt.lineTo(hi,Sr),Wa+=js;else Mt.moveTo(Math.floor(Et.x),Math.floor(Et.y)),Mt.lineTo(Math.floor(Et.wobbleX),Math.floor(ro)),Mt.lineTo(Math.floor(Io),Math.floor(mo)),Mt.lineTo(Math.floor(Pn),Math.floor(Et.wobbleY));return Mt.closePath(),Mt.fill(),Et.tick<Et.totalTicks}function nt(Mt,Et,Co,Pn,ro){var Io=Et.slice(),mo=Mt.getContext("2d"),So,ho,No=m(function(Xo){function Ta(){So=ho=null,mo.clearRect(0,0,Pn.width,Pn.height),x.clear(),ro(),Xo()}function Da(){a&&!(Pn.width===i.width&&Pn.height===i.height)&&(Pn.width=Mt.width=i.width,Pn.height=Mt.height=i.height),!Pn.width&&!Pn.height&&(Co(Mt),Pn.width=Mt.width,Pn.height=Mt.height),mo.clearRect(0,0,Pn.width,Pn.height),Io=Io.filter(function(xr){return Qe(mo,xr)}),Io.length?So=v.frame(Da):Ta()}So=v.frame(Da),ho=Ta});return{addFettis:function(Xo){return Io=Io.concat(Xo),No},canvas:Mt,promise:No,reset:function(){So&&v.cancel(So),ho&&ho()}}}function Xe(Mt,Et){var Co=!Mt,Pn=!!Z(Et||{},"resize"),ro=!1,Io=Z(Et,"disableForReducedMotion",Boolean),mo=c&&!!Z(Et||{},"useWorker"),So=mo?A():null,ho=Co?Te:xe,No=Mt&&So?!!Mt.__confetti_initialized:!1,Xo=typeof matchMedia=="function"&&matchMedia("(prefers-reduced-motion)").matches,Ta;function Da(Wa,Dr,Wr){for(var hi=Z(Wa,"particleCount",G),Sr=Z(Wa,"angle",Number),oi=Z(Wa,"spread",Number),js=Z(Wa,"startVelocity",Number),Ri=Z(Wa,"decay",Number),li=Z(Wa,"gravity",Number),fi=Z(Wa,"drift",Number),bi=Z(Wa,"colors",se),ls=Z(Wa,"ticks",Number),Pi=Z(Wa,"shapes"),es=Z(Wa,"scalar"),qs=!!Z(Wa,"flat"),Us=ve(Wa),pc=hi,Yl=[],xs=Mt.width*Us.x,wl=Mt.height*Us.y;pc--;)Yl.push(Ke({x:xs,y:wl,angle:Sr,spread:oi,startVelocity:js,color:bi[pc%bi.length],shape:Pi[ee(0,Pi.length)],ticks:ls,decay:Ri,gravity:li,drift:fi,scalar:es,flat:qs}));return Ta?Ta.addFettis(Yl):(Ta=nt(Mt,Yl,ho,Dr,Wr),Ta.promise)}function xr(Wa){var Dr=Io||Z(Wa,"disableForReducedMotion",Boolean),Wr=Z(Wa,"zIndex",Number);if(Dr&&Xo)return m(function(js){js()});Co&&Ta?Mt=Ta.canvas:Co&&!Mt&&(Mt=Fe(Wr),document.body.appendChild(Mt)),Pn&&!No&&ho(Mt);var hi={width:Mt.width,height:Mt.height};So&&!No&&So.init(Mt),No=!0,So&&(Mt.__confetti_initialized=!0);function Sr(){if(So){var js={getBoundingClientRect:function(){if(!Co)return Mt.getBoundingClientRect()}};ho(js),So.postMessage({resize:{width:js.width,height:js.height}});return}hi.width=hi.height=null}function oi(){Ta=null,Pn&&(ro=!1,t.removeEventListener("resize",Sr)),Co&&Mt&&(document.body.contains(Mt)&&document.body.removeChild(Mt),Mt=null,No=!1)}return Pn&&!ro&&(ro=!0,t.addEventListener("resize",Sr,!1)),So?So.fire(Wa,hi,oi):Da(Wa,hi,oi)}return xr.reset=function(){So&&So.reset(),Ta&&Ta.reset()},xr}var lt;function Ct(){return lt||(lt=Xe(null,{useWorker:!0,resize:!0})),lt}function St(Mt,Et,Co,Pn,ro,Io,mo){var So=new Path2D(Mt),ho=new Path2D;ho.addPath(So,new DOMMatrix(Et));var No=new Path2D;return No.addPath(ho,new DOMMatrix([Math.cos(mo)*ro,Math.sin(mo)*ro,-Math.sin(mo)*Io,Math.cos(mo)*Io,Co,Pn])),No}function hn(Mt){if(!d)throw new Error("path confetti are not supported in this browser");var Et,Co;typeof Mt=="string"?Et=Mt:(Et=Mt.path,Co=Mt.matrix);var Pn=new Path2D(Et),ro=document.createElement("canvas"),Io=ro.getContext("2d");if(!Co){for(var mo=1e3,So=mo,ho=mo,No=0,Xo=0,Ta,Da,xr=0;xr<mo;xr+=2)for(var Wa=0;Wa<mo;Wa+=2)Io.isPointInPath(Pn,xr,Wa,"nonzero")&&(So=Math.min(So,xr),ho=Math.min(ho,Wa),No=Math.max(No,xr),Xo=Math.max(Xo,Wa));Ta=No-So,Da=Xo-ho;var Dr=10,Wr=Math.min(Dr/Ta,Dr/Da);Co=[Wr,0,0,Wr,-Math.round(Ta/2+So)*Wr,-Math.round(Da/2+ho)*Wr]}return{type:"path",path:Et,matrix:Co}}function Cn(Mt){var Et,Co=1,Pn="#000000",ro='"Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", "EmojiOne Color", "Android Emoji", "Twemoji Mozilla", "system emoji", sans-serif';typeof Mt=="string"?Et=Mt:(Et=Mt.text,Co="scalar"in Mt?Mt.scalar:Co,ro="fontFamily"in Mt?Mt.fontFamily:ro,Pn="color"in Mt?Mt.color:Pn);var Io=10*Co,mo=""+Io+"px "+ro,So=new OffscreenCanvas(Io,Io),ho=So.getContext("2d");ho.font=mo;var No=ho.measureText(Et),Xo=Math.ceil(No.actualBoundingBoxRight+No.actualBoundingBoxLeft),Ta=Math.ceil(No.actualBoundingBoxAscent+No.actualBoundingBoxDescent),Da=2,xr=No.actualBoundingBoxLeft+Da,Wa=No.actualBoundingBoxAscent+Da;Xo+=Da+Da,Ta+=Da+Da,So=new OffscreenCanvas(Xo,Ta),ho=So.getContext("2d"),ho.font=mo,ho.fillStyle=Pn,ho.fillText(Et,xr,Wa);var Dr=1/Co;return{type:"bitmap",bitmap:So.transferToImageBitmap(),matrix:[Dr,0,0,Dr,-Xo*Dr/2,-Ta*Dr/2]}}n.exports=function(){return Ct().apply(this,arguments)},n.exports.reset=function(){Ct().reset()},n.exports.create=Xe,n.exports.shapeFromPath=hn,n.exports.shapeFromText=Cn})(function(){return typeof window<"u"?window:typeof self<"u"?self:this||{}}(),O1,!1);const Iu=O1.exports;var i1=O1.exports.create;function Bh(){const e=(0,l.useRef)(null),t=(0,l.useCallback)(()=>{if(!e.current)return;const n=Iu.create(e.current),a=600,i={startVelocity:100,gravity:1.5,ticks:120,resize:!0,useWorker:!0};function c(d,p){function h(m,x){n(Object.assign({},{...i,origin:d,angle:p},x,{particleCount:Math.floor(a*m)}))}h(.25,{spread:50,startVelocity:75}),h(.2,{spread:70}),h(.35,{spread:100,decay:.91,scalar:.8}),h(.1,{spread:120,startVelocity:25,decay:.92,scalar:1.2}),h(.1,{spread:120,startVelocity:45})}c({x:1,y:1},120),c({x:0,y:1},60)},[]);return(0,l.useEffect)(()=>{const n=document.querySelector("#IBOT_MODAL_ROOT .CouponReceivedModalPortal .CouponReceivedModalMask"),a=n.parentNode;if(!a||!n)return;const i=document.createElement("canvas");i.id="coupon-received-confetti-canvas",i.width=window.innerWidth,i.height=window.innerHeight,i.style.position="fixed",i.style.top="0px",i.style.left="0px",i.style.right="0px",i.style.width="100vw",i.style.height="100vh",i.style.zIndex="1",i.style.pointerEvents="none",a.insertBefore(i,n),e.current=i;const c=setTimeout(t,500);return()=>{clearTimeout(c)}},[t]),null}const wp=(0,l.memo)(Bh);var B0=s(91110),x0=s(84957);const v0=(0,M.Ay)(ci.H).withConfig({displayName:"styles__StyledCouponReceivedModal",componentId:"sc-1or7x18-0"})(['background:url("/mb-proto2/images/guide/noviceGuides2309/coupon_received_modal_bg.png") no-repeat;background-size:100%;height:332px;.content{width:100%;height:100%;position:relative;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;padding:0;}.modal-title{font-weight:700;font-size:20px;color:#FFF;text-align:center;line-height:40px;margin-left:10px;margin-bottom:18px;}.desc{font-size:14px;font-weight:500;color:#333;text-align:center;margin-bottom:18px;.jump-to-workspace{position:relative;color:#333;::after{content:"";position:absolute;bottom:-1px;right:7px;height:1px;width:56px;background:#333;}}}.coupons{display:flex;justify-content:center;overflow:hidden;.coupon{width:240px;height:159px;padding:15px 15px 24px;display:flex;flex-direction:column;justify-content:center;align-items:center;.top{height:70px;width:100%;text-align:center;.constraint{margin-top:11px;font-weight:600;font-size:16px;color:#982A12;}.coupon-content{margin-top:4px;font-weight:600;font-size:26px;line-height:24px;color:#FF1D47;}}.bottom{flex:1;width:100%;text-align:center;.due-date{margin-top:10px;color:#985512;font-weight:400;}}}}.modal-bottom{position:absolute;left:0;bottom:0;width:100%;height:112px;.bottom-btn{margin-top:52px;padding:0 55px;display:flex;justify-content:space-between;button{width:140px;height:36px;border-radius:100px;font-size:16px;font-weight:500;display:flex;justify-content:center;align-items:center;&.use{border:1px solid #FF1D4A;background:#FFF;color:#FF1D4A;&:hover{background:#ff1d4a19;}}&.close{border:1px solid #FFE6C6;background:linear-gradient(89deg,#FF673E -41.97%,#FF4F82 173.35%);color:#FFF;&:hover{background:linear-gradient(89deg,#FF6035 -41.97%,#FF2968 173.35%);}}}}}']);var hc=s(32060);const zc=function(e,t,n){n===void 0&&(n="");let a="";const i=e&&e.cid?e.cid:"me";if(e){const d={mode:"org",orgCid:e.cid,payEntrance:t,checkoutArea:"workspace",checkoutPlace:n||"org_use_vip_mkt",initialWorkspace:i};a=(0,x0._)(d)}else{const c={mode:"solo",payEntrance:t,checkoutArea:"workspace",checkoutPlace:n||"solo_use_vip_mkt",initialWorkspace:i};a=(0,x0._)(c)}return a};function m2(e){const{isOpen:t,org:n,coupons:a,dispatch:i,onClose:c}=e,d=(0,l.useCallback)(()=>{i({type:"modal:update:state",payload:{couponReceivedModal:{isOpen:!1}}}),c&&c()},[i,c]),p=(0,l.useCallback)(()=>{B0.Y.noviceGuide2309CouponClick("\u7EE7\u7EED\u4F53\u9A8C"),d(),(0,hc.iX)()},[d]),h=(0,l.useCallback)(()=>{const v=zc(n,"","");B0.Y.noviceGuide2309CouponClick("\u4F7F\u7528\u4F18\u60E0\u5238"),d();const A=n&&n.cid?"org":"solo";i({type:"modal:update:state",payload:{chargeModal:{isOpen:!0,mode:A,src:location.origin+"/embed/payment_modal?param="+v}}})},[i,n,d]);return(0,o.jsx)(v0,{isOpen:t,canCancel:!1,canConfirm:!0,onClose:d,canCloseOnClickMask:!1,maskClassName:"CouponReceivedModalMask",portalClassName:"CouponReceivedModalPortal",title:null,footer:null,width:400,modalRender:()=>(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("h3",{className:"modal-title",children:"\u606D\u559C\u5B8C\u6210\uFF01"}),(0,o.jsxs)("div",{className:"desc",children:["\u592A\u68D2\u4E86\uFF0C\u60A8\u5DF2\u4F53\u9A8C\u4E86\u539F\u578B\u6838\u5FC3\u529F\u80FD\uFF0C\u5956\u52B1\u4E00\u5F20",(0,o.jsx)("br",{}),"\u4F18\u60E0\u52B5\uFF0C\u53EF\u524D\u5F80\u5DE5\u4F5C\u53F0",(0,o.jsx)("a",{className:"jump-to-workspace",href:"/workspace/"+((n==null?void 0:n.cid)||"me")+"?open=coupon",target:"_blank",rel:"noreferrer",children:"\u3010\u4F18\u60E0\u52B5\u3011"})," \u67E5\u770B\u3002"]}),(0,o.jsx)("div",{className:"coupons",children:a==null?void 0:a.map((m,x)=>(0,o.jsx)(Wc,{...m},m.id+"-"+(x+1)))}),(0,o.jsx)("div",{className:"modal-bottom",children:(0,o.jsxs)("div",{className:"bottom-btn",children:[(0,o.jsx)("button",{className:"use",onClick:h,children:"\u4F7F\u7528\u4F18\u60E0\u5238"}),(0,o.jsx)("button",{className:"close",onClick:p,children:"\u7EE7\u7EED\u4F53\u9A8C"})]})}),(0,o.jsx)(wp,{})]})})}function Wc(e){let{id:t,title:n,content:a,constraint:i,valid_until:c}=e;return(0,o.jsxs)("div",{className:"coupon",children:[(0,o.jsxs)("div",{className:"top",children:[(0,o.jsx)("p",{className:"constraint",children:i}),(0,o.jsx)("p",{className:"coupon-content",children:a})]}),(0,o.jsx)("div",{className:"bottom",children:(0,o.jsxs)("p",{className:"due-date",children:["\u6709\u6548\u671F\u81F3 ",Ft()(c).format("YYYY.MM.DD")]})})]},t)}const _u=(0,l.memo)(m2),Tu=(0,M.Ay)(ci.H).withConfig({displayName:"styles__StyledMockittGuideModal",componentId:"sc-1thomi4-0"})(['box-shadow:none;background:url("/mb-proto2/images/guide/newGuides/mockitt_guide_modal_new_bg.png") no-repeat top right !important;;background-size:400px 230px;.guide-container{display:flex;width:100%;height:100%;padding:0 53px;align-items:center;justify-content:center;flex-direction:column;.guide-title{font-family:Inter;font-size:28px;font-weight:600;line-height:34px;letter-spacing:0px;text-align:center;color:rgba(255,103,62,1);}.guide-desc{font-family:PingFang SC;font-size:14px;font-weight:500;line-height:20px;letter-spacing:0px;text-align:center;color:rgba(51,51,51,1);margin:30px 0;}.explore-more{display:flex;align-items:center;justify-content:center;font-family:PingFang SC;color:white;width:228px;height:36px;font-size:16px;font-weight:500;border-radius:18px;cursor:pointer;background:linear-gradient(88.92deg,#FF673E -41.97%,#FF4F82 173.35%);&:hover{background:linear-gradient(88.92deg,#FF6035 -41.97%,#FF2968 173.35%);}}}']);class Pu extends l.PureComponent{constructor(){super(...arguments),(0,B.A)(this,"onClose",()=>{const{dispatch:t,onClose:n}=this.props;t({type:"modal:update:state",payload:{mockittGuideModal:{isOpen:!1}}}),n&&n()})}render(){const{isOpen:t}=this.props,{onClose:n}=this;return(0,o.jsxs)(Tu,{isOpen:t,onClose:n,canClose:!1,canCloseOnClickMask:!1,maskClassName:"CouponReceivedModalMask",portalClassName:"CouponReceivedModalPortal",title:null,footer:null,width:400,children:[(0,o.jsxs)("div",{className:"guide-container",children:[(0,o.jsx)("div",{className:"guide-title",children:"Congratulations!"}),(0,o.jsx)("div",{className:"guide-desc",children:"You have experienced the core features of Mockitt prototyping tool."}),(0,o.jsx)("div",{className:"explore-more",onClick:n,children:"Explore more"})]}),(0,o.jsx)(wp,{})]})}}const F1=e=>{let{onClose:t}=e;return(0,o.jsx)(ci.H,{isOpen:!0,canCloseOnEsc:!1,canCloseOnClickMask:!1,canConfirmOnEnter:!1,title:I18N.Popups.do_not_leave_project,canClose:!0,onClose:t,width:400,onCancel:!1,confirmText:I18N.Popups.do_not_leave_project_confirm,onConfirm:t,confirmBtnProps:{type:"danger"},children:I18N.Popups.do_not_leave_project_content})},al=(0,M.Ay)(ci.H).withConfig({displayName:"styles__StyledNestedDynamicModal",componentId:"sc-1bdx4is-0"})([".mainContent{display:flex;flex-direction:column;line-height:22px;.restore-tip{font-size:14px;color:",";margin-top:5px;}}"],e=>e.theme.color_text_L2),el={contextMenu:"\u8F6C\u6362\u4E3A\u52A8\u6001\u7EC4\u4EF6",rightPanel:"\u6DFB\u52A0\u7EC4\u4EF6\u72B6\u6001",default:""};class Cp extends l.PureComponent{render(){const{isOpen:t,onClose:n,onConfirm:a,from:i}=this.props,c=el[i]||el.default;return t&&(0,o.jsx)(al,{isOpen:t,onClose:n,type:"alert",className:"option-action-modal",onCancel:n,onConfirm:a,title:"\u5D4C\u5957\u52A8\u6001\u7EC4\u4EF6",confirmText:"\u7EE7\u7EED",width:400,children:(0,o.jsxs)("div",{className:"mainContent",children:[(0,o.jsxs)("span",{children:["\u5F53\u524D\u5DF2\u7ECF\u662F\u52A8\u6001\u7EC4\u4EF6\u4E86\uFF0C",c,"\u4F1A\u5D4C\u5957\u751F\u6210\u4E00\u4E2A\u65B0\u7684\u52A8\u6001\u7EC4\u4EF6\uFF0C\u662F\u5426\u8981\u7EE7\u7EED\uFF1F"]}),(0,o.jsx)("span",{className:"restore-tip",children:"\u53CC\u51FB\u52A8\u6001\u7EC4\u4EF6\u5373\u53EF\u7F16\u8F91\u7EC4\u4EF6\u5185\u5143\u7D20\u3002"})]})})}}class Lu extends l.PureComponent{constructor(){super(...arguments),(0,B.A)(this,"handleConfirm",()=>{const{onClose:t,onConfirm:n}=this.props;n(),t()})}render(){const{isOpen:t,desc:n,title:a,isHTML:i,onClose:c}=this.props;return(0,o.jsx)(ci.H,{isOpen:t,onClose:c,onCancel:c,onConfirm:this.handleConfirm,canConfirm:!0,title:a,portalClassName:"secondary-confirm-portal",width:400,confirmBtnProps:{type:"danger"},children:i?(0,o.jsx)("p",{className:"desc",dangerouslySetInnerHTML:{__html:n}}):(0,o.jsx)("p",{className:"desc",children:n})})}}var U0=s(75504),f2=s(97974);const Sp=(0,M.Ay)(ci.H).withConfig({displayName:"styles__StyledRightsAndInterestsModal",componentId:"sc-wnb7dp-0"})(["&.right-and-interests{border-radius:16px;border:none;box-shadow:0px 9px 28px 0px rgba(0,0,0,0.09),0px 6px 16px 0px rgba(0,0,0,0.02),0px 3px 6px 0px rgba(0,0,0,0.02);.content{padding:0;position:relative;display:flex;flex-direction:column;background-color:#fff;border-radius:10px;p{color:#35445D;}.modal-content{background-color:",";.modal-header{border-bottom:1px solid ",";background-color:",";.caption{color:",";}.btn-close-modal{color:",";&:hover{color:",";}&:active{color:",";}svg path{fill:currentColor;}}}.modal-content{margin:0;width:100%;color:",";background-color:",";font-weight:400;.desc{color:",";p{color:",";.blue{color:",";}}}table{background:none;th,td{color:",";}thead{background-color:",";th{border:1px solid ",";}}tbody{background-color:",";tr{th,td{border:1px solid ",";}}}}.more{color:",";&:hover{color:",";}}}.modal-footer{background:",";.buttons .button-root{"," &[class*='type-linear']{color:",";background:",";border:1px solid ",";&:hover:not([class*='is-disabled']){background:",";border:1px solid ",";}&:active:not([class*='is-disabled']){background:",";border:1px solid ",";}&[class*='is-disabled']{color:",";background:",";border:1px solid ",";}}}}}}}"],e=>e.theme.color_bg_white,e=>e.theme.color_bg_border_02,e=>e.theme.color_bg_white,e=>e.theme.color_text_L1,e=>e.theme.color_text_L2,e=>e.theme.color_text_L1,e=>e.theme.color_text_L1,e=>e.theme.color_text_L1,e=>e.theme.color_bg_white,e=>e.theme.color_text_L1,e=>e.theme.color_text_L1,e=>e.theme.color_text_link_normal,e=>e.theme.color_text_L1,e=>e.theme.color_bg_select02,e=>e.theme.color_bg_select02,e=>e.theme.color_bg_select03,e=>e.theme.color_bg_select02,e=>e.theme.color_text_link_normal,e=>e.theme.color_text_link_hover,e=>e.theme.color_bg_white,f2.in,e=>e.theme.color_text_L1,e=>e.theme.color_bg_white,e=>e.theme.color_bg_border_02,e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_bg_border_02,e=>e.theme.color_btn_secondary_active,e=>e.theme.color_bg_border_02,e=>e.theme.color_text_disabled01,e=>e.theme.color_bg_white,e=>e.theme.color_bg_border_02),g2=(0,M.DU)(["#IBOT_MODAL_ROOT{.new-model-portal{.workspace-modal{}}}"]);var V1=s(16666),Td=s(88987),cc=s(67247),La=s(44031);const bl={[cc.L1.Free]:{type:La.T.LimitationNotice.solo_free_plan_type,name:La.T.LimitationNotice.solo_free_plan_name},[cc.L1.Solo]:{type:La.T.LimitationNotice.solo_solo_plan_type,name:La.T.LimitationNotice.solo_solo_plan_name},[cc.L1.Lifetime]:{type:La.T.LimitationNotice.solo_life_time_plan_type,name:La.T.LimitationNotice.solo_life_time_plan_name},[cc.L1.PremiumLifetime]:{type:La.T.LimitationNotice.solo_premium_lifetime_plan_type,name:La.T.LimitationNotice.solo_premium_lifetime_plan_name},[cc.Sj.OrgFree]:{type:La.T.LimitationNotice.org_free_plan_type,name:La.T.LimitationNotice.org_free_plan_name},[cc.Sj.OrgLite]:{type:La.T.LimitationNotice.org_org_lite_type,name:La.T.LimitationNotice.org_org_lite_name},[cc.Sj.OrgFull]:{type:La.T.LimitationNotice.org_org_full_type,name:La.T.LimitationNotice.org_org_full_name},[cc.Sj.OrgExpired]:{type:La.T.LimitationNotice.org_expired_plan_type,name:La.T.LimitationNotice.org_expired_plan_name}},Ps=e=>{let{plan:t,locale:n}=e;const{type:a={},name:i={}}=bl[t]||{};return{type:a[n]||"",name:i[n]||""}};var Vr=s(66188),Ca=s(44500),rl=s(37342),Ws=s(47507);const Uh=M.Ay.div.withConfig({displayName:"styles__StyledLimitationNoticeModal",componentId:"sc-13b3uyl-0"})(["width:484px;padding:20px;display:flex;border-radius:14px;position:relative;overflow:hidden;user-select:none;.plan-illustration{position:absolute;top:14px;right:63px;width:144px;height:62px;}.btn-close-modal{position:absolute;top:20px;right:20px;display:flex;justify-content:center;align-items:center;z-index:2;.svg-icon{width:24px;height:24px;path{fill:",";}&:hover{path{fill:",";}}}}.modal-container{width:100%;display:flex;z-index:1;flex-direction:column;gap:16px;}.modal-head{display:flex;flex-direction:column;gap:6px;.plan-title{color:",";font-size:16px;font-weight:600;line-height:21px;}.plan-desc{color:",";font-family:PingFang SC;font-size:12px;font-weight:400;line-height:18px;padding-right:10px;}}"],Ws.q.color_text_L2,Ws.q.color_text_L1,Ws.q.color_text_L1,Ws.q.color_text_L2),Oh=M.Ay.div.withConfig({displayName:"styles__StyledModalBackground",componentId:"sc-1wnxxw1-0"})(["left:0;top:0;width:100%;height:100%;position:absolute;background-color:white;overflow:hidden;display:flex;align-items:center;justify-content:center;.circle{position:absolute;border-radius:50%;filter:blur(100px);display:flex;align-items:center;justify-content:center;&.lt{width:278px;height:278px;top:-176px;left:-86px;background:#DAD6FD;}&.rt{width:282px;height:282px;right:-119px;top:-229px;background:#B2E2FF;}&.lb{left:-86px;bottom:-80px;width:203px;height:203px;background:#CCEDFF;}&.rb{right:-113px;bottom:-142px;width:228px;height:228px;background:#DED0FF;}}"]),Nu=()=>(0,o.jsx)(Oh,{children:["lt","rt","lb","rb"].map(e=>(0,o.jsx)("div",{className:"circle "+e},e))}),z1=M.Ay.div.withConfig({displayName:"styles__StyledModalFooter",componentId:"sc-s4a93a-0"})(["width:100%;display:flex;flex-direction:row;align-items:center;justify-content:space-between;&.center{justify-content:center;}&.right{justify-content:flex-end;}.button{width:214px;height:32px;display:flex;align-items:center;justify-content:center;font-family:PingFang SC;font-size:13px;font-weight:500;border-radius:8px;gap:4px;overflow:hidden;cursor:pointer;&.small{width:fit-content;padding:0 16px;}&.gradient{color:white;background:linear-gradient(91deg,#73C7FF -7.44%,#4D54FF 49.38%,#FF83F9 100%);&:hover{background:linear-gradient(91deg,#59BDFF -7.44%,#4047FF 49.38%,#FF66F7 100%);svg{transform:translateY(-2px);transition:transform .2s ease-in-out;}}}&.gray{background:white;color:",";border:1px solid rgba(18,17,42,0.07);&:hover{background:rgba(243,243,244,1);}&:active{background:rgba(238,238,240,1);}}svg{width:12px;height:12px;}}"],Ws.q.color_text_L1),s1=e=>{const{locale:t,showOrgTrialBtn:n,showSoloTrialBtn:a,showHandoverBtn:i,showManageShareBtn:c,showConfirmBtn:d,showUpgradeV8Btn:p,isCanGetCoupon:h,showPreviewBtn:m,showHandoverByDemotionBtn:x,actions:{onOrgSwitchToTrial:v,onSoloSwitchToTrial:A,onManageShare:k,onConfirm:R,onUpgrade:F,renderUpgradeV8Btn:Z,onRemoveMember:G,renderPreviewBtn:ee}}=e,ce=()=>{const xe=[];return n&&xe.push({label:La.T.LimitationNotice.trial_7_days[t],type:"gray",onClick:(0,Vr.nF)(()=>v(),5e3)}),a&&xe.push({label:La.T.LimitationNotice.trial_2_days[t],type:"gray",onClick:(0,Vr.nF)(()=>A(),5e3)}),i&&xe.push({label:La.T.LimitationNotice.keep_removing[t],type:"gray",onClick:()=>{G()}}),x&&xe.push({label:La.T.LimitationNotice.keep_demoting[t],type:"gray",onClick:()=>{G()}}),c&&xe.push({label:La.T.LimitationNotice.limit_manage_sharing[t],type:"gray",onClick:()=>{k()}}),d?xe.push({label:La.T.LimitationNotice.limit_i_got_it[t],type:"gray",onClick:()=>{R()}}):xe.push({label:h?La.T.LimitationNotice.get_coupon_and_upgrade[t]:La.T.LimitationNotice.payment_upgrade[t],type:"gradient",onClick:()=>{F()}}),xe},se=(0,l.useMemo)(()=>ee&&ee(!!m),[ee,m]),he=(0,l.useMemo)(()=>Z&&Z(!!p),[Z,p]);let ve=ce().length;se&&ve++,he&&ve++;const Te=ve>2?"right":ve>1?"":"center";return(0,o.jsxs)(z1,{className:Te,children:[se,he,ce().map((xe,Fe)=>(0,o.jsxs)("div",{className:"button "+xe.type,onClick:xe.onClick,children:[xe.label,xe.type==="gradient"&&(0,o.jsx)(ta.A,{name:"general/limitation_upgrade_arrow"})]},Fe))]})},Pd=M.Ay.div.withConfig({displayName:"styles__StyledPlanColumnList",componentId:"sc-1482bt2-0"})(["display:flex;flex:1 0 0;flex-direction:column;justify-content:center;&:nth-child(1){.value{justify-content:flex-start;}}&:nth-child(2){background:linear-gradient(180deg,rgba(243,235,255,0.50) 0%,rgba(250,247,255,0.10) 100%);}.value{width:100%;height:36px;padding:0 8px;display:flex;align-items:center;justify-content:center;border-bottom:1px solid rgba(88,0,194,0.05);color:",";font-size:12px;&:nth-child(1){margin-top:4px;font-weight:500;font-size:13px;}svg{width:16px;height:16px;}}"],Ws.q.color_text_L1),Yd=(0,l.memo)(e=>{let{value:t}=e;return(0,o.jsx)("div",{className:"value",children:t===Ca.Fw?(0,o.jsx)(ta.A,{name:"general/limitation_un_support"}):t===Ca.R?(0,o.jsx)(ta.A,{name:"general/limitation_support"}):t})}),Sl=(0,l.memo)(e=>{let{values:t}=e;return(0,o.jsx)(Pd,{children:t.map((n,a)=>(0,o.jsx)(Yd,{value:n},n+a))})}),Lc=M.Ay.div.withConfig({displayName:"styles__StyledModalPlan",componentId:"sc-1eexctv-0"})(["width:444px;padding:10px;border:1px solid white;border-radius:16px;backdrop-filter:blur(8px);background:rgba(94,135,255,0.08);flex-direction:row;.plan-container{width:100%;padding:0 8px;background-color:white;border-radius:8px;overflow:hidden;display:flex;flex-direction:column;&.no-padding{padding:0;}.column-container{width:100%;display:flex;flex-direction:row;}}.footer{height:36px;display:flex;align-items:center;justify-content:center;color:",';font-size:12px;font-weight:400;.upgrade{margin-right:2px;background:linear-gradient(88deg,#59BDFF -27.51%,#4047FF 44.48%,#FF66F7 108.61%);background-clip:text;-webkit-background-clip:text;-webkit-text-fill-color:transparent;font-size:12px;font-weight:500;cursor:pointer;position:relative;&:hover::after{content:"";position:absolute;left:0;bottom:0px;width:100%;height:1px;background:linear-gradient(88deg,#59BDFF -27.51%,#4047FF 44.48%,#FF66F7 108.61%);}}.line{margin:0 12px;width:1px;height:12px;background-color:rgba(18,17,42,0.07);}.on-more{display:flex;align-items:center;cursor:pointer;&:hover{color:',";svg{path{fill:",";}}}}}"],Ws.q.color_text_L3,Ws.q.color_text_L1,Ws.q.color_text_L1);var Fs=s(69368);const dd=e=>{let{planList:t,interestList:n,locale:a,isHideMore:i,onMore:c,onUpgrade:d,showUpgrade:p}=e;const h=(0,l.useMemo)(()=>{const m=[];if(!t||!n)return[];const x=n.map(A=>{let{typeI18nObj:k}=A;return k[a]});m.push([Fs.TH.LimitationNotice.enjoy_interest[a],...x]);const v=t.map((A,k)=>{let{planI18nObj:R}=A;const F=n.map(G=>{let{values:ee}=G;return ee[k]});return[R[a],...F]});return m.concat(v)},[t,n,a]);return(0,o.jsx)(Lc,{children:(0,o.jsxs)("div",{className:C()("plan-container",{"no-padding":h.length<=2}),children:[(0,o.jsx)("div",{className:"column-container",children:h.map((m,x)=>(0,o.jsx)(Sl,{values:m},x))}),(0,o.jsxs)("div",{className:"footer",children:[p&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("div",{className:"upgrade",onClick:d,children:"\u5347\u7EA7\u4F1A\u5458"}),(0,o.jsx)("div",{children:"\u89E3\u9501\u66F4\u591A\u6743\u76CA"})]}),p&&!i&&(0,o.jsx)("div",{className:"line"}),!i&&(0,o.jsx)(o.Fragment,{children:(0,o.jsxs)("div",{className:"on-more",onClick:c,children:["\u66F4\u591A\u6743\u76CA",(0,o.jsx)(ta.A,{name:"general/limitation_more_arrow"})]})})]})]})})},l1=e=>{const{planList:t,interestList:n,locale:a,actions:{onClose:i,onMore:c,onUpgrade:d},isHideMore:p,title:h,desc:m,currentPlan:x,isOrgLimit:v,showConfirmBtn:A}=e;let k=m;const R=x===Ca.OL.OrgFull&&v;return R&&(k=m+Fs.TH.LimitationNotice.limit_versions_history_tips_4[a]),(0,o.jsxs)(Uh,{children:[(0,o.jsx)(Nu,{}),!R&&(0,o.jsx)("img",{src:"/mb-dashboard/images2/component-limitation-plan-illustration.png",className:"plan-illustration"}),(0,o.jsx)("button",{className:"btn-close-modal",onClick:i,children:(0,o.jsx)(ta.A,{name:"limitation_close"})}),(0,o.jsxs)("div",{className:"modal-container",children:[(0,o.jsxs)("div",{className:"modal-head",children:[(0,o.jsx)("div",{className:"plan-title",children:h}),(0,o.jsx)("div",{className:"plan-desc",children:k})]}),(0,o.jsx)(dd,{planList:t,interestList:n,locale:a,isHideMore:p,onMore:c,onUpgrade:d,showUpgrade:!A}),(0,o.jsx)(s1,{...e})]})]})},il=e=>{const{locale:t,currentOrg:n,limitType:a,selectedOrg:i,upgradeOrg:c,isSoloCanGetCoupon:d,isOrgCanGetCoupon:p,isMockitt:h,currentPlan:m,planName:x,planType:v,isOrgLimit:A,onRemoveMember:k,actions:R,getlimitReason:F,actions:{onOrgSwitchToTrial:Z,onSoloSwitchToTrial:G,onManageShare:ee,onConfirm:ce,onUpgrade:se,onLimitNewTrack:he,onMoreTrack:ve}}=e,Te=Ca.fu[a],[xe,Fe]=(0,Ca.tt)({limitType:a,currentPlan:m,firstInterestType:Te,upgradeOrg:c,isMockitt:h,isOrg:A,locale:t}),et=(0,l.useMemo)(()=>({limitReason:F(A),currentPlanProduct:x,currentPlanCategory:A?"org":"solo",currentType:v,currentEditMember:A?i==null?void 0:i.total_seats:0,currentEditMemberTaken:A&&i?(0,Vr.NY)(i):0,currentViewMember:A?i==null?void 0:i.total_viewer_seats:0}),[F,x,A,v,i]);(0,l.useEffect)(()=>{he(et)},[et,he]);const Ke=()=>{const Ct=A||c,St=h?"/pricing.html":"/brand/pricing";return Ct?St:St+"?tab=personal"},Qe=()=>{const Ct=Ke();(0,rl.JW)(Ct),ve(et)},nt=()=>{se({isSoloCanGetCoupon:d,isOrgCanGetCoupon:p,limitTrackParams:et,upgradeOrg:c,isOrgLimit:A})},Xe=Ct=>()=>Ct&&Ct(et),lt={...R,onConfirm:Xe(ce),onOrgSwitchToTrial:Xe(Z),onSoloSwitchToTrial:Xe(G),onManageShare:Xe(ee),onRemoveMember:Xe(k),onUpgrade:nt,onMore:Qe};return(0,o.jsx)(l1,{...e,planList:xe,interestList:Fe,isCanGetCoupon:!!(d||p),actions:lt})};var dc=s(19249);const Il=e=>{let{isOrgLimit:t,orgParams:n={},isAvailable:a=!0,projectType:i=Vr.ch.proto}=e;const{currentUser:c,currentOrg:d,orgs:p}=n,[h,m]=(0,l.useState)(p||[]),[x,v]=(0,l.useState)(!1);(0,l.useEffect)(()=>{if(!a)return;const k=async()=>{const{orgs:F}=await(0,dc.DE)("/api/dashboard/v4/orgs/list");F.length>0&&m([...F])};t?(!p||p.length===0)&&k():(async()=>{let F="/api/dashboard/v4/users/check_enable_trial";i===Vr.ch.bomx&&(F="/api/dsh2/web_v1/users/bx_check_enable_trial"),i===Vr.ch.aiPpt&&(F="/api/dsh2/web_v1/users/aippt_check_enable_trial");const{enable:Z}=await(0,dc.DE)(F);v(Z)})()},[a,t,p,i]);const A=(0,l.useMemo)(()=>!a||!t?!1:(0,Vr.xs)(c,d,h||[]),[a,t,c,d,h]);return{isSoloCanSwitchTrial:x,isOrgCanSwitchTrial:A}},Jl=e=>{let{isMockitt:t,coupons:n,isAvailable:a=!0}=e;const[i,c]=(0,l.useState)(n||[]);(0,l.useEffect)(()=>{if(!a)return;async function h(){const m=await(0,dc.DE)("/api/payment/v4/coupon/coupons");m&&c([...m])}(!n||n.length===0)&&h()},[n,a]);const[d,p]=(0,l.useMemo)(()=>{if(!a||t)return[!1,!1];const h=i.every(x=>x.tid!==1028),m=i.every(x=>x.tid!==844);return[h,m]},[i,a,t]);return{isSoloCanGetCoupon:d,isOrgCanGetCoupon:p}},y2=e=>{const{from:t,locale:n,isMockitt:a,currentUser:i,currentOrg:c,selectedOrg:d,couponList:p,orgList:h}=e,m=!!(c&&c.cid&&c.otype!=="personal"),{isSoloCanSwitchTrial:x,isOrgCanSwitchTrial:v}=Il({isOrgLimit:m,orgParams:{currentUser:i,currentOrg:d,orgs:h}}),{currentPlan:A,planName:k,planType:R,isSoloFull:F,isOrgFull:Z}=(0,Vr.T2)(m,n,d,i),{isOrgCanGetCoupon:G,isSoloCanGetCoupon:ee}=Jl({isMockitt:a,coupons:p}),{upgradeOrg:ce,isSoloCanGetCoupon:se,isOrgCanGetCoupon:he,isSoloPaid:ve}=(0,l.useMemo)(()=>{if(m)return{currentPlan:A,planName:k,planType:R,isOrgFull:Z,isSoloCanGetCoupon:!1,isOrgCanGetCoupon:ee};{const Qe=G&&!F,nt=ee&&F,Xe=A!==cc.L1.Free;return{currentPlan:A,planName:k,planType:R,upgradeOrg:!1,isSoloCanGetCoupon:Qe,isOrgCanGetCoupon:nt,isSoloPaid:Xe}}},[A,ee,G,m,Z,F,k,R]),{maxSharingCount:Te}=(0,Vr.xR)(t,i,m?d:c),{type:xe,name:Fe}=Ps({plan:A,locale:n}),et=La.T.LimitationNotice.v8_max_share_limit_title[n].replace("{plan}",xe),Ke=La.T.LimitationNotice.v8_max_share_limit_desc[n].replace("{maxCount}",Te).replace("{plan}",Fe);return(0,o.jsx)(il,{title:et,desc:Ke,currentPlan:A,planName:k,planType:R,isOrgLimit:m,showConfirmBtn:Z,upgradeOrg:ce,showManageShareBtn:!0,showSoloTrialBtn:x,showOrgTrialBtn:v,isSoloCanGetCoupon:se,isOrgCanGetCoupon:he,...e})},x2=e=>{const{from:t,locale:n,isMockitt:a,currentUser:i,selectedOrg:c,orgList:d,couponList:p}=e,{isOrgCanSwitchTrial:h}=Il({isOrgLimit:!0,orgParams:{currentUser:i,currentOrg:c,orgs:d}}),{isOrgCanGetCoupon:m}=Jl({isMockitt:a,coupons:p}),{orgPlan:x,orgPlanType:v,orgPlanName:A}=(0,Vr.wJ)(n,c),{maxSpaceCount:k}=(0,Vr.xR)(t,i,c),{type:R,name:F}=Ps({plan:x,locale:n}),Z=La.T.LimitationNotice.org_space_count_limit_title[n].replace("{plan}",R),G=La.T.LimitationNotice.org_space_count_limit_desc[n].replace("{plan}",F).replace("{maxCount}",k);return(0,o.jsx)(il,{title:Z,desc:G,currentPlan:x,planName:A,planType:v,isOrgLimit:!0,showOrgTrialBtn:h,isOrgCanGetCoupon:m,...e})},v2=e=>{const{from:t,locale:n,isMockitt:a,currentUser:i,selectedOrg:c,orgList:d,couponList:p}=e,{isOrgCanSwitchTrial:h}=Il({isOrgLimit:!0,orgParams:{currentUser:i,currentOrg:c,orgs:d}}),{isOrgCanGetCoupon:m}=Jl({isMockitt:a,coupons:p}),{orgPlan:x,orgPlanType:v,orgPlanName:A}=(0,Vr.wJ)(n,c),{maxProjectTemplateCount:k}=(0,Vr.xR)(t,i,c),{type:R,name:F}=Ps({plan:x,locale:n}),Z=La.T.LimitationNotice.org_v7_template_count_limit_title[n].replace("{plan}",R),G=La.T.LimitationNotice.org_v7_template_count_limit_desc[n].replace("{plan}",F).replace("{maxCount}",k);return(0,o.jsx)(il,{title:Z,desc:G,currentPlan:x,planName:A,planType:v,isOrgLimit:!0,showOrgTrialBtn:h,isOrgCanGetCoupon:m,...e})},Ap=e=>{const{from:t,locale:n,isMockitt:a,currentUser:i,selectedOrg:c,orgList:d,couponList:p}=e,{isOrgCanSwitchTrial:h}=Il({isOrgLimit:!0,orgParams:{currentUser:i,currentOrg:c,orgs:d}}),{isOrgCanGetCoupon:m}=Jl({isMockitt:a,coupons:p}),{orgPlan:x,orgPlanType:v,orgPlanName:A,isOrgFull:k}=(0,Vr.tv)(n,c),{maxProjectVersionCount:R}=(0,Vr.xR)(t,i,c),{type:F,name:Z}=Ps({plan:x,locale:n}),G=La.T.LimitationNotice.v8_max_version_limit_title[n].replace("{plan}",F),ee=La.T.LimitationNotice.v8_max_version_limit_desc[n].replace("{plan}",Z).replace("{maxCount}",R);return(0,o.jsx)(il,{title:G,desc:ee,currentPlan:x,planName:A,planType:v,isOrgLimit:!0,showConfirmBtn:k,showOrgTrialBtn:h,isOrgCanGetCoupon:m,...e})};var pd=s(86418);const O0=e=>{const{locale:t,isMockitt:n,selectedMember:a,currentUser:i,selectedOrg:c,couponList:d,actions:{onRemoveMember:p},limitType:h}=e,{user_id:m,orgPermission:{user_id:x,unsign_remark:v}}=a,A=!x&&v,k=x||m,R=h===Ca.hC.ProjectHandoverNoPermission?"removal":"demotion",[F,Z]=(0,l.useState)(!A),[G,ee]=(0,l.useState)([]),{isOrgCanGetCoupon:ce}=Jl({isMockitt:n,coupons:d||[]}),{cid:se,permissions:he}=c,{orgPlan:ve,orgPlanType:Te,orgPlanName:xe}=(0,Vr.tv)(t,c),Fe=ve===pd.Sj.OrgLite?La.T.LimitationNotice.org_lite_plan[t]:La.T.LimitationNotice.free_org[t],et=La.T.LimitationNotice.org_handover_no_permission_limit_title[t].replace("{plan}",Fe),Ke=R==="demotion"?La.T.LimitationNotice.org_handover_no_permission_limit_desc[t]:La.T.LimitationNotice.org_remove_no_permission_limit_desc[t],Qe=(0,l.useMemo)(()=>{var lt;return he==null||(lt=he.find(Ct=>Ct.role==="org_owner"))==null?void 0:lt.user_id},[he]),nt=(0,l.useMemo)(()=>G.map(lt=>{const{cid:Ct}=lt||{},St=(0,Vr.Ok)(lt,k,Qe);return{cid:Ct,role:St,target_user_id:Qe}}),[k,Qe,G]);(0,l.useEffect)(()=>{async function lt(){try{if(!k)return;const{spaces:Ct}=await(0,Vr.ys)(k,se);let St=[];Ct&&Ct.length>0&&(St=Ct.filter(hn=>hn.permissions.find(Cn=>Cn.user_id===k))),St.length>0&&ee(St),Z(!1)}catch(Ct){console.log(Ct.message)}}!A&&lt()},[]);const Xe=async lt=>{F&&!A||p&&p({submitHandoverList:nt,trackParams:lt,onLoading:Z})};return(0,o.jsx)(il,{title:et,desc:Ke,currentPlan:ve,planName:xe,planType:Te,isOrgLimit:!0,isOrgCanGetCoupon:ce,showHandoverBtn:R==="removal",showHandoverByDemotionBtn:R==="demotion",onRemoveMember:Xe,...e})},ud=e=>{const{from:t,locale:n,isMockitt:a,currentUser:i,selectedOrg:c,orgList:d,couponList:p}=e,{isOrgCanSwitchTrial:h}=Il({isOrgLimit:!0,orgParams:{currentUser:i,currentOrg:c,orgs:d}}),{isOrgCanGetCoupon:m}=Jl({isMockitt:a,coupons:p}),{orgPlan:x,orgPlanType:v,orgPlanName:A,isOrgFull:k}=(0,Vr.tv)(n,c),{maxPicBytes:R}=(0,Vr.xR)(t,i,c),{type:F,name:Z}=Ps({plan:x,locale:n}),G=La.T.LimitationNotice.v8_upload_pic_limit_title[n].replace("{plan}",F),ee=La.T.LimitationNotice.v8_upload_pic_limit_desc[n].replace("{maxSize}",(R||0)/1024/1024).replace("{plan}",Z);return(0,o.jsx)(il,{title:G,desc:ee,currentPlan:x,planName:A,planType:v,isOrgLimit:!0,showConfirmBtn:k,showOrgTrialBtn:h,isOrgCanGetCoupon:m,...e})},Ac=e=>{let{locale:t,currentOrg:n,type:a}=e;const{isSoloCanSwitchTrial:i}=Il({isOrgLimit:!1,projectType:a}),{userPlan:c,userPlanType:d,userPlanName:p}=(0,Vr.FO)({locale:t,org:n,type:a}),h=pd.tz.InitialOrg(n);return{isSoloCanSwitchTrial:i,pplSdk:h,userPlan:c,userPlanType:d,userPlanName:p}},hd=e=>{const{from:t,locale:n,currentUser:a,currentOrg:i}=e,{isSoloCanSwitchTrial:c,userPlan:d,userPlanType:p,userPlanName:h}=Ac({locale:n,currentOrg:i,type:Vr.ch.proto}),{maxPicBytes:m}=(0,Vr.xR)(t,a,void 0),{type:x,name:v}=Ps({plan:d,locale:n}),A=La.T.LimitationNotice.v8_upload_pic_limit_title[n].replace("{plan}",x),k=La.T.LimitationNotice.v8_upload_pic_limit_desc[n].replace("{maxSize}",(m||0)/1024/1024).replace("{plan}",v);return(0,o.jsx)(il,{title:A,desc:k,currentPlan:d,planName:h,planType:p,isOrgLimit:!1,showSoloTrialBtn:c,upgradeOrg:d!==cc.L1.Free,...e})},md=e=>{const{from:t,locale:n,isMockitt:a,currentUser:i,selectedOrg:c,couponList:d,orgList:p,widgetCreateLimit:h,isCurrentProject:m,isProto2:x}=e,{isOrgCanSwitchTrial:v}=Il({isOrgLimit:!0,orgParams:{currentUser:i,currentOrg:c,orgs:p}}),{isOrgCanGetCoupon:A}=Jl({isMockitt:a,coupons:d}),{orgPlan:k,orgPlanName:R,orgPlanType:F,isOrgFull:Z}=(0,Vr.tv)(n,c),{maxV7ScreenCount:G}=(0,Vr.xR)(t,i,c),{type:ee,name:ce}=Ps({plan:k,locale:n}),se=La.T.LimitationNotice.limit_current_is[n],he=La.T.LimitationNotice.v7_max_page_limit_title[n].replace("{plan}",ee).replace("{orgName}",se),ve=La.T.LimitationNotice.v7_max_page_limit_desc[n].replace("{maxCount}",G).replace("{plan}",ce);return(0,o.jsx)(il,{title:he,desc:ve,currentPlan:k,planName:R,planType:F,isOrgLimit:!0,showConfirmBtn:Z,showOrgTrialBtn:v,showUpgradeV8Btn:Z,isOrgCanGetCoupon:A,...e})},ju=e=>{const{from:t,locale:n,isMockitt:a,currentUser:i,selectedOrg:c,orgList:d,couponList:p,isCurrentProject:h}=e,{isOrgCanSwitchTrial:m}=Il({isOrgLimit:!0,orgParams:{currentUser:i,currentOrg:c,orgs:d}}),{isOrgCanGetCoupon:x}=Jl({isMockitt:a,coupons:p}),{orgPlan:v,orgPlanType:A,orgPlanName:k}=(0,Vr.tv)(n,c,i),{maxCanvasCount:R}=(0,Vr.xR)(t,i,c),{type:F,name:Z}=Ps({plan:v,locale:n}),G=La.T.LimitationNotice.v8_max_page_limit_title[n].replace("{plan}",F),ee=La.T.LimitationNotice.v8_max_page_limit_desc[n].replace("{maxCount}",R).replace("{plan}",Z);return(0,o.jsx)(il,{title:G,desc:ee,currentPlan:v,planName:k,planType:A,isOrgLimit:!0,showOrgTrialBtn:m,isOrgCanGetCoupon:x,...e})},W1=e=>{const{from:t,locale:n,currentUser:a,currentOrg:i,isCurrentProject:c}=e,{isSoloCanSwitchTrial:d,userPlan:p,userPlanType:h,userPlanName:m}=Ac({locale:n,currentOrg:i,type:Vr.ch.proto}),{maxV7ScreenCount:x}=(0,Vr.xR)(t,a,void 0),{type:v,name:A}=Ps({plan:p,locale:n}),k=La.T.LimitationNotice.limit_current_is[n],R=La.T.LimitationNotice.v7_max_page_limit_title[n].replace("{plan}",v).replace("{orgName}",k),F=La.T.LimitationNotice.v7_max_page_limit_desc[n].replace("{maxCount}",x).replace("{plan}",A);return(0,o.jsx)(il,{title:R,desc:F,currentPlan:p,planName:m,planType:h,isOrgLimit:!1,showSoloTrialBtn:d,...e})},Du=e=>{const{from:t,locale:n,currentUser:a,currentOrg:i,isCurrentProject:c}=e,{isSoloCanSwitchTrial:d,userPlan:p,userPlanType:h,userPlanName:m}=Ac({locale:n,currentOrg:i,type:Vr.ch.proto}),{maxCanvasCount:x}=(0,Vr.xR)(t,a,void 0),{type:v,name:A}=Ps({plan:p,locale:n}),k=La.T.LimitationNotice.v8_max_page_limit_title[n].replace("{plan}",v),R=La.T.LimitationNotice.v8_max_page_limit_desc[n].replace("{maxCount}",x).replace("{plan}",A);return(0,o.jsx)(il,{title:k,desc:R,currentPlan:p,planName:m,planType:h,isOrgLimit:!1,showSoloTrialBtn:d,...e})},Fh=e=>{const{from:t,locale:n,isMockitt:a,currentUser:i,currentOrg:c,selectedOrg:d,orgList:p,couponList:h}=e,{cid:m}=d,x=m===c.cid,{isOrgCanSwitchTrial:v}=Il({isOrgLimit:!0,orgParams:{currentUser:i,currentOrg:d,orgs:p}}),{isOrgCanGetCoupon:A}=Jl({isMockitt:a,coupons:h}),{orgPlan:k,orgPlanType:R,orgPlanName:F,isOrgFull:Z}=(0,Vr.tv)(n,d),{maxProjectCount:G}=(0,Vr.xR)(t,i,d),{type:ee,name:ce}=Ps({plan:k,locale:n}),se=x?La.T.LimitationNotice.limit_current_is[n]:La.T.LimitationNotice.limit_target_space_is[n],he=La.T.LimitationNotice.project_count_limit_title[n].replace("{orgName}",se).replace("{product}","\u539F\u578B").replace("{plan}",ee),ve=La.T.LimitationNotice.project_count_limit_desc[n].replace("{orgName}",se).replace("{plan}",ce).replace("{maxCount}",G).replace("{product}","\u539F\u578B");return(0,o.jsx)(il,{currentPlan:k,planName:F,planType:R,isOrgLimit:!0,showConfirmBtn:Z,showOrgTrialBtn:v,isOrgCanGetCoupon:A,showPreviewBtn:!v,title:he,desc:ve,...e})},Vh=e=>{const{from:t,locale:n,isMockitt:a,currentUser:i,currentOrg:c,couponList:d}=e,{isSoloCanGetCoupon:p}=Jl({isMockitt:a,coupons:d}),{isSoloCanSwitchTrial:h,userPlan:m,userPlanType:x,userPlanName:v}=Ac({locale:n,currentOrg:c,type:Vr.ch.proto}),{maxProjectCount:A}=(0,Vr.xR)(t,i,void 0),{type:k,name:R}=Ps({plan:m,locale:n}),F=La.T.LimitationNotice.limit_current_is[n],Z=La.T.LimitationNotice.project_count_limit_title[n].replace("{orgName}",F).replace("{product}","\u539F\u578B").replace("{plan}",k),G=La.T.LimitationNotice.project_count_limit_desc[n].replace("{orgName}",F).replace("{plan}",R).replace("{maxCount}",A).replace("{product}","\u539F\u578B");return(0,o.jsx)(il,{currentPlan:m,planName:v,planType:x,isOrgLimit:!1,isSoloCanGetCoupon:p,showSoloTrialBtn:h,showPreviewBtn:!h,title:Z,desc:G,...e})},Ld=e=>{const{locale:t,currentUser:n,currentOrg:a,selectedOrg:i,limitType:c}=e,d=!!(a&&a.cid&&a.otype!=="personal"),p=c===Ca.hC.ProjectVersionFromTime,{currentPlan:h,planType:m,planName:x,isOrgFull:v}=(0,Vr.T2)(d,t,i,n),{maxVersionCount:A,maxVersionRecycleDays:k}=(0,Vr.xR)("",n,d&&a),{type:R,name:F}=Ps({plan:h,locale:t}),Z=p?La.T.LimitationNotice.v8_max_auto_version_limit_title[t].replace("{plan}",R):La.T.LimitationNotice.v8_max_version_limit_title[t].replace("{plan}",R),G=p?La.T.LimitationNotice.v8_max_auto_version_limit_desc[t].replace("{plan}",F).replace("{maxCount}",k):La.T.LimitationNotice.v8_max_version_limit_desc[t].replace("{plan}",F).replace("{maxCount}",A),ee=c!==Ca.hC.ProjectVersionFromTime;return(0,o.jsx)(il,{title:Z,desc:G,currentPlan:h,planName:x,planType:m,isOrgLimit:d,upgradeOrg:ee,showConfirmBtn:v,...e})};var $c=s(70527);const b0=(e,t)=>{const n=$c.u3[e],{max_project_count:a,max_widget_count:i,bomx_max_file_bytes:c=0,bomx_max_upload_file_bytes:d=0,max_pic_bytes:p=0,max_project_version_count:h}=n,m=a===$c.nj?La.T.LimitationNotice.unlimited[t]:""+a+La.T.LimitationNotice.unit[t],x=i===-1?La.T.LimitationNotice.unlimited[t]:""+i+La.T.LimitationNotice.unit[t],v=c/1024/1024+"M",A=d/1024/1024+"M",k=p/1024/1024+"M",R=h===1e4?La.T.LimitationNotice.unlimited[t]:""+n.max_project_version_count+La.T.LimitationNotice.unit[t],F=(0,Ca.CJ)(e,t);return{[Ca.fA.BomxProjectCount]:m,[Ca.fA.BomxWidgetCount]:x,[Ca.fA.BomxFileSize]:v,[Ca.fA.BomxUploadFileSize]:A,[Ca.fA.BomxUploadImgSize]:k,[Ca.fA.ProjectVersionsCount]:R,...F}},H1={[Ca.fA.BomxProjectCount]:[Ca.fA.BomxProjectCount,Ca.fA.BomxFileSize,Ca.fA.BomxWidgetCount,Ca.fA.v8TemplateCount],[Ca.fA.OrgBomxProjectCount]:[Ca.fA.BomxProjectCount,Ca.fA.Teamwork,Ca.fA.OrgResignationDataHandover,Ca.fA.OrgFullLogs,Ca.fA.OrgFullManager],[Ca.fA.BomxFileSize]:[Ca.fA.BomxFileSize,Ca.fA.BomxProjectCount,Ca.fA.BomxWidgetCount],[Ca.fA.OrgBomxFileSize]:[Ca.fA.BomxFileSize,Ca.fA.BomxProjectCount,Ca.fA.Teamwork,Ca.fA.BomxWidgetCount],[Ca.fA.BomxUploadFileSize]:[Ca.fA.BomxUploadFileSize,Ca.fA.BomxUploadImgSize,Ca.fA.BomxWidgetCount,Ca.fA.InterestDuration],[Ca.fA.OrgBomxUploadFileSize]:[Ca.fA.BomxUploadFileSize,Ca.fA.BomxUploadImgSize,Ca.fA.Teamwork,Ca.fA.BomxWidgetCount],[Ca.fA.BomxUploadImgSize]:[Ca.fA.BomxUploadImgSize,Ca.fA.BomxUploadFileSize,Ca.fA.BomxWidgetCount,Ca.fA.InterestDuration],[Ca.fA.OrgBomxUploadImgSize]:[Ca.fA.BomxUploadImgSize,Ca.fA.BomxUploadFileSize,Ca.fA.Teamwork,Ca.fA.BomxWidgetCount],[Ca.fA.ProjectVersionsCount]:[Ca.fA.ProjectVersionsCount,Ca.fA.BomxWidgetCount,Ca.fA.BomxFileSize],[Ca.fA.OrgProjectVersionCount]:[Ca.fA.ProjectVersionsCount,Ca.fA.Teamwork,Ca.fA.BomxWidgetCount,Ca.fA.BomxFileSize],[Ca.fA.BomxWidgetCount]:[Ca.fA.BomxWidgetCount,Ca.fA.BomxUploadImgSize,Ca.fA.BomxUploadFileSize,Ca.fA.InterestDuration],[Ca.fA.OrgBomxWidgetCount]:[Ca.fA.BomxWidgetCount,Ca.fA.Teamwork,Ca.fA.BomxUploadImgSize,Ca.fA.BomxUploadFileSize]},G1=(e,t)=>e?[Ca.OL.OrgLite,Ca.OL.OrgFull]:[Ca.OL.Solo,Ca.OL.Lifetime],kp=e=>{let{firstInterestType:t,isOrg:n,locale:a}=e;const i=h=>h.map(m=>({plan:m,planI18nObj:Ca.cS[m],planIcon:""})),c=G1(n,t);let d=H1[t].map(h=>({type:h,typeI18nObj:Ca.bj[h],values:c.map(m=>b0(m,a)[h])}));return n||(d=d.filter(h=>h.type!==Ca.fA.Teamwork)),[i(c),d]},ql=e=>{const{limitType:t,selectedOrg:n,upgradeOrg:a,limitDesc:i,isSoloCanGetCoupon:c,isOrgCanGetCoupon:d,isMockitt:p,currentPlan:h,planName:m,planType:x,isOrgLimit:v,locale:A,onRemoveMember:k,actions:R,getlimitReason:F,actions:{onOrgSwitchToTrial:Z,onSoloSwitchToTrial:G,onManageShare:ee,onConfirm:ce,onUpgrade:se,onLimitNewTrack:he,onMoreTrack:ve}}=e,Te=Ca.fu[t],[xe,Fe]=kp({firstInterestType:Te,isOrg:v,locale:A}),et=(0,l.useMemo)(()=>({limitReason:F(v),currentPlanProduct:m,currentPlanCategory:v?"org":"solo",currentType:x,currentEditMember:v?n==null?void 0:n.total_seats:0,currentEditMemberTaken:v&&n?(0,Vr.NY)(n):0,currentViewMember:v?n==null?void 0:n.total_viewer_seats:0}),[F,m,v,x,n]);(0,l.useEffect)(()=>{he(et)},[et,he]);const Ke=()=>{const Ct=v||a,St=p?"/pricing.html":"/brand/pricing";return Ct?St:St+"?tab=personal"},Qe=()=>{const Ct=Ke();(0,rl.JW)(Ct),ve(et)},nt=()=>{se({isSoloCanGetCoupon:c,isOrgCanGetCoupon:d,limitTrackParams:et,upgradeOrg:a,isOrgLimit:v})},Xe=Ct=>()=>Ct&&Ct(et),lt={...R,onConfirm:Xe(ce),onOrgSwitchToTrial:Xe(Z),onSoloSwitchToTrial:Xe(G),onManageShare:Xe(ee),onRemoveMember:Xe(k),onUpgrade:nt,onMore:Qe};return(0,o.jsx)(l1,{...e,planList:xe,interestList:Fe,isCanGetCoupon:!!(c||d),limitDesc:i,actions:lt})},Ru=e=>{const{from:t,locale:n,isMockitt:a,currentUser:i,currentOrg:c,couponList:d}=e,p=c&&c.cid&&c.otype!=="personal",{isSoloCanGetCoupon:h}=Jl({isMockitt:a,coupons:d}),{isSoloCanSwitchTrial:m,userPlan:x,userPlanType:v,userPlanName:A,pplSdk:k}=Ac({locale:n,currentOrg:c,type:Vr.ch.bomx}),R=k.limitationSdk.bomxLimit.getMaxProjectCount(),{type:F,name:Z}=Ps({plan:x,locale:n}),G=p?La.T.LimitationNotice.limit_target_space_is[n]:La.T.LimitationNotice.limit_current_is[n],ee=La.T.LimitationNotice.project_count_limit_title[n].replace("{orgName}",G).replace("{plan}",F).replace("{product}","\u767D\u677F"),ce=La.T.LimitationNotice.project_count_limit_desc[n].replace("{orgName}",G).replace("{plan}",Z).replace("{maxCount}",R).replace("{product}","\u767D\u677F");return(0,o.jsx)(ql,{title:ee,desc:ce,currentPlan:x,planName:A,planType:v,isOrgLimit:!1,isSoloCanGetCoupon:h,showSoloTrialBtn:m,showPreviewBtn:!m,...e})},w0=e=>{let{selectedOrg:t,currentUser:n,orgList:a,isMockitt:i,locale:c,couponList:d}=e;const{isOrgCanSwitchTrial:p}=Il({isOrgLimit:!0,orgParams:{currentUser:n,currentOrg:t,orgs:a}}),{isOrgCanGetCoupon:h}=Jl({isMockitt:i,coupons:d}),{orgPlan:m,orgPlanType:x,orgPlanName:v,isOrgFull:A}=(0,Vr.$V)(c,t),k=pd.tz.InitialOrg(t);let F=k.planSdk.bomxPlan.plan===cc.Sj.OrgFree?Fs.TH.LimitationNotice.bomx_free_plan[c]:Fs.TH.LimitationNotice.bomx_org_lite_plan[c];return A&&(F=Fs.TH.LimitationNotice.bomx_org_full_plan[c]),{isOrgCanSwitchTrial:p,isOrgCanGetCoupon:h,pplSdk:k,orgPlan:m,orgPlanType:x,orgPlanName:v,isOrgFull:A,planName:F}},F0=e=>{const{from:t,locale:n,isMockitt:a,currentUser:i,currentOrg:c,selectedOrg:d,orgList:p,couponList:h}=e,{cid:m}=d,x=m===c.cid,{isOrgCanGetCoupon:v,isOrgCanSwitchTrial:A,pplSdk:k,orgPlan:R,orgPlanType:F,orgPlanName:Z,isOrgFull:G}=w0({selectedOrg:d,currentUser:i,orgList:p,isMockitt:a,locale:n,couponList:h}),ee=k.limitationSdk.bomxLimit.getMaxProjectCount(),{type:ce,name:se}=Ps({plan:R,locale:n}),he=x?La.T.LimitationNotice.limit_current_is[n]:La.T.LimitationNotice.limit_target_space_is[n],ve=La.T.LimitationNotice.project_count_limit_title[n].replace("{orgName}",he).replace("{product}","\u767D\u677F").replace("{plan}",ce),Te=La.T.LimitationNotice.project_count_limit_desc[n].replace("{orgName}",he).replace("{plan}",se).replace("{maxCount}",ee).replace("{product}","\u767D\u677F");return(0,o.jsx)(ql,{title:ve,desc:Te,currentPlan:R,planName:Z,planType:F,isOrgLimit:!0,showConfirmBtn:G,showOrgTrialBtn:A,isOrgCanGetCoupon:v,showPreviewBtn:!A,...e})},Mp=e=>{const{locale:t,isMockitt:n,currentUser:a,selectedOrg:i,orgList:c,couponList:d}=e,{isOrgCanGetCoupon:p,isOrgCanSwitchTrial:h,pplSdk:m,orgPlan:x,orgPlanType:v,orgPlanName:A,isOrgFull:k,planName:R}=w0({selectedOrg:i,currentUser:a,orgList:c,isMockitt:n,locale:t,couponList:d}),F=m.limitationSdk.bomxLimit.getMaxPicBytes(),{type:Z,name:G}=Ps({plan:x,locale:t}),ee=La.T.LimitationNotice.bomx_upload_pic_limit_title[t].replace("{plan}",Z),ce=La.T.LimitationNotice.bomx_upload_pic_limit_desc[t].replace("{maxSize}",(F||0)/1024/1024).replace("{plan}",G);return(0,o.jsx)(ql,{title:ee,desc:ce,currentPlan:x,planName:A,planType:v,isOrgLimit:!0,showConfirmBtn:k,showOrgTrialBtn:h,isOrgCanGetCoupon:p,...e})},C0=e=>{const{from:t,locale:n,currentOrg:a}=e,{isSoloCanSwitchTrial:i,userPlan:c,userPlanType:d,userPlanName:p,pplSdk:h}=Ac({locale:n,currentOrg:a,type:Vr.ch.bomx}),m=h.limitationSdk.bomxLimit.getMaxPicBytes(),{type:x,name:v}=Ps({plan:c,locale:n}),A=La.T.LimitationNotice.bomx_upload_pic_limit_title[n].replace("{plan}",x),k=La.T.LimitationNotice.bomx_upload_pic_limit_desc[n].replace("{maxSize}",(m||0)/1024/1024).replace("{plan}",v);return(0,o.jsx)(ql,{title:A,desc:k,currentPlan:c,planName:p,planType:d,isOrgLimit:!1,showSoloTrialBtn:i,upgradeOrg:c!==cc.L1.Free,...e})},c1=e=>{const{from:t,locale:n,currentOrg:a}=e,{isSoloCanSwitchTrial:i,userPlan:c,userPlanType:d,userPlanName:p,pplSdk:h}=Ac({locale:n,currentOrg:a,type:Vr.ch.bomx}),m=h.limitationSdk.bomxLimit.getMaxUploadFileBytes(),{type:x,name:v}=Ps({plan:c,locale:n}),A=La.T.LimitationNotice.bomx_upload_file_limit_title[n].replace("{plan}",x),k=La.T.LimitationNotice.bomx_upload_file_limit_desc[n].replace("{maxSize}",(m||0)/1024/1024).replace("{plan}",v);return(0,o.jsx)(ql,{title:A,desc:k,currentPlan:c,planName:p,planType:d,isOrgLimit:!1,showSoloTrialBtn:i,upgradeOrg:c!==cc.L1.Free,...e})},Xd=e=>{const{locale:t,isMockitt:n,currentUser:a,selectedOrg:i,orgList:c,couponList:d}=e,{isOrgCanGetCoupon:p,isOrgCanSwitchTrial:h,pplSdk:m,orgPlan:x,orgPlanType:v,orgPlanName:A,isOrgFull:k,planName:R}=w0({selectedOrg:i,currentUser:a,orgList:c,isMockitt:n,locale:t,couponList:d}),F=m.limitationSdk.bomxLimit.getMaxUploadFileBytes(),{type:Z,name:G}=Ps({plan:x,locale:t}),ee=La.T.LimitationNotice.bomx_upload_file_limit_title[t].replace("{plan}",Z),ce=La.T.LimitationNotice.bomx_upload_file_limit_desc[t].replace("{maxSize}",(F||0)/1024/1024).replace("{plan}",G);return(0,o.jsx)(ql,{title:ee,desc:ce,currentPlan:x,planName:A,planType:v,isOrgLimit:!0,showConfirmBtn:k,showOrgTrialBtn:h,isOrgCanGetCoupon:p,...e})},d1=e=>{const{locale:t,isMockitt:n,currentUser:a,selectedOrg:i,orgList:c,couponList:d}=e,{isOrgCanGetCoupon:p,isOrgCanSwitchTrial:h,pplSdk:m,orgPlan:x,orgPlanType:v,orgPlanName:A,isOrgFull:k,planName:R}=w0({selectedOrg:i,currentUser:a,orgList:c,isMockitt:n,locale:t,couponList:d}),F=m.limitationSdk.bomxLimit.getMaxFileBytes(),{type:Z,name:G}=Ps({plan:x,locale:t}),ee=La.T.LimitationNotice.bomx_project_file_limit_title[t].replace("{plan}",Z),ce=La.T.LimitationNotice.bomx_project_file_limit_desc[t].replace("{maxSize}",(F||0)/1024/1024).replace("{plan}",G);return(0,o.jsx)(ql,{title:ee,desc:ce,currentPlan:x,planName:A,planType:v,isOrgLimit:!0,showConfirmBtn:k,showOrgTrialBtn:h,isOrgCanGetCoupon:p,...e})},kc=e=>{const{from:t,locale:n,currentOrg:a}=e,{isSoloCanSwitchTrial:i,userPlan:c,userPlanType:d,userPlanName:p,pplSdk:h}=Ac({locale:n,currentOrg:a,type:Vr.ch.bomx}),m=h.limitationSdk.bomxLimit.getMaxFileBytes(),{type:x,name:v}=Ps({plan:c,locale:n}),A=La.T.LimitationNotice.bomx_project_file_limit_title[n].replace("{plan}",x),k=La.T.LimitationNotice.bomx_project_file_limit_desc[n].replace("{maxSize}",(m||0)/1024/1024).replace("{plan}",v);return(0,o.jsx)(ql,{title:A,desc:k,currentPlan:c,planName:p,planType:d,isOrgLimit:!1,showSoloTrialBtn:i,upgradeOrg:c!==cc.L1.Free,...e})},Nd=e=>{const{locale:t,isMockitt:n,currentUser:a,selectedOrg:i,orgList:c,couponList:d}=e,{isOrgCanGetCoupon:p,isOrgCanSwitchTrial:h,pplSdk:m,orgPlan:x,orgPlanType:v,orgPlanName:A,isOrgFull:k,planName:R}=w0({selectedOrg:i,currentUser:a,orgList:c,isMockitt:n,locale:t,couponList:d}),F=m.limitationSdk.bomxLimit.getMaxProjectVersionCount(),{type:Z,name:G}=Ps({plan:x,locale:t}),ee=La.T.LimitationNotice.bomx_max_version_limit_title[t].replace("{plan}",Z),ce=La.T.LimitationNotice.bomx_max_version_limit_desc[t].replace("{maxCount}",F).replace("{plan}",G);return(0,o.jsx)(ql,{title:ee,desc:ce,currentPlan:x,planName:A,planType:v,isOrgLimit:!0,showConfirmBtn:k,showOrgTrialBtn:h,isOrgCanGetCoupon:p,...e})},Ep=e=>{const{from:t,locale:n,currentOrg:a}=e,{isSoloCanSwitchTrial:i,userPlan:c,userPlanType:d,userPlanName:p,pplSdk:h}=Ac({locale:n,currentOrg:a,type:Vr.ch.bomx}),m=h.limitationSdk.bomxLimit.getMaxProjectVersionCount(),{type:x,name:v}=Ps({plan:c,locale:n}),A=La.T.LimitationNotice.bomx_max_version_limit_title[n].replace("{plan}",x),k=La.T.LimitationNotice.bomx_max_version_limit_desc[n].replace("{maxCount}",m).replace("{plan}",v);return(0,o.jsx)(ql,{title:A,desc:k,currentPlan:c,planName:p,planType:d,isOrgLimit:!1,showSoloTrialBtn:i,upgradeOrg:c!==cc.L1.Free,...e})},b2=e=>{const{from:t,locale:n,currentOrg:a}=e,{isSoloCanSwitchTrial:i,userPlan:c,userPlanType:d,userPlanName:p,pplSdk:h}=Ac({locale:n,currentOrg:a,type:Vr.ch.bomx}),m=h.limitationSdk.bomxLimit.getMaxWidgetCount(),{type:x,name:v}=Ps({plan:c,locale:n}),A=La.T.LimitationNotice.bomx_max_widget_limit_title[n].replace("{plan}",x),k=La.T.LimitationNotice.bomx_max_widget_limit_desc[n].replace("{maxCount}",m).replace("{plan}",v);return(0,o.jsx)(ql,{title:A,desc:k,currentPlan:c,planName:p,planType:d,isOrgLimit:!1,showSoloTrialBtn:i,upgradeOrg:c!==cc.L1.Free,...e})},zh=e=>{const{locale:t,isMockitt:n,currentUser:a,selectedOrg:i,orgList:c,couponList:d}=e,{isOrgCanGetCoupon:p,isOrgCanSwitchTrial:h,pplSdk:m,orgPlan:x,orgPlanType:v,orgPlanName:A,isOrgFull:k,planName:R}=w0({selectedOrg:i,currentUser:a,orgList:c,isMockitt:n,locale:t,couponList:d}),F=m.limitationSdk.bomxLimit.getMaxWidgetCount(),{type:Z,name:G}=Ps({plan:x,locale:t}),ee=La.T.LimitationNotice.bomx_max_widget_limit_title[t].replace("{plan}",Z),ce=La.T.LimitationNotice.bomx_max_widget_limit_desc[t].replace("{maxCount}",F).replace("{plan}",G);return(0,o.jsx)(ql,{title:ee,desc:ce,currentPlan:x,planName:A,planType:v,isOrgLimit:!0,showConfirmBtn:k,showOrgTrialBtn:h,isOrgCanGetCoupon:p,...e})},Ip=e=>{let{type:t,locale:n,isOrg:a}=e;const i=$c.w4[t],c=i.max_project_count===$c.nj?La.T.LimitationNotice.unlimited[n]:""+i.max_project_count+La.T.LimitationNotice.unit[n],d=i.ppt_can_download_pptx?Ca.R:Ca.Fw,p=i.ppt_ai_points===$c.rz?La.T.LimitationNotice.unlimited[n]:""+i.ppt_ai_points+(a?"/\u4EBA":""),h=(0,Ca.CJ)(t,n);return{[Ca.fA.ProjectsCount]:c,[Ca.fA.PPTAiPoints]:p,[Ca.fA.PPTFileDownload]:d,...h}},Wh={[Ca.fA.ProjectsCount]:[Ca.fA.ProjectsCount,Ca.fA.Teamwork,Ca.fA.PPTAiPoints,Ca.fA.PPTFileDownload,Ca.fA.v8TemplateCount],[Ca.fA.OrgProjectCount]:[Ca.fA.ProjectsCount,Ca.fA.PPTAiPoints,Ca.fA.OrgResignationDataHandover,Ca.fA.OrgFullLogs,Ca.fA.OrgFullManager]},Bu=e=>e?[Ca.OL.OrgLite,Ca.OL.OrgFull]:[Ca.OL.Solo,Ca.OL.Lifetime],_p=e=>{let{firstInterestType:t,isOrg:n,locale:a}=e;const i=h=>h.map(m=>({plan:m,planI18nObj:Ca.cS[m],planIcon:""})),c=Bu(n);let d=Wh[t].map(h=>({type:h,typeI18nObj:Ca.bj[h],values:c.map(m=>Ip({type:m,locale:a,isOrg:n})[h])}));return n||(d=d.filter(h=>h.type!==Ca.fA.Teamwork)),[i(c),d]},Al=e=>{const{limitType:t,selectedOrg:n,upgradeOrg:a,limitDesc:i,isSoloCanGetCoupon:c,isOrgCanGetCoupon:d,isMockitt:p,currentPlan:h,planName:m,planType:x,isOrgLimit:v,locale:A,onRemoveMember:k,actions:R,getlimitReason:F,actions:{onOrgSwitchToTrial:Z,onSoloSwitchToTrial:G,onManageShare:ee,onConfirm:ce,onUpgrade:se,onLimitNewTrack:he,onMoreTrack:ve}}=e,Te=Ca.fu[t],[xe,Fe]=_p({firstInterestType:Te,isOrg:v,locale:A}),et=(0,l.useMemo)(()=>({limitReason:F(v),currentPlanProduct:m,currentPlanCategory:v?"org":"solo",currentType:x,currentEditMember:v?n==null?void 0:n.total_seats:0,currentEditMemberTaken:v&&n?(0,Vr.NY)(n):0,currentViewMember:v?n==null?void 0:n.total_viewer_seats:0}),[F,m,v,x,n]);(0,l.useEffect)(()=>{he(et)},[et,he]);const Ke=()=>{ve(et)},Qe=()=>{se({isSoloCanGetCoupon:c,isOrgCanGetCoupon:d,limitTrackParams:et,upgradeOrg:a,isOrgLimit:v})},nt=lt=>()=>lt&&lt(et),Xe={...R,onConfirm:nt(ce),onOrgSwitchToTrial:nt(Z),onSoloSwitchToTrial:nt(G),onManageShare:nt(ee),onRemoveMember:nt(k),onUpgrade:Qe,onMore:Ke};return(0,o.jsx)(l1,{...e,planList:xe,interestList:Fe,isCanGetCoupon:!!(c||d),limitDesc:i,actions:Xe})},Zl=e=>{let{selectedOrg:t,currentUser:n,orgList:a,isMockitt:i,locale:c,couponList:d}=e;const{isOrgCanSwitchTrial:p}=Il({isOrgLimit:!0,orgParams:{currentUser:n,currentOrg:t,orgs:a},projectType:Vr.ch.bomx}),{isOrgCanGetCoupon:h}=Jl({isMockitt:i,coupons:d}),{orgPlan:m,orgPlanType:x,orgPlanName:v,isOrgFull:A}=(0,Vr.VP)(c,t),k=pd.tz.InitialOrg(t),{plan:R}=k.planSdk.aiPptPlan;let Z=R===cc.Sj.OrgFree?Fs.TH.LimitationNotice.bomx_free_plan[c]:Fs.TH.LimitationNotice.bomx_org_lite_plan[c];return A&&(Z=Fs.TH.LimitationNotice.bomx_org_full_plan[c]),{isOrgCanSwitchTrial:p,isOrgCanGetCoupon:h,pplSdk:k,orgPlan:m,orgPlanType:x,orgPlanName:v,isOrgFull:A,planName:Z}},Nc=e=>{const{from:t,locale:n,isMockitt:a,currentUser:i,currentOrg:c,selectedOrg:d,orgList:p,couponList:h}=e,{cid:m}=d,x=m===c.cid,{isOrgCanGetCoupon:v,isOrgCanSwitchTrial:A,pplSdk:k,orgPlan:R,orgPlanType:F,orgPlanName:Z,isOrgFull:G,planName:ee}=Zl({selectedOrg:d,currentUser:i,orgList:p,isMockitt:a,locale:n,couponList:h}),ce=k.limitationSdk.pptLimit.getMaxProjectCount(),{type:se,name:he}=Ps({plan:R,locale:n}),ve=x?La.T.LimitationNotice.limit_current_is[n]:La.T.LimitationNotice.limit_target_space_is[n],Te=La.T.LimitationNotice.project_count_limit_title[n].replace("{orgName}",ve).replace("{product}","AIPPT").replace("{plan}",se),xe=La.T.LimitationNotice.project_count_limit_desc[n].replace("{orgName}",ve).replace("{plan}",he).replace("{maxCount}",ce).replace("{product}","AIPPT");return(0,o.jsx)(Al,{title:Te,desc:xe,currentPlan:R,planName:Z,planType:F,isOrgLimit:!0,showConfirmBtn:G,showOrgTrialBtn:A,isOrgCanGetCoupon:v,showPreviewBtn:!A,...e})},Z1=e=>{const{from:t,locale:n,isMockitt:a,currentUser:i,currentOrg:c,couponList:d}=e,p=c&&c.cid&&c.otype!=="personal",{isSoloCanGetCoupon:h}=Jl({isMockitt:a,coupons:d}),{isSoloCanSwitchTrial:m,userPlan:x,userPlanType:v,userPlanName:A,pplSdk:k}=Ac({locale:n,currentOrg:c,type:Vr.ch.aiPpt}),R=k.limitationSdk.pptLimit.getMaxProjectCount(),{type:F,name:Z}=Ps({plan:x,locale:n}),G=p?La.T.LimitationNotice.limit_target_space_is[n]:La.T.LimitationNotice.limit_current_is[n],ee=La.T.LimitationNotice.project_count_limit_title[n].replace("{orgName}",G).replace("{plan}",F).replace("{product}","AIPPT"),ce=La.T.LimitationNotice.project_count_limit_desc[n].replace("{orgName}",G).replace("{plan}",Z).replace("{maxCount}",R).replace("{product}","AIPPT");return(0,o.jsx)(Al,{title:ee,desc:ce,currentPlan:x,planName:A,planType:v,isOrgLimit:!1,isSoloCanGetCoupon:h,showSoloTrialBtn:m,showPreviewBtn:!m,...e})},V0=e=>{const{from:t,locale:n,currentUser:a,currentOrg:i,isCurrentProject:c}=e,{isSoloCanSwitchTrial:d,userPlan:p,userPlanType:h,userPlanName:m}=Ac({locale:n,currentOrg:i,type:Vr.ch.proto}),{maxWidgetCount:x}=(0,Vr.xR)(t,a,void 0),{type:v,name:A}=Ps({plan:p,locale:n}),k=La.T.LimitationNotice.v8_max_widget_limit_title[n].replace("{plan}",v),R=La.T.LimitationNotice.v8_max_widget_limit_desc[n].replace("{maxCount}",x).replace("{plan}",A);return(0,o.jsx)(il,{title:k,desc:R,currentPlan:p,planName:m,planType:h,isOrgLimit:!1,showSoloTrialBtn:d,...e})},K1=e=>{const{from:t,locale:n,isMockitt:a,currentUser:i,selectedOrg:c,orgList:d,couponList:p,isCurrentProject:h}=e,{isOrgCanSwitchTrial:m}=Il({isOrgLimit:!0,orgParams:{currentUser:i,currentOrg:c,orgs:d}}),{isOrgCanGetCoupon:x}=Jl({isMockitt:a,coupons:p}),{orgPlan:v,orgPlanType:A,orgPlanName:k}=(0,Vr.tv)(n,c,i),{maxWidgetCount:R}=(0,Vr.xR)(t,i,c),{type:F,name:Z}=Ps({plan:v,locale:n}),G=La.T.LimitationNotice.v8_max_widget_limit_title[n].replace("{plan}",F),ee=La.T.LimitationNotice.v8_max_widget_limit_desc[n].replace("{maxCount}",R).replace("{plan}",Z);return(0,o.jsx)(il,{title:G,desc:ee,currentPlan:v,planName:k,planType:A,isOrgLimit:!0,showOrgTrialBtn:m,isOrgCanGetCoupon:x,...e})},Tp=e=>{const{from:t,locale:n,isMockitt:a,currentUser:i,selectedOrg:c,orgList:d,couponList:p,isCurrentProject:h}=e,{isOrgCanSwitchTrial:m}=Il({isOrgLimit:!0,orgParams:{currentUser:i,currentOrg:c,orgs:d}}),{isOrgCanGetCoupon:x}=Jl({isMockitt:a,coupons:p}),{orgPlan:v,orgPlanType:A,orgPlanName:k}=(0,Vr.tv)(n,c,i),{maxV8ScreenCount:R}=(0,Vr.xR)(t,i,c),{type:F,name:Z}=Ps({plan:v,locale:n}),G=La.T.LimitationNotice.v8_max_canvas_limit_title[n].replace("{plan}",F),ee=La.T.LimitationNotice.v8_max_canvas_limit_desc[n].replace("{maxCount}",R).replace("{plan}",Z);return(0,o.jsx)(il,{title:G,desc:ee,currentPlan:v,planName:k,planType:A,isOrgLimit:!0,showOrgTrialBtn:m,isOrgCanGetCoupon:x,...e})},w2=e=>{const{from:t,locale:n,currentUser:a,currentOrg:i,isCurrentProject:c}=e,{isSoloCanSwitchTrial:d,userPlan:p,userPlanType:h,userPlanName:m}=Ac({locale:n,currentOrg:i,type:Vr.ch.proto}),{maxV8ScreenCount:x}=(0,Vr.xR)(t,a,void 0),{type:v,name:A}=Ps({plan:p,locale:n}),k=La.T.LimitationNotice.v8_max_canvas_limit_title[n].replace("{plan}",v),R=La.T.LimitationNotice.v8_max_canvas_limit_desc[n].replace("{maxCount}",x).replace("{plan}",A);return(0,o.jsx)(il,{title:k,desc:R,currentPlan:p,planName:m,planType:h,isOrgLimit:!1,showSoloTrialBtn:d,...e})},Y1=e=>{const{from:t,locale:n,currentOrg:a,currentUser:i}=e,c=!!(a&&a.cid&&a.otype!=="personal"),{currentPlan:d,planName:p,planType:h}=(0,Vr.T2)(c,n,a,i),{type:m,name:x}=Ps({plan:d,locale:n}),v=La.T.LimitationNotice.flow_max_page_limit_title[n].replace("{plan}",m),A=La.T.LimitationNotice.flow_max_page_limit_desc[n].replace("{maxCount}",3).replace("{plan}",x);return(0,o.jsx)(il,{title:v,desc:A,currentPlan:d,planName:p,planType:h,isOrgLimit:c,...e})},Pp=e=>{const{from:t,locale:n,currentOrg:a,currentUser:i}=e,c=!!(a&&a.cid&&a.otype!=="personal"),{currentPlan:d,planName:p,planType:h}=(0,Vr.T2)(c,n,a,i),{type:m,name:x}=Ps({plan:d,locale:n}),v=La.T.LimitationNotice.mind_max_page_limit_title[n].replace("{plan}",m),A=La.T.LimitationNotice.mind_max_page_limit_desc[n].replace("{maxCount}",3).replace("{plan}",x);return(0,o.jsx)(il,{title:v,desc:A,currentPlan:d,planName:p,planType:h,isOrgLimit:c,...e})},Uu=e=>{const{from:t,locale:n,isMockitt:a,currentUser:i,currentOrg:c,selectedOrg:d,orgList:p,couponList:h}=e,{cid:m}=d,x=m===c.cid,{isOrgCanSwitchTrial:v}=Il({isOrgLimit:!0,orgParams:{currentUser:i,currentOrg:d,orgs:p}}),{isOrgCanGetCoupon:A}=Jl({isMockitt:a,coupons:h}),{orgPlan:k,orgPlanType:R,orgPlanName:F,isOrgFull:Z}=(0,Vr.tv)(n,d),{maxProjectCount:G}=(0,Vr.xR)(t,i,d),{type:ee,name:ce}=Ps({plan:k,locale:n}),se=x?La.T.LimitationNotice.limit_current_is[n]:La.T.LimitationNotice.limit_target_space_is[n],he=La.T.LimitationNotice.project_count_limit_title[n].replace("{orgName}",se).replace("{product}","\u539F\u578B").replace("{plan}",ee),ve=La.T.LimitationNotice.flowchart_project_count_limit_desc[n].replace("{orgName}",se).replace("{plan}",ce).replace("{maxCount}",G).replace("{product}","\u539F\u578B");return(0,o.jsx)(il,{currentPlan:k,planName:F,planType:R,isOrgLimit:!0,showConfirmBtn:Z,showOrgTrialBtn:v,isOrgCanGetCoupon:A,showPreviewBtn:!v,title:he,desc:ve,...e})},Hh=e=>{const{from:t,locale:n,isMockitt:a,currentUser:i,currentOrg:c,couponList:d}=e,{isSoloCanGetCoupon:p}=Jl({isMockitt:a,coupons:d}),{isSoloCanSwitchTrial:h,userPlan:m,userPlanType:x,userPlanName:v}=Ac({locale:n,currentOrg:c,type:Vr.ch.proto}),{maxProjectCount:A}=(0,Vr.xR)(t,i,void 0),{type:k,name:R}=Ps({plan:m,locale:n}),F=La.T.LimitationNotice.limit_current_is[n],Z=La.T.LimitationNotice.project_count_limit_title[n].replace("{orgName}",F).replace("{product}","\u539F\u578B").replace("{plan}",k),G=La.T.LimitationNotice.flowchart_project_count_limit_desc[n].replace("{orgName}",F).replace("{plan}",R).replace("{maxCount}",A).replace("{product}","\u539F\u578B");return(0,o.jsx)(il,{currentPlan:m,planName:v,planType:x,isOrgLimit:!1,isSoloCanGetCoupon:p,showSoloTrialBtn:h,showPreviewBtn:!h,title:Z,desc:G,...e})},Gh={[Ca.hC.MaxSharingCount]:y2,[Ca.hC.OrgMaxSpaceCount]:x2,[Ca.hC.OrgMaxTemplateCount]:v2,[Ca.hC.OrgMaxVersionCount]:Ap,[Ca.hC.ProjectHandoverNoPermission]:O0,[Ca.hC.ProjectHandoverWhenDemotingNoPermission]:O0,[Ca.hC.OrgMaxPicSize]:ud,[Ca.hC.SoloMaxPicSize]:hd,[Ca.hC.OrgMaxPrototypePageCount]:md,[Ca.hC.SoloMaxPrototypePageCount]:W1,[Ca.hC.OrgMaxPrototypeWidgetCount]:V0,[Ca.hC.SoloMaxPrototypeWidgetCount]:K1,[Ca.hC.SoloMaxProto2PageCount]:w2,[Ca.hC.OrgMaxProto2PageCount]:Tp,[Ca.hC.SoloMaxProto2CanvasCount]:Du,[Ca.hC.OrgMaxProto2CanvasCount]:ju,[Ca.hC.SoloMaxProto2WidgetCount]:V0,[Ca.hC.OrgMaxProto2WidgetCount]:K1,[Ca.hC.MaxFlowPageCount]:Y1,[Ca.hC.MaxMindPageCount]:Pp,[Ca.hC.OrgMaxProjectCount]:Fh,[Ca.hC.SoloMaxProjectCount]:Vh,[Ca.hC.ProjectVersionFromCount]:Ld,[Ca.hC.ProjectVersionFromTime]:Ld,[Ca.hC.BomxSoloMaxProjectCount]:Ru,[Ca.hC.BomxOrgMaxProjectCount]:F0,[Ca.hC.BomxOrgMaxPicSize]:Mp,[Ca.hC.BomxSoloMaxPicSize]:C0,[Ca.hC.BomxOrgMaxFileSize]:Xd,[Ca.hC.BomxSoloMaxFileSize]:c1,[Ca.hC.BomxOrgMaxProjectSize]:d1,[Ca.hC.BomxSoloMaxProjectSize]:kc,[Ca.hC.BomxOrgMaxVersionCount]:Nd,[Ca.hC.BomxSoloMaxVersionCount]:Ep,[Ca.hC.BomxSoloMaxWidgetCount]:b2,[Ca.hC.BomxOrgMaxWidgetCount]:zh,[Ca.hC.PPTOrgMaxProjectCount]:Nc,[Ca.hC.PPTSoloMaxProjectCount]:Z1,[Ca.hC.Flowchart2SoloMaxProjectCount]:Hh,[Ca.hC.Flowchart2OrgMaxProjectCount]:Uu};function C2(e){const{limitType:t}=e,n=Gh[t];return!t||!n?null:(0,o.jsx)(n,{...e})}var sl=s(47163),X1=s(53008),jc=s(81717),ic=s(16615),rs=s(27845),is=s(25306);const Q1=e=>{const t=is.tz.InitialUser(e).planSdk,n=t.prototypePlan.getUserPlan(),a=t.prototypePlan.getUserStatus();return a===rs.pZ.Trial?"solo\u8BD5\u7528":a===rs.pZ.Expired?"solo\u5230\u671F":n===rs.L1.Solo?"solo\u6807\u51C6\u7248":n===rs.L1.Lifetime||n===rs.L1.PremiumLifetime?"solo\u7EC8\u8EAB\u7248":"solo\u514D\u8D39"},Qd=e=>{const t=is.tz.InitialOrg(e).planSdk,n=t.getOrgCurrentMemberProtoLimitationPlan(),a=t.isLifetime,i=t.getOrgStatus();if(i===rs._E.Trial)return"org\u8BD5\u7528";if(i===rs._E.Expired)return"org\u5230\u671F";if(i===rs._E.Paid){if(n===rs.Sj.OrgLite)return a?"\u56E2\u961F\u7EC8\u8EAB":"\u56E2\u961F\u7248";if(n===rs.Sj.OrgFull)return a?"\u4F01\u4E1A\u7EC8\u8EAB":"\u4F01\u4E1A\u7248"}return"org\u514D\u8D39"},Ou=e=>{const t="TRACK_MARKET_AD_EXP-"+e;return(0,Pt.kV)(t)?!0:((0,Pt.cH)(t,"true"),!1)},Zh=e=>{let{limitReason:t,currentEditMemberTaken:n}=e;(0,ic.ZI)("limit_popup",{limit_reason:t,source:"\u539F\u578B\u7F16\u8F91\u533A",current_edit_member:n,current_plan_product:MB.org?Qd(MB.org):Q1(MB.user)})},S0=e=>{const{isOpen:t,type:n,currentUser:a,currentOrg:i,personalOrg:c,selectedOrg:d,screenCount:p,isCurrentProject:h=!0,widgetCreateLimit:m,project:x,isFromScreenList:v,onClose:A}=e,k=d||i,R=Ca.FW.Proto,F=()=>Fr.rk[n],Z=(0,r.wA)(),G=()=>A(),Fe={onSoloSwitchToTrial:async Ke=>{const Qe=await(0,V1.Ue)();!Qe||!Qe.user||(MB.notice({text:I18N.dModals.got_personal_trial_success}),G(),jc.Y4.limitPopupClick({objectClick:"\u9886\u53D62\u5929\u8BD5\u7528",...Ke}),location.reload())},onOrgSwitchToTrial:async Ke=>{const Qe=await(0,Td.Iw)(k.cid);!Qe||!Qe.org||(MB.notice({text:I18N.dModals.get_7_days_business_trial_success}),G(),jc.Y4.limitPopupClick({objectClick:"\u9886\u53D67\u5929\u8BD5\u7528",...Ke}),location.reload())},onUpgrade:async Ke=>{let{isSoloCanGetCoupon:Qe=!1,isOrgCanGetCoupon:nt=!1,limitTrackParams:Xe,upgradeOrg:lt=!1,isOrgLimit:Ct=!0}=Ke;Qe&&(0,Td.Go)("sole_free_upgrade_paid"),nt&&(0,Td.Go)("org_free_upgrade_paid");const St=Qe||nt,hn=Fr.H4[n],Cn=Ct?k:null;n===Ca.hC.OrgMaxPicSize&&!Cn&&(lt=!0);const Mt=(0,Vr.l0)({org:Cn,paymentTrackParams:hn,checkoutArea:R,upgradeOrg:lt});MB.global.popupHelper.chargeAsync({...Mt,fromType:n}),G(),n===Ca.hC.MaxSharingCount&&(0,X1.kv)({action:"\u5347\u7EA7\u7248\u672C",linkName:"\u65E0",project:x,isFromScreenList:v}),jc.Y4.limitPopupClick({objectClick:St?"\u9886\u5238\u5347\u7EA7":I18N.dModals.upgrade,...Xe})},onConfirm:Ke=>{G(),jc.Y4.limitPopupClick({objectClick:"\u6211\u77E5\u9053\u4E86",...Ke})},onManageShare:Ke=>{Z({type:"toolbar:sharingManager:open"}),G(),jc.Y4.limitPopupClick({objectClick:I18N.dModals.limit_manage_pages,...Ke})},onClose:G,onLimitNewTrack:Ke=>Zh(Ke),onMoreTrack:Ke=>jc.Y4.limitPopupClick({objectClick:"\u4E86\u89E3\u66F4\u591A\u6743\u76CA",...Ke})},et=i||c||{...a,otype:"personal"};return(0,o.jsxs)(Sp,{isOpen:t,className:"right-and-interests",onClose:G,title:null,footer:null,canClose:!1,children:[(0,o.jsx)(C2,{from:R,locale:(0,sl.w)(),isMockitt:ENV.IS_MO,limitType:n,currentUser:a,currentOrg:et,selectedOrg:k||et,screenCount:p,isCurrentProject:h,widgetCreateLimit:m,actions:Fe,getlimitReason:F}),(0,o.jsx)(g2,{})]})},p1="400-659-9879",J1="\u987E\u95EE\u5DE5\u4F5C\u65F6\u95F4\uFF1A\u5468\u4E00\u81F3\u5468\u4E94 9:00-18:00",q1=(0,M.Ay)(ci.H).withConfig({displayName:"style__StyledOrgBeyondRights",componentId:"sc-mssgl6-0"})(["&.apps-count-over{.content{min-height:152px;font-size:14px;color:#1f292e;line-height:22px;background-color:",";.modal-content{display:flex;flex:1;flex-direction:column;align-items:stretch;overflow:hidden;position:relative;p{margin:0 0 5px;font-size:14px;line-height:22px;font-family:PingFangSC-Regular;font-style:normal;font-weight:400;color:",";.strong{font-weight:600;}.tip{color:",";}}}}}"],e=>e.theme.color_bg_white,e=>e.theme.color_text_L1,e=>e.theme.color_text_L2),Kh=e=>{let{isOpen:t,beyondType:n,...a}=e;const i=(0,r.wA)(),c=()=>{i({type:"toolbar:sharingManager:open"}),a.onClose()};return(0,o.jsx)(q1,{isOpen:t,canCloseOnClickMask:!0,onClose:a.onClose,className:"apps-count-over",title:n==="MaxSharingCount"?I18N.dModals.limit_sharing_count:I18N.dModals.limit_business_plan_over_limit_tips,cancelText:I18N.dModals.limit_manage_sharing,onCancel:n==="MaxSharingCount"?c:null,confirmText:n==="MaxSharingCount"?I18N.dModals.limit_i_got_it:I18N.Common.confirm,confirmBtnProps:{type:"danger"},onConfirm:a.onClose,children:(0,o.jsxs)("div",{className:"modal-content",children:[(0,o.jsxs)("p",{children:[I18N.dModals.limit_current_is,(0,o.jsx)("span",{className:"strong",children:I18N.Common.business_plan})]}),n==="versionNumber"&&(0,o.jsxs)("p",{children:[(0,o.jsx)("span",{dangerouslySetInnerHTML:{__html:I18N.dModals.limit_business_plan_file_version_over_limit}}),!ENV.IS_MO&&(0,o.jsxs)("span",{children:["\u82E5\u60A8\u6709\u66F4\u9AD8\u9700\u6C42\uFF0C\u6B22\u8FCE\u54A8\u8BE2\u987E\u95EE",(0,o.jsx)("span",{className:"strong",children:" "+p1+" "}),"\u4E86\u89E3\u79C1\u6709\u5316\u7248\u672C\u3002"]})]}),n==="picSize"&&(0,o.jsxs)("p",{children:[(0,o.jsx)("span",{dangerouslySetInnerHTML:{__html:I18N.dModals.limit_business_plan_image_size_over_limit}}),!ENV.IS_MO&&(0,o.jsxs)("span",{children:["\u82E5\u60A8\u6709\u66F4\u9AD8\u9700\u6C42\uFF0C\u6B22\u8FCE\u54A8\u8BE2\u987E\u95EE",(0,o.jsx)("span",{className:"strong",children:" "+p1+" "}),"\u4E86\u89E3\u79C1\u6709\u5316\u7248\u672C\u3002"]})]}),n==="MaxSharingCount"&&(0,o.jsxs)("p",{children:[(0,o.jsx)("span",{dangerouslySetInnerHTML:{__html:I18N.dModals.limit_business_plan_share_count_over_limit}}),!ENV.IS_MO&&(0,o.jsxs)("span",{children:["\u82E5\u60A8\u6709\u66F4\u9AD8\u9700\u6C42\uFF0C\u6B22\u8FCE\u54A8\u8BE2\u987E\u95EE",(0,o.jsx)("span",{className:"strong",children:" "+p1+" "}),"\u4E86\u89E3\u79C1\u6709\u5316\u7248\u672C\u3002"]})]}),!ENV.IS_MO&&(0,o.jsx)("p",{children:(0,o.jsx)("span",{className:"tip",children:J1})})]})})};var fd=s(11032);const Fu=(0,M.Ay)(ci.H).withConfig({displayName:"styles__StyledResourcePurchaseModal",componentId:"sc-ay5kax-0"})(["&.resource-purchase{height:480px;overflow:hidden;box-shadow:none;border-radius:8px;background:#fff;border:0;}iframe{width:100%;height:100%;border:0;}"]);var ed=s(5209);class jd extends l.PureComponent{constructor(){super(...arguments),(0,B.A)(this,"handleMessage",async t=>{if(typeof t.data!="string")return;const{onClose:n,dispatch:a,resources:{cid:i,title:c,category:d,is_star:p},paidCallback:h}=this.props;if(t.data==="close")n();else if(t.data==="paid")n(),h&&h(),a({type:"modal:update:state",payload:{resourcesPaidSuccessModal:{isOpen:!0,cid:i,category:d}}}),p||await(0,fd.lU)(p,i,!1);else if(t.data==="goMatBuy"){const{payEntrance:m,checkoutPlace:x}=(0,fd.FS)(d),v={mode:"mat",payEntrance:m,checkoutArea:"proto",checkoutPlace:x,templateCid:i,templateName:c,templateCategory:d};MB.global.popupHelper.chargeAsync(v),n()}else t.data==="error"&&console.error("\u652F\u4ED8\u53D1\u751F\u9519\u8BEF")})}componentDidMount(){window.addEventListener("message",this.handleMessage);const{cid:t,title:n,category:a}=this.props.resources;(0,ed.kH)("scvip_pay_confirm",{source:"v8\u7F16\u8F91\u533A\u7D20\u6750\u9762\u677F",template_name:n,template_cid:t,template_category:a})}componentWillUnmount(){window.removeEventListener("message",this.handleMessage)}render(){var t;const{isOpen:n,resources:a,isFooter:i,onClose:c}=this.props;if(!a)return null;const{cid:d,amount:p,discount:h,policy:m,title:x,cover:v}=a,A={isOrg:!!((t=MB)!=null&&t.currentOrg),amount:p,discount:h,policy:m,templateCid:d,templateTitle:x,templateImageUrl:v,projectType:"prototype",from:"\u5DE5\u4F5C\u533A",checkoutArea:"proto",checkoutPlace:i?"panel_single_pay":"use_vip_mkt_popup_single_pay"};return(0,o.jsx)(Fu,{isOpen:n,onClose:c,title:null,width:716,footer:null,centered:!0,className:C()("resource-purchase"),modalRender:()=>(0,o.jsx)(o.Fragment,{children:(0,o.jsx)("iframe",{src:"/embed/community_payment_modal?param="+(0,x0._)(A)})})})}}(0,B.A)(jd,"defaultProps",{isFooter:!1});var Ll=s(3862);const $1=(0,M.Ay)(ci.H).withConfig({displayName:"styled__StyledResourcesPaidSuccessModal",componentId:"sc-bgkjh8-0"})([".content{padding:20px;.container{img{width:360px;margin-top:16px;border-radius:8px;overflow:hidden;}}}"]);class u1 extends l.PureComponent{constructor(){super(...arguments),(0,B.A)(this,"handleUsed",()=>{const{cid:t,category:n,onClose:a,dispatch:i}=this.props;a(),i({type:"entry:resources:paid:success:goto:starred",payload:{cid:t,category:n}})})}render(){const{isOpen:t,category:n,onClose:a}=this.props,i=n===Ll.t_?"\u7EC4\u4EF6-\u6211\u7684-\u6536\u85CF":n===Ll.Gd?"\u6A21\u677F-\u6211\u7684-\u6536\u85CF":"\u56FE\u6807-\u6536\u85CF";return(0,o.jsx)($1,{isOpen:t,onClose:a,canCloseOnEsc:!1,canCloseOnClickMask:!1,title:"\u652F\u4ED8\u6210\u529F",width:400,onConfirm:this.handleUsed,confirmText:"\u7ACB\u5373\u4F7F\u7528",onCancel:a,cancelText:"\u7EE7\u7EED\u6D4F\u89C8",children:(0,o.jsxs)("div",{className:"container",children:[(0,o.jsxs)("span",{className:"desc",children:["\u53EF\u70B9\u51FB\u201C\u7ACB\u5373\u4F7F\u7528\u201D\u4FDD\u5B58\u540E\uFF0C\u524D\u5F80",(0,o.jsx)("b",{children:'"'+i+'"'}),"\u67E5\u770B"]}),(0,o.jsx)("img",{src:"/mb-proto2/images/guide/paidSuccess/"+n+"_202509.png"})]})})}}var A2=s(46998),Nl=s(60589),Lp=s(97109);const Dc=(0,l.memo)(e=>{let{isOpen:t,activePageKey:n,activeWidgetKey:a,...i}=e;const[c,d]=(0,l.useState)(n),p=(0,r.d4)(tt.p$),h=(0,r.d4)(He.UV),m=(0,r.d4)(Nl.vv),x=(0,r.d4)(Bs.n),v=(0,l.useMemo)(()=>({left:x+30,top:78}),[x]),A=(0,r.wA)();(0,l.useEffect)(()=>{if(t&&p!=null&&p.length&&!a){const R=p.some(Z=>sdkStore.locUpRBPageKey(Z)===c);let F=c;R||p.find(Z=>{const G=sdkStore.locUpRBPageKey(Z);return G?(F=G,!0):!1}),d(F)}},[t,p]),(0,l.useEffect)(()=>{let R;return t&&(R=h.addSdkStoreChangeListener(F=>{let{isRemote:Z}=F;if(Z&&(a&&h.isTrashed(a)||n&&h.isTrashed(n))){A({type:"modal:update:state",payload:{previewComboModal:{isOpen:!1}}});return}})),()=>{var F;(F=R)==null||F()}},[t,h,n,a]);const k=R=>{let{activePageKey:F}=R;d(F)};return t&&(0,o.jsx)(Vu,{activePageKey:c,activeWidgetKey:a,isDragOrResizeModal:m,dispatch:A,position:v,...i,onActiveRunner:k})});class Vu extends l.PureComponent{constructor(t){super(t),(0,B.A)(this,"handleMove",(h,m)=>{this.setState({left:h,top:m})}),(0,B.A)(this,"handleWheel",h=>h.preventDefault()),(0,B.A)(this,"handleResize",(h,m,x)=>{(0,as.qd)(h,x,(v,A)=>{var k;this.setState(v);const{width:R,height:F}=v;!((k=MB)==null||(k=k.webpackInterface)==null)&&k.store&&MB.webpackInterface.store.dispatch({type:"entry:preview:zoom-quick-preview",payload:{quickPreviewSize:{width:R,height:F-as.lp}}})})}),(0,B.A)(this,"handleUpdateDragOrResizeModal",h=>{var m,x;this.props.dispatch({type:"modal:update:state",payload:{isDragOrResizeModal:h}}),(m=MB)!=null&&m.runnerController&&((x=MB)==null||(x=x.runnerController)==null||x.setIsPreventEvent(h))}),this.$portalElem=(0,as.ke)();const{PreviewApp:n,runnerController:a,messageBucket:i,webpackInterface:c}=(0,Sc._)(Lp.A);t.activeWidgetKey||(MB.previewModalActiveRunner=h=>t.onActiveRunner(h)),this.popGlobalPreviewRelated=As.A.tryStashGlobalPreviewRelated({runnerController:a,messageBucket:i,webpackInterface:c}),this.PreviewApp=n;let d=as.CW,p=as.tP+as.lp;if(t.activeWidgetKey){const h=t.width,m=t.height,{width:x,height:v}=(0,as.Xw)({width:h,height:m},{width:h,height:m});d=x,p=v+as.lp}this.state={left:t.position.left,top:t.position.top,width:d,height:p}}componentDidMount(){var t;!((t=MB)==null||(t=t.webpackInterface)==null)&&t.store&&MB.webpackInterface.store.dispatch({type:"reducer:preview-toolbar:update",payload:{theme:this.props.theme}}),this.$portalElem.addEventListener("wheel",this.handleWheel,{passive:!1})}componentDidUpdate(t,n,a){var i;(i=MB)!=null&&(i=i.webpackInterface)!=null&&i.store&&(t.activePageKey!==this.props.activePageKey?(MB.webpackInterface.store.dispatch({type:"entry:runner:activate:canvas",payload:{pageKey:this.props.activePageKey,canvasKey:null}}),MB.webpackInterface.store.dispatch({type:"entry:preview:zoom-quick-preview"})):t.theme!==this.props.theme&&MB.webpackInterface.store.dispatch({type:"reducer:preview-toolbar:update",payload:{theme:this.props.theme}}))}componentWillUnmount(){this.handleUpdateDragOrResizeModal(!1),setTimeout(()=>this.popGlobalPreviewRelated(),500),this.$portalElem.removeEventListener("wheel",this.handleWheel,{passive:!1})}render(){var t,n;const{projectAlike:a,currentProjectMeta:i,activePageKey:c,activeWidgetKey:d,isDragOrResizeModal:p,onClose:h}=this.props,{left:m,top:x,width:v,height:A}=this.state,{PreviewApp:k}=this;return!((t=MB)!=null&&(t=t.webpackInterface)!=null&&t.store)||!((n=MB)!=null&&n.runnerController)?null:(0,Ki.createPortal)((0,o.jsxs)(Ys,{children:[(0,o.jsx)(Qa.A,{position:{left:m,top:x},dragContainer:as.er.ComboModal,container:"#workspace .main-content",onMove:this.handleMove,onMoveStart:()=>this.handleUpdateDragOrResizeModal(!0),onMoveEnd:()=>this.handleUpdateDragOrResizeModal(!1),children:(0,o.jsxs)(rc,{id:as.er.ComboModal,style:{width:v,height:A},className:"preview-modal-portal-root is-focus-panel",children:[(0,o.jsx)("div",{className:"content",children:(0,o.jsx)(k,{store:MB.webpackInterface.store,previewMode:"preview",isPreviewCombo:!0,projectAlike:a,projectMeta:i,activePageKey:c,activeWidgetKey:d,quickPreviewSize:{width:v,height:A-as.lp},onCloseModal:h})}),p&&(0,o.jsx)("div",{className:"mask"})]})}),(0,o.jsx)(ac.A,{classname:"resizer",top:x,left:m,width:v,height:A,zoomable:"n,s,e,w,ne,nw,se,sw",rotatable:!1,rotateAngle:0,onResize:this.handleResize,onResizeStart:()=>this.handleUpdateDragOrResizeModal(!0),onResizeEnd:()=>this.handleUpdateDragOrResizeModal(!1),cursorAngle:0})]}),this.$portalElem)}}const k2=Dc;var Np=s(98033);const zu=(0,M.Ay)(ci.H).withConfig({displayName:"styles__StyledUpgradeComboModal",componentId:"sc-1pw1s9x-0"})(["width:480px;.content{padding:10px 0 24px;.modal-content{padding:0;min-height:36px;.combo-list{height:300px;overflow-y:overlay;li{display:flex;align-items:center;height:40px;margin-bottom:4px;padding:0 20px;position:relative;&.checked{background:",";}.folder-icon{width:22px;margin:0 7px;path:first-child{fill:transparent;stroke:",";}path:last-child{fill:",";stroke:",";}}label{font-weight:400;font-size:14px;color:",";}}}}}footer{.all-checked{display:flex;align-items:center;flex:1;position:relative;&.checked{#all-checked{opacity:1;}}.all-checked-desc{font-weight:500;font-size:14px;color:",";margin-left:6px;}}}li{list-style:none;}"],e=>e.theme.color_btn_secondary_active,e=>e.theme.color_text_L1,e=>e.theme.color_bg_border_02,e=>e.theme.color_text_L1,e=>e.theme.color_text_L1,e=>e.theme.color_text_L1);class Ol extends l.PureComponent{constructor(t){super(t),(0,B.A)(this,"handleSelectCombo",(n,a)=>{n.preventDefault(),n.stopPropagation();const{upgradeComboGroupList:i}=this.props,{selectedComboList:c}=this.state;c.includes(a)?c.splice(c.indexOf(a),1):c.push(a),this.setState({selectedComboList:JSON.parse(JSON.stringify(c)),isSelectAll:c.length===i.length})}),(0,B.A)(this,"handleConfirm",async()=>{const{comboGroupList:n,currentComboPanel:a,userFcg:i,orgFcg:c,userId:d,onClose:p}=this.props,{selectedComboList:h}=this.state;if(h.length===0)return;this.setState({startExporting:!0,exportLoading:!0}),MB.notice({text:"\u5BFC\u5165\u4E2D...",type:"loading"});let m=a;a==="user"&&((0,Np.Z)()?m="org":m="user");for(const x of h)await(0,Eo.G8)({currentComboPanel:m,projectMetaCid:x});if(a==="user"){const x=await(0,Oa.i_)({...i,userId:d,isAllowDat:!0});x&&(Object.assign(globalThis,{userSdk:x,userSdkStore:x.sdkStore}),MB.action("entry:load:user:combo:group:list"),MB.action("entry:refresh:user-combo-group:add:migrate",{oldUserComboGroups:n}))}else if(a==="org"){const x=(0,Oa.Bk)(),v=await(0,Oa.i_)({...c,userId:d,isAllowDat:x});v&&(Object.assign(globalThis,{orgSdk:v,orgSdkStore:v.sdkStore}),MB.action("entry:load:org:combo:group:list"),MB.action("entry:refresh:org-combo-group:add:migrate",{oldOrgComboGroups:n}))}MB.notice({text:"\u5BFC\u5165\u6210\u529F",type:"success"})}),(0,B.A)(this,"handleAllChecked",n=>{n.preventDefault(),n.stopPropagation();const{upgradeComboGroupList:a}=this.props,{isSelectAll:i}=this.state,c=[];i||a.forEach(d=>c.push(d.project_meta_cid)),this.setState({selectedComboList:c,isSelectAll:!i})}),this.state={selectedComboList:[],startExporting:!1,exportLoading:!1,exportSuccess:!1,exportFail:!1,isSelectAll:!1}}render(){const{isOpen:t,upgradeComboGroupList:n,currentComboPanel:a,onClose:i}=this.props,{selectedComboList:c,isSelectAll:d}=this.state,p=a==="org",h=(0,o.jsxs)("div",{className:C()("all-checked",{checked:d}),onClick:m=>this.handleAllChecked(m),children:[(0,o.jsx)(Sn.A,{className:"combo-all-checked",isChecked:d}),(0,o.jsx)("span",{className:"all-checked-desc",children:"\u5168\u9009"})]});return(0,o.jsx)(zu,{className:"upgradeMyCombo top-modal",isOpen:t,onClose:i,canCloseOnClickMask:!0,canClose:!0,mask:!1,title:"\u8BF7\u9009\u62E9\u65E7\u7248"+(p?"\u4F01\u4E1A":"\u6211\u7684")+"\u7EC4\u4EF6",onCancel:i,cancelText:"\u53D6\u6D88",confirmText:"\u5BFC\u5165",confrmBtnProps:{callOnClose:!1},onConfirm:this.handleConfirm,isConfirmDisabled:c.length===0,renderFooterSide:()=>h,children:(0,o.jsx)(o.Fragment,{children:(0,o.jsx)("div",{className:"combo-list",children:n.map(m=>{let{cid:x,name:v,project_meta_cid:A}=m;const k=c.includes(A);return(0,o.jsxs)("li",{className:C()("item",{checked:k}),onClick:R=>this.handleSelectCombo(R,A),children:[(0,o.jsx)(Sn.A,{isChecked:k}),(0,o.jsx)(xt.C,{className:"folder-icon",name:"left_panel/group_close"}),(0,o.jsx)("span",{children:v})]},A)})})})})}}const ep=(0,M.Ay)(ci.H).withConfig({displayName:"styles__StyledChargeModal",componentId:"sc-b2ioui-0"})(["padding:0;height:600px;width:900px;display:flex;background-color:transparent;&.workspace-modal{border-radius:18px;}iframe{background:#ffffff;}.charge-container{width:100%;height:100%;border:none;border-radius:18px;}.payment-close{position:absolute;width:24px;height:24px;right:14px;top:15px;cursor:pointer;}"]);class M2 extends l.PureComponent{constructor(){super(...arguments),(0,B.A)(this,"state",{isChargePaymentSuccess:!1}),(0,B.A)(this,"handleMessage",t=>{try{const{msg:n,value:a}=JSON.parse(t.data);n==="closeChargeModal"?(this.props.onClose(),a&&(location.href=a)):n==="chargePaymentSuccess"&&this.setState({isChargePaymentSuccess:!0})}catch(n){}}),(0,B.A)(this,"handleClose",()=>{const{mode:t,onClose:n}=this.props;jc.Y4.PaymentMode.popupClick({popupName:"\u652F\u4ED8\u5F39\u7A97",isFirstExp:"\u672A\u77E5",url:location.href,buttonName:"\u5173\u95ED"}),t==="org"?jc.Y4.PaymentMode.orgClickMask():t==="solo"&&jc.Y4.PaymentMode.soloClickMask(),n(),this.state.isChargePaymentSuccess&&location.reload(),(0,hc.iX)()})}componentDidMount(){window.addEventListener("message",this.handleMessage)}componentWillUnmount(){window.removeEventListener("message",this.handleMessage)}render(){const{src:t,isOpen:n}=this.props;return(0,o.jsx)(ep,{isOpen:n,canClose:!0,onClose:this.props.onClose,width:900,title:null,footer:null,centered:!0,modalRender:()=>(0,o.jsx)(o.Fragment,{children:(0,o.jsx)("iframe",{className:"charge-container",src:""+t+(0,rl.O5)(!0)})})})}}const Wu=M2;var Jd=s(29158),Hu=s(41011);const E2="C@main",h1=function(e){e===void 0&&(e=CLOCK_MIN);const t=createInitialFlatTree(e);return addFlatItemMutate(t,createFlatItem(E2,{ctime:packU8V(Date.now())},KEY_MAIN,[],e)),t};var qd=s(50353);const Gu=e=>{const t=[],{type:n,widget:a,children:i}=e;return n===WidgetType.WWrap?i.forEach(c=>t.push(...Gu(c))):t.push(a),t},Zu=e=>{const t=[],{type:n,widget:a,children:i}=e;return t.push(a),n===WidgetType.WWrap&&i.forEach(c=>t.push(...Zu(c))),t},I2=e=>{const t=[];return e!=null&&e.widget.isLock||(t.push(e==null?void 0:e.widget),(e==null?void 0:e.type)===WidgetType.WWrap&&(e==null||e.children.forEach(n=>t.push(...I2(n))))),t},Ku=e=>{const t=[];return e.parent&&(t.push(e.parent),t.push(...Ku(e.parent))),t},Yh=(e,t)=>{if(t){const n=new RegExp(escapeRegex(t),"i");return e.map(a=>_2(a,i=>n.test(getLayerItemDisplayName(i)))).filter(a=>a)}else return e},_2=(e,t)=>{const{widget:n,children:a,type:i}=e,c=n?t(n):!0,d=[NodeType.panel,WidgetType.WMind].includes(i)?[]:a.map(p=>_2(p,t)).filter(p=>p);if(c||d.length){const p=e.dup();return p.children=d,p}return null},z0=()=>{const e=new Map,t=n=>{if(e.has(n))return e.get(n);if(rootSdk.sdkStore.isTrashed(n))return e.set(n,!0),!0;if(rootSdk.sdkStore.locTopRBActiveKey(n)===Za.W4){const a=rootSdk.sdkStore._calcIntActConnMapCached();return t(Array.from(a.refPageToBasket[rootSdk.sdkStore.locUpRBPageKey(n)]||[])[0]||"")}return e.set(n,!1),!1};return t},td=M.Ay.div.withConfig({displayName:"styles__StyledProjectSummaryField",componentId:"sc-1hb2nhn-0"})(["display:flex;align-items:center;height:32px;background-color:",";border-radius:6px;span{overflow:clip visible;white-space:nowrap;text-overflow:ellipsis;font-size:12px;line-height:12px;font-weight:400;&.field-title{color:",";}&:field-content{color:",";}}.general &{flex:0 0 230px;padding-left:10px;span{&.field-title{margin-right:14px;}&.field-content{&.creator-name{max-width:130px;}&.creator-avatar{display:flex;margin-right:6px;max-width:148px;.creator-avatar-placeholder{width:24px;height:24px;border-radius:50%;border:1px solid ",";color:#fff;font-size:14px;line-height:22px;text-align:center;background-color:#1684fc;}img{width:24px;height:24px;border-radius:50%;border:1px solid ",";}}}}}.statistic &{gap:6px;flex:0 0 150px;padding-left:10px;padding-right:10px;span{&.field-title{flex:0 0 74px;&:lang(en){flex-basis:100px;}}&.field-content{max-width:50px;}}}.engagement &{flex:0 0 150px;flex-direction:column;justify-content:top;row-gap:10px;height:100px;padding-top:28px;span{&.field-content{font-size:18px;font-weight:500;max-width:128px;&.cmt-resolved-count{font-size:10px;color:#23B571;display:flex;align-items:center;svg{flex:1 0 10px;margin-right:4px;}}}}}"],e=>e.theme.color_bg_card,e=>e.theme.color_text_L2,e=>e.theme.color_text_L1,e=>e.theme.color_bg_border_02,e=>e.theme.color_bg_border_02),T2=(0,M.Ay)(ci.H).withConfig({displayName:"styles__StyledProjectSummaryModal",componentId:"sc-1hb2nhn-1"})(["display:flex;flex-direction:column;z-index:200;background-color:",";border:1px solid ",";box-shadow:0 6px 12px rgba(51,55,62,0.09),0 2px 3px rgba(22,22,33,0.02),0 4px 4px rgba(3,37,80,0.02);font-size:16px;line-height:24px;color:",";.content{padding:0 20px 24px;}.modal-content{.summary-ctgy{display:flex;flex-direction:column;padding-top:24px;line-height:12px;font-size:12px;.summary-ctgy-title{font-weight:500;margin-bottom:12px;}.summary-ctgy-content{display:flex;flex-wrap:wrap;flex-direction:row;gap:12px;}}}"],e=>e.theme.color_bg_white,e=>e.theme.color_bg_border_02,e=>e.theme.color_text_L1),jp=e=>{let{onClose:t}=e;const[n,a]=(0,l.useState)({creatorName:"",creatorAvatarSrc:"",projCreatedAt:"",collaboratorWithEditAccessCount:0,collaboratorWithReadOnlyAccessCount:0});(0,l.useEffect)(()=>{(0,Eo.wZ)(MB.getRootProject().cid).then(ce=>{const{owner_name:se,owner_avatar:he,created_at:ve,members_count:{can_edit:Te,only_preview:xe}}=ce;a({creatorName:se,creatorAvatarSrc:he,projCreatedAt:rn(ve).format("YYYY/MM/DD HH:mm"),collaboratorWithEditAccessCount:Te,collaboratorWithReadOnlyAccessCount:xe})})},[]);const i=z0(),{creatorName:c,creatorAvatarSrc:d,projCreatedAt:p,collaboratorWithEditAccessCount:h,collaboratorWithReadOnlyAccessCount:m}=n,x=rootSdk.sdkStore.findAllTypeUnder(Za.$k,"rResBunch").filter(ce=>ce.hotAttr.bunch==="rbPage"&&!ce.hotAttr.asFolder).length,v=rootSdk.sdkStore.findAllTypeUnder(Za.$k,"rResCanvas").filter(ce=>!ce.hotAttr.asOverlay).length,A=(0,Ii.UU)({isKeepInnerSkip:!1}),k=rootSdk.sdkStore.getHotItem(Za.fW).sub.length,R=rootSdk.sdkStore.getHotItem(Za.W4).sub.filter(ce=>!i(ce)).length,F=rootSdk.sdkStore.findAllTypeUnder(Jd.gT,"wSticky").filter(ce=>!i(ce.key)).length+rootSdk.sdkStore.findAllTypeUnder(Jd.gT,"wTear").filter(ce=>!i(ce.key)).length,Z=rootSdk.cmtStore.getHotItem(E2).sub.reduce((ce,se)=>i(se)?ce:ce.concat(rootSdk.cmtStore.getSubHotItemList(se)),[]),G=Z.length,ee=Z.filter(ce=>ce.hotAttr.isCompleted).length;return(0,o.jsx)(T2,{isOpen:!0,width:520,onClose:t,canCloseOnClickMask:!0,title:I18N.ProjectSummaryModal.title,footer:null,children:(0,o.jsxs)("div",{className:"modal-content",children:[(0,o.jsxs)("div",{className:"summary-ctgy general",children:[(0,o.jsx)("span",{className:"summary-ctgy-title",children:I18N.ProjectSummaryModal.creation_info}),(0,o.jsxs)("div",{className:"summary-ctgy-content",children:[(0,o.jsxs)(td,{children:[(0,o.jsx)("span",{className:"field-title",children:I18N.Common.creator}),(0,o.jsx)("span",{className:"field-content creator-avatar",children:d.includes("/images/avatar.png")||!d?(0,o.jsx)("div",{className:"creator-avatar-placeholder",children:c.slice(0,1).toUpperCase()}):(0,o.jsx)("img",{src:d,alt:c})}),(0,o.jsx)("span",{className:"field-content creator-name",children:c})]}),(0,o.jsxs)(td,{children:[(0,o.jsx)("span",{className:"field-title",children:I18N.Common.created_at}),(0,o.jsx)("span",{className:"field-content",children:p})]})]})]}),(0,o.jsxs)("div",{className:"summary-ctgy statistic",children:[(0,o.jsx)("span",{className:"summary-ctgy-title",children:I18N.ProjectSummaryModal.quantitative_statistics}),(0,o.jsxs)("div",{className:"summary-ctgy-content",children:[(0,o.jsxs)(td,{children:[(0,o.jsx)("span",{className:"field-title",children:I18N.ProjectSummaryModal.page}),(0,o.jsx)("span",{className:"field-content",children:x})]}),(0,o.jsxs)(td,{children:[(0,o.jsx)("span",{className:"field-title",children:I18N.ProjectSummaryModal.screens}),(0,o.jsx)("span",{className:"field-content",children:v})]}),(0,o.jsxs)(td,{children:[(0,o.jsx)("span",{className:"field-title",children:I18N.ProjectSummaryModal.widgets}),(0,o.jsx)("span",{className:"field-content",children:A})]}),(0,o.jsxs)(td,{children:[(0,o.jsx)("span",{className:"field-title",children:I18N.ProjectSummaryModal.master}),(0,o.jsx)("span",{className:"field-content",children:k})]}),(0,o.jsxs)(td,{children:[(0,o.jsx)("span",{className:"field-title",children:I18N.ProjectSummaryModal.dynamic_widget}),(0,o.jsx)("span",{className:"field-content",children:R})]}),(0,o.jsxs)(td,{children:[(0,o.jsx)("span",{className:"field-title",children:I18N.w.wSticky}),(0,o.jsx)("span",{className:"field-content",children:F})]})]})]}),(0,o.jsxs)("div",{className:"summary-ctgy engagement",children:[(0,o.jsx)("span",{className:"summary-ctgy-title",children:I18N.ProjectSummaryModal.collaboration_info}),(0,o.jsxs)("div",{className:"summary-ctgy-content",children:[(0,o.jsxs)(td,{children:[(0,o.jsx)("span",{className:"field-title",children:I18N.ProjectSummaryModal.editor}),(0,o.jsx)("span",{className:"field-content",children:h})]}),(0,o.jsxs)(td,{children:[(0,o.jsx)("span",{className:"field-title",children:I18N.ProjectSummaryModal.viewer}),(0,o.jsx)("span",{className:"field-content",children:m})]}),(0,o.jsxs)(td,{children:[(0,o.jsx)("span",{className:"field-title",children:I18N.ProjectSummaryModal.total_comments}),(0,o.jsx)("span",{className:"field-content cmt-count",children:G}),(0,o.jsxs)("span",{className:"field-content cmt-resolved-count",children:[(0,o.jsx)(xt.C,{name:"toolbar/saveSuccess",className:"saveSuccess"}),(0,o.jsx)("span",{children:I18N.ProjectSummaryModal.completed_number.replace(/{cmtResolvedCount}/,ee)})]})]})]})]})]})})};var tp=s(83557);const Xh=(0,M.Ay)(ci.H).withConfig({displayName:"styles__StyledFlpakSizeWarnModal",componentId:"sc-ia291u-0"})(["&.flpak-size-warn-modal{width:480px;height:368px;border-radius:10px;box-shadow:0px 9px 28px 0px rgba(0,0,0,0.09),0px 6px 16px 0px rgba(0,0,0,0.02),0px 3px 6px 0px rgba(0,0,0,0.02);&:lang(en){height:max-content;}.content{display:flex;flex-direction:column;justify-content:space-between;height:262px;padding:24px 20px;&:lang(en){height:max-content;}.prompt{position:relative;display:flex;align-items:center;padding:14px;width:440px;height:68px;border-radius:6px;background-color:",";color:",";font-size:14px;font-weight:500;&:lang(en){height:max-content;}img{position:absolute;right:0;width:142px;height:68px;pointer-events:none;&:lang(en){width:auto;height:100%;}}}.steps{margin-top:20px;p{color:",";font-size:14px;font-weight:400;}p:first-child{font-weight:500;margin-bottom:4px;}}.detail{margin-top:20px;color:",";font-size:12px;font-weight:400;line-height:18px;}}}"],e=>e.theme.color_info_bg,e=>e.theme.color_text_L1,e=>e.theme.color_text_L1,e=>e.theme.color_text_L2),P2=(0,M.DU)([".ModalPortal{&:not(.is-open){.flpak-size-warn-modal{transform:scale(0.5) translate(10vw,-80vh)!important;}}}"]);var np=s(9446);const L2=async()=>{MB.notice({type:"loading",text:""+I18N.FlpakSizeWarn.creating,duration:0}),setTimeout(async()=>{try{const t=rootSdk.fssDat.getFlatStore().getFlatTree().fork(),n=z0(),a=rootSdk.sdkStore.getHotItem("B@ref-danli").sub.filter(x=>!n(x));t.set("B@ref-danli",{...t.get("B@ref-danli"),sub:a}),t.set("@@T",{...t.get("@@T"),sub:[]}),t.set("B@trash",{...t.get("B@trash"),sub:[]});const i=MB.__store__.getState(),c=(0,me.PL)(i),{cid:d}=(0,me.H7)(i),h={name:ENV.IS_MO?c.name+"'s Streamlined Copies":c.name+"\u7684\u7CBE\u7B80\u526F\u672C",device:c.device,model:c.model,width:c.width,height:c.height,attr:c.attr},{clientData:{upperCid:m}}=await(0,tp.Nc)(t,d,h);MB.notice({type:"success",text:""+I18N.FlpakSizeWarn.create_success,duration:2e3}),(0,rl.JW)("/proto/design/"+m)}catch(e){const t=JSON.parse(e.message);let n=""+I18N.FlpakSizeWarn.create_fail;Number(e.status)===403&&t.errMsg==="P_COUNT_EXCEEDED"&&(n=""+I18N.FlpakSizeWarn.reched_limit),MB.notice({type:"error",text:n,duration:2e3})}},0)},Qh=e=>{var t,n;const{isOpen:a,onClose:i}=e,c=()=>{i(),L2()};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(P2,{}),(0,o.jsxs)(Xh,{isOpen:a,className:"flpak-size-warn-modal",title:I18N.FlpakSizeWarn.large_file_size,onConfirm:c,onClose:i,confirmText:I18N.FlpakSizeWarn.creating_streamlined_copies,canCloseOnClickMask:!1,canCancel:!1,children:[(0,o.jsxs)("div",{className:"prompt",children:[(0,o.jsx)("p",{children:I18N.FlpakSizeWarn.modal_prompt.replace(/{n}/,(t=np.A.getFlpakSizeInfo())==null?void 0:t.currentSize)}),(0,o.jsx)("img",{src:"/mb-proto2/images/flpak_size_warn_modal_prompt_bg.png",alt:""})]}),(0,o.jsxs)("div",{className:"steps",children:[(0,o.jsx)("p",{children:I18N.FlpakSizeWarn.modal_steps_title}),(0,o.jsx)("p",{children:I18N.FlpakSizeWarn.modal_steps_1}),(0,o.jsx)("p",{children:I18N.FlpakSizeWarn.modal_steps_2})]}),(0,o.jsxs)("div",{className:"detail",children:[(0,o.jsx)("p",{children:I18N.FlpakSizeWarn.modal_detail_1}),(0,o.jsx)("p",{children:I18N.FlpakSizeWarn.modal_detail_2.replace(/{n}/,(n=np.A.getFlpakSizeInfo())==null?void 0:n.warnSize)})]})]})]})},W0=[{coverSrc:"https://cdn.modao.cc/video2023/%E4%BA%86%E8%A7%A3%E5%8E%9F%E5%9E%8B%E7%BC%96%E8%BE%91%E5%8C%BA-cover-2x4x.png",videoSrc:"https://cdn.modao.cc/video2023/%E4%BA%86%E8%A7%A3%E5%8E%9F%E5%9E%8B%E7%BC%96%E8%BE%91%E5%8C%BA.mp4",videoName:"\u4E86\u89E3\u539F\u578B\u7F16\u8F91\u533A",duration:137},{coverSrc:"https://cdn.modao.cc/video2023/%E6%9C%80%E7%BB%88-ep1-%E7%94%BB%E5%B8%83%E4%B8%8E%E9%A1%B5%E9%9D%A2-cover-2x4x.png",videoSrc:"https://cdn.modao.cc/video2023/%E6%9C%80%E7%BB%88-ep1-%E7%94%BB%E5%B8%83%E4%B8%8E%E9%A1%B5%E9%9D%A2.M4V",videoName:"\u753B\u5E03\u4E0E\u9875\u9762",duration:150},{coverSrc:"https://cdn.modao.cc/video2023/%E6%9C%80%E7%BB%88-ep2-%E4%BA%86%E8%A7%A3%E5%9B%BE%E5%B1%82-cover-2x4x.png",videoSrc:"https://cdn.modao.cc/video2023/%E6%9C%80%E7%BB%88-ep2-%E4%BA%86%E8%A7%A3%E5%9B%BE%E5%B1%82.M4V",videoName:"\u4E86\u89E3\u56FE\u5C42",duration:80},{coverSrc:"https://cdn.modao.cc/video2023/%E6%9C%80%E7%BB%88-ep3-%E4%BD%BF%E7%94%A8%E7%BB%84%E4%BB%B6-cover-2x4x.png",videoSrc:"https://cdn.modao.cc/video2023/%E6%9C%80%E7%BB%88-ep3-%E4%BD%BF%E7%94%A8%E7%BB%84%E4%BB%B6.M4V",videoName:"\u4F7F\u7528\u7EC4\u4EF6",duration:206},{coverSrc:"https://cdn.modao.cc/video2023/%E6%9C%80%E7%BB%88-ep4-%E4%BD%BF%E7%94%A8%E5%9B%BE%E6%A0%87%E3%80%81%E5%9B%BE%E7%89%87%E3%80%81%E9%A1%B5%E9%9D%A2%E7%B4%A0%E6%9D%90-cover-2x4x.png",videoSrc:"https://cdn.modao.cc/video2023/%E6%9C%80%E7%BB%88-ep4-%E4%BD%BF%E7%94%A8%E5%9B%BE%E6%A0%87%E3%80%81%E5%9B%BE%E7%89%87%E3%80%81%E9%A1%B5%E9%9D%A2%E7%B4%A0%E6%9D%90.M4V",videoName:"\u4F7F\u7528\u56FE\u6807\u3001\u56FE\u7247\u3001\u9875\u9762\u7D20\u6750",duration:109},{coverSrc:"https://cdn.modao.cc/video2023/%E6%9C%80%E7%BB%88-ep5-%E6%89%B9%E6%B3%A8%E5%92%8C%E8%BF%9E%E6%8E%A5%E7%BA%BF-cover-2x4x.png",videoSrc:"https://cdn.modao.cc/video2023/%E6%9C%80%E7%BB%88-ep5-%E6%89%B9%E6%B3%A8%E5%92%8C%E8%BF%9E%E6%8E%A5%E7%BA%BF.M4V",videoName:"\u6DFB\u52A0\u6279\u6CE8\u548C\u8FDE\u63A5\u7EBF",duration:171},{coverSrc:"https://cdn.modao.cc/video2023/%E6%9C%80%E7%BB%88-ep6-%E4%BA%A4%E4%BA%92%E4%BA%8B%E4%BB%B6-cover-2x4x.png",videoSrc:"https://cdn.modao.cc/video2023/%E6%9C%80%E7%BB%88-ep6-%E4%BA%A4%E4%BA%92%E4%BA%8B%E4%BB%B6.M4V",videoName:"\u6DFB\u52A0\u4EA4\u4E92\u4E8B\u4EF6",duration:267},{coverSrc:"https://cdn.modao.cc/video2023/%E6%9C%80%E7%BB%88-ep7-%E5%88%86%E4%BA%AB%E5%8E%9F%E5%9E%8B-cover-2x4x.png",videoSrc:"https://cdn.modao.cc/video2023/%E6%9C%80%E7%BB%88-ep7-%E5%88%86%E4%BA%AB%E5%8E%9F%E5%9E%8B.M4V",videoName:"\u5206\u4EAB\u539F\u578B",duration:156},{coverSrc:"https://cdn.modao.cc/video2023/%E6%9C%80%E7%BB%88-ep8-%E5%8A%A8%E6%80%81%E7%BB%84%E4%BB%B6-cover-2x4x.png",videoSrc:"https://cdn.modao.cc/video2023/%E6%9C%80%E7%BB%88-ep8-%E5%8A%A8%E6%80%81%E7%BB%84%E4%BB%B6.M4V",videoName:"\u52A8\u6001\u7EC4\u4EF6",duration:197},{coverSrc:"https://cdn.modao.cc/video2023/%E6%9C%80%E7%BB%88-ep9-%E4%BD%BF%E7%94%A8%E6%AF%8D%E7%89%88-cover-2x4x.png",videoSrc:"https://cdn.modao.cc/video2023/%E6%9C%80%E7%BB%88-ep9-%E4%BD%BF%E7%94%A8%E6%AF%8D%E7%89%88.M4V",videoName:"\u4F7F\u7528\u6BCD\u7248",duration:187},{coverSrc:"https://cdn.modao.cc/video2023/%E6%9C%80%E7%BB%88-ep10-%E5%8E%9F%E5%9E%8B%E5%8D%8F%E4%BD%9C-cover-2x4x.png",videoSrc:"https://cdn.modao.cc/video2023/%E6%9C%80%E7%BB%88-ep10-%E5%8E%9F%E5%9E%8B%E5%8D%8F%E4%BD%9C.M4V",videoName:"\u539F\u578B\u534F\u4F5C",duration:119}],$d=(0,M.Ay)($s.A).withConfig({displayName:"styles__StyledNewbieVideoModal",componentId:"sc-29ogk7-0"})(["border:",";border-radius:10px;overflow:hidden;z-index:107;background:",";header{cursor:move;width:100%;height:50px;padding:0 20px;background:",";border-bottom:1px solid ",";p{font-size:16px;font-weight:500;color:",";span:first-child{margin-right:10px;}}.close{cursor:pointer;width:24px;color:",";&:hover{color:",";}}}.contant{width:100%;padding:20px;line-height:0;background:",";video{width:100%;aspect-ratio:55 / 31;border-radius:10px;border:1px solid ",";object-fit:fill;}}footer{cursor:move;width:100%;height:56px;display:flex;padding:0 20px;justify-content:flex-end;background:",";.next{margin-left:12px;}}"],e=>e.theme.ai_modal_border_style,e=>e.theme.color_bg_white,e=>e.theme.color_bg_white,e=>e.theme.color_bg_border_02,e=>e.theme.color_text_L1,e=>e.theme.color_text_L2,e=>e.theme.color_text_L1,e=>e.theme.color_bg_white,e=>e.theme.color_bg_border_02,e=>e.theme.color_bg_white),A0=M.Ay.div.withConfig({displayName:"styles__StyledNewbieVideoContainer",componentId:"sc-29ogk7-1"})([".single-resizer{border:0;z-index:106;.resizable-handler{&.t,&.b{width:100%;left:7px;cursor:ns-resize !important;}&.l,&.r{height:100%;top:7px;cursor:ew-resize !important;}}.square{display:none;}}"]);var ll=s(25234);const nd=e=>(e-40)*31/55+146,Xu=e=>(e-146)*55/31+40,Dp=400,Hc=1200,Rp=800,op=nd(Dp),Qu=nd(Hc),m1=nd(Rp),Bp=e=>{const{onClose:t,index:n,dispatch:a}=e,[i,c]=(0,l.useState)(n);(0,l.useEffect)(()=>{c(n),xe(!1),et(!1)},[n]);const d=W0.length,{videoName:p,videoSrc:h}=W0[i],m=(0,l.useMemo)(()=>i===0,[i]),x=(0,l.useMemo)(()=>i===d-1,[i,d]),v=(0,l.useCallback)(()=>{x||(c(i+1),xe(!1),et(!1))},[x,i]),A=(0,l.useCallback)(()=>{m||(c(i-1),xe(!1),et(!1))},[m,i]),[k,R]=(0,l.useState)((window.innerWidth-Rp)/2),[F,Z]=(0,l.useState)((window.innerHeight-m1)/2),G=(Xe,lt)=>{R(Xe),Z(lt)};function ee(Xe,lt,Ct){const{top:St,left:hn,width:Cn,height:Mt}=Xe;Cn<Dp||Cn>Hc||Mt<op||Mt>Qu||(Ct==="t"||Ct==="b"?(ve(Mt),se(Xu(Mt))):Ct==="l"||Ct==="r"?(se(Cn),ve(nd(Cn))):(se(Cn),ve(Mt)),R(hn),Z(St))}const[ce,se]=(0,l.useState)(Rp),[he,ve]=(0,l.useState)(m1),[Te,xe]=(0,l.useState)(!1),[Fe,et]=(0,l.useState)(!1),Ke=(0,l.useRef)(),Qe=()=>{Te||((0,jc.Fn)({video_name:p}),xe(!0))},nt=Xe=>{a({type:"modal:update:state",payload:{isDragOrResizeModal:Xe}})};return(0,l.useEffect)(()=>{const Xe=setInterval(()=>{if(!Ke.current||Fe){clearInterval(Xe);return}const{duration:lt,currentTime:Ct}=Ke.current;Ct/lt>.9&&(et(!0),(0,jc.Wt)({video_name:p}),clearInterval(Xe))},1e3)},[Fe]),(0,l.useEffect)(()=>()=>{nt(!1)},[]),(0,o.jsxs)(A0,{children:[(0,o.jsx)(Qa.A,{position:{left:k,top:F},dragContainer:"newbie-video-modal",onMove:G,onMoveStart:()=>nt(!0),onMoveEnd:()=>nt(!1),children:(0,o.jsxs)($d,{id:"newbie-video-modal",style:{width:ce,height:he},children:[(0,o.jsxs)("header",{type:"draggable",children:[(0,o.jsxs)("p",{type:"draggable",children:[(0,o.jsx)("span",{children:""+p}),(0,o.jsx)("span",{children:i+1+"/"+d})]}),(0,o.jsx)(xt.C,{name:"common/close",className:"close",onClick:t})]}),(0,o.jsx)("div",{className:"contant",children:(0,o.jsx)("video",{ref:Ke,controls:!0,src:h,autoPlay:!0,onPlay:Qe})}),(0,o.jsxs)("footer",{type:"draggable",children:[(0,o.jsx)(ll.tA,{className:"prev",disabled:m,onClick:A,children:I18N.CommonGuides.prev}),(0,o.jsx)(ll.jn,{className:"next",disabled:x,onClick:v,children:I18N.CommonGuides.next})]})]})}),(0,o.jsx)(ac.A,{classname:"resizer",top:F,left:k,width:ce,height:he,zoomable:"n,s,e,w",rotatable:!1,rotateAngle:0,onResize:ee,onResizeStart:()=>nt(!0),onResizeEnd:()=>nt(!1),cursorAngle:0})]})};var j2=s(58603);const Ju=M.Ay.div.withConfig({displayName:"styles__StyledSelectGroup",componentId:"sc-k09v9g-0"})(["display:flex;align-items:center;column-gap:10px;.combo-category-select-box{.is-disabled{opacity:1;}.combo-upload-opener{width:112px;height:32px;display:flex;align-items:center;padding-left:8px;border-radius:6px;border:1px solid ",";&.is-placeholder{.title{color:",";}}&.is-disabled{color:",";}.title{text-align:start;color:",";font-size:14px;font-weight:400;line-height:16px;flex:1;}.arrow-icon{width:8px;margin:10px;}}label.Select{width:112px;height:32px;box-sizing:border-box;border:1px solid ",";border-radius:6px;padding-left:8px;color:",";button{font-size:14px;font-family:inherit;}&:last-of-type{margin-right:0;}}}"],e=>e.theme.color_bg_border_02,e=>e.theme.color_text_L2,e=>e.theme.color_text_disabled01,e=>e.theme.color_text_L1,e=>e.theme.color_bg_border_02,e=>e.theme.color_text_L1),qu=M.Ay.div.withConfig({displayName:"styles__StyledSelectMenu",componentId:"sc-k09v9g-1"})(["padding:8px;width:151px;display:flex;flex-direction:column;row-gap:2px;li{height:24px;list-style:none;display:flex;align-items:center;column-gap:8px;padding-left:32px;border-radius:4px;&:hover,&.is-selected{background:",";}&.is-selected{padding-left:8px;}.checked{width:16px;height:16px;}.title{font-size:12px;font-weight:400;line-height:16px;}}color:",";background:",";border-radius:8px;li{color:",";background:",";}"],e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_text_L1,e=>e.theme.color_bg_white,e=>e.theme.color_text_L1,e=>e.theme.color_bg_white),$u=(0,M.DU)(["body > div > div.context-menu-mask{width:initial;height:initial;}#IBOT_DROPDOWN_MENU_ROOT .DesignDropdownMenuBase > .DesignDropdownMenu.combo-upload-category-menu.x-center{transition:all 0.2s ease-out;border-radius:8px;.content{background:",";padding:0;border-radius:8px;color:",";}}"],e=>e.theme.color_bg_white,e=>e.theme.color_text_L1),Up=e=>{const{selectedOption:t,optionList:n,onSelectedOption:a,onClose:i}=e,c=d=>{a(d),i()};return(0,o.jsx)(qu,{children:n.map((d,p)=>{const h=t===d;return(0,o.jsxs)("li",{className:C()(h&&"is-selected"),onClick:()=>c(d),children:[h&&(0,o.jsx)(xt.C,{name:"common/checked",className:"checked"}),(0,o.jsx)("span",{className:"title",children:d})]},p)})})},Dd=(0,l.memo)(Up),Op=e=>{const{option:t,placeholder:n,optionList:a,changeOption:i}=e,[c,d]=(0,l.useState)(!1),[p,h]=(0,l.useState)({}),m=(0,l.useRef)(null),x=!t,v=!a||a.length===0,A=()=>{if(!m.current)return{};const{top:F,left:Z}=m.current.getBoundingClientRect();return{menuBaseStyle:{left:Z-22,top:F,width:135}}},k=(0,l.useCallback)(F=>{if(!v){if(F){const{menuBaseStyle:Z}=A();h(Z)}d(F)}},[v]),R=(0,l.useCallback)(()=>k(!1),[k]);return(0,o.jsx)(j2.A,{menuY:"bottom",isOpen:c,className:C()("combo-category-select-box"),onToggle:k,isDisabled:v,menuBaseStyle:p,opener:(0,o.jsxs)("div",{className:C()("combo-upload-opener",{"is-placeholder":x},{"is-disabled":v}),ref:m,children:[(0,o.jsx)("span",{className:"title",children:t||n}),(0,o.jsx)(xt.C,{className:C()("arrow-icon",{"is-expand":c}),name:"common/expand"})]}),menuClassName:"combo-upload-category-menu",menu:(0,o.jsx)(Dd,{selectedOption:t,optionList:a,onSelectedOption:i,onClose:R})})},Fp=(0,l.memo)(Op);var Gc=function(e){return e.App="app",e.Applet="applet",e.Website="website",e.WebBack="web_back",e.Ipad="ipad",e.SmartTV="smart_tv",e.SmartCar="smart_car",e.AppleWatch="apple_watch",e.Slide="slide",e.DisplayScreen="display_screen",e.HMI="HMI",e.Activity="activity",e.other="other",e}(Gc||{});const f1={APP:Gc.App,Web\u540E\u53F0:Gc.WebBack,\u5C0F\u7A0B\u5E8F:Gc.Applet,Web\u7F51\u7AD9:Gc.Website,\u53EF\u89C6\u5316\u5927\u5C4F:Gc.DisplayScreen,HMI:Gc.HMI,\u6D3B\u52A8:Gc.Activity,\u5E73\u677F\u7AEF:Gc.Ipad,\u667A\u80FD\u7535\u89C6:Gc.SmartTV,\u624B\u8868:Gc.AppleWatch,\u5E7B\u706F\u7247:Gc.Slide,\u5176\u4ED6:Gc.other},Mc={APP:{\u5927\u5382\u8D44\u6E90:["Ant Design","TDesign","Arco Design","WeUi","\u5176\u5B83"],\u901A\u7528:["\u6309\u94AE","\u641C\u7D22","\u4E2A\u4EBA\u4E2D\u5FC3","\u652F\u4ED8","\u767B\u5F55","\u5206\u4EAB"],\u5BFC\u822A:["\u62BD\u5C49","\u7D22\u5F15","\u5BFC\u822A\u6761","\u4FA7\u8FB9\u680F","\u6B65\u9AA4\u6761","\u6807\u7B7E\u680F/\u5E95\u90E8\u5BFC\u822A","\u4E0B\u62C9\u83DC\u5355","\u9009\u9879\u5361","\u5176\u5B83"],\u6570\u636E\u5F55\u5165:["\u65E5\u5386","\u65F6\u95F4\u9009\u62E9\u5668","\u641C\u7D22\u6846","\u8868\u5355","\u9009\u62E9","\u8F93\u5165\u6846","\u8BC4\u5206","\u6B65\u8FDB\u5668","\u5F00\u5173","\u4E0A\u4F20"],\u6570\u636E\u5C55\u793A:["\u8F6E\u64AD","\u8868\u683C","\u5217\u8868","\u8FDB\u5EA6\u6761","\u6807\u7B7E","\u5185\u5BB9\u5361\u7247","\u5BAB\u683C","\u65F6\u95F4\u8F74","\u5176\u5B83"],\u53CD\u9988:["\u52A8\u4F5C\u9762\u677F","\u901A\u77E5","\u5F39\u7A97","\u62BD\u5C49","\u5F15\u5BFC","\u52A0\u8F7D\u4E2D","\u6ED1\u52A8\u5355\u5143\u683C"],\u5176\u5B83:[]},Web\u540E\u53F0:{\u5927\u5382\u8D44\u6E90:["Ant Design","TDesign","Arco Design","WeUi","\u5176\u5B83"],\u901A\u7528:["\u6309\u94AE","\u641C\u7D22","\u4E2A\u4EBA\u4E2D\u5FC3","\u652F\u4ED8","\u767B\u5F55","\u5206\u4EAB"],\u5BFC\u822A:["\u62BD\u5C49","\u7D22\u5F15","\u5BFC\u822A\u6761","\u4FA7\u8FB9\u680F","\u6B65\u9AA4\u6761","\u6807\u7B7E\u680F/\u5E95\u90E8\u5BFC\u822A","\u4E0B\u62C9\u83DC\u5355","\u9009\u9879\u5361","\u5176\u5B83"],\u6570\u636E\u5F55\u5165:["\u65E5\u5386","\u65F6\u95F4\u9009\u62E9\u5668","\u641C\u7D22\u6846","\u8868\u5355","\u9009\u62E9","\u8F93\u5165\u6846","\u8BC4\u5206","\u6B65\u8FDB\u5668","\u5F00\u5173","\u4E0A\u4F20"],\u6570\u636E\u5C55\u793A:["\u8F6E\u64AD","\u8868\u683C","\u5217\u8868","\u8FDB\u5EA6\u6761","\u6807\u7B7E","\u5185\u5BB9\u5361\u7247","\u5BAB\u683C","\u65F6\u95F4\u8F74","\u5176\u5B83"],\u53CD\u9988:["\u52A8\u4F5C\u9762\u677F","\u901A\u77E5","\u5F39\u7A97","\u62BD\u5C49","\u5F15\u5BFC","\u52A0\u8F7D\u4E2D","\u6ED1\u52A8\u5355\u5143\u683C"],\u5176\u5B83:[]},\u5C0F\u7A0B\u5E8F:{\u5927\u5382\u8D44\u6E90:["Ant Design","TDesign","Arco Design","WeUi","\u5176\u5B83"],\u901A\u7528:["\u6309\u94AE","\u641C\u7D22","\u4E2A\u4EBA\u4E2D\u5FC3","\u652F\u4ED8","\u767B\u5F55","\u5206\u4EAB"],\u5BFC\u822A:["\u62BD\u5C49","\u7D22\u5F15","\u5BFC\u822A\u6761","\u4FA7\u8FB9\u680F","\u6B65\u9AA4\u6761","\u6807\u7B7E\u680F/\u5E95\u90E8\u5BFC\u822A","\u4E0B\u62C9\u83DC\u5355","\u9009\u9879\u5361","\u5176\u5B83"],\u6570\u636E\u5F55\u5165:["\u65E5\u5386","\u65F6\u95F4\u9009\u62E9\u5668","\u641C\u7D22\u6846","\u8868\u5355","\u9009\u62E9","\u8F93\u5165\u6846","\u8BC4\u5206","\u6B65\u8FDB\u5668","\u5F00\u5173","\u4E0A\u4F20"],\u6570\u636E\u5C55\u793A:["\u8F6E\u64AD","\u8868\u683C","\u5217\u8868","\u8FDB\u5EA6\u6761","\u6807\u7B7E","\u5185\u5BB9\u5361\u7247","\u5BAB\u683C","\u65F6\u95F4\u8F74","\u5176\u5B83"],\u53CD\u9988:["\u52A8\u4F5C\u9762\u677F","\u901A\u77E5","\u5F39\u7A97","\u62BD\u5C49","\u5F15\u5BFC","\u52A0\u8F7D\u4E2D","\u6ED1\u52A8\u5355\u5143\u683C"],\u5176\u5B83:[]},Web\u7F51\u7AD9:{\u5B98\u7F51\u5BFC\u822A:[],Banner:[],\u5185\u5BB9\u533A:[],\u7279\u5F81\u533A:[],\u5B9A\u4EF7\u533A:[],\u56E2\u961F\u4ECB\u7ECD:[],\u9875\u811A:[]},\u53EF\u89C6\u5316\u5927\u5C4F:{\u6846\u67B6\u80CC\u666F:[],\u6807\u9898\u6837\u5F0F:[],\u6309\u94AE:[],\u7A97\u53E3\u6846:[],\u5F39\u7A97:[],\u56FE\u8868:[],\u6307\u6807:[],\u5730\u56FE:[],\u4FE1\u606F\u6D41:[]},HMI:{},\u6D3B\u52A8:{},\u5E73\u677F\u7AEF:{},\u667A\u80FD\u7535\u89C6:{},\u624B\u8868:{},\u5E7B\u706F\u7247:{},\u5176\u4ED6:{}},Jh=Object.keys(Mc),eh=e=>{const{platform:t,plabel:n,clabel:a,plabelList:i,clabelList:c,changePlatform:d,changePlabel:p,changeClabel:h}=e,m=(0,l.useCallback)(v=>{d(v),p(""),h("")},[h,p,d]),x=(0,l.useCallback)(v=>{p(v),h("")},[h,p]);return(0,o.jsxs)(Ju,{children:[(0,o.jsx)(Fp,{option:t,placeholder:I18N.dModals.combo_upload.select_platform,optionList:Jh,changeOption:m}),(0,o.jsx)(Fp,{option:n,placeholder:I18N.dModals.combo_upload.select_plabel,optionList:i,changeOption:x}),(0,o.jsx)(Fp,{option:a,placeholder:I18N.dModals.combo_upload.select_clabel,optionList:c,changeOption:h}),(0,o.jsx)($u,{})]})},Rd=(0,l.memo)(eh),th=M.Ay.div.withConfig({displayName:"styles__StyledCoverUploadSection",componentId:"sc-u0tbq0-0"})([".cover-upload-box{display:flex;.cover-upload-action{width:133px;height:100px;background:",";border:1px dashed ",";border-radius:6px;display:flex;flex-direction:column;justify-content:center;align-items:center;cursor:pointer;position:relative;overflow:hidden;&.error{animation:border-blink 1s;animation-iteration-count:3;}&:hover{background-color:",";}&.drag{background-color:",";}p{display:flex;padding:0;margin:0;}.edit-cover{position:absolute;left:0;top:0;width:100%;height:100%;background:",";display:none;opacity:0;flex-direction:column;justify-content:center;align-items:center;transition:opacity 0.2s;.cover-edit-icon{width:24px;height:auto;path{&:nth-child(1){fill:",";}&:nth-child(2){stroke:",";}}}.edit-tip{color:",";margin-top:8px;font-weight:500;font-size:14px;line-height:20px;}}.upload-cover{display:flex;flex-direction:column;justify-content:center;align-items:center;cursor:pointer;.cover-uploader-icon{width:24px;height:auto;path{&:nth-child(1){fill:",";}&:nth-child(2){stroke:",";}}}.upload-tip{margin-top:5px;color:",";font-weight:400;font-size:12px;line-height:24px;}}&.has-cover{border-style:solid;.cover-uploader-icon{display:none;}.upload-tip{display:none;}.edit-cover{display:flex;}.upload-cover{display:none;}&:hover{.edit-cover{opacity:1;}}&.drag{.edit-cover{opacity:1;}}}.cover-uploader{display:none;}}.cover-upload-help{display:flex;flex-direction:column;justify-content:space-between;.template{margin-left:16px;.description{font-weight:400;font-size:12px;line-height:30px;color:",";}.template-box{display:flex;.box{width:93px;height:70px;border-radius:6px;&:not(:last-child){margin-right:14px;}cursor:pointer;position:relative;overflow:hidden;.box-cover{position:absolute;left:0;top:0;width:100%;height:100%;background:",";opacity:0;transition:opacity 0.2s;}&:hover{.box-cover{opacity:1;}}}}}}}.cover-tip{margin-top:10px;display:flex;align-items:center;.exclamation-mark-icon{width:14px;height:auto;}label{margin-left:4px;color:",";font-weight:400;font-size:12px;line-height:17px;}}"],e=>e.theme.color_bg_white,e=>e.theme.color_bg_border_02,e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_bg_mask,e=>e.theme.color_proto,e=>e.theme.color_text_btn,e=>e.theme.color_text_btn,e=>e.theme.color_text_disabled01,e=>e.theme.color_text_btn,e=>e.theme.color_text_L2,e=>e.theme.color_text_L2,e=>e.theme.color_bg_mask,e=>e.theme.color_text_L2),$h="/mb-proto2/images/modal/combo_upload/cover_sample_left.webp",D2="/mb-proto2/images/modal/combo_upload/cover_sample_right.webp",Vp="/proto/experience/mtm34dolox4q5h7e?mode=cover_design",g1="/proto/experience/mtm34dr7t7gvowo0?mode=cover_design",R2=e=>{const{cover:t,onFileInput:n,onCoverSrc:a}=e,[i,c]=l.useState(!1),d=A=>{var k;let{fileInput:R,isDrag:F}=A;const Z=R==null||(k=R.files)==null?void 0:k[0];if(!Z)return;if(F&&!["image/png","image/jpeg","image/jpg"].includes(Z.type)){MB.notice({text:I18N.dModals.combo_upload.cover_type_error,type:"error"}),n({value:""});return}const G=2*1024*1024;if(Z.size>G){MB.notice({text:I18N.dModals.combo_upload.cover_size,type:"error"}),n({value:""});return}n(R);const ee=new FileReader;ee.addEventListener("load",()=>{a(ee.result)}),ee.readAsDataURL(Z)},p=A=>d({fileInput:A.target,isDrag:!1}),h=A=>d({fileInput:{files:A},isDrag:!0}),m=A=>{A.preventDefault(),A.stopPropagation();const k=A.type;k==="dragenter"&&c(!0),k==="dragleave"&&c(!1),k==="dragover"&&!i&&c(!0)},x=A=>{A.preventDefault(),A.stopPropagation();const R=A.dataTransfer.files;i&&(h(R),c(!1))},v=A=>(0,o.jsxs)("svg",{className:A,xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",children:[(0,o.jsx)("path",{fill:"#1684FC",d:"M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10Z"}),(0,o.jsx)("path",{stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M12 8v8M8 12h8"})]});return(0,o.jsxs)(th,{children:[(0,o.jsxs)("div",{className:"cover-upload-box",children:[(0,o.jsxs)("label",{className:C()(t?"has-cover cover-upload-action":"cover-upload-action",i&&"drag"),style:t?{background:"url("+t+") no-repeat center/cover"}:void 0,htmlFor:"cover-uploader",onDrop:x,onDragOver:m,onDragEnter:m,onDragLeave:m,children:[(0,o.jsxs)("div",{className:"edit-cover",children:[v("cover-edit-icon"),(0,o.jsx)("p",{className:"edit-tip",children:I18N.dModals.combo_upload.change_cover})]}),(0,o.jsxs)("div",{className:"upload-cover",children:[v("cover-uploader-icon"),(0,o.jsx)("p",{className:"upload-tip",children:I18N.dModals.combo_upload.upload_cover})]}),(0,o.jsx)("input",{type:"file",className:"cover-uploader",id:"cover-uploader",accept:"image/png, image/jpeg, image/jpg",onChange:p})]}),(0,o.jsx)("div",{className:"cover-upload-help",children:(0,o.jsxs)("div",{className:"template",children:[(0,o.jsx)("div",{className:"description",children:(0,o.jsx)("label",{children:I18N.dModals.combo_upload.upload_cover_desc})}),(0,o.jsxs)("div",{className:"template-box",children:[(0,o.jsx)("div",{className:"box",style:{background:"url("+$h+") no-repeat center/cover"},children:(0,o.jsx)("a",{className:"box-cover",rel:"noopener noreferrer",target:"_blank",href:Vp})}),(0,o.jsx)("div",{className:"box",style:{background:"url("+D2+") no-repeat center/cover"},children:(0,o.jsx)("a",{className:"box-cover",rel:"noopener noreferrer",target:"_blank",href:g1})})]})]})})]}),(0,o.jsx)("div",{className:"cover-tip",children:(0,o.jsx)("label",{children:I18N.dModals.combo_upload.upload_cover_tip})})]})},gd=(0,l.memo)(R2);var B2=s(95767),mc=s.n(B2);const e0=(0,M.Ay)(ci.H).withConfig({displayName:"styles__StyledModal",componentId:"sc-1d376uz-0"})([".modal-content{.content-container{display:flex;justify-content:space-between;.preview-container{flex-basis:260px;.title{font-size:16px;line-height:22px;font-weight:500;color:",";margin-bottom:14px;}.template-box{display:block;position:relative;top:0;width:270px;padding-bottom:12px;border-radius:4px;overflow:hidden;.template-cover{position:relative;height:200px;overflow:hidden;border-radius:6px;border:1px solid ",";.template-cover-image{width:100%;height:auto;}}.template-info{padding-top:12px;padding-left:12px;.template-title{color:",";font-size:14px;line-height:20px;font-weight:600;margin-bottom:7px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}.flex-row{display:flex;flex-direction:row;justify-content:flex-start;align-items:center;}.view-and-favorite{margin-bottom:10px;.view-icon,.used-icon,.liked-icon{path{fill:",";}}.view-icon{width:14px;height:10px;margin-right:3px;}.used-icon{width:auto;height:10px;margin-right:3px;}.liked-icon{width:auto;height:12px;margin-right:3px;transform:translateY(-1px);}.view-count,.used-count,.liked-count{color:",";font-size:12px;font-weight:400;}.view-count,.used-count{margin-right:8px;}}.author-info{.avatar-container{width:20px;height:20px;border-radius:50%;overflow:hidden;.avatar{width:100%;height:100%;}}.author-name{margin-left:8px;font-size:12px;color:",";font-weight:400;}}}}.tip-title{margin-top:30px;color:",";font-weight:500;font-size:14px;line-height:20px;}.tips{color:",";font-size:12px;font-weight:400;line-height:21px;margin-top:8px;}}.crop-container{flex-basis:470px;.title{font-size:16px;line-height:22px;font-weight:500;color:",';margin-bottom:14px;}.crop-area{height:352px;display:flex;justify-content:center;align-items:center;position:relative;background:url("/mb-proto2/images/modal/combo_upload/square_component_background.png") repeat 0 0/100%;.background{background:',";position:absolute;width:100%;height:100%;}}.re-upload{width:110px;height:32px;margin-top:14px;border:1px solid ",";background:",";display:flex;justify-content:center;align-items:center;color:",";font-size:14px;font-weight:500;cursor:pointer;border-radius:6px;&:hover{background:",";}&:active{background-color:",";}}.re-upload-icon{width:14px;height:auto;margin-right:10px;path{fill:",";}}}}}"],e=>e.theme.color_text_L1,e=>e.theme.color_bg_border_01,e=>e.theme.color_text_L2,e=>e.theme.color_text_L3,e=>e.theme.color_text_L2,e=>e.theme.color_text_L2,e=>e.theme.color_text_L1,e=>e.theme.color_text_L2,e=>e.theme.color_text_L1,e=>e.theme.color_bg_mask,e=>e.theme.color_bg_border_02,e=>e.theme.color_bg_white,e=>e.theme.color_text_L1,e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_btn_secondary_active,e=>e.theme.color_text_L1),U2=(0,M.DU)(["#IBOT_MODAL_ROOT .new-model-portal .crop-model.workspace-modal{width:800px;}"]),k0=532/400;class O2 extends l.PureComponent{constructor(){super(...arguments),(0,B.A)(this,"state",{crop:{aspect:k0},canvasDataURL:""}),(0,B.A)(this,"imageRef",null),(0,B.A)(this,"handleImageLoaded",t=>{this.imageRef=t;const{width:n,height:a}=t;return n/a<k0?this.setState({crop:{unit:"%",aspect:k0,width:100}}):this.setState({crop:{unit:"%",aspect:k0,height:100}}),!1}),(0,B.A)(this,"getFileType",()=>{const{fileInput:{files:[{type:t}]}}=this.props;return t.split("/").pop()}),(0,B.A)(this,"onConfirmModel",()=>this.props.onCover(this.state.canvasDataURL)),(0,B.A)(this,"onCropComplete",t=>{if(this.imageRef&&t.width&&t.height){const n=this.getCroppedImg(this.imageRef,t);this.setState({canvasDataURL:n})}}),(0,B.A)(this,"handleCloseCropModal",()=>{const{onCoverSrc:t,onFileInput:n}=this.props;t(""),n({value:""}),this.props.fileInput.value=""})}getCroppedImg(t,n){const a=document.createElement("canvas"),i=t.naturalWidth/t.width,c=t.naturalHeight/t.height;return a.width=n.width*i,a.height=n.height*c,a.getContext("2d").drawImage(t,n.x*i,n.y*c,n.width*i,n.height*c,0,0,n.width*i,n.height*c),a.toDataURL("image/"+this.getFileType())}render(){const{originalSrc:t,fileInput:n}=this.props,{crop:a,canvasDataURL:i}=this.state;return(0,o.jsxs)(e0,{className:"crop-model",isOpen:!!t,title:I18N.dModals.combo_upload.upload_cover,onConfirm:this.onConfirmModel,cancelText:I18N.dModule.cancel,confirmText:I18N.dModule.confirm,onCancel:()=>null,onClose:this.handleCloseCropModal,canCloseOnClickMask:!1,children:[(0,o.jsxs)("div",{className:"content-container",children:[(0,o.jsxs)("div",{className:"preview-container",children:[(0,o.jsx)("h4",{className:"title",children:I18N.dModals.combo_upload.cover_preview}),(0,o.jsxs)("div",{className:"template-box",children:[(0,o.jsx)("div",{className:"template-cover",children:i&&(0,o.jsx)("img",{className:"template-cover-image",src:i})}),(0,o.jsxs)("div",{className:"template-info",children:[(0,o.jsx)("h3",{className:"template-title",children:I18N.dModals.combo_upload.here_is_mkt_title}),(0,o.jsxs)("div",{className:"view-and-favorite flex-row",children:[(0,o.jsx)("svg",{className:"view-icon",xmlns:"http://www.w3.org/2000/svg",width:"14",height:"10",fill:"none",children:(0,o.jsx)("path",{d:"M7 0c4.095 0 7 3.764 7 5 0 1.236-2.804 5-7 5S.011 6.286 0 5c-.011-1.286 2.905-5 7-5zm0 2a3 3 0 100 6 3 3 0 000-6zm0 1a2 2 0 01.59.089A1 1 0 108.912 4.41 2 2 0 117 3z",fill:"#7D8B94",fillRule:"evenodd"})}),(0,o.jsx)("span",{className:"view-count",children:1234}),(0,o.jsx)("svg",{className:"used-icon",xmlns:"http://www.w3.org/2000/svg",width:"12",height:"11",fill:"none",children:(0,o.jsx)("path",{d:"M1 0h10l1 2v8a1 1 0 01-1 1H1a1 1 0 01-1-1V2l1-2zm6.125 7V4H5v3H3.125l2.5 2.5L9 7H7.125zm3.393-5L10 1H2.024l-.72.998L10.519 2z",fill:"#7D8B94",fillRule:"evenodd"})}),(0,o.jsx)("span",{className:"used-count",children:1234}),(0,o.jsx)("svg",{className:"liked-icon",xmlns:"http://www.w3.org/2000/svg",width:"11",height:"12",fill:"none",children:(0,o.jsx)("path",{d:"M11 5.683c0-.698-.419-1.283-.984-1.45a.17.17 0 00-.042-.003H7.088c-.01 0-.017-.057-.015-.067a6.363 6.363 0 00.205-2.662l-.001-.003C7.277.67 6.69 0 5.966 0c-.672 0-1.224.575-1.303 1.317-.266 2.51-1.957 3.26-2.337 3.398h-.007c-.023-.004-.046 0-.07 0H.476c-.263 0-.475.24-.475.539v6.226c0 .3.212.518.475.518h8.176c.047.005.094 0 .14 0 .866 0 1.165-.815 1.165-.815.095-.207.986-5.064.986-5.064.017-.065.03-.133.039-.201l.004-.022v-.002c.009-.069.015-.14.015-.211M2 11H1V6h1v5z",fill:"#7D8B94",fillRule:"evenodd"})}),(0,o.jsx)("span",{className:"liked-count",children:1234}),(0,o.jsx)("span",{className:"liked-count",children:1234})]}),(0,o.jsxs)("div",{className:"author-info flex-row",children:[(0,o.jsx)("div",{className:"avatar-container",children:(0,o.jsx)("img",{src:"/mb-proto2/images/avatar.png",className:"avatar",alt:""})}),(0,o.jsx)("div",{className:"author-name",children:I18N.dModals.combo_upload.fake_author_name})]})]})]}),(0,o.jsx)("p",{className:"tip-title",children:I18N.dModals.combo_upload.cover_regulation}),(0,o.jsx)("p",{className:"tips",dangerouslySetInnerHTML:{__html:I18N.dModals.combo_upload.upload_cover_tip_html}})]}),(0,o.jsxs)("div",{className:"crop-container",children:[(0,o.jsx)("h4",{className:"title",children:I18N.dModals.combo_upload.crop_cover}),(0,o.jsxs)("div",{className:"crop-area",children:[(0,o.jsx)("div",{className:"background"}),(0,o.jsx)(mc(),{className:"cropper",src:t,crop:a,onChange:c=>this.setState({crop:c}),onComplete:this.onCropComplete,onImageLoaded:this.handleImageLoaded,keepSelection:!0,imageStyle:{maxWidth:"100%",maxHeight:"342px"}})]}),typeof n.click=="function"&&(0,o.jsxs)("div",{className:"re-upload",children:[(0,o.jsx)("svg",{className:"re-upload-icon",xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",fill:"none",children:(0,o.jsx)("path",{d:"M2.424 1.703a7 7 0 0110.309 9.315L10.5 7h2.1a5.6 5.6 0 00-9.478-4.04l-.698-1.257zm9.152 10.594A7 7 0 011.267 2.982L3.5 7H1.4a5.6 5.6 0 009.478 4.04l.698 1.257z",fill:"#5B6B73",fillRule:"nonzero"})}),(0,o.jsx)("span",{className:"button-text",onClick:()=>n.click(),children:I18N.dModals.combo_upload.upload_reload})]})]})]}),(0,o.jsx)(U2,{})]})}}const nh=O2;var Bd=s(68789);const ap=(0,M.Ay)(ci.H).withConfig({displayName:"styles__StyledComboUploadModal",componentId:"sc-1lk5hqh-0"})(["height:598px;> .content{height:492px;}.modal-content{display:flex;flex-direction:column;align-items:start;row-gap:20px;height:100%;position:relative;.item{display:flex;justify-content:center;&.paid-config,&.amounts{> span{line-height:22px;}> .content{width:339px;display:flex;align-items:center;.selector{display:flex;align-items:center;width:84px;input{width:14px;height:14px;margin-top:1px;appearance:none;border-radius:50%;border:1px solid ",";transition:0.2s all linear;&:checked{border:4px solid ",";background-color:",";}}label{font-size:14px;font-weight:400;padding-left:10px;color:",";}input:checked + label{color:",";}}}}&.amounts{> .content{flex-wrap:wrap}}> span,> input,> .textarea-wrapper > textarea{color:",";}> input,> .textarea-wrapper > textarea{&::placeholder{color:",";}}> span{width:84px;font-size:14px;font-weight:500;line-height:32px;}> input{padding:8px;width:356px;height:32px;border-radius:6px;border:1px solid ",";&:focus{border:1px solid ",";}}> .textarea-wrapper{position:relative;textarea{position:relative;z-index:1;width:352px;height:64px;padding:8px 0 8px 9px;resize:none;outline:none;background:none;border:none;font-size:14px;line-height:24px;font-weight:400;&::-webkit-scrollbar-track{margin:8px 0;}&:focus + .border{border:1px solid ",";}}.border{position:absolute;top:0;left:0;width:356px;height:64px;border-radius:6px;border:1px solid ",";}}}.tips{background-color:",";color:",";border-radius:6px;width:100%;height:32px;font-size:12px;display:flex;justify-content:center;align-items:center;position:absolute;bottom:-4px;}}footer{padding:0 20px 24px;display:flex;align-items:center;.footer-agreement{display:flex;align-items:center;flex:1;font-size:12px;font-weight:500;> .check > .Check-label{margin-left:8px;}> a{color:",";}}}&.upload-success > .content{display:flex;align-items:center;justify-content:center;.modal-content{align-items:center;justify-content:center;row-gap:0;svg{margin-bottom:22px;}p{font:14px;font-weight:400;line-height:20px;a{color:",";text-decoration:underline;}}}}"],e=>e.theme.color_text_disabled01,e=>e.theme.color_proto,e=>e.theme.color_text_btn,e=>e.theme.color_text_L2,e=>e.theme.color_text_L1,e=>e.theme.color_text_L1,e=>e.theme.color_text_L2,e=>e.theme.color_bg_border_02,e=>e.theme.color_proto,e=>e.theme.color_proto,e=>e.theme.color_bg_border_02,e=>e.theme.color_bg_card,e=>e.theme.color_text_L2,e=>e.theme.color_text_link_normal,e=>e.theme.color_text_link_normal);var y1=s(37253);const t0=async()=>{try{const{keywords:{combo_group:{labels:e}}}=await(0,y1.DE)("/api/community/v1/community/labels"),t={},n={};return e.forEach(a=>{let{plabel:i,clabels:c}=a;const{label_id:d,name:p}=i;t[p]=d,n[p]=c.reduce((h,m)=>{let{label_id:x,name:v}=m;return Object.assign(h,{[v]:x})},{})}),{plabelsMap:t,plabel2clabels:n}}catch(e){console.error(e)}},zp=e=>{let{platform:t,plabel:n,plabelsMap:a,plabel2clabels:i}=e;const c=Object.keys(a),d=Object.keys(Mc[t]),p=c.filter(v=>d.includes(v)),h=Mc[t][n];if(!n||!h)return{availablePlabels:p,availableClabels:[]};const x=Object.keys(i[n]).filter(v=>h.includes(v));return{availablePlabels:p,availableClabels:x}};var oh=s(40093),Ud=s(42459),M0=s(38581);const n0=(e,t)=>{const n=e.get(t);if(n===void 0)return;const a=e.get(n.sup);if(a===void 0)throw new Error("missing sup: "+n.sup+" for: "+n.key);e.set(n.sup,{...a,sub:(0,Ud.Uj)(a.sub,t)}),e.delete(t)},H0=e=>{var t,n,a,i,c,d,p;const h=new Set,m=k=>(0,Jd.iX)(k,R=>(0,M0.w7)(e.get(R).attr,(F,Z)=>h.add(F)),e);m(Za.$k);const x=[...((t=e.get(Za.JC))==null?void 0:t.sub)||[],...((n=e.get(Za.W4))==null?void 0:n.sub)||[],...((a=e.get(Za.fW))==null?void 0:a.sub)||[],...((i=e.get(Za.YZ))==null?void 0:i.sub)||[],...((c=e.get(Za.fu))==null?void 0:c.sub)||[],...((d=e.get(Za.nK))==null?void 0:d.sub)||[],...((p=e.get(Za.EM))==null?void 0:p.sub)||[]];{const k=new Set;let R;do{R=!1;for(const F of x){if(k.has(F)||!h.has(F))continue;k.add(F);const Z=h.size;m(F),Z<h.size&&(R=!0)}}while(R)}for(const k of[...((v=e.get(Jd.Ri))==null?void 0:v.sub)||[],...((A=e.get(Za.Ex))==null?void 0:A.sub)||[]]){var v,A;n0(e,k)}for(const k of x)!h.has(k)&&n0(e,k)},F2=[{price:300,idx:"price1",i18nkey:"amounts_opt_1"},{price:680,idx:"price2",i18nkey:"amounts_opt_2"},{price:990,idx:"price3",i18nkey:"amounts_opt_3"},{price:1280,idx:"price4",i18nkey:"amounts_opt_4"},{price:3980,idx:"price5",i18nkey:"amounts_opt_5"},{price:5980,idx:"price6",i18nkey:"amounts_opt_6"}],Wp=e=>{const{isOpen:t,cgCid:n,projectUpperCid:a,teamCid:i,comboName:c,onClose:d}=e,[p,h]=(0,l.useState)(1),[m,x]=(0,l.useState)({}),[v,A]=(0,l.useState)({}),[k,R]=(0,l.useState)([]),[F,Z]=(0,l.useState)([]),[G,ee]=(0,l.useState)(""),[ce,se]=(0,l.useState)(null),[he,ve]=(0,l.useState)(""),[Te,xe]=(0,l.useState)(c),[Fe,et]=(0,l.useState)(""),[Ke,Qe]=(0,l.useState)(""),[nt,Xe]=(0,l.useState)(""),[lt,Ct]=(0,l.useState)(""),[St,hn]=(0,l.useState)(Bd.W.Everyone),[Cn,Mt]=(0,l.useState)(0),[Et,Co]=(0,l.useState)(!1),Pn=(0,l.useMemo)(()=>St&&St!==Bd.W.Everyone,[St]);(0,l.useEffect)(()=>{(async()=>{const{plabelsMap:Xo,plabel2clabels:Ta}=await t0();x(Xo),A(Ta)})()},[]),(0,l.useEffect)(()=>{if(!Fe)return;const{availablePlabels:No,availableClabels:Xo}=zp({platform:Fe,plabel:Ke,plabelsMap:m,plabel2clabels:v});R(No),Z(Xo)},[Fe,Ke,m,v]);const ro=No=>{hn(No),Pn&&Mt(0)},Io=(0,l.useCallback)(()=>(Fe?!k||k.length===0?!1:Ke?!F||F.length===0?!1:!nt:!0:!0)||!Te||!lt||!he||!St||Pn&&Cn===0||!Et,[Cn,nt,F,he,lt,Et,Pn,Ke,k,Fe,St,Te]),mo=(0,l.useCallback)(async()=>{var No;const Xo=Ke&&m[Ke]?m[Ke]:"",Da=(nt&&(No=v[Ke])!=null&&No[nt]?v[Ke][nt]:"")||Xo,xr=Da?[Da]:[],Wa={title:Te,description:lt,cover:he,platform:f1[Fe],label_ids:xr,policy:St,amount_in_cents:Cn,source_upper_cid:a,project_type:"proto2",category:"combo_group",preview_mode:"only_preview"};if(he&&he.length>512){const Wr=await(await fetch(he)).blob(),{tbToken:hi}=await(await fetch("/flatkiq/tempblob/save",{method:"POST",body:Wr})).json();Wa.cover="tempblob:"+Wr.type+";token,"+hi}const Dr=userSdkStore.__devFlatStore().getFlatTree().fork();{for(const Sr of Dr.get(Za.$k).sub)Sr!==n&&n0(Dr,Sr);Dr.get(n).sup=Za.$k,Dr.get(Za.$k).sub=[n];const Wr=[],hi=[];(0,Jd.yc)(Dr,n,Sr=>{if(Sr.attr.B!==Za.Ni)return Jd.NU;Sr.attr.aF===(0,oh.rK)(!1)?Wr.push(Sr.key):hi.push(Sr.key)});for(const Sr of hi.reverse())n0(Dr,Sr);for(const Sr of Wr)Dr.get(Sr).sup=n;Dr.get(n).sub=Wr,H0(Dr)}await(0,tp.lq)(Dr,i,{prevUpperCid:a,railsExtra:Wa}),h(2),(0,jc.GK)({comboName:c,platform:Fe,plabel:Ke,clabel:nt,isPaid:Pn,amounts:Cn})},[Cn,n,nt,c,he,lt,Pn,Ke,v,m,Fe,St,a,i,Te]),So=(0,l.useCallback)(()=>(0,o.jsxs)("div",{className:"footer-agreement",children:[(0,o.jsx)(Sn.A,{className:"check",isChecked:Et,onChange:()=>Co(!Et),label:I18N.dModals.combo_upload.agreement_1}),(0,o.jsx)("a",{rel:"noopener noreferrer",target:"_blank",href:"/hc/articles/204",children:I18N.dModals.combo_upload.agreement_2})]}),[Et]),ho=()=>{var No;return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"64",height:"64",fill:"none",children:[(0,o.jsx)("path",{fill:"#fff",d:"M46.12 22.68a3 3 0 0 1 0 4.243l-16 16a3 3 0 0 1-4.242 0l-8-8a3 3 0 0 1 4.242-4.243L28 36.56 41.877 22.68a3 3 0 0 1 4.242 0Z"}),(0,o.jsx)("path",{fill:"#39BF50",fillRule:"evenodd",d:"M0 32C0 14.327 14.327 0 32 0c17.673 0 32 14.327 32 32 0 17.673-14.327 32-32 32C14.327 64 0 49.673 0 32Zm46.12-5.077a3 3 0 0 0-4.242-4.243L27.999 36.56l-5.878-5.879a3 3 0 0 0-4.243 4.243l8 8a3 3 0 0 0 4.242 0l16-16Z",clipRule:"evenodd"})]}),(0,o.jsx)("p",{children:I18N.dModals.combo_upload.upload_success_1}),(0,o.jsxs)("p",{children:[(0,o.jsx)("a",{rel:"noopener noreferrer",target:"_blank",href:"/com24/author/"+((No=MB)==null||(No=No.user)==null?void 0:No.cid),children:I18N.dModals.combo_upload.upload_success_2}),I18N.dModals.combo_upload.upload_success_3]})]})};return(0,o.jsxs)(o.Fragment,{children:[G&&ce&&(0,o.jsx)(nh,{originalSrc:G,fileInput:ce,onCover:ve,onCoverSrc:ee,onFileInput:se}),(0,o.jsx)(ap,{isOpen:t,className:C()("combo-upload-modal",{"upload-success":p===2}),canCloseOnClickMask:!1,footer:p===2&&null,title:I18N.dModals.combo_upload.publish_to_mkt,confirmText:I18N.dModals.combo_upload.confirm,confirmBtnProps:{disabled:Io(),shouldCloseOnAction:!1},canClose:!0,centered:!0,onClose:d,onConfirm:mo,renderFooterContent:So,children:p===2?ho():(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("div",{className:"item title",children:[(0,o.jsx)("span",{className:"name",children:I18N.dModals.combo_upload.combo_name}),(0,o.jsx)("input",{type:"text",placeholder:I18N.dModals.combo_upload.input_combo_name,value:Te,onChange:No=>xe(No.target.value)})]}),(0,o.jsxs)("div",{className:"item category",children:[(0,o.jsx)("span",{className:"name",children:I18N.dModals.combo_upload.combo_categories}),(0,o.jsx)(Rd,{platform:Fe,plabel:Ke,clabel:nt,plabelList:k,clabelList:F,changePlatform:et,changePlabel:Qe,changeClabel:Xe})]}),(0,o.jsxs)("div",{className:"item description",children:[(0,o.jsx)("span",{className:"name",children:I18N.dModals.combo_upload.combo_desc}),(0,o.jsxs)("div",{className:"textarea-wrapper",children:[(0,o.jsx)("textarea",{placeholder:I18N.dModals.combo_upload.input_combo_desc,onChange:No=>Ct(No.target.value)}),(0,o.jsx)("div",{className:"border"})]})]}),(0,o.jsxs)("div",{className:"item cover",children:[(0,o.jsx)("span",{className:"name",children:I18N.dModals.combo_upload.combo_cover}),(0,o.jsx)(gd,{cover:he,onFileInput:se,onCoverSrc:ee})]}),(0,o.jsxs)("div",{className:"item paid-config",children:[(0,o.jsx)("span",{className:"name",children:I18N.dModals.combo_upload.paid_mode}),(0,o.jsxs)("div",{className:"content",children:[(0,o.jsxs)("div",{className:"selector",children:[(0,o.jsx)("input",{type:"radio",id:"free",name:"paid-config",checked:St===Bd.W.Everyone,onClick:()=>ro(Bd.W.Everyone)}),(0,o.jsx)("label",{htmlFor:"free",children:I18N.Common.free})]}),(0,o.jsxs)("div",{className:"selector",children:[(0,o.jsx)("input",{type:"radio",id:"paid",name:"paid-config",checked:St===Bd.W.MktMemberFree,onClick:()=>ro(Bd.W.MktMemberFree)}),(0,o.jsx)("label",{htmlFor:"paid",children:I18N.dModals.combo_upload.charge})]})]})]}),Pn&&(0,o.jsxs)("div",{className:"item amounts",children:[(0,o.jsx)("span",{className:"name",children:I18N.dModals.combo_upload.amounts_opts}),(0,o.jsx)("div",{className:"content",children:F2.map(No=>(0,o.jsxs)("div",{className:"selector",children:[(0,o.jsx)("input",{type:"radio",id:No.idx,name:"amounts",value:No.price,onChange:()=>Mt(No.price)}),(0,o.jsx)("label",{htmlFor:No.idx,children:I18N.dModals.combo_upload[No.i18nkey]})]}))})]}),(0,o.jsx)("div",{className:"tips",children:"\u6E29\u99A8\u63D0\u793A\uFF1A\u8BE5\u6587\u4EF6\u5939\u4E0B\u7684\u6240\u6709\u5B50\u6587\u4EF6\u5939\u5185\u7684\u7EC4\u4EF6\u4E5F\u4F1A\u540C\u6B65\u4E0A\u4F20\u5230\u7D20\u6750\u5E7F\u573A"})]})})]})},rp=(0,l.memo)(Wp);var Ls=s(39e3),x1=s(25884),Rc=s(13235),Zc=s(68033);const ah=(0,M.Ay)(Oe.Ay).withConfig({displayName:"styles__StyledContextMenu",componentId:"sc-gazcws-0"})(["",";&.chartTableMenu{ul{width:150px;min-width:150px;border-radius:4px;.desc{margin:6px 16px;opacity:0.4;}}}"],za.ZJ);class o0 extends l.PureComponent{render(){const{isCanNotDelCol:t,isCanNotDelRow:n,isCanAddLeftCol:a,isCanAddRightCol:i,isCanAddBottomRow:c,position:d,currentSelect:{row:p},isBoxPlotType:h,handleClose:m,handleInsertTopRow:x,handleInsertBottomRow:v,handleDeleteRow:A,handleInsertLeftCol:k,handleInsertRightCol:R,handleDeleteCol:F}=this.props;return(0,o.jsxs)(ah,{position:d,onClose:m,className:C()("chartTableMenu"),children:[(0,o.jsx)(Oe.Dr,{disabled:c?h?!1:!p:!0,text:I18N.ContextMenu.table_insert_top_row.replace(" %input ",""),onClick:x}),(0,o.jsx)(Oe.Dr,{disabled:!c,text:I18N.ContextMenu.table_insert_bottom_row.replace(" %input ",""),onClick:v}),(0,o.jsx)(Oe.Dr,{disabled:n,text:I18N.ContextMenu.table_delete_row,onClick:A}),(0,o.jsx)(_t.cG,{}),(0,o.jsx)(Oe.Dr,{disabled:!a,text:I18N.ContextMenu.table_insert_left_column.replace(" %input ",""),onClick:k}),(0,o.jsx)(Oe.Dr,{disabled:!i,text:I18N.ContextMenu.table_insert_right_column.replace(" %input ",""),onClick:R}),(0,o.jsx)(Oe.Dr,{disabled:t,text:I18N.ContextMenu.table_delete_columns,onClick:F}),(0,o.jsx)(_t.cG,{}),(0,o.jsx)("div",{className:"desc",children:I18N.SettingPanel.chartInfo.editable.menu.desc})]})}}class rh extends l.PureComponent{constructor(){super(...arguments),(0,B.A)(this,"handleVerify",(t,n)=>(""+t).replace("\u3002",".").replace(n?/[^\d.]/g:/[^\d\-.]/g,"").replace(n?"":/(\d)-+/g,n?"":"$1").replace(/\.{2,}/g,".").replace(/^\./g,"").replace(".","$#$").replace(/\./g,"").replace("$#$",".").substring(0,16)),(0,B.A)(this,"handleChange",t=>{const{isPieType:n,cell:{cellType:a}}=this.props;let c=""+t.target.value;a==="number"&&(c=this.handleVerify(c,n)),this.props.onChange(c)})}componentDidMount(){this._input.focus(),this._input.setSelectionRange(0,(""+this.props.cell.value).length)}render(){const{value:t,onKeyDown:n,onChangeHasEditingSaved:a}=this.props;return(0,o.jsx)("textarea",{ref:i=>{this._input=i},type:"text",className:"data-editor",value:t,onChange:this.handleChange,onInput:()=>a(!1),onKeyDown:n})}}var jl=s(77698),Ec=s(4648),yd=s(56202),V2=s(31838),cr=s(18390),v1=s(87440);const ip=[cr.N.pie_chart,cr.N.ring_chart,cr.N.nightingale_chart],z2=[cr.N.pie_chart,cr.N.ring_chart,cr.N.nightingale_chart,cr.N.funnel_chart,cr.N.liquid_fill_gauge_chart,cr.N.scatter_chart,cr.N.bubble_chart,cr.N.word_cloud_chart,cr.N.sankey_chart],W2=[cr.N.pie_chart,cr.N.ring_chart,cr.N.nightingale_chart,cr.N.funnel_chart,cr.N.liquid_fill_gauge_chart,cr.N.scatter_chart,cr.N.bubble_chart,cr.N.word_cloud_chart,cr.N.sankey_chart],Hp=[cr.N.waterfall_chart,cr.N.map_chart],ih=[cr.N.waterfall_chart,cr.N.map_chart],sp=[cr.N.scatter_chart,cr.N.bubble_chart,cr.N.sankey_chart],H2=[cr.N.sunburst_chart,cr.N.sankey_chart],E0=[cr.N.waterfall_chart,cr.N.sunburst_chart,cr.N.sankey_chart],fc={all:[cr.N.bar_chart,cr.N.horizontal_bar_chart,cr.N.line_chart,cr.N.line_area_chart,cr.N.mixed_bar_line_chart,cr.N.pie_chart,cr.N.ring_chart,cr.N.radar_chart,cr.N.nightingale_chart,cr.N.funnel_chart,cr.N.liquid_fill_gauge_chart,cr.N.map_chart,cr.N.radial_polar_chart],name:[cr.N.scatter_chart,cr.N.bubble_chart,cr.N.boxplot_chart],data:[cr.N.waterfall_chart,cr.N.sunburst_chart,cr.N.sankey_chart]},Od={all:[cr.N.bar_chart,cr.N.horizontal_bar_chart,cr.N.line_chart,cr.N.line_area_chart,cr.N.mixed_bar_line_chart,cr.N.pie_chart,cr.N.ring_chart,cr.N.radar_chart,cr.N.nightingale_chart,cr.N.waterfall_chart,cr.N.funnel_chart,cr.N.liquid_fill_gauge_chart,cr.N.map_chart,cr.N.scatter_chart,cr.N.bubble_chart,cr.N.radial_polar_chart,cr.N.sunburst_chart,cr.N.word_cloud_chart,cr.N.sankey_chart],data:[cr.N.boxplot_chart]},sh=e=>{let{type:t,col:n,data:a}=e;return z2.includes(t)?!1:t===cr.N.waterfall_chart?!0:t===cr.N.sunburst_chart?a[1].length<6:t===cr.N.boxplot_chart?n:n-1},lh=e=>{let{type:t,data:n}=e;return W2.includes(t)?!1:t===cr.N.sunburst_chart?n[1].length<6:!0},Gp=(e,t,n)=>W2.includes(e)?!1:e===cr.N.sunburst_chart?t!==n[1].length-1&&n[1].length<6:!0,ch=e=>{let{type:t,row:n,data:a}=e;return t===cr.N.boxplot_chart?a.length===1:a.length===2||!n||t==="mixed_bar_line_chart"&&a.length===3||ih.includes(t)},dh=e=>{var t;let{type:n,col:a,data:i}=e;return n===cr.N.waterfall_chart?i[1].length===1:sp.includes(n)?!0:n===cr.N.sunburst_chart?i[1].length===2||a===i[1].length-1:n===cr.N.boxplot_chart?((t=i[0])==null?void 0:t.length)===2||!a:i[1].length===3||!(a-1)},ph=e=>[cr.N.scatter_chart,cr.N.bubble_chart,cr.N.sunburst_chart,cr.N.boxplot_chart,cr.N.sankey_chart].includes(e);var yl=s(53940),Ic=s(18654);const uh=M.Ay.div.withConfig({displayName:"styles__StyledChartSettings",componentId:"sc-1xuls1j-0"})(["display:flex;flex-direction:column;height:100%;background-color:",";box-shadow:0px -2px 8px 0px rgba(39,54,78,0.06);header{position:relative;height:32px;width:100%;display:flex;align-items:center;padding:0 20px;background:",";box-shadow:0 1px 0 ",",0 -1px 0 ",";cursor:pointer;.title{color:",";font-size:12px;font-weight:500;}svg.icon{position:absolute;left:50%;path{fill:",";}}}"],e=>e.theme.color_bg_white,e=>e.theme.color_bg_canvas,e=>e.theme.color_btn_secondary_active,e=>e.theme.color_btn_secondary_active,e=>e.theme.color_text_L2,e=>e.theme.color_text_L2),em=M.Ay.div.withConfig({displayName:"styles__StyledTableSetting",componentId:"sc-1xuls1j-1"})(["text-align:center;height:100%;max-width:100%;width:fit-content;margin:0 auto;.tableWrapper{display:flex;flex-direction:column;width:100%;height:100%;.actionData{cursor:pointer;border:1px solid ",";display:flex;align-items:center;justify-content:center;transition:all ease-in-out 0.1s;pointer-events:none;&.can-add-on-scroll{pointer-events:auto;}&:not(:active):hover{background:",";}&:active{background:",";}svg.plus{width:7px;height:7px;path{fill:",";}}}.tableContainer{display:flex;max-width:100%;max-height:100%;.data-grid-container{tr:last-child{td{border-bottom-color:transparent;&.yAxis{border-bottom-color:",";}&.selected{border-bottom-color:rgba(22,132,252);}}}}&.has-add-bottom-row{max-height:calc(100% - 20px);.table-data-sheet{.scroll-container{border-bottom:0;}}}.addRightCol{width:20px;height:auto;&.hide-border-bottom{border-bottom:0;}}.table-data-sheet{max-width:100%;max-height:100%;position:relative;.scroll-container{max-width:100%;max-height:100%;overflow:auto;scrollbar-width:none;border:1px solid ",";}.bar-vertical{z-index:1;.thumb-vertical{padding:2px 2px 6px 2px;}}.bar-horizontal{z-index:1;.thumb-horizontal{padding:2px 6px 2px 2px;}}&.has-add-right-col{max-width:calc(100% - 20px);.scroll-container{border-right:0;}}}}.addBottomRaw{width:100%;height:20px;&.all{width:100%;margin-left:0;}}}.data-grid-container{height:100%;width:100%;table.data-grid{tbody{tr{position:relative;td.cell{text-align:center;cursor:pointer;border:1px solid ",";width:80px;height:32px;color:",";overflow:hidden;text-overflow:ellipsis;&:not(.nodata){span.value-viewer{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:4px;width:80px;display:block;height:32px;line-height:24px;}}&.xAxis,&.yAxis{background-color:",";font-weight:500;textarea.data-editor{font-weight:500;}}&.yAxis{}&.nodata{cursor:auto;background-color:",";span.value-viewer{width:100%;}&.selected{border:1px solid ",";}}&.empty{background:transparent;border:none;width:0;}&.nodisplay{background:transparent;border:none;cursor:auto;display:block;width:10px;position:absolute;left:0;&.selected{border:none;}}&.disabled{color:",';}&.colorComponent{width:10px;display:block;border:none;height:32px;position:absolute;[type="color-btn"]{.thumbnail-wrapper{width:10px;height:32px;border:1px solid ',";border-radius:0;margin:0;.thumbnail{border-radius:0;border:none;}&:before{border:none;}}}}&.editing,&.selected{border:1px double rgba(22,132,252);box-shadow:none;div[type=color-btn]{border:none;.thumbnail-wrapper{height:30px;}}textarea.data-editor{padding:4px;height:32px;width:100%;min-width:80px;border:none;line-height:24px;text-align:center;color:",";resize:none;outline:none;background-color:inherit;white-space:nowrap;overflow:hidden;&::-webkit-outer-spin-button,&::-webkit-inner-spin-button{-webkit-appearance:none !important;margin:0;}}}&.updated{&:not(.xAxis):not(.yAxis){background-color:",";}&.xAxis,&.yAxis{background-color:",";}}&:first-child{border-left-color:transparent;&.xAxis,&.nodata{border-left-color:",";}&.selected{border-left-color:rgba(22,132,252);&.nodata{border-left-color:",";}}}&:nth-child(2){&.nodata,&.yAxis{border-left-color:",";&.selected{border-left-color:rgba(22,132,252);&.nodata{border-left-color:",";}}}}&:last-child{border-right-color:transparent;&.xAxis,&.sunburst{border-right-color:",";}&.selected{border-right-color:rgba(22,132,252);}}}&:first-child{td{border-top-color:transparent;&.xAxis,&.nodata{border-top-color:",";}&.selected{border-top-color:rgba(22,132,252);&.nodata{border-top-color:",";}}}}}}}}"],e=>e.theme.color_bg_border_02,e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_btn_secondary_active,e=>e.theme.color_text_L2,e=>e.theme.color_background_card,e=>e.theme.color_bg_border_02,e=>e.theme.color_bg_border_02,e=>e.theme.color_text_L1,e=>e.theme.color_background_card,e=>e.theme.color_background_card,e=>e.theme.color_bg_border_02,e=>e.theme.color_text_disabled01,e=>e.theme.color_bg_border_02,e=>e.theme.color_text_L1,e=>e.theme.color_bg_white,e=>e.theme.color_background_card,e=>e.theme.color_background_card,e=>e.theme.color_background_card,e=>e.theme.color_background_card,e=>e.theme.color_background_card,e=>e.theme.color_background_card,e=>e.theme.color_background_card,e=>e.theme.color_background_card),tm=M.Ay.div.withConfig({displayName:"styles__StyledScrollContainer",componentId:"sc-1xuls1j-2"})(["width:100%;height:100%;overflow:auto;scrollbar-width:none;&::-webkit-scrollbar{display:none;}border:1px solid ",";"],e=>e.theme.color_bg_line);class hh extends l.PureComponent{constructor(){super(...arguments),(0,B.A)(this,"renderColorBtn",t=>{let{index:n,isInit:a=!1}=t;const{dispatch:i,chartData:{series:c},theme:d}=this.props,p="chart_series_"+n,h=a&&c[n].color?c[n].color:(0,Rc.zw)(Zc.B5[d][n%Zc.B5.length]);return(0,o.jsx)(Ec.R_,{canOpenLib:!1,attr:p,color:h,onChange:(m,x)=>{i({type:"entry:set:chart:series:color:attr",payload:{attr:x,color:m}})},toolTips:I18N.SettingPanel.chartInfo.changeColor,direction:"left"})}),(0,B.A)(this,"renderMapChartColorBtn",t=>{let{index:n,isInit:a=!1}=t;const{dispatch:i,theme:c,cid:d}=this.props;if(!(c!==0))return this.renderColorBtn({index:n,isInit:a});const{mapSolidColor:h}=sdkStore.getHotItem(d).hotAttr.chartConfig,m="chart_series_"+n;return(0,o.jsx)(Ec.R_,{canOpenLib:!1,attr:m,color:h,onChange:x=>{i({type:"entry:set:chart:mapSolidColor",payload:{color:x}})},toolTips:I18N.SettingPanel.chartInfo.changeColor,direction:"left"})}),(0,B.A)(this,"updateSeriesData",t=>{const{type:n,category:a}=this.props,i=ip.includes(n),c=H2.includes(n),d=fc.data.includes(n),p=fc.name.includes(n),h=n===cr.N.sunburst_chart;return t.map((m,x)=>{const v=i?m.data.slice(0,1):m.data,A=(!a||a==="normal")&&x&&n!==cr.N.radar_chart,k=v.map((F,Z)=>({value:F,className:C()({disabled:A},{sunburst:Z===v.length-1&&h}),cellType:c&&Z!==v.length-1?"string":"number",index:Z})),R=[{value:m.name,className:"yAxis "+(A&&"disabled"),cellType:"string",canNotData:!0},...k];return d?k:p?R:[{component:this.renderColorBtn({index:x,isInit:!0}),readOnly:!0,className:"colorComponent",forceComponent:!0},...R]}).filter(m=>!!(m!=null&&m.length))}),(0,B.A)(this,"updateMapChartSeriesData",t=>{const{cid:n}=this.props,{mapAdCode:a}=sdkStore.getHotItem(n).hotAttr.chartConfig;return V2.JD.get(String(a)).map((c,d)=>[{component:this.renderMapChartColorBtn({index:d,isInit:!0}),readOnly:!0,className:"colorComponent",forceComponent:!0},{value:c,readOnly:!0,className:"yAxis"},...t[d].data.map(p=>({value:p,cellType:"number"}))])}),(0,B.A)(this,"updateXAxis",t=>t.map(n=>({value:n,className:"xAxis",cellType:"string"}))),(0,B.A)(this,"initData",()=>{const{chartData:{xAxis:t,series:n},type:a}=this.props,i=ip.includes(a),c=a===cr.N.map_chart,d=a===cr.N.word_cloud_chart,p=a===cr.N.boxplot_chart,h=this.updateXAxis(t),m=c?this.updateMapChartSeriesData(n):this.updateSeriesData(n),x=i?h.slice(0,1):h,v=i?m.map(F=>F.slice(0,3)):m,A=fc.data.includes(a),k=fc.name.includes(a),R=A?x:k||d?[{value:"",readOnly:!0,className:"nodata "+(d&&"empty")},...x]:[{value:"",readOnly:!0,className:"nodisplay"},{value:"",readOnly:!0,className:"nodata"},...x];return p?v:[[...R],...v]}),(0,B.A)(this,"state",{data:this.initData(),isShowContextMenu:!1,position:{top:0,left:0},currentSelect:{row:0,col:0},canAddRightColOnScroll:!0,canAddBottomRowOnScroll:!0}),(0,B.A)(this,"onContextMenu",(t,n,a,i)=>{n.readOnly||this.setState({isShowContextMenu:!0,position:{left:t.clientX,top:t.clientY},currentSelect:{row:a,col:i}})}),(0,B.A)(this,"onCellsChanged",async t=>{const{data:n}=this.state,{chartData:{xAxis:a,series:i},onChangeHasEditingSaved:c,type:d}=this.props,p=JSON.parse(JSON.stringify(i)),h=JSON.parse(JSON.stringify(a)),m=d===cr.N.word_cloud_chart,x=fc.data.includes(d),v=fc.name.includes(d),A=Od.data.includes(d);let k=!1;await t.forEach(R=>{let{row:F,col:Z,value:G}=R;const ee=G,ce=x?Z:v||m?Z-1:Z-2,se=v?Z:Z-1,he=A?F:F-1,ve=x?Z:v?Z-1:Z-2;if(!F&&!A)h[ce]=ee;else if(!se&&!x)p[he].name!==ee&&(k=!0),p[he].name=ee;else{const Te=ee||"";p[he].data[ve]!==Te&&(k=!0),p[he].data[ve]=Te}n[F][Z]={...n[F][Z],value:ee}}),sdkStore.combineMergeMark("echart-table-cell-change"),this.handleChangeXAxis(h),this.handleChangeSeries(p),m&&k&&this.handleRandomRotation(p),sdkStore.combineMerge("echart-table-cell-change"),this.setState({data:n}),c(!0)}),(0,B.A)(this,"handleRandomRotation",t=>{const n=t.map(a=>({...a,rotation:(0,v1.s)()}));this.handleChangeSeries(n)}),(0,B.A)(this,"handleChange",(t,n)=>{const{dispatch:a}=this.props;a({type:"entry:set:chart:chartData:attr",payload:{attr:n,value:t}})}),(0,B.A)(this,"handleChangeXAxis",async t=>{const{handleChange:n}=this;await n(t,"xAxis")}),(0,B.A)(this,"handleChangeSeries",async t=>{const{handleChange:n}=this;await n(t,"series")}),(0,B.A)(this,"getEmptyRow",t=>{const{chartData:{xAxis:n},type:a}=this.props,i=fc.name.includes(a),c=a===cr.N.word_cloud_chart,{min:d,max:p}=this.getMinMaxValueFromChartData(),h=(c?n.slice(1,2):n).map(()=>({value:this.getRandomValue(d,p,a)})),m=[{value:t===1?""+I18N.SettingPanel.chartInfo.editable.data:ENV.IS_MO?I18N.SettingPanel.chartInfo.editable.data+" "+t:""+I18N.SettingPanel.chartInfo.editable.data+t,className:"yAxis"},...h];return i?m:[{component:this.renderColorBtn({index:t}),readOnly:!0,className:"colorComponent",forceComponent:!0},...m]}),(0,B.A)(this,"getMinMaxValueFromChartData",()=>{const{chartData:{series:t},type:n}=this.props,a=H2.includes(n),i=t.map(p=>{let{data:h}=p;return(a?h.slice(h.length-1):h).map(x=>Math.round(Number(x)))}).flat(1/0),c=Math.min(...i),d=Math.max(...i);return{min:c,max:d}}),(0,B.A)(this,"getRandomValue",(t,n,a)=>{if(a===cr.N.liquid_fill_gauge_chart){const i=Math.min(t,1),c=Math.min(n,1);return(Math.random()*(c-i)+i).toFixed(1)}return Math.round(Math.random()*(n-t))+t}),(0,B.A)(this,"onInsertRow",async t=>{var n;const{chartData:{series:a},type:i}=this.props,{currentSelect:{row:c},data:d}=this.state,p=fc.name.includes(i),h=i===cr.N.boxplot_chart,m=i===cr.N.word_cloud_chart,x=t==="top"?c:c+1,v=t==="top"?c:c+1,A=this.getEmptyRow(v);d.splice(x,0,A);const R=ip.includes(i)?d.map(ce=>ce.slice(0,3)):d;this.setState({data:R});const F=JSON.parse(JSON.stringify(a)),Z=m?{rotation:(0,v1.s)()}:{},G=h?v:v-1,ee=h?{color:(n=a[0])==null?void 0:n.color}:{};F.splice(G,0,{data:A.slice(p?1:2).map(ce=>ce.value),name:A[p?0:1].value,type:a[a.length-1].type,...ee,...Z}),await this.handleChangeSeries(F)}),(0,B.A)(this,"onDeleteRow",async()=>{const{chartData:t,type:n}=this.props,{currentSelect:{row:a},data:i}=this.state,{series:c}=t,d=JSON.parse(JSON.stringify(c)),p=Od.data.includes(n);n===cr.N.mixed_bar_line_chart&&c.length===2||i.length<=(p?1:2)||(i.splice(a,1),this.setState({data:i}),d.splice(p?a:a-1,1),await this.handleChangeSeries(d))}),(0,B.A)(this,"onInsertCol",async t=>{const{chartData:{series:n,xAxis:a},type:i}=this.props,c=fc.data.includes(i),d=fc.name.includes(i),p=Od.data.includes(i),h=JSON.parse(JSON.stringify(n)),m=[...a],{currentSelect:{col:x},data:v}=this.state,{min:A,max:k}=this.getMinMaxValueFromChartData(),R=t==="left"?x:x+1,F=c?R:d?R-1:R-2,Z=F?ENV.IS_MO?I18N.SettingPanel.chartInfo.editable.value+" "+F:""+I18N.SettingPanel.chartInfo.editable.value+F:""+I18N.SettingPanel.chartInfo.editable.value;v.forEach((G,ee)=>{!ee&&!p?G.splice(R,0,{value:Z,className:"xAxis",cellType:"string"}):G!=null&&G.length&&G.splice(R,0,{value:this.getRandomValue(A,k,i),cellType:"number"})}),this.setState({data:v}),m.splice(F,0,Z),await this.handleChangeXAxis(m),h.forEach((G,ee)=>{var ce;if((ce=G.data)!=null&&ce.length){const se=p?ee%(v.length-1):ee%(v.length-1)+1;G.data.splice(F,0,v[se][R].value)}}),await this.handleChangeSeries(h)}),(0,B.A)(this,"onDeleteCol",async()=>{const{chartData:{series:t,xAxis:n},type:a}=this.props,i=fc.data.includes(a),c=fc.name.includes(a),d=Od.data.includes(a),p=JSON.parse(JSON.stringify(t)),h=[...n],{currentSelect:{col:m},data:x}=this.state,v=i?1:c?2:3;if(x[d?0:1].length<=v)return;x.map(R=>R.splice(m,1)),this.setState({data:x});const k=i?m:c?m-1:m-2;h.splice(k,1),await this.handleChangeXAxis(h),p.map(R=>R.data.splice(k,1)),await this.handleChangeSeries(p)}),(0,B.A)(this,"onCloseMenu",()=>this.setState({isShowContextMenu:!1})),(0,B.A)(this,"onClickRightCol",async()=>{const{chartData:{xAxis:t},type:n}=this.props,a=fc.data.includes(n),i=fc.name.includes(n),c=n===cr.N.sunburst_chart,d=t.length,p=a?c?d-2:d-1:i?d:d+1;await this.setState({currentSelect:{row:1,col:p}}),await this.onInsertCol("right"),this.handleScrollRight()}),(0,B.A)(this,"onClickBottomRow",async()=>{const{chartData:{series:t}}=this.props;await this.setState({currentSelect:{row:t.length,col:2}}),await this.onInsertRow("bottom"),this.handleScrollBottom()}),(0,B.A)(this,"handleScrollBottom",()=>{const t=document.querySelector(".table-data-sheet .scroll-container");if(!t)return;const n=t.offsetHeight,a=t.scrollHeight;a!==n&&(0,Rs.VG)(t,a-n,200)}),(0,B.A)(this,"handleScrollRight",()=>{const t=document.querySelector(".table-data-sheet .scroll-container");if(!t)return;const n=t.offsetWidth,a=t.scrollWidth;a!==n&&(0,Rs.VG)(t,a-n,200,"left")}),(0,B.A)(this,"customParsePaste",t=>{const{type:n}=this.props,{data:a,currentSelect:{row:i,col:c}}=this.state,d=fc.data.includes(n),p=fc.name.includes(n);let h=[[]];t.includes(",")&&!t.includes(" ")?h=t.split("\r\n").map(v=>v.split(",")):h=(0,ko.yh)(t,(0,yd.cX)(),!1);const m=(v,A,k)=>{var R;const F=v.trim(),Z=((R=a[A])==null||(R=R[k])==null?void 0:R.value)||"";return isNaN(Number(F))?Z:F},x=v=>v.replace(/\n/g,"");return h.map((v,A)=>{const k=i+A;return v.map((R,F)=>{const Z=c+F;return p?n===cr.N.boxplot_chart?Z!==0?m(R,k,Z):x(R):k!==0&&Z!==0?m(R,k,Z):x(R):d?n===cr.N.waterfall_chart?k!==0?m(R,k,Z):x(R):Z===a[1].length-1&&k!==0?m(R,k,Z):x(R):k!==0&&Z!==1?m(R,k,Z):x(R)})})}),(0,B.A)(this,"handleCopy",t=>{let{event:n,dataRenderer:a,valueRenderer:i,data:c,start:d,end:p,range:h}=t;const m=h(d.i,p.i).map(x=>h(d.j,p.j).map(v=>{const A=c[x][v],k=a?a(A,x,v):null;return k===""||k===null||typeof k>"u"?i(A,x,v):k}).join(" ")).join("\r\n");window.clipboardData&&window.clipboardData.setData?window.clipboardData.setData("Text",m):n.clipboardData.setData("text/plain",m)}),(0,B.A)(this,"onSelect",t=>{let{start:n,end:a}=t;n.i===a.i&&n.j===a.j&&this.setState({currentSelect:{row:n.i,col:n.j}})})}componentDidMount(){const t=this.initData();this.setState({data:t})}componentDidUpdate(t){if(t.category!==this.props.category||t.chartData!==this.props.chartData||t.type!==this.props.type){const{chartData:{series:n},type:a}=this.props,i=a===cr.N.map_chart,c=a===cr.N.boxplot_chart,d=i?this.updateMapChartSeriesData(n):this.updateSeriesData(n),p=c?d:[this.state.data[0],...d];this.setState({data:p})}}render(){const{isShowContextMenu:t,position:n,currentSelect:a,data:i,canAddRightColOnScroll:c,canAddBottomRowOnScroll:d}=this.state,{type:p,chartData:h,onChangeHasEditingSaved:m,themeConfig:x}=this.props,{row:v,col:A}=a,k=ip.includes(p),R=p===cr.N.boxplot_chart,F=sh({type:p,col:A,data:i}),Z=lh({type:p,data:i}),G=Gp(p,A,i),ee=!Hp.includes(p),ce=ch({type:p,row:v,data:i}),se=dh({type:p,col:A,data:i});return(0,o.jsxs)(em,{children:[(0,o.jsxs)("div",{className:"tableWrapper",children:[(0,o.jsxs)("div",{className:C()("tableContainer",{"has-add-bottom-row":ee}),children:[(0,o.jsx)(G2,{className:C()({"has-add-right-col":Z}),verticalDragCallback:he=>this.setState({canAddRightColOnScroll:!he}),horizontalCallback:he=>this.setState({canAddBottomRowOnScroll:!he}),children:(0,o.jsx)(x1.Ay,{data:i,onCellsChanged:this.onCellsChanged,valueRenderer:he=>he==null?void 0:he.value,attributesRenderer:he=>{var ve;return p===cr.N.sunburst_chart&&he.index===((ve=i[0])==null?void 0:ve.length)-1?{style:{backgroundColor:x===yl.Sx.LIGHT?Ic.af.color_background_card.value:Ic.qY.color_background_card.value}}:{}},onContextMenu:this.onContextMenu,parsePaste:this.customParsePaste,onSelect:this.onSelect,handleCopy:this.handleCopy,dataEditor:he=>(0,o.jsx)(rh,{...he,isPieType:k,chartData:h,onChangeHasEditingSaved:m})})}),Z&&(0,o.jsx)("div",{className:C()("actionData","addRightCol",{"hide-border-bottom":ee},{"can-add-on-scroll":c}),onClick:this.onClickRightCol,children:(0,o.jsx)(xt.C,{className:"plus",name:"design/chart/edit/plus"})})]}),ee&&(0,o.jsx)("div",{className:C()("actionData","addBottomRaw",{all:ph(p)},{"can-add-on-scroll":d}),onClick:this.onClickBottomRow,children:(0,o.jsx)(xt.C,{className:"plus",name:"design/chart/edit/plus"})})]}),t&&(0,o.jsx)(o0,{position:n,isBoxPlotType:R,isCanAddLeftCol:F,isCanAddRightCol:G,isCanNotDelCol:se,isCanNotDelRow:ce,isCanAddBottomRow:ee,handleClose:this.onCloseMenu,handleCopy:this.onCopy,handleInsertTopRow:()=>this.onInsertRow("top"),handleInsertBottomRow:()=>this.onInsertRow("bottom"),handleDeleteRow:this.onDeleteRow,handleInsertLeftCol:()=>this.onInsertCol("left"),handleInsertRightCol:()=>this.onInsertCol("right"),handleDeleteCol:this.onDeleteCol,currentSelect:a})]})}}const G2=(0,l.memo)(e=>{let{className:t,children:n,verticalDragCallback:a,horizontalCallback:i}=e;const c=l.useRef(null);return(0,o.jsxs)("div",{className:C()("table-data-sheet",t),children:[(0,o.jsx)(tm,{className:"scroll-container",ref:c,children:n}),c&&(0,o.jsx)(jl.$T,{containerRef:c,isAutoHideBar:!1,verticalDragCallback:a,horizontalCallback:i})]})}),L=(0,I.Mz)([tt.nE,q.tp,te.O4],(e,t,n)=>{const i=e.length>0&&t&&e.find(h=>h.key===t),{key:c,hotAttr:{chartData:d,chartConfig:p}}=i;return{cid:c,chartData:d,type:p.chartType,category:p.chartCategory,theme:p.chartTheme,themeConfig:n}}),P=(0,r.Ng)(e=>L(e))(hh),b=M.Ay.div.withConfig({displayName:"styles__StyledChartTableSettingModal",componentId:"sc-11rotjh-0"})([".single-resizer{border:0;z-index:108;pointer-events:none;.resizable-handler{z-index:108;pointer-events:auto;&.t,&.b{width:100%;left:7px;}&.l,&.r{height:100%;top:7px;}}.square{display:none;}}"]),u=(0,M.Ay)($s.A).withConfig({displayName:"styles__StyledChartTableSettingModalContent",componentId:"sc-11rotjh-1"})(["border:",";border-radius:10px;overflow:hidden;z-index:107;background:",";display:flex;flex-direction:column;header{cursor:move;width:100%;height:50px;padding:0 20px;background:",";border-bottom:1px solid ",";display:flex;justify-content:space-between;span{font-size:16px;font-weight:500;color:",";pointer-events:none;}.close{cursor:pointer;width:24px;color:",";&:hover{color:",";}}}footer{height:37px;width:100%;text-align:center;span.desc{color:",";}}.content{padding:20px;height:calc(100% - 50px - 37px);width:100%;}"],e=>e.theme.ai_modal_border_style,e=>e.theme.color_bg_white,e=>e.theme.color_bg_white,e=>e.theme.color_bg_border_02,e=>e.theme.color_text_L1,e=>e.theme.color_text_L2,e=>e.theme.color_text_L1,e=>e.theme.color_text_L3),f=300,g=1200,S=240,_=800,O=544,V=333,H="chart_table_setting_modal";class Y extends l.PureComponent{constructor(t){super(t),(0,B.A)(this,"setContainerRef",c=>this.$containerRef=c),(0,B.A)(this,"handleMouseDown",c=>{this.$containerRef.contains(c.target)||document.querySelector(".mb-right-panel")&&document.querySelector(".mb-right-panel").contains(c.target)||document.querySelector(".item-select-border .editChartAction")&&document.querySelector(".item-select-border .editChartAction").contains(c.target)||document.querySelector(".chartTableMenu")&&(document.querySelector(".chartTableMenu").contains(c.target)||document.querySelector(".context-menu-mask").contains(c.target))||document.querySelector(".SelectMenu.chartSelectMenu")&&document.querySelector(".SelectMenu.chartSelectMenu").contains(c.target)||document.querySelector(".WorkspaceSelectMenu.border_style_select_menu")&&document.querySelector(".WorkspaceSelectMenu.border_style_select_menu").contains(c.target)||document.querySelector("[type=color-panel]")&&document.querySelector("[type=color-panel]").contains(c.target)||document.querySelector(".--mb--color-picker")&&document.querySelector(".--mb--color-picker").contains(c.target)||document.querySelector(".--mb--color-picker")&&document.querySelector(".SelectOption")||this.handleClose()}),(0,B.A)(this,"handleChangeHasEditingSaved",c=>this.setState({hasEditingSaved:c})),(0,B.A)(this,"handleMove",(c,d)=>{this.setState({left:c,top:d}),(0,Pt.a0)(H+"_position",{left:c,top:d},Pt.qW.Object)}),(0,B.A)(this,"handleClose",()=>{const{dispatch:c}=this.props;if(!this.state.hasEditingSaved){setTimeout(()=>{c({type:"entry:chart:out:edit"})},300);return}c({type:"entry:chart:out:edit"})}),(0,B.A)(this,"handleResize",(c,d,p)=>{const{top:h,left:m,width:x,height:v}=c,A={left:m,top:h};let k={width:x,height:v};if(["tl","tr","bl","br"].includes(p)){if((x<f||x>g)&&(v<S||v>_))return;const R=Math.min(Math.max(x,f),g),F=Math.min(Math.max(v,S),_);k={width:R,height:F}}else if(x<f||x>g||v<S||v>_)return;this.setState({...k,...A}),(0,Pt.a0)(H+"_position",A,Pt.qW.Object),(0,Pt.a0)(H+"_size",k,Pt.qW.Object)}),(0,B.A)(this,"handleUpdateDragOrResizeModal",c=>{this.props.dispatch({type:"modal:update:state",payload:{isDragOrResizeModal:c}})});const n={left:(window.innerWidth-O)/2,top:(window.innerHeight-V)/2},a=(0,Pt.Yt)(H+"_position",n,Pt.qW.Object),i=(0,Pt.Yt)(H+"_size",{width:O,height:V},Pt.qW.Object);this.state={width:i.width,height:i.height,left:a.left,top:a.top,hasEditingSaved:!0}}componentDidUpdate(){this.props.showChartSettings||this.props.dispatch({type:"entry:chart:out:edit"})}componentWillUnmount(){this.handleUpdateDragOrResizeModal(!1)}render(){const{showChartSettings:t}=this.props,{width:n,height:a,left:i,top:c}=this.state;return t?(0,o.jsxs)(b,{ref:this.setContainerRef,children:[(0,o.jsx)(Qa.A,{position:{left:i,top:c},dragContainer:"chart-table-setting-modal",onMove:this.handleMove,onMoveStart:()=>this.handleUpdateDragOrResizeModal(!0),onMoveEnd:()=>this.handleUpdateDragOrResizeModal(!1),children:(0,o.jsxs)(u,{id:"chart-table-setting-modal",style:{width:n,height:a},children:[(0,o.jsxs)("header",{type:"draggable",children:[(0,o.jsx)("span",{children:I18N.SettingPanel.chartInfo.changeChartDataOrColor}),(0,o.jsx)(xt.C,{name:"common/close",className:"close",onClick:this.handleClose})]}),(0,o.jsx)("div",{className:"content",children:(0,o.jsx)(P,{onChangeHasEditingSaved:this.handleChangeHasEditingSaved})}),(0,o.jsx)("footer",{children:(0,o.jsx)("span",{className:"desc",children:I18N.SettingPanel.chartInfo.editable.desc1+" "+sn.V.past.join(" ")+" "+I18N.SettingPanel.chartInfo.editable.desc2})})]})}),(0,o.jsx)(ac.A,{classname:"resizer",top:c,left:i,width:n,height:a,zoomable:"n,s,e,w,ne,nw,se,sw",rotatable:!1,rotateAngle:0,onResize:this.handleResize,onResizeStart:()=>this.handleUpdateDragOrResizeModal(!0),onResizeEnd:()=>this.handleUpdateDragOrResizeModal(!1),cursorAngle:0}),(0,o.jsx)(Ls.A,{target:document,onMouseDown:(0,Ls.t)(this.handleMouseDown,{capture:!0})})]}):null}}const re=(0,I.Mz)([tt.p$,q.tp],(e,t)=>({showChartSettings:e.length>0&&e.includes(t)})),pe=(0,r.Ng)(e=>re(e))(Y);var Ce=s(93157);const Pe=(0,l.memo)(e=>{let{isOpen:t,activePageKey:n,activeCanvasKey:a,...i}=e;const c=(0,r.d4)(He.UV),d=(0,r.d4)(tt.nE),p=(0,r.d4)(Bs.n),h=(0,l.useMemo)(()=>({left:p+30,top:78}),[p]),m=(0,r.d4)(q.jx)===Le.qi.OnlyView,x=(0,r.d4)(me.z$),v=(0,r.wA)(),[A,k]=(0,l.useState)({activePageKey:n,activeCanvasKey:a,resetTargetCanvasScrollOffset:!0}),R=(0,l.useRef)(A.activeCanvasKey);R.current=A.activeCanvasKey,(0,l.useEffect)(()=>{if(t&&d!=null&&d.length){const Z=d.some(ce=>{let{key:se}=ce;return sdkStore.locUpColdCanvasKey(se)===A.activeCanvasKey});let G=A.activePageKey,ee=A.activeCanvasKey;Z||d.find(ce=>{var se;let{key:he}=ce;const ve=sdkStore.locUpColdCanvasKey(he)||"";return ve&&!((se=sdkStore.getHotItem(ve))!=null&&se.hotAttr.asOverlay)?(G=sdkStore.locUpRBPageKey(ve),ee=ve,!0):!1}),k({activePageKey:G,activeCanvasKey:ee,resetTargetCanvasScrollOffset:!0})}},[t,d]),(0,l.useEffect)(()=>{let Z;return t&&(Z=c.addSdkStoreChangeListener(G=>{let{isRemote:ee}=G;ee&&R.current&&c.isTrashed(R.current)&&(MB.notice({text:"\u5F53\u524D\u9009\u4E2D\u9875\u9762\u5DF2\u88AB\u6B63\u5728\u534F\u540C\u7684\u6210\u5458\u5220\u9664",type:"warning"}),v({type:"modal:update:state",payload:{previewCanvasModal:{isOpen:!1}}}))})),()=>{var G;(G=Z)==null||G()}},[t,c]);const F=Z=>{let{activePageKey:G,activeCanvasKey:ee,resetTargetCanvasScrollOffset:ce}=Z;k({activePageKey:G,activeCanvasKey:ee,resetTargetCanvasScrollOffset:ce})};return t&&(0,o.jsx)(Ie,{position:h,onlyView:m,sharing:x,dispatch:v,...i,...A,onActiveRunner:F})});class Ie extends l.PureComponent{constructor(t){super(t),(0,B.A)(this,"handleWheel",x=>x.preventDefault()),(0,B.A)(this,"handleMove",(x,v)=>{this.setState({left:x,top:v})}),(0,B.A)(this,"handleResize",(x,v,A)=>{(0,as.qd)(x,A,k=>{var R;this.setState(k);const{width:F,height:Z}=k;!((R=MB)==null||(R=R.webpackInterface)==null)&&R.store&&MB.webpackInterface.store.dispatch({type:"entry:preview:zoom-quick-preview",payload:{quickPreviewSize:{width:F,height:Z-as.lp}}})})}),(0,B.A)(this,"handleLunch",x=>{let{activePageKey:v,activeCanvasKey:A}=x;const{onlyView:k,projectAlike:R,dispatch:F}=this.props;k?(MB.switchToPreview(A),(0,Ce.bO)({currentProject:R,source:"\u603B\u89C8\u4E0B\u5FEB\u901F\u9884\u89C8-\u5728\u6F14\u793A\u6A21\u5F0F\u6253\u5F00",preview_type:"\u6F14\u793A\u6A21\u5F0F"})):(F({type:"modal:update:state",payload:{previewCanvasModal:{isOpen:!1}}}),F({type:"entry:open:Launch",payload:{activePageKey:v,activeCanvasKey:A,source:"\u7F16\u8F91\u533A\u5FEB\u901F\u9884\u89C8-\u5728\u6F14\u793A\u6A21\u5F0F\u6253\u5F00",preview_type:"\u6F14\u793A\u6A21\u5F0F"}}))}),(0,B.A)(this,"handleUpdateDragOrResizeModal",x=>{var v,A;this.props.dispatch({type:"modal:update:state",payload:{isDragOrResizeModal:x}}),(v=MB)!=null&&v.runnerController&&((A=MB)==null||(A=A.runnerController)==null||A.setIsPreventEvent(x))}),this.$portalElem=(0,as.ke)();const{PreviewApp:n,runnerController:a,messageBucket:i,webpackInterface:c}=(0,Sc._)(qc.A);MB.previewModalActiveRunner=x=>t.onActiveRunner(x),this.popGlobalPreviewRelated=As.A.tryStashGlobalPreviewRelated({runnerController:a,messageBucket:i,webpackInterface:c}),this.PreviewApp=n;const d=t.height,p=t.width,{width:h,height:m}=(0,as.Xw)({width:p,height:d},{width:p,height:d});this.state={left:t.position.left,top:t.position.top,width:h,height:m+as.lp}}componentDidMount(){var t;if(!((t=MB)!=null&&(t=t.webpackInterface)!=null&&t.store))return;const{theme:n,sharing:a}=this.props;MB.webpackInterface.store.dispatch({type:"reducer:preview-toolbar:update",payload:{theme:n}}),a&&MB.webpackInterface.store.dispatch({type:"entry:preview:update:current:sharing",payload:{sharing:a}}),this.$portalElem.addEventListener("wheel",this.handleWheel,{passive:!1})}componentDidUpdate(t,n,a){var i;(i=MB)!=null&&(i=i.webpackInterface)!=null&&i.store&&(t.activeCanvasKey!==this.props.activeCanvasKey?MB.webpackInterface.store.dispatch({type:"entry:runner:activate:canvas",payload:{pageKey:this.props.activePageKey,canvasKey:this.props.activeCanvasKey,resetTargetCanvasScrollOffset:this.props.resetTargetCanvasScrollOffset,resetTargetSubWidgetsState:this.props.resetTargetCanvasScrollOffset,keepOverlayStack:!0}}):t.theme!==this.props.theme&&MB.webpackInterface.store.dispatch({type:"reducer:preview-toolbar:update",payload:{theme:this.props.theme}}))}componentWillUnmount(){this.handleUpdateDragOrResizeModal(!1),setTimeout(()=>this.popGlobalPreviewRelated(),500),this.$portalElem.removeEventListener("wheel",this.handleWheel,{passive:!1})}render(){var t,n;const{projectAlike:a,activePageKey:i,activeCanvasKey:c,onClose:d}=this.props,{PreviewApp:p}=this,{left:h,top:m,width:x,height:v}=this.state;return!((t=MB)!=null&&(t=t.webpackInterface)!=null&&t.store)||!((n=MB)!=null&&n.runnerController)?null:(0,Ki.createPortal)((0,o.jsxs)(Ys,{children:[(0,o.jsx)(Qa.A,{position:{left:h,top:m},dragContainer:as.er.CanvasModal,onMove:this.handleMove,onMoveStart:()=>this.handleUpdateDragOrResizeModal(!0),onMoveEnd:()=>this.handleUpdateDragOrResizeModal(!1),children:(0,o.jsx)(rc,{id:as.er.CanvasModal,style:{width:x,height:v},className:"preview-modal-portal-root is-focus-panel",children:(0,o.jsx)("div",{className:"content",children:(0,o.jsx)(p,{store:MB.webpackInterface.store,projectAlike:a,activePageKey:i,activeCanvasKey:c,isQuickPreview:!0,quickPreviewSize:{width:x,height:v-as.lp},onCloseModal:d,onLunch:this.handleLunch})})})}),(0,o.jsx)(ac.A,{classname:"resizer",top:m,left:h,width:x,height:v,zoomable:"n,s,e,w,ne,nw,se,sw",rotatable:!1,rotateAngle:0,onResize:this.handleResize,onResizeStart:()=>this.handleUpdateDragOrResizeModal(!0),onResizeEnd:()=>this.handleUpdateDragOrResizeModal(!1),cursorAngle:0})]}),this.$portalElem)}}const Re=(0,I.Mz)([tt.nE,Bs.n,q.jx,me.z$],(e,t,n,a)=>{const i=n===Le.qi.OnlyView;return{selectedItems:e,position:{left:t+30,top:78},onlyView:i,sharing:a}}),We=(0,r.Ng)(Re)(Pe),ct=(0,M.Ay)($s.A).withConfig({displayName:"styles__StyledWidgetOperationLayoutModal",componentId:"sc-hr74vf-0"})(["z-index:108;width:224px;height:124px;background:",";border:1px solid ",";box-shadow:0 3px 6px rgba(51,55,62,0.09);border-radius:8px;pointer-events:auto;header{width:100%;height:40px;display:flex;align-items:center;justify-content:space-between;background:",";box-shadow:0 1px 0 ",";padding:0 12px 0 16px;.title{color:",";font-size:12px;font-weight:500;}.close{width:24px;height:24px;cursor:pointer;color:",";&:hover,&:active{color:",";}}}.mainContainer{display:flex;flex-wrap:wrap;align-content:space-between;justify-content:space-between;width:224px;height:84px;padding:10px 16px;.operation-item{display:flex;align-items:center;justify-content:space-between;width:88px;height:28px;padding:0 22px 0 14px;border:1px solid ",";border-radius:6px;background-color:",";cursor:pointer;&:hover{background-color:",";}&:active{background-color:",";}&.disabled{cursor:not-allowed;background-color:",";color:",";}.operation-item-icon{width:24px;height:24px;color:",";}.operation-item-name{font-size:12px;font-weight:500;color:",";}&:nth-child(1) svg.operation-item-icon path:nth-child(1),&:nth-child(2) svg.operation-item-icon path:nth-child(2){fill:",";}}}"],e=>e.theme.color_bg_white,e=>e.theme.color_bg_border_02,e=>e.theme.color_bg_white,e=>e.theme.color_btn_secondary_active,e=>e.theme.color_text_L1,e=>e.theme.color_text_L2,e=>e.theme.color_text_L1,e=>e.theme.color_bg_border_02,e=>e.theme.color_bg_white,e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_btn_secondary_active,e=>e.theme.color_bg_white,e=>e.theme.color_text_disabled01,e=>e.theme.color_text_L1,e=>e.theme.color_text_L1,e=>e.theme.color_text_L2),vt="WIDGET_OPERATION_LAYOUT_MODAL_POSITION_TOP",Ut="WIDGET_OPERATION_LAYOUT_MODAL_POSITION_LEFT",pn=e=>{const{dispatch:t}=e,[n,a]=(0,l.useState)(()=>(0,Pt.Yt)(vt,127,Pt.qW.Number)),[i,c]=(0,l.useState)(()=>(0,Pt.Yt)(Ut,window.innerWidth-468,Pt.qW.Number)),[d,p]=(0,l.useState)(window.innerWidth),[h,m]=(0,l.useState)(window.innerHeight),x=(0,l.useCallback)((ee,ce)=>{const se=Math.max(Math.min(ce,h-124),0),he=Math.max(Math.min(ee,d-224),0);a(se),c(he),(0,Pt.a0)(vt,se,Pt.qW.Number),(0,Pt.a0)(Ut,he,Pt.qW.Number)},[h,d]),v=()=>{t({type:"modal:update:state",payload:{widgetOperationLayoutModal:{isOpen:!1}}})},A=(0,l.useCallback)(()=>{p(window.innerWidth),m(window.innerHeight),x(i,n)},[x,i,n]);(0,l.useEffect)(()=>(window.addEventListener("resize",A),()=>{window.removeEventListener("resize",A)}),[A]);const k=()=>{t({type:"entry:items:send:front"}),(0,Ot.$n)({operationType:Ot.VW.Top}),v()},R=()=>{t({type:"entry:items:send:back"}),(0,Ot.$n)({operationType:Ot.VW.Bottom}),v()},F=()=>{t({type:"entry:items:forward"}),(0,Ot.$n)({operationType:Ot.VW.MoveUp})},Z=()=>{t({type:"entry:items:backward"}),(0,Ot.$n)({operationType:Ot.VW.MoveDown})},G=ee=>{const{target:ce}=ee;ce.closest("#widget-operation-layout-modal")||v()};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(Qa.A,{position:{left:i,top:n},dragContainer:"widget-operation-layout-modal",onMove:x,children:(0,o.jsxs)(ct,{id:"widget-operation-layout-modal",children:[(0,o.jsxs)("header",{type:"draggable",children:[(0,o.jsx)("span",{className:"title",type:"draggable",children:I18N.Common.layer_adjustment}),(0,o.jsx)(xt.C,{name:"common/close",className:"close",onClick:v})]}),(0,o.jsxs)("div",{className:"mainContainer",children:[(0,o.jsx)(fn,{iconName:"toolbar/z_front",name:I18N.ToolBar.send_front,onClick:k}),(0,o.jsx)(fn,{iconName:"toolbar/z_back",name:I18N.ToolBar.send_back,onClick:R}),(0,o.jsx)(fn,{iconName:"common/z_forward",name:I18N.ContextMenu.move_up,onClick:F}),(0,o.jsx)(fn,{iconName:"common/z_backward",name:I18N.ContextMenu.move_down,onClick:Z})]})]})}),(0,o.jsx)(Ls.A,{target:document,onClick:(0,Ls.t)(G,{capture:!0})})]})},fn=e=>{const{iconName:t,name:n,onClick:a}=e;return(0,o.jsxs)("div",{className:"operation-item",onClick:a,children:[(0,o.jsx)(xt.C,{name:t,className:"operation-item-icon"}),(0,o.jsx)("span",{className:"operation-item-name",children:n})]})},uo=(0,l.memo)(pn);var Mn=s(65609);const Gt=(0,M.Ay)(ci.H).withConfig({displayName:"styles__StyledColorPickerDownloadModal",componentId:"sc-15dhwsn-0"})(["&.color-pick-download-modal{.content{p{font-size:14px;line-height:24px;color:",";}}footer{.installation-tutorial{max-height:32px;margin-right:auto;padding:6px 0px;font-size:13px;color:",";&:hover{color:",";}span{border-bottom:1px solid ",";}}}}"],e=>e.theme.color_text_L1,e=>e.theme.color_text_link_normal,e=>e.theme.color_text_link_hover,e=>e.theme.color_text_link_normal),yo="https://cdn-release.modao.cc/plugins/chrome/md-1.1.1-chrome.zip",Do="/mb-static/2504/op2cli-redirect.html",Wo=["Chrome","QQBrowser","360Browser","Edge"],Ro={Chrome:"\n <p>1\u3001\u4E0B\u8F7D\u63D2\u4EF6\u5E76\u89E3\u538B</p>\n <p>2\u3001\u5728\u6D4F\u89C8\u5668\u53F3\u4E0A\u89D2\u70B9\u51FB<strong>\u66F4\u591A\u56FE\u6807</strong> &gt; <strong>\u6269\u5C55\u7A0B\u5E8F</strong> &gt; <strong>\u7BA1\u7406\u6269\u5C55\u7A0B\u5E8F</strong></p>\n <p>3\u3001\u6253\u5F00\u53F3\u4E0A\u89D2\u201C\u5F00\u53D1\u8005\u6A21\u5F0F\u201D\uFF0C\u70B9\u51FB\u201C\u52A0\u8F7D\u5DF2\u89E3\u538B\u7684\u6269\u5C55\u7A0B\u5E8F\u201D\uFF0C\u9009\u62E9\u5DF2\u89E3\u538B\u7684<strong>\u6587\u4EF6\u5939</strong></p>\n ",QQBrowser:"\n <p>1\u3001\u4E0B\u8F7D\u63D2\u4EF6\u5E76\u89E3\u538B</p>\n <p>2\u3001\u5728QQ\u6D4F\u89C8\u5668\u53F3\u4E0A\u89D2\u70B9\u51FB<strong>\u66F4\u591A\u56FE\u6807</strong> &gt; <strong>\u5E94\u7528\u4E2D\u5FC3</strong></p>\n <p>3\u3001\u6253\u5F00\u53F3\u4E0A\u89D2\u201C\u5F00\u53D1\u8005\u6A21\u5F0F\u201D\uFF0C\u70B9\u51FB\u201C\u52A0\u8F7D\u5DF2\u89E3\u538B\u7684\u6269\u5C55\u7A0B\u5E8F\u201D\uFF0C\u9009\u62E9\u5DF2\u89E3\u538B\u7684<strong>\u6587\u4EF6\u5939</strong></p>\n ","360Browser":"\n <p>1\u3001\u4E0B\u8F7D\u63D2\u4EF6\u5E76\u89E3\u538B</p>\n <p>2\u3001\u5728360\u6D4F\u89C8\u5668\u53F3\u4E0A\u89D2\u70B9\u51FB<strong>\u62D3\u5C55\u7A0B\u5E8F</strong> &gt; <strong>\u6DFB\u52A0\u66F4\u591A\u62D3\u5C55</strong> &gt; <strong>\u5934\u50CF</strong> &gt; <strong>\u6211\u7684\u62D3\u5C55</strong></p>\n <p>3\u3001\u6253\u5F00\u53F3\u4E0A\u89D2\u201C\u5F00\u53D1\u8005\u6A21\u5F0F\u201D\uFF0C\u70B9\u51FB\u201C\u52A0\u8F7D\u5DF2\u89E3\u538B\u7684\u6269\u5C55\u7A0B\u5E8F\u201D\uFF0C\u9009\u62E9\u5DF2\u89E3\u538B\u7684<strong>\u6587\u4EF6\u5939</strong></p>\n ",Edge:"\n <p>1\u3001\u4E0B\u8F7D\u63D2\u4EF6\u5E76\u89E3\u538B</p>\n <p>2\u3001\u5728Edge\u6D4F\u89C8\u5668\u53F3\u4E0A\u89D2\u70B9\u51FB<strong>\u66F4\u591A\u56FE\u6807</strong> &gt; <strong>\u6269\u5C55</strong> &gt; <strong>\u7BA1\u7406\u6269\u5C55</strong></p>\n <p>3\u3001\u70B9\u51FB\u201C\u52A0\u8F7D\u5DF2\u89E3\u538B\u7684\u6269\u5C55\u7A0B\u5E8F\u201D\uFF0C\u9009\u62E9\u5DF2\u89E3\u538B\u7684<strong>\u6587\u4EF6\u5939</strong></p>\n ",other:"\n <p>\u5438\u7BA1\u5DE5\u5177\u4EC5\u652F\u6301\u5728Chrome\u6D4F\u89C8\u5668\u6216\u5BA2\u6237\u7AEF\u4E2D\u4F7F\u7528\uFF0C<strong>\u8BF7\u4F7F\u7528Chrome\u6D4F\u89C8\u5668\u6216\u4E0B\u8F7D\u58A8\u5200\u5BA2\u6237\u7AEF</strong></p>\n "},ra=e=>{const{isOpen:t,onClose:n}=e,a=(0,yd.VK)().name,i=()=>ENV.IS_ON_PREMISES?(0,o.jsx)(o.Fragment,{}):(0,o.jsxs)("a",{className:"installation-tutorial",target:"_blank",rel:"noreferrer",href:"https://modao.cc/hc/articles/333#%E5%AE%89%E8%A3%85%E5%8F%96%E8%89%B2%E5%99%A8%E6%8F%92%E4%BB%B6",children:[(0,o.jsx)("span",{children:"\u5B89\u88C5\u6559\u7A0B"}),">"]}),c=()=>(0,o.jsx)(Mn.A,{type:"secondary",onClick:()=>{n()},children:"\u53D6\u6D88"}),d=()=>{const F=ENV.IS_ON_PREMISES?Do:yo;window.open(F,"_blank")},p=()=>{window.open("https://modao.cc/feature/downloads.html#part1","_blank")},h=()=>{window.open("https://www.google.com/chrome/","_blank")},m=Wo.indexOf(a)===-1,x=Ro[m?"other":a],v={shouldCloseOnAction:!1},A={type:"secondary",shouldCloseOnAction:!1,onClick:h},k={type:"secondary"},R={type:"primary",shouldCloseOnAction:!1,onClick:d};return m?(0,o.jsx)(Gt,{className:"color-pick-download-modal",portalClassName:"color-pick-download-modal-portal",title:"\u6D4F\u89C8\u5668\u4E2D\u4F7F\u7528\u53D6\u8272\u5668\u9700\u5B89\u88C5\u63D2\u4EF6",isOpen:t,canConfirm:!0,mask:!1,onClose:n,cancelText:"\u524D\u5F80Chrome",confirmText:"\u4E0B\u8F7D\u5BA2\u6237\u7AEF",onConfirm:p,cancelBtnProps:A,confirmBtnProps:v,renderFooterContent:c,children:(0,o.jsx)("div",{dangerouslySetInnerHTML:{__html:x}})}):(0,o.jsx)(Gt,{className:"color-pick-download-modal",portalClassName:"color-pick-download-modal-portal",title:"\u6D4F\u89C8\u5668\u4E2D\u4F7F\u7528\u53D6\u8272\u5668\u9700\u5B89\u88C5\u63D2\u4EF6",isOpen:t,canConfirm:!0,mask:!1,onClose:n,cancelText:"\u4E0B\u8F7D\u63D2\u4EF6",confirmText:"\u5B8C\u6210",cancelBtnProps:R,confirmBtnProps:k,renderFooterContent:i,children:(0,o.jsx)("div",{dangerouslySetInnerHTML:{__html:x}})})},ka=(0,l.memo)(ra);var pa=s(28681),Ma=s(21259);class Ya extends l.PureComponent{constructor(){super(...arguments),(0,B.A)(this,"$portalElem",document.createElement("div")),(0,B.A)(this,"handleNotips",()=>{const{onClose:t,dispatch:n}=this.props;(0,Pt.a0)(pa.MQ,!0,Pt.qW.Boolean),t(),n({type:"reducer:flag:update-state",payload:{isShowLess12Mark:!1}})})}componentDidMount(){document.body.appendChild(this.$portalElem)}componentWillUnmount(){document.body.removeChild(this.$portalElem)}render(){const{position:t,onClose:n}=this.props;return t?(0,Ki.createPortal)((0,o.jsxs)(Ma.v,{position:t,children:[(0,o.jsxs)("header",{children:[(0,o.jsx)("span",{children:I18N.dModals.less_font_size.title}),(0,o.jsx)("div",{className:"close-btn",onClick:n,children:(0,o.jsx)(xt.C,{name:"common/close"})})]}),(0,o.jsxs)("div",{className:"content",children:[(0,o.jsx)("span",{children:I18N.dModals.less_font_size.desc}),(0,o.jsxs)("div",{className:"bottomContainer",children:[(0,o.jsx)("a",{className:"tutorials",href:"/hc/articles/191",target:"_blank",rel:"noopener noreferrer",children:I18N.dModals.less_font_size.view_tutorial}),(0,o.jsx)("span",{className:"noTips",onClick:this.handleNotips,children:I18N.Common.no_tips})]})]})]}),this.$portalElem):null}}var di=s(52315),ja=s(63239);const ri=(0,M.Ay)(ci.H).withConfig({displayName:"styles__StyledCanvasConvertedToPixsoModal",componentId:"sc-7tggkc-0"})(["width:776px;height:448px;background-color:#fff;box-shadow:0 2px 10px rgba(39,54,78,0.08),0 12px 40px rgba(39,54,78,0.1);border-radius:8px;overflow:hidden;.content{width:100%;height:448px;padding:0;}"]),ti=(0,l.memo)(e=>{const{isOpen:t,currentUser:n,currentOrg:a,theme:i,rootProject:c,pageType:d=ja.g6.SINGLE_CANVAS,from:p,onClose:h}=e,m=(0,r.d4)(tt.p$),x=(0,r.d4)(rt.p$);if(d===ja.g6.SINGLE_CANVAS){var v;if(!m||m.length===0)return null;const A=m[0],k=sdkStore.getHotItem(A);if(!((k==null||(v=k.hotAttr)==null?void 0:v.type)===$.x.Canvas&&!(0,ei.OO)(A)))return null}else if(d===ja.g6.CURRENT_PAGE&&!(x!=null&&x.key))return null;return(0,o.jsx)(ri,{isOpen:t,className:"canvas-converted-to-pixso-modal",width:776,onClose:h,canCloseOnClickMask:!1,modalRender:()=>(0,o.jsx)(di.A,{currentOrg:a,currentUser:n,theme:i,pageType:d,canvasKey:d===ja.g6.SINGLE_CANVAS?m[0]:void 0,currentPageKey:d===ja.g6.CURRENT_PAGE?x==null?void 0:x.key:void 0,currentProject:c,from:p,onClose:h})})}),vi=M.Ay.div.withConfig({displayName:"style__StyledNoticeModal",componentId:"sc-1eqgf65-0"})(["&.mask{position:fixed;left:0;right:0;top:0;bottom:0;background:rgba(31,41,46,0.6);z-index:9999;transition:all 1s;.banner-bg{width:712px;height:513px;background:url(",") no-repeat center center;background-size:cover;position:fixed;left:50%;bottom:50%;transform:translate(-50%,50%);transform-origin:bottom left;opacity:1;transition:all 1s;z-index:51;.banner-close{position:absolute;width:32px;height:32px;right:","px;top:","px;display:flex;justify-content:center;align-items:center;cursor:pointer;svg{rect{fill:rgba(53,68,93,0.3);}path{fill:#fff}}.close-btn{width:32px;height:32px;}&:hover{svg{rect{fill:rgba(53,68,93,0.47);}}}&.mask{width:32px;height:32px;border-radius:50%;background-color:rgba(53,68,93,0.30);top:0px;right:0px;&:hover{background-color:rgba(53,68,93,0.47);}}}.buy-btn{position:absolute;bottom:",";left:",";width:","px;height:","px;display:flex;align-items:center;justify-content:center;background:url(",") no-repeat center;background-size:contain;}}}&.hide{background:rgba(31,41,46,0);pointer-events:none;.banner-bg{left:80%;bottom:95%;transform:scale(0.07) translate(0,0);opacity:0;}}"],e=>e.guideImgUrl,e=>e.guideCloseBtnStyle.right,e=>e.guideCloseBtnStyle.top,e=>e.btnImgStyle.bottom,e=>e.btnImgStyle.left,e=>e.btnImgStyle.width,e=>e.btnImgStyle.height,e=>e.btnImgUrl),Hr={top:"0",right:"-14"},Yr={width:"150",height:"43",bottom:"11%",left:"40%"},br="https://cdn.modao.cc/Service%20suspension%20announcement%20konw.png",zi="https://cdn.modao.cc/Service%20suspension%20announcement.png";function mr(e){const{isOpen:t}=e,n=(0,l.useRef)(null),a=(0,r.wA)(),i=d=>{var p;d.preventDefault(),d.stopPropagation(),d.nativeEvent.stopImmediatePropagation(),(p=n.current)==null||p.classList.add("hide"),setTimeout(()=>{a({type:"modal:update:state",payload:{noticeModal:{isOpen:!1}}})},1e3)},c=d=>{i(d)};return t?(0,o.jsx)(vi,{className:"activity-banner mask",ref:n,guideImgUrl:zi,guideCloseBtnStyle:Hr,btnImgUrl:br,btnImgStyle:Yr,onClick:c,children:(0,o.jsxs)("a",{className:"banner-bg",children:[(0,o.jsx)("button",{className:"buy-btn"}),(0,o.jsx)("div",{className:"banner-close",onClick:i,children:(0,o.jsx)(xt.C,{className:"close-btn",name:"notice/modal/close"})})]})}):null}var pi=s(21770);const ui=(0,M.Ay)(ci.H).withConfig({displayName:"styles__StyledMktWMExportModal",componentId:"sc-1wcwir1-0"})(["&.workspace-modal.mkt-wm-export-modal{width:400px;height:290px;border:none;background:url('/mb-proto2/images/mktWM/mkt_wm_export_modal_bg.png') center center / 400px 290px no-repeat;.header{background-color:transparent;border-bottom:none;padding:0 8px 0 24px;color:",";height:72px;font-size:20px;font-weight:500;line-height:24px;}.content{height:134px;padding:0;background-color:transparent;.modal-content{height:134px;padding:28px 24px 24px 24px;display:flex;flex-direction:column;justify-content:space-between;font-size:13px;font-weight:500;line-height:18px;color:",";p{color:",";}.point{color:rgba(0,161,86,0.85)}}}footer{height:84px;padding:0 24px 4px 24px;background-color:transparent;display:flex;flex-direction:column;.button-root{width:352px;height:40px;max-height:40px;line-height:28px;font-size:14px;border-radius:8px;&.confirm-btn{display:none;}&.confirm-btn-custom{background-color:#415058;color:#FFDCA9;font-weight:600;.btn-text{display:flex;.icon{width:18px;height:18px;margin:5px 6px 5px 0;}}&:hover{background-color:#313C42;}&:active{background-color:#313C42;}}&.export-btn{color:",";font-weight:400;&:hover{color:",";}}}}.close-btn{right:8px;color:",";&:hover{color:",";}}}"],To.fm.color_text_btn.value_light,To.fm.color_text_L1.value_light,To.fm.color_text_L1.value_light,To.fm.color_text_L3.value_light,To.fm.color_text_L1.value_light,To.fm.color_text_L2.value_dark,To.fm.color_text_L1.value_dark);var tl=s(35428);const us=e=>{const{isOpen:t,onExport:n,onClose:a}=e,{isSoloMdMember:i}=(0,pi.s)(MB.user,MB.currentOrg),c=()=>{a(),n(),(0,tl._)({click_button:"\u5BFC\u51FA-\u7EE7\u7EED\u5BFC\u51FA\u542B\u6C34\u5370\u5185\u5BB9"})},d=()=>{const m=!!MB.currentOrg,x={mode:"mat",templatePaySource:"\u7F16\u8F91\u533A-\u79FB\u9664\u6C34\u5370",templatePayClickType:"\u79FB\u9664\u6C34\u5370",payEntrance:"\u7F16\u8F91\u533A-v8-"+(m?"\u56E2\u961F":"\u4E2A\u4EBA")+"-\u4ED8\u8D39\u7D20\u6750\u8BD5\u7528-\u5BFC\u51FA\u884C\u4E3A\u63D0\u793A-\u53BB\u6C34\u5370",checkoutPlace:"workspace_v8_"+(m?"org":"solo")+"_watermark_export_"+(i?"template":"vip-template"),checkoutArea:"proto"};MB.global.popupHelper.chargeAsync({...x}),(0,tl._)({click_button:"\u5BFC\u51FA-"+(i?"\u5347\u7EA7\u7D20\u6750\u4F1A\u5458":"\u5347\u7EA7\u53CC\u4F1A\u5458")})},p=()=>{a(),(0,tl._)({click_button:"\u5BFC\u51FA-\u5173\u95ED"})},h=()=>(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(ll.jn,{className:"confirm-btn-custom",onClick:d,children:[(0,o.jsx)(xt.C,{className:"upgrade-icon",name:"common/watermark/upgrade-"+(i?"mt":"md")}),i?I18N.WaterMark.mkt.upgrade_mkt:I18N.WaterMark.mkt.upgrade_two]}),(0,o.jsx)(ll.z9,{className:"export-btn",onClick:c,children:I18N.WaterMark.mkt.export_modal.export})]});return(0,o.jsxs)(ui,{isOpen:t,className:"mkt-wm-export-modal",title:i?"\u4ED8\u8D39\u5185\u5BB9\u4F7F\u7528\u987B\u77E5":"\u6C34\u5370\u63D0\u793A",onClose:p,canCloseOnClickMask:!1,canConfirm:!1,canCancel:!1,isUsePortal:!1,renderFooterContent:h,children:[(0,o.jsxs)("p",{children:[(0,o.jsx)("p",{children:I18N.WaterMark.mkt.export_modal.content_1}),(0,o.jsx)("p",{children:I18N.WaterMark.mkt.export_modal.content_2})]}),(0,o.jsxs)("p",{children:[I18N.WaterMark.mkt.export_modal.content_3,(0,o.jsx)("span",{className:"point",children:i?I18N.WaterMark.mkt.export_modal.content_4_1:I18N.WaterMark.mkt.export_modal.content_4_2}),I18N.WaterMark.mkt.export_modal.content_5]})]})},pl=(0,M.Ay)(ci.H).withConfig({displayName:"styles__StyledMktWMUngroupModal",componentId:"sc-z32pp4-0"})(["&.workspace-modal.mkt-wm-ungroup-modal{width:400px;.content{height:80px;}}"]);var Va=s(93413);const hs=e=>{const{isOpen:t,onClose:n,dispatch:a}=e,i=()=>{n(),MB.commonGuideHelper.markGuideAsRead(Va.c.UNGROUP_WITH_WM)},c=()=>{i()},d=()=>{i(),a({type:"entry:ungroup:items:v2"}),(0,tl._)({click_button:"\u89E3\u7EC4-\u7EE7\u7EED\u6253\u6563"})},p=()=>{i();const{isSoloMdMember:h}=(0,pi.s)(MB.user,MB.currentOrg),m=!!MB.currentOrg,x={mode:"mat",templatePaySource:"\u7F16\u8F91\u533A-\u79FB\u9664\u6C34\u5370",templatePayClickType:"\u79FB\u9664\u6C34\u5370",payEntrance:"\u7F16\u8F91\u533A-v8-"+(m?"\u56E2\u961F":"\u4E2A\u4EBA")+"-\u4ED8\u8D39\u7D20\u6750\u8BD5\u7528-\u6253\u6563\u64CD\u4F5C\u63D0\u793A-\u53BB\u6C34\u5370",checkoutPlace:"workspace_v8_"+(m?"org":"solo")+"_watermark_scatter_"+(h?"template":"vip-template"),checkoutArea:"proto"};MB.global.popupHelper.chargeAsync({...x}),(0,tl._)({click_button:"\u89E3\u7EC4-"+(h?"\u5347\u7EA7\u7D20\u6750\u4F1A\u5458":"\u5347\u7EA7\u53CC\u4F1A\u5458")})};return(0,o.jsx)(o.Fragment,{children:(0,o.jsx)(pl,{isOpen:t,className:"mkt-wm-ungroup-modal",title:I18N.WaterMark.mkt.ungroup_modal.title,onClose:c,canCloseOnClickMask:!1,canConfirm:!0,onConfirm:p,confirmText:I18N.WaterMark.mkt.remove_wm,canCancel:!0,onCancel:d,isUsePortal:!1,cancelText:I18N.WaterMark.mkt.ungroup_modal.continue,children:(0,o.jsx)("p",{children:I18N.WaterMark.mkt.ungroup_modal.content})})})};var Xs=s(12566),Ti=s(83199),ms=s(2099),Fl=s(26842);const b1=M.Ay.div.withConfig({displayName:"styles__StyledLibModal",componentId:"sc-wem5zp-0"})(["position:fixed;z-index:200;box-sizing:content-box;position:absolute;width:240px;background:",";box-shadow:0 3px 10px 0 rgba(0,0,0,0.1);font-size:12px;text-align:left;border:1px solid ",";border-radius:8px;box-shadow:2px 8px 20px 0px rgba(0,0,0,0.10);"],e=>e.theme.color_bg_white,e=>e.theme.color_bg_border_01),lp=M.Ay.div.withConfig({displayName:"styles__StyledLibContent",componentId:"sc-wem5zp-1"})(['width:100%;header{display:flex;align-items:center;justify-content:space-between;width:100%;height:40px;padding:0px 10px 0 16px;&[type="draggable"]{cursor:move;}.title{color:',";font-size:12px;font-style:normal;font-weight:600;line-height:16px;cursor:pointer;}.right-content{display:flex;}.svg-icon{",";color:",";&.times-icon{margin-left:4px;}}}.divider{width:100%;height:1px;background:",";}"],e=>e.theme.color_text_L1,Fl.eK,e=>e.theme.color_text_L1,e=>e.theme.color_bg_border_01),w1=(e,t)=>{let{className:n="",type:a,isShowCreate:i=!0,onGetNewEditModalPostion:c,onClose:d,onDidMount:p}=e;const h=(0,r.d4)(tt.p$),m=(0,r.wA)(),x=()=>{const v=c();a==="appear"&&m({type:"modal:update:state",payload:{libEditAppearModal:{isOpen:!0,position:v,type:"create",...(0,ms.xe)(h)}}}),a==="text"&&m({type:"modal:update:state",payload:{libEditTextModal:{isOpen:!0,position:v,type:"create",...(0,ms.l$)(h)}}})};return(0,l.useEffect)(()=>{p&&p()},[t]),(0,o.jsxs)(lp,{className:C()(n,"lib-panel-modal-content"),ref:t,children:[(0,o.jsxs)("header",{type:"draggable",children:[(0,o.jsx)("span",{className:"title",children:""+I18N.libPanel.modal.header[a]}),(0,o.jsxs)("div",{className:"right-content",children:[a!=="muban"&&i&&(0,o.jsx)(Ti.A,{content:""+I18N.libPanel.manage.create_ref[a],direction:"down",distance:8,children:(0,o.jsx)(xt.C,{className:"add-icon",name:"common/add@24",size:24,onClick:x})}),d&&(0,o.jsx)(Ti.A,{content:I18N.Common.close,direction:"down",distance:8,children:(0,o.jsx)(xt.C,{className:"times-icon",name:"common/close@24",size:24,onClick:d})})]})]}),(0,o.jsx)("div",{className:"divider"}),(0,o.jsx)(Xs.k,{type:a,onClose:d,onGetNewEditModalPostion:c})]})},Zp=(0,l.memo)((0,l.forwardRef)(w1));var I0=s(46720);const nm=e=>{let{isOpen:t,type:n,position:a,dispatch:i,onClose:c}=e;const[d,p]=(0,l.useState)(a.left),[h,m]=(0,l.useState)(a.top),x=(0,r.d4)(me.an);if(!t)return null;const v=F=>{i({type:"modal:update:state",payload:{isDragOrResizeModal:F}})},A=(F,Z)=>{p(F),m(Z),i({type:"modal:update:libPanelModal:position",payload:{left:F,top:Z}})},k=()=>{n==="muban"&&i({type:"style-lib:set:currentMubanFolderData",payload:null}),c()},R=F=>{x||F.target.closest("#lib-panel-modal")||F.target.closest("#lib-panel-text-edit-modal")||F.target.closest("#lib-panel-color-edit-modal")||F.target.closest("#lib-panel-appear-edit-modal")||F.target.closest(".lib-panel-actions-menu")||F.target.closest(".border_style_select_menu")||F.target.closest(".border_width_select_menu")||F.target.closest(".border-width-menu")||F.target.closest(".font-options-menu")||F.target.closest("#font-list-panel")||F.target.closest(".font-size-input-menu")||F.target.closest(".--mb--color-picker")||F.target.closest(".lib-select-menu ul")||F.target.closest(".context-menu-mask")||F.target.closest(".WorkspaceSelectMenu")||k()};return(0,o.jsx)(o.Fragment,{children:(0,Ki.createPortal)((0,o.jsx)(Qa.A,{dragContainer:"lib-panel-modal",position:{left:d,top:h},onMove:A,onMoveStart:()=>v(!0),onMoveEnd:()=>v(!1),children:(0,o.jsxs)(b1,{id:"lib-panel-modal",children:[(0,o.jsx)(Zp,{type:n,onGetNewEditModalPostion:()=>({left:d-240,top:h}),onClose:k}),(0,o.jsx)(Ls.A,{target:document,onMouseDown:(0,Ls.t)(R,{capture:!0})})]})}),(0,I0.w)())})};var C1=s(21856),S1=s(8926);const A1=M.Ay.div.withConfig({displayName:"styles__StyledTitleDescInput",componentId:"sc-12oobps-0"})([".item{",";}"],Fl.WT),od=e=>{let{title:t,desc:n,onSetTitle:a,onSetDesc:i}=e;const c=(0,l.useRef)(null);(0,l.useEffect)(()=>{var m;c==null||(m=c.current)==null||m.focus()},[]);const d=m=>{a(m.target.value)},p=m=>i(m.target.value),h=m=>{m.key==="Enter"&&m.target.matches(":focus")&&(m.stopPropagation(),m.target.blur())};return(0,o.jsxs)(A1,{className:"title-desc-input-wrap",children:[(0,o.jsxs)("div",{className:"item",children:[(0,o.jsx)("span",{className:"item-title",children:"\u540D\u79F0"}),(0,o.jsx)("input",{type:"text",className:"item-input",placeholder:"\u8BF7\u8F93\u5165\u540D\u79F0",value:t,maxLength:50,ref:c,onChange:d,onKeyDown:h})]}),(0,o.jsxs)("div",{className:"item",children:[(0,o.jsx)("span",{className:"item-title",children:"\u63CF\u8FF0"}),(0,o.jsx)("input",{type:"text",className:"item-input",placeholder:"\u8BF7\u63CF\u8FF0\u7528\u6CD5",value:n,maxLength:200,onChange:p,onKeyDown:h})]})]})},Km=M.Ay.div.withConfig({displayName:"styled__StyledCreateColorModal",componentId:"sc-yq4j42-0"})(["position:absolute;width:240px;height:220px;background-color:",";border:1px solid ",";border-radius:8px;box-shadow:2px 8px 20px 0px rgba(0,0,0,0.10);z-index:300;display:flex;flex-direction:column;header{height:40px;display:flex;justify-content:space-between;align-items:center;padding:0 16px;border-bottom:1px solid ",";color:",";font-weight:500;.right-content{width:24px;height:24px;border-radius:4px;cursor:pointer;.svg-icon{width:24px;height:24px;}&:hover{background:",";}&:active{background:",";}}}.content{padding:16px 16px 0;.item{",";.color-btn-has-hex-input{width:144px;.color-btn-wrap{flex:none;margin-left:auto;margin-right:0;width:144px;height:28px;max-width:none;.hex-a-input-wrap{width:110px;margin-left:4px;.hex-a-input{width:52px;input{margin-left:15px;}}}}}}}button.create-button{",";margin-right:16px;}"],e=>e.theme.color_bg_white,e=>e.theme.color_bg_border_01,e=>e.theme.color_bg_border_01,e=>e.theme.color_text_L1,e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_btn_secondary_active,Fl.WT,Fl.qf);var xl=s(70812);const Fd=e=>{let{position:t,type:n,color:a,attr:i="solidColor",supAttr:c="fill",title:d="",desc:p="",currentKey:h="",sup:m="B@style",onClose:x,onSetRefStyle:v,onColorChange:A,dispatch:k,onConfirm:R,onCancel:F}=e;const Z=(0,r.d4)(tt.p$),G=(0,r.d4)(me.eo),ee=(0,r.d4)(me.an),[ce,se]=(0,l.useState)(t.left),[he,ve]=(0,l.useState)(t.top),[Te,xe]=(0,l.useState)(d),[Fe,et]=(0,l.useState)(p),[Ke,Qe]=(0,l.useState)(a);(0,l.useEffect)(()=>{xe(d),et(p),Qe(a)},[a,p,d]);const nt=(Co,Pn)=>{se(Co),ve(Pn)},Xe=Co=>{k({type:"modal:update:state",payload:{isDragOrResizeModal:Co}})},lt=Co=>{Qe(Co)},Ct=()=>{var Co;if(n==="create"){const Io=Te||"#"+(0,Rc.L5)((0,Rc.NI)(Ke.solidColor)).toLocaleUpperCase().slice(0,-2),{hotItems:mo,name:So}=(0,ms.ws)(Io,"color",m),ho=(0,C1.Z_)(m||"B@style"),No=(0,ms.QH)({name:So,zIndex:ho+1,fill:Ke.solidColor,styleType:"color",desc:Fe,attrType:"fill",libKey:"",refStyles:[]},mo.length>0?mo[mo.length-1].key:m);v==null||v(No),A==null||A({value:Ke,needClearRef:!1}),k({type:"entry:libStyle:update:widget:refStyles",payload:{supAttr:c,selections:Z,type:"color",key:i,refKey:No==null?void 0:No.key}}),(0,ms.qP)(No.key)}if(n==="edit"){const Io=sdkStore.getHotItem(h);if(Io){var Pn,ro;let mo=Te||"#"+(0,Rc.L5)((0,Rc.NI)(Ke.solidColor)).toLocaleUpperCase().slice(0,-2),So=Io.sup;const{hotItems:ho,name:No}=(0,ms.ws)(mo,"color",So);ho.length>0&&(So=(Pn=ho[ho.length-1])==null?void 0:Pn.key),mo=No;const Xo={...Io,hotAttr:{...Io.hotAttr,name:mo,desc:Fe,fill:Ke.solidColor},sup:So},Ta=((ro=(0,ms.OP)({selections:Z,attr:i,supAttr:c,styleType:"color"}))==null?void 0:ro.key)===h;if(sdkStore.updateHotItem(Xo),Ta&&(v==null||v(Xo),A==null||A({value:Ke,needClearRef:!1})),Ke.solidColor!==a.solidColor){const{flatChgList:Da,otherPageFlatChgList:xr,isUpdateBasket:Wa}=(0,S1.sw)(G,Ke,h);k({type:"entry:widget:change",payload:{flatChgList:Da}}),Wa&&k({type:"entry:rebuild:screen-widget-tree"}),setTimeout(()=>{sdkStore.updateHotItemBatch(xr)},16)}}}k({type:"style-lib:set:attr",payload:{cacheLocalLibTag:Math.random()}}),R&&R(),hn(),x(),xl.U4.protoStyleTrack((Co=MB)==null||(Co=Co.user)==null?void 0:Co.id,n==="create"?"\u521B\u5EFA":"\u66F4\u65B0","color")},St=()=>{const Co=document.querySelector(".--mb--color-picker");if(Co){const{left:Pn,top:ro}=Co.getBoundingClientRect();k({type:"colorpanel:set:position",payload:{position:{left:Pn,top:ro}}})}},hn=()=>{k({type:"colorpanel:set:state",payload:{supAttr:c,attr:i}}),St()},Cn=()=>{hn(),F&&F(),x()},Mt=Co=>{ee||Co.target.closest("#lib-panel-color-edit-modal")||Co.target.closest(".--mb--color-picker")||Co.target.closest(".WorkspaceSelectMenu")||Cn()},Et=Co=>{Co.key==="Enter"&&Ct()};return(0,o.jsx)(Qa.A,{position:{left:ce,top:he},dragContainer:"lib-panel-color-edit-modal",onMove:nt,onMoveStart:()=>Xe(!0),onMoveEnd:()=>Xe(!1),children:(0,o.jsxs)(Km,{id:"lib-panel-color-edit-modal",children:[(0,o.jsxs)("header",{type:"draggable",children:[(0,o.jsx)("span",{className:"title",children:n==="create"?"\u521B\u5EFA\u989C\u8272":"\u7F16\u8F91\u989C\u8272"}),(0,o.jsx)("div",{className:"right-content",children:(0,o.jsx)(xt.C,{className:"times-icon",name:"common/close@24",size:24,onClick:Cn})})]}),(0,o.jsxs)("div",{className:"content",children:[(0,o.jsx)(od,{title:Te,desc:Fe,onSetTitle:xe,onSetDesc:et}),(0,o.jsxs)("div",{className:"item",children:[(0,o.jsx)("span",{className:"item-title",children:"\u5C5E\u6027"}),(0,o.jsx)(Ec.R_,{mode:"input",className:Ec.EY,canOpenLib:!1,supAttr:"fill",attr:"solidColor",color:Ke,pIsSolidColorOnly:!0,onChange:lt})]})]}),(0,o.jsx)("button",{className:C()("create-button"),onClick:Ct,children:n==="create"?"\u521B\u5EFA":"\u786E\u8BA4"}),(0,o.jsx)(Ls.A,{target:document,onMouseDown:(0,Ls.t)(Mt,{capture:!0}),onKeyDown:Et})]})})};var k1=s(44940),Z2=s(5680),K2=s(36620),om=s(44518),Y2=s(38571),z3=s(62448),am=s(36397),mh=s(16933);const Ym=M.Ay.div.withConfig({displayName:"styles__StyledEditAppearModal",componentId:"sc-hoydeu-0"})(["position:fixed;z-index:200;box-sizing:content-box;position:absolute;width:240px;min-height:461px;background:",";box-shadow:0 3px 10px 0 rgba(0,0,0,0.1);font-size:12px;text-align:left;border:1px solid ",";border-radius:8px;box-shadow:0px 4px 10px 0px rgba(0,18,38,0.10);.width-66{width:66px;}.height-32{height:32px;}.appearance-line{display:flex;align-items:center;margin-left:-6px;}header{height:40px;display:flex;justify-content:space-between;align-items:center;padding:0 16px;border-bottom:1px solid ",";color:",";font-weight:500;.right-content{width:24px;height:24px;border-radius:4px;cursor:pointer;.svg-icon{width:24px;height:24px;}&:hover{background:",";}&:active{background:",";}}}.content{.appear-preview{width:100%;height:100px;background:",";display:flex;align-items:center;justify-content:center;.preview-item{width:40px;height:40px;}img{max-width:240px;max-height:80px;}}.has-padding-content{padding:0 16px;.title-desc-input-wrap{margin-top:16px;padding-bottom:8px;}}.appear-setting{padding:16px 10px 0 16px;width:100%;border-top:1px solid ",";.common-check-label-box{width:68px;display:flex;align-items:center;.left-label{margin-left:4px;color:",";}}.shadows-panel{margin-bottom:16px;}}.footer{padding:11px 16px;border-top:1px solid ",";button.create-button{",";}}}"],e=>e.theme.color_bg_white,e=>e.theme.color_bg_border_01,e=>e.theme.color_bg_border_01,e=>e.theme.color_text_L1,e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_btn_secondary_active,e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_bg_border_01,e=>e.theme.color_text_L2,e=>e.theme.color_bg_border_01,Fl.qf),cp={borderRadius:k1.A.border_radius,borderVisibility:k1.A.border_visibility,border:k1.A.border,fill:k1.A.background,shadow:k1.A.box_shadow},rm=e=>{var t;let{position:n,type:a="create",title:i="",desc:c="",currentKey:d="",sup:p,refStyles:h,attrs:m={},dispatch:x,onClose:v,onCancel:A,onConfirm:k}=e;const[R,F]=(0,l.useState)(n.left),[Z,G]=(0,l.useState)(n.top),[ee,ce]=(0,l.useState)(i),[se,he]=(0,l.useState)(c),[ve,Te]=(0,l.useState)((m==null?void 0:m.borderRadius)||cp.borderRadius),[xe,Fe]=(0,l.useState)((t=m==null?void 0:m.borderRadiusIsVisible)!=null?t:!0),[et,Ke]=(0,l.useState)((m==null?void 0:m.borderVisibility)||cp.borderVisibility),[Qe,nt]=(0,l.useState)((m==null?void 0:m.border)||cp.border),[Xe,lt]=(0,l.useState)((m==null?void 0:m.fill)||cp.fill),[Ct,St]=(0,l.useState)((m==null?void 0:m.shadow)||cp.shadow),[hn,Cn]=(0,l.useState)(""),Mt=(0,r.d4)(tt.p$),Et=(0,r.d4)(me.an),Co=(0,l.useMemo)(()=>{if(a==="create")return Mt;if(a==="edit")return[d]},[d,Mt,a]);(0,l.useEffect)(()=>{m&&(m.borderRadius&&Te(m.borderRadius),m.borderVisibility&&Ke(m.borderVisibility),m.border&&nt(m.border),m.fill&&lt(m.fill),m.shadow&&St(m.shadow),m.borderRadiusIsVisible&&Fe(m.borderRadiusIsVisible))},[m,m.border,m.borderRadius,m.borderVisibility,m.fill,m.shadow,m.borderRadiusIsVisible,a]);const Pn=async()=>{try{let Da=(0,mh.wN)("rect",5,20,20,40,40);Da={...Da,borderRadius:ve,borderVisibility:et,border:Qe,borderRadiusIsVisible:xe,fill:Xe,shadow:Ct};const xr=(0,$a.WQ)([Da]),Wa=xr.getRootSnapshot(),Dr=Wa.sub[0],Wr=xr.getHotItem(Dr),hi=(0,am.Pf)({item:Wr,hasWatermark:!1,scale:1,isWithDeviceFrame:!1,sdk:xr}),Sr=(0,am.Gq)(xr,Wa.sub[0],!1,"local"),oi=Math.round(Sr[2]-Sr[0]),js=Math.round(Sr[3]-Sr[1]),Ri=document.createElement("div");Ri.innerHTML=hi;const{imageSrc:li}=await(0,z3.Z)({element:Ri,width:oi,height:js,presetFontsSet:new Set});return li}catch(Da){return""}};(0,l.useEffect)(()=>{(async()=>{const xr=await Pn();Cn(xr)})()},[ve,et,Qe,xe,Xe,Ct]);const ro=Da=>{x({type:"modal:update:state",payload:{isDragOrResizeModal:Da}})},Io=(Da,xr)=>{F(Da),G(xr)},mo=()=>{var Da;const xr={border:Qe,borderRadius:ve,borderVisibility:et,fill:Xe,shadow:Ct,borderRadiusIsVisible:xe},Wa=ee.trim()?ee:"\u5916\u89C2\u6837\u5F0F";a==="create"&&x({type:"entry:libStyle:appear:create",payload:{title:Wa,desc:se,appearAttr:xr,sup:p,refStyles:h}}),a==="edit"&&x({type:"entry:libStyle:appear:edit",payload:{title:Wa,desc:se,appearAttr:xr,refStyles:h,currentKey:d,isNeedUpdateWidget:!0}}),x({type:"style-lib:set:attr",payload:{cacheLocalLibTag:Math.random()}}),k&&k(),v(),xl.U4.protoStyleTrack((Da=MB)==null||(Da=Da.user)==null?void 0:Da.id,a==="create"?"\u521B\u5EFA":"\u66F4\u65B0","appear")},So=Da=>{let{value:xr,attr:Wa}=Da;switch(Wa){case"borderRadius":Te(xr);break;case"fill":lt(xr);break;case"borderVisibility":Ke(xr);break;case"border":nt(xr);break;case"shadow":St(xr);break;case"borderRadiusIsVisible":Fe(xr);break;default:break}},ho=()=>{A&&A(),v()},No=Da=>{Et||Da.target.closest("#lib-panel-appear-edit-modal")||Da.target.closest(".--mb--color-picker")||Da.target.closest(".border_style_select_menu")||Da.target.closest(".border_width_select_menu")||Da.target.closest(".border-width-menu")||Da.target.closest(".context-menu-mask")||Da.target.closest(".WorkspaceSelectMenu")||ho()},Xo=Da=>{Da.key==="Enter"&&mo()},Ta=(0,l.useCallback)(()=>({left:R-242-2,top:Z}),[R,Z]);return(0,Ki.createPortal)((0,o.jsx)(Qa.A,{position:{left:R,top:Z},dragContainer:"lib-panel-appear-edit-modal",onMove:Io,onMoveStart:()=>ro(!0),onMoveEnd:()=>ro(!1),children:(0,o.jsxs)(Ym,{id:"lib-panel-appear-edit-modal",children:[(0,o.jsxs)("header",{type:"draggable",children:[(0,o.jsx)("span",{className:"title",children:a==="create"?I18N.libPanel.manage.create_ref.appear:I18N.libPanel.manage.edit_ref.appear}),(0,o.jsx)("div",{className:"right-content",children:(0,o.jsx)(Ti.A,{content:I18N.Common.close,direction:"down",distance:8,children:(0,o.jsx)(xt.C,{className:"times-icon",name:"common/close@24",size:24,onClick:ho})})})]}),(0,o.jsxs)("div",{className:"content",children:[(0,o.jsx)("div",{className:"appear-preview",children:(0,o.jsx)("img",{src:hn})}),(0,o.jsx)("div",{className:"has-padding-content",children:(0,o.jsx)(od,{title:ee,desc:se,onSetTitle:ce,onSetDesc:he})}),(0,o.jsxs)("div",{className:"appear-setting",children:[(0,o.jsx)(Z2.R2,{borderRadius:ve,borderRadiusIsVisible:xe,show:!0,canSetSingleRadius:!0,canAddVar:!1,onChange:So}),(0,o.jsx)(K2.s,{fill:Xe,onChange:So,selections:Co,canOpenLib:!0,canCreateColorRef:!1,refStyles:h,index:1,onPosition:Ta}),(0,o.jsx)(om.$,{border:Qe,borderVisibility:et,canBorderWidth:!0,canBorderStyle:!0,canSetBorderVisibility:!0,canOpenLib:!0,canAddVar:!1,canCreateColorRef:!1,onChange:So,onPosition:Ta}),(0,o.jsx)(Y2.y,{shadow:Ct,attr:"box_shadow",selections:Co,onChange:So,canOpenLib:!0,canCreateColorRef:!1,onPosition:Ta})]}),(0,o.jsx)("div",{className:"footer",children:(0,o.jsx)("button",{className:"create-button",onClick:mo,children:a==="create"?"\u521B\u5EFA":"\u786E\u8BA4"})})]}),(0,o.jsx)(Ls.A,{target:document,onMouseDown:(0,Ls.t)(No,{capture:!0}),onKeyDown:Xo})]})}),(0,I0.w)())};var Xm=s(54852),im=s(55203),X2=s(3507),sm=s(77643),ul=s(15186),_0=s(34748),Kp=s(33421),ns=s(73662),lm=s(9521),Qf=s(39182);const Q2=e=>{const{fontSize:t,textColor:n,lineHeight:a,paddingTuple:i,fontDirection:c,fontFamily:d,fontWeight:p,underline:h,strikethrough:m,italic:x,bold:v,verticalAlign:A,horizontalAlign:k,letterSpacing:R,isClipText:F}=e||{},Z=v?700:400;let G="";return h&&(G="underline"),m&&(G+=(G?" ":"")+"line-through"),G===""&&(G="none"),{fontFamily:d,fontWeight:Z,fontSize:t+"px",fontStyle:x?"italic":"normal",letterSpacing:R+"px",justifyContent:A,alignItems:(0,Qf.xC)(k),textAlign:k,color:n,lineHeight:a+"px",...(0,bt.N3)(i),textDecoration:G,writingMode:c,overflow:F||F===void 0?"hidden":"visible"}},cm=M.Ay.div.withConfig({displayName:"styles__StyledEditTextModal",componentId:"sc-1rwykl3-0"})(["position:fixed;z-index:200;box-sizing:content-box;position:absolute;width:240px;min-height:288px;background:",";box-shadow:0 3px 10px 0 rgba(0,0,0,0.1);font-size:12px;text-align:left;border:1px solid ",";border-radius:8px;box-shadow:0px 4px 10px 0px rgba(0,18,38,0.10);header{height:40px;display:flex;justify-content:space-between;align-items:center;padding:0 16px;border-bottom:1px solid ",";color:",";font-weight:500;.svg-icon{width:20px;height:20px;border-radius:4px;cursor:pointer;&:hover{background-color:",";}&:active{background-color:",";}}}.content{margin-bottom:16px;.text-preview{width:100%;height:100px;background:",";line-height:100px !important;text-align:center;display:flex;justify-content:center;align-items:center !important;color:",";.ordered-item-view,.unordered-item-view{margin-right:7px;color:#1684fc;font-family:'Arial','Helvetica','sans-serif';}}.has-padding-content{padding:0 16px;&.has-more{.title-desc-input-wrap{border-bottom:1px solid ",";}}.title-desc-input-wrap{margin-top:16px;padding-bottom:8px;}.font-setting{margin:16px 0;width:100%;padding:0;.font-size-type-wrap{justify-content:space-between;width:100%;}}}.footer{display:flex;justify-content:space-between;align-items:center;height:28px;padding:0 16px;&.has-more{border-top:1px solid ",";height:34px;padding:16px 16px 0;}.is-more{cursor:pointer;color:",";&:hover{color:",";}}button.create-button{",";}}}.step-input-width-72{flex:0 0 72px;display:flex;justify-content:space-between;align-items:center;.title{width:24px;height:24px;padding:0;margin-left:2px;flex-shrink:0;margin-left:1px;svg{width:24px;height:24px;color:inherit;}}input{margin-left:4px;}&:not(:last-child){margin-right:4px;}}"],e=>e.theme.color_bg_white,e=>e.theme.color_bg_border_01,e=>e.theme.color_bg_border_01,e=>e.theme.color_text_L1,e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_text_L1,e=>e.theme.color_bg_border_01,e=>e.theme.color_bg_border_01,e=>e.theme.color_text_link_normal,e=>e.theme.color_text_link_hover,Fl.qf),Qm=(e,t)=>{let n=e,a=t;return e==="textColor"&&typeof t=="number"&&(a=(0,ul.t0)(t)),e==="line-through"&&(n="strikethrough"),e==="listType"&&(n="listValue",a=t==="ordered"?"ordered-list-item":t==="unordered"?"unordered-list-item":"unstyled"),{a:n,v:a}},Jm=e=>{let{position:t,type:n="create",title:a="",desc:i="",currentKey:c="",attrs:d={},refStyles:p,sup:h,dispatch:m,onClose:x,onConfirm:v,onCancel:A}=e;const k=(0,r.d4)(ns.y.query.getCloudFontLocalList),R=(0,r.d4)(me.an),F=(0,r.d4)(tt.p$),[Z,G]=(0,l.useState)(t.left),[ee,ce]=(0,l.useState)(t.top),[se,he]=(0,l.useState)(a),[ve,Te]=(0,l.useState)(i),[xe,Fe]=(0,l.useState)((0,un.H$)()),[et,Ke]=(0,l.useState)(!0),[Qe,nt]=(0,l.useState)("");(0,l.useEffect)(()=>{Fe(d)},[d]),(0,l.useEffect)(()=>{F.length>0&&n==="create"&&Ke(!1)},[]);const Xe=(0,l.useMemo)(()=>(0,Kp.QT)(Qe,xe.fontWeight),[Qe,xe.fontWeight]),lt=(0,l.useMemo)(()=>xe.italic?"italic":"normal",[xe]),Ct=(0,l.useMemo)(()=>xe.bold?1:0,[xe]),St=(0,l.useMemo)(()=>(0,_0.U6)({isUnderline:xe.underline,isStrikethrough:xe.strikethrough}),[xe.strikethrough,xe.underline]),hn=(0,l.useMemo)(()=>{const Xo=Math.min(Math.max(xe.fontSize,9),48);return{...Q2(xe),overflow:"hidden",fontSize:Xo}},[xe]),Cn=Xo=>{m({type:"modal:update:state",payload:{isDragOrResizeModal:Xo}})},Mt=(Xo,Ta)=>{G(Xo),ce(Ta)},Et=Xo=>{Xo.preventDefault(),Xo.stopPropagation(),Ke(!et),et||window.innerHeight-ee<447&&ce(ee-167)},Co=Xo=>{nt(Xo.cloudFontKey),Xo.cloudFontKey&&(Xo.fontFamily=Xo.cloudFontKey),delete Xo.cloudFontKey,Fe({...xe,...Xo})},Pn=()=>{},ro=Xo=>{const{attr:Ta,value:Da}=Xo,xr={...xe},{a:Wa,v:Dr}=Qm(Ta,Da);if(xr[Wa]=Dr,Wa==="listValue"&&(xe==null?void 0:xe.listValue)===Dr&&(xr.listValue="unstyled"),Wa==="fontSize"){const Wr=(0,lm.Zp)({richTextV1:xe},Dr);Wr&&(xr.lineHeight=Wr)}Fe(xr)},Io=()=>{var Xo;const Ta=se.trim()?se:"\u6587\u672C\u6837\u5F0F";n==="create"&&m({type:"entry:libStyle:text:create",payload:{title:Ta,desc:ve,textAttr:xe,sup:h,refStyles:p}}),n==="edit"&&m({type:"entry:libStyle:text:edit",payload:{title:Ta,desc:ve,textAttr:xe,refStyles:p,currentKey:c,isNeedUpdateWidget:!0}}),m({type:"style-lib:set:attr",payload:{cacheLocalLibTag:Math.random()}}),v&&v(),x(),xl.U4.protoStyleTrack((Xo=MB)==null||(Xo=Xo.user)==null?void 0:Xo.id,n==="create"?"\u521B\u5EFA":"\u66F4\u65B0","text")},mo=()=>{A&&A(),x()},So=Xo=>{R||Xo.target.closest("#lib-panel-text-edit-modal")||Xo.target.closest(".--mb--color-picker")||Xo.target.closest(".font-options-menu")||Xo.target.closest(".font-size-input-menu")||Xo.target.closest("#font-list-panel")||Xo.target.closest(".context-menu-mask")||Xo.target.closest(".WorkspaceSelectMenu")||mo()},ho=Xo=>{Xo.key==="Enter"&&Io()},No=(0,l.useCallback)(()=>({left:Z-242-2,top:ee}),[Z,ee]);return(0,Ki.createPortal)((0,o.jsx)(Qa.A,{position:{left:Z,top:ee},dragContainer:"lib-panel-text-edit-modal",onMove:Mt,onMoveStart:()=>Cn(!0),onMoveEnd:()=>Cn(!1),children:(0,o.jsxs)(cm,{id:"lib-panel-text-edit-modal",children:[(0,o.jsxs)("header",{type:"draggable",children:[(0,o.jsx)("span",{className:"title",children:n==="create"?"\u521B\u5EFA\u6587\u672C\u6837\u5F0F":"\u7F16\u8F91\u6587\u672C\u6837\u5F0F"}),(0,o.jsx)("div",{className:"right-content",children:(0,o.jsx)(xt.C,{className:"times-icon",name:"general/times",size:20,onClick:mo})})]}),(0,o.jsxs)("div",{className:"content",children:[(0,o.jsxs)("div",{className:"text-preview",style:hn,children:[(xe==null?void 0:xe.listValue)==="ordered-list-item"&&(0,o.jsx)("span",{className:"ordered-item-view",children:"1."}),(xe==null?void 0:xe.listValue)==="unordered-list-item"&&(0,o.jsx)("span",{className:"unordered-item-view",children:"\u25CF"}),"Font\xA0123"]}),(0,o.jsxs)("div",{className:C()("has-padding-content",{"has-more":et}),children:[(0,o.jsx)(od,{title:se,desc:ve,onSetTitle:he,onSetDesc:Te}),et&&(0,o.jsxs)(Xm.M,{className:"font-setting",children:[(0,o.jsx)(X2.X,{dispatch:m,wbiVersion:3,fontFamily:xe.fontFamily,fontWeight:xe.fontWeight,fontStyle:lt,onChangeBatch:Co,onFakeOverrideChange:Pn}),(0,o.jsx)(im.L,{textColor:xe.textColor,isTextEditing:!1,fontSize:xe.fontSize,fontStyle:lt,fontFamily:xe.fontFamily,textDecoration:St,fontWeight:xe.fontWeight,boldType:Ct,boldAttr:"boldType",newOverOld:!0,dispatch:m,isDisabledFontRadioLine:!1,colorAttr:"textColor",isRichText:!0,onChange:ro,hasMissFontHi:Xe,cloudFontLocalList:k,supAttr:"richTextV1",canOpenLib:!0,canAddVar:!1,canCreateColorRef:!1,refStyles:p,onPosition:No}),(0,o.jsx)(sm.O,{lineHeight:xe.lineHeight,letterSpacing:xe.letterSpacing,onChange:ro,fontFamily:xe.fontFamily,fontSize:xe.fontSize,paddingTuple:xe.paddingTuple,paraSpacing:xe.paraSpacing,isClipText:xe.isClipText,fontDirection:xe.fontDirection,listValue:xe.listValue,isWRichText:!0,hideLineHeight:!1,isMissFont:!1,name:"wRichText",isShowLink:!1,isShowSizeType:!1,canAddVar:!1})]})]}),(0,o.jsxs)("div",{className:C()("footer",{"has-more":et}),children:[(0,o.jsx)("span",{className:"is-more",onClick:Et,children:et?"\u6536\u8D77\u66F4\u591A":"\u66F4\u591A\u8BBE\u7F6E"}),(0,o.jsx)("button",{className:"create-button",onClick:Io,children:n==="create"?"\u521B\u5EFA":"\u786E\u8BA4"})]})]}),(0,o.jsx)(Ls.A,{target:document,onMouseDown:(0,Ls.t)(So,{capture:!0}),onKeyDown:ho})]})}),(0,I0.w)())};var Ns=s(8614);const qm=M.Ay.div.withConfig({displayName:"style__StyledManageStyleLibModal",componentId:"sc-1reruhx-0"})(["width:760px;height:600px;position:fixed;z-index:199;background:",";box-shadow:2px 8px 20px 0px rgba(0,0,0,0.10);border:1px solid ",";border-radius:8px;&.upload,&.var-detail{width:480px;margin-left:120px;}header{height:50px;display:flex;justify-content:space-between;align-items:center;padding:0 16px;border-bottom:1px solid ",";color:",";font-weight:500;font-size:14px;.right-content{.svg-icon{",";}}}.content{display:flex;height:550px;.right-panel{flex:1;width:100%;.scroll-content{height:500px;overflow-y:scroll;padding-top:20px;}footer{width:100%;height:48px;border-top:1px solid ",";display:flex;align-items:center;padding:0 20px;background-color:",";border-bottom-left-radius:8px;border-bottom-right-radius:8px;button:last-child{margin-left:auto;}.footer-button-wrap{display:flex;align-items:center;justify-content:center;margin-left:auto;button:last-child{margin-left:8px;}}.upload-tips-content{display:flex;color:",";align-items:center;.svg-icon{margin-right:6px;}}}}}ul{list-style:none;}button.solid{",";height:28px;font-weight:500;}button.blue{",";}.loading{width:80px;height:80px;position:absolute;top:50%;left:50%;margin-left:40px;margin-top:-40px;}"],e=>e.theme.color_bg_white,e=>e.theme.color_bg_border_01,e=>e.theme.color_bg_border_01,e=>e.theme.color_text_L1,Fl.eK,e=>e.theme.color_bg_border_01,e=>e.theme.color_bg_white,e=>e.theme.color_text_L3,Fl.FC,Fl._j),$m=M.Ay.ul.withConfig({displayName:"style__StyledLibsList",componentId:"sc-1reruhx-1"})(["padding:10px 8px 20px 8px;display:flex;flex-direction:column;min-width:160px;height:100%;list-style:none;align-items:center;background:",";border-right:1px solid ",";.left-lib-item{height:32px;display:flex;align-items:center;padding-left:12px;color:",";margin-bottom:6px;border-radius:6px;width:100%;cursor:pointer;position:relative;svg.svg-icon{margin-right:4px;&.icon-local{path{stroke:currentColor;}}}&:not(.divider):hover,&:not(.divider).is-active{background:",";}&.is-active{font-weight:500;}&.divider{height:1px;background:",";}&.local{svg.svg-icon > *{fill:none;}}.update-red-tip{top:8px;right:42px;}}"],e=>e.theme.color_navigation_hover,e=>e.theme.color_bg_border_01,e=>e.theme.color_text_L1,e=>e.theme.color_navigation_active,e=>e.theme.color_bg_border_01),ef=[{label:"\u672C\u5730\u8D44\u6E90\u5E93",value:"local",icon:"lib/manage/local"},{label:"\u66F4\u65B0\u8D44\u6E90\u5E93",value:"update",icon:"lib/manage/update"},{label:"\u56E2\u961F\u8D44\u6E90\u5E93",value:"team",icon:"lib/manage/team"},...ENV.IS_ON_PREMISES?[]:[{label:"",value:"divider",icon:""},{label:"\u7CBE\u9009\u8D44\u6E90\u5E93",value:"recommend",icon:"lib/manage/recommand"}]],tf=e=>{let{currentTab:t,onSetCurrentTab:n}=e;const a=(0,r.d4)(Ns.eP),i=(0,r.d4)(me.wA),c=(0,r.wA)(),d=p=>{n(p),c({type:"style-lib:set:currentManagePanel",payload:"home"})};return(0,o.jsx)($m,{children:ef.map(p=>(0,o.jsxs)("li",{className:"left-lib-item "+p.value+" "+(t===p.value?"is-active":""),onClick:()=>d(p.value),children:[p.value==="update"&&a.length>0&&(0,o.jsx)(_t.Jz,{className:"update-red-tip"}),p.icon&&(0,o.jsx)(xt.C,{className:"icon-"+p.value,name:p.icon,size:20}),p.label&&(0,o.jsx)("span",{children:p.value!=="team"||i?p.label:"\u6211\u7684\u8D44\u6E90\u5E93"})]},p.value))})};var J2=s(26998);const nf=M.Ay.div.withConfig({displayName:"style__StyledLocalContentPanel",componentId:"sc-1ifn4yh-0"})(["li.lib-list-item{color:",";margin-bottom:8px;display:flex;flex-direction:column;&.local{.title{margin-top:10px;}}.title{height:32px;margin-bottom:8px;display:flex;align-items:center;padding:0 20px;}.lib-content{display:flex;padding:8px 20px;cursor:pointer;&:hover{background:",";}.cover{width:110px;height:82px;border-radius:8px;border:1px solid ",";}.right-content{display:flex;align-items:center;justify-content:space-between;flex:1;margin-left:16px;.name-wrap{flex-direction:column;display:flex;flex:1;.name{color:",";font-weight:500;font-size:13px;display:flex;align-items:center;span{max-width:280px;",";}}.space-name{color:",";}.updates-nums{border-radius:4px;background:",";color:",";font-weight:400;padding:3px 4px;margin-left:8px;font-size:11px;}.is-withdraw{border-radius:4px;background:",";padding:3px 4px;margin-left:8px;color:",";font-size:11px;font-weight:400;}}.button-wrap{display:flex;button:last-child{margin-left:12px;}button{height:28px;}}.blue.upload{height:28px;font-weight:500;}}}}footer{button{height:28px;}.footer-title{color:",";}}"],e=>e.theme.color_text_L1,e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_bg_border_02,e=>e.theme.color_text_L1,za.L9,e=>e.theme.color_text_L3,e=>e.theme.color_info_bg,e=>e.theme.color_text_link_normal,e=>e.theme.color_bg_border_01,e=>e.theme.color_text_L2,e=>e.theme.color_text_L1),of=M.Ay.div.withConfig({displayName:"style__StyledUploadComponent",componentId:"sc-1ifn4yh-1"})(["textarea.upload-reson-input{margin:0 20px;border:none;resize:none;outline:none;height:52px;padding:8px;border-radius:8px;background:",";color:",";width:-webkit-fill-available;&::placeholder{color:",";}}.upload-content{margin-top:20px;.upload-title-wrap{height:32px;display:flex;align-items:center;padding:0px 20px;.upload-title{font-weight:500;color:",";}.upload-nums{border-radius:4px;background:",";margin-left:5px;padding:0 3.5px;color:",";}}}ul{li.upload-style-ref-item{span.item-title{height:32px;display:flex;align-items:center;padding:0px 20px;color:",";}ul.item-list{display:flex;flex-direction:column;width:100%;li.upload-list-item{display:flex;padding:0px 20px;width:100%;height:56px;display:flex;align-items:center;.margin-right-20{margin-right:20px;}&:hover{background:",";cursor:pointer;}.thumbnail-wrapper:not(.appear-ref-view-item):not(.has-opacity){width:40px;height:40px;flex:0 0 40px;&:before{width:40px;height:40px;}}.appear-ref-view-item.list{width:40px;height:40px;flex:0 0 40px;border-radius:4px;}.view-item{width:40px;height:40px;border-radius:4px;background:",";border:1px solid ",";flex:0 0 40px;}.var-view-item{width:40px;height:40px;padding:10px;border-radius:4px;background:",";border:1px solid ",";display:flex;align-items:center;justify-content:center;.svg-icon{color:",";}}.muban-img-box{width:40px;height:40px;border-radius:4px;border:1px solid ",";background:",";overflow:hidden;padding:4px;flex:0 0 40px;}img{-webkit-user-drag:none;object-fit:contain;width:100%;height:100%;}.content-wrap{flex:1;display:flex;white-space:nowrap;overflow:hidden;.desc{color:",";margin-left:10px;}}.upload-item-right-content{display:flex;justify-content:space-between;flex:1;color:",";.upload-item-name{color:",";font-weight:500;}.upload-change{display:flex;align-items:center;justify-content:center;.arrow-left{margin-left:4px;.svg-icon{width:6px;height:10px;color:",";}}}&.color,&.style,&.muban{.upload-item-name{",";max-width:280px;}}}}}&.var{li.upload-list-item{&:hover{background:",";cursor:pointer;}}}&.no-update{.upload-title-wrap{.arrow-down{margin-right:4px;.svg-icon{width:6px;height:10px;color:",";}}&.is-expand{.arrow-down{transform:rotate(90deg);}}&:hover{background:",";cursor:pointer;}}ul.item-list{li.upload-list-item{&.var{.right-content{color:",";margin-left:auto;.triangle-down{transform:rotate(-90deg);margin-left:9px;}}}.upload-item-name.item-list-item-name{",";max-width:330px;}}}}}}"],e=>e.theme.color_bg_card,e=>e.theme.color_text_L1,e=>e.theme.color_text_L3,e=>e.theme.color_text_L1,e=>e.theme.color_bg_border_01,e=>e.theme.color_text_L2,e=>e.theme.color_text_L1,e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_bg_border_02,e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_bg_border_02,e=>e.theme.color_text_L1,e=>e.theme.color_bg_border_01,e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_text_L3,e=>e.theme.color_text_L3,e=>e.theme.color_text_L1,e=>e.theme.color_text_L1,za.L9,e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_text_L3,e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_text_L3,za.L9),af=M.Ay.ul.withConfig({displayName:"style__StyledHomeComponent",componentId:"sc-1ifn4yh-2"})(["height:550px;overflow-y:scroll;button.to-recommand-tab{margin:11px 20px;width:558px;height:28px;padding:0;}"]),q2=M.Ay.div.withConfig({displayName:"style__StyledUpgradeContent",componentId:"sc-1ifn4yh-3"})(["height:136px;position:relative;margin:0 20px;margin-top:10px;display:flex;flex-direction:column;border-radius:10px;background:",";overflow:hidden;padding:16px;.title{color:",";font-size:14px;font-weight:500;}.desc{color:",";font-size:12px;margin:12px 0;}img{position:absolute;width:100%;height:100%;top:0;left:0;pointer-events:none;}.button-wrapper{display:flex;margin-left:auto;.blue{margin-left:12px;}}"],e=>e.theme.color_navigation_hover,e=>e.theme.color_text_L1,e=>e.theme.color_text_L3),fh=e=>{let{type:t,title:n,canUploadLocal:a,onSetCanUploadLocal:i}=e;const[c,d]=(0,l.useState)(0),p=(0,r.d4)(Ns.oo),h=(0,r.d4)(Ns.xg),m=(0,r.d4)(me.PL),x=(0,r.d4)(me.wA),v=(0,r.d4)(me.HW),A=(0,r.d4)(me.m1),k=(0,r.d4)(Ns.ap),R=(0,r.d4)(Ns.nC),F=(0,r.wA)(),Z=(0,l.useMemo)(()=>{const Te=(0,J2.g)(v),xe=(0,tr.lP)(x),Fe=Te==="free",et=!(xe==="trial"||xe==="paid");return x&&m.is_org_project?et:Fe},[x,m.is_org_project,v]);(0,l.useEffect)(()=>{(async()=>{if(t==="local")if(k){const xe=MB.sclibKey,Fe=await(0,ms.G8)(R.get(xe)),et=Fe.add.length+Fe.del.length+Fe.chg.length;et>0&&F({type:"style-lib:set:attr",payload:{localStyleUpdateDiff:Fe}}),i==null||i(et>0),d(et)}else{const xe=[...(0,ms.xT)({type:"all"}),...(0,ms.Ny)(),...(0,ms.r)()];i==null||i(xe.length>0),d(xe.length)}})()},[k]);const G=(0,l.useMemo)(()=>{var Te;return t==="added"?p:t==="used"?h:[{hotAttr:{name:m.name,extData:m!=null&&m.is_custom_cover?m==null?void 0:m.custom_cover:(Te=m==null?void 0:m.cover)!=null?Te:"",extInfo:{flatKey:MB.sclibKey,projectCid:m.cid}},key:"local"}]},[t,p,h,m.name,m.cid,m==null?void 0:m.is_custom_cover,m==null?void 0:m.custom_cover,m==null?void 0:m.cover]),ee=Te=>{a&&(Te.stopPropagation(),F({type:"style-lib:set:currentManagePanel",payload:"upload"}))},ce=(Te,xe)=>{Te.stopPropagation(),sdkStore.updateHotAttrKV(xe.key,"extInfo",{...xe.hotAttr.extInfo,isRemove:!0}),F({type:"entry:libStyle:remove:addedLibList",payload:{key:xe.key}}),(0,S1.Cj)()},se=(Te,xe)=>{Te.stopPropagation(),sdkStore.deleteHotItem(xe),F({type:"style-lib:remove:usedLibList",payload:{key:xe}}),(0,S1.Cj)()},he=(Te,xe)=>{var Fe;Te.stopPropagation(),sdkStore.updateHotAttrKV(xe.key,"extInfo",{...xe.hotAttr.extInfo,isRemove:!1}),F({type:"entry:libStyle:add:usedLib:form:usedLibList",payload:{key:xe.key}}),F({type:"entry:libStyle:update:mubanPanel:libMubanTreeMap",payload:{libFlatKey:xe.hotAttr.extInfo.flatKey}}),xl.U4.protoMasterUseTrack((Fe=MB)==null||(Fe=Fe.user)==null?void 0:Fe.id,"\u672C\u5730\u8D44\u6E90","\u6DFB\u52A0")},ve=(Te,xe)=>{var Fe;t==="local"&&!a&&!k||t!=="local"&&(Fe=xe.hotAttr)!=null&&Fe.isCanNotUse||(Te.stopPropagation(),F({type:"style-lib:set:attr",payload:{currentManagePanel:"detail",detailLib:xe}}))};return Z&&t==="local"?(0,o.jsx)(sf,{currentOrg:x,currentProject:m}):G.length===0?null:(0,o.jsxs)("li",{className:C()("lib-list-item",{[t]:t}),children:[(0,o.jsx)("span",{className:"title",children:n}),G.map(Te=>(0,o.jsxs)("div",{className:"lib-content",onClick:xe=>ve(xe,Te),children:[(0,o.jsx)("img",{className:"cover",src:Te.hotAttr.extData||"/mb-proto2/images/lib/lib-emtry.png",onError:xe=>{xe.target.src="/mb-proto2/images/lib/lib-emtry.png",xe.target.onerror=null}}),(0,o.jsxs)("div",{className:"right-content",children:[(0,o.jsxs)("div",{className:"name-wrap",children:[(0,o.jsxs)("div",{className:"name",children:[(0,o.jsx)("span",{children:Te.hotAttr.name}),t==="local"&&c>0&&(0,o.jsx)("div",{className:"updates-nums",children:c+"\u5904\u66F4\u65B0"}),t==="used"&&Te.hotAttr.isCanNotUse&&(0,o.jsx)("span",{className:"is-withdraw",children:"\u5DF2\u88AB\u64A4\u56DE"})]}),x&&(0,o.jsx)("span",{className:"space-name",children:A.name})]}),t==="local"&&(0,o.jsx)("button",{className:C()("blue upload",{disabled:!a}),onClick:ee,children:k?"\u53D1\u5E03\u66F4\u65B0":"\u53D1\u5E03"}),t==="added"&&(0,o.jsx)("button",{className:"solid move",onClick:xe=>ce(xe,Te),children:"\u79FB\u9664"}),t==="used"&&(0,o.jsxs)("div",{className:"button-wrap",children:[(0,o.jsx)("button",{className:"solid delete",onClick:xe=>se(xe,Te.key),children:"\u5220\u9664"}),!Te.hotAttr.isCanNotUse&&(0,o.jsx)("button",{className:"blue add",onClick:xe=>he(xe,Te),children:"\u6DFB\u52A0"})]})]})]},Te.key))]})},rf=e=>{let{onSetCurrentTab:t,canUploadLocal:n,onSetCanUploadLocal:a}=e;const i=(0,r.wA)(),c=()=>{t("recommend"),i({type:"style-lib:set:currentManagePanel",payload:"home"})};return(0,o.jsxs)(af,{children:[(0,o.jsx)(fh,{type:"local",title:"\u5F53\u524D\u6587\u4EF6\u521B\u5EFA\u7684",canUploadLocal:n,onSetCanUploadLocal:a}),(0,o.jsx)(fh,{type:"added",title:"\u5DF2\u6DFB\u52A0\u7684\u8D44\u6E90\u5E93"}),(0,o.jsx)(fh,{type:"used",title:"\u4F7F\u7528\u8FC7\u7684\u8D44\u6E90\u5E93"}),!ENV.IS_ON_PREMISES&&(0,o.jsx)("button",{className:"solid to-recommand-tab",onClick:c,children:"\u53D1\u73B0\u7CBE\u9009\u8D44\u6E90\u5E93"})]})},sf=e=>{let{currentOrg:t,currentProject:n}=e;const a=()=>{const i=(0,Ra.l)(t,"\u7F16\u8F91\u533A_\u8D44\u6E90\u53D1\u5E03\u5F39\u7A97_\u5347\u7EA7","workspace-v8_libmodal_upgrade");MB.global.popupHelper.chargeAsync(i)};return(0,o.jsxs)(q2,{children:[(0,o.jsx)("img",{src:"/mb-proto2/images/lib/upgrade-background.png"}),(0,o.jsx)("span",{className:"title",children:"\u5C06\u672C\u5730\u6BCD\u7248\u3001\u6837\u5F0F\u548C\u53D8\u91CF\u53D1\u5E03\u4E3A\u8D44\u6E90\u5E93"}),(0,o.jsx)("span",{className:"desc",children:"\u5347\u7EA7\u58A8\u5200\u539F\u578B\u4F1A\u5458\u540E\uFF0C\u652F\u6301\u5C06\u5F53\u524D\u6587\u4EF6\u7684\u6BCD\u7248\u3001\u6837\u5F0F\u53CA\u53D8\u91CF\u7B49\u8BBE\u8BA1\u8D44\u6E90\u7EDF\u4E00\u53D1\u5E03\u81F3"+(n!=null&&n.is_org_project?"\u56E2\u961F":"\u6211\u7684")+"\u8D44\u6E90\u5E93\uFF0C\u4ECE\u800C\u5B9E\u73B0\u5728\u5176\u4ED6\u6587\u4EF6\u4E2D\u5FEB\u901F\u8C03\u7528\u6216\u590D\u7528\u76F8\u5173\u8D44\u6E90"}),(0,o.jsxs)("div",{className:"button-wrapper",children:[(0,o.jsx)("button",{className:"solid",onClick:a,children:"\u5347\u7EA7\u4F1A\u5458"}),(0,o.jsx)("button",{className:"blue",onClick:a,children:"\u53D1\u5E03\u8D44\u6E90"})]})]})};var Yp=s(47946),cl=s(79150),M1=s(19376),$l=s(62587),G0=s(33573),xd=s(88194),Xp=s(57514),T0=s(83672),Qp=s(82009);const gh=e=>{let{list:t,diffType:n}=e;const a=[],i=[],c=[],d=[];for(const x of t){var p,h,m;const v=sdkStore.getHotItem(x.key);((v==null||(p=v.hotAttr)==null?void 0:p.styleType)==="text"||(v==null||(h=v.hotAttr)==null?void 0:h.styleType)==="appear")&&i.push({...v,diffType:n}),(v==null||(m=v.hotAttr)==null?void 0:m.styleType)==="color"&&a.push({...v,diffType:n}),(v==null?void 0:v.hotAttr.type)==="rResBunch"&&c.push({...v,diffType:n}),(v==null?void 0:v.hotAttr.type)==="rResVar"&&d.push({...v,diffType:n})}return{uploadColorList:a,updateStyleList:i,uploadMubanList:c,uploadVarList:d}},Jf=e=>{let{onClose:t,onSetVarDetailData:n}=e;const[a,i]=(0,l.useState)(!1),[c,d]=(0,l.useState)(""),[p,h]=(0,l.useState)([]),[m,x]=(0,l.useState)([]),[v,A]=(0,l.useState)([]),[k,R]=(0,l.useState)([]),[F,Z]=(0,l.useState)([]),G=(0,r.d4)(me.YT),ee=(0,r.d4)(me.PL),ce=(0,r.d4)(me.H7),se=(0,r.d4)(me.HW),he=(0,r.d4)(Ns.ap),ve=(0,r.d4)(Ns.R0),Te=(0,l.useRef)(null),xe=(0,r.wA)();(0,l.useEffect)(()=>{if(he){const{uploadColorList:Xe,uploadMubanList:lt,uploadVarList:Ct,updateStyleList:St}=gh({list:ve.add,diffType:"add"}),{uploadColorList:hn,uploadMubanList:Cn,uploadVarList:Mt,updateStyleList:Et}=gh({list:ve.del,diffType:"del"}),{uploadColorList:Co,uploadMubanList:Pn,uploadVarList:ro,updateStyleList:Io}=gh({list:ve.chg,diffType:"chg"});h([...Xe,...hn,...Co]),x([...St,...Et,...Io]),A([...lt,...Cn,...Pn]),R([...Ct,...Mt,...ro]),Z([...ve.noChg])}else{const Xe=(0,ms.xT)({type:"all"});h(Xe.filter(lt=>lt.hotAttr.styleType==="color")),x(Xe.filter(lt=>lt.hotAttr.styleType!=="color")),A((0,ms.Ny)()),R((0,ms.r)()),Z([])}},[he,ve,ve.add,ve.chg,ve.del]);const Fe=()=>{i(!a)},et=async()=>{var Xe,lt,Ct;MB.notice({type:"loading",text:"\u53D1\u5E03\u4E2D..."});const St=(Xe=sdkStore.getHotItem("B@style"))==null?void 0:Xe.sub,hn=(lt=sdkStore.getHotItem("B@ref-muban"))==null?void 0:lt.sub,Cn=(Ct=sdkStore.getHotItem("B@var"))==null?void 0:Ct.sub;if((St==null?void 0:St.length)===0&&(hn==null?void 0:hn.length)===0&&(Cn==null?void 0:Cn.length)===0){const Ta=await(0,Qp.OO)(ee.cid);(Ta==null?void 0:Ta.result)==="SUCCESS"&&(xe({type:"style-lib:set:attr",payload:{isCurrentProjectSclib:!1,currentManagePanel:"home"}}),MB.notice({type:"success",text:"\u8D44\u6E90\u5E93\u53D1\u5E03\u6210\u529F"}),t());return}const Mt=sdkStore.__devFlatStore().getFlatTree().fork();for(const Ta of Mt.get(Za.$k).sub)n0(Mt,Ta);for(const Ta of[...((Et=Mt.get(Jd.Ri))==null?void 0:Et.sub)||[],...((Co=Mt.get(Za.Ex))==null?void 0:Co.sub)||[]]){var Et,Co;n0(Mt,Ta)}for(const Ta of[...((Pn=Mt.get(Za.nK))==null?void 0:Pn.sub)||[]]){var Pn,ro;(ro=Mt.get(Ta))!=null&&ro.attr.lK&&n0(Mt,Ta)}for(const Ta of[...((Io=Mt.get(Za.W4))==null?void 0:Io.sub)||[],...((mo=Mt.get(Za.YZ))==null?void 0:mo.sub)||[]]){var Io,mo;n0(Mt,Ta)}const So=await(0,tp.GT)(Mt,ce.cid,ee.cid);MB.sclibKey||(MB.sclibKey=So==null?void 0:So.flpakKey);const ho=JSON.stringify({desc:c,updateUser:se.name,updateTime:rootSdk.fssCmt.getClockStore().getMtime()});if((await(0,Qp.PP)({cid:ee.cid,info:ho})).result==="SUCCESS"){var Xo;xe({type:"style-lib:set:attr",payload:{isCurrentProjectSclib:!0,currentManagePanel:"home"}});const{sdkStore:Ta}=await(0,Yp.tr)({flpakKey:So==null?void 0:So.flpakKey});xe({type:"style-lib:set:libSdkStoreMap",payload:{key:So==null?void 0:So.flpakKey,value:Ta,type:"update"}}),MB.notice({type:"success",text:"\u8D44\u6E90\u5E93\u53D1\u5E03\u6210\u529F"}),t(),xl.U4.protoMasterPublishTrack((Xo=MB)==null||(Xo=Xo.user)==null?void 0:Xo.id,he?"\u53D1\u5E03\u66F4\u65B0":"\u53D1\u5E03")}},Ke=Xe=>{d(Xe.target.value)},Qe=(0,l.useMemo)(()=>F.filter(Xe=>Xe.hotAttr.type==="rResVar"),[F]),nt=(Xe,lt)=>{n(Xe,lt),xe({type:"style-lib:set:attr",payload:{currentManagePanel:"var-detail"}})};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(of,{className:"scroll-content",children:[(0,o.jsx)("textarea",{placeholder:"\u8BF4\u660E\u66F4\u65B0\u539F\u56E0",value:c,className:"upload-reson-input",maxLength:200,onChange:Ke}),(0,o.jsxs)("div",{className:"upload-content",children:[(0,o.jsxs)("div",{className:"upload-title-wrap",children:[(0,o.jsx)("span",{className:"upload-title",children:"\u66F4\u65B0\u5185\u5BB9"}),(0,o.jsx)("span",{className:"upload-nums",children:p.length+m.length+v.length+k.length})]}),(0,o.jsxs)("ul",{children:[k.length>0&&(0,o.jsxs)("li",{className:"upload-style-ref-item var",children:[(0,o.jsx)("span",{className:"item-title",children:"\u53D8\u91CF"}),(0,o.jsx)("ul",{className:"item-list",children:(0,o.jsxs)("li",{className:"upload-list-item",onClick:()=>nt(k,"has-change"),children:[(0,o.jsx)("div",{className:"var-view-item margin-right-20",children:(0,o.jsx)(xt.C,{name:"setting_panel/libPanel/var",size:20})}),(0,o.jsxs)("div",{className:"upload-item-right-content var",children:[(0,o.jsx)("span",{className:"upload-item-name",children:"\u53D8\u91CF"}),(0,o.jsxs)("div",{className:"upload-change",children:[(0,o.jsx)("span",{children:k.length+" \u4E2A\u66F4\u65B0"}),(0,o.jsx)(cl.A,{name:"design/arrow/right",className:"arrow-left",iconBoxSize:16})]})]})]})})]}),p.length>0&&(0,o.jsxs)("li",{className:"upload-style-ref-item color",children:[(0,o.jsx)("span",{className:"item-title",children:"\u989C\u8272"}),(0,o.jsx)("ul",{className:"item-list color-list",children:p.map((Xe,lt)=>{const Ct={fill:"solid",fillIsVisible:!0,solidColor:Xe.hotAttr.fill},St=Ct&&(0,$l.$8)(Ct,{w:200,h:100});return(0,o.jsxs)("li",{className:"upload-list-item",children:[(0,o.jsx)(M1.I,{className:"margin-right-20",ref:Te,color:St,index:lt,solidRenderType:"rect",size:40}),(0,o.jsxs)("div",{className:"upload-item-right-content color",children:[(0,o.jsx)("span",{className:"upload-item-name",children:Xe.hotAttr.name}),(0,o.jsx)("span",{children:I18N.libPanel.manage.diff[Xe.diffType||"add"]})]})]},Xe.key)})})]}),m.length>0&&(0,o.jsxs)("li",{className:"upload-style-ref-item style",children:[(0,o.jsx)("span",{className:"item-title",children:"\u6837\u5F0F"}),(0,o.jsx)("ul",{className:"item-list style-list",children:m.map((Xe,lt)=>(0,o.jsxs)("li",{className:"upload-list-item",children:[Xe.hotAttr.styleType==="appear"&&(0,o.jsx)(Xp.U,{className:"margin-right-20",appearStyle:Xe,index:lt,size:40}),Xe.hotAttr.styleType==="text"&&(0,o.jsx)(T0.c,{className:"margin-right-20",textStyle:Xe}),(0,o.jsxs)("div",{className:"upload-item-right-content style",children:[(0,o.jsxs)("div",{className:"content-wrap",children:[(0,o.jsx)("span",{className:"upload-item-name",children:Xe.hotAttr.name}),Xe.hotAttr.styleType==="text"&&(0,o.jsxs)("span",{className:"desc",children:[Xe.hotAttr.fontSize,"/",Xe.hotAttr.lineHeight]})]}),(0,o.jsx)("span",{children:I18N.libPanel.manage.diff[Xe.diffType||"add"]})]})]},Xe.key))})]}),v.length>0&&(0,o.jsxs)("li",{className:"upload-style-ref-item muban",children:[(0,o.jsx)("span",{className:"item-title",children:"\u6BCD\u7248"}),(0,o.jsx)("ul",{className:"item-list muban-list",children:v.map(Xe=>(0,o.jsxs)("li",{className:"upload-list-item",children:[(0,o.jsx)("div",{className:"muban-img-box margin-right-20",children:(0,o.jsx)(G0.Ay,{projectMetaCid:G.cid,snapshotKey:Xe.hotAttr.defaultCanvasKey,isVisible:!0,mode:xd.rY.PNG_CANVAS})}),(0,o.jsxs)("div",{className:"upload-item-right-content muban",children:[(0,o.jsx)("span",{className:"upload-item-name",children:Xe.hotAttr.name}),(0,o.jsx)("span",{children:I18N.libPanel.manage.diff[Xe.diffType||"add"]})]})]},Xe.key))})]}),F.length>0&&(0,o.jsxs)("li",{className:"upload-style-ref-item no-update",children:[(0,o.jsxs)("div",{className:C()("upload-title-wrap",{"is-expand":a}),onClick:Fe,children:[(0,o.jsx)(cl.A,{name:"design/arrow/right",className:"arrow-down",iconBoxSize:16}),(0,o.jsx)("span",{className:"upload-title",children:"\u65E0\u66F4\u65B0"}),(0,o.jsx)("span",{className:"upload-nums",children:F.length})]}),a&&(0,o.jsxs)("ul",{className:"item-list",children:[Qe.length>0&&(0,o.jsxs)("li",{className:"upload-list-item var",onClick:()=>nt(Qe,"no-change"),children:[(0,o.jsx)("div",{className:"var-view-item margin-right-20",children:(0,o.jsx)(xt.C,{name:"setting_panel/libPanel/var",size:20})}),(0,o.jsxs)("div",{className:"upload-item-right-content var",children:[(0,o.jsx)("span",{className:"upload-item-name",children:"\u53D8\u91CF"}),(0,o.jsxs)("div",{className:"upload-change",children:[(0,o.jsx)("span",{children:Qe.length+" \u4E2A\u66F4\u65B0"}),(0,o.jsx)(cl.A,{name:"design/arrow/right",className:"arrow-left",iconBoxSize:16})]})]})]},"var"),F.filter(Xe=>Xe.hotAttr.styleType==="color").map((Xe,lt)=>{const Ct={fill:"solid",fillIsVisible:!0,solidColor:Xe.hotAttr.fill},St=Ct&&(0,$l.$8)(Ct,{w:200,h:100});return(0,o.jsxs)("li",{className:"upload-list-item",children:[(0,o.jsx)(M1.I,{className:"margin-right-20",ref:Te,color:St,solidRenderType:"rect",index:lt,size:40}),(0,o.jsx)("span",{className:"upload-item-name item-list-item-name",children:Xe.hotAttr.name})]},Xe.key)}),F.filter(Xe=>Xe.hotAttr.styleType==="appear"||Xe.hotAttr.styleType==="text").map((Xe,lt)=>(0,o.jsxs)("li",{className:"upload-list-item",children:[Xe.hotAttr.styleType==="appear"&&(0,o.jsx)(Xp.U,{className:"margin-right-20",appearStyle:Xe,size:40,index:lt}),Xe.hotAttr.styleType==="text"&&(0,o.jsx)(T0.c,{className:"margin-right-20",textStyle:Xe}),(0,o.jsxs)("div",{className:"content-wrap",children:[(0,o.jsx)("span",{className:"upload-item-name item-list-item-name",children:Xe.hotAttr.name}),Xe.hotAttr.styleType==="text"&&(0,o.jsxs)("span",{className:"desc",children:[Xe.hotAttr.fontSize,"/",Xe.hotAttr.lineHeight]})]})]},Xe.key)),F.filter(Xe=>Xe.hotAttr.type==="rResBunch").map(Xe=>(0,o.jsxs)("li",{className:"upload-list-item",children:[(0,o.jsx)("div",{className:"muban-img-box margin-right-20",children:(0,o.jsx)(G0.Ay,{projectMetaCid:G.cid,snapshotKey:Xe.hotAttr.defaultCanvasKey,isVisible:!0,mode:xd.rY.PNG_CANVAS})}),(0,o.jsx)("span",{className:"upload-item-name",children:Xe.hotAttr.name})]},Xe.key))]})]})]})]})]}),(0,o.jsxs)("footer",{children:[(ee==null?void 0:ee.is_org_project)&&(0,o.jsxs)("div",{className:"upload-tips-content",children:[(0,o.jsx)(xt.C,{name:"common/invalid",size:16}),(0,o.jsx)("span",{children:"\u53D1\u5E03\u6210\u529F\u540E\uFF0C\u8BE5\u8D44\u6E90\u5E93\u5C06\u5BF9\u56E2\u961F\u5185\u6240\u6709\u6210\u5458\u53EF\u89C1"})]}),(0,o.jsx)("button",{className:"blue",onClick:et,children:"\u53D1\u5E03"})]})]})};var vd=s(46953);const lf=e=>{let{varDetailData:t,type:n}=e;const a=(0,r.wA)(),i=()=>{a({type:"style-lib:set:currentManagePanel",payload:"upload"})};return(0,o.jsxs)(cf,{children:[(0,o.jsxs)("div",{className:"header-nav",children:[(0,o.jsx)(cl.A,{name:"design/arrow/right",className:"back-icon",onClick:i}),(0,o.jsx)("span",{children:n==="no-change"?"\u65E0\u66F4\u65B0\u7684\u53D8\u91CF":"\u6709\u66F4\u65B0\u7684\u53D8\u91CF"}),(0,o.jsx)("span",{className:"nums",children:t.length})]}),(0,o.jsx)("ul",{children:t==null?void 0:t.map(c=>(0,o.jsxs)("li",{children:[(0,o.jsx)("div",{className:"var-view-item",children:(0,o.jsx)(xt.C,{name:""+vd.zY[c.hotAttr.varDataType],size:16})}),(0,o.jsx)("span",{children:c.hotAttr.name}),n==="has-change"&&(0,o.jsx)("span",{className:"diff-type",children:I18N.libPanel.manage.diff[c.diffType||"add"]})]},c.key))})]})},cf=M.Ay.div.withConfig({displayName:"VarDetail__StyledVarDetailComponent",componentId:"sc-1gp2lk1-0"})(["color:",";.header-nav{display:flex;align-items:center;padding:12px 16px;border-bottom:1px solid ",";font-weight:500;.back-icon{margin-right:4px;.svg-icon{width:6px;transform:rotate(180deg);}}.nums{border-radius:4px;padding:0 3px;background:",";color:",";margin-left:8px;}}ul{padding:12px 0;li{display:flex;align-items:center;padding:4px 16px;height:48px;&:hover{background:",";}.var-view-item{width:40px;height:40px;border-radius:4px;border:1px solid ",";background:",";display:flex;align-items:center;justify-content:center;margin-right:20px;.svg-icon{color:",";}}.diff-type{color:",";margin-left:auto;}}}"],e=>e.theme.color_text_L1,e=>e.theme.color_bg_border_01,e=>e.theme.color_bg_border_01,e=>e.theme.color_text_L2,e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_bg_border_02,e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_text_L1,e=>e.theme.color_text_L3);var E1=s(15207),gc=s(93257);const yh=()=>{let e;const[n,a]=(0,l.useState)(!0),i=()=>{a(!0)};return{handleScroll:p=>{p.stopPropagation(),clearTimeout(e),a(!1),e=setTimeout(i,2e3)},getContent:p=>n?p:null}},xh=M.Ay.div.withConfig({displayName:"styled__StyledDetailComponent",componentId:"sc-1x6eflh-0"})(["height:500px;display:flex;flex-direction:column;.header{display:flex;align-items:center;justify-content:space-between;height:68px;padding:0 20px;color:",";border-bottom:1px solid ",";.left-nav-back-wrap{display:flex;align-items:center;.back-icon-box{width:24px;height:24px;border-radius:4px;margin-right:8px;margin-left:-12px;cursor:pointer;display:flex;align-items:center;justify-content:center;&:hover{background:",";}.svg-icon{width:10px;height:5px;transform:rotate(90deg);}}.back-name{display:flex;flex-direction:column;.name{font-weight:500;}.space-name{color:",";}}}.right-content{display:flex;align-items:center;button{margin-left:12px;height:28px;}}}.content-wrap{padding:0 16px;overflow-y:scroll;flex:1;.detail-item{.detail-title{display:flex;align-items:center;height:32px;margin-bottom:8px;color:",";}.detail-list{display:flex;flex-wrap:wrap;margin-bottom:8px;li{&.li-item.color-item{margin-bottom:0;height:18px;display:flex;align-items:center;justify-content:center;}.thumbnail-wrapper:not(.appear-ref-view-item):not(.has-opacity){width:16px;height:16px;border-radius:50%;&::before{border-radius:50%;}.thumbnail{border-radius:50%;}}.appear-ref-view-item,.view-item{width:40px;height:40px;&.view-item{border-radius:4px;background:",";border:1px solid ",";color:",";}}.thumbnail-wrapper.appear-ref-view-item.has-opacity.list{border-radius:4px;}}&.detail-color-list{display:grid;grid-template-columns:repeat(auto-fill,18px);grid-row-gap:8px;grid-column-gap:8px;}&.detail-style-list{display:grid;grid-template-columns:repeat(auto-fill,40px);grid-row-gap:8px;grid-column-gap:12px;}&.detail-muban-list{display:grid;grid-template-columns:repeat(auto-fill,70px);grid-row-gap:8px;grid-column-gap:12px;}}&.var{display:flex;align-items:center;margin-bottom:8px;margin-top:17px;.detail-title{margin-bottom:0;}.detail-nums{border-radius:4px;background:",";margin-left:5px;padding:0 3.5px;color:",";}}&.muban{ul.detail-list{li{width:70px;height:70px;border-radius:6px;border:1px solid ",";background:",";overflow:hidden;padding:8px;img{-webkit-user-drag:none;object-fit:contain;width:100%;height:100%;}}}}}}"],e=>e.theme.color_text_L1,e=>e.theme.color_bg_border_01,e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_text_L3,e=>e.theme.color_text_L1,e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_bg_border_02,e=>e.theme.color_text_L1,e=>e.theme.color_bg_border_01,e=>e.theme.color_text_L2,e=>e.theme.color_bg_border_01,e=>e.theme.color_btn_secondary_hover),vh=e=>{var t,n,a,i,c,d,p,h;let{canUploadLocal:m}=e;const[x,v]=(0,l.useState)(!1),[A,k]=(0,l.useState)(new Map),R=(0,l.useRef)(null),F=(0,r.d4)(me.PL),Z=(0,r.d4)(me.YT),G=(0,r.d4)(Ns.JY),ee=(0,r.d4)(Ns.oo),ce=(0,r.d4)(Ns.xg),se=(0,r.d4)(me.wA),he=(0,r.d4)(me.m1),ve=(0,r.d4)(me.HW),Te=(0,r.d4)(Ns.nC),xe=(0,r.d4)(Ns.ap),Fe=(0,r.wA)(),{handleScroll:et,getContent:Ke}=yh(),Qe=(0,l.useMemo)(()=>{var Et;return(G==null?void 0:G.cid)||(G==null||(Et=G.hotAttr)==null||(Et=Et.extInfo)==null?void 0:Et.projectCid)},[G==null?void 0:G.cid,G==null||(t=G.hotAttr)==null||(t=t.extInfo)==null?void 0:t.projectCid]),nt=(0,l.useMemo)(()=>{var Et;return(G==null?void 0:G.sclib_cid)||(G==null||(Et=G.hotAttr)==null||(Et=Et.extInfo)==null?void 0:Et.flatKey)},[G==null||(n=G.hotAttr)==null||(n=n.extInfo)==null?void 0:n.flatKey,G==null?void 0:G.sclib_cid]);(0,l.useEffect)(()=>{const Et=G.key==="local"?sdkStore:Te.get(nt);if(Et){const Co=new Map;Co.set("color",(0,ms.xT)({type:"color",sdk:Et})),Co.set("style",[...(0,ms.xT)({type:"appear",sdk:Et}),...(0,ms.xT)({type:"text",sdk:Et})]),Co.set("muban",(0,ms.Ny)(Et)),Co.set("var",(0,ms.r)(Et)),Co.size>0&&k(Co)}v(!0)},[G.key,nt,Te]);const Xe=(0,l.useMemo)(()=>ee.findIndex(Et=>Et.hotAttr.extInfo.projectCid===Qe)!==-1,[ee,Qe]),lt=()=>{Fe({type:"style-lib:set:currentManagePanel",payload:"home"})},Ct=()=>{Fe({type:"style-lib:set:currentManagePanel",payload:"upload"})},St=()=>{sdkStore.updateHotAttrKV(G.key,"extInfo",{...G.hotAttr.extInfo,isRemove:!0}),Fe({type:"entry:libStyle:remove:addedLibList",payload:{key:G.key}})},hn=()=>{if(Xe)Fe({type:"entry:libStyle:add:usedLib:form:usedLibList",payload:{key:G.key}});else{const Et=(0,S1.$t)(G,ve);Fe({type:"style-lib:add:addedLibList",payload:Et}),Fe({type:"style-lib:set:attr",payload:{detailLib:Et}}),ce.findIndex(Co=>Co.key===Et.key)!==-1&&Fe({type:"style-lib:remove:usedLibList",payload:{key:Et.key}})}},Cn=()=>{MB.global.popupHelper.confirmAsync({className:"withdraw-sclib-modal",title:"\u64A4\u56DE\u8D44\u6E90",confirmText:"\u64A4\u56DE\u8D44\u6E90",desc:"\u64A4\u56DE\u8D44\u6E90\u4F1A\u5C06\u672C\u6587\u4EF6\u4E2D\u6240\u6709\u8D44\u6E90\u4ECE\u56E2\u961F\u8D44\u6E90\u5E93\u4E2D\u6D88\u5931\uFF0C\u5E76\u4E0E\u5DF2\u5F15\u7528\u8BE5\u8D44\u6E90\u7684\u7EC4\u4EF6\u5168\u90E8\u89E3\u7ED1\u3002",confirmBtnProps:{type:"danger-blue"}}).then(async Et=>{if(Et){const Co=await(0,Qp.OO)(Qe);(Co==null?void 0:Co.result)==="SUCCESS"&&Fe({type:"style-lib:set:attr",payload:{isCurrentProjectSclib:!1}})}})},Mt=()=>{if(Qe.startsWith("mt")){(0,rl.JW)("/com24/details/"+Qe);return}(0,rl.JW)(Qe)};return(0,o.jsx)(o.Fragment,{children:x?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(xh,{children:[(0,o.jsxs)("div",{className:"header",children:[(0,o.jsxs)("div",{className:"left-nav-back-wrap",onClick:lt,children:[(0,o.jsx)("div",{className:"back-icon-box",children:(0,o.jsx)(xt.C,{name:"toolbar/triangle-down"})}),(0,o.jsxs)("div",{className:"back-name",children:[(0,o.jsx)("span",{className:"name",children:(G==null||(a=G.hotAttr)==null?void 0:a.name)||(G==null?void 0:G.name)||F.name}),se&&(0,o.jsx)("span",{className:"space-name",children:he.name})]})]}),(0,o.jsx)("div",{className:"right-content",children:G.key==="local"?(0,o.jsx)("span",{children:"\u5F53\u524D\u6587\u4EF6"}):Xe?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("span",{children:(G==null||(i=G.hotAttr)==null||(i=i.extInfo)==null?void 0:i.addUser)+" \u6DFB\u52A0"}),(0,o.jsx)("button",{className:"solid",onClick:St,children:"\u79FB\u9664"})]}):(0,o.jsx)("button",{className:"blue",onClick:hn,children:"\u6DFB\u52A0"})})]}),(0,o.jsxs)("ul",{className:"content-wrap",onScroll:et,children:[((c=A.get("var"))==null?void 0:c.length)>0&&(0,o.jsxs)("li",{className:"detail-item var",children:[(0,o.jsx)("span",{className:"detail-title",children:"\u53D8\u91CF"}),(0,o.jsx)("span",{className:"detail-nums",children:A.get("var").length})]}),((d=A.get("color"))==null?void 0:d.length)>0&&(0,o.jsxs)("li",{className:"detail-item",children:[(0,o.jsx)("span",{className:"detail-title",children:"\u989C\u8272"}),(0,o.jsx)("ul",{className:"detail-list detail-color-list",children:A.get("color").map((Et,Co)=>{const Pn={fill:"solid",fillIsVisible:!0,solidColor:Et.hotAttr.fill},ro=Pn&&(0,$l.$8)(Pn,{w:200,h:100}),Io=ro&&(0,$l.TQ)(ro);return(0,o.jsx)(gc.A,{content:Ke((0,I0.M)(Et.hotAttr,Io)),direction:"down",delay:500,children:(0,o.jsx)("li",{className:"li-item color-item",children:(0,o.jsx)(M1.I,{ref:R,color:ro,index:Co,solidRenderType:"circle",size:16})})},Et.key)})})]}),((p=A.get("style"))==null?void 0:p.length)>0&&(0,o.jsxs)("li",{className:"detail-item",children:[(0,o.jsx)("span",{className:"detail-title",children:"\u6837\u5F0F"}),(0,o.jsx)("ul",{className:"detail-list detail-style-list",children:A.get("style").map((Et,Co)=>(0,o.jsx)(gc.A,{content:Ke((0,I0.M)(Et.hotAttr,{})),direction:"down",delay:500,children:(0,o.jsxs)("li",{className:"li-item style-item",children:[Et.hotAttr.styleType==="appear"&&(0,o.jsx)(Xp.U,{appearStyle:Et,index:Co,size:40}),Et.hotAttr.styleType==="text"&&(0,o.jsx)(T0.c,{textStyle:Et})]})},Et.key))})]}),((h=A.get("muban"))==null?void 0:h.length)>0&&(0,o.jsxs)("li",{className:"detail-item muban",children:[(0,o.jsx)("span",{className:"detail-title",children:"\u6BCD\u7248"}),(0,o.jsx)("ul",{className:"detail-list detail-muban-list",children:A.get("muban").map(Et=>(0,o.jsx)(gc.A,{content:Ke((0,I0.M)(Et.hotAttr,{})),direction:"down",delay:500,children:(0,o.jsx)("li",{className:"li-item muban-item",children:(0,o.jsx)(G0.Ay,{projectMetaCid:(G==null?void 0:G.key)==="local"?Z.cid:nt,snapshotKey:Et.hotAttr.defaultCanvasKey,isVisible:!0,mode:xd.rY.PNG_CANVAS})})},Et.key))})]})]})]}),(0,o.jsx)("footer",{children:G.key==="local"?xe?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("span",{className:"footer-title",children:"\u5F53\u524D\u8D44\u6E90\u5DF2\u53D1\u5E03"}),(0,o.jsxs)("div",{className:"footer-button-wrap",children:[(0,o.jsx)("button",{className:"solid",onClick:Cn,children:"\u64A4\u56DE\u8D44\u6E90"}),m&&(0,o.jsx)("button",{className:"blue",onClick:Ct,children:"\u53D1\u5E03\u66F4\u65B0"})]})]}):(0,o.jsx)("button",{className:"blue",onClick:Ct,children:"\u53D1\u5E03"}):(0,o.jsx)("button",{className:"solid",onClick:Mt,children:"\u6253\u5F00\u6E90\u6587\u4EF6"})})]}):(0,o.jsx)(E1.f,{className:"loading"})})},P0=e=>{let{onSetCurrentTab:t,onClose:n}=e;const[a,i]=(0,l.useState)("no-change"),[c,d]=(0,l.useState)(),[p,h]=(0,l.useState)(!1),m=(0,r.d4)(Ns.V5),x=(v,A)=>{d(v),i(A)};return(0,o.jsxs)(nf,{children:[m==="home"&&(0,o.jsx)(rf,{onSetCurrentTab:t,canUploadLocal:p,onSetCanUploadLocal:h}),m==="upload"&&(0,o.jsx)(Jf,{onClose:n,onSetVarDetailData:x}),m==="detail"&&(0,o.jsx)(vh,{canUploadLocal:p}),m==="var-detail"&&(0,o.jsx)(lf,{varDetailData:c,type:a})]})};var bh=s(55244);const dp=e=>{var t;let{lib:n,collapseKeySet:a,onSetCollapseKeySet:i,onClose:c}=e;const d=(0,r.d4)(me.eo),p=(0,r.d4)(Ns.nC),[h,m]=(0,l.useState)([]),[x,v]=(0,l.useState)([]),[A,k]=(0,l.useState)([]),[R,F]=(0,l.useState)([]),Z=(0,l.useRef)(null),G=(0,r.wA)();(0,l.useEffect)(()=>{m(n.updateMap.style.filter(ce=>ce.hotAttr.styleType==="color")),v(n.updateMap.style.filter(ce=>ce.hotAttr.styleType!=="color")),k(n.updateMap.var),F(n.updateMap.muban)},[n.updateMap]);const ee=()=>{var ce;MB.notice({text:"\u66F4\u65B0\u4E2D",type:"loading"});const se=p.get(n==null||(ce=n.hotAttr)==null||(ce=ce.extInfo)==null?void 0:ce.flatKey);(0,S1.dB)(se,R);const{flatChgList:he,otherPageFlatChgList:ve,isUpdateBasket:Te}=(0,S1.iJ)({currentPageKey:d,updateList:[...h,...x,...A]});G({type:"entry:widget:change",payload:{flatChgList:he}}),G({type:"style-lib:del:needUpdateLibs",payload:{key:n==null?void 0:n.key}}),sdkStore.updateHotAttrKV(n.key,"extInfo",{...n.hotAttr.extInfo,updateTime:rootSdk.fssCmt.getClockStore().getMtime()}),setTimeout(()=>{sdkStore.updateHotItemBatch(ve)},16),Te&&G({type:"entry:rebuild:screen-widget-tree"}),MB.notice({text:"\u66F4\u65B0\u6210\u529F",type:"success"}),c()};return(0,o.jsx)(o.Fragment,{children:(0,o.jsxs)("li",{className:"update-content-lib-item",children:[(0,o.jsxs)("div",{className:C()("update-header",{"is-expand":!a.has("local")}),children:[(0,o.jsx)(xt.C,{name:"toolbar/triangle-down",onClick:()=>i("local")}),(0,o.jsxs)("div",{className:"right-content-wrap",children:[(0,o.jsxs)("div",{className:"update-content",children:[(0,o.jsx)("span",{className:"update-title",children:(n==null||(t=n.hotAttr)==null?void 0:t.name)+" \u8D44\u6E90\u5E93\u6709\u4EE5\u4E0B\u66F4\u65B0"}),(0,o.jsx)("span",{className:"update-time-desc",children:n.updateUser+" \u5728"+(0,bh.zW)(n.updateTime)+"\u66F4\u65B0"})]}),(0,o.jsx)("button",{className:"blue solid",onClick:ee,children:"\u66F4\u65B0"})]})]}),!a.has("local")&&(0,o.jsxs)(o.Fragment,{children:[(n==null?void 0:n.desc)&&(0,o.jsx)("span",{className:"update-desc",children:n==null?void 0:n.desc}),(0,o.jsxs)("ul",{className:"update-content-lib-list",children:[A.length>0&&(0,o.jsxs)("li",{className:"var",children:[(0,o.jsxs)("div",{className:"update-left-content",children:[(0,o.jsx)("div",{className:"var-view-item margin-right-16",children:(0,o.jsx)(xt.C,{name:"setting_panel/libPanel/var",size:20})}),(0,o.jsx)("span",{className:"update-ref-title",children:"\u53D8\u91CF"})]}),(0,o.jsxs)("div",{className:"update-right-content",children:[(0,o.jsx)("span",{className:"nums",children:A.length+"\u4E2A"}),(0,o.jsx)(xt.C,{name:"toolbar/triangle-down",className:"triangle-down"})]})]}),h.map((ce,se)=>{const he={fill:"solid",fillIsVisible:!0,solidColor:ce.hotAttr.fill},ve=he&&(0,$l.$8)(he,{w:200,h:100});return(0,o.jsxs)("li",{children:[(0,o.jsx)("div",{className:"color-view-item margin-right-16",children:(0,o.jsx)(M1.I,{ref:Z,color:ve,solidRenderType:"circle",size:28,index:se})}),(0,o.jsx)("span",{className:"update-ref-title",children:ce.hotAttr.name})]},ce.key)}),x.map((ce,se)=>(0,o.jsxs)("li",{children:[ce.hotAttr.styleType==="appear"&&(0,o.jsx)("div",{className:"appear-view-item-box margin-right-16",children:(0,o.jsx)(Xp.U,{appearStyle:ce,size:28,index:se})}),ce.hotAttr.styleType==="text"&&(0,o.jsx)(T0.c,{className:"margin-right-16",textStyle:ce}),(0,o.jsx)("span",{className:"update-ref-title",children:ce.hotAttr.name})]},ce.key)),R.map(ce=>{var se;return(0,o.jsxs)("li",{className:"muban",children:[(0,o.jsx)("div",{className:"muban-img-box margin-right-16",children:(0,o.jsx)(G0.Ay,{projectMetaCid:n==null||(se=n.hotAttr)==null||(se=se.extInfo)==null?void 0:se.flatKey,snapshotKey:ce.hotAttr.defaultCanvasKey,isVisible:!0,mode:xd.rY.PNG_CANVAS})}),(0,o.jsx)("span",{className:"update-ref-title",children:ce.hotAttr.name})]},ce.key)})]})]})]},n.key)})},bd=M.Ay.ul.withConfig({displayName:"style__StyledUpdateContentPanel",componentId:"sc-ja794s-0"})(["height:550px;overflow-y:scroll;.empty-content{width:100%;height:100%;display:flex;flex-direction:column;align-items:center;padding-top:160px;.empty-name{margin:16px 0;color:",";}.loading-button{width:20px;height:20px;}}li.update-content-lib-item{padding-bottom:8px;border-bottom:1px solid ",";.update-header{height:68px;display:flex;align-items:center;padding:0 20px;&.is-expand{.svg-icon{transform:rotate(0);}}.svg-icon{cursor:pointer;transform:rotate(-90deg);}.right-content-wrap{flex:1;display:flex;justify-content:space-between;margin-left:14px;.update-content{display:flex;flex-direction:column;.update-title{color:",";font-weight:500;max-width:450px;",";}.update-time-desc{color:",";}}}}.update-desc{color:",";display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;text-overflow:ellipsis;margin:8px 20px 16px 20px;}.update-content-lib-list{li{height:80px;padding:0 20px;display:flex;align-items:center;.margin-right-16{margin-right:16px;}&.var{justify-content:space-between;}&.muban{.muban-img-box{width:64px;height:64px;border-radius:6px;background:",";border:1px solid ",";overflow:hidden;padding:4px;}img{object-fit:contain;width:100%;height:100%;}}.var-view-item,.color-view-item,.appear-view-item-box{width:64px;height:64px;border-radius:6px;background:",";border:1px solid ",";display:flex;align-items:center;justify-content:center;}.thumbnail-wrapper:not(.appear-ref-view-item):not(.has-opacity){width:28px;height:28px;border-radius:28px;&::before,.thumbnail{width:28px;height:28px;border-radius:28px;}}.appear-view-item-box{.appear-ref-view-item.list{width:28px;height:28px;border-radius:4px;&.has-opacity.rect{margin-right:0;}}}.view-item{width:64px;height:64px;border-radius:6px;background:",";border:1px solid ",";flex:0 0 64px;}.update-ref-title{color:",";font-weight:500;",";max-width:450px;}.update-right-content,.update-left-content{display:flex;align-items:center;svg.triangle-down{transform:rotate(-90deg);}.nums{color:",";margin-right:10px;}}}}}.loading{width:50px;height:50px;}"],e=>e.theme.color_text_L2,e=>e.theme.color_bg_border_01,e=>e.theme.color_text_L1,za.L9,e=>e.theme.color_text_L3,e=>e.theme.color_text_L1,e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_bg_border_01,e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_bg_border_01,e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_bg_border_01,e=>e.theme.color_text_L1,za.L9,e=>e.theme.color_text_L3),wh=e=>{let{onClose:t}=e;const[n,a]=(0,l.useState)(new Set),i=(0,r.d4)(Ns.$Y),c=(0,r.d4)(Ns.eP),d=(0,r.d4)(te.O4),p=(0,r.wA)();(0,l.useEffect)(()=>{p({type:"entry:libStyle:manage:set:needUpdateLibs"})},[p]);const h=x=>{const v=new Set(n);n.has(x)?v.delete(x):v.add(x),a(v)},m=async()=>{await p({type:"style-lib:set:attr",payload:{isLoadedNeedUpdateLibs:!1}});const x=Date.now();p({type:"entry:libStyle:manage:set:needUpdateLibs",payload:{startTime:x}})};return(0,o.jsx)(bd,{children:i?c.length===0?(0,o.jsxs)("div",{className:"empty-content",children:[(0,o.jsx)("img",{src:"/mb-proto2/images/lib/color-empty-"+d+".svg"}),(0,o.jsx)("span",{className:"empty-name",children:"\u6682\u65E0\u53EF\u66F4\u65B0\u7684\u6837\u5F0F"}),(0,o.jsx)("button",{className:"solid",onClick:m,children:"\u5237\u65B0"})]}):c.map(x=>(0,o.jsx)(dp,{lib:x,collapseKeySet:n,onSetCollapseKeySet:h,onClose:t},x.key)):(0,o.jsx)(E1.f,{className:"loading"})})},dm=M.Ay.ul.withConfig({displayName:"styled__StyledLibCard",componentId:"sc-1jyoeyf-0"})(["flex:1;display:flex;flex-wrap:wrap;.lib-card{display:flex;flex-direction:column;color:",";padding:6px 6px 8px 6px;position:relative;border-radius:10px;height:171px;width:190px;cursor:pointer;&:hover{background:",";.img-box{&::before{display:block;}}button,.name-wrap .arrow-left{visibility:visible;}}.img-box{width:177px;height:133px;border-radius:8px;border:1px solid ",";background:",";position:relative;overflow:hidden;img{width:100%;height:100%;}&::before{content:'';display:none;position:absolute;top:0;left:0;width:100%;height:100%;background:",";backdrop-filter:blur(4px);}}.name-wrap{margin-top:8px;line-height:16px;display:flex;flex-direction:row;justify-content:space-between;align-items:center;width:100%;span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1;}.arrow-left{visibility:hidden;flex:0 0 16px;margin-left:8px;.svg-icon{width:6px;height:10px;color:",";}}}button{position:absolute;left:52px;top:55px;width:80px;visibility:hidden;}.added-flag{padding:3px 6px;border-radius:4px;background:",";position:absolute;top:16px;left:16px;}}"],e=>e.theme.color_text_L1,e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_bg_border_02,e=>e.theme.color_bg_canvas,e=>e.theme.color_slider_normal,e=>e.theme.color_text_L3,e=>e.theme.color_bg_white),Jp=M.Ay.div.withConfig({displayName:"styled__StyledEmpty",componentId:"sc-1jyoeyf-1"})(["display:flex;flex-direction:column;align-items:center;padding-top:120px;flex:1;img{width:88px;}span{color:",";margin-top:16px;margin-bottom:4px;}a{color:",";&:hover{color:",";}}button{padding:6px 16px;font-weight:500;margin-top:16px;}"],e=>e.theme.color_text_L2,e=>e.theme.color_text_link_normal,e=>e.theme.color_text_link_hover),qp=e=>{let{libList:t,onHandleToDetail:n,onAddLib:a,onSetCurrentTab:i}=e;const c=(0,r.d4)(Ns.oo),d=(0,r.d4)(Ns.xg),p=(0,r.d4)(me.HW),h=(0,r.wA)();if(t.length===0)return(0,o.jsx)(pm,{onSetCurrentTab:i});const m=async(v,A)=>{v.stopPropagation(),await(a==null?void 0:a(A==null?void 0:A.sclib_cid));const k=(0,S1.$t)(A,p);h({type:"style-lib:add:addedLibList",payload:k}),d.findIndex(R=>R.key===k.key)!==-1&&h({type:"style-lib:remove:usedLibList",payload:{key:k.key}})},x=async v=>{const A=c.find(k=>k.hotAttr.extInfo.projectCid===v.cid)||v;await(n==null?void 0:n(A==null?void 0:A.sclib_cid)),h({type:"style-lib:set:attr",payload:{currentManagePanel:"detail",detailLib:A}})};return(0,o.jsx)(dm,{children:t.map(v=>{var A;const k=c.findIndex(R=>R.hotAttr.extInfo.projectCid===v.cid&&!R.hotAttr.extInfo.isRemove)!==-1;return(0,o.jsxs)("li",{className:"lib-card",onClick:()=>x(v),children:[(0,o.jsx)("div",{className:"img-box",children:(0,o.jsx)("img",{src:v!=null&&v.is_custom_cover?v==null?void 0:v.custom_cover:(A=v==null?void 0:v.cover)!=null?A:"/mb-proto2/images/lib/lib-emtry.png",onError:R=>{R.target.src="/mb-proto2/images/lib/lib-emtry.png",R.target.onerror=null}})}),(0,o.jsxs)("div",{className:"name-wrap",children:[(0,o.jsx)("span",{children:v.name}),(0,o.jsx)(cl.A,{name:"design/arrow/right",className:"arrow-left",iconBoxSize:16})]}),k&&(0,o.jsx)("span",{className:"added-flag",children:"\u5DF2\u6DFB\u52A0"}),!k&&(0,o.jsx)("button",{className:"blue",onClick:R=>m(R,v),children:"\u6DFB\u52A0"})]},v.key)})})},pm=e=>{let{onSetCurrentTab:t}=e;const n=(0,r.d4)(te.O4),a=(0,r.wA)(),i=()=>{t==null||t("recommend"),a({type:"style-lib:set:currentManagePanel",payload:"home"})},c=()=>(0,rl.JW)("/hc/articles/466","_blank","noreferrer");return(0,o.jsxs)(Jp,{children:[(0,o.jsx)("img",{src:"/mb-proto2/images/lib/team-libs-empty-"+n+".png"}),(0,o.jsx)("span",{children:"\u5F53\u524D\u7A7A\u95F4\u6682\u65E0\u53EF\u7528\u7684\u8D44\u6E90\u5E93"}),!ENV.IS_ON_PREMISES&&(0,o.jsx)("a",{onClick:c,children:"\u5982\u4F55\u521B\u5EFA\u8D44\u6E90\u5E93\uFF1F"}),!ENV.IS_ON_PREMISES&&(0,o.jsx)("button",{className:"solid",onClick:i,children:"\u53D1\u73B0\u7CBE\u9009\u8D44\u6E90\u5E93"})]})},df=M.Ay.div.withConfig({displayName:"style__StyledRecommendContentPanel",componentId:"sc-1bdhyss-0"})(["padding:10px 12px;height:550px;width:100%;display:flex;flex-direction:column;.header{height:32px;display:flex;align-items:center;justify-content:space-between;color:",";padding-left:6px;flex:0 0 32px;.right-content{color:",";display:flex;align-items:center;a{margin-right:10px;color:",";}svg.triangle-down{transform:rotate(-90deg);}}}"],e=>e.theme.color_text_L1,e=>e.theme.color_text_link_normal,e=>e.theme.color_text_link_normal),um=()=>{const e=(0,r.d4)(Ns.V5),t=(0,r.d4)(Ns.Qe),n=(0,r.d4)(Ns.nC),a=(0,r.wA)(),i=async p=>{const h=n.get(p);if(h)return h;const{sdkStore:m}=await(0,Yp.O3)({flpakKey:p});return a({type:"style-lib:set:libSdkStoreMap",payload:{key:p,value:m}}),m},c=async p=>{p&&(await i(p),a({type:"entry:libStyle:update:mubanPanel:libMubanTreeMap",payload:{libFlatKey:p}}))},d=async p=>{var h;p&&(await i(p),a({type:"entry:libStyle:update:mubanPanel:libMubanTreeMap",payload:{libFlatKey:p}}),xl.U4.protoMasterUseTrack((h=MB)==null||(h=h.user)==null?void 0:h.id,"\u7CBE\u9009\u8D44\u6E90\u5E93","\u6DFB\u52A0"))};return(0,o.jsxs)(o.Fragment,{children:[e==="home"&&(0,o.jsxs)(df,{children:[(0,o.jsx)("div",{className:"header",children:(0,o.jsx)("span",{className:"title",children:"\u7CBE\u9009\u8D44\u6E90\u5E93"})}),(0,o.jsx)(qp,{libList:t,onHandleToDetail:c,onAddLib:d})]}),e==="detail"&&(0,o.jsx)(vh,{})]})},pf=M.Ay.div.withConfig({displayName:"style__StyledTeamContentPanel",componentId:"sc-1rpnysk-0"})(["padding:10px 12px;height:550px;width:100%;display:flex;flex-direction:column;.space-title{height:32px;display:flex;align-items:center;color:",";padding-left:6px;}ul{overflow:scroll;flex:none;}"],e=>e.theme.color_text_L1),uf=e=>{let{onSetCurrentTab:t}=e;const n=(0,r.d4)(Ns.V5),a=(0,r.d4)(Ns.TP),i=(0,r.d4)(Ns.nC),c=(0,r.d4)(me.wA),d=(0,r.d4)(me.m1),p=(0,r.wA)(),h=async v=>{const A=i.get(v);if(A)return A;const{sdkStore:k}=await(0,Yp.tr)({flpakKey:v});return p({type:"style-lib:set:libSdkStoreMap",payload:{key:v,value:k}}),k},m=async v=>{v&&(await h(v),p({type:"entry:libStyle:update:mubanPanel:libMubanTreeMap",payload:{libFlatKey:v}}))},x=async v=>{var A;v&&(await h(v),p({type:"entry:libStyle:update:mubanPanel:libMubanTreeMap",payload:{libFlatKey:v}}),xl.U4.protoMasterUseTrack((A=MB)==null||(A=A.user)==null?void 0:A.id,"\u56E2\u961F\u8D44\u6E90","\u6DFB\u52A0"))};return(0,o.jsxs)(o.Fragment,{children:[n==="home"&&(0,o.jsxs)(pf,{children:[(0,o.jsx)("div",{className:"space-title",children:c?d.name:"\u4E2A\u4EBA\u7A7A\u95F4"}),(0,o.jsx)(qp,{libList:a,onHandleToDetail:m,onAddLib:x,onSetCurrentTab:t})]}),n==="detail"&&(0,o.jsx)(vh,{})]})},hm=window.innerWidth/2-760/2,hf=74,qf=e=>{let{onClose:t,activeTab:n="local"}=e;const[a,i]=(0,l.useState)(hm),[c,d]=(0,l.useState)(hf),[p,h]=(0,l.useState)(n),m=(0,r.d4)(Ns.V5),x=(0,r.wA)(),v=(R,F)=>{i(R),d(F)},A=R=>{x({type:"modal:update:state",payload:{isDragOrResizeModal:R}})},k=()=>{(m==="upload"||m==="var-detail")&&p==="local"?x({type:"style-lib:set:currentManagePanel",payload:m==="var-detail"?"upload":"home"}):(x({type:"style-lib:reset:manage:attr"}),t())};return(0,Ki.createPortal)((0,o.jsx)(Qa.A,{position:{left:a,top:c},dragContainer:"style-lib-manage-modal",onMove:v,onMoveStart:()=>A(!0),onMoveEnd:()=>A(!1),children:(0,o.jsxs)(qm,{id:"style-lib-manage-modal",className:m,children:[(0,o.jsxs)("header",{type:"draggable",children:[(0,o.jsx)("span",{className:"title",children:m==="upload"?"\u53D1\u5E03\u8D44\u6E90\u5E93":"\u8D44\u6E90\u5E93\u7BA1\u7406"}),(0,o.jsx)("div",{className:"right-content",children:(0,o.jsx)(xt.C,{className:"times-icon",name:"general/times",size:24,onClick:k})})]}),(0,o.jsxs)("div",{className:"content",children:[!((m==="upload"||m==="var-detail")&&p==="local")&&(0,o.jsx)(tf,{currentTab:p,onSetCurrentTab:h}),(0,o.jsx)("div",{className:"right-panel",children:(0,o.jsxs)(o.Fragment,{children:[p==="local"&&(0,o.jsx)(P0,{onSetCurrentTab:h,onClose:t}),p==="update"&&(0,o.jsx)(wh,{onClose:t}),p==="team"&&(0,o.jsx)(uf,{onSetCurrentTab:h}),p==="recommend"&&(0,o.jsx)(um,{})]})})]})]})}),(0,I0.w)())};var mf=s(80771),I1=s(47424),$p=s(29321),Ch=s(82924),wd=s(94586),$f={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"};const ff=$f;var Sh=s(40080),gf=function(t,n){return l.createElement(Sh.A,(0,wd.A)({},t,{ref:n,icon:ff}))},K=l.forwardRef(gf);const D=K;var z=s(76241),X=s(53034),ie=s(91834),ue=s(59895),oe=s(94815),be=s(64816);const Ae=(0,l.createContext)(null);var Ne=s(63296),Be=s(59063),Ge=s(75586),it=s(21425),At=s(23653),zt=function(t){var n=t.activeTabOffset,a=t.horizontal,i=t.rtl,c=t.indicator,d=c===void 0?{}:c,p=d.size,h=d.align,m=h===void 0?"center":h,x=(0,l.useState)(),v=(0,X.A)(x,2),A=v[0],k=v[1],R=(0,l.useRef)(),F=l.useCallback(function(G){return typeof p=="function"?p(G):typeof p=="number"?p:G},[p]);function Z(){At.A.cancel(R.current)}return(0,l.useEffect)(function(){var G={};if(n)if(a){G.width=F(n.width);var ee=i?"right":"left";m==="start"&&(G[ee]=n[ee]),m==="center"&&(G[ee]=n[ee]+n.width/2,G.transform=i?"translateX(50%)":"translateX(-50%)"),m==="end"&&(G[ee]=n[ee]+n.width,G.transform="translateX(-100%)")}else G.height=F(n.height),m==="start"&&(G.top=n.top),m==="center"&&(G.top=n.top+n.height/2,G.transform="translateY(-50%)"),m==="end"&&(G.top=n.top+n.height,G.transform="translateY(-100%)");return Z(),R.current=(0,At.A)(function(){var ce=A&&G&&Object.keys(G).every(function(se){var he=G[se],ve=A[se];return typeof he=="number"&&typeof ve=="number"?Math.round(he)===Math.round(ve):he===ve});ce||k(G)}),Z},[JSON.stringify(n),a,i,m,F]),{style:A}};const qt=zt;var _n={width:0,height:0,left:0,top:0};function $n(e,t,n){return(0,l.useMemo)(function(){for(var a,i=new Map,c=t.get((a=e[0])===null||a===void 0?void 0:a.key)||_n,d=c.left+c.width,p=0;p<e.length;p+=1){var h=e[p].key,m=t.get(h);if(!m){var x;m=t.get((x=e[p-1])===null||x===void 0?void 0:x.key)||_n}var v=i.get(h)||(0,z.A)({},m);v.right=d-v.left-v.width,i.set(h,v)}return i},[e.map(function(a){return a.key}).join("_"),t,n])}function Fn(e,t){var n=l.useRef(e),a=l.useState({}),i=(0,X.A)(a,2),c=i[1];function d(p){var h=typeof p=="function"?p(n.current):p;h!==n.current&&t(h,n.current),n.current=h,c({})}return[n.current,d]}var Ao=.1,_o=.01,zo=20,aa=Math.pow(.995,zo);function oa(e,t){var n=(0,l.useState)(),a=(0,X.A)(n,2),i=a[0],c=a[1],d=(0,l.useState)(0),p=(0,X.A)(d,2),h=p[0],m=p[1],x=(0,l.useState)(0),v=(0,X.A)(x,2),A=v[0],k=v[1],R=(0,l.useState)(),F=(0,X.A)(R,2),Z=F[0],G=F[1],ee=(0,l.useRef)();function ce(Fe){var et=Fe.touches[0],Ke=et.screenX,Qe=et.screenY;c({x:Ke,y:Qe}),window.clearInterval(ee.current)}function se(Fe){if(i){var et=Fe.touches[0],Ke=et.screenX,Qe=et.screenY;c({x:Ke,y:Qe});var nt=Ke-i.x,Xe=Qe-i.y;t(nt,Xe);var lt=Date.now();m(lt),k(lt-h),G({x:nt,y:Xe})}}function he(){if(i&&(c(null),G(null),Z)){var Fe=Z.x/A,et=Z.y/A,Ke=Math.abs(Fe),Qe=Math.abs(et);if(Math.max(Ke,Qe)<Ao)return;var nt=Fe,Xe=et;ee.current=window.setInterval(function(){if(Math.abs(nt)<_o&&Math.abs(Xe)<_o){window.clearInterval(ee.current);return}nt*=aa,Xe*=aa,t(nt*zo,Xe*zo)},zo)}}var ve=(0,l.useRef)();function Te(Fe){var et=Fe.deltaX,Ke=Fe.deltaY,Qe=0,nt=Math.abs(et),Xe=Math.abs(Ke);nt===Xe?Qe=ve.current==="x"?et:Ke:nt>Xe?(Qe=et,ve.current="x"):(Qe=Ke,ve.current="y"),t(-Qe,-Qe)&&Fe.preventDefault()}var xe=(0,l.useRef)(null);xe.current={onTouchStart:ce,onTouchMove:se,onTouchEnd:he,onWheel:Te},l.useEffect(function(){function Fe(nt){xe.current.onTouchStart(nt)}function et(nt){xe.current.onTouchMove(nt)}function Ke(nt){xe.current.onTouchEnd(nt)}function Qe(nt){xe.current.onWheel(nt)}return document.addEventListener("touchmove",et,{passive:!1}),document.addEventListener("touchend",Ke,{passive:!0}),e.current.addEventListener("touchstart",Fe,{passive:!0}),e.current.addEventListener("wheel",Qe,{passive:!1}),function(){document.removeEventListener("touchmove",et),document.removeEventListener("touchend",Ke)}},[])}var ma=s(18767);function Ea(e){var t=(0,l.useState)(0),n=(0,X.A)(t,2),a=n[0],i=n[1],c=(0,l.useRef)(0),d=(0,l.useRef)();return d.current=e,(0,ma.o)(function(){var p;(p=d.current)===null||p===void 0||p.call(d)},[a]),function(){c.current===a&&(c.current+=1,i(c.current))}}function er(e){var t=(0,l.useRef)([]),n=(0,l.useState)({}),a=(0,X.A)(n,2),i=a[1],c=(0,l.useRef)(typeof e=="function"?e():e),d=Ea(function(){var h=c.current;t.current.forEach(function(m){h=m(h)}),t.current=[],c.current=h,i({})});function p(h){t.current.push(h),d()}return[c.current,p]}var Pr={width:0,height:0,left:0,top:0,right:0};function Aa(e,t,n,a,i,c,d){var p=d.tabs,h=d.tabPosition,m=d.rtl,x,v,A;return["top","bottom"].includes(h)?(x="width",v=m?"right":"left",A=Math.abs(n)):(x="height",v="top",A=-n),(0,l.useMemo)(function(){if(!p.length)return[0,0];for(var k=p.length,R=k,F=0;F<k;F+=1){var Z=e.get(p[F].key)||Pr;if(Math.floor(Z[v]+Z[x])>Math.floor(A+t)){R=F-1;break}}for(var G=0,ee=k-1;ee>=0;ee-=1){var ce=e.get(p[ee].key)||Pr;if(ce[v]<A){G=ee+1;break}}return G>=R?[0,0]:[G,R]},[e,t,a,i,c,A,h,p.map(function(k){return k.key}).join("_"),m])}function fr(e){var t;return e instanceof Map?(t={},e.forEach(function(n,a){t[a]=n})):t=e,JSON.stringify(t)}var Jr="TABS_DQ";function qa(e){return String(e).replace(/"/g,Jr)}function Ka(e,t,n,a){return!(!n||a||e===!1||e===void 0&&(t===!1||t===null))}var rr=l.forwardRef(function(e,t){var n=e.prefixCls,a=e.editable,i=e.locale,c=e.style;return!a||a.showAdd===!1?null:l.createElement("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:c,"aria-label":(i==null?void 0:i.addAriaLabel)||"Add tab",onClick:function(p){a.onEdit("add",{event:p})}},a.addIcon||"+")});const Ua=rr;var _r=l.forwardRef(function(e,t){var n=e.position,a=e.prefixCls,i=e.extra;if(!i)return null;var c,d={};return(0,ie.A)(i)==="object"&&!l.isValidElement(i)?d=i:d.right=i,n==="right"&&(c=d.right),n==="left"&&(c=d.left),c?l.createElement("div",{className:"".concat(a,"-extra-content"),ref:t},c):null});const ni=_r;var zr=s(35009),Ur=s(2636),ki=s(49358),ds=l.forwardRef(function(e,t){var n=e.prefixCls,a=e.id,i=e.tabs,c=e.locale,d=e.mobile,p=e.more,h=p===void 0?{}:p,m=e.style,x=e.className,v=e.editable,A=e.tabBarGutter,k=e.rtl,R=e.removeAriaLabel,F=e.onTabClick,Z=e.getPopupContainer,G=e.popupClassName,ee=(0,l.useState)(!1),ce=(0,X.A)(ee,2),se=ce[0],he=ce[1],ve=(0,l.useState)(null),Te=(0,X.A)(ve,2),xe=Te[0],Fe=Te[1],et=h.icon,Ke=et===void 0?"More":et,Qe="".concat(a,"-more-popup"),nt="".concat(n,"-dropdown"),Xe=xe!==null?"".concat(Qe,"-").concat(xe):null,lt=c==null?void 0:c.dropdownAriaLabel;function Ct(Pn,ro){Pn.preventDefault(),Pn.stopPropagation(),v.onEdit("remove",{key:ro,event:Pn})}var St=l.createElement(Ur.Ay,{onClick:function(ro){var Io=ro.key,mo=ro.domEvent;F(Io,mo),he(!1)},prefixCls:"".concat(nt,"-menu"),id:Qe,tabIndex:-1,role:"listbox","aria-activedescendant":Xe,selectedKeys:[xe],"aria-label":lt!==void 0?lt:"expanded dropdown"},i.map(function(Pn){var ro=Pn.closable,Io=Pn.disabled,mo=Pn.closeIcon,So=Pn.key,ho=Pn.label,No=Ka(ro,mo,v,Io);return l.createElement(Ur.Dr,{key:So,id:"".concat(Qe,"-").concat(So),role:"option","aria-controls":a&&"".concat(a,"-panel-").concat(So),disabled:Io},l.createElement("span",null,ho),No&&l.createElement("button",{type:"button","aria-label":R||"remove",tabIndex:0,className:"".concat(nt,"-menu-item-remove"),onClick:function(Ta){Ta.stopPropagation(),Ct(Ta,So)}},mo||v.removeIcon||"\xD7"))}));function hn(Pn){for(var ro=i.filter(function(No){return!No.disabled}),Io=ro.findIndex(function(No){return No.key===xe})||0,mo=ro.length,So=0;So<mo;So+=1){Io=(Io+Pn+mo)%mo;var ho=ro[Io];if(!ho.disabled){Fe(ho.key);return}}}function Cn(Pn){var ro=Pn.which;if(!se){[ki.A.DOWN,ki.A.SPACE,ki.A.ENTER].includes(ro)&&(he(!0),Pn.preventDefault());return}switch(ro){case ki.A.UP:hn(-1),Pn.preventDefault();break;case ki.A.DOWN:hn(1),Pn.preventDefault();break;case ki.A.ESC:he(!1);break;case ki.A.SPACE:case ki.A.ENTER:xe!==null&&F(xe,Pn);break}}(0,l.useEffect)(function(){var Pn=document.getElementById(Xe);Pn&&Pn.scrollIntoView&&Pn.scrollIntoView(!1)},[xe]),(0,l.useEffect)(function(){se||Fe(null)},[se]);var Mt=(0,B.A)({},k?"marginRight":"marginLeft",A);i.length||(Mt.visibility="hidden",Mt.order=1);var Et=C()((0,B.A)({},"".concat(nt,"-rtl"),k)),Co=d?null:l.createElement(zr.A,(0,wd.A)({prefixCls:nt,overlay:St,visible:i.length?se:!1,onVisibleChange:he,overlayClassName:C()(Et,G),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:Z},h),l.createElement("button",{type:"button",className:"".concat(n,"-nav-more"),style:Mt,"aria-haspopup":"listbox","aria-controls":Qe,id:"".concat(a,"-more"),"aria-expanded":se,onKeyDown:Cn},Ke));return l.createElement("div",{className:C()("".concat(n,"-nav-operations"),x),style:m,ref:t},Co,l.createElement(Ua,{prefixCls:n,locale:c,editable:v}))});const Qs=l.memo(ds,function(e,t){return t.tabMoving});var E=function(t){var n=t.prefixCls,a=t.id,i=t.active,c=t.focus,d=t.tab,p=d.key,h=d.label,m=d.disabled,x=d.closeIcon,v=d.icon,A=t.closable,k=t.renderWrapper,R=t.removeAriaLabel,F=t.editable,Z=t.onClick,G=t.onFocus,ee=t.onBlur,ce=t.onKeyDown,se=t.onMouseDown,he=t.onMouseUp,ve=t.style,Te=t.tabCount,xe=t.currentPosition,Fe="".concat(n,"-tab"),et=Ka(A,x,F,m);function Ke(Ct){m||Z(Ct)}function Qe(Ct){Ct.preventDefault(),Ct.stopPropagation(),F.onEdit("remove",{key:p,event:Ct})}var nt=l.useMemo(function(){return v&&typeof h=="string"?l.createElement("span",null,h):h},[h,v]),Xe=l.useRef(null);l.useEffect(function(){c&&Xe.current&&Xe.current.focus()},[c]);var lt=l.createElement("div",{key:p,"data-node-key":qa(p),className:C()(Fe,(0,B.A)((0,B.A)((0,B.A)((0,B.A)({},"".concat(Fe,"-with-remove"),et),"".concat(Fe,"-active"),i),"".concat(Fe,"-disabled"),m),"".concat(Fe,"-focus"),c)),style:ve,onClick:Ke},l.createElement("div",{ref:Xe,role:"tab","aria-selected":i,id:a&&"".concat(a,"-tab-").concat(p),className:"".concat(Fe,"-btn"),"aria-controls":a&&"".concat(a,"-panel-").concat(p),"aria-disabled":m,tabIndex:m?null:i?0:-1,onClick:function(St){St.stopPropagation(),Ke(St)},onKeyDown:ce,onMouseDown:se,onMouseUp:he,onFocus:G,onBlur:ee},c&&l.createElement("div",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"Tab ".concat(xe," of ").concat(Te)),v&&l.createElement("span",{className:"".concat(Fe,"-icon")},v),h&&nt),et&&l.createElement("button",{type:"button",role:"tab","aria-label":R||"remove",tabIndex:i?0:-1,className:"".concat(Fe,"-remove"),onClick:function(St){St.stopPropagation(),Qe(St)}},x||F.removeIcon||"\xD7"));return k?k(lt):lt};const le=E;var de=function(t,n){var a=t.offsetWidth,i=t.offsetHeight,c=t.offsetTop,d=t.offsetLeft,p=t.getBoundingClientRect(),h=p.width,m=p.height,x=p.left,v=p.top;return Math.abs(h-a)<1?[h,m,x-n.left,v-n.top]:[a,i,d,c]},_e=function(t){var n=t.current||{},a=n.offsetWidth,i=a===void 0?0:a,c=n.offsetHeight,d=c===void 0?0:c;if(t.current){var p=t.current.getBoundingClientRect(),h=p.width,m=p.height;if(Math.abs(h-i)<1)return[h,m]}return[i,d]},Vt=function(t,n){return t[n?0:1]},Bt=l.forwardRef(function(e,t){var n=e.className,a=e.style,i=e.id,c=e.animated,d=e.activeKey,p=e.rtl,h=e.extra,m=e.editable,x=e.locale,v=e.tabPosition,A=e.tabBarGutter,k=e.children,R=e.onTabClick,F=e.onTabScroll,Z=e.indicator,G=l.useContext(Ae),ee=G.prefixCls,ce=G.tabs,se=(0,l.useRef)(null),he=(0,l.useRef)(null),ve=(0,l.useRef)(null),Te=(0,l.useRef)(null),xe=(0,l.useRef)(null),Fe=(0,l.useRef)(null),et=(0,l.useRef)(null),Ke=v==="top"||v==="bottom",Qe=Fn(0,function(Bl,cs){Ke&&F&&F({direction:Bl>cs?"left":"right"})}),nt=(0,X.A)(Qe,2),Xe=nt[0],lt=nt[1],Ct=Fn(0,function(Bl,cs){!Ke&&F&&F({direction:Bl>cs?"top":"bottom"})}),St=(0,X.A)(Ct,2),hn=St[0],Cn=St[1],Mt=(0,l.useState)([0,0]),Et=(0,X.A)(Mt,2),Co=Et[0],Pn=Et[1],ro=(0,l.useState)([0,0]),Io=(0,X.A)(ro,2),mo=Io[0],So=Io[1],ho=(0,l.useState)([0,0]),No=(0,X.A)(ho,2),Xo=No[0],Ta=No[1],Da=(0,l.useState)([0,0]),xr=(0,X.A)(Da,2),Wa=xr[0],Dr=xr[1],Wr=er(new Map),hi=(0,X.A)(Wr,2),Sr=hi[0],oi=hi[1],js=$n(ce,Sr,mo[0]),Ri=Vt(Co,Ke),li=Vt(mo,Ke),fi=Vt(Xo,Ke),bi=Vt(Wa,Ke),ls=Math.floor(Ri)<Math.floor(li+fi),Pi=ls?Ri-bi:Ri-fi,es="".concat(ee,"-nav-operations-hidden"),qs=0,Us=0;Ke&&p?(qs=0,Us=Math.max(0,li-Pi)):(qs=Math.min(0,Pi-li),Us=0);function pc(Bl){return Bl<qs?qs:Bl>Us?Us:Bl}var Yl=(0,l.useRef)(null),xs=(0,l.useState)(),wl=(0,X.A)(xs,2),nl=wl[0],_a=wl[1];function hl(){_a(Date.now())}function ol(){Yl.current&&clearTimeout(Yl.current)}oa(Te,function(Bl,cs){function oc(bc,B1){bc(function(o1){var Gm=pc(o1+B1);return Gm})}return ls?(Ke?oc(lt,Bl):oc(Cn,cs),ol(),hl(),!0):!1}),(0,l.useEffect)(function(){return ol(),nl&&(Yl.current=setTimeout(function(){_a(0)},100)),ol},[nl]);var vs=Aa(js,Pi,Ke?Xe:hn,li,fi,bi,(0,z.A)((0,z.A)({},e),{},{tabs:ce})),nc=(0,X.A)(vs,2),yp=nc[0],kd=nc[1],Wm=(0,Ge.A)(function(){var Bl=arguments.length>0&&arguments[0]!==void 0?arguments[0]:d,cs=js.get(Bl)||{width:0,height:0,left:0,right:0,top:0};if(Ke){var oc=Xe;p?cs.right<Xe?oc=cs.right:cs.right+cs.width>Xe+Pi&&(oc=cs.right+cs.width-Pi):cs.left<-Xe?oc=-cs.left:cs.left+cs.width>-Xe+Pi&&(oc=-(cs.left+cs.width-Pi)),Cn(0),lt(pc(oc))}else{var bc=hn;cs.top<-hn?bc=-cs.top:cs.top+cs.height>-hn+Pi&&(bc=-(cs.top+cs.height-Pi)),lt(0),Cn(pc(bc))}}),Md=(0,l.useState)(),cd=(0,X.A)(Md,2),lc=cd[0],zl=cd[1],R1=(0,l.useState)(!1),xp=(0,X.A)(R1,2),Dh=xp[0],Rh=xp[1],Ed=ce.filter(function(Bl){return!Bl.disabled}).map(function(Bl){return Bl.key}),f0=function(cs){var oc=Ed.indexOf(lc||d),bc=Ed.length,B1=(oc+cs+bc)%bc,o1=Ed[B1];zl(o1)},ku=function(cs){var oc=cs.code,bc=p&&Ke,B1=Ed[0],o1=Ed[Ed.length-1];switch(oc){case"ArrowLeft":{Ke&&f0(bc?1:-1);break}case"ArrowRight":{Ke&&f0(bc?-1:1);break}case"ArrowUp":{cs.preventDefault(),Ke||f0(-1);break}case"ArrowDown":{cs.preventDefault(),Ke||f0(1);break}case"Home":{cs.preventDefault(),zl(B1);break}case"End":{cs.preventDefault(),zl(o1);break}case"Enter":case"Space":{cs.preventDefault(),R(lc!=null?lc:d,cs);break}case"Backspace":case"Delete":{var Gm=Ed.indexOf(lc),a1=ce.find(function(Zm){return Zm.key===lc}),I8=Ka(a1==null?void 0:a1.closable,a1==null?void 0:a1.closeIcon,m,a1==null?void 0:a1.disabled);I8&&(cs.preventDefault(),cs.stopPropagation(),m.onEdit("remove",{key:lc,event:cs}),Gm===Ed.length-1?f0(-1):f0(1));break}}},Hm={};Ke?Hm[p?"marginRight":"marginLeft"]=A:Hm.marginTop=A;var Kf=ce.map(function(Bl,cs){var oc=Bl.key;return l.createElement(le,{id:i,prefixCls:ee,key:oc,tab:Bl,style:cs===0?void 0:Hm,closable:Bl.closable,editable:m,active:oc===d,focus:oc===lc,renderWrapper:k,removeAriaLabel:x==null?void 0:x.removeAriaLabel,tabCount:Ed.length,currentPosition:cs+1,onClick:function(B1){R(oc,B1)},onKeyDown:ku,onFocus:function(){Dh||zl(oc),Wm(oc),hl(),Te.current&&(p||(Te.current.scrollLeft=0),Te.current.scrollTop=0)},onBlur:function(){zl(void 0)},onMouseDown:function(){Rh(!0)},onMouseUp:function(){Rh(!1)}})}),Yf=function(){return oi(function(){var cs,oc=new Map,bc=(cs=xe.current)===null||cs===void 0?void 0:cs.getBoundingClientRect();return ce.forEach(function(B1){var o1,Gm=B1.key,a1=(o1=xe.current)===null||o1===void 0?void 0:o1.querySelector('[data-node-key="'.concat(qa(Gm),'"]'));if(a1){var I8=de(a1,bc),Zm=(0,X.A)(I8,4),vre=Zm[0],bre=Zm[1],wre=Zm[2],Cre=Zm[3];oc.set(Gm,{width:vre,height:bre,left:wre,top:Cre})}}),oc})};(0,l.useEffect)(function(){Yf()},[ce.map(function(Bl){return Bl.key}).join("_")]);var Mu=Ea(function(){var Bl=_e(se),cs=_e(he),oc=_e(ve);Pn([Bl[0]-cs[0]-oc[0],Bl[1]-cs[1]-oc[1]]);var bc=_e(et);Ta(bc);var B1=_e(Fe);Dr(B1);var o1=_e(xe);So([o1[0]-bc[0],o1[1]-bc[1]]),Yf()}),fre=ce.slice(0,yp),gre=ce.slice(kd+1),wk=[].concat((0,Ne.A)(fre),(0,Ne.A)(gre)),Ck=js.get(d),yre=qt({activeTabOffset:Ck,horizontal:Ke,indicator:Z,rtl:p}),xre=yre.style;(0,l.useEffect)(function(){Wm()},[d,qs,Us,fr(Ck),fr(js),Ke]),(0,l.useEffect)(function(){Mu()},[p]);var Sk=!!wk.length,Xf="".concat(ee,"-nav-wrap"),M8,E8,Ak,kk;return Ke?p?(E8=Xe>0,M8=Xe!==Us):(M8=Xe<0,E8=Xe!==qs):(Ak=hn<0,kk=hn!==qs),l.createElement(Be.A,{onResize:Mu},l.createElement("div",{ref:(0,it.xK)(t,se),role:"tablist","aria-orientation":Ke?"horizontal":"vertical",className:C()("".concat(ee,"-nav"),n),style:a,onKeyDown:function(){hl()}},l.createElement(ni,{ref:he,position:"left",extra:h,prefixCls:ee}),l.createElement(Be.A,{onResize:Mu},l.createElement("div",{className:C()(Xf,(0,B.A)((0,B.A)((0,B.A)((0,B.A)({},"".concat(Xf,"-ping-left"),M8),"".concat(Xf,"-ping-right"),E8),"".concat(Xf,"-ping-top"),Ak),"".concat(Xf,"-ping-bottom"),kk)),ref:Te},l.createElement(Be.A,{onResize:Mu},l.createElement("div",{ref:xe,className:"".concat(ee,"-nav-list"),style:{transform:"translate(".concat(Xe,"px, ").concat(hn,"px)"),transition:nl?"none":void 0}},Kf,l.createElement(Ua,{ref:et,prefixCls:ee,locale:x,editable:m,style:(0,z.A)((0,z.A)({},Kf.length===0?void 0:Hm),{},{visibility:Sk?"hidden":null})}),l.createElement("div",{className:C()("".concat(ee,"-ink-bar"),(0,B.A)({},"".concat(ee,"-ink-bar-animated"),c.inkBar)),style:xre}))))),l.createElement(Qs,(0,wd.A)({},e,{removeAriaLabel:x==null?void 0:x.removeAriaLabel,ref:Fe,prefixCls:ee,tabs:wk,className:!Sk&&es,tabMoving:!!nl})),l.createElement(ni,{ref:ve,position:"right",extra:h,prefixCls:ee})))});const ln=Bt;var Ht=l.forwardRef(function(e,t){var n=e.prefixCls,a=e.className,i=e.style,c=e.id,d=e.active,p=e.tabKey,h=e.children;return l.createElement("div",{id:c&&"".concat(c,"-panel-").concat(p),role:"tabpanel",tabIndex:d?0:-1,"aria-labelledby":c&&"".concat(c,"-tab-").concat(p),"aria-hidden":!d,style:i,className:C()(n,d&&"".concat(n,"-active"),a),ref:t},h)});const En=Ht;var po=["renderTabBar"],Lo=["label","key"],Bo=function(t){var n=t.renderTabBar,a=(0,ue.A)(t,po),i=l.useContext(Ae),c=i.tabs;if(n){var d=(0,z.A)((0,z.A)({},a),{},{panes:c.map(function(p){var h=p.label,m=p.key,x=(0,ue.A)(p,Lo);return l.createElement(En,(0,wd.A)({tab:h,key:m,tabKey:m},x))})});return n(d,ln)}return l.createElement(ln,a)};const Zo=Bo;var Yo=s(38088),Jo=["key","forceRender","style","className","destroyInactiveTabPane"],ea=function(t){var n=t.id,a=t.activeKey,i=t.animated,c=t.tabPosition,d=t.destroyInactiveTabPane,p=l.useContext(Ae),h=p.prefixCls,m=p.tabs,x=i.tabPane,v="".concat(h,"-tabpane");return l.createElement("div",{className:C()("".concat(h,"-content-holder"))},l.createElement("div",{className:C()("".concat(h,"-content"),"".concat(h,"-content-").concat(c),(0,B.A)({},"".concat(h,"-content-animated"),x))},m.map(function(A){var k=A.key,R=A.forceRender,F=A.style,Z=A.className,G=A.destroyInactiveTabPane,ee=(0,ue.A)(A,Jo),ce=k===a;return l.createElement(Yo.Ay,(0,wd.A)({key:k,visible:ce,forceRender:R,removeOnLeave:!!(d||G),leavedClassName:"".concat(v,"-hidden")},i.tabPaneMotion),function(se,he){var ve=se.style,Te=se.className;return l.createElement(En,(0,wd.A)({},ee,{prefixCls:v,id:n,tabKey:k,animated:x,active:ce,style:(0,z.A)((0,z.A)({},F),ve),className:C()(Z,Te),ref:he}))})})))};const qo=ea;var Go=s(96952);function $o(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},t;return e===!1?t={inkBar:!1,tabPane:!1}:e===!0?t={inkBar:!0,tabPane:!1}:t=(0,z.A)({inkBar:!0},(0,ie.A)(e)==="object"?e:{}),t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}var ba=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","more","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],sa=0,va=l.forwardRef(function(e,t){var n=e.id,a=e.prefixCls,i=a===void 0?"rc-tabs":a,c=e.className,d=e.items,p=e.direction,h=e.activeKey,m=e.defaultActiveKey,x=e.editable,v=e.animated,A=e.tabPosition,k=A===void 0?"top":A,R=e.tabBarGutter,F=e.tabBarStyle,Z=e.tabBarExtraContent,G=e.locale,ee=e.more,ce=e.destroyInactiveTabPane,se=e.renderTabBar,he=e.onChange,ve=e.onTabClick,Te=e.onTabScroll,xe=e.getPopupContainer,Fe=e.popupClassName,et=e.indicator,Ke=(0,ue.A)(e,ba),Qe=l.useMemo(function(){return(d||[]).filter(function(Wa){return Wa&&(0,ie.A)(Wa)==="object"&&"key"in Wa})},[d]),nt=p==="rtl",Xe=$o(v),lt=(0,l.useState)(!1),Ct=(0,X.A)(lt,2),St=Ct[0],hn=Ct[1];(0,l.useEffect)(function(){hn((0,be.A)())},[]);var Cn=(0,oe.A)(function(){var Wa;return(Wa=Qe[0])===null||Wa===void 0?void 0:Wa.key},{value:h,defaultValue:m}),Mt=(0,X.A)(Cn,2),Et=Mt[0],Co=Mt[1],Pn=(0,l.useState)(function(){return Qe.findIndex(function(Wa){return Wa.key===Et})}),ro=(0,X.A)(Pn,2),Io=ro[0],mo=ro[1];(0,l.useEffect)(function(){var Wa=Qe.findIndex(function(Wr){return Wr.key===Et});if(Wa===-1){var Dr;Wa=Math.max(0,Math.min(Io,Qe.length-1)),Co((Dr=Qe[Wa])===null||Dr===void 0?void 0:Dr.key)}mo(Wa)},[Qe.map(function(Wa){return Wa.key}).join("_"),Et,Io]);var So=(0,oe.A)(null,{value:n}),ho=(0,X.A)(So,2),No=ho[0],Xo=ho[1];(0,l.useEffect)(function(){n||(Xo("rc-tabs-".concat(sa)),sa+=1)},[]);function Ta(Wa,Dr){ve==null||ve(Wa,Dr);var Wr=Wa!==Et;Co(Wa),Wr&&(he==null||he(Wa))}var Da={id:No,activeKey:Et,animated:Xe,tabPosition:k,rtl:nt,mobile:St},xr=(0,z.A)((0,z.A)({},Da),{},{editable:x,locale:G,more:ee,tabBarGutter:R,onTabClick:Ta,onTabScroll:Te,extra:Z,style:F,panes:null,getPopupContainer:xe,popupClassName:Fe,indicator:et});return l.createElement(Ae.Provider,{value:{tabs:Qe,prefixCls:i}},l.createElement("div",(0,wd.A)({ref:t,id:n,className:C()(i,"".concat(i,"-").concat(k),(0,B.A)((0,B.A)((0,B.A)({},"".concat(i,"-mobile"),St),"".concat(i,"-editable"),x),"".concat(i,"-rtl"),nt),c)},Ke),l.createElement(Zo,(0,wd.A)({},xr,{renderTabBar:se})),l.createElement(qo,(0,wd.A)({destroyInactiveTabPane:ce},Da,{animated:Xe}))))});const lr=va;var Cr=s(46757),si=s(46656),Ui=s(37567),Qi=s(54709);const jr={motionAppear:!1,motionEnter:!0,motionLeave:!0};function Gr(e,t){t===void 0&&(t={inkBar:!0,tabPane:!1});let n;return t===!1?n={inkBar:!1,tabPane:!1}:t===!0?n={inkBar:!0,tabPane:!0}:n=Object.assign({inkBar:!0},typeof t=="object"?t:{}),n.tabPane&&(n.tabPaneMotion=Object.assign(Object.assign({},jr),{motionName:(0,Qi.b)(e,"switch")})),n}var Ei=s(77172),fs=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,a=Object.getOwnPropertySymbols(e);i<a.length;i++)t.indexOf(a[i])<0&&Object.prototype.propertyIsEnumerable.call(e,a[i])&&(n[a[i]]=e[a[i]]);return n};function ec(e){return e.filter(t=>t)}function yc(e,t){if(e)return e.map(a=>{var i;const c=(i=a.destroyOnHidden)!==null&&i!==void 0?i:a.destroyInactiveTabPane;return Object.assign(Object.assign({},a),{destroyInactiveTabPane:c})});const n=(0,Ei.A)(t).map(a=>{if(l.isValidElement(a)){const{key:i,props:c}=a,d=c||{},{tab:p}=d,h=fs(d,["tab"]);return Object.assign(Object.assign({key:String(i)},h),{label:p})}return null});return ec(n)}const ad=yc;var Ji=s(61972),Kl=s(55095),e2=s(58196),Z0=s(48150),_1=s(37387);const Mi=e=>{const{componentCls:t,motionDurationSlow:n}=e;return[{[t]:{[t+"-switch"]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:"opacity "+n}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:"opacity "+n}}}}},[(0,_1._j)(e,"slide-up"),(0,_1._j)(e,"slide-down")]]},$i=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:a,cardGutter:i,colorBorderSecondary:c,itemSelectedColor:d}=e;return{[t+"-card"]:{["> "+t+"-nav, > div > "+t+"-nav"]:{[t+"-tab"]:{margin:0,padding:n,background:a,border:(0,Ji.zA)(e.lineWidth)+" "+e.lineType+" "+c,transition:"all "+e.motionDurationSlow+" "+e.motionEaseInOut},[t+"-tab-active"]:{color:d,background:e.colorBgContainer},[t+"-tab-focus:has("+t+"-tab-btn:focus-visible)"]:(0,Kl.jk)(e,-3),["& "+t+"-tab"+t+"-tab-focus "+t+"-tab-btn:focus-visible"]:{outline:"none"},[t+"-ink-bar"]:{visibility:"hidden"}},["&"+t+"-top, &"+t+"-bottom"]:{["> "+t+"-nav, > div > "+t+"-nav"]:{[t+"-tab + "+t+"-tab"]:{marginLeft:{_skip_check_:!0,value:(0,Ji.zA)(i)}}}},["&"+t+"-top"]:{["> "+t+"-nav, > div > "+t+"-nav"]:{[t+"-tab"]:{borderRadius:(0,Ji.zA)(e.borderRadiusLG)+" "+(0,Ji.zA)(e.borderRadiusLG)+" 0 0"},[t+"-tab-active"]:{borderBottomColor:e.colorBgContainer}}},["&"+t+"-bottom"]:{["> "+t+"-nav, > div > "+t+"-nav"]:{[t+"-tab"]:{borderRadius:"0 0 "+(0,Ji.zA)(e.borderRadiusLG)+" "+(0,Ji.zA)(e.borderRadiusLG)},[t+"-tab-active"]:{borderTopColor:e.colorBgContainer}}},["&"+t+"-left, &"+t+"-right"]:{["> "+t+"-nav, > div > "+t+"-nav"]:{[t+"-tab + "+t+"-tab"]:{marginTop:(0,Ji.zA)(i)}}},["&"+t+"-left"]:{["> "+t+"-nav, > div > "+t+"-nav"]:{[t+"-tab"]:{borderRadius:{_skip_check_:!0,value:(0,Ji.zA)(e.borderRadiusLG)+" 0 0 "+(0,Ji.zA)(e.borderRadiusLG)}},[t+"-tab-active"]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},["&"+t+"-right"]:{["> "+t+"-nav, > div > "+t+"-nav"]:{[t+"-tab"]:{borderRadius:{_skip_check_:!0,value:"0 "+(0,Ji.zA)(e.borderRadiusLG)+" "+(0,Ji.zA)(e.borderRadiusLG)+" 0"}},[t+"-tab-active"]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},fl=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:a}=e;return{[t+"-dropdown"]:Object.assign(Object.assign({},(0,Kl.dF)(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},[t+"-dropdown-menu"]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:(0,Ji.zA)(a)+" 0",overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":Object.assign(Object.assign({},Kl.L9),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:(0,Ji.zA)(e.paddingXXS)+" "+(0,Ji.zA)(e.paddingSM),color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:"all "+e.motionDurationSlow,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorIcon,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:n}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},_c=e=>{const{componentCls:t,margin:n,colorBorderSecondary:a,horizontalMargin:i,verticalItemPadding:c,verticalItemMargin:d,calc:p}=e;return{[t+"-top, "+t+"-bottom"]:{flexDirection:"column",["> "+t+"-nav, > div > "+t+"-nav"]:{margin:i,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:(0,Ji.zA)(e.lineWidth)+" "+e.lineType+" "+a,content:"''"},[t+"-ink-bar"]:{height:e.lineWidthBold,"&-animated":{transition:"width "+e.motionDurationSlow+", left "+e.motionDurationSlow+",\n right "+e.motionDurationSlow}},[t+"-nav-wrap"]:{"&::before, &::after":{top:0,bottom:0,width:e.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowRight},["&"+t+"-nav-wrap-ping-left::before"]:{opacity:1},["&"+t+"-nav-wrap-ping-right::after"]:{opacity:1}}}},[t+"-top"]:{["> "+t+"-nav,\n > div > "+t+"-nav"]:{"&::before":{bottom:0},[t+"-ink-bar"]:{bottom:0}}},[t+"-bottom"]:{["> "+t+"-nav, > div > "+t+"-nav"]:{order:1,marginTop:n,marginBottom:0,"&::before":{top:0},[t+"-ink-bar"]:{top:0}},["> "+t+"-content-holder, > div > "+t+"-content-holder"]:{order:0}},[t+"-left, "+t+"-right"]:{["> "+t+"-nav, > div > "+t+"-nav"]:{flexDirection:"column",minWidth:p(e.controlHeight).mul(1.25).equal(),[t+"-tab"]:{padding:c,textAlign:"center"},[t+"-tab + "+t+"-tab"]:{margin:d},[t+"-nav-wrap"]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},["&"+t+"-nav-wrap-ping-top::before"]:{opacity:1},["&"+t+"-nav-wrap-ping-bottom::after"]:{opacity:1}},[t+"-ink-bar"]:{width:e.lineWidthBold,"&-animated":{transition:"height "+e.motionDurationSlow+", top "+e.motionDurationSlow}},[t+"-nav-list, "+t+"-nav-operations"]:{flex:"1 0 auto",flexDirection:"column"}}},[t+"-left"]:{["> "+t+"-nav, > div > "+t+"-nav"]:{[t+"-ink-bar"]:{right:{_skip_check_:!0,value:0}}},["> "+t+"-content-holder, > div > "+t+"-content-holder"]:{marginLeft:{_skip_check_:!0,value:(0,Ji.zA)(p(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:(0,Ji.zA)(e.lineWidth)+" "+e.lineType+" "+e.colorBorder},["> "+t+"-content > "+t+"-tabpane"]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[t+"-right"]:{["> "+t+"-nav, > div > "+t+"-nav"]:{order:1,[t+"-ink-bar"]:{left:{_skip_check_:!0,value:0}}},["> "+t+"-content-holder, > div > "+t+"-content-holder"]:{order:0,marginRight:{_skip_check_:!0,value:p(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:(0,Ji.zA)(e.lineWidth)+" "+e.lineType+" "+e.colorBorder},["> "+t+"-content > "+t+"-tabpane"]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},T1=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:a,cardHeightSM:i,cardHeightLG:c,horizontalItemPaddingSM:d,horizontalItemPaddingLG:p}=e;return{[t]:{"&-small":{["> "+t+"-nav"]:{[t+"-tab"]:{padding:d,fontSize:e.titleFontSizeSM}}},"&-large":{["> "+t+"-nav"]:{[t+"-tab"]:{padding:p,fontSize:e.titleFontSizeLG,lineHeight:e.lineHeightLG}}}},[t+"-card"]:{["&"+t+"-small"]:{["> "+t+"-nav"]:{[t+"-tab"]:{padding:n},[t+"-nav-add"]:{minWidth:i,minHeight:i}},["&"+t+"-bottom"]:{["> "+t+"-nav "+t+"-tab"]:{borderRadius:"0 0 "+(0,Ji.zA)(e.borderRadius)+" "+(0,Ji.zA)(e.borderRadius)}},["&"+t+"-top"]:{["> "+t+"-nav "+t+"-tab"]:{borderRadius:(0,Ji.zA)(e.borderRadius)+" "+(0,Ji.zA)(e.borderRadius)+" 0 0"}},["&"+t+"-right"]:{["> "+t+"-nav "+t+"-tab"]:{borderRadius:{_skip_check_:!0,value:"0 "+(0,Ji.zA)(e.borderRadius)+" "+(0,Ji.zA)(e.borderRadius)+" 0"}}},["&"+t+"-left"]:{["> "+t+"-nav "+t+"-tab"]:{borderRadius:{_skip_check_:!0,value:(0,Ji.zA)(e.borderRadius)+" 0 0 "+(0,Ji.zA)(e.borderRadius)}}}},["&"+t+"-large"]:{["> "+t+"-nav"]:{[t+"-tab"]:{padding:a},[t+"-nav-add"]:{minWidth:c,minHeight:c}}}}}},Vd=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:a,iconCls:i,tabsHorizontalItemMargin:c,horizontalItemPadding:d,itemSelectedColor:p,itemColor:h}=e,m=t+"-tab";return{[m]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:d,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:h,"&-btn, &-remove":{"&:focus:not(:focus-visible), &:active":{color:n}},"&-btn":{outline:"none",transition:"all "+e.motionDurationSlow,[m+"-icon:not(:last-child)"]:{marginInlineEnd:e.marginSM}},"&-remove":Object.assign({flex:"none",marginRight:{_skip_check_:!0,value:e.calc(e.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorIcon,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:"all "+e.motionDurationSlow,"&:hover":{color:e.colorTextHeading}},(0,Kl.K8)(e)),"&:hover":{color:a},["&"+m+"-active "+m+"-btn"]:{color:p,textShadow:e.tabsActiveTextShadow},["&"+m+"-focus "+m+"-btn:focus-visible"]:(0,Kl.jk)(e),["&"+m+"-disabled"]:{color:e.colorTextDisabled,cursor:"not-allowed"},["&"+m+"-disabled "+m+"-btn, &"+m+"-disabled "+t+"-remove"]:{"&:focus, &:active":{color:e.colorTextDisabled}},["& "+m+"-remove "+i]:{margin:0},[i+":not(:last-child)"]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[m+" + "+m]:{margin:{_skip_check_:!0,value:c}}}},_i=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:a,cardGutter:i,calc:c}=e;return{[t+"-rtl"]:{direction:"rtl",[t+"-nav"]:{[t+"-tab"]:{margin:{_skip_check_:!0,value:n},[t+"-tab:last-of-type"]:{marginLeft:{_skip_check_:!0,value:0}},[a]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:(0,Ji.zA)(e.marginSM)}},[t+"-tab-remove"]:{marginRight:{_skip_check_:!0,value:(0,Ji.zA)(e.marginXS)},marginLeft:{_skip_check_:!0,value:(0,Ji.zA)(c(e.marginXXS).mul(-1).equal())},[a]:{margin:0}}}},["&"+t+"-left"]:{["> "+t+"-nav"]:{order:1},["> "+t+"-content-holder"]:{order:0}},["&"+t+"-right"]:{["> "+t+"-nav"]:{order:0},["> "+t+"-content-holder"]:{order:1}},["&"+t+"-card"+t+"-top, &"+t+"-card"+t+"-bottom"]:{["> "+t+"-nav, > div > "+t+"-nav"]:{[t+"-tab + "+t+"-tab"]:{marginRight:{_skip_check_:!0,value:i},marginLeft:{_skip_check_:!0,value:0}}}}},[t+"-dropdown-rtl"]:{direction:"rtl"},[t+"-menu-item"]:{[t+"-dropdown-rtl"]:{textAlign:{_skip_check_:!0,value:"right"}}}}},Hs=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:a,cardGutter:i,itemHoverColor:c,itemActiveColor:d,colorBorderSecondary:p}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,Kl.dF)(e)),{display:"flex",["> "+t+"-nav, > div > "+t+"-nav"]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[t+"-nav-wrap"]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:"opacity "+e.motionDurationSlow,content:"''",pointerEvents:"none"}},[t+"-nav-list"]:{position:"relative",display:"flex",transition:"opacity "+e.motionDurationSlow},[t+"-nav-operations"]:{display:"flex",alignSelf:"stretch"},[t+"-nav-operations-hidden"]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[t+"-nav-more"]:{position:"relative",padding:n,background:"transparent",border:0,color:e.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.calc(e.controlHeightLG).div(8).equal(),transform:"translateY(100%)",content:"''"}},[t+"-nav-add"]:Object.assign({minWidth:a,minHeight:a,marginLeft:{_skip_check_:!0,value:i},background:"transparent",border:(0,Ji.zA)(e.lineWidth)+" "+e.lineType+" "+p,borderRadius:(0,Ji.zA)(e.borderRadiusLG)+" "+(0,Ji.zA)(e.borderRadiusLG)+" 0 0",outline:"none",cursor:"pointer",color:e.colorText,transition:"all "+e.motionDurationSlow+" "+e.motionEaseInOut,"&:hover":{color:c},"&:active, &:focus:not(:focus-visible)":{color:d}},(0,Kl.K8)(e,-3))},[t+"-extra-content"]:{flex:"none"},[t+"-ink-bar"]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),Vd(e)),{[t+"-content"]:{position:"relative",width:"100%"},[t+"-content-holder"]:{flex:"auto",minWidth:0,minHeight:0},[t+"-tabpane"]:Object.assign(Object.assign({},(0,Kl.K8)(e)),{"&-hidden":{display:"none"}})}),[t+"-centered"]:{["> "+t+"-nav, > div > "+t+"-nav"]:{[t+"-nav-wrap"]:{["&:not([class*='"+t+"-nav-wrap-ping']) > "+t+"-nav-list"]:{margin:"auto"}}}}}},Vs=e=>{const{cardHeight:t,cardHeightSM:n,cardHeightLG:a,controlHeight:i,controlHeightLG:c}=e,d=t||c,p=n||i,h=a||c+8;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:d,cardHeightSM:p,cardHeightLG:h,cardPadding:(d-e.fontHeight)/2-e.lineWidth+"px "+e.padding+"px",cardPaddingSM:(p-e.fontHeight)/2-e.lineWidth+"px "+e.paddingXS+"px",cardPaddingLG:(h-e.fontHeightLG)/2-e.lineWidth+"px "+e.padding+"px",titleFontSize:e.fontSize,titleFontSizeLG:e.fontSizeLG,titleFontSizeSM:e.fontSize,inkBarColor:e.colorPrimary,horizontalMargin:"0 0 "+e.margin+"px 0",horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:e.paddingSM+"px 0",horizontalItemPaddingSM:e.paddingXS+"px 0",horizontalItemPaddingLG:e.padding+"px 0",verticalItemPadding:e.paddingXS+"px "+e.paddingLG+"px",verticalItemMargin:e.margin+"px 0 0 0",itemColor:e.colorText,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2}},zd=(0,e2.OF)("Tabs",e=>{const t=(0,Z0.oX)(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:"0 0 0 "+(0,Ji.zA)(e.horizontalItemGutter),tabsHorizontalItemMarginRTL:"0 0 0 "+(0,Ji.zA)(e.horizontalItemGutter)});return[T1(t),_i(t),_c(t),fl(t),$i(t),Hs(t),Mi(t)]},Vs),a0=()=>null;var Ah=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,a=Object.getOwnPropertySymbols(e);i<a.length;i++)t.indexOf(a[i])<0&&Object.prototype.propertyIsEnumerable.call(e,a[i])&&(n[a[i]]=e[a[i]]);return n};const fm=e=>{var t,n,a,i,c,d,p,h,m,x,v;const{type:A,className:k,rootClassName:R,size:F,onEdit:Z,hideAdd:G,centered:ee,addIcon:ce,removeIcon:se,moreIcon:he,more:ve,popupClassName:Te,children:xe,items:Fe,animated:et,style:Ke,indicatorSize:Qe,indicator:nt,destroyInactiveTabPane:Xe,destroyOnHidden:lt}=e,Ct=Ah(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","removeIcon","moreIcon","more","popupClassName","children","items","animated","style","indicatorSize","indicator","destroyInactiveTabPane","destroyOnHidden"]),{prefixCls:St}=Ct,{direction:hn,tabs:Cn,getPrefixCls:Mt,getPopupContainer:Et}=l.useContext(Cr.QO),Co=Mt("tabs",St),Pn=(0,si.A)(Co),[ro,Io,mo]=zd(Co,Pn);let So;A==="editable-card"&&(So={onEdit:(Wa,Dr)=>{let{key:Wr,event:hi}=Dr;Z==null||Z(Wa==="add"?hi:Wr,Wa)},removeIcon:(t=se!=null?se:Cn==null?void 0:Cn.removeIcon)!==null&&t!==void 0?t:l.createElement($p.A,null),addIcon:(ce!=null?ce:Cn==null?void 0:Cn.addIcon)||l.createElement(D,null),showAdd:G!==!0});const ho=Mt(),No=(0,Ui.A)(F),Xo=ad(Fe,xe),Ta=Gr(Co,et),Da=Object.assign(Object.assign({},Cn==null?void 0:Cn.style),Ke),xr={align:(n=nt==null?void 0:nt.align)!==null&&n!==void 0?n:(a=Cn==null?void 0:Cn.indicator)===null||a===void 0?void 0:a.align,size:(p=(c=(i=nt==null?void 0:nt.size)!==null&&i!==void 0?i:Qe)!==null&&c!==void 0?c:(d=Cn==null?void 0:Cn.indicator)===null||d===void 0?void 0:d.size)!==null&&p!==void 0?p:Cn==null?void 0:Cn.indicatorSize};return ro(l.createElement(lr,Object.assign({direction:hn,getPopupContainer:Et},Ct,{items:Xo,className:C()({[Co+"-"+No]:No,[Co+"-card"]:["card","editable-card"].includes(A),[Co+"-editable-card"]:A==="editable-card",[Co+"-centered"]:ee},Cn==null?void 0:Cn.className,k,R,Io,mo,Pn),popupClassName:C()(Te,Io,mo,Pn),style:Da,editable:So,more:Object.assign({icon:(v=(x=(m=(h=Cn==null?void 0:Cn.more)===null||h===void 0?void 0:h.icon)!==null&&m!==void 0?m:Cn==null?void 0:Cn.moreIcon)!==null&&x!==void 0?x:he)!==null&&v!==void 0?v:l.createElement(Ch.A,null),transitionName:ho+"-slide-up"},ve),prefixCls:Co,animated:Ta,indicator:xr,destroyInactiveTabPane:lt!=null?lt:Xe})))};fm.TabPane=a0;const W3=fm,Mk=(0,M.Ay)(W3).withConfig({displayName:"styles__StyledTabList",componentId:"sc-17n7o74-0"})(["&.ant-tabs.ant-tabs-top{>.ant-tabs-nav{margin-bottom:0;&::before{border-bottom:none !important;}.ant-tabs-ink-bar{border-radius:3px 3px 0 0;height:3px;}.ant-tabs-ink-bar-animated{transition:left .2s cubic-bezier(.34,.69,.1,1),right .2s cubic-bezier(.34,.69,.1,1),width .2s cubic-bezier(.34,.69,.1,1);}}.ant-tabs-tab{padding:0 0 12px;.ant-tabs-tab-btn{padding:0 3px;font-weight:400;font-size:14px;color:",";}&.ant-tabs-tab-active{.ant-tabs-tab-btn{font-weight:500;color:",";text-shadow:none;}}&.ant-tabs-tab-focus{.ant-tabs-tab-btn{outline:none !important;}}}&.notification-dropdown{.ant-tabs-tab{padding:9px 0;}}}"],e=>e.theme.color_text_L3,e=>e.theme.color_text_L1),eg=(0,l.memo)(e=>{let{items:t,activeKey:n,className:a,tabBarGutter:i=36,onChange:c,onTabClick:d}=e;return(0,o.jsx)(Mk,{items:t,activeKey:n,className:a,tabBarGutter:i,onTabClick:d,onChange:c})});var dl=s(74923),Cd=s(88463),Bc=s(34771),Gs=s(91474),yf=s(38155);const Tc="/mb-proto2/images/resources/template/category/mobile",Wd="/mb-proto2/images/resources/template/category/web",Kc="/mb-proto2/images/resources/template/category/hmi",Ek=[{label:"\u6CE8\u518C\u767B\u5F55",value:"login",imgSrc:Tc+"/login.png"},{label:"\u9996\u9875",value:"home",imgSrc:Tc+"/home.png"},{label:"\u6211\u7684",value:"me",imgSrc:Tc+"/me.png"},{label:"\u5217\u8868\u9875",value:"list",imgSrc:Tc+"/list.png"},{label:"\u641C\u7D22",value:"search",imgSrc:Tc+"/search.png"},{label:"AI",value:"ai",imgSrc:Tc+"/ai.png"},{label:"\u5FAE\u4FE1",value:"wechat",imgSrc:Tc+"/wechat.png"},{label:"\u6D88\u606F",value:"msg",imgSrc:Tc+"/msg.png"},{label:"\u5F39\u6846\u9875",value:"modal",imgSrc:Tc+"/modal.png"},{label:"\u5BFC\u822A",value:"nav",imgSrc:Tc+"/nav.png"},{label:"\u652F\u4ED8",value:"pay",imgSrc:Tc+"/pay.png"},{label:"\u8868\u5355",value:"form",imgSrc:Tc+"/form.png"},{label:"\u8D2D\u7269\u8F66",value:"shop",imgSrc:Tc+"/shop.png"},{label:"\u5546\u54C1\u8BE6\u60C5",value:"detail",imgSrc:Tc+"/detail.png"},{label:"\u4E0A\u4F20",value:"upload",imgSrc:Tc+"/upload.png"},{label:"\u53CD\u9988",value:"toast",imgSrc:Tc+"/toast.png"},{label:"\u7B7E\u5230",value:"sign",imgSrc:Tc+"/sign.png"},{label:"\u7B5B\u9009",value:"filter",imgSrc:Tc+"/filter.png"},{label:"\u5206\u4EAB",value:"share",imgSrc:Tc+"/share.png"},{label:"\u7F3A\u7701\u9875",value:"empty",imgSrc:Tc+"/empty.png"},{label:"\u5176\u4ED6",value:"other",imgSrc:Tc+"/other.png"}],Ik=[{label:"\u6CE8\u518C\u767B\u5F55",value:"login",imgSrc:Wd+"/login.png"},{label:"\u9996\u9875",value:"home",imgSrc:Wd+"/home.png"},{label:"\u5BFC\u822A",value:"nav",imgSrc:Wd+"/nav.png"},{label:"\u5217\u8868",value:"list",imgSrc:Wd+"/list.png"},{label:"\u8868\u5355\u9875",value:"form",imgSrc:Wd+"/form.png"},{label:"\u6570\u636E\u9875",value:"data",imgSrc:Wd+"/data.png"},{label:"\u7ED3\u679C\u9875",value:"result",imgSrc:Wd+"/result.png"},{label:"\u5730\u56FE",value:"map",imgSrc:Wd+"/map.png"},{label:"AI",value:"ai",imgSrc:Wd+"/ai.png"},{label:"CRM\u7CFB\u7EDF",value:"crm",imgSrc:Wd+"/crm.png"},{label:"ERP\u7CFB\u7EDF",value:"erp",imgSrc:Wd+"/erp.png"},{label:"\u7535\u5546\u540E\u53F0",value:"webback",imgSrc:Wd+"/webback.png"},{label:"\u5185\u5BB9\u7BA1\u7406",value:"content",imgSrc:Wd+"/content.png"},{label:"\u7528\u6237\u7BA1\u7406",value:"user",imgSrc:Wd+"/user.png"},{label:"\u5176\u4ED6",value:"other",imgSrc:Wd+"/other.png"}],_k=[{label:"\u6846\u67B6",value:"frame",imgSrc:Kc+"/frame.png"},{label:"\u767B\u9646\u754C\u9762",value:"login",imgSrc:Kc+"/login.png"},{label:"\u5165\u53E3\u6A21\u677F",value:"template",imgSrc:Kc+"/template.png"},{label:"\u667A\u6167\u5DE5\u5382",value:"factory",imgSrc:Kc+"/factory.png"},{label:"\u56ED\u533A\u5EFA\u7B51",value:"build",imgSrc:Kc+"/build.png"},{label:"\u80FD\u6E90\u7535\u529B",value:"power",imgSrc:Kc+"/power.png"},{label:"\u4EA4\u901A\u8FD0\u7EF4",value:"traffic",imgSrc:Kc+"/traffic.png"},{label:"\u7ECF\u8425\u5206\u6790",value:"business",imgSrc:Kc+"/business.png"},{label:"\u667A\u6167\u91D1\u878D",value:"finance",imgSrc:Kc+"/finance.png"},{label:"\u667A\u6167\u57CE\u5E02",value:"city",imgSrc:Kc+"/city.png"},{label:"\u6C34\u5229\u6C34\u52A1",value:"water",imgSrc:Kc+"/water.png"},{label:"\u667A\u6167\u96F6\u552E",value:"retail",imgSrc:Kc+"/retail.png"},{label:"\u6587\u5316\u65C5\u6E38",value:"travel",imgSrc:Kc+"/travel.png"},{label:"\u667A\u6167\u6821\u56ED",value:"school",imgSrc:Kc+"/school.png"},{label:"\u4ED3\u50A8\u7269\u6D41",value:"logistics",imgSrc:Kc+"/logistics.png"},{label:"\u533B\u7597\u533B\u836F",value:"medicine",imgSrc:Kc+"/medicine.png"},{label:"\u667A\u6167\u519C\u4E1A",value:"farming",imgSrc:Kc+"/farming.png"},{label:"\u5176\u4ED6",value:"other",imgSrc:Kc+"/other.png"}],Tk=M.Ay.div.withConfig({displayName:"styles__StyledPageComp",componentId:"sc-1deyt5b-0"})(["display:flex;flex-direction:column;height:100%;.sticky-container{padding:24px 32px 16px;}.scrollable-marketTemplate-masonry{width:100% !important;}.page-scroll-list-container{scrollbar-width:none;padding-bottom:68px;}.slide-nav{margin-bottom:0 !important;.nav-item{border-radius:6px;}}.template-list-loading-container{gap:20px;padding:0 32px;grid-template-columns:repeat(auto-fill,minmax(172px,1fr));.template-box{.template-cover{width:100% !important;}}}.market-template-masonry-list-container{width:100% !important;padding:0 32px;display:grid;grid-template-columns:repeat(auto-fill,minmax(172px,1fr));grid-gap:20px;.template-item{margin-bottom:20px;.img-wrapper{border-radius:12px !important;border-color:",";&:hover{.cover-fade{opacity:1;}}.cover-fade{position:absolute;bottom:0px;left:0px;right:0px;height:48%;pointer-events:none;transition:0.15s ease-in-out;background:linear-gradient(180deg,rgba(0,0,0,0.00) 0%,rgba(0,0,0,0.30) 100%);opacity:0;}}.template-name{margin-top:10px;}.operation-box{bottom:8px;right:8px;.operation .svgContainer{width:24px;height:24px;.open-folder{width:24px;height:24px;border-radius:6px;background:",";}}}}&.web,&.visual{grid-template-columns:repeat(auto-fill,minmax(256px,1fr));.market-template-masonry-column{.sample{height:174px;}}}&.mobile{grid-template-columns:repeat(auto-fill,minmax(172px,1fr));.market-template-masonry-column{.sample{height:412px;}}}.market-template-masonry-column{margin-right:20px;width:100%;&.mobile{.template-item{width:100%;.img-wrapper{max-height:396px;aspect-ratio:0.47;> img{position:absolute;top:0;max-height:unset;width:100%;}}}}&:last-child{margin-right:0;}}}"],e=>e.theme.color_bg_border_01,e=>e.theme.color_slider_hover),Pk=M.Ay.div.withConfig({displayName:"styles__StyledPageHomeComp",componentId:"sc-1deyt5b-1"})(["flex:1;overflow:hidden overlay;ul{display:grid;grid-template-columns:repeat(auto-fill,minmax(310px,1fr));gap:20px;margin:0px 32px;list-style:none;padding-bottom:40px;li{background:",";display:flex;align-items:center;border-radius:10px;cursor:pointer;&:hover{background:",";}.title{font-size:16px;font-weight:500;color:",";flex:1;margin-left:28px;}.img-wrapper{width:191px;padding:14px 14px 0 0;height:100%;img{height:134px;}}}}"],e=>e.theme.color_navigation_hover,e=>e.theme.color_btn_secondary_active,e=>e.theme.color_text_L1),Lk=M.Ay.div.withConfig({displayName:"styles__StyledPageDetail",componentId:"sc-1deyt5b-2"})(["flex:1;display:flex;flex-direction:column;overflow:hidden;position:relative;.bread-header{display:flex;align-items:center;margin:8px 32px 16px 24px;width:fit-content;.split{color:",";}.back-icon{margin-right:6px;.svg-icon{width:7px;transform:rotate(180deg);}}.platform-sub-filter{height:32px;.filter-opener{padding-left:12px;padding-right:8px;button{.display-name{font-size:16px;font-weight:500;}.arrow-icon{margin-left:2px;width:20px !important;height:20px !important;}}}}}.page-scroll-list-container{padding-top:8px;}"],e=>e.theme.color_text_disabled01),Nk=M.Ay.div.withConfig({displayName:"styles__StyledPageSearch",componentId:"sc-1deyt5b-3"})(["flex:1;overflow:hidden;position:relative;.loading-container{display:flex;align-items:center;justify-content:center;flex-direction:column;margin-top:-40px;margin-left:-25px;height:100%;.loading{width:50px;height:50px;}img{margin-top:0;}span{color:",";margin-top:9px;}}.search-result-container{height:100%;.scroll-market-list{padding-bottom:68px;}}"],e=>e.theme.color_text_L3),jk=e=>{let{platform:t,list:n,onToCategoryDetail:a}=e;return n.length===0?null:(0,o.jsx)(Pk,{children:(0,o.jsx)("ul",{children:n.map(i=>(0,o.jsxs)("li",{onClick:()=>a(i),children:[(0,o.jsx)("span",{className:"title",children:i.label}),(0,o.jsx)("div",{className:"img-wrapper",children:(0,o.jsx)("img",{src:""+i.imgSrc})})]},t+"-"+i.value))})})};var _8=s(90592),H3=s(77036),tg=s(60407),r0=s(64966),ng=s(55326),Dk=s(20862);const og=()=>{const e=(0,r.d4)(te.O4);return(0,o.jsxs)(Rk,{className:"no-result",children:[(0,o.jsx)("img",{src:"/mb-proto2/images/workspace/design/"+(e===yl.Sx.DARK?"no_search_result_dark":"no_search_result_light")+".png",alt:""}),(0,o.jsx)("span",{children:"\u6CA1\u6709\u627E\u5230\u76F8\u5173\u7ED3\u679C"}),(0,o.jsx)(Dk.l,{})]})},Rk=M.Ay.div.withConfig({displayName:"NoSearch__StyledNoSearch",componentId:"sc-1vu091f-0"})(["height:100%;display:flex;align-items:center;justify-content:center;flex-direction:column;color:",";font-size:14px;img{width:88px;margin-bottom:20px;}"],e=>e.theme.color_text_L3);var T8=s(84864),G3=s(80783);const Bk=(0,l.memo)(e=>{let{list:t,currentData:n,platformType:a,onUpdateCurrentData:i,onBack:c,masonryColumnMoblie:d,masonryColumnWeb:p}=e;const h=(0,r.wA)(),m=(0,r.d4)(dl.v3),x=(0,r.d4)(dl.SH),v=(0,r.d4)(Nl.nx),A=(0,r.d4)(Nl.Kr),k=(0,l.useRef)(null),R=a+"-"+n.cid,F=(0,l.useMemo)(()=>{const Qe=m.get(R);if(v&&(Qe==null?void 0:Qe.length)>0){const nt=v.toUpperCase();return Qe.filter(Xe=>Xe.hotAttr.name.toUpperCase().includes(nt))}return Qe},[R,m,v]),{checkedResourceSet:Z,currentResources:G,handleChangeCheckedResource:ee,handleBySeparately:ce,handleMemberClick:se,handleAddItems:he,handleAddItemsAll:ve,handleSelectAll:Te,handleClearAll:xe,handleOpenPreviewModal:Fe}=(0,T8.B)({templateList:F,marketTemplateListMap:x,isFromSameResource:!1}),et=(0,l.useCallback)(Qe=>{const nt=x.get(Qe.cid);h({type:"modal:update:state",payload:{templateModal:{...A,currentDetailResource:nt}}})},[A,x]),Ke=(0,l.useCallback)(Qe=>{const nt=t.find(Xe=>Xe.value===Qe);nt&&(xe(),i(nt))},[i,xe,t]);return(0,l.useEffect)(()=>{xe()},[v]),(0,o.jsxs)(Lk,{children:[(0,o.jsxs)("div",{className:"bread-header",children:[(0,o.jsx)(cl.A,{name:"design/arrow/right",className:"back-icon",onClick:c}),(0,o.jsx)(ng.A,{menuClassName:"page-detail-dropdown-menu",width:140,selectedValue:n==null?void 0:n.value,optionList:t,onChange:Ke}),(0,o.jsx)(G3.R,{})]}),v&&(F==null?void 0:F.length)===0?(0,o.jsx)(og,{}):(0,o.jsx)(_8.i4,{ref:k,className:"page-scroll-list-container",children:Qe=>(0,o.jsx)(H3.A,{category:Ll.Gd,marketTemplateItemList:F,isShowSign:!0,isShowFolderIcon:!0,platform:a,containerRect:Qe,onOpenFolder:et,from:"template-modal",masonryColumnMoblie:d,masonryColumnWeb:p,canChecked:!0,checkedSet:Z,onCheckedResource:ee,onOpenPreviewModal:Fe,isFloatPreviewMkt:!1})}),Z.size>0&&(0,o.jsx)(r0.W,{type:"page",resource:G,checkedSet:Z,onBuySeparately:ce,onMemberClick:se,onSelectAll:Te,onClearAll:xe,onAddItems:he,onAddItemsAll:ve}),(k==null?void 0:k.current)&&(0,o.jsx)(jl.yP,{type:"vertical",containerRef:k,isAutoHideBar:!0})]})}),Uk=(0,l.memo)(e=>{const{currentData:t,platformType:n,onUpdateCurrentData:a}=e,i=(0,r.wA)(),[c,d]=(0,l.useState)(!1),p=(0,l.useCallback)(async x=>{d(!1),await i({type:"entry:resources:set:templatePanel:modals:page:category:data",payload:{updatedPlatformType:n,updatedPlatformSubType:x.cid,callback:()=>{d(!0)}}})},[i,d]);(0,l.useEffect)(()=>{p(t)},[p,t]);const h=(0,l.useMemo)(()=>n==="mobile"?{itemWidth:145,itemHeight:412}:{itemWidth:225,itemHeight:150},[n]),m=(0,l.useCallback)(async x=>{await p(x),a(x)},[a,p]);return c?(0,o.jsx)(Bk,{...e,onUpdateCurrentData:m}):(0,o.jsx)(tg.A,{...h})});var xf=s(12991),Yc=s(13642),Ok=s(28306),gm=s(88909);const Fk={mobile:Gs.Il,web:Gs.eD,visual:Gs.i1},Vk=e=>{let{platformType:t,masonryColumnMoblie:n,masonryColumnWeb:a,isSearching:i,onSetIsShowSildeNav:c}=e;const[d,p]=(0,l.useState)(!1),[h,m]=(0,l.useState)(new Map),[x,v]=(0,l.useState)(null),A=(0,r.d4)(Nl.nx),k=(0,r.d4)(Nl.Kr),R=(0,l.useRef)(null),F=(0,r.wA)(),Z=(0,l.useMemo)(()=>Fk[t].reduce((Xe,lt)=>{var Ct;return Xe.concat((x==null||(Ct=x[lt])==null?void 0:Ct.map(St=>{let{mt:hn}=St;return hn}))||[])},[]),[t,x]),{checkedResourceSet:G,currentResources:ee,handleChangeCheckedResource:ce,handleBySeparately:se,handleMemberClick:he,handleAddItems:ve,handleAddItemsAll:Te,handleSelectAll:xe,handleClearAll:Fe,handleOpenPreviewModal:et}=(0,T8.B)({templateList:Z,marketTemplateListMap:h,isFromSameResource:!1});(0,l.useEffect)(()=>{p(!1),(async()=>{var Xe,lt,Ct,St;if(!A)return;c(!0);const hn={category:"popup_screen_list",q:A,limit:36},Cn=await(0,Eo.F7)(new URLSearchParams(hn),""),Mt=(0,xf.qO)({category:Ll.Gd,searchResults:Cn}),Et=new Map,Co=[],Pn=new Map;Mt==null||(Xe=Mt.resources)==null||Xe.forEach(mo=>{var So;Et.set(mo.cid,mo),Co.push(mo.cid),Pn.set(mo.cid,mo==null||(So=mo.project_metas[0])==null?void 0:So.cid)}),F({type:"searchPanel:update:state",payload:{searchMtMetaCidMap:Pn}}),m(Et);const ro=(lt=(Ct=Mt.list.find(mo=>{let{name:So}=mo;return So==="page-screen"}))==null?void 0:Ct.list)!=null?lt:[],Io=(0,xf.$Y)((St=ro[0])==null?void 0:St.items,"platform");ro.length===0&&c(!1),v(Io),p(!0)})()},[i,A]),(0,l.useEffect)(()=>{Fe()},[t]),(0,l.useEffect)(()=>(Yc.A.emit(gm.rg),()=>{Yc.A.emit(gm.P2,{shownMtItemCids:[]})}),[x]);const Ke=(0,l.useCallback)(nt=>{F({type:"modal:update:state",payload:{templateModal:{...k,currentDetailResource:nt}}})},[k]),Qe=so()(()=>Yc.A.emit(gm.kE,{delay:0}),500);return(0,o.jsx)(Nk,{id:"mb-search-results-panel",children:d?(0,o.jsx)("div",{className:"search-result-container",children:Z.length?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(_8.i4,{className:"scroll-market-list page-scroll-list-container",ref:R,onScrollChange:Qe,children:nt=>(0,o.jsx)(H3.A,{category:Ll.Gd,marketTemplateItemList:Z,isShowSign:!0,isShowFolderIcon:!0,platform:t,containerRect:nt,onOpenFolder:Ke,from:"template-modal",masonryColumnMoblie:n,masonryColumnWeb:a,canChecked:!0,checkedSet:G,onCheckedResource:ce,onOpenPreviewModal:et,isFloatPreviewMkt:!1,isRequsetMktStore:!1})}),G.size>0&&(0,o.jsx)(r0.W,{type:"page",resource:ee,checkedSet:G,onBuySeparately:se,onMemberClick:he,onSelectAll:xe,onClearAll:Fe,onAddItems:ve,onAddItemsAll:Te}),(0,o.jsx)(zk,{renderList:Z})]}):(0,o.jsx)(og,{})}):(0,o.jsxs)("div",{className:"loading-container",children:[(0,o.jsx)(E1.f,{className:"loading"}),(0,o.jsx)("span",{children:I18N.Resources.searching.load})]})})},zk=e=>{let{renderList:t}=e;return(0,l.useEffect)(()=>{if(t&&t.length>0){const n=(0,Ok.R9)({source:"\u6A21\u677F\u5F39\u7A97-\u641C\u7D22",list:t});Yc.A.emit(gm.jy,{observeMtItemObj:n}),Yc.A.emit(gm.BD),Yc.A.emit(gm.kE)}},[t]),null},Wk={mobile:0,web:1,visual:2},Hk=e=>{var t,n;let{pageCategoryDetailData:a,onSetPageCategoryDetailData:i,masonryColumnMoblie:c,masonryColumnWeb:d}=e;const[p,h]=(0,l.useState)(!1),[m,x]=(0,l.useState)(!a),[v,A]=(0,l.useState)(new Map),k=(0,r.d4)(dl.E),[R,F]=(0,l.useState)(Wk[k]),Z=(0,r.d4)(Nl.Kr),G=(0,r.d4)(Nl.nx),[ee,ce]=(0,l.useState)(G),se=(0,r.wA)(),he=(lt,Ct)=>{const St=hn=>hn.map(Cn=>{const Mt=lt.find(Et=>Et.name===Cn.label);if(Mt)return{...Cn,...Mt}}).filter(Cn=>Cn);if(Ct==="mobile")return St(Ek);if(Ct==="web")return St(Ik);if(Ct==="visual")return St(_k)};(0,l.useEffect)(()=>{(async()=>{const Ct=await(0,yf.bq)(k),St=new Map,hn=he(Ct,k);St.set(k,hn),A(St)})()},[k]);const ve=lt=>{se({type:"modal:update:state",payload:{templateModal:{...Z,keyword:lt}}})},Te=(0,l.useMemo)(()=>(G?Gs.Uf:Gs.Ny).map((Ct,St)=>({key:""+St,label:I18N.Resources.page_panel[Ct]})),[G]),xe=(0,l.useMemo)(()=>Gs.Ny[R],[R]),Fe=lt=>{ce(lt),!lt&&!a&&x(!0)},et=lt=>{ve(lt),h(!0)},Ke=()=>{ve(""),ce(""),h(!1),a||x(!0)},Qe=async lt=>{if(G){F(Number(lt));return}const Ct=Gs.Ny[Number(lt)],St=await(0,yf.bq)(Ct),hn=new Map(v),Cn=he(St,Ct);hn.set(Ct,Cn),A(hn),F(Number(lt))},nt=lt=>{i(lt),x(!1)},Xe=()=>{i(null),x(!0)};return(0,o.jsxs)(Tk,{className:"template-modal-page-comp",children:[(0,o.jsxs)("div",{className:"sticky-container",children:[(0,o.jsx)(Cd.A,{value:ee,className:"search-bar",placeholder:"\u641C\u7D22\u6D77\u91CF"+I18N.LeftSidePanel.template.modals.tabNav.page,onChange:Fe,onSearch:et,onClear:Ke,canClear:!0}),m&&(0,o.jsx)(Bc.eD,{activeIndex:R,onTabChange:Qe,height:32,className:"slide-nav",children:Te.map(lt=>{let{key:Ct,label:St}=lt;return(0,o.jsx)(Bc.nl,{label:St},Ct)})})]}),a?(0,o.jsx)(Uk,{list:(t=v.get(xe))!=null?t:[],currentData:a,onUpdateCurrentData:i,platformType:xe,onBack:Xe,masonryColumnMoblie:c,masonryColumnWeb:d}):ee?(0,o.jsx)(Vk,{platformType:xe,masonryColumnMoblie:c,masonryColumnWeb:d,isSearching:p,onSetIsShowSildeNav:x}):(0,o.jsx)(jk,{platform:xe,list:(n=v.get(xe))!=null?n:[],onToCategoryDetail:nt})]})};var ag=s(6538);const P8=[{label:"\u5168\u90E8\u7D20\u6750",key:Gs.yB},{type:"divider",key:""},{label:"\u514D\u8D39",key:Gs._n.Everyone},{label:"\u7D20\u6750\u4F1A\u5458\u514D\u8D39",key:Gs._n.MktMemberFree},{label:"\u4F1A\u5458\u514D\u8D39",key:Gs._n.MdMemberFree}],Gk=(0,l.memo)(e=>{let{policy:t,onSetPolicy:n,onUpdateTemplateList:a}=e;const i=(0,l.useRef)(null),c=(0,r.wA)(),d=(0,l.useMemo)(()=>P8.filter(h=>t.includes(h.key)).map(h=>h.label).join("+"),[t]),p=h=>{if(h===Gs.yB)n([Gs.yB]),a(null,null,[Gs.yB]);else{const m=new Set(t.filter(v=>v!==Gs.yB));m.has(h)?(h===Gs._n.MktMemberFree&&m.delete(Gs._n.MktMemberDiscount),m.delete(h)):(h===Gs._n.MktMemberFree&&m.add(Gs._n.MktMemberDiscount),m.add(h));const x=Array.from(m);x.length===0?(n([Gs.yB]),a(null,null,[Gs.yB])):(n(x),a(null,null,x))}};return(0,o.jsx)(o.Fragment,{children:(0,o.jsx)(ag.A,{dropdownRender:()=>(0,o.jsx)("div",{className:"ant-dropdown-menu",children:P8.map(h=>h.type==="divider"?(0,o.jsx)("li",{role:"separator",className:"ant-dropdown-menu-item-divider"},h.key):(0,o.jsxs)("div",{onClick:m=>{m.stopPropagation(),p(h.key)},className:"ant-dropdown-menu-item",children:[(0,o.jsx)(xt.C,{name:"common/checked",className:C()("ant-dropdown-menu-item-icon",{"item-select":t.includes(h.key)})}),(0,o.jsx)("div",{className:"ant-dropdown-menu-title-content",children:h.label})]},h.key))}),placement:"bottomLeft",getPopupContainer:()=>i.current,children:(0,o.jsxs)("div",{className:"item",ref:i,children:[d,(0,o.jsx)(xt.C,{name:"common/expand",size:8,className:"expand-icon"})]})})})}),Z3={default:{default:["default","\u9879\u76EE\u7BA1\u7406\u7CFB\u7EDF","OA\u79FB\u52A8\u529E\u516C","\u5BA2\u6237\u5173\u7CFB\u7BA1\u7406\u7CFB\u7EDF","\u4EBA\u529B\u8D44\u6E90\u7BA1\u7406\u7CFB\u7EDF","\u8D22\u52A1\u7BA1\u7406\u7CFB\u7EDF","ERP\u7CFB\u7EDF"],\u7535\u5546:["default","\u7EFC\u5408\u7535\u5546","\u5782\u76F4\u7535\u5546","\u793E\u533A\u7535\u5546","\u7535\u5546\u540E\u53F0","\u8D2D\u7269\u652F\u4ED8","\u5546\u5BB6\u7BA1\u7406","ERP\u8FDB\u9500\u7BA1\u7406","WMS\u4ED3\u50A8\u7269\u6D41","\u8425\u9500\u540E\u53F0","\u5185\u5BB9\u7BA1\u7406\u7CFB\u7EDF","OA\u529E\u516C","\u5BA2\u6237\u5173\u7CFB\u7BA1\u7406\u7CFB\u7EDF","\u4EBA\u529B\u8D44\u6E90\u7BA1\u7406\u7CFB\u7EDF","\u8D22\u52A1\u7BA1\u7406\u7CFB\u7EDF","\u9879\u76EE\u7BA1\u7406\u7CFB\u7EDF","ERP\u7CFB\u7EDF","\u8BA2\u5355\u7BA1\u7406","\u7528\u6237\u6743\u9650\u7BA1\u7406","\u5176\u5B83"],\u6559\u80B2:["default","\u6559\u80B2\u540E\u53F0","\u804C\u4E1A\u6559\u80B2","\u5B66\u79D1\u6559\u80B2","\u6559\u5B66\u7BA1\u7406","\u5728\u7EBF\u8BFE\u5802","\u542F\u8499\u6559\u80B2","\u77E5\u8BC6\u5E73\u53F0","\u5185\u5BB9\u7BA1\u7406\u7CFB\u7EDF","OA\u529E\u516C","\u5BA2\u6237\u5173\u7CFB\u7BA1\u7406\u7CFB\u7EDF","\u4EBA\u529B\u8D44\u6E90\u7BA1\u7406\u7CFB\u7EDF","\u8D22\u52A1\u7BA1\u7406\u7CFB\u7EDF","\u9879\u76EE\u7BA1\u7406\u7CFB\u7EDF","ERP\u7CFB\u7EDF","\u8BA2\u5355\u7BA1\u7406","\u7528\u6237\u6743\u9650\u7BA1\u7406","\u8425\u9500\u540E\u53F0","\u5176\u5B83"],\u533B\u7597\u5065\u5EB7:["default","\u533B\u7597\u540E\u53F0","\u5728\u7EBF\u533B\u7597","\u533B\u7597\u4FDD\u9669","\u533B\u7597\u7F8E\u5BB9","\u533B\u7597\u7CFB\u7EDF","\u5065\u5EB7\u7BA1\u7406","\u8FD0\u52A8\u5065\u8EAB","\u5185\u5BB9\u7BA1\u7406\u7CFB\u7EDF","OA\u529E\u516C","\u5BA2\u6237\u5173\u7CFB\u7BA1\u7406\u7CFB\u7EDF","\u4EBA\u529B\u8D44\u6E90\u7BA1\u7406\u7CFB\u7EDF","\u8D22\u52A1\u7BA1\u7406\u7CFB\u7EDF","\u9879\u76EE\u7BA1\u7406\u7CFB\u7EDF","ERP\u7CFB\u7EDF","\u8BA2\u5355\u7BA1\u7406","\u7528\u6237\u6743\u9650\u7BA1\u7406","\u8425\u9500\u540E\u53F0","\u5176\u5B83"],\u65C5\u6E38:["default","\u666F\u533A\u670D\u52A1","\u51FA\u884C","\u65C5\u6E38\u5E73\u53F0","\u9152\u5E97\u4F4F\u5BBF","\u65C5\u6E38\u540E\u53F0","\u5185\u5BB9\u7BA1\u7406\u7CFB\u7EDF","OA\u529E\u516C","\u5BA2\u6237\u5173\u7CFB\u7BA1\u7406\u7CFB\u7EDF","\u4EBA\u529B\u8D44\u6E90\u7BA1\u7406\u7CFB\u7EDF","\u8D22\u52A1\u7BA1\u7406\u7CFB\u7EDF","\u9879\u76EE\u7BA1\u7406\u7CFB\u7EDF","ERP\u7CFB\u7EDF","\u8BA2\u5355\u7BA1\u7406","\u7528\u6237\u6743\u9650\u7BA1\u7406","\u8425\u9500\u540E\u53F0","\u5176\u5B83"],\u529E\u516C:["default","OA\u79FB\u52A8\u529E\u516C","\u901A\u8BAF","\u5DE5\u5177","\u4F01\u4E1A\u7BA1\u7406\u540E\u53F0","OA\u529E\u516C","\u5BA2\u6237\u5173\u7CFB\u7BA1\u7406\u7CFB\u7EDF","\u4EBA\u529B\u8D44\u6E90\u7BA1\u7406\u7CFB\u7EDF","\u8D22\u52A1\u7BA1\u7406\u7CFB\u7EDF","\u9879\u76EE\u7BA1\u7406\u7CFB\u7EDF","ERP\u7CFB\u7EDF","\u8BA2\u5355\u7BA1\u7406","\u7528\u6237\u6743\u9650\u7BA1\u7406","\u8425\u9500\u540E\u53F0","\u5176\u4ED6"],\u7269\u8054\u7F51:["default","\u667A\u6167\u56ED\u533A","\u667A\u6167\u4EA4\u901A","\u667A\u6167\u7269\u6D41","\u667A\u80FD\u5236\u9020","\u667A\u6167\u519C\u4E1A","\u56ED\u533A\u7BA1\u7406\u540E\u53F0","\u4EA4\u901A\u7BA1\u7406\u540E\u53F0","WMS\u4ED3\u50A8\u7269\u6D41","\u5185\u5BB9\u7BA1\u7406\u7CFB\u7EDF","OA\u529E\u516C","\u5BA2\u6237\u5173\u7CFB\u7BA1\u7406\u7CFB\u7EDF","\u4EBA\u529B\u8D44\u6E90\u7BA1\u7406\u7CFB\u7EDF","\u8D22\u52A1\u7BA1\u7406\u7CFB\u7EDF","\u9879\u76EE\u7BA1\u7406\u7CFB\u7EDF","ERP\u7CFB\u7EDF","\u8BA2\u5355\u7BA1\u7406","\u7528\u6237\u6743\u9650\u7BA1\u7406","\u8425\u9500\u540E\u53F0","\u5176\u5B83"],\u6587\u5316\u5A31\u4E50:["default","\u89C6\u9891\u5E73\u53F0","\u97F3\u9891\u5E73\u53F0","\u65B0\u95FB\u8D44\u8BAF","\u9605\u8BFB\u5E73\u53F0","\u6E38\u620F\u5E73\u53F0","\u76F4\u64AD\u7BA1\u7406\u540E\u53F0","\u5185\u5BB9\u7BA1\u7406\u7CFB\u7EDF","\u65C5\u6E38\u540E\u53F0","OA\u529E\u516C","\u5BA2\u6237\u5173\u7CFB\u7BA1\u7406\u7CFB\u7EDF","\u4EBA\u529B\u8D44\u6E90\u7BA1\u7406\u7CFB\u7EDF","\u8D22\u52A1\u7BA1\u7406\u7CFB\u7EDF","\u9879\u76EE\u7BA1\u7406\u7CFB\u7EDF","ERP\u7CFB\u7EDF","\u8BA2\u5355\u7BA1\u7406","\u7528\u6237\u6743\u9650\u7BA1\u7406","\u8425\u9500\u540E\u53F0","\u5176\u5B83"],\u793E\u4EA4:["default","\u793E\u4EA4\u540E\u53F0","\u719F\u4EBA\u793E\u4EA4","\u964C\u751F\u4EBA\u793E\u4EA4","\u793E\u533A/\u8BBA\u575B","\u5A5A\u604B","\u5185\u5BB9\u7BA1\u7406\u7CFB\u7EDF","OA\u529E\u516C","\u5BA2\u6237\u5173\u7CFB\u7BA1\u7406\u7CFB\u7EDF","\u4EBA\u529B\u8D44\u6E90\u7BA1\u7406\u7CFB\u7EDF","\u8D22\u52A1\u7BA1\u7406\u7CFB\u7EDF","\u9879\u76EE\u7BA1\u7406\u7CFB\u7EDF","ERP\u7CFB\u7EDF","\u8BA2\u5355\u7BA1\u7406","\u7528\u6237\u6743\u9650\u7BA1\u7406","\u8425\u9500\u540E\u53F0","\u5176\u5B83"],\u751F\u6D3B:["default","\u9910\u996E\u540E\u53F0","\u7F8E\u98DF\u5916\u5356","\u4EA4\u901A\u51FA\u884C","\u4F4F\u623F\u670D\u52A1","\u62DB\u8058\u6C42\u804C","\u672C\u5730\u751F\u6D3B","\u5185\u5BB9\u7BA1\u7406\u7CFB\u7EDF","OA\u529E\u516C","\u5BA2\u6237\u5173\u7CFB\u7BA1\u7406\u7CFB\u7EDF","\u4EBA\u529B\u8D44\u6E90\u7BA1\u7406\u7CFB\u7EDF","\u8D22\u52A1\u7BA1\u7406\u7CFB\u7EDF","\u9879\u76EE\u7BA1\u7406\u7CFB\u7EDF","ERP\u7CFB\u7EDF","\u8BA2\u5355\u7BA1\u7406","\u7528\u6237\u6743\u9650\u7BA1\u7406","\u8425\u9500\u540E\u53F0","\u5176\u5B83"],\u4F53\u80B2\u8FD0\u52A8:[],\u91D1\u878D\u7406\u8D22:["default","\u91D1\u878D\u540E\u53F0","\u652F\u4ED8\u5E73\u53F0","\u94F6\u884C","\u8D37\u6B3E\u5E73\u53F0","\u6570\u5B57\u8D27\u5E01","\u6295\u8D44\u7406\u8D22","\u5185\u5BB9\u7BA1\u7406\u7CFB\u7EDF","OA\u529E\u516C","\u5BA2\u6237\u5173\u7CFB\u7BA1\u7406\u7CFB\u7EDF","\u4EBA\u529B\u8D44\u6E90\u7BA1\u7406\u7CFB\u7EDF","\u8D22\u52A1\u7BA1\u7406\u7CFB\u7EDF","\u9879\u76EE\u7BA1\u7406\u7CFB\u7EDF","ERP\u7CFB\u7EDF","\u8BA2\u5355\u7BA1\u7406","\u7528\u6237\u6743\u9650\u7BA1\u7406","\u8425\u9500\u540E\u53F0","\u5176\u4ED6"],AI:[],\u5176\u5B83:[]},app:{default:["default","\u7EFC\u5408\u7535\u5546","\u964C\u751F\u4EBA\u793E\u4EA4","\u6E38\u620F\u5E73\u53F0","\u5728\u7EBF\u533B\u7597","OA\u79FB\u52A8\u529E\u516C","\u6559\u5B66\u7BA1\u7406","\u65C5\u6E38\u5E73\u53F0","\u667A\u6167\u56ED\u533A","\u6295\u8D44\u7406\u8D22"],\u7535\u5546:["default","\u7EFC\u5408\u7535\u5546","\u5782\u76F4\u7535\u5546","\u8D2D\u7269\u652F\u4ED8","\u4E8C\u624B\u4EA4\u6613","\u8DE8\u5883\u7535\u5546","\u5546\u5BB6\u7BA1\u7406","\u7269\u6D41\u5FEB\u9012","\u5176\u5B83"],\u793E\u4EA4:["default","\u964C\u751F\u4EBA\u793E\u4EA4","\u719F\u4EBA\u793E\u4EA4","\u793E\u533A/\u8BBA\u575B","\u5A5A\u604B","\u5176\u5B83"],\u751F\u6D3B:["default","\u7F8E\u98DF\u5916\u5356","\u672C\u5730\u751F\u6D3B","\u4EA4\u901A\u51FA\u884C","\u4F4F\u623F\u670D\u52A1","\u62DB\u8058\u6C42\u804C","\u5176\u5B83"],\u6587\u5316\u5A31\u4E50:["default","\u6E38\u620F\u5E73\u53F0","\u89C6\u9891\u5E73\u53F0","\u97F3\u9891\u5E73\u53F0","\u9605\u8BFB\u5E73\u53F0","\u65B0\u95FB\u8D44\u8BAF","\u5176\u5B83"],\u533B\u7597\u5065\u5EB7:["default","\u5728\u7EBF\u533B\u7597","\u517B\u8001\u4EA7\u4E1A","\u533B\u7597\u7F8E\u5BB9","\u533B\u7597\u4FDD\u9669","\u5176\u5B83"],\u529E\u516C:["default","OA\u79FB\u52A8\u529E\u516C","CRM\u5BA2\u6237\u7BA1\u7406","\u901A\u8BAF","\u5DE5\u5177","\u8D22\u52A1","\u9879\u76EE\u7BA1\u7406","\u5176\u5B83"],\u6559\u80B2:["default","\u6559\u5B66\u7BA1\u7406","\u77E5\u8BC6\u5E73\u53F0","\u5728\u7EBF\u8BFE\u5802","\u5B66\u79D1\u6559\u80B2","\u804C\u4E1A\u6559\u80B2","\u542F\u8499\u6559\u80B2","\u5176\u5B83"],\u65C5\u6E38:["default","\u65C5\u6E38\u5E73\u53F0","\u9152\u5E97\u4F4F\u5BBF","\u51FA\u884C","\u666F\u533A\u670D\u52A1","\u5176\u5B83"],\u4F53\u80B2\u8FD0\u52A8:[],\u7269\u8054\u7F51:["default","\u667A\u6167\u56ED\u533A","\u667A\u80FD\u5236\u9020","\u667A\u6167\u7269\u6D41","\u667A\u6167\u4EA4\u901A","\u5176\u5B83"],\u91D1\u878D\u7406\u8D22:["default","\u6295\u8D44\u7406\u8D22","\u94F6\u884C","\u8D37\u6B3E\u5E73\u53F0","\u6570\u5B57\u8D27\u5E01","\u652F\u4ED8\u5E73\u53F0","\u5176\u5B83"],AI:[],\u5176\u5B83:[]},applet:{default:[],\u7535\u5546:[],\u751F\u6D3B:[],\u6559\u80B2:[],\u533B\u7597\u5065\u5EB7:[],\u529E\u516C:[],\u65C5\u6E38:[],\u4F53\u80B2\u8FD0\u52A8:[],AI:[],\u5176\u5B83:[]},web_back:{default:["default","\u9879\u76EE\u7BA1\u7406\u7CFB\u7EDF","OA\u529E\u516C","\u7535\u5546\u540E\u53F0","\u5185\u5BB9\u7BA1\u7406\u7CFB\u7EDF","\u5BA2\u6237\u5173\u7CFB\u7BA1\u7406\u7CFB\u7EDF","\u9879\u76EE\u7BA1\u7406\u7CFB\u7EDF","\u4EBA\u529B\u8D44\u6E90\u7BA1\u7406\u7CFB\u7EDF","ERP\u7CFB\u7EDF","WMS\u4ED3\u50A8\u7269\u6D41","\u7528\u6237\u6743\u9650\u7BA1\u7406","\u8425\u9500\u540E\u53F0"],\u6559\u80B2:["default","\u6559\u80B2\u540E\u53F0","\u5185\u5BB9\u7BA1\u7406\u7CFB\u7EDF","OA\u529E\u516C","\u5BA2\u6237\u5173\u7CFB\u7BA1\u7406\u7CFB\u7EDF","\u4EBA\u529B\u8D44\u6E90\u7BA1\u7406\u7CFB\u7EDF","\u8D22\u52A1\u7BA1\u7406\u7CFB\u7EDF","\u9879\u76EE\u7BA1\u7406\u7CFB\u7EDF","ERP\u7CFB\u7EDF","\u8BA2\u5355\u7BA1\u7406","\u7528\u6237\u6743\u9650\u7BA1\u7406","\u8425\u9500\u540E\u53F0","\u5176\u5B83"],\u529E\u516C:["default","\u4F01\u4E1A\u7BA1\u7406\u540E\u53F0","\u5185\u5BB9\u7BA1\u7406\u7CFB\u7EDF","OA\u529E\u516C","\u5BA2\u6237\u5173\u7CFB\u7BA1\u7406\u7CFB\u7EDF","\u4EBA\u529B\u8D44\u6E90\u7BA1\u7406\u7CFB\u7EDF","\u8D22\u52A1\u7BA1\u7406\u7CFB\u7EDF","\u9879\u76EE\u7BA1\u7406\u7CFB\u7EDF","ERP\u7CFB\u7EDF","\u8BA2\u5355\u7BA1\u7406","\u7528\u6237\u6743\u9650\u7BA1\u7406","\u8425\u9500\u540E\u53F0","\u5176\u5B83"],\u7535\u5546:["default","\u7535\u5546\u540E\u53F0","\u5185\u5BB9\u7BA1\u7406\u7CFB\u7EDF","OA\u529E\u516C","\u5BA2\u6237\u5173\u7CFB\u7BA1\u7406\u7CFB\u7EDF","\u4EBA\u529B\u8D44\u6E90\u7BA1\u7406\u7CFB\u7EDF","\u8D22\u52A1\u7BA1\u7406\u7CFB\u7EDF","\u9879\u76EE\u7BA1\u7406\u7CFB\u7EDF","ERP\u7CFB\u7EDF","\u8BA2\u5355\u7BA1\u7406","WMS\u4ED3\u50A8\u7269\u6D41","\u7528\u6237\u6743\u9650\u7BA1\u7406","\u8425\u9500\u540E\u53F0","\u5176\u5B83"],\u7269\u8054\u7F51:["default","\u56ED\u533A\u7BA1\u7406\u540E\u53F0","\u4EA4\u901A\u7BA1\u7406\u540E\u53F0","\u5185\u5BB9\u7BA1\u7406\u7CFB\u7EDF","OA\u529E\u516C","\u5BA2\u6237\u5173\u7CFB\u7BA1\u7406\u7CFB\u7EDF","\u4EBA\u529B\u8D44\u6E90\u7BA1\u7406\u7CFB\u7EDF","\u8D22\u52A1\u7BA1\u7406\u7CFB\u7EDF","\u9879\u76EE\u7BA1\u7406\u7CFB\u7EDF","ERP\u7CFB\u7EDF","\u8BA2\u5355\u7BA1\u7406","WMS\u4ED3\u50A8\u7269\u6D41","\u7528\u6237\u6743\u9650\u7BA1\u7406","\u8425\u9500\u540E\u53F0","\u5176\u5B83"],\u533B\u7597\u5065\u5EB7:["default","\u533B\u7597\u540E\u53F0","\u5185\u5BB9\u7BA1\u7406\u7CFB\u7EDF","OA\u529E\u516C","\u5BA2\u6237\u5173\u7CFB\u7BA1\u7406\u7CFB\u7EDF","\u4EBA\u529B\u8D44\u6E90\u7BA1\u7406\u7CFB\u7EDF","\u8D22\u52A1\u7BA1\u7406\u7CFB\u7EDF","\u9879\u76EE\u7BA1\u7406\u7CFB\u7EDF","ERP\u7CFB\u7EDF","\u8BA2\u5355\u7BA1\u7406","\u7528\u6237\u6743\u9650\u7BA1\u7406","\u8425\u9500\u540E\u53F0","\u5176\u5B83"],\u91D1\u878D\u7406\u8D22:["default","\u91D1\u878D\u540E\u53F0","\u5185\u5BB9\u7BA1\u7406\u7CFB\u7EDF","OA\u529E\u516C","\u5BA2\u6237\u5173\u7CFB\u7BA1\u7406\u7CFB\u7EDF","\u4EBA\u529B\u8D44\u6E90\u7BA1\u7406\u7CFB\u7EDF","\u8D22\u52A1\u7BA1\u7406\u7CFB\u7EDF","\u9879\u76EE\u7BA1\u7406\u7CFB\u7EDF","ERP\u7CFB\u7EDF","\u8BA2\u5355\u7BA1\u7406","\u7528\u6237\u6743\u9650\u7BA1\u7406","\u8425\u9500\u540E\u53F0","\u5176\u5B83"],\u793E\u4EA4:["default","\u793E\u4EA4\u540E\u53F0","\u5185\u5BB9\u7BA1\u7406\u7CFB\u7EDF","OA\u529E\u516C","\u5BA2\u6237\u5173\u7CFB\u7BA1\u7406\u7CFB\u7EDF","\u4EBA\u529B\u8D44\u6E90\u7BA1\u7406\u7CFB\u7EDF","\u8D22\u52A1\u7BA1\u7406\u7CFB\u7EDF","\u9879\u76EE\u7BA1\u7406\u7CFB\u7EDF","ERP\u7CFB\u7EDF","\u8BA2\u5355\u7BA1\u7406","\u7528\u6237\u6743\u9650\u7BA1\u7406","\u8425\u9500\u540E\u53F0","\u5176\u5B83"],\u6587\u5316\u5A31\u4E50:["default","\u76F4\u64AD\u7BA1\u7406\u540E\u53F0","\u5185\u5BB9\u7BA1\u7406\u7CFB\u7EDF","OA\u529E\u516C","\u5BA2\u6237\u5173\u7CFB\u7BA1\u7406\u7CFB\u7EDF","\u4EBA\u529B\u8D44\u6E90\u7BA1\u7406\u7CFB\u7EDF","\u8D22\u52A1\u7BA1\u7406\u7CFB\u7EDF","\u9879\u76EE\u7BA1\u7406\u7CFB\u7EDF","ERP\u7CFB\u7EDF","\u8BA2\u5355\u7BA1\u7406","\u7528\u6237\u6743\u9650\u7BA1\u7406","\u8425\u9500\u540E\u53F0","\u5176\u5B83"],\u751F\u6D3B:["default","\u9910\u996E\u540E\u53F0","\u5185\u5BB9\u7BA1\u7406\u7CFB\u7EDF","OA\u529E\u516C","\u5BA2\u6237\u5173\u7CFB\u7BA1\u7406\u7CFB\u7EDF","\u4EBA\u529B\u8D44\u6E90\u7BA1\u7406\u7CFB\u7EDF","\u8D22\u52A1\u7BA1\u7406\u7CFB\u7EDF","\u9879\u76EE\u7BA1\u7406\u7CFB\u7EDF","ERP\u7CFB\u7EDF","\u8BA2\u5355\u7BA1\u7406","\u7528\u6237\u6743\u9650\u7BA1\u7406","\u8425\u9500\u540E\u53F0","\u5176\u5B83"],\u65C5\u6E38:["default","\u65C5\u6E38\u540E\u53F0","\u5185\u5BB9\u7BA1\u7406\u7CFB\u7EDF","OA\u529E\u516C","\u5BA2\u6237\u5173\u7CFB\u7BA1\u7406\u7CFB\u7EDF","\u4EBA\u529B\u8D44\u6E90\u7BA1\u7406\u7CFB\u7EDF","\u8D22\u52A1\u7BA1\u7406\u7CFB\u7EDF","\u9879\u76EE\u7BA1\u7406\u7CFB\u7EDF","ERP\u7CFB\u7EDF","\u8BA2\u5355\u7BA1\u7406","\u7528\u6237\u6743\u9650\u7BA1\u7406","\u8425\u9500\u540E\u53F0","\u5176\u5B83"],\u4F53\u80B2\u8FD0\u52A8:[],AI:[],\u5176\u5B83:[]},website:{default:[],\u7535\u5546:[],\u793E\u4EA4:[],\u533B\u7597\u5065\u5EB7:[],\u65C5\u6E38:[],\u6559\u80B2:[],\u6587\u5316\u5A31\u4E50:[],\u529E\u516C:[],\u91D1\u878D\u7406\u8D22:[],\u751F\u6D3B:[],\u7269\u8054\u7F51:[],AI:[],\u5176\u5B83:[]},display_screen:{default:[],\u667A\u6167\u5DE5\u5382:[],\u667A\u6167\u653F\u52A1:[],\u667A\u6167\u57CE\u5E02:[],\u80FD\u6E90\u7535\u529B:[],\u7ECF\u8425\u5206\u6790:[],\u76D1\u7BA1\u8FD0\u7EF4:[],\u56ED\u533A\u5EFA\u7B51:[],\u667A\u6167\u6821\u56ED:[],\u533B\u836F\u533B\u7597:[],\u667A\u6167\u91D1\u878D:[],\u6587\u5316\u65C5\u6E38:[],\u4ED3\u50A8\u7269\u6D41:[],\u6C34\u5229\u6C34\u52A1:[],\u667A\u6167\u96F6\u552E:[],\u5176\u5B83:[]},ipad:{default:[],\u7535\u5546:[],\u793E\u4EA4:[],\u533B\u7597\u5065\u5EB7:[],\u65C5\u6E38:[],\u6559\u80B2:[],\u6587\u5316\u5A31\u4E50:[],\u529E\u516C:[],\u91D1\u878D\u7406\u8D22:[],\u751F\u6D3B:[],\u7269\u8054\u7F51:[],\u5176\u5B83:[]},activity:{},smart_tv:{},HMI:{},smart_car:{},apple_watch:{},slide:{},other:{}},Zk={default:{default:"\u529E\u516C"},app:{default:"\u7535\u5546"},web_back:{default:"\u529E\u516C"}},Kk=e=>{let{industry:t,platform:n,onSetIndusty:a,onSetSubIndusty:i,onUpdateTemplateList:c}=e;const d=(0,l.useRef)(null),p=(0,l.useMemo)(()=>{var m;const x=(m=Object.keys(Z3[n]))!=null?m:[];return x==null?void 0:x.map(v=>({label:v==="default"?"\u5168\u90E8\u884C\u4E1A":v,key:v}))},[n]),h=m=>{var x;a(m);const v=(x=Z3[n])==null?void 0:x[t];v.length>0&&i(v[0]),c(m,v[0])};return p.length===0?null:(0,o.jsx)(ag.A,{forceRender:!0,dropdownRender:()=>(0,o.jsx)("div",{className:"ant-dropdown-menu",children:p.map(m=>(0,o.jsxs)("div",{onClick:x=>{var v;x.stopPropagation(),h(m.key);const A=(v=d.current)==null?void 0:v.querySelector(".ant-dropdown");A&&(A.classList.add("is-hide"),d.current.classList.remove("ant-dropdown-open"))},className:"ant-dropdown-menu-item",children:[(0,o.jsx)(xt.C,{name:"common/checked",className:C()("ant-dropdown-menu-item-icon",{"item-select":t===m.key})}),(0,o.jsx)("div",{className:"ant-dropdown-menu-title-content",children:m.label})]},m.key))}),placement:"bottomLeft",getPopupContainer:()=>d.current,children:(0,o.jsxs)("div",{className:"item",ref:d,onMouseEnter:()=>{var m;const x=(m=d.current)==null?void 0:m.querySelector(".ant-dropdown");x&&(x.classList.remove("is-hide"),d.current.classList.add("ant-dropdown-open"))},children:[t==="default"?"\u5168\u90E8\u884C\u4E1A":t,(0,o.jsx)(xt.C,{name:"common/expand",size:8,className:"expand-icon"})]})})},Yk=e=>{let{platform:t,subIndustry:n,industry:a,onSetSubIndusty:i,onSetIndusty:c,onUpdateTemplateList:d}=e;const p=(0,l.useRef)(null),h=(0,l.useMemo)(()=>{var x,v;const A=(x=(v=Z3[t])==null?void 0:v[a])!=null?x:[];return A==null?void 0:A.map(k=>({label:k==="default"?"\u5168\u90E8\u5B50\u884C\u4E1A":k,key:k}))},[a,t]),m=x=>{var v;i(x);const A=(v=Zk[t])==null?void 0:v[a];A&&c(A),d(A||a,x)};return h.length===0?null:(0,o.jsx)(ag.A,{dropdownRender:()=>(0,o.jsx)("div",{className:"ant-dropdown-menu",children:h.map(x=>(0,o.jsxs)("div",{onClick:v=>{var A;v.stopPropagation(),m(x.key);const k=(A=p.current)==null?void 0:A.querySelector(".ant-dropdown");k&&(k.classList.add("is-hide"),p.current.classList.remove("ant-dropdown-open"))},className:"ant-dropdown-menu-item",children:[(0,o.jsx)(xt.C,{name:"common/checked",className:C()("ant-dropdown-menu-item-icon",{"item-select":n===x.key})}),(0,o.jsx)("div",{className:"ant-dropdown-menu-title-content",children:x.label})]},x.key))}),placement:"bottomLeft",getPopupContainer:()=>p.current,children:(0,o.jsxs)("div",{className:"item",ref:p,onMouseEnter:()=>{var x;const v=(x=p.current)==null?void 0:x.querySelector(".ant-dropdown");v&&(v.classList.remove("is-hide"),p.current.classList.add("ant-dropdown-open"))},children:[n==="default"?"\u5168\u90E8\u5B50\u884C\u4E1A":n,(0,o.jsx)(xt.C,{name:"common/expand",size:8,className:"expand-icon"})]})})},Xk=M.Ay.div.withConfig({displayName:"styles__StyledDropdownFilter",componentId:"sc-1ig3qk0-0"})(["display:flex;font-size:12px;color:",";.ant-dropdown-trigger{padding:8px 6px 8px;margin-right:16px;&.ant-dropdown-open{.expand-icon{transform:rotate(-180deg);}}.expand-icon{margin-left:7px;}}"],e=>e.theme.color_text_L1),Qk=(0,M.DU)([".ant-dropdown{width:180px !important;margin:4px 0 !important;min-width:auto !important;&.is-hide{opacity:0;}}.ant-dropdown-menu{padding:8px !important;width:180px !important;background:"," !important;box-shadow:"," !important;border:1px solid "," !important;.ant-dropdown-menu-item{color:"," !important;&:hover{background:"," !important;}}}.ant-dropdown-menu-item{padding:5px 8px !important;.ant-dropdown-menu-item-icon{width:16px !important;height:16px !important;margin-inline-end:4px !important}svg{&:not(.item-select){opacity:0;}}.ant-dropdown-menu-title-content{color:"," !important;font-size:12px !important;}}"],e=>e.theme.color_bg_white,e=>e.theme.shadow_m,e=>e.theme.color_bg_border_01,e=>e.theme.color_text_L1,e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_text_L1),Jk=e=>{let{platform:t,isResetIndustry:n,onUpdateTemplateList:a,onResetScroll:i}=e;const[c,d]=(0,l.useState)([Gs.yB]),[p,h]=(0,l.useState)(Gs.yB),[m,x]=(0,l.useState)(Gs.yB),{labelsMap:v}=(0,r.d4)(Nl.Kr);(0,l.useEffect)(()=>{n&&(h(Gs.yB),x(Gs.yB))},[n]);const A=(0,l.useCallback)(function(k,R,F){k===void 0&&(k=p),R===void 0&&(R=m),F===void 0&&(F=c);const Z={};if(k){if(k===Gs.yB)Z.plabel=Gs.yB,Z.clabel=Gs.yB;else if(v[k]){var G,ee;if(Z.plabel=k,Z.plabelId=(G=v[k])==null?void 0:G.plabelId,R&&(ee=v[k])!=null&&ee.clabels[R]){var ce;Z.clabel=R,Z.clabelId=(ce=v[k])==null?void 0:ce.clabels[R]}else Z.clabel=Gs.yB}}if(F)if(F.length>0&&F.includes(Gs.yB))Z.policy=Gs.yB;else{const se=Gs.RY.map(he=>{if(F.includes(he))return he}).filter(he=>he).join("_");Z.policy=Gs.rW[se]}a(Z,!0),i()},[p,v,a,c,m]);return(0,o.jsxs)(Xk,{className:"dropdown-container",children:[(0,o.jsx)(Kk,{platform:t,industry:p,onSetIndusty:h,onSetSubIndusty:x,onUpdateTemplateList:A}),(0,o.jsx)(Yk,{platform:t,industry:p,subIndustry:m,onSetIndusty:h,onSetSubIndusty:x,onUpdateTemplateList:A}),!ENV.IS_ON_PREMISES&&(0,o.jsx)(Gk,{policy:c,onSetPolicy:d,onUpdateTemplateList:A}),(0,o.jsx)(Qk,{})]})};var qk=s(19396),K3=s.n(qk),Y3=s(61541),vf=s(69874),L8=s(27142),N8=s(64335),Dl=s(78257);const $k=M.Ay.div.withConfig({displayName:"styles__StyledListComp",componentId:"sc-xp5lbg-0"})(["flex:1;overflow:hidden overlay;ul.template-list-container{display:grid;list-style:none;padding-bottom:40px;grid-template-columns:repeat(auto-fill,minmax(224px,1fr));gap:20px;margin:0 32px;}.template-list-loading-container{padding:0 32px;grid-gap:20px;grid-template-columns:repeat(auto-fill,minmax(224px,1fr));.template-box{.template-cover{width:100% !important;border-radius:12px !important;}}}"]),eM=M.Ay.li.withConfig({displayName:"styles__StyledTemplateItem",componentId:"sc-xp5lbg-1"})(["position:relative;.vip{position:absolute;top:10px;right:10px;height:20px;z-index:1;&.short{width:20px}}&:hover{.vip.short{visibility:hidden}}&:not(:hover){.vip.long{visibility:hidden}}.new{position:absolute;top:10px;left:10px;height:20px;z-index:1;}.btn-box{display:none;position:absolute;width:24px;height:24px;bottom:8px;right:8px;border-radius:6px;align-items:center;justify-content:center;background:rgba(51,51,51,0.5);.temp-star-btn{width:8px;height:11px;path{fill:#fff;}}&.isStarred{background:",";}&:not(.isStarred):hover{background:rgba(51,51,51,0.7);}}.template-cover{position:relative;border-radius:12px;overflow:hidden;padding-bottom:74%;height:0px;cursor:pointer;border:1px solid rgba(18,17,42,0.07);box-sizing:border-box;&:hover{.cover-fade{opacity:1;}.btn-box{display:flex;}}img{width:calc(100% + 2px);transition:transform 1s cubic-bezier(0,0,0,1);&:hover{transform:scale(1.05);}&.mask{opacity:0.65;}}.cover-fade{position:absolute;bottom:0px;left:0px;right:0px;height:25%;pointer-events:none;transition:0.15s ease-in-out;background:linear-gradient(180deg,rgba(0,0,0,0) 0%,rgba(0,0,0,0.4) 100%);opacity:0;}}.templateInfo{display:flex;justify-content:space-between;align-items:center;margin-top:10px;.editable-span{color:",";cursor:pointer;}.liked,.used{display:flex;color:",";margin-left:8px;align-items:center;margin-top:1px;cursor:pointer;.nums{margin-left:4px;}}}"],e=>e.theme.color_proto,e=>e.theme.color_text_L1,e=>e.theme.color_text_L3),tM=(0,o.jsx)("svg",{width:"16px",height:"16px",viewBox:"0 0 16 16",children:(0,o.jsx)("path",{fill:"#8B8C8F",stroke:"#8B8C8F",strokeWidth:".12",d:"m6.28 3.11-.01.04Q5.94 4.6 5.3 5.4a2.4 2.4 0 0 1-1.82.9h-.35c-.84.02-1.52.72-1.52 1.58v4.96c0 1.05.84 1.9 1.88 1.9h6.44a3.2 3.2 0 0 0 3.01-2.14l1.34-3.74-.05-.02.05.02a1.9 1.9 0 0 0-1.77-2.53H9.8q.38-1.69.53-2.45l-.06-.01h.06c.13-.66.02-1.3-.29-1.79-.31-.48-.84-.8-1.53-.8a2 2 0 0 0-1.44.47q-.52.46-.78 1.37Zm1.49-.5q.25-.22.73-.22.43.01.63.35.2.35.1.9-.18.9-.68 3.11c-.08.35.18.69.54.69h3.42q.13 0 .26.04c.4.15.6.59.46 1l.05.01-.05-.02-1.34 3.74.06.02-.06-.02c-.3.84-1.08 1.4-1.96 1.4H3.49a.77.77 0 0 1-.76-.78V7.87c0-.25.2-.45.44-.46h.34a3.5 3.5 0 0 0 2.66-1.32q.8-1 1.18-2.67.17-.59.42-.8Zm-4.6 4.74h.34a3.5 3.5 0 0 0 2.61-1.3z"})}),nM=(0,o.jsx)("svg",{width:"16px",height:"16px",viewBox:"0 0 16 16",children:(0,o.jsx)("path",{fill:"#F85050",d:"M13.15 6.41q-.31-.12-.64-.1H9.79l.53-2.46c.12-.62.01-1.26-.32-1.8a1.8 1.8 0 0 0-1.53-.8 2 2 0 0 0-1.44.47 3 3 0 0 0-.78 1.37q-.24 1.23-1 2.24-.32.4-.76.65-.49.23-1 .25h-.36A1.56 1.56 0 0 0 1.6 7.85v5a1.9 1.9 0 0 0 1.88 1.9h6.44a3.2 3.2 0 0 0 3-2.14l1.34-3.74a1.9 1.9 0 0 0-1.12-2.46"})}),oM=(0,o.jsxs)("svg",{width:"16px",height:"16px",viewBox:"0 0 16 16",children:[(0,o.jsx)("g",{clipPath:"url(#clip0_11355_1024)",children:(0,o.jsx)("path",{fill:"#8B8C8F",d:"M14.18 7.25a.8.8 0 0 0-.76-.51h-2.74v-4a1 1 0 0 0-1-1H6.34a1 1 0 0 0-1 1v4H2.58a.8.8 0 0 0-.77.5.9.9 0 0 0 .19.91L7.4 14a.9.9 0 0 0 .6.26.8.8 0 0 0 .6-.26L14 8.16a.8.8 0 0 0 .18-.91M12.69 8 8 13 3.31 8v-.06h2.62a.56.56 0 0 0 .56-.56V2.87h3a.1.1 0 0 1 .05.06V7.3a.56.56 0 0 0 .55.56h2.53s.09.07.07.14"})}),(0,o.jsx)("defs",{children:(0,o.jsx)("clipPath",{id:"clip0_11355_1024",children:(0,o.jsx)("path",{fill:"#fff",d:"M1.75 1.75h12.5v12.5H1.75z"})})})]}),j8=e=>{let{template:t,isShowTag:n=!0,isShowStar:a=!0,onClickItem:i,onFavorite:c,onStar:d,onUsedCallback:p}=e;const{isMdVipTemplate:h,isMktVipTemplate:m}=(0,Y3.TX)(t),x=new L8.H(t.liked_count).getDisplayStr(),v=new L8.H(t.used_count).getDisplayStr(),{handleUsedTemplate:A}=(0,N8.A)(),k=(0,r.wA)(),R=(0,l.useMemo)(()=>{if(!n)return!1;const ee=Ft()().diff(Ft()(t.updated_at),"day");return ee<=30&&ee>=0},[n,t.updated_at]),F=ee=>{ee.stopPropagation(),c==null||c(t)},Z=ee=>{ee.stopPropagation(),d==null||d(t)},G=ee=>{ee.stopPropagation(),A(t,ce=>{p==null||p(t),ce&&(k({type:"modal:update:state",payload:{templateModal:{isOpen:!1}}}),k({type:"entry:active:popup:panel",payload:{name:Dl.lS.Directory}}))})};return(0,o.jsxs)(eM,{className:"template-item",onClick:()=>i(t),children:[(0,o.jsxs)("div",{className:"template-cover",children:[(0,o.jsx)("img",{src:t.cover,className:"cover"}),(0,o.jsx)("div",{className:"cover-fade"}),a&&(0,o.jsx)("div",{className:C()("btn-box",{"isStarred ":t.is_star}),onClick:ee=>Z(ee),children:(0,o.jsx)(Ti.A,{content:t.is_star?I18N.Resources.stared:I18N.Resources.star,direction:"down",children:(0,o.jsx)(xt.C,{className:C()("temp-star-btn"),name:"art_board/resources/star/small"})})})]}),(0,o.jsxs)("div",{className:"templateInfo",children:[(0,o.jsx)(vf.A,{value:t.title,className:"editable-span",isEditing:!1},t.title),n&&(0,o.jsxs)(o.Fragment,{children:[!ENV.IS_ON_PREMISES&&(0,o.jsxs)("div",{className:"liked",onClick:F,children:[t.is_liked?nM:tM,(0,o.jsx)("span",{className:"nums",children:x})]}),(0,o.jsxs)("div",{className:"used",onClick:G,children:[oM,!ENV.IS_ON_PREMISES&&(0,o.jsx)("span",{className:"nums",children:v})]})]})]}),h&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(xt.C,{className:"vip short",name:"art_board/community_resources/md_vip_s",isColorPure:!0}),(0,o.jsx)("img",{className:"vip long",src:"/mb-proto2/images/nav/md_vip.png"})]}),m&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(xt.C,{className:"vip short",name:"art_board/community_resources/mt_vip_s",isColorPure:!0}),(0,o.jsx)("img",{className:"vip long",src:"/mb-proto2/images/nav/mt_vip.png"})]}),R&&(0,o.jsx)("img",{className:"new",src:"/mb-proto2/images/nav/item_new.png"})]},t.cid)},aM=e=>{let{templateList:t,keyword:n,isLoadedTemplateData:a,onRequestTemplateList:i,onUpdateTemplateList:c,onTrack:d}=e;const p=(0,l.useRef)(null),h=(0,l.useRef)(null),m=(0,r.wA)(),x=(0,r.d4)(Nl.Kr),v=(0,r.d4)(me.PL),A=(0,r.d4)(me.wA),k=(0,r.d4)(me.HW);(0,l.useEffect)(()=>{if(!p.current)return;const ee=K3()(ce=>{var se,he;const ve=ce.target.scrollTop,Te=ce.target.offsetHeight;if(((se=h==null||(he=h.current)==null?void 0:he.offsetHeight)!=null?se:0)-Te-ve<80&&a){var Fe;const et=p.current,Ke=(Fe=et==null?void 0:et.scrollTop)!=null?Fe:0;i(null,!1).then(()=>{requestAnimationFrame(()=>{if(p.current){var Qe;p.current.scrollTop=Ke+((Qe=et==null?void 0:et.offsetHeight)!=null?Qe:0)-80}})})}},100);return p.current.addEventListener("scroll",ee),()=>{var ce;p==null||(ce=p.current)==null||ce.removeEventListener("scroll",ee)}},[a,i,h==null?void 0:h.current]),(0,l.useEffect)(()=>{const{actionType:ee,actionData:ce}=x;ee&&ce&&(ee==="star"&&Z(ce,"is-from-community-detail-frame"),ee==="favorite"&&F(ce,"is-from-community-detail-frame"))},[x.actionType,x.actionData]);const R=(0,l.useCallback)(ee=>{m({type:"modal:update:state",payload:{templateFileDetialModal:{isOpen:!0,template:ee}}}),d(ee)},[]),F=(0,l.useCallback)(async function(ee,ce){if(ce===void 0&&(ce=""),!ee||MB.global.experienceLoginModalHelper("isSave"))return;if(ce==="is-from-community-detail-frame"){const Fe=(0,Ud.$G)(t,et=>et.cid===ee.cid,{...ee});c(Fe);return}const se=!ee.is_liked,he=ee.target_upper_cid||ee.cid;se?await(0,I1.q3)(he):await(0,I1.V)(he);const ve=se?ee.liked_count+1:ee.liked_count-1,Te={is_liked:se,liked_count:ve},xe=(0,Ud.$G)(t,Fe=>Fe.cid===ee.cid,{...ee,...Te});c(xe)},[t]),Z=(0,l.useCallback)(async function(ee,ce){if(ce===void 0&&(ce=""),!ee||MB.global.experienceLoginModalHelper("isSave"))return;if(ce==="is-from-community-detail-frame"){const xe=(0,Ud.$G)(t,Fe=>Fe.cid===ee.cid,{...ee});c(xe);return}const{is_star:se,cid:he}=ee;await(0,fd.lU)(se,he);const ve={is_star:!ee.is_star},Te=(0,Ud.$G)(t,xe=>xe.cid===ee.cid,{...ee,...ve});c(Te)},[t]),G=(0,l.useCallback)(ee=>{const ce={used_count:ee.used_count+1},se=(0,Ud.$G)(t,he=>he.cid===ee.cid,{...ee,...ce});c(se)},[t]);return(0,o.jsx)($k,{className:"market-template-scroll-container",ref:p,children:a?(0,o.jsx)(o.Fragment,{children:n&&t.length===0?(0,o.jsx)(og,{}):(0,o.jsx)("ul",{className:"template-list-container",ref:h,children:t.map(ee=>(0,o.jsx)(j8,{template:ee,onClickItem:R,onFavorite:F,onStar:Z,onUsedCallback:G},ee.cid))})}):(0,o.jsx)(tg.A,{itemHeight:190,itemWidth:224})})},rM={default:"\u5168\u90E8",everyone:"\u514D\u8D39",member_free:"VIP\u514D\u8D39",mt_member_free:"\u7D20\u6750\u4F1A\u5458\u514D\u8D39",mt_free_discount:"\u7D20\u6750\u4F1A\u5458\u514D\u8D39",every_mt_free:"\u514D\u8D39-\u7D20\u6750\u4F1A\u5458\u514D\u8D39",every_md_mt_free:"\u514D\u8D39-VIP\u514D\u8D39-\u7D20\u6750\u4F1A\u5458\u514D\u8D39",md_mt_free:"VIP\u514D\u8D39-\u7D20\u6750\u4F1A\u5458\u514D\u8D39",every_md_free:"\u514D\u8D39-VIP\u514D\u8D39"},iM=e=>{let{template:t,plabel:n,clabel:a,keyword:i,order:c,policy:d,platform:p}=e;const{isMdVipTemplate:h,isMktVipTemplate:m}=(0,Y3.TX)(t);(0,ic.ZI)("template_detail_show",{source:"\u7F16\u8F91\u533A-\u6587\u4EF6\u6A21\u677F\u5F39\u7A97",plabel:n===Gs.yB||!n?"\u5168\u90E8":n,clabel:a===Gs.yB||!a?"\u5168\u90E8":a,keyword:i,order:c||"\u70ED\u95E8\u63A8\u8350",platform:p||"\u5168\u90E8",template_name:t.title,template_cid:t.cid,is_vip_template:h,is_scvip_template:m,policy:rM[d]})},sM=M.Ay.div.withConfig({displayName:"styles__StyledFileComp",componentId:"sc-hxnj1j-0"})(["display:flex;flex-direction:column;height:100%;.sticky-container{padding:24px 32px 16px;}.category-filter-container{display:flex;justify-content:space-between;align-items:center;img.new{height:18px;margin-left:4px;}}.slide-nav{&.platForm{margin-bottom:12px;.nav-item{border-radius:6px;span.nav-label{display:inline-block;height:auto;&::before{content:attr(title);display:block;height:0;overflow:hidden;visibility:hidden;font-weight:500;}}}}&.category{margin:0 !important;.nav-item{padding-left:0;padding-right:0;margin-right:24px;}}}"]),lM=()=>{const[e,t]=(0,l.useState)(!1),[n,a]=(0,l.useState)([]),[i,c]=(0,l.useState)(0),[d,p]=(0,l.useState)(0),h=(0,l.useRef)(null),m=(0,l.useRef)(0),x=(0,l.useRef)(0),v=(0,l.useRef)(!1),A=(0,r.d4)(Nl.nx),k=(0,r.d4)(Nl.Kr),R=(0,r.wA)(),F=async function(Ke,Qe){var nt;if(Qe===void 0&&(Qe=!0),!Qe&&m.current!==0&&n.length>=m.current)return;t(!1);let Xe=x.current;Qe?Xe=1:Xe=Xe+1,Ke&&(h.current={...(nt=h.current)!=null?nt:{},...Ke});const lt=await(0,yf.n5)(h.current,Xe);m.current=lt.total_count,a(Qe?lt.market_templates:[...n,...lt.market_templates]),x.current=Xe,t(!0)};(0,l.useEffect)(()=>{(async()=>{if(A){F({q:A});return}const{total_count:Qe,market_templates:nt}=await(0,yf.n5)(null);m.current=Qe,a(nt),t(!0)})()},[A]);const Z=Ke=>{R({type:"modal:update:state",payload:{templateModal:{...k,keyword:Ke}}})},G=Ke=>{var Qe,nt;const{plabel:Xe,clabel:lt,policy:Ct="default",order:St="recommend",platform:hn="default"}=h.current||{};iM({template:Ke,platform:(Qe=ee.find(Cn=>Cn.value===hn))==null?void 0:Qe.label,plabel:Xe,clabel:lt,policy:Ct,order:(nt=ce.find(Cn=>Cn.value===St))==null?void 0:nt.label,keyword:A})},ee=(0,l.useMemo)(()=>{const Ke=[{label:"\u5168\u90E8",value:"default",key:0},{label:"App",value:"app",key:1},{label:"Web\u540E\u53F0",value:"web_back",key:2},{label:"\u5C0F\u7A0B\u5E8F",value:"applet",key:3},{label:"Web\u7F51\u7AD9",value:"website",key:4},{label:"\u5E7B\u706F\u7247",value:"slide",key:11}];return ENV.IS_ON_PREMISES?Ke:Ke.concat([{label:"\u53EF\u89C6\u5316\u5927\u5C4F",value:"display_screen",key:5},{label:"HMI",value:"HMI",key:6},{label:"\u5E73\u677F\u7AEF",value:"ipad",key:7},{label:"\u667A\u80FD\u7535\u89C6",value:"smart_tv",key:8},{label:"\u6D3B\u52A8",value:"activity",key:9},{label:"\u624B\u8868",value:"apple_watch",key:10},{label:"\u5176\u5B83",value:"other",key:12}]).sort((Qe,nt)=>Qe.key-nt.key)},[]),ce=(0,l.useMemo)(()=>[{label:"\u70ED\u95E8\u63A8\u8350",value:"recommend",key:0},{label:"\u6700\u65B0\u53D1\u5E03",value:"recent",key:1},{label:"\u6700\u591A\u6D4F\u89C8",value:"views",key:2},{label:"\u6700\u591A\u4F7F\u7528",value:"used",key:3}],[]),se=(0,l.useMemo)(()=>{var Ke;return(Ke=ee.find(Qe=>{let{key:nt}=Qe;return i===nt}))==null?void 0:Ke.value},[i,ee]),he=Ke=>{Z(Ke),xe()},ve=Ke=>{F({q:Ke})},Te=()=>{var Ke;Z(""),(Ke=h.current)==null||delete Ke.q,F(null),xe()},xe=()=>{const Ke=document.querySelector(".market-template-scroll-container");Ke&&(Ke.scrollTop=0)},Fe=Ke=>{c(Ke);const Qe=ee.find(nt=>{let{key:Xe}=nt;return Ke===Xe});if(Qe){const nt={platform:Qe.value,plabel:Gs.yB,clabel:Gs.yB};v.current=!0,F(nt,!0),xe()}},et=Ke=>{p(Ke);const Qe=ce.find(nt=>{let{key:Xe}=nt;return Ke===Xe});if(Qe){const nt={order:Qe.value};v.current=!1,F(nt,!0),xe()}};return(0,o.jsxs)(sM,{children:[(0,o.jsxs)("div",{className:"sticky-container",children:[(0,o.jsx)(Cd.A,{value:A,className:"search-bar",placeholder:"\u641C\u7D22\u6D77\u91CF"+I18N.LeftSidePanel.template.modals.tabNav.file,onChange:he,onSearch:ve,onClear:Te,wait:200,canClear:!0,isInstantSearch:!1}),(0,o.jsx)(Bc.eD,{activeIndex:i,onTabChange:Fe,height:32,className:"slide-nav platForm",children:ee.map(Ke=>{let{key:Qe,label:nt}=Ke;return(0,o.jsx)(Bc.nl,{label:nt},Qe)})}),(0,o.jsx)("div",{className:"category-filter-container",children:!ENV.IS_ON_PREMISES&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(Bc.np,{activeIndex:d,onTabChange:et,className:"slide-nav category",children:ce.map(Ke=>{let{key:Qe,label:nt}=Ke;return(0,o.jsx)(Bc.nl,{label:nt,children:Qe===1?(0,o.jsx)("img",{className:"new",src:"/mb-proto2/images/nav/filter_new.png"}):null},Qe)})}),(0,o.jsx)(Jk,{platform:se,isResetIndustry:v.current,onUpdateTemplateList:F,onResetScroll:xe})]})})]}),(0,o.jsx)(aM,{isLoadedTemplateData:e,templateList:n,onRequestTemplateList:F,onUpdateTemplateList:a,keyword:A,onTrack:G})]})};var bf=s(60921),cM=s(90853);const dM=M.Ay.div.withConfig({displayName:"styles__StyledMeComp",componentId:"sc-1ik7ndh-0"})(["display:flex;flex-direction:column;height:100%;.sticky-container{padding:24px 32px;.filter-group{display:flex;align-items:center;margin-top:16px;.slide-nav{flex:1;margin:0 !important;.nav-item{border-radius:6px;}}.platform-sub-filter{height:32px;}}}"]),pM=M.Ay.div.withConfig({displayName:"styles__StyledListComp",componentId:"sc-1ik7ndh-1"})(["flex:1;overflow:hidden overlay;ul.template-list-container{display:grid;list-style:none;padding-bottom:40px;grid-template-columns:repeat(auto-fill,minmax(224px,1fr));gap:20px;margin:0 32px;}.template-list-loading-container{padding:0 32px;grid-gap:20px;grid-template-columns:repeat(auto-fill,minmax(224px,1fr));.template-box{.template-cover{width:100% !important;}}}.empty-content{margin:0 auto;width:270px;}"]),uM=e=>{let{keyword:t,isLoadedTemplateData:n,templateList:a,allTemplateList:i,onUpdateTemplateList:c}=e;const d=(0,r.wA)(),p=(0,r.d4)(te.O4),h=(0,r.d4)(Nl.Kr),m=(0,l.useCallback)(k=>{if(k.category==="project_basic"){d({type:"modal:update:state",payload:{templateFileDetialModal:{isOpen:!0,template:k}}});return}d({type:"modal:update:state",payload:{templateModal:{...h,currentDetailResource:k}}})},[d,h]),x=(0,l.useCallback)(async k=>{const R=!k.is_liked,F=k.target_upper_cid||k.cid;R?await(0,I1.q3)(F):await(0,I1.V)(F);const Z=R?k.liked_count+1:k.liked_count-1,G={is_liked:R,liked_count:Z},ee=(0,Ud.$G)(a,ce=>ce.cid===k.cid,{...k,...G});c(ee)},[a]),v=async k=>{if(!k||MB.global.experienceLoginModalHelper("isSave"))return;const{is_star:R,cid:F}=k;await(0,fd.lU)(R,F);const Z=(0,bf.Z)(k,i);c(Z)},A=(0,l.useCallback)(k=>{const R={used_count:k.used_count+1},F=(0,Ud.$G)(i,Z=>Z.cid===k.cid,{...k,...R});c(F)},[i]);return(0,o.jsx)(pM,{children:n?(0,o.jsx)(o.Fragment,{children:t&&a.length===0?(0,o.jsx)(og,{}):a.length===0?(0,o.jsx)(cM.C,{isShowAiButton:!1}):(0,o.jsx)("ul",{className:"template-list-container",children:a.map(k=>(0,o.jsx)(j8,{template:k,isShowTag:k.category==="project_basic",onClickItem:m,onStar:v,onFavorite:x,onUsedCallback:A},k.cid))})}):(0,o.jsx)(tg.A,{itemHeight:190,itemWidth:224})})},rg=(e,t)=>{if(!e)return t;const n=e.toUpperCase();return t.filter(a=>a.title.toUpperCase().includes(n))},hM=()=>{const[e,t]=(0,l.useState)("all"),[n,a]=(0,l.useState)(0),[i,c]=(0,l.useState)([]),[d,p]=(0,l.useState)(!1),h=(0,r.wA)(),m=(0,r.d4)(Nl.nx),x=(0,r.d4)(Nl.Kr);(0,l.useEffect)(()=>{if(d)return;(async()=>{const he=await(0,I1.Gi)();c(he),p(!0)})()},[h,d]);const v=(0,l.useMemo)(()=>[{label:"\u5168\u90E8\u6A21\u677F",value:"all",key:0},{label:"\u6536\u85CF",value:"star",key:1},{label:"\u5DF2\u8D2D",value:"buy",key:2}],[]),A=(0,l.useMemo)(()=>[{label:"\u5168\u90E8\u7C7B\u578B",value:"all"},{label:"\u9875\u9762",value:"page"},{label:"\u6587\u4EF6",value:"file"}],[]),k=se=>{h({type:"modal:update:state",payload:{templateModal:{...x,keyword:se}}})},R=(0,l.useMemo)(()=>n===0?rg(m,(0,bf.N)(i,e)):n===1?rg(m,(0,bf.N)(i.filter(se=>se.is_star),e)):n===2?rg(m,(0,bf.N)(i.filter(se=>se.is_purchased),e)):rg(m,(0,bf.N)(i,e)),[n,e,m,i]),F=se=>{k(se)},Z=()=>{},G=()=>{k("")},ee=se=>{a(se)},ce=se=>{t(se)};return(0,o.jsxs)(dM,{children:[(0,o.jsxs)("div",{className:"sticky-container",children:[(0,o.jsx)(Cd.A,{value:m,className:"search-bar",placeholder:"\u641C\u7D22"+I18N.LeftSidePanel.template.modals.tabNav.me,onChange:F,onSearch:Z,onClear:G,wait:200,canClear:!0,isInstantSearch:!1}),(0,o.jsxs)("div",{className:"filter-group",children:[!ENV.IS_ON_PREMISES&&(0,o.jsx)(Bc.eD,{activeIndex:n,onTabChange:ee,height:32,className:"slide-nav",children:v.map(se=>{let{key:he,label:ve}=se;return(0,o.jsx)(Bc.nl,{label:ve},he)})}),(0,o.jsx)(ng.A,{optionList:A,selectedValue:e,onChange:ce})]})]}),(0,o.jsx)(uM,{keyword:m,isLoadedTemplateData:d,templateList:R,allTemplateList:i,onUpdateTemplateList:c}),(0,o.jsx)(G3.R,{})]})};var D8=s(30719);const mM=M.Ay.div.withConfig({displayName:"styles__StyledHistoryComp",componentId:"sc-10l3vtb-0"})(["display:flex;flex-direction:column;height:100%;.sticky-container{padding:24px 32px;}.history-header{padding:24px 32px 16px;height:auto;border:none;.search-bar{.clear-icon{margin-right:0;}}}ol.history-slide-nav{margin:0 32px;.nav-item{flex:none;margin-right:16px;}}.history-loading{margin-top:170px;}.recent-panel-content{height:100%;.empty-template-search-container{padding-top:170px;.center{.pure-svg-icon{width:88px;height:88px;}}}.screens-container{width:100% !important;padding:0 32px 24px;gap:20px;grid-template-columns:repeat(auto-fill,minmax(255px,1fr));li.template-item{margin:0 !important;.img-wrapper{width:100%;height:256px;padding:16px;border-radius:12px;.operation-box{bottom:8px;right:8px;.operation .svgContainer{width:24px;height:24px;.open-folder{width:24px;height:24px;border-radius:6px;background:",";}}}}.template-name{width:100%;text-align:start;margin-top:10px;color:",";}}}.file-container{width:100% !important;grid-template-columns:repeat(auto-fill,minmax(224px,1fr));padding:0 32px 24px;gap:20px;.template-box{width:auto;padding:0;&:hover{background:unset;.cover-fade{opacity:1;}.expand-icon{visibility:hidden;}.template-cover-image{transform:scale(1.05);}}.template-cover{width:100%;padding-bottom:75%;border-radius:12px;position:relative;.img-box{width:100%;height:100%;position:static;&:after{position:absolute;bottom:0px;left:0px;right:0px;height:25%;pointer-events:none;transition:0.15s ease-in-out;background:linear-gradient(180deg,rgba(0,0,0,0) 0%,rgba(0,0,0,0.4) 100%);opacity:0;}.template-cover-image{height:auto;width:calc(100% + 2px);transition:transform 1s cubic-bezier(0,0,0,1);&:hover{transform:scale(1.05);}}}}}}.search-no-results{color:",";margin-top:80px;p.tips{color:",";}}.content{padding-top:24px !important;}}"],e=>e.theme.color_slider_hover,e=>e.theme.color_text_L2,e=>e.theme.color_text_L3,e=>e.theme.color_text_L3),fM=()=>{const e=(0,r.d4)(Nl.Kr),t=(0,r.d4)(Nl.nx),n=(0,r.wA)(),a=i=>{n({type:"modal:update:state",payload:{templateModal:{...e,keyword:i}}})};return(0,o.jsx)(mM,{children:(0,o.jsx)(D8.O,{from:"template-modal",keyword:t,onUpdateKeyword:a})})};var gM=Object.defineProperty,yM=Object.defineProperties,xM=Object.getOwnPropertyDescriptors,ig=Object.getOwnPropertySymbols,R8=Object.prototype.hasOwnProperty,B8=Object.prototype.propertyIsEnumerable,U8=(e,t,n)=>t in e?gM(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,X3=(e,t)=>{for(var n in t||(t={}))R8.call(t,n)&&U8(e,n,t[n]);if(ig)for(var n of ig(t))B8.call(t,n)&&U8(e,n,t[n]);return e},vM=(e,t)=>yM(e,xM(t)),bM=(e,t)=>{var n={};for(var a in e)R8.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&ig)for(var a of ig(e))t.indexOf(a)<0&&B8.call(e,a)&&(n[a]=e[a]);return n},wM=(0,l.forwardRef)((e,t)=>{var n=e,{size:a,spin:i,style:c}=n,d=bM(n,["size","spin","style"]);const p=X3(X3({width:a||"var(--x-icon-size, 1em)",height:a||"var(--x-icon-size, 1em)",animation:i?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),c);return l.createElement("svg",vM(X3({ref:t,style:p},d),{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),l.createElement("g",{clipPath:"url(#clip0_1421_124)"},l.createElement("path",{d:"M7.68188 8.11816C7.77494 8.12968 7.86092 8.17494 7.9231 8.24512C7.98521 8.3154 8.01969 8.40621 8.01978 8.5C8.01978 8.59389 7.98526 8.68452 7.9231 8.75488C7.8609 8.82525 7.77509 8.87127 7.68188 8.88281H2.31567C2.22247 8.87127 2.13666 8.82525 2.07446 8.75488C2.0124 8.68455 1.97778 8.59381 1.97778 8.5C1.97787 8.40621 2.01234 8.3154 2.07446 8.24512C2.13665 8.17484 2.22254 8.12969 2.31567 8.11816H7.68188ZM5.00024 1.11816C5.15163 1.11689 5.30005 1.15903 5.42896 1.23828C5.55777 1.31749 5.66179 1.43099 5.72876 1.56641L7.04126 4.37891L8.3479 3.41895C8.48851 3.31997 8.65545 3.26304 8.82739 3.25684C8.99929 3.25066 9.16929 3.29523 9.31665 3.38379C9.45641 3.46707 9.56311 3.5956 9.61938 3.74805C9.6756 3.90051 9.67847 4.06782 9.62622 4.22168L8.5061 7.41895C8.47865 7.48877 8.42995 7.54823 8.36743 7.58984C8.30484 7.63149 8.23072 7.65297 8.15552 7.65137H1.84985C1.77469 7.65294 1.7005 7.63147 1.63794 7.58984C1.57561 7.54828 1.52767 7.48858 1.50024 7.41895L0.846924 5.61914L0.374268 4.2627C0.321261 4.10816 0.323645 3.94005 0.381104 3.78711C0.438554 3.63423 0.547053 3.50546 0.688721 3.42383C0.839333 3.32748 1.01686 3.28072 1.19556 3.28906C1.37416 3.29745 1.54589 3.36079 1.68677 3.4707L2.85376 4.37305L4.25903 1.55566C4.32903 1.42083 4.43564 1.30769 4.56665 1.23047C4.69765 1.15326 4.84816 1.11425 5.00024 1.11816Z",fill:"url(#paint0_linear_1421_124)"})),l.createElement("defs",null,l.createElement("linearGradient",{id:"paint0_linear_1421_124",x1:"4.99989",y1:"1.11816",x2:"17.4298",y2:"10.6471",gradientUnits:"userSpaceOnUse"},l.createElement("stop",{stopColor:"#501E11"}),l.createElement("stop",{offset:"1",stopColor:"#DA4E00"})),l.createElement("clipPath",{id:"clip0_1421_124"},l.createElement("rect",{width:"9.32741",height:"7.76394",fill:"white",transform:"translate(0.336182 1.11816)"}))))}),CM=Object.defineProperty,SM=Object.defineProperties,AM=Object.getOwnPropertyDescriptors,sg=Object.getOwnPropertySymbols,O8=Object.prototype.hasOwnProperty,F8=Object.prototype.propertyIsEnumerable,V8=(e,t,n)=>t in e?CM(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Q3=(e,t)=>{for(var n in t||(t={}))O8.call(t,n)&&V8(e,n,t[n]);if(sg)for(var n of sg(t))F8.call(t,n)&&V8(e,n,t[n]);return e},kM=(e,t)=>SM(e,AM(t)),MM=(e,t)=>{var n={};for(var a in e)O8.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&sg)for(var a of sg(e))t.indexOf(a)<0&&F8.call(e,a)&&(n[a]=e[a]);return n},EM=(0,l.forwardRef)((e,t)=>{var n=e,{size:a,spin:i,style:c}=n,d=MM(n,["size","spin","style"]);const p=Q3(Q3({width:a||"var(--x-icon-size, 1em)",height:a||"var(--x-icon-size, 1em)",animation:i?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),c);return l.createElement("svg",kM(Q3({ref:t,style:p},d),{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),l.createElement("path",{d:"M11.025 11.677C11.1648 11.6943 11.294 11.7619 11.3873 11.8675C11.4805 11.973 11.5318 12.1094 11.5318 12.2503C11.5318 12.3909 11.4803 12.5267 11.3873 12.6321C11.294 12.7377 11.1648 12.8062 11.025 12.8235H2.97517C2.83536 12.8062 2.70713 12.7377 2.61384 12.6321C2.52061 12.5266 2.46837 12.3911 2.46833 12.2503C2.46833 12.1094 2.52055 11.973 2.61384 11.8675C2.7071 11.7621 2.83551 11.6943 2.97517 11.677H11.025ZM7.00056 1.17704C7.22764 1.17513 7.45075 1.23783 7.64411 1.35672C7.8375 1.47568 7.9939 1.64649 8.09431 1.84989L10.0631 6.06864L12.023 4.62723C12.2338 4.47895 12.4831 4.39439 12.7408 4.38504C12.9986 4.37574 13.2541 4.44168 13.4752 4.5745C13.6849 4.69943 13.8458 4.8926 13.9302 5.12137C14.0146 5.35018 14.0175 5.60143 13.939 5.83231L12.2593 10.6272C12.2182 10.7321 12.1452 10.8226 12.0513 10.885C11.9575 10.9474 11.8466 10.9792 11.734 10.9768H2.27497C2.1623 10.9792 2.05139 10.9474 1.95759 10.885C1.8637 10.8226 1.79173 10.7321 1.75056 10.6272L0.770089 7.92899L0.0611049 5.89383C-0.0184127 5.66203 -0.0143433 5.40938 0.0718471 5.17997C0.15806 4.95073 0.321296 4.75842 0.533761 4.63602C0.759679 4.4915 1.02549 4.42038 1.29353 4.4329C1.56143 4.44548 1.81854 4.54147 2.02986 4.70633L3.77986 6.05985L5.88923 1.83231C5.99419 1.63024 6.15384 1.46177 6.35017 1.34598C6.54668 1.23015 6.77242 1.17116 7.00056 1.17704Z",fill:"url(#paint0_linear_833_57)"}),l.createElement("defs",null,l.createElement("linearGradient",{id:"paint0_linear_833_57",x1:"6.99998",y1:"1.17664",x2:"6.99995",y2:"13.1256",gradientUnits:"userSpaceOnUse"},l.createElement("stop",{stopColor:"white"}),l.createElement("stop",{offset:"1",stopColor:"white",stopOpacity:"0.4"}))))}),IM=Object.defineProperty,_M=Object.defineProperties,TM=Object.getOwnPropertyDescriptors,lg=Object.getOwnPropertySymbols,z8=Object.prototype.hasOwnProperty,W8=Object.prototype.propertyIsEnumerable,H8=(e,t,n)=>t in e?IM(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,J3=(e,t)=>{for(var n in t||(t={}))z8.call(t,n)&&H8(e,n,t[n]);if(lg)for(var n of lg(t))W8.call(t,n)&&H8(e,n,t[n]);return e},PM=(e,t)=>_M(e,TM(t)),LM=(e,t)=>{var n={};for(var a in e)z8.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&lg)for(var a of lg(e))t.indexOf(a)<0&&W8.call(e,a)&&(n[a]=e[a]);return n},NM=(0,l.forwardRef)((e,t)=>{var n=e,{size:a,spin:i,style:c}=n,d=LM(n,["size","spin","style"]);const p=J3(J3({width:a||"var(--x-icon-size, 1em)",height:a||"var(--x-icon-size, 1em)",animation:i?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),c);return l.createElement("svg",PM(J3({ref:t,style:p},d),{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),l.createElement("g",{filter:"url(#filter0_d_833_73)"},l.createElement("circle",{cx:"12.5",cy:"9.25",r:"2",fill:"white"})),l.createElement("g",{filter:"url(#filter1_d_833_73)"},l.createElement("circle",{cx:"6.75",cy:"11.5",r:"1.25",fill:"white"})),l.createElement("defs",null,l.createElement("filter",{id:"filter0_d_833_73",x:"7.16667",y:"3.91667",width:"10.6667",height:"10.6667",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},l.createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),l.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),l.createElement("feOffset",null),l.createElement("feGaussianBlur",{stdDeviation:"1.66667"}),l.createElement("feComposite",{in2:"hardAlpha",operator:"out"}),l.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0"}),l.createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_833_73"}),l.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_833_73",result:"shape"})),l.createElement("filter",{id:"filter1_d_833_73",x:"3.59524",y:"8.34524",width:"6.30952",height:"6.30952",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},l.createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),l.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),l.createElement("feOffset",null),l.createElement("feGaussianBlur",{stdDeviation:"0.952381"}),l.createElement("feComposite",{in2:"hardAlpha",operator:"out"}),l.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0"}),l.createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_833_73"}),l.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_833_73",result:"shape"}))))});const jM=M.Ay.div.withConfig({displayName:"styles__StyledMktBuyButton",componentId:"sc-16lz4lf-0"})(['display:flex;position:relative;padding:0 16px;height:32px;margin-right:12px;align-items:center;justify-content:center;font-size:14px;font-weight:500;line-height:20px;color:#5D6F8F;border-radius:6px;white-space:nowrap;cursor:pointer;margin-right:40px;margin-top:-14px;background:linear-gradient(135deg,#FFEFCD 0%,#FAD58C 100%);&:hover{background:linear-gradient(135deg,rgba(255,239,205,0.8) 0%,rgba(250,213,140,0.8) 100%);&:not(.is-mkt-vip){.mkt-plan{display:flex;}}}&:active{background:linear-gradient(135deg,#FFEBBF 0%,#FAD07D 100%);}.text-warp{justify-content:center;align-items:center;display:flex;.mat-text{background:linear-gradient(122.54deg,#501E11 30.52%,#DA4E00 159.68%);background-clip:text;color:transparent;-webkit-background-clip:text;}.vip-icon{linearGradient#paint0_linear_833_67{stop:first-child{stop-color:#501E11;}stop:last-child{stop-color:#DA4E00;}}}}svg{width:18px;height:18px;margin-right:6px;}.mkt-plan{position:absolute;right:0;top:100%;width:400px;height:422px;display:none;align-items:center;flex-direction:column;justify-content:flex-end;z-index:3;&::before{content:"";position:absolute;bottom:0;left:0;width:100%;height:319px;background:transparent;border-radius:16px;box-shadow:2px 8px 20px 0px rgba(0,0,0,0.10);pointer-events:none;z-index:-1;}img{position:absolute;left:0;top:0;width:100%;height:100%;}.price{margin-bottom:12px;width:263px;height:44px;border-radius:22px;display:flex;position:relative;align-items:center;border:2px solid transparent;background:linear-gradient(0deg,rgba(255,255,255,0.30) 0%,rgba(255,255,255,0.30) 100%),linear-gradient(273deg,rgba(247,9,52,0.20) -20.06%,rgba(255,140,119,0.20) 114.92%);.container{width:100%;height:100%;border-radius:20px;border:0.7px solid rgba(255,255,255,0.80);background:linear-gradient(327deg,#FF2F0A 7.29%,#FF4B56 49.24%);box-shadow:2.71px 4.43px 8px 0px rgba(255,255,255,0.59) inset,-4.286px 4.286px 20.571px 0px rgba(255,255,255,0.55) inset;color:#FFF;font-family:"PingFang SC";font-size:13px;font-weight:600;display:flex;align-items:center;justify-content:center;gap:4px;&:hover{background:linear-gradient(327deg,rgba(255,47,10,0.85) 7.29%,rgba(255,75,86,0.85) 49.24%);}&:active{background:linear-gradient(0deg,rgba(0,0,0,0.07) 0%,rgba(0,0,0,0.07) 100%),linear-gradient(327deg,#FF2F0A 7.29%,#FF4B56 49.24%);}}.white-point{position:absolute;left:9px;top:4px;}}}']),wf=(0,l.memo)(()=>{const e=(0,r.wA)(),t=(0,r.d4)(me.PL),n=(0,r.d4)(me.wA),a=(0,r.d4)(me.HW),i=t.is_org_project,c=(0,l.useMemo)(()=>{const p=(0,pi.s)(a,n);return p==null?void 0:p.isMktMember},[i]),d=(0,l.useCallback)(()=>{if(c)return;const p={mode:"mat",payEntrance:"\u7F16\u8F91\u533A-\u6A21\u677F\u5F39\u7A97-"+(i?"\u4F01\u4E1A":"\u4E2A\u4EBA"),checkoutPlace:"workspace-v8_"+(i?"org":"solo")+"_template_popup",checkoutArea:"proto"};MB.global.popupHelper.chargeAsync({...p})},[e]);return ENV.IS_ON_PREMISES?null:(0,o.jsxs)(jM,{onClick:d,className:c?"is-mkt-vip vip-button":"vip-button",children:[(0,o.jsxs)("div",{className:"text-warp",children:[(0,o.jsx)(wM,{size:16,className:"vip-icon"}),(0,o.jsx)("span",{className:"mat-text",children:c?i?"\u56E2\u961F\u7D20\u6750VIP":"\u4E2A\u4EBA\u7D20\u6750VIP":"\u5F00\u901A\u7D20\u6750\u4F1A\u5458"})]}),(0,o.jsxs)("div",{className:"mkt-plan",children:[(0,o.jsx)("img",{src:"/mb-proto2/images/mktWM/mkt-purchase-rights-bg-new.svg",alt:""}),(0,o.jsxs)("div",{className:"price",onClick:d,children:[(0,o.jsxs)("div",{className:"container",children:[(0,o.jsx)(EM,{size:14}),"\u4F4E\u81F38.3\u5143/\u6708\uFF0C\u7ACB\u5373\u5F00\u901A"]}),(0,o.jsx)(NM,{className:"white-point"})]})]})]})}),DM=(0,M.Ay)(ci.H).withConfig({displayName:"styles__StyledTemplateModals",componentId:"sc-511nst-0"})(["&.workspace-modal{max-width:1700px;min-width:1038px;max-height:820px;min-height:554px;width:90vw !important;height:90vh;.close-btn{top:11px;}& > header.header{display:none !important;}.content{padding:0;height:100%;}.modal-content{height:100%;display:flex;flex-direction:column;.header{padding:16px 32px 0;display:flex;align-items:center;justify-content:space-between;border-color:",";}.content-wrapper{display:flex;flex-direction:column;flex:1;overflow:hidden;.search-bar{height:42px;padding:4px 14px 4px 12px;border-radius:8px;&:hover{border-color:",";}&.isFocus{outline:2px solid ",";border-color:transparent;}.search-icon{margin-left:5px;}}.search-bar.detail-search-bar{width:320px;height:32px;.search-bar{margin-left:0;}}.slide-nav{margin:16px 0 10px;height:auto;}.marketTemplate-list{padding-bottom:68px;}}}.scrollable-marketTemplate-masonry{width:100% !important;.market-template-masonry-column{margin-right:20px;width:100%;.template-item{margin-bottom:20px;.img-wrapper{border-radius:12px !important;border-color:",";&:hover{.cover-fade{opacity:1;}}.cover-fade{position:absolute;bottom:0px;left:0px;right:0px;height:48%;pointer-events:none;transition:0.15s ease-in-out;background:linear-gradient(180deg,rgba(0,0,0,0.00) 0%,rgba(0,0,0,0.30) 100%);opacity:0;}}.template-name{margin-top:10px;}}&.mobile{.template-item{width:100%;.img-wrapper{max-height:396px;aspect-ratio:0.47;> img{position:absolute;top:0;max-height:unset;width:100%;}}}}&:last-child{margin-right:0;}}.market-template-masonry-list-container{width:100% !important;padding:0 32px;display:grid;grid-template-columns:repeat(auto-fill,minmax(172px,1fr));grid-gap:20px;&.web,&.visual{grid-template-columns:repeat(auto-fill,minmax(256px,1fr));.market-template-masonry-column{.sample{height:174px;}}}&.mobile{grid-template-columns:repeat(auto-fill,minmax(172px,1fr));.market-template-masonry-column{.sample{height:412px;}}}.market-template-masonry-column{margin-right:20px;width:100%;&.mobile{.template-item{width:100%;.img-wrapper{max-height:396px;aspect-ratio:0.47;> img{position:absolute;top:0;max-height:unset;width:100%;}}}}&:last-child{margin-right:0;}}}}}"],e=>e.theme.color_bg_border_01,e=>e.theme.color_btn_primary_normal,e=>e.theme.color_btn_primary_normal,e=>e.theme.color_bg_border_01),RM=e=>{let{source:t="history",onClose:n}=e;const[a,i]=(0,l.useState)(t),[c,d]=(0,l.useState)(null),[p,h]=(0,l.useState)(0),m=(0,r.d4)(Nl.Kr),x=(0,r.wA)();(0,l.useEffect)(()=>{(async()=>{const se=await(0,yf.EG)();x({type:"modal:update:state",payload:{templateModal:{...m,labelsMap:se}}})})()},[x]);const v=(0,l.useMemo)(()=>[{label:I18N.LeftSidePanel.template.modals.tabNav.page,key:"page"},{label:I18N.LeftSidePanel.template.modals.tabNav.file,key:"file"},{label:I18N.LeftSidePanel.template.modals.tabNav.me,key:"me"},{label:I18N.LeftSidePanel.template.modals.tabNav.history,key:"history"}],[]),A=ce=>{i(ce),R()},k=ce=>{x({type:"modal:update:state",payload:{templateModal:{...m,currentDetailResource:ce}}}),x({type:"page-panel:update:map:state",payload:{key:"findMtResourceMap",value:new Map([[ce.cid,ce]])}})},R=()=>{x({type:"modal:update:state",payload:{templateModal:{...m,currentDetailResource:null}}})},F=(0,l.useCallback)(async ce=>{const se=!ce.is_liked,he=ce.target_upper_cid||ce.cid;se?await(0,I1.q3)(he):await(0,I1.V)(he);const ve=se?ce.liked_count+1:ce.liked_count-1,Te={...ce,is_liked:se,liked_count:ve};k(Te)},[]),Z=(0,l.useCallback)(ce=>{if(!m.currentDetailResource||MB.global.experienceLoginModalHelper("isSave"))return;const{is_star:se,cid:he}=m.currentDetailResource,Te=!ce.is_star?ce.star_count+1:ce.star_count-1,xe={...ce,is_star:!ce.is_star,star_count:Te};k(xe),(0,fd.lU)(se,he)},[m.currentDetailResource]);(0,l.useEffect)(()=>{const ce=()=>{const se=document.querySelector(".mb-template-modals");h(se==null?void 0:se.offsetWidth)};return ce(),window.addEventListener("resize",ce),()=>window.removeEventListener("resize",ce)},[]);const G=(0,l.useMemo)(()=>{if(p>1588)return 8;if(p<=1588&&p>1387)return 7;if(p<=1387&&p>1195)return 6;if(p<=1195&&p>1009)return 5;if(p<=1009)return 4},[p]),ee=(0,l.useMemo)(()=>{if(p>=1700)return 6;if(p<1700&&p>1423)return 5;if(p<=1423&&p>1147)return 4;if(p<=1147)return 3},[p]);return(0,o.jsxs)(DM,{isOpen:!0,onClose:n,footer:null,header:null,className:"mb-template-modals",canCloseOnClickMask:!0,isUsePortal:!1,children:[(0,o.jsxs)("div",{className:"header",children:[(0,o.jsx)(eg,{items:v,activeKey:a,onTabClick:A,tabBarGutter:32}),(0,o.jsx)(wf,{})]}),(0,o.jsx)("div",{className:"content-wrapper",children:m.currentDetailResource?(0,o.jsx)(mf.A,{isFloatPreviewMkt:!1,currentResources:m.currentDetailResource,onBack:R,masonryColumnMoblie:G,masonryColumnWeb:ee,from:"template-modal",onFavoriteTemplates:F,onStarTemplates:Z,onPaidTemplates:()=>Z({...m==null?void 0:m.currentDetailResource,is_purchased:!0})}):(0,o.jsxs)(o.Fragment,{children:[a==="page"&&(0,o.jsx)(Hk,{masonryColumnWeb:ee,masonryColumnMoblie:G,pageCategoryDetailData:c,onSetPageCategoryDetailData:d}),a==="file"&&(0,o.jsx)(lM,{}),a==="me"&&(0,o.jsx)(hM,{}),a==="history"&&(0,o.jsx)(fM,{})]})})]})};var BM=Object.defineProperty,UM=Object.defineProperties,OM=Object.getOwnPropertyDescriptors,cg=Object.getOwnPropertySymbols,G8=Object.prototype.hasOwnProperty,Z8=Object.prototype.propertyIsEnumerable,K8=(e,t,n)=>t in e?BM(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,q3=(e,t)=>{for(var n in t||(t={}))G8.call(t,n)&&K8(e,n,t[n]);if(cg)for(var n of cg(t))Z8.call(t,n)&&K8(e,n,t[n]);return e},FM=(e,t)=>UM(e,OM(t)),VM=(e,t)=>{var n={};for(var a in e)G8.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&cg)for(var a of cg(e))t.indexOf(a)<0&&Z8.call(e,a)&&(n[a]=e[a]);return n},zM=(0,l.forwardRef)((e,t)=>{var n=e,{size:a,spin:i,style:c}=n,d=VM(n,["size","spin","style"]);const p=q3(q3({width:a||"var(--x-icon-size, 1em)",height:a||"var(--x-icon-size, 1em)",animation:i?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),c);return l.createElement("svg",FM(q3({ref:t,style:p},d),{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 13.75V6.25C5 5.55964 5.55964 5 6.25 5H8.54167C8.93511 5 9.3056 5.18524 9.54167 5.5L10.4167 6.66667H14.5833C15.2737 6.66667 15.8333 7.22631 15.8333 7.91667V13.75C15.8333 14.4404 15.2737 15 14.5833 15H6.25C5.55964 15 5 14.4404 5 13.75ZM5.83333 6.25V13.75C5.83333 13.9801 6.01988 14.1667 6.25 14.1667H14.5833C14.8135 14.1667 15 13.9801 15 13.75V7.91667C15 7.68655 14.8135 7.5 14.5833 7.5H10.2083C10.0772 7.5 9.95369 7.43825 9.875 7.33333L8.875 6C8.79631 5.89508 8.67282 5.83333 8.54167 5.83333H6.25C6.01988 5.83333 5.83333 6.01988 5.83333 6.25Z",fill:"#8B8C8F"}))}),WM=Object.defineProperty,HM=Object.defineProperties,GM=Object.getOwnPropertyDescriptors,dg=Object.getOwnPropertySymbols,Y8=Object.prototype.hasOwnProperty,X8=Object.prototype.propertyIsEnumerable,Q8=(e,t,n)=>t in e?WM(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,$3=(e,t)=>{for(var n in t||(t={}))Y8.call(t,n)&&Q8(e,n,t[n]);if(dg)for(var n of dg(t))X8.call(t,n)&&Q8(e,n,t[n]);return e},ZM=(e,t)=>HM(e,GM(t)),KM=(e,t)=>{var n={};for(var a in e)Y8.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&dg)for(var a of dg(e))t.indexOf(a)<0&&X8.call(e,a)&&(n[a]=e[a]);return n},YM=(0,l.forwardRef)((e,t)=>{var n=e,{size:a,spin:i,style:c}=n,d=KM(n,["size","spin","style"]);const p=$3($3({width:a||"var(--x-icon-size, 1em)",height:a||"var(--x-icon-size, 1em)",animation:i?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),c);return l.createElement("svg",ZM($3({ref:t,style:p},d),{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),l.createElement("g",{clipPath:"url(#clip0_1404_155)"},l.createElement("path",{d:"M5.26367 7.98926C5.3083 7.98927 5.35205 7.99346 5.39453 8.00098C5.40006 8.00196 5.40562 8.0028 5.41113 8.00391C5.41912 8.00551 5.42668 8.00889 5.43457 8.01074C5.47186 8.01951 5.50907 8.02938 5.54492 8.04395L5.55469 8.04883C5.5618 8.05184 5.5682 8.05635 5.5752 8.05957C5.65328 8.09556 5.7276 8.14362 5.79199 8.20801C5.83571 8.25173 5.87074 8.30096 5.90137 8.35156C5.92076 8.38352 5.93862 8.41632 5.95312 8.45117C5.95486 8.45537 5.95635 8.45964 5.95801 8.46387C5.99152 8.54872 6.01166 8.64059 6.01172 8.7373V12.9053C6.01172 13.3181 5.67649 13.6532 5.26367 13.6533C4.85073 13.6533 4.51562 13.3182 4.51562 12.9053V10.541L1.27637 13.7803C0.98438 14.0723 0.511726 14.0722 0.219727 13.7803C-0.0722423 13.4883 -0.0722611 13.0156 0.219727 12.7236L3.45898 9.48438H1.0957C0.682875 9.48438 0.347847 9.15009 0.347656 8.7373C0.347888 8.32456 0.6829 7.98926 1.0957 7.98926H5.26367ZM13.252 8.33594C13.6649 8.33594 14 8.67104 14 9.08398V13.252C14 13.6649 13.6649 14 13.252 14H9.08398C8.67114 13.9999 8.33596 13.6648 8.33594 13.252C8.33613 12.8392 8.67125 12.505 9.08398 12.5049H12.5049V9.08398C12.5049 8.67122 12.8393 8.33623 13.252 8.33594ZM12.7246 0.21875C13.0166 -0.0728183 13.4894 -0.0730789 13.7812 0.21875C14.0731 0.51061 14.0728 0.98337 13.7812 1.27539L10.542 4.51465H12.9053C13.318 4.51468 13.6531 4.84997 13.6533 5.2627C13.6533 5.67562 13.3182 6.01071 12.9053 6.01074H8.7373C8.65645 6.01074 8.57979 5.99446 8.50684 5.9707C8.48835 5.9647 8.46924 5.96061 8.45117 5.95312C8.39906 5.93148 8.35007 5.90438 8.30469 5.87207C8.27803 5.85309 8.25305 5.83149 8.22852 5.80859C8.21535 5.79631 8.20268 5.78371 8.19043 5.77051C8.16708 5.7454 8.14523 5.7197 8.12598 5.69238C8.12223 5.68706 8.11787 5.68218 8.11426 5.67676C8.10705 5.66593 8.10229 5.65368 8.0957 5.64258C8.07717 5.61132 8.05882 5.57986 8.04492 5.5459C8.03379 5.51865 8.02731 5.49005 8.01953 5.46191C8.01483 5.44492 8.00741 5.42859 8.00391 5.41113C8.0028 5.40562 8.00196 5.40006 8.00098 5.39453C7.9934 5.35186 7.98926 5.30753 7.98926 5.2627V1.09473C7.9895 0.681986 8.32451 0.34668 8.7373 0.34668C9.14991 0.346902 9.48413 0.682123 9.48438 1.09473V3.45898L12.7246 0.21875ZM4.91602 0C5.3288 0.000184886 5.66406 0.335215 5.66406 0.748047C5.66388 1.16072 5.32869 1.49591 4.91602 1.49609H1.49609V4.91602C1.49591 5.32869 1.16072 5.66388 0.748047 5.66406C0.335215 5.66406 0.000184886 5.3288 0 4.91602V0.748047C0 0.335101 0.335101 0 0.748047 0H4.91602Z",fill:"#19191A"})),l.createElement("defs",null,l.createElement("clipPath",{id:"clip0_1404_155"},l.createElement("rect",{width:"14",height:"14",fill:"white"}))))}),P1=s(5649);const XM=(0,M.Ay)(ci.H).withConfig({displayName:"styles__StyledresourcesSnapshotPreviewModal",componentId:"sc-1hxv5o4-0"})(["&.workspace-modal{max-width:1700px;min-width:1038px;max-height:820px;min-height:554px;width:90vw !important;height:90vh;@media (max-width:1500px){width:1038px;}.close-btn{display:none;}& > header.header{display:none !important;}.content{padding:0;height:100%;}.modal-content{height:100%;display:flex;flex-direction:column;.header{height:53px;padding:0 32px;display:flex;align-items:center;justify-content:center;position:relative;.center{display:flex;align-items:center;.editable-span-title{font-weight:500;max-width:282px;}}.open-folder{color:",";font-size:12px;margin-left:8px;display:flex;height:28px;padding:0 6px 0 2px;align-items:center;border-radius:6px;cursor:pointer;max-width:210px;&:hover{background:",";color:",";}}.vip-button{position:absolute;top:24px;right:32px;}.preview-close-btn{display:flex;justify-content:center;align-items:center;width:32px;height:32px;cursor:pointer;border-radius:4px;position:absolute;right:24px;svg path{fill:",";}&:hover{background:",";}}}.content-wrapper{flex:1;overflow:scroll;display:flex;align-items:center;justify-content:center;padding:24px 0;background-color:",";img{max-height:100%;transform-origin:top;border-radius:6px;}.turn-page{.turn-left-page,.turn-right-page{border-radius:100px;position:absolute;cursor:pointer;&:hover{background:",";}.svg-icon{width:8px;margin-left:2px;}&.turn-left-page{transform:rotate(180deg);left:16px;}&.turn-right-page{right:16px;}}}}.footer{height:68px;width:100%;display:flex;align-items:center;justify-content:space-between;padding:0 32px;button{display:flex;align-items:center;justify-content:center;font-size:14px;font-family:PingFang SC;border-radius:6px;height:36px;padding:6px 16px;&.vip-button{background:linear-gradient(135deg,#FFEFCD 0%,#FAD58C 100%);span{background:linear-gradient(123deg,#501E11 30.52%,#DA4E00 159.68%);background-clip:text;-webkit-background-clip:text;-webkit-text-fill-color:transparent;}}&.use-button{background:",";color:",";&:hover{background:",";}&:active{background:",";}}&.zoom-button{padding:0;width:126px;border-radius:6px;border:1px solid ",";.zoom-control{width:34px;height:34px;}.zoom-input{flex:1;margin:2px 4px;}}}}}}"],e=>e.theme.color_text_L3,e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_text_L2,e=>e.theme.color_text_L1,e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_bg_canvas,e=>e.theme.color_bg_border_02,e=>e.theme.color_btn_primary_normal,e=>e.theme.color_text_btn,e=>e.theme.color_btn_primary_hover,e=>e.theme.color_btn_primary_clicked,e=>e.theme.color_bg_border_02),pp=[4,8,16,32,64,100,120,150,200,250,300,350,400,450,500],J8=pp[0],q8=pp[pp.length-1],QM=(0,l.memo)(e=>{let{type:t,onClose:n,list:a,currentTemplate:i}=e;const c=(0,l.useRef)(null),[d,p]=(0,l.useState)(i),[h,m]=(0,l.useState)(!0),x=(0,r.d4)(me.HW),[v,A]=(0,l.useState)(100),k=(0,r.d4)(rt.fm),R=(0,r.d4)(Nl.Kr),F=(0,r.d4)(me.F2),Z=(0,r.d4)(me._x),G=(0,r.wA)(),{key:ee,category:ce,hotAttr:{name:se,type:he},projectMetaCid:ve,marketTemplateSource:Te}=d,xe=(0,l.useMemo)(()=>{if(!Te)return!1;const{show:Pn}=(0,fd.o3)(Te,x);return Pn},[Te,x]),Fe=(0,l.useMemo)(()=>a.findIndex(Pn=>Pn.key===d.key),[d,a]),et=(0,l.useMemo)(()=>Fe-1<0,[Fe,a]),Ke=(0,l.useMemo)(()=>Fe+1>a.length-1,[Fe,a]),Qe=()=>{const Pn=pp.findIndex(Io=>Io>v),ro=pp[Pn]||pp[pp.length-1];A(ro)},nt=()=>{const Pn=pp.findIndex(Io=>Io>=v),ro=pp[Pn-1]||pp[0];A(ro)},Xe=Pn=>{A(Number(Pn))},lt=(0,l.useCallback)(()=>{const Pn={mode:"mat",payEntrance:t==="page"?"\u7F16\u8F91\u533A-v8-\u6A21\u677F\u5F39\u7A97-\u9884\u89C8\u5F39\u7A97-\u5E95\u680F":"\u7F16\u8F91\u533A-v8-\u7EC4\u4EF6\u5F39\u7A97-\u9884\u89C8\u5F39\u7A97-\u5E95\u680F",checkoutPlace:t==="page"?"workspace_v8_template_preview_modals_bottom":"workspace_v8_widget_preview_modals_bottom",checkoutArea:"proto",templatePaySource:t==="page"?"\u7F16\u8F91\u533A\u6A21\u677F\u5F39\u7A97":"\u7F16\u8F91\u533A\u7EC4\u4EF6\u5F39\u7A97"};MB.global.popupHelper.chargeAsync({...Pn})},[G]),Ct=()=>{const{type:Pn,key:ro,marketTemplateSource:Io,flpakKey:mo}=d,So=mo?"user_combo":Pn,ho=mo?F==null?void 0:F.cid:Io==null?void 0:Io.cid,No=mo===(Z==null?void 0:Z.project_meta_cid);return{...d,recent:{isRequestRecent:!No,projectUpperType:So,projectUpperCid:ho,itemCid:ro,isTrack:!0,from:t==="page"?"template-modal":"widget-modal"}}},St=Pn=>(F==null?void 0:F.project_meta_cid)===Pn?userSdkStore:(Z==null?void 0:Z.project_meta_cid)===Pn?orgSdkStore:k.get(Pn),hn=async Pn=>{var ro;const Io=(d==null?void 0:d.marketTemplateCid)||(d==null||(ro=d.marketTemplateSource)==null?void 0:ro.cid);if(Io&&!k.get(Io)){const Xo=new Map;Xo.set(Io,d==null?void 0:d.projectMetaCid),await G({type:"entry:resources:set:mtSdkStore:map",payload:{mtResourceCidList:[Io],mtProjectMetaCidMap:Xo}})}const mo=St((d==null?void 0:d.flpakKey)||Io),ho=[[[Ct()],mo]];G({type:"entry:resources:quick:create:template",payload:{data:ho}}),t==="widget"?(G({type:"modal:update:state",payload:{widgetModal:{isOpen:!1},resourcesSnapshotPreviewModal:{isOpen:!1}}}),G({type:"widget-modal:reset:state"})):G({type:"modal:update:state",payload:{templateModal:{isOpen:!1},resourcesSnapshotPreviewModal:{isOpen:!1}}})},Cn=()=>{m(!1);const Pn=a[Fe-1];Pn&&(p(Pn),m(!0))},Mt=()=>{m(!1);const Pn=a[Fe+1];Pn&&(p(Pn),m(!0))},Et=()=>{G(t==="widget"?{type:"widget-modal:update:state",payload:{currentResource:Te}}:{type:"modal:update:state",payload:{templateModal:{...R,currentDetailResource:Te}}}),n()},Co=(0,l.useCallback)(Pn=>{if(d!=null&&d.flpakKey){const mo=St(d==null?void 0:d.flpakKey),So=mo?mo.getHotItem(d.key):null;if(So){const ho=So.sub.filter(No=>{var Xo;return((Xo=mo.getHotItem(No))==null||(Xo=Xo.hotAttr)==null?void 0:Xo.bunch)!==$.x.RbPage});if(ho!=null&&ho.length){const No=d.sup==="B@ref-muban"?d.hotAttr.defaultCanvasKey:ee,Xo=d.sup==="B@ref-muban"?xd.rY.PNG_CANVAS:xd.rY.PNG_PAGE;return(0,o.jsx)($8,{type:t,projectMetaCid:d==null?void 0:d.flpakKey,snapshotKey:No,isVisible:Pn,mode:Xo,scale:v,setScale:A})}}return(0,o.jsx)("img",{src:G0.V})}const Io=["project_basic","screen_list"].includes(ce)?"wf320":xd.BU.ZOOM_100;return(0,o.jsx)($8,{type:t,projectMetaCid:d==null?void 0:d.projectMetaCid,snapshotKey:d==null?void 0:d.key,isVisible:Pn,mode:he==="rResCanvas"?xd.rY.PNG_CANVAS:xd.rY.PNG_PAGE,ssZoomMode:Io,scale:v,setScale:A})},[d,v,St]);return(0,l.useEffect)(()=>{var Pn;const ro=Io=>{(Io.ctrlKey||Io.metaKey)&&(Io.preventDefault(),A(mo=>{const So=Math.max(-1,Math.min(Io.deltaY,1)),ho=mo<=100?mo-So*5:mo-mo*So*.05,No=Math.min(Math.max(ho,J8),q8);return No/mo===1?mo:No}))};return c==null||(Pn=c.current)==null||Pn.addEventListener("wheel",ro,{passive:!1}),()=>{var Io;return c==null||(Io=c.current)==null?void 0:Io.removeEventListener("wheel",ro,{passive:!1})}},[]),(0,o.jsxs)(XM,{isOpen:!0,onClose:n,footer:null,header:null,className:"mb-template-preview-modals",canCloseOnClickMask:!0,isUsePortal:!1,isAutoFocus:!1,children:[(0,o.jsxs)("div",{className:"header",children:[(0,o.jsxs)("div",{className:"center",children:[(0,o.jsx)(vf.A,{value:se,className:"editable-span-title",isEditing:!1},se),Te&&(0,o.jsxs)("div",{className:"open-folder",onClick:Et,children:[(0,o.jsx)(zM,{size:20}),(0,o.jsx)(vf.A,{value:Te.title,className:"editable-span",isEditing:!1},Te.title)]})]}),(0,o.jsx)(wf,{}),(0,o.jsx)("div",{className:"preview-close-btn",onClick:n,children:(0,o.jsx)(YM,{size:16})})]}),(0,o.jsxs)("div",{className:"content-wrapper",ref:c,children:[Co(h),(0,o.jsxs)("div",{className:"turn-page",children:[!et&&(0,o.jsx)(cl.A,{className:"turn-left-page",name:"design/arrow/right",onClick:Cn,size:24,iconBoxSize:40}),!Ke&&(0,o.jsx)(cl.A,{className:"turn-right-page",name:"design/arrow/right",onClick:Mt,size:24,iconBoxSize:40})]})]}),(0,o.jsxs)("div",{className:"footer",children:[(0,o.jsxs)("button",{className:"zoom-button",children:[(0,o.jsx)(cl.A,{className:"zoom-control zoom-out",onClick:nt,name:"common/minus_bold"}),(0,o.jsx)(P1.A,{className:"zoom-input",min:J8,max:q8,precision:0,suffix:"%",value:Math.round(v),actionButton:!1,onConfirm:Xe}),(0,o.jsx)(cl.A,{className:"zoom-control zoom-in",onClick:Qe,name:"common/add_bold"})]}),(0,o.jsx)("button",{className:xe?"vip-button":"use-button",children:xe?(0,o.jsx)("span",{onClick:lt,children:I18N.LeftSidePanel.modals.material_free_for_member}):(0,o.jsx)("span",{onClick:hn,children:I18N.LeftSidePanel.modals.add_items_from_type.replace("%type%",I18N.LeftSidePanel.modals.add_items[t])})})]})]})}),$8=(0,l.memo)(e=>{const{type:t,projectMetaCid:n,snapshotKey:a,isVisible:i,mode:c,ssZoomMode:d,scale:p,setScale:h}=e;return(0,o.jsx)(G0.Ay,{projectMetaCid:n,snapshotKey:a,isVisible:i,mode:c,ssZoomMode:d,style:{transform:"scale("+p/100+")"}})}),JM=(0,M.Ay)(ci.H).withConfig({displayName:"styles__StyledTemplateFileDetialModal",componentId:"sc-ai4p0p-0"})(["&.mb-template-file-detail-modals{width:100% !important;height:100%;top:100px;overflow:unset;background-color:#fff;color:#19191a;.content{background-color:#fff;color:#19191a;}.close-btn{width:24px;height:24px;border-radius:100px;top:-36px;right:24px;background:",";color:",";&:hover{background:",";color:",";transform:scale(1.1);}}.header{display:none;}.content{padding:0;width:100%;height:100%;border-radius:10px;.modal-content{width:100%;height:100%;.back-icon{position:absolute;top:24px;left:24px;width:32px;height:32px;.svg-icon{width:7px;height:14px;transform:rotate(-180deg);}}iframe{width:100%;height:100%;border:none;}}}}"],e=>e.theme.color_bg_white,e=>e.theme.color_text_L1,e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_text_L1),qM=(0,M.DU)([".mb-template-file-detail-modals-portal{overflow:unset;}"]),$M=e=>{let{template:t,onClose:n}=e;const[a,i]=(0,l.useState)([t==null?void 0:t.cid]),[c,d]=(0,l.useState)(t==null?void 0:t.cid),p=(0,r.d4)(me.PL),h=(0,r.d4)(Nl.Kr),m=(0,r.wA)(),{handleUsedTemplate:x}=(0,N8.A)(),v=()=>{n(),m({type:"modal:update:state",payload:{templateModal:{isOpen:!1}}}),m({type:"entry:active:popup:panel",payload:{name:Dl.lS.Directory}})},A=async k=>{var R,F,Z,G,ee;if(k!=null&&k.data){if(((R=k.data)==null?void 0:R.type)==="in-proto2-community-detail-used-file"){const{info:se}=k.data,he=se==null?void 0:se.template;x(he,ve=>{ve?v():n()})}if(((F=k.data)==null?void 0:F.type)==="in-proto2-community-detail-back")if((a==null?void 0:a.length)===1&&a[0]===c||a.length===0)n&&n();else{const se=a.slice(0,-1);i(se);const he=se[se.length-1];d(he)}if(((Z=k.data)==null?void 0:Z.type)==="in-proto2-community-detail-set-history-list"){const{info:se}=k.data,he=[...a!=null?a:[],se==null?void 0:se.cid];d(se==null?void 0:se.cid),i(he)}if(((G=k.data)==null?void 0:G.type)==="in-proto2-community-detail-star-template"){var ce;const{info:se}=k.data;m({type:"modal:update:state",payload:{templateModal:{...h,actionType:"star",actionData:se==null?void 0:se.actionData}}}),MB.notice({text:se!=null&&(ce=se.actionData)!=null&&ce.is_star?"\u6536\u85CF\u6210\u529F\uFF0C\u53EF\u5728\u3010\u6A21\u677F-\u6211\u7684\u3011\u4E2D\u67E5\u770B":"\u53D6\u6D88\u6536\u85CF"})}if(((ee=k.data)==null?void 0:ee.type)==="in-proto2-community-detail-favorite-template"){const{info:se}=k.data;m({type:"modal:update:state",payload:{templateModal:{...h,actionType:"favorite",actionData:se==null?void 0:se.actionData}}})}}};return(0,l.useEffect)(()=>(window.addEventListener("message",A),()=>window.removeEventListener("message",A)),[a,c]),(0,o.jsxs)(JM,{isOpen:!0,onClose:n,footer:null,header:null,className:"mb-template-file-detail-modals",canCloseOnClickMask:!0,portalClassName:"mb-template-file-detail-modals-portal",isUsePortal:!1,children:[(0,o.jsx)("iframe",{src:"/com24/details/"+c+"?from=iframe&mode="+(p!=null&&p.is_org_project?"org":"solo")}),(0,o.jsx)(qM,{})]})};var rd=s(80985),id=s(60441);const eE=M.Ay.div.withConfig({displayName:"styles__StyledHome",componentId:"sc-1tkadmk-0"})(["width:100%;display:flex;flex-direction:column;padding:0 32px;padding-bottom:20px;.large-resource-container{width:100%;display:flex;flex-direction:column;.title{font-family:PingFang SC;font-weight:500;font-size:14px;color:",";margin-bottom:20px;.count{font-weight:400;}}ul{width:100%;display:grid;grid-template-columns:repeat(auto-fill,minmax(310px,1fr));grid-row-gap:20px;grid-column-gap:20px;li{display:flex;flex-direction:row;border-radius:10px;overflow:hidden;background:",";cursor:pointer;.left-title{flex:1;font-size:16px;font-weight:500;color:",";display:flex;align-items:center;justify-content:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}.img-box{width:191px;height:100%;img{height:152px;}}&:hover{background:",";}}}&:not(:last-child){margin-bottom:20px;}}"],e=>e.theme.color_text_L3,e=>e.theme.color_navigation_hover,e=>e.theme.color_text_L1,e=>e.theme.color_btn_secondary_active),tE=(0,l.memo)(e=>{const{platform:t,checkedSet:n,scrollTop:a,onUpdateDetailScrollTopType:i}=e,c=(0,r.d4)(id.vE),{listMap:d}=c,p=(0,r.wA)(),h=(0,l.useRef)(null),m=(0,l.useMemo)(()=>d.get(t)||[],[d,t]),x=(0,l.useCallback)((A,k)=>{p({type:"widget-modal:update:largeFactory",payload:{level1:A.name,level2:k.name||""}}),i("detail")},[p,i]),v=(0,l.useCallback)(A=>{const k=A.target.scrollTop;p({type:"widget-modal:update:largeFactory",payload:{scrollTop:k}})},[p]);return(0,l.useEffect)(()=>{h!=null&&h.current&&(h.current.scrollTop=a)},[a]),(0,o.jsxs)("div",{className:"resource-container",children:[(0,o.jsx)(rd.o,{className:C()("resource-scroll-container",{"show-footer":(n==null?void 0:n.size)>0}),ref:h,onScrollChange:v,children:A=>(0,o.jsx)(eE,{children:m.map(k=>{var R;return(0,o.jsxs)("div",{className:"large-resource-container",children:[(0,o.jsxs)("span",{className:"title",children:[k.name,(0,o.jsxs)("span",{className:"count",children:["\uFF08",(R=k.children)==null?void 0:R.length,"\uFF09"]})]}),(0,o.jsx)("ul",{children:k.children.map(F=>{var Z,G;return(0,o.jsxs)("li",{onClick:()=>x(k,F),children:[(0,o.jsx)("div",{className:"left-title",children:F.name}),(0,o.jsx)("div",{className:"img-box",children:(0,o.jsx)("img",{src:F!=null&&(Z=F.cover_url)!=null&&Z.url?""+(F==null||(G=F.cover_url)==null?void 0:G.url):"/mb-proto2/images/lib/lib-emtry.png"})})]},F.cid)})})]},k.cid)})})}),(0,o.jsx)(jl.yP,{type:"vertical",containerRef:h,isAutoHideBar:!0})]})});var nE=Object.defineProperty,oE=Object.defineProperties,aE=Object.getOwnPropertyDescriptors,pg=Object.getOwnPropertySymbols,ex=Object.prototype.hasOwnProperty,tx=Object.prototype.propertyIsEnumerable,nx=(e,t,n)=>t in e?nE(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,e5=(e,t)=>{for(var n in t||(t={}))ex.call(t,n)&&nx(e,n,t[n]);if(pg)for(var n of pg(t))tx.call(t,n)&&nx(e,n,t[n]);return e},rE=(e,t)=>oE(e,aE(t)),iE=(e,t)=>{var n={};for(var a in e)ex.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&pg)for(var a of pg(e))t.indexOf(a)<0&&tx.call(e,a)&&(n[a]=e[a]);return n},ug=(0,l.forwardRef)((e,t)=>{var n=e,{size:a,spin:i,style:c}=n,d=iE(n,["size","spin","style"]);const p=e5(e5({width:a||"var(--x-icon-size, 1em)",height:a||"var(--x-icon-size, 1em)",animation:i?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),c);return l.createElement("svg",rE(e5({ref:t,style:p},d),{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.7803 9.21967C19.0732 9.51256 19.0732 9.98744 18.7803 10.2803L13.0607 16L18.7803 21.7197C19.0732 22.0126 19.0732 22.4874 18.7803 22.7803C18.4874 23.0732 18.0126 23.0732 17.7197 22.7803L11.4697 16.5303C11.329 16.3897 11.25 16.1989 11.25 16C11.25 15.8011 11.329 15.6103 11.4697 15.4697L17.7197 9.21967C18.0126 8.92678 18.4874 8.92678 18.7803 9.21967Z",fill:"#19191A"}))});const sE=M.Ay.header.withConfig({displayName:"styles__StyledTemplateHeader",componentId:"sc-vinpbc-0"})(["width:100%;flex:0 0 64px;display:flex;align-items:center;padding-left:24px;.arrow-left{margin-right:6px;cursor:pointer;border-radius:4px;transition:background-color 0.2s ease-in-out;path{fill:",";}&:hover,&:active{background:",";}}.platform-sub-filter{height:32px;label.filter-opener{padding-left:12px;padding-right:8px;.arrow-icon{margin-left:2px;width:20px !important;height:20px !important;}}}.title-text{max-width:80px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;text-align:left;color:",";font-size:12px;}"],e=>e.theme.color_text_L1,e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_text_L1),_re=(0,M.DU)([".context-menu-mask{z-index:1052;}"]),ox=(0,l.memo)(e=>{const{title:t="",optionList:n,value:a,onBack:i,onChange:c,isShow:d=!0,renderParent:p}=e,h=(0,l.useCallback)(m=>{const x=n.findIndex(v=>v.value===m);x>-1&&c({value:m,index:x})},[n,c]);return(0,o.jsxs)(sE,{children:[(0,o.jsx)(ug,{size:32,className:"arrow-left",onClick:i}),p&&p(),d&&(0,o.jsx)(o.Fragment,{children:n!=null&&n.length?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(ng.A,{width:140,selectedValue:a,optionList:n,onChange:h,menuClassName:"modal-template-drop-menu"}),(0,o.jsx)(G3.R,{})]}):(t==null?void 0:t.length)>0?(0,o.jsx)("span",{className:"title-text",children:t}):null})]})});var ax=s(29294),lE=s(46442);const cE=M.Ay.div.withConfig({displayName:"styles__StyledDetail",componentId:"sc-n4s99e-0"})(["height:100%;width:100%;display:flex;flex-direction:column;position:relative;.sticky-container{padding:24px 32px 8px;}.platform-sub-filter{.filter-opener{button{.display-name{font-size:16px;font-weight:500;}}}&.large-factory-detail-parent{margin-right:4px;}}.title-text{font-size:16px;font-weight:500;}.detail-container{flex:1;width:100%;position:relative;overflow:hidden;padding-top:8px;padding-bottom:20px;.detail-scrollable-list{width:100%;height:100%;display:flex;flex-direction:column;padding:0 32px;overflow-x:hidden;overflow-y:overlay;scrollbar-width:none;&.show-footer{height:calc(100% - 68px);}.large-marketTemplate-list{padding:0;}.container{position:relative;min-height:100%;width:100%;display:flex;flex-direction:column;.box{span.title{font-family:PingFang SC;font-weight:500;font-size:16px;color:",";display:block;margin-bottom:20px;line-height:22px;}&:not(:last-child){margin-bottom:20px;}}}}}"],e=>e.theme.color_text_L1),Tre=M.Ay.header.withConfig({displayName:"styles__StyledDetailHeader",componentId:"sc-n4s99e-1"})(["width:100%;flex:0 0 64px;display:flex;align-items:center;padding-left:24px;.arrow-left{margin-right:6px;.svg-icon{width:6px;height:10px;transform:rotate(-180deg);color:",";}}.official-menu-filter-container{width:auto;.filter-opener{padding:0 12px;height:32px;.display-name{max-width:100%;.title-box{display:flex;align-items:center;justify-content:center;font-family:PingFang SC;font-weight:500;font-size:16px;color:",";.level-title{color:",";&:first-child{margin-right:8px;}&:last-child{margin-left:8px;}}}}.arrow-icon{display:none;}}}"],e=>e.theme.color_text_L1,e=>e.theme.color_text_disabled01,e=>e.theme.color_text_L1),Pre=(0,M.DU)([".context-menu-mask{z-index:1052;}"]),dE=M.Ay.div.withConfig({displayName:"styles__StyledMarketTemplateList",componentId:"sc-n4s99e-2"})(["display:grid;grid-template-columns:repeat(auto-fill,minmax(187px,1fr));gap:20px;padding:16px 32px 20px 32px;.template-item{margin-bottom:0;.img-wrapper{width:100%;aspect-ratio:1 / 1;border-radius:12px;}.template-name{width:100%;padding:0 6px;margin-top:10px;font-family:PingFang SC;font-size:14px;color:",";text-align:left;}}.sample{width:100%;height:fit-content;aspect-ratio:1 / 1;border-radius:12px;}"],e=>e.theme.color_text_L2),t5=(0,l.memo)(e=>{const{list:t,containerRect:n,checkedSet:a,onCheckedResource:i,onOpenPreviewModal:c}=e,d=(0,r.wA)(),p=(0,l.useCallback)(m=>{m&&d({type:"entry:resources:update:find:data",payload:{cid:m==null?void 0:m.cid,category:m.category}})},[d]),h=(0,l.useCallback)(m=>{d({type:"widget-modal:update:state",payload:{currentResource:m}})},[d]);return(0,o.jsx)(dE,{className:"large-marketTemplate-list",children:t.map((m,x)=>"hotAttr"in m&&"marketTemplateSource"in m?(0,o.jsx)(ax.A,{isFloatPreviewMkt:!1,from:"widget-modal",marketTemplate:m,currentResources:m.marketTemplateSource,containerRect:n,isShowSign:!0,isShowFolderIcon:!0,canChecked:!0,checkedSet:a,onCheckedResource:i,onPaidTemplates:()=>p(m.marketTemplateSource),onOpenPreviewModal:c,onOpenFolder:h},m.key+x):(0,o.jsx)(lE.a,{item:m},m.key+x))})});var Xc=s(19062),K0=s(38382),n5=s(55914);const pE=(0,l.memo)(e=>{const{keyword:t,isSearching:n,checkedSet:a,templateList:i,searchList:c,onUpdateSearchList:d,onCheckedResource:p,onOpenPreviewModal:h}=e,m=(0,l.useRef)(null),[x,v]=(0,l.useState)(!0);return(0,l.useEffect)(()=>{(async()=>{if(!(t!=null&&t.length))return;v(!0);const k=new RegExp((0,n5.$)(t),"i"),R=i.filter(F=>{var Z;return k.test(F==null||(Z=F.hotAttr)==null?void 0:Z.name)});setTimeout(()=>{d(R),v(!1)},1e3)})()},[n,t,v,i]),x?(0,o.jsx)(Xc.S,{className:"margin-top-170",children:(0,o.jsx)("span",{children:I18N.Resources.searching.load})}):c!=null&&c.length?(0,o.jsxs)("div",{className:"detail-container",children:[(0,o.jsx)(rd.o,{ref:m,className:C()("detail-scrollable-list",{"show-footer":(a==null?void 0:a.size)>0}),children:A=>(0,o.jsx)(t5,{list:c,containerRect:A,checkedSet:a,onCheckedResource:p,onOpenPreviewModal:h})}),(0,o.jsx)(jl.yP,{type:"vertical",containerRef:m,isAutoHideBar:!0})]}):(0,o.jsx)(K0.H,{})});var uE=s(26348),Cf=s(60440),hE=s(50325);const mE=(0,l.memo)(e=>{const{list:t,detailScrollTopType:n,templateList:a,fetchList:i,onBack:c,onFetchData:d}=e,p=(0,r.d4)(id.vE),h=(0,r.d4)(dl.fK),{level1:m,level2:x,detailScrollTop:v}=p,A=(0,l.useRef)(null),[k,R]=(0,l.useState)(!1),[F,Z]=(0,l.useState)(""),[G,ee]=(0,l.useState)(null),ce=(0,r.wA)(),se=(0,l.useMemo)(()=>t.find(So=>So.name===m),[t,m]),he=(0,l.useMemo)(()=>{var So;const ho=(So=se.children)==null?void 0:So.findIndex(No=>No.name===x);return ho>-1?ho:0},[se]),{setItemRef:ve,activeTitleValue:Te,scrollToItem:xe,scrollTop:Fe,scrollToByOffset:et}=(0,uE.G)(A,{defaultFirst:x,defaultActiveIndex:he,defaultOffsetTop:0}),Ke=(0,l.useMemo)(()=>se?se.children.map(So=>({label:So.name,value:So.name})):[],[t,se]),Qe=(0,l.useMemo)(()=>t.map(So=>({label:So.name,value:So.name})),[]);(0,l.useEffect)(()=>{n!=null&&n.length&&(n==="back"?setTimeout(()=>{v>0&&et(v)},200):n==="detail"&&setTimeout(()=>{xe(he,0,!1)},200))},[he,n,v,et]),(0,l.useEffect)(()=>{ce({type:"widget-modal:update:largeFactory",payload:{detailScrollTop:Fe}})},[Fe,ce]),(0,l.useEffect)(()=>{var So;if(!se)return;const ho=(So=se.children)==null?void 0:So.find(No=>No.name===Te);ce({type:"widget-modal:update:largeFactory",payload:{level2:(ho==null?void 0:ho.name)||""}})},[se,Te,Ke]);const{checkedSet:nt,curRes:Xe,handleChangeChecked:lt,handleSelectAll:Ct,handleClearAll:St,handleBySeparately:hn,handleMemberClick:Cn,handleAddItems:Mt,handleOpenPreviewModal:Et}=(0,Cf.m)({templateList:F!=null&&F.length?G||[]:a,resourcesMap:h}),Co=(0,l.useCallback)(So=>{const{index:ho}=So;xe(ho)},[xe]),Pn=(0,l.useCallback)(So=>{var ho;const No=t.find(Xo=>Xo.name===So);A!=null&&A.current&&(A.current.scrollTop=0),ce({type:"widget-modal:update:largeFactory",payload:{level1:So,level2:No==null||(ho=No.children)==null||(ho=ho[0])==null?void 0:ho.name}}),St(),d(So)},[St,ce,t,d,A]),ro=(0,l.useCallback)(So=>{Z(So)},[Z,R]),Io=(0,l.useCallback)(async So=>{Z(So),R(!0),St()},[St,R,Z]),mo=(0,l.useCallback)(()=>{ro(""),St(),ee([]),R(!1)},[ro,R,St,ee]);return(0,o.jsxs)(cE,{children:[(0,o.jsx)("div",{className:"sticky-container",children:(0,o.jsx)(Cd.A,{value:F,className:"search-bar",placeholder:I18N.widgetModal.search_bar_placeholder,onChange:ro,onSearch:Io,onClear:mo,canClear:!0})}),(0,o.jsx)(ox,{optionList:(Ke==null?void 0:Ke.length)===1?[]:Ke,value:x,onChange:Co,onBack:c,isShow:!(F!=null&&F.length),renderParent:()=>(0,o.jsx)(ng.A,{className:"large-factory-detail-parent",width:140,selectedValue:m,optionList:Qe,onChange:Pn})}),F!=null&&F.length?(0,o.jsx)(pE,{keyword:F,isSearching:k,checkedSet:nt,templateList:a,searchList:G,onUpdateSearchList:ee,onCheckedResource:lt,onOpenPreviewModal:Et}):(0,o.jsx)("div",{className:"detail-container",children:(0,o.jsx)(rd.o,{className:C()("detail-scrollable-list",{"show-footer":(nt==null?void 0:nt.size)>0}),ref:A,children:(So,ho)=>{var No;return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("div",{className:"container",children:(No=i[0])==null?void 0:No.children.map((Xo,Ta)=>(0,o.jsxs)("div",{className:"box",ref:ve(Ta),children:[(0,o.jsx)("span",{className:"title","data-key":Xo.name,children:Xo.name}),(0,o.jsx)(t5,{list:Xo.children,containerRect:So,checkedSet:nt,onCheckedResource:lt,onOpenPreviewModal:Et})]},Xo.name+"-"+Ta))}),(0,o.jsx)(jl.yP,{type:"vertical",containerRef:A,isAutoHideBar:!0})]})}})}),nt.size>0&&(0,o.jsx)(r0.W,{type:"widget",resource:Xe,checkedSet:nt,onBuySeparately:hn,onMemberClick:Cn,onSelectAll:Ct,onClearAll:St,onAddItems:Mt})]})}),fE=(0,l.memo)(e=>{var t;const{platform:n}=e,a=(0,r.d4)(id.vE),i=(0,r.d4)(dl.AC),{level1:c,listMap:d}=a,p=(0,r.wA)(),[h,m]=(0,l.useState)(null),[x,v]=(0,l.useState)(null),A=(0,l.useMemo)(()=>d.get(n)||[],[d,n]),k=(0,l.useCallback)(async R=>{m(null),v(null);const F=A.find(se=>se.name===R);if(!F)return;const G=F.children.map(se=>se.children||[]).flat(1/0).map(se=>se.mt_cid);await p({type:"entry:resources:init:marketTemplateItemList:map",payload:{resourcesCids:G}});const{templateList:ee,fetchList:ce}=(0,hE.aM)([F],i);m(ee),v(ce)},[A,i,p,m,v]);return(0,l.useEffect)(()=>{k(c)},[c,k]),!(x!=null&&(t=x[0])!=null&&(t=t.children)!=null&&t.length)||!(h!=null&&h.length)?(0,o.jsx)(Xc.S,{className:"margin-top-170"}):(0,o.jsx)(mE,{...e,list:A,templateList:h,fetchList:x,onFetchData:k})});var rx=s(48790);const gE=(e,t)=>{let n=[],a=0;return e!=null&&e.length&&t&&e.forEach(i=>{const c=(0,rx.gT)(i,t);c!=null&&c.length&&(n.push([c,i]),a+=c==null?void 0:c.length)}),{marketTemplateGroups:n,sum:a}},yE=e=>{if(!e)return null;const{data:t,p2mMMap:n}=e,{market_templates:a}=t,i=a&&a.filter(h=>(h==null?void 0:h.version)!=="v1"),{marketTemplateGroups:c,sum:d}=gE(i,n),p=c.map(h=>h[0]).flat(1/0);return{marketTemplateGroups:c,marketTemplates:p,marketTemplateNum:d}};var eu=function(e){return e.MOBILE="mobile",e.WEB="web",e.OTHER="other",e.APP="app",e.APPLET="applet",e.WEB_BACK="web_back",e.WEBSITE="website",e.IPAD="ipad",e.SMART_TV="smart_tv",e.SMART_CAR="smart_car",e.APPLE_WATCH="apple_watch",e.SLIDE="slide",e.DISPLAY_SCREEN="display_screen",e.HMI="HMI",e.HMI2="visual",e.ACTIVITY="activity",e}(eu||{});const xE={0:[eu.WEB,eu.WEB_BACK,eu.WEBSITE],1:[eu.APP,eu.MOBILE],2:[eu.APPLET,eu.MOBILE]},vE=(0,l.memo)(e=>{const{tab:t,isSearching:n,checkedSet:a,onUpdateSearchList:i,onCheckedResource:c,onOpenPreviewModal:d}=e,p=(0,r.d4)(dl.fK),h=(0,r.d4)(id.ri),m=(0,r.d4)(id.vE),{searchList:x}=m,v=(0,r.wA)(),A=(0,l.useRef)(null),[k,R]=(0,l.useState)(!0),F=(0,l.useCallback)(G=>{if(!G)return;const{marketTemplateGroups:ee}=G;if(!(ee!=null&&ee.length))return;const ce=[],se=new Map,he=new Map;ee.forEach(ve=>{var Te;const[xe,Fe]=ve;if((Fe==null||(Te=Fe.project_metas)==null?void 0:Te.length)>0){const{project_metas:[{cid:et,upper_cid:Ke}]}=Fe;ce.push(Ke),se.set(Ke,et),he.set(Fe.cid,Fe)}}),v({type:"resources:set:resources_map",payload:{mtResourcesMap:he}}),v({type:"entry:resources:set:mtSdkStore:map",payload:{mtResourceCidList:ce,mtProjectMetaCidMap:se}})},[v]),Z=(0,l.useMemo)(()=>{const G=xE[t]||[];return x.filter(ee=>{var ce;return G.includes(ee==null||(ce=ee.marketTemplateSource)==null?void 0:ce.platform)})},[t,x]);return(0,l.useEffect)(()=>{(async()=>{if(!(h!=null&&h.length))return;R(!0);const ce={category:ENV.IS_ON_PREMISES?"combo_group":"popup_combo_group",q:h,limit:36},se=await(0,Eo.F7)(new URLSearchParams(ce),""),he=yE(se);if(he){const{marketTemplates:ve}=he;i(ve),F(he)}else i([]);R(!1)})()},[n,h,R]),(0,l.useEffect)(()=>{A!=null&&A.current&&(A.current.scrollTop=0)},[t]),k?(0,o.jsx)(Xc.S,{className:"margin-top-170",children:(0,o.jsx)("span",{children:I18N.Resources.searching.load})}):Z!=null&&Z.length?(0,o.jsxs)("div",{className:"resource-container",children:[(0,o.jsx)(rd.o,{ref:A,className:C()("resource-scroll-container",{"show-footer":(a==null?void 0:a.size)>0}),children:G=>(0,o.jsx)(t5,{list:Z,containerRect:G,checkedSet:a,onCheckedResource:c,onOpenPreviewModal:d})}),(0,o.jsx)(jl.yP,{type:"vertical",containerRef:A,isAutoHideBar:!0})]}):(0,o.jsx)(K0.H,{})});var i0=s(16335);const bE=M.Ay.div.withConfig({displayName:"styles__StyledLargeFactory",componentId:"sc-10t2242-0"})(["height:100%;width:100%;display:flex;flex-direction:column;.sticky-container{padding:24px 32px 16px;}.nav-container{width:100%;height:32px;display:flex;flex-direction:row;align-items:center;margin-bottom:32px;flex:0 0 32px;padding:0 32px;.divider{width:1px;height:16px;background:",";margin:0 24px;}.platform-sub-filter{height:32px;}}.resource-container{flex:1;width:100%;position:relative;overflow:hidden;.resource-scroll-container{width:100%;height:100%;overflow-x:hidden;overflow-y:overlay;scrollbar-width:none;&.show-footer{height:calc(100% - 68px);}}}"],e=>e.theme.color_bg_border_02),wE=(0,l.memo)(e=>{const{detailScrollTopType:t,onUpdateDetailScrollTopType:n}=e,a=(0,r.d4)(id.ri),i=(0,r.d4)(id.vE),c=(0,r.d4)(dl.fK),d=(0,r.wA)(),{tab:p,level1:h,listMap:m,searchList:x,scrollTop:v}=i,[A,k]=(0,l.useState)(!1),[R,F]=(0,l.useState)(!1),[Z,G]=(0,l.useState)(a),ee=(0,l.useMemo)(()=>[{key:"web_back",label:"Web\u540E\u53F0"},{key:"app",label:"App"},{key:"applet",label:"\u5C0F\u7A0B\u5E8F"}],[]),ce=(0,l.useMemo)(()=>{var Cn;return((Cn=ee[p])==null?void 0:Cn.key)||"mobile"},[ee,p]),{checkedSet:se,curRes:he,handleChangeChecked:ve,handleSelectAll:Te,handleClearAll:xe,handleBySeparately:Fe,handleMemberClick:et,handleAddItems:Ke,handleOpenPreviewModal:Qe}=(0,Cf.m)({templateList:x||[],resourcesMap:c}),nt=(0,l.useCallback)(Cn=>{d({type:"widget-modal:update:largeFactory",payload:{tab:Cn}}),xe()},[d,xe]);(0,l.useEffect)(()=>{(async()=>{if(m.get(ce))return;k(!0);const Et=await(0,i0.GH)("v2",ce),Co=new Map(m);Co.set(ce,Et),await d({type:"widget-modal:update:largeFactory",payload:{listMap:Co}}),k(!1)})()},[ce,m,d]);const Xe=(0,l.useCallback)(Cn=>{G(Cn)},[d]),lt=(0,l.useCallback)(async Cn=>{d({type:"widget-modal:update:keyword",payload:Cn}),F(!0),xe()},[d,xe,F]),Ct=(0,l.useCallback)(Cn=>{d({type:"widget-modal:update:largeFactory",payload:{searchList:Cn}})},[d]),St=(0,l.useCallback)(()=>{Xe(""),d({type:"widget-modal:update:keyword",payload:""}),F(!1),xe(),Ct([])},[Xe,F,xe,Ct]),hn=(0,l.useCallback)(()=>{d({type:"widget-modal:update:largeFactory",payload:{level1:"",level2:"",detailScrollTop:0}})},[d]);return(h==null?void 0:h.length)>0?(0,o.jsx)(fE,{platform:ce,detailScrollTopType:t,onBack:hn}):(0,o.jsxs)(bE,{children:[(0,o.jsx)("div",{className:"sticky-container",children:(0,o.jsx)(Cd.A,{value:Z,className:"search-bar",placeholder:I18N.widgetModal.search_bar_placeholder,onChange:Xe,onSearch:lt,onClear:St,canClear:!0})}),(0,o.jsx)("div",{className:"nav-container",children:(0,o.jsx)(Bc.eD,{activeIndex:p,onTabChange:nt,height:32,className:"slide-nav",children:ee.map((Cn,Mt)=>{let{key:Et,label:Co}=Cn;return(0,o.jsx)(Bc.nl,{label:Co},Et)})})}),A?(0,o.jsx)(Xc.S,{className:"margin-top-170"}):Z!=null&&Z.length?(0,o.jsx)(vE,{isSearching:R,checkedSet:se,tab:p,onUpdateSearchList:Ct,onCheckedResource:ve,onOpenPreviewModal:Qe}):(0,o.jsx)(tE,{platform:ce,checkedSet:se,scrollTop:v,onUpdateDetailScrollTopType:n}),se.size>0&&(0,o.jsx)(r0.W,{type:"widget",resource:he,checkedSet:se,onBuySeparately:Fe,onMemberClick:et,onSelectAll:Te,onClearAll:xe,onAddItems:Ke})]})});var t2=s(22375),hg=s(15722);const CE=M.Ay.div.withConfig({displayName:"styles__StyledComponentLibrary",componentId:"sc-vrvd28-0"})(["height:100%;width:100%;display:flex;flex-direction:column;.sticky-container{padding:24px 32px 16px 32px;flex:0 0 82px;.search-bar{height:42px;}}"]),SE=M.Ay.div.withConfig({displayName:"styles__StyledFilterComponent",componentId:"sc-vrvd28-1"})(["width:100%;display:flex;flex-direction:column;padding:0 32px;.other-filter-section{height:32px;display:flex;justify-content:space-between;margin-top:12px;font-size:14px;font-weight:500;.order-filter{display:flex;align-items:center;color:",";font-weight:500;.order-item{cursor:pointer;display:flex;align-items:center;&.is-active{color:",";}&:not(:last-child){margin-right:24px;}img.new-icon{height:18px;margin-left:4px;}}}.ant-dropdown-trigger.item{border-radius:6px;color:"," !important;font-size:14px !important;font-weight:400 !important;display:flex;align-items:center;height:32px;padding:0 8px;cursor:pointer;&:hover{background:",";}.arrow-icon{width:8px;height:8px;margin-left:4px;transition:transform 0.2s ease-out 0s;}&.ant-dropdown-open{.arrow-icon{transform:rotateX(180deg);}}}.ant-dropdown{width:180px !important;margin:4px 0 !important;min-width:auto !important;}.ant-dropdown-menu{padding:8px !important;width:180px !important;background:"," !important;}.ant-dropdown-menu-item{padding:5px 8px !important;color:"," !important;&:hover{background:"," !important;}.ant-dropdown-menu-item-icon{width:16px !important;height:16px !important;margin-inline-end:4px !important}svg{&:not(.item-select){opacity:0;}}.ant-dropdown-menu-title-content{color:"," !important;font-size:12px !important;}}}"],e=>e.theme.color_text_L3,e=>e.theme.color_text_L1,e=>e.theme.color_text_L1,e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_bg_white,e=>e.theme.color_text_L1,e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_text_L1),AE=(0,l.memo)(e=>{const{onScrollTop:t}=e,n=(0,r.d4)(id.GL),a=(0,l.useRef)(null),{platform:i,order:c,policy:d}=n,p=(0,r.wA)(),h=ENV.IS_ON_PREMISES?t2.Cl:t2.yK,m=(0,l.useMemo)(()=>h.findIndex(R=>R.value===i),[i]),x=(0,l.useMemo)(()=>t2.kA.filter(R=>d.includes(R.key)).map(R=>R.label).join("+"),[d]),v=(0,l.useCallback)(async R=>{var F;const Z=(F=h[R])==null?void 0:F.value;await p({type:"widget-modal:update:componentLibrary",payload:{platform:Z,page:1}}),await p({type:"entry:widget-modal:componentLibrary:update:templateList",payload:{callback:t}})},[p]),A=(0,l.useCallback)(async R=>{R!==c&&(await p({type:"widget-modal:update:componentLibrary",payload:{order:R,page:1}}),await p({type:"entry:widget-modal:componentLibrary:update:templateList",payload:{callback:t}}))},[c,p]),k=(0,l.useCallback)(async(R,F)=>{if(R.stopPropagation(),F===hg.y)await p({type:"widget-modal:update:componentLibrary",payload:{policy:[hg.y],page:1}});else{const Z=new Set(d.filter(ee=>ee!==hg.y));Z.has(F)?(F===t2._n.MktMemberFree&&Z.delete(t2._n.MktMemberDiscount),Z.delete(F)):(F===t2._n.MktMemberFree&&Z.add(t2._n.MktMemberDiscount),Z.add(F));const G=Array.from(Z);await p({type:"widget-modal:update:componentLibrary",payload:{policy:(G==null?void 0:G.length)===0?[hg.y]:G,page:1}})}await p({type:"entry:widget-modal:componentLibrary:update:templateList",payload:{callback:t}})},[p,d]);return(0,o.jsxs)(SE,{className:"nav-container",children:[(0,o.jsx)(Bc.eD,{activeIndex:m,onTabChange:v,height:32,className:"slide-nav",children:h.map((R,F)=>{let{name:Z,value:G}=R;return(0,o.jsx)(Bc.nl,{label:Z},G)})}),!ENV.IS_ON_PREMISES&&(0,o.jsxs)("div",{className:"other-filter-section",children:[(0,o.jsx)("div",{className:"order-filter",children:t2.h0.map(R=>(0,o.jsxs)("div",{className:C()("order-item",R.value===c&&"is-active"),onClick:()=>A(R.value),children:[R.name,R.value==="recent"&&(0,o.jsx)("img",{src:"/mb-community/images/home/filter_new.png",className:"new-icon"})]},R.value))}),(0,o.jsx)("div",{className:"right",children:(0,o.jsx)(ag.A,{dropdownRender:()=>(0,o.jsx)("div",{className:"ant-dropdown-menu",children:t2.kA.map(R=>R.type==="divider"?(0,o.jsx)("li",{role:"separator",className:"ant-dropdown-menu-item-divider"},R.key):(0,o.jsxs)("div",{onClick:F=>k(F,R.key),className:"ant-dropdown-menu-item",children:[(0,o.jsx)(xt.C,{name:"common/checked",className:C()("ant-dropdown-menu-item-icon",{"item-select":d.includes(R.key)})}),(0,o.jsx)("div",{className:"ant-dropdown-menu-title-content",children:R.label})]},R.key))}),placement:"bottomRight",getPopupContainer:()=>a.current,children:(0,o.jsxs)("div",{className:"item",ref:a,children:[x,(0,o.jsx)(xt.C,{className:C()("arrow-icon"),name:"common/expand"})]})})})]})]})});var kE=s(68677);function tu(e){this.value=e,this.getDisplayStrLessThan4=function(){return this.value.toString()},this.getDisplayStrEqualTo4=function(){return(this.value/1e3).toFixed(1)+"k"},this.getDisplayStrMoreThan4=function(){return(this.value/1e4).toFixed(1)+"w"},this.getDisplayStr=function(){if(this.value===void 0)return"0";const t=this.value.toString().length;return t<=3?this.getDisplayStrLessThan4():t===4?this.getDisplayStrEqualTo4():t>4?this.getDisplayStrMoreThan4():"0"}}const ME=function(e,t){t===void 0&&(t="");const{isMdVipTemplate:n,isMktVipTemplate:a}=(0,Y3.TX)(e);return n?t==="title"?["/mb-community/images/vip_icon/md_vip_title.png",""]:["/mb-community/images/vip_icon/md_vip_card.png","art_board/community_resources/md_vip_s"]:a?t==="title"?["/mb-community/images/vip_icon/mt_vip_title.png",""]:["/mb-community/images/vip_icon/mt_vip_card.png","art_board/community_resources/mt_vip_s"]:["",""]},Sf=e=>{let{currentResource:t,onUpdateResource:n}=e;const a=(0,r.wA)(),i=(0,l.useCallback)(async p=>{if(p==null||p.preventDefault(),p==null||p.stopPropagation(),!t)return;const{cid:h,state:m,is_purchased:x,is_liked:v,target_upper_cid:A,liked_count:k}=t,R=m!=="approved"&&!x,F=A||h;if(R)return;const Z=!v;Z?await(0,i0.q3)(F):await(0,i0.V)(F);const G=Z?k+1:k-1;n({...t,...{is_liked:Z,liked_count:G}})},[t,n]),c=(0,l.useCallback)(async p=>{if(p&&"preventDefault"in p&&(p==null||p.preventDefault(),p==null||p.stopPropagation()),!t)return;const{cid:h,state:m,is_purchased:x,target_upper_cid:v,is_star:A,star_count:k}=t,R=m!=="approved"&&!x,F=v||h;if(R)return;const Z=!A;Z?await(0,i0.rq)(F):await(0,i0.iS)(F);const G={is_star:Z,star_count:Z?k+1:k-1};n({...t,...G})},[t,n]),d=(0,l.useCallback)(()=>{t&&(n({...t,is_purchased:!0,is_star:!0}),a({type:"entry:resources:update:find:data",payload:{cid:t==null?void 0:t.cid,category:t==null?void 0:t.category}}))},[t,n,a]);return{handleToggleLike:i,handleToggleStar:c,handlePaidResources:d}},EE=M.Ay.div.withConfig({displayName:"styles__StyledTemplateItem",componentId:"sc-1g225km-0"})(["&.template-item{cursor:default;position:relative;.vip{position:absolute;top:10px;right:10px;height:20px;z-index:1;&.short{width:20px}}&:hover{.vip.short{visibility:hidden}}&:not(:hover){.vip.long{visibility:hidden}}.new{position:absolute;top:10px;left:10px;height:20px;z-index:1;}.template-cover{position:relative;border-radius:12px;overflow:hidden;padding-bottom:75%;height:0px;cursor:pointer;border:1px solid rgba(18,17,42,0.07);box-sizing:border-box;img{width:calc(100% + 2px);transition:transform 1s cubic-bezier(0,0,0,1);&:hover{transform:scale(1.05);}&.mask{opacity:0.65;}}}.templateInfo{display:flex;height:20px;align-items:center;margin-top:10px;justify-content:space-between;.templateTitle{font-size:14px;font-weight:500;line-height:16px;color:",";cursor:pointer;}.actionListContainer{display:flex;.action-item{display:flex;align-items:center;cursor:pointer;&:nth-child(1){margin-right:8px;}svg{width:16px;height:16px;margin-right:4px;color:",";}&.star-action{.actionIcon{g{path{fill:",";}}}}.actionValue{font-size:12px;font-weight:500;line-height:16px;text-align:left;color:",";}&.is-active{color:",";.actionIcon{color:",";}&.star-action{.actionIcon{g{path{fill:",";}}}}}&:not(.is-active,.disabled):hover{color:",";.actionIcon{color:",";}&.star-action{.actionIcon{g{path{fill:",";}}}}}&.disabled{cursor:not-allowed;path{fill:",";}.actionValue{color:",";}}}}}}"],e=>e.theme.color_text_L1,e=>e.theme.color_text_L3,e=>e.theme.color_text_L3,e=>e.theme.color_text_L3,e=>e.theme.color_btn_primary_normal,e=>e.theme.color_btn_primary_normal,e=>e.theme.color_btn_primary_normal,e=>e.theme.color_text_L2,e=>e.theme.color_text_L2,e=>e.theme.color_text_L2,e=>e.theme.color_text_disabled02,e=>e.theme.color_text_disabled02),IE=(0,l.memo)(e=>{const{template:t,onGotoDetail:n,onUpdateTemplateList:a}=e,i=(0,r.wA)(),c=(0,r.d4)(me.HW),{cover:d,view_count:p,author:h,title:m,liked_count:x,is_liked:v,target_upper_cid:A,cid:k,used_count:R,is_star:F,star_count:Z,state:G,is_purchased:ee,updated_at:ce}=t,{handleToggleLike:se,handleToggleStar:he}=Sf({currentResource:t,onUpdateResource:a}),ve=new tu(p).getDisplayStr(),Te=new tu(x).getDisplayStr(),xe=new tu(R).getDisplayStr(),Fe=new tu(Z).getDisplayStr(),et=A||k,[Ke,Qe]=(0,l.useMemo)(()=>ME(t),[t]),nt=(0,l.useMemo)(()=>{const Ct=Ft()().diff(Ft()(ce),"day");return Ct<=30&&Ct>=0},[ce]),Xe=(0,l.useMemo)(()=>G!=="approved"&&!ee,[G,ee]),lt=(0,l.useMemo)(()=>G==="preview_only"&&!ee,[G,ee]);return(0,o.jsxs)(EE,{className:"template-item","data-cid":k,onClick:n,children:[Qe&&(0,o.jsx)(xt.C,{className:"vip short",name:Qe,isColorPure:!0}),Ke&&(0,o.jsx)("img",{alt:"VIP",src:Ke,className:"vip long"}),nt&&(0,o.jsx)("img",{className:"new",src:"/mb-community/images/home/item_new.png"}),(0,o.jsx)("div",{className:"template-cover",children:(0,o.jsx)("img",{className:C()({mask:Xe}),src:d})}),(0,o.jsxs)("div",{className:"templateInfo",children:[(0,o.jsx)(kE.A,{className:"templateTitle",title:m,max:15,children:m}),!lt&&(0,o.jsxs)("div",{className:"actionListContainer",children:[!ENV.IS_ON_PREMISES&&(0,o.jsxs)("div",{onClick:se,className:C()("action-item","like-action",v&&"is-active",Xe&&"disabled"),children:[v?(0,o.jsx)(xt.C,{className:"actionIcon",name:"left_panel/widgetModal/community_home/thumb_active"}):(0,o.jsx)(xt.C,{className:"actionIcon",name:"left_panel/widgetModal/community_home/thumb"}),(0,o.jsx)("span",{className:"actionValue",children:Te})]}),(0,o.jsxs)("div",{onClick:he,className:C()("action-item","star-action",F&&"is-active",Xe&&"disabled"),children:[F?(0,o.jsx)(xt.C,{className:"actionIcon",name:"left_panel/widgetModal/community_home/star_active"}):(0,o.jsx)(xt.C,{className:"actionIcon",name:"left_panel/widgetModal/community_home/star"}),!ENV.IS_ON_PREMISES&&(0,o.jsx)("span",{className:"actionValue",children:Fe})]})]})]})]})}),_E=M.Ay.div.withConfig({displayName:"styles__StyledTemplateSet",componentId:"sc-6m583v-0"})(["&.template-container{display:grid;list-style:none;grid-template-columns:repeat(auto-fill,minmax(224px,1fr));gap:20px 20px;}"]),TE=(0,M.DU)(["@keyframes skeleton-loading{0%{background-position:100% 50%;}to{background-position:0 50%;}}.skeleton-loading{background:linear-gradient(130deg,#f2f2f2 25%,#e6e6e6 37%,#f2f2f2 63%);background-size:400% 100%;animation:skeleton-loading 1.4s ease infinite;}"]),PE=M.Ay.div.withConfig({displayName:"styles__StyledListCardLoading",componentId:"sc-6m583v-1"})(["padding-bottom:40px;display:grid;list-style:none;grid-template-columns:repeat(auto-fill,minmax(270px,1fr));grid-gap:40px 32px;@media (max-width:1500px){grid-template-columns:repeat(auto-fill,minmax(240px,1fr));}@media (max-width:1380px){grid-template-columns:repeat(auto-fill,minmax(200px,1fr));}.template-loading-box{.loading-box-first{width:100%;height:199.5px;border-radius:8px;}.loading-box-second{width:90%;height:16px;border-radius:8px;margin-top:14.5px;margin-left:8px;}.loading-box-third{width:65%;height:10px;border-radius:8px;margin:11px 0 9px 8px;}.loading-box-forth{width:11%;height:20px;border-radius:50%;display:inline-block;margin-left:8px;}.loading-box-fifth{width:21%;height:10px;border-radius:8px;margin:0 0 5px 7px;display:inline-block;}}"]),ix=(0,l.memo)(e=>{const{templateList:t,onGotoDetail:n,onUpdateTemplateList:a}=e;return(0,o.jsx)(_E,{className:"template-container",children:t.map(i=>(0,o.jsx)(IE,{template:i,onGotoDetail:()=>n(i),onUpdateTemplateList:a},i.cid))})}),sx=(0,l.memo)(e=>{const{renderCounts:t}=e,n=(0,l.useCallback)(i=>[...Array(i).keys()],[]),a=(0,l.useMemo)(()=>n(t),[t,n]);return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(TE,{}),(0,o.jsx)(PE,{children:a.map(i=>(0,o.jsxs)("div",{className:"template-loading-box template-box",children:[(0,o.jsx)("div",{className:"loading-box-first skeleton-loading"}),(0,o.jsx)("div",{className:"loading-box-second skeleton-loading"}),(0,o.jsx)("div",{className:"loading-box-third skeleton-loading"})]},i))})]})}),LE=M.Ay.div.withConfig({displayName:"styles__StyledTemplateContainer",componentId:"sc-1h8sai4-0"})(["width:100%;flex:1;position:relative;overflow:hidden;margin-top:16px;.template-scroll-container{width:100%;height:100%;overflow-x:hidden;overflow-y:overlay;scrollbar-width:none;padding:0 32px 20px 32px;.search-end{font-family:PingFang SC;font-size:14px;font-weight:400;color:",";margin-top:64px;text-align:center;display:block;}}"],e=>e.theme.color_text_L3),NE=(0,l.memo)(e=>{const{onGotoDetail:t}=e,n=(0,r.d4)(id.GL),{page:a,templateList:i,totalCount:c,isFetchingMktData:d,isFetchingDone:p}=n,h=(0,l.useRef)(null),m=(0,r.wA)();(0,l.useEffect)(()=>{(async()=>{await m({type:"entry:widget-modal:componentLibrary:update:templateList"})})()},[]);const x=(0,l.useCallback)(async A=>{var k;if(!(h!=null&&h.current))return;const R=h.current.scrollHeight,F=h.current.clientHeight,Z=(k=A.target)==null?void 0:k.scrollTop;R-(F+Z)<80&&i.length>0&&!p&&!d&&i.length<c&&(await m({type:"widget-modal:update:componentLibrary",payload:{page:a+1}}),await m({type:"entry:widget-modal:componentLibrary:update:templateList"}))},[m,n,a]),v=(0,l.useCallback)(A=>{const k=i.map(R=>R.cid===(A==null?void 0:A.cid)?A:R);m({type:"widget-modal:update:componentLibrary",payload:{templateList:k}})},[i,m]);return i&&i.length===0?(0,o.jsx)(K0.H,{}):(0,o.jsxs)(LE,{children:[(0,o.jsxs)("div",{className:"template-scroll-container",ref:h,onScroll:x,children:[(0,o.jsx)(ix,{templateList:i,onGotoDetail:t,onUpdateTemplateList:v}),d&&(0,o.jsx)(sx,{renderCounts:24}),!d&&i!=null&&i.length?(0,o.jsx)("span",{className:"search-end",children:I18N.widgetModal.search_end}):null]}),(0,o.jsx)(jl.yP,{type:"vertical",containerRef:h,isAutoHideBar:!0})]})}),jE=(0,l.memo)(()=>{const e=(0,r.d4)(id.ri),t=(0,r.wA)(),n=(0,l.useCallback)(()=>{const d=document.querySelector(".template-scroll-container");d&&d.scrollTo(0,0)},[]),a=(0,l.useCallback)(d=>{t({type:"widget-modal:update:keyword",payload:d})},[t]),i=(0,l.useCallback)(async d=>{await t({type:"widget-modal:update:keyword",payload:d}),await t({type:"widget-modal:update:componentLibrary",payload:{page:1}}),await t({type:"entry:widget-modal:componentLibrary:update:templateList",payload:{callback:n}})},[t]),c=(0,l.useCallback)(d=>{t({type:"widget-modal:update:state",payload:{currentResource:d}})},[t]);return(0,o.jsxs)(CE,{children:[(0,o.jsx)("div",{className:"sticky-container",children:(0,o.jsx)(Cd.A,{value:e,className:"search-bar",placeholder:I18N.widgetModal.search_bar_placeholder,onChange:a,onSearch:i,canClear:!0})}),(0,o.jsx)(AE,{onScrollTop:n}),(0,o.jsx)(NE,{onGotoDetail:c})]})});var DE=s(31174),o5=s(99402),RE=s(31757),BE=s(78161),a5=s(41240);const r5=(0,M.AH)(["opacity:0;pointer-events:none;"]),i5=(0,M.AH)(["opacity:1;pointer-events:auto;"]),UE=M.Ay.li.withConfig({displayName:"styles__StyledComboItem",componentId:"sc-ozjfwl-0"})(["width:187px;display:flex;flex-direction:column;justify-content:center;align-items:center;cursor:pointer;position:relative;.img-wrapper{width:187px;height:187px;position:relative;display:flex;align-items:center;justify-content:center;padding:10px;background:",";border-radius:12px;border:1px solid ",";outline:1px solid transparent;overflow:hidden;img{max-width:100%;max-height:100%;pointer-events:none;}.operation-box{position:absolute;left:0;top:8px;width:100%;padding:0 8px;height:24px;display:flex;flex-direction:row;justify-content:space-between;align-items:center;.left{",";",";.check{visibility:visible;position:relative;top:0;left:0;}}.right{display:flex;align-items:center;",";.scale-box{width:24px;height:24px;border-radius:6px;background:",";backdrop-filter:blur(4px);display:flex;align-items:center;justify-content:center;&:hover,&:active{background:",";}svg{path{fill:",";}}.svgContainer{width:100%;height:100%;display:flex;align-items:center;justify-content:center;svg{border-radius:none;background:none;&:hover{background:none;}}}}}}.go-detail{position:absolute;bottom:8px;right:8px;display:flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:6px;overflow:hidden;background:",";backdrop-filter:blur(4px);",";&:hover,&:active{background:",";}}&.checked{border:1px solid ",";outline:1px solid ",";.operation-box{.left{",";}}}}.template-name{width:100%;padding:0 6px;margin-top:10px;font-size:14px;line-height:20px;text-align:left;color:",";white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}&:hover{.operation-box{.left,.right{",";}}.go-detail{",";}}&.checked{.img-wrapper{border:1px solid ",";outline:1px solid ",";.left{opacity:1;pointer-events:auto;}}}"],e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_bg_border_01,r5,a5.GR,r5,e=>e.theme.color_slider_hover,e=>e.theme.color_bg_mask,e=>e.theme.color_text_btn,e=>e.theme.color_slider_hover,r5,e=>e.theme.color_bg_mask,e=>e.theme.color_btn_primary_normal,e=>e.theme.color_btn_primary_normal,i5,e=>e.theme.color_text_L2,i5,i5,e=>e.theme.color_btn_primary_normal,e=>e.theme.color_btn_primary_normal),Lre=M.Ay.li.withConfig({displayName:"styles__StyledSampleDetailItem",componentId:"sc-ozjfwl-1"})(["display:flex;align-items:center;justify-content:center;width:187px;aspect-ratio:1 / 1;margin-bottom:30px;background:",";border:1px solid ",";border-radius:12px;pointer-events:none;"],e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_bg_border_01),OE=M.Ay.div.withConfig({displayName:"styles__StyledComboItemList",componentId:"sc-ozjfwl-2"})(["width:100%;display:grid;grid-template-columns:repeat(auto-fill,minmax(187px,1fr));gap:20px;li{width:100%;.img-wrapper{width:100%;height:auto;aspect-ratio:1 / 1;}}"]),FE=(0,l.memo)(e=>{const{containerRect:t,preloadDistance:n=50,item:a,isVisible:i,checkedSet:c,onUpdateCheckedSet:d,onOpenPreviewModal:p,onAddItem:h}=e,{key:m,flpakKey:x,hotAttr:{name:v}}=a,A=a.sup==="B@ref-muban"?a.hotAttr.defaultCanvasKey:m,k=a.sup==="B@ref-muban"?xd.rY.PNG_CANVAS:xd.rY.PNG_PAGE,R=(0,l.useRef)(null),F=(0,l.useCallback)((ee,ce)=>ce.offsetWidth<ce.scrollWidth,[]),Z=(0,l.useCallback)(()=>(0,G0.NI)({flpakKey:x,ssKey:A,ssTaskMode:k,ssZoomMode:xd.BU.LETTERBOX_256}),[]),G=(0,l.useCallback)(ee=>{ee.preventDefault(),ee.stopPropagation(),p(m)},[p]);return(0,o.jsxs)(UE,{className:C()("combo-item",{checked:c.has(m)}),ref:R,onClick:ee=>c!=null&&c.size?d(m):h(m),children:[(0,o.jsxs)("div",{className:"img-wrapper",children:[(0,o.jsx)(G0.Ay,{projectMetaCid:x,snapshotKey:A,isVisible:i,mode:k}),(0,o.jsxs)("div",{className:"operation-box",children:[(0,o.jsx)("div",{className:"left",children:(0,o.jsx)(o5.A,{className:"check "+((c==null?void 0:c.has(m))&&"is-show"),checked:c.has(m),onChange:ee=>d(m),onClick:ee=>ee.stopPropagation()})}),(0,o.jsx)("div",{className:"right",children:(0,o.jsx)(BE.Y,{className:"scale-box",getImgSrc:Z,onClick:G,modalName:"mb-widget-modals",children:(0,o.jsx)(RE.A,{size:12})})})]})]}),(0,o.jsx)(Ti.A,{content:v,direction:"down",isShowTipsByTarget:F,children:(0,o.jsx)("span",{className:"template-name",children:v})})]})}),mg=(0,l.memo)(e=>{const{items:t,containerRect:n,isVisible:a,checkedSet:i,onUpdateCheckedSet:c,onOpenPreviewModal:d,onAddItem:p}=e;return(0,o.jsx)(OE,{className:"item-list",children:t.map(h=>(0,o.jsx)(FE,{item:h,containerRect:n,isVisible:a,checkedSet:i,onUpdateCheckedSet:c,onOpenPreviewModal:d,onAddItem:p},h.key))})});var lx=s(77277);const cx=(e,t)=>{let n=[],a=0;return e!=null&&e.length&&t&&e.filter(i=>i.is_purchased||i.is_star).forEach(i=>{const c=(0,rx.gT)(i,t);c!=null&&c.length&&(n.push([c,i]),a+=c==null?void 0:c.length)}),{marketTemplateGroups:n,sum:a}},Nre=e=>{if(!e)return null;const{data:t,p2mMMap:n}=e,{market_templates:a}=t,i=a&&a.filter(p=>(p==null?void 0:p.version)!=="v1"),{marketTemplateGroups:c,sum:d}=cx(i,n);return{marketTemplateGroups:c,marketTemplateNum:d}},dx=(e,t,n)=>{var a,i;if(!e)return null;const{data:c,p2mMMap:d}=e,{market_templates:p,user_combo_group:h,org_combo_group:m}=c,x=p&&p.filter(ce=>(ce==null?void 0:ce.version)!=="v1"),{marketTemplateGroups:v,sum:A}=cx(x,d),{combos:k,sum:R}=(0,xf.nS)(h,d,t,window.userSdkStore),{combos:F,sum:Z}=(0,xf.nS)(m,d,n,window.orgSdkStore),G=(a=k.find(ce=>ce.type===lx.I.SelfMakeCombo))==null?void 0:a.items,ee=(i=F.find(ce=>ce.type===lx.I.SelfMakeCombo))==null?void 0:i.items;return{marketTemplateGroups:v,userCombos:G||[],orgCombos:ee||[],sum:A+R+Z}},VE=M.Ay.div.withConfig({displayName:"styles__StyledResult",componentId:"sc-14rzdq2-0"})([".box{width:100%;.title{display:block;font-size:16px;font-family:PingFang SC;font-weight:500;color:",";margin-bottom:20px;}&:not(:last-child){margin-bottom:20px;}ul.box-template-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(187px,1fr));gap:20px;.template-item{margin-bottom:0;.img-wrapper{width:100%;height:fit-content;aspect-ratio:1 / 1;border-radius:12px;}.template-name{width:100%;padding:0 6px;margin-top:10px;font-family:PingFang SC;font-size:14px;color:",";text-align:left;}}.sample{width:100%;height:auto;aspect-ratio:1 / 1;}}}"],e=>e.theme.color_text_L1,e=>e.theme.color_text_L2),zE=(0,l.memo)(e=>{const{navIndex:t,isSearching:n,onPaidResources:a}=e,i=(0,l.useRef)(null),c=(0,r.d4)(id.ri),d=(0,r.d4)(dl.fK),p=(0,r.wA)(),h=(0,r.d4)(me.wA),{scene_tag:m}=(0,r.d4)(me.PL),x=(0,r.d4)(dl.wS),v=(0,r.d4)(dl.lb),[A,k]=(0,l.useState)(!0),[R,F]=(0,l.useState)(null),{marketTemplateGroups:Z=[],userCombos:G=[],orgCombos:ee=[],sum:ce}=R||{},se=(0,l.useMemo)(()=>{let Mt=[];return Z!=null&&Z.length&&Z.forEach(Et=>{if(Et!=null&&Et.length){const[Co]=Et;Co!=null&&Co.length&&Mt.push(...Co)}}),G!=null&&G.length&&Mt.push(...G),ee!=null&&ee.length&&Mt.push(...ee),Mt},[R]),he=(0,l.useCallback)(Mt=>{if(!Mt)return;const{marketTemplateGroups:Et}=Mt;if(!(Et!=null&&Et.length))return;const Co=[],Pn=new Map,ro=new Map;Et.forEach(Io=>{var mo;const[So,ho]=Io;if((ho==null||(mo=ho.project_metas)==null?void 0:mo.length)>0){const{project_metas:[{cid:No,upper_cid:Xo}]}=ho;Co.push(Xo),Pn.set(Xo,No),ro.set(ho.cid,ho)}}),p({type:"resources:set:resources_map",payload:{mtResourcesMap:ro}}),p({type:"entry:resources:set:mtSdkStore:map",payload:{mtResourceCidList:Co,mtProjectMetaCidMap:Pn}})},[p]),ve=(0,l.useCallback)(async()=>{if(!(c!=null&&c.length))return;k(!0);const Mt={category:Ll.t_,q:c,limit:36,scene_tag:m};h!=null&&h.cid&&(Mt.org_cid=h==null?void 0:h.cid);const Et=await(0,Eo.F7)(new URLSearchParams(Mt),""),Co=dx(Et,x,v);he(Co),F(Co),k(!1)},[c,h,F,k,p]);(0,l.useEffect)(()=>{ve()},[n,c]);const{checkedSet:Te,curRes:xe,handleChangeChecked:Fe,handleSelectAll:et,handleClearAll:Ke,handleBySeparately:Qe,handleMemberClick:nt,handleAddItem:Xe,handleAddItems:lt,handleOpenPreviewModal:Ct}=(0,Cf.m)({templateList:se,resourcesMap:d,isFromSameResource:!1}),St=(0,l.useMemo)(()=>{const{marketTemplateGroups:Mt=[]}=R||{};return t===1?Mt.filter(Et=>{var Co;return(Co=Et[1])==null?void 0:Co.is_star}):t===2?Mt.filter(Et=>{var Co;return(Co=Et[1])==null?void 0:Co.is_purchased}):Mt},[R,t]),hn=(0,l.useMemo)(()=>t===0?ce===0:St.reduce((Et,Co)=>{var Pn;return Et+=(Pn=Co[0])==null?void 0:Pn.length,Et},0)===0,[t,ce,St]),Cn=(0,l.useCallback)(Mt=>{p({type:"widget-modal:update:state",payload:{currentResource:Mt||null}})},[p]);return(0,l.useEffect)(()=>{i!=null&&i.current&&(i.current.scrollTop=0,Ke())},[t,Ke]),A?(0,o.jsx)(Xc.S,{className:"fill-height"}):hn?(0,o.jsx)(K0.H,{}):(0,o.jsxs)(VE,{className:"resource-container",children:[(0,o.jsx)(rd.o,{className:C()("resource-scroll-container",{"show-footer":(Te==null?void 0:Te.size)>0}),ref:i,children:(Mt,Et)=>(0,o.jsxs)("div",{className:"container",children:[(G==null?void 0:G.length)>0&&t===0&&(0,o.jsxs)("div",{className:"box",children:[(0,o.jsx)("span",{className:"title",children:I18N.Popups.my_widgets}),(0,o.jsx)(mg,{items:G,containerRect:Mt,isVisible:Et,checkedSet:Te,onUpdateCheckedSet:Fe,onOpenPreviewModal:Ct,onAddItem:Xe})]}),(ee==null?void 0:ee.length)>0&&t===0&&(0,o.jsxs)("div",{className:"box",children:[(0,o.jsx)("span",{className:"title",children:I18N.Popups.org_widgets}),(0,o.jsx)(mg,{items:ee,containerRect:Mt,isVisible:Et,checkedSet:Te,onUpdateCheckedSet:Fe,onOpenPreviewModal:Ct,onAddItem:Xe})]}),(St==null?void 0:St.length)>0&&St.map(Co=>{const[Pn,ro]=Co;return(0,o.jsxs)("div",{className:"box",children:[(0,o.jsx)("span",{className:"title",children:ro==null?void 0:ro.title}),(0,o.jsx)("ul",{className:"box-template-list",children:Pn.map(Io=>(0,o.jsx)(ax.A,{isFloatPreviewMkt:!1,from:"widget-modal",marketTemplate:Io,currentResources:ro,containerRect:Mt,isShowSign:!0,isShowFolderIcon:!0,onPaidTemplates:()=>a(ro==null?void 0:ro.cid),canChecked:!0,checkedSet:Te,onOpenFolder:Cn,onCheckedResource:Fe,onOpenPreviewModal:Ct},Io.key))})]})})]})}),(0,o.jsx)(jl.yP,{type:"vertical",containerRef:i,isAutoHideBar:!0}),Te.size>0&&(0,o.jsx)(r0.W,{type:"widget",isOnlyShowCreates:!xe,resource:xe,checkedSet:Te,onBuySeparately:Qe,onMemberClick:nt,onSelectAll:et,onClearAll:Ke,onAddItems:lt})]})}),WE=M.Ay.div.withConfig({displayName:"styles__StyledHome",componentId:"sc-107t2rm-0"})(["height:100%;width:100%;display:flex;flex-direction:column;.sticky-container{padding:24px 32px 0 32px;flex:0 0 130px;display:flex;flex-direction:column;.search-bar{height:42px;flex:0 0 42px;}.slide-nav{margin:16px 0;}}.resource-container{flex:1;width:100%;position:relative;overflow:hidden;.resource-scroll-container{width:100%;height:100%;overflow-x:hidden;overflow-y:overlay;scrollbar-width:none;&.show-footer{height:calc(100% - 68px);}.empty-template-search-container{height:100%;}.container{width:100%;min-height:100%;display:flex;flex-direction:column;padding:16px 32px 20px 32px;&.fill-height{height:100%;}}.open-modal-cards-wrap{padding:0 0 16px 0;.card-item{max-width:256px;padding-bottom:24px;border-radius:12px;svg{width:110px !important;height:110px !important;}&.user-widget{margin-right:20px;}}}.me-com-entry{display:flex;flex-direction:row;align-items:center;height:60px;padding:6px;margin:8px 6px;border-radius:8px;cursor:pointer;.left{background:#f6f3ff;width:64px;height:48px;border-radius:6px;display:flex;align-items:center;justify-content:center;flex:0 0 64px;}.right{flex:1;display:flex;flex-direction:column;margin-left:12px;span{font-size:12px;font-family:PingFang SC;&:first-child{color:",";}&:last-child{color:",";}}}&.dark{background:#372c5c;}&:hover{background:",";}}.divider{width:100%;flex:0 0 1px;height:1px;background:",";margin:16px 0;}.template-main{width:100%;height:100%;&.padding-top-16{padding-top:16px;}}}}"],e=>e.theme.color_text_L1,e=>e.theme.color_text_L3,e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_bg_border_01),HE=(0,l.memo)(e=>{const{cardList:t,onChangeCurrentResource:n,onPaidResource:a,onUpdateTemplateList:i}=e,c=(0,l.useRef)(null),d=(0,r.d4)(te.rk),p=(0,r.d4)(id.ri),h=(0,r.d4)(id.ur),{navIndex:m,resources:x}=h,[v,A]=(0,l.useState)(!0),[k,R]=(0,l.useState)(!1),F=(0,r.wA)(),[Z,G]=(0,l.useState)(p),ee=(0,l.useMemo)(()=>ENV.IS_ON_PREMISES?[{key:"1",label:"\u6536\u85CF"}]:[{key:"1",label:"\u5168\u90E8"},{key:"2",label:"\u6536\u85CF"},{key:"3",label:"\u5DF2\u8D2D"}],[]);(0,l.useEffect)(()=>{(async()=>{A(!0);const Fe=await(0,i0.YC)(Ll.t_,d),et=new Map;Fe.forEach(Ke=>et.set(Ke.cid,Ke)),F({type:"widget-modal:update:me",payload:{resources:Fe,resourcesMap:et}}),A(!1)})()},[F]);const ce=(0,l.useCallback)(async xe=>{G(xe)},[G]),se=(0,l.useCallback)(async xe=>{await F({type:"widget-modal:update:keyword",payload:xe}),R(!0)},[R,F]),he=(0,l.useCallback)(()=>{ce(""),F({type:"widget-modal:update:keyword",payload:""}),R(!1),F({type:"widget-modal:update:me",payload:{searchResult:null}})},[ce,R,F]),ve=(0,l.useCallback)(xe=>{F({type:"widget-modal:update:me",payload:{navIndex:xe}})},[F]),Te=(0,l.useMemo)(()=>m===1?x==null?void 0:x.filter(xe=>xe.is_star):m===2?x==null?void 0:x.filter(xe=>xe.is_purchased):x,[x,m]);return(0,o.jsxs)(WE,{children:[(0,o.jsxs)("div",{className:"sticky-container",children:[(0,o.jsx)(Cd.A,{value:Z,className:"search-bar",placeholder:I18N.widgetModal.search_bar_placeholder,onChange:ce,onSearch:se,canClear:!0,onClear:he}),(0,o.jsx)(Bc.eD,{activeIndex:m,onTabChange:ve,height:32,className:"slide-nav",children:ee.map((xe,Fe)=>{let{key:et,label:Ke}=xe;return(0,o.jsx)(Bc.nl,{label:Ke},et)})})]}),Z?(0,o.jsx)(zE,{navIndex:m,isSearching:k,onPaidResources:a}):(0,o.jsxs)("div",{className:"resource-container",children:[(0,o.jsx)(rd.o,{className:C()("resource-scroll-container",{"fill-height":(Te==null?void 0:Te.length)===0}),ref:c,children:(xe,Fe)=>(0,o.jsxs)("div",{className:C()("container",{"fill-height":(Te==null?void 0:Te.length)===0}),children:[m==0&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(DE.G,{cardList:t}),(0,o.jsx)("div",{className:"divider"})]}),(0,o.jsx)("div",{className:C()("template-main",{"padding-top-16":m===0}),children:v?(0,o.jsx)(sx,{renderCounts:24}):Te!=null&&Te.length?(0,o.jsx)(ix,{templateList:Te,onGotoDetail:n,onUpdateTemplateList:i}):(0,o.jsx)(K0.H,{className:C()({center:m==0}),type:"common",desc:I18N.LeftSidePanel.modals.not_found})})]})}),(0,o.jsx)(jl.yP,{type:"vertical",containerRef:c,isAutoHideBar:!0})]})]})}),GE=(0,l.memo)(e=>{const{isOrg:t,keyword:n,isSearching:a,checkedSet:i,searchList:c,onUpdateSearchList:d,onUpdateCheckedSet:p,onOpenPreviewModal:h,onAddItem:m}=e,x=(0,l.useRef)(null),[v,A]=(0,l.useState)(!0),k=(0,r.d4)(me.wA),{scene_tag:R}=(0,r.d4)(me.PL),F=(0,r.d4)(dl.wS),Z=(0,r.d4)(dl.lb);return(0,l.useEffect)(()=>{(async()=>{if(!(n!=null&&n.length))return;A(!0);const ee={category:Ll.t_,q:n,limit:36,scene_tag:R};k!=null&&k.cid&&(ee.org_cid=k==null?void 0:k.cid);const ce=await(0,Eo.F7)(new URLSearchParams(ee),""),se=dx(ce,F,Z);d(t?(se==null?void 0:se.orgCombos)||[]:(se==null?void 0:se.userCombos)||[]),A(!1)})()},[a,n,A,k,t]),v?(0,o.jsx)(Xc.S,{className:"margin-top-170",children:(0,o.jsx)("span",{children:I18N.Resources.searching.load})}):c!=null&&c.length?(0,o.jsxs)("div",{className:"template-main",children:[(0,o.jsx)(rd.o,{ref:x,className:C()("template-scroll-container",{"show-footer":(i==null?void 0:i.size)>0}),children:(G,ee)=>(0,o.jsx)(mg,{items:c,containerRect:G,isVisible:ee,checkedSet:i,onUpdateCheckedSet:p,onOpenPreviewModal:h,onAddItem:m})}),(0,o.jsx)(jl.yP,{type:"vertical",containerRef:x,isAutoHideBar:!0})]}):(0,o.jsx)(K0.H,{})}),px=e=>{const t=[];if(!e)return t;const{children:n,subFolder:a}=e;return n!=null&&n.length&&t.push(n),a!=null&&a.length&&a.forEach(i=>{t.push(px(i))}),t.flat(1/0)},ux=e=>e.map(t=>({...t,children:px(t)})),ZE=M.Ay.div.withConfig({displayName:"styles__StyledDetail",componentId:"sc-5qllct-0"})(["height:100%;width:100%;display:flex;flex-direction:column;position:relative;.platform-sub-filter{.filter-opener{button{.display-name{font-size:16px;font-weight:500;}}}}.title-text{font-size:16px;font-weight:500;}.sticky-container{padding:24px 32px 16px;}.template-main{flex:1;width:100%;position:relative;overflow:hidden;.template-scroll-container{width:100%;height:100%;overflow-x:hidden;overflow-y:overlay;scrollbar-width:none;padding:0 32px 20px 32px;&.show-footer{height:calc(100% - 68px);}.container{position:relative;&.has-paddding{padding-top:16px;}.box{width:100%;.title{display:block;font-size:16px;font-family:PingFang SC;font-weight:500;color:",";margin-bottom:20px;}&:not(:last-child){margin-bottom:20px;}}.marketTemplate-list .scrollable-marketTemplate-masonry{padding-top:16px;}}}}.empty-container{flex:1;width:100%;position:relative;overflow:hidden;display:flex;align-items:center;justify-content:center;flex-direction:column;.pure-svg-icon{width:88px;}span{display:block;&:nth-child(2){font-family:PingFang SC;font-weight:500;font-size:16px;color:",";margin-top:16px;}&:nth-child(3){font-family:PingFang SC;font-weight:400;font-size:14px;color:",";margin-top:8px;}}}"],e=>e.theme.color_text_L1,e=>e.theme.color_text_L1,e=>e.theme.color_text_L3),s5=(0,M.AH)(["opacity:0;pointer-events:none;"]),l5=(0,M.AH)(["opacity:1;pointer-events:auto;"]),Dre=M.Ay.li.withConfig({displayName:"styles__StyledComboItem",componentId:"sc-5qllct-1"})(["width:187px;display:flex;flex-direction:column;justify-content:center;align-items:center;cursor:pointer;position:relative;.img-wrapper{width:187px;height:187px;position:relative;display:flex;align-items:center;justify-content:center;padding:10px;background:",";border-radius:12px;border:1px solid ",";outline:1px solid transparent;overflow:hidden;img{max-width:100%;max-height:100%;pointer-events:none;}.operation-box{position:absolute;left:0;top:8px;width:100%;padding:0 8px;height:24px;display:flex;flex-direction:row;justify-content:space-between;align-items:center;.left{",";.check{.ant-checkbox .ant-checkbox-inner{width:14px;height:14px;}.ant-checkbox-wrapper:not(.ant-checkbox-wrapper-disabled):hover .ant-checkbox-inner{border-color:",";}.ant-checkbox-checked .ant-checkbox-inner,&.ant-checkbox-wrapper:not(.ant-checkbox-wrapper-disabled):hover .ant-checkbox-checked:not(.ant-checkbox-disabled) .ant-checkbox-inner{border-color:",";background:",";}.ant-checkbox .ant-checkbox-inner:after{top:45%;inset-inline-start:20%;}}}.right{display:flex;align-items:center;",";.scale-box{width:24px;height:24px;border-radius:6px;background:",";backdrop-filter:blur(4px);display:flex;align-items:center;justify-content:center;&:hover,&:active{background:",";}svg{path{fill:",";}}}}}.go-detail{position:absolute;bottom:8px;right:8px;display:flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:6px;overflow:hidden;background:",";backdrop-filter:blur(4px);",";&:hover,&:active{background:",";}}&.checked{border:1px solid ",";outline:1px solid ",";.operation-box{.left{",";}}}}.template-name{width:100%;padding:0 6px;margin-top:10px;font-size:14px;line-height:20px;text-align:left;color:",";white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}&:hover{.operation-box{.left,.right{",";}}.go-detail{",";}}"],e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_bg_border_01,s5,e=>e.theme.color_btn_primary_normal,e=>e.theme.color_btn_primary_normal,e=>e.theme.color_btn_primary_normal,s5,e=>e.theme.color_slider_hover,e=>e.theme.color_bg_mask,e=>e.theme.color_text_btn,e=>e.theme.color_slider_hover,s5,e=>e.theme.color_bg_mask,e=>e.theme.color_btn_primary_normal,e=>e.theme.color_btn_primary_normal,l5,e=>e.theme.color_text_L2,l5,l5),Rre=M.Ay.li.withConfig({displayName:"styles__StyledSampleDetailItem",componentId:"sc-5qllct-2"})(["display:flex;align-items:center;justify-content:center;width:187px;height:187px;margin-bottom:30px;background:",";border:1px solid ",";border-radius:12px;pointer-events:none;"],e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_bg_border_01),KE=(0,l.memo)(e=>{const{onBack:t}=e,n=(0,r.d4)(dl.wS),a=(0,r.d4)(dl.lb),i=(0,r.d4)(id.ur),{resources:c,level1:d,level2:p,marketTemplateList:h,resourcesMap:m}=i,x=(0,r.wA)(),v=(0,l.useRef)(null),[A,k]=(0,l.useState)(""),[R,F]=(0,l.useState)(!1),[Z,G]=(0,l.useState)(null),ee=(0,l.useMemo)(()=>d==="user-widget"?I18N.Popups.my_widgets:d==="org-widget"?I18N.Popups.org_widgets:"",[d]),ce=(0,l.useMemo)(()=>!(d!=null&&d.length)||(A==null?void 0:A.length)>0?[]:d==="user-widget"?n!=null&&n.length?n.map(Mt=>({value:Mt.cid,label:Mt.name})):[]:d==="org-widget"?a!=null&&a.length?a.map(Mt=>({value:Mt.cid,label:Mt.name})):[]:[],[a,n,d,A]),se=(0,l.useMemo)(()=>{const Mt=c.find(Et=>Et.cid===d);return d==="user-widget"?ux(n):d==="org-widget"?ux(a):Mt?[Mt]:[]},[d,n,a,c]),he=(0,l.useMemo)(()=>A!=null&&A.length?Z||[]:se.map(Mt=>Mt.children).flat(),[se,h,A,Z]),{checkedSet:ve,handleChangeChecked:Te,handleSelectAll:xe,handleClearAll:Fe,handleBySeparately:et,handleMemberClick:Ke,handleAddItem:Qe,handleAddItems:nt,handleOpenPreviewModal:Xe}=(0,Cf.m)({templateList:he,resourcesMap:m,currentResource:null,isFromSameResource:!0,isOrg:d==="org-widget"});(0,l.useEffect)(()=>{var Mt;const Et=((Mt=se[0])==null?void 0:Mt.cid)||"";x({type:"widget-modal:update:me",payload:{level2:Et}})},[se]);const lt=(0,l.useCallback)(Mt=>{const{value:Et,index:Co}=Mt;p!==Et&&(setTimeout(()=>{var Pn;if(!v.current)return;const ro=v==null||(Pn=v.current)==null?void 0:Pn.querySelector(".box span.title[data-key="+Et+"]");ro&&v.current.scrollTo(0,ro.offsetTop||0)},200),x({type:"widget-modal:update:me",payload:{level2:Et||""}}))},[p,x]),Ct=(0,l.useCallback)(Mt=>{var Et;const Co=Mt.target.scrollTop,Pn=v==null||(Et=v.current)==null?void 0:Et.querySelectorAll(".box");if(Pn!=null&&Pn.length)for(let ro=0;ro<(Pn==null?void 0:Pn.length);ro++){const Io=Pn[ro];if(Io&&Io.offsetTop<=Co&&Io.offsetTop+Io.offsetHeight>=Co){const mo=Io==null?void 0:Io.querySelector("span.title");if(mo){const{key:So}=mo==null?void 0:mo.dataset;x({type:"widget-modal:update:me",payload:{level2:So}})}break}}},[x]),St=(0,l.useCallback)(async Mt=>{k(Mt)},[k]),hn=(0,l.useCallback)(async Mt=>{k(Mt),F(!0),Fe()},[F,k,Fe]),Cn=(0,l.useCallback)(()=>{St(""),Fe(),G([]),F(!1)},[St,F,Fe,G]);return(0,o.jsxs)(ZE,{children:[(0,o.jsx)("div",{className:"sticky-container",children:(0,o.jsx)(Cd.A,{value:A,className:"search-bar",placeholder:I18N.widgetModal.search_bar_placeholder,onChange:St,onSearch:hn,onClear:Cn,canClear:!0})}),(0,o.jsx)(ox,{title:ee,optionList:ce,value:p,onChange:lt,onBack:t}),A!=null&&A.length?(0,o.jsx)(GE,{isOrg:d==="org-widget",keyword:A,isSearching:R,checkedSet:ve,searchList:Z,onUpdateSearchList:G,onUpdateCheckedSet:Te,onOpenPreviewModal:Xe,onAddItem:Qe}):(0,o.jsx)(o.Fragment,{children:(se==null?void 0:se.length)===0?(0,o.jsxs)("div",{className:"empty-container",children:[(0,o.jsx)(xt.C,{name:"left_panel/widgetModal/user_empty_icon",isColorPure:!0}),(0,o.jsx)("span",{children:I18N.LibraryContainer.no_widget_group}),(0,o.jsx)("span",{children:I18N.widgetModal.me.empty_text})]}):(0,o.jsx)("div",{className:"template-main",children:(0,o.jsx)(rd.o,{className:C()("template-scroll-container",{"show-footer":(ve==null?void 0:ve.size)>0}),ref:v,isUpdate:d,onScrollChange:Ct,children:(Mt,Et)=>(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("div",{className:"container has-paddding",children:se.map((Co,Pn)=>(0,o.jsxs)("div",{className:"box",children:[(0,o.jsx)("span",{className:"title","data-key":Co.cid,children:Co.name}),(0,o.jsx)(mg,{items:Co.children,containerRect:Mt,isVisible:Et,checkedSet:ve,onUpdateCheckedSet:Te,onOpenPreviewModal:Xe,onAddItem:Qe})]},Co.cid))}),(0,o.jsx)(jl.yP,{type:"vertical",containerRef:v,isAutoHideBar:!0})]})})})}),ve.size>0&&(0,o.jsx)(r0.W,{type:"widget",isOnlyShowCreates:!0,checkedSet:ve,onBuySeparately:et,onMemberClick:Ke,onSelectAll:xe,onClearAll:Fe,onAddItems:nt})]})});var YE=Object.defineProperty,XE=Object.defineProperties,QE=Object.getOwnPropertyDescriptors,fg=Object.getOwnPropertySymbols,hx=Object.prototype.hasOwnProperty,mx=Object.prototype.propertyIsEnumerable,fx=(e,t,n)=>t in e?YE(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,c5=(e,t)=>{for(var n in t||(t={}))hx.call(t,n)&&fx(e,n,t[n]);if(fg)for(var n of fg(t))mx.call(t,n)&&fx(e,n,t[n]);return e},JE=(e,t)=>XE(e,QE(t)),qE=(e,t)=>{var n={};for(var a in e)hx.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&fg)for(var a of fg(e))t.indexOf(a)<0&&mx.call(e,a)&&(n[a]=e[a]);return n},$E=(0,l.forwardRef)((e,t)=>{var n=e,{size:a,spin:i,style:c}=n,d=qE(n,["size","spin","style"]);const p=c5(c5({width:a||"var(--x-icon-size, 1em)",height:a||"var(--x-icon-size, 1em)",animation:i?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),c);return l.createElement("svg",JE(c5({ref:t,style:p},d),{width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),l.createElement("g",{filter:"url(#filter0_i_917_142)"},l.createElement("rect",{x:"15.9724",y:"10.438",width:"16",height:"17",rx:"2.5",transform:"rotate(15 15.9724 10.438)",fill:"#6CA6FF"})),l.createElement("g",{filter:"url(#filter1_i_917_142)"},l.createElement("rect",{x:"8.57275",y:"12.459",width:"18",height:"18",rx:"3",fill:"#A069FF"}),l.createElement("path",{d:"M17.5736 21.3018C19.0779 21.3018 20.2974 20.1058 20.2974 18.6304C20.2974 17.155 19.0779 15.959 17.5736 15.959C16.0692 15.959 14.8497 17.155 14.8497 18.6304C14.8497 20.1058 16.0692 21.3018 17.5736 21.3018Z",fill:"url(#paint0_linear_917_142)"}),l.createElement("path",{d:"M21.4187 26.959C22.1266 26.959 22.7169 26.3874 22.5423 25.7146C21.9776 23.5393 19.967 21.9304 17.5732 21.9304C15.1795 21.9304 13.1688 23.5393 12.6042 25.7146C12.4295 26.3874 13.0199 26.959 13.7278 26.959H21.4187Z",fill:"url(#paint1_linear_917_142)"})),l.createElement("defs",null,l.createElement("filter",{id:"filter0_i_917_142",x:"11.5725",y:"10.438",width:"20.3547",height:"21.062",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},l.createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),l.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),l.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),l.createElement("feOffset",{dx:"0.5",dy:"0.5"}),l.createElement("feGaussianBlur",{stdDeviation:"0.5"}),l.createElement("feComposite",{in2:"hardAlpha",operator:"arithmetic",k2:"-1",k3:"1"}),l.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.656413 0 0 0 0 0.791978 0 0 0 0 1 0 0 0 1 0"}),l.createElement("feBlend",{mode:"normal",in2:"shape",result:"effect1_innerShadow_917_142"})),l.createElement("filter",{id:"filter1_i_917_142",x:"8.57275",y:"12.459",width:"18.5",height:"18.5",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},l.createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),l.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),l.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),l.createElement("feOffset",{dx:"0.5",dy:"0.5"}),l.createElement("feGaussianBlur",{stdDeviation:"0.5"}),l.createElement("feComposite",{in2:"hardAlpha",operator:"arithmetic",k2:"-1",k3:"1"}),l.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.73976 0 0 0 0 0.583171 0 0 0 0 1 0 0 0 1 0"}),l.createElement("feBlend",{mode:"normal",in2:"shape",result:"effect1_innerShadow_917_142"})),l.createElement("linearGradient",{id:"paint0_linear_917_142",x1:"17.5732",y1:"16.959",x2:"17.5732",y2:"29.959",gradientUnits:"userSpaceOnUse"},l.createElement("stop",{offset:"0.318914",stopColor:"white"}),l.createElement("stop",{offset:"1",stopColor:"#E1CFFF"})),l.createElement("linearGradient",{id:"paint1_linear_917_142",x1:"17.5732",y1:"16.959",x2:"17.5732",y2:"29.959",gradientUnits:"userSpaceOnUse"},l.createElement("stop",{offset:"0.318914",stopColor:"white"}),l.createElement("stop",{offset:"1",stopColor:"#E1CFFF"}))))}),eI=Object.defineProperty,tI=Object.defineProperties,nI=Object.getOwnPropertyDescriptors,gg=Object.getOwnPropertySymbols,gx=Object.prototype.hasOwnProperty,yx=Object.prototype.propertyIsEnumerable,xx=(e,t,n)=>t in e?eI(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,d5=(e,t)=>{for(var n in t||(t={}))gx.call(t,n)&&xx(e,n,t[n]);if(gg)for(var n of gg(t))yx.call(t,n)&&xx(e,n,t[n]);return e},oI=(e,t)=>tI(e,nI(t)),aI=(e,t)=>{var n={};for(var a in e)gx.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&gg)for(var a of gg(e))t.indexOf(a)<0&&yx.call(e,a)&&(n[a]=e[a]);return n},rI=(0,l.forwardRef)((e,t)=>{var n=e,{size:a,spin:i,style:c}=n,d=aI(n,["size","spin","style"]);const p=d5(d5({width:a||"var(--x-icon-size, 1em)",height:a||"var(--x-icon-size, 1em)",animation:i?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),c);return l.createElement("svg",oI(d5({ref:t,style:p},d),{width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),l.createElement("path",{d:"M11.2427 24.7764C11.2623 24.7758 11.6783 24.7662 12.2701 24.874C11.4919 26.0789 10.9088 27.6449 10.6988 29.6807C10.6683 29.9761 10.7243 30.2551 10.8443 30.499H7.00054C6.38065 30.499 5.86696 29.9913 5.94878 29.377C6.58262 24.6379 11.2264 24.7759 11.2427 24.7764ZM28.7574 24.7754C28.7711 24.775 33.4171 24.6359 34.0513 29.376C34.1335 29.9906 33.6196 30.498 32.9996 30.498H29.1558C29.2756 30.2543 29.3317 29.9758 29.3013 29.6807C29.0913 27.6452 28.5081 26.0788 27.73 24.874C28.3283 24.765 28.7462 24.7751 28.7574 24.7754ZM11.2447 17.9873C12.8494 17.9876 14.1509 19.2888 14.1509 20.8936C14.1507 22.4981 12.8493 23.7986 11.2447 23.7988C9.63996 23.7987 8.33868 22.4982 8.33843 20.8936C8.33843 19.2887 9.6398 17.9874 11.2447 17.9873ZM28.7593 17.9873C30.3641 17.9875 31.6646 19.2887 31.6646 20.8936C31.6644 22.4982 30.364 23.7986 28.7593 23.7988C27.1545 23.7988 25.8533 22.4983 25.8531 20.8936C25.8531 19.2886 27.1544 17.9873 28.7593 17.9873Z",fill:"url(#paint0_linear_917_148)"}),l.createElement("g",{filter:"url(#filter0_i_917_148)"},l.createElement("path",{d:"M20.0053 22.2676C20.0614 22.2659 26.6436 22.0874 27.6059 28.7832C27.7409 29.722 26.9538 30.5 26.0053 30.5H14.0044C13.0561 30.4999 12.2689 29.7219 12.4038 28.7832C13.3703 22.0587 20.0053 22.2676 20.0053 22.2676ZM19.9966 12.5C22.3053 12.5 24.1772 14.3719 24.1772 16.6807C24.1771 18.9893 22.3052 20.8604 19.9966 20.8604C17.6881 20.8602 15.817 18.9892 15.8169 16.6807C15.8169 14.372 17.688 12.5002 19.9966 12.5Z",fill:"url(#paint1_linear_917_148)"})),l.createElement("defs",null,l.createElement("filter",{id:"filter0_i_917_148",x:"12.3887",y:"12.5",width:"15.7324",height:"18.5",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},l.createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),l.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),l.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),l.createElement("feOffset",{dx:"0.5",dy:"0.5"}),l.createElement("feGaussianBlur",{stdDeviation:"0.5"}),l.createElement("feComposite",{in2:"hardAlpha",operator:"arithmetic",k2:"-1",k3:"1"}),l.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.501244 0 0 0 0 0.844591 0 0 0 0 1 0 0 0 1 0"}),l.createElement("feBlend",{mode:"normal",in2:"shape",result:"effect1_innerShadow_917_148"})),l.createElement("linearGradient",{id:"paint0_linear_917_148",x1:"12.9572",y1:"24.8696",x2:"120.097",y2:"-0.197076",gradientUnits:"userSpaceOnUse"},l.createElement("stop",{stopColor:"#74D3FE"}),l.createElement("stop",{offset:"1",stopColor:"#1998F1"})),l.createElement("linearGradient",{id:"paint1_linear_917_148",x1:"18.0635",y1:"12.5",x2:"18.4439",y2:"31.1386",gradientUnits:"userSpaceOnUse"},l.createElement("stop",{stopColor:"#5BCCFE"}),l.createElement("stop",{offset:"1",stopColor:"#1EA3FF"}))))}),iI=s(83413);const sI=(0,l.memo)(()=>{const e=(0,r.d4)(id.ur),t=(0,r.d4)(me.PL),n=(0,r.d4)(me.wA),a=t!=null&&t.is_org_project?n==null?void 0:n.cid:"",i=(0,r.wA)(),{level1:c,resources:d}=e,{isLoading:p,initComboSdkStore:h}=(0,iI.x)();(0,l.useEffect)(()=>{(async()=>{await h(!0)})()},[]);const m=(0,l.useMemo)(()=>{const F=[{label:I18N.Popups.my_widgets,value:"user-widget",icon:(0,o.jsx)($E,{size:40}),onClick:()=>x("user-widget")},{label:I18N.Popups.org_widgets,value:"org-widget",icon:(0,o.jsx)(rI,{size:40}),onClick:()=>x("org-widget")}];return a?F:F.filter(Z=>Z.value==="user-widget")},[a]),x=(0,l.useCallback)(function(F){F===void 0&&(F=""),i({type:"widget-modal:update:me",payload:{level1:F,level2:""}})},[i]),v=(0,l.useCallback)(()=>{i({type:"widget-modal:update:me",payload:{level1:"",level2:""}})},[]),A=(0,l.useCallback)(F=>{i({type:"widget-modal:update:state",payload:{currentResource:F||null}})},[]),k=(0,l.useCallback)(F=>{if(!F)return;let Z=[];const G=new Map;d.forEach(ee=>{if(ee.cid===F){const ce={...ee,is_purchased:!0};Z.push(ce),G.set(ee.cid,ce)}else Z.push(ee),G.set(ee.cid,ee)}),i({type:"widget-modal:update:me",payload:{resources:Z,resourcesMap:G}}),i({type:"entry:resources:update:find:data",payload:{cid:F,category:Ll.t_}})},[d,i]),R=(0,l.useCallback)(F=>{const Z=d.map(ee=>ee.cid===(F==null?void 0:F.cid)?F:ee),G=new Map;Z.forEach(ee=>G.set(ee.cid,ee)),i({type:"widget-modal:update:me",payload:{resources:Z,resourcesMap:G}})},[d,i]);return p?(0,o.jsx)(Xc.S,{className:"fill-height"}):c!=null&&c.length?(0,o.jsx)(KE,{onBack:v}):(0,o.jsx)(HE,{cardList:m,onChangeCurrentResource:A,onPaidResource:k,onUpdateTemplateList:R})}),lI=M.Ay.div.withConfig({displayName:"styles__StyledHistory",componentId:"sc-1157i95-0"})(["height:100%;width:100%;display:flex;flex-direction:column;.history-header{padding:24px 32px 16px;height:auto;border:none;.search-bar{height:42px;padding:4px 20px 4px 12px;border-radius:8px;.clear-icon{margin-right:0;}}}.history-loading{margin-top:170px;}.result{background:none;color:",";padding-left:32px;font-size:14px;}.recent-panel-content{margin-top:0;.combos-container{padding:16px 32px 20px 32px;width:100% !important;display:grid;grid-template-columns:repeat(auto-fill,minmax(187px,1fr));gap:20px;.template-item,.combo-item{margin:0;justify-content:flex-start;.img-wrapper{width:100%;height:fit-content;aspect-ratio:1 / 1;border-radius:12px;}.combo-name,.template-name{width:100%;padding:0 6px;margin-top:10px;font-family:PingFang SC;font-size:14px;color:",";text-align:left;}}.sample{width:100%;height:fit-content;aspect-ratio:1 / 1;border-radius:12px;}}.empty-template-search-container{padding-top:170px;.center{.pure-svg-icon{width:88px;height:88px;}}}}"],e=>e.theme.color_text_L3,e=>e.theme.color_text_L2),cI=(0,l.memo)(()=>{const e=(0,r.d4)(id.ri),t=(0,r.wA)(),n=(0,l.useCallback)(a=>{t({type:"widget-modal:update:keyword",payload:a})},[t]);return(0,o.jsx)(lI,{children:(0,o.jsx)(D8.O,{from:"widget-modal",keyword:e,onUpdateKeyword:n})})});var vx=s(18575),dI=s(65415);const pI=M.Ay.div.withConfig({displayName:"styles__StyledDetail",componentId:"sc-1sr38ez-0"})(["height:100%;width:100%;display:flex;flex-direction:column;header{width:100%;height:32px;flex:0 0 32px;display:flex;align-items:center;padding:0 32px 0 24px;margin:16px 0;justify-content:space-between;.header-left{display:flex;align-items:center;}.arrow-left{margin-right:6px;flex:0 0 32px;cursor:pointer;border-radius:4px;transition:background-color 0.2s ease-in-out;path{fill:",";}&:hover,&:active{background:",";}}.title{font-family:PingFang SC;font-size:16px;font-weight:500;color:",";margin-right:6px;}.divider{width:1px;height:14px;margin:4px 12px 0 16px;background:",";}.action-item{height:32px;display:flex;align-items:center;color:",";cursor:pointer;.actionIcon{width:16px;height:16px;color:",";margin-right:4px;}.actionValue{font-family:PingFang SC;font-size:12px;}&.like{margin-right:8px;}&.star{.actionIcon{g{path{fill:",";}}}}&:not(.is-active):hover{color:",";.actionIcon{color:",";}&.star{.actionIcon{g{path{fill:",";}}}}}&.is-active{color:",";.actionIcon{color:",";}&.star{.actionIcon{g{path{fill:",";}}}}}}.off-shelve{display:block;padding:4px 6px;font-size:14px;font-family:PingFang SC;color:",";border-radius:6px;background:",";margin-left:12px;}.search-bar.detail-search-bar{width:320px;height:32px;.search-bar{margin-left:0;}}}.search-no-results{margin-top:170px;img{margin-top:0;}.tips-link{margin:8px;}}.template-list.template-list-loading-container{gap:20px;padding:16px 32px;grid-template-columns:repeat(auto-fill,minmax(187px,1fr));.template-box{.template-cover{width:100% !important;height:auto !important;aspect-ratio:1 / 1;border-radius:12px;}.template-info{margin-top:10px;}}}.marketTemplate-list{flex:1;width:100%;position:relative;overflow:hidden;.template-scroll-container{width:100%;height:100%;overflow-x:hidden;overflow-y:overlay;scrollbar-width:none;padding:16px 32px 20px 32px;&.show-footer{height:calc(100% - 68px);}.market-template-masonry-list-container{width:100%;&.combo_group{padding:0;}.market-template-masonry-column.combo_group{grid-template-columns:repeat(auto-fill,minmax(187px,1fr));gap:20px;.template-item{margin-bottom:0;.img-wrapper{width:100%;height:auto;aspect-ratio:1 / 1;border-radius:12px;}.template-name{width:100%;padding:0 6px;margin-top:10px;font-family:PingFang SC;font-size:14px;color:",";text-align:left;}}}}}}"],e=>e.theme.color_text_L1,e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_text_L1,e=>e.theme.color_bg_border_02,e=>e.theme.color_text_L3,e=>e.theme.color_text_L3,e=>e.theme.color_text_L3,e=>e.theme.color_text_L2,e=>e.theme.color_text_L2,e=>e.theme.color_text_L2,e=>e.theme.color_btn_primary_normal,e=>e.theme.color_btn_primary_normal,e=>e.theme.color_btn_primary_normal,e=>e.theme.color_text_L2,e=>e.theme.color_bg_card,e=>e.theme.color_text_L2),uI=(0,l.memo)(e=>{const{currentResource:t,onUpdateCurrentResources:n,onBack:a}=e,i=(0,r.d4)(dl.AC),c=(0,r.d4)(dl.fK),{cid:d,title:p,liked_count:h,star_count:m,is_liked:x,is_star:v,is_purchased:A,state:k}=t,R=(0,l.useRef)(null),F=new tu(h).getDisplayStr(),Z=new tu(m).getDisplayStr(),G=i.get(d),ee=!G,[ce,se]=(0,l.useState)(!1),[he,ve]=(0,l.useState)(null),Te=he||G,xe=Te&&Te.length===0,Fe=(0,l.useMemo)(()=>k==="preview_only"&&!A,[k,A]),et=(0,r.wA)(),{checkedSet:Ke,handleChangeChecked:Qe,handleSelectAll:nt,handleClearAll:Xe,handleBySeparately:lt,handleMemberClick:Ct,handleAddItems:St,handleOpenPreviewModal:hn}=(0,Cf.m)({templateList:Te,resourcesMap:c,currentResource:t,isFromSameResource:!0,onUpdateCurrentResources:n}),{handleToggleLike:Cn,handleToggleStar:Mt,handlePaidResources:Et}=Sf({currentResource:t,onUpdateResource:n});(0,l.useEffect)(()=>{(async()=>{if(!((i==null?void 0:i.get(d))||await(0,i0.Yk)(d))){n(null);return}et({type:"entry:resources:init:marketTemplateItemList:map",payload:{resourcesCids:[d]}})})()},[i,d,et]);const Co=(0,l.useCallback)(Pn=>{if(ve(null),Xe(),Pn){se(!0);const ro=new RegExp((0,n5.$)(Pn),"i"),Io=G.filter(mo=>{var So;return ro.test((So=mo.hotAttr)==null?void 0:So.name)});setTimeout(()=>{ve(Io),se(!1)},1e3)}},[ve,se,G,Xe]);return(0,o.jsxs)(pI,{children:[(0,o.jsxs)("header",{children:[(0,o.jsxs)("div",{className:"header-left",children:[(0,o.jsx)(ug,{size:32,className:"arrow-left",onClick:a}),(0,o.jsx)("span",{className:"title",children:p}),t&&(0,o.jsx)(vx.W,{resources:t}),!Fe&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("div",{className:"divider"}),!ENV.IS_ON_PREMISES&&(0,o.jsxs)("div",{className:C()("action-item","like",{"is-active":x}),onClick:Cn,children:[(0,o.jsx)(xt.C,{className:"actionIcon",name:x?"left_panel/widgetModal/community_home/thumb_active":"left_panel/widgetModal/community_home/thumb"}),(0,o.jsx)("span",{className:"actionValue",children:F})]}),(0,o.jsxs)("div",{className:C()("action-item","star",{"is-active":v}),onClick:Mt,children:[(0,o.jsx)(xt.C,{className:"actionIcon",name:v?"left_panel/widgetModal/community_home/star_active":"left_panel/widgetModal/community_home/star"}),!ENV.IS_ON_PREMISES&&(0,o.jsx)("span",{className:"actionValue",children:Z})]})]}),Fe&&(0,o.jsx)("span",{className:"off-shelve",children:I18N.widgetModal.resources_off_shelve})]}),(0,o.jsx)(Cd.A,{className:"search-bar detail-search-bar",value:"",placeholder:I18N.widgetModal.search_bar_placeholder,onSearch:Co})]}),ee?(0,o.jsx)(tg.A,{itemWidth:187,itemHeight:187}):ce?(0,o.jsx)(Xc.S,{className:"margin-top-170",children:(0,o.jsx)("span",{children:I18N.Resources.searching.load})}):xe?(0,o.jsx)(dI.b,{isNeedLink:!he}):(0,o.jsx)("div",{className:C()("marketTemplate-list"),children:(0,o.jsx)(rd.o,{className:C()("template-scroll-container",{"show-footer":(Ke==null?void 0:Ke.size)>0}),ref:R,children:(Pn,ro)=>(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(H3.A,{containerRect:Pn,from:"widget-modal",currentResources:t,marketTemplateItemList:Te,isShowSign:!1,isFloatPreviewMkt:!1,onPaidTemplates:Et,canChecked:!0,checkedSet:Ke,onCheckedResource:Qe,onOpenPreviewModal:hn}),(0,o.jsx)(jl.yP,{type:"vertical",containerRef:R,isAutoHideBar:!0})]})})}),Ke.size>0&&(0,o.jsx)(r0.W,{type:"widget",resource:t,checkedSet:Ke,onBuySeparately:lt,onMemberClick:Ct,onSelectAll:nt,onClearAll:Xe,onAddItems:St})]})});var up=s(38739);const hI=(0,M.Ay)(ci.H).withConfig({displayName:"styles__StyledWidgetModal",componentId:"sc-1kp1gdn-0"})(["&.mb-widget-modals{max-width:1700px;min-width:1038px;max-height:820px;min-height:554px;width:90vw !important;height:90vh;.close-btn{top:11px;}& > header.header{display:none !important;}.content{padding:0;height:100%;}.modal-content{height:100%;display:flex;flex-direction:column;.header{padding:16px 32px 0;display:flex;align-items:center;justify-content:space-between;border-color:",";}.content-wrapper{display:flex;flex-direction:column;flex:1;overflow:hidden;.search-bar{height:42px;padding:4px 14px 4px 12px;border-radius:8px;&:hover{border-color:",";}&.isFocus{outline:2px solid ",";border-color:transparent;}.search-icon{margin-left:5px;}}.search-bar.detail-search-bar{width:320px;height:32px;.search-bar{margin-left:0;}}.slide-nav{.nav-item{border-radius:6px;padding:0 12px;span.nav-label{font-size:14px;line-height:16px;display:inline-block;height:auto;&::before{content:attr(title);display:block;height:0;overflow:hidden;visibility:hidden;font-weight:500;}}}}}}}"],e=>e.theme.color_bg_border_01,e=>e.theme.color_btn_primary_normal,e=>e.theme.color_btn_primary_normal),mI=(0,l.memo)(e=>{const{onClose:t,source:n}=e,[a,i]=(0,l.useState)(n||up.l.LargeFactory),c=(0,r.wA)(),d=(0,r.d4)(id.um),[p,h]=(0,l.useState)(""),m=(0,l.useMemo)(()=>[{label:I18N.LeftSidePanel.widgetPanel.largeFactoryModal,key:up.l.LargeFactory},{label:I18N.LeftSidePanel.widgetPanel.componentsModal,key:up.l.ComponentLibrary},{label:I18N.LeftSidePanel.widgetPanel.me,key:up.l.Me},{label:I18N.LeftSidePanel.widgetPanel.history,key:up.l.History}],[]),x=(0,l.useCallback)(F=>{c({type:"widget-modal:update:state",payload:{currentResource:F||null}})},[c]),v=(0,l.useCallback)(F=>{F!==a&&(i(F),x())},[a,x]),A=()=>{t(),c({type:"widget-modal:reset:state"})},k=(0,l.useCallback)(F=>{h(F),setTimeout(()=>{h("")},500)},[h]),R=(0,l.useCallback)(()=>{x(),a===up.l.LargeFactory&&k("back")},[a,x,k]);return(0,l.useEffect)(()=>{c({type:"entry:widget-modal:init"})},[c]),(0,o.jsxs)(hI,{isOpen:!0,onClose:A,footer:null,header:null,isUsePortal:!1,className:"mb-widget-modals",children:[(0,o.jsxs)("div",{className:"header",children:[(0,o.jsx)(eg,{items:m,activeKey:a,onTabClick:v}),(0,o.jsx)(wf,{})]}),(0,o.jsx)("div",{className:"content-wrapper",children:d?(0,o.jsx)(uI,{currentResource:d,onUpdateCurrentResources:x,onBack:R}):(0,o.jsxs)(o.Fragment,{children:[a===up.l.LargeFactory&&(0,o.jsx)(wE,{detailScrollTopType:p,onUpdateDetailScrollTopType:k}),a===up.l.ComponentLibrary&&(0,o.jsx)(jE,{}),a===up.l.Me&&(0,o.jsx)(sI,{}),a===up.l.History&&(0,o.jsx)(cI,{})]})})]})}),fI=M.Ay.div.withConfig({displayName:"styles__StyledImageList",componentId:"sc-1dd8nsk-0"})(["width:100%;height:100%;display:flex;flex-direction:column;padding:0 32px;padding-bottom:20px;.list-container{width:100%;display:flex;flex-direction:row;column-gap:20px;grid-template-rows:repeat(auto-fill,minmax(187px,1fr));.waterfall-column{width:100%;display:flex;flex-direction:column;row-gap:20px;}}.search-end{font-family:PingFang SC;font-size:14px;font-weight:400;color:",";margin-top:64px;text-align:center;display:block;}"],e=>e.theme.color_text_L3),gI=M.Ay.div.withConfig({displayName:"styles__StyledPictureItem",componentId:"sc-1dd8nsk-1"})(["cursor:pointer;position:relative;width:100%;height:","px;border-radius:8px;overflow:hidden;display:flex;align-items:center;justify-content:center;",";img{width:100%;}&::after{content:'';display:block;position:absolute;left:0;bottom:0;width:100%;height:48%;background:linear-gradient(180deg,rgba(0,0,0,0) 0%,rgba(0,0,0,0.25) 100%);opacity:0;}&:hover{.check{visibility:visible;}&::after{opacity:1;}}&.checked{border:1px solid ",";outline:1px solid ",";.check{visibility:visible;}&::after{opacity:1;}}"],e=>e.height,a5.GR,e=>e.theme.color_btn_primary_normal,e=>e.theme.color_btn_primary_normal),yI=M.Ay.div.withConfig({displayName:"styles__StyledStickerItem",componentId:"sc-1dd8nsk-2"})(["width:100%;height:100px;display:flex;align-items:center;justify-content:center;background:",";border-radius:8px;position:relative;cursor:pointer;img{height:48px;}",";&:hover{background:",";.check{visibility:visible;}}&.checked{border:1px solid ",";outline:1px solid ",";background:",";.check{visibility:visible;}}"],e=>e.theme.color_navigation_hover,a5.GR,e=>e.theme.color_btn_secondary_active,e=>e.theme.color_btn_primary_normal,e=>e.theme.color_btn_primary_normal,e=>e.theme.color_btn_secondary_active),xI=M.Ay.button.withConfig({displayName:"styles__StyledUpdateImageButton",componentId:"sc-1dd8nsk-3"})(["display:flex;align-items:center;justify-content:center;font-size:14px;font-family:PingFang SC;border-radius:6px;height:32px;background:",";color:",";border:1px solid ",";padding:0 10px;cursor:pointer;&.disabled{cursor:not-allowed;opacity:0.4;}&:not(.disabled):hover{background:",";}&:not(.disabled):active{background:",";}svg{margin-right:6px;}"],e=>e.theme.color_bg_white,e=>e.theme.color_text_L1,e=>e.theme.color_bg_border_02,e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_btn_secondary_active),vI=e=>/svg$/.test(e.image)?e.image:e.thumb||e.raw||e.image,bI=(0,l.memo)(e=>{const{type:t,asset:n,checkedSet:a,imageWidth:i,onUpdateChecked:c,setAsset:d,onAddItem:p,onGetAssetCid:h}=e;if(!n)return null;const{image:m,group_cid:x,width:v,height:A}=n,k=h(n),R=(0,l.useMemo)(()=>i*A/v,[i,v,A]),F=(0,l.useMemo)(()=>vI(n),[n]),Z={key:m,height:R},G=(0,l.useCallback)(ce=>{var se;if(a.size>=1){ce.stopPropagation(),ce.preventDefault(),c(k);return}if(MB.global.experienceLoginModalHelper("isSave"))return;(n==null||(se=n.asset_cid)==null?void 0:se.includes("findPicture_"))||t?p(k,t||"picture"):p(k)},[c,a,n,k,t]),ee=(0,l.useCallback)(ce=>{ce.stopPropagation();const se=a.has(k);c(k),!se&&d&&d(n)},[c,a,k,n,d]);return(0,o.jsxs)(gI,{className:C()("pic-item",{checked:a.has(k)}),"data-cid":k,"data-resources-cid":x,...Z,onClick:G,children:[(0,o.jsx)("img",{src:F}),(0,o.jsx)(o5.A,{className:"check "+((a==null?void 0:a.has(k))&&"is-show"),checked:a.has(k),onChange:ee,onClick:ce=>ce.stopPropagation()})]})}),p5=(0,l.memo)(e=>{const{sticker:t,checkedSet:n,onUpdateChecked:a,setAsset:i,onAddItem:c,onMemberClick:d,onGetAssetCid:p}=e;if(!t)return null;const{thumb:h,image:m,name:x}=t,v=(0,r.d4)(me.HW),A=(0,r.d4)(me.wA),k=p(t),R=(0,l.useMemo)(()=>{const{isMktMember:G}=(0,pi.s)(v,A);return G},[v,A]),F=(0,l.useCallback)(G=>{if(n.size>=1){G.stopPropagation(),G.preventDefault(),a(k);return}if(!MB.global.experienceLoginModalHelper("isSave")){if(!R){d&&d();return}c(k,"sticker")}},[R,a,n,t,k]),Z=(0,l.useCallback)(G=>{G.stopPropagation();const ee=n.has(k);a(k),!ee&&i&&i(t)},[a,n,i,t,k]);return(0,o.jsxs)(yI,{className:C()("sticker-item",{checked:n.has(k)}),onClick:F,children:[(0,o.jsx)("img",{src:h||m,alt:x}),(0,o.jsx)(o5.A,{className:"check",checked:n.has(k),onChange:Z,onClick:G=>G.stopPropagation()})]})});var wI=Object.defineProperty,CI=Object.defineProperties,SI=Object.getOwnPropertyDescriptors,yg=Object.getOwnPropertySymbols,bx=Object.prototype.hasOwnProperty,wx=Object.prototype.propertyIsEnumerable,Cx=(e,t,n)=>t in e?wI(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,u5=(e,t)=>{for(var n in t||(t={}))bx.call(t,n)&&Cx(e,n,t[n]);if(yg)for(var n of yg(t))wx.call(t,n)&&Cx(e,n,t[n]);return e},AI=(e,t)=>CI(e,SI(t)),kI=(e,t)=>{var n={};for(var a in e)bx.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&yg)for(var a of yg(e))t.indexOf(a)<0&&wx.call(e,a)&&(n[a]=e[a]);return n},MI=(0,l.forwardRef)((e,t)=>{var n=e,{size:a,spin:i,style:c}=n,d=kI(n,["size","spin","style"]);const p=u5(u5({width:a||"var(--x-icon-size, 1em)",height:a||"var(--x-icon-size, 1em)",animation:i?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),c);return l.createElement("svg",AI(u5({ref:t,style:p},d),{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),l.createElement("g",{clipPath:"url(#clip0_1372_207)"},l.createElement("path",{d:"M7.52692 4.11049L6.59763 3.57396C6.23891 3.36686 6.11601 2.90816 6.32311 2.54944C6.53022 2.19073 6.98891 2.06782 7.34763 2.27493L9.94571 3.77493C10.3044 3.98203 10.4273 4.44073 10.2202 4.79944L8.72023 7.39752C8.51312 7.75624 8.05443 7.87915 7.69571 7.67204C7.33699 7.46493 7.21408 7.00624 7.42119 6.64752L8.08097 5.50475C5.22861 6.57938 3.60216 9.66418 4.40764 12.6703C5.26529 15.8711 8.55531 17.7706 11.7561 16.9129C14.3084 16.229 16.0333 13.9986 16.1926 11.5C16.2883 10 17.7596 10.2378 17.6955 11.5C17.5347 14.6618 15.3672 17.4982 12.1443 18.3618C8.14334 19.4339 4.03082 17.0595 2.95875 13.0585C1.95411 9.30914 3.97603 5.46183 7.52692 4.11049Z",fill:"#9E5DFF"}),l.createElement("path",{d:"M14.6259 3.85706C14.9164 3.44699 15.5602 3.6195 15.6067 4.11985L15.7016 5.14205C15.7162 5.29936 15.7988 5.44244 15.9277 5.53374L16.7655 6.12706C17.1756 6.41748 17.0031 7.06133 16.5027 7.1078L15.4805 7.20273C15.3232 7.21734 15.1802 7.29995 15.0889 7.42888L14.4955 8.26666C14.2051 8.67674 13.5613 8.50422 13.5148 8.00387L13.4199 6.98167C13.4053 6.82436 13.3227 6.68129 13.1937 6.58998L12.3559 5.99666C11.9459 5.70624 12.1184 5.0624 12.6187 5.01593L13.6409 4.92099C13.7982 4.90638 13.9413 4.82378 14.0326 4.69485L14.6259 3.85706Z",fill:"#9E5DFF"}),l.createElement("path",{d:"M14.6259 3.85706C14.9164 3.44699 15.5602 3.6195 15.6067 4.11985L15.7016 5.14205C15.7162 5.29936 15.7988 5.44244 15.9277 5.53374L16.7655 6.12706C17.1756 6.41748 17.0031 7.06133 16.5027 7.1078L15.4805 7.20273C15.3232 7.21734 15.1802 7.29995 15.0889 7.42888L14.4955 8.26666C14.2051 8.67674 13.5613 8.50422 13.5148 8.00387L13.4199 6.98167C13.4053 6.82436 13.3227 6.68129 13.1937 6.58998L12.3559 5.99666C11.9459 5.70624 12.1184 5.0624 12.6187 5.01593L13.6409 4.92099C13.7982 4.90638 13.9413 4.82378 14.0326 4.69485L14.6259 3.85706Z",fill:"#A262FF"}),l.createElement("path",{d:"M12.4898 8.78231C12.4597 8.4588 12.0434 8.34725 11.8556 8.6124L11.3708 9.297C11.3118 9.38036 11.2192 9.43377 11.1175 9.44322L10.2822 9.5208C9.95871 9.55085 9.84716 9.96715 10.1123 10.1549L10.7969 10.6398C10.8803 10.6988 10.9337 10.7913 10.9431 10.893L11.0207 11.7283C11.0508 12.0518 11.4671 12.1634 11.6548 11.8982L12.1397 11.2136C12.1987 11.1303 12.2912 11.0769 12.3929 11.0674L13.2282 10.9898C13.5518 10.9598 13.6633 10.5435 13.3982 10.3557L12.7136 9.87087C12.6302 9.81184 12.5768 9.71933 12.5673 9.61761L12.4898 8.78231Z",fill:"#9E5DFF"}),l.createElement("path",{d:"M12.4898 8.78231C12.4597 8.4588 12.0434 8.34725 11.8556 8.6124L11.3708 9.297C11.3118 9.38036 11.2192 9.43377 11.1175 9.44322L10.2822 9.5208C9.95871 9.55085 9.84716 9.96715 10.1123 10.1549L10.7969 10.6398C10.8803 10.6988 10.9337 10.7913 10.9431 10.893L11.0207 11.7283C11.0508 12.0518 11.4671 12.1634 11.6548 11.8982L12.1397 11.2136C12.1987 11.1303 12.2912 11.0769 12.3929 11.0674L13.2282 10.9898C13.5518 10.9598 13.6633 10.5435 13.3982 10.3557L12.7136 9.87087C12.6302 9.81184 12.5768 9.71933 12.5673 9.61761L12.4898 8.78231Z",fill:"#A262FF"})),l.createElement("defs",null,l.createElement("clipPath",{id:"clip0_1372_207"},l.createElement("rect",{width:"20",height:"20",rx:"6",fill:"white"}))))});const EI=(0,l.memo)(()=>{const e=(0,r.wA)(),t=(0,l.useCallback)(()=>{e({type:"modal:update:state",payload:{imageModal:{isOpen:!1}}}),e({type:"image-modal:reset:state"}),e({type:"entry:autoFillPanel:toggle:show",payload:{canClose:!1,openFrom:Lt.G.WidgetPanel,defaultTab:1}})},[e]);return(0,o.jsxs)(II,{onClick:t,children:[(0,o.jsx)("img",{src:"/mb-proto2/images/modal/image_modal/auto_bg_star.png",className:"star"}),(0,o.jsxs)("div",{className:"center",children:[(0,o.jsx)("div",{className:"bg"}),(0,o.jsx)("img",{src:"/mb-proto2/images/modal/image_modal/auto_bg_img.jpg",className:"bg-image"}),(0,o.jsxs)("div",{className:"auto-fill-box",children:[(0,o.jsx)(MI,{size:20}),(0,o.jsx)("span",{children:I18N.imageModal.auto_fill_text})]})]})]})}),II=M.Ay.div.withConfig({displayName:"AutoImageItem__StyledAutoImageItem",componentId:"sc-1l24nvj-0"})(["width:100%;height:140px;border-radius:8px;background:linear-gradient(180deg,#E4CEFF -32.5%,#EBF5FF 100%);position:relative;display:flex;align-items:center;justify-content:center;cursor:pointer;.star{position:absolute;top:0;left:0;width:60px;height:36px;}.center{width:147px;height:86px;border-radius:4px;background-color:#ffffff;box-shadow:0px 0px 0.77px 0px #19191A0F,0px 0.77px 1.55px 0px #19191A0D;position:relative;background-image:linear-gradient(to right,#555557 50%,transparent 50%),linear-gradient(to right,#555557 50%,transparent 50%),linear-gradient(to bottom,#555557 50%,transparent 50%),linear-gradient(to bottom,#555557 50%,transparent 50%);background-size:10px 2px,10px 2px,2px 10px,2px 10px;background-position:0 0,0 100%,0 0,100% 0;background-repeat:repeat-x,repeat-x,repeat-y,repeat-y;border-radius:4px;.bg{position:absolute;top:0;left:0;width:100%;height:100%;background-image:linear-gradient(45deg,rgb(204,204,204) 25%,transparent 25%),linear-gradient(-45deg,rgb(204,204,204) 25%,transparent 25%),linear-gradient(45deg,transparent 75%,rgb(204,204,204) 75%),linear-gradient(-45deg,transparent 75%,rgb(204,204,204) 75%);background-size:16px 16px;background-position:0px 0px,0px 8px,8px -8px,-8px 0px;opacity:0.4;}.bg-image{position:absolute;top:13px;left:12px;width:102px;height:60px;border-radius:2px;transition:all 0.2s ease-in-out;}.auto-fill-box{position:absolute;width:78px;height:26px;top:6px;right:-14px;border-radius:6px;background:",";box-shadow:0px 2px 8px 0px #19191A1A,0px 0px 1px 0px #19191A0F;display:flex;align-items:center;padding:0 4px 0 6px;span{font-family:PingFang SC;font-weight:500;font-size:12px;line-height:18px;color:#A262FF;}}}&:hover{.center{.bg-image{left:0;top:0;width:147px;height:86px;border-radius:4px;}}}"],e=>e.theme.color_bg_white),Sx=40,_I=20,TI=300,xg=(0,l.memo)(e=>{const{type:t,isShowAutoFillImage:n=!1,images:a,checkedSet:i,tab:c=0,scrollContainerRef:d,onUpdateChecked:p,setAsset:h,onAddItem:m,onMemberClick:x,onGetAssetCid:v}=e,[A,k]=(0,l.useState)(0),[R,F]=(0,l.useState)(Sx),Z=(0,l.useRef)(null),G=(0,l.useRef)(!1),ee=(0,l.useMemo)(()=>A>=1400?8:A<1400&&A>1300?7:A<=1300&&A>1200?6:A<=1200&&A>1100?5:(A<=1100,4),[A]),ce=(A-32*2-20*(ee-1))/ee,se=(0,l.useMemo)(()=>a.slice(0,R),[a,R]),he=(0,l.useMemo)(()=>{const xe=Array(ee).fill([]).map(()=>[]),Fe=Array(ee).fill(0);return se.forEach((et,Ke)=>{const Qe=Fe.indexOf(Math.min(...Fe));xe[Qe].push(et),Fe[Qe]+=et.asset_cid.includes("findSticker_")?100:ce*et.height/et.width}),xe},[ce,ee,se]),ve=(0,l.useCallback)(()=>{if(!Z.current||G.current)return;const{scrollTop:xe,scrollHeight:Fe,clientHeight:et}=Z.current;Fe-xe-et<TI&&R<a.length&&(G.current=!0,setTimeout(()=>{F(Qe=>Math.min(Qe+_I,a.length)),G.current=!1},100))},[R,a.length]);(0,l.useEffect)(()=>{const xe=()=>{if(!Z.current)return;const et=Z.current.offsetWidth;k(et)};xe(),window.addEventListener("resize",xe);const Fe=d==null?void 0:d.current;return Fe&&Fe.addEventListener("scroll",ve),()=>{window.removeEventListener("resize",xe),Fe&&Fe.removeEventListener("scroll",ve)}},[d,ve]),(0,l.useEffect)(()=>{F(Sx),Z.current&&(Z.current.scrollTop=0)},[a,c]);const Te=xe=>ENV.IS_ON_PREMISES&&!ENV.NO_FEAT_FONT2503?!1:n&&xe===0;return a!=null&&a.length?(0,o.jsxs)(fI,{ref:Z,children:[(0,o.jsx)("div",{className:"list-container",children:he.map((xe,Fe)=>{var et;return(0,o.jsxs)("div",{className:"waterfall-column",children:[Te(Fe)&&(0,o.jsx)(EI,{}),xe.map(Ke=>{const Qe=v(Ke);return Ke.asset_cid.includes("findSticker_")?(0,o.jsx)(p5,{sticker:Ke,checkedSet:i,onUpdateChecked:p,setAsset:h,onAddItem:m,onMemberClick:x!=null?x:()=>{},onGetAssetCid:v},Qe):(0,o.jsx)(bI,{type:t,asset:Ke,checkedSet:i,imageWidth:ce,onUpdateChecked:p,setAsset:h,onAddItem:m,onGetAssetCid:v},Qe)})]},Fe+"-"+((et=xe[0])==null?void 0:et.asset_cid)+"-"+c+"-"+ce)})}),R>=a.length&&(a==null?void 0:a.length)>0&&(0,o.jsx)("span",{className:"search-end",children:I18N.widgetModal.search_end})]}):(0,o.jsx)(K0.H,{type:"image",desc:I18N.LeftSidePanel.modals.not_found})}),ym=e=>e.ui.leftLayout.imageModal.keyword,PI=e=>e.ui.leftLayout.imageModal.image,h5=(0,l.memo)(e=>{const{type:t,isSearching:n,isSearchLoading:a,images:i,checkedSet:c,scrollContainerRef:d,onUpdateChecked:p,setAsset:h,onAddItem:m,onSearch:x,onGetAssetCid:v}=e,A=(0,r.d4)(ym);return(0,l.useEffect)(()=>{A&&x(A)},[n,A,x]),a?(0,o.jsx)(Xc.S,{className:"margin-top-170"}):i!=null&&i.length?(0,o.jsx)(xg,{type:t,images:i,checkedSet:c,scrollContainerRef:d,onUpdateChecked:p,setAsset:h,onAddItem:m,onGetAssetCid:v}):(0,o.jsx)(K0.H,{})});var m5=s(88225),nu=s(33680),Af=s(92272);const kf=e=>{let{list:t,isOrg:n=!1,type:a}=e;const i=(0,r.wA)(),[c,d]=(0,l.useState)(new Set),[p,h]=(0,l.useState)(null),m=G=>G.cid||G.id||G.asset_cid,x=G=>{const ee=new Set(c);ee.has(G)?ee.delete(G):ee.add(G),d(ee)},v=(0,l.useCallback)(()=>{if(!t||t.length===0)return;const G=new Set(t.map(ee=>m(ee)));d(G)},[t,d]),A=(0,l.useCallback)(()=>{d(new Set)},[d]),k=()=>{const{checkoutPlace:G,payEntrance:ee}=(0,fd.FS)(Ll.b4),ce={mode:"mat",payEntrance:ee,checkoutArea:"proto",checkoutPlace:G,templateCid:p==null?void 0:p.id,templateName:p==null?void 0:p.name,templateCategory:Ll.b4,templateGroupName:p==null?void 0:p.group_cid};MB.global.popupHelper.chargeAsync(ce)},R=G=>{if(!G||(G==null?void 0:G.length)===0)return[];const ee=[];return G.forEach(ce=>{const se=t.find(xe=>m(xe)===ce);if(se){const xe=(0,Af.BL)(se);let Fe={};if(a==="user_asset"){var he;Fe={projectUpperType:a,projectUpperCid:se.group_cid,itemCid:(he=se.cid)!=null?he:se.asset_cid}}else if(a==="picture"||a==="sticker"){var ve;Fe={projectUpperType:"picture",projectUpperCid:(ve=se.cid)!=null?ve:se.asset_cid}}else{var Te;const et=se.asset_cid.includes("findPicture_")||se.asset_cid.includes("findSticker_"),Ke=et?"picture":"user_asset",Qe=et?se.asset_cid:se.group_cid,nt=et?"":(Te=se.cid)!=null?Te:se.asset_cid;Fe={projectUpperType:Ke,projectUpperCid:Qe,itemCid:nt}}ee.push({...xe,recent:{isRequestRecent:!n,...Fe,isTrack:!0}})}}),ee};return{checkedSet:c,handleChangeChecked:x,handleSelectAll:v,handleClearChecked:A,asset:p,setAsset:h,handleMemberClick:k,handleAddItem:function(G,ee){if(ee===void 0&&(ee="user_asset"),!G)return;const ce=t.find(se=>m(se)===G);ce&&(i({type:"entry:image-panel:create:image:by:click",payload:{asset:ce,isOrg:n,isTrack:!0,type:ee}}),i({type:"modal:update:state",payload:{imageModal:{isOpen:!1}}}),i({type:"image-modal:reset:state"}))},handleAddItems:()=>{if(!t||t.length===0)return;const G=Array.from(c),ee=R(G);i({type:"entry:resources:quick:create:template",payload:{data:ee}}),i({type:"modal:update:state",payload:{imageModal:{isOpen:!1}}}),i({type:"image-modal:reset:state"})},handleGetAssetCid:m}},LI=M.Ay.div.withConfig({displayName:"styles__StyledImage",componentId:"sc-1djzuaf-0"})(["height:100%;width:100%;display:flex;flex-direction:column;.nav-container{width:100%;height:32px;display:flex;flex-direction:row;align-items:center;flex:0 0 32px;margin:0 32px 16px 32px;}.resource-container{flex:1;width:100%;position:relative;overflow:hidden;.resource-scroll-container{width:100%;height:100%;overflow-x:hidden;overflow-y:overlay;scrollbar-width:none;padding-top:16px;}}"]),NI=(0,l.memo)(()=>{const e=(0,r.d4)(rt.ld),t=(0,r.d4)(rt.oE),[n,a]=(0,l.useState)(!0),[i,c]=(0,l.useState)(!0),[d,p]=(0,l.useState)(null),h=(0,r.d4)(ym),{tab:m}=(0,r.d4)(PI),x=(0,r.wA)(),v=(0,sl.k)()?0:1,A=(0,l.useRef)(null),[k,R]=(0,l.useState)(h),[F,Z]=(0,l.useState)(!1);(0,l.useEffect)(()=>{t?a(!1):(a(!0),(0,m5._)().then(hn=>a(!1)).catch(hn=>{console.error("download meta.json failed",hn),a(!1)}))},[t]);const G=(0,l.useMemo)(()=>e.map(hn=>{let{imgs:Cn,tab:Mt,name:Et}=hn;const Co=Cn.map(mo=>(0,nu.Kb)(Mt,mo)),[Pn,ro]=(0,nu.SU)(Co);return{imgs:(0,nu.kN)(Pn,ro),tab:Mt,name:Et[v]}}),[e,v]),ee=(0,l.useMemo)(()=>!e||e.length<1?[]:[{key:"all",label:I18N.LeftSidePanel.modals.tab.all}].concat(e.map(hn=>({key:hn.hot,label:hn.name[v]}))),[G,v]),ce=(0,l.useMemo)(()=>{if(!G||G.length<1)return[];const hn=m===0?G:[G[m-1]],Cn=[];return hn.map(Mt=>Mt.imgs).flat().forEach(Mt=>{Cn.findIndex(Co=>Co.thumb===Mt.thumb)===-1&&Cn.push(Mt)}),Cn},[G,m,ee]),{checkedSet:se,handleChangeChecked:he,setAsset:ve,handleClearChecked:Te,handleMemberClick:xe,handleAddItem:Fe,handleAddItems:et,handleGetAssetCid:Ke}=kf({list:d||ce,type:"picture"}),Qe=(0,l.useCallback)(()=>{var hn;A==null||(hn=A.current)==null||hn.scrollTo({top:0,behavior:"smooth"})},[]),nt=(0,l.useCallback)(hn=>{R(hn)},[R]),Xe=(0,l.useCallback)(async hn=>{x({type:"image-modal:update:keyword",payload:hn}),Z(!0)},[x,p,Qe]),lt=(0,l.useCallback)(async hn=>{c(!0);const Cn=await(0,xf.JR)({category:Ll.b4,keyword:hn,size:20});p(Cn||[]),Te(),Qe(),c(!1)},[c,p,Te,Qe]),Ct=(0,l.useCallback)(hn=>{m!==hn&&(x({type:"image-modal:update:image",payload:{tab:hn}}),Te(),Qe())},[m,x,Qe]),St=(0,l.useCallback)(()=>{nt(""),x({type:"image-modal:update:keyword",payload:""}),p(null),Ct(0),Te(),Qe(),Z(!1)},[nt,Ct,p,Qe,Z,x]);return t?!e||e.length<1?null:(0,o.jsxs)(LI,{children:[(0,o.jsx)("div",{className:"sticky-container",children:(0,o.jsx)(Cd.A,{value:k,className:"search-bar",placeholder:I18N.imageModal.search_bar_placeholder,onChange:nt,onSearch:Xe,onClear:St,canClear:!0})}),!(k!=null&&k.length)&&(0,o.jsx)("div",{className:"nav-container",children:(0,o.jsx)(Bc.eD,{activeIndex:m,onTabChange:Ct,height:32,className:"slide-nav",children:ee.map((hn,Cn)=>{let{key:Mt,label:Et}=hn;return(0,o.jsx)(Bc.nl,{label:Et},Mt)})})}),(0,o.jsxs)("div",{className:"resource-container",children:[(0,o.jsx)("div",{className:"resource-scroll-container",ref:A,children:(0,o.jsx)(rd.A,{className:C()("resource-scrollable-list"),children:hn=>(0,o.jsx)(o.Fragment,{children:k?(0,o.jsx)(h5,{isSearching:F,isSearchLoading:i,images:d||[],checkedSet:se,scrollContainerRef:A,onUpdateChecked:he,setAsset:ve,onAddItem:Fe,onSearch:lt,onGetAssetCid:Ke}):(0,o.jsx)(xg,{isShowAutoFillImage:!0,images:ce,checkedSet:se,scrollContainerRef:A,onUpdateChecked:he,setAsset:ve,onAddItem:Fe,onGetAssetCid:Ke})})})}),(0,o.jsx)(jl.yP,{type:"vertical",containerRef:A,isAutoHideBar:!0})]}),se.size>0&&(0,o.jsx)(r0.W,{type:"image",isOnlyShowCreates:!0,checkedSet:se,onClearAll:Te,onMemberClick:xe,onAddItems:et})]}):(0,o.jsx)(Xc.S,{className:"margin-top-170"})}),jI=M.Ay.div.withConfig({displayName:"styles__StyledHome",componentId:"sc-bte4oe-0"})(["width:100%;flex:1;position:relative;overflow:hidden;.resource-scroll-container{width:100%;height:100%;overflow-x:hidden;overflow-y:overlay;scrollbar-width:none;&.show-footer{height:calc(100% - 68px);}.resource-scrollable-list{width:100%;display:grid;grid-template-columns:repeat(auto-fill,minmax(477px,1fr));gap:20px;padding:20px 32px;.sticker-group{width:100%;height:fit-content;display:flex;flex-direction:column;border-radius:12px;background:",";border:1px solid ",";padding:20px;overflow:hidden;&:hover,&.checked{box-shadow:",";}.sticker-group-content{display:grid;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(3,1fr);column-gap:12px;row-gap:16px;}.sticker-group-footer{display:flex;align-items:center;justify-content:space-between;margin-top:20px;.left{display:flex;align-items:center;.title{font-family:PingFang SC;font-weight:500;font-size:14px;color:",";margin-right:6px;}.mat-member{width:12px;height:12px;}}.right{display:flex;align-items:center;color:",";cursor:pointer;span{font-family:PingFang SC;font-weight:400;font-size:14px;color:",";}.arrow-right{width:6px;height:10px;margin-left:10px;}}}}}}"],e=>e.theme.color_bg_white,e=>e.theme.color_bg_border_01,e=>e.theme.shadow_m,e=>e.theme.color_text_L1,e=>e.theme.color_text_L3,e=>e.theme.color_text_L3),DI=(0,l.memo)(e=>{const{stickerList:t,scrollRef:n,setActiveWord:a}=e,[i,c]=(0,l.useState)(1),d=(0,l.useMemo)(()=>t.map(G=>G.list).flat(1/0),[t]),{checkedSet:p,handleChangeChecked:h,setAsset:m,handleClearChecked:x,handleMemberClick:v,handleAddItem:A,handleAddItems:k,handleGetAssetCid:R}=kf({list:d,type:"sticker"}),F=(0,l.useMemo)(()=>t.slice(0,i*8),[i,t]),Z=K3()(G=>{const ee=G.target,ce=ee.scrollTop,se=ee.scrollHeight,he=ee.getBoundingClientRect().height;if(ce+he+24>se){if(i*8>F.length)return;c(ve=>ve+1)}},200);return!F||F.length<1?null:(0,o.jsxs)(jI,{className:"resource-container",children:[(0,o.jsx)("div",{className:C()("resource-scroll-container",{"show-footer":(p==null?void 0:p.size)>0}),ref:n,onScroll:Z,children:(0,o.jsx)(rd.A,{className:"resource-scrollable-list",children:G=>(0,o.jsx)(o.Fragment,{children:F.map((ee,ce)=>{const se=ee.list.map(ve=>R(ve)),he=p.size>0&&se.some(ve=>p.has(ve));return(0,o.jsxs)("div",{className:C()("sticker-group",{checked:he}),children:[(0,o.jsx)("div",{className:"sticker-group-content",children:ee.list.slice(0,9).map((ve,Te)=>(0,o.jsx)(p5,{sticker:ve,checkedSet:p,onUpdateChecked:h,setAsset:m,onAddItem:A,onMemberClick:v,onGetAssetCid:R},Te))}),(0,o.jsxs)("div",{className:"sticker-group-footer",children:[(0,o.jsxs)("div",{className:"left",children:[(0,o.jsx)("span",{className:"title",children:ee.category}),(0,o.jsx)(Ti.A,{content:I18N.Resources.resourcesFooter.free_for_member,direction:"down",distance:8,enterHoverTime:100,children:(0,o.jsx)(xt.C,{name:"left_panel/icon_list/mat_member",className:"mat-member",isColorPure:!0})})]}),(0,o.jsxs)("div",{className:"right",onClick:()=>a(ee.category),children:[(0,o.jsx)("span",{children:I18N.Popups.iconCat.All}),(0,o.jsx)(xt.C,{className:"arrow-right",name:"design/arrow/right"})]})]})]},ce)})})})}),(0,o.jsx)(jl.yP,{type:"vertical",containerRef:n,isAutoHideBar:!0}),p.size>0&&(0,o.jsx)(r0.W,{type:"sticker",checkedSet:p,onClearAll:x,onMemberClick:v,onAddItems:k})]})}),RI=M.Ay.div.withConfig({displayName:"styles__StyledDetail",componentId:"sc-1agrhr9-0"})(["width:100%;flex:1;display:flex;flex-direction:column;position:relative;overflow:hidden;.back{width:100%;height:64px;display:flex;align-items:center;padding:0 32px;color:",";cursor:pointer;flex:0 0 64px;.arrow-left{margin-right:6px;flex:0 0 32px;cursor:pointer;border-radius:4px;transition:background-color 0.2s ease-in-out;path{fill:",";}&:hover,&:active{background:",";}}.template-title{font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:16px;}img{margin-left:6px;height:16px;}}.resource-container{width:100%;height:calc(100% - 64px);position:relative;overflow:hidden;.resource-scroll-container{width:100%;height:100%;overflow-x:hidden;overflow-y:overlay;scrollbar-width:none;&.show-footer{height:calc(100% - 68px);}.resource-scrollable-list{width:100%;display:grid;grid-template-columns:repeat(auto-fill,minmax(187px,1fr));gap:20px;padding:16px 32px 20px 32px;.sticker-item{height:187px;border-radius:10px;img{height:73px;}}}}}"],e=>e.theme.color_text_L1,e=>e.theme.color_text_L1,e=>e.theme.color_btn_secondary_hover),Ax=(0,l.memo)(e=>{const{isSearch:t,activeWord:n,list:a,onBack:i}=e,c=(0,l.useRef)(null),{checkedSet:d,setAsset:p,handleChangeChecked:h,handleClearChecked:m,handleSelectAll:x,handleMemberClick:v,handleAddItem:A,handleAddItems:k,handleGetAssetCid:R}=kf({list:a,type:"sticker"}),F=(Z,G)=>G.offsetWidth<G.scrollWidth;return(0,o.jsxs)(RI,{children:[n&&n.length>0&&i&&(0,o.jsxs)("div",{className:"back",onClick:i,children:[(0,o.jsx)(ug,{size:32,className:"arrow-left"}),(0,o.jsx)(Ti.A,{content:n,direction:"down",isShowTipsByTarget:F,children:(0,o.jsx)("div",{className:"template-title",children:n})}),(0,o.jsx)("img",{className:"sign",src:"/mb-proto2/images/nav/mt_vip.png"})]}),t&&(0,o.jsxs)("div",{className:"back",children:[(0,o.jsx)(Ti.A,{content:I18N.LeftSidePanel.modals.member_only,direction:"down",isShowTipsByTarget:F,children:(0,o.jsx)("div",{className:"template-title",children:I18N.LeftSidePanel.modals.member_only})}),(0,o.jsx)("img",{className:"sign",src:"/mb-proto2/images/nav/mt_vip.png"})]}),(0,o.jsxs)("div",{className:"resource-container",children:[(0,o.jsx)("div",{className:C()("resource-scroll-container",{"show-footer":(d==null?void 0:d.size)>0}),ref:c,children:(0,o.jsx)(rd.A,{className:"resource-scrollable-list",children:Z=>(0,o.jsx)(o.Fragment,{children:a.map((G,ee)=>(0,o.jsx)(p5,{sticker:G,checkedSet:d,onUpdateChecked:h,setAsset:p,onAddItem:A,onMemberClick:v,onGetAssetCid:R},ee))})})}),(0,o.jsx)(jl.yP,{type:"vertical",containerRef:c,isAutoHideBar:!0})]}),d.size>0&&(0,o.jsx)(r0.W,{type:"sticker",checkedSet:d,onClearAll:m,onMemberClick:v,onSelectAll:x,onAddItems:k})]})}),BI=(0,l.memo)(e=>{const t=(0,r.d4)(ym),{isSearching:n}=e,[a,i]=(0,l.useState)(!0),[c,d]=(0,l.useState)(null),p=(0,r.wA)();return(0,l.useEffect)(()=>{(async()=>{if(!t)return;i(!0),await p({type:"image-modal:update:keyword",payload:t});const m=await(0,Eo.PK)(t),x=m!=null&&m.length?m.map(v=>{var A;return(0,nu.nA)((A=v.categories)==null||(A=A[0])==null?void 0:A.name,{name:v.title,url:v.imageUrl,thumb_url:v.thumbUrl,res_id:v.res_id})}):[];d(x),i(!1)})()},[n,t,p]),a?(0,o.jsx)(Xc.S,{className:"margin-top-170"}):c!=null&&c.length?(0,o.jsx)(Ax,{isSearch:!0,list:c}):(0,o.jsx)(K0.H,{})});var kx=s(7279);const UI=M.Ay.div.withConfig({displayName:"styles__StyledSticker",componentId:"sc-11g9s88-0"})(["height:100%;width:100%;display:flex;flex-direction:column;"]),OI=(0,l.memo)(()=>{const e=(0,r.d4)(ym),t=(0,r.d4)(rt.p),n=(0,r.d4)(rt.DU),a=(0,r.wA)(),[i,c]=(0,l.useState)(!0),d=(0,l.useRef)(null),[p,h]=(0,l.useState)(null),[m,x]=(0,l.useState)(e),[v,A]=(0,l.useState)(!1);(0,l.useEffect)(()=>{n?c(!1):(c(!0),(0,kx.e)().then(ce=>c(!1)).catch(ce=>{console.error("download meta.json failed",ce),c(!1)}))},[n]);const k=(0,l.useMemo)(()=>!t||t.length<1?[]:t.map(ce=>({...ce,list:ce.list.map(se=>(0,nu.nA)(ce.category,se))})),[t]),R=(0,l.useCallback)(()=>{var ce;d==null||(ce=d.current)==null||ce.scrollTo({top:0,behavior:"smooth"})},[]),F=(0,l.useCallback)(ce=>{x(ce)},[x]),Z=(0,l.useCallback)(async ce=>{a({type:"image-modal:update:keyword",payload:ce}),A(!0),R()},[a,A,R]),G=(0,l.useCallback)(()=>{F(""),a({type:"image-modal:update:keyword",payload:""}),R()},[F,a]);if(!n)return(0,o.jsx)(Xc.S,{className:"fill-height"});if(!t||t.length<1)return null;if(p){var ee;const ce=((ee=k.find(se=>se.category===p))==null?void 0:ee.list)||[];return(0,o.jsx)(Ax,{list:ce,activeWord:p,onBack:()=>h(null)})}return(0,o.jsxs)(UI,{children:[(0,o.jsx)("div",{className:"sticky-container",children:(0,o.jsx)(Cd.A,{value:m,className:"search-bar",placeholder:I18N.imageModal.search_bar_placeholder,onChange:F,onSearch:Z,onClear:G,canClear:!0})}),m?(0,o.jsx)(BI,{isSearching:v}):(0,o.jsx)(DI,{stickerList:k,scrollRef:d,setActiveWord:h})]})}),FI=M.Ay.div.withConfig({displayName:"styles__StyledAssetsComp",componentId:"sc-9rlqyf-0"})(["height:100%;width:100%;display:flex;flex-direction:column;.resource-container{flex:1;width:100%;position:relative;overflow:hidden;.resource-scroll-container{width:100%;height:100%;overflow-x:hidden;overflow-y:overlay;scrollbar-width:none;.resource-scrollable-list{padding-top:16px;}.search-end{font-family:PingFang SC;font-size:14px;font-weight:400;color:",";margin-top:64px;text-align:center;display:block;}}}"],e=>e.theme.color_text_L3),Mx=(0,l.memo)(e=>{const{isOrg:t}=e,n=(0,r.d4)(dl.uT),a=(0,r.d4)(dl.Qz),i=(0,r.d4)(dl.x1),c=(0,r.d4)(dl.pI),d=(0,r.d4)(ym),p=(0,r.d4)(me.wA),h=(0,r.wA)(),m=(0,l.useRef)(null),[x,v]=(0,l.useState)(!1),[A,k]=(0,l.useState)(null),[R,F]=(0,l.useState)(d),[Z,G]=(0,l.useState)(!1),[ee,ce]=(0,l.useState)(!0),se=(0,l.useMemo)(()=>t?i:n,[t,n,i]),he=(0,l.useMemo)(()=>t?c:a,[t,a,c]),{checkedSet:ve,handleChangeChecked:Te,setAsset:xe,handleClearChecked:Fe,handleMemberClick:et,handleAddItem:Ke,handleAddItems:Qe,handleGetAssetCid:nt}=kf({list:A||he,isOrg:!!t,type:"user_asset"});(0,l.useEffect)(()=>{const Cn=async()=>{v(!0),await h({type:t?"entry:init:org:image":"entry:init:user:image"}),v(!1)};t?!i&&Cn():!n&&Cn()},[t,n,i,h]);const Xe=(0,l.useCallback)(()=>{var Cn;m==null||(Cn=m.current)==null||Cn.scrollTo({top:0,behavior:"smooth"})},[]),lt=(0,l.useCallback)(Cn=>{F(Cn)},[F]),Ct=(0,l.useCallback)(async Cn=>{await h({type:"image-modal:update:keyword",payload:Cn}),G(!0)},[h,G]),St=(0,l.useCallback)(async Cn=>{var Mt,Et;ce(!0);const Co={category:Ll.b4,q:Cn,limit:36};t&&p!=null&&p.cid&&(Co.org_cid=p==null?void 0:p.cid);const Pn=await(0,Eo.F7)(new URLSearchParams(Co),"");k((t?Pn==null||(Mt=Pn.data)==null?void 0:Mt.org_flat_assets:Pn==null||(Et=Pn.data)==null?void 0:Et.user_flat_assets)||[]),Fe(),Xe(),ce(!1)},[k,Fe,Xe,t,p]),hn=(0,l.useCallback)(()=>{lt(""),h({type:"image-modal:update:keyword",payload:""}),k(null),Xe()},[lt,k]);return se?(0,o.jsxs)(FI,{children:[(0,o.jsx)("div",{className:"sticky-container",children:(0,o.jsx)(Cd.A,{value:R,className:"search-bar",placeholder:I18N.imageModal.search_bar_placeholder,onChange:lt,onSearch:Ct,onClear:hn,canClear:!0})}),(0,o.jsxs)("div",{className:"resource-container",children:[(0,o.jsx)("div",{className:"resource-scroll-container",ref:m,children:(0,o.jsx)(rd.A,{className:C()("resource-scrollable-list"),children:Cn=>(0,o.jsx)(o.Fragment,{children:R?(0,o.jsx)(h5,{type:"user_asset",isSearching:Z,isSearchLoading:ee,images:A||[],checkedSet:ve,scrollContainerRef:m,onUpdateChecked:Te,setAsset:xe,onAddItem:Ke,onSearch:St,onGetAssetCid:nt}):(0,o.jsx)(xg,{type:"user_asset",images:he,checkedSet:ve,scrollContainerRef:m,onUpdateChecked:Te,setAsset:xe,onAddItem:Ke,onGetAssetCid:nt})})})}),(0,o.jsx)(jl.yP,{type:"vertical",containerRef:m,isAutoHideBar:!0})]}),ve.size>0&&(0,o.jsx)(r0.W,{type:"image",isOnlyShowCreates:!0,checkedSet:ve,onClearAll:Fe,onMemberClick:et,onAddItems:Qe})]}):(0,o.jsx)(Xc.S,{className:"fill-height"})}),VI=()=>{const e=(0,r.d4)(rt.oE),t=(0,r.d4)(rt.DU),n=(0,r.d4)(rt.ld),a=(0,r.d4)(rt.p),[i,c]=(0,l.useState)(!0),[d,p]=(0,l.useState)(null),[h,m]=(0,l.useState)(null),[x,v]=(0,l.useState)(!0),A=async()=>{const F=await(0,i0.Uy)();F&&p({assetList:F.user_assets,pictureList:F.pictures})};(0,l.useEffect)(()=>{(async()=>{c(!0),await A(),c(!1)})()},[]),(0,l.useEffect)(()=>{(async()=>{await Promise.all([e?null:(0,m5._)(),t?null:(0,kx.e)()])})()},[e,t]);const k=(0,l.useCallback)(F=>{v(!0);const Z=new RegExp((0,n5.$)(F),"i"),{assetList:G,pictureList:ee}=d,ce=[];n!=null&&n.length&&n.forEach(he=>{he.imgs.forEach(ve=>{let[Te,,,xe]=ve;for(const Fe of xe)Fe.includes(F)&&ee.includes("findPicture_"+Te)&&ce.push("findPicture_"+Te)})}),a!=null&&a.length&&a.forEach(he=>{var ve;he==null||(ve=he.list)==null||ve.forEach(Te=>{Te!=null&&Te.name.includes(F)&&ee.includes("findSticker_"+(Te==null?void 0:Te.url))&&ce.push("findSticker_"+(Te==null?void 0:Te.url))})});const se={assetList:G.filter(he=>Z.test(he.name)),pictureList:ce};setTimeout(()=>{v(!1),m(se)},1e3)},[d,n,a,v,m]),R=(0,l.useCallback)(()=>{m(null)},[m]);return{isLoading:i,recentData:d,isSearchLoading:x,searchRecentData:h,handleSearchData:k,handleClearSearchData:R}},zI=M.Ay.div.withConfig({displayName:"styles__StyledHistory",componentId:"sc-1xsb24v-0"})(["height:100%;width:100%;display:flex;flex-direction:column;.resource-container{flex:1;width:100%;position:relative;overflow:hidden;.resource-scroll-container{width:100%;height:100%;overflow-x:hidden;overflow-y:overlay;scrollbar-width:none;.resource-scrollable-list{padding-top:16px;}}}"]),WI=(0,l.memo)(()=>{const e=(0,r.d4)(ym),t=(0,r.wA)(),n=(0,l.useRef)(null),a=(0,r.d4)(rt.ld),i=(0,r.d4)(rt.p),[c,d]=(0,l.useState)(e),[p,h]=(0,l.useState)(!1),{isLoading:m,recentData:x,isSearchLoading:v,searchRecentData:A,handleSearchData:k,handleClearSearchData:R}=VI(),F=Xe=>{if(!Xe)return null;if(Xe.includes("findPicture_")){if(!(a!=null&&a.length))return null;for(const lt of a)for(const Ct of lt.imgs)if("findPicture_"+Ct[0]===Xe)return(0,nu.Kb)(lt.tab,Ct)}if(Xe.includes("findSticker_")){if(!(i!=null&&i.length))return null;for(const lt of i)for(const Ct of(lt==null?void 0:lt.list)||[])if("findSticker_"+(Ct==null?void 0:Ct.url)===Xe)return(0,nu.nA)(lt==null?void 0:lt.category,Ct)}return null},Z=(0,l.useMemo)(()=>{let Xe=x;if(e!=null&&e.length&&(Xe=A),!Xe)return[];const{assetList:lt,pictureList:Ct}=Xe,St=Ct.map(hn=>F(hn)).filter(hn=>!!hn);return[...lt,...St]},[e,A,x]),{checkedSet:G,handleChangeChecked:ee,setAsset:ce,handleClearChecked:se,handleMemberClick:he,handleAddItem:ve,handleAddItems:Te,handleGetAssetCid:xe}=kf({list:Z}),Fe=(0,l.useMemo)(()=>!Z.filter(Ct=>{const St=xe(Ct);return G.has(St)}).find(Ct=>{var St;return Ct==null||(St=Ct.asset_cid)==null?void 0:St.includes("findSticker_")}),[G,Z,xe]),et=(0,l.useCallback)(()=>{var Xe;n==null||(Xe=n.current)==null||Xe.scrollTo({top:0,behavior:"smooth"})},[]),Ke=(0,l.useCallback)(async Xe=>{await t({type:"image-modal:update:keyword",payload:Xe}),h(!0)},[t,h]),Qe=(0,l.useCallback)(async Xe=>{k(Xe),se(),et()},[k,se,et]),nt=(0,l.useCallback)(()=>{d(""),t({type:"image-modal:update:keyword",payload:""}),R(),et(),h(!1)},[d,R,h,t]);return m?(0,o.jsx)(Xc.S,{className:"fill-height"}):(0,o.jsxs)(zI,{children:[(0,o.jsx)("div",{className:"sticky-container",children:(0,o.jsx)(Cd.A,{value:c,className:"search-bar",placeholder:I18N.imageModal.search_bar_placeholder,onChange:d,onSearch:Ke,onClear:nt,canClear:!0})}),(0,o.jsxs)("div",{className:"resource-container",children:[(0,o.jsx)("div",{className:"resource-scroll-container",ref:n,children:(0,o.jsx)(rd.A,{className:C()("resource-scrollable-list"),children:Xe=>(0,o.jsx)(o.Fragment,{children:c?(0,o.jsx)(h5,{isSearching:p,isSearchLoading:v,images:Z,checkedSet:G,scrollContainerRef:n,onUpdateChecked:ee,setAsset:ce,onAddItem:ve,onSearch:Qe,onGetAssetCid:xe}):(0,o.jsx)(xg,{images:Z,checkedSet:G,scrollContainerRef:n,onUpdateChecked:ee,setAsset:ce,onAddItem:ve,onGetAssetCid:xe})})})}),(0,o.jsx)(jl.yP,{type:"vertical",containerRef:n,isAutoHideBar:!0})]}),G.size>0&&(0,o.jsx)(r0.W,{type:"image",isOnlyShowCreates:Fe,checkedSet:G,onClearAll:se,onMemberClick:he,onAddItems:Te})]})});var HI=Object.defineProperty,GI=Object.defineProperties,ZI=Object.getOwnPropertyDescriptors,vg=Object.getOwnPropertySymbols,Ex=Object.prototype.hasOwnProperty,Ix=Object.prototype.propertyIsEnumerable,_x=(e,t,n)=>t in e?HI(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,f5=(e,t)=>{for(var n in t||(t={}))Ex.call(t,n)&&_x(e,n,t[n]);if(vg)for(var n of vg(t))Ix.call(t,n)&&_x(e,n,t[n]);return e},KI=(e,t)=>GI(e,ZI(t)),YI=(e,t)=>{var n={};for(var a in e)Ex.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&vg)for(var a of vg(e))t.indexOf(a)<0&&Ix.call(e,a)&&(n[a]=e[a]);return n},XI=(0,l.forwardRef)((e,t)=>{var n=e,{size:a,spin:i,style:c}=n,d=YI(n,["size","spin","style"]);const p=f5(f5({width:a||"var(--x-icon-size, 1em)",height:a||"var(--x-icon-size, 1em)",animation:i?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),c);return l.createElement("svg",KI(f5({ref:t,style:p},d),{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),l.createElement("path",{d:"M14.6673 8.00016C14.6673 7.63196 14.3689 7.3335 14.0007 7.3335C13.6325 7.3335 13.334 7.63196 13.334 8.00016H14.6673ZM8.00065 2.66683C8.36885 2.66683 8.66732 2.36835 8.66732 2.00016C8.66732 1.63197 8.36885 1.3335 8.00065 1.3335V2.66683ZM13.0007 13.3335H3.00065V14.6668H13.0007V13.3335ZM2.66732 13.0002V3.00016H1.33398V13.0002H2.66732ZM13.334 8.00016V13.0002H14.6673V8.00016H13.334ZM3.00065 2.66683H8.00065V1.3335H3.00065V2.66683ZM3.00065 13.3335C2.81656 13.3335 2.66732 13.1843 2.66732 13.0002H1.33398C1.33398 13.9206 2.08017 14.6668 3.00065 14.6668V13.3335ZM13.0007 14.6668C13.9211 14.6668 14.6673 13.9206 14.6673 13.0002H13.334C13.334 13.1843 13.1848 13.3335 13.0007 13.3335V14.6668ZM2.66732 3.00016C2.66732 2.81607 2.81655 2.66683 3.00065 2.66683V1.3335C2.08018 1.3335 1.33398 2.07969 1.33398 3.00016H2.66732Z",fill:"#19191A"}),l.createElement("path",{d:"M2 11.6667L5.56437 8.39936C5.81297 8.17146 6.19263 8.16512 6.4487 8.38462L10.6667 12",stroke:"#19191A",strokeWidth:"1.33333",strokeLinecap:"round",strokeLinejoin:"round"}),l.createElement("path",{d:"M9.33398 10.3333L10.9252 8.74212C11.1597 8.50755 11.5311 8.48115 11.7966 8.68022L14.0007 10.3333",stroke:"#19191A",strokeWidth:"1.33333",strokeLinecap:"round",strokeLinejoin:"round"}),l.createElement("path",{d:"M12.334 6V2",stroke:"#19191A",strokeWidth:"1.33333",strokeLinecap:"round",strokeLinejoin:"round"}),l.createElement("path",{d:"M10.666 3.66667L12.3327 2L13.9993 3.66667",stroke:"#19191A",strokeWidth:"1.33333",strokeLinecap:"round",strokeLinejoin:"round"}))});const QI=(0,l.memo)(e=>{const{isOrg:t}=e,n=(0,r.d4)(me.qv),a=(0,r.wA)(),i=(0,l.useMemo)(()=>t&&!n,[t,n]),c=(0,l.useMemo)(()=>!t||n?"":I18N.pComment.no_permission_contact_administrator,[t,n]),d=(0,l.useCallback)(p=>{i||a({type:"entry:check:asset:auto:to:user:org:group",payload:{isOrg:t}})},[i,t,a]);return(0,o.jsx)(Ti.A,{maxWidth:"236px",content:c,direction:"down",children:(0,o.jsxs)(xI,{className:C()("box-item",{disabled:i}),onClick:d,children:[(0,o.jsx)(XI,{size:16}),(0,o.jsx)("p",{children:I18N.LibraryContainer.add_image})]})})});var Qc=s(29611);const JI=(0,M.Ay)(ci.H).withConfig({displayName:"styles__StyledImageModal",componentId:"sc-16bi9qt-0"})(["&.mb-image-modals{max-width:1700px;min-width:1038px;max-height:820px;min-height:554px;width:90vw !important;height:90vh;.close-btn{top:11px;}& > header.header{display:none !important;}.content{padding:0;height:100%;}.modal-content{height:100%;display:flex;flex-direction:column;.header{padding:16px 32px 0;display:flex;align-items:center;justify-content:space-between;border-color:",";.right-button{display:flex;align-items:center;column-gap:16px;margin-top:-14px;.vip-button{margin-top:0;}}}.content-wrapper{display:flex;flex-direction:column;flex:1;overflow:hidden;.sticky-container{padding:24px 32px 16px 32px;flex:0 0 82px;.search-bar{height:42px;padding:4px 14px 4px 12px;border-radius:8px;&:hover{border-color:",";}&.isFocus{outline:2px solid ",";border-color:transparent;}.search-icon{margin-left:5px;}}}.slide-nav{.nav-item{border-radius:6px;padding:0 12px;span.nav-label{font-size:14px;line-height:16px;display:inline-block;height:auto;&::before{content:attr(title);display:block;height:0;overflow:hidden;visibility:hidden;font-weight:500;}}}}}}}"],e=>e.theme.color_bg_border_01,e=>e.theme.color_btn_primary_normal,e=>e.theme.color_btn_primary_normal),qI=(0,l.memo)(e=>{const{onClose:t,source:n}=e,[a,i]=(0,l.useState)(n||Qc.S.Image),c=(0,r.d4)(me.PL),d=(0,r.d4)(me.wA),p=c!=null&&c.is_org_project?d==null?void 0:d.cid:"",h=(0,r.wA)(),m=(0,l.useMemo)(()=>{let v=[{label:I18N.LeftSidePanel.image,key:Qc.S.Image},{label:I18N.LeftSidePanel.image_sticker,key:Qc.S.Sticker},{label:I18N.ContextMenu.my_assets,key:Qc.S.User},{label:I18N.ContextMenu.org_assets,key:Qc.S.Org},{label:I18N.LeftSidePanel.widgetPanel.history,key:Qc.S.History}];return ENV.IS_ON_PREMISES&&(v=v.filter(A=>A.key!==Qc.S.Sticker)),p?v:v.filter(A=>A.key!==Qc.S.Org)},[p]),x=()=>{t(),h({type:"image-modal:reset:state"})};return(0,o.jsxs)(JI,{isOpen:!0,onClose:x,footer:null,header:null,isUsePortal:!1,className:"mb-image-modals",children:[(0,o.jsxs)("div",{className:"header",children:[(0,o.jsx)(eg,{items:m,activeKey:a,onTabClick:i}),(0,o.jsxs)("div",{className:"right-button",children:[[Qc.S.User,Qc.S.Org].includes(a)&&(0,o.jsx)(QI,{isOrg:a===Qc.S.Org}),(0,o.jsx)(wf,{})]})]}),(0,o.jsxs)("div",{className:"content-wrapper",children:[a===Qc.S.Image&&(0,o.jsx)(NI,{}),a===Qc.S.Sticker&&(0,o.jsx)(OI,{}),a===Qc.S.User&&(0,o.jsx)(Mx,{}),a===Qc.S.Org&&(0,o.jsx)(Mx,{isOrg:!0}),a===Qc.S.History&&(0,o.jsx)(WI,{})]})]})});var $I=s(10429);const e_=M.Ay.div.withConfig({displayName:"styles__StyledIconList",componentId:"sc-n49lge-0"})(["width:100%;display:grid;grid-template-columns:repeat(auto-fill,minmax(72px,1fr));grid-template-rows:repeat(auto-fill,minmax(72px,1fr));column-gap:20px;row-gap:20px;padding:0 32px 20px 32px;.icon-item{width:100%;height:100%;aspect-ratio:1 / 1;border-radius:8px;background:",";.library-icon-item{width:24px;height:24px;&.is_multi_color{width:32px;height:32px;}}&:hover{background:",";}}"],e=>e.theme.color_navigation_hover,e=>e.theme.color_btn_secondary_active),g5=(0,l.memo)(e=>{const{isSearchLoading:t,icons:n,checkedSet:a,onUpdateChecked:i,setIcon:c,onShowIcon:d,onAddItem:p}=e,h=(0,r.wA)(),m=(0,r.d4)(me.YY),x=(0,l.useMemo)(()=>n.filter(v=>d?d(v==null?void 0:v.is_color_icon):!0),[n,d]);return t?(0,o.jsx)(Xc.S,{className:"margin-top-170"}):x!=null&&x.length?(0,o.jsx)(e_,{className:"icon-list",children:x.map((v,A)=>(0,o.jsx)($I.A,{index:A,icon:v,isMultiColorIcon:v.is_color_icon,from:"icon-modal",canChecked:!0,checkedSet:a,onUpdateChecked:i,setIcon:c,onAddItem:p,createTemplatesData:m},A))}):(0,o.jsx)(K0.H,{})});var t_=s(62987);const Tx=M.Ay.div.withConfig({displayName:"styles__StyledIconGroupContainer",componentId:"sc-10u2su1-0"})(["&.icon-group-container{width:100%;display:flex;flex-direction:column;border-radius:12px;background:",";border:1px solid ",";padding:20px 20px 0 20px;overflow:hidden;&:hover,&.checked{box-shadow:",";}.icon-list{display:grid;grid-template-columns:repeat(6,1fr);grid-template-rows:repeat(4,1fr);aspect-ratio:6 / 4;gap:12px;padding:0;.icon-item{width:100%;height:100%;aspect-ratio:1 / 1;border-radius:8px;background:",";.library-icon-item{width:24px;height:24px;&.is_multi_color{width:32px;height:32px;}}&:hover,&.checked{background:",";}}}.icon-group-footer{display:flex;align-items:center;justify-content:space-between;padding:20px 0;cursor:pointer;.left{display:flex;align-items:center;height:24px;.title{font-family:PingFang SC;font-weight:500;font-size:14px;color:",";margin-right:6px;}.mat-member{width:12px;height:12px;}.sign-box{display:flex;align-items:center;margin-left:6px;height:16px;span{font-family:PingFang SC;font-weight:400;font-size:12px;color:",";}.circle{width:2px;height:2px;border-radius:100%;background:",";margin:0 7px;}}.star{display:none;&.isStarred{display:flex;}}}.right{display:flex;align-items:center;color:",";cursor:pointer;span{font-family:PingFang SC;font-weight:400;font-size:14px;color:",";}.arrow-right{width:6px;height:10px;margin-left:10px;}}}&:hover{.icon-group-footer{.left{.star{display:flex;}}}}}"],e=>e.theme.color_bg_white,e=>e.theme.color_bg_border_01,e=>e.theme.shadow_m,e=>e.theme.color_navigation_hover,e=>e.theme.color_btn_secondary_active,e=>e.theme.color_text_L1,e=>e.theme.color_text_L3,e=>e.theme.color_text_L3,e=>e.theme.color_text_L3,e=>e.theme.color_text_L3),n_=(0,l.memo)(e=>{const{label:t,isMultiColorIcon:n}=e,a=n&&!ENV.IS_ON_PREMISES;return(0,o.jsxs)(Tx,{className:"icon-group-container",children:[(0,o.jsx)("div",{className:"icon-list",children:[...Array(24).keys()].map(i=>(0,o.jsx)("div",{className:"icon-item"}))}),(0,o.jsx)("div",{className:"icon-group-footer",children:(0,o.jsxs)("div",{className:"left",children:[(0,o.jsx)("span",{className:"title",children:t}),a&&(0,o.jsx)(Ti.A,{content:I18N.Resources.resourcesFooter.free_for_member,direction:"down",distance:8,enterHoverTime:100,children:(0,o.jsx)(xt.C,{name:"left_panel/icon_list/mat_member",className:"mat-member",isColorPure:!0})})]})})]})}),Px=(0,l.memo)(e=>{const[t,n]=(0,l.useState)(0),{label:a,icons:i,groupName:c,checkedSet:d,isMultiColorIcon:p=!1,multiColorIconObj:h,isStar:m,onUpdateChecked:x,setIcon:v,onGotoDetail:A,onShowIcon:k,onAddItem:R,showStar:F=!1,onStartTemplates:Z}=e,G=p&&!ENV.IS_ON_PREMISES;(0,l.useEffect)(()=>{const se=()=>{const he=document.querySelector(".mb-icon-modals");he&&n(he==null?void 0:he.offsetWidth)};return se(),window.addEventListener("resize",se),()=>window.removeEventListener("resize",se)},[]);const ee=(0,l.useMemo)(()=>{const se=i.map(he=>{const ve=c==="history"?!!(h&&he!=null&&he.groupCid&&h[he==null?void 0:he.groupCid]):p;return{...he,is_color_icon:ve}});return k?se.filter(he=>k(he==null?void 0:he.is_color_icon)):se},[i,c,h,k]),ce=(0,l.useMemo)(()=>d.size>0&&(ee==null?void 0:ee.length)&&(ee==null?void 0:ee.slice(0,24).some(se=>d.has(se.id))),[ee,d]);return i!=null&&i.length?(0,o.jsxs)(Tx,{className:C()("icon-group-container",{checked:ce}),children:[(0,o.jsx)(g5,{icons:ee==null?void 0:ee.slice(0,24),checkedSet:d,onUpdateChecked:x,setIcon:v,onAddItem:R}),(0,o.jsxs)("div",{className:"icon-group-footer",onClick:()=>A(),children:[(0,o.jsxs)("div",{className:"left",children:[(0,o.jsx)("span",{className:"title",children:a}),G&&(0,o.jsx)(Ti.A,{content:I18N.Resources.resourcesFooter.free_for_member,direction:"down",distance:8,enterHoverTime:100,children:(0,o.jsx)(xt.C,{name:"left_panel/icon_list/mat_member",className:"mat-member",isColorPure:!0})}),F&&(0,o.jsx)(t_.X,{isStar:m,onClick:Z})]}),(ee==null?void 0:ee.length)>24&&(0,o.jsxs)("div",{className:"right",children:[(0,o.jsx)("span",{children:I18N.Popups.iconCat.All}),(0,o.jsx)(xt.C,{className:"arrow-right",name:"design/arrow/right"})]})]})]}):(0,o.jsx)(n_,{label:a,isMultiColorIcon:p,isStar:!0})}),Lx=(0,l.memo)(e=>{const{resource:t,checkedSet:n,onUpdateChecked:a,setIcon:i,onGotoDetail:c,onAddItem:d,onUpdateResources:p}=e,h=(0,r.wA)(),m=(0,r.d4)(dl._X),x=(0,r.d4)(dl.IG),[v,A]=(0,l.useState)(t);(0,l.useEffect)(()=>{(async()=>{const{cid:Z}=t;if(m.get(Z))A(t);else{const ee=await(0,Eo.yr)(t);if(!ee)return;const{iconGroupData:ce,marketTemplate:se}=ee;h({type:"icon-panel:update:icon_library_data_map:for:data",payload:{cid:Z,iconGroupData:ce}}),se&&A(se)}})()},[t,m]);const k=(0,l.useMemo)(()=>{if(!(v!=null&&v.cid))return[];const{cid:F,source_upper_cid:Z}=v,G=m.get(F);return(G?G[x]||[]:[]).map(ce=>({...ce,groupCid:Z}))},[v,m,x]),{handleToggleStar:R}=Sf({currentResource:v,onUpdateResource:p});return(0,o.jsx)(Px,{label:v==null?void 0:v.title,groupName:v==null?void 0:v.source_upper_cid,icons:k,isMultiColorIcon:v.is_color_icon,isStar:v.is_star,checkedSet:n,onUpdateChecked:a,setIcon:i,onGotoDetail:()=>c({marketTemplate:v,icons:k}),onAddItem:d,showStar:!0,onStartTemplates:R})}),o_=(0,l.memo)(e=>{const t=(0,r.d4)(dl.kU),n=(0,r.d4)(dl.xZ),a=(0,r.d4)(dl.Bu),{recentData:i,page:c,multiColorIconObj:d,checkedSet:p,onUpdateChecked:h,setIcon:m,setDetail:x,onShowIcon:v,onAddItem:A,onUpdateResources:k}=e,R=(0,l.useMemo)(()=>{var G,ee;if(!(i!=null&&(G=i.iconItems)!=null&&G.length))return!1;const ce=i==null||(ee=i.iconItems)==null?void 0:ee.map(se=>{const he=!!(d&&se!=null&&se.groupCid&&d[se==null?void 0:se.groupCid]);return{...se,is_color_icon:he}}).filter(se=>v?v(se==null?void 0:se.is_color_icon):!0);return(ce==null?void 0:ce.length)>0},[i,d,v]),F=(0,l.useMemo)(()=>{const G=[];return R&&G.push({label:I18N.ColorPanel.history,groupName:"history",icons:i==null?void 0:i.iconItems}),t!=null&&t.length&&G.push(...t),G},[R,i,t,n,a]),Z=(0,l.useMemo)(()=>F.concat(a).filter(ce=>{const se="groupName"in ce;return ce.groupName==="history"?!0:v(se?ce.isMultiColorIcon:ce.is_color_icon)}).slice(0,c*8),[c,F,a,v]);return(0,o.jsx)("div",{className:"icon-group-list",children:Z.map(G=>"groupName"in G?(0,o.jsx)(Px,{label:G.label,groupName:G.groupName,icons:G.icons,isMultiColorIcon:G.isMultiColorIcon,checkedSet:p,multiColorIconObj:d,onUpdateChecked:h,setIcon:m,onGotoDetail:()=>x(G),onShowIcon:v,onAddItem:A}):"cid"in G?(0,o.jsx)(Lx,{resource:G,checkedSet:p,onUpdateChecked:h,setIcon:m,onGotoDetail:ee=>x(ee),onAddItem:A,onUpdateResources:k}):null)})});var Nx=s(72447),y5=s(36050);const a_=M.Ay.div.withConfig({displayName:"styles__StyledDetail",componentId:"sc-1ur4dem-0"})(["display:flex;flex-direction:column;width:100%;height:100%;header{width:100%;height:32px;flex:0 0 32px;display:flex;align-items:center;padding:0 32px 0 24px;margin:16px 0 16px 0;justify-content:space-between;.header-left{display:flex;align-items:center;}.arrow-left{margin-right:6px;flex:0 0 32px;cursor:pointer;border-radius:4px;transition:background-color 0.2s ease-in-out;path{fill:",";}&:hover,&:active{background:",";}}.title{font-family:PingFang SC;font-size:16px;font-weight:500;color:",";margin-right:6px;}.divider{width:1px;height:14px;margin:4px 12px 0 16px;background:",";}.action-item{height:32px;display:flex;align-items:center;color:",";cursor:pointer;.actionIcon{width:16px;height:16px;color:",";margin-right:4px;}.actionValue{font-family:PingFang SC;font-size:12px;}&.like{margin-right:8px;}&.star{.actionIcon{g{path{fill:",";}}}}&:not(.is-active):hover{color:",";.actionIcon{color:",";}&.star{.actionIcon{g{path{fill:",";}}}}}&.is-active{color:",";.actionIcon{color:",";}&.star{.actionIcon{g{path{fill:",";}}}}}}.search-bar.detail-search-bar{width:320px;height:32px;.search-bar{margin-left:0;}}}.resource-container{.resource-scroll-container{padding-top:16px;}}"],e=>e.theme.color_text_L1,e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_text_L1,e=>e.theme.color_bg_border_02,e=>e.theme.color_text_L3,e=>e.theme.color_text_L3,e=>e.theme.color_text_L3,e=>e.theme.color_text_L2,e=>e.theme.color_text_L2,e=>e.theme.color_text_L2,e=>e.theme.color_btn_primary_normal,e=>e.theme.color_btn_primary_normal,e=>e.theme.color_btn_primary_normal),jx=(0,l.memo)(e=>{const{detail:t,onBack:n,checkedSet:a,multiColorIconObj:i,onUpdateChecked:c,setIcon:d,onAddItem:p,onToggleLike:h,onToggleStar:m,onClearAll:x}=e,[v,A]=(0,l.useState)((t==null?void 0:t.icons)||[]),k=(0,l.useRef)(null),{cid:R,title:F,liked_count:Z,star_count:G,is_liked:ee,is_star:ce}=(t==null?void 0:t.marketTemplate)||{title:t==null?void 0:t.label},se=new tu(Z).getDisplayStr(),he=new tu(G).getDisplayStr(),[ve,Te]=(0,l.useState)(!1),[xe,Fe]=(0,l.useState)(null),et=(0,l.useMemo)(()=>{var Xe;const{groupName:lt}=t,Ct="groupName"in t?t.isMultiColorIcon:t==null||(Xe=t.marketTemplate)==null?void 0:Xe.is_color_icon;return v.map(St=>{const hn=lt==="history"?!!(i&&St!=null&&St.groupCid&&i[St==null?void 0:St.groupCid]):Ct;return{...St,is_color_icon:hn}})},[v,i]),Ke=(0,l.useCallback)(Xe=>{if(Fe(null),x(),Xe){Te(!0);const lt=(0,y5.s4)(et,Xe);setTimeout(()=>{Fe(lt),Te(!1)},1e3)}},[Fe,Te,x,et]),Qe=xe||et,nt=Qe&&Qe.length===0;return(0,o.jsxs)(a_,{children:[(0,o.jsxs)("header",{children:[(0,o.jsxs)("div",{className:"header-left",children:[(0,o.jsx)(ug,{size:32,className:"arrow-left",onClick:n}),(0,o.jsx)("span",{className:"title",children:F}),(t==null?void 0:t.marketTemplate)&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(vx.W,{resources:t==null?void 0:t.marketTemplate}),(0,o.jsx)("div",{className:"divider"}),!ENV.IS_ON_PREMISES&&(0,o.jsxs)("div",{className:C()("action-item","like",{"is-active":ee}),onClick:h,children:[(0,o.jsx)(xt.C,{className:"actionIcon",name:ee?"left_panel/widgetModal/community_home/thumb_active":"left_panel/widgetModal/community_home/thumb"}),(0,o.jsx)("span",{className:"actionValue",children:se})]}),(0,o.jsxs)("div",{className:C()("action-item","star",{"is-active":ce}),onClick:m,children:[(0,o.jsx)(xt.C,{className:"actionIcon",name:ce?"left_panel/widgetModal/community_home/star_active":"left_panel/widgetModal/community_home/star"}),!ENV.IS_ON_PREMISES&&(0,o.jsx)("span",{className:"actionValue",children:he})]})]})]}),(0,o.jsx)(Cd.A,{className:"search-bar detail-search-bar",value:"",placeholder:I18N.iconModal.search_bar_placeholder,onSearch:Ke})]}),ve?(0,o.jsx)(Xc.S,{className:"margin-top-120",children:(0,o.jsx)("span",{children:I18N.Resources.searching.load})}):nt?(0,o.jsx)(K0.H,{}):(0,o.jsx)("div",{className:"resource-container",children:(0,o.jsx)("div",{className:C()("resource-scroll-container",{"show-footer":(a==null?void 0:a.size)>0}),ref:k,children:(0,o.jsx)(rd.A,{className:"resource-scrollable-list",children:Xe=>(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(g5,{icons:xe||et,checkedSet:a,onUpdateChecked:c,setIcon:d,onAddItem:p}),(0,o.jsx)(jl.yP,{type:"vertical",containerRef:k,isAutoHideBar:!0})]})})})})]})}),x5=e=>e.ui.leftLayout.iconModal.keyword,r_=e=>e.ui.leftLayout.iconModal.all,zre=e=>e.ui.leftLayout.iconModal.me,Dx=(0,l.memo)(e=>{const{isSearching:t,isSearchLoading:n,icons:a,checkedSet:i,onUpdateChecked:c,setIcon:d,onShowIcon:p,onAddItem:h,onSearchIcon:m}=e,x=(0,r.d4)(x5);return(0,l.useEffect)(()=>{x&&m(x)},[t,x,m]),(0,o.jsx)(g5,{isSearchLoading:n,icons:a,checkedSet:i,onUpdateChecked:c,setIcon:d,onShowIcon:p,onAddItem:h})}),Rx=e=>{const{resources:t,scrollRef:n,handleGetAllLen:a}=e,i=(0,r.d4)(x5),c=(0,r.wA)(),[d,p]=(0,l.useState)(new Set),[h,m]=(0,l.useState)(null),[x,v]=(0,l.useState)([]),[A,k]=(0,l.useState)(1),[R,F]=(0,l.useState)(i),[Z,G]=(0,l.useState)(!1),ee=(0,r.d4)(rt.QU),ce=(0,r.d4)(rt.Ct),se=(lt,Ct)=>{const St=new Set(d),hn=St.has(lt);hn?St.delete(lt):St.add(lt),p(St);const Cn=hn?x.filter(Mt=>Mt.id!==lt):x.concat([Ct]);v(Cn)},he=(0,l.useCallback)(()=>{p(new Set),v([])},[p,v]),ve=()=>{const{checkoutPlace:lt,payEntrance:Ct}=(0,fd.FS)(Ll.C),St={mode:"mat",payEntrance:Ct,checkoutArea:"proto",checkoutPlace:lt,templateCid:(h==null?void 0:h.cid)||(h==null?void 0:h.groupCid),templateName:h==null?void 0:h.id,templateCategory:Ll.C};MB.global.popupHelper.chargeAsync(St)},Te=(0,l.useCallback)(()=>{var lt;n==null||(lt=n.current)==null||lt.scrollTo({top:0,behavior:"smooth"}),k(1)},[n]),xe=(0,l.useCallback)(lt=>{F(lt)},[F]),Fe=async lt=>{c({type:"icon-modal:update:keyword",payload:lt}),G(!0),he(),Te()},et=(0,l.useCallback)(()=>{xe(""),c({type:"icon-modal:update:keyword",payload:""}),G(!1),Te(),he()},[xe,Te,G,he,c]),Ke=(0,l.useCallback)(K3()(lt=>{const Ct=a(),St=lt.target,hn=St.scrollTop,Cn=St.scrollHeight,Mt=St.getBoundingClientRect().height;if(hn+Mt+24>Cn){if(A*8>Ct)return;k(Et=>Et+1)}},200),[k,a]),Qe=lt=>!lt||lt.length===0?[]:lt.map(St=>{const hn={iconData:{viewBox:St.view_box,path:St.path,iconName:St.iconName,iconSize:ce,iconColor:ee||"",svgAttr:{fill:St.fill,stroke:St.stroke},isMultiColorIcon:St.isMultiColorIcon},width:ce,height:ce,display_name:St.iconDisplayName,name:St.iconDisplayName,view_box:St.view_box,left:0,top:0,path:St.path},Cn=(0,Af.kk)(hn),Mt=St.id.split("-"),Et=Mt[0],Co=Et==="fa5"?Mt.slice(1,Mt.length-1).join("-"):Et===St.type&&Et!=="\u6570\u5B57"?St.id.slice(St.id.indexOf("-")+1):St.id;return{...hn,...Cn,fill:{...Cn.fill,solidColor:typeof ee=="number"?ee:(0,Rc.Wi)(ee)},mktCid:St.groupCid||void 0,_keywords:St.keywords,_type:St.type,_icon_id:St.id,recent:{isRequestRecent:!0,projectUpperType:"icon_group",projectUpperCid:St.groupCid,itemCid:Co,isTrack:!0}}});return{word:R,isSearching:Z,icons:x,checkedSet:d,handleChangeChecked:se,handleClearChecked:he,handleMemberClick:ve,icon:h,setIcon:m,handleResetScroll:Te,handleSearchInput:xe,handleSearch:Fe,handleClear:et,page:A,handleScroll:Ke,handleAddItem:(lt,Ct,St,hn,Cn)=>{c({type:"entry:create:svg_icon_path:by:mousedown",payload:{event:lt,icon:Ct,iconName:St,iconDisplayName:hn,isMultiColorIcon:Cn,isTrack:!0}}),c({type:"modal:update:state",payload:{iconModal:{isOpen:!1}}}),c({type:"icon-modal:reset:state"})},handleAddItems:()=>{if(!x||x.length===0)return;const lt=Qe(x);c({type:"entry:resources:quick:create:template",payload:{data:lt}}),c({type:"modal:update:state",payload:{iconModal:{isOpen:!1}}}),c({type:"icon-modal:reset:state"})}}};var xm=s(40610),Bx=s(45765),i_=s(49903);const Ux=async e=>{var t;const n={category:Ll.C,q:e,limit:36},a=await(0,Eo.F7)(new URLSearchParams(n),"");if(a!=null&&(t=a.data)!=null&&(t=t.icons)!=null&&t.length){const{data:{icons:i},is_purchased:c,is_star:d}=a;return i.map(h=>{const{title:m,data:x,is_color_icon:v}=h;return x.map(A=>({...A,type:i_.I1[m]||m||"svg",id:A.name,groupCid:A.cid,is_color_icon:v,is_purchased:c,is_star:d}))}).flat(1/0)}return[]},s_=()=>{const[e,t]=(0,l.useState)(!1),n=(0,r.d4)(dl.gC),{isExperience:a,isLoggedExperience:i}=(0,r.d4)(me.W4),c=(0,r.d4)(dl.Bu),d=(0,r.wA)(),[p,h]=(0,l.useState)(null),[m,x]=(0,l.useState)(null),[v,A]=(0,l.useState)(!0),[k,R]=(0,l.useState)([]),F=(0,l.useCallback)(async()=>{if(c!=null&&c.length)return;let se=!1;a?i?se=!0:se=!1:se=!0;const{result:{market_templates:he}}=await(0,i0.X)("&category="+Ll.C);d({type:"icon-panel:update:state",payload:{resources:he}})},[d,a,i]),Z=(0,l.useCallback)(async()=>{if(n)return;const[se,he]=await Promise.all([(0,i0.$r)(),(0,i0.Aq)()]),ve=se==null?void 0:se.icon_groups,Te=(0,xm.D2)(ve),xe=(0,Bx.S$)(Te),Fe=(0,Bx.d$)(he==null?void 0:he.icon_groups);d({type:"icon-panel:update:state",payload:{hotIconList:xe,hotColorIconList:Fe,isRequestHotIconList:!!(se&&he)}})},[d,n]),G=(0,l.useCallback)(async()=>{const[se,he]=await Promise.all([(0,i0.Uy)(),(0,i0.PJ)()]);if(se){const{icon_groups:ve}=se,Te=(0,xm.D2)(ve);h({iconItems:Te}),x(he)}},[h,x]),ee=(0,l.useCallback)(async()=>{await Promise.all([Z(),F(),G()])},[F,Z,G]),ce=(0,l.useCallback)(async se=>{A(!0);const he=await Ux(se);R(he),A(!1)},[A,R]);return(0,l.useEffect)(()=>{t(!0),ee().then(se=>t(!1)).catch(se=>{console.log("load hot icons failed",se),t(!1)})},[]),{isLoading:e,recentData:p,multiColorIconObj:m,handleSearchIcon:ce,isSearchLoading:v,searchIconList:k}},l_=M.Ay.div.withConfig({displayName:"styles__StyledAll",componentId:"sc-1lom938-0"})(["height:100%;width:100%;display:flex;flex-direction:column;.nav-container{width:100%;height:32px;display:flex;flex-direction:row;align-items:center;margin-bottom:36px;flex:0 0 32px;padding:0 32px;.nav-divider{width:1px;height:16px;background:",";margin:0 24px;}.color-settings{margin:0;padding:0;.left-box{.color-size.has-menu{width:82px;border:1px solid ",";input{text-align:center;padding:0;}&:not(.is-active){input{margin-left:-13px;}}}}&.is-monochrome .color-size{margin-right:24px;}}}.resource-container{flex:1;width:100%;position:relative;overflow:hidden;.resource-scroll-container{width:100%;height:100%;overflow-x:hidden;overflow-y:overlay;scrollbar-width:none;&.show-footer{height:calc(100% - 68px);}.resource-scrollable-list{height:100%;.empty-template-search-container{height:100%;}}.icon-group-list{width:100%;display:grid;grid-template-columns:repeat(auto-fill,minmax(477px,1fr));gap:20px;padding:0 32px 20px 32px;}}}"],e=>e.theme.color_bg_border_02,e=>e.theme.color_bg_border_01),c_=(0,l.memo)(()=>{const e=(0,r.d4)(dl.kU),t=(0,r.d4)(dl.xZ),n=(0,r.d4)(dl.Bu),{tab:a}=(0,r.d4)(r_),i=(0,r.d4)(rt.QU),c=(0,r.d4)(rt.Ct),[d,p]=(0,l.useState)(null),h=(0,r.wA)(),m=(0,l.useRef)(null),{isLoading:x,recentData:v,multiColorIconObj:A,handleSearchIcon:k,isSearchLoading:R,searchIconList:F}=s_(),Z=(0,l.useCallback)(So=>{const ho=n.map(No=>No.cid===(So==null?void 0:So.cid)?So:No);h({type:"icon-panel:update:state",payload:{resources:ho}}),d!=null&&d.marketTemplate&&p({...d,marketTemplate:So})},[d,n,p,h]),{handleToggleLike:G,handleToggleStar:ee}=Sf({currentResource:d==null?void 0:d.marketTemplate,onUpdateResource:Z}),ce=(0,l.useMemo)(()=>{let So=0;if(v){const{iconItems:ho}=v;ho!=null&&ho.length&&So++}return e!=null&&e.legth&&(So+=e==null?void 0:e.length),t!=null&&t.length&&(So+=t==null?void 0:t.length),n&&(So+=n==null?void 0:n.length),So},[v,e,t,n]),se=(0,l.useMemo)(()=>{var So;if(a===0)return ce;const ho=(v==null||(So=v.iconItems)==null?void 0:So.length)>0?1:0;if(a===1){const No=n.filter(Xo=>!Xo.is_color_icon);return ho+(No==null?void 0:No.length)}if(a===2){const No=n.filter(Xo=>Xo.is_color_icon);return ho+(No==null?void 0:No.length)}return 0},[a,ce,v,e,t,n]),{word:he,isSearching:ve,icons:Te,checkedSet:xe,handleChangeChecked:Fe,handleClearChecked:et,handleMemberClick:Ke,setIcon:Qe,handleResetScroll:nt,handleSearchInput:Xe,handleSearch:lt,handleClear:Ct,page:St,handleScroll:hn,handleAddItem:Cn,handleAddItems:Mt}=Rx({resources:n,scrollRef:m,handleGetAllLen:()=>se}),Et=(0,l.useMemo)(()=>!Te.find(ho=>ho.isMultiColorIcon),[Te]),Co=(0,l.useMemo)(()=>[{key:"all",label:I18N.LeftSidePanel.modals.tab.all},{key:"single",label:I18N.Resources.icon_panel.monochrome},{key:"colors",label:I18N.Resources.icon_panel.color}],[]),Pn=(0,l.useCallback)(So=>{a!==So&&(h({type:"icon-modal:update:all",payload:{tab:So}}),et(),nt())},[a,h,nt]),ro=(0,l.useCallback)(So=>So?[0,2].includes(a):[0,1].includes(a),[a]),Io=(0,l.useCallback)(()=>{p(null),et()},[p,et]),mo=(0,l.useCallback)(So=>{p(So),et()},[p,et]);return x?(0,o.jsx)(Xc.S,{className:"fill-height"}):ce?(0,o.jsxs)(l_,{children:[!d&&(0,o.jsx)("div",{className:"sticky-container",children:(0,o.jsx)(Cd.A,{value:he,className:"search-bar",placeholder:I18N.iconModal.search_bar_placeholder,onChange:Xe,onSearch:lt,onClear:Ct,canClear:!0})}),d?(0,o.jsx)(jx,{detail:d,checkedSet:xe,multiColorIconObj:A,onUpdateChecked:Fe,setIcon:Qe,onBack:Io,onAddItem:Cn,onToggleLike:G,onToggleStar:ee,onClearAll:et}):(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("div",{className:"nav-container",children:[(0,o.jsx)(Bc.eD,{activeIndex:a,onTabChange:Pn,height:32,className:"slide-nav",children:Co.map((So,ho)=>{let{key:No,label:Xo}=So;return(0,o.jsx)(Bc.nl,{label:Xo},No)})}),(0,o.jsx)("div",{className:"nav-divider"}),(0,o.jsx)(Nx.N,{iconDefaultSize:c,iconDefaultColor:i,isMultiColorIcon:a===2})]}),(0,o.jsxs)("div",{className:"resource-container",children:[(0,o.jsx)("div",{className:C()("resource-scroll-container",{"show-footer":(xe==null?void 0:xe.size)>0}),ref:m,onScroll:hn,children:(0,o.jsx)(rd.A,{className:"resource-scrollable-list",children:So=>(0,o.jsx)(o.Fragment,{children:he?(0,o.jsx)(Dx,{isSearching:ve,isSearchLoading:R,icons:F,checkedSet:xe,onUpdateChecked:Fe,setIcon:Qe,onShowIcon:ro,onAddItem:Cn,onSearchIcon:k}):(0,o.jsx)(o_,{recentData:v,page:St,multiColorIconObj:A,checkedSet:xe,onUpdateChecked:Fe,setIcon:Qe,setDetail:mo,onShowIcon:ro,onAddItem:Cn,onUpdateResources:Z})})})}),(0,o.jsx)(jl.yP,{type:"vertical",containerRef:m,isAutoHideBar:!0})]})]}),xe.size>0&&(0,o.jsx)(r0.W,{type:"icon",isOnlyShowCreates:Et,checkedSet:xe,onClearAll:et,onMemberClick:Ke,onAddItems:Mt})]}):null}),d_=(0,l.memo)(e=>{const{page:t,resources:n,checkedSet:a,onUpdateChecked:i,setIcon:c,setDetail:d,onAddItem:p,onUpdateResources:h}=e,m=(0,l.useMemo)(()=>n.slice(0,t*8),[t,n]);return n!=null&&n.length?(0,o.jsx)("div",{className:"icon-group-list",children:m.map(x=>(0,o.jsx)(Lx,{resource:x,checkedSet:a,onUpdateChecked:i,setIcon:c,onGotoDetail:v=>d(v),onAddItem:p,onUpdateResources:h}))}):(0,o.jsx)(K0.H,{type:"common",desc:I18N.iconModal.me.empty_text})}),p_=M.Ay.div.withConfig({displayName:"styles__StyledMe",componentId:"sc-1hph2jc-0"})(["height:100%;width:100%;display:flex;flex-direction:column;.nav-container{width:100%;height:32px;display:flex;flex-direction:row;align-items:center;margin-bottom:36px;flex:0 0 32px;padding:0 32px;.nav-divider{width:1px;height:16px;background:",";margin:0 24px;}.color-settings{margin:0;padding:0;.left-box{.color-size.has-menu{width:82px;border:1px solid ",";input{text-align:center;padding:0;}&:not(.is-active){input{margin-left:-13px;}}}}&.is-monochrome .color-size{margin-right:24px;}}}.resource-container{flex:1;width:100%;position:relative;overflow:hidden;.resource-scroll-container{width:100%;height:100%;overflow-x:hidden;overflow-y:overlay;scrollbar-width:none;&.show-footer{height:calc(100% - 68px);}.resource-scrollable-list{height:100%;.empty-template-search-container{height:100%;margin-top:-36px;}}.icon-group-list{width:100%;display:grid;grid-template-columns:repeat(auto-fill,minmax(477px,1fr));gap:20px;padding:0 32px 20px 32px;}}}"],e=>e.theme.color_bg_border_02,e=>e.theme.color_bg_border_01),u_=(0,l.memo)(()=>{const e=(0,r.d4)(dl.Bu),t=(0,r.d4)(x5),n=(0,r.d4)(rt.QU),a=(0,r.d4)(rt.Ct),[i,c]=(0,l.useState)(!0),[d,p]=(0,l.useState)([]),[h,m]=(0,l.useState)(null),x=(0,r.wA)(),v=(0,l.useRef)(null),[A,k]=(0,l.useState)(!1),[R,F]=(0,l.useState)([]),Z=(0,l.useCallback)(async Pn=>{k(!0);const ro=await Ux(Pn);F(ro),k(!1)},[k,F]),{word:G,isSearching:ee,icons:ce,checkedSet:se,handleChangeChecked:he,handleClearChecked:ve,handleMemberClick:Te,setIcon:xe,handleResetScroll:Fe,handleSearchInput:et,handleSearch:Ke,handleClear:Qe,page:nt,handleScroll:Xe,handleAddItem:lt,handleAddItems:Ct}=Rx({resources:d,scrollRef:v,handleGetAllLen:()=>d==null?void 0:d.length}),St=(0,l.useCallback)(Pn=>{const ro=d.map(Io=>Io.cid===(Pn==null?void 0:Pn.cid)?Pn:Io);p(ro),h!=null&&h.marketTemplate&&m({...h,marketTemplate:Pn})},[h,d,m,p]),{handleToggleLike:hn,handleToggleStar:Cn}=Sf({currentResource:h==null?void 0:h.marketTemplate,onUpdateResource:St}),Mt=(0,l.useMemo)(()=>!ce.find(ro=>ro.isMultiColorIcon),[ce]);(0,l.useEffect)(()=>{(async()=>{const Io=(await(0,i0.YC)(Ll.C)).map(mo=>e.find(So=>mo.cid===So.cid)).filter(mo=>!!mo);p(Io),c(!1)})()},[e]);const Et=(0,l.useCallback)(()=>{m(null),ve()},[m,ve]),Co=(0,l.useCallback)(Pn=>{m(Pn),ve()},[m,ve]);return i?(0,o.jsx)(Xc.S,{className:"fill-height"}):(0,o.jsxs)(p_,{children:[!h&&(0,o.jsx)("div",{className:"sticky-container",children:(0,o.jsx)(Cd.A,{value:G,className:"search-bar",placeholder:I18N.iconModal.search_bar_placeholder,onChange:et,onSearch:Ke,onClear:Qe,canClear:!0})}),h?(0,o.jsx)(jx,{detail:h,checkedSet:se,onUpdateChecked:he,setIcon:xe,onBack:Et,onAddItem:lt,onToggleLike:hn,onToggleStar:Cn,onClearAll:ve}):(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("div",{className:C()("nav-container"),children:(0,o.jsx)(Nx.N,{iconDefaultSize:a,iconDefaultColor:n,isMultiColorIcon:!1})}),(0,o.jsxs)("div",{className:"resource-container",children:[(0,o.jsx)("div",{className:C()("resource-scroll-container",{"show-footer":(se==null?void 0:se.size)>0}),ref:v,onScroll:Xe,children:(0,o.jsx)(rd.A,{className:"resource-scrollable-list",children:Pn=>(0,o.jsx)(o.Fragment,{children:G?(0,o.jsx)(Dx,{isSearching:ee,isSearchLoading:A,icons:R,checkedSet:se,onUpdateChecked:he,setIcon:xe,onAddItem:lt,onSearchIcon:Z}):(0,o.jsx)(d_,{page:nt,resources:d,checkedSet:se,onUpdateChecked:he,setIcon:xe,setDetail:Co,onAddItem:lt,onUpdateResources:St})})})}),(0,o.jsx)(jl.yP,{type:"vertical",containerRef:v,isAutoHideBar:!0})]})]}),se.size>0&&(0,o.jsx)(r0.W,{type:"icon",isOnlyShowCreates:Mt,checkedSet:se,onClearAll:ve,onMemberClick:Te,onAddItems:Ct})]})});var vm=function(e){return e.All="all",e.Star="star",e}(vm||{});const h_=(0,M.Ay)(ci.H).withConfig({displayName:"styles__StyledIconModal",componentId:"sc-1irsuyr-0"})(["&.mb-icon-modals{max-width:1700px;min-width:1038px;max-height:820px;min-height:554px;width:90vw !important;height:90vh;.close-btn{top:11px;}& > header.header{display:none !important;}.content{padding:0;height:100%;}.modal-content{height:100%;display:flex;flex-direction:column;.header{padding:16px 32px 0;display:flex;align-items:center;justify-content:space-between;border-color:",";}.content-wrapper{display:flex;flex-direction:column;flex:1;overflow:hidden;.sticky-container{padding:24px 32px 16px 32px;flex:0 0 82px;.search-bar{height:42px;padding:4px 14px 4px 12px;border-radius:8px;&:hover{border-color:",";}&.isFocus{outline:2px solid ",";border-color:transparent;}.search-icon{margin-left:5px;}}}.slide-nav{.nav-item{border-radius:6px;padding:0 12px;span.nav-label{font-size:14px;line-height:16px;display:inline-block;height:auto;&::before{content:attr(title);display:block;height:0;overflow:hidden;visibility:hidden;font-weight:500;}}}}}}}"],e=>e.theme.color_bg_border_01,e=>e.theme.color_btn_primary_normal,e=>e.theme.color_btn_primary_normal),m_=(0,M.DU)([".--mb--color-panel{z-index:1050;}"]),f_=(0,l.memo)(e=>{const{onClose:t}=e,[n,a]=(0,l.useState)(vm.All),i=(0,r.wA)(),c=(0,l.useMemo)(()=>[{label:I18N.LeftSidePanel.iconPanel.modals.all,key:vm.All},{label:I18N.LeftSidePanel.iconPanel.modals.star,key:vm.Star}],[]),d=()=>{t(),i({type:"icon-modal:reset:state"})};return(0,o.jsxs)(h_,{isOpen:!0,onClose:d,footer:null,header:null,isUsePortal:!1,className:"mb-icon-modals",children:[(0,o.jsxs)("div",{className:"header",children:[(0,o.jsx)(eg,{items:c,activeKey:n,onTabClick:a}),(0,o.jsx)(wf,{})]}),(0,o.jsxs)("div",{className:"content-wrapper",children:[n===vm.All&&(0,o.jsx)(c_,{}),n===vm.Star&&(0,o.jsx)(u_,{})]}),(0,o.jsx)(m_,{})]})});class g_ extends l.PureComponent{constructor(){super(...arguments),(0,B.A)(this,"handleCloseModal",t=>{if(typeof t=="string"){this.props.dispatch({type:"modal:reset:popup:state",payload:{modalName:t}});return}this.props.dispatch({type:"modal:reset:state"})}),(0,B.A)(this,"handleCloseLibModal",()=>{this.handleCloseModal("libPanelModal"),this.handleCloseModal("libEditColorModal"),this.handleCloseModal("libEditTextModal"),this.handleCloseModal("libEditAppearModal")})}render(){const{theme:t,rootProject:n,currentOrg:a,personalOrg:i,currentUser:c,linkBackModal:d,comboGroupRemoveModal:p,masterDeleteModal:h,masterCreateModal:m,screenDupModal:x,screenTransferModal:v,screenRemovalModal:A,screenTrashModal:k,couponReceivedModal:R,mockittGuideModal:F,previewModal:Z,workspaceConfirmAsyncModal:G,designTransferModal:ee,assetGroupRemoveModal:ce,designCreateWithGroupModal:se,assetCreateWithGroupModal:he,doNotLeaveProjectModal:ve,nestedDynamicModal:Te,secondaryConfirmModal:xe,preOpenHyperlinkModal:Fe,helpCenterModal:et,rightsAndInterestsModal:Ke,orgFullBeyondNotice:Qe,resourcePurchaseModal:nt,resourcesPaidSuccessModal:Xe,imagePreviewModal:lt,previewComboModal:Ct,upgradeComboModal:St,chargeModal:hn,projectSummaryModal:Cn,flpakSizeWarnModal:Mt,newbieVideoModal:Et,comboUploadModal:Co,chartTableSettingModal:Pn,previewCanvasModal:ro,widgetOperationLayoutModal:Io,noticeModal:mo,colorPickerDownloadModal:So,mcpTokenModal:ho,mktWMExportModal:No,mktWMUngroupModal:Xo,libPanelModal:Ta,libEditColorModal:Da,libEditAppearModal:xr,libEditTextModal:Wa,manageStyleLibModal:Dr,templateModal:Wr,templateFileDetialModal:hi,resourcesSnapshotPreviewModal:Sr,widgetModal:oi,imageModal:js,iconModal:Ri,less12FontSizeTipsModal:li,canvasConvertedToPixsoModal:fi,dispatch:bi}=this.props;return(0,o.jsxs)(l.Fragment,{children:[R.isOpen&&(0,o.jsx)(_u,{...R,dispatch:bi}),F.isOpen&&(0,o.jsx)(Pu,{...F,dispatch:bi}),m.isOpen&&(0,o.jsx)(Di,{...m,onClose:()=>this.handleCloseModal("masterCreateModal"),dispatch:bi}),h.isOpen&&(0,o.jsx)(Vc,{...h,onClose:()=>this.handleCloseModal("masterDeleteModal"),dispatch:bi}),p.isOpen&&(0,o.jsx)(El,{...p,onClose:()=>this.handleCloseModal("comboGroupRemoveModal"),dispatch:bi}),se.isOpen&&(0,o.jsx)(gn,{...se,onClose:()=>this.handleCloseModal("designCreateWithGroupModal"),dispatch:bi}),d.isOpen&&(0,o.jsx)(io,{...d,theme:t,onClose:()=>this.handleCloseModal("linkBackModal")}),x.isOpen&&(0,o.jsx)(Fo,{...x,onClose:()=>this.handleCloseModal("screenDupModal"),dispatch:bi}),v.isOpen&&(0,o.jsx)(Ks,{...v,onClose:()=>this.handleCloseModal("screenTransferModal"),theme:t,rootProject:n,currentUser:c,currentOrg:a,theme:t,dispatch:bi}),A.isOpen&&(0,o.jsx)(ts,{...A,onClose:()=>{this.handleCloseModal("screenRemovalModal")},dispatch:bi}),k.isOpen&&(0,o.jsx)(Vi,{theme:t,...k,onClose:()=>this.handleCloseModal("screenTrashModal"),dispatch:bi,rootProject:n,currentOrg:a,currentUser:c}),Z.isOpen&&(0,o.jsx)(_d,{...Z,theme:t,onClose:()=>this.handleCloseModal("previewModal")}),ce.isOpen&&(0,o.jsx)(bp,{...ce,onClose:()=>this.handleCloseModal("assetGroupRemoveModal"),dispatch:bi}),G.isOpen&&(0,o.jsx)(uc,{...G,onClose:()=>this.handleCloseModal("workspaceConfirmAsyncModal")}),ee.isOpen&&(0,o.jsx)(Sa,{...ee,onClose:()=>this.handleCloseModal("designTransferModal"),dispatch:bi}),he.isOpen&&(0,o.jsx)(r1,{...he,onClose:()=>this.handleCloseModal("assetCreateWithGroupModal")}),ve.isOpen&&(0,o.jsx)(F1,{...ve,onClose:()=>this.handleCloseModal("doNotLeaveProjectModal")}),xe.isOpen&&(0,o.jsx)(Lu,{...xe,onClose:()=>this.handleCloseModal("secondaryConfirmModal")}),Te.isOpen&&(0,o.jsx)(Cp,{...Te,onClose:()=>this.handleCloseModal("nestedDynamicModal")}),Fe.isOpen&&(0,o.jsx)(U0.A,{...Fe,onClose:()=>this.handleCloseModal("preOpenHyperlinkModal")}),et.isOpen&&(0,o.jsx)(Er,{zIndex:107,...et,onClose:()=>this.handleCloseModal("helpCenterModal")}),mo.isOpen&&(0,o.jsx)(mr,{...mo}),Ke.isOpen&&(0,o.jsx)(S0,{...Ke,currentOrg:a,currentUser:c,personalOrg:i,onClose:()=>{this.handleCloseModal("rightsAndInterestsModal")}}),Qe.isOpen&&(0,o.jsx)(Kh,{...Qe,onClose:()=>this.handleCloseModal("orgFullBeyondNotice")}),nt.isOpen&&(0,o.jsx)(jd,{...nt,onClose:()=>this.handleCloseModal("resourcePurchaseModal"),dispatch:bi}),Xe.isOpen&&(0,o.jsx)(u1,{...Xe,onClose:()=>this.handleCloseModal("resourcesPaidSuccessModal"),dispatch:bi}),lt.isOpen&&(0,o.jsx)(A2.A,{...lt,onClose:()=>{this.handleCloseModal("imagePreviewModal")}}),Ct.isOpen&&(0,o.jsx)(k2,{...Ct,theme:t,onClose:()=>this.handleCloseModal("previewComboModal")}),St.isOpen&&(0,o.jsx)(Ol,{...St,onClose:()=>this.handleCloseModal("upgradeComboModal"),dispatch:bi}),hn.isOpen&&(0,o.jsx)(Wu,{...hn,onClose:()=>{this.handleCloseModal("chargeModal")}}),Cn.isOpen&&(0,o.jsx)(jp,{...Cn,onClose:()=>this.handleCloseModal("projectSummaryModal")}),Mt.isOpen&&(0,o.jsx)(Qh,{...Mt,onClose:()=>{this.handleCloseModal("flpakSizeWarnModal")}}),Et.isOpen&&(0,o.jsx)(Bp,{...Et,dispatch:bi,onClose:()=>{this.handleCloseModal("newbieVideoModal")}}),Co.isOpen&&(0,o.jsx)(rp,{...Co,onClose:()=>{this.handleCloseModal("comboUploadModal")}}),Pn.isOpen&&(0,o.jsx)(pe,{}),ro.isOpen&&(0,o.jsx)(We,{...ro,theme:t,dispatch:bi,onClose:()=>{this.handleCloseModal("previewCanvasModal")}}),Io.isOpen&&(0,o.jsx)(uo,{...Io,dispatch:bi,onClose:()=>{this.handleCloseModal("widgetOperationLayoutModal")}}),So.isOpen&&(0,o.jsx)(ka,{...So,dispatch:bi,onClose:()=>{this.handleCloseModal("colorPickerDownloadModal")}}),ho.isOpen&&(0,o.jsx)(To.fH,{isOpen:ho.isOpen,theme:t,handleCloseModal:()=>this.handleCloseModal("mcpTokenModal"),handleOpenNotice:ls=>{let{text:Pi,type:es}=ls;return es==="warning"&&MB.notice({text:Pi,type:es})}}),No.isOpen&&(0,o.jsx)(us,{...No,dispatch:bi,onClose:()=>{this.handleCloseModal("mktWMExportModal")}}),Xo.isOpen&&(0,o.jsx)(hs,{...Xo,dispatch:bi,onClose:()=>{this.handleCloseModal("mktWMUngroupModal")}}),Ta.isOpen&&(0,o.jsx)(nm,{...Ta,dispatch:bi,onClose:this.handleCloseLibModal}),Da.isOpen&&(0,o.jsx)(Fd,{...Da,dispatch:bi,onClose:()=>this.handleCloseModal("libEditColorModal")}),Wa.isOpen&&(0,o.jsx)(Jm,{...Wa,dispatch:bi,onClose:()=>this.handleCloseModal("libEditTextModal")}),xr.isOpen&&(0,o.jsx)(rm,{...xr,dispatch:bi,onClose:()=>this.handleCloseModal("libEditAppearModal")}),Dr.isOpen&&(0,o.jsx)(qf,{...Dr,onClose:()=>this.handleCloseModal("manageStyleLibModal")}),Wr.isOpen&&(0,o.jsx)(RM,{...Wr,onClose:()=>this.handleCloseModal("templateModal")}),hi.isOpen&&(0,o.jsx)($M,{...hi,onClose:()=>this.handleCloseModal("templateFileDetialModal")}),Sr.isOpen&&(0,o.jsx)(QM,{...Sr,onClose:()=>this.handleCloseModal("resourcesSnapshotPreviewModal")}),oi.isOpen&&(0,o.jsx)(mI,{...oi,onClose:()=>this.handleCloseModal("widgetModal")}),js.isOpen&&(0,o.jsx)(qI,{...js,onClose:()=>this.handleCloseModal("imageModal")}),Ri.isOpen&&(0,o.jsx)(f_,{...Ri,onClose:()=>this.handleCloseModal("iconModal")}),li.isOpen&&(0,o.jsx)(Ya,{...li,dispatch:bi,onClose:()=>this.handleCloseModal("less12FontSizeTipsModal")}),fi.isOpen&&(0,o.jsx)(ti,{...fi,currentOrg:a,currentUser:c,rootProject:n,theme:t,onClose:()=>this.handleCloseModal("canvasConvertedToPixsoModal"),dispatch:bi})]})}}const y_=(0,r.Ng)(e=>{const t=(0,me.PL)(e),n=(0,me.wA)(e),a=(0,me.HW)(e),i=(0,Nl.zs)(e),c=(0,te.O4)(e),d=(0,me.XO)(e);return{...i,theme:c,rootProject:t,currentOrg:n,currentUser:a,personalOrg:d}})(g_);var Ox=s(67934),v5=s(89853),s0=s(39695),x_=s(93e3),bm=s(76613),v_=s(93093);const Hd={from:null,to:null},b5=(e,t,n)=>{const a=x_.L.apply(e,n);return{x:a.x+window.innerWidth/2,y:a.y+e.size.h/2+t}},b_=(e,t,n,a,i,c,d)=>{try{return w_(e,t,n,a,i,c,d)}catch(p){(0,v_.Cp)(p,{level:"debug",fingerprint:["try-find-intAct-connector"],extra:{interaction:t,editingBDanliKey:n,editingBMubanRBRefKey:a}})}return Hd},w_=(e,t,n,a,i,c,d)=>{switch(t.interactionType){case s0.O2.LinkToCanvas:{let h=t.triggerItemKey;const m=t.targetResCanvasKey;return(0,ei.OO)(h)&&(h=(0,ei.QL)(h).pop()),e.locUpColdCanvasKey(t.triggerItemKey)===t.targetResCanvasKey?Hd:e.locUpRBPageKey(h)!==e.locUpRBPageKey(m)&&e.getHotItem(m).hotAttr.type==="rResCanvas"?Fx(e,h,m,i,c,d):ou(e,h,m,i,c)}case s0.O2.OpenOverlay:case s0.O2.SwapOverlay:{let h=t.triggerItemKey;const m=t.targetOverlayKey;return(0,ei.OO)(h)&&(h=(0,ei.QL)(h).pop()),e.locUpColdCanvasKey(t.triggerItemKey)===t.targetOverlayKey?Hd:e.locUpRBPageKey(h)!==e.locUpRBPageKey(m)&&e.getHotItem(m).hotAttr.type==="rResCanvas"?Fx(e,h,m,i,c,d):ou(e,h,m,i,c)}case s0.O2.SetBasketCanvas:{const{triggerItemKey:h,targetBasketKey:m,targetResCanvasKey:x}=t;if(!e.isActiveKey(h))return Hd;if(m!==bm.VZ){const A=e.locUpHotCanvasKey(h)||"",k=e.locUpHotCanvasKey(m)||"";if(A===k&&(!(0,ei.OO)(h)||e.locUpHotBasketKey(h)===n||e.locTopRBMuDaPageKey(h)===a))return ou(e,(0,ei.OO)(h)?(0,ei.QL)(h).pop():h,(0,ei.OO)(m)?(0,ei.QL)(m).pop():m,i,c)}const v=e.locUpHotBasketKey(h)||"";if(v&&n&&v===m&&v===n&&!bm.yQ.includes(x))return ou(e,(0,ei.OO)(h)?(0,ei.QL)(h).pop():h,(0,ei.OO)(x)?(0,ei.QL)(x).pop():x,i,c);if(m===bm.VZ){const A=e.findUpHotItemList(h).map(k=>k.key);if(n&&A.includes(n)&&!bm.yQ.includes(x)){const k=(0,ei.OO)(h)?(0,ei.j_)((0,ei.QL)(h).slice(1)):h,R=(0,ei.OO)(x)?(0,ei.QL)(x).pop():x;return ou(e,k,R,i,c,sdkStore.locUpHotBasketKey(x)===n)}if(a&&A.includes(a)&&!bm.yQ.includes(x)){var p;return ou(e,h,x,i,c,((p=sdkStore.getHotItem(x))==null?void 0:p.sup)===a)}}return Hd}case s0.O2.ScrollTo:case s0.O2.SetVisibility:case s0.O2.Transform:case s0.O2.SetAnimation:case s0.O2.SetInputFocus:{const{triggerItemKey:h,targetWidgetKey:m}=t;if(m===bm.rE||m===h)return Hd;if((0,ei.OO)(h)&&(0,ei.OO)(m)){const x=e.locUpHotBasketKey(h),v=e.locUpHotBasketKey(m);return x!==v||x!==n?Hd:ou(sdkStore,(0,ei.QL)(h).pop(),(0,ei.QL)(m).pop(),i,c)}else return!(0,ei.OO)(h)&&!(0,ei.OO)(m)?ou(sdkStore,h,m,i,c):Hd}case s0.O2.CloseOverlay:case s0.O2.LinkToSourceCanvas:case s0.O2.OpenExternalUrl:case s0.O2.SetVariableValue:case s0.O2.ConditionalBranches:return Hd;default:return null}},ou=(e,t,n,a,i,c)=>{const d=e.getHotAABB(t),p=e.getHotAABB(n);if((0,Je.cj)(d,p))return Hd;const[h,m,x,v]=d,[A,k,R,F]=p,Z={x:.5*(h+x),y:.5*(m+v)},G={x:.5*(A+R),y:.5*(k+F)};let ee={...Z},ce={...G};const se=(G.x-Z.x)/(x-h),he=(G.y-Z.y)/(v-m);Math.abs(se)>Math.abs(he)?ee.x+=Math.sign(se)*(x-h)/2:ee.y+=Math.sign(he)*(v-m)/2;const ve=(Z.x-G.x)/(R-A),Te=(Z.y-G.y)/(F-k);if(Math.abs(ve)>Math.abs(Te)?ce.x+=Math.sign(ve)*(R-A)/2:ce.y+=Math.sign(Te)*(F-k)/2,((0,bt.GN)(t,e)||(0,Je.N0)(p,ee))&&(ee=null),((0,bt.GN)(n,e)||(0,Je.N0)(d,ce))&&(ce=null),!c){if(ee){let Fe=e.locUpHotCanvasKey(t)||"";Fe=(0,ei.OO)(Fe)?(0,ei.QL)(Fe).pop():Fe;const et=Fe&&e.getHotAABB(Fe);et&&!(0,Je.N0)(et,ee)&&(ee=null)}if(ce){let Fe=e.locUpHotCanvasKey(n)||"";Fe=(0,ei.OO)(Fe)?(0,ei.QL)(Fe).pop():Fe;const et=Fe&&e.getHotAABB(Fe);et&&!(0,Je.N0)(et,ce)&&(ce=null)}}if(!ee||!ce)return Hd;const xe=(0,C1.WO)(a,i.left);return!(0,Je.N0)(xe,ee)||!(0,Je.N0)(xe,ce)?Hd:(ee=b5(a,i.top,ee),ce=b5(a,i.top,ce),{from:ee,to:ce})},Fx=(e,t,n,a,i,c)=>{const d=e.getHotAABB(t);if((0,bt.GN)(t,e))return Hd;const[h,m,x,v]=d,A={x:.5*(h+x),y:.5*(m+v)};let k={...A},R=null;const F=Vx(n,e,c);if(F){const{x:G,y:ee,width:ce,height:se}=F;k={x:A.x-(x-h)/2,y:A.y},R={x:G+ce,y:ee+se/2}}else k=R=null;if(!k||!R)return Hd;const Z=(0,C1.WO)(a,i.left);return(0,Je.N0)(Z,k)?(k=b5(a,i.top,k),{from:k,to:R}):Hd},Vx=(e,t,n)=>{var a;if(!e||t.isTrashed(e)||!n)return null;const i=document.querySelector('.rn-list-item[data-cid="'+e+'"]');if(!i)return Vx((a=t.getHotItem(e))==null?void 0:a.sup,t,n);const c=i.getBoundingClientRect();return c.y+c.height>n.y+n.height||c.y<n.y+40?null:c},C_=M.Ay.div.withConfig({displayName:"styles__StyledIntActConnector",componentId:"sc-39jlvd-0"})(["&.link-line{position:absolute;pointer-events:none;z-index:12;.line{pointer-events:auto;position:absolute;transform-origin:0 0;z-index:12;&::before,&::after{content:'';position:absolute;background:",";height:1px;}&::before{left:0;right:","px;}&::after{width:","px;right:0;}}.line-hit{pointer-events:auto;cursor:pointer;position:absolute;transform-origin:0 0;height:6px;z-index:12;top:50%;left:50%;}.handler{pointer-events:auto;position:absolute;z-index:12;top:50%;left:50%;width:18px;height:18px;transform:translate(-50%,-50%) rotate(","deg);display:flex;justify-content:center;align-items:center;background:white;border-radius:50%;color:",";border:1px solid currentColor;.svg-icon{width:10px;height:10px;}.icon{font-size:16px;&.icon_gesture_rightClick{.mouseBody{fill:#c8cdd0;}.mouseRightButton{fill:#FFFFFF;stroke:#c8cdd0;}}&.icon_gesture_mouseIn,&.icon_gesture_mouseOut,&.icon_gesture_rightClick{font-size:12px;}}}.target{position:absolute;top:100%;left:100%;margin-left:-7px;margin-top:-3px;background:transparent;width:0;height:0;border:4px solid transparent;border-left:8px solid ",";}&.is-hover,&.active{z-index:13;.line{&::before,&::after{background:",";}}.handler{color:",";.icon_gesture_rightClick{.mouseBody{fill:",";}.mouseRightButton{fill:#FFFFFF;stroke:",";}}}.target{border-left:8px solid ",";}}}"],e=>e.theme.color_interaction_text_area,e=>e.afterWidth,e=>e.afterWidth,e=>360-e.degree,e=>e.theme.color_interaction_text_area,e=>e.theme.color_interaction_text_area,e=>e.theme.color_proto,e=>e.theme.color_proto,e=>e.theme.color_proto,e=>e.theme.color_proto,e=>e.theme.color_proto);class S_ extends l.PureComponent{constructor(t){super(t),(0,B.A)(this,"handleSelect",n=>{const{link:a,dispatch:i}=this.props;i(Vn.R7.command.intActConnectorSelectCommand({interaction:a,e:n})),i({type:"links:singleSelectLink:update",payload:{singleSelectLink:a}})}),(0,B.A)(this,"handleRemove",n=>{n.stopPropagation();const{link:a,dispatch:i}=this.props;i(Vn.R7.command.intActConnectorDeleteCommand({interactionKeyList:[a.key]})),i({type:"entry:refresh:link-list"})}),(0,B.A)(this,"toggleActive",n=>{const{isDragLink:a}=this.props;a||this.setState({isHover:n})}),this.state={isHover:!1}}render(){const{link:t,scale:n,active:a,viewportRect:i,editingPanelCid:c,editingPanelRefPage:d,canvasOffset:p,screenListRect:h}=this.props,m={scale:n/100,offset:p,size:{w:i.width,h:i.height}},{from:x,to:v}=b_(sdkStore,t,c,d,m,i,h);if(!x||!v)return null;const A=Math.floor(Math.min(x.y,v.y)),k=Math.floor(Math.min(x.x,v.x)),R=Math.abs(x.x-v.x),F=Math.abs(x.y-v.y),Z=(0,v5.FP)(v.x-x.x,v.y-x.y),G={left:x.x<v.x?0:"100%",top:x.y<v.y?0:"100%",width:(0,v5.Xb)(R,F),transform:"rotate("+Z+"deg)"},ee={width:(0,v5.Xb)(R,F),transform:"rotate("+Z+"deg) translate(-50%, -50%)"},se=40*(n/100),he=ve=>{this.toggleActive(!1)};return(0,o.jsxs)(C_,{"data-cid":t.key,className:C()("link-line",{active:a,"is-hover":this.state.isHover}),style:{width:R,height:F,transform:"translate("+k+"px,"+A+"px)"},afterWidth:se,degree:Z,children:[(0,o.jsx)("div",{className:"line",style:G,children:(0,o.jsx)("span",{className:"target"})}),(0,o.jsx)("div",{className:"line-hit",style:ee,onClick:this.handleSelect,onMouseEnter:()=>this.toggleActive(!0),onMouseLeave:he,children:(0,o.jsx)("a",{className:"handler",onClick:this.handleSelect,children:(0,o.jsx)(xt.C,{name:"interaction/trigger/connector/"+t.interactionTrigger,className:"icon_gesture_"+t.interactionTrigger})})})]})}}var A_=s(99566);class k_ extends l.PureComponent{render(){const{linkNodeList:t,editingPanelCid:n,editingPanelRefPage:a,show:i,scale:c,activeLinkCid:d,viewportRect:p,linkDisplayIndex:h,canvasOffset:m,screenListRect:x,isDragLink:v,selectedWidgetCid:A,dispatch:k}=this.props;return i?(0,o.jsx)(M_,{id:"mb-linklist",style:{zIndex:4},children:t.map((R,F)=>{if(!R.isUiValid||!R.isTargetValid||R.isSupUiInvalid||!(0,A_.Yy)(R.runtimeNodeTrigger))return null;const Z=A===R.triggerItemKey&&d.includes(R.key);return(0,o.jsx)(S_,{link:R,scale:c,active:Z,canvasOffset:m,viewportRect:p,editingPanelCid:n,editingPanelRefPage:a,screenListRect:x,isDragLink:v,dispatch:k},R.key+R.triggerItemKey)})}):null}}const M_=M.Ay.div.withConfig({displayName:"IntActConnectorSurface__StyledIntActConnectorSurface",componentId:"sc-1apkur8-0"})(["position:absolute;top:0;left:0;&.hide{display:none;}"]);var E_=s(7457);const I_=(0,I.Mz)([Ox.$_,me.X_,me.$S,te.Jv,Ox.gQ,q.jI,q.bt,me.ER,me.Xv,Vn.R7.query.getSelectInteractionKeyList,E_.nF,tt.p$],(e,t,n,a,i,c,d,p,h,m,x,v)=>n?{show:!0,linkNodeList:e,activeLinkCid:m[0]||"",scale:t,viewportRect:n,linkDisplayIndex:a,editingPanelCid:c,editingPanelRefPage:d,canvasOffset:p,screenListRect:h,isDragLink:x,selectedWidgetCid:v[0]||""}:{show:!1}),__=(0,r.Ng)(e=>I_(e))(k_),T_=M.Ay.div.withConfig({displayName:"styles__StyledLoginBtn",componentId:"sc-xdjurx-0"})(["pointer-events:auto;z-index:4;position:absolute;left:50%;transform:translateX(-50%);top:22px;padding:10px 18px;text-align:center;cursor:pointer;background-color:",";border-radius:2px;box-shadow:0 2px 5px 0 rgba(39,54,78,0.08);white-space:nowrap;color:",";&.warn{background-color:",";}b{text-decoration:underline;color:",";}"],e=>e.theme.color_text_L2,e=>e.theme.color_btn_secondary_active,e=>e.theme.color_primary_brand01,e=>e.theme.color_bg_white);var zx=s(46407),P_=s(91771);class L_ extends l.PureComponent{constructor(){super(...arguments),(0,B.A)(this,"handleWindowEventListenerOnbeforeunload",()=>{const{designOptions:t}=this.props,{isLoggedExperience:n}=t;n&&(window.onbeforeunload=()=>{})}),(0,B.A)(this,"onhandleSignin",()=>{MB.global.popupHelper.loginAsync({onConfirm:zx.c,type:"signin"})}),(0,B.A)(this,"onhandleSignup",()=>{MB.global.popupHelper.loginAsync({onConfirm:zx.c,type:"signup"})}),(0,B.A)(this,"handleOpenTeamModal",()=>{const{projectCid:t}=this.props;MB.global.popupHelper.teamSelectModalAsync({projectCid:t,onConfirm:n=>(0,P_.E)(n)})})}componentDidMount(){this.handleWindowEventListenerOnbeforeunload()}componentDidUpdate(){this.props.designOptions.isLoggedExperience&&this.handleWindowEventListenerOnbeforeunload()}render(){const{showPanelEditBreadNav:t,designOptions:n}=this.props;if(t)return null;const{isExperience:a,isLoggedExperience:i}=n;return(0,o.jsx)(o.Fragment,{children:(0,o.jsxs)(T_,{style:{top:48},className:C()({warn:i}),children:[a&&(0,o.jsxs)("div",{children:[I18N.LoginBtn.is_experience_tips,(0,o.jsx)("b",{onClick:this.onhandleSignin,children:I18N.LoginBtn.after_log_in})," ",I18N.LoginBtn.or," ",(0,o.jsx)("b",{onClick:this.onhandleSignup,children:I18N.LoginBtn.sign_in})," ",I18N.LoginBtn.can_save]}),i&&(0,o.jsxs)("div",{children:[I18N.LoginBtn.save_tips_1,(0,o.jsx)("b",{onClick:this.handleOpenTeamModal,children:I18N.LoginBtn.save_tips_2})," ",I18N.LoginBtn.save_tips_3]})]})})}}const N_=(0,I.Mz)([Me.r,me.W4,me.PL],(e,t,n)=>{let{isEditingProjectMain:a}=e;return{showPanelEditBreadNav:!a,designOptions:t,projectCid:n==null?void 0:n.cid}}),j_=(0,r.Ng)(e=>N_(e))(L_);var bg=s(60690),au=s(92114);const D_=M.Ay.aside.withConfig({displayName:"styles__StyledPreferencePanel",componentId:"sc-1p2ci36-0"})(["position:absolute;display:flex;z-index:200;top:50vh;left:50vw;margin-left:-280px;margin-top:-245px;width:520px;overflow:hidden;background:",";border:",";box-shadow:2px 8px 20px 0px rgba(0,0,0,0.10);border-radius:10px;color:",";.icon-box{position:absolute;width:24px;height:24px;top:12px;right:10px;display:flex;justify-content:center;align-items:center;color:",";cursor:pointer;.times-icon{width:24px;}&:hover{color:",";}&:active{color:",";}}.line{height:1px;background-color:",";&.common-panel{margin:20px 24px 10px;}&.text-panel{margin:8px 24px;}}.left-nav{width:130px;min-width:130px;height:370px;display:flex;background:",";flex-direction:column;border-right:",";font-size:14px;line-height:16px;font-weight:500;padding:10px 8px;.panel-title{height:32px;display:flex;justify-content:center;align-items:center;margin-bottom:6px;}.nav-list{display:flex;flex-direction:column;li{display:flex;height:32px;line-height:32px;padding:0 0 0 26px;cursor:pointer;margin-bottom:6px;border-radius:6px;&:hover{background-color:",";}&.is-active{background-color:",";}& > .icon{margin-right:4px;}& > span{font-size:12px;}.svg-icon{width:20px;color:",";}}}}.right-panel{font-size:12px;line-height:16px;width:100%;.setting-list{margin-left:24px;&:lang(en){margin-left:14px;}&.action,&.text-style-inherit{margin-top:36px;}li{height:40px;display:flex;align-items:center;.setting-item{width:124px;height:16px;display:flex;&:lang(en){margin-right:14px;}.guides-svg{width:16px;margin-left:4px;color:",";cursor:pointer;&:hover{color:",";}}}.setting-option{display:flex;align-items:center;.RadioGroup{.Radio{display:flex;align-items:center;margin-right:",";.Check-state{transform:translateY(0);}}}}}&.theme{margin-top:36px;li{height:42px;.theme-options{display:flex;span{display:flex;align-items:center;justify-content:center;width:60px;height:42px;margin-right:24px;border-radius:6px;cursor:pointer;&:lang(en){margin-right:15px;}svg{width:54px;height:36px;}&.is-selected{border:2px solid ",';}}}}}}}&:lang(ja){width:430px;margin-left:-215px;}.Radio{margin-right:16px;&:lang(en){margin-right:8px;min-width:74px;}}[role~="tooltip"][data-microtip-position="right"]::after{border-radius:4px;left:auto;right:0;top:',";}"],e=>e.theme.color_bg_white,e=>"1px solid "+e.theme.color_bg_border_01,e=>e.theme.color_text_L1,e=>e.theme.color_text_L2,e=>e.theme.color_text_L1,e=>e.theme.color_text_L1,e=>e.theme.color_bg_border_01,e=>e.theme.color_bg_card,e=>"1px solid "+e.theme.color_bg_border_01,e=>e.theme.color_btn_secondary_active,e=>e.theme.color_btn_secondary_active,e=>e.theme.color_text_L1,e=>e.theme.color_text_L3,e=>e.theme.color_text_L1,ENV.IS_MO&&"8px",e=>e.theme.color_text_link_normal,ENV.IS_MO?"calc(100% + 8px)":"calc(100% + 10px)");var kh=s(83744),wg=s(76199),Gd=s(7865);const R_=(0,o.jsxs)("svg",{width:"54",height:"36",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,o.jsxs)("g",{clipPath:"url(#clip0_16706:4215)",children:[(0,o.jsx)("rect",{width:"54",height:"36",rx:"4",fill:"#fff"}),(0,o.jsx)("g",{filter:"url(#filter0_f_16706:4215)",children:(0,o.jsx)("circle",{cx:"19.442",cy:"23.713",r:"33.369",transform:"rotate(-.094 19.442 23.713)",fill:"url(#paint0_linear_16706:4215)",fillOpacity:".8"})}),(0,o.jsx)("g",{filter:"url(#filter1_f_16706:4215)",children:(0,o.jsx)("path",{d:"M30.296-20.945l29.166 50.326-58.167.096 29-50.422z",fill:"url(#paint1_linear_16706:4215)",fillOpacity:".7"})}),(0,o.jsx)("g",{filter:"url(#filter2_b_16706:4215)",children:(0,o.jsx)("rect",{x:"11",y:"11",width:"53",height:"36",rx:"5",fill:"#fff",fillOpacity:".9"})})]}),(0,o.jsxs)("defs",{children:[(0,o.jsxs)("filter",{id:"filter0_f_16706:4215",x:"-30.941",y:"-26.671",width:"100.766",height:"100.767",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,o.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,o.jsx)("feBlend",{in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),(0,o.jsx)("feGaussianBlur",{stdDeviation:"8.507",result:"effect1_foregroundBlur_16706:4215"})]}),(0,o.jsxs)("filter",{id:"filter1_f_16706:4215",x:"-19.802",y:"-42.041",width:"100.36",height:"92.615",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,o.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,o.jsx)("feBlend",{in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),(0,o.jsx)("feGaussianBlur",{stdDeviation:"10.548",result:"effect1_foregroundBlur_16706:4215"})]}),(0,o.jsxs)("filter",{id:"filter2_b_16706:4215",x:"1",y:"1",width:"73",height:"56",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,o.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,o.jsx)("feGaussianBlur",{in:"BackgroundImage",stdDeviation:"5"}),(0,o.jsx)("feComposite",{in2:"SourceAlpha",operator:"in",result:"effect1_backgroundBlur_16706:4215"}),(0,o.jsx)("feBlend",{in:"SourceGraphic",in2:"effect1_backgroundBlur_16706:4215",result:"shape"})]}),(0,o.jsxs)("linearGradient",{id:"paint0_linear_16706:4215",x1:"-7.028",y1:"-5.057",x2:"39.549",y2:"57.081",gradientUnits:"userSpaceOnUse",children:[(0,o.jsx)("stop",{stopColor:"#6100FF"}),(0,o.jsx)("stop",{offset:"1",stopColor:"#0FF",stopOpacity:"0"})]}),(0,o.jsxs)("linearGradient",{id:"paint1_linear_16706:4215",x1:"30.296",y1:"-20.945",x2:"30.406",y2:"46.221",gradientUnits:"userSpaceOnUse",children:[(0,o.jsx)("stop",{stopColor:"#0075FF"}),(0,o.jsx)("stop",{offset:"1",stopColor:"#00A3FF",stopOpacity:"0"})]}),(0,o.jsx)("clipPath",{id:"clip0_16706:4215",children:(0,o.jsx)("rect",{width:"54",height:"36",rx:"4",fill:"#fff"})})]})]}),B_=(0,o.jsxs)("svg",{width:"54",height:"36",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,o.jsxs)("g",{clipPath:"url(#clip0_16706:4223)",children:[(0,o.jsx)("rect",{width:"54",height:"36",rx:"4",fill:"#030A12"}),(0,o.jsx)("g",{filter:"url(#filter0_f_16706:4223)",children:(0,o.jsx)("circle",{cx:"25.428",cy:"22.291",r:"36.428",fill:"url(#paint0_linear_16706:4223)"})}),(0,o.jsx)("g",{filter:"url(#filter1_f_16706:4223)",children:(0,o.jsx)("path",{d:"M37.338-23.945l31.75 54.993h-63.5l31.75-54.993z",fill:"url(#paint1_linear_16706:4223)"})}),(0,o.jsx)("g",{filter:"url(#filter2_bi_16706:4223)",children:(0,o.jsx)("rect",{x:"11",y:"11",width:"53",height:"36",rx:"4",fill:"#000",fillOpacity:".9"})})]}),(0,o.jsxs)("defs",{children:[(0,o.jsxs)("filter",{id:"filter0_f_16706:4223",x:"-31.004",y:"-34.142",width:"112.866",height:"112.866",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,o.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,o.jsx)("feBlend",{in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),(0,o.jsx)("feGaussianBlur",{stdDeviation:"10.002",result:"effect1_foregroundBlur_16706:4223"})]}),(0,o.jsxs)("filter",{id:"filter1_f_16706:4223",x:"-9.415",y:"-38.948",width:"93.507",height:"85",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,o.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,o.jsx)("feBlend",{in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),(0,o.jsx)("feGaussianBlur",{stdDeviation:"7.502",result:"effect1_foregroundBlur_16706:4223"})]}),(0,o.jsxs)("filter",{id:"filter2_bi_16706:4223",x:"1",y:"1",width:"73",height:"56",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,o.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,o.jsx)("feGaussianBlur",{in:"BackgroundImage",stdDeviation:"5"}),(0,o.jsx)("feComposite",{in2:"SourceAlpha",operator:"in",result:"effect1_backgroundBlur_16706:4223"}),(0,o.jsx)("feBlend",{in:"SourceGraphic",in2:"effect1_backgroundBlur_16706:4223",result:"shape"}),(0,o.jsx)("feColorMatrix",{in:"SourceAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,o.jsx)("feOffset",{}),(0,o.jsx)("feGaussianBlur",{stdDeviation:".5"}),(0,o.jsx)("feComposite",{in2:"hardAlpha",operator:"arithmetic",k2:"-1",k3:"1"}),(0,o.jsx)("feColorMatrix",{values:"0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.3 0"}),(0,o.jsx)("feBlend",{in2:"shape",result:"effect2_innerShadow_16706:4223"})]}),(0,o.jsxs)("linearGradient",{id:"paint0_linear_16706:4223",x1:"-3.469",y1:"-9.117",x2:"47.379",y2:"58.72",gradientUnits:"userSpaceOnUse",children:[(0,o.jsx)("stop",{stopColor:"#6100FF"}),(0,o.jsx)("stop",{offset:"1",stopColor:"#0FF",stopOpacity:"0"})]}),(0,o.jsxs)("linearGradient",{id:"paint1_linear_16706:4223",x1:"37.338",y1:"-23.945",x2:"37.338",y2:"49.379",gradientUnits:"userSpaceOnUse",children:[(0,o.jsx)("stop",{stopColor:"#0075FF"}),(0,o.jsx)("stop",{offset:"1",stopColor:"#00A3FF",stopOpacity:"0"})]}),(0,o.jsx)("clipPath",{id:"clip0_16706:4223",children:(0,o.jsx)("rect",{width:"54",height:"36",rx:"4",fill:"#fff"})})]})]});class U_ extends l.PureComponent{constructor(t){super(t),(0,B.A)(this,"LINK_OPTIONS",[{label:I18N.PreferenceBar.not_show,value:"0"},{label:I18N.PreferenceBar.lightning,value:"1"},{label:I18N.PreferenceBar.link_line_lightning,value:"2"}]),(0,B.A)(this,"SELECT_OPTIONS",[{label:I18N.PreferenceBar.intersect_select,value:"0"},{label:I18N.PreferenceBar.contain_select,value:"1"}]),(0,B.A)(this,"LINK_TRANSITION_OPTIONS",[{label:I18N.PreferenceBar.link_no_ani,value:"0"},{label:I18N.PreferenceBar.link_move,value:"1"}]),(0,B.A)(this,"NAV_LIST_OPTIONS",[{nav:"common",text:I18N.PreferenceBar.nav_common,icon:"design/preferencePanel/nav/common"},{nav:"actions",text:I18N.PreferenceBar.actions,icon:"design/preferencePanel/nav/actions"},{nav:"text",text:I18N.PreferenceBar.text,icon:"design/preferencePanel/nav/text"}]),(0,B.A)(this,"DEFAULT_FONT_SIZE_KEY_2_TEXT_INHERIT_KEY_MAP",{[Gd.p9]:kh.qL.Text,[Gd.MD]:kh.qL.Annotation,[Gd.mG]:kh.qL.Elbow}),(0,B.A)(this,"setElementRef",n=>this.$element=n),(0,B.A)(this,"handTooltip",()=>{const n=this.$element&&this.$element.querySelector(".link-action > label:nth-child(3)");n&&(n.setAttribute("aria-label",I18N.PreferenceBar.link_warn_tips),n.setAttribute("data-microtip-position","right"),n.setAttribute("role","tooltip"))}),(0,B.A)(this,"handleTheme",n=>{const{theme:a}=n.currentTarget.dataset;this.props.dispatch({type:"entry:update:preference",payload:{theme:a}}),this.props.dispatch({type:"entry:init:ruler:canvas"})}),(0,B.A)(this,"handleRulerChange",n=>{this.props.dispatch({type:"entry:update:preference",payload:{ruler:n,show_ruler_line:!0}})}),(0,B.A)(this,"handleDragModeChange",n=>{this.props.dispatch({type:"entry:update:preference",payload:{show_drag_mode:n}})}),(0,B.A)(this,"handleInheritTextStyleChange",n=>{(0,kh.SO)(n),this.props.dispatch({type:"entry:update:preference",payload:{inherit_text_style:n}})}),(0,B.A)(this,"handleClosePanel",()=>{this.props.dispatch({type:"preference:open:appearance"})}),(0,B.A)(this,"handleLinkDisplayChange",n=>{const{dispatch:a}=this.props;a({type:"entry:update:preference",payload:{link_display:Number(n)}}),a({type:"entry:refresh:link-list"})}),(0,B.A)(this,"handleSelectChange",n=>{const{dispatch:a}=this.props;a({type:"entry:update:preference",payload:{contain_select:!!+n}})}),(0,B.A)(this,"handleStateLinkChange",n=>{const{dispatch:a}=this.props;a({type:"entry:update:preference",payload:{state_link_default_transition:Number(n)}})}),(0,B.A)(this,"handleOpenOverlayDefaultTransitionChange",n=>{const{dispatch:a}=this.props;a({type:"entry:update:preference",payload:{open_overlay_default_transition:Number(n)}})}),(0,B.A)(this,"handleSwapOverlayDefaultTransitionChange",n=>{const{dispatch:a}=this.props;a({type:"entry:update:preference",payload:{swap_overlay_default_transition:Number(n)}})}),(0,B.A)(this,"handlePanelLinkChange",n=>{const{dispatch:a}=this.props;a({type:"entry:update:preference",payload:{panel_link_default_transition:Number(n)}})}),(0,B.A)(this,"handleUseNativeEyedropperChange",n=>{this.props.dispatch({type:"entry:update:preference",payload:{use_native_eyedropper:n}})}),(0,B.A)(this,"handleNavList",n=>{const{nav:a}=n.currentTarget.dataset;this.props.dispatch({type:"preference:update:state",payload:{preferenceNav:a}})}),(0,B.A)(this,"handleTextDefaultSetting",(n,a,i)=>{(0,Gd.$R)(n,a,i),this.props.dispatch({type:"entry:update:preference",payload:{[n]:JSON.stringify(a)}})}),(0,B.A)(this,"handleTextDefaultSize",(n,a)=>{const{defaultFontSize:i}=this.props;this.handleTextDefaultSetting(Gd.Q6,{...(0,Gd._0)()[Gd.Q6],...i,[n]:Number(a)},()=>{(0,kh.p_)(this.DEFAULT_FONT_SIZE_KEY_2_TEXT_INHERIT_KEY_MAP[n])})}),(0,B.A)(this,"handleTextDefaultFamily",n=>{const{fontWeight:a,fontStyle:i}=n;a&&(n.bold=a==="bold"),i&&(n.italic=i==="italic"),this.handleTextDefaultSetting(Gd.RF,n,()=>{(0,kh.p_)()})}),(0,B.A)(this,"renderCommonPanelElement",()=>{const{theme:n,isRulerShow:a,isDragModeShow:i,isContainSelect:c,linkDisplayIndex:d,useNativeEyedropper:p}=this.props,{LINK_OPTIONS:h,SELECT_OPTIONS:m}=this;return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("ul",{className:"setting-list theme",children:(0,o.jsxs)("li",{children:[(0,o.jsx)("span",{className:"setting-item",children:I18N.PreferenceBar.theme}),(0,o.jsxs)("div",{className:"theme-options",children:[(0,o.jsx)("span",{"data-theme":"light",className:C()({"is-selected":n==="light"}),onClick:this.handleTheme,children:R_}),(0,o.jsx)("span",{"data-theme":"dark",className:C()({"is-selected":n==="dark"}),onClick:this.handleTheme,children:B_})]})]})}),(0,o.jsx)("div",{className:"line common-panel"}),(0,o.jsxs)("ul",{className:"setting-list common",children:[(0,o.jsxs)("li",{children:[(0,o.jsx)("span",{className:"setting-item",children:I18N.PreferenceBar.link}),(0,o.jsx)("span",{className:"setting-option",children:(0,o.jsx)(co.A,{className:"actions link-action",size:"small",optionList:h,value:String(d),onToggle:this.handleLinkDisplayChange})})]}),(0,o.jsxs)("li",{children:[(0,o.jsxs)("span",{className:"setting-item",children:[I18N.PreferenceBar.select,(0,o.jsx)(gc.A,{content:I18N.PreferenceBar.tips_for_select,direction:"down",children:(0,o.jsx)(xt.C,{className:"guides-svg",name:"design/preferencePanel/nav/tips"})})]}),(0,o.jsx)("span",{className:"setting-option",children:(0,o.jsx)(co.A,{className:"actions link-action",size:"small",optionList:m,value:String(+c),onToggle:this.handleSelectChange})})]}),(0,o.jsxs)("li",{children:[(0,o.jsx)("span",{className:"setting-item",children:I18N.PreferenceBar.scale_length}),(0,o.jsx)("span",{className:"setting-option has-switch",children:(0,o.jsx)(au.A,{size:"small",isIOS:!0,isChecked:a,onChange:this.handleRulerChange})})]}),(0,o.jsxs)("li",{children:[(0,o.jsxs)("span",{className:"setting-item",children:[I18N.PreferenceBar.drag_mode,(0,o.jsx)(gc.A,{content:I18N.PreferenceBar.tips_for_drag_mode,direction:"down",children:(0,o.jsx)(xt.C,{className:"guides-svg",name:"design/preferencePanel/nav/tips"})})]}),(0,o.jsx)("span",{className:"setting-option has-switch",children:(0,o.jsx)(au.A,{size:"small",isIOS:!0,isChecked:i,onChange:this.handleDragModeChange})})]}),(0,yd.uF)()&&(0,yd.b8)()&&(0,o.jsxs)("li",{children:[(0,o.jsx)("span",{className:"setting-item",children:"\u53D6\u8272\u5668\u517C\u5BB9\u6A21\u5F0F"}),(0,o.jsx)("span",{className:"setting-option has-switch",children:(0,o.jsx)(au.A,{size:"small",isIOS:!0,isChecked:p,onChange:this.handleUseNativeEyedropperChange})})]})]})]})}),(0,B.A)(this,"renderActionsPanelElement",()=>{const{stateLinkDefaultTransition:n,panelLinkDefaultTransition:a,openOverlayDefaultTransition:i,swapOverlayDefaultTransition:c}=this.props,{LINK_TRANSITION_OPTIONS:d}=this;return(0,o.jsx)(o.Fragment,{children:(0,o.jsxs)("ul",{className:"setting-list action",children:[(0,o.jsx)("li",{children:(0,o.jsx)("span",{className:"setting-item",style:{fontWeight:500},children:I18N.PreferenceBar.panel_default_ani})}),(0,o.jsxs)("li",{children:[(0,o.jsx)("span",{className:"setting-item",children:I18N.PreferenceBar.switch_artboard}),(0,o.jsx)("span",{className:"setting-option",children:(0,o.jsx)(co.A,{className:"actions link-action",size:"small",optionList:d,value:String(n),onToggle:this.handleStateLinkChange})})]}),(0,o.jsxs)("li",{children:[(0,o.jsx)("span",{className:"setting-item",children:I18N.PreferenceBar.link_widget_change}),(0,o.jsx)("span",{className:"setting-option",children:(0,o.jsx)(co.A,{className:"actions link-action",size:"small",optionList:d,value:String(a),onToggle:this.handlePanelLinkChange})})]}),(0,o.jsxs)("li",{children:[(0,o.jsx)("span",{className:"setting-item",children:I18N.SettingPanel.open_overlay}),(0,o.jsx)("span",{className:"setting-option",children:(0,o.jsx)(co.A,{className:"actions link-action",size:"small",optionList:d,value:String(i),onToggle:this.handleOpenOverlayDefaultTransitionChange})})]}),(0,o.jsxs)("li",{children:[(0,o.jsx)("span",{className:"setting-item",children:I18N.SettingPanel.swap_overlay}),(0,o.jsx)("span",{className:"setting-option",children:(0,o.jsx)(co.A,{className:"actions link-action",size:"small",optionList:d,value:String(c),onToggle:this.handleSwapOverlayDefaultTransitionChange})})]})]})})}),(0,B.A)(this,"renderTextPanelElement",()=>{const{isInheritTextStyle:n,defaultFontFamily:a,defaultFontSize:i}=this.props,{fontFamily:c,fontWeight:d,fontStyle:p}={...(0,Gd._0)()[Gd.RF],...a},{richText:h,annotation:m,elbow:x}={...(0,Gd._0)()[Gd.Q6],...i};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("ul",{className:"setting-list text-style-inherit",children:(0,o.jsxs)("li",{children:[(0,o.jsxs)("span",{className:"setting-item",children:[I18N.PreferenceBar.text_style_inherit,(0,o.jsx)(gc.A,{content:I18N.PreferenceBar.tips_for_text_style_inherit,direction:"down",children:(0,o.jsx)(xt.C,{className:"guides-svg",name:"design/preferencePanel/nav/tips"})})]}),(0,o.jsx)("span",{className:"setting-option has-switch",children:(0,o.jsx)(au.A,{size:"small",isIOS:!0,isChecked:n,onChange:this.handleInheritTextStyleChange})})]})}),(0,o.jsx)("div",{className:"line text-panel"}),(0,o.jsxs)("ul",{className:"setting-list font-default-setting",children:[(0,o.jsx)("li",{children:(0,o.jsxs)("span",{className:"setting-item",style:{fontWeight:500},children:[I18N.PreferenceBar.text_default_value,(0,o.jsx)(gc.A,{content:(0,o.jsx)("div",{style:{padding:"8px 10px"},dangerouslySetInnerHTML:{__html:I18N.PreferenceBar.tips_for_text_default_value}}),direction:"down",children:(0,o.jsx)(xt.C,{className:"guides-svg",name:"design/preferencePanel/nav/tips"})})]})}),(0,o.jsxs)("li",{children:[(0,o.jsx)("span",{className:"setting-item",children:I18N.PreferenceBar.default_font_family}),(0,o.jsx)("span",{className:"setting-option",children:(0,o.jsx)(X2.X,{dispatch:()=>null,wbiVersion:3,fontFamily:c,fontWeight:d,fontStyle:p,onChangeBatch:v=>this.handleTextDefaultFamily(v),positionRelative:{yOffset:114,xOffset:251},subMenuDirection:"left",subMenuLeftOffset:16,isShowFontWeightLabel:!0})})]}),(0,o.jsxs)("li",{children:[(0,o.jsx)("span",{className:"setting-item",children:I18N.PreferenceBar.default_font_size_for_richText}),(0,o.jsx)("span",{className:"setting-option",children:(0,o.jsx)(wg.A,{disabled:!1,fontSize:h,handleChange:v=>this.handleTextDefaultSize(Gd.p9,v),less12UseTooltip:!0})})]}),(0,o.jsxs)("li",{children:[(0,o.jsx)("span",{className:"setting-item",children:I18N.PreferenceBar.default_font_size_for_annotation}),(0,o.jsx)("span",{className:"setting-option",children:(0,o.jsx)(wg.A,{disabled:!1,fontSize:m,handleChange:v=>this.handleTextDefaultSize(Gd.MD,v),less12UseTooltip:!0})})]}),(0,o.jsxs)("li",{children:[(0,o.jsx)("span",{className:"setting-item",children:I18N.PreferenceBar.default_font_size_for_elbow}),(0,o.jsx)("span",{className:"setting-option",children:(0,o.jsx)(wg.A,{disabled:!1,fontSize:x,handleChange:v=>this.handleTextDefaultSize(Gd.mG,v),less12UseTooltip:!0})})]})]})]})}),(0,B.A)(this,"renderRightPanelElement",()=>{const{preferenceNav:n}=this.props;return{common:this.renderCommonPanelElement,actions:this.renderActionsPanelElement,text:this.renderTextPanelElement}[n]()}),this.bindTooltip=!1,this.timer=void 0,this.tmpDefaultFontFamilyMap={}}componentDidUpdate(){this.bindTooltip||(this.handTooltip(),this.bindTooltip=!0)}componentWillUnmount(){this.timer&&clearTimeout(this.timer)}render(){const{isShow:t,preferenceNav:n}=this.props,{NAV_LIST_OPTIONS:a}=this;return t?(0,o.jsxs)(D_,{ref:this.setElementRef,children:[(0,o.jsx)("a",{className:"icon-box",onClick:this.handleClosePanel,children:(0,o.jsx)(xt.C,{className:"times-icon",name:"general/times"})}),(0,o.jsxs)("div",{className:"left-nav",children:[(0,o.jsx)("p",{className:"panel-title",children:I18N.PreferenceBar.favorite_set}),(0,o.jsx)("ul",{className:"nav-list",children:a.map((i,c)=>(0,o.jsxs)("li",{className:C()({"is-active":n===i.nav}),"data-nav":i.nav,onClick:this.handleNavList,children:[(0,o.jsx)(xt.C,{name:i.icon}),(0,o.jsx)("span",{children:i.text})]},c))})]}),(0,o.jsx)("div",{className:"right-panel",children:this.renderRightPanelElement()})]}):null}}const O_=e=>bg.A[(0,te.O4)(e)].color_btn_secondary_active,F_=(0,I.Mz)([te.vA,te.qT,te.PI,te.eZ,te.O4,O_,te.vZ,te.Jv,me.W4,te.EK,te.Bl,te.D9,te.KV,te.fg,te.AM,me.PL,te.tW,te.AJ],(e,t,n,a,i,c,d,p,h,m,x,v,A,k,R,F,Z,G)=>{const{isExperience:ee}=h;return{isShow:e,isRulerShow:t,isDragModeShow:n,isInheritTextStyle:a,theme:i,canvasBg:c,isContainSelect:d,linkDisplayIndex:p,isExperience:ee,stateLinkDefaultTransition:m,panelLinkDefaultTransition:x,openOverlayDefaultTransition:v,swapOverlayDefaultTransition:A,useNativeEyedropper:R,preferenceNav:k,rootProject:F,defaultFontFamily:Z,defaultFontSize:G}}),V_=(0,r.Ng)(e=>F_(e))(U_),z_=M.Ay.div.withConfig({displayName:"styles__StyledLoadingOverlay",componentId:"sc-1mzdeoi-0"})(["position:fixed;z-index:1051;top:0;left:0;bottom:0;right:0;background:",";display:flex;flex-direction:column;justify-content:center;align-items:center;.loading-indicator{margin-top:-20vh;width:70px;height:70px;}.message{margin-top:10px;font-size:16px;line-height:28px;color:",";}"],e=>e.theme.color_loading_mask,e=>e.theme.color_text_L1);function W_(e,t){t===void 0&&(t=document.body);const n=l.useRef(document.createElement("div"));return(0,l.useEffect)(()=>(n.current.id=e,t.appendChild(n.current),()=>{n.current.remove()}),[n,e,t]),n.current}function H_(){const[e,t]=(0,l.useState)(!1),[n,a]=(0,l.useState)("");MB.safeLoading=c=>{c===!1?t(!1):(a(c),t(!0))},MB.safeDelayLoading=c=>{c===!1?setTimeout(()=>{t(!1)},350):(a(c),t(!0))};const i=W_("mb-loading-overlay");return(0,Ki.createPortal)(e&&(0,o.jsxs)(z_,{isOpen:e,onClose:()=>t(!1),children:[(0,o.jsx)(E1.T,{className:"loading-indicator"}),(0,o.jsx)("span",{className:"message",dangerouslySetInnerHTML:{__html:n}})]}),i)}var n2=s(77938),gl=s(81973);const G_=M.Ay.div.withConfig({displayName:"styles__StyledSliderBar",componentId:"sc-1bn9bu1-0"})(["display:flex;height:100%;align-items:center;position:relative;padding-left:24px;.tab-item{color:",";font-size:14px;font-family:PingFang SC;cursor:pointer;height:100%;display:flex;align-items:center;&:not(:first-child){margin-left:14px;}&.tab-sel{color:",";font-weight:500;border-top:2px solid rgba(0,0,0,0);border-bottom:2px solid ",";box-sizing:border-box;}}"],e=>e.theme.color_share_switch_sel_color,e=>e.theme.color_text_L1,e=>e.theme.color_text_L0),Z_=e=>{let{tabs:t,activeTab:n,className:a,handleChangeTab:i}=e;return(0,o.jsx)(G_,{className:a,children:t.map((c,d)=>(0,o.jsx)("div",{className:C()("tab-item",{"tab-sel":n===c.key}),id:"tab-item-"+d,onClick:()=>i(c.key),children:c.label},d))})},K_=(0,l.memo)(Z_);var ps=s(27660);const Wx=["Selena Ellen","Wallis Bird","David Robinson","Clare","Paul Harrod","Hugh Johnson","Zora Christopher","Maxwell Raglan","Gabrielle Monroe","Jennifer Belle","Nelly Jefferson","Helen","Tony Stark","Steve Rogers","Thor","Bruce Banner","Natasha Romanoff","Clint Barton","James Rhodes","Scott Lang","Carol Danvers","Harold Hogan","Stephen Strange","Peter Parker","Wanda Maximoff","Sam Wilson","Bucky Barnes","Peter Quill","Nick Fury","Loki","Gamora","Thanos"],Y_=["\u738B\u6CFD","\u5B59\u5FC6\u67AB","\u738B\u4E50\u5EB7","\u5468\u4E50\u5FC3","\u738B\u7B11\u5929","\u80E1\u5141","\u738B\u6F2B","\u8D75\u96E8","\u674E\u4E66\u6613","\u674E\u5929\u6CFD","\u674E\u6021\u60A6","\u6F58\u590F\u5F64","\u674E\u8D6B","\u6BB5\u95EE\u8587","\u5085\u5F6D\u8584","\u5E9E\u6167","\u7EAA\u5E7F","\u987E\u4F26","\u6768\u9759\u4E91","\u4E01\u66FC\u5BB9","\u5F20\u4E09","\u674E\u56DB","\u738B\u4E94","\u5218\u5927\u5927","\u80E1\u5C0F\u5C0F"],Hx=ENV.IS_WONDER_SHARE?["Ace","Bear","Champ","Duke","Flash","Gigi","Hank","Izzy","Jazz","Kiki","Leo","Max","Nova","Ozzy","Pepper","Quinn","Remy","Spike","Taz","Ziggy"]:["\u7528\u623753252352","\u7528\u62371937822","\u8FD9\u662F\u4E00\u4E2A\u5F88\u957F\u7684ID","\u5C0F\u5F20\u5C0F\u5F20\u81EA\u6709\u4E3B\u5F20","\u5C0F\u5468\u5C0F\u5468\u62DB\u5F85\u4E0D\u5468","\u5C0F\u5F90\u5C0F\u5F90\u662F\u6761\u54B8\u9C7C","\u58A8\u8FF9\u7684\u7F57\u590F","\u4ECE\u4F17\u7684\u963F\u5E0C","\u5931\u7720\u5F17\u6D1B\u4F0A\u5FB7","\u81EA\u4FE1\u963F\u5FB7\u52D2"],wm=["123123123@qq.com","987987987@qq.com","135792468@qq.com","246813579@qq.com","192837465@qq.com","asdf@gmail.com","zxcv.b@gmail.com","qwer@gmail.com","awsd.f@gmail.com","ta.rewsf@gmail.com","fdsfwe_sdd@gmail.com","g.hjkl@163.com","rewqr_88@163.com","panzer@163.com","nuttertools@163.com","leavemealone@163.com","bigbang@163.com","link@company.name","zelta@company.name","mipha@company.name","urbosa@company.name","revali@company.name","daruk@company.name"],w5=["021-9100212","021-8954555","021-8971245","0431-76782134","0431-90892314","0431-32413098","0831-29922849","0831-33319000","025-78012123","025-33312231"],Gx=["19113212388","19289999000","19333312231","19490982231","19533319000","19612348970","19729922849","19876782134","19578012123","19434129071"],Zx=ENV.IS_WONDER_SHARE?["The Importance of User-Centered Design in Product Development","How to Conduct Effective User Research for Product Design","The Role of Prototyping in Product Design","Designing for Accessibility: Inclusive Product Design","Sustainable Product Design: Balancing Functionality and Environmental Impact","The Future of Product Design: Trends and Predictions","Designing for Emotion: The Power of Emotional Design in Product Development","Designing for Mobile: Best Practices for Mobile Product Design","The Psychology of Color in Product Design","Designing for Brand Identity: The Role of Product Design in Branding"]:["\u6700\u4F73\u4EA7\u54C1\u7BA1\u7406\u4E66\u7C4D\u5728\u6B64\uFF0C\u83B7\u53D6\u804C\u573A\u4E0A\u5347\u79D8\u7C4D","\u63A2\u7D22\u4E865\u79CD\u6539\u5584\u79FB\u52A8\u7528\u6237\u4F53\u9A8C\u7684\u7EDD\u4F73\u505A\u6CD5\uFF0C\u8FDB\u6765\u5B66\uFF01","\u3010\u901A\u77E5\u3011\u5FC5\u8BFB\uFF0C\u518D\u4E0D\u770B\u5C31\u665A\u5566","\u5E72\u8D27|\u5B66\u4F1A\u5199\u7B80\u5386\uFF0C\u8F7B\u677E\u62FFoffer","\u5DE5\u4F5C\u8BA1\u5212\u4E0D\u4F1A\u5199\uFF1F\u8FD9\u4E2A\u8D85\u8D5E\u5DE5\u5177\u9001\u7ED9\u4F60","\u6765\u5B66\u4E60\uFF0110\u6761\u4F60\u7EDD\u5BF9\u4E0D\u80FD\u6253\u7834\u7684\u4EA4\u4E92\u8BBE\u8BA1\u89C4\u5219","\u4F60\u5FC5\u987B\u77E5\u9053\u76848\u79CD\u4EA7\u54C1\u8BBE\u8BA1\u80FD\u529B\u63D0\u5347\u6280\u5DE7","\u4EA7\u54C1\u7ECF\u7406\u5FC5\u5907\u5E72\u8D27\u2014\u2014\u5B9E\u7528\u9AD8\u6548\u6C9F\u901A\u8BDD\u672F","\u6253\u5DE5\u4EBA\u5FC5\u5907\uFF01\u63D0\u9AD8\u5DE5\u4F5C\u6548\u7387\u7684\u7535\u8111\u5FEB\u6377\u952E","\u9762\u8BD5\u653B\u7565\uFF1A\u8D85\u7EA7\u52A0\u5206\u768410\u4E2A\u9762\u8BD5\u6EE1\u5206\u5C0F\u6280\u5DE7"],Kx=ENV.IS_WONDER_SHARE?[["Putting the user at the center of the design process is crucial for successful product development."],["Effective user research is essential for creating products that meet user needs and preferences."],["Prototyping is a valuable tool in the product design process, allowing designers to test and refine their ideas before finalizing a design."],["Designing products with accessibility in mind is important for creating inclusive and user-friendly products."],["Sustainable product design is about balancing the functionality of a product with its environmental impact"],["Keeping up with design trends and predicting future changes is important for staying ahead in the product design industry"],["Emotional design can create a stronger connection between users and products, leading to increased engagement and loyalty"],["Designing for mobile requires a unique set of considerations and best practices to ensure a seamless user experience"],["The use of color in product design can have a significant impact on user perception and behavior"],["Product design plays a crucial role in establishing and communicating a brand's identity"]]:[["\u5982\u679C\u4F60\u65E0\u6CD5\u7B80\u6D01\u7684\u8868\u8FBE\u4F60\u7684\u60F3\u6CD5\uFF0C\u90A3\u53EA\u8BF4\u660E\u4F60\u8FD8\u4E0D\u591F\u4E86\u89E3\u5B83\u3002","-- \u963F\u5C14\u4F2F\u7279\xB7\u7231\u56E0\u65AF\u5766"],["Imagination is more important than knowledge.","\u60F3\u8C61\u529B\u6BD4\u77E5\u8BC6\u66F4\u91CD\u8981\u3002"],["Small is the number of people who see with their eyes and think with their minds.","\u53EA\u6709\u5C11\u6570\u4EBA\u5728\u7528\u4ED6\u4EEC\u81EA\u5DF1\u7684\u773C\u775B\u89C2\u5BDF\u3001\u7528\u4ED6\u4EEC\u81EA\u5DF1\u7684\u5934\u8111\u601D\u8003\u3002"],["Logic will get you from A to B. Imagination will take you everywhere.","\u903B\u8F91\u4F1A\u628A\u4F60\u4ECEA\u5E26\u5230B\uFF0C\u60F3\u8C61\u529B\u80FD\u5E26\u4F60\u53BB\u4EFB\u4F55\u5730\u65B9\u3002"],["\u201CA consistent experience is a better experience.\u201D\u200A\u2014\u200AMark Eberman","\u201C\u4E00\u81F4\u7684\u4F53\u9A8C\u662F\u66F4\u597D\u7684\u4F53\u9A8C\u3002\u201D"],["A problem well stated is a problem half solved.\u201D\u200A\u2014\u200ACharles Kettering","\u201C\u9610\u8FF0\u6E05\u695A\u95EE\u9898\u5C31\u89E3\u51B3\u4E86\u4E00\u534A\u3002\u201D"],["\u201CCreativity is allowing yourself to make mistakes. Design is knowing which ones to keep.\u201D\u200A\u2014\u200AScott Adams","\u201C\u521B\u9020\u5141\u8BB8\u72AF\u9519\uFF0C\u8BBE\u8BA1\u8981\u77E5\u9053\u4FDD\u7559\u54EA\u4E9B\u3002\u201D"],["\u201CWant your users to fall in love with your designs? Fall in love with your users.\u201D\u200A\u2014\u200ADana Chisnell","\u201C\u60F3\u8BA9\u7528\u6237\u7231\u4E0A\u4F60\u7684\u8BBE\u8BA1\uFF0C\u5148\u7231\u4E0A\u4F60\u7684\u7528\u6237\u3002\u201D"],["\u201CGood design is the most important way to differentiate ourselves from our competitors.\u201D\u200A\u2014\u200AYun Jong Yong","\u201C\u597D\u7684\u8BBE\u8BA1\u662F\u6211\u4EEC\u4E0E\u7ADE\u4E89\u5BF9\u624B\u4FDD\u6301\u5DEE\u8DDD\u6700\u91CD\u8981\u7684\u65B9\u5F0F\u3002\u201D"],["\u201CIf you think good design is expensive, you should look at the cost of bad design.\u201DDr. Ralf Speth","\u201C\u5982\u679C\u4F60\u89C9\u5F97\u597D\u7684\u8BBE\u8BA1\u65F6\u6602\u8D35\u7684\uFF0C\u4F60\u5E94\u8BE5\u770B\u770B\u574F\u8BBE\u8BA1\u7684\u6210\u672C\u3002\u201D"],["\u201CLike all forms of design, visual design is about problem-solving, not about personal preference or unsupported opinion.\u201D\u200A\u2014\u200ABob Baxley","\u201C\u50CF\u5176\u4ED6\u8BBE\u8BA1\u4E00\u6837\uFF0C\u89C6\u89C9\u8BBE\u8BA1\u4E5F\u662F\u89E3\u51B3\u95EE\u9898\uFF0C\u4E0D\u662F\u4E2A\u4EBA\u559C\u597D\u3002\u201D"],["\u201CBecause every person knows what he likes, every person thinks he is an expert on user interfaces.\u201D\u200A\u2014\u200APaul Heckel","\u201C\u56E0\u4E3A\u6BCF\u4E2A\u4EBA\u90FD\u77E5\u9053\u81EA\u5DF1\u559C\u6B22\u4EC0\u4E48\uFF0C\u6240\u4EE5\u6BCF\u4E2A\u4EBA\u90FD\u89C9\u5F97\u81EA\u5DF1\u662F\u7528\u6237\u754C\u9762\u4E13\u5BB6\u3002\u201D"],["\u201CIf you find an element of your interface requires instructions, then you need to redesign it.\u201D\u200A\u2014\u200ADan Rubin","\u201C\u5982\u679C\u4F60\u53D1\u73B0\u4F60\u754C\u9762\u4E2D\u67D0\u4E2A\u5143\u7D20\u9700\u8981\u8BF4\u660E\uFF0C\u4F60\u9700\u8981\u91CD\u65B0\u8BBE\u8BA1\u3002\u201D"],["\u201CGenius is the ability to reduce the complicated to the simple.\u201D\u200A\u2014\u200AC.W. Ceram","\u201C\u5929\u624D\u5C31\u662F\u5C06\u590D\u6742\u95EE\u9898\u7B80\u5355\u5316\u7684\u4EBA\u3002\u201D"]],Yx=ENV.IS_WONDER_SHARE?["www.behance.net","www.dribbble.com","www.awwwards.com","www.design-milk.com","www.core77.com","www.dezeen.com","www.smashingmagazine.com","www.designboom.com","www.creativebloq.com","mockitt.wondershare.com"]:["https://www.baidu.com","https://www.google.com","https://www.modao.cc","https://36kr.com/","https://www.qq.com/","https://www.sina.com.cn/","https://www.163.com/","https://www.taobao.com/","https://www.bilibili.com/","https://www.douban.com/","http://www.people.com.cn/","http://www.eastmoney.com/","https://www.zhihu.com/","https://www.youku.com/","http://www.iqiyi.com/","https://www.kickstarter.com/","https://www.behance.net/","https://dribbble.com/","https://www.youtube.com/","https://muz.li/"],Xx=ENV.IS_WONDER_SHARE?{city:["1600 Pennsylvania Avenue NW, Washington, DC 20500","221B Baker Street, London NW1 6XE, United Kingdom","1 Infinite Loop, Cupertino, CA 95014","1600 Amphitheatre Parkway, Mountain View, CA 94043","350 Fifth Avenue, New York, NY 10118","123 Main Street, Anytown, USA 12345","555 Park Avenue, Suite 101, Cityville, CA 98765","987 Elm Street, Apt. 3B, Smalltown, IL 54321","2468 Oak Drive, Unit 6, Bigcity, NY 12345","789 Maple Lane, Suite 2A, Villageville, TX 67890"]}:{city:["\u5317\u4EAC\u5E02\u671D\u9633\u533A","\u5317\u4EAC\u5E02\u6D77\u6DC0\u533A","\u4E0A\u6D77\u5E02\u666E\u9640\u533A","\u4E0A\u6D77\u5E02\u6D66\u4E1C\u65B0\u533A","\u6DF1\u5733\u5E02\u5357\u5C71\u533A","\u6DF1\u5733\u5E02\u5B9D\u5B89\u533A","\u5E7F\u5DDE\u5E02\u756A\u79BA\u533A","\u5E7F\u5DDE\u5E02\u8D8A\u79C0\u533A"],street:["\u4E1C\u5927\u8857","\u897F\u5927\u8857","\u5317\u5927\u8857","\u5357\u5927\u8857","\u79D1\u6280\u8DEF","\u4EBA\u6C11\u8DEF"],building:["\u7EFF\u8272\u5BB6\u56ED 17\u53F7\u697C","\u521B\u65B0\u5B75\u5316\u5668","\u94F6\u5EA7\u5927\u53A6 A\u5EA7","\u666F\u5929soho","\u9F99\u8475\u5C0F\u533A 7\u680B","\u79D1\u6280\u4EA7\u4E1A\u56ED B1\u5EA7"],floor:["103","1207","2406","606","1701","102","313","502"]},X_=["\u4E2D\u56FD","\u7F8E\u56FD","\u82F1\u56FD","\u6CD5\u56FD","\u610F\u5927\u5229","\u5FB7\u56FD","\u4FC4\u7F57\u65AF","\u5370\u5EA6","\u5C3C\u65E5\u5229\u4E9A","\u52A0\u62FF\u5927","\u65E5\u672C","\u97E9\u56FD","\u57C3\u53CA","\u5DF4\u897F","\u8377\u5170","\u897F\u73ED\u7259","\u745E\u58EB","\u8D8A\u5357","\u6FB3\u5927\u5229\u4E9A","\u58A8\u897F\u54E5"],Qx=ENV.IS_WONDER_SHARE?["United States","Canada","Mexico","Brazil","United Kingdom","France","Germany","Spain","Italy","Russia","China","Japan","India","Australia","South Africa","Egypt","Saudi Arabia","United Arab Emirates","Argentina","Chile"]:["China","America","Britain","France","Italy","Germany","Russia","India","Nigeria","Canada","Japan","Korea","Egypt","Brazil","Netherlands","Spain","Switzerland","Vietnam","Australia","Mexico"],Q_=["\u5317\u4EAC","\u4E0A\u6D77","\u6DF1\u5733","\u5357\u4EAC","\u54C8\u5C14\u6EE8","\u897F\u5B89","\u676D\u5DDE","\u5E7F\u5DDE","\u897F\u5B81","\u62C9\u8428","\u9999\u6E2F","\u6FB3\u95E8","\u53F0\u6E7E","\u4E1C\u4EAC","\u7EBD\u7EA6","\u8D39\u57CE","\u9996\u5C14","\u5229\u7269\u6D66","\u7EF4\u4E5F\u7EB3","\u67CF\u6797","\u5DF4\u9ECE","\u5E03\u8FBE\u4F69\u65AF","\u83AB\u65AF\u79D1","\u9A6C\u5FB7\u91CC","\u4F26\u6566","\u8036\u8DEF\u6492\u51B7"],Jx=ENV.IS_WONDER_SHARE?["New York City, USA","London, UK","Paris, France","Tokyo, Japan","Beijing, China","Sydney, Australia","Dubai, UAE","Los Angeles, USA","Mumbai, India","Rio de Janeiro, Brazil","Rome, Italy","Toronto, Canada","Moscow, Russia","Cape Town, South Africa","Mexico City, Mexico","Madrid, Spain","Berlin, Germany","Buenos Aires, Argentina","Seoul, South Korea","Cairo, Egypt"]:["Beijing","Shanghai","Shenzhen","Nanjing","Harbin","Xi'an","Hangzhou","Guangzhou","Xining","Lhasa","Hong Kong","Macao","Taiwan","Tokyo","New York","Philadelphia","Seoul","Liverpool","Vienna","Berlin","Paris","Budapest","Moscow","Madrid","London","Jerusalem"];var J_=s(67709),q_=s.n(J_),$_=s(19167),ru=s.n($_);const Cg=e=>{var t;return JSON.parse((t=sessionStorage.getItem(e))!=null?t:"[]")},Sg=(e,t)=>{sessionStorage.setItem(e,JSON.stringify(t))},Mh=(e,t)=>{let n=e.filter(i=>!Cg(t).includes(i));n.length===0&&(Sg(t,[]),n=e);const a=n[Math.floor(Math.random()*n.length)];return Sg(t,[...Cg(t),a]),[a]},eT=(e,t)=>{let n=e.filter(i=>!Cg(t).includes(q_()(i[0]+i[1])));n.length===0&&(Sg(t,[]),n=e);const a=n[Math.floor(Math.random()*n.length)];return Sg(t,[...Cg(t),a]),[...a]},tT=e=>{return[""+t(e.city)+t(e.street)+t(e.building)+t(e.floor)];function t(n){return n[Math.floor(Math.random()*n.length)]}},nT=function(e,t,n){return t===void 0&&(t=9999),n===void 0&&(n=!1),[n?ru()(e,t,n).toFixed(2):ru()(e,t,n).toString(10)]},oT=e=>{const t=ru()(Ft()().year()-1,Ft()().year()),n=ru()(1,12),a=ru()(1,28),i=ru()(0,23),c=ru()(0,59);return[e.replace("YYYY",t.toString()).replace("MM",n.toString().padStart(2,"0")).replace("DD",a.toString().padStart(2,"0")).replace("HH",i.toString().padStart(2,"0")).replace("MM",c.toString().padStart(2,"0")).replace("\u5E74",t.toString()+"\u5E74").replace("\u6708",n.toString()+"\u6708").replace("\u65E5",a.toString()+"\u65E5")]},aT={personName:0,content:0,time:1,phoneNumber:0,email:ENV.IS_WONDER_SHARE?0:2,number:1,country:0,city:0},rT=()=>ENV.IS_WONDER_SHARE?[[[Wx,"usedChineseName_personName"],[Hx,"usedNickName"]],[[Zx,"usedTitle_content"],[Kx,"usedLongText_country"],[Yx,"usedURL_country"],[Xx,null]],["YYYY-MM-DD","YYYY-MM-DD HH:MM","MM/DD","HH:MM"],[[Gx,"usedMobilePhoneNumber"],[w5,"usedPhoneNumber"]],[[wm.filter(e=>e.endsWith("@gmail.com")),"usedGmail"],[wm.filter(e=>e.endsWith("@company.name")),"usedCompanyEmail"]],[[0,1,!0],[0,99,!1],[100,999,!1],[1e3,9999,!1],[w5,"usedPhoneNumber"]],[[Qx,"usedEnglishName_country"]],[[Jx,"usedEnglishName_city"]]]:[[[Y_,"usedEnglishName_personName"],[Wx,"usedChineseName_personName"],[Hx,"usedNickName"]],[[Zx,"usedTitle_content"],[Kx,"usedLongText_country"],[Yx,"usedURL_country"],[Xx,null]],["YYYY-MM-DD","YYYY-MM-DD HH:MM","MM/DD","HH:MM","\u5E74\u6708\u65E5","\u6708\u65E5"],[[Gx,"usedMobilePhoneNumber"],[w5,"usedPhoneNumber"]],[[wm.filter(e=>e.endsWith("@qq.com")),"usedQQEmail"],[wm.filter(e=>e.endsWith("@gmail.com")),"usedGmail"],[wm.filter(e=>e.endsWith("@163.com")),"used163EMAIL"],[wm.filter(e=>e.endsWith("@company.name")),"usedCompanyEmail"]],[[0,1,!0],[0,99,!1],[100,999,!1],[1e3,9999,!1]],[[X_,"usedChineseName_country"],[Qx,"usedEnglishName_country"]],[[Q_,"usedChineseName_city"],[Jx,"usedEnglishName_city"]]],iT=(0,ps.R)(e=>{const t=i=>{var c;return e?(c=e[i])!=null?c:aT[i]:0},n=rT(),a=[{tabName:"personName",title:I18N.ChatGPT.ai_text_auto_fill_name,iconName:"design/autoFillPanel/person",initialIndex:t("personName"),menuLabels:ENV.IS_WONDER_SHARE?["English name","Nickname"]:["\u4E2D\u6587","\u82F1\u6587","\u6635\u79F0"],generator:i=>Mh(n[0][i][0],n[0][i][1])},{tabName:"content",title:I18N.ChatGPT.ai_text_auto_fill_content,iconName:"design/autoFillPanel/content",initialIndex:t("content"),menuLabels:[I18N.ChatGPT.ai_text_auto_fill_content_title,I18N.ChatGPT.ai_text_auto_fill_content_long_text,I18N.ChatGPT.ai_text_auto_fill_content_website,I18N.ChatGPT.ai_text_auto_fill_content_address],generator:i=>[0,2].includes(i)?Mh(n[1][i][0],n[1][i][1]):i===1?eT(n[1][i][0],n[1][i][1]):tT(n[1][i][0])},{tabName:"time",title:I18N.ChatGPT.ai_text_auto_fill_time,iconName:"design/autoFillPanel/dateTime",initialIndex:t("time"),menuLabels:ENV.IS_WONDER_SHARE?["YYYY-MM-DD","YYYY-MM-DD HH:MM","MM/DD","HH:MM"]:["YYYY-MM-DD","YYYY-MM-DD HH:MM","MM/DD","HH:MM","\u5E74\u6708\u65E5","\u6708\u65E5"],generator:i=>oT(n[2][i])},{tabName:"phoneNumber",title:"\u53F7\u7801",iconName:"design/autoFillPanel/phone",initialIndex:t("phoneNumber"),menuLabels:["\u624B\u673A\u53F7","\u56FA\u53F7"],generator:i=>Mh(n[3][i][0],n[3][i][1])},{tabName:"email",title:I18N.ChatGPT.ai_text_auto_fill_email,iconName:"design/autoFillPanel/email",initialIndex:t("email"),menuLabels:ENV.IS_WONDER_SHARE?["gmail",I18N.ChatGPT.ai_text_auto_fill_company_email]:["qq\u90AE\u7BB1","gmail","163\u90AE\u7BB1","\u516C\u53F8\u90AE\u7BB1"],generator:i=>Mh(n[4][i][0],n[4][i][1])},{tabName:"number",title:I18N.ChatGPT.ai_text_auto_fill_number,iconName:"design/autoFillPanel/number",initialIndex:t("number"),menuLabels:ENV.IS_WONDER_SHARE?["0-0.99","0-99","100-999","1000+","Phone number"]:["0-0.99","0-99","100-999","1000+"],generator:i=>i===4?Mh(n[3][0][0],n[3][0][1]):nT(n[5][i][0],n[5][i][1],n[5][i][2])},{tabName:"country",title:I18N.ChatGPT.ai_text_auto_fill_country,iconName:"design/autoFillPanel/country",initialIndex:t("country"),menuLabels:ENV.IS_WONDER_SHARE?["country"]:["\u4E2D\u6587","\u82F1\u6587"],generator:i=>Mh(n[6][i][0],n[6][i][1])},{tabName:"city",title:I18N.ChatGPT.ai_text_auto_fill_city,iconName:"design/autoFillPanel/city",initialIndex:t("city"),menuLabels:ENV.IS_WONDER_SHARE?["city"]:["\u4E2D\u6587","\u82F1\u6587"],generator:i=>Mh(n[7][i][0],n[7][i][1])}];return ENV.IS_WONDER_SHARE?a.filter(i=>i.tabName!=="phoneNumber"):a});var xc=s(23744);const sT=M.Ay.div.withConfig({displayName:"styles__StyledAISearchBox",componentId:"sc-ry6ftr-0"})(["width:100%;background:linear-gradient(97.39deg,#D5CCFF 1.15%,#FFCCFF 33.16%,#BBFAFA 66.15%,#BFDFFF 99.64%);padding:2px;border-radius:6px;&:hover{background:linear-gradient(90deg,#7F66FF 0%,#FF66FF 32.5%,#6699FF 67%,#64FAFA 100%);}&.isFocus{background:linear-gradient(90deg,#7F66FF 0%,#FF66FF 32.5%,#6699FF 67%,#64FAFA 100%);}.colorful-border-content{width:100%;display:flex;flex-direction:row;font-size:12px;height:30px;align-items:center;background:",";padding:0 10px;border-radius:4px;}&.generating{pointer-events:none;}&.input-limit{border:1px solid #ff3333;}&.picture-search-box{margin:15px 20px;width:calc(100% - 40px);}svg{width:20px;height:20px;opacity:1.0;cursor:pointer;&.disabled{pointer-events:none;opacity:0.4;}}.send-button{&:hover{path{fill:#1169C9;}}}.create-loading{animation:loading 3s linear infinite;@keyframes loading{0%{transform:rotate(0deg);}100%{transform:rotate(360deg);}}}.chat-input{width:100%;font-family:inherit;resize:none;outline:none;border:none;background:rgba(0,0,0,0);color:",";caret-color:",";autocomplete:off;}"],e=>e.theme.color_bg_white,e=>e.theme.color_text_L1,e=>e.theme.color_text_L1),lT=(e,t)=>{let{userInput:n,generating:a,handleInputFocus:i,handleInputChange:c,sendAction:d,className:p,placeholder:h}=e;const[m,x]=(0,l.useState)(!1),v=R=>{R.keyCode===13&&!R.shiftKey&&(n.length>0&&d(),R.preventDefault())},A=()=>{i&&i(!0)},k=()=>{i&&i(!1)};return(0,o.jsx)(sT,{className:C()(m&&"isFocus",a&&"generating",n&&n.length>=200&&"input-limit",p),onMouseEnter:A,onMouseLeave:k,children:(0,o.jsxs)("div",{className:"colorful-border-content",children:[(0,o.jsx)("input",{ref:t,id:"chat-input",className:"chat-input",autoComplete:"off",maxLength:200,value:n||"",onChange:R=>{c(R.target.value)},onKeyDown:v,onFocus:()=>{x(!0)},onBlur:()=>{x(!1)},placeholder:h||""}),a?(0,o.jsx)(xc.C,{className:"create-loading",name:"chatGPT/tip-loading",isColorPure:!0}):(0,o.jsx)(xc.C,{className:C()("send-button",(!n||n.length===0)&&"disabled"),name:"chatGPT/create-comment-send",onClick:d,isColorPure:!0})]})})},qx=(0,l.memo)(l.forwardRef(lT)),C5=78,cT=M.Ay.div.withConfig({displayName:"styles__StyledAutoFillSearchBox",componentId:"sc-1kju1gy-0"})(["margin:0 20px;height:","px;display:flex;flex-direction:column;justify-content:center;.box-title{font-family:PingFang SC;display:flex;align-items:center;color:",";font-size:12px;font-style:normal;font-weight:500;line-height:24px;margin-bottom:12px;justify-content:space-between;.ai-help-content{display:flex;align-items:center;.ai-help{margin-left:4px;width:16px;height:16px;position:relative;svg{width:100%;height:100%;path{fill:",";}&:hover{path{fill:",";}}}.tip-content{width:256px;background-color:red;position:absolute;left:-110px;top:16px;border-radius:4px;background:#454647;color:#FFF;font-size:12px;padding:10px;line-height:18px;z-index:1;a{color:white;text-decoration:underline;}.tip-eg{margin-top:20px;}}}}}"],C5,e=>e.theme.color_AI_Text_Auto_head_title,e=>e.theme.color_AI_Text_Auto_fill_path,e=>e.theme.color_AI_Text_Auto_fill_path_hover),dT=e=>{let{inputValue:t,handleInputChange:n,handleSendSearch:a,generating:i,placeholder:c,title:d,isPicture:p}=e;const[h,m]=(0,l.useState)(!1),x=(0,l.useRef)(null),v=(0,l.useCallback)(()=>{x.current&&(clearTimeout(x.current),x.current=null),x.current=setTimeout(()=>{x.current=null,m(!0)},500)},[x,m]),A=()=>{x.current&&(clearTimeout(x.current),x.current=null),m(!1)};return(0,o.jsxs)(cT,{children:[(0,o.jsx)("div",{className:"box-title",children:(0,o.jsxs)("div",{className:"ai-help-content",children:[d,(!ENV.IS_WONDER_SHARE||p)&&(0,o.jsxs)("div",{className:"ai-help",onMouseEnter:v,onMouseLeave:A,children:[(0,o.jsx)(xc.C,{name:"chatGPT/ai-help",isColorPure:!0}),h&&(0,o.jsx)("div",{className:"tip-content",children:p?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("div",{children:I18N.ChatGPT.ai_picture_auto_fill_help_tip1}),(0,o.jsx)("div",{children:I18N.ChatGPT.ai_picture_auto_fill_help_tip2}),(0,o.jsx)("a",{href:"https://unsplash.com/license",target:"_blank",rel:"noreferrer",children:"https://unsplash.com/license"}),(0,o.jsx)("div",{className:"tip-eg",children:I18N.ChatGPT.ai_picture_auto_fill_help_tip3})]}):(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("div",{children:"\u6839\u636E\u8F93\u5165\u7684\u8981\u6C42\u667A\u80FD\u586B\u5145\u6587\u672C\u3002"}),(0,o.jsx)("div",{className:"tip-eg",children:"\u793A\u4F8B\uFF1A "}),(0,o.jsx)("div",{children:"\u7EA2\u697C\u68A6\u4E2D\u7684\u4EBA\u7269"}),(0,o.jsx)("div",{children:"\u4E03\u8A00\u7EDD\u53E5"}),(0,o.jsx)("div",{children:"2\u4F4D\u6574\u6570\u548C2\u4F4D\u5C0F\u6570\u7684\u6570\u5B57"})]})})]})]})}),(0,o.jsx)(qx,{userInput:t,handleInputChange:n,sendAction:a,generating:i,placeholder:c})]})},$x=(0,l.memo)(dT);var ev=s(25431);const pT=(0,M.DU)(["#IBOT_SELECT_MENU_ROOT{.SelectMenuPortal{.WorkspaceSelectMenu.is-open{border:1px solid #454647;box-shadow:0 3px 6px -4px rgba(0,0,0,0.12),0 6px 16px rgba(0,0,0,0.08),0 9px 28px 8px rgba(0,0,0,0.05);.SelectOption{&:not(.empty-msg):not(.is-disabled):hover{background:#666;}}}}.autoFillPanelSelectScreenMenu{margin-left:-138px;margin-top:26px;width:175px;}.bdr-width-input-menu{width:88px;}.arrow-setting-menu{width:78px;}}"]),uT=(0,M.DU)(["#IBOT_SELECT_MENU_ROOT{.SelectMenuPortal{.WorkspaceSelectMenu.is-open{border:1px solid ",";box-shadow:0px 4px 10px 0px ",";.SelectOption{&:not(.empty-msg):not(.is-disabled):hover{background:",";}}}}.autoFillPanelSelectScreenMenu{margin-left:-138px;margin-top:26px;width:175px;}.bdr-width-input-menu{width:88px;}.arrow-setting-menu{width:78px;}}"],e=>e.theme.color_bg_border_01,e=>e.theme.shadow_m,e=>e.theme.color_btn_secondary_hover),hT=()=>{try{var e;return(e=MB)==null||(e=e.__store__)==null?void 0:e.getState()}catch(t){return}},tv=()=>{try{var e;return((e=hT())==null?void 0:e.ui.fixedLayout.preference.layoutV9)==="old"}catch(t){return!1}};class mT extends l.PureComponent{render(){const t=tv();return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(ev.eB,{...this.props}),t?(0,o.jsx)(pT,{}):(0,o.jsx)(uT,{})]})}}const Wre=M.Ay.span.withConfig({displayName:"styles__StyledOption",componentId:"sc-12fos16-0"})(["border:1px solid #d8d8d8;border-radius:4px;padding:3px 6px;cursor:pointer;margin-right:7.75px;margin-bottom:8px;display:inline-block;"]),fT=M.Ay.div.withConfig({displayName:"styles__StyledSetting",componentId:"sc-12fos16-1"})(["display:flex;justify-content:center;align-items:center;width:22px;height:22px;border-radius:4px;cursor:pointer;:hover{background-color:",";}"],e=>e.theme.color_background_white_modal_active);class gT extends l.PureComponent{constructor(t){super(t),(0,B.A)(this,"setElementRef",n=>this.$element=n),(0,B.A)(this,"handleClick",n=>{n.stopPropagation();const{onClick:a}=this.props;a&&a()}),(0,B.A)(this,"handleClose",()=>{const{onClose:n}=this.props;n&&n()}),(0,B.A)(this,"handleChange",n=>{n.stopPropagation();const{currentTarget:a}=n,{value:i}=a.dataset;this.setState({value:i}),this.props.menuItems[i-1].onClick(n),this.props.onClose&&this.props.onClose()}),this.state={value:t.defaultSelectSettingIndex+1}}render(){const{isShowOptionSelectMenu:t}=this.props;return(0,o.jsxs)(fT,{ref:this.setElementRef,onClick:this.handleClick,children:[(0,o.jsx)(xc.C,{name:"design/autoFillPanel/more",className:"setting-icon",isColorPure:!0}),t&&(0,o.jsx)(mT,{isOpen:!0,menuClassName:"autoFillPanelSelectScreenMenu",$select:this.$element,optionList:this.props.menuItems,value:this.state.value,onChange:this.handleChange,onClose:this.handleClose,onClickOutSide:this.handleClose})]})}}const nv=function(e,t){e===void 0&&(e=500);const n=(0,l.useRef)(null),a=(0,l.useCallback)(()=>{n.current&&(clearTimeout(n.current),n.current=null)},[n]);return{handleAdd:(0,l.useCallback)(c=>{n.current&&(clearTimeout(n.current),n.current=null),n.current=setTimeout(()=>{n.current=null,t&&t({text:c})},e)},[e,t]),handleClear:a}};var Cm=s(63522);const yT=M.Ay.div.withConfig({displayName:"styles__StyledAutoFillTextPanel",componentId:"sc-1wc0sb9-0"})(["width:100%;height:100%;.item-list{width:100%;margin-top:6px;height:calc(100% - 6px);overflow:hidden auto;&.show-ai{height:calc(100% - ","px);}}"],C5+18),xT=M.Ay.div.withConfig({displayName:"styles__StyledAutoFillItem",componentId:"sc-1wc0sb9-1"})(["width:100%;display:flex;justify-content:space-between;align-items:center;height:44px;padding:0 20px;margin-top:4px;&:hover{background:",";cursor:pointer;}.title-icon{margin-right:8px;}.left{display:flex;flex-direction:row;align-items:center;color:",";.title-wrapper{display:flex;flex-direction:column;.title{font-size:12px;line-height:16px;margin-bottom:2px;}.setting{font-size:10px;line-height:16px;color:",";}}}"],e=>e.theme.color_background_icon_hover,e=>e.theme.color_text_L1,e=>e.theme.color_text_L3),vT=e=>{var t;let{title:n,iconName:a,tableInfoData:i,selectedTrees:c,generator:d,tabName:p,menuLabels:h,initialIndex:m,onNotice:x,onUpdateWidget:v,onUpdatePreference:A,onClickOption:k,onCloseOption:R,isShowOptionSelectMenu:F}=e;const[Z,G]=(0,l.useState)(m),{handleClear:ee}=nv(500,x),ce=h.map((xe,Fe)=>({label:xe,value:Fe+1,onClick:(et,Ke)=>he(et,Fe,Ke,()=>(0,Cm.RG)(c,()=>{(0,Cm.mD)(c,i,()=>d(Fe),v)}))})),se=xe=>{ce[Z].onClick(xe,!0)},he=(xe,Fe,et,Ke)=>{xe.stopPropagation(),G(Fe),et||A(p,Fe),Ke()&&et?ve(xe):ee()},ve=xe=>{xe.stopPropagation(),ee(),!(0,Cm.Rd)(c)&&v({widgetType:"wRichText",data:{content:d(Z).join("\n")},type:"create"})},Te=()=>{k({tabName:p})};return(0,o.jsxs)(xT,{onClick:se,onDoubleClick:ve,children:[(0,o.jsxs)("div",{className:"left",children:[(0,o.jsx)(xc.C,{name:a,className:"title-icon",size:21}),(0,o.jsxs)("div",{className:"title-wrapper",children:[(0,o.jsx)("span",{className:"title",children:n}),(0,o.jsx)("span",{className:"setting",children:(t=ce[Z])==null?void 0:t.label})]})]}),(0,o.jsx)(gT,{onClick:Te,onClose:R,isShowOptionSelectMenu:F,menuItems:ce,defaultSelectSettingIndex:m})]})};var Zt=s(34394),Uc=s(46905),L0=s(46723),iu=s(39563);const ov=async e=>{let{prompt:t,user:n,project:a,org:i,selectedTrees:c,tableInfoData:d,onUpdateWidget:p,updateAIState:h,notice:m}=e;const x=(0,Uc.AM)({user:n,project:a}),v=(0,Uc.WX)({user:n,org:i});let A=0;const{tableSelectionLeftTopInfo:k,editingTableWidget:R}=d,{selectionLeftTopInfo:F,selectionRightBottomInfo:Z}=k||{},G=(0,Uc.n3)(c).filter(Te=>![Zt.x.WVideo,Zt.x.WAudio,Zt.x.WQRCode,Zt.x.WWebpage].includes(Te.type));A+=G.length;const ee=(0,Uc.n3)(c).filter(Te=>Te.name===Zt.x.WTable);if(F){var ce;((0,iu.SS)((ce=ee[0])==null?void 0:ce.hotAttr)?R.hotAttr.table:R.tableData.data).forEach((xe,Fe)=>{Fe>=F.y&&Fe<=Z.y&&xe.forEach((et,Ke)=>{Ke>=F.x&&Ke<=Z.x&&(A+=1)})})}else ee.filter(Te=>{let{cid:xe}=Te;return!F||xe!==R.cid}).forEach(Te=>{((0,iu.SS)(Te)?Te.table:Te.tableData.data).forEach((Fe,et)=>{Fe.forEach((Ke,Qe)=>{A+=1})})});A=Math.max(A,1);const{result:se,status:he}=await(0,L0.cD)({prompt:t,textListLength:A,workspace:v,taskID:x,user:n,org:i,updateAIState:h,notice:m});if(!se)return{success:!1,status:he};const{widget:{textList:ve}}=se;return av({textList:ve,selectedTrees:c,tableInfoData:d,onUpdateWidget:p}),{success:!0,status:200}},av=e=>{let{textList:t,selectedTrees:n,tableInfoData:a,onUpdateWidget:i}=e;(0,Cm.Rd)(n)||i({widgetType:"wRichText",data:{content:t[0]},type:"create"});const d=(()=>{let p=0;return()=>{const h=t[Math.min(p,t.length-1)];return p++,typeof h!="string"&&typeof h!="number"?[""]:[String(h)]}})();(0,Cm.mD)(n,a,d,i)},bT=e=>{let{commonData:t,isShowAI:n,onNotice:a,onUpdateWidget:i,onTrack:c,onUpdatePreference:d}=e;const[p,h]=(0,l.useState)(""),[m,x]=(0,l.useState)(!1),[v,A]=(0,l.useState)(""),{selectedTrees:k,tableInfoData:R,preference:{autoFillHistory:F},user:Z,org:G,project:ee,openFrom:ce}=t,se=xe=>{const{aiGenerating:Fe}=xe;x(Fe)},he=(0,l.useCallback)(async()=>{x(!0);const{success:xe,status:Fe}=await ov({prompt:p,user:Z,org:G,project:ee,selectedTrees:k,tableInfoData:R,onUpdateWidget:i,updateAIState:se,notice:a});c({config:{ai_func:"\u667A\u80FD\u586B\u5145-\u6587\u5B57",ai_input:p}}),x(!1),a({text:"\u667A\u80FD\u586B\u5145 \u5DF2\u751F\u6210",svgName:"chatGPT/copy-success"})},[p,Z,G,ee,k,R,i,a,c]),ve=(0,l.useMemo)(()=>iT(F),[F]),Te=xe=>{let{tabName:Fe}=xe;if(Fe===v){A("");return}A(Fe)};return(0,o.jsxs)(yT,{children:[n&&(0,o.jsx)($x,{generating:m,inputValue:p,handleInputChange:h,handleSendSearch:he,title:I18N.ChatGPT.ai_text_auto_fill_title,placeholder:I18N.ChatGPT.ai_text_auto_fill_placeholder,isPicture:!1}),(0,o.jsx)("div",{className:"item-list "+(n?"show-ai":""),children:ve.map(xe=>(0,o.jsx)(vT,{...xe,selectedTrees:k,tableInfoData:R,onNotice:a,onUpdateWidget:i,onUpdatePreference:d,onClickOption:Te,onCloseOption:()=>A(""),isShowOptionSelectMenu:v===xe.tabName},xe.title))})]})},wT=(0,l.memo)(bT),CT=(0,ps.R)(()=>[{iconName:"design/autoFillPanel/person",title:I18N.ChatGPT.ai_picture_auto_fill_figure,image:"/mb-workspace/images/autofill/ppl.png",tab:"ppl"},{iconName:"design/autoFillPanel/animal",title:I18N.ChatGPT.ai_picture_auto_fill_animal,image:"/mb-workspace/images/autofill/anml.png",tab:"anml"},{iconName:"design/autoFillPanel/tech",title:I18N.ChatGPT.ai_picture_auto_fill_tech,image:"/mb-workspace/images/autofill/tech.png",tab:"tech"},{iconName:"design/autoFillPanel/nature",title:I18N.ChatGPT.ai_picture_auto_fill_nature,image:"/mb-workspace/images/autofill/natr.png",tab:"natr"},{iconName:"design/autoFillPanel/food",title:I18N.ChatGPT.ai_picture_auto_fill_food,image:"/mb-workspace/images/autofill/food.png",tab:"food"},{iconName:"design/autoFillPanel/city",title:I18N.ChatGPT.ai_picture_auto_fill_architecture,image:"/mb-workspace/images/autofill/arch.png",tab:"arch"},{iconName:"design/autoFillPanel/business",title:I18N.ChatGPT.ai_picture_auto_fill_business,image:"/mb-workspace/images/autofill/bsns.png",tab:"bsns"}]),ST=e=>{let{url:t,tab:n,width:a,height:i,tags:c}=e;return{asset_cid:"findPicture_"+t,created_at:new Date().getTime(),group_cid:"findPicture_"+n,height:i,width:a,name:"\u793A\u4F8B\u56FE\u7247",size:999,image:"/res-img/org/"+t,thumb:"/res-img/thmb/"+t,timestamp:0,tags:"",img_tag:c}},rv=(e,t)=>{if(!(t!=null&&t.length))return null;const n=t.find(v=>v.tab===e),a="autofill_picture_"+e;let i=JSON.parse(sessionStorage.getItem(a)||"[]");i.length>=n.imgs.length&&(i=[]);const c=n.imgs.filter(v=>{let[A]=v;return!i.includes(A)}),d=ru()(0,c.length-1),[p,,[h,m],x]=c[d];return i.push(p),sessionStorage.setItem(a,JSON.stringify(i)),ST({tab:e,url:p,width:h,height:m,tags:x})};var AT=s(37754),kT=s(77686);const MT=async()=>{const e=ENV.IS_WONDER_SHARE?"/res-img/meta-en.json":"/res-img/meta.json";return await(await fetch(e,{credentials:"same-origin"})).json()};var Mf=s(18848);const ET=M.Ay.div.withConfig({displayName:"styles__StyledAutoFillPicturePanel",componentId:"sc-brp3ix-0"})(["width:100%;height:100%;display:flex;flex-direction:column;.item-list{width:100%;margin-top:6px;height:calc(100% - 6px);overflow:hidden auto;flex:1;&::-webkit-scrollbar{width:3px;height:3px;}&.show-ai{height:calc(100% - ","px);}}"],C5+18),IT=M.Ay.div.withConfig({displayName:"styles__StyledPicturePanelItem",componentId:"sc-brp3ix-1"})(["width:100%;display:flex;justify-content:space-between;align-items:center;height:44px;padding:0 20px;margin-top:4px;&:hover{background:",";cursor:pointer;}.left{display:flex;align-items:center;color:",";font-size:12px;.title-icon{margin-right:8px;}}.right{width:45px;display:flex;align-items:center;img{width:45px;}}"],e=>e.theme.color_background_icon_hover,e=>e.theme.color_text_L1),_T=e=>{let{isShowAI:t,commonData:n,onNotice:a,onUpdateWidget:i,onTrack:c}=e;const[d,p]=(0,l.useState)(""),[h,m]=(0,l.useState)(!1),[x,v]=(0,l.useState)([]),[A,k]=(0,l.useState)(!1),{handleClear:R}=nv(500,a);(0,l.useEffect)(()=>{A||MT().then(Qe=>{k(!0),v(Qe)}).catch(Qe=>{console.error("download meta.json failed",Qe)})},[A]);const{selectedTrees:F,selectedCarouseImage:Z,user:G,org:ee,project:ce,openFrom:se}=n,he=Qe=>{i({widgetType:"wImage",data:Qe,type:"create"})},ve=Qe=>{if((0,Uc.n3)(F).every(lt=>!(0,Mf.xC)(lt))){Te(Qe);return}(0,Mf.CV)({generator:()=>rv(Qe,x),selectedTrees:F,selectedCarouseImage:Z,onUpdateWidget:i})},Te=Qe=>{if(R(),(0,Mf.J6)(F))return;const nt=rv(Qe,x);he(nt)},xe=Qe=>{p(Qe)},Fe=Qe=>{let{url:nt,tab:Xe,width:lt,height:Ct,tags:St}=Qe;return{asset_cid:"findPicture_"+nt,created_at:new Date().getTime(),group_cid:"findPicture_"+Xe,height:Ct,width:lt,name:I18N.Resources.image_example,size:999,image:"/res-img/org/"+nt,thumb:"/res-img/thmb/"+nt,timestamp:0,tags:"",img_tag:St}},et=async()=>{m(!0);const Qe={isTrigger:!1};Qe.isTrigger=(0,kT.b)(d);const nt=()=>{Qe.isTrigger=!0},Xe=Qe.isTrigger?[]:await(0,AT.P)({keyword:d,size:20,uId:G==null?void 0:G.id,projectCid:ce==null?void 0:ce.cid,triggerSensitiveWord:nt});try{x&&x.filter(St=>St.tab!=="hot").forEach(St=>{St.imgs&&St.imgs.filter(hn=>hn[3].includes(d)).forEach(hn=>{Xe.push(Fe({tab:St.tab,url:hn[0],width:hn[2][0],height:hn[2][1],tags:hn[3]}))})})}catch(Ct){}const lt=!(!Xe||Xe.length===0);if(c({config:{ai_func:"\u667A\u80FD\u586B\u5145-\u56FE\u7247",ai_input:d}}),m(!1),Qe.isTrigger){a({text:"\u8F93\u5165\u5185\u5BB9\u5305\u542B\u654F\u611F\u8BCD\u6C47\uFF0C\u8BF7\u5C1D\u8BD5\u66F4\u6362\u8F93\u5165\u5185\u5BB9"});return}else if(!lt){a({text:"\u8F93\u5165\u5185\u5BB9\u6682\u65E0\u76F8\u5173\u7ED3\u679C\uFF0C\u8BF7\u91CD\u65B0\u8F93\u5165"});return}(0,Mf.bY)({result:Xe,selectedTrees:F,selectedCarouseImage:Z,onUpdateWidget:i})},Ke=CT();return(0,o.jsxs)(ET,{children:[t&&(0,o.jsx)($x,{generating:h,inputValue:d,handleInputChange:xe,handleSendSearch:et,title:I18N.ChatGPT.ai_picture_auto_fill_title,placeholder:I18N.ChatGPT.ai_picture_auto_fill_placeholder,isPicture:!0}),(0,o.jsx)("div",{className:"item-list "+(t?"show-ai":""),children:Ke.map((Qe,nt)=>(0,o.jsxs)(IT,{onClick:()=>ve(Qe.tab),onDoubleClick:()=>Te(Qe.tab),children:[(0,o.jsxs)("div",{className:"left",children:[(0,o.jsx)(xc.C,{name:Qe.iconName,className:"title-icon",size:21}),(0,o.jsx)("span",{className:"title",children:Qe.title})]}),(0,o.jsx)("div",{className:"right",children:(0,o.jsx)("img",{src:Qe.image})})]},nt))})]})},TT=(0,l.memo)(_T),iv=M.Ay.aside.withConfig({displayName:"DraggablePanel",componentId:"sc-17irm6j-0"})(["position:absolute;width:",";background:",";border-radius:2px;box-shadow:",";overflow:hidden;border:1px solid ",";& > header{height:36px;padding-left:15px;padding-right:5px;display:flex;justify-content:space-between;align-items:center;background:",';font-size:12px;&[type="draggable"]{cursor:move;}.title{color:',";pointer-events:none;}.header-buttons{display:flex;.icon{width:20px;height:24px;font-size:12px;display:flex;justify-content:center;align-items:center;color:",";cursor:pointer;.times-icon{width:10px;}&:hover{color:",";.times-icon{color:",";}}}}}"],"210px",e=>e.theme.color_background_white,e=>e.theme.shadow_1,e=>e.theme.color_background,e=>e.theme.color_background_icon_hover,e=>e.theme.color_text_L2,e=>e.theme.color_text_L3,e=>e.theme.color_text_L2,e=>e.theme.color_text_L2),PT=(0,M.Ay)(iv).withConfig({displayName:"styles__StyledAutoFillPanel",componentId:"sc-1ny03ld-0"})(["width:300px;height:442px;background:",";box-shadow:0px 2px 10px rgba(0,0,0,0.12);border-radius:10px;border:1px solid ",";overflow:initial;z-index:107;.auto-panel-header{display:flex;height:50px;align-items:center;justify-content:space-between;cursor:move;.auto-panel-slider{padding-left:20px;.tab-item{font-size:12px;color:",";&:not(:first-child){margin-left:24px;}}.tab-sel{color:",";font-weight:bold;border:none;}}.close-icon{margin-right:20px;height:24px;border-radius:4px;path{fill:",";}&:hover{path{fill:",";}}}}.content{width:100%;height:392px;}"],e=>e.theme.color_background_white,e=>e.theme.color_border_state,e=>e.theme.color_text_L2,e=>e.theme.color_text_L1,e=>e.theme.color_text_L2,e=>e.theme.color_text_L1),LT=e=>{const{position:t,show:n,commonData:a,actions:i,defaultTab:c,isShowClose:d=!0,canShowAllTab:p=!0}=e,{selectedTrees:h,tableInfoData:m}=a,[x,v]=(0,l.useState)("text"),[A,k]=(0,l.useState)(window.innerWidth),[R,F]=(0,l.useState)(window.innerHeight),[Z,G]=(0,l.useState)([]),ee=(0,l.useRef)(null);(0,l.useEffect)(()=>{const nt=()=>{k(window.innerWidth),F(window.innerHeight)};return window.addEventListener("resize",nt),()=>{window.removeEventListener("resize",nt)}},[]),(0,l.useEffect)(()=>{const nt=[{key:"text",label:I18N.ChatGPT.ai_text_auto_fill,disabled:!p&&c===1},{key:"image",label:I18N.ChatGPT.ai_picture_auto_fill,disabled:!p&&c===0}].filter(Xe=>!Xe.disabled);if(G(nt),c!==void 0)v(c===0?"text":"image");else{if(h.length===0)return;const Xe=(0,Mf.J6)(h),lt=(0,Cm.Rd)(h);if(!Xe&&!lt||Xe&&lt)return;v(Xe?"image":"text")}},[p,c,h,G,v]);const ce=(nt,Xe)=>{i.updatePosition(nt,Xe)},se=()=>{i.updateShow(!1)},he=nt=>{i.notice(nt)},ve=nt=>{let{widgetType:Xe,data:lt,type:Ct}=nt;i.updateWidget({widgetType:Xe,data:lt,type:Ct})},Te=nt=>{let{config:Xe,key:lt="proto_ai_use"}=nt;i.track(lt,Xe)},xe=(nt,Xe)=>{i.updatePreference(nt,Xe)};if(!n)return null;const Fe=Math.max(Math.min(t==null?void 0:t.left,A-258),0),et=Math.max(Math.min(t==null?void 0:t.top,R-397),0),Ke=x==="text",Qe=x==="image";return(0,o.jsx)(Qa.A,{position:{left:Fe,top:et},onMove:ce,ref:ee,children:(0,o.jsxs)(PT,{className:"autoFillPanel-element",children:[(0,o.jsxs)("div",{type:"draggable",className:"auto-panel-header",children:[(0,o.jsx)(K_,{className:"auto-panel-slider",activeTab:x,tabs:Z,handleChangeTab:v}),d&&(0,o.jsx)("a",{className:"close-icon",onClick:se,children:(0,o.jsx)(xc.C,{name:"design/autoFillPanel/close",size:24})})]}),(0,o.jsxs)("div",{className:"content",children:[Ke&&(0,o.jsx)(wT,{isShowAI:!ENV.IS_ON_PREMISES,commonData:a,onNotice:he,onUpdateWidget:ve,onUpdatePreference:xe,onTrack:Te,tableInfoData:m}),Qe&&(0,o.jsx)(TT,{commonData:a,isShowAI:!ENV.IS_ON_PREMISES,onNotice:he,onUpdateWidget:ve,onTrack:Te})]})]})})},NT=(0,l.memo)(LT),jT=e=>{const t=e();return(0,o.jsx)(NT,{...t})};var S5=s(45611);const DT=(0,l.memo)(e=>{const{isAutoFillPanelShow:t,autoFillPanelPosition:n,openFrom:a,defaultTab:i,selectedItems:c,tableInfoData:d,selectedCarouseImage:p,user:h,org:m,project:x,preference:v,isShowClose:A,canShowAllTab:k,dispatch:R}=e,[F,Z]=(0,l.useState)((0,o.jsx)(o.Fragment,{})),G=(0,l.useMemo)(()=>({updatePosition:(se,he)=>{R({type:"autoFillPanel:set:position",payload:{position:{top:he,left:se}}})},updateShow:se=>{R({type:"autoFillPanel:set:show",payload:{show:se}})},updatePreference:(se,he)=>{R({type:"entry:update:auto-fill-history",payload:{attr:se,value:he}})},updateWidget:se=>{let{widgetType:he,data:ve,type:Te}=se;R({type:"entry:autoFill:update:widget",payload:{widgetType:he,data:ve,type:Te,device:x.device}})},notice:se=>{MB.notice(se)},track:(se,he)=>{(0,ic.ZI)(se,he)}}),[R,x.device]),ee=(0,l.useMemo)(()=>({user:h,org:m,project:x,preference:v,openFrom:a}),[m,v,x,h,a]),ce=(0,l.useMemo)(()=>({show:t,position:n,defaultTab:i,isShowClose:A,canShowAllTab:k,commonData:{selectedTrees:c.map(S5.Dx).flat().map(se=>({widget:{...se.hotAttr,...se,name:se.hotAttr.type,cid:se.key,display_name:se.hotAttr.name}})),tableInfoData:{...d,editingTableWidget:d.editingTableWidget?{...d.editingTableWidget,...d.editingTableWidget.hotAttr,cid:d.editingTableWidget.key}:void 0},selectedCarouseImage:p,...ee},actions:G}),[ee,G,n,t,p,c,d,i,A,k]);return(0,l.useEffect)(()=>{Z(jT(()=>ce))},[ce]),(0,o.jsx)(o.Fragment,{children:F})}),RT=(0,I.Mz)([n2.wb,n2.qX,n2.Hh,n2.hu,me.HW,me.wA,me.PL,tt.nE,te.ml,De.zX,De.nh,gl.Yg,n2.W8,n2.a7],(e,t,n,a,i,c,d,p,h,m,x,v,A,k)=>({isAutoFillPanelShow:e,autoFillPanelPosition:t,openFrom:n,defaultTab:a,user:i,org:c,project:d,selectedItems:p,preference:h,tableInfoData:{tableSelectionLeftTopInfo:m,editingTableWidget:x},selectedCarouseImage:v,isShowClose:A,canShowAllTab:k})),BT=(0,r.Ng)(e=>RT(e))(DT);var UT=s(92598),OT=s(8293),sv=s(18356),lv=s(547);const FT=(0,I.Mz)([me.X_,me.Ur,me.$S,me.YY,me.wq,me.L8,me.vw],(e,t,n,a,i,c,d)=>({scale:e,currentScreen:t,viewportRect:n,createTemplatesData:a,quickCreateWidget:i,quickCreateBuiltinSceneData:c,isDragClickWidget:d})),VT=()=>{const e=(0,r.d4)(FT),{createTemplatesData:t,quickCreateWidget:n,quickCreateBuiltinSceneData:a,currentScreen:i,isDragClickWidget:c}=e,d=(0,l.useRef)({x:0,y:0});(0,l.useLayoutEffect)(()=>{const A=k=>{d.current={x:k.clientX,y:k.clientY}};return document.addEventListener("mousemove",A),()=>{document.removeEventListener("mousemove",A)}},[]);const p=(0,l.useMemo)(()=>{var A,k;return(a==null?void 0:a.length)>0?a:n&&(A=(k=(0,sv.OZ)((n==null?void 0:n.metaType)||n.type))==null?void 0:k.data)!=null?A:""},[n,a]),h=(0,l.useMemo)(()=>t!=null&&t.length?t.reduce((A,k)=>{if([$.x.WIcon,$.x.WImage].includes(k==null?void 0:k.type))A+=1;else if((k==null?void 0:k.length)===2){const[R]=k;A+=(R==null?void 0:R.length)||0}return A},0):0,[t]),m=(0,l.useMemo)(()=>{if(!(t!=null&&t.length))return null;const A=t[t.length-1];if(!A)return null;if([$.x.WIcon,$.x.WImage].includes(A.type))return[A];if((A==null?void 0:A.length)===2||(A==null?void 0:A.length)===3){const[k,R]=A;if(!(k!=null&&k.length))return null;const F=k[k.length-1];if(!F)return null;const Z=R.getHotItem(F.key);return Z?[{...Z,...Z.hotAttr},R]:null}return null},[t]);if(!i)return null;if(t||a||n){if(m!=null&&m.length){var v;const[A,k]=m;return(0,l.createElement)(cv,{...e,key:(A==null?void 0:A.key)||(A==null?void 0:A._icon_id)||(A==null||(v=A.image)==null?void 0:v.imageRef),initPos:d.current,template:A,store:k,count:h})}return(p==null?void 0:p.length)>0?c?null:(0,l.createElement)(cv,{...e,key:p,initPos:d.current,builtSceData:p}):null}},cv=(0,l.memo)(e=>{const[t,n]=(0,l.useState)(e.initPos),{template:a,store:i,scale:c,builtSceData:d,currentScreen:p,count:h=0}=e,[m,x]=(0,l.useState)(null),[v,A]=(0,l.useState)(null),[k,R]=(0,l.useState)(!0),F=(0,r.wA)(),Z=k?100:c,G=(0,l.useMemo)(()=>{if(!m)return null;if(d)return m;if(k){const Xe=m.w/m.h,lt=Math.min(m.w,224),Ct=lt/Xe;return{w:lt,h:Ct}}return m},[k,m,d]),ee=(0,l.useCallback)(()=>{if(!a)return null;const Xe=(0,$a.WQ)([a]),lt=Xe.getRootSnapshot(),Ct={sdkStore:Xe},{w:St,h:hn}=[$.x.WIcon,$.x.WImage,$.x.Canvas].includes(a==null?void 0:a.type)?a:(0,$a.lY)(a,i);return{widgetWrapper:(0,o.jsx)("div",{className:"widget-content",children:(0,o.jsx)(UT.o,{mode:"snapshot",hotItem:lt,treeData:Ct})}),w:St,h:hn}},[a,i]),ce=(0,l.useCallback)(()=>{if(!d)return null;const{widgetWrapper:Xe,puppetWidth:lt,puppetHeight:Ct}=(0,OT.Ly)(d,p==null?void 0:p.cid);return{widgetWrapper:(0,o.jsx)("div",{className:"widget-content",children:Xe}),w:lt,h:Ct}},[d]);(0,l.useEffect)(()=>{const Xe=a?ee():d?ce():null;if(Xe){const{widgetWrapper:lt,w:Ct,h:St}=Xe;A(lt),x({w:Ct,h:St})}},[]);const se=(0,l.useCallback)(Xe=>{const{target:lt,clientX:Ct,clientY:St}=Xe;if(Array.from(document.querySelectorAll('[data-is-quick-create-quit="true"]')).map(Cn=>Cn.getBoundingClientRect()).some(Cn=>(0,lv.El)(Ct,St,Cn))){if(lt.closest(".toolbar-center")&&lt.closest("shapeContainer")||lt.closest(".widget-insertable")&&!lt.closest(".arrow")||lt.closest(".widget-item")||lt.closest(".template-item")||lt.closest(".ai-widget-item")||lt.closest(".icon-item")||lt.closest(".pic-item")||lt.closest(".sticker-item")||lt.closest(".library-asset-item")||lt.closest(".muban-content")||lt.closest(".thumbnail-list-item"))return;F({type:"set:quick-create-widget",payload:{widget:null}}),F({type:"update:screenContainer:state",payload:{createTemplatesData:null}})}},[F]);(0,l.useLayoutEffect)(()=>{const Xe=Array.from(document.querySelectorAll('[data-is-widget-insertable="false"]')).map(Ct=>Ct.getBoundingClientRect()),lt=Ct=>{n({x:Ct.clientX,y:Ct.clientY});const St=Xe.some(hn=>(0,lv.El)(Ct.clientX,Ct.clientY,hn));R(St)};return document.addEventListener("mousemove",lt),document.addEventListener("mousedown",se),()=>{document.removeEventListener("mousemove",lt),document.removeEventListener("mousedown",se)}},[n,R]);const{viewportRect:he}=e;if(t.x>he.right||t.y<0||t.y>he.bottom||!v||!G)return null;const{x:ve,y:Te}=t,{w:xe,h:Fe}=G,et=Z/100,Ke=a?"1px dashed black":"none",Qe=a?"#fff":"none",nt={transform:"translate("+Math.round(ve+2)+"px, "+Math.round(Te+2)+"px) rotate(0deg)",width:Math.round(xe*et)+2,height:Math.round(Fe*et)+2,border:Ke,background:Qe};return(0,o.jsxs)(zT,{style:nt,ratio:et,children:[v,h>1&&(0,o.jsx)("div",{className:"count",children:h})]})}),zT=M.Ay.div.withConfig({displayName:"SnapshotWidgets__StyledSnapshotWidgetsContent",componentId:"sc-1garoxl-0"})(["z-index:108;pointer-events:none !important;position:absolute;overflow:hidden;opacity:0.5;.widget-content{position:absolute;z-index:1;left:0;top:0;transform:",";}.count{height:12px;display:flex;align-items:center;justify-content:center;border-radius:4px;padding:0 4px;font-family:PingFang SC;font-weight:400;font-size:11px;color:",";background:",";border:1px solid ",";position:absolute;left:5px;top:5px;z-index:2;}"],e=>"scale("+e.ratio+")",e=>e.theme.color_text_L1,e=>e.theme.color_bg_white,e=>e.theme.color_bg_border_01);var Sm=s(75627),Sd=s(19713);const WT=M.Ay.div.withConfig({displayName:"styles__StyledFindInput",componentId:"sc-tgtb6d-0"})(["min-width:236px;height:36px;border:1px solid ",";background:",";box-sizing:border-box;border-radius:4px;margin-left:10px;margin-right:8px;display:flex;align-items:center;justify-content:space-between;&.focus{border-color:#1684fc;}input{height:100%;flex:1;width:0;text-indent:8px;margin-right:5px;color:",";&::placeholder{color:#999;}}.notFound{margin-right:8px;}.searching{margin-right:8px;display:flex;align-items:center;.svg-icon.loading-icon{width:14px;height:14px;animation:design-ani-spinning 1.5s infinite ease-out;margin-right:5px;}}.hasResults{display:flex;align-items:center;justify-content:space-between;margin-right:8px;.left,.right{width:20px;height:20px;border-radius:50%;background:",";border:1px solid ",";display:flex;align-items:center;justify-content:center;cursor:pointer;svg{width:8px;height:8px;}&:hover{background:",";}&:active{background:",";}}.left{svg{transform:rotate(90deg);}}.right{svg{transform:rotate(-90deg);}}span{font-size:12px;color:",";margin:0 8px;}}"],e=>e.theme.color_bg_border_02,e=>e.theme.color_bg_white,e=>e.theme.color_text_L1,e=>e.theme.color_bg_white,e=>e.theme.color_btn_secondary_active,e=>e.theme.color_bg_canvas,e=>e.theme.color_btn_secondary_active,e=>e.theme.color_text_L1);class HT extends l.PureComponent{constructor(){super(...arguments),(0,B.A)(this,"state",{focus:!1}),(0,B.A)(this,"setInputRef",t=>this.$input=t),(0,B.A)(this,"handleChange",t=>{const n=t.target.value;this.props.onChange(n),this.props.onClearData()}),(0,B.A)(this,"handleKeyDown",t=>{const{key:n}=t,{onSearch:a}=this.props;n===bn._.Enter&&(a(!1),this.$input.blur(),(0,Sd.rn)("\u5FEB\u6377\u952E\u67E5\u627E"))}),(0,B.A)(this,"handlePrev",()=>{const{result:{index:t,total:n},onSetResultIndex:a}=this.props,i=t<=1?n:t-1;a(i),(0,Sd.rn)("\u9009\u62E9\u4E0A\u4E00\u9879")}),(0,B.A)(this,"handleNext",()=>{const{result:{index:t,total:n},onSetResultIndex:a}=this.props,i=t>=n?1:t+1;a(i),(0,Sd.rn)("\u9009\u62E9\u4E0B\u4E00\u9879")}),(0,B.A)(this,"renderActions",()=>{const{result:{status:t,total:n,index:a}}=this.props;return t===Sm.nW.notFound?(0,o.jsx)("span",{className:"notFound",children:I18N.Popups.findReplacePanel.notFound}):t===Sm.nW.searching?(0,o.jsxs)("div",{className:"searching",children:[(0,o.jsx)(xt.C,{name:"general/loading",className:"loading-icon"}),(0,o.jsxs)("span",{children:[I18N.Popups.findReplacePanel.searching,"..."]})]}):t===Sm.nW.hasResults?(0,o.jsxs)("div",{className:"hasResults",children:[(0,o.jsx)("div",{className:"left",onClick:this.handlePrev,children:(0,o.jsx)(xt.C,{name:"common/expand"})}),(0,o.jsx)("span",{children:a+"/"+n}),(0,o.jsx)("div",{className:"right",onClick:this.handleNext,children:(0,o.jsx)(xt.C,{name:"common/expand"})})]}):null}),(0,B.A)(this,"handleFocus",()=>{this.setState({focus:!0})}),(0,B.A)(this,"handleBlur",()=>{this.setState({focus:!1})})}componentDidMount(){this.$input&&this.$input.focus()}render(){const{value:t,result:{status:n}}=this.props,{focus:a}=this.state;return(0,o.jsxs)(WT,{className:C()({focus:a}),children:[(0,o.jsx)("input",{ref:this.setInputRef,type:"text",disabled:n===Sm.nW.searching,value:t,placeholder:I18N.Popups.findReplacePanel.inputFindContent,onChange:this.handleChange,onKeyDown:this.handleKeyDown,onFocus:this.handleFocus,onBlur:this.handleBlur}),this.renderActions()]})}}var A5=s(23089),k5=s(3902);const GT=(0,M.Ay)($s.A).withConfig({displayName:"styles__StyledFindReplacePanel",componentId:"sc-xnu2hf-0"})(["z-index:107;width:426px;min-height:112px;background:",";border:1px solid ",";box-shadow:0 3px 6px rgba(51,55,62,0.09);border-radius:8px;pointer-events:auto;header{width:100%;height:40px;display:flex;align-items:center;justify-content:space-between;background:",";box-shadow:0 1px 0 ",";padding:0 20px;span{color:",";font-size:14px;font-weight:500;}.icon-times{width:24px;height:24px;cursor:pointer;color:",";&:hover{color:",";}&:active{color:",";}}}.mainContainer{padding:24px 20px;.line{display:flex;align-items:center;height:40px;width:100%;.option{width:56px;height:36px;display:flex;align-items:center;justify-content:center;border:1px solid ",";box-sizing:border-box;border-radius:4px;color:",";background:",";cursor:pointer;transition:background-color 0.2s ease-in-out;&::after{content:'';display:inline-block;width:0;height:0;border-left:4px solid transparent;border-right:4px solid transparent;border-top:5px solid ",";margin-left:3px;transition:all 0.2s ease-in-out;}&:not(.active):hover{background:",";}&:active,&.active{background:",";&::after{transform:rotate(180deg);}}}.WorkspaceSelect{width:84px;height:36px;flex-shrink:0;}}.foldContainer{margin-top:12px;.line.replace{padding-left:16px;input{flex:1;height:36px;border:1px solid ",";background:",";box-sizing:border-box;border-radius:4px;margin-left:10px;text-indent:8px;color:",";&::placeholder{color:#999;}&:focus{border-color:#1684fc;}}span{color:",";}}footer{display:flex;align-items:center;justify-content:space-between;width:100%;margin-top:12px;button{width:80px;height:32px;display:flex;align-items:center;justify-content:center;box-sizing:border-box;border-radius:4px;cursor:pointer;background:",";color:",";border:1px solid ",";transition:all ease-in-out 0.2s;&:not(:active):not(:disabled):hover{background:",";border:1px solid ",";}&:active{background:",";border:1px solid ",";}&:disabled{cursor:not-allowed;color:",";}}.right{display:flex;align-items:center;.replaceAllBtn{margin-left:12px;}}}}}&.isFocusPanel{box-shadow:0 6px 12px rgba(51,55,62,0.09),0 2px 3px rgba(22,22,33,0.02),0 4px 4px rgba(3,37,80,0.02);}"],e=>e.theme.color_bg_white,e=>e.theme.color_bg_border_02,e=>e.theme.color_bg_white,e=>e.theme.color_btn_secondary_active,e=>e.theme.color_text_L1,e=>e.theme.color_text_L2,e=>e.theme.color_text_L1,e=>e.theme.color_text_L1,e=>e.theme.color_btn_secondary_active,e=>e.theme.color_text_L1,e=>e.theme.color_bg_white,e=>e.theme.color_text_L1,e=>e.theme.color_bg_canvas,e=>e.theme.color_btn_secondary_active,e=>e.theme.color_bg_border_02,e=>e.theme.color_bg_white,e=>e.theme.color_text_L1,e=>e.theme.color_text_L1,e=>e.theme.color_bg_white,e=>e.theme.color_text_L1,e=>e.theme.color_btn_secondary_active,e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_btn_secondary_active,e=>e.theme.color_btn_secondary_active,e=>e.theme.color_btn_secondary_active,e=>e.theme.color_text_disabled01),ZT=(0,M.DU)(["#IBOT_SELECT_MENU_ROOT{.findReplacePanelSelectScreenMenu{width:120px;}}"]);class KT extends l.PureComponent{constructor(){var t;super(...arguments),t=this,(0,B.A)(this,"state",{innerHeight:window.innerHeight,innerWidth:window.innerWidth}),(0,B.A)(this,"selectScreenOptionList",[{label:I18N.Popups.findReplacePanel.currentScreen,value:"current"},{label:I18N.Popups.findReplacePanel.allScreen,value:"all"}]),(0,B.A)(this,"handleMove",(n,a)=>{const i={left:n,top:a};this.props.dispatch({type:"findReplacePanel:set:position",payload:{position:i}})}),(0,B.A)(this,"handleClickClose",()=>{this.props.dispatch({type:"findReplacePanel:reset:state"}),(0,Sd.rn)("\u5173\u95ED")}),(0,B.A)(this,"handleChangeSearchValue",n=>{this.props.dispatch({type:"findReplacePanel:update",payload:{searchValue:n}}),(0,Sd.rn)('"\u67E5\u627E"\u8F93\u5165\u6587\u5B57')}),(0,B.A)(this,"handleSearch",function(n){n===void 0&&(n=!0);const{searchValue:a,selectScreenValue:i,dispatch:c}=t.props;if(a.length===0)return;c({type:"entry:findReplacePanel:search",payload:{isCurrentScreen:i==="current",searchValue:a}}),n&&(0,Sd.rn)("\u70B9\u51FB\u67E5\u627E")}),(0,B.A)(this,"handleSelectWidget",n=>{this.props.dispatch({type:"entry:findReplacePanel:select:widget",payload:{index:n}})}),(0,B.A)(this,"handleSelectScreen",async n=>{var a;await this.props.dispatch({type:"findReplacePanel:update",payload:{selectScreenValue:n}}),this.handleSearch(!1);const i="\u9009\u62E9"+((a=this.selectScreenOptionList.find(c=>{let{value:d}=c;return d===n}))==null?void 0:a.label);(0,Sd.rn)(i)}),(0,B.A)(this,"handleToggleFold",()=>{const{isFold:n,dispatch:a}=this.props;a({type:"findReplacePanel:update",payload:{isFold:!n}});const i=n?"\u9009\u9879\u5C55\u5F00":"\u9009\u9879\u6298\u53E0";(0,Sd.rn)(i)}),(0,B.A)(this,"handleChangeReplaceValue",n=>{const a=n.target.value;this.props.dispatch({type:"findReplacePanel:update",payload:{replaceValue:a}}),(0,Sd.rn)('"\u66FF\u6362\u4E3A"\u8F93\u5165\u6587\u5B57')}),(0,B.A)(this,"handleReplace",()=>{this.props.dispatch({type:"entry:findReplacePanel:replace:widget"}),(0,Sd.rn)("\u70B9\u51FB\u66FF\u6362")}),(0,B.A)(this,"handleNotice",function(n,a){a===void 0&&(a=void 0);const{selectScreenValue:i,searchValue:c,replaceValue:d,showSelectScreen:p,findWidgetList:h}=t.props,x=i==="current"||!p?t.selectScreenOptionList[0].label:t.selectScreenOptionList[1].label,v=a?a.length:h.length;return n.replace(/%selectScreen%/,x).replace(/%total%/,v).replace(/%find%/,(0,Sd._H)(c)).replace(/%replace%/,(0,Sd._H)(d))}),(0,B.A)(this,"handleReplaceAll",()=>{const{dispatch:n}=this.props;n({type:"modal:update:state",payload:{secondaryConfirmModal:{isOpen:!0,title:I18N.Popups.findReplacePanel.allReplace,isHTML:!0,desc:this.handleNotice(I18N.Popups.findReplacePanel.allReplaceTips),onConfirm:()=>{n({type:"entry:findReplacePanel:replace:all:widget",payload:{handleReplaceAllNotice:this.handleReplaceAllNotice}}),(0,Sd.rn)("\u70B9\u51FB\u5168\u90E8\u66FF\u6362")}}}})}),(0,B.A)(this,"handleReplaceAllNotice",(n,a)=>{const i=this.handleNotice(I18N.Popups.findReplacePanel.notice.allReplaceSuccess,n);MB.notice({text:a.length===0?i:i+"\uFF0C"+I18N.Popups.findReplacePanel.notice.allReplaceFail.replace(/%fail%/,a.length),duration:3e3})}),(0,B.A)(this,"handleClickOutSide",n=>{let{target:a}=n;const i=document.querySelector(".findReplacePanel");if(i){const c=i.contains(a);this.props.dispatch({type:"findReplacePanel:update",payload:{isFocusPanel:c}})}}),(0,B.A)(this,"handleIndex",n=>{const{selectIndex:a,findWidgetList:i}=this.props,{shiftKey:c,key:d}=n,p=d===bn._.Enter,h=i.length;let m=0;return p&&(c?(m=a<=1?h:a-1,(0,Sd.rn)("\u5FEB\u6377\u952E\u4E0A\u4E00\u9879")):(m=a>=h?1:a+1,(0,Sd.rn)("\u5FEB\u6377\u952E\u4E0B\u4E00\u9879"))),m}),(0,B.A)(this,"handleKeyDown",n=>{const{isFocusPanel:a,dispatch:i}=this.props;if(!a)return;n.stopPropagation();const c=this.handleIndex(n);c&&i({type:"entry:findReplacePanel:select:widget",payload:{index:c}})}),(0,B.A)(this,"handleClearData",()=>{const{findWidgetList:n,dispatch:a}=this.props;n.length&&a({type:"findReplacePanel:clear:result"})}),(0,B.A)(this,"handleReplaceKeyDown",n=>{const{findWidgetList:a}=this.props;if(!a.length)return;const{key:i}=n;i===bn._.Enter&&(this.handleReplace(),(0,Sd.rn)("\u5FEB\u6377\u952E\u66FF\u6362"))}),(0,B.A)(this,"handleUpdateState",()=>this.setState({innerHeight:window.innerHeight,innerWidth:window.innerWidth})),(0,B.A)(this,"handleUpdateDragOrResizeModal",n=>{this.props.dispatch({type:"modal:update:state",payload:{isDragOrResizeModal:n}})})}componentDidMount(){window.addEventListener("resize",this.handleUpdateState)}componentWillUnmount(){window.removeEventListener("resize",this.handleUpdateState),this.handleUpdateDragOrResizeModal(!1)}render(){const{show:t,position:n,findWidgetList:a,showSelectScreen:i,searchValue:c,status:d,selectIndex:p,selectScreenValue:h,replaceValue:m,isFocusPanel:x,isFold:v}=this.props,{innerWidth:A,innerHeight:k}=this.state,R=a.length,F=d===Sm.nW.searching,Z=d===Sm.nW.hasResults&&c!==m;if(!t)return null;const G=Math.max(Math.min(n==null?void 0:n.left,A-426),0),ee=Math.max(Math.min(n==null?void 0:n.top,k-220),0);return(0,o.jsx)(Qa.A,{position:{left:G,top:ee},onMove:this.handleMove,onMoveStart:()=>this.handleUpdateDragOrResizeModal(!0),onMoveEnd:()=>this.handleUpdateDragOrResizeModal(!1),children:(0,o.jsxs)(GT,{className:C()("findReplacePanel",{isFocusPanel:x}),children:[(0,o.jsxs)("header",{type:"draggable",children:[(0,o.jsx)("span",{children:I18N.ToolBar.find_replace}),(0,o.jsx)(xt.C,{className:"icon-times",name:"general/times",onClick:this.handleClickClose})]}),(0,o.jsxs)("div",{className:"mainContainer",children:[(0,o.jsxs)("div",{className:"line",children:[(0,o.jsx)("button",{className:C()("option",{active:!v}),onClick:this.handleToggleFold,children:I18N.Popups.findReplacePanel.option}),(0,o.jsx)(HT,{value:c,result:{status:d,total:R,index:p},onChange:this.handleChangeSearchValue,onSearch:this.handleSearch,onSetResultIndex:this.handleSelectWidget,onClearData:this.handleClearData}),(0,o.jsx)(A5.mq,{menuClassName:"findReplacePanelSelectScreenMenu",disabled:!i,optionList:this.selectScreenOptionList,value:h,onChange:this.handleSelectScreen})]}),!v&&(0,o.jsxs)("div",{className:"foldContainer",children:[(0,o.jsxs)("div",{className:"line replace",children:[(0,o.jsx)("span",{children:I18N.Popups.findReplacePanel.replaceWith}),(0,o.jsx)("input",{type:"text",value:m,placeholder:I18N.Popups.findReplacePanel.inputReplaceContent,onChange:this.handleChangeReplaceValue,onKeyDown:this.handleReplaceKeyDown})]}),(0,o.jsxs)("footer",{children:[(0,o.jsx)(ll.tA,{className:"findBtn",disabled:c.length===0||F,onClick:this.handleSearch,children:F?I18N.Popups.findReplacePanel.searching:I18N.Popups.findReplacePanel.find}),(0,o.jsxs)("div",{className:"right",children:[(0,o.jsx)(ll.tA,{className:"replaceBtn",disabled:!Z,onClick:this.handleReplace,children:I18N.Popups.findReplacePanel.replace}),(0,o.jsx)(ll.tA,{className:"replaceAllBtn",disabled:!Z,onClick:this.handleReplaceAll,children:I18N.Popups.findReplacePanel.allReplace})]})]})]})]}),(0,o.jsx)(ZT,{}),(0,o.jsx)(Ls.A,{target:document,onMouseDown:(0,Ls.t)(this.handleClickOutSide,{capture:!0}),onKeyDown:this.handleKeyDown})]})})}}const YT=(0,I.Mz)([k5.Gh,Me.r],(e,t)=>{let{show:n,position:a,findWidgetList:i,searchValue:c,status:d,selectScreenValue:p,selectIndex:h,replaceValue:m,isFocusPanel:x,isFold:v}=e,{isEditingProjectMain:A}=t;return{show:n,position:a,findWidgetList:i,searchValue:c,status:d,selectScreenValue:p,selectIndex:h,replaceValue:m,showSelectScreen:A,isFocusPanel:x,isFold:v}}),XT=(0,r.Ng)(e=>YT(e))(KT),QT=(0,M.DU)(["@font-face{font-family:'Alfa Slab One';font-style:normal;font-weight:400;font-display:swap;src:local('Alfa Slab One Regular'),local('AlfaSlabOne-Regular'),url(https://fonts.gstatic.com/s/alfaslabone/v10/6NUQ8FmMKwSEKjnm5-4v-4Jh2d1he_escmAm9w.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Alfa Slab One';font-style:normal;font-weight:400;font-display:swap;src:local('Alfa Slab One Regular'),local('AlfaSlabOne-Regular'),url(https://fonts.gstatic.com/s/alfaslabone/v10/6NUQ8FmMKwSEKjnm5-4v-4Jh2dxhe_escmAm9w.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Alfa Slab One';font-style:normal;font-weight:400;font-display:swap;src:local('Alfa Slab One Regular'),local('AlfaSlabOne-Regular'),url(https://fonts.gstatic.com/s/alfaslabone/v10/6NUQ8FmMKwSEKjnm5-4v-4Jh2dJhe_escmA.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Anton';font-style:normal;font-weight:400;font-display:swap;src:local('Anton Regular'),local('Anton-Regular'),url(https://fonts.gstatic.com/s/anton/v12/1Ptgg87LROyAm3K8-C8CSKlvPfE.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Anton';font-style:normal;font-weight:400;font-display:swap;src:local('Anton Regular'),local('Anton-Regular'),url(https://fonts.gstatic.com/s/anton/v12/1Ptgg87LROyAm3K9-C8CSKlvPfE.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Anton';font-style:normal;font-weight:400;font-display:swap;src:local('Anton Regular'),local('Anton-Regular'),url(https://fonts.gstatic.com/s/anton/v12/1Ptgg87LROyAm3Kz-C8CSKlv.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Averia Serif Libre';font-style:normal;font-weight:300;font-display:swap;src:local('Averia Serif Libre Light'),local('AveriaSerifLibre-Light'),url(https://fonts.gstatic.com/s/averiaseriflibre/v10/neIVzD2ms4wxr6GvjeD0X88SHPyX2xYGCSmaxq0rVLG_bA.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Averia Serif Libre';font-style:italic;font-weight:300;font-display:swap;src:local('Averia Serif Libre Light Italic'),local('AveriaSerifLibre-LightItalic'),url(https://fonts.gstatic.com/s/averiaseriflibre/v10/neIbzD2ms4wxr6GvjeD0X88SHPyX2xYOpzMmw50pXradbmHr.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Averia Serif Libre';font-style:italic;font-weight:400;font-display:swap;src:local('Averia Serif Libre Italic'),local('AveriaSerifLibre-Italic'),url(https://fonts.gstatic.com/s/averiaseriflibre/v10/neIUzD2ms4wxr6GvjeD0X88SHPyX2xYOpzuN4YgEfLu3.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Averia Serif Libre';font-style:italic;font-weight:700;font-display:swap;src:local('Averia Serif Libre Bold Italic'),local('AveriaSerifLibre-BoldItalic'),url(https://fonts.gstatic.com/s/averiaseriflibre/v10/neIbzD2ms4wxr6GvjeD0X88SHPyX2xYOpzM2xJ0pXradbmHr.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Berkshire Swash';font-style:normal;font-weight:400;font-display:swap;src:local('Berkshire Swash Regular'),local('BerkshireSwash-Regular'),url(https://fonts.gstatic.com/s/berkshireswash/v9/ptRRTi-cavZOGqCvnNJDl5m5XmN_pM4zT305QaYc.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Berkshire Swash';font-style:normal;font-weight:400;font-display:swap;src:local('Berkshire Swash Regular'),local('BerkshireSwash-Regular'),url(https://fonts.gstatic.com/s/berkshireswash/v9/ptRRTi-cavZOGqCvnNJDl5m5XmN_qs4zT305QQ.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Caveat Brush';font-style:normal;font-weight:400;font-display:swap;src:local('Caveat Brush'),local('CaveatBrush-Regular'),url(https://fonts.gstatic.com/s/caveatbrush/v6/EYq0maZfwr9S9-ETZc3fKXt8UrOS8XlNQqOw.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Caveat Brush';font-style:normal;font-weight:400;font-display:swap;src:local('Caveat Brush'),local('CaveatBrush-Regular'),url(https://fonts.gstatic.com/s/caveatbrush/v6/EYq0maZfwr9S9-ETZc3fKXt8XLOS8XlNQg.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Cherry Swash';font-style:normal;font-weight:400;font-display:swap;src:local('Cherry Swash'),local('CherrySwash-Regular'),url(https://fonts.gstatic.com/s/cherryswash/v9/i7dNIFByZjaNAMxtZcnfAy5MSXK_MQacb0yG.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Cherry Swash';font-style:normal;font-weight:400;font-display:swap;src:local('Cherry Swash'),local('CherrySwash-Regular'),url(https://fonts.gstatic.com/s/cherryswash/v9/i7dNIFByZjaNAMxtZcnfAy5MR3K_MQacbw.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Cinzel Decorative';font-style:normal;font-weight:700;font-display:swap;src:local('Cinzel Decorative Bold'),local('CinzelDecorative-Bold'),url(https://fonts.gstatic.com/s/cinzeldecorative/v9/daaHSScvJGqLYhG8nNt8KPPswUAPniZoadlESTGplhXF.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Cinzel';font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/cinzel/v10/8vIU7ww63mVu7gtR-kwKxNvkNOjw-tbnfYPlC2xcZqTFU3AS.woff) format('woff');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Cinzel';font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/cinzel/v10/8vIU7ww63mVu7gtR-kwKxNvkNOjw-tbnfY3lC2xcZqTFUw.woff) format('woff');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Clicker Script';font-style:normal;font-weight:400;font-display:swap;src:local('Clicker Script'),local('ClickerScript-Regular'),url(https://fonts.gstatic.com/s/clickerscript/v8/raxkHiKPvt8CMH6ZWP8PdlEq71rR0Tu2KrfuYFE.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Clicker Script';font-style:normal;font-weight:400;font-display:swap;src:local('Clicker Script'),local('ClickerScript-Regular'),url(https://fonts.gstatic.com/s/clickerscript/v8/raxkHiKPvt8CMH6ZWP8PdlEq71rf0Tu2Krfu.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Cormorant';font-style:normal;font-weight:600;font-display:swap;src:local('Cormorant SemiBold'),local('Cormorant-SemiBold'),url(https://fonts.gstatic.com/s/cormorant/v10/H4cgBXOCl9bbnla_nHIiML-oiIazQTJjFuER.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Cormorant';font-style:normal;font-weight:600;font-display:swap;src:local('Cormorant SemiBold'),local('Cormorant-SemiBold'),url(https://fonts.gstatic.com/s/cormorant/v10/H4cgBXOCl9bbnla_nHIiML-ogYazQTJjFuER.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Cormorant';font-style:normal;font-weight:600;font-display:swap;src:local('Cormorant SemiBold'),local('Cormorant-SemiBold'),url(https://fonts.gstatic.com/s/cormorant/v10/H4cgBXOCl9bbnla_nHIiML-oioazQTJjFuER.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Cormorant';font-style:normal;font-weight:600;font-display:swap;src:local('Cormorant SemiBold'),local('Cormorant-SemiBold'),url(https://fonts.gstatic.com/s/cormorant/v10/H4cgBXOCl9bbnla_nHIiML-oi4azQTJjFuER.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Cormorant';font-style:normal;font-weight:600;font-display:swap;src:local('Cormorant SemiBold'),local('Cormorant-SemiBold'),url(https://fonts.gstatic.com/s/cormorant/v10/H4cgBXOCl9bbnla_nHIiML-ohYazQTJjFg.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Flamenco';font-style:normal;font-weight:400;font-display:swap;src:local('Flamenco Regular'),local('Flamenco-Regular'),url(https://fonts.gstatic.com/s/flamenco/v11/neIIzCehqYguo67ssZWBFqwYUp31.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Heebo';font-style:normal;font-weight:300;font-display:swap;src:url(https://fonts.gstatic.com/s/heebo/v9/NGSpv5_NC0k9P_v6ZUCbLRAHxK1E1yysd0mg7UiCXB5WkK8.woff) format('woff');unicode-range:U+0590-05FF,U+20AA,U+25CC,U+FB1D-FB4F;}@font-face{font-family:'Heebo';font-style:normal;font-weight:300;font-display:swap;src:url(https://fonts.gstatic.com/s/heebo/v9/NGSpv5_NC0k9P_v6ZUCbLRAHxK1E1yysdUmg7UiCXB5W.woff) format('woff');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'IM Fell DW Pica';font-style:normal;font-weight:400;font-display:swap;src:local('IM FELL DW Pica Roman'),local('IM_FELL_DW_Pica_Roman'),url(https://fonts.gstatic.com/s/imfelldwpica/v10/2sDGZGRQotv9nbn2qSl0TxXVYNwNYwnVnCwsMA.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Jost';font-style:normal;font-weight:800;font-display:swap;src:url(https://fonts.gstatic.com/s/jost/v3/92zPtBhPNqw79Ij1E865zBUv7mwjIjVFNI4un_HKOEp-Cw.woff) format('woff');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Jost';font-style:normal;font-weight:800;font-display:swap;src:url(https://fonts.gstatic.com/s/jost/v3/92zPtBhPNqw79Ij1E865zBUv7mwjIjVPNI4un_HKOEp-Cw.woff) format('woff');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Jost';font-style:normal;font-weight:800;font-display:swap;src:url(https://fonts.gstatic.com/s/jost/v3/92zPtBhPNqw79Ij1E865zBUv7mwjIjVBNI4un_HKOEo.woff) format('woff');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Kalam';font-style:normal;font-weight:400;font-display:swap;src:local('Kalam'),local('Kalam-Regular'),url(https://fonts.gstatic.com/s/kalam/v11/YA9dr0Wd4kDdMthQOCfhsCkAj7g.woff2) format('woff2');unicode-range:U+0900-097F,U+1CD0-1CF6,U+1CF8-1CF9,U+200C-200D,U+20A8,U+20B9,U+25CC,U+A830-A839,U+A8E0-A8FB;}@font-face{font-family:'Kalam';font-style:normal;font-weight:400;font-display:swap;src:local('Kalam'),local('Kalam-Regular'),url(https://fonts.gstatic.com/s/kalam/v11/YA9dr0Wd4kDdMthfOCfhsCkAj7g.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Kalam';font-style:normal;font-weight:400;font-display:swap;src:local('Kalam'),local('Kalam-Regular'),url(https://fonts.gstatic.com/s/kalam/v11/YA9dr0Wd4kDdMthROCfhsCkA.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Roboto';font-style:italic;font-weight:100;font-display:swap;src:local('Roboto Thin Italic'),local('Roboto-ThinItalic'),url(https://fonts.gstatic.com/s/roboto/v20/KFOiCnqEu92Fr1Mu51QrEz0dL-vwnYh2eg.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Roboto';font-style:italic;font-weight:100;font-display:swap;src:local('Roboto Thin Italic'),local('Roboto-ThinItalic'),url(https://fonts.gstatic.com/s/roboto/v20/KFOiCnqEu92Fr1Mu51QrEzQdL-vwnYh2eg.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Roboto';font-style:italic;font-weight:100;font-display:swap;src:local('Roboto Thin Italic'),local('Roboto-ThinItalic'),url(https://fonts.gstatic.com/s/roboto/v20/KFOiCnqEu92Fr1Mu51QrEzwdL-vwnYh2eg.woff2) format('woff2');unicode-range:U+1F00-1FFF;}@font-face{font-family:'Roboto';font-style:italic;font-weight:100;font-display:swap;src:local('Roboto Thin Italic'),local('Roboto-ThinItalic'),url(https://fonts.gstatic.com/s/roboto/v20/KFOiCnqEu92Fr1Mu51QrEzMdL-vwnYh2eg.woff2) format('woff2');unicode-range:U+0370-03FF;}@font-face{font-family:'Roboto';font-style:italic;font-weight:100;font-display:swap;src:local('Roboto Thin Italic'),local('Roboto-ThinItalic'),url(https://fonts.gstatic.com/s/roboto/v20/KFOiCnqEu92Fr1Mu51QrEz8dL-vwnYh2eg.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Roboto';font-style:italic;font-weight:100;font-display:swap;src:local('Roboto Thin Italic'),local('Roboto-ThinItalic'),url(https://fonts.gstatic.com/s/roboto/v20/KFOiCnqEu92Fr1Mu51QrEz4dL-vwnYh2eg.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Roboto';font-style:italic;font-weight:100;font-display:swap;src:local('Roboto Thin Italic'),local('Roboto-ThinItalic'),url(https://fonts.gstatic.com/s/roboto/v20/KFOiCnqEu92Fr1Mu51QrEzAdL-vwnYg.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Roboto';font-style:italic;font-weight:300;font-display:swap;src:local('Roboto Light Italic'),local('Roboto-LightItalic'),url(https://fonts.gstatic.com/s/roboto/v20/KFOjCnqEu92Fr1Mu51TjASc3CsTYl4BOQ3o.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Roboto';font-style:italic;font-weight:300;font-display:swap;src:local('Roboto Light Italic'),local('Roboto-LightItalic'),url(https://fonts.gstatic.com/s/roboto/v20/KFOjCnqEu92Fr1Mu51TjASc-CsTYl4BOQ3o.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Roboto';font-style:italic;font-weight:300;font-display:swap;src:local('Roboto Light Italic'),local('Roboto-LightItalic'),url(https://fonts.gstatic.com/s/roboto/v20/KFOjCnqEu92Fr1Mu51TjASc2CsTYl4BOQ3o.woff2) format('woff2');unicode-range:U+1F00-1FFF;}@font-face{font-family:'Roboto';font-style:italic;font-weight:300;font-display:swap;src:local('Roboto Light Italic'),local('Roboto-LightItalic'),url(https://fonts.gstatic.com/s/roboto/v20/KFOjCnqEu92Fr1Mu51TjASc5CsTYl4BOQ3o.woff2) format('woff2');unicode-range:U+0370-03FF;}@font-face{font-family:'Roboto';font-style:italic;font-weight:300;font-display:swap;src:local('Roboto Light Italic'),local('Roboto-LightItalic'),url(https://fonts.gstatic.com/s/roboto/v20/KFOjCnqEu92Fr1Mu51TjASc1CsTYl4BOQ3o.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Roboto';font-style:italic;font-weight:300;font-display:swap;src:local('Roboto Light Italic'),local('Roboto-LightItalic'),url(https://fonts.gstatic.com/s/roboto/v20/KFOjCnqEu92Fr1Mu51TjASc0CsTYl4BOQ3o.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Roboto';font-style:italic;font-weight:300;font-display:swap;src:local('Roboto Light Italic'),local('Roboto-LightItalic'),url(https://fonts.gstatic.com/s/roboto/v20/KFOjCnqEu92Fr1Mu51TjASc6CsTYl4BO.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Roboto';font-style:italic;font-weight:400;font-display:swap;src:local('Roboto Italic'),local('Roboto-Italic'),url(https://fonts.gstatic.com/s/roboto/v20/KFOkCnqEu92Fr1Mu51xFIzIXKMnyrYk.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Roboto';font-style:italic;font-weight:400;font-display:swap;src:local('Roboto Italic'),local('Roboto-Italic'),url(https://fonts.gstatic.com/s/roboto/v20/KFOkCnqEu92Fr1Mu51xMIzIXKMnyrYk.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Roboto';font-style:italic;font-weight:400;font-display:swap;src:local('Roboto Italic'),local('Roboto-Italic'),url(https://fonts.gstatic.com/s/roboto/v20/KFOkCnqEu92Fr1Mu51xEIzIXKMnyrYk.woff2) format('woff2');unicode-range:U+1F00-1FFF;}@font-face{font-family:'Roboto';font-style:italic;font-weight:400;font-display:swap;src:local('Roboto Italic'),local('Roboto-Italic'),url(https://fonts.gstatic.com/s/roboto/v20/KFOkCnqEu92Fr1Mu51xLIzIXKMnyrYk.woff2) format('woff2');unicode-range:U+0370-03FF;}@font-face{font-family:'Roboto';font-style:italic;font-weight:400;font-display:swap;src:local('Roboto Italic'),local('Roboto-Italic'),url(https://fonts.gstatic.com/s/roboto/v20/KFOkCnqEu92Fr1Mu51xHIzIXKMnyrYk.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Roboto';font-style:italic;font-weight:400;font-display:swap;src:local('Roboto Italic'),local('Roboto-Italic'),url(https://fonts.gstatic.com/s/roboto/v20/KFOkCnqEu92Fr1Mu51xGIzIXKMnyrYk.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Roboto';font-style:italic;font-weight:400;font-display:swap;src:local('Roboto Italic'),local('Roboto-Italic'),url(https://fonts.gstatic.com/s/roboto/v20/KFOkCnqEu92Fr1Mu51xIIzIXKMny.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Roboto';font-style:italic;font-weight:500;font-display:swap;src:local('Roboto Medium Italic'),local('Roboto-MediumItalic'),url(https://fonts.gstatic.com/s/roboto/v20/KFOjCnqEu92Fr1Mu51S7ACc3CsTYl4BOQ3o.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Roboto';font-style:italic;font-weight:500;font-display:swap;src:local('Roboto Medium Italic'),local('Roboto-MediumItalic'),url(https://fonts.gstatic.com/s/roboto/v20/KFOjCnqEu92Fr1Mu51S7ACc-CsTYl4BOQ3o.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Roboto';font-style:italic;font-weight:500;font-display:swap;src:local('Roboto Medium Italic'),local('Roboto-MediumItalic'),url(https://fonts.gstatic.com/s/roboto/v20/KFOjCnqEu92Fr1Mu51S7ACc2CsTYl4BOQ3o.woff2) format('woff2');unicode-range:U+1F00-1FFF;}@font-face{font-family:'Roboto';font-style:italic;font-weight:500;font-display:swap;src:local('Roboto Medium Italic'),local('Roboto-MediumItalic'),url(https://fonts.gstatic.com/s/roboto/v20/KFOjCnqEu92Fr1Mu51S7ACc5CsTYl4BOQ3o.woff2) format('woff2');unicode-range:U+0370-03FF;}@font-face{font-family:'Roboto';font-style:italic;font-weight:500;font-display:swap;src:local('Roboto Medium Italic'),local('Roboto-MediumItalic'),url(https://fonts.gstatic.com/s/roboto/v20/KFOjCnqEu92Fr1Mu51S7ACc1CsTYl4BOQ3o.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Roboto';font-style:italic;font-weight:500;font-display:swap;src:local('Roboto Medium Italic'),local('Roboto-MediumItalic'),url(https://fonts.gstatic.com/s/roboto/v20/KFOjCnqEu92Fr1Mu51S7ACc0CsTYl4BOQ3o.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Roboto';font-style:italic;font-weight:500;font-display:swap;src:local('Roboto Medium Italic'),local('Roboto-MediumItalic'),url(https://fonts.gstatic.com/s/roboto/v20/KFOjCnqEu92Fr1Mu51S7ACc6CsTYl4BO.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Roboto';font-style:italic;font-weight:700;font-display:swap;src:local('Roboto Bold Italic'),local('Roboto-BoldItalic'),url(https://fonts.gstatic.com/s/roboto/v20/KFOjCnqEu92Fr1Mu51TzBic3CsTYl4BOQ3o.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Roboto';font-style:italic;font-weight:700;font-display:swap;src:local('Roboto Bold Italic'),local('Roboto-BoldItalic'),url(https://fonts.gstatic.com/s/roboto/v20/KFOjCnqEu92Fr1Mu51TzBic-CsTYl4BOQ3o.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Roboto';font-style:italic;font-weight:700;font-display:swap;src:local('Roboto Bold Italic'),local('Roboto-BoldItalic'),url(https://fonts.gstatic.com/s/roboto/v20/KFOjCnqEu92Fr1Mu51TzBic2CsTYl4BOQ3o.woff2) format('woff2');unicode-range:U+1F00-1FFF;}@font-face{font-family:'Roboto';font-style:italic;font-weight:700;font-display:swap;src:local('Roboto Bold Italic'),local('Roboto-BoldItalic'),url(https://fonts.gstatic.com/s/roboto/v20/KFOjCnqEu92Fr1Mu51TzBic5CsTYl4BOQ3o.woff2) format('woff2');unicode-range:U+0370-03FF;}@font-face{font-family:'Roboto';font-style:italic;font-weight:700;font-display:swap;src:local('Roboto Bold Italic'),local('Roboto-BoldItalic'),url(https://fonts.gstatic.com/s/roboto/v20/KFOjCnqEu92Fr1Mu51TzBic1CsTYl4BOQ3o.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Roboto';font-style:italic;font-weight:700;font-display:swap;src:local('Roboto Bold Italic'),local('Roboto-BoldItalic'),url(https://fonts.gstatic.com/s/roboto/v20/KFOjCnqEu92Fr1Mu51TzBic0CsTYl4BOQ3o.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Roboto';font-style:italic;font-weight:700;font-display:swap;src:local('Roboto Bold Italic'),local('Roboto-BoldItalic'),url(https://fonts.gstatic.com/s/roboto/v20/KFOjCnqEu92Fr1Mu51TzBic6CsTYl4BO.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Roboto';font-style:italic;font-weight:900;font-display:swap;src:local('Roboto Black Italic'),local('Roboto-BlackItalic'),url(https://fonts.gstatic.com/s/roboto/v20/KFOjCnqEu92Fr1Mu51TLBCc3CsTYl4BOQ3o.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Roboto';font-style:italic;font-weight:900;font-display:swap;src:local('Roboto Black Italic'),local('Roboto-BlackItalic'),url(https://fonts.gstatic.com/s/roboto/v20/KFOjCnqEu92Fr1Mu51TLBCc-CsTYl4BOQ3o.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Roboto';font-style:italic;font-weight:900;font-display:swap;src:local('Roboto Black Italic'),local('Roboto-BlackItalic'),url(https://fonts.gstatic.com/s/roboto/v20/KFOjCnqEu92Fr1Mu51TLBCc2CsTYl4BOQ3o.woff2) format('woff2');unicode-range:U+1F00-1FFF;}@font-face{font-family:'Roboto';font-style:italic;font-weight:900;font-display:swap;src:local('Roboto Black Italic'),local('Roboto-BlackItalic'),url(https://fonts.gstatic.com/s/roboto/v20/KFOjCnqEu92Fr1Mu51TLBCc5CsTYl4BOQ3o.woff2) format('woff2');unicode-range:U+0370-03FF;}@font-face{font-family:'Roboto';font-style:italic;font-weight:900;font-display:swap;src:local('Roboto Black Italic'),local('Roboto-BlackItalic'),url(https://fonts.gstatic.com/s/roboto/v20/KFOjCnqEu92Fr1Mu51TLBCc1CsTYl4BOQ3o.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Roboto';font-style:italic;font-weight:900;font-display:swap;src:local('Roboto Black Italic'),local('Roboto-BlackItalic'),url(https://fonts.gstatic.com/s/roboto/v20/KFOjCnqEu92Fr1Mu51TLBCc0CsTYl4BOQ3o.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Roboto';font-style:italic;font-weight:900;font-display:swap;src:local('Roboto Black Italic'),local('Roboto-BlackItalic'),url(https://fonts.gstatic.com/s/roboto/v20/KFOjCnqEu92Fr1Mu51TLBCc6CsTYl4BO.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Roboto';font-style:normal;font-weight:100;font-display:swap;src:local('Roboto Thin'),local('Roboto-Thin'),url(https://fonts.gstatic.com/s/roboto/v20/KFOkCnqEu92Fr1MmgVxFIzIXKMnyrYk.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Roboto';font-style:normal;font-weight:100;font-display:swap;src:local('Roboto Thin'),local('Roboto-Thin'),url(https://fonts.gstatic.com/s/roboto/v20/KFOkCnqEu92Fr1MmgVxMIzIXKMnyrYk.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Roboto';font-style:normal;font-weight:100;font-display:swap;src:local('Roboto Thin'),local('Roboto-Thin'),url(https://fonts.gstatic.com/s/roboto/v20/KFOkCnqEu92Fr1MmgVxEIzIXKMnyrYk.woff2) format('woff2');unicode-range:U+1F00-1FFF;}@font-face{font-family:'Roboto';font-style:normal;font-weight:100;font-display:swap;src:local('Roboto Thin'),local('Roboto-Thin'),url(https://fonts.gstatic.com/s/roboto/v20/KFOkCnqEu92Fr1MmgVxLIzIXKMnyrYk.woff2) format('woff2');unicode-range:U+0370-03FF;}@font-face{font-family:'Roboto';font-style:normal;font-weight:100;font-display:swap;src:local('Roboto Thin'),local('Roboto-Thin'),url(https://fonts.gstatic.com/s/roboto/v20/KFOkCnqEu92Fr1MmgVxHIzIXKMnyrYk.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Roboto';font-style:normal;font-weight:100;font-display:swap;src:local('Roboto Thin'),local('Roboto-Thin'),url(https://fonts.gstatic.com/s/roboto/v20/KFOkCnqEu92Fr1MmgVxGIzIXKMnyrYk.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Roboto';font-style:normal;font-weight:100;font-display:swap;src:local('Roboto Thin'),local('Roboto-Thin'),url(https://fonts.gstatic.com/s/roboto/v20/KFOkCnqEu92Fr1MmgVxIIzIXKMny.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Roboto';font-style:normal;font-weight:300;font-display:swap;src:local('Roboto Light'),local('Roboto-Light'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmSU5fCRc4AMP6lbBP.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Roboto';font-style:normal;font-weight:300;font-display:swap;src:local('Roboto Light'),local('Roboto-Light'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmSU5fABc4AMP6lbBP.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Roboto';font-style:normal;font-weight:300;font-display:swap;src:local('Roboto Light'),local('Roboto-Light'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmSU5fCBc4AMP6lbBP.woff2) format('woff2');unicode-range:U+1F00-1FFF;}@font-face{font-family:'Roboto';font-style:normal;font-weight:300;font-display:swap;src:local('Roboto Light'),local('Roboto-Light'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmSU5fBxc4AMP6lbBP.woff2) format('woff2');unicode-range:U+0370-03FF;}@font-face{font-family:'Roboto';font-style:normal;font-weight:300;font-display:swap;src:local('Roboto Light'),local('Roboto-Light'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmSU5fCxc4AMP6lbBP.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Roboto';font-style:normal;font-weight:300;font-display:swap;src:local('Roboto Light'),local('Roboto-Light'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmSU5fChc4AMP6lbBP.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Roboto';font-style:normal;font-weight:300;font-display:swap;src:local('Roboto Light'),local('Roboto-Light'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmSU5fBBc4AMP6lQ.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Roboto';font-style:normal;font-weight:400;font-display:swap;src:local('Roboto'),local('Roboto-Regular'),url(https://fonts.gstatic.com/s/roboto/v20/KFOmCnqEu92Fr1Mu72xKKTU1Kvnz.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Roboto';font-style:normal;font-weight:400;font-display:swap;src:local('Roboto'),local('Roboto-Regular'),url(https://fonts.gstatic.com/s/roboto/v20/KFOmCnqEu92Fr1Mu5mxKKTU1Kvnz.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Roboto';font-style:normal;font-weight:400;font-display:swap;src:local('Roboto'),local('Roboto-Regular'),url(https://fonts.gstatic.com/s/roboto/v20/KFOmCnqEu92Fr1Mu7mxKKTU1Kvnz.woff2) format('woff2');unicode-range:U+1F00-1FFF;}@font-face{font-family:'Roboto';font-style:normal;font-weight:400;font-display:swap;src:local('Roboto'),local('Roboto-Regular'),url(https://fonts.gstatic.com/s/roboto/v20/KFOmCnqEu92Fr1Mu4WxKKTU1Kvnz.woff2) format('woff2');unicode-range:U+0370-03FF;}@font-face{font-family:'Roboto';font-style:normal;font-weight:400;font-display:swap;src:local('Roboto'),local('Roboto-Regular'),url(https://fonts.gstatic.com/s/roboto/v20/KFOmCnqEu92Fr1Mu7WxKKTU1Kvnz.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Roboto';font-style:normal;font-weight:400;font-display:swap;src:local('Roboto'),local('Roboto-Regular'),url(https://fonts.gstatic.com/s/roboto/v20/KFOmCnqEu92Fr1Mu7GxKKTU1Kvnz.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Roboto';font-style:normal;font-weight:400;font-display:swap;src:local('Roboto'),local('Roboto-Regular'),url(https://fonts.gstatic.com/s/roboto/v20/KFOmCnqEu92Fr1Mu4mxKKTU1Kg.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Roboto';font-style:normal;font-weight:500;font-display:swap;src:local('Roboto Medium'),local('Roboto-Medium'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmEU9fCRc4AMP6lbBP.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Roboto';font-style:normal;font-weight:500;font-display:swap;src:local('Roboto Medium'),local('Roboto-Medium'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmEU9fABc4AMP6lbBP.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Roboto';font-style:normal;font-weight:500;font-display:swap;src:local('Roboto Medium'),local('Roboto-Medium'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmEU9fCBc4AMP6lbBP.woff2) format('woff2');unicode-range:U+1F00-1FFF;}@font-face{font-family:'Roboto';font-style:normal;font-weight:500;font-display:swap;src:local('Roboto Medium'),local('Roboto-Medium'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmEU9fBxc4AMP6lbBP.woff2) format('woff2');unicode-range:U+0370-03FF;}@font-face{font-family:'Roboto';font-style:normal;font-weight:500;font-display:swap;src:local('Roboto Medium'),local('Roboto-Medium'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmEU9fCxc4AMP6lbBP.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Roboto';font-style:normal;font-weight:500;font-display:swap;src:local('Roboto Medium'),local('Roboto-Medium'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmEU9fChc4AMP6lbBP.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Roboto';font-style:normal;font-weight:500;font-display:swap;src:local('Roboto Medium'),local('Roboto-Medium'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmEU9fBBc4AMP6lQ.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Roboto';font-style:normal;font-weight:700;font-display:swap;src:local('Roboto Bold'),local('Roboto-Bold'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmWUlfCRc4AMP6lbBP.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Roboto';font-style:normal;font-weight:700;font-display:swap;src:local('Roboto Bold'),local('Roboto-Bold'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmWUlfABc4AMP6lbBP.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Roboto';font-style:normal;font-weight:700;font-display:swap;src:local('Roboto Bold'),local('Roboto-Bold'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmWUlfCBc4AMP6lbBP.woff2) format('woff2');unicode-range:U+1F00-1FFF;}@font-face{font-family:'Roboto';font-style:normal;font-weight:700;font-display:swap;src:local('Roboto Bold'),local('Roboto-Bold'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmWUlfBxc4AMP6lbBP.woff2) format('woff2');unicode-range:U+0370-03FF;}@font-face{font-family:'Roboto';font-style:normal;font-weight:700;font-display:swap;src:local('Roboto Bold'),local('Roboto-Bold'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmWUlfCxc4AMP6lbBP.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Roboto';font-style:normal;font-weight:700;font-display:swap;src:local('Roboto Bold'),local('Roboto-Bold'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmWUlfChc4AMP6lbBP.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Roboto';font-style:normal;font-weight:700;font-display:swap;src:local('Roboto Bold'),local('Roboto-Bold'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmWUlfBBc4AMP6lQ.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Roboto';font-style:normal;font-weight:900;font-display:swap;src:local('Roboto Black'),local('Roboto-Black'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmYUtfCRc4AMP6lbBP.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Roboto';font-style:normal;font-weight:900;font-display:swap;src:local('Roboto Black'),local('Roboto-Black'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmYUtfABc4AMP6lbBP.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Roboto';font-style:normal;font-weight:900;font-display:swap;src:local('Roboto Black'),local('Roboto-Black'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmYUtfCBc4AMP6lbBP.woff2) format('woff2');unicode-range:U+1F00-1FFF;}@font-face{font-family:'Roboto';font-style:normal;font-weight:900;font-display:swap;src:local('Roboto Black'),local('Roboto-Black'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmYUtfBxc4AMP6lbBP.woff2) format('woff2');unicode-range:U+0370-03FF;}@font-face{font-family:'Roboto';font-style:normal;font-weight:900;font-display:swap;src:local('Roboto Black'),local('Roboto-Black'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmYUtfCxc4AMP6lbBP.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Roboto';font-style:normal;font-weight:900;font-display:swap;src:local('Roboto Black'),local('Roboto-Black'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmYUtfChc4AMP6lbBP.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Roboto';font-style:normal;font-weight:900;font-display:swap;src:local('Roboto Black'),local('Roboto-Black'),url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmYUtfBBc4AMP6lQ.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Open Sans';font-style:italic;font-weight:300;font-display:swap;src:local('Open Sans Light Italic'),local('OpenSans-LightItalic'),url(https://fonts.gstatic.com/s/opensans/v18/memnYaGs126MiZpBA-UFUKWyV9hmIqOxjaPXZSk.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Open Sans';font-style:italic;font-weight:300;font-display:swap;src:local('Open Sans Light Italic'),local('OpenSans-LightItalic'),url(https://fonts.gstatic.com/s/opensans/v18/memnYaGs126MiZpBA-UFUKWyV9hvIqOxjaPXZSk.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Open Sans';font-style:italic;font-weight:300;font-display:swap;src:local('Open Sans Light Italic'),local('OpenSans-LightItalic'),url(https://fonts.gstatic.com/s/opensans/v18/memnYaGs126MiZpBA-UFUKWyV9hnIqOxjaPXZSk.woff2) format('woff2');unicode-range:U+1F00-1FFF;}@font-face{font-family:'Open Sans';font-style:italic;font-weight:300;font-display:swap;src:local('Open Sans Light Italic'),local('OpenSans-LightItalic'),url(https://fonts.gstatic.com/s/opensans/v18/memnYaGs126MiZpBA-UFUKWyV9hoIqOxjaPXZSk.woff2) format('woff2');unicode-range:U+0370-03FF;}@font-face{font-family:'Open Sans';font-style:italic;font-weight:300;font-display:swap;src:local('Open Sans Light Italic'),local('OpenSans-LightItalic'),url(https://fonts.gstatic.com/s/opensans/v18/memnYaGs126MiZpBA-UFUKWyV9hkIqOxjaPXZSk.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Open Sans';font-style:italic;font-weight:300;font-display:swap;src:local('Open Sans Light Italic'),local('OpenSans-LightItalic'),url(https://fonts.gstatic.com/s/opensans/v18/memnYaGs126MiZpBA-UFUKWyV9hlIqOxjaPXZSk.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Open Sans';font-style:italic;font-weight:300;font-display:swap;src:local('Open Sans Light Italic'),local('OpenSans-LightItalic'),url(https://fonts.gstatic.com/s/opensans/v18/memnYaGs126MiZpBA-UFUKWyV9hrIqOxjaPX.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Open Sans';font-style:italic;font-weight:400;font-display:swap;src:local('Open Sans Italic'),local('OpenSans-Italic'),url(https://fonts.gstatic.com/s/opensans/v18/mem6YaGs126MiZpBA-UFUK0Udc1GAK6bt6o.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Open Sans';font-style:italic;font-weight:400;font-display:swap;src:local('Open Sans Italic'),local('OpenSans-Italic'),url(https://fonts.gstatic.com/s/opensans/v18/mem6YaGs126MiZpBA-UFUK0ddc1GAK6bt6o.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Open Sans';font-style:italic;font-weight:400;font-display:swap;src:local('Open Sans Italic'),local('OpenSans-Italic'),url(https://fonts.gstatic.com/s/opensans/v18/mem6YaGs126MiZpBA-UFUK0Vdc1GAK6bt6o.woff2) format('woff2');unicode-range:U+1F00-1FFF;}@font-face{font-family:'Open Sans';font-style:italic;font-weight:400;font-display:swap;src:local('Open Sans Italic'),local('OpenSans-Italic'),url(https://fonts.gstatic.com/s/opensans/v18/mem6YaGs126MiZpBA-UFUK0adc1GAK6bt6o.woff2) format('woff2');unicode-range:U+0370-03FF;}@font-face{font-family:'Open Sans';font-style:italic;font-weight:400;font-display:swap;src:local('Open Sans Italic'),local('OpenSans-Italic'),url(https://fonts.gstatic.com/s/opensans/v18/mem6YaGs126MiZpBA-UFUK0Wdc1GAK6bt6o.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Open Sans';font-style:italic;font-weight:400;font-display:swap;src:local('Open Sans Italic'),local('OpenSans-Italic'),url(https://fonts.gstatic.com/s/opensans/v18/mem6YaGs126MiZpBA-UFUK0Xdc1GAK6bt6o.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Open Sans';font-style:italic;font-weight:400;font-display:swap;src:local('Open Sans Italic'),local('OpenSans-Italic'),url(https://fonts.gstatic.com/s/opensans/v18/mem6YaGs126MiZpBA-UFUK0Zdc1GAK6b.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Open Sans';font-style:italic;font-weight:600;font-display:swap;src:local('Open Sans SemiBold Italic'),local('OpenSans-SemiBoldItalic'),url(https://fonts.gstatic.com/s/opensans/v18/memnYaGs126MiZpBA-UFUKXGUdhmIqOxjaPXZSk.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Open Sans';font-style:italic;font-weight:600;font-display:swap;src:local('Open Sans SemiBold Italic'),local('OpenSans-SemiBoldItalic'),url(https://fonts.gstatic.com/s/opensans/v18/memnYaGs126MiZpBA-UFUKXGUdhvIqOxjaPXZSk.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Open Sans';font-style:italic;font-weight:600;font-display:swap;src:local('Open Sans SemiBold Italic'),local('OpenSans-SemiBoldItalic'),url(https://fonts.gstatic.com/s/opensans/v18/memnYaGs126MiZpBA-UFUKXGUdhnIqOxjaPXZSk.woff2) format('woff2');unicode-range:U+1F00-1FFF;}@font-face{font-family:'Open Sans';font-style:italic;font-weight:600;font-display:swap;src:local('Open Sans SemiBold Italic'),local('OpenSans-SemiBoldItalic'),url(https://fonts.gstatic.com/s/opensans/v18/memnYaGs126MiZpBA-UFUKXGUdhoIqOxjaPXZSk.woff2) format('woff2');unicode-range:U+0370-03FF;}@font-face{font-family:'Open Sans';font-style:italic;font-weight:600;font-display:swap;src:local('Open Sans SemiBold Italic'),local('OpenSans-SemiBoldItalic'),url(https://fonts.gstatic.com/s/opensans/v18/memnYaGs126MiZpBA-UFUKXGUdhkIqOxjaPXZSk.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Open Sans';font-style:italic;font-weight:600;font-display:swap;src:local('Open Sans SemiBold Italic'),local('OpenSans-SemiBoldItalic'),url(https://fonts.gstatic.com/s/opensans/v18/memnYaGs126MiZpBA-UFUKXGUdhlIqOxjaPXZSk.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Open Sans';font-style:italic;font-weight:600;font-display:swap;src:local('Open Sans SemiBold Italic'),local('OpenSans-SemiBoldItalic'),url(https://fonts.gstatic.com/s/opensans/v18/memnYaGs126MiZpBA-UFUKXGUdhrIqOxjaPX.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Open Sans';font-style:italic;font-weight:700;font-display:swap;src:local('Open Sans Bold Italic'),local('OpenSans-BoldItalic'),url(https://fonts.gstatic.com/s/opensans/v18/memnYaGs126MiZpBA-UFUKWiUNhmIqOxjaPXZSk.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Open Sans';font-style:italic;font-weight:700;font-display:swap;src:local('Open Sans Bold Italic'),local('OpenSans-BoldItalic'),url(https://fonts.gstatic.com/s/opensans/v18/memnYaGs126MiZpBA-UFUKWiUNhvIqOxjaPXZSk.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Open Sans';font-style:italic;font-weight:700;font-display:swap;src:local('Open Sans Bold Italic'),local('OpenSans-BoldItalic'),url(https://fonts.gstatic.com/s/opensans/v18/memnYaGs126MiZpBA-UFUKWiUNhnIqOxjaPXZSk.woff2) format('woff2');unicode-range:U+1F00-1FFF;}@font-face{font-family:'Open Sans';font-style:italic;font-weight:700;font-display:swap;src:local('Open Sans Bold Italic'),local('OpenSans-BoldItalic'),url(https://fonts.gstatic.com/s/opensans/v18/memnYaGs126MiZpBA-UFUKWiUNhoIqOxjaPXZSk.woff2) format('woff2');unicode-range:U+0370-03FF;}@font-face{font-family:'Open Sans';font-style:italic;font-weight:700;font-display:swap;src:local('Open Sans Bold Italic'),local('OpenSans-BoldItalic'),url(https://fonts.gstatic.com/s/opensans/v18/memnYaGs126MiZpBA-UFUKWiUNhkIqOxjaPXZSk.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Open Sans';font-style:italic;font-weight:700;font-display:swap;src:local('Open Sans Bold Italic'),local('OpenSans-BoldItalic'),url(https://fonts.gstatic.com/s/opensans/v18/memnYaGs126MiZpBA-UFUKWiUNhlIqOxjaPXZSk.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Open Sans';font-style:italic;font-weight:700;font-display:swap;src:local('Open Sans Bold Italic'),local('OpenSans-BoldItalic'),url(https://fonts.gstatic.com/s/opensans/v18/memnYaGs126MiZpBA-UFUKWiUNhrIqOxjaPX.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Open Sans';font-style:italic;font-weight:800;font-display:swap;src:local('Open Sans ExtraBold Italic'),local('OpenSans-ExtraBoldItalic'),url(https://fonts.gstatic.com/s/opensans/v18/memnYaGs126MiZpBA-UFUKW-U9hmIqOxjaPXZSk.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Open Sans';font-style:italic;font-weight:800;font-display:swap;src:local('Open Sans ExtraBold Italic'),local('OpenSans-ExtraBoldItalic'),url(https://fonts.gstatic.com/s/opensans/v18/memnYaGs126MiZpBA-UFUKW-U9hvIqOxjaPXZSk.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Open Sans';font-style:italic;font-weight:800;font-display:swap;src:local('Open Sans ExtraBold Italic'),local('OpenSans-ExtraBoldItalic'),url(https://fonts.gstatic.com/s/opensans/v18/memnYaGs126MiZpBA-UFUKW-U9hnIqOxjaPXZSk.woff2) format('woff2');unicode-range:U+1F00-1FFF;}@font-face{font-family:'Open Sans';font-style:italic;font-weight:800;font-display:swap;src:local('Open Sans ExtraBold Italic'),local('OpenSans-ExtraBoldItalic'),url(https://fonts.gstatic.com/s/opensans/v18/memnYaGs126MiZpBA-UFUKW-U9hoIqOxjaPXZSk.woff2) format('woff2');unicode-range:U+0370-03FF;}@font-face{font-family:'Open Sans';font-style:italic;font-weight:800;font-display:swap;src:local('Open Sans ExtraBold Italic'),local('OpenSans-ExtraBoldItalic'),url(https://fonts.gstatic.com/s/opensans/v18/memnYaGs126MiZpBA-UFUKW-U9hkIqOxjaPXZSk.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Open Sans';font-style:italic;font-weight:800;font-display:swap;src:local('Open Sans ExtraBold Italic'),local('OpenSans-ExtraBoldItalic'),url(https://fonts.gstatic.com/s/opensans/v18/memnYaGs126MiZpBA-UFUKW-U9hlIqOxjaPXZSk.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Open Sans';font-style:italic;font-weight:800;font-display:swap;src:local('Open Sans ExtraBold Italic'),local('OpenSans-ExtraBoldItalic'),url(https://fonts.gstatic.com/s/opensans/v18/memnYaGs126MiZpBA-UFUKW-U9hrIqOxjaPX.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Open Sans';font-style:normal;font-weight:300;font-display:swap;src:local('Open Sans Light'),local('OpenSans-Light'),url(https://fonts.gstatic.com/s/opensans/v18/mem5YaGs126MiZpBA-UN_r8OX-hpKKSTj5PW.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Open Sans';font-style:normal;font-weight:300;font-display:swap;src:local('Open Sans Light'),local('OpenSans-Light'),url(https://fonts.gstatic.com/s/opensans/v18/mem5YaGs126MiZpBA-UN_r8OVuhpKKSTj5PW.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Open Sans';font-style:normal;font-weight:300;font-display:swap;src:local('Open Sans Light'),local('OpenSans-Light'),url(https://fonts.gstatic.com/s/opensans/v18/mem5YaGs126MiZpBA-UN_r8OXuhpKKSTj5PW.woff2) format('woff2');unicode-range:U+1F00-1FFF;}@font-face{font-family:'Open Sans';font-style:normal;font-weight:300;font-display:swap;src:local('Open Sans Light'),local('OpenSans-Light'),url(https://fonts.gstatic.com/s/opensans/v18/mem5YaGs126MiZpBA-UN_r8OUehpKKSTj5PW.woff2) format('woff2');unicode-range:U+0370-03FF;}@font-face{font-family:'Open Sans';font-style:normal;font-weight:300;font-display:swap;src:local('Open Sans Light'),local('OpenSans-Light'),url(https://fonts.gstatic.com/s/opensans/v18/mem5YaGs126MiZpBA-UN_r8OXehpKKSTj5PW.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Open Sans';font-style:normal;font-weight:300;font-display:swap;src:local('Open Sans Light'),local('OpenSans-Light'),url(https://fonts.gstatic.com/s/opensans/v18/mem5YaGs126MiZpBA-UN_r8OXOhpKKSTj5PW.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Open Sans';font-style:normal;font-weight:300;font-display:swap;src:local('Open Sans Light'),local('OpenSans-Light'),url(https://fonts.gstatic.com/s/opensans/v18/mem5YaGs126MiZpBA-UN_r8OUuhpKKSTjw.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Open Sans';font-style:normal;font-weight:400;font-display:swap;src:local('Open Sans Regular'),local('OpenSans-Regular'),url(https://fonts.gstatic.com/s/opensans/v18/mem8YaGs126MiZpBA-UFWJ0bf8pkAp6a.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Open Sans';font-style:normal;font-weight:400;font-display:swap;src:local('Open Sans Regular'),local('OpenSans-Regular'),url(https://fonts.gstatic.com/s/opensans/v18/mem8YaGs126MiZpBA-UFUZ0bf8pkAp6a.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Open Sans';font-style:normal;font-weight:400;font-display:swap;src:local('Open Sans Regular'),local('OpenSans-Regular'),url(https://fonts.gstatic.com/s/opensans/v18/mem8YaGs126MiZpBA-UFWZ0bf8pkAp6a.woff2) format('woff2');unicode-range:U+1F00-1FFF;}@font-face{font-family:'Open Sans';font-style:normal;font-weight:400;font-display:swap;src:local('Open Sans Regular'),local('OpenSans-Regular'),url(https://fonts.gstatic.com/s/opensans/v18/mem8YaGs126MiZpBA-UFVp0bf8pkAp6a.woff2) format('woff2');unicode-range:U+0370-03FF;}@font-face{font-family:'Open Sans';font-style:normal;font-weight:400;font-display:swap;src:local('Open Sans Regular'),local('OpenSans-Regular'),url(https://fonts.gstatic.com/s/opensans/v18/mem8YaGs126MiZpBA-UFWp0bf8pkAp6a.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Open Sans';font-style:normal;font-weight:400;font-display:swap;src:local('Open Sans Regular'),local('OpenSans-Regular'),url(https://fonts.gstatic.com/s/opensans/v18/mem8YaGs126MiZpBA-UFW50bf8pkAp6a.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Open Sans';font-style:normal;font-weight:400;font-display:swap;src:local('Open Sans Regular'),local('OpenSans-Regular'),url(https://fonts.gstatic.com/s/opensans/v18/mem8YaGs126MiZpBA-UFVZ0bf8pkAg.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Open Sans';font-style:normal;font-weight:600;font-display:swap;src:local('Open Sans SemiBold'),local('OpenSans-SemiBold'),url(https://fonts.gstatic.com/s/opensans/v18/mem5YaGs126MiZpBA-UNirkOX-hpKKSTj5PW.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Open Sans';font-style:normal;font-weight:600;font-display:swap;src:local('Open Sans SemiBold'),local('OpenSans-SemiBold'),url(https://fonts.gstatic.com/s/opensans/v18/mem5YaGs126MiZpBA-UNirkOVuhpKKSTj5PW.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Open Sans';font-style:normal;font-weight:600;font-display:swap;src:local('Open Sans SemiBold'),local('OpenSans-SemiBold'),url(https://fonts.gstatic.com/s/opensans/v18/mem5YaGs126MiZpBA-UNirkOXuhpKKSTj5PW.woff2) format('woff2');unicode-range:U+1F00-1FFF;}@font-face{font-family:'Open Sans';font-style:normal;font-weight:600;font-display:swap;src:local('Open Sans SemiBold'),local('OpenSans-SemiBold'),url(https://fonts.gstatic.com/s/opensans/v18/mem5YaGs126MiZpBA-UNirkOUehpKKSTj5PW.woff2) format('woff2');unicode-range:U+0370-03FF;}@font-face{font-family:'Open Sans';font-style:normal;font-weight:600;font-display:swap;src:local('Open Sans SemiBold'),local('OpenSans-SemiBold'),url(https://fonts.gstatic.com/s/opensans/v18/mem5YaGs126MiZpBA-UNirkOXehpKKSTj5PW.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Open Sans';font-style:normal;font-weight:600;font-display:swap;src:local('Open Sans SemiBold'),local('OpenSans-SemiBold'),url(https://fonts.gstatic.com/s/opensans/v18/mem5YaGs126MiZpBA-UNirkOXOhpKKSTj5PW.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Open Sans';font-style:normal;font-weight:600;font-display:swap;src:local('Open Sans SemiBold'),local('OpenSans-SemiBold'),url(https://fonts.gstatic.com/s/opensans/v18/mem5YaGs126MiZpBA-UNirkOUuhpKKSTjw.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Open Sans';font-style:normal;font-weight:700;font-display:swap;src:local('Open Sans Bold'),local('OpenSans-Bold'),url(https://fonts.gstatic.com/s/opensans/v18/mem5YaGs126MiZpBA-UN7rgOX-hpKKSTj5PW.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Open Sans';font-style:normal;font-weight:700;font-display:swap;src:local('Open Sans Bold'),local('OpenSans-Bold'),url(https://fonts.gstatic.com/s/opensans/v18/mem5YaGs126MiZpBA-UN7rgOVuhpKKSTj5PW.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Open Sans';font-style:normal;font-weight:700;font-display:swap;src:local('Open Sans Bold'),local('OpenSans-Bold'),url(https://fonts.gstatic.com/s/opensans/v18/mem5YaGs126MiZpBA-UN7rgOXuhpKKSTj5PW.woff2) format('woff2');unicode-range:U+1F00-1FFF;}@font-face{font-family:'Open Sans';font-style:normal;font-weight:700;font-display:swap;src:local('Open Sans Bold'),local('OpenSans-Bold'),url(https://fonts.gstatic.com/s/opensans/v18/mem5YaGs126MiZpBA-UN7rgOUehpKKSTj5PW.woff2) format('woff2');unicode-range:U+0370-03FF;}@font-face{font-family:'Open Sans';font-style:normal;font-weight:700;font-display:swap;src:local('Open Sans Bold'),local('OpenSans-Bold'),url(https://fonts.gstatic.com/s/opensans/v18/mem5YaGs126MiZpBA-UN7rgOXehpKKSTj5PW.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Open Sans';font-style:normal;font-weight:700;font-display:swap;src:local('Open Sans Bold'),local('OpenSans-Bold'),url(https://fonts.gstatic.com/s/opensans/v18/mem5YaGs126MiZpBA-UN7rgOXOhpKKSTj5PW.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Open Sans';font-style:normal;font-weight:700;font-display:swap;src:local('Open Sans Bold'),local('OpenSans-Bold'),url(https://fonts.gstatic.com/s/opensans/v18/mem5YaGs126MiZpBA-UN7rgOUuhpKKSTjw.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Open Sans';font-style:normal;font-weight:800;font-display:swap;src:local('Open Sans ExtraBold'),local('OpenSans-ExtraBold'),url(https://fonts.gstatic.com/s/opensans/v18/mem5YaGs126MiZpBA-UN8rsOX-hpKKSTj5PW.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Open Sans';font-style:normal;font-weight:800;font-display:swap;src:local('Open Sans ExtraBold'),local('OpenSans-ExtraBold'),url(https://fonts.gstatic.com/s/opensans/v18/mem5YaGs126MiZpBA-UN8rsOVuhpKKSTj5PW.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Open Sans';font-style:normal;font-weight:800;font-display:swap;src:local('Open Sans ExtraBold'),local('OpenSans-ExtraBold'),url(https://fonts.gstatic.com/s/opensans/v18/mem5YaGs126MiZpBA-UN8rsOXuhpKKSTj5PW.woff2) format('woff2');unicode-range:U+1F00-1FFF;}@font-face{font-family:'Open Sans';font-style:normal;font-weight:800;font-display:swap;src:local('Open Sans ExtraBold'),local('OpenSans-ExtraBold'),url(https://fonts.gstatic.com/s/opensans/v18/mem5YaGs126MiZpBA-UN8rsOUehpKKSTj5PW.woff2) format('woff2');unicode-range:U+0370-03FF;}@font-face{font-family:'Open Sans';font-style:normal;font-weight:800;font-display:swap;src:local('Open Sans ExtraBold'),local('OpenSans-ExtraBold'),url(https://fonts.gstatic.com/s/opensans/v18/mem5YaGs126MiZpBA-UN8rsOXehpKKSTj5PW.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Open Sans';font-style:normal;font-weight:800;font-display:swap;src:local('Open Sans ExtraBold'),local('OpenSans-ExtraBold'),url(https://fonts.gstatic.com/s/opensans/v18/mem5YaGs126MiZpBA-UN8rsOXOhpKKSTj5PW.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Open Sans';font-style:normal;font-weight:800;font-display:swap;src:local('Open Sans ExtraBold'),local('OpenSans-ExtraBold'),url(https://fonts.gstatic.com/s/opensans/v18/mem5YaGs126MiZpBA-UN8rsOUuhpKKSTjw.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Lato';font-style:italic;font-weight:100;font-display:swap;src:local('Lato Hairline Italic'),local('Lato-HairlineItalic'),url(https://fonts.gstatic.com/s/lato/v17/S6u-w4BMUTPHjxsIPx-mPCLC79U11vU.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Lato';font-style:italic;font-weight:100;font-display:swap;src:local('Lato Hairline Italic'),local('Lato-HairlineItalic'),url(https://fonts.gstatic.com/s/lato/v17/S6u-w4BMUTPHjxsIPx-oPCLC79U1.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Lato';font-style:italic;font-weight:300;font-display:swap;src:local('Lato Light Italic'),local('Lato-LightItalic'),url(https://fonts.gstatic.com/s/lato/v17/S6u_w4BMUTPHjxsI9w2_FQftx9897sxZ.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Lato';font-style:italic;font-weight:300;font-display:swap;src:local('Lato Light Italic'),local('Lato-LightItalic'),url(https://fonts.gstatic.com/s/lato/v17/S6u_w4BMUTPHjxsI9w2_Gwftx9897g.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Lato';font-style:italic;font-weight:400;font-display:swap;src:local('Lato Italic'),local('Lato-Italic'),url(https://fonts.gstatic.com/s/lato/v17/S6u8w4BMUTPHjxsAUi-qNiXg7eU0.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Lato';font-style:italic;font-weight:400;font-display:swap;src:local('Lato Italic'),local('Lato-Italic'),url(https://fonts.gstatic.com/s/lato/v17/S6u8w4BMUTPHjxsAXC-qNiXg7Q.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Lato';font-style:italic;font-weight:700;font-display:swap;src:local('Lato Bold Italic'),local('Lato-BoldItalic'),url(https://fonts.gstatic.com/s/lato/v17/S6u_w4BMUTPHjxsI5wq_FQftx9897sxZ.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Lato';font-style:italic;font-weight:700;font-display:swap;src:local('Lato Bold Italic'),local('Lato-BoldItalic'),url(https://fonts.gstatic.com/s/lato/v17/S6u_w4BMUTPHjxsI5wq_Gwftx9897g.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Lato';font-style:italic;font-weight:900;font-display:swap;src:local('Lato Black Italic'),local('Lato-BlackItalic'),url(https://fonts.gstatic.com/s/lato/v17/S6u_w4BMUTPHjxsI3wi_FQftx9897sxZ.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Lato';font-style:italic;font-weight:900;font-display:swap;src:local('Lato Black Italic'),local('Lato-BlackItalic'),url(https://fonts.gstatic.com/s/lato/v17/S6u_w4BMUTPHjxsI3wi_Gwftx9897g.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Lato';font-style:normal;font-weight:100;font-display:swap;src:local('Lato Hairline'),local('Lato-Hairline'),url(https://fonts.gstatic.com/s/lato/v17/S6u8w4BMUTPHh30AUi-qNiXg7eU0.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Lato';font-style:normal;font-weight:100;font-display:swap;src:local('Lato Hairline'),local('Lato-Hairline'),url(https://fonts.gstatic.com/s/lato/v17/S6u8w4BMUTPHh30AXC-qNiXg7Q.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Lato';font-style:normal;font-weight:300;font-display:swap;src:local('Lato Light'),local('Lato-Light'),url(https://fonts.gstatic.com/s/lato/v17/S6u9w4BMUTPHh7USSwaPGQ3q5d0N7w.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Lato';font-style:normal;font-weight:300;font-display:swap;src:local('Lato Light'),local('Lato-Light'),url(https://fonts.gstatic.com/s/lato/v17/S6u9w4BMUTPHh7USSwiPGQ3q5d0.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Lato';font-style:normal;font-weight:400;font-display:swap;src:local('Lato Regular'),local('Lato-Regular'),url(https://fonts.gstatic.com/s/lato/v17/S6uyw4BMUTPHjxAwXiWtFCfQ7A.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Lato';font-style:normal;font-weight:400;font-display:swap;src:local('Lato Regular'),local('Lato-Regular'),url(https://fonts.gstatic.com/s/lato/v17/S6uyw4BMUTPHjx4wXiWtFCc.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Lato';font-style:normal;font-weight:700;font-display:swap;src:local('Lato Bold'),local('Lato-Bold'),url(https://fonts.gstatic.com/s/lato/v17/S6u9w4BMUTPHh6UVSwaPGQ3q5d0N7w.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Lato';font-style:normal;font-weight:700;font-display:swap;src:local('Lato Bold'),local('Lato-Bold'),url(https://fonts.gstatic.com/s/lato/v17/S6u9w4BMUTPHh6UVSwiPGQ3q5d0.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Lato';font-style:normal;font-weight:900;font-display:swap;src:local('Lato Black'),local('Lato-Black'),url(https://fonts.gstatic.com/s/lato/v17/S6u9w4BMUTPHh50XSwaPGQ3q5d0N7w.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Lato';font-style:normal;font-weight:900;font-display:swap;src:local('Lato Black'),local('Lato-Black'),url(https://fonts.gstatic.com/s/lato/v17/S6u9w4BMUTPHh50XSwiPGQ3q5d0.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Playfair Display';font-style:italic;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/playfairdisplay/v21/nuFkD-vYSZviVYUb_rj3ij__anPXDTnohkk7yRZrPJ-M.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Playfair Display';font-style:italic;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/playfairdisplay/v21/nuFkD-vYSZviVYUb_rj3ij__anPXDTnojUk7yRZrPJ-M.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Playfair Display';font-style:italic;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/playfairdisplay/v21/nuFkD-vYSZviVYUb_rj3ij__anPXDTnojEk7yRZrPJ-M.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Playfair Display';font-style:italic;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/playfairdisplay/v21/nuFkD-vYSZviVYUb_rj3ij__anPXDTnogkk7yRZrPA.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Playfair Display';font-style:italic;font-weight:500;font-display:swap;src:url(https://fonts.gstatic.com/s/playfairdisplay/v21/nuFkD-vYSZviVYUb_rj3ij__anPXDTnohkk7yRZrPJ-M.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Playfair Display';font-style:italic;font-weight:500;font-display:swap;src:url(https://fonts.gstatic.com/s/playfairdisplay/v21/nuFkD-vYSZviVYUb_rj3ij__anPXDTnojUk7yRZrPJ-M.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Playfair Display';font-style:italic;font-weight:500;font-display:swap;src:url(https://fonts.gstatic.com/s/playfairdisplay/v21/nuFkD-vYSZviVYUb_rj3ij__anPXDTnojEk7yRZrPJ-M.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Playfair Display';font-style:italic;font-weight:500;font-display:swap;src:url(https://fonts.gstatic.com/s/playfairdisplay/v21/nuFkD-vYSZviVYUb_rj3ij__anPXDTnogkk7yRZrPA.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Playfair Display';font-style:italic;font-weight:600;font-display:swap;src:url(https://fonts.gstatic.com/s/playfairdisplay/v21/nuFkD-vYSZviVYUb_rj3ij__anPXDTnohkk7yRZrPJ-M.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Playfair Display';font-style:italic;font-weight:600;font-display:swap;src:url(https://fonts.gstatic.com/s/playfairdisplay/v21/nuFkD-vYSZviVYUb_rj3ij__anPXDTnojUk7yRZrPJ-M.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Playfair Display';font-style:italic;font-weight:600;font-display:swap;src:url(https://fonts.gstatic.com/s/playfairdisplay/v21/nuFkD-vYSZviVYUb_rj3ij__anPXDTnojEk7yRZrPJ-M.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Playfair Display';font-style:italic;font-weight:600;font-display:swap;src:url(https://fonts.gstatic.com/s/playfairdisplay/v21/nuFkD-vYSZviVYUb_rj3ij__anPXDTnogkk7yRZrPA.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Playfair Display';font-style:italic;font-weight:700;font-display:swap;src:url(https://fonts.gstatic.com/s/playfairdisplay/v21/nuFkD-vYSZviVYUb_rj3ij__anPXDTnohkk7yRZrPJ-M.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Playfair Display';font-style:italic;font-weight:700;font-display:swap;src:url(https://fonts.gstatic.com/s/playfairdisplay/v21/nuFkD-vYSZviVYUb_rj3ij__anPXDTnojUk7yRZrPJ-M.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Playfair Display';font-style:italic;font-weight:700;font-display:swap;src:url(https://fonts.gstatic.com/s/playfairdisplay/v21/nuFkD-vYSZviVYUb_rj3ij__anPXDTnojEk7yRZrPJ-M.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Playfair Display';font-style:italic;font-weight:700;font-display:swap;src:url(https://fonts.gstatic.com/s/playfairdisplay/v21/nuFkD-vYSZviVYUb_rj3ij__anPXDTnogkk7yRZrPA.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Playfair Display';font-style:italic;font-weight:800;font-display:swap;src:url(https://fonts.gstatic.com/s/playfairdisplay/v21/nuFkD-vYSZviVYUb_rj3ij__anPXDTnohkk7yRZrPJ-M.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Playfair Display';font-style:italic;font-weight:800;font-display:swap;src:url(https://fonts.gstatic.com/s/playfairdisplay/v21/nuFkD-vYSZviVYUb_rj3ij__anPXDTnojUk7yRZrPJ-M.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Playfair Display';font-style:italic;font-weight:800;font-display:swap;src:url(https://fonts.gstatic.com/s/playfairdisplay/v21/nuFkD-vYSZviVYUb_rj3ij__anPXDTnojEk7yRZrPJ-M.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Playfair Display';font-style:italic;font-weight:800;font-display:swap;src:url(https://fonts.gstatic.com/s/playfairdisplay/v21/nuFkD-vYSZviVYUb_rj3ij__anPXDTnogkk7yRZrPA.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Playfair Display';font-style:italic;font-weight:900;font-display:swap;src:url(https://fonts.gstatic.com/s/playfairdisplay/v21/nuFkD-vYSZviVYUb_rj3ij__anPXDTnohkk7yRZrPJ-M.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Playfair Display';font-style:italic;font-weight:900;font-display:swap;src:url(https://fonts.gstatic.com/s/playfairdisplay/v21/nuFkD-vYSZviVYUb_rj3ij__anPXDTnojUk7yRZrPJ-M.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Playfair Display';font-style:italic;font-weight:900;font-display:swap;src:url(https://fonts.gstatic.com/s/playfairdisplay/v21/nuFkD-vYSZviVYUb_rj3ij__anPXDTnojEk7yRZrPJ-M.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Playfair Display';font-style:italic;font-weight:900;font-display:swap;src:url(https://fonts.gstatic.com/s/playfairdisplay/v21/nuFkD-vYSZviVYUb_rj3ij__anPXDTnogkk7yRZrPA.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Playfair Display';font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/playfairdisplay/v21/nuFiD-vYSZviVYUb_rj3ij__anPXDTjYgEM86xRbPQ.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Playfair Display';font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/playfairdisplay/v21/nuFiD-vYSZviVYUb_rj3ij__anPXDTPYgEM86xRbPQ.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Playfair Display';font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/playfairdisplay/v21/nuFiD-vYSZviVYUb_rj3ij__anPXDTLYgEM86xRbPQ.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Playfair Display';font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/playfairdisplay/v21/nuFiD-vYSZviVYUb_rj3ij__anPXDTzYgEM86xQ.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Playfair Display';font-style:normal;font-weight:500;font-display:swap;src:url(https://fonts.gstatic.com/s/playfairdisplay/v21/nuFiD-vYSZviVYUb_rj3ij__anPXDTjYgEM86xRbPQ.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Playfair Display';font-style:normal;font-weight:500;font-display:swap;src:url(https://fonts.gstatic.com/s/playfairdisplay/v21/nuFiD-vYSZviVYUb_rj3ij__anPXDTPYgEM86xRbPQ.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Playfair Display';font-style:normal;font-weight:500;font-display:swap;src:url(https://fonts.gstatic.com/s/playfairdisplay/v21/nuFiD-vYSZviVYUb_rj3ij__anPXDTLYgEM86xRbPQ.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Playfair Display';font-style:normal;font-weight:500;font-display:swap;src:url(https://fonts.gstatic.com/s/playfairdisplay/v21/nuFiD-vYSZviVYUb_rj3ij__anPXDTzYgEM86xQ.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Playfair Display';font-style:normal;font-weight:600;font-display:swap;src:url(https://fonts.gstatic.com/s/playfairdisplay/v21/nuFiD-vYSZviVYUb_rj3ij__anPXDTjYgEM86xRbPQ.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Playfair Display';font-style:normal;font-weight:600;font-display:swap;src:url(https://fonts.gstatic.com/s/playfairdisplay/v21/nuFiD-vYSZviVYUb_rj3ij__anPXDTPYgEM86xRbPQ.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Playfair Display';font-style:normal;font-weight:600;font-display:swap;src:url(https://fonts.gstatic.com/s/playfairdisplay/v21/nuFiD-vYSZviVYUb_rj3ij__anPXDTLYgEM86xRbPQ.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Playfair Display';font-style:normal;font-weight:600;font-display:swap;src:url(https://fonts.gstatic.com/s/playfairdisplay/v21/nuFiD-vYSZviVYUb_rj3ij__anPXDTzYgEM86xQ.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Playfair Display';font-style:normal;font-weight:700;font-display:swap;src:url(https://fonts.gstatic.com/s/playfairdisplay/v21/nuFiD-vYSZviVYUb_rj3ij__anPXDTjYgEM86xRbPQ.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Playfair Display';font-style:normal;font-weight:700;font-display:swap;src:url(https://fonts.gstatic.com/s/playfairdisplay/v21/nuFiD-vYSZviVYUb_rj3ij__anPXDTPYgEM86xRbPQ.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Playfair Display';font-style:normal;font-weight:700;font-display:swap;src:url(https://fonts.gstatic.com/s/playfairdisplay/v21/nuFiD-vYSZviVYUb_rj3ij__anPXDTLYgEM86xRbPQ.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Playfair Display';font-style:normal;font-weight:700;font-display:swap;src:url(https://fonts.gstatic.com/s/playfairdisplay/v21/nuFiD-vYSZviVYUb_rj3ij__anPXDTzYgEM86xQ.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Playfair Display';font-style:normal;font-weight:800;font-display:swap;src:url(https://fonts.gstatic.com/s/playfairdisplay/v21/nuFiD-vYSZviVYUb_rj3ij__anPXDTjYgEM86xRbPQ.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Playfair Display';font-style:normal;font-weight:800;font-display:swap;src:url(https://fonts.gstatic.com/s/playfairdisplay/v21/nuFiD-vYSZviVYUb_rj3ij__anPXDTPYgEM86xRbPQ.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Playfair Display';font-style:normal;font-weight:800;font-display:swap;src:url(https://fonts.gstatic.com/s/playfairdisplay/v21/nuFiD-vYSZviVYUb_rj3ij__anPXDTLYgEM86xRbPQ.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Playfair Display';font-style:normal;font-weight:800;font-display:swap;src:url(https://fonts.gstatic.com/s/playfairdisplay/v21/nuFiD-vYSZviVYUb_rj3ij__anPXDTzYgEM86xQ.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Playfair Display';font-style:normal;font-weight:900;font-display:swap;src:url(https://fonts.gstatic.com/s/playfairdisplay/v21/nuFiD-vYSZviVYUb_rj3ij__anPXDTjYgEM86xRbPQ.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Playfair Display';font-style:normal;font-weight:900;font-display:swap;src:url(https://fonts.gstatic.com/s/playfairdisplay/v21/nuFiD-vYSZviVYUb_rj3ij__anPXDTPYgEM86xRbPQ.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Playfair Display';font-style:normal;font-weight:900;font-display:swap;src:url(https://fonts.gstatic.com/s/playfairdisplay/v21/nuFiD-vYSZviVYUb_rj3ij__anPXDTLYgEM86xRbPQ.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Playfair Display';font-style:normal;font-weight:900;font-display:swap;src:url(https://fonts.gstatic.com/s/playfairdisplay/v21/nuFiD-vYSZviVYUb_rj3ij__anPXDTzYgEM86xQ.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Source Sans Pro';font-style:italic;font-weight:200;font-display:swap;src:local('Source Sans Pro ExtraLight Italic'),local('SourceSansPro-ExtraLightItalic'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKwdSBYKcSV-LCoeQqfX1RYOo3qPZYokSdh18S0xR41YDw.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Source Sans Pro';font-style:italic;font-weight:200;font-display:swap;src:local('Source Sans Pro ExtraLight Italic'),local('SourceSansPro-ExtraLightItalic'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKwdSBYKcSV-LCoeQqfX1RYOo3qPZYokSdo18S0xR41YDw.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Source Sans Pro';font-style:italic;font-weight:200;font-display:swap;src:local('Source Sans Pro ExtraLight Italic'),local('SourceSansPro-ExtraLightItalic'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKwdSBYKcSV-LCoeQqfX1RYOo3qPZYokSdg18S0xR41YDw.woff2) format('woff2');unicode-range:U+1F00-1FFF;}@font-face{font-family:'Source Sans Pro';font-style:italic;font-weight:200;font-display:swap;src:local('Source Sans Pro ExtraLight Italic'),local('SourceSansPro-ExtraLightItalic'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKwdSBYKcSV-LCoeQqfX1RYOo3qPZYokSdv18S0xR41YDw.woff2) format('woff2');unicode-range:U+0370-03FF;}@font-face{font-family:'Source Sans Pro';font-style:italic;font-weight:200;font-display:swap;src:local('Source Sans Pro ExtraLight Italic'),local('SourceSansPro-ExtraLightItalic'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKwdSBYKcSV-LCoeQqfX1RYOo3qPZYokSdj18S0xR41YDw.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Source Sans Pro';font-style:italic;font-weight:200;font-display:swap;src:local('Source Sans Pro ExtraLight Italic'),local('SourceSansPro-ExtraLightItalic'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKwdSBYKcSV-LCoeQqfX1RYOo3qPZYokSdi18S0xR41YDw.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Source Sans Pro';font-style:italic;font-weight:200;font-display:swap;src:local('Source Sans Pro ExtraLight Italic'),local('SourceSansPro-ExtraLightItalic'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKwdSBYKcSV-LCoeQqfX1RYOo3qPZYokSds18S0xR41.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Source Sans Pro';font-style:italic;font-weight:300;font-display:swap;src:local('Source Sans Pro Light Italic'),local('SourceSansPro-LightItalic'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKwdSBYKcSV-LCoeQqfX1RYOo3qPZZMkidh18S0xR41YDw.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Source Sans Pro';font-style:italic;font-weight:300;font-display:swap;src:local('Source Sans Pro Light Italic'),local('SourceSansPro-LightItalic'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKwdSBYKcSV-LCoeQqfX1RYOo3qPZZMkido18S0xR41YDw.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Source Sans Pro';font-style:italic;font-weight:300;font-display:swap;src:local('Source Sans Pro Light Italic'),local('SourceSansPro-LightItalic'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKwdSBYKcSV-LCoeQqfX1RYOo3qPZZMkidg18S0xR41YDw.woff2) format('woff2');unicode-range:U+1F00-1FFF;}@font-face{font-family:'Source Sans Pro';font-style:italic;font-weight:300;font-display:swap;src:local('Source Sans Pro Light Italic'),local('SourceSansPro-LightItalic'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKwdSBYKcSV-LCoeQqfX1RYOo3qPZZMkidv18S0xR41YDw.woff2) format('woff2');unicode-range:U+0370-03FF;}@font-face{font-family:'Source Sans Pro';font-style:italic;font-weight:300;font-display:swap;src:local('Source Sans Pro Light Italic'),local('SourceSansPro-LightItalic'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKwdSBYKcSV-LCoeQqfX1RYOo3qPZZMkidj18S0xR41YDw.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Source Sans Pro';font-style:italic;font-weight:300;font-display:swap;src:local('Source Sans Pro Light Italic'),local('SourceSansPro-LightItalic'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKwdSBYKcSV-LCoeQqfX1RYOo3qPZZMkidi18S0xR41YDw.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Source Sans Pro';font-style:italic;font-weight:300;font-display:swap;src:local('Source Sans Pro Light Italic'),local('SourceSansPro-LightItalic'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKwdSBYKcSV-LCoeQqfX1RYOo3qPZZMkids18S0xR41.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Source Sans Pro';font-style:italic;font-weight:400;font-display:swap;src:local('Source Sans Pro Italic'),local('SourceSansPro-Italic'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xK1dSBYKcSV-LCoeQqfX1RYOo3qPZ7qsDJB9cme_xc.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Source Sans Pro';font-style:italic;font-weight:400;font-display:swap;src:local('Source Sans Pro Italic'),local('SourceSansPro-Italic'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xK1dSBYKcSV-LCoeQqfX1RYOo3qPZ7jsDJB9cme_xc.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Source Sans Pro';font-style:italic;font-weight:400;font-display:swap;src:local('Source Sans Pro Italic'),local('SourceSansPro-Italic'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xK1dSBYKcSV-LCoeQqfX1RYOo3qPZ7rsDJB9cme_xc.woff2) format('woff2');unicode-range:U+1F00-1FFF;}@font-face{font-family:'Source Sans Pro';font-style:italic;font-weight:400;font-display:swap;src:local('Source Sans Pro Italic'),local('SourceSansPro-Italic'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xK1dSBYKcSV-LCoeQqfX1RYOo3qPZ7ksDJB9cme_xc.woff2) format('woff2');unicode-range:U+0370-03FF;}@font-face{font-family:'Source Sans Pro';font-style:italic;font-weight:400;font-display:swap;src:local('Source Sans Pro Italic'),local('SourceSansPro-Italic'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xK1dSBYKcSV-LCoeQqfX1RYOo3qPZ7osDJB9cme_xc.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Source Sans Pro';font-style:italic;font-weight:400;font-display:swap;src:local('Source Sans Pro Italic'),local('SourceSansPro-Italic'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xK1dSBYKcSV-LCoeQqfX1RYOo3qPZ7psDJB9cme_xc.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Source Sans Pro';font-style:italic;font-weight:400;font-display:swap;src:local('Source Sans Pro Italic'),local('SourceSansPro-Italic'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xK1dSBYKcSV-LCoeQqfX1RYOo3qPZ7nsDJB9cme.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Source Sans Pro';font-style:italic;font-weight:600;font-display:swap;src:local('Source Sans Pro SemiBold Italic'),local('SourceSansPro-SemiBoldItalic'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKwdSBYKcSV-LCoeQqfX1RYOo3qPZY4lCdh18S0xR41YDw.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Source Sans Pro';font-style:italic;font-weight:600;font-display:swap;src:local('Source Sans Pro SemiBold Italic'),local('SourceSansPro-SemiBoldItalic'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKwdSBYKcSV-LCoeQqfX1RYOo3qPZY4lCdo18S0xR41YDw.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Source Sans Pro';font-style:italic;font-weight:600;font-display:swap;src:local('Source Sans Pro SemiBold Italic'),local('SourceSansPro-SemiBoldItalic'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKwdSBYKcSV-LCoeQqfX1RYOo3qPZY4lCdg18S0xR41YDw.woff2) format('woff2');unicode-range:U+1F00-1FFF;}@font-face{font-family:'Source Sans Pro';font-style:italic;font-weight:600;font-display:swap;src:local('Source Sans Pro SemiBold Italic'),local('SourceSansPro-SemiBoldItalic'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKwdSBYKcSV-LCoeQqfX1RYOo3qPZY4lCdv18S0xR41YDw.woff2) format('woff2');unicode-range:U+0370-03FF;}@font-face{font-family:'Source Sans Pro';font-style:italic;font-weight:600;font-display:swap;src:local('Source Sans Pro SemiBold Italic'),local('SourceSansPro-SemiBoldItalic'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKwdSBYKcSV-LCoeQqfX1RYOo3qPZY4lCdj18S0xR41YDw.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Source Sans Pro';font-style:italic;font-weight:600;font-display:swap;src:local('Source Sans Pro SemiBold Italic'),local('SourceSansPro-SemiBoldItalic'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKwdSBYKcSV-LCoeQqfX1RYOo3qPZY4lCdi18S0xR41YDw.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Source Sans Pro';font-style:italic;font-weight:600;font-display:swap;src:local('Source Sans Pro SemiBold Italic'),local('SourceSansPro-SemiBoldItalic'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKwdSBYKcSV-LCoeQqfX1RYOo3qPZY4lCds18S0xR41.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Source Sans Pro';font-style:italic;font-weight:700;font-display:swap;src:local('Source Sans Pro Bold Italic'),local('SourceSansPro-BoldItalic'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKwdSBYKcSV-LCoeQqfX1RYOo3qPZZclSdh18S0xR41YDw.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Source Sans Pro';font-style:italic;font-weight:700;font-display:swap;src:local('Source Sans Pro Bold Italic'),local('SourceSansPro-BoldItalic'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKwdSBYKcSV-LCoeQqfX1RYOo3qPZZclSdo18S0xR41YDw.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Source Sans Pro';font-style:italic;font-weight:700;font-display:swap;src:local('Source Sans Pro Bold Italic'),local('SourceSansPro-BoldItalic'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKwdSBYKcSV-LCoeQqfX1RYOo3qPZZclSdg18S0xR41YDw.woff2) format('woff2');unicode-range:U+1F00-1FFF;}@font-face{font-family:'Source Sans Pro';font-style:italic;font-weight:700;font-display:swap;src:local('Source Sans Pro Bold Italic'),local('SourceSansPro-BoldItalic'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKwdSBYKcSV-LCoeQqfX1RYOo3qPZZclSdv18S0xR41YDw.woff2) format('woff2');unicode-range:U+0370-03FF;}@font-face{font-family:'Source Sans Pro';font-style:italic;font-weight:700;font-display:swap;src:local('Source Sans Pro Bold Italic'),local('SourceSansPro-BoldItalic'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKwdSBYKcSV-LCoeQqfX1RYOo3qPZZclSdj18S0xR41YDw.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Source Sans Pro';font-style:italic;font-weight:700;font-display:swap;src:local('Source Sans Pro Bold Italic'),local('SourceSansPro-BoldItalic'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKwdSBYKcSV-LCoeQqfX1RYOo3qPZZclSdi18S0xR41YDw.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Source Sans Pro';font-style:italic;font-weight:700;font-display:swap;src:local('Source Sans Pro Bold Italic'),local('SourceSansPro-BoldItalic'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKwdSBYKcSV-LCoeQqfX1RYOo3qPZZclSds18S0xR41.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Source Sans Pro';font-style:italic;font-weight:900;font-display:swap;src:local('Source Sans Pro Black Italic'),local('SourceSansPro-BlackItalic'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKwdSBYKcSV-LCoeQqfX1RYOo3qPZZklydh18S0xR41YDw.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Source Sans Pro';font-style:italic;font-weight:900;font-display:swap;src:local('Source Sans Pro Black Italic'),local('SourceSansPro-BlackItalic'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKwdSBYKcSV-LCoeQqfX1RYOo3qPZZklydo18S0xR41YDw.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Source Sans Pro';font-style:italic;font-weight:900;font-display:swap;src:local('Source Sans Pro Black Italic'),local('SourceSansPro-BlackItalic'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKwdSBYKcSV-LCoeQqfX1RYOo3qPZZklydg18S0xR41YDw.woff2) format('woff2');unicode-range:U+1F00-1FFF;}@font-face{font-family:'Source Sans Pro';font-style:italic;font-weight:900;font-display:swap;src:local('Source Sans Pro Black Italic'),local('SourceSansPro-BlackItalic'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKwdSBYKcSV-LCoeQqfX1RYOo3qPZZklydv18S0xR41YDw.woff2) format('woff2');unicode-range:U+0370-03FF;}@font-face{font-family:'Source Sans Pro';font-style:italic;font-weight:900;font-display:swap;src:local('Source Sans Pro Black Italic'),local('SourceSansPro-BlackItalic'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKwdSBYKcSV-LCoeQqfX1RYOo3qPZZklydj18S0xR41YDw.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Source Sans Pro';font-style:italic;font-weight:900;font-display:swap;src:local('Source Sans Pro Black Italic'),local('SourceSansPro-BlackItalic'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKwdSBYKcSV-LCoeQqfX1RYOo3qPZZklydi18S0xR41YDw.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Source Sans Pro';font-style:italic;font-weight:900;font-display:swap;src:local('Source Sans Pro Black Italic'),local('SourceSansPro-BlackItalic'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKwdSBYKcSV-LCoeQqfX1RYOo3qPZZklyds18S0xR41.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Source Sans Pro';font-style:normal;font-weight:200;font-display:swap;src:local('Source Sans Pro ExtraLight'),local('SourceSansPro-ExtraLight'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKydSBYKcSV-LCoeQqfX1RYOo3i94_wmhdu3cOWxy40.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Source Sans Pro';font-style:normal;font-weight:200;font-display:swap;src:local('Source Sans Pro ExtraLight'),local('SourceSansPro-ExtraLight'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKydSBYKcSV-LCoeQqfX1RYOo3i94_wkxdu3cOWxy40.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Source Sans Pro';font-style:normal;font-weight:200;font-display:swap;src:local('Source Sans Pro ExtraLight'),local('SourceSansPro-ExtraLight'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKydSBYKcSV-LCoeQqfX1RYOo3i94_wmxdu3cOWxy40.woff2) format('woff2');unicode-range:U+1F00-1FFF;}@font-face{font-family:'Source Sans Pro';font-style:normal;font-weight:200;font-display:swap;src:local('Source Sans Pro ExtraLight'),local('SourceSansPro-ExtraLight'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKydSBYKcSV-LCoeQqfX1RYOo3i94_wlBdu3cOWxy40.woff2) format('woff2');unicode-range:U+0370-03FF;}@font-face{font-family:'Source Sans Pro';font-style:normal;font-weight:200;font-display:swap;src:local('Source Sans Pro ExtraLight'),local('SourceSansPro-ExtraLight'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKydSBYKcSV-LCoeQqfX1RYOo3i94_wmBdu3cOWxy40.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Source Sans Pro';font-style:normal;font-weight:200;font-display:swap;src:local('Source Sans Pro ExtraLight'),local('SourceSansPro-ExtraLight'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKydSBYKcSV-LCoeQqfX1RYOo3i94_wmRdu3cOWxy40.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Source Sans Pro';font-style:normal;font-weight:200;font-display:swap;src:local('Source Sans Pro ExtraLight'),local('SourceSansPro-ExtraLight'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKydSBYKcSV-LCoeQqfX1RYOo3i94_wlxdu3cOWxw.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Source Sans Pro';font-style:normal;font-weight:300;font-display:swap;src:local('Source Sans Pro Light'),local('SourceSansPro-Light'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKydSBYKcSV-LCoeQqfX1RYOo3ik4zwmhdu3cOWxy40.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Source Sans Pro';font-style:normal;font-weight:300;font-display:swap;src:local('Source Sans Pro Light'),local('SourceSansPro-Light'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKydSBYKcSV-LCoeQqfX1RYOo3ik4zwkxdu3cOWxy40.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Source Sans Pro';font-style:normal;font-weight:300;font-display:swap;src:local('Source Sans Pro Light'),local('SourceSansPro-Light'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKydSBYKcSV-LCoeQqfX1RYOo3ik4zwmxdu3cOWxy40.woff2) format('woff2');unicode-range:U+1F00-1FFF;}@font-face{font-family:'Source Sans Pro';font-style:normal;font-weight:300;font-display:swap;src:local('Source Sans Pro Light'),local('SourceSansPro-Light'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKydSBYKcSV-LCoeQqfX1RYOo3ik4zwlBdu3cOWxy40.woff2) format('woff2');unicode-range:U+0370-03FF;}@font-face{font-family:'Source Sans Pro';font-style:normal;font-weight:300;font-display:swap;src:local('Source Sans Pro Light'),local('SourceSansPro-Light'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKydSBYKcSV-LCoeQqfX1RYOo3ik4zwmBdu3cOWxy40.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Source Sans Pro';font-style:normal;font-weight:300;font-display:swap;src:local('Source Sans Pro Light'),local('SourceSansPro-Light'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKydSBYKcSV-LCoeQqfX1RYOo3ik4zwmRdu3cOWxy40.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Source Sans Pro';font-style:normal;font-weight:300;font-display:swap;src:local('Source Sans Pro Light'),local('SourceSansPro-Light'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKydSBYKcSV-LCoeQqfX1RYOo3ik4zwlxdu3cOWxw.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Source Sans Pro';font-style:normal;font-weight:400;font-display:swap;src:local('Source Sans Pro Regular'),local('SourceSansPro-Regular'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xK3dSBYKcSV-LCoeQqfX1RYOo3qNa7lujVj9_mf.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Source Sans Pro';font-style:normal;font-weight:400;font-display:swap;src:local('Source Sans Pro Regular'),local('SourceSansPro-Regular'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xK3dSBYKcSV-LCoeQqfX1RYOo3qPK7lujVj9_mf.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Source Sans Pro';font-style:normal;font-weight:400;font-display:swap;src:local('Source Sans Pro Regular'),local('SourceSansPro-Regular'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xK3dSBYKcSV-LCoeQqfX1RYOo3qNK7lujVj9_mf.woff2) format('woff2');unicode-range:U+1F00-1FFF;}@font-face{font-family:'Source Sans Pro';font-style:normal;font-weight:400;font-display:swap;src:local('Source Sans Pro Regular'),local('SourceSansPro-Regular'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xK3dSBYKcSV-LCoeQqfX1RYOo3qO67lujVj9_mf.woff2) format('woff2');unicode-range:U+0370-03FF;}@font-face{font-family:'Source Sans Pro';font-style:normal;font-weight:400;font-display:swap;src:local('Source Sans Pro Regular'),local('SourceSansPro-Regular'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xK3dSBYKcSV-LCoeQqfX1RYOo3qN67lujVj9_mf.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Source Sans Pro';font-style:normal;font-weight:400;font-display:swap;src:local('Source Sans Pro Regular'),local('SourceSansPro-Regular'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xK3dSBYKcSV-LCoeQqfX1RYOo3qNq7lujVj9_mf.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Source Sans Pro';font-style:normal;font-weight:400;font-display:swap;src:local('Source Sans Pro Regular'),local('SourceSansPro-Regular'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xK3dSBYKcSV-LCoeQqfX1RYOo3qOK7lujVj9w.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Source Sans Pro';font-style:normal;font-weight:600;font-display:swap;src:local('Source Sans Pro SemiBold'),local('SourceSansPro-SemiBold'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKydSBYKcSV-LCoeQqfX1RYOo3i54rwmhdu3cOWxy40.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Source Sans Pro';font-style:normal;font-weight:600;font-display:swap;src:local('Source Sans Pro SemiBold'),local('SourceSansPro-SemiBold'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKydSBYKcSV-LCoeQqfX1RYOo3i54rwkxdu3cOWxy40.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Source Sans Pro';font-style:normal;font-weight:600;font-display:swap;src:local('Source Sans Pro SemiBold'),local('SourceSansPro-SemiBold'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKydSBYKcSV-LCoeQqfX1RYOo3i54rwmxdu3cOWxy40.woff2) format('woff2');unicode-range:U+1F00-1FFF;}@font-face{font-family:'Source Sans Pro';font-style:normal;font-weight:600;font-display:swap;src:local('Source Sans Pro SemiBold'),local('SourceSansPro-SemiBold'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKydSBYKcSV-LCoeQqfX1RYOo3i54rwlBdu3cOWxy40.woff2) format('woff2');unicode-range:U+0370-03FF;}@font-face{font-family:'Source Sans Pro';font-style:normal;font-weight:600;font-display:swap;src:local('Source Sans Pro SemiBold'),local('SourceSansPro-SemiBold'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKydSBYKcSV-LCoeQqfX1RYOo3i54rwmBdu3cOWxy40.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Source Sans Pro';font-style:normal;font-weight:600;font-display:swap;src:local('Source Sans Pro SemiBold'),local('SourceSansPro-SemiBold'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKydSBYKcSV-LCoeQqfX1RYOo3i54rwmRdu3cOWxy40.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Source Sans Pro';font-style:normal;font-weight:600;font-display:swap;src:local('Source Sans Pro SemiBold'),local('SourceSansPro-SemiBold'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKydSBYKcSV-LCoeQqfX1RYOo3i54rwlxdu3cOWxw.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Source Sans Pro';font-style:normal;font-weight:700;font-display:swap;src:local('Source Sans Pro Bold'),local('SourceSansPro-Bold'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKydSBYKcSV-LCoeQqfX1RYOo3ig4vwmhdu3cOWxy40.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Source Sans Pro';font-style:normal;font-weight:700;font-display:swap;src:local('Source Sans Pro Bold'),local('SourceSansPro-Bold'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKydSBYKcSV-LCoeQqfX1RYOo3ig4vwkxdu3cOWxy40.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Source Sans Pro';font-style:normal;font-weight:700;font-display:swap;src:local('Source Sans Pro Bold'),local('SourceSansPro-Bold'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKydSBYKcSV-LCoeQqfX1RYOo3ig4vwmxdu3cOWxy40.woff2) format('woff2');unicode-range:U+1F00-1FFF;}@font-face{font-family:'Source Sans Pro';font-style:normal;font-weight:700;font-display:swap;src:local('Source Sans Pro Bold'),local('SourceSansPro-Bold'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKydSBYKcSV-LCoeQqfX1RYOo3ig4vwlBdu3cOWxy40.woff2) format('woff2');unicode-range:U+0370-03FF;}@font-face{font-family:'Source Sans Pro';font-style:normal;font-weight:700;font-display:swap;src:local('Source Sans Pro Bold'),local('SourceSansPro-Bold'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKydSBYKcSV-LCoeQqfX1RYOo3ig4vwmBdu3cOWxy40.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Source Sans Pro';font-style:normal;font-weight:700;font-display:swap;src:local('Source Sans Pro Bold'),local('SourceSansPro-Bold'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKydSBYKcSV-LCoeQqfX1RYOo3ig4vwmRdu3cOWxy40.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Source Sans Pro';font-style:normal;font-weight:700;font-display:swap;src:local('Source Sans Pro Bold'),local('SourceSansPro-Bold'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKydSBYKcSV-LCoeQqfX1RYOo3ig4vwlxdu3cOWxw.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Source Sans Pro';font-style:normal;font-weight:900;font-display:swap;src:local('Source Sans Pro Black'),local('SourceSansPro-Black'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKydSBYKcSV-LCoeQqfX1RYOo3iu4nwmhdu3cOWxy40.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Source Sans Pro';font-style:normal;font-weight:900;font-display:swap;src:local('Source Sans Pro Black'),local('SourceSansPro-Black'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKydSBYKcSV-LCoeQqfX1RYOo3iu4nwkxdu3cOWxy40.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Source Sans Pro';font-style:normal;font-weight:900;font-display:swap;src:local('Source Sans Pro Black'),local('SourceSansPro-Black'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKydSBYKcSV-LCoeQqfX1RYOo3iu4nwmxdu3cOWxy40.woff2) format('woff2');unicode-range:U+1F00-1FFF;}@font-face{font-family:'Source Sans Pro';font-style:normal;font-weight:900;font-display:swap;src:local('Source Sans Pro Black'),local('SourceSansPro-Black'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKydSBYKcSV-LCoeQqfX1RYOo3iu4nwlBdu3cOWxy40.woff2) format('woff2');unicode-range:U+0370-03FF;}@font-face{font-family:'Source Sans Pro';font-style:normal;font-weight:900;font-display:swap;src:local('Source Sans Pro Black'),local('SourceSansPro-Black'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKydSBYKcSV-LCoeQqfX1RYOo3iu4nwmBdu3cOWxy40.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Source Sans Pro';font-style:normal;font-weight:900;font-display:swap;src:local('Source Sans Pro Black'),local('SourceSansPro-Black'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKydSBYKcSV-LCoeQqfX1RYOo3iu4nwmRdu3cOWxy40.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Source Sans Pro';font-style:normal;font-weight:900;font-display:swap;src:local('Source Sans Pro Black'),local('SourceSansPro-Black'),url(https://fonts.gstatic.com/s/sourcesanspro/v14/6xKydSBYKcSV-LCoeQqfX1RYOo3iu4nwlxdu3cOWxw.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Montserrat';font-style:italic;font-weight:100;font-display:swap;src:local('Montserrat Thin Italic'),local('Montserrat-ThinItalic'),url(https://fonts.gstatic.com/s/montserrat/v15/JTUOjIg1_i6t8kCHKm459WxZqh7p29NfpiOjk20.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Montserrat';font-style:italic;font-weight:100;font-display:swap;src:local('Montserrat Thin Italic'),local('Montserrat-ThinItalic'),url(https://fonts.gstatic.com/s/montserrat/v15/JTUOjIg1_i6t8kCHKm459WxZqh7g29NfpiOjk20.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Montserrat';font-style:italic;font-weight:100;font-display:swap;src:local('Montserrat Thin Italic'),local('Montserrat-ThinItalic'),url(https://fonts.gstatic.com/s/montserrat/v15/JTUOjIg1_i6t8kCHKm459WxZqh7r29NfpiOjk20.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Montserrat';font-style:italic;font-weight:100;font-display:swap;src:local('Montserrat Thin Italic'),local('Montserrat-ThinItalic'),url(https://fonts.gstatic.com/s/montserrat/v15/JTUOjIg1_i6t8kCHKm459WxZqh7q29NfpiOjk20.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Montserrat';font-style:italic;font-weight:100;font-display:swap;src:local('Montserrat Thin Italic'),local('Montserrat-ThinItalic'),url(https://fonts.gstatic.com/s/montserrat/v15/JTUOjIg1_i6t8kCHKm459WxZqh7k29NfpiOj.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Montserrat';font-style:italic;font-weight:200;font-display:swap;src:local('Montserrat ExtraLight Italic'),local('Montserrat-ExtraLightItalic'),url(https://fonts.gstatic.com/s/montserrat/v15/JTUPjIg1_i6t8kCHKm459WxZBg_z8fZwjimrq1Q_.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Montserrat';font-style:italic;font-weight:200;font-display:swap;src:local('Montserrat ExtraLight Italic'),local('Montserrat-ExtraLightItalic'),url(https://fonts.gstatic.com/s/montserrat/v15/JTUPjIg1_i6t8kCHKm459WxZBg_z-PZwjimrq1Q_.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Montserrat';font-style:italic;font-weight:200;font-display:swap;src:local('Montserrat ExtraLight Italic'),local('Montserrat-ExtraLightItalic'),url(https://fonts.gstatic.com/s/montserrat/v15/JTUPjIg1_i6t8kCHKm459WxZBg_z8_Zwjimrq1Q_.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Montserrat';font-style:italic;font-weight:200;font-display:swap;src:local('Montserrat ExtraLight Italic'),local('Montserrat-ExtraLightItalic'),url(https://fonts.gstatic.com/s/montserrat/v15/JTUPjIg1_i6t8kCHKm459WxZBg_z8vZwjimrq1Q_.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Montserrat';font-style:italic;font-weight:200;font-display:swap;src:local('Montserrat ExtraLight Italic'),local('Montserrat-ExtraLightItalic'),url(https://fonts.gstatic.com/s/montserrat/v15/JTUPjIg1_i6t8kCHKm459WxZBg_z_PZwjimrqw.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Montserrat';font-style:italic;font-weight:300;font-display:swap;src:local('Montserrat Light Italic'),local('Montserrat-LightItalic'),url(https://fonts.gstatic.com/s/montserrat/v15/JTUPjIg1_i6t8kCHKm459WxZYgzz8fZwjimrq1Q_.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Montserrat';font-style:italic;font-weight:300;font-display:swap;src:local('Montserrat Light Italic'),local('Montserrat-LightItalic'),url(https://fonts.gstatic.com/s/montserrat/v15/JTUPjIg1_i6t8kCHKm459WxZYgzz-PZwjimrq1Q_.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Montserrat';font-style:italic;font-weight:300;font-display:swap;src:local('Montserrat Light Italic'),local('Montserrat-LightItalic'),url(https://fonts.gstatic.com/s/montserrat/v15/JTUPjIg1_i6t8kCHKm459WxZYgzz8_Zwjimrq1Q_.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Montserrat';font-style:italic;font-weight:300;font-display:swap;src:local('Montserrat Light Italic'),local('Montserrat-LightItalic'),url(https://fonts.gstatic.com/s/montserrat/v15/JTUPjIg1_i6t8kCHKm459WxZYgzz8vZwjimrq1Q_.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Montserrat';font-style:italic;font-weight:300;font-display:swap;src:local('Montserrat Light Italic'),local('Montserrat-LightItalic'),url(https://fonts.gstatic.com/s/montserrat/v15/JTUPjIg1_i6t8kCHKm459WxZYgzz_PZwjimrqw.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Montserrat';font-style:italic;font-weight:400;font-display:swap;src:local('Montserrat Italic'),local('Montserrat-Italic'),url(https://fonts.gstatic.com/s/montserrat/v15/JTUQjIg1_i6t8kCHKm459WxRxC7m0dR9pBOi.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Montserrat';font-style:italic;font-weight:400;font-display:swap;src:local('Montserrat Italic'),local('Montserrat-Italic'),url(https://fonts.gstatic.com/s/montserrat/v15/JTUQjIg1_i6t8kCHKm459WxRzS7m0dR9pBOi.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Montserrat';font-style:italic;font-weight:400;font-display:swap;src:local('Montserrat Italic'),local('Montserrat-Italic'),url(https://fonts.gstatic.com/s/montserrat/v15/JTUQjIg1_i6t8kCHKm459WxRxi7m0dR9pBOi.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Montserrat';font-style:italic;font-weight:400;font-display:swap;src:local('Montserrat Italic'),local('Montserrat-Italic'),url(https://fonts.gstatic.com/s/montserrat/v15/JTUQjIg1_i6t8kCHKm459WxRxy7m0dR9pBOi.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Montserrat';font-style:italic;font-weight:400;font-display:swap;src:local('Montserrat Italic'),local('Montserrat-Italic'),url(https://fonts.gstatic.com/s/montserrat/v15/JTUQjIg1_i6t8kCHKm459WxRyS7m0dR9pA.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Montserrat';font-style:italic;font-weight:500;font-display:swap;src:local('Montserrat Medium Italic'),local('Montserrat-MediumItalic'),url(https://fonts.gstatic.com/s/montserrat/v15/JTUPjIg1_i6t8kCHKm459WxZOg3z8fZwjimrq1Q_.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Montserrat';font-style:italic;font-weight:500;font-display:swap;src:local('Montserrat Medium Italic'),local('Montserrat-MediumItalic'),url(https://fonts.gstatic.com/s/montserrat/v15/JTUPjIg1_i6t8kCHKm459WxZOg3z-PZwjimrq1Q_.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Montserrat';font-style:italic;font-weight:500;font-display:swap;src:local('Montserrat Medium Italic'),local('Montserrat-MediumItalic'),url(https://fonts.gstatic.com/s/montserrat/v15/JTUPjIg1_i6t8kCHKm459WxZOg3z8_Zwjimrq1Q_.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Montserrat';font-style:italic;font-weight:500;font-display:swap;src:local('Montserrat Medium Italic'),local('Montserrat-MediumItalic'),url(https://fonts.gstatic.com/s/montserrat/v15/JTUPjIg1_i6t8kCHKm459WxZOg3z8vZwjimrq1Q_.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Montserrat';font-style:italic;font-weight:500;font-display:swap;src:local('Montserrat Medium Italic'),local('Montserrat-MediumItalic'),url(https://fonts.gstatic.com/s/montserrat/v15/JTUPjIg1_i6t8kCHKm459WxZOg3z_PZwjimrqw.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Montserrat';font-style:italic;font-weight:600;font-display:swap;src:local('Montserrat SemiBold Italic'),local('Montserrat-SemiBoldItalic'),url(https://fonts.gstatic.com/s/montserrat/v15/JTUPjIg1_i6t8kCHKm459WxZFgrz8fZwjimrq1Q_.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Montserrat';font-style:italic;font-weight:600;font-display:swap;src:local('Montserrat SemiBold Italic'),local('Montserrat-SemiBoldItalic'),url(https://fonts.gstatic.com/s/montserrat/v15/JTUPjIg1_i6t8kCHKm459WxZFgrz-PZwjimrq1Q_.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Montserrat';font-style:italic;font-weight:600;font-display:swap;src:local('Montserrat SemiBold Italic'),local('Montserrat-SemiBoldItalic'),url(https://fonts.gstatic.com/s/montserrat/v15/JTUPjIg1_i6t8kCHKm459WxZFgrz8_Zwjimrq1Q_.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Montserrat';font-style:italic;font-weight:600;font-display:swap;src:local('Montserrat SemiBold Italic'),local('Montserrat-SemiBoldItalic'),url(https://fonts.gstatic.com/s/montserrat/v15/JTUPjIg1_i6t8kCHKm459WxZFgrz8vZwjimrq1Q_.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Montserrat';font-style:italic;font-weight:600;font-display:swap;src:local('Montserrat SemiBold Italic'),local('Montserrat-SemiBoldItalic'),url(https://fonts.gstatic.com/s/montserrat/v15/JTUPjIg1_i6t8kCHKm459WxZFgrz_PZwjimrqw.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Montserrat';font-style:italic;font-weight:700;font-display:swap;src:local('Montserrat Bold Italic'),local('Montserrat-BoldItalic'),url(https://fonts.gstatic.com/s/montserrat/v15/JTUPjIg1_i6t8kCHKm459WxZcgvz8fZwjimrq1Q_.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Montserrat';font-style:italic;font-weight:700;font-display:swap;src:local('Montserrat Bold Italic'),local('Montserrat-BoldItalic'),url(https://fonts.gstatic.com/s/montserrat/v15/JTUPjIg1_i6t8kCHKm459WxZcgvz-PZwjimrq1Q_.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Montserrat';font-style:italic;font-weight:700;font-display:swap;src:local('Montserrat Bold Italic'),local('Montserrat-BoldItalic'),url(https://fonts.gstatic.com/s/montserrat/v15/JTUPjIg1_i6t8kCHKm459WxZcgvz8_Zwjimrq1Q_.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Montserrat';font-style:italic;font-weight:700;font-display:swap;src:local('Montserrat Bold Italic'),local('Montserrat-BoldItalic'),url(https://fonts.gstatic.com/s/montserrat/v15/JTUPjIg1_i6t8kCHKm459WxZcgvz8vZwjimrq1Q_.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Montserrat';font-style:italic;font-weight:700;font-display:swap;src:local('Montserrat Bold Italic'),local('Montserrat-BoldItalic'),url(https://fonts.gstatic.com/s/montserrat/v15/JTUPjIg1_i6t8kCHKm459WxZcgvz_PZwjimrqw.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Montserrat';font-style:italic;font-weight:800;font-display:swap;src:local('Montserrat ExtraBold Italic'),local('Montserrat-ExtraBoldItalic'),url(https://fonts.gstatic.com/s/montserrat/v15/JTUPjIg1_i6t8kCHKm459WxZbgjz8fZwjimrq1Q_.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Montserrat';font-style:italic;font-weight:800;font-display:swap;src:local('Montserrat ExtraBold Italic'),local('Montserrat-ExtraBoldItalic'),url(https://fonts.gstatic.com/s/montserrat/v15/JTUPjIg1_i6t8kCHKm459WxZbgjz-PZwjimrq1Q_.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Montserrat';font-style:italic;font-weight:800;font-display:swap;src:local('Montserrat ExtraBold Italic'),local('Montserrat-ExtraBoldItalic'),url(https://fonts.gstatic.com/s/montserrat/v15/JTUPjIg1_i6t8kCHKm459WxZbgjz8_Zwjimrq1Q_.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Montserrat';font-style:italic;font-weight:800;font-display:swap;src:local('Montserrat ExtraBold Italic'),local('Montserrat-ExtraBoldItalic'),url(https://fonts.gstatic.com/s/montserrat/v15/JTUPjIg1_i6t8kCHKm459WxZbgjz8vZwjimrq1Q_.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Montserrat';font-style:italic;font-weight:800;font-display:swap;src:local('Montserrat ExtraBold Italic'),local('Montserrat-ExtraBoldItalic'),url(https://fonts.gstatic.com/s/montserrat/v15/JTUPjIg1_i6t8kCHKm459WxZbgjz_PZwjimrqw.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Montserrat';font-style:italic;font-weight:900;font-display:swap;src:local('Montserrat Black Italic'),local('Montserrat-BlackItalic'),url(https://fonts.gstatic.com/s/montserrat/v15/JTUPjIg1_i6t8kCHKm459WxZSgnz8fZwjimrq1Q_.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Montserrat';font-style:italic;font-weight:900;font-display:swap;src:local('Montserrat Black Italic'),local('Montserrat-BlackItalic'),url(https://fonts.gstatic.com/s/montserrat/v15/JTUPjIg1_i6t8kCHKm459WxZSgnz-PZwjimrq1Q_.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Montserrat';font-style:italic;font-weight:900;font-display:swap;src:local('Montserrat Black Italic'),local('Montserrat-BlackItalic'),url(https://fonts.gstatic.com/s/montserrat/v15/JTUPjIg1_i6t8kCHKm459WxZSgnz8_Zwjimrq1Q_.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Montserrat';font-style:italic;font-weight:900;font-display:swap;src:local('Montserrat Black Italic'),local('Montserrat-BlackItalic'),url(https://fonts.gstatic.com/s/montserrat/v15/JTUPjIg1_i6t8kCHKm459WxZSgnz8vZwjimrq1Q_.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Montserrat';font-style:italic;font-weight:900;font-display:swap;src:local('Montserrat Black Italic'),local('Montserrat-BlackItalic'),url(https://fonts.gstatic.com/s/montserrat/v15/JTUPjIg1_i6t8kCHKm459WxZSgnz_PZwjimrqw.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Montserrat';font-style:normal;font-weight:100;font-display:swap;src:local('Montserrat Thin'),local('Montserrat-Thin'),url(https://fonts.gstatic.com/s/montserrat/v15/JTUQjIg1_i6t8kCHKm45_QpRxC7m0dR9pBOi.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Montserrat';font-style:normal;font-weight:100;font-display:swap;src:local('Montserrat Thin'),local('Montserrat-Thin'),url(https://fonts.gstatic.com/s/montserrat/v15/JTUQjIg1_i6t8kCHKm45_QpRzS7m0dR9pBOi.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Montserrat';font-style:normal;font-weight:100;font-display:swap;src:local('Montserrat Thin'),local('Montserrat-Thin'),url(https://fonts.gstatic.com/s/montserrat/v15/JTUQjIg1_i6t8kCHKm45_QpRxi7m0dR9pBOi.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Montserrat';font-style:normal;font-weight:100;font-display:swap;src:local('Montserrat Thin'),local('Montserrat-Thin'),url(https://fonts.gstatic.com/s/montserrat/v15/JTUQjIg1_i6t8kCHKm45_QpRxy7m0dR9pBOi.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Montserrat';font-style:normal;font-weight:100;font-display:swap;src:local('Montserrat Thin'),local('Montserrat-Thin'),url(https://fonts.gstatic.com/s/montserrat/v15/JTUQjIg1_i6t8kCHKm45_QpRyS7m0dR9pA.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Montserrat';font-style:normal;font-weight:200;font-display:swap;src:local('Montserrat ExtraLight'),local('Montserrat-ExtraLight'),url(https://fonts.gstatic.com/s/montserrat/v15/JTURjIg1_i6t8kCHKm45_aZA3gTD_vx3rCubqg.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Montserrat';font-style:normal;font-weight:200;font-display:swap;src:local('Montserrat ExtraLight'),local('Montserrat-ExtraLight'),url(https://fonts.gstatic.com/s/montserrat/v15/JTURjIg1_i6t8kCHKm45_aZA3g3D_vx3rCubqg.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Montserrat';font-style:normal;font-weight:200;font-display:swap;src:local('Montserrat ExtraLight'),local('Montserrat-ExtraLight'),url(https://fonts.gstatic.com/s/montserrat/v15/JTURjIg1_i6t8kCHKm45_aZA3gbD_vx3rCubqg.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Montserrat';font-style:normal;font-weight:200;font-display:swap;src:local('Montserrat ExtraLight'),local('Montserrat-ExtraLight'),url(https://fonts.gstatic.com/s/montserrat/v15/JTURjIg1_i6t8kCHKm45_aZA3gfD_vx3rCubqg.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Montserrat';font-style:normal;font-weight:200;font-display:swap;src:local('Montserrat ExtraLight'),local('Montserrat-ExtraLight'),url(https://fonts.gstatic.com/s/montserrat/v15/JTURjIg1_i6t8kCHKm45_aZA3gnD_vx3rCs.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Montserrat';font-style:normal;font-weight:300;font-display:swap;src:local('Montserrat Light'),local('Montserrat-Light'),url(https://fonts.gstatic.com/s/montserrat/v15/JTURjIg1_i6t8kCHKm45_cJD3gTD_vx3rCubqg.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Montserrat';font-style:normal;font-weight:300;font-display:swap;src:local('Montserrat Light'),local('Montserrat-Light'),url(https://fonts.gstatic.com/s/montserrat/v15/JTURjIg1_i6t8kCHKm45_cJD3g3D_vx3rCubqg.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Montserrat';font-style:normal;font-weight:300;font-display:swap;src:local('Montserrat Light'),local('Montserrat-Light'),url(https://fonts.gstatic.com/s/montserrat/v15/JTURjIg1_i6t8kCHKm45_cJD3gbD_vx3rCubqg.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Montserrat';font-style:normal;font-weight:300;font-display:swap;src:local('Montserrat Light'),local('Montserrat-Light'),url(https://fonts.gstatic.com/s/montserrat/v15/JTURjIg1_i6t8kCHKm45_cJD3gfD_vx3rCubqg.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Montserrat';font-style:normal;font-weight:300;font-display:swap;src:local('Montserrat Light'),local('Montserrat-Light'),url(https://fonts.gstatic.com/s/montserrat/v15/JTURjIg1_i6t8kCHKm45_cJD3gnD_vx3rCs.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Montserrat';font-style:normal;font-weight:400;font-display:swap;src:local('Montserrat Regular'),local('Montserrat-Regular'),url(https://fonts.gstatic.com/s/montserrat/v15/JTUSjIg1_i6t8kCHKm459WRhyyTh89ZNpQ.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Montserrat';font-style:normal;font-weight:400;font-display:swap;src:local('Montserrat Regular'),local('Montserrat-Regular'),url(https://fonts.gstatic.com/s/montserrat/v15/JTUSjIg1_i6t8kCHKm459W1hyyTh89ZNpQ.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Montserrat';font-style:normal;font-weight:400;font-display:swap;src:local('Montserrat Regular'),local('Montserrat-Regular'),url(https://fonts.gstatic.com/s/montserrat/v15/JTUSjIg1_i6t8kCHKm459WZhyyTh89ZNpQ.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Montserrat';font-style:normal;font-weight:400;font-display:swap;src:local('Montserrat Regular'),local('Montserrat-Regular'),url(https://fonts.gstatic.com/s/montserrat/v15/JTUSjIg1_i6t8kCHKm459WdhyyTh89ZNpQ.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Montserrat';font-style:normal;font-weight:400;font-display:swap;src:local('Montserrat Regular'),local('Montserrat-Regular'),url(https://fonts.gstatic.com/s/montserrat/v15/JTUSjIg1_i6t8kCHKm459WlhyyTh89Y.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Montserrat';font-style:normal;font-weight:500;font-display:swap;src:local('Montserrat Medium'),local('Montserrat-Medium'),url(https://fonts.gstatic.com/s/montserrat/v15/JTURjIg1_i6t8kCHKm45_ZpC3gTD_vx3rCubqg.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Montserrat';font-style:normal;font-weight:500;font-display:swap;src:local('Montserrat Medium'),local('Montserrat-Medium'),url(https://fonts.gstatic.com/s/montserrat/v15/JTURjIg1_i6t8kCHKm45_ZpC3g3D_vx3rCubqg.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Montserrat';font-style:normal;font-weight:500;font-display:swap;src:local('Montserrat Medium'),local('Montserrat-Medium'),url(https://fonts.gstatic.com/s/montserrat/v15/JTURjIg1_i6t8kCHKm45_ZpC3gbD_vx3rCubqg.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Montserrat';font-style:normal;font-weight:500;font-display:swap;src:local('Montserrat Medium'),local('Montserrat-Medium'),url(https://fonts.gstatic.com/s/montserrat/v15/JTURjIg1_i6t8kCHKm45_ZpC3gfD_vx3rCubqg.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Montserrat';font-style:normal;font-weight:500;font-display:swap;src:local('Montserrat Medium'),local('Montserrat-Medium'),url(https://fonts.gstatic.com/s/montserrat/v15/JTURjIg1_i6t8kCHKm45_ZpC3gnD_vx3rCs.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Montserrat';font-style:normal;font-weight:600;font-display:swap;src:local('Montserrat SemiBold'),local('Montserrat-SemiBold'),url(https://fonts.gstatic.com/s/montserrat/v15/JTURjIg1_i6t8kCHKm45_bZF3gTD_vx3rCubqg.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Montserrat';font-style:normal;font-weight:600;font-display:swap;src:local('Montserrat SemiBold'),local('Montserrat-SemiBold'),url(https://fonts.gstatic.com/s/montserrat/v15/JTURjIg1_i6t8kCHKm45_bZF3g3D_vx3rCubqg.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Montserrat';font-style:normal;font-weight:600;font-display:swap;src:local('Montserrat SemiBold'),local('Montserrat-SemiBold'),url(https://fonts.gstatic.com/s/montserrat/v15/JTURjIg1_i6t8kCHKm45_bZF3gbD_vx3rCubqg.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Montserrat';font-style:normal;font-weight:600;font-display:swap;src:local('Montserrat SemiBold'),local('Montserrat-SemiBold'),url(https://fonts.gstatic.com/s/montserrat/v15/JTURjIg1_i6t8kCHKm45_bZF3gfD_vx3rCubqg.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Montserrat';font-style:normal;font-weight:600;font-display:swap;src:local('Montserrat SemiBold'),local('Montserrat-SemiBold'),url(https://fonts.gstatic.com/s/montserrat/v15/JTURjIg1_i6t8kCHKm45_bZF3gnD_vx3rCs.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Montserrat';font-style:normal;font-weight:700;font-display:swap;src:local('Montserrat Bold'),local('Montserrat-Bold'),url(https://fonts.gstatic.com/s/montserrat/v15/JTURjIg1_i6t8kCHKm45_dJE3gTD_vx3rCubqg.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Montserrat';font-style:normal;font-weight:700;font-display:swap;src:local('Montserrat Bold'),local('Montserrat-Bold'),url(https://fonts.gstatic.com/s/montserrat/v15/JTURjIg1_i6t8kCHKm45_dJE3g3D_vx3rCubqg.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Montserrat';font-style:normal;font-weight:700;font-display:swap;src:local('Montserrat Bold'),local('Montserrat-Bold'),url(https://fonts.gstatic.com/s/montserrat/v15/JTURjIg1_i6t8kCHKm45_dJE3gbD_vx3rCubqg.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Montserrat';font-style:normal;font-weight:700;font-display:swap;src:local('Montserrat Bold'),local('Montserrat-Bold'),url(https://fonts.gstatic.com/s/montserrat/v15/JTURjIg1_i6t8kCHKm45_dJE3gfD_vx3rCubqg.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Montserrat';font-style:normal;font-weight:700;font-display:swap;src:local('Montserrat Bold'),local('Montserrat-Bold'),url(https://fonts.gstatic.com/s/montserrat/v15/JTURjIg1_i6t8kCHKm45_dJE3gnD_vx3rCs.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Montserrat';font-style:normal;font-weight:800;font-display:swap;src:local('Montserrat ExtraBold'),local('Montserrat-ExtraBold'),url(https://fonts.gstatic.com/s/montserrat/v15/JTURjIg1_i6t8kCHKm45_c5H3gTD_vx3rCubqg.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Montserrat';font-style:normal;font-weight:800;font-display:swap;src:local('Montserrat ExtraBold'),local('Montserrat-ExtraBold'),url(https://fonts.gstatic.com/s/montserrat/v15/JTURjIg1_i6t8kCHKm45_c5H3g3D_vx3rCubqg.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Montserrat';font-style:normal;font-weight:800;font-display:swap;src:local('Montserrat ExtraBold'),local('Montserrat-ExtraBold'),url(https://fonts.gstatic.com/s/montserrat/v15/JTURjIg1_i6t8kCHKm45_c5H3gbD_vx3rCubqg.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Montserrat';font-style:normal;font-weight:800;font-display:swap;src:local('Montserrat ExtraBold'),local('Montserrat-ExtraBold'),url(https://fonts.gstatic.com/s/montserrat/v15/JTURjIg1_i6t8kCHKm45_c5H3gfD_vx3rCubqg.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Montserrat';font-style:normal;font-weight:800;font-display:swap;src:local('Montserrat ExtraBold'),local('Montserrat-ExtraBold'),url(https://fonts.gstatic.com/s/montserrat/v15/JTURjIg1_i6t8kCHKm45_c5H3gnD_vx3rCs.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Montserrat';font-style:normal;font-weight:900;font-display:swap;src:local('Montserrat Black'),local('Montserrat-Black'),url(https://fonts.gstatic.com/s/montserrat/v15/JTURjIg1_i6t8kCHKm45_epG3gTD_vx3rCubqg.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Montserrat';font-style:normal;font-weight:900;font-display:swap;src:local('Montserrat Black'),local('Montserrat-Black'),url(https://fonts.gstatic.com/s/montserrat/v15/JTURjIg1_i6t8kCHKm45_epG3g3D_vx3rCubqg.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Montserrat';font-style:normal;font-weight:900;font-display:swap;src:local('Montserrat Black'),local('Montserrat-Black'),url(https://fonts.gstatic.com/s/montserrat/v15/JTURjIg1_i6t8kCHKm45_epG3gbD_vx3rCubqg.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Montserrat';font-style:normal;font-weight:900;font-display:swap;src:local('Montserrat Black'),local('Montserrat-Black'),url(https://fonts.gstatic.com/s/montserrat/v15/JTURjIg1_i6t8kCHKm45_epG3gfD_vx3rCubqg.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Montserrat';font-style:normal;font-weight:900;font-display:swap;src:local('Montserrat Black'),local('Montserrat-Black'),url(https://fonts.gstatic.com/s/montserrat/v15/JTURjIg1_i6t8kCHKm45_epG3gnD_vx3rCs.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Nunito';font-style:italic;font-weight:200;font-display:swap;src:local('Nunito ExtraLight Italic'),local('Nunito-ExtraLightItalic'),url(https://fonts.gstatic.com/s/nunito/v14/XRXQ3I6Li01BKofIMN5MZ9vHUT8tDntiXTI.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Nunito';font-style:italic;font-weight:200;font-display:swap;src:local('Nunito ExtraLight Italic'),local('Nunito-ExtraLightItalic'),url(https://fonts.gstatic.com/s/nunito/v14/XRXQ3I6Li01BKofIMN5MZ9vOUT8tDntiXTI.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Nunito';font-style:italic;font-weight:200;font-display:swap;src:local('Nunito ExtraLight Italic'),local('Nunito-ExtraLightItalic'),url(https://fonts.gstatic.com/s/nunito/v14/XRXQ3I6Li01BKofIMN5MZ9vFUT8tDntiXTI.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Nunito';font-style:italic;font-weight:200;font-display:swap;src:local('Nunito ExtraLight Italic'),local('Nunito-ExtraLightItalic'),url(https://fonts.gstatic.com/s/nunito/v14/XRXQ3I6Li01BKofIMN5MZ9vEUT8tDntiXTI.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Nunito';font-style:italic;font-weight:200;font-display:swap;src:local('Nunito ExtraLight Italic'),local('Nunito-ExtraLightItalic'),url(https://fonts.gstatic.com/s/nunito/v14/XRXQ3I6Li01BKofIMN5MZ9vKUT8tDnti.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Nunito';font-style:italic;font-weight:300;font-display:swap;src:local('Nunito Light Italic'),local('Nunito-LightItalic'),url(https://fonts.gstatic.com/s/nunito/v14/XRXQ3I6Li01BKofIMN4oZNvHUT8tDntiXTI.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Nunito';font-style:italic;font-weight:300;font-display:swap;src:local('Nunito Light Italic'),local('Nunito-LightItalic'),url(https://fonts.gstatic.com/s/nunito/v14/XRXQ3I6Li01BKofIMN4oZNvOUT8tDntiXTI.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Nunito';font-style:italic;font-weight:300;font-display:swap;src:local('Nunito Light Italic'),local('Nunito-LightItalic'),url(https://fonts.gstatic.com/s/nunito/v14/XRXQ3I6Li01BKofIMN4oZNvFUT8tDntiXTI.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Nunito';font-style:italic;font-weight:300;font-display:swap;src:local('Nunito Light Italic'),local('Nunito-LightItalic'),url(https://fonts.gstatic.com/s/nunito/v14/XRXQ3I6Li01BKofIMN4oZNvEUT8tDntiXTI.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Nunito';font-style:italic;font-weight:300;font-display:swap;src:local('Nunito Light Italic'),local('Nunito-LightItalic'),url(https://fonts.gstatic.com/s/nunito/v14/XRXQ3I6Li01BKofIMN4oZNvKUT8tDnti.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Nunito';font-style:italic;font-weight:400;font-display:swap;src:local('Nunito Italic'),local('Nunito-Italic'),url(https://fonts.gstatic.com/s/nunito/v14/XRXX3I6Li01BKofIMNaORs7nczIHNHI.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Nunito';font-style:italic;font-weight:400;font-display:swap;src:local('Nunito Italic'),local('Nunito-Italic'),url(https://fonts.gstatic.com/s/nunito/v14/XRXX3I6Li01BKofIMNaHRs7nczIHNHI.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Nunito';font-style:italic;font-weight:400;font-display:swap;src:local('Nunito Italic'),local('Nunito-Italic'),url(https://fonts.gstatic.com/s/nunito/v14/XRXX3I6Li01BKofIMNaMRs7nczIHNHI.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Nunito';font-style:italic;font-weight:400;font-display:swap;src:local('Nunito Italic'),local('Nunito-Italic'),url(https://fonts.gstatic.com/s/nunito/v14/XRXX3I6Li01BKofIMNaNRs7nczIHNHI.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Nunito';font-style:italic;font-weight:400;font-display:swap;src:local('Nunito Italic'),local('Nunito-Italic'),url(https://fonts.gstatic.com/s/nunito/v14/XRXX3I6Li01BKofIMNaDRs7nczIH.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Nunito';font-style:italic;font-weight:600;font-display:swap;src:local('Nunito SemiBold Italic'),local('Nunito-SemiBoldItalic'),url(https://fonts.gstatic.com/s/nunito/v14/XRXQ3I6Li01BKofIMN5cYtvHUT8tDntiXTI.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Nunito';font-style:italic;font-weight:600;font-display:swap;src:local('Nunito SemiBold Italic'),local('Nunito-SemiBoldItalic'),url(https://fonts.gstatic.com/s/nunito/v14/XRXQ3I6Li01BKofIMN5cYtvOUT8tDntiXTI.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Nunito';font-style:italic;font-weight:600;font-display:swap;src:local('Nunito SemiBold Italic'),local('Nunito-SemiBoldItalic'),url(https://fonts.gstatic.com/s/nunito/v14/XRXQ3I6Li01BKofIMN5cYtvFUT8tDntiXTI.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Nunito';font-style:italic;font-weight:600;font-display:swap;src:local('Nunito SemiBold Italic'),local('Nunito-SemiBoldItalic'),url(https://fonts.gstatic.com/s/nunito/v14/XRXQ3I6Li01BKofIMN5cYtvEUT8tDntiXTI.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Nunito';font-style:italic;font-weight:600;font-display:swap;src:local('Nunito SemiBold Italic'),local('Nunito-SemiBoldItalic'),url(https://fonts.gstatic.com/s/nunito/v14/XRXQ3I6Li01BKofIMN5cYtvKUT8tDnti.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Nunito';font-style:italic;font-weight:700;font-display:swap;src:local('Nunito Bold Italic'),local('Nunito-BoldItalic'),url(https://fonts.gstatic.com/s/nunito/v14/XRXQ3I6Li01BKofIMN44Y9vHUT8tDntiXTI.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Nunito';font-style:italic;font-weight:700;font-display:swap;src:local('Nunito Bold Italic'),local('Nunito-BoldItalic'),url(https://fonts.gstatic.com/s/nunito/v14/XRXQ3I6Li01BKofIMN44Y9vOUT8tDntiXTI.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Nunito';font-style:italic;font-weight:700;font-display:swap;src:local('Nunito Bold Italic'),local('Nunito-BoldItalic'),url(https://fonts.gstatic.com/s/nunito/v14/XRXQ3I6Li01BKofIMN44Y9vFUT8tDntiXTI.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Nunito';font-style:italic;font-weight:700;font-display:swap;src:local('Nunito Bold Italic'),local('Nunito-BoldItalic'),url(https://fonts.gstatic.com/s/nunito/v14/XRXQ3I6Li01BKofIMN44Y9vEUT8tDntiXTI.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Nunito';font-style:italic;font-weight:700;font-display:swap;src:local('Nunito Bold Italic'),local('Nunito-BoldItalic'),url(https://fonts.gstatic.com/s/nunito/v14/XRXQ3I6Li01BKofIMN44Y9vKUT8tDnti.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Nunito';font-style:italic;font-weight:800;font-display:swap;src:local('Nunito ExtraBold Italic'),local('Nunito-ExtraBoldItalic'),url(https://fonts.gstatic.com/s/nunito/v14/XRXQ3I6Li01BKofIMN4kYNvHUT8tDntiXTI.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Nunito';font-style:italic;font-weight:800;font-display:swap;src:local('Nunito ExtraBold Italic'),local('Nunito-ExtraBoldItalic'),url(https://fonts.gstatic.com/s/nunito/v14/XRXQ3I6Li01BKofIMN4kYNvOUT8tDntiXTI.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Nunito';font-style:italic;font-weight:800;font-display:swap;src:local('Nunito ExtraBold Italic'),local('Nunito-ExtraBoldItalic'),url(https://fonts.gstatic.com/s/nunito/v14/XRXQ3I6Li01BKofIMN4kYNvFUT8tDntiXTI.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Nunito';font-style:italic;font-weight:800;font-display:swap;src:local('Nunito ExtraBold Italic'),local('Nunito-ExtraBoldItalic'),url(https://fonts.gstatic.com/s/nunito/v14/XRXQ3I6Li01BKofIMN4kYNvEUT8tDntiXTI.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Nunito';font-style:italic;font-weight:800;font-display:swap;src:local('Nunito ExtraBold Italic'),local('Nunito-ExtraBoldItalic'),url(https://fonts.gstatic.com/s/nunito/v14/XRXQ3I6Li01BKofIMN4kYNvKUT8tDnti.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Nunito';font-style:italic;font-weight:900;font-display:swap;src:local('Nunito Black Italic'),local('Nunito-BlackItalic'),url(https://fonts.gstatic.com/s/nunito/v14/XRXQ3I6Li01BKofIMN4AYdvHUT8tDntiXTI.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Nunito';font-style:italic;font-weight:900;font-display:swap;src:local('Nunito Black Italic'),local('Nunito-BlackItalic'),url(https://fonts.gstatic.com/s/nunito/v14/XRXQ3I6Li01BKofIMN4AYdvOUT8tDntiXTI.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Nunito';font-style:italic;font-weight:900;font-display:swap;src:local('Nunito Black Italic'),local('Nunito-BlackItalic'),url(https://fonts.gstatic.com/s/nunito/v14/XRXQ3I6Li01BKofIMN4AYdvFUT8tDntiXTI.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Nunito';font-style:italic;font-weight:900;font-display:swap;src:local('Nunito Black Italic'),local('Nunito-BlackItalic'),url(https://fonts.gstatic.com/s/nunito/v14/XRXQ3I6Li01BKofIMN4AYdvEUT8tDntiXTI.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Nunito';font-style:italic;font-weight:900;font-display:swap;src:local('Nunito Black Italic'),local('Nunito-BlackItalic'),url(https://fonts.gstatic.com/s/nunito/v14/XRXQ3I6Li01BKofIMN4AYdvKUT8tDnti.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Nunito';font-style:normal;font-weight:200;font-display:swap;src:local('Nunito ExtraLight'),local('Nunito-ExtraLight'),url(https://fonts.gstatic.com/s/nunito/v14/XRXW3I6Li01BKofA-seUbOvIWzgPDEtj.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Nunito';font-style:normal;font-weight:200;font-display:swap;src:local('Nunito ExtraLight'),local('Nunito-ExtraLight'),url(https://fonts.gstatic.com/s/nunito/v14/XRXW3I6Li01BKofA-seUZevIWzgPDEtj.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Nunito';font-style:normal;font-weight:200;font-display:swap;src:local('Nunito ExtraLight'),local('Nunito-ExtraLight'),url(https://fonts.gstatic.com/s/nunito/v14/XRXW3I6Li01BKofA-seUbuvIWzgPDEtj.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Nunito';font-style:normal;font-weight:200;font-display:swap;src:local('Nunito ExtraLight'),local('Nunito-ExtraLight'),url(https://fonts.gstatic.com/s/nunito/v14/XRXW3I6Li01BKofA-seUb-vIWzgPDEtj.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Nunito';font-style:normal;font-weight:200;font-display:swap;src:local('Nunito ExtraLight'),local('Nunito-ExtraLight'),url(https://fonts.gstatic.com/s/nunito/v14/XRXW3I6Li01BKofA-seUYevIWzgPDA.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Nunito';font-style:normal;font-weight:300;font-display:swap;src:local('Nunito Light'),local('Nunito-Light'),url(https://fonts.gstatic.com/s/nunito/v14/XRXW3I6Li01BKofAnsSUbOvIWzgPDEtj.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Nunito';font-style:normal;font-weight:300;font-display:swap;src:local('Nunito Light'),local('Nunito-Light'),url(https://fonts.gstatic.com/s/nunito/v14/XRXW3I6Li01BKofAnsSUZevIWzgPDEtj.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Nunito';font-style:normal;font-weight:300;font-display:swap;src:local('Nunito Light'),local('Nunito-Light'),url(https://fonts.gstatic.com/s/nunito/v14/XRXW3I6Li01BKofAnsSUbuvIWzgPDEtj.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Nunito';font-style:normal;font-weight:300;font-display:swap;src:local('Nunito Light'),local('Nunito-Light'),url(https://fonts.gstatic.com/s/nunito/v14/XRXW3I6Li01BKofAnsSUb-vIWzgPDEtj.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Nunito';font-style:normal;font-weight:300;font-display:swap;src:local('Nunito Light'),local('Nunito-Light'),url(https://fonts.gstatic.com/s/nunito/v14/XRXW3I6Li01BKofAnsSUYevIWzgPDA.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Nunito';font-style:normal;font-weight:400;font-display:swap;src:local('Nunito Regular'),local('Nunito-Regular'),url(https://fonts.gstatic.com/s/nunito/v14/XRXV3I6Li01BKofIOOaBTMnFcQIG.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Nunito';font-style:normal;font-weight:400;font-display:swap;src:local('Nunito Regular'),local('Nunito-Regular'),url(https://fonts.gstatic.com/s/nunito/v14/XRXV3I6Li01BKofIMeaBTMnFcQIG.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Nunito';font-style:normal;font-weight:400;font-display:swap;src:local('Nunito Regular'),local('Nunito-Regular'),url(https://fonts.gstatic.com/s/nunito/v14/XRXV3I6Li01BKofIOuaBTMnFcQIG.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Nunito';font-style:normal;font-weight:400;font-display:swap;src:local('Nunito Regular'),local('Nunito-Regular'),url(https://fonts.gstatic.com/s/nunito/v14/XRXV3I6Li01BKofIO-aBTMnFcQIG.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Nunito';font-style:normal;font-weight:400;font-display:swap;src:local('Nunito Regular'),local('Nunito-Regular'),url(https://fonts.gstatic.com/s/nunito/v14/XRXV3I6Li01BKofINeaBTMnFcQ.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Nunito';font-style:normal;font-weight:600;font-display:swap;src:local('Nunito SemiBold'),local('Nunito-SemiBold'),url(https://fonts.gstatic.com/s/nunito/v14/XRXW3I6Li01BKofA6sKUbOvIWzgPDEtj.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Nunito';font-style:normal;font-weight:600;font-display:swap;src:local('Nunito SemiBold'),local('Nunito-SemiBold'),url(https://fonts.gstatic.com/s/nunito/v14/XRXW3I6Li01BKofA6sKUZevIWzgPDEtj.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Nunito';font-style:normal;font-weight:600;font-display:swap;src:local('Nunito SemiBold'),local('Nunito-SemiBold'),url(https://fonts.gstatic.com/s/nunito/v14/XRXW3I6Li01BKofA6sKUbuvIWzgPDEtj.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Nunito';font-style:normal;font-weight:600;font-display:swap;src:local('Nunito SemiBold'),local('Nunito-SemiBold'),url(https://fonts.gstatic.com/s/nunito/v14/XRXW3I6Li01BKofA6sKUb-vIWzgPDEtj.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Nunito';font-style:normal;font-weight:600;font-display:swap;src:local('Nunito SemiBold'),local('Nunito-SemiBold'),url(https://fonts.gstatic.com/s/nunito/v14/XRXW3I6Li01BKofA6sKUYevIWzgPDA.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Nunito';font-style:normal;font-weight:700;font-display:swap;src:local('Nunito Bold'),local('Nunito-Bold'),url(https://fonts.gstatic.com/s/nunito/v14/XRXW3I6Li01BKofAjsOUbOvIWzgPDEtj.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Nunito';font-style:normal;font-weight:700;font-display:swap;src:local('Nunito Bold'),local('Nunito-Bold'),url(https://fonts.gstatic.com/s/nunito/v14/XRXW3I6Li01BKofAjsOUZevIWzgPDEtj.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Nunito';font-style:normal;font-weight:700;font-display:swap;src:local('Nunito Bold'),local('Nunito-Bold'),url(https://fonts.gstatic.com/s/nunito/v14/XRXW3I6Li01BKofAjsOUbuvIWzgPDEtj.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Nunito';font-style:normal;font-weight:700;font-display:swap;src:local('Nunito Bold'),local('Nunito-Bold'),url(https://fonts.gstatic.com/s/nunito/v14/XRXW3I6Li01BKofAjsOUb-vIWzgPDEtj.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Nunito';font-style:normal;font-weight:700;font-display:swap;src:local('Nunito Bold'),local('Nunito-Bold'),url(https://fonts.gstatic.com/s/nunito/v14/XRXW3I6Li01BKofAjsOUYevIWzgPDA.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Nunito';font-style:normal;font-weight:800;font-display:swap;src:local('Nunito ExtraBold'),local('Nunito-ExtraBold'),url(https://fonts.gstatic.com/s/nunito/v14/XRXW3I6Li01BKofAksCUbOvIWzgPDEtj.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Nunito';font-style:normal;font-weight:800;font-display:swap;src:local('Nunito ExtraBold'),local('Nunito-ExtraBold'),url(https://fonts.gstatic.com/s/nunito/v14/XRXW3I6Li01BKofAksCUZevIWzgPDEtj.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Nunito';font-style:normal;font-weight:800;font-display:swap;src:local('Nunito ExtraBold'),local('Nunito-ExtraBold'),url(https://fonts.gstatic.com/s/nunito/v14/XRXW3I6Li01BKofAksCUbuvIWzgPDEtj.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Nunito';font-style:normal;font-weight:800;font-display:swap;src:local('Nunito ExtraBold'),local('Nunito-ExtraBold'),url(https://fonts.gstatic.com/s/nunito/v14/XRXW3I6Li01BKofAksCUb-vIWzgPDEtj.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Nunito';font-style:normal;font-weight:800;font-display:swap;src:local('Nunito ExtraBold'),local('Nunito-ExtraBold'),url(https://fonts.gstatic.com/s/nunito/v14/XRXW3I6Li01BKofAksCUYevIWzgPDA.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Nunito';font-style:normal;font-weight:900;font-display:swap;src:local('Nunito Black'),local('Nunito-Black'),url(https://fonts.gstatic.com/s/nunito/v14/XRXW3I6Li01BKofAtsGUbOvIWzgPDEtj.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Nunito';font-style:normal;font-weight:900;font-display:swap;src:local('Nunito Black'),local('Nunito-Black'),url(https://fonts.gstatic.com/s/nunito/v14/XRXW3I6Li01BKofAtsGUZevIWzgPDEtj.woff2) format('woff2');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Nunito';font-style:normal;font-weight:900;font-display:swap;src:local('Nunito Black'),local('Nunito-Black'),url(https://fonts.gstatic.com/s/nunito/v14/XRXW3I6Li01BKofAtsGUbuvIWzgPDEtj.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Nunito';font-style:normal;font-weight:900;font-display:swap;src:local('Nunito Black'),local('Nunito-Black'),url(https://fonts.gstatic.com/s/nunito/v14/XRXW3I6Li01BKofAtsGUb-vIWzgPDEtj.woff2) format('woff2');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Nunito';font-style:normal;font-weight:900;font-display:swap;src:local('Nunito Black'),local('Nunito-Black'),url(https://fonts.gstatic.com/s/nunito/v14/XRXW3I6Li01BKofAtsGUYevIWzgPDA.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}@font-face{font-family:'Inter';font-style:normal;font-weight:600;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v3/UcCO3FwrK3iLTeHuS_fvQtMwCp50KnMw2boKoduKmMEVuGKYAZJhjp-Ek-_EeAmM.woff) format('woff');unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}@font-face{font-family:'Inter';font-style:normal;font-weight:600;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v3/UcCO3FwrK3iLTeHuS_fvQtMwCp50KnMw2boKoduKmMEVuGKYAZthjp-Ek-_EeAmM.woff) format('woff');unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}@font-face{font-family:'Inter';font-style:normal;font-weight:600;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v3/UcCO3FwrK3iLTeHuS_fvQtMwCp50KnMw2boKoduKmMEVuGKYAZNhjp-Ek-_EeAmM.woff) format('woff');unicode-range:U+1F00-1FFF;}@font-face{font-family:'Inter';font-style:normal;font-weight:600;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v3/UcCO3FwrK3iLTeHuS_fvQtMwCp50KnMw2boKoduKmMEVuGKYAZxhjp-Ek-_EeAmM.woff) format('woff');unicode-range:U+0370-03FF;}@font-face{font-family:'Inter';font-style:normal;font-weight:600;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v3/UcCO3FwrK3iLTeHuS_fvQtMwCp50KnMw2boKoduKmMEVuGKYAZBhjp-Ek-_EeAmM.woff) format('woff');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB;}@font-face{font-family:'Inter';font-style:normal;font-weight:600;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v3/UcCO3FwrK3iLTeHuS_fvQtMwCp50KnMw2boKoduKmMEVuGKYAZFhjp-Ek-_EeAmM.woff) format('woff');unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;}@font-face{font-family:'Inter';font-style:normal;font-weight:600;font-display:swap;src:url(https://fonts.gstatic.com/s/inter/v3/UcCO3FwrK3iLTeHuS_fvQtMwCp50KnMw2boKoduKmMEVuGKYAZ9hjp-Ek-_EeA.woff) format('woff');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}"]),JT=M.Ay.input.withConfig({displayName:"anchor__StyledClipboardAnchor",componentId:"sc-1h1z30o-0"})(["position:fixed;width:20px;height:20px;top:-9999px;left:-9999px;"]),qT=(0,I.Mz)([me.X_,me.wq,me.Sb,me.hz,me.Ur,me.$S],(e,t,n,a,i,c)=>({scale:e,quickCreateWidget:t,quickCreateWidgetFrom:n,isStartCreatingCanvas:a,currentScreen:i,viewportRect:c})),$T=()=>{const e=(0,r.d4)(qT),{quickCreateWidget:t,isStartCreatingCanvas:n,currentScreen:a}=e,i=(0,l.useRef)({x:0,y:0});return(0,l.useLayoutEffect)(()=>{const c=d=>{i.current={x:d.clientX,y:d.clientY}};return document.addEventListener("mousemove",c),()=>{document.removeEventListener("mousemove",c)}},[n]),!a||n||(t==null?void 0:t.type)!==$.x.Canvas||t.metaType===$.x.CanvasAsOverlay?null:(0,o.jsx)(eP,{...e,initPos:i.current})},eP=e=>{const[t,n]=(0,l.useState)(e.initPos);(0,l.useLayoutEffect)(()=>{const R=F=>{n({x:F.clientX,y:F.clientY})};return document.addEventListener("mousemove",R),()=>{document.removeEventListener("mousemove",R)}},[t]);const{scale:a,currentScreen:i,viewportRect:c,quickCreateWidgetFrom:d,quickCreateWidget:p}=e;if(!(t.x>c.x&&t.y>c.y))return null;const h=a/100,{x:m,y:x}=t;let v=i.deviceW,A=i.deviceH;i.deviceOrientation!=="portrait"&&(A=i.deviceW,v=i.deviceH),d===qd.Hq.modal&&(A=p.h,v=p.w);const k={transform:"translate("+m+"px,"+x+"px) rotate(0deg)",width:v*h,height:A*h};return(0,o.jsx)(tP,{style:k})},tP=M.Ay.div.withConfig({displayName:"CanvasPhantom__StyledCanvasPhantom",componentId:"sc-1lmwwjx-0"})(["z-index:1;pointer-events:none !important;position:absolute;background:white;border:1px dashed black;opacity:0.5;"]),dv=()=>{const[e,t]=(0,l.useState)(0);return()=>{t(e+1)}};var kl=s(85449);const nP=[{type:$.x.WFlowProcess},{type:$.x.WFlowDecision},{type:$.x.WFlowStartEnd},{type:$.x.WFlowDoc},{type:$.x.WFlowData},{type:$.x.WFlowSubProcess},{type:$.x.WFlowOuterData},{type:$.x.WFlowInnerData},{type:$.x.WFlowQueueData},{type:$.x.WFlowDatabase1},{type:$.x.WFlowDatabase2},{type:$.x.WFlowHumanInput},{type:$.x.WFlowCard},{type:$.x.WFlowStrip},{type:$.x.WFlowShow},{type:$.x.WFlowHumanOp},{type:$.x.WFlowPrepare},{type:$.x.WFlowConcurrent},{type:$.x.WFlowLoop},{type:$.x.WFlowRefInPage},{type:$.x.WFlowOr},{type:$.x.WFlowSum},{type:$.x.WFlowRefCrossPage},{type:$.x.WFlowSort},{type:$.x.WFlowUnion},{type:$.x.WFlowCommentRight},{type:$.x.WFlowCommentLeft},{type:$.x.WFlowNoteRight},{type:$.x.WFlowNoteLeft}];function oP(){const e=(0,l.useRef)(void 0),t=(0,l.useRef)({x:0,y:0}),n=(0,l.useRef)(""),a=dv();return(0,l.useEffect)(()=>{const i=c=>{let{from:d,mousePos:p,elbowKey:h}=c;e.current=d,t.current=p,n.current=h,a()};return Yc.A.on("elbowPopupShowed",i),()=>{Yc.A.off("elbowPopupShowed",i)}},[a]),e.current===void 0?null:(0,o.jsx)(aP,{openFromRef:e,positionRef:t,elbowKeyRef:n,refresh:a})}const aP=e=>{const{openFromRef:t,positionRef:n,elbowKeyRef:a,refresh:i}=e;(0,l.useEffect)(()=>{const G=ee=>{ee.target.closest("#widget-popup")||(t.current=void 0,i())};return document.addEventListener("mousedown",G),()=>{document.removeEventListener("mousedown",G)}},[]);const c=(0,r.wA)(),d=(0,r.d4)(te.O4),p=n.current,h=(0,kl.dP)(),m=(0,me.$S)(h),x=260,v=198;let A=p.x,k=p.y;A+x>=m.right&&(A=p.x-x),k+v>=m.bottom&&(k=p.y-v);const R={top:k,left:A},F=(G,ee)=>{G.stopPropagation(),G.preventDefault(),c({type:"entry:elbow:popup:create",payload:{elbowKey:a.current,widgetType:ee,openFrom:t.current}}),t.current=void 0,i()},Z=G=>{G.stopPropagation()};return(0,o.jsx)(rP,{id:"widget-popup",className:d,style:R,onClick:Z,children:(0,o.jsx)("div",{className:"flow-widget-popup-container",children:nP.map((G,ee)=>(0,o.jsx)("div",{className:"cell",onClick:ce=>F(ce,G.type),children:(0,o.jsx)(xt.C,{size:32,name:"flow/popup/"+G.type})},ee))})})},rP=M.Ay.div.withConfig({displayName:"FlowWidgetPopup__StyledWidgetPopup",componentId:"sc-gkliul-0"})(["position:absolute;width:260px;height:198px;box-shadow:4px 12px 40px 0px rgba(39,54,78,0.1);border-radius:8px;background:",";padding-top:15px;&.dark{outline:1px solid ",";}.flow-widget-popup-container{height:182px;pointer-events:auto;overflow:auto;display:flex;flex-wrap:wrap;cursor:pointer;padding:1px 10px 16px 16px;gap:14px 6px;.cell{display:flex;width:32px;height:32px;&:hover{background:",";outline:1px solid #1685fc;border-radius:4px;}.svg-icon{color:",";}}}"],e=>e.theme.color_bg_white,e=>e.theme.color_border_state,e=>e.theme.color_bg_select03,e=>e.theme.color_text_L1);var su=s(18501),Ag=s(8228),Eh=s(28068);const iP=M.Ay.div.withConfig({displayName:"styles__StyledChatGuide",componentId:"sc-daab3z-0"})(['display:flex;width:100%;height:100%;.close-guide{display:flex;position:absolute;right:24px;top:18px;width:24px;height:24px;cursor:pointer;border-radius:4px;&:hover{background:rgba(0,0,0,0.1);}}.try-now{font-weight:700;font-size:20px;text-align:center;color:rgb(255,255,255);padding:0px 103px;height:50px;border-radius:25px;background:#A2CEFE;position:absolute;margin-left:50%;transform:translateX(-50%);line-height:50px;bottom:74px;pointer-events:none;&.isAgree{pointer-events:auto;background:linear-gradient(89.18deg,#1684FC 6.64%,#3BE4FD 103.74%);box-shadow:inset 0px -1px 2px rgba(5,242,249,0.8),inset 3px -1px 15px rgba(125,247,255,0.46);cursor:pointer;}&:hover,&:active{background:linear-gradient(89.29deg,#0074F3 6.59%,#2FD7FF 126.05%);box-shadow:inset 0px -1px 2px rgba(5,242,249,0.8),inset 3px -1px 15px rgba(125,247,255,0.46);}}.agree-inkblade{position:absolute;bottom:26px;display:flex;justify-content:center;width:100%;font-weight:400;font-size:14px;line-height:16px;display:flex;align-items:center;color:#6B7094;.use-agreement{display:flex;}svg{wdith:16px;height:16px;margin-right:10px;cursor:pointer;g{rect{fill:white;}}}.agreement-content{background:linear-gradient(269.05deg,#3FFFFF -19.32%,#057DFF 99.84%);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;text-fill-color:transparent;cursor:pointer;border-bottom:1px solid;border-image-source:linear-gradient(269.05deg,#3FFFFF -19.32%,#057DFF 99.84%);border-image-slice:1;display:flex;justify-content:center;}}.tips{max-width:335px;position:absolute;background-color:#fff;box-sizing:border-box;padding:20px 16px 20px 24px;background:#333333;border-radius:4px;bottom:calc(100% + 6px);font-weight:400;font-size:12px;line-height:18px;color:#FFFFFF;flex-direction:column;text-align:left;span{color:white;}div{margin-top:10px;}.tip-title{font-size:14px;font-weight:500;display:flex;margin-top:0px;svg{margin-right:2px;}}&::after{content:"";position:absolute;bottom:-12px;left:50%;transform:translateY(-100%);display:inline-block;width:0px;height:0px;cursor:pointer;border-left:8px solid transparent;border-right:8px solid transparent;border-top:6px solid #333333;}}']);class sP extends l.PureComponent{constructor(){super(...arguments),(0,B.A)(this,"state",{isAgree:!1,showAgreement:!1}),(0,B.A)(this,"toggleSelect",()=>{const{isAgree:t}=this.state;this.setState({isAgree:!t})}),(0,B.A)(this,"handleTryNow",()=>{const{closeGuide:t}=this.props;t&&t(!0),MB.commonGuideHelper.markGuideAsRead("GUIDE_CHATGPT_AGREE_AGREEMENT")})}render(){const{isAgree:t,showAgreement:n}=this.state,{closeGuide:a}=this.props,i=[I18N.ChatGPT.ai_protocol_1,I18N.ChatGPT.ai_protocol_2,I18N.ChatGPT.ai_protocol_3,I18N.ChatGPT.ai_protocol_4,I18N.ChatGPT.ai_protocol_5];return(0,o.jsxs)(iP,{children:[(0,o.jsx)(xc.C,{name:"chatGPT/modal_close",className:"close-guide",onClick:()=>a(!1)}),(0,o.jsxs)("div",{className:"guide-bottom",children:[(0,o.jsx)("div",{className:C()("try-now",t&&"isAgree"),onClick:this.handleTryNow,children:I18N.ChatGPT.try_now}),(0,o.jsxs)("div",{className:"agree-inkblade",children:[(0,o.jsx)(xc.C,{name:t?"chatGPT/protocol_select":"chatGPT/protocol_no_select",className:"close-modal",onClick:this.toggleSelect,isColorPure:!0}),(0,o.jsxs)("div",{className:"use-agreement",children:[I18N.ChatGPT.agree_inkblade,(0,o.jsxs)("div",{style:{display:"flex",justifyContent:"center",marginLeft:"2px"},children:[(0,o.jsxs)("div",{className:"agreement-content",onMouseOver:()=>{this.setState({showAgreement:!0})},onMouseLeave:()=>{this.setState({showAgreement:!1})},children:[" ",I18N.ChatGPT.ai_use_agreement," "]}),n&&(0,o.jsxs)("div",{className:"tips",children:[(0,o.jsxs)("div",{className:"tip-title",children:[!ENV.IS_WONDER_SHARE&&(0,o.jsx)(xc.C,{name:"chatGPT/ai-point-icon",isColorPure:!0}),I18N.ChatGPT.ai_protocol_title]}),i.map((c,d)=>(0,o.jsx)("div",{children:c},d))]})]})]})]})]})]})}}var pv=s(21337);const lP=M.Ay.div.withConfig({displayName:"styles__StyledChatBottomTool",componentId:"sc-1dk3ti-0"})(["padding:10px 20px 12px 20px;.error-tip{font-size:12px;line-height:17px;color:",";height:20px;line-height:20px}.recommend-content{display:flex;flex-direction:column;align-items:center;width:100%;.recommend-title{font-size:12px;line-height:17px;color:",";width:100%;text-align:left;margin-bottom:6px;}.recommend{margin-bottom:8px;cursor:pointer;font-size:12px;line-height:17px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;width:100%;text-align:center;color:",";&:hover{color:",";}}&:last-child{margin-bottom:0px;}}"],e=>e.theme.color_primary_brand02,e=>e.theme.color_text_L3,e=>e.theme.color_text_L1,e=>e.theme.color_text_link_normal);function cP(e){const{sendMessageHandle:t,generating:n,currentAIComponent:{recommends:a},handleInputFocus:i,userInput:c,setUserInput:d}=e,p=(0,l.useRef)(null),h=()=>{p&&p.current.blur(),t(c)},m=x=>{p&&p.current.focus(),d(x)};return(0,o.jsxs)(lP,{children:[(0,o.jsx)(qx,{userInput:c,generating:n,handleInputChange:m,handleInputFocus:i,sendAction:h,ref:p}),(0,o.jsx)("div",{className:"error-tip",children:c.length>=200?I18N.ChatGPT.ai_input_200_limit:""}),(0,o.jsxs)("div",{className:"recommend-content",children:[(0,o.jsx)("div",{className:"recommend-title",children:I18N.ChatGPT.ai_example}),a.map((x,v)=>(0,o.jsx)("div",{className:"recommend",onClick:()=>m(x),children:x},v))]})]})}var dP=s(515),pP=s(73489),uP=s(18876),hP=s(57170),mP=s(36329),fP=s(28735),gP=s(92717),yP=s(65042),uv=s(54959),M5=s(16966),xP=s(34237),vP=s(95127),bP=s(97866),wP=s(7509),CP=s(37258),SP=s(81199),AP=s(35726),kP=s(4400),MP=s(2540),EP=s(43213),kg=s(72227),IP=s(47804),hv=s(41612),_P=s(77064),TP=s(81334),PP=s(40178),LP=s(74778),o2=s(60675),NP=s(9629),jP=s(89384),DP=s(43778),RP=s(83481),BP=s(70059),UP=s(52713),OP=s(57009),FP=s(36560),VP=s(64554),zP=s(90792),E5=s(23322),WP=s(33189),HP=s(18619),GP=s(66941),ZP=s(3210),KP=s(35716),YP=s(84184),XP=s(82807),QP=s(85385),JP=s(16100),qP=s(91775),mv=s(7041),tc=s(38286),Ef=s(30631),$P=s(74577);const Ds={[Zt.x.WWrap]:HP.gs,[Zt.x.WRect]:mh.wN,[Zt.x.WOval]:dP.y7,[Zt.x.WAudio]:pP.Kq,[Zt.x.WVideo]:uP.pA,[Zt.x.WImage]:hP.ND,[Zt.x.WPolygon]:mP.g5,[Zt.x.WStar]:fP.U4,[Zt.x.Canvas]:M5.Nc,[Zt.x.WLine]:gP.Wq,[Zt.x.WArrow]:yP.Rl,[Zt.x.WButton]:uv.Ys,[Zt.x.RbPage]:Za.gO,[Zt.x.WTriangleB]:xP.Ru,[Zt.x.WTriangleTL]:vP.DP,[Zt.x.WPlaceholder]:bP.C1,[Zt.x.WLR]:wP.eo,[Zt.x.WButtonSolid]:uv.tw,[Zt.x.WRichText]:CP.l$,[Zt.x.WMTextInput]:SP.cI,[Zt.x.WMTextArea]:AP.ji,[Zt.x.WMSelect]:kP.Xn,[Zt.x.WSticky]:MP.pI,[Zt.x.WDropMenu]:EP.e_,[Zt.x.WTable]:kg.ix,[Zt.x.WMFileInput]:IP.Vk,[Zt.x.WSelectionControlRadio]:(0,hv.Pd)("radio"),[Zt.x.WSelectionControlCheckbox]:(0,hv.Pd)("checkbox"),[Zt.x.WAndroidSwitch]:_P.r9,[Zt.x.WIOSSwitch]:TP.fk,[Zt.x.WSlider]:PP.v0,[Zt.x.WDigitalStepper]:LP.Zt,[Zt.x.WBarChart]:(0,o2.o2)("bar_chart"),[Zt.x.WHorizontalBarChart]:(0,o2.o2)("horizontal_bar_chart"),[Zt.x.WLineChart]:(0,o2.o2)("line_chart"),[Zt.x.WLineAreaChart]:(0,o2.o2)("line_area_chart"),[Zt.x.WPieChart]:(0,o2.o2)("pie_chart"),[Zt.x.WRingChart]:(0,o2.o2)("ring_chart"),[Zt.x.WProgressChart]:(0,o2.o2)("progress_chart"),[Zt.x.WRadarChart]:(0,o2.o2)("radar_chart"),[Zt.x.WMixedBarLineChart]:(0,o2.o2)("mixed_bar_line_chart"),[Zt.x.WMTooltip]:NP.gZ,[Zt.x.WMapView]:jP.$x,[Zt.x.WQRCode]:WP.uM,[Zt.x.WWebpage]:DP.lR,[Zt.x.WCarousel]:RP.aQ,[Zt.x.WTabs]:BP.SH,[Zt.x.WPaginationMobile]:OP.of,[Zt.x.WPaginationWeb]:UP.At,[Zt.x.WCollapse]:FP.Zs,[Zt.x.WSegmentedControl]:VP.VH,[Zt.x.WMobileTabBars]:zP.D3,[Zt.x.WNavigationMenu]:(0,E5.Nb)(0),[Zt.x.WNavigationMenuH]:(0,E5.Nb)(2),[Zt.x.WNavigationMenuV]:(0,E5.Nb)(1),[Zt.x.WBasket]:GP.Iz,[Zt.x.WIcon]:ZP.T4,[Zt.x.WElbow]:KP.rZ,[Zt.x.WTear]:XP.wK,[Zt.x.WUnifiedKeyboard]:YP.zv,[Zt.x.WIphoneXSB]:QP.t,[Zt.x.WVector]:JP.jJ,[Zt.x.WTriangle]:qP.ml,[Zt.x.WSwimlane]:(0,mv.QV)("leftRight"),[Zt.x.WSwimlaneV]:(0,mv.QV)("topBottom"),[Zt.x.wFlowClosed]:(0,tc.Cr)("doc"),[Zt.x.WFlowProcess]:(0,tc.Cr)("process"),[Zt.x.WFlowDecision]:(0,tc.Cr)("decision"),[Zt.x.WFlowStartEnd]:(0,tc.Cr)("startEnd"),[Zt.x.WFlowDoc]:(0,tc.Cr)("doc"),[Zt.x.WFlowData]:(0,tc.Cr)("data"),[Zt.x.WFlowSubProcess]:(0,tc.Cr)("subProcess"),[Zt.x.WFlowOuterData]:(0,tc.Cr)("outerData"),[Zt.x.WFlowInnerData]:(0,tc.Cr)("innerData"),[Zt.x.WFlowQueueData]:(0,tc.Cr)("queueData"),[Zt.x.WFlowDatabase1]:(0,tc.Cr)("database1"),[Zt.x.WFlowDatabase2]:(0,tc.Cr)("database2"),[Zt.x.WFlowHumanInput]:(0,tc.Cr)("humanInput"),[Zt.x.WFlowCard]:(0,tc.Cr)("card"),[Zt.x.WFlowStrip]:(0,tc.Cr)("strip"),[Zt.x.WFlowShow]:(0,tc.Cr)("show"),[Zt.x.WFlowHumanOp]:(0,tc.Cr)("humanOp"),[Zt.x.WFlowPrepare]:(0,tc.Cr)("prepare"),[Zt.x.WFlowLoop]:(0,tc.Cr)("loop"),[Zt.x.WFlowRefInPage]:(0,tc.Cr)("refInPage"),[Zt.x.WFlowOr]:(0,tc.Cr)("or"),[Zt.x.WFlowSum]:(0,tc.Cr)("sum"),[Zt.x.WFlowRefCrossPage]:(0,tc.Cr)("refCrossPage"),[Zt.x.WFlowSort]:(0,tc.Cr)("sort"),[Zt.x.WFlowUnion]:(0,tc.Cr)("union"),[Zt.x.WFlowConcurrent]:(0,Ef.B1)("concurrent"),[Zt.x.WFlowCommentLeft]:(0,Ef.B1)("commentLeft"),[Zt.x.WFlowCommentRight]:(0,Ef.B1)("commentRight"),[Zt.x.WFlowNoteLeft]:(0,Ef.B1)("noteLeft"),[Zt.x.WFlowNoteRight]:(0,Ef.B1)("noteRight"),[Zt.x.WAndroidSB]:$P.Z};var Ms=function(e){return e.text="text",e.rectangle="rectangle",e.image="image",e.oval="oval",e.line="line",e.button="button",e.iphoneXSB="appStatusBar",e.arrow="arrow",e.mTextInput="textInput",e.mTextarea="textArea",e.dropList="dropList",e.dropMenu="dropDownMenu",e.radioSelection="radioBox",e.checkbox="checkBox",e.table="table",e.genProto="genproto",e.mind="mind",e.flow="flow",e.chart="chart",e.genComponent="gencomponent",e.modelPage="modelPage",e.customPage="customPage",e.genPrd="genprd",e.textFill="textfill",e.editImage="editimage",e.editText="edittext",e.textTranslate="texttranslate",e.textPolish="textpolish",e.textStyle="textstyle",e.textExpand="textexpand",e.textShort="textshort",e.editStyle="editstyle",e}(Ms||{}),Js=function(e){return e[e.Unknown=0]="Unknown",e[e.Success=200]="Success",e[e.Unauthorized=401]="Unauthorized",e[e.PointsInsufficient=403]="PointsInsufficient",e[e.AnotherConversation=405]="AnotherConversation",e[e.HandleExceptions=409]="HandleExceptions",e[e.ContentViolation=451]="ContentViolation",e[e.NotSupport=510]="NotSupport",e[e.TextOverLimit=601]="TextOverLimit",e[e.NotSupportMultiple=602]="NotSupportMultiple",e[e.NotFindEditObject=603]="NotFindEditObject",e[e.ResultViolation=422]="ResultViolation",e[e.NotSupportCanvas=423]="NotSupportCanvas",e}(Js||{}),I5=function(e){return e.success="success",e.warning="warning",e.fail="error",e}(I5||{}),eL=function(e){return e.default="default",e.editText="editText",e.imageEdit="imageEdit",e.textFill="textFill",e.editStyle="editStyle",e}(eL||{});const Gre={Page:"\u751F\u6210\u539F\u578B\u9875\u9762",flow:"\u751F\u6210\u6D41\u7A0B\u56FE",mind:"\u751F\u6210\u601D\u7EF4\u5BFC\u56FE",table:"\u751F\u6210\u8868\u683C",chart:"\u751F\u6210\u56FE\u8868",gentext:"\u751F\u6210\u6587\u672C\u7EC4\u4EF6",genrectangle:"\u751F\u6210\u77E9\u5F62\u7EC4\u4EF6",genimage:"\u751F\u6210\u56FE\u7247",genoval:"\u751F\u6210\u5706\u5F62\u7EC4\u4EF6",genline:"\u751F\u6210\u7EBF\u6761\u7EC4\u4EF6",genbutton:"\u751F\u6210\u6309\u94AE\u7EC4\u4EF6",genappstatusbar:"\u751F\u6210APP\u72B6\u6001\u680F\u7EC4\u4EF6",genarrow:"\u751F\u6210\u7BAD\u5934\u7EC4\u4EF6",gentextinput:"\u751F\u6210\u5355\u884C\u8F93\u5165\u7EC4\u4EF6",gentextarea:"\u751F\u6210\u591A\u884C\u8F93\u5165\u7EC4\u4EF6",gendroplist:"\u751F\u6210\u4E0B\u62C9\u9009\u62E9\u5668\u7EC4\u4EF6",gendropdownmenu:"\u751F\u6210\u4E0B\u62C9\u83DC\u5355\u7EC4\u4EF6",genradiobox:"\u751F\u6210\u5355\u9009\u7EC4\u4EF6",gencheckbox:"\u751F\u6210\u590D\u9009\u7EC4\u4EF6",gencomponent:"\u751F\u6210\u81EA\u5B9A\u4E49\u7EC4\u4EF6",genmodelpage:"\u751F\u6210\u6307\u5B9A\u673A\u578B\u9875\u9762",gencustompage:"\u751F\u6210\u81EA\u5B9A\u4E49\u9875\u9762",genprd:"\u751F\u6210\u4EA7\u54C1\u6587\u6863",textfill:"\u667A\u80FD\u6587\u672C\u586B\u5145",editimage:"\u667A\u80FD\u56FE\u7247\u586B\u5145",edittext:"\u7F16\u8F91\u6587\u672C",texttranslate:"\u7F16\u8F91\u6587\u672C",textpolish:"\u7F16\u8F91\u6587\u672C",textstyle:"\u7F16\u8F91\u6587\u672C",textexpand:"\u7F16\u8F91\u6587\u672C",textshort:"\u7F16\u8F91\u6587\u672C",editstyle:"\u7F16\u8F91\u6837\u5F0F",genproto:"\u751F\u6210\u539F\u578B\u9875\u9762",genflow:"\u751F\u6210\u6D41\u7A0B\u56FE",genmind:"\u751F\u6210\u601D\u7EF4\u5BFC\u56FE",gentable:"\u751F\u6210\u8868\u683C",genchart:"\u751F\u6210\u56FE\u8868"};var tL=s(41589),L1=s.n(tL),nL=s(50960),Mg=s.n(nL),Zre=s(4820);const Kre=e=>{try{const[t,n,a,i]=e.split(","),c=parseInt(t.split("(")[1]),d=parseInt(n),p=parseInt(a),h=Number(i.split(")")[0])*100;return fromRGBAo({R:c,G:d,B:p,A:h})}catch(t){return console.log("bad rgbaCSS color",e),4126537215}},Si=e=>{const t=e.split("#")[1];return e.split("#")[1].length===3?+("0x"+t+t+"ff"):t.length===8?+("0x"+t):+("0x"+t+"ff")},Yre=e=>{const t=e!=null?e:0;return{pT:t,pR:t,pB:t,pL:t}},Xre=e=>({textV0:{...DEFAULT_TEXT_V0,...e}}),Zd=e=>{try{const{x:t,y:n}=e;return{x:Number(t),y:Number(n)}}catch(t){return null}},l0=e=>{try{const{w:t,h:n}=e;return{w:Number(t),h:Number(n)}}catch(t){return null}},oL=e=>{try{const{ul:t,ur:n,dl:a,dr:i}=e;return{ul:Number(t),ur:Number(n),dl:Number(a),dr:Number(i)}}catch(t){return null}},aL=e=>{try{if(!e)return null;const{x:t,y:n,b:a,s:i}=e;return{x:Number(t),y:Number(n),b:Number(a),s:Number(i)}}catch(t){return null}},Y0=e=>!e||e==="none"?{italic:!1,bold:!1,underline:!1,strikethrough:!1}:{italic:e==="italy",bold:e==="bold",underline:e==="underline",strikethrough:e==="dash"},Ih=e=>{try{if(!e)return null;const t=oL(e);if(!t)return null;const{ul:n,ur:a,dl:i,dr:c}=t;return n===a&&a===i&&i===c?n:{radiusTL:n,radiusTR:a,radiusBL:i,radiusBR:c}}catch(t){return null}},a2=e=>{try{const t=aL(e);if(!t)return null;const{x:n,y:a,b:i,s:c}=t;return n===0&&a===0&&i===0&&c===0?null:{offsetX:n,offsetY:a,blurRadius:i,spreadRadius:c,shadowIsVisible:!0,shadowColor:102,type:"box_shadow"}}catch(t){return null}},r2=(e,t,n)=>{try{if(!t)return null;const a=fv(t);return{bdrColor:Si(e),bdrIsVisible:!0,bdrStyle:a,bdrWidth:Number(n)}}catch(a){return null}},fv=e=>{let t="solid";return e==="dash"?t="dashed":e==="dot"&&(t="dotted"),t},rL=[Zt.x.WRichText,Zt.x.WRect,Zt.x.WOval,Zt.x.WButton,Zt.x.WLine,Zt.x.WImage,Zt.x.WTable],iL=[Zt.x.WRichText,Zt.x.WLine],sL=[Zt.x.WImage,Zt.x.WLine],lL=[Zt.x.WLine,Zt.x.WTable,Zt.x.WRichText,Zt.x.WOval],cL=[Zt.x.WTable,Zt.x.WRichText],dL=(e,t)=>{let{selectedTrees:n,editingCid:a,updateEditingCid:i,getHotItem:c}=t;try{if(!e||Object.keys(e).length===0)return{status:Js.HandleExceptions};const{opacity:d,radius:p,"fill-color":h,"stroke-color":m,"stroke-style":x,"stroke-weight":v,"font-size":A,"font-color":k,"text-align":R,"font-format":F}=e,G=(0,Uc.n3)(n).filter(ce=>rL.includes(ce.type));if(!G||G.length===0)return{status:Js.NotFindEditObject};a&&G.map(ce=>ce.key).includes(a)&&i({item:{cid:""}});const ee=[];return G.forEach(ce=>{const{type:se}=ce,he=c(ce.key);if(!he)return;const ve=L1()(he),{hotAttr:Te}=ve;d&&(Te.opacity=d),!lL.includes(se)&&p&&(Te.borderRadius=Ih(p)),!cL.includes(se)&&h&&(Te.fill.solidColor=Si(h)),iL.includes(se)||pL(Te,m,x,v,se),!sL.includes(se)&&(A||k||R||F)&&(se===Zt.x.WTable?hL(Te,A,k,R,F):se===Zt.x.WButton?mL(Te,A,k,R,F):uL(Te,A,k,R,F)),ee.push(ve)}),{status:Js.Success,hotItems:ee}}catch(d){return console.error("genEditStyle error:",d),{status:Js.HandleExceptions}}},pL=(e,t,n,a,i)=>{!t&&!n&&!a||(i===Zt.x.WTable?(t&&(e.tableConfig.outerBorder.bdrColor=Si(t),e.tableConfig.innerBorderH.bdrColor=Si(t),e.tableConfig.innerBorderV.bdrColor=Si(t)),a&&(e.tableConfig.outerBorder.bdrWidth=Number(a),e.tableConfig.innerBorderH.bdrWidth=Number(a),e.tableConfig.innerBorderV.bdrWidth=Number(a))):((t||n||a)&&(e.border||(e.border={bdrColor:3149642751,bdrIsVisible:!0,bdrStyle:"solid",bdrWidth:1})),t&&(e.border.bdrColor=Si(t)),a&&(e.border.bdrWidth=Number(a)),n&&(e.border.bdrStyle=fv(n))))},uL=(e,t,n,a,i)=>{if(!t&&!n&&!a&&!i)return;const{textV1:{blocks:c}}=e;if(t){const x=Mg()(t*1.399+.251);e.richTextV1.fontSize=t,e.richTextV1.lineHeight=x}n&&(e.richTextV1.textColor=n),a&&(e.richTextV1.horizontalAlign=a);let d=!1,p=!1,h=!1,m=!1;if(i&&i!=="none"){const{italic:x,bold:v,underline:A,strikethrough:k}=Y0(i);d=x,h=A,p=v,m=k,x&&(e.richTextV1.italic=x),v&&(e.richTextV1.bold=v),A&&(e.richTextV1.underline=A),k&&(e.richTextV1.strikethrough=k)}c&&(Object.values(c).forEach(x=>{const{type:v}=x;let A=x.inlineStyleRanges;v!=="atomic"&&A&&(n&&(A=A.filter(k=>!k.style.startsWith("color-"))),t&&(A=A.filter(k=>!k.style.startsWith("fontsize-")&&!k.style.startsWith("lineheight-"))),d&&(A=A.filter(k=>k.style!=="ITALIC")),h&&(A=A.filter(k=>k.style!=="UNDERLINE")),p&&(A=A.filter(k=>k.style!=="BOLD")),m&&(A=A.filter(k=>k.style!=="STRIKETHROUGH"))),x.inlineStyleRanges=A}),e.textV1.blocks=JSON.parse(JSON.stringify(c)))},hL=(e,t,n,a,i)=>{let c=!1,d=!1,p=!1,h=!1;if(i&&i!=="none"){const{italic:v,bold:A,underline:k,strikethrough:R}=Y0(i);c=v,p=k,d=A,h=R}const{tableData:{cellStyles:m}}=e;if(n&&(e.textV0.textColor=Si(n)),t){const v=Mg()(t*1.399+.251);e.textV0.fontSize=t,e.textV0.lineHeight=v}a&&(e.textV0.horizontalAlign=a);const x=[];m.forEach(v=>{const A=[];v.forEach(k=>{let R=[];k&&(R=k.split(";"),t&&(R=R.filter(F=>!F.startsWith("font-size"))),n&&(R=R.filter(F=>!F.startsWith("color:"))),a&&(R=R.filter(F=>!F.startsWith("text-align")),R.push("text-align: "+a)),c&&(R=R.filter(F=>!F.startsWith("font-style")),R.push("font-style: italic")),d&&(R=R.filter(F=>!F.startsWith("font-weight")),R.push("font-weight: bold")),p&&(R=R.filter(F=>!F.startsWith("text-decoration")),R.push("text-decoration: underline")),h&&(R=R.filter(F=>!F.startsWith("text-decoration")),R.push("text-decoration: line-through"))),A.push(R.join(";"))}),x.push(A)}),e.tableData.cellStyles=x},mL=(e,t,n,a,i)=>{if(!(!t&&!n&&!a&&!i)){if(t){const c=Mg()(t*1.399+.251);e.textV0.fontSize=t,e.textV0.lineHeight=c}if(n&&(e.textV0.textColor=Si(n)),a&&(e.textV0.horizontalAlign=a),i&&i!=="none"){const{italic:c,bold:d,underline:p,strikethrough:h}=Y0(i);d&&(e.textV0.bold=d),c&&(e.textV0.italic=c),p&&(e.textV0.textDecoration="underline"),h&&(e.textV0.textDecoration="line-through")}}},_5=e=>{let t=I18N.ChatGPT.ai_semantic_func_error,n=I5.warning,a="chatGPT/ai-semantic-result-waring";switch(e){case Js.Success:t=I18N.ChatGPT.ai_semantic_func_success,n=I5.success,a="chatGPT/ai-semantic-result-success";break;case Js.TextOverLimit:t=I18N.ChatGPT.ai_semantic_func_error_601;break;case Js.NotSupportMultiple:t=I18N.ChatGPT.ai_semantic_func_error_602;break;case Js.AnotherConversation:t=I18N.ChatGPT.ai_semantic_func_error_405;break;case Js.ContentViolation:t=I18N.ChatGPT.ai_semantic_func_error_451;break;case Js.PointsInsufficient:t=I18N.ChatGPT.ai_semantic_func_error_403;break;case Js.NotFindEditObject:t=I18N.ChatGPT.ai_semantic_func_error_603;break;case Js.ResultViolation:t="\u4E3A\u786E\u4FDD\u8F93\u51FA\u5185\u5BB9\u5408\u89C4\uFF0C\u8BF7\u8C03\u6574\u6307\u4EE4\u5E76\u91CD\u8BD5\u3002";break;case Js.NotSupportCanvas:t="\u6682\u4E0D\u652F\u6301\u5728\u52A8\u6001\u7EC4\u4EF6\uFF08\u6BCD\u7248/\u6211\u7684\u3001\u4F01\u4E1A\u7EC4\u4EF6\uFF09\u5185\u751F\u6210\u9875\u9762\u3002";break;default:break}return{notice:t,noticeStatus:n,svgName:a}},Kd=(e,t)=>{const{w:n,h:a}=e,{x:i,y:c}=t,d=Number(i)+Number(n)/2,p=Number(c)+Number(a)/2;return{x:d,y:p}},gv=[Zt.x.WRichText,Zt.x.WSticky,Zt.x.WTear],Qre=e=>{const t=flatGroup(e),n=[],a=t.filter(p=>gv.includes(p.type));a&&a.length===1&&a.length===t.length&&n.push(AISemanticRecommendScenes.editText);const i=t.filter(p=>[WidgetType.WImage,WidgetType.WCarousel].includes(p.type));i&&i.length>0&&i.length===t.length&&n.push(AISemanticRecommendScenes.imageEdit);const c=t.filter(p=>canWidgetFillText(p));c&&c.length>0&&c.length===t.length&&n.push(AISemanticRecommendScenes.textFill);const d=t.filter(p=>EditStyleWidget.includes(p.type));return d&&d.length>0&&n.push(AISemanticRecommendScenes.editStyle),n!=null&&n.length?n:[AISemanticRecommendScenes.default]},fL=()=>({[AISemanticRecommendScenes.editText]:[I18N.ChatGPT.ai_semantic_editText_label_1,I18N.ChatGPT.ai_semantic_editText_label_2,I18N.ChatGPT.ai_semantic_editText_label_3,I18N.ChatGPT.ai_semantic_editText_label_4],[AISemanticRecommendScenes.imageEdit]:[I18N.ChatGPT.ai_semantic_editImage_label_1,I18N.ChatGPT.ai_semantic_editImage_label_2,I18N.ChatGPT.ai_semantic_editImage_label_3,I18N.ChatGPT.ai_semantic_editImage_label_4],[AISemanticRecommendScenes.textFill]:[I18N.ChatGPT.ai_semantic_textFill_label_1,I18N.ChatGPT.ai_semantic_textFill_label_2,I18N.ChatGPT.ai_semantic_textFill_label_3,I18N.ChatGPT.ai_semantic_textFill_label_4],[AISemanticRecommendScenes.editStyle]:[I18N.ChatGPT.ai_semantic_editStyle_label_1,I18N.ChatGPT.ai_semantic_editStyle_label_2,I18N.ChatGPT.ai_semantic_editStyle_label_3,I18N.ChatGPT.ai_semantic_editStyle_label_4],[AISemanticRecommendScenes.default]:[I18N.ChatGPT.ai_semantic_common_label_1,I18N.ChatGPT.ai_semantic_common_label_2,I18N.ChatGPT.ai_semantic_common_label_3,I18N.ChatGPT.ai_semantic_common_label_4,I18N.ChatGPT.ai_semantic_common_label_5,I18N.ChatGPT.ai_semantic_common_label_6,I18N.ChatGPT.ai_semantic_common_label_7,I18N.ChatGPT.ai_semantic_common_label_8,I18N.ChatGPT.ai_semantic_common_label_9,I18N.ChatGPT.ai_semantic_common_label_10,I18N.ChatGPT.ai_semantic_common_label_11]}),Jre=(e,t)=>{const n=fL();return e.reduce((a,i)=>{const c=n[i]||[];if(i===AISemanticRecommendScenes.default)for(let d=c.length-1;d>0;d--){const p=Math.floor(Math.random()*(d+1));[c[d],c[p]]=[c[p],c[d]]}return[...a,...c]},[]).filter(a=>a!==t)},Xr=e=>{let{prefix:t="",hotAttr:n,sup:a,sub:i=[]}=e;return{key:(0,Ja.cF)(t),hotAttr:n,sup:a,sub:i}},gL=(e,t)=>{let n=0;const a=[],i=/\s+/g,d=[...e.matchAll(i)].map(h=>({start:h.index,length:h[0].length,noSpaceStart:0}));for(let h=0;h<d.length;h++){const m=d[h],x=d.slice(0,h).reduce((v,A)=>v+A.length,0);m.noSpaceStart=(m.start||0)-x}if(Object.entries(t).sort((h,m)=>{var x,v;let A=0,k=0;if((x=h[1])!=null&&x.offset&&(v=m[1])!=null&&v.offset){var R,F;A=(R=h[1])==null?void 0:R.offset[0],k=(F=m[1])==null?void 0:F.offset[0]}return A-k}).forEach(h=>{let[m,{value:x,offset:v}]=h;const A=v[0],k=d.filter(G=>G.noSpaceStart<=A).reduce((G,ee)=>G+ee.length,0);v[0]=v[0]+k,v[1]=v[1]+k;const[R,F]=v;if(R>n){const G=e.substring(n,R);a.push({content:G})}const Z=e.substring(R,F);a.push({key:m,value:x,content:Z}),n=F}),n<e.length){const h=e.substring(n);a.push({content:h})}return a},yL=e=>{if(!e)return e;const t={count:99,"custom-size-height":9999,"custom-size-width":9999,"font-size":999,height:9999,interval:9999,nodes:20,opacity:100,"page-x":99999,"page-y":99999,"process-position":100,radius:999,range:9999,redo_steps:9,row:99,sides:20,"stroke-weight":9,thickness:20,undo_steps:9,width:9999};return Object.entries(e).forEach(n=>{let[a,i]=n;t[a]&&Number(i)>t[a]&&(e[a]=t[a])}),e},xL=e=>{switch(e){case"bar":return Zt.x.WBarChart;case"hbar":return Zt.x.WHorizontalBarChart;case"line":return Zt.x.WLineChart;case"linea":return Zt.x.WLineAreaChart;case"pie":return Zt.x.WPieChart;case"ring":return Zt.x.WRingChart;case"process":return Zt.x.WProgressChart;case"radar":return Zt.x.WRadarChart;case"mbl":return Zt.x.WMixedBarLineChart}},yv=(e,t)=>{const{chartType:n,xAxisData:a,yAxisData:i,theme:c}=e,{pageKey:d}=t,p=xL(n),h=Ds[p]("chart"),m={xAxis:[],yAxis:[],series:[],textStyle:{fontSize:14,color:4294967295}};if(["pie","ring"].includes(n)){m.xAxis=[a[0].name];const A=[];for(let k=0;k<a[0].data.length;k++){const R=a[0].data[k],F=i[0].data[k];A.push({name:R,data:[F]})}m.series=A}else m.xAxis=a[0].data,m.series=i;h.chartData=m,h.chartConfig.chartTheme=c,[Zt.x.WPieChart,Zt.x.WRingChart].includes(p)?h.chartConfig.showHelpMark=!0:h.chartConfig.legend.isVisible=!0;const x=(0,M0.$b)(h,!0);return[Xr({sup:d,hotAttr:x})]},Am=e=>typeof e=="string"?e:"",vL=e=>{if(typeof e=="string")return e;const t=(e==null?void 0:e.data)||(e==null?void 0:e.value)||"";return typeof t=="string"?t:""},T5=e=>{const t=i=>({text:vL(i),type:"unstyled",depth:0,inlineStyleRanges:[],entityRanges:[],data:{}}),n={};let a=parseInt("blocks",32);for(let i=0;i<e.length;i++){a=a+1;let c=a.toString(32).padStart(6,"0");c="#"+c,n[c]=t(e[i])}return n},km=e=>T5([e!=null?e:""]),P5=(e,t)=>{const n=Ds.wRect("");if(t){const{isHCenter:a,isVCenter:i,w:c,h:d,textColor:p,fontSize:h=14,horizontalAlign:m,verticalAlign:x,bold:v,italic:A,underline:k,strikethrough:R,hexFill:F,zIndex:Z,border:G,borderRadius:ee,opacity:ce,shadow:se,fontFamily:he}=t;a&&(n.richTextV1.horizontalAlign="center"),i&&(n.richTextV1.verticalAlign="center"),c&&(n.w=c),d&&(n.h=d),p&&(n.richTextV1.textColor=p),h&&(n.richTextV1.fontSize=h),m&&(n.richTextV1.horizontalAlign=m),x&&(n.richTextV1.verticalAlign=x),v&&(n.richTextV1.bold=v),A&&(n.richTextV1.italic=A),k&&(n.richTextV1.underline=k),R&&(n.richTextV1.strikethrough=R),F&&(n.fill={fillIsVisible:!0,fill:"solid",solidColor:Si(F)}),Z&&(n.zIndex=Z),G&&(n.border=G),ee&&(n.borderRadius=ee),se&&(n.shadow=se),ce&&(n.opacity=ce),he&&(n.richTextV1.fontFamily=he)}return n.textV1.blocks=km(e!=null?e:""),n.border.bdrIsVisible=!1,n.richTextV1.sizeType=1,n},xv=function(e,t){t===void 0&&(t="wMTextInput");const n=Ds[t]("");if(e){const{isVCenter:a,w:i,h:c,textColor:d,fontSize:p=14,horizontalAlign:h,bold:m,italic:x,border:v,borderRadius:A,opacity:k,shadow:R,placeholder:F,hexFill:Z}=e;i&&(n.w=i),c&&(n.h=c),R&&(n.shadow=R),v&&(n.border=v),n.opacity=k,A&&(n.borderRadius=A),n.textInput.prefillTextColorV0=d?Si(d):2290649343,n.textV0.text=F||"",a&&(n.textV0.verticalAlign="center"),n.textV0.horizontalAlign=h,n.textV0.fontSize=p,m&&(n.textV0.bold=m),x&&(n.textV0.italic=x),Z&&(n.fill={fillIsVisible:!0,fill:"solid",solidColor:Si(Z)})}return n},Vl=(e,t)=>{const n=Ds.wRichText("");if(t){const{isHCenter:a,isVCenter:i,w:c,h:d,textColor:p,fontSize:h=14,horizontalAlign:m,verticalAlign:x,bold:v,lineHeight:A,paraSpacing:k,fontFamily:R,italic:F,underline:Z,strikethrough:G,zIndex:ee}=t;a&&(n.richTextV1.horizontalAlign="center"),i&&(n.richTextV1.verticalAlign="center"),c&&(n.w=c),d&&(n.h=d),p&&(n.richTextV1.textColor=p),h&&(n.richTextV1.fontSize=h),m&&(n.richTextV1.horizontalAlign=m),x&&(n.richTextV1.verticalAlign=x),v&&(n.richTextV1.bold=v),A&&(n.richTextV1.lineHeight=A),k&&(n.richTextV1.paraSpacing=k),R&&(n.richTextV1.fontFamily=R),F&&(n.richTextV1.italic=F),Z&&(n.richTextV1.underline=Z),G&&(n.richTextV1.strikethrough=G),ee&&(n.zIndex=ee),A&&(n.richTextV1.lineHeight=A)}return n.textV1.blocks=km(e!=null?e:""),n.richTextV1.sizeType=1,n},bL=e=>{let t;switch(e){case"process":t=Ds[Zt.x.WFlowProcess](e);break;case"start":case"end":t=Ds[Zt.x.WFlowStartEnd](e);break;case"decision":t=Ds[Zt.x.WFlowDecision](e);break;case"doc":t=Ds[Zt.x.WFlowDoc](e);break;case"data":t=Ds[Zt.x.WFlowData](e);break;default:t=Ds[Zt.x.WFlowProcess](e);break}return t},vv=e=>e==="r"?"right":e==="l"?"left":e==="t"?"top":"bottom",wL=(e,t)=>{const{x:n,y:a}=e.hotAttr,{x:i,y:c}=t.hotAttr;return n<i?a<c?{fd:"b",td:"l",arrowStyle:"solid"}:{fd:"r",td:"l",arrowStyle:"solid"}:n===i?a<c?{fd:"b",td:"t",arrowStyle:"solid"}:{fd:"r",td:"t",arrowStyle:"dashed"}:a<c?{fd:"b",td:"t",arrowStyle:"dashed"}:{fd:"r",td:"t",arrowStyle:"dashed"}},bv=(e,t)=>{const{nodes:n,edges:a}=e,{pageKey:i}=t,c=n.map(se=>{if(Array.isArray(se))return se;const{id:he,type:ve,text:Te,isPoint:xe}=se;return[he,ve,Te,xe]}),d=a.map(se=>{if(Array.isArray(se))return se;const{idFrom:he,idTo:ve,text:Te}=se;return[he,ve,Te]}),p=new Map,h=new Map,m=new Map,x=new Set,v=new Map;c.forEach(se=>{const he=bL(se[1]);se[2]&&(he.textV1.blocks=T5([se[2]])),se[3]&&(he.fill.solidColor=2480075775);const ve=Xr({sup:i,hotAttr:he});p.set(se[0],ve),m.set(ve.key,!1)});for(const[se]of d){const he=[];for(const[ve,Te]of d)se===ve&&he.push(Te);h.set(se,he)}let A=0,k=0;const R=200,F=150;for(const[se,he]of[...h]){var Z;const ve=(Z=p.get(se))==null?void 0:Z.key;if(k=0,ve&&!m.get(ve)){A=0;const Te=p.get(se);A=L5(x,A,k,"x").nextX,Te&&(Te.hotAttr.x=A*R,Te.hotAttr.y=k*F),x.add(A+","+k),v.set(se,A+","+k),A+=1,m.set(ve,!0)}else{var G;const Te=(G=v.get(se))==null?void 0:G.split(",");Te&&(A=parseInt(Te[0])+1,k=parseInt(Te[1]),A=L5(x,A,k,"x").nextX)}for(const Te of he){const xe=p.get(Te);xe!=null&&xe.key&&m.get(xe.key)||(k=L5(x,A,k,"y").nextY,xe&&(xe.hotAttr.x=A*R,xe.hotAttr.y=k*F),x.add(A+","+k),v.set(Te,A+","+k),xe!=null&&xe.key&&m.set(xe.key,!0),k+=1)}}const ee=[...p].map(se=>{let[,he]=se;return he}),ce=d.map((se,he)=>{const ve=Ds[Zt.x.WElbow]("elbow"+he),[Te,xe,Fe]=se;Fe&&(ve.textV0.text=Fe);const et=p.get(Te),Ke=p.get(xe);if(et&&Ke){ve.refFromKey=et==null?void 0:et.key,ve.refToKey=Ke==null?void 0:Ke.key;const{fd:Qe,td:nt,arrowStyle:Xe}=wL(et,Ke);ve.elbow.arrowStroke.bdrStyle=Xe,ve.elbow.fromDirection=vv(Qe),ve.elbow.toDirection=vv(nt)}return Xr({sup:i,hotAttr:ve})});return[...ee,...ce]},L5=(e,t,n,a)=>{let i=t,c=n;if(e.has(i+","+c))for(;e.has(i+","+c);)a==="x"?i+=1:c+=1;return a==="x"?{nextX:i}:{nextY:c}};var CL=s(99835),wv=s(64791);const SL="B@ref-mind",Cv=(e,t)=>{const n=[],{minds:a}=e,{pageKey:i}=t,c=a.map(Z=>{if(Array.isArray(Z))return Z;const{id:G=0,parentId:ee=null,text:ce="",placement:se="r"}=Z;return[G,ee,ce,se]}),d=(0,Za.gO)("",0,0,0,"",0,0,""),p=Xr({prefix:"rbp",hotAttr:d,sup:SL});n.push(p);const h=(0,M5.Nc)("rc"),m=Xr({prefix:"rc",hotAttr:h,sup:p.key});n.push(m);const x=(0,CL.A8)("mind",p.key,m.key);n.push(Xr({hotAttr:x,sup:i}));const v=c[0]?c[0][2]:"",A=(0,wv.yf)("",v,!0),k=Xr({hotAttr:A,sup:m.key}),R=new Map;n.push(k),R.set(1,k);for(let Z=1;Z<c.length;Z++){var F;const[G,ee,ce,se]=c[Z],he=(0,wv.yf)("",ce);he.zIndex+=Z;const ve=R.get(Number(ee));let Te=ve==null||(F=ve.hotAttr)==null?void 0:F.placement;ee===1&&(Te=AL[se]),he.placement=Te;const xe=Xr({hotAttr:he,sup:ve==null?void 0:ve.key});n.push(xe),R.set(Number(G),xe)}return n},AL={l:"left",r:"right"},Sv=(e,t)=>{const{table:n,"border-color":a,"horizontal-color":i,"vertical-color":c}=e,{pageKey:d}=t,p=n.length,h=n[0].length,m={columns:Array(h).fill({type:"text",width:80}),rows:Array(p).fill({height:30}),cellStyles:Array(p).fill(Array(h).fill("")),mergeCells:{},data:void 0,links:Array(p).fill(Array(h).fill(""))},x=h*80,v=p*30,A=[];for(const R of n){const F=[];for(const Z of R)F.push(String(Z));A.push(F)}m.data=A;const k=Ds[Zt.x.WTable]("table");return k.w=x,k.h=v,k.tableData=m,a&&(k.tableConfig.outerBorder.bdrColor=Si(a)),i&&(k.tableConfig.innerBorderH.bdrColor=Si(i)),c&&(k.tableConfig.innerBorderV.bdrColor=Si(c)),k.tableConfig={...k.tableConfig,...(0,kg.U3)({height:v,width:x,columns:m.columns,rows:m.rows}),rowCount:p,colCount:h},k["!version"]=1,[Xr({sup:d,hotAttr:k})]},kL=(e,t)=>{switch(e.type){case"flow":return bv(e,t);case"mind":return Cv(e,t);case"chart":return yv(e,t);case"table":return Sv(e,t);default:return[]}},ML=e=>{try{if(Object.keys(e).indexOf("rectangles")>=0)return EL(e);{const t=Av(e);return t?[t]:[]}}catch(t){return console.error("genRectangle:",t),[]}},EL=e=>{try{if(!e||Object.keys(e).length===0)return[];const{rectangles:t}=e,n=[];return t.forEach(a=>{const i=Av(a);i&&n.push(i)}),n}catch(t){return[]}},Av=e=>{try{if(!e||Object.keys(e).length===0)return null;const{opacity:t,"fill-color":n,"stroke-color":a,"stroke-weight":i,"stroke-style":c,"text-content":d,"font-format":p,"font-color":h,"font-size":m,"text-align":x,"font-family":v,zIndex:A,shadows:k,position:R,size:F,radius:Z}=e,{x:G,y:ee}=Zd(R)||{},ce=l0(F);if(!ce)return null;const{w:se,h:he}=ce,ve={isHCenter:!0,isVCenter:!0,w:se,h:he,hexFill:n,textColor:h,fontSize:Number(m),opacity:Number(t),horizontalAlign:x,shadow:a2(k),borderRadius:Ih(Z),border:r2(a,c,i),...Y0(p),zIndex:A,fontFamily:v},Te=P5(d,ve),{x:xe,y:Fe}=Kd({w:se,h:he},{x:G,y:ee});return Te.x=xe,Te.y=Fe,Te.border.bdrIsVisible=!0,Te}catch(t){return null}},lu=e=>{const{w:t,h:n,image:a,border:i,borderRadius:c,opacity:d=1,originalWidth:p,originalHeight:h,imageRectCenterX:m,imageRectCenterY:x,imageRectWidth:v,imageRectHeight:A}=e,k=Ds.wImage("");return k.borderRadius=14,k.w=t,k.h=n,k.opacity=d,k.ext={url:kv({url:a,w:t,h:n}),name:""},k.image.imageRectCenterX=m||t/2,k.image.imageRectCenterY=x||t/2,k.image.imageRectWidth=v||t,k.image.imageRectHeight=A||t,k.image.imageRectOriginalWidth=p||400,k.image.imageRectOriginalHeight=h||400,i&&(k.border={...k.border,...i}),c&&(k.borderRadius=c),k},kv=e=>{let{url:t,w:n,h:a}=e;return t.replace(/(w=)\d+/,"$1"+n).replace(/(h=)\d+/,"$1"+a)},IL=e=>{let{w:t,h:n,imageRectOriginalWidth:a,imageRectOriginalHeight:i}=e;const c=t/n,d=a/i;let p,h,m,x;return c>d?(p=t,h=p/d,m=p/2,x=n/2):(h=n,p=n*d,x=h/2,m=t/2),{imageRectWidth:p,imageRectHeight:h,imageRectCenterX:m,imageRectCenterY:x}},_L=e=>{try{if(Object.keys(e).indexOf("images")>=0)return TL(e);{const t=Mv(e);return t?[t]:[]}}catch(t){return console.error("genRectangle:",t),[]}},TL=e=>{try{if(!e||Object.keys(e).length===0)return[];const{images:t}=e,n=[];return t.forEach(a=>{const i=Mv(a);i&&n.push(i)}),n}catch(t){return[]}},Mv=e=>{try{if(!e||Object.keys(e).length===0)return null;const{opacity:t,"stroke-color":n,"stroke-weight":a,"stroke-style":i,position:c,size:d,radius:p,url:h,originalSize:m}=e,{width:x,height:v}=m||{width:400,height:400},A=Number(x),k=Number(v),R=l0(d);let{w:F,h:Z}=R||{};(!R||!F||!Z)&&(F=200,Z=Math.floor(F/(A/k)));const G=Zd(c),{x:ee,y:ce}=G||{},se=IL({w:F,h:Z,imageRectOriginalWidth:A,imageRectOriginalHeight:k}),he=se.imageRectCenterX,ve=se.imageRectCenterY,Te=se.imageRectWidth,xe=se.imageRectHeight,Fe={w:Number(F),h:Number(Z),imageRectWidth:Te,imageRectHeight:xe,imageRectCenterX:he,imageRectCenterY:ve,originalWidth:A,originalHeight:k,opacity:Number(t),image:h,borderRadius:Ih(p),border:r2(n,i,a)},et=lu(Fe),{x:Ke,y:Qe}=Kd({w:F,h:Z},{x:ee,y:ce});return et.x=Ke,et.y=Qe,et}catch(t){return console.error("genImage error:",t),null}},PL=e=>{try{if(Object.keys(e).indexOf("texts")>=0)return LL(e);{const t=Ev(e);return t?[t]:[]}}catch(t){return console.error("genRectangle:",t),[]}},LL=e=>{try{if(!e||Object.keys(e).length===0)return[];const{texts:t}=e,n=[];return t.forEach(a=>{const i=Ev(a);i&&n.push(i)}),n}catch(t){return[]}},Ev=e=>{try{if(!e||Object.keys(e).length===0)return null;const{"text-content":t,"font-format":n,"font-color":a,"font-size":i,"font-family":c,"text-align":d,"line-height":p,position:h,size:m,zIndex:x}=e||{},v=Zd(h),A=l0(m),k={textColor:a,fontSize:Number(i),fontFamily:c,horizontalAlign:d,...Y0(n),verticalAlign:"center",lineHeight:p,zIndex:x},R=Vl(t,k);if(R.richTextV1.sizeType=2,A){const{w:F,h:Z}=A;R.w=F,R.h=Z}if(v&&A){const{x:F,y:Z}=Kd(A,v);R.x=F,R.y=Z}return R}catch(t){return null}},NL=e=>{try{if(Object.keys(e).indexOf("ovals")>=0)return jL(e);{const t=Iv(e);return t?[t]:[]}}catch(t){return console.error("genRectangle:",t),[]}},jL=e=>{try{if(!e||Object.keys(e).length===0)return[];const{ovals:t}=e,n=[];return t.forEach(a=>{const i=Iv(a);i&&n.push(i)}),n}catch(t){return[]}},Iv=e=>{try{if(!e||Object.keys(e).length===0)return null;const{opacity:t,"fill-color":n,"stroke-color":a,"stroke-weight":i,"stroke-style":c,"text-content":d,"font-format":p,"font-color":h,"font-size":m,"text-align":x,"line-height":v,"font-family":A,shadows:k,position:R,size:F}=e,{x:Z,y:G}=Zd(R)||{},ee=l0(F);if(!ee)return null;const{w:ce,h:se}=ee,he={isHCenter:!0,isVCenter:!0,w:ce,h:se,hexFill:n,textColor:h,fontSize:Number(m),opacity:Number(t),horizontalAlign:x,shadow:a2(k),border:r2(a,c,i),lineHeight:v,fontFamily:A,...Y0(p)},ve=DL(d,he),{x:Te,y:xe}=Kd({w:ce,h:se},{x:Z,y:G});return ve.x=Te,ve.y=xe,ve.border.bdrIsVisible=!0,ve}catch(t){return console.error("genOval error:",t),null}},DL=(e,t)=>{const n=Ds.wOval("");if(t){const{w:a,h:i,textColor:c,fontSize:d=14,horizontalAlign:p,bold:h,hexFill:m,zIndex:x,border:v,opacity:A,shadow:k,lineHeight:R,fontFamily:F}=t;a&&(n.w=a),i&&(n.h=i),n.richTextV1.horizontalAlign="center",n.richTextV1.verticalAlign="center",c&&(n.richTextV1.textColor=c),d&&(n.richTextV1.fontSize=d),p&&(n.richTextV1.horizontalAlign=p),h&&(n.richTextV1.bold=h),m&&(n.fill={fillIsVisible:!0,fill:"solid",solidColor:Si(m)}),R&&(n.richTextV1.lineHeight=R),x&&(n.zIndex=x),v&&(n.border=v),k&&(n.shadow=k),A&&(n.opacity=A),F&&(n.richTextV1.fontFamily=F)}return n.textV1.blocks=km(e!=null?e:""),n.border.bdrIsVisible=!0,n.richTextV1.sizeType=1,n},N5=e=>{let{hexBdrColor:t}=e;const n=Ds.wLine("");return n.h=1,n.w=308,n.line={linePointFrom:{x:0,y:.5},linePointTo:{x:1,y:.5}},n.border.bdrColor=Si(t),n},RL=e=>{try{if(!e||Object.keys(e).length===0)return null;const{position:t,size:n,opacity:a,shadows:i,"stroke-color":c,"stroke-style":d,"stroke-weight":p,zIndex:h}=e,m=l0(n);if(!m||m.w===0)return null;const{w:x}=m,{x:v,y:A}=Zd(t)||{},k=N5({hexBdrColor:c});k.w=x,k.h=1;const{x:R,y:F}=Kd({w:x,h:1},{x:v,y:A});k.x=R,k.y=F;const Z=a2(i),G=r2(c,d,p);return Z&&(k.shadow=Z),G&&(k.border=G),h&&(k.zIndex=h),k.opacity=Number(a),k}catch(t){return console.error("genLine error:",t),null}},BL=e=>{try{if(Object.keys(e).indexOf("buttons")>=0)return UL(e);{const t=_v(e);return t?[t]:[]}}catch(t){return console.error("genRectangle:",t),[]}},UL=e=>{try{if(!e||Object.keys(e).length===0)return[];const{buttons:t}=e,n=[];return t.forEach(a=>{const i=_v(a);i&&n.push(i)}),n}catch(t){return[]}},_v=e=>{try{if(!e||Object.keys(e).length===0)return null;const{opacity:t,"fill-color":n,"stroke-color":a,"stroke-weight":i,"stroke-style":c,"text-content":d,"font-format":p,"font-color":h,"font-size":m,"text-align":x,shadows:v,position:A,size:k,radius:R,zIndex:F}=e,{x:Z,y:G}=Zd(A)||{},ee=l0(k);if(!ee)return null;const{w:ce,h:se}=ee,he={w:ce,h:se,hexFill:n,textColor:h,fontSize:Number(m),opacity:Number(t),horizontalAlign:x,shadow:a2(v),borderRadius:Ih(R),border:r2(a,c,i),zIndex:F,...Y0(p)},ve=OL(d,he),{x:Te,y:xe}=Kd(ee,{x:Z,y:G});return ve.x=Te,ve.y=xe,ve.border.bdrIsVisible=!0,ve}catch(t){return console.error("genButton error:",t),null}},OL=(e,t)=>{const n=Ds.wButton("");if(t){const{w:a,h:i,textColor:c,fontSize:d=14,horizontalAlign:p,bold:h,italic:m,strikethrough:x,underline:v,hexFill:A,border:k,borderRadius:R,opacity:F,shadow:Z,zIndex:G}=t;n.w=a,n.h=i,n.textV0.textColor=Si(c),n.textV0.fontSize=d,n.textV0.bold=h,n.textV0.italic=m,n.textV0.verticalAlign="center",n.textV0.text=e,v&&(n.textV0.textDecoration="underline"),x&&(n.textV0.textDecoration="line-through"),p&&(n.textV0.horizontalAlign=p),A&&(n.fill={fillIsVisible:!0,fill:"solid",solidColor:Si(A)}),k&&(n.border=k),R&&(n.borderRadius=R),Z&&(n.shadow=Z),F&&(n.opacity=F),G&&(n.zIndex=G)}return n},FL=e=>{const t=Ds.wIphoneXSB("");try{if(!e||Object.keys(e).length===0)return null;const{position:n,size:a,opacity:i,"fill-color":c,"font-color":d,zIndex:p}=e;t.opacity=Number(i);const{x:h,y:m}=Zd(n)||{},x=l0(a);if(!x)return null;c&&(t.fill={fillIsVisible:!0,fill:"solid",solidColor:Si(c)}),d&&(t.textV0.textColor=Si(d)),p&&(t.zIndex=p);const{w:v,h:A}=x;t.w=v,t.h=A;const{x:k,y:R}=Kd({w:v,h:A},{x:h,y:m});return t.x=k,t.y=R,t}catch(n){return console.error("genIphoneXSB error:",n),null}},VL=e=>{try{if(!e||Object.keys(e).length===0)return null;const{position:t,size:n,opacity:a,shadows:i,color:c,"stroke-style":d,"stroke-weight":p,zIndex:h}=e,m=l0(n);if(!m||m.w===0||m.h===0)return null;const{w:x}=m,{x:v,y:A}=Zd(t)||{};let k="solid";d==="dot"?k="dotted":d==="dash"&&(k="dashed");const R=zL({w:x,opacity:Number(a),shadow:a2(i),bdrColor:c,bdrWidth:Number(p),bdrStyle:k,zIndex:h});R.w=x,R.h=1;const{x:F,y:Z}=Kd({w:x,h:1},{x:v,y:A});return R.x=F,R.y=Z,R}catch(t){return null}},zL=e=>{let{w:t,opacity:n,shadow:a,bdrWidth:i,bdrColor:c,bdrStyle:d,zIndex:p}=e;const h=Ds.wArrow("");return h.h=1,h.w=t,h.opacity=n,p&&(h.zIndex=p),h.arrow={arrowPointFromType:4,arrowPointToType:1,arrowStroke:{bdrIsVisible:!0,bdrStyle:d,bdrWidth:i,bdrColor:c?Si(c):4182398719},arrowPointFrom:{x:0,y:.5},arrowPointTo:{x:1,y:.5}},a&&(h.shadow=a),h},WL=e=>{try{if(!e||Object.keys(e).length===0)return null;const{opacity:t,"fill-color":n,"stroke-color":a,"stroke-weight":i,"stroke-style":c,"font-format":d,"font-color":p,"font-size":h,"font-family":m,"text-align":x,shadows:v,position:A,size:k,radius:R,placeholder:F}=e,{x:Z,y:G}=Zd(A)||{},ee=l0(k);if(!ee)return null;const{w:ce,h:se}=ee,he={isVCenter:!0,w:ce,h:se,hexFill:n,textColor:p,fontSize:Number(h),fontFamily:m,opacity:Number(t),horizontalAlign:x,shadow:a2(v),borderRadius:Ih(R),border:r2(a,c,i),...Y0(d),placeholder:F||"\u8BF7\u8F93\u5165"},ve=xv(he),{x:Te,y:xe}=Kd({w:ce,h:se},{x:Z,y:G});return ve.x=Te,ve.y=xe,ve}catch(t){return null}},HL=e=>{try{if(!e||Object.keys(e).length===0)return null;const{opacity:t,"fill-color":n,"stroke-color":a,"stroke-weight":i,"stroke-style":c,"font-format":d,"font-color":p,"font-size":h,"font-family":m,"text-align":x,shadows:v,position:A,size:k,radius:R,placeholder:F}=e,{x:Z,y:G}=Zd(A)||{},ee=l0(k);if(!ee)return null;const{w:ce,h:se}=ee,he={w:ce,h:se,hexFill:n,textColor:p,fontSize:Number(h),fontFamily:m,opacity:Number(t),horizontalAlign:x,shadow:a2(v),borderRadius:Ih(R),border:r2(a,c,i),...Y0(d),placeholder:F},ve=xv(he,"wMTextarea"),{x:Te,y:xe}=Kd({w:ce,h:se},{x:Z,y:G});return ve.x=Te,ve.y=xe,ve}catch(t){return console.log("### err:",t),null}},GL=e=>{try{if(!e||Object.keys(e).length===0)return null;const{position:t,size:n,opacity:a,shadows:i,"fill-color":c,"stroke-color":d,"stroke-weight":p,"stroke-style":h,"font-size":m,"font-color":x,items:v}=e,A=l0(n);if(!A)return null;const{x:k,y:R}=Zd(t)||{},{w:F,h:Z}=A;let G="1\n2\n3";v&&v.length>0&&(G=v.join("\n"));const ee={w:F,h:Z,hexFill:c,textColor:x,fontSize:Number(m),opacity:Number(a),shadow:a2(i),border:r2(d,h,p),text:G},ce=ZL(ee),{x:se,y:he}=Kd(A,{x:k,y:R});return ce.x=se,ce.y=he,ce}catch(t){return null}},ZL=e=>{const t=Ds.wMSelect("");if(e){const{w:n,h:a,textColor:i,fontSize:c=14,border:d,opacity:p,shadow:h,text:m,hexFill:x,zIndex:v}=e;t.w=n,t.h=a,h&&(t.shadow=h),d&&(t.border=d),t.opacity=p,t.textV0.textColor=i?Si(i):269488383,t.textV0.text=m,t.textV0.fontSize=c,t.textV0.padding=8,t.textV0.lineHeight=c+4<20?20:c+4,v&&(t.zIndex=v),x&&(t.fill={fillIsVisible:!0,fill:"solid",solidColor:Si(x)})}return t},KL=e=>{try{if(!e||Object.keys(e).length===0)return null;const{position:t,size:n,opacity:a,shadows:i,radius:c,"fill-color":d,"stroke-color":p,"stroke-weight":h,"stroke-style":m,"font-color":x,"font-size":v,"text-align":A,"font-format":k,placeholder:R,items:F,zIndex:Z}=e,G=l0(n);if(!G)return null;const{x:ee,y:ce}=Zd(t)||{},{w:se,h:he}=G;let ve=F;(!F||F.length===0)&&(ve=["\u9009\u98791","\u9009\u98792","\u9009\u98793"]);const Te={w:se,h:he,hexFill:d,textColor:x,horizontalAlign:A,opacity:Number(a),borderRadius:Ih(c),shadow:a2(i),border:r2(p,m,h),fontSize:Number(v),...Y0(k),placeholder:R,optionData:ve,zIndex:Z},xe=YL(Te),{x:Fe,y:et}=Kd(G,{x:ee,y:ce});return xe.x=Fe,xe.y=et,xe}catch(t){return console.error("genDropdown error:",t),null}},YL=e=>{const t=Ds.wDropMenu("");if(e){const{w:n,h:a,textColor:i,fontSize:c=14,border:d,opacity:p,shadow:h,hexFill:m,horizontalAlign:x,borderRadius:v,bold:A,italic:k,underline:R,strikethrough:F,optionData:Z,placeholder:G,zIndex:ee}=e;t.w=n,t.h=a,h&&(t.shadow=h),d&&(t.border=d),t.opacity=p,t.textV0.textColor=i?Si(i):269488383,t.textV0.text=G||"\u4E0B\u62C9\u83DC\u5355",t.textV0.fontSize=c,t.textV0.padding=8,t.textV0.lineHeight=c+4<20?20:c+4,x&&(t.textV0.horizontalAlign=x),t.textV0.verticalAlign="center",A&&(t.textV0.bold=A),k&&(t.textV0.italic=k),R&&(t.textV0.textDecoration="underline"),F&&(t.textV0.textDecoration="line-through"),v&&(t.borderRadius=v),m&&(t.fill={fillIsVisible:!0,fill:"solid",solidColor:Si(m)}),ee&&(t.zIndex=ee),t.optionData=Z.map(ce=>({data:{name:ce,linkCids:"",expanded:!1,selected:!1,designExpanded:!1},children:[]}))}return t},XL=(e,t)=>{try{if(!e||Object.keys(e).length===0)return null;const{position:n,size:a,opacity:i,"font-size":c,"button-color":d,"button-text-color":p,"button-selected-color":h,"button-selected-text-color":m,options:x,zIndex:v}=e,A=l0(a);if(!A)return null;const{x:k,y:R}=Zd(n)||{},{w:F,h:Z}=A;let G=x;(!x||x.length<0)&&(G=["\u9009\u98791","\u9009\u98792","\u9009\u98793","\u9009\u98794"]);const ee={w:F,h:Z,fontSize:Number(c),opacity:Number(i),btnColor:d,btnTextColor:p,btnSelColor:h,btnTextSelColor:m,optionData:G,zIndex:v},ce=QL(ee,t),{x:se,y:he}=Kd({w:F,h:Z},{x:k,y:R});return ce.x=se,ce.y=he,ce}catch(n){return console.error("genSelectionControl error:",n),null}},QL=(e,t)=>{let n=Ds.wSelectionControlRadio("wSelectionControl");t&&(n=Ds.wSelectionControlCheckbox("wSelectionControl"));const{w:a,h:i,fontSize:c=14,opacity:d,btnColor:p,btnSelColor:h,btnTextSelColor:m,btnTextColor:x,optionData:v,zIndex:A}=e;n.w=a,n.h=i,n.opacity=d,A&&(n.zIndex=A);const k=v.map(R=>({data:{name:R,linkCids:"",expanded:!1,selected:!1,designExpanded:!1},children:[]}));return k[0].data.selected=!0,n.optionData=k,n.selectionControl.fontSize=c,n.selectionControl.textColor=x?Si(x):858993663,n.selectionControl.borderColor=p?Si(p):3435973887,n.selectionControl.checkedBorderColor=h?Si(h):377814271,n.selectionControl.checkedTextColor=m?Si(m):858993663,n},X0=function(e){e===void 0&&(e=mp);const t=Ds.wRect("");return t.border.bdrIsVisible=!1,t.fill={fillIsVisible:!0,fill:"solid",solidColor:Si("#FFFFFFF0")},t.w=e,t.x=e/2,t},gs=(e,t)=>{let{w:n}=t;return e+n/2},ss=(e,t)=>{let{h:n}=t;return e+n/2},hp=e=>{let{w:t=60,h:n=24,hexFill:a="#1685FC",hexFontColor:i="#FFFFFF",bold:c=!0}=e;const d=Ds.wButton("");return d.w=t,d.h=n,d.fill={fillIsVisible:!0,fill:"solid",solidColor:Si(a)},d.textV0.textColor=Si(i),d.textV0.fontSize=12,d.textV0.fontSize=12,d.textV0.bold=c,d.borderRadius=6,d.border.bdrIsVisible=!1,d},Tv={...JSON.parse('{"twitter-square":{"viewBox":"0 0 448 512","path":"M400 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zm-48.9 158.8c.2 2.8.2 5.7.2 8.5 0 86.7-66 186.6-186.6 186.6-37.2 0-71.7-10.8-100.7-29.4 5.3.6 10.4.8 15.8.8 30.7 0 58.9-10.4 81.4-28-28.8-.6-53-19.5-61.3-45.5 10.1 1.5 19.2 1.5 29.6-1.2-30-6.1-52.5-32.5-52.5-64.4v-.8c8.7 4.9 18.9 7.9 29.6 8.3a65.447 65.447 0 0 1-29.2-54.6c0-12.2 3.2-23.4 8.9-33.1 32.3 39.8 80.8 65.8 135.2 68.6-9.3-44.5 24-80.6 64-80.6 18.9 0 35.9 7.9 47.9 20.7 14.8-2.8 29-8.3 41.6-15.8-4.9 15.2-15.2 28-28.8 36.1 13.2-1.4 26-5.1 37.8-10.2-8.9 13.1-20.1 24.7-32.9 34z"},"facebook-square":{"viewBox":"0 0 448 512","path":"M448 80v352c0 26.5-21.5 48-48 48h-85.3V302.8h60.6l8.7-67.6h-69.3V192c0-19.6 5.4-32.9 33.5-32.9H384V98.7c-6.2-.8-27.4-2.7-52.2-2.7-51.6 0-87 31.5-87 89.4v49.9H184v67.6h60.9V480H48c-26.5 0-48-21.5-48-48V80c0-26.5 21.5-48 48-48h352c26.5 0 48 21.5 48 48z"},"linkedin":{"viewBox":"0 0 448 512","path":"M416 32H31.9C14.3 32 0 46.5 0 64.3v383.4C0 465.5 14.3 480 31.9 480H416c17.6 0 32-14.5 32-32.3V64.3c0-17.8-14.4-32.3-32-32.3zM135.4 416H69V202.2h66.5V416zm-33.2-243c-21.3 0-38.5-17.3-38.5-38.5S80.9 96 102.2 96c21.2 0 38.5 17.3 38.5 38.5 0 21.3-17.2 38.5-38.5 38.5zm282.1 243h-66.4V312c0-24.8-.5-56.7-34.5-56.7-34.6 0-39.9 27-39.9 54.9V416h-66.4V202.2h63.7v29.2h.9c8.9-16.8 30.6-34.5 62.9-34.5 67.2 0 79.7 44.3 79.7 101.9V416z"},"github-square":{"viewBox":"0 0 448 512","path":"M400 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zM277.3 415.7c-8.4 1.5-11.5-3.7-11.5-8 0-5.4.2-33 .2-55.3 0-15.6-5.2-25.5-11.3-30.7 37-4.1 76-9.2 76-73.1 0-18.2-6.5-27.3-17.1-39 1.7-4.3 7.4-22-1.7-45-13.9-4.3-45.7 17.9-45.7 17.9-13.2-3.7-27.5-5.6-41.6-5.6-14.1 0-28.4 1.9-41.6 5.6 0 0-31.8-22.2-45.7-17.9-9.1 22.9-3.5 40.6-1.7 45-10.6 11.7-15.6 20.8-15.6 39 0 63.6 37.3 69 74.3 73.1-4.8 4.3-9.1 11.7-10.6 22.3-9.5 4.3-33.8 11.7-48.3-13.9-9.1-15.8-25.5-17.1-25.5-17.1-16.2-.2-1.1 10.2-1.1 10.2 10.8 5 18.4 24.2 18.4 24.2 9.7 29.7 56.1 19.7 56.1 19.7 0 13.9.2 36.5.2 40.6 0 4.3-3 9.5-11.5 8-66-22.1-112.2-84.9-112.2-158.3 0-91.8 70.2-161.5 162-161.5S388 165.6 388 257.4c.1 73.4-44.7 136.3-110.7 158.3zm-98.1-61.1c-1.9.4-3.7-.4-3.9-1.7-.2-1.5 1.1-2.8 3-3.2 1.9-.2 3.7.6 3.9 1.9.3 1.3-1 2.6-3 3zm-9.5-.9c0 1.3-1.5 2.4-3.5 2.4-2.2.2-3.7-.9-3.7-2.4 0-1.3 1.5-2.4 3.5-2.4 1.9-.2 3.7.9 3.7 2.4zm-13.7-1.1c-.4 1.3-2.4 1.9-4.1 1.3-1.9-.4-3.2-1.9-2.8-3.2.4-1.3 2.4-1.9 4.1-1.5 2 .6 3.3 2.1 2.8 3.4zm-12.3-5.4c-.9 1.1-2.8.9-4.3-.6-1.5-1.3-1.9-3.2-.9-4.1.9-1.1 2.8-.9 4.3.6 1.3 1.3 1.8 3.3.9 4.1zm-9.1-9.1c-.9.6-2.6 0-3.7-1.5s-1.1-3.2 0-3.9c1.1-.9 2.8-.2 3.7 1.3 1.1 1.5 1.1 3.3 0 4.1zm-6.5-9.7c-.9.9-2.4.4-3.5-.6-1.1-1.3-1.3-2.8-.4-3.5.9-.9 2.4-.4 3.5.6 1.1 1.3 1.3 2.8.4 3.5zm-6.7-7.4c-.4.9-1.7 1.1-2.8.4-1.3-.6-1.9-1.7-1.5-2.6.4-.6 1.5-.9 2.8-.4 1.3.7 1.9 1.8 1.5 2.6z"},"twitter":{"viewBox":"0 0 512 512","path":"M459.37 151.716c.325 4.548.325 9.097.325 13.645 0 138.72-105.583 298.558-298.558 298.558-59.452 0-114.68-17.219-161.137-47.106 8.447.974 16.568 1.299 25.34 1.299 49.055 0 94.213-16.568 130.274-44.832-46.132-.975-84.792-31.188-98.112-72.772 6.498.974 12.995 1.624 19.818 1.624 9.421 0 18.843-1.3 27.614-3.573-48.081-9.747-84.143-51.98-84.143-102.985v-1.299c13.969 7.797 30.214 12.67 47.431 13.319-28.264-18.843-46.781-51.005-46.781-87.391 0-19.492 5.197-37.36 14.294-52.954 51.655 63.675 129.3 105.258 216.365 109.807-1.624-7.797-2.599-15.918-2.599-24.04 0-57.828 46.782-104.934 104.934-104.934 30.213 0 57.502 12.67 76.67 33.137 23.715-4.548 46.456-13.32 66.599-25.34-7.798 24.366-24.366 44.833-46.132 57.827 21.117-2.273 41.584-8.122 60.426-16.243-14.292 20.791-32.161 39.308-52.628 54.253z"},"facebook-f":{"viewBox":"0 0 264 512","path":"M76.7 512V283H0v-91h76.7v-71.7C76.7 42.4 124.3 0 193.8 0c33.3 0 61.9 2.5 70.2 3.6V85h-48.2c-37.8 0-45.1 18-45.1 44.3V192H256l-11.7 91h-73.6v229"},"github":{"viewBox":"0 0 496 512","path":"M165.9 397.4c0 2-2.3 3.6-5.2 3.6-3.3.3-5.6-1.3-5.6-3.6 0-2 2.3-3.6 5.2-3.6 3-.3 5.6 1.3 5.6 3.6zm-31.1-4.5c-.7 2 1.3 4.3 4.3 4.9 2.6 1 5.6 0 6.2-2s-1.3-4.3-4.3-5.2c-2.6-.7-5.5.3-6.2 2.3zm44.2-1.7c-2.9.7-4.9 2.6-4.6 4.9.3 2 2.9 3.3 5.9 2.6 2.9-.7 4.9-2.6 4.6-4.6-.3-1.9-3-3.2-5.9-2.9zM244.8 8C106.1 8 0 113.3 0 252c0 110.9 69.8 205.8 169.5 239.2 12.8 2.3 17.3-5.6 17.3-12.1 0-6.2-.3-40.4-.3-61.4 0 0-70 15-84.7-29.8 0 0-11.4-29.1-27.8-36.6 0 0-22.9-15.7 1.6-15.4 0 0 24.9 2 38.6 25.8 21.9 38.6 58.6 27.5 72.9 20.9 2.3-16 8.8-27.1 16-33.7-55.9-6.2-112.3-14.3-112.3-110.5 0-27.5 7.6-41.3 23.6-58.9-2.6-6.5-11.1-33.3 2.6-67.9 20.9-6.5 69 27 69 27 20-5.6 41.5-8.5 62.8-8.5s42.8 2.9 62.8 8.5c0 0 48.1-33.6 69-27 13.7 34.7 5.2 61.4 2.6 67.9 16 17.7 25.8 31.5 25.8 58.9 0 96.5-58.9 104.2-114.8 110.5 9.2 7.9 17 22.9 17 46.4 0 33.7-.3 75.4-.3 83.6 0 6.5 4.6 14.4 17.3 12.1C428.2 457.8 496 362.9 496 252 496 113.3 383.5 8 244.8 8zM97.2 352.9c-1.3 1-1 3.3.7 5.2 1.6 1.6 3.9 2.3 5.2 1 1.3-1 1-3.3-.7-5.2-1.6-1.6-3.9-2.3-5.2-1zm-10.8-8.1c-.7 1.3.3 2.9 2.3 3.9 1.6 1 3.6.7 4.3-.7.7-1.3-.3-2.9-2.3-3.9-2-.6-3.6-.3-4.3.7zm32.4 35.6c-1.6 1.3-1 4.3 1.3 6.2 2.3 2.3 5.2 2.6 6.5 1 1.3-1.3.7-4.3-1.3-6.2-2.2-2.3-5.2-2.6-6.5-1zm-11.4-14.7c-1.6 1-1.6 3.6 0 5.9 1.6 2.3 4.3 3.3 5.6 2.3 1.6-1.3 1.6-3.9 0-6.2-1.4-2.3-4-3.3-5.6-2z"},"pinterest":{"viewBox":"0 0 496 512","path":"M496 256c0 137-111 248-248 248-25.6 0-50.2-3.9-73.4-11.1 10.1-16.5 25.2-43.5 30.8-65 3-11.6 15.4-59 15.4-59 8.1 15.4 31.7 28.5 56.8 28.5 74.8 0 128.7-68.8 128.7-154.3 0-81.9-66.9-143.2-152.9-143.2-107 0-163.9 71.8-163.9 150.1 0 36.4 19.4 81.7 50.3 96.1 4.7 2.2 7.2 1.2 8.3-3.3.8-3.4 5-20.3 6.9-28.1.6-2.5.3-4.7-1.7-7.1-10.1-12.5-18.3-35.3-18.3-56.6 0-54.7 41.4-107.6 112-107.6 60.9 0 103.6 41.5 103.6 100.9 0 67.1-33.9 113.6-78 113.6-24.3 0-42.6-20.1-36.7-44.8 7-29.5 20.5-61.3 20.5-82.6 0-19-10.2-34.9-31.4-34.9-24.9 0-44.9 25.7-44.9 60.2 0 22 7.4 36.8 7.4 36.8s-24.5 103.8-29 123.2c-5 21.4-3 51.6-.9 71.2C65.4 450.9 0 361.1 0 256 0 119 111 8 248 8s248 111 248 248z"},"pinterest-square":{"viewBox":"0 0 448 512","path":"M448 80v352c0 26.5-21.5 48-48 48H154.4c9.8-16.4 22.4-40 27.4-59.3 3-11.5 15.3-58.4 15.3-58.4 8 15.3 31.4 28.2 56.3 28.2 74.1 0 127.4-68.1 127.4-152.7 0-81.1-66.2-141.8-151.4-141.8-106 0-162.2 71.1-162.2 148.6 0 36 19.2 80.8 49.8 95.1 4.7 2.2 7.1 1.2 8.2-3.3.8-3.4 5-20.1 6.8-27.8.6-2.5.3-4.6-1.7-7-10.1-12.3-18.3-34.9-18.3-56 0-54.2 41-106.6 110.9-106.6 60.3 0 102.6 41.1 102.6 99.9 0 66.4-33.5 112.4-77.2 112.4-24.1 0-42.1-19.9-36.4-44.4 6.9-29.2 20.3-60.7 20.3-81.8 0-53-75.5-45.7-75.5 25 0 21.7 7.3 36.5 7.3 36.5-31.4 132.8-36.1 134.5-29.6 192.6l2.2.8H48c-26.5 0-48-21.5-48-48V80c0-26.5 21.5-48 48-48h352c26.5 0 48 21.5 48 48z"},"google-plus-square":{"viewBox":"0 0 448 512","path":"M400 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zM164 356c-55.3 0-100-44.7-100-100s44.7-100 100-100c27 0 49.5 9.8 67 26.2l-27.1 26.1c-7.4-7.1-20.3-15.4-39.8-15.4-34.1 0-61.9 28.2-61.9 63.2 0 34.9 27.8 63.2 61.9 63.2 39.6 0 54.4-28.5 56.8-43.1H164v-34.4h94.4c1 5 1.6 10.1 1.6 16.6 0 57.1-38.3 97.6-96 97.6zm220-81.8h-29v29h-29.2v-29h-29V245h29v-29H355v29h29v29.2z"},"google-plus":{"viewBox":"0 0 496 512","path":"M248 8C111.1 8 0 119.1 0 256s111.1 248 248 248 248-111.1 248-248S384.9 8 248 8zm-70.7 372c-68.8 0-124-55.5-124-124s55.2-124 124-124c31.3 0 60.1 11 83 32.3l-33.6 32.6c-13.2-12.9-31.3-19.1-49.4-19.1-42.9 0-77.2 35.5-77.2 78.1s34.2 78.1 77.2 78.1c32.6 0 64.9-19.1 70.1-53.3h-70.1v-42.6h116.9c1.3 6.8 1.9 13.6 1.9 20.7 0 70.8-47.5 121.2-118.8 121.2zm230.2-106.2v35.5H372v-35.5h-35.5v-35.5H372v-35.5h35.5v35.5h35.2v35.5h-35.2z"},"github-alt":{"viewBox":"0 0 480 512","path":"M186.1 328.7c0 20.9-10.9 55.1-36.7 55.1s-36.7-34.2-36.7-55.1 10.9-55.1 36.7-55.1 36.7 34.2 36.7 55.1zM480 278.2c0 31.9-3.2 65.7-17.5 95-37.9 76.6-142.1 74.8-216.7 74.8-75.8 0-186.2 2.7-225.6-74.8-14.6-29-20.2-63.1-20.2-95 0-41.9 13.9-81.5 41.5-113.6-5.2-15.8-7.7-32.4-7.7-48.8 0-21.5 4.9-32.3 14.6-51.8 45.3 0 74.3 9 108.8 36 29-6.9 58.8-10 88.7-10 27 0 54.2 2.9 80.4 9.2 34-26.7 63-35.2 107.8-35.2 9.8 19.5 14.6 30.3 14.6 51.8 0 16.4-2.6 32.7-7.7 48.2 27.5 32.4 39 72.3 39 114.2zm-64.3 50.5c0-43.9-26.7-82.6-73.5-82.6-18.9 0-37 3.4-56 6-14.9 2.3-29.8 3.2-45.1 3.2-15.2 0-30.1-.9-45.1-3.2-18.7-2.6-37-6-56-6-46.8 0-73.5 38.7-73.5 82.6 0 87.8 80.4 101.3 150.4 101.3h48.2c70.3 0 150.6-13.4 150.6-101.3zm-82.6-55.1c-25.8 0-36.7 34.2-36.7 55.1s10.9 55.1 36.7 55.1 36.7-34.2 36.7-55.1-10.9-55.1-36.7-55.1z"},"maxcdn":{"viewBox":"0 0 512 512","path":"M461.1 442.7h-97.4L415.6 200c2.3-10.2.9-19.5-4.4-25.7-5-6.1-13.7-9.6-24.2-9.6h-49.3l-59.5 278h-97.4l59.5-278h-83.4l-59.5 278H0l59.5-278-44.6-95.4H387c39.4 0 75.3 16.3 98.3 44.9 23.3 28.6 31.8 67.4 23.6 105.9l-47.8 222.6z"},"html5":{"viewBox":"0 0 384 512","path":"M0 32l34.9 395.8L191.5 480l157.6-52.2L384 32H0zm308.2 127.9H124.4l4.1 49.4h175.6l-13.6 148.4-97.9 27v.3h-1.1l-98.7-27.3-6-75.8h47.7L138 320l53.5 14.5 53.7-14.5 6-62.2H84.3L71.5 112.2h241.1l-4.4 47.7z"},"css3":{"viewBox":"0 0 512 512","path":"M480 32l-64 368-223.3 80L0 400l19.6-94.8h82l-8 40.6L210 390.2l134.1-44.4 18.8-97.1H29.5l16-82h333.7l10.5-52.7H56.3l16.3-82H480z"},"btc":{"viewBox":"0 0 384 512","path":"M310.204 242.638c27.73-14.18 45.377-39.39 41.28-81.3-5.358-57.351-52.458-76.573-114.85-81.929V0h-48.528v77.203c-12.605 0-25.525.315-38.444.63V0h-48.528v79.409c-17.842.539-38.622.276-97.37 0v51.678c38.314-.678 58.417-3.14 63.023 21.427v217.429c-2.925 19.492-18.524 16.685-53.255 16.071L3.765 443.68c88.481 0 97.37.315 97.37.315V512h48.528v-67.06c13.234.315 26.154.315 38.444.315V512h48.528v-68.005c81.299-4.412 135.647-24.894 142.895-101.467 5.671-61.446-23.32-88.862-69.326-99.89zM150.608 134.553c27.415 0 113.126-8.507 113.126 48.528 0 54.515-85.71 48.212-113.126 48.212v-96.74zm0 251.776V279.821c32.772 0 133.127-9.138 133.127 53.255-.001 60.186-100.355 53.253-133.127 53.253z"},"youtube-square":{"viewBox":"0 0 448 512","path":"M186.8 202.1l95.2 54.1-95.2 54.1V202.1zM448 80v352c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V80c0-26.5 21.5-48 48-48h352c26.5 0 48 21.5 48 48zm-42 176.3s0-59.6-7.6-88.2c-4.2-15.8-16.5-28.2-32.2-32.4C337.9 128 224 128 224 128s-113.9 0-142.2 7.7c-15.7 4.2-28 16.6-32.2 32.4-7.6 28.5-7.6 88.2-7.6 88.2s0 59.6 7.6 88.2c4.2 15.8 16.5 27.7 32.2 31.9C110.1 384 224 384 224 384s113.9 0 142.2-7.7c15.7-4.2 28-16.1 32.2-31.9 7.6-28.5 7.6-88.1 7.6-88.1z"},"youtube":{"viewBox":"0 0 576 512","path":"M549.655 124.083c-6.281-23.65-24.787-42.276-48.284-48.597C458.781 64 288 64 288 64S117.22 64 74.629 75.486c-23.497 6.322-42.003 24.947-48.284 48.597-11.412 42.867-11.412 132.305-11.412 132.305s0 89.438 11.412 132.305c6.281 23.65 24.787 41.5 48.284 47.821C117.22 448 288 448 288 448s170.78 0 213.371-11.486c23.497-6.321 42.003-24.171 48.284-47.821 11.412-42.867 11.412-132.305 11.412-132.305s0-89.438-11.412-132.305zm-317.51 213.508V175.185l142.739 81.205-142.739 81.201z"},"xing":{"viewBox":"0 0 384 512","path":"M162.7 210c-1.8 3.3-25.2 44.4-70.1 123.5-4.9 8.3-10.8 12.5-17.7 12.5H9.8c-7.7 0-12.1-7.5-8.5-14.4l69-121.3c.2 0 .2-.1 0-.3l-43.9-75.6c-4.3-7.8.3-14.1 8.5-14.1H100c7.3 0 13.3 4.1 18 12.2l44.7 77.5zM382.6 46.1l-144 253v.3L330.2 466c3.9 7.1.2 14.1-8.5 14.1h-65.2c-7.6 0-13.6-4-18-12.2l-92.4-168.5c3.3-5.8 51.5-90.8 144.8-255.2 4.6-8.1 10.4-12.2 17.5-12.2h65.7c8 0 12.3 6.7 8.5 14.1z"},"xing-square":{"viewBox":"0 0 448 512","path":"M400 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zM140.4 320.2H93.8c-5.5 0-8.7-5.3-6-10.3l49.3-86.7c.1 0 .1-.1 0-.2l-31.4-54c-3-5.6.2-10.1 6-10.1h46.6c5.2 0 9.5 2.9 12.9 8.7l31.9 55.3c-1.3 2.3-18 31.7-50.1 88.2-3.5 6.2-7.7 9.1-12.6 9.1zm219.7-214.1L257.3 286.8v.2l65.5 119c2.8 5.1.1 10.1-6 10.1h-46.6c-5.5 0-9.7-2.9-12.9-8.7l-66-120.3c2.3-4.1 36.8-64.9 103.4-182.3 3.3-5.8 7.4-8.7 12.5-8.7h46.9c5.7-.1 8.8 4.7 6 10z"},"dropbox":{"viewBox":"0 0 528 512","path":"M264.4 116.3l-132 84.3 132 84.3-132 84.3L0 284.1l132.3-84.3L0 116.3 132.3 32l132.1 84.3zM131.6 395.7l132-84.3 132 84.3-132 84.3-132-84.3zm132.8-111.6l132-84.3-132-83.6L395.7 32 528 116.3l-132.3 84.3L528 284.8l-132.3 84.3-131.3-85z"},"stack-overflow":{"viewBox":"0 0 384 512","path":"M293.7 300l-181.2-84.5 16.7-36.5 181.3 84.7-16.8 36.3zm48-76L188.2 95.7l-25.5 30.8 153.5 128.3 25.5-30.8zm39.6-31.7L262 32l-32 24 119.3 160.3 32-24zM290.7 311L95 269.7 86.8 309l195.7 41 8.2-39zm31.6 129H42.7V320h-40v160h359.5V320h-40v120zm-39.8-80h-200v39.7h200V360z"},"instagram":{"viewBox":"0 0 448 512","path":"M224.1 141c-63.6 0-114.9 51.3-114.9 114.9s51.3 114.9 114.9 114.9S339 319.5 339 255.9 287.7 141 224.1 141zm0 189.6c-41.1 0-74.7-33.5-74.7-74.7s33.5-74.7 74.7-74.7 74.7 33.5 74.7 74.7-33.6 74.7-74.7 74.7zm146.4-194.3c0 14.9-12 26.8-26.8 26.8-14.9 0-26.8-12-26.8-26.8s12-26.8 26.8-26.8 26.8 12 26.8 26.8zm76.1 27.2c-1.7-35.9-9.9-67.7-36.2-93.9-26.2-26.2-58-34.4-93.9-36.2-37-2.1-147.9-2.1-184.9 0-35.8 1.7-67.6 9.9-93.9 36.1s-34.4 58-36.2 93.9c-2.1 37-2.1 147.9 0 184.9 1.7 35.9 9.9 67.7 36.2 93.9s58 34.4 93.9 36.2c37 2.1 147.9 2.1 184.9 0 35.9-1.7 67.7-9.9 93.9-36.2 26.2-26.2 34.4-58 36.2-93.9 2.1-37 2.1-147.8 0-184.8zM398.8 388c-7.8 19.6-22.9 34.7-42.6 42.6-29.5 11.7-99.5 9-132.1 9s-102.7 2.6-132.1-9c-19.6-7.8-34.7-22.9-42.6-42.6-11.7-29.5-9-99.5-9-132.1s-2.6-102.7 9-132.1c7.8-19.6 22.9-34.7 42.6-42.6 29.5-11.7 99.5-9 132.1-9s102.7-2.6 132.1 9c19.6 7.8 34.7 22.9 42.6 42.6 11.7 29.5 9 99.5 9 132.1s2.7 102.7-9 132.1z"},"flickr":{"viewBox":"0 0 448 512","path":"M400 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zM144.5 319c-35.1 0-63.5-28.4-63.5-63.5s28.4-63.5 63.5-63.5 63.5 28.4 63.5 63.5-28.4 63.5-63.5 63.5zm159 0c-35.1 0-63.5-28.4-63.5-63.5s28.4-63.5 63.5-63.5 63.5 28.4 63.5 63.5-28.4 63.5-63.5 63.5z"},"adn":{"viewBox":"0 0 496 512","path":"M248 167.5l64.9 98.8H183.1l64.9-98.8zM496 256c0 136.9-111.1 248-248 248S0 392.9 0 256 111.1 8 248 8s248 111.1 248 248zm-99.8 82.7L248 115.5 99.8 338.7h30.4l33.6-51.7h168.6l33.6 51.7h30.2z"},"tumblr":{"viewBox":"0 0 320 512","path":"M309.8 480.3c-13.6 14.5-50 31.7-97.4 31.7-120.8 0-147-88.8-147-140.6v-144H17.9c-5.5 0-10-4.5-10-10v-68c0-7.2 4.5-13.6 11.3-16 62-21.8 81.5-76 84.3-117.1.8-11 6.5-16.3 16.1-16.3h70.9c5.5 0 10 4.5 10 10v115.2h83c5.5 0 10 4.4 10 9.9v81.7c0 5.5-4.5 10-10 10h-83.4V360c0 34.2 23.7 53.6 68 35.8 4.8-1.9 9-3.2 12.7-2.2 3.5.9 5.8 3.4 7.4 7.9l22 64.3c1.8 5 3.3 10.6-.4 14.5z"},"tumblr-square":{"viewBox":"0 0 448 512","path":"M400 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zm-82.3 364.2c-8.5 9.1-31.2 19.8-60.9 19.8-75.5 0-91.9-55.5-91.9-87.9v-90h-29.7c-3.4 0-6.2-2.8-6.2-6.2v-42.5c0-4.5 2.8-8.5 7.1-10 38.8-13.7 50.9-47.5 52.7-73.2.5-6.9 4.1-10.2 10-10.2h44.3c3.4 0 6.2 2.8 6.2 6.2v72h51.9c3.4 0 6.2 2.8 6.2 6.2v51.1c0 3.4-2.8 6.2-6.2 6.2h-52.1V321c0 21.4 14.8 33.5 42.5 22.4 3-1.2 5.6-2 8-1.4 2.2.5 3.6 2.1 4.6 4.9l13.8 40.2c1 3.2 2 6.7-.3 9.1z"},"apple":{"viewBox":"0 0 376 512","path":"M314.7 268.7c-.2-36.7 16.4-64.4 50-84.8-18.8-26.9-47.2-41.7-84.7-44.6-35.5-2.8-74.3 20.7-88.5 20.7-15 0-49.4-19.7-76.4-19.7C59.3 141.2 0 184.8 0 273.5c0 26.2 4.8 53.3 14.4 81.2 12.8 36.7 59 126.7 107.2 125.2 25.2-.6 43-17.9 75.8-17.9 31.8 0 48.3 17.9 76.4 17.9 48.6-.7 90.4-82.5 102.6-119.3-65.2-30.7-61.7-90-61.7-91.9zm-56.6-164.2c27.3-32.4 24.8-61.9 24-72.5-24.1 1.4-52 16.4-67.9 34.9-17.5 19.8-27.8 44.3-25.6 71.9 26.1 2 49.9-11.4 69.5-34.3z"},"windows":{"viewBox":"0 0 448 512","path":"M0 93.7l183.6-25.3v177.4H0V93.7zm0 324.6l183.6 25.3V268.4H0v149.9zm203.8 28L448 480V268.4H203.8v177.9zm0-380.6v180.1H448V32L203.8 65.7z"},"android":{"viewBox":"0 0 448 512","path":"M89.6 204.5v115.8c0 15.4-12.1 27.7-27.5 27.7-15.3 0-30.1-12.4-30.1-27.7V204.5c0-15.1 14.8-27.5 30.1-27.5 15.1 0 27.5 12.4 27.5 27.5zm10.8 157c0 16.4 13.2 29.6 29.6 29.6h19.9l.3 61.1c0 36.9 55.2 36.6 55.2 0v-61.1h37.2v61.1c0 36.7 55.5 36.8 55.5 0v-61.1h20.2c16.2 0 29.4-13.2 29.4-29.6V182.1H100.4v179.4zm248-189.1H99.3c0-42.8 25.6-80 63.6-99.4l-19.1-35.3c-2.8-4.9 4.3-8 6.7-3.8l19.4 35.6c34.9-15.5 75-14.7 108.3 0L297.5 34c2.5-4.3 9.5-1.1 6.7 3.8L285.1 73c37.7 19.4 63.3 56.6 63.3 99.4zm-170.7-55.5c0-5.7-4.6-10.5-10.5-10.5-5.7 0-10.2 4.8-10.2 10.5s4.6 10.5 10.2 10.5c5.9 0 10.5-4.8 10.5-10.5zm113.4 0c0-5.7-4.6-10.5-10.2-10.5-5.9 0-10.5 4.8-10.5 10.5s4.6 10.5 10.5 10.5c5.6 0 10.2-4.8 10.2-10.5zm94.8 60.1c-15.1 0-27.5 12.1-27.5 27.5v115.8c0 15.4 12.4 27.7 27.5 27.7 15.4 0 30.1-12.4 30.1-27.7V204.5c0-15.4-14.8-27.5-30.1-27.5z"},"linux":{"viewBox":"0 0 448 512","path":"M196.1 123.6c-.2-1.4 1.9-2.3 3.2-2.9 1.7-.7 3.9-1 5.5-.1.4.2.8.7.6 1.1-.4 1.2-2.4 1-3.5 1.6-1 .5-1.8 1.7-3 1.7-1 .1-2.7-.4-2.8-1.4zm24.7-.3c1 .5 1.8 1.7 3 1.7 1.1 0 2.8-.4 2.9-1.5.2-1.4-1.9-2.3-3.2-2.9-1.7-.7-3.9-1-5.5-.1-.4.2-.8.7-.6 1.1.3 1.3 2.3 1.1 3.4 1.7zm214.7 310.2c-.5 8.2-6.5 13.8-13.9 18.3-14.9 9-37.3 15.8-50.9 32.2l-2.6-2.2 2.6 2.2c-14.2 16.9-31.7 26.6-48.3 27.9-16.5 1.3-32-6.3-40.3-23v-.1c-1.1-2.1-1.9-4.4-2.5-6.7-21.5 1.2-40.2-5.3-55.1-4.1-22 1.2-35.8 6.5-48.3 6.6-4.8 10.6-14.3 17.6-25.9 20.2-16 3.7-36.1 0-55.9-10.4l1.6-3-1.6 3c-18.5-9.8-42-8.9-59.3-12.5-8.7-1.8-16.3-5-20.1-12.3-3.7-7.3-3-17.3 2.2-31.7 1.7-5.1.4-12.7-.8-20.8-.6-3.9-1.2-7.9-1.2-11.8 0-4.3.7-8.5 2.8-12.4 4.5-8.5 11.8-12.1 18.5-14.5 6.7-2.4 12.8-4 17-8.3 5.2-5.5 10.1-14.4 16.6-20.2-2.6-17.2.2-35.4 6.2-53.3 12.6-37.9 39.2-74.2 58.1-96.7 16.1-22.9 20.8-41.3 22.5-64.7C158 103.4 132.4-.2 234.8 0c80.9.1 76.3 85.4 75.8 131.3-.3 30.1 16.3 50.5 33.4 72 15.2 18 35.1 44.3 46.5 74.4 9.3 24.6 12.9 51.8 3.7 79.1 1.4.5 2.8 1.2 4.1 2 1.4.8 2.7 1.8 4 2.9 6.6 5.6 8.7 14.3 10.5 22.4 1.9 8.1 3.6 15.7 7.2 19.7 11.1 12.4 15.9 21.5 15.5 29.7zM220.8 109.1c3.6.9 8.9 2.4 13 4.4-2.1-12.2 4.5-23.5 11.8-23 8.9.3 13.9 15.5 9.1 27.3-.8 1.9-2.8 3.4-3.9 4.6 6.7 2.3 11 4.1 12.6 4.9 7.9-9.5 10.8-26.2 4.3-40.4-9.8-21.4-34.2-21.8-44 .4-3.2 7.2-3.9 14.9-2.9 21.8zm-46.2 18.8c7.8-5.7 6.9-4.7 5.9-5.5-8-6.9-6.6-27.4 1.8-28.1 6.3-.5 10.8 10.7 9.6 19.6 3.1-2.1 6.7-3.6 10.2-4.6 1.7-19.3-9-33.5-19.1-33.5-18.9 0-24 37.5-8.4 52.1zm-9.4 20.9c1.5 4.9 6.1 10.5 14.7 15.3 7.8 4.6 12 11.5 20 15 2.6 1.1 5.7 1.9 9.6 2.1 18.4 1.1 27.1-11.3 38.2-14.9 11.7-3.7 20.1-11 22.7-18.1 3.2-8.5-2.1-14.7-10.5-18.2-11.3-4.9-16.3-5.2-22.6-9.3-10.3-6.6-18.8-8.9-25.9-8.9-14.4 0-23.2 9.8-27.9 14.2-.5.5-7.9 5.9-14.1 10.5-4.2 3.3-5.6 7.4-4.2 12.3zm-33.5 252.8L112.1 366c-6.8-9.2-13.8-14.8-21.9-16-7.7-1.2-12.6 1.4-17.7 6.9-4.8 5.1-8.8 12.3-14.3 18-7.8 6.5-9.3 6.2-19.6 9.9-6.3 2.2-11.3 4.6-14.8 11.3-2.7 5-2.1 12.2-.9 20 1.2 7.9 3 16.3.6 23.9v.2c-5 13.7-5 21.7-2.6 26.4 7.9 15.4 46.6 6.1 76.5 21.9 31.4 16.4 72.6 17.1 75.3-18 2.1-20.5-31.5-49-41-68.9zm153.9 35.8c3.2-11 6.3-21.3 6.8-29 .8-15.2 1.6-28.7 4.4-39.9 3.1-12.6 9.3-23.1 21.4-27.3 2.3-21.1 18.7-21.1 38.3-12.5 18.9 8.5 26 16 22.8 26.1 1 0 2-.1 4.2 0 5.2-16.9-14.3-28-30.7-34.8 2.9-12 2.4-24.1-.4-35.7-6-25.3-22.6-47.8-35.2-59-2.3-.1-2.1 1.9 2.6 6.5 11.6 10.7 37.1 49.2 23.3 84.9-3.9-1-7.6-1.5-10.9-1.4-5.3-29.1-17.5-53.2-23.6-64.6-11.5-21.4-29.5-65.3-37.2-95.7-4.5 6.4-12.4 11.9-22.3 15-4.7 1.5-9.7 5.5-15.9 9-13.9 8-30 8.8-42.4-1.2-4.5-3.6-8-7.6-12.6-10.3-1.6-.9-5.1-3.3-6.2-4.1-2 37.8-27.3 85.3-39.3 112.7-8.3 19.7-13.2 40.8-13.8 61.5-21.8-29.1-5.9-66.3 2.6-82.4 9.5-17.6 11-22.5 8.7-20.8-8.6 14-22 36.3-27.2 59.2-2.7 11.9-3.2 24 .3 35.2 3.5 11.2 11.1 21.5 24.6 29.9 0 0 24.8 14.3 38.3 32.5 7.4 10 9.7 18.7 7.4 24.9-2.5 6.7-9.6 8.9-16.7 8.9 4.8 6 10.3 13 14.4 19.6 37.6 25.7 82.2 15.7 114.3-7.2zM415 408.5c-10-11.3-7.2-33.1-17.1-41.6-6.9-6-13.6-5.4-22.6-5.1-7.7 8.8-25.8 19.6-38.4 16.3-11.5-2.9-18-16.3-18.8-29.5-.3.2-.7.3-1 .5-7.1 3.9-11.1 10.8-13.7 21.1-2.5 10.2-3.4 23.5-4.2 38.7-.7 11.8-6.2 26.4-9.9 40.6-3.5 13.2-5.8 25.2-1.1 36.3 7.2 14.5 19.5 20.4 33.7 19.3 14.2-1.1 30.4-9.8 43.6-25.5 22-26.6 62.3-29.7 63.2-46.5.3-5.1-3.1-13-13.7-24.6zM173.3 148.7c2 1.9 4.7 4.5 8 7.1 6.6 5.2 15.8 10.6 27.3 10.6 11.6 0 22.5-5.9 31.8-10.8 4.9-2.6 10.9-7 14.8-10.4 3.9-3.4 5.9-6.3 3.1-6.6-2.8-.3-2.6 2.6-6 5.1-4.4 3.2-9.7 7.4-13.9 9.8-7.4 4.2-19.5 10.2-29.9 10.2-10.4 0-18.7-4.8-24.9-9.7-3.1-2.5-5.7-5-7.7-6.9-1.5-1.4-1.9-4.6-4.3-4.9-1.4-.1-1.8 3.7 1.7 6.5z"},"dribbble":{"viewBox":"0 0 512 512","path":"M256 8C119.252 8 8 119.252 8 256s111.252 248 248 248 248-111.252 248-248S392.748 8 256 8zm163.97 114.366c29.503 36.046 47.369 81.957 47.835 131.955-6.984-1.477-77.018-15.682-147.502-6.818-5.752-14.041-11.181-26.393-18.617-41.614 78.321-31.977 113.818-77.482 118.284-83.523zM396.421 97.87c-3.81 5.427-35.697 48.286-111.021 76.519-34.712-63.776-73.185-116.168-79.04-124.008 67.176-16.193 137.966 1.27 190.061 47.489zm-230.48-33.25c5.585 7.659 43.438 60.116 78.537 122.509-99.087 26.313-186.36 25.934-195.834 25.809C62.38 147.205 106.678 92.573 165.941 64.62zM44.17 256.323c0-2.166.043-4.322.108-6.473 9.268.19 111.92 1.513 217.706-30.146 6.064 11.868 11.857 23.915 17.174 35.949-76.599 21.575-146.194 83.527-180.531 142.306C64.794 360.405 44.17 310.73 44.17 256.323zm81.807 167.113c22.127-45.233 82.178-103.622 167.579-132.756 29.74 77.283 42.039 142.053 45.189 160.638-68.112 29.013-150.015 21.053-212.768-27.882zm248.38 8.489c-2.171-12.886-13.446-74.897-41.152-151.033 66.38-10.626 124.7 6.768 131.947 9.055-9.442 58.941-43.273 109.844-90.795 141.978z"},"skype":{"viewBox":"0 0 448 512","path":"M424.7 299.8c2.9-14 4.7-28.9 4.7-43.8 0-113.5-91.9-205.3-205.3-205.3-14.9 0-29.7 1.7-43.8 4.7C161.3 40.7 137.7 32 112 32 50.2 32 0 82.2 0 144c0 25.7 8.7 49.3 23.3 68.2-2.9 14-4.7 28.9-4.7 43.8 0 113.5 91.9 205.3 205.3 205.3 14.9 0 29.7-1.7 43.8-4.7 19 14.6 42.6 23.3 68.2 23.3 61.8 0 112-50.2 112-112 .1-25.6-8.6-49.2-23.2-68.1zm-194.6 91.5c-65.6 0-120.5-29.2-120.5-65 0-16 9-30.6 29.5-30.6 31.2 0 34.1 44.9 88.1 44.9 25.7 0 42.3-11.4 42.3-26.3 0-18.7-16-21.6-42-28-62.5-15.4-117.8-22-117.8-87.2 0-59.2 58.6-81.1 109.1-81.1 55.1 0 110.8 21.9 110.8 55.4 0 16.9-11.4 31.8-30.3 31.8-28.3 0-29.2-33.5-75-33.5-25.7 0-42 7-42 22.5 0 19.8 20.8 21.8 69.1 33 41.4 9.3 90.7 26.8 90.7 77.6 0 59.1-57.1 86.5-112 86.5z"},"foursquare":{"viewBox":"0 0 368 512","path":"M323.1 3H49.9C12.4 3 0 31.3 0 49.1v433.8c0 20.3 12.1 27.7 18.2 30.1 6.2 2.5 22.8 4.6 32.9-7.1C180 356.5 182.2 354 182.2 354c3.1-3.4 3.4-3.1 6.8-3.1h83.4c35.1 0 40.6-25.2 44.3-39.7l48.6-243C373.8 25.8 363.1 3 323.1 3zm-16.3 73.8l-11.4 59.7c-1.2 6.5-9.5 13.2-16.9 13.2H172.1c-12 0-20.6 8.3-20.6 20.3v13c0 12 8.6 20.6 20.6 20.6h90.4c8.3 0 16.6 9.2 14.8 18.2-1.8 8.9-10.5 53.8-11.4 58.8-.9 4.9-6.8 13.5-16.9 13.5h-73.5c-13.5 0-17.2 1.8-26.5 12.6 0 0-8.9 11.4-89.5 108.3-.9.9-1.8.6-1.8-.3V75.9c0-7.7 6.8-16.6 16.6-16.6h219c8.2 0 15.6 7.7 13.5 17.5z"},"trello":{"viewBox":"0 0 448 512","path":"M392 32H56C25.1 32 0 57.1 0 88v336c0 30.9 25.1 56 56 56h336c30.9 0 56-25.1 56-56V88c0-30.9-25.1-56-56-56zM194.9 371.4c0 14.8-12 26.9-26.9 26.9H85.1c-14.8 0-26.9-12-26.9-26.9V117.1c0-14.8 12-26.9 26.9-26.9H168c14.8 0 26.9 12 26.9 26.9v254.3zm194.9-112c0 14.8-12 26.9-26.9 26.9H280c-14.8 0-26.9-12-26.9-26.9V117.1c0-14.8 12-26.9 26.9-26.9h82.9c14.8 0 26.9 12 26.9 26.9v142.3z"},"gratipay":{"viewBox":"0 0 496 512","path":"M248 8C111.1 8 0 119.1 0 256s111.1 248 248 248 248-111.1 248-248S384.9 8 248 8zm114.6 226.4l-113 152.7-112.7-152.7c-8.7-11.9-19.1-50.4 13.6-72 28.1-18.1 54.6-4.2 68.5 11.9 15.9 17.9 46.6 16.9 61.7 0 13.9-16.1 40.4-30 68.1-11.9 32.9 21.6 22.6 60 13.8 72z"},"vk":{"viewBox":"0 0 576 512","path":"M545 117.7c3.7-12.5 0-21.7-17.8-21.7h-58.9c-15 0-21.9 7.9-25.6 16.7 0 0-30 73.1-72.4 120.5-13.7 13.7-20 18.1-27.5 18.1-3.7 0-9.4-4.4-9.4-16.9V117.7c0-15-4.2-21.7-16.6-21.7h-92.6c-9.4 0-15 7-15 13.5 0 14.2 21.2 17.5 23.4 57.5v86.8c0 19-3.4 22.5-10.9 22.5-20 0-68.6-73.4-97.4-157.4-5.8-16.3-11.5-22.9-26.6-22.9H38.8c-16.8 0-20.2 7.9-20.2 16.7 0 15.6 20 93.1 93.1 195.5C160.4 378.1 229 416 291.4 416c37.5 0 42.1-8.4 42.1-22.9 0-66.8-3.4-73.1 15.4-73.1 8.7 0 23.7 4.4 58.7 38.1 40 40 46.6 57.9 69 57.9h58.9c16.8 0 25.3-8.4 20.4-25-11.2-34.9-86.9-106.7-90.3-111.5-8.7-11.2-6.2-16.2 0-26.2.1-.1 72-101.3 79.4-135.6z"},"weibo":{"viewBox":"0 0 512 512","path":"M407 177.6c7.6-24-13.4-46.8-37.4-41.7-22 4.8-28.8-28.1-7.1-32.8 50.1-10.9 92.3 37.1 76.5 84.8-6.8 21.2-38.8 10.8-32-10.3zM214.8 446.7C108.5 446.7 0 395.3 0 310.4c0-44.3 28-95.4 76.3-143.7C176 67 279.5 65.8 249.9 161c-4 13.1 12.3 5.7 12.3 6 79.5-33.6 140.5-16.8 114 51.4-3.7 9.4 1.1 10.9 8.3 13.1 135.7 42.3 34.8 215.2-169.7 215.2zm143.7-146.3c-5.4-55.7-78.5-94-163.4-85.7-84.8 8.6-148.8 60.3-143.4 116s78.5 94 163.4 85.7c84.8-8.6 148.8-60.3 143.4-116zM347.9 35.1c-25.9 5.6-16.8 43.7 8.3 38.3 72.3-15.2 134.8 52.8 111.7 124-7.4 24.2 29.1 37 37.4 12 31.9-99.8-55.1-195.9-157.4-174.3zm-78.5 311c-17.1 38.8-66.8 60-109.1 46.3-40.8-13.1-58-53.4-40.3-89.7 17.7-35.4 63.1-55.4 103.4-45.1 42 10.8 63.1 50.2 46 88.5zm-86.3-30c-12.9-5.4-30 .3-38 12.9-8.3 12.9-4.3 28 8.6 34 13.1 6 30.8.3 39.1-12.9 8-13.1 3.7-28.3-9.7-34zm32.6-13.4c-5.1-1.7-11.4.6-14.3 5.4-2.9 5.1-1.4 10.6 3.7 12.9 5.1 2 11.7-.3 14.6-5.4 2.8-5.2 1.1-10.9-4-12.9z"},"renren":{"viewBox":"0 0 512 512","path":"M214 169.1c0 110.4-61 205.4-147.6 247.4C30 373.2 8 317.7 8 256.6 8 133.9 97.1 32.2 214 12.5v156.6zM255 504c-42.9 0-83.3-11-118.5-30.4C193.7 437.5 239.9 382.9 255 319c15.5 63.9 61.7 118.5 118.8 154.7C338.7 493 298.3 504 255 504zm190.6-87.5C359 374.5 298 279.6 298 169.1V12.5c116.9 19.7 206 121.4 206 244.1 0 61.1-22 116.6-58.4 159.9z"},"pagelines":{"viewBox":"0 0 384 512","path":"M384 312.7c-55.1 136.7-187.1 54-187.1 54-40.5 81.8-107.4 134.4-184.6 134.7-16.1 0-16.6-24.4 0-24.4 64.4-.3 120.5-42.7 157.2-110.1-41.1 15.9-118.6 27.9-161.6-82.2 109-44.9 159.1 11.2 178.3 45.5 9.9-24.4 17-50.9 21.6-79.7 0 0-139.7 21.9-149.5-98.1 119.1-47.9 152.6 76.7 152.6 76.7 1.6-16.7 3.3-52.6 3.3-53.4 0 0-106.3-73.7-38.1-165.2 124.6 43 61.4 162.4 61.4 162.4.5 1.6.5 23.8 0 33.4 0 0 45.2-89 136.4-57.5-4.2 134-141.9 106.4-141.9 106.4-4.4 27.4-11.2 53.4-20 77.5 0 0 83-91.8 172-20z"},"stack-exchange":{"viewBox":"0 0 448 512","path":"M17.7 332.3h412.7v22c0 37.7-29.3 68-65.3 68h-19L259.3 512v-89.7H83c-36 0-65.3-30.3-65.3-68v-22zm0-23.6h412.7v-85H17.7v85zm0-109.4h412.7v-85H17.7v85zM365 0H83C47 0 17.7 30.3 17.7 67.7V90h412.7V67.7C430.3 30.3 401 0 365 0z"},"vimeo-square":{"viewBox":"0 0 448 512","path":"M400 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zm-16.2 149.6c-1.4 31.1-23.2 73.8-65.3 127.9-43.5 56.5-80.3 84.8-110.4 84.8-18.7 0-34.4-17.2-47.3-51.6-25.2-92.3-35.9-146.4-56.7-146.4-2.4 0-10.8 5-25.1 15.1L64 192c36.9-32.4 72.1-68.4 94.1-70.4 24.9-2.4 40.2 14.6 46 51.1 20.5 129.6 29.6 149.2 66.8 90.5 13.4-21.2 20.6-37.2 21.5-48.3 3.4-32.8-25.6-30.6-45.2-22.2 15.7-51.5 45.8-76.5 90.1-75.1 32.9 1 48.4 22.4 46.5 64z"},"slack":{"viewBox":"0 0 448 512","path":"M244.2 217.5l19.3 57.7-59.8 20-19.3-57.7 59.8-20zm41.4 243.7C131.6 507.4 65 471.6 18.8 317.6S8.4 97 162.4 50.8C316.4 4.6 383 40.4 429.2 194.4c46.2 154 10.4 220.6-143.6 266.8zM366.2 265c-3.9-12.2-17.2-18.6-29.4-14.7l-29 9.7-19.3-57.7 29-9.7c12.2-3.9 18.6-17.2 14.7-29.4-3.9-12.2-17.2-18.6-29.4-14.7l-29 9.7-10-30.1c-3.9-12.2-17.2-18.6-29.4-14.7-12.2 3.9-18.6 17.2-14.7 29.4l10 30.1-59.8 20.1-10-30.1c-3.9-12.2-17.2-18.6-29.4-14.7-12.2 3.9-18.6 17.2-14.7 29.4l10 30.1-29 9.7c-12.2 3.9-18.6 17.2-14.7 29.4 3.2 9.3 12.2 15.4 21.5 15.8 4.3.6 7.7-1 36.9-10.7l19.3 57.7-29 9.7c-12.2 3.9-18.6 17.2-14.7 29.4 3.2 9.3 12.2 15.4 21.5 15.8 4.3.6 7.7-1 36.9-10.7l10 30.1c3.7 10.8 15.8 18.6 29.4 14.7 12.2-3.9 18.6-17.2 14.7-29.4l-10-30.1 59.8-20.1 10 30.1c3.7 10.8 15.8 18.6 29.4 14.7 12.2-3.9 18.6-17.2 14.7-29.4l-10-30.1 29-9.7c12.2-4.2 18.6-17.5 14.7-29.6z"},"wordpress":{"viewBox":"0 0 512 512","path":"M61.7 169.4l101.5 278C92.2 413 43.3 340.2 43.3 256c0-30.9 6.6-60.1 18.4-86.6zm337.9 75.9c0-26.3-9.4-44.5-17.5-58.7-10.8-17.5-20.9-32.4-20.9-49.9 0-19.6 14.8-37.8 35.7-37.8.9 0 1.8.1 2.8.2-37.9-34.7-88.3-55.9-143.7-55.9-74.3 0-139.7 38.1-177.8 95.9 5 .2 9.7.3 13.7.3 22.2 0 56.7-2.7 56.7-2.7 11.5-.7 12.8 16.2 1.4 17.5 0 0-11.5 1.3-24.3 2l77.5 230.4L249.8 247l-33.1-90.8c-11.5-.7-22.3-2-22.3-2-11.5-.7-10.1-18.2 1.3-17.5 0 0 35.1 2.7 56 2.7 22.2 0 56.7-2.7 56.7-2.7 11.5-.7 12.8 16.2 1.4 17.5 0 0-11.5 1.3-24.3 2l76.9 228.7 21.2-70.9c9-29.4 16-50.5 16-68.7zm-139.9 29.3l-63.8 185.5c19.1 5.6 39.2 8.7 60.1 8.7 24.8 0 48.5-4.3 70.6-12.1-.6-.9-1.1-1.9-1.5-2.9l-65.4-179.2zm183-120.7c.9 6.8 1.4 14 1.4 21.9 0 21.6-4 45.8-16.2 76.2l-65 187.9C426.2 403 468.7 334.5 468.7 256c0-37-9.4-71.8-26-102.1zM504 256c0 136.8-111.3 248-248 248C119.2 504 8 392.7 8 256 8 119.2 119.2 8 256 8c136.7 0 248 111.2 248 248zm-11.4 0c0-130.5-106.2-236.6-236.6-236.6C125.5 19.4 19.4 125.5 19.4 256S125.6 492.6 256 492.6c130.5 0 236.6-106.1 236.6-236.6z"},"openid":{"viewBox":"0 0 448 512","path":"M271.5 432l-68 32C88.5 453.7 0 392.5 0 318.2c0-71.5 82.5-131 191.7-144.3v43c-71.5 12.5-124 53-124 101.3 0 51 58.5 93.3 135.7 103v-340l68-33.2v384zM448 291l-131.3-28.5 36.8-20.7c-19.5-11.5-43.5-20-70-24.8v-43c46.2 5.5 87.7 19.5 120.3 39.3l35-19.8L448 291z"},"yahoo":{"viewBox":"0 0 448 512","path":"M252 292l4 220c-12.7-2.2-23.5-3.9-32.3-3.9-8.4 0-19.2 1.7-32.3 3.9l4-220C140.4 197.2 85 95.2 21.4 0c11.9 3.1 23 3.9 33.2 3.9 9 0 20.4-.8 34.1-3.9 40.9 72.2 82.1 138.7 135 225.5C261 163.9 314.8 81.4 358.6 0c11.1 2.9 22 3.9 32.9 3.9 11.5 0 23.2-1 35-3.9C392.1 47.9 294.9 216.9 252 292z"},"google":{"viewBox":"0 0 488 512","path":"M488 261.8C488 403.3 391.1 504 248 504 110.8 504 0 393.2 0 256S110.8 8 248 8c66.8 0 123 24.5 166.3 64.9l-67.5 64.9C258.5 52.6 94.3 116.6 94.3 256c0 86.5 69.1 156.6 153.7 156.6 98.2 0 135-70.4 140.8-106.9H248v-85.3h236.1c2.3 12.7 3.9 24.9 3.9 41.4z"},"reddit":{"viewBox":"0 0 512 512","path":"M201.5 305.5c-13.8 0-24.9-11.1-24.9-24.6 0-13.8 11.1-24.9 24.9-24.9 13.6 0 24.6 11.1 24.6 24.9 0 13.6-11.1 24.6-24.6 24.6zM504 256c0 137-111 248-248 248S8 393 8 256 119 8 256 8s248 111 248 248zm-132.3-41.2c-9.4 0-17.7 3.9-23.8 10-22.4-15.5-52.6-25.5-86.1-26.6l17.4-78.3 55.4 12.5c0 13.6 11.1 24.6 24.6 24.6 13.8 0 24.9-11.3 24.9-24.9s-11.1-24.9-24.9-24.9c-9.7 0-18 5.8-22.1 13.8l-61.2-13.6c-3-.8-6.1 1.4-6.9 4.4l-19.1 86.4c-33.2 1.4-63.1 11.3-85.5 26.8-6.1-6.4-14.7-10.2-24.1-10.2-34.9 0-46.3 46.9-14.4 62.8-1.1 5-1.7 10.2-1.7 15.5 0 52.6 59.2 95.2 132 95.2 73.1 0 132.3-42.6 132.3-95.2 0-5.3-.6-10.8-1.9-15.8 31.3-16 19.8-62.5-14.9-62.5zM302.8 331c-18.2 18.2-76.1 17.9-93.6 0-2.2-2.2-6.1-2.2-8.3 0-2.5 2.5-2.5 6.4 0 8.6 22.8 22.8 87.3 22.8 110.2 0 2.5-2.2 2.5-6.1 0-8.6-2.2-2.2-6.1-2.2-8.3 0zm7.7-75c-13.6 0-24.6 11.1-24.6 24.9 0 13.6 11.1 24.6 24.6 24.6 13.8 0 24.9-11.1 24.9-24.6 0-13.8-11-24.9-24.9-24.9z"},"reddit-square":{"viewBox":"0 0 448 512","path":"M283.2 345.5c2.7 2.7 2.7 6.8 0 9.2-24.5 24.5-93.8 24.6-118.4 0-2.7-2.4-2.7-6.5 0-9.2 2.4-2.4 6.5-2.4 8.9 0 18.7 19.2 81 19.6 100.5 0 2.4-2.3 6.6-2.3 9 0zm-91.3-53.8c0-14.9-11.9-26.8-26.5-26.8-14.9 0-26.8 11.9-26.8 26.8 0 14.6 11.9 26.5 26.8 26.5 14.6 0 26.5-11.9 26.5-26.5zm90.7-26.8c-14.6 0-26.5 11.9-26.5 26.8 0 14.6 11.9 26.5 26.5 26.5 14.9 0 26.8-11.9 26.8-26.5 0-14.9-11.9-26.8-26.8-26.8zM448 80v352c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V80c0-26.5 21.5-48 48-48h352c26.5 0 48 21.5 48 48zm-99.7 140.6c-10.1 0-19 4.2-25.6 10.7-24.1-16.7-56.5-27.4-92.5-28.6l18.7-84.2 59.5 13.4c0 14.6 11.9 26.5 26.5 26.5 14.9 0 26.8-12.2 26.8-26.8 0-14.6-11.9-26.8-26.8-26.8-10.4 0-19.3 6.2-23.8 14.9l-65.7-14.6c-3.3-.9-6.5 1.5-7.4 4.8l-20.5 92.8c-35.7 1.5-67.8 12.2-91.9 28.9-6.5-6.8-15.8-11-25.9-11-37.5 0-49.8 50.4-15.5 67.5-1.2 5.4-1.8 11-1.8 16.7 0 56.5 63.7 102.3 141.9 102.3 78.5 0 142.2-45.8 142.2-102.3 0-5.7-.6-11.6-2.1-17 33.6-17.2 21.2-67.2-16.1-67.2z"},"stumbleupon-circle":{"viewBox":"0 0 496 512","path":"M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm0 177.5c-9.8 0-17.8 8-17.8 17.8v106.9c0 40.9-33.9 73.9-74.9 73.9-41.4 0-74.9-33.5-74.9-74.9v-46.5h57.3v45.8c0 10 8 17.8 17.8 17.8s17.8-7.9 17.8-17.8V200.1c0-40 34.2-72.1 74.7-72.1 40.7 0 74.7 32.3 74.7 72.6v23.7l-34.1 10.1-22.9-10.7v-20.6c.1-9.6-7.9-17.6-17.7-17.6zm167.6 123.6c0 41.4-33.5 74.9-74.9 74.9-41.2 0-74.9-33.2-74.9-74.2V263l22.9 10.7 34.1-10.1v47.1c0 9.8 8 17.6 17.8 17.6s17.8-7.9 17.8-17.6v-48h57.3c-.1 45.9-.1 46.4-.1 46.4z"},"stumbleupon":{"viewBox":"0 0 512 512","path":"M502.9 266v69.7c0 62.1-50.3 112.4-112.4 112.4-61.8 0-112.4-49.8-112.4-111.3v-70.2l34.3 16 51.1-15.2V338c0 14.7 12 26.5 26.7 26.5S417 352.7 417 338v-72h85.9zm-224.7-58.2l34.3 16 51.1-15.2V173c0-60.5-51.1-109-112.1-109-60.8 0-112.1 48.2-112.1 108.2v162.4c0 14.9-12 26.7-26.7 26.7S86 349.5 86 334.6V266H0v69.7C0 397.7 50.3 448 112.4 448c61.6 0 112.4-49.5 112.4-110.8V176.9c0-14.7 12-26.7 26.7-26.7s26.7 12 26.7 26.7v30.9z"},"delicious":{"viewBox":"0 0 448 512","path":"M446.5 68c-.4-1.5-.9-3-1.4-4.5-.9-2.5-2-4.8-3.3-7.1-1.4-2.4-3-4.8-4.7-6.9-2.1-2.5-4.4-4.8-6.9-6.8-1.1-.9-2.2-1.7-3.3-2.5-1.3-.9-2.6-1.7-4-2.4-1.8-1-3.6-1.8-5.5-2.5-1.7-.7-3.5-1.3-5.4-1.7-3.8-1-7.9-1.5-12-1.5H48C21.5 32 0 53.5 0 80v352c0 4.1.5 8.2 1.5 12 2 7.7 5.8 14.6 11 20.3 1 1.1 2.1 2.2 3.3 3.3 5.7 5.2 12.6 9 20.3 11 3.8 1 7.9 1.5 12 1.5h352c26.5 0 48-21.5 48-48V80c-.1-4.1-.6-8.2-1.6-12zM416 432c0 8.8-7.2 16-16 16H224V256H32V80c0-8.8 7.2-16 16-16h176v192h192v176z"},"digg":{"viewBox":"0 0 512 512","path":"M81.7 172.3H0v174.4h132.7V96h-51v76.3zm0 133.4H50.9v-92.3h30.8v92.3zm297.2-133.4v174.4h81.8v28.5h-81.8V416H512V172.3H378.9zm81.8 133.4h-30.8v-92.3h30.8v92.3zm-235.6 41h82.1v28.5h-82.1V416h133.3V172.3H225.1v174.4zm51.2-133.3h30.8v92.3h-30.8v-92.3zM153.3 96h51.3v51h-51.3V96zm0 76.3h51.3v174.4h-51.3V172.3z"},"pied-piper-pp":{"viewBox":"0 0 448 512","path":"M205.3 174.6c0 21.1-14.2 38.1-31.7 38.1-7.1 0-12.8-1.2-17.2-3.7v-68c4.4-2.7 10.1-4.2 17.2-4.2 17.5 0 31.7 16.9 31.7 37.8zm52.6 67c-7.1 0-12.8 1.5-17.2 4.2v68c4.4 2.5 10.1 3.7 17.2 3.7 17.4 0 31.7-16.9 31.7-37.8 0-21.1-14.3-38.1-31.7-38.1zM448 80v352c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V80c0-26.5 21.5-48 48-48h352c26.5 0 48 21.5 48 48zM185 255.1c41 0 74.2-35.6 74.2-79.6 0-44-33.2-79.6-74.2-79.6-12 0-24.1 3.2-34.6 8.8h-45.7V311l51.8-10.1v-50.6c8.6 3.1 18.1 4.8 28.5 4.8zm158.4 25.3c0-44-33.2-79.6-73.9-79.6-3.2 0-6.4.2-9.6.7-3.7 12.5-10.1 23.8-19.2 33.4-13.8 15-32.2 23.8-51.8 24.8V416l51.8-10.1v-50.6c8.6 3.2 18.2 4.7 28.7 4.7 40.8 0 74-35.6 74-79.6z"},"pied-piper-alt":{"viewBox":"0 0 576 512","path":"M242 187c6.3-11.8 13.2-17 25.9-21.8 27.3-10.3 40.2-30.5 58.9-51.1 11.9 8.4 12 24.6 31.6 23v21.8l6.3.3c37.4-14.4 74.7-30.2 106.6-54.6 48.3-36.8 52.9-50 81.3-100l2-2.6c-.6 14.1-6.3 27.3-12.4 39.9-30.5 63.8-78.7 100.3-146.8 116.7-12.4 2.9-26.4 3.2-37.6 8.9 1.4 9.8 13.2 18.1 13.2 23 0 3.4-5.5 7.2-7.5 8.6-11.2-12.9-16.1-19.3-22.7-22.1-7.6-3.5-63.9-6.4-98.8 10zm137.9 256.9c-19 0-64.1 9.5-79.9 19.8l6.9 45.1c35.7 6.1 70.1 3.6 106-9.8-4.8-10-23.5-55.1-33-55.1zM244 246c-3.2-2-6.3-2.9-10.1-2.9-6.6 0-12.6 3.2-19.3 3.7l1.7 4.9L244 246zm-12.6 31.8l24.1 61.2 21-13.8-31.3-50.9-13.8 3.5zM555.5 0l-.6 1.1-.3.9.6-.6.3-1.4zm-59.2 382.1c-33.9-56.9-75.3-118.4-150-115.5l-.3-6c-1.1-13.5 32.8 3.2 35.1-31l-14.4 7.2c-19.8-45.7-8.6-54.3-65.5-54.3-14.7 0-26.7 1.7-41.4 4.6 2.9 18.6 2.2 36.7-10.9 50.3l19.5 5.5c-1.7 3.2-2.9 6.3-2.9 9.8 0 21 42.8 2.9 42.8 33.6 0 18.4-36.8 60.1-54.9 60.1-8 0-53.7-50-53.4-60.1l.3-4.6 52.3-11.5c13-2.6 12.3-22.7-2.9-22.7-3.7 0-43.1 9.2-49.4 10.6-2-5.2-7.5-14.1-13.8-14.1-3.2 0-6.3 3.2-9.5 4-9.2 2.6-31 2.9-21.5 20.1L15.9 298.5c-5.5 1.1-8.9 6.3-8.9 11.8 0 6 5.5 10.9 11.5 10.9 8 0 131.3-28.4 147.4-32.2 2.6 3.2 4.6 6.3 7.8 8.6 20.1 14.4 59.8 85.9 76.4 85.9 24.1 0 58-22.4 71.3-41.9 3.2-4.3 6.9-7.5 12.4-6.9.6 13.8-31.6 34.2-33 43.7-1.4 10.2-1 35.2-.3 41.1 26.7 8.1 52-3.6 77.9-2.9 4.3-21 10.6-41.9 9.8-63.5l-.3-9.5c-1.4-34.2-10.9-38.5-34.8-58.6-1.1-1.1-2.6-2.6-3.7-4 2.2-1.4 1.1-1 4.6-1.7 88.5 0 56.3 183.6 111.5 229.9 33.1-15 72.5-27.9 103.5-47.2-29-25.6-52.6-45.7-72.7-79.9zm-196.2 46v27.3l11.8-3.4-2.9-23.8h-8.9zm76.1 2.9c0-1.4-.6-3.2-.9-4.6-26.8 0-36.9 3.8-59.5 6.3l2 12.4c9-1.5 58.4-6.6 58.4-14.1z"},"drupal":{"viewBox":"0 0 448 512","path":"M319.5 114.7c-22.2-14-43.5-19.5-64.7-33.5-13-8.8-31.3-30-46.5-48.3-2.7 29.3-11.5 41.2-22 49.5-21.3 17-34.8 22.2-53.5 32.3C117 123 32 181.5 32 290.5 32 399.7 123.8 480 225.8 480 327.5 480 416 406 416 294c0-112.3-83-171-96.5-179.3zm2.5 325.6c-20.1 20.1-90.1 28.7-116.7 4.2-4.8-4.8.3-12 6.5-12 0 0 17 13.3 51.5 13.3 27 0 46-7.7 54.5-14 6.1-4.6 8.4 4.3 4.2 8.5zm-54.5-52.6c8.7-3.6 29-3.8 36.8 1.3 4.1 2.8 16.1 18.8 6.2 23.7-8.4 4.2-1.2-15.7-26.5-15.7-14.7 0-19.5 5.2-26.7 11-7 6-9.8 8-12.2 4.7-6-8.2 15.9-22.3 22.4-25zM360 405c-15.2-1-45.5-48.8-65-49.5-30.9-.9-104.1 80.7-161.3 42-38.8-26.6-14.6-104.8 51.8-105.2 49.5-.5 83.8 49 108.5 48.5 21.3-.3 61.8-41.8 81.8-41.8 48.7 0 23.3 109.3-15.8 106z"},"joomla":{"viewBox":"0 0 448 512","path":"M.6 92.1C.6 58.8 27.4 32 60.4 32c30 0 54.5 21.9 59.2 50.2 32.6-7.6 67.1.6 96.5 30l-44.3 44.3c-20.5-20.5-42.6-16.3-55.4-3.5-14.3 14.3-14.3 37.9 0 52.2l99.5 99.5-44 44.3c-87.7-87.2-49.7-49.7-99.8-99.7-26.8-26.5-35-64.8-24.8-98.9C20.4 144.6.6 120.7.6 92.1zm129.5 116.4l44.3 44.3c10-10 89.7-89.7 99.7-99.8 14.3-14.3 37.6-14.3 51.9 0 12.8 12.8 17 35-3.5 55.4l44 44.3c31.2-31.2 38.5-67.6 28.9-101.2 29.2-4.1 51.9-29.2 51.9-59.5 0-33.2-26.8-60.1-59.8-60.1-30.3 0-55.4 22.5-59.5 51.6-33.8-9.9-71.7-1.5-98.3 25.1-18.3 19.1-71.1 71.5-99.6 99.9zm266.3 152.2c8.2-32.7-.9-68.5-26.3-93.9-11.8-12.2 5 4.7-99.5-99.7l-44.3 44.3 99.7 99.7c14.3 14.3 14.3 37.6 0 51.9-12.8 12.8-35 17-55.4-3.5l-44 44.3c27.6 30.2 68 38.8 102.7 28 5.5 27.4 29.7 48.1 58.9 48.1 33 0 59.8-26.8 59.8-60.1 0-30.2-22.5-55-51.6-59.1zm-84.3-53.1l-44-44.3c-87 86.4-50.4 50.4-99.7 99.8-14.3 14.3-37.6 14.3-51.9 0-13.1-13.4-16.9-35.3 3.2-55.4l-44-44.3c-30.2 30.2-38 65.2-29.5 98.3-26.7 6-46.2 29.9-46.2 58.2C0 453.2 26.8 480 59.8 480c28.6 0 52.5-19.8 58.6-46.7 32.7 8.2 68.5-.6 94.2-26 32.1-32 12.2-12.4 99.5-99.7z"},"behance":{"viewBox":"0 0 576 512","path":"M232 237.2c31.8-15.2 48.4-38.2 48.4-74 0-70.6-52.6-87.8-113.3-87.8H0v354.4h171.8c64.4 0 124.9-30.9 124.9-102.9 0-44.5-21.1-77.4-64.7-89.7zM77.9 135.9H151c28.1 0 53.4 7.9 53.4 40.5 0 30.1-19.7 42.2-47.5 42.2h-79v-82.7zm83.3 233.7H77.9V272h84.9c34.3 0 56 14.3 56 50.6 0 35.8-25.9 47-57.6 47zm358.5-240.7H376V94h143.7v34.9zM576 305.2c0-75.9-44.4-139.2-124.9-139.2-78.2 0-131.3 58.8-131.3 135.8 0 79.9 50.3 134.7 131.3 134.7 61.3 0 101-27.6 120.1-86.3H509c-6.7 21.9-34.3 33.5-55.7 33.5-41.3 0-63-24.2-63-65.3h185.1c.3-4.2.6-8.7.6-13.2zM390.4 274c2.3-33.7 24.7-54.8 58.5-54.8 35.4 0 53.2 20.8 56.2 54.8H390.4z"},"behance-square":{"viewBox":"0 0 448 512","path":"M186.5 293c0 19.3-14 25.4-31.2 25.4h-45.1v-52.9h46c18.6.1 30.3 7.8 30.3 27.5zm-7.7-82.3c0-17.7-13.7-21.9-28.9-21.9h-39.6v44.8H153c15.1 0 25.8-6.6 25.8-22.9zm132.3 23.2c-18.3 0-30.5 11.4-31.7 29.7h62.2c-1.7-18.5-11.3-29.7-30.5-29.7zM448 80v352c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V80c0-26.5 21.5-48 48-48h352c26.5 0 48 21.5 48 48zM271.7 185h77.8v-18.9h-77.8V185zm-43 110.3c0-24.1-11.4-44.9-35-51.6 17.2-8.2 26.2-17.7 26.2-37 0-38.2-28.5-47.5-61.4-47.5H68v192h93.1c34.9-.2 67.6-16.9 67.6-55.9zM380 280.5c0-41.1-24.1-75.4-67.6-75.4-42.4 0-71.1 31.8-71.1 73.6 0 43.3 27.3 73 71.1 73 33.2 0 54.7-14.9 65.1-46.8h-33.7c-3.7 11.9-18.6 18.1-30.2 18.1-22.4 0-34.1-13.1-34.1-35.3h100.2c.1-2.3.3-4.8.3-7.2z"},"steam":{"viewBox":"0 0 496 512","path":"M496 256c0 137-111.2 248-248.4 248-113.8 0-209.6-76.3-239-180.4l95.2 39.3c6.4 32.1 34.9 56.4 68.9 56.4 39.2 0 71.9-32.4 70.2-73.5l84.5-60.2c52.1 1.3 95.8-40.9 95.8-93.5 0-51.6-42-93.5-93.7-93.5s-93.7 42-93.7 93.5v1.2L176.6 279c-15.5-.9-30.7 3.4-43.5 12.1L0 236.1C10.2 108.4 117.1 8 247.6 8 384.8 8 496 119 496 256zM155.7 384.3l-30.5-12.6a52.79 52.79 0 0 0 27.2 25.8c26.9 11.2 57.8-1.6 69-28.4 5.4-13 5.5-27.3.1-40.3-5.4-13-15.5-23.2-28.5-28.6-12.9-5.4-26.7-5.2-38.9-.6l31.5 13c19.8 8.2 29.2 30.9 20.9 50.7-8.3 19.9-31 29.2-50.8 21zm173.8-129.9c-34.4 0-62.4-28-62.4-62.3s28-62.3 62.4-62.3 62.4 28 62.4 62.3-27.9 62.3-62.4 62.3zm.1-15.6c25.9 0 46.9-21 46.9-46.8 0-25.9-21-46.8-46.9-46.8s-46.9 21-46.9 46.8c.1 25.8 21.1 46.8 46.9 46.8z"},"steam-square":{"viewBox":"0 0 448 512","path":"M185.2 356.5c7.7-18.5-1-39.7-19.6-47.4l-29.5-12.2c11.4-4.3 24.3-4.5 36.4.5 12.2 5.1 21.6 14.6 26.7 26.7 5 12.2 5 25.6-.1 37.7-10.5 25.1-39.4 37-64.6 26.5-11.6-4.8-20.4-13.6-25.4-24.2l28.5 11.8c18.6 7.8 39.9-.9 47.6-19.4zM400 32H48C21.5 32 0 53.5 0 80v160.7l116.6 48.1c12-8.2 26.2-12.1 40.7-11.3l55.4-80.2v-1.1c0-48.2 39.3-87.5 87.6-87.5s87.6 39.3 87.6 87.5c0 49.2-40.9 88.7-89.6 87.5l-79 56.3c1.6 38.5-29.1 68.8-65.7 68.8-31.8 0-58.5-22.7-64.5-52.7L0 319.2V432c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zm-99.7 222.5c-32.2 0-58.4-26.1-58.4-58.3s26.2-58.3 58.4-58.3 58.4 26.2 58.4 58.3-26.2 58.3-58.4 58.3zm.1-14.6c24.2 0 43.9-19.6 43.9-43.8 0-24.2-19.6-43.8-43.9-43.8-24.2 0-43.9 19.6-43.9 43.8 0 24.2 19.7 43.8 43.9 43.8z"},"spotify":{"viewBox":"0 0 496 512","path":"M248 8C111.1 8 0 119.1 0 256s111.1 248 248 248 248-111.1 248-248S384.9 8 248 8zm100.7 364.9c-4.2 0-6.8-1.3-10.7-3.6-62.4-37.6-135-39.2-206.7-24.5-3.9 1-9 2.6-11.9 2.6-9.7 0-15.8-7.7-15.8-15.8 0-10.3 6.1-15.2 13.6-16.8 81.9-18.1 165.6-16.5 237 26.2 6.1 3.9 9.7 7.4 9.7 16.5s-7.1 15.4-15.2 15.4zm26.9-65.6c-5.2 0-8.7-2.3-12.3-4.2-62.5-37-155.7-51.9-238.6-29.4-4.8 1.3-7.4 2.6-11.9 2.6-10.7 0-19.4-8.7-19.4-19.4s5.2-17.8 15.5-20.7c27.8-7.8 56.2-13.6 97.8-13.6 64.9 0 127.6 16.1 177 45.5 8.1 4.8 11.3 11 11.3 19.7-.1 10.8-8.5 19.5-19.4 19.5zm31-76.2c-5.2 0-8.4-1.3-12.9-3.9-71.2-42.5-198.5-52.7-280.9-29.7-3.6 1-8.1 2.6-12.9 2.6-13.2 0-23.3-10.3-23.3-23.6 0-13.6 8.4-21.3 17.4-23.9 35.2-10.3 74.6-15.2 117.5-15.2 73 0 149.5 15.2 205.4 47.8 7.8 4.5 12.9 10.7 12.9 22.6 0 13.6-11 23.3-23.2 23.3z"},"deviantart":{"viewBox":"0 0 320 512","path":"M320 93.2l-98.2 179.1 7.4 9.5H320v127.7H159.1l-13.5 9.2-43.7 84c-.3 0-8.6 8.6-9.2 9.2H0v-93.2l93.2-179.4-7.4-9.2H0V102.5h156l13.5-9.2 43.7-84c.3 0 8.6-8.6 9.2-9.2H320v93.1z"},"soundcloud":{"viewBox":"0 0 640 512","path":"M111.4 256.3l5.8 65-5.8 68.3c-.3 2.5-2.2 4.4-4.4 4.4s-4.2-1.9-4.2-4.4l-5.6-68.3 5.6-65c0-2.2 1.9-4.2 4.2-4.2 2.2 0 4.1 2 4.4 4.2zm21.4-45.6c-2.8 0-4.7 2.2-5 5l-5 105.6 5 68.3c.3 2.8 2.2 5 5 5 2.5 0 4.7-2.2 4.7-5l5.8-68.3-5.8-105.6c0-2.8-2.2-5-4.7-5zm25.5-24.1c-3.1 0-5.3 2.2-5.6 5.3l-4.4 130 4.4 67.8c.3 3.1 2.5 5.3 5.6 5.3 2.8 0 5.3-2.2 5.3-5.3l5.3-67.8-5.3-130c0-3.1-2.5-5.3-5.3-5.3zM7.2 283.2c-1.4 0-2.2 1.1-2.5 2.5L0 321.3l4.7 35c.3 1.4 1.1 2.5 2.5 2.5s2.2-1.1 2.5-2.5l5.6-35-5.6-35.6c-.3-1.4-1.1-2.5-2.5-2.5zm23.6-21.9c-1.4 0-2.5 1.1-2.5 2.5l-6.4 57.5 6.4 56.1c0 1.7 1.1 2.8 2.5 2.8s2.5-1.1 2.8-2.5l7.2-56.4-7.2-57.5c-.3-1.4-1.4-2.5-2.8-2.5zm25.3-11.4c-1.7 0-3.1 1.4-3.3 3.3L47 321.3l5.8 65.8c.3 1.7 1.7 3.1 3.3 3.1 1.7 0 3.1-1.4 3.1-3.1l6.9-65.8-6.9-68.1c0-1.9-1.4-3.3-3.1-3.3zm25.3-2.2c-1.9 0-3.6 1.4-3.6 3.6l-5.8 70 5.8 67.8c0 2.2 1.7 3.6 3.6 3.6s3.6-1.4 3.9-3.6l6.4-67.8-6.4-70c-.3-2.2-2-3.6-3.9-3.6zm241.4-110.9c-1.1-.8-2.8-1.4-4.2-1.4-2.2 0-4.2.8-5.6 1.9-1.9 1.7-3.1 4.2-3.3 6.7v.8l-3.3 176.7 1.7 32.5 1.7 31.7c.3 4.7 4.2 8.6 8.9 8.6s8.6-3.9 8.6-8.6l3.9-64.2-3.9-177.5c-.4-3-2-5.8-4.5-7.2zm-26.7 15.3c-1.4-.8-2.8-1.4-4.4-1.4s-3.1.6-4.4 1.4c-2.2 1.4-3.6 3.9-3.6 6.7l-.3 1.7-2.8 160.8s0 .3 3.1 65.6v.3c0 1.7.6 3.3 1.7 4.7 1.7 1.9 3.9 3.1 6.4 3.1 2.2 0 4.2-1.1 5.6-2.5 1.7-1.4 2.5-3.3 2.5-5.6l.3-6.7 3.1-58.6-3.3-162.8c-.3-2.8-1.7-5.3-3.9-6.7zm-111.4 22.5c-3.1 0-5.8 2.8-5.8 6.1l-4.4 140.6 4.4 67.2c.3 3.3 2.8 5.8 5.8 5.8 3.3 0 5.8-2.5 6.1-5.8l5-67.2-5-140.6c-.2-3.3-2.7-6.1-6.1-6.1zm376.7 62.8c-10.8 0-21.1 2.2-30.6 6.1-6.4-70.8-65.8-126.4-138.3-126.4-17.8 0-35 3.3-50.3 9.4-6.1 2.2-7.8 4.4-7.8 9.2v249.7c0 5 3.9 8.6 8.6 9.2h218.3c43.3 0 78.6-35 78.6-78.3.1-43.6-35.2-78.9-78.5-78.9zm-296.7-60.3c-4.2 0-7.5 3.3-7.8 7.8l-3.3 136.7 3.3 65.6c.3 4.2 3.6 7.5 7.8 7.5 4.2 0 7.5-3.3 7.5-7.5l3.9-65.6-3.9-136.7c-.3-4.5-3.3-7.8-7.5-7.8zm-53.6-7.8c-3.3 0-6.4 3.1-6.4 6.7l-3.9 145.3 3.9 66.9c.3 3.6 3.1 6.4 6.4 6.4 3.6 0 6.4-2.8 6.7-6.4l4.4-66.9-4.4-145.3c-.3-3.6-3.1-6.7-6.7-6.7zm26.7 3.4c-3.9 0-6.9 3.1-6.9 6.9L227 321.3l3.9 66.4c.3 3.9 3.1 6.9 6.9 6.9s6.9-3.1 6.9-6.9l4.2-66.4-4.2-141.7c0-3.9-3-6.9-6.9-6.9z"},"vine":{"viewBox":"0 0 384 512","path":"M384 254.7v52.1c-18.4 4.2-36.9 6.1-52.1 6.1-36.9 77.4-103 143.8-125.1 156.2-14 7.9-27.1 8.4-42.7-.8C137 452 34.2 367.7 0 102.7h74.5C93.2 261.8 139 343.4 189.3 404.5c27.9-27.9 54.8-65.1 75.6-106.9-49.8-25.3-80.1-80.9-80.1-145.6 0-65.6 37.7-115.1 102.2-115.1 114.9 0 106.2 127.9 81.6 181.5 0 0-46.4 9.2-63.5-20.5 3.4-11.3 8.2-30.8 8.2-48.5 0-31.3-11.3-46.6-28.4-46.6-18.2 0-30.8 17.1-30.8 50 .1 79.2 59.4 118.7 129.9 101.9z"},"codepen":{"viewBox":"0 0 512 512","path":"M502.285 159.704l-234-156c-7.987-4.915-16.511-4.96-24.571 0l-234 156C3.714 163.703 0 170.847 0 177.989v155.999c0 7.143 3.714 14.286 9.715 18.286l234 156.022c7.987 4.915 16.511 4.96 24.571 0l234-156.022c6-3.999 9.715-11.143 9.715-18.286V177.989c-.001-7.142-3.715-14.286-9.716-18.285zM278 63.131l172.286 114.858-76.857 51.429L278 165.703V63.131zm-44 0v102.572l-95.429 63.715-76.857-51.429L234 63.131zM44 219.132l55.143 36.857L44 292.846v-73.714zm190 229.715L61.714 333.989l76.857-51.429L234 346.275v102.572zm22-140.858l-77.715-52 77.715-52 77.715 52-77.715 52zm22 140.858V346.275l95.429-63.715 76.857 51.429L278 448.847zm190-156.001l-55.143-36.857L468 219.132v73.714z"},"jsfiddle":{"viewBox":"0 0 576 512","path":"M510.634 237.462c-4.727-2.621-5.664-5.748-6.381-10.776-2.352-16.488-3.539-33.619-9.097-49.095-35.895-99.957-153.99-143.386-246.849-91.646-27.37 15.25-48.971 36.369-65.493 63.903-3.184-1.508-5.458-2.71-7.824-3.686-30.102-12.421-59.049-10.121-85.331 9.167-25.531 18.737-36.422 44.548-32.676 76.408.355 3.025-1.967 7.621-4.514 9.545-39.712 29.992-56.031 78.065-41.902 124.615 13.831 45.569 57.514 79.796 105.608 81.433 30.291 1.031 60.637.546 90.959.539 84.041-.021 168.09.531 252.12-.48 52.664-.634 96.108-36.873 108.212-87.293 11.54-48.074-11.144-97.3-56.832-122.634zm21.107 156.88c-18.23 22.432-42.343 35.253-71.28 35.65-56.874.781-113.767.23-170.652.23 0 .7-163.028.159-163.728.154-43.861-.332-76.739-19.766-95.175-59.995-18.902-41.245-4.004-90.848 34.186-116.106 9.182-6.073 12.505-11.566 10.096-23.136-5.49-26.361 4.453-47.956 26.42-62.981 22.987-15.723 47.422-16.146 72.034-3.083 10.269 5.45 14.607 11.564 22.198-2.527 14.222-26.399 34.557-46.727 60.671-61.294 97.46-54.366 228.37 7.568 230.24 132.697.122 8.15 2.412 12.428 9.848 15.894 57.56 26.829 74.456 96.122 35.142 144.497zm-87.789-80.499c-5.848 31.157-34.622 55.096-66.666 55.095-16.953-.001-32.058-6.545-44.079-17.705-27.697-25.713-71.141-74.98-95.937-93.387-20.056-14.888-41.99-12.333-60.272 3.782-49.996 44.071 15.859 121.775 67.063 77.188 4.548-3.96 7.84-9.543 12.744-12.844 8.184-5.509 20.766-.884 13.168 10.622-17.358 26.284-49.33 38.197-78.863 29.301-28.897-8.704-48.84-35.968-48.626-70.179 1.225-22.485 12.364-43.06 35.414-55.965 22.575-12.638 46.369-13.146 66.991 2.474C295.68 280.7 320.467 323.97 352.185 343.47c24.558 15.099 54.254 7.363 68.823-17.506 28.83-49.209-34.592-105.016-78.868-63.46-3.989 3.744-6.917 8.932-11.41 11.72-10.975 6.811-17.333-4.113-12.809-10.353 20.703-28.554 50.464-40.44 83.271-28.214 31.429 11.714 49.108 44.366 42.76 78.186z"},"rebel":{"viewBox":"0 0 512 512","path":"M256.5 504C117.2 504 9 387.8 13.2 249.9 16 170.7 56.4 97.7 129.7 49.5c.3 0 1.9-.6 1.1.8-5.8 5.5-111.3 129.8-14.1 226.4 49.8 49.5 90 2.5 90 2.5 38.5-50.1-.6-125.9-.6-125.9-10-24.9-45.7-40.1-45.7-40.1l28.8-31.8c24.4 10.5 43.2 38.7 43.2 38.7.8-29.6-21.9-61.4-21.9-61.4L255.1 8l44.3 50.1c-20.5 28.8-21.9 62.6-21.9 62.6 13.8-23 43.5-39.3 43.5-39.3l28.5 31.8c-27.4 8.9-45.4 39.9-45.4 39.9-15.8 28.5-27.1 89.4.6 127.3 32.4 44.6 87.7-2.8 87.7-2.8 102.7-91.9-10.5-225-10.5-225-6.1-5.5.8-2.8.8-2.8 50.1 36.5 114.6 84.4 116.2 204.8C500.9 400.2 399 504 256.5 504z"},"empire":{"viewBox":"0 0 496 512","path":"M287.6 54.2c-10.8-2.2-22.1-3.3-33.5-3.6V32.4c78.1 2.2 146.1 44 184.6 106.6l-15.8 9.1c-6.1-9.7-12.7-18.8-20.2-27.1l-18 15.5c-26-29.6-61.4-50.7-101.9-58.4l4.8-23.9zM53.4 322.4l23-7.7c-6.4-18.3-10-38.2-10-58.7s3.3-40.4 9.7-58.7l-22.7-7.7c3.6-10.8 8.3-21.3 13.6-31l-15.8-9.1C34 181 24.1 217.5 24.1 256s10 75 27.1 106.6l15.8-9.1c-5.3-10-9.7-20.3-13.6-31.1zM213.1 434c-40.4-8-75.8-29.1-101.9-58.7l-18 15.8c-7.5-8.6-14.4-17.7-20.2-27.4l-16 9.4c38.5 62.3 106.8 104.3 184.9 106.6v-18.3c-11.3-.3-22.7-1.7-33.5-3.6l4.7-23.8zM93.3 120.9l18 15.5c26-29.6 61.4-50.7 101.9-58.4l-4.7-23.8c10.8-2.2 22.1-3.3 33.5-3.6V32.4C163.9 34.6 95.9 76.4 57.4 139l15.8 9.1c6-9.7 12.6-18.9 20.1-27.2zm309.4 270.2l-18-15.8c-26 29.6-61.4 50.7-101.9 58.7l4.7 23.8c-10.8 1.9-22.1 3.3-33.5 3.6v18.3c78.1-2.2 146.4-44.3 184.9-106.6l-16.1-9.4c-5.7 9.7-12.6 18.8-20.1 27.4zM496 256c0 137-111 248-248 248S0 393 0 256 111 8 248 8s248 111 248 248zm-12.2 0c0-130.1-105.7-235.8-235.8-235.8S12.2 125.9 12.2 256 117.9 491.8 248 491.8 483.8 386.1 483.8 256zm-39-106.6l-15.8 9.1c5.3 9.7 10 20.2 13.6 31l-22.7 7.7c6.4 18.3 9.7 38.2 9.7 58.7s-3.6 40.4-10 58.7l23 7.7c-3.9 10.8-8.3 21-13.6 31l15.8 9.1C462 331 471.9 294.5 471.9 256s-9.9-75-27.1-106.6zm-183 177.7c16.3-3.3 30.4-11.6 40.7-23.5l51.2 44.8c11.9-13.6 21.3-29.3 27.1-46.8l-64.2-22.1c2.5-7.5 3.9-15.2 3.9-23.5s-1.4-16.1-3.9-23.5l64.5-22.1c-6.1-17.4-15.5-33.2-27.4-46.8l-51.2 44.8c-10.2-11.9-24.4-20.5-40.7-23.8l13.3-66.4c-8.6-1.9-17.7-2.8-27.1-2.8-9.4 0-18.5.8-27.1 2.8l13.3 66.4c-16.3 3.3-30.4 11.9-40.7 23.8l-51.2-44.8c-11.9 13.6-21.3 29.3-27.4 46.8l64.5 22.1c-2.5 7.5-3.9 15.2-3.9 23.5s1.4 16.1 3.9 23.5l-64.2 22.1c5.8 17.4 15.2 33.2 27.1 46.8l51.2-44.8c10.2 11.9 24.4 20.2 40.7 23.5l-13.3 66.7c8.6 1.7 17.7 2.8 27.1 2.8 9.4 0 18.5-1.1 27.1-2.8l-13.3-66.7z"},"git-square":{"viewBox":"0 0 448 512","path":"M140.1 348.5c12.1 0 29.5 2.1 29.5 17.9 0 15.5-13.9 18.8-27 18.8-12.3 0-30.9-2-30.9-18s15.7-18.7 28.4-18.7zm-24.7-116.6c0 14.8 6.6 24.1 22.3 24.1 15.5 0 21.2-10 21.2-24.5.1-34.4-43.5-34.8-43.5.4zM448 80v352c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V80c0-26.5 21.5-48 48-48h352c26.5 0 48 21.5 48 48zm-241 93.7c-12.3 4.8-25.5 8.4-38.9 8.4-38.5-22.1-90.7.9-90.7 49.5 0 18 11.6 42.9 29.6 48.9v.7c-13.4 5.9-17.1 36.1.7 47v.7c-19.5 6.4-32.3 18.8-32.3 40.2 0 36.8 34.8 47 65.4 47 37.1 0 64.8-13.4 64.8-54.3 0-50.4-72.1-31.8-72.1-59.1 0-9.6 5.2-13.4 14.1-15.2 29.6-5.5 48.2-28.6 48.2-58.7 0-5.2-1.1-10.2-2.9-15 4.8-1.1 9.5-2.3 14.1-3.9v-36.2zm56.8 1.8h-39.6c1.3 10.6 1.1 142.6 0 155.5h39.6c-1.1-12.8-1.2-145.1 0-155.5zm4.5-53.3c0-13.4-10-26.2-24.1-26.2-14.3 0-24.6 12.5-24.6 26.2 0 13.6 10.5 25.9 24.6 25.9 13.7 0 24.1-12.5 24.1-25.9zm104.3 53.3h-36.4c0-9.8-.4-19.6 1.1-29.5h-40.5c1.3 7.3 1.1 13.6 1.1 29.5h-17.1v33.9c11.9-1.9 12.1-.7 17.1-.7v.7h-.4v62.7c0 31.1 4.5 61.2 42.7 61.2 10.7 0 23-1.8 32.5-7v-35c-5.7 3.9-13.9 5.9-20.9 5.9-13.2 0-15.5-12.9-15.5-23.4v-65.2c22.7 0 36.4.7 36.4.7v-33.8z"},"git":{"viewBox":"0 0 448 512","path":"M18.8 221.7c0 25.3 16.2 60 41.5 68.5v1c-18.8 8.3-24 50.6 1 65.8v1C34 367 16 384.3 16 414.2c0 51.5 48.8 65.8 91.5 65.8 52 0 90.7-18.7 90.7-76 0-70.5-101-44.5-101-82.8 0-13.5 7.2-18.7 19.7-21.3 41.5-7.7 67.5-40 67.5-82.2 0-7.3-1.5-14.2-4-21 6.7-1.5 13.2-3.3 19.7-5.5v-50.5c-17.2 6.8-35.7 11.8-54.5 11.8-53.8-31-126.8 1.3-126.8 69.2zm87.7 163.8c17 0 41.2 3 41.2 25 0 21.8-19.5 26.3-37.7 26.3-17.3 0-43.3-2.7-43.3-25.2.1-22.3 22.1-26.1 39.8-26.1zM103.3 256c-22 0-31.3-13-31.3-33.8 0-49.3 61-48.8 61-.5 0 20.3-8 34.3-29.7 34.3zM432 305.5v49c-13.3 7.3-30.5 9.8-45.5 9.8-53.5 0-59.8-42.2-59.8-85.7v-87.7h.5v-1c-7 0-7.3-1.6-24 1v-47.5h24c0-22.3.3-31-1.5-41.2h56.7c-2 13.8-1.5 27.5-1.5 41.2h51v47.5s-19.3-1-51-1V281c0 14.8 3.3 32.8 21.8 32.8 9.8 0 21.3-2.8 29.3-8.3zM286 68.7c0 18.7-14.5 36.2-33.8 36.2-19.8 0-34.5-17.2-34.5-36.2 0-19.3 14.5-36.7 34.5-36.7C272 32 286 50 286 68.7zm-6.2 74.5c-1.8 14.6-1.6 199.8 0 217.8h-55.5c1.6-18.1 1.8-203 0-217.8h55.5z"},"hacker-news":{"viewBox":"0 0 448 512","path":"M0 32v448h448V32H0zm21.2 197.2H21c.1-.1.2-.3.3-.4 0 .1 0 .3-.1.4zm218 53.9V384h-31.4V281.3L128 128h37.3c52.5 98.3 49.2 101.2 59.3 125.6 12.3-27 5.8-24.4 60.6-125.6H320l-80.8 155.1z"},"tencent-weibo":{"viewBox":"0 0 384 512","path":"M72.3 495.8c1.4 19.9-27.6 22.2-29.7 2.9C31 368.8 73.7 259.2 144 185.5c-15.6-34 9.2-77.1 50.6-77.1 30.3 0 55.1 24.6 55.1 55.1 0 44-49.5 70.8-86.9 45.1-65.7 71.3-101.4 169.8-90.5 287.2zM192 .1C66.1.1-12.3 134.3 43.7 242.4 52.4 259.8 79 246.9 70 229 23.7 136.4 91 29.8 192 29.8c75.4 0 136.9 61.4 136.9 136.9 0 90.8-86.9 153.9-167.7 133.1-19.1-4.1-25.6 24.4-6.6 29.1 110.7 23.2 204-60 204-162.3C358.6 74.7 284 .1 192 .1z"},"qq":{"viewBox":"0 0 448 512","path":"M433.754 420.445c-11.526 1.393-44.86-52.741-44.86-52.741 0 31.345-16.136 72.247-51.051 101.786 16.842 5.192 54.843 19.167 45.803 34.421-7.316 12.343-125.51 7.881-159.632 4.037-34.122 3.844-152.316 8.306-159.632-4.037-9.045-15.25 28.918-29.214 45.783-34.415-34.92-29.539-51.059-70.445-51.059-101.792 0 0-33.334 54.134-44.859 52.741-5.37-.65-12.424-29.644 9.347-99.704 10.261-33.024 21.995-60.478 40.144-105.779C60.683 98.063 108.982.006 224 0c113.737.006 163.156 96.133 160.264 214.963 18.118 45.223 29.912 72.85 40.144 105.778 21.768 70.06 14.716 99.053 9.346 99.704z"},"weixin":{"viewBox":"0 0 576 512","path":"M385.2 167.6c6.4 0 12.6.3 18.8 1.1C387.4 90.3 303.3 32 207.7 32 100.5 32 13 104.8 13 197.4c0 53.4 29.3 97.5 77.9 131.6l-19.3 58.6 68-34.1c24.4 4.8 43.8 9.7 68.2 9.7 6.2 0 12.1-.3 18.3-.8-4-12.9-6.2-26.6-6.2-40.8-.1-84.9 72.9-154 165.3-154zm-104.5-52.9c14.5 0 24.2 9.7 24.2 24.4 0 14.5-9.7 24.2-24.2 24.2-14.8 0-29.3-9.7-29.3-24.2.1-14.7 14.6-24.4 29.3-24.4zm-136.4 48.6c-14.5 0-29.3-9.7-29.3-24.2 0-14.8 14.8-24.4 29.3-24.4 14.8 0 24.4 9.7 24.4 24.4 0 14.6-9.6 24.2-24.4 24.2zM563 319.4c0-77.9-77.9-141.3-165.4-141.3-92.7 0-165.4 63.4-165.4 141.3S305 460.7 397.6 460.7c19.3 0 38.9-5.1 58.6-9.9l53.4 29.3-14.8-48.6C534 402.1 563 363.2 563 319.4zm-219.1-24.5c-9.7 0-19.3-9.7-19.3-19.6 0-9.7 9.7-19.3 19.3-19.3 14.8 0 24.4 9.7 24.4 19.3 0 10-9.7 19.6-24.4 19.6zm107.1 0c-9.7 0-19.3-9.7-19.3-19.6 0-9.7 9.7-19.3 19.3-19.3 14.5 0 24.4 9.7 24.4 19.3.1 10-9.9 19.6-24.4 19.6z"},"slideshare":{"viewBox":"0 0 512 512","path":"M249.429 211.436c0 31.716-27.715 57.717-61.717 57.717-34.001 0-61.716-26.001-61.716-57.717 0-32.001 27.715-57.716 61.716-57.716 34.001 0 61.717 25.715 61.717 57.716zm254.294 50.002c-18.286 22.573-53.144 50.288-106.289 72.003C453.722 525.163 260 555.735 263.143 457.446c0 1.714-.286-52.859-.286-93.432-4.285-.858-8.571-2-13.714-3.143 0 40.858-.286 98.289-.286 96.575C252 555.735 58.278 525.163 114.566 333.441c-53.145-21.715-88.003-49.43-106.29-72.003-9.143-13.714.858-28.287 16.001-17.715 2 1.428 4.285 2.857 6.285 4.285V49.716C30.563 22.287 51.135 0 76.565 0h359.157c25.429 0 46.002 22.287 46.002 49.716v198.293l6-4.285c15.143-10.573 25.143 4 15.999 17.714zm-46.572-189.15c0-32.858-10.572-45.716-40.859-45.716H98.566c-31.716 0-40.573 10.858-40.573 45.716v192.293c67.717 35.43 125.72 29.144 157.435 28.001 13.429-.286 22.001 2.286 27.144 7.715 1.689 1.687 10.023 9.446 20.287 17.143 1.143-15.715 10.001-25.715 33.716-24.858 32.287 1.428 91.718 7.715 160.577-29.716V72.288zM331.146 153.72c-34.002 0-61.716 25.715-61.716 57.716 0 31.716 27.715 57.717 61.716 57.717 34.287 0 61.716-26.001 61.716-57.717 0-32.001-27.429-57.716-61.716-57.716z"},"twitch":{"viewBox":"0 0 448 512","path":"M40.1 32L10 108.9v314.3h107V480h60.2l56.8-56.8h87l117-117V32H40.1zm357.8 254.1L331 353H224l-56.8 56.8V353H76.9V72.1h321v214zM331 149v116.9h-40.1V149H331zm-107 0v116.9h-40.1V149H224z"},"yelp":{"viewBox":"0 0 384 512","path":"M136.9 328c-1 .3-109.2 35.7-115.8 35.7-15.2-.9-18.5-16.2-19.9-31.2-1.5-14.2-1.4-29.8.3-46.8 1.9-18.8 5.5-45.1 24.2-44 4.8 0 67.1 25.9 112.7 44.4 17.1 6.8 18.6 35.8-1.5 41.9zm57.9-113.9c1.8 38.2-25.5 48.5-47.2 14.3L41.3 60.4c-1.5-6.6.3-12.4 5.3-17.4C62.2 26.5 146 3.2 168.1 8.9c7.5 1.9 12.1 6.1 13.8 12.6 1.3 8.3 11.5 167.4 12.9 192.6zm-1.4 164.8c0 4.6.2 116.4-1.7 121.5-2.3 6-7 9.7-14.3 11.2-10.1 1.7-27.1-1.9-51-10.7-22-8.1-56.7-21.5-49.3-42.5 2.8-6.9 51.4-62.8 77.3-93.6 12-15.2 39.8-5.5 39 14.1zm180.2-117.8c-5.6 3.7-110.8 28.2-118.1 30.6l.3-.6c-18.1 4.7-35.4-18.5-23.3-34.6 3.7-3.7 65.9-92.4 72.8-97 5.2-3.6 11.3-3.8 18.3-.6 18.4 8.8 55.1 63.1 57.4 84.6-.1 2.9 1.2 11.7-7.4 17.6zm10.1 130.7c-2.7 20.6-44.5 73.4-63.8 81-6.9 2.6-12.9 2-17.7-2-5-3.5-61.8-97.1-64.9-102.3-10.9-16.2 6.8-39.8 25.6-33.2 0 0 110.5 35.7 114.7 39.4 5.2 4.1 7.2 9.8 6.1 17.1z"},"paypal":{"viewBox":"0 0 384 512","path":"M111.4 295.9c-3.5 19.2-17.4 108.7-21.5 134-.3 1.8-1 2.5-3 2.5H12.3c-7.6 0-13.1-6.6-12.1-13.9L58.8 46.6c1.5-9.6 10.1-16.9 20-16.9 152.3 0 165.1-3.7 204 11.4 60.1 23.3 65.6 79.5 44 140.3-21.5 62.6-72.5 89.5-140.1 90.3-43.4.7-69.5-7-75.3 24.2zM357.1 152c-1.8-1.3-2.5-1.8-3 1.3-2 11.4-5.1 22.5-8.8 33.6-39.9 113.8-150.5 103.9-204.5 103.9-6.1 0-10.1 3.3-10.9 9.4-22.6 140.4-27.1 169.7-27.1 169.7-1 7.1 3.5 12.9 10.6 12.9h63.5c8.6 0 15.7-6.3 17.4-14.9.7-5.4-1.1 6.1 14.4-91.3 4.6-22 14.3-19.7 29.3-19.7 71 0 126.4-28.8 142.9-112.3 6.5-34.8 4.6-71.4-23.8-92.6z"},"google-wallet":{"viewBox":"0 0 448 512","path":"M156.8 126.8c37.6 60.6 64.2 113.1 84.3 162.5-8.3 33.8-18.8 66.5-31.3 98.3-13.2-52.3-26.5-101.3-56-148.5 6.5-36.4 2.3-73.6 3-112.3zM109.3 200H16.1c-6.5 0-10.5 7.5-6.5 12.7C51.8 267 81.3 330.5 101.3 400h103.5c-16.2-69.7-38.7-133.7-82.5-193.5-3-4-8-6.5-13-6.5zm47.8-88c68.5 108 130 234.5 138.2 368H409c-12-138-68.4-265-143.2-368H157.1zm251.8-68.5c-1.8-6.8-8.2-11.5-15.2-11.5h-88.3c-5.3 0-9 5-7.8 10.3 13.2 46.5 22.3 95.5 26.5 146 48.2 86.2 79.7 178.3 90.6 270.8 15.8-60.5 25.3-133.5 25.3-203 0-73.6-12.1-145.1-31.1-212.6z"},"cc-visa":{"viewBox":"0 0 576 512","path":"M470.1 231.3s7.6 37.2 9.3 45H446c3.3-8.9 16-43.5 16-43.5-.2.3 3.3-9.1 5.3-14.9l2.8 13.4zM576 80v352c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V80c0-26.5 21.5-48 48-48h480c26.5 0 48 21.5 48 48zM152.5 331.2L215.7 176h-42.5l-39.3 106-4.3-21.5-14-71.4c-2.3-9.9-9.4-12.7-18.2-13.1H32.7l-.7 3.1c15.8 4 29.9 9.8 42.2 17.1l35.8 135h42.5zm94.4.2L272.1 176h-40.2l-25.1 155.4h40.1zm139.9-50.8c.2-17.7-10.6-31.2-33.7-42.3-14.1-7.1-22.7-11.9-22.7-19.2.2-6.6 7.3-13.4 23.1-13.4 13.1-.3 22.7 2.8 29.9 5.9l3.6 1.7 5.5-33.6c-7.9-3.1-20.5-6.6-36-6.6-39.7 0-67.6 21.2-67.8 51.4-.3 22.3 20 34.7 35.2 42.2 15.5 7.6 20.8 12.6 20.8 19.3-.2 10.4-12.6 15.2-24.1 15.2-16 0-24.6-2.5-37.7-8.3l-5.3-2.5-5.6 34.9c9.4 4.3 26.8 8.1 44.8 8.3 42.2.1 69.7-20.8 70-53zM528 331.4L495.6 176h-31.1c-9.6 0-16.9 2.8-21 12.9l-59.7 142.5H426s6.9-19.2 8.4-23.3H486c1.2 5.5 4.8 23.3 4.8 23.3H528z"},"cc-mastercard":{"viewBox":"0 0 576 512","path":"M482.9 410.3c0 6.8-4.6 11.7-11.2 11.7-6.8 0-11.2-5.2-11.2-11.7 0-6.5 4.4-11.7 11.2-11.7 6.6 0 11.2 5.2 11.2 11.7zm-310.8-11.7c-7.1 0-11.2 5.2-11.2 11.7 0 6.5 4.1 11.7 11.2 11.7 6.5 0 10.9-4.9 10.9-11.7-.1-6.5-4.4-11.7-10.9-11.7zm117.5-.3c-5.4 0-8.7 3.5-9.5 8.7h19.1c-.9-5.7-4.4-8.7-9.6-8.7zm107.8.3c-6.8 0-10.9 5.2-10.9 11.7 0 6.5 4.1 11.7 10.9 11.7 6.8 0 11.2-4.9 11.2-11.7 0-6.5-4.4-11.7-11.2-11.7zm105.9 26.1c0 .3.3.5.3 1.1 0 .3-.3.5-.3 1.1-.3.3-.3.5-.5.8-.3.3-.5.5-1.1.5-.3.3-.5.3-1.1.3-.3 0-.5 0-1.1-.3-.3 0-.5-.3-.8-.5-.3-.3-.5-.5-.5-.8-.3-.5-.3-.8-.3-1.1 0-.5 0-.8.3-1.1 0-.5.3-.8.5-1.1.3-.3.5-.3.8-.5.5-.3.8-.3 1.1-.3.5 0 .8 0 1.1.3.5.3.8.3 1.1.5s.2.6.5 1.1zm-2.2 1.4c.5 0 .5-.3.8-.3.3-.3.3-.5.3-.8 0-.3 0-.5-.3-.8-.3 0-.5-.3-1.1-.3h-1.6v3.5h.8V426h.3l1.1 1.4h.8l-1.1-1.3zM576 81v352c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V81c0-26.5 21.5-48 48-48h480c26.5 0 48 21.5 48 48zM64 220.6c0 76.5 62.1 138.5 138.5 138.5 27.2 0 53.9-8.2 76.5-23.1-72.9-59.3-72.4-171.2 0-230.5-22.6-15-49.3-23.1-76.5-23.1-76.4-.1-138.5 62-138.5 138.2zm224 108.8c70.5-55 70.2-162.2 0-217.5-70.2 55.3-70.5 162.6 0 217.5zm-142.3 76.3c0-8.7-5.7-14.4-14.7-14.7-4.6 0-9.5 1.4-12.8 6.5-2.4-4.1-6.5-6.5-12.2-6.5-3.8 0-7.6 1.4-10.6 5.4V392h-8.2v36.7h8.2c0-18.9-2.5-30.2 9-30.2 10.2 0 8.2 10.2 8.2 30.2h7.9c0-18.3-2.5-30.2 9-30.2 10.2 0 8.2 10 8.2 30.2h8.2v-23zm44.9-13.7h-7.9v4.4c-2.7-3.3-6.5-5.4-11.7-5.4-10.3 0-18.2 8.2-18.2 19.3 0 11.2 7.9 19.3 18.2 19.3 5.2 0 9-1.9 11.7-5.4v4.6h7.9V392zm40.5 25.6c0-15-22.9-8.2-22.9-15.2 0-5.7 11.9-4.8 18.5-1.1l3.3-6.5c-9.4-6.1-30.2-6-30.2 8.2 0 14.3 22.9 8.3 22.9 15 0 6.3-13.5 5.8-20.7.8l-3.5 6.3c11.2 7.6 32.6 6 32.6-7.5zm35.4 9.3l-2.2-6.8c-3.8 2.1-12.2 4.4-12.2-4.1v-16.6h13.1V392h-13.1v-11.2h-8.2V392h-7.6v7.3h7.6V416c0 17.6 17.3 14.4 22.6 10.9zm13.3-13.4h27.5c0-16.2-7.4-22.6-17.4-22.6-10.6 0-18.2 7.9-18.2 19.3 0 20.5 22.6 23.9 33.8 14.2l-3.8-6c-7.8 6.4-19.6 5.8-21.9-4.9zm59.1-21.5c-4.6-2-11.6-1.8-15.2 4.4V392h-8.2v36.7h8.2V408c0-11.6 9.5-10.1 12.8-8.4l2.4-7.6zm10.6 18.3c0-11.4 11.6-15.1 20.7-8.4l3.8-6.5c-11.6-9.1-32.7-4.1-32.7 15 0 19.8 22.4 23.8 32.7 15l-3.8-6.5c-9.2 6.5-20.7 2.6-20.7-8.6zm66.7-18.3H408v4.4c-8.3-11-29.9-4.8-29.9 13.9 0 19.2 22.4 24.7 29.9 13.9v4.6h8.2V392zm33.7 0c-2.4-1.2-11-2.9-15.2 4.4V392h-7.9v36.7h7.9V408c0-11 9-10.3 12.8-8.4l2.4-7.6zm40.3-14.9h-7.9v19.3c-8.2-10.9-29.9-5.1-29.9 13.9 0 19.4 22.5 24.6 29.9 13.9v4.6h7.9v-51.7zm7.6-75.1v4.6h.8V302h1.9v-.8h-4.6v.8h1.9zm6.6 123.8c0-.5 0-1.1-.3-1.6-.3-.3-.5-.8-.8-1.1-.3-.3-.8-.5-1.1-.8-.5 0-1.1-.3-1.6-.3-.3 0-.8.3-1.4.3-.5.3-.8.5-1.1.8-.5.3-.8.8-.8 1.1-.3.5-.3 1.1-.3 1.6 0 .3 0 .8.3 1.4 0 .3.3.8.8 1.1.3.3.5.5 1.1.8.5.3 1.1.3 1.4.3.5 0 1.1 0 1.6-.3.3-.3.8-.5 1.1-.8.3-.3.5-.8.8-1.1.3-.6.3-1.1.3-1.4zm3.2-124.7h-1.4l-1.6 3.5-1.6-3.5h-1.4v5.4h.8v-4.1l1.6 3.5h1.1l1.4-3.5v4.1h1.1v-5.4zm4.4-80.5c0-76.2-62.1-138.3-138.5-138.3-27.2 0-53.9 8.2-76.5 23.1 72.1 59.3 73.2 171.5 0 230.5 22.6 15 49.5 23.1 76.5 23.1 76.4.1 138.5-61.9 138.5-138.4z"},"cc-discover":{"viewBox":"0 0 576 512","path":"M83 212.1c0 7.9-3.2 15.5-8.9 20.7-4.9 4.4-11.6 6.4-21.9 6.4H48V185h4.2c10.3 0 16.7 1.7 21.9 6.6 5.7 5 8.9 12.6 8.9 20.5zM504.8 184h-4.9v24.9h4.7c10.3 0 15.8-4.4 15.8-12.8 0-7.9-5.5-12.1-15.6-12.1zM576 80v352c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V80c0-26.5 21.5-48 48-48h480c26.5 0 48 21.5 48 48zM428 253h45.3v-13.8H444V217h28.3v-13.8H444V185h29.3v-14H428v82zm-86.2-82l35 84.2h8.6l35.5-84.2h-17.5l-22.2 55.2-21.9-55.2h-17.5zm-83 41.6c0 24.6 19.9 44.6 44.6 44.6 24.6 0 44.6-19.9 44.6-44.6 0-24.6-19.9-44.6-44.6-44.6-24.6 0-44.6 19.9-44.6 44.6zm-68-.5c0 32.5 33.6 52.5 63.3 38.2v-19c-19.3 19.3-46.8 5.8-46.8-19.2 0-23.7 26.7-39.1 46.8-19v-19c-30.2-15-63.3 6.8-63.3 38zm-33.9 28.3c-7.6 0-13.8-3.7-17.5-10.8l-10.3 9.9c17.8 26.1 56.6 18.2 56.6-11.3 0-13.1-5.4-19-23.6-25.6-9.6-3.4-12.3-5.9-12.3-10.3 0-8.7 14.5-14.1 24.9-2.5l8.4-10.8c-19.1-17.1-49.7-8.9-49.7 14.3 0 11.3 5.2 17.2 20.2 22.7 25.7 9.1 14.7 24.4 3.3 24.4zm-57.4-28.3c0-24.1-18-41.1-44.1-41.1H32v82h23.4c30.9 0 44.1-22.4 44.1-40.9zm23.4-41.1h-16v82h16v-82zM544 288c-33.3 20.8-226.4 124.4-416 160h401c8.2 0 15-6.8 15-15V288zm0-35l-25.9-34.5c12.1-2.5 18.7-10.6 18.7-23.2 0-28.5-30.3-24.4-52.9-24.4v82h16v-32.8h2.2l22.2 32.8H544z"},"cc-amex":{"viewBox":"0 0 576 512","path":"M576 255.4c-37.9-.2-44.2-.9-54.5 5v-5c-45.3 0-53.5-1.7-64.9 5.2v-5.2h-78.2v5.1c-11.4-6.5-21.4-5.1-75.7-5.1v5.6c-6.3-3.7-14.5-5.6-24.3-5.6h-58c-3.5 3.8-12.5 13.7-15.7 17.2-12.7-14.1-10.5-11.6-15.5-17.2h-83.1v92.3h82c3.3-3.5 12.9-13.9 16.1-17.4 12.7 14.3 10.3 11.7 15.4 17.4h48.9c0-14.7.1-8.3.1-23 11.5.2 24.3-.2 34.3-6.2 0 13.9-.1 17.1-.1 29.2h39.6c0-18.5.1-7.4.1-25.3 6.2 0 7.7 0 9.4.1.1 1.3 0 0 0 25.2 152.8 0 145.9 1.1 156.7-4.5v4.5c34.8 0 54.8 2.2 67.5-6.1V432c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V228.3h26.6c4.2-10.1 2.2-5.3 6.4-15.3h19.2c4.2 10 2.2 5.2 6.4 15.3h52.9v-11.4c2.2 5 1.1 2.5 5.1 11.4h29.5c2.4-5.5 2.6-5.8 5.1-11.4v11.4h135.5v-25.1c6.4 0 8-.1 9.8.2 0 0-.2 10.9.1 24.8h66.5v-8.9c7.4 5.9 17.4 8.9 29.7 8.9h26.8c4.2-10.1 2.2-5.3 6.4-15.3h19c6.5 15 .2.5 6.6 15.3h52.8v-21.9c11.8 19.7 7.8 12.9 13.2 21.9h41.6v-92h-39.9v18.4c-12.2-20.2-6.3-10.4-11.2-18.4h-43.3v20.6c-6.2-14.6-4.6-10.8-8.8-20.6h-32.4c-.4 0-2.3.2-2.3-.3h-27.6c-12.8 0-23.1 3.2-30.7 9.3v-9.3h-39.9v5.3c-10.8-6.1-20.7-5.1-64.4-5.3-.1 0-11.6-.1-11.6 0h-103c-2.5 6.1-6.8 16.4-12.6 30-2.8-6-11-23.8-13.9-30h-46V157c-7.4-17.4-4.7-11-9-21.1H22.9c-3.4 7.9-13.7 32-23.1 53.9V80c0-26.5 21.5-48 48-48h480c26.5 0 48 21.5 48 48v175.4zm-186.6-80.6c-.3.2-1.4 2.2-1.4 7.6 0 6 .9 7.7 1.1 7.9.2.1 1.1.5 3.4.5l7.3-16.9c-1.1 0-2.1-.1-3.1-.1-5.6 0-7 .7-7.3 1zm-19.9 130.9c9.2 3.3 11 9.5 11 18.4l-.1 13.8h-16.6l.1-11.5c0-11.8-3.8-13.8-14.8-13.8h-17.6l-.1 25.3h-16.6l.1-69.3h39.4c13 0 27.1 2.3 27.1 18.7-.1 7.6-4.2 15.3-11.9 18.4zm-6.3-15.4c0-6.4-5.6-7.4-10.7-7.4h-21v15.6h20.7c5.6 0 11-1.3 11-8.2zm181.7-7.1H575v-14.6h-32.9c-12.8 0-23.8 6.6-23.8 20.7 0 33 42.7 12.8 42.7 27.4 0 5.1-4.3 6.4-8.4 6.4h-32l-.1 14.8h32c8.4 0 17.6-1.8 22.5-8.9v-25.8c-10.5-13.8-39.3-1.3-39.3-13.5 0-5.8 4.6-6.5 9.2-6.5zm-99.2-.3v-14.3h-55.2l-.1 69.3h55.2l.1-14.3-38.6-.3v-13.8H445v-14.1h-37.8v-12.5h38.5zm42.2 40.1h-32.2l-.1 14.8h32.2c14.8 0 26.2-5.6 26.2-22 0-33.2-42.9-11.2-42.9-26.3 0-5.6 4.9-6.4 9.2-6.4h30.4v-14.6h-33.2c-12.8 0-23.5 6.6-23.5 20.7 0 33 42.7 12.5 42.7 27.4-.1 5.4-4.7 6.4-8.8 6.4zm-78.1-158.7c-17.4-.3-33.2-4.1-33.2 19.7 0 11.8 2.8 19.9 16.1 19.9h7.4l23.5-54.5h24.8l27.9 65.4v-65.4h25.3l29.1 48.1v-48.1h16.9v69H524l-31.2-51.9v51.9h-33.7l-6.6-15.3h-34.3l-6.4 15.3h-19.2c-22.8 0-33-11.8-33-34 0-23.3 10.5-35.3 34-35.3h16.1v15.2zm14.3 24.5h22.8l-11.2-27.6-11.6 27.6zm-72.6-39.6h-16.9v69.3h16.9v-69.3zm-38.1 37.3c9.5 3.3 11 9.2 11 18.4v13.5h-16.6c-.3-14.8 3.6-25.1-14.8-25.1h-18v25.1h-16.4v-69.3l39.1.3c13.3 0 27.4 2 27.4 18.4.1 8-4.3 15.7-11.7 18.7zm-6.7-15.3c0-6.4-5.6-7.4-10.7-7.4h-21v15.3h20.7c5.7 0 11-1.3 11-7.9zm-59.5-7.4v-14.6h-55.5v69.3h55.5v-14.3h-38.9v-13.8h37.8v-14.1h-37.8v-12.5h38.9zm-84.6 54.7v-54.2l-24 54.2H124l-24-54.2v54.2H66.2l-6.4-15.3H25.3l-6.4 15.3H1l29.7-69.3h24.5l28.1 65.7v-65.7h27.1l21.7 47 19.7-47h27.6v69.3h-16.8zM53.9 188.8l-11.5-27.6-11.2 27.6h22.7zm253 102.5c0 27.9-30.4 23.3-49.3 23.3l-.1 23.3h-32.2l-20.4-23-21.3 23h-65.4l.1-69.3h66.5l20.5 22.8 21-22.8H279c15.6 0 27.9 5.4 27.9 22.7zm-112.7 11.8l-17.9-20.2h-41.7v12.5h36.3v14.1h-36.3v13.8h40.6l19-20.2zM241 276l-25.3 27.4 25.3 28.1V276zm48.3 15.3c0-6.1-4.6-8.4-10.2-8.4h-21.5v17.6h21.2c5.9 0 10.5-2.8 10.5-9.2z"},"cc-paypal":{"viewBox":"0 0 576 512","path":"M186.3 258.2c0 12.2-9.7 21.5-22 21.5-9.2 0-16-5.2-16-15 0-12.2 9.5-22 21.7-22 9.3 0 16.3 5.7 16.3 15.5zM80.5 209.7h-4.7c-1.5 0-3 1-3.2 2.7l-4.3 26.7 8.2-.3c11 0 19.5-1.5 21.5-14.2 2.3-13.4-6.2-14.9-17.5-14.9zm284 0H360c-1.8 0-3 1-3.2 2.7l-4.2 26.7 8-.3c13 0 22-3 22-18-.1-10.6-9.6-11.1-18.1-11.1zM576 80v352c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V80c0-26.5 21.5-48 48-48h480c26.5 0 48 21.5 48 48zM128.3 215.4c0-21-16.2-28-34.7-28h-40c-2.5 0-5 2-5.2 4.7L32 294.2c-.3 2 1.2 4 3.2 4h19c2.7 0 5.2-2.9 5.5-5.7l4.5-26.6c1-7.2 13.2-4.7 18-4.7 28.6 0 46.1-17 46.1-45.8zm84.2 8.8h-19c-3.8 0-4 5.5-4.2 8.2-5.8-8.5-14.2-10-23.7-10-24.5 0-43.2 21.5-43.2 45.2 0 19.5 12.2 32.2 31.7 32.2 9 0 20.2-4.9 26.5-11.9-.5 1.5-1 4.7-1 6.2 0 2.3 1 4 3.2 4H200c2.7 0 5-2.9 5.5-5.7l10.2-64.3c.3-1.9-1.2-3.9-3.2-3.9zm40.5 97.9l63.7-92.6c.5-.5.5-1 .5-1.7 0-1.7-1.5-3.5-3.2-3.5h-19.2c-1.7 0-3.5 1-4.5 2.5l-26.5 39-11-37.5c-.8-2.2-3-4-5.5-4h-18.7c-1.7 0-3.2 1.8-3.2 3.5 0 1.2 19.5 56.8 21.2 62.1-2.7 3.8-20.5 28.6-20.5 31.6 0 1.8 1.5 3.2 3.2 3.2h19.2c1.8-.1 3.5-1.1 4.5-2.6zm159.3-106.7c0-21-16.2-28-34.7-28h-39.7c-2.7 0-5.2 2-5.5 4.7l-16.2 102c-.2 2 1.3 4 3.2 4h20.5c2 0 3.5-1.5 4-3.2l4.5-29c1-7.2 13.2-4.7 18-4.7 28.4 0 45.9-17 45.9-45.8zm84.2 8.8h-19c-3.8 0-4 5.5-4.3 8.2-5.5-8.5-14-10-23.7-10-24.5 0-43.2 21.5-43.2 45.2 0 19.5 12.2 32.2 31.7 32.2 9.3 0 20.5-4.9 26.5-11.9-.3 1.5-1 4.7-1 6.2 0 2.3 1 4 3.2 4H484c2.7 0 5-2.9 5.5-5.7l10.2-64.3c.3-1.9-1.2-3.9-3.2-3.9zm47.5-33.3c0-2-1.5-3.5-3.2-3.5h-18.5c-1.5 0-3 1.2-3.2 2.7l-16.2 104-.3.5c0 1.8 1.5 3.5 3.5 3.5h16.5c2.5 0 5-2.9 5.2-5.7L544 191.2v-.3zm-90 51.8c-12.2 0-21.7 9.7-21.7 22 0 9.7 7 15 16.2 15 12 0 21.7-9.2 21.7-21.5.1-9.8-6.9-15.5-16.2-15.5z"},"cc-stripe":{"viewBox":"0 0 576 512","path":"M396.9 256.5c0 19.1-8.8 33.4-21.9 33.4-8.3 0-13.3-3-16.8-6.7l-.2-52.8c3.7-4.1 8.8-7 17-7 12.9-.1 21.9 14.5 21.9 33.1zM576 80v352c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V80c0-26.5 21.5-48 48-48h480c26.5 0 48 21.5 48 48zM122.2 281.1c0-42.3-54.3-34.7-54.3-50.7 0-5.5 4.6-7.7 12.1-7.7 10.8 0 24.5 3.3 35.3 9.1v-33.4c-11.8-4.7-23.5-6.5-35.3-6.5-28.8 0-48 15-48 40.2 0 39.3 54 32.9 54 49.9 0 6.6-5.7 8.7-13.6 8.7-11.8 0-26.9-4.9-38.9-11.3v33.9c13.2 5.7 26.6 8.1 38.8 8.1 29.6-.2 49.9-14.7 49.9-40.3zm68.9-86.9h-27v-30.8l-34.7 7.4-.2 113.9c0 21 15.8 36.5 36.9 36.5 11.6 0 20.2-2.1 24.9-4.7v-28.9c-4.5 1.8-27 8.3-27-12.6v-50.5h27v-30.3zm73.8 0c-4.7-1.7-21.3-4.8-29.6 10.5l-2.2-10.5h-30.7v124.5h35.5v-84.4c8.4-11 22.6-8.9 27.1-7.4v-32.7zm44.2 0h-35.7v124.5h35.7V194.2zm0-47.3l-35.7 7.6v28.9l35.7-7.6v-28.9zm122.7 108.8c0-41.3-23.5-63.8-48.4-63.8-13.9 0-22.9 6.6-27.8 11.1l-1.8-8.8h-31.3V360l35.5-7.5.1-40.2c5.1 3.7 12.7 9 25.1 9 25.4-.1 48.6-20.5 48.6-65.6zm112.2 1.2c0-36.4-17.6-65.1-51.3-65.1-33.8 0-54.3 28.7-54.3 64.9 0 42.8 24.2 64.5 58.8 64.5 17 0 29.7-3.9 39.4-9.2v-28.6c-9.7 4.9-20.8 7.9-34.9 7.9-13.8 0-26-4.9-27.6-21.5h69.5c.1-2 .4-9.4.4-12.9zm-51.6-36.1c-8.9 0-18.7 6.7-18.7 22.7h36.7c0-16-9.3-22.7-18-22.7z"},"lastfm":{"viewBox":"0 0 512 512","path":"M225.8 367.1l-18.8-51s-30.5 34-76.2 34c-40.5 0-69.2-35.2-69.2-91.5 0-72.1 36.4-97.9 72.1-97.9 66.5 0 74.8 53.3 100.9 134.9 18.8 56.9 54 102.6 155.4 102.6 72.7 0 122-22.3 122-80.9 0-72.9-62.7-80.6-115-92.1-25.8-5.9-33.4-16.4-33.4-34 0-19.9 15.8-31.7 41.6-31.7 28.2 0 43.4 10.6 45.7 35.8l58.6-7c-4.7-52.8-41.1-74.5-100.9-74.5-52.8 0-104.4 19.9-104.4 83.9 0 39.9 19.4 65.1 68 76.8 44.9 10.6 79.8 13.8 79.8 45.7 0 21.7-21.1 30.5-61 30.5-59.2 0-83.9-31.1-97.9-73.9-32-96.8-43.6-163-161.3-163C45.7 113.8 0 168.3 0 261c0 89.1 45.7 137.2 127.9 137.2 66.2 0 97.9-31.1 97.9-31.1z"},"lastfm-square":{"viewBox":"0 0 448 512","path":"M400 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zm-92.2 312.9c-63.4 0-85.4-28.6-97.1-64.1-16.3-51-21.5-84.3-63-84.3-22.4 0-45.1 16.1-45.1 61.2 0 35.2 18 57.2 43.3 57.2 28.6 0 47.6-21.3 47.6-21.3l11.7 31.9s-19.8 19.4-61.2 19.4c-51.3 0-79.9-30.1-79.9-85.8 0-57.9 28.6-92 82.5-92 73.5 0 80.8 41.4 100.8 101.9 8.8 26.8 24.2 46.2 61.2 46.2 24.9 0 38.1-5.5 38.1-19.1 0-19.9-21.8-22-49.9-28.6-30.4-7.3-42.5-23.1-42.5-48 0-40 32.3-52.4 65.2-52.4 37.4 0 60.1 13.6 63 46.6l-36.7 4.4c-1.5-15.8-11-22.4-28.6-22.4-16.1 0-26 7.3-26 19.8 0 11 4.8 17.6 20.9 21.3 32.7 7.1 71.8 12 71.8 57.5.1 36.7-30.7 50.6-76.1 50.6z"},"ioxhost":{"viewBox":"0 0 640 512","path":"M616 160h-67.3C511.2 70.7 422.9 8 320 8 183 8 72 119 72 256c0 16.4 1.6 32.5 4.7 48H24c-13.3 0-24 10.8-24 24 0 13.3 10.7 24 24 24h67.3c37.5 89.3 125.8 152 228.7 152 137 0 248-111 248-248 0-16.4-1.6-32.5-4.7-48H616c13.3 0 24-10.8 24-24 0-13.3-10.7-24-24-24zm-96 96c0 110.5-89.5 200-200 200-75.7 0-141.6-42-175.5-104H424c13.3 0 24-10.8 24-24 0-13.3-10.7-24-24-24H125.8c-3.8-15.4-5.8-31.4-5.8-48 0-110.5 89.5-200 200-200 75.7 0 141.6 42 175.5 104H216c-13.3 0-24 10.8-24 24 0 13.3 10.7 24 24 24h298.2c3.8 15.4 5.8 31.4 5.8 48zm-304-24h208c13.3 0 24 10.7 24 24 0 13.2-10.7 24-24 24H216c-13.3 0-24-10.7-24-24 0-13.2 10.7-24 24-24z"},"angellist":{"viewBox":"0 0 448 512","path":"M347.1 215.4c11.7-32.6 45.4-126.9 45.4-157.1 0-26.6-15.7-48.9-43.7-48.9-44.6 0-84.6 131.7-97.1 163.1C242 144 196.6 0 156.6 0c-31.1 0-45.7 22.9-45.7 51.7 0 35.3 34.2 126.8 46.6 162-6.3-2.3-13.1-4.3-20-4.3-23.4 0-48.3 29.1-48.3 52.6 0 8.9 4.9 21.4 8 29.7-36.9 10-51.1 34.6-51.1 71.7C46 435.6 114.4 512 210.6 512c118 0 191.4-88.6 191.4-202.9 0-43.1-6.9-82-54.9-93.7zM311.7 108c4-12.3 21.1-64.3 37.1-64.3 8.6 0 10.9 8.9 10.9 16 0 19.1-38.6 124.6-47.1 148l-34-6 33.1-93.7zM142.3 48.3c0-11.9 14.5-45.7 46.3 47.1l34.6 100.3c-15.6-1.3-27.7-3-35.4 1.4-10.9-28.8-45.5-119.7-45.5-148.8zM140 244c29.3 0 67.1 94.6 67.1 107.4 0 5.1-4.9 11.4-10.6 11.4-20.9 0-76.9-76.9-76.9-97.7.1-7.7 12.7-21.1 20.4-21.1zm184.3 186.3c-29.1 32-66.3 48.6-109.7 48.6-59.4 0-106.3-32.6-128.9-88.3-17.1-43.4 3.8-68.3 20.6-68.3 11.4 0 54.3 60.3 54.3 73.1 0 4.9-7.7 8.3-11.7 8.3-16.1 0-22.4-15.5-51.1-51.4-29.7 29.7 20.5 86.9 58.3 86.9 26.1 0 43.1-24.2 38-42 3.7 0 8.3.3 11.7-.6 1.1 27.1 9.1 59.4 41.7 61.7 0-.9 2-7.1 2-7.4 0-17.4-10.6-32.6-10.6-50.3 0-28.3 21.7-55.7 43.7-71.7 8-6 17.7-9.7 27.1-13.1 9.7-3.7 20-8 27.4-15.4-1.1-11.2-5.7-21.1-16.9-21.1-27.7 0-120.6 4-120.6-39.7 0-6.7.1-13.1 17.4-13.1 32.3 0 114.3 8 138.3 29.1 18.1 16.1 24.3 113.2-31 174.7zm-98.6-126c9.7 3.1 19.7 4 29.7 6-7.4 5.4-14 12-20.3 19.1-2.8-8.5-6.2-16.8-9.4-25.1z"},"buysellads":{"viewBox":"0 0 448 512","path":"M224 150.7l42.9 160.7h-85.8L224 150.7zM448 80v352c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V80c0-26.5 21.5-48 48-48h352c26.5 0 48 21.5 48 48zm-65.3 325.3l-94.5-298.7H159.8L65.3 405.3H156l111.7-91.6 24.2 91.6h90.8z"},"connectdevelop":{"viewBox":"0 0 576 512","path":"M550.5 241l-50.089-86.786c1.071-2.142 1.875-4.553 1.875-7.232 0-8.036-6.696-14.733-14.732-15.001l-55.447-95.893c.536-1.607 1.071-3.214 1.071-4.821 0-8.571-6.964-15.268-15.268-15.268-4.821 0-8.839 2.143-11.786 5.625H299.518C296.839 18.143 292.821 16 288 16s-8.839 2.143-11.518 5.625H170.411C167.464 18.143 163.447 16 158.625 16c-8.303 0-15.268 6.696-15.268 15.268 0 1.607.536 3.482 1.072 4.821l-55.983 97.233c-5.356 2.41-9.107 7.5-9.107 13.661 0 .535.268 1.071.268 1.607l-53.304 92.143c-7.232 1.339-12.59 7.5-12.59 15 0 7.232 5.089 13.393 12.054 15l55.179 95.358c-.536 1.607-.804 2.946-.804 4.821 0 7.232 5.089 13.393 12.054 14.732l51.697 89.732c-.536 1.607-1.071 3.482-1.071 5.357 0 8.571 6.964 15.268 15.268 15.268 4.821 0 8.839-2.143 11.518-5.357h106.875C279.161 493.857 283.447 496 288 496s8.839-2.143 11.518-5.357h107.143c2.678 2.946 6.696 4.821 10.982 4.821 8.571 0 15.268-6.964 15.268-15.268 0-1.607-.267-2.946-.803-4.285l51.697-90.268c6.964-1.339 12.054-7.5 12.054-14.732 0-1.607-.268-3.214-.804-4.821l54.911-95.358c6.964-1.339 12.322-7.5 12.322-15-.002-7.232-5.092-13.393-11.788-14.732zM153.535 450.732l-43.66-75.803h43.66v75.803zm0-83.839h-43.66c-.268-1.071-.804-2.142-1.339-3.214l44.999-47.41v50.624zm0-62.411l-50.357 53.304c-1.339-.536-2.679-1.34-4.018-1.607L43.447 259.75c.535-1.339.535-2.679.535-4.018s0-2.41-.268-3.482l51.965-90c2.679-.268 5.357-1.072 7.768-2.679l50.089 51.965v92.946zm0-102.322l-45.803-47.41c1.339-2.143 2.143-4.821 2.143-7.767 0-.268-.268-.804-.268-1.072l43.928-15.804v72.053zm0-80.625l-43.66 15.804 43.66-75.536v59.732zm326.519 39.108l.804 1.339L445.5 329.125l-63.75-67.232 98.036-101.518.268.268zM291.75 355.107l11.518 11.786H280.5l11.25-11.786zm-.268-11.25l-83.303-85.446 79.553-84.375 83.036 87.589-79.286 82.232zm5.357 5.893l79.286-82.232 67.5 71.25-5.892 28.125H313.714l-16.875-17.143zM410.411 44.393c1.071.536 2.142 1.072 3.482 1.34l57.857 100.714v.536c0 2.946.803 5.624 2.143 7.767L376.393 256l-83.035-87.589L410.411 44.393zm-9.107-2.143L287.732 162.518l-57.054-60.268 166.339-60h4.287zm-123.483 0c2.678 2.678 6.16 4.285 10.179 4.285s7.5-1.607 10.179-4.285h75L224.786 95.821 173.893 42.25h103.928zm-116.249 5.625l1.071-2.142a33.834 33.834 0 0 0 2.679-.804l51.161 53.84-54.911 19.821V47.875zm0 79.286l60.803-21.964 59.732 63.214-79.553 84.107-40.982-42.053v-83.304zm0 92.678L198 257.607l-36.428 38.304v-76.072zm0 87.858l42.053-44.464 82.768 85.982-17.143 17.678H161.572v-59.196zm6.964 162.053c-1.607-1.607-3.482-2.678-5.893-3.482l-1.071-1.607v-89.732h99.91l-91.607 94.821h-1.339zm129.911 0c-2.679-2.41-6.428-4.285-10.447-4.285s-7.767 1.875-10.447 4.285h-96.429l91.607-94.821h38.304l91.607 94.821H298.447zm120-11.786l-4.286 7.5c-1.339.268-2.41.803-3.482 1.339l-89.196-91.875h114.376l-17.412 83.036zm12.856-22.232l12.858-60.803h21.964l-34.822 60.803zm34.822-68.839h-20.357l4.553-21.16 17.143 18.214c-.535.803-1.071 1.874-1.339 2.946zm66.161-107.411l-55.447 96.697c-1.339.535-2.679 1.071-4.018 1.874l-20.625-21.964 34.554-163.928 45.803 79.286c-.267 1.339-.803 2.678-.803 4.285 0 1.339.268 2.411.536 3.75z"},"dashcube":{"viewBox":"0 0 448 512","path":"M326.6 104H110.4c-51.1 0-91.2 43.3-91.2 93.5V427c0 50.5 40.1 85 91.2 85h227.2c51.1 0 91.2-34.5 91.2-85V0L326.6 104zM153.9 416.5c-17.7 0-32.4-15.1-32.4-32.8V240.8c0-17.7 14.7-32.5 32.4-32.5h140.7c17.7 0 32 14.8 32 32.5v123.5l51.1 52.3H153.9z"},"forumbee":{"viewBox":"0 0 448 512","path":"M5.8 309.7C2 292.7 0 275.5 0 258.3 0 135 99.8 35 223.1 35c16.6 0 33.3 2 49.3 5.5C149 87.5 51.9 186 5.8 309.7zm392.9-189.2C385 103 369 87.8 350.9 75.2c-149.6 44.3-266.3 162.1-309.7 312 12.5 18.1 28 35.6 45.2 49 43.1-151.3 161.2-271.7 312.3-315.7zm15.8 252.7c15.2-25.1 25.4-53.7 29.5-82.8-79.4 42.9-145 110.6-187.6 190.3 30-4.4 58.9-15.3 84.6-31.3 35 13.1 70.9 24.3 107 33.6-9.3-36.5-20.4-74.5-33.5-109.8zm29.7-145.5c-2.6-19.5-7.9-38.7-15.8-56.8C290.5 216.7 182 327.5 137.1 466c18.1 7.6 37 12.5 56.6 15.2C240 367.1 330.5 274.4 444.2 227.7z"},"leanpub":{"viewBox":"0 0 576 512","path":"M386.539 111.485l15.096 248.955-10.979-.275c-36.232-.824-71.64 8.783-102.657 27.997-31.016-19.214-66.424-27.997-102.657-27.997-45.564 0-82.07 10.705-123.516 27.723L93.117 129.6c28.546-11.803 61.484-18.115 92.226-18.115 41.173 0 73.836 13.175 102.657 42.544 27.723-28.271 59.013-41.721 98.539-42.544zM569.07 448c-25.526 0-47.485-5.215-70.542-15.645-34.31-15.645-69.993-24.978-107.871-24.978-38.977 0-74.934 12.901-102.657 40.623-27.723-27.723-63.68-40.623-102.657-40.623-37.878 0-73.561 9.333-107.871 24.978C55.239 442.236 32.731 448 8.303 448H6.93L49.475 98.859C88.726 76.626 136.486 64 181.775 64 218.83 64 256.984 71.685 288 93.095 319.016 71.685 357.17 64 394.225 64c45.289 0 93.049 12.626 132.3 34.859L569.07 448zm-43.368-44.741l-34.036-280.246c-30.742-13.999-67.248-21.41-101.009-21.41-38.428 0-74.385 12.077-102.657 38.702-28.272-26.625-64.228-38.702-102.657-38.702-33.761 0-70.267 7.411-101.009 21.41L50.298 403.259c47.211-19.487 82.894-33.486 135.045-33.486 37.604 0 70.817 9.606 102.657 29.644 31.84-20.038 65.052-29.644 102.657-29.644 52.151 0 87.834 13.999 135.045 33.486z"},"sellsy":{"viewBox":"0 0 640 512","path":"M539.71 237.308c3.064-12.257 4.29-24.821 4.29-37.384C544 107.382 468.618 32 376.076 32c-77.22 0-144.634 53.012-163.02 127.781-15.322-13.176-34.934-20.53-55.157-20.53-46.271 0-83.962 37.69-83.962 83.961 0 7.354.92 15.015 3.065 22.369-42.9 20.225-70.785 63.738-70.785 111.234C6.216 424.843 61.68 480 129.401 480h381.198c67.72 0 123.184-55.157 123.184-123.184.001-56.384-38.916-106.025-94.073-119.508zM199.88 401.554c0 8.274-7.048 15.321-15.321 15.321H153.61c-8.274 0-15.321-7.048-15.321-15.321V290.626c0-8.273 7.048-15.321 15.321-15.321h30.949c8.274 0 15.321 7.048 15.321 15.321v110.928zm89.477 0c0 8.274-7.048 15.321-15.322 15.321h-30.949c-8.274 0-15.321-7.048-15.321-15.321V270.096c0-8.274 7.048-15.321 15.321-15.321h30.949c8.274 0 15.322 7.048 15.322 15.321v131.458zm89.477 0c0 8.274-7.047 15.321-15.321 15.321h-30.949c-8.274 0-15.322-7.048-15.322-15.321V238.84c0-8.274 7.048-15.321 15.322-15.321h30.949c8.274 0 15.321 7.048 15.321 15.321v162.714zm87.027 0c0 8.274-7.048 15.321-15.322 15.321h-28.497c-8.274 0-15.321-7.048-15.321-15.321V176.941c0-8.579 7.047-15.628 15.321-15.628h28.497c8.274 0 15.322 7.048 15.322 15.628v224.613z"},"shirtsinbulk":{"viewBox":"0 0 448 512","path":"M395.208 221.583H406v33.542h-10.792v-33.542zm0-9.625H406v-33.542h-10.792v33.542zm0 86.333H406V264.75h-10.792v33.541zM358.75 135.25h-33.542v10.5h33.542v-10.5zm36.458 206.208H406v-33.542h-10.792v33.542zM311.5 135.25h-33.542v10.5H311.5v-10.5zm-47.25 0H231v10.5h33.25v-10.5zm-47.25 0h-33.25v10.5H217v-10.5zm178.208 33.542H406V135.25h-33.542v10.5h22.75v23.042zm-255.792 259l30.625 13.417 4.375-9.917-30.625-13.417-4.375 9.917zM179.083 445l30.334 13.708 4.374-9.916-30.333-13.417-4.375 9.625zm216.125-60.375H406v-33.542h-10.792v33.542zm-334.833 8.167L91 406.208l4.375-9.624-30.625-13.709-4.375 9.917zm39.666 17.499l30.625 13.417 4.375-9.917-30.625-13.416-4.375 9.916zm132.417 38.501l4.375 9.916L267.459 445l-4.375-9.625-30.626 13.417zm118.417-52.208l4.375 9.624 30.624-13.416-4.374-9.917-30.625 13.709zM311.5 413.791l4.375 9.917 30.625-13.417-4.374-9.916-30.626 13.416zm-39.667 17.501l4.375 9.917 30.625-13.417-4.375-9.917-30.625 13.417zM311.5 46.583h-33.542v10.5H311.5v-10.5zm94.209 0h-33.251v10.5h33.251v-10.5zm-188.709 0h-33.25v10.5H217v-10.5zm141.75 0h-33.542v10.5h33.542v-10.5zm-94.5 0H231v10.5h33.25v-10.5zM448 3.708v406l-226.334 98.584L0 409.708v-406h448zm-29.166 116.958H29.166V390.75l192.792 85.75 196.875-85.75V120.666zm0-87.791H29.166V91.5h389.667V32.875zM75.542 46.583H42.291v10.5h33.251v-10.5zm94.5 0H136.5v10.5h33.542v-10.5zm-47.251 0H89.25v10.5h33.542v-10.5zm7.584 236.542c0-50.167 41.125-91.292 91.292-91.292 50.458 0 91.292 41.125 91.292 91.292 0 50.458-40.833 91.292-91.292 91.292-50.167-.001-91.292-40.834-91.292-91.292zm120.75 18.084c0 13.125-23.917 14.291-32.666 14.291-12.25 0-29.75-2.625-35.875-14.875h-.875L172.666 319c14.876 9.333 29.167 12.25 47.25 12.25 19.542 0 51.042-5.833 51.042-31.209 0-48.125-78.458-16.333-78.458-37.916 0-13.125 20.708-14.875 29.75-14.875 10.791 0 29.166 3.208 35.583 13.124h.875l8.751-16.916c-15.167-6.125-27.417-11.959-44.334-11.959-20.125 0-49.583 6.417-49.583 31.792 0 44.334 77.583 11.959 77.583 37.918zM122.791 135.25H89.25v10.5h33.542v-10.5zm-69.999 10.5h22.75v-10.5H42v33.542h10.792V145.75zm0 32.666H42v33.542h10.792v-33.542zm117.25-43.166H136.5v10.5h33.542v-10.5zm-117.25 86.333H42v33.542h10.792v-33.542zm0 86.334H42v33.542h10.792v-33.542zm0-43.167H42v33.542h10.792V264.75zm0 86.333H42v33.542h10.792v-33.542z"},"simplybuilt":{"viewBox":"0 0 512 512","path":"M481.2 64h-106c-14.5 0-26.6 11.8-26.6 26.3v39.6H163.3V90.3c0-14.5-12-26.3-26.6-26.3h-106C16.1 64 4.3 75.8 4.3 90.3v331.4c0 14.5 11.8 26.3 26.6 26.3h450.4c14.8 0 26.6-11.8 26.6-26.3V90.3c-.2-14.5-12-26.3-26.7-26.3zM149.8 355.8c-36.6 0-66.4-29.7-66.4-66.4 0-36.9 29.7-66.6 66.4-66.6 36.9 0 66.6 29.7 66.6 66.6 0 36.7-29.7 66.4-66.6 66.4zm212.4 0c-36.9 0-66.6-29.7-66.6-66.6 0-36.6 29.7-66.4 66.6-66.4 36.6 0 66.4 29.7 66.4 66.4 0 36.9-29.8 66.6-66.4 66.6z"},"skyatlas":{"viewBox":"0 0 640 512","path":"M640 329.3c0 65.9-52.5 114.4-117.5 114.4-165.9 0-196.6-249.7-359.7-249.7-146.9 0-147.1 212.2 5.6 212.2 42.5 0 90.9-17.8 125.3-42.5 5.6-4.1 16.9-16.3 22.8-16.3s10.9 5 10.9 10.9c0 7.8-13.1 19.1-18.7 24.1-40.9 35.6-100.3 61.2-154.7 61.2-83.4.1-154-59-154-144.9s67.5-149.1 152.8-149.1c185.3 0 222.5 245.9 361.9 245.9 99.9 0 94.8-139.7 3.4-139.7-17.5 0-35 11.6-46.9 11.6-8.4 0-15.9-7.2-15.9-15.6 0-11.6 5.3-23.7 5.3-36.3 0-66.6-50.9-114.7-116.9-114.7-53.1 0-80 36.9-88.8 36.9-6.2 0-11.2-5-11.2-11.2 0-5.6 4.1-10.3 7.8-14.4 25.3-28.8 64.7-43.7 102.8-43.7 79.4 0 139.1 58.4 139.1 137.8 0 6.9-.3 13.7-1.2 20.6 11.9-3.1 24.1-4.7 35.9-4.7 60.7 0 111.9 45.3 111.9 107.2z"},"facebook":{"viewBox":"0 0 448 512","path":"M448 56.7v398.5c0 13.7-11.1 24.7-24.7 24.7H309.1V306.5h58.2l8.7-67.6h-67v-43.2c0-19.6 5.4-32.9 33.5-32.9h35.8v-60.5c-6.2-.8-27.4-2.7-52.2-2.7-51.6 0-87 31.5-87 89.4v49.9h-58.4v67.6h58.4V480H24.7C11.1 480 0 468.9 0 455.3V56.7C0 43.1 11.1 32 24.7 32h398.5c13.7 0 24.8 11.1 24.8 24.7z"},"pinterest-p":{"viewBox":"0 0 384 512","path":"M204 6.5C101.4 6.5 0 74.9 0 185.6 0 256 39.6 296 63.6 296c9.9 0 15.6-27.6 15.6-35.4 0-9.3-23.7-29.1-23.7-67.8 0-80.4 61.2-137.4 140.4-137.4 68.1 0 118.5 38.7 118.5 109.8 0 53.1-21.3 152.7-90.3 152.7-24.9 0-46.2-18-46.2-43.8 0-37.8 26.4-74.4 26.4-113.4 0-66.2-93.9-54.2-93.9 25.8 0 16.8 2.1 35.4 9.6 50.7-13.8 59.4-42 147.9-42 209.1 0 18.9 2.7 37.5 4.5 56.4 3.4 3.8 1.7 3.4 6.9 1.5 50.4-69 48.6-82.5 71.4-172.8 12.3 23.4 44.1 36 69.3 36 106.2 0 153.9-103.5 153.9-196.8C384 71.3 298.2 6.5 204 6.5z"},"whatsapp":{"viewBox":"0 0 448 512","path":"M380.9 97.1C339 55.1 283.2 32 223.9 32c-122.4 0-222 99.6-222 222 0 39.1 10.2 77.3 29.6 111L0 480l117.7-30.9c32.4 17.7 68.9 27 106.1 27h.1c122.3 0 224.1-99.6 224.1-222 0-59.3-25.2-115-67.1-157zm-157 341.6c-33.2 0-65.7-8.9-94-25.7l-6.7-4-69.8 18.3L72 359.2l-4.4-7c-18.5-29.4-28.2-63.3-28.2-98.2 0-101.7 82.8-184.5 184.6-184.5 49.3 0 95.6 19.2 130.4 54.1 34.8 34.9 56.2 81.2 56.1 130.5 0 101.8-84.9 184.6-186.6 184.6zm101.2-138.2c-5.5-2.8-32.8-16.2-37.9-18-5.1-1.9-8.8-2.8-12.5 2.8-3.7 5.6-14.3 18-17.6 21.8-3.2 3.7-6.5 4.2-12 1.4-32.6-16.3-54-29.1-75.5-66-5.7-9.8 5.7-9.1 16.3-30.3 1.8-3.7.9-6.9-.5-9.7-1.4-2.8-12.5-30.1-17.1-41.2-4.5-10.8-9.1-9.3-12.5-9.5-3.2-.2-6.9-.2-10.6-.2-3.7 0-9.7 1.4-14.8 6.9-5.1 5.6-19.4 19-19.4 46.3 0 27.3 19.9 53.7 22.6 57.4 2.8 3.7 39.1 59.7 94.8 83.8 35.2 15.2 49 16.5 66.6 13.9 10.7-1.6 32.8-13.4 37.4-26.4 4.6-13 4.6-24.1 3.2-26.4-1.3-2.5-5-3.9-10.5-6.6z"},"viacoin":{"viewBox":"0 0 384 512","path":"M384 32h-64l-80.7 192h-94.5L64 32H0l48 112H0v48h68.5l13.8 32H0v48h102.8L192 480l89.2-208H384v-48h-82.3l13.8-32H384v-48h-48l48-112zM192 336l-27-64h54l-27 64z"},"medium":{"viewBox":"0 0 448 512","path":"M0 32v448h448V32H0zm372.2 106.1l-24 23c-2.1 1.6-3.1 4.2-2.7 6.7v169.3c-.4 2.6.6 5.2 2.7 6.7l23.5 23v5.1h-118V367l24.3-23.6c2.4-2.4 2.4-3.1 2.4-6.7V199.8l-67.6 171.6h-9.1L125 199.8v115c-.7 4.8 1 9.7 4.4 13.2l31.6 38.3v5.1H71.2v-5.1l31.6-38.3c3.4-3.5 4.9-8.4 4.1-13.2v-133c.4-3.7-1-7.3-3.8-9.8L75 138.1V133h87.3l67.4 148L289 133.1h83.2v5z"},"y-combinator":{"viewBox":"0 0 448 512","path":"M448 32v448H0V32h448zM236 287.5L313.5 142h-32.7L235 233c-4.7 9.3-9 18.3-12.8 26.8L210 233l-45.2-91h-35l76.7 143.8v94.5H236v-92.8z"},"optin-monster":{"viewBox":"0 0 576 512","path":"M550.671 450.303c0 11.62-15.673 19.457-32.158 14.863-12.16-3.243-31.346-17.565-36.211-27.294-5.674-11.62 4.054-32.698 18.916-30.806 15.674 1.621 49.453 25.401 49.453 43.237zM372.86 75.223c-3.783-72.151-100.796-79.718-125.928-23.51 44.588-24.321 90.257-15.673 125.928 23.51zM74.795 407.066c-15.673 1.621-49.452 25.401-49.452 43.237 0 11.62 15.673 19.457 32.157 14.863 12.16-3.243 31.076-17.565 35.94-27.294 5.946-11.62-3.782-32.698-18.645-30.806zm497.765 14.322c1.081 3.513 1.892 7.026 1.892 10.809.81 31.616-44.317 64.045-73.503 65.125-17.295.81-34.59-8.377-42.696-23.51-113.497 4.053-226.994 4.864-340.22 0-8.377 15.133-25.672 24.05-42.967 23.51-28.915-1.081-74.043-33.509-73.503-65.125.27-3.783.811-7.296 1.892-10.809-5.566-9.463-4.845-15.282 5.405-11.62 3.243-5.134 7.026-9.458 11.08-13.782-2.57-10.917 1.27-14.094 11.079-9.188 4.594-3.243 9.998-6.485 15.944-9.188 0-15.757 11.839-11.131 17.295-5.675 12.467-1.78 20.129.709 26.753 5.675v-19.726c-12.987 0-40.641-11.375-45.94-36.212-4.974-20.725 2.607-38.075 25.132-47.56.81-5.945 8.107-14.052 14.862-15.944 7.567-1.892 12.431 4.594 14.052 10.269 7.425 0 17.757 1.465 21.078 8.107 5.405-.541 11.079-1.352 16.484-1.892-2.432-1.892-5.134-3.513-8.107-4.594-5.134-8.917-13.782-11.079-24.591-11.62 0-.81 0-1.621.27-2.702-19.727-.541-44.048-5.675-54.857-17.835-21.321-23.638-15.935-83.577 12.16-103.498 8.377-5.675 21.618-.811 22.699 9.728 2.425 20.598.399 26.833 26.212 25.942 8.107-7.836 16.755-14.592 26.483-19.997-14.862-1.352-28.914 1.621-43.778 3.783 12.752-12.48 23.953-25.442 56.748-42.427 23.511-11.89 49.993-20.808 76.205-23.239-18.646-7.837-39.993-11.891-59.721-16.484 76.475-16.214 174.569-22.159 244.289 37.562 18.105 15.403 32.427 36.211 42.696 59.992 39.799 4.853 36.47-5.581 38.643-25.132 1.081-10.269 14.322-15.403 22.699-9.458 14.862 10.539 22.159 30.806 24.59 48.101 2.162 17.835.27 41.345-12.43 55.127-10.809 12.16-34.32 17.565-53.776 18.105v2.703c-11.08.27-20.268 2.432-25.673 11.62-2.972 1.081-5.674 2.703-8.377 4.594 5.675.54 11.35 1.351 16.755 1.891 1.869-5.619 12.535-8.377 21.077-8.377 1.621-5.405 6.756-11.89 14.052-10.269s14.052 9.998 14.863 15.944c10.809 4.324 22.159 12.16 25.131 25.672 1.892 8.107 1.621 15.133.27 21.888-5.726 25.262-33.361 36.212-45.939 36.212 0 6.756 0 13.241-.27 19.726 8.01-6.006 16.367-7.158 26.752-5.675 5.919-5.919 17.565-9.41 17.565 5.675 5.675 2.703 11.349 5.945 15.944 9.188 10.1-5.051 13.669-.539 10.809 9.188 4.053 4.323 8.107 8.917 11.079 13.782 10.136-3.62 11.021 2.078 5.409 11.62zm-73.773-254.016c17.295 6.756 26.212 22.159 30.265 35.67 1.081-10.539-2.702-39.453-13.782-51.073-7.296-7.296-14.052-5.134-14.052.81.001 6.216-1.35 11.62-2.431 14.593zm-18.646 12.43c12.971 15.673 17.024 41.615 12.7 62.963 10.809-2.162 20.537-6.215 26.212-12.16 1.892-2.162 3.783-4.864 4.864-7.566-1.081-21.348-10.269-42.697-29.725-48.912-3.242 3.243-9.187 4.864-14.051 5.675zm-21.889.811c7.567 20.537 12.431 42.696 14.322 64.585 3.513 0 7.567-.27 11.62-.811 5.945-24.321-.27-51.614-14.052-63.504-3.783 0-8.107 0-11.89-.27zM77.768 167.372c-1.081-2.973-2.432-8.377-2.432-14.593 0-5.945-7.026-8.107-14.052-.81-11.35 11.62-14.863 40.534-13.782 51.073 4.053-13.512 12.971-28.915 30.266-35.67zm5.675 75.394c-4.324-21.348-.27-47.291 12.701-62.963-4.865-.811-10.809-2.432-14.052-5.675-19.457 6.215-28.375 27.563-29.726 48.912 1.351 2.702 2.972 5.404 4.864 7.566 5.675 6.215 15.403 9.998 26.213 12.16zm41.345-61.073c-5.134 1.081-9.998 2.973-14.862 4.865l-12.16 5.134v-.27c-7.296 14.052-9.999 34.319-5.405 52.965 4.594.541 8.647.811 12.7.811 2.432-22.159 9.188-43.778 19.727-63.505zm88.095-23.239c0 42.155 34.319 76.205 76.205 76.205s76.205-34.05 76.205-76.205c0-41.886-34.319-75.935-76.205-75.935s-76.205 34.049-76.205 75.935zm152.41 97.283c9.969 50.608 3.299 64.692 16.484 58.099 15.944-8.107 22.699-39.183 22.97-57.019-12.971-.81-26.213-.81-39.454-1.08zm-71.611-.541v-.27c-.27 5.134.27 38.103 4.324 41.075 11.079 5.405 39.453 4.594 51.073 1.081 5.405-1.621 2.432-37.022 1.621-41.886-18.916-.27-38.102-.27-57.018 0zm-14.053 0v-.27c-19.456.27-38.642.27-57.829.811-1.892 9.187-4.594 48.911 1.892 51.614 12.971 5.675 41.616 5.134 54.586 1.621 4.595-2.432 2.433-45.399 1.351-53.776zm-85.662 57.56c5.405 2.432 8.647 2.432 9.728-4.324 1.892-8.647 2.432-36.752 4.865-52.155-12.16.27-24.591.811-36.752 1.621-5.405 19.727.27 45.129 22.159 54.858zm-65.666-11.08c43.778 47.02 92.689 85.663 155.923 106.47 67.558-19.186 115.659-59.991 163.219-107.011-11.095-4.315-7.715-10.363-7.296-11.62-8.918-.81-17.835-1.892-26.483-2.702-9.458 32.968-35.94 52.965-46.75 31.616-2.702-5.134-3.513-11.62-4.594-16.754-3.783 8.377-13.242 8.107-24.591 8.918-13.241 1.081-31.617 1.351-44.048-2.972-2.972 12.971-11.079 12.971-26.752 14.322-14.052 1.352-48.642 4.054-54.857-10.809-1.081 28.644-35.13 9.998-45.129-7.026-3.243-5.675-5.405-11.35-7.026-17.565-7.837.81-15.673 1.621-23.511 2.702 2.443 3.663 1.549 9.052-8.105 12.431zM115.6 453.545c-5.674-23.239-18.646-49.722-33.508-54.046-22.429-6.756-68.909 23.51-66.207 54.586 12.701 19.457 39.994 35.67 59.181 36.481 17.835.81 35.94-11.08 39.724-28.914.539-2.432.81-5.134.81-8.107zm7.296-5.944c33.509-19.457 69.179-35.671 105.931-47.02-38.643-20.537-68.098-47.831-97.283-77.016-2.162 1.352-5.134 2.432-7.836 3.513-1.637 4.91 8.718 5.33 5.405 12.431-2.162 4.054-8.648 7.567-15.133 9.188-2.161 2.702-5.134 4.864-7.836 6.485h-.27c-.27 13.511-.27 27.024.27 40.535 8.939 15.964 15.426 33.314 16.752 51.884zm320.764 12.7c-36.752-21.348-74.044-41.345-115.659-52.965-13.782 6.215-27.833 11.349-42.155 15.403-2.162.811-2.162.811-4.324 0-11.89-3.783-23.239-8.107-34.859-13.241-40.265 11.62-77.286 29.185-112.416 50.803h-.27v.27c.27 0 .27 0 .27-.27 103.227 4.054 206.455 3.513 309.413 0zm27.023-64.045l-.27.27c.541-13.782.811-27.563.811-41.345-2.973-1.621-5.675-4.054-8.107-6.756-6.485-1.351-12.971-5.134-15.133-8.918-1.892-4.053 1.351-7.566 5.945-10.269-.27-.541-.541-1.621-.541-2.432-2.972-.811-5.405-1.892-7.567-3.243-31.616 29.455-65.396 56.749-103.498 76.746 38.914 11.62 75.935 28.104 111.875 47.561 1.05-14.692 7.231-35.749 16.485-51.614zm23.24 3.244c-14.593 4.323-27.834 30.806-33.509 54.046 0 23.826 21.278 37.897 40.534 37.022 19.186-.811 46.48-17.024 59.181-36.481 2.973-31.077-43.507-61.344-66.206-54.587zM290.709 134.133c.045 0 .089.003.134.003.046 0 .09-.003.136-.003h-.27zm0 96.743c28.645 0 51.884-21.618 51.884-48.371 0-36.092-40.507-58.079-72.151-44.318 9.458 2.972 16.484 11.62 16.484 21.618 0 23.257-33.291 31.955-46.48 11.35-7.297 34.067 19.368 59.721 50.263 59.721zM68.039 474.083c.54 6.486 12.16 12.701 21.618 9.458 6.756-2.703 14.593-10.539 17.295-16.214 2.973-7.026-1.081-19.997-9.728-18.375-8.917 1.621-29.725 16.754-29.185 25.131zm410.75-25.131c-8.377-1.621-12.431 11.349-9.458 18.375 2.432 5.675 10.269 13.511 17.295 16.214 9.187 3.243 21.078-2.972 21.348-9.458.811-8.377-20.267-23.51-29.185-25.131z"},"opencart":{"viewBox":"0 0 640 512","path":"M423.3 440.7c0 25.3-20.3 45.6-45.6 45.6s-45.8-20.3-45.8-45.6 20.6-45.8 45.8-45.8c25.4 0 45.6 20.5 45.6 45.8zm-253.9-45.8c-25.3 0-45.6 20.6-45.6 45.8s20.3 45.6 45.6 45.6 45.8-20.3 45.8-45.6-20.5-45.8-45.8-45.8zm291.7-270C158.9 124.9 81.9 112.1 0 25.7c34.4 51.7 53.3 148.9 373.1 144.2 333.3-5 130 86.1 70.8 188.9 186.7-166.7 319.4-233.9 17.2-233.9z"},"expeditedssl":{"viewBox":"0 0 496 512","path":"M248 43.4C130.6 43.4 35.4 138.6 35.4 256S130.6 468.6 248 468.6 460.6 373.4 460.6 256 365.4 43.4 248 43.4zm-97.4 132.9c0-53.7 43.7-97.4 97.4-97.4s97.4 43.7 97.4 97.4v26.6c0 5-3.9 8.9-8.9 8.9h-17.7c-5 0-8.9-3.9-8.9-8.9v-26.6c0-82.1-124-82.1-124 0v26.6c0 5-3.9 8.9-8.9 8.9h-17.7c-5 0-8.9-3.9-8.9-8.9v-26.6zM389.7 380c0 9.7-8 17.7-17.7 17.7H124c-9.7 0-17.7-8-17.7-17.7V238.3c0-9.7 8-17.7 17.7-17.7h248c9.7 0 17.7 8 17.7 17.7V380zm-248-137.3v132.9c0 2.5-1.9 4.4-4.4 4.4h-8.9c-2.5 0-4.4-1.9-4.4-4.4V242.7c0-2.5 1.9-4.4 4.4-4.4h8.9c2.5 0 4.4 1.9 4.4 4.4zm141.7 48.7c0 13-7.2 24.4-17.7 30.4v31.6c0 5-3.9 8.9-8.9 8.9h-17.7c-5 0-8.9-3.9-8.9-8.9v-31.6c-10.5-6.1-17.7-17.4-17.7-30.4 0-19.7 15.8-35.4 35.4-35.4s35.5 15.8 35.5 35.4zM248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm0 478.3C121 486.3 17.7 383 17.7 256S121 25.7 248 25.7 478.3 129 478.3 256 375 486.3 248 486.3z"},"cc-jcb":{"viewBox":"0 0 576 512","path":"M431.5 244.3V212c41.2 0 38.5.2 38.5.2 7.3 1.3 13.3 7.3 13.3 16 0 8.8-6 14.5-13.3 15.8-1.2.4-3.3.3-38.5.3zm42.8 20.2c-2.8-.7-3.3-.5-42.8-.5v35c39.6 0 40 .2 42.8-.5 7.5-1.5 13.5-8 13.5-17 0-8.7-6-15.5-13.5-17zM576 80v352c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V80c0-26.5 21.5-48 48-48h480c26.5 0 48 21.5 48 48zM182 192.3h-57c0 67.1 10.7 109.7-35.8 109.7-19.5 0-38.8-5.7-57.2-14.8v28c30 8.3 68 8.3 68 8.3 97.9 0 82-47.7 82-131.2zm178.5 4.5c-63.4-16-165-14.9-165 59.3 0 77.1 108.2 73.6 165 59.2V287C312.9 311.7 253 309 253 256s59.8-55.6 107.5-31.2v-28zM544 286.5c0-18.5-16.5-30.5-38-32v-.8c19.5-2.7 30.3-15.5 30.3-30.2 0-19-15.7-30-37-31 0 0 6.3-.3-120.3-.3v127.5h122.7c24.3.1 42.3-12.9 42.3-33.2z"},"cc-diners-club":{"viewBox":"0 0 576 512","path":"M239.7 79.9c-96.9 0-175.8 78.6-175.8 175.8 0 96.9 78.9 175.8 175.8 175.8 97.2 0 175.8-78.9 175.8-175.8 0-97.2-78.6-175.8-175.8-175.8zm-39.9 279.6c-41.7-15.9-71.4-56.4-71.4-103.8s29.7-87.9 71.4-104.1v207.9zm79.8.3V151.6c41.7 16.2 71.4 56.7 71.4 104.1s-29.7 87.9-71.4 104.1zM528 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h480c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zM329.7 448h-90.3c-106.2 0-193.8-85.5-193.8-190.2C45.6 143.2 133.2 64 239.4 64h90.3c105 0 200.7 79.2 200.7 193.8 0 104.7-95.7 190.2-200.7 190.2z"},"creative-commons":{"viewBox":"0 0 496 512","path":"M245.83 214.87l-33.22 17.28c-9.43-19.58-25.24-19.93-27.46-19.93-22.13 0-33.22 14.61-33.22 43.84 0 23.57 9.21 43.84 33.22 43.84 14.47 0 24.65-7.09 30.57-21.26l30.55 15.5c-6.17 11.51-25.69 38.98-65.1 38.98-22.6 0-73.96-10.32-73.96-77.05 0-58.69 43-77.06 72.63-77.06 30.72-.01 52.7 11.95 65.99 35.86zm143.05 0l-32.78 17.28c-9.5-19.77-25.72-19.93-27.9-19.93-22.14 0-33.22 14.61-33.22 43.84 0 23.55 9.23 43.84 33.22 43.84 14.45 0 24.65-7.09 30.54-21.26l31 15.5c-2.1 3.75-21.39 38.98-65.09 38.98-22.69 0-73.96-9.87-73.96-77.05 0-58.67 42.97-77.06 72.63-77.06 30.71-.01 52.58 11.95 65.56 35.86zM247.56 8.05C104.74 8.05 0 123.11 0 256.05c0 138.49 113.6 248 247.56 248 129.93 0 248.44-100.87 248.44-248 0-137.87-106.62-248-248.44-248zm.87 450.81c-112.54 0-203.7-93.04-203.7-202.81 0-105.42 85.43-203.27 203.72-203.27 112.53 0 202.82 89.46 202.82 203.26-.01 121.69-99.68 202.82-202.84 202.82z"},"gg":{"viewBox":"0 0 512 512","path":"M179.2 230.4l102.4 102.4-102.4 102.4L0 256 179.2 76.8l44.8 44.8-25.6 25.6-19.2-19.2-128 128 128 128 51.5-51.5-77.1-76.5 25.6-25.6zM332.8 76.8L230.4 179.2l102.4 102.4 25.6-25.6-77.1-76.5 51.5-51.5 128 128-128 128-19.2-19.2-25.6 25.6 44.8 44.8L512 256 332.8 76.8z"},"gg-circle":{"viewBox":"0 0 512 512","path":"M257 8C120 8 9 119 9 256s111 248 248 248 248-111 248-248S394 8 257 8zm-49.5 374.8L81.8 257.1l125.7-125.7 35.2 35.4-24.2 24.2-11.1-11.1-77.2 77.2 77.2 77.2 26.6-26.6-53.1-52.9 24.4-24.4 77.2 77.2-75 75.2zm99-2.2l-35.2-35.2 24.1-24.4 11.1 11.1 77.2-77.2-77.2-77.2-26.5 26.5 53.1 52.9-24.4 24.4-77.2-77.2 75-75L432.2 255 306.5 380.6z"},"tripadvisor":{"viewBox":"0 0 576 512","path":"M166.4 280.521c0 13.236-10.73 23.966-23.966 23.966s-23.966-10.73-23.966-23.966 10.73-23.966 23.966-23.966 23.966 10.729 23.966 23.966zm264.962-23.956c-13.23 0-23.956 10.725-23.956 23.956 0 13.23 10.725 23.956 23.956 23.956 13.23 0 23.956-10.725 23.956-23.956-.001-13.231-10.726-23.956-23.956-23.956zm89.388 139.49c-62.667 49.104-153.276 38.109-202.379-24.559l-30.979 46.325-30.683-45.939c-48.277 60.39-135.622 71.891-197.885 26.055-64.058-47.158-77.759-137.316-30.601-201.374A186.762 186.762 0 0 0 0 139.416l90.286-.05a358.48 358.48 0 0 1 197.065-54.03 350.382 350.382 0 0 1 192.181 53.349l96.218.074a185.713 185.713 0 0 0-28.352 57.649c46.793 62.747 34.964 151.37-26.648 199.647zM259.366 281.761c-.007-63.557-51.535-115.075-115.092-115.068C80.717 166.7 29.2 218.228 29.206 281.785c.007 63.557 51.535 115.075 115.092 115.068 63.513-.075 114.984-51.539 115.068-115.052v-.04zm28.591-10.455c5.433-73.44 65.51-130.884 139.12-133.022a339.146 339.146 0 0 0-139.727-27.812 356.31 356.31 0 0 0-140.164 27.253c74.344 1.582 135.299 59.424 140.771 133.581zm251.706-28.767c-21.992-59.634-88.162-90.148-147.795-68.157-59.634 21.992-90.148 88.162-68.157 147.795v.032c22.038 59.607 88.198 90.091 147.827 68.113 59.615-22.004 90.113-88.162 68.125-147.783zm-326.039 37.975v.115c-.057 39.328-31.986 71.163-71.314 71.106-39.328-.057-71.163-31.986-71.106-71.314.057-39.328 31.986-71.163 71.314-71.106 39.259.116 71.042 31.94 71.106 71.199zm-24.512 0v-.084c-.051-25.784-20.994-46.645-46.778-46.594-25.784.051-46.645 20.994-46.594 46.777.051 25.784 20.994 46.645 46.777 46.594 25.726-.113 46.537-20.968 46.595-46.693zm313.423 0v.048c-.02 39.328-31.918 71.194-71.247 71.173s-71.194-31.918-71.173-71.247c.02-39.328 31.918-71.194 71.247-71.173 39.29.066 71.121 31.909 71.173 71.199zm-24.504-.008c-.009-25.784-20.918-46.679-46.702-46.67-25.784.009-46.679 20.918-46.67 46.702.009 25.784 20.918 46.678 46.702 46.67 25.765-.046 46.636-20.928 46.67-46.693v-.009z"},"odnoklassniki":{"viewBox":"0 0 320 512","path":"M275.1 334c-27.4 17.4-65.1 24.3-90 26.9l20.9 20.6 76.3 76.3c27.9 28.6-17.5 73.3-45.7 45.7-19.1-19.4-47.1-47.4-76.3-76.6L84 503.4c-28.2 27.5-73.6-17.6-45.4-45.7 19.4-19.4 47.1-47.4 76.3-76.3l20.6-20.6c-24.6-2.6-62.9-9.1-90.6-26.9-32.6-21-46.9-33.3-34.3-59 7.4-14.6 27.7-26.9 54.6-5.7 0 0 36.3 28.9 94.9 28.9s94.9-28.9 94.9-28.9c26.9-21.1 47.1-8.9 54.6 5.7 12.4 25.7-1.9 38-34.5 59.1zM30.3 129.7C30.3 58 88.6 0 160 0s129.7 58 129.7 129.7c0 71.4-58.3 129.4-129.7 129.4s-129.7-58-129.7-129.4zm66 0c0 35.1 28.6 63.7 63.7 63.7s63.7-28.6 63.7-63.7c0-35.4-28.6-64-63.7-64s-63.7 28.6-63.7 64z"},"odnoklassniki-square":{"viewBox":"0 0 448 512","path":"M184.2 177.1c0-22.1 17.9-40 39.8-40s39.8 17.9 39.8 40c0 22-17.9 39.8-39.8 39.8s-39.8-17.9-39.8-39.8zM448 80v352c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V80c0-26.5 21.5-48 48-48h352c26.5 0 48 21.5 48 48zm-305.1 97.1c0 44.6 36.4 80.9 81.1 80.9s81.1-36.2 81.1-80.9c0-44.8-36.4-81.1-81.1-81.1s-81.1 36.2-81.1 81.1zm174.5 90.7c-4.6-9.1-17.3-16.8-34.1-3.6 0 0-22.7 18-59.3 18s-59.3-18-59.3-18c-16.8-13.2-29.5-5.5-34.1 3.6-7.9 16.1 1.1 23.7 21.4 37 17.3 11.1 41.2 15.2 56.6 16.8l-12.9 12.9c-18.2 18-35.5 35.5-47.7 47.7-17.6 17.6 10.7 45.8 28.4 28.6l47.7-47.9c18.2 18.2 35.7 35.7 47.7 47.9 17.6 17.2 46-10.7 28.6-28.6l-47.7-47.7-13-12.9c15.5-1.6 39.1-5.9 56.2-16.8 20.4-13.3 29.3-21 21.5-37z"},"get-pocket":{"viewBox":"0 0 448 512","path":"M407.6 64h-367C18.5 64 0 82.5 0 104.6v135.2C0 364.5 99.7 464 224.2 464c124 0 223.8-99.5 223.8-224.2V104.6c0-22.4-17.7-40.6-40.4-40.6zm-162 268.5c-12.4 11.8-31.4 11.1-42.4 0C89.5 223.6 88.3 227.4 88.3 209.3c0-16.9 13.8-30.7 30.7-30.7 17 0 16.1 3.8 105.2 89.3 90.6-86.9 88.6-89.3 105.5-89.3 16.9 0 30.7 13.8 30.7 30.7 0 17.8-2.9 15.7-114.8 123.2z"},"wikipedia-w":{"viewBox":"0 0 640 512","path":"M640 51.2l-.3 12.2c-28.1.8-45 15.8-55.8 40.3-25 57.8-103.3 240-155.3 358.6H415l-81.9-193.1c-32.5 63.6-68.3 130-99.2 193.1-.3.3-15 0-15-.3C172 352.3 122.8 243.4 75.8 133.4 64.4 106.7 26.4 63.4.2 63.7c0-3.1-.3-10-.3-14.2h161.9v13.9c-19.2 1.1-52.8 13.3-43.3 34.2 21.9 49.7 103.6 240.3 125.6 288.6 15-29.7 57.8-109.2 75.3-142.8-13.9-28.3-58.6-133.9-72.8-160-9.7-17.8-36.1-19.4-55.8-19.7V49.8l142.5.3v13.1c-19.4.6-38.1 7.8-29.4 26.1 18.9 40 30.6 68.1 48.1 104.7 5.6-10.8 34.7-69.4 48.1-100.8 8.9-20.6-3.9-28.6-38.6-29.4.3-3.6 0-10.3.3-13.6 44.4-.3 111.1-.3 123.1-.6v13.6c-22.5.8-45.8 12.8-58.1 31.7l-59.2 122.8c6.4 16.1 63.3 142.8 69.2 156.7L559.2 91.8c-8.6-23.1-36.4-28.1-47.2-28.3V49.6l127.8 1.1.2.5z"},"safari":{"viewBox":"0 0 512 512","path":"M236.9 256.8c0-9.1 6.6-17.7 16.3-17.7 8.9 0 17.4 6.4 17.4 16.1 0 9.1-6.4 17.7-16.1 17.7-9 0-17.6-6.7-17.6-16.1zM504 256c0 137-111 248-248 248S8 393 8 256 119 8 256 8s248 111 248 248zm-26.6 0c0-122.3-99.1-221.4-221.4-221.4S34.6 133.7 34.6 256 133.7 477.4 256 477.4 477.4 378.3 477.4 256zm-72.5 96.6c0 3.6 13 10.2 16.3 12.2-27.4 41.5-69.8 71.4-117.9 83.3l-4.4-18.5c-.3-2.5-1.9-2.8-4.2-2.8-1.9 0-3 2.8-2.8 4.2l4.4 18.8c-13.3 2.8-26.8 4.2-40.4 4.2-36.3 0-72-10.2-103-29.1 1.7-2.8 12.2-18 12.2-20.2 0-1.9-1.7-3.6-3.6-3.6-3.9 0-12.2 16.6-14.7 19.9-41.8-27.7-72-70.6-83.6-119.6l19.1-4.2c2.2-.6 2.8-2.2 2.8-4.2 0-1.9-2.8-3-4.4-2.8L62 294.5c-2.5-12.7-3.9-25.5-3.9-38.5 0-37.1 10.5-73.6 30.2-104.9 2.8 1.7 16.1 10.8 18.3 10.8 1.9 0 3.6-1.4 3.6-3.3 0-3.9-14.7-11.3-18-13.6 28.2-41.2 71.1-70.9 119.8-81.9l4.2 18.5c.6 2.2 2.2 2.8 4.2 2.8s3-2.8 2.8-4.4L219 61.7c12.2-2.2 24.6-3.6 37.1-3.6 37.1 0 73.3 10.5 104.9 30.2-1.9 2.8-10.8 15.8-10.8 18 0 1.9 1.4 3.6 3.3 3.6 3.9 0 11.3-14.4 13.3-17.7 41 27.7 70.3 70 81.7 118.2l-15.5 3.3c-2.5.6-2.8 2.2-2.8 4.4 0 1.9 2.8 3 4.2 2.8l15.8-3.6c2.5 12.7 3.9 25.7 3.9 38.7 0 36.3-10 72-28.8 102.7-2.8-1.4-14.4-9.7-16.6-9.7-2.1 0-3.8 1.7-3.8 3.6zm-33.2-242.2c-13 12.2-134.2 123.7-137.6 129.5l-96.6 160.5c12.7-11.9 134.2-124 137.3-129.3l96.9-160.7z"},"chrome":{"viewBox":"0 0 496 512","path":"M131.5 217.5L55.1 100.1c47.6-59.2 119-91.8 192-92.1 42.3-.3 85.5 10.5 124.8 33.2 43.4 25.2 76.4 61.4 97.4 103L264 133.4c-58.1-3.4-113.4 29.3-132.5 84.1zm32.9 38.5c0 46.2 37.4 83.6 83.6 83.6s83.6-37.4 83.6-83.6-37.4-83.6-83.6-83.6-83.6 37.3-83.6 83.6zm314.9-89.2L339.6 174c37.9 44.3 38.5 108.2 6.6 157.2L234.1 503.6c46.5 2.5 94.4-7.7 137.8-32.9 107.4-62 150.9-192 107.4-303.9zM133.7 303.6L40.4 120.1C14.9 159.1 0 205.9 0 256c0 124 90.8 226.7 209.5 244.9l63.7-124.8c-57.6 10.8-113.2-20.8-139.5-72.5z"},"firefox":{"viewBox":"0 0 480 512","path":"M478.1 235.3c-.7-4.5-1.4-7.1-1.4-7.1s-1.8 2-4.7 5.9c-.9-10.7-2.8-21.2-5.8-31.6-3.7-12.9-8.5-25.4-14.5-37.4-3.8-8-8.2-15.6-13.3-22.8-1.8-2.7-3.7-5.4-5.6-7.9-8.8-14.4-19-23.3-30.7-40-7.6-12.8-12.9-26.9-15.4-41.6-3.2 8.9-5.7 18-7.4 27.3-12.1-12.2-22.5-20.8-28.9-26.7C319.4 24.2 323 9.1 323 9.1S264.7 74.2 289.9 142c8.7 23 23.8 43.1 43.4 57.9 24.4 20.2 50.8 36 64.7 76.6-11.2-21.3-28.1-39.2-48.8-51.5 6.2 14.7 9.4 30.6 9.3 46.5 0 61-49.6 110.5-110.6 110.4-8.3 0-16.5-.9-24.5-2.8-9.5-1.8-18.7-4.9-27.4-9.3-12.9-7.8-24-18.1-32.8-30.3l-.2-.3 2 .7c4.6 1.6 9.2 2.8 14 3.7 18.7 4 38.3 1.7 55.6-6.6 17.5-9.7 28-16.9 36.6-14h.2c8.4 2.7 15-5.5 9-14-10.4-13.4-27.4-20-44.2-17-17.5 2.5-33.5 15-56.4 2.9-1.5-.8-2.9-1.6-4.3-2.5-1.6-.9 4.9 1.3 3.4.3-5-2.5-9.8-5.4-14.4-8.6-.3-.3 3.5 1.1 3.1.8-5.9-4-11-9.2-15-15.2-4.1-7.4-4.5-16.4-1-24.1 2.1-3.8 5.4-6.9 9.3-8.7 3 1.5 4.8 2.6 4.8 2.6s-1.3-2.5-2.1-3.8c.3-.1.5 0 .8-.2 2.6 1.1 8.3 4 11.4 5.8 2.1 1.1 3.8 2.7 5.2 4.7 0 0 1-.5.3-2.7-1.1-2.7-2.9-5-5.4-6.6h.2c2.3 1.2 4.5 2.6 6.6 4.1 1.9-4.4 2.8-9.2 2.6-14 .2-2.6-.2-5.3-1.1-7.8-.8-1.6.5-2.2 1.9-.5-.2-1.3-.7-2.5-1.2-3.7v-.1s.8-1.1 1.2-1.5c1-1 2.1-1.9 3.4-2.7 7.2-4.5 14.8-8.4 22.7-11.6 6.4-2.8 11.7-4.9 12.8-5.6 1.6-1 3.1-2.2 4.5-3.5 5.3-4.5 9-10.8 10.2-17.7.1-.9.2-1.8.3-2.8v-1.5c-.9-3.5-6.9-6.1-38.4-9.1-11.1-1.8-20-10.1-22.5-21.1v.1c-.4 1.1-.9 2.3-1.3 3.5.4-1.2.8-2.3 1.3-3.5v-.2c6-15.7 16.8-29.1 30.8-38.3.8-.7-3.2.2-2.4-.5 2.7-1.3 5.4-2.5 8.2-3.5 1.4-.6-6-3.4-12.6-2.7-4 .2-8 1.2-11.7 2.8 1.6-1.3 6.2-3.1 5.1-3.1-8.4 1.6-16.5 4.7-23.9 9 0-.8.1-1.5.5-2.2-5.9 2.5-11 6.5-15 11.5.1-.9.2-1.8.2-2.7-2.7 2-5.2 4.3-7.3 6.9l-.1.1c-17.4-6.7-36.3-8.3-54.6-4.7l-.2-.1h.2c-3.8-3.1-7.1-6.7-9.7-10.9l-.2.1-.4-.2c-1.2-1.8-2.4-3.8-3.7-6-.9-1.6-1.8-3.4-2.7-5.2 0-.1-.1-.2-.2-.2-.4 0-.6 1.7-.9 1.3v-.1c-3.2-8.3-4.7-17.2-4.4-26.2l-.2.1c-5.1 3.5-9 8.6-11.1 14.5-.9 2.1-1.6 3.3-2.2 4.5v-.5c.1-1.1.6-3.3.5-3.1-.1.2-.2.3-.3.4-1.5 1.7-2.9 3.7-3.9 5.8-.9 1.9-1.7 3.9-2.3 5.9-.1.3 0-.3 0-1s.1-2 0-1.7l-.3.7c-6.7 14.9-10.9 30.8-12.4 47.1-.4 2.8-.6 5.6-.5 8.3v.2c-4.8 5.2-9 11-12.7 17.1-12.1 20.4-21.1 42.5-26.8 65.6 4-8.8 8.8-17.2 14.3-25.1C5.5 228.5 0 257.4 0 286.6c1.8-8.6 4.2-17 7-25.3-1.7 34.5 4.9 68.9 19.4 100.3 19.4 43.5 51.6 80 92.3 104.7 16.6 11.2 34.7 19.9 53.8 25.8 2.5.9 5.1 1.8 7.7 2.7-.8-.3-1.6-.7-2.4-1 22.6 6.8 46.2 10.3 69.8 10.3 83.7 0 111.3-31.9 113.8-35 4.1-3.7 7.5-8.2 9.9-13.3 1.6-.7 3.2-1.4 4.9-2.1l1-.5 1.9-.9c12.6-5.9 24.5-13.4 35.3-22.1 16.3-11.7 27.9-28.7 32.9-48.1 3-7.1 3.1-15 .4-22.2.9-1.4 1.7-2.8 2.7-4.3 18-28.9 28.2-61.9 29.6-95.9v-2.8c0-7.3-.6-14.5-1.9-21.6z"},"opera":{"viewBox":"0 0 496 512","path":"M313.9 32.7c-170.2 0-252.6 223.8-147.5 355.1 36.5 45.4 88.6 75.6 147.5 75.6 36.3 0 70.3-11.1 99.4-30.4-43.8 39.2-101.9 63-165.3 63-3.9 0-8 0-11.9-.3C104.6 489.6 0 381.1 0 248 0 111 111 0 248 0h.8c63.1.3 120.7 24.1 164.4 63.1-29-19.4-63.1-30.4-99.3-30.4zm101.8 397.7c-40.9 24.7-90.7 23.6-132-5.8 56.2-20.5 97.7-91.6 97.7-176.6 0-84.7-41.2-155.8-97.4-176.6 41.8-29.2 91.2-30.3 132.9-5 105.9 98.7 105.5 265.7-1.2 364z"},"internet-explorer":{"viewBox":"0 0 512 512","path":"M483.049 159.706c10.855-24.575 21.424-60.438 21.424-87.871 0-72.722-79.641-98.371-209.673-38.577-107.632-7.181-211.221 73.67-237.098 186.457 30.852-34.862 78.271-82.298 121.977-101.158C125.404 166.85 79.128 228.002 43.992 291.725 23.246 329.651 0 390.94 0 436.747c0 98.575 92.854 86.5 180.251 42.006 31.423 15.43 66.559 15.573 101.695 15.573 97.124 0 184.249-54.294 216.814-146.022H377.927c-52.509 88.593-196.819 52.996-196.819-47.436H509.9c6.407-43.581-1.655-95.715-26.851-141.162zM64.559 346.877c17.711 51.15 53.703 95.871 100.266 123.304-88.741 48.94-173.267 29.096-100.266-123.304zm115.977-108.873c2-55.151 50.276-94.871 103.98-94.871 53.418 0 101.981 39.72 103.981 94.871H180.536zm184.536-187.6c21.425-10.287 48.563-22.003 72.558-22.003 31.422 0 54.274 21.717 54.274 53.722 0 20.003-7.427 49.007-14.569 67.867-26.28-42.292-65.986-81.584-112.263-99.586z"},"contao":{"viewBox":"0 0 512 512","path":"M45.4 305c14.4 67.1 26.4 129 68.2 175H34c-18.7 0-34-15.2-34-34V66c0-18.7 15.2-34 34-34h57.7C77.9 44.6 65.6 59.2 54.8 75.6c-45.4 70-27 146.8-9.4 229.4zM478 32h-90.2c21.4 21.4 39.2 49.5 52.7 84.1l-137.1 29.3c-14.9-29-37.8-53.3-82.6-43.9-24.6 5.3-41 19.3-48.3 34.6-8.8 18.7-13.2 39.8 8.2 140.3 21.1 100.2 33.7 117.7 49.5 131.2 12.9 11.1 33.4 17 58.3 11.7 44.5-9.4 55.7-40.7 57.4-73.2l137.4-29.6c3.2 71.5-18.7 125.2-57.4 163.6H478c18.7 0 34-15.2 34-34V66c0-18.8-15.2-34-34-34z"},"500px":{"viewBox":"0 0 448 512","path":"M103.3 344.3c-6.5-14.2-6.9-18.3 7.4-23.1 25.6-8 8 9.2 43.2 49.2h.3v-93.9c1.2-50.2 44-92.2 97.7-92.2 53.9 0 97.7 43.5 97.7 96.8 0 63.4-60.8 113.2-128.5 93.3-10.5-4.2-2.1-31.7 8.5-28.6 53 0 89.4-10.1 89.4-64.4 0-61-77.1-89.6-116.9-44.6-23.5 26.4-17.6 42.1-17.6 157.6 50.7 31 118.3 22 160.4-20.1 24.8-24.8 38.5-58 38.5-93 0-35.2-13.8-68.2-38.8-93.3-24.8-24.8-57.8-38.5-93.3-38.5s-68.8 13.8-93.5 38.5c-.3.3-16 16.5-21.2 23.9l-.5.6c-3.3 4.7-6.3 9.1-20.1 6.1-6.9-1.7-14.3-5.8-14.3-11.8V20c0-5 3.9-10.5 10.5-10.5h241.3c8.3 0 8.3 11.6 8.3 15.1 0 3.9 0 15.1-8.3 15.1H130.3v132.9h.3c104.2-109.8 282.8-36 282.8 108.9 0 178.1-244.8 220.3-310.1 62.8zm63.3-260.8c-.5 4.2 4.6 24.5 14.6 20.6C306 56.6 384 144.5 390.6 144.5c4.8 0 22.8-15.3 14.3-22.8-93.2-89-234.5-57-238.3-38.2zM393 414.7C283 524.6 94 475.5 61 310.5c0-12.2-30.4-7.4-28.9 3.3 24 173.4 246 256.9 381.6 121.3 6.9-7.8-12.6-28.4-20.7-20.4zM213.6 306.6c0 4 4.3 7.3 5.5 8.5 3 3 6.1 4.4 8.5 4.4 3.8 0 2.6.2 22.3-19.5 19.6 19.3 19.1 19.5 22.3 19.5 5.4 0 18.5-10.4 10.7-18.2L265.6 284l18.2-18.2c6.3-6.8-10.1-21.8-16.2-15.7L249.7 268c-18.6-18.8-18.4-19.5-21.5-19.5-5 0-18 11.7-12.4 17.3L234 284c-18.1 17.9-20.4 19.2-20.4 22.6z"},"amazon":{"viewBox":"0 0 448 512","path":"M257.2 162.7c-48.7 1.8-169.5 15.5-169.5 117.5 0 109.5 138.3 114 183.5 43.2 6.5 10.2 35.4 37.5 45.3 46.8l56.8-56S341 288.9 341 261.4V114.3C341 89 316.5 32 228.7 32 140.7 32 94 87 94 136.3l73.5 6.8c16.3-49.5 54.2-49.5 54.2-49.5 40.7-.1 35.5 29.8 35.5 69.1zm0 86.8c0 80-84.2 68-84.2 17.2 0-47.2 50.5-56.7 84.2-57.8v40.6zm136 163.5c-7.7 10-70 67-174.5 67S34.2 408.5 9.7 379c-6.8-7.7 1-11.3 5.5-8.3C88.5 415.2 203 488.5 387.7 401c7.5-3.7 13.3 2 5.5 12zm39.8 2.2c-6.5 15.8-16 26.8-21.2 31-5.5 4.5-9.5 2.7-6.5-3.8s19.3-46.5 12.7-55c-6.5-8.3-37-4.3-48-3.2-10.8 1-13 2-14-.3-2.3-5.7 21.7-15.5 37.5-17.5 15.7-1.8 41-.8 46 5.7 3.7 5.1 0 27.1-6.5 43.1z"},"houzz":{"viewBox":"0 0 414 512","path":"M258.9 330.7H154.3V480H0V32h109.5v104.5l305.1 85.6V480H258.9V330.7z"},"vimeo":{"viewBox":"0 0 448 512","path":"M403.2 32H44.8C20.1 32 0 52.1 0 76.8v358.4C0 459.9 20.1 480 44.8 480h358.4c24.7 0 44.8-20.1 44.8-44.8V76.8c0-24.7-20.1-44.8-44.8-44.8zM377 180.8c-1.4 31.5-23.4 74.7-66 129.4-44 57.2-81.3 85.8-111.7 85.8-18.9 0-34.8-17.4-47.9-52.3-25.5-93.3-36.4-148-57.4-148-2.4 0-10.9 5.1-25.4 15.2l-15.2-19.6c37.3-32.8 72.9-69.2 95.2-71.2 25.2-2.4 40.7 14.8 46.5 51.7 20.7 131.2 29.9 151 67.6 91.6 13.5-21.4 20.8-37.7 21.8-48.9 3.5-33.2-25.9-30.9-45.8-22.4 15.9-52.1 46.3-77.4 91.2-76 33.3.9 49 22.5 47.1 64.7z"},"black-tie":{"viewBox":"0 0 448 512","path":"M0 32v448h448V32H0zm316.5 325.2L224 445.9l-92.5-88.7 64.5-184-64.5-86.6h184.9L252 173.2l64.5 184z"},"fonticons":{"viewBox":"0 0 448 512","path":"M0 32v448h448V32H0zm167.4 196h67.4l-11.1 37.3H168v112.9c0 5.8-2 6.7 3.2 7.3l43.5 4.1v25.1H84V389l21.3-2c5.2-.6 6.7-2.3 6.7-7.9V267.7c0-2.3-2.9-2.3-5.8-2.3H84V228h28v-21c0-49.6 26.5-70 77.3-70 34.1 0 64.7 8.2 64.7 52.8l-50.7 6.1c.3-18.7-4.4-23-16.3-23-18.4 0-19 9.9-19 27.4v23.3c0 2.4-3.5 4.4-.6 4.4zM364 414.7H261.3v-25.1l20.4-2.6c5.2-.6 7.6-1.7 7.6-7.3V271.8c0-4.1-2.9-6.7-6.7-7.9l-24.2-6.4 6.7-29.5h80.2v151.7c0 5.8-2.6 6.4 2.9 7.3l15.7 2.6v25.1zm-21.9-255.5l9 33.2-7.3 7.3-31.2-16.6-31.2 16.6-7.3-7.3 9-33.2-21.8-24.2 3.5-9.6h27.7l15.5-28h9.3l15.5 28h27.7l3.5 9.6-21.9 24.2z"},"reddit-alien":{"viewBox":"0 0 512 512","path":"M440.3 203.5c-15 0-28.2 6.2-37.9 15.9-35.7-24.7-83.8-40.6-137.1-42.3L293 52.3l88.2 19.8c0 21.6 17.6 39.2 39.2 39.2 22 0 39.7-18.1 39.7-39.7s-17.6-39.7-39.7-39.7c-15.4 0-28.7 9.3-35.3 22l-97.4-21.6c-4.9-1.3-9.7 2.2-11 7.1L246.3 177c-52.9 2.2-100.5 18.1-136.3 42.8-9.7-10.1-23.4-16.3-38.4-16.3-55.6 0-73.8 74.6-22.9 100.1-1.8 7.9-2.6 16.3-2.6 24.7 0 83.8 94.4 151.7 210.3 151.7 116.4 0 210.8-67.9 210.8-151.7 0-8.4-.9-17.2-3.1-25.1 49.9-25.6 31.5-99.7-23.8-99.7zM129.4 308.9c0-22 17.6-39.7 39.7-39.7 21.6 0 39.2 17.6 39.2 39.7 0 21.6-17.6 39.2-39.2 39.2-22 .1-39.7-17.6-39.7-39.2zm214.3 93.5c-36.4 36.4-139.1 36.4-175.5 0-4-3.5-4-9.7 0-13.7 3.5-3.5 9.7-3.5 13.2 0 27.8 28.5 120 29 149 0 3.5-3.5 9.7-3.5 13.2 0 4.1 4 4.1 10.2.1 13.7zm-.8-54.2c-21.6 0-39.2-17.6-39.2-39.2 0-22 17.6-39.7 39.2-39.7 22 0 39.7 17.6 39.7 39.7-.1 21.5-17.7 39.2-39.7 39.2z"},"edge":{"viewBox":"0 0 512 512","path":"M25.714 228.163c.111-.162.23-.323.342-.485-.021.162-.045.323-.065.485h-.277zm460.572 15.508c0-44.032-7.754-84.465-28.801-122.405C416.498 47.879 343.912 8.001 258.893 8.001 118.962 7.724 40.617 113.214 26.056 227.679c42.429-61.312 117.073-121.376 220.375-124.966 0 0 109.666 0 99.419 104.957H169.997c6.369-37.386 18.554-58.986 34.339-78.926-75.048 34.893-121.85 96.096-120.742 188.315.83 71.448 50.124 144.836 120.743 171.976 83.357 31.847 192.776 7.2 240.132-21.324V363.307c-80.864 56.494-270.871 60.925-272.255-67.572h314.073v-52.064z"},"codiepie":{"viewBox":"0 0 472 512","path":"M422.5 202.9c30.7 0 33.5 53.1-.3 53.1h-10.8v44.3h-26.6v-97.4h37.7zM472 352.6C429.9 444.5 350.4 504 248 504 111 504 0 393 0 256S111 8 248 8c97.4 0 172.8 53.7 218.2 138.4l-186 108.8L472 352.6zm-38.5 12.5l-60.3-30.7c-27.1 44.3-70.4 71.4-122.4 71.4-82.5 0-149.2-66.7-149.2-148.9 0-82.5 66.7-149.2 149.2-149.2 48.4 0 88.9 23.5 116.9 63.4l59.5-34.6c-40.7-62.6-104.7-100-179.2-100-121.2 0-219.5 98.3-219.5 219.5S126.8 475.5 248 475.5c78.6 0 146.5-42.1 185.5-110.4z"},"modx":{"viewBox":"0 0 448 512","path":"M356 241.8l36.7 23.7V480l-133-83.8L356 241.8zM440 75H226.3l-23 37.8 153.5 96.5L440 75zm-89 142.8L55.2 32v214.5l46 29L351 217.8zM97 294.2L8 437h213.7l125-200.5L97 294.2z"},"fort-awesome":{"viewBox":"0 0 512 512","path":"M489.2 287.9h-27.4c-2.6 0-4.6 2-4.6 4.6v32h-36.6V146.2c0-2.6-2-4.6-4.6-4.6h-27.4c-2.6 0-4.6 2-4.6 4.6v32h-36.6v-32c0-2.6-2-4.6-4.6-4.6h-27.4c-2.6 0-4.6 2-4.6 4.6v32h-36.6v-32c0-6-8-4.6-11.7-4.6v-38c8.3-2 17.1-3.4 25.7-3.4 10.9 0 20.9 4.3 31.4 4.3 4.6 0 27.7-1.1 27.7-8v-60c0-2.6-2-4.6-4.6-4.6-5.1 0-15.1 4.3-24 4.3-9.7 0-20.9-4.3-32.6-4.3-8 0-16 1.1-23.7 2.9v-4.9c5.4-2.6 9.1-8.3 9.1-14.3 0-20.7-31.4-20.8-31.4 0 0 6 3.7 11.7 9.1 14.3v111.7c-3.7 0-11.7-1.4-11.7 4.6v32h-36.6v-32c0-2.6-2-4.6-4.6-4.6h-27.4c-2.6 0-4.6 2-4.6 4.6v32H128v-32c0-2.6-2-4.6-4.6-4.6H96c-2.6 0-4.6 2-4.6 4.6v178.3H54.8v-32c0-2.6-2-4.6-4.6-4.6H22.8c-2.6 0-4.6 2-4.6 4.6V512h182.9v-96c0-72.6 109.7-72.6 109.7 0v96h182.9V292.5c.1-2.6-1.9-4.6-4.5-4.6zm-288.1-4.5c0 2.6-2 4.6-4.6 4.6h-27.4c-2.6 0-4.6-2-4.6-4.6v-64c0-2.6 2-4.6 4.6-4.6h27.4c2.6 0 4.6 2 4.6 4.6v64zm146.4 0c0 2.6-2 4.6-4.6 4.6h-27.4c-2.6 0-4.6-2-4.6-4.6v-64c0-2.6 2-4.6 4.6-4.6h27.4c2.6 0 4.6 2 4.6 4.6v64z"},"usb":{"viewBox":"0 0 640 512","path":"M641.5 256c0 3.1-1.7 6.1-4.5 7.5L547.9 317c-1.4.8-2.8 1.4-4.5 1.4-1.4 0-3.1-.3-4.5-1.1-2.8-1.7-4.5-4.5-4.5-7.8v-35.6H295.7c25.3 39.6 40.5 106.9 69.6 106.9H392V354c0-5 3.9-8.9 8.9-8.9H490c5 0 8.9 3.9 8.9 8.9v89.1c0 5-3.9 8.9-8.9 8.9h-89.1c-5 0-8.9-3.9-8.9-8.9v-26.7h-26.7c-75.4 0-81.1-142.5-124.7-142.5H140.3c-8.1 30.6-35.9 53.5-69 53.5C32 327.3 0 295.3 0 256s32-71.3 71.3-71.3c33.1 0 61 22.8 69 53.5 39.1 0 43.9 9.5 74.6-60.4C255 88.7 273 95.7 323.8 95.7c7.5-20.9 27-35.6 50.4-35.6 29.5 0 53.5 23.9 53.5 53.5s-23.9 53.5-53.5 53.5c-23.4 0-42.9-14.8-50.4-35.6H294c-29.1 0-44.3 67.4-69.6 106.9h310.1v-35.6c0-3.3 1.7-6.1 4.5-7.8 2.8-1.7 6.4-1.4 8.9.3l89.1 53.5c2.8 1.1 4.5 4.1 4.5 7.2z"},"product-hunt":{"viewBox":"0 0 512 512","path":"M326.3 218.8c0 20.5-16.7 37.2-37.2 37.2h-70.3v-74.4h70.3c20.5 0 37.2 16.7 37.2 37.2zM504 256c0 137-111 248-248 248S8 393 8 256 119 8 256 8s248 111 248 248zm-128.1-37.2c0-47.9-38.9-86.8-86.8-86.8H169.2v248h49.6v-74.4h70.3c47.9 0 86.8-38.9 86.8-86.8z"},"mixcloud":{"viewBox":"0 0 640 512","path":"M424.43 219.729C416.124 134.727 344.135 68 256.919 68c-72.266 0-136.224 46.516-159.205 114.074-54.545 8.029-96.63 54.822-96.63 111.582 0 62.298 50.668 112.966 113.243 112.966h289.614c52.329 0 94.969-42.362 94.969-94.693 0-45.131-32.118-83.063-74.48-92.2zm-20.489 144.53H114.327c-39.04 0-70.881-31.564-70.881-70.604s31.841-70.604 70.881-70.604c18.827 0 36.548 7.475 49.838 20.766 19.963 19.963 50.133-10.227 30.18-30.18-14.675-14.398-32.672-24.365-52.053-29.349 19.935-44.3 64.79-73.926 114.628-73.926 69.496 0 125.979 56.483 125.979 125.702 0 13.568-2.215 26.857-6.369 39.594-8.943 27.517 32.133 38.939 40.147 13.29 2.769-8.306 4.984-16.889 6.369-25.472 19.381 7.476 33.502 26.303 33.502 48.453 0 28.795-23.535 52.33-52.607 52.33zm235.069-52.33c0 44.024-12.737 86.386-37.102 122.657-4.153 6.092-10.798 9.414-17.72 9.414-16.317 0-27.127-18.826-17.443-32.949 19.381-29.349 29.903-63.682 29.903-99.122s-10.521-69.773-29.903-98.845c-15.655-22.831 19.361-47.24 35.163-23.534 24.366 35.993 37.102 78.356 37.102 122.379zm-70.88 0c0 31.565-9.137 62.021-26.857 88.325-4.153 6.091-10.798 9.136-17.72 9.136-17.201 0-27.022-18.979-17.443-32.948 13.013-19.104 19.658-41.255 19.658-64.513 0-22.981-6.645-45.408-19.658-64.512-15.761-22.986 19.008-47.095 35.163-23.535 17.719 26.026 26.857 56.483 26.857 88.047z"},"scribd":{"viewBox":"0 0 384 512","path":"M42.3 252.7c-16.1-19-24.7-45.9-24.8-79.9 0-100.4 75.2-153.1 167.2-153.1 98.6-1.6 156.8 49 184.3 70.6l-50.5 72.1-37.3-24.6 26.9-38.6c-36.5-24-79.4-36.5-123-35.8-50.7-.8-111.7 27.2-111.7 76.2 0 18.7 11.2 20.7 28.6 15.6 23.3-5.3 41.9.6 55.8 14 26.4 24.3 23.2 67.6-.7 91.9-29.2 29.5-85.2 27.3-114.8-8.4zm317.7 5.9c-15.5-18.8-38.9-29.4-63.2-28.6-38.1-2-71.1 28-70.5 67.2-.7 16.8 6 33 18.4 44.3 14.1 13.9 33 19.7 56.3 14.4 17.4-5.1 28.6-3.1 28.6 15.6 0 4.3-.5 8.5-1.4 12.7-16.7 40.9-59.5 64.4-121.4 64.4-51.9.2-102.4-16.4-144.1-47.3l33.7-39.4-35.6-27.4L0 406.3l15.4 13.8c52.5 46.8 120.4 72.5 190.7 72.2 51.4 0 94.4-10.5 133.6-44.1 57.1-51.4 54.2-149.2 20.3-189.6z"},"bluetooth":{"viewBox":"0 0 448 512","path":"M292.6 171.1L249.7 214l-.3-86 43.2 43.1m-43.2 219.8l43.1-43.1-42.9-42.9-.2 86zM416 259.4C416 465 344.1 512 230.9 512S32 465 32 259.4 115.4 0 228.6 0 416 53.9 416 259.4zm-158.5 0l79.4-88.6L211.8 36.5v176.9L138 139.6l-27 26.9 92.7 93-92.7 93 26.9 26.9 73.8-73.8 2.3 170 127.4-127.5-83.9-88.7z"},"bluetooth-b":{"viewBox":"0 0 320 512","path":"M196.48 260.023l92.626-103.333L143.125 0v206.33l-86.111-86.111-31.406 31.405 108.061 108.399L25.608 368.422l31.406 31.405 86.111-86.111L145.84 512l148.552-148.644-97.912-103.333zm40.86-102.996l-49.977 49.978-.338-100.295 50.315 50.317zM187.363 313.04l49.977 49.978-50.315 50.316.338-100.294z"},"gitlab":{"viewBox":"0 0 512 512","path":"M29.782 199.732L256 493.714 8.074 309.699c-6.856-5.142-9.712-13.996-7.141-21.993l28.849-87.974zm75.405-174.806c-3.142-8.854-15.709-8.854-18.851 0L29.782 199.732h131.961L105.187 24.926zm56.556 174.806L256 493.714l94.257-293.982H161.743zm349.324 87.974l-28.849-87.974L256 493.714l247.926-184.015c6.855-5.142 9.711-13.996 7.141-21.993zm-85.404-262.78c-3.142-8.854-15.709-8.854-18.851 0l-56.555 174.806h131.961L425.663 24.926z"},"wpbeginner":{"viewBox":"0 0 512 512","path":"M462.799 322.374C519.01 386.682 466.961 480 370.944 480c-39.602 0-78.824-17.687-100.142-50.04-6.887.356-22.702.356-29.59 0C219.848 462.381 180.588 480 141.069 480c-95.49 0-148.348-92.996-91.855-157.626C-29.925 190.523 80.479 32 256.006 32c175.632 0 285.87 158.626 206.793 290.374zm-339.647-82.972h41.529v-58.075h-41.529v58.075zm217.18 86.072v-23.839c-60.506 20.915-132.355 9.198-187.589-33.971l.246 24.897c51.101 46.367 131.746 57.875 187.343 32.913zm-150.753-86.072h166.058v-58.075H189.579v58.075z"},"wpforms":{"viewBox":"0 0 448 512","path":"M448 75.2v361.7c0 24.3-19 43.2-43.2 43.2H43.2C19.3 480 0 461.4 0 436.8V75.2C0 51.1 18.8 32 43.2 32h361.7c24 0 43.1 18.8 43.1 43.2zm-37.3 361.6V75.2c0-3-2.6-5.8-5.8-5.8h-9.3L285.3 144 224 94.1 162.8 144 52.5 69.3h-9.3c-3.2 0-5.8 2.8-5.8 5.8v361.7c0 3 2.6 5.8 5.8 5.8h361.7c3.2.1 5.8-2.7 5.8-5.8zM150.2 186v37H76.7v-37h73.5zm0 74.4v37.3H76.7v-37.3h73.5zm11.1-147.3l54-43.7H96.8l64.5 43.7zm210 72.9v37h-196v-37h196zm0 74.4v37.3h-196v-37.3h196zm-84.6-147.3l64.5-43.7H232.8l53.9 43.7zM371.3 335v37.3h-99.4V335h99.4z"},"envira":{"viewBox":"0 0 448 512","path":"M0 32c477.6 0 366.6 317.3 367.1 366.3L448 480h-26l-70.4-71.2c-39 4.2-124.4 34.5-214.4-37C47 300.3 52 214.7 0 32zm79.7 46c-49.7-23.5-5.2 9.2-5.2 9.2 45.2 31.2 66 73.7 90.2 119.9 31.5 60.2 79 139.7 144.2 167.7 65 28 34.2 12.5 6-8.5-28.2-21.2-68.2-87-91-130.2-31.7-60-61-118.6-144.2-158.1z"},"glide":{"viewBox":"0 0 448 512","path":"M252.8 148.6c0 8.8-1.6 17.7-3.4 26.4-5.8 27.8-11.6 55.8-17.3 83.6-1.4 6.3-8.3 4.9-13.7 4.9-23.8 0-30.5-26-30.5-45.5 0-29.3 11.2-68.1 38.5-83.1 4.3-2.5 9.2-4.2 14.1-4.2 11.4 0 12.3 8.3 12.3 17.9zM448 80v352c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V80c0-26.5 21.5-48 48-48h352c26.5 0 48 21.5 48 48zm-64 187c0-5.1-20.8-37.7-25.5-39.5-2.2-.9-7.2-2.3-9.6-2.3-23.1 0-38.7 10.5-58.2 21.5l-.5-.5c4.3-29.4 14.6-57.2 14.6-87.4 0-44.6-23.8-62.7-67.5-62.7-71.7 0-108 70.8-108 123.5 0 54.7 32 85 86.3 85 7.5 0 6.9-.6 6.9 2.3-10.5 80.3-56.5 82.9-56.5 58.9 0-24.4 28-36.5 28.3-38-.2-7.6-29.3-17.2-36.7-17.2-21.1 0-32.7 33-32.7 50.6 0 32.3 20.4 54.7 53.3 54.7 48.2 0 83.4-49.7 94.3-91.7 9.4-37.7 7-39.4 12.3-42.1 20-10.1 35.8-16.8 58.4-16.8 11.1 0 19 2.3 36.7 5.2 1.8.1 4.1-1.7 4.1-3.5z"},"glide-g":{"viewBox":"0 0 448 512","path":"M407.1 211.2c-3.5-1.4-11.6-3.8-15.4-3.8-37.1 0-62.2 16.8-93.5 34.5l-.9-.9c7-47.3 23.5-91.9 23.5-140.4C320.8 29.1 282.6 0 212.4 0 97.3 0 39 113.7 39 198.4 39 286.3 90.3 335 177.6 335c12 0 11-1 11 3.8-16.9 128.9-90.8 133.1-90.8 94.6 0-39.2 45-58.6 45.5-61-.3-12.2-47-27.6-58.9-27.6-33.9.1-52.4 51.2-52.4 79.3C32 476 64.8 512 117.5 512c77.4 0 134-77.8 151.4-145.4 15.1-60.5 11.2-63.3 19.7-67.6 32.2-16.2 57.5-27 93.8-27 17.8 0 30.5 3.7 58.9 8.4 2.9 0 6.7-2.9 6.7-5.8 0-8-33.4-60.5-40.9-63.4zm-175.3-84.4c-9.3 44.7-18.6 89.6-27.8 134.3-2.3 10.2-13.3 7.8-22 7.8-38.3 0-49-41.8-49-73.1 0-47 18-109.3 61.8-133.4 7-4.1 14.8-6.7 22.6-6.7 18.6 0 20 13.3 20 28.7-.1 14.3-2.7 28.5-5.6 42.4z"},"viadeo":{"viewBox":"0 0 448 512","path":"M276.2 150.5v.7C258.3 98.6 233.6 47.8 205.4 0c43.3 29.2 67 100 70.8 150.5zm32.7 121.7c7.6 18.2 11 37.5 11 57 0 77.7-57.8 141-137.8 139.4l3.8-.3c74.2-46.7 109.3-118.6 109.3-205.1 0-38.1-6.5-75.9-18.9-112 1 11.7 1 23.7 1 35.4 0 91.8-18.1 241.6-116.6 280C95 455.2 49.4 398 49.4 329.2c0-75.6 57.4-142.3 135.4-142.3 16.8 0 33.7 3.1 49.1 9.6 1.7-15.1 6.5-29.9 13.4-43.3-19.9-7.2-41.2-10.7-62.5-10.7-161.5 0-238.7 195.9-129.9 313.7 67.9 74.6 192 73.9 259.8 0 56.6-61.3 60.9-142.4 36.4-201-12.7 8-27.1 13.9-42.2 17zM418.1 11.7c-31 66.5-81.3 47.2-115.8 80.1-12.4 12-20.6 34-20.6 50.5 0 14.1 4.5 27.1 12 38.8 47.4-11 98.3-46 118.2-90.7-.7 5.5-4.8 14.4-7.2 19.2-20.3 35.7-64.6 65.6-99.7 84.9 14.8 14.4 33.7 25.8 55 25.8 79 0 110.1-134.6 58.1-208.6z"},"viadeo-square":{"viewBox":"0 0 448 512","path":"M400 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zM280.7 381.2c-42.4 46.2-120 46.6-162.4 0-68-73.6-19.8-196.1 81.2-196.1 13.3 0 26.6 2.1 39.1 6.7-4.3 8.4-7.3 17.6-8.4 27.1-9.7-4.1-20.2-6-30.7-6-48.8 0-84.6 41.7-84.6 88.9 0 43 28.5 78.7 69.5 85.9 61.5-24 72.9-117.6 72.9-175 0-7.3 0-14.8-.6-22.1-11.2-32.9-26.6-64.6-44.2-94.5 27.1 18.3 41.9 62.5 44.2 94.1v.4c7.7 22.5 11.8 46.2 11.8 70 0 54.1-21.9 99-68.3 128.2l-2.4.2c50 1 86.2-38.6 86.2-87.2 0-12.2-2.1-24.3-6.9-35.7 9.5-1.9 18.5-5.6 26.4-10.5 15.3 36.6 12.6 87.3-22.8 125.6zM309 233.7c-13.3 0-25.1-7.1-34.4-16.1 21.9-12 49.6-30.7 62.3-53 1.5-3 4.1-8.6 4.5-12-12.5 27.9-44.2 49.8-73.9 56.7-4.7-7.3-7.5-15.5-7.5-24.3 0-10.3 5.2-24.1 12.9-31.6 21.6-20.5 53-8.5 72.4-50 32.5 46.2 13.1 130.3-36.3 130.3z"},"snapchat":{"viewBox":"0 0 496 512","path":"M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm169.5 338.9c-3.5 8.1-18.1 14-44.8 18.2-1.4 1.9-2.5 9.8-4.3 15.9-1.1 3.7-3.7 5.9-8.1 5.9h-.2c-6.2 0-12.8-2.9-25.8-2.9-17.6 0-23.7 4-37.4 13.7-14.5 10.3-28.4 19.1-49.2 18.2-21 1.6-38.6-11.2-48.5-18.2-13.8-9.7-19.8-13.7-37.4-13.7-12.5 0-20.4 3.1-25.8 3.1-5.4 0-7.5-3.3-8.3-6-1.8-6.1-2.9-14.1-4.3-16-13.8-2.1-44.8-7.5-45.5-21.4-.2-3.6 2.3-6.8 5.9-7.4 46.3-7.6 67.1-55.1 68-57.1 0-.1.1-.2.2-.3 2.5-5 3-9.2 1.6-12.5-3.4-7.9-17.9-10.7-24-13.2-15.8-6.2-18-13.4-17-18.3 1.6-8.5 14.4-13.8 21.9-10.3 5.9 2.8 11.2 4.2 15.7 4.2 3.3 0 5.5-.8 6.6-1.4-1.4-23.9-4.7-58 3.8-77.1C183.1 100 230.7 96 244.7 96c.6 0 6.1-.1 6.7-.1 34.7 0 68 17.8 84.3 54.3 8.5 19.1 5.2 53.1 3.8 77.1 1.1.6 2.9 1.3 5.7 1.4 4.3-.2 9.2-1.6 14.7-4.2 4-1.9 9.6-1.6 13.6 0 6.3 2.3 10.3 6.8 10.4 11.9.1 6.5-5.7 12.1-17.2 16.6-1.4.6-3.1 1.1-4.9 1.7-6.5 2.1-16.4 5.2-19 11.5-1.4 3.3-.8 7.5 1.6 12.5.1.1.1.2.2.3.9 2 21.7 49.5 68 57.1 4 1 7.1 5.5 4.9 10.8z"},"snapchat-ghost":{"viewBox":"0 0 512 512","path":"M510.846 392.673c-5.211 12.157-27.239 21.089-67.36 27.318-2.064 2.786-3.775 14.686-6.507 23.956-1.625 5.566-5.623 8.869-12.128 8.869l-.297-.005c-9.395 0-19.203-4.323-38.852-4.323-26.521 0-35.662 6.043-56.254 20.588-21.832 15.438-42.771 28.764-74.027 27.399-31.646 2.334-58.025-16.908-72.871-27.404-20.714-14.643-29.828-20.582-56.241-20.582-18.864 0-30.736 4.72-38.852 4.72-8.073 0-11.213-4.922-12.422-9.04-2.703-9.189-4.404-21.263-6.523-24.13-20.679-3.209-67.31-11.344-68.498-32.15a10.627 10.627 0 0 1 8.877-11.069c69.583-11.455 100.924-82.901 102.227-85.934.074-.176.155-.344.237-.515 3.713-7.537 4.544-13.849 2.463-18.753-5.05-11.896-26.872-16.164-36.053-19.796-23.715-9.366-27.015-20.128-25.612-27.504 2.437-12.836 21.725-20.735 33.002-15.453 8.919 4.181 16.843 6.297 23.547 6.297 5.022 0 8.212-1.204 9.96-2.171-2.043-35.936-7.101-87.29 5.687-115.969C158.122 21.304 229.705 15.42 250.826 15.42c.944 0 9.141-.089 10.11-.089 52.148 0 102.254 26.78 126.723 81.643 12.777 28.65 7.749 79.792 5.695 116.009 1.582.872 4.357 1.942 8.599 2.139 6.397-.286 13.815-2.389 22.069-6.257 6.085-2.846 14.406-2.461 20.48.058l.029.01c9.476 3.385 15.439 10.215 15.589 17.87.184 9.747-8.522 18.165-25.878 25.018-2.118.835-4.694 1.655-7.434 2.525-9.797 3.106-24.6 7.805-28.616 17.271-2.079 4.904-1.256 11.211 2.46 18.748.087.168.166.342.239.515 1.301 3.03 32.615 74.46 102.23 85.934 6.427 1.058 11.163 7.877 7.725 15.859z"},"snapchat-square":{"viewBox":"0 0 448 512","path":"M400 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zm-6.5 314.9c-3.5 8.1-18.1 14-44.8 18.2-1.4 1.9-2.5 9.8-4.3 15.9-1.1 3.7-3.7 5.9-8.1 5.9h-.2c-6.2 0-12.8-2.9-25.8-2.9-17.6 0-23.7 4-37.4 13.7-14.5 10.3-28.4 19.1-49.2 18.2-21 1.6-38.6-11.2-48.5-18.2-13.8-9.7-19.8-13.7-37.4-13.7-12.5 0-20.4 3.1-25.8 3.1-5.4 0-7.5-3.3-8.3-6-1.8-6.1-2.9-14.1-4.3-16-13.8-2.1-44.8-7.5-45.5-21.4-.2-3.6 2.3-6.8 5.9-7.4 46.3-7.6 67.1-55.1 68-57.1 0-.1.1-.2.2-.3 2.5-5 3-9.2 1.6-12.5-3.4-7.9-17.9-10.7-24-13.2-15.8-6.2-18-13.4-17-18.3 1.6-8.5 14.4-13.8 21.9-10.3 5.9 2.8 11.2 4.2 15.7 4.2 3.3 0 5.5-.8 6.6-1.4-1.4-23.9-4.7-58 3.8-77.1C159.1 100 206.7 96 220.7 96c.6 0 6.1-.1 6.7-.1 34.7 0 68 17.8 84.3 54.3 8.5 19.1 5.2 53.1 3.8 77.1 1.1.6 2.9 1.3 5.7 1.4 4.3-.2 9.2-1.6 14.7-4.2 4-1.9 9.6-1.6 13.6 0 6.3 2.3 10.3 6.8 10.4 11.9.1 6.5-5.7 12.1-17.2 16.6-1.4.6-3.1 1.1-4.9 1.7-6.5 2.1-16.4 5.2-19 11.5-1.4 3.3-.8 7.5 1.6 12.5.1.1.1.2.2.3.9 2 21.7 49.5 68 57.1 4 1 7.1 5.5 4.9 10.8z"},"pied-piper":{"viewBox":"0 0 448 512","path":"M32 419L0 479.2l.8-328C.8 85.3 54 32 120 32h327.2c-93 28.9-189.9 94.2-253.9 168.6C122.7 282 82.6 338 32 419M448 32S305.2 98.8 261.6 199.1c-23.2 53.6-28.9 118.1-71 158.6-28.9 27.8-69.8 38.2-105.3 56.3-23.2 12-66.4 40.5-84.9 66h328.4c66 0 119.3-53.3 119.3-119.2-.1 0-.1-328.8-.1-328.8z"},"first-order":{"viewBox":"0 0 448 512","path":"M12.9 229.2c.1-.1.2-.3.3-.4 0 .1 0 .3-.1.4h-.2zM224 96.6c-7.1 0-14.6.6-21.4 1.7l3.7 67.4-22-64c-14.3 3.7-27.7 9.4-40 16.6l29.4 61.4-45.1-50.9c-11.4 8.9-21.7 19.1-30.6 30.9l50.6 45.4-61.1-29.7c-7.1 12.3-12.9 25.7-16.6 40l64.3 22.6-68-4c-.9 7.1-1.4 14.6-1.4 22s.6 14.6 1.4 21.7l67.7-4-64 22.6c3.7 14.3 9.4 27.7 16.6 40.3l61.1-29.7L97.7 352c8.9 11.7 19.1 22.3 30.9 30.9l44.9-50.9-29.5 61.4c12.3 7.4 25.7 13.1 40 16.9l22.3-64.6-4 68c7.1 1.1 14.6 1.7 21.7 1.7 7.4 0 14.6-.6 21.7-1.7l-4-68.6 22.6 65.1c14.3-4 27.7-9.4 40-16.9L274.9 332l44.9 50.9c11.7-8.9 22-19.1 30.6-30.9l-50.6-45.1 61.1 29.4c7.1-12.3 12.9-25.7 16.6-40.3l-64-22.3 67.4 4c1.1-7.1 1.4-14.3 1.4-21.7s-.3-14.9-1.4-22l-67.7 4 64-22.3c-3.7-14.3-9.1-28-16.6-40.3l-60.9 29.7 50.6-45.4c-8.9-11.7-19.1-22-30.6-30.9l-45.1 50.9 29.4-61.1c-12.3-7.4-25.7-13.1-40-16.9L241.7 166l4-67.7c-7.1-1.2-14.3-1.7-21.7-1.7zM443.4 128v256L224 512 4.6 384V128L224 0l219.4 128zm-17.1 10.3L224 20.9 21.7 138.3v235.1L224 491.1l202.3-117.7V138.3zM224 37.1l187.7 109.4v218.9L224 474.9 36.3 365.4V146.6L224 37.1zm0 50.9c-92.3 0-166.9 75.1-166.9 168 0 92.6 74.6 167.7 166.9 167.7 92 0 166.9-75.1 166.9-167.7 0-92.9-74.9-168-166.9-168z"},"yoast":{"viewBox":"0 0 448 512","path":"M91.3 76h186l-7 18.9h-179c-39.7 0-71.9 31.6-71.9 70.3v205.4c0 35.4 24.9 70.3 84 70.3V460H91.3C41.2 460 0 419.8 0 370.5V165.2C0 115.9 40.7 76 91.3 76zm229.1-56h66.5C243.1 398.1 241.2 418.9 202.2 459.3c-20.8 21.6-49.3 31.7-78.3 32.7v-51.1c49.2-7.7 64.6-49.9 64.6-75.3 0-20.1.6-12.6-82.1-223.2h61.4L218.2 299 320.4 20zM448 161.5V460H234c6.6-9.6 10.7-16.3 12.1-19.4h182.5V161.5c0-32.5-17.1-51.9-48.2-62.9l6.7-17.6c41.7 13.6 60.9 43.1 60.9 80.5z"},"themeisle":{"viewBox":"0 0 512 512","path":"M208 88.286c0-10 6.286-21.714 17.715-21.714 11.142 0 17.714 11.714 17.714 21.714 0 10.285-6.572 21.714-17.714 21.714C214.286 110 208 98.571 208 88.286zm304 160c0 36.001-11.429 102.286-36.286 129.714-22.858 24.858-87.428 61.143-120.857 70.572l-1.143.286v32.571c0 16.286-12.572 30.571-29.143 30.571-10 0-19.429-5.714-24.572-14.286-5.427 8.572-14.856 14.286-24.856 14.286-10 0-19.429-5.714-24.858-14.286-5.142 8.572-14.571 14.286-24.57 14.286-10.286 0-19.429-5.714-24.858-14.286-5.143 8.572-14.571 14.286-24.571 14.286-18.857 0-29.429-15.714-29.429-32.857-16.286 12.285-35.715 19.428-56.571 19.428-22 0-43.429-8.285-60.286-22.857 10.285-.286 20.571-2.286 30.285-5.714-20.857-5.714-39.428-18.857-52-36.286 21.37 4.645 46.209 1.673 67.143-11.143-22-22-56.571-58.857-68.572-87.428C1.143 321.714 0 303.714 0 289.429c0-49.714 20.286-160 86.286-160 10.571 0 18.857 4.858 23.143 14.857a158.792 158.792 0 0 1 12-15.428c2-2.572 5.714-5.429 7.143-8.286 7.999-12.571 11.714-21.142 21.714-34C182.571 45.428 232 17.143 285.143 17.143c6 0 12 .285 17.714 1.143C313.714 6.571 328.857 0 344.572 0c14.571 0 29.714 6 40 16.286.857.858 1.428 2.286 1.428 3.428 0 3.714-10.285 13.429-12.857 16.286 4.286 1.429 15.714 6.858 15.714 12 0 2.857-2.857 5.143-4.571 7.143 31.429 27.714 49.429 67.143 56.286 108 4.286-5.143 10.285-8.572 17.143-8.572 10.571 0 20.857 7.144 28.571 14.001C507.143 187.143 512 221.714 512 248.286zM188 89.428c0 18.286 12.571 37.143 32.286 37.143 19.714 0 32.285-18.857 32.285-37.143 0-18-12.571-36.857-32.285-36.857-19.715 0-32.286 18.858-32.286 36.857zM237.714 194c0-19.714 3.714-39.143 8.571-58.286-52.039 79.534-13.531 184.571 68.858 184.571 21.428 0 42.571-7.714 60-20 2-7.429 3.714-14.857 3.714-22.572 0-14.286-6.286-21.428-20.572-21.428-4.571 0-9.143.857-13.429 1.714-63.343 12.668-107.142 3.669-107.142-63.999zm-41.142 254.858c0-11.143-8.858-20.857-20.286-20.857-11.429 0-20 9.715-20 20.857v32.571c0 11.143 8.571 21.142 20 21.142 11.428 0 20.286-9.715 20.286-21.142v-32.571zm49.143 0c0-11.143-8.572-20.857-20-20.857-11.429 0-20.286 9.715-20.286 20.857v32.571c0 11.143 8.857 21.142 20.286 21.142 11.428 0 20-10 20-21.142v-32.571zm49.713 0c0-11.143-8.857-20.857-20.285-20.857-11.429 0-20.286 9.715-20.286 20.857v32.571c0 11.143 8.857 21.142 20.286 21.142 11.428 0 20.285-9.715 20.285-21.142v-32.571zm49.715 0c0-11.143-8.857-20.857-20.286-20.857-11.428 0-20.286 9.715-20.286 20.857v32.571c0 11.143 8.858 21.142 20.286 21.142 11.429 0 20.286-10 20.286-21.142v-32.571zM421.714 286c-30.857 59.142-90.285 102.572-158.571 102.572-96.571 0-160.571-84.572-160.571-176.572 0-16.857 2-33.429 6-49.714-20 33.715-29.714 72.572-29.714 111.429 0 60.286 24.857 121.715 71.429 160.857 5.143-9.714 14.857-16.286 26-16.286 10 0 19.428 5.714 24.571 14.286 5.429-8.571 14.571-14.286 24.858-14.286 10 0 19.428 5.714 24.571 14.286 5.429-8.571 14.857-14.286 24.858-14.286 10 0 19.428 5.714 24.857 14.286 5.143-8.571 14.571-14.286 24.572-14.286 10.857 0 20.857 6.572 25.714 16 43.427-36.286 68.569-92 71.426-148.286zm10.572-99.714c0-53.714-34.571-105.714-92.572-105.714-30.285 0-58.571 15.143-78.857 36.857C240.862 183.812 233.41 254 302.286 254c28.805 0 97.357-28.538 84.286 36.857 28.857-26 45.714-65.714 45.714-104.571z"},"font-awesome":{"viewBox":"0 0 448 512","path":"M397.8 32H50.2C22.7 32 0 54.7 0 82.2v347.6C0 457.3 22.7 480 50.2 480h347.6c27.5 0 50.2-22.7 50.2-50.2V82.2c0-27.5-22.7-50.2-50.2-50.2zm-45.4 284.3c0 4.2-3.6 6-7.8 7.8-16.7 7.2-34.6 13.7-53.8 13.7-26.9 0-39.4-16.7-71.7-16.7-23.3 0-47.8 8.4-67.5 17.3-1.2.6-2.4.6-3.6 1.2V385c0 1.8 0 3.6-.6 4.8v1.2c-2.4 8.4-10.2 14.3-19.1 14.3-11.3 0-20.3-9-20.3-20.3V166.4c-7.8-6-13.1-15.5-13.1-26.3 0-18.5 14.9-33.5 33.5-33.5 18.5 0 33.5 14.9 33.5 33.5 0 10.8-4.8 20.3-13.1 26.3v18.5c1.8-.6 3.6-1.2 5.4-2.4 18.5-7.8 40.6-14.3 61.5-14.3 22.7 0 40.6 6 60.9 13.7 4.2 1.8 8.4 2.4 13.1 2.4 22.7 0 47.8-16.1 53.8-16.1 4.8 0 9 3.6 9 7.8v140.3z"},"linode":{"viewBox":"0 0 448 512","path":"M437.4 226.3c-.3-.9-.9-1.4-1.4-2l-70-38.6c-.9-.6-2-.6-3.1 0l-58.9 36c-.9.6-1.4 1.7-1.4 2.6l-.9 31.4-24-16c-.9-.6-2.3-.6-3.1 0L240 260.9l-1.4-35.1c0-.9-.6-2-1.4-2.3l-36-24.3 33.7-17.4c1.1-.6 1.7-1.7 1.7-2.9l-5.7-132.3c0-.9-.9-2-1.7-2.6L138.6.3c-.9-.3-1.7-.3-2.3-.3L12.6 38.6c-1.4.6-2.3 2-2 3.7L38 175.4c.9 3.4 34 27.4 38.6 30.9l-26.9 12.9c-1.4.9-2 2.3-1.7 3.4l20.6 100.3c.6 2.9 23.7 23.1 27.1 26.3l-17.4 10.6c-.9.6-1.7 2-1.4 3.1 1.4 7.1 15.4 77.7 16.9 79.1l65.1 69.1c.6.6 1.4.6 2.3.9.6 0 1.1-.3 1.7-.6l83.7-66.9c.9-.6 1.1-1.4 1.1-2.3l-2-46 28 23.7c1.1.9 2.9.9 4 0l66.9-53.4c.9-.6 1.1-1.4 1.1-2.3l2.3-33.4 20.3 14c1.1.9 2.6.9 3.7 0l54.6-43.7c.6-.3 1.1-1.1 1.1-2 .9-6.5 10.3-70.8 9.7-72.8zm-204.8 4.8l4 92.6-90.6 61.2-14-96.6 100.6-57.2zm-7.7-180l5.4 126-106.6 55.4L104 97.7l120.9-46.6zM44 173.1L18 48l79.7 49.4 19.4 132.9L44 173.1zm30.6 147.8L55.7 230l70 58.3 13.7 93.4-64.8-60.8zm24.3 117.7l-13.7-67.1 61.7 60.9 9.7 67.4-57.7-61.2zm64.5 64.5l-10.6-70.9 85.7-61.4 3.1 70-78.2 62.3zm82-115.1c0-3.4.9-22.9-2-25.1l-24.3-20 22.3-14.9c2.3-1.7 1.1-5.7 1.1-8l29.4 22.6.6 68.3-27.1-22.9zm94.3-25.4l-60.9 48.6-.6-68.6 65.7-46.9-4.2 66.9zm27.7-25.7l-19.1-13.4 2-34c.3-.9-.3-2-1.1-2.6L308 259.7l.6-30 64.6 40.6-5.8 66.6zm54.6-39.8l-48.3 38.3 5.7-65.1 51.1-36.6-8.5 63.4z"},"quora":{"viewBox":"0 0 448 512","path":"M440.5 386.7h-29.3c-1.5 13.5-10.5 30.8-33 30.8-20.5 0-35.3-14.2-49.5-35.8 44.2-34.2 74.7-87.5 74.7-153C403.5 111.2 306.8 32 205 32 105.3 32 7.3 111.7 7.3 228.7c0 134.1 131.3 221.6 249 189C276 451.3 302 480 351.5 480c81.8 0 90.8-75.3 89-93.3zM297 329.2C277.5 300 253.3 277 205.5 277c-30.5 0-54.3 10-69 22.8l12.2 24.3c6.2-3 13-4 19.8-4 35.5 0 53.7 30.8 69.2 61.3-10 3-20.7 4.2-32.7 4.2-75 0-107.5-53-107.5-156.7C97.5 124.5 130 71 205 71c76.2 0 108.7 53.5 108.7 157.7.1 41.8-5.4 75.6-16.7 100.5z"},"free-code-camp":{"viewBox":"0 0 576 512","path":"M69.3 144.5c-41 68.5-36.4 163 1 227C92.5 409.7 120 423.9 120 438c0 6.8-6 13-12.8 13C87.7 451 8 375.5 8 253.2c0-111.5 78-186 97.1-186 6 0 14.9 4.8 14.9 11.1 0 12.7-28.3 28.6-50.7 66.2zm195.8 213.8c4.5 1.8 12.3 5.2 12.3-1.2 0-2.7-2.2-2.9-4.3-3.6-8.5-3.4-14-7.7-19.1-15.2-8.2-12.1-10.1-24.2-10.1-38.6 0-32.1 44.2-37.9 44.2-70 0-12.3-7.7-15.9-7.7-19.3 0-2.2.7-2.2 2.9-2.2 8 0 19.1 13.3 22.5 19.8 2.2 4.6 2.4 6 2.4 11.1 0 7-.7 14.2-.7 21.3 0 27 31.9 19.8 31.9 6.8 0-6-3.6-11.6-3.6-17.4 0-.7 0-1.2.7-1.2 3.4 0 9.4 7.7 11.1 10.1 5.8 8.9 8.5 20.8 8.5 31.4 0 32.4-29.5 49-29.5 56 0 1 2.9 7.7 12.1 1.9 29.7-15.1 53.1-47.6 53.1-89.8 0-33.6-8.7-57.7-32.1-82.6-3.9-4.1-16.4-16.9-22.5-16.9-8.2 0 7.2 18.6 7.2 31.2 0 7.2-4.8 12.3-12.3 12.3-11.6 0-14.5-25.4-15.9-33.3-5.8-33.8-12.8-58.2-46.4-74.1-10.4-5-36.5-11.8-36.5-2.2 0 2.4 2.7 4.1 4.6 5.1 9.2 5.6 19.6 21.4 19.6 38.2 0 46.1-57.7 88.2-57.7 136.2-.2 40.3 28.1 72.6 65.3 86.2zM470.4 67c-6 0-14.4 6.5-14.4 12.6 0 8.7 12.1 19.6 17.6 25.4 81.6 85.1 78.6 214.3 17.6 291-7 8.9-35.3 35.3-35.3 43.5 0 5.1 8.2 11.4 13.2 11.4 25.4 0 98.8-80.8 98.8-185.7C568 145.9 491.8 67 470.4 67zm-42.3 323.1H167c-9.4 0-15.5 7.5-15.5 16.4 0 8.5 7 15.5 15.5 15.5h261.1c9.4 0 11.9-7.5 11.9-16.4 0-8.5-3.5-15.5-11.9-15.5z"},"telegram":{"viewBox":"0 0 496 512","path":"M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm121.8 169.9l-40.7 191.8c-3 13.6-11.1 16.9-22.4 10.5l-62-45.7-29.9 28.8c-3.3 3.3-6.1 6.1-12.5 6.1l4.4-63.1 114.9-103.8c5-4.4-1.1-6.9-7.7-2.5l-142 89.4-61.2-19.1c-13.3-4.2-13.6-13.3 2.8-19.7l239.1-92.2c11.1-4 20.8 2.7 17.2 19.5z"},"bandcamp":{"viewBox":"0 0 496 512","path":"M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm48.2 326.1h-181L199.9 178h181l-84.7 156.1z"},"grav":{"viewBox":"0 0 512 512","path":"M301.1 212c4.4 4.4 4.4 11.9 0 16.3l-9.7 9.7c-4.4 4.7-11.9 4.7-16.6 0l-10.5-10.5c-4.4-4.7-4.4-11.9 0-16.6l9.7-9.7c4.4-4.4 11.9-4.4 16.6 0l10.5 10.8zm-30.2-19.7c3-3 3-7.8 0-10.5-2.8-3-7.5-3-10.5 0-2.8 2.8-2.8 7.5 0 10.5 3.1 2.8 7.8 2.8 10.5 0zm-26 5.3c-3 2.8-3 7.5 0 10.2 2.8 3 7.5 3 10.5 0 2.8-2.8 2.8-7.5 0-10.2-3-3-7.7-3-10.5 0zm72.5-13.3c-19.9-14.4-33.8-43.2-11.9-68.1 21.6-24.9 40.7-17.2 59.8.8 11.9 11.3 29.3 24.9 17.2 48.2-12.5 23.5-45.1 33.2-65.1 19.1zm47.7-44.5c-8.9-10-23.3 6.9-15.5 16.1 7.4 9 32.1 2.4 15.5-16.1zM504 256c0 137-111 248-248 248S8 393 8 256 119 8 256 8s248 111 248 248zm-66.2 42.6c2.5-16.1-20.2-16.6-25.2-25.7-13.6-24.1-27.7-36.8-54.5-30.4 11.6-8 23.5-6.1 23.5-6.1.3-6.4 0-13-9.4-24.9 3.9-12.5.3-22.4.3-22.4 15.5-8.6 26.8-24.4 29.1-43.2 3.6-31-18.8-59.2-49.8-62.8-22.1-2.5-43.7 7.7-54.3 25.7-23.2 40.1 1.4 70.9 22.4 81.4-14.4-1.4-34.3-11.9-40.1-34.3-6.6-25.7 2.8-49.8 8.9-61.4 0 0-4.4-5.8-8-8.9 0 0-13.8 0-24.6 5.3 11.9-15.2 25.2-14.4 25.2-14.4 0-6.4-.6-14.9-3.6-21.6-5.4-11-23.8-12.9-31.7 2.8.1-.2.3-.4.4-.5-5 11.9-1.1 55.9 16.9 87.2-2.5 1.4-9.1 6.1-13 10-21.6 9.7-56.2 60.3-56.2 60.3-28.2 10.8-77.2 50.9-70.6 79.7.3 3 1.4 5.5 3 7.5-2.8 2.2-5.5 5-8.3 8.3-11.9 13.8-5.3 35.2 17.7 24.4 15.8-7.2 29.6-20.2 36.3-30.4 0 0-5.5-5-16.3-4.4 27.7-6.6 34.3-9.4 46.2-9.1 8 3.9 8-34.3 8-34.3 0-14.7-2.2-31-11.1-41.5 12.5 12.2 29.1 32.7 28 60.6-.8 18.3-15.2 23-15.2 23-9.1 16.6-43.2 65.9-30.4 106 0 0-9.7-14.9-10.2-22.1-17.4 19.4-46.5 52.3-24.6 64.5 26.6 14.7 108.8-88.6 126.2-142.3 34.6-20.8 55.4-47.3 63.9-65 22 43.5 95.3 94.5 101.1 59z"},"etsy":{"viewBox":"0 0 384 512","path":"M384 348c-1.75 10.75-13.75 110-15.5 132-117.879-4.299-219.895-4.743-368.5 0v-25.5c45.457-8.948 60.627-8.019 61-35.25 1.793-72.322 3.524-244.143 0-322-1.029-28.46-12.13-26.765-61-36v-25.5c73.886 2.358 255.933 8.551 362.999-3.75-3.5 38.25-7.75 126.5-7.75 126.5H332C320.947 115.665 313.241 68 277.25 68h-137c-10.25 0-10.75 3.5-10.75 9.75V241.5c58 .5 88.5-2.5 88.5-2.5 29.77-.951 27.56-8.502 40.75-65.251h25.75c-4.407 101.351-3.91 61.829-1.75 160.25H257c-9.155-40.086-9.065-61.045-39.501-61.5 0 0-21.5-2-88-2v139c0 26 14.25 38.25 44.25 38.25H263c63.636 0 66.564-24.996 98.751-99.75H384z"},"imdb":{"viewBox":"0 0 448 512","path":"M350.5 288.7c0 5.4 1.6 14.4-6.2 14.4-1.6 0-3-.8-3.8-2.4-2.2-5.1-1.1-44.1-1.1-44.7 0-3.8-1.1-12.7 4.9-12.7 7.3 0 6.2 7.3 6.2 12.7v32.7zM265 229.9c0-9.7 1.6-16-10.3-16v83.7c12.2.3 10.3-8.7 10.3-18.4v-49.3zM448 80v352c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V80c0-26.5 21.5-48 48-48h352c26.5 0 48 21.5 48 48zM21.3 228.8c-.1.1-.2.3-.3.4h.3v-.4zM97 192H64v127.8h33V192zm113.3 0h-43.1l-7.6 59.9c-2.7-20-5.4-40.1-8.7-59.9h-42.8v127.8h29v-84.5l12.2 84.5h20.6l11.6-86.4v86.4h28.7V192zm86.3 45.3c0-8.1.3-16.8-1.4-24.4-4.3-22.5-31.4-20.9-49-20.9h-24.6v127.8c86.1.1 75 6 75-82.5zm85.9 17.3c0-17.3-.8-30.1-22.2-30.1-8.9 0-14.9 2.7-20.9 9.2V192h-31.7v127.8h29.8l1.9-8.1c5.7 6.8 11.9 9.8 20.9 9.8 19.8 0 22.2-15.2 22.2-30.9v-36z"},"ravelry":{"viewBox":"0 0 512 512","path":"M407.4 61.5C331.6 22.1 257.8 31 182.9 66c-11.3 5.2-15.5 10.6-19.9 19-10.3 19.2-16.2 37.4-19.9 52.7-21.2 25.6-36.4 56.1-43.3 89.9-10.6 18-20.9 41.4-23.1 71.4 0 0-.7 7.6-.5 7.9-35.3-4.6-76.2-27-76.2-27 9.1 14.5 61.3 32.3 76.3 37.9 0 0 1.7 98 64.5 131.2-11.3-17.2-13.3-20.2-13.3-20.2S94.8 369 100.4 324.7c.7 0 1.5.2 2.2.2 23.9 87.4 103.2 151.4 196.9 151.4 6.2 0 12.1-.2 18-.7 14 1.5 27.6.5 40.1-3.9 6.9-2.2 13.8-6.4 20.2-10.8 70.2-39.1 100.9-82 123.1-147.7 5.4-16 8.1-35.5 9.8-52.2 8.7-82.3-30.6-161.6-103.3-199.5zM138.8 163.2s-1.2 12.3-.7 19.7c-3.4 2.5-10.1 8.1-18.2 16.7 5.2-12.8 11.3-25.1 18.9-36.4zm-31.2 121.9c4.4-17.2 13.3-39.1 29.8-55.1 0 0 1.7 48 15.8 90.1l-41.4-6.9c-2.2-9.2-3.5-18.5-4.2-28.1zm7.9 42.8c14.8 3.2 34 7.6 43.1 9.1 27.3 76.8 108.3 124.3 108.3 124.3 1 .5 1.7.7 2.7 1-73.1-11.6-132.7-64.7-154.1-134.4zM386 444.1c-14.5 4.7-36.2 8.4-64.7 3.7 0 0-91.1-23.1-127.5-107.8 38.2.7 52.4-.2 78-3.9 39.4-5.7 79-16.2 115-33 11.8-5.4 11.1-19.4 9.6-29.8-2-12.8-11.1-12.1-21.4-4.7 0 0-82 58.6-189.8 53.7-18.7-32-26.8-110.8-26.8-110.8 41.4-35.2 83.2-59.6 168.4-52.4.2-6.4 3-27.1-20.4-28.1 0 0-93.5-11.1-146 33.5 2.5-16.5 5.9-29.3 11.1-39.4 34.2-30.8 79-49.5 128.3-49.5 106.4 0 193 87.1 193 194.5-.2 76-43.8 142-106.8 174z"},"superpowers":{"viewBox":"0 0 448 512","path":"M448 32c-83.3 11-166.8 22-250 33-92 12.5-163.3 86.7-169 180-3.3 55.5 18 109.5 57.8 148.2L0 480c83.3-11 166.5-22 249.8-33 91.8-12.5 163.3-86.8 168.7-179.8 3.5-55.5-18-109.5-57.7-148.2L448 32zm-79.7 232.3c-4.2 79.5-74 139.2-152.8 134.5-79.5-4.7-140.7-71-136.3-151 4.5-79.2 74.3-139.3 153-134.5 79.3 4.7 140.5 71 136.1 151z"},"wpexplorer":{"viewBox":"0 0 512 512","path":"M512 256c0 141.2-114.7 256-256 256C114.8 512 0 397.3 0 256S114.7 0 256 0s256 114.7 256 256zm-32 0c0-123.2-100.3-224-224-224C132.5 32 32 132.5 32 256s100.5 224 224 224 224-100.5 224-224zM160.9 124.6l86.9 37.1-37.1 86.9-86.9-37.1 37.1-86.9zm110 169.1l46.6 94h-14.6l-50-100-48.9 100h-14l51.1-106.9-22.3-9.4 6-14 68.6 29.1-6 14.3-16.5-7.1zm-11.8-116.3l68.6 29.4-29.4 68.3L230 246l29.1-68.6zm80.3 42.9l54.6 23.1-23.4 54.3-54.3-23.1 23.1-54.3z"},"meetup":{"viewBox":"0 0 512 512","path":"M99 414.3c1.1 5.7-2.3 11.1-8 12.3-5.4 1.1-10.9-2.3-12-8-1.1-5.4 2.3-11.1 7.7-12.3 5.4-1.2 11.1 2.3 12.3 8zm143.1 71.4c-6.3 4.6-8 13.4-3.7 20 4.6 6.6 13.4 8.3 20 3.7 6.3-4.6 8-13.4 3.4-20-4.2-6.5-13.1-8.3-19.7-3.7zm-86-462.3c6.3-1.4 10.3-7.7 8.9-14-1.1-6.6-7.4-10.6-13.7-9.1-6.3 1.4-10.3 7.7-9.1 14 1.4 6.6 7.6 10.6 13.9 9.1zM34.4 226.3c-10-6.9-23.7-4.3-30.6 6-6.9 10-4.3 24 5.7 30.9 10 7.1 23.7 4.6 30.6-5.7 6.9-10.4 4.3-24.1-5.7-31.2zm272-170.9c10.6-6.3 13.7-20 7.7-30.3-6.3-10.6-19.7-14-30-7.7s-13.7 20-7.4 30.6c6 10.3 19.4 13.7 29.7 7.4zm-191.1 58c7.7-5.4 9.4-16 4.3-23.7s-15.7-9.4-23.1-4.3c-7.7 5.4-9.4 16-4.3 23.7 5.1 7.8 15.6 9.5 23.1 4.3zm372.3 156c-7.4 1.7-12.3 9.1-10.6 16.9 1.4 7.4 8.9 12.3 16.3 10.6 7.4-1.4 12.3-8.9 10.6-16.6-1.5-7.4-8.9-12.3-16.3-10.9zm39.7-56.8c-1.1-5.7-6.6-9.1-12-8-5.7 1.1-9.1 6.9-8 12.6 1.1 5.4 6.6 9.1 12.3 8 5.4-1.5 9.1-6.9 7.7-12.6zM447 138.9c-8.6 6-10.6 17.7-4.9 26.3 5.7 8.6 17.4 10.6 26 4.9 8.3-6 10.3-17.7 4.6-26.3-5.7-8.7-17.4-10.9-25.7-4.9zm-6.3 139.4c26.3 43.1 15.1 100-26.3 129.1-17.4 12.3-37.1 17.7-56.9 17.1-12 47.1-69.4 64.6-105.1 32.6-1.1.9-2.6 1.7-3.7 2.9-39.1 27.1-92.3 17.4-119.4-22.3-9.7-14.3-14.6-30.6-15.1-46.9-65.4-10.9-90-94-41.1-139.7-28.3-46.9.6-107.4 53.4-114.9C151.6 70 234.1 38.6 290.1 82c67.4-22.3 136.3 29.4 130.9 101.1 41.1 12.6 52.8 66.9 19.7 95.2zm-70 74.3c-3.1-20.6-40.9-4.6-43.1-27.1-3.1-32 43.7-101.1 40-128-3.4-24-19.4-29.1-33.4-29.4-13.4-.3-16.9 2-21.4 4.6-2.9 1.7-6.6 4.9-11.7-.3-6.3-6-11.1-11.7-19.4-12.9-12.3-2-17.7 2-26.6 9.7-3.4 2.9-12 12.9-20 9.1-3.4-1.7-15.4-7.7-24-11.4-16.3-7.1-40 4.6-48.6 20-12.9 22.9-38 113.1-41.7 125.1-8.6 26.6 10.9 48.6 36.9 47.1 11.1-.6 18.3-4.6 25.4-17.4 4-7.4 41.7-107.7 44.6-112.6 2-3.4 8.9-8 14.6-5.1 5.7 3.1 6.9 9.4 6 15.1-1.1 9.7-28 70.9-28.9 77.7-3.4 22.9 26.9 26.6 38.6 4 3.7-7.1 45.7-92.6 49.4-98.3 4.3-6.3 7.4-8.3 11.7-8 3.1 0 8.3.9 7.1 10.9-1.4 9.4-35.1 72.3-38.9 87.7-4.6 20.6 6.6 41.4 24.9 50.6 11.4 5.7 62.5 15.7 58.5-11.1zm5.7 92.3c-10.3 7.4-12.9 22-5.7 32.6 7.1 10.6 21.4 13.1 32 6 10.6-7.4 13.1-22 6-32.6-7.4-10.6-21.7-13.5-32.3-6z"}}'),...JSON.parse('{"envelope":{"viewBox":"0 0 512 512","path":"M464 64H48C21.49 64 0 85.49 0 112v288c0 26.51 21.49 48 48 48h416c26.51 0 48-21.49 48-48V112c0-26.51-21.49-48-48-48zm0 48v40.805c-22.422 18.259-58.168 46.651-134.587 106.49-16.841 13.247-50.201 45.072-73.413 44.701-23.208.375-56.579-31.459-73.413-44.701C106.18 199.465 70.425 171.067 48 152.805V112h416zM48 400V214.398c22.914 18.251 55.409 43.862 104.938 82.646 21.857 17.205 60.134 55.186 103.062 54.955 42.717.231 80.509-37.199 103.053-54.947 49.528-38.783 82.032-64.401 104.947-82.653V400H48z"},"star":{"viewBox":"0 0 576 512","path":"M528.1 171.5L382 150.2 316.7 17.8c-11.7-23.6-45.6-23.9-57.4 0L194 150.2 47.9 171.5c-26.2 3.8-36.7 36.1-17.7 54.6l105.7 103-25 145.5c-4.5 26.3 23.2 46 46.4 33.7L288 439.6l130.7 68.7c23.2 12.2 50.9-7.4 46.4-33.7l-25-145.5 105.7-103c19-18.5 8.5-50.8-17.7-54.6zM388.6 312.3l23.7 138.4L288 385.4l-124.3 65.3 23.7-138.4-100.6-98 139-20.2 62.2-126 62.2 126 139 20.2-100.6 98z"},"file":{"viewBox":"0 0 384 512","path":"M369.9 97.9L286 14C277 5 264.8-.1 252.1-.1H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48V131.9c0-12.7-5.1-25-14.1-34zM332.1 128H256V51.9l76.1 76.1zM48 464V48h160v104c0 13.3 10.7 24 24 24h104v288H48z"},"clock":{"viewBox":"0 0 512 512","path":"M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm0 448c-110.5 0-200-89.5-200-200S145.5 56 256 56s200 89.5 200 200-89.5 200-200 200zm61.8-104.4l-84.9-61.7c-3.1-2.3-4.9-5.9-4.9-9.7V116c0-6.6 5.4-12 12-12h32c6.6 0 12 5.4 12 12v141.7l66.8 48.6c5.4 3.9 6.5 11.4 2.6 16.8L334.6 349c-3.9 5.3-11.4 6.5-16.8 2.6z"},"play-circle":{"viewBox":"0 0 512 512","path":"M371.7 238l-176-107c-15.8-8.8-35.7 2.5-35.7 21v208c0 18.4 19.8 29.8 35.7 21l176-101c16.4-9.1 16.4-32.8 0-42zM504 256C504 119 393 8 256 8S8 119 8 256s111 248 248 248 248-111 248-248zm-448 0c0-110.5 89.5-200 200-200s200 89.5 200 200-89.5 200-200 200S56 366.5 56 256z"},"image":{"viewBox":"0 0 512 512","path":"M464 64H48C21.49 64 0 85.49 0 112v288c0 26.51 21.49 48 48 48h416c26.51 0 48-21.49 48-48V112c0-26.51-21.49-48-48-48zm-6 336H54a6 6 0 0 1-6-6V118a6 6 0 0 1 6-6h404a6 6 0 0 1 6 6v276a6 6 0 0 1-6 6zM128 152c-22.091 0-40 17.909-40 40s17.909 40 40 40 40-17.909 40-40-17.909-40-40-40zM96 352h320v-80l-87.515-87.515c-4.686-4.686-12.284-4.686-16.971 0L192 304l-39.515-39.515c-4.686-4.686-12.284-4.686-16.971 0L96 304v48z"},"share-square":{"viewBox":"0 0 576 512","path":"M561.938 158.06L417.94 14.092C387.926-15.922 336 5.097 336 48.032v57.198c-42.45 1.88-84.03 6.55-120.76 17.99-35.17 10.95-63.07 27.58-82.91 49.42C108.22 199.2 96 232.6 96 271.94c0 61.697 33.178 112.455 84.87 144.76 37.546 23.508 85.248-12.651 71.02-55.74-15.515-47.119-17.156-70.923 84.11-78.76V336c0 42.993 51.968 63.913 81.94 33.94l143.998-144c18.75-18.74 18.75-49.14 0-67.88zM384 336V232.16C255.309 234.082 166.492 255.35 206.31 376 176.79 357.55 144 324.08 144 271.94c0-109.334 129.14-118.947 240-119.85V48l144 144-144 144zm24.74 84.493a82.658 82.658 0 0 0 20.974-9.303c7.976-4.952 18.286.826 18.286 10.214V464c0 26.51-21.49 48-48 48H48c-26.51 0-48-21.49-48-48V112c0-26.51 21.49-48 48-48h132c6.627 0 12 5.373 12 12v4.486c0 4.917-2.987 9.369-7.569 11.152-13.702 5.331-26.396 11.537-38.05 18.585a12.138 12.138 0 0 1-6.28 1.777H54a6 6 0 0 0-6 6v340a6 6 0 0 0 6 6h340a6 6 0 0 0 6-6v-25.966c0-5.37 3.579-10.059 8.74-11.541z"},"check-square":{"viewBox":"0 0 448 512","path":"M400 32H48C21.49 32 0 53.49 0 80v352c0 26.51 21.49 48 48 48h352c26.51 0 48-21.49 48-48V80c0-26.51-21.49-48-48-48zm0 400H48V80h352v352zm-35.864-241.724L191.547 361.48c-4.705 4.667-12.303 4.637-16.97-.068l-90.781-91.516c-4.667-4.705-4.637-12.303.069-16.971l22.719-22.536c4.705-4.667 12.303-4.637 16.97.069l59.792 60.277 141.352-140.216c4.705-4.667 12.303-4.637 16.97.068l22.536 22.718c4.667 4.706 4.637 12.304-.068 16.971z"},"times-circle":{"viewBox":"0 0 512 512","path":"M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm0 448c-110.5 0-200-89.5-200-200S145.5 56 256 56s200 89.5 200 200-89.5 200-200 200zm101.8-262.2L295.6 256l62.2 62.2c4.7 4.7 4.7 12.3 0 17l-22.6 22.6c-4.7 4.7-12.3 4.7-17 0L256 295.6l-62.2 62.2c-4.7 4.7-12.3 4.7-17 0l-22.6-22.6c-4.7-4.7-4.7-12.3 0-17l62.2-62.2-62.2-62.2c-4.7-4.7-4.7-12.3 0-17l22.6-22.6c4.7-4.7 12.3-4.7 17 0l62.2 62.2 62.2-62.2c4.7-4.7 12.3-4.7 17 0l22.6 22.6c4.7 4.7 4.7 12.3 0 17z"},"check-circle":{"viewBox":"0 0 512 512","path":"M256 8C119.033 8 8 119.033 8 256s111.033 248 248 248 248-111.033 248-248S392.967 8 256 8zm0 48c110.532 0 200 89.451 200 200 0 110.532-89.451 200-200 200-110.532 0-200-89.451-200-200 0-110.532 89.451-200 200-200m140.204 130.267l-22.536-22.718c-4.667-4.705-12.265-4.736-16.97-.068L215.346 303.697l-59.792-60.277c-4.667-4.705-12.265-4.736-16.97-.069l-22.719 22.536c-4.705 4.667-4.736 12.265-.068 16.971l90.781 91.516c4.667 4.705 12.265 4.736 16.97.068l172.589-171.204c4.704-4.668 4.734-12.266.067-16.971z"},"chart-bar":{"viewBox":"0 0 512 512","path":"M396.8 352h22.4c6.4 0 12.8-6.4 12.8-12.8V108.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v230.4c0 6.4 6.4 12.8 12.8 12.8zm-192 0h22.4c6.4 0 12.8-6.4 12.8-12.8V140.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v198.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h22.4c6.4 0 12.8-6.4 12.8-12.8V204.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v134.4c0 6.4 6.4 12.8 12.8 12.8zM496 400H48V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16zm-387.2-48h22.4c6.4 0 12.8-6.4 12.8-12.8v-70.4c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v70.4c0 6.4 6.4 12.8 12.8 12.8z"},"thumbs-up":{"viewBox":"0 0 512 512","path":"M466.27 286.69C475.04 271.84 480 256 480 236.85c0-44.015-37.218-85.58-85.82-85.58H357.7c4.92-12.81 8.85-28.13 8.85-46.54C366.55 31.936 328.86 0 271.28 0c-61.607 0-58.093 94.933-71.76 108.6-22.747 22.747-49.615 66.447-68.76 83.4H32c-17.673 0-32 14.327-32 32v240c0 17.673 14.327 32 32 32h64c14.893 0 27.408-10.174 30.978-23.95 44.509 1.001 75.06 39.94 177.802 39.94 7.22 0 15.22.01 22.22.01 77.117 0 111.986-39.423 112.94-95.33 13.319-18.425 20.299-43.122 17.34-66.99 9.854-18.452 13.664-40.343 8.99-62.99zm-61.75 53.83c12.56 21.13 1.26 49.41-13.94 57.57 7.7 48.78-17.608 65.9-53.12 65.9h-37.82c-71.639 0-118.029-37.82-171.64-37.82V240h10.92c28.36 0 67.98-70.89 94.54-97.46 28.36-28.36 18.91-75.63 37.82-94.54 47.27 0 47.27 32.98 47.27 56.73 0 39.17-28.36 56.72-28.36 94.54h103.99c21.11 0 37.73 18.91 37.82 37.82.09 18.9-12.82 37.81-22.27 37.81 13.489 14.555 16.371 45.236-5.21 65.62zM88 432c0 13.255-10.745 24-24 24s-24-10.745-24-24 10.745-24 24-24 24 10.745 24 24z"},"thumbs-down":{"viewBox":"0 0 512 512","path":"M466.27 225.31c4.674-22.647.864-44.538-8.99-62.99 2.958-23.868-4.021-48.565-17.34-66.99C438.986 39.423 404.117 0 327 0c-7 0-15 .01-22.22.01C201.195.01 168.997 40 128 40h-10.845c-5.64-4.975-13.042-8-21.155-8H32C14.327 32 0 46.327 0 64v240c0 17.673 14.327 32 32 32h64c11.842 0 22.175-6.438 27.708-16h7.052c19.146 16.953 46.013 60.653 68.76 83.4 13.667 13.667 10.153 108.6 71.76 108.6 57.58 0 95.27-31.936 95.27-104.73 0-18.41-3.93-33.73-8.85-46.54h36.48c48.602 0 85.82-41.565 85.82-85.58 0-19.15-4.96-34.99-13.73-49.84zM64 296c-13.255 0-24-10.745-24-24s10.745-24 24-24 24 10.745 24 24-10.745 24-24 24zm330.18 16.73H290.19c0 37.82 28.36 55.37 28.36 94.54 0 23.75 0 56.73-47.27 56.73-18.91-18.91-9.46-66.18-37.82-94.54C206.9 342.89 167.28 272 138.92 272H128V85.83c53.611 0 100.001-37.82 171.64-37.82h37.82c35.512 0 60.82 17.12 53.12 65.9 15.2 8.16 26.5 36.44 13.94 57.57 21.581 20.384 18.699 51.065 5.21 65.62 9.45 0 22.36 18.91 22.27 37.81-.09 18.91-16.71 37.82-37.82 37.82z"},"heart":{"viewBox":"0 0 512 512","path":"M458.4 64.3C400.6 15.7 311.3 23 256 79.3 200.7 23 111.4 15.6 53.6 64.3-21.6 127.6-10.6 230.8 43 285.5l175.4 178.7c10 10.2 23.4 15.9 37.6 15.9 14.3 0 27.6-5.6 37.6-15.8L469 285.6c53.5-54.7 64.7-157.9-10.6-221.3zm-23.6 187.5L259.4 430.5c-2.4 2.4-4.4 2.4-6.8 0L77.2 251.8c-36.5-37.2-43.9-107.6 7.3-150.7 38.9-32.7 98.9-27.8 136.5 10.5l35 35.7 35-35.7c37.8-38.5 97.8-43.2 136.5-10.6 51.1 43.1 43.5 113.9 7.3 150.8z"},"lemon":{"viewBox":"0 0 512 512","path":"M484.112 27.889C455.989-.233 416.108-8.057 387.059 8.865 347.604 31.848 223.504-41.111 91.196 91.197-41.277 223.672 31.923 347.472 8.866 387.058c-16.922 29.051-9.1 68.932 19.022 97.054 28.135 28.135 68.011 35.938 97.057 19.021 39.423-22.97 163.557 49.969 295.858-82.329 132.474-132.477 59.273-256.277 82.331-295.861 16.922-29.05 9.1-68.931-19.022-97.054zm-22.405 72.894c-38.8 66.609 45.6 165.635-74.845 286.08-120.44 120.443-219.475 36.048-286.076 74.843-22.679 13.207-64.035-27.241-50.493-50.488 38.8-66.609-45.6-165.635 74.845-286.08C245.573 4.702 344.616 89.086 411.219 50.292c22.73-13.24 64.005 27.288 50.488 50.491zm-169.861 8.736c1.37 10.96-6.404 20.957-17.365 22.327-54.846 6.855-135.779 87.787-142.635 142.635-1.373 10.989-11.399 18.734-22.326 17.365-10.961-1.37-18.735-11.366-17.365-22.326 9.162-73.286 104.167-168.215 177.365-177.365 10.953-1.368 20.956 6.403 22.326 17.364z"},"square":{"viewBox":"0 0 448 512","path":"M400 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zm-6 400H54c-3.3 0-6-2.7-6-6V86c0-3.3 2.7-6 6-6h340c3.3 0 6 2.7 6 6v340c0 3.3-2.7 6-6 6z"},"bookmark":{"viewBox":"0 0 384 512","path":"M336 0H48C21.49 0 0 21.49 0 48v464l192-112 192 112V48c0-26.51-21.49-48-48-48zm0 428.43l-144-84-144 84V54a6 6 0 0 1 6-6h276c3.314 0 6 2.683 6 5.996V428.43z"},"hdd":{"viewBox":"0 0 576 512","path":"M567.403 235.642L462.323 84.589A48 48 0 0 0 422.919 64H153.081a48 48 0 0 0-39.404 20.589L8.597 235.642A48.001 48.001 0 0 0 0 263.054V400c0 26.51 21.49 48 48 48h480c26.51 0 48-21.49 48-48V263.054c0-9.801-3-19.366-8.597-27.412zM153.081 112h269.838l77.913 112H75.168l77.913-112zM528 400H48V272h480v128zm-32-64c0 17.673-14.327 32-32 32s-32-14.327-32-32 14.327-32 32-32 32 14.327 32 32zm-96 0c0 17.673-14.327 32-32 32s-32-14.327-32-32 14.327-32 32-32 32 14.327 32 32z"},"hand-point-right":{"viewBox":"0 0 512 512","path":"M428.8 137.6h-86.177a115.52 115.52 0 0 0 2.176-22.4c0-47.914-35.072-83.2-92-83.2-45.314 0-57.002 48.537-75.707 78.784-7.735 12.413-16.994 23.317-25.851 33.253l-.131.146-.129.148C135.662 161.807 127.764 168 120.8 168h-2.679c-5.747-4.952-13.536-8-22.12-8H32c-17.673 0-32 12.894-32 28.8v230.4C0 435.106 14.327 448 32 448h64c8.584 0 16.373-3.048 22.12-8h2.679c28.688 0 67.137 40 127.2 40h21.299c62.542 0 98.8-38.658 99.94-91.145 12.482-17.813 18.491-40.785 15.985-62.791A93.148 93.148 0 0 0 393.152 304H428.8c45.435 0 83.2-37.584 83.2-83.2 0-45.099-38.101-83.2-83.2-83.2zm0 118.4h-91.026c12.837 14.669 14.415 42.825-4.95 61.05 11.227 19.646 1.687 45.624-12.925 53.625 6.524 39.128-10.076 61.325-50.6 61.325H248c-45.491 0-77.21-35.913-120-39.676V215.571c25.239-2.964 42.966-21.222 59.075-39.596 11.275-12.65 21.725-25.3 30.799-39.875C232.355 112.712 244.006 80 252.8 80c23.375 0 44 8.8 44 35.2 0 35.2-26.4 53.075-26.4 70.4h158.4c18.425 0 35.2 16.5 35.2 35.2 0 18.975-16.225 35.2-35.2 35.2zM88 384c0 13.255-10.745 24-24 24s-24-10.745-24-24 10.745-24 24-24 24 10.745 24 24z"},"hand-point-left":{"viewBox":"0 0 512 512","path":"M0 220.8C0 266.416 37.765 304 83.2 304h35.647a93.148 93.148 0 0 0 7.929 22.064c-2.507 22.006 3.503 44.978 15.985 62.791C143.9 441.342 180.159 480 242.701 480H264c60.063 0 98.512-40 127.2-40h2.679c5.747 4.952 13.536 8 22.12 8h64c17.673 0 32-12.894 32-28.8V188.8c0-15.906-14.327-28.8-32-28.8h-64c-8.584 0-16.373 3.048-22.12 8H391.2c-6.964 0-14.862-6.193-30.183-23.668l-.129-.148-.131-.146c-8.856-9.937-18.116-20.841-25.851-33.253C316.202 80.537 304.514 32 259.2 32c-56.928 0-92 35.286-92 83.2 0 8.026.814 15.489 2.176 22.4H83.2C38.101 137.6 0 175.701 0 220.8zm48 0c0-18.7 16.775-35.2 35.2-35.2h158.4c0-17.325-26.4-35.2-26.4-70.4 0-26.4 20.625-35.2 44-35.2 8.794 0 20.445 32.712 34.926 56.1 9.074 14.575 19.524 27.225 30.799 39.875 16.109 18.374 33.836 36.633 59.075 39.596v176.752C341.21 396.087 309.491 432 264 432h-21.299c-40.524 0-57.124-22.197-50.601-61.325-14.612-8.001-24.151-33.979-12.925-53.625-19.365-18.225-17.787-46.381-4.95-61.05H83.2C64.225 256 48 239.775 48 220.8zM448 360c13.255 0 24 10.745 24 24s-10.745 24-24 24-24-10.745-24-24 10.745-24 24-24z"},"hand-point-up":{"viewBox":"0 0 448 512","path":"M105.6 83.2v86.177a115.52 115.52 0 0 0-22.4-2.176c-47.914 0-83.2 35.072-83.2 92 0 45.314 48.537 57.002 78.784 75.707 12.413 7.735 23.317 16.994 33.253 25.851l.146.131.148.129C129.807 376.338 136 384.236 136 391.2v2.679c-4.952 5.747-8 13.536-8 22.12v64c0 17.673 12.894 32 28.8 32h230.4c15.906 0 28.8-14.327 28.8-32v-64c0-8.584-3.048-16.373-8-22.12V391.2c0-28.688 40-67.137 40-127.2v-21.299c0-62.542-38.658-98.8-91.145-99.94-17.813-12.482-40.785-18.491-62.791-15.985A93.148 93.148 0 0 0 272 118.847V83.2C272 37.765 234.416 0 188.8 0c-45.099 0-83.2 38.101-83.2 83.2zm118.4 0v91.026c14.669-12.837 42.825-14.415 61.05 4.95 19.646-11.227 45.624-1.687 53.625 12.925 39.128-6.524 61.325 10.076 61.325 50.6V264c0 45.491-35.913 77.21-39.676 120H183.571c-2.964-25.239-21.222-42.966-39.596-59.075-12.65-11.275-25.3-21.725-39.875-30.799C80.712 279.645 48 267.994 48 259.2c0-23.375 8.8-44 35.2-44 35.2 0 53.075 26.4 70.4 26.4V83.2c0-18.425 16.5-35.2 35.2-35.2 18.975 0 35.2 16.225 35.2 35.2zM352 424c13.255 0 24 10.745 24 24s-10.745 24-24 24-24-10.745-24-24 10.745-24 24-24z"},"hand-point-down":{"viewBox":"0 0 448 512","path":"M188.8 512c45.616 0 83.2-37.765 83.2-83.2v-35.647a93.148 93.148 0 0 0 22.064-7.929c22.006 2.507 44.978-3.503 62.791-15.985C409.342 368.1 448 331.841 448 269.299V248c0-60.063-40-98.512-40-127.2v-2.679c4.952-5.747 8-13.536 8-22.12V32c0-17.673-12.894-32-28.8-32H156.8C140.894 0 128 14.327 128 32v64c0 8.584 3.048 16.373 8 22.12v2.679c0 6.964-6.193 14.862-23.668 30.183l-.148.129-.146.131c-9.937 8.856-20.841 18.116-33.253 25.851C48.537 195.798 0 207.486 0 252.8c0 56.928 35.286 92 83.2 92 8.026 0 15.489-.814 22.4-2.176V428.8c0 45.099 38.101 83.2 83.2 83.2zm0-48c-18.7 0-35.2-16.775-35.2-35.2V270.4c-17.325 0-35.2 26.4-70.4 26.4-26.4 0-35.2-20.625-35.2-44 0-8.794 32.712-20.445 56.1-34.926 14.575-9.074 27.225-19.524 39.875-30.799 18.374-16.109 36.633-33.836 39.596-59.075h176.752C364.087 170.79 400 202.509 400 248v21.299c0 40.524-22.197 57.124-61.325 50.601-8.001 14.612-33.979 24.151-53.625 12.925-18.225 19.365-46.381 17.787-61.05 4.95V428.8c0 18.975-16.225 35.2-35.2 35.2zM328 64c0-13.255 10.745-24 24-24s24 10.745 24 24-10.745 24-24 24-24-10.745-24-24z"},"copy":{"viewBox":"0 0 448 512","path":"M433.941 65.941l-51.882-51.882A48 48 0 0 0 348.118 0H176c-26.51 0-48 21.49-48 48v48H48c-26.51 0-48 21.49-48 48v320c0 26.51 21.49 48 48 48h224c26.51 0 48-21.49 48-48v-48h80c26.51 0 48-21.49 48-48V99.882a48 48 0 0 0-14.059-33.941zM266 464H54a6 6 0 0 1-6-6V150a6 6 0 0 1 6-6h74v224c0 26.51 21.49 48 48 48h96v42a6 6 0 0 1-6 6zm128-96H182a6 6 0 0 1-6-6V54a6 6 0 0 1 6-6h106v88c0 13.255 10.745 24 24 24h88v202a6 6 0 0 1-6 6zm6-256h-64V48h9.632c1.591 0 3.117.632 4.243 1.757l48.368 48.368a6 6 0 0 1 1.757 4.243V112z"},"save":{"viewBox":"0 0 448 512","path":"M433.941 129.941l-83.882-83.882A48 48 0 0 0 316.118 32H48C21.49 32 0 53.49 0 80v352c0 26.51 21.49 48 48 48h352c26.51 0 48-21.49 48-48V163.882a48 48 0 0 0-14.059-33.941zM272 80v80H144V80h128zm122 352H54a6 6 0 0 1-6-6V86a6 6 0 0 1 6-6h42v104c0 13.255 10.745 24 24 24h176c13.255 0 24-10.745 24-24V83.882l78.243 78.243a6 6 0 0 1 1.757 4.243V426a6 6 0 0 1-6 6zM224 232c-48.523 0-88 39.477-88 88s39.477 88 88 88 88-39.477 88-88-39.477-88-88-88zm0 128c-22.056 0-40-17.944-40-40s17.944-40 40-40 40 17.944 40 40-17.944 40-40 40z"},"money-bill-alt":{"viewBox":"0 0 640 512","path":"M320 144c-53.02 0-96 50.14-96 112 0 61.85 42.98 112 96 112 53 0 96-50.13 96-112 0-61.86-42.98-112-96-112zm40 168c0 4.42-3.58 8-8 8h-64c-4.42 0-8-3.58-8-8v-16c0-4.42 3.58-8 8-8h16v-55.44l-.47.31a7.992 7.992 0 0 1-11.09-2.22l-8.88-13.31a7.992 7.992 0 0 1 2.22-11.09l15.33-10.22a23.99 23.99 0 0 1 13.31-4.03H328c4.42 0 8 3.58 8 8v88h16c4.42 0 8 3.58 8 8v16zM608 64H32C14.33 64 0 78.33 0 96v320c0 17.67 14.33 32 32 32h576c17.67 0 32-14.33 32-32V96c0-17.67-14.33-32-32-32zm-16 272c-35.35 0-64 28.65-64 64H112c0-35.35-28.65-64-64-64V176c35.35 0 64-28.65 64-64h416c0 35.35 28.65 64 64 64v160z"},"comment":{"viewBox":"0 0 512 512","path":"M256 32C114.6 32 0 125.1 0 240c0 47.6 19.9 91.2 52.9 126.3C38 405.7 7 439.1 6.5 439.5c-6.6 7-8.4 17.2-4.6 26S14.4 480 24 480c61.5 0 110-25.7 139.1-46.3C192 442.8 223.2 448 256 448c141.4 0 256-93.1 256-208S397.4 32 256 32zm0 368c-26.7 0-53.1-4.1-78.4-12.1l-22.7-7.2-19.5 13.8c-14.3 10.1-33.9 21.4-57.5 29 7.3-12.1 14.4-25.7 19.9-40.2l10.6-28.1-20.6-21.8C69.7 314.1 48 282.2 48 240c0-88.2 93.3-160 208-160s208 71.8 208 160-93.3 160-208 160z"},"comments":{"viewBox":"0 0 576 512","path":"M532 386.2c27.5-27.1 44-61.1 44-98.2 0-80-76.5-146.1-176.2-157.9C368.3 72.5 294.3 32 208 32 93.1 32 0 103.6 0 192c0 37 16.5 71 44 98.2-15.3 30.7-37.3 54.5-37.7 54.9-6.3 6.7-8.1 16.5-4.4 25 3.6 8.5 12 14 21.2 14 53.5 0 96.7-20.2 125.2-38.8 9.2 2.1 18.7 3.7 28.4 4.9C208.1 407.6 281.8 448 368 448c20.8 0 40.8-2.4 59.8-6.8C456.3 459.7 499.4 480 553 480c9.2 0 17.5-5.5 21.2-14 3.6-8.5 1.9-18.3-4.4-25-.4-.3-22.5-24.1-37.8-54.8zm-392.8-92.3L122.1 305c-14.1 9.1-28.5 16.3-43.1 21.4 2.7-4.7 5.4-9.7 8-14.8l15.5-31.1L77.7 256C64.2 242.6 48 220.7 48 192c0-60.7 73.3-112 160-112s160 51.3 160 112-73.3 112-160 112c-16.5 0-33-1.9-49-5.6l-19.8-4.5zM498.3 352l-24.7 24.4 15.5 31.1c2.6 5.1 5.3 10.1 8 14.8-14.6-5.1-29-12.3-43.1-21.4l-17.1-11.1-19.9 4.6c-16 3.7-32.5 5.6-49 5.6-54 0-102.2-20.1-131.3-49.7C338 339.5 416 272.9 416 192c0-3.4-.4-6.7-.7-10C479.7 196.5 528 238.8 528 288c0 28.7-16.2 50.6-29.7 64z"},"lightbulb":{"viewBox":"0 0 352 512","path":"M176 80c-52.94 0-96 43.06-96 96 0 8.84 7.16 16 16 16s16-7.16 16-16c0-35.3 28.72-64 64-64 8.84 0 16-7.16 16-16s-7.16-16-16-16zM96.06 459.17c0 3.15.93 6.22 2.68 8.84l24.51 36.84c2.97 4.46 7.97 7.14 13.32 7.14h78.85c5.36 0 10.36-2.68 13.32-7.14l24.51-36.84c1.74-2.62 2.67-5.7 2.68-8.84l.05-43.18H96.02l.04 43.18zM176 0C73.72 0 0 82.97 0 176c0 44.37 16.45 84.85 43.56 115.78 16.64 18.99 42.74 58.8 52.42 92.16v.06h48v-.12c-.01-4.77-.72-9.51-2.15-14.07-5.59-17.81-22.82-64.77-62.17-109.67-20.54-23.43-31.52-53.15-31.61-84.14-.2-73.64 59.67-128 127.95-128 70.58 0 128 57.42 128 128 0 30.97-11.24 60.85-31.65 84.14-39.11 44.61-56.42 91.47-62.1 109.46a47.507 47.507 0 0 0-2.22 14.3v.1h48v-.05c9.68-33.37 35.78-73.18 52.42-92.16C335.55 260.85 352 220.37 352 176 352 78.8 273.2 0 176 0z"},"bell":{"viewBox":"0 0 448 512","path":"M439.39 362.29c-19.32-20.76-55.47-51.99-55.47-154.29 0-77.7-54.48-139.9-127.94-155.16V32c0-17.67-14.32-32-31.98-32s-31.98 14.33-31.98 32v20.84C118.56 68.1 64.08 130.3 64.08 208c0 102.3-36.15 133.53-55.47 154.29-6 6.45-8.66 14.16-8.61 21.71.11 16.4 12.98 32 32.1 32h383.8c19.12 0 32-15.6 32.1-32 .05-7.55-2.61-15.27-8.61-21.71zM67.53 368c21.22-27.97 44.42-74.33 44.53-159.42 0-.2-.06-.38-.06-.58 0-61.86 50.14-112 112-112s112 50.14 112 112c0 .2-.06.38-.06.58.11 85.1 23.31 131.46 44.53 159.42H67.53zM224 512c35.32 0 63.97-28.65 63.97-64H160.03c0 35.35 28.65 64 63.97 64z"},"file-alt":{"viewBox":"0 0 384 512","path":"M288 248v28c0 6.6-5.4 12-12 12H108c-6.6 0-12-5.4-12-12v-28c0-6.6 5.4-12 12-12h168c6.6 0 12 5.4 12 12zm-12 72H108c-6.6 0-12 5.4-12 12v28c0 6.6 5.4 12 12 12h168c6.6 0 12-5.4 12-12v-28c0-6.6-5.4-12-12-12zm108-188.1V464c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V48C0 21.5 21.5 0 48 0h204.1C264.8 0 277 5.1 286 14.1L369.9 98c9 8.9 14.1 21.2 14.1 33.9zm-128-80V128h76.1L256 51.9zM336 464V176H232c-13.3 0-24-10.7-24-24V48H48v416h288z"},"building":{"viewBox":"0 0 448 512","path":"M128 148v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12zm140 12h40c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12zm-128 96h40c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12zm128 0h40c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12zm-76 84v-40c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12zm76 12h40c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12zm180 124v36H0v-36c0-6.6 5.4-12 12-12h19.5V24c0-13.3 10.7-24 24-24h337c13.3 0 24 10.7 24 24v440H436c6.6 0 12 5.4 12 12zM79.5 463H192v-67c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v67h112.5V49L80 48l-.5 415z"},"hospital":{"viewBox":"0 0 448 512","path":"M128 244v-40c0-6.627 5.373-12 12-12h40c6.627 0 12 5.373 12 12v40c0 6.627-5.373 12-12 12h-40c-6.627 0-12-5.373-12-12zm140 12h40c6.627 0 12-5.373 12-12v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12zm-76 84v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm76 12h40c6.627 0 12-5.373 12-12v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12zm180 124v36H0v-36c0-6.627 5.373-12 12-12h19.5V85.035C31.5 73.418 42.245 64 55.5 64H144V24c0-13.255 10.745-24 24-24h112c13.255 0 24 10.745 24 24v40h88.5c13.255 0 24 9.418 24 21.035V464H436c6.627 0 12 5.373 12 12zM79.5 463H192v-67c0-6.627 5.373-12 12-12h40c6.627 0 12 5.373 12 12v67h112.5V112H304v24c0 13.255-10.745 24-24 24H168c-13.255 0-24-10.745-24-24v-24H79.5v351zM266 64h-26V38a6 6 0 0 0-6-6h-20a6 6 0 0 0-6 6v26h-26a6 6 0 0 0-6 6v20a6 6 0 0 0 6 6h26v26a6 6 0 0 0 6 6h20a6 6 0 0 0 6-6V96h26a6 6 0 0 0 6-6V70a6 6 0 0 0-6-6z"},"circle":{"viewBox":"0 0 512 512","path":"M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm0 448c-110.5 0-200-89.5-200-200S145.5 56 256 56s200 89.5 200 200-89.5 200-200 200z"},"folder":{"viewBox":"0 0 512 512","path":"M464 128H272l-54.63-54.63c-6-6-14.14-9.37-22.63-9.37H48C21.49 64 0 85.49 0 112v288c0 26.51 21.49 48 48 48h416c26.51 0 48-21.49 48-48V176c0-26.51-21.49-48-48-48zm0 272H48V112h140.12l54.63 54.63c6 6 14.14 9.37 22.63 9.37H464v224z"},"folder-open":{"viewBox":"0 0 576 512","path":"M527.943 224H480v-48c0-26.51-21.49-48-48-48H272l-64-64H48C21.49 64 0 85.49 0 112v288c0 26.51 21.49 48 48 48h400a48.001 48.001 0 0 0 40.704-22.56l79.942-128c19.948-31.917-3.038-73.44-40.703-73.44zM54 112h134.118l64 64H426a6 6 0 0 1 6 6v42H152a48 48 0 0 0-41.098 23.202L48 351.449V117.993A5.993 5.993 0 0 1 54 112zm394 288H72l77.234-128H528l-80 128z"},"smile":{"viewBox":"0 0 496 512","path":"M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm0 448c-110.3 0-200-89.7-200-200S137.7 56 248 56s200 89.7 200 200-89.7 200-200 200zm-80-216c17.7 0 32-14.3 32-32s-14.3-32-32-32-32 14.3-32 32 14.3 32 32 32zm160 0c17.7 0 32-14.3 32-32s-14.3-32-32-32-32 14.3-32 32 14.3 32 32 32zm4 72.6c-20.8 25-51.5 39.4-84 39.4s-63.2-14.3-84-39.4c-8.5-10.2-23.7-11.5-33.8-3.1-10.2 8.5-11.5 23.6-3.1 33.8 30 36 74.1 56.6 120.9 56.6s90.9-20.6 120.9-56.6c8.5-10.2 7.1-25.3-3.1-33.8-10.1-8.4-25.3-7.1-33.8 3.1z"},"frown":{"viewBox":"0 0 496 512","path":"M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm0 448c-110.3 0-200-89.7-200-200S137.7 56 248 56s200 89.7 200 200-89.7 200-200 200zm-80-216c17.7 0 32-14.3 32-32s-14.3-32-32-32-32 14.3-32 32 14.3 32 32 32zm160-64c-17.7 0-32 14.3-32 32s14.3 32 32 32 32-14.3 32-32-14.3-32-32-32zm-80 128c-40.2 0-78 17.7-103.8 48.6-8.5 10.2-7.1 25.3 3.1 33.8 10.2 8.4 25.3 7.1 33.8-3.1 16.6-19.9 41-31.4 66.9-31.4s50.3 11.4 66.9 31.4c8.1 9.7 23.1 11.9 33.8 3.1 10.2-8.5 11.5-23.6 3.1-33.8C326 321.7 288.2 304 248 304z"},"meh":{"viewBox":"0 0 496 512","path":"M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm0 448c-110.3 0-200-89.7-200-200S137.7 56 248 56s200 89.7 200 200-89.7 200-200 200zm-80-216c17.7 0 32-14.3 32-32s-14.3-32-32-32-32 14.3-32 32 14.3 32 32 32zm160-64c-17.7 0-32 14.3-32 32s14.3 32 32 32 32-14.3 32-32-14.3-32-32-32zm8 144H160c-13.2 0-24 10.8-24 24s10.8 24 24 24h176c13.2 0 24-10.8 24-24s-10.8-24-24-24z"},"keyboard":{"viewBox":"0 0 576 512","path":"M528 64H48C21.49 64 0 85.49 0 112v288c0 26.51 21.49 48 48 48h480c26.51 0 48-21.49 48-48V112c0-26.51-21.49-48-48-48zm8 336c0 4.411-3.589 8-8 8H48c-4.411 0-8-3.589-8-8V112c0-4.411 3.589-8 8-8h480c4.411 0 8 3.589 8 8v288zM170 270v-28c0-6.627-5.373-12-12-12h-28c-6.627 0-12 5.373-12 12v28c0 6.627 5.373 12 12 12h28c6.627 0 12-5.373 12-12zm96 0v-28c0-6.627-5.373-12-12-12h-28c-6.627 0-12 5.373-12 12v28c0 6.627 5.373 12 12 12h28c6.627 0 12-5.373 12-12zm96 0v-28c0-6.627-5.373-12-12-12h-28c-6.627 0-12 5.373-12 12v28c0 6.627 5.373 12 12 12h28c6.627 0 12-5.373 12-12zm96 0v-28c0-6.627-5.373-12-12-12h-28c-6.627 0-12 5.373-12 12v28c0 6.627 5.373 12 12 12h28c6.627 0 12-5.373 12-12zm-336 82v-28c0-6.627-5.373-12-12-12H82c-6.627 0-12 5.373-12 12v28c0 6.627 5.373 12 12 12h28c6.627 0 12-5.373 12-12zm384 0v-28c0-6.627-5.373-12-12-12h-28c-6.627 0-12 5.373-12 12v28c0 6.627 5.373 12 12 12h28c6.627 0 12-5.373 12-12zM122 188v-28c0-6.627-5.373-12-12-12H82c-6.627 0-12 5.373-12 12v28c0 6.627 5.373 12 12 12h28c6.627 0 12-5.373 12-12zm96 0v-28c0-6.627-5.373-12-12-12h-28c-6.627 0-12 5.373-12 12v28c0 6.627 5.373 12 12 12h28c6.627 0 12-5.373 12-12zm96 0v-28c0-6.627-5.373-12-12-12h-28c-6.627 0-12 5.373-12 12v28c0 6.627 5.373 12 12 12h28c6.627 0 12-5.373 12-12zm96 0v-28c0-6.627-5.373-12-12-12h-28c-6.627 0-12 5.373-12 12v28c0 6.627 5.373 12 12 12h28c6.627 0 12-5.373 12-12zm96 0v-28c0-6.627-5.373-12-12-12h-28c-6.627 0-12 5.373-12 12v28c0 6.627 5.373 12 12 12h28c6.627 0 12-5.373 12-12zm-98 158v-16c0-6.627-5.373-12-12-12H180c-6.627 0-12 5.373-12 12v16c0 6.627 5.373 12 12 12h216c6.627 0 12-5.373 12-12z"},"flag":{"viewBox":"0 0 512 512","path":"M336.174 80c-49.132 0-93.305-32-161.913-32-31.301 0-58.303 6.482-80.721 15.168a48.04 48.04 0 0 0 2.142-20.727C93.067 19.575 74.167 1.594 51.201.104 23.242-1.71 0 20.431 0 48c0 17.764 9.657 33.262 24 41.562V496c0 8.837 7.163 16 16 16h16c8.837 0 16-7.163 16-16v-83.443C109.869 395.28 143.259 384 199.826 384c49.132 0 93.305 32 161.913 32 58.479 0 101.972-22.617 128.548-39.981C503.846 367.161 512 352.051 512 335.855V95.937c0-34.459-35.264-57.768-66.904-44.117C409.193 67.309 371.641 80 336.174 80zM464 336c-21.783 15.412-60.824 32-102.261 32-59.945 0-102.002-32-161.913-32-43.361 0-96.379 9.403-127.826 24V128c21.784-15.412 60.824-32 102.261-32 59.945 0 102.002 32 161.913 32 43.271 0 96.32-17.366 127.826-32v240z"},"star-half":{"viewBox":"0 0 576 512","path":"M288 385.3l-124.3 65.4 23.7-138.4-100.6-98 139-20.2 62.2-126V0c-11.4 0-22.8 5.9-28.7 17.8L194 150.2 47.9 171.4c-26.2 3.8-36.7 36.1-17.7 54.6l105.7 103-25 145.5c-4.5 26.1 23 46 46.4 33.7L288 439.6v-54.3z"},"calendar":{"viewBox":"0 0 448 512","path":"M400 64h-48V12c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v52H160V12c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v52H48C21.5 64 0 85.5 0 112v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V112c0-26.5-21.5-48-48-48zm-6 400H54c-3.3 0-6-2.7-6-6V160h352v298c0 3.3-2.7 6-6 6z"},"minus-square":{"viewBox":"0 0 448 512","path":"M108 284c-6.6 0-12-5.4-12-12v-32c0-6.6 5.4-12 12-12h232c6.6 0 12 5.4 12 12v32c0 6.6-5.4 12-12 12H108zM448 80v352c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V80c0-26.5 21.5-48 48-48h352c26.5 0 48 21.5 48 48zm-48 346V86c0-3.3-2.7-6-6-6H54c-3.3 0-6 2.7-6 6v340c0 3.3 2.7 6 6 6h340c3.3 0 6-2.7 6-6z"},"caret-square-down":{"viewBox":"0 0 448 512","path":"M125.1 208h197.8c10.7 0 16.1 13 8.5 20.5l-98.9 98.3c-4.7 4.7-12.2 4.7-16.9 0l-98.9-98.3c-7.7-7.5-2.3-20.5 8.4-20.5zM448 80v352c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V80c0-26.5 21.5-48 48-48h352c26.5 0 48 21.5 48 48zm-48 346V86c0-3.3-2.7-6-6-6H54c-3.3 0-6 2.7-6 6v340c0 3.3 2.7 6 6 6h340c3.3 0 6-2.7 6-6z"},"caret-square-up":{"viewBox":"0 0 448 512","path":"M322.9 304H125.1c-10.7 0-16.1-13-8.5-20.5l98.9-98.3c4.7-4.7 12.2-4.7 16.9 0l98.9 98.3c7.7 7.5 2.3 20.5-8.4 20.5zM448 80v352c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V80c0-26.5 21.5-48 48-48h352c26.5 0 48 21.5 48 48zm-48 346V86c0-3.3-2.7-6-6-6H54c-3.3 0-6 2.7-6 6v340c0 3.3 2.7 6 6 6h340c3.3 0 6-2.7 6-6z"},"caret-square-right":{"viewBox":"0 0 448 512","path":"M176 354.9V157.1c0-10.7 13-16.1 20.5-8.5l98.3 98.9c4.7 4.7 4.7 12.2 0 16.9l-98.3 98.9c-7.5 7.7-20.5 2.3-20.5-8.4zM448 80v352c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V80c0-26.5 21.5-48 48-48h352c26.5 0 48 21.5 48 48zm-48 346V86c0-3.3-2.7-6-6-6H54c-3.3 0-6 2.7-6 6v340c0 3.3 2.7 6 6 6h340c3.3 0 6-2.7 6-6z"},"sun":{"viewBox":"0 0 512 512","path":"M494.2 221.9l-59.8-40.5 13.7-71c2.6-13.2-1.6-26.8-11.1-36.4-9.6-9.5-23.2-13.7-36.2-11.1l-70.9 13.7-40.4-59.9c-15.1-22.3-51.9-22.3-67 0l-40.4 59.9-70.8-13.7C98 60.4 84.5 64.5 75 74.1c-9.5 9.6-13.7 23.1-11.1 36.3l13.7 71-59.8 40.5C6.6 229.5 0 242 0 255.5s6.7 26 17.8 33.5l59.8 40.5-13.7 71c-2.6 13.2 1.6 26.8 11.1 36.3 9.5 9.5 22.9 13.7 36.3 11.1l70.8-13.7 40.4 59.9C230 505.3 242.6 512 256 512s26-6.7 33.5-17.8l40.4-59.9 70.9 13.7c13.4 2.7 26.8-1.6 36.3-11.1 9.5-9.5 13.6-23.1 11.1-36.3l-13.7-71 59.8-40.5c11.1-7.5 17.8-20.1 17.8-33.5-.1-13.6-6.7-26.1-17.9-33.7zm-112.9 85.6l17.6 91.2-91-17.6L256 458l-51.9-77-90.9 17.6 17.6-91.2-76.8-52 76.8-52-17.6-91.2 91 17.6L256 53l51.9 76.9 91-17.6-17.6 91.1 76.8 52-76.8 52.1zM256 152c-57.3 0-104 46.7-104 104s46.7 104 104 104 104-46.7 104-104-46.7-104-104-104zm0 160c-30.9 0-56-25.1-56-56s25.1-56 56-56 56 25.1 56 56-25.1 56-56 56z"},"moon":{"viewBox":"0 0 512 512","path":"M279.135 512c78.756 0 150.982-35.804 198.844-94.775 28.27-34.831-2.558-85.722-46.249-77.401-82.348 15.683-158.272-47.268-158.272-130.792 0-48.424 26.06-92.292 67.434-115.836 38.745-22.05 28.999-80.788-15.022-88.919A257.936 257.936 0 0 0 279.135 0c-141.36 0-256 114.575-256 256 0 141.36 114.576 256 256 256zm0-464c12.985 0 25.689 1.201 38.016 3.478-54.76 31.163-91.693 90.042-91.693 157.554 0 113.848 103.641 199.2 215.252 177.944C402.574 433.964 344.366 464 279.135 464c-114.875 0-208-93.125-208-208s93.125-208 208-208z"},"caret-square-left":{"viewBox":"0 0 448 512","path":"M272 157.1v197.8c0 10.7-13 16.1-20.5 8.5l-98.3-98.9c-4.7-4.7-4.7-12.2 0-16.9l98.3-98.9c7.5-7.7 20.5-2.3 20.5 8.4zM448 80v352c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V80c0-26.5 21.5-48 48-48h352c26.5 0 48 21.5 48 48zm-48 346V86c0-3.3-2.7-6-6-6H54c-3.3 0-6 2.7-6 6v340c0 3.3 2.7 6 6 6h340c3.3 0 6-2.7 6-6z"},"dot-circle":{"viewBox":"0 0 512 512","path":"M256 56c110.532 0 200 89.451 200 200 0 110.532-89.451 200-200 200-110.532 0-200-89.451-200-200 0-110.532 89.451-200 200-200m0-48C119.033 8 8 119.033 8 256s111.033 248 248 248 248-111.033 248-248S392.967 8 256 8zm0 168c-44.183 0-80 35.817-80 80s35.817 80 80 80 80-35.817 80-80-35.817-80-80-80z"},"plus-square":{"viewBox":"0 0 448 512","path":"M352 240v32c0 6.6-5.4 12-12 12h-88v88c0 6.6-5.4 12-12 12h-32c-6.6 0-12-5.4-12-12v-88h-88c-6.6 0-12-5.4-12-12v-32c0-6.6 5.4-12 12-12h88v-88c0-6.6 5.4-12 12-12h32c6.6 0 12 5.4 12 12v88h88c6.6 0 12 5.4 12 12zm96-160v352c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V80c0-26.5 21.5-48 48-48h352c26.5 0 48 21.5 48 48zm-48 346V86c0-3.3-2.7-6-6-6H54c-3.3 0-6 2.7-6 6v340c0 3.3 2.7 6 6 6h340c3.3 0 6-2.7 6-6z"},"file-pdf":{"viewBox":"0 0 384 512","path":"M369.9 97.9L286 14C277 5 264.8-.1 252.1-.1H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48V131.9c0-12.7-5.1-25-14.1-34zM332.1 128H256V51.9l76.1 76.1zM48 464V48h160v104c0 13.3 10.7 24 24 24h104v288H48zm250.2-143.7c-12.2-12-47-8.7-64.4-6.5-17.2-10.5-28.7-25-36.8-46.3 3.9-16.1 10.1-40.6 5.4-56-4.2-26.2-37.8-23.6-42.6-5.9-4.4 16.1-.4 38.5 7 67.1-10 23.9-24.9 56-35.4 74.4-20 10.3-47 26.2-51 46.2-3.3 15.8 26 55.2 76.1-31.2 22.4-7.4 46.8-16.5 68.4-20.1 18.9 10.2 41 17 55.8 17 25.5 0 28-28.2 17.5-38.7zm-198.1 77.8c5.1-13.7 24.5-29.5 30.4-35-19 30.3-30.4 35.7-30.4 35zm81.6-190.6c7.4 0 6.7 32.1 1.8 40.8-4.4-13.9-4.3-40.8-1.8-40.8zm-24.4 136.6c9.7-16.9 18-37 24.7-54.7 8.3 15.1 18.9 27.2 30.1 35.5-20.8 4.3-38.9 13.1-54.8 19.2zm131.6-5s-5 6-37.3-7.8c35.1-2.6 40.9 5.4 37.3 7.8z"},"file-word":{"viewBox":"0 0 384 512","path":"M369.9 97.9L286 14C277 5 264.8-.1 252.1-.1H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48V131.9c0-12.7-5.1-25-14.1-34zM332.1 128H256V51.9l76.1 76.1zM48 464V48h160v104c0 13.3 10.7 24 24 24h104v288H48zm220.1-208c-5.7 0-10.6 4-11.7 9.5-20.6 97.7-20.4 95.4-21 103.5-.2-1.2-.4-2.6-.7-4.3-.8-5.1.3.2-23.6-99.5-1.3-5.4-6.1-9.2-11.7-9.2h-13.3c-5.5 0-10.3 3.8-11.7 9.1-24.4 99-24 96.2-24.8 103.7-.1-1.1-.2-2.5-.5-4.2-.7-5.2-14.1-73.3-19.1-99-1.1-5.6-6-9.7-11.8-9.7h-16.8c-7.8 0-13.5 7.3-11.7 14.8 8 32.6 26.7 109.5 33.2 136 1.3 5.4 6.1 9.1 11.7 9.1h25.2c5.5 0 10.3-3.7 11.6-9.1l17.9-71.4c1.5-6.2 2.5-12 3-17.3l2.9 17.3c.1.4 12.6 50.5 17.9 71.4 1.3 5.3 6.1 9.1 11.6 9.1h24.7c5.5 0 10.3-3.7 11.6-9.1 20.8-81.9 30.2-119 34.5-136 1.9-7.6-3.8-14.9-11.6-14.9h-15.8z"},"file-excel":{"viewBox":"0 0 384 512","path":"M369.9 97.9L286 14C277 5 264.8-.1 252.1-.1H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48V131.9c0-12.7-5.1-25-14.1-34zM332.1 128H256V51.9l76.1 76.1zM48 464V48h160v104c0 13.3 10.7 24 24 24h104v288H48zm212-240h-28.8c-4.4 0-8.4 2.4-10.5 6.3-18 33.1-22.2 42.4-28.6 57.7-13.9-29.1-6.9-17.3-28.6-57.7-2.1-3.9-6.2-6.3-10.6-6.3H124c-9.3 0-15 10-10.4 18l46.3 78-46.3 78c-4.7 8 1.1 18 10.4 18h28.9c4.4 0 8.4-2.4 10.5-6.3 21.7-40 23-45 28.6-57.7 14.9 30.2 5.9 15.9 28.6 57.7 2.1 3.9 6.2 6.3 10.6 6.3H260c9.3 0 15-10 10.4-18L224 320c.7-1.1 30.3-50.5 46.3-78 4.7-8-1.1-18-10.3-18z"},"file-powerpoint":{"viewBox":"0 0 384 512","path":"M369.9 97.9L286 14C277 5 264.8-.1 252.1-.1H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48V131.9c0-12.7-5.1-25-14.1-34zM332.1 128H256V51.9l76.1 76.1zM48 464V48h160v104c0 13.3 10.7 24 24 24h104v288H48zm72-60V236c0-6.6 5.4-12 12-12h69.2c36.7 0 62.8 27 62.8 66.3 0 74.3-68.7 66.5-95.5 66.5V404c0 6.6-5.4 12-12 12H132c-6.6 0-12-5.4-12-12zm48.5-87.4h23c7.9 0 13.9-2.4 18.1-7.2 8.5-9.8 8.4-28.5.1-37.8-4.1-4.6-9.9-7-17.4-7h-23.9v52z"},"file-image":{"viewBox":"0 0 384 512","path":"M369.9 97.9L286 14C277 5 264.8-.1 252.1-.1H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48V131.9c0-12.7-5.1-25-14.1-34zM332.1 128H256V51.9l76.1 76.1zM48 464V48h160v104c0 13.3 10.7 24 24 24h104v288H48zm32-48h224V288l-23.5-23.5c-4.7-4.7-12.3-4.7-17 0L176 352l-39.5-39.5c-4.7-4.7-12.3-4.7-17 0L80 352v64zm48-240c-26.5 0-48 21.5-48 48s21.5 48 48 48 48-21.5 48-48-21.5-48-48-48z"},"file-archive":{"viewBox":"0 0 384 512","path":"M369.941 97.941l-83.882-83.882A48 48 0 0 0 252.118 0H48C21.49 0 0 21.49 0 48v416c0 26.51 21.49 48 48 48h288c26.51 0 48-21.49 48-48V131.882a48 48 0 0 0-14.059-33.941zM256 51.882L332.118 128H256V51.882zM336 464H48V48h79.714v16h32V48H208v104c0 13.255 10.745 24 24 24h104v288zM192.27 96h-32V64h32v32zm-32 0v32h-32V96h32zm0 64v32h-32v-32h32zm32 0h-32v-32h32v32zm1.909 105.678A12 12 0 0 0 182.406 256H160.27v-32h-32v32l-19.69 97.106C101.989 385.611 126.834 416 160 416c33.052 0 57.871-30.192 51.476-62.62l-17.297-87.702zM160.27 390.073c-17.918 0-32.444-12.105-32.444-27.036 0-14.932 14.525-27.036 32.444-27.036s32.444 12.105 32.444 27.036c0 14.931-14.526 27.036-32.444 27.036zm32-166.073h-32v-32h32v32z"},"file-audio":{"viewBox":"0 0 384 512","path":"M369.941 97.941l-83.882-83.882A48 48 0 0 0 252.118 0H48C21.49 0 0 21.49 0 48v416c0 26.51 21.49 48 48 48h288c26.51 0 48-21.49 48-48V131.882a48 48 0 0 0-14.059-33.941zM332.118 128H256V51.882L332.118 128zM48 464V48h160v104c0 13.255 10.745 24 24 24h104v288H48zm144-76.024c0 10.691-12.926 16.045-20.485 8.485L136 360.486h-28c-6.627 0-12-5.373-12-12v-56c0-6.627 5.373-12 12-12h28l35.515-36.947c7.56-7.56 20.485-2.206 20.485 8.485v135.952zm41.201-47.13c9.051-9.297 9.06-24.133.001-33.439-22.149-22.752 12.235-56.246 34.395-33.481 27.198 27.94 27.212 72.444.001 100.401-21.793 22.386-56.947-10.315-34.397-33.481z"},"file-video":{"viewBox":"0 0 384 512","path":"M369.941 97.941l-83.882-83.882A48 48 0 0 0 252.118 0H48C21.49 0 0 21.49 0 48v416c0 26.51 21.49 48 48 48h288c26.51 0 48-21.49 48-48V131.882a48 48 0 0 0-14.059-33.941zM332.118 128H256V51.882L332.118 128zM48 464V48h160v104c0 13.255 10.745 24 24 24h104v288H48zm228.687-211.303L224 305.374V268c0-11.046-8.954-20-20-20H100c-11.046 0-20 8.954-20 20v104c0 11.046 8.954 20 20 20h104c11.046 0 20-8.954 20-20v-37.374l52.687 52.674C286.704 397.318 304 390.28 304 375.986V264.011c0-14.311-17.309-21.319-27.313-11.314z"},"file-code":{"viewBox":"0 0 384 512","path":"M369.941 97.941l-83.882-83.882A48 48 0 0 0 252.118 0H48C21.49 0 0 21.49 0 48v416c0 26.51 21.49 48 48 48h288c26.51 0 48-21.49 48-48V131.882a48 48 0 0 0-14.059-33.941zM332.118 128H256V51.882L332.118 128zM48 464V48h160v104c0 13.255 10.745 24 24 24h104v288H48zm101.677-115.115L116.854 320l32.822-28.885a8.793 8.793 0 0 0 .605-12.624l-17.403-18.564c-3.384-3.613-8.964-3.662-12.438-.401L62.78 313.58c-3.703 3.474-3.704 9.367.001 12.84l57.659 54.055a8.738 8.738 0 0 0 6.012 2.381 8.746 8.746 0 0 0 6.427-2.782l17.403-18.563a8.795 8.795 0 0 0-.605-12.626zm84.284-127.85l-24.401-7.084a8.796 8.796 0 0 0-10.905 5.998L144.04 408.061c-1.353 4.66 1.338 9.552 5.998 10.905l24.403 7.084c4.68 1.355 9.557-1.354 10.905-5.998l54.612-188.112c1.354-4.66-1.337-9.552-5.997-10.905zm87.258 92.545l-57.658-54.055c-3.526-3.307-9.099-3.165-12.439.401l-17.403 18.563a8.795 8.795 0 0 0 .605 12.625L267.146 320l-32.822 28.885a8.793 8.793 0 0 0-.605 12.624l17.403 18.564a8.797 8.797 0 0 0 12.439.401h-.001l57.66-54.055c3.703-3.473 3.703-9.366-.001-12.839z"},"paper-plane":{"viewBox":"0 0 512 512","path":"M440 6.5L24 246.4c-34.4 19.9-31.1 70.8 5.7 85.9L144 379.6V464c0 46.4 59.2 65.5 86.6 28.6l43.8-59.1 111.9 46.2c5.9 2.4 12.1 3.6 18.3 3.6 8.2 0 16.3-2.1 23.6-6.2 12.8-7.2 21.6-20 23.9-34.5l59.4-387.2c6.1-40.1-36.9-68.8-71.5-48.9zM192 464v-64.6l36.6 15.1L192 464zm212.6-28.7l-153.8-63.5L391 169.5c10.7-15.5-9.5-33.5-23.7-21.2L155.8 332.6 48 288 464 48l-59.4 387.3z"},"futbol":{"viewBox":"0 0 496 512","path":"M483.8 179.4C449.8 74.6 352.6 8 248.1 8c-25.4 0-51.2 3.9-76.7 12.2C41.2 62.5-30.1 202.4 12.2 332.6 46.2 437.4 143.4 504 247.9 504c25.4 0 51.2-3.9 76.7-12.2 130.2-42.3 201.5-182.2 159.2-312.4zm-74.5 193.7l-52.2 6.4-43.7-60.9 24.4-75.2 71.1-22.1 38.9 36.4c-.2 30.7-7.4 61.1-21.7 89.2-4.7 9.3-10.7 17.8-16.8 26.2zm0-235.4l-10.4 53.1-70.7 22-64.2-46.5V92.5l47.4-26.2c39.2 13 73.4 38 97.9 71.4zM184.9 66.4L232 92.5v73.8l-64.2 46.5-70.6-22-10.1-52.5c24.3-33.4 57.9-58.6 97.8-71.9zM139 379.5L85.9 373c-14.4-20.1-37.3-59.6-37.8-115.3l39-36.4 71.1 22.2 24.3 74.3-43.5 61.7zm48.2 67l-22.4-48.1 43.6-61.7H287l44.3 61.7-22.4 48.1c-6.2 1.8-57.6 20.4-121.7 0z"},"newspaper":{"viewBox":"0 0 576 512","path":"M552 64H112c-20.858 0-38.643 13.377-45.248 32H24c-13.255 0-24 10.745-24 24v272c0 30.928 25.072 56 56 56h496c13.255 0 24-10.745 24-24V88c0-13.255-10.745-24-24-24zM48 392V144h16v248c0 4.411-3.589 8-8 8s-8-3.589-8-8zm480 8H111.422c.374-2.614.578-5.283.578-8V112h416v288zM172 280h136c6.627 0 12-5.373 12-12v-96c0-6.627-5.373-12-12-12H172c-6.627 0-12 5.373-12 12v96c0 6.627 5.373 12 12 12zm28-80h80v40h-80v-40zm-40 140v-24c0-6.627 5.373-12 12-12h136c6.627 0 12 5.373 12 12v24c0 6.627-5.373 12-12 12H172c-6.627 0-12-5.373-12-12zm192 0v-24c0-6.627 5.373-12 12-12h104c6.627 0 12 5.373 12 12v24c0 6.627-5.373 12-12 12H364c-6.627 0-12-5.373-12-12zm0-144v-24c0-6.627 5.373-12 12-12h104c6.627 0 12 5.373 12 12v24c0 6.627-5.373 12-12 12H364c-6.627 0-12-5.373-12-12zm0 72v-24c0-6.627 5.373-12 12-12h104c6.627 0 12 5.373 12 12v24c0 6.627-5.373 12-12 12H364c-6.627 0-12-5.373-12-12z"},"bell-slash":{"viewBox":"0 0 640 512","path":"M633.99 471.02L36 3.51C29.1-2.01 19.03-.9 13.51 6l-10 12.49C-2.02 25.39-.9 35.46 6 40.98l598 467.51c6.9 5.52 16.96 4.4 22.49-2.49l10-12.49c5.52-6.9 4.41-16.97-2.5-22.49zM163.53 368c16.71-22.03 34.48-55.8 41.4-110.58l-45.47-35.55c-3.27 90.73-36.47 120.68-54.84 140.42-6 6.45-8.66 14.16-8.61 21.71.11 16.4 12.98 32 32.1 32h279.66l-61.4-48H163.53zM320 96c61.86 0 112 50.14 112 112 0 .2-.06.38-.06.58.02 16.84 1.16 31.77 2.79 45.73l59.53 46.54c-8.31-22.13-14.34-51.49-14.34-92.85 0-77.7-54.48-139.9-127.94-155.16V32c0-17.67-14.32-32-31.98-32s-31.98 14.33-31.98 32v20.84c-26.02 5.41-49.45 16.94-69.13 32.72l38.17 29.84C275 103.18 296.65 96 320 96zm0 416c35.32 0 63.97-28.65 63.97-64H256.03c0 35.35 28.65 64 63.97 64z"},"closed-captioning":{"viewBox":"0 0 512 512","path":"M464 64H48C21.5 64 0 85.5 0 112v288c0 26.5 21.5 48 48 48h416c26.5 0 48-21.5 48-48V112c0-26.5-21.5-48-48-48zm-6 336H54c-3.3 0-6-2.7-6-6V118c0-3.3 2.7-6 6-6h404c3.3 0 6 2.7 6 6v276c0 3.3-2.7 6-6 6zm-211.1-85.7c1.7 2.4 1.5 5.6-.5 7.7-53.6 56.8-172.8 32.1-172.8-67.9 0-97.3 121.7-119.5 172.5-70.1 2.1 2 2.5 3.2 1 5.7l-17.5 30.5c-1.9 3.1-6.2 4-9.1 1.7-40.8-32-94.6-14.9-94.6 31.2 0 48 51 70.5 92.2 32.6 2.8-2.5 7.1-2.1 9.2.9l19.6 27.7zm190.4 0c1.7 2.4 1.5 5.6-.5 7.7-53.6 56.9-172.8 32.1-172.8-67.9 0-97.3 121.7-119.5 172.5-70.1 2.1 2 2.5 3.2 1 5.7L420 220.2c-1.9 3.1-6.2 4-9.1 1.7-40.8-32-94.6-14.9-94.6 31.2 0 48 51 70.5 92.2 32.6 2.8-2.5 7.1-2.1 9.2.9l19.6 27.7z"},"gem":{"viewBox":"0 0 576 512","path":"M464 0H112c-4 0-7.8 2-10 5.4L2 152.6c-2.9 4.4-2.6 10.2.7 14.2l276 340.8c4.8 5.9 13.8 5.9 18.6 0l276-340.8c3.3-4.1 3.6-9.8.7-14.2L474.1 5.4C471.8 2 468.1 0 464 0zm-19.3 48l63.3 96h-68.4l-51.7-96h56.8zm-202.1 0h90.7l51.7 96H191l51.6-96zm-111.3 0h56.8l-51.7 96H68l63.3-96zm-43 144h51.4L208 352 88.3 192zm102.9 0h193.6L288 435.3 191.2 192zM368 352l68.2-160h51.4L368 352z"},"sticky-note":{"viewBox":"0 0 448 512","path":"M448 348.106V80c0-26.51-21.49-48-48-48H48C21.49 32 0 53.49 0 80v351.988c0 26.51 21.49 48 48 48h268.118a48 48 0 0 0 33.941-14.059l83.882-83.882A48 48 0 0 0 448 348.106zm-128 80v-76.118h76.118L320 428.106zM400 80v223.988H296c-13.255 0-24 10.745-24 24v104H48V80h352z"},"hourglass":{"viewBox":"0 0 384 512","path":"M368 48h4c6.627 0 12-5.373 12-12V12c0-6.627-5.373-12-12-12H12C5.373 0 0 5.373 0 12v24c0 6.627 5.373 12 12 12h4c0 80.564 32.188 165.807 97.18 208C47.899 298.381 16 383.9 16 464h-4c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h360c6.627 0 12-5.373 12-12v-24c0-6.627-5.373-12-12-12h-4c0-80.564-32.188-165.807-97.18-208C336.102 213.619 368 128.1 368 48zM64 48h256c0 101.62-57.307 184-128 184S64 149.621 64 48zm256 416H64c0-101.62 57.308-184 128-184s128 82.38 128 184z"},"hand-rock":{"viewBox":"0 0 512 512","path":"M408.864 79.052c-22.401-33.898-66.108-42.273-98.813-23.588-29.474-31.469-79.145-31.093-108.334-.022-47.16-27.02-108.71 5.055-110.671 60.806C44.846 105.407 0 140.001 0 187.429v56.953c0 32.741 14.28 63.954 39.18 85.634l97.71 85.081c4.252 3.702 3.11 5.573 3.11 32.903 0 17.673 14.327 32 32 32h252c17.673 0 32-14.327 32-32 0-23.513-1.015-30.745 3.982-42.37l42.835-99.656c6.094-14.177 9.183-29.172 9.183-44.568V146.963c0-52.839-54.314-88.662-103.136-67.911zM464 261.406a64.505 64.505 0 0 1-5.282 25.613l-42.835 99.655c-5.23 12.171-7.883 25.04-7.883 38.25V432H188v-10.286c0-16.37-7.14-31.977-19.59-42.817l-97.71-85.08C56.274 281.255 48 263.236 48 244.381v-56.953c0-33.208 52-33.537 52 .677v41.228a16 16 0 0 0 5.493 12.067l7 6.095A16 16 0 0 0 139 235.429V118.857c0-33.097 52-33.725 52 .677v26.751c0 8.836 7.164 16 16 16h7c8.836 0 16-7.164 16-16v-41.143c0-33.134 52-33.675 52 .677v40.466c0 8.836 7.163 16 16 16h7c8.837 0 16-7.164 16-16v-27.429c0-33.03 52-33.78 52 .677v26.751c0 8.836 7.163 16 16 16h7c8.837 0 16-7.164 16-16 0-33.146 52-33.613 52 .677v114.445z"},"hand-paper":{"viewBox":"0 0 448 512","path":"M372.57 112.641v-10.825c0-43.612-40.52-76.691-83.039-65.546-25.629-49.5-94.09-47.45-117.982.747C130.269 26.456 89.144 57.945 89.144 102v126.13c-19.953-7.427-43.308-5.068-62.083 8.871-29.355 21.796-35.794 63.333-14.55 93.153L132.48 498.569a32 32 0 0 0 26.062 13.432h222.897c14.904 0 27.835-10.289 31.182-24.813l30.184-130.958A203.637 203.637 0 0 0 448 310.564V179c0-40.62-35.523-71.992-75.43-66.359zm27.427 197.922c0 11.731-1.334 23.469-3.965 34.886L368.707 464h-201.92L51.591 302.303c-14.439-20.27 15.023-42.776 29.394-22.605l27.128 38.079c8.995 12.626 29.031 6.287 29.031-9.283V102c0-25.645 36.571-24.81 36.571.691V256c0 8.837 7.163 16 16 16h6.856c8.837 0 16-7.163 16-16V67c0-25.663 36.571-24.81 36.571.691V256c0 8.837 7.163 16 16 16h6.856c8.837 0 16-7.163 16-16V101.125c0-25.672 36.57-24.81 36.57.691V256c0 8.837 7.163 16 16 16h6.857c8.837 0 16-7.163 16-16v-76.309c0-26.242 36.57-25.64 36.57-.691v131.563z"},"hand-scissors":{"viewBox":"0 0 512 512","path":"M256 480l70-.013c5.114 0 10.231-.583 15.203-1.729l118.999-27.427C490.56 443.835 512 417.02 512 386.277V180.575c0-23.845-13.03-45.951-34.005-57.69l-97.999-54.853c-34.409-19.261-67.263-5.824-92.218 24.733L142.85 37.008c-37.887-14.579-80.612 3.727-95.642 41.201-15.098 37.642 3.635 80.37 41.942 95.112L168 192l-94-9.141c-40.804 0-74 32.811-74 73.14 0 40.33 33.196 73.141 74 73.141h87.635c-3.675 26.245 8.692 51.297 30.341 65.006C178.657 436.737 211.044 480 256 480zm0-48.013c-25.16 0-25.12-36.567 0-36.567 8.837 0 16-7.163 16-16v-6.856c0-8.837-7.163-16-16-16h-28c-25.159 0-25.122-36.567 0-36.567h28c8.837 0 16-7.163 16-16v-6.856c0-8.837-7.163-16-16-16H74c-34.43 0-34.375-50.281 0-50.281h182c8.837 0 16-7.163 16-16v-11.632a16 16 0 0 0-10.254-14.933L106.389 128.51c-31.552-12.14-13.432-59.283 19.222-46.717l166.549 64.091a16.001 16.001 0 0 0 18.139-4.812l21.764-26.647c5.82-7.127 16.348-9.064 24.488-4.508l98 54.854c5.828 3.263 9.449 9.318 9.449 15.805v205.701c0 8.491-5.994 15.804-14.576 17.782l-119.001 27.427a19.743 19.743 0 0 1-4.423.502h-70z"},"hand-lizard":{"viewBox":"0 0 576 512","path":"M556.686 290.542L410.328 64.829C397.001 44.272 374.417 32 349.917 32H56C25.121 32 0 57.122 0 88v8c0 44.112 35.888 80 80 80h196.042l-18.333 48H144c-48.523 0-88 39.477-88 88 0 30.879 25.121 56 56 56h131.552c2.987 0 5.914.549 8.697 1.631L352 408.418V480h224V355.829c0-23.225-6.679-45.801-19.314-65.287zM528 432H400v-23.582c0-19.948-12.014-37.508-30.604-44.736l-99.751-38.788A71.733 71.733 0 0 0 243.552 320H112c-4.411 0-8-3.589-8-8 0-22.056 17.944-40 40-40h113.709c19.767 0 37.786-12.407 44.84-30.873l24.552-64.281c8.996-23.553-8.428-48.846-33.63-48.846H80c-17.645 0-32-14.355-32-32v-8c0-4.411 3.589-8 8-8h293.917c8.166 0 15.693 4.09 20.137 10.942l146.358 225.715A71.84 71.84 0 0 1 528 355.829V432z"},"hand-spock":{"viewBox":"0 0 512 512","path":"M21.096 381.79l129.092 121.513a32 32 0 0 0 21.932 8.698h237.6c14.17 0 26.653-9.319 30.68-22.904l31.815-107.313A115.955 115.955 0 0 0 477 348.811v-36.839c0-4.051.476-8.104 1.414-12.045l31.73-133.41c10.099-42.412-22.316-82.738-65.544-82.525-4.144-24.856-22.543-47.165-49.85-53.992-35.803-8.952-72.227 12.655-81.25 48.75L296.599 184 274.924 52.01c-8.286-36.07-44.303-58.572-80.304-50.296-29.616 6.804-50.138 32.389-51.882 61.295-42.637.831-73.455 40.563-64.071 81.844l31.04 136.508c-27.194-22.515-67.284-19.992-91.482 5.722-25.376 26.961-24.098 69.325 2.871 94.707zm32.068-61.811l.002-.001c7.219-7.672 19.241-7.98 26.856-.813l53.012 49.894C143.225 378.649 160 371.4 160 357.406v-69.479c0-1.193-.134-2.383-.397-3.546l-34.13-150.172c-5.596-24.617 31.502-32.86 37.054-8.421l30.399 133.757a16 16 0 0 0 15.603 12.454h8.604c10.276 0 17.894-9.567 15.594-19.583l-41.62-181.153c-5.623-24.469 31.39-33.076 37.035-8.508l45.22 196.828A16 16 0 0 0 288.956 272h13.217a16 16 0 0 0 15.522-12.119l42.372-169.49c6.104-24.422 42.962-15.159 36.865 9.217L358.805 252.12c-2.521 10.088 5.115 19.88 15.522 19.88h9.694a16 16 0 0 0 15.565-12.295L426.509 146.6c5.821-24.448 42.797-15.687 36.966 8.802L431.72 288.81a100.094 100.094 0 0 0-2.72 23.162v36.839c0 6.548-.943 13.051-2.805 19.328L397.775 464h-219.31L53.978 346.836c-7.629-7.18-7.994-19.229-.814-26.857z"},"hand-pointer":{"viewBox":"0 0 448 512","path":"M358.182 179.361c-19.493-24.768-52.679-31.945-79.872-19.098-15.127-15.687-36.182-22.487-56.595-19.629V67c0-36.944-29.736-67-66.286-67S89.143 30.056 89.143 67v161.129c-19.909-7.41-43.272-5.094-62.083 8.872-29.355 21.795-35.793 63.333-14.55 93.152l109.699 154.001C134.632 501.59 154.741 512 176 512h178.286c30.802 0 57.574-21.5 64.557-51.797l27.429-118.999A67.873 67.873 0 0 0 448 326v-84c0-46.844-46.625-79.273-89.818-62.639zM80.985 279.697l27.126 38.079c8.995 12.626 29.031 6.287 29.031-9.283V67c0-25.12 36.571-25.16 36.571 0v175c0 8.836 7.163 16 16 16h6.857c8.837 0 16-7.164 16-16v-35c0-25.12 36.571-25.16 36.571 0v35c0 8.836 7.163 16 16 16H272c8.837 0 16-7.164 16-16v-21c0-25.12 36.571-25.16 36.571 0v21c0 8.836 7.163 16 16 16h6.857c8.837 0 16-7.164 16-16 0-25.121 36.571-25.16 36.571 0v84c0 1.488-.169 2.977-.502 4.423l-27.43 119.001c-1.978 8.582-9.29 14.576-17.782 14.576H176c-5.769 0-11.263-2.878-14.697-7.697l-109.712-154c-14.406-20.223 14.994-42.818 29.394-22.606zM176.143 400v-96c0-8.837 6.268-16 14-16h6c7.732 0 14 7.163 14 16v96c0 8.837-6.268 16-14 16h-6c-7.733 0-14-7.163-14-16zm75.428 0v-96c0-8.837 6.268-16 14-16h6c7.732 0 14 7.163 14 16v96c0 8.837-6.268 16-14 16h-6c-7.732 0-14-7.163-14-16zM327 400v-96c0-8.837 6.268-16 14-16h6c7.732 0 14 7.163 14 16v96c0 8.837-6.268 16-14 16h-6c-7.732 0-14-7.163-14-16z"},"hand-peace":{"viewBox":"0 0 448 512","path":"M362.146 191.976c-13.71-21.649-38.761-34.016-65.006-30.341V74c0-40.804-32.811-74-73.141-74-40.33 0-73.14 33.196-73.14 74L160 168l-18.679-78.85C126.578 50.843 83.85 32.11 46.209 47.208 8.735 62.238-9.571 104.963 5.008 142.85l55.757 144.927c-30.557 24.956-43.994 57.809-24.733 92.218l54.853 97.999C102.625 498.97 124.73 512 148.575 512h205.702c30.744 0 57.558-21.44 64.555-51.797l27.427-118.999a67.801 67.801 0 0 0 1.729-15.203L448 256c0-44.956-43.263-77.343-85.854-64.024zM399.987 326c0 1.488-.169 2.977-.502 4.423l-27.427 119.001c-1.978 8.582-9.29 14.576-17.782 14.576H148.575c-6.486 0-12.542-3.621-15.805-9.449l-54.854-98c-4.557-8.141-2.619-18.668 4.508-24.488l26.647-21.764a16 16 0 0 0 4.812-18.139l-64.09-166.549C37.226 92.956 84.37 74.837 96.51 106.389l59.784 155.357A16 16 0 0 0 171.227 272h11.632c8.837 0 16-7.163 16-16V74c0-34.375 50.281-34.43 50.281 0v182c0 8.837 7.163 16 16 16h6.856c8.837 0 16-7.163 16-16v-28c0-25.122 36.567-25.159 36.567 0v28c0 8.837 7.163 16 16 16h6.856c8.837 0 16-7.163 16-16 0-25.12 36.567-25.16 36.567 0v70z"},"calendar-plus":{"viewBox":"0 0 448 512","path":"M336 292v24c0 6.6-5.4 12-12 12h-76v76c0 6.6-5.4 12-12 12h-24c-6.6 0-12-5.4-12-12v-76h-76c-6.6 0-12-5.4-12-12v-24c0-6.6 5.4-12 12-12h76v-76c0-6.6 5.4-12 12-12h24c6.6 0 12 5.4 12 12v76h76c6.6 0 12 5.4 12 12zm112-180v352c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V112c0-26.5 21.5-48 48-48h48V12c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v52h128V12c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v52h48c26.5 0 48 21.5 48 48zm-48 346V160H48v298c0 3.3 2.7 6 6 6h340c3.3 0 6-2.7 6-6z"},"calendar-minus":{"viewBox":"0 0 448 512","path":"M124 328c-6.6 0-12-5.4-12-12v-24c0-6.6 5.4-12 12-12h200c6.6 0 12 5.4 12 12v24c0 6.6-5.4 12-12 12H124zm324-216v352c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V112c0-26.5 21.5-48 48-48h48V12c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v52h128V12c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v52h48c26.5 0 48 21.5 48 48zm-48 346V160H48v298c0 3.3 2.7 6 6 6h340c3.3 0 6-2.7 6-6z"},"calendar-times":{"viewBox":"0 0 448 512","path":"M311.7 374.7l-17 17c-4.7 4.7-12.3 4.7-17 0L224 337.9l-53.7 53.7c-4.7 4.7-12.3 4.7-17 0l-17-17c-4.7-4.7-4.7-12.3 0-17l53.7-53.7-53.7-53.7c-4.7-4.7-4.7-12.3 0-17l17-17c4.7-4.7 12.3-4.7 17 0l53.7 53.7 53.7-53.7c4.7-4.7 12.3-4.7 17 0l17 17c4.7 4.7 4.7 12.3 0 17L257.9 304l53.7 53.7c4.8 4.7 4.8 12.3.1 17zM448 112v352c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V112c0-26.5 21.5-48 48-48h48V12c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v52h128V12c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v52h48c26.5 0 48 21.5 48 48zm-48 346V160H48v298c0 3.3 2.7 6 6 6h340c3.3 0 6-2.7 6-6z"},"calendar-check":{"viewBox":"0 0 448 512","path":"M400 64h-48V12c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v52H160V12c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v52H48C21.49 64 0 85.49 0 112v352c0 26.51 21.49 48 48 48h352c26.51 0 48-21.49 48-48V112c0-26.51-21.49-48-48-48zm-6 400H54a6 6 0 0 1-6-6V160h352v298a6 6 0 0 1-6 6zm-52.849-200.65L198.842 404.519c-4.705 4.667-12.303 4.637-16.971-.068l-75.091-75.699c-4.667-4.705-4.637-12.303.068-16.971l22.719-22.536c4.705-4.667 12.303-4.637 16.97.069l44.104 44.461 111.072-110.181c4.705-4.667 12.303-4.637 16.971.068l22.536 22.718c4.667 4.705 4.636 12.303-.069 16.97z"},"map":{"viewBox":"0 0 576 512","path":"M560.02 32c-1.96 0-3.98.37-5.96 1.16L384.01 96H384L212 35.28A64.252 64.252 0 0 0 191.76 32c-6.69 0-13.37 1.05-19.81 3.14L20.12 87.95A32.006 32.006 0 0 0 0 117.66v346.32C0 473.17 7.53 480 15.99 480c1.96 0 3.97-.37 5.96-1.16L192 416l172 60.71a63.98 63.98 0 0 0 40.05.15l151.83-52.81A31.996 31.996 0 0 0 576 394.34V48.02c0-9.19-7.53-16.02-15.98-16.02zM224 90.42l128 45.19v285.97l-128-45.19V90.42zM48 418.05V129.07l128-44.53v286.2l-.64.23L48 418.05zm480-35.13l-128 44.53V141.26l.64-.24L528 93.95v288.97z"},"comment-dots":{"viewBox":"0 0 512 512","path":"M144 208c-17.7 0-32 14.3-32 32s14.3 32 32 32 32-14.3 32-32-14.3-32-32-32zm112 0c-17.7 0-32 14.3-32 32s14.3 32 32 32 32-14.3 32-32-14.3-32-32-32zm112 0c-17.7 0-32 14.3-32 32s14.3 32 32 32 32-14.3 32-32-14.3-32-32-32zM256 32C114.6 32 0 125.1 0 240c0 47.6 19.9 91.2 52.9 126.3C38 405.7 7 439.1 6.5 439.5c-6.6 7-8.4 17.2-4.6 26S14.4 480 24 480c61.5 0 110-25.7 139.1-46.3C192 442.8 223.2 448 256 448c141.4 0 256-93.1 256-208S397.4 32 256 32zm0 368c-26.7 0-53.1-4.1-78.4-12.1l-22.7-7.2-19.5 13.8c-14.3 10.1-33.9 21.4-57.5 29 7.3-12.1 14.4-25.7 19.9-40.2l10.6-28.1-20.6-21.8C69.7 314.1 48 282.2 48 240c0-88.2 93.3-160 208-160s208 71.8 208 160-93.3 160-208 160z"},"pause-circle":{"viewBox":"0 0 512 512","path":"M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm0 448c-110.5 0-200-89.5-200-200S145.5 56 256 56s200 89.5 200 200-89.5 200-200 200zm96-280v160c0 8.8-7.2 16-16 16h-48c-8.8 0-16-7.2-16-16V176c0-8.8 7.2-16 16-16h48c8.8 0 16 7.2 16 16zm-112 0v160c0 8.8-7.2 16-16 16h-48c-8.8 0-16-7.2-16-16V176c0-8.8 7.2-16 16-16h48c8.8 0 16 7.2 16 16z"},"stop-circle":{"viewBox":"0 0 512 512","path":"M504 256C504 119 393 8 256 8S8 119 8 256s111 248 248 248 248-111 248-248zm-448 0c0-110.5 89.5-200 200-200s200 89.5 200 200-89.5 200-200 200S56 366.5 56 256zm296-80v160c0 8.8-7.2 16-16 16H176c-8.8 0-16-7.2-16-16V176c0-8.8 7.2-16 16-16h160c8.8 0 16 7.2 16 16z"},"question-circle":{"viewBox":"0 0 512 512","path":"M256 8C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm0 448c-110.532 0-200-89.431-200-200 0-110.495 89.472-200 200-200 110.491 0 200 89.471 200 200 0 110.53-89.431 200-200 200zm107.244-255.2c0 67.052-72.421 68.084-72.421 92.863V300c0 6.627-5.373 12-12 12h-45.647c-6.627 0-12-5.373-12-12v-8.659c0-35.745 27.1-50.034 47.579-61.516 17.561-9.845 28.324-16.541 28.324-29.579 0-17.246-21.999-28.693-39.784-28.693-23.189 0-33.894 10.977-48.942 29.969-4.057 5.12-11.46 6.071-16.666 2.124l-27.824-21.098c-5.107-3.872-6.251-11.066-2.644-16.363C184.846 131.491 214.94 112 261.794 112c49.071 0 101.45 38.304 101.45 88.8zM298 368c0 23.159-18.841 42-42 42s-42-18.841-42-42 18.841-42 42-42 42 18.841 42 42z"},"handshake":{"viewBox":"0 0 640 512","path":"M519.2 127.9l-47.6-47.6A56.252 56.252 0 0 0 432 64H205.2c-14.8 0-29.1 5.9-39.6 16.3L118 127.9H0v255.7h64c17.6 0 31.8-14.2 31.9-31.7h9.1l84.6 76.4c30.9 25.1 73.8 25.7 105.6 3.8 12.5 10.8 26 15.9 41.1 15.9 18.2 0 35.3-7.4 48.8-24 22.1 8.7 48.2 2.6 64-16.8l26.2-32.3c5.6-6.9 9.1-14.8 10.9-23h57.9c.1 17.5 14.4 31.7 31.9 31.7h64V127.9H519.2zM48 351.6c-8.8 0-16-7.2-16-16s7.2-16 16-16 16 7.2 16 16c0 8.9-7.2 16-16 16zm390-6.9l-26.1 32.2c-2.8 3.4-7.8 4-11.3 1.2l-23.9-19.4-30 36.5c-6 7.3-15 4.8-18 2.4l-36.8-31.5-15.6 19.2c-13.9 17.1-39.2 19.7-55.3 6.6l-97.3-88H96V175.8h41.9l61.7-61.6c2-.8 3.7-1.5 5.7-2.3H262l-38.7 35.5c-29.4 26.9-31.1 72.3-4.4 101.3 14.8 16.2 61.2 41.2 101.5 4.4l8.2-7.5 108.2 87.8c3.4 2.8 3.9 7.9 1.2 11.3zm106-40.8h-69.2c-2.3-2.8-4.9-5.4-7.7-7.7l-102.7-83.4 12.5-11.4c6.5-6 7-16.1 1-22.6L367 167.1c-6-6.5-16.1-6.9-22.6-1l-55.2 50.6c-9.5 8.7-25.7 9.4-34.6 0-9.3-9.9-8.5-25.1 1.2-33.9l65.6-60.1c7.4-6.8 17-10.5 27-10.5l83.7-.2c2.1 0 4.1.8 5.5 2.3l61.7 61.6H544v128zm48 47.7c-8.8 0-16-7.2-16-16s7.2-16 16-16 16 7.2 16 16c0 8.9-7.2 16-16 16z"},"envelope-open":{"viewBox":"0 0 512 512","path":"M494.586 164.516c-4.697-3.883-111.723-89.95-135.251-108.657C337.231 38.191 299.437 0 256 0c-43.205 0-80.636 37.717-103.335 55.859-24.463 19.45-131.07 105.195-135.15 108.549A48.004 48.004 0 0 0 0 201.485V464c0 26.51 21.49 48 48 48h416c26.51 0 48-21.49 48-48V201.509a48 48 0 0 0-17.414-36.993zM464 458a6 6 0 0 1-6 6H54a6 6 0 0 1-6-6V204.347c0-1.813.816-3.526 2.226-4.665 15.87-12.814 108.793-87.554 132.364-106.293C200.755 78.88 232.398 48 256 48c23.693 0 55.857 31.369 73.41 45.389 23.573 18.741 116.503 93.493 132.366 106.316a5.99 5.99 0 0 1 2.224 4.663V458zm-31.991-187.704c4.249 5.159 3.465 12.795-1.745 16.981-28.975 23.283-59.274 47.597-70.929 56.863C336.636 362.283 299.205 400 256 400c-43.452 0-81.287-38.237-103.335-55.86-11.279-8.967-41.744-33.413-70.927-56.865-5.21-4.187-5.993-11.822-1.745-16.981l15.258-18.528c4.178-5.073 11.657-5.843 16.779-1.726 28.618 23.001 58.566 47.035 70.56 56.571C200.143 320.631 232.307 352 256 352c23.602 0 55.246-30.88 73.41-45.389 11.994-9.535 41.944-33.57 70.563-56.568 5.122-4.116 12.601-3.346 16.778 1.727l15.258 18.526z"},"address-book":{"viewBox":"0 0 448 512","path":"M436 160c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-20V48c0-26.5-21.5-48-48-48H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h320c26.5 0 48-21.5 48-48v-48h20c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-20v-64h20c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-20v-64h20zm-68 304H48V48h320v416zM208 256c35.3 0 64-28.7 64-64s-28.7-64-64-64-64 28.7-64 64 28.7 64 64 64zm-89.6 128h179.2c12.4 0 22.4-8.6 22.4-19.2v-19.2c0-31.8-30.1-57.6-67.2-57.6-10.8 0-18.7 8-44.8 8-26.9 0-33.4-8-44.8-8-37.1 0-67.2 25.8-67.2 57.6v19.2c0 10.6 10 19.2 22.4 19.2z"},"address-card":{"viewBox":"0 0 576 512","path":"M528 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h480c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zm0 400H48V80h480v352zM208 256c35.3 0 64-28.7 64-64s-28.7-64-64-64-64 28.7-64 64 28.7 64 64 64zm-89.6 128h179.2c12.4 0 22.4-8.6 22.4-19.2v-19.2c0-31.8-30.1-57.6-67.2-57.6-10.8 0-18.7 8-44.8 8-26.9 0-33.4-8-44.8-8-37.1 0-67.2 25.8-67.2 57.6v19.2c0 10.6 10 19.2 22.4 19.2zM360 320h112c4.4 0 8-3.6 8-8v-16c0-4.4-3.6-8-8-8H360c-4.4 0-8 3.6-8 8v16c0 4.4 3.6 8 8 8zm0-64h112c4.4 0 8-3.6 8-8v-16c0-4.4-3.6-8-8-8H360c-4.4 0-8 3.6-8 8v16c0 4.4 3.6 8 8 8zm0-64h112c4.4 0 8-3.6 8-8v-16c0-4.4-3.6-8-8-8H360c-4.4 0-8 3.6-8 8v16c0 4.4 3.6 8 8 8z"},"user-circle":{"viewBox":"0 0 496 512","path":"M248 104c-53 0-96 43-96 96s43 96 96 96 96-43 96-96-43-96-96-96zm0 144c-26.5 0-48-21.5-48-48s21.5-48 48-48 48 21.5 48 48-21.5 48-48 48zm0-240C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm0 448c-49.7 0-95.1-18.3-130.1-48.4 14.9-23 40.4-38.6 69.6-39.5 20.8 6.4 40.6 9.6 60.5 9.6s39.7-3.1 60.5-9.6c29.2 1 54.7 16.5 69.6 39.5-35 30.1-80.4 48.4-130.1 48.4zm162.7-84.1c-24.4-31.4-62.1-51.9-105.1-51.9-10.2 0-26 9.6-57.6 9.6-31.5 0-47.4-9.6-57.6-9.6-42.9 0-80.6 20.5-105.1 51.9C61.9 339.2 48 299.2 48 256c0-110.3 89.7-200 200-200s200 89.7 200 200c0 43.2-13.9 83.2-37.3 115.9z"},"user":{"viewBox":"0 0 448 512","path":"M313.6 304c-28.7 0-42.5 16-89.6 16-47.1 0-60.8-16-89.6-16C60.2 304 0 364.2 0 438.4V464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48v-25.6c0-74.2-60.2-134.4-134.4-134.4zM400 464H48v-25.6c0-47.6 38.8-86.4 86.4-86.4 14.6 0 38.3 16 89.6 16 51.7 0 74.9-16 89.6-16 47.6 0 86.4 38.8 86.4 86.4V464zM224 288c79.5 0 144-64.5 144-144S303.5 0 224 0 80 64.5 80 144s64.5 144 144 144zm0-240c52.9 0 96 43.1 96 96s-43.1 96-96 96-96-43.1-96-96 43.1-96 96-96z"},"id-card":{"viewBox":"0 0 576 512","path":"M528 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h480c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zm0 400H303.2c.9-4.5.8 3.6.8-22.4 0-31.8-30.1-57.6-67.2-57.6-10.8 0-18.7 8-44.8 8-26.9 0-33.4-8-44.8-8-37.1 0-67.2 25.8-67.2 57.6 0 26-.2 17.9.8 22.4H48V144h480v288zm-168-80h112c4.4 0 8-3.6 8-8v-16c0-4.4-3.6-8-8-8H360c-4.4 0-8 3.6-8 8v16c0 4.4 3.6 8 8 8zm0-64h112c4.4 0 8-3.6 8-8v-16c0-4.4-3.6-8-8-8H360c-4.4 0-8 3.6-8 8v16c0 4.4 3.6 8 8 8zm0-64h112c4.4 0 8-3.6 8-8v-16c0-4.4-3.6-8-8-8H360c-4.4 0-8 3.6-8 8v16c0 4.4 3.6 8 8 8zm-168 96c35.3 0 64-28.7 64-64s-28.7-64-64-64-64 28.7-64 64 28.7 64 64 64z"},"window-close":{"viewBox":"0 0 512 512","path":"M464 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h416c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zm0 394c0 3.3-2.7 6-6 6H54c-3.3 0-6-2.7-6-6V86c0-3.3 2.7-6 6-6h404c3.3 0 6 2.7 6 6v340zM356.5 194.6L295.1 256l61.4 61.4c4.6 4.6 4.6 12.1 0 16.8l-22.3 22.3c-4.6 4.6-12.1 4.6-16.8 0L256 295.1l-61.4 61.4c-4.6 4.6-12.1 4.6-16.8 0l-22.3-22.3c-4.6-4.6-4.6-12.1 0-16.8l61.4-61.4-61.4-61.4c-4.6-4.6-4.6-12.1 0-16.8l22.3-22.3c4.6-4.6 12.1-4.6 16.8 0l61.4 61.4 61.4-61.4c4.6-4.6 12.1-4.6 16.8 0l22.3 22.3c4.7 4.6 4.7 12.1 0 16.8z"},"snowflake":{"viewBox":"0 0 448 512","path":"M440.1 355.2l-39.2-23 34.1-9.3c8.4-2.3 13.4-11.1 11.1-19.6l-4.1-15.5c-2.2-8.5-10.9-13.6-19.3-11.3L343 298.2 271.2 256l71.9-42.2 79.7 21.7c8.4 2.3 17-2.8 19.3-11.3l4.1-15.5c2.2-8.5-2.7-17.3-11.1-19.6l-34.1-9.3 39.2-23c7.5-4.4 10.1-14.2 5.8-21.9l-7.9-13.9c-4.3-7.7-14-10.3-21.5-5.9l-39.2 23 9.1-34.7c2.2-8.5-2.7-17.3-11.1-19.6l-15.2-4.1c-8.4-2.3-17 2.8-19.3 11.3l-21.3 81-71.9 42.2v-84.5L306 70.4c6.1-6.2 6.1-16.4 0-22.6l-11.1-11.3c-6.1-6.2-16.1-6.2-22.2 0l-24.9 25.4V16c0-8.8-7-16-15.7-16h-15.7c-8.7 0-15.7 7.2-15.7 16v46.1l-24.9-25.4c-6.1-6.2-16.1-6.2-22.2 0L142.1 48c-6.1 6.2-6.1 16.4 0 22.6l58.3 59.3v84.5l-71.9-42.2-21.3-81c-2.2-8.5-10.9-13.6-19.3-11.3L72.7 84c-8.4 2.3-13.4 11.1-11.1 19.6l9.1 34.7-39.2-23c-7.5-4.4-17.1-1.8-21.5 5.9l-7.9 13.9c-4.3 7.7-1.8 17.4 5.8 21.9l39.2 23-34.1 9.1c-8.4 2.3-13.4 11.1-11.1 19.6L6 224.2c2.2 8.5 10.9 13.6 19.3 11.3l79.7-21.7 71.9 42.2-71.9 42.2-79.7-21.7c-8.4-2.3-17 2.8-19.3 11.3l-4.1 15.5c-2.2 8.5 2.7 17.3 11.1 19.6l34.1 9.3-39.2 23c-7.5 4.4-10.1 14.2-5.8 21.9L10 391c4.3 7.7 14 10.3 21.5 5.9l39.2-23-9.1 34.7c-2.2 8.5 2.7 17.3 11.1 19.6l15.2 4.1c8.4 2.3 17-2.8 19.3-11.3l21.3-81 71.9-42.2v84.5l-58.3 59.3c-6.1 6.2-6.1 16.4 0 22.6l11.1 11.3c6.1 6.2 16.1 6.2 22.2 0l24.9-25.4V496c0 8.8 7 16 15.7 16h15.7c8.7 0 15.7-7.2 15.7-16v-46.1l24.9 25.4c6.1 6.2 16.1 6.2 22.2 0l11.1-11.3c6.1-6.2 6.1-16.4 0-22.6l-58.3-59.3v-84.5l71.9 42.2 21.3 81c2.2 8.5 10.9 13.6 19.3 11.3L375 428c8.4-2.3 13.4-11.1 11.1-19.6l-9.1-34.7 39.2 23c7.5 4.4 17.1 1.8 21.5-5.9l7.9-13.9c4.6-7.5 2.1-17.3-5.5-21.7z"}}'),...JSON.parse('{"music":{"viewBox":"0 0 512 512","path":"M511.99 32.01c0-21.71-21.1-37.01-41.6-30.51L150.4 96c-13.3 4.2-22.4 16.5-22.4 30.5v261.42c-10.05-2.38-20.72-3.92-32-3.92-53.02 0-96 28.65-96 64s42.98 64 96 64 96-28.65 96-64V214.31l256-75.02v184.63c-10.05-2.38-20.72-3.92-32-3.92-53.02 0-96 28.65-96 64s42.98 64 96 64 96-28.65 96-64l-.01-351.99z"},"search":{"viewBox":"0 0 512 512","path":"M505 442.7L405.3 343c-4.5-4.5-10.6-7-17-7H372c27.6-35.3 44-79.7 44-128C416 93.1 322.9 0 208 0S0 93.1 0 208s93.1 208 208 208c48.3 0 92.7-16.4 128-44v16.3c0 6.4 2.5 12.5 7 17l99.7 99.7c9.4 9.4 24.6 9.4 33.9 0l28.3-28.3c9.4-9.4 9.4-24.6.1-34zM208 336c-70.7 0-128-57.2-128-128 0-70.7 57.2-128 128-128 70.7 0 128 57.2 128 128 0 70.7-57.2 128-128 128z"},"heart":{"viewBox":"0 0 512 512","path":"M462.3 62.6C407.5 15.9 326 24.3 275.7 76.2L256 96.5l-19.7-20.3C186.1 24.3 104.5 15.9 49.7 62.6c-62.8 53.6-66.1 149.8-9.9 207.9l193.5 199.8c12.5 12.9 32.8 12.9 45.3 0l193.5-199.8c56.3-58.1 53-154.3-9.8-207.9z"},"star":{"viewBox":"0 0 576 512","path":"M259.3 17.8L194 150.2 47.9 171.5c-26.2 3.8-36.7 36.1-17.7 54.6l105.7 103-25 145.5c-4.5 26.3 23.2 46 46.4 33.7L288 439.6l130.7 68.7c23.2 12.2 50.9-7.4 46.4-33.7l-25-145.5 105.7-103c19-18.5 8.5-50.8-17.7-54.6L382 150.2 316.7 17.8c-11.7-23.6-45.6-23.9-57.4 0z"},"user":{"viewBox":"0 0 448 512","path":"M224 256c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zm89.6 32h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48v-41.6c0-74.2-60.2-134.4-134.4-134.4z"},"film":{"viewBox":"0 0 512 512","path":"M488 64h-8v20c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12V64H96v20c0 6.6-5.4 12-12 12H44c-6.6 0-12-5.4-12-12V64h-8C10.7 64 0 74.7 0 88v336c0 13.3 10.7 24 24 24h8v-20c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v20h320v-20c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v20h8c13.3 0 24-10.7 24-24V88c0-13.3-10.7-24-24-24zM96 372c0 6.6-5.4 12-12 12H44c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40zm0-96c0 6.6-5.4 12-12 12H44c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40zm0-96c0 6.6-5.4 12-12 12H44c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40zm272 208c0 6.6-5.4 12-12 12H156c-6.6 0-12-5.4-12-12v-96c0-6.6 5.4-12 12-12h200c6.6 0 12 5.4 12 12v96zm0-168c0 6.6-5.4 12-12 12H156c-6.6 0-12-5.4-12-12v-96c0-6.6 5.4-12 12-12h200c6.6 0 12 5.4 12 12v96zm112 152c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40zm0-96c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40zm0-96c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40z"},"th-large":{"viewBox":"0 0 512 512","path":"M296 32h192c13.255 0 24 10.745 24 24v160c0 13.255-10.745 24-24 24H296c-13.255 0-24-10.745-24-24V56c0-13.255 10.745-24 24-24zm-80 0H24C10.745 32 0 42.745 0 56v160c0 13.255 10.745 24 24 24h192c13.255 0 24-10.745 24-24V56c0-13.255-10.745-24-24-24zM0 296v160c0 13.255 10.745 24 24 24h192c13.255 0 24-10.745 24-24V296c0-13.255-10.745-24-24-24H24c-13.255 0-24 10.745-24 24zm296 184h192c13.255 0 24-10.745 24-24V296c0-13.255-10.745-24-24-24H296c-13.255 0-24 10.745-24 24v160c0 13.255 10.745 24 24 24z"},"th":{"viewBox":"0 0 512 512","path":"M149.333 56v80c0 13.255-10.745 24-24 24H24c-13.255 0-24-10.745-24-24V56c0-13.255 10.745-24 24-24h101.333c13.255 0 24 10.745 24 24zm181.334 240v-80c0-13.255-10.745-24-24-24H205.333c-13.255 0-24 10.745-24 24v80c0 13.255 10.745 24 24 24h101.333c13.256 0 24.001-10.745 24.001-24zm32-240v80c0 13.255 10.745 24 24 24H488c13.255 0 24-10.745 24-24V56c0-13.255-10.745-24-24-24H386.667c-13.255 0-24 10.745-24 24zm-32 80V56c0-13.255-10.745-24-24-24H205.333c-13.255 0-24 10.745-24 24v80c0 13.255 10.745 24 24 24h101.333c13.256 0 24.001-10.745 24.001-24zm-205.334 56H24c-13.255 0-24 10.745-24 24v80c0 13.255 10.745 24 24 24h101.333c13.255 0 24-10.745 24-24v-80c0-13.255-10.745-24-24-24zM0 376v80c0 13.255 10.745 24 24 24h101.333c13.255 0 24-10.745 24-24v-80c0-13.255-10.745-24-24-24H24c-13.255 0-24 10.745-24 24zm386.667-56H488c13.255 0 24-10.745 24-24v-80c0-13.255-10.745-24-24-24H386.667c-13.255 0-24 10.745-24 24v80c0 13.255 10.745 24 24 24zm0 160H488c13.255 0 24-10.745 24-24v-80c0-13.255-10.745-24-24-24H386.667c-13.255 0-24 10.745-24 24v80c0 13.255 10.745 24 24 24zM181.333 376v80c0 13.255 10.745 24 24 24h101.333c13.255 0 24-10.745 24-24v-80c0-13.255-10.745-24-24-24H205.333c-13.255 0-24 10.745-24 24z"},"th-list":{"viewBox":"0 0 512 512","path":"M149.333 216v80c0 13.255-10.745 24-24 24H24c-13.255 0-24-10.745-24-24v-80c0-13.255 10.745-24 24-24h101.333c13.255 0 24 10.745 24 24zM0 376v80c0 13.255 10.745 24 24 24h101.333c13.255 0 24-10.745 24-24v-80c0-13.255-10.745-24-24-24H24c-13.255 0-24 10.745-24 24zM125.333 32H24C10.745 32 0 42.745 0 56v80c0 13.255 10.745 24 24 24h101.333c13.255 0 24-10.745 24-24V56c0-13.255-10.745-24-24-24zm80 448H488c13.255 0 24-10.745 24-24v-80c0-13.255-10.745-24-24-24H205.333c-13.255 0-24 10.745-24 24v80c0 13.255 10.745 24 24 24zm-24-424v80c0 13.255 10.745 24 24 24H488c13.255 0 24-10.745 24-24V56c0-13.255-10.745-24-24-24H205.333c-13.255 0-24 10.745-24 24zm24 264H488c13.255 0 24-10.745 24-24v-80c0-13.255-10.745-24-24-24H205.333c-13.255 0-24 10.745-24 24v80c0 13.255 10.745 24 24 24z"},"check":{"viewBox":"0 0 512 512","path":"M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z"},"times":{"viewBox":"0 0 352 512","path":"M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z"},"search-plus":{"viewBox":"0 0 512 512","path":"M304 192v32c0 6.6-5.4 12-12 12h-56v56c0 6.6-5.4 12-12 12h-32c-6.6 0-12-5.4-12-12v-56h-56c-6.6 0-12-5.4-12-12v-32c0-6.6 5.4-12 12-12h56v-56c0-6.6 5.4-12 12-12h32c6.6 0 12 5.4 12 12v56h56c6.6 0 12 5.4 12 12zm201 284.7L476.7 505c-9.4 9.4-24.6 9.4-33.9 0L343 405.3c-4.5-4.5-7-10.6-7-17V372c-35.3 27.6-79.7 44-128 44C93.1 416 0 322.9 0 208S93.1 0 208 0s208 93.1 208 208c0 48.3-16.4 92.7-44 128h16.3c6.4 0 12.5 2.5 17 7l99.7 99.7c9.3 9.4 9.3 24.6 0 34zM344 208c0-75.2-60.8-136-136-136S72 132.8 72 208s60.8 136 136 136 136-60.8 136-136z"},"search-minus":{"viewBox":"0 0 512 512","path":"M304 192v32c0 6.6-5.4 12-12 12H124c-6.6 0-12-5.4-12-12v-32c0-6.6 5.4-12 12-12h168c6.6 0 12 5.4 12 12zm201 284.7L476.7 505c-9.4 9.4-24.6 9.4-33.9 0L343 405.3c-4.5-4.5-7-10.6-7-17V372c-35.3 27.6-79.7 44-128 44C93.1 416 0 322.9 0 208S93.1 0 208 0s208 93.1 208 208c0 48.3-16.4 92.7-44 128h16.3c6.4 0 12.5 2.5 17 7l99.7 99.7c9.3 9.4 9.3 24.6 0 34zM344 208c0-75.2-60.8-136-136-136S72 132.8 72 208s60.8 136 136 136 136-60.8 136-136z"},"power-off":{"viewBox":"0 0 512 512","path":"M400 54.1c63 45 104 118.6 104 201.9 0 136.8-110.8 247.7-247.5 248C120 504.3 8.2 393 8 256.4 7.9 173.1 48.9 99.3 111.8 54.2c11.7-8.3 28-4.8 35 7.7L162.6 90c5.9 10.5 3.1 23.8-6.6 31-41.5 30.8-68 79.6-68 134.9-.1 92.3 74.5 168.1 168 168.1 91.6 0 168.6-74.2 168-169.1-.3-51.8-24.7-101.8-68.1-134-9.7-7.2-12.4-20.5-6.5-30.9l15.8-28.1c7-12.4 23.2-16.1 34.8-7.8zM296 264V24c0-13.3-10.7-24-24-24h-32c-13.3 0-24 10.7-24 24v240c0 13.3 10.7 24 24 24h32c13.3 0 24-10.7 24-24z"},"signal":{"viewBox":"0 0 640 512","path":"M216 288h-48c-8.84 0-16 7.16-16 16v192c0 8.84 7.16 16 16 16h48c8.84 0 16-7.16 16-16V304c0-8.84-7.16-16-16-16zM88 384H40c-8.84 0-16 7.16-16 16v96c0 8.84 7.16 16 16 16h48c8.84 0 16-7.16 16-16v-96c0-8.84-7.16-16-16-16zm256-192h-48c-8.84 0-16 7.16-16 16v288c0 8.84 7.16 16 16 16h48c8.84 0 16-7.16 16-16V208c0-8.84-7.16-16-16-16zm128-96h-48c-8.84 0-16 7.16-16 16v384c0 8.84 7.16 16 16 16h48c8.84 0 16-7.16 16-16V112c0-8.84-7.16-16-16-16zM600 0h-48c-8.84 0-16 7.16-16 16v480c0 8.84 7.16 16 16 16h48c8.84 0 16-7.16 16-16V16c0-8.84-7.16-16-16-16z"},"cog":{"viewBox":"0 0 512 512","path":"M444.788 291.1l42.616 24.599c4.867 2.809 7.126 8.618 5.459 13.985-11.07 35.642-29.97 67.842-54.689 94.586a12.016 12.016 0 0 1-14.832 2.254l-42.584-24.595a191.577 191.577 0 0 1-60.759 35.13v49.182a12.01 12.01 0 0 1-9.377 11.718c-34.956 7.85-72.499 8.256-109.219.007-5.49-1.233-9.403-6.096-9.403-11.723v-49.184a191.555 191.555 0 0 1-60.759-35.13l-42.584 24.595a12.016 12.016 0 0 1-14.832-2.254c-24.718-26.744-43.619-58.944-54.689-94.586-1.667-5.366.592-11.175 5.459-13.985L67.212 291.1a193.48 193.48 0 0 1 0-70.199l-42.616-24.599c-4.867-2.809-7.126-8.618-5.459-13.985 11.07-35.642 29.97-67.842 54.689-94.586a12.016 12.016 0 0 1 14.832-2.254l42.584 24.595a191.577 191.577 0 0 1 60.759-35.13V25.759a12.01 12.01 0 0 1 9.377-11.718c34.956-7.85 72.499-8.256 109.219-.007 5.49 1.233 9.403 6.096 9.403 11.723v49.184a191.555 191.555 0 0 1 60.759 35.13l42.584-24.595a12.016 12.016 0 0 1 14.832 2.254c24.718 26.744 43.619 58.944 54.689 94.586 1.667 5.366-.592 11.175-5.459 13.985L444.788 220.9a193.485 193.485 0 0 1 0 70.2zM336 256c0-44.112-35.888-80-80-80s-80 35.888-80 80 35.888 80 80 80 80-35.888 80-80z"},"trash":{"viewBox":"0 0 448 512","path":"M0 84V56c0-13.3 10.7-24 24-24h112l9.4-18.7c4-8.2 12.3-13.3 21.4-13.3h114.3c9.1 0 17.4 5.1 21.5 13.3L312 32h112c13.3 0 24 10.7 24 24v28c0 6.6-5.4 12-12 12H12C5.4 96 0 90.6 0 84zm415.2 56.7L394.8 467c-1.6 25.3-22.6 45-47.9 45H101.1c-25.3 0-46.3-19.7-47.9-45L32.8 140.7c-.4-6.9 5.1-12.7 12-12.7h358.5c6.8 0 12.3 5.8 11.9 12.7z"},"home":{"viewBox":"0 0 576 512","path":"M488 312.7V456c0 13.3-10.7 24-24 24H348c-6.6 0-12-5.4-12-12V356c0-6.6-5.4-12-12-12h-72c-6.6 0-12 5.4-12 12v112c0 6.6-5.4 12-12 12H112c-13.3 0-24-10.7-24-24V312.7c0-3.6 1.6-7 4.4-9.3l188-154.8c4.4-3.6 10.8-3.6 15.3 0l188 154.8c2.7 2.3 4.3 5.7 4.3 9.3zm83.6-60.9L488 182.9V44.4c0-6.6-5.4-12-12-12h-56c-6.6 0-12 5.4-12 12V117l-89.5-73.7c-17.7-14.6-43.3-14.6-61 0L4.4 251.8c-5.1 4.2-5.8 11.8-1.6 16.9l25.5 31c4.2 5.1 11.8 5.8 16.9 1.6l235.2-193.7c4.4-3.6 10.8-3.6 15.3 0l235.2 193.7c5.1 4.2 12.7 3.5 16.9-1.6l25.5-31c4.2-5.2 3.4-12.7-1.7-16.9z"},"road":{"viewBox":"0 0 576 512","path":"M573.19 402.67l-139.79-320C428.43 71.29 417.6 64 405.68 64h-97.59l2.45 23.16c.5 4.72-3.21 8.84-7.96 8.84h-29.16c-4.75 0-8.46-4.12-7.96-8.84L267.91 64h-97.59c-11.93 0-22.76 7.29-27.73 18.67L2.8 402.67C-6.45 423.86 8.31 448 30.54 448h196.84l10.31-97.68c.86-8.14 7.72-14.32 15.91-14.32h68.8c8.19 0 15.05 6.18 15.91 14.32L348.62 448h196.84c22.23 0 36.99-24.14 27.73-45.33zM260.4 135.16a8 8 0 0 1 7.96-7.16h39.29c4.09 0 7.53 3.09 7.96 7.16l4.6 43.58c.75 7.09-4.81 13.26-11.93 13.26h-40.54c-7.13 0-12.68-6.17-11.93-13.26l4.59-43.58zM315.64 304h-55.29c-9.5 0-16.91-8.23-15.91-17.68l5.07-48c.86-8.14 7.72-14.32 15.91-14.32h45.15c8.19 0 15.05 6.18 15.91 14.32l5.07 48c1 9.45-6.41 17.68-15.91 17.68z"},"download":{"viewBox":"0 0 512 512","path":"M216 0h80c13.3 0 24 10.7 24 24v168h87.7c17.8 0 26.7 21.5 14.1 34.1L269.7 378.3c-7.5 7.5-19.8 7.5-27.3 0L90.1 226.1c-12.6-12.6-3.7-34.1 14.1-34.1H192V24c0-13.3 10.7-24 24-24zm296 376v112c0 13.3-10.7 24-24 24H24c-13.3 0-24-10.7-24-24V376c0-13.3 10.7-24 24-24h146.7l49 49c20.1 20.1 52.5 20.1 72.6 0l49-49H488c13.3 0 24 10.7 24 24zm-124 88c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20zm64 0c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20z"},"arrow-circle-down":{"viewBox":"0 0 512 512","path":"M504 256c0 137-111 248-248 248S8 393 8 256 119 8 256 8s248 111 248 248zm-143.6-28.9L288 302.6V120c0-13.3-10.7-24-24-24h-16c-13.3 0-24 10.7-24 24v182.6l-72.4-75.5c-9.3-9.7-24.8-9.9-34.3-.4l-10.9 11c-9.4 9.4-9.4 24.6 0 33.9L239 404.3c9.4 9.4 24.6 9.4 33.9 0l132.7-132.7c9.4-9.4 9.4-24.6 0-33.9l-10.9-11c-9.5-9.5-25-9.3-34.3.4z"},"arrow-circle-up":{"viewBox":"0 0 512 512","path":"M8 256C8 119 119 8 256 8s248 111 248 248-111 248-248 248S8 393 8 256zm143.6 28.9l72.4-75.5V392c0 13.3 10.7 24 24 24h16c13.3 0 24-10.7 24-24V209.4l72.4 75.5c9.3 9.7 24.8 9.9 34.3.4l10.9-11c9.4-9.4 9.4-24.6 0-33.9L273 107.7c-9.4-9.4-24.6-9.4-33.9 0L106.3 240.4c-9.4 9.4-9.4 24.6 0 33.9l10.9 11c9.6 9.5 25.1 9.3 34.4-.4z"},"inbox":{"viewBox":"0 0 576 512","path":"M567.938 243.908L462.25 85.374A48.003 48.003 0 0 0 422.311 64H153.689a48 48 0 0 0-39.938 21.374L8.062 243.908A47.994 47.994 0 0 0 0 270.533V400c0 26.51 21.49 48 48 48h480c26.51 0 48-21.49 48-48V270.533a47.994 47.994 0 0 0-8.062-26.625zM162.252 128h251.497l85.333 128H376l-32 64H232l-32-64H76.918l85.334-128z"},"play-circle":{"viewBox":"0 0 512 512","path":"M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm115.7 272l-176 101c-15.8 8.8-35.7-2.5-35.7-21V152c0-18.4 19.8-29.8 35.7-21l176 107c16.4 9.2 16.4 32.9 0 42z"},"redo":{"viewBox":"0 0 512 512","path":"M500.333 0h-47.411c-6.853 0-12.314 5.729-11.986 12.574l3.966 82.759C399.416 41.899 331.672 8 256.001 8 119.34 8 7.899 119.526 8 256.187 8.101 393.068 119.096 504 256 504c63.926 0 122.202-24.187 166.178-63.908 5.113-4.618 5.354-12.561.482-17.433l-33.971-33.971c-4.466-4.466-11.64-4.717-16.38-.543C341.308 415.448 300.606 432 256 432c-97.267 0-176-78.716-176-176 0-97.267 78.716-176 176-176 60.892 0 114.506 30.858 146.099 77.8l-101.525-4.865c-6.845-.328-12.574 5.133-12.574 11.986v47.411c0 6.627 5.373 12 12 12h200.333c6.627 0 12-5.373 12-12V12c0-6.627-5.373-12-12-12z"},"sync-alt":{"viewBox":"0 0 512 512","path":"M370.72 133.28C339.458 104.008 298.888 87.962 255.848 88c-77.458.068-144.328 53.178-162.791 126.85-1.344 5.363-6.122 9.15-11.651 9.15H24.103c-7.498 0-13.194-6.807-11.807-14.176C33.933 94.924 134.813 8 256 8c66.448 0 126.791 26.136 171.315 68.685L463.03 40.97C478.149 25.851 504 36.559 504 57.941V192c0 13.255-10.745 24-24 24H345.941c-21.382 0-32.09-25.851-16.971-40.971l41.75-41.749zM32 296h134.059c21.382 0 32.09 25.851 16.971 40.971l-41.75 41.75c31.262 29.273 71.835 45.319 114.876 45.28 77.418-.07 144.315-53.144 162.787-126.849 1.344-5.363 6.122-9.15 11.651-9.15h57.304c7.498 0 13.194 6.807 11.807 14.176C478.067 417.076 377.187 504 256 504c-66.448 0-126.791-26.136-171.315-68.685L48.97 471.03C33.851 486.149 8 475.441 8 454.059V320c0-13.255 10.745-24 24-24z"},"list-alt":{"viewBox":"0 0 512 512","path":"M464 480H48c-26.51 0-48-21.49-48-48V80c0-26.51 21.49-48 48-48h416c26.51 0 48 21.49 48 48v352c0 26.51-21.49 48-48 48zM128 120c-22.091 0-40 17.909-40 40s17.909 40 40 40 40-17.909 40-40-17.909-40-40-40zm0 96c-22.091 0-40 17.909-40 40s17.909 40 40 40 40-17.909 40-40-17.909-40-40-40zm0 96c-22.091 0-40 17.909-40 40s17.909 40 40 40 40-17.909 40-40-17.909-40-40-40zm288-136v-32c0-6.627-5.373-12-12-12H204c-6.627 0-12 5.373-12 12v32c0 6.627 5.373 12 12 12h200c6.627 0 12-5.373 12-12zm0 96v-32c0-6.627-5.373-12-12-12H204c-6.627 0-12 5.373-12 12v32c0 6.627 5.373 12 12 12h200c6.627 0 12-5.373 12-12zm0 96v-32c0-6.627-5.373-12-12-12H204c-6.627 0-12 5.373-12 12v32c0 6.627 5.373 12 12 12h200c6.627 0 12-5.373 12-12z"},"lock":{"viewBox":"0 0 448 512","path":"M400 224h-24v-72C376 68.2 307.8 0 224 0S72 68.2 72 152v72H48c-26.5 0-48 21.5-48 48v192c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V272c0-26.5-21.5-48-48-48zm-104 0H152v-72c0-39.7 32.3-72 72-72s72 32.3 72 72v72z"},"flag":{"viewBox":"0 0 512 512","path":"M349.565 98.783C295.978 98.783 251.721 64 184.348 64c-24.955 0-47.309 4.384-68.045 12.013a55.947 55.947 0 0 0 3.586-23.562C118.117 24.015 94.806 1.206 66.338.048 34.345-1.254 8 24.296 8 56c0 19.026 9.497 35.825 24 45.945V488c0 13.255 10.745 24 24 24h16c13.255 0 24-10.745 24-24v-94.4c28.311-12.064 63.582-22.122 114.435-22.122 53.588 0 97.844 34.783 165.217 34.783 48.169 0 86.667-16.294 122.505-40.858C506.84 359.452 512 349.571 512 339.045v-243.1c0-23.393-24.269-38.87-45.485-29.016-34.338 15.948-76.454 31.854-116.95 31.854z"},"headphones":{"viewBox":"0 0 512 512","path":"M256 32C114.52 32 0 146.496 0 288v48a32 32 0 0 0 17.689 28.622l14.383 7.191C34.083 431.903 83.421 480 144 480h24c13.255 0 24-10.745 24-24V280c0-13.255-10.745-24-24-24h-24c-31.342 0-59.671 12.879-80 33.627V288c0-105.869 86.131-192 192-192s192 86.131 192 192v1.627C427.671 268.879 399.342 256 368 256h-24c-13.255 0-24 10.745-24 24v176c0 13.255 10.745 24 24 24h24c60.579 0 109.917-48.098 111.928-108.187l14.382-7.191A32 32 0 0 0 512 336v-48c0-141.479-114.496-256-256-256z"},"volume-off":{"viewBox":"0 0 257 512","path":"M216.36 71.04L127.39 160H25.33c-13.26 0-24 10.74-24 24v144c0 13.25 10.74 24 24 24h102.06l88.97 88.95c15.03 15.03 40.97 4.47 40.97-16.97V88.02c0-21.47-25.96-31.98-40.97-16.98z"},"volume-down":{"viewBox":"0 0 384 512","path":"M215.03 72.04L126.06 161H24c-13.26 0-24 10.74-24 24v144c0 13.25 10.74 24 24 24h102.06l88.97 88.95c15.03 15.03 40.97 4.47 40.97-16.97V89.02c0-21.47-25.96-31.98-40.97-16.98zm123.2 108.08c-11.58-6.33-26.19-2.16-32.61 9.45-6.39 11.61-2.16 26.2 9.45 32.61C327.98 229.28 336 242.62 336 257c0 14.38-8.02 27.72-20.92 34.81-11.61 6.41-15.84 21-9.45 32.61 6.43 11.66 21.05 15.8 32.61 9.45 28.23-15.55 45.77-45 45.77-76.88s-17.54-61.32-45.78-76.87z"},"volume-up":{"viewBox":"0 0 576 512","path":"M215.03 71.05L126.06 160H24c-13.26 0-24 10.74-24 24v144c0 13.25 10.74 24 24 24h102.06l88.97 88.95c15.03 15.03 40.97 4.47 40.97-16.97V88.02c0-21.46-25.96-31.98-40.97-16.97zm233.32-51.08c-11.17-7.33-26.18-4.24-33.51 6.95-7.34 11.17-4.22 26.18 6.95 33.51 66.27 43.49 105.82 116.6 105.82 195.58 0 78.98-39.55 152.09-105.82 195.58-11.17 7.32-14.29 22.34-6.95 33.5 7.04 10.71 21.93 14.56 33.51 6.95C528.27 439.58 576 351.33 576 256S528.27 72.43 448.35 19.97zM480 256c0-63.53-32.06-121.94-85.77-156.24-11.19-7.14-26.03-3.82-33.12 7.46s-3.78 26.21 7.41 33.36C408.27 165.97 432 209.11 432 256s-23.73 90.03-63.48 115.42c-11.19 7.14-14.5 22.07-7.41 33.36 6.51 10.36 21.12 15.14 33.12 7.46C447.94 377.94 480 319.54 480 256zm-141.77-76.87c-11.58-6.33-26.19-2.16-32.61 9.45-6.39 11.61-2.16 26.2 9.45 32.61C327.98 228.28 336 241.63 336 256c0 14.38-8.02 27.72-20.92 34.81-11.61 6.41-15.84 21-9.45 32.61 6.43 11.66 21.05 15.8 32.61 9.45 28.23-15.55 45.77-45 45.77-76.88s-17.54-61.32-45.78-76.86z"},"qrcode":{"viewBox":"0 0 448 512","path":"M0 224h192V32H0v192zM64 96h64v64H64V96zm192-64v192h192V32H256zm128 128h-64V96h64v64zM0 480h192V288H0v192zm64-128h64v64H64v-64zm352-64h32v128h-96v-32h-32v96h-64V288h96v32h64v-32zm0 160h32v32h-32v-32zm-64 0h32v32h-32v-32z"},"barcode":{"viewBox":"0 0 512 512","path":"M0 448V64h18v384H0zm26.857-.273V64H36v383.727h-9.143zm27.143 0V64h8.857v383.727H54zm44.857 0V64h8.857v383.727h-8.857zm36 0V64h17.714v383.727h-17.714zm44.857 0V64h8.857v383.727h-8.857zm18 0V64h8.857v383.727h-8.857zm18 0V64h8.857v383.727h-8.857zm35.715 0V64h18v383.727h-18zm44.857 0V64h18v383.727h-18zm35.999 0V64h18.001v383.727h-18.001zm36.001 0V64h18.001v383.727h-18.001zm26.857 0V64h18v383.727h-18zm45.143 0V64h26.857v383.727h-26.857zm35.714 0V64h9.143v383.727H476zm18 .273V64h18v384h-18z"},"tag":{"viewBox":"0 0 512 512","path":"M0 252.118V48C0 21.49 21.49 0 48 0h204.118a48 48 0 0 1 33.941 14.059l211.882 211.882c18.745 18.745 18.745 49.137 0 67.882L293.823 497.941c-18.745 18.745-49.137 18.745-67.882 0L14.059 286.059A48 48 0 0 1 0 252.118zM112 64c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48z"},"tags":{"viewBox":"0 0 640 512","path":"M497.941 225.941L286.059 14.059A48 48 0 0 0 252.118 0H48C21.49 0 0 21.49 0 48v204.118a48 48 0 0 0 14.059 33.941l211.882 211.882c18.744 18.745 49.136 18.746 67.882 0l204.118-204.118c18.745-18.745 18.745-49.137 0-67.882zM112 160c-26.51 0-48-21.49-48-48s21.49-48 48-48 48 21.49 48 48-21.49 48-48 48zm513.941 133.823L421.823 497.941c-18.745 18.745-49.137 18.745-67.882 0l-.36-.36L527.64 323.522c16.999-16.999 26.36-39.6 26.36-63.64s-9.362-46.641-26.36-63.64L331.397 0h48.721a48 48 0 0 1 33.941 14.059l211.882 211.882c18.745 18.745 18.745 49.137 0 67.882z"},"book":{"viewBox":"0 0 448 512","path":"M448 360V24c0-13.3-10.7-24-24-24H96C43 0 0 43 0 96v320c0 53 43 96 96 96h328c13.3 0 24-10.7 24-24v-16c0-7.5-3.5-14.3-8.9-18.7-4.2-15.4-4.2-59.3 0-74.7 5.4-4.3 8.9-11.1 8.9-18.6zM128 134c0-3.3 2.7-6 6-6h212c3.3 0 6 2.7 6 6v20c0 3.3-2.7 6-6 6H134c-3.3 0-6-2.7-6-6v-20zm0 64c0-3.3 2.7-6 6-6h212c3.3 0 6 2.7 6 6v20c0 3.3-2.7 6-6 6H134c-3.3 0-6-2.7-6-6v-20zm253.4 250H96c-17.7 0-32-14.3-32-32 0-17.6 14.4-32 32-32h285.4c-1.9 17.1-1.9 46.9 0 64z"},"bookmark":{"viewBox":"0 0 384 512","path":"M0 512V48C0 21.49 21.49 0 48 0h288c26.51 0 48 21.49 48 48v464L192 400 0 512z"},"print":{"viewBox":"0 0 512 512","path":"M448 192V77.25c0-8.49-3.37-16.62-9.37-22.63L393.37 9.37c-6-6-14.14-9.37-22.63-9.37H96C78.33 0 64 14.33 64 32v160c-35.35 0-64 28.65-64 64v112c0 8.84 7.16 16 16 16h48v96c0 17.67 14.33 32 32 32h320c17.67 0 32-14.33 32-32v-96h48c8.84 0 16-7.16 16-16V256c0-35.35-28.65-64-64-64zm-64 256H128v-96h256v96zm0-224H128V64h192v48c0 8.84 7.16 16 16 16h48v96zm48 72c-13.25 0-24-10.75-24-24 0-13.26 10.75-24 24-24s24 10.74 24 24c0 13.25-10.75 24-24 24z"},"camera":{"viewBox":"0 0 512 512","path":"M512 144v288c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V144c0-26.5 21.5-48 48-48h88l12.3-32.9c7-18.7 24.9-31.1 44.9-31.1h125.5c20 0 37.9 12.4 44.9 31.1L376 96h88c26.5 0 48 21.5 48 48zM376 288c0-66.2-53.8-120-120-120s-120 53.8-120 120 53.8 120 120 120 120-53.8 120-120zm-32 0c0 48.5-39.5 88-88 88s-88-39.5-88-88 39.5-88 88-88 88 39.5 88 88z"},"font":{"viewBox":"0 0 448 512","path":"M152 416h-24.013l26.586-80.782H292.8L319.386 416H296c-8.837 0-16 7.163-16 16v32c0 8.837 7.163 16 16 16h136c8.837 0 16-7.163 16-16v-32c0-8.837-7.163-16-16-16h-26.739L275.495 42.746A16 16 0 0 0 260.382 32h-72.766a16 16 0 0 0-15.113 10.746L42.739 416H16c-8.837 0-16 7.163-16 16v32c0 8.837 7.163 16 16 16h136c8.837 0 16-7.163 16-16v-32c0-8.837-7.163-16-16-16zm64.353-271.778c4.348-15.216 6.61-28.156 7.586-34.644.839 6.521 2.939 19.476 7.727 34.706l41.335 124.006h-98.619l41.971-124.068z"},"bold":{"viewBox":"0 0 384 512","path":"M304.793 243.891c33.639-18.537 53.657-54.16 53.657-95.693 0-48.236-26.25-87.626-68.626-104.179C265.138 34.01 240.849 32 209.661 32H24c-8.837 0-16 7.163-16 16v33.049c0 8.837 7.163 16 16 16h33.113v318.53H24c-8.837 0-16 7.163-16 16V464c0 8.837 7.163 16 16 16h195.69c24.203 0 44.834-1.289 66.866-7.584C337.52 457.193 376 410.647 376 350.014c0-52.168-26.573-91.684-71.207-106.123zM142.217 100.809h67.444c16.294 0 27.536 2.019 37.525 6.717 15.828 8.479 24.906 26.502 24.906 49.446 0 35.029-20.32 56.79-53.029 56.79h-76.846V100.809zm112.642 305.475c-10.14 4.056-22.677 4.907-31.409 4.907h-81.233V281.943h84.367c39.645 0 63.057 25.38 63.057 63.057.001 28.425-13.66 52.483-34.782 61.284z"},"italic":{"viewBox":"0 0 320 512","path":"M204.758 416h-33.849l62.092-320h40.725a16 16 0 0 0 15.704-12.937l6.242-32C297.599 41.184 290.034 32 279.968 32H120.235a16 16 0 0 0-15.704 12.937l-6.242 32C96.362 86.816 103.927 96 113.993 96h33.846l-62.09 320H46.278a16 16 0 0 0-15.704 12.935l-6.245 32C22.402 470.815 29.967 480 40.034 480h158.479a16 16 0 0 0 15.704-12.935l6.245-32c1.927-9.88-5.638-19.065-15.704-19.065z"},"text-height":{"viewBox":"0 0 576 512","path":"M16 32h288c8.837 0 16 7.163 16 16v96c0 8.837-7.163 16-16 16h-35.496c-8.837 0-16-7.163-16-16V96h-54.761v320H232c8.837 0 16 7.163 16 16v32c0 8.837-7.163 16-16 16H88c-8.837 0-16-7.163-16-16v-32c0-8.837 7.163-16 16-16h34.257V96H67.496v48c0 8.837-7.163 16-16 16H16c-8.837 0-16-7.163-16-16V48c0-8.837 7.163-16 16-16zm475.308 4.685l79.995 80.001C581.309 126.693 574.297 144 559.99 144H512v224h48c15.639 0 20.635 17.991 11.313 27.314l-79.995 80.001c-6.247 6.247-16.381 6.245-22.626 0l-79.995-80.001C378.691 385.307 385.703 368 400.01 368H448V144h-48c-15.639 0-20.635-17.991-11.313-27.314l79.995-80.001c6.247-6.248 16.381-6.245 22.626 0z"},"text-width":{"viewBox":"0 0 448 512","path":"M16 32h416c8.837 0 16 7.163 16 16v96c0 8.837-7.163 16-16 16h-35.496c-8.837 0-16-7.163-16-16V96H261.743v128H296c8.837 0 16 7.163 16 16v32c0 8.837-7.163 16-16 16H152c-8.837 0-16-7.163-16-16v-32c0-8.837 7.163-16 16-16h34.257V96H67.496v48c0 8.837-7.163 16-16 16H16c-8.837 0-16-7.163-16-16V48c0-8.837 7.163-16 16-16zm427.315 340.682l-80.001-79.995C353.991 283.365 336 288.362 336 304v48H112v-47.99c0-14.307-17.307-21.319-27.314-11.313L4.685 372.692c-6.245 6.245-6.247 16.379 0 22.626l80.001 79.995C94.009 484.635 112 479.638 112 464v-48h224v47.99c0 14.307 17.307 21.319 27.314 11.313l80.001-79.995c6.245-6.245 6.248-16.379 0-22.626z"},"align-left":{"viewBox":"0 0 448 512","path":"M288 44v40c0 8.837-7.163 16-16 16H16c-8.837 0-16-7.163-16-16V44c0-8.837 7.163-16 16-16h256c8.837 0 16 7.163 16 16zM0 172v40c0 8.837 7.163 16 16 16h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16zm16 312h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm256-200H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16h256c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16z"},"align-center":{"viewBox":"0 0 448 512","path":"M352 44v40c0 8.837-7.163 16-16 16H112c-8.837 0-16-7.163-16-16V44c0-8.837 7.163-16 16-16h224c8.837 0 16 7.163 16 16zM16 228h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 256h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm320-200H112c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16h224c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16z"},"align-right":{"viewBox":"0 0 448 512","path":"M160 84V44c0-8.837 7.163-16 16-16h256c8.837 0 16 7.163 16 16v40c0 8.837-7.163 16-16 16H176c-8.837 0-16-7.163-16-16zM16 228h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 256h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm160-128h256c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H176c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16z"},"align-justify":{"viewBox":"0 0 448 512","path":"M0 84V44c0-8.837 7.163-16 16-16h416c8.837 0 16 7.163 16 16v40c0 8.837-7.163 16-16 16H16c-8.837 0-16-7.163-16-16zm16 144h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 256h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0-128h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16z"},"list":{"viewBox":"0 0 512 512","path":"M128 116V76c0-8.837 7.163-16 16-16h352c8.837 0 16 7.163 16 16v40c0 8.837-7.163 16-16 16H144c-8.837 0-16-7.163-16-16zm16 176h352c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H144c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h352c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H144c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zM16 144h64c8.837 0 16-7.163 16-16V64c0-8.837-7.163-16-16-16H16C7.163 48 0 55.163 0 64v64c0 8.837 7.163 16 16 16zm0 160h64c8.837 0 16-7.163 16-16v-64c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v64c0 8.837 7.163 16 16 16zm0 160h64c8.837 0 16-7.163 16-16v-64c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v64c0 8.837 7.163 16 16 16z"},"outdent":{"viewBox":"0 0 448 512","path":"M0 84V44c0-8.837 7.163-16 16-16h416c8.837 0 16 7.163 16 16v40c0 8.837-7.163 16-16 16H16c-8.837 0-16-7.163-16-16zm208 144h224c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H208c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zM16 484h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm192-128h224c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H208c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zM4.687 267.313l96 95.984C110.734 373.348 128 366.224 128 351.984V160.008c0-14.329-17.325-21.304-27.313-11.313l-96 95.992c-6.249 6.248-6.249 16.378 0 22.626z"},"indent":{"viewBox":"0 0 448 512","path":"M0 84V44c0-8.837 7.163-16 16-16h416c8.837 0 16 7.163 16 16v40c0 8.837-7.163 16-16 16H16c-8.837 0-16-7.163-16-16zm176 144h256c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H176c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zM16 484h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm160-128h256c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H176c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm-52.687-111.313l-96-95.984C17.266 138.652 0 145.776 0 160.016v191.975c0 14.329 17.325 21.304 27.313 11.313l96-95.992c6.249-6.247 6.249-16.377 0-22.625z"},"video":{"viewBox":"0 0 576 512","path":"M336.2 64H47.8C21.4 64 0 85.4 0 111.8v288.4C0 426.6 21.4 448 47.8 448h288.4c26.4 0 47.8-21.4 47.8-47.8V111.8c0-26.4-21.4-47.8-47.8-47.8zm189.4 37.7L416 177.3v157.4l109.6 75.5c21.2 14.6 50.4-.3 50.4-25.8V127.5c0-25.4-29.1-40.4-50.4-25.8z"},"image":{"viewBox":"0 0 512 512","path":"M464 448H48c-26.51 0-48-21.49-48-48V112c0-26.51 21.49-48 48-48h416c26.51 0 48 21.49 48 48v288c0 26.51-21.49 48-48 48zM112 120c-30.928 0-56 25.072-56 56s25.072 56 56 56 56-25.072 56-56-25.072-56-56-56zM64 384h384V272l-87.515-87.515c-4.686-4.686-12.284-4.686-16.971 0L208 320l-55.515-55.515c-4.686-4.686-12.284-4.686-16.971 0L64 336v48z"},"pencil-alt":{"viewBox":"0 0 512 512","path":"M497.9 142.1l-46.1 46.1c-4.7 4.7-12.3 4.7-17 0l-111-111c-4.7-4.7-4.7-12.3 0-17l46.1-46.1c18.7-18.7 49.1-18.7 67.9 0l60.1 60.1c18.8 18.7 18.8 49.1 0 67.9zM284.2 99.8L21.6 362.4.4 483.9c-2.9 16.4 11.4 30.6 27.8 27.8l121.5-21.3 262.6-262.6c4.7-4.7 4.7-12.3 0-17l-111-111c-4.8-4.7-12.4-4.7-17.1 0zM124.1 339.9c-5.5-5.5-5.5-14.3 0-19.8l154-154c5.5-5.5 14.3-5.5 19.8 0s5.5 14.3 0 19.8l-154 154c-5.5 5.5-14.3 5.5-19.8 0zM88 424h48v36.3l-64.5 11.3-31.1-31.1L51.7 376H88v48z"},"map-marker":{"viewBox":"0 0 384 512","path":"M172.268 501.67C26.97 291.031 0 269.413 0 192 0 85.961 85.961 0 192 0s192 85.961 192 192c0 77.413-26.97 99.031-172.268 309.67-9.535 13.774-29.93 13.773-39.464 0z"},"adjust":{"viewBox":"0 0 512 512","path":"M8 256c0 136.966 111.033 248 248 248s248-111.034 248-248S392.966 8 256 8 8 119.033 8 256zm248 184V72c101.705 0 184 82.311 184 184 0 101.705-82.311 184-184 184z"},"tint":{"viewBox":"0 0 352 512","path":"M205.22 22.09c-7.94-28.78-49.44-30.12-58.44 0C100.01 179.85 0 222.72 0 333.91 0 432.35 78.72 512 176 512s176-79.65 176-178.09c0-111.75-99.79-153.34-146.78-311.82zM176 448c-61.75 0-112-50.25-112-112 0-8.84 7.16-16 16-16s16 7.16 16 16c0 44.11 35.89 80 80 80 8.84 0 16 7.16 16 16s-7.16 16-16 16z"},"step-backward":{"viewBox":"0 0 448 512","path":"M64 468V44c0-6.6 5.4-12 12-12h48c6.6 0 12 5.4 12 12v176.4l195.5-181C352.1 22.3 384 36.6 384 64v384c0 27.4-31.9 41.7-52.5 24.6L136 292.7V468c0 6.6-5.4 12-12 12H76c-6.6 0-12-5.4-12-12z"},"fast-backward":{"viewBox":"0 0 512 512","path":"M0 436V76c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v151.9L235.5 71.4C256.1 54.3 288 68.6 288 96v131.9L459.5 71.4C480.1 54.3 512 68.6 512 96v320c0 27.4-31.9 41.7-52.5 24.6L288 285.3V416c0 27.4-31.9 41.7-52.5 24.6L64 285.3V436c0 6.6-5.4 12-12 12H12c-6.6 0-12-5.4-12-12z"},"backward":{"viewBox":"0 0 512 512","path":"M11.5 280.6l192 160c20.6 17.2 52.5 2.8 52.5-24.6V96c0-27.4-31.9-41.8-52.5-24.6l-192 160c-15.3 12.8-15.3 36.4 0 49.2zm256 0l192 160c20.6 17.2 52.5 2.8 52.5-24.6V96c0-27.4-31.9-41.8-52.5-24.6l-192 160c-15.3 12.8-15.3 36.4 0 49.2z"},"play":{"viewBox":"0 0 448 512","path":"M424.4 214.7L72.4 6.6C43.8-10.3 0 6.1 0 47.9V464c0 37.5 40.7 60.1 72.4 41.3l352-208c31.4-18.5 31.5-64.1 0-82.6z"},"pause":{"viewBox":"0 0 448 512","path":"M144 479H48c-26.5 0-48-21.5-48-48V79c0-26.5 21.5-48 48-48h96c26.5 0 48 21.5 48 48v352c0 26.5-21.5 48-48 48zm304-48V79c0-26.5-21.5-48-48-48h-96c-26.5 0-48 21.5-48 48v352c0 26.5 21.5 48 48 48h96c26.5 0 48-21.5 48-48z"},"stop":{"viewBox":"0 0 448 512","path":"M400 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48z"},"forward":{"viewBox":"0 0 512 512","path":"M500.5 231.4l-192-160C287.9 54.3 256 68.6 256 96v320c0 27.4 31.9 41.8 52.5 24.6l192-160c15.3-12.8 15.3-36.4 0-49.2zm-256 0l-192-160C31.9 54.3 0 68.6 0 96v320c0 27.4 31.9 41.8 52.5 24.6l192-160c15.3-12.8 15.3-36.4 0-49.2z"},"fast-forward":{"viewBox":"0 0 512 512","path":"M512 76v360c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12V284.1L276.5 440.6c-20.6 17.2-52.5 2.8-52.5-24.6V284.1L52.5 440.6C31.9 457.8 0 443.4 0 416V96c0-27.4 31.9-41.7 52.5-24.6L224 226.8V96c0-27.4 31.9-41.7 52.5-24.6L448 226.8V76c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12z"},"step-forward":{"viewBox":"0 0 448 512","path":"M384 44v424c0 6.6-5.4 12-12 12h-48c-6.6 0-12-5.4-12-12V291.6l-195.5 181C95.9 489.7 64 475.4 64 448V64c0-27.4 31.9-41.7 52.5-24.6L312 219.3V44c0-6.6 5.4-12 12-12h48c6.6 0 12 5.4 12 12z"},"eject":{"viewBox":"0 0 448 512","path":"M448 384v64c0 17.673-14.327 32-32 32H32c-17.673 0-32-14.327-32-32v-64c0-17.673 14.327-32 32-32h384c17.673 0 32 14.327 32 32zM48.053 320h351.886c41.651 0 63.581-49.674 35.383-80.435L259.383 47.558c-19.014-20.743-51.751-20.744-70.767 0L12.67 239.565C-15.475 270.268 6.324 320 48.053 320z"},"chevron-left":{"viewBox":"0 0 320 512","path":"M34.52 239.03L228.87 44.69c9.37-9.37 24.57-9.37 33.94 0l22.67 22.67c9.36 9.36 9.37 24.52.04 33.9L131.49 256l154.02 154.75c9.34 9.38 9.32 24.54-.04 33.9l-22.67 22.67c-9.37 9.37-24.57 9.37-33.94 0L34.52 272.97c-9.37-9.37-9.37-24.57 0-33.94z"},"chevron-right":{"viewBox":"0 0 320 512","path":"M285.476 272.971L91.132 467.314c-9.373 9.373-24.569 9.373-33.941 0l-22.667-22.667c-9.357-9.357-9.375-24.522-.04-33.901L188.505 256 34.484 101.255c-9.335-9.379-9.317-24.544.04-33.901l22.667-22.667c9.373-9.373 24.569-9.373 33.941 0L285.475 239.03c9.373 9.372 9.373 24.568.001 33.941z"},"plus-circle":{"viewBox":"0 0 512 512","path":"M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm144 276c0 6.6-5.4 12-12 12h-92v92c0 6.6-5.4 12-12 12h-56c-6.6 0-12-5.4-12-12v-92h-92c-6.6 0-12-5.4-12-12v-56c0-6.6 5.4-12 12-12h92v-92c0-6.6 5.4-12 12-12h56c6.6 0 12 5.4 12 12v92h92c6.6 0 12 5.4 12 12v56z"},"minus-circle":{"viewBox":"0 0 512 512","path":"M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zM124 296c-6.6 0-12-5.4-12-12v-56c0-6.6 5.4-12 12-12h264c6.6 0 12 5.4 12 12v56c0 6.6-5.4 12-12 12H124z"},"times-circle":{"viewBox":"0 0 512 512","path":"M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm121.6 313.1c4.7 4.7 4.7 12.3 0 17L338 377.6c-4.7 4.7-12.3 4.7-17 0L256 312l-65.1 65.6c-4.7 4.7-12.3 4.7-17 0L134.4 338c-4.7-4.7-4.7-12.3 0-17l65.6-65-65.6-65.1c-4.7-4.7-4.7-12.3 0-17l39.6-39.6c4.7-4.7 12.3-4.7 17 0l65 65.7 65.1-65.6c4.7-4.7 12.3-4.7 17 0l39.6 39.6c4.7 4.7 4.7 12.3 0 17L312 256l65.6 65.1z"},"check-circle":{"viewBox":"0 0 512 512","path":"M504 256c0 136.967-111.033 248-248 248S8 392.967 8 256 119.033 8 256 8s248 111.033 248 248zM227.314 387.314l184-184c6.248-6.248 6.248-16.379 0-22.627l-22.627-22.627c-6.248-6.249-16.379-6.249-22.628 0L216 308.118l-70.059-70.059c-6.248-6.248-16.379-6.248-22.628 0l-22.627 22.627c-6.248 6.248-6.248 16.379 0 22.627l104 104c6.249 6.249 16.379 6.249 22.628.001z"},"question-circle":{"viewBox":"0 0 512 512","path":"M504 256c0 136.997-111.043 248-248 248S8 392.997 8 256C8 119.083 119.043 8 256 8s248 111.083 248 248zM262.655 90c-54.497 0-89.255 22.957-116.549 63.758-3.536 5.286-2.353 12.415 2.715 16.258l34.699 26.31c5.205 3.947 12.621 3.008 16.665-2.122 17.864-22.658 30.113-35.797 57.303-35.797 20.429 0 45.698 13.148 45.698 32.958 0 14.976-12.363 22.667-32.534 33.976C247.128 238.528 216 254.941 216 296v4c0 6.627 5.373 12 12 12h56c6.627 0 12-5.373 12-12v-1.333c0-28.462 83.186-29.647 83.186-106.667 0-58.002-60.165-102-116.531-102zM256 338c-25.365 0-46 20.635-46 46 0 25.364 20.635 46 46 46s46-20.636 46-46c0-25.365-20.635-46-46-46z"},"info-circle":{"viewBox":"0 0 512 512","path":"M256 8C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm0 110c23.196 0 42 18.804 42 42s-18.804 42-42 42-42-18.804-42-42 18.804-42 42-42zm56 254c0 6.627-5.373 12-12 12h-88c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h12v-64h-12c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h64c6.627 0 12 5.373 12 12v100h12c6.627 0 12 5.373 12 12v24z"},"crosshairs":{"viewBox":"0 0 512 512","path":"M500 224h-30.364C455.724 130.325 381.675 56.276 288 42.364V12c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v30.364C130.325 56.276 56.276 130.325 42.364 224H12c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h30.364C56.276 381.675 130.325 455.724 224 469.636V500c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12v-30.364C381.675 455.724 455.724 381.675 469.636 288H500c6.627 0 12-5.373 12-12v-40c0-6.627-5.373-12-12-12zM288 404.634V364c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40.634C165.826 392.232 119.783 346.243 107.366 288H148c6.627 0 12-5.373 12-12v-40c0-6.627-5.373-12-12-12h-40.634C119.768 165.826 165.757 119.783 224 107.366V148c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12v-40.634C346.174 119.768 392.217 165.757 404.634 224H364c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40.634C392.232 346.174 346.243 392.217 288 404.634zM288 256c0 17.673-14.327 32-32 32s-32-14.327-32-32c0-17.673 14.327-32 32-32s32 14.327 32 32z"},"ban":{"viewBox":"0 0 512 512","path":"M256 8C119.034 8 8 119.033 8 256s111.034 248 248 248 248-111.034 248-248S392.967 8 256 8zm130.108 117.892c65.448 65.448 70 165.481 20.677 235.637L150.47 105.216c70.204-49.356 170.226-44.735 235.638 20.676zM125.892 386.108c-65.448-65.448-70-165.481-20.677-235.637L361.53 406.784c-70.203 49.356-170.226 44.736-235.638-20.676z"},"arrow-left":{"viewBox":"0 0 448 512","path":"M257.5 445.1l-22.2 22.2c-9.4 9.4-24.6 9.4-33.9 0L7 273c-9.4-9.4-9.4-24.6 0-33.9L201.4 44.7c9.4-9.4 24.6-9.4 33.9 0l22.2 22.2c9.5 9.5 9.3 25-.4 34.3L136.6 216H424c13.3 0 24 10.7 24 24v32c0 13.3-10.7 24-24 24H136.6l120.5 114.8c9.8 9.3 10 24.8.4 34.3z"},"arrow-right":{"viewBox":"0 0 448 512","path":"M190.5 66.9l22.2-22.2c9.4-9.4 24.6-9.4 33.9 0L441 239c9.4 9.4 9.4 24.6 0 33.9L246.6 467.3c-9.4 9.4-24.6 9.4-33.9 0l-22.2-22.2c-9.5-9.5-9.3-25 .4-34.3L311.4 296H24c-13.3 0-24-10.7-24-24v-32c0-13.3 10.7-24 24-24h287.4L190.9 101.2c-9.8-9.3-10-24.8-.4-34.3z"},"arrow-up":{"viewBox":"0 0 448 512","path":"M34.9 289.5l-22.2-22.2c-9.4-9.4-9.4-24.6 0-33.9L207 39c9.4-9.4 24.6-9.4 33.9 0l194.3 194.3c9.4 9.4 9.4 24.6 0 33.9L413 289.4c-9.5 9.5-25 9.3-34.3-.4L264 168.6V456c0 13.3-10.7 24-24 24h-32c-13.3 0-24-10.7-24-24V168.6L69.2 289.1c-9.3 9.8-24.8 10-34.3.4z"},"arrow-down":{"viewBox":"0 0 448 512","path":"M413.1 222.5l22.2 22.2c9.4 9.4 9.4 24.6 0 33.9L241 473c-9.4 9.4-24.6 9.4-33.9 0L12.7 278.6c-9.4-9.4-9.4-24.6 0-33.9l22.2-22.2c9.5-9.5 25-9.3 34.3.4L184 343.4V56c0-13.3 10.7-24 24-24h32c13.3 0 24 10.7 24 24v287.4l114.8-120.5c9.3-9.8 24.8-10 34.3-.4z"},"share":{"viewBox":"0 0 512 512","path":"M503.691 189.836L327.687 37.851C312.281 24.546 288 35.347 288 56.015v80.053C127.371 137.907 0 170.1 0 322.326c0 61.441 39.581 122.309 83.333 154.132 13.653 9.931 33.111-2.533 28.077-18.631C66.066 312.814 132.917 274.316 288 272.085V360c0 20.7 24.3 31.453 39.687 18.164l176.004-152c11.071-9.562 11.086-26.753 0-36.328z"},"expand":{"viewBox":"0 0 448 512","path":"M0 180V56c0-13.3 10.7-24 24-24h124c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12H64v84c0 6.6-5.4 12-12 12H12c-6.6 0-12-5.4-12-12zM288 44v40c0 6.6 5.4 12 12 12h84v84c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12V56c0-13.3-10.7-24-24-24H300c-6.6 0-12 5.4-12 12zm148 276h-40c-6.6 0-12 5.4-12 12v84h-84c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h124c13.3 0 24-10.7 24-24V332c0-6.6-5.4-12-12-12zM160 468v-40c0-6.6-5.4-12-12-12H64v-84c0-6.6-5.4-12-12-12H12c-6.6 0-12 5.4-12 12v124c0 13.3 10.7 24 24 24h124c6.6 0 12-5.4 12-12z"},"compress":{"viewBox":"0 0 448 512","path":"M436 192H312c-13.3 0-24-10.7-24-24V44c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v84h84c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12zm-276-24V44c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v84H12c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h124c13.3 0 24-10.7 24-24zm0 300V344c0-13.3-10.7-24-24-24H12c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h84v84c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12zm192 0v-84h84c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12H312c-13.3 0-24 10.7-24 24v124c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12z"},"plus":{"viewBox":"0 0 448 512","path":"M416 208H272V64c0-17.67-14.33-32-32-32h-32c-17.67 0-32 14.33-32 32v144H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h144v144c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32V304h144c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z"},"minus":{"viewBox":"0 0 448 512","path":"M416 208H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h384c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z"},"asterisk":{"viewBox":"0 0 512 512","path":"M478.21 334.093L336 256l142.21-78.093c11.795-6.477 15.961-21.384 9.232-33.037l-19.48-33.741c-6.728-11.653-21.72-15.499-33.227-8.523L296 186.718l3.475-162.204C299.763 11.061 288.937 0 275.48 0h-38.96c-13.456 0-24.283 11.061-23.994 24.514L216 186.718 77.265 102.607c-11.506-6.976-26.499-3.13-33.227 8.523l-19.48 33.741c-6.728 11.653-2.562 26.56 9.233 33.037L176 256 33.79 334.093c-11.795 6.477-15.961 21.384-9.232 33.037l19.48 33.741c6.728 11.653 21.721 15.499 33.227 8.523L216 325.282l-3.475 162.204C212.237 500.939 223.064 512 236.52 512h38.961c13.456 0 24.283-11.061 23.995-24.514L296 325.282l138.735 84.111c11.506 6.976 26.499 3.13 33.227-8.523l19.48-33.741c6.728-11.653 2.563-26.559-9.232-33.036z"},"exclamation-circle":{"viewBox":"0 0 512 512","path":"M504 256c0 136.997-111.043 248-248 248S8 392.997 8 256C8 119.083 119.043 8 256 8s248 111.083 248 248zm-248 50c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z"},"gift":{"viewBox":"0 0 512 512","path":"M32 448c0 17.7 14.3 32 32 32h160V320H32v128zm448-288h-42.1c6.2-12.1 10.1-25.5 10.1-40 0-48.5-39.5-88-88-88-41.6 0-68.5 21.3-103 68.3-34.5-47-61.4-68.3-103-68.3-48.5 0-88 39.5-88 88 0 14.5 3.8 27.9 10.1 40H32c-17.7 0-32 14.3-32 32v80c0 8.8 7.2 16 16 16h480c8.8 0 16-7.2 16-16v-80c0-17.7-14.3-32-32-32zm-326.1 0c-22.1 0-40-17.9-40-40s17.9-40 40-40c19.9 0 34.6 3.3 86.1 80h-86.1zm206.1 0h-86.1c51.4-76.5 65.7-80 86.1-80 22.1 0 40 17.9 40 40s-17.9 40-40 40zm-72 320h160c17.7 0 32-14.3 32-32V320H288v160z"},"leaf":{"viewBox":"0 0 576 512","path":"M546.2 9.7c-5.6-12.5-21.6-13-28.3-1.2C486.9 62.4 431.4 96 368 96h-80C182 96 96 182 96 288c0 7 .8 13.7 1.5 20.5C161.3 262.8 253.4 224 384 224c8.8 0 16 7.2 16 16s-7.2 16-16 16C132.6 256 26 410.1 2.4 468c-6.6 16.3 1.2 34.9 17.5 41.6 16.4 6.8 35-1.1 41.8-17.3 1.5-3.6 20.9-47.9 71.9-90.6 32.4 43.9 94 85.8 174.9 77.2C465.5 467.5 576 326.7 576 154.3c0-50.2-10.8-102.2-29.8-144.6z"},"fire":{"viewBox":"0 0 384 512","path":"M216 23.858c0-23.802-30.653-32.765-44.149-13.038C48 191.851 224 200 224 288c0 35.629-29.114 64.458-64.85 63.994C123.98 351.538 96 322.22 96 287.046v-85.51c0-21.703-26.471-32.225-41.432-16.504C27.801 213.158 0 261.332 0 320c0 105.869 86.131 192 192 192s192-86.131 192-192c0-170.29-168-193.003-168-296.142z"},"eye":{"viewBox":"0 0 576 512","path":"M569.354 231.631C512.969 135.949 407.81 72 288 72 168.14 72 63.004 135.994 6.646 231.631a47.999 47.999 0 0 0 0 48.739C63.031 376.051 168.19 440 288 440c119.86 0 224.996-63.994 281.354-159.631a47.997 47.997 0 0 0 0-48.738zM288 392c-75.162 0-136-60.827-136-136 0-75.162 60.826-136 136-136 75.162 0 136 60.826 136 136 0 75.162-60.826 136-136 136zm104-136c0 57.438-46.562 104-104 104s-104-46.562-104-104c0-17.708 4.431-34.379 12.236-48.973l-.001.032c0 23.651 19.173 42.823 42.824 42.823s42.824-19.173 42.824-42.823c0-23.651-19.173-42.824-42.824-42.824l-.032.001C253.621 156.431 270.292 152 288 152c57.438 0 104 46.562 104 104z"},"eye-slash":{"viewBox":"0 0 576 512","path":"M286.693 391.984l32.579 46.542A333.958 333.958 0 0 1 288 440C168.19 440 63.031 376.051 6.646 280.369a47.999 47.999 0 0 1 0-48.739c24.023-40.766 56.913-75.775 96.024-102.537l57.077 81.539C154.736 224.82 152 240.087 152 256c0 74.736 60.135 135.282 134.693 135.984zm282.661-111.615c-31.667 53.737-78.747 97.46-135.175 125.475l.011.015 41.47 59.2c7.6 10.86 4.96 25.82-5.9 33.42l-13.11 9.18c-10.86 7.6-25.82 4.96-33.42-5.9L100.34 46.94c-7.6-10.86-4.96-25.82 5.9-33.42l13.11-9.18c10.86-7.6 25.82-4.96 33.42 5.9l51.038 72.617C230.68 75.776 258.905 72 288 72c119.81 0 224.969 63.949 281.354 159.631a48.002 48.002 0 0 1 0 48.738zM424 256c0-75.174-60.838-136-136-136-17.939 0-35.056 3.473-50.729 9.772l19.299 27.058c25.869-8.171 55.044-6.163 80.4 7.41h-.03c-23.65 0-42.82 19.17-42.82 42.82 0 23.626 19.147 42.82 42.82 42.82 23.65 0 42.82-19.17 42.82-42.82v-.03c18.462 34.49 16.312 77.914-8.25 110.95v.01l19.314 27.061C411.496 321.2 424 290.074 424 256zM262.014 356.727l-77.53-110.757c-5.014 52.387 29.314 98.354 77.53 110.757z"},"exclamation-triangle":{"viewBox":"0 0 576 512","path":"M569.517 440.013C587.975 472.007 564.806 512 527.94 512H48.054c-36.937 0-59.999-40.055-41.577-71.987L246.423 23.985c18.467-32.009 64.72-31.951 83.154 0l239.94 416.028zM288 354c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z"},"plane":{"viewBox":"0 0 576 512","path":"M480 192H365.71L260.61 8.06A16.014 16.014 0 0 0 246.71 0h-65.5c-10.63 0-18.3 10.17-15.38 20.39L214.86 192H112l-43.2-57.6c-3.02-4.03-7.77-6.4-12.8-6.4H16.01C5.6 128-2.04 137.78.49 147.88L32 256 .49 364.12C-2.04 374.22 5.6 384 16.01 384H56c5.04 0 9.78-2.37 12.8-6.4L112 320h102.86l-49.03 171.6c-2.92 10.22 4.75 20.4 15.38 20.4h65.5c5.74 0 11.04-3.08 13.89-8.06L365.71 320H480c35.35 0 96-28.65 96-64s-60.65-64-96-64z"},"calendar":{"viewBox":"0 0 448 512","path":"M12 192h424c6.6 0 12 5.4 12 12v260c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V204c0-6.6 5.4-12 12-12zm436-44v-36c0-26.5-21.5-48-48-48h-48V12c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v52H160V12c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v52H48C21.5 64 0 85.5 0 112v36c0 6.6 5.4 12 12 12h424c6.6 0 12-5.4 12-12z"},"random":{"viewBox":"0 0 512 512","path":"M504.971 359.029c9.373 9.373 9.373 24.569 0 33.941l-80 79.984c-15.01 15.01-40.971 4.49-40.971-16.971V416h-58.785a12.004 12.004 0 0 1-8.773-3.812l-70.556-75.596 53.333-57.143L352 336h32v-39.981c0-21.438 25.943-31.998 40.971-16.971l80 79.981zM12 176h84l52.781 56.551 53.333-57.143-70.556-75.596A11.999 11.999 0 0 0 122.785 96H12c-6.627 0-12 5.373-12 12v56c0 6.627 5.373 12 12 12zm372 0v39.984c0 21.46 25.961 31.98 40.971 16.971l80-79.984c9.373-9.373 9.373-24.569 0-33.941l-80-79.981C409.943 24.021 384 34.582 384 56.019V96h-58.785a12.004 12.004 0 0 0-8.773 3.812L96 336H12c-6.627 0-12 5.373-12 12v56c0 6.627 5.373 12 12 12h110.785c3.326 0 6.503-1.381 8.773-3.812L352 176h32z"},"comment":{"viewBox":"0 0 512 512","path":"M256 32C114.6 32 0 125.1 0 240c0 49.6 21.4 95 57 130.7C44.5 421.1 2.7 466 2.2 466.5c-2.2 2.3-2.8 5.7-1.5 8.7S4.8 480 8 480c66.3 0 116-31.8 140.6-51.4 32.7 12.3 69 19.4 107.4 19.4 141.4 0 256-93.1 256-208S397.4 32 256 32z"},"magnet":{"viewBox":"0 0 512 512","path":"M164.1 160H12c-6.6 0-12-5.4-12-12V68c0-19.9 16.1-36 36-36h104c19.9 0 36 16.1 36 36v80c.1 6.6-5.3 12-11.9 12zm348-12V67.9c0-19.9-16.1-36-36-36h-104c-19.9 0-36 16.1-36 36v80c0 6.6 5.4 12 12 12h152c6.6.1 12-5.3 12-11.9zm-164 44c-6.6 0-12 5.4-12 12v52c0 128.1-160 127.9-160 0v-52c0-6.6-5.4-12-12-12h-152c-6.7 0-12 5.4-12 12.1.1 21.4.6 40.3 0 53.3C.1 408 136.3 504 256.9 504 377.5 504 512 408 512 257.3c-.6-12.8-.2-33 0-53.2 0-6.7-5.3-12.1-12-12.1H348.1z"},"chevron-up":{"viewBox":"0 0 448 512","path":"M240.971 130.524l194.343 194.343c9.373 9.373 9.373 24.569 0 33.941l-22.667 22.667c-9.357 9.357-24.522 9.375-33.901.04L224 227.495 69.255 381.516c-9.379 9.335-24.544 9.317-33.901-.04l-22.667-22.667c-9.373-9.373-9.373-24.569 0-33.941L207.03 130.525c9.372-9.373 24.568-9.373 33.941-.001z"},"chevron-down":{"viewBox":"0 0 448 512","path":"M207.029 381.476L12.686 187.132c-9.373-9.373-9.373-24.569 0-33.941l22.667-22.667c9.357-9.357 24.522-9.375 33.901-.04L224 284.505l154.745-154.021c9.379-9.335 24.544-9.317 33.901.04l22.667 22.667c9.373 9.373 9.373 24.569 0 33.941L240.971 381.476c-9.373 9.372-24.569 9.372-33.942 0z"},"retweet":{"viewBox":"0 0 640 512","path":"M629.657 343.598L528.971 444.284c-9.373 9.372-24.568 9.372-33.941 0L394.343 343.598c-9.373-9.373-9.373-24.569 0-33.941l10.823-10.823c9.562-9.562 25.133-9.34 34.419.492L480 342.118V160H292.451a24.005 24.005 0 0 1-16.971-7.029l-16-16C244.361 121.851 255.069 96 276.451 96H520c13.255 0 24 10.745 24 24v222.118l40.416-42.792c9.285-9.831 24.856-10.054 34.419-.492l10.823 10.823c9.372 9.372 9.372 24.569-.001 33.941zm-265.138 15.431A23.999 23.999 0 0 0 347.548 352H160V169.881l40.416 42.792c9.286 9.831 24.856 10.054 34.419.491l10.822-10.822c9.373-9.373 9.373-24.569 0-33.941L144.971 67.716c-9.373-9.373-24.569-9.373-33.941 0L10.343 168.402c-9.373 9.373-9.373 24.569 0 33.941l10.822 10.822c9.562 9.562 25.133 9.34 34.419-.491L96 169.881V392c0 13.255 10.745 24 24 24h243.549c21.382 0 32.09-25.851 16.971-40.971l-16.001-16z"},"shopping-cart":{"viewBox":"0 0 576 512","path":"M528.12 301.319l47.273-208C578.806 78.301 567.391 64 551.99 64H159.208l-9.166-44.81C147.758 8.021 137.93 0 126.529 0H24C10.745 0 0 10.745 0 24v16c0 13.255 10.745 24 24 24h69.883l70.248 343.435C147.325 417.1 136 435.222 136 456c0 30.928 25.072 56 56 56s56-25.072 56-56c0-15.674-6.447-29.835-16.824-40h209.647C430.447 426.165 424 440.326 424 456c0 30.928 25.072 56 56 56s56-25.072 56-56c0-22.172-12.888-41.332-31.579-50.405l5.517-24.276c3.413-15.018-8.002-29.319-23.403-29.319H218.117l-6.545-32h293.145c11.206 0 20.92-7.754 23.403-18.681z"},"folder":{"viewBox":"0 0 512 512","path":"M464 128H272l-64-64H48C21.49 64 0 85.49 0 112v288c0 26.51 21.49 48 48 48h416c26.51 0 48-21.49 48-48V176c0-26.51-21.49-48-48-48z"},"folder-open":{"viewBox":"0 0 576 512","path":"M572.694 292.093L500.27 416.248A63.997 63.997 0 0 1 444.989 448H45.025c-18.523 0-30.064-20.093-20.731-36.093l72.424-124.155A64 64 0 0 1 152 256h399.964c18.523 0 30.064 20.093 20.73 36.093zM152 224h328v-48c0-26.51-21.49-48-48-48H272l-64-64H48C21.49 64 0 85.49 0 112v278.046l69.077-118.418C86.214 242.25 117.989 224 152 224z"},"chart-bar":{"viewBox":"0 0 512 512","path":"M332.8 320h38.4c6.4 0 12.8-6.4 12.8-12.8V172.8c0-6.4-6.4-12.8-12.8-12.8h-38.4c-6.4 0-12.8 6.4-12.8 12.8v134.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h38.4c6.4 0 12.8-6.4 12.8-12.8V76.8c0-6.4-6.4-12.8-12.8-12.8h-38.4c-6.4 0-12.8 6.4-12.8 12.8v230.4c0 6.4 6.4 12.8 12.8 12.8zm-288 0h38.4c6.4 0 12.8-6.4 12.8-12.8v-70.4c0-6.4-6.4-12.8-12.8-12.8h-38.4c-6.4 0-12.8 6.4-12.8 12.8v70.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h38.4c6.4 0 12.8-6.4 12.8-12.8V108.8c0-6.4-6.4-12.8-12.8-12.8h-38.4c-6.4 0-12.8 6.4-12.8 12.8v198.4c0 6.4 6.4 12.8 12.8 12.8zM496 384H64V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16z"},"camera-retro":{"viewBox":"0 0 512 512","path":"M48 32C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h416c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48H48zm0 32h106c3.3 0 6 2.7 6 6v20c0 3.3-2.7 6-6 6H38c-3.3 0-6-2.7-6-6V80c0-8.8 7.2-16 16-16zm426 96H38c-3.3 0-6-2.7-6-6v-36c0-3.3 2.7-6 6-6h138l30.2-45.3c1.1-1.7 3-2.7 5-2.7H464c8.8 0 16 7.2 16 16v74c0 3.3-2.7 6-6 6zM256 424c-66.2 0-120-53.8-120-120s53.8-120 120-120 120 53.8 120 120-53.8 120-120 120zm0-208c-48.5 0-88 39.5-88 88s39.5 88 88 88 88-39.5 88-88-39.5-88-88-88zm-48 104c-8.8 0-16-7.2-16-16 0-35.3 28.7-64 64-64 8.8 0 16 7.2 16 16s-7.2 16-16 16c-17.6 0-32 14.4-32 32 0 8.8-7.2 16-16 16z"},"key":{"viewBox":"0 0 512 512","path":"M512 176.001C512 273.203 433.202 352 336 352c-11.22 0-22.19-1.062-32.827-3.069l-24.012 27.014A23.999 23.999 0 0 1 261.223 384H224v40c0 13.255-10.745 24-24 24h-40v40c0 13.255-10.745 24-24 24H24c-13.255 0-24-10.745-24-24v-78.059c0-6.365 2.529-12.47 7.029-16.971l161.802-161.802C163.108 213.814 160 195.271 160 176 160 78.798 238.797.001 335.999 0 433.488-.001 512 78.511 512 176.001zM336 128c0 26.51 21.49 48 48 48s48-21.49 48-48-21.49-48-48-48-48 21.49-48 48z"},"cogs":{"viewBox":"0 0 640 512","path":"M512.1 191l-8.2 14.3c-3 5.3-9.4 7.5-15.1 5.4-11.8-4.4-22.6-10.7-32.1-18.6-4.6-3.8-5.8-10.5-2.8-15.7l8.2-14.3c-6.9-8-12.3-17.3-15.9-27.4h-16.5c-6 0-11.2-4.3-12.2-10.3-2-12-2.1-24.6 0-37.1 1-6 6.2-10.4 12.2-10.4h16.5c3.6-10.1 9-19.4 15.9-27.4l-8.2-14.3c-3-5.2-1.9-11.9 2.8-15.7 9.5-7.9 20.4-14.2 32.1-18.6 5.7-2.1 12.1.1 15.1 5.4l8.2 14.3c10.5-1.9 21.2-1.9 31.7 0L552 6.3c3-5.3 9.4-7.5 15.1-5.4 11.8 4.4 22.6 10.7 32.1 18.6 4.6 3.8 5.8 10.5 2.8 15.7l-8.2 14.3c6.9 8 12.3 17.3 15.9 27.4h16.5c6 0 11.2 4.3 12.2 10.3 2 12 2.1 24.6 0 37.1-1 6-6.2 10.4-12.2 10.4h-16.5c-3.6 10.1-9 19.4-15.9 27.4l8.2 14.3c3 5.2 1.9 11.9-2.8 15.7-9.5 7.9-20.4 14.2-32.1 18.6-5.7 2.1-12.1-.1-15.1-5.4l-8.2-14.3c-10.4 1.9-21.2 1.9-31.7 0zm-10.5-58.8c38.5 29.6 82.4-14.3 52.8-52.8-38.5-29.7-82.4 14.3-52.8 52.8zM386.3 286.1l33.7 16.8c10.1 5.8 14.5 18.1 10.5 29.1-8.9 24.2-26.4 46.4-42.6 65.8-7.4 8.9-20.2 11.1-30.3 5.3l-29.1-16.8c-16 13.7-34.6 24.6-54.9 31.7v33.6c0 11.6-8.3 21.6-19.7 23.6-24.6 4.2-50.4 4.4-75.9 0-11.5-2-20-11.9-20-23.6V418c-20.3-7.2-38.9-18-54.9-31.7L74 403c-10 5.8-22.9 3.6-30.3-5.3-16.2-19.4-33.3-41.6-42.2-65.7-4-10.9.4-23.2 10.5-29.1l33.3-16.8c-3.9-20.9-3.9-42.4 0-63.4L12 205.8c-10.1-5.8-14.6-18.1-10.5-29 8.9-24.2 26-46.4 42.2-65.8 7.4-8.9 20.2-11.1 30.3-5.3l29.1 16.8c16-13.7 34.6-24.6 54.9-31.7V57.1c0-11.5 8.2-21.5 19.6-23.5 24.6-4.2 50.5-4.4 76-.1 11.5 2 20 11.9 20 23.6v33.6c20.3 7.2 38.9 18 54.9 31.7l29.1-16.8c10-5.8 22.9-3.6 30.3 5.3 16.2 19.4 33.2 41.6 42.1 65.8 4 10.9.1 23.2-10 29.1l-33.7 16.8c3.9 21 3.9 42.5 0 63.5zm-117.6 21.1c59.2-77-28.7-164.9-105.7-105.7-59.2 77 28.7 164.9 105.7 105.7zm243.4 182.7l-8.2 14.3c-3 5.3-9.4 7.5-15.1 5.4-11.8-4.4-22.6-10.7-32.1-18.6-4.6-3.8-5.8-10.5-2.8-15.7l8.2-14.3c-6.9-8-12.3-17.3-15.9-27.4h-16.5c-6 0-11.2-4.3-12.2-10.3-2-12-2.1-24.6 0-37.1 1-6 6.2-10.4 12.2-10.4h16.5c3.6-10.1 9-19.4 15.9-27.4l-8.2-14.3c-3-5.2-1.9-11.9 2.8-15.7 9.5-7.9 20.4-14.2 32.1-18.6 5.7-2.1 12.1.1 15.1 5.4l8.2 14.3c10.5-1.9 21.2-1.9 31.7 0l8.2-14.3c3-5.3 9.4-7.5 15.1-5.4 11.8 4.4 22.6 10.7 32.1 18.6 4.6 3.8 5.8 10.5 2.8 15.7l-8.2 14.3c6.9 8 12.3 17.3 15.9 27.4h16.5c6 0 11.2 4.3 12.2 10.3 2 12 2.1 24.6 0 37.1-1 6-6.2 10.4-12.2 10.4h-16.5c-3.6 10.1-9 19.4-15.9 27.4l8.2 14.3c3 5.2 1.9 11.9-2.8 15.7-9.5 7.9-20.4 14.2-32.1 18.6-5.7 2.1-12.1-.1-15.1-5.4l-8.2-14.3c-10.4 1.9-21.2 1.9-31.7 0zM501.6 431c38.5 29.6 82.4-14.3 52.8-52.8-38.5-29.6-82.4 14.3-52.8 52.8z"},"comments":{"viewBox":"0 0 576 512","path":"M416 192c0-88.4-93.1-160-208-160S0 103.6 0 192c0 34.3 14.1 65.9 38 92-13.4 30.2-35.5 54.2-35.8 54.5-2.2 2.3-2.8 5.7-1.5 8.7S4.8 352 8 352c36.6 0 66.9-12.3 88.7-25 32.2 15.7 70.3 25 111.3 25 114.9 0 208-71.6 208-160zm122 220c23.9-26 38-57.7 38-92 0-66.9-53.5-124.2-129.3-148.1.9 6.6 1.3 13.3 1.3 20.1 0 105.9-107.7 192-240 192-10.8 0-21.3-.8-31.7-1.9C207.8 439.6 281.8 480 368 480c41 0 79.1-9.2 111.3-25 21.8 12.7 52.1 25 88.7 25 3.2 0 6.1-1.9 7.3-4.8 1.3-2.9.7-6.3-1.5-8.7-.3-.3-22.4-24.2-35.8-54.5z"},"star-half":{"viewBox":"0 0 576 512","path":"M288 0c-11.4 0-22.8 5.9-28.7 17.8L194 150.2 47.9 171.4c-26.2 3.8-36.7 36.1-17.7 54.6l105.7 103-25 145.5c-4.5 26.1 23 46 46.4 33.7L288 439.6V0z"},"sign-out-alt":{"viewBox":"0 0 512 512","path":"M497 273L329 441c-15 15-41 4.5-41-17v-96H152c-13.3 0-24-10.7-24-24v-96c0-13.3 10.7-24 24-24h136V88c0-21.4 25.9-32 41-17l168 168c9.3 9.4 9.3 24.6 0 34zM192 436v-40c0-6.6-5.4-12-12-12H96c-17.7 0-32-14.3-32-32V160c0-17.7 14.3-32 32-32h84c6.6 0 12-5.4 12-12V76c0-6.6-5.4-12-12-12H96c-53 0-96 43-96 96v192c0 53 43 96 96 96h84c6.6 0 12-5.4 12-12z"},"thumbtack":{"viewBox":"0 0 384 512","path":"M298.028 214.267L285.793 96H328c13.255 0 24-10.745 24-24V24c0-13.255-10.745-24-24-24H56C42.745 0 32 10.745 32 24v48c0 13.255 10.745 24 24 24h42.207L85.972 214.267C37.465 236.82 0 277.261 0 328c0 13.255 10.745 24 24 24h136v104.007c0 1.242.289 2.467.845 3.578l24 48c2.941 5.882 11.364 5.893 14.311 0l24-48a8.008 8.008 0 0 0 .845-3.578V352h136c13.255 0 24-10.745 24-24-.001-51.183-37.983-91.42-85.973-113.733z"},"external-link-alt":{"viewBox":"0 0 576 512","path":"M576 24v127.984c0 21.461-25.96 31.98-40.971 16.971l-35.707-35.709-243.523 243.523c-9.373 9.373-24.568 9.373-33.941 0l-22.627-22.627c-9.373-9.373-9.373-24.569 0-33.941L442.756 76.676l-35.703-35.705C391.982 25.9 402.656 0 424.024 0H552c13.255 0 24 10.745 24 24zM407.029 270.794l-16 16A23.999 23.999 0 0 0 384 303.765V448H64V128h264a24.003 24.003 0 0 0 16.97-7.029l16-16C376.089 89.851 365.381 64 344 64H48C21.49 64 0 85.49 0 112v352c0 26.51 21.49 48 48 48h352c26.51 0 48-21.49 48-48V287.764c0-21.382-25.852-32.09-40.971-16.97z"},"sign-in-alt":{"viewBox":"0 0 512 512","path":"M416 448h-84c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h84c17.7 0 32-14.3 32-32V160c0-17.7-14.3-32-32-32h-84c-6.6 0-12-5.4-12-12V76c0-6.6 5.4-12 12-12h84c53 0 96 43 96 96v192c0 53-43 96-96 96zm-47-201L201 79c-15-15-41-4.5-41 17v96H24c-13.3 0-24 10.7-24 24v96c0 13.3 10.7 24 24 24h136v96c0 21.5 26 32 41 17l168-168c9.3-9.4 9.3-24.6 0-34z"},"trophy":{"viewBox":"0 0 576 512","path":"M552 64H448V24c0-13.3-10.7-24-24-24H152c-13.3 0-24 10.7-24 24v40H24C10.7 64 0 74.7 0 88v56c0 35.7 22.5 72.4 61.9 100.7 31.5 22.7 69.8 37.1 110 41.7C203.3 338.5 240 360 240 360v72h-48c-35.3 0-64 20.7-64 56v12c0 6.6 5.4 12 12 12h296c6.6 0 12-5.4 12-12v-12c0-35.3-28.7-56-64-56h-48v-72s36.7-21.5 68.1-73.6c40.3-4.6 78.6-19 110-41.7 39.3-28.3 61.9-65 61.9-100.7V88c0-13.3-10.7-24-24-24zM99.3 192.8C74.9 175.2 64 155.6 64 144v-16h64.2c1 32.6 5.8 61.2 12.8 86.2-15.1-5.2-29.2-12.4-41.7-21.4zM512 144c0 16.1-17.7 36.1-35.3 48.8-12.5 9-26.7 16.2-41.8 21.4 7-25 11.8-53.6 12.8-86.2H512v16z"},"upload":{"viewBox":"0 0 512 512","path":"M296 384h-80c-13.3 0-24-10.7-24-24V192h-87.7c-17.8 0-26.7-21.5-14.1-34.1L242.3 5.7c7.5-7.5 19.8-7.5 27.3 0l152.2 152.2c12.6 12.6 3.7 34.1-14.1 34.1H320v168c0 13.3-10.7 24-24 24zm216-8v112c0 13.3-10.7 24-24 24H24c-13.3 0-24-10.7-24-24V376c0-13.3 10.7-24 24-24h136v8c0 30.9 25.1 56 56 56h80c30.9 0 56-25.1 56-56v-8h136c13.3 0 24 10.7 24 24zm-124 88c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20zm64 0c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20z"},"phone":{"viewBox":"0 0 512 512","path":"M493.4 24.6l-104-24c-11.3-2.6-22.9 3.3-27.5 13.9l-48 112c-4.2 9.8-1.4 21.3 6.9 28l60.6 49.6c-36 76.7-98.9 140.5-177.2 177.2l-49.6-60.6c-6.8-8.3-18.2-11.1-28-6.9l-112 48C3.9 366.5-2 378.1.6 389.4l24 104C27.1 504.2 36.7 512 48 512c256.1 0 464-207.5 464-464 0-11.2-7.7-20.9-18.6-23.4z"},"phone-square":{"viewBox":"0 0 448 512","path":"M400 32H48C21.49 32 0 53.49 0 80v352c0 26.51 21.49 48 48 48h352c26.51 0 48-21.49 48-48V80c0-26.51-21.49-48-48-48zM94 416c-7.033 0-13.057-4.873-14.616-11.627l-14.998-65a15 15 0 0 1 8.707-17.16l69.998-29.999a15 15 0 0 1 17.518 4.289l30.997 37.885c48.944-22.963 88.297-62.858 110.781-110.78l-37.886-30.997a15.001 15.001 0 0 1-4.289-17.518l30-69.998a15 15 0 0 1 17.16-8.707l65 14.998A14.997 14.997 0 0 1 384 126c0 160.292-129.945 290-290 290z"},"unlock":{"viewBox":"0 0 448 512","path":"M400 256H152V152.9c0-39.6 31.7-72.5 71.3-72.9 40-.4 72.7 32.1 72.7 72v16c0 13.3 10.7 24 24 24h32c13.3 0 24-10.7 24-24v-16C376 68 307.5-.3 223.5 0 139.5.3 72 69.5 72 153.5V256H48c-26.5 0-48 21.5-48 48v160c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V304c0-26.5-21.5-48-48-48z"},"credit-card":{"viewBox":"0 0 576 512","path":"M0 432c0 26.5 21.5 48 48 48h480c26.5 0 48-21.5 48-48V256H0v176zm192-68c0-6.6 5.4-12 12-12h136c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12H204c-6.6 0-12-5.4-12-12v-40zm-128 0c0-6.6 5.4-12 12-12h72c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12H76c-6.6 0-12-5.4-12-12v-40zM576 80v48H0V80c0-26.5 21.5-48 48-48h480c26.5 0 48 21.5 48 48z"},"rss":{"viewBox":"0 0 448 512","path":"M128.081 415.959c0 35.369-28.672 64.041-64.041 64.041S0 451.328 0 415.959s28.672-64.041 64.041-64.041 64.04 28.673 64.04 64.041zm175.66 47.25c-8.354-154.6-132.185-278.587-286.95-286.95C7.656 175.765 0 183.105 0 192.253v48.069c0 8.415 6.49 15.472 14.887 16.018 111.832 7.284 201.473 96.702 208.772 208.772.547 8.397 7.604 14.887 16.018 14.887h48.069c9.149.001 16.489-7.655 15.995-16.79zm144.249.288C439.596 229.677 251.465 40.445 16.503 32.01 7.473 31.686 0 38.981 0 48.016v48.068c0 8.625 6.835 15.645 15.453 15.999 191.179 7.839 344.627 161.316 352.465 352.465.353 8.618 7.373 15.453 15.999 15.453h48.068c9.034-.001 16.329-7.474 16.005-16.504z"},"bullhorn":{"viewBox":"0 0 576 512","path":"M576 240c0-23.63-12.95-44.04-32-55.12V32.01C544 23.26 537.02 0 512 0c-7.12 0-14.19 2.38-19.98 7.02l-85.03 68.03C364.28 109.19 310.66 128 256 128H64c-35.35 0-64 28.65-64 64v96c0 35.35 28.65 64 64 64h33.7c-1.39 10.48-2.18 21.14-2.18 32 0 39.77 9.26 77.35 25.56 110.94 5.19 10.69 16.52 17.06 28.4 17.06h74.28c26.05 0 41.69-29.84 25.9-50.56-16.4-21.52-26.15-48.36-26.15-77.44 0-11.11 1.62-21.79 4.41-32H256c54.66 0 108.28 18.81 150.98 52.95l85.03 68.03a32.023 32.023 0 0 0 19.98 7.02c24.92 0 32-22.78 32-32V295.13C563.05 284.04 576 263.63 576 240zm-96 141.42l-33.05-26.44C392.95 311.78 325.12 288 256 288v-96c69.12 0 136.95-23.78 190.95-66.98L480 98.58v282.84z"},"bell":{"viewBox":"0 0 448 512","path":"M224 512c35.32 0 63.97-28.65 63.97-64H160.03c0 35.35 28.65 64 63.97 64zm215.39-149.71c-19.32-20.76-55.47-51.99-55.47-154.29 0-77.7-54.48-139.9-127.94-155.16V32c0-17.67-14.32-32-31.98-32s-31.98 14.33-31.98 32v20.84C118.56 68.1 64.08 130.3 64.08 208c0 102.3-36.15 133.53-55.47 154.29-6 6.45-8.66 14.16-8.61 21.71.11 16.4 12.98 32 32.1 32h383.8c19.12 0 32-15.6 32.1-32 .05-7.55-2.61-15.27-8.61-21.71z"},"certificate":{"viewBox":"0 0 512 512","path":"M458.622 255.92l45.985-45.005c13.708-12.977 7.316-36.039-10.664-40.339l-62.65-15.99 17.661-62.015c4.991-17.838-11.829-34.663-29.661-29.671l-61.994 17.667-15.984-62.671C337.085.197 313.765-6.276 300.99 7.228L256 53.57 211.011 7.229c-12.63-13.351-36.047-7.234-40.325 10.668l-15.984 62.671-61.995-17.667C74.87 57.907 58.056 74.738 63.046 92.572l17.661 62.015-62.65 15.99C.069 174.878-6.31 197.944 7.392 210.915l45.985 45.005-45.985 45.004c-13.708 12.977-7.316 36.039 10.664 40.339l62.65 15.99-17.661 62.015c-4.991 17.838 11.829 34.663 29.661 29.671l61.994-17.667 15.984 62.671c4.439 18.575 27.696 24.018 40.325 10.668L256 458.61l44.989 46.001c12.5 13.488 35.987 7.486 40.325-10.668l15.984-62.671 61.994 17.667c17.836 4.994 34.651-11.837 29.661-29.671l-17.661-62.015 62.65-15.99c17.987-4.302 24.366-27.367 10.664-40.339l-45.984-45.004z"},"hand-point-right":{"viewBox":"0 0 512 512","path":"M512 199.652c0 23.625-20.65 43.826-44.8 43.826h-99.851c16.34 17.048 18.346 49.766-6.299 70.944 14.288 22.829 2.147 53.017-16.45 62.315C353.574 425.878 322.654 448 272 448c-2.746 0-13.276-.203-16-.195-61.971.168-76.894-31.065-123.731-38.315C120.596 407.683 112 397.599 112 385.786V214.261l.002-.001c.011-18.366 10.607-35.889 28.464-43.845 28.886-12.994 95.413-49.038 107.534-77.323 7.797-18.194 21.384-29.084 40-29.092 34.222-.014 57.752 35.098 44.119 66.908-3.583 8.359-8.312 16.67-14.153 24.918H467.2c23.45 0 44.8 20.543 44.8 43.826zM96 200v192c0 13.255-10.745 24-24 24H24c-13.255 0-24-10.745-24-24V200c0-13.255 10.745-24 24-24h48c13.255 0 24 10.745 24 24zM68 368c0-11.046-8.954-20-20-20s-20 8.954-20 20 8.954 20 20 20 20-8.954 20-20z"},"hand-point-left":{"viewBox":"0 0 512 512","path":"M44.8 155.826h149.234c-5.841-8.248-10.57-16.558-14.153-24.918C166.248 99.098 189.778 63.986 224 64c18.616.008 32.203 10.897 40 29.092 12.122 28.286 78.648 64.329 107.534 77.323 17.857 7.956 28.453 25.479 28.464 43.845l.002.001v171.526c0 11.812-8.596 21.897-20.269 23.703-46.837 7.25-61.76 38.483-123.731 38.315-2.724-.007-13.254.195-16 .195-50.654 0-81.574-22.122-72.6-71.263-18.597-9.297-30.738-39.486-16.45-62.315-24.645-21.177-22.639-53.896-6.299-70.944H44.8c-24.15 0-44.8-20.201-44.8-43.826 0-23.283 21.35-43.826 44.8-43.826zM440 176h48c13.255 0 24 10.745 24 24v192c0 13.255-10.745 24-24 24h-48c-13.255 0-24-10.745-24-24V200c0-13.255 10.745-24 24-24zm24 212c11.046 0 20-8.954 20-20s-8.954-20-20-20-20 8.954-20 20 8.954 20 20 20z"},"hand-point-up":{"viewBox":"0 0 384 512","path":"M135.652 0c23.625 0 43.826 20.65 43.826 44.8v99.851c17.048-16.34 49.766-18.346 70.944 6.299 22.829-14.288 53.017-2.147 62.315 16.45C361.878 158.426 384 189.346 384 240c0 2.746-.203 13.276-.195 16 .168 61.971-31.065 76.894-38.315 123.731C343.683 391.404 333.599 400 321.786 400H150.261l-.001-.002c-18.366-.011-35.889-10.607-43.845-28.464C93.421 342.648 57.377 276.122 29.092 264 10.897 256.203.008 242.616 0 224c-.014-34.222 35.098-57.752 66.908-44.119 8.359 3.583 16.67 8.312 24.918 14.153V44.8c0-23.45 20.543-44.8 43.826-44.8zM136 416h192c13.255 0 24 10.745 24 24v48c0 13.255-10.745 24-24 24H136c-13.255 0-24-10.745-24-24v-48c0-13.255 10.745-24 24-24zm168 28c-11.046 0-20 8.954-20 20s8.954 20 20 20 20-8.954 20-20-8.954-20-20-20z"},"hand-point-down":{"viewBox":"0 0 384 512","path":"M91.826 467.2V317.966c-8.248 5.841-16.558 10.57-24.918 14.153C35.098 345.752-.014 322.222 0 288c.008-18.616 10.897-32.203 29.092-40 28.286-12.122 64.329-78.648 77.323-107.534 7.956-17.857 25.479-28.453 43.845-28.464l.001-.002h171.526c11.812 0 21.897 8.596 23.703 20.269 7.25 46.837 38.483 61.76 38.315 123.731-.007 2.724.195 13.254.195 16 0 50.654-22.122 81.574-71.263 72.6-9.297 18.597-39.486 30.738-62.315 16.45-21.177 24.645-53.896 22.639-70.944 6.299V467.2c0 24.15-20.201 44.8-43.826 44.8-23.283 0-43.826-21.35-43.826-44.8zM112 72V24c0-13.255 10.745-24 24-24h192c13.255 0 24 10.745 24 24v48c0 13.255-10.745 24-24 24H136c-13.255 0-24-10.745-24-24zm212-24c0-11.046-8.954-20-20-20s-20 8.954-20 20 8.954 20 20 20 20-8.954 20-20z"},"globe":{"viewBox":"0 0 496 512","path":"M336.5 160C322 70.7 287.8 8 248 8s-74 62.7-88.5 152h177zM152 256c0 22.2 1.2 43.5 3.3 64h185.3c2.1-20.5 3.3-41.8 3.3-64s-1.2-43.5-3.3-64H155.3c-2.1 20.5-3.3 41.8-3.3 64zm324.7-96c-28.6-67.9-86.5-120.4-158-141.6 24.4 33.8 41.2 84.7 50 141.6h108zM177.2 18.4C105.8 39.6 47.8 92.1 19.3 160h108c8.7-56.9 25.5-107.8 49.9-141.6zM487.4 192H372.7c2.1 21 3.3 42.5 3.3 64s-1.2 43-3.3 64h114.6c5.5-20.5 8.6-41.8 8.6-64s-3.1-43.5-8.5-64zM120 256c0-21.5 1.2-43 3.3-64H8.6C3.2 212.5 0 233.8 0 256s3.2 43.5 8.6 64h114.6c-2-21-3.2-42.5-3.2-64zm39.5 96c14.5 89.3 48.7 152 88.5 152s74-62.7 88.5-152h-177zm159.3 141.6c71.4-21.2 129.4-73.7 158-141.6h-108c-8.8 56.9-25.6 107.8-50 141.6zM19.3 352c28.6 67.9 86.5 120.4 158 141.6-24.4-33.8-41.2-84.7-50-141.6h-108z"},"wrench":{"viewBox":"0 0 512 512","path":"M507.73 109.1c-2.24-9.03-13.54-12.09-20.12-5.51l-74.36 74.36-67.88-11.31-11.31-67.88 74.36-74.36c6.62-6.62 3.43-17.9-5.66-20.16-47.38-11.74-99.55.91-136.58 37.93-39.64 39.64-50.55 97.1-34.05 147.2L18.74 402.76c-24.99 24.99-24.99 65.51 0 90.5 24.99 24.99 65.51 24.99 90.5 0l213.21-213.21c50.12 16.71 107.47 5.68 147.37-34.22 37.07-37.07 49.7-89.32 37.91-136.73zM64 472c-13.25 0-24-10.75-24-24 0-13.26 10.75-24 24-24s24 10.74 24 24c0 13.25-10.75 24-24 24z"},"tasks":{"viewBox":"0 0 512 512","path":"M208 132h288c8.8 0 16-7.2 16-16V76c0-8.8-7.2-16-16-16H208c-8.8 0-16 7.2-16 16v40c0 8.8 7.2 16 16 16zm0 160h288c8.8 0 16-7.2 16-16v-40c0-8.8-7.2-16-16-16H208c-8.8 0-16 7.2-16 16v40c0 8.8 7.2 16 16 16zm0 160h288c8.8 0 16-7.2 16-16v-40c0-8.8-7.2-16-16-16H208c-8.8 0-16 7.2-16 16v40c0 8.8 7.2 16 16 16zM64 368c-26.5 0-48.6 21.5-48.6 48s22.1 48 48.6 48 48-21.5 48-48-21.5-48-48-48zm92.5-299l-72.2 72.2-15.6 15.6c-4.7 4.7-12.9 4.7-17.6 0L3.5 109.4c-4.7-4.7-4.7-12.3 0-17l15.7-15.7c4.7-4.7 12.3-4.7 17 0l22.7 22.1 63.7-63.3c4.7-4.7 12.3-4.7 17 0l17 16.5c4.6 4.7 4.6 12.3-.1 17zm0 159.6l-72.2 72.2-15.7 15.7c-4.7 4.7-12.9 4.7-17.6 0L3.5 269c-4.7-4.7-4.7-12.3 0-17l15.7-15.7c4.7-4.7 12.3-4.7 17 0l22.7 22.1 63.7-63.7c4.7-4.7 12.3-4.7 17 0l17 17c4.6 4.6 4.6 12.2-.1 16.9z"},"filter":{"viewBox":"0 0 512 512","path":"M487.976 0H24.028C2.71 0-8.047 25.866 7.058 40.971L192 225.941V432c0 7.831 3.821 15.17 10.237 19.662l80 55.98C298.02 518.69 320 507.493 320 487.98V225.941l184.947-184.97C520.021 25.896 509.338 0 487.976 0z"},"briefcase":{"viewBox":"0 0 512 512","path":"M320 336c0 8.84-7.16 16-16 16h-96c-8.84 0-16-7.16-16-16v-48H0v144c0 25.6 22.4 48 48 48h416c25.6 0 48-22.4 48-48V288H320v48zm144-208h-80V80c0-25.6-22.4-48-48-48H176c-25.6 0-48 22.4-48 48v48H48c-25.6 0-48 22.4-48 48v80h512v-80c0-25.6-22.4-48-48-48zm-144 0H192V96h128v32z"},"arrows-alt":{"viewBox":"0 0 512 512","path":"M352.201 425.775l-79.196 79.196c-9.373 9.373-24.568 9.373-33.941 0l-79.196-79.196c-15.119-15.119-4.411-40.971 16.971-40.97h51.162L228 284H127.196v51.162c0 21.382-25.851 32.09-40.971 16.971L7.029 272.937c-9.373-9.373-9.373-24.569 0-33.941L86.225 159.8c15.119-15.119 40.971-4.411 40.971 16.971V228H228V127.196h-51.23c-21.382 0-32.09-25.851-16.971-40.971l79.196-79.196c9.373-9.373 24.568-9.373 33.941 0l79.196 79.196c15.119 15.119 4.411 40.971-16.971 40.971h-51.162V228h100.804v-51.162c0-21.382 25.851-32.09 40.97-16.971l79.196 79.196c9.373 9.373 9.373 24.569 0 33.941L425.773 352.2c-15.119 15.119-40.971 4.411-40.97-16.971V284H284v100.804h51.23c21.382 0 32.09 25.851 16.971 40.971z"},"users":{"viewBox":"0 0 640 512","path":"M96 224c35.3 0 64-28.7 64-64s-28.7-64-64-64-64 28.7-64 64 28.7 64 64 64zm448 0c35.3 0 64-28.7 64-64s-28.7-64-64-64-64 28.7-64 64 28.7 64 64 64zm32 32h-64c-17.6 0-33.5 7.1-45.1 18.6 40.3 22.1 68.9 62 75.1 109.4h66c17.7 0 32-14.3 32-32v-32c0-35.3-28.7-64-64-64zm-256 0c61.9 0 112-50.1 112-112S381.9 32 320 32 208 82.1 208 144s50.1 112 112 112zm76.8 32h-8.3c-20.8 10-43.9 16-68.5 16s-47.6-6-68.5-16h-8.3C179.6 288 128 339.6 128 403.2V432c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48v-28.8c0-63.6-51.6-115.2-115.2-115.2zm-223.7-13.4C161.5 263.1 145.6 256 128 256H64c-35.3 0-64 28.7-64 64v32c0 17.7 14.3 32 32 32h65.9c6.3-47.4 34.9-87.3 75.2-109.4z"},"link":{"viewBox":"0 0 512 512","path":"M326.612 185.391c59.747 59.809 58.927 155.698.36 214.59-.11.12-.24.25-.36.37l-67.2 67.2c-59.27 59.27-155.699 59.262-214.96 0-59.27-59.26-59.27-155.7 0-214.96l37.106-37.106c9.84-9.84 26.786-3.3 27.294 10.606.648 17.722 3.826 35.527 9.69 52.721 1.986 5.822.567 12.262-3.783 16.612l-13.087 13.087c-28.026 28.026-28.905 73.66-1.155 101.96 28.024 28.579 74.086 28.749 102.325.51l67.2-67.19c28.191-28.191 28.073-73.757 0-101.83-3.701-3.694-7.429-6.564-10.341-8.569a16.037 16.037 0 0 1-6.947-12.606c-.396-10.567 3.348-21.456 11.698-29.806l21.054-21.055c5.521-5.521 14.182-6.199 20.584-1.731a152.482 152.482 0 0 1 20.522 17.197zM467.547 44.449c-59.261-59.262-155.69-59.27-214.96 0l-67.2 67.2c-.12.12-.25.25-.36.37-58.566 58.892-59.387 154.781.36 214.59a152.454 152.454 0 0 0 20.521 17.196c6.402 4.468 15.064 3.789 20.584-1.731l21.054-21.055c8.35-8.35 12.094-19.239 11.698-29.806a16.037 16.037 0 0 0-6.947-12.606c-2.912-2.005-6.64-4.875-10.341-8.569-28.073-28.073-28.191-73.639 0-101.83l67.2-67.19c28.239-28.239 74.3-28.069 102.325.51 27.75 28.3 26.872 73.934-1.155 101.96l-13.087 13.087c-4.35 4.35-5.769 10.79-3.783 16.612 5.864 17.194 9.042 34.999 9.69 52.721.509 13.906 17.454 20.446 27.294 10.606l37.106-37.106c59.271-59.259 59.271-155.699.001-214.959z"},"cloud":{"viewBox":"0 0 640 512","path":"M537.6 226.6c4.1-10.7 6.4-22.4 6.4-34.6 0-53-43-96-96-96-19.7 0-38.1 6-53.3 16.2C367 64.2 315.3 32 256 32c-88.4 0-160 71.6-160 160 0 2.7.1 5.4.2 8.1C40.2 219.8 0 273.2 0 336c0 79.5 64.5 144 144 144h368c70.7 0 128-57.3 128-128 0-61.9-44-113.6-102.4-125.4z"},"flask":{"viewBox":"0 0 448 512","path":"M437.2 403.5L320 215V64h8c13.3 0 24-10.7 24-24V24c0-13.3-10.7-24-24-24H120c-13.3 0-24 10.7-24 24v16c0 13.3 10.7 24 24 24h8v151L10.8 403.5C-18.5 450.6 15.3 512 70.9 512h306.2c55.7 0 89.4-61.5 60.1-108.5zM137.9 320l48.2-77.6c3.7-5.2 5.8-11.6 5.8-18.4V64h64v160c0 6.9 2.2 13.2 5.8 18.4l48.2 77.6h-172z"},"cut":{"viewBox":"0 0 448 512","path":"M278.06 256L444.48 89.57c4.69-4.69 4.69-12.29 0-16.97-32.8-32.8-85.99-32.8-118.79 0L210.18 188.12l-24.86-24.86c4.31-10.92 6.68-22.81 6.68-35.26 0-53.02-42.98-96-96-96S0 74.98 0 128s42.98 96 96 96c4.54 0 8.99-.32 13.36-.93L142.29 256l-32.93 32.93c-4.37-.61-8.83-.93-13.36-.93-53.02 0-96 42.98-96 96s42.98 96 96 96 96-42.98 96-96c0-12.45-2.37-24.34-6.68-35.26l24.86-24.86L325.69 439.4c32.8 32.8 85.99 32.8 118.79 0 4.69-4.68 4.69-12.28 0-16.97L278.06 256zM96 160c-17.64 0-32-14.36-32-32s14.36-32 32-32 32 14.36 32 32-14.36 32-32 32zm0 256c-17.64 0-32-14.36-32-32s14.36-32 32-32 32 14.36 32 32-14.36 32-32 32z"},"copy":{"viewBox":"0 0 448 512","path":"M320 448v40c0 13.255-10.745 24-24 24H24c-13.255 0-24-10.745-24-24V120c0-13.255 10.745-24 24-24h72v296c0 30.879 25.121 56 56 56h168zm0-344V0H152c-13.255 0-24 10.745-24 24v368c0 13.255 10.745 24 24 24h272c13.255 0 24-10.745 24-24V128H344c-13.2 0-24-10.8-24-24zm120.971-31.029L375.029 7.029A24 24 0 0 0 358.059 0H352v96h96v-6.059a24 24 0 0 0-7.029-16.97z"},"paperclip":{"viewBox":"0 0 448 512","path":"M43.246 466.142c-58.43-60.289-57.341-157.511 1.386-217.581L254.392 34c44.316-45.332 116.351-45.336 160.671 0 43.89 44.894 43.943 117.329 0 162.276L232.214 383.128c-29.855 30.537-78.633 30.111-107.982-.998-28.275-29.97-27.368-77.473 1.452-106.953l143.743-146.835c6.182-6.314 16.312-6.422 22.626-.241l22.861 22.379c6.315 6.182 6.422 16.312.241 22.626L171.427 319.927c-4.932 5.045-5.236 13.428-.648 18.292 4.372 4.634 11.245 4.711 15.688.165l182.849-186.851c19.613-20.062 19.613-52.725-.011-72.798-19.189-19.627-49.957-19.637-69.154 0L90.39 293.295c-34.763 35.56-35.299 93.12-1.191 128.313 34.01 35.093 88.985 35.137 123.058.286l172.06-175.999c6.177-6.319 16.307-6.433 22.626-.256l22.877 22.364c6.319 6.177 6.434 16.307.256 22.626l-172.06 175.998c-59.576 60.938-155.943 60.216-214.77-.485z"},"save":{"viewBox":"0 0 448 512","path":"M433.941 129.941l-83.882-83.882A48 48 0 0 0 316.118 32H48C21.49 32 0 53.49 0 80v352c0 26.51 21.49 48 48 48h352c26.51 0 48-21.49 48-48V163.882a48 48 0 0 0-14.059-33.941zM224 416c-35.346 0-64-28.654-64-64 0-35.346 28.654-64 64-64s64 28.654 64 64c0 35.346-28.654 64-64 64zm96-304.52V212c0 6.627-5.373 12-12 12H76c-6.627 0-12-5.373-12-12V108c0-6.627 5.373-12 12-12h228.52c3.183 0 6.235 1.264 8.485 3.515l3.48 3.48A11.996 11.996 0 0 1 320 111.48z"},"square":{"viewBox":"0 0 448 512","path":"M400 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48z"},"bars":{"viewBox":"0 0 448 512","path":"M16 132h416c8.837 0 16-7.163 16-16V76c0-8.837-7.163-16-16-16H16C7.163 60 0 67.163 0 76v40c0 8.837 7.163 16 16 16zm0 160h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16z"},"list-ul":{"viewBox":"0 0 512 512","path":"M96 96c0 26.51-21.49 48-48 48S0 122.51 0 96s21.49-48 48-48 48 21.49 48 48zM48 208c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48zm0 160c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48zm96-236h352c8.837 0 16-7.163 16-16V76c0-8.837-7.163-16-16-16H144c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h352c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H144c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h352c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H144c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16z"},"list-ol":{"viewBox":"0 0 512 512","path":"M3.263 139.527c0-7.477 3.917-11.572 11.573-11.572h15.131V88.078c0-5.163.534-10.503.534-10.503h-.356s-1.779 2.67-2.848 3.738c-4.451 4.273-10.504 4.451-15.666-1.068l-5.518-6.231c-5.342-5.341-4.984-11.216.534-16.379l21.72-19.938C32.815 33.602 36.732 32 42.785 32H54.89c7.656 0 11.749 3.916 11.749 11.572v84.384h15.488c7.655 0 11.572 4.094 11.572 11.572v8.901c0 7.477-3.917 11.572-11.572 11.572H14.836c-7.656 0-11.573-4.095-11.573-11.572v-8.902zM2.211 304.591c0-47.278 50.955-56.383 50.955-69.165 0-7.18-5.954-8.755-9.28-8.755-3.153 0-6.479 1.051-9.455 3.852-5.079 4.903-10.507 7.004-16.111 2.451l-8.579-6.829c-5.779-4.553-7.18-9.805-2.803-15.409C13.592 201.981 26.025 192 47.387 192c19.437 0 44.476 10.506 44.476 39.573 0 38.347-46.753 46.402-48.679 56.909h39.049c7.529 0 11.557 4.027 11.557 11.382v8.755c0 7.354-4.028 11.382-11.557 11.382h-67.94c-7.005 0-12.083-4.028-12.083-11.382v-4.028zM5.654 454.61l5.603-9.28c3.853-6.654 9.105-7.004 15.584-3.152 4.903 2.101 9.63 3.152 14.359 3.152 10.155 0 14.358-3.502 14.358-8.23 0-6.654-5.604-9.106-15.934-9.106h-4.728c-5.954 0-9.28-2.101-12.258-7.88l-1.05-1.926c-2.451-4.728-1.226-9.806 2.801-14.884l5.604-7.004c6.829-8.405 12.257-13.483 12.257-13.483v-.35s-4.203 1.051-12.608 1.051H16.685c-7.53 0-11.383-4.028-11.383-11.382v-8.755c0-7.53 3.853-11.382 11.383-11.382h58.484c7.529 0 11.382 4.027 11.382 11.382v3.327c0 5.778-1.401 9.806-5.079 14.183l-17.509 20.137c19.611 5.078 28.716 20.487 28.716 34.845 0 21.363-14.358 44.126-48.503 44.126-16.636 0-28.192-4.728-35.896-9.455-5.779-4.202-6.304-9.805-2.626-15.934zM144 132h352c8.837 0 16-7.163 16-16V76c0-8.837-7.163-16-16-16H144c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h352c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H144c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h352c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H144c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16z"},"strikethrough":{"viewBox":"0 0 512 512","path":"M496 288H16c-8.837 0-16-7.163-16-16v-32c0-8.837 7.163-16 16-16h480c8.837 0 16 7.163 16 16v32c0 8.837-7.163 16-16 16zm-214.666 16c27.258 12.937 46.524 28.683 46.524 56.243 0 33.108-28.977 53.676-75.621 53.676-32.325 0-76.874-12.08-76.874-44.271V368c0-8.837-7.164-16-16-16H113.75c-8.836 0-16 7.163-16 16v19.204c0 66.845 77.717 101.82 154.487 101.82 88.578 0 162.013-45.438 162.013-134.424 0-19.815-3.618-36.417-10.143-50.6H281.334zm-30.952-96c-32.422-13.505-56.836-28.946-56.836-59.683 0-33.92 30.901-47.406 64.962-47.406 42.647 0 64.962 16.593 64.962 32.985V136c0 8.837 7.164 16 16 16h45.613c8.836 0 16-7.163 16-16v-30.318c0-52.438-71.725-79.875-142.575-79.875-85.203 0-150.726 40.972-150.726 125.646 0 22.71 4.665 41.176 12.777 56.547h129.823z"},"underline":{"viewBox":"0 0 448 512","path":"M224.264 388.24c-91.669 0-156.603-51.165-156.603-151.392V64H39.37c-8.837 0-16-7.163-16-16V16c0-8.837 7.163-16 16-16h137.39c8.837 0 16 7.163 16 16v32c0 8.837-7.163 16-16 16h-28.813v172.848c0 53.699 28.314 79.444 76.317 79.444 46.966 0 75.796-25.434 75.796-79.965V64h-28.291c-8.837 0-16-7.163-16-16V16c0-8.837 7.163-16 16-16h136.868c8.837 0 16 7.163 16 16v32c0 8.837-7.163 16-16 16h-28.291v172.848c0 99.405-64.881 151.392-156.082 151.392zM16 448h416c8.837 0 16 7.163 16 16v32c0 8.837-7.163 16-16 16H16c-8.837 0-16-7.163-16-16v-32c0-8.837 7.163-16 16-16z"},"table":{"viewBox":"0 0 512 512","path":"M464 32H48C21.49 32 0 53.49 0 80v352c0 26.51 21.49 48 48 48h416c26.51 0 48-21.49 48-48V80c0-26.51-21.49-48-48-48zM224 416H64v-96h160v96zm0-160H64v-96h160v96zm224 160H288v-96h160v96zm0-160H288v-96h160v96z"},"magic":{"viewBox":"0 0 512 512","path":"M224 96l16-32 32-16-32-16-16-32-16 32-32 16 32 16 16 32zM80 160l26.66-53.33L160 80l-53.34-26.67L80 0 53.34 53.33 0 80l53.34 26.67L80 160zm352 128l-26.66 53.33L352 368l53.34 26.67L432 448l26.66-53.33L512 368l-53.34-26.67L432 288zm70.62-193.77L417.77 9.38C411.53 3.12 403.34 0 395.15 0c-8.19 0-16.38 3.12-22.63 9.38L9.38 372.52c-12.5 12.5-12.5 32.76 0 45.25l84.85 84.85c6.25 6.25 14.44 9.37 22.62 9.37 8.19 0 16.38-3.12 22.63-9.37l363.14-363.15c12.5-12.48 12.5-32.75 0-45.24zM359.45 203.46l-50.91-50.91 86.6-86.6 50.91 50.91-86.6 86.6z"},"truck":{"viewBox":"0 0 640 512","path":"M624 352h-16V243.9c0-12.7-5.1-24.9-14.1-33.9L494 110.1c-9-9-21.2-14.1-33.9-14.1H416V48c0-26.5-21.5-48-48-48H48C21.5 0 0 21.5 0 48v320c0 26.5 21.5 48 48 48h16c0 53 43 96 96 96s96-43 96-96h128c0 53 43 96 96 96s96-43 96-96h48c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16zM160 464c-26.5 0-48-21.5-48-48s21.5-48 48-48 48 21.5 48 48-21.5 48-48 48zm320 0c-26.5 0-48-21.5-48-48s21.5-48 48-48 48 21.5 48 48-21.5 48-48 48zm80-208H416V144h44.1l99.9 99.9V256z"},"money-bill-alt":{"viewBox":"0 0 640 512","path":"M352 288h-16v-88c0-4.42-3.58-8-8-8h-13.58c-4.74 0-9.37 1.4-13.31 4.03l-15.33 10.22a7.994 7.994 0 0 0-2.22 11.09l8.88 13.31a7.994 7.994 0 0 0 11.09 2.22l.47-.31V288h-16c-4.42 0-8 3.58-8 8v16c0 4.42 3.58 8 8 8h64c4.42 0 8-3.58 8-8v-16c0-4.42-3.58-8-8-8zM608 64H32C14.33 64 0 78.33 0 96v320c0 17.67 14.33 32 32 32h576c17.67 0 32-14.33 32-32V96c0-17.67-14.33-32-32-32zM48 400v-64c35.35 0 64 28.65 64 64H48zm0-224v-64h64c0 35.35-28.65 64-64 64zm272 192c-53.02 0-96-50.15-96-112 0-61.86 42.98-112 96-112s96 50.14 96 112c0 61.87-43 112-96 112zm272 32h-64c0-35.35 28.65-64 64-64v64zm0-224c-35.35 0-64-28.65-64-64h64v64z"},"caret-down":{"viewBox":"0 0 320 512","path":"M31.3 192h257.3c17.8 0 26.7 21.5 14.1 34.1L174.1 354.8c-7.8 7.8-20.5 7.8-28.3 0L17.2 226.1C4.6 213.5 13.5 192 31.3 192z"},"caret-up":{"viewBox":"0 0 320 512","path":"M288.662 352H31.338c-17.818 0-26.741-21.543-14.142-34.142l128.662-128.662c7.81-7.81 20.474-7.81 28.284 0l128.662 128.662c12.6 12.599 3.676 34.142-14.142 34.142z"},"caret-left":{"viewBox":"0 0 192 512","path":"M192 127.338v257.324c0 17.818-21.543 26.741-34.142 14.142L29.196 270.142c-7.81-7.81-7.81-20.474 0-28.284l128.662-128.662c12.599-12.6 34.142-3.676 34.142 14.142z"},"caret-right":{"viewBox":"0 0 192 512","path":"M0 384.662V127.338c0-17.818 21.543-26.741 34.142-14.142l128.662 128.662c7.81 7.81 7.81 20.474 0 28.284L34.142 398.804C21.543 411.404 0 402.48 0 384.662z"},"columns":{"viewBox":"0 0 512 512","path":"M464 32H48C21.49 32 0 53.49 0 80v352c0 26.51 21.49 48 48 48h416c26.51 0 48-21.49 48-48V80c0-26.51-21.49-48-48-48zM224 416H64V160h160v256zm224 0H288V160h160v256z"},"sort":{"viewBox":"0 0 320 512","path":"M41 288h238c21.4 0 32.1 25.9 17 41L177 448c-9.4 9.4-24.6 9.4-33.9 0L24 329c-15.1-15.1-4.4-41 17-41zm255-105L177 64c-9.4-9.4-24.6-9.4-33.9 0L24 183c-15.1 15.1-4.4 41 17 41h238c21.4 0 32.1-25.9 17-41z"},"sort-down":{"viewBox":"0 0 320 512","path":"M41 288h238c21.4 0 32.1 25.9 17 41L177 448c-9.4 9.4-24.6 9.4-33.9 0L24 329c-15.1-15.1-4.4-41 17-41z"},"sort-up":{"viewBox":"0 0 320 512","path":"M279 224H41c-21.4 0-32.1-25.9-17-41L143 64c9.4-9.4 24.6-9.4 33.9 0l119 119c15.2 15.1 4.5 41-16.9 41z"},"envelope":{"viewBox":"0 0 512 512","path":"M502.3 190.8c3.9-3.1 9.7-.2 9.7 4.7V400c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V195.6c0-5 5.7-7.8 9.7-4.7 22.4 17.4 52.1 39.5 154.1 113.6 21.1 15.4 56.7 47.8 92.2 47.6 35.7.3 72-32.8 92.3-47.6 102-74.1 131.6-96.3 154-113.7zM256 320c23.2.4 56.6-29.2 73.4-41.4 132.7-96.3 142.8-104.7 173.4-128.7 5.8-4.5 9.2-11.5 9.2-18.9v-19c0-26.5-21.5-48-48-48H48C21.5 64 0 85.5 0 112v19c0 7.4 3.4 14.3 9.2 18.9 30.6 23.9 40.7 32.4 173.4 128.7 16.8 12.2 50.2 41.8 73.4 41.4z"},"undo":{"viewBox":"0 0 512 512","path":"M212.333 224.333H12c-6.627 0-12-5.373-12-12V12C0 5.373 5.373 0 12 0h48c6.627 0 12 5.373 12 12v78.112C117.773 39.279 184.26 7.47 258.175 8.007c136.906.994 246.448 111.623 246.157 248.532C504.041 393.258 393.12 504 256.333 504c-64.089 0-122.496-24.313-166.51-64.215-5.099-4.622-5.334-12.554-.467-17.42l33.967-33.967c4.474-4.474 11.662-4.717 16.401-.525C170.76 415.336 211.58 432 256.333 432c97.268 0 176-78.716 176-176 0-97.267-78.716-176-176-176-58.496 0-110.28 28.476-142.274 72.333h98.274c6.627 0 12 5.373 12 12v48c0 6.627-5.373 12-12 12z"},"gavel":{"viewBox":"0 0 512 512","path":"M504.971 199.362l-22.627-22.627c-9.373-9.373-24.569-9.373-33.941 0l-5.657 5.657L329.608 69.255l5.657-5.657c9.373-9.373 9.373-24.569 0-33.941L312.638 7.029c-9.373-9.373-24.569-9.373-33.941 0L154.246 131.48c-9.373 9.373-9.373 24.569 0 33.941l22.627 22.627c9.373 9.373 24.569 9.373 33.941 0l5.657-5.657 39.598 39.598-81.04 81.04-5.657-5.657c-12.497-12.497-32.758-12.497-45.255 0L9.373 412.118c-12.497 12.497-12.497 32.758 0 45.255l45.255 45.255c12.497 12.497 32.758 12.497 45.255 0l114.745-114.745c12.497-12.497 12.497-32.758 0-45.255l-5.657-5.657 81.04-81.04 39.598 39.598-5.657 5.657c-9.373 9.373-9.373 24.569 0 33.941l22.627 22.627c9.373 9.373 24.569 9.373 33.941 0l124.451-124.451c9.372-9.372 9.372-24.568 0-33.941z"},"tachometer-alt":{"viewBox":"0 0 576 512","path":"M288 32C128.94 32 0 160.94 0 320c0 52.8 14.25 102.26 39.06 144.8 5.61 9.62 16.3 15.2 27.44 15.2h443c11.14 0 21.83-5.58 27.44-15.2C561.75 422.26 576 372.8 576 320c0-159.06-128.94-288-288-288zm0 64c14.71 0 26.58 10.13 30.32 23.65-1.11 2.26-2.64 4.23-3.45 6.67l-9.22 27.67c-5.13 3.49-10.97 6.01-17.64 6.01-17.67 0-32-14.33-32-32S270.33 96 288 96zM96 384c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm48-160c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm246.77-72.41l-61.33 184C343.13 347.33 352 364.54 352 384c0 11.72-3.38 22.55-8.88 32H232.88c-5.5-9.45-8.88-20.28-8.88-32 0-33.94 26.5-61.43 59.9-63.59l61.34-184.01c4.17-12.56 17.73-19.45 30.36-15.17 12.57 4.19 19.35 17.79 15.17 30.36zm14.66 57.2l15.52-46.55c3.47-1.29 7.13-2.23 11.05-2.23 17.67 0 32 14.33 32 32s-14.33 32-32 32c-11.38-.01-20.89-6.28-26.57-15.22zM480 384c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32z"},"bolt":{"viewBox":"0 0 320 512","path":"M296 160H180.6l42.6-129.8C227.2 15 215.7 0 200 0H56C44 0 33.8 8.9 32.2 20.8l-32 240C-1.7 275.2 9.5 288 24 288h118.7L96.6 482.5c-3.6 15.2 8 29.5 23.3 29.5 8.4 0 16.4-4.4 20.8-12l176-304c9.3-15.9-2.2-36-20.7-36z"},"sitemap":{"viewBox":"0 0 640 512","path":"M128 352H32c-17.67 0-32 14.33-32 32v96c0 17.67 14.33 32 32 32h96c17.67 0 32-14.33 32-32v-96c0-17.67-14.33-32-32-32zm-24-80h192v48h48v-48h192v48h48v-57.59c0-21.17-17.23-38.41-38.41-38.41H344v-64h40c17.67 0 32-14.33 32-32V32c0-17.67-14.33-32-32-32H256c-17.67 0-32 14.33-32 32v96c0 17.67 14.33 32 32 32h40v64H94.41C73.23 224 56 241.23 56 262.41V320h48v-48zm264 80h-96c-17.67 0-32 14.33-32 32v96c0 17.67 14.33 32 32 32h96c17.67 0 32-14.33 32-32v-96c0-17.67-14.33-32-32-32zm240 0h-96c-17.67 0-32 14.33-32 32v96c0 17.67 14.33 32 32 32h96c17.67 0 32-14.33 32-32v-96c0-17.67-14.33-32-32-32z"},"umbrella":{"viewBox":"0 0 576 512","path":"M575.7 280.8C547.1 144.5 437.3 62.6 320 49.9V32c0-17.7-14.3-32-32-32s-32 14.3-32 32v17.9C138.3 62.6 29.5 144.5.3 280.8c-2.2 10.1 8.5 21.3 18.7 11.4 52-55 107.7-52.4 158.6 37 5.3 9.5 14.9 8.6 19.7 0 20.2-35.4 44.9-73.2 90.7-73.2 58.5 0 88.2 68.8 90.7 73.2 4.8 8.6 14.4 9.5 19.7 0 51-89.5 107.1-91.4 158.6-37 10.3 10 20.9-1.3 18.7-11.4zM256 301.7V432c0 8.8-7.2 16-16 16-7.8 0-13.2-5.3-15.1-10.7-5.9-16.7-24.1-25.4-40.8-19.5-16.7 5.9-25.4 24.2-19.5 40.8 11.2 31.9 41.6 53.3 75.4 53.3 44.1 0 80-35.9 80-80V301.6c-9.1-7.9-19.8-13.6-32-13.6-12.3.1-22.4 4.8-32 13.7z"},"clipboard":{"viewBox":"0 0 384 512","path":"M384 112v352c0 26.51-21.49 48-48 48H48c-26.51 0-48-21.49-48-48V112c0-26.51 21.49-48 48-48h80c0-35.29 28.71-64 64-64s64 28.71 64 64h80c26.51 0 48 21.49 48 48zM192 40c-13.255 0-24 10.745-24 24s10.745 24 24 24 24-10.745 24-24-10.745-24-24-24m96 114v-20a6 6 0 0 0-6-6H102a6 6 0 0 0-6 6v20a6 6 0 0 0 6 6h180a6 6 0 0 0 6-6z"},"exchange-alt":{"viewBox":"0 0 512 512","path":"M0 168v-16c0-13.255 10.745-24 24-24h360V80c0-21.367 25.899-32.042 40.971-16.971l80 80c9.372 9.373 9.372 24.569 0 33.941l-80 80C409.956 271.982 384 261.456 384 240v-48H24c-13.255 0-24-10.745-24-24zm488 152H128v-48c0-21.314-25.862-32.08-40.971-16.971l-80 80c-9.372 9.373-9.372 24.569 0 33.941l80 80C102.057 463.997 128 453.437 128 432v-48h360c13.255 0 24-10.745 24-24v-16c0-13.255-10.745-24-24-24z"},"cloud-download-alt":{"viewBox":"0 0 640 512","path":"M537.6 226.6c4.1-10.7 6.4-22.4 6.4-34.6 0-53-43-96-96-96-19.7 0-38.1 6-53.3 16.2C367 64.2 315.3 32 256 32c-88.4 0-160 71.6-160 160 0 2.7.1 5.4.2 8.1C40.2 219.8 0 273.2 0 336c0 79.5 64.5 144 144 144h368c70.7 0 128-57.3 128-128 0-61.9-44-113.6-102.4-125.4zm-132.9 88.7L299.3 420.7c-6.2 6.2-16.4 6.2-22.6 0L171.3 315.3c-10.1-10.1-2.9-27.3 11.3-27.3H248V176c0-8.8 7.2-16 16-16h48c8.8 0 16 7.2 16 16v112h65.4c14.2 0 21.4 17.2 11.3 27.3z"},"cloud-upload-alt":{"viewBox":"0 0 640 512","path":"M537.6 226.6c4.1-10.7 6.4-22.4 6.4-34.6 0-53-43-96-96-96-19.7 0-38.1 6-53.3 16.2C367 64.2 315.3 32 256 32c-88.4 0-160 71.6-160 160 0 2.7.1 5.4.2 8.1C40.2 219.8 0 273.2 0 336c0 79.5 64.5 144 144 144h368c70.7 0 128-57.3 128-128 0-61.9-44-113.6-102.4-125.4zM393.4 288H328v112c0 8.8-7.2 16-16 16h-48c-8.8 0-16-7.2-16-16V288h-65.4c-14.3 0-21.4-17.2-11.3-27.3l105.4-105.4c6.2-6.2 16.4-6.2 22.6 0l105.4 105.4c10.1 10.1 2.9 27.3-11.3 27.3z"},"user-md":{"viewBox":"0 0 448 512","path":"M224 256c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zM104 424c0 13.3 10.7 24 24 24s24-10.7 24-24-10.7-24-24-24-24 10.7-24 24zm216-135.4v49c36.5 7.4 64 39.8 64 78.4v41.7c0 7.6-5.4 14.2-12.9 15.7l-32.2 6.4c-4.3.9-8.5-1.9-9.4-6.3l-3.1-15.7c-.9-4.3 1.9-8.6 6.3-9.4l19.3-3.9V416c0-62.8-96-65.1-96 1.9v26.7l19.3 3.9c4.3.9 7.1 5.1 6.3 9.4l-3.1 15.7c-.9 4.3-5.1 7.1-9.4 6.3l-31.2-4.2c-7.9-1.1-13.8-7.8-13.8-15.9V416c0-38.6 27.5-70.9 64-78.4v-45.2c-2.2.7-4.4 1.1-6.6 1.9-18 6.3-37.3 9.8-57.4 9.8s-39.4-3.5-57.4-9.8c-7.4-2.6-14.9-4.2-22.6-5.2v81.6c23.1 6.9 40 28.1 40 53.4 0 30.9-25.1 56-56 56s-56-25.1-56-56c0-25.3 16.9-46.5 40-53.4v-80.4C48.5 301 0 355.8 0 422.4v44.8C0 491.9 20.1 512 44.8 512h358.4c24.7 0 44.8-20.1 44.8-44.8v-44.8c0-72-56.8-130.3-128-133.8z"},"stethoscope":{"viewBox":"0 0 512 512","path":"M447.1 112c-34.2.5-62.3 28.4-63 62.6-.5 24.3 12.5 45.6 32 56.8V344c0 57.3-50.2 104-112 104-60 0-109.2-44.1-111.9-99.2C265 333.8 320 269.2 320 192V36.6c0-11.4-8.1-21.3-19.3-23.5L237.8.5c-13-2.6-25.6 5.8-28.2 18.8L206.4 35c-2.6 13 5.8 25.6 18.8 28.2l30.7 6.1v121.4c0 52.9-42.2 96.7-95.1 97.2-53.4.5-96.9-42.7-96.9-96V69.4l30.7-6.1c13-2.6 21.4-15.2 18.8-28.2l-3.1-15.7C107.7 6.4 95.1-2 82.1.6L19.3 13C8.1 15.3 0 25.1 0 36.6V192c0 77.3 55.1 142 128.1 156.8C130.7 439.2 208.6 512 304 512c97 0 176-75.4 176-168V231.4c19.1-11.1 32-31.7 32-55.4 0-35.7-29.2-64.5-64.9-64zm.9 80c-8.8 0-16-7.2-16-16s7.2-16 16-16 16 7.2 16 16-7.2 16-16 16z"},"suitcase":{"viewBox":"0 0 512 512","path":"M128 480h256V80c0-26.5-21.5-48-48-48H176c-26.5 0-48 21.5-48 48v400zm64-384h128v32H192V96zm320 80v256c0 26.5-21.5 48-48 48h-48V128h48c26.5 0 48 21.5 48 48zM96 480H48c-26.5 0-48-21.5-48-48V176c0-26.5 21.5-48 48-48h48v352z"},"coffee":{"viewBox":"0 0 640 512","path":"M192 384h192c53 0 96-43 96-96h32c70.6 0 128-57.4 128-128S582.6 32 512 32H120c-13.3 0-24 10.7-24 24v232c0 53 43 96 96 96zM512 96c35.3 0 64 28.7 64 64s-28.7 64-64 64h-32V96h32zm47.7 384H48.3c-47.6 0-61-64-36-64h583.3c25 0 11.8 64-35.9 64z"},"utensils":{"viewBox":"0 0 416 512","path":"M207.9 15.2c.8 4.7 16.1 94.5 16.1 128.8 0 52.3-27.8 89.6-68.9 104.6L168 486.7c.7 13.7-10.2 25.3-24 25.3H80c-13.7 0-24.7-11.5-24-25.3l12.9-238.1C27.7 233.6 0 196.2 0 144 0 109.6 15.3 19.9 16.1 15.2 19.3-5.1 61.4-5.4 64 16.3v141.2c1.3 3.4 15.1 3.2 16 0 1.4-25.3 7.9-139.2 8-141.8 3.3-20.8 44.7-20.8 47.9 0 .2 2.7 6.6 116.5 8 141.8.9 3.2 14.8 3.4 16 0V16.3c2.6-21.6 44.8-21.4 48-1.1zm119.2 285.7l-15 185.1c-1.2 14 9.9 26 23.9 26h56c13.3 0 24-10.7 24-24V24c0-13.2-10.7-24-24-24-82.5 0-221.4 178.5-64.9 300.9z"},"file-alt":{"viewBox":"0 0 384 512","path":"M224 136V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zm64 236c0 6.6-5.4 12-12 12H108c-6.6 0-12-5.4-12-12v-8c0-6.6 5.4-12 12-12h168c6.6 0 12 5.4 12 12v8zm0-64c0 6.6-5.4 12-12 12H108c-6.6 0-12-5.4-12-12v-8c0-6.6 5.4-12 12-12h168c6.6 0 12 5.4 12 12v8zm0-72v8c0 6.6-5.4 12-12 12H108c-6.6 0-12-5.4-12-12v-8c0-6.6 5.4-12 12-12h168c6.6 0 12 5.4 12 12zm96-114.1v6.1H256V0h6.1c6.4 0 12.5 2.5 17 7l97.9 98c4.5 4.5 7 10.6 7 16.9z"},"ambulance":{"viewBox":"0 0 640 512","path":"M624 352h-16V243.9c0-12.7-5.1-24.9-14.1-33.9L494 110.1c-9-9-21.2-14.1-33.9-14.1H416V48c0-26.5-21.5-48-48-48H48C21.5 0 0 21.5 0 48v320c0 26.5 21.5 48 48 48h16c0 53 43 96 96 96s96-43 96-96h128c0 53 43 96 96 96s96-43 96-96h48c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16zM160 464c-26.5 0-48-21.5-48-48s21.5-48 48-48 48 21.5 48 48-21.5 48-48 48zm144-248c0 4.4-3.6 8-8 8h-56v56c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8v-56h-56c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h56v-56c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v56h56c4.4 0 8 3.6 8 8v48zm176 248c-26.5 0-48-21.5-48-48s21.5-48 48-48 48 21.5 48 48-21.5 48-48 48zm80-208H416V144h44.1l99.9 99.9V256z"},"medkit":{"viewBox":"0 0 512 512","path":"M96 480h320V128h-32V80c0-26.51-21.49-48-48-48H176c-26.51 0-48 21.49-48 48v48H96v352zm96-384h128v32H192V96zm320 80v256c0 26.51-21.49 48-48 48h-16V128h16c26.51 0 48 21.49 48 48zM64 480H48c-26.51 0-48-21.49-48-48V176c0-26.51 21.49-48 48-48h16v352zm288-208v32c0 8.837-7.163 16-16 16h-48v48c0 8.837-7.163 16-16 16h-32c-8.837 0-16-7.163-16-16v-48h-48c-8.837 0-16-7.163-16-16v-32c0-8.837 7.163-16 16-16h48v-48c0-8.837 7.163-16 16-16h32c8.837 0 16 7.163 16 16v48h48c8.837 0 16 7.163 16 16z"},"fighter-jet":{"viewBox":"0 0 640 512","path":"M544 224l-128-16-48-16h-24L227.158 44h39.509C278.333 44 288 41.375 288 38s-9.667-6-21.333-6H152v12h16v164h-48l-66.667-80H18.667L8 138.667V208h8v16h48v2.666l-64 8v42.667l64 8V288H16v16H8v69.333L18.667 384h34.667L120 304h48v164h-16v12h114.667c11.667 0 21.333-2.625 21.333-6s-9.667-6-21.333-6h-39.509L344 320h24l48-16 128-16c96-21.333 96-26.583 96-32 0-5.417 0-10.667-96-32z"},"beer":{"viewBox":"0 0 448 512","path":"M368 96h-48V56c0-13.255-10.745-24-24-24H24C10.745 32 0 42.745 0 56v400c0 13.255 10.745 24 24 24h272c13.255 0 24-10.745 24-24v-42.11l80.606-35.977C429.396 365.063 448 336.388 448 304.86V176c0-44.112-35.888-80-80-80zm16 208.86a16.018 16.018 0 0 1-9.479 14.611L320 343.805V160h48c8.822 0 16 7.178 16 16v128.86zM208 384c-8.836 0-16-7.164-16-16V144c0-8.836 7.164-16 16-16s16 7.164 16 16v224c0 8.836-7.164 16-16 16zm-96 0c-8.836 0-16-7.164-16-16V144c0-8.836 7.164-16 16-16s16 7.164 16 16v224c0 8.836-7.164 16-16 16z"},"h-square":{"viewBox":"0 0 448 512","path":"M448 80v352c0 26.51-21.49 48-48 48H48c-26.51 0-48-21.49-48-48V80c0-26.51 21.49-48 48-48h352c26.51 0 48 21.49 48 48zm-112 48h-32c-8.837 0-16 7.163-16 16v80H160v-80c0-8.837-7.163-16-16-16h-32c-8.837 0-16 7.163-16 16v224c0 8.837 7.163 16 16 16h32c8.837 0 16-7.163 16-16v-80h128v80c0 8.837 7.163 16 16 16h32c8.837 0 16-7.163 16-16V144c0-8.837-7.163-16-16-16z"},"plus-square":{"viewBox":"0 0 448 512","path":"M400 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zm-32 252c0 6.6-5.4 12-12 12h-92v92c0 6.6-5.4 12-12 12h-56c-6.6 0-12-5.4-12-12v-92H92c-6.6 0-12-5.4-12-12v-56c0-6.6 5.4-12 12-12h92v-92c0-6.6 5.4-12 12-12h56c6.6 0 12 5.4 12 12v92h92c6.6 0 12 5.4 12 12v56z"},"angle-double-left":{"viewBox":"0 0 448 512","path":"M223.7 239l136-136c9.4-9.4 24.6-9.4 33.9 0l22.6 22.6c9.4 9.4 9.4 24.6 0 33.9L319.9 256l96.4 96.4c9.4 9.4 9.4 24.6 0 33.9L393.7 409c-9.4 9.4-24.6 9.4-33.9 0l-136-136c-9.5-9.4-9.5-24.6-.1-34zm-192 34l136 136c9.4 9.4 24.6 9.4 33.9 0l22.6-22.6c9.4-9.4 9.4-24.6 0-33.9L127.9 256l96.4-96.4c9.4-9.4 9.4-24.6 0-33.9L201.7 103c-9.4-9.4-24.6-9.4-33.9 0l-136 136c-9.5 9.4-9.5 24.6-.1 34z"},"angle-double-right":{"viewBox":"0 0 448 512","path":"M224.3 273l-136 136c-9.4 9.4-24.6 9.4-33.9 0l-22.6-22.6c-9.4-9.4-9.4-24.6 0-33.9l96.4-96.4-96.4-96.4c-9.4-9.4-9.4-24.6 0-33.9L54.3 103c9.4-9.4 24.6-9.4 33.9 0l136 136c9.5 9.4 9.5 24.6.1 34zm192-34l-136-136c-9.4-9.4-24.6-9.4-33.9 0l-22.6 22.6c-9.4 9.4-9.4 24.6 0 33.9l96.4 96.4-96.4 96.4c-9.4 9.4-9.4 24.6 0 33.9l22.6 22.6c9.4 9.4 24.6 9.4 33.9 0l136-136c9.4-9.2 9.4-24.4 0-33.8z"},"angle-double-up":{"viewBox":"0 0 320 512","path":"M177 255.7l136 136c9.4 9.4 9.4 24.6 0 33.9l-22.6 22.6c-9.4 9.4-24.6 9.4-33.9 0L160 351.9l-96.4 96.4c-9.4 9.4-24.6 9.4-33.9 0L7 425.7c-9.4-9.4-9.4-24.6 0-33.9l136-136c9.4-9.5 24.6-9.5 34-.1zm-34-192L7 199.7c-9.4 9.4-9.4 24.6 0 33.9l22.6 22.6c9.4 9.4 24.6 9.4 33.9 0l96.4-96.4 96.4 96.4c9.4 9.4 24.6 9.4 33.9 0l22.6-22.6c9.4-9.4 9.4-24.6 0-33.9l-136-136c-9.2-9.4-24.4-9.4-33.8 0z"},"angle-double-down":{"viewBox":"0 0 320 512","path":"M143 256.3L7 120.3c-9.4-9.4-9.4-24.6 0-33.9l22.6-22.6c9.4-9.4 24.6-9.4 33.9 0l96.4 96.4 96.4-96.4c9.4-9.4 24.6-9.4 33.9 0L313 86.3c9.4 9.4 9.4 24.6 0 33.9l-136 136c-9.4 9.5-24.6 9.5-34 .1zm34 192l136-136c9.4-9.4 9.4-24.6 0-33.9l-22.6-22.6c-9.4-9.4-24.6-9.4-33.9 0L160 352.1l-96.4-96.4c-9.4-9.4-24.6-9.4-33.9 0L7 278.3c-9.4 9.4-9.4 24.6 0 33.9l136 136c9.4 9.5 24.6 9.5 34 .1z"},"angle-left":{"viewBox":"0 0 256 512","path":"M31.7 239l136-136c9.4-9.4 24.6-9.4 33.9 0l22.6 22.6c9.4 9.4 9.4 24.6 0 33.9L127.9 256l96.4 96.4c9.4 9.4 9.4 24.6 0 33.9L201.7 409c-9.4 9.4-24.6 9.4-33.9 0l-136-136c-9.5-9.4-9.5-24.6-.1-34z"},"angle-right":{"viewBox":"0 0 256 512","path":"M224.3 273l-136 136c-9.4 9.4-24.6 9.4-33.9 0l-22.6-22.6c-9.4-9.4-9.4-24.6 0-33.9l96.4-96.4-96.4-96.4c-9.4-9.4-9.4-24.6 0-33.9L54.3 103c9.4-9.4 24.6-9.4 33.9 0l136 136c9.5 9.4 9.5 24.6.1 34z"},"angle-up":{"viewBox":"0 0 320 512","path":"M177 159.7l136 136c9.4 9.4 9.4 24.6 0 33.9l-22.6 22.6c-9.4 9.4-24.6 9.4-33.9 0L160 255.9l-96.4 96.4c-9.4 9.4-24.6 9.4-33.9 0L7 329.7c-9.4-9.4-9.4-24.6 0-33.9l136-136c9.4-9.5 24.6-9.5 34-.1z"},"angle-down":{"viewBox":"0 0 320 512","path":"M143 352.3L7 216.3c-9.4-9.4-9.4-24.6 0-33.9l22.6-22.6c9.4-9.4 24.6-9.4 33.9 0l96.4 96.4 96.4-96.4c9.4-9.4 24.6-9.4 33.9 0l22.6 22.6c9.4 9.4 9.4 24.6 0 33.9l-136 136c-9.2 9.4-24.4 9.4-33.8 0z"},"desktop":{"viewBox":"0 0 576 512","path":"M528 0H48C21.5 0 0 21.5 0 48v320c0 26.5 21.5 48 48 48h192l-16 48h-72c-13.3 0-24 10.7-24 24s10.7 24 24 24h272c13.3 0 24-10.7 24-24s-10.7-24-24-24h-72l-16-48h192c26.5 0 48-21.5 48-48V48c0-26.5-21.5-48-48-48zm-16 352H64V64h448v288z"},"laptop":{"viewBox":"0 0 640 512","path":"M624 416H381.54c-.74 19.81-14.71 32-32.74 32H288c-18.69 0-33.02-17.47-32.77-32H16c-8.8 0-16 7.2-16 16v16c0 35.2 28.8 64 64 64h512c35.2 0 64-28.8 64-64v-16c0-8.8-7.2-16-16-16zM576 48c0-26.4-21.6-48-48-48H112C85.6 0 64 21.6 64 48v336h512V48zm-64 272H128V64h384v256z"},"tablet":{"viewBox":"0 0 448 512","path":"M400 0H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V48c0-26.5-21.5-48-48-48zM224 480c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32z"},"mobile":{"viewBox":"0 0 320 512","path":"M272 0H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h224c26.5 0 48-21.5 48-48V48c0-26.5-21.5-48-48-48zM160 480c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32z"},"quote-left":{"viewBox":"0 0 512 512","path":"M464 256h-80v-64c0-35.3 28.7-64 64-64h8c13.3 0 24-10.7 24-24V56c0-13.3-10.7-24-24-24h-8c-88.4 0-160 71.6-160 160v240c0 26.5 21.5 48 48 48h128c26.5 0 48-21.5 48-48V304c0-26.5-21.5-48-48-48zm-288 0H96v-64c0-35.3 28.7-64 64-64h8c13.3 0 24-10.7 24-24V56c0-13.3-10.7-24-24-24h-8C71.6 32 0 103.6 0 192v240c0 26.5 21.5 48 48 48h128c26.5 0 48-21.5 48-48V304c0-26.5-21.5-48-48-48z"},"quote-right":{"viewBox":"0 0 512 512","path":"M464 32H336c-26.5 0-48 21.5-48 48v128c0 26.5 21.5 48 48 48h80v64c0 35.3-28.7 64-64 64h-8c-13.3 0-24 10.7-24 24v48c0 13.3 10.7 24 24 24h8c88.4 0 160-71.6 160-160V80c0-26.5-21.5-48-48-48zm-288 0H48C21.5 32 0 53.5 0 80v128c0 26.5 21.5 48 48 48h80v64c0 35.3-28.7 64-64 64h-8c-13.3 0-24 10.7-24 24v48c0 13.3 10.7 24 24 24h8c88.4 0 160-71.6 160-160V80c0-26.5-21.5-48-48-48z"},"spinner":{"viewBox":"0 0 512 512","path":"M304 48c0 26.51-21.49 48-48 48s-48-21.49-48-48 21.49-48 48-48 48 21.49 48 48zm-48 368c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48zm208-208c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48zM96 256c0-26.51-21.49-48-48-48S0 229.49 0 256s21.49 48 48 48 48-21.49 48-48zm12.922 99.078c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48c0-26.509-21.491-48-48-48zm294.156 0c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48c0-26.509-21.49-48-48-48zM108.922 60.922c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.491-48-48-48z"},"circle":{"viewBox":"0 0 512 512","path":"M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8z"},"reply":{"viewBox":"0 0 512 512","path":"M8.309 189.836L184.313 37.851C199.719 24.546 224 35.347 224 56.015v80.053c160.629 1.839 288 34.032 288 186.258 0 61.441-39.581 122.309-83.333 154.132-13.653 9.931-33.111-2.533-28.077-18.631 45.344-145.012-21.507-183.51-176.59-185.742V360c0 20.7-24.3 31.453-39.687 18.164l-176.004-152c-11.071-9.562-11.086-26.753 0-36.328z"},"gamepad":{"viewBox":"0 0 640 512","path":"M480 96H160C71.6 96 0 167.6 0 256s71.6 160 160 160c44.8 0 85.2-18.4 114.2-48h91.5c29 29.6 69.5 48 114.2 48 88.4 0 160-71.6 160-160S568.4 96 480 96zM256 276c0 6.6-5.4 12-12 12h-52v52c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-52H76c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h52v-52c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v52h52c6.6 0 12 5.4 12 12v40zm184 68c-26.5 0-48-21.5-48-48s21.5-48 48-48 48 21.5 48 48-21.5 48-48 48zm80-80c-26.5 0-48-21.5-48-48s21.5-48 48-48 48 21.5 48 48-21.5 48-48 48z"},"flag-checkered":{"viewBox":"0 0 512 512","path":"M466.515 66.928C487.731 57.074 512 72.551 512 95.944v243.1c0 10.526-5.161 20.407-13.843 26.358-35.837 24.564-74.335 40.858-122.505 40.858-67.373 0-111.63-34.783-165.217-34.783-50.853 0-86.124 10.058-114.435 22.122V488c0 13.255-10.745 24-24 24H56c-13.255 0-24-10.745-24-24V101.945C17.497 91.825 8 75.026 8 56 8 24.296 34.345-1.254 66.338.048c28.468 1.158 51.779 23.968 53.551 52.404.52 8.342-.81 16.31-3.586 23.562C137.039 68.384 159.393 64 184.348 64c67.373 0 111.63 34.783 165.217 34.783 40.496 0 82.612-15.906 116.95-31.855zM96 134.63v70.49c29-10.67 51.18-17.83 73.6-20.91v-71.57c-23.5 2.17-40.44 9.79-73.6 21.99zm220.8 9.19c-26.417-4.672-49.886-13.979-73.6-21.34v67.42c24.175 6.706 47.566 16.444 73.6 22.31v-68.39zm-147.2 40.39v70.04c32.796-2.978 53.91-.635 73.6 3.8V189.9c-25.247-7.035-46.581-9.423-73.6-5.69zm73.6 142.23c26.338 4.652 49.732 13.927 73.6 21.34v-67.41c-24.277-6.746-47.54-16.45-73.6-22.32v68.39zM96 342.1c23.62-8.39 47.79-13.84 73.6-16.56v-71.29c-26.11 2.35-47.36 8.04-73.6 17.36v70.49zm368-221.6c-21.3 8.85-46.59 17.64-73.6 22.47v71.91c27.31-4.36 50.03-14.1 73.6-23.89V120.5zm0 209.96v-70.49c-22.19 14.2-48.78 22.61-73.6 26.02v71.58c25.07-2.38 48.49-11.04 73.6-27.11zM316.8 212.21v68.16c25.664 7.134 46.616 9.342 73.6 5.62v-71.11c-25.999 4.187-49.943 2.676-73.6-2.67z"},"terminal":{"viewBox":"0 0 640 512","path":"M257.981 272.971L63.638 467.314c-9.373 9.373-24.569 9.373-33.941 0L7.029 444.647c-9.357-9.357-9.375-24.522-.04-33.901L161.011 256 6.99 101.255c-9.335-9.379-9.317-24.544.04-33.901l22.667-22.667c9.373-9.373 24.569-9.373 33.941 0L257.981 239.03c9.373 9.372 9.373 24.568 0 33.941zM640 456v-32c0-13.255-10.745-24-24-24H312c-13.255 0-24 10.745-24 24v32c0 13.255 10.745 24 24 24h304c13.255 0 24-10.745 24-24z"},"code":{"viewBox":"0 0 640 512","path":"M278.9 511.5l-61-17.7c-6.4-1.8-10-8.5-8.2-14.9L346.2 8.7c1.8-6.4 8.5-10 14.9-8.2l61 17.7c6.4 1.8 10 8.5 8.2 14.9L293.8 503.3c-1.9 6.4-8.5 10.1-14.9 8.2zm-114-112.2l43.5-46.4c4.6-4.9 4.3-12.7-.8-17.2L117 256l90.6-79.7c5.1-4.5 5.5-12.3.8-17.2l-43.5-46.4c-4.5-4.8-12.1-5.1-17-.5L3.8 247.2c-5.1 4.7-5.1 12.8 0 17.5l144.1 135.1c4.9 4.6 12.5 4.4 17-.5zm327.2.6l144.1-135.1c5.1-4.7 5.1-12.8 0-17.5L492.1 112.1c-4.8-4.5-12.4-4.3-17 .5L431.6 159c-4.6 4.9-4.3 12.7.8 17.2L523 256l-90.6 79.7c-5.1 4.5-5.5 12.3-.8 17.2l43.5 46.4c4.5 4.9 12.1 5.1 17 .6z"},"reply-all":{"viewBox":"0 0 576 512","path":"M136.309 189.836L312.313 37.851C327.72 24.546 352 35.348 352 56.015v82.763c129.182 10.231 224 52.212 224 183.548 0 61.441-39.582 122.309-83.333 154.132-13.653 9.931-33.111-2.533-28.077-18.631 38.512-123.162-3.922-169.482-112.59-182.015v84.175c0 20.701-24.3 31.453-39.687 18.164L136.309 226.164c-11.071-9.561-11.086-26.753 0-36.328zm-128 36.328L184.313 378.15C199.7 391.439 224 380.687 224 359.986v-15.818l-108.606-93.785A55.96 55.96 0 0 1 96 207.998a55.953 55.953 0 0 1 19.393-42.38L224 71.832V56.015c0-20.667-24.28-31.469-39.687-18.164L8.309 189.836c-11.086 9.575-11.071 26.767 0 36.328z"},"location-arrow":{"viewBox":"0 0 512 512","path":"M444.52 3.52L28.74 195.42c-47.97 22.39-31.98 92.75 19.19 92.75h175.91v175.91c0 51.17 70.36 67.17 92.75 19.19l191.9-415.78c15.99-38.39-25.59-79.97-63.97-63.97z"},"crop":{"viewBox":"0 0 512 512","path":"M488 352h-40V109.25l59.31-59.31c6.25-6.25 6.25-16.38 0-22.63L484.69 4.69c-6.25-6.25-16.38-6.25-22.63 0L402.75 64H192v96h114.75L160 306.75V24c0-13.26-10.75-24-24-24H88C74.75 0 64 10.74 64 24v40H24C10.75 64 0 74.74 0 88v48c0 13.25 10.75 24 24 24h40v264c0 13.25 10.75 24 24 24h232v-96H205.25L352 205.25V488c0 13.25 10.75 24 24 24h48c13.25 0 24-10.75 24-24v-40h40c13.25 0 24-10.75 24-24v-48c0-13.26-10.75-24-24-24z"},"code-branch":{"viewBox":"0 0 384 512","path":"M384 144c0-44.2-35.8-80-80-80s-80 35.8-80 80c0 36.4 24.3 67.1 57.5 76.8-.6 16.1-4.2 28.5-11 36.9-15.4 19.2-49.3 22.4-85.2 25.7-28.2 2.6-57.4 5.4-81.3 16.9v-144c32.5-10.2 56-40.5 56-76.3 0-44.2-35.8-80-80-80S0 35.8 0 80c0 35.8 23.5 66.1 56 76.3v199.3C23.5 365.9 0 396.2 0 432c0 44.2 35.8 80 80 80s80-35.8 80-80c0-34-21.2-63.1-51.2-74.6 3.1-5.2 7.8-9.8 14.9-13.4 16.2-8.2 40.4-10.4 66.1-12.8 42.2-3.9 90-8.4 118.2-43.4 14-17.4 21.1-39.8 21.6-67.9 31.6-10.8 54.4-40.7 54.4-75.9zM80 64c8.8 0 16 7.2 16 16s-7.2 16-16 16-16-7.2-16-16 7.2-16 16-16zm0 384c-8.8 0-16-7.2-16-16s7.2-16 16-16 16 7.2 16 16-7.2 16-16 16zm224-320c8.8 0 16 7.2 16 16s-7.2 16-16 16-16-7.2-16-16 7.2-16 16-16z"},"unlink":{"viewBox":"0 0 512 512","path":"M304.083 405.907c4.686 4.686 4.686 12.284 0 16.971l-44.674 44.674c-59.263 59.262-155.693 59.266-214.961 0-59.264-59.265-59.264-155.696 0-214.96l44.675-44.675c4.686-4.686 12.284-4.686 16.971 0l39.598 39.598c4.686 4.686 4.686 12.284 0 16.971l-44.675 44.674c-28.072 28.073-28.072 73.75 0 101.823 28.072 28.072 73.75 28.073 101.824 0l44.674-44.674c4.686-4.686 12.284-4.686 16.971 0l39.597 39.598zm-56.568-260.216c4.686 4.686 12.284 4.686 16.971 0l44.674-44.674c28.072-28.075 73.75-28.073 101.824 0 28.072 28.073 28.072 73.75 0 101.823l-44.675 44.674c-4.686 4.686-4.686 12.284 0 16.971l39.598 39.598c4.686 4.686 12.284 4.686 16.971 0l44.675-44.675c59.265-59.265 59.265-155.695 0-214.96-59.266-59.264-155.695-59.264-214.961 0l-44.674 44.674c-4.686 4.686-4.686 12.284 0 16.971l39.597 39.598zm234.828 359.28l22.627-22.627c9.373-9.373 9.373-24.569 0-33.941L63.598 7.029c-9.373-9.373-24.569-9.373-33.941 0L7.029 29.657c-9.373 9.373-9.373 24.569 0 33.941l441.373 441.373c9.373 9.372 24.569 9.372 33.941 0z"},"question":{"viewBox":"0 0 384 512","path":"M202.021 0C122.202 0 70.503 32.703 29.914 91.026c-7.363 10.58-5.093 25.086 5.178 32.874l43.138 32.709c10.373 7.865 25.132 6.026 33.253-4.148 25.049-31.381 43.63-49.449 82.757-49.449 30.764 0 68.816 19.799 68.816 49.631 0 22.552-18.617 34.134-48.993 51.164-35.423 19.86-82.299 44.576-82.299 106.405V320c0 13.255 10.745 24 24 24h72.471c13.255 0 24-10.745 24-24v-5.773c0-42.86 125.268-44.645 125.268-160.627C377.504 66.256 286.902 0 202.021 0zM192 373.459c-38.196 0-69.271 31.075-69.271 69.271 0 38.195 31.075 69.27 69.271 69.27s69.271-31.075 69.271-69.271-31.075-69.27-69.271-69.27z"},"info":{"viewBox":"0 0 192 512","path":"M20 424.229h20V279.771H20c-11.046 0-20-8.954-20-20V212c0-11.046 8.954-20 20-20h112c11.046 0 20 8.954 20 20v212.229h20c11.046 0 20 8.954 20 20V492c0 11.046-8.954 20-20 20H20c-11.046 0-20-8.954-20-20v-47.771c0-11.046 8.954-20 20-20zM96 0C56.235 0 24 32.235 24 72s32.235 72 72 72 72-32.235 72-72S135.764 0 96 0z"},"exclamation":{"viewBox":"0 0 192 512","path":"M176 432c0 44.112-35.888 80-80 80s-80-35.888-80-80 35.888-80 80-80 80 35.888 80 80zM25.26 25.199l13.6 272C39.499 309.972 50.041 320 62.83 320h66.34c12.789 0 23.331-10.028 23.97-22.801l13.6-272C167.425 11.49 156.496 0 142.77 0H49.23C35.504 0 24.575 11.49 25.26 25.199z"},"superscript":{"viewBox":"0 0 512 512","path":"M395.198 256c3.461-10.526 18.796-21.28 36.265-32.425 16.625-10.605 35.467-22.626 50.341-38.862 17.458-19.054 25.944-40.175 25.944-64.567 0-60.562-50.702-88.146-97.81-88.146-42.491 0-76.378 22.016-94.432 50.447-4.654 7.329-2.592 17.036 4.623 21.865l30.328 20.296c7.032 4.706 16.46 3.084 21.63-3.614 8.022-10.394 18.818-18.225 31.667-18.225 19.387 0 26.266 12.901 26.266 23.948 0 36.159-119.437 57.023-119.437 160.024 0 6.654.561 13.014 1.415 19.331 1.076 7.964 7.834 13.928 15.87 13.928H496c8.837 0 16-7.163 16-16v-32c0-8.837-7.163-16-16-16H395.198zM272 416c8.837 0 16 7.163 16 16v32c0 8.837-7.163 16-16 16h-62.399a16 16 0 0 1-13.541-7.478l-45.701-72.615c-2.297-3.352-4.422-6.969-6.195-10.209-1.65 3.244-3.647 6.937-5.874 10.582l-44.712 72.147a15.999 15.999 0 0 1-13.6 7.572H16c-8.837 0-16-7.163-16-16v-32c0-8.837 7.163-16 16-16h26.325l56.552-82.709L46.111 256H16c-8.837 0-16-7.163-16-16v-32c0-8.837 7.163-16 16-16h68.806a16 16 0 0 1 13.645 7.644l39.882 65.126c2.072 3.523 4.053 7.171 5.727 10.37 1.777-3.244 3.92-6.954 6.237-10.537l40.332-65.035a16 16 0 0 1 13.598-7.567H272c8.837 0 16 7.163 16 16v32c0 8.837-7.163 16-16 16h-27.979l-52.69 75.671L249.974 416H272z"},"subscript":{"viewBox":"0 0 512 512","path":"M395.198 416c3.461-10.526 18.796-21.28 36.265-32.425 16.625-10.605 35.467-22.626 50.341-38.862 17.458-19.054 25.944-40.175 25.944-64.567 0-60.562-50.702-88.146-97.81-88.146-42.491 0-76.378 22.016-94.432 50.447-4.654 7.329-2.592 17.036 4.623 21.865l30.328 20.296c7.032 4.706 16.46 3.084 21.63-3.614 8.022-10.394 18.818-18.225 31.667-18.225 19.387 0 26.266 12.901 26.266 23.948 0 36.159-119.437 57.023-119.437 160.024 0 6.654.561 13.014 1.415 19.331 1.076 7.964 7.834 13.928 15.87 13.928H496c8.837 0 16-7.163 16-16v-32c0-8.837-7.163-16-16-16H395.198zM272 256c8.837 0 16 7.163 16 16v32c0 8.837-7.163 16-16 16h-62.399a16 16 0 0 1-13.541-7.478l-45.701-72.615c-2.297-3.352-4.422-6.969-6.195-10.209-1.65 3.244-3.647 6.937-5.874 10.582l-44.712 72.147a15.999 15.999 0 0 1-13.6 7.572H16c-8.837 0-16-7.163-16-16v-32c0-8.837 7.163-16 16-16h26.325l56.552-82.709L46.111 96H16C7.163 96 0 88.837 0 80V48c0-8.837 7.163-16 16-16h68.806a16 16 0 0 1 13.645 7.644l39.882 65.126c2.072 3.523 4.053 7.171 5.727 10.37 1.777-3.244 3.92-6.954 6.237-10.537l40.332-65.035A15.999 15.999 0 0 1 204.226 32H272c8.837 0 16 7.163 16 16v32c0 8.837-7.163 16-16 16h-27.979l-52.69 75.671L249.974 256H272z"},"eraser":{"viewBox":"0 0 512 512","path":"M497.941 273.941c18.745-18.745 18.745-49.137 0-67.882l-160-160c-18.745-18.745-49.136-18.746-67.883 0l-256 256c-18.745 18.745-18.745 49.137 0 67.882l96 96A48.004 48.004 0 0 0 144 480h356c6.627 0 12-5.373 12-12v-40c0-6.627-5.373-12-12-12H355.883l142.058-142.059zm-302.627-62.627l137.373 137.373L265.373 416H150.628l-80-80 124.686-124.686z"},"puzzle-piece":{"viewBox":"0 0 576 512","path":"M519.442 288.651c-41.519 0-59.5 31.593-82.058 31.593C377.409 320.244 432 144 432 144s-196.288 80-196.288-3.297c0-35.827 36.288-46.25 36.288-85.985C272 19.216 243.885 0 210.539 0c-34.654 0-66.366 18.891-66.366 56.346 0 41.364 31.711 59.277 31.711 81.75C175.885 207.719 0 166.758 0 166.758v333.237s178.635 41.047 178.635-28.662c0-22.473-40-40.107-40-81.471 0-37.456 29.25-56.346 63.577-56.346 33.673 0 61.788 19.216 61.788 54.717 0 39.735-36.288 50.158-36.288 85.985 0 60.803 129.675 25.73 181.23 25.73 0 0-34.725-120.101 25.827-120.101 35.962 0 46.423 36.152 86.308 36.152C556.712 416 576 387.99 576 354.443c0-34.199-18.962-65.792-56.558-65.792z"},"microphone":{"viewBox":"0 0 352 512","path":"M176 352c53.02 0 96-42.98 96-96V96c0-53.02-42.98-96-96-96S80 42.98 80 96v160c0 53.02 42.98 96 96 96zm160-160h-16c-8.84 0-16 7.16-16 16v48c0 74.8-64.49 134.82-140.79 127.38C96.71 376.89 48 317.11 48 250.3V208c0-8.84-7.16-16-16-16H16c-8.84 0-16 7.16-16 16v40.16c0 89.64 63.97 169.55 152 181.69V464H96c-8.84 0-16 7.16-16 16v16c0 8.84 7.16 16 16 16h160c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16h-56v-33.77C285.71 418.47 352 344.9 352 256v-48c0-8.84-7.16-16-16-16z"},"microphone-slash":{"viewBox":"0 0 640 512","path":"M633.82 458.1l-157.8-121.96C488.61 312.13 496 285.01 496 256v-48c0-8.84-7.16-16-16-16h-16c-8.84 0-16 7.16-16 16v48c0 17.92-3.96 34.8-10.72 50.2l-26.55-20.52c3.1-9.4 5.28-19.22 5.28-29.67V96c0-53.02-42.98-96-96-96s-96 42.98-96 96v45.36L45.47 3.37C38.49-2.05 28.43-.8 23.01 6.18L3.37 31.45C-2.05 38.42-.8 48.47 6.18 53.9l588.36 454.73c6.98 5.43 17.03 4.17 22.46-2.81l19.64-25.27c5.41-6.97 4.16-17.02-2.82-22.45zM400 464h-56v-33.77c11.66-1.6 22.85-4.54 33.67-8.31l-50.11-38.73c-6.71.4-13.41.87-20.35.2-55.85-5.45-98.74-48.63-111.18-101.85L144 241.31v6.85c0 89.64 63.97 169.55 152 181.69V464h-56c-8.84 0-16 7.16-16 16v16c0 8.84 7.16 16 16 16h160c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16z"},"shield-alt":{"viewBox":"0 0 512 512","path":"M496 128c0 221.282-135.934 344.645-221.539 380.308a48 48 0 0 1-36.923 0C130.495 463.713 16 326.487 16 128a48 48 0 0 1 29.539-44.308l192-80a48 48 0 0 1 36.923 0l192 80A48 48 0 0 1 496 128zM256 446.313l.066.034c93.735-46.689 172.497-156.308 175.817-307.729L256 65.333v380.98z"},"fire-extinguisher":{"viewBox":"0 0 448 512","path":"M434.027 26.329l-168 28C254.693 56.218 256 67.8 256 72h-58.332C208.353 36.108 181.446 0 144 0c-39.435 0-66.368 39.676-52.228 76.203-52.039 13.051-75.381 54.213-90.049 90.884-4.923 12.307 1.063 26.274 13.37 31.197 12.317 4.926 26.279-1.075 31.196-13.37C75.058 112.99 106.964 120 168 120v27.076c-41.543 10.862-72 49.235-72 94.129V488c0 13.255 10.745 24 24 24h144c13.255 0 24-10.745 24-24V240c0-44.731-30.596-82.312-72-92.97V120h40c0 2.974-1.703 15.716 10.027 17.671l168 28C441.342 166.89 448 161.25 448 153.834V38.166c0-7.416-6.658-13.056-13.973-11.837zM144 72c-8.822 0-16-7.178-16-16s7.178-16 16-16 16 7.178 16 16-7.178 16-16 16z"},"rocket":{"viewBox":"0 0 512 512","path":"M505.1 19.1C503.8 13 499 8.2 492.9 6.9 460.7 0 435.5 0 410.4 0 307.2 0 245.3 55.2 199.1 128H94.9c-18.2 0-34.8 10.3-42.9 26.5L2.6 253.3c-8 16 3.6 34.7 21.5 34.7h95.1c-5.9 12.8-11.9 25.5-18 37.7-3.1 6.2-1.9 13.6 3 18.5l63.6 63.6c4.9 4.9 12.3 6.1 18.5 3 12.2-6.1 24.9-12 37.7-17.9V488c0 17.8 18.8 29.4 34.7 21.5l98.7-49.4c16.3-8.1 26.5-24.8 26.5-42.9V312.8c72.6-46.3 128-108.4 128-211.1.1-25.2.1-50.4-6.8-82.6zM400 160c-26.5 0-48-21.5-48-48s21.5-48 48-48 48 21.5 48 48-21.5 48-48 48z"},"chevron-circle-left":{"viewBox":"0 0 512 512","path":"M256 504C119 504 8 393 8 256S119 8 256 8s248 111 248 248-111 248-248 248zM142.1 273l135.5 135.5c9.4 9.4 24.6 9.4 33.9 0l17-17c9.4-9.4 9.4-24.6 0-33.9L226.9 256l101.6-101.6c9.4-9.4 9.4-24.6 0-33.9l-17-17c-9.4-9.4-24.6-9.4-33.9 0L142.1 239c-9.4 9.4-9.4 24.6 0 34z"},"chevron-circle-right":{"viewBox":"0 0 512 512","path":"M256 8c137 0 248 111 248 248S393 504 256 504 8 393 8 256 119 8 256 8zm113.9 231L234.4 103.5c-9.4-9.4-24.6-9.4-33.9 0l-17 17c-9.4 9.4-9.4 24.6 0 33.9L285.1 256 183.5 357.6c-9.4 9.4-9.4 24.6 0 33.9l17 17c9.4 9.4 24.6 9.4 33.9 0L369.9 273c9.4-9.4 9.4-24.6 0-34z"},"chevron-circle-up":{"viewBox":"0 0 512 512","path":"M8 256C8 119 119 8 256 8s248 111 248 248-111 248-248 248S8 393 8 256zm231-113.9L103.5 277.6c-9.4 9.4-9.4 24.6 0 33.9l17 17c9.4 9.4 24.6 9.4 33.9 0L256 226.9l101.6 101.6c9.4 9.4 24.6 9.4 33.9 0l17-17c9.4-9.4 9.4-24.6 0-33.9L273 142.1c-9.4-9.4-24.6-9.4-34 0z"},"chevron-circle-down":{"viewBox":"0 0 512 512","path":"M504 256c0 137-111 248-248 248S8 393 8 256 119 8 256 8s248 111 248 248zM273 369.9l135.5-135.5c9.4-9.4 9.4-24.6 0-33.9l-17-17c-9.4-9.4-24.6-9.4-33.9 0L256 285.1 154.4 183.5c-9.4-9.4-24.6-9.4-33.9 0l-17 17c-9.4 9.4-9.4 24.6 0 33.9L239 369.9c9.4 9.4 24.6 9.4 34 0z"},"anchor":{"viewBox":"0 0 576 512","path":"M12.971 352h32.394C67.172 454.735 181.944 512 288 512c106.229 0 220.853-57.38 242.635-160h32.394c10.691 0 16.045-12.926 8.485-20.485l-67.029-67.029c-4.686-4.686-12.284-4.686-16.971 0l-67.029 67.029c-7.56 7.56-2.206 20.485 8.485 20.485h35.146c-20.29 54.317-84.963 86.588-144.117 94.015V256h52c6.627 0 12-5.373 12-12v-40c0-6.627-5.373-12-12-12h-52v-5.47c37.281-13.178 63.995-48.725 64-90.518C384.005 43.772 341.605.738 289.37.01 235.723-.739 192 42.525 192 96c0 41.798 26.716 77.35 64 90.53V192h-52c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h52v190.015c-58.936-7.399-123.82-39.679-144.117-94.015h35.146c10.691 0 16.045-12.926 8.485-20.485l-67.029-67.029c-4.686-4.686-12.284-4.686-16.971 0L4.485 331.515C-3.074 339.074 2.28 352 12.971 352zM288 64c17.645 0 32 14.355 32 32s-14.355 32-32 32-32-14.355-32-32 14.355-32 32-32z"},"unlock-alt":{"viewBox":"0 0 448 512","path":"M400 256H152V152.9c0-39.6 31.7-72.5 71.3-72.9 40-.4 72.7 32.1 72.7 72v16c0 13.3 10.7 24 24 24h32c13.3 0 24-10.7 24-24v-16C376 68 307.5-.3 223.5 0 139.5.3 72 69.5 72 153.5V256H48c-26.5 0-48 21.5-48 48v160c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V304c0-26.5-21.5-48-48-48zM264 408c0 22.1-17.9 40-40 40s-40-17.9-40-40v-48c0-22.1 17.9-40 40-40s40 17.9 40 40v48z"},"bullseye":{"viewBox":"0 0 496 512","path":"M248 8C111.03 8 0 119.03 0 256s111.03 248 248 248 248-111.03 248-248S384.97 8 248 8zm0 432c-101.69 0-184-82.29-184-184 0-101.69 82.29-184 184-184 101.69 0 184 82.29 184 184 0 101.69-82.29 184-184 184zm0-312c-70.69 0-128 57.31-128 128s57.31 128 128 128 128-57.31 128-128-57.31-128-128-128zm0 192c-35.29 0-64-28.71-64-64s28.71-64 64-64 64 28.71 64 64-28.71 64-64 64z"},"ellipsis-h":{"viewBox":"0 0 512 512","path":"M328 256c0 39.8-32.2 72-72 72s-72-32.2-72-72 32.2-72 72-72 72 32.2 72 72zm104-72c-39.8 0-72 32.2-72 72s32.2 72 72 72 72-32.2 72-72-32.2-72-72-72zm-352 0c-39.8 0-72 32.2-72 72s32.2 72 72 72 72-32.2 72-72-32.2-72-72-72z"},"ellipsis-v":{"viewBox":"0 0 192 512","path":"M96 184c39.8 0 72 32.2 72 72s-32.2 72-72 72-72-32.2-72-72 32.2-72 72-72zM24 80c0 39.8 32.2 72 72 72s72-32.2 72-72S135.8 8 96 8 24 40.2 24 80zm0 352c0 39.8 32.2 72 72 72s72-32.2 72-72-32.2-72-72-72-72 32.2-72 72z"},"rss-square":{"viewBox":"0 0 448 512","path":"M400 32H48C21.49 32 0 53.49 0 80v352c0 26.51 21.49 48 48 48h352c26.51 0 48-21.49 48-48V80c0-26.51-21.49-48-48-48zM112 416c-26.51 0-48-21.49-48-48s21.49-48 48-48 48 21.49 48 48-21.49 48-48 48zm157.533 0h-34.335c-6.011 0-11.051-4.636-11.442-10.634-5.214-80.05-69.243-143.92-149.123-149.123-5.997-.39-10.633-5.431-10.633-11.441v-34.335c0-6.535 5.468-11.777 11.994-11.425 110.546 5.974 198.997 94.536 204.964 204.964.352 6.526-4.89 11.994-11.425 11.994zm103.027 0h-34.334c-6.161 0-11.175-4.882-11.427-11.038-5.598-136.535-115.204-246.161-251.76-251.76C68.882 152.949 64 147.935 64 141.774V107.44c0-6.454 5.338-11.664 11.787-11.432 167.83 6.025 302.21 141.191 308.205 308.205.232 6.449-4.978 11.787-11.432 11.787z"},"ticket-alt":{"viewBox":"0 0 576 512","path":"M128 160h320v192H128V160zm400 96c0 26.51 21.49 48 48 48v96c0 26.51-21.49 48-48 48H48c-26.51 0-48-21.49-48-48v-96c26.51 0 48-21.49 48-48s-21.49-48-48-48v-96c0-26.51 21.49-48 48-48h480c26.51 0 48 21.49 48 48v96c-26.51 0-48 21.49-48 48zm-48-104c0-13.255-10.745-24-24-24H120c-13.255 0-24 10.745-24 24v208c0 13.255 10.745 24 24 24h336c13.255 0 24-10.745 24-24V152z"},"minus-square":{"viewBox":"0 0 448 512","path":"M400 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zM92 296c-6.6 0-12-5.4-12-12v-56c0-6.6 5.4-12 12-12h264c6.6 0 12 5.4 12 12v56c0 6.6-5.4 12-12 12H92z"},"level-up-alt":{"viewBox":"0 0 320 512","path":"M313.553 119.669L209.587 7.666c-9.485-10.214-25.676-10.229-35.174 0L70.438 119.669C56.232 134.969 67.062 160 88.025 160H152v272H68.024a11.996 11.996 0 0 0-8.485 3.515l-56 56C-4.021 499.074 1.333 512 12.024 512H208c13.255 0 24-10.745 24-24V160h63.966c20.878 0 31.851-24.969 17.587-40.331z"},"level-down-alt":{"viewBox":"0 0 320 512","path":"M313.553 392.331L209.587 504.334c-9.485 10.214-25.676 10.229-35.174 0L70.438 392.331C56.232 377.031 67.062 352 88.025 352H152V80H68.024a11.996 11.996 0 0 1-8.485-3.515l-56-56C-4.021 12.926 1.333 0 12.024 0H208c13.255 0 24 10.745 24 24v328h63.966c20.878 0 31.851 24.969 17.587 40.331z"},"check-square":{"viewBox":"0 0 448 512","path":"M400 480H48c-26.51 0-48-21.49-48-48V80c0-26.51 21.49-48 48-48h352c26.51 0 48 21.49 48 48v352c0 26.51-21.49 48-48 48zm-204.686-98.059l184-184c6.248-6.248 6.248-16.379 0-22.627l-22.627-22.627c-6.248-6.248-16.379-6.249-22.628 0L184 302.745l-70.059-70.059c-6.248-6.248-16.379-6.248-22.628 0l-22.627 22.627c-6.248 6.248-6.248 16.379 0 22.627l104 104c6.249 6.25 16.379 6.25 22.628.001z"},"pen":{"viewBox":"0 0 512 512","path":"M290.74 93.24l128.02 128.02-277.99 277.99-114.14 12.6C11.35 513.54-1.56 500.62.14 485.34l12.7-114.22 277.9-277.88zm207.2-19.06l-60.11-60.11c-18.75-18.75-49.16-18.75-67.91 0l-56.55 56.55 128.02 128.02 56.55-56.55c18.75-18.76 18.75-49.16 0-67.91z"},"pen-square":{"viewBox":"0 0 448 512","path":"M400 480H48c-26.5 0-48-21.5-48-48V80c0-26.5 21.5-48 48-48h352c26.5 0 48 21.5 48 48v352c0 26.5-21.5 48-48 48zM238.1 177.9L102.4 313.6l-6.3 57.1c-.8 7.6 5.6 14.1 13.3 13.3l57.1-6.3L302.2 242c2.3-2.3 2.3-6.1 0-8.5L246.7 178c-2.5-2.4-6.3-2.4-8.6-.1zM345 165.1L314.9 135c-9.4-9.4-24.6-9.4-33.9 0l-23.1 23.1c-2.3 2.3-2.3 6.1 0 8.5l55.5 55.5c2.3 2.3 6.1 2.3 8.5 0L345 199c9.3-9.3 9.3-24.5 0-33.9z"},"external-link-square-alt":{"viewBox":"0 0 448 512","path":"M448 80v352c0 26.51-21.49 48-48 48H48c-26.51 0-48-21.49-48-48V80c0-26.51 21.49-48 48-48h352c26.51 0 48 21.49 48 48zm-88 16H248.029c-21.313 0-32.08 25.861-16.971 40.971l31.984 31.987L67.515 364.485c-4.686 4.686-4.686 12.284 0 16.971l31.029 31.029c4.687 4.686 12.285 4.686 16.971 0l195.526-195.526 31.988 31.991C358.058 263.977 384 253.425 384 231.979V120c0-13.255-10.745-24-24-24z"},"share-square":{"viewBox":"0 0 576 512","path":"M568.482 177.448L424.479 313.433C409.3 327.768 384 317.14 384 295.985v-71.963c-144.575.97-205.566 35.113-164.775 171.353 4.483 14.973-12.846 26.567-25.006 17.33C155.252 383.105 120 326.488 120 269.339c0-143.937 117.599-172.5 264-173.312V24.012c0-21.174 25.317-31.768 40.479-17.448l144.003 135.988c10.02 9.463 10.028 25.425 0 34.896zM384 379.128V448H64V128h50.916a11.99 11.99 0 0 0 8.648-3.693c14.953-15.568 32.237-27.89 51.014-37.676C185.708 80.83 181.584 64 169.033 64H48C21.49 64 0 85.49 0 112v352c0 26.51 21.49 48 48 48h352c26.51 0 48-21.49 48-48v-88.806c0-8.288-8.197-14.066-16.011-11.302a71.83 71.83 0 0 1-34.189 3.377c-7.27-1.046-13.8 4.514-13.8 11.859z"},"compass":{"viewBox":"0 0 496 512","path":"M225.38 233.37c-12.5 12.5-12.5 32.76 0 45.25 12.49 12.5 32.76 12.5 45.25 0 12.5-12.5 12.5-32.76 0-45.25-12.5-12.49-32.76-12.49-45.25 0zM248 8C111.03 8 0 119.03 0 256s111.03 248 248 248 248-111.03 248-248S384.97 8 248 8zm126.14 148.05L308.17 300.4a31.938 31.938 0 0 1-15.77 15.77l-144.34 65.97c-16.65 7.61-33.81-9.55-26.2-26.2l65.98-144.35a31.938 31.938 0 0 1 15.77-15.77l144.34-65.97c16.65-7.6 33.8 9.55 26.19 26.2z"},"euro-sign":{"viewBox":"0 0 320 512","path":"M310.706 413.765c-1.314-6.63-7.835-10.872-14.424-9.369-10.692 2.439-27.422 5.413-45.426 5.413-56.763 0-101.929-34.79-121.461-85.449h113.689a12 12 0 0 0 11.708-9.369l6.373-28.36c1.686-7.502-4.019-14.631-11.708-14.631H115.22c-1.21-14.328-1.414-28.287.137-42.245H261.95a12 12 0 0 0 11.723-9.434l6.512-29.755c1.638-7.484-4.061-14.566-11.723-14.566H130.184c20.633-44.991 62.69-75.03 117.619-75.03 14.486 0 28.564 2.25 37.851 4.145 6.216 1.268 12.347-2.498 14.002-8.623l11.991-44.368c1.822-6.741-2.465-13.616-9.326-14.917C290.217 34.912 270.71 32 249.635 32 152.451 32 74.03 92.252 45.075 176H12c-6.627 0-12 5.373-12 12v29.755c0 6.627 5.373 12 12 12h21.569c-1.009 13.607-1.181 29.287-.181 42.245H12c-6.627 0-12 5.373-12 12v28.36c0 6.627 5.373 12 12 12h30.114C67.139 414.692 145.264 480 249.635 480c26.301 0 48.562-4.544 61.101-7.788 6.167-1.595 10.027-7.708 8.788-13.957l-8.818-44.49z"},"pound-sign":{"viewBox":"0 0 320 512","path":"M308 352h-45.495c-6.627 0-12 5.373-12 12v50.848H128V288h84c6.627 0 12-5.373 12-12v-40c0-6.627-5.373-12-12-12h-84v-63.556c0-32.266 24.562-57.086 61.792-57.086 23.658 0 45.878 11.505 57.652 18.849 5.151 3.213 11.888 2.051 15.688-2.685l28.493-35.513c4.233-5.276 3.279-13.005-2.119-17.081C273.124 54.56 236.576 32 187.931 32 106.026 32 48 84.742 48 157.961V224H20c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h28v128H12c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h296c6.627 0 12-5.373 12-12V364c0-6.627-5.373-12-12-12z"},"dollar-sign":{"viewBox":"0 0 288 512","path":"M209.2 233.4l-108-31.6C88.7 198.2 80 186.5 80 173.5c0-16.3 13.2-29.5 29.5-29.5h66.3c12.2 0 24.2 3.7 34.2 10.5 6.1 4.1 14.3 3.1 19.5-2l34.8-34c7.1-6.9 6.1-18.4-1.8-24.5C238 74.8 207.4 64.1 176 64V16c0-8.8-7.2-16-16-16h-32c-8.8 0-16 7.2-16 16v48h-2.5C45.8 64-5.4 118.7.5 183.6c4.2 46.1 39.4 83.6 83.8 96.6l102.5 30c12.5 3.7 21.2 15.3 21.2 28.3 0 16.3-13.2 29.5-29.5 29.5h-66.3C100 368 88 364.3 78 357.5c-6.1-4.1-14.3-3.1-19.5 2l-34.8 34c-7.1 6.9-6.1 18.4 1.8 24.5 24.5 19.2 55.1 29.9 86.5 30v48c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16v-48.2c46.6-.9 90.3-28.6 105.7-72.7 21.5-61.6-14.6-124.8-72.5-141.7z"},"rupee-sign":{"viewBox":"0 0 320 512","path":"M308 96c6.627 0 12-5.373 12-12V44c0-6.627-5.373-12-12-12H12C5.373 32 0 37.373 0 44v44.748c0 6.627 5.373 12 12 12h85.28c27.308 0 48.261 9.958 60.97 27.252H12c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h158.757c-6.217 36.086-32.961 58.632-74.757 58.632H12c-6.627 0-12 5.373-12 12v53.012c0 3.349 1.4 6.546 3.861 8.818l165.052 152.356a12.001 12.001 0 0 0 8.139 3.182h82.562c10.924 0 16.166-13.408 8.139-20.818L116.871 319.906c76.499-2.34 131.144-53.395 138.318-127.906H308c6.627 0 12-5.373 12-12v-40c0-6.627-5.373-12-12-12h-58.69c-3.486-11.541-8.28-22.246-14.252-32H308z"},"yen-sign":{"viewBox":"0 0 384 512","path":"M351.208 32h-65.277a12 12 0 0 0-10.778 6.724l-55.39 113.163c-14.513 34.704-27.133 71.932-27.133 71.932h-1.262s-12.62-37.228-27.133-71.932l-55.39-113.163A11.997 11.997 0 0 0 98.068 32H32.792c-9.057 0-14.85 9.65-10.59 17.643L102.322 200H44c-6.627 0-12 5.373-12 12v32c0 6.627 5.373 12 12 12h88.162L152 293.228V320H44c-6.627 0-12 5.373-12 12v32c0 6.627 5.373 12 12 12h108v92c0 6.627 5.373 12 12 12h56c6.627 0 12-5.373 12-12v-92h108c6.627 0 12-5.373 12-12v-32c0-6.627-5.373-12-12-12H232v-26.772L251.838 256H340c6.627 0 12-5.373 12-12v-32c0-6.627-5.373-12-12-12h-58.322l80.12-150.357C366.058 41.65 360.266 32 351.208 32z"},"ruble-sign":{"viewBox":"0 0 384 512","path":"M239.36 320C324.48 320 384 260.542 384 175.071S324.48 32 239.36 32H76c-6.627 0-12 5.373-12 12v206.632H12c-6.627 0-12 5.373-12 12V308c0 6.627 5.373 12 12 12h52v32H12c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h52v52c0 6.627 5.373 12 12 12h58.56c6.627 0 12-5.373 12-12v-52H308c6.627 0 12-5.373 12-12v-40c0-6.627-5.373-12-12-12H146.56v-32h92.8zm-92.8-219.252h78.72c46.72 0 74.88 29.11 74.88 74.323 0 45.832-28.16 75.561-76.16 75.561h-77.44V100.748z"},"won-sign":{"viewBox":"0 0 576 512","path":"M564 192c6.627 0 12-5.373 12-12v-40c0-6.627-5.373-12-12-12h-48.028l18.572-80.61c1.732-7.518-3.978-14.694-11.693-14.694h-46.107a11.998 11.998 0 0 0-11.736 9.5L450.73 128H340.839l-19.725-85.987a12 12 0 0 0-11.696-9.317H265.43a12 12 0 0 0-11.687 9.277L233.696 128H124.975L107.5 42.299a12 12 0 0 0-11.758-9.602H53.628c-7.686 0-13.39 7.124-11.709 14.624L60 128H12c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h62.342l7.171 32H12c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h83.856l40.927 182.624A12 12 0 0 0 148.492 480h56.767c5.583 0 10.428-3.85 11.689-9.288L259.335 288h55.086l42.386 182.712A12 12 0 0 0 368.496 480h56.826a12 12 0 0 0 11.694-9.306L479.108 288H564c6.627 0 12-5.373 12-12v-40c0-6.627-5.373-12-12-12h-70.146l7.373-32H564zm-425.976 0h80.757l-7.457 32h-66.776l-6.524-32zm45.796 150.029c-6.194 25.831-6.758 47.25-7.321 47.25h-1.126s-1.689-22.05-6.758-47.25L157.599 288h38.812l-12.591 54.029zM274.182 224l1.996-8.602c1.856-7.962 3.457-15.968 4.803-23.398h11.794c1.347 7.43 2.947 15.436 4.803 23.398l1.996 8.602h-25.392zm130.959 118.029c-5.068 25.2-6.758 47.25-6.758 47.25h-1.126c-.563 0-1.126-21.42-7.321-47.25L377.542 288h39.107l-11.508 54.029zM430.281 224h-67.42l-7.34-32h81.577l-6.817 32z"},"file":{"viewBox":"0 0 384 512","path":"M224 136V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zm160-14.1v6.1H256V0h6.1c6.4 0 12.5 2.5 17 7l97.9 98c4.5 4.5 7 10.6 7 16.9z"},"sort-alpha-down":{"viewBox":"0 0 448 512","path":"M187.298 395.314l-79.984 80.002c-6.248 6.247-16.383 6.245-22.627 0L4.705 395.314C-5.365 385.244 1.807 368 16.019 368H64V48c0-8.837 7.163-16 16-16h32c8.837 0 16 7.163 16 16v320h47.984c14.241 0 21.363 17.264 11.314 27.314zm119.075-180.007A12 12 0 0 1 294.838 224h-35.717c-8.22 0-14.007-8.078-11.362-15.861l57.096-168A12 12 0 0 1 316.217 32h39.566c5.139 0 9.708 3.273 11.362 8.139l57.096 168C426.886 215.922 421.1 224 412.879 224h-35.735a12 12 0 0 1-11.515-8.622l-8.301-28.299h-42.863l-8.092 28.228zm22.857-78.697h13.367l-6.6-22.937-6.767 22.937zm12.575 287.323l67.451-95.698a12 12 0 0 0 2.192-6.913V300c0-6.627-5.373-12-12-12H274.522c-6.627 0-12 5.373-12 12v28.93c0 6.627 5.373 12 12 12h56.469c-.739.991-1.497 2.036-2.27 3.133l-67.203 95.205a12.001 12.001 0 0 0-2.196 6.92V468c0 6.627 5.373 12 12 12h129.355c6.627 0 12-5.373 12-12v-28.93c0-6.627-5.373-12-12-12h-61.146c.74-.993 1.5-2.039 2.274-3.137z"},"sort-alpha-up":{"viewBox":"0 0 448 512","path":"M4.702 116.686l79.984-80.002c6.248-6.247 16.383-6.245 22.627 0l79.981 80.002c10.07 10.07 2.899 27.314-11.314 27.314H128v320c0 8.837-7.163 16-16 16H80c-8.837 0-16-7.163-16-16V144H16.016c-14.241 0-21.363-17.264-11.314-27.314zm301.671 98.621A12 12 0 0 1 294.838 224h-35.717c-8.22 0-14.007-8.078-11.362-15.861l57.096-168A12 12 0 0 1 316.217 32h39.566c5.139 0 9.708 3.273 11.362 8.139l57.096 168C426.886 215.922 421.1 224 412.879 224h-35.735a12 12 0 0 1-11.515-8.622l-8.301-28.299h-42.863l-8.092 28.228zm22.857-78.697h13.367l-6.6-22.937-6.767 22.937zm12.575 287.323l67.451-95.698a12 12 0 0 0 2.192-6.913V300c0-6.627-5.373-12-12-12H274.522c-6.627 0-12 5.373-12 12v28.93c0 6.627 5.373 12 12 12h56.469c-.739.991-1.497 2.036-2.27 3.133l-67.203 95.205a12.001 12.001 0 0 0-2.196 6.92V468c0 6.627 5.373 12 12 12h129.355c6.627 0 12-5.373 12-12v-28.93c0-6.627-5.373-12-12-12h-61.146c.74-.993 1.5-2.039 2.274-3.137z"},"sort-amount-down":{"viewBox":"0 0 512 512","path":"M187.298 395.314l-79.984 80.002c-6.248 6.247-16.383 6.245-22.627 0L4.705 395.314C-5.365 385.244 1.807 368 16.019 368H64V48c0-8.837 7.163-16 16-16h32c8.837 0 16 7.163 16 16v320h47.984c14.241 0 21.363 17.264 11.314 27.314zM240 96h256c8.837 0 16-7.163 16-16V48c0-8.837-7.163-16-16-16H240c-8.837 0-16 7.163-16 16v32c0 8.837 7.163 16 16 16zm-16 112v-32c0-8.837 7.163-16 16-16h192c8.837 0 16 7.163 16 16v32c0 8.837-7.163 16-16 16H240c-8.837 0-16-7.163-16-16zm0 256v-32c0-8.837 7.163-16 16-16h64c8.837 0 16 7.163 16 16v32c0 8.837-7.163 16-16 16h-64c-8.837 0-16-7.163-16-16zm0-128v-32c0-8.837 7.163-16 16-16h128c8.837 0 16 7.163 16 16v32c0 8.837-7.163 16-16 16H240c-8.837 0-16-7.163-16-16z"},"sort-amount-up":{"viewBox":"0 0 512 512","path":"M4.702 116.686l79.984-80.002c6.248-6.247 16.383-6.245 22.627 0l79.981 80.002c10.07 10.07 2.899 27.314-11.314 27.314H128v320c0 8.837-7.163 16-16 16H80c-8.837 0-16-7.163-16-16V144H16.016c-14.241 0-21.363-17.264-11.314-27.314zM240 96h256c8.837 0 16-7.163 16-16V48c0-8.837-7.163-16-16-16H240c-8.837 0-16 7.163-16 16v32c0 8.837 7.163 16 16 16zm-16 112v-32c0-8.837 7.163-16 16-16h192c8.837 0 16 7.163 16 16v32c0 8.837-7.163 16-16 16H240c-8.837 0-16-7.163-16-16zm0 256v-32c0-8.837 7.163-16 16-16h64c8.837 0 16 7.163 16 16v32c0 8.837-7.163 16-16 16h-64c-8.837 0-16-7.163-16-16zm0-128v-32c0-8.837 7.163-16 16-16h128c8.837 0 16 7.163 16 16v32c0 8.837-7.163 16-16 16H240c-8.837 0-16-7.163-16-16z"},"sort-numeric-down":{"viewBox":"0 0 448 512","path":"M308.811 113.787l-19.448-20.795c-4.522-4.836-4.274-12.421.556-16.95l43.443-40.741a11.999 11.999 0 0 1 8.209-3.247h31.591c6.627 0 12 5.373 12 12v127.07h25.66c6.627 0 12 5.373 12 12v28.93c0 6.627-5.373 12-12 12H301.649c-6.627 0-12-5.373-12-12v-28.93c0-6.627 5.373-12 12-12h25.414v-57.938c-7.254 6.58-14.211 4.921-18.252.601zm-30.57 238.569c0-32.653 23.865-67.356 68.094-67.356 38.253 0 79.424 28.861 79.424 92.228 0 51.276-32.237 105.772-91.983 105.772-17.836 0-30.546-3.557-38.548-6.781-5.79-2.333-8.789-8.746-6.922-14.703l9.237-29.48c2.035-6.496 9.049-9.983 15.467-7.716 13.029 4.602 27.878 5.275 38.103-4.138-38.742 5.072-72.872-25.36-72.872-67.826zm92.273 19.338c0-22.285-15.302-36.505-25.835-36.505-8.642 0-13.164 7.965-13.164 15.832 0 5.669 1.815 24.168 25.168 24.168 9.973 0 13.377-2.154 13.744-2.731.021-.046.087-.291.087-.764zM175.984 368H128V48c0-8.837-7.163-16-16-16H80c-8.837 0-16 7.163-16 16v320H16.019c-14.212 0-21.384 17.244-11.314 27.314l79.981 80.002c6.245 6.245 16.38 6.247 22.627 0l79.984-80.002c10.05-10.05 2.928-27.314-11.313-27.314z"},"sort-numeric-up":{"viewBox":"0 0 448 512","path":"M308.811 113.787l-19.448-20.795c-4.522-4.836-4.274-12.421.556-16.95l43.443-40.741a11.999 11.999 0 0 1 8.209-3.247h31.591c6.627 0 12 5.373 12 12v127.07h25.66c6.627 0 12 5.373 12 12v28.93c0 6.627-5.373 12-12 12H301.649c-6.627 0-12-5.373-12-12v-28.93c0-6.627 5.373-12 12-12h25.414v-57.938c-7.254 6.58-14.211 4.921-18.252.601zm-30.57 238.569c0-32.653 23.865-67.356 68.094-67.356 38.253 0 79.424 28.861 79.424 92.228 0 51.276-32.237 105.772-91.983 105.772-17.836 0-30.546-3.557-38.548-6.781-5.79-2.333-8.789-8.746-6.922-14.703l9.237-29.48c2.035-6.496 9.049-9.983 15.467-7.716 13.029 4.602 27.878 5.275 38.103-4.138-38.742 5.072-72.872-25.36-72.872-67.826zm92.273 19.338c0-22.285-15.302-36.505-25.835-36.505-8.642 0-13.164 7.965-13.164 15.832 0 5.669 1.815 24.168 25.168 24.168 9.973 0 13.377-2.154 13.744-2.731.021-.046.087-.291.087-.764zM16.016 144H64v320c0 8.837 7.163 16 16 16h32c8.837 0 16-7.163 16-16V144h47.981c14.212 0 21.384-17.244 11.314-27.314l-79.981-80.002c-6.245-6.245-16.38-6.247-22.627 0L4.702 116.686C-5.347 126.736 1.775 144 16.016 144z"},"thumbs-up":{"viewBox":"0 0 512 512","path":"M104 224H24c-13.255 0-24 10.745-24 24v240c0 13.255 10.745 24 24 24h80c13.255 0 24-10.745 24-24V248c0-13.255-10.745-24-24-24zM64 472c-13.255 0-24-10.745-24-24s10.745-24 24-24 24 10.745 24 24-10.745 24-24 24zM384 81.452c0 42.416-25.97 66.208-33.277 94.548h101.723c33.397 0 59.397 27.746 59.553 58.098.084 17.938-7.546 37.249-19.439 49.197l-.11.11c9.836 23.337 8.237 56.037-9.308 79.469 8.681 25.895-.069 57.704-16.382 74.757 4.298 17.598 2.244 32.575-6.148 44.632C440.202 511.587 389.616 512 346.839 512l-2.845-.001c-48.287-.017-87.806-17.598-119.56-31.725-15.957-7.099-36.821-15.887-52.651-16.178-6.54-.12-11.783-5.457-11.783-11.998v-213.77c0-3.2 1.282-6.271 3.558-8.521 39.614-39.144 56.648-80.587 89.117-113.111 14.804-14.832 20.188-37.236 25.393-58.902C282.515 39.293 291.817 0 312 0c24 0 72 8 72 81.452z"},"thumbs-down":{"viewBox":"0 0 512 512","path":"M0 56v240c0 13.255 10.745 24 24 24h80c13.255 0 24-10.745 24-24V56c0-13.255-10.745-24-24-24H24C10.745 32 0 42.745 0 56zm40 200c0-13.255 10.745-24 24-24s24 10.745 24 24-10.745 24-24 24-24-10.745-24-24zm272 256c-20.183 0-29.485-39.293-33.931-57.795-5.206-21.666-10.589-44.07-25.393-58.902-32.469-32.524-49.503-73.967-89.117-113.111a11.98 11.98 0 0 1-3.558-8.521V59.901c0-6.541 5.243-11.878 11.783-11.998 15.831-.29 36.694-9.079 52.651-16.178C256.189 17.598 295.709.017 343.995 0h2.844c42.777 0 93.363.413 113.774 29.737 8.392 12.057 10.446 27.034 6.148 44.632 16.312 17.053 25.063 48.863 16.382 74.757 17.544 23.432 19.143 56.132 9.308 79.469l.11.11c11.893 11.949 19.523 31.259 19.439 49.197-.156 30.352-26.157 58.098-59.553 58.098H350.723C358.03 364.34 384 388.132 384 430.548 384 504 336 512 312 512z"},"long-arrow-alt-down":{"viewBox":"0 0 256 512","path":"M168 345.941V44c0-6.627-5.373-12-12-12h-56c-6.627 0-12 5.373-12 12v301.941H41.941c-21.382 0-32.09 25.851-16.971 40.971l86.059 86.059c9.373 9.373 24.569 9.373 33.941 0l86.059-86.059c15.119-15.119 4.411-40.971-16.971-40.971H168z"},"long-arrow-alt-up":{"viewBox":"0 0 256 512","path":"M88 166.059V468c0 6.627 5.373 12 12 12h56c6.627 0 12-5.373 12-12V166.059h46.059c21.382 0 32.09-25.851 16.971-40.971l-86.059-86.059c-9.373-9.373-24.569-9.373-33.941 0l-86.059 86.059c-15.119 15.119-4.411 40.971 16.971 40.971H88z"},"long-arrow-alt-left":{"viewBox":"0 0 448 512","path":"M134.059 296H436c6.627 0 12-5.373 12-12v-56c0-6.627-5.373-12-12-12H134.059v-46.059c0-21.382-25.851-32.09-40.971-16.971L7.029 239.029c-9.373 9.373-9.373 24.569 0 33.941l86.059 86.059c15.119 15.119 40.971 4.411 40.971-16.971V296z"},"long-arrow-alt-right":{"viewBox":"0 0 448 512","path":"M313.941 216H12c-6.627 0-12 5.373-12 12v56c0 6.627 5.373 12 12 12h301.941v46.059c0 21.382 25.851 32.09 40.971 16.971l86.059-86.059c9.373-9.373 9.373-24.569 0-33.941l-86.059-86.059c-15.119-15.119-40.971-4.411-40.971 16.971V216z"},"female":{"viewBox":"0 0 256 512","path":"M128 0c35.346 0 64 28.654 64 64s-28.654 64-64 64c-35.346 0-64-28.654-64-64S92.654 0 128 0m119.283 354.179l-48-192A24 24 0 0 0 176 144h-11.36c-22.711 10.443-49.59 10.894-73.28 0H80a24 24 0 0 0-23.283 18.179l-48 192C4.935 369.305 16.383 384 32 384h56v104c0 13.255 10.745 24 24 24h32c13.255 0 24-10.745 24-24V384h56c15.591 0 27.071-14.671 23.283-29.821z"},"male":{"viewBox":"0 0 192 512","path":"M96 0c35.346 0 64 28.654 64 64s-28.654 64-64 64-64-28.654-64-64S60.654 0 96 0m48 144h-11.36c-22.711 10.443-49.59 10.894-73.28 0H48c-26.51 0-48 21.49-48 48v136c0 13.255 10.745 24 24 24h16v136c0 13.255 10.745 24 24 24h64c13.255 0 24-10.745 24-24V352h16c13.255 0 24-10.745 24-24V192c0-26.51-21.49-48-48-48z"},"archive":{"viewBox":"0 0 512 512","path":"M32 448c0 17.7 14.3 32 32 32h384c17.7 0 32-14.3 32-32V160H32v288zm160-212c0-6.6 5.4-12 12-12h104c6.6 0 12 5.4 12 12v8c0 6.6-5.4 12-12 12H204c-6.6 0-12-5.4-12-12v-8zM480 32H32C14.3 32 0 46.3 0 64v48c0 8.8 7.2 16 16 16h480c8.8 0 16-7.2 16-16V64c0-17.7-14.3-32-32-32z"},"bug":{"viewBox":"0 0 512 512","path":"M511.988 288.9c-.478 17.43-15.217 31.1-32.653 31.1H424v16c0 21.864-4.882 42.584-13.6 61.145l60.228 60.228c12.496 12.497 12.496 32.758 0 45.255-12.498 12.497-32.759 12.496-45.256 0l-54.736-54.736C345.886 467.965 314.351 480 280 480V236c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v244c-34.351 0-65.886-12.035-90.636-32.108l-54.736 54.736c-12.498 12.497-32.759 12.496-45.256 0-12.496-12.497-12.496-32.758 0-45.255l60.228-60.228C92.882 378.584 88 357.864 88 336v-16H32.666C15.23 320 .491 306.33.013 288.9-.484 270.816 14.028 256 32 256h56v-58.745l-46.628-46.628c-12.496-12.497-12.496-32.758 0-45.255 12.498-12.497 32.758-12.497 45.256 0L141.255 160h229.489l54.627-54.627c12.498-12.497 32.758-12.497 45.256 0 12.496 12.497 12.496 32.758 0 45.255L424 197.255V256h56c17.972 0 32.484 14.816 31.988 32.9zM257 0c-61.856 0-112 50.144-112 112h224C369 50.144 318.856 0 257 0z"},"arrow-circle-right":{"viewBox":"0 0 512 512","path":"M256 8c137 0 248 111 248 248S393 504 256 504 8 393 8 256 119 8 256 8zm-28.9 143.6l75.5 72.4H120c-13.3 0-24 10.7-24 24v16c0 13.3 10.7 24 24 24h182.6l-75.5 72.4c-9.7 9.3-9.9 24.8-.4 34.3l11 10.9c9.4 9.4 24.6 9.4 33.9 0L404.3 273c9.4-9.4 9.4-24.6 0-33.9L271.6 106.3c-9.4-9.4-24.6-9.4-33.9 0l-11 10.9c-9.5 9.6-9.3 25.1.4 34.4z"},"arrow-circle-left":{"viewBox":"0 0 512 512","path":"M256 504C119 504 8 393 8 256S119 8 256 8s248 111 248 248-111 248-248 248zm28.9-143.6L209.4 288H392c13.3 0 24-10.7 24-24v-16c0-13.3-10.7-24-24-24H209.4l75.5-72.4c9.7-9.3 9.9-24.8.4-34.3l-11-10.9c-9.4-9.4-24.6-9.4-33.9 0L107.7 239c-9.4 9.4-9.4 24.6 0 33.9l132.7 132.7c9.4 9.4 24.6 9.4 33.9 0l11-10.9c9.5-9.5 9.3-25-.4-34.3z"},"wheelchair":{"viewBox":"0 0 512 512","path":"M496.101 385.669l14.227 28.663c3.929 7.915.697 17.516-7.218 21.445l-65.465 32.886c-16.049 7.967-35.556 1.194-43.189-15.055L331.679 320H192c-15.925 0-29.426-11.71-31.679-27.475C126.433 55.308 128.38 70.044 128 64c0-36.358 30.318-65.635 67.052-63.929 33.271 1.545 60.048 28.905 60.925 62.201.868 32.933-23.152 60.423-54.608 65.039l4.67 32.69H336c8.837 0 16 7.163 16 16v32c0 8.837-7.163 16-16 16H215.182l4.572 32H352a32 32 0 0 1 28.962 18.392L438.477 396.8l36.178-18.349c7.915-3.929 17.517-.697 21.446 7.218zM311.358 352h-24.506c-7.788 54.204-54.528 96-110.852 96-61.757 0-112-50.243-112-112 0-41.505 22.694-77.809 56.324-97.156-3.712-25.965-6.844-47.86-9.488-66.333C45.956 198.464 0 261.963 0 336c0 97.047 78.953 176 176 176 71.87 0 133.806-43.308 161.11-105.192L311.358 352z"},"lira-sign":{"viewBox":"0 0 384 512","path":"M371.994 256h-48.019C317.64 256 312 260.912 312 267.246 312 368 230.179 416 144 416V256.781l134.603-29.912A12 12 0 0 0 288 215.155v-40.976c0-7.677-7.109-13.38-14.603-11.714L144 191.219V160.78l134.603-29.912A12 12 0 0 0 288 119.154V78.179c0-7.677-7.109-13.38-14.603-11.714L144 95.219V44c0-6.627-5.373-12-12-12H76c-6.627 0-12 5.373-12 12v68.997L9.397 125.131A12 12 0 0 0 0 136.845v40.976c0 7.677 7.109 13.38 14.603 11.714L64 178.558v30.439L9.397 221.131A12 12 0 0 0 0 232.845v40.976c0 7.677 7.109 13.38 14.603 11.714L64 274.558V468c0 6.627 5.373 12 12 12h79.583c134.091 0 223.255-77.834 228.408-211.592.261-6.782-5.211-12.408-11.997-12.408z"},"space-shuttle":{"viewBox":"0 0 640 512","path":"M592.604 208.244C559.735 192.836 515.777 184 472 184H186.327c-4.952-6.555-10.585-11.978-16.72-16H376C229.157 137.747 219.403 32 96.003 32H96v128H80V32c-26.51 0-48 28.654-48 64v64c-23.197 0-32 10.032-32 24v40c0 13.983 8.819 24 32 24v16c-23.197 0-32 10.032-32 24v40c0 13.983 8.819 24 32 24v64c0 35.346 21.49 64 48 64V352h16v128h.003c123.4 0 133.154-105.747 279.997-136H169.606c6.135-4.022 11.768-9.445 16.72-16H472c43.777 0 87.735-8.836 120.604-24.244C622.282 289.845 640 271.992 640 256s-17.718-33.845-47.396-47.756zM488 296a8 8 0 0 1-8-8v-64a8 8 0 0 1 8-8c31.909 0 31.942 80 0 80z"},"envelope-square":{"viewBox":"0 0 448 512","path":"M400 32H48C21.49 32 0 53.49 0 80v352c0 26.51 21.49 48 48 48h352c26.51 0 48-21.49 48-48V80c0-26.51-21.49-48-48-48zM178.117 262.104C87.429 196.287 88.353 196.121 64 177.167V152c0-13.255 10.745-24 24-24h272c13.255 0 24 10.745 24 24v25.167c-24.371 18.969-23.434 19.124-114.117 84.938-10.5 7.655-31.392 26.12-45.883 25.894-14.503.218-35.367-18.227-45.883-25.895zM384 217.775V360c0 13.255-10.745 24-24 24H88c-13.255 0-24-10.745-24-24V217.775c13.958 10.794 33.329 25.236 95.303 70.214 14.162 10.341 37.975 32.145 64.694 32.01 26.887.134 51.037-22.041 64.72-32.025 61.958-44.965 81.325-59.406 95.283-70.199z"},"university":{"viewBox":"0 0 512 512","path":"M496 128v16a8 8 0 0 1-8 8h-24v12c0 6.627-5.373 12-12 12H60c-6.627 0-12-5.373-12-12v-12H24a8 8 0 0 1-8-8v-16a8 8 0 0 1 4.941-7.392l232-88a7.996 7.996 0 0 1 6.118 0l232 88A8 8 0 0 1 496 128zm-24 304H40c-13.255 0-24 10.745-24 24v16a8 8 0 0 0 8 8h464a8 8 0 0 0 8-8v-16c0-13.255-10.745-24-24-24zM96 192v192H60c-6.627 0-12 5.373-12 12v20h416v-20c0-6.627-5.373-12-12-12h-36V192h-64v192h-64V192h-64v192h-64V192H96z"},"graduation-cap":{"viewBox":"0 0 640 512","path":"M622.34 153.2L343.4 67.5c-15.2-4.67-31.6-4.67-46.79 0L17.66 153.2c-23.54 7.23-23.54 38.36 0 45.59l48.63 14.94c-10.67 13.19-17.23 29.28-17.88 46.9C38.78 266.15 32 276.11 32 288c0 10.78 5.68 19.85 13.86 25.65L20.33 428.53C18.11 438.52 25.71 448 35.94 448h56.11c10.24 0 17.84-9.48 15.62-19.47L82.14 313.65C90.32 307.85 96 298.78 96 288c0-11.57-6.47-21.25-15.66-26.87.76-15.02 8.44-28.3 20.69-36.72L296.6 284.5c9.06 2.78 26.44 6.25 46.79 0l278.95-85.7c23.55-7.24 23.55-38.36 0-45.6zM352.79 315.09c-28.53 8.76-52.84 3.92-65.59 0l-145.02-44.55L128 384c0 35.35 85.96 64 192 64s192-28.65 192-64l-14.18-113.47-145.03 44.56z"},"language":{"viewBox":"0 0 640 512","path":"M304 416H24c-13.255 0-24-10.745-24-24V120c0-13.255 10.745-24 24-24h280v320zm-120.676-72.622A12 12 0 0 0 194.839 352h22.863c8.22 0 14.007-8.078 11.362-15.861L171.61 167.085a12 12 0 0 0-11.362-8.139h-32.489a12.001 12.001 0 0 0-11.362 8.139L58.942 336.139C56.297 343.922 62.084 352 70.304 352h22.805a12 12 0 0 0 11.535-8.693l9.118-31.807h60.211l9.351 31.878zm-39.051-140.42s4.32 21.061 7.83 33.21l10.8 37.531h-38.07l11.07-37.531c3.51-12.15 7.83-33.21 7.83-33.21h.54zM616 416H336V96h280c13.255 0 24 10.745 24 24v272c0 13.255-10.745 24-24 24zm-36-228h-64v-16c0-6.627-5.373-12-12-12h-16c-6.627 0-12 5.373-12 12v16h-64c-6.627 0-12 5.373-12 12v16c0 6.627 5.373 12 12 12h114.106c-6.263 14.299-16.518 28.972-30.023 43.206-6.56-6.898-12.397-13.91-17.365-20.933-3.639-5.144-10.585-6.675-15.995-3.446l-7.28 4.346-6.498 3.879c-5.956 3.556-7.693 11.421-3.735 17.117 6.065 8.729 13.098 17.336 20.984 25.726-8.122 6.226-16.841 12.244-26.103 17.964-5.521 3.41-7.381 10.556-4.162 16.19l7.941 13.896c3.362 5.883 10.935 7.826 16.706 4.276 12.732-7.831 24.571-16.175 35.443-24.891 10.917 8.761 22.766 17.102 35.396 24.881 5.774 3.556 13.353 1.618 16.717-4.27l7.944-13.903c3.213-5.623 1.37-12.76-4.135-16.171a312.737 312.737 0 0 1-26.06-18.019c21.024-22.425 35.768-46.289 42.713-69.85H580c6.627 0 12-5.373 12-12v-16c0-6.625-5.373-11.998-12-11.998z"},"fax":{"viewBox":"0 0 512 512","path":"M64 128H32c-17.67 0-32 14.33-32 32v320c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32V160c0-17.67-14.33-32-32-32zm416 32V77.25c0-8.49-3.37-16.62-9.37-22.63L425.37 9.37c-6-6-14.14-9.37-22.63-9.37H160c-17.67 0-32 14.33-32 32v448c0 17.67 14.33 32 32 32h320c17.67 0 32-14.33 32-32V192c0-17.67-14.33-32-32-32zM288 432c0 8.84-7.16 16-16 16h-32c-8.84 0-16-7.16-16-16v-32c0-8.84 7.16-16 16-16h32c8.84 0 16 7.16 16 16v32zm0-128c0 8.84-7.16 16-16 16h-32c-8.84 0-16-7.16-16-16v-32c0-8.84 7.16-16 16-16h32c8.84 0 16 7.16 16 16v32zm128 128c0 8.84-7.16 16-16 16h-32c-8.84 0-16-7.16-16-16v-32c0-8.84 7.16-16 16-16h32c8.84 0 16 7.16 16 16v32zm0-128c0 8.84-7.16 16-16 16h-32c-8.84 0-16-7.16-16-16v-32c0-8.84 7.16-16 16-16h32c8.84 0 16 7.16 16 16v32zm16-112H176V48h208v32c0 8.84 7.16 16 16 16h32v96z"},"building":{"viewBox":"0 0 448 512","path":"M436 480h-20V24c0-13.255-10.745-24-24-24H56C42.745 0 32 10.745 32 24v456H12c-6.627 0-12 5.373-12 12v20h448v-20c0-6.627-5.373-12-12-12zM128 76c0-6.627 5.373-12 12-12h40c6.627 0 12 5.373 12 12v40c0 6.627-5.373 12-12 12h-40c-6.627 0-12-5.373-12-12V76zm0 96c0-6.627 5.373-12 12-12h40c6.627 0 12 5.373 12 12v40c0 6.627-5.373 12-12 12h-40c-6.627 0-12-5.373-12-12v-40zm52 148h-40c-6.627 0-12-5.373-12-12v-40c0-6.627 5.373-12 12-12h40c6.627 0 12 5.373 12 12v40c0 6.627-5.373 12-12 12zm76 160h-64v-84c0-6.627 5.373-12 12-12h40c6.627 0 12 5.373 12 12v84zm64-172c0 6.627-5.373 12-12 12h-40c-6.627 0-12-5.373-12-12v-40c0-6.627 5.373-12 12-12h40c6.627 0 12 5.373 12 12v40zm0-96c0 6.627-5.373 12-12 12h-40c-6.627 0-12-5.373-12-12v-40c0-6.627 5.373-12 12-12h40c6.627 0 12 5.373 12 12v40zm0-96c0 6.627-5.373 12-12 12h-40c-6.627 0-12-5.373-12-12V76c0-6.627 5.373-12 12-12h40c6.627 0 12 5.373 12 12v40z"},"child":{"viewBox":"0 0 384 512","path":"M120 72c0-39.765 32.235-72 72-72s72 32.235 72 72c0 39.764-32.235 72-72 72s-72-32.236-72-72zm254.627 1.373c-12.496-12.497-32.758-12.497-45.254 0L242.745 160H141.254L54.627 73.373c-12.496-12.497-32.758-12.497-45.254 0-12.497 12.497-12.497 32.758 0 45.255L104 213.254V480c0 17.673 14.327 32 32 32h16c17.673 0 32-14.327 32-32V368h16v112c0 17.673 14.327 32 32 32h16c17.673 0 32-14.327 32-32V213.254l94.627-94.627c12.497-12.497 12.497-32.757 0-45.254z"},"paw":{"viewBox":"0 0 512 512","path":"M256 224c-79.41 0-192 122.76-192 200.25 0 34.9 26.81 55.75 71.74 55.75 48.84 0 81.09-25.08 120.26-25.08 39.51 0 71.85 25.08 120.26 25.08 44.93 0 71.74-20.85 71.74-55.75C448 346.76 335.41 224 256 224zm-147.28-12.61c-10.4-34.65-42.44-57.09-71.56-50.13-29.12 6.96-44.29 40.69-33.89 75.34 10.4 34.65 42.44 57.09 71.56 50.13 29.12-6.96 44.29-40.69 33.89-75.34zm84.72-20.78c30.94-8.14 46.42-49.94 34.58-93.36s-46.52-72.01-77.46-63.87-46.42 49.94-34.58 93.36c11.84 43.42 46.53 72.02 77.46 63.87zm281.39-29.34c-29.12-6.96-61.15 15.48-71.56 50.13-10.4 34.65 4.77 68.38 33.89 75.34 29.12 6.96 61.15-15.48 71.56-50.13 10.4-34.65-4.77-68.38-33.89-75.34zm-156.27 29.34c30.94 8.14 65.62-20.45 77.46-63.87 11.84-43.42-3.64-85.21-34.58-93.36s-65.62 20.45-77.46 63.87c-11.84 43.42 3.64 85.22 34.58 93.36z"},"utensil-spoon":{"viewBox":"0 0 512 512","path":"M480.1 31.9c-55-55.1-164.9-34.5-227.8 28.5-49.3 49.3-55.1 110-28.8 160.4L9 413.2c-11.6 10.5-12.1 28.5-1 39.5L59.3 504c11 11 29.1 10.5 39.5-1.1l192.4-214.4c50.4 26.3 111.1 20.5 160.4-28.8 63-62.9 83.6-172.8 28.5-227.8z"},"cube":{"viewBox":"0 0 512 512","path":"M239.1 6.3l-208 78c-18.7 7-31.1 25-31.1 45v225.1c0 18.2 10.3 34.8 26.5 42.9l208 104c13.5 6.8 29.4 6.8 42.9 0l208-104c16.3-8.1 26.5-24.8 26.5-42.9V129.3c0-20-12.4-37.9-31.1-44.9l-208-78C262 2.2 250 2.2 239.1 6.3zM256 68.4l192 72v1.1l-192 78-192-78v-1.1l192-72zm32 356V275.5l160-65v133.9l-160 80z"},"cubes":{"viewBox":"0 0 512 512","path":"M488.6 250.2L392 214V105.5c0-15-9.3-28.4-23.4-33.7l-100-37.5c-8.1-3.1-17.1-3.1-25.3 0l-100 37.5c-14.1 5.3-23.4 18.7-23.4 33.7V214l-96.6 36.2C9.3 255.5 0 268.9 0 283.9V394c0 13.6 7.7 26.1 19.9 32.2l100 50c10.1 5.1 22.1 5.1 32.2 0l103.9-52 103.9 52c10.1 5.1 22.1 5.1 32.2 0l100-50c12.2-6.1 19.9-18.6 19.9-32.2V283.9c0-15-9.3-28.4-23.4-33.7zM358 214.8l-85 31.9v-68.2l85-37v73.3zM154 104.1l102-38.2 102 38.2v.6l-102 41.4-102-41.4v-.6zm84 291.1l-85 42.5v-79.1l85-38.8v75.4zm0-112l-102 41.4-102-41.4v-.6l102-38.2 102 38.2v.6zm240 112l-85 42.5v-79.1l85-38.8v75.4zm0-112l-102 41.4-102-41.4v-.6l102-38.2 102 38.2v.6z"},"recycle":{"viewBox":"0 0 512 512","path":"M184.561 261.903c3.232 13.997-12.123 24.635-24.068 17.168l-40.736-25.455-50.867 81.402C55.606 356.273 70.96 384 96.012 384H148c6.627 0 12 5.373 12 12v40c0 6.627-5.373 12-12 12H96.115c-75.334 0-121.302-83.048-81.408-146.88l50.822-81.388-40.725-25.448c-12.081-7.547-8.966-25.961 4.879-29.158l110.237-25.45c8.611-1.988 17.201 3.381 19.189 11.99l25.452 110.237zm98.561-182.915l41.289 66.076-40.74 25.457c-12.051 7.528-9 25.953 4.879 29.158l110.237 25.45c8.672 1.999 17.215-3.438 19.189-11.99l25.45-110.237c3.197-13.844-11.99-24.719-24.068-17.168l-40.687 25.424-41.263-66.082c-37.521-60.033-125.209-60.171-162.816 0l-17.963 28.766c-3.51 5.62-1.8 13.021 3.82 16.533l33.919 21.195c5.62 3.512 13.024 1.803 16.536-3.817l17.961-28.743c12.712-20.341 41.973-19.676 54.257-.022zM497.288 301.12l-27.515-44.065c-3.511-5.623-10.916-7.334-16.538-3.821l-33.861 21.159c-5.62 3.512-7.33 10.915-3.818 16.536l27.564 44.112c13.257 21.211-2.057 48.96-27.136 48.96H320V336.02c0-14.213-17.242-21.383-27.313-11.313l-80 79.981c-6.249 6.248-6.249 16.379 0 22.627l80 79.989C302.689 517.308 320 510.3 320 495.989V448h95.88c75.274 0 121.335-82.997 81.408-146.88z"},"car":{"viewBox":"0 0 512 512","path":"M499.99 176h-59.87l-16.64-41.6C406.38 91.63 365.57 64 319.5 64h-127c-46.06 0-86.88 27.63-103.99 70.4L71.87 176H12.01C4.2 176-1.53 183.34.37 190.91l6 24C7.7 220.25 12.5 224 18.01 224h20.07C24.65 235.73 16 252.78 16 272v48c0 16.12 6.16 30.67 16 41.93V416c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32v-32h256v32c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32v-54.07c9.84-11.25 16-25.8 16-41.93v-48c0-19.22-8.65-36.27-22.07-48H494c5.51 0 10.31-3.75 11.64-9.09l6-24c1.89-7.57-3.84-14.91-11.65-14.91zm-352.06-17.83c7.29-18.22 24.94-30.17 44.57-30.17h127c19.63 0 37.28 11.95 44.57 30.17L384 208H128l19.93-49.83zM96 319.8c-19.2 0-32-12.76-32-31.9S76.8 256 96 256s48 28.71 48 47.85-28.8 15.95-48 15.95zm320 0c-19.2 0-48 3.19-48-15.95S396.8 256 416 256s32 12.76 32 31.9-12.8 31.9-32 31.9z"},"taxi":{"viewBox":"0 0 512 512","path":"M462 241.64l-22-84.84c-9.6-35.2-41.6-60.8-76.8-60.8H352V64c0-17.67-14.33-32-32-32H192c-17.67 0-32 14.33-32 32v32h-11.2c-35.2 0-67.2 25.6-76.8 60.8l-22 84.84C21.41 248.04 0 273.47 0 304v48c0 23.63 12.95 44.04 32 55.12V448c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32v-32h256v32c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32v-40.88c19.05-11.09 32-31.5 32-55.12v-48c0-30.53-21.41-55.96-50-62.36zM96 352c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm20.55-112l17.2-66.36c2.23-8.16 9.59-13.64 15.06-13.64h214.4c5.47 0 12.83 5.48 14.85 12.86L395.45 240h-278.9zM416 352c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32z"},"tree":{"viewBox":"0 0 384 512","path":"M378.31 378.49L298.42 288h30.63c9.01 0 16.98-5 20.78-13.06 3.8-8.04 2.55-17.26-3.28-24.05L268.42 160h28.89c9.1 0 17.3-5.35 20.86-13.61 3.52-8.13 1.86-17.59-4.24-24.08L203.66 4.83c-6.03-6.45-17.28-6.45-23.32 0L70.06 122.31c-6.1 6.49-7.75 15.95-4.24 24.08C69.38 154.65 77.59 160 86.69 160h28.89l-78.14 90.91c-5.81 6.78-7.06 15.99-3.27 24.04C37.97 283 45.93 288 54.95 288h30.63L5.69 378.49c-6 6.79-7.36 16.09-3.56 24.26 3.75 8.05 12 13.25 21.01 13.25H160v24.45l-30.29 48.4c-5.32 10.64 2.42 23.16 14.31 23.16h95.96c11.89 0 19.63-12.52 14.31-23.16L224 440.45V416h136.86c9.01 0 17.26-5.2 21.01-13.25 3.8-8.17 2.44-17.47-3.56-24.26z"},"database":{"viewBox":"0 0 448 512","path":"M448 73.143v45.714C448 159.143 347.667 192 224 192S0 159.143 0 118.857V73.143C0 32.857 100.333 0 224 0s224 32.857 224 73.143zM448 176v102.857C448 319.143 347.667 352 224 352S0 319.143 0 278.857V176c48.125 33.143 136.208 48.572 224 48.572S399.874 209.143 448 176zm0 160v102.857C448 479.143 347.667 512 224 512S0 479.143 0 438.857V336c48.125 33.143 136.208 48.572 224 48.572S399.874 369.143 448 336z"},"life-ring":{"viewBox":"0 0 512 512","path":"M256 8C119.033 8 8 119.033 8 256s111.033 248 248 248 248-111.033 248-248S392.967 8 256 8zm173.696 119.559l-63.399 63.399c-10.987-18.559-26.67-34.252-45.255-45.255l63.399-63.399a218.396 218.396 0 0 1 45.255 45.255zM256 352c-53.019 0-96-42.981-96-96s42.981-96 96-96 96 42.981 96 96-42.981 96-96 96zM127.559 82.304l63.399 63.399c-18.559 10.987-34.252 26.67-45.255 45.255l-63.399-63.399a218.372 218.372 0 0 1 45.255-45.255zM82.304 384.441l63.399-63.399c10.987 18.559 26.67 34.252 45.255 45.255l-63.399 63.399a218.396 218.396 0 0 1-45.255-45.255zm302.137 45.255l-63.399-63.399c18.559-10.987 34.252-26.67 45.255-45.255l63.399 63.399a218.403 218.403 0 0 1-45.255 45.255z"},"circle-notch":{"viewBox":"0 0 512 512","path":"M288 39.056v16.659c0 10.804 7.281 20.159 17.686 23.066C383.204 100.434 440 171.518 440 256c0 101.689-82.295 184-184 184-101.689 0-184-82.295-184-184 0-84.47 56.786-155.564 134.312-177.219C216.719 75.874 224 66.517 224 55.712V39.064c0-15.709-14.834-27.153-30.046-23.234C86.603 43.482 7.394 141.206 8.003 257.332c.72 137.052 111.477 246.956 248.531 246.667C393.255 503.711 504 392.788 504 256c0-115.633-79.14-212.779-186.211-240.236C302.678 11.889 288 23.456 288 39.056z"},"paper-plane":{"viewBox":"0 0 512 512","path":"M476 3.2L12.5 270.6c-18.1 10.4-15.8 35.6 2.2 43.2L121 358.4l287.3-253.2c5.5-4.9 13.3 2.6 8.6 8.3L176 407v80.5c0 23.6 28.5 32.9 42.5 15.8L282 426l124.6 52.2c14.2 6 30.4-2.9 33-18.2l72-432C515 7.8 493.3-6.8 476 3.2z"},"history":{"viewBox":"0 0 512 512","path":"M504 255.531c.253 136.64-111.18 248.372-247.82 248.468-59.015.042-113.223-20.53-155.822-54.911-11.077-8.94-11.905-25.541-1.839-35.607l11.267-11.267c8.609-8.609 22.353-9.551 31.891-1.984C173.062 425.135 212.781 440 256 440c101.705 0 184-82.311 184-184 0-101.705-82.311-184-184-184-48.814 0-93.149 18.969-126.068 49.932l50.754 50.754c10.08 10.08 2.941 27.314-11.313 27.314H24c-8.837 0-16-7.163-16-16V38.627c0-14.254 17.234-21.393 27.314-11.314l49.372 49.372C129.209 34.136 189.552 8 256 8c136.81 0 247.747 110.78 248 247.531zm-180.912 78.784l9.823-12.63c8.138-10.463 6.253-25.542-4.21-33.679L288 256.349V152c0-13.255-10.745-24-24-24h-16c-13.255 0-24 10.745-24 24v135.651l65.409 50.874c10.463 8.137 25.541 6.253 33.679-4.21z"},"heading":{"viewBox":"0 0 512 512","path":"M496 80V48c0-8.837-7.163-16-16-16H320c-8.837 0-16 7.163-16 16v32c0 8.837 7.163 16 16 16h37.621v128H154.379V96H192c8.837 0 16-7.163 16-16V48c0-8.837-7.163-16-16-16H32c-8.837 0-16 7.163-16 16v32c0 8.837 7.163 16 16 16h37.275v320H32c-8.837 0-16 7.163-16 16v32c0 8.837 7.163 16 16 16h160c8.837 0 16-7.163 16-16v-32c0-8.837-7.163-16-16-16h-37.621V288H357.62v128H320c-8.837 0-16 7.163-16 16v32c0 8.837 7.163 16 16 16h160c8.837 0 16-7.163 16-16v-32c0-8.837-7.163-16-16-16h-37.275V96H480c8.837 0 16-7.163 16-16z"},"paragraph":{"viewBox":"0 0 448 512","path":"M408 32H177.531C88.948 32 16.045 103.335 16 191.918 15.956 280.321 87.607 352 176 352v104c0 13.255 10.745 24 24 24h32c13.255 0 24-10.745 24-24V112h32v344c0 13.255 10.745 24 24 24h32c13.255 0 24-10.745 24-24V112h40c13.255 0 24-10.745 24-24V56c0-13.255-10.745-24-24-24z"},"sliders-h":{"viewBox":"0 0 512 512","path":"M496 384H160v-16c0-8.8-7.2-16-16-16h-32c-8.8 0-16 7.2-16 16v16H16c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h80v16c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16v-16h336c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16zm0-160h-80v-16c0-8.8-7.2-16-16-16h-32c-8.8 0-16 7.2-16 16v16H16c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h336v16c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16v-16h80c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16zm0-160H288V48c0-8.8-7.2-16-16-16h-32c-8.8 0-16 7.2-16 16v16H16C7.2 64 0 71.2 0 80v32c0 8.8 7.2 16 16 16h208v16c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16v-16h208c8.8 0 16-7.2 16-16V80c0-8.8-7.2-16-16-16z"},"share-alt":{"viewBox":"0 0 448 512","path":"M352 320c-22.608 0-43.387 7.819-59.79 20.895l-102.486-64.054a96.551 96.551 0 0 0 0-41.683l102.486-64.054C308.613 184.181 329.392 192 352 192c53.019 0 96-42.981 96-96S405.019 0 352 0s-96 42.981-96 96c0 7.158.79 14.13 2.276 20.841L155.79 180.895C139.387 167.819 118.608 160 96 160c-53.019 0-96 42.981-96 96s42.981 96 96 96c22.608 0 43.387-7.819 59.79-20.895l102.486 64.054A96.301 96.301 0 0 0 256 416c0 53.019 42.981 96 96 96s96-42.981 96-96-42.981-96-96-96z"},"share-alt-square":{"viewBox":"0 0 448 512","path":"M448 80v352c0 26.51-21.49 48-48 48H48c-26.51 0-48-21.49-48-48V80c0-26.51 21.49-48 48-48h352c26.51 0 48 21.49 48 48zM304 296c-14.562 0-27.823 5.561-37.783 14.671l-67.958-40.775a56.339 56.339 0 0 0 0-27.793l67.958-40.775C276.177 210.439 289.438 216 304 216c30.928 0 56-25.072 56-56s-25.072-56-56-56-56 25.072-56 56c0 4.797.605 9.453 1.74 13.897l-67.958 40.775C171.823 205.561 158.562 200 144 200c-30.928 0-56 25.072-56 56s25.072 56 56 56c14.562 0 27.823-5.561 37.783-14.671l67.958 40.775a56.088 56.088 0 0 0-1.74 13.897c0 30.928 25.072 56 56 56s56-25.072 56-56C360 321.072 334.928 296 304 296z"},"bomb":{"viewBox":"0 0 512 512","path":"M440.5 88.5l-52 52L415 167c9.4 9.4 9.4 24.6 0 33.9l-17.4 17.4c11.8 26.1 18.4 55.1 18.4 85.6 0 114.9-93.1 208-208 208S0 418.9 0 304 93.1 96 208 96c30.5 0 59.5 6.6 85.6 18.4L311 97c9.4-9.4 24.6-9.4 33.9 0l26.5 26.5 52-52 17.1 17zM500 60h-24c-6.6 0-12 5.4-12 12s5.4 12 12 12h24c6.6 0 12-5.4 12-12s-5.4-12-12-12zM440 0c-6.6 0-12 5.4-12 12v24c0 6.6 5.4 12 12 12s12-5.4 12-12V12c0-6.6-5.4-12-12-12zm33.9 55l17-17c4.7-4.7 4.7-12.3 0-17-4.7-4.7-12.3-4.7-17 0l-17 17c-4.7 4.7-4.7 12.3 0 17 4.8 4.7 12.4 4.7 17 0zm-67.8 0c4.7 4.7 12.3 4.7 17 0 4.7-4.7 4.7-12.3 0-17l-17-17c-4.7-4.7-12.3-4.7-17 0-4.7 4.7-4.7 12.3 0 17l17 17zm67.8 34c-4.7-4.7-12.3-4.7-17 0-4.7 4.7-4.7 12.3 0 17l17 17c4.7 4.7 12.3 4.7 17 0 4.7-4.7 4.7-12.3 0-17l-17-17zM112 272c0-35.3 28.7-64 64-64 8.8 0 16-7.2 16-16s-7.2-16-16-16c-52.9 0-96 43.1-96 96 0 8.8 7.2 16 16 16s16-7.2 16-16z"},"tty":{"viewBox":"0 0 512 512","path":"M5.37 103.822c138.532-138.532 362.936-138.326 501.262 0 6.078 6.078 7.074 15.496 2.583 22.681l-43.214 69.138a18.332 18.332 0 0 1-22.356 7.305l-86.422-34.569a18.335 18.335 0 0 1-11.434-18.846L351.741 90c-62.145-22.454-130.636-21.986-191.483 0l5.953 59.532a18.331 18.331 0 0 1-11.434 18.846l-86.423 34.568a18.334 18.334 0 0 1-22.356-7.305L2.787 126.502a18.333 18.333 0 0 1 2.583-22.68zM96 308v-40c0-6.627-5.373-12-12-12H44c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm-336 96v-40c0-6.627-5.373-12-12-12H92c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zM96 500v-40c0-6.627-5.373-12-12-12H44c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm288 0v-40c0-6.627-5.373-12-12-12H140c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h232c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12z"},"binoculars":{"viewBox":"0 0 512 512","path":"M416 48c0-8.84-7.16-16-16-16h-64c-8.84 0-16 7.16-16 16v48h96V48zM63.91 159.99C61.4 253.84 3.46 274.22 0 404v44c0 17.67 14.33 32 32 32h96c17.67 0 32-14.33 32-32V288h32V128H95.84c-17.63 0-31.45 14.37-31.93 31.99zm384.18 0c-.48-17.62-14.3-31.99-31.93-31.99H320v160h32v160c0 17.67 14.33 32 32 32h96c17.67 0 32-14.33 32-32v-44c-3.46-129.78-61.4-150.16-63.91-244.01zM176 32h-64c-8.84 0-16 7.16-16 16v48h96V48c0-8.84-7.16-16-16-16zm48 256h64V128h-64v160z"},"plug":{"viewBox":"0 0 384 512","path":"M256 144V32c0-17.673 14.327-32 32-32s32 14.327 32 32v112h-64zm112 16H16c-8.837 0-16 7.163-16 16v32c0 8.837 7.163 16 16 16h16v32c0 77.406 54.969 141.971 128 156.796V512h64v-99.204c73.031-14.825 128-79.39 128-156.796v-32h16c8.837 0 16-7.163 16-16v-32c0-8.837-7.163-16-16-16zm-240-16V32c0-17.673-14.327-32-32-32S64 14.327 64 32v112h64z"},"wifi":{"viewBox":"0 0 640 512","path":"M634.91 154.88C457.74-8.99 182.19-8.93 5.09 154.88c-6.66 6.16-6.79 16.59-.35 22.98l34.24 33.97c6.14 6.1 16.02 6.23 22.4.38 145.92-133.68 371.3-133.71 517.25 0 6.38 5.85 16.26 5.71 22.4-.38l34.24-33.97c6.43-6.39 6.3-16.82-.36-22.98zM320 352c-35.35 0-64 28.65-64 64s28.65 64 64 64 64-28.65 64-64-28.65-64-64-64zm202.67-83.59c-115.26-101.93-290.21-101.82-405.34 0-6.9 6.1-7.12 16.69-.57 23.15l34.44 33.99c6 5.92 15.66 6.32 22.05.8 83.95-72.57 209.74-72.41 293.49 0 6.39 5.52 16.05 5.13 22.05-.8l34.44-33.99c6.56-6.46 6.33-17.06-.56-23.15z"},"calculator":{"viewBox":"0 0 448 512","path":"M400 0H48C22.4 0 0 22.4 0 48v416c0 25.6 22.4 48 48 48h352c25.6 0 48-22.4 48-48V48c0-25.6-22.4-48-48-48zM128 435.2c0 6.4-6.4 12.8-12.8 12.8H76.8c-6.4 0-12.8-6.4-12.8-12.8v-38.4c0-6.4 6.4-12.8 12.8-12.8h38.4c6.4 0 12.8 6.4 12.8 12.8v38.4zm0-128c0 6.4-6.4 12.8-12.8 12.8H76.8c-6.4 0-12.8-6.4-12.8-12.8v-38.4c0-6.4 6.4-12.8 12.8-12.8h38.4c6.4 0 12.8 6.4 12.8 12.8v38.4zm128 128c0 6.4-6.4 12.8-12.8 12.8h-38.4c-6.4 0-12.8-6.4-12.8-12.8v-38.4c0-6.4 6.4-12.8 12.8-12.8h38.4c6.4 0 12.8 6.4 12.8 12.8v38.4zm0-128c0 6.4-6.4 12.8-12.8 12.8h-38.4c-6.4 0-12.8-6.4-12.8-12.8v-38.4c0-6.4 6.4-12.8 12.8-12.8h38.4c6.4 0 12.8 6.4 12.8 12.8v38.4zm128 128c0 6.4-6.4 12.8-12.8 12.8h-38.4c-6.4 0-12.8-6.4-12.8-12.8V268.8c0-6.4 6.4-12.8 12.8-12.8h38.4c6.4 0 12.8 6.4 12.8 12.8v166.4zm0-256c0 6.4-6.4 12.8-12.8 12.8H76.8c-6.4 0-12.8-6.4-12.8-12.8V76.8C64 70.4 70.4 64 76.8 64h294.4c6.4 0 12.8 6.4 12.8 12.8v102.4z"},"bell-slash":{"viewBox":"0 0 640 512","path":"M633.82 458.1l-90.62-70.05c.19-1.38.8-2.66.8-4.06.05-7.55-2.61-15.27-8.61-21.71-19.32-20.76-55.47-51.99-55.47-154.29 0-77.7-54.48-139.9-127.94-155.16V32c0-17.67-14.32-32-31.98-32s-31.98 14.33-31.98 32v20.84c-40.33 8.38-74.66 31.07-97.59 62.57L45.47 3.37C38.49-2.05 28.43-.8 23.01 6.18L3.37 31.45C-2.05 38.42-.8 48.47 6.18 53.9l588.35 454.73c6.98 5.43 17.03 4.17 22.46-2.81l19.64-25.27c5.42-6.97 4.17-17.02-2.81-22.45zM157.23 251.54c-8.61 67.96-36.41 93.33-52.62 110.75-6 6.45-8.66 14.16-8.61 21.71.11 16.4 12.98 32 32.1 32h241.92L157.23 251.54zM320 512c35.32 0 63.97-28.65 63.97-64H256.03c0 35.35 28.65 64 63.97 64z"},"copyright":{"viewBox":"0 0 512 512","path":"M256 8C119.033 8 8 119.033 8 256s111.033 248 248 248 248-111.033 248-248S392.967 8 256 8zm117.134 346.753c-1.592 1.867-39.776 45.731-109.851 45.731-84.692 0-144.484-63.26-144.484-145.567 0-81.303 62.004-143.401 143.762-143.401 66.957 0 101.965 37.315 103.422 38.904a12 12 0 0 1 1.238 14.623l-22.38 34.655c-4.049 6.267-12.774 7.351-18.234 2.295-.233-.214-26.529-23.88-61.88-23.88-46.116 0-73.916 33.575-73.916 76.082 0 39.602 25.514 79.692 74.277 79.692 38.697 0 65.28-28.338 65.544-28.625 5.132-5.565 14.059-5.033 18.508 1.053l24.547 33.572a12.001 12.001 0 0 1-.553 14.866z"},"at":{"viewBox":"0 0 512 512","path":"M256 8C118.941 8 8 118.919 8 256c0 137.059 110.919 248 248 248 48.154 0 95.342-14.14 135.408-40.223 12.005-7.815 14.625-24.288 5.552-35.372l-10.177-12.433c-7.671-9.371-21.179-11.667-31.373-5.129C325.92 429.757 291.314 440 256 440c-101.458 0-184-82.542-184-184S154.542 72 256 72c100.139 0 184 57.619 184 160 0 38.786-21.093 79.742-58.17 83.693-17.349-.454-16.91-12.857-13.476-30.024l23.433-121.11C394.653 149.75 383.308 136 368.225 136h-44.981a13.518 13.518 0 0 0-13.432 11.993l-.01.092c-14.697-17.901-40.448-21.775-59.971-21.775-74.58 0-137.831 62.234-137.831 151.46 0 65.303 36.785 105.87 96 105.87 26.984 0 57.369-15.637 74.991-38.333 9.522 34.104 40.613 34.103 70.71 34.103C462.609 379.41 504 307.798 504 232 504 95.653 394.023 8 256 8zm-21.68 304.43c-22.249 0-36.07-15.623-36.07-40.771 0-44.993 30.779-72.729 58.63-72.729 22.292 0 35.601 15.241 35.601 40.77 0 45.061-33.875 72.73-58.161 72.73z"},"eye-dropper":{"viewBox":"0 0 512 512","path":"M50.75 333.25c-12 12-18.75 28.28-18.75 45.26V424L0 480l32 32 56-32h45.49c16.97 0 33.25-6.74 45.25-18.74l126.64-126.62-128-128L50.75 333.25zM483.88 28.12c-37.47-37.5-98.28-37.5-135.75 0l-77.09 77.09-13.1-13.1c-9.44-9.44-24.65-9.31-33.94 0l-40.97 40.97c-9.37 9.37-9.37 24.57 0 33.94l161.94 161.94c9.44 9.44 24.65 9.31 33.94 0L419.88 288c9.37-9.37 9.37-24.57 0-33.94l-13.1-13.1 77.09-77.09c37.51-37.48 37.51-98.26.01-135.75z"},"paint-brush":{"viewBox":"0 0 512 512","path":"M167.02 309.34c-40.12 2.58-76.53 17.86-97.19 72.3-2.35 6.21-8 9.98-14.59 9.98-11.11 0-45.46-27.67-55.25-34.35C0 439.62 37.93 512 128 512c75.86 0 128-43.77 128-120.19 0-3.11-.65-6.08-.97-9.13l-88.01-73.34zM457.89 0c-15.16 0-29.37 6.71-40.21 16.45C213.27 199.05 192 203.34 192 257.09c0 13.7 3.25 26.76 8.73 38.7l63.82 53.18c7.21 1.8 14.64 3.03 22.39 3.03 62.11 0 98.11-45.47 211.16-256.46 7.38-14.35 13.9-29.85 13.9-45.99C512 20.64 486 0 457.89 0z"},"birthday-cake":{"viewBox":"0 0 448 512","path":"M448 384c-28.02 0-31.26-32-74.5-32-43.43 0-46.825 32-74.75 32-27.695 0-31.454-32-74.75-32-42.842 0-47.218 32-74.5 32-28.148 0-31.202-32-74.75-32-43.547 0-46.653 32-74.75 32v-80c0-26.5 21.5-48 48-48h16V112h64v144h64V112h64v144h64V112h64v144h16c26.5 0 48 21.5 48 48v80zm0 128H0v-96c43.356 0 46.767-32 74.75-32 27.951 0 31.253 32 74.75 32 42.843 0 47.217-32 74.5-32 28.148 0 31.201 32 74.75 32 43.357 0 46.767-32 74.75-32 27.488 0 31.252 32 74.5 32v96zM96 96c-17.75 0-32-14.25-32-32 0-31 32-23 32-64 12 0 32 29.5 32 56s-14.25 40-32 40zm128 0c-17.75 0-32-14.25-32-32 0-31 32-23 32-64 12 0 32 29.5 32 56s-14.25 40-32 40zm128 0c-17.75 0-32-14.25-32-32 0-31 32-23 32-64 12 0 32 29.5 32 56s-14.25 40-32 40z"},"chart-area":{"viewBox":"0 0 512 512","path":"M500 384c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12H12c-6.6 0-12-5.4-12-12V76c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v308h436zM372.7 159.5L288 216l-85.3-113.7c-5.1-6.8-15.5-6.3-19.9 1L96 248v104h384l-89.9-187.8c-3.2-6.5-11.4-8.7-17.4-4.7z"},"chart-pie":{"viewBox":"0 0 544 512","path":"M527.79 288H290.5l158.03 158.03c6.04 6.04 15.98 6.53 22.19.68 38.7-36.46 65.32-85.61 73.13-140.86 1.34-9.46-6.51-17.85-16.06-17.85zm-15.83-64.8C503.72 103.74 408.26 8.28 288.8.04 279.68-.59 272 7.1 272 16.24V240h223.77c9.14 0 16.82-7.68 16.19-16.8zM224 288V50.71c0-9.55-8.39-17.4-17.84-16.06C86.99 51.49-4.1 155.6.14 280.37 4.5 408.51 114.83 513.59 243.03 511.98c50.4-.63 96.97-16.87 135.26-44.03 7.9-5.6 8.42-17.23 1.57-24.08L224 288z"},"chart-line":{"viewBox":"0 0 512 512","path":"M496 384H64V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16zM464 96H345.94c-21.38 0-32.09 25.85-16.97 40.97l32.4 32.4L288 242.75l-73.37-73.37c-12.5-12.5-32.76-12.5-45.25 0l-68.69 68.69c-6.25 6.25-6.25 16.38 0 22.63l22.62 22.62c6.25 6.25 16.38 6.25 22.63 0L192 237.25l73.37 73.37c12.5 12.5 32.76 12.5 45.25 0l96-96 32.4 32.4c15.12 15.12 40.97 4.41 40.97-16.97V112c.01-8.84-7.15-16-15.99-16z"},"toggle-off":{"viewBox":"0 0 576 512","path":"M384 64H192C85.961 64 0 149.961 0 256s85.961 192 192 192h192c106.039 0 192-85.961 192-192S490.039 64 384 64zM64 256c0-70.741 57.249-128 128-128 70.741 0 128 57.249 128 128 0 70.741-57.249 128-128 128-70.741 0-128-57.249-128-128zm320 128h-48.905c65.217-72.858 65.236-183.12 0-256H384c70.741 0 128 57.249 128 128 0 70.74-57.249 128-128 128z"},"toggle-on":{"viewBox":"0 0 576 512","path":"M576 256c0 106.039-85.961 192-192 192H192C85.961 448 0 362.039 0 256S85.961 64 192 64h192c106.039 0 192 85.961 192 192zM384 128c-70.741 0-128 57.249-128 128 0 70.741 57.249 128 128 128 70.741 0 128-57.249 128-128 0-70.741-57.249-128-128-128"},"bicycle":{"viewBox":"0 0 640 512","path":"M512.509 192.001c-16.373-.064-32.03 2.955-46.436 8.495l-77.68-125.153A24 24 0 0 0 368.001 64h-64c-8.837 0-16 7.163-16 16v16c0 8.837 7.163 16 16 16h50.649l14.896 24H256.002v-16c0-8.837-7.163-16-16-16h-87.459c-13.441 0-24.777 10.999-24.536 24.437.232 13.044 10.876 23.563 23.995 23.563h48.726l-29.417 47.52c-13.433-4.83-27.904-7.483-42.992-7.52C58.094 191.83.412 249.012.002 319.236-.413 390.279 57.055 448 128.002 448c59.642 0 109.758-40.793 123.967-96h52.033a24 24 0 0 0 20.406-11.367L410.37 201.77l14.938 24.067c-25.455 23.448-41.385 57.081-41.307 94.437.145 68.833 57.899 127.051 126.729 127.719 70.606.685 128.181-55.803 129.255-125.996 1.086-70.941-56.526-129.72-127.476-129.996zM186.75 265.772c9.727 10.529 16.673 23.661 19.642 38.228h-43.306l23.664-38.228zM128.002 400c-44.112 0-80-35.888-80-80s35.888-80 80-80c5.869 0 11.586.653 17.099 1.859l-45.505 73.509C89.715 331.327 101.213 352 120.002 352h81.3c-12.37 28.225-40.562 48-73.3 48zm162.63-96h-35.624c-3.96-31.756-19.556-59.894-42.383-80.026L237.371 184h127.547l-74.286 120zm217.057 95.886c-41.036-2.165-74.049-35.692-75.627-76.755-.812-21.121 6.633-40.518 19.335-55.263l44.433 71.586c4.66 7.508 14.524 9.816 22.032 5.156l13.594-8.437c7.508-4.66 9.817-14.524 5.156-22.032l-44.468-71.643a79.901 79.901 0 0 1 19.858-2.497c44.112 0 80 35.888 80 80-.001 45.54-38.252 82.316-84.313 79.885z"},"bus":{"viewBox":"0 0 512 512","path":"M488 128h-8V80c0-44.8-99.2-80-224-80S32 35.2 32 80v48h-8c-13.25 0-24 10.74-24 24v80c0 13.25 10.75 24 24 24h8v160c0 17.67 14.33 32 32 32v32c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32v-32h192v32c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32v-32h6.4c16 0 25.6-12.8 25.6-25.6V256h8c13.25 0 24-10.75 24-24v-80c0-13.26-10.75-24-24-24zM112 400c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm16-112c-17.67 0-32-14.33-32-32V128c0-17.67 14.33-32 32-32h256c17.67 0 32 14.33 32 32v128c0 17.67-14.33 32-32 32H128zm272 112c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32z"},"shekel-sign":{"viewBox":"0 0 448 512","path":"M248 168v168c0 8.84 7.16 16 16 16h48c8.84 0 16-7.16 16-16V168c0-75.11-60.89-136-136-136H24C10.75 32 0 42.74 0 56v408c0 8.84 7.16 16 16 16h48c8.84 0 16-7.16 16-16V112h112c30.93 0 56 25.07 56 56zM432 32h-48c-8.84 0-16 7.16-16 16v296c0 30.93-25.07 56-56 56H200V176c0-8.84-7.16-16-16-16h-48c-8.84 0-16 7.16-16 16v280c0 13.25 10.75 24 24 24h168c75.11 0 136-60.89 136-136V48c0-8.84-7.16-16-16-16z"},"cart-plus":{"viewBox":"0 0 576 512","path":"M504.717 320H211.572l6.545 32h268.418c15.401 0 26.816 14.301 23.403 29.319l-5.517 24.276C523.112 414.668 536 433.828 536 456c0 31.202-25.519 56.444-56.824 55.994-29.823-.429-54.35-24.631-55.155-54.447-.44-16.287 6.085-31.049 16.803-41.548H231.176C241.553 426.165 248 440.326 248 456c0 31.813-26.528 57.431-58.67 55.938-28.54-1.325-51.751-24.385-53.251-52.917-1.158-22.034 10.436-41.455 28.051-51.586L93.883 64H24C10.745 64 0 53.255 0 40V24C0 10.745 10.745 0 24 0h102.529c11.401 0 21.228 8.021 23.513 19.19L159.208 64H551.99c15.401 0 26.816 14.301 23.403 29.319l-47.273 208C525.637 312.246 515.923 320 504.717 320zM408 168h-48v-40c0-8.837-7.163-16-16-16h-16c-8.837 0-16 7.163-16 16v40h-48c-8.837 0-16 7.163-16 16v16c0 8.837 7.163 16 16 16h48v40c0 8.837 7.163 16 16 16h16c8.837 0 16-7.163 16-16v-40h48c8.837 0 16-7.163 16-16v-16c0-8.837-7.163-16-16-16z"},"cart-arrow-down":{"viewBox":"0 0 576 512","path":"M504.717 320H211.572l6.545 32h268.418c15.401 0 26.816 14.301 23.403 29.319l-5.517 24.276C523.112 414.668 536 433.828 536 456c0 31.202-25.519 56.444-56.824 55.994-29.823-.429-54.35-24.631-55.155-54.447-.44-16.287 6.085-31.049 16.803-41.548H231.176C241.553 426.165 248 440.326 248 456c0 31.813-26.528 57.431-58.67 55.938-28.54-1.325-51.751-24.385-53.251-52.917-1.158-22.034 10.436-41.455 28.051-51.586L93.883 64H24C10.745 64 0 53.255 0 40V24C0 10.745 10.745 0 24 0h102.529c11.401 0 21.228 8.021 23.513 19.19L159.208 64H551.99c15.401 0 26.816 14.301 23.403 29.319l-47.273 208C525.637 312.246 515.923 320 504.717 320zM403.029 192H360v-60c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v60h-43.029c-10.691 0-16.045 12.926-8.485 20.485l67.029 67.029c4.686 4.686 12.284 4.686 16.971 0l67.029-67.029c7.559-7.559 2.205-20.485-8.486-20.485z"},"gem":{"viewBox":"0 0 576 512","path":"M485.5 0L576 160H474.9L405.7 0h79.8zm-128 0l69.2 160H149.3L218.5 0h139zm-267 0h79.8l-69.2 160H0L90.5 0zM0 192h100.7l123 251.7c1.5 3.1-2.7 5.9-5 3.3L0 192zm148.2 0h279.6l-137 318.2c-1 2.4-4.5 2.4-5.5 0L148.2 192zm204.1 251.7l123-251.7H576L357.3 446.9c-2.3 2.7-6.5-.1-5-3.2z"},"ship":{"viewBox":"0 0 640 512","path":"M496.616 372.639l70.012-70.012c16.899-16.9 9.942-45.771-12.836-53.092L512 236.102V96c0-17.673-14.327-32-32-32h-64V24c0-13.255-10.745-24-24-24H248c-13.255 0-24 10.745-24 24v40h-64c-17.673 0-32 14.327-32 32v140.102l-41.792 13.433c-22.753 7.313-29.754 36.173-12.836 53.092l70.012 70.012C125.828 416.287 85.587 448 24 448c-13.255 0-24 10.745-24 24v16c0 13.255 10.745 24 24 24 61.023 0 107.499-20.61 143.258-59.396C181.677 487.432 216.021 512 256 512h128c39.979 0 74.323-24.568 88.742-59.396C508.495 491.384 554.968 512 616 512c13.255 0 24-10.745 24-24v-16c0-13.255-10.745-24-24-24-60.817 0-101.542-31.001-119.384-75.361zM192 128h256v87.531l-118.208-37.995a31.995 31.995 0 0 0-19.584 0L192 215.531V128z"},"user-secret":{"viewBox":"0 0 448 512","path":"M383.9 308.3l23.9-62.6c4-10.5-3.7-21.7-15-21.7h-58.5c11-18.9 17.8-40.6 17.8-64v-.3c39.2-7.8 64-19.1 64-31.7 0-13.3-27.3-25.1-70.1-33-9.2-32.8-27-65.8-40.6-82.8-9.5-11.9-25.9-15.6-39.5-8.8l-27.6 13.8c-9 4.5-19.6 4.5-28.6 0L182.1 3.4c-13.6-6.8-30-3.1-39.5 8.8-13.5 17-31.4 50-40.6 82.8-42.7 7.9-70 19.7-70 33 0 12.6 24.8 23.9 64 31.7v.3c0 23.4 6.8 45.1 17.8 64H56.3c-11.5 0-19.2 11.7-14.7 22.3l25.8 60.2C27.3 329.8 0 372.7 0 422.4v44.8C0 491.9 20.1 512 44.8 512h358.4c24.7 0 44.8-20.1 44.8-44.8v-44.8c0-48.4-25.8-90.4-64.1-114.1zM176 480l-41.6-192 49.6 32 24 40-32 120zm96 0l-32-120 24-40 49.6-32L272 480zm41.7-298.5c-3.9 11.9-7 24.6-16.5 33.4-10.1 9.3-48 22.4-64-25-2.8-8.4-15.4-8.4-18.3 0-17 50.2-56 32.4-64 25-9.5-8.8-12.7-21.5-16.5-33.4-.8-2.5-6.3-5.7-6.3-5.8v-10.8c28.3 3.6 61 5.8 96 5.8s67.7-2.1 96-5.8v10.8c-.1.1-5.6 3.2-6.4 5.8z"},"motorcycle":{"viewBox":"0 0 640 512","path":"M512.949 192.003c-14.862-.108-29.14 2.322-42.434 6.874L437.589 144H520c13.255 0 24-10.745 24-24V88c0-13.255-10.745-24-24-24h-45.311a24 24 0 0 0-17.839 7.945l-37.496 41.663-22.774-37.956A24 24 0 0 0 376 64h-80c-8.837 0-16 7.163-16 16v16c0 8.837 7.163 16 16 16h66.411l19.2 32H227.904c-17.727-23.073-44.924-40-99.904-40H72.54c-13.455 0-24.791 11.011-24.536 24.464C48.252 141.505 58.9 152 72 152h56c24.504 0 38.686 10.919 47.787 24.769l-11.291 20.529c-13.006-3.865-26.871-5.736-41.251-5.21C55.857 194.549 1.565 249.605.034 317.021-1.603 389.076 56.317 448 128 448c59.642 0 109.744-40.794 123.953-96h84.236c13.673 0 24.589-11.421 23.976-25.077-2.118-47.12 17.522-93.665 56.185-125.026l12.485 20.808c-27.646 23.654-45.097 58.88-44.831 98.179.47 69.556 57.203 126.452 126.758 127.11 71.629.678 129.839-57.487 129.234-129.099-.588-69.591-57.455-126.386-127.047-126.892zM128 400c-44.112 0-80-35.888-80-80s35.888-80 80-80c4.242 0 8.405.341 12.469.982L98.97 316.434C90.187 332.407 101.762 352 120 352h81.297c-12.37 28.225-40.56 48-73.297 48zm388.351-.116C470.272 402.337 432 365.554 432 320c0-21.363 8.434-40.781 22.125-55.144l49.412 82.352c4.546 7.577 14.375 10.034 21.952 5.488l13.72-8.232c7.577-4.546 10.034-14.375 5.488-21.952l-48.556-80.927A80.005 80.005 0 0 1 512 240c45.554 0 82.338 38.273 79.884 84.352-2.16 40.558-34.974 73.372-75.533 75.532z"},"street-view":{"viewBox":"0 0 512 512","path":"M367.9 329.76c-4.62 5.3-9.78 10.1-15.9 13.65v22.94c66.52 9.34 112 28.05 112 49.65 0 30.93-93.12 56-208 56S48 446.93 48 416c0-21.6 45.48-40.3 112-49.65v-22.94c-6.12-3.55-11.28-8.35-15.9-13.65C58.87 345.34 0 378.05 0 416c0 53.02 114.62 96 256 96s256-42.98 256-96c0-37.95-58.87-70.66-144.1-86.24zM256 128c35.35 0 64-28.65 64-64S291.35 0 256 0s-64 28.65-64 64 28.65 64 64 64zm-64 192v96c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32v-96c17.67 0 32-14.33 32-32v-96c0-26.51-21.49-48-48-48h-11.8c-11.07 5.03-23.26 8-36.2 8s-25.13-2.97-36.2-8H208c-26.51 0-48 21.49-48 48v96c0 17.67 14.33 32 32 32z"},"heartbeat":{"viewBox":"0 0 512 512","path":"M320.2 243.8l-49.7 99.4c-6 12.1-23.4 11.7-28.9-.6l-56.9-126.3-30 71.7H60.6l182.5 186.5c7.1 7.3 18.6 7.3 25.7 0L451.4 288H342.3l-22.1-44.2zM473.7 73.9l-2.4-2.5c-51.5-52.6-135.8-52.6-187.4 0L256 100l-27.9-28.5c-51.5-52.7-135.9-52.7-187.4 0l-2.4 2.4C-10.4 123.7-12.5 203 31 256h102.4l35.9-86.2c5.4-12.9 23.6-13.2 29.4-.4l58.2 129.3 49-97.9c5.9-11.8 22.7-11.8 28.6 0l27.6 55.2H481c43.5-53 41.4-132.3-7.3-182.1z"},"venus":{"viewBox":"0 0 288 512","path":"M288 176c0-79.5-64.5-144-144-144S0 96.5 0 176c0 68.5 47.9 125.9 112 140.4V368H76c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h36v36c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12v-36h36c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-36v-51.6c64.1-14.5 112-71.9 112-140.4zm-224 0c0-44.1 35.9-80 80-80s80 35.9 80 80-35.9 80-80 80-80-35.9-80-80z"},"mars":{"viewBox":"0 0 384 512","path":"M372 64h-79c-10.7 0-16 12.9-8.5 20.5l16.9 16.9-80.7 80.7c-22.2-14-48.5-22.1-76.7-22.1C64.5 160 0 224.5 0 304s64.5 144 144 144 144-64.5 144-144c0-28.2-8.1-54.5-22.1-76.7l80.7-80.7 16.9 16.9c7.6 7.6 20.5 2.2 20.5-8.5V76c0-6.6-5.4-12-12-12zM144 384c-44.1 0-80-35.9-80-80s35.9-80 80-80 80 35.9 80 80-35.9 80-80 80z"},"mercury":{"viewBox":"0 0 288 512","path":"M288 208c0-44.2-19.9-83.7-51.2-110.1 2.5-1.8 4.9-3.8 7.2-5.8 24.7-21.2 39.8-48.8 43.2-78.8.9-7.1-4.7-13.3-11.9-13.3h-40.5C229 0 224.1 4.1 223 9.8c-2.4 12.5-9.6 24.3-20.7 33.8C187 56.8 166.3 64 144 64s-43-7.2-58.4-20.4C74.5 34.1 67.4 22.3 64.9 9.8 63.8 4.1 58.9 0 53.2 0H12.7C5.5 0-.1 6.2.8 13.3 4.2 43.4 19.2 71 44 92.2c2.3 2 4.7 3.9 7.2 5.8C19.9 124.3 0 163.8 0 208c0 68.5 47.9 125.9 112 140.4V400H76c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h36v36c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12v-36h36c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-36v-51.6c64.1-14.5 112-71.9 112-140.4zm-224 0c0-44.1 35.9-80 80-80s80 35.9 80 80-35.9 80-80 80-80-35.9-80-80z"},"transgender":{"viewBox":"0 0 384 512","path":"M372 0h-79c-10.7 0-16 12.9-8.5 20.5l16.9 16.9-80.7 80.7C198.5 104.1 172.2 96 144 96 64.5 96 0 160.5 0 240c0 68.5 47.9 125.9 112 140.4V408H76c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h36v28c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12v-28h36c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-36v-27.6c64.1-14.6 112-71.9 112-140.4 0-28.2-8.1-54.5-22.1-76.7l80.7-80.7 16.9 16.9c7.6 7.6 20.5 2.2 20.5-8.5V12c0-6.6-5.4-12-12-12zM144 320c-44.1 0-80-35.9-80-80s35.9-80 80-80 80 35.9 80 80-35.9 80-80 80z"},"transgender-alt":{"viewBox":"0 0 480 512","path":"M468 0h-79c-10.7 0-16 12.9-8.5 20.5l16.9 16.9-80.7 80.7C294.5 104.1 268.2 96 240 96c-28.2 0-54.5 8.1-76.7 22.1l-16.5-16.5 19.8-19.8c4.7-4.7 4.7-12.3 0-17l-28.3-28.3c-4.7-4.7-12.3-4.7-17 0l-19.8 19.8-19-19 16.9-16.9C107.1 12.9 101.7 0 91 0H12C5.4 0 0 5.4 0 12v79c0 10.7 12.9 16 20.5 8.5l16.9-16.9 19 19-19.8 19.8c-4.7 4.7-4.7 12.3 0 17l28.3 28.3c4.7 4.7 12.3 4.7 17 0l19.8-19.8 16.5 16.5C104.1 185.5 96 211.8 96 240c0 68.5 47.9 125.9 112 140.4V408h-36c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h36v28c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12v-28h36c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-36v-27.6c64.1-14.6 112-71.9 112-140.4 0-28.2-8.1-54.5-22.1-76.7l80.7-80.7 16.9 16.9c7.6 7.6 20.5 2.2 20.5-8.5V12c0-6.6-5.4-12-12-12zM240 320c-44.1 0-80-35.9-80-80s35.9-80 80-80 80 35.9 80 80-35.9 80-80 80z"},"venus-double":{"viewBox":"0 0 512 512","path":"M288 176c0-79.5-64.5-144-144-144S0 96.5 0 176c0 68.5 47.9 125.9 112 140.4V368H76c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h36v36c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12v-36h36c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-36v-51.6c64.1-14.5 112-71.9 112-140.4zm-224 0c0-44.1 35.9-80 80-80s80 35.9 80 80-35.9 80-80 80-80-35.9-80-80zm336 140.4V368h36c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12h-36v36c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-36h-36c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h36v-51.6c-21.2-4.8-40.6-14.3-57.2-27.3 14-16.7 25-36 32.1-57.1 14.5 14.8 34.7 24 57.1 24 44.1 0 80-35.9 80-80s-35.9-80-80-80c-22.3 0-42.6 9.2-57.1 24-7.1-21.1-18-40.4-32.1-57.1C303.4 43.6 334.3 32 368 32c79.5 0 144 64.5 144 144 0 68.5-47.9 125.9-112 140.4z"},"mars-double":{"viewBox":"0 0 512 512","path":"M340 0h-79c-10.7 0-16 12.9-8.5 20.5l16.9 16.9-48.7 48.7C198.5 72.1 172.2 64 144 64 64.5 64 0 128.5 0 208s64.5 144 144 144 144-64.5 144-144c0-28.2-8.1-54.5-22.1-76.7l48.7-48.7 16.9 16.9c2.4 2.4 5.5 3.5 8.4 3.5 6.2 0 12.1-4.8 12.1-12V12c0-6.6-5.4-12-12-12zM144 288c-44.1 0-80-35.9-80-80s35.9-80 80-80 80 35.9 80 80-35.9 80-80 80zm356-128.1h-79c-10.7 0-16 12.9-8.5 20.5l16.9 16.9-48.7 48.7c-18.2-11.4-39-18.9-61.5-21.3-2.1 21.8-8.2 43.3-18.4 63.3 1.1 0 2.2-.1 3.2-.1 44.1 0 80 35.9 80 80s-35.9 80-80 80-80-35.9-80-80c0-1.1 0-2.2.1-3.2-20 10.2-41.5 16.4-63.3 18.4C168.4 455.6 229.6 512 304 512c79.5 0 144-64.5 144-144 0-28.2-8.1-54.5-22.1-76.7l48.7-48.7 16.9 16.9c2.4 2.4 5.4 3.5 8.4 3.5 6.2 0 12.1-4.8 12.1-12v-79c0-6.7-5.4-12.1-12-12.1z"},"venus-mars":{"viewBox":"0 0 576 512","path":"M564 0h-79c-10.7 0-16 12.9-8.5 20.5l16.9 16.9-48.7 48.7C422.5 72.1 396.2 64 368 64c-33.7 0-64.6 11.6-89.2 30.9 14 16.7 25 36 32.1 57.1 14.5-14.8 34.7-24 57.1-24 44.1 0 80 35.9 80 80s-35.9 80-80 80c-22.3 0-42.6-9.2-57.1-24-7.1 21.1-18 40.4-32.1 57.1 24.5 19.4 55.5 30.9 89.2 30.9 79.5 0 144-64.5 144-144 0-28.2-8.1-54.5-22.1-76.7l48.7-48.7 16.9 16.9c2.4 2.4 5.4 3.5 8.4 3.5 6.2 0 12.1-4.8 12.1-12V12c0-6.6-5.4-12-12-12zM144 64C64.5 64 0 128.5 0 208c0 68.5 47.9 125.9 112 140.4V400H76c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h36v36c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12v-36h36c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-36v-51.6c64.1-14.6 112-71.9 112-140.4 0-79.5-64.5-144-144-144zm0 224c-44.1 0-80-35.9-80-80s35.9-80 80-80 80 35.9 80 80-35.9 80-80 80z"},"mars-stroke":{"viewBox":"0 0 384 512","path":"M372 64h-79c-10.7 0-16 12.9-8.5 20.5l16.9 16.9-17.5 17.5-14.1-14.1c-4.7-4.7-12.3-4.7-17 0L224.5 133c-4.7 4.7-4.7 12.3 0 17l14.1 14.1-18 18c-22.2-14-48.5-22.1-76.7-22.1C64.5 160 0 224.5 0 304s64.5 144 144 144 144-64.5 144-144c0-28.2-8.1-54.5-22.1-76.7l18-18 14.1 14.1c4.7 4.7 12.3 4.7 17 0l28.3-28.3c4.7-4.7 4.7-12.3 0-17L329.2 164l17.5-17.5 16.9 16.9c7.6 7.6 20.5 2.2 20.5-8.5V76c-.1-6.6-5.5-12-12.1-12zM144 384c-44.1 0-80-35.9-80-80s35.9-80 80-80 80 35.9 80 80-35.9 80-80 80z"},"mars-stroke-v":{"viewBox":"0 0 288 512","path":"M245.8 234.2c-19.9-19.9-44.2-32.8-69.8-38.6v-25.4h20c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-20V81.4h23.9c10.7 0 16-12.9 8.5-20.5L152.5 5.1c-4.7-4.7-12.3-4.7-17 0L79.6 61c-7.6 7.6-2.2 20.5 8.5 20.5H112v24.7H92c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h20v25.4c-25.6 5.8-49.9 18.7-69.8 38.6-56.2 56.2-56.2 147.4 0 203.6 56.2 56.2 147.4 56.2 203.6 0 56.3-56.2 56.3-147.4 0-203.6zm-45.2 158.4c-31.2 31.2-81.9 31.2-113.1 0-31.2-31.2-31.2-81.9 0-113.1 31.2-31.2 81.9-31.2 113.1 0 31.2 31.1 31.2 81.9 0 113.1z"},"mars-stroke-h":{"viewBox":"0 0 480 512","path":"M476.2 247.5l-55.9-55.9c-7.6-7.6-20.5-2.2-20.5 8.5V224H376v-20c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v20h-27.6c-5.8-25.6-18.7-49.9-38.6-69.8C189.6 98 98.4 98 42.2 154.2c-56.2 56.2-56.2 147.4 0 203.6 56.2 56.2 147.4 56.2 203.6 0 19.9-19.9 32.8-44.2 38.6-69.8H312v20c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12v-20h23.9v23.9c0 10.7 12.9 16 20.5 8.5l55.9-55.9c4.6-4.7 4.6-12.3-.1-17zm-275.6 65.1c-31.2 31.2-81.9 31.2-113.1 0-31.2-31.2-31.2-81.9 0-113.1 31.2-31.2 81.9-31.2 113.1 0 31.2 31.1 31.2 81.9 0 113.1z"},"neuter":{"viewBox":"0 0 288 512","path":"M288 176c0-79.5-64.5-144-144-144S0 96.5 0 176c0 68.5 47.9 125.9 112 140.4V468c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12V316.4c64.1-14.5 112-71.9 112-140.4zm-144 80c-44.1 0-80-35.9-80-80s35.9-80 80-80 80 35.9 80 80-35.9 80-80 80z"},"genderless":{"viewBox":"0 0 288 512","path":"M144 176c44.1 0 80 35.9 80 80s-35.9 80-80 80-80-35.9-80-80 35.9-80 80-80m0-64C64.5 112 0 176.5 0 256s64.5 144 144 144 144-64.5 144-144-64.5-144-144-144z"},"server":{"viewBox":"0 0 512 512","path":"M480 160H32c-17.673 0-32-14.327-32-32V64c0-17.673 14.327-32 32-32h448c17.673 0 32 14.327 32 32v64c0 17.673-14.327 32-32 32zm-48-88c-13.255 0-24 10.745-24 24s10.745 24 24 24 24-10.745 24-24-10.745-24-24-24zm-64 0c-13.255 0-24 10.745-24 24s10.745 24 24 24 24-10.745 24-24-10.745-24-24-24zm112 248H32c-17.673 0-32-14.327-32-32v-64c0-17.673 14.327-32 32-32h448c17.673 0 32 14.327 32 32v64c0 17.673-14.327 32-32 32zm-48-88c-13.255 0-24 10.745-24 24s10.745 24 24 24 24-10.745 24-24-10.745-24-24-24zm-64 0c-13.255 0-24 10.745-24 24s10.745 24 24 24 24-10.745 24-24-10.745-24-24-24zm112 248H32c-17.673 0-32-14.327-32-32v-64c0-17.673 14.327-32 32-32h448c17.673 0 32 14.327 32 32v64c0 17.673-14.327 32-32 32zm-48-88c-13.255 0-24 10.745-24 24s10.745 24 24 24 24-10.745 24-24-10.745-24-24-24zm-64 0c-13.255 0-24 10.745-24 24s10.745 24 24 24 24-10.745 24-24-10.745-24-24-24z"},"user-plus":{"viewBox":"0 0 640 512","path":"M624 208h-64v-64c0-8.8-7.2-16-16-16h-32c-8.8 0-16 7.2-16 16v64h-64c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h64v64c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16v-64h64c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16zm-400 48c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zm89.6 32h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48v-41.6c0-74.2-60.2-134.4-134.4-134.4z"},"user-times":{"viewBox":"0 0 640 512","path":"M589.6 240l45.6-45.6c6.3-6.3 6.3-16.5 0-22.8l-22.8-22.8c-6.3-6.3-16.5-6.3-22.8 0L544 194.4l-45.6-45.6c-6.3-6.3-16.5-6.3-22.8 0l-22.8 22.8c-6.3 6.3-6.3 16.5 0 22.8l45.6 45.6-45.6 45.6c-6.3 6.3-6.3 16.5 0 22.8l22.8 22.8c6.3 6.3 16.5 6.3 22.8 0l45.6-45.6 45.6 45.6c6.3 6.3 16.5 6.3 22.8 0l22.8-22.8c6.3-6.3 6.3-16.5 0-22.8L589.6 240zM224 256c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zm89.6 32h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48v-41.6c0-74.2-60.2-134.4-134.4-134.4z"},"bed":{"viewBox":"0 0 640 512","path":"M176 256c44.11 0 80-35.89 80-80s-35.89-80-80-80-80 35.89-80 80 35.89 80 80 80zm352-128H304c-8.84 0-16 7.16-16 16v144H64V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v352c0 8.84 7.16 16 16 16h32c8.84 0 16-7.16 16-16v-48h512v48c0 8.84 7.16 16 16 16h32c8.84 0 16-7.16 16-16V240c0-61.86-50.14-112-112-112z"},"train":{"viewBox":"0 0 448 512","path":"M448 96v256c0 51.815-61.624 96-130.022 96l62.98 49.721C386.905 502.417 383.562 512 376 512H72c-7.578 0-10.892-9.594-4.957-14.279L130.022 448C61.82 448 0 403.954 0 352V96C0 42.981 64 0 128 0h192c65 0 128 42.981 128 96zm-48 136V120c0-13.255-10.745-24-24-24H72c-13.255 0-24 10.745-24 24v112c0 13.255 10.745 24 24 24h304c13.255 0 24-10.745 24-24zm-176 64c-30.928 0-56 25.072-56 56s25.072 56 56 56 56-25.072 56-56-25.072-56-56-56z"},"subway":{"viewBox":"0 0 448 512","path":"M448 96v256c0 51.815-61.624 96-130.022 96l62.98 49.721C386.905 502.417 383.562 512 376 512H72c-7.578 0-10.892-9.594-4.957-14.279L130.022 448C61.82 448 0 403.954 0 352V96C0 42.981 64 0 128 0h192c65 0 128 42.981 128 96zM200 232V120c0-13.255-10.745-24-24-24H72c-13.255 0-24 10.745-24 24v112c0 13.255 10.745 24 24 24h104c13.255 0 24-10.745 24-24zm200 0V120c0-13.255-10.745-24-24-24H272c-13.255 0-24 10.745-24 24v112c0 13.255 10.745 24 24 24h104c13.255 0 24-10.745 24-24zm-48 56c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48zm-256 0c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48z"},"battery-full":{"viewBox":"0 0 640 512","path":"M544 160v64h32v64h-32v64H64V160h480m16-64H48c-26.51 0-48 21.49-48 48v224c0 26.51 21.49 48 48 48h512c26.51 0 48-21.49 48-48v-16h8c13.255 0 24-10.745 24-24V184c0-13.255-10.745-24-24-24h-8v-16c0-26.51-21.49-48-48-48zm-48 96H96v128h416V192z"},"battery-three-quarters":{"viewBox":"0 0 640 512","path":"M544 160v64h32v64h-32v64H64V160h480m16-64H48c-26.51 0-48 21.49-48 48v224c0 26.51 21.49 48 48 48h512c26.51 0 48-21.49 48-48v-16h8c13.255 0 24-10.745 24-24V184c0-13.255-10.745-24-24-24h-8v-16c0-26.51-21.49-48-48-48zm-144 96H96v128h320V192z"},"battery-half":{"viewBox":"0 0 640 512","path":"M544 160v64h32v64h-32v64H64V160h480m16-64H48c-26.51 0-48 21.49-48 48v224c0 26.51 21.49 48 48 48h512c26.51 0 48-21.49 48-48v-16h8c13.255 0 24-10.745 24-24V184c0-13.255-10.745-24-24-24h-8v-16c0-26.51-21.49-48-48-48zm-240 96H96v128h224V192z"},"battery-quarter":{"viewBox":"0 0 640 512","path":"M544 160v64h32v64h-32v64H64V160h480m16-64H48c-26.51 0-48 21.49-48 48v224c0 26.51 21.49 48 48 48h512c26.51 0 48-21.49 48-48v-16h8c13.255 0 24-10.745 24-24V184c0-13.255-10.745-24-24-24h-8v-16c0-26.51-21.49-48-48-48zm-336 96H96v128h128V192z"},"battery-empty":{"viewBox":"0 0 640 512","path":"M544 160v64h32v64h-32v64H64V160h480m16-64H48c-26.51 0-48 21.49-48 48v224c0 26.51 21.49 48 48 48h512c26.51 0 48-21.49 48-48v-16h8c13.255 0 24-10.745 24-24V184c0-13.255-10.745-24-24-24h-8v-16c0-26.51-21.49-48-48-48z"},"mouse-pointer":{"viewBox":"0 0 320 512","path":"M302.189 329.126H196.105l55.831 135.993c3.889 9.428-.555 19.999-9.444 23.999l-49.165 21.427c-9.165 4-19.443-.571-23.332-9.714l-53.053-129.136-86.664 89.138C18.729 472.71 0 463.554 0 447.977V18.299C0 1.899 19.921-6.096 30.277 5.443l284.412 292.542c11.472 11.179 3.007 31.141-12.5 31.141z"},"i-cursor":{"viewBox":"0 0 256 512","path":"M256 52.048V12.065C256 5.496 250.726.148 244.158.066 211.621-.344 166.469.011 128 37.959 90.266.736 46.979-.114 11.913.114 5.318.157 0 5.519 0 12.114v39.645c0 6.687 5.458 12.078 12.145 11.998C38.111 63.447 96 67.243 96 112.182V224H60c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h36v112c0 44.932-56.075 48.031-83.95 47.959C5.404 447.942 0 453.306 0 459.952v39.983c0 6.569 5.274 11.917 11.842 11.999 32.537.409 77.689.054 116.158-37.894 37.734 37.223 81.021 38.073 116.087 37.845 6.595-.043 11.913-5.405 11.913-12V460.24c0-6.687-5.458-12.078-12.145-11.998C217.889 448.553 160 444.939 160 400V288h36c6.627 0 12-5.373 12-12v-40c0-6.627-5.373-12-12-12h-36V112.182c0-44.932 56.075-48.213 83.95-48.142 6.646.018 12.05-5.346 12.05-11.992z"},"object-group":{"viewBox":"0 0 512 512","path":"M480 128V96h20c6.627 0 12-5.373 12-12V44c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v20H64V44c0-6.627-5.373-12-12-12H12C5.373 32 0 37.373 0 44v40c0 6.627 5.373 12 12 12h20v320H12c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12v-20h384v20c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12v-40c0-6.627-5.373-12-12-12h-20V128zM96 276V140c0-6.627 5.373-12 12-12h168c6.627 0 12 5.373 12 12v136c0 6.627-5.373 12-12 12H108c-6.627 0-12-5.373-12-12zm320 96c0 6.627-5.373 12-12 12H236c-6.627 0-12-5.373-12-12v-52h72c13.255 0 24-10.745 24-24v-72h84c6.627 0 12 5.373 12 12v136z"},"object-ungroup":{"viewBox":"0 0 576 512","path":"M64 320v26a6 6 0 0 1-6 6H6a6 6 0 0 1-6-6v-52a6 6 0 0 1 6-6h26V96H6a6 6 0 0 1-6-6V38a6 6 0 0 1 6-6h52a6 6 0 0 1 6 6v26h288V38a6 6 0 0 1 6-6h52a6 6 0 0 1 6 6v52a6 6 0 0 1-6 6h-26v192h26a6 6 0 0 1 6 6v52a6 6 0 0 1-6 6h-52a6 6 0 0 1-6-6v-26H64zm480-64v-32h26a6 6 0 0 0 6-6v-52a6 6 0 0 0-6-6h-52a6 6 0 0 0-6 6v26H408v72h8c13.255 0 24 10.745 24 24v64c0 13.255-10.745 24-24 24h-64c-13.255 0-24-10.745-24-24v-8H192v72h-26a6 6 0 0 0-6 6v52a6 6 0 0 0 6 6h52a6 6 0 0 0 6-6v-26h288v26a6 6 0 0 0 6 6h52a6 6 0 0 0 6-6v-52a6 6 0 0 0-6-6h-26V256z"},"sticky-note":{"viewBox":"0 0 448 512","path":"M312 320h136V56c0-13.3-10.7-24-24-24H24C10.7 32 0 42.7 0 56v400c0 13.3 10.7 24 24 24h264V344c0-13.2 10.8-24 24-24zm129 55l-98 98c-4.5 4.5-10.6 7-17 7h-6V352h128v6.1c0 6.3-2.5 12.4-7 16.9z"},"clone":{"viewBox":"0 0 512 512","path":"M464 0c26.51 0 48 21.49 48 48v288c0 26.51-21.49 48-48 48H176c-26.51 0-48-21.49-48-48V48c0-26.51 21.49-48 48-48h288M176 416c-44.112 0-80-35.888-80-80V128H48c-26.51 0-48 21.49-48 48v288c0 26.51 21.49 48 48 48h288c26.51 0 48-21.49 48-48v-48H176z"},"balance-scale":{"viewBox":"0 0 640 512","path":"M256 336h-.02c0-16.18 1.34-8.73-85.05-181.51-17.65-35.29-68.19-35.36-85.87 0C-2.06 328.75.02 320.33.02 336H0c0 44.18 57.31 80 128 80s128-35.82 128-80zM128 176l72 144H56l72-144zm511.98 160c0-16.18 1.34-8.73-85.05-181.51-17.65-35.29-68.19-35.36-85.87 0-87.12 174.26-85.04 165.84-85.04 181.51H384c0 44.18 57.31 80 128 80s128-35.82 128-80h-.02zM440 320l72-144 72 144H440zm88 128H352V153.25c23.51-10.29 41.16-31.48 46.39-57.25H528c8.84 0 16-7.16 16-16V48c0-8.84-7.16-16-16-16H383.64C369.04 12.68 346.09 0 320 0s-49.04 12.68-63.64 32H112c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h129.61c5.23 25.76 22.87 46.96 46.39 57.25V448H112c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h416c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16z"},"hourglass-start":{"viewBox":"0 0 384 512","path":"M360 0H24C10.745 0 0 10.745 0 24v16c0 13.255 10.745 24 24 24 0 90.965 51.016 167.734 120.842 192C75.016 280.266 24 357.035 24 448c-13.255 0-24 10.745-24 24v16c0 13.255 10.745 24 24 24h336c13.255 0 24-10.745 24-24v-16c0-13.255-10.745-24-24-24 0-90.965-51.016-167.734-120.842-192C308.984 231.734 360 154.965 360 64c13.255 0 24-10.745 24-24V24c0-13.255-10.745-24-24-24zm-64 448H88c0-77.458 46.204-144 104-144 57.786 0 104 66.517 104 144z"},"hourglass-half":{"viewBox":"0 0 384 512","path":"M360 0H24C10.745 0 0 10.745 0 24v16c0 13.255 10.745 24 24 24 0 90.965 51.016 167.734 120.842 192C75.016 280.266 24 357.035 24 448c-13.255 0-24 10.745-24 24v16c0 13.255 10.745 24 24 24h336c13.255 0 24-10.745 24-24v-16c0-13.255-10.745-24-24-24 0-90.965-51.016-167.734-120.842-192C308.984 231.734 360 154.965 360 64c13.255 0 24-10.745 24-24V24c0-13.255-10.745-24-24-24zm-75.078 384H99.08c17.059-46.797 52.096-80 92.92-80 40.821 0 75.862 33.196 92.922 80zm.019-256H99.078C91.988 108.548 88 86.748 88 64h208c0 22.805-3.987 44.587-11.059 64z"},"hourglass-end":{"viewBox":"0 0 384 512","path":"M360 64c13.255 0 24-10.745 24-24V24c0-13.255-10.745-24-24-24H24C10.745 0 0 10.745 0 24v16c0 13.255 10.745 24 24 24 0 90.965 51.016 167.734 120.842 192C75.016 280.266 24 357.035 24 448c-13.255 0-24 10.745-24 24v16c0 13.255 10.745 24 24 24h336c13.255 0 24-10.745 24-24v-16c0-13.255-10.745-24-24-24 0-90.965-51.016-167.734-120.842-192C308.984 231.734 360 154.965 360 64zM192 208c-57.787 0-104-66.518-104-144h208c0 77.945-46.51 144-104 144z"},"hourglass":{"viewBox":"0 0 384 512","path":"M360 64c13.255 0 24-10.745 24-24V24c0-13.255-10.745-24-24-24H24C10.745 0 0 10.745 0 24v16c0 13.255 10.745 24 24 24 0 90.965 51.016 167.734 120.842 192C75.016 280.266 24 357.035 24 448c-13.255 0-24 10.745-24 24v16c0 13.255 10.745 24 24 24h336c13.255 0 24-10.745 24-24v-16c0-13.255-10.745-24-24-24 0-90.965-51.016-167.734-120.842-192C308.984 231.734 360 154.965 360 64z"},"trademark":{"viewBox":"0 0 640 512","path":"M97.119 163.133H12c-6.627 0-12-5.373-12-12V108c0-6.627 5.373-12 12-12h248.559c6.627 0 12 5.373 12 12v43.133c0 6.627-5.373 12-12 12H175.44V404c0 6.627-5.373 12-12 12h-54.322c-6.627 0-12-5.373-12-12V163.133zM329.825 96h65.425a12 12 0 0 1 11.346 8.093l43.759 127.068c7.161 20.588 16.111 52.812 16.111 52.812h.896s8.95-32.224 16.111-52.812l43.758-127.068A12 12 0 0 1 538.577 96h65.41a12 12 0 0 1 11.961 11.03l24.012 296c.567 6.987-4.951 12.97-11.961 12.97h-54.101a12 12 0 0 1-11.972-11.182l-9.082-132.93c-1.79-24.168 0-53.706 0-53.706h-.896s-10.741 33.566-17.902 53.706l-30.7 84.731a12 12 0 0 1-11.282 7.912h-50.302a12 12 0 0 1-11.282-7.912l-30.7-84.731c-7.161-20.14-17.903-53.706-17.903-53.706h-.895s1.79 29.538 0 53.706l-9.082 132.93c-.428 6.295-5.66 11.182-11.97 11.182H305.4c-7.017 0-12.536-5.994-11.959-12.987l24.425-296A11.999 11.999 0 0 1 329.825 96z"},"registered":{"viewBox":"0 0 512 512","path":"M285.363 207.475c0 18.6-9.831 28.431-28.431 28.431h-29.876v-56.14h23.378c28.668 0 34.929 8.773 34.929 27.709zM504 256c0 136.967-111.033 248-248 248S8 392.967 8 256 119.033 8 256 8s248 111.033 248 248zM363.411 360.414c-46.729-84.825-43.299-78.636-44.702-80.98 23.432-15.172 37.945-42.979 37.945-74.486 0-54.244-31.5-89.252-105.498-89.252h-70.667c-13.255 0-24 10.745-24 24V372c0 13.255 10.745 24 24 24h22.567c13.255 0 24-10.745 24-24v-71.663h25.556l44.129 82.937a24.001 24.001 0 0 0 21.188 12.727h24.464c18.261-.001 29.829-19.591 21.018-35.587z"},"tv":{"viewBox":"0 0 640 512","path":"M592 0H48C21.5 0 0 21.5 0 48v320c0 26.5 21.5 48 48 48h245.1v32h-160c-17.7 0-32 14.3-32 32s14.3 32 32 32h384c17.7 0 32-14.3 32-32s-14.3-32-32-32h-160v-32H592c26.5 0 48-21.5 48-48V48c0-26.5-21.5-48-48-48zm-16 352H64V64h512v288z"},"industry":{"viewBox":"0 0 512 512","path":"M475.115 163.781L336 252.309v-68.28c0-18.916-20.931-30.399-36.885-20.248L160 252.309V56c0-13.255-10.745-24-24-24H24C10.745 32 0 42.745 0 56v400c0 13.255 10.745 24 24 24h464c13.255 0 24-10.745 24-24V184.029c0-18.917-20.931-30.399-36.885-20.248z"},"map-pin":{"viewBox":"0 0 288 512","path":"M112 316.94v156.69l22.02 33.02c4.75 7.12 15.22 7.12 19.97 0L176 473.63V316.94c-10.39 1.92-21.06 3.06-32 3.06s-21.61-1.14-32-3.06zM144 0C64.47 0 0 64.47 0 144s64.47 144 144 144 144-64.47 144-144S223.53 0 144 0zm0 76c-37.5 0-68 30.5-68 68 0 6.62-5.38 12-12 12s-12-5.38-12-12c0-50.73 41.28-92 92-92 6.62 0 12 5.38 12 12s-5.38 12-12 12z"},"map-signs":{"viewBox":"0 0 512 512","path":"M507.31 84.69L464 41.37c-6-6-14.14-9.37-22.63-9.37H288V16c0-8.84-7.16-16-16-16h-32c-8.84 0-16 7.16-16 16v16H56c-13.25 0-24 10.75-24 24v80c0 13.25 10.75 24 24 24h385.37c8.49 0 16.62-3.37 22.63-9.37l43.31-43.31c6.25-6.26 6.25-16.38 0-22.63zM224 496c0 8.84 7.16 16 16 16h32c8.84 0 16-7.16 16-16V384h-64v112zm232-272H288v-32h-64v32H70.63c-8.49 0-16.62 3.37-22.63 9.37L4.69 276.69c-6.25 6.25-6.25 16.38 0 22.63L48 342.63c6 6 14.14 9.37 22.63 9.37H456c13.25 0 24-10.75 24-24v-80c0-13.25-10.75-24-24-24z"},"map":{"viewBox":"0 0 576 512","path":"M0 117.66v346.32c0 11.32 11.43 19.06 21.94 14.86L160 416V32L20.12 87.95A32.006 32.006 0 0 0 0 117.66zM192 416l192 64V96L192 32v384zM554.06 33.16L416 96v384l139.88-55.95A31.996 31.996 0 0 0 576 394.34V48.02c0-11.32-11.43-19.06-21.94-14.86z"},"comment-dots":{"viewBox":"0 0 512 512","path":"M256 32C114.6 32 0 125.1 0 240c0 49.6 21.4 95 57 130.7C44.5 421.1 2.7 466 2.2 466.5c-2.2 2.3-2.8 5.7-1.5 8.7S4.8 480 8 480c66.3 0 116-31.8 140.6-51.4 32.7 12.3 69 19.4 107.4 19.4 141.4 0 256-93.1 256-208S397.4 32 256 32zM128 272c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm128 0c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm128 0c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32z"},"pause-circle":{"viewBox":"0 0 512 512","path":"M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm-16 328c0 8.8-7.2 16-16 16h-48c-8.8 0-16-7.2-16-16V176c0-8.8 7.2-16 16-16h48c8.8 0 16 7.2 16 16v160zm112 0c0 8.8-7.2 16-16 16h-48c-8.8 0-16-7.2-16-16V176c0-8.8 7.2-16 16-16h48c8.8 0 16 7.2 16 16v160z"},"stop-circle":{"viewBox":"0 0 512 512","path":"M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm96 328c0 8.8-7.2 16-16 16H176c-8.8 0-16-7.2-16-16V176c0-8.8 7.2-16 16-16h160c8.8 0 16 7.2 16 16v160z"},"shopping-bag":{"viewBox":"0 0 448 512","path":"M352 160v-32C352 57.42 294.579 0 224 0 153.42 0 96 57.42 96 128v32H0v272c0 44.183 35.817 80 80 80h288c44.183 0 80-35.817 80-80V160h-96zm-192-32c0-35.29 28.71-64 64-64s64 28.71 64 64v32H160v-32zm160 120c-13.255 0-24-10.745-24-24s10.745-24 24-24 24 10.745 24 24-10.745 24-24 24zm-192 0c-13.255 0-24-10.745-24-24s10.745-24 24-24 24 10.745 24 24-10.745 24-24 24z"},"shopping-basket":{"viewBox":"0 0 576 512","path":"M576 216v16c0 13.255-10.745 24-24 24h-8l-26.113 182.788C514.509 462.435 494.257 480 470.37 480H105.63c-23.887 0-44.139-17.565-47.518-41.212L32 256h-8c-13.255 0-24-10.745-24-24v-16c0-13.255 10.745-24 24-24h67.341l106.78-146.821c10.395-14.292 30.407-17.453 44.701-7.058 14.293 10.395 17.453 30.408 7.058 44.701L170.477 192h235.046L326.12 82.821c-10.395-14.292-7.234-34.306 7.059-44.701 14.291-10.395 34.306-7.235 44.701 7.058L484.659 192H552c13.255 0 24 10.745 24 24zM312 392V280c0-13.255-10.745-24-24-24s-24 10.745-24 24v112c0 13.255 10.745 24 24 24s24-10.745 24-24zm112 0V280c0-13.255-10.745-24-24-24s-24 10.745-24 24v112c0 13.255 10.745 24 24 24s24-10.745 24-24zm-224 0V280c0-13.255-10.745-24-24-24s-24 10.745-24 24v112c0 13.255 10.745 24 24 24s24-10.745 24-24z"},"hashtag":{"viewBox":"0 0 448 512","path":"M440.667 182.109l7.143-40c1.313-7.355-4.342-14.109-11.813-14.109h-74.81l14.623-81.891C377.123 38.754 371.468 32 363.997 32h-40.632a12 12 0 0 0-11.813 9.891L296.175 128H197.54l14.623-81.891C213.477 38.754 207.822 32 200.35 32h-40.632a12 12 0 0 0-11.813 9.891L132.528 128H53.432a12 12 0 0 0-11.813 9.891l-7.143 40C33.163 185.246 38.818 192 46.289 192h74.81L98.242 320H19.146a12 12 0 0 0-11.813 9.891l-7.143 40C-1.123 377.246 4.532 384 12.003 384h74.81L72.19 465.891C70.877 473.246 76.532 480 84.003 480h40.632a12 12 0 0 0 11.813-9.891L151.826 384h98.634l-14.623 81.891C234.523 473.246 240.178 480 247.65 480h40.632a12 12 0 0 0 11.813-9.891L315.472 384h79.096a12 12 0 0 0 11.813-9.891l7.143-40c1.313-7.355-4.342-14.109-11.813-14.109h-74.81l22.857-128h79.096a12 12 0 0 0 11.813-9.891zM261.889 320h-98.634l22.857-128h98.634l-22.857 128z"},"percent":{"viewBox":"0 0 448 512","path":"M112 224c61.9 0 112-50.1 112-112S173.9 0 112 0 0 50.1 0 112s50.1 112 112 112zm0-160c26.5 0 48 21.5 48 48s-21.5 48-48 48-48-21.5-48-48 21.5-48 48-48zm224 224c-61.9 0-112 50.1-112 112s50.1 112 112 112 112-50.1 112-112-50.1-112-112-112zm0 160c-26.5 0-48-21.5-48-48s21.5-48 48-48 48 21.5 48 48-21.5 48-48 48zM392.3.2l31.6-.1c19.4-.1 30.9 21.8 19.7 37.8L77.4 501.6a23.95 23.95 0 0 1-19.6 10.2l-33.4.1c-19.5 0-30.9-21.9-19.7-37.8l368-463.7C377.2 4 384.5.2 392.3.2z"},"universal-access":{"viewBox":"0 0 512 512","path":"M256 48c114.953 0 208 93.029 208 208 0 114.953-93.029 208-208 208-114.953 0-208-93.029-208-208 0-114.953 93.029-208 208-208m0-40C119.033 8 8 119.033 8 256s111.033 248 248 248 248-111.033 248-248S392.967 8 256 8zm0 56C149.961 64 64 149.961 64 256s85.961 192 192 192 192-85.961 192-192S362.039 64 256 64zm0 44c19.882 0 36 16.118 36 36s-16.118 36-36 36-36-16.118-36-36 16.118-36 36-36zm117.741 98.023c-28.712 6.779-55.511 12.748-82.14 15.807.851 101.023 12.306 123.052 25.037 155.621 3.617 9.26-.957 19.698-10.217 23.315-9.261 3.617-19.699-.957-23.316-10.217-8.705-22.308-17.086-40.636-22.261-78.549h-9.686c-5.167 37.851-13.534 56.208-22.262 78.549-3.615 9.255-14.05 13.836-23.315 10.217-9.26-3.617-13.834-14.056-10.217-23.315 12.713-32.541 24.185-54.541 25.037-155.621-26.629-3.058-53.428-9.027-82.141-15.807-8.6-2.031-13.926-10.648-11.895-19.249s10.647-13.926 19.249-11.895c96.686 22.829 124.283 22.783 220.775 0 8.599-2.03 17.218 3.294 19.249 11.895 2.029 8.601-3.297 17.219-11.897 19.249z"},"blind":{"viewBox":"0 0 384 512","path":"M380.15 510.837a8 8 0 0 1-10.989-2.687l-125.33-206.427a31.923 31.923 0 0 0 12.958-9.485l126.048 207.608a8 8 0 0 1-2.687 10.991zM142.803 314.338l-32.54 89.485 36.12 88.285c6.693 16.36 25.377 24.192 41.733 17.501 16.357-6.692 24.193-25.376 17.501-41.734l-62.814-153.537zM96 88c24.301 0 44-19.699 44-44S120.301 0 96 0 52 19.699 52 44s19.699 44 44 44zm154.837 169.128l-120-152c-4.733-5.995-11.75-9.108-18.837-9.112V96H80v.026c-7.146.003-14.217 3.161-18.944 9.24L0 183.766v95.694c0 13.455 11.011 24.791 24.464 24.536C37.505 303.748 48 293.1 48 280v-79.766l16-20.571v140.698L9.927 469.055c-6.04 16.609 2.528 34.969 19.138 41.009 16.602 6.039 34.968-2.524 41.009-19.138L136 309.638V202.441l-31.406-39.816a4 4 0 1 1 6.269-4.971l102.3 129.217c9.145 11.584 24.368 11.339 33.708 3.965 10.41-8.216 12.159-23.334 3.966-33.708z"},"audio-description":{"viewBox":"0 0 512 512","path":"M162.925 238.709l8.822 30.655h-25.606l9.041-30.652c1.277-4.421 2.651-9.994 3.872-15.245 1.22 5.251 2.594 10.823 3.871 15.242zm166.474-32.099h-14.523v98.781h14.523c29.776 0 46.175-17.678 46.175-49.776 0-32.239-17.49-49.005-46.175-49.005zM512 112v288c0 26.51-21.49 48-48 48H48c-26.51 0-48-21.49-48-48V112c0-26.51 21.49-48 48-48h416c26.51 0 48 21.49 48 48zM245.459 336.139l-57.097-168A12.001 12.001 0 0 0 177 160h-35.894a12.001 12.001 0 0 0-11.362 8.139l-57.097 168C70.003 343.922 75.789 352 84.009 352h29.133a12 12 0 0 0 11.535-8.693l8.574-29.906h51.367l8.793 29.977A12 12 0 0 0 204.926 352h29.172c8.22 0 14.006-8.078 11.361-15.861zm184.701-80.525c0-58.977-37.919-95.614-98.96-95.614h-57.366c-6.627 0-12 5.373-12 12v168c0 6.627 5.373 12 12 12H331.2c61.041 0 98.96-36.933 98.96-96.386z"},"phone-volume":{"viewBox":"0 0 384 512","path":"M97.333 506.966c-129.874-129.874-129.681-340.252 0-469.933 5.698-5.698 14.527-6.632 21.263-2.422l64.817 40.513a17.187 17.187 0 0 1 6.849 20.958l-32.408 81.021a17.188 17.188 0 0 1-17.669 10.719l-55.81-5.58c-21.051 58.261-20.612 122.471 0 179.515l55.811-5.581a17.188 17.188 0 0 1 17.669 10.719l32.408 81.022a17.188 17.188 0 0 1-6.849 20.958l-64.817 40.513a17.19 17.19 0 0 1-21.264-2.422zM247.126 95.473c11.832 20.047 11.832 45.008 0 65.055-3.95 6.693-13.108 7.959-18.718 2.581l-5.975-5.726c-3.911-3.748-4.793-9.622-2.261-14.41a32.063 32.063 0 0 0 0-29.945c-2.533-4.788-1.65-10.662 2.261-14.41l5.975-5.726c5.61-5.378 14.768-4.112 18.718 2.581zm91.787-91.187c60.14 71.604 60.092 175.882 0 247.428-4.474 5.327-12.53 5.746-17.552.933l-5.798-5.557c-4.56-4.371-4.977-11.529-.93-16.379 49.687-59.538 49.646-145.933 0-205.422-4.047-4.85-3.631-12.008.93-16.379l5.798-5.557c5.022-4.813 13.078-4.394 17.552.933zm-45.972 44.941c36.05 46.322 36.108 111.149 0 157.546-4.39 5.641-12.697 6.251-17.856 1.304l-5.818-5.579c-4.4-4.219-4.998-11.095-1.285-15.931 26.536-34.564 26.534-82.572 0-117.134-3.713-4.836-3.115-11.711 1.285-15.931l5.818-5.579c5.159-4.947 13.466-4.337 17.856 1.304z"},"braille":{"viewBox":"0 0 640 512","path":"M128 256c0 35.346-28.654 64-64 64S0 291.346 0 256s28.654-64 64-64 64 28.654 64 64zM64 384c-17.673 0-32 14.327-32 32s14.327 32 32 32 32-14.327 32-32-14.327-32-32-32zm0-352C28.654 32 0 60.654 0 96s28.654 64 64 64 64-28.654 64-64-28.654-64-64-64zm160 192c-17.673 0-32 14.327-32 32s14.327 32 32 32 32-14.327 32-32-14.327-32-32-32zm0 160c-17.673 0-32 14.327-32 32s14.327 32 32 32 32-14.327 32-32-14.327-32-32-32zm0-352c-35.346 0-64 28.654-64 64s28.654 64 64 64 64-28.654 64-64-28.654-64-64-64zm224 192c-17.673 0-32 14.327-32 32s14.327 32 32 32 32-14.327 32-32-14.327-32-32-32zm0 160c-17.673 0-32 14.327-32 32s14.327 32 32 32 32-14.327 32-32-14.327-32-32-32zm0-352c-35.346 0-64 28.654-64 64s28.654 64 64 64 64-28.654 64-64-28.654-64-64-64zm160 192c-17.673 0-32 14.327-32 32s14.327 32 32 32 32-14.327 32-32-14.327-32-32-32zm0 160c-17.673 0-32 14.327-32 32s14.327 32 32 32 32-14.327 32-32-14.327-32-32-32zm0-320c-17.673 0-32 14.327-32 32s14.327 32 32 32 32-14.327 32-32-14.327-32-32-32z"},"assistive-listening-systems":{"viewBox":"0 0 512 512","path":"M216 260c0 15.464-12.536 28-28 28s-28-12.536-28-28c0-44.112 35.888-80 80-80s80 35.888 80 80c0 15.464-12.536 28-28 28s-28-12.536-28-28c0-13.234-10.767-24-24-24s-24 10.766-24 24zm24-176c-97.047 0-176 78.953-176 176 0 15.464 12.536 28 28 28s28-12.536 28-28c0-66.168 53.832-120 120-120s120 53.832 120 120c0 75.164-71.009 70.311-71.997 143.622L288 404c0 28.673-23.327 52-52 52-15.464 0-28 12.536-28 28s12.536 28 28 28c59.475 0 107.876-48.328 108-107.774.595-34.428 72-48.24 72-144.226 0-97.047-78.953-176-176-176zm-80 236c-17.673 0-32 14.327-32 32s14.327 32 32 32 32-14.327 32-32-14.327-32-32-32zM32 448c-17.673 0-32 14.327-32 32s14.327 32 32 32 32-14.327 32-32-14.327-32-32-32zm480-187.993c0-1.518-.012-3.025-.045-4.531C510.076 140.525 436.157 38.47 327.994 1.511c-14.633-4.998-30.549 2.809-35.55 17.442-5 14.633 2.81 30.549 17.442 35.55 85.906 29.354 144.61 110.513 146.077 201.953l.003.188c.026 1.118.033 2.236.033 3.363 0 15.464 12.536 28 28 28s28.001-12.536 28.001-28zM152.971 439.029l-80-80L39.03 392.97l80 80 33.941-33.941z"},"american-sign-language-interpreting":{"viewBox":"0 0 640 512","path":"M290.547 189.039c-20.295-10.149-44.147-11.199-64.739-3.89 42.606 0 71.208 20.475 85.578 50.576 8.576 17.899-5.148 38.071-23.617 38.071 18.429 0 32.211 20.136 23.617 38.071-14.725 30.846-46.123 50.854-80.298 50.854-.557 0-94.471-8.615-94.471-8.615l-66.406 33.347c-9.384 4.693-19.815.379-23.895-7.781L1.86 290.747c-4.167-8.615-1.111-18.897 6.946-23.621l58.072-33.069L108 159.861c6.39-57.245 34.731-109.767 79.743-146.726 11.391-9.448 28.341-7.781 37.51 3.613 9.446 11.394 7.78 28.067-3.612 37.516-12.503 10.559-23.618 22.509-32.509 35.57 21.672-14.729 46.679-24.732 74.186-28.067 14.725-1.945 28.063 8.336 29.73 23.065 1.945 14.728-8.336 28.067-23.062 29.734-16.116 1.945-31.12 7.503-44.178 15.284 26.114-5.713 58.712-3.138 88.079 11.115 13.336 6.669 18.893 22.509 12.224 35.848-6.389 13.06-22.504 18.617-35.564 12.226zm-27.229 69.472c-6.112-12.505-18.338-20.286-32.231-20.286a35.46 35.46 0 0 0-35.565 35.57c0 21.428 17.808 35.57 35.565 35.57 13.893 0 26.119-7.781 32.231-20.286 4.446-9.449 13.614-15.006 23.339-15.284-9.725-.277-18.893-5.835-23.339-15.284zm374.821-37.237c4.168 8.615 1.111 18.897-6.946 23.621l-58.071 33.069L532 352.16c-6.39 57.245-34.731 109.767-79.743 146.726-10.932 9.112-27.799 8.144-37.51-3.613-9.446-11.394-7.78-28.067 3.613-37.516 12.503-10.559 23.617-22.509 32.508-35.57-21.672 14.729-46.679 24.732-74.186 28.067-10.021 2.506-27.552-5.643-29.73-23.065-1.945-14.728 8.336-28.067 23.062-29.734 16.116-1.946 31.12-7.503 44.178-15.284-26.114 5.713-58.712 3.138-88.079-11.115-13.336-6.669-18.893-22.509-12.224-35.848 6.389-13.061 22.505-18.619 35.565-12.227 20.295 10.149 44.147 11.199 64.739 3.89-42.606 0-71.208-20.475-85.578-50.576-8.576-17.899 5.148-38.071 23.617-38.071-18.429 0-32.211-20.136-23.617-38.071 14.033-29.396 44.039-50.887 81.966-50.854l92.803 8.615 66.406-33.347c9.408-4.704 19.828-.354 23.894 7.781l44.455 88.926zm-229.227-18.618c-13.893 0-26.119 7.781-32.231 20.286-4.446 9.449-13.614 15.006-23.339 15.284 9.725.278 18.893 5.836 23.339 15.284 6.112 12.505 18.338 20.286 32.231 20.286a35.46 35.46 0 0 0 35.565-35.57c0-21.429-17.808-35.57-35.565-35.57z"},"deaf":{"viewBox":"0 0 512 512","path":"M216 260c0 15.464-12.536 28-28 28s-28-12.536-28-28c0-44.112 35.888-80 80-80s80 35.888 80 80c0 15.464-12.536 28-28 28s-28-12.536-28-28c0-13.234-10.767-24-24-24s-24 10.766-24 24zm24-176c-97.047 0-176 78.953-176 176 0 15.464 12.536 28 28 28s28-12.536 28-28c0-66.168 53.832-120 120-120s120 53.832 120 120c0 75.164-71.009 70.311-71.997 143.622L288 404c0 28.673-23.327 52-52 52-15.464 0-28 12.536-28 28s12.536 28 28 28c59.475 0 107.876-48.328 108-107.774.595-34.428 72-48.24 72-144.226 0-97.047-78.953-176-176-176zm268.485-52.201L480.2 3.515c-4.687-4.686-12.284-4.686-16.971 0L376.2 90.544c-4.686 4.686-4.686 12.284 0 16.971l28.285 28.285c4.686 4.686 12.284 4.686 16.97 0l87.03-87.029c4.687-4.688 4.687-12.286 0-16.972zM168.97 314.745c-4.686-4.686-12.284-4.686-16.97 0L3.515 463.23c-4.686 4.686-4.686 12.284 0 16.971L31.8 508.485c4.687 4.686 12.284 4.686 16.971 0L197.256 360c4.686-4.686 4.686-12.284 0-16.971l-28.286-28.284z"},"sign-language":{"viewBox":"0 0 448 512","path":"M91.434 483.987c-.307-16.018 13.109-29.129 29.13-29.129h62.293v-5.714H56.993c-16.021 0-29.437-13.111-29.13-29.129C28.16 404.491 40.835 392 56.428 392h126.429v-5.714H29.136c-16.021 0-29.437-13.111-29.13-29.129.297-15.522 12.973-28.013 28.566-28.013h154.286v-5.714H57.707c-16.021 0-29.437-13.111-29.13-29.129.297-15.522 12.973-28.013 28.566-28.013h168.566l-31.085-22.606c-12.762-9.281-15.583-27.149-6.302-39.912 9.281-12.761 27.15-15.582 39.912-6.302l123.361 89.715a34.287 34.287 0 0 1 14.12 27.728v141.136c0 15.91-10.946 29.73-26.433 33.374l-80.471 18.934a137.16 137.16 0 0 1-31.411 3.646H120c-15.593-.001-28.269-12.492-28.566-28.014zm73.249-225.701h36.423l-11.187-8.136c-18.579-13.511-20.313-40.887-3.17-56.536l-13.004-16.7c-9.843-12.641-28.43-15.171-40.88-5.088-12.065 9.771-14.133 27.447-4.553 39.75l36.371 46.71zm283.298-2.103l-5.003-152.452c-.518-15.771-13.722-28.136-29.493-27.619-15.773.518-28.137 13.722-27.619 29.493l1.262 38.415L283.565 11.019c-9.58-12.303-27.223-14.63-39.653-5.328-12.827 9.599-14.929 28.24-5.086 40.881l76.889 98.745-4.509 3.511-94.79-121.734c-9.58-12.303-27.223-14.63-39.653-5.328-12.827 9.599-14.929 28.24-5.086 40.881l94.443 121.288-4.509 3.511-77.675-99.754c-9.58-12.303-27.223-14.63-39.653-5.328-12.827 9.599-14.929 28.24-5.086 40.881l52.053 66.849c12.497-8.257 29.055-8.285 41.69.904l123.36 89.714c10.904 7.93 17.415 20.715 17.415 34.198v16.999l61.064-47.549a34.285 34.285 0 0 0 13.202-28.177z"},"low-vision":{"viewBox":"0 0 576 512","path":"M569.344 231.631C512.96 135.949 407.81 72 288 72c-28.468 0-56.102 3.619-82.451 10.409L152.778 10.24c-7.601-10.858-22.564-13.5-33.423-5.9l-13.114 9.178c-10.86 7.601-13.502 22.566-5.9 33.426l43.131 58.395C89.449 131.73 40.228 174.683 6.682 231.581c-.01.017-.023.033-.034.05-8.765 14.875-8.964 33.528 0 48.739 38.5 65.332 99.742 115.862 172.859 141.349L55.316 244.302A272.194 272.194 0 0 1 83.61 208.39l119.4 170.58h.01l40.63 58.04a330.055 330.055 0 0 0 78.94 1.17l-189.98-271.4a277.628 277.628 0 0 1 38.777-21.563l251.836 356.544c7.601 10.858 22.564 13.499 33.423 5.9l13.114-9.178c10.86-7.601 13.502-22.567 5.9-33.426l-43.12-58.377-.007-.009c57.161-27.978 104.835-72.04 136.81-126.301a47.938 47.938 0 0 0 .001-48.739zM390.026 345.94l-19.066-27.23c24.682-32.567 27.711-76.353 8.8-111.68v.03c0 23.65-19.17 42.82-42.82 42.82-23.828 0-42.82-19.349-42.82-42.82 0-23.65 19.17-42.82 42.82-42.82h.03c-24.75-13.249-53.522-15.643-79.51-7.68l-19.068-27.237C253.758 123.306 270.488 120 288 120c75.162 0 136 60.826 136 136 0 34.504-12.833 65.975-33.974 89.94z"},"envelope-open":{"viewBox":"0 0 512 512","path":"M512 464c0 26.51-21.49 48-48 48H48c-26.51 0-48-21.49-48-48V200.724a48 48 0 0 1 18.387-37.776c24.913-19.529 45.501-35.365 164.2-121.511C199.412 29.17 232.797-.347 256 .003c23.198-.354 56.596 29.172 73.413 41.433 118.687 86.137 139.303 101.995 164.2 121.512A48 48 0 0 1 512 200.724V464zm-65.666-196.605c-2.563-3.728-7.7-4.595-11.339-1.907-22.845 16.873-55.462 40.705-105.582 77.079-16.825 12.266-50.21 41.781-73.413 41.43-23.211.344-56.559-29.143-73.413-41.43-50.114-36.37-82.734-60.204-105.582-77.079-3.639-2.688-8.776-1.821-11.339 1.907l-9.072 13.196a7.998 7.998 0 0 0 1.839 10.967c22.887 16.899 55.454 40.69 105.303 76.868 20.274 14.781 56.524 47.813 92.264 47.573 35.724.242 71.961-32.771 92.263-47.573 49.85-36.179 82.418-59.97 105.303-76.868a7.998 7.998 0 0 0 1.839-10.967l-9.071-13.196z"},"address-book":{"viewBox":"0 0 448 512","path":"M436 160c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-20V48c0-26.5-21.5-48-48-48H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h320c26.5 0 48-21.5 48-48v-48h20c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-20v-64h20c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-20v-64h20zm-228-32c35.3 0 64 28.7 64 64s-28.7 64-64 64-64-28.7-64-64 28.7-64 64-64zm112 236.8c0 10.6-10 19.2-22.4 19.2H118.4C106 384 96 375.4 96 364.8v-19.2c0-31.8 30.1-57.6 67.2-57.6h5c12.3 5.1 25.7 8 39.8 8s27.6-2.9 39.8-8h5c37.1 0 67.2 25.8 67.2 57.6v19.2z"},"address-card":{"viewBox":"0 0 576 512","path":"M528 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h480c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zm-352 96c35.3 0 64 28.7 64 64s-28.7 64-64 64-64-28.7-64-64 28.7-64 64-64zm112 236.8c0 10.6-10 19.2-22.4 19.2H86.4C74 384 64 375.4 64 364.8v-19.2c0-31.8 30.1-57.6 67.2-57.6h5c12.3 5.1 25.7 8 39.8 8s27.6-2.9 39.8-8h5c37.1 0 67.2 25.8 67.2 57.6v19.2zM512 312c0 4.4-3.6 8-8 8H360c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h144c4.4 0 8 3.6 8 8v16zm0-64c0 4.4-3.6 8-8 8H360c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h144c4.4 0 8 3.6 8 8v16zm0-64c0 4.4-3.6 8-8 8H360c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h144c4.4 0 8 3.6 8 8v16z"},"user-circle":{"viewBox":"0 0 496 512","path":"M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm0 96c48.6 0 88 39.4 88 88s-39.4 88-88 88-88-39.4-88-88 39.4-88 88-88zm0 344c-58.7 0-111.3-26.6-146.5-68.2 18.8-35.4 55.6-59.8 98.5-59.8 2.4 0 4.8.4 7.1 1.1 13 4.2 26.6 6.9 40.9 6.9 14.3 0 28-2.7 40.9-6.9 2.3-.7 4.7-1.1 7.1-1.1 42.9 0 79.7 24.4 98.5 59.8C359.3 421.4 306.7 448 248 448z"},"id-badge":{"viewBox":"0 0 384 512","path":"M336 0H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48V48c0-26.5-21.5-48-48-48zM144 32h96c8.8 0 16 7.2 16 16s-7.2 16-16 16h-96c-8.8 0-16-7.2-16-16s7.2-16 16-16zm48 128c35.3 0 64 28.7 64 64s-28.7 64-64 64-64-28.7-64-64 28.7-64 64-64zm112 236.8c0 10.6-10 19.2-22.4 19.2H102.4C90 416 80 407.4 80 396.8v-19.2c0-31.8 30.1-57.6 67.2-57.6h5c12.3 5.1 25.7 8 39.8 8s27.6-2.9 39.8-8h5c37.1 0 67.2 25.8 67.2 57.6v19.2z"},"id-card":{"viewBox":"0 0 576 512","path":"M528 32H48C21.5 32 0 53.5 0 80v16h576V80c0-26.5-21.5-48-48-48zM0 432c0 26.5 21.5 48 48 48h480c26.5 0 48-21.5 48-48V128H0v304zm352-232c0-4.4 3.6-8 8-8h144c4.4 0 8 3.6 8 8v16c0 4.4-3.6 8-8 8H360c-4.4 0-8-3.6-8-8v-16zm0 64c0-4.4 3.6-8 8-8h144c4.4 0 8 3.6 8 8v16c0 4.4-3.6 8-8 8H360c-4.4 0-8-3.6-8-8v-16zm0 64c0-4.4 3.6-8 8-8h144c4.4 0 8 3.6 8 8v16c0 4.4-3.6 8-8 8H360c-4.4 0-8-3.6-8-8v-16zM176 192c35.3 0 64 28.7 64 64s-28.7 64-64 64-64-28.7-64-64 28.7-64 64-64zM67.1 396.2C75.5 370.5 99.6 352 128 352h8.2c12.3 5.1 25.7 8 39.8 8s27.6-2.9 39.8-8h8.2c28.4 0 52.5 18.5 60.9 44.2 3.2 9.9-5.2 19.8-15.6 19.8H82.7c-10.4 0-18.8-10-15.6-19.8z"},"thermometer-full":{"viewBox":"0 0 256 512","path":"M224 96c0-53.019-42.981-96-96-96S32 42.981 32 96v203.347C12.225 321.756.166 351.136.002 383.333c-.359 70.303 56.787 128.176 127.089 128.664.299.002.61.003.909.003 70.698 0 128-57.304 128-128 0-32.459-12.088-62.09-32-84.653V96zm-96 368l-.576-.002c-43.86-.304-79.647-36.544-79.423-80.42.173-33.98 19.266-51.652 31.999-66.08V96c0-26.467 21.533-48 48-48s48 21.533 48 48v221.498c12.63 14.312 32 32.164 32 66.502 0 44.112-35.888 80-80 80zm64-80c0 35.346-28.654 64-64 64s-64-28.654-64-64c0-23.685 12.876-44.349 32-55.417V96c0-17.673 14.327-32 32-32s32 14.327 32 32v232.583c19.124 11.068 32 31.732 32 55.417z"},"thermometer-three-quarters":{"viewBox":"0 0 256 512","path":"M192 384c0 35.346-28.654 64-64 64-35.346 0-64-28.654-64-64 0-23.685 12.876-44.349 32-55.417V160c0-17.673 14.327-32 32-32s32 14.327 32 32v168.583c19.124 11.068 32 31.732 32 55.417zm32-84.653c19.912 22.563 32 52.194 32 84.653 0 70.696-57.303 128-128 128-.299 0-.609-.001-.909-.003C56.789 511.509-.357 453.636.002 383.333.166 351.135 12.225 321.755 32 299.347V96c0-53.019 42.981-96 96-96s96 42.981 96 96v203.347zM208 384c0-34.339-19.37-52.19-32-66.502V96c0-26.467-21.533-48-48-48S80 69.533 80 96v221.498c-12.732 14.428-31.825 32.1-31.999 66.08-.224 43.876 35.563 80.116 79.423 80.42L128 464c44.112 0 80-35.888 80-80z"},"thermometer-half":{"viewBox":"0 0 256 512","path":"M192 384c0 35.346-28.654 64-64 64s-64-28.654-64-64c0-23.685 12.876-44.349 32-55.417V224c0-17.673 14.327-32 32-32s32 14.327 32 32v104.583c19.124 11.068 32 31.732 32 55.417zm32-84.653c19.912 22.563 32 52.194 32 84.653 0 70.696-57.303 128-128 128-.299 0-.609-.001-.909-.003C56.789 511.509-.357 453.636.002 383.333.166 351.135 12.225 321.755 32 299.347V96c0-53.019 42.981-96 96-96s96 42.981 96 96v203.347zM208 384c0-34.339-19.37-52.19-32-66.502V96c0-26.467-21.533-48-48-48S80 69.533 80 96v221.498c-12.732 14.428-31.825 32.1-31.999 66.08-.224 43.876 35.563 80.116 79.423 80.42L128 464c44.112 0 80-35.888 80-80z"},"thermometer-quarter":{"viewBox":"0 0 256 512","path":"M192 384c0 35.346-28.654 64-64 64s-64-28.654-64-64c0-23.685 12.876-44.349 32-55.417V288c0-17.673 14.327-32 32-32s32 14.327 32 32v40.583c19.124 11.068 32 31.732 32 55.417zm32-84.653c19.912 22.563 32 52.194 32 84.653 0 70.696-57.303 128-128 128-.299 0-.609-.001-.909-.003C56.789 511.509-.357 453.636.002 383.333.166 351.135 12.225 321.755 32 299.347V96c0-53.019 42.981-96 96-96s96 42.981 96 96v203.347zM208 384c0-34.339-19.37-52.19-32-66.502V96c0-26.467-21.533-48-48-48S80 69.533 80 96v221.498c-12.732 14.428-31.825 32.1-31.999 66.08-.224 43.876 35.563 80.116 79.423 80.42L128 464c44.112 0 80-35.888 80-80z"},"thermometer-empty":{"viewBox":"0 0 256 512","path":"M192 384c0 35.346-28.654 64-64 64s-64-28.654-64-64c0-35.346 28.654-64 64-64s64 28.654 64 64zm32-84.653c19.912 22.563 32 52.194 32 84.653 0 70.696-57.303 128-128 128-.299 0-.609-.001-.909-.003C56.789 511.509-.357 453.636.002 383.333.166 351.135 12.225 321.755 32 299.347V96c0-53.019 42.981-96 96-96s96 42.981 96 96v203.347zM208 384c0-34.339-19.37-52.19-32-66.502V96c0-26.467-21.533-48-48-48S80 69.533 80 96v221.498c-12.732 14.428-31.825 32.1-31.999 66.08-.224 43.876 35.563 80.116 79.423 80.42L128 464c44.112 0 80-35.888 80-80z"},"shower":{"viewBox":"0 0 512 512","path":"M389.66 135.6L231.6 293.66c-9.37 9.37-24.57 9.37-33.94 0l-11.32-11.32c-9.37-9.37-9.37-24.57 0-33.94l.11-.11c-34.03-40.21-35.16-98.94-3.39-140.38-11.97-7.55-26.14-11.91-41.3-11.91C98.88 96 64 130.88 64 173.76V480H0V173.76C0 95.59 63.59 32 141.76 32c36.93 0 70.61 14.2 95.86 37.42 35.9-11.51 76.5-4.5 106.67 21.03l.11-.11c9.37-9.37 24.57-9.37 33.94 0l11.32 11.32c9.37 9.37 9.37 24.57 0 33.94zM384 208c0 8.837-7.163 16-16 16s-16-7.163-16-16 7.163-16 16-16 16 7.163 16 16zm32 0c0-8.837 7.163-16 16-16s16 7.163 16 16-7.163 16-16 16-16-7.163-16-16zm96 0c0 8.837-7.163 16-16 16s-16-7.163-16-16 7.163-16 16-16 16 7.163 16 16zm-160 32c0 8.837-7.163 16-16 16s-16-7.163-16-16 7.163-16 16-16 16 7.163 16 16zm48-16c8.837 0 16 7.163 16 16s-7.163 16-16 16-16-7.163-16-16 7.163-16 16-16zm80 16c0 8.837-7.163 16-16 16s-16-7.163-16-16 7.163-16 16-16 16 7.163 16 16zm-160 32c0 8.837-7.163 16-16 16s-16-7.163-16-16 7.163-16 16-16 16 7.163 16 16zm32 0c0-8.837 7.163-16 16-16s16 7.163 16 16-7.163 16-16 16-16-7.163-16-16zm96 0c0 8.837-7.163 16-16 16s-16-7.163-16-16 7.163-16 16-16 16 7.163 16 16zm-128 32c0-8.837 7.163-16 16-16s16 7.163 16 16-7.163 16-16 16-16-7.163-16-16zm96 0c0 8.837-7.163 16-16 16s-16-7.163-16-16 7.163-16 16-16 16 7.163 16 16zm-96 32c0 8.837-7.163 16-16 16s-16-7.163-16-16 7.163-16 16-16 16 7.163 16 16zm64 0c0 8.837-7.163 16-16 16s-16-7.163-16-16 7.163-16 16-16 16 7.163 16 16zm-32 32c0 8.837-7.163 16-16 16s-16-7.163-16-16 7.163-16 16-16 16 7.163 16 16zm-32 32c0 8.837-7.163 16-16 16s-16-7.163-16-16 7.163-16 16-16 16 7.163 16 16z"},"bath":{"viewBox":"0 0 512 512","path":"M488 256H80V112c0-17.645 14.355-32 32-32 11.351 0 21.332 5.945 27.015 14.88-16.492 25.207-14.687 59.576 6.838 83.035-4.176 4.713-4.021 11.916.491 16.428l11.314 11.314c4.686 4.686 12.284 4.686 16.971 0l95.03-95.029c4.686-4.686 4.686-12.284 0-16.971l-11.314-11.314c-4.512-4.512-11.715-4.666-16.428-.491-17.949-16.469-42.294-21.429-64.178-15.365C163.281 45.667 139.212 32 112 32c-44.112 0-80 35.888-80 80v144h-8c-13.255 0-24 10.745-24 24v16c0 13.255 10.745 24 24 24h8v32c0 28.43 12.362 53.969 32 71.547V456c0 13.255 10.745 24 24 24h16c13.255 0 24-10.745 24-24v-8h256v8c0 13.255 10.745 24 24 24h16c13.255 0 24-10.745 24-24v-32.453c19.638-17.578 32-43.117 32-71.547v-32h8c13.255 0 24-10.745 24-24v-16c0-13.255-10.745-24-24-24z"},"podcast":{"viewBox":"0 0 448 512","path":"M267.429 488.563C262.286 507.573 242.858 512 224 512c-18.857 0-38.286-4.427-43.428-23.437C172.927 460.134 160 388.898 160 355.75c0-35.156 31.142-43.75 64-43.75s64 8.594 64 43.75c0 32.949-12.871 104.179-20.571 132.813zM156.867 288.554c-18.693-18.308-29.958-44.173-28.784-72.599 2.054-49.724 42.395-89.956 92.124-91.881C274.862 121.958 320 165.807 320 220c0 26.827-11.064 51.116-28.866 68.552-2.675 2.62-2.401 6.986.628 9.187 9.312 6.765 16.46 15.343 21.234 25.363 1.741 3.654 6.497 4.66 9.449 1.891 28.826-27.043 46.553-65.783 45.511-108.565-1.855-76.206-63.595-138.208-139.793-140.369C146.869 73.753 80 139.215 80 220c0 41.361 17.532 78.7 45.55 104.989 2.953 2.771 7.711 1.77 9.453-1.887 4.774-10.021 11.923-18.598 21.235-25.363 3.029-2.2 3.304-6.566.629-9.185zM224 0C100.204 0 0 100.185 0 224c0 89.992 52.602 165.647 125.739 201.408 4.333 2.118 9.267-1.544 8.535-6.31-2.382-15.512-4.342-30.946-5.406-44.339-.146-1.836-1.149-3.486-2.678-4.512-47.4-31.806-78.564-86.016-78.187-147.347.592-96.237 79.29-174.648 175.529-174.899C320.793 47.747 400 126.797 400 224c0 61.932-32.158 116.49-80.65 147.867-.999 14.037-3.069 30.588-5.624 47.23-.732 4.767 4.203 8.429 8.535 6.31C395.227 389.727 448 314.187 448 224 448 100.205 347.815 0 224 0zm0 160c-35.346 0-64 28.654-64 64s28.654 64 64 64 64-28.654 64-64-28.654-64-64-64z"},"window-maximize":{"viewBox":"0 0 512 512","path":"M464 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h416c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zm-16 160H64v-84c0-6.6 5.4-12 12-12h360c6.6 0 12 5.4 12 12v84z"},"window-minimize":{"viewBox":"0 0 512 512","path":"M464 352H48c-26.5 0-48 21.5-48 48v32c0 26.5 21.5 48 48 48h416c26.5 0 48-21.5 48-48v-32c0-26.5-21.5-48-48-48z"},"window-restore":{"viewBox":"0 0 512 512","path":"M512 48v288c0 26.5-21.5 48-48 48h-48V176c0-44.1-35.9-80-80-80H128V48c0-26.5 21.5-48 48-48h288c26.5 0 48 21.5 48 48zM384 176v288c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V176c0-26.5 21.5-48 48-48h288c26.5 0 48 21.5 48 48zm-68 28c0-6.6-5.4-12-12-12H76c-6.6 0-12 5.4-12 12v52h252v-52z"},"window-close":{"viewBox":"0 0 512 512","path":"M464 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h416c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zm-83.6 290.5c4.8 4.8 4.8 12.6 0 17.4l-40.5 40.5c-4.8 4.8-12.6 4.8-17.4 0L256 313.3l-66.5 67.1c-4.8 4.8-12.6 4.8-17.4 0l-40.5-40.5c-4.8-4.8-4.8-12.6 0-17.4l67.1-66.5-67.1-66.5c-4.8-4.8-4.8-12.6 0-17.4l40.5-40.5c4.8-4.8 12.6-4.8 17.4 0l66.5 67.1 66.5-67.1c4.8-4.8 12.6-4.8 17.4 0l40.5 40.5c4.8 4.8 4.8 12.6 0 17.4L313.3 256l67.1 66.5z"},"microchip":{"viewBox":"0 0 512 512","path":"M416 48v416c0 26.51-21.49 48-48 48H144c-26.51 0-48-21.49-48-48V48c0-26.51 21.49-48 48-48h224c26.51 0 48 21.49 48 48zm96 58v12a6 6 0 0 1-6 6h-18v6a6 6 0 0 1-6 6h-42V88h42a6 6 0 0 1 6 6v6h18a6 6 0 0 1 6 6zm0 96v12a6 6 0 0 1-6 6h-18v6a6 6 0 0 1-6 6h-42v-48h42a6 6 0 0 1 6 6v6h18a6 6 0 0 1 6 6zm0 96v12a6 6 0 0 1-6 6h-18v6a6 6 0 0 1-6 6h-42v-48h42a6 6 0 0 1 6 6v6h18a6 6 0 0 1 6 6zm0 96v12a6 6 0 0 1-6 6h-18v6a6 6 0 0 1-6 6h-42v-48h42a6 6 0 0 1 6 6v6h18a6 6 0 0 1 6 6zM30 376h42v48H30a6 6 0 0 1-6-6v-6H6a6 6 0 0 1-6-6v-12a6 6 0 0 1 6-6h18v-6a6 6 0 0 1 6-6zm0-96h42v48H30a6 6 0 0 1-6-6v-6H6a6 6 0 0 1-6-6v-12a6 6 0 0 1 6-6h18v-6a6 6 0 0 1 6-6zm0-96h42v48H30a6 6 0 0 1-6-6v-6H6a6 6 0 0 1-6-6v-12a6 6 0 0 1 6-6h18v-6a6 6 0 0 1 6-6zm0-96h42v48H30a6 6 0 0 1-6-6v-6H6a6 6 0 0 1-6-6v-12a6 6 0 0 1 6-6h18v-6a6 6 0 0 1 6-6z"}}')},cu=e=>{let{iconName:t,iconData:n,hexFill:a,w:i=25,h:c=25}=e;const d={viewBox:"0 0 34 34",path:'<path fill-rule="evenodd" clip-rule="evenodd" d="M4.14453 0.145264C1.93539 0.145264 0.144531 1.93613 0.144531 4.14527V11.5001C0.144531 13.7092 1.93539 15.5001 4.14453 15.5001H11.4994C13.7085 15.5001 15.4994 13.7092 15.4994 11.5001V4.14526C15.4994 1.93612 13.7085 0.145264 11.4994 0.145264H4.14453ZM22.5 0.145264C20.2909 0.145264 18.5 1.93613 18.5 4.14527V11.5001C18.5 13.7092 20.2909 15.5001 22.5 15.5001H29.8548C32.064 15.5001 33.8548 13.7092 33.8548 11.5001V4.14526C33.8548 1.93612 32.064 0.145264 29.8548 0.145264H22.5ZM0.144531 22.5C0.144531 20.2909 1.93539 18.5 4.14453 18.5H11.4994C13.7085 18.5 15.4994 20.2909 15.4994 22.5V29.8548C15.4994 32.064 13.7085 33.8548 11.4994 33.8548H4.14453C1.93539 33.8548 0.144531 32.064 0.144531 29.8548V22.5ZM22.5 18.5C20.2909 18.5 18.5 20.2909 18.5 22.5V29.8548C18.5 32.064 20.2909 33.8548 22.5 33.8548H29.8548C32.064 33.8548 33.8548 32.064 33.8548 29.8548V22.5C33.8548 20.2909 32.064 18.5 29.8548 18.5H22.5Z" fill="#A5ADB3"></path>',iconName:"ze-search",iconColor:"rgba(0, 0, 0, 1)",iconSize:34,svgAttr:{fill:void 0,stroke:void 0}},p=Ds.wIcon("",5,0,0,i,c,d);if(n)p.iconData=n;else if(t){const h=Tv[t];h&&(p.iconData.viewBox=h.viewBox,p.iconData.path='<path d="'+h.path+'"></path>')}return a&&(p.fill={fillIsVisible:!0,fill:"solid",solidColor:Si(a)}),p},Eg=e=>{const t=a=>{let{name:i="",selected:c=!1}=a;return{data:{name:i,linkCids:"",expanded:!1,selected:c,designExpanded:!1},children:[]}},n=[];for(let a=0;a<e.length;a++){const i=e[a];let c;a===0?c=t({name:i,selected:!0}):c=t({name:i}),n.push(c)}return n},JL=(e,t)=>{const n=c=>{let{name:d="",selected:p=!1}=c;return{data:{name:d,linkCids:"",expanded:!1,selected:p,designExpanded:!1,icon:void 0},children:[]}},a=[],i=[{data:{name:"\u6807\u7B7E1",linkCids:"",expanded:!1,selected:!0,icon:{path:'<path d="M946.5 505L560.1 118.8l-25.9-25.9a31.5 31.5 0 0 0-44.4 0L77.5 505a63.9 63.9 0 0 0-18.8 46c.4 35.2 29.7 63.3 64.9 63.3h42.5V940h691.8V614.3h43.4c17.1 0 33.2-6.7 45.3-18.8a63.6 63.6 0 0 0 18.7-45.3c0-17-6.7-33.1-18.8-45.2zM568 868H456V664h112v204zm217.9-325.7V868H632V640c0-22.1-17.9-40-40-40H432c-22.1 0-40 17.9-40 40v228H238.1V542.3h-96l370-369.7 23.1 23.1L882 542.3h-96.1z"></path>',viewBox:"64 64 896 896"}},children:[]},{data:{name:"\u6807\u7B7E2",linkCids:"",expanded:!1,selected:!1,icon:{path:'<path d="M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 110.8V792H136V270.8l-27.6-21.5 39.3-50.5 42.8 33.3h643.1l42.8-33.3 39.3 50.5-27.7 21.5zM833.6 232L512 482 190.4 232l-42.8-33.3-39.3 50.5 27.6 21.5 341.6 265.6a55.99 55.99 0 0 0 68.7 0L888 270.8l27.6-21.5-39.3-50.5-42.7 33.2z"></path>',viewBox:"64 64 896 896"}},children:[]},{data:{name:"\u6807\u7B7E3",linkCids:"",expanded:!1,selected:!1,icon:{path:'<path d="M854.6 289.1a362.49 362.49 0 0 0-79.9-115.7 370.83 370.83 0 0 0-118.2-77.8C610.7 76.6 562.1 67 512 67c-50.1 0-98.7 9.6-144.5 28.5-44.3 18.3-84 44.5-118.2 77.8A363.6 363.6 0 0 0 169.4 289c-19.5 45-29.4 92.8-29.4 142 0 70.6 16.9 140.9 50.1 208.7 26.7 54.5 64 107.6 111 158.1 80.3 86.2 164.5 138.9 188.4 153a43.9 43.9 0 0 0 22.4 6.1c7.8 0 15.5-2 22.4-6.1 23.9-14.1 108.1-66.8 188.4-153 47-50.4 84.3-103.6 111-158.1C867.1 572 884 501.8 884 431.1c0-49.2-9.9-97-29.4-142zM512 880.2c-65.9-41.9-300-207.8-300-449.1 0-77.9 31.1-151.1 87.6-206.3C356.3 169.5 431.7 139 512 139s155.7 30.5 212.4 85.9C780.9 280 812 353.2 812 431.1c0 241.3-234.1 407.2-300 449.1zm0-617.2c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 0 1 512 551c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 0 1 400 439c0-29.9 11.7-58 32.8-79.2C454 338.6 482.1 327 512 327c29.9 0 58 11.6 79.2 32.8C612.4 381 624 409.1 624 439c0 29.9-11.6 58-32.8 79.2z"></path>',viewBox:"64 64 896 896"}},children:[]},{data:{name:"\u6807\u7B7E4",linkCids:"",expanded:!1,selected:!1,icon:{path:'<path d="M858.5 763.6a374 374 0 0 0-80.6-119.5 375.63 375.63 0 0 0-119.5-80.6c-.4-.2-.8-.3-1.2-.5C719.5 518 760 444.7 760 362c0-137-111-248-248-248S264 225 264 362c0 82.7 40.5 156 102.8 201.1-.4.2-.8.3-1.2.5-44.8 18.9-85 46-119.5 80.6a375.63 375.63 0 0 0-80.6 119.5A371.7 371.7 0 0 0 136 901.8a8 8 0 0 0 8 8.2h60c4.4 0 7.9-3.5 8-7.8 2-77.2 33-149.5 87.8-204.3 56.7-56.7 132-87.9 212.2-87.9s155.5 31.2 212.2 87.9C779 752.7 810 825 812 902.2c.1 4.4 3.6 7.8 8 7.8h60a8 8 0 0 0 8-8.2c-1-47.8-10.9-94.3-29.5-138.2zM512 534c-45.9 0-89.1-17.9-121.6-50.4S340 407.9 340 362c0-45.9 17.9-89.1 50.4-121.6S466.1 190 512 190s89.1 17.9 121.6 50.4S684 316.1 684 362c0 45.9-17.9 89.1-50.4 121.6S557.9 534 512 534z"></path>',viewBox:"64 64 896 896"}},children:[]}];for(let c=0;c<e.length;c++){const d=e[c],p=n({name:d,selected:c===0}),h=Math.min(c,i.length-1),m=Tv[t[c]];m?p.data.icon={path:'<path d="'+m.path+'"></path>',viewBox:m.viewBox}:p.data.icon=i[h].data.icon,a.push(p)}return a},Mm={protoBlue:"#007AFF",fontWhite:"#FFFFFF"},qL=e=>{switch(e){case"input":case"buttons":return[mp,98];case"picker":case"stepper":case"switch":return[mp,60];case"selector":return[mp,100];case"radio":case"checkBox":return[mp,136];case"slider":return[mp,80];case"rate":return[mp,80];default:return[mp,100]}},$L=e=>{let{widget:t,canvasKey:n,canvasH:a}=e,i=0;const c=()=>{const G=[],ee=X0(),ce=a+i;ee.fill={fillIsVisible:!0,fill:"solid",solidColor:Si("#F4F6F9")},ee.w=358,ee.h=46,ee.x=16+ee.w/2,ee.y=ce+41+ee.h/2,ee.borderRadius=14,G.push(Xr({hotAttr:ee,sup:n}));const se=Vl(I18N.ChatGPT.enter_text,{h:18,w:326,lineHeight:19});return se.x=32+se.w/2,se.y=ce+55+se.h/2,se.richTextV1.textColor="rgba(180,180,180,1)",G.push(Xr({hotAttr:se,sup:n})),G},d=()=>{const G=Ds[Zt.x.WDigitalStepper]("");return G.w=96,G.x=278+G.w/2,G.fill={fillIsVisible:!0,fill:"solid",solidColor:Si("#F2F2F7")},G.border.bdrIsVisible=!1,[Xr({hotAttr:G,sup:n})]},p=()=>{const G=Ds[Zt.x.WIOSSwitch]("");return G.w=32,G.h=20,G.x=342+G.w/2,G.switch.checkedTrackColor=Si("#1685FC"),[Xr({hotAttr:G,sup:n})]},h=G=>{const ee=[],he=G.length,ve=he===1?"single":he===2?"double":"triple",Te=ve==="double"?16:ve==="triple"?12:0,xe=ve==="single"?342:ve==="double"?163:ve==="triple"?106:0;for(const[Fe,et]of G.entries()){let Ke={};ve==="single"?Ke=hp({w:xe,h:44}):ve==="double"?Fe===1?Ke=hp({w:xe,h:44}):Ke=hp({w:xe,h:44,hexFill:"#F2F2F7",hexFontColor:"#000000"}):ve==="triple"&&(Ke=hp({w:xe,h:44,hexFill:"#F2F2F7",hexFontColor:"#000000"})),Ke.x=gs(24+Fe*(xe+Te),Ke),Ke.textV0.text=et,Ke.textV0.fontSize=16,ee.push(Xr({hotAttr:Ke,sup:n}))}return ee},m=G=>{const ee=[],he=G.length,ve=he===2?173:he===3?111:81,Te=32;for(const[xe,Fe]of G.entries()){const et=xe===0?P5(Fe,{w:ve,h:Te,bold:!0,hexFill:Mm.protoBlue,textColor:Mm.fontWhite}):P5(Fe,{w:ve,h:Te,hexFill:"#F2F2F7",textColor:"#000000",bold:!1});et.x=gs(16+xe*12+xe*ve,et),et.borderRadius=20,ee.push(Xr({hotAttr:et,sup:n}))}return ee},x=G=>{const ee=[],ce=Ds[Zt.x.WSelectionControlRadio]("wSelectionControl"),se=G.options.length;ce.h=se===2?68:se===3?114:se===4?160:64,ce.w=143,ce.x=gs(16,ce),ce.optionData=Eg(G.options),ee.push(Xr({hotAttr:ce,sup:n}));const he=N5({hexBdrColor:"#ebeef2"});he.x=gs(41,he);const ve=Array(G.options.length).fill(Xr({hotAttr:he,sup:n}));return ee.push(...ve),ee},v=G=>{const ee=[],ce=Ds[Zt.x.WSelectionControlCheckbox]("wSelectionControl"),se=G.options.length;ce.h=se===2?68:se===3?114:se===4?160:64,ce.w=143,ce.x=gs(16,ce),ce.optionData=Eg(G.options),ee.push(Xr({hotAttr:ce,sup:n}));const he=N5({hexBdrColor:"#ebeef2"});he.x=gs(41,he);const ve=Array(G.options.length).fill(Xr({hotAttr:he,sup:n}));return ee.push(...ve),ee},A=()=>{const G=Ds[Zt.x.WSlider]("wSlider");return G.w=358,G.x=16+G.w/2,[Xr({hotAttr:G,sup:n})]},k=(G,ee)=>{const ce=Ds.wDropMenu("wSlider");ce.textV0.text=G,ce.textV0.fontSize=16,ce.optionData=Eg(ee).map(he=>(he.data.selected=!1,he)),ce.border.bdrIsVisible=!1;const se=i+a;return ce.w=372,ce.h=60,ce.x=gs(9,ce),ce.y=se+ce.h/2,i+=ce.h,[Xr({hotAttr:ce,sup:n})]},R=G=>{const ee=[],ce={viewBox:"0 0 24 24",path:'<path d="M22 10.0999C22.1 9.59994 21.7 8.99994 21.2 8.99994L15.5 8.19994L12.9 2.99994C12.8 2.79994 12.7 2.69994 12.5 2.59994C12 2.29994 11.4 2.49994 11.1 2.99994L8.6 8.19994L2.9 8.99994C2.6 8.99994 2.4 9.09994 2.3 9.29994C1.9 9.69994 1.9 10.2999 2.3 10.6999L6.4 14.6999L5.4 20.3999C5.4 20.5999 5.4 20.7999 5.5 20.9999C5.8 21.4999 6.4 21.6999 6.9 21.3999L12 18.6999L17.1 21.3999C17.2 21.4999 17.4 21.4999 17.6 21.4999C17.7 21.4999 17.7 21.4999 17.8 21.4999C18.3 21.3999 18.7 20.8999 18.6 20.2999L17.6 14.5999L21.7 10.5999C21.9 10.4999 22 10.2999 22 10.0999Z" fill="#FFC043"></path>',iconName:"\u56FE\u6807",iconColor:"#FFC043",iconSize:24,svgAttr:{fill:void 0,stroke:void 0}};let se=0;for(let he=0;he<G;he++){const ve=cu({iconData:ce,hexFill:"#FFC043"});ve.x=18+se*6+ve.w/2+se*ve.w,se+=1,ee.push(Xr({hotAttr:ve,sup:n}))}for(let he=0;he<5-G;he++){const ve=cu({iconData:ce});ve.x=18+se*6+ve.w/2+se*ve.w,se+=1,ee.push(Xr({hotAttr:ve,sup:n}))}return ee},F=G=>{let{type:ee,baseItemList:ce,title:se,sup:he}=G;const ve=[],Te=Ds[Zt.x.WRect](""),xe=a+i,[Fe,et]=qL(ee);Te.w=Fe,Te.h=["radio","checkBox"].includes(ee)?ce[0].hotAttr.h+20+41:et,Te.y=ss(xe,Te),Te.x=Te.w/2;const Ke=Vl(se!=null?se:"",{fontSize:16,bold:!0});Ke.w=358,Ke.x=gs(16,Ke),Ke.y=["stepper","switch"].includes(ee)?Te.y:ss(xe+10,Ke),ve.push(Xr({hotAttr:Ke,sup:he}));const Qe=ce.map((nt,Xe)=>{if(["stepper","switch"].includes(ee))nt.hotAttr.y=Ke.y;else if(["radio","checkBox"].includes(ee)){const lt=Xe===0?0:Xe===1?25:(Xe-1)*46;nt.hotAttr.y=ss(xe+41+lt,nt.hotAttr)}else nt.hotAttr.y=ss(xe+41,nt.hotAttr);return nt});return ve.push(...Qe),ve.push(...ce),i+=Te.h,ve},Z=[];for(const G of t.subs){const{title:ee,type:ce}=G;let se=[];switch(ce){case"input":{se=F({type:ce,baseItemList:c(),sup:n,title:ee});break}case"picker":{se=k(ee,G.options);break}case"stepper":{se=F({type:ce,baseItemList:d(),sup:n,title:ee});break}case"switch":se=F({type:ce,baseItemList:p(),sup:n,title:ee});break;case"selector":{se=F({type:ce,baseItemList:m(G.options),sup:n,title:ee});break}case"radio":{se=F({type:ce,baseItemList:x(G),sup:n,title:ee});break}case"checkBox":{se=F({type:ce,baseItemList:v(G),sup:n,title:ee});break}case"slider":{se=F({type:ce,baseItemList:A(),sup:n,title:ee});break}case"rate":{se=F({type:ce,baseItemList:R(G.rateNum),sup:n,title:ee});break}case"buttons":{se=F({type:ce,baseItemList:h(G.buttons),sup:n,title:ee});break}default:break}Z.push(...se)}return{height:i,hiList:Z}},eN=e=>{let{widget:t,canvasKey:n,canvasH:a}=e;const{images:i}=t,c=Ds.wCarousel("");c.w=358,c.x=16+c.w/2,c.y=a+c.h/2,c.h=180,c.borderRadius=14;const d=i.map(p=>({url:kv({url:p,w:c.w,h:c.h}),name:""}));return c.carousel.slides=i.map(p=>({asset:"",linkCids:"",fillType:"fill"})),{height:c.h,hiList:[Xr({hotAttr:{...c,exts:d},sup:n})]}},tN=e=>({search:{viewBox:"0 0 32 32",path:'<path d="M12.889 20.953c4.418 0 8-3.582 8-8s-3.582-8-8-8-8 3.582-8 8 3.582 8 8 8zM20.447 19.158l7.99 7.99c0.347 0.347 0.347 0.91 0 1.257s-0.91 0.347-1.257 0l-7.981-7.981c-1.703 1.44-3.905 2.308-6.309 2.308-5.4 0-9.778-4.378-9.778-9.778s4.378-9.778 9.778-9.778c5.4 0 9.778 4.378 9.778 9.778 0 2.355-0.833 4.516-2.22 6.204z"></path>',iconName:"ze-search",iconColor:"rgba(0, 0, 0, 1)",iconSize:25,svgAttr:{fill:void 0,stroke:void 0}},more:{viewBox:"0 0 32 32",path:'<path d="M6 14c-1.1 0-2 0.9-2 2s0.9 2 2 2 2-0.9 2-2-0.9-2-2-2zM26 14c-1.1 0-2 0.9-2 2s0.9 2 2 2 2-0.9 2-2-0.9-2-2-2zM16 14c-1.1 0-2 0.9-2 2s0.9 2 2 2 2-0.9 2-2-0.9-2-2-2z"></path>',iconName:"riLine-more-line",iconColor:"rgba(0, 0, 0, 1)",iconSize:25,svgAttr:{fill:void 0,stroke:void 0}}})[e],nN=e=>({back:{viewBox:"0 0 32 32",path:'<path d="M9.476 16.257c-0.103-0.435 0.015-0.912 0.355-1.251l10.685-10.685c0.521-0.521 1.365-0.521 1.886 0s0.521 1.365 0 1.886l-9.745 9.745 9.746 9.746c0.521 0.521 0.521 1.365 0 1.886s-1.365 0.521-1.886 0l-10.685-10.685c-0.171-0.171-0.296-0.388-0.354-0.632l-0.002-0.009z"></path>',iconName:"ze-arrow-left",iconColor:"rgba(0, 0, 0, 1)",iconSize:25,svgAttr:{fill:void 0,stroke:void 0}}})[e],oN=e=>{let{widget:t,canvasH:n,canvasKey:a}=e;const{leftArea:i,title:c,rightArea:d}=t,p=[],h=X0();if(h.h=45,h.y=n+h.h/2,p.push(Xr({hotAttr:h,sup:a})),i.type==="icon"){const m=nN(i.data);if(m){const x=cu({iconData:m,hexFill:Mm.protoBlue});x.y=h.y,x.x=gs(16,x),p.push(Xr({hotAttr:x,sup:a}))}}else if(i.type==="text"){const m=Vl(i.data,{textColor:Mm.protoBlue,fontSize:16});m.x=gs(16,m),m.y=h.y,p.push(Xr({hotAttr:m,sup:a}))}{const m=Vl(c,{fontSize:18,horizontalAlign:"center"});m.w=130,m.y=h.y,m.x=gs(130,m),p.push(Xr({hotAttr:m,sup:a}))}if(d.type==="icon"){const m=tN(d.data);if(m){const x=cu({iconData:m});x.y=h.y,x.x=gs(349,x),d.data==="search"&&(x.fill={fillIsVisible:!0,fill:"solid",solidColor:Si(Mm.protoBlue)}),p.push(Xr({hotAttr:x,sup:a}))}}else if(d.type==="text"){const m=Vl(d.data,{textColor:Mm.protoBlue,fontSize:16,horizontalAlign:"right"});m.w=114,m.y=h.y,m.x=gs(260,m),p.push(Xr({hotAttr:m,sup:a}))}return{height:h.h,hiList:p}},aN=e=>{let{canvasKey:t,canvasH:n}=e;const a={viewBox:"0 0 32 32",path:'<path d="M12.889 20.953c4.418 0 8-3.582 8-8s-3.582-8-8-8-8 3.582-8 8 3.582 8 8 8zM20.447 19.158l7.99 7.99c0.347 0.347 0.347 0.91 0 1.257s-0.91 0.347-1.257 0l-7.981-7.981c-1.703 1.44-3.905 2.308-6.309 2.308-5.4 0-9.778-4.378-9.778-9.778s4.378-9.778 9.778-9.778c5.4 0 9.778 4.378 9.778 9.778 0 2.355-0.833 4.516-2.22 6.204z"></path>',iconName:"ze-search",iconColor:"rgba(0, 0, 0, 1)",iconSize:25,svgAttr:{fill:void 0,stroke:void 0}},i=n,c=[],d=X0(358);d.x=gs(16,d),d.h=45,d.y=ss(i,d),d.fill={fillIsVisible:!0,fill:"solid",solidColor:Si("#F4F6F9")},d.borderRadius=14,c.push(Xr({hotAttr:d,sup:t}));const p=cu({iconData:a,hexFill:"#666666"});p.x=gs(30,p),p.y=d.y,c.push(Xr({hotAttr:p,sup:t}));const h=Vl(I18N.ChatGPT.search_text,{w:300,textColor:"#666666"});return h.x=gs(62,h),h.y=d.y,c.push(Xr({hotAttr:h,sup:t})),{height:45,hiList:c}},Pv=e=>{let{widget:t,canvasKey:n,canvasH:a}=e;const i=Ds.wMobileTabBars("");i.w=mp,i.x=i.w/2,i.y=a+i.h/2,i.border.bdrIsVisible=!1;const{names:c,icons:d}=t;return i.optionData=JL(c,d),i.mobileTabBars.fontSize=12,{height:i.h,hiList:[Xr({hotAttr:i,sup:n})]}},rN=e=>{let{widget:t,canvasKey:n,canvasH:a}=e;const i=Ds.wTabs(""),{names:c}=t;return i.w=c.length===2?146:358,i.x=gs(16,i),i.y=a+i.h/2,i.tabs.checkedFontSize=16,i.tabs.checkedBoldType=1,i.optionData=Eg(c),{height:i.h,hiList:[Xr({hotAttr:i,sup:n})]}},iN=e=>{let{widget:t,canvasKey:n,canvasH:a}=e;const i=[],c=X0(),{names:d,icons:p}=t;c.h=d.length<7?98:196,c.y=ss(a,c);const h=d.length,m=()=>[4,8].includes(h)?69:[5,10].includes(h)?43:31,x=36,v=36,A=18,k=m(),R=Math.floor(c.w/(k+x))+1,F=Math.ceil(h/R),Z=a,G=0;for(let ee=0;ee<F;ee++){const ce=Z+98*ee;for(let se=0;se<R;se++){const he=ee*F+se,ve=cu({w:x,h:v,iconName:p[he]});ve.x=G+18+se*k+(se+.5)*ve.w,ve.y=ss(ce+10,ve),i.push(Xr({hotAttr:ve,sup:n}));const Te=Vl(d[he]);Te.x=ve.x,Te.h=A,Te.w=66,Te.y=ss(ce+56,Te),Te.richTextV1.horizontalAlign="center",i.push(Xr({hotAttr:Te,sup:n}))}}return{height:c.h,hiList:i}},sN=(e,t)=>e==="icon"||e==="avatar"?{xOffset:86,yOffset:8,w:t==="button"?208:["text","none"].includes(t)?288:t==="icon"?260:0}:e==="image"?{xOffset:116,yOffset:17,w:t==="button"?178:["text","none"].includes(t)?248:t==="icon"?230:0}:e==="none"?{xOffset:16,yOffset:8,w:t==="button"?208:["text","none"].includes(t)?358:t==="icon"?260:0}:{xOffset:0,yOffset:0,w:0},lN=e=>{let{widget:t,canvasH:n,canvasKey:a}=e;const{LeftAreaStyle:i,RightAreaStyle:c,title:d,list:p}=t,h=Z=>{let G={x:0,y:0,w:0,h:0};if(i==="icon")return G=cu({iconName:Z.keyword,w:36,h:36}),G;if(i==="avatar"){const ce="/mb-static/2305/avatar/"+Math.floor(Math.random()*20+0)+".png";G=lu({w:50,h:50,image:ce,border:{bdrIsVisible:!1,bdrColor:3149642751,bdrWidth:1,bdrStyle:"solid"},borderRadius:26})}else i==="image"&&(G=lu({w:80,h:80,image:Z.image}));return G},m=Z=>{if(c!=="none"){if(c==="button"){const G=hp({hexFill:"#F2F2F7",hexFontColor:"#000000"});return G.textV0.text=Am(Z.keyword),G}else if(c==="text"){const G=Vl(Z.keyword,{w:114,h:17,textColor:"#666666",fontSize:12});return G.richTextV1.horizontalAlign="right",G}else if(c==="icon")return cu({iconName:Z.keyword,w:24,h:24})}},x=[];let v=0;const A=X0(),k=n,R=0,F=Vl(d,{w:358,h:44,isVCenter:!0,fontSize:16,bold:!0});F.y=ss(k,F),F.x=gs(R+16,F),v+=F.h,x.push(Xr({hotAttr:F,sup:a}));for(const Z of p){const{w:G,xOffset:ee,yOffset:ce}=sN(i,c),se=k+v,he=X0();if(he.h=i==="image"?92:74,he.y=ss(se,A),i!=="none"){const xe=h(Z.leftArea);i==="icon"||i==="avatar"?(xe.x=gs(R+16,xe),xe.y=ss(se+12,xe)):i==="image"&&(xe.x=gs(R+16,xe),xe.y=ss(se+6,xe)),x.push(Xr({hotAttr:xe,sup:a}))}const ve=Vl(Z.title,{w:G,fontSize:14,bold:!0});ve.x=gs(ee,ve),ve.y=ss(se+ce,ve),x.push(Xr({hotAttr:ve,sup:a}));const Te=Vl(Z.text,{w:G,textColor:"#666666",fontSize:12});if(Te.x=gs(ee,Te),Te.y=ss(se+ce+14+10,Te),x.push(Xr({hotAttr:Te,sup:a})),c!=="none"){const xe=m(Z.rightArea);c==="text"?(xe.x=gs(R+260,xe),xe.y=ss(se+ce,xe)):c==="button"?(xe.x=gs(R+314,xe),xe.y=ss(se+25,xe)):c==="icon"&&(xe.x=gs(R+350,xe),xe.y=ss(se+25,xe)),x.push(Xr({hotAttr:xe,sup:a}))}v+=he.h}return{height:v,hiList:x}},cN=e=>{let{canvasH:t,canvasKey:n,widget:a}=e;const i=[],c=t,d=0,p=X0();p.h=306,p.y=ss(c,p),i.push(Xr({hotAttr:p,sup:n}));const{title:h,text:m,buttons:x,image:v}=a,A=Vl(h,{w:358,h:44,isVCenter:!0,fontSize:16,bold:!0});A.x=gs(d+16,A),A.y=ss(c,A),i.push(Xr({hotAttr:A,sup:n}));const k=lu({w:358,h:180,image:v});k.x=gs(d+16,k),k.y=ss(c+44,k),i.push(Xr({hotAttr:k,sup:n}));const R=Vl(m,{w:358,h:34,fontSize:12,textColor:"#666666",lineHeight:17,paraSpacing:0});R.x=gs(d+16,R),R.y=ss(c+234,R),i.push(Xr({hotAttr:R,sup:n}));const F=80,Z=28,G=10;for(let ee=0;ee<x.length;ee++){const ce=x[ee],se=hp({w:F,h:Z,hexFill:"#F2F2F7",hexFontColor:"#000000"});se.x=d+16+ee*G+(ee+.5)*F,se.y=ss(c+278,se),se.textV0.text=Am(ce),i.push(Xr({hotAttr:se,sup:n}))}return{height:p.h,hiList:i}},dN=e=>{let{canvasH:t,canvasKey:n,widget:a}=e;const{layout:i,title:c,cards:d}=a,p=()=>i==="vertical"?4:["horizontal","grid","waterfall"].includes(i)?1:0,h=60,m=170,x=170,v=140,A=140,k=[];let R=0;const F=X0();F.y=t+F.h/2,k.push(Xr({hotAttr:F,sup:n}));const Z=t,G=Vl(c,{isVCenter:!0,bold:!0,fontSize:16});G.w=358,G.h=44,G.x=gs(16,G),G.y=ss(Z,G),R+=G.h,k.push(Xr({hotAttr:G,sup:n}));const ee=p();if(i==="horizontal"){let ce=0;const se=10;for(const he of d){const ve=X0();ve.fill={fillIsVisible:!0,fill:"solid",solidColor:Si("#F4F6F9")},ve.borderRadius=14,ve.h=241,ve.w=A;const Te=ce*ve.w+(ce+1)*16,xe=Z+R;ve.y=xe+ve.h/2,ve.x=Te+ve.w/2,k.push(Xr({hotAttr:ve,sup:n}));const Fe=Vl(he.title,{w:124,h:20,fontSize:14,bold:!0});Fe.x=gs(Te+8,Fe),Fe.y=ss(xe+148,Fe),k.push(Xr({hotAttr:Fe,sup:n}));const et=Vl(he.subTitle,{w:124,h:20,textColor:"#666666",fontSize:12});et.x=gs(Te+8,et),et.y=ss(xe+167,et),k.push(Xr({hotAttr:et,sup:n}));const Ke=Vl(he.content,{w:124,h:20,textColor:"#666666",fontSize:12});Ke.x=gs(Te+8,Ke),Ke.y=ss(xe+186,Ke),k.push(Xr({hotAttr:Ke,sup:n}));const Qe=lu({w:ve.w,h:140,image:he.image});Qe.x=gs(Te,Qe),Qe.y=ss(xe,Qe),k.push(Xr({hotAttr:Qe,sup:n}));for(let nt=0;nt<Math.min(ee,he.buttons.length);nt++){const Xe=he.buttons[nt],lt=hp({});lt.x=Te+8+nt*se+(nt+.5)*h,lt.y=ss(xe+209,lt),lt.textV0.text=Am(Xe),k.push(Xr({hotAttr:lt,sup:n}))}ce+=1}R+=271}else if(i==="vertical")for(const ce of d){const se=Z+R,he=16,ve=X0();ve.borderRadius=14,ve.w=358,ve.h=180,ve.fill={fillIsVisible:!0,fill:"solid",solidColor:Si("#F4F6F9")},ve.y=ss(se,ve),k.push(Xr({hotAttr:ve,sup:n}));const Te=Vl(ce.title,{w:198,h:20,fontSize:14,bold:!0});Te.x=gs(he+16,Te),Te.y=ss(se+26,Te),k.push(Xr({hotAttr:Te,sup:n}));const xe=Vl(ce.subTitle,{w:198,h:20,textColor:"#666666",fontSize:12});xe.x=gs(he+16,xe),xe.y=ss(se+45,xe),k.push(Xr({hotAttr:xe,sup:n}));const Fe=Vl(ce.content,{w:198,h:52,textColor:"#666666",fontSize:12,lineHeight:17,paraSpacing:0});Fe.x=gs(he+16,Fe),Fe.y=ss(se+68,Fe),k.push(Xr({hotAttr:Fe,sup:n}));const et=lu({w:110,h:110,image:ce.image});et.x=gs(he+230,et),et.y=ss(se+16,et),k.push(Xr({hotAttr:et,sup:n}));const Ke=15;for(let Qe=0;Qe<Math.min(ee,ce.buttons.length);Qe++){const nt=ce.buttons[Qe],Xe=hp({});Xe.x=he+16+Qe*Ke+(Qe+.5)*h,Xe.y=ss(se+136,Xe),Xe.textV0.text=Am(nt),k.push(Xr({hotAttr:Xe,sup:n}))}R+=ve.h+14}else if(i==="waterfall"){let ce=0,se=G.h,he=G.h;for(const[ve,Te]of d.entries()){const xe=ve%2===0?"even":"odd",Fe=xe==="odd"?Z+he:Z+se,et=ce*x+(ce+1)*16,Ke=X0();Ke.fill={fillIsVisible:!0,fill:"solid",solidColor:Si("#F4F6F9")},Ke.borderRadius=14,Ke.h=ve===1?241:271,Ke.w=x,Ke.y=ss(Fe,Ke),Ke.x=gs(et,Ke),k.push(Xr({hotAttr:Ke,sup:n}));const Qe=Vl(Te.title,{w:154,h:20,fontSize:14,bold:!0});Qe.y=ss(Fe+(ve===1?148:178),Qe),Qe.x=et+8+Qe.w/2,k.push(Xr({hotAttr:Qe,sup:n}));const nt=Vl(Te.subTitle,{w:154,h:20,textColor:"#666666",fontSize:12});nt.y=ss(Fe+(ve===1?167:197),nt),nt.x=gs(et+8,nt),k.push(Xr({hotAttr:nt,sup:n}));const Xe=Vl(Te.content,{w:154,h:20,textColor:"#666666",fontSize:12});Xe.y=ss(Fe+46+(ve===1?140:170),Xe),Xe.x=et+8+Xe.w/2,k.push(Xr({hotAttr:Xe,sup:n}));const lt=lu({w:Ke.w,h:m,image:Te.image});ve===1&&(lt.w=x,lt.h=v),lt.x=gs(et,lt),lt.y=ss(Fe,lt),k.push(Xr({hotAttr:lt,sup:n}));for(let Ct=0;Ct<Math.min(ee,Te.buttons.length);Ct++){const St=Te.buttons[Ct],hn=hp({});hn.x=et+8+Ct*10+(Ct+.5)*h,hn.y=ss(Fe+(ve===1?209:239),hn),hn.textV0.text=Am(St),k.push(Xr({hotAttr:hn,sup:n}))}ce+=1,xe==="even"?se+=Ke.h+14:he+=Ke.h+14,ce===2&&(ce=0)}R+=se-G.h}else if(i==="grid"){let se=0,he=G.h,ve=G.h;for(const[Te,xe]of d.entries()){const Fe=Te%2===0?"even":"odd",et=Fe==="odd"?Z+ve:Z+he,Ke=X0();Ke.borderRadius=14;const Qe=8;Ke.fill={fillIsVisible:!0,fill:"solid",solidColor:Si("#F4F6F9")},Ke.h=271,Ke.w=x;const nt=se*Ke.w+(se+1)*16;Ke.x=gs(nt,Ke),Ke.y=ss(et,Ke),k.push(Xr({hotAttr:Ke,sup:n}));const Xe=Vl(xe.title,{w:154,h:20,fontSize:14,bold:!0});Xe.x=gs(nt+Qe,Xe),Xe.y=ss(et+178,Xe),k.push(Xr({hotAttr:Xe,sup:n}));const lt=Vl(xe.subTitle,{w:154,h:20,textColor:"#666666",fontSize:12});lt.x=gs(nt+8,lt),lt.y=ss(et+197,lt),k.push(Xr({hotAttr:lt,sup:n}));const Ct=Vl(xe.content,{w:154,h:20,textColor:"#666666",fontSize:12});Ct.x=gs(nt+Qe,Ct),Ct.y=ss(et+216,Ct),k.push(Xr({hotAttr:Ct,sup:n}));const St=lu({w:Ke.w,h:170,image:xe.image});St.x=gs(nt,St),St.y=ss(et,St),k.push(Xr({hotAttr:St,sup:n}));for(let hn=0;hn<Math.min(ee,xe.buttons.length);hn++){const Cn=xe.buttons[hn],Mt=hp({});Mt.x=nt+Qe+hn*10+(hn+.5)*h,Mt.y=ss(et+239,Mt),Mt.textV0.text=Am(Cn),k.push(Xr({hotAttr:Mt,sup:n}))}se+=1,Fe==="even"?he+=Ke.h+14:ve+=Ke.h+14,se===2&&(se=0)}R+=he-G.h}return k[0].hotAttr.h=R,k[0].hotAttr.y=t+R/2,{height:R,hiList:k}},mp=390,Lv=(e,t)=>{let{pageKey:n}=t;const a=[],i=Ds[Zt.x.Canvas]("page");i.device="iphone_14_pro",i.w=mp;let c=0;const d=Xr({prefix:"rc",hotAttr:i,sup:n}),p=d.key,h=Ds.wIphoneXSB("");h.x=h.w/2,h.y=h.h/2,h.fill={fillIsVisible:!0,fill:"solid",solidColor:Si("#FFFFFFF0")},a.push(Xr({hotAttr:h,sup:p})),c+=h.h;const m=[];for(const[x,v]of e.page.entries()){if(v===null)continue;if(v.type==="tabBar"){m.push(v);continue}let A={height:0,hiList:[]};switch(v.type){case"form":A=$L({widget:v,canvasKey:p,canvasH:c});break;case"searchBar":A=aN({canvasKey:p,canvasH:c});break;case"swiper":A=eN({widget:v,canvasKey:p,canvasH:c});break;case"tabs":A=rN({widget:v,canvasKey:p,canvasH:c});break;case"iconGrid":A=iN({widget:v,canvasKey:p,canvasH:c});break;case"listView":A=lN({widget:v,canvasKey:p,canvasH:c});break;case"infoView":A=cN({widget:v,canvasKey:p,canvasH:c});break;case"cardGroupView":A=dN({widget:v,canvasKey:p,canvasH:c});break;case"navBar":A=oN({widget:v,canvasKey:p,canvasH:c});break;default:break}const{height:k,hiList:R}=A;c+=k,a.push(...R),x!==e.page.length&&(c+=14)}for(const x of m){if(x.type!=="tabBar")continue;const v=c+26+50;if(v<844){const{hiList:A}=Pv({widget:x,canvasKey:p,canvasH:c});A[0].hotAttr.y=ss(794,A[0].hotAttr),a.push(...A)}else if(v>=844){c+=26;const{height:A,hiList:k}=Pv({widget:x,canvasKey:p,canvasH:c});c+=A,a.push(...k)}}return i.h=Math.max(c,844),m.length===0&&(i.h+=26),[d,...a]},pN=JSON.parse('{"iphone_14_pro_max":{"device":"iphone","model":"iphone_14_pro_max"},"iphone_14_pro":{"device":"iphone","model":"iphone_14_pro"},"iphone_14_plus":{"device":"iphone","model":"iphone_13_pro_max"},"iphone_13_pro_max":{"device":"iphone","model":"iphone_13_pro_max"},"iphone_13_pro":{"device":"iphone","model":"iphone_13_pro"},"iphone_11_pro":{"device":"iphone","model":"iphone_11_pro"},"iphone_11_pro_max":{"device":"iphone","model":"iphone_11_pro_max"},"iphone_8_plus":{"device":"iphone","model":"iphone_8_plus"},"huawei_p40":{"device":"android","model":"Huawei_p40"},"google_pixel_2":{"device":"android","model":"google_pixel_2"},"google_pixel_2_xl":{"device":"android","model":"google_pixel_2_xl"},"ipad_mini":{"device":"ipad","model":"ipad_mini"},"ipad_pro_11":{"device":"ipad","model":"ipad_pro_11"},"ipad_pro_12":{"device":"ipad","model":"ipad_pro_12"},"\u7F51\u9875":{"device":"web","model":"desktop"},"\u667A\u80FD\u7535\u89C6":{"device":"web","model":"smart_tv"},"mac_book_pro":{"device":"web","model":"mac_book_pro"},"apple_watch_38mm":{"device":"apple_watch","model":"apple_watch_38"},"apple_watch_40mm":{"device":"apple_watch","model":"apple_watch_40"},"apple_watch_42mm":{"device":"apple_watch","model":"apple_watch_42"},"\u8F66\u8F7D\u4E2D\u63A7":{"device":"smart_car","model":"car_play"}}');var uN=s(94433);const hN=e=>{try{var t;if(!e||Object.keys(e).length===0)return null;const{position:n,model:a,"page-name":i,"fill-color":c,zIndex:d,order:p}=e,h=Zd(n),{x:m,y:x}=h||{x:0,y:0},v=Ds[Zt.x.Canvas]("page"),A=pN[a];if(!A)return console.error("\u672A\u627E\u5230\u5BF9\u5E94\u673A\u578B",e),null;const{device:k,model:R}=A,F=(t=uN[k])==null?void 0:t[R];if(!F)return console.error("\u672A\u627E\u5230\u5BF9\u5E94\u673A\u578B",F),null;const{height:Z,width:G}=F;v.w=G,v.h=Z,v.device=R,i&&(v.name=i),d&&(v.zIndex=d),p&&(v.order=p),c&&(v.fill={fillIsVisible:!0,fill:"solid",solidColor:Si(c)});const{x:ee,y:ce}=Kd({w:G,h:Z},{x:m,y:x});return v.x=ee,v.y=ce,v}catch(n){return null}},mN=e=>{try{if(!e||Object.keys(e).length===0)return null;const{position:t,size:n,"page-name":a,"fill-color":i,zIndex:c,order:d}=e,p=l0(n);if(!p||p.w===0||p.h===0)return null;const h=Zd(t),{x:m,y:x}=h||{x:0,y:0},{w:v,h:A}=p,k=Ds[Zt.x.Canvas]("page");k.w=v,k.h=A,k.device="customize",a&&(k.name=a),c&&(k.zIndex=c),d&&(k.order=d),i&&(k.fill={fillIsVisible:!0,fill:"solid",solidColor:Si(i)});const{x:R,y:F}=Kd({w:v,h:A},{x:m,y:x});return k.x=R,k.y=F,k}catch(t){return console.error("genPageCustomModel error",t),null}},fN=e=>{try{if(!e||Object.keys(e).length===0)return null;const{"text-content":t}=e,n=t.split(/[(\r\n)\r\n]+/),a=Ds.wRichText("");return a.textV1.blocks=n.length>0?T5(n):km(t),a}catch(t){return console.log("### genPrd error:",t),null}},gN=(e,t)=>{try{if(!e||Object.keys(e).length===0)return null;const{textList:n}=e;if(n.length===0)return null;const{selectedTrees:a,tableInfoData:i,onUpdateWidget:c}=t;av({textList:n,selectedTrees:a,tableInfoData:i,onUpdateWidget:c})}catch(n){return null}};var yN=s(44174);const Nv="AISelectionKey",xN=e=>{const t=[];if(e){const n=e.getSelection(),{anchorKey:a,focusKey:i,anchorOffset:c,focusOffset:d}=n,p=e.getCurrentContent(),h=p.getBlockMap(),m=[];let x=a,v=i,A=c,k=d;if(a===i&&(A=Math.min(c,d),k=Math.max(c,d)),a>i&&(x=i,v=a,A=d,k=c),x===v){const R=p.getBlockForKey(x);m.push(R.text.slice(A,k)),t.push(x)}else{let R=!1;for(const[F,Z]of h){const G=Z.text;if(F===x){R=!0,m.push(G.slice(A)),t.push(F);continue}if(R){if(t.push(F),F===v){m.push(G.slice(0,k));break}m.push(G)}}}return{selectionBlockKeys:t,selectionText:m.join("")}}return{selectionBlockKeys:t,selectionText:""}},vN=async(e,t)=>{const{selectedTrees:n,editingCid:a,richTextEditorState:i,semanticValue:c,user:d,org:p,project:h,actions:m}=t;let x=null,v=!1,A=null;const k=function(F,Z){return Z===void 0&&(Z=[]),{status:F,hotItems:Z}};try{if(!e||Object.keys(e).length===0)return{status:Js.NotSupport};const F=n.filter(et=>gv.includes(et.type));if(!F||F.length===0)return{status:Js.NotFindEditObject};if(F.length>1)return{status:Js.NotSupportMultiple};const Z=F[0],{widget:{textV1:{blocks:G}}}=Z;let ee=[];for(const[et,Ke]of Object.entries(G))Ke&&Ke.type!=="atomic"&&Ke.text&&ee.push({key:et,value:Ke.text});ee.sort((et,Ke)=>et.key<Ke.key?-1:et.key>Ke.key?1:0);let ce=!1,se=[];if(i&&a===Z.key){const{selectionBlockKeys:et,selectionText:Ke}=xN(i);se=et,Ke&&(ee=[{key:Nv,value:Ke}],ce=!0)}if(ee.length===0)return k(Js.NotFindEditObject);if(ee.map(et=>et.value).join("").length>500)return k(Js.TextOverLimit);const he={prompt:c,userInput:JSON.stringify(ee),type:e.type||"edittext",task_id:(0,Uc.AM)({user:d,project:h}),workspace:(p==null?void 0:p.cid)||"me"};x=Z,v=Z.isLock,m.aiPreTextGenerate({key:Z.key,currentIsLock:v});const ve=await(0,L0.Ni)(he),Te=et=>{const Ke=v?[]:[{...A,hotAttr:{...A.hotAttr,isLock:!1}}];return k(et,Ke)};if(A=m.getHotItem(Z.key),!A)return Te(Js.NotSupport);const xe=L1()(A);if(ce&&a!==Z.key)return Te(Js.HandleExceptions);if(!ve||ve.length===0)return Te(Js.NotSupport);let Fe={};if(ce){var R;const et=(R=ve.find(Xe=>Xe.key===Nv))==null?void 0:R.value,Qe=m.getNewRichTextEditorState(i,et).getCurrentContent(),nt=Array.from(Qe.getBlockMap().keys());Object.keys(G).forEach(Xe=>{if(nt.indexOf(Xe)>=0){const lt=G[Xe];lt.text=Qe.getBlockForKey(Xe).text,se.includes(Xe)&&(lt.inlineStyleRanges=[],lt.entityRanges=[]),Fe[Xe]=lt}})}else Fe={...G},ve.forEach(et=>{let{key:Ke,value:Qe}=et;Fe[Ke]&&(Fe[Ke].inlineStyleRanges=[],Fe[Ke].entityRanges=[],Fe[Ke].text=Qe)});return ce&&m.updateEditingCid({item:{cid:""}}),xe.hotAttr.isLock=!!v,xe.hotAttr.textV1.blocks=L1()(Fe),{status:Js.Success,hotItems:[xe]}}catch(F){const Z=x&&!v?[{...A,hotAttr:{...A.hotAttr,isLock:!1}}]:[];return k(Js.NotSupport,Z)}},bN=async(e,t)=>{let{...n}=t;try{if(!e||Object.keys(e).length===0)return{status:Js.HandleExceptions};const{widgets:a}=e;let i=[];return a.forEach(c=>{const{hotItems:d}=jv(c,n)||{};d&&(i=i.concat(d))}),!i||i.length===0?{status:Js.NotSupport}:{status:Js.Success,hotItems:i}}catch(a){return console.error("genComponent error:",a),{status:Js.HandleExceptions}}},jv=(e,t)=>{let{pageKey:n,selectedTrees:a,tableInfoData:i,selectedCarouseImage:c,canNotCreateCanvas:d,onUpdateWidget:p}=t;try{if(!e||typeof e!="object")return console.error("genSingleWidget error: \u6570\u636E\u7C7B\u578B\u9519\u8BEF"),{hotItems:[],success:!0};const{type:h}=e,m=v=>{const A=[];return v.forEach(k=>{if(k){const R=Xr({hotAttr:k,sup:n});A.push({...R,hotAttr:{...R.hotAttr,cid:R.key}})}}),{hotItems:A,success:A.length>0}},x=v=>(v==null?void 0:v.length)>0;switch(h){case Ms.text:{const v=PL(e);return m(v||[])}case Ms.image:{const v=_L(e);return m(v||[])}case Ms.rectangle:{const v=ML(e);return m(v||[])}case Ms.oval:{const v=NL(e);return m(v||[])}case Ms.line:{const v=RL(e);return m(v?[v]:[])}case Ms.button:{const v=BL(e);return m(v||[])}case Ms.iphoneXSB:{const v=FL(e);return m(v?[v]:[])}case Ms.arrow:{const v=VL(e);return m(v?[v]:[])}case Ms.mTextInput:{const v=WL(e);return m(v?[v]:[])}case Ms.mTextarea:{const v=HL(e);return m(v?[v]:[])}case Ms.dropList:{const v=GL(e);return m(v?[v]:[])}case Ms.dropMenu:{const v=KL(e);return m(v?[v]:[])}case Ms.radioSelection:case Ms.checkbox:{const v=h===Ms.checkbox,A=XL(e,v);return m(A?[A]:[])}case Ms.table:{const v=Sv(e,{pageKey:n});return{hotItems:v,success:x(v)}}case Ms.genProto:{if(d)return{status:Js.NotSupportCanvas,hotItems:[],success:!1};const v=Lv(e.data,{pageKey:n});return{hotItems:v,success:x(v)}}case Ms.mind:{const v=Cv(e,{pageKey:n});return{hotItems:v,success:x(v)}}case Ms.flow:{const v=bv(e,{pageKey:n});return{hotItems:v,success:x(v)}}case Ms.chart:{const v=yv(e,{pageKey:n});return{hotItems:v,success:x(v)}}case Ms.customPage:{if(d)return{status:Js.NotSupportCanvas,hotItems:[],success:!1};const{pages:v}=e,A=[];return v&&v.length>0&&v.forEach(k=>{const R=mN(k);R&&A.push(R)}),m(A)}case Ms.modelPage:{if(d)return{status:Js.NotSupportCanvas,hotItems:[],success:!1};const{pages:v}=e,A=[];return v&&v.length>0&&v.forEach(k=>{const R=hN(k);R&&A.push(R)}),m(A)}case Ms.genPrd:{const v=fN(e);return m(v?[v]:[])}case Ms.textFill:{gN(e,{selectedTrees:a,tableInfoData:i,onUpdateWidget:p});break}case Ms.editImage:(0,yN.Q)(e,{selectedTrees:a,selectedCarouseImage:c,onUpdateWidget:p});break;default:return{hotItems:[],success:!1}}return{hotItems:[],success:!0}}catch(h){return console.log("genSigleWidget error:",h),{hotItems:[],success:!1}}},wN=async(e,t)=>{let{pageKey:n,selectedTrees:a,tableInfoData:i,selectedCarouseImage:c,editingCid:d,richTextEditorState:p,semanticValue:h,user:m,org:x,project:v,canNotCreateCanvas:A,actions:k}=t,R=null;try{if(!e||e.length===0)return{status:Js.HandleExceptions,semanticType:R};const F=e[0],{type:Z,data:G}=F,{widget:ee}=G||{};switch(R=Z,R){case Ms.editText:case Ms.textTranslate:case Ms.textPolish:case Ms.textStyle:case Ms.textExpand:case Ms.textShort:{const{status:ce,hotItems:se=[]}=await vN(F,{selectedTrees:a,editingCid:d,richTextEditorState:p,semanticValue:h,user:m,org:x,project:v,actions:k});return{status:ce,semanticType:R,hotItems:se}}case Ms.editStyle:{const{status:ce,hotItems:se=[]}=dL(ee,{selectedTrees:a,editingCid:d,updateEditingCid:k.updateEditingCid,getHotItem:k.getHotItem});return{status:ce,semanticType:R,hotItems:se}}case Ms.genComponent:{const{status:ce,hotItems:se=[]}=await bN(ee,{pageKey:n,selectedTrees:a,tableInfoData:i,selectedCarouseImage:c,canNotCreateCanvas:A,onUpdateWidget:k.updateWidget});return{status:ce,semanticType:R,hotItems:se}}default:{const ce=[Ms.genProto,Ms.modelPage,Ms.customPage].includes(R),se=(ee==null?void 0:ee.type)||R;R===Ms.genPrd&&(ee.type=Ms.genPrd);const{hotItems:he,success:ve,status:Te}=jv(ce?F:ee,{pageKey:n,selectedTrees:a,tableInfoData:i,selectedCarouseImage:c,canNotCreateCanvas:A,onUpdateWidget:k.updateWidget})||{};return ve?{status:Js.Success,hotItems:he,semanticType:R,widgetType:se}:{status:Te||Js.HandleExceptions,semanticType:R}}}}catch(F){return console.error("genSemanticData error:",F),{status:Js.HandleExceptions,semanticType:R}}};var c0=s(32709);const Dv=e=>{const{currentAIComponent:t,semanticValue:n="",user:a,org:i,project:c,onUpdateAIUsedTimes:d,onUpdateAIPoints:p,actions:h}=e,{updateWidget:m,aiGenerate:x,updateAIState:v,notice:A,track:k,getChangingData:R}=h,F=(G,ee,ce)=>{const{notice:se,svgName:he}=_5(G);A({text:se,svgName:he})};return{handleConvertComponent:async G=>{const ee=i?i.cid:"me",ce=(0,Uc.AM)({user:a,project:c});c0.Hy[t==null?void 0:t.type]&&(G!=null&&G.length)&&k("proto_ai_use",{ai_func:c0.Hy[t==null?void 0:t.type],ai_input:G});const se=async()=>{if(!ENV.IS_WONDER_SHARE)return!1;const{limited:ve}=await(0,L0.GM)({user:a,org:i,onUpdateAIUsedTimes:d});return ve},he=performance.now();try{switch(v({aiGenerating:!0}),t.type){case c0.SR.Page:{const{result:ve,status:Te}=await(0,L0.L4)({prompt:G,workspace:ee,taskID:ce,user:a,org:i,updateAIState:v,notice:A}),{pageKey:xe,canNotCreateCanvas:Fe}=R();if(Fe){const{notice:Ke,svgName:Qe}=_5(Js.NotSupportCanvas);A({text:Ke,svgName:Qe});return}const et=Lv(ve,{pageKey:xe});x({type:t.type,status:Te,hotItems:et});break}case c0.SR.PageV9:{const{pageKey:ve,canNotCreateCanvas:Te}=R();if(Te){const{notice:et,svgName:Ke}=_5(Js.NotSupportCanvas);A({text:et,svgName:Ke});return}const{res:xe,status:Fe}=await(0,L0.ri)({message:G});if(Fe===200){const{device:et,size:Ke}=xe.deviceInfo,{w:Qe,h:nt}=Ke,Xe=et==="\u624B\u673A"?"iphone_15_pro":"mac_book_pro",lt=ve||sdkStore.getHotItem("B@main").sub[0],Ct=(0,Ja.cF)("rbp"),St=(0,M5.Nc)("\u9875\u9762",5,0,0,Qe,nt,Xe);xe.planObj.hotItemList[0].sup=Ct,xe.planObj.hotItemList[0].hotAttr.x=0,xe.planObj.hotItemList[0].hotAttr.y=0;const hn=xe.planObj.hotItemList,Mt=[{key:Ct,hotAttr:St,sup:lt,sub:hn},...hn];await x({type:c0.SR.PageV9,status:Fe,hotItems:Mt})}else throw new Error("AIV9 \u751F\u6210\u5931\u8D25");break}case c0.SR.Flow:case c0.SR.Mind:case c0.SR.Table:case c0.SR.Chart:{const{result:ve,status:Te}=await(0,L0.AP)({prompt:G,type:t.type,workspace:ee,taskID:ce,user:a,org:i,updateAIState:v,notice:A}),{pageKey:xe}=R(),Fe=kL(ve.widget,{pageKey:xe});x({type:t.type,status:Te,hotItems:Fe});break}case c0.SR.AutoFill:{const{selectedTrees:ve,tableInfoData:Te}=R(),{success:xe,status:Fe}=await ov({prompt:G,user:a,org:i,project:c,selectedTrees:ve,tableInfoData:Te,onUpdateWidget:m,updateAIState:v,notice:A});return[]}case c0.SR.Semantic:{const{selectedTrees:ve,selectedCarouseImage:Te}=R(),xe=await(0,L0.Kd)({prompt:G,type:"widget",workspace:ee,task_id:ce},{selectedTrees:ve,selectedCarouseImage:Te,user:a,org:i,updateAIState:v,notice:A}),{result:Fe}=xe;let{status:et}=xe,Ke=null;if(!Fe||Fe.length===0){F(et,Ke,he),v({aiGenerating:!1});return}if(Fe&&Fe.length>0){const{pageKey:Qe,selectedTrees:nt,selectedCarouseImage:Xe,tableInfoData:lt,editingCid:Ct,richTextEditorState:St,canNotCreateCanvas:hn}=R(),{status:Cn,semanticType:Mt,hotItems:Et=[],widgetType:Co}=await wN(Fe,{pageKey:Qe,selectedTrees:nt,tableInfoData:lt,selectedCarouseImage:Xe,editingCid:Ct,richTextEditorState:St,semanticValue:n,user:a,org:i,project:c,canNotCreateCanvas:hn,actions:h});Ke=Mt,et=Cn;let Pn=t.type;Co&&[Ms.flow,Ms.chart,Ms.mind,Ms.table].includes(Co)&&(Pn=Co),x({type:Pn,status:et,hotItems:Et,semanticType:Ke})}F(et,Ke,he),v({aiGenerating:!1});return}default:{v({aiGenerating:!1});return}}v({aiGenerating:!1}),A({text:t.label+" "+I18N.ChatGPT.ai_generated,svgName:"chatGPT/copy-success"})}catch(ve){console.log("----",ve),await(0,L0.nI)({success:!1,status:0,user:a,org:i,updateAIState:v,notice:A}),v({aiGenerating:!1}),t.type===c0.SR.Semantic&&F(409,null,he)}await(0,L0.Rn)({user:a,org:i,onUpdateAIPoints:p})}}},Q0={width:300,height:224},Em={width:800,height:500},CN=M.Ay.div.withConfig({displayName:"styles__StyledAIComponentModal",componentId:"sc-1kzli1l-0"})(["position:fixed;width:","px;height:","px;left:calc(50vw - ","px);top:calc(50vh - ","px);z-index:110;background:",";box-shadow:",";border:",";border-radius:10px;overflow:hidden;&.ai-guide{width:","px;height:","px;left:calc(50vw - ","px);top:calc(50vh - ",'px);background-size:100% auto;background-repeat:no-repeat;background-image:url("/mb-proto2/images/AIGC/guide_bg.png");&:lang(en){background-image:url("/mb-proto2/images/AIGC/guide_bg_en.png");}}'],Q0.width,Q0.height,Q0.width/2,Q0.height/2,e=>e.theme.color_text_white,e=>e.theme.ai_modal_shadow_style,e=>e.theme.ai_modal_border_style,Em.width,Em.height,Em.width/2,Em.height/2),SN=M.Ay.div.withConfig({displayName:"styles__StyledAIComponentPanel",componentId:"sc-1kzli1l-1"})(["display:flex;width:100%;height:100%;color:",";background-color:",";flex-direction:column;"],e=>e.theme.color_text_L1,e=>e.theme.color_background_white),AN=e=>{const[t,n]=(0,l.useState)(""),{currentAIComponent:a,userInputObj:i,generating:c,accountData:d,actions:p,handleInputFocus:h,closeModal:m,onUpdateAIUsedTimes:x,onUpdateAIPoints:v}=e,{title:A}=a||{};(0,l.useEffect)(()=>{n((i==null?void 0:i.userInput)||"")},[i]);const{handleConvertComponent:k}=Dv({currentAIComponent:a,...d,onUpdateAIUsedTimes:x,onUpdateAIPoints:v,actions:p});return(0,o.jsxs)(SN,{children:[(0,o.jsx)(pv.A,{user:d.user,org:d.org,project:d.project,title:A,closeModal:m}),(0,o.jsx)(cP,{userInput:t,generating:c,sendMessageHandle:k,currentAIComponent:a,handleInputFocus:h,setUserInput:n})]})},kN=(0,l.memo)(AN),tie=48,Ig=48;var Zs=s(48028),Im=s(30728);const Rv=e=>{let{onPointerDown:t,onDragStart:n,onDrag:a,onDrop:i}=e,c=0,d=!1;t&&t();const p=m=>{if(c<2)return c++;!d&&n&&n(m),d=!0,a(m.clientX,m.clientY)},h=m=>{i(m,c<2),document.removeEventListener("mousemove",p),document.removeEventListener("mouseup",h)};document.addEventListener("mousemove",p),document.addEventListener("mouseup",h)};class MN extends l.PureComponent{constructor(){super(...arguments),(0,B.A)(this,"state",{style:{left:0,top:0},inputFocus:!1,handelMove:!1}),(0,B.A)(this,"handleUpdateState",()=>{const{showGuide:t}=this.props;if(this.setState({handelMove:!!(0,Uc.kI)()}),t){const n=document.documentElement.clientHeight,i=(document.documentElement.clientWidth-Em.width)/2,c=(n-Em.height)/2;this.setState({style:{left:i,top:c}})}else{const n=(0,Zs.Yt)(Uc.t6,0,Zs.qW.Number),a=(0,Zs.Yt)(Uc.J7,0,Zs.qW.Number),i=Math.max(Math.min(n,window.innerWidth-Q0.width),0),c=Math.max(Math.min(a,window.innerHeight-Q0.height),0);this.setState({style:{left:i,top:c}})}}),(0,B.A)(this,"handleMouseDown",t=>{t.stopPropagation();const{inputFocus:n}=this.state;if(n)return;const{showGuide:a}=this.props,i={x:t.clientX,y:t.clientY};let c=this.state.style;if(!a&&this.state.style.left===0&&this.state.style.top===0){var d;const p=(d=document.getElementById("ai-modal"))==null?void 0:d.getBoundingClientRect();p&&(c={left:p.left,top:p.top})}Rv({onDrag:(p,h)=>{const m=document.documentElement.clientHeight,x=document.documentElement.clientWidth,v={x:p,y:h},A=Im.Z.subtract(v,i);let{x:k,y:R}=Im.Z.add(Im.Z.xy(c.left,c.top),A);k=k<0?0:k,k=k+Q0.width>x?x-Q0.width:k,R=R<Ig?Ig:R,R=R+Q0.height>m?m-Q0.height:R;const F={...c,left:k,top:R};this.setState({style:F,handelMove:!0}),a||((0,Zs.a0)(Uc.J7,R,Zs.qW.Number),(0,Zs.a0)(Uc.t6,k,Zs.qW.Number))},onDrop:()=>{}})}),(0,B.A)(this,"closeModal",()=>{const{actions:{updateAIState:t}}=this.props;t({showAIModal:!1,currentAiComponent:null})}),(0,B.A)(this,"handleGuideCloseModal",t=>{const{actions:{updateAIState:n,openLeftSidePanel:a}}=this.props;if(t){n({showAIGuide:!1});const{currentAIComponent:i}=this.props;if(!i){this.closeModal();return}if(i&&i.type===c0.SR.AIAssistant)this.closeModal(),n({showAIGuide:!1}),a();else if(i&&i.type===c0.SR.AutoFill)this.closeModal();else{const c=document.documentElement.clientHeight,p=(document.documentElement.clientWidth-Q0.width)/2,h=(c-Q0.height)/2;this.setState({style:{left:p,top:h}})}}else this.closeModal(),n({showAISemantic:!1})}),(0,B.A)(this,"handleInputFocus",t=>{this.setState({inputFocus:t})}),(0,B.A)(this,"handleUpdateAIUsedTimes",t=>{const{accountData:{user:n,org:a,project:i},actions:{updateCurrentOrg:c,updateCurrentUser:d}}=this.props;i.is_org_project&&a?c({org:Object.assign(a,{used_times:t})}):d({user:Object.assign(n,{used_times:t})})}),(0,B.A)(this,"handleUpdateAIPoints",t=>{const{accountData:{user:n,org:a,project:i},actions:{updateCurrentOrg:c,updateCurrentUser:d}}=this.props;i.is_org_project&&a?c({org:Object.assign(a,{ai_points:t})}):d({user:Object.assign(n,{ai_points:t})})})}componentDidMount(){this.handleUpdateState(),window.addEventListener("resize",this.handleUpdateState)}componentWillUnmount(){window.addEventListener("resize",this.handleUpdateState)}render(){const{style:{left:t,top:n}}=this.state,{handelMove:a}=this.state,{defaultPos:i,showGuide:c,...d}=this.props,p=!c&&!a?i:{left:t,top:n};return(0,o.jsx)(CN,{id:"ai-modal",className:C()(c&&"ai-guide"),onMouseDown:this.handleMouseDown,style:p,children:c?(0,o.jsx)(sP,{closeGuide:this.handleGuideCloseModal}):(0,o.jsx)(kN,{...d,closeModal:this.closeModal,handleInputFocus:this.handleInputFocus,onUpdateAIUsedTimes:this.handleUpdateAIUsedTimes,onUpdateAIPoints:this.handleUpdateAIPoints})})}}const EN=e=>{const t=e();return(0,o.jsx)(MN,{...t})};var Bv=s(60719);const Uv=88,IN=180,_h={width:400,height:Uv},_N=M.Ay.div.withConfig({displayName:"styles__StyledAISemanticModal",componentId:"sc-ezvlvf-0"})(["position:fixed;z-index:111;"]),TN=M.Ay.div.withConfig({displayName:"styles__StyledAISemanticPanel",componentId:"sc-ezvlvf-1"})([".semantic-top{width:","px;height:","px;z-index:110;background:",";border-radius:10px;box-shadow:",";border:",";}.semantic-title{display:flex;height:40px;justify-content:space-between;align-items:center;padding:0 10px;cursor:move;svg{width:24px;height:24px;}.ai-beta{width:40px;margin-right:4px;}.title-left{color:",";font-size:14px;font-style:normal;font-weight:500;line-height:24px;display:flex;align-items:center;svg{margin-right:4px;}.mode-tag{width:50px;height:25px;margin-left:10px;display:flex;align-items:center;justify-content:center;font-size:12px;color:white;background-color:#CECECE;margin-left:10px;border-radius:4px;cursor:pointer;&.isSelect{background-color:#54BCBD;}}}.title-right{display:flex;justify-content:center;align-items:center;.close{cursor:pointer;path{fill:",";}&:hover{path{fill:",";}}}}.ai-help{display:flex;position:relative;margin-left:2px;z-index:1;&:hover{.ai-help-content{display:block;}}.ai-help-icon{cursor:pointer;path{fill:",";}&:hover{path{fill:",";}}}.ai-help-content{display:none;position:absolute;width:226px;left:-21px;bottom:38px;padding:12px 16px;border-radius:8px;font-size:12px;line-height:20px;color:",";background-color:",";span{color:#80BCFF;text-decoration:underline;cursor:pointer;}.bot-content{width:100%;height:20px;position:absolute;bottom:-20px;left:0px;}}.ai-help-content::before{content:'';position:absolute;bottom:-16px;left:24px;display:inline-block;width:0;height:0;border:8px solid transparent;border-top:8px solid ",";}}}.semantic-gap{position:absolute;left:0;bottom:-6px;height:6px;width:100%;}.action-panel{width:240px;margin-top:4px;background:",";box-shadow:0 2px 10px rgba(0,0,0,0.12);border-radius:8px;}"],_h.width,Uv,e=>e.theme.color_bg_white,e=>e.theme.ai_modal_shadow_style,e=>e.theme.style_modal_border,e=>e.theme.color_text_L1,e=>e.theme.color_text_L3,e=>e.theme.color_text_L2,e=>e.theme.color_text_L3,e=>e.theme.color_text_L3,e=>e.theme.color_text_btn,Bv.f.color_btn_secondary_active.value_dark,Bv.f.color_btn_secondary_active.value_dark,e=>e.theme.color_text_white),PN=()=>{const[e,t]=(0,l.useState)({left:0,top:0}),n=(0,l.useCallback)(()=>{var c;const d=((c=document.getElementById("ai-semantic-recommend-panel"))==null?void 0:c.getBoundingClientRect().height)||20;if((0,Uc.Mm)()){const p=(0,Zs.Yt)(Uc.SN,0,Zs.qW.Number),h=(0,Zs.Yt)(Uc.IU,0,Zs.qW.Number),m=Math.max(Math.min(p,window.innerWidth-_h.width),0),x=Math.max(Math.min(h,window.innerHeight-d-20),0);t({left:m,top:x})}else{const p=(innerWidth-_h.width)/2,h=innerHeight-d-130;t({left:p,top:h})}},[t]),a=(0,l.useCallback)((c,d)=>{c.stopPropagation();const{left:p,top:h}=e,m={x:c.clientX,y:c.clientY};let x=e;if(p===0&&h===0){var v;const k=(v=document.getElementById("ai-semantic-modal"))==null?void 0:v.getBoundingClientRect();k&&(x={left:k.left,top:k.top})}const A=100;Rv({onDrag:(k,R)=>{d==null||d.blur();const F=document.documentElement.clientHeight,Z=document.documentElement.clientWidth,G={x:k,y:R},ee=Im.Z.subtract(G,m);let{x:ce,y:se}=Im.Z.add(Im.Z.xy(x.left,x.top),ee);ce=ce<0?0:ce,ce=ce+_h.width>Z?Z-_h.width:ce,se=se<Ig?Ig:se,se=se+A>F?F-A:se,t({left:ce,top:se}),(0,Zs.a0)(Uc.mN,!0,Zs.qW.Boolean),(0,Zs.a0)(Uc.IU,se,Zs.qW.Number),(0,Zs.a0)(Uc.SN,ce,Zs.qW.Number)},onDrop:()=>{}})},[t,e]),i=(0,l.useMemo)(()=>{const{top:c}=e;return c+_h.height+IN>document.documentElement.clientHeight?"top":"bottom"},[e]);return{updatePositionHandle:n,handleMouseDown:a,panelPosition:e,recommendPosition:i}},LN=M.Ay.div.withConfig({displayName:"styles__StyledAIRecommendItem",componentId:"sc-a72rx-0"})(["display:flex;height:32px;margin-left:12px;width:calc(100% - 24px);border-radius:6px;padding:0 4px 0 6px;align-items:center;justify-content:space-between;color:",";font-size:12px;.recommend{display:flex;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;.recommend-label{max-width:320px;span{color:",";}.ask-ai{color:",";}}}svg{path{fill:",";}&:hover{path{fill:",";}}}.input-enter{width:24px;height:24px;}.cmd-icon{width:18px;height:18px;margin-right:6px;}.nor-recommend{display:none;}&.is-select{color:",";background-color:",";.nor-recommend{display:flex;}}"],e=>e.theme.color_text_L1,e=>e.theme.color_text_link_normal,e=>e.theme.color_text_L2,e=>e.theme.color_text_L3,e=>e.theme.color_text_L2,e=>e.theme.color_text_L1,e=>e.theme.color_btn_secondary_hover);var ae=s(1738);const NN=e=>{let{recommend:t,onClickRecommend:n,isHistory:a,arrowDown:i,isSelect:c,index:d,handleChangeSelectIndex:p}=e;const[h,{label:m,iconName:x,info:{attrs:v,isRecommend:A}}]=t,k=(0,l.useCallback)(F=>{F.preventDefault(),F.stopPropagation(),n(t)},[n,t]);let R="";switch(h){case ae.c.ToggleExport:R="ai-semantic-export";break;case ae.c.ToggleViewShare:R="ai-semantic-share";break}return(0,o.jsxs)(LN,{onMouseDown:k,className:C()("ai-command-item",R,c&&"is-select"),onMouseEnter:F=>{p(d)},children:[(0,o.jsxs)("div",{className:"recommend",children:[x&&(0,o.jsx)(xc.C,{className:"cmd-icon",name:x}),(0,o.jsx)("div",{className:"recommend-label",children:v&&v.length>0?(0,o.jsx)(o.Fragment,{children:v.map((F,Z)=>{let{key:G,content:ee}=F;return G?(0,o.jsx)("span",{children:ee},Z):ee})}):[ae.c.AIGC,ae.c.AIQ].includes(h)?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("span",{className:"ask-ai",children:h===ae.c.AIGC?A?"":"\u667A\u80FD\u751F\u6210\uFF1A":"\u667A\u80FD\u5BF9\u8BDD\uFF1A"}),m]}):h===ae.c.CCustomComponent?"\u751F\u6210\u7EC4\u4EF6":m})]}),c&&(0,o.jsx)(xc.C,{className:"input-enter",name:"chatGPT/ai-cmd-send",isColorPure:!0})]})},jN=(0,l.memo)(NN),DN=M.Ay.div.withConfig({displayName:"styles__StyledAIRecommendPanel",componentId:"sc-tdl3pm-0"})(["position:absolute;width:100%;background:",";border-radius:10px;max-height:294px;box-shadow:",";border:",";overflow:hidden;&:lang(en){width:","px;}&.top{bottom:100%;margin-bottom:4px;}&.bottom{top:100%;margin-top:4px;}.recommend-title{display:flex;align-items:center;justify-content:space-between;height:36px;padding-left:16px;padding-right:9px;color:",";font-size:14px;font-weight:500;.recommend-left{display:flex;align-items:center;svg{width:20px;height:20px;margin-right:6px;}}}.semantic-recommend{max-height:136px;padding:12px 0;overflow:hidden auto;::-webkit-scrollbar{display:none;}}.recommend-title-svg{g{fill:",";}}"],e=>e.theme.color_bg_white,e=>e.theme.ai_modal_shadow_style,e=>e.theme.style_modal_border,_h.width,e=>e.theme.color_text_L1,e=>e.theme.color_text_L1),RN=e=>{let{recommendPosition:t,org:n,user:a,project:i,recommendList:c,isInputFocus:d,onClickRecommend:p}=e;const[h,m]=(0,l.useState)(0),[x,v]=(0,l.useState)(!1),A=(0,l.useRef)(null),k=(0,l.useCallback)(Z=>{if(Z<0||Z>c.length)return;const G=document.getElementById("semantic-recommend"),ee=document.querySelectorAll(".ai-command-item")[Z];if(G){const ce=G.offsetHeight,se=G.scrollTop,he=ee==null?void 0:ee.offsetTop,ve=ee==null?void 0:ee.offsetHeight;he<se?G.scrollTop=he-6:he-se+ve>ce&&(G.scrollTop=he-ce+ve+6)}},[c]);(0,l.useEffect)(()=>{const Z=t==="bottom"?0:c.length-1;m(Z),k(Z)},[t,c,k]);const R=(0,l.useCallback)(Z=>{if(Z.key==="ArrowDown"){if(!d)return;Z.preventDefault(),Z.stopPropagation();const G=h===c.length-1?0:h+1;k(G),m(G)}if(Z.key==="ArrowUp"){if(!d)return;Z.preventDefault(),Z.stopPropagation();const G=h===0?c.length-1:h-1;k(G),m(G)}Z.keyCode===13&&h>=0&&h<=c.length&&(Z.preventDefault(),Z.stopPropagation(),p(c[h]))},[h,c,d,k,p]);(0,l.useEffect)(()=>{document.addEventListener("keydown",R);const Z=A.current;if(Z){const G=Z.scrollHeight>Z.clientHeight;v(G)}return()=>{document.removeEventListener("keydown",R),v(!1)}},[R]);const F=(0,l.useCallback)(Z=>{m(Z)},[m]);return(0,o.jsx)(DN,{className:C()(t&&t,"ai-semantic-recommend-panel"),id:"ai-semantic-recommend-panel",children:(0,o.jsx)("div",{className:C()("semantic-recommend",x&&"has-scroll-bar"),id:"semantic-recommend",ref:A,children:c.map((Z,G)=>(0,o.jsx)(jN,{recommend:Z,onClickRecommend:p,arrowDown:t==="top",isSelect:G===h,index:G,handleChangeSelectIndex:F},G))})})},BN=(0,l.memo)(RN),UN=M.Ay.div.withConfig({displayName:"styles__StyledAISemanticInput",componentId:"sc-thx25e-0"})(["display:flex;height:34px;align-items:center;justify-content:space-between;color:",";background:linear-gradient(97.39deg,#D5CCFF 1.15%,#FFCCFF 33.16%,#BBFAFA 66.15%,#BFDFFF 99.64%);padding:2px;border-radius:6px;margin:0 12px;&:hover{background:linear-gradient(90deg,#7F66FF 0%,#FF66FF 32.5%,#6699FF 67%,#64FAFA 100%);}&.isFocus{background:linear-gradient(90deg,#7F66FF 0%,#FF66FF 32.5%,#6699FF 67%,#64FAFA 100%);}.colorful-border-content{display:flex;width:100%;height:100%;align-items:center;justify-content:space-between;color:",";background:",";border-radius:4px;}svg{width:24px;height:24px;&.input-enter{cursor:pointer;path{fill:",";}&:hover{path{fill:",";}}}}input{caret-color:#1684FC;color:",";font-size:12px;font-style:normal;font-weight:400;height:100%;width:100%;padding-left:14px;padding-right:10px;&::placeholder{color:",";}}.generating{display:flex;align-items:center;justify-content:center;padding-left:14px;padding-right:10px;.create-loading{width:20px;height:20px;animation:loading 3s linear infinite;margin-right:6px;@keyframes loading{0%{transform:rotate(0deg);}100%{transform:rotate(360deg);}}}}.ellipsis-loading{display:flex;justify-content:center;margin-left:3px;height:12px;opacity:0.9;align-items:flex-end;.ellipsis{width:3px;height:3px;border-radius:50%;background-color:",";margin-right:2px;animation:ellipsis-animation 1.2s ease-in-out infinite;&:nth-child(2){animation-delay:0.4s;}&:nth-child(3){animation-delay:0.8s;}@keyframes ellipsis-animation{0%{transform:scale(0);}20%{transform:scale(1);}100%{transform:scale(0);}}}}"],e=>e.theme.color_text_L1,e=>e.theme.color_text_L1,e=>e.theme.color_bg_white,e=>e.theme.color_text_L2,e=>e.theme.color_text_L1,e=>e.theme.color_text_L1,e=>e.theme.color_text_L3,e=>e.theme.color_text_L1),ON=(e,t)=>{const{generating:n,actions:a,semanticValue:i,onAISearch:c,setSemanticValue:d,setInputFocus:p}=e,[h,m]=(0,l.useState)(!1),[x,v]=(0,l.useState)(!1),A=async G=>{G.key==="k"&&(G.ctrlKey||G.metaKey)&&(G.preventDefault(),a.updateAIState({showAISemantic:!1}))},k=(0,l.useCallback)(G=>{let ee=G.target.value;ee.length>200&&(ee=ee.slice(0,200)),d(ee),h||c(ee)},[d,h,c]),R=(0,l.useCallback)(G=>{const ee=G.target.value.length;G.target.setSelectionRange(ee,ee),v(!0),p(!0)},[p]),F=(0,l.useCallback)(()=>{v(!1),p(!1);const{richTextEditorState:G}=a.getChangingData();a.recoverEditorSelection(G)},[a,p]),Z=(0,l.useCallback)(async()=>{m(!1),c(i)},[c,i]);return(0,o.jsx)(UN,{className:C()("semantic-input",x&&"isFocus"),children:(0,o.jsx)("div",{className:"colorful-border-content",children:n?(0,o.jsxs)("div",{className:"generating",children:[(0,o.jsx)(xc.C,{className:"create-loading",name:"chatGPT/tip-loading",isColorPure:!0}),I18N.ChatGPT.ai_semantic_thinking,"..."]}):(0,o.jsx)("input",{autoFocus:!0,className:"ai-semantic-input",autoComplete:"off",ref:t,maxLength:200,value:i||"",onChange:k,onKeyDown:A,onFocus:R,onBlur:F,onCompositionStart:()=>m(!0),onCompositionEnd:Z,placeholder:I18N.ChatGPT.ai_semantic_input_placeholder})})})},FN=(0,l.memo)((0,l.forwardRef)(ON)),Ov=(e,t)=>e>t?1:e<t?-1:0,j5=1/0,D5=e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),Fv="eexxaacctt",VN=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B4E\u1B4F\u1B5A-\u1B60\u1B7D-\u1B7F\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65\u{10100}-\u{10102}\u{1039F}\u{103D0}\u{1056F}\u{10857}\u{1091F}\u{1093F}\u{10A50}-\u{10A58}\u{10A7F}\u{10AF0}-\u{10AF6}\u{10B39}-\u{10B3F}\u{10B99}-\u{10B9C}\u{10D6E}\u{10EAD}\u{10F55}-\u{10F59}\u{10F86}-\u{10F89}\u{11047}-\u{1104D}\u{110BB}\u{110BC}\u{110BE}-\u{110C1}\u{11140}-\u{11143}\u{11174}\u{11175}\u{111C5}-\u{111C8}\u{111CD}\u{111DB}\u{111DD}-\u{111DF}\u{11238}-\u{1123D}\u{112A9}\u{113D4}\u{113D5}\u{113D7}\u{113D8}\u{1144B}-\u{1144F}\u{1145A}\u{1145B}\u{1145D}\u{114C6}\u{115C1}-\u{115D7}\u{11641}-\u{11643}\u{11660}-\u{1166C}\u{116B9}\u{1173C}-\u{1173E}\u{1183B}\u{11944}-\u{11946}\u{119E2}\u{11A3F}-\u{11A46}\u{11A9A}-\u{11A9C}\u{11A9E}-\u{11AA2}\u{11B00}-\u{11B09}\u{11BE1}\u{11C41}-\u{11C45}\u{11C70}\u{11C71}\u{11EF7}\u{11EF8}\u{11F43}-\u{11F4F}\u{11FFF}\u{12470}-\u{12474}\u{12FF1}\u{12FF2}\u{16A6E}\u{16A6F}\u{16AF5}\u{16B37}-\u{16B3B}\u{16B44}\u{16D6D}-\u{16D6F}\u{16E97}-\u{16E9A}\u{16FE2}\u{1BC9F}\u{1DA87}-\u{1DA8B}\u{1E5FF}\u{1E95E}\u{1E95F}]/gu,zN="A-Z",WN="a-z",HN=["en",{numeric:!0,sensitivity:"base"}],_m=(e,t,n)=>e.replace(zN,t).replace(WN,n),Vv={unicode:!1,alpha:null,interSplit:"[^A-Za-z\\d']+",intraSplit:"[a-z][A-Z]",interBound:"[^A-Za-z\\d]",intraBound:"[A-Za-z]\\d|\\d[A-Za-z]|[a-z][A-Z]",interLft:0,interRgt:0,interChars:".",interIns:j5,intraChars:"[a-z\\d']",intraIns:null,intraContr:"'[a-z]{1,2}\\b",intraMode:0,intraSlice:[1,j5],intraSub:null,intraTrn:null,intraDel:null,intraFilt:(e,t,n)=>!0,toUpper:e=>e.toLocaleUpperCase(),toLower:e=>e.toLocaleLowerCase(),compare:null,sort:function(e,t,n,a){a===void 0&&(a=Ov);let{idx:i,chars:c,terms:d,interLft2:p,interLft1:h,start:m,intraIns:x,interIns:v,cases:A}=e;return i.map((k,R)=>R).sort((k,R)=>c[R]-c[k]||x[k]-x[R]||d[R]+p[R]+.5*h[R]-(d[k]+p[k]+.5*h[k])||v[k]-v[R]||m[k]-m[R]||A[R]-A[k]||a(t[i[k]],t[i[R]]))}},R5=(e,t)=>t==0?"":t==1?e+"??":t==j5?e+"*?":e+("{0,"+t+"}?"),zv="(?:\\b|_)";function _g(e){var t;e=Object.assign({},Vv,e);let{unicode:n,interLft:a,interRgt:i,intraMode:c,intraSlice:d,intraIns:p,intraSub:h,intraTrn:m,intraDel:x,intraContr:v,intraSplit:A,interSplit:k,intraBound:R,interBound:F,intraChars:Z,toUpper:G,toLower:ee,compare:ce}=e;p!=null||(p=c),h!=null||(h=c),m!=null||(m=c),x!=null||(x=c),ce!=null||(ce=typeof Intl>"u"?Ov:new Intl.Collator(...HN).compare);let se=(t=e.letters)!=null?t:e.alpha;if(se!=null){let mo=G(se),So=ee(se);k=_m(k,mo,So),A=_m(A,mo,So),F=_m(F,mo,So),R=_m(R,mo,So),Z=_m(Z,mo,So),v=_m(v,mo,So)}let he=n?"u":"";const ve='".+?"',Te=new RegExp(ve,"gi"+he),xe=new RegExp("(?:\\s+|^)-(?:"+Z+"+|"+ve+")","gi"+he);let{intraRules:Fe}=e;Fe==null&&(Fe=mo=>{let So=Vv.intraSlice,ho=0,No=0,Xo=0,Ta=0;if(/[^\d]/.test(mo)){let Da=mo.length;Da<=4?Da>=3&&(Xo=Math.min(m,1),Da==4&&(ho=Math.min(p,1))):(So=d,ho=p,No=h,Xo=m,Ta=x)}return{intraSlice:So,intraIns:ho,intraSub:No,intraTrn:Xo,intraDel:Ta}});let et=!!A,Ke=new RegExp(A,"g"+he),Qe=new RegExp(k,"g"+he),nt=new RegExp("^"+k+"|"+k+"$","g"+he),Xe=new RegExp(v,"gi"+he);const lt=function(mo,So){So===void 0&&(So=!1);let ho=[];mo=mo.replace(Te,Xo=>(ho.push(Xo),Fv)),mo=mo.replace(nt,""),So||(mo=ee(mo)),et&&(mo=mo.replace(Ke,Xo=>Xo[0]+" "+Xo[1]));let No=0;return mo.split(Qe).filter(Xo=>Xo!="").map(Xo=>Xo===Fv?ho[No++]:Xo)},Ct=/[^\d]+|\d+/g,St=function(mo,So,ho){So===void 0&&(So=0),ho===void 0&&(ho=!1);let No=lt(mo);if(No.length==0)return[];let Xo=Array(No.length).fill("");No=No.map((Dr,Wr)=>Dr.replace(Xe,hi=>(Xo[Wr]=hi,"")));let Ta;if(c==1)Ta=No.map((Dr,Wr)=>{if(Dr[0]==='"')return D5(Dr.slice(1,-1));let hi="";for(let Sr of Dr.matchAll(Ct)){let oi=Sr[0],{intraSlice:js,intraIns:Ri,intraSub:li,intraTrn:fi,intraDel:bi}=Fe(oi);if(Ri+li+fi+bi==0)hi+=oi+Xo[Wr];else{let[ls,Pi]=js,es=oi.slice(0,ls),qs=oi.slice(Pi),Us=oi.slice(ls,Pi);Ri==1&&es.length==1&&es!=Us[0]&&(es+="(?!"+es+")");let pc=Us.length,Yl=[oi];if(li)for(let xs=0;xs<pc;xs++)Yl.push(es+Us.slice(0,xs)+Z+Us.slice(xs+1)+qs);if(fi)for(let xs=0;xs<pc-1;xs++)Us[xs]!=Us[xs+1]&&Yl.push(es+Us.slice(0,xs)+Us[xs+1]+Us[xs]+Us.slice(xs+2)+qs);if(bi)for(let xs=0;xs<pc;xs++)Yl.push(es+Us.slice(0,xs+1)+"?"+Us.slice(xs+1)+qs);if(Ri){let xs=R5(Z,1);for(let wl=0;wl<pc;wl++)Yl.push(es+Us.slice(0,wl)+xs+Us.slice(wl)+qs)}hi+="(?:"+Yl.join("|")+")"+Xo[Wr]}}return hi});else{let Dr=R5(Z,p);So==2&&p>0&&(Dr=")("+Dr+")("),Ta=No.map((Wr,hi)=>Wr[0]==='"'?D5(Wr.slice(1,-1)):Wr.split("").map((Sr,oi,js)=>(p==1&&oi==0&&js.length>1&&Sr!=js[oi+1]&&(Sr+="(?!"+Sr+")"),Sr)).join(Dr)+Xo[hi])}let Da=a==2?zv:"",xr=i==2?zv:"",Wa=xr+R5(e.interChars,e.interIns)+Da;return So>0?ho?Ta=Da+"("+Ta.join(")"+xr+"|"+Da+"(")+")"+xr:(Ta="("+Ta.join(")("+Wa+")(")+")",Ta="(.??"+Da+")"+Ta+"("+xr+".*)"):(Ta=Ta.join(Wa),Ta=Da+Ta+xr),[new RegExp(Ta,"i"+he),No,Xo]},hn=(mo,So,ho)=>{let[No]=St(So);if(No==null)return null;let Xo=[];if(ho!=null)for(let Ta=0;Ta<ho.length;Ta++){let Da=ho[Ta];No.test(mo[Da])&&Xo.push(Da)}else for(let Ta=0;Ta<mo.length;Ta++)No.test(mo[Ta])&&Xo.push(Ta);return Xo};let Cn=!!R,Mt=new RegExp(F,he),Et=new RegExp(R,he);const Co=(mo,So,ho)=>{let[No,Xo,Ta]=St(ho,1),Da=lt(ho,!0),[xr]=St(ho,2),Wa=Xo.length,Dr=Array(Wa),Wr=Array(Wa);for(let li=0;li<Wa;li++){let fi=Xo[li],bi=Da[li],ls=fi[0]=='"'?fi.slice(1,-1):fi+Ta[li],Pi=bi[0]=='"'?bi.slice(1,-1):bi+Ta[li];Dr[li]=ls,Wr[li]=Pi}let hi=mo.length,Sr=Array(hi).fill(0),oi={idx:Array(hi),start:Sr.slice(),chars:Sr.slice(),cases:Sr.slice(),terms:Sr.slice(),interIns:Sr.slice(),intraIns:Sr.slice(),interLft2:Sr.slice(),interRgt2:Sr.slice(),interLft1:Sr.slice(),interRgt1:Sr.slice(),ranges:Array(hi)},js=a==1||i==1,Ri=0;for(let li=0;li<mo.length;li++){let fi=So[mo[li]],bi=fi.match(No),ls=bi.index+bi[1].length,Pi=ls,es=!1,qs=0,Us=0,pc=0,Yl=0,xs=0,wl=0,nl=0,_a=0,hl=0,ol=[];for(let vs=0,nc=2;vs<Wa;vs++,nc+=2){let yp=ee(bi[nc]),kd=Dr[vs],Wm=Wr[vs],Md=kd.length,cd=yp.length,lc=yp==kd;if(bi[nc]==Wm&&nl++,!lc&&bi[nc+1].length>=Md){let zl=ee(bi[nc+1]).indexOf(kd);zl>-1&&(ol.push(Pi,cd,zl,Md),Pi+=Pn(bi,nc,zl,Md),yp=kd,cd=Md,lc=!0,vs==0&&(ls=Pi))}if(js||lc){let zl=Pi-1,R1=Pi+cd,xp=!1,Dh=!1;if(zl==-1||Mt.test(fi[zl]))lc&&qs++,xp=!0;else{if(a==2){es=!0;break}if(Cn&&Et.test(fi[zl]+fi[zl+1]))lc&&Us++,xp=!0;else if(a==1){let Rh=bi[nc+1],Ed=Pi+cd;if(Rh.length>=Md){let f0=0,ku=!1,Hm=new RegExp(kd,"ig"+he),Kf;for(;Kf=Hm.exec(Rh);){f0=Kf.index;let Yf=Ed+f0,Mu=Yf-1;if(Mu==-1||Mt.test(fi[Mu])){qs++,ku=!0;break}else if(Et.test(fi[Mu]+fi[Yf])){Us++,ku=!0;break}}ku&&(xp=!0,ol.push(Pi,cd,f0,Md),Pi+=Pn(bi,nc,f0,Md),yp=kd,cd=Md,lc=!0,vs==0&&(ls=Pi))}if(!xp){es=!0;break}}}if(R1==fi.length||Mt.test(fi[R1]))lc&&pc++,Dh=!0;else{if(i==2){es=!0;break}if(Cn&&Et.test(fi[R1-1]+fi[R1]))lc&&Yl++,Dh=!0;else if(i==1){es=!0;break}}lc&&(xs+=Md,xp&&Dh&&wl++)}if(cd>Md&&(hl+=cd-Md),vs>0&&(_a+=bi[nc-1].length),!e.intraFilt(kd,yp,Pi)){es=!0;break}vs<Wa-1&&(Pi+=cd+bi[nc+1].length)}if(!es){oi.idx[Ri]=mo[li],oi.interLft2[Ri]=qs,oi.interLft1[Ri]=Us,oi.interRgt2[Ri]=pc,oi.interRgt1[Ri]=Yl,oi.chars[Ri]=xs,oi.terms[Ri]=wl,oi.cases[Ri]=nl,oi.interIns[Ri]=_a,oi.intraIns[Ri]=hl,oi.start[Ri]=ls;let vs=fi.match(xr),nc=vs.index+vs[1].length,yp=ol.length,kd=yp>0?0:1/0,Wm=yp-4;for(let zl=2;zl<vs.length;){let R1=vs[zl].length;if(kd<=Wm&&ol[kd]==nc){let xp=ol[kd+1],Dh=ol[kd+2],Rh=ol[kd+3],Ed=zl,f0="";for(let ku=0;ku<xp;Ed++)f0+=vs[Ed],ku+=vs[Ed].length;vs.splice(zl,Ed-zl,f0),nc+=Pn(vs,zl,Dh,Rh),kd+=4}else nc+=R1,zl++}nc=vs.index+vs[1].length;let Md=oi.ranges[Ri]=[],cd=nc,lc=nc;for(let zl=2;zl<vs.length;zl++){let R1=vs[zl].length;nc+=R1,zl%2==0?lc=nc:R1>0&&(Md.push(cd,lc),cd=lc=nc)}lc>cd&&Md.push(cd,lc),Ri++}}if(Ri<mo.length)for(let li in oi)oi[li]=oi[li].slice(0,Ri);return oi},Pn=(mo,So,ho,No)=>{let Xo=mo[So]+mo[So+1].slice(0,ho);return mo[So-1]+=Xo,mo[So]=mo[So+1].slice(ho,ho+No),mo[So+1]=mo[So+1].slice(ho+No),Xo.length},ro=5,Io=function(mo,So,ho,No,Xo){No===void 0&&(No=1e3),ho=ho?ho===!0?ro:ho:0;let Ta=null,Da=null,xr=[];So=So.replace(xe,li=>{let fi=li.trim().slice(1);return fi=fi[0]==='"'?D5(fi.slice(1,-1)):fi.replace(VN,""),fi!=""&&xr.push(fi),""});let Wa=lt(So),Dr;if(xr.length>0){if(Dr=new RegExp(xr.join("|"),"i"+he),Wa.length==0){let li=[];for(let fi=0;fi<mo.length;fi++)Dr.test(mo[fi])||li.push(fi);return[li,null,null]}}else if(Wa.length==0)return[null,null,null];if(ho>0){let li=lt(So);if(li.length>1){let fi=li.slice().sort((ls,Pi)=>Pi.length-ls.length);for(let ls=0;ls<fi.length;ls++){var Wr;if(((Wr=Xo)==null?void 0:Wr.length)==0)return[[],null,null];Xo=hn(mo,fi[ls],Xo)}if(li.length>ho)return[Xo,null,null];Ta=Wv(li).map(ls=>ls.join(" ")),Da=[];let bi=new Set;for(let ls=0;ls<Ta.length;ls++)if(bi.size<Xo.length){let Pi=Xo.filter(qs=>!bi.has(qs)),es=hn(mo,Ta[ls],Pi);for(let qs=0;qs<es.length;qs++)bi.add(es[qs]);Da.push(es)}else Da.push([])}}if(Ta==null){var hi;Ta=[So],Da=[((hi=Xo)==null?void 0:hi.length)>0?Xo:hn(mo,So)]}let Sr=null,oi=null;if(xr.length>0&&(Da=Da.map(li=>li.filter(fi=>!Dr.test(mo[fi])))),Da.reduce((li,fi)=>li+fi.length,0)<=No){Sr={},oi=[];for(let li=0;li<Da.length;li++){let fi=Da[li];if(fi==null||fi.length==0)continue;let bi=Ta[li],ls=Co(fi,mo,bi),Pi=e.sort(ls,mo,bi,ce);if(li>0)for(let es=0;es<Pi.length;es++)Pi[es]+=oi.length;for(let es in ls){var Ri;Sr[es]=((Ri=Sr[es])!=null?Ri:[]).concat(ls[es])}oi=oi.concat(Pi)}}return[[].concat(...Da),Sr,oi]};return{search:function(){return Io(...arguments)},split:lt,filter:hn,info:Co,sort:e.sort}}const GN=(()=>{let e={A:"\xC1\xC0\xC3\xC2\xC4\u0104",a:"\xE1\xE0\xE3\xE2\xE4\u0105",E:"\xC9\xC8\xCA\xCB\u0116",e:"\xE9\xE8\xEA\xEB\u0119",I:"\xCD\xCC\xCE\xCF\u012E",i:"\xED\xEC\xEE\xEF\u012F",O:"\xD3\xD2\xD4\xD5\xD6",o:"\xF3\xF2\xF4\xF5\xF6",U:"\xDA\xD9\xDB\xDC\u016A\u0172",u:"\xFA\xF9\xFB\xFC\u016B\u0173",C:"\xC7\u010C\u0106",c:"\xE7\u010D\u0107",L:"\u0141",l:"\u0142",N:"\xD1\u0143",n:"\xF1\u0144",S:"\u0160\u015A",s:"\u0161\u015B",Z:"\u017B\u0179",z:"\u017C\u017A"},t=new Map,n="";for(let c in e)e[c].split("").forEach(d=>{n+=d,t.set(d,c)});let a=new RegExp("["+n+"]","g"),i=c=>t.get(c);return c=>{if(typeof c=="string")return c.replace(a,i);let d=Array(c.length);for(let p=0;p<c.length;p++)d[p]=c[p].replace(a,i);return d}})();function Wv(e){e=e.slice();let t=e.length,n=[e.slice()],a=new Array(t).fill(0),i=1,c,d;for(;i<t;)a[i]<i?(c=i%2&&a[i],d=e[i],e[i]=e[c],e[c]=d,++a[i],i=1,n.push(e.slice())):(a[i]=0,++i);return n}const ZN=(e,t)=>t?"<mark>"+e+"</mark>":e,KN=(e,t)=>e+t;function YN(e,t,n,a,i){var c,d;n===void 0&&(n=ZN),a===void 0&&(a=""),i===void 0&&(i=KN),a=(c=i(a,n(e.substring(0,t[0]),!1)))!=null?c:a;for(let m=0;m<t.length;m+=2){var p,h;let x=t[m],v=t[m+1];a=(p=i(a,n(e.substring(x,v),!0)))!=null?p:a,m<t.length-3&&(a=(h=i(a,n(e.substring(t[m+1],t[m+2]),!1)))!=null?h:a)}return a=(d=i(a,n(e.substring(t[t.length-1]),!1)))!=null?d:a,a}_g.latinize=GN,_g.permute=e=>Wv([...Array(e.length).keys()]).sort((n,a)=>{for(let i=0;i<n.length;i++)if(n[i]!=a[i])return n[i]-a[i];return 0}).map(n=>n.map(a=>e[a])),_g.highlight=YN;const XN=(0,ps.R)(()=>new Map([[ae.c.CategoryPreference,{label:"\u504F\u597D\u8BBE\u7F6E",info:{isCategory:!0}}],[ae.c.ToggleTheme,{label:"\u5207\u6362\u4E3B\u9898",info:{fuzzTag:"\u663E\u793A\u3001\u9ED1\u3001\u8272\u3001\u6DF1\u3001\u660E\u3001\u4EAE\u3001\u767D\u3001\u6D45\u3001\u7CFB\u7EDF\u3001\u754C\u9762",category:ae.c.CategoryPreference}}],[ae.c.ToggleRuler,{label:"\u663E\u793A/\u9690\u85CF\u6807\u5C3A",info:{fuzzTag:"\u5207\u6362\u3001\u663E\u793A\u3001\u9690\u85CF\u3001\u7801\u3001\u5BFC\u3001\u8F68\u3001\u6807",category:ae.c.CategoryPreference}}],[ae.c.ToggleReferenceLine,{label:"\u663E\u793A/\u9690\u85CF\u53C2\u8003\u7EBF",info:{fuzzTag:"\u5207\u3001\u6362\u3001\u663E\u3001\u9690\u3001\u85CF\u3001\u6D88\u5931\u3001\u53BB\u6389\u3001\u5F00\u542F\u3001\u7801\u3001\u5BFC\u3001\u8F68\u3001\u6807",category:ae.c.CategoryPreference}}],[ae.c.ToggleAlignLine,{label:"\u6253\u5F00/\u5173\u95ED\u5BF9\u9F50\u53C2\u8003\u7EBF\u529F\u80FD",info:{fuzzTag:"\u5207\u3001\u6362\u3001\u663E\u3001\u9690\u3001\u85CF\u3001\u6D88\u5931\u3001\u53BB\u6389\u3001\u5F00\u542F\u3001\u5BFC\u3001\u8F68\u3001\u6807",category:ae.c.CategoryPreference}}],[ae.c.ToggleSticky,{label:"\u663E\u793A/\u9690\u85CF\u6279\u6CE8",info:{fuzzTag:"\u5207\u3001\u6362\u3001\u663E\u3001\u9690\u3001\u85CF\u3001\u6D88\u5931\u3001\u53BB\u6389\u3001\u5F00\u542F\u3001\u5207\u3001\u6362\u3001\u8C08\u3001\u8BB0",category:ae.c.CategoryPreference}}],[ae.c.ToggleComment,{label:"\u663E\u793A/\u9690\u85CF\u8BC4\u8BBA",info:{fuzzTag:"\u5207\u3001\u6362\u3001\u663E\u3001\u9690\u3001\u85CF\u3001\u6D88\u5931\u3001\u53BB\u6389\u3001\u5F00\u542F\u3001\u5207\u3001\u6362\u3001\u8C08\u3001\u8BB0",category:ae.c.CategoryPreference}}],[ae.c.ToggleMultiplayerMouse,{label:"\u663E\u793A/\u9690\u85CF\u591A\u4EBA\u9F20\u6807\u6307\u9488",info:{fuzzTag:"\u5207\u3001\u6362\u3001\u663E\u3001\u9690\u3001\u85CF\u3001\u6D88\u5931\u3001\u53BB\u6389\u3001\u5F00\u542F\u3001\u534F\u4F5C\u3001\u6210\u5458\u3001\u624B\u3001\u6307",category:ae.c.CategoryPreference}}],[ae.c.ToggleLeftSide,{label:"\u663E\u793A/\u9690\u85CF\u5DE6\u9762\u677F",info:{fuzzTag:"\u5207\u3001\u6362\u3001\u663E\u3001\u9690\u3001\u85CF\u3001\u6D88\u5931\u3001\u53BB\u6389\u3001\u5F00\u542F\u3001\u8FB9\u680F\u3001\u4FA7",category:ae.c.CategoryPreference}}],[ae.c.ToggleRightSide,{label:"\u663E\u793A/\u9690\u85CF\u53F3\u9762\u677F",info:{fuzzTag:"\u5207\u3001\u6362\u3001\u663E\u3001\u9690\u3001\u85CF\u3001\u6D88\u5931\u3001\u53BB\u6389\u3001\u5F00\u542F\u3001\u8FB9\u680F\u3001\u4FA7",category:ae.c.CategoryPreference}}]])),QN=(0,ps.R)(()=>new Map([["\u5207\u6362\u4E3B\u9898",ae.c.ToggleTheme],["\u663E\u793A/\u9690\u85CF\u6807\u5C3A",ae.c.ToggleRuler],["\u663E\u793A/\u9690\u85CF\u53C2\u8003\u7EBF",ae.c.ToggleReferenceLine],["\u6253\u5F00/\u5173\u95ED\u5BF9\u9F50\u53C2\u8003\u7EBF\u529F\u80FD",ae.c.ToggleAlignLine],["\u663E\u793A/\u9690\u85CF\u6279\u6CE8",ae.c.ToggleSticky],["\u663E\u793A/\u9690\u85CF\u8BC4\u8BBA",ae.c.ToggleComment],["\u663E\u793A/\u9690\u85CF\u591A\u4EBA\u9F20\u6807\u6307\u9488",ae.c.ToggleMultiplayerMouse],["\u663E\u793A/\u9690\u85CF\u5DE6\u9762\u677F",ae.c.ToggleLeftSide],["\u663E\u793A/\u9690\u85CF\u53F3\u9762\u677F",ae.c.ToggleRightSide]])),JN=(0,ps.R)(()=>new Map([])),qN=(0,ps.R)(()=>new Map([[ae.c.CategoryCommonOperation,{label:"\u901A\u7528\u64CD\u4F5C",info:{isCategory:!0}}],[ae.c.Undo,{label:"\u64A4\u9500",info:{fuzzTag:"\u56DE\u3001\u8FD4\u3001\u6094\u3001\u9000",category:ae.c.CategoryCommonOperation}}],[ae.c.Redo,{label:"\u91CD\u505A",info:{fuzzTag:"\u56DE\u3001\u8FD4\u3001\u6094\u3001\u9000",category:ae.c.CategoryCommonOperation}}],[ae.c.ComSelectAll,{label:"\u5168\u9009",info:{category:ae.c.CategoryCommonOperation}}],[ae.c.GlobalFindAndReplace,{label:"\u67E5\u627E/\u66FF\u6362",info:{category:ae.c.CategoryCommonOperation}}],[ae.c.GlobalFind,{label:"\u67E5\u627E",info:{category:ae.c.CategoryCommonOperation,noCanFuzzy:!0}}],[ae.c.GlobalReplace,{label:"\u66FF\u6362",info:{category:ae.c.CategoryCommonOperation,noCanFuzzy:!0}}],[ae.c.Preview,{label:"\u6F14\u793A",info:{fuzzTag:"\u64AD\u3001\u653E\u3001\u9884\u3001\u89C8\u3001\u5C55",category:ae.c.CategoryCommonOperation}}],[ae.c.Group,{label:"\u7EC4\u5408",info:{fuzzTag:"\u6253\u3001\u6210\u3001\u5408\u3001\u5E76\u3001\u5173\u3001\u8054",category:ae.c.CategoryCommonOperation}}],[ae.c.UnGroup,{label:"\u6253\u6563",info:{fuzzTag:"\u70B8\u3001\u89E3\u3001\u5206\u3001\u5F00\u3001\u62C6",category:ae.c.CategoryCommonOperation}}],[ae.c.Delete,{label:"\u5220\u9664",info:{fuzzTag:"",category:ae.c.CategoryCommonOperation}}],[ae.c.Cut,{label:"\u526A\u5207",info:{fuzzTag:"",category:ae.c.CategoryCommonOperation}}],[ae.c.Copy,{label:"\u590D\u5236",info:{fuzzTag:"",category:ae.c.CategoryCommonOperation}}],[ae.c.Past,{label:"\u7C98\u8D34",info:{fuzzTag:"",category:ae.c.CategoryCommonOperation}}],[ae.c.PastProperties,{label:"\u7C98\u8D34\u5C5E\u6027",info:{fuzzTag:"",category:ae.c.CategoryCommonOperation}}],[ae.c.AddComponent,{label:"\u6DFB\u52A0\u4E3A\u7EC4\u4EF6",info:{fuzzTag:"",category:ae.c.CategoryCommonOperation,noCanFuzzy:!0}}],[ae.c.CreateMaster,{label:"\u8F6C\u4E3A\u6BCD\u7248",info:{fuzzTag:"",category:ae.c.CategoryCommonOperation}}],[ae.c.CreatePanel,{label:"\u8F6C\u4E3A\u52A8\u6001\u7EC4\u4EF6",info:{fuzzTag:"",category:ae.c.CategoryCommonOperation}}],[ae.c.TogglePageTransState,{label:"\u6253\u5F00/\u5173\u95ED\u9875\u9762\u8DF3\u8F6C\u6548\u679C",info:{fuzzTag:"",category:ae.c.CategoryCommonOperation}}],[ae.c.TogglePanelTransState,{label:"\u6253\u5F00/\u5173\u95ED\u7EC4\u4EF6\u72B6\u6001\u6548\u679C",info:{fuzzTag:"",category:ae.c.CategoryCommonOperation}}],[ae.c.ToggleHandTool,{label:"\u624B\u578B\u5DE5\u5177",info:{fuzzTag:"\u5E73\u79FB\u3001pan",category:ae.c.CategoryCommonOperation}}],[ae.c.ToggleExport,{label:"\u5BFC\u51FA",info:{fuzzTag:"pdf\u3001png\u3001\u79BB\u7EBF\u3001\u6F14\u793A\u5305\u3001apk\u3001\u5B89\u5353\u3001\u5B89\u88C5\u5305\u3001\u56FE\u7247\u3001\u6587\u6863",category:ae.c.CategoryCommonOperation}}],[ae.c.Alignment,{label:"\u5BF9\u9F50",info:{category:ae.c.CategoryCommonOperation,noCanFuzzy:!0}}],[ae.c.AlignmentTop,{label:"\u9876\u5BF9\u9F50",info:{fuzzTag:"\u4E0A",category:ae.c.CategoryCommonOperation}}],[ae.c.AlignmentMiddle,{label:"\u5782\u76F4\u5C45\u4E2D",info:{fuzzTag:"\u7EB5\u3001\u7AD6",category:ae.c.CategoryCommonOperation}}],[ae.c.AlignmentBottom,{label:"\u5E95\u5BF9\u9F50",info:{fuzzTag:"\u4E0B",category:ae.c.CategoryCommonOperation}}],[ae.c.AlignmentLeft,{label:"\u5DE6\u5BF9\u9F50",info:{category:ae.c.CategoryCommonOperation}}],[ae.c.AlignmentCenter,{label:"\u6C34\u5E73\u5C45\u4E2D",info:{fuzzTag:"\u6A2A\u3001\u4E2D\u95F4",category:ae.c.CategoryCommonOperation}}],[ae.c.AlignmentRight,{label:"\u53F3\u5BF9\u9F50",info:{category:ae.c.CategoryCommonOperation}}],[ae.c.AlignmentHorizontal,{label:"\u6C34\u5E73\u7B49\u95F4\u8DDD",info:{fuzzTag:"\u6A2A\u3001\u7B49\u8DDD\u3001\u5747\u5300",category:ae.c.CategoryCommonOperation}}],[ae.c.AlignmentVertical,{label:"\u5782\u76F4\u7B49\u95F4\u8DDD",info:{fuzzTag:"\u7EB5\u3001\u7AD6\u3001\u7B49\u8DDD\u3001\u5747\u5300",category:ae.c.CategoryCommonOperation}}],[ae.c.SearchMktSource,{label:"\u641C\u7D22\u7D20\u6750\u8D44\u6E90",info:{fuzzTag:"\u641C\u3001\u67E5\u3001\u7D20\u6750\u3001\u8D44\u6E90\u3001\u7EC4\u4EF6\u3001\u56FE\u6807\u3001\u56FE\u7247\u3001\u9875\u9762",category:ae.c.CategoryCommonOperation}}],[ae.c.AI3Help,{label:"\u4F7F\u7528\u5E2E\u52A9",info:{fuzzTag:"",category:ae.c.CategoryAI}}]])),$N=(0,ps.R)(()=>new Map([["\u64A4\u9500",ae.c.Undo],["\u91CD\u505A",ae.c.Redo],["\u5168\u9009",ae.c.ComSelectAll],["\u6F14\u793A",ae.c.Preview],["\u7EC4\u5408",ae.c.Group],["\u6253\u6563",ae.c.UnGroup],["\u6DFB\u52A0\u4E3A\u7EC4\u4EF6",ae.c.AddComponent],["\u5220\u9664",ae.c.Delete],["\u67E5\u627E",ae.c.GlobalFind],["\u66FF\u6362",ae.c.GlobalReplace],["\u67E5\u627E\u66FF\u6362",ae.c.GlobalFindAndReplace],["\u526A\u5207",ae.c.Cut],["\u590D\u5236",ae.c.Copy],["\u7C98\u8D34",ae.c.Past],["\u7C98\u8D34\u5C5E\u6027",ae.c.PastProperties],["\u8F6C\u4E3A\u6BCD\u7248",ae.c.CreateMaster],["\u8F6C\u4E3A\u52A8\u6001\u7EC4\u4EF6",ae.c.CreatePanel],["\u6253\u5F00/\u5173\u95ED\u9875\u9762\u8DF3\u8F6C\u6548\u679C",ae.c.TogglePageTransState],["\u6253\u5F00/\u5173\u95ED\u7EC4\u4EF6\u72B6\u6001\u6548\u679C",ae.c.TogglePanelTransState],["\u624B\u578B\u5DE5\u5177",ae.c.ToggleHandTool],["\u5BF9\u9F50",ae.c.Alignment],["\u9876\u5BF9\u9F50",ae.c.AlignmentTop],["\u5782\u76F4\u5C45\u4E2D",ae.c.AlignmentMiddle],["\u5E95\u5BF9\u9F50",ae.c.AlignmentBottom],["\u5DE6\u5BF9\u9F50",ae.c.AlignmentLeft],["\u6C34\u5E73\u5C45\u4E2D",ae.c.AlignmentCenter],["\u53F3\u5BF9\u9F50",ae.c.AlignmentRight],["\u6C34\u5E73\u7B49\u95F4\u8DDD",ae.c.AlignmentHorizontal],["\u5782\u76F4\u7B49\u95F4\u8DDD",ae.c.AlignmentVertical],["\u5BFC\u51FA",ae.c.ToggleExport],["\u641C\u7D22\u7D20\u6750\u8D44\u6E90",ae.c.SearchMktSource]])),ej=(0,ps.R)(()=>new Map([[ae.c.CategoryFile,{label:"\u6587\u4EF6\u64CD\u4F5C",info:{isCategory:!0}}],[ae.c.Save,{label:"\u4FDD\u5B58",info:{fuzzTag:"save\u3001\u5B58\u3001\u50A8\u3001\u7559",category:ae.c.CategoryFile}}],[ae.c.ProjectRename,{label:"\u6587\u4EF6\u91CD\u547D\u540D",info:{fuzzTag:"\u6539\u3001\u8C03\u3001\u4FEE",category:ae.c.CategoryFile,noCanFuzzy:!0}}],[ae.c.ViewFileInfo,{label:"\u67E5\u770B\u6587\u4EF6\u4FE1\u606F",info:{fuzzTag:"\u6570\u91CF\u3001\u7EDF\u8BA1",category:ae.c.CategoryFile}}],[ae.c.ViewVersionRecord,{label:"\u67E5\u770B\u7248\u672C\u8BB0\u5F55",info:{fuzzTag:"\u56DE\u6EDA\u3001\u5386\u53F2\u3001\u8BB0\u5F55",category:ae.c.CategoryFile}}],[ae.c.CreateNewVersion,{label:"\u4FDD\u5B58\u4E3A\u65B0\u7248\u672C",info:{fuzzTag:"\u4FDD\u5B58\u3001save\u3001\u5B58\u3001\u50A8\u3001\u7559",category:ae.c.CategoryFile}}],[ae.c.ToggleViewShare,{label:"\u5206\u4EAB",info:{fuzzTag:"\u53D1\u7ED9\u3001\u94FE\u63A5\u3001\u9884\u89C8\u3001\u4EA4\u4ED8\u3001\u67E5\u770B",category:ae.c.CategoryFile}}],[ae.c.OpenColorPicker,{label:"\u53D6\u8272\u5668",info:{fuzzTag:"\u53D6\u3001\u5339\u3001\u9009\u3001\u8C03",category:ae.c.CategoryFile}}]])),tj=(0,ps.R)(()=>new Map([["\u4FDD\u5B58",ae.c.Save],["\u6587\u4EF6\u91CD\u547D\u540D",ae.c.ProjectRename],["\u67E5\u770B\u6587\u4EF6\u4FE1\u606F",ae.c.ViewFileInfo],["\u67E5\u770B\u7248\u672C\u8BB0\u5F55",ae.c.ViewVersionRecord],["\u4FDD\u5B58\u4E3A\u65B0\u7248\u672C",ae.c.CreateNewVersion],["\u5206\u4EAB",ae.c.ToggleViewShare],["\u53D6\u8272\u5668",ae.c.OpenColorPicker]])),nj=(0,ps.R)(()=>new Map([[ae.c.CategoryLayoutView,{label:"\u5E03\u5C40\u89C6\u56FE",info:{isCategory:!0}}],[ae.c.ZoomIn,{label:"\u653E\u5927",info:{fuzzTag:"\u5927\u3001\u8FD1\u3001\u89C6\u3001\u6269",category:ae.c.CategoryLayoutView}}],[ae.c.ZoomOut,{label:"\u7F29\u5C0F",info:{fuzzTag:"\u5C0F\u3001\u8FDC\u3001\u89C6\u3001\u51CF",category:ae.c.CategoryLayoutView}}],[ae.c.ZoomToHundred,{label:"\u7F29\u653E\u81F3100%",info:{fuzzTag:"\u5206\u3001\u5BF9\u3001\u9F50\u3001\u51C6",category:ae.c.CategoryLayoutView}}],[ae.c.ZoomSelection,{label:"\u7F29\u653E\u81F3\u9009\u533A",info:{fuzzTag:"\u7126\u3001\u70B9\u3001\u96C6\u3001\u4E2D",category:ae.c.CategoryLayoutView}}],[ae.c.FitCanvas,{label:"\u9002\u5E94\u753B\u5E03",info:{fuzzTag:"\u5339\u3001\u914D",category:ae.c.CategoryLayoutView}}],[ae.c.LinkDisplayChange,{label:"\u5207\u6362\u94FE\u63A5\u663E\u793A\u6837\u5F0F",info:{fuzzTag:"",category:ae.c.CategoryLayoutView,noCanFuzzy:!0}}],[ae.c.ToggleSelectMode,{label:"\u5207\u6362\u9009\u4E2D\u6A21\u5F0F",info:{fuzzTag:"",category:ae.c.CategoryLayoutView}}],[ae.c.ToggleDynamicSpacing,{label:"\u5F00\u542F/\u5173\u95ED\u52A8\u6001\u95F4\u8DDD",info:{fuzzTag:"",category:ae.c.CategoryLayoutView}}],[ae.c.FullScreenMode,{label:"\u5F00\u542F/\u5173\u95ED\u5168\u5C4F\u6A21\u5F0F",info:{fuzzTag:"\u5207\u3001\u5F00\u542F\u3001\u5207\u3001\u89C8",category:ae.c.CategoryLayoutView}}]])),oj=(0,ps.R)(()=>new Map([["\u653E\u5927",ae.c.ZoomIn],["\u7F29\u5C0F",ae.c.ZoomOut],["\u7F29\u653E\u81F3100%",ae.c.ZoomToHundred],["\u7F29\u653E\u81F3\u9009\u533A",ae.c.ZoomSelection],["\u9002\u5E94\u753B\u5E03",ae.c.FitCanvas],["\u5207\u6362\u94FE\u63A5\u663E\u793A\u6837\u5F0F",ae.c.LinkDisplayChange],["\u5207\u6362\u9009\u4E2D\u6A21\u5F0F",ae.c.ToggleSelectMode],["\u5F00\u542F/\u5173\u95ED\u52A8\u6001\u95F4\u8DDD",ae.c.ToggleDynamicSpacing],["\u5F00\u542F/\u5173\u95ED\u5168\u5C4F\u6A21\u5F0F",ae.c.FullScreenMode]])),aj=(0,ps.R)(()=>new Map([[ae.c.CategoryHelpCenter,{label:"\u5E2E\u52A9",info:{isCategory:!0}}],[ae.c.ToggleShortcutKey,{label:"\u67E5\u770B\u5FEB\u6377\u952E",info:{fuzzTag:"shortcut\u3001\u5F84\u3001\u901F\u3001\u542F",category:ae.c.CategoryHelpCenter}}],[ae.c.OpenHelperCenter,{label:"\u6253\u5F00\u5E2E\u52A9\u4E2D\u5FC3",info:{fuzzTag:"\u63F4\u3001\u7B54\u3001\u8BE2\u3001\u7591\u3001why\u3001\u4E3A\u4EC0\u4E48\u3001\u600E\u4E48\u3001\u600E\u6837\u3001\u5982\u4F55\u3001how\u3001\u80FD",category:ae.c.CategoryHelpCenter}}],[ae.c.Feedback,{label:"\u9700\u6C42\u53CD\u9988",info:{fuzzTag:"\u6C42\u3001\u5E94\u3001\u542C\u3001\u5EFA\u8BAE\u3001\u751F\u6C14\u3001\u5938\u5956",category:ae.c.CategoryHelpCenter}}],[ae.c.NewFeature,{label:"\u65B0\u7248\u529F\u80FD\u4ECB\u7ECD",info:{fuzzTag:"\u89C8\u3001new\u3001\u7248\u672C",category:ae.c.CategoryHelpCenter}}]])),rj=(0,ps.R)(()=>new Map([["\u67E5\u770B\u5FEB\u6377\u952E",ae.c.ToggleShortcutKey],["\u6253\u5F00\u5E2E\u52A9\u4E2D\u5FC3",ae.c.OpenHelperCenter],["\u9700\u6C42\u53CD\u9988",ae.c.Feedback],["\u65B0\u7248\u529F\u80FD\u4ECB\u7ECD",ae.c.NewFeature]])),ij=(0,ps.R)(()=>new Map([[ae.c.CategoryBW,{label:"\u57FA\u7840\u7EC4\u4EF6",info:{isCategory:!0}}],[ae.c.CRichText,{label:"\u65B0\u5EFA\u6587\u5B57\u7EC4\u4EF6",info:{fuzzTag:"\u6587\u3001\u5B57\u3001\u672C\u3001\u8F93\u5165\u3001\u952E\u3001font\u3001text\u3001txt\u3001\u6846\u3001\u9020\u3001\u5236\u3001\u7ACB\u3001\u521B\u3001create\u3001new",category:ae.c.CategoryBW}}],[ae.c.CWRect,{label:"\u65B0\u5EFA\u77E9\u5F62",info:{fuzzTag:"\u77E9\u3001\u5F62\u3001\u65B9\u3001\u6846\u3001\u8FB9\u3001rectangle\u3001square\u3001\u9020\u3001\u5236\u3001\u7ACB\u3001\u521B\u3001create\u3001new",category:ae.c.CategoryBW}}],[ae.c.CWOval,{label:"\u65B0\u5EFA\u5706\u5F62",info:{fuzzTag:"\u5F27\u3001\u73AF\u3001\u7403\u3001\u76D8\u3001\u9020\u3001\u5236\u3001\u7ACB\u3001\u521B\u3001create\u3001new",category:ae.c.CategoryBW}}],[ae.c.CWLine,{label:"\u65B0\u5EFA\u7EBF\u6761",info:{fuzzTag:"\u7EBF\u3001\u6761\u3001\u76F4\u3001\u8FDE\u63A5\u3001line\u3001\u9020\u3001\u5236\u3001\u7ACB\u3001\u521B\u3001create\u3001new",category:ae.c.CategoryBW}}],[ae.c.CWButton,{label:"\u65B0\u5EFA\u6309\u94AE",info:{fuzzTag:"\u6309\u3001\u952E\u3001\u5F00\u5173\u3001\u63A7\u5236\u3001\u89E6\u3001button\u3001\u9020\u3001\u5236\u3001\u7ACB\u3001\u521B\u3001create\u3001new",category:ae.c.CategoryBW}}],[ae.c.CWArrow,{label:"\u65B0\u5EFA\u7BAD\u5934",info:{fuzzTag:"\u6307\u3001\u5411\u3001\u7BAD\u3001\u6807\u3001\u5BFC\u3001\u9020\u3001\u5236\u3001\u7ACB\u3001\u521B\u3001create\u3001new",category:ae.c.CategoryBW}}],[ae.c.CWPlaceholder,{label:"\u65B0\u5EFA\u5360\u4F4D\u7B26",info:{fuzzTag:"\u9020\u3001\u5236\u3001\u7ACB\u3001\u521B\u3001create\u3001new\u3001\u7A7A",category:ae.c.CategoryBW}}],[ae.c.CWTable,{label:"\u65B0\u5EFA\u8868\u683C",info:{fuzzTag:"\u9020\u3001\u5236\u3001\u7ACB\u3001\u521B\u3001create\u3001new\u3001\u5217\u3001\u884C\u3001\u6846\u3001\u6570\u636E",category:ae.c.CategoryBW}}],[ae.c.CWSticky,{label:"\u65B0\u5EFA\u6279\u6CE8",info:{fuzzTag:"\u9020\u3001\u5236\u3001\u7ACB\u3001\u521B\u3001create\u3001new\u3001\u6807\u3001\u8BB0",category:ae.c.CategoryBW}}],[ae.c.CWTear,{label:"\u65B0\u5EFA\u6253\u70B9\u6279\u6CE8",info:{fuzzTag:"\u9020\u3001\u5236\u3001\u7ACB\u3001\u521B\u3001create\u3001new\u3001\u6807\u3001\u8BB0",category:ae.c.CategoryBW}}],[ae.c.CWIphoneXSB,{label:"\u65B0\u5EFA\u72B6\u6001\u680F",info:{fuzzTag:"\u9020\u3001\u5236\u3001\u7ACB\u3001\u521B\u3001\u6761\u3001\u793A\u3001bar",category:ae.c.CategoryBW}}],[ae.c.CDynCpts,{label:"\u65B0\u5EFA\u52A8\u6001\u7EC4\u4EF6",info:{fuzzTag:"",category:ae.c.CategoryBW}}],[ae.c.CScrollPanel,{label:"\u65B0\u5EFA\u6EDA\u52A8\u9762\u677F",info:{fuzzTag:"\u9020\u3001\u5236\u3001\u7ACB\u3001\u521B\u3001\u89C6\u3001\u533A\u3001\u8F74\u3001\u6761\u3001\u6846",category:ae.c.CategoryBW}}],[ae.c.CWLr,{label:"\u65B0\u5EFA\u94FE\u63A5\u533A\u57DF",info:{category:ae.c.CategoryBW}}],[ae.c.CWImage,{label:"\u65B0\u5EFA\u56FE\u7247",info:{fuzzTag:"\u9020\u3001\u5236\u3001\u7ACB\u3001\u521B\u3001pic\u3001jpg\u3001png\u3001bmp\u3001webp\u3001\u50CF\u3001\u7167\u3001\u8C61\u3001jpeg\u3001\u5236\u3001\u7ED8",category:ae.c.CategoryBW}}],[ae.c.CComment,{label:"\u65B0\u5EFA\u8BC4\u8BBA",info:{fuzzTag:"\u9020\u3001\u5236\u3001\u7ACB\u3001\u521B\u3001\u8A00\u3001\u8BB0\u3001\u6279",category:ae.c.CategoryBW}}],[ae.c.CElbow,{label:"\u65B0\u5EFA\u8FDE\u63A5\u7EBF",info:{fuzzTag:"\u9020\u3001\u5236\u3001\u7ACB\u3001\u521B\u3001\u7F06\u3001\u7EBD\u3001\u6307",category:ae.c.CategoryBW}}],[ae.c.CVector,{label:"\u94A2\u7B14\u5DE5\u5177",info:{fuzzTag:"\u4E66\u3001\u5199\u3001\u7ED8\u3001pen\u3001svg\u3001\u8DEF\u5F84\u3001\u77E2\u91CF\u3001\u66F2\u3001\u7EBF\u3001\u8D1D\u8D5B\u5C14",category:ae.c.CategoryBW}}],[ae.c.Other,{label:"\u5176\u4ED6",info:{category:ae.c.CategoryBW}}]])),sj=(0,ps.R)(()=>new Map([["\u65B0\u5EFA\u77E9\u5F62",ae.c.CWRect],["\u65B0\u5EFA\u5706\u5F62",ae.c.CWOval],["\u65B0\u5EFA\u6587\u5B57\u7EC4\u4EF6",ae.c.CRichText],["\u65B0\u5EFA\u6309\u94AE",ae.c.CWButton],["\u65B0\u5EFA\u7BAD\u5934",ae.c.CWArrow],["\u65B0\u5EFA\u7EBF\u6761",ae.c.CWLine],["\u65B0\u5EFA\u5360\u4F4D\u7B26",ae.c.CWPlaceholder],["\u65B0\u5EFA\u8868\u683C",ae.c.CWTable],["\u65B0\u5EFA\u6279\u6CE8",ae.c.CWSticky],["\u65B0\u5EFA\u6253\u70B9\u6279\u6CE8",ae.c.CWTear],["\u65B0\u5EFA\u72B6\u6001\u680F",ae.c.CWIphoneXSB],["\u65B0\u5EFA\u6EDA\u52A8\u9762\u677F",ae.c.CScrollPanel],["\u65B0\u5EFA\u94FE\u63A5\u533A\u57DF",ae.c.CWLr],["\u65B0\u5EFA\u56FE\u7247",ae.c.CWImage],["\u65B0\u5EFA\u8BC4\u8BBA",ae.c.CComment],["\u65B0\u5EFA\u8FDE\u63A5\u7EBF",ae.c.CElbow],["\u94A2\u7B14\u5DE5\u5177",ae.c.CVector],["\u65B0\u5EFA\u52A8\u6001\u7EC4\u4EF6",ae.c.CDynCpts],["\u5176\u4ED6",ae.c.Other]])),lj=(0,ps.R)(()=>new Map([[ae.c.CategoryForm,{label:"\u8868\u5355",info:{isCategory:!0}}],[ae.c.CWMTextInput,{label:"\u65B0\u5EFA\u5355\u884C\u8F93\u5165\u7EC4\u4EF6",info:{fuzzTag:"\u9020\u3001\u5236\u3001\u7ACB\u3001\u751F\u3001\u6210\u3001\u521B\u3001\u57DF\u3001\u6846\u3001\u6587\u3001\u5B57\u3001\u533A\u3001\u586B",category:ae.c.CategoryForm}}],[ae.c.CWMTextArea,{label:"\u65B0\u5EFA\u591A\u884C\u8F93\u5165\u7EC4\u4EF6",info:{fuzzTag:"\u9020\u3001\u5236\u3001\u7ACB\u3001\u751F\u3001\u6210\u3001\u521B\u3001\u6587\u3001\u57DF\u3001\u6761\u3001\u793A",category:ae.c.CategoryForm}}],[ae.c.CWMSelect,{label:"\u65B0\u5EFA\u4E0B\u62C9\u9009\u62E9\u5668",info:{fuzzTag:"\u9020\u3001\u5236\u3001\u7ACB\u3001\u751F\u3001\u6210\u3001\u521B\u3001\u83DC\u3001\u5355\u3001\u5217\u3001\u9879\u3001\u8868",category:ae.c.CategoryForm}}],[ae.c.CWMFileInput,{label:"\u65B0\u5EFA\u6587\u4EF6\u9009\u62E9\u7EC4\u4EF6",info:{fuzzTag:"\u9020\u3001\u5236\u3001\u7ACB\u3001\u751F\u3001\u6210\u3001\u521B\u3001\u4E0A\u4F20",category:ae.c.CategoryForm}}],[ae.c.CWSelectionControlRadio,{label:"\u65B0\u5EFA\u5355\u9009\u7EC4\u4EF6",info:{fuzzTag:"\u9020\u3001\u5236\u3001\u7ACB\u3001\u751F\u3001\u6210\u3001\u521B\u3001\u9009\u3001\u5708\u3001\u5355\u3001\u9879\u3001\u53D6\u3001\u52FE",category:ae.c.CategoryForm}}],[ae.c.CWSelectionControlCheckbox,{label:"\u65B0\u5EFA\u590D\u9009\u7EC4\u4EF6",info:{fuzzTag:"\u9020\u3001\u5236\u3001\u7ACB\u3001\u751F\u3001\u6210\u3001\u521B\u3001\u590D\u3001\u9009\u3001\u6846\u3001\u591A\u3001\u52FE",category:ae.c.CategoryForm}}],[ae.c.CWAndroidSwitch,{label:"\u65B0\u5EFA\u5B89\u5353\u5F00\u5173",info:{fuzzTag:"\u9020\u3001\u5236\u3001\u7ACB\u3001\u751F\u3001\u6210\u3001\u521B\u3001\u5207\u3001\u6362\u3001\u63A7\u3001android\u3001\u624B\u673A",category:ae.c.CategoryForm}}],[ae.c.CWIosSwitch,{label:"\u65B0\u5EFAios\u5F00\u5173",info:{fuzzTag:"\u9020\u3001\u5236\u3001\u7ACB\u3001\u751F\u3001\u6210\u3001\u521B\u3001\u5207\u3001\u6362\u3001\u63A7\u3001\u82F9\u679C\u3001mac\u3001watch\u3001pad\u3001iphone\u3001\u624B\u673A",category:ae.c.CategoryForm}}],[ae.c.CWSlider,{label:"\u65B0\u5EFA\u6ED1\u52A8\u6761",info:{fuzzTag:"\u9020\u3001\u5236\u3001\u7ACB\u3001\u751F\u3001\u6210\u3001\u521B\u3001\u6ED1\u3001\u6761\u3001\u8C03\u3001\u8282\u3001\u8F68",category:ae.c.CategoryForm}}],[ae.c.CWDigitalStepper,{label:"\u65B0\u5EFA\u6570\u5B57\u6B65\u8FDB\u5668",info:{fuzzTag:"\u9020\u3001\u5236\u3001\u7ACB\u3001\u751F\u3001\u6210\u3001\u521B\u3001\u6570\u3001\u6B65\u3001\u8FDB\u3001\u8C03\u3001\u589E",category:ae.c.CategoryForm}}]])),cj=(0,ps.R)(()=>new Map([["\u65B0\u5EFA\u5355\u884C\u8F93\u5165\u7EC4\u4EF6",ae.c.CWMTextInput],["\u65B0\u5EFA\u591A\u884C\u8F93\u5165\u7EC4\u4EF6",ae.c.CWMTextArea],["\u65B0\u5EFA\u4E0B\u62C9\u9009\u62E9\u5668",ae.c.CWMSelect],["\u65B0\u5EFA\u6587\u4EF6\u9009\u62E9\u7EC4\u4EF6",ae.c.CWMFileInput],["\u65B0\u5EFA\u5355\u9009\u7EC4\u4EF6",ae.c.CWSelectionControlRadio],["\u65B0\u5EFA\u590D\u9009\u7EC4\u4EF6",ae.c.CWSelectionControlCheckbox],["\u65B0\u5EFA\u5B89\u5353\u5F00\u5173",ae.c.CWAndroidSwitch],["\u65B0\u5EFAios\u5F00\u5173",ae.c.CWIosSwitch],["\u65B0\u5EFA\u6ED1\u52A8\u6761",ae.c.CWSlider],["\u65B0\u5EFA\u6570\u5B57\u6B65\u8FDB\u5668",ae.c.CWDigitalStepper]])),dj=(0,ps.R)(()=>new Map([[ae.c.CategoryNavigation,{label:"\u5BFC\u822A",info:{isCategory:!0}}],[ae.c.CWDropMenu,{label:"\u65B0\u5EFA\u4E0B\u62C9\u83DC\u5355",info:{fuzzTag:"\u9020\u3001\u5236\u3001\u7ACB\u3001\u521B\u3001\u5217\u3001\u9009\u3001\u9879\u3001drop",category:ae.c.CategoryNavigation}}],[ae.c.CDynamicDropMenu,{label:"\u65B0\u5EFA\u5F39\u51FA\u83DC\u5355",info:{fuzzTag:"\u9020\u3001\u5236\u3001\u7ACB\u3001\u521B\u3001\u5217\u3001\u9009\u3001\u9879\u3001pop",category:ae.c.CategoryNavigation}}],[ae.c.CWNavigationMenu,{label:"\u65B0\u5EFA\u5BFC\u822A\u83DC\u5355",info:{fuzzTag:"\u9020\u3001\u5236\u3001\u7ACB\u3001\u521B\u3001\u83DC\u3001\u5355\u3001\u8DEF\u3001\u884C",category:ae.c.CategoryNavigation}}],[ae.c.CWNavigationMenuH,{label:"\u65B0\u5EFA\u6C34\u5E73\u83DC\u5355",info:{fuzzTag:"\u884C",category:ae.c.CategoryNavigation}}],[ae.c.CWNavigationMenuV,{label:"\u65B0\u5EFA\u5782\u76F4\u83DC\u5355",info:{fuzzTag:"\u9020\u3001\u5236\u3001\u7ACB\u3001\u521B\u3001\u5217",category:ae.c.CategoryNavigation}}],[ae.c.CWMobileTabBars,{label:"\u65B0\u5EFA\u79FB\u52A8\u7AEF\u5BFC\u822A",info:{fuzzTag:"nav\u3001\u89C8",category:ae.c.CategoryNavigation}}],[ae.c.CWSegmentedControl,{label:"\u65B0\u5EFA\u5206\u6BB5\u5668",info:{fuzzTag:"tab\u3001\u5207\u3001\u6362",category:ae.c.CategoryNavigation}}],[ae.c.CWCollapse,{label:"\u65B0\u5EFA\u6298\u53E0\u9762\u677F",info:{fuzzTag:"\u5C55\u3001\u533A",category:ae.c.CategoryNavigation}}],[ae.c.CWTabs,{label:"\u65B0\u5EFA\u6807\u7B7E\u9875",info:{fuzzTag:"tab\u3001\u5361\u3001\u754C\u3001\u5207",category:ae.c.CategoryNavigation}}],[ae.c.CWPaginationMobile,{label:"\u65B0\u5EFA\u5206\u9875\u56681",info:{category:ae.c.CategoryNavigation}}],[ae.c.CWPaginationWeb,{label:"\u65B0\u5EFA\u5206\u9875\u56682",info:{category:ae.c.CategoryNavigation}}]])),pj=(0,ps.R)(()=>new Map([["\u65B0\u5EFA\u4E0B\u62C9\u83DC\u5355",ae.c.CWDropMenu],["\u65B0\u5EFA\u5F39\u51FA\u83DC\u5355",ae.c.CDynamicDropMenu],["\u65B0\u5EFA\u5BFC\u822A\u83DC\u5355",ae.c.CWNavigationMenu],["\u65B0\u5EFA\u6C34\u5E73\u83DC\u5355",ae.c.CWNavigationMenuH],["\u65B0\u5EFA\u5782\u76F4\u83DC\u5355",ae.c.CWNavigationMenuV],["\u65B0\u5EFA\u79FB\u52A8\u7AEF\u5BFC\u822A",ae.c.CWMobileTabBars],["\u65B0\u5EFA\u5206\u6BB5\u5668",ae.c.CWSegmentedControl],["\u65B0\u5EFA\u6298\u53E0\u9762\u677F",ae.c.CWCollapse],["\u65B0\u5EFA\u6807\u7B7E\u9875",ae.c.CWTabs],["\u65B0\u5EFA\u5206\u9875\u5668",ae.c.CWPaginationMobile],["\u65B0\u5EFA\u5206\u9875\u56682",ae.c.CWPaginationWeb]])),uj=(0,ps.R)(()=>new Map([[ae.c.CategoryChart,{label:"\u56FE\u8868",info:{isCategory:!0}}],[ae.c.CreateChart,{label:"\u65B0\u5EFA\u56FE\u8868",info:{fuzzTag:"\u8FF9\u3001\u8D8B\u3001\u8868\u3001\u7EDF\u3001\u8BA1\u3001\u6A2A\u3001\u7AD6\u3001\u9020\u3001\u5236\u3001\u7ACB\u3001\u521B\u3001create\u3001new",category:ae.c.CategoryChart}}]])),hj=(0,ps.R)(()=>new Map([["\u65B0\u5EFA\u56FE\u8868",ae.c.CreateChart]])),mj=(0,ps.R)(()=>new Map([[ae.c.CategoryMultimedia,{label:"\u591A\u5A92\u4F53",info:{isCategory:!0}}],[ae.c.CWWebpage,{label:"\u65B0\u5EFA\u7F51\u9875\u7EC4\u4EF6",info:{fuzzTag:"\u9020\u3001\u5236\u3001\u7ACB\u3001\u521B\u3001create\u3001new",category:ae.c.CategoryMultimedia}}],[ae.c.CWCarousel,{label:"\u65B0\u5EFA\u8F6E\u64AD\u56FE",info:{fuzzTag:"\u8F6E\u3001\u64AD\u3001\u56FE\u3001\u6ED1\u3001\u9020\u3001\u5236\u3001\u7ACB\u3001\u521B\u3001create\u3001new",category:ae.c.CategoryMultimedia}}],[ae.c.CWVideo,{label:"\u65B0\u5EFA\u89C6\u9891\u7EC4\u4EF6",info:{fuzzTag:"\u89C6\u3001\u9891\u3001\u5F55\u3001\u653E\u3001\u9020\u3001\u5236\u3001\u7ACB\u3001\u521B\u3001create\u3001new",category:ae.c.CategoryMultimedia}}],[ae.c.CWAudio,{label:"\u65B0\u5EFA\u97F3\u9891\u7EC4\u4EF6",info:{fuzzTag:"\u97F3\u3001\u9891\u3001\u542C\u3001\u5F55\u3001\u653E\u3001\u9020\u3001\u5236\u3001\u7ACB\u3001\u521B\u3001create\u3001new",category:ae.c.CategoryMultimedia}}],[ae.c.CWQRCode,{label:"\u65B0\u5EFA\u4E8C\u7EF4\u7801\u7EC4\u4EF6",info:{fuzzTag:"\u4E8C\u3001\u7EF4\u3001\u7801\u3001\u626B\u3001\u8BC6\u3001\u9020\u3001\u5236\u3001\u7ACB\u3001\u521B\u3001create\u3001new",category:ae.c.CategoryMultimedia}}],[ae.c.CWMapView,{label:"\u65B0\u5EFA\u5730\u56FE\u7EC4\u4EF6",info:{fuzzTag:"\u5730\u3001\u56FE\u3001\u5BFC\u3001\u4F4D\u3001\u63A2\u3001\u9020\u3001\u5236\u3001\u7ACB\u3001\u521B\u3001create\u3001new",category:ae.c.CategoryMultimedia}}],[ae.c.CWMTooltip,{label:"\u65B0\u5EFA\u804A\u5929\u6C14\u6CE1",info:{category:ae.c.CategoryMultimedia}}]])),fj=(0,ps.R)(()=>new Map([["\u65B0\u5EFA\u7F51\u9875\u7EC4\u4EF6",ae.c.CWWebpage],["\u65B0\u5EFA\u8F6E\u64AD\u56FE",ae.c.CWCarousel],["\u65B0\u5EFA\u89C6\u9891\u7EC4\u4EF6",ae.c.CWVideo],["\u65B0\u5EFA\u97F3\u9891\u7EC4\u4EF6",ae.c.CWAudio],["\u65B0\u5EFA\u4E8C\u7EF4\u7801\u7EC4\u4EF6",ae.c.CWQRCode],["\u65B0\u5EFA\u5730\u56FE\u7EC4\u4EF6",ae.c.CWMapView],["\u65B0\u5EFA\u804A\u5929\u6C14\u6CE1",ae.c.CWMTooltip]])),gj=(0,ps.R)(()=>new Map([[ae.c.CategoryShape,{label:"\u5F62\u72B6",info:{isCategory:!0}}],[ae.c.CWPolygon,{label:"\u65B0\u5EFA\u591A\u8FB9\u5F62",info:{fuzzTag:"\u5F62\u3001\u8FB9\u3001\u591A\u3001\u89D2\u3001\u9020\u3001\u5236\u3001\u7ACB\u3001\u521B\u3001create\u3001new",category:ae.c.CategoryShape}}],[ae.c.CWStar,{label:"\u65B0\u5EFA\u661F\u5F62",info:{fuzzTag:"\u661F\u3001\u5F62\u3001\u8F89\u3001\u5C04\u3001\u70B9\u3001\u9020\u3001\u5236\u3001\u7ACB\u3001\u521B\u3001create\u3001new",category:ae.c.CategoryShape}}],[ae.c.CWTriangle,{label:"\u65B0\u5EFA\u4E09\u89D2\u5F62",info:{fuzzTag:"\u4E09\u3001\u89D2\u3001\u5F62\u3001\u8FB9\u3001\u5C16\u3001\u9020\u3001\u5236\u3001\u7ACB\u3001\u521B\u3001create\u3001new",category:ae.c.CategoryShape}}]])),yj=(0,ps.R)(()=>new Map([["\u65B0\u5EFA\u591A\u8FB9\u5F62",ae.c.CWPolygon],["\u65B0\u5EFA\u661F\u5F62",ae.c.CWStar],["\u65B0\u5EFA\u4E09\u89D2\u5F62",ae.c.CWTriangle]])),xj=(0,ps.R)(()=>new Map([[ae.c.CategoryDelete,{label:"\u5220\u9664",info:{isCategory:!0}}],[ae.c.DWRichText,{label:"\u5220\u9664\u6587\u5B57\u7EC4\u4EF6",info:{fuzzTag:"\u6587\u3001\u5B57\u3001\u672C\u3001\u8F93\u5165\u3001\u952E\u3001font\u3001text\u3001txt\u3001\u6846\u3001\u53BB\u3001\u6E05\u3001\u79FB",category:ae.c.CategoryDelete}}],[ae.c.DWRect,{label:"\u5220\u9664\u77E9\u5F62",info:{fuzzTag:"\u77E9\u3001\u5F62\u3001\u65B9\u3001\u6846\u3001\u8FB9\u3001rectangle\u3001square\u3001\u53BB\u3001\u6E05\u3001\u79FB",category:ae.c.CategoryDelete}}],[ae.c.DWOval,{label:"\u5220\u9664\u5706\u5F62",info:{fuzzTag:"\u5F27\u3001\u73AF\u3001\u7403\u3001\u76D8\u3001\u53BB\u3001\u6E05\u3001\u79FB",category:ae.c.CategoryDelete}}],[ae.c.DWLine,{label:"\u5220\u9664\u7EBF\u6761",info:{fuzzTag:"\u7EBF\u3001\u6761\u3001\u76F4\u3001\u8FDE\u63A5\u3001line\u3001\u53BB\u3001\u6E05\u3001\u79FB",category:ae.c.CategoryDelete}}],[ae.c.DWButton,{label:"\u5220\u9664\u6309\u94AE",info:{fuzzTag:"\u6309\u3001\u952E\u3001\u5F00\u5173\u3001\u63A7\u5236\u3001\u89E6\u3001button\u3001\u53BB\u3001\u6E05\u3001\u79FB",category:ae.c.CategoryDelete}}],[ae.c.DWArrow,{label:"\u5220\u9664\u7BAD\u5934",info:{fuzzTag:"\u6307\u3001\u5411\u3001\u7BAD\u3001\u6807\u3001\u5BFC\u3001\u53BB\u3001\u6E05\u3001\u79FB",category:ae.c.CategoryDelete}}],[ae.c.DWPolygon,{label:"\u5220\u9664\u591A\u8FB9\u5F62",info:{fuzzTag:"\u5F62\u3001\u8FB9\u3001\u591A\u3001\u56FE\u3001\u89D2\u3001\u53BB\u3001\u6E05\u3001\u79FB",category:ae.c.CategoryDelete}}],[ae.c.DWStar,{label:"\u5220\u9664\u661F\u5F62",info:{fuzzTag:"\u661F\u3001\u5F62\u3001\u8F89\u3001\u5C04\u3001\u70B9\u3001\u53BB\u3001\u6E05\u3001\u79FB",category:ae.c.CategoryDelete}}],[ae.c.DWTriangle,{label:"\u5220\u9664\u4E09\u89D2\u5F62",info:{fuzzTag:"\u4E09\u3001\u89D2\u3001\u5F62\u3001\u8FB9\u3001\u5C16\u3001\u53BB\u3001\u6E05\u3001\u79FB",category:ae.c.CategoryDelete}}],[ae.c.DWCarousel,{label:"\u5220\u9664\u8F6E\u64AD\u56FE",info:{fuzzTag:"\u8F6E\u3001\u64AD\u3001\u5E7B\u3001\u6ED1\u3001\u53BB\u3001\u6E05\u3001\u79FB",category:ae.c.CategoryDelete}}],[ae.c.DWWebpage,{label:"\u5220\u9664\u7F51\u9875\u7EC4\u4EF6",info:{fuzzTag:"\u6D4F\u3001\u70B9\u3001\u53BB\u3001\u6E05\u3001\u79FB",category:ae.c.CategoryDelete}}],[ae.c.DWVideo,{label:"\u5220\u9664\u89C6\u9891\u7EC4\u4EF6",info:{fuzzTag:"\u89C6\u3001\u9891\u3001\u5F71\u3001\u5F55\u3001\u653E\u3001\u53BB\u3001\u6E05\u3001\u79FB",category:ae.c.CategoryDelete}}],[ae.c.DWAudio,{label:"\u5220\u9664\u97F3\u9891\u7EC4\u4EF6",info:{fuzzTag:"\u97F3\u3001\u9891\u3001\u542C\u3001\u5F55\u3001\u653E\u3001\u53BB\u3001\u6E05\u3001\u79FB",category:ae.c.CategoryDelete}}],[ae.c.DWQRCode,{label:"\u5220\u9664\u4E8C\u7EF4\u7801\u7EC4\u4EF6",info:{fuzzTag:"\u4E8C\u3001\u7EF4\u3001\u7801\u3001\u626B\u3001\u8BC6\u3001\u53BB\u3001\u6E05\u3001\u79FB",category:ae.c.CategoryDelete}}],[ae.c.DWMapView,{label:"\u5220\u9664\u5730\u56FE\u7EC4\u4EF6",info:{fuzzTag:"\u5730\u3001\u56FE\u3001\u5BFC\u3001\u4F4D\u3001\u63A2\u3001\u53BB\u3001\u6E05\u3001\u79FB",category:ae.c.CategoryDelete}}],[ae.c.DWMTooltip,{label:"\u5220\u9664\u804A\u5929\u6C14\u6CE1",info:{fuzzTag:"",category:ae.c.CategoryDelete}}],[ae.c.DWLr,{label:"\u5220\u9664\u94FE\u63A5\u533A\u57DF",info:{fuzzTag:"\u53BB\u3001\u6E05\u3001\u79FB\u3001\u70ED\u3001\u8054\u3001\u63A5\u3001\u70B9",category:ae.c.CategoryDelete}}],[ae.c.DWImage,{label:"\u5220\u9664\u56FE\u7247",info:{fuzzTag:"\u6539\u3001\u8C03\u3001\u4FEE\u3001\u7F16\u3001\u6B63",category:ae.c.CategoryDelete}}],[ae.c.DWPlaceholder,{label:"\u5220\u9664\u5360\u4F4D\u7B26",info:{fuzzTag:"\u53BB\u3001\u6E05\u3001\u79FB\u3001\u7A7A",category:ae.c.CategoryDelete}}],[ae.c.DWTable,{label:"\u5220\u9664\u8868\u683C",info:{fuzzTag:"\u6539\u3001\u8C03\u3001\u4FEE\u3001\u7F16\u3001\u6B63\u3001\u5217\u3001\u884C\u3001\u6846\u3001\u6570\u636E",category:ae.c.CategoryDelete}}],[ae.c.DWSticker,{label:"\u5220\u9664\u6279\u6CE8",info:{fuzzTag:"\u6539\u3001\u8C03\u3001\u4FEE\u3001\u7F16\u3001\u6B63\u3001\u6807\u3001\u8BB0",category:ae.c.CategoryDelete}}],[ae.c.DWTear,{label:"\u5220\u9664\u6253\u70B9\u6279\u6CE8",info:{fuzzTag:"\u6539\u3001\u8C03\u3001\u4FEE\u3001\u7F16\u3001\u6B63\u3001\u6807\u3001\u8BB0",category:ae.c.CategoryDelete}}],[ae.c.DWIphoneSB,{label:"\u5220\u9664\u72B6\u6001\u680F",info:{fuzzTag:"\u53BB\u3001\u6E05\u3001\u79FB\u3001\u6761\u3001\u793A\u3001bar",category:ae.c.CategoryDelete}}],[ae.c.DWMTextInput,{label:"\u5220\u9664\u5355\u884C\u8F93\u5165\u7EC4\u4EF6",info:{fuzzTag:"\u53BB\u3001\u6E05\u3001\u79FB\u3001\u57DF\u3001\u6846\u3001\u6587\u3001\u5B57\u3001\u533A\u3001\u586B",category:ae.c.CategoryDelete}}],[ae.c.DWMTextArea,{label:"\u5220\u9664\u591A\u884C\u8F93\u5165\u7EC4\u4EF6",info:{fuzzTag:"\u53BB\u3001\u6E05\u3001\u79FB\u3001\u6587\u3001\u57DF\u3001\u6761\u3001\u793A",category:ae.c.CategoryDelete}}],[ae.c.DWMSelect,{label:"\u5220\u9664\u4E0B\u62C9\u9009\u62E9\u5668",info:{fuzzTag:"\u53BB\u3001\u6E05\u3001\u79FB\u3001\u83DC\u3001\u5355\u3001\u5217\u3001\u9879\u3001\u8868",category:ae.c.CategoryDelete}}],[ae.c.DWMFileInput,{label:"\u5220\u9664\u6587\u4EF6\u9009\u62E9\u7EC4\u4EF6",info:{fuzzTag:"\u53BB\u3001\u6E05\u3001\u79FB\u3001\u4E0A\u4F20",category:ae.c.CategoryDelete}}],[ae.c.DWSelectionControlRadio,{label:"\u5220\u9664\u5355\u9009\u7EC4\u4EF6",info:{fuzzTag:"\u53BB\u3001\u6E05\u3001\u79FB\u3001\u9009\u3001\u5708\u3001\u5355\u3001\u9879\u3001\u53D6\u3001\u52FE",category:ae.c.CategoryDelete}}],[ae.c.DWSelectionControlCheckbox,{label:"\u5220\u9664\u590D\u9009\u7EC4\u4EF6",info:{fuzzTag:"\u53BB\u3001\u6E05\u3001\u79FB\u3001\u590D\u3001\u9009\u3001\u6846\u3001\u591A\u3001\u52FE",category:ae.c.CategoryDelete}}],[ae.c.DWAndroidSwitch,{label:"\u5220\u9664\u5B89\u5353\u5F00\u5173",info:{fuzzTag:"\u53BB\u3001\u6E05\u3001\u79FB\u3001\u5207\u3001\u6362\u3001\u63A7\u3001android",category:ae.c.CategoryDelete}}],[ae.c.DWIosSwitch,{label:"\u5220\u9664ios\u5F00\u5173",info:{fuzzTag:"\u6E05\u3001\u79FB\u3001\u5207\u3001\u6362\u3001\u63A7\u3001\u82F9\u679C\u3001mac\u3001watch\u3001pad\u3001iphone\u3001\u624B\u673A",category:ae.c.CategoryDelete}}],[ae.c.DWSlider,{label:"\u5220\u9664\u6ED1\u52A8\u6761",info:{fuzzTag:"\u53BB\u3001\u6E05\u3001\u79FB\u3001\u6ED1\u3001\u6761\u3001\u8C03\u3001\u8282\u3001\u8F68",category:ae.c.CategoryDelete}}],[ae.c.DWDigitalStepper,{label:"\u5220\u9664\u6570\u5B57\u6B65\u8FDB\u5668",info:{fuzzTag:"\u53BB\u3001\u6E05\u3001\u79FB\u3001\u6570\u3001\u6B65\u3001\u8FDB\u3001\u8C03\u3001\u589E",category:ae.c.CategoryDelete}}],[ae.c.DWDropMenu,{label:"\u5220\u9664\u4E0B\u62C9\u83DC\u5355",info:{fuzzTag:"\u53BB\u3001\u6E05\u3001\u79FB\u3001\u5217\u3001\u9009\u3001\u9879\u3001drop",category:ae.c.CategoryDelete}}],[ae.c.DWBasket,{label:"\u5220\u9664\u5F39\u51FA\u83DC\u5355",info:{fuzzTag:"\u53BB\u3001\u6E05\u3001\u79FB\u3001\u5217\u3001\u9009\u3001\u9879\u3001pop",category:ae.c.CategoryDelete}}],[ae.c.DWNavigationMenu,{label:"\u5220\u9664\u5BFC\u822A\u83DC\u5355",info:{fuzzTag:"\u627E\u3001\u5B9A\u4F4D\u3001\u9009\u3001\u83DC\u3001\u5355\u3001\u8DEF\u3001\u884C",category:ae.c.CategoryDelete}}],[ae.c.DWNavigationMenuV,{label:"\u5220\u9664\u5782\u76F4\u83DC\u5355",info:{fuzzTag:"\u53BB\u3001\u6E05\u3001\u79FB",category:ae.c.CategoryDelete}}],[ae.c.DWNavigationMenuH,{label:"\u5220\u9664\u6C34\u5E73\u83DC\u5355",info:{fuzzTag:"\u53BB\u3001\u6E05\u3001\u79FB",category:ae.c.CategoryDelete}}],[ae.c.DWMobileTabBars,{label:"\u5220\u9664\u79FB\u52A8\u7AEF\u5BFC\u822A",info:{fuzzTag:"\u53BB\u3001\u6E05\u3001\u79FB",category:ae.c.CategoryDelete}}],[ae.c.DWSegmentedControl,{label:"\u5220\u9664\u5206\u6BB5\u5668",info:{fuzzTag:"\u53BB\u3001\u6E05\u3001\u79FB",category:ae.c.CategoryDelete}}],[ae.c.DWCollapse,{label:"\u5220\u9664\u6298\u53E0\u9762\u677F",info:{fuzzTag:"\u53BB\u3001\u6E05\u3001\u79FB",category:ae.c.CategoryDelete}}],[ae.c.DWTabs,{label:"\u5220\u9664\u6807\u7B7E\u9875",info:{fuzzTag:"\u53BB\u3001\u6E05\u3001\u79FB",category:ae.c.CategoryDelete}}],[ae.c.DWPaginationMobile,{label:"\u5220\u9664\u5206\u9875\u5668",info:{fuzzTag:"\u53BB\u3001\u6E05\u3001\u79FB",category:ae.c.CategoryDelete}}],[ae.c.DWPaginationWeb,{label:"\u5220\u9664Web\u5206\u6BB5\u5668",info:{fuzzTag:"\u53BB\u3001\u6E05\u3001\u79FB",category:ae.c.CategoryDelete}}],[ae.c.DWChart,{label:"\u5220\u9664\u56FE\u8868",info:{fuzzTag:"\u6539\u3001\u8C03\u3001\u4FEE\u3001\u7F16\u3001\u8868",category:ae.c.CategoryDelete}}],[ae.c.DWidgets,{label:"\u5220\u9664\u5F88\u591A\u7EC4\u4EF6",info:{fuzzTag:"",category:ae.c.CategoryDelete,noCanFuzzy:!1}}]])),vj=(0,ps.R)(()=>new Map([["\u5220\u9664\u6587\u5B57\u7EC4\u4EF6",ae.c.DWRichText],["\u5220\u9664\u77E9\u5F62",ae.c.DWRect],["\u5220\u9664\u5706\u5F62",ae.c.DWOval],["\u5220\u9664\u7EBF\u6761",ae.c.DWLine],["\u5220\u9664\u6309\u94AE",ae.c.DWButton],["\u5220\u9664\u7BAD\u5934",ae.c.DWArrow],["\u5220\u9664\u591A\u8FB9\u5F62",ae.c.DWPolygon],["\u5220\u9664\u661F\u5F62",ae.c.DWStar],["\u5220\u9664\u4E09\u89D2\u5F62",ae.c.DWTriangle],["\u5220\u9664\u8F6E\u64AD\u56FE",ae.c.DWCarousel],["\u5220\u9664\u7F51\u9875\u7EC4\u4EF6",ae.c.DWWebpage],["\u5220\u9664\u89C6\u9891\u7EC4\u4EF6",ae.c.DWVideo],["\u5220\u9664\u97F3\u9891\u7EC4\u4EF6",ae.c.DWAudio],["\u5220\u9664\u4E8C\u7EF4\u7801\u7EC4\u4EF6",ae.c.DWQRCode],["\u5220\u9664\u5730\u56FE\u7EC4\u4EF6",ae.c.DWMapView],["\u5220\u9664\u804A\u5929\u6C14\u6CE1",ae.c.DWMTooltip],["\u5220\u9664\u94FE\u63A5\u533A\u57DF",ae.c.DWLr],["\u5220\u9664\u56FE\u7247",ae.c.DWImage],["\u5220\u9664\u5360\u4F4D\u7B26",ae.c.DWPlaceholder],["\u5220\u9664\u8868\u683C",ae.c.DWTable],["\u5220\u9664\u6279\u6CE8",ae.c.DWSticker],["\u5220\u9664\u6253\u70B9\u6279\u6CE8",ae.c.DWTear],["\u5220\u9664\u72B6\u6001\u680F",ae.c.DWIphoneSB],["\u5220\u9664\u5355\u884C\u8F93\u5165\u7EC4\u4EF6",ae.c.DWMTextInput],["\u5220\u9664\u591A\u884C\u8F93\u5165\u7EC4\u4EF6",ae.c.DWMTextArea],["\u5220\u9664\u4E0B\u62C9\u9009\u62E9\u5668",ae.c.DWMSelect],["\u5220\u9664\u6587\u4EF6\u9009\u62E9\u7EC4\u4EF6",ae.c.DWMFileInput],["\u5220\u9664\u5355\u9009\u7EC4\u4EF6",ae.c.DWSelectionControlRadio],["\u5220\u9664\u590D\u9009\u7EC4\u4EF6",ae.c.DWSelectionControlCheckbox],["\u5220\u9664\u5B89\u5353\u5F00\u5173",ae.c.DWAndroidSwitch],["\u5220\u9664ios\u5F00\u5173",ae.c.DWIosSwitch],["\u5220\u9664\u6ED1\u52A8\u6761",ae.c.DWSlider],["\u5220\u9664\u6570\u5B57\u6B65\u8FDB\u5668",ae.c.DWDigitalStepper],["\u5220\u9664\u4E0B\u62C9\u83DC\u5355",ae.c.DWDropMenu],["\u5220\u9664\u5F39\u51FA\u83DC\u5355",ae.c.DWBasket],["\u5220\u9664\u5BFC\u822A\u83DC\u5355",ae.c.DWNavigationMenu],["\u5220\u9664\u5782\u76F4\u83DC\u5355",ae.c.DWNavigationMenuV],["\u5220\u9664\u6C34\u5E73\u83DC\u5355",ae.c.DWNavigationMenuH],["\u5220\u9664\u79FB\u52A8\u7AEF\u5BFC\u822A",ae.c.DWMobileTabBars],["\u5220\u9664\u5206\u6BB5\u5668",ae.c.DWSegmentedControl],["\u5220\u9664\u6298\u53E0\u9762\u677F",ae.c.DWCollapse],["\u5220\u9664\u6807\u7B7E\u9875",ae.c.DWTabs],["\u5220\u9664\u5206\u9875\u5668",ae.c.DWPaginationMobile],["\u5220\u9664Web\u5206\u6BB5\u5668",ae.c.DWPaginationWeb],["\u5220\u9664\u56FE\u8868",ae.c.DWChart],["\u5220\u9664",ae.c.DWidgets]])),bj=(0,ps.R)(()=>new Map([[ae.c.CategorySelected,{label:"\u9009\u4E2D",info:{isCategory:!0}}],[ae.c.SWRichText,{label:"\u9009\u4E2D\u6587\u5B57\u7EC4\u4EF6",info:{fuzzTag:"",category:ae.c.CategorySelected}}],[ae.c.SWRect,{label:"\u9009\u4E2D\u77E9\u5F62",info:{fuzzTag:"",category:ae.c.CategorySelected}}],[ae.c.SWOval,{label:"\u9009\u4E2D\u5706\u5F62",info:{fuzzTag:"",category:ae.c.CategorySelected}}],[ae.c.SWLine,{label:"\u9009\u4E2D\u7EBF\u6761",info:{fuzzTag:"",category:ae.c.CategorySelected}}],[ae.c.SWButton,{label:"\u9009\u4E2D\u6309\u94AE",info:{fuzzTag:"",category:ae.c.CategorySelected}}],[ae.c.SWArrow,{label:"\u9009\u4E2D\u7BAD\u5934",info:{fuzzTag:"",category:ae.c.CategorySelected}}],[ae.c.SWPolygon,{label:"\u9009\u4E2D\u591A\u8FB9\u5F62",info:{fuzzTag:"",category:ae.c.CategorySelected}}],[ae.c.SWStar,{label:"\u9009\u4E2D\u661F\u5F62",info:{fuzzTag:"",category:ae.c.CategorySelected}}],[ae.c.SWTriangle,{label:"\u9009\u4E2D\u4E09\u89D2\u5F62",info:{fuzzTag:"",category:ae.c.CategorySelected}}],[ae.c.SWCarousel,{label:"\u9009\u4E2D\u8F6E\u64AD\u56FE",info:{fuzzTag:"",category:ae.c.CategorySelected}}],[ae.c.SWWebpage,{label:"\u9009\u4E2D\u7F51\u9875\u7EC4\u4EF6",info:{fuzzTag:"",category:ae.c.CategorySelected}}],[ae.c.SWVideo,{label:"\u9009\u4E2D\u89C6\u9891\u7EC4\u4EF6",info:{fuzzTag:"",category:ae.c.CategorySelected}}],[ae.c.SWAudio,{label:"\u9009\u4E2D\u97F3\u9891\u7EC4\u4EF6",info:{fuzzTag:"",category:ae.c.CategorySelected}}],[ae.c.SWQRCode,{label:"\u9009\u4E2D\u4E8C\u7EF4\u7801\u7EC4\u4EF6",info:{fuzzTag:"",category:ae.c.CategorySelected}}],[ae.c.SWMapView,{label:"\u9009\u4E2D\u5730\u56FE\u7EC4\u4EF6",info:{fuzzTag:"",category:ae.c.CategorySelected}}],[ae.c.SWMTooltip,{label:"\u9009\u4E2D\u804A\u5929\u6C14\u6CE1",info:{fuzzTag:"",category:ae.c.CategorySelected}}],[ae.c.SWLr,{label:"\u9009\u4E2D\u94FE\u63A5\u533A\u57DF",info:{fuzzTag:"\u627E\u3001\u5B9A\u4F4D\u3001\u9009\u3001\u70ED\u3001\u8054\u3001\u63A5\u3001\u70B9",category:ae.c.CategorySelected}}],[ae.c.SWImage,{label:"\u9009\u4E2D\u56FE\u7247",info:{fuzzTag:"",category:ae.c.CategorySelected}}],[ae.c.SWPlaceholder,{label:"\u9009\u4E2D\u5360\u4F4D\u7B26",info:{fuzzTag:"\u627E\u3001\u5B9A\u4F4D\u3001\u9009\u3001\u7A7A",category:ae.c.CategorySelected}}],[ae.c.SWTable,{label:"\u9009\u4E2D\u8868\u683C",info:{fuzzTag:"\u627E\u3001\u5B9A\u4F4D\u3001\u9009\u3001\u5217\u3001\u884C\u3001\u6846\u3001\u6570\u636E",category:ae.c.CategorySelected}}],[ae.c.SWSticker,{label:"\u9009\u4E2D\u6279\u6CE8",info:{fuzzTag:"\u627E\u3001\u5B9A\u4F4D\u3001\u9009\u3001\u6807\u3001\u8BB0",category:ae.c.CategorySelected}}],[ae.c.SWTear,{label:"\u9009\u4E2D\u6253\u70B9\u6279\u6CE8",info:{fuzzTag:"\u627E\u3001\u5B9A\u4F4D\u3001\u9009\u3001\u6807\u3001\u8BB0",category:ae.c.CategorySelected}}],[ae.c.SWIphoneSB,{label:"\u9009\u4E2D\u72B6\u6001\u680F",info:{fuzzTag:"\u627E\u3001\u5B9A\u4F4D\u3001\u9009\u3001\u6761\u3001\u793A\u3001bar",category:ae.c.CategorySelected}}],[ae.c.SWMTextInput,{label:"\u9009\u4E2D\u5355\u884C\u8F93\u5165\u7EC4\u4EF6",info:{fuzzTag:"\u627E\u3001\u5B9A\u4F4D\u3001\u9009\u3001\u57DF\u3001\u6846\u3001\u6587\u3001\u5B57\u3001\u533A\u3001\u586B",category:ae.c.CategorySelected}}],[ae.c.SWMTextArea,{label:"\u9009\u4E2D\u591A\u884C\u8F93\u5165\u7EC4\u4EF6",info:{fuzzTag:"\u627E\u3001\u5B9A\u4F4D\u3001\u9009\u3001\u6587\u3001\u57DF\u3001\u6761\u3001\u793A",category:ae.c.CategorySelected}}],[ae.c.SWMSelect,{label:"\u9009\u4E2D\u4E0B\u62C9\u9009\u62E9\u5668",info:{fuzzTag:"\u627E\u3001\u5B9A\u4F4D\u3001\u9009\u3001\u83DC\u3001\u5355\u3001\u5217\u3001\u9879\u3001\u8868",category:ae.c.CategorySelected}}],[ae.c.SWMFileInput,{label:"\u9009\u4E2D\u6587\u4EF6\u9009\u62E9\u7EC4\u4EF6",info:{fuzzTag:"\u627E\u3001\u5B9A\u4F4D\u3001\u9009\u3001\u4E0A\u4F20",category:ae.c.CategorySelected}}],[ae.c.SWSelectionControlRadio,{label:"\u9009\u4E2D\u5355\u9009\u7EC4\u4EF6",info:{fuzzTag:"\u627E\u3001\u5B9A\u4F4D\u3001\u9009\u3001\u9009\u3001\u5708\u3001\u5355\u3001\u9879\u3001\u53D6\u3001\u52FE",category:ae.c.CategorySelected}}],[ae.c.SWSelectionControlCheckbox,{label:"\u9009\u4E2D\u590D\u9009\u7EC4\u4EF6",info:{fuzzTag:"\u627E\u3001\u5B9A\u4F4D\u3001\u9009\u3001\u590D\u3001\u9009\u3001\u6846\u3001\u591A\u3001\u52FE",category:ae.c.CategorySelected}}],[ae.c.SWAndroidSwitch,{label:"\u9009\u4E2D\u5B89\u5353\u5F00\u5173",info:{fuzzTag:"\u627E\u3001\u5B9A\u4F4D\u3001\u9009\u3001\u5207\u3001\u6362\u3001\u63A7\u3001android",category:ae.c.CategorySelected}}],[ae.c.SWIosSwitch,{label:"\u9009\u4E2Dios\u5F00\u5173",info:{fuzzTag:"\u627E\u3001\u5B9A\u4F4D\u3001\u9009\u3001\u5207\u3001\u6362\u3001\u63A7\u3001\u82F9\u679C\u3001mac\u3001watch\u3001pad\u3001iphone\u3001\u624B\u673A",category:ae.c.CategorySelected}}],[ae.c.SWSlider,{label:"\u9009\u4E2D\u6ED1\u52A8\u6761",info:{fuzzTag:"\u627E\u3001\u5B9A\u4F4D\u3001\u9009\u3001\u6587\u3001\u57DF\u3001\u6761\u3001\u793A",category:ae.c.CategorySelected}}],[ae.c.SWDigitalStepper,{label:"\u9009\u4E2D\u6570\u5B57\u6B65\u8FDB\u5668",info:{fuzzTag:"\u627E\u3001\u5B9A\u4F4D\u3001\u9009\u3001\u6570\u3001\u6B65\u3001\u8FDB\u3001\u8C03\u3001\u589E",category:ae.c.CategorySelected}}],[ae.c.SWDropMenu,{label:"\u9009\u4E2D\u4E0B\u62C9\u83DC\u5355",info:{fuzzTag:"\u627E\u3001\u5B9A\u4F4D\u3001\u9009\u3001\u5217\u3001\u9009\u3001\u9879\u3001drop",category:ae.c.CategorySelected}}],[ae.c.SWBasket,{label:"\u9009\u4E2D\u5F39\u51FA\u83DC\u5355",info:{fuzzTag:"\u627E\u3001\u5B9A\u4F4D\u3001\u9009\u3001\u5217\u3001\u9009\u3001\u9879\u3001pop",category:ae.c.CategorySelected}}],[ae.c.SWNavigationMenu,{label:"\u9009\u4E2D\u5BFC\u822A\u83DC\u5355",info:{fuzzTag:"\u627E\u3001\u5B9A\u4F4D\u3001\u9009\u3001\u83DC\u3001\u5355\u3001\u8DEF\u3001\u884C",category:ae.c.CategorySelected}}],[ae.c.SWNavigationMenuV,{label:"\u9009\u4E2D\u5782\u76F4\u83DC\u5355",info:{fuzzTag:"\u627E\u3001\u5B9A\u4F4D\u3001\u9009",category:ae.c.CategorySelected}}],[ae.c.SWNavigationMenuH,{label:"\u9009\u4E2D\u6C34\u5E73\u83DC\u5355",info:{fuzzTag:"\u627E\u3001\u5B9A\u4F4D\u3001\u9009",category:ae.c.CategorySelected}}],[ae.c.SWMobileTabBars,{label:"\u9009\u4E2D\u79FB\u52A8\u7AEF\u5BFC\u822A",info:{fuzzTag:"\u627E\u3001\u5B9A\u4F4D\u3001\u9009",category:ae.c.CategorySelected}}],[ae.c.SWSegmentedControl,{label:"\u9009\u4E2D\u5206\u6BB5\u5668",info:{fuzzTag:"\u627E\u3001\u5B9A\u4F4D\u3001\u9009",category:ae.c.CategorySelected}}],[ae.c.SWCollapse,{label:"\u9009\u4E2D\u6298\u53E0\u9762\u677F",info:{fuzzTag:"\u627E\u3001\u5B9A\u4F4D\u3001\u9009",category:ae.c.CategorySelected}}],[ae.c.SWTabs,{label:"\u9009\u4E2D\u6807\u7B7E\u9875",info:{fuzzTag:"\u627E\u3001\u5B9A\u4F4D\u3001\u9009",category:ae.c.CategorySelected}}],[ae.c.SWPaginationMobile,{label:"\u9009\u4E2D\u5206\u9875\u5668",info:{fuzzTag:"\u627E\u3001\u5B9A\u4F4D\u3001\u9009",category:ae.c.CategorySelected}}],[ae.c.SWPaginationWeb,{label:"\u9009\u4E2DWeb\u5206\u6BB5\u5668",info:{fuzzTag:"\u627E\u3001\u5B9A\u4F4D\u3001\u9009",category:ae.c.CategorySelected}}],[ae.c.SWChart,{label:"\u9009\u4E2D\u56FE\u8868",info:{fuzzTag:"\u627E\u3001\u5B9A\u4F4D\u3001\u9009\u3001\u8FF9\u3001\u8D8B\u3001\u8868\u3001\u7EDF\u3001\u8BA1\u3001\u6A2A\u3001\u7AD6",category:ae.c.CategorySelected}}],[ae.c.SWidgets,{label:"\u9009\u4E2D\u5F88\u591A\u7EC4\u4EF6",info:{fuzzTag:"",category:ae.c.CategorySelected,noCanFuzzy:!1}}]])),wj=(0,ps.R)(()=>new Map([["\u9009\u4E2D\u6587\u5B57\u7EC4\u4EF6",ae.c.SWRichText],["\u9009\u4E2D\u77E9\u5F62",ae.c.SWRect],["\u9009\u4E2D\u5706\u5F62",ae.c.SWOval],["\u9009\u4E2D\u7EBF\u6761",ae.c.SWLine],["\u9009\u4E2D\u6309\u94AE",ae.c.SWButton],["\u9009\u4E2D\u7BAD\u5934",ae.c.SWArrow],["\u9009\u4E2D\u591A\u8FB9\u5F62",ae.c.SWPolygon],["\u9009\u4E2D\u661F\u5F62",ae.c.SWStar],["\u9009\u4E2D\u4E09\u89D2\u5F62",ae.c.SWTriangle],["\u9009\u4E2D\u8F6E\u64AD\u56FE",ae.c.SWCarousel],["\u9009\u4E2D\u7F51\u9875\u7EC4\u4EF6",ae.c.SWWebpage],["\u9009\u4E2D\u89C6\u9891\u7EC4\u4EF6",ae.c.SWVideo],["\u9009\u4E2D\u97F3\u9891\u7EC4\u4EF6",ae.c.SWAudio],["\u9009\u4E2D\u4E8C\u7EF4\u7801\u7EC4\u4EF6",ae.c.SWQRCode],["\u9009\u4E2D\u5730\u56FE\u7EC4\u4EF6",ae.c.SWMapView],["\u9009\u4E2D\u804A\u5929\u6C14\u6CE1",ae.c.SWMTooltip],["\u9009\u4E2D\u94FE\u63A5\u533A\u57DF",ae.c.SWLr],["\u9009\u4E2D\u56FE\u7247",ae.c.SWImage],["\u9009\u4E2D\u5360\u4F4D\u7B26",ae.c.SWPlaceholder],["\u9009\u4E2D\u8868\u683C",ae.c.SWTable],["\u9009\u4E2D\u6279\u6CE8",ae.c.SWSticker],["\u9009\u4E2D\u6253\u70B9\u6279\u6CE8",ae.c.SWTear],["\u9009\u4E2D\u72B6\u6001\u680F",ae.c.SWIphoneSB],["\u9009\u4E2D\u5355\u884C\u8F93\u5165\u7EC4\u4EF6",ae.c.SWMTextInput],["\u9009\u4E2D\u591A\u884C\u8F93\u5165\u7EC4\u4EF6",ae.c.SWMTextArea],["\u9009\u4E2D\u4E0B\u62C9\u9009\u62E9\u5668",ae.c.SWMSelect],["\u9009\u4E2D\u6587\u4EF6\u9009\u62E9\u7EC4\u4EF6",ae.c.SWMFileInput],["\u9009\u4E2D\u5355\u9009\u7EC4\u4EF6",ae.c.SWSelectionControlRadio],["\u9009\u4E2D\u590D\u9009\u7EC4\u4EF6",ae.c.SWSelectionControlCheckbox],["\u9009\u4E2D\u5B89\u5353\u5F00\u5173",ae.c.SWAndroidSwitch],["\u9009\u4E2Dios\u5F00\u5173",ae.c.SWIosSwitch],["\u9009\u4E2D\u6ED1\u52A8\u6761",ae.c.SWSlider],["\u9009\u4E2D\u6570\u5B57\u6B65\u8FDB\u5668",ae.c.SWDigitalStepper],["\u9009\u4E2D\u4E0B\u62C9\u83DC\u5355",ae.c.SWDropMenu],["\u9009\u4E2D\u5F39\u51FA\u83DC\u5355",ae.c.SWBasket],["\u9009\u4E2D\u5BFC\u822A\u83DC\u5355",ae.c.SWNavigationMenu],["\u9009\u4E2D\u5782\u76F4\u83DC\u5355",ae.c.SWNavigationMenuV],["\u9009\u4E2D\u6C34\u5E73\u83DC\u5355",ae.c.SWNavigationMenuH],["\u9009\u4E2D\u79FB\u52A8\u7AEF\u5BFC\u822A",ae.c.SWMobileTabBars],["\u9009\u4E2D\u5206\u6BB5\u5668",ae.c.SWSegmentedControl],["\u9009\u4E2D\u6298\u53E0\u9762\u677F",ae.c.SWCollapse],["\u9009\u4E2D\u6807\u7B7E\u9875",ae.c.SWTabs],["\u9009\u4E2D\u5206\u9875\u5668",ae.c.SWPaginationMobile],["\u9009\u4E2DWeb\u5206\u6BB5\u5668",ae.c.SWPaginationWeb],["\u9009\u4E2D\u56FE\u8868",ae.c.SWChart],["\u9009\u4E2D",ae.c.SWidgets]])),Cj=(0,ps.R)(()=>new Map([[ae.c.CategoryEdit,{label:"\u7F16\u8F91",info:{isCategory:!0,noCanFuzzy:!0}}],[ae.c.EWRichText,{label:"\u7F16\u8F91\u6587\u5B57\u7EC4\u4EF6",info:{fuzzTag:"\u6587\u3001\u5B57\u3001\u672C\u3001\u8F93\u5165\u3001\u952E\u3001font\u3001text\u3001txt\u3001\u6846\u3001\u6539\u3001\u8C03\u3001\u4FEE\u3001\u7F16\u3001\u6B63",category:ae.c.CategoryEdit}}],[ae.c.EWRect,{label:"\u7F16\u8F91\u77E9\u5F62",info:{fuzzTag:"\u77E9\u3001\u5F62\u3001\u65B9\u3001\u6846\u3001\u8FB9\u3001rectangle\u3001square\u3001\u6539\u3001\u8C03\u3001\u4FEE\u3001\u7F16\u3001\u6B63",category:ae.c.CategoryEdit,noCanFuzzy:!0}}],[ae.c.EWOval,{label:"\u7F16\u8F91\u5706\u5F62",info:{fuzzTag:"\u5F27\u3001\u73AF\u3001\u7403\u3001\u76D8\u3001\u6539\u3001\u8C03\u3001\u4FEE\u3001\u7F16\u3001\u6B63",category:ae.c.CategoryEdit,noCanFuzzy:!0}}],[ae.c.EWLine,{label:"\u7F16\u8F91\u7EBF\u6761",info:{fuzzTag:"\u7EBF\u3001\u6761\u3001\u76F4\u3001\u8FDE\u63A5\u3001line\u3001\u6539\u3001\u8C03\u3001\u4FEE\u3001\u7F16\u3001\u6B63",category:ae.c.CategoryEdit,noCanFuzzy:!0}}],[ae.c.EWButton,{label:"\u7F16\u8F91\u6309\u94AE",info:{fuzzTag:"\u6309\u3001\u952E\u3001\u5F00\u5173\u3001\u63A7\u5236\u3001\u89E6\u3001button\u3001\u6539\u3001\u8C03\u3001\u4FEE\u3001\u7F16\u3001\u6B63",category:ae.c.CategoryEdit,noCanFuzzy:!0}}],[ae.c.EWArrow,{label:"\u7F16\u8F91\u7BAD\u5934",info:{fuzzTag:"\u6307\u3001\u5411\u3001\u7BAD\u3001\u6807\u3001\u5BFC\u3001\u6539\u3001\u8C03\u3001\u4FEE\u3001\u7F16\u3001\u6B63",category:ae.c.CategoryEdit,noCanFuzzy:!0}}],[ae.c.EWPolygon,{label:"\u7F16\u8F91\u591A\u8FB9\u5F62",info:{fuzzTag:"\u5F62\u3001\u8FB9\u3001\u591A\u3001\u56FE\u3001\u89D2\u3001\u6539\u3001\u8C03\u3001\u4FEE\u3001\u7F16\u3001\u6B63",category:ae.c.CategoryEdit,noCanFuzzy:!0}}],[ae.c.EWStar,{label:"\u7F16\u8F91\u661F\u5F62",info:{fuzzTag:"\u661F\u3001\u5F62\u3001\u8F89\u3001\u5C04\u3001\u70B9\u3001\u6539\u3001\u8C03\u3001\u4FEE\u3001\u7F16\u3001\u6B63",category:ae.c.CategoryEdit,noCanFuzzy:!0}}],[ae.c.EWTriangle,{label:"\u7F16\u8F91\u4E09\u89D2\u5F62",info:{fuzzTag:"\u4E09\u3001\u89D2\u3001\u5F62\u3001\u8FB9\u3001\u5C16\u3001\u6539\u3001\u8C03\u3001\u4FEE\u3001\u7F16\u3001\u6B63",category:ae.c.CategoryEdit,noCanFuzzy:!0}}],[ae.c.EWCarousel,{label:"\u7F16\u8F91\u8F6E\u64AD\u56FE",info:{fuzzTag:"\u8F6E\u3001\u64AD\u3001\u56FE\u3001\u5E7B\u3001\u6ED1\u3001\u6539\u3001\u8C03\u3001\u4FEE\u3001\u7F16\u3001\u6B63",category:ae.c.CategoryEdit,noCanFuzzy:!0}}],[ae.c.EWWebpage,{label:"\u7F16\u8F91\u7F51\u9875\u7EC4\u4EF6",info:{fuzzTag:"\u70B9\u3001\u6539\u3001\u8C03\u3001\u4FEE\u3001\u7F16\u3001\u6B63",category:ae.c.CategoryEdit,noCanFuzzy:!0}}],[ae.c.EWVideo,{label:"\u7F16\u8F91\u89C6\u9891\u7EC4\u4EF6",info:{fuzzTag:"\u89C6\u3001\u9891\u3001\u5F55\u3001\u653E\u3001\u6539\u3001\u8C03\u3001\u4FEE\u3001\u7F16\u3001\u6B63",category:ae.c.CategoryEdit,noCanFuzzy:!0}}],[ae.c.EWAudio,{label:"\u7F16\u8F91\u97F3\u9891\u7EC4\u4EF6",info:{fuzzTag:"\u97F3\u3001\u9891\u3001\u542C\u3001\u5F55\u3001\u653E\u3001\u6539\u3001\u8C03\u3001\u4FEE\u3001\u7F16\u3001\u6B63",category:ae.c.CategoryEdit,noCanFuzzy:!0}}],[ae.c.EWQRCode,{label:"\u7F16\u8F91\u4E8C\u7EF4\u7801\u7EC4\u4EF6",info:{fuzzTag:"\u4E8C\u3001\u7EF4\u3001\u7801\u3001\u626B\u3001\u8BC6\u3001\u6539\u3001\u8C03\u3001\u4FEE\u3001\u7F16\u3001\u6B63",category:ae.c.CategoryEdit,noCanFuzzy:!0}}],[ae.c.EWMapView,{label:"\u7F16\u8F91\u5730\u56FE\u7EC4\u4EF6",info:{fuzzTag:"\u5730\u3001\u56FE\u3001\u5BFC\u3001\u4F4D\u3001\u63A2\u3001\u6539\u3001\u8C03\u3001\u4FEE\u3001\u7F16\u3001\u6B63",category:ae.c.CategoryEdit,noCanFuzzy:!0}}],[ae.c.EWMTooltip,{label:"\u7F16\u8F91\u804A\u5929\u6C14\u6CE1",info:{fuzzTag:"",category:ae.c.CategoryEdit,noCanFuzzy:!0}}],[ae.c.EWLr,{label:"\u7F16\u8F91\u94FE\u63A5\u533A\u57DF",info:{fuzzTag:"\u6539\u3001\u8C03\u3001\u4FEE\u3001\u7F16\u3001\u6B63\u3001\u70ED\u3001\u8054\u3001\u63A5\u3001\u70B9",category:ae.c.CategoryEdit,noCanFuzzy:!0}}],[ae.c.EWImage,{label:"\u7F16\u8F91\u56FE\u7247",info:{fuzzTag:"\u53BB\u3001\u6E05\u3001\u79FB",category:ae.c.CategoryEdit,noCanFuzzy:!0}}],[ae.c.EWPlaceholder,{label:"\u7F16\u8F91\u5360\u4F4D\u7B26",info:{fuzzTag:"\u6539\u3001\u8C03\u3001\u4FEE\u3001\u7F16\u3001\u6B63\u3001\u7A7A",category:ae.c.CategoryEdit,noCanFuzzy:!0}}],[ae.c.EWTable,{label:"\u7F16\u8F91\u8868\u683C",info:{fuzzTag:"\u53BB\u3001\u6E05\u3001\u79FB\u3001\u5217\u3001\u884C\u3001\u6846\u3001\u6570\u636E",category:ae.c.CategoryEdit,noCanFuzzy:!0}}],[ae.c.EWSticker,{label:"\u7F16\u8F91\u6279\u6CE8",info:{fuzzTag:"\u53BB\u3001\u6E05\u3001\u79FB\u3001\u6807\u3001\u8BB0",category:ae.c.CategoryEdit,noCanFuzzy:!0}}],[ae.c.EWTear,{label:"\u7F16\u8F91\u6253\u70B9\u6279\u6CE8",info:{fuzzTag:"\u53BB\u3001\u6E05\u3001\u79FB\u3001\u6807\u3001\u8BB0",category:ae.c.CategoryEdit,noCanFuzzy:!0}}],[ae.c.EWIphoneSB,{label:"\u7F16\u8F91\u72B6\u6001\u680F",info:{fuzzTag:"\u53BB\u3001\u6E05\u3001\u79FB\u3001\u6761\u3001\u793A\u3001bar",category:ae.c.CategoryEdit,noCanFuzzy:!0}}],[ae.c.EWMTextInput,{label:"\u7F16\u8F91\u5355\u884C\u8F93\u5165\u7EC4\u4EF6",info:{fuzzTag:"\u53BB\u3001\u6E05\u3001\u79FB\u3001\u57DF\u3001\u6846\u3001\u6587\u3001\u5B57\u3001\u533A\u3001\u586B",category:ae.c.CategoryEdit,noCanFuzzy:!0}}],[ae.c.EWMTextArea,{label:"\u7F16\u8F91\u591A\u884C\u8F93\u5165\u7EC4\u4EF6",info:{fuzzTag:"\u53BB\u3001\u6E05\u3001\u79FB\u3001\u6587\u3001\u57DF\u3001\u6761\u3001\u793A",category:ae.c.CategoryEdit,noCanFuzzy:!0}}],[ae.c.EWMSelect,{label:"\u7F16\u8F91\u4E0B\u62C9\u9009\u62E9\u5668",info:{fuzzTag:"\u53BB\u3001\u6E05\u3001\u79FB\u3001\u83DC\u3001\u5355\u3001\u5217\u3001\u9879\u3001\u8868",category:ae.c.CategoryEdit,noCanFuzzy:!0}}],[ae.c.EWMFileInput,{label:"\u7F16\u8F91\u6587\u4EF6\u9009\u62E9\u7EC4\u4EF6",info:{fuzzTag:"\u53BB\u3001\u6E05\u3001\u79FB\u3001\u4E0A\u4F20",category:ae.c.CategoryEdit,noCanFuzzy:!0}}],[ae.c.EWSelectionControlRadio,{label:"\u7F16\u8F91\u5355\u9009\u7EC4\u4EF6",info:{fuzzTag:"\u53BB\u3001\u6E05\u3001\u79FB\u3001\u9009\u3001\u5708\u3001\u5355\u3001\u9879\u3001\u53D6\u3001\u52FE",category:ae.c.CategoryEdit,noCanFuzzy:!0}}],[ae.c.EWSelectionControlCheckbox,{label:"\u7F16\u8F91\u590D\u9009\u7EC4\u4EF6",info:{fuzzTag:"\u53BB\u3001\u6E05\u3001\u79FB\u3001\u590D\u3001\u9009\u3001\u6846\u3001\u591A\u3001\u52FE",category:ae.c.CategoryEdit,noCanFuzzy:!0}}],[ae.c.EWAndroidSWitch,{label:"\u7F16\u8F91\u5B89\u5353\u5F00\u5173",info:{fuzzTag:"\u53BB\u3001\u6E05\u3001\u79FB\u3001\u5207\u3001\u6362\u3001\u63A7\u3001android",category:ae.c.CategoryEdit,noCanFuzzy:!0}}],[ae.c.EWIosSWitch,{label:"\u7F16\u8F91ios\u5F00\u5173",info:{fuzzTag:"\u53BB\u3001\u6E05\u3001\u79FB\u3001\u5207\u3001\u6362\u3001\u63A7\u3001\u82F9\u679C\u3001mac\u3001watch\u3001pad\u3001iphone\u3001\u624B\u673A",category:ae.c.CategoryEdit,noCanFuzzy:!0}}],[ae.c.EWSlider,{label:"\u7F16\u8F91\u6ED1\u52A8\u6761",info:{fuzzTag:"\u53BB\u3001\u6E05\u3001\u79FB\u3001\u6ED1\u3001\u6761\u3001\u8C03\u3001\u8282\u3001\u8F68",category:ae.c.CategoryEdit,noCanFuzzy:!0}}],[ae.c.EWDigitalStepper,{label:"\u7F16\u8F91\u6570\u5B57\u6B65\u8FDB\u5668",info:{fuzzTag:"\u53BB\u3001\u6E05\u3001\u79FB\u3001\u6570\u3001\u6B65\u3001\u8FDB\u3001\u8C03\u3001\u589E",category:ae.c.CategoryEdit,noCanFuzzy:!0}}],[ae.c.EWDropMenu,{label:"\u7F16\u8F91\u4E0B\u62C9\u83DC\u5355",info:{fuzzTag:"\u53BB\u3001\u6E05\u3001\u79FB\u3001\u5217\u3001\u9009\u3001\u9879\u3001drop",category:ae.c.CategoryEdit,noCanFuzzy:!0}}],[ae.c.EWBasket,{label:"\u7F16\u8F91\u5F39\u51FA\u83DC\u5355",info:{fuzzTag:"\u53BB\u3001\u6E05\u3001\u79FB\u3001\u5217\u3001\u9009\u3001\u9879\u3001pop",category:ae.c.CategoryEdit,noCanFuzzy:!0}}],[ae.c.EWNavigationMenu,{label:"\u7F16\u8F91\u5BFC\u822A\u83DC\u5355",info:{fuzzTag:"\u627E\u3001\u5B9A\u4F4D\u3001\u9009\u3001\u83DC\u3001\u5355\u3001\u8DEF\u3001\u884C",category:ae.c.CategoryEdit,noCanFuzzy:!0}}],[ae.c.EWNavigationMenuV,{label:"\u7F16\u8F91\u5782\u76F4\u83DC\u5355",info:{fuzzTag:"\u53BB\u3001\u6E05\u3001\u79FB",category:ae.c.CategoryEdit,noCanFuzzy:!0}}],[ae.c.EWNavigationMenuH,{label:"\u7F16\u8F91\u6C34\u5E73\u83DC\u5355",info:{fuzzTag:"\u53BB\u3001\u6E05\u3001\u79FB",category:ae.c.CategoryEdit,noCanFuzzy:!0}}],[ae.c.EWMobileTabBars,{label:"\u7F16\u8F91\u79FB\u52A8\u7AEF\u5BFC\u822A",info:{fuzzTag:"\u53BB\u3001\u6E05\u3001\u79FB",category:ae.c.CategoryEdit,noCanFuzzy:!0}}],[ae.c.EWSegmentedControl,{label:"\u7F16\u8F91\u5206\u6BB5\u5668",info:{fuzzTag:"\u53BB\u3001\u6E05\u3001\u79FB",category:ae.c.CategoryEdit,noCanFuzzy:!0}}],[ae.c.EWCollapse,{label:"\u7F16\u8F91\u6298\u53E0\u9762\u677F",info:{fuzzTag:"\u53BB\u3001\u6E05\u3001\u79FB",category:ae.c.CategoryEdit,noCanFuzzy:!0}}],[ae.c.EWTabs,{label:"\u7F16\u8F91\u6807\u7B7E\u9875",info:{fuzzTag:"\u53BB\u3001\u6E05\u3001\u79FB",category:ae.c.CategoryEdit,noCanFuzzy:!0}}],[ae.c.EWPaginationMobile,{label:"\u7F16\u8F91\u5206\u9875\u5668",info:{fuzzTag:"\u53BB\u3001\u6E05\u3001\u79FB",category:ae.c.CategoryEdit,noCanFuzzy:!0}}],[ae.c.EWPaginationWeb,{label:"\u7F16\u8F91Web\u5206\u6BB5\u5668",info:{fuzzTag:"\u53BB\u3001\u6E05\u3001\u79FB",category:ae.c.CategoryEdit,noCanFuzzy:!0}}],[ae.c.EWElbow,{label:"\u7F16\u8F91\u8FDE\u63A5\u7EBF",info:{fuzzTag:"\u53BB\u3001\u6E05\u3001\u79FB\u3001\u7F06\u3001\u7EBD\u3001\u6307",category:ae.c.CategoryEdit,noCanFuzzy:!0}}],[ae.c.EWChart,{label:"\u7F16\u8F91\u56FE\u8868",info:{fuzzTag:"\u53BB\u3001\u6E05\u3001\u79FB\u3001\u8FF9\u3001\u8D8B\u3001\u8868\u3001\u7EDF\u3001\u8BA1\u3001\u6A2A\u3001\u7AD6",category:ae.c.CategoryEdit,noCanFuzzy:!0}}],[ae.c.EWidgets,{label:"\u7F16\u8F91\u6837\u5F0F",info:{fuzzTag:"",category:ae.c.CategoryEdit,noCanFuzzy:!1}}]])),Sj=(0,ps.R)(()=>new Map([["\u7F16\u8F91\u6587\u5B57\u7EC4\u4EF6",ae.c.EWRichText],["\u7F16\u8F91\u77E9\u5F62",ae.c.EWRect],["\u7F16\u8F91\u5706\u5F62",ae.c.EWOval],["\u7F16\u8F91\u7EBF\u6761",ae.c.EWLine],["\u7F16\u8F91\u6309\u94AE",ae.c.EWButton],["\u7F16\u8F91\u7BAD\u5934",ae.c.EWArrow],["\u7F16\u8F91\u591A\u8FB9\u5F62",ae.c.EWPolygon],["\u7F16\u8F91\u661F\u5F62",ae.c.EWStar],["\u7F16\u8F91\u4E09\u89D2\u5F62",ae.c.EWTriangle],["\u7F16\u8F91\u8F6E\u64AD\u56FE",ae.c.EWCarousel],["\u7F16\u8F91\u7F51\u9875\u7EC4\u4EF6",ae.c.EWWebpage],["\u7F16\u8F91\u89C6\u9891\u7EC4\u4EF6",ae.c.EWVideo],["\u7F16\u8F91\u97F3\u9891\u7EC4\u4EF6",ae.c.EWAudio],["\u7F16\u8F91\u4E8C\u7EF4\u7801\u7EC4\u4EF6",ae.c.EWQRCode],["\u7F16\u8F91\u5730\u56FE\u7EC4\u4EF6",ae.c.EWMapView],["\u7F16\u8F91\u804A\u5929\u6C14\u6CE1",ae.c.EWMTooltip],["\u7F16\u8F91\u94FE\u63A5\u533A\u57DF",ae.c.EWLr],["\u7F16\u8F91\u56FE\u7247",ae.c.EWImage],["\u7F16\u8F91\u5360\u4F4D\u7B26",ae.c.EWPlaceholder],["\u7F16\u8F91\u8868\u683C",ae.c.EWTable],["\u7F16\u8F91\u6279\u6CE8",ae.c.EWSticker],["\u7F16\u8F91\u6253\u70B9\u6279\u6CE8",ae.c.EWTear],["\u7F16\u8F91\u72B6\u6001\u680F",ae.c.EWIphoneSB],["\u7F16\u8F91\u5355\u884C\u8F93\u5165\u7EC4\u4EF6",ae.c.EWMTextInput],["\u7F16\u8F91\u591A\u884C\u8F93\u5165\u7EC4\u4EF6",ae.c.EWMTextArea],["\u7F16\u8F91\u4E0B\u62C9\u9009\u62E9\u5668",ae.c.EWMSelect],["\u7F16\u8F91\u6587\u4EF6\u9009\u62E9\u7EC4\u4EF6",ae.c.EWMFileInput],["\u7F16\u8F91\u5355\u9009\u7EC4\u4EF6",ae.c.EWSelectionControlRadio],["\u7F16\u8F91\u590D\u9009\u7EC4\u4EF6",ae.c.EWSelectionControlCheckbox],["\u7F16\u8F91\u5B89\u5353\u5F00\u5173",ae.c.EWAndroidSWitch],["\u7F16\u8F91ios\u5F00\u5173",ae.c.EWIosSWitch],["\u7F16\u8F91\u6ED1\u52A8\u6761",ae.c.EWSlider],["\u7F16\u8F91\u6570\u5B57\u6B65\u8FDB\u5668",ae.c.EWDigitalStepper],["\u7F16\u8F91\u4E0B\u62C9\u83DC\u5355",ae.c.EWDropMenu],["\u7F16\u8F91\u5F39\u51FA\u83DC\u5355",ae.c.EWBasket],["\u7F16\u8F91\u5BFC\u822A\u83DC\u5355",ae.c.EWNavigationMenu],["\u7F16\u8F91\u5782\u76F4\u83DC\u5355",ae.c.EWNavigationMenuV],["\u7F16\u8F91\u6C34\u5E73\u83DC\u5355",ae.c.EWNavigationMenuH],["\u7F16\u8F91\u79FB\u52A8\u7AEF\u5BFC\u822A",ae.c.EWMobileTabBars],["\u7F16\u8F91\u5206\u6BB5\u5668",ae.c.EWSegmentedControl],["\u7F16\u8F91\u6298\u53E0\u9762\u677F",ae.c.EWCollapse],["\u7F16\u8F91\u6807\u7B7E\u9875",ae.c.EWTabs],["\u7F16\u8F91\u5206\u9875\u5668",ae.c.EWPaginationMobile],["\u7F16\u8F91Web\u5206\u6BB5\u5668",ae.c.EWPaginationWeb],["\u7F16\u8F91\u8FDE\u63A5\u7EBF",ae.c.EWElbow],["\u7F16\u8F91\u56FE\u8868",ae.c.EWChart],["\u7F16\u8F91\u6837\u5F0F",ae.c.EWidgets]])),Aj=(0,ps.R)(()=>new Map([[ae.c.CategoryPage,{label:"\u9875\u9762",info:{isCategory:!0}}],[ae.c.CPage,{label:"\u65B0\u5EFA\u9875\u9762",info:{fuzzTag:"\u9020\u3001\u5236\u3001\u7ACB\u3001\u521B\u3001create\u3001new\u3001\u9875\u3001\u72B6\u6001\u3001page\u3001\u677F\u3001\u5361\u3001\u7247\u3001\u754C",category:ae.c.CategoryPage}}],[ae.c.CPageCopy,{label:"\u521B\u5EFA\u9875\u9762\u526F\u672C",info:{fuzzTag:"\u9875\u3001\u72B6\u6001\u3001page\u3001\u677F\u3001\u5361\u3001\u7247\u3001\u754C\u3001\u590D\u5236",category:ae.c.CategoryPage}}],[ae.c.CopyPage,{label:"\u590D\u5236\u9875\u9762",info:{fuzzTag:"",category:ae.c.CategoryPage}}],[ae.c.CutPage,{label:"\u526A\u5207\u9875\u9762",info:{fuzzTag:"",category:ae.c.CategoryPage}}],[ae.c.PastePage,{label:"\u7C98\u8D34\u9875\u9762",info:{fuzzTag:"",category:ae.c.CategoryPage}}],[ae.c.ToggleClipContent,{label:"\u6253\u5F00/\u5173\u95ED\u9875\u9762\u88C1\u526A",info:{fuzzTag:"",category:ae.c.CategoryPage}}],[ae.c.EPageLayout,{label:"\u4FEE\u6539\u9875\u9762\u5E03\u5C40\u6837\u5F0F",info:{fuzzTag:"",category:ae.c.CategoryPage}}],[ae.c.EPage,{label:"\u7F16\u8F91\u9875\u9762",info:{fuzzTag:"\u7F16\u3001\u8C03\u3001\u6B63\u3001\u4FEE\u3001bg\u3001\u677F\u3001\u767D\u3001\u533A\u3001\u8272\u3001\u57DF\u3001\u673A\u578B\u3001\u5C3A\u3001\u5BF8\u3001iphone\u3001\u82F9\u679C\u3001ios\u3001mac\u3001\u624B\u8868\u3001watch\u3001h5\u3001\u5927\u5C4F\u3001\u7535\u89C6\u3001\u81EA\u5B9A\u4E49\u3001huawei\u3001\u624B\u673A\u3001\u534E\u4E3A\u3001google\u3001\u7F51\u9875\u3001web\u3001pad\u3001book\u3001\u5DE5\u4E1A\u3001hmi\u3001\u4E2D\u63A7\u3001\u8F66\u3001\u516C\u4F17\u53F7\u3001\u5FAE\u4FE1\u3001\u5C01\u9762\u3001banner\u3001\u7535\u5546\u3001\u6536\u5F92\u3001\u5E97\u62DB",category:ae.c.CategoryPage}}]])),kj=(0,ps.R)(()=>new Map([["\u65B0\u5EFA\u9875\u9762",ae.c.CPage],["\u9875\u9762",ae.c.CategoryPage],["\u521B\u5EFA\u9875\u9762\u526F\u672C",ae.c.CPageCopy],["\u590D\u5236\u9875\u9762",ae.c.CopyPage],["\u526A\u5207\u9875\u9762",ae.c.CutPage],["\u7C98\u8D34\u9875\u9762",ae.c.PastePage],["\u6253\u5F00/\u5173\u95ED\u9875\u9762\u88C1\u526A",ae.c.ToggleClipContent],["\u4FEE\u6539\u9875\u9762\u5E03\u5C40\u6837\u5F0F",ae.c.EPageLayout],["\u7F16\u8F91\u9875\u9762",ae.c.EPage]])),Mj=(0,ps.R)(()=>new Map([[ae.c.CategoryCanvas,{label:"\u753B\u5E03",info:{isCategory:!0}}],[ae.c.CCanvas,{label:"\u65B0\u5EFA\u753B\u5E03",info:{fuzzTag:"\u65B0\u5EFA\u3001\u751F\u6210\u3001\u7ED9\u6211\u3001\u521B\u5EFA\u3001\u60F3\u8981\u3001\u753B\u5E03\u3001\u753B\u677F\u3001\u767D\u677F\u3001\u533A\u3001\u5236\u3001\u9020\u3001\u5236\u3001\u7ACB\u3001\u521B\u3001create\u3001new",category:ae.c.CategoryCanvas}}],[ae.c.CSubCanvas,{label:"\u65B0\u5EFA\u5B50\u753B\u5E03",info:{fuzzTag:"\u9875\u3001page\u3001\u677F\u3001\u5361\u3001\u7247\u3001\u754C\u3001\u590D\u5236",category:ae.c.CategoryCanvas}}],[ae.c.CDirectory,{label:"\u65B0\u5EFA\u753B\u5E03\u6587\u4EF6\u5939",info:{fuzzTag:"",category:ae.c.CategoryCanvas}}],[ae.c.CCanvasCopy,{label:"\u521B\u5EFA\u753B\u5E03\u526F\u672C",info:{fuzzTag:"",category:ae.c.CategoryCanvas}}],[ae.c.MoveCanvas,{label:"\u8F6C\u79FB\u753B\u5E03",info:{fuzzTag:"",category:ae.c.CategoryCanvas}}],[ae.c.ECanvas,{label:"\u7F16\u8F91\u753B\u5E03",info:{fuzzTag:"",category:ae.c.CategoryCanvas}}],[ae.c.DCanvas,{label:"\u5220\u9664\u753B\u5E03",info:{fuzzTag:"\u677F\u3001\u57DF\u3001\u53BB\u3001\u6389\u3001\u9664\u3001\u4E0D\u3001del\u3001\u6E05\u3001\u79FB",category:ae.c.CategoryCanvas}}],[ae.c.CanvasViewRecycle,{label:"\u67E5\u770B\u753B\u5E03\u56DE\u6536\u7AD9",info:{fuzzTag:"\u677F\u3001\u767D\u3001\u533A\u3001\u57DF\u3001\u5783\u3001\u573E",category:ae.c.CategoryCanvas}}],[ae.c.CollapseCanvas,{label:"\u6536\u8D77\u753B\u5E03",info:{fuzzTag:"",category:ae.c.CategoryCanvas}}],[ae.c.ExpandCanvas,{label:"\u5C55\u5F00\u753B\u5E03",info:{fuzzTag:"",category:ae.c.CategoryCanvas}}]])),Ej=(0,ps.R)(()=>new Map([["\u65B0\u5EFA\u753B\u5E03",ae.c.CCanvas],["\u65B0\u5EFA\u5B50\u753B\u5E03",ae.c.CSubCanvas],["\u65B0\u5EFA\u753B\u5E03\u6587\u4EF6\u5939",ae.c.CDirectory],["\u521B\u5EFA\u753B\u5E03\u526F\u672C",ae.c.CCanvasCopy],["\u8F6C\u79FB\u753B\u5E03",ae.c.MoveCanvas],["\u7F16\u8F91\u753B\u5E03",ae.c.ECanvas],["\u5220\u9664\u753B\u5E03",ae.c.DCanvas],["\u67E5\u770B\u753B\u5E03\u56DE\u6536\u7AD9",ae.c.CanvasViewRecycle],["\u6536\u8D77\u753B\u5E03",ae.c.CollapseCanvas],["\u5C55\u5F00\u753B\u5E03",ae.c.ExpandCanvas]])),Ij=(0,ps.R)(()=>new Map([[ae.c.CategoryIntEvents,{label:"\u4EA4\u4E92\u4E8B\u4EF6",info:{isCategory:!0}}],[ae.c.OpenEventsPanel,{label:"\u6253\u5F00\u4E8B\u4EF6\u9762\u677F",info:{fuzzTag:"\u4EA4\u4E92\u3001\u52A8\u753B",category:ae.c.CategoryIntEvents}}]])),_j=(0,ps.R)(()=>new Map([["\u6253\u5F00\u4E8B\u4EF6\u9762\u677F",ae.c.OpenEventsPanel]])),Tj=(0,ps.R)(()=>new Map([[ae.c.CategoryLayer,{label:"\u56FE\u5C42\u5143\u7D20",info:{isCategory:!0}}],[ae.c.ToggleLayerLock,{label:"\u9501\u5B9A/\u89E3\u9501\u56FE\u5C42",info:{fuzzTag:"",category:ae.c.CategoryLayer}}],[ae.c.ToggleLayerVisible,{label:"\u663E\u793A/\u9690\u85CF\u56FE\u5C42",info:{fuzzTag:"",category:ae.c.CategoryLayer}}],[ae.c.ToggleLayerExpand,{label:"\u5C55\u5F00\u56FE\u5C42/\u6536\u8D77\u56FE\u5C42",info:{fuzzTag:"",category:ae.c.CategoryLayer}}]])),Pj=(0,ps.R)(()=>new Map([["\u5C55\u5F00\u56FE\u5C42/\u6536\u8D77\u56FE\u5C42",ae.c.ToggleLayerExpand],["\u663E\u793A/\u9690\u85CF\u56FE\u5C42",ae.c.ToggleLayerVisible],["\u9501\u5B9A/\u89E3\u9501\u56FE\u5C42",ae.c.ToggleLayerLock]]));var Hv=s(80138);const Lj=(0,ps.R)(()=>new Map([[ae.c.CWebPage,{label:"\u751F\u6210Web\u539F\u578B",info:{noCanFuzzy:!0,category:ae.c.AIGC}}],[ae.c.CLargeScreenPage,{label:"\u751F\u6210\u5927\u5C4F\u539F\u578B\u9875\u9762",info:{noCanFuzzy:!0,category:ae.c.AIGC}}],[ae.c.CCustomComponent,{label:"\u751F\u6210\u81EA\u5B9A\u4E49\u7EC4\u4EF6",info:{noCanFuzzy:!0,category:ae.c.CCustomComponent}}],[ae.c.CWPicture,{label:"\u751F\u6210\u56FE\u7247",info:{noCanFuzzy:!0,category:ae.c.AIInDev}}],[ae.c.CWIcon,{label:"\u751F\u6210\u56FE\u6807",info:{noCanFuzzy:!0,category:ae.c.AIInDev}}],[ae.c.OUnableRecognize,{label:"\u65E0\u6CD5\u8BC6\u522B\u6216\u5904\u7406",info:{noCanFuzzy:!0,category:ae.c.AIQ}}],[ae.c.OFreeChatQuestion,{label:"\u81EA\u7531\u804A\u5929-\u54A8\u8BE2",info:{noCanFuzzy:!0,category:ae.c.AIQ}}],[ae.c.OFreeChat,{label:"\u81EA\u7531\u804A\u5929",info:{noCanFuzzy:!0,category:ae.c.AIQ}}]])),Nj=(0,ps.R)(()=>new Map([["\u751F\u6210Web\u539F\u578B",ae.c.CWebPage],["\u751F\u6210\u5927\u5C4F\u539F\u578B\u9875\u9762",ae.c.CLargeScreenPage],["\u751F\u6210\u81EA\u5B9A\u4E49\u7EC4\u4EF6",ae.c.CCustomComponent],["\u751F\u6210\u56FE\u7247",ae.c.CWPicture],["\u751F\u6210\u56FE\u6807",ae.c.CWIcon],["\u65E0\u6CD5\u8BC6\u522B\u6216\u5904\u7406",ae.c.OUnableRecognize],["\u81EA\u7531\u804A\u5929-\u54A8\u8BE2",ae.c.OFreeChatQuestion],["\u81EA\u7531\u804A\u5929",ae.c.OFreeChat]])),nie={label:"\u667A\u80FD\u6307\u4EE4",info:{isCategory:!0}},oie={label:"AIGC",info:{isCategory:!0}},B5=(0,ps.R)(()=>{const e=ej(),t=nj(),n=qN(),a=XN(),i=JN(),c=aj(),d=ij(),p=lj(),h=dj(),m=uj(),x=mj(),v=gj(),A=xj(),k=bj(),R=Cj(),F=Aj(),Z=Mj(),G=Ij(),ee=Tj(),ce=Lj(),se=new Map,he=[...e,...se,...t,...n,...a,...i,...c,...d,...p,...h,...m,...x,...v,...A,...k,...R,...F,...Z,...G,...ee,...ce];return Gv(he),new Map(he)}),jj=(0,ps.R)(()=>{const e=tj(),t=QN(),n=oj(),a=rj(),i=$N(),c=sj(),d=cj(),p=pj(),h=hj(),m=fj(),x=yj(),v=vj(),A=wj(),k=Sj(),R=kj(),F=Ej(),Z=_j(),G=Pj(),ee=Nj();return new Map([...e,...n,...t,...a,...i,...c,...d,...p,...h,...m,...x,...v,...A,...k,...R,...F,...Z,...G,...ee])}),Dj=(0,ps.R)(()=>[ae.c.Save,ae.c.ViewVersionRecord,ae.c.CreateNewVersion,ae.c.ToggleViewShare,ae.c.Cut,ae.c.Past,ae.c.Copy,ae.c.PastProperties,ae.c.ComSelectAll,ae.c.ToggleHandTool,ae.c.Preview,ae.c.Group,ae.c.UnGroup,ae.c.CreateMaster,ae.c.CreatePanel,ae.c.TogglePageTransState,ae.c.TogglePanelTransState,ae.c.Delete,ae.c.AlignmentLeft,ae.c.AlignmentRight,ae.c.AlignmentTop,ae.c.AlignmentBottom,ae.c.AlignmentCenter,ae.c.AlignmentMiddle,ae.c.AlignmentHorizontal,ae.c.AlignmentVertical,ae.c.ToggleRuler,ae.c.ToggleReferenceLine,ae.c.ToggleAlignLine,ae.c.ToggleSticky,ae.c.ToggleComment,ae.c.ToggleMultiplayerMouse,ae.c.ToggleLeftSide,ae.c.ToggleRightSide,ae.c.ZoomIn,ae.c.ZoomOut,ae.c.ZoomToHundred,ae.c.ZoomSelection,ae.c.FitCanvas,ae.c.FullScreenMode,ae.c.CCanvasCopy,ae.c.MoveCanvas,ae.c.DCanvas,ae.c.CanvasViewRecycle,ae.c.CollapseCanvas,ae.c.ExpandCanvas,ae.c.CPageCopy,ae.c.CopyPage,ae.c.CutPage,ae.c.PastePage,ae.c.ToggleLayerLock,ae.c.ToggleLayerVisible,ae.c.ToggleLayerExpand,ae.c.CWAndroidSwitch,ae.c.CWIosSwitch,ae.c.CDynCpts,ae.c.CVector,ae.c.OpenColorPicker,ae.c.DWAndroidSwitch,ae.c.DWIosSwitch,ae.c.OpenEventsPanel,ae.c.NewFeature,ae.c.ToggleShortcutKey,ae.c.OpenHelperCenter,ae.c.Feedback,ae.c.OnlineSupport]),Rj=()=>{const t=[[ae.c.SWRichText,{label:"\u9009\u4E2D\u6240\u6709\u5B57\u4F53\u4E3A\u82F9\u65B9\u7684\u6587\u672C",info:{fuzzTag:"",category:ae.c.CategorySelected,trackInfo:{input:"\u9009\u4E2D\u6240\u6709\u5B57\u4F53\u4E3A\u82F9\u65B9\u7684\u6587\u672C",type:"\u63A8\u8350\u6307\u4EE4",attr_no_conv:JSON.stringify({"font-family":"PingFangSC"}),function:"\u9009\u4E2D\u6587\u5B57\u7EC4\u4EF6",attr:JSON.stringify({"font-family":"PingFangSC"}),duration_ident:0,duration_conv:0,server:"8081"}},args:{"font-family":"PingFangSC"}}],[ae.c.CWRect,{label:"\u521B\u5EFA\u4E24\u4E2A\u6D45\u7070\u8272\u77E9\u5F62",info:{fuzzTag:"",category:ae.c.CategoryBW,trackInfo:{input:"\u521B\u5EFA\u4E24\u4E2A\u6D45\u7070\u8272\u77E9\u5F62",type:"\u63A8\u8350\u6307\u4EE4",attr_no_conv:JSON.stringify({count:2,"fill-color":"\u6D45\u7070"}),function:"\u65B0\u5EFA\u77E9\u5F62",attr:JSON.stringify({count:2,"fill-color":"#d3d3d3"}),duration_ident:0,duration_conv:0,server:"8081"}},args:{count:2,"fill-color":"#d3d3d3"}}],[ae.c.ToggleTheme,{label:"\u5207\u6362\u4E3B\u9898",info:{fuzzTag:"\u663E\u793A\u3001\u9ED1\u3001\u8272\u3001\u6DF1\u3001\u660E\u3001\u4EAE\u3001\u767D\u3001\u6D45\u3001\u7CFB\u7EDF\u3001\u754C\u9762",category:ae.c.CategoryPreference}}],[ae.c.SearchMktSource,{label:"\u641C\u7D22\u56FE\u7247\u7D20\u6750\uFF0C\u5173\u952E\u5B57\u4E3A\u98CE\u666F",info:{fuzzTag:"",category:ae.c.CategoryCommonOperation,trackInfo:{input:"\u641C\u7D22\u56FE\u7247\u7D20\u6750\uFF0C\u5173\u952E\u5B57\u4E3A\u98CE\u666F",type:"\u63A8\u8350\u6307\u4EE4",attr_no_conv:JSON.stringify({search_res_keyword:"\u98CE\u666F",search_res_type:"picture"}),function:"\u641C\u7D22\u7D20\u6750\u8D44\u6E90",attr:JSON.stringify({search_res_keyword:"\u98CE\u666F",search_res_type:"picture"}),duration_ident:0,duration_conv:0,server:"8081"}},args:{search_res_keyword:"\u98CE\u666F",search_res_type:"picture"}}],[ae.c.ZoomToHundred,{label:"\u7F29\u653E\u81F3100%",info:{fuzzTag:"\u5206\u3001\u5BF9\u3001\u9F50\u3001\u51C6",category:ae.c.CategoryLayoutView}}],[ae.c.FullScreenMode,{label:"\u5168\u5C4F\u6A21\u5F0F",info:{fuzzTag:"\u5207\u3001\u6362\u3001\u663E\u3001\u9690\u3001\u85CF\u3001\u6D88\u5931\u3001\u53BB\u6389\u3001\u5F00\u542F\u3001\u5207\u3001\u6362\u3001\u89C8",category:ae.c.CategoryLayoutView}}],[ae.c.ViewVersionRecord,{label:"\u67E5\u770B\u7248\u672C\u8BB0\u5F55",info:{fuzzTag:"\u56DE\u6EDA\u3001\u5386\u53F2\u3001\u8BB0\u5F55",category:ae.c.CategoryFile}}],[ae.c.CPage,{label:"\u65B0\u5EFA5\u4E2AiPhone\u9875\u9762",info:{fuzzTag:"",category:ae.c.CategoryPage,trackInfo:{input:"\u65B0\u5EFA5\u4E2AiPhone\u9875\u9762",type:"\u63A8\u8350\u6307\u4EE4",attr_no_conv:JSON.stringify({count:5,"device-size":"iphone"}),function:"\u65B0\u5EFA\u9875\u9762",attr:JSON.stringify({count:5,"device-size":"iphone"}),duration_ident:0,duration_conv:0,server:"8081"}},args:{count:5,"device-size":"iphone"}}],[ae.c.OpenColorPicker,{label:"\u5438\u8272\u5668",info:{fuzzTag:"\u53D6\u3001\u5339\u3001\u9009\u3001\u8C03",category:ae.c.CategoryFile}}],[ae.c.OpenHelperCenter,{label:"\u6253\u5F00\u5E2E\u52A9\u4E2D\u5FC3",info:{fuzzTag:"\u63F4\u3001\u7B54\u3001\u8BE2\u3001\u7591\u3001why\u3001\u4E3A\u4EC0\u4E48\u3001\u600E\u4E48\u3001\u600E\u6837\u3001\u5982\u4F55\u3001how\u3001\u80FD",category:ae.c.CategoryHelpCenter}}],[ae.c.ToggleShortcutKey,{label:"\u67E5\u770B\u5FEB\u6377\u952E",info:{fuzzTag:"shortcut\u3001\u5F84\u3001\u901F\u3001\u542F",category:ae.c.CategoryHelpCenter}}],[ae.c.CWTable,{label:"\u65B0\u5EFA\u8868\u683C",info:{fuzzTag:"\u9020\u3001\u5236\u3001\u7ACB\u3001\u751F\u3001\u6210\u3001\u521B\u3001create\u3001new\u3001\u5217\u3001\u884C\u3001\u6846\u3001\u6570\u636E",category:ae.c.CategoryBW},args:{count:1,row:5,column:5}}],[ae.c.CreateNewVersion,{label:"\u4FDD\u5B58\u4E3A\u65B0\u7248\u672C",info:{fuzzTag:"\u4FDD\u5B58\u3001save\u3001\u5B58\u3001\u50A8\u3001\u7559",category:ae.c.CategoryFile}}],[ae.c.CSubCanvas,{label:"\u65B0\u5EFA\u5B50\u753B\u5E03",info:{fuzzTag:"\u9875\u3001\u72B6\u6001\u3001page\u3001\u677F\u3001\u5361\u3001\u7247\u3001\u754C\u3001\u590D\u5236",category:ae.c.CategoryCanvas}}],[ae.c.SWRect,{label:"\u9009\u4E2D\u6240\u6709\u77E9\u5F62\u7EC4\u4EF6",info:{fuzzTag:"",category:ae.c.CategorySelected}}],[ae.c.AIGC,{label:"\u5E2E\u6211\u8BBE\u8BA1\u4E00\u4E2A\u65C5\u884CAPP",info:{fuzzTag:"",category:ae.c.CategoryAI}}],[ae.c.AIGC,{label:"\u751F\u6210\u7B14\u8BB0APP\u7684PRD\u6587\u6863",info:{fuzzTag:"",category:ae.c.CategoryAI}}],[ae.c.AIGC,{label:"\u751F\u6210\u4E00\u4E2A\u5546\u54C1\u9500\u552E\u7EDF\u8BA1\u8868",info:{fuzzTag:"",category:ae.c.CategoryAI}}],[ae.c.AIGC,{label:"\u751F\u6210\u4E00\u4E2A\u6E38\u620F\u884C\u4E1A\u53D1\u5C55\u8D8B\u52BF\u56FE",info:{fuzzTag:"",category:ae.c.CategoryAI}}],[ae.c.AIGC,{label:"\u7ED9\u6211\u4E00\u4E2ACRM\u7CFB\u7EDF\u6743\u9650\u529F\u80FD\u7ED3\u6784\u56FE",info:{fuzzTag:"",category:ae.c.CategoryAI}}]];Gv(t),t.forEach(i=>{i[1].info.isRecommend=!0});const n=[],a=t.slice();for(;n.length<5&&a.length>0;){const i=Math.floor(Math.random()*a.length),c=a.splice(i,1)[0];n.push(c)}return n},Gv=e=>{e.forEach(t=>{const[n,a]=t;let i="";if(n.includes("C-")||n===ae.c.CreateChart)i="v8Cmd/create";else{var c;if(Hv.K["v8Cmd/"+((c=a.info)==null?void 0:c.category)]){var d;i="v8Cmd/"+((d=a.info)==null?void 0:d.category)}Hv.K["v8Cmd/"+n]&&(i="v8Cmd/"+n)}a.iconName=i})},Bj={unicode:!0,interSplit:"[^A-Za-z\\d\u4E00-\u9FA5']+",intraSplit:"[a-z][A-Z]|[\u4E00-\u9FA5][A-Za-z]",intraBound:"[A-Za-z\\d]\u4E00-\u9FA5|\u4E00-\u9FA5[A-Za-z\\d]|[a-z][A-Z]|[\u4E00-\u9FA5][A-Za-z]",intraChars:"[\u4E00-\u9FA5]",intraContr:""},U5=new _g(Bj),Uj=.7;let Tm,O5=!1;const Oj=e=>{let{nlpMode:t}=e;const n=(0,l.useMemo)(()=>Array.from(B5()).filter(x=>{var v,A;let[k,R]=x;return!((v=R.info)!=null&&v.noCanFuzzy)&&!((A=R.info)!=null&&A.isCategory)}),[]),a=(0,l.useMemo)(()=>jj(),[]),i=(0,l.useMemo)(()=>n.map(x=>{let[v,{label:A,info:{fuzzTag:k}}]=x;return A+" "+(k||"")}),[n]),[c,d]=(0,l.useState)([]),p=(0,l.useCallback)(x=>{const v=x.replace(/([\u4e00-\u9fa5])/g,"$1 "),A=U5.filter(i,v);let k=[];if(!x||!A||!A.length)return[];try{const R=U5.info(A,i,v),Z=U5.sort(R,i,v).map(G=>n[R.idx[G]]);k=L1()(Z)}catch(R){const F=A.map(Z=>n[Z]);k=L1()(F)}return["\u5220","\u9664","\u5220\u9664"].find(R=>R===x)&&(k=[[ae.c.Delete,B5().get(ae.c.Delete)]]),k},[n,i]),h=(0,l.useCallback)(async x=>{Tm&&Tm.abort(),(x||!Tm)&&(Tm=new AbortController),O5=!0;const v=setTimeout(()=>{O5&&Tm.abort()},1e3),A=performance.now(),k=await(0,L0.GE)({searchValue:x,signal:Tm.signal},t);if(clearTimeout(v),O5=!1,!x){d([]);return}if(!k)return;const R=p(x),F=[ae.c.AIGC,{label:x,dCategory:ae.l.AI,info:{},iconName:"v8Cmd/"+ae.c.AIGC}],Z=[ae.c.AIQ,{label:x,dCategory:ae.l.AI,info:{},iconName:"v8Cmd/"+ae.c.AIQ}];if(!k){R.push(F),R.push(Z),d(R);return}const{attrs:G,intent:ee}=k,ce=ee.filter(ve=>{let[Te,xe]=ve;return Number(xe)>Uj});if(!ce&&!ce.length)return;const se=[];ce.forEach(ve=>{var Te;let[xe,Fe]=ve;const et=a.get(xe);if(!et||(!G||Object.keys(G).length===0)&&R.find(nt=>{let[Xe]=nt;return Xe===et})||R.find(nt=>{let[Xe,lt]=nt;return lt.label===x}))return;const Ke=L1()(B5().get(et));Ke.dCategory=ae.l.NLP;const Qe=((Te=Ke.info)==null?void 0:Te.category)||"";if([ae.c.AIGC,ae.c.AIQ,ae.c.CCustomComponent,ae.c.AIInDev].includes(Qe)||(Ke.info.category=ae.c.CategoryNLP),G&&Object.keys(G).length>0){let nt={};Object.entries(G).forEach(Xe=>{let[lt,{value:Ct}]=Xe;nt=Object.assign(nt,{[lt]:Ct})}),Ke.args=nt,Ke.info.attrs=gL(x,G),Ke.info.trackInfo={input:x,type:"nlp",attr_no_conv:JSON.stringify(nt),function:Ke.label,server:t,duration_ident:Math.round(performance.now()-A)}}else Ke.info.trackInfo={input:x,type:"nlp",function:Ke.label,server:t,duration_ident:Math.round(performance.now()-A)};Ke.label=xe,se.push([et,Ke])}),R.push(F),R.push(Z);const he=[...se,...R];he.sort((ve,Te)=>[ae.c.AIGC,ae.c.AIQ].includes(ve[0])||[ae.c.AIGC,ae.c.AIQ].includes(Te[0])?0:ve[1].label===x&&Te[1].label!==x?-1:ve[1].label!==x&&Te[1].label===x?1:0),d(he)},[d,a,t,p]);return{handleAICommendSearch:(0,l.useCallback)(x=>{h(x)},[h]),cmdSearchResult:c,setCmdSearchResult:d}};class Pm{static getInstance(t){return!Pm.instance&&t&&(Pm.instance=t),Pm.instance}}var sd=s(49612),Zv=s(57999);const Fj=e=>{let{onClose:t,accountData:n,actions:a,semanticValue:i,nlpMode:c}=e;const d=(0,l.useMemo)(()=>Dj(),[]),p=(0,l.useMemo)(()=>(0,sd.$I)().find(A=>A.type===sd.SR.Semantic),[]),h=A=>{const{user:k,org:R,project:F}=n,{updateCurrentOrg:Z,updateCurrentUser:G}=a;F.is_org_project&&R?Z({org:Object.assign(R,{used_times:A})}):G({user:Object.assign(k,{used_times:A})})},m=A=>{const{user:k,org:R,project:F}=n,{updateCurrentOrg:Z,updateCurrentUser:G}=a;F.is_org_project&&R?Z({org:Object.assign(R,{ai_points:A})}):G({user:Object.assign(k,{ai_points:A})})},{handleConvertComponent:x}=Dv({currentAIComponent:p,semanticValue:i,...n,onUpdateAIUsedTimes:h,onUpdateAIPoints:m,actions:a});return{handleCommandAction:(0,l.useCallback)(async(A,k)=>{var R,F,Z;const{args:G,info:ee}=A[1]||{},{isRecommend:ce,trackInfo:se}=ee||{},he=Qe=>{let{nlpType:nt,label:Xe}=Qe;return{input:i||A[1].label||Xe,type:ce?"\u63A8\u8350\u6307\u4EE4":nt,function:Xe,server:c}},ve=()=>{const{user:Qe,project:nt}=n||{},{id:Xe}=Qe||{},{cid:lt}=nt||{};return{user_id:Xe,project_cid:lt}},Te=Qe=>{(0,L0.Uy)({...Qe,...ve()})};if(A[0]===ae.c.AIInDev||((R=A[1].info)==null?void 0:R.category)===ae.c.AIInDev){a==null||a.notice({text:"\u529F\u80FD\u6B63\u5728\u5F00\u53D1\u4E2D\uFF0C\u656C\u8BF7\u671F\u5F85",svgName:"chatGPT/tip-warning"}),Te({nlpType:"nlp",label:"\u5F00\u53D1\u4E2D"});return}if(A[0]===ae.c.AIGC||((F=A[1].info)==null?void 0:F.category)===ae.c.AIGC){x(i||A[1].label),Te(se?{...se,attr:JSON.stringify(k),server:c}:he({nlpType:"\u4FDD\u5E95\u6307\u4EE4",label:"\u8BD5\u8BD5AI"}));return}if(A[0]===ae.c.AIQ||((Z=A[1].info)==null?void 0:Z.category)===ae.c.AIQ){await a.handleAIQuestion(i),setTimeout(()=>{Zv.A.emit(Zv.d,i)},10),Te(se?{...se,attr:JSON.stringify(k),server:c}:he({nlpType:"\u4FDD\u5E95\u6307\u4EE4",label:"\u95EE\u95EEAI"}));return}if(A[0]===ae.c.CCustomComponent){a.setAIComponentSourceCache("\u8BED\u4E49\u6307\u4EE4"),await a.aiComponentGenerate({semanticValue:i});return}const xe=performance.now();let Fe=!1;if(!d.includes(A[0])&&G&&Object.keys(G).length>0&&!ce){Fe=!0;const Qe=()=>{a.updateAIState({aiGenerating:!0})},nt=performance.now(),Xe=setTimeout(Qe,400),lt=await(0,L0.x$)(G,c),St=performance.now()-nt;St>400&&St<800&&await new Promise(hn=>setTimeout(hn,400)),Xe&&clearTimeout(Xe),a.updateAIState({aiGenerating:!1}),lt&&(k=lt)}const et=Pm.getInstance();if(await(et==null?void 0:et.exec(A[0],yL(k))),se){const Qe={...se,attr:JSON.stringify(k),server:c,...ve()};Fe&&(Qe.duration_conv=Math.round(performance.now()-xe)),(0,L0.Uy)(Qe)}else{var Ke;Te(he({nlpType:ce?"\u63A8\u8350\u6307\u4EE4":((Ke=A[1])==null||(Ke=Ke.info)==null||(Ke=Ke.trackInfo)==null?void 0:Ke.type)||"\u786C\u5339\u914D",label:A[1].label}))}},[i,x,c,d,a,n])}},Kv="8082",Vj=e=>{const{handleMovePanel:t,recommendPosition:n,generating:a,accountData:i,actions:c}=e,{user:d,org:p,project:h}=i,m=(0,l.useRef)(null),[x,v]=(0,l.useState)(!1),[A,k]=(0,l.useState)(""),[R,F]=(0,l.useState)([]),Z=(0,l.useMemo)(()=>Rj(),[]),G=()=>{c.updateAIState({showAISemantic:!1})},{cmdSearchResult:ee,handleAICommendSearch:ce,setCmdSearchResult:se}=Oj({nlpMode:Kv}),{handleCommandAction:he}=Fj({onClose:G,accountData:i,actions:c,semanticValue:A,nlpMode:Kv});(0,l.useEffect)(()=>{const Qe=!A||!ee.length?Z:ee;F(n==="top"?Qe.slice().reverse():Qe)},[n,A,ee,Z]);const ve=!a&&x,Te=(0,l.useCallback)(async Qe=>{var nt;k(""),se([]),v(!1),m&&((nt=m.current)==null||nt.blur()),await he(Qe,Qe[1].args),setTimeout(()=>{var Xe;m&&((Xe=m.current)==null||Xe.focus())},250)},[he,se]),xe=(0,l.useCallback)(Qe=>{k(Qe),Qe||se([])},[k,se]),Fe=(0,l.useCallback)(Qe=>{(Qe.target.closest(".ai-semantic-recommend-panel")||Qe.target.closest(".semantic-title")||Qe.target.closest(".semantic-input")&&!Qe.target.closest(".ai-semantic-input")||Qe.target.closest(".semantic-gap"))&&(Qe.stopPropagation(),Qe.preventDefault())},[]),et=(0,l.useCallback)(Qe=>{t(Qe,m==null?void 0:m.current)},[m,t]),Ke=(0,l.useCallback)(()=>{(0,rl.Ix)("https://modao.cc/hc/articles/407","_blank","noreferrer")},[]);return(0,o.jsxs)(TN,{children:[(0,o.jsxs)("div",{className:"semantic-top",children:[(0,o.jsxs)("div",{className:"semantic-title",onMouseDown:et,children:[(0,o.jsxs)("div",{className:"title-left",children:[(0,o.jsx)(xc.C,{name:"chatGPT/ai-semantic-small",isColorPure:!0}),I18N.ChatGPT.ai_semantic,(0,o.jsxs)("div",{className:"ai-help",children:[(0,o.jsx)(xc.C,{className:"ai-help-icon",name:"chatGPT/ai-cmd-help",isColorPure:!0}),(0,o.jsxs)("div",{className:"ai-help-content",children:[" \u667A\u80FD\u6307\u4EE4\u529F\u80FD\u6B63\u5904\u4E8EBeta\u6D4B\u8BD5\u9636\u6BB5\uFF0C \u8BE6\u7EC6\u4FE1\u606F\u8BF7\u53C2\u9605 ",(0,o.jsx)("span",{onClick:Ke,children:"\u5E2E\u52A9\u6587\u6863"}),(0,o.jsx)("div",{className:"bot-content"})]})]})]}),(0,o.jsxs)("div",{className:"title-right",children:[!ENV.IS_WONDER_SHARE&&(0,o.jsx)(xc.C,{className:"ai-beta",name:"chatGPT/ai-beta",isColorPure:!0}),(0,o.jsx)(xc.C,{className:"close",name:"chatGPT/ai-semantic-close",isColorPure:!0,onClick:G})]})]}),(0,o.jsx)(FN,{ref:m,semanticValue:A,generating:a,accountData:i,actions:c,onAISearch:ce,setSemanticValue:xe,setInputFocus:v})]}),(0,o.jsx)("div",{className:"semantic-gap"}),ve&&(0,o.jsx)(BN,{org:p,user:d,project:h,isInputFocus:x,onClickRecommend:Te,recommendPosition:n,recommendList:R}),(0,o.jsx)(Ls.A,{target:document,onMouseDown:(0,Ls.t)(Fe)})]})},zj=(0,l.memo)(Vj),Wj=(0,l.memo)(function(t){const{panelPosition:n,recommendPosition:a,updatePositionHandle:i,handleMouseDown:c}=PN();return(0,l.useEffect)(()=>(i(),window.addEventListener("resize",i),()=>{window.removeEventListener("resize",i)}),[i]),(0,o.jsx)(_N,{id:"ai-semantic-modal",style:{left:n.left,top:n.top},children:(0,o.jsx)(zj,{handleMovePanel:c,recommendPosition:a,...t})})}),Hj=e=>{const t=e(),{actions:{getCmdExec:n}}=t;return n&&Pm.getInstance(n()),(0,o.jsx)(Wj,{...t})},Gj=M.Ay.div.withConfig({displayName:"styles__StyledAIChatPanelContainer",componentId:"sc-i9zp7e-0"})([".single-resizer{border:0;z-index:111;.resizable-handler{&.t,&.b{width:100%;left:7px;cursor:ns-resize !important;}&.l,&.r{height:100%;top:7px;cursor:ew-resize !important;}}.square{display:none;}}.ai-mark-text{color:",";text-align:center;line-height:22px;margin-top:-12px;font-size:12px;}"],e=>e.theme.color_text_disabled01),Zj=(0,M.Ay)(iv).withConfig({displayName:"styles__StyledAIChatPanel",componentId:"sc-i9zp7e-1"})(["z-index:112;border-radius:10px;border:1px solid ",";background:",";"],e=>e.theme.color_bg_border_01,e=>e.theme.color_bg_white);var Kj=s(44007);const F5="AI_CHAT_PANEL_POSITION_TOP",V5="AI_CHAT_PANEL_POSITION_LEFT",Yv="AI_CHAT_PANEL_POSITION_WIDTH_new",Xv="AI_CHAT_PANEL_POSITION_HEIGHT_new",Yj=e=>{const{actions:{handleToggleAIChatPanel:t},commonData:n}=e,a=800,i=600,c=300,d=550,p=1200,h=800,m=78,x=328,[v,A]=(0,l.useState)(()=>(0,Zs.Yt)(Yv,a,Zs.qW.Number)),[k,R]=(0,l.useState)(()=>(0,Zs.Yt)(Xv,i,Zs.qW.Number)),[F,Z]=(0,l.useState)(()=>(0,Zs.Yt)(F5,m,Zs.qW.Number)),[G,ee]=(0,l.useState)(()=>(0,Zs.Yt)(V5,x,Zs.qW.Number)),[ce,se]=(0,l.useState)(window.innerWidth),[he,ve]=(0,l.useState)(window.innerHeight),Te=(0,l.useCallback)((et,Ke)=>{const Qe=Math.max(Math.min(Ke,he-550),0),nt=Math.max(Math.min(et,ce-300),0);Z(Qe),ee(nt),(0,Zs.a0)(F5,Qe,Zs.qW.Number),(0,Zs.a0)(V5,nt,Zs.qW.Number)},[he,ce]),xe=(0,l.useCallback)(()=>{se(window.innerWidth),ve(window.innerHeight),Te(G,F)},[Te,G,F]),Fe=(0,l.useCallback)(et=>{const{left:Ke,top:Qe,width:nt,height:Xe}=et;nt>c&&nt<p&&Ke<ce-300&&Ke>0&&(ee(Ke),A(nt),(0,Zs.a0)(V5,Ke,Zs.qW.Number),(0,Zs.a0)(Yv,nt,Zs.qW.Number)),Xe>d&&Xe<h&&Qe<he-550&&Qe>0&&(Z(Qe),R(Xe),(0,Zs.a0)(F5,Qe,Zs.qW.Number),(0,Zs.a0)(Xv,Xe,Zs.qW.Number))},[he,ce]);return(0,l.useEffect)(()=>(window.addEventListener("resize",xe),()=>{window.removeEventListener("resize",xe)}),[xe]),(0,o.jsxs)(Gj,{children:[(0,o.jsx)(Qa.A,{position:{left:G,top:F},dragContainer:"ai-chat-panel",onMove:Te,children:(0,o.jsxs)(Zj,{id:"ai-chat-panel",style:{width:v,height:k},children:[(0,o.jsx)(pv.A,{isAIChatPanel:!0,title:I18N.ChatGPT.ai_chat_dialogue,closeModal:t,...n}),(0,o.jsx)(Kj.A,{...e}),(0,o.jsx)("div",{className:"ai-mark-text",children:I18N.ChatGPT.ai_mark_text})]})}),(0,o.jsx)(ac.A,{classname:"resizer",top:F,left:G,width:v,height:k,zoomable:"n,s,e,w,se,sw,ne,nw",rotatable:!1,rotateAngle:0,onResize:Fe,cursorAngle:0})]})},Xj=(0,l.memo)(Yj),Qj=e=>{const t=e();return(0,o.jsx)(Xj,{...t})};var i2=s(88670),du=s(75150),If=s(71577),Qv=s(18833);const Th=e=>{(0,ed.kH)("version_record_operation",{operation_type:e})};var Jv=s(23767);const Tg=async e=>{let{projectCid:t,accessToken:n="",dispatch:a}=e;a({type:"versions:update",payload:{fetching:!0}});let i=[];i=await(0,If.c4)(t,n),a({type:"versions:set:versions",payload:{versions:i}}),a({type:"versions:update",payload:{fetched:!0,fetching:!1}})},qv=async e=>{let{projectCid:t,dispatch:n,noEdit:a=!1,title:i,desc:c,category:d="active",projectName:p,currentUserName:h,currentOrgCid:m}=e;await rootSdk.saveAsync(),i||(i=Ft()().format("YYYY.MM.DD HH:mm"));try{const{clientData:x,nextCheckpoint:v}=await(0,If.JL)({projectCid:t,title:i,desc:c||"",category:d});MB.versionNextCheckpoint=v,n({type:"versions:create",payload:{newVersion:x}}),MB.notice({text:I18N.VersionManagementPane.version_toast_create_success,type:"success"}),Th("\u6DFB\u52A0\u7248\u672C"),ENV.IS_ON_PREMISES&&(0,Jv.Bf)(Jv.xZ,{projectName:p,userName:h,orgCid:m})}catch(x){switch(x.errMsg){case"PV_CREATE_NOT_IN_ORG":MB.action("modal:update:state",{rightsAndInterestsModal:{isOpen:!0,type:Fr.hC.ProjectVersionFromCount}});break;case"P_NO_NEW_CHANGE":MB.notice({text:I18N.VersionManagementPane.version_toast_repeat,type:"warning"});break;case"PV_CREATE_COUNT_EXCEEDED":MB.action("modal:update:state",{rightsAndInterestsModal:{isOpen:!0,type:Fr.hC.ProjectVersionFromCount}});break;default:throw await(0,Qv.FY)(x),x}}finally{}},Jj=async e=>{let{projectCid:t,versionCid:n,newTitle:a,newDesc:i,dispatch:c,allVersions:d}=e,p;try{p=await(0,If.LD)({projectCid:t,versionCid:n,newTitle:a,newDesc:i})}catch(h){/404/.test(h.message)?(MB.notice({text:I18N.VersionManagementPane.version_toast_error_deleted,type:"warning"}),await Tg({projectCid:t,dispatch:c})):await(0,Qv.FY)(h);return}if(p&&p.result==="success"){const h=d.map(m=>m.cid===n?{...m,description:i,title:a,update_at:new Date().toLocaleString(void 0,{hour12:!1})}:m);c({type:"versions:set:versions",payload:{versions:h}}),Th("\u7F16\u8F91\u7248\u672C")}c({type:"versions:update",payload:{currentEditing:void 0}})},qj=async e=>{let{projectCid:t,versionCid:n,allVersions:a,currentViewing:i,dispatch:c}=e;if(i&&n===i.cid){const p=a.indexOf(a.find(m=>m.cid===n)),h=a[p+1];c(h?{type:"versions:update",payload:{currentViewing:{cid:h.cid,title:h.title}}}:{type:"versions:update",payload:{currentViewing:void 0}})}const d=await(0,If.CH)({projectCid:t,versionCid:n});if(d&&d.result==="success"){const p=a.filter(h=>h.cid!==n);c({type:"versions:set:versions",payload:{versions:p}}),c({type:"versions:model:deleting:close"}),MB.notice({text:I18N.VersionManagementPane.version_toast_delete_success}),Th("\u5220\u9664\u7248\u672C")}},$j=async e=>{await(0,If.QV)({versionCid:e,title:Ft()().format("YYYY.MM.DD HH:mm"),description:""}),window.history.replaceState(void 0,void 0,"#version=reset"),window.onbeforeunload=void 0,location.reload()},eD=async e=>{let{versionCid:t,title:n,dispatch:a}=e;const i=window.cssCur.getRoomStat();!(i!=null&&i.length)||i.length===1?a({type:"versions:model:resetting:open",payload:{currentResetting:{cid:t,title:n},currentCollaborators:{collaborators:[],checked:!0}}}):a({type:"versions:model:resetting:open",payload:{currentResetting:{cid:t,title:n},currentCollaborators:{collaborators:i,checked:!1}}})};var $v=s(94456);const tD=(e,t)=>{const n=Qr();!MB.global.experienceLoginModalHelper("isSave")&&n&&n({type:"entry:start:saving"})},nD=(e,t)=>{const n=Qr();n&&n({type:"modal:update:state",payload:{projectSummaryModal:{isOpen:!0}}})},oD=(e,t)=>{const n=Qr();n&&n({type:"entry:toolbar:open:versionControl:modal"})},aD=(e,t)=>{const n=Qr();if(!n)return;const a=(0,kl.dP)();if(!a)return;const{isEditingProjectMain:i}=(0,Me.r)(a);i&&(MB.global.experienceLoginModalHelper("isSave")||(n({type:"toolbar:sharingManager:toggle"}),n({type:"entry:update:novice:guide:and:task",payload:{guideType:Va.c.GUIDE_NOVICE_2309_STEP_5,taskType:Va.c.GUIDE_NOVICE_2309_TASK_5}})))},rD=(e,t)=>{if(!t||!t.file_name){MB.notice({text:I18N.ToolBar.empty_project_name,type:"warning"});return}const n=Qr();if(!n)return;const{file_name:a}=t;n({type:"entry:update:root-project:name",payload:{name:a}})},iD=(e,t)=>{const n=Qr();if(!n)return;const a=(0,kl.dP)();if(!a)return;const i=(0,me.PL)(a),c=(0,me.HW)(a),d=(0,me.wA)(a);if(n&&n({type:"entry:toolbar:open:versionControl:modal"}),!d)return;const{cid:p,name:h}=i||{};qv({projectCid:p,projectName:h,currentUserName:c.name,currentOrgCid:d.cid,dispatch:n})},sD=(e,t)=>{$v.w[(0,$v.y)()]()(a=>{let{sRGBHex:i}=a;return MB.action("entry:i:key",{color:i})})},lD=()=>{const e=sc.getInstance();e.register("Save",tD),e.register("ViewFileInfo",nD),e.register("ViewVersionRecord",oD),e.register("ToggleViewShare",aD),e.register("ProjectRename",rD),e.register("CreateNewVersion",iD),e.register("OpenColorPicker",sD)},cD=(e,t)=>{const n=Qr();n&&n({type:"entry:design:zoom:in"})},dD=(e,t)=>{const n=Qr();n&&n({type:"entry:design:zoom:out"})},pD=(e,t)=>{const n=Qr();n&&n({type:"entry:set:scale",payload:{scale:100}})},uD=(e,t)=>{const n=Qr();n&&n({type:"entry:design:zoom:selection"})},hD=(e,t)=>{const n=Qr();n&&n({type:"entry:zoom:fit:scale:offset"})},mD=(e,t)=>{const n=Qr();n&&n({type:"entry:toolbar:toggle:fullScreen"})},fD=()=>{const e=sc.getInstance();e.register("ZoomIn",cD),e.register("ZoomOut",dD),e.register("ZoomToHundred",pD),e.register("ZoomSelection",uD),e.register("FitCanvas",hD),e.register("FullScreenMode",mD)},gD=(e,t)=>{const n=Qr();n&&n({type:"preference:toggle:theme"})},yD=(e,t)=>{const n=Qr();n&&n({type:"preference:toggle:ruler"})},xD=(e,t)=>{const n=Qr();n&&n({type:"preference:toggle:showRulerReferLine"})},vD=(e,t)=>{const n=Qr();n&&n({type:"entry:isShowSticky:toggle"})},bD=(e,t)=>{const n=Qr();n&&n({type:"comment:toggle:isShowCommentInCanvas"})},wD=(e,t)=>{const n=Qr();n&&n({type:"preference:toggle:multiplayerMouse"})},CD=(e,t)=>{const n=Qr();n&&n({type:"preference:toggle:AlignLine"})},SD=(e,t)=>{const n=Qr();n&&n({type:"entry:toggle:left-nav-panel"})},AD=(e,t)=>{const n=Qr();n&&n({type:"entry:toggle:right-panel"})},kD=()=>{const e=sc.getInstance();e.register("ToggleTheme",gD),e.register("ToggleRuler",yD),e.register("ToggleReferenceLine",xD),e.register("ToggleSticky",vD),e.register("ToggleComment",bD),e.register("ToggleMultiplayerMouse",wD),e.register("ToggleAlignLine",CD),e.register("ToggleLeftSide",SD),e.register("ToggleRightSide",AD)};var _f=s(19199),e7=s(30275);const MD=async(e,t)=>{const n=Qr();if(!n)return;const a=Number(t==null?void 0:t.undo_steps)||1;for(let i=0;i<a;i++)await n({type:"entry:undo-stack:undo"}),await new Promise(c=>setTimeout(c,3))},ED=async(e,t)=>{const n=Qr();if(!n)return;const a=Number(t==null?void 0:t.redo_steps)||1;for(let i=0;i<a;i++)await n({type:"entry:undo-stack:redo"}),await new Promise(c=>setTimeout(c,3))},t7={png:"png",pdf:"pdf",htmlzip:"htmlzip",apk:"apk"},ID=(e,t)=>{const n=Qr();if(MB.global.experienceLoginModalHelper("isSave")||!n)return;const{export_type:a}=t||{};t7[a]&&n({type:"export:update:state",payload:{currentExportTag:t7[a]}}),n({type:"entry:toolbar:open:export_menu"})},_D=(e,t)=>{const n=Qr();n&&n({type:"entry:select:all"})},TD=(e,t)=>{const n=Qr();n&&n({type:"entry:findReplacePanel:toggle:show"})},PD=async(e,t)=>{const n=Qr(),a=(0,kl.dP)();if(n&&!t&&!a)return;const{selectScreenValue:i}=(0,k5.Gh)(a),{search_keyword:c}=t||{};await n({type:"entry:findReplacePanel:toggle:show"}),c&&await n({type:"findReplacePanel:update",payload:{searchValue:c}}),c&&n({type:"entry:findReplacePanel:search",payload:{isCurrentScreen:i==="current",searchValue:c}})},LD=async(e,t)=>{const n=Qr(),a=(0,kl.dP)();if(n&&!t&&!a)return;const{source_text:i,target_text:c}=t||{},d={isFold:!1};i&&(d.searchValue=i),c&&(d.replaceValue=c),await n({type:"entry:findReplacePanel:toggle:show"}),await n({type:"findReplacePanel:update",payload:d}),i&&n({type:"entry:findReplacePanel:search",payload:{isCurrentScreen:!1,searchValue:i}})},ND=(e,t)=>{const n=Qr();n&&n({type:"entry:open:Launch"})},jD=(e,t)=>{const n=Qr();if(!n)return;const a=(0,kl.dP)(),i=(0,tt.p$)(a),c=(0,bt.kE)(i),d=(0,bt.MP)(i);if(!i.length){MB.notice({text:"\u8BF7\u5148\u9009\u62E9\u5408\u9002\u7684\u5BF9\u8C61",type:"warning"});return}if(d||MB.notice({text:"\u8BF7\u5148\u9009\u62E9\u5408\u9002\u7684\u5BF9\u8C61",type:"warning"}),!c){MB.notice({text:"\u8BF7\u5148\u9009\u62E9\u5408\u9002\u7684\u5BF9\u8C61",type:"warning"});return}n({type:"entry:group:items"})},DD=(e,t)=>{const n=Qr(),a=(0,kl.dP)(),i=(0,tt.p$)(a);if(!(0,bt.P6)(i)){MB.notice({text:"\u8BF7\u5148\u9009\u62E9\u5408\u9002\u7684\u5BF9\u8C61",type:"warning"});return}n({type:"entry:ungroup:items"})},RD=(e,t)=>{const n=Qr(),a=(0,kl.dP)();if(!n||!a)return;const{target_space:i}=t||{},c=i==="org",d=!(0,me.wA)(a),p=(0,tt.nE)(a),{isEditingUserCombo:h,isEditingOrgCombo:m}=(0,Me.r)(a)||{};if(d&&i==="org"){MB.notice({text:"\u4E2A\u4EBA\u7A7A\u95F4\u4E2D\u65E0\u6CD5\u6DFB\u52A0\u7EC4\u4EF6\u81F3\u56E2\u961F",type:"warning"});return}if(!((0,bt.ju)(p)&&(!h||!d&&!m))){MB.notice({text:"\u8BF7\u5148\u9009\u62E9\u5408\u9002\u7684\u5BF9\u8C61",type:"warning"});return}MB.global.experienceLoginModalHelper("isSave")||n({type:"entry:create:combo:to:user:org:group",payload:{targetType:c?"org":"user",callback:()=>{(0,Ot.O3)({operation_from:"AI3.0",operation_type:c?Ot.VW.AddToOrgCombo:Ot.VW.AddToMyCombo})}}})},BD=(e,t)=>{const n=Qr(),a=(0,kl.dP)();if(!n||!a)return;const i=(0,tt.nE)(a),c=(0,Se.j)(a),{isEditingBasket:d,isEditingMuban:p,isEditingProjectMain:h}=(0,Me.r)(a)||{},m=c||!((h||d||p)&&(0,bt.jp)(i));if(MB.global.experienceLoginModalHelper("isSave")||m){MB.notice({text:"\u8BF7\u5148\u9009\u62E9\u5408\u9002\u7684\u5BF9\u8C61",type:"warning"});return}const x=i[0].hotAttr.name||(0,jt.KD)(i[0].key);n({type:"modal:update:state",payload:{masterCreateModal:{isOpen:!0,name:x,onConfirm:async v=>{let{name:A,onSuccess:k}=v;await n({type:"entry:create:basket",payload:{basketType:"bMuban",attr:{name:A},onSuccess:k}}),n({type:"muban-panel:update:mubanList",payload:{mubanList:dR()}})}}}})},UD=async(e,t)=>{const n=Qr(),a=(0,kl.dP)();if(!n||!a)return;const i=(0,tt.nE)(a),c=(0,Se.j)(a),d=(0,bt.jp)(i);if(MB.global.experienceLoginModalHelper("isSave")||c||!d){MB.notice({text:"\u8BF7\u5148\u9009\u62E9\u5408\u9002\u7684\u5BF9\u8C61",type:"warning"});return}await n({type:"entry:create:basket",payload:{basketType:"bDanli"}}),n({type:"entry:screenContainer:enter:editing:widget"})},OD=(e,t)=>{const n=Qr();if(n){if((0,_f.J7)()){MB.notice({text:"\u8BF7\u5148\u9009\u62E9\u5408\u9002\u7684\u5BF9\u8C61",type:"warning"});return}n({type:"entry:cut:items"}),(0,It.P8)()}},FD=(e,t)=>{const n=Qr();if(n){if((0,_f.J7)()){MB.notice({text:"\u8BF7\u5148\u9009\u62E9\u5408\u9002\u7684\u5BF9\u8C61",type:"warning"});return}n({type:"entry:copy:items"}),n({type:"entry:copy:items:properties"}),(0,It.P8)()}},VD=(e,t)=>{const n=Qr();if(!n||MB.f.editing){MB.notice({text:"\u8BF7\u5148\u9009\u62E9\u5408\u9002\u7684\u5BF9\u8C61",type:"warning"});return}n({type:"entry:paste:items:into:current-page",payload:{triggerType:"shortcut"}})},zD=(e,t)=>{const n=Qr();if(!n){MB.notice({text:"\u8BF7\u5148\u9009\u62E9\u5408\u9002\u7684\u5BF9\u8C61",type:"warning"});return}n({type:"entry:paste:items:properties"})},WD=(e,t)=>{const n=Qr();n&&n({type:"preference:toggle:panelLinkDefaultTransition"})},HD=(e,t)=>{const n=Qr();n&&n({type:"preference:toggle:stateLinkDefaultTransition"})},GD=(e,t)=>{const n=Qr(),a=(0,kl.dP)();if(!n||!a||!t)return;const{"link-type":i}=t;let c=1;i==="none"&&(c=0),i==="lightning_line"&&(c=2),n({type:"entry:update:preference",payload:{link_display:c}})},ZD=(e,t)=>{const n=Qr();n&&n({type:"preference:toggle:containSelect"})},KD=(e,t)=>{const n=Qr();if(!n||!(0,yd.uF)()||!(0,yd.b8)()){MB.notice({text:"\u5F53\u524D\u5E73\u53F0\u6682\u4E0D\u652F\u6301",type:"warning"});return}n({type:"preference:toggle:useNativeEyedropper"})},YD=(e,t)=>{const n=Qr();n&&n({type:"preference:toggle:dragMode"})},XD=(e,t)=>{const n=Qr();n&&n({type:"entry:toolbar:toggle:handTool"})},QD={left:"left","horizontal-center":"center",right:"right",top:"top","vertical-center":"middle",bottom:"bottom","distribute-horizontal":"horizontal","distribute-vertical":"vertical"},s2=(e,t)=>{const n=Qr(),a=(0,kl.dP)(),{"align-type":i}=t||{},c=QD[i];if(!n||!a||!t||!c)return;const d=zn.X.query.getIsShallowEditing(a),p=(0,tt.p$)(a),h=(0,q.lY)(a);let m=!1,x=!1;if(p.length>0&&(m=(0,bt.GS)(p)&&!h&&!d,x=(0,bt.oR)(p)&&!d),!m&&!x){MB.notice({text:"\u8BF7\u5148\u9009\u62E9\u5408\u9002\u7684\u5BF9\u8C61",type:"warning"});return}n(c==="horizontal"||c==="vertical"?{type:"entry:distribute:items",payload:{direction:c}}:{type:"entry:align:items",payload:{direction:c}})},JD=(e,t)=>{s2("Alignment",{"align-type":"top"})},qD=(e,t)=>{s2("Alignment",{"align-type":"vertical-center"})},$D=(e,t)=>{s2("Alignment",{"align-type":"bottom"})},eR=(e,t)=>{s2("Alignment",{"align-type":"left"})},tR=(e,t)=>{s2("Alignment",{"align-type":"horizontal-center"})},nR=(e,t)=>{s2("Alignment",{"align-type":"right"})},oR=(e,t)=>{s2("Alignment",{"align-type":"distribute-horizontal"})},aR=(e,t)=>{s2("Alignment",{"align-type":"distribute-vertical"})},rR=[Dl.lS.Builtin,Dl.lS.Icon,Dl.lS.Asset,Dl.lS.Page],n7={component:Dl.lS.Builtin,icon:Dl.lS.Icon,picture:Dl.lS.Asset,page:Dl.lS.Page},iR=async(e,t)=>{const n=Qr(),a=(0,kl.dP)();if(!n||!a)return;const{search_res_type:i,search_res_keyword:c}=t||{search_res_type:"page"},d=n7[i];if(!rR.includes(d)||((0,rt.OW)(a)!==n7[i]&&n({type:"entry:active:popup:panel",payload:{name:d}}),!c))return;n({type:"searchPanel:update:state",payload:{keyword:c}});const h=Dl.Mf[d],m=(0,dl.pM)(a),x=[c].concat(m.filter(v=>v!==c)).splice(0,m);n({type:"searchPanel:update:state",payload:{historyKeyWords:x}}),n({type:"entry:search-panel:search:from:keyword",payload:{from:e7.Z.sideBarPanel,category:h,isHistoryWord:!1,isHotKeyWord:!1}})},sR=(e,t)=>{const n=Qr();n&&(n({type:"entry:delete:selected-items"}),n({type:"enter:comment:shortcut:del"}))},lR=(e,t)=>{(0,rl.JW)("https://modao.cc/hc/articles/407","_blank","noreferrer")},cR=()=>{const e=sc.getInstance();e.register("Undo",MD),e.register("Redo",ED),e.register("ToggleExport",ID),e.register("ComSelectAll",_D),e.register("GlobalFindAndReplace",TD),e.register("GlobalFind",PD),e.register("GlobalReplace",LD),e.register("Preview",ND),e.register("Group",jD),e.register("UnGroup",DD),e.register("AddComponent",RD),e.register("Delete",sR),e.register("Cut",OD),e.register("Copy",FD),e.register("Past",VD),e.register("PastProperties",zD),e.register("CreateMaster",BD),e.register("CreatePanel",UD),e.register("TogglePanelTransState",WD),e.register("TogglePageTransState",HD),e.register("LinkDisplayChange",GD),e.register("ToggleSelectMode",ZD),e.register("ToggleEyedropper",KD),e.register("ToggleDynamicSpacing",YD),e.register("ToggleHandTool",XD),e.register("Alignment",s2),e.register("AlignmentTop",JD),e.register("AlignmentMiddle",qD),e.register("AlignmentBottom",$D),e.register("AlignmentLeft",eR),e.register("AlignmentCenter",tR),e.register("AlignmentRight",nR),e.register("AlignmentHorizontal",oR),e.register("AlignmentVertical",aR),e.register("SearchMktSource",iR),e.register("AI3Help",lR)};function dR(){throw new Error("Function not implemented.")}var pR=s(95358);const uR=(e,t)=>{const n=Qr();n&&n({type:"toggle:showShortCutArtBoard",payload:{helpCenterModal:{index:1}}})},hR=(e,t)=>{const n=Qr();ENV.IS_MO?(0,rl.JW)("https://mockitt.wondershare.com/guide/","_blank","noreferrer"):n&&n({type:"modal:update:state",payload:{helpCenterModal:{isOpen:!0,productName:"a10_proto_tool_v8"}}})},mR=(e,t)=>{const n="",a={nickname:MB.user.name,avatar:MB.user.avatar,openid:MB.user.cid};(0,pR.v)({data:a,params:n})},fR=(e,t)=>{const n=document.getElementById("mdOnlineSupport");n==null||n.onclick()},gR=(e,t)=>{const n=Qr();ENV.IS_MO?(0,rl.JW)("https://mockitt.wondershare.com/guide/","_blank","noreferrer"):n&&n({type:"modal:update:state",payload:{helpCenterModal:{isOpen:!0,productName:"a10_proto_tool_v8",frontPageId:"397"}}})},yR=()=>{const e=sc.getInstance();e.register("ToggleShortcutKey",uR),e.register("OpenHelperCenter",hR),e.register("Feedback",mR),e.register("OnlineSupport",fR),e.register("NewFeature",gR)};var z5=s(65209),fp=s(63763);const o7=e=>!e||e==="none"?{italic:!1,bold:!1,underline:!1,strikethrough:!1}:{italic:e==="italic",bold:e==="bold",underline:e==="underline",strikethrough:e==="strikethrough"},ys=e=>{try{return Si(e)}catch(t){return null}},aie=(e,t,n)=>{try{if(!t&&!t&&!n)return null;const a=Lm(t||"solid");return{bdrColor:fromHexColor(e),bdrIsVisible:!0,bdrStyle:a,bdrWidth:Number(n)||1}}catch(a){return null}},Lm=e=>{let t="solid";return e==="dash"?t="dashed":e==="dot"&&(t="dotted"),t},a7=e=>{const t=""+e,n=t.replace(/[^\d.-]/g,"");let a=parseFloat(n);return(t.includes("%")||a>1)&&(a/=100),a},W5=e=>{const{width:t,height:n}=e||{},a={};return Number(t)&&(a.w=Number(t)),Number(n)&&(a.h=Number(n)),a},r7=(e,t)=>{const{"font-color":n,"font-size":a,"font-family":i,"font-format":c,"text-align":d}=e||{},p=[Zt.x.WButton,Zt.x.WIphoneXSB,Zt.x.WMTextInput,Zt.x.WMTextArea,Zt.x.WMSelect,Zt.x.WElbow,Zt.x.WDropMenu],h=n?p.includes(t)?Si(n):n:void 0,m={},x=Number(a);if(h&&(m.textColor=h),x&&(m.fontSize=x),i&&(m.fontFamily=i),x){const v=Mg()(x*1.399+.251);m.lineHeight=v}return d&&(m.horizontalAlign=d),{...m,...o7(c)}},xR=e=>{const{"text-content":t}=e||{};return km(t||"")},vR=e=>{const{"stroke-color":t,"stroke-type":n,"stroke-weight":a}=e||{},i={};return t&&(i.bdrColor=Si(t)),n&&(i.bdrStyle=Lm(n||"solid")),a&&(i.bdrWidth=Number(a)),i},H5=e=>{const{"fill-color":t,radius:n,opacity:a}=e||{},i={};a!==void 0&&(i.opacity=a7(a)),Number(n)&&(i.borderRadius=Number(n));const c=ys(t);return c&&(i.fill={fillIsVisible:!0,fill:"solid",solidColor:c}),i},bR=(e,t)=>{try{const{textV1:n}=e||{},{blocks:a}=n||{};if(!n||!a)return null;const{"font-color":i,"font-size":c,"font-family":d,"font-format":p}=t||{},{italic:h,bold:m,underline:x,strikethrough:v}=o7(p);return a&&Object.values(a).forEach(A=>{const{type:k}=A;let R=A.inlineStyleRanges;k!=="atomic"&&R&&(i&&(R=R.filter(F=>!F.style.startsWith("color-"))),c&&(R=R.filter(F=>!F.style.startsWith("fontsize-")&&!F.style.startsWith("lineheight-"))),h&&(R=R.filter(F=>F.style!=="ITALIC")),x&&(R=R.filter(F=>F.style!=="UNDERLINE")),m&&(R=R.filter(F=>F.style!=="BOLD")),v&&(R=R.filter(F=>F.style!=="STRIKETHROUGH")),d&&(R=R.filter(F=>!F.style.startsWith("fontfamily-")))),A.inlineStyleRanges=R}),JSON.parse(JSON.stringify(a))}catch(n){return null}},Pg=function(e,t){var n;if(t===void 0&&(t=!0),!e||!e.length)return;const a=(0,kl.dP)();let i=0,c=0;const d=e.reduce((h,m)=>h+m.hotAttr.w,0);if(a){const h=(0,me.X_)(a),m=(0,me.$S)(a),x=(0,me.ER)(a),v={scale:h/100,size:{w:m.width,h:m.height},offset:x},{x:A,y:k}=(0,C1.Dl)(v,m.left);c=k,i=A-d/2}if(e.forEach(h=>{const{hotAttr:{w:m,h:x}}=h;h.hotAttr.x=i+m/2+50,i=h.hotAttr.x+m/2,h.hotAttr.y=c-x/2}),!t)return;const p=e.map(h=>h.key);sdkStore.updateHotItemBatch(e),MB.action("entry:select:items",{cids:p}),(n=MB)==null||n.action("entry:design:zoom:selection")};var i7=s(65057),s7=s(8452);const rie=e=>{let{prefix:t="",hotAttr:n,sup:a,sub:i=[]}=e;return{key:createKey(t),hotAttr:n,sup:a,sub:i}},pu=e=>{const t=[$.x.WSelectionControlRadio,$.x.WSelectionControlCheckbox].includes(e)?$.x.WSelectionControl:e;try{let{selectedItems:a}=(0,du.Ub)();if(a=a.map(S5.Dx).flat(),du.Ub.length===0){var n;const i=(0,kl.dP)(),c=(n=(0,me.Ur)(i))==null?void 0:n.cid;return c&&(a=sdkStore.findAllTypeUnder(c,t).filter(d=>!(0,ei.OO)(d.key))),a.map(d=>L1()(d))}else{const i=new Map;return a.forEach(c=>{sdkStore.walkHotItemSubtree(c.key,d=>{!(0,ei.OO)(d.key)&&d.hotAttr.type===t&&i.set(d.key,d)})}),Array.from(i.values()).map(c=>L1()(c))}}catch(a){return console.error("getCurrentSelectWidgets error: ",a),[]}},G5=()=>{try{let{selectedItems:t}=(0,du.Ub)();if(t=t.map(S5.Dx).flat(),t.length===0){var e;const n=(0,kl.dP)(),a=(e=(0,me.Ur)(n))==null?void 0:e.cid,i=[];return(0,Jd.of)(flatStore.getFlatTree(),a,c=>{i.push(sdkStore.getHotItem(c.key))}),i.filter(c=>!(0,ei.OO)(c.key)&&c.hotAttr.bunch!==$.x.RbPage&&c.hotAttr.type!==$.x.WWrap).map(c=>L1()(c))}else{const n=new Map;return t.forEach(a=>{sdkStore.walkHotItemSubtree(a.key,i=>{!(0,ei.OO)(i.key)&&i.hotAttr.type!==$.x.WWrap&&n.set(i.key,i)})}),Array.from(n.values()).map(a=>L1()(a))}}catch(t){return console.error("getCurrentSelectWidgets error: ",t),[]}},l7={hidden:"1",vertical:"3",horizontal:"4",autofit:"2"},Z5=(e,t)=>{const n=(0,kl.dP)(),a=Qr();try{var i;sdkStore.combineMergeMark("V8CmdCreateWBasket-insert-widget");const{sceData:p}=(0,sv.yj)(),h=p[e],{data:m,meta:{type:x}}=h;if(!(0,Ii._c)({type:x})||!n||!a)return;const{count:v,"scroll-bar-type":A}=t||{},k=((i=(0,me.Ur)(n))==null?void 0:i.cid)||"",R=(0,me.X_)(n),F=(0,me.$S)(n),Z=(0,me.ER)(n),G=(0,tt.p$)(n),ee={scale:R/100,size:{w:F.width,h:F.height},offset:Z},ce=(0,C1.Dl)(ee,F.left),se=(0,i7.nS)({isTear:x==="wTear",world:ce,scale:R,newSelection:G,currentPageKey:k,isCtrlDown:!1})||"";let he=[];for(let Te=0;Te<(Number(v)||1);Te++){var c;let xe=(0,C1.dk)(G,sdkStore)||"";if(((c=sdkStore.getHotItem(xe))==null?void 0:c.hotAttr.type)!=="wWrap"){var d;xe=((d=sdkStore.getHotItem(se))==null?void 0:d.hotAttr.type)==="rResCanvas"?se:k}const Fe=sdkStore.loadSubtree(m,xe,ce.x,ce.y);he=he.concat(Fe),(0,C1.OV)(he,xe),(0,or.Yx)(he,xe,sdkStore)}const ve=he.map(Te=>sdkStore.getHotItem(Te));ve.forEach(Te=>{if(!Te)return;const xe=W5(t),Fe=H5(t);Te.hotAttr={...Te.hotAttr,...xe,...Fe},A&&l7[A]&&(Te.hotAttr.scroll=l7[A])}),Pg(ve),ve&&ve.length&&sdkStore.updateHotItemBatch(ve),a({type:"reducer:flag:set:is-dragging-item",payload:{isDraggingItem:!1}}),a({type:"ST:update",payload:{isLeftDown:!0}}),a({type:"set:alignment",payload:{alignment:{}}}),a({type:"set:sameSize",payload:{sameSize:{}}}),a({type:"set:distributed",payload:{distributed:{}}}),a({type:"elbow:update",payload:{isDraggingElbow:!1}}),a({type:"entry:refresh:link-list"}),a({type:"entry:select:items",payload:{cids:he}}),a({type:"entry:expend:groupOrCanvasOrBasket",payload:{cids:he}}),a({type:"entry:publish:create:items:success",payload:{newKeys:he}})}catch(p){console.error("V8CmdRegExecCWBasket: error:",p)}finally{sdkStore.combineMerge("V8CmdCreateWBasket-insert-widget")}},wR=e=>{const t=Qr();if(!t)return;const n=(0,kl.dP)(),a=(0,me.Ur)(n),i=(0,$a.F6)((0,me.wq)(n)),c=e,d=(0,fp.gu)({type:c,screen:a,attrs:{width:0,height:0}});if(i&&c===i){t({type:"set:quick-create-widget",payload:{widget:null}});return}t({type:"set:quick-create-widget",payload:{widget:d,quickCreateWidgetFrom:qd.Hq.ToolBar}}),c===$.x.WElbow?t({type:"elbow:update",payload:{isDraggingElbow:!0}}):c===$.x.WVector&&(t({type:"update:screenContainer:state",payload:{addVectorSource:s7.dZ.Toolbar}}),MB.commonGuideHelper.checkGuideToBeShown(Va.c.GUIDE_VECTOR_TASK_ENDING_EDITING)&&(MB.commonGuideHelper.markGuideAsRead(Va.c.GUIDE_VECTOR_TASK_ENDING_EDITING),MB.commonGuideHelper.closeGuide(Va.c.GUIDE_VECTOR_TASK_ENDING_EDITING)),MB.commonGuideHelper.tryToShowGuide(Va.c.GUIDE_VECTOR_TASK_QUICK_CREATE)),t(Le.GO.toggleHandMode(!1)),t({type:"elbow:clear"}),t({type:"entry:comment:disabled",payload:{noWigglingCommentCid:!0}}),$.Q.ST_MODE_WIDGET_NAMES.includes(c)?(t({type:"entry:ST:STMode:enable"}),t({type:"toolbar:update:state",payload:{isShowSticky:!0}})):t({type:"entry:ST:STMode:disable"})},K5={text:$.x.WRichText,rectangle:$.x.WRect,circle:$.x.WOval,page:$.x.Canvas,line:$.x.WLine,button:$.x.WButton,arrow:$.x.WArrow,polygon:$.x.WPolygon,star:$.x.WStar,triangle:$.x.WTriangle,carousel:$.x.WCarousel,web_page_component:$.x.WWebpage,video_component:$.x.WVideo,audio_component:$.x.WAudio,qr_code:$.x.WQRCode,map_component:$.x.WMapView,chat_bubble:$.x.WMTooltip,link_area:$.x.WLR,placeholders:$.x.WPlaceholder,comments:$.x.WSticky,bullet_comments:$.x.WTear,tables:$.x.WTable,charts:$.x.WChart,icons:$.x.WIcon,status_bars:$.x.WIphoneXSB,"multi-line_input_components":$.x.WMTextArea,"single-line_input_components":$.x.WMTextInput,"drop-down_selectors":$.x.WMSelect,file_selection_components:$.x.WMFileInput,radio_selection_components:$.x.WSelectionControlRadio,check_components:$.x.WSelectionControlCheckbox,sliders:$.x.WSlider,numbers_stepper:$.x.WDigitalStepper,navigation_menu:$.x.WNavigationMenu,vertical_menu:$.x.WNavigationMenuV,horizontal_menu:$.x.WNavigationMenuH,navigation_bar:$.x.WMobileTabBars,segmenter:$.x.WSegmentedControl,accordion:$.x.WCollapse,tab:$.x.WTabs,paginator:$.x.WPaginationMobile,image:$.x.WImage,connection_line:$.x.WElbow,pen:$.x.WVector},iie=e=>e>1?e/100:e,CR={left:"left",right:"right",top:"top",down:"bottom"},SR=()=>{const e=sc.getInstance();e.register("C-"+Zt.x.WCarousel,Es),e.register("C-"+Zt.x.WWebpage,Es),e.register("C-"+Zt.x.WVideo,Es),e.register("C-"+Zt.x.WAudio,Es),e.register("C-"+Zt.x.WQRCode,Es),e.register("C-"+Zt.x.WMapView,Es),e.register("C-"+Zt.x.WMTooltip,Es)},Lg={"column-chart":{type:"horizontal_bar_chart",i18Key:"horizontal_bar_chart"},"bar-chart":{type:"bar_chart",i18Key:"bar_chart"},"line-chart":{type:"line_chart",i18Key:"line_chart"},"area-chart":{type:"line_area_chart",i18Key:"line_area_chart"},"combo-chart":{type:"mixed_bar_line_chart",i18Key:"mixed_bar_line_chart"},"pie-chart":{type:"pie_chart",i18Key:"pie_chart"},"radar-chart":{type:"radar_chart",i18Key:"radar_chart"},"donut-chart":{type:"ring_chart",i18Key:"ring_chart"}},Nm={classic:0,retro:1,fresh:2,cold:3,warm:4,gray:5},AR=(e,t)=>{const{count:n,"chart-type":a,"grid-line-color":i,"grid-line-type":c,"color-theme":d}=t||{},p=[],h=MB.getCurrentScreen(),m=h==null?void 0:h.cid;let x=(0,z5._)(m);for(let k=0;k<(Number(n)||1);k++){var v,A;let R=(0,fp.iD)({type:Zt.x.WBarChart,screen:h,attrs:{name:I18N.w[((v=Lg[a])==null?void 0:v.i18Key)||"bar_chart"]}});a&&(R.chartConfig.chartType=((A=Lg[a])==null?void 0:A.type)||"bar_chart"),d&&Nm[d]&&(R.chartConfig.chartTheme=Nm[d]),c&&(R.chartConfig.grid.bdrStyle=Lm(c)),i&&(R.chartConfig.grid.bdrColor=Si(i)),x++,R.zIndex=x;const F=W5(t),Z=H5(t);R={...R,...F,...Z};const G=Xr({hotAttr:R,sup:m});p.push(G)}Pg(p)},kR=()=>{sc.getInstance().register("CreateChart",AR)};var Ng=s(89002),Bn=function(e){return e.sizeAttr="sizeAttr",e.textAttrRichTextV1="textAttrRichTextV1",e.textAttrRichTextV0="textAttrRichTextV0",e.exteriorAttr="exteriorAttr",e.borderAttr="borderAttr",e.textV1BlockAttr="textV1BlockAttr",e.arrowAttrs="arrowAttrs",e.textAutoSize="textAutoSize",e.tableAttr="tableAttr",e.stickyAttr="stickyAttr",e.selectionControlColors="selectionControlColors",e.sliderAttrs="sliderAttrs",e.digitalStepperAttrs="digitalStepperAttrs",e.carouselAttrs="carouselAttrs",e.webpageUrlAttrs="webpageUrlAttrs",e.videoAttrs="videoAttrs",e.audioAttrs="audioAttrs",e.qrCodeAttrs="qrCodeAttrs",e.tooltipAttrs="tooltipAttrs",e.tabBarAttrs="tabBarAttrs",e.segmentedControlAttrs="segmentedControlAttrs",e.collapseAttrs="collapseAttrs",e.tabAttrs="tabAttrs",e.pageMobile="pageMobile",e.pageWeb="pageWeb",e.polygonAttrs="polygonAttrs",e.starAttrs="starAttrs",e.editNewBlocks="editNewBlocks",e.editTableAttrs="editTableAttrs",e.editChartAttrs="editChartAttrs",e.editElbowAttrs="editElbowAttrs",e}(Bn||{});const c7=()=>({[Bn.sizeAttr]:(e,t)=>{const n=W5(e);t.type===$.x.WArrow&&delete n.h,t.type===$.x.WLine&&(n.h=1),Object.assign(t,n)},[Bn.textAttrRichTextV1]:(e,t)=>{const n=r7(e,t.type);t.richTextV1=Object.assign(t.richTextV1,n)},[Bn.textAttrRichTextV0]:(e,t)=>{const n=r7(e,t.type),{"text-content":a}=e||{};t.textV0=Object.assign(t.textV0,n),a&&(t.textV0.text=a)},[Bn.exteriorAttr]:(e,t)=>{const n=H5(e);Object.assign(t,n)},[Bn.borderAttr]:(e,t)=>{let n=vR(e);t.type===$.x.WImage&&(n={...n,bdrIsVisible:!0}),t.border={...t.border,...n}},[Bn.textV1BlockAttr]:(e,t)=>{t.textV1.blocks=xR(e)},[Bn.textAutoSize]:(e,t)=>{const{width:n,height:a,"text-content":i}=e||{};(!n||!a)&&i&&(0,lm.PQ)(t)},[Bn.arrowAttrs]:(e,t)=>{const{"arrow-color":n}=e||{};ys(n)&&(t.arrow.arrowStroke.bdrColor=ys(n))},[Bn.tableAttr]:(e,t)=>{const{row:n,column:a,"border-color":i,"horizontal-line-color":c,"vertical-line-color":d}=e||{};Number(n)&&(t.tableConfig.rowCount=Number(n)),Number(a)&&(t.tableConfig.colCount=Number(a));const p=t.tableConfig.rowCount,h=t.tableConfig.colCount,m={columns:Array(Number(h)).fill({type:"text",width:t.w/h}),rows:Array(p).fill({height:t.h/p}),cellStyles:Array(p).fill(Array(h).fill("")),mergeCells:{},data:Array(p).fill(Array(h).fill("")),links:Array(p).fill(Array(h).fill(""))};t.tableData=m,t.tableConfig={...t.tableConfig,...(0,kg.U3)({height:t.h,width:t.w,columns:m.columns,rows:m.rows})},ys(i)&&(t.tableConfig.outerBorder.bdrColor=ys(i)),ys(c)&&(t.tableConfig.innerBorderH.bdrColor=ys(c)),ys(d)&&(t.tableConfig.innerBorderV.bdrColor=ys(d))},[Bn.stickyAttr]:(e,t)=>{const{"note-content":n}=e||{};n&&(t.textV1.blocks=km(n||""))},[Bn.selectionControlColors]:(e,t)=>{const{"default-option-button-color":n,"default-option-text-color":a,"active-option-button-color":i,"active-option-text-color":c,"font-size":d}=e||{};if(ys(n)&&(t.selectionControl.borderColor=ys(n)),ys(a)&&(t.selectionControl.textColor=ys(a)),ys(i)&&(t.selectionControl.checkedBorderColor=ys(i)),ys(c)&&(t.selectionControl.checkedTextColor=ys(c)),Number(d)){const{fontSize:p,gap:h}=t.selectionControl,{w:m,h:x}=t;if(Number(d)===p)return;const v=Number(d)/p,A=Math.round(h*v),k=Math.round(m*v),R=Math.round(x*v);t.w=k,t.h=R,t.selectionControl.fontSize=Number(d),t.selectionControl.gap=A}},[Bn.sliderAttrs]:(e,t)=>{const{thickness:n,radius:a,"bar-fill-color":i,"bar-process-color":c,"slider-fill-color":d,"slider-stroke-color":p,"process-position":h}=e||{};ys(i)&&(t.slider.trackBackgroundColor=ys(i)),ys(c)&&(t.slider.trackForegroundColor=ys(c)),ys(d)&&(t.slider.thumbBackgroundColor=ys(d)),ys(p)&&(t.slider.thumbBorder.bdrColor=ys(p)),Number(a)&&(t.slider.trackBorderRadius=Number(a)),h&&(t.slider.thumbPosition=Number(h)),Number(n)&&(t.slider.trackSize=Number(n))},[Bn.digitalStepperAttrs]:(e,t)=>{const{"font-color":n,"font-size":a,range_end:i,range_start:c}=e||{};c&&(t.digitalStepper.min=Number(c)),i&&(t.digitalStepper.max=Number(i)),t.digitalStepper.min>1&&(t.digitalStepper.value=t.digitalStepper.min+1),n&&(t.digitalStepper.textColor=ys(n)),a&&(t.digitalStepper.fontSize=Number(a))},[Bn.carouselAttrs]:(e,t)=>{const{"auto-play":n,"pointer-default-color":a,"pointer-active-color":i,interval:c,direction:d}=e||{};let p=n;typeof n=="string"&&(p=n==="true"),ys(a)&&(t.carousel.pointerBg=ys(a)),ys(i)&&(t.carousel.pointerFg=ys(i)),Object.keys(e||{}).includes("auto-play")&&(t.carousel.autoPlay=p),c&&(t.carousel.interval=Number(c)),d&&(t.carousel.vertical=d==="vertical")},[Bn.webpageUrlAttrs]:(e,t)=>{const{url:n}=e||{};n&&(t.webpage.url=n)},[Bn.videoAttrs]:(e,t)=>{const{"video-url":n,"autoplay-switcher":a,"loop-switcher":i,"mute-switcher":c,"hide-control-switcher":d}=e||{};n&&(t.video.videoSrc=n),a&&(t.video.isAutoplay=a==="on"),i&&(t.video.isLoop=i==="on"),c&&(t.video.isMuted=c==="on"),d&&(t.video.isHideControls=d==="on")},[Bn.audioAttrs]:(e,t)=>{const{"audio-url":n,"autoplay-switcher":a,"loop-switcher":i,"across-screens-switcher":c,"hide-control-switcher":d}=e||{};n&&(t.audio.audioSrc=n),a&&(t.audio.isAutoplay=a==="on"),i&&(t.audio.isLoop=i==="on"),c&&(t.audio.isKeepAlive=c==="on"),d&&(t.audio.isHidden=d==="on")},[Bn.qrCodeAttrs]:(e,t)=>{const{"qrcode-url":n,"background-color":a,"foreground-color":i}=e||{};n&&(t.qrCode.content=n),ys(i)&&(t.qrCode.foregroundColor=ys(i)),ys(a)&&(t.qrCode.backgroundColor=ys(a))},[Bn.tooltipAttrs]:(e,t)=>{const{"placement-direction":n}=e||{};n&&(t.tooltip.placement=CR[n]||"left")},[Bn.tabBarAttrs]:(e,t)=>{const{"icon-color":n,"font-color":a,"font-size":i}=e||{};n&&Si(n)&&(t.mobileTabBars.iconColor=Si(n)),a&&Si(a)&&(t.mobileTabBars.textColor=Si(a)),Number(i)&&(t.mobileTabBars.fontSize=Number(i))},[Bn.segmentedControlAttrs]:(e,t)=>{const{"fill-color":n,"font-size":a,"font-color":i}=e||{};n&&Si(n)&&(t.segmentedControl.backgroundColor=Si(n)),Number(a)&&(t.segmentedControl.fontSize=Number(a)),Number(a)&&(t.segmentedControl.checkedFontSize=Number(a)),i&&Si(i)&&(t.segmentedControl.textColor=Si(i))},[Bn.collapseAttrs]:(e,t)=>{const{"font-color":n,"font-size":a}=e||{};Number(a)&&(t.collapse.contentTextSize=Number(a)),Number(a)&&(t.collapse.titleTextSize=Number(a)),n&&Si(n)&&(t.collapse.contentTextColor=Si(n)),n&&Si(n)&&(t.collapse.titleTextColor=Si(n))},[Bn.tabAttrs]:(e,t)=>{const{"font-color":n,"font-size":a}=e||{};Number(a)&&(t.tabs.fontSize=Number(a)),Number(a)&&(t.tabs.checkedFontSize=Number(a)),n&&Si(n)&&(t.tabs.textColor=Si(n))},[Bn.pageMobile]:(e,t)=>{const{"font-color":n,"font-size":a}=e||{};Number(a)&&(t.paginationMobile.textSize=Number(a)),Number(a)&&(t.paginationMobile.checkedTextSize=Number(a)),n&&Si(n)&&(t.paginationMobile.textColor=Si(n))},[Bn.pageWeb]:(e,t)=>{const{"font-color":n,"font-size":a}=e||{};Number(a)&&(t.paginationWeb.textSize=Number(a)),Number(a)&&(t.paginationWeb.checkedTextSize=Number(a)),n&&Si(n)&&(t.paginationWeb.textColor=Si(n))},[Bn.polygonAttrs]:(e,t)=>{const{sides:n,radius:a}=e||{},i={};Number(a)&&(i.cornerRadius=Number(a)),Number(n)&&(i.sideNum=Number(n)),t.polygon={...t.polygon,...i}},[Bn.starAttrs]:(e,t)=>{const{nodes:n}=e||{};Number(n)&&(t.star={...t.star,sideNum:Number(n)})},[Bn.editNewBlocks]:(e,t)=>{const n=bR(t,e);n&&(t.textV1.blocks=n)},[Bn.editTableAttrs]:(e,t)=>{const{row:n,column:a,"border-color":i,"horizontal-line-color":c,"vertical-line-color":d}=e||{};if((0,iu.SS)(t)){let p=Number(n)||0,h=Number(a)||0;const m=t.heightList.length,x=t.widthList.length;p===0&&(p=m),h===0&&(h=x);let v={...t};if(m!==p){const A=p-m;A>0?v=(0,Ng.bX)(v,A,m-1):v=(0,Ng.HS)(v,m+A,Math.abs(A)).newWidget}if(x!==h){const A=h-x;if(A>0)v=(0,Ng.Pg)(v,A,x-1);else{const k=(0,Ng.FQ)(v,x+A,Math.abs(A));if(!k)return;v=k.newWidget}}t={...v}}else{let p=Number(n)||0,h=Number(a)||0;const m=t.tableConfig.rowCount,x=t.tableConfig.colCount;if(Number(p)&&(t.tableConfig.rowCount=Number(p)),Number(h)&&(t.tableConfig.colCount=Number(h)),p===0&&(p=m),h===0&&(h=x),m!==p||x!==h){let{tableData:{columns:v,rows:A,data:k,links:R,cellStyles:F,mergeCells:Z}}=t;const G=x>p&&x>h;v=v.length>h?v.slice(0,h):v.concat(Array(h-v.length).fill({type:"text",width:v[v.length-1].width||80})),A=A.length>p?A.slice(0,p):A.concat(Array(p-A.length).fill({height:A[A.length-1].height||30})),k=Y5({currentDataList:k,rowOrColumns:{currentColumn:h,currentRow:p}}),R=Y5({currentDataList:R,rowOrColumns:{currentColumn:h,currentRow:p}}),F=Y5({currentDataList:F,rowOrColumns:{currentColumn:h,currentRow:p}});const ee={columns:v,rows:A,cellStyles:F,mergeCells:G?{}:Z,data:k,links:R},ce=ee.rows.reduce((he,ve)=>he+ve.height,0),se=ee.columns.reduce((he,ve)=>he+ve.width,0);t.h=ce,t.w=se,t.tableData=ee,t.tableConfig={...t.tableConfig,...(0,kg.U3)({height:t.h,width:t.w,columns:ee.columns,rows:ee.rows})}}}ys(i)&&(t.tableConfig.outerBorder.bdrColor=ys(i)),ys(c)&&(t.tableConfig.innerBorderH.bdrColor=ys(c)),ys(d)&&(t.tableConfig.innerBorderV.bdrColor=ys(d))},[Bn.editChartAttrs]:(e,t)=>{var n;const{"chart-type":a,"grid-line-color":i,"grid-line-type":c,"color-theme":d}=e||{};a&&(t.chartConfig.chartType=((n=Lg[a])==null?void 0:n.type)||"bar_chart"),d&&Nm[d]&&(t.chartConfig.chartTheme=Nm[d]),c&&(t.chartConfig.grid.bdrStyle=Lm(c)),i&&(t.chartConfig.grid.bdrColor=Si(i))},[Bn.editElbowAttrs]:(e,t)=>{const{"line-color":n}=e||{};ys(n)&&(t.elbow.arrowStroke.bdrColor=ys(n))}}),Y5=e=>{let{currentDataList:t,rowOrColumns:{currentRow:n,currentColumn:a}}=e;return a===0&&(a=t[0].length),n===0&&(n=t.length),n<t.length?a<t[0].length?t.slice(0,n).map(i=>i.slice(0,a)):t.slice(0,n).map(i=>i.concat(Array(a-t[0].length).fill(""))):a<t[0].length?t.concat(Array(n-t.length).fill(Array(a).fill(""))).map(i=>i.slice(0,a)):t.concat(Array(n-t.length).fill(Array(a).fill(""))).map(i=>i.concat(Array(a-t[0].length).fill("")))},MR=()=>({[Zt.x.WRect]:{name:I18N.w.wRect,attrs:[Bn.textAttrRichTextV1,Bn.sizeAttr,Bn.exteriorAttr,Bn.borderAttr,Bn.textV1BlockAttr]},[Zt.x.WOval]:{name:I18N.w.wOval,attrs:[Bn.textAttrRichTextV1,Bn.sizeAttr,Bn.exteriorAttr,Bn.borderAttr,Bn.textV1BlockAttr]},[Zt.x.WRichText]:{name:I18N.w.wRichText,attrs:[Bn.textAttrRichTextV1,Bn.sizeAttr,Bn.exteriorAttr,Bn.textV1BlockAttr,Bn.textAutoSize]},[Zt.x.WButton]:{name:I18N.w.wButton,attrs:[Bn.textAttrRichTextV0,Bn.sizeAttr,Bn.exteriorAttr,Bn.borderAttr]},[Zt.x.WArrow]:{name:I18N.w.wArrow,attrs:[Bn.sizeAttr,Bn.exteriorAttr,Bn.borderAttr,Bn.arrowAttrs]},[Zt.x.WLine]:{name:I18N.w.wLine,attrs:[Bn.sizeAttr,Bn.exteriorAttr,Bn.borderAttr]},[Zt.x.WPlaceholder]:{name:I18N.translation.wPlaceholder,attrs:[Bn.sizeAttr,Bn.textAttrRichTextV0,Bn.exteriorAttr,Bn.borderAttr]},[Zt.x.WImage]:{name:I18N.w.wImage,attrs:[Bn.sizeAttr,Bn.exteriorAttr,Bn.borderAttr]},[Zt.x.WTable]:{name:I18N.w.wTable,attrs:[Bn.sizeAttr,Bn.exteriorAttr,Bn.tableAttr]},[Zt.x.WSticky]:{name:I18N.w.wSticky,attrs:[Bn.stickyAttr]},[Zt.x.WTear]:{name:I18N.w.wTear,attrs:[Bn.stickyAttr]},[Zt.x.WIphoneXSB]:{name:I18N.w.wIphoneXSB,attrs:[Bn.sizeAttr,Bn.exteriorAttr,Bn.textAttrRichTextV0]},[Zt.x.WLR]:{name:I18N.w.wLr,attrs:[Bn.sizeAttr]},[Zt.x.WMTextInput]:{name:I18N.w.wMTextInput,attrs:[Bn.sizeAttr,Bn.exteriorAttr,Bn.borderAttr,Bn.textAttrRichTextV0]},[Zt.x.WMTextArea]:{name:I18N.w.wMTextarea,attrs:[Bn.sizeAttr,Bn.exteriorAttr,Bn.borderAttr,Bn.textAttrRichTextV0]},[Zt.x.WMSelect]:{name:I18N.w.wMSelect,attrs:[Bn.sizeAttr,Bn.exteriorAttr,Bn.borderAttr,Bn.textAttrRichTextV0]},[Zt.x.WMFileInput]:{name:I18N.w.wMFileInput,attrs:[Bn.sizeAttr,Bn.exteriorAttr]},[Zt.x.WSelectionControlRadio]:{name:I18N.w.selection_control_radio,attrs:[Bn.sizeAttr,Bn.exteriorAttr,Bn.selectionControlColors]},[Zt.x.WSelectionControlCheckbox]:{name:I18N.w.selection_control_radio,attrs:[Bn.sizeAttr,Bn.exteriorAttr,Bn.selectionControlColors]},[Zt.x.WAndroidSwitch]:{name:I18N.w.android_switch,attrs:[Bn.sizeAttr,Bn.exteriorAttr]},[Zt.x.WIOSSwitch]:{name:I18N.w.ios_switch,attrs:[Bn.sizeAttr,Bn.exteriorAttr]},[Zt.x.WSlider]:{name:I18N.w.slider,attrs:[Bn.sizeAttr,Bn.exteriorAttr,Bn.sliderAttrs]},[Zt.x.WDigitalStepper]:{name:I18N.w.digital_stepper,attrs:[Bn.sizeAttr,Bn.exteriorAttr,Bn.digitalStepperAttrs]},[Zt.x.WCarousel]:{name:I18N.w.wCarousel,attrs:[Bn.sizeAttr,Bn.exteriorAttr,Bn.carouselAttrs]},[Zt.x.WWebpage]:{name:I18N.w.wWebpage,attrs:[Bn.sizeAttr,Bn.exteriorAttr,Bn.webpageUrlAttrs]},[Zt.x.WVideo]:{name:I18N.w.wVideo,attrs:[Bn.sizeAttr,Bn.exteriorAttr,Bn.videoAttrs]},[Zt.x.WAudio]:{name:I18N.w.wAudio,attrs:[Bn.sizeAttr,Bn.exteriorAttr,Bn.audioAttrs]},[Zt.x.WQRCode]:{name:I18N.w.wQRCode,attrs:[Bn.sizeAttr,Bn.exteriorAttr,Bn.qrCodeAttrs]},[Zt.x.WMapView]:{name:I18N.w.wMapView,attrs:[Bn.sizeAttr,Bn.exteriorAttr]},[Zt.x.WMTooltip]:{name:I18N.w.wMTooltip,attrs:[Bn.sizeAttr,Bn.exteriorAttr,Bn.borderAttr,Bn.textAttrRichTextV0,Bn.tooltipAttrs]},[Zt.x.WDropMenu]:{name:I18N.w.dropmenu,attrs:[Bn.sizeAttr,Bn.exteriorAttr,Bn.borderAttr,Bn.textAttrRichTextV0]},[Zt.x.WNavigationMenu]:{name:I18N.w.navigation_menu,attrs:[Bn.sizeAttr,Bn.exteriorAttr]},[Zt.x.WNavigationMenuV]:{name:I18N.w.navigation_menu_v,attrs:[Bn.exteriorAttr]},[Zt.x.WNavigationMenuH]:{name:I18N.w.navigation_menu_h,attrs:[Bn.exteriorAttr]},[Zt.x.WMobileTabBars]:{name:I18N.w.mobile_tab_bars,attrs:[Bn.exteriorAttr,Bn.borderAttr,Bn.tabBarAttrs]},[Zt.x.WSegmentedControl]:{name:I18N.w.segmented_control,attrs:[Bn.borderAttr,Bn.segmentedControlAttrs]},[Zt.x.WTabs]:{name:I18N.w.wTabs,attrs:[Bn.exteriorAttr,Bn.tabAttrs]},[Zt.x.WCollapse]:{name:I18N.w.collapse,attrs:[Bn.sizeAttr,Bn.exteriorAttr,Bn.borderAttr,Bn.collapseAttrs]},[Zt.x.WPaginationMobile]:{name:I18N.w.wPaginationMobile,attrs:[Bn.exteriorAttr,Bn.borderAttr,Bn.pageMobile]},[Zt.x.WPaginationWeb]:{name:I18N.w.wPaginationWeb,attrs:[Bn.exteriorAttr,Bn.borderAttr,Bn.pageWeb]},[Zt.x.WPolygon]:{name:I18N.w.wPolygon,attrs:[Bn.textAttrRichTextV1,Bn.sizeAttr,Bn.exteriorAttr,Bn.textV1BlockAttr,Bn.borderAttr,Bn.polygonAttrs]},[Zt.x.WTriangle]:{name:I18N.w.wTriangle,attrs:[Bn.textAttrRichTextV1,Bn.sizeAttr,Bn.exteriorAttr,Bn.textV1BlockAttr,Bn.borderAttr]},[Zt.x.WStar]:{name:I18N.w.wStar,attrs:[Bn.textAttrRichTextV1,Bn.sizeAttr,Bn.exteriorAttr,Bn.textV1BlockAttr,Bn.borderAttr,Bn.starAttrs]}}),Es=(e,t)=>{const n=e.replace("C-",""),{count:a}=t||{};if(n===Zt.x.WRichText&&(!t||!t["text-content"])&&(t={...t,"text-content":I18N.Widget.wRichTextText}),n===Zt.x.WTable){const{row:v,column:A}=t||{};Number(v)&&!t.height&&(t.height=30*Number(v)),Number(A)&&!t.width&&(t.width=80*Number(A))}if(n===Zt.x.WPolygon){const{sides:v}=t||{};if(v<3){MB.notice({text:"\u591A\u8FB9\u5F62\u8FB9\u6570\u9700\u8981\u5927\u4E8E\u7B49\u4E8E3",type:"warning"});return}}const i=[],c=MB.getCurrentScreen(),d=c==null?void 0:c.cid;let p=(0,z5._)(d);const h=MR()[n];if(!h)return;const{attrs:m,name:x}=h;for(let v=0;v<(Number(a)||1);v++){const A=(0,fp.iD)({type:n,screen:c,attrs:{name:x}});p++,A.zIndex=p,m.forEach(R=>{c7()[R](t,A)});const k=Xr({hotAttr:A,sup:d});i.push(k)}Pg(i)},ER=(e,t)=>{Z5("wbTOkTYpTtTUeNK4eU3iYQ",t)},IR=(e,t)=>{Z5("wbTOkWBWTtTUelSImKcV05",t)},_R=(e,t)=>{const n=Qr();n&&(n({type:"entry:comment:toggle"}),n(Le.GO.toggleInspectMode(!1)),n(Le.GO.toggleHandMode(!1)),n(Le.GO.select([])),n({type:"elbow:update",payload:{isInElbowMode:!1}}),n({type:"entry:ST:STMode:disable"}))},TR=(e,t)=>{const n=Qr();n&&(n({type:"entry:elbow:isInElbowMode:toggle"}),n({type:"entry:comment:disabled",payload:{noWigglingCommentCid:!0}}),n({type:"set:quick-create-widget",payload:{widget:null,quickCreateWidgetFrom:qd.Hq.ToolBar}}),n(Le.GO.toggleInspectMode(!1)),n(Le.GO.toggleHandMode(!1)))},PR=(e,t)=>{wR(Zt.x.WVector)},LR=()=>{const e=sc.getInstance();e.register("C-"+Zt.x.WRect,Es),e.register("C-"+Zt.x.WOval,Es),e.register("C-"+Zt.x.WRichText,Es),e.register("C-"+Zt.x.WButton,Es),e.register("C-"+Zt.x.WArrow,Es),e.register("C-"+Zt.x.WLine,Es),e.register("C-"+Zt.x.WPlaceholder,Es),e.register("C-"+Zt.x.WTable,Es),e.register("C-"+Zt.x.WSticky,Es),e.register("C-"+Zt.x.WTear,Es),e.register("C-"+Zt.x.WIphoneXSB,Es),e.register("C-"+Zt.x.WLR,Es),e.register("C-"+Zt.x.WImage,Es),e.register("CElbow",TR),e.register("CVector",PR),e.register("CDynCpts",ER),e.register("CComment",_R),e.register("CScrollPanel",IR)},NR=()=>{const e=sc.getInstance();e.register("C-"+Zt.x.WMTextInput,Es),e.register("C-"+Zt.x.WMTextArea,Es),e.register("C-"+Zt.x.WMSelect,Es),e.register("C-"+Zt.x.WMFileInput,Es),e.register("C-"+Zt.x.WSelectionControlRadio,Es),e.register("C-"+Zt.x.WSelectionControlCheckbox,Es),e.register("C-"+Zt.x.WAndroidSwitch,Es),e.register("C-"+Zt.x.WIOSSwitch,Es),e.register("C-"+Zt.x.WSlider,Es),e.register("C-"+Zt.x.WDigitalStepper,Es)},jR=(e,t)=>{Z5("wbTOksOVTtTVK7dHXfAC4d",t)},DR=()=>{const e=sc.getInstance();e.register("C-"+Zt.x.WDropMenu,Es),e.register("C-"+Zt.x.WNavigationMenu,Es),e.register("C-"+Zt.x.WNavigationMenuV,Es),e.register("C-"+Zt.x.WNavigationMenuH,Es),e.register("C-"+Zt.x.WMobileTabBars,Es),e.register("C-"+Zt.x.WSegmentedControl,Es),e.register("C-"+Zt.x.WCollapse,Es),e.register("C-"+Zt.x.WTabs,Es),e.register("C-"+Zt.x.WPaginationMobile,Es),e.register("C-"+Zt.x.WPaginationWeb,Es),e.register("CDynamicDropMenu",jR)},RR=()=>{const e=sc.getInstance();e.register("C-"+Zt.x.WPolygon,Es),e.register("C-"+Zt.x.WTriangle,Es),e.register("C-"+Zt.x.WStar,Es)},ws=(e,t)=>{const{width:n,height:a,opacity:i,radius:c,"target-elements-keyword":d,"stroke-weight":p,"stroke-type":h}=e||{};let m=!0;Number(n)&&m&&(m=t.w===Number(n)),Number(a)&&m&&(m=t.h===Number(a)),e&&Object.keys(e).includes("opacity")&&m&&(m=t.opacity===a7(i)),Number(c)&&m&&(m=t.borderRadius===Number(c)),d&&m&&(m=(t.display_name||t.name||"").includes(d));const{bdrStyle:x,bdrWidth:v}=(t==null?void 0:t.border)||{};return p&&m&&(m=v===Number(p)),h&&m&&(m=x===Lm(h)),m},uu=(e,t)=>{const{"font-size":n,"font-family":a,"font-format":i,"text-align":c}=e||{},{italic:d,bold:p,underline:h,strikethrough:m}=Y0(i),{fontFamily:x,fontSize:v}=t;let A=!0;return n&&(A=v===n),a&&A&&(A=x===a),d&&A&&(A=t.italic===d),p&&A&&(A=t.bold===p),h&&A&&(A=t.underline===h),m&&A&&(A=t.strikethrough===m),c&&A&&(A=t.horizontalAlign===c),A},hu=(e,t)=>{const{fontSize:n,fontFamily:a,italic:i,underline:c,strikethrough:d,horizontalAlign:p,bold:h}=(0,_0.xH)({baseItem:t}),{"font-size":m,"font-family":x,"font-format":v,"text-align":A}=e||{},{italic:k,bold:R,underline:F,strikethrough:Z}=Y0(v);let G=!0;return m&&(G=Number(n)===Number(m)),x&&G&&(G=a===x),k&&G&&(G=k===i),R&&G&&(G=R===h),F&&G&&(G=F===c),Z&&G&&(G=Z===d),A&&G&&(G=p===A),G},mu={[$.x.WRichText]:(e,t)=>{let n=[...e];return n=n.filter(a=>{let i=a.hotAttr.type===$.x.WRichText;return i&&t&&Object.keys(t).length&&(i=ws(t,a.hotAttr),i&&(i=hu(t,a.hotAttr))),i}),n},[$.x.WRect]:(e,t)=>{let n=[...e];return n=n.filter(a=>{let i=a.hotAttr.type===$.x.WRect;return i&&t&&Object.keys(t).length&&(i=ws(t,a.hotAttr),i&&(i=hu(t,a.hotAttr))),i}),n},[$.x.WOval]:(e,t)=>{let n=[...e];return n=n.filter(a=>{let i=a.hotAttr.type===$.x.WOval;return i&&t&&Object.keys(t).length&&(i=ws(t,a.hotAttr),i&&(i=hu(t,a.hotAttr))),i}),n},[$.x.WLine]:(e,t)=>{let n=[...e];return n=n.filter(a=>{let i=a.hotAttr.type===$.x.WLine;return i&&t&&Object.keys(t).length&&(i=ws(t,a.hotAttr)),i}),n},[$.x.WButton]:(e,t)=>{let n=[...e];return n=n.filter(a=>{let i=a.hotAttr.type===$.x.WButton;return i&&t&&Object.keys(t).length&&(i=ws(t,a.hotAttr),i&&(i=uu(t,a.hotAttr.textV0))),i}),n},[$.x.WArrow]:(e,t)=>{let n=[...e];return n=n.filter(a=>{let i=a.hotAttr.type===$.x.WArrow;return i&&t&&Object.keys(t).length&&(i=ws(t,a.hotAttr)),i}),n},[$.x.WPolygon]:(e,t)=>{let n=[...e];return n=n.filter(a=>{let i=a.hotAttr.type===$.x.WPolygon;if(i&&t&&Object.keys(t).length){const{radius:c,sides:d}=t;Number(c)&&(i=a.hotAttr.polygon.cornerRadius===Number(c)),Number(d)&&i&&(i=a.hotAttr.polygon.sideNum===Number(d)),i&&(i=ws(t,a.hotAttr)),i&&(i=hu(t,a.hotAttr))}return i}),n},[$.x.WStar]:(e,t)=>{let n=[...e];return n=n.filter(a=>{let i=a.hotAttr.type===$.x.WStar;if(i&&t&&Object.keys(t).length){const{radius:c,nodes:d}=t;Number(c)&&(i=a.hotAttr.polygon.cornerRadius===Number(c)),Number(d)&&i&&(i=a.hotAttr.star.sideNum===Number(d)),delete t.radius,i&&(i=ws(t,a.hotAttr)),i&&(i=hu(t,a.hotAttr))}return i}),n},[$.x.WTriangle]:(e,t)=>{let n=[...e];return n=n.filter(a=>{let i=a.hotAttr.type===$.x.WTriangle;return i&&t&&Object.keys(t).length&&(i&&(i=ws(t,a.hotAttr)),i&&(i=hu(t,a.hotAttr))),i}),n},[$.x.WCarousel]:(e,t)=>{let n=[...e];return n=n.filter(a=>{let i=a.hotAttr.type===$.x.WCarousel;return i&&t&&Object.keys(t).length&&(i=ws(t,a.hotAttr)),i}),n},[$.x.WWebpage]:(e,t)=>{let n=[...e];return n=n.filter(a=>{let i=a.hotAttr.type===$.x.WWebpage;return i&&t&&Object.keys(t).length&&(i=ws(t,a.hotAttr)),i}),n},[$.x.WVideo]:(e,t)=>{let n=[...e];return n=n.filter(a=>{let i=a.hotAttr.type===$.x.WVideo;return i&&t&&Object.keys(t).length&&(i=ws(t,a.hotAttr)),i}),n},[$.x.WAudio]:(e,t)=>{let n=[...e];return n=n.filter(a=>{let i=a.hotAttr.type===$.x.WAudio;return i&&t&&Object.keys(t).length&&(i=ws(t,a.hotAttr)),i}),n},[$.x.WQRCode]:(e,t)=>{let n=[...e];return n=n.filter(a=>{let i=a.hotAttr.type===$.x.WQRCode;return i&&t&&Object.keys(t).length&&(i=ws(t,a.hotAttr)),i}),n},[$.x.WMapView]:(e,t)=>{let n=[...e];return n=n.filter(a=>{let i=a.hotAttr.type===$.x.WMapView;return i&&t&&Object.keys(t).length&&(i=ws(t,a.hotAttr)),i}),n},[$.x.WMTooltip]:(e,t)=>{let n=[...e];return n=n.filter(a=>{let i=a.hotAttr.type===$.x.WMTooltip;return i&&t&&Object.keys(t).length&&(i&&(i=ws(t,a.hotAttr)),i&&(i=uu(t,a.hotAttr.textV0))),i}),n},[$.x.WImage]:(e,t)=>{let n=[...e];return n=n.filter(a=>{let i=a.hotAttr.type===$.x.WImage;return i&&t&&Object.keys(t).length&&(i=ws(t,a.hotAttr)),i}),n},[$.x.WLR]:(e,t)=>{let n=[...e];return n=n.filter(a=>{let i=a.hotAttr.type===$.x.WLR;return i&&t&&Object.keys(t).length&&(i=ws(t,a.hotAttr)),i}),n},[$.x.WPlaceholder]:(e,t)=>{let n=[...e];return n=n.filter(a=>{let i=a.hotAttr.type===$.x.WPlaceholder;return i&&t&&Object.keys(t).length&&(i&&(i=ws(t,a.hotAttr)),i&&(i=uu(t,a.hotAttr.textV0))),i}),n},[$.x.WTable]:(e,t)=>{let n=[...e];return n=n.filter(a=>{let i=a.hotAttr.type===$.x.WTable;if(i&&t&&Object.keys(t).length){const{row:c,column:d}=t;i=ws(t,a.hotAttr),Number(c)&&i&&(i=a.hotAttr.tableConfig.rowCount===Number(c)),Number(d)&&i&&(i=a.hotAttr.tableConfig.colCount===Number(d))}return i}),n},[$.x.WSticky]:(e,t)=>{let n=[...e];return n=n.filter(a=>{let i=a.hotAttr.type===$.x.WSticky;return i&&t&&Object.keys(t).length&&(i&&(i=ws(t,a.hotAttr)),i&&(i=hu(t,a.hotAttr))),i}),n},[$.x.WTear]:(e,t)=>{let n=[...e];return n=n.filter(a=>{let i=a.hotAttr.type===$.x.WTear;return i&&t&&Object.keys(t).length&&(i&&(i=ws(t,a.hotAttr)),i&&(i=hu(t,a.hotAttr))),i}),n},[$.x.WIphoneXSB]:(e,t)=>{let n=[...e];return n=n.filter(a=>{let i=a.hotAttr.type===$.x.WIphoneXSB;return i&&t&&Object.keys(t).length&&(i&&(i=ws(t,a.hotAttr)),i&&(i=uu(t,a.hotAttr.textV0))),i}),n},[$.x.WMTextInput]:(e,t)=>{let n=[...e];return n=n.filter(a=>{let i=a.hotAttr.type===$.x.WMTextInput;return i&&t&&Object.keys(t).length&&(i&&(i=ws(t,a.hotAttr)),i&&(i=uu(t,a.hotAttr.textV0))),i}),n},[$.x.WMTextArea]:(e,t)=>{let n=[...e];return n=n.filter(a=>{let i=a.hotAttr.type===$.x.WMTextArea;return i&&t&&Object.keys(t).length&&(i&&(i=ws(t,a.hotAttr)),i&&(i=uu(t,a.hotAttr.textV0))),i}),n},[$.x.WMSelect]:(e,t)=>{let n=[...e];return n=n.filter(a=>{let i=a.hotAttr.type===$.x.WMSelect;return i&&t&&Object.keys(t).length&&(i&&(i=ws(t,a.hotAttr)),i&&(i=uu(t,a.hotAttr.textV0))),i}),n},[$.x.WMFileInput]:(e,t)=>{let n=[...e];return n=n.filter(a=>{let i=a.hotAttr.type===$.x.WMFileInput;return i&&t&&Object.keys(t).length&&(i=ws(t,a.hotAttr)),i}),n},[$.x.WSelectionControlRadio]:(e,t)=>{let n=[...e];return n=n.filter(a=>{var i;let c=a.hotAttr.type===$.x.WSelectionControl&&((i=a.hotAttr)==null||(i=i.selectionControl)==null?void 0:i.type)!=="checkbox";return c&&t&&Object.keys(t).length&&(c=ws(t,a.hotAttr)),c}),n},[$.x.WSelectionControlCheckbox]:(e,t)=>{let n=[...e];return n=n.filter(a=>{var i;let c=a.hotAttr.type===$.x.WSelectionControl&&((i=a.hotAttr)==null||(i=i.selectionControl)==null?void 0:i.type)==="checkbox";return c&&t&&Object.keys(t).length&&(c=ws(t,a.hotAttr)),c}),n},[$.x.WAndroidSwitch]:(e,t)=>{let n=[...e];return n=n.filter(a=>{let i=a.hotAttr.type===$.x.WAndroidSwitch;return i&&t&&Object.keys(t).length&&(i=ws(t,a.hotAttr)),i}),n},[$.x.WIOSSwitch]:(e,t)=>{let n=[...e];return n=n.filter(a=>{let i=a.hotAttr.type===$.x.WIOSSwitch;return i&&t&&Object.keys(t).length&&(i=ws(t,a.hotAttr)),i}),n},[$.x.WSlider]:(e,t)=>{let n=[...e];return n=n.filter(a=>{let i=a.hotAttr.type===$.x.WSlider;return i&&t&&Object.keys(t).length&&(i=ws(t,a.hotAttr)),i}),n},[$.x.WDigitalStepper]:(e,t)=>{let n=[...e];return n=n.filter(a=>{let i=a.hotAttr.type===$.x.WDigitalStepper;return i&&t&&Object.keys(t).length&&(i=ws(t,a.hotAttr)),i}),n},[$.x.WDropMenu]:(e,t)=>{let n=[...e];return n=n.filter(a=>{let i=a.hotAttr.type===$.x.WDropMenu;return i&&t&&Object.keys(t).length&&(i&&(i=ws(t,a.hotAttr)),i&&(i=uu(t,a.hotAttr.textV0))),i}),n},[$.x.WNavigationMenu]:(e,t)=>{let n=[...e];return n=n.filter(a=>{let i=a.hotAttr.type===$.x.WNavigationMenu;return i&&t&&Object.keys(t).length&&(i=ws(t,a.hotAttr)),i}),n},[$.x.WNavigationMenuV]:(e,t)=>{let n=[...e];return n=n.filter(a=>{let i=a.hotAttr.type===$.x.WNavigationMenuV;return i&&t&&Object.keys(t).length&&(i=ws(t,a.hotAttr)),i}),n},[$.x.WNavigationMenuH]:(e,t)=>{let n=[...e];return n=n.filter(a=>{let i=a.hotAttr.type===$.x.WNavigationMenuH;return i&&t&&Object.keys(t).length&&(i=ws(t,a.hotAttr)),i}),n},[$.x.WMobileTabBars]:(e,t)=>{let n=[...e];return n=n.filter(a=>{let i=a.hotAttr.type===$.x.WMobileTabBars;return i&&t&&Object.keys(t).length&&(i=ws(t,a.hotAttr)),i}),n},[$.x.WSegmentedControl]:(e,t)=>{let n=[...e];return n=n.filter(a=>{let i=a.hotAttr.type===$.x.WSegmentedControl;return i&&t&&Object.keys(t).length&&(i=ws(t,a.hotAttr)),i}),n},[$.x.WCollapse]:(e,t)=>{let n=[...e];return n=n.filter(a=>{let i=a.hotAttr.type===$.x.WCollapse;return i&&t&&Object.keys(t).length&&(i=ws(t,a.hotAttr)),i}),n},[$.x.WTabs]:(e,t)=>{let n=[...e];return n=n.filter(a=>{let i=a.hotAttr.type===$.x.WTabs;return i&&t&&Object.keys(t).length&&(i=ws(t,a.hotAttr)),i}),n},[$.x.WPaginationMobile]:(e,t)=>{let n=[...e];return n=n.filter(a=>{let i=a.hotAttr.type===$.x.WPaginationMobile;return i&&t&&Object.keys(t).length&&(i=ws(t,a.hotAttr)),i}),n},[$.x.WPaginationWeb]:(e,t)=>{let n=[...e];return n=n.filter(a=>{let i=a.hotAttr.type===$.x.WPaginationWeb;return i&&t&&Object.keys(t).length&&(i=ws(t,a.hotAttr)),i}),n},[$.x.WChart]:(e,t)=>{let n=[...e];return n=n.filter(a=>{let i=a.hotAttr.type===$.x.WChart;if(i&&t&&Object.keys(t).length){var c;const{"chart-type":d,"grid-line-color":p,"grid-line-type":h,"color-theme":m}=t||{},{hotAttr:x}=a;i=ws(t,a.hotAttr),d&&i&&(i=x.chartConfig.chartType===((c=Lg[d])==null?void 0:c.type)),m&&i&&Nm[m]&&(i=x.chartConfig.chartTheme===Nm[m]),h&&i&&(i=x.chartConfig.grid.bdrStyle===Lm(h)),p&&i&&(i=x.chartConfig.grid.bdrColor===Si(p))}return i}),n}},X5=e=>{const t=Qr();if(!t||!e||!e.length){const{selectedItems:a}=(0,du.Ub)();MB.notice({text:a.length>0?"\u5F53\u524D\u9009\u533A\u6CA1\u6709\u5BF9\u5E94\u5143\u7D20":"\u5F53\u524D\u753B\u5E03\u6CA1\u6709\u5BF9\u5E94\u5143\u7D20",type:"warning"});return}const n=e.map(a=>{let{key:i}=a;return i});sdkStore.deleteHotItemBatch(n),t({type:"entry:refresh:link-list"}),MB.notice({text:"\u5BF9\u5E94\u5143\u7D20\u5DF2\u5220\u9664"})},BR=(e,t)=>{},UR=(e,t)=>{const n=pu(Zt.x.WChart),a=mu[Zt.x.WChart](n,t);X5(a)},OR=(e,t)=>{const{"target-components":n}=t||{},a=K5[n],i=G5();let c=[];a?c=mu[a](i,t):Object.values(mu).forEach(d=>{c=c.concat(d(i,t))}),X5(c)},Is=(e,t)=>{const n=e.replace("D-",""),a=pu(n),i=mu[n](a,t);X5(i)},FR=()=>{const e=sc.getInstance();e.register("D-"+Zt.x.WRichText,Is),e.register("D-"+Zt.x.WRect,Is),e.register("D-"+Zt.x.WOval,Is),e.register("D-"+Zt.x.WLine,Is),e.register("D-"+Zt.x.WButton,Is),e.register("D-"+Zt.x.WArrow,Is),e.register("D-"+Zt.x.WPolygon,Is),e.register("D-"+Zt.x.WStar,Is),e.register("D-"+Zt.x.WTriangle,Is),e.register("D-"+Zt.x.WCarousel,Is),e.register("D-"+Zt.x.WWebpage,Is),e.register("D-"+Zt.x.WVideo,Is),e.register("D-"+Zt.x.WAudio,Is),e.register("D-"+Zt.x.WQRCode,Is),e.register("D-"+Zt.x.WMapView,Is),e.register("D-"+Zt.x.WMTooltip,Is),e.register("D-"+Zt.x.WImage,Is),e.register("D-"+Zt.x.WLR,Is),e.register("D-"+Zt.x.WPlaceholder,Is),e.register("D-"+Zt.x.WTable,Is),e.register("D-"+Zt.x.WSticky,Is),e.register("D-"+Zt.x.WTear,Is),e.register("D-"+Zt.x.WIphoneXSB,Is),e.register("D-"+Zt.x.WMTextInput,Is),e.register("D-"+Zt.x.WMTextArea,Is),e.register("D-"+Zt.x.WMSelect,Is),e.register("D-"+Zt.x.WMFileInput,Is),e.register("D-"+Zt.x.WSelectionControlRadio,Is),e.register("D-"+Zt.x.WSelectionControlCheckbox,Is),e.register("D-"+Zt.x.WAndroidSwitch,Is),e.register("D-"+Zt.x.WIOSSwitch,Is),e.register("D-"+Zt.x.WSlider,Is),e.register("D-"+Zt.x.WDigitalStepper,Is),e.register("D-"+Zt.x.WDropMenu,Is),e.register("D-"+Zt.x.WNavigationMenu,Is),e.register("D-"+Zt.x.WNavigationMenuV,Is),e.register("D-"+Zt.x.WNavigationMenuH,Is),e.register("D-"+Zt.x.WMobileTabBars,Is),e.register("D-"+Zt.x.WSegmentedControl,Is),e.register("D-"+Zt.x.WCollapse,Is),e.register("D-"+Zt.x.WTabs,Is),e.register("D-"+Zt.x.WPaginationMobile,Is),e.register("D-"+Zt.x.WPaginationWeb,Is),e.register("DWBasket",BR),e.register("DWChart",UR),e.register("DWidgets",OR)},Q5=e=>{const t=Qr();if(!t||!e||!e.length){const{selectedItems:a}=(0,du.Ub)();MB.notice({text:a.length>0?"\u5F53\u524D\u9009\u533A\u6CA1\u6709\u5BF9\u5E94\u5143\u7D20":"\u5F53\u524D\u753B\u5E03\u6CA1\u6709\u5BF9\u5E94\u5143\u7D20"});return}const n=e.map(a=>{let{key:i}=a;return i});t({type:"entry:select:items",payload:{cids:n}}),t({type:"entry:design:zoom:selection"})},VR=(e,t)=>{const n=pu(Zt.x.WChart),a=mu[Zt.x.WChart](n,t);Q5(a)},zR=(e,t)=>{},WR=(e,t)=>{const{"target-components":n}=t||{},a=K5[n],i=G5();let c=[];a?c=mu[a](i,t):Object.values(mu).forEach(d=>{c=c.concat(d(i,t))}),Q5(c)},_s=(e,t)=>{const n=e.replace("S-",""),a=pu(n),i=mu[n](a,t);Q5(i)},HR=()=>{const e=sc.getInstance();e.register("S-"+Zt.x.WRichText,_s),e.register("S-"+Zt.x.WRect,_s),e.register("S-"+Zt.x.WOval,_s),e.register("S-"+Zt.x.WLine,_s),e.register("S-"+Zt.x.WButton,_s),e.register("S-"+Zt.x.WArrow,_s),e.register("S-"+Zt.x.WPolygon,_s),e.register("S-"+Zt.x.WStar,_s),e.register("S-"+Zt.x.WTriangle,_s),e.register("S-"+Zt.x.WCarousel,_s),e.register("S-"+Zt.x.WWebpage,_s),e.register("S-"+Zt.x.WVideo,_s),e.register("S-"+Zt.x.WAudio,_s),e.register("S-"+Zt.x.WQRCode,_s),e.register("S-"+Zt.x.WMapView,_s),e.register("S-"+Zt.x.WMTooltip,_s),e.register("S-"+Zt.x.WImage,_s),e.register("S-"+Zt.x.WLR,_s),e.register("S-"+Zt.x.WPlaceholder,_s),e.register("S-"+Zt.x.WTable,_s),e.register("S-"+Zt.x.WSticky,_s),e.register("S-"+Zt.x.WTear,_s),e.register("S-"+Zt.x.WIphoneXSB,_s),e.register("S-"+Zt.x.WMTextInput,_s),e.register("S-"+Zt.x.WMTextArea,_s),e.register("S-"+Zt.x.WMSelect,_s),e.register("S-"+Zt.x.WMFileInput,_s),e.register("S-"+Zt.x.WSelectionControlRadio,_s),e.register("S-"+Zt.x.WSelectionControlCheckbox,_s),e.register("S-"+Zt.x.WAndroidSwitch,_s),e.register("S-"+Zt.x.WIOSSwitch,_s),e.register("S-"+Zt.x.WSlider,_s),e.register("S-"+Zt.x.WDigitalStepper,_s),e.register("S-"+Zt.x.WDropMenu,_s),e.register("S-"+Zt.x.WNavigationMenu,_s),e.register("S-"+Zt.x.WNavigationMenuV,_s),e.register("S-"+Zt.x.WNavigationMenuH,_s),e.register("S-"+Zt.x.WMobileTabBars,_s),e.register("S-"+Zt.x.WSegmentedControl,_s),e.register("S-"+Zt.x.WCollapse,_s),e.register("S-"+Zt.x.WTabs,_s),e.register("S-"+Zt.x.WPaginationMobile,_s),e.register("S-"+Zt.x.WPaginationWeb,_s),e.register("SWBasket",zR),e.register("SWChart",VR),e.register("SWidgets",WR)},d7=()=>({[$.x.WRichText]:{name:I18N.w.wRichText,attrs:[Bn.sizeAttr,Bn.textAttrRichTextV1,Bn.exteriorAttr,Bn.editNewBlocks]},[$.x.WRect]:{name:I18N.w.wRect,attrs:[Bn.textAttrRichTextV1,Bn.sizeAttr,Bn.exteriorAttr,Bn.borderAttr,Bn.editNewBlocks]},[$.x.WOval]:{name:I18N.w.wOval,attrs:[Bn.textAttrRichTextV1,Bn.sizeAttr,Bn.exteriorAttr,Bn.borderAttr,Bn.editNewBlocks]},[$.x.WLine]:{name:I18N.w.wLine,attrs:[Bn.sizeAttr,Bn.exteriorAttr,Bn.borderAttr]},[$.x.WButton]:{name:I18N.w.wButton,attrs:[Bn.textAttrRichTextV0,Bn.sizeAttr,Bn.exteriorAttr,Bn.borderAttr]},[$.x.WArrow]:{name:I18N.w.wArrow,attrs:[Bn.sizeAttr,Bn.exteriorAttr,Bn.borderAttr,Bn.arrowAttrs]},[$.x.WPolygon]:{name:I18N.w.wPolygon,attrs:[Bn.textAttrRichTextV1,Bn.sizeAttr,Bn.exteriorAttr,Bn.editNewBlocks,Bn.borderAttr,Bn.polygonAttrs]},[$.x.WStar]:{name:I18N.w.wStar,attrs:[Bn.textAttrRichTextV1,Bn.sizeAttr,Bn.exteriorAttr,Bn.editNewBlocks,Bn.borderAttr,Bn.starAttrs]},[$.x.WTriangle]:{name:I18N.w.wTriangle,attrs:[Bn.textAttrRichTextV1,Bn.sizeAttr,Bn.exteriorAttr,Bn.editNewBlocks,Bn.borderAttr]},[$.x.WCarousel]:{name:I18N.w.wCarousel,attrs:[Bn.sizeAttr,Bn.exteriorAttr,Bn.carouselAttrs]},[$.x.WWebpage]:{name:I18N.w.wWebpage,attrs:[Bn.sizeAttr,Bn.exteriorAttr,Bn.webpageUrlAttrs]},[$.x.WVideo]:{name:I18N.w.wVideo,attrs:[Bn.sizeAttr,Bn.exteriorAttr,Bn.videoAttrs]},[$.x.WAudio]:{name:I18N.w.wAudio,attrs:[Bn.sizeAttr,Bn.exteriorAttr,Bn.audioAttrs]},[$.x.WQRCode]:{name:I18N.w.wQRCode,attrs:[Bn.sizeAttr,Bn.exteriorAttr,Bn.qrCodeAttrs]},[$.x.WMapView]:{name:I18N.w.wMapView,attrs:[Bn.sizeAttr,Bn.exteriorAttr]},[$.x.WMTooltip]:{name:I18N.w.wMTooltip,attrs:[Bn.sizeAttr,Bn.exteriorAttr,Bn.borderAttr,Bn.textAttrRichTextV0,Bn.tooltipAttrs]},[$.x.WImage]:{name:I18N.w.wImage,attrs:[Bn.sizeAttr,Bn.exteriorAttr,Bn.borderAttr]},[$.x.WLR]:{name:I18N.w.wLr,attrs:[Bn.sizeAttr]},[$.x.WPlaceholder]:{name:I18N.translation.wPlaceholder,attrs:[Bn.sizeAttr,Bn.textAttrRichTextV0,Bn.exteriorAttr,Bn.borderAttr]},[$.x.WTable]:{name:I18N.w.wTable,attrs:[Bn.sizeAttr,Bn.exteriorAttr,Bn.editTableAttrs]},[$.x.WChart]:{name:I18N.w.wChart,attrs:[Bn.sizeAttr,Bn.exteriorAttr,Bn.editChartAttrs]},[$.x.WElbow]:{name:I18N.w.wElbow,attrs:[Bn.textAttrRichTextV0,Bn.exteriorAttr,Bn.editElbowAttrs]},[$.x.WPaginationMobile]:{name:I18N.w.wPaginationMobile,attrs:[Bn.exteriorAttr,Bn.borderAttr,Bn.sizeAttr]},[$.x.WPaginationWeb]:{name:I18N.w.wPaginationWeb,attrs:[Bn.sizeAttr,Bn.borderAttr,Bn.exteriorAttr]},[$.x.WTabs]:{name:I18N.w.wTabs,attrs:[Bn.sizeAttr,Bn.exteriorAttr,Bn.tabAttrs]},[$.x.WCollapse]:{name:I18N.w.collapse,attrs:[Bn.sizeAttr,Bn.exteriorAttr,Bn.borderAttr,Bn.collapseAttrs]},[$.x.WSegmentedControl]:{name:I18N.w.segmented_control,attrs:[Bn.sizeAttr,Bn.exteriorAttr,Bn.borderAttr,Bn.segmentedControlAttrs]},[$.x.WMobileTabBars]:{name:I18N.w.mobile_tab_bars,attrs:[Bn.sizeAttr,Bn.exteriorAttr,Bn.borderAttr,Bn.tabBarAttrs]},[$.x.WNavigationMenu]:{name:I18N.w.navigation_menu,attrs:[Bn.sizeAttr,Bn.exteriorAttr]},[$.x.WNavigationMenuV]:{name:I18N.w.navigation_menu_v,attrs:[Bn.sizeAttr,Bn.exteriorAttr]},[$.x.WNavigationMenuH]:{name:I18N.w.navigation_menu_h,attrs:[Bn.sizeAttr,Bn.exteriorAttr]},[$.x.WDropMenu]:{name:I18N.w.dropmenu,attrs:[Bn.sizeAttr,Bn.exteriorAttr,Bn.borderAttr,Bn.textAttrRichTextV0]},[$.x.WDigitalStepper]:{name:I18N.w.digital_stepper,attrs:[Bn.sizeAttr,Bn.exteriorAttr,Bn.digitalStepperAttrs]},[$.x.WSlider]:{name:I18N.w.slider,attrs:[Bn.sizeAttr,Bn.exteriorAttr,Bn.sliderAttrs]},[$.x.WIOSSwitch]:{name:I18N.w.ios_switch,attrs:[Bn.sizeAttr,Bn.exteriorAttr]},[$.x.WAndroidSwitch]:{name:I18N.w.android_switch,attrs:[Bn.sizeAttr,Bn.exteriorAttr]},[$.x.WSelectionControlRadio]:{name:I18N.w.selection_control_radio,attrs:[Bn.sizeAttr,Bn.exteriorAttr,Bn.selectionControlColors]},[$.x.WSelectionControlCheckbox]:{name:I18N.w.selection_control_radio,attrs:[Bn.sizeAttr,Bn.exteriorAttr,Bn.selectionControlColors]},[$.x.WMFileInput]:{name:I18N.w.wMFileInput,attrs:[Bn.sizeAttr,Bn.exteriorAttr]},[$.x.WMSelect]:{name:I18N.w.wMSelect,attrs:[Bn.sizeAttr,Bn.exteriorAttr,Bn.borderAttr,Bn.textAttrRichTextV0]},[$.x.WMTextArea]:{name:I18N.w.wMTextarea,attrs:[Bn.sizeAttr,Bn.exteriorAttr,Bn.borderAttr,Bn.textAttrRichTextV0]},[$.x.WMTextInput]:{name:I18N.w.wMTextInput,attrs:[Bn.sizeAttr,Bn.exteriorAttr,Bn.borderAttr,Bn.textAttrRichTextV0]},[$.x.WIphoneXSB]:{name:I18N.w.wIphoneXSB,attrs:[Bn.sizeAttr,Bn.exteriorAttr,Bn.textAttrRichTextV0]},[$.x.WTear]:{name:I18N.w.wTear,attrs:[Bn.stickyAttr]},[$.x.WSticky]:{name:I18N.w.wSticky,attrs:[Bn.stickyAttr]}}),p7=e=>{const t=Qr();if(!t||!e||!e.length){const{selectedItems:n}=(0,du.Ub)();MB.notice({text:n.length>0?"\u5F53\u524D\u9009\u533A\u6CA1\u6709\u5BF9\u5E94\u5143\u7D20":"\u5F53\u524D\u753B\u5E03\u6CA1\u6709\u5BF9\u5E94\u5143\u7D20",type:"warning"});return}t({type:"entry:widget:change",payload:{flatChgList:e,shouldReBuildTree:!0,isCombineChange:!0}}),MB.notice({text:"\u7F16\u8F91\u5B8C\u6210"})},GR=(e,t)=>{},ZR=(e,t)=>{const{"target-components":n}=t||{},a=K5[n],i=G5();let c=[];a?c=J5(i,a,t):Object.keys(d7()).forEach(d=>{c=c.concat(J5(i,d,t))}),p7(c)},Cs=(e,t)=>{const n=e.replace("E-",""),a=pu(n),i=J5(a,e,t);p7(i)},J5=(e,t,n)=>{const a=t.replace("E-",""),i=d7()[a];if(!n||!i)return[];const{attrs:c}=i,d=[...e].filter(p=>{if(p.hotAttr.type===Zt.x.WSelectionControlRadio){var h;return((h=p.hotAttr)==null||(h=h.selectionControl)==null?void 0:h.type)!=="checkbox"}if(p.hotAttr.type===Zt.x.WSelectionControlCheckbox){var m;return((m=p.hotAttr)==null||(m=m.selectionControl)==null?void 0:m.type)==="checkbox"}return p.hotAttr.type===a});return d.forEach(p=>{c.forEach(h=>{const{hotAttr:m}=p;c7()[h](n,m)})}),d},KR=()=>{const e=sc.getInstance();e.register("E-"+Zt.x.WRichText,Cs),e.register("E-"+Zt.x.WRect,Cs),e.register("E-"+Zt.x.WOval,Cs),e.register("E-"+Zt.x.WLine,Cs),e.register("E-"+Zt.x.WButton,Cs),e.register("E-"+Zt.x.WArrow,Cs),e.register("E-"+Zt.x.WPolygon,Cs),e.register("E-"+Zt.x.WStar,Cs),e.register("E-"+Zt.x.WTriangle,Cs),e.register("E-"+Zt.x.WCarousel,Cs),e.register("E-"+Zt.x.WWebpage,Cs),e.register("E-"+Zt.x.WVideo,Cs),e.register("E-"+Zt.x.WAudio,Cs),e.register("E-"+Zt.x.WQRCode,Cs),e.register("E-"+Zt.x.WMapView,Cs),e.register("E-"+Zt.x.WMTooltip,Cs),e.register("E-"+Zt.x.WImage,Cs),e.register("E-"+Zt.x.WLR,Cs),e.register("E-"+Zt.x.WPlaceholder,Cs),e.register("E-"+Zt.x.WTable,Cs),e.register("E-"+Zt.x.WSticky,Cs),e.register("E-"+Zt.x.WTear,Cs),e.register("E-"+Zt.x.WIphoneXSB,Cs),e.register("E-"+Zt.x.WMTextInput,Cs),e.register("E-"+Zt.x.WMTextArea,Cs),e.register("E-"+Zt.x.WMSelect,Cs),e.register("E-"+Zt.x.WMFileInput,Cs),e.register("E-"+Zt.x.WSelectionControlRadio,Cs),e.register("E-"+Zt.x.WSelectionControlCheckbox,Cs),e.register("E-"+Zt.x.WAndroidSwitch,Cs),e.register("E-"+Zt.x.WIOSSwitch,Cs),e.register("E-"+Zt.x.WSlider,Cs),e.register("E-"+Zt.x.WDigitalStepper,Cs),e.register("E-"+Zt.x.WDropMenu,Cs),e.register("E-"+Zt.x.WNavigationMenu,Cs),e.register("E-"+Zt.x.WNavigationMenuV,Cs),e.register("E-"+Zt.x.WNavigationMenuH,Cs),e.register("E-"+Zt.x.WMobileTabBars,Cs),e.register("E-"+Zt.x.WSegmentedControl,Cs),e.register("E-"+Zt.x.WCollapse,Cs),e.register("E-"+Zt.x.WTabs,Cs),e.register("E-"+Zt.x.WPaginationMobile,Cs),e.register("E-"+Zt.x.WPaginationWeb,Cs),e.register("E-"+Zt.x.WChart,Cs),e.register("EWBasket",GR),e.register("EWidgets",ZR)};var Jc=s(14861);const jm={iphone:"iphone",android:"android",dashboard:"display_screen",web:"web",pad:"ipad",watch:"apple_watch"},Dm=e=>{const t=Jc.Am[e][0],n=Jc.v2[t];return{width:n.width,height:n.height,deviceName:t}},jg={iphone:()=>Dm(jm.iphone),android:()=>Dm(jm.android),dashboard:()=>Dm(jm.dashboard),web:()=>Dm(jm.web),pad:()=>Dm(jm.pad),watch:()=>Dm(jm.watch)},q5=()=>{const e=(0,kl.dP)();return e?(0,tt.nE)(e).filter(n=>n.hotAttr.type===Zt.x.Canvas).length===0?(MB.notice({text:"\u8BF7\u9009\u62E9\u76EE\u6807\u9875\u9762",type:"warning"}),!1):!0:!1},YR=(e,t)=>{if(!Qr()||!(0,Ii._c)({type:Zt.x.Canvas,count:(t==null?void 0:t.count)||1}))return;const a=[],i=MB.getCurrentScreen(),c=i==null?void 0:i.cid;let d=(0,z5._)(c);const{count:p,"page-name":h,"background-color":m,"device-size":x,"custom-size-height":v,"custom-size-width":A,"page-x":k,"page-y":R}=t||{},F={},Z=ys(m);Z&&(F.fill={fillIsVisible:!0,fill:"solid",solidColor:Z}),h&&(F.name=h);const{hotAttr:{deviceH:G,deviceW:ee,deviceOrientation:ce}}=sdkStore.getHotItem(i==null?void 0:i.cid),{width:se,height:he,deviceName:ve}=jg[x]&&jg[x]()||{},Te=Number(v)||Number(he)||G,xe=Number(A)||Number(se)||ee,Fe=ce==="landscape"?Te:xe,et=ce==="landscape"?xe:Te;F.w=Fe,F.h=et,Number(k)&&(F.x=Number(k)),Number(R)&&(F.y=Number(R)),F.name=h||I18N.w.rResCanvas,F.device=ve||"customize",(Number(k)||Number(R))&&(F.device="customize");for(let Ke=0;Ke<(Number(p)||1);Ke++){d++;let Qe=Ds[Zt.x.Canvas]("page");Qe.zIndex=d,Qe=Object.assign(Qe,F);const nt=Xr({hotAttr:Qe,sup:c});a.push(nt)}Pg(a)},XR=(e,t)=>{const n=Qr();if(!t||Object.keys(t).length===0||!n)return;const a=pu(Zt.x.Canvas),{"page-name":i,"background-color":c,"device-size":d,"custom-size-height":p,"custom-size-width":h,"page-x":m,"page-y":x}=t||{},v=[...a];v.forEach(A=>{if(A.hotAttr.type!==Zt.x.Canvas)return null;const{hotAttr:k}=A,R=ys(c);R&&(k.fill={fillIsVisible:!0,fill:"solid",solidColor:R}),i&&(k.name=i);const{width:F,height:Z,deviceName:G}=jg[d]&&jg[d]()||{},ee=Number(h)||Number(F),ce=Number(p)||Number(Z);ee&&(k.w=ee),ce&&(k.h=ce),Number(m)&&(k.x=Number(m)),Number(x)&&(k.y=Number(x)),k.name=i||I18N.w.rResCanvas,k.device=G}),n({type:"entry:widget:change",payload:{flatChgList:v,shouldReBuildTree:!0,isCombineChange:!0}})},QR=async(e,t)=>{const n=Qr();n&&q5()&&(await n({type:"entry:copy:canvas"}),setTimeout(async()=>{await n({type:"entry:paste:items:into:current-page",payload:{triggerType:"shortcut"}})}))},JR=(e,t)=>{const n=Qr();!n||!q5()||n({type:"entry:copy:canvas"})},qR=(e,t)=>{const n=Qr();!n||!q5()||n({type:"entry:cut:canvas"})},$R=(e,t)=>{const n=Qr();n&&(MB.f.editing||n({type:"entry:paste:items:into:current-page",payload:{triggerType:"shortcut"}}))},eB=(e,t)=>{const n=pu(Zt.x.Canvas),a=Qr();if(!n||!n.length||!a)return;const i=[];n.forEach(c=>{const{hotAttr:d}=c,p=!d.isClipContent;i.push({key:c.key,hotAttr:{isClipContent:p}})}),a({type:"entry:widget:change",payload:{flatChgList:i,isCombineChange:!0}})},tB=(e,t)=>{const n=pu(Zt.x.Canvas),a=Qr();if(!a||!n||!n.length||!t)return;const{"page-background-type":i}=t;if(!i)return;const c=n.map(d=>{if(sdkStore.isTrashed(d.key)||d.hotAttr.type!==Zt.x.Canvas)return null;let p={};switch(i){case"grid":p={isGridLayout:!0};break;case"vertical-line":p={isColLayout:!0};break;case"horizontal-line":p={isRowLayout:!0};break;default:break}return{...d,hotAttr:{...d.hotAttr,layoutGrid:{...d.hotAttr.layoutGrid,...p}}}});a({type:"entry:widget:change",payload:{flatChgList:c,shouldReBuildTree:!0,isCombineChange:!0}})},nB=()=>{const e=sc.getInstance();e.register("CPage",YR),e.register("EPage",XR),e.register("CPageCopy",QR),e.register("CopyPage",JR),e.register("CutPage",qR),e.register("PastePage",$R),e.register("ToggleClipContent",eB),e.register("EPageLayout",tB)},oB=(e,t,n)=>{const{"board-name":a}=e;if(a.trim()===""||a.includes("/")){MB.notice({text:I18N.Common.name_cannot_be_empty_or_symbol,type:"warning"});return}t({type:"entry:update:screen-name",payload:{attr:"name",value:a,screen:MB.getCurrentScreen()}})},aB=(e,t,n)=>{const{"background-color":a}=e;t({type:"entry:update:all-screen:bgcolor",payload:{fill:{fillIsVisible:!0,fill:"solid",solidColor:ys(a)}}})},rB=(e,t)=>{const n=Qr();n&&n({type:"entry:create:screen:auto:to:root-project"})},iB=(e,t)=>{var n,a;const i=Qr(),c=(0,kl.dP)();if(!i||!c)return;const p=(0,rt.He)(c)[(n=MB.getCurrentScreen())==null?void 0:n.cid];if(!((0,nr.zK)((a=MB.getCurrentScreen())==null?void 0:a.cid)<7)){MB.notice({text:"\u753B\u5E03\u5C42\u7EA7\u6700\u591A\u652F\u63017\u5C42",type:"warning"});return}i({type:"entry:create:screen:auto:to:root-project",payload:{isCreateChildren:!0,parentScreen:p}})},sB=(e,t)=>{const n=Qr();n&&n({type:"entry:create:screen_folder:auto:to:root-project",payload:{isCreateChildren:!0}})},lB=(e,t)=>{const n=Qr(),a=(0,kl.dP)();!n||!a||!t||(t["board-name"]&&oB(t,n,a),t["background-color"]&&aB(t,n,a))},cB=(e,t)=>{var n;const a=Qr(),i=(0,kl.dP)();if(!a||!i)return;const c=(0,dl.I_)(i),d=(0,rt.He)(i),p=(0,rt.WU)(i),h=(0,rt.Hs)(i),{contextScreenSelection:m}=c,x=m.length===1,v=d[((n=MB.getCurrentScreen())==null?void 0:n.cid)||m[0]];if(p&&(!x||x&&h.length===1&&v.key===h[0])){a({type:"entry:remove:screen:selection:del"});return}if(v){a({type:"entry:remove:screen:check:del",payload:{screen:v}});return}a({type:"entry:remove:screen:list:by:context_menu",payload:{screenSelection:m}})},dB=(e,t)=>{const n=Qr(),a=(0,kl.dP)();if(!n||!a)return;const i=(0,dl.I_)(a),c=(0,rt.He)(a),d=(0,rt.WU)(a),p=(0,rt.Hs)(a),{contextScreenSelection:h}=i,m=h.length===1,x=c[h[0]],v=d&&(!m||m&&p.length===1&&x.key===p[0]);if(v){n({type:"entry:dup:screen:selection",payload:{isScreenSelectionContextMenu:v}});return}if(x){n({type:"entry:check:dup:screen:page:folder",payload:{screen:x}});return}n({type:"entry:check:dup:screen:page:folder:batch"})},pB=(e,t)=>{const n=Qr(),a=(0,kl.dP)();if(!n||!a)return;const i=(0,dl.I_)(a),c=(0,rt.He)(a),d=(0,rt.WU)(a),p=(0,rt.Hs)(a),{contextScreenSelection:h}=i,m=h.length===1,x=c[h[0]],v=d&&(!m||m&&p.length===1&&x.key===p[0]);MB.global.experienceLoginModalHelper("isSave")||n({type:"entry:transfer:screen",payload:{screen:x,isScreenSelectionContextMenu:v}})},uB=(e,t)=>{const n=Qr(),a=(0,kl.dP)();if(!n||!a)return;const{isEditingCombo:i,isEditingUserCombo:c}=(0,Me.r)(a);n({type:"modal:update:state",payload:{screenTrashModal:{isOpen:!0,isEditingCombo:i,isEditingUserCombo:c}}})},hB=(e,t)=>{Qr()({type:"entry:unExpand:all:screen"})},mB=(e,t)=>{Qr()({type:"entry:expand:all:screen"})},fB=()=>{const e=sc.getInstance();e.register("CCanvas",rB),e.register("CSubCanvas",iB),e.register("CDirectory",sB),e.register("ECanvas",lB),e.register("DCanvas",cB),e.register("CCanvasCopy",dB),e.register("MoveCanvas",pB),e.register("CanvasViewRecycle",uB),e.register("CollapseCanvas",hB),e.register("ExpandCanvas",mB)},gB=(e,t)=>{const n=Qr();n&&n({type:"settings:set:activeIndex",payload:{activeIndex:1}})},yB=()=>{sc.getInstance().register("OpenEventsPanel",gB)};var xB=s(29078);const vB=(e,t)=>{const n=Qr();n&&n({type:"entry:toggle:lock"})},bB=(e,t)=>{const n=Qr();n&&n({type:"entry:toggle:visible"})},wB=(e,t)=>{const n=Qr(),a=(0,kl.dP)();if(!n||!a)return;const i=MB.getCurrentScreen(),c=(0,rt.wJ)(a),d=(0,xB.ww)(i,c);n(d?{type:"layerExpandedKeySet:close:ref",payload:{refs:[]}}:{type:"layerExpandedKeySet:open:ref"})},CB=()=>{const e=sc.getInstance();e.register("ToggleLayerLock",vB),e.register("ToggleLayerVisible",bB),e.register("ToggleLayerExpand",wB)},SB=e=>{const t=new Map;return{dispatch:e,register:(n,a)=>{t.set(n,a)},unRegister:n=>{t.delete(n)},has:n=>t.has(n),exec:(n,a)=>{var i;(i=t.get(n))==null||i(n,a)}}},AB=()=>{lD(),fD(),kD(),cR(),yR(),LR(),NR(),kR(),SR(),DR(),RR(),FR(),HR(),KR(),nB(),fB(),yB(),CB()};class sc{static getInstance(t){return sc.instance||(sc.instance=SB(t),AB()),sc.instance}}const Qr=()=>{var e;return(e=sc.getInstance())==null?void 0:e.dispatch};var kB=s(59890);const EB=e=>{const{isShowAIModal:t,isShowAISemantic:n,isShowAIChatPanel:a,currentAIComponent:i,historySemanticValue:c,showGuide:d,generating:p,leftPanelWidth:h,layout:m,user:x,org:v,project:A,switchIsChat:k,currentPopupPanel:R,userInputObj:F,theme:Z,dispatch:G}=e,[ee,ce]=(0,l.useState)(0),[se,he]=(0,l.useState)((0,o.jsx)(o.Fragment,{})),[ve,Te]=(0,l.useState)((0,o.jsx)(o.Fragment,{})),[xe,Fe]=(0,l.useState)((0,o.jsx)(o.Fragment,{}));(0,l.useEffect)(()=>{ce(h+(m==="old_right"?0:yl.fn)+28)},[h,m]);const et=(0,l.useMemo)(()=>({getHotItem:Ct=>sdkStore.getHotItem(Ct),getNewRichTextEditorState:(Ct,St)=>{const hn=Eh.e6.replaceText(Ct.getCurrentContent(),Ct.getSelection(),St),Cn=Eh.$t.push(Ct,hn,"insert-fragment");return G({type:"set:rich:text:editor:state",payload:{richTextEditorState:Cn}}),Cn},updateAIState:Ct=>G({type:"ai:update:state",payload:Ct}),openLeftSidePanel:()=>G({type:i2.X.AIOpenLeftNav}),updateEditingCid:Ct=>G({type:"entry:set:editing:cid",payload:Ct}),updateCurrentOrg:Ct=>{let{org:St}=Ct;return G({type:"set:current:org",payload:{org:St}})},updateCurrentUser:Ct=>{let{user:St}=Ct;return G({type:"set:current:user",payload:{user:St}})},aiGenerate:Ct=>G({type:"ai:generate",payload:Ct}),updateWidget:Ct=>{let{widgetType:St,data:hn,type:Cn}=Ct;return G({type:"entry:autoFill:update:widget",payload:{widgetType:St,data:hn,type:Cn,device:A.device}})},aiPreTextGenerate:Ct=>{const{key:St,currentIsLock:hn}=Ct;hn||G({type:"entry:widget:change",payload:{flatChgList:[{key:St,hotAttr:{isLock:!0}}]}})},recoverEditorSelection:du.We,notice:Ct=>{var St;return(St=MB)==null?void 0:St.notice(Ct)},track:(Ct,St)=>(0,ic.ZI)(Ct,St),getChangingData:du.Ub,handleAIQuestion:async Ct=>{G({type:i2.X.AIToggleOpenChatPanel})},getCmdExec:()=>sc.getInstance(G),aiComponentGenerate:async Ct=>{let{semanticValue:St}=Ct;await G({type:"entry:aiComponent:request:generate-component",payload:{userTextContent:St}})},setAIComponentSourceCache:Ct=>kB.ZF.setCache(Ct)}),[G,A.device,R]),Ke=(0,l.useMemo)(()=>({user:x,org:v,project:A}),[v,A,x]),Qe=(0,l.useMemo)(()=>({currentAIComponent:i,showGuide:d,generating:p,historySemanticValue:c,switchIsChat:k,accountData:Ke,actions:et,userInputObj:F}),[i,d,p,c,k,Ke,et,F]),nt=(0,l.useMemo)(()=>({handleToggleAIChatPanel:()=>G({type:i2.X.AIToggleOpenChatPanel}),updateIsInChatModal:Ct=>G({type:"reducer:flag:is-in-chatGPT",payload:{isInChatModal:Ct}}),updateCurrentOrg:Ct=>{let{org:St}=Ct;return G({type:"set:current:org",payload:{org:St}})},updateCurrentUser:Ct=>{let{user:St}=Ct;return G({type:"set:current:user",payload:{user:St}})},track:(Ct,St)=>{(0,ic.ZI)(Ct,St)}}),[G]),Xe=(0,l.useMemo)(()=>({user:x,org:v,project:A,theme:Z,showHeadSwitch:!1}),[v,A,Z,x]),lt=(0,l.useMemo)(()=>({actions:nt,commonData:Xe}),[Xe,nt]);return(0,l.useEffect)(()=>{he(t?EN(()=>({...Qe,defaultPos:{left:ee,top:yl.E0+28}})):(0,o.jsx)(o.Fragment,{}))},[Qe,ee,t]),(0,l.useEffect)(()=>{Te(n?Hj(()=>Qe):(0,o.jsx)(o.Fragment,{}))},[Qe,n]),(0,l.useEffect)(()=>{Fe(a?Qj(()=>lt):(0,o.jsx)(o.Fragment,{}))},[lt,a]),(0,o.jsxs)(o.Fragment,{children:[se,ve,xe]})},IB=(0,I.Mz)([su.Pp,su.Ky,su.Uz,su.Qj,su.fh,su.Sd,su.fz,rt.uE,te.bP,me.HW,me.wA,me.PL,Me.r,q.jx,rt.OW,su.Ny,te.O4],(e,t,n,a,i,c,d,p,h,m,x,v,A,k,R,F,Z)=>{let{isEditingProjectMain:G}=A;const ee=k===Le.qi.OnlyView;return{isShowAIModal:(i==null?void 0:i.type)===Ag.SR.AutoFill||!ee&&G&&e,isShowAISemantic:t&&!a&&!ee&&G,isShowAIChatPanel:n&&!a&&!ee&&G,showGuide:a,currentAIComponent:i,historySemanticValue:c,generating:d,leftPanelWidth:p,layout:h,user:m,org:x,project:v,currentPopupPanel:R,userInputObj:F,theme:Z}}),_B=(0,r.Ng)(e=>IB(e))(EB);var $5=s(30986),TB=s(61987);const PB=M.Ay.div.withConfig({displayName:"styles__StyledExportTags",componentId:"sc-xzhc9p-0"})(["width:100%;height:72px;padding:8px 20px 0 20px;background:",";display:flex;flex-direction:row;justify-content:space-between;.menu-item{width:80px;height:64px;display:flex;flex-direction:column;justify-content:center;align-items:center;border-radius:6px 6px 0 0;cursor:pointer;.icon-container{position:relative;.icon{width:20px;height:25px;}.beta{position:absolute;width:26px !important;height:12px !important;top:-3px;right:-18px;}}span{color:",";}div{white-space:nowrap;}}.menu-item.checked{background:",";span{font-weight:500;color:",";}}.menu-item.tempDisabled{opacity:0.4;}"],e=>e.theme.color_bg_canvas,e=>e.theme.color_text_L1,e=>e.theme.color_bg_white,e=>e.theme.color_text_link_normal),LB=e=>{let{menuMap:t,currentTag:n,onClick:a}=e;return(0,o.jsx)(PB,{children:t.map(i=>(0,o.jsx)(NB,{text:i.text,dataType:i.dataType,iconName:i.iconName,icon:i.icon,tempDisabled:i.tempDisabled,isChecked:i.dataType===n,isBeta:i.isBeta,onClick:a},i.dataType))})},NB=(0,l.memo)(e=>{let{dataType:t,text:n,iconName:a,tempDisabled:i,isChecked:c,icon:d,isBeta:p,onClick:h}=e;const m=(x,v)=>{if(v)return MB.notice({text:I18N.Common.feature_is_not_available,type:"warning"}),null;h(x)};return(0,o.jsxs)("div",{className:"menu-item "+(c?"checked":"")+" "+(i?"tempDisabled":""),onClick:()=>m(t,i),children:[(0,o.jsxs)("div",{className:"icon-container",children:[d||(0,o.jsx)("img",{className:"icon",src:"/mb-proto2/images/workspace/design/export_"+a+".svg"}),p&&(0,o.jsx)(TB.A,{className:"beta"})]}),(0,o.jsx)("div",{children:(0,o.jsx)("span",{children:n})})]})}),jB=(0,l.memo)(LB);var DB=s(37810),e6=s(78998),Tf=s(65710),Rm=s(24437);const RB=M.Ay.div.withConfig({displayName:"styles__StyledDownloadPanel",componentId:"sc-s3bv9n-0"})(['width:100%;.flex-row{display:flex;flex-direction:row;align-items:center;}.flex-row-space{display:flex;flex-direction:row;justify-content:space-between;align-items:center;}.flex-row-end{display:flex;flex-direction:row;justify-content:flex-end;}.flex-colum-center{display:flex;flex-direction:column;justify-content:center;align-items:center;}.cancel{transition:all ease-in-out 0.2s;}.download{margin-left:12px;}.upgrade{width:100%;background:linear-gradient(90deg,#FCEAD0 -8.53%,#EDB46C 99.98%);border:none;&:hover:not([class*="is-disabled"]){background:linear-gradient(90deg,#F2D9B6 -8.53%,#E5A450 99.98%);border:none;}.btn-text{color:#61290C;}}.icon-success{width:16px;height:16px;margin-bottom:10px;}.icon-success > *{fill:#23b571;}.icon-close{width:16px;height:16px;position:absolute;top:20px;right:20px;g > path{fill:',";}}.icon-close:hover{cursor:pointer;g > path{fill:",";}}.panel{width:100%;height:auto;padding:0 20px;background:",";position:relative;.state-container{z-index:99;position:absolute;top:0;left:0;transform:unset;background-color:",";}.title{color:",";}.option-container{width:100%;min-height:160px;height:auto;margin:20px 0;.option{height:40px;.title{font-weight:500;}.export-panel-page-group{min-width:200px;justify-content:end;.Radio{margin-right:28px;height:16px;min-height:auto;}}.export-panel-scale-group .Radio{margin-right:20px;height:16px;min-height:auto;}.export-panel-page-group .Radio:last-child,.export-panel-scale-group .Radio:last-child{margin-right:0;}}.state-option{margin-top:12px;.select{width:160px;display:flex;justify-content:space-between;border:1px solid ",";}}}.btn-container{height:48px;}.success-container{width:100%;height:100%;.download-link{color:",";text-decoration:underline;&:hover{color:",";}}p:nth-child(4){font-size:10px;line-height:14px;padding-top:28px;padding-left:69px;padding-right:72px;text-align:center;}}.qrcode-container{width:100%;height:100%;padding:0 44px;&:lang(en){display:flex;flex-direction:column;}.left{height:100%;width:106px;p{margin-top:4px;text-align:center;color:",";}&:lang(en){order:2;margin-bottom:15px;margin-top:10px;p{white-space:nowrap;}}}.qrcode{padding:5px;display:flex;border:1px solid ",";}.right{height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;&:lang(en){order:1;}}.download-link{color:",";text-decoration:underline;&:hover{color:",";}}}.loading-container{width:100%;height:100%;margin-top:0;margin-left:0;.icon-loading{width:18px;height:18px;margin-bottom:12px;}}.overview-container{width:100%;height:200px;padding-top:20px;.option{margin-bottom:24px;p{line-height:17px;font-size:12px;}p.title{font-weight:500;margin-bottom:4px;}.svg-icon{width:28px;height:28px;}.svg-icon > *{fill:",";}.description{width:290px;margin-left:8px;p{color:",";&.title{color:",";}}}}}}.panel.showTip{border-radius:0;}.panel.dark .option-container .option .Switch > button{border:unset;}.bottom-tips{background-color:",";padding:6px 24px;color:",";display:flex;justify-content:space-between;align-items:center;a{margin-left:10px;color:#ff6161;font-weight:500;}a:hover{color:#db5659;}.arrow-icon{width:7px;height:11px;margin-left:8px;margin-bottom:2px;vertical-align:middle;}}"],e=>e.theme.color_text_L2,e=>e.theme.color_text_L2,e=>e.theme.color_bg_white,e=>e.theme.color_bg_white,e=>e.theme.color_text_L1,e=>e.theme.color_bg_border_02,e=>e.theme.color_text_link_normal,e=>e.theme.color_text_link_normal,e=>e.theme.color_text_L2,e=>e.theme.color_text_disabled01,e=>e.theme.color_text_link_normal,e=>e.theme.color_text_link_normal,e=>e.theme.color_text_L3,e=>e.theme.color_text_L2,e=>e.theme.color_text_L1,e=>e.theme.color_bg_canvas,e=>e.theme.color_text_L2),BB=M.Ay.div.withConfig({displayName:"styles__StyledDownloadPanelBuyMe",componentId:"sc-s3bv9n-1"})(["position:relative;.buyme-btn{border-radius:44px;width:84px;height:24px;display:flex;font-weight:600;justify-content:center;align-items:center;cursor:pointer;color:",";background:",";&:hover{background:",";}}"],e=>e.theme.free_buyme_btn_color,e=>e.theme.free_buyme_btn_bg_color,e=>e.theme.free_buyme_btn_bg_color_hover),UB=e=>{var t;let{theme:n,currentTag:a,type:i,downloadable:c,downloadFileName:d,loading:p,pdfDimensionExceeded:h,progress:m,screenStateList:x,currentProject:v,currentUser:A,dispatch:k,screenSelection:R,canvasDimensionExceeded:F,currentOrg:Z}=e;const G=v==null?void 0:v.is_org_project;let ee=!1,ce=!0;if(G){const{plan:Sr}=(0,tr.rM)(Z);ce=Sr===rs.Sj.OrgFree||Sr===rs.Sj.OrgExpired,ee=!ce}else ce=is.tz.InitialUser(A).planSdk.prototypePlan.getUserPlan()===rs.L1.Free,ee=!ce;const[se,he]=(0,l.useState)((0,Pt.Yt)(dt.XY.DOWNLOADTYPE,dt.y5.PAGE,Pt.qW.String)),[ve,Te]=(0,l.useState)(dt.g6.CURRENT_PAGE),[xe,Fe]=(0,l.useState)((0,Pt.Yt)(dt.XY.SCALE,1,Pt.qW.Number)),[et,Ke]=(0,l.useState)((0,Pt.Yt)(dt.XY.FULLSCREEN,!1,Pt.qW.Boolean)),Qe=et,[nt,Xe]=(0,l.useState)((0,Pt.Yt)(dt.XY.SHELL,!1,Pt.qW.Boolean)),[lt,Ct]=(0,l.useState)((0,Pt.Yt)(dt.XY.STICKY,!1,Pt.qW.Boolean)),[St,hn]=(0,l.useState)((0,Pt.Yt)(dt.XY.CANVASNAME,!1,Pt.qW.Boolean)),[Cn,Mt]=(0,l.useState)((t=x[0])==null?void 0:t.cid),[Et,Co]=(0,l.useState)((0,Pt.Yt)(dt.XY.STATE,dt.Gd.ALL,Pt.qW.String)),Pn=p,ro=!p&&m===100&&a!==dt.xk.APK,Io=!p&&m===100&&a===dt.xk.APK,mo=[dt.xk.PNG,dt.xk.PDF,dt.xk.DESIGN2].includes(a),So=[dt.xk.HTMLZIP,dt.xk.APK,dt.xk.SOURCE_FILE].includes(a),ho=!ee&&[dt.xk.PNG,dt.xk.PDF].includes(a),No=!ENV.IS_MO&&G&&!ce&&a===dt.xk.APK,Xo=ho||No,Ta=a===dt.xk.SOURCE_FILE&&G&&!(0,e6.C8)({currentOrg:Z,userId:A.id}),Da=(0,Rm.FT)(R);(0,l.useEffect)(()=>{a===dt.xk.PDF&&xe>2&&(Fe(2),(0,Pt.a0)(dt.XY.SCALE,2,Pt.qW.Number))},[a,xe]);const xr={[dt.xk.PNG]:()=>{const Sr={source:"\u7F16\u8F91\u533A",project_type:"\u539F\u578B V8",project_name:v.name,project_cid:v.cid,download_type:dt.xk.PNG,export_image_times:xe+"x",download_page_type:ve===dt.g6.CURRENT_PAGE?"\u5F53\u524D\u9875":"\u6240\u6709\u9875\u9762",include_device_frame:nt?1:0,outside_artboard_symbol_included:et?1:0,comment_include:lt?1:0,include_page_name:St?1:0,download_source:"\u539F\u578B\u5BFC\u51FA"};ve===dt.g6.ALL_PAGE?k({type:"entry:export:all:page",payload:{scale:xe,format:"png",isWithDeviceFrame:nt,isExportSticky:lt,downloadPageType:se,isIncludeCanvasName:St,trackParams:Sr}}):k({type:"entry:export:page",payload:{pageToExportKeyList:Da,scale:xe,format:"png",isWithDeviceFrame:nt,isExportSticky:lt,downloadPageType:se,isIncludeCanvasName:St,trackParams:Sr}})},[dt.xk.PDF]:()=>{const Sr={source:"\u7F16\u8F91\u533A",project_type:"\u539F\u578B V8",project_name:v.name,project_cid:v.cid,download_type:dt.xk.PDF,include_device_frame:nt?1:0,outside_artboard_symbol_included:et?1:0,comment_include:lt?1:0,include_page_name:St?1:0,download_source:"\u539F\u578B\u5BFC\u51FA"};ve===dt.g6.ALL_PAGE?k({type:"entry:export:all:page",payload:{scale:xe,format:"pdf",isWithDeviceFrame:nt,isExportSticky:lt,downloadPageType:se,isIncludeCanvasName:St,trackParams:Sr}}):k({type:"entry:export:page",payload:{pageToExportKeyList:Da,scale:xe,format:"pdf",isWithDeviceFrame:nt,isExportSticky:lt,downloadPageType:se,isIncludeCanvasName:St,trackParams:Sr}})},[dt.xk.HTMLZIP]:()=>{const Sr={source:"\u7F16\u8F91\u533A",project_type:"\u539F\u578B V8",project_name:v.name,project_cid:v.cid,download_type:dt.xk.HTMLZIP,download_source:"\u539F\u578B\u5BFC\u51FA"};k({type:"entry:download:project",payload:{type:dt.xk.HTMLZIP,trackParams:Sr}})},[dt.xk.APK]:()=>{const Sr={source:"\u7F16\u8F91\u533A",project_type:"\u539F\u578B V8",project_name:v.name,project_cid:v.cid,download_type:dt.xk.APK,download_source:"\u539F\u578B\u5BFC\u51FA"};k({type:"entry:download:project",payload:{type:dt.xk.APK,trackParams:Sr}})},[dt.xk.SOURCE_FILE]:()=>{const Sr={source:"\u7F16\u8F91\u533A",project_type:"\u539F\u578B V8",project_name:v.name,project_cid:v.cid,download_type:dt.xk.SOURCE_FILE,download_source:"\u539F\u578B\u5BFC\u51FA"};k({type:"entry:download:project",payload:{type:dt.xk.SOURCE_FILE,trackParams:Sr}})},[dt.xk.DESIGN2]:()=>{MB.global.experienceLoginModalHelper("isSave")||(k({type:"modal:update:state",payload:{canvasConvertedToPixsoModal:{isOpen:!0,pageType:ve}}}),Wa())}},Wa=()=>{k({type:"export:update:state",payload:{isExportMenuShow:!1}})},Dr=async()=>{xr[a]();const Sr={[dt.xk.PNG]:"png",[dt.xk.PDF]:"pdf",[dt.xk.APK]:"apk",[dt.xk.HTMLZIP]:"html",[dt.xk.SOURCE_FILE]:I18N.ExportManager.source_file};Z&&Object.keys(Sr).includes(a)&&await(0,Td.VX)({actionType:4,action:1004,orgCid:Z.cid,extra:{user_name:A.name,project_name:v.name,project_download_type:Sr[a]}}),xl.U4.protoDownloadTrack(A==null?void 0:A.id,a,"\u53F3\u4E0A\u89D2\u6309\u94AE")},Wr=Sr=>{const{target:oi}=Sr;document.querySelector("#export-panel").contains(oi)||oi.closest(".WorkspaceSelectMenu")||oi.closest(".ai-semantic-export")||oi.closest("#design-export")||oi.closest(".OrderChargeOverlay")||k({type:"entry:toolbar:open:export_menu",payload:{open:!1}})},hi=()=>{k({type:"export:update:state",payload:{loading:!1,progress:0}})};return(0,o.jsxs)(RB,{children:[(0,o.jsxs)("div",{className:"panel "+(Xo?"showTip":"")+" "+(n==="dark"?"dark":""),children:[mo&&(0,o.jsx)(OB,{currentTag:a,screenStateList:x,onDownloadClick:Dr,onCancelClick:Wa,downloadPageType:se,setDownloadPageType:he,page:ve,setPage:Te,scale:Number(xe),setScale:Fe,isFullScreen:et,setIsFullScreen:Ke,isShowShell:nt,shouldIsShowShellBeDisabled:Qe,setIsShowShell:Xe,currentStateCid:Cn,setCurrentStateCid:Mt,screenSelection:Da,morePageStateCid:Et,setMorePageStateCid:Co,isExportSticky:lt,setIsExportSticky:Ct,isIncludeCanvasName:St,setIsIncludeCanvasName:hn,isFreePlan:ce}),So&&(0,o.jsx)(FB,{currentTag:a,isOrgProject:G,currentUser:A,onDownloadClick:Dr,onCancelClick:Wa,isFreePlan:ce,currentOrg:Z,showDisabledDownloadSourceFile:Ta}),ro&&(0,o.jsx)(zB,{pdfDimensionExceeded:h,canvasDimensionExceeded:F,onClose:hi,type:i,downloadable:c,downloadFileName:d}),Io&&(0,o.jsx)(WB,{onClose:hi,downloadLink:c,downloadFileName:d,theme:n,currentProject:v}),Pn&&(0,o.jsx)(VB,{currentTag:a,page:ve,progress:m})]}),ho&&(0,o.jsx)(HB,{currentTag:a,currentOrg:Z,theme:n}),No&&(0,o.jsx)(u7,{text:I18N.ExportManager.apk_download_font_alert}),Ta&&(0,o.jsx)(u7,{text:I18N.ExportManager.disabled_export_source_file_tips}),(0,o.jsx)(Ls.A,{target:document,onClick:(0,Ls.t)(Wr,{capture:!0})})]})},OB=e=>{let{currentTag:t,onCancelClick:n,onDownloadClick:a,page:i,scale:c,isShowShell:d,setPage:p,setScale:h,setIsShowShell:m,screenSelection:x,isFreePlan:v,downloadPageType:A,setDownloadPageType:k,isExportSticky:R,setIsExportSticky:F,isIncludeCanvasName:Z,setIsIncludeCanvasName:G}=e;const ee=(0,Rm.FT)(x),ce=ee.length>1,se=[dt.xk.PNG,dt.xk.PDF].includes(t);return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("div",{className:"option-container",children:[(0,o.jsxs)("div",{className:"flex-row-space option",children:[(0,o.jsx)("span",{className:"title",children:I18N.ExportManager.export_scope_title}),(0,o.jsx)(co.A,{className:"export-panel-page-group",size:"small",optionList:Tf.lJ.map(he=>ce&&he.value===dt.g6.CURRENT_PAGE?{...he,label:I18N.ExportManager.selected_artboard+"\uFF08"+ee.length+"\uFF09"}:{...he,label:I18N.ExportManager[he.label]}),value:i,onToggle:he=>p(he)})]}),se&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("div",{className:"flex-row-space option",children:[(0,o.jsx)("span",{className:"title",children:I18N.ExportManager.export_type_title}),(0,o.jsx)(co.A,{className:"export-panel-page-group",size:"small",optionList:[{label:I18N.ExportManager.artboard,value:dt.y5.PAGE},{label:I18N.ExportManager.page,value:dt.y5.CANVAS}],value:A,onToggle:he=>{k(he),(0,Pt.a0)(dt.XY.DOWNLOADTYPE,he,Pt.qW.String)}})]}),(0,o.jsxs)("div",{className:"flex-row-space option",children:[(0,o.jsx)("span",{className:"title",children:t===dt.xk.PNG?I18N.ExportManager.export_image_scaling:I18N.ExportManager.export_pdf_scaling}),(0,o.jsx)(gc.A,{isShowTips:v,content:ENV.IS_ON_PREMISES?"":I18N.ExportManager.export_watermark_tip,direction:"up",maxWidth:ENV.IS_MO?"195px":"100px",children:(0,o.jsx)("div",{children:(0,o.jsx)(co.A,{className:"export-panel-scale-group",size:"small",optionList:(0,Tf.z4)(t,v),value:c,onToggle:he=>{h(he),(0,Pt.a0)(dt.XY.SCALE,he,Pt.qW.Number)}})})})]}),A===dt.y5.CANVAS?(0,o.jsxs)("div",{className:"flex-row-space option",children:[(0,o.jsx)("span",{className:"title",children:I18N.ExportManager.include_note}),(0,o.jsx)(au.A,{size:"small",isIOS:!0,isChecked:R,onChange:he=>{F(he),(0,Pt.a0)(dt.XY.STICKY,he,Pt.qW.Boolean)}})]}):(0,o.jsxs)("div",{className:"flex-row-space option",children:[(0,o.jsx)("span",{className:"title",children:I18N.ExportManager.show_device_shell}),(0,o.jsx)(au.A,{size:"small",isIOS:!0,isChecked:d,isDisabled:!1,onChange:he=>{m(he),(0,Pt.a0)(dt.XY.SHELL,he,Pt.qW.Boolean)}})]}),A===dt.y5.CANVAS&&(0,o.jsxs)("div",{className:"flex-row-space option",children:[(0,o.jsx)("span",{className:"title",children:I18N.ExportManager.export_include_artboard_name}),(0,o.jsx)(au.A,{size:"small",isIOS:!0,isChecked:Z,onChange:he=>{G(he),(0,Pt.a0)(dt.XY.CANVASNAME,he,Pt.qW.Boolean)}})]})]})]}),(0,o.jsxs)("div",{className:"flex-row-end btn-container",children:[(0,o.jsx)(ll.tA,{className:"cancel",onClick:n,children:I18N.ExportManager.cancel}),(0,o.jsx)(ll.jn,{className:"download",onClick:a,children:I18N.ExportManager.export})]})]})},FB=e=>{let{currentTag:t,onCancelClick:n,onDownloadClick:a,isOrgProject:i,currentUser:c,isFreePlan:d,currentOrg:p,showDisabledDownloadSourceFile:h}=e;const x=is.tz.InitialUser(c).planSdk.prototypePlan.getUserPlan(),v=x===rs.L1.Free,A=t===dt.xk.HTMLZIP,k=t===dt.xk.APK,R=t===dt.xk.SOURCE_FILE,F=k&&(!i||i&&d),Z=A&&(!i&&v||i&&d),G=[rs.L1.Lifetime,rs.L1.PremiumLifetime].includes(x),ee=R&&(!i&&!G||i&&d),ce=!F&&!Z&&!ee,se=()=>{let he="",ve="";t===dt.xk.HTMLZIP?p?(he="\u7F16\u8F91\u533A-v8_\u4F01\u4E1A_\u5BFC\u51FA_\u79BB\u7EBF\u6F14\u793A\u5305",ve="workspace-v8_org_download_html"):(he="\u7F16\u8F91\u533A-v8_\u4E2A\u4EBA_\u5BFC\u51FA_\u79BB\u7EBF\u6F14\u793A\u5305",ve="workspace-v8_solo_download_html"):t===dt.xk.APK?(he="\u7F16\u8F91\u533A-v8_\u4F01\u4E1A_\u5BFC\u51FA_apk",ve="workspace-v8_org_apk"):t===dt.xk.SOURCE_FILE&&(he="\u7F16\u8F91\u533A-v8_\u4F01\u4E1A_\u5BFC\u51FA_\u6E90\u6587\u4EF6",ve="workspace-v8_org_download_source");const Te=(0,Ra.l)(p,he,ve);k&&!p?(Te.mode="org",Te.isSelectOrg=!0):R&&!p&&(Te.immediateUse="solo_lifeTime"),MB.global.popupHelper.chargeAsync(Te)};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("div",{className:"overview-container",children:[A&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("div",{className:"flex-row option",children:[(0,o.jsx)(xt.C,{name:"design/export/offline"}),(0,o.jsxs)("div",{className:"description",children:[(0,o.jsx)("p",{className:"title",children:I18N.ExportManager.offline_presentation}),(0,o.jsx)("p",{children:I18N.ExportManager.offline_presentation_description})]})]}),(0,o.jsxs)("div",{className:"flex-row option",children:[(0,o.jsx)(xt.C,{name:"design/export/package"}),(0,o.jsxs)("div",{className:"description",children:[(0,o.jsx)("p",{className:"title",children:I18N.ExportManager.versioning}),(0,o.jsx)("p",{children:I18N.ExportManager.versioning_description})]})]})]}),k&&(0,o.jsxs)("div",{className:"flex-row option",children:[(0,o.jsx)(xt.C,{name:"design/export/phone"}),(0,o.jsxs)("div",{className:"description",children:[(0,o.jsx)("p",{className:"title",children:I18N.ExportManager.simulate_prototype_on_real_device}),(0,o.jsx)("p",{children:I18N.ExportManager.simulate_prototype_on_real_device_description})]})]}),R&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("div",{className:"flex-row option",children:[(0,o.jsx)(xt.C,{name:"design/export/save"}),(0,o.jsxs)("div",{className:"description",children:[(0,o.jsx)("p",{className:"title",children:I18N.ExportManager.save_to_local}),(0,o.jsx)("p",{children:I18N.ExportManager.save_to_local_description})]})]}),(0,o.jsxs)("div",{className:"flex-row option",children:[(0,o.jsx)(xt.C,{name:"design/export/edit"}),(0,o.jsxs)("div",{className:"description",children:[(0,o.jsx)("p",{className:"title",children:I18N.ExportManager.edit_after_import}),(0,o.jsx)("p",{children:I18N.ExportManager.edit_after_import_description})]})]})]})]}),ce&&(0,o.jsxs)("div",{className:"flex-row-end btn-container",children:[(0,o.jsx)(ll.tA,{className:"cancel",onClick:n,children:I18N.ExportManager.cancel}),(0,o.jsx)(ll.jn,{className:"download",onClick:a,disabled:h,children:I18N.ExportManager.export})]}),F&&(0,o.jsx)("div",{className:"flex-row-end btn-container",children:(0,o.jsx)(ll.Qi,{className:"upgrade",onClick:se,children:i?I18N.ExportManager.upgrade_to_unlock_more_features:I18N.ExportManager.upgrade_to_enterprise_plan_now})}),Z&&(0,o.jsx)("div",{className:"flex-row-end btn-container",children:(0,o.jsx)(ll.Qi,{className:"upgrade",onClick:se,children:i?I18N.ExportManager.upgrade_to_unlock_more_features:I18N.ExportManager.upgrade_to_download_html5})}),ee&&(0,o.jsx)("div",{className:"flex-row-end btn-container",children:(0,o.jsx)(ll.Qi,{className:"upgrade",onClick:se,children:i?I18N.ExportManager.upgrade_to_unlock_more_features:I18N.ExportManager.upgrade_to_lifetime_plan_now})})]})},VB=e=>{let{currentTag:t,page:n,progress:a}=e;return(0,o.jsxs)("div",{className:"state-container loading-container flex-colum-center",children:[(0,o.jsx)("img",{className:"icon-loading",src:"/mb-proto2/images/loading.gif"}),t===dt.xk.PNG&&n!==dt.g6.CURRENT_PAGE?(0,o.jsxs)("p",{children:[I18N.ExportManager.file_exporting_with_progress_will_be_slow,a,"%"]}):(0,o.jsxs)("p",{children:[I18N.ExportManager.file_exporting_with_progress,a,"%"]})]})},zB=e=>{let{onClose:t,downloadable:n,downloadFileName:a,canvasDimensionExceeded:i}=e;const c=()=>{(0,e6.Q)(n,a)};return(0,o.jsxs)("div",{className:"state-container success-container flex-colum-center",children:[(0,o.jsx)(xt.C,{className:"icon-success",name:"design/export/success"}),(0,o.jsx)("p",{children:I18N.ExportManager.start_exporting}),(0,o.jsxs)("p",{children:[I18N.ExportManager.if_it_doesnt_work,(0,o.jsx)("a",{className:"download-link",onClick:()=>c(),children:I18N.ExportManager.click_here_to_download})]}),i&&(0,o.jsx)("p",{children:I18N.ExportManager.large_page_can_not_export_png}),(0,o.jsx)(xt.C,{className:"icon-close",name:"design/export/close",onClick:()=>{t()}})]})},WB=e=>{let{onClose:t,downloadLink:n,downloadFileName:a,theme:i,currentProject:c}=e;const d="https://"+window.location.host+"/proto/"+(c==null?void 0:c.access_token)+"?via=qrcode";return(0,o.jsxs)("div",{className:"state-container qrcode-container flex-row-space",children:[(0,o.jsxs)("div",{className:"left flex-colum-center",children:[(0,o.jsx)(DB.A,{className:"qrcode",text:d,width:94,height:94,foreground:bg.A[i].color_text_L1,background:bg.A[i].color_bg_white}),(0,o.jsx)("p",{children:I18N.ExportManager.scan_to_preview_prototype})]}),(0,o.jsxs)("div",{className:"right",children:[(0,o.jsx)(xt.C,{className:"icon-success",name:"design/export/success"}),(0,o.jsx)("p",{children:I18N.ExportManager.start_exporting}),(0,o.jsxs)("p",{children:[I18N.ExportManager.if_it_doesnt_work,(0,o.jsx)("a",{className:"download-link",onClick:()=>{(0,e6.Q)(n,a)},children:I18N.ExportManager.click_here_to_download})]})]}),(0,o.jsx)(xt.C,{className:"icon-close",name:"design/export/close",onClick:()=>{t()}})]})},HB=e=>{let{currentTag:t,currentOrg:n,theme:a}=e;const i=()=>{let d="",p="";t===dt.xk.PDF?n?(d="\u7F16\u8F91\u533A-v8_\u4F01\u4E1A_\u5BFC\u51FA_pdf",p="workspace-v8_org_download_pdf"):(d="\u7F16\u8F91\u533A-v8_\u4E2A\u4EBA_\u5BFC\u51FA_pdf",p="workspace-v8_solo_download_pdf"):t===dt.xk.PNG&&(n?(d="\u7F16\u8F91\u533A-v8_\u4F01\u4E1A_\u5BFC\u51FA_png",p="workspace-v8_org_download_png"):(d="\u7F16\u8F91\u533A-v8_\u4E2A\u4EBA_\u5BFC\u51FA_png",p="workspace-v8_solo_download_png")),MB.global.popupHelper.chargeAsync((0,Ra.l)(n,d,p))},c=a==="dark";return(0,o.jsxs)("div",{className:"bottom-tips",children:[""+I18N.ExportManager.upgrade_to_remove_watermark.replace(/{fileType}/,t===dt.xk.PNG?I18N.ExportManager.PNG:I18N.ExportManager.PDF),(0,o.jsx)(BB,{isDark:c,children:(0,o.jsxs)("div",{className:"buyme-btn",onClick:i,children:[(0,o.jsx)(xt.C,{name:"toolbar/upgrade_"+a,size:16,isColorPure:!0}),(0,o.jsx)("div",{className:"text",children:I18N.FreeUpgrade.free})]})})]})},u7=e=>{let{text:t}=e;return(0,o.jsx)("div",{className:"bottom-tips",children:t})},GB=UB;var Pf=s(75862);const ZB=(0,I.Mz)([te.O4,Pf.d1,me.PL,me.HW,rt.Hs,me.wA],(e,t,n,a,i,c)=>{const{type:d,downloadable:p,downloadFileName:h,loading:m,progress:x,pdfDimensionExceeded:v,canvasDimensionExceeded:A}=t,{plan:k,trial:R}=(0,tr.xR)(a,c);return{theme:e,type:d,downloadable:p,downloadFileName:h,loading:m,pdfDimensionExceeded:v,progress:x,currentProject:n||{},currentUser:a,screenStateList:[],screenSelection:i,plan:k,trial:R,canvasDimensionExceeded:A,currentOrg:c}}),KB=(0,r.Ng)(e=>ZB(e))(GB),YB=M.Ay.div.withConfig({displayName:"styles__StyledExportPanel",componentId:"sc-12bxh4g-0"})(["min-width:376px;background:",";color:",";position:absolute;transform:translateX(-50%);left:-90px;top:40px;border-radius:8px;border:1px solid ",";box-shadow:",";overflow:hidden;"],e=>e.theme.color_bg_white,e=>e.theme.color_text_L2,e=>e.theme.color_bg_border_02,e=>e.theme.shadow_5),XB=e=>{let{dispatch:t}=e;const n=(0,r.d4)(Pf.OB),a=document.getElementById("design-export"),i=(0,l.useMemo)(()=>ENV.IS_ON_PREMISES?Tf.$S.filter(d=>!["source_file","design2"].includes(d.dataType)):Tf.$S,[]);(0,l.useEffect)(()=>()=>{t({type:"export:update:state",payload:{currentExportTag:"png"}})},[t]);const c=(0,l.useCallback)(d=>{t({type:"export:update:state",payload:{type:d,loading:!1,progress:0,currentExportTag:d}})},[t]);return a?(0,Ki.createPortal)((0,o.jsxs)(YB,{id:"export-panel",className:"export-panel-menu",children:[(0,o.jsx)(jB,{menuMap:i.map(d=>({...d,text:I18N.ExportManager[d.text]})),currentTag:n,onClick:d=>c(d)}),(0,o.jsx)(KB,{currentTag:n})]}),a):null},QB=(0,I.Mz)([Pf.d1],e=>{let{isExportMenuShow:t}=e;return{isExportMenuShow:t}});class h7 extends l.Component{render(){const{isExportMenuShow:t,dispatch:n}=this.props;return t?(0,o.jsx)(XB,{dispatch:n}):null}}(0,B.A)(h7,"propTypes",{isExportMenuShow:ya().bool,dispatch:ya().func});const JB=(0,r.Ng)(e=>QB(e))(h7);var Lf=s(28173),Oc=s(94590),qB=s(20014),$B=s(99863);const eU=(0,M.AH)(["width:32px;height:32px;border-radius:6px;display:flex;justify-content:center;align-items:center;cursor:pointer;"]),tU=M.Ay.div.withConfig({displayName:"styles__StyledSideBar",componentId:"sc-ornjz5-0"})(["display:flex;flex-direction:column;align-items:center;pointer-events:auto;z-index:4;.top{width:44px;border-radius:8px;padding:6px 0;overflow:hidden;background:",";border:1px solid ",";box-shadow:",";display:flex;flex-direction:column;align-items:center;}.nav-button{",";transition:background-color 0.2s ease-out;position:relative;margin-bottom:6px;color:",";&:last-child{margin-bottom:0;}&.layout{width:32px;height:24px;}.set-layout-dropdown{width:100%;height:100%;display:flex;align-items:center;justify-content:center;.svg-icon{width:24px;height:24px;}}.icon{width:32px;height:32px;}&.builtin{.item-icon{path{stroke:",";}}&.active{.item-icon{path{fill:",";stroke:none;}}}&.disabled{.item-icon{path{stroke:",";}}&.active{.item-icon{path{fill:",";stroke:none;}}}}}&.disabled{color:",";cursor:not-allowed;}&:not(.disabled):hover{background-color:",";}&:not(.disabled).active{background:",";}}.more-graph-down{margin-bottom:4px;.more-opener{margin-top:0;.item-label{display:none;}}}"],e=>e.theme.color_bg_white,e=>e.theme.color_bg_border_01,e=>e.theme.shadow_m,eU,e=>e.theme.color_text_L1,e=>e.theme.color_text_L1,e=>e.theme.color_text_L1,e=>e.theme.color_text_disabled01,e=>e.theme.color_text_disabled01,e=>e.theme.color_text_disabled01,e=>e.theme.color_navigation_hover,e=>e.theme.color_navigation_active);var Dg=s(8342);class nU extends l.PureComponent{constructor(){super(...arguments),(0,B.A)(this,"getOptionList",()=>[{key:Dl.lS.Builtin,label:I18N.LeftSidePanel.widget,icon:"left_panel/nav/builtin",shortCut:"1",isColorPure:!0},{key:Dl.lS.Page,label:I18N.LeftSidePanel.screens,icon:"left_panel/nav/page",shortCut:"2"},{key:Dl.lS.Icon,label:I18N.LeftSidePanel.icon,icon:"left_panel/nav/icon",shortCut:"3"},{key:Dl.lS.Asset,label:I18N.LeftSidePanel.image,icon:"left_panel/nav/asset",shortCut:"4"},{key:Dl.lS.Template,label:I18N.LeftSidePanel.master,icon:"left_panel/nav/template",shortCut:"5"}]),(0,B.A)(this,"handleTogglePopup",t=>{if(this.isClickChangeLocked)return;const n=(0,Uc.gu)();if(t===Dl.lS.AI&&n){this.props.dispatch({type:i2.X.AIOpenModal,payload:{type:Ag.SR.AIAssistant}}),(0,Oc.kX)({operation_type:Oc.bZ[t]});return}const{isEditingBasket:a,isEditingCombo:i,dispatch:c,currentDesignOptions:{isExperience:d},isOrgProject:p,currentUser:h}=this.props;t===Dl.lS.Template?(0,Dg.c)(I18N)[Va.c.GUIDE_2506_LIB_INTERGRATED_RIGHT_LAYOUT].howToShow({currentUser:h}):(MB.commonGuideHelper.closeGuide(Va.c.GUIDE_2506_LIB_INTERGRATED_RIGHT_LAYOUT),MB.commonGuideHelper.markGuideAsRead(Va.c.GUIDE_2506_LIB_INTERGRATED_RIGHT_LAYOUT)),t===Dl.lS.Asset&&d&&c({type:"image-panel:update:state",payload:{navIndex:p?2:1}}),!(t===Dl.lS.Page&&(a||i))&&(t===Dl.lS.Template&&i||(c({type:"entry:toggle:popup:panel",payload:{name:t}}),c({type:"entry:search-panel:clear:state"}),(0,Oc.kX)({operation_type:Oc.bZ[t]})))}),(0,B.A)(this,"handleClick",t=>{const{name:n}=t.currentTarget.dataset;this.handleTogglePopup(n)})}componentDidMount(){const{currentUser:t,currentPopupPanel:n}=this.props;n===Dl.lS.Template&&(0,Dg.c)(I18N)[Va.c.GUIDE_2506_LIB_INTERGRATED_RIGHT_LAYOUT].howToShow({currentUser:t})}componentWillUnmount(){MB.commonGuideHelper.closeGuide(Va.c.GUIDE_2506_LIB_INTERGRATED_RIGHT_LAYOUT)}render(){const{currentPopupPanel:t,isEditingBasket:n,isEditingCombo:a,layout:i,isLoggedIn:c,isEmptyScreen:d}=this.props;return(0,o.jsx)(tU,{className:"sideBar",children:(0,o.jsxs)("div",{className:"top",children:[this.getOptionList().map(p=>{let{key:h,label:m,icon:x,shortCut:v,isColorPure:A}=p;if(h===Dl.lS.Page&&(n||a)||h===Dl.lS.Template&&a||h===Dl.lS.AI&&!(!n&&!a&&c))return null;const k=v?(0,Ti.u)({text:h===Dl.lS.AI?I18N.LeftSidePanel.ai_label:m,key:v}):m,R=A||h===Dl.lS.AI&&t!==Dl.lS.AI,F=t===h;return(0,o.jsx)(Ti.A,{content:k,direction:"left",children:(0,o.jsx)("a",{"data-name":h,className:C()("nav-button",h,{active:F},d&&"disabled"),onClick:d?null:()=>this.handleTogglePopup(h),children:(0,o.jsx)(xt.C,{className:"item-icon",name:F?x+"/selected":x,isColorPure:R})})},h)}),(0,o.jsx)(Ti.A,{content:I18N.WorkspaceGuidePane.tool,direction:"left",children:(0,o.jsx)("a",{className:"more-graph-down",children:(0,o.jsx)($B.j,{direction:"left",portalClassName:".guide_popup_panel .popups-panel"})})}),(0,o.jsx)("a",{className:"nav-button layout",children:(0,o.jsx)(qB.e,{layout:i})})]})})}}const oU=(0,I.Mz)([rt.OW,Me.r,me.W4,me.PL,te.bP,me.HW,me.wA,Lf.C,te.MZ],(e,t,n,a,i,c,d,p,h)=>{let{isEmptyScreen:m}=p;const{isEditingBasket:x,isEditingMuban:v,isEditingCombo:A}=t,{is_org_project:k}=a,R=!!(c!=null&&c.id);return{currentPopupPanel:e,isEditingBasket:x||v,isEditingCombo:A,currentDesignOptions:n,isOrgProject:k,layout:i,isLoggedIn:R,isEmptyScreen:m,currentUser:c,currentOrg:d,layoutV9:h}}),aU=(0,r.Ng)(e=>oU(e))(nU);var rU=s(46573);const iU=M.Ay.div.withConfig({displayName:"styles__StyledResourcesPanel",componentId:"sc-1qiqks-0"})(["position:absolute;z-index:104;margin-right:14px;display:flex;flex-direction:row-reverse;.sideBar{margin-left:8px;}"]);var sU=s(47695);class lU extends l.PureComponent{componentDidMount(){var t,n;const{dispatch:a,layoutV9:i}=this.props,c=(0,sU.XM)();i==="recommend"&&!c&&!((t=MB.commonGuideHelper)!=null&&t.checkGuideHasShown(Va.c.GUIDE_NOVICE_V9_2408))&&!((n=MB.commonGuideHelper)!=null&&n.checkGuideHasShown(Va.c.GUIDE_NOVICE_V9_2408_STEP_1))&&setTimeout(()=>{a({type:"left-panel:collapse:panel:show"})},0)}render(){const{isShowRightPanel:t,zIndex:n,isEditingPanel:a}=this.props;return(0,o.jsxs)(iU,{className:Va.c.GUIDE_POPUP_PANEL,style:{right:t?yl.xM:0,top:a?126:88,zIndex:n},children:[(0,o.jsx)(aU,{}),(0,o.jsx)(rU.A,{})]})}}const cU=(0,I.Mz)([gl.UI,rt.OW,rt.dG,Me.r,Lf.C,te.MZ],(e,t,n,a,i,c)=>{let{isEditingBasket:d,isEditingMuban:p}=a,{isEmptyScreen:h}=i;const m=yl.pq+n.indexOf(t);return{isEditingPanel:d||p,isShowRightPanel:e&&!h,zIndex:m,layoutV9:c}}),dU=(0,r.Ng)(e=>cU(e))(lU);var pU=s(99587),uU=s(98226),hU=s(27480),m7=s(28064),mU=Object.defineProperty,fU=Object.defineProperties,gU=Object.getOwnPropertyDescriptors,Rg=Object.getOwnPropertySymbols,f7=Object.prototype.hasOwnProperty,g7=Object.prototype.propertyIsEnumerable,y7=(e,t,n)=>t in e?mU(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,t6=(e,t)=>{for(var n in t||(t={}))f7.call(t,n)&&y7(e,n,t[n]);if(Rg)for(var n of Rg(t))g7.call(t,n)&&y7(e,n,t[n]);return e},yU=(e,t)=>fU(e,gU(t)),xU=(e,t)=>{var n={};for(var a in e)f7.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&Rg)for(var a of Rg(e))t.indexOf(a)<0&&g7.call(e,a)&&(n[a]=e[a]);return n},vU=(0,l.forwardRef)((e,t)=>{var n=e,{size:a,spin:i,style:c}=n,d=xU(n,["size","spin","style"]);const p=t6(t6({width:a||"var(--x-icon-size, 1em)",height:a||"var(--x-icon-size, 1em)",animation:i?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),c);return l.createElement("svg",yU(t6({ref:t,style:p},d),{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),l.createElement("path",{d:"M4.5 13.25C5.19036 13.25 5.75 12.6904 5.75 12C5.75 11.3096 5.19036 10.75 4.5 10.75C3.80964 10.75 3.25 11.3096 3.25 12C3.25 12.6904 3.80964 13.25 4.5 13.25Z",fill:"#B7B9BD"}),l.createElement("path",{d:"M9.5 13.25C10.1904 13.25 10.75 12.6904 10.75 12C10.75 11.3096 10.1904 10.75 9.5 10.75C8.80964 10.75 8.25 11.3096 8.25 12C8.25 12.6904 8.80964 13.25 9.5 13.25Z",fill:"#B7B9BD"}),l.createElement("path",{d:"M4.5 8.25C5.19036 8.25 5.75 7.69036 5.75 7C5.75 6.30964 5.19036 5.75 4.5 5.75C3.80964 5.75 3.25 6.30964 3.25 7C3.25 7.69036 3.80964 8.25 4.5 8.25Z",fill:"#B7B9BD"}),l.createElement("path",{d:"M9.5 8.25C10.1904 8.25 10.75 7.69036 10.75 7C10.75 6.30964 10.1904 5.75 9.5 5.75C8.80964 5.75 8.25 6.30964 8.25 7C8.25 7.69036 8.80964 8.25 9.5 8.25Z",fill:"#B7B9BD"}),l.createElement("path",{d:"M4.5 3.25C5.19036 3.25 5.75 2.69036 5.75 2C5.75 1.30964 5.19036 0.75 4.5 0.75C3.80964 0.75 3.25 1.30964 3.25 2C3.25 2.69036 3.80964 3.25 4.5 3.25Z",fill:"#B7B9BD"}),l.createElement("path",{d:"M9.5 3.25C10.1904 3.25 10.75 2.69036 10.75 2C10.75 1.30964 10.1904 0.75 9.5 0.75C8.80964 0.75 8.25 1.30964 8.25 2C8.25 2.69036 8.80964 3.25 9.5 3.25Z",fill:"#B7B9BD"}))}),Bg=s(28537);const x7=18,cie={light:{bgColor:To.fm.color_bg_white.value_light,borderColor:To.fm.color_bg_border_01.value_light,cornerActiveColor:Ic.af.color_interaction_grid.value,fontColor:To.fm.color_text_disabled01.value_light,line:{normal:To.fm.color_polyline_normal.value_light,hover:To.fm.color_polyline_hover.value_light,active:To.fm.color_polyline_select.value_light},shadowColor:Ic.af.color_ruler_shadow_color.value,longfgColor:To.fm.color_text_disabled01.value_light,shortfgColor:To.fm.color_text_disabled01.value_light,menu:{bgColor:Ic.af.color_text_L1.value,dividerColor:"rgba(255, 255, 255, 0.1)",listItem:{textColor:To.fm.color_text_btn.value_light,hoverTextColor:To.fm.color_text_btn.value_light,disabledTextColor:Ic.af.color_text_disabled01.value,bgColor:Ic.af.color_text_L1.value,hoverBgColor:Ic.af.color_text_L2.value}}},dark:{bgColor:To.fm.color_bg_white.value_dark,borderColor:To.fm.color_bg_border_01.value_dark,cornerActiveColor:Ic.af.color_interaction_grid.value,fontColor:To.fm.color_text_disabled01.value_dark,line:{normal:To.fm.color_polyline_normal.value_dark,hover:To.fm.color_polyline_hover.value_dark,active:To.fm.color_polyline_select.value_dark},shadowColor:Ic.qY.ruler_dark_common_color2.value,longfgColor:To.fm.color_text_disabled01.value_dark,shortfgColor:To.fm.color_text_disabled01.value_dark,menu:{bgColor:Ic.af.color_text_L1.value,dividerColor:"rgba(255, 255, 255, 0.1)",listItem:{textColor:To.fm.color_text_btn.value_light,hoverTextColor:To.fm.color_text_btn.value_light,disabledTextColor:Ic.af.color_text_disabled01.value,bgColor:Ic.af.color_text_L1.value,hoverBgColor:Ic.af.color_text_L2.value}}}},die={distance_line:26,distance_left:18,distance_right:18,distance_top:18,distance_bottom:48,guide_width:281,guide_height:284},pie=2,uie={bgColor:"rgba(225,225,225)",longfgColor:"#babbbc",shortfgColor:"#c8cdd0",fontColor:"#7d8694",shadowColor:"#f2f2f2",line:{normal:"rgba(255, 19, 19, 0.5)",hover:"#ff1313",active:"#1684fc"},borderColor:"#dadadc",cornerActiveColor:"rgb(235, 86, 72, 0.6)"},hie=(0,o.jsx)("svg",{width:"10",height:"10",xmlns:"http://www.w3.org/2000/svg",children:(0,o.jsx)("path",{d:"M1 5.066c0 .211.07.39.212.538L3.346 7.78A.699.699 0 0 0 3.872 8a.69.69 0 0 0 .517-.221l4.39-4.49A.731.731 0 0 0 9 2.753a.717.717 0 0 0-.22-.532A.714.714 0 0 0 8.255 2a.714.714 0 0 0-.524.221l-3.86 3.955L2.26 4.528a.714.714 0 0 0-.524-.221.714.714 0 0 0-.524.221.749.749 0 0 0-.212.538z",fill:"#415058",fillRule:"evenodd"})}),mie={"zh-CN":{vertical:"\u7EB5\u5411",horizontal:"\u6A2A\u5411",show_ruler:"\u663E\u793A\u6807\u5C3A",show_refer_line:"\u663E\u793A\u53C2\u8003\u7EBF",remove_all:"\u5220\u9664\u6240\u6709",refer_line:"\u53C2\u8003\u7EBF",align_line:"\u5BF9\u9F50\u53C2\u8003\u7EBF"},en:{vertical:"vertical",horizontal:"horizontal",show_ruler:"show rulers",show_refer_line:"show all guides",remove_all:"remove all ",refer_line:"guides",align_line:"align guides"}},fie={bgColor:"#fff",dividerColor:"#dbdbdb",listItem:{textColor:"#415058",hoverTextColor:"#298df8",disabledTextColor:"rgba(65, 80, 88, 0.4)",bgColor:"#fff",hoverBgColor:"#f2f2f2"}},bU=["downarrow","uparrow","leftarrow","rightarrow"],wU=["shift.downarrow","shift.uparrow","shift.leftarrow","shift.rightarrow"],gie=null,yie=null,xie=null,vie=[...bU,...wU];class Bm{constructor(){(0,B.A)(this,"_scale",1)}static getInstance(){return Bm.instance||(Bm.instance=new Bm),Bm.instance}get scale(){return this._scale}set scale(t){this._scale=t}}const bie=Bm.getInstance(),wie=e=>{const{ratio:t,viewportRect:n,canvasRect:a}=e,i=(n.left+RULER_WIDTH-a.canvasLeft)/t,c=(n.top+RULER_WIDTH-a.canvasTop)/t,d=(n.right-a.canvasLeft)/t,p=(n.bottom-a.canvasTop)/t;return{startX:i,startY:c,endX:d,endY:p}},Cie=e=>{let{canvas:t,type:n,value:a}=e;const{x:i=0,y:c=0,w:d=0,h:p=0}=(t==null?void 0:t.hotAttr)||{},h=c-p*.5,m=i-d*.5;return a+(t?n==="horizontal"?h:m:0)},Sie=e=>{let{fromCanvas:t,curCanvas:n,type:a,value:i,realValue:c}=e;if(!n)return c;const{x:d,y:p,w:h,h:m}=(n==null?void 0:n.hotAttr)||{},x=p-m*.5,v=d-h*.5;if(!t)return a==="horizontal"?i-x:i-v;if(t.key===n.key)return i;const{x:A,y:k,w:R,h:F}=(t==null?void 0:t.hotAttr)||{},Z=k-F*.5,G=A-R*.5;return a==="horizontal"?i+Z-x:i+G-v},Aie=()=>{const e=useSelector(getCanvasRect),t=palette[useSelector(getTheme)],n=useSelector(getCanvasOffset),a=useSelector(getCurrentScreenCid),i=useSelector(getCurrentToolBarHeight),c=useSelector(getViewportRect),d=useSelector(getLeftPanelWidth),p=useSelector(getLeftPanelShow),h=useSelector(getFullScreenMode),m=useSelector(getLayout),v=useSelector(getCurrentViewType)===ViewType.OnlyView,A=h||m==="old_right"||v?0:LEFT_NAV_WIDTH,k=useSelector(getRulerShowReferLine)&&!v,R={width:c==null?void 0:c.width,height:c==null?void 0:c.height,left:p?d+A:A,transform:"matrix(1, 0, 0, 1, "+(Math.round(-n.x)-window.innerWidth/2)+", "+(Math.round(-n.y)-(window.innerHeight-i)/2)+")"};return{theme:t,canvasRect:e,viewportRect:c,containerStyle:R,currentScreenCid:a,curToolBarHeight:i,isShowReferLine:k}},kie=()=>{const t=useSelector(getCurrentViewType)===ViewType.OnlyView;return useSelector(getRulerShowReferLine)&&!t},CU=()=>{const e=(0,r.d4)(me.$S),t=(0,r.d4)(te.qT),n=(0,r.d4)(q.pH),a=(0,r.d4)(q.rg),i=(0,r.d4)(q.uu);return e&&t&&!n&&!a&&!i},Mie=()=>{var e,t;const n=useSelector(getCurrentScreenCid),a=n?sdkStore.getHotItem(n):null;return{alignH:(a==null||(e=a.hotAttr)==null?void 0:e.alignH)||[],alignV:(a==null||(t=a.hotAttr)==null?void 0:t.alignV)||[]}},Eie=()=>{const e=useSelector(getWidgetTreeData);return useMemo(()=>{const n={};return sdkStore.getSubHotItemList(e.cid).forEach(a=>{var i,c;const{key:d,hotAttr:p}=a;p.type===WidgetType.Canvas&&(((i=p.alignH)==null?void 0:i.length)>0||((c=p.alignV)==null?void 0:c.length)>0)&&(n[d]=a)}),n},[e])},SU=()=>{const e=useSelector(getWidgetTreeData),t=useSelector(getScale)/100,n=useSelector(getViewportRect),a=useSelector(getCanvasOffset);return useCallback(i=>{const c=prepareEvent(i,{scale:t*100,offset:a,viewportRect:n}),d=findCanvasAt(c,e.key);return d?sdkStore.getHotItem(d):null},[e,t,n,a])},Iie=e=>SU()(e),_ie=()=>{const t=useSelector(getCurrentViewType)===ViewType.OnlyView,n=useSelector(getRulerShowReferLine)&&!t,a=useSelector(getRulerShowAlignLine);return{showRuler:useSelector(getShowRuler),isShowReferLine:n,isShowAlignLine:a}},Tie=e=>{let{canvas:t,type:n,value:a}=e;const i=useSelector(getScale)/100,{startY:c,startX:d}=useSelector(getRulerRect)||{};return useMemoizedFn(()=>{const p=n==="horizontal",h=p?c:d,x=(getRealValue({canvas:t,type:n,value:a})-h)*i+RULER_WIDTH;return p?"translateY("+x+"px)":"translateX("+x+"px)"})},Pie=()=>{const e=useSelector(getScale)/100,t=useSelector(getViewportRect),{startY:n,startX:a}=useSelector(getRulerRect)||{};return useMemoizedFn(i=>{let{type:c,canvas:d}=i;const p=c==="horizontal",{x:h=0,y:m=0,w:x=0,h:v=0}=(d==null?void 0:d.hotAttr)||{},A=m-v*.5,k=h-x*.5,R=p?t==null?void 0:t.width:t==null?void 0:t.height,F=p?x:v,Z=(p?k-a:A-n)*e+RULER_WIDTH,G=Z<0?0:Z>R?R:Z,ee=Z<0?Math.max(F*e+Z,0):Z+F*e>R?R-Z:F*e,ce=Z+F*e>R?0:R-Z-F*e,se=p?"width":"height";return{left:Math.max(G,0),conter:Math.max(ee,0),right:Math.max(ce,0),styleKey:se}})},Lie=()=>{var e;const t=(e=useSelector(getRulerSelectedLine))==null?void 0:e[0];return useMemoizedFn(n=>{let{index:a,canvas:i,type:c}=n;if(!t||t.type!==c)return!1;if(i){var d;return(t==null||(d=t.canvas)==null?void 0:d.key)===i.key&&t.index===a}return!t.canvas&&t.index===a})},Nie=()=>useSelector(getCurrentViewType)===ViewType.OnlyView,jie=()=>!useSelector(getIsSpaceDown),AU=()=>{const{isEditingBasket:e,isEditingMuban:t}=(0,r.d4)(Me.r),n=e||t,a=CU(),i=yl.E0+(a?x7:0)+(n?50:0)+6;return{getMenuStyle:function(d){return d===void 0&&(d=450),{position:"absolute",top:i,left:"calc(50% - "+d/2+"px)"}}}},kU=M.Ay.div.withConfig({displayName:"styles__StyledDraftDropdownDiv",componentId:"sc-lw5ri7-0"})(["position:relative;width:100%;margin-right:6px;&.transparent > .content{background-color:transparent;}> .content{position:absolute;top:100%;border-radius:4px;transform-origin:50% 0;transition:all 0.2s ease-in-out;z-index:1000;}.trigger-container{height:32px;border-radius:6px;display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding:6px;padding-right:6px;&.disabled{opacity:0.3;cursor:not-allowed;background-color:unset!important;}.icon{flex:1;display:flex;flex-direction:row;justify-content:flex-start;align-items:center;position:relative;color:",";svg{fill:none;}}.title{display:block;white-space:nowrap;color:",";font-size:14px;line-height:20px;margin-right:2px;}.var-tag{border:1px solid ",";height:20px;padding:0 4px;border-radius:4px;overflow:hidden;background:",";color:",";display:inline-flex;align-items:center;max-width:calc(100% - 3px);&:hover{background-color:",";border-color:transparent;}span{max-width:100%;overflow:hidden;white-space:pre;text-overflow:ellipsis;}.var-icon{margin-right:2px;flex-shrink:0;font-size:12px;path{fill:",";}}&.is-invaild{span{text-decoration:line-through;}}}.trigger{display:flex;flex-direction:row;justify-content:center;align-items:center;.arrow{transition:all 0.2s ease-in-out;path[stroke]{stroke:",";}}.questionMark{margin-right:6px;border-radius:2px;}}.open-lib-icon{margin-left:0;max-width:150px;.content{border:none;background:none;padding-left:2px;}.clear_style_ref{width:24px;height:24px;display:flex;flex:0 0 24px;margin-left:2px;&:hover{background:",";}}&:hover,&.is-active{.content{background:none;}}}.trigger-icon{width:32px;height:32px;border-radius:6px;display:flex;justify-content:center;align-items:center;&:not(.pure-icon){path[fill]{fill:",";}rect[fill]{fill:",";}}&.size-24{width:24px;height:24px;}&.margin-right-2{margin-right:2px;}.shadow{rect{stroke:",";}path[fill]{fill:",";}}}&.padding-0{padding:0;}&.padding-left-0{padding-left:0;}&.max-width-150{max-width:150px;.title,.var-title{",";}}&.has-var{.trigger{max-width:150px;}}&:not(.disabled):hover{background-color:",";&.has-var{.var-tag{background:",";border-color:transparent;}}}}&.visible{.trigger-container{background-color:",";&:not(.has-arrow){background-color:",";color:",";.trigger-icon{&:not(.pure-icon){svg{color:inherit;path[fill]{fill:currentColor;}rect[fill]{fill:currentColor;}&.shadow{rect{stroke:",";}path[fill]{fill:",";}}}}}}.trigger{.arrow{transform:rotate(180deg);}}}}.content-container{position:absolute;top:0;left:0;background-color:",";color:",";border-radius:8px;display:flex;flex-direction:column;justify-content:flex-start;align-items:center;filter:drop-shadow(4px 12px 40px rgba(39,54,78,0.1)) drop-shadow(0px 2px 10px rgba(39,54,78,0.08));}"],e=>e.theme.color_text_L1,e=>e.theme.color_text_L1,e=>e.theme.color_bg_border_02,e=>e.theme.color_bg_white,e=>e.theme.color_text_L1,e=>e.theme.color_bg_border_01,e=>e.theme.color_text_L3,e=>e.theme.color_text_L1,e=>e.theme.color_navigation_active,e=>e.theme.color_text_L1,e=>e.theme.color_text_L1,e=>e.theme.color_text_L1,e=>e.theme.color_text_disabled01,za.L9,e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_bg_border_01,e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_bg_tab,e=>e.theme.color_btn_primary_normal,e=>e.theme.color_btn_primary_normal,e=>e.theme.color_bg_select01,e=>e.theme.color_bg_white,e=>e.theme.color_text_L1),MU=(e,t)=>{const{disabled:n,title:a,position:i,top:c,right:d,bottom:p,left:h,className:m,trigger:x,onShow:v,onClose:A}=e,k=(0,r.d4)(me.an),[R,F]=(0,l.useState)(!1),Z=(0,l.useRef)(null),G=(0,l.useRef)(null),ee=!n&&R,ce=(0,l.useMemo)(()=>({position:i,top:c,right:d,bottom:p,left:h}),[i,c,d,h,p]),se=(0,l.useCallback)(()=>{F(!0),v&&v()},[F,v]),he=(0,l.useCallback)(()=>{F(!1),A&&A()},[F,A]);(0,l.useImperativeHandle)(t,()=>({setDropdownVisible:F,show:se,close:he}));const ve=(0,l.useCallback)(()=>{if(!n){if(R){he();return}se()}},[n,R,he,se]),Te=xe=>{const{target:Fe}=xe,et=Z&&Z.current&&Z.current.contains(xe.target),Ke=G&&G.current&&G.current.contains(Fe);k||et||Ke||Fe.closest(".--mb--color-picker")||Fe.closest(".context-menu-mask")||Fe.closest(".SelectNumberMenu")||Fe.closest("#lib-panel-modal")||Fe.closest("#lib-panel-text-edit-modal")||Fe.closest("#lib-panel-color-edit-modal")||Fe.closest("#lib-panel-appear-edit-modal")||Fe.closest(".lib-panel-actions-menu")||Fe.closest(".WorkspaceSelectMenu")&&!Fe.closest(".autoFillPanelSelectScreenMenu")||Fe.closest(".border-width-menu")||Fe.closest(".font-options-menu")||Fe.closest(".var-dropmenu")||Fe.closest(".var-editor")||Fe.closest("#font-list-panel")||he()};return(0,o.jsxs)(kU,{className:C()("quick-menu-option",m,{visible:ee}),children:[(0,o.jsx)("a",{ref:Z,className:"trigger",id:"drop-trigger",onClick:ve,children:x&&(a?(0,o.jsx)(Ti.A,{className:"floating-tooltip",content:a,direction:"down",distance:12,children:l.cloneElement(x,{className:C()(x.props.className,{visible:ee})})}):l.cloneElement(x,{className:C()(x.props.className,{visible:ee})}))}),!n&&R&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("div",{ref:G,className:"content",style:ce,children:e.children}),(0,o.jsx)(Ls.A,{target:document,onMouseDown:(0,Ls.t)(Te,{capture:!0})})]})]})},Rl=l.memo(l.forwardRef(MU)),Die=M.Ay.div.withConfig({displayName:"styles__StyledDraftDropdownOptionDiv",componentId:"sc-2w3qad-0"})(["&.draft-toolbar-dropdown-option{width:100%;height:28px;display:flex;flex-direction:row;justify-content:flex-start;align-items:center;background-color:transparent;color:",";cursor:pointer;border-radius:4px;position:relative;&:hover{background-color:",";}&.active{background-color:",";}&.disabled{cursor:not-allowed;opacity:0.3;background-color:unset!important;}.option-title{flex:1;font-size:12px;line-height:16px;font-weight:400;margin-left:32px;&:lang(en){white-space:nowrap;}}.draft-check{width:16px;height:16px;position:absolute;left:8px;}}"],e=>e.theme.color_text_L1,e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_btn_secondary_hover),EU=M.Ay.div.withConfig({displayName:"styles__StyledDraftOptionWrapperDiv",componentId:"sc-2w3qad-1"})(["min-width:32px;width:32px;height:32px;display:flex;flex-direction:row;justify-content:center;align-items:center;margin-right:6px;border-radius:6px;background-color:transparent;cursor:pointer;&:not(.active):not(.disabled):hover{background-color:",";}&.active{background-color:",";color:",";}&.disabled{opacity:0.3;cursor:not-allowed;background-color:unset!important;}.Tooltip{width:100%;height:100%;display:flex;align-items:center;justify-content:center;}&:not(.pure-icon){svg{color:inherit;path[fill]{fill:",";}}}&.code-generate-preview{svg{path[stroke]{stroke:",";}}}&.image-mirror-h,&.image-mirror-v{svg{path{&:nth-child(1),&:nth-child(2){fill:",";}&:nth-child(3){fill:",";}}}}&.image-canvas-ai{img{width:18px;height:18px;border-radius:4px;}}&.draft-toolbar-dropdown-option{width:100%;height:28px;display:flex;flex-direction:row;justify-content:flex-start;align-items:center;background-color:transparent;color:",";cursor:pointer;border-radius:4px;position:relative;margin-right:0;&:hover,&:active,&.active{background-color:",";}.option-title{flex:1;font-size:12px;line-height:16px;font-weight:400;margin-left:32px;&:lang(en){white-space:nowrap;}}.draft-check{width:16px;height:16px;position:absolute;left:8px;}}"],e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_bg_tab,e=>e.theme.color_btn_primary_normal,e=>e.theme.color_text_L1,e=>e.theme.color_text_L1,e=>e.theme.color_text_L1,e=>e.theme.color_text_disabled01,e=>e.theme.color_text_L1,e=>e.theme.color_btn_secondary_hover),IU=e=>{const{className:t="",disabled:n,value:a,active:i,children:c,title:d,onClick:p,preventDefault:h=!0}=e,m=(0,l.useRef)(null),x=(0,l.useCallback)(v=>{h&&v.preventDefault(),v.stopPropagation(),!n&&p&&p(a,m)},[n,p,a,h]);return(0,o.jsx)(EU,{ref:m,className:C()("quick-menu-option",t,{active:i,disabled:n}),onClick:x,children:d?(0,o.jsx)(Ti.A,{content:d,direction:"down",distance:12,className:"floating-tooltip",children:c}):c})},fu=(0,l.memo)(IU),N0=e=>(0,o.jsx)(fu,{...e,className:"draft-toolbar-dropdown-option"}),_U=M.Ay.div.withConfig({displayName:"styles__StyledRectColorOptionList",componentId:"sc-n7p896-0"})(["width:100%;display:grid;grid-template-columns:repeat(auto-fill,28px);gap:0 6px;.draft-toolbar-dropdown-option{min-width:100%;width:100%;height:28px;display:flex;align-items:center;justify-content:center;border-radius:100%;&:hover,&:active,&.active{background-color:transparent;}&.active{outline:1.5px solid ",";}}.color-btn-wrap{width:28px;height:28px;display:flex;align-items:center;justify-content:center;div{width:22px !important;height:22px !important;margin:0 !important;border-radius:100% !important;background:conic-gradient(from 180deg at 50% 50%,#FF0000 0deg,#FFF700 69.23deg,#00FF11 131.54deg,#2571FF 212.88deg,#9D14FF 289.04deg,#FF009D 360deg);outline:1px solid ",";img{display:none;}}}"],e=>e.theme.color_btn_primary_normal,e=>e.theme.color_bg_border_01),v7=M.Ay.div.withConfig({displayName:"styles__StyledDraftBorderColorItemDiv",componentId:"sc-n7p896-1"})(["width:22px;height:22px;box-sizing:border-box;border-radius:100%;display:flex;align-items:center;justify-content:center;&.transparent{background:#fff;border:1px solid ",";&::before{content:'';display:block;width:1.5px;height:12px;background:#020910;opacity:0.13;transform:rotate(30deg);}}&:not(.transparent){background-color:",";border:1px solid ",";}"],e=>e.theme.color_bg_border_01,e=>e.value,e=>e.borderColor||e.theme.color_bg_border_01),n6=(0,l.memo)(e=>{const{config:t,fill:n,contentRef:a,onChange:i,onOpenColorPanel:c,onCloseColorPanel:d}=e,{colors:p,hasCheck:h,hasColorBtn:m}=t,x=(0,l.useMemo)(()=>p.map(A=>({...A,fill:(0,$l.dT)(A.color)})),[p]),v=()=>{var A;if(!a||typeof a=="function"||!a.current)return null;const k=(A=a.current)==null?void 0:A.getBoundingClientRect();return{left:k.right+2,top:k.top}};return(0,o.jsxs)(_U,{className:"rect-color-option-list",children:[h&&(0,o.jsx)(N0,{value:"rgba(255, 255, 255, 1)",active:!(n!=null&&n.fillIsVisible),onClick:()=>i("transparent"),children:(0,o.jsx)(v7,{className:"transparent"})}),x.map((A,k)=>{let{color:R,borderColor:F,fill:Z}=A;return(0,o.jsx)(N0,{value:R,active:(n==null?void 0:n.fillIsVisible)&&"solidColor"in n&&"solidColor"in Z&&n.solidColor===Z.solidColor,onClick:()=>i(Z),children:(0,o.jsx)(v7,{value:R,borderColor:F})},k)}),m&&(0,o.jsx)(Ec.R_,{supAttr:"fill",attr:"solidColor",color:n,pIsSolidColorOnly:!0,iconImg:{src:"/mb-proto2/images/font_color_picker.png",width:16,height:16,marginLeft:5,marginRight:5,marginTop:3,marginBottom:3},onChange:A=>i(A,!1),onOpenColorPanel:c,onCloseColorPanel:d,canOpenLib:!1,onPosition:v})]})});var TU=Object.defineProperty,PU=Object.defineProperties,LU=Object.getOwnPropertyDescriptors,Ug=Object.getOwnPropertySymbols,b7=Object.prototype.hasOwnProperty,w7=Object.prototype.propertyIsEnumerable,C7=(e,t,n)=>t in e?TU(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,o6=(e,t)=>{for(var n in t||(t={}))b7.call(t,n)&&C7(e,n,t[n]);if(Ug)for(var n of Ug(t))w7.call(t,n)&&C7(e,n,t[n]);return e},NU=(e,t)=>PU(e,LU(t)),jU=(e,t)=>{var n={};for(var a in e)b7.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&Ug)for(var a of Ug(e))t.indexOf(a)<0&&w7.call(e,a)&&(n[a]=e[a]);return n},DU=(0,l.forwardRef)((e,t)=>{var n=e,{size:a,spin:i,style:c}=n,d=jU(n,["size","spin","style"]);const p=o6(o6({width:a||"var(--x-icon-size, 1em)",height:a||"var(--x-icon-size, 1em)",animation:i?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),c);return l.createElement("svg",NU(o6({ref:t,style:p},d),{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12ZM12 8C9.79086 8 8 9.79086 8 12C8 14.2091 9.79086 16 12 16C14.2091 16 16 14.2091 16 12C16 9.79086 14.2091 8 12 8Z",fill:"url(#pattern0_2581_612)",fillOpacity:"0.1"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 12C7 9.23858 9.23858 7 12 7C14.7614 7 17 9.23858 17 12C17 14.7614 14.7614 17 12 17C9.23858 17 7 14.7614 7 12ZM12 16C9.79086 16 8 14.2091 8 12C8 9.79086 9.79086 8 12 8C14.2091 8 16 9.79086 16 12C16 14.2091 14.2091 16 12 16Z",fill:"#020910",fillOpacity:"0.13"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 21C16.9706 21 21 16.9706 21 12C21 7.02944 16.9706 3 12 3C7.02944 3 3 7.02944 3 12C3 16.9706 7.02944 21 12 21ZM20 12C20 16.4183 16.4183 20 12 20C7.58172 20 4 16.4183 4 12C4 7.58172 7.58172 4 12 4C16.4183 4 20 7.58172 20 12Z",fill:"#020910",fillOpacity:"0.13"}),l.createElement("defs",null,l.createElement("pattern",{id:"pattern0_2581_612",patternContentUnits:"objectBoundingBox",width:"1.6",height:"1.6"},l.createElement("use",{xlinkHref:"#image0_2581_612",transform:"matrix(0 0.0333333 -0.0333333 0 1.6 0)"})),l.createElement("image",{id:"image0_2581_612",width:"48",height:"48",preserveAspectRatio:"none",xlinkHref:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAABrSURBVHgB7dYxCsAgEAXRvyH3v/KKvdbjwrwy2AxE+ZWkc9B9/JyqykvnvwxnAM0A2j/ltbmd9xeiGUAbH7CvtluIZADNAJpbiGYAzQCaW4hmAM0AmluIZgDNAJpbiGYAzQCaW4hmAM0A2gKcLmRVzjvmyQAAAABJRU5ErkJggg=="})))}),RU=s(66339);const gu=(0,M.AH)(["border-radius:6px;background:",";border:1px solid transparent;&:hover:not(.is-active):not(.is-disabled){border:1px solid transparent;background:",";}&:active:not(.is-active):not(.is-disabled){border:1px solid transparent;outline:1px solid transparent;}&.is-active:not(.is-disabled){background:",";border:1px solid ",";outline:1px solid ",";outline-offset:-2px;&.has-menu{input{border:1px solid transparent;outline:1px solid transparent;}}}.action{button{&:hover,&:active{color:",";}}}"],e=>e.theme.color_bg_card,e=>e.theme.color_btn_secondary_active,e=>e.theme.color_btn_secondary_active,e=>e.theme.color_btn_primary_normal,e=>e.theme.color_btn_primary_normal,e=>e.theme.color_btn_primary_normal),BU=M.Ay.div.withConfig({displayName:"styles__StyledBorderStyleContent",componentId:"sc-1o0rj75-0"})(["display:flex;padding-top:16px;.var-input-container{width:100%;}.border-width-input{",";}.title{width:100%;height:28px;color:",";font-weight:500;font-size:12px;display:flex;align-items:center;margin-top:8px;}.tab-list{width:100%;display:grid;align-items:center;grid-template-columns:repeat(auto-fill,64px);grid-gap:8px;.tab{width:64px;height:28px;border-radius:6px;cursor:pointer;display:flex;align-items:center;justify-content:center;&.is-active{background:",";}&:not(.is-active):hover{background:",";}}}.border-style-container{width:100%;padding:2px;margin:4px 0 12px 0;height:28px;display:grid;grid-template-columns:repeat(3,1fr);align-items:center;justify-content:center;border-radius:6px;background:",";.style-box{width:100%;height:100%;border-radius:4px;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:all 0.2s ease-in-out;.line{width:32px;&.solid{border-bottom:1.5px solid ",";}&.dotted{border-bottom:1.5px dotted ",";}&.dashed{border-bottom:1.5px dashed ",";}}&.is-active{background:",";box-shadow:",";.line{border-color:",";}}}}.border-visible-wrapper{width:100%;padding:20px 0;display:flex;align-items:center;justify-content:center;.wrapper-border{width:168px;height:70px;border:1px dashed ",";border-radius:4px;display:flex;align-items:center;justify-content:center;.wrapper{width:100%;height:calc(100% + 24px);display:flex;align-items:center;flex-direction:column;justify-content:space-between;.row{width:calc(100% + 24px);display:flex;align-items:center;justify-content:space-between;}.border-set-width-item{width:24px;height:24px;cursor:pointer;border-radius:4px;color:",";background:",";&.is-active{background:",";.svg-icon{path{fill:",";}}}&:not(.is-active):hover{background:",";}&.border-left-width{transform:rotate(-90deg);}&.border-right-width{transform:rotate(90deg);}&.border-bottom-width{transform:rotate(180deg);}.svg-icon{path{fill:",";}}}}}}"],gu,e=>e.theme.color_text_L1,e=>e.theme.color_btn_secondary_active,e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_navigation_hover,e=>e.theme.color_text_L3,e=>e.theme.color_text_L3,e=>e.theme.color_text_L3,e=>e.theme.color_bg_white,e=>e.theme.shadow_s,e=>e.theme.color_text_L1,e=>e.theme.color_text_disabled01,e=>e.theme.color_text_L3,e=>e.theme.color_bg_white,e=>e.theme.color_bg_tab,e=>e.theme.color_btn_primary_normal,e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_text_L3),UU=M.Ay.div.withConfig({displayName:"styles__StyledBorderHasColorBox",componentId:"sc-1o0rj75-1"})(["&.trigger-container{width:32px;height:32px;border-radius:6px;display:flex;justify-content:center;align-items:center;svg{path:nth-child(2),path:nth-child(3){fill:",";fill-opacity:1;}&:not(.hide){path:nth-child(1){fill:",";fill-opacity:1;}}}}"],e=>e.theme.color_bg_border_02,e=>e.color?e.color:"unset"),OU=M.Ay.div.withConfig({displayName:"styles__StyledBorderHasColorContainer",componentId:"sc-1o0rj75-2"})(["width:100%;.content-container{width:196px;justify-content:center;flex-direction:column;align-items:center;padding:8px 16px 16px 16px;.title{width:100%;height:28px;color:",";font-weight:500;font-size:12px;display:flex;align-items:center;}.border-style-container{width:100%;padding:2px;margin:4px 0 12px 0;height:28px;display:grid;grid-template-columns:repeat(3,1fr);align-items:center;justify-content:center;border-radius:6px;background:",";.style-box{width:100%;height:100%;border-radius:4px;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:all 0.2s ease-in-out;.line{width:32px;&.solid{border-bottom:1.5px solid ",";}&.dotted{border-bottom:1.5px dotted ",";}&.dashed{border-bottom:1.5px dashed ",";}}&.is-active{background:",";box-shadow:",";.line{border-color:",";}}}}}.bdr-width-container{display:flex;align-items:center;justify-content:space-between;width:100%;height:28px;.bdr-text{color:",";font-weight:500;font-size:12px;}.bdr-input{width:60px;height:28px;",";.arrow{cursor:pointer;transform:rotate(-90deg);margin-right:7px;path{stroke:",";}}&.has-menu:hover:not(.is-active):not(.is-disabled){.action.caret{background:",";}}&.has-menu.is-active{.action.caret{&:hover{background:none;border-radius:0;outline:none;}}}}}.color-options-container{width:100%;margin-top:8px;}"],e=>e.theme.color_text_L1,e=>e.theme.color_navigation_hover,e=>e.theme.color_text_L3,e=>e.theme.color_text_L3,e=>e.theme.color_text_L3,e=>e.theme.color_bg_white,e=>e.theme.shadow_s,e=>e.theme.color_text_L1,e=>e.theme.color_text_L1,gu,e=>e.theme.color_text_L1,e=>e.theme.color_btn_secondary_active),a6=e=>{var t;const{config:n,dropdownPosition:a,border:i,handleBorderChange:c,onOpenColorPanel:d,onCloseColorPanel:p}=e,{bdrWidth:h,bdrColor:m,bdrStyle:x,bdrIsVisible:v}=i,{colors:A,hasCheck:k,hasColorBtn:R}=n,F=(0,l.useRef)(null),Z=(0,l.useMemo)(()=>[{key:"solid",value:"solid"},{key:"dashed",value:"dashed"},{key:"dotted",value:"dotted"}],[]),G=(he,ve)=>{const Te={...i};Te[ve]=he,c(Te)},ee=he=>{const ve={...i};he==="transparent"?(ve.bdrIsVisible=!1,ve.bdrColor=4294967040):(ve.bdrIsVisible=!0,ve.bdrColor=he.solidColor),c(ve)},ce=(0,ul.t0)(m),se=!v||((t=(0,ul.BN)(m))==null?void 0:t.A)===0;return(0,o.jsx)(OU,{children:(0,o.jsx)(Rl,{top:a==="bottom"?40:-223,left:-87,title:n.title,trigger:(0,o.jsx)(UU,{className:"trigger-container padding-0",color:ce,children:(0,o.jsx)(DU,{className:C()({hide:se}),size:24})}),children:(0,o.jsxs)("div",{className:"content-container draft-border-options",ref:F,children:[(0,o.jsx)("span",{className:"title",children:I18N.TextToolbar.borderStyle.line_style}),(0,o.jsx)("div",{className:"border-style-container",children:Z.map(he=>(0,o.jsx)("div",{className:C()("style-box",{"is-active":he.value===x}),onClick:()=>G(he.value,"bdrStyle"),children:(0,o.jsx)("div",{className:C()("line",he.value)})},he.key))}),(0,o.jsxs)("div",{className:"bdr-width-container",children:[(0,o.jsx)("div",{className:"bdr-text",children:I18N.TextToolbar.borderStyle.line_width}),(0,o.jsx)(P1.A,{className:"bdr-input",attr:"bdrWidth",value:h,optionList:RU.$d,onConfirm:G,menuClassName:"bdr-width-input-menu"})]}),(0,o.jsxs)("div",{className:"color-options-container",children:[(0,o.jsx)("span",{className:"title",children:I18N.TextToolbar.borderStyle.line_color}),(0,o.jsx)(n6,{contentRef:F,config:{colors:A,hasCheck:k,hasColorBtn:R},fill:{fillIsVisible:v,fill:"solid",solidColor:m},onChange:ee,onOpenColorPanel:d,onCloseColorPanel:p})]})]})})})};var FU=Object.defineProperty,VU=Object.defineProperties,zU=Object.getOwnPropertyDescriptors,Og=Object.getOwnPropertySymbols,S7=Object.prototype.hasOwnProperty,A7=Object.prototype.propertyIsEnumerable,k7=(e,t,n)=>t in e?FU(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,r6=(e,t)=>{for(var n in t||(t={}))S7.call(t,n)&&k7(e,n,t[n]);if(Og)for(var n of Og(t))A7.call(t,n)&&k7(e,n,t[n]);return e},WU=(e,t)=>VU(e,zU(t)),HU=(e,t)=>{var n={};for(var a in e)S7.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&Og)for(var a of Og(e))t.indexOf(a)<0&&A7.call(e,a)&&(n[a]=e[a]);return n},GU=(0,l.forwardRef)((e,t)=>{var n=e,{size:a,spin:i,style:c}=n,d=HU(n,["size","spin","style"]);const p=r6(r6({width:a||"var(--x-icon-size, 1em)",height:a||"var(--x-icon-size, 1em)",animation:i?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),c);return l.createElement("svg",WU(r6({ref:t,style:p},d),{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),l.createElement("rect",{x:"4",y:"5",width:"16",height:"1",rx:"0.5",fill:"#19191A"}),l.createElement("rect",{x:"4",y:"10.25",width:"16",height:"2",rx:"1",fill:"#19191A"}),l.createElement("rect",{x:"4",y:"16.5",width:"16",height:"2.5",rx:"1.25",fill:"#19191A"}))}),d0=s(30523),_l=s(9680);const ZU=e=>{var t;const{config:n,dropdownPosition:a,widget:i,canSetBorderVisibility:c,onChange:d,dispatch:p}=e,{key:h,hotAttr:{border:m,borderVisibility:x}}=i,{bdrIsVisible:v,bdrWidth:A,bdrStyle:k}=m,R={border:(0,_l.xj)([i],"border")},F=(0,l.useRef)(null),[Z,G]=(0,l.useState)(null),ee=(0,l.useMemo)(()=>[{key:"thin",label:I18N.TextToolbar.borderStyle.thin,value:1},{key:"middle",label:I18N.TextToolbar.borderStyle.middle,value:2},{key:"thick",label:I18N.TextToolbar.borderStyle.thick,value:4},{key:"none",label:I18N.TextToolbar.borderStyle.none,value:0}],[]),ce=(0,l.useMemo)(()=>[{key:"solid",value:"solid"},{key:"dashed",value:"dashed"},{key:"dotted",value:"dotted"}],[]),se=(xe,Fe,et)=>{let Ke={...m,[Fe]:Fe==="bdrWidth"?parseInt(xe):xe};Fe==="bdrWidth"&&(Ke={...Ke,bdrIsVisible:!0});const Qe={...R==null?void 0:R.border,[Fe]:et};d({value:Ke,attr:"border",refVar:Qe,selections:[h],dispatch:p})},he=(0,l.useCallback)(xe=>{const{borderSide:Fe}=xe.currentTarget.dataset,et={...x,["bdrIsVisible"+Fe]:!x["bdrIsVisible"+Fe]};d({value:et,attr:"borderVisibility",selections:[h],dispatch:p})},[x,d,p]),ve=(0,l.useCallback)((xe,Fe)=>{se(xe,Fe,"")},[se]),Te=(0,l.useCallback)(()=>{setTimeout(()=>{G({menuPosRight:void 0,direction:"right-start",distance:2,targetNode:F==null?void 0:F.current})})},[F]);return(0,o.jsx)(Rl,{top:a==="bottom"?40:c?-392:-239,left:-104,title:n.title,onShow:Te,trigger:(0,o.jsx)("div",{className:"trigger-container padding-0",children:(0,o.jsx)("div",{className:"trigger-icon",children:(0,o.jsx)(GU,{size:24})})}),children:(0,o.jsxs)(BU,{className:"content-container draft-border-options width-240",ref:F,children:[(0,o.jsx)(d0.Yw,{type:"number",attr:"bdrWidth",value:m.bdrWidth,refVar:R==null||(t=R.border)==null?void 0:t.bdrWidth,inputClassName:C()("border-width-input"),canAddVar:!0,showCaretIcon:!0,isShowAddVarIcon:!1,dropdownProps:Z,onConfirm:(xe,Fe)=>se(xe,"bdrWidth",Fe)}),(0,o.jsx)("span",{className:"title",children:I18N.TextToolbar.default}),(0,o.jsx)("div",{className:"tab-list",children:ee.map(xe=>(0,o.jsx)("div",{className:C()("tab",{"is-active":v&&A===xe.value}),onClick:()=>ve(xe.value,"bdrWidth"),children:xe.label},xe.key))}),(0,o.jsx)("span",{className:"title",children:I18N.TextToolbar.borderStyle.line_style}),(0,o.jsx)("div",{className:"border-style-container",children:ce.map(xe=>(0,o.jsx)("div",{className:C()("style-box",{"is-active":xe.value===k}),onClick:()=>ve(xe.value,"bdrStyle"),children:(0,o.jsx)("div",{className:C()("line",xe.value)})},xe.key))}),c&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(xu,{}),(0,o.jsx)("span",{className:"title",children:I18N.TextToolbar.borderStyle.single_setting}),(0,o.jsx)("div",{className:"border-visible-wrapper",children:(0,o.jsx)("div",{className:"wrapper-border",children:(0,o.jsxs)("div",{className:"wrapper",children:[(0,o.jsx)("div",{"data-border-side":"T",className:C()("border-set-width-item border-top-width",{"is-active":x.bdrIsVisibleT}),onClick:he,children:(0,o.jsx)(xt.C,{name:"setting_panel/general/border_width_menu_item",size:24})}),(0,o.jsxs)("div",{className:"row",children:[(0,o.jsx)("div",{"data-border-side":"L",className:C()("border-set-width-item border-left-width",{"is-active":x.bdrIsVisibleL}),onClick:he,children:(0,o.jsx)(xt.C,{name:"setting_panel/general/border_width_menu_item",size:24})}),(0,o.jsx)("div",{"data-border-side":"R",className:C()("border-set-width-item border-right-width",{"is-active":x.bdrIsVisibleR}),onClick:he,children:(0,o.jsx)(xt.C,{name:"setting_panel/general/border_width_menu_item",size:24})})]}),(0,o.jsx)("div",{"data-border-side":"B",className:C()("border-set-width-item border-bottom-width",{"is-active":x.bdrIsVisibleB}),onClick:he,children:(0,o.jsx)(xt.C,{name:"setting_panel/general/border_width_menu_item",size:24})})]})})})]})]})})};var KU=Object.defineProperty,YU=Object.defineProperties,XU=Object.getOwnPropertyDescriptors,Fg=Object.getOwnPropertySymbols,M7=Object.prototype.hasOwnProperty,E7=Object.prototype.propertyIsEnumerable,I7=(e,t,n)=>t in e?KU(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,i6=(e,t)=>{for(var n in t||(t={}))M7.call(t,n)&&I7(e,n,t[n]);if(Fg)for(var n of Fg(t))E7.call(t,n)&&I7(e,n,t[n]);return e},QU=(e,t)=>YU(e,XU(t)),JU=(e,t)=>{var n={};for(var a in e)M7.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&Fg)for(var a of Fg(e))t.indexOf(a)<0&&E7.call(e,a)&&(n[a]=e[a]);return n},qU=(0,l.forwardRef)((e,t)=>{var n=e,{size:a,spin:i,style:c}=n,d=JU(n,["size","spin","style"]);const p=i6(i6({width:a||"var(--x-icon-size, 1em)",height:a||"var(--x-icon-size, 1em)",animation:i?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),c);return l.createElement("svg",QU(i6({ref:t,style:p},d),{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),l.createElement("path",{d:"M5.5 18.5H5.875V20H5L4.89746 19.9951C4.39333 19.9438 4 19.5177 4 19V18.125H5.5V18.5ZM9.375 20H7.625V18.5H9.375V20ZM12.875 20H11.125V18.5H12.875V20ZM16.375 20H14.625V18.5H16.375V20ZM20 19C20 19.5523 19.5523 20 19 20H18.125V18.5H18.5V18.125H20V19ZM5.5 16.375H4V14.625H5.5V16.375ZM20 16.375H18.5V14.625H20V16.375ZM20 12.875H18.5V11.125H20V12.875ZM12 5.5C8.41015 5.5 5.5 8.41015 5.5 12H4C4 7.58172 7.58172 4 12 4V5.5ZM20 9.375H18.5V7.625H20V9.375ZM19 4C19.5523 4 20 4.44772 20 5V5.875H18.5V5.5H18.125V4H19ZM16.375 5.5H14.625V4H16.375V5.5Z",fill:"#19191A"}))});const $U=M.Ay.div.withConfig({displayName:"styles__StyledBorderRadiusContent",componentId:"sc-1ly4mfl-0"})(["display:flex;.border-radius-input{",";}.draft-separator-h{border-bottom:1px solid ",";margin:8px 0;}.radius-option-list{width:100%;}.separate-wrap{display:flex;flex-wrap:wrap;.var-input-container{margin-right:0;&:first-child,&:nth-child(2){margin-bottom:8px;}&:first-child,&:nth-child(3){margin-right:8px;}}.separate-input{width:58px;height:28px;.title{padding-left:11px;.svg-icon{fill:none;width:10px;height:10px;path{fill:none;}}}&.tr,&.br{margin-right:0;}&.bl,&.br{margin-bottom:0;}}}"],gu,e=>e.theme.color_bg_border_01),eO=(0,l.memo)(e=>{const{config:t,dropdownPosition:n,widget:a,canSetSingleRadius:i,borderRadiusInfo:c,attr:d,supAttr:p,onChange:h,dispatch:m}=e,{title:x}=t,{key:v,hotAttr:{borderRadiusIsRound:A,refVars:k}}=a,{borderRadius:R,borderRadiusIsVisible:F,refVars:Z}=c,G=(0,l.useRef)(null),ee=(0,l.useRef)(null),[ce,se]=(0,l.useState)(null),he=Z==null?void 0:Z.borderRadius;let ve;typeof R!="number"?ve=R:ve={radiusTL:R,radiusTR:R,radiusBR:R,radiusBL:R};const Te=typeof R=="object"?ve.radiusTL===ve.radiusTR&&ve.radiusTL===ve.radiusBR&&ve.radiusTL===ve.radiusBL:!0,xe=(0,l.useMemo)(()=>[{key:"no_radius",label:I18N.TextToolbar.borderRadius.no_radius,value:0},{key:"extra_small",label:I18N.TextToolbar.borderRadius.extra_small,value:2},{key:"small",label:I18N.TextToolbar.borderRadius.small,value:4},{key:"middle",label:I18N.TextToolbar.borderRadius.middle,value:8},{key:"big",label:I18N.TextToolbar.borderRadius.big,value:12},{key:"pure_rounded_corners",label:I18N.TextToolbar.borderRadius.pure_rounded_corners}],[]),Fe=(Ct,St,hn)=>{h(St&&p&&St!=="borderRadiusIsVisible"?{value:Ct,attr:St,refVar:hn,dispatch:m,supAttr:p,selections:[v]}:{value:Ct,attr:St,refVar:hn,selections:[v],dispatch:m})},et=Ct=>{Fe(Ct,"borderRadiusIsVisible")},Ke=Ct=>{let St=k;p?St={...k,[p]:{...k==null?void 0:k[p],[d]:""}}:St={...k,[d]:""},m({type:"entry:widget:change",payload:{flatChgList:[{key:v,hotAttr:{borderRadiusIsRound:Ct,borderRadiusIsVisible:!0,refVars:St}}]}})},Qe=(Ct,St)=>{const hn=parseInt(Ct)||0;if(!(0,Z2.k4)(R)){const{radiusTL:Cn}=R;if(hn===Cn)return}Fe(hn,d||"borderRadius",St),et(!0)},nt=(Ct,St,hn)=>{var Cn;const Mt=parseInt(Ct)||0;if(Mt===ve[St]&&(Z==null||(Cn=Z.borderRadius)==null?void 0:Cn[St])===hn)return;const{radiusTL:Et,radiusTR:Co,radiusBR:Pn,radiusBL:ro}=ve,Io={radiusTL:Et,radiusTR:Co,radiusBR:Pn,radiusBL:ro,[St]:Mt};let mo;typeof(Z==null?void 0:Z.borderRadius)!="object"?mo={}:mo={...Z.borderRadius},mo[St]=hn,Fe(Io,"borderRadius",mo),et(!0)},Xe=(0,l.useCallback)((Ct,St)=>{var hn,Cn;Ct==="pure_rounded_corners"?Ke(!0):Qe(St,""),(hn=ee.current)==null||(Cn=hn.close)==null||Cn.call(hn)},[ee,et,Ke,Qe]),lt=(0,l.useCallback)(()=>{setTimeout(()=>{se({menuPosRight:void 0,direction:"right-start",distance:2,targetNode:G==null?void 0:G.current})})},[G]);return(0,o.jsx)(Rl,{ref:ee,title:x,top:n==="bottom"?40:i?-297:-226,left:-54,onShow:lt,trigger:(0,o.jsx)("div",{className:"trigger-container padding-0",children:(0,o.jsx)("div",{className:"trigger-icon",children:(0,o.jsx)(qU,{size:24})})}),children:(0,o.jsxs)($U,{className:"content-container border-radius-options width-140",ref:G,children:[(0,o.jsx)(d0.Yw,{type:"number",inputClassName:"border-radius-input",min:0,max:9999,value:typeof R=="object"?Te?R.radiusTL:void 0:R,refVar:typeof he=="string"?he:void 0,isNotVerify:!Te,placeholder:Te?"":I18N.TextToolbar.none,canAddVar:!0,isShowAddVarIcon:!1,dropdownProps:ce,onConfirm:Qe}),(0,o.jsx)("div",{className:"radius-option-list",children:xe.map(Ct=>{let{key:St,label:hn,value:Cn}=Ct;const Mt=St==="pure_rounded_corners"?F&&A:F&&ve.radiusTL===Cn&&ve.radiusTR===Cn&&ve.radiusBR===Cn&&ve.radiusBL===Cn;return(0,o.jsx)(N0,{value:Cn,active:Mt,onClick:()=>Xe(St,Cn),children:(0,o.jsxs)(o.Fragment,{children:[Mt&&(0,o.jsx)(xt.C,{name:"draft/check",className:"draft-check"}),(0,o.jsx)("span",{className:"option-title",children:hn})]})},St)})}),i&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(xu,{}),(0,o.jsx)("div",{className:"separate-wrap",children:Z2.BK.map(Ct=>{var St;return(0,o.jsx)(d0.Yw,{attr:Ct,type:"number",title:(0,o.jsx)(xt.C,{name:"setting_panel/br/"+Ct,className:"tl-icon"}),inputClassName:"separate-input border-radius-input",min:0,max:9999,value:ve[Ct],refVar:he==null?void 0:he[Ct],canAddVar:!0,tooltipsContentText:(St=I18N.SettingPanel.border_radius)==null?void 0:St[Ct],isShowAddVarIcon:!1,dropdownProps:ce,onConfirm:(hn,Cn)=>nt(hn,Ct,Cn)},Ct)})})]})]})})}),Um="#266fff",yu={[Um]:["#eef5ff","#faf5ff","#bcd8ff","#8ec0ff","#599dff","#266fff","#1b56f5","#1441e1","#1735b6","#19328f","#142057"],"#6366f1":["#eeeeff","#e0e1ff","#c7c8fe","#a5a7fc","#8184f8","#6366f1","#4649e5","#383bca","#3032a3","#2e3081","#1b1c4b"],"#8b5cf6":["#f7f3ff","#efe9fe","#e2d6fe","#cbb5fd","#ad8bfa","#8b5cf6","#713aed","#5e28d9","#4e21b6","#421d95","#2a1065"],"#a855f7":["#faf5ff","#f4e8ff","#ebd5ff","#dab4fe","#c184fc","#a855f7","#9133ea","#7a22ce","#6621a8","#531c87","#370764"],"#d946ef":["#fef4ff","#fce8ff","#f8d0fe","#f1abfc","#e879f9","#d946ef","#bc26d3","#9c1caf","#80198f","#691a75","#44044e"],"#ec4899":["#fdf2f7","#fce7f1","#fbcfe5","#f9a8d0","#f472b2","#ec4899","#db2780","#be186a","#9d1759","#83184d","#50072b"],"#f43f5e":["#fff1f3","#ffe4e9","#fecdd5","#fda4b3","#fb7189","#f43f5e","#e11d3f","#be122f","#9f122a","#881327","#4c0511"],"#ef4444":["#fef2f2","#fee2e2","#fecaca","#fca5a5","#f87171","#ef4444","#dc2626","#b91c1c","#991b1b","#7f1d1d","#450a0a"],"#f97316":["#fff4ed","#ffe6d5","#feccaa","#fdac74","#fb8a3c","#f97316","#ea670c","#c2570c","#9a4a12","#7c3d12","#432007"],"#f59e0b":["#fff8eb","#feeac7","#fdd28a","#fcbb4d","#fbab24","#f59e0b","#d98b06","#b47409","#92610e","#78510f","#452c03"],"#eab308":["#fef9e8","#fef0c3","#fee28a","#fdd147","#fac215","#eab308","#ca9a04","#a17c07","#85680e","#715a12","#423306"],"#84cc16":["#f5fee7","#e9fccb","#d5f99d","#baf264","#a0e635","#84cc16","#68a30d","#517c0f","#426212","#3a5314","#1e2e05"],"#22c55e":["#f0fdf5","#dcfce8","#bbf7d1","#86efad","#4ade80","#22c55e","#16a34a","#15803c","#166533","#14532b","#052e14"],"#10b981":["#ecfdf7","#d1faec","#a7f3da","#6ee7bf","#34d39e","#10b981","#059666","#047852","#065f42","#064e36","#022c1e"],"#14b8a6":["#f0fdfc","#ccfbf6","#99f6ec","#5eeadb","#2dd4c2","#14b8a6","#0d9485","#0f766b","#115e56","#134e48","#042f2a"],"#06b6d4":["#ecfcff","#cff7fe","#a5effc","#67e4f9","#22d0ee","#06b6d4","#0899b2","#0e7d90","#156775","#165863","#083b44"],"#0ea5e9":["#f0faff","#e0f5fe","#bae8fd","#7dd5fc","#38bcf8","#0ea5e9","#028ac7","#0370a1","#075e85","#0c506e","#083549"],"#697486":["#f6f7f9","#edeef1","#d7dae0","#b4bbc5","#8b95a5","#697486","#576172","#474e5d","#3d434f","#363b44","#24262d"]};var Vg=s(41818);const s6=e=>{const{key:t}=e,n=(0,ms.OP)({selections:[t],attr:"solidColor",supAttr:"fill",styleType:"color"}),a=(0,ms.OP)({selections:[t],attr:"bdrColor",supAttr:"border",styleType:"color"}),i=(0,ms.OP)({selections:[t],attr:"textColor",supAttr:"richTextV1",styleType:"color"}),c=(0,r.d4)(gl.Dw),d=(0,r.d4)(gl.jj),p=(0,r.wA)(),h=()=>{if(d!=null&&d.key){const A=sdkStore.getHotItem(d==null?void 0:d.key);if(p({type:"entry:libStyle:del:widget:refStyles",payload:{type:"text",selections:[e.key],refStyle:A}}),p({type:"settings:update:currentTextRefStyle",payload:null}),A){var v;const k=(0,ms.OP)({selections:[t],attr:"textColor",supAttr:"richTextV1",styleType:"color",refStyles:A==null||(v=A.hotAttr)==null?void 0:v.refStyles});k!=null&&k.key&&p({type:"entry:libStyle:del:widget:refStyles",payload:{selections:[t],key:"textColor",supAttr:"richTextV1",type:"color",refKey:k==null?void 0:k.key,isLibText:!0,updateType:"widget"}})}}},m=()=>{i!=null&&i.key&&p({type:"entry:libStyle:del:widget:refStyles",payload:{selections:[t],key:"textColor",supAttr:"richTextV1",type:"color",refKey:i==null?void 0:i.key,updateType:"widget"}})};return{handleClearRef:()=>{if(n!=null&&n.key&&p({type:"entry:libStyle:del:widget:refStyles",payload:{selections:[t],key:"solidColor",supAttr:"fill",type:"color",refKey:n==null?void 0:n.key,updateType:"widget"}}),a!=null&&a.key&&p({type:"entry:libStyle:del:widget:refStyles",payload:{selections:[t],key:"bdrColor",supAttr:"border",type:"color",refKey:a==null?void 0:a.key,updateType:"widget"}}),m(),c!=null&&c.key){const v=sdkStore.getHotItem(c==null?void 0:c.key);p({type:"entry:libStyle:del:widget:refStyles",payload:{type:"appear",selections:[e.key],refStyle:v}}),p({type:"settings:update:currentAppearRefStyle",payload:null})}h()},handleClearTextRef:h,handleClearTextColorRef:m}},l6=e=>{if(!e)return"transparent";if(typeof e=="number")return(0,ul.t0)(e);if(typeof e=="string")return e;if(typeof e=="object"){const n=e.knobList||e.solidColor||("bdrColor"in e?e.bdrColor:void 0),a=e.fillIsVisible||("bdrColor"in e?e.bdrIsVisible:void 0);if(!n||!a)return"transparent";let i;if(Array.isArray(n)){var t;i=(t=n[0])==null?void 0:t.color}else i=n;return i?(0,ul.t0)(i):"transparent"}return"transparent"},c6=e=>{let{widget:t,editorState:n,getTextV1:a,setTextV1:i,dispatch:c}=e;const{hotAttr:{fill:d,border:p,styleType:h,stateType:m,defaultColor:x}}=t,v=(0,r.d4)(gl.Dw),{handleClearRef:A,handleClearTextRef:k,handleClearTextColorRef:R}=s6(t),F=(0,l.useMemo)(()=>Object.values(yu).map(Xe=>[Xe[7],"#ffffff",Xe[2],Xe[5]]),[]),Z=nt=>{const Xe=Vg.Q.hex(nt);return(0,ul.u_)({R:Xe[0]*255,G:Xe[1]*255,B:Xe[2]*255,A:100})},G=(0,l.useMemo)(()=>{if(x)return Vg.Q.toHexAndAlpha((0,$l.WR)(x))[0]},[x]),ee=(0,l.useMemo)(()=>{const nt=new Map,Xe=new Map;return Object.keys(yu).forEach(lt=>{const Ct=Z(lt);nt.set(lt,Ct),Xe.set(Ct,lt)}),{hexToNumberMap:nt,numberToHexMap:Xe}},[]),ce=(0,l.useCallback)((nt,Xe)=>{if(!(t!=null&&t.hotAttr))return;const{hotAttr:{stateType:lt}}=t,Ct=Xe||lt,St=yu[nt];if(!(St!=null&&St.length))return;let hn="",Cn="";switch(Ct){case"default":{hn=St[5],Cn=St[0];break}case"hover":{hn=St[6],Cn=St[1];break}case"active":{hn=St[7],Cn=St[2];break}case"disabled":{hn=St[2],Cn=St[0];break}default:break}if(hn&&Cn){const Mt=Z(hn),Et=Z(Cn),Co=Z("#ffffff");return{main:[hn,Mt],light:[Cn,Et],white:["#ffffff",Co]}}},[t]),se=(nt,Xe)=>{const Ct=Object.values(yu).find(St=>St[Xe]===nt);if(Ct)return Ct[5]},he=(0,l.useMemo)(()=>{var nt;if(!(t!=null&&t.hotAttr))return;const{hotAttr:{fill:Xe,border:lt,styleType:Ct,stateType:St}}=t,hn=(nt=a(n))==null?void 0:nt.color,Cn=(0,$l.dT)(hn),Mt=Z("#ffffff");let Et=null,Co=null;switch(Ct){case"fill_drak":{Xe.fillIsVisible&&Xe.fill==="solid"&&Xe.solidColor===lt.bdrColor&&!lt.bdrIsVisible&&Cn.solidColor===Mt&&(Et=Xe.solidColor);break}case"fill_light":{Xe.fillIsVisible&&Xe.fill==="solid"&&Xe.solidColor===lt.bdrColor&&!lt.bdrIsVisible&&(Et=(Cn==null?void 0:Cn.fill)==="solid"?Cn.solidColor:null,Co=Xe.solidColor);break}case"border":{Xe.fillIsVisible&&Xe.fill==="solid"&&Xe.solidColor===Mt&&Cn.fill==="solid"&&Cn.solidColor===lt.bdrColor&&lt.bdrStyle==="solid"&&lt.bdrIsVisible&&(Et=lt.bdrColor);break}case"border_dashed":{Xe.fillIsVisible&&Xe.fill==="solid"&&Xe.solidColor===Mt&&Cn.fill==="solid"&&Cn.solidColor===lt.bdrColor&&lt.bdrStyle==="dashed"&&lt.bdrIsVisible&&(Et=lt.bdrColor);break}case"ghost":{!Xe.fillIsVisible&&Cn.fill==="solid"&&Cn.solidColor===lt.bdrColor&&lt.bdrStyle==="solid"&&lt.bdrIsVisible&&(Et=lt.bdrColor);break}case"text":!Xe.fillIsVisible&&!lt.bdrIsVisible&&Cn.fill==="solid"&&(Et=Cn.solidColor);default:break}if(!Et)return;const Pn=St==="default"?5:St==="hover"?6:St==="active"?7:St==="disabled"?2:5,ro=se(Vg.Q.toHexAndAlpha((0,$l.WR)(Et))[0],Pn);if(!ro)return;const Io=ce(ro);if(!Io)return;const{main:mo,light:So}=Io;if(Et===mo[1]&&(!Co||Co===So[1]))return ro},[t,n,a,ee]),ve=(0,l.useMemo)(()=>{var nt;const Xe=(nt=a(n))==null?void 0:nt.color,lt=(0,$l.dT)(Xe);return[l6(p),l6(lt),l6(d)]},[n,d,p,a]),Te=(0,l.useMemo)(()=>{if(!G||!yu[G])return{isCustomize:!0,colorItem:ve};const nt=F.find(Xe=>Xe[3]===G);return nt?he!==G?{isCustomize:!0,colorItem:ve}:{isCustomize:!1,colorItem:nt}:{isCustomize:!0,colorItem:ve}},[ve,G,F]),xe=(0,l.useCallback)(nt=>{let{value:Xe,attr:lt}=nt;switch(lt){case"fill":case"border":c({type:"entry:widget:change",payload:{flatChgList:[{key:t.key,hotAttr:{[lt]:Xe}}]}});break;case"color":i("color",(0,ul.t0)(Xe));default:break}},[c,i]),Fe=(0,l.useCallback)((nt,Xe,lt)=>{if(!nt)return;const Ct=ce(nt,lt);if(!Ct)return;const{main:St,light:hn,white:Cn}=Ct;if(!(St!=null&&St.length)||!(hn!=null&&hn.length)||!(Cn!=null&&Cn.length))return;const Mt={fillIsVisible:!0,fill:"solid",solidColor:St[1]},Et={fillIsVisible:!0,fill:"solid",solidColor:hn[1]},Co={fillIsVisible:!0,fill:"solid",solidColor:Cn[1]};switch(Xe){case"fill_drak":{xe({attr:"fill",value:Mt}),xe({attr:"border",value:{...p,bdrColor:St[1],bdrIsVisible:!1}}),xe({attr:"color",value:Cn[1]});break}case"fill_light":{xe({attr:"fill",value:Et}),xe({attr:"border",value:{...p,bdrColor:hn[1],bdrIsVisible:!1}}),xe({attr:"color",value:St[1]});break}case"border":{xe({attr:"fill",value:Co}),xe({attr:"border",value:{...p,bdrColor:St[1],bdrIsVisible:!0,bdrStyle:"solid"}}),xe({attr:"color",value:St[1]});break}case"border_dashed":{xe({attr:"fill",value:Co}),xe({attr:"border",value:{...p,bdrColor:St[1],bdrIsVisible:!0,bdrStyle:"dashed"}}),xe({attr:"color",value:St[1]});break}case"ghost":{xe({attr:"fill",value:{...d,fillIsVisible:!1}}),xe({attr:"border",value:{...p,bdrColor:St[1],bdrIsVisible:!0,bdrStyle:"solid"}}),xe({attr:"color",value:St[1]});break}case"text":{xe({attr:"fill",value:{...d,fillIsVisible:!1}}),xe({attr:"border",value:{...p,bdrIsVisible:!1}}),xe({attr:"color",value:St[1]});break}default:break}c({type:"entry:widget:change",payload:{flatChgList:[{key:t.key,hotAttr:{defaultColor:Z(nt)}}]}}),A()},[d,p,m,xe,A]),et=(0,l.useCallback)(nt=>{if(!(nt!=null&&nt.length))return;const Xe=nt[3];let lt={};h||(lt={...lt,styleType:"fill_drak"}),m||(lt={...lt,stateType:"default"}),c({type:"entry:widget:change",payload:{flatChgList:[{key:t.key,hotAttr:lt}]}}),Fe(Xe,h||"fill_drak",m||"default"),c({type:"entry:auto:show:hide:item"})},[d,p,h,m,xe]),Ke=(0,l.useCallback)(nt=>{const Xe=G&&yu[G]?G:Um;let lt={styleType:nt};m||(lt={...lt,stateType:"default"}),c({type:"entry:widget:change",payload:{flatChgList:[{key:t.key,hotAttr:lt}]}}),Fe(Xe,nt,m||"default"),c({type:"entry:auto:show:hide:item"})},[G,v,m,x,Fe,c]),Qe=(0,l.useCallback)(nt=>{const Xe=G&&yu[G]?G:Um;let lt={stateType:nt};h||(lt={...lt,styleType:"fill_drak"}),c({type:"entry:widget:change",payload:{flatChgList:[{key:t.key,hotAttr:lt}]}}),Fe(Xe,h||"fill_drak",nt),c({type:"entry:auto:show:hide:item"})},[d,p,h,m,G,xe]);return{colors:F,defaultColorHex:G,activeColorItem:Te,gradientMainColorsHexNumberMap:ee,getNumberColorFromHex:Z,getMainLightColor:ce,handleChangeAppearAttr:xe,handleChangeDefaultColor:et,handleChangeStyleType:Ke,handleChangeStateType:Qe,handleClearTextRef:k,handleClearTextColorRef:R}},tO=M.Ay.div.withConfig({displayName:"styles__DraftInlineToolbarDiv",componentId:"sc-rd87l1-0"})(["position:absolute;height:42px;min-width:42px;display:flex;flex-direction:row;justify-content:center;align-items:center;transition:transform 0.15s cubic-bezier(.3,1.2,.2,1);background:",";border-radius:8px;box-sizing:border-box;box-shadow:0px 4px 10px 0px rgba(0,0,0,0.1);z-index:5;border:1px solid ",";.drag-box{width:100%;height:100%;padding:0 4px;border-radius:8px 0 0 8px;background:",";cursor:move;display:flex;align-items:center;justify-content:center;margin-right:6px;margin-left:-1px;&:hover,&.is-dragging{svg{color:",";path[fill]{fill:currentColor;}path[stroke]{stroke:currentColor;}}}}.draft-separator-v{height:20px;border-right:1px solid ",";}.draft-separator-v + .quick-menu-option{margin-left:6px;}.draft-separator-h{width:100%;border-bottom:1px solid ",";margin-top:3px;margin-bottom:3px;}.draft-inline{&.svg-icon{color:",";width:28px;height:28px;}}.draft-link{cursor:pointer;&.svg-icon{width:28px;height:28px;color:",";}}.draft-image{cursor:pointer;&.svg-icon{width:28px;height:28px;}}.content-container{.svg-icon{color:",";}.option-title{color:",";}&.width-140{width:140px;padding:8px;&:lang(en){width:auto;}}&.width-240{width:240px;padding:8px 16px 16px 16px;&:lang(en){width:auto;}}&.draft-block-type-options{.option-content{flex:1;display:flex;align-items:center;margin-left:32px;svg{width:16px !important;height:16px !important;path[fill]{fill:",";}}.option-title{flex:auto;margin-left:8px;}}}&.draft-font-color-options{width:158px;padding:16px 14px;.rect-color-option-list{gap:6px;}}&.draft-bg-color-options{width:192px;padding:16px 14px;.rect-color-option-list{gap:6px;}}&.draft-inline-options{padding:8px;width:max-content;flex-direction:row;flex-wrap:wrap;.draft-toolbar-dropdown-option{width:32px;height:32px;display:flex;flex-direction:row;justify-content:center;align-items:center;margin:0 4px 0 0;padding:0;background-color:transparent;box-sizing:border-box;border-radius:6px;&:last-child{margin:0;}svg{color:inherit;path[fill]{fill:currentColor;}}&.active{background-color:",";color:",";}&:hover{background-color:",";}}.svg-icon{width:28px;height:28px;}}&.draft-fontsize-options{width:140px;padding:8px;.svg-icon,.draft-check{width:16px;height:16px;margin-right:13px;}.option-title{font-size:12px;line-height:16px;font-weight:400;}}&.draft-image-options{width:136px;padding:8px;.svg-icon{width:16px;height:16px;margin-right:10px;}.option-title{font-size:12px;line-height:16px;font-weight:400;}}&.draft-info-options{width:136px;padding:8px;.draft-toolbar-dropdown-option{display:flex;justify-content:space-between;padding:0 12px;align-items:center;}.left-label{font-size:12px;line-height:16px;}.right-content{display:flex;justify-content:center;align-items:center;}}.floating-tooltip{background-color:",";color:",";}}.content-container{&.draft-block-type-options,&.draft-fontsize-options,&.draft-image-options,&.draft-info-options{border-radius:8px;}&:not(.font-options){.var-input-container{&:hover:not(.is-disabled){.input{&:not(.is-disabled,.is-active){&.input-number{border-color:transparent;}}}}}}}.quick-menu-fixed-container{width:450px;height:42px;border-radius:8px;border:1px dashed ",";display:flex;align-items:center;justify-content:center;span{font-family:PingFang SC;font-weight:400;font-size:12px;color:",";}&.is-active{background:",";}}"],e=>e.theme.color_bg_white,e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_navigation_hover,e=>e.theme.color_btn_primary_normal,e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_btn_secondary_active,e=>e.theme.color_text_L1,e=>e.theme.color_text_L1,e=>e.theme.color_text_L1,e=>e.theme.color_text_L1,e=>e.theme.color_text_L1,e=>e.theme.color_bg_tab,e=>e.theme.color_btn_primary_normal,e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_background_white_modal,e=>e.theme.color_text_L1,e=>e.theme.color_slider_hover,e=>e.theme.color_text_L3,e=>e.theme.color_navigation_hover),nO=M.Ay.div.withConfig({displayName:"styles__StyledDivider",componentId:"sc-rd87l1-1"})(["width:100%;height:0;border-bottom:1px solid ",";margin:8px 0;"],e=>e.theme.color_bg_border_01),oO=M.Ay.div.withConfig({displayName:"styles__StyledQuickMenuFixedContainer",componentId:"sc-rd87l1-2"})(["width:450px;height:42px;border-radius:8px;background:",";border:1px dashed ",";display:flex;align-items:center;justify-content:center;z-index:4;span{font-family:PingFang SC;font-weight:400;font-size:12px;color:",";}&.is-active{background:",";border-color:",";span{color:",";}}"],e=>e.theme.color_bg_canvas,e=>e.theme.color_slider_hover,e=>e.theme.color_text_L3,e=>e.theme.color_info_bg,e=>e.theme.color_text_link_normal,e=>e.theme.color_text_link_normal),aO=M.Ay.div.withConfig({displayName:"styles__StyledTriggerColorDiv",componentId:"sc-6nuy2q-0"})(["width:32px;height:32px;border-radius:6px;display:flex;justify-content:center;align-items:center;.instance-color{&:not(.active):hover{outline:none;}}"]),rO=M.Ay.div.withConfig({displayName:"styles__StyledInstanceColorsContent",componentId:"sc-6nuy2q-1"})(["width:240px;display:flex;padding:8px 0;.title{width:100%;height:28px;color:",";font-weight:500;font-size:12px;padding-left:16px;display:flex;align-items:center;}.colors{width:100%;padding:8px 14px;display:grid;grid-template-columns:repeat(auto-fill,30px);gap:6px;}.apper-setting{width:100%;padding:0 10px 0 16px;.height-32{height:32px;}.appearance-line{display:flex;align-items:center;margin-left:-6px;}.common-check-label-box{width:68px;display:flex;align-items:center;.left-label{margin-left:4px;color:",";&.text-color-label{margin-left:28px;}}}}"],e=>e.theme.color_text_L1,e=>e.theme.color_text_L2),Fie=M.Ay.div.withConfig({displayName:"styles__StyledInstanceColor",componentId:"sc-6nuy2q-2"})(["width:30px;height:30px;padding:3px;border-radius:6px;cursor:pointer;.inner{width:100%;height:100%;border-radius:4px;overflow:hidden;display:grid;flex-direction:column;grid-template-columns:repeat(3,33.33%);position:relative;&::after{content:'';position:relative;display:block;position:absolute;width:100%;height:100%;top:0;left:0;border:1px solid ",";border-radius:4px;overflow:hidden;}}&.active{outline:1.5px solid ",";;}&:not(.active):hover{outline:1.5px solid ",";}"],e=>e.theme.color_bg_border_02,e=>e.theme.color_btn_primary_normal,e=>e.theme.color_btn_primary_disabled),Vie=M.Ay.div.withConfig({displayName:"styles__StyledInstanceColorSingle",componentId:"sc-6nuy2q-3"})(["width:100%;height:100%;background-color:",";"],e=>e.color),iO=M.Ay.div.withConfig({displayName:"styles__StyledRoundColorItem",componentId:"sc-6nuy2q-4"})(["width:","px;height:","px;padding:3px;border-radius:100%;cursor:pointer;display:flex;align-items:center;justify-content:center;.inner{width:100%;height:100%;border-radius:100%;background-image:linear-gradient(45deg,rgb(204,204,204) 25%,transparent 0px),linear-gradient(-45deg,rgb(204,204,204) 25%,transparent 0px),linear-gradient(45deg,transparent 75%,rgb(204,204,204) 0px),linear-gradient(-45deg,transparent 75%,rgb(204,204,204) 0px);background-size:10px 10px;background-position:0px 0px,0px 5px,5px -5px,-5px 0px;background-clip:padding-box;outline:1px solid ",";.color-box{width:100%;height:100%;border-radius:100%;transform:translateZ(0);background:",";&.fourths{transform:rotate(-45deg);}}}&.active{outline:1.5px solid ",";;}&:not(.active):not(.no-hover):hover{outline:1.5px solid ",";}"],e=>e.size+6,e=>e.size+6,e=>e.borderColor||e.theme.color_bg_border_02,e=>{const{colors:t}=e,n=t==null?void 0:t.length,a=360/n;let i="repeating-conic-gradient(from 0deg, ";for(let c=0;c<n;c++){const d=c*a,p=(c+1)*a,h=t[c];i+=h+" "+d+"deg "+p+"deg",c<n-1&&(i+=", ")}return i+=")",i},e=>e.theme.color_btn_primary_normal,e=>e.theme.color_btn_primary_disabled),sO=M.Ay.div.withConfig({displayName:"styles__StyledDraftBgColorIconDiv",componentId:"sc-6nuy2q-5"})(["width:32px;height:32px;justify-content:center !important;"]),lO=M.Ay.div.withConfig({displayName:"styles__StyledDraftBgColorActiveDiv",componentId:"sc-6nuy2q-6"})(["width:18px;height:18px;box-sizing:border-box;border-radius:50%;background-color:",";border:1px solid ",";"],e=>e.value,e=>e.borderColor||e.theme.color_bg_border_01),_7=(0,l.memo)(e=>{var t;const{config:n,dropdownPosition:a,widget:i,isTextEditing:c,editorState:d,getTextV1:p,setTextV1:h,dispatch:m}=e,{title:x,isShowDefaultColors:v=!0}=n,{key:A,hotAttr:{fill:k,refStyles:R,border:F,borderVisibility:Z}}=i,G=(t=p(d))==null?void 0:t.color,{colors:ee,defaultColorHex:ce,activeColorItem:se,handleClearTextRef:he,handleClearTextColorRef:ve,handleChangeAppearAttr:Te,handleChangeDefaultColor:xe}=c6({widget:i,editorState:d,getTextV1:p,setTextV1:h,dispatch:m}),{isCustomize:Fe,colorItem:et}=se,Ke=(0,l.useRef)(null),Qe=(0,l.useRef)(null),nt=(0,l.useMemo)(()=>{if(R!=null&&R.text){var hn;return(hn=sdkStore.getHotItem(R.text))==null||(hn=hn.hotAttr)==null?void 0:hn.refStyles}return R},[R]),Xe=hn=>{let{value:Cn,attr:Mt}=hn;Te({value:Cn,attr:Mt}),m({type:"entry:auto:show:hide:item"})},lt=hn=>{Te({value:hn,attr:"color"}),he(),m({type:"entry:auto:show:hide:item"}),c&&ve()},Ct=()=>{var hn;if(!(Qe!=null&&Qe.current))return null;const Cn=(hn=Qe.current)==null?void 0:hn.getBoundingClientRect();return{left:Cn.right+2,top:Cn.top}},St=hn=>{var Cn,Mt;xe(hn),(Cn=Ke.current)==null||(Mt=Cn.close)==null||Mt.call(Cn)};return(0,o.jsx)(Rl,{ref:Ke,title:x,top:a==="bottom"?40:v?-304:-119,left:-104,trigger:(0,o.jsx)("div",{className:"trigger-container padding-0",children:(0,o.jsx)(aO,{children:et?(0,o.jsx)(T7,{className:"no-hover",borderColor:Fe?void 0:et[3],colors:et,size:18}):(0,o.jsx)("span",{className:"title",children:"--"})})}),children:(0,o.jsxs)(rO,{className:"content-container instance-color-options",ref:Qe,children:[v&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("span",{className:"title",children:I18N.TextToolbar.button.color.default}),(0,o.jsx)("div",{className:"colors",children:ee.map((hn,Cn)=>{const Mt=!Fe&&hn[3]===ce;return(0,o.jsx)(T7,{colors:hn,isActive:Mt,borderColor:hn[3],onClick:()=>St(hn)},Cn)})}),(0,o.jsx)(nO,{}),(0,o.jsx)("span",{className:"title",children:I18N.TextToolbar.button.color.customize})]}),(0,o.jsxs)("div",{className:"apper-setting",children:[(0,o.jsx)(K2.s,{fill:k,onChange:Xe,selections:[A],canOpenLib:!0,refStyles:R,index:1,onPosition:Ct}),(0,o.jsx)(om.$,{border:F,borderVisibility:Z,canBorderWidth:!1,canBorderStyle:!1,canSetBorderVisibility:!1,canOpenLib:!0,canAddVar:!1,refStyles:R,onChange:Xe,onPosition:Ct}),(0,o.jsxs)("div",{className:"appearance-line color-line height-32 margin-left-n6",children:[(0,o.jsx)("div",{className:"common-check-label-box",children:(0,o.jsx)("label",{className:"left-label text-color-label",children:I18N.TextToolbar.button.color.text})}),(0,o.jsx)(Ec.R_,{className:Ec.EY,mode:"input",attr:"textColor",supAttr:"richTextV1",color:G,isLibText:!!(R!=null&&R.text),refStyles:nt,pIsSolidColorOnly:!0,canOpenLib:!c,canCreateColorRef:!c,onPosition:Ct,onChange:lt})]})]})]})})}),T7=(0,l.memo)(e=>{const{className:t="",borderColor:n,colors:a,size:i=22,isActive:c,onClick:d=()=>{}}=e;return(0,o.jsx)(iO,{size:i,colors:a,borderColor:n,className:C()(t,{active:c}),onClick:d,children:(0,o.jsx)("div",{className:"inner",children:(0,o.jsx)("div",{className:C()("color-box",{fourths:(a==null?void 0:a.length)==4})})})})});var cO=Object.defineProperty,dO=Object.defineProperties,pO=Object.getOwnPropertyDescriptors,zg=Object.getOwnPropertySymbols,P7=Object.prototype.hasOwnProperty,L7=Object.prototype.propertyIsEnumerable,N7=(e,t,n)=>t in e?cO(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,d6=(e,t)=>{for(var n in t||(t={}))P7.call(t,n)&&N7(e,n,t[n]);if(zg)for(var n of zg(t))L7.call(t,n)&&N7(e,n,t[n]);return e},uO=(e,t)=>dO(e,pO(t)),hO=(e,t)=>{var n={};for(var a in e)P7.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&zg)for(var a of zg(e))t.indexOf(a)<0&&L7.call(e,a)&&(n[a]=e[a]);return n},mO=(0,l.forwardRef)((e,t)=>{var n=e,{size:a,spin:i,style:c}=n,d=hO(n,["size","spin","style"]);const p=d6(d6({width:a||"var(--x-icon-size, 1em)",height:a||"var(--x-icon-size, 1em)",animation:i?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),c);return l.createElement("svg",uO(d6({ref:t,style:p},d),{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"}),l.createElement("rect",{x:"3",y:"3",width:"18",height:"18",rx:"9",fill:"url(#pattern0_2581_617)"}),l.createElement("rect",{x:"3.5",y:"3.5",width:"17",height:"17",rx:"8.5",stroke:"#020910",strokeOpacity:"0.13"}),l.createElement("defs",null,l.createElement("pattern",{id:"pattern0_2581_617",patternContentUnits:"objectBoundingBox",width:"3.27111",height:"3.27111"},l.createElement("use",{xlinkHref:"#image0_2581_617",transform:"scale(0.0127778)"})),l.createElement("image",{id:"image0_2581_617",width:"256",height:"256",preserveAspectRatio:"none",xlinkHref:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAAEACAYAAABccqhmAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAOTSURBVHgB7duxkQMxDARB3hdTUP4BKgCY/BxE62q6E1hvCg6emTnrwvf7XTc+n8+6Yd++/d/9LSBLACBMACBMACBMACBMACBMACBMACBMACBMACBMACBMACBMACBMACBMACBs+6e2b7+77wKAMAGAMAGAMAGAMAGAMAGAMAGAMAGAMAGAMAGAMAGAMAGAMAGAMAGAMAGAsGdmzrrgn9u+/ffuuwAgTAAgTAAgTAAgTAAgTAAgTAAgTAAgTAAgTAAgTAAgTAAgTAAgTAAgTAAgbPuntm+/u+8CgDABgDABgDABgDABgDABgDABgDABgDABgDABgDABgDABgDABgDABgDABgLBnZs664J/bvv337rsAIEwAIEwAIEwAIEwAIEwAIEwAIEwAIEwAIEwAIEwAIEwAIEwAIEwAIEwAIGz7p7Zvv7vvAoAwAYAwAYAwAYAwAYAwAYAwAYAwAYAwAYAwAYAwAYAwAYAwAYAwAYAwAYCwZ2bOuuCf27799+67ACBMACBMACBMACBMACBMACBMACBMACBMACBMACBMACBMACBMACBMACBMACBs+6e2b7+77wKAMAGAMAGAMAGAMAGAMAGAMAGAMAGAMAGAMAGAMAGAMAGAMAGAMAGAMAGAsGdmzrrgn9u+/ffuuwAgTAAgTAAgTAAgTAAgTAAgTAAgTAAgTAAgTAAgTAAgTAAgTAAgTAAgTAAgbPuntm+/u+8CgDABgDABgDABgDABgDABgDABgDABgDABgDABgDABgDABgDABgDABgDABgLBnZs664J/bvv337rsAIEwAIEwAIEwAIEwAIEwAIEwAIEwAIEwAIEwAIEwAIEwAIEwAIEwAIEwAIGz7p7Zvv7vvAoAwAYAwAYAwAYAwAYAwAYAwAYAwAYAwAYAwAYAwAYAwAYAwAYAwAYAwAYCwZ2bOuuCf27799+67ACBMACBMACBMACBMACBMACBMACBMACBMACBMACBMACBMACBMACBMACBMACBs+6e2b7+77wKAMAGAMAGAMAGAMAGAMAGAMAGAMAGAMAGAMAGAMAGAMAGAMAGAMAGAMAGAsGdmzrrgn9u+/ffuuwAgTAAgTAAgTAAgTAAgTAAgTAAgTAAgTAAgTAAgTAAgTAAgTAAgTAAgTAAgbPuntm+/u+8CgDABgDABgDABgDABgDABgDABgDABgDABgDABgDABgDABgDABgDABgDABgLB/7KOfQFtGNhQAAAAASUVORK5CYII="})))});const Wg=(0,l.memo)(e=>{var t;const{config:n,dropdownPosition:a,widget:i,fill:c,handleColorChange:d,onOpenColorPanel:p,onCloseColorPanel:h}=e,{title:m,colors:x,hasCheck:v,hasColorBtn:A}=n,k=(0,l.useRef)(null),R=(0,l.useRef)(null),F=(0,l.useMemo)(()=>c||{fillIsVisible:!0,fill:"solid",solidColor:4258350079},[c]),Z=(0,l.useMemo)(()=>{let he=x.map(ve=>({...ve,fill:(0,$l.dT)(ve.color)})).find(ve=>ve.fill.solidColor===F.solidColor);if(!he){const ve=(0,$l.n7)({fill:c,width:i.hotAttr.w,height:i.hotAttr.h});he={color:ve,borderColor:ve.replace(/,1\)/,",0.5)"),fill:F}}return he},[x,i,F]),G=function(se,he){var ve,Te;if(he===void 0&&(he=!0),!!MB.action){if(se==="transparent"){const xe={...c,solidColor:4294967040,fillIsVisible:!1};d(xe)}else d(se);he&&((ve=k.current)==null||(Te=ve.close)==null||Te.call(ve))}},ce=!(c!=null&&c.fillIsVisible)||((t=(0,ul.BN)(c==null?void 0:c.solidColor))==null?void 0:t.A)===0;return(0,o.jsx)(Rl,{ref:k,top:a==="bottom"?40:-101,left:-85,title:m,trigger:(0,o.jsx)("div",{className:"trigger-container padding-0",children:(0,o.jsx)(sO,{className:"icon",children:ce?(0,o.jsx)(mO,{size:24}):(0,o.jsx)(lO,{value:Z.color,borderColor:Z.borderColor,className:n.className})})}),children:(0,o.jsx)("div",{className:"content-container draft-bg-color-options",ref:R,children:(0,o.jsx)(n6,{contentRef:R,config:{colors:x,hasCheck:v,hasColorBtn:A},fill:c,onChange:G,onOpenColorPanel:p,onCloseColorPanel:h})})})}),Hg=e=>{var t;let{$ref:n,dropdownPosition:a,contentWidth:i,contentHeight:c,offset:d=5}=e;if(!(n!=null&&n.current))return null;const p=(t=n.current)==null?void 0:t.getBoundingClientRect(),h=p.left+p.width/2-i/2;return a==="top"?{top:p.top-c-d,left:h}:{top:p.bottom+d,left:h}},j7=e=>{var t,n;let{left:a,top:i}=e;const c=(t=document.querySelector("#screens"))==null?void 0:t.getBoundingClientRect();if(!c)return;const d=(n=document.querySelector(".draft-inline-toolbar"))==null?void 0:n.getBoundingClientRect();if(!d)return;const p=c.left,h=c.top,m=c.right-d.width,x=c.bottom-d.height-10;return a>m&&(a=m),a<p&&(a=p),i>x&&(i=x),i<h&&(i=h),i=i>>0,a=a>>0,{left:a,top:i}},fO=M.Ay.div.withConfig({displayName:"styles__StyledColorBtn",componentId:"sc-13pqbvu-0"})(['flex:0 0 32px;width:32px;height:32px;border-radius:6px;display:flex;align-items:center;justify-content:center;margin:0 6px;cursor:pointer;&:not(.is-used-style-ref){.open-lib-icon{display:none;}div[type="color-btn"]{width:32px;height:32px;align-items:center;border-radius:6px;.color-btn-wrap{width:100%;height:100%;display:flex;align-items:center;justify-content:center;}&:not(.is-open):hover{background-color:',";}&.is-open{background-color:",';}}}.color-button-thumbnail{width:18px;height:18px;border-radius:50%;.thumbnail{border-radius:50%;}}&.is-used-style-ref{width:auto;flex:1 1 0%;div[type="color-btn"]{padding:0 6px;border-radius:6px;height:100%;align-items:center;&.is-open,&:hover{background-color:',";}}.color-btn-wrap{display:flex;align-items:center;overflow:hidden;max-width:124px;}.used-ref-style{padding-left:2px;flex:1;",";color:",";}.clear-style-ref-icon{width:24px;height:24px;flex:0 0 24px;margin-left:6px;border-radius:4px;display:flex;&:hover{background:",";}}}"],e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_bg_tab,e=>e.theme.color_btn_secondary_hover,za.L9,e=>e.theme.color_text_L1,e=>e.theme.color_navigation_active),gO=M.Ay.div.withConfig({displayName:"styles__StyledIconContent",componentId:"sc-13pqbvu-1"})(["width:258px;height:420px;padding:2px 4px;overflow:hidden;#popups-icon-panel{border:none;box-shadow:none;border-radius:0;height:420px;min-height:420px;}#popups-search-panel{border:none;box-shadow:none;border-radius:0;}&.is-show-footer{#popups-icon-panel{height:376px;min-height:376px;}}.footer{width:100%;height:44px;position:absolute;bottom:0;padding:8px 10px;background:",";border-top:1px solid ",";display:flex;align-items:center;justify-content:space-between;.position-container{height:28px;padding:2px;border-radius:6px;display:flex;align-items:center;justify-content:center;background:",";.position-box{width:56px;height:100%;border-radius:4px;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:all 0.2s ease-in-out;color:",";&.is-active{background:",";color:",";box-shadow:",";}}}.remove{display:flex;align-items:center;justify-content:center;color:",";font-weight:500;font-size:12px;padding:4px 6px;height:28px;cursor:pointer;border-radius:6px;&.disabled{pointer-events:none;color:",";}&:not(.disabled):hover{background:",";}&:not(.disabled):active{background:",";}}}"],e=>e.theme.color_bg_white,e=>e.theme.color_bg_border_01,e=>e.theme.color_navigation_hover,e=>e.theme.color_text_L3,e=>e.theme.color_bg_white,e=>e.theme.color_text_L1,e=>e.theme.shadow_s,e=>e.theme.color_text_L1,e=>e.theme.color_text_disabled01,e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_btn_secondary_active),D7=(0,l.memo)(e=>{const{config:t,widget:n,dropdownPosition:a,color:i,attr:c,supAttr:d,disabled:p,canOpenLib:h,canCreateColorRef:m,isTextEditing:x,getMode:v,onChange:A}=e,{title:k,pIsSolidColorOnly:R=!1}=t,{hotAttr:{refStyles:F}}=n,Z=(0,l.useMemo)(()=>(0,ms.OP)({selections:[n.key],attr:c,supAttr:d,styleType:"color"}),[n,d]),G=se=>{A(se)},ee=se=>Hg({$ref:se,dropdownPosition:a,contentWidth:240,contentHeight:558,offset:14}),ce=(se,he)=>{const ve=he.getBoundingClientRect(),{width:Te,height:xe}=ve,Fe=Hg({$ref:se,dropdownPosition:a,contentWidth:Te,contentHeight:xe,offset:14});if(!Fe)return;const{left:et,top:Ke}=Fe,Qe=et+Te,nt=Ke+xe;let Xe=0,lt=0;return et<0&&(Xe=0-et),Qe>window.innerWidth&&(Xe=window.innerWidth-Qe),Ke<56&&(lt=56-Ke),nt>window.innerHeight-18&&(lt=window.innerHeight-nt-18),Xe||lt?{left:et+Xe,top:Ke+lt}:Fe};return(0,o.jsx)(fO,{className:C()({"is-used-style-ref":Z&&!x}),children:(0,o.jsx)(Ec.R_,{mode:v?v(Z):"input",supAttr:d,attr:c,color:i,disabled:p,onChange:G,canOpenLib:h,canCreateColorRef:m,refStyles:F,pIsSolidColorOnly:R,toolTips:k,onPosition:ee,onApplyDidMountSideEffect:ce,canStopPropagation:!1,direction:"down",distance2:5,size:18,solidRenderType:"circle"})})});var yO=Object.defineProperty,xO=Object.defineProperties,vO=Object.getOwnPropertyDescriptors,Gg=Object.getOwnPropertySymbols,R7=Object.prototype.hasOwnProperty,B7=Object.prototype.propertyIsEnumerable,U7=(e,t,n)=>t in e?yO(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,p6=(e,t)=>{for(var n in t||(t={}))R7.call(t,n)&&U7(e,n,t[n]);if(Gg)for(var n of Gg(t))B7.call(t,n)&&U7(e,n,t[n]);return e},bO=(e,t)=>xO(e,vO(t)),wO=(e,t)=>{var n={};for(var a in e)R7.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&Gg)for(var a of Gg(e))t.indexOf(a)<0&&B7.call(e,a)&&(n[a]=e[a]);return n},Zg=(0,l.forwardRef)((e,t)=>{var n=e,{size:a,spin:i,style:c}=n,d=wO(n,["size","spin","style"]);const p=p6(p6({width:a||"var(--x-icon-size, 1em)",height:a||"var(--x-icon-size, 1em)",animation:i?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),c);return l.createElement("svg",bO(p6({ref:t,style:p},d),{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),l.createElement("path",{d:"M4 6C4 5.58579 4.33579 5.25 4.75 5.25H19.25C19.6642 5.25 20 5.58579 20 6C20 6.41421 19.6642 6.75 19.25 6.75H4.75C4.33579 6.75 4 6.41421 4 6Z",fill:"#19191A"}),l.createElement("path",{d:"M4 12C4 11.5858 4.33579 11.25 4.75 11.25H13.25C13.6642 11.25 14 11.5858 14 12C14 12.4142 13.6642 12.75 13.25 12.75H4.75C4.33579 12.75 4 12.4142 4 12Z",fill:"#19191A"}),l.createElement("path",{d:"M4 18C4 17.5858 4.33579 17.25 4.75 17.25H19.25C19.6642 17.25 20 17.5858 20 18C20 18.4142 19.6642 18.75 19.25 18.75H4.75C4.33579 18.75 4 18.4142 4 18Z",fill:"#19191A"}))}),CO=Object.defineProperty,SO=Object.defineProperties,AO=Object.getOwnPropertyDescriptors,Kg=Object.getOwnPropertySymbols,O7=Object.prototype.hasOwnProperty,F7=Object.prototype.propertyIsEnumerable,V7=(e,t,n)=>t in e?CO(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,u6=(e,t)=>{for(var n in t||(t={}))O7.call(t,n)&&V7(e,n,t[n]);if(Kg)for(var n of Kg(t))F7.call(t,n)&&V7(e,n,t[n]);return e},kO=(e,t)=>SO(e,AO(t)),MO=(e,t)=>{var n={};for(var a in e)O7.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&Kg)for(var a of Kg(e))t.indexOf(a)<0&&F7.call(e,a)&&(n[a]=e[a]);return n},z7=(0,l.forwardRef)((e,t)=>{var n=e,{size:a,spin:i,style:c}=n,d=MO(n,["size","spin","style"]);const p=u6(u6({width:a||"var(--x-icon-size, 1em)",height:a||"var(--x-icon-size, 1em)",animation:i?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),c);return l.createElement("svg",kO(u6({ref:t,style:p},d),{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),l.createElement("path",{d:"M6.75 5.75C6.75 5.33579 7.08579 5 7.5 5L16 5C16.4142 5 16.75 5.33579 16.75 5.75C16.75 6.16421 16.4142 6.5 16 6.5H7.5C7.08579 6.5 6.75 6.16421 6.75 5.75Z",fill:"#19191A"}),l.createElement("path",{d:"M4 11.75C4 11.3358 4.33579 11 4.75 11H19C19.4142 11 19.75 11.3358 19.75 11.75C19.75 12.1642 19.4142 12.5 19 12.5H4.75C4.33579 12.5 4 12.1642 4 11.75Z",fill:"#19191A"}),l.createElement("path",{d:"M6.75 17.75C6.75 17.3358 7.08579 17 7.5 17H16C16.4142 17 16.75 17.3358 16.75 17.75C16.75 18.1642 16.4142 18.5 16 18.5H7.5C7.08579 18.5 6.75 18.1642 6.75 17.75Z",fill:"#19191A"}))}),EO=Object.defineProperty,IO=Object.defineProperties,_O=Object.getOwnPropertyDescriptors,Yg=Object.getOwnPropertySymbols,W7=Object.prototype.hasOwnProperty,H7=Object.prototype.propertyIsEnumerable,G7=(e,t,n)=>t in e?EO(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,h6=(e,t)=>{for(var n in t||(t={}))W7.call(t,n)&&G7(e,n,t[n]);if(Yg)for(var n of Yg(t))H7.call(t,n)&&G7(e,n,t[n]);return e},TO=(e,t)=>IO(e,_O(t)),PO=(e,t)=>{var n={};for(var a in e)W7.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&Yg)for(var a of Yg(e))t.indexOf(a)<0&&H7.call(e,a)&&(n[a]=e[a]);return n},Z7=(0,l.forwardRef)((e,t)=>{var n=e,{size:a,spin:i,style:c}=n,d=PO(n,["size","spin","style"]);const p=h6(h6({width:a||"var(--x-icon-size, 1em)",height:a||"var(--x-icon-size, 1em)",animation:i?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),c);return l.createElement("svg",TO(h6({ref:t,style:p},d),{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),l.createElement("path",{d:"M4 5.75C4 5.33579 4.33579 5 4.75 5H19.25C19.6642 5 20 5.33579 20 5.75C20 6.16421 19.6642 6.5 19.25 6.5H4.75C4.33579 6.5 4 6.16421 4 5.75Z",fill:"#19191A"}),l.createElement("path",{d:"M10 11.75C10 11.3358 10.3358 11 10.75 11H19.25C19.6642 11 20 11.3358 20 11.75C20 12.1642 19.6642 12.5 19.25 12.5H10.75C10.3358 12.5 10 12.1642 10 11.75Z",fill:"#19191A"}),l.createElement("path",{d:"M4 17.75C4 17.3358 4.33579 17 4.75 17H19.25C19.6642 17 20 17.3358 20 17.75C20 18.1642 19.6642 18.5 19.25 18.5H4.75C4.33579 18.5 4 18.1642 4 17.75Z",fill:"#19191A"}))}),LO=Object.defineProperty,NO=Object.defineProperties,jO=Object.getOwnPropertyDescriptors,Xg=Object.getOwnPropertySymbols,K7=Object.prototype.hasOwnProperty,Y7=Object.prototype.propertyIsEnumerable,X7=(e,t,n)=>t in e?LO(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,m6=(e,t)=>{for(var n in t||(t={}))K7.call(t,n)&&X7(e,n,t[n]);if(Xg)for(var n of Xg(t))Y7.call(t,n)&&X7(e,n,t[n]);return e},DO=(e,t)=>NO(e,jO(t)),RO=(e,t)=>{var n={};for(var a in e)K7.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&Xg)for(var a of Xg(e))t.indexOf(a)<0&&Y7.call(e,a)&&(n[a]=e[a]);return n},Q7=(0,l.forwardRef)((e,t)=>{var n=e,{size:a,spin:i,style:c}=n,d=RO(n,["size","spin","style"]);const p=m6(m6({width:a||"var(--x-icon-size, 1em)",height:a||"var(--x-icon-size, 1em)",animation:i?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),c);return l.createElement("svg",DO(m6({ref:t,style:p},d),{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),l.createElement("path",{d:"M4 6C4 5.58579 4.33579 5.25 4.75 5.25H19.25C19.6642 5.25 20 5.58579 20 6C20 6.41421 19.6642 6.75 19.25 6.75H4.75C4.33579 6.75 4 6.41421 4 6Z",fill:"#19191A"}),l.createElement("path",{d:"M4 12C4 11.5858 4.33579 11.25 4.75 11.25H19.25C19.6642 11.25 20 11.5858 20 12C20 12.4142 19.6642 12.75 19.25 12.75H4.75C4.33579 12.75 4 12.4142 4 12Z",fill:"#19191A"}),l.createElement("path",{d:"M4 18C4 17.5858 4.33579 17.25 4.75 17.25H19.25C19.6642 17.25 20 17.5858 20 18C20 18.4142 19.6642 18.75 19.25 18.75H4.75C4.33579 18.75 4 18.4142 4 18Z",fill:"#19191A"}))}),BO=Object.defineProperty,UO=Object.defineProperties,OO=Object.getOwnPropertyDescriptors,Qg=Object.getOwnPropertySymbols,J7=Object.prototype.hasOwnProperty,q7=Object.prototype.propertyIsEnumerable,$7=(e,t,n)=>t in e?BO(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,f6=(e,t)=>{for(var n in t||(t={}))J7.call(t,n)&&$7(e,n,t[n]);if(Qg)for(var n of Qg(t))q7.call(t,n)&&$7(e,n,t[n]);return e},FO=(e,t)=>UO(e,OO(t)),VO=(e,t)=>{var n={};for(var a in e)J7.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&Qg)for(var a of Qg(e))t.indexOf(a)<0&&q7.call(e,a)&&(n[a]=e[a]);return n},zO=(0,l.forwardRef)((e,t)=>{var n=e,{size:a,spin:i,style:c}=n,d=VO(n,["size","spin","style"]);const p=f6(f6({width:a||"var(--x-icon-size, 1em)",height:a||"var(--x-icon-size, 1em)",animation:i?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),c);return l.createElement("svg",FO(f6({ref:t,style:p},d),{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),l.createElement("path",{d:"M4 4.75C4 4.33579 4.33579 4 4.75 4H18.75C19.1642 4 19.5 4.33579 19.5 4.75C19.5 5.16421 19.1642 5.5 18.75 5.5H4.75C4.33579 5.5 4 5.16421 4 4.75Z",fill:"#19191A"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.7542 7.00391C11.9531 7.00391 12.1439 7.08292 12.2845 7.22358L16.6988 11.6378C16.9916 11.9307 16.9916 12.4056 16.6988 12.6985C16.4059 12.9913 15.931 12.9913 15.6381 12.6985L12.5042 9.56457V19.2539C12.5042 19.6681 12.1684 20.0039 11.7542 20.0039C11.34 20.0039 11.0042 19.6681 11.0042 19.2539V9.56457L7.87033 12.6985C7.57744 12.9913 7.10256 12.9913 6.80967 12.6985C6.51678 12.4056 6.51678 11.9307 6.80967 11.6378L11.2239 7.22358C11.3645 7.08292 11.5553 7.00391 11.7542 7.00391Z",fill:"#19191A"}))}),WO=Object.defineProperty,HO=Object.defineProperties,GO=Object.getOwnPropertyDescriptors,Jg=Object.getOwnPropertySymbols,e9=Object.prototype.hasOwnProperty,t9=Object.prototype.propertyIsEnumerable,n9=(e,t,n)=>t in e?WO(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,g6=(e,t)=>{for(var n in t||(t={}))e9.call(t,n)&&n9(e,n,t[n]);if(Jg)for(var n of Jg(t))t9.call(t,n)&&n9(e,n,t[n]);return e},ZO=(e,t)=>HO(e,GO(t)),KO=(e,t)=>{var n={};for(var a in e)e9.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&Jg)for(var a of Jg(e))t.indexOf(a)<0&&t9.call(e,a)&&(n[a]=e[a]);return n},YO=(0,l.forwardRef)((e,t)=>{var n=e,{size:a,spin:i,style:c}=n,d=KO(n,["size","spin","style"]);const p=g6(g6({width:a||"var(--x-icon-size, 1em)",height:a||"var(--x-icon-size, 1em)",animation:i?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),c);return l.createElement("svg",ZO(g6({ref:t,style:p},d),{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),l.createElement("path",{d:"M18.5 11.7497C18.5 12.1639 18.1642 12.4997 17.75 12.4997L5.75 12.4997C5.33579 12.4997 5 12.1639 5 11.7497C5 11.3355 5.33579 10.9997 5.75 10.9997L17.75 10.9997C18.1642 10.9997 18.5 11.3355 18.5 11.7497Z",fill:"#19191A"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.755 9.49561C11.9539 9.49561 12.1447 9.4166 12.2854 9.27595L15.1139 6.44752C15.4068 6.15463 15.4068 5.67976 15.114 5.38686C14.8211 5.09396 14.3462 5.09395 14.0533 5.38684L12.5051 6.935L12.5051 3.74561C12.5051 3.33139 12.1693 2.99561 11.7551 2.99561C11.3408 2.99561 11.0051 3.33139 11.0051 3.74561L11.0051 6.93489L9.4571 5.38686C9.16421 5.09396 8.68934 5.09395 8.39644 5.38684C8.10354 5.67972 8.10353 6.1546 8.39642 6.4475L11.2247 9.27592C11.3654 9.41658 11.5561 9.4956 11.755 9.49561Z",fill:"#19191A"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.7538 13.9955C11.5548 13.9955 11.3641 14.0745 11.2234 14.2152L8.39486 17.0436C8.10196 17.3365 8.10195 17.8114 8.39483 18.1043C8.68772 18.3972 9.16259 18.3972 9.45549 18.1043L11.0037 16.5561L11.0037 19.7455C11.0037 20.1597 11.3395 20.4955 11.7537 20.4955C12.1679 20.4955 12.5037 20.1597 12.5037 19.7455L12.5037 16.5562L14.0517 18.1043C14.3446 18.3972 14.8194 18.3972 15.1123 18.1043C15.4052 17.8114 15.4053 17.3365 15.1124 17.0436L12.2841 14.2152C12.1434 14.0746 11.9527 13.9955 11.7538 13.9955Z",fill:"#19191A"}))}),XO=Object.defineProperty,QO=Object.defineProperties,JO=Object.getOwnPropertyDescriptors,qg=Object.getOwnPropertySymbols,o9=Object.prototype.hasOwnProperty,a9=Object.prototype.propertyIsEnumerable,r9=(e,t,n)=>t in e?XO(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,y6=(e,t)=>{for(var n in t||(t={}))o9.call(t,n)&&r9(e,n,t[n]);if(qg)for(var n of qg(t))a9.call(t,n)&&r9(e,n,t[n]);return e},qO=(e,t)=>QO(e,JO(t)),$O=(e,t)=>{var n={};for(var a in e)o9.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&qg)for(var a of qg(e))t.indexOf(a)<0&&a9.call(e,a)&&(n[a]=e[a]);return n},eF=(0,l.forwardRef)((e,t)=>{var n=e,{size:a,spin:i,style:c}=n,d=$O(n,["size","spin","style"]);const p=y6(y6({width:a||"var(--x-icon-size, 1em)",height:a||"var(--x-icon-size, 1em)",animation:i?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),c);return l.createElement("svg",qO(y6({ref:t,style:p},d),{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),l.createElement("path",{d:"M19.5 19.2502C19.5 19.6644 19.1642 20.0002 18.75 20.0002L4.75 20.0002C4.33579 20.0002 4 19.6644 4 19.2502C4 18.836 4.33579 18.5002 4.75 18.5002L18.75 18.5002C19.1642 18.5002 19.5 18.836 19.5 19.2502Z",fill:"#19191A"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.7443 17C11.5454 17 11.3546 16.921 11.214 16.7803L6.79974 12.3661C6.50685 12.0732 6.50685 11.5984 6.79974 11.3055C7.09263 11.0126 7.56751 11.0126 7.8604 11.3055L10.9943 14.4393L10.9943 4.75C10.9943 4.33579 11.3301 4 11.7443 4C12.1585 4 12.4943 4.33579 12.4943 4.75L12.4943 14.4393L15.6282 11.3055C15.9211 11.0126 16.3959 11.0126 16.6888 11.3055C16.9817 11.5984 16.9817 12.0732 16.6888 12.3661L12.2746 16.7803C12.134 16.921 11.9432 17 11.7443 17Z",fill:"#19191A"}))}),$g=s(49989);const i9=M.Ay.div.withConfig({displayName:"styles__StyledFontContent",componentId:"sc-cd3h02-0"})(["display:flex;&.content-container.width-240{padding:8px 10px;&.font-lib-options{padding:0;}}.header{width:100%;display:flex;align-items:center;justify-content:space-between;height:32px;padding-left:6px;padding-right:6px;.title{color:",";font-weight:500;font-size:12px;display:flex;align-items:center;}.padding-all-number{width:66px;height:28px;",";background-color:transparent;}}.text-settings{width:100%;color:",";>:not(:first-child){margin-top:2px;}.font-group{display:flex;align-items:center;position:relative;&.font-line{justify-content:space-between;.font-family-selector{flex:0 0 100px;margin-right:23px;&:not(.is-disabled):not(.readonly):hover{.caret{padding:0 11px;}}}.font-menu-opener{display:flex;}}&.style-line{>:nth-child(1){margin-right:6px;}>:nth-child(3){width:96px;right:0px;position:absolute;}.font-size-input{width:66px;}.font-weight-selector{width:60px;}.options-menu-opener{&.is-open{.menu-opener{background-color:",";&.fontSettings{background-color:",";}}}&.font-menu-opener{margin-left:auto;display:flex;align-items:center;}}}&.ali-line{.has-ref-style-font-menus{position:absolute;right:0;}}&.ali-line >:nth-child(2){width:96px;position:absolute;right:0;justify-content:flex-start;*{flex-grow:0;}}&.spacing-line{justify-content:flex-start;& >:nth-child(2){margin-left:46px;.radio-option svg{width:24px;height:24px;}}.paragraph-input{.input.input-number{",";background-color:transparent;}}}&.flex-between{.has-ref-style-font-menus{display:flex;justify-content:flex-end;}}}.size-type-item{width:60px;}.sizetype,.h-alignment,.v-alignment{&.radio-line{margin-bottom:0;height:24px;border:none;.radio-option{width:24px;height:24px;transition:background-color 0.2s ease-in-out;border-radius:4px;.svg-icon{width:24px;height:24px;color:",";}&.active{background:",";}&:not(.active):hover{background:",";}}}.icon{width:24px;height:24px;}}.item-with-name{display:flex;justify-content:space-between;.item-name{height:22px;line-height:22px;color:#5b6b73;}.item-value{width:100%;}}.text-setting-tips{background:#f8efa7;width:202px;height:auto;line-height:24px;text-align:center;color:#415058;margin-bottom:8px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;word-break:break-all;padding:0 10px;}.is-signle-show-direction-link{&.menu-wrapper{display:flex;justify-content:space-between;align-items:center;padding:4px 0 4px 6px;color:",";.font-style{display:flex;justify-content:space-between;align-items:center;width:100%;&.svg-size{.icon{width:24px;height:24px;}}.radio-line{background:transparent;color:",";&:lang(en){justify-content:flex-start;}&:not(.disabled){.radio-option{&:not(.active):hover{background:",";color:",";}&.active{background:",";color:",";}}}.radio-option{border-radius:4px;overflow:hidden;}}}}}&.is-show-lib-opener{.is-single-button{right:60px;}}.step-input-width-72{flex:0 0 72px;display:flex;justify-content:space-between;align-items:center;.title{width:24px;height:24px;padding:0;flex-shrink:0;margin-left:1px;svg{width:24px;height:24px;color:inherit;}}input{margin-left:4px;}&:not(:last-child){margin-right:4px;}}}.draft-separator-h{margin:8px 0;}.padding-size{width:100%;padding:20px 0;display:flex;align-items:center;justify-content:center;.wrapper-padding{width:168px;height:70px;border:1px dashed ",";border-radius:4px;display:flex;align-items:center;justify-content:center;.wrapper{width:100%;height:calc(100% + 28px);display:flex;align-items:center;flex-direction:column;justify-content:space-between;.row{width:calc(100% + 40px);display:flex;align-items:center;justify-content:space-between;}.padding-number{width:40px;height:28px;",";input{text-align:center;margin-left:0;}&.is-active,&:hover{input{margin-left:8px;text-align:left;}}}.var-input-container{.toolbar-dropdown-opener{display:flex;align-items:center;justify-content:center;}.var-input.number{margin-left:0 !important;width:23px !important;max-width:23px !important;.var-tag{padding:0 2px;width:100%;max-width:100%;justify-content:center;}}&.is-active,&:hover{.toolbar-dropdown-opener{display:block;}.var-input.number{margin-left:4px !important;}}}}}}"],e=>e.theme.color_text_L1,gu,e=>e.theme.color_text_L2,e=>e.theme.color_bg_border_02,e=>e.theme.color_btn_secondary_active,gu,e=>e.theme.color_text_L1,e=>e.theme.color_btn_secondary_active,e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_text_L2,e=>e.theme.color_text_L1,e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_text_L1,e=>e.theme.color_btn_secondary_active,e=>e.theme.color_text_L1,e=>e.theme.color_text_disabled01,gu),tF=M.Ay.div.withConfig({displayName:"styles__StyledFontAlignTrigger",componentId:"sc-cd3h02-1"})(["&.re{svg{transform:rotate(-90deg);}}"]),s9=M.Ay.div.withConfig({displayName:"styles__StyledFontAlign",componentId:"sc-cd3h02-2"})(["width:156px;display:flex;padding:8px;.h-alignment,.v-alignment,.indent{height:32px;width:100%;justify-content:flex-start;.radio-option{flex:0 0 32px;width:32px;height:32px;border-radius:6px;margin-right:4px;color:",";&:last-child{margin-right:0;}svg{color:inherit;path[fill]{fill:currentColor;}}&.disabled{color:",";background:none;}&:not(.disabled).active{background:",";color:",";}&:not(.active):hover{border-radius:6px;}}&.re{.radio-option{transform:rotate(-90deg);}}}.indent{.radio-option{&.disabled{background:",";}}}.h-alignment{&.re{.radio-option{transform:rotate(90deg);}}}.v-alignment{&.re{.radio-option{&:not([data-value='center']){transform:rotate(-90deg);}}}}.draft-separator-h{margin:4px 0;}"],e=>e.theme.color_text_L1,e=>e.theme.color_text_disabled01,e=>e.theme.color_bg_tab,e=>e.theme.color_btn_primary_normal,e=>e.theme.color_btn_secondary_active),nF=M.Ay.div.withConfig({displayName:"styles__StyledFontFamily",componentId:"sc-cd3h02-3"})([".typeface2-btn{max-width:150px;margin-right:6px;.font-family-label{border:none;height:32px;color:",";max-width:150px;font-size:14px;line-height:20px;button{color:",";max-width:128px;}&:not(.is-disabled):not(.readonly):hover,&.is-open{width:auto;background-color:",";}.arrow{margin-left:2px;margin-right:6px;transition:all 0.2s ease-in-out;path[stroke]{stroke:",";}}&.is-open{.arrow{transform:rotate(180deg);}}}}"],e=>e.theme.color_text_L1,e=>e.theme.color_text_L1,e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_text_L1),oF=M.Ay.div.withConfig({displayName:"styles__StyledDraftFontColorIconDiv",componentId:"sc-cd3h02-4"})(["svg{path[fill]{fill:",";}rect[fill]{fill:",";}rect[stroke]{stroke-opacity:1;stroke:",";}}"],e=>e.theme.color_text_L1,e=>e.color?e.color:"unset",e=>e.theme.color_bg_border_02),aF=e=>{const{config:t,dropdownPosition:n,alignInfo:a,onChange:i,dispatch:c}=e,{ha:d,va:p,canHa:h,canVa:m,hasMissFontHi:x,shouldReverseDesc:v}=a,A=(0,l.useRef)(null),k=(0,l.useMemo)(()=>[{value:"left",tip_title:v?I18N.SettingPanel.vtop_2:I18N.SettingPanel.hleft_2,label:(0,o.jsx)(Zg,{size:24})},{value:"center",tip_title:v?I18N.SettingPanel.vcenter_2:I18N.SettingPanel.align_text_center,label:(0,o.jsx)(z7,{size:24})},{value:"right",tip_title:v?I18N.SettingPanel.vbottom_2:I18N.SettingPanel.hright_2,label:(0,o.jsx)(Z7,{size:24})},{value:"justify",tip_title:I18N.SettingPanel.text_Justify,label:(0,o.jsx)(Q7,{size:24})}],[v]),R=(0,l.useMemo)(()=>[{value:"flex-start",tip_title:v?I18N.SettingPanel.hleft_2:I18N.SettingPanel.vtop_2,label:(0,o.jsx)(zO,{size:24})},{value:"center",tip_title:v?I18N.SettingPanel.align_text_center:I18N.SettingPanel.vcenter_2,label:(0,o.jsx)(YO,{size:24})},{value:"flex-end",tip_title:v?I18N.SettingPanel.hright_2:I18N.SettingPanel.vbottom_2,label:(0,o.jsx)(eF,{size:24})}],[v]),F=(ce,se)=>{i({value:ce,attr:se,dispatch:c})},Z=ce=>{var se,he;F(ce,"horizontalAlign"),(se=A.current)==null||(he=se.close)==null||he.call(se)},G=ce=>{var se,he;F(ce,"verticalAlign"),(se=A.current)==null||(he=se.close)==null||he.call(se)},ee=(0,l.useMemo)(()=>{const ce=k.find(se=>se.value===d);return(ce==null?void 0:ce.label)||(0,o.jsx)(Zg,{size:24})},[k,d]);return(0,o.jsx)(Rl,{ref:A,top:n==="bottom"?40:m?-96:-55,left:-62,title:t.title,trigger:(0,o.jsx)("div",{className:"trigger-container padding-0",children:(0,o.jsx)(tF,{className:C()("trigger-icon",{re:v}),children:ee})}),children:(0,o.jsxs)(s9,{className:C()("content-container font-align-options",{re:v}),children:[h&&(0,o.jsx)($g.z,{className:C()("h-alignment",{re:v}),options:k,value:d,isLongTimeHover:!0,disabled:x,handleChange:Z}),m&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(xu,{}),(0,o.jsx)($g.z,{className:C()("v-alignment",{re:v}),options:R,value:p,isLongTimeHover:!0,disabled:x,handleChange:G})]})]})})};var rF=Object.defineProperty,iF=Object.defineProperties,sF=Object.getOwnPropertyDescriptors,e4=Object.getOwnPropertySymbols,l9=Object.prototype.hasOwnProperty,c9=Object.prototype.propertyIsEnumerable,d9=(e,t,n)=>t in e?rF(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,x6=(e,t)=>{for(var n in t||(t={}))l9.call(t,n)&&d9(e,n,t[n]);if(e4)for(var n of e4(t))c9.call(t,n)&&d9(e,n,t[n]);return e},lF=(e,t)=>iF(e,sF(t)),cF=(e,t)=>{var n={};for(var a in e)l9.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&e4)for(var a of e4(e))t.indexOf(a)<0&&c9.call(e,a)&&(n[a]=e[a]);return n},dF=(0,l.forwardRef)((e,t)=>{var n=e,{size:a,spin:i,style:c}=n,d=cF(n,["size","spin","style"]);const p=x6(x6({width:a||"var(--x-icon-size, 1em)",height:a||"var(--x-icon-size, 1em)",animation:i?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),c);return l.createElement("svg",lF(x6({ref:t,style:p},d),{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),l.createElement("path",{d:"M10.9799 4.23642C11.0085 4.16223 11.0798 4.11328 11.1593 4.11328H12.8405C12.92 4.11328 12.9913 4.16223 13.0199 4.23642L17.1855 15.052C17.234 15.1779 17.1411 15.3133 17.0061 15.3133H15.5855C15.5047 15.3133 15.4325 15.2627 15.4048 15.1868L14.3999 12.427H9.58421L8.57928 15.1868C8.55163 15.2627 8.47945 15.3133 8.39865 15.3133H6.99365C6.85871 15.3133 6.76577 15.1779 6.81427 15.052L10.9799 4.23642ZM10.1019 11.0152H13.8823L12.0421 5.97809C12.0356 5.96036 12.0187 5.94858 11.9999 5.94858C11.981 5.94858 11.9642 5.96031 11.9577 5.97797L10.1019 11.0152Z",fill:"#19191A"}),l.createElement("rect",{x:"4",y:"16.8872",width:"16",height:"3",rx:"1",fill:"#19191A"}),l.createElement("rect",{x:"4.25",y:"17.1372",width:"15.5",height:"2.5",rx:"0.75",stroke:"#020910",strokeOpacity:"0.13",strokeWidth:"0.5"}))}),vl=s(788);const v6=(0,l.memo)(e=>{var t;const{config:n,dropdownPosition:a,editorState:i,onChange:c,getTextV1:d,setTextV1:p}=e,{colors:h,hasCheck:m,hasColorBtn:x,left:v}=n,A=(0,l.useRef)(null),R=((t=d(i))==null?void 0:t.color)||h[0].color,F=(0,$l.dT)(R),Z=(0,l.useRef)(null),G=function(ee,ce){var se,he;ce===void 0&&(ce=!0);const ve=(0,$l.$8)(ee,{w:0,h:0}),Te=(0,$l.wB)(ve),xe=(0,$l.d9)(Te);if(i){const Fe=(0,vl.vS)(i,xe);Fe&&c(Fe,{attr:"color"})}else p("color",(0,ul.t0)(ee.solidColor));ce&&((se=A.current)==null||(he=se.close)==null||he.call(se))};return(0,o.jsx)(Rl,{ref:A,top:a==="bottom"?40:-101,left:v||-67,title:n.title,trigger:(0,o.jsx)("div",{className:"trigger-container padding-0",children:(0,o.jsx)(oF,{color:R,className:"trigger-icon pure-icon",children:(0,o.jsx)(dF,{size:24})})}),children:(0,o.jsx)("div",{className:"content-container draft-font-color-options",ref:Z,children:(0,o.jsx)(n6,{contentRef:Z,config:{colors:h,hasCheck:m,hasColorBtn:x},fill:F,onChange:G})})})});var pF=s(33568),j0=s(89240);const uF=e=>{const{config:t,dropdownPosition:n,textInfo:a,onChange:i,dispatch:c}=e,{fontFamily:d,fontWeight:p,fontStyle:h,wbiVersion:m,subMenuDirection:x,subMenuLeftOffset:v,isShowFontWeightLabel:A,isTextEditing:k,isMissFont:R,fontSize:F,lineHeight:Z,supAttr:G}=a,ee=(ve,Te)=>{i&&i({value:ve,attr:Te,dispatch:c})},ce=ve=>{c({type:"entry:set:text:attr:fakeOverride",payload:{attrValueList:ve,supAttr:G,isTreeSelectNode:G==="wTree-selectNode"}})},se=ve=>(0,o.jsx)(Ti.A,{content:t.title,direction:"down",distance2:6,children:(0,o.jsx)("span",{children:ve})}),he=()=>(0,o.jsx)(j0.A,{className:"arrow",size:14});return(0,o.jsx)(nF,{children:(0,o.jsx)(pF.A,{dropdownPosition:n,fontFamily:d,isTextEditing:k,fontWeight:p,fontStyle:h,handleChange:ee,wbiVersion:m,dispatch:c,subMenuDirection:x,subMenuLeftOffset:v,isShowFontWeightLabel:A,handleFakeOverrideChange:ce,positionRelative:{xOffset:0,yOffset:n==="top"?-7:7},isMissFont:R,fontSize:F,lineHeight:Z,renderTitle:se,renderArrow:he})})};var hF=s(60007);const mF=e=>{const{config:t,dropdownPosition:n}=e,a=(0,r.d4)(gl.jj),i=(0,l.useRef)(null),c=(0,l.useCallback)(()=>{var d;if(!(i!=null&&i.current))return{left:0,top:0};const{top:p,right:h}=i==null||(d=i.current)==null?void 0:d.getBoundingClientRect();return{left:h+2,top:p}},[i]);return(0,o.jsx)(Rl,{top:n==="bottom"?40:-437,left:ENV.IS_MO?-10:-16,title:t.title,trigger:(0,o.jsx)("div",{className:C()("trigger-container","has-arrow",{"padding-left-0":a}),children:a?(0,o.jsx)(hF.M,{canOpenModal:!1}):(0,o.jsxs)("div",{className:"trigger",children:[(0,o.jsx)("span",{className:"title",children:I18N.TextToolbar.font.styleText}),(0,o.jsx)(j0.A,{className:"arrow",size:14})]})}),children:(0,o.jsx)(i9,{className:"content-container font-lib-options width-240",children:(0,o.jsx)(Zp,{type:"text",ref:i,onGetNewEditModalPostion:c})})})};var fF=s(92414);const gF=(0,l.memo)(e=>{const{dropdownPosition:t,disabled:n=!1,config:a,onGetRefVar:i,onGetCurrentSize:c,onChangeFontSize:d,dispatch:p}=e,{options:h,title:m,suffix:x="",min:v=1,max:A=99999,precision:k=0,top:R=-275}=a,F=(0,r.d4)(me.tW),Z=c(),G=i(),ee=G?(0,_l.hZ)(G):null,ce=!!ee,se=ee==null?void 0:ee.isTrashed,he=ce&&ee.varData!==Z,ve=(0,l.useRef)(null),Te=(0,l.useRef)(null),xe=(0,l.useRef)(null),Fe=F&&Z<12,et=(0,l.useCallback)((nt,Xe)=>{var lt,Ct;d(nt,Xe),(lt=Te.current)==null||(Ct=lt.close)==null||Ct.call(lt)},[Te,d]),Ke=(0,l.useCallback)(nt=>{if(p({type:"quit:rich:text:editing"}),!nt)return et==null?void 0:et(Z,nt);const Xe=sdkStore.getHotItem(nt);if(!Xe)return;const{varData:lt}=Xe.hotAttr;let Ct=lt;typeof v=="number"&&(Ct=Math.max(Ct,v)),typeof A=="number"&&(Ct=Math.min(Ct,A)),Ct=Number(Number(Ct).toFixed(k)),et==null||et(Ct,nt)},[et,k]),Qe=nt=>{var Xe;if(nt.stopPropagation(),!(xe!=null&&xe.current))return;const lt=(Xe=xe.current)==null?void 0:Xe.getBoundingClientRect(),Ct=j7({left:lt.left-Ma.T.width/2,top:t==="bottom"?lt.bottom+15:lt.top-15-Ma.T.height});Ct&&p({type:"modal:toggle:less12FontSizeTipsModal",payload:{position:Ct}})};return(0,o.jsx)(Rl,{ref:Te,title:m,top:t==="bottom"?40:R,left:-52,disabled:n,trigger:(0,o.jsx)("div",{className:C()("trigger-container","max-width-150","has-arrow",{disabled:n},{"has-var":ee}),children:(0,o.jsxs)("div",{className:"trigger",children:[Fe&&(0,o.jsx)(xt.C,{ref:xe,isColorPure:!0,size:16,name:"design/notify/questionMark",className:"questionMark",onClick:Qe}),ee?(0,o.jsxs)("div",{className:C()("var-tag",{"is-invaild":he},{"is-trashed":se}),children:[se&&(0,o.jsx)(xt.C,{name:"design/preferencePanel/nav/tips",className:"tip-icon var-icon"}),(0,o.jsx)("span",{className:"var-title",children:String(ee.varData)})]}):(0,o.jsx)("span",{className:"title",children:Z?""+Z+x:I18N.TextToolbar.icon.size.title}),(0,o.jsx)(j0.A,{className:"arrow",size:14})]})}),children:ee?(0,o.jsx)(fF.A,{style:{width:220},ref:ve,type:"number",className:"var-dropmenu",value:G,defaultVarData:Z,selectedStyle:"binded",needConfirm:!0,onChange:Ke}):(0,o.jsx)("div",{className:"content-container draft-fontsize-options",children:h.map((nt,Xe)=>(0,o.jsx)(N0,{value:nt,active:!1,onClick:()=>et(nt),children:(0,o.jsxs)(o.Fragment,{children:[Z===nt&&(0,o.jsx)(xt.C,{name:"draft/check",className:"draft-check"}),(0,o.jsx)("span",{className:"option-title",children:""+nt+x})]})},Xe))})})});var yF=s(32409);const xF=e=>{var t,n,a,i;const{widget:c,config:d,dropdownPosition:p,isTextEditing:h,textInfo:m,spacingInfo:x,hasMissFontHi:v,onChange:A,dispatch:k}=e,{paddingTuple:R,refVars:F}=x,{isShowFontLib:Z=!0,isShowFamily:G=!0,isShowText:ee=!0,isShowSpacing:ce=!0}=d,se=(0,l.useRef)(null),[he,ve]=(0,l.useState)(null),Te=(R==null?void 0:R.pT)===(R==null?void 0:R.pB)&&(R==null?void 0:R.pT)===(R==null?void 0:R.pL)&&(R==null?void 0:R.pT)===(R==null?void 0:R.pR),{handleClearTextColorRef:xe}=s6(c),Fe=(lt,Ct,St)=>{const hn={...R,[Ct]:lt},Cn=F!=null&&F.paddingTuple?{...F.paddingTuple,[Ct]:St}:{[Ct]:St};A({value:hn,attr:"paddingTuple",refVar:Cn,dispatch:k})},et=lt=>{const Ct={...R,pT:lt,pB:lt,pL:lt,pR:lt};A({value:Ct,attr:"paddingTuple",refVar:{pT:"",pB:"",pL:"",pR:""},dispatch:k})},Ke=(0,l.useCallback)(()=>{var lt;if(!(se!=null&&se.current))return{left:0,top:0};const{top:Ct,right:St}=se==null||(lt=se.current)==null?void 0:lt.getBoundingClientRect();return{left:St+2,top:Ct}},[se]),Qe=(0,l.useCallback)(()=>{setTimeout(()=>{ve({menuPosRight:void 0,direction:"right-start",distance:2,targetNode:se==null?void 0:se.current})})},[se]),nt=(0,l.useCallback)(()=>{var lt;if(!(se!=null&&se.current))return;const{top:Ct,left:St}=se==null||(lt=se.current)==null?void 0:lt.getBoundingClientRect();return{left:St-242-2,top:Ct}},[se]),Xe=lt=>{A(lt),lt.attr==="textColor"&&h&&xe()};return(0,l.useEffect)(()=>()=>{k({type:"modal:reset:popup:state",payload:{modalName:"libPanelModal"}})},[]),(0,o.jsx)(Rl,{top:p==="bottom"?40:Z&&G&&ee?-332:-210,left:-104,title:d.title,onShow:Qe,trigger:(0,o.jsx)("div",{className:"trigger-container padding-0",children:(0,o.jsx)("div",{className:"trigger-icon",children:d.icon})}),children:(0,o.jsxs)(i9,{className:"content-container font-options width-240",ref:se,children:[Z&&(0,o.jsxs)("div",{className:"header",children:[(0,o.jsx)("span",{className:"title",children:I18N.TextToolbar.font.styleText}),(0,o.jsx)(yF.r,{type:"text",onGetNewEditModalPostion:Ke})]}),(0,o.jsxs)("div",{className:"text-settings",children:[G&&(0,o.jsx)(X2.X,{...m,onChange:A,dispatch:k}),ee&&(0,o.jsx)(im.L,{...m,isShowAddVarIcon:!1,dropdownProps:he,onChange:Xe,dispatch:k,onPosition:nt}),ce&&(0,o.jsx)(sm.O,{...x,isShowAddVarIcon:!1,showOptionsMenu:!1,dropdownProps:he,onChange:A,dispatch:k})]}),(0,o.jsx)(xu,{}),(0,o.jsxs)("div",{className:"header",children:[(0,o.jsx)("span",{className:"title",children:I18N.TextToolbar.font.paddingText}),(0,o.jsx)(P1.A,{disabled:v,min:0,max:99999,attr:"padding",className:"padding-all-number",value:Te?R==null?void 0:R.pL:void 0,isNotVerify:!Te,placeholder:Te?"":I18N.TextToolbar.none,normalRight:!0,onConfirm:et})]}),(0,o.jsx)("div",{className:"padding-size",children:(0,o.jsx)("div",{className:"wrapper-padding",children:(0,o.jsxs)("div",{className:"wrapper",children:[(0,o.jsx)(d0.Yw,{type:"number",min:0,max:99999,disabled:v,inputClassName:"padding-number",refVar:F==null||(t=F.paddingTuple)==null?void 0:t.pT,value:(R==null?void 0:R.pT)||0,canAddVar:!0,isShowAddVarIcon:!1,dropdownProps:he,onConfirm:(lt,Ct)=>Fe(Number(lt),"pT",Ct)}),(0,o.jsxs)("div",{className:"row",children:[(0,o.jsx)(d0.Yw,{type:"number",min:0,max:99999,disabled:v,inputClassName:"padding-number",refVar:F==null||(n=F.paddingTuple)==null?void 0:n.pL,value:(R==null?void 0:R.pL)||0,canAddVar:!0,isShowAddVarIcon:!1,dropdownProps:he,onConfirm:(lt,Ct)=>Fe(Number(lt),"pL",Ct)}),(0,o.jsx)(d0.Yw,{type:"number",min:0,max:99999,disabled:v,inputClassName:"padding-number",refVar:F==null||(a=F.paddingTuple)==null?void 0:a.pR,value:(R==null?void 0:R.pR)||0,canAddVar:!0,isShowAddVarIcon:!1,dropdownProps:he,onConfirm:(lt,Ct)=>Fe(Number(lt),"pR",Ct)})]}),(0,o.jsx)(d0.Yw,{type:"number",min:0,max:99999,disabled:v,inputClassName:"padding-number",refVar:F==null||(i=F.paddingTuple)==null?void 0:i.pB,value:(R==null?void 0:R.pB)||0,canAddVar:!0,isShowAddVarIcon:!1,dropdownProps:he,onConfirm:(lt,Ct)=>Fe(Number(lt),"pB",Ct)})]})})})]})})};var vF=Object.defineProperty,bF=Object.defineProperties,wF=Object.getOwnPropertyDescriptors,t4=Object.getOwnPropertySymbols,p9=Object.prototype.hasOwnProperty,u9=Object.prototype.propertyIsEnumerable,h9=(e,t,n)=>t in e?vF(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,b6=(e,t)=>{for(var n in t||(t={}))p9.call(t,n)&&h9(e,n,t[n]);if(t4)for(var n of t4(t))u9.call(t,n)&&h9(e,n,t[n]);return e},CF=(e,t)=>bF(e,wF(t)),SF=(e,t)=>{var n={};for(var a in e)p9.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&t4)for(var a of t4(e))t.indexOf(a)<0&&u9.call(e,a)&&(n[a]=e[a]);return n},AF=(0,l.forwardRef)((e,t)=>{var n=e,{size:a,spin:i,style:c}=n,d=SF(n,["size","spin","style"]);const p=b6(b6({width:a||"var(--x-icon-size, 1em)",height:a||"var(--x-icon-size, 1em)",animation:i?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),c);return l.createElement("svg",CF(b6({ref:t,style:p},d),{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),l.createElement("path",{d:"M7.95508 19C7.40279 19 6.95508 18.5523 6.95508 18V6C6.95508 5.44772 7.40279 5 7.95508 5H12.082C13.0755 5 13.8981 5.16406 14.5498 5.49219C15.2015 5.81576 15.6891 6.25553 16.0127 6.81152C16.3363 7.36296 16.498 7.98503 16.498 8.67773C16.498 9.26107 16.391 9.75326 16.1768 10.1543C15.9626 10.5508 15.6755 10.8698 15.3154 11.1113C14.96 11.3483 14.568 11.5215 14.1396 11.6309V11.7676C14.6045 11.7904 15.0579 11.9408 15.5 12.2188C15.9466 12.4922 16.3158 12.8818 16.6074 13.3877C16.8991 13.8936 17.0449 14.5088 17.0449 15.2334C17.0449 15.9489 16.8763 16.5915 16.5391 17.1611C16.2064 17.7262 15.6914 18.1751 14.9941 18.5078C14.2969 18.8359 13.4059 19 12.3213 19H7.95508ZM9.06738 17.1885H12.1162C13.1279 17.1885 13.8525 16.9925 14.29 16.6006C14.7275 16.2087 14.9463 15.7188 14.9463 15.1309C14.9463 14.6888 14.8346 14.2832 14.6113 13.9141C14.388 13.5449 14.069 13.251 13.6543 13.0322C13.2441 12.8135 12.7565 12.7041 12.1914 12.7041H9.06738V17.1885ZM9.06738 11.0566H11.8975C12.3714 11.0566 12.7975 10.9655 13.1758 10.7832C13.5586 10.6009 13.8617 10.3457 14.085 10.0176C14.3128 9.6849 14.4268 9.29297 14.4268 8.8418C14.4268 8.26302 14.224 7.77767 13.8184 7.38574C13.4128 6.99382 12.7907 6.79785 11.9521 6.79785H9.06738V11.0566Z",fill:"#19191A"}))}),kF=Object.defineProperty,MF=Object.defineProperties,EF=Object.getOwnPropertyDescriptors,n4=Object.getOwnPropertySymbols,m9=Object.prototype.hasOwnProperty,f9=Object.prototype.propertyIsEnumerable,g9=(e,t,n)=>t in e?kF(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,w6=(e,t)=>{for(var n in t||(t={}))m9.call(t,n)&&g9(e,n,t[n]);if(n4)for(var n of n4(t))f9.call(t,n)&&g9(e,n,t[n]);return e},IF=(e,t)=>MF(e,EF(t)),_F=(e,t)=>{var n={};for(var a in e)m9.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&n4)for(var a of n4(e))t.indexOf(a)<0&&f9.call(e,a)&&(n[a]=e[a]);return n},TF=(0,l.forwardRef)((e,t)=>{var n=e,{size:a,spin:i,style:c}=n,d=_F(n,["size","spin","style"]);const p=w6(w6({width:a||"var(--x-icon-size, 1em)",height:a||"var(--x-icon-size, 1em)",animation:i?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),c);return l.createElement("svg",IF(w6({ref:t,style:p},d),{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),l.createElement("path",{d:"M10 5.75C10 5.33579 10.3358 5 10.75 5H16.25C16.6642 5 17 5.33579 17 5.75C17 6.16421 16.6642 6.5 16.25 6.5H14.1481L11.3981 17.5H13.25C13.6642 17.5 14 17.8358 14 18.25C14 18.6642 13.6642 19 13.25 19H7.75C7.33579 19 7 18.6642 7 18.25C7 17.8358 7.33579 17.5 7.75 17.5H9.85192L12.6019 6.5H10.75C10.3358 6.5 10 6.16421 10 5.75Z",fill:"#19191A"}))}),PF=Object.defineProperty,LF=Object.defineProperties,NF=Object.getOwnPropertyDescriptors,o4=Object.getOwnPropertySymbols,y9=Object.prototype.hasOwnProperty,x9=Object.prototype.propertyIsEnumerable,v9=(e,t,n)=>t in e?PF(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,C6=(e,t)=>{for(var n in t||(t={}))y9.call(t,n)&&v9(e,n,t[n]);if(o4)for(var n of o4(t))x9.call(t,n)&&v9(e,n,t[n]);return e},jF=(e,t)=>LF(e,NF(t)),DF=(e,t)=>{var n={};for(var a in e)y9.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&o4)for(var a of o4(e))t.indexOf(a)<0&&x9.call(e,a)&&(n[a]=e[a]);return n},RF=(0,l.forwardRef)((e,t)=>{var n=e,{size:a,spin:i,style:c}=n,d=DF(n,["size","spin","style"]);const p=C6(C6({width:a||"var(--x-icon-size, 1em)",height:a||"var(--x-icon-size, 1em)",animation:i?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),c);return l.createElement("svg",jF(C6({ref:t,style:p},d),{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),l.createElement("path",{d:"M8.50049 5.5C8.50049 5.08579 8.1647 4.75 7.75049 4.75C7.33627 4.75 7.00049 5.08579 7.00049 5.5V10.75C7.00049 13.5114 9.23906 15.75 12.0005 15.75C14.7619 15.75 17.0005 13.5114 17.0005 10.75V5.5C17.0005 5.08579 16.6647 4.75 16.2505 4.75C15.8363 4.75 15.5005 5.08579 15.5005 5.5V10.75C15.5005 12.683 13.9335 14.25 12.0005 14.25C10.0675 14.25 8.50049 12.683 8.50049 10.75V5.5Z",fill:"#19191A"}),l.createElement("path",{d:"M5.75 17.75C5.33579 17.75 5 18.0858 5 18.5C5 18.9142 5.33579 19.25 5.75 19.25H18.25C18.6642 19.25 19 18.9142 19 18.5C19 18.0858 18.6642 17.75 18.25 17.75H5.75Z",fill:"#19191A"}))}),BF=Object.defineProperty,UF=Object.defineProperties,OF=Object.getOwnPropertyDescriptors,a4=Object.getOwnPropertySymbols,b9=Object.prototype.hasOwnProperty,w9=Object.prototype.propertyIsEnumerable,C9=(e,t,n)=>t in e?BF(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,S6=(e,t)=>{for(var n in t||(t={}))b9.call(t,n)&&C9(e,n,t[n]);if(a4)for(var n of a4(t))w9.call(t,n)&&C9(e,n,t[n]);return e},FF=(e,t)=>UF(e,OF(t)),VF=(e,t)=>{var n={};for(var a in e)b9.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&a4)for(var a of a4(e))t.indexOf(a)<0&&w9.call(e,a)&&(n[a]=e[a]);return n},zF=(0,l.forwardRef)((e,t)=>{var n=e,{size:a,spin:i,style:c}=n,d=VF(n,["size","spin","style"]);const p=S6(S6({width:a||"var(--x-icon-size, 1em)",height:a||"var(--x-icon-size, 1em)",animation:i?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),c);return l.createElement("svg",FF(S6({ref:t,style:p},d),{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),l.createElement("path",{d:"M14.593 7.4902C14.0729 6.5989 13.1064 6 12 6C10.3431 6 9 7.34315 9 9C9 9.35064 9.06015 9.68722 9.17071 10H7.61151C7.53853 9.67839 7.5 9.34369 7.5 9C7.5 6.51472 9.51472 4.5 12 4.5C13.7909 4.5 15.3374 5.54613 16.0618 7.06063C16.2821 7.52117 15.9025 8 15.392 8C15.0548 8 14.7629 7.78147 14.593 7.4902Z",fill:"#19191A"}),l.createElement("path",{d:"M7.94 16.9394C8.66444 18.4538 10.2109 19.4999 12.0018 19.4999C14.487 19.4999 16.5018 17.4852 16.5018 14.9999C16.5018 14.6562 16.4632 14.3216 16.3903 14H14.8311C14.9416 14.3128 15.0018 14.6493 15.0018 14.9999C15.0018 16.6568 13.6586 17.9999 12.0018 17.9999C10.8954 17.9999 9.92894 17.401 9.40883 16.5098C9.23886 16.2185 8.94703 16 8.6098 16C8.09928 16 7.7197 16.4788 7.94 16.9394Z",fill:"#19191A"}),l.createElement("path",{d:"M5.5 11.25C5.08579 11.25 4.75 11.5858 4.75 12C4.75 12.4142 5.08579 12.75 5.5 12.75H18.5C18.9142 12.75 19.25 12.4142 19.25 12C19.25 11.5858 18.9142 11.25 18.5 11.25H5.5Z",fill:"#19191A"}))}),WF=Object.defineProperty,HF=Object.defineProperties,GF=Object.getOwnPropertyDescriptors,r4=Object.getOwnPropertySymbols,S9=Object.prototype.hasOwnProperty,A9=Object.prototype.propertyIsEnumerable,k9=(e,t,n)=>t in e?WF(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,A6=(e,t)=>{for(var n in t||(t={}))S9.call(t,n)&&k9(e,n,t[n]);if(r4)for(var n of r4(t))A9.call(t,n)&&k9(e,n,t[n]);return e},ZF=(e,t)=>HF(e,GF(t)),KF=(e,t)=>{var n={};for(var a in e)S9.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&r4)for(var a of r4(e))t.indexOf(a)<0&&A9.call(e,a)&&(n[a]=e[a]);return n},YF=(0,l.forwardRef)((e,t)=>{var n=e,{size:a,spin:i,style:c}=n,d=KF(n,["size","spin","style"]);const p=A6(A6({width:a||"var(--x-icon-size, 1em)",height:a||"var(--x-icon-size, 1em)",animation:i?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),c);return l.createElement("svg",ZF(A6({ref:t,style:p},d),{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.6145 14.7362C15.9587 14.271 16.1799 13.747 16.2781 13.1655C16.3756 12.5577 16.3398 12.0335 16.1617 11.5999C15.9866 11.1735 15.735 10.8411 15.4048 10.608C15.1463 10.4256 14.8771 10.3068 14.5976 10.2539C14.8739 10.165 15.141 10.0427 15.3987 9.88753C15.7203 9.69602 15.9951 9.43606 16.2231 9.10928C16.4579 8.77816 16.6149 8.36249 16.6976 7.86633C16.7957 7.30006 16.7567 6.77989 16.5767 6.30866C16.395 5.82918 16.0586 5.45013 15.5741 5.17155C15.0866 4.88761 14.4403 4.75 13.643 4.75H10.5142C9.99154 4.75 9.54556 5.12805 9.45996 5.64366L7.90572 15.0057C7.79761 15.6569 8.29986 16.2494 8.95997 16.2494H11.8987C12.7982 16.2494 13.5578 16.1157 14.1736 15.8437C14.7863 15.573 15.2681 15.2045 15.6145 14.7362ZM14.0018 11.3891C14.313 11.5744 14.5321 11.8204 14.6632 12.1276L14.6638 12.1288C14.7989 12.4338 14.8398 12.7677 14.7837 13.1334C14.6998 13.6039 14.4509 14.0067 14.0296 14.343C13.6202 14.6691 12.9821 14.8407 12.0974 14.8407H9.49645L10.1261 11.1047H12.8261C13.3065 11.1047 13.6961 11.2015 14.0007 11.3884L14.0018 11.3891ZM14.9262 6.64802C15.1926 6.96909 15.2874 7.36053 15.2034 7.83307L15.203 7.83583C15.1465 8.21675 15.0025 8.54599 14.7715 8.82602C14.5384 9.10849 14.2489 9.32767 13.9013 9.4837C13.5537 9.63977 13.181 9.71806 12.7819 9.71806H10.3571L10.9434 6.15872H13.4443C14.1847 6.15872 14.6669 6.33219 14.9262 6.64802Z",fill:"#19191A"}),l.createElement("path",{d:"M6.75 17.75C6.33579 17.75 6 18.0858 6 18.5C6 18.9142 6.33579 19.25 6.75 19.25H17.25C17.6642 19.25 18 18.9142 18 18.5C18 18.0858 17.6642 17.75 17.25 17.75H6.75Z",fill:"#19191A"}))});const i4=(0,l.memo)(e=>{const{dropdownPosition:t,config:n,editorState:a,onChange:i,getTextV1:c,setTextV1:d,widget:p}=e,{title:h}=n,m=c(a),{bold:x,italic:v,underline:A,strikethrough:k,blockType:R}=m,F=(0,l.useMemo)(()=>[{value:"bold",icon:(0,o.jsx)(AF,{size:24}),tip_title:I18N.TextToolbar.style1},{value:"italic",icon:(0,o.jsx)(TF,{size:24}),tip_title:I18N.TextToolbar.style2},{value:"underline",icon:(0,o.jsx)(RF,{size:24}),tip_title:I18N.TextToolbar.style3},{value:"strikethrough",icon:(0,o.jsx)(zF,{size:24}),tip_title:I18N.TextToolbar.style4}],[]),Z=(0,l.useMemo)(()=>{let ee="";k&&(ee="strikethrough"),A&&(ee="underline"),v&&(ee="italic"),x&&(ee="bold");const ce=F.find(se=>se.value===ee);return(ce==null?void 0:ce.icon)||(0,o.jsx)(YF,{size:24})},[x,v,A,k,F]),G=(ee,ce)=>{const se=p.hotAttr.type;if(a){const he=ee==="bold"&&(se===$.x.WSticky||se===$.x.WTear)?(0,vl.q0)(a):a;i((0,vl.Bu)(he,ee))}else d(ee,ce)};return(0,o.jsx)(Rl,{top:t==="bottom"?40:-55,left:-48,title:h,trigger:(0,o.jsx)("div",{className:"trigger-container padding-0",children:(0,o.jsx)("div",{className:"trigger-icon",children:Z})}),children:(0,o.jsx)("div",{className:"content-container draft-inline-options",children:F.map((ee,ce)=>{let se=m[ee.value]===!0,he=!1;ee.value==="bold"&&["header-one","header-two","header-three"].includes(R)&&(he=!0,se=!0);const ve=!m[ee.value];return(0,o.jsx)(N0,{value:ee.value,active:se,disabled:he,title:ee.tip_title,onClick:()=>G(ee.value,ve),children:ee.icon},ce)})})})});var XF=Object.defineProperty,QF=Object.defineProperties,JF=Object.getOwnPropertyDescriptors,s4=Object.getOwnPropertySymbols,M9=Object.prototype.hasOwnProperty,E9=Object.prototype.propertyIsEnumerable,I9=(e,t,n)=>t in e?XF(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,k6=(e,t)=>{for(var n in t||(t={}))M9.call(t,n)&&I9(e,n,t[n]);if(s4)for(var n of s4(t))E9.call(t,n)&&I9(e,n,t[n]);return e},qF=(e,t)=>QF(e,JF(t)),$F=(e,t)=>{var n={};for(var a in e)M9.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&s4)for(var a of s4(e))t.indexOf(a)<0&&E9.call(e,a)&&(n[a]=e[a]);return n},eV=(0,l.forwardRef)((e,t)=>{var n=e,{size:a,spin:i,style:c}=n,d=$F(n,["size","spin","style"]);const p=k6(k6({width:a||"var(--x-icon-size, 1em)",height:a||"var(--x-icon-size, 1em)",animation:i?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),c);return l.createElement("svg",qF(k6({ref:t,style:p},d),{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),l.createElement("path",{d:"M7.22712 10.4089C7.52002 10.116 7.99489 10.116 8.28779 10.4089C8.58068 10.7018 8.58068 11.1766 8.28779 11.4695L6.69679 13.0605C5.52522 14.2321 5.52522 16.1316 6.69679 17.3032C7.86837 18.4747 9.76786 18.4747 10.9394 17.3032L12.5304 15.7122C12.8233 15.4193 13.2982 15.4193 13.5911 15.7122C13.884 16.0051 13.884 16.4799 13.5911 16.7728L12.0001 18.3638C10.2427 20.1212 7.39349 20.1212 5.63613 18.3638C3.87878 16.6065 3.87878 13.7572 5.63613 11.9999L7.22712 10.4089Z",fill:"#19191A"}),l.createElement("path",{d:"M15.7124 12.5302C15.4195 12.8231 15.4195 13.2979 15.7124 13.5908C16.0053 13.8837 16.4802 13.8837 16.7731 13.5908L18.3641 11.9999C20.1214 10.2425 20.1214 7.39325 18.3641 5.63589C16.6067 3.87853 13.7575 3.87853 12.0001 5.63589L10.4091 7.22688C10.1162 7.51977 10.1162 7.99465 10.4091 8.28754C10.702 8.58043 11.1769 8.58043 11.4698 8.28754L13.0608 6.69655C14.2323 5.52498 16.1318 5.52498 17.3034 6.69655C18.475 7.86812 18.475 9.76762 17.3034 10.9392L15.7124 12.5302Z",fill:"#19191A"}),l.createElement("path",{d:"M9.17198 13.7677C8.87909 14.0606 8.87909 14.5355 9.17198 14.8284C9.46488 15.1213 9.93975 15.1213 10.2326 14.8284L14.8288 10.2322C15.1217 9.93929 15.1217 9.46441 14.8288 9.17152C14.5359 8.87863 14.0611 8.87863 13.7682 9.17152L9.17198 13.7677Z",fill:"#19191A"}))}),M6=s(66360);class _9 extends l.Component{constructor(t){super(t),(0,B.A)(this,"insertFragment",async()=>new Promise(a=>{const{editorState:i,onChange:c}=this.props,d=(0,M6.a2)(i," ");d&&c(d),setTimeout(()=>{a(!0)},16.9)})),(0,B.A)(this,"deleteFragment",async()=>new Promise(a=>{const{editorState:i,onChange:c}=this.props,d=(0,M6.Jh)(i);d&&c(d),setTimeout(()=>{a(!0)},0)})),(0,B.A)(this,"handleClick",async()=>{let a=(0,Eh.Jy)(window);if(a||(await this.insertFragment(),a=(0,Eh.Jy)(window),await this.deleteFragment()),!a)return;const{left:i,top:c,bottom:d,width:p}=a,h={top:d,left:i+p/2-24},{widget:m,editorState:x}=this.props,{currentEntityKey:v}=this.state,{link:A,selectionText:k,blockKey:R,start:F,end:Z}=T9(x,v);A&&A.target?Yc.A.emit("draft:link-toast:edit",{widget:m,linkTitle:A.title||k||"",linkTarget:A.target||"",style:h,blockKey:R,start:F,end:Z,settingLevel:"editing"}):Yc.A.emit("draft:link-toast:add",{widget:m,linkTitle:A.title||k||"",linkTarget:A.target||"",style:h,blockKey:R,start:F,end:Z,settingLevel:"editing"})});const{editorState:n}=t;this.state={currentEntityKey:n?(0,vl.A_)(n):void 0}}componentDidUpdate(t){const{editorState:n}=this.props;n&&n!==t.editorState&&this.setState({currentEntityKey:(0,vl.A_)(n)})}render(){const{config:t,widget:n,editorState:a}=this.props,{currentEntityKey:i}=this.state,{link:c,blockKey:d}=T9(a,i);return(0,o.jsx)(fu,{disabled:!d,active:c&&c.target,title:t.title,widget:n,onClick:this.handleClick,children:(0,o.jsx)(eV,{size:24})})}}const T9=(e,t)=>{if(!e)return{link:{target:"",title:""},selectionText:""};const n=e.getSelection();let a="",i,c;n&&n.getAnchorKey()===n.getFocusKey()&&(a=n.getAnchorKey(),i=n.getAnchorOffset(),c=n.getFocusOffset());const d=e.getCurrentContent();let p,h;if(t){const x=d.getEntity(t).get("type");if(x==="IMAGE")return{link:{target:"",title:""},selectionText:""};if(x==="LINK"){const v=(0,vl.Cs)(e,t);p=d.getEntity(t).get("data").url,h=v&&v.text,i=v&&v.start,c=v&&v.end}}const m=(0,vl.R_)(e);return{link:{target:p,title:h},selectionText:m,blockKey:a,start:i,end:c}};var tV=Object.defineProperty,nV=Object.defineProperties,oV=Object.getOwnPropertyDescriptors,l4=Object.getOwnPropertySymbols,P9=Object.prototype.hasOwnProperty,L9=Object.prototype.propertyIsEnumerable,N9=(e,t,n)=>t in e?tV(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,E6=(e,t)=>{for(var n in t||(t={}))P9.call(t,n)&&N9(e,n,t[n]);if(l4)for(var n of l4(t))L9.call(t,n)&&N9(e,n,t[n]);return e},aV=(e,t)=>nV(e,oV(t)),rV=(e,t)=>{var n={};for(var a in e)P9.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&l4)for(var a of l4(e))t.indexOf(a)<0&&L9.call(e,a)&&(n[a]=e[a]);return n},iV=(0,l.forwardRef)((e,t)=>{var n=e,{size:a,spin:i,style:c}=n,d=rV(n,["size","spin","style"]);const p=E6(E6({width:a||"var(--x-icon-size, 1em)",height:a||"var(--x-icon-size, 1em)",animation:i?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),c);return l.createElement("svg",aV(E6({ref:t,style:p},d),{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),l.createElement("path",{d:"M12 3.02148C16.9587 3.02151 20.9785 7.04131 20.9785 12C20.9785 16.9587 16.9587 20.9785 12 20.9785C7.04131 20.9785 3.02151 16.9587 3.02148 12C3.02151 7.04131 7.04131 3.02151 12 3.02148ZM12 4.52148C7.86974 4.52151 4.52151 7.86974 4.52148 12C4.52151 16.1303 7.86974 19.4785 12 19.4785C16.1303 19.4785 19.4785 16.1303 19.4785 12C19.4785 7.86974 16.1303 4.52151 12 4.52148ZM8.09668 13.665C8.45513 13.4578 8.91464 13.5802 9.12207 13.9385C9.70489 14.9458 10.7921 15.6219 12.0361 15.6221C13.2803 15.6219 14.3684 14.9459 14.9512 13.9385C15.1586 13.5803 15.6172 13.458 15.9756 13.665C16.3339 13.8725 16.4573 14.332 16.25 14.6904C15.4101 16.1423 13.8374 17.1219 12.0361 17.1221C10.2351 17.1219 8.66319 16.142 7.82324 14.6904C7.61587 14.3319 7.73828 13.8725 8.09668 13.665ZM8.91406 9.17188C9.48213 9.17188 9.94238 9.63213 9.94238 10.2002C9.94228 10.7682 9.48206 11.2285 8.91406 11.2285C8.34617 11.2284 7.88585 10.7681 7.88574 10.2002C7.88574 9.63221 8.3461 9.172 8.91406 9.17188ZM15.0859 9.17188C15.6539 9.172 16.1143 9.63221 16.1143 10.2002C16.1142 10.7681 15.6538 11.2284 15.0859 11.2285C14.5179 11.2285 14.0577 10.7682 14.0576 10.2002C14.0576 9.63213 14.5179 9.17188 15.0859 9.17188Z",fill:"#19191A"}))}),sV=s(98407);const j9=(0,l.memo)(e=>{const{config:t,dropdownPosition:n,icon:a,onSetCurrentNodeIcon:i,onChangePosition:c,dispatch:d}=e,{title:p,source:h,left:m}=t,x=(0,l.useRef)(null),v=(0,l.useMemo)(()=>[{key:"left",label:I18N.TextToolbar.button.icon.position.left},{key:"right",label:I18N.TextToolbar.button.icon.position.right}],[]),A=R=>{R&&d({type:"entry:toggle:icon-select-popup",payload:{iconName:a==null?void 0:a.iconName,source:h}}),d({type:"entry:search-panel:clear:state",payload:{from:e7.Z.iconSelectPopup}})},k=(R,F)=>{var Z;!(x==null||(Z=x.current)==null)&&Z.close&&x.current.close(),i(R,F)};return(0,o.jsx)(Rl,{ref:x,title:p,top:n==="bottom"?40:-427,left:m||-113,onShow:()=>A(!0),onClose:()=>A(!1),trigger:(0,o.jsx)("div",{className:"trigger-container padding-0",children:(0,o.jsx)("div",{className:"trigger-icon",children:(0,o.jsx)(iV,{size:24})})}),children:(0,o.jsxs)(gO,{className:C()("content-container icon-options",{"is-show-footer":c}),children:[(0,o.jsx)(sV.e,{isDraggable:!1,onSetCurrentNodeIcon:k}),c&&(0,o.jsxs)("div",{className:"footer",children:[(0,o.jsx)("div",{className:"position-container",children:v.map(R=>{const F=R.key==="none"?!(a!=null&&a.path)&&!(a!=null&&a.position):(a==null?void 0:a.position)===R.key;return(0,o.jsx)("div",{className:C()("position-box",{"is-active":F}),onClick:()=>c(R.key),children:R.label},R.key)})}),(0,o.jsx)("div",{className:C()("remove",{disabled:!(a!=null&&a.path)}),onClick:()=>c("none"),children:I18N.TextToolbar.button.icon.remove})]})]})})});var lV=Object.defineProperty,cV=Object.defineProperties,dV=Object.getOwnPropertyDescriptors,c4=Object.getOwnPropertySymbols,D9=Object.prototype.hasOwnProperty,R9=Object.prototype.propertyIsEnumerable,B9=(e,t,n)=>t in e?lV(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,I6=(e,t)=>{for(var n in t||(t={}))D9.call(t,n)&&B9(e,n,t[n]);if(c4)for(var n of c4(t))R9.call(t,n)&&B9(e,n,t[n]);return e},pV=(e,t)=>cV(e,dV(t)),uV=(e,t)=>{var n={};for(var a in e)D9.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&c4)for(var a of c4(e))t.indexOf(a)<0&&R9.call(e,a)&&(n[a]=e[a]);return n},hV=(0,l.forwardRef)((e,t)=>{var n=e,{size:a,spin:i,style:c}=n,d=uV(n,["size","spin","style"]);const p=I6(I6({width:a||"var(--x-icon-size, 1em)",height:a||"var(--x-icon-size, 1em)",animation:i?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),c);return l.createElement("svg",pV(I6({ref:t,style:p},d),{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),l.createElement("rect",{x:"3.75",y:"4.75",width:"14.5",height:"14.5",rx:"2.25",stroke:"#19191A",strokeWidth:"1.5"}),l.createElement("path",{d:"M18.8701 6.12891C20.1025 6.50191 21 7.64582 21 9V19C21 20.6569 19.6569 22 18 22H8C6.64582 22 5.50191 21.1025 5.12891 19.8701C5.40471 19.9537 5.6969 20 6 20H16C17.6569 20 19 18.6569 19 17V7C19 6.6969 18.9537 6.40471 18.8701 6.12891Z",fill:"#B7B9BD"}))});const mV=M.Ay.div.withConfig({displayName:"styles__StyledShadowContent",componentId:"sc-860bu2-0"})(["display:flex;width:174px;padding:8px 0;.title{width:100%;height:28px;color:",";font-weight:500;font-size:12px;display:flex;align-items:center;padding-left:16px;}.shadow-option-list{width:100%;padding:8px 16px 0 16px;}.draft-separator-h{margin:8px 16px;width:calc(100% - 32px);}.color-btn-has-hex-input{width:100%;padding-left:10px;padding-right:12px;}"],e=>e.theme.color_text_L1),fV=(0,l.memo)(e=>{const{config:t,dropdownPosition:n,widget:a,onChange:i,dispatch:c}=e,{title:d}=t,{key:p,hotAttr:{shadow:h,refStyles:m}}=a,x=(0,_l.xj)([a],"shadow"),v=(0,l.useRef)(null),A=(0,l.useRef)(null),k=(0,l.useMemo)(()=>[{key:"none",label:I18N.TextToolbar.shadow.none,data:{shadowIsVisible:!1}},{key:"shallow",label:I18N.TextToolbar.shadow.shallow,data:{shadowIsVisible:!0,offsetX:0,offsetY:2,blurRadius:6,spreadRadius:0}},{key:"middle",label:I18N.TextToolbar.shadow.middle,data:{shadowIsVisible:!0,offsetX:0,offsetY:4,blurRadius:12,spreadRadius:0}},{key:"deep",label:I18N.TextToolbar.shadow.deep,data:{shadowIsVisible:!0,offsetX:0,offsetY:6,blurRadius:18,spreadRadius:0}}],[]),R=(G,ee,ce)=>{const se={...h};se[ee]=G;const he={...x,[ee]:ce},ve=(0,Y2.S)({...se},a);i({value:ve,attr:"shadow",refVar:he,selections:[p],dispatch:c})},F=G=>{var ee,ce;const se={...h,...G.data},he=G.key==="none"?x:{...x,offsetX:"",offsetY:"",blurRadius:"",spreadRadius:""};i({value:se,attr:"shadow",refVar:he,selections:[p],dispatch:c}),(ee=v.current)==null||(ce=ee.close)==null||ce.call(ee)},Z=()=>{var G;if(!(A!=null&&A.current))return null;const ee=(G=A.current)==null?void 0:G.getBoundingClientRect();return{left:ee.right+2,top:ee.top}};return(0,o.jsx)(Rl,{ref:v,title:d,top:n==="bottom"?40:-246,left:-71,trigger:(0,o.jsx)("div",{className:"trigger-container padding-0",children:(0,o.jsx)("div",{className:"trigger-icon",children:(0,o.jsx)(hV,{className:"shadow",size:24})})}),children:(0,o.jsxs)(mV,{className:"content-container shadow-options",ref:A,children:[(0,o.jsx)("span",{className:"title",children:I18N.TextToolbar.shadow.default}),(0,o.jsx)("div",{className:"shadow-option-list",children:k.map(G=>{const{key:ee,label:ce,data:se}=G,he=ee==="none"?!h.shadowIsVisible:h.shadowIsVisible&&h.offsetX===se.offsetX&&h.offsetY===se.offsetY&&h.blurRadius===se.blurRadius&&(h.type==="text_shadow"?!0:h.spreadRadius===se.spreadRadius);return(0,o.jsx)(N0,{value:ee,active:he,onClick:()=>F(G),children:(0,o.jsxs)(o.Fragment,{children:[he&&(0,o.jsx)(xt.C,{name:"draft/check",className:"draft-check"}),(0,o.jsx)("span",{className:"option-title",children:ce})]})},ee)})}),(0,o.jsx)(xu,{}),(0,o.jsx)("span",{className:"title",children:I18N.TextToolbar.shadow.color}),(0,o.jsx)(Ec.R_,{mode:"input",className:Ec.EY,supAttr:"shadow",attr:"shadowColor",color:h.shadowColor,refStyles:m,onChange:R,onPosition:Z})]})})});var gV=Object.defineProperty,yV=Object.defineProperties,xV=Object.getOwnPropertyDescriptors,d4=Object.getOwnPropertySymbols,U9=Object.prototype.hasOwnProperty,O9=Object.prototype.propertyIsEnumerable,F9=(e,t,n)=>t in e?gV(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,_6=(e,t)=>{for(var n in t||(t={}))U9.call(t,n)&&F9(e,n,t[n]);if(d4)for(var n of d4(t))O9.call(t,n)&&F9(e,n,t[n]);return e},vV=(e,t)=>yV(e,xV(t)),bV=(e,t)=>{var n={};for(var a in e)U9.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&d4)for(var a of d4(e))t.indexOf(a)<0&&O9.call(e,a)&&(n[a]=e[a]);return n},V9=(0,l.forwardRef)((e,t)=>{var n=e,{size:a,spin:i,style:c}=n,d=bV(n,["size","spin","style"]);const p=_6(_6({width:a||"var(--x-icon-size, 1em)",height:a||"var(--x-icon-size, 1em)",animation:i?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),c);return l.createElement("svg",vV(_6({ref:t,style:p},d),{width:"64",height:"64",viewBox:"0 0 64 64",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),l.createElement("rect",{x:"4.5",y:"15.5",width:"55",height:"33",fill:"white",stroke:"#8B8C8F"}))}),wV=Object.defineProperty,CV=Object.defineProperties,SV=Object.getOwnPropertyDescriptors,p4=Object.getOwnPropertySymbols,z9=Object.prototype.hasOwnProperty,W9=Object.prototype.propertyIsEnumerable,H9=(e,t,n)=>t in e?wV(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,T6=(e,t)=>{for(var n in t||(t={}))z9.call(t,n)&&H9(e,n,t[n]);if(p4)for(var n of p4(t))W9.call(t,n)&&H9(e,n,t[n]);return e},AV=(e,t)=>CV(e,SV(t)),kV=(e,t)=>{var n={};for(var a in e)z9.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&p4)for(var a of p4(e))t.indexOf(a)<0&&W9.call(e,a)&&(n[a]=e[a]);return n},MV=(0,l.forwardRef)((e,t)=>{var n=e,{size:a,spin:i,style:c}=n,d=kV(n,["size","spin","style"]);const p=T6(T6({width:a||"var(--x-icon-size, 1em)",height:a||"var(--x-icon-size, 1em)",animation:i?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),c);return l.createElement("svg",AV(T6({ref:t,style:p},d),{width:"64",height:"64",viewBox:"0 0 64 64",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),l.createElement("rect",{x:"4",y:"15",width:"56",height:"34",fill:"#EEEEF0"}))}),EV=Object.defineProperty,IV=Object.defineProperties,_V=Object.getOwnPropertyDescriptors,u4=Object.getOwnPropertySymbols,G9=Object.prototype.hasOwnProperty,Z9=Object.prototype.propertyIsEnumerable,K9=(e,t,n)=>t in e?EV(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,P6=(e,t)=>{for(var n in t||(t={}))G9.call(t,n)&&K9(e,n,t[n]);if(u4)for(var n of u4(t))Z9.call(t,n)&&K9(e,n,t[n]);return e},TV=(e,t)=>IV(e,_V(t)),PV=(e,t)=>{var n={};for(var a in e)G9.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&u4)for(var a of u4(e))t.indexOf(a)<0&&Z9.call(e,a)&&(n[a]=e[a]);return n},LV=(0,l.forwardRef)((e,t)=>{var n=e,{size:a,spin:i,style:c}=n,d=PV(n,["size","spin","style"]);const p=P6(P6({width:a||"var(--x-icon-size, 1em)",height:a||"var(--x-icon-size, 1em)",animation:i?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),c);return l.createElement("svg",TV(P6({ref:t,style:p},d),{width:"64",height:"64",viewBox:"0 0 64 64",fill:"none",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"}),l.createElement("path",{d:"M59.5 15.5V48.5H4.5V15.5H59.5Z",fill:"url(#pattern0_2914_1222)",stroke:"#8B8C8F"}),l.createElement("defs",null,l.createElement("pattern",{id:"pattern0_2914_1222",patternContentUnits:"objectBoundingBox",width:"1.00571",height:"1.65647"},l.createElement("use",{xlinkHref:"#image0_2914_1222",transform:"scale(0.00392857 0.00647059)"})),l.createElement("image",{id:"image0_2914_1222",width:"256",height:"256",preserveAspectRatio:"none",xlinkHref:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAAEACAYAAABccqhmAAAAAXNSR0IArs4c6QAACixJREFUeF7t3TFSJEAMQ9HhBNz/jESkJLuH+EGXym9zirKxvmUx9H79/f39+4R/v7+/4as/n+/v7/T1vr/+lwG6Pn9fAABARUAAvA1gAOBAiv4/AAAAaYCuWzD1c2BFQBXAHAAHUOaPAxjPwAAAAAAgdKBu4NcOEAAAIIz/hwPgALZDkNcE9v1lAIXA1YFwABxAmT8OgAPgAIqCOAAOoMwPBzBOYAAAAAAIHagEJEACDOM3fwLJAGQAZf7nBXB9AQAAAABA6MC6AwUAAAjj73MAACCESwK6bkHV/zaD+fr5+UnvAfgBvv0B6r/+lw0EABxMmR8PuoyfkAAAAAAQOrDuwAAAAML4e9INAMYt0HqKuz6A+v/2o/QcAAfAAYQOrAMYAAAgjL8TAACcAElALPBbC3y9/xwAB5AAtr4BAcAHgQggdAAAtj+IxAFwAEH+MoB1AAIAAABA6AAACAHD+Phruus3+Ov6OQAOIAFsfQO+FuDr7w8AAAAAoQPrAAQAAAjjLwScB4D/Hnz71zivLaTvv/1BJk+CCTGTAwAAAEgDtG6hCGBbANfnjwPgABLAAXAbgAAAAAAQOrAOQAAAgDD+PsgEAH6NlgR0/QZV/9vfQnEAHEAC2PoGvA4gAAAAAAgdWAcgAABAGH8ZAADIAJKArltQ9csAkoDWCUwAbwVwvf9OACcAAIcOrC8gAACAMP4yAACQASQBXbeg6n97AnEAHEAC2PoGvA4gD4JwMAkA1wW0Xj8AAAAAhA4AAAsdxkeI5oR4++fEHAAHkAC2vgGvAwgAAAAAQgfWAQgAABDG36vAACADSAK6bkHVLwNIAlonMAG8FcD1/jsBnAAAHDqwvoAAAADC+MsAAEAGkAR03YKq/+0JxAFwAAlg6xvwOoAAAAAAIHRgHYAAAABh/GUAACADSAK6bkHVLwNIAlonMAG8FcD1/nsQhINJAL4uoPX6AQAAACB0AACEaGF8hGhOOG8CJgGtE5gA3grgev+dAE4AAA4dWF9AAAAAYfw9aQYAMoAkoOsWVP1vTyAOgANIAFvfgNcBBAAAAAChA+sABAAACOMvAwAAGUAS0HULqn4ZQBLQOoEJ4K0ArvffCeAEAODQgfUFBAAAEMZfBgAAMoAkoOsWVP1vTyAOgANIAFvfgNcB5EkwDiYB4LqA1usHAAAAgNABAGChw/gI0ZwQb59E4wA4gASw9Q14HUAAAAAAEDqwDkAAAIAw/p40AwAZQBLQdQuqfhlAEtA6gQngrQCu998J4AQA4NCB9QUEAAAQxl8GAAAygCSg6xZU/W9PIA6AA0gAW9+A1wEEAAAAAKED6wAEAAAI4y8DAAAZQBLQdQuqfhlAEtA6gQngrQCu99+DIBxMAvB1Aa3XDwAAAAChAwAgRAvjI0RzwnkTMAloncAE8FYA1/vvBHACAHDowPoCAgAACOPvSTMAkAEkAV23oOp/ewJxABxAAtj6BrwOIAAAAAAIHVgHIAAAQBh/GQAAyACSgK5bUPXLAJKA1glMAG8FcL3/TgAnAACHDqwvIAAAgDD+MgAAkAEkAV23oOp/ewJxABxAAtj6BrwOIE+CcTAJANcFtF4/AAAAAIQOAAALHcZHiOaEePskGgfAASSArW/A6wACAAAAgNCBdQACAACE8fekGQDIAJKArltQ9csAkoDWCUwAbwVwvf9OACcAAIcOrC8gAACAMP4yAACQASQBXbeg6n97AnEAHEAC2PoGvA4gAAAAAAgdWAcgAABAGH8ZAADIAJKArltQ9csAkoDWCUwAbwVwvf8eBOFgEoCvC2i9fgAAAAAIHQAAIVoYHyGaE86bgElA6wQmgLcCuN5/J4ATAIBDB9YXEAAAQBh/T5oBgAwgCei6BVX/2xOIA+AAEsDWN+B1AAEAAABA6MA6AAEAAML4ywAAQAaQBHTdgqpfBpAEtE5gAngrgOv9dwI4AQA4dGB9AQEAAITxlwEAgAwgCei6BVX/2xOIA+AAEsDWN+B1AHkSjINJALguoPX6AQAAACB0AABY6DA+QjQnxNsn0TgADiABbH0DXgcQAAAAAIQOrAMQAAAgjL8nzQBABpAEdN2Cql8GkAS0TmACeCuA6/13AjgBADh0YH0BAQAAhPGXAQCADCAJ6LoFVf/bE4gD4AASwNY34HUAAQAAAEDowDoAAQAAwvjLAABABpAEdN2Cql8GkAS0TmACeCuA6/33IAgHkwB8XUDr9QMAAABA6AAACNHC+AjRnHDeBEwCWicwAbwVwPX+OwGcAAAcOrC+gAAAAML4e9IMAGQASUDXLaj6355AHAAHkAC2vgGvAwgAAAAAQgfWAQgAABDGXwYAADKAJKDrFlT9MoAkoHUCE8BbAVzvvxPACQDAoQPrCwgAACCMvwwAAGQASUDXLaj6355AHAAHkAC2vgGvA8iTYBxMAsB1Aa3XDwAAAAChAwDAQofxEaI5Id4+icYBcAAJYOsb8DqAAAAAACB0YB2AAAAAYfw9aQYAMoAkoOsWVP0ygCSgdQITwFsBXO+/E8AJAMChA+sLCAAAIIy/DAAAZABJQNctqPrfnkAcAAeQALa+Aa8DCAAAAABCB9YBCAAAEMZfBgAAMoAkoOsWVP0ygCSgdQITwFsBXO+/B0E4mATg6wJarx8AAAAAQgcAQIgWxkeI5oTzJmAS0DqBCeCtAK733wngBADg0IH1BQQAABDG35NmACADSAK6bkHV//YE4gA4gASw9Q14HUAAAAAAEDqwDkAAAIAw/jIAAJABJAFdt6DqlwEkAa0TmADeCuB6/50ATgAADh1YX0AAAABh/GUAACADSAK6bkHV//YE4gA4gASw9Q14HUCeBONgEgCuC2i9fgAAAAAIHQAAFjqMjxDNCfH2STQOgANIAFvfgNcBBAAAAAChA+sABAAACOPvSTMAkAEkAV23oOqXASQBrROYAN4K4Hr/nQBOAAAOHVhfQAAAAGH8ZQAAIANIArpuQdX/9gTiADiABLD1DXgdQAAAAAAQOrAOQAAAgDD+MgAAkAEkAV23oOqXASQBrROYAN4K4Hr/PQjCwSQAXxfQev0AAAAAEDoAAEK0MD5CNCecNwGTgNYJTABvBXC9/04AJwAAhw6sLyAAAIAw/p40AwAZQBLQdQuq/rcnEAfAASSArW/A6wACAAAAgNCBdQACAACE8ZcBAIAMIAnougVVvwwgCWidwATwVgDX++8EcAIAcOjA+gICAAAI4y8DAAAZQBLQdQuq/rcnEAfAASSArW/A6wDyJBgHkwBwXUDr9QMAAABA6AAAsNBhfIRoToi3T6JxABxAAtj6BrwOIAAAAAAIHVgHIAAAQBh/T5oBgAwgCei6BVW/DCAJaJ3ABPBWANf77wRwAgBw6MD6AgIAAAjjLwMAABlAEtB1C6r+tycQB8ABJICtb8DrAAIAAACA0IF1AAIAAITxlwEAgAwgCei6BVW/DCAJaJ3ABPBWANf7/x/aVlkHhH7qqQAAAABJRU5ErkJggg=="})))}),NV=Object.defineProperty,jV=Object.defineProperties,DV=Object.getOwnPropertyDescriptors,h4=Object.getOwnPropertySymbols,Y9=Object.prototype.hasOwnProperty,X9=Object.prototype.propertyIsEnumerable,Q9=(e,t,n)=>t in e?NV(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,L6=(e,t)=>{for(var n in t||(t={}))Y9.call(t,n)&&Q9(e,n,t[n]);if(h4)for(var n of h4(t))X9.call(t,n)&&Q9(e,n,t[n]);return e},RV=(e,t)=>jV(e,DV(t)),BV=(e,t)=>{var n={};for(var a in e)Y9.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&h4)for(var a of h4(e))t.indexOf(a)<0&&X9.call(e,a)&&(n[a]=e[a]);return n},UV=(0,l.forwardRef)((e,t)=>{var n=e,{size:a,spin:i,style:c}=n,d=BV(n,["size","spin","style"]);const p=L6(L6({width:a||"var(--x-icon-size, 1em)",height:a||"var(--x-icon-size, 1em)",animation:i?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),c);return l.createElement("svg",RV(L6({ref:t,style:p},d),{width:"64",height:"64",viewBox:"0 0 64 64",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),l.createElement("path",{d:"M4 15H60V49H4V15Z",fill:"white"}),l.createElement("path",{d:"M5 48V49H4V48H5ZM9 48V49H7V48H9ZM13 48V49H11V48H13ZM17 48V49H15V48H17ZM21 48V49H19V48H21ZM25 48V49H23V48H25ZM29 48V49H27V48H29ZM33 48V49H31V48H33ZM37 48V49H35V48H37ZM41 48V49H39V48H41ZM45 48V49H43V48H45ZM49 48V49H47V48H49ZM53 48V49H51V48H53ZM57 48V49H55V48H57ZM60 48V49H59V48H60ZM5 44.2773V46.167H4V44.2773H5ZM60 44.2773V46.167H59V44.2773H60ZM5 40.5V42.3887H4V40.5H5ZM60 40.5V42.3887H59V40.5H60ZM5 36.7227V38.6113H4V36.7227H5ZM60 36.7227V38.6113H59V36.7227H60ZM5 32.9443V34.833H4V32.9443H5ZM60 32.9443V34.833H59V32.9443H60ZM5 29.167V31.0557H4V29.167H5ZM60 29.167V31.0557H59V29.167H60ZM5 25.3887V27.2773H4V25.3887H5ZM60 25.3887V27.2773H59V25.3887H60ZM5 21.6113V23.5H4V21.6113H5ZM60 21.6113V23.5H59V21.6113H60ZM5 17.833V19.7227H4V17.833H5ZM60 17.833V19.7227H59V17.833H60ZM5 15V16H4V15H5ZM9 15V16H7V15H9ZM13 15V16H11V15H13ZM17 15V16H15V15H17ZM21 15V16H19V15H21ZM25 15V16H23V15H25ZM29 15V16H27V15H29ZM33 15V16H31V15H33ZM37 15V16H35V15H37ZM41 15V16H39V15H41ZM45 15V16H43V15H45ZM49 15V16H47V15H49ZM53 15V16H51V15H53ZM57 15V16H55V15H57ZM60 15V16H59V15H60Z",fill:"#8B8C8F"}))}),OV=Object.defineProperty,FV=Object.defineProperties,VV=Object.getOwnPropertyDescriptors,m4=Object.getOwnPropertySymbols,J9=Object.prototype.hasOwnProperty,q9=Object.prototype.propertyIsEnumerable,$9=(e,t,n)=>t in e?OV(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,N6=(e,t)=>{for(var n in t||(t={}))J9.call(t,n)&&$9(e,n,t[n]);if(m4)for(var n of m4(t))q9.call(t,n)&&$9(e,n,t[n]);return e},zV=(e,t)=>FV(e,VV(t)),WV=(e,t)=>{var n={};for(var a in e)J9.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&m4)for(var a of m4(e))t.indexOf(a)<0&&q9.call(e,a)&&(n[a]=e[a]);return n},eb=(0,l.forwardRef)((e,t)=>{var n=e,{size:a,spin:i,style:c}=n,d=WV(n,["size","spin","style"]);const p=N6(N6({width:a||"var(--x-icon-size, 1em)",height:a||"var(--x-icon-size, 1em)",animation:i?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),c);return l.createElement("svg",zV(N6({ref:t,style:p},d),{width:"64",height:"64",viewBox:"0 0 64 64",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),l.createElement("rect",{x:"4.5",y:"4.5",width:"55",height:"55",rx:"27.5",fill:"white",stroke:"#8B8C8F"}))}),HV=Object.defineProperty,GV=Object.defineProperties,ZV=Object.getOwnPropertyDescriptors,f4=Object.getOwnPropertySymbols,tb=Object.prototype.hasOwnProperty,nb=Object.prototype.propertyIsEnumerable,ob=(e,t,n)=>t in e?HV(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,j6=(e,t)=>{for(var n in t||(t={}))tb.call(t,n)&&ob(e,n,t[n]);if(f4)for(var n of f4(t))nb.call(t,n)&&ob(e,n,t[n]);return e},KV=(e,t)=>GV(e,ZV(t)),YV=(e,t)=>{var n={};for(var a in e)tb.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&f4)for(var a of f4(e))t.indexOf(a)<0&&nb.call(e,a)&&(n[a]=e[a]);return n},XV=(0,l.forwardRef)((e,t)=>{var n=e,{size:a,spin:i,style:c}=n,d=YV(n,["size","spin","style"]);const p=j6(j6({width:a||"var(--x-icon-size, 1em)",height:a||"var(--x-icon-size, 1em)",animation:i?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),c);return l.createElement("svg",KV(j6({ref:t,style:p},d),{width:"64",height:"64",viewBox:"0 0 64 64",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),l.createElement("rect",{x:"4",y:"4",width:"56",height:"56",rx:"28",fill:"#EEEEF0"}))}),QV=Object.defineProperty,JV=Object.defineProperties,qV=Object.getOwnPropertyDescriptors,g4=Object.getOwnPropertySymbols,ab=Object.prototype.hasOwnProperty,rb=Object.prototype.propertyIsEnumerable,ib=(e,t,n)=>t in e?QV(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,D6=(e,t)=>{for(var n in t||(t={}))ab.call(t,n)&&ib(e,n,t[n]);if(g4)for(var n of g4(t))rb.call(t,n)&&ib(e,n,t[n]);return e},$V=(e,t)=>JV(e,qV(t)),ez=(e,t)=>{var n={};for(var a in e)ab.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&g4)for(var a of g4(e))t.indexOf(a)<0&&rb.call(e,a)&&(n[a]=e[a]);return n},tz=(0,l.forwardRef)((e,t)=>{var n=e,{size:a,spin:i,style:c}=n,d=ez(n,["size","spin","style"]);const p=D6(D6({width:a||"var(--x-icon-size, 1em)",height:a||"var(--x-icon-size, 1em)",animation:i?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),c);return l.createElement("svg",$V(D6({ref:t,style:p},d),{width:"64",height:"64",viewBox:"0 0 64 64",fill:"none",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"}),l.createElement("rect",{x:"4.5",y:"4.5",width:"55",height:"55",rx:"27.5",fill:"url(#pattern0_2914_1236)",stroke:"#8B8C8F"}),l.createElement("defs",null,l.createElement("pattern",{id:"pattern0_2914_1236",patternContentUnits:"objectBoundingBox",width:"1.00571",height:"1.00571"},l.createElement("use",{xlinkHref:"#image0_2914_1236",transform:"scale(0.00392857)"})),l.createElement("image",{id:"image0_2914_1236",width:"256",height:"256",preserveAspectRatio:"none",xlinkHref:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAAEACAYAAABccqhmAAAAAXNSR0IArs4c6QAACixJREFUeF7t3TFSJEAMQ9HhBNz/jESkJLuH+EGXym9zirKxvmUx9H79/f39+4R/v7+/4as/n+/v7/T1vr/+lwG6Pn9fAABARUAAvA1gAOBAiv4/AAAAaYCuWzD1c2BFQBXAHAAHUOaPAxjPwAAAAAAgdKBu4NcOEAAAIIz/hwPgALZDkNcE9v1lAIXA1YFwABxAmT8OgAPgAIqCOAAOoMwPBzBOYAAAAAAIHagEJEACDOM3fwLJAGQAZf7nBXB9AQAAAABA6MC6AwUAAAjj73MAACCESwK6bkHV/zaD+fr5+UnvAfgBvv0B6r/+lw0EABxMmR8PuoyfkAAAAAAQOrDuwAAAAML4e9INAMYt0HqKuz6A+v/2o/QcAAfAAYQOrAMYAAAgjL8TAACcAElALPBbC3y9/xwAB5AAtr4BAcAHgQggdAAAtj+IxAFwAEH+MoB1AAIAAABA6AAACAHD+Phruus3+Ov6OQAOIAFsfQO+FuDr7w8AAAAAoQPrAAQAAAjjLwScB4D/Hnz71zivLaTvv/1BJk+CCTGTAwAAAEgDtG6hCGBbANfnjwPgABLAAXAbgAAAAAAQOrAOQAAAgDD+PsgEAH6NlgR0/QZV/9vfQnEAHEAC2PoGvA4gAAAAAAgdWAcgAABAGH8ZAADIAJKArltQ9csAkoDWCUwAbwVwvf9OACcAAIcOrC8gAACAMP4yAACQASQBXbeg6n97AnEAHEAC2PoGvA4gD4JwMAkA1wW0Xj8AAAAAhA4AAAsdxkeI5oR4++fEHAAHkAC2vgGvAwgAAAAAQgfWAQgAABDG36vAACADSAK6bkHVLwNIAlonMAG8FcD1/jsBnAAAHDqwvoAAAADC+MsAAEAGkAR03YKq/+0JxAFwAAlg6xvwOoAAAAAAIHRgHYAAAABh/GUAACADSAK6bkHVLwNIAlonMAG8FcD1/nsQhINJAL4uoPX6AQAAACB0AACEaGF8hGhOOG8CJgGtE5gA3grgev+dAE4AAA4dWF9AAAAAYfw9aQYAMoAkoOsWVP1vTyAOgANIAFvfgNcBBAAAAAChA+sABAAACOMvAwAAGUAS0HULqn4ZQBLQOoEJ4K0ArvffCeAEAODQgfUFBAAAEMZfBgAAMoAkoOsWVP1vTyAOgANIAFvfgNcB5EkwDiYB4LqA1usHAAAAgNABAGChw/gI0ZwQb59E4wA4gASw9Q14HUAAAAAAEDqwDkAAAIAw/p40AwAZQBLQdQuqfhlAEtA6gQngrQCu998J4AQA4NCB9QUEAAAQxl8GAAAygCSg6xZU/W9PIA6AA0gAW9+A1wEEAAAAAKED6wAEAAAI4y8DAAAZQBLQdQuqfhlAEtA6gQngrQCu99+DIBxMAvB1Aa3XDwAAAAChAwAgRAvjI0RzwnkTMAloncAE8FYA1/vvBHACAHDowPoCAgAACOPvSTMAkAEkAV23oOp/ewJxABxAAtj6BrwOIAAAAAAIHVgHIAAAQBh/GQAAyACSgK5bUPXLAJKA1glMAG8FcL3/TgAnAACHDqwvIAAAgDD+MgAAkAEkAV23oOp/ewJxABxAAtj6BrwOIE+CcTAJANcFtF4/AAAAAIQOAAALHcZHiOaEePskGgfAASSArW/A6wACAAAAgNCBdQACAACE8fekGQDIAJKArltQ9csAkoDWCUwAbwVwvf9OACcAAIcOrC8gAACAMP4yAACQASQBXbeg6n97AnEAHEAC2PoGvA4gAAAAAAgdWAcgAABAGH8ZAADIAJKArltQ9csAkoDWCUwAbwVwvf8eBOFgEoCvC2i9fgAAAAAIHQAAIVoYHyGaE86bgElA6wQmgLcCuN5/J4ATAIBDB9YXEAAAQBh/T5oBgAwgCei6BVX/2xOIA+AAEsDWN+B1AAEAAABA6MA6AAEAAML4ywAAQAaQBHTdgqpfBpAEtE5gAngrgOv9dwI4AQA4dGB9AQEAAITxlwEAgAwgCei6BVX/2xOIA+AAEsDWN+B1AHkSjINJALguoPX6AQAAACB0AABY6DA+QjQnxNsn0TgADiABbH0DXgcQAAAAAIQOrAMQAAAgjL8nzQBABpAEdN2Cql8GkAS0TmACeCuA6/13AjgBADh0YH0BAQAAhPGXAQCADCAJ6LoFVf/bE4gD4AASwNY34HUAAQAAAEDowDoAAQAAwvjLAABABpAEdN2Cql8GkAS0TmACeCuA6/33IAgHkwB8XUDr9QMAAABA6AAACNHC+AjRnHDeBEwCWicwAbwVwPX+OwGcAAAcOrC+gAAAAML4e9IMAGQASUDXLaj6355AHAAHkAC2vgGvAwgAAAAAQgfWAQgAABDGXwYAADKAJKDrFlT9MoAkoHUCE8BbAVzvvxPACQDAoQPrCwgAACCMvwwAAGQASUDXLaj6355AHAAHkAC2vgGvA8iTYBxMAsB1Aa3XDwAAAAChAwDAQofxEaI5Id4+icYBcAAJYOsb8DqAAAAAACB0YB2AAAAAYfw9aQYAMoAkoOsWVP0ygCSgdQITwFsBXO+/E8AJAMChA+sLCAAAIIy/DAAAZABJQNctqPrfnkAcAAeQALa+Aa8DCAAAAABCB9YBCAAAEMZfBgAAMoAkoOsWVP0ygCSgdQITwFsBXO+/B0E4mATg6wJarx8AAAAAQgcAQIgWxkeI5oTzJmAS0DqBCeCtAK733wngBADg0IH1BQQAABDG35NmACADSAK6bkHV//YE4gA4gASw9Q14HUAAAAAAEDqwDkAAAIAw/jIAAJABJAFdt6DqlwEkAa0TmADeCuB6/50ATgAADh1YX0AAAABh/GUAACADSAK6bkHV//YE4gA4gASw9Q14HUCeBONgEgCuC2i9fgAAAAAIHQAAFjqMjxDNCfH2STQOgANIAFvfgNcBBAAAAAChA+sABAAACOPvSTMAkAEkAV23oOqXASQBrROYAN4K4Hr/nQBOAAAOHVhfQAAAAGH8ZQAAIANIArpuQdX/9gTiADiABLD1DXgdQAAAAAAQOrAOQAAAgDD+MgAAkAEkAV23oOqXASQBrROYAN4K4Hr/PQjCwSQAXxfQev0AAAAAEDoAAEK0MD5CNCecNwGTgNYJTABvBXC9/04AJwAAhw6sLyAAAIAw/p40AwAZQBLQdQuq/rcnEAfAASSArW/A6wACAAAAgNCBdQACAACE8ZcBAIAMIAnougVVvwwgCWidwATwVgDX++8EcAIAcOjA+gICAAAI4y8DAAAZQBLQdQuq/rcnEAfAASSArW/A6wDyJBgHkwBwXUDr9QMAAABA6AAAsNBhfIRoToi3T6JxABxAAtj6BrwOIAAAAAAIHVgHIAAAQBh/T5oBgAwgCei6BVW/DCAJaJ3ABPBWANf77wRwAgBw6MD6AgIAAAjjLwMAABlAEtB1C6r+tycQB8ABJICtb8DrAAIAAACA0IF1AAIAAITxlwEAgAwgCei6BVW/DCAJaJ3ABPBWANf7/x/aVlkHhH7qqQAAAABJRU5ErkJggg=="})))}),nz=Object.defineProperty,oz=Object.defineProperties,az=Object.getOwnPropertyDescriptors,y4=Object.getOwnPropertySymbols,sb=Object.prototype.hasOwnProperty,lb=Object.prototype.propertyIsEnumerable,cb=(e,t,n)=>t in e?nz(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,R6=(e,t)=>{for(var n in t||(t={}))sb.call(t,n)&&cb(e,n,t[n]);if(y4)for(var n of y4(t))lb.call(t,n)&&cb(e,n,t[n]);return e},rz=(e,t)=>oz(e,az(t)),iz=(e,t)=>{var n={};for(var a in e)sb.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&y4)for(var a of y4(e))t.indexOf(a)<0&&lb.call(e,a)&&(n[a]=e[a]);return n},sz=(0,l.forwardRef)((e,t)=>{var n=e,{size:a,spin:i,style:c}=n,d=iz(n,["size","spin","style"]);const p=R6(R6({width:a||"var(--x-icon-size, 1em)",height:a||"var(--x-icon-size, 1em)",animation:i?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),c);return l.createElement("svg",rz(R6({ref:t,style:p},d),{width:"64",height:"64",viewBox:"0 0 64 64",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),l.createElement("path",{d:"M4 32C4 16.536 16.536 4 32 4C47.464 4 60 16.536 60 32C60 47.464 47.464 60 32 60C16.536 60 4 47.464 4 32Z",fill:"white"}),l.createElement("path",{d:"M31.0342 58.9834C31.3547 58.9947 31.6767 59 32 59V60C31.6649 60 31.3313 59.9921 30.999 59.9805L31.0342 58.9834ZM33 59.9805C32.6681 59.9921 32.3348 60 32 60V59C32.3233 59 32.6453 58.9947 32.9658 58.9834L33 59.9805ZM27.2021 58.5752C27.8311 58.688 28.4679 58.7793 29.1113 58.8477L29.0059 59.8398C28.3388 59.7689 27.6786 59.6755 27.0264 59.5586L27.2021 58.5752ZM36.8857 59.0674L36.9727 59.5586C36.3204 59.6755 35.6603 59.7689 34.9932 59.8398L34.8887 58.8477C35.5321 58.7793 36.1689 58.688 36.7979 58.5752L36.8857 59.0674ZM23.4697 57.625C24.077 57.8271 24.6947 58.0088 25.3203 58.168L25.0732 59.1348C24.4242 58.9696 23.7843 58.7819 23.1543 58.5723L23.2148 58.3926L23.4697 57.625ZM40.8447 58.5723C40.2147 58.7819 39.5748 58.9696 38.9258 59.1348L38.6797 58.168C39.3053 58.0088 39.923 57.8271 40.5303 57.625L40.8447 58.5723ZM19.9121 56.1494C20.485 56.4367 21.0698 56.7043 21.665 56.9512L21.4736 57.4131L21.2822 57.873C20.6648 57.617 20.059 57.339 19.4648 57.041L19.9121 56.1494ZM44.5342 57.041C43.94 57.339 43.3342 57.617 42.7168 57.873L42.335 56.9512C42.9302 56.7043 43.515 56.4367 44.0879 56.1494L44.5342 57.041ZM16.6006 54.1807C17.1275 54.5472 17.6684 54.8956 18.2217 55.2246L17.7109 56.082C17.1374 55.741 16.5774 55.3799 16.0312 55L16.123 54.8682L16.6006 54.1807ZM47.877 54.8682L47.9678 55C47.4216 55.3799 46.8616 55.741 46.2881 56.082L45.7783 55.2246C46.3316 54.8956 46.8725 54.5472 47.3994 54.1807L47.877 54.8682ZM13.6016 51.7617C14.0717 52.1997 14.5581 52.6206 15.0586 53.0244L14.4307 53.8008C13.9118 53.3821 13.4083 52.9452 12.9209 52.4912L13.6016 51.7617ZM51.0781 52.4912C50.5907 52.9452 50.0873 53.3821 49.5684 53.8008L48.9414 53.0244C49.4419 52.6206 49.9283 52.1997 50.3984 51.7617L51.0781 52.4912ZM10.9756 48.9414C11.3794 49.4419 11.8003 49.9283 12.2383 50.3984L11.8721 50.7383L11.7793 50.8262L11.5078 51.0781C11.0538 50.5907 10.6169 50.0873 10.1982 49.5684L10.9756 48.9414ZM53.8008 49.5684C53.3821 50.0873 52.9452 50.5907 52.4912 51.0781L52.127 50.7393L51.7617 50.3984C52.1997 49.9283 52.6206 49.4419 53.0244 48.9414L53.8008 49.5684ZM8.77539 45.7783C9.10436 46.3316 9.45283 46.8725 9.81934 47.3994L8.99902 47.9678C8.61916 47.4216 8.258 46.8616 7.91699 46.2881L8.77539 45.7783ZM56.082 46.2881C55.741 46.8616 55.3799 47.4216 55 47.9678L54.5918 47.6846L54.1807 47.3994C54.5472 46.8725 54.8956 46.3316 55.2246 45.7783L56.082 46.2881ZM7.04883 42.335C7.29566 42.9302 7.56326 43.515 7.85059 44.0879L6.95801 44.5342C6.66003 43.94 6.38198 43.3342 6.12598 42.7168L6.58691 42.5264L7.04883 42.335ZM57.873 42.7168C57.617 43.3342 57.339 43.94 57.041 44.5342L56.1494 44.0879C56.4367 43.515 56.7043 42.9302 56.9512 42.335L57.873 42.7168ZM5.83203 38.6797C5.99124 39.3053 6.17295 39.923 6.375 40.5303L5.42676 40.8447C5.21716 40.2147 5.02941 39.5748 4.86426 38.9258L5.83203 38.6797ZM59.1348 38.9258C58.9696 39.5748 58.7819 40.2147 58.5723 40.8447L57.625 40.5303C57.8271 39.923 58.0088 39.3053 58.168 38.6797L59.1348 38.9258ZM5.15234 34.8887C5.22075 35.5321 5.31204 36.1689 5.4248 36.7979L4.93262 36.8857L4.44043 36.9727C4.32352 36.3204 4.23007 35.6602 4.15918 34.9932L5.15234 34.8887ZM59.8398 34.9932C59.7689 35.6603 59.6755 36.3204 59.5586 36.9727L59.0674 36.8857L58.5752 36.7979C58.688 36.1689 58.7793 35.5321 58.8477 34.8887L59.8398 34.9932ZM4 32C4 31.6649 4.00688 31.3313 4.01855 30.999L4.51758 31.0166L5.0166 31.0342C5.00534 31.3547 5 31.6767 5 32C5 32.3233 5.00534 32.6453 5.0166 32.9658L4.01855 33C4.0069 32.6681 4 32.3347 4 32ZM60 32C60 32.3348 59.9921 32.6681 59.9805 33L58.9834 32.9658C58.9947 32.6453 59 32.3233 59 32C59 31.6767 58.9947 31.3547 58.9834 31.0342L59.9805 30.999C59.9921 31.3313 60 31.6649 60 32ZM4.44043 27.0264L5.4248 27.2021C5.31204 27.8311 5.22075 28.4679 5.15234 29.1113L4.15918 29.0059C4.22946 28.3448 4.32202 27.6905 4.4375 27.0439L4.44043 27.0264ZM59.5586 27.0264C59.6755 27.6786 59.7689 28.3388 59.8398 29.0059L58.8477 29.1113C58.7793 28.4679 58.688 27.8311 58.5752 27.2021L59.5586 27.0264ZM6.375 23.4697C6.17295 24.077 5.99124 24.6947 5.83203 25.3203L4.86426 25.0732C5.02943 24.4242 5.21714 23.7843 5.42676 23.1543L6.375 23.4697ZM58.5723 23.1543C58.7819 23.7843 58.9696 24.4242 59.1348 25.0732L58.168 25.3203C58.0088 24.6947 57.8271 24.077 57.625 23.4697L58.5723 23.1543ZM7.85059 19.9121C7.56326 20.485 7.29566 21.0698 7.04883 21.665L6.12598 21.2822C6.382 20.6649 6.66001 20.059 6.95801 19.4648L7.85059 19.9121ZM57.041 19.4648C57.339 20.059 57.617 20.6648 57.873 21.2822L56.9512 21.665C56.7043 21.0698 56.4367 20.485 56.1494 19.9121L57.041 19.4648ZM9.81934 16.6006C9.45283 17.1275 9.10436 17.6684 8.77539 18.2217L7.91699 17.7109C8.25801 17.1374 8.61915 16.5774 8.99902 16.0312L9.81934 16.6006ZM55 16.0312C55.3799 16.5774 55.741 17.1374 56.082 17.7109L55.2246 18.2217C54.8956 17.6684 54.5472 17.1275 54.1807 16.6006L55 16.0312ZM12.2383 13.6016C11.8003 14.0717 11.3794 14.5581 10.9756 15.0586L10.1982 14.4307C10.6169 13.9118 11.0538 13.4083 11.5078 12.9209L12.2383 13.6016ZM52.4912 12.9209C52.9452 13.4083 53.3821 13.9118 53.8008 14.4307L53.0244 15.0586C52.6206 14.5581 52.1997 14.0717 51.7617 13.6016L52.4912 12.9209ZM15.0586 10.9756C14.5581 11.3794 14.0717 11.8003 13.6016 12.2383L12.9209 11.5078C13.4083 11.0538 13.9118 10.6169 14.4307 10.1982L15.0586 10.9756ZM49.5684 10.1982C50.0873 10.6169 50.5907 11.0538 51.0781 11.5078L50.3984 12.2383C49.9283 11.8003 49.4419 11.3794 48.9414 10.9756L49.5684 10.1982ZM18.2217 8.77539C17.6684 9.10436 17.1275 9.45283 16.6006 9.81934L16.0312 8.99902C16.5774 8.61915 17.1374 8.25801 17.7109 7.91699L18.2217 8.77539ZM46.2881 7.91699C46.8616 8.258 47.4216 8.61916 47.9678 8.99902L47.3994 9.81934C46.8725 9.45283 46.3316 9.10436 45.7783 8.77539L46.2881 7.91699ZM21.665 7.04883C21.0698 7.29566 20.485 7.56326 19.9121 7.85059L19.4648 6.95801C20.059 6.66001 20.6649 6.382 21.2822 6.12598L21.665 7.04883ZM42.7168 6.12598C43.3342 6.38198 43.94 6.66003 44.5342 6.95801L44.0879 7.85059C43.515 7.56326 42.9302 7.29566 42.335 7.04883L42.7168 6.12598ZM25.3203 5.83203C24.6947 5.99124 24.077 6.17295 23.4697 6.375L23.1543 5.42676C23.7843 5.21714 24.4242 5.02943 25.0732 4.86426L25.3203 5.83203ZM38.9258 4.86426C39.5748 5.0294 40.2147 5.21716 40.8447 5.42676L40.5303 6.375C39.923 6.17295 39.3053 5.99124 38.6797 5.83203L38.9258 4.86426ZM29.1113 5.15234C28.4679 5.22075 27.8311 5.31204 27.2021 5.4248L27.0264 4.44043C27.6786 4.3235 28.3388 4.2301 29.0059 4.15918L29.1113 5.15234ZM34.9932 4.15918C35.6602 4.23007 36.3204 4.32352 36.9727 4.44043L36.7979 5.4248C36.1689 5.31204 35.5321 5.22075 34.8887 5.15234L34.9932 4.15918ZM32 4C32.3347 4 32.6681 4.0069 33 4.01855L32.9658 5.0166C32.6453 5.00534 32.3233 5 32 5C31.6767 5 31.3547 5.00534 31.0342 5.0166L30.999 4.01855C31.3313 4.00688 31.6649 4 32 4Z",fill:"#8B8C8F"}))}),lz=Object.defineProperty,cz=Object.defineProperties,dz=Object.getOwnPropertyDescriptors,x4=Object.getOwnPropertySymbols,db=Object.prototype.hasOwnProperty,pb=Object.prototype.propertyIsEnumerable,ub=(e,t,n)=>t in e?lz(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,B6=(e,t)=>{for(var n in t||(t={}))db.call(t,n)&&ub(e,n,t[n]);if(x4)for(var n of x4(t))pb.call(t,n)&&ub(e,n,t[n]);return e},pz=(e,t)=>cz(e,dz(t)),uz=(e,t)=>{var n={};for(var a in e)db.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&x4)for(var a of x4(e))t.indexOf(a)<0&&pb.call(e,a)&&(n[a]=e[a]);return n},hb=(0,l.forwardRef)((e,t)=>{var n=e,{size:a,spin:i,style:c}=n,d=uz(n,["size","spin","style"]);const p=B6(B6({width:a||"var(--x-icon-size, 1em)",height:a||"var(--x-icon-size, 1em)",animation:i?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),c);return l.createElement("svg",pz(B6({ref:t,style:p},d),{width:"64",height:"64",viewBox:"0 0 64 64",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),l.createElement("path",{d:"M59.1465 56.5H4.85352L32 8.02344L59.1465 56.5Z",fill:"white",stroke:"#8B8C8F"}))}),hz=Object.defineProperty,mz=Object.defineProperties,fz=Object.getOwnPropertyDescriptors,v4=Object.getOwnPropertySymbols,mb=Object.prototype.hasOwnProperty,fb=Object.prototype.propertyIsEnumerable,gb=(e,t,n)=>t in e?hz(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,U6=(e,t)=>{for(var n in t||(t={}))mb.call(t,n)&&gb(e,n,t[n]);if(v4)for(var n of v4(t))fb.call(t,n)&&gb(e,n,t[n]);return e},gz=(e,t)=>mz(e,fz(t)),yz=(e,t)=>{var n={};for(var a in e)mb.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&v4)for(var a of v4(e))t.indexOf(a)<0&&fb.call(e,a)&&(n[a]=e[a]);return n},xz=(0,l.forwardRef)((e,t)=>{var n=e,{size:a,spin:i,style:c}=n,d=yz(n,["size","spin","style"]);const p=U6(U6({width:a||"var(--x-icon-size, 1em)",height:a||"var(--x-icon-size, 1em)",animation:i?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),c);return l.createElement("svg",gz(U6({ref:t,style:p},d),{width:"64",height:"64",viewBox:"0 0 64 64",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),l.createElement("path",{d:"M32 7L60 57H4L32 7Z",fill:"#EEEEF0"}))}),vz=Object.defineProperty,bz=Object.defineProperties,wz=Object.getOwnPropertyDescriptors,b4=Object.getOwnPropertySymbols,yb=Object.prototype.hasOwnProperty,xb=Object.prototype.propertyIsEnumerable,vb=(e,t,n)=>t in e?vz(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,O6=(e,t)=>{for(var n in t||(t={}))yb.call(t,n)&&vb(e,n,t[n]);if(b4)for(var n of b4(t))xb.call(t,n)&&vb(e,n,t[n]);return e},Cz=(e,t)=>bz(e,wz(t)),Sz=(e,t)=>{var n={};for(var a in e)yb.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&b4)for(var a of b4(e))t.indexOf(a)<0&&xb.call(e,a)&&(n[a]=e[a]);return n},Az=(0,l.forwardRef)((e,t)=>{var n=e,{size:a,spin:i,style:c}=n,d=Sz(n,["size","spin","style"]);const p=O6(O6({width:a||"var(--x-icon-size, 1em)",height:a||"var(--x-icon-size, 1em)",animation:i?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),c);return l.createElement("svg",Cz(O6({ref:t,style:p},d),{width:"64",height:"64",viewBox:"0 0 64 64",fill:"none",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"}),l.createElement("path",{d:"M59.1465 56.5H4.85352L32 8.02344L59.1465 56.5Z",fill:"url(#pattern0_2914_1242)",stroke:"#8B8C8F"}),l.createElement("defs",null,l.createElement("pattern",{id:"pattern0_2914_1242",patternContentUnits:"objectBoundingBox",width:"1",height:"1"},l.createElement("use",{xlinkHref:"#image0_2914_1242",transform:"matrix(0.00390625 0 0 0.004375 0 -0.06)"})),l.createElement("image",{id:"image0_2914_1242",width:"256",height:"256",preserveAspectRatio:"none",xlinkHref:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAAEACAYAAABccqhmAAAAAXNSR0IArs4c6QAACixJREFUeF7t3TFSJEAMQ9HhBNz/jESkJLuH+EGXym9zirKxvmUx9H79/f39+4R/v7+/4as/n+/v7/T1vr/+lwG6Pn9fAABARUAAvA1gAOBAiv4/AAAAaYCuWzD1c2BFQBXAHAAHUOaPAxjPwAAAAAAgdKBu4NcOEAAAIIz/hwPgALZDkNcE9v1lAIXA1YFwABxAmT8OgAPgAIqCOAAOoMwPBzBOYAAAAAAIHagEJEACDOM3fwLJAGQAZf7nBXB9AQAAAABA6MC6AwUAAAjj73MAACCESwK6bkHV/zaD+fr5+UnvAfgBvv0B6r/+lw0EABxMmR8PuoyfkAAAAAAQOrDuwAAAAML4e9INAMYt0HqKuz6A+v/2o/QcAAfAAYQOrAMYAAAgjL8TAACcAElALPBbC3y9/xwAB5AAtr4BAcAHgQggdAAAtj+IxAFwAEH+MoB1AAIAAABA6AAACAHD+Phruus3+Ov6OQAOIAFsfQO+FuDr7w8AAAAAoQPrAAQAAAjjLwScB4D/Hnz71zivLaTvv/1BJk+CCTGTAwAAAEgDtG6hCGBbANfnjwPgABLAAXAbgAAAAAAQOrAOQAAAgDD+PsgEAH6NlgR0/QZV/9vfQnEAHEAC2PoGvA4gAAAAAAgdWAcgAABAGH8ZAADIAJKArltQ9csAkoDWCUwAbwVwvf9OACcAAIcOrC8gAACAMP4yAACQASQBXbeg6n97AnEAHEAC2PoGvA4gD4JwMAkA1wW0Xj8AAAAAhA4AAAsdxkeI5oR4++fEHAAHkAC2vgGvAwgAAAAAQgfWAQgAABDG36vAACADSAK6bkHVLwNIAlonMAG8FcD1/jsBnAAAHDqwvoAAAADC+MsAAEAGkAR03YKq/+0JxAFwAAlg6xvwOoAAAAAAIHRgHYAAAABh/GUAACADSAK6bkHVLwNIAlonMAG8FcD1/nsQhINJAL4uoPX6AQAAACB0AACEaGF8hGhOOG8CJgGtE5gA3grgev+dAE4AAA4dWF9AAAAAYfw9aQYAMoAkoOsWVP1vTyAOgANIAFvfgNcBBAAAAAChA+sABAAACOMvAwAAGUAS0HULqn4ZQBLQOoEJ4K0ArvffCeAEAODQgfUFBAAAEMZfBgAAMoAkoOsWVP1vTyAOgANIAFvfgNcB5EkwDiYB4LqA1usHAAAAgNABAGChw/gI0ZwQb59E4wA4gASw9Q14HUAAAAAAEDqwDkAAAIAw/p40AwAZQBLQdQuqfhlAEtA6gQngrQCu998J4AQA4NCB9QUEAAAQxl8GAAAygCSg6xZU/W9PIA6AA0gAW9+A1wEEAAAAAKED6wAEAAAI4y8DAAAZQBLQdQuqfhlAEtA6gQngrQCu99+DIBxMAvB1Aa3XDwAAAAChAwAgRAvjI0RzwnkTMAloncAE8FYA1/vvBHACAHDowPoCAgAACOPvSTMAkAEkAV23oOp/ewJxABxAAtj6BrwOIAAAAAAIHVgHIAAAQBh/GQAAyACSgK5bUPXLAJKA1glMAG8FcL3/TgAnAACHDqwvIAAAgDD+MgAAkAEkAV23oOp/ewJxABxAAtj6BrwOIE+CcTAJANcFtF4/AAAAAIQOAAALHcZHiOaEePskGgfAASSArW/A6wACAAAAgNCBdQACAACE8fekGQDIAJKArltQ9csAkoDWCUwAbwVwvf9OACcAAIcOrC8gAACAMP4yAACQASQBXbeg6n97AnEAHEAC2PoGvA4gAAAAAAgdWAcgAABAGH8ZAADIAJKArltQ9csAkoDWCUwAbwVwvf8eBOFgEoCvC2i9fgAAAAAIHQAAIVoYHyGaE86bgElA6wQmgLcCuN5/J4ATAIBDB9YXEAAAQBh/T5oBgAwgCei6BVX/2xOIA+AAEsDWN+B1AAEAAABA6MA6AAEAAML4ywAAQAaQBHTdgqpfBpAEtE5gAngrgOv9dwI4AQA4dGB9AQEAAITxlwEAgAwgCei6BVX/2xOIA+AAEsDWN+B1AHkSjINJALguoPX6AQAAACB0AABY6DA+QjQnxNsn0TgADiABbH0DXgcQAAAAAIQOrAMQAAAgjL8nzQBABpAEdN2Cql8GkAS0TmACeCuA6/13AjgBADh0YH0BAQAAhPGXAQCADCAJ6LoFVf/bE4gD4AASwNY34HUAAQAAAEDowDoAAQAAwvjLAABABpAEdN2Cql8GkAS0TmACeCuA6/33IAgHkwB8XUDr9QMAAABA6AAACNHC+AjRnHDeBEwCWicwAbwVwPX+OwGcAAAcOrC+gAAAAML4e9IMAGQASUDXLaj6355AHAAHkAC2vgGvAwgAAAAAQgfWAQgAABDGXwYAADKAJKDrFlT9MoAkoHUCE8BbAVzvvxPACQDAoQPrCwgAACCMvwwAAGQASUDXLaj6355AHAAHkAC2vgGvA8iTYBxMAsB1Aa3XDwAAAAChAwDAQofxEaI5Id4+icYBcAAJYOsb8DqAAAAAACB0YB2AAAAAYfw9aQYAMoAkoOsWVP0ygCSgdQITwFsBXO+/E8AJAMChA+sLCAAAIIy/DAAAZABJQNctqPrfnkAcAAeQALa+Aa8DCAAAAABCB9YBCAAAEMZfBgAAMoAkoOsWVP0ygCSgdQITwFsBXO+/B0E4mATg6wJarx8AAAAAQgcAQIgWxkeI5oTzJmAS0DqBCeCtAK733wngBADg0IH1BQQAABDG35NmACADSAK6bkHV//YE4gA4gASw9Q14HUAAAAAAEDqwDkAAAIAw/jIAAJABJAFdt6DqlwEkAa0TmADeCuB6/50ATgAADh1YX0AAAABh/GUAACADSAK6bkHV//YE4gA4gASw9Q14HUCeBONgEgCuC2i9fgAAAAAIHQAAFjqMjxDNCfH2STQOgANIAFvfgNcBBAAAAAChA+sABAAACOPvSTMAkAEkAV23oOqXASQBrROYAN4K4Hr/nQBOAAAOHVhfQAAAAGH8ZQAAIANIArpuQdX/9gTiADiABLD1DXgdQAAAAAAQOrAOQAAAgDD+MgAAkAEkAV23oOqXASQBrROYAN4K4Hr/PQjCwSQAXxfQev0AAAAAEDoAAEK0MD5CNCecNwGTgNYJTABvBXC9/04AJwAAhw6sLyAAAIAw/p40AwAZQBLQdQuq/rcnEAfAASSArW/A6wACAAAAgNCBdQACAACE8ZcBAIAMIAnougVVvwwgCWidwATwVgDX++8EcAIAcOjA+gICAAAI4y8DAAAZQBLQdQuq/rcnEAfAASSArW/A6wDyJBgHkwBwXUDr9QMAAABA6AAAsNBhfIRoToi3T6JxABxAAtj6BrwOIAAAAAAIHVgHIAAAQBh/T5oBgAwgCei6BVW/DCAJaJ3ABPBWANf77wRwAgBw6MD6AgIAAAjjLwMAABlAEtB1C6r+tycQB8ABJICtb8DrAAIAAACA0IF1AAIAAITxlwEAgAwgCei6BVW/DCAJaJ3ABPBWANf7/x/aVlkHhH7qqQAAAABJRU5ErkJggg=="})))}),kz=Object.defineProperty,Mz=Object.defineProperties,Ez=Object.getOwnPropertyDescriptors,w4=Object.getOwnPropertySymbols,bb=Object.prototype.hasOwnProperty,wb=Object.prototype.propertyIsEnumerable,Cb=(e,t,n)=>t in e?kz(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,F6=(e,t)=>{for(var n in t||(t={}))bb.call(t,n)&&Cb(e,n,t[n]);if(w4)for(var n of w4(t))wb.call(t,n)&&Cb(e,n,t[n]);return e},Iz=(e,t)=>Mz(e,Ez(t)),_z=(e,t)=>{var n={};for(var a in e)bb.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&w4)for(var a of w4(e))t.indexOf(a)<0&&wb.call(e,a)&&(n[a]=e[a]);return n},Tz=(0,l.forwardRef)((e,t)=>{var n=e,{size:a,spin:i,style:c}=n,d=_z(n,["size","spin","style"]);const p=F6(F6({width:a||"var(--x-icon-size, 1em)",height:a||"var(--x-icon-size, 1em)",animation:i?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),c);return l.createElement("svg",Iz(F6({ref:t,style:p},d),{width:"64",height:"64",viewBox:"0 0 64 64",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),l.createElement("path",{d:"M32 7L60 57H4L32 7Z",fill:"white"}),l.createElement("path",{d:"M5 56V56.3867L5.37207 56.5957L5.14551 57H4L4.55957 56H5ZM9 56V57H7V56H9ZM13 56V57H11V56H13ZM17 56V57H15V56H17ZM21 56V57H19V56H21ZM25 56V57H23V56H25ZM29 56V57H27V56H29ZM33 56V57H31V56H33ZM37 56V57H35V56H37ZM41 56V57H39V56H41ZM45 56V57H43V56H45ZM49 56V57H47V56H49ZM53 56V57H51V56H53ZM57 56V57H55V56H57ZM59.4404 56L60 57H58.8545L58.6279 56.5957L59 56.3867V56H59.4404ZM6.5 52.5361L7.37207 53.0244L6.37207 54.8096L5.5 54.3213L6.49902 52.5352L6.5 52.5361ZM58.499 54.3213H58.5L57.6279 54.8096L56.6279 53.0244L57.5 52.5361V52.5352L58.499 54.3213ZM8.5 48.9639L9.37207 49.4531L8.37207 51.2383L7.5 50.75L8.5 48.9639ZM55.499 48.9639L56.5 50.75L55.6279 51.2383L54.6279 49.4531L55.499 48.9639ZM10.5 45.3926L10.9365 45.6367H10.9355L11.3721 45.8818L10.3721 47.667L9.5 47.1787L9.49902 47.1777L10.5 45.3926ZM53.499 45.3926L54.5 47.1777V47.1787L53.6279 47.667L52.6279 45.8818L53.0635 45.6367L53.499 45.3926ZM12.5 41.8213L13.3721 42.3096L12.3721 44.0957L11.5 43.6074L11.499 43.6064L12.5 41.8213ZM51.499 41.8213L52.5 43.6064V43.6074L51.6279 44.0957L50.6279 42.3096L51.499 41.8213ZM14.5 38.25L15.3721 38.7383L14.3721 40.5244L13.5 40.0361L13.499 40.0352L14.5 38.25ZM50.5 40.0352V40.0361L49.6279 40.5244L48.6279 38.7383L49.5 38.25L50.5 40.0352ZM16.5 34.6787L17.3721 35.167L16.3721 36.9531L15.5 36.4639L16.499 34.6777L16.5 34.6787ZM48.499 36.4639H48.5L47.6279 36.9531L46.6279 35.167L47.5 34.6787V34.6777L48.499 36.4639ZM18.5 31.1074L19.3721 31.5957L18.3721 33.3818L17.5 32.8926L18.499 31.1064L18.5 31.1074ZM46.499 32.8926H46.5L45.6279 33.3818L44.6279 31.5957L45.5 31.1074V31.1064L46.499 32.8926ZM20.5 27.5361L21.3721 28.0244L20.3721 29.8096L19.5 29.3213L20.499 27.5352L20.5 27.5361ZM44.499 29.3213H44.5L43.6279 29.8096L42.6279 28.0244L43.5 27.5361V27.5352L44.499 29.3213ZM22.5 23.9639L23.3721 24.4531L22.3721 26.2383L21.5 25.75L22.5 23.9639ZM41.499 23.9639L42.5 25.75L41.6279 26.2383L40.6279 24.4531L41.499 23.9639ZM24.5 20.3926L24.9365 20.6367H24.9355L25.3721 20.8818L24.3721 22.667L23.5 22.1787L23.499 22.1777L24.5 20.3926ZM39.499 20.3926L40.5 22.1777V22.1787L39.6279 22.667L38.6279 20.8818L39.0635 20.6367L39.499 20.3926ZM26.5 16.8213L27.3721 17.3096L26.3721 19.0957L25.5 18.6074L25.499 18.6064L26.5 16.8213ZM37.499 16.8213L38.5 18.6064V18.6074L37.6279 19.0957L36.6279 17.3096L37.499 16.8213ZM28.5 13.25L29.3721 13.7383L28.3721 15.5244L27.5 15.0361L27.499 15.0352L28.5 13.25ZM36.5 15.0352V15.0361L35.6279 15.5244L34.6279 13.7383L35.5 13.25L36.5 15.0352ZM30.5 9.67871L31.3721 10.167L30.3721 11.9531L29.5 11.4639L30.499 9.67773L30.5 9.67871ZM34.499 11.4639H34.5L33.6279 11.9531L32.6279 10.167L33.5 9.67871V9.67773L34.499 11.4639ZM32.5723 8.02246L32.3721 8.38184L32 8.17285L31.6279 8.38184L31.4268 8.02246L32 7L32.5723 8.02246Z",fill:"#8B8C8F"}))}),Pz=Object.defineProperty,Lz=Object.defineProperties,Nz=Object.getOwnPropertyDescriptors,C4=Object.getOwnPropertySymbols,Sb=Object.prototype.hasOwnProperty,Ab=Object.prototype.propertyIsEnumerable,kb=(e,t,n)=>t in e?Pz(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,V6=(e,t)=>{for(var n in t||(t={}))Sb.call(t,n)&&kb(e,n,t[n]);if(C4)for(var n of C4(t))Ab.call(t,n)&&kb(e,n,t[n]);return e},jz=(e,t)=>Lz(e,Nz(t)),Dz=(e,t)=>{var n={};for(var a in e)Sb.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&C4)for(var a of C4(e))t.indexOf(a)<0&&Ab.call(e,a)&&(n[a]=e[a]);return n},Mb=(0,l.forwardRef)((e,t)=>{var n=e,{size:a,spin:i,style:c}=n,d=Dz(n,["size","spin","style"]);const p=V6(V6({width:a||"var(--x-icon-size, 1em)",height:a||"var(--x-icon-size, 1em)",animation:i?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),c);return l.createElement("svg",jz(V6({ref:t,style:p},d),{width:"64",height:"64",viewBox:"0 0 64 64",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),l.createElement("path",{d:"M38.9443 21.998L39.0615 22.2803L39.3662 22.3047L57.3916 23.749L43.6582 35.5137L43.4258 35.7129L43.4971 36.0098L47.6924 53.5986L32.2607 44.1729L32 44.0137L31.7393 44.1729L16.3066 53.5986L20.5029 36.0098L20.5742 35.7129L20.3418 35.5137L6.60742 23.749L24.6338 22.3047L24.9385 22.2803L25.0557 21.998L32 5.30273L38.9443 21.998Z",fill:"white",stroke:"#8B8C8F"}))}),Rz=Object.defineProperty,Bz=Object.defineProperties,Uz=Object.getOwnPropertyDescriptors,S4=Object.getOwnPropertySymbols,Eb=Object.prototype.hasOwnProperty,Ib=Object.prototype.propertyIsEnumerable,_b=(e,t,n)=>t in e?Rz(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,z6=(e,t)=>{for(var n in t||(t={}))Eb.call(t,n)&&_b(e,n,t[n]);if(S4)for(var n of S4(t))Ib.call(t,n)&&_b(e,n,t[n]);return e},Oz=(e,t)=>Bz(e,Uz(t)),Fz=(e,t)=>{var n={};for(var a in e)Eb.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&S4)for(var a of S4(e))t.indexOf(a)<0&&Ib.call(e,a)&&(n[a]=e[a]);return n},Vz=(0,l.forwardRef)((e,t)=>{var n=e,{size:a,spin:i,style:c}=n,d=Fz(n,["size","spin","style"]);const p=z6(z6({width:a||"var(--x-icon-size, 1em)",height:a||"var(--x-icon-size, 1em)",animation:i?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),c);return l.createElement("svg",Oz(z6({ref:t,style:p},d),{width:"64",height:"64",viewBox:"0 0 64 64",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),l.createElement("path",{d:"M32 4L39.4061 21.8064L58.6296 23.3475L43.9833 35.8936L48.458 54.6525L32 44.6L15.542 54.6525L20.0167 35.8936L5.37042 23.3475L24.5939 21.8064L32 4Z",fill:"#EEEEF0"}))}),zz=Object.defineProperty,Wz=Object.defineProperties,Hz=Object.getOwnPropertyDescriptors,A4=Object.getOwnPropertySymbols,Tb=Object.prototype.hasOwnProperty,Pb=Object.prototype.propertyIsEnumerable,Lb=(e,t,n)=>t in e?zz(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,W6=(e,t)=>{for(var n in t||(t={}))Tb.call(t,n)&&Lb(e,n,t[n]);if(A4)for(var n of A4(t))Pb.call(t,n)&&Lb(e,n,t[n]);return e},Gz=(e,t)=>Wz(e,Hz(t)),Zz=(e,t)=>{var n={};for(var a in e)Tb.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&A4)for(var a of A4(e))t.indexOf(a)<0&&Pb.call(e,a)&&(n[a]=e[a]);return n},Kz=(0,l.forwardRef)((e,t)=>{var n=e,{size:a,spin:i,style:c}=n,d=Zz(n,["size","spin","style"]);const p=W6(W6({width:a||"var(--x-icon-size, 1em)",height:a||"var(--x-icon-size, 1em)",animation:i?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),c);return l.createElement("svg",Gz(W6({ref:t,style:p},d),{width:"64",height:"64",viewBox:"0 0 64 64",fill:"none",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"}),l.createElement("path",{d:"M38.9443 21.998L39.0615 22.2803L39.3662 22.3047L57.3916 23.749L43.6582 35.5137L43.4258 35.7129L43.4971 36.0098L47.6924 53.5986L32.2607 44.1729L32 44.0137L31.7393 44.1729L16.3066 53.5986L20.5029 36.0098L20.5742 35.7129L20.3418 35.5137L6.60742 23.749L24.6338 22.3047L24.9385 22.2803L25.0557 21.998L32 5.30273L38.9443 21.998Z",fill:"url(#pattern0_2914_1248)",stroke:"#8B8C8F"}),l.createElement("defs",null,l.createElement("pattern",{id:"pattern0_2914_1248",patternContentUnits:"objectBoundingBox",width:"1",height:"1"},l.createElement("use",{xlinkHref:"#image0_2914_1248",transform:"scale(0.00390625)"})),l.createElement("image",{id:"image0_2914_1248",width:"256",height:"256",preserveAspectRatio:"none",xlinkHref:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAAEACAYAAABccqhmAAAAAXNSR0IArs4c6QAACixJREFUeF7t3TFSJEAMQ9HhBNz/jESkJLuH+EGXym9zirKxvmUx9H79/f39+4R/v7+/4as/n+/v7/T1vr/+lwG6Pn9fAABARUAAvA1gAOBAiv4/AAAAaYCuWzD1c2BFQBXAHAAHUOaPAxjPwAAAAAAgdKBu4NcOEAAAIIz/hwPgALZDkNcE9v1lAIXA1YFwABxAmT8OgAPgAIqCOAAOoMwPBzBOYAAAAAAIHagEJEACDOM3fwLJAGQAZf7nBXB9AQAAAABA6MC6AwUAAAjj73MAACCESwK6bkHV/zaD+fr5+UnvAfgBvv0B6r/+lw0EABxMmR8PuoyfkAAAAAAQOrDuwAAAAML4e9INAMYt0HqKuz6A+v/2o/QcAAfAAYQOrAMYAAAgjL8TAACcAElALPBbC3y9/xwAB5AAtr4BAcAHgQggdAAAtj+IxAFwAEH+MoB1AAIAAABA6AAACAHD+Phruus3+Ov6OQAOIAFsfQO+FuDr7w8AAAAAoQPrAAQAAAjjLwScB4D/Hnz71zivLaTvv/1BJk+CCTGTAwAAAEgDtG6hCGBbANfnjwPgABLAAXAbgAAAAAAQOrAOQAAAgDD+PsgEAH6NlgR0/QZV/9vfQnEAHEAC2PoGvA4gAAAAAAgdWAcgAABAGH8ZAADIAJKArltQ9csAkoDWCUwAbwVwvf9OACcAAIcOrC8gAACAMP4yAACQASQBXbeg6n97AnEAHEAC2PoGvA4gD4JwMAkA1wW0Xj8AAAAAhA4AAAsdxkeI5oR4++fEHAAHkAC2vgGvAwgAAAAAQgfWAQgAABDG36vAACADSAK6bkHVLwNIAlonMAG8FcD1/jsBnAAAHDqwvoAAAADC+MsAAEAGkAR03YKq/+0JxAFwAAlg6xvwOoAAAAAAIHRgHYAAAABh/GUAACADSAK6bkHVLwNIAlonMAG8FcD1/nsQhINJAL4uoPX6AQAAACB0AACEaGF8hGhOOG8CJgGtE5gA3grgev+dAE4AAA4dWF9AAAAAYfw9aQYAMoAkoOsWVP1vTyAOgANIAFvfgNcBBAAAAAChA+sABAAACOMvAwAAGUAS0HULqn4ZQBLQOoEJ4K0ArvffCeAEAODQgfUFBAAAEMZfBgAAMoAkoOsWVP1vTyAOgANIAFvfgNcB5EkwDiYB4LqA1usHAAAAgNABAGChw/gI0ZwQb59E4wA4gASw9Q14HUAAAAAAEDqwDkAAAIAw/p40AwAZQBLQdQuqfhlAEtA6gQngrQCu998J4AQA4NCB9QUEAAAQxl8GAAAygCSg6xZU/W9PIA6AA0gAW9+A1wEEAAAAAKED6wAEAAAI4y8DAAAZQBLQdQuqfhlAEtA6gQngrQCu99+DIBxMAvB1Aa3XDwAAAAChAwAgRAvjI0RzwnkTMAloncAE8FYA1/vvBHACAHDowPoCAgAACOPvSTMAkAEkAV23oOp/ewJxABxAAtj6BrwOIAAAAAAIHVgHIAAAQBh/GQAAyACSgK5bUPXLAJKA1glMAG8FcL3/TgAnAACHDqwvIAAAgDD+MgAAkAEkAV23oOp/ewJxABxAAtj6BrwOIE+CcTAJANcFtF4/AAAAAIQOAAALHcZHiOaEePskGgfAASSArW/A6wACAAAAgNCBdQACAACE8fekGQDIAJKArltQ9csAkoDWCUwAbwVwvf9OACcAAIcOrC8gAACAMP4yAACQASQBXbeg6n97AnEAHEAC2PoGvA4gAAAAAAgdWAcgAABAGH8ZAADIAJKArltQ9csAkoDWCUwAbwVwvf8eBOFgEoCvC2i9fgAAAAAIHQAAIVoYHyGaE86bgElA6wQmgLcCuN5/J4ATAIBDB9YXEAAAQBh/T5oBgAwgCei6BVX/2xOIA+AAEsDWN+B1AAEAAABA6MA6AAEAAML4ywAAQAaQBHTdgqpfBpAEtE5gAngrgOv9dwI4AQA4dGB9AQEAAITxlwEAgAwgCei6BVX/2xOIA+AAEsDWN+B1AHkSjINJALguoPX6AQAAACB0AABY6DA+QjQnxNsn0TgADiABbH0DXgcQAAAAAIQOrAMQAAAgjL8nzQBABpAEdN2Cql8GkAS0TmACeCuA6/13AjgBADh0YH0BAQAAhPGXAQCADCAJ6LoFVf/bE4gD4AASwNY34HUAAQAAAEDowDoAAQAAwvjLAABABpAEdN2Cql8GkAS0TmACeCuA6/33IAgHkwB8XUDr9QMAAABA6AAACNHC+AjRnHDeBEwCWicwAbwVwPX+OwGcAAAcOrC+gAAAAML4e9IMAGQASUDXLaj6355AHAAHkAC2vgGvAwgAAAAAQgfWAQgAABDGXwYAADKAJKDrFlT9MoAkoHUCE8BbAVzvvxPACQDAoQPrCwgAACCMvwwAAGQASUDXLaj6355AHAAHkAC2vgGvA8iTYBxMAsB1Aa3XDwAAAAChAwDAQofxEaI5Id4+icYBcAAJYOsb8DqAAAAAACB0YB2AAAAAYfw9aQYAMoAkoOsWVP0ygCSgdQITwFsBXO+/E8AJAMChA+sLCAAAIIy/DAAAZABJQNctqPrfnkAcAAeQALa+Aa8DCAAAAABCB9YBCAAAEMZfBgAAMoAkoOsWVP0ygCSgdQITwFsBXO+/B0E4mATg6wJarx8AAAAAQgcAQIgWxkeI5oTzJmAS0DqBCeCtAK733wngBADg0IH1BQQAABDG35NmACADSAK6bkHV//YE4gA4gASw9Q14HUAAAAAAEDqwDkAAAIAw/jIAAJABJAFdt6DqlwEkAa0TmADeCuB6/50ATgAADh1YX0AAAABh/GUAACADSAK6bkHV//YE4gA4gASw9Q14HUCeBONgEgCuC2i9fgAAAAAIHQAAFjqMjxDNCfH2STQOgANIAFvfgNcBBAAAAAChA+sABAAACOPvSTMAkAEkAV23oOqXASQBrROYAN4K4Hr/nQBOAAAOHVhfQAAAAGH8ZQAAIANIArpuQdX/9gTiADiABLD1DXgdQAAAAAAQOrAOQAAAgDD+MgAAkAEkAV23oOqXASQBrROYAN4K4Hr/PQjCwSQAXxfQev0AAAAAEDoAAEK0MD5CNCecNwGTgNYJTABvBXC9/04AJwAAhw6sLyAAAIAw/p40AwAZQBLQdQuq/rcnEAfAASSArW/A6wACAAAAgNCBdQACAACE8ZcBAIAMIAnougVVvwwgCWidwATwVgDX++8EcAIAcOjA+gICAAAI4y8DAAAZQBLQdQuq/rcnEAfAASSArW/A6wDyJBgHkwBwXUDr9QMAAABA6AAAsNBhfIRoToi3T6JxABxAAtj6BrwOIAAAAAAIHVgHIAAAQBh/T5oBgAwgCei6BVW/DCAJaJ3ABPBWANf77wRwAgBw6MD6AgIAAAjjLwMAABlAEtB1C6r+tycQB8ABJICtb8DrAAIAAACA0IF1AAIAAITxlwEAgAwgCei6BVW/DCAJaJ3ABPBWANf7/x/aVlkHhH7qqQAAAABJRU5ErkJggg=="})))}),Yz=Object.defineProperty,Xz=Object.defineProperties,Qz=Object.getOwnPropertyDescriptors,k4=Object.getOwnPropertySymbols,Nb=Object.prototype.hasOwnProperty,jb=Object.prototype.propertyIsEnumerable,Db=(e,t,n)=>t in e?Yz(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,H6=(e,t)=>{for(var n in t||(t={}))Nb.call(t,n)&&Db(e,n,t[n]);if(k4)for(var n of k4(t))jb.call(t,n)&&Db(e,n,t[n]);return e},Jz=(e,t)=>Xz(e,Qz(t)),qz=(e,t)=>{var n={};for(var a in e)Nb.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&k4)for(var a of k4(e))t.indexOf(a)<0&&jb.call(e,a)&&(n[a]=e[a]);return n},$z=(0,l.forwardRef)((e,t)=>{var n=e,{size:a,spin:i,style:c}=n,d=qz(n,["size","spin","style"]);const p=H6(H6({width:a||"var(--x-icon-size, 1em)",height:a||"var(--x-icon-size, 1em)",animation:i?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),c);return l.createElement("svg",Jz(H6({ref:t,style:p},d),{width:"64",height:"64",viewBox:"0 0 64 64",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),l.createElement("path",{d:"M32 4L39.4061 21.8064L58.6296 23.3475L43.9833 35.8936L48.458 54.6525L32 44.6L15.542 54.6525L20.0167 35.8936L5.37042 23.3475L24.5939 21.8064L32 4Z",fill:"white"}),l.createElement("path",{d:"M16.1553 53.8066L16.252 53.8301L16.709 53.9385L15.542 54.6523L15.8584 53.3213L16.1553 53.8066ZM48.458 54.6523L47.29 53.9385L47.748 53.8301L47.8438 53.8066L47.8955 53.7236L48.1406 53.3213L48.458 54.6523ZM19.6553 52.1387L18.0098 53.1436L17.4893 52.291L19.1357 51.2861L19.6553 52.1387ZM46.5107 52.291L45.9893 53.1436L44.3438 52.1387L44.8643 51.2861L46.5107 52.291ZM16.6611 49.9629L17.6338 50.1943L17.1855 52.0703L16.6992 51.9541L16.2129 51.8389L16.6602 49.9619L16.6611 49.9629ZM47.7861 51.8389L47.3008 51.9551L47.2998 51.9541L46.8145 52.0703L46.3662 50.1943L47.3389 49.9629L47.7861 51.8389ZM22.9473 50.1279L21.3018 51.1328L20.7812 50.2803L22.4268 49.2754L22.9473 50.1279ZM43.2188 50.2803L42.958 50.707L42.6973 51.1328L41.0518 50.1279L41.5732 49.2754L43.2188 50.2803ZM25.7188 47.2646L26.2393 48.1182L24.5928 49.123L24.0723 48.2705L25.7188 47.2646ZM39.9277 48.2705L39.4062 49.123L37.7598 48.1182L38.2812 47.2646L39.9277 48.2705ZM17.5557 46.2109L18.5283 46.4434L18.0811 48.3193L17.1084 48.0869L17.1074 48.0859L17.5547 46.21L17.5557 46.2109ZM46.8916 48.0859L45.9189 48.3193L45.4717 46.4434L46.4443 46.2109L46.8916 48.0859ZM29.5312 46.1074L27.8848 47.1123L27.3643 46.2598L29.0098 45.2549L29.5312 46.1074ZM36.6357 46.2598L36.1143 47.1123L34.4678 46.1074L34.9902 45.2549L36.6357 46.2598ZM32.5215 43.7471L33.3438 44.249L33.083 44.6748L33.084 44.6758L32.8701 45.0264L32.8232 45.1016L32 44.5996L31.1758 45.1016L30.916 44.6758L30.6562 44.249L31.4785 43.7471L32 43.4277L32.5215 43.7471ZM18.4502 42.459L19.4229 42.6914L18.9756 44.5674L18.0029 44.335L18.4502 42.459ZM45.5488 42.459L45.9961 44.335L45.0244 44.5674L44.5771 42.6914L45.5488 42.459ZM19.3457 38.707L20.3184 38.9395L19.8711 40.8154L18.8984 40.583L18.8975 40.582L19.3447 38.7061L19.3457 38.707ZM45.1016 40.582L44.1289 40.8154L43.6816 38.9395L44.6543 38.707L45.1016 40.582ZM21.1309 35.5312L20.7656 37.0635L19.793 36.832L19.792 36.8311L20.0166 35.8936L19.2842 35.2656L19.9346 34.5068L21.1309 35.5312ZM44.7148 35.2656L43.9834 35.8936L44.207 36.8311L43.2344 37.0635L42.8691 35.5312L44.0654 34.5068L44.7148 35.2656ZM18.4707 33.252L17.8193 34.0107L16.3545 32.7568L17.0059 31.998L18.4707 33.252ZM47.6445 32.7568L46.1797 34.0107L45.5293 33.252L46.9941 31.998L47.6445 32.7568ZM15.541 30.7432L14.8906 31.502L13.4258 30.2471L14.0762 29.4883L15.541 30.7432ZM50.5732 30.2471L49.1084 31.502L48.459 30.7432L49.9238 29.4883L50.5732 30.2471ZM12.6113 28.2334L11.96 28.9932L10.4961 27.7383L10.8223 27.3594L11.1475 26.9795L12.6113 28.2334ZM52.8525 26.9795L53.5029 27.7383L52.0391 28.9932L51.3887 28.2334L52.8525 26.9795ZM9.68262 25.7246L9.03125 26.4844L7.56641 25.2295L8.21777 24.4697L9.68262 25.7246ZM56.4326 25.2295L54.9678 26.4844L54.3174 25.7246L55.7822 24.4697L56.4326 25.2295ZM6.36328 23.6689L6.4082 24.2373L5.37012 23.3477L6.7334 23.2383L6.36328 23.6689ZM58.6299 23.3477L57.5908 24.2373L57.6357 23.6689L57.2656 23.2383L58.6299 23.3477ZM10.2559 23.959L8.33398 24.1133L8.25391 23.1162L10.1768 22.9619L10.2559 23.959ZM55.7451 23.1162L55.666 24.1133L53.7441 23.959L53.8223 22.9619L55.7451 23.1162ZM14.0205 22.6543L14.1006 23.6504L12.1787 23.8047L12.0986 22.8086L12.0977 22.8076L14.0195 22.6533L14.0205 22.6543ZM51.9014 22.8076L51.8213 23.8047L49.8994 23.6504L49.9795 22.6543L51.9014 22.8076ZM17.9453 23.3428L16.0234 23.4971L15.9434 22.5L17.8652 22.3457L17.9453 23.3428ZM48.0557 22.5L47.9766 23.4971L46.0547 23.3428L46.1338 22.3457L48.0557 22.5ZM21.79 23.0342L19.8682 23.1885L19.7881 22.1914L21.71 22.0371L21.79 23.0342ZM44.2109 22.1914L44.1318 23.1885L42.21 23.0342L42.2891 22.0371L44.2109 22.1914ZM24.9639 20.916L25.8877 21.2998L25.5176 22.1904L25.2822 22.7539L23.7129 22.8799L23.6328 21.8838L23.6318 21.8828L24.5938 21.8066L24.9639 20.916ZM39.0352 20.916L39.4062 21.8066L40.3672 21.8828L40.2871 22.8799L38.7178 22.7539L38.4824 22.1904L38.1123 21.2998L39.0352 20.916ZM26.4453 17.3545L27.3691 17.7393L26.6279 19.5195L25.7051 19.1357L25.7041 19.1348L26.4453 17.3545ZM37.5537 17.3545L38.2949 19.1348L37.3721 19.5195L36.6309 17.7393L37.5537 17.3545ZM27.9268 13.7939L28.3887 13.9854L28.8496 14.1777L28.1094 15.958L27.6475 15.7656L27.1865 15.5742L27.1855 15.5732L27.9258 13.793L27.9268 13.7939ZM36.8135 15.5732L36.3525 15.7666L36.3516 15.7656L35.8906 15.958L35.1504 14.1777L35.6113 13.9854L36.0732 13.7939L36.8135 15.5732ZM29.4082 10.2324L29.8691 10.4238L30.3311 10.6162L29.5908 12.3965L29.1289 12.2041L28.667 12.0127L29.4072 10.2314L29.4082 10.2324ZM35.332 12.0127L34.8711 12.2051L34.8701 12.2041L34.4092 12.3965L33.6689 10.6162L34.5918 10.2324L35.332 12.0127ZM30.8887 6.6709L31.8125 7.05469L31.0723 8.83594L30.1484 8.45117L30.8887 6.6709ZM33.1104 6.6709L33.8506 8.45117L32.9277 8.83594L32.1875 7.05469L33.1104 6.6709ZM32.5244 5.2627L32 5.04395L31.4746 5.2627L32 4L32.5244 5.2627Z",fill:"#8B8C8F"}))}),eW=Object.defineProperty,tW=Object.defineProperties,nW=Object.getOwnPropertyDescriptors,M4=Object.getOwnPropertySymbols,Rb=Object.prototype.hasOwnProperty,Bb=Object.prototype.propertyIsEnumerable,Ub=(e,t,n)=>t in e?eW(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,G6=(e,t)=>{for(var n in t||(t={}))Rb.call(t,n)&&Ub(e,n,t[n]);if(M4)for(var n of M4(t))Bb.call(t,n)&&Ub(e,n,t[n]);return e},oW=(e,t)=>tW(e,nW(t)),aW=(e,t)=>{var n={};for(var a in e)Rb.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&M4)for(var a of M4(e))t.indexOf(a)<0&&Bb.call(e,a)&&(n[a]=e[a]);return n},Ob=(0,l.forwardRef)((e,t)=>{var n=e,{size:a,spin:i,style:c}=n,d=aW(n,["size","spin","style"]);const p=G6(G6({width:a||"var(--x-icon-size, 1em)",height:a||"var(--x-icon-size, 1em)",animation:i?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),c);return l.createElement("svg",oW(G6({ref:t,style:p},d),{width:"64",height:"64",viewBox:"0 0 64 64",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),l.createElement("path",{d:"M46.7119 57.4805L17.2891 57.4805L2.57715 32L17.2891 6.51953L46.7119 6.51953L61.4238 32L46.7119 57.4805Z",fill:"white",stroke:"#8B8C8F"}))}),rW=Object.defineProperty,iW=Object.defineProperties,sW=Object.getOwnPropertyDescriptors,E4=Object.getOwnPropertySymbols,Fb=Object.prototype.hasOwnProperty,Vb=Object.prototype.propertyIsEnumerable,zb=(e,t,n)=>t in e?rW(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Z6=(e,t)=>{for(var n in t||(t={}))Fb.call(t,n)&&zb(e,n,t[n]);if(E4)for(var n of E4(t))Vb.call(t,n)&&zb(e,n,t[n]);return e},lW=(e,t)=>iW(e,sW(t)),cW=(e,t)=>{var n={};for(var a in e)Fb.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&E4)for(var a of E4(e))t.indexOf(a)<0&&Vb.call(e,a)&&(n[a]=e[a]);return n},dW=(0,l.forwardRef)((e,t)=>{var n=e,{size:a,spin:i,style:c}=n,d=cW(n,["size","spin","style"]);const p=Z6(Z6({width:a||"var(--x-icon-size, 1em)",height:a||"var(--x-icon-size, 1em)",animation:i?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),c);return l.createElement("svg",lW(Z6({ref:t,style:p},d),{width:"64",height:"64",viewBox:"0 0 64 64",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),l.createElement("path",{d:"M62 32L47 57.9808L17 57.9808L2.00001 32L17 6.01924L47 6.01924L62 32Z",fill:"#EEEEF0"}))}),pW=Object.defineProperty,uW=Object.defineProperties,hW=Object.getOwnPropertyDescriptors,I4=Object.getOwnPropertySymbols,Wb=Object.prototype.hasOwnProperty,Hb=Object.prototype.propertyIsEnumerable,Gb=(e,t,n)=>t in e?pW(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,K6=(e,t)=>{for(var n in t||(t={}))Wb.call(t,n)&&Gb(e,n,t[n]);if(I4)for(var n of I4(t))Hb.call(t,n)&&Gb(e,n,t[n]);return e},mW=(e,t)=>uW(e,hW(t)),fW=(e,t)=>{var n={};for(var a in e)Wb.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&I4)for(var a of I4(e))t.indexOf(a)<0&&Hb.call(e,a)&&(n[a]=e[a]);return n},gW=(0,l.forwardRef)((e,t)=>{var n=e,{size:a,spin:i,style:c}=n,d=fW(n,["size","spin","style"]);const p=K6(K6({width:a||"var(--x-icon-size, 1em)",height:a||"var(--x-icon-size, 1em)",animation:i?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),c);return l.createElement("svg",mW(K6({ref:t,style:p},d),{width:"64",height:"64",viewBox:"0 0 64 64",fill:"none",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"}),l.createElement("path",{d:"M46.7119 57.4805L17.2891 57.4805L2.57715 32L17.2891 6.51953L46.7119 6.51953L61.4238 32L46.7119 57.4805Z",fill:"url(#pattern0_2914_1254)",stroke:"#8B8C8F"}),l.createElement("defs",null,l.createElement("pattern",{id:"pattern0_2914_1254",patternContentUnits:"objectBoundingBox",width:"1",height:"1"},l.createElement("use",{xlinkHref:"#image0_2914_1254",transform:"scale(0.00390625)"})),l.createElement("image",{id:"image0_2914_1254",width:"256",height:"256",preserveAspectRatio:"none",xlinkHref:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAAEACAYAAABccqhmAAAAAXNSR0IArs4c6QAACixJREFUeF7t3TFSJEAMQ9HhBNz/jESkJLuH+EGXym9zirKxvmUx9H79/f39+4R/v7+/4as/n+/v7/T1vr/+lwG6Pn9fAABARUAAvA1gAOBAiv4/AAAAaYCuWzD1c2BFQBXAHAAHUOaPAxjPwAAAAAAgdKBu4NcOEAAAIIz/hwPgALZDkNcE9v1lAIXA1YFwABxAmT8OgAPgAIqCOAAOoMwPBzBOYAAAAAAIHagEJEACDOM3fwLJAGQAZf7nBXB9AQAAAABA6MC6AwUAAAjj73MAACCESwK6bkHV/zaD+fr5+UnvAfgBvv0B6r/+lw0EABxMmR8PuoyfkAAAAAAQOrDuwAAAAML4e9INAMYt0HqKuz6A+v/2o/QcAAfAAYQOrAMYAAAgjL8TAACcAElALPBbC3y9/xwAB5AAtr4BAcAHgQggdAAAtj+IxAFwAEH+MoB1AAIAAABA6AAACAHD+Phruus3+Ov6OQAOIAFsfQO+FuDr7w8AAAAAoQPrAAQAAAjjLwScB4D/Hnz71zivLaTvv/1BJk+CCTGTAwAAAEgDtG6hCGBbANfnjwPgABLAAXAbgAAAAAAQOrAOQAAAgDD+PsgEAH6NlgR0/QZV/9vfQnEAHEAC2PoGvA4gAAAAAAgdWAcgAABAGH8ZAADIAJKArltQ9csAkoDWCUwAbwVwvf9OACcAAIcOrC8gAACAMP4yAACQASQBXbeg6n97AnEAHEAC2PoGvA4gD4JwMAkA1wW0Xj8AAAAAhA4AAAsdxkeI5oR4++fEHAAHkAC2vgGvAwgAAAAAQgfWAQgAABDG36vAACADSAK6bkHVLwNIAlonMAG8FcD1/jsBnAAAHDqwvoAAAADC+MsAAEAGkAR03YKq/+0JxAFwAAlg6xvwOoAAAAAAIHRgHYAAAABh/GUAACADSAK6bkHVLwNIAlonMAG8FcD1/nsQhINJAL4uoPX6AQAAACB0AACEaGF8hGhOOG8CJgGtE5gA3grgev+dAE4AAA4dWF9AAAAAYfw9aQYAMoAkoOsWVP1vTyAOgANIAFvfgNcBBAAAAAChA+sABAAACOMvAwAAGUAS0HULqn4ZQBLQOoEJ4K0ArvffCeAEAODQgfUFBAAAEMZfBgAAMoAkoOsWVP1vTyAOgANIAFvfgNcB5EkwDiYB4LqA1usHAAAAgNABAGChw/gI0ZwQb59E4wA4gASw9Q14HUAAAAAAEDqwDkAAAIAw/p40AwAZQBLQdQuqfhlAEtA6gQngrQCu998J4AQA4NCB9QUEAAAQxl8GAAAygCSg6xZU/W9PIA6AA0gAW9+A1wEEAAAAAKED6wAEAAAI4y8DAAAZQBLQdQuqfhlAEtA6gQngrQCu99+DIBxMAvB1Aa3XDwAAAAChAwAgRAvjI0RzwnkTMAloncAE8FYA1/vvBHACAHDowPoCAgAACOPvSTMAkAEkAV23oOp/ewJxABxAAtj6BrwOIAAAAAAIHVgHIAAAQBh/GQAAyACSgK5bUPXLAJKA1glMAG8FcL3/TgAnAACHDqwvIAAAgDD+MgAAkAEkAV23oOp/ewJxABxAAtj6BrwOIE+CcTAJANcFtF4/AAAAAIQOAAALHcZHiOaEePskGgfAASSArW/A6wACAAAAgNCBdQACAACE8fekGQDIAJKArltQ9csAkoDWCUwAbwVwvf9OACcAAIcOrC8gAACAMP4yAACQASQBXbeg6n97AnEAHEAC2PoGvA4gAAAAAAgdWAcgAABAGH8ZAADIAJKArltQ9csAkoDWCUwAbwVwvf8eBOFgEoCvC2i9fgAAAAAIHQAAIVoYHyGaE86bgElA6wQmgLcCuN5/J4ATAIBDB9YXEAAAQBh/T5oBgAwgCei6BVX/2xOIA+AAEsDWN+B1AAEAAABA6MA6AAEAAML4ywAAQAaQBHTdgqpfBpAEtE5gAngrgOv9dwI4AQA4dGB9AQEAAITxlwEAgAwgCei6BVX/2xOIA+AAEsDWN+B1AHkSjINJALguoPX6AQAAACB0AABY6DA+QjQnxNsn0TgADiABbH0DXgcQAAAAAIQOrAMQAAAgjL8nzQBABpAEdN2Cql8GkAS0TmACeCuA6/13AjgBADh0YH0BAQAAhPGXAQCADCAJ6LoFVf/bE4gD4AASwNY34HUAAQAAAEDowDoAAQAAwvjLAABABpAEdN2Cql8GkAS0TmACeCuA6/33IAgHkwB8XUDr9QMAAABA6AAACNHC+AjRnHDeBEwCWicwAbwVwPX+OwGcAAAcOrC+gAAAAML4e9IMAGQASUDXLaj6355AHAAHkAC2vgGvAwgAAAAAQgfWAQgAABDGXwYAADKAJKDrFlT9MoAkoHUCE8BbAVzvvxPACQDAoQPrCwgAACCMvwwAAGQASUDXLaj6355AHAAHkAC2vgGvA8iTYBxMAsB1Aa3XDwAAAAChAwDAQofxEaI5Id4+icYBcAAJYOsb8DqAAAAAACB0YB2AAAAAYfw9aQYAMoAkoOsWVP0ygCSgdQITwFsBXO+/E8AJAMChA+sLCAAAIIy/DAAAZABJQNctqPrfnkAcAAeQALa+Aa8DCAAAAABCB9YBCAAAEMZfBgAAMoAkoOsWVP0ygCSgdQITwFsBXO+/B0E4mATg6wJarx8AAAAAQgcAQIgWxkeI5oTzJmAS0DqBCeCtAK733wngBADg0IH1BQQAABDG35NmACADSAK6bkHV//YE4gA4gASw9Q14HUAAAAAAEDqwDkAAAIAw/jIAAJABJAFdt6DqlwEkAa0TmADeCuB6/50ATgAADh1YX0AAAABh/GUAACADSAK6bkHV//YE4gA4gASw9Q14HUCeBONgEgCuC2i9fgAAAAAIHQAAFjqMjxDNCfH2STQOgANIAFvfgNcBBAAAAAChA+sABAAACOPvSTMAkAEkAV23oOqXASQBrROYAN4K4Hr/nQBOAAAOHVhfQAAAAGH8ZQAAIANIArpuQdX/9gTiADiABLD1DXgdQAAAAAAQOrAOQAAAgDD+MgAAkAEkAV23oOqXASQBrROYAN4K4Hr/PQjCwSQAXxfQev0AAAAAEDoAAEK0MD5CNCecNwGTgNYJTABvBXC9/04AJwAAhw6sLyAAAIAw/p40AwAZQBLQdQuq/rcnEAfAASSArW/A6wACAAAAgNCBdQACAACE8ZcBAIAMIAnougVVvwwgCWidwATwVgDX++8EcAIAcOjA+gICAAAI4y8DAAAZQBLQdQuq/rcnEAfAASSArW/A6wDyJBgHkwBwXUDr9QMAAABA6AAAsNBhfIRoToi3T6JxABxAAtj6BrwOIAAAAAAIHVgHIAAAQBh/T5oBgAwgCei6BVW/DCAJaJ3ABPBWANf77wRwAgBw6MD6AgIAAAjjLwMAABlAEtB1C6r+tycQB8ABJICtb8DrAAIAAACA0IF1AAIAAITxlwEAgAwgCei6BVW/DCAJaJ3ABPBWANf7/x/aVlkHhH7qqQAAAABJRU5ErkJggg=="})))}),yW=Object.defineProperty,xW=Object.defineProperties,vW=Object.getOwnPropertyDescriptors,_4=Object.getOwnPropertySymbols,Zb=Object.prototype.hasOwnProperty,Kb=Object.prototype.propertyIsEnumerable,Yb=(e,t,n)=>t in e?yW(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Y6=(e,t)=>{for(var n in t||(t={}))Zb.call(t,n)&&Yb(e,n,t[n]);if(_4)for(var n of _4(t))Kb.call(t,n)&&Yb(e,n,t[n]);return e},bW=(e,t)=>xW(e,vW(t)),wW=(e,t)=>{var n={};for(var a in e)Zb.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&_4)for(var a of _4(e))t.indexOf(a)<0&&Kb.call(e,a)&&(n[a]=e[a]);return n},CW=(0,l.forwardRef)((e,t)=>{var n=e,{size:a,spin:i,style:c}=n,d=wW(n,["size","spin","style"]);const p=Y6(Y6({width:a||"var(--x-icon-size, 1em)",height:a||"var(--x-icon-size, 1em)",animation:i?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),c);return l.createElement("svg",bW(Y6({ref:t,style:p},d),{width:"64",height:"64",viewBox:"0 0 64 64",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),l.createElement("path",{d:"M62 32L47 57.9807L17 57.9807L2.00001 32L17 6.01922L47 6.01923L62 32Z",fill:"white"}),l.createElement("path",{d:"M2.53613 32.9277L2 32L2.53613 31.0713L2.53613 31.0723L3.40137 31.5723L3.15527 32L3.40137 32.4277L2.53613 32.9277ZM4.47363 29.7168L3.60742 29.2168L3.60742 29.2158L4.67969 27.3603L5.54492 27.8603L4.47363 29.7168ZM4.67969 36.6387L3.60742 34.7832L4.47363 34.2832L5.54492 36.1396L4.67969 36.6387ZM6.61621 26.0049L5.75 25.5049L6.82129 23.6484L7.6875 24.1494L6.61621 26.0049ZM6.82129 40.3506L5.75 38.4951L6.61621 37.9951L7.6875 39.8506L6.82129 40.3506ZM8.75879 22.293L7.89355 21.793L8.96484 19.9375L9.83008 20.4375L8.75879 22.293ZM8.96484 44.0615L7.89355 42.2061L8.75879 41.707L9.83008 43.5625L8.96484 44.0615ZM10.9014 18.582L10.0361 18.082L10.0361 18.0811L11.1084 16.2256L11.9736 16.7256L10.9014 18.582ZM11.1084 47.7734L10.0361 45.918L10.9014 45.418L11.9736 47.2744L11.1084 47.7734ZM13.0449 14.8701L12.1797 14.3701L13.25 12.5146L14.1162 13.0146L13.0449 14.8701ZM13.25 51.4853L12.1797 49.6289L13.0449 49.1299L14.1162 50.9853L13.25 51.4853ZM15.1875 11.1582L14.3223 10.6582L15.3936 8.80273L16.2588 9.30273L15.1875 11.1582ZM15.3936 55.1963L14.3223 53.3408L15.1875 52.8418L16.2588 54.6973L15.3936 55.1963ZM18.0713 7.01953L17.5781 7.01953L17.3301 7.44726L16.4648 6.94726L17 6.01953L18.0713 6.01953L18.0713 7.01953ZM18.0713 57.9805L17 57.9805L16.4648 57.0518L17.3301 56.5527L17.5781 56.9805L18.0713 56.9805L18.0713 57.9805ZM22.3574 7.01953L20.2139 7.01953L20.2139 6.01953L22.3574 6.01953L22.3574 7.01953ZM22.3574 57.9805L20.2139 57.9805L20.2139 56.9805L22.3574 56.9805L22.3574 57.9805ZM26.6426 7.01953L24.5 7.01953L24.5 6.01953L26.6426 6.01953L26.6426 7.01953ZM26.6426 57.9805L24.5 57.9805L24.5 56.9805L26.6426 56.9805L26.6426 57.9805ZM30.9287 7.01953L28.7861 7.01953L28.7861 6.01953L30.9287 6.01953L30.9287 7.01953ZM30.9287 57.9805L28.7861 57.9805L28.7861 56.9805L30.9287 56.9805L30.9287 57.9805ZM35.2139 7.01953L33.0713 7.01953L33.0713 6.01953L35.2139 6.01953L35.2139 7.01953ZM35.2139 57.9805L33.0713 57.9805L33.0713 56.9805L35.2139 56.9805L35.2139 57.9805ZM39.5 7.01953L37.3574 7.01953L37.3574 6.01953L39.5 6.01953L39.5 7.01953ZM39.5 57.9805L37.3574 57.9805L37.3574 56.9805L39.5 56.9805L39.5 57.9805ZM43.7861 7.01953L41.6426 7.01953L41.6426 6.01953L43.7861 6.01953L43.7861 7.01953ZM43.7861 57.9805L41.6426 57.9805L41.6426 56.9805L43.7861 56.9805L43.7861 57.9805ZM46.6699 7.44726L46.4229 7.01953L45.9287 7.01953L45.9287 6.01953L47 6.01953L47.5361 6.94726L46.6699 7.44726ZM47 57.9805L45.9287 57.9805L45.9287 56.9805L46.4228 56.9805L46.6699 56.5527L47.5361 57.0518L47 57.9805ZM48.8125 11.1582L47.7412 9.30273L48.6074 8.80273L49.6787 10.6582L48.8125 11.1582ZM48.6074 55.1963L47.7412 54.6973L48.8125 52.8418L49.6787 53.3408L48.6074 55.1963ZM51.8213 14.3701L50.9551 14.8701L49.8838 13.0146L50.75 12.5146L51.8213 14.3701ZM51.8213 49.6289L50.75 51.4854L49.8838 50.9854L50.9551 49.1299L51.8213 49.6289ZM53.9639 18.082L53.0986 18.582L52.0264 16.7256L52.8926 16.2256L53.9648 18.0811L53.9639 18.082ZM52.8926 47.7734L52.8926 47.7744L52.0264 47.2744L53.0986 45.418L53.9639 45.918L53.9648 45.918L52.8926 47.7734ZM55.2412 22.293L54.1699 20.4375L55.0361 19.9375L56.1074 21.793L55.2412 22.293ZM55.0361 44.0615L54.1699 43.5625L55.2412 41.707L56.1074 42.2061L55.0361 44.0615ZM58.25 25.5049L57.3838 26.0049L56.3125 24.1494L57.1787 23.6494L57.1797 23.6484L58.25 25.5049ZM57.1797 40.3506L57.1787 40.3506L56.3125 39.8506L57.3838 37.9951L58.25 38.4951L57.1797 40.3506ZM60.3926 29.2168L59.5264 29.7168L58.4551 27.8604L59.3213 27.3604L60.3936 29.2158L60.3926 29.2168ZM59.3213 36.6387L59.3213 36.6396L58.4551 36.1396L59.5264 34.2832L60.3926 34.7832L60.3936 34.7832L59.3213 36.6387ZM61.4648 32.9277L61.4639 32.9277L60.5986 32.4277L60.8457 32L60.5986 31.5723L61.4639 31.0723L61.4648 31.0713L62 32L61.4648 32.9277Z",fill:"#8B8C8F"}))}),SW=s(80077);const AW=M.Ay.div.withConfig({displayName:"styles__StyledStyleTypeContent",componentId:"sc-vewiek-0"})(["width:240px;display:flex;.header{width:100%;height:40px;border-bottom:1px solid ",";display:flex;justify-content:space-between;align-items:center;padding-right:10px;.slide-nav{height:40px;padding:0 10px;.nav-item{margin-right:4px;&.active{font-weight:600;}}}.svg-icon{",";color:",";}}.bottom-content{width:100%;.default-content{width:100%;padding:16px;display:grid;grid-template-columns:repeat(auto-fill,92px);grid-column-gap:22px;grid-row-gap:8px;.button-box{width:100%;height:42px;border-radius:6px;padding:6px;cursor:pointer;display:flex;align-items:center;justify-content:center;.inner{width:100%;height:100%;border-radius:4px;overflow:hidden;position:relative;display:flex;align-items:center;justify-content:center;font-size:14px;font-weight:500;line-height:20px;}&.active{outline:1.5px solid ",";}&:not(.active):hover{outline:1.5px solid ",';}&.border,&.ghost{.inner{border:1px solid;}}&.border_dashed{.inner{border:1px dashed;}}&.ghost{.inner{background-color:#fff;background-image:linear-gradient(-45deg,#f2f2f2 25%,transparent 25%,transparent 75%,#f2f2f2 75%,#f2f2f2),linear-gradient(135deg,#f2f2f2 25%,transparent 25%,transparent 75%,#f2f2f2 75%,#f2f2f2);background-size:12px 12px;background-position:0 0,6px 6px;}}}&.shape-style{grid-template-columns:repeat(auto-fill,64px);gap:8px;.button-box{height:64px;padding:0;}}}.appear-content{width:100%;box-sizing:content-box;font-size:12px;text-align:left;}.lib-panel-modal-content{header[type="draggable"] + .divider,header[type="draggable"]{display:none;}}}'],e=>e.theme.color_bg_border_01,Fl.eK,e=>e.theme.color_text_L1,e=>e.theme.color_btn_primary_normal,e=>e.theme.color_bg_select01),kW={[$.x.WRect]:{border:(0,o.jsx)(V9,{size:64}),fill:(0,o.jsx)(MV,{size:64}),ghost:(0,o.jsx)(LV,{size:64}),border_dashed:(0,o.jsx)(UV,{size:64})},[$.x.WOval]:{border:(0,o.jsx)(eb,{size:64}),fill:(0,o.jsx)(XV,{size:64}),ghost:(0,o.jsx)(tz,{size:64}),border_dashed:(0,o.jsx)(sz,{size:64})},[$.x.WTriangle]:{border:(0,o.jsx)(hb,{size:64}),fill:(0,o.jsx)(xz,{size:64}),ghost:(0,o.jsx)(Az,{size:64}),border_dashed:(0,o.jsx)(Tz,{size:64})},[$.x.WStar]:{border:(0,o.jsx)(Mb,{size:64}),fill:(0,o.jsx)(Vz,{size:64}),ghost:(0,o.jsx)(Kz,{size:64}),border_dashed:(0,o.jsx)($z,{size:64})},[$.x.WPolygon]:{border:(0,o.jsx)(Ob,{size:64}),fill:(0,o.jsx)(dW,{size:64}),ghost:(0,o.jsx)(gW,{size:64}),border_dashed:(0,o.jsx)(CW,{size:64})}},T4=e=>{const t=Vg.Q.hex(e);return(0,ul.u_)({R:t[0]*255,G:t[1]*255,B:t[2]*255,A:100})},l2=[T4("#ffffff"),T4("#efefef"),T4("#BBBBBB"),T4("#101010")],Xb=(0,l.memo)(e=>{const{config:t,dropdownPosition:n,widget:a,editorState:i,getTextV1:c,setTextV1:d,dispatch:p}=e,{title:h}=t,{hotAttr:{type:m,styleType:x}}=a,[v,A]=(0,l.useState)(0),k=(0,r.d4)(gl.Dw),R=(0,l.useRef)(null),F=(0,l.useRef)(null),{handleClearRef:Z}=s6(a),G=m===$.x.WButton,ee=G?void 0:a.hotAttr.border,[ce,se]=(0,l.useState)(-447),{defaultColorHex:he,gradientMainColorsHexNumberMap:ve,handleChangeStyleType:Te}=c6({widget:a,editorState:i,getTextV1:c,setTextV1:d,dispatch:p}),xe=(0,l.useMemo)(()=>yu[he||Um],[he,ve]),Fe=(0,l.useMemo)(()=>[{key:0,label:I18N.TextToolbar.styleType.tab.default},{key:1,label:I18N.TextToolbar.styleType.tab.appear}],[]);(0,l.useEffect)(()=>{k&&A(1)},[k,A]);const et=(0,l.useMemo)(()=>G?[{key:"fill_drak",label:I18N.TextToolbar.button.styleType.fill_drak},{key:"fill_light",label:I18N.TextToolbar.button.styleType.fill_light},{key:"border",label:I18N.TextToolbar.button.styleType.border},{key:"border_dashed",label:I18N.TextToolbar.button.styleType.border_dashed},{key:"ghost",label:I18N.TextToolbar.button.styleType.ghost},{key:"text",label:I18N.TextToolbar.button.styleType.text}]:[{key:"border",label:I18N.TextToolbar.shape.styleType.border},{key:"fill",label:I18N.TextToolbar.shape.styleType.fill},{key:"ghost",label:I18N.TextToolbar.shape.styleType.ghost},{key:"border_dashed",label:I18N.TextToolbar.shape.styleType.border_dashed}],[G]),Ke=(0,l.useMemo)(()=>{const Cn=et.find(Mt=>Mt.key===x);return Cn?Cn.label:I18N.TextToolbar.button.styleType.none},[x,et]),Qe=(0,l.useCallback)(Cn=>{const Mt=xe[5];return{fill_drak:{background:Mt,color:"#ffffff"},fill_light:{background:xe[0],color:Mt},border:{background:"#ffffff",color:Mt,borderColor:Mt},border_dashed:{background:"#ffffff",color:Mt,borderColor:Mt},ghost:{color:Mt,borderColor:Mt},text:{color:Mt}}[Cn]||{}},[xe]),nt=(0,l.useCallback)(()=>{var Cn;if(!(F!=null&&F.current))return{left:0,top:0};const{top:Mt,right:Et}=F==null||(Cn=F.current)==null?void 0:Cn.getBoundingClientRect();return{left:Et+2,top:G?Mt-40:Mt}},[F,G]),Xe=(0,l.useCallback)(Cn=>{let{value:Mt,attr:Et}=Cn;switch(Et){case"fill":case"border":p({type:"entry:widget:change",payload:{flatChgList:[{key:a.key,hotAttr:{[Et]:Mt}}]}});break;case"color":d("color",(0,ul.t0)(Mt));default:break}},[p,d,a.key]),lt=(0,l.useCallback)(Cn=>{p({type:"entry:widget:change",payload:{flatChgList:[{key:a.key,hotAttr:{styleType:Cn}}]}});const Et={border:{fill:{fillIsVisible:!0,fill:"solid",solidColor:l2[0]},border:{...ee,bdrIsVisible:!0,bdrColor:l2[2],bdrStyle:"solid"}},fill:{fill:{fillIsVisible:!0,fill:"solid",solidColor:l2[1]},border:{...ee,bdrIsVisible:!1,bdrColor:l2[2]}},ghost:{fill:{fillIsVisible:!1,fill:"solid",solidColor:l2[0]},border:{...ee,bdrIsVisible:!0,bdrColor:l2[2],bdrStyle:"solid"}},border_dashed:{fill:{fillIsVisible:!0,fill:"solid",solidColor:l2[0]},border:{...ee,bdrIsVisible:!0,bdrStyle:"dashed",bdrColor:l2[2]}}}[Cn];Et&&(Xe({attr:"fill",value:Et.fill}),Xe({attr:"border",value:Et.border}),Xe({attr:"color",value:l2[3]}),Z())},[p,a.key,ee,Xe,Z]),Ct=(0,l.useCallback)(Cn=>{var Mt,Et;G?Te(Cn):lt(Cn),(Mt=R.current)==null||(Et=Mt.close)==null||Et.call(Mt)},[G,Te,lt,R]),St=()=>{const Cn=nt();p({type:"modal:update:state",payload:{libEditAppearModal:{isOpen:!0,position:Cn,type:"create",...(0,ms.xe)([a.key])}}})},hn=()=>{var Cn;if(!(F!=null&&F.current)||n==="bottom")return;const{height:Mt}=F==null||(Cn=F.current)==null?void 0:Cn.getBoundingClientRect();se(-(Mt+40+7))};return(0,o.jsx)(Rl,{ref:R,title:h,top:n==="bottom"?40:v===1?ce:G?-221:-215,left:G?ENV.IS_MO?-10:-16:-104,trigger:(0,o.jsx)("div",{className:"trigger-container has-arrow",children:k?(0,o.jsx)(SW.O,{canOpenModal:!1}):(0,o.jsxs)("div",{className:"trigger",children:[(0,o.jsx)("span",{className:"title",children:Ke}),(0,o.jsx)(j0.A,{className:"arrow",size:14})]})}),children:(0,o.jsxs)(AW,{className:"content-container fill-style-type-options",children:[(0,o.jsxs)("div",{className:"header",children:[(0,o.jsx)(Bc.np,{activeIndex:v,className:"slide-nav",onTabChange:A,children:Fe.map(Cn=>{let{key:Mt,label:Et}=Cn;return(0,o.jsx)(Bc.nl,{label:Et},Mt)})}),v===1&&(0,o.jsx)(Ti.A,{content:I18N.libPanel.manage.create_ref.appear,direction:"down",distance:8,children:(0,o.jsx)(xt.C,{className:"add-icon",name:"common/add@24",size:24,onClick:St})})]}),(0,o.jsxs)("div",{className:"bottom-content",children:[v===0&&(0,o.jsx)("div",{className:C()("default-content",{"shape-style":!G}),children:et.map(Cn=>{var Mt;return(0,o.jsx)(Ti.A,{className:"floating-tooltip",content:Cn.label,direction:"down",distance:12,children:(0,o.jsx)("div",{className:C()("button-box",{active:!k&&x===Cn.key},Cn.key),onClick:()=>Ct(Cn.key),children:G?(0,o.jsx)("div",{className:"inner",style:Qe(Cn.key),children:I18N.TextToolbar.button.styleType.buttonText}):(Mt=kW[m])==null?void 0:Mt[Cn.key]})},Cn.key)})}),v===1&&(0,o.jsx)(Zp,{type:"appear",ref:F,isShowCreate:!1,onGetNewEditModalPostion:nt,onDidMount:hn})]})]})})}),Ph=(0,l.memo)(e=>{const{config:t,onClick:n,active:a}=e,{icon:i,isShowUploadFile:c,...d}=t,p=(0,l.useRef)(null),h=(x,v)=>{c?p!=null&&p.current&&(p==null||p.current.click()):n(x,v)},m=x=>{const v=x.target.files[0];p!=null&&p.current&&(p.current.value="",p.current.setAttribute("value",""),n(v))};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(fu,{...d,active:a,onClick:h,children:i}),c&&(0,o.jsx)("input",{ref:p,type:"file",onChange:m,hidden:!0,multiple:!0,accept:"image/*"})]})}),xu=e=>{var t;return(0,o.jsx)("div",{className:C()("draft-separator-h",e==null||(t=e.config)==null?void 0:t.className)})},J0=e=>{var t;return(0,o.jsx)("div",{className:C()("draft-separator-v",e==null||(t=e.config)==null?void 0:t.className)})};var MW=Object.defineProperty,EW=Object.defineProperties,IW=Object.getOwnPropertyDescriptors,P4=Object.getOwnPropertySymbols,Qb=Object.prototype.hasOwnProperty,Jb=Object.prototype.propertyIsEnumerable,qb=(e,t,n)=>t in e?MW(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,X6=(e,t)=>{for(var n in t||(t={}))Qb.call(t,n)&&qb(e,n,t[n]);if(P4)for(var n of P4(t))Jb.call(t,n)&&qb(e,n,t[n]);return e},_W=(e,t)=>EW(e,IW(t)),TW=(e,t)=>{var n={};for(var a in e)Qb.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&P4)for(var a of P4(e))t.indexOf(a)<0&&Jb.call(e,a)&&(n[a]=e[a]);return n},PW=(0,l.forwardRef)((e,t)=>{var n=e,{size:a,spin:i,style:c}=n,d=TW(n,["size","spin","style"]);const p=X6(X6({width:a||"var(--x-icon-size, 1em)",height:a||"var(--x-icon-size, 1em)",animation:i?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),c);return l.createElement("svg",_W(X6({ref:t,style:p},d),{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),l.createElement("path",{d:"M17 4C18.1046 4 19 4.89543 19 6V18C19 19.0357 18.2128 19.887 17.2041 19.9893L17 20H7L6.7959 19.9893C5.78722 19.887 5 19.0357 5 18V6C5 4.89543 5.89543 4 7 4H17ZM6.5 8.5V18C6.5 18.2761 6.72386 18.5 7 18.5H17C17.2761 18.5 17.5 18.2761 17.5 18V8.5H6.5Z",fill:"#19191A"}))}),LW=Object.defineProperty,NW=Object.defineProperties,jW=Object.getOwnPropertyDescriptors,L4=Object.getOwnPropertySymbols,$b=Object.prototype.hasOwnProperty,ew=Object.prototype.propertyIsEnumerable,tw=(e,t,n)=>t in e?LW(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Q6=(e,t)=>{for(var n in t||(t={}))$b.call(t,n)&&tw(e,n,t[n]);if(L4)for(var n of L4(t))ew.call(t,n)&&tw(e,n,t[n]);return e},DW=(e,t)=>NW(e,jW(t)),RW=(e,t)=>{var n={};for(var a in e)$b.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&L4)for(var a of L4(e))t.indexOf(a)<0&&ew.call(e,a)&&(n[a]=e[a]);return n},BW=(0,l.forwardRef)((e,t)=>{var n=e,{size:a,spin:i,style:c}=n,d=RW(n,["size","spin","style"]);const p=Q6(Q6({width:a||"var(--x-icon-size, 1em)",height:a||"var(--x-icon-size, 1em)",animation:i?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),c);return l.createElement("svg",DW(Q6({ref:t,style:p},d),{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),l.createElement("path",{d:"M17 4C18.1046 4 19 4.89543 19 6V18C19 19.0357 18.2128 19.887 17.2041 19.9893L17 20H7L6.7959 19.9893C5.78722 19.887 5 19.0357 5 18V6C5 4.89543 5.89543 4 7 4H17ZM6.5 8.5V18C6.5 18.2761 6.72386 18.5 7 18.5H17C17.2761 18.5 17.5 18.2761 17.5 18V8.5H6.5ZM7 5.5C6.72386 5.5 6.5 5.72386 6.5 6V7H17.5V6C17.5 5.72386 17.2761 5.5 17 5.5H7Z",fill:"#19191A"}))});const UW=M.Ay.div.withConfig({displayName:"styles__StyledInputContainer",componentId:"sc-nfe9dn-0"})(["display:flex;align-items:center;margin-right:6px;span{width:38px;margin-right:6px;color:",";}.bdr-width-input{width:48px;border-radius:6px;",";}"],e=>e.theme.color_text_L1,gu),OW=e=>{const{dispatch:t,widget:n}=e,{isShowBigTitle:a}=n.hotAttr.swimConfig,i=()=>{t({type:zn.X.entryKey["entry:flow:isHideBigTilte:toggle"]})},c=h=>{const m=n.hotAttr.swimlaneType;let x="right";m==="topBottom"&&(x="bottom"),t({type:zn.X.entryKey["entry:flow:col:add-del:batch"],payload:{newColLength:h,handleType:x}})},p=n.hotAttr.swimlaneType==="leftRight"?n.hotAttr.database.widthList.length:n.hotAttr.database.heightList.length;return(0,o.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[(0,o.jsxs)(UW,{children:[(0,o.jsx)("span",{children:I18N.Flow.swimlane_num}),(0,o.jsx)(P1.A,{min:1,max:100,value:p,onConfirm:c,className:"bdr-width-input"})]}),(0,o.jsx)(fu,{title:I18N.TextToolbar.flow.addTitle,onClick:i,children:a?(0,o.jsx)(PW,{size:24}):(0,o.jsx)(BW,{size:24})})]})};var p0=function(e){return e.Text="text",e.Appear="appear",e}(p0||{}),FW=function(e){return e[e.FontColor=0]="FontColor",e[e.FontSize=1]="FontSize",e[e.FontStyle=2]="FontStyle",e[e.BgColor=3]="BgColor",e}(FW||{}),VW=s(44805),zW=s(98915);const WW=(e,t)=>{const{isText:n=!1,isAppear:a=!1}=t||{},i=[n?p0.Text:"",a?p0.Appear:""].filter(d=>!!d),c=e.filter(d=>{var p;return!i.includes((p=d.type)!=null?p:"")});return c.filter((d,p)=>p>0&&p<(c==null?void 0:c.length)-1?!(d.type==="VSeparator"&&c[p+1].type==="VSeparator"):d.type!=="VSeparator")},Nf=e=>{let{value:t,attr:n,dispatch:a,supAttr:i,selections:c,refVar:d}=e;(0,VW.c)({value:t,attr:n,dispatch:a,supAttr:i,selections:c,refVar:d}),a({type:"entry:auto:show:hide:item"})},HW=e=>{let{value:t,attr:n,dispatch:a,supAttr:i,selections:c,refVar:d}=e;Nf({value:t,attr:n,dispatch:a,supAttr:i,selections:c,refVar:d})},GW=e=>{let{value:t,attr:n,refVar:a,dispatch:i,selections:c}=e;const d=c.map(p=>{var h;if(sdkStore.isTrashed(p))return null;const m=sdkStore.getHotItem(p);if(!m)return null;let x=m==null||(h=m.hotAttr)==null?void 0:h.refStyles;return un.vZ.includes(n)&&(x={...x,appear:void 0}),{key:p,hotAttr:{[n]:t,...$.Q.USE_CLIP_TEXT.includes(m.hotAttr.type)&&m.hotAttr.richTextV1&&!m.hotAttr.richTextV1.isClipText&&{richTextMetric:(0,zW.Ro)({...m.hotAttr,[n]:t})},refVars:{...m.hotAttr.refVars,[n]:a},refStyles:x}}}).filter(p=>!!p);i({type:"entry:widget:change",payload:{flatChgList:d}}),i({type:"entry:auto:show:hide:item"})},Lh=e=>{let{value:t,attr:n,refVar:a,dispatch:i,compressible:c,fromUI:d,isFakeOverride:p}=e;i({type:"entry:set:text:attr",payload:{value:t,attr:n,refVar:a,isFakeOverride:p,compressible:c,fromUI:d}}),i({type:"entry:auto:show:hide:item"})};var ZW=Object.defineProperty,KW=Object.defineProperties,YW=Object.getOwnPropertyDescriptors,N4=Object.getOwnPropertySymbols,nw=Object.prototype.hasOwnProperty,ow=Object.prototype.propertyIsEnumerable,aw=(e,t,n)=>t in e?ZW(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,J6=(e,t)=>{for(var n in t||(t={}))nw.call(t,n)&&aw(e,n,t[n]);if(N4)for(var n of N4(t))ow.call(t,n)&&aw(e,n,t[n]);return e},XW=(e,t)=>KW(e,YW(t)),QW=(e,t)=>{var n={};for(var a in e)nw.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&N4)for(var a of N4(e))t.indexOf(a)<0&&ow.call(e,a)&&(n[a]=e[a]);return n},rw=(0,l.forwardRef)((e,t)=>{var n=e,{size:a,spin:i,style:c}=n,d=QW(n,["size","spin","style"]);const p=J6(J6({width:a||"var(--x-icon-size, 1em)",height:a||"var(--x-icon-size, 1em)",animation:i?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),c);return l.createElement("svg",XW(J6({ref:t,style:p},d),{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),l.createElement("path",{d:"M18.25 4.5C18.6642 4.5 19 4.83579 19 5.25V7.25C19 7.66421 18.6642 8 18.25 8C17.8358 8 17.5 7.66421 17.5 7.25V6H12.5V18H14.75C15.1642 18 15.5 18.3358 15.5 18.75C15.5 19.1642 15.1642 19.5 14.75 19.5H8.75C8.33579 19.5 8 19.1642 8 18.75C8 18.3358 8.33579 18 8.75 18H11V6H6.5V7.25C6.5 7.66421 6.16421 8 5.75 8C5.33579 8 5 7.66421 5 7.25V5.25C5 4.83579 5.33579 4.5 5.75 4.5H18.25Z",fill:"#19191A"}))}),JW=Object.defineProperty,qW=Object.defineProperties,$W=Object.getOwnPropertyDescriptors,j4=Object.getOwnPropertySymbols,iw=Object.prototype.hasOwnProperty,sw=Object.prototype.propertyIsEnumerable,lw=(e,t,n)=>t in e?JW(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,q6=(e,t)=>{for(var n in t||(t={}))iw.call(t,n)&&lw(e,n,t[n]);if(j4)for(var n of j4(t))sw.call(t,n)&&lw(e,n,t[n]);return e},eH=(e,t)=>qW(e,$W(t)),tH=(e,t)=>{var n={};for(var a in e)iw.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&j4)for(var a of j4(e))t.indexOf(a)<0&&sw.call(e,a)&&(n[a]=e[a]);return n},nH=(0,l.forwardRef)((e,t)=>{var n=e,{size:a,spin:i,style:c}=n,d=tH(n,["size","spin","style"]);const p=q6(q6({width:a||"var(--x-icon-size, 1em)",height:a||"var(--x-icon-size, 1em)",animation:i?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),c);return l.createElement("svg",eH(q6({ref:t,style:p},d),{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),l.createElement("path",{d:"M20.9991 17.8735C20.999 18.4597 20.5238 18.935 19.9376 18.9351H19.9308L15.3888 7.95361L20.9991 5.06396V17.8735Z",fill:"url(#paint0_linear_2581_187)"}),l.createElement("path",{d:"M6.67419 5.06494H13.6095L8.65482 17.1763C8.21954 18.2403 7.18405 18.9355 6.03443 18.9355H0.999878L6.67419 5.06494Z",fill:"url(#paint1_linear_2581_187)"}),l.createElement("path",{d:"M13.6089 5.06494H6.67362L11.6283 17.1763C12.0635 18.2403 13.099 18.9355 14.2486 18.9355H19.2832L13.6089 5.06494Z",fill:"url(#paint2_linear_2581_187)"}),l.createElement("mask",{id:"mask0_2581_187",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"6",y:"5",width:"14",height:"14"},l.createElement("path",{d:"M13.6023 5.06445H6.66703L11.6217 17.1758C12.057 18.2398 13.0924 18.935 14.2421 18.935H19.2766L13.6023 5.06445Z",fill:"url(#paint3_linear_2581_187)"})),l.createElement("g",{mask:"url(#mask0_2581_187)"},l.createElement("path",{d:"M6.67175 5.06445H13.607L7.9327 18.935H0.997437L6.67175 5.06445Z",fill:"url(#paint4_linear_2581_187)"})),l.createElement("defs",null,l.createElement("linearGradient",{id:"paint0_linear_2581_187",x1:"16.1118",y1:"7.29206",x2:"17.9236",y2:"18.4407",gradientUnits:"userSpaceOnUse"},l.createElement("stop",{stopColor:"#42E9FF"}),l.createElement("stop",{offset:"1",stopColor:"#5AB2F7"})),l.createElement("linearGradient",{id:"paint1_linear_2581_187",x1:"9.40626",y1:"4.64462",x2:"3.61121",y2:"18.5791",gradientUnits:"userSpaceOnUse"},l.createElement("stop",{stopColor:"#BBD3FF"}),l.createElement("stop",{offset:"1",stopColor:"#60EFFF"})),l.createElement("linearGradient",{id:"paint2_linear_2581_187",x1:"10.8768",y1:"4.64462",x2:"17.4435",y2:"19.1623",gradientUnits:"userSpaceOnUse"},l.createElement("stop",{stopColor:"#7C3FFF"}),l.createElement("stop",{offset:"1",stopColor:"#C191FF"})),l.createElement("linearGradient",{id:"paint3_linear_2581_187",x1:"10.8702",y1:"4.64413",x2:"17.4369",y2:"19.1618",gradientUnits:"userSpaceOnUse"},l.createElement("stop",{stopColor:"#7C3FFF"}),l.createElement("stop",{offset:"1",stopColor:"#C191FF"})),l.createElement("linearGradient",{id:"paint4_linear_2581_187",x1:"10.7132",y1:"4.69705",x2:"8.10053",y2:"14.1678",gradientUnits:"userSpaceOnUse"},l.createElement("stop",{stopColor:"#5FA9FF"}),l.createElement("stop",{offset:"1",stopColor:"#38CFFF"}))))}),cw=s(19013),dw=s(37505),pw=s(80666),vu=s(56938),bu=s(49021);const $6=()=>({type:p0.Appear,component:eO,styleConfig:{title:I18N.SettingPanel.inspector.radius},getMiddleProps:e=>{const{widget:t,widget:{hotAttr:{type:n}}}=e,i=(dw.pQ[pw.z.BorderRadiusPanel][n]||dw.pQ[pw.z.BorderRadiusPanel][cw.m9])({...e,selectedItems:[t]});return{supAttr:n===$.x.WPolygon?"polygon":n===$.x.WStar?"star":"",attr:[$.x.WPolygon,$.x.WStar].includes(n)?"cornerRadius":"borderRadius",borderRadiusInfo:i,onChange:HW,canSetSingleRadius:[$.x.WImage,$.x.WPlaceholder,$.x.WButton,$.x.WRect].includes(n)}}}),ey=()=>({type:p0.Appear,component:ZU,styleConfig:{title:I18N.SettingPanel.stroke},getMiddleProps:e=>{const{widget:{hotAttr:{type:t}}}=e;return{onChange:GW,canSetBorderVisibility:[$.x.WButton,$.x.WRect].includes(t)}}}),D4=()=>({type:p0.Appear,component:fV,styleConfig:{title:I18N.SettingPanel.shadows},getMiddleProps:e=>({onChange:Nf})}),ty=()=>({type:p0.Text,component:xF,styleConfig:{icon:(0,o.jsx)(rw,{size:24}),title:I18N.TextToolbar.font.styleText},getMiddleProps:e=>{const{widget:t,widget:{hotAttr:{type:n}}}=e,a=bu.sE[vu.s.TextFontPanel][n]({...e,selectedItems:[t]}),i=n&&n in bu.sE[vu.s.SpacingPanel]?n:cw.m9,c=bu.sE[vu.s.SpacingPanel][i]({...e,selectedItems:[t]}),d=xm.VV.includes(n),p=h=>{let{value:m,attr:x,refVar:v,dispatch:A,isFakeOverride:k}=h;Lh({value:m,attr:x,refVar:v,isFakeOverride:k,dispatch:A})};return{textInfo:{...a,newOverOld:d},spacingInfo:c,onChange:p}}}),ny=()=>({component:mF,styleConfig:{title:I18N.TextToolbar.font.styleText}}),oy=()=>({component:aF,styleConfig:{title:I18N.TextToolbar.fontAlign.title},getMiddleProps:e=>{const{widget:t,widget:{hotAttr:{type:n}}}=e;return{alignInfo:bu.sE[vu.s.AlignPanel][n]({...e,selectedItems:[t]}),onChange:c=>{let{value:d,attr:p,dispatch:h}=c;h({type:"entry:set:text:align",payload:{attr:p,value:d}}),h({type:"entry:auto:show:hide:item"})}}}}),jf=()=>({component:gF,styleConfig:{title:I18N.TextToolbar.textSize,options:[12,14,16,18,20,28,36,48,72],min:1,max:1e3},getMiddleProps:e=>{const{widget:t,editorState:n,setTextV1:a,getTextV1:i,onChange:c,dispatch:d}=e,{hotAttr:{type:p}}=t,h=p===$.x.WRichText?bu.sE[vu.s.TextFontPanel][$.x.WRichText]({...e,selectedItems:[t]}):i(n),{fontSize:m,refVars:x}=h;return{onGetRefVar:()=>x==null?void 0:x.fontSize,onGetCurrentSize:()=>m,onChangeFontSize:(A,k)=>{p===$.x.WRichText?Lh({attr:"fontSize",value:A,refVar:k,dispatch:d}):n?c((0,vl.xE)(n,A),{attr:"fontSize"}):a("fontsize",A)}}}}),ay=function(e){return e===void 0&&(e="text"),{component:Ph,styleConfig:{icon:(0,o.jsx)(nH,{size:24}),className:"pure-icon ai-auto-fill",title:e==="text"?I18N.TextToolbar.font.textAutoFill.title:I18N.TextToolbar.image.imageAutoFill.title},getMiddleProps:t=>{const{dropdownPosition:n,isAutoFillPanelShow:a,dispatch:i}=t,c=()=>{const p=(0,Ag.$I)().find(h=>h.type===Ag.SR.AutoFill);p.source="\u5FEB\u6377\u83DC\u5355\u667A\u80FD\u586B\u5145AI",i({type:i2.X.AIOpenModal,payload:p})};return{active:a,onClick:(p,h)=>{if(ENV.IS_MO){c();return}const m=Hg({$ref:h,dropdownPosition:n,contentWidth:300,contentHeight:442,offset:5});i({type:"entry:autoFillPanel:toggle:show",payload:{position:m,openFrom:e==="text"?Lt.G.QuickMenuText:Lt.G.QuickMenuImage,defaultTab:e==="text"?0:1,isShowClose:!1,canShowAllTab:!1}})}}}}},uw=()=>({component:D7,styleConfig:{title:I18N.SettingPanel.icon_color},getMiddleProps:e=>{const{widget:t,dispatch:n}=e,{key:a,hotAttr:{fill:i}}=t;return{color:i,attr:"solidColor",supAttr:"fill",getMode:p=>p?"input":"",onChange:p=>{Nf({value:p,attr:"fill",dispatch:n,selections:[a]})}}}}),q0={type:"VSeparator",component:J0};var oH=s(86493);const hw=()=>[{component:v6,styleConfig:{title:I18N.TextToolbar.textColor,left:ENV.IS_MO?-10:-16,hasColorBtn:!0,colors:[{color:"rgba(25, 25, 25, 1)",borderColor:"rgba(96, 96, 96, 1)"},{color:"rgba(22, 132, 252, 1)",borderColor:"rgba(0, 101, 210, 1)"},{color:"rgba(138, 56, 245, 1)",borderColor:"rgba(104, 1, 239, 1)"},{color:"rgba(102, 102, 102, 1)",borderColor:"rgba(79, 79, 79, 1)"},{color:"rgba(251, 251, 251, 1)",borderColor:"rgba(203, 199, 199, 1)"},{color:"rgba(236, 73, 84, 1)",borderColor:"rgba(226, 25, 39, 1)"},{color:"rgba(255, 159, 41, 1)",borderColor:"rgba(255, 138, 0, 1)"}]}},jf(),{component:i4,styleConfig:{inDropdown:!0,icon:void 0,className:"draft-inline",title:I18N.TextToolbar.style0}},{type:"VSeparator",component:J0},{component:Wg,styleConfig:{inDropdown:!0,className:"draft-bg-color",title:I18N.TextToolbar.backgroundColor,hasCheck:!0,hasColorBtn:!0,colors:[{color:"rgba(255, 255, 255, 1)",borderColor:"rgba(102, 102, 102, 0.3)"},{color:"rgba(230, 230, 230, 1)",borderColor:"rgba(102, 102, 102, 0.3)"},{color:"rgba(255, 158, 147, 1)",borderColor:"rgba(245, 130, 117, 1)"},{color:"rgba(157, 196, 255, 1)",borderColor:"rgba(122, 174, 252, 1)"},{color:"rgba(84, 214, 145, 1)",borderColor:"rgba(52, 197, 120, 1)"},{color:"rgba(218, 163, 255, 1)",borderColor:"rgba(205, 130, 255, 1)"},{color:"rgba(253, 209, 67, 1)",borderColor:"rgba(240, 183, 0, 1)"},{color:"rgba(255, 158, 71, 1)",borderColor:"rgba(255, 132, 22, 1)"}]},getMiddleProps:e=>{const{widget:t,selectedCellsInfo:n,dispatch:a}=e,{type:i}=t.hotAttr;let c=t.hotAttr.fill;if(i===$.x.WSwimlane){const{cells:h,table:m}=t.hotAttr.database,{x,y:v}=n.tl;if(m[v]&&m[v][x]){var d;c=(d=h[m[v][x]])==null?void 0:d.fill}}return{fill:c,handleColorChange:h=>{i===$.x.WSwimlane?a({type:zn.X.entryKey["entry:flow:cell:attr:set"],payload:{sup:"fill",attr:"fill",value:h}}):a({type:"entry:widget:change",payload:{flatChgList:[{key:t.key,hotAttr:{fill:h}}]}})}}}}],aH=()=>{const e=hw();return e.slice(0,e.length-2)},mw={strikethrough:"line-through",italic:"italic",bold:"boldType",fontsize:"fontSize",underline:"underline",color:"textColor"},wu=e=>{let{dispatch:t,widget:n,selectedCellsInfo:a}=e;const i=()=>{const{_getEditorState:h}=(0,cn.DT)();return h&&h()},c=function(h,m,x){x===void 0&&(x=!0);const{_getEditorState:v,_setEditorState:A}=(0,cn.DT)();let k=h.getCurrentInlineStyle();if(m!=null&&m.attr){k=v().getCurrentInlineStyle();const F=[...k.values()];k=(0,cn.Ym)(F,k,h,m.attr.toLowerCase())}const R={};if(m!=null&&m.isImageInserted&&(R.isImageInserted=!0),A&&A(Eh.$t.set(h,{inlineStyleOverride:k}),R),x&&((0,M6.$B)(h)||m!=null&&m.isChangeAlign)){const F=(0,Eh.dM)(h.getCurrentContent()),Z=(0,oH.qn)(F);(0,kh.Xq)([(0,Ln.Op)(n.key,{textV1:Z})])}},d=(h,m,x)=>{switch(n.hotAttr.type){case $.x.WSwimlane:{t({type:zn.X.entryKey["entry:flow:cell:attr:set"],payload:{sup:"textV1",attr:h,value:m}});break}default:Lh({attr:mw[h],value:m,refVar:x,dispatch:t})}},p=h=>{switch(n.hotAttr.type){case $.x.WSwimlane:{const{cells:m,table:x}=n.hotAttr.database,{x:v,y:A}=a.tl;if(x[A]&&x[A][v]){const{richTextV1:k,textV1:R}=m[x[A][v]];return(0,_0.mj)({baseItem:{type:"wSwimlane",richTextV1:k,textV1:R},isEditing:!!h,richTextEditorState:h})}return{}}case $.x.WTear:case $.x.WSticky:return(0,_0.mj)({baseItem:{type:"wSticky",richTextV1:{},textV1:n.hotAttr.textV1},isEditing:!!h,richTextEditorState:h});default:return(0,_0.mj)({baseItem:{type:"wRichText",richTextV1:n.hotAttr.richTextV1,textV1:n.hotAttr.textV1},isEditing:!!h,richTextEditorState:h})}};return{onChange:c,editorState:i(),getEditorState:i,onEditorStateChange:c,setTextV1:d,getTextV1:p}},rH=[{color:"rgba(25, 25, 25, 1)",borderColor:"rgba(96, 96, 96, 1)"},{color:"rgba(102, 102, 102, 1)",borderColor:"rgba(79, 79, 79, 1)"},{color:"rgba(251, 251, 251, 1)",borderColor:"rgba(219, 219, 219, 1)"},{color:"rgba(22, 132, 252, 1)",borderColor:"rgba(0, 101, 210, 1)"},{color:"rgba(0, 160, 86, 1)",borderColor:"rgba(0, 134, 63, 1)"},{color:"rgba(155, 51, 225, 1)",borderColor:"rgba(155, 51, 225, 1)"},{color:"rgba(233, 98, 0, 1)",borderColor:"rgba(193, 93, 0, 1)"},{color:"rgba(226, 25, 39, 1)",borderColor:"rgba(226, 25, 39, 1)"}],iH=()=>[{component:OW},{component:a6,styleConfig:{className:"draft-bg-color",title:I18N.TextToolbar.borderStyle.line_color,colors:rH,hasCheck:!0,hasColorBtn:!0},getMiddleProps:e=>{const{widget:t,dispatch:n}=e;return{border:t.hotAttr.border,handleBorderChange:c=>{n({type:"entry:widget:change",payload:{flatChgList:[{key:t.key,hotAttr:{border:c}}]}})}}}}],sH=e=>{const t=e.swimlaneIsDeepEditing?aH():e.swimlaneIsShallowEditing?hw():iH();return{getCommonProps:n=>wu(n),controlConfig:t}};var lH=s(64639),cH=Object.defineProperty,dH=Object.defineProperties,pH=Object.getOwnPropertyDescriptors,R4=Object.getOwnPropertySymbols,fw=Object.prototype.hasOwnProperty,gw=Object.prototype.propertyIsEnumerable,yw=(e,t,n)=>t in e?cH(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ry=(e,t)=>{for(var n in t||(t={}))fw.call(t,n)&&yw(e,n,t[n]);if(R4)for(var n of R4(t))gw.call(t,n)&&yw(e,n,t[n]);return e},uH=(e,t)=>dH(e,pH(t)),hH=(e,t)=>{var n={};for(var a in e)fw.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&R4)for(var a of R4(e))t.indexOf(a)<0&&gw.call(e,a)&&(n[a]=e[a]);return n},mH=(0,l.forwardRef)((e,t)=>{var n=e,{size:a,spin:i,style:c}=n,d=hH(n,["size","spin","style"]);const p=ry(ry({width:a||"var(--x-icon-size, 1em)",height:a||"var(--x-icon-size, 1em)",animation:i?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),c);return l.createElement("svg",uH(ry({ref:t,style:p},d),{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.86595 4.00891C6.90979 4.00303 6.95454 4 7 4H18.1783C18.9674 4 19.4456 4.87115 19.022 5.53688L16.8416 8.96312C16.6332 9.29069 16.6332 9.70931 16.8416 10.0369L19.022 13.4631C19.4456 14.1288 18.9674 15 18.1783 15H7.5V19.25C7.5 19.6642 7.16421 20 6.75 20C6.33579 20 6 19.6642 6 19.25V4.75C6 4.33579 6.33579 4 6.75 4C6.78943 4 6.82816 4.00304 6.86595 4.00891ZM17.2675 13.5H7.5V5.5H17.2675L15.5762 8.15781C15.055 8.97673 15.055 10.0233 15.5762 10.8422L17.2675 13.5Z",fill:"#19191A"}))}),fH=Object.defineProperty,gH=Object.defineProperties,yH=Object.getOwnPropertyDescriptors,B4=Object.getOwnPropertySymbols,xw=Object.prototype.hasOwnProperty,vw=Object.prototype.propertyIsEnumerable,bw=(e,t,n)=>t in e?fH(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,iy=(e,t)=>{for(var n in t||(t={}))xw.call(t,n)&&bw(e,n,t[n]);if(B4)for(var n of B4(t))vw.call(t,n)&&bw(e,n,t[n]);return e},xH=(e,t)=>gH(e,yH(t)),vH=(e,t)=>{var n={};for(var a in e)xw.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&B4)for(var a of B4(e))t.indexOf(a)<0&&vw.call(e,a)&&(n[a]=e[a]);return n},bH=(0,l.forwardRef)((e,t)=>{var n=e,{size:a,spin:i,style:c}=n,d=vH(n,["size","spin","style"]);const p=iy(iy({width:a||"var(--x-icon-size, 1em)",height:a||"var(--x-icon-size, 1em)",animation:i?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),c);return l.createElement("svg",xH(iy({ref:t,style:p},d),{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),l.createElement("path",{d:"M9.5 11.25C9.5 10.8358 9.83579 10.5 10.25 10.5C10.6642 10.5 11 10.8358 11 11.25V15.75C11 16.1642 10.6642 16.5 10.25 16.5C9.83579 16.5 9.5 16.1642 9.5 15.75V11.25Z",fill:"#19191A"}),l.createElement("path",{d:"M13.75 10.5C13.3358 10.5 13 10.8358 13 11.25V15.75C13 16.1642 13.3358 16.5 13.75 16.5C14.1642 16.5 14.5 16.1642 14.5 15.75V11.25C14.5 10.8358 14.1642 10.5 13.75 10.5Z",fill:"#19191A"}),l.createElement("path",{d:"M15.6667 6.5L15.348 5.06614C15.1447 4.15106 14.3331 3.5 13.3957 3.5H10.6043C9.66695 3.5 8.85532 4.15106 8.65197 5.06614L8.33333 6.5H4.75C4.33579 6.5 4 6.83579 4 7.25C4 7.66421 4.33579 8 4.75 8H6V18.5C6 19.6046 6.89543 20.5 8 20.5H16C17.1046 20.5 18 19.6046 18 18.5V8H19.25C19.6642 8 20 7.66421 20 7.25C20 6.83579 19.6642 6.5 19.25 6.5H15.6667ZM13.3957 5C13.63 5 13.8329 5.16277 13.8838 5.39153L14.1301 6.5H9.86992L10.1163 5.39153C10.1671 5.16277 10.37 5 10.6043 5H13.3957ZM16.5 8V18.5C16.5 18.7761 16.2761 19 16 19H8C7.72386 19 7.5 18.7761 7.5 18.5V8H16.5Z",fill:"#19191A"}))});const wH=M.Ay.div.withConfig({displayName:"styles__StyledDropDownContent",componentId:"sc-ckfwcz-0"})(["width:250px;border-radius:8px;background-color:#fff;box-shadow:0 2px 10px 0 rgba(39,54,78,0.08),4px 12px 40px 0 rgba(39,54,78,0.1);transition:0.2s ease-in-out;overflow:hidden;display:flex;flex-direction:column;&.dark{background:#252626;.emoji-span{color:rgba(255,255,255,1);}}&.light .emoji-span{color:rgba(0,0,0,1);}"]),CH=M.Ay.div.withConfig({displayName:"styles__StyledMindDeleteContainer",componentId:"sc-ckfwcz-1"})(["flex:0 0 32px;width:32px;height:32px;border-radius:6px;display:flex;align-items:center;justify-content:center;margin-right:6px;cursor:pointer;&:hover{background-color:",";}"],e=>e.theme.color_btn_secondary_hover),SH=(0,l.memo)(e=>{const{theme:t,recentlyUsedScreenMetaIcons:n,widget:a,dropdownPosition:i,config:c,onChangeIcon:d}=e,p=(0,l.useRef)(null),h=()=>{var x,v;!(p==null||(x=p.current)==null)&&x.close&&(p==null||(v=p.current)==null||v.close())},m=x=>{d(x),h()};return(0,o.jsx)(Rl,{ref:p,top:i==="bottom"?40:-309,left:-109,title:c.title,trigger:(0,o.jsx)("div",{className:"trigger-container padding-0",children:(0,o.jsx)("div",{className:"trigger-icon",children:(0,o.jsx)(mH,{size:24})})}),children:(0,o.jsx)(wH,{className:C()("dropDownContent",t),children:(0,o.jsx)(lH.y8,{tipClassName:"mind-node-icon-container",locale:(0,sl.w)(),canActiveIcon:!0,isShowTab:!0,theme:t,activeIcon:a.hotAttr.icon,historyList:Array.from(n),isShowReset:!1,isShowClose:!1,onChange:m,onClose:h})})})}),ww=(0,l.memo)(e=>{const{onDelete:t}=e;return(0,o.jsx)(CH,{children:(0,o.jsx)(bH,{size:24,onClick:t})})});var AH=Object.defineProperty,kH=Object.defineProperties,MH=Object.getOwnPropertyDescriptors,U4=Object.getOwnPropertySymbols,Cw=Object.prototype.hasOwnProperty,Sw=Object.prototype.propertyIsEnumerable,Aw=(e,t,n)=>t in e?AH(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,sy=(e,t)=>{for(var n in t||(t={}))Cw.call(t,n)&&Aw(e,n,t[n]);if(U4)for(var n of U4(t))Sw.call(t,n)&&Aw(e,n,t[n]);return e},EH=(e,t)=>kH(e,MH(t)),IH=(e,t)=>{var n={};for(var a in e)Cw.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&U4)for(var a of U4(e))t.indexOf(a)<0&&Sw.call(e,a)&&(n[a]=e[a]);return n},O4=(0,l.forwardRef)((e,t)=>{var n=e,{size:a,spin:i,style:c}=n,d=IH(n,["size","spin","style"]);const p=sy(sy({width:a||"var(--x-icon-size, 1em)",height:a||"var(--x-icon-size, 1em)",animation:i?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),c);return l.createElement("svg",EH(sy({ref:t,style:p},d),{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),l.createElement("path",{d:"M10.3711 10.5C10.3711 11.3284 9.69952 12 8.87109 12C8.04267 12 7.37109 11.3284 7.37109 10.5C7.37109 9.67157 8.04267 9 8.87109 9C9.69952 9 10.3711 9.67157 10.3711 10.5Z",fill:"#19191A"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6 4C4.89543 4 4 4.89543 4 6V18C4 19.1046 4.89543 20 6 20L18 20C19.1046 20 20 19.1046 20 18V6.00001C20 4.89544 19.1046 4.00001 18 4.00001L6 4ZM18 5.50001L6 5.5C5.72386 5.5 5.5 5.72386 5.5 6V18C5.5 18.2542 5.6897 18.4641 5.93526 18.4958L12.2091 12.9652C13.1523 12.1338 14.5392 12.0479 15.5777 12.7566L18.5 14.7508V6.00001C18.5 5.72387 18.2761 5.50001 18 5.50001ZM18.5 16.5668L14.7322 13.9956C14.2602 13.6735 13.6298 13.7125 13.2011 14.0905L8.1989 18.5L18 18.5C18.2761 18.5 18.5 18.2761 18.5 18V16.5668Z",fill:"#19191A"}))}),ly=s(94754);const _H=(0,l.memo)(e=>{const{config:t,dropdownPosition:n,rootProject:a,currentUser:i,currentOrg:c,isLeftShow:d,onChange:p,dispatch:h}=e,{options:m}=t,x=(0,l.useRef)(null),v=(0,l.useRef)(null),A=F=>{if(!F)return;const Z=(0,Af.t$)(F);p(Z)},k=F=>{const Z=F.target.files[0];(0,ly.i3)({files:[Z],rootProject:a,callback:A,isFilterSvg:!1},i,c)},R=F=>{var Z,G;F==="local"&&x!=null&&x.current&&(x.current.value=null,x.current.setAttribute("value",null),x.current.click()),F==="gallery"&&(!d&&h({type:"left-panel:collapse:panel:show"}),h({type:"entry:resource:open:assetPanel"})),(Z=v.current)==null||(G=Z.close)==null||G.call(Z)};return(0,o.jsx)(Rl,{ref:v,title:t.title,top:n==="bottom"?40:-78,left:-50,trigger:(0,o.jsx)("div",{className:"trigger-container padding-0",children:(0,o.jsxs)("div",{className:"trigger-icon",children:[(0,o.jsx)("input",{ref:x,type:"file",onChange:k,hidden:!0,multiple:!0,accept:"image/gif, image/jpg, image/jpeg, image/png, image/svg+xml"}),(0,o.jsx)(O4,{size:24})]})}),children:(0,o.jsx)("div",{className:"content-container draft-image-options",children:m.map((F,Z)=>(0,o.jsx)(N0,{value:F.key,active:!1,disabled:!1,onClick:()=>R(F.key),children:(0,o.jsx)("span",{className:"option-title",children:F.label})},Z))})})});var TH=Object.defineProperty,PH=Object.defineProperties,LH=Object.getOwnPropertyDescriptors,F4=Object.getOwnPropertySymbols,kw=Object.prototype.hasOwnProperty,Mw=Object.prototype.propertyIsEnumerable,Ew=(e,t,n)=>t in e?TH(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,cy=(e,t)=>{for(var n in t||(t={}))kw.call(t,n)&&Ew(e,n,t[n]);if(F4)for(var n of F4(t))Mw.call(t,n)&&Ew(e,n,t[n]);return e},NH=(e,t)=>PH(e,LH(t)),jH=(e,t)=>{var n={};for(var a in e)kw.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&F4)for(var a of F4(e))t.indexOf(a)<0&&Mw.call(e,a)&&(n[a]=e[a]);return n},DH=(0,l.forwardRef)((e,t)=>{var n=e,{size:a,spin:i,style:c}=n,d=jH(n,["size","spin","style"]);const p=cy(cy({width:a||"var(--x-icon-size, 1em)",height:a||"var(--x-icon-size, 1em)",animation:i?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),c);return l.createElement("svg",NH(cy({ref:t,style:p},d),{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),l.createElement("g",{clipPath:"url(#clip0_2581_401)"},l.createElement("path",{d:"M12 3C10.8181 3 9.64778 3.23279 8.55585 3.68508C7.46392 4.13738 6.47177 4.80031 5.63604 5.63604C4.80031 6.47177 4.13738 7.46392 3.68508 8.55585C3.23279 9.64778 3 10.8181 3 12C3 13.1819 3.23279 14.3522 3.68508 15.4442C4.13738 16.5361 4.80031 17.5282 5.63604 18.364C6.47177 19.1997 7.46392 19.8626 8.55585 20.3149C9.64778 20.7672 10.8181 21 12 21L12 16.05C11.4681 16.05 10.9415 15.9452 10.4501 15.7417C9.95876 15.5382 9.5123 15.2399 9.13622 14.8638C8.76014 14.4877 8.46182 14.0412 8.25829 13.5499C8.05476 13.0585 7.95 12.5319 7.95 12C7.95 11.4681 8.05476 10.9415 8.25829 10.4501C8.46182 9.95876 8.76014 9.5123 9.13622 9.13622C9.51229 8.76014 9.95876 8.46182 10.4501 8.25829C10.9415 8.05476 11.4681 7.95 12 7.95V3Z",fill:"#1685FC"}),l.createElement("path",{d:"M12 3C13.1819 3 14.3522 3.23279 15.4442 3.68508C16.5361 4.13738 17.5282 4.80031 18.364 5.63604C19.1997 6.47177 19.8626 7.46392 20.3149 8.55585C20.7672 9.64778 21 10.8181 21 12C21 13.1819 20.7672 14.3522 20.3149 15.4442C19.8626 16.5361 19.1997 17.5282 18.364 18.364C17.5282 19.1997 16.5361 19.8626 15.4442 20.3149C14.3522 20.7672 13.1819 21 12 21L12 16.05C12.5319 16.05 13.0585 15.9452 13.5499 15.7417C14.0412 15.5382 14.4877 15.2399 14.8638 14.8638C15.2399 14.4877 15.5382 14.0412 15.7417 13.5499C15.9452 13.0585 16.05 12.5319 16.05 12C16.05 11.4681 15.9452 10.9415 15.7417 10.4501C15.5382 9.95876 15.2399 9.5123 14.8638 9.13622C14.4877 8.76014 14.0412 8.46182 13.5499 8.25829C13.0585 8.05476 12.5319 7.95 12 7.95V3Z",fill:"#D6E9FF"})),l.createElement("defs",null,l.createElement("clipPath",{id:"clip0_2581_401"},l.createElement("rect",{width:"24",height:"24",rx:"4",fill:"white"}))))}),RH=Object.defineProperty,BH=Object.defineProperties,UH=Object.getOwnPropertyDescriptors,V4=Object.getOwnPropertySymbols,Iw=Object.prototype.hasOwnProperty,_w=Object.prototype.propertyIsEnumerable,Tw=(e,t,n)=>t in e?RH(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,dy=(e,t)=>{for(var n in t||(t={}))Iw.call(t,n)&&Tw(e,n,t[n]);if(V4)for(var n of V4(t))_w.call(t,n)&&Tw(e,n,t[n]);return e},OH=(e,t)=>BH(e,UH(t)),FH=(e,t)=>{var n={};for(var a in e)Iw.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&V4)for(var a of V4(e))t.indexOf(a)<0&&_w.call(e,a)&&(n[a]=e[a]);return n},VH=(0,l.forwardRef)((e,t)=>{var n=e,{size:a,spin:i,style:c}=n,d=FH(n,["size","spin","style"]);const p=dy(dy({width:a||"var(--x-icon-size, 1em)",height:a||"var(--x-icon-size, 1em)",animation:i?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),c);return l.createElement("svg",OH(dy({ref:t,style:p},d),{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),l.createElement("g",{clipPath:"url(#clip0_2581_408)"},l.createElement("path",{d:"M12 3C10.8181 3 9.64778 3.23279 8.55585 3.68508C7.46392 4.13738 6.47177 4.80031 5.63604 5.63604C4.80031 6.47177 4.13738 7.46392 3.68508 8.55585C3.23279 9.64778 3 10.8181 3 12H7.95C7.95 11.4681 8.05476 10.9415 8.25829 10.4501C8.46182 9.95876 8.76014 9.5123 9.13622 9.13622C9.51229 8.76014 9.95876 8.46182 10.4501 8.25829C10.9415 8.05476 11.4681 7.95 12 7.95V3Z",fill:"#FF5D60"}),l.createElement("path",{d:"M3 12C3 13.1819 3.23279 14.3522 3.68508 15.4442C4.13738 16.5361 4.80031 17.5282 5.63604 18.364C6.47177 19.1997 7.46392 19.8626 8.55585 20.3149C9.64778 20.7672 10.8181 21 12 21L12 16.05C11.4681 16.05 10.9415 15.9452 10.4501 15.7417C9.95876 15.5382 9.51229 15.2399 9.13622 14.8638C8.76014 14.4877 8.46182 14.0412 8.25829 13.5499C8.05476 13.0585 7.95 12.5319 7.95 12L3 12Z",fill:"#F9C74E"}),l.createElement("path",{d:"M12 3C13.1819 3 14.3522 3.23279 15.4442 3.68508C16.5361 4.13738 17.5282 4.80031 18.364 5.63604C19.1997 6.47177 19.8626 7.46392 20.3149 8.55585C20.7672 9.64778 21 10.8181 21 12H16.05C16.05 11.4681 15.9452 10.9415 15.7417 10.4501C15.5382 9.95876 15.2399 9.5123 14.8638 9.13622C14.4877 8.76014 14.0412 8.46182 13.5499 8.25829C13.0585 8.05476 12.5319 7.95 12 7.95V3Z",fill:"#E0E0E0"}),l.createElement("path",{d:"M21 12C21 13.1819 20.7672 14.3522 20.3149 15.4442C19.8626 16.5361 19.1997 17.5282 18.364 18.364C17.5282 19.1997 16.5361 19.8626 15.4442 20.3149C14.3522 20.7672 13.1819 21 12 21L12 16.05C12.5319 16.05 13.0585 15.9452 13.5499 15.7417C14.0412 15.5382 14.4877 15.2399 14.8638 14.8638C15.2399 14.4877 15.5382 14.0412 15.7417 13.5499C15.9452 13.0585 16.05 12.5319 16.05 12L21 12Z",fill:"#32C67D"})),l.createElement("defs",null,l.createElement("clipPath",{id:"clip0_2581_408"},l.createElement("rect",{width:"24",height:"24",rx:"4",fill:"white"}))))}),zH=Object.defineProperty,WH=Object.defineProperties,HH=Object.getOwnPropertyDescriptors,z4=Object.getOwnPropertySymbols,Pw=Object.prototype.hasOwnProperty,Lw=Object.prototype.propertyIsEnumerable,Nw=(e,t,n)=>t in e?zH(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,py=(e,t)=>{for(var n in t||(t={}))Pw.call(t,n)&&Nw(e,n,t[n]);if(z4)for(var n of z4(t))Lw.call(t,n)&&Nw(e,n,t[n]);return e},GH=(e,t)=>WH(e,HH(t)),ZH=(e,t)=>{var n={};for(var a in e)Pw.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&z4)for(var a of z4(e))t.indexOf(a)<0&&Lw.call(e,a)&&(n[a]=e[a]);return n},KH=(0,l.forwardRef)((e,t)=>{var n=e,{size:a,spin:i,style:c}=n,d=ZH(n,["size","spin","style"]);const p=py(py({width:a||"var(--x-icon-size, 1em)",height:a||"var(--x-icon-size, 1em)",animation:i?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),c);return l.createElement("svg",GH(py({ref:t,style:p},d),{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),l.createElement("g",{clipPath:"url(#clip0_2581_417)"},l.createElement("path",{d:"M12 3C10.8181 3 9.64778 3.23279 8.55585 3.68508C7.46392 4.13738 6.47177 4.80031 5.63604 5.63604C4.80031 6.47177 4.13738 7.46392 3.68508 8.55585C3.23279 9.64778 3 10.8181 3 12C3 13.1819 3.23279 14.3522 3.68508 15.4442C4.13738 16.5361 4.80031 17.5282 5.63604 18.364C6.47177 19.1997 7.46392 19.8626 8.55585 20.3149C9.64778 20.7672 10.8181 21 12 21L12 16.05C11.4681 16.05 10.9415 15.9452 10.4501 15.7417C9.95876 15.5382 9.5123 15.2399 9.13622 14.8638C8.76014 14.4877 8.46182 14.0412 8.25829 13.5499C8.05476 13.0585 7.95 12.5319 7.95 12C7.95 11.4681 8.05476 10.9415 8.25829 10.4501C8.46182 9.95876 8.76014 9.5123 9.13622 9.13622C9.51229 8.76014 9.95876 8.46182 10.4501 8.25829C10.9415 8.05476 11.4681 7.95 12 7.95V3Z",fill:"#375F8A"}),l.createElement("path",{d:"M12 3C13.1819 3 14.3522 3.23279 15.4442 3.68508C16.5361 4.13738 17.5282 4.80031 18.364 5.63604C19.1997 6.47177 19.8626 7.46392 20.3149 8.55585C20.7672 9.64778 21 10.8181 21 12C21 13.1819 20.7672 14.3522 20.3149 15.4442C19.8626 16.5361 19.1997 17.5282 18.364 18.364C17.5282 19.1997 16.5361 19.8626 15.4442 20.3149C14.3522 20.7672 13.1819 21 12 21L12 16.05C12.5319 16.05 13.0585 15.9452 13.5499 15.7417C14.0412 15.5382 14.4877 15.2399 14.8638 14.8638C15.2399 14.4877 15.5382 14.0412 15.7417 13.5499C15.9452 13.0585 16.05 12.5319 16.05 12C16.05 11.4681 15.9452 10.9415 15.7417 10.4501C15.5382 9.95876 15.2399 9.5123 14.8638 9.13622C14.4877 8.76014 14.0412 8.46182 13.5499 8.25829C13.0585 8.05476 12.5319 7.95 12 7.95V3Z",fill:"#53A1D9"})),l.createElement("defs",null,l.createElement("clipPath",{id:"clip0_2581_417"},l.createElement("rect",{width:"24",height:"24",rx:"4",fill:"white"}))))}),YH=Object.defineProperty,XH=Object.defineProperties,QH=Object.getOwnPropertyDescriptors,W4=Object.getOwnPropertySymbols,jw=Object.prototype.hasOwnProperty,Dw=Object.prototype.propertyIsEnumerable,Rw=(e,t,n)=>t in e?YH(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,uy=(e,t)=>{for(var n in t||(t={}))jw.call(t,n)&&Rw(e,n,t[n]);if(W4)for(var n of W4(t))Dw.call(t,n)&&Rw(e,n,t[n]);return e},JH=(e,t)=>XH(e,QH(t)),qH=(e,t)=>{var n={};for(var a in e)jw.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&W4)for(var a of W4(e))t.indexOf(a)<0&&Dw.call(e,a)&&(n[a]=e[a]);return n},$H=(0,l.forwardRef)((e,t)=>{var n=e,{size:a,spin:i,style:c}=n,d=qH(n,["size","spin","style"]);const p=uy(uy({width:a||"var(--x-icon-size, 1em)",height:a||"var(--x-icon-size, 1em)",animation:i?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),c);return l.createElement("svg",JH(uy({ref:t,style:p},d),{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),l.createElement("g",{clipPath:"url(#clip0_2581_424)"},l.createElement("path",{d:"M12 3C10.8181 3 9.64778 3.23279 8.55585 3.68508C7.46392 4.13738 6.47177 4.80031 5.63604 5.63604C4.80031 6.47177 4.13738 7.46392 3.68508 8.55585C3.23279 9.64778 3 10.8181 3 12C3 13.1819 3.23279 14.3522 3.68508 15.4442C4.13738 16.5361 4.80031 17.5282 5.63604 18.364C6.47177 19.1997 7.46392 19.8626 8.55585 20.3149C9.64778 20.7672 10.8181 21 12 21L12 16.05C11.4681 16.05 10.9415 15.9452 10.4501 15.7417C9.95876 15.5382 9.5123 15.2399 9.13622 14.8638C8.76014 14.4877 8.46182 14.0412 8.25829 13.5499C8.05476 13.0585 7.95 12.5319 7.95 12C7.95 11.4681 8.05476 10.9415 8.25829 10.4501C8.46182 9.95876 8.76014 9.5123 9.13622 9.13622C9.51229 8.76014 9.95876 8.46182 10.4501 8.25829C10.9415 8.05476 11.4681 7.95 12 7.95V3Z",fill:"#39CCBC"}),l.createElement("path",{d:"M12 3C13.1819 3 14.3522 3.23279 15.4442 3.68508C16.5361 4.13738 17.5282 4.80031 18.364 5.63604C19.1997 6.47177 19.8626 7.46392 20.3149 8.55585C20.7672 9.64778 21 10.8181 21 12C21 13.1819 20.7672 14.3522 20.3149 15.4442C19.8626 16.5361 19.1997 17.5282 18.364 18.364C17.5282 19.1997 16.5361 19.8626 15.4442 20.3149C14.3522 20.7672 13.1819 21 12 21L12 16.05C12.5319 16.05 13.0585 15.9452 13.5499 15.7417C14.0412 15.5382 14.4877 15.2399 14.8638 14.8638C15.2399 14.4877 15.5382 14.0412 15.7417 13.5499C15.9452 13.0585 16.05 12.5319 16.05 12C16.05 11.4681 15.9452 10.9415 15.7417 10.4501C15.5382 9.95876 15.2399 9.5123 14.8638 9.13622C14.4877 8.76014 14.0412 8.46182 13.5499 8.25829C13.0585 8.05476 12.5319 7.95 12 7.95V3Z",fill:"#E0E0E0"})),l.createElement("defs",null,l.createElement("clipPath",{id:"clip0_2581_424"},l.createElement("rect",{width:"24",height:"24",rx:"4",fill:"white"}))))}),eG=Object.defineProperty,tG=Object.defineProperties,nG=Object.getOwnPropertyDescriptors,H4=Object.getOwnPropertySymbols,Bw=Object.prototype.hasOwnProperty,Uw=Object.prototype.propertyIsEnumerable,Ow=(e,t,n)=>t in e?eG(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,hy=(e,t)=>{for(var n in t||(t={}))Bw.call(t,n)&&Ow(e,n,t[n]);if(H4)for(var n of H4(t))Uw.call(t,n)&&Ow(e,n,t[n]);return e},oG=(e,t)=>tG(e,nG(t)),aG=(e,t)=>{var n={};for(var a in e)Bw.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&H4)for(var a of H4(e))t.indexOf(a)<0&&Uw.call(e,a)&&(n[a]=e[a]);return n},rG=(0,l.forwardRef)((e,t)=>{var n=e,{size:a,spin:i,style:c}=n,d=aG(n,["size","spin","style"]);const p=hy(hy({width:a||"var(--x-icon-size, 1em)",height:a||"var(--x-icon-size, 1em)",animation:i?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),c);return l.createElement("svg",oG(hy({ref:t,style:p},d),{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),l.createElement("g",{clipPath:"url(#clip0_2581_431)"},l.createElement("path",{d:"M12 3C10.8181 3 9.64778 3.23279 8.55585 3.68508C7.46392 4.13738 6.47177 4.80031 5.63604 5.63604C4.80031 6.47177 4.13738 7.46392 3.68508 8.55585C3.23279 9.64778 3 10.8181 3 12C3 13.1819 3.23279 14.3522 3.68508 15.4442C4.13738 16.5361 4.80031 17.5282 5.63604 18.364C6.47177 19.1997 7.46392 19.8626 8.55585 20.3149C9.64778 20.7672 10.8181 21 12 21L12 16.05C11.4681 16.05 10.9415 15.9452 10.4501 15.7417C9.95876 15.5382 9.5123 15.2399 9.13622 14.8638C8.76014 14.4877 8.46182 14.0412 8.25829 13.5499C8.05476 13.0585 7.95 12.5319 7.95 12C7.95 11.4681 8.05476 10.9415 8.25829 10.4501C8.46182 9.95876 8.76014 9.5123 9.13622 9.13622C9.51229 8.76014 9.95876 8.46182 10.4501 8.25829C10.9415 8.05476 11.4681 7.95 12 7.95V3Z",fill:"#252626"}),l.createElement("mask",{id:"path-3-inside-1_2581_431",fill:"white"},l.createElement("path",{d:"M12 3C13.1819 3 14.3522 3.23279 15.4442 3.68508C16.5361 4.13738 17.5282 4.80031 18.364 5.63604C19.1997 6.47177 19.8626 7.46392 20.3149 8.55585C20.7672 9.64778 21 10.8181 21 12C21 13.1819 20.7672 14.3522 20.3149 15.4442C19.8626 16.5361 19.1997 17.5282 18.364 18.364C17.5282 19.1997 16.5361 19.8626 15.4442 20.3149C14.3522 20.7672 13.1819 21 12 21L12 16.05C12.5319 16.05 13.0585 15.9452 13.5499 15.7417C14.0412 15.5382 14.4877 15.2399 14.8638 14.8638C15.2399 14.4877 15.5382 14.0412 15.7417 13.5499C15.9452 13.0585 16.05 12.5319 16.05 12C16.05 11.4681 15.9452 10.9415 15.7417 10.4501C15.5382 9.95876 15.2399 9.5123 14.8638 9.13622C14.4877 8.76014 14.0412 8.46182 13.5499 8.25829C13.0585 8.05476 12.5319 7.95 12 7.95V3Z"})),l.createElement("path",{d:"M12 3C13.1819 3 14.3522 3.23279 15.4442 3.68508C16.5361 4.13738 17.5282 4.80031 18.364 5.63604C19.1997 6.47177 19.8626 7.46392 20.3149 8.55585C20.7672 9.64778 21 10.8181 21 12C21 13.1819 20.7672 14.3522 20.3149 15.4442C19.8626 16.5361 19.1997 17.5282 18.364 18.364C17.5282 19.1997 16.5361 19.8626 15.4442 20.3149C14.3522 20.7672 13.1819 21 12 21L12 16.05C12.5319 16.05 13.0585 15.9452 13.5499 15.7417C14.0412 15.5382 14.4877 15.2399 14.8638 14.8638C15.2399 14.4877 15.5382 14.0412 15.7417 13.5499C15.9452 13.0585 16.05 12.5319 16.05 12C16.05 11.4681 15.9452 10.9415 15.7417 10.4501C15.5382 9.95876 15.2399 9.5123 14.8638 9.13622C14.4877 8.76014 14.0412 8.46182 13.5499 8.25829C13.0585 8.05476 12.5319 7.95 12 7.95V3Z",fill:"white",stroke:"black",mask:"url(#path-3-inside-1_2581_431)"})),l.createElement("defs",null,l.createElement("clipPath",{id:"clip0_2581_431"},l.createElement("rect",{width:"24",height:"24",rx:"4",fill:"white"}))))}),iG=Object.defineProperty,sG=Object.defineProperties,lG=Object.getOwnPropertyDescriptors,G4=Object.getOwnPropertySymbols,Fw=Object.prototype.hasOwnProperty,Vw=Object.prototype.propertyIsEnumerable,zw=(e,t,n)=>t in e?iG(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,my=(e,t)=>{for(var n in t||(t={}))Fw.call(t,n)&&zw(e,n,t[n]);if(G4)for(var n of G4(t))Vw.call(t,n)&&zw(e,n,t[n]);return e},cG=(e,t)=>sG(e,lG(t)),dG=(e,t)=>{var n={};for(var a in e)Fw.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&G4)for(var a of G4(e))t.indexOf(a)<0&&Vw.call(e,a)&&(n[a]=e[a]);return n},pG=(0,l.forwardRef)((e,t)=>{var n=e,{size:a,spin:i,style:c}=n,d=dG(n,["size","spin","style"]);const p=my(my({width:a||"var(--x-icon-size, 1em)",height:a||"var(--x-icon-size, 1em)",animation:i?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),c);return l.createElement("svg",cG(my({ref:t,style:p},d),{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),l.createElement("g",{clipPath:"url(#clip0_2581_438)"},l.createElement("path",{d:"M12 3C10.8181 3 9.64778 3.23279 8.55585 3.68508C7.46392 4.13738 6.47177 4.80031 5.63604 5.63604C4.80031 6.47177 4.13738 7.46392 3.68508 8.55585C3.23279 9.64778 3 10.8181 3 12C3 13.1819 3.23279 14.3522 3.68508 15.4442C4.13738 16.5361 4.80031 17.5282 5.63604 18.364C6.47177 19.1997 7.46392 19.8626 8.55585 20.3149C9.64778 20.7672 10.8181 21 12 21L12 16.05C11.4681 16.05 10.9415 15.9452 10.4501 15.7417C9.95876 15.5382 9.5123 15.2399 9.13622 14.8638C8.76014 14.4877 8.46182 14.0412 8.25829 13.5499C8.05476 13.0585 7.95 12.5319 7.95 12C7.95 11.4681 8.05476 10.9415 8.25829 10.4501C8.46182 9.95876 8.76014 9.5123 9.13622 9.13622C9.51229 8.76014 9.95876 8.46182 10.4501 8.25829C10.9415 8.05476 11.4681 7.95 12 7.95V3Z",fill:"#252626"}),l.createElement("path",{d:"M12 3C13.1819 3 14.3522 3.23279 15.4442 3.68508C16.5361 4.13738 17.5282 4.80031 18.364 5.63604C19.1997 6.47177 19.8626 7.46392 20.3149 8.55585C20.7672 9.64778 21 10.8181 21 12C21 13.1819 20.7672 14.3522 20.3149 15.4442C19.8626 16.5361 19.1997 17.5282 18.364 18.364C17.5282 19.1997 16.5361 19.8626 15.4442 20.3149C14.3522 20.7672 13.1819 21 12 21L12 16.05C12.5319 16.05 13.0585 15.9452 13.5499 15.7417C14.0412 15.5382 14.4877 15.2399 14.8638 14.8638C15.2399 14.4877 15.5382 14.0412 15.7417 13.5499C15.9452 13.0585 16.05 12.5319 16.05 12C16.05 11.4681 15.9452 10.9415 15.7417 10.4501C15.5382 9.95876 15.2399 9.5123 14.8638 9.13622C14.4877 8.76014 14.0412 8.46182 13.5499 8.25829C13.0585 8.05476 12.5319 7.95 12 7.95V3Z",fill:"#6D6D6D"})),l.createElement("defs",null,l.createElement("clipPath",{id:"clip0_2581_438"},l.createElement("rect",{width:"24",height:"24",rx:"4",fill:"white"}))))});const uG=M.Ay.div.withConfig({displayName:"styles__StyledMindCard",componentId:"sc-1os78nl-0"})(["&.theme-container{display:flex;flex-direction:column;justify-content:center;align-items:center;.img-container{width:110px;height:82px;border-radius:4px;border:1px solid ",";position:relative;box-sizing:content-box;background-color:",";img{width:100%;border-radius:4px;}.frame{position:absolute;border-radius:6px;pointer-events:none;inset:-2px;}}.theme-title{margin-top:4px;}}"],e=>e.theme.color_bg_border_02,e=>e.theme.color_text_btn),hG=M.Ay.div.withConfig({displayName:"styles__StyledMindThemeOptionContainers",componentId:"sc-1os78nl-1"})(["&.mind-theme-options{display:grid;grid-row-gap:8px;grid-column-gap:16px;border-radius:8px;padding:20px;grid-template-columns:repeat(2,110px);.draft-toolbar-dropdown-option{width:110px;height:103px;padding:0;margin:0;&:active{background-color:unset;}&:not(.active):hover{background-color:unset;.frame{box-shadow:#79BAFF 0 0 0 2px inset;}}&.active{background-color:unset;.frame{box-shadow:"," 0 0 0 2px inset;}}}}"],e=>e.theme.color_proto),mG=(0,l.memo)(e=>{const{config:t,dropdownPosition:n,widget:a,onChange:i}=e,{title:c}=t,{hotAttr:{theme:d}}=a,p=(0,l.useRef)(null),h=(0,l.useMemo)(()=>[{theme:Ye.dr.DEFAULT,src:"default",title:I18N.FloatingToolbar.Mind.themeSelect.default,icon:(0,o.jsx)(DH,{size:24})},{theme:Ye.dr.RAINBOW,src:"rainbow",title:I18N.FloatingToolbar.Mind.themeSelect.rainbow,icon:(0,o.jsx)(VH,{size:24})},{theme:Ye.dr.RETRO,src:"retro",title:I18N.FloatingToolbar.Mind.themeSelect.retro,icon:(0,o.jsx)(KH,{size:24})},{theme:Ye.dr.YOUTH,src:"youth",title:I18N.FloatingToolbar.Mind.themeSelect.youth,icon:(0,o.jsx)($H,{size:24})},{theme:Ye.dr.CLASSICAL,src:"classical",title:I18N.FloatingToolbar.Mind.themeSelect.classical,icon:(0,o.jsx)(rG,{size:24})},{theme:Ye.dr.DARK,src:"dark",title:I18N.FloatingToolbar.Mind.themeSelect.dark,icon:(0,o.jsx)(pG,{size:24})}],[]),m=(0,l.useMemo)(()=>{var v;return(v=h.find(A=>A.theme===d))==null?void 0:v.icon},[h,d]),x=v=>{var A,k;i(v),(A=p.current)==null||(k=A.close)==null||k.call(A)};return(0,o.jsx)(Rl,{ref:p,title:c,top:n==="bottom"?40:-372,left:ENV.IS_MO?-10:-16,trigger:(0,o.jsxs)("div",{className:"trigger-container has-arrow",children:[(0,o.jsx)("div",{className:"trigger-icon size-24 margin-right-2 pure-icon",children:m}),(0,o.jsx)("div",{className:"trigger",children:(0,o.jsx)(j0.A,{className:"arrow",size:14})})]}),children:(0,o.jsx)(hG,{className:"content-container mind-theme-options",children:h.map((v,A)=>{let{theme:k,src:R,title:F}=v;return(0,o.jsx)(N0,{value:k,active:d===k,supTitle:F,onClick:()=>x(k),children:(0,o.jsx)(fG,{src:R,title:F})},A)})})})}),fG=e=>{let{src:t,title:n}=e;return(0,o.jsxs)(uG,{className:"theme-container",children:[(0,o.jsxs)("div",{className:"img-container",children:[(0,o.jsx)("img",{src:"/mb-proto2/images/floatingToolbar/mind_v1/"+t+((0,sl.k)()?"":"_en")+".png",alt:""}),(0,o.jsx)("span",{className:"frame"})]}),(0,o.jsx)("span",{className:"theme-title",children:n})]})};var gG=Object.defineProperty,yG=Object.defineProperties,xG=Object.getOwnPropertyDescriptors,Z4=Object.getOwnPropertySymbols,Ww=Object.prototype.hasOwnProperty,Hw=Object.prototype.propertyIsEnumerable,Gw=(e,t,n)=>t in e?gG(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,fy=(e,t)=>{for(var n in t||(t={}))Ww.call(t,n)&&Gw(e,n,t[n]);if(Z4)for(var n of Z4(t))Hw.call(t,n)&&Gw(e,n,t[n]);return e},vG=(e,t)=>yG(e,xG(t)),bG=(e,t)=>{var n={};for(var a in e)Ww.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&Z4)for(var a of Z4(e))t.indexOf(a)<0&&Hw.call(e,a)&&(n[a]=e[a]);return n},wG=(0,l.forwardRef)((e,t)=>{var n=e,{size:a,spin:i,style:c}=n,d=bG(n,["size","spin","style"]);const p=fy(fy({width:a||"var(--x-icon-size, 1em)",height:a||"var(--x-icon-size, 1em)",animation:i?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),c);return l.createElement("svg",vG(fy({ref:t,style:p},d),{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),l.createElement("path",{d:"M11.8751 4.125C16.1553 4.125 19.6251 7.59479 19.6251 11.875C19.6251 13.745 18.9624 15.46 17.8595 16.7988L19.6554 18.5947C19.948 18.8876 19.9482 19.3625 19.6554 19.6553C19.3626 19.9481 18.8878 19.9479 18.5948 19.6553L16.799 17.8594C15.4601 18.9622 13.7451 19.625 11.8751 19.625C7.59492 19.625 4.12512 16.1552 4.12512 11.875C4.12512 7.59479 7.59492 4.125 11.8751 4.125ZM11.8751 5.625C8.42334 5.625 5.62512 8.42322 5.62512 11.875C5.62512 15.3268 8.42334 18.125 11.8751 18.125C15.3269 18.125 18.1251 15.3268 18.1251 11.875C18.1251 8.42322 15.3269 5.625 11.8751 5.625ZM11.8751 8.125C12.2893 8.125 12.6251 8.46079 12.6251 8.875V11.125H14.8751C15.2893 11.125 15.6251 11.4608 15.6251 11.875C15.6251 12.2892 15.2893 12.625 14.8751 12.625H12.6251V14.875C12.6251 15.2892 12.2893 15.625 11.8751 15.625C11.4609 15.625 11.1251 15.2892 11.1251 14.875V12.625H8.87512C8.46091 12.625 8.12512 12.2892 8.12512 11.875C8.12512 11.4608 8.46091 11.125 8.87512 11.125H11.1251V8.875C11.1251 8.46079 11.4609 8.125 11.8751 8.125Z",fill:"black"}))});const Zw=e=>[{component:v6,styleConfig:{title:e.TextToolbar.textColor,left:ENV.IS_MO?-10:-16,hasColorBtn:!0,colors:[{color:"rgba(25, 25, 25, 1)",borderColor:"rgba(96, 96, 96, 1)"},{color:"rgba(22, 132, 252, 1)",borderColor:"rgba(0, 101, 210, 1)"},{color:"rgba(138, 56, 245, 1)",borderColor:"rgba(104, 1, 239, 1)"},{color:"rgba(102, 102, 102, 1)",borderColor:"rgba(79, 79, 79, 1)"},{color:"rgba(251, 251, 251, 1)",borderColor:"rgba(203, 199, 199, 1)"},{color:"rgba(236, 73, 84, 1)",borderColor:"rgba(226, 25, 39, 1)"},{color:"rgba(255, 159, 41, 1)",borderColor:"rgba(255, 138, 0, 1)"}]}},jf(),{component:i4,styleConfig:{title:e.TextToolbar.style0}}],CG=e=>({component:_9,styleConfig:{inDropdown:!1,icon:"draft/link",className:"draft-link",title:e.TextToolbar.url0}}),Kw=e=>({component:SH,styleConfig:{title:e.FloatingToolbar.Mind.flag},getMiddleProps:t=>{const{selectedMindNodeKeys:n,recentlyUsedScreenMetaIcons:a,dispatch:i}=t,c=n[0];return{widget:sdkStore.getHotItem(c),onChangeIcon:h=>{sdkStore.combineMergeMark("update-mindNode-icon"),i({type:"entry:widget:change",payload:{flatChgList:[{key:c,hotAttr:{icon:h}}],shouldReBuildTree:!0,isCombineChange:!1}}),i({type:"entry:mind:update:mind-size",payload:{isCombineChange:!1}}),sdkStore.combineMerge("update-mindNode-icon"),i({type:"mind:update:state",payload:{selectedMindNodeFlagIconKey:c}});const m=Array.from(new Set(a));m.unshift(h);const x=JSON.stringify(m.splice(0,12));i({type:"entry:update:preference-data",payload:{recently_used_screen_meta_icons:x}})}}}}),Yw=e=>({component:_H,styleConfig:{title:e.TextToolbar.image0,options:[{key:"local",label:e.TextToolbar.image1},{key:"gallery",label:e.TextToolbar.image2}]},getMiddleProps:t=>{const{selectedMindNodeKeys:n,dispatch:a}=t,i=n[0];return{onChange:d=>{const p=[{key:i,hotAttr:{image:d}}];sdkStore.combineMergeMark("update-mindNode-image"),a({type:"entry:widget:change",payload:{flatChgList:p,shouldReBuildTree:!0,isCombineChange:!1}}),a({type:"entry:mind:update:mind-size",payload:{isCombineChange:!1}}),a({type:"mind:update:state",payload:{selectedMindNodeImageKey:i}}),sdkStore.combineMerge("update-mindNode-image")}}}}),Xw=e=>[{component:Wg,styleConfig:{title:e.FloatingToolbar.Mind.bgColor,hasCheck:!0,hasColorBtn:!0,colors:[{color:"#ffffff"},{color:"#e6e6e6"},{color:"#ff9e93"},{color:"#9dc4ff"},{color:"#54d691"},{color:"#daa3ff"},{color:"#fdd143"},{color:"#ff9e47"}]},getMiddleProps:t=>{var n;const{selectedMindNodeKeys:a,dispatch:i}=t,c=a[0],d=sdkStore.getHotItem(c);return{fill:d==null||(n=d.hotAttr)==null?void 0:n.fill,handleColorChange:v=>{const A={fill:v},k=a.map(R=>({key:R,hotAttr:A}));i({type:"entry:widget:change",payload:{flatChgList:k}})},onOpenColorPanel:()=>{i({type:"mind:update:isShallowEditText",payload:!1})},onCloseColorPanel:()=>{i({type:"mind:update:isShallowEditText",payload:!0})}}}},{component:a6,styleConfig:{title:e.FloatingToolbar.Mind.stroke,hasCheck:!0,hasColorBtn:!0,colors:[{color:"#191919"},{color:"#666666"},{color:"#ffffff"},{color:"#1684fc"},{color:"#00A056"},{color:"#9B33E1"},{color:"#E96200"},{color:"#EC4954"}]},getMiddleProps:t=>{var n;const{selectedMindNodeKeys:a,dispatch:i}=t,c=a[0],d=sdkStore.getHotItem(c);return{border:d==null||(n=d.hotAttr)==null?void 0:n.border,handleBorderChange:m=>{const x={border:m};sdkStore.combineMergeMark("update-mindNode-stroke");const v=a.map(A=>({key:A,hotAttr:x}));i({type:"entry:widget:change",payload:{flatChgList:v,shouldReBuildTree:!0,isCombineChange:!1}}),i({type:"entry:mind:update:mind-size",payload:{isCombineChange:!1}}),sdkStore.combineMerge("update-mindNode-stroke")}}}}],SG=()=>({getCommonProps:e=>Qw(e),controlConfig:[...Zw(I18N),q0,CG(I18N),Kw(I18N),Yw(I18N),q0,...Xw(I18N)]}),AG=()=>({getCommonProps:e=>Qw(e),controlConfig:[...Zw(I18N),q0,...Xw(I18N)]}),kG=()=>({controlConfig:[Kw(I18N),{component:ww,getMiddleProps:e=>{const{selectedMindNodeKeys:t,dispatch:n}=e;return{onDelete:()=>{sdkStore.combineMergeMark("delete-mindNode-icon"),n({type:"entry:widget:change",payload:{flatChgList:[{key:t[0],hotAttr:{icon:""}}],shouldReBuildTree:!0,isCombineChange:!1}}),n({type:"mind:update:state",payload:{selectedMindNodeFlagIconKey:""}}),n({type:"entry:mind:update:mind-size",payload:{isCombineChange:!1}}),sdkStore.combineMerge("delete-mindNode-icon")}}}}]}),MG=()=>({controlConfig:[Yw(I18N),{component:Ph,styleConfig:{icon:(0,o.jsx)(wG,{size:24}),title:"\u9884\u89C8"},getMiddleProps:e=>{var t,n;const{selectedMindNodeKeys:a,dispatch:i}=e,c=a[0],d=sdkStore.getHotItem(c),p=(t=d==null||(n=d.hotAttr)==null||(n=n.image)==null?void 0:n.imageRef)!=null?t:"",h=(0,Af.Kf)(p);return{onClick:()=>{i({type:"modal:update:state",payload:{imagePreviewModal:{isOpen:!0,imgSrc:h,alt:""}}})}}}},{component:ww,getMiddleProps:e=>{const{selectedMindNodeKeys:t,dispatch:n}=e;return{onDelete:()=>{sdkStore.combineMergeMark("delete-mindNode-image"),n({type:"entry:widget:change",payload:{flatChgList:[{key:t[0],hotAttr:{image:{imageRef:"",imageRectWidth:0,imageRectHeight:0}}}],shouldReBuildTree:!0,isCombineChange:!1}}),n({type:"mind:update:state",payload:{selectedMindNodeImageKey:""}}),n({type:"entry:mind:update:mind-size",payload:{isCombineChange:!1}}),sdkStore.combineMerge("delete-mindNode-image")}}}}]}),Qw=e=>{let{dispatch:t,selectedMindNodeKeys:n,isShallowEditText:a}=e;const i=n[0],c=sdkStore.getHotItem(i),d=()=>{const{_getEditorState:x}=(0,cn.DT)();return a?null:x&&x()},p=(x,v)=>{const{_setEditorState:A}=(0,cn.DT)();A&&A(x,v)},h=(x,v)=>{Lh({attr:mw[x],value:v,dispatch:t})},m=x=>(0,_0.mj)({baseItem:{type:c.hotAttr.type,richTextV1:c.hotAttr.richTextV1,textV1:c.hotAttr.textV1},isEditing:!!x,richTextEditorState:x});return{widget:c,onChange:p,editorState:d(),getEditorState:d,onEditorStateChange:p,setTextV1:h,getTextV1:m}},EG=()=>[{component:mG,styleConfig:{title:I18N.FloatingToolbar.Mind.theme},getMiddleProps:e=>{const{theme:t,widget:n,dispatch:a}=e;return{theme:t,onChange:c=>{a({type:"entry:widget:change",payload:{flatChgList:[{key:n.key,hotAttr:{theme:c}}]}})}}}},{component:Wg,styleConfig:{title:I18N.FloatingToolbar.Mind.bgColor,hasCheck:!0,hasColorBtn:!0,colors:[{color:"#ffffff"},{color:"#e6e6e6"},{color:"#ff9e93"},{color:"#9dc4ff"},{color:"#54d691"},{color:"#daa3ff"},{color:"#fdd143"},{color:"#ff9e47"}]},getMiddleProps:e=>{const{widget:t,dispatch:n}=e;return{fill:t.hotAttr.fill,handleColorChange:c=>{n({type:"entry:widget:change",payload:{flatChgList:[{key:t.key,hotAttr:{fill:c}}]}})}}}},{component:a6,styleConfig:{title:I18N.FloatingToolbar.Mind.stroke,hasCheck:!0,hasColorBtn:!0,colors:[{color:"#191919"},{color:"#666666"},{color:"#ffffff"},{color:"#1684fc"},{color:"#00A056"},{color:"#9B33E1"},{color:"#E96200"},{color:"#EC4954"}]},getMiddleProps:e=>{const{widget:t,dispatch:n}=e;return{border:t.hotAttr.border,handleBorderChange:c=>{n({type:"entry:widget:change",payload:{flatChgList:[{key:t.key,hotAttr:{border:c}}]}})}}}}],IG=e=>{var t;const n=(t=e.selectedMindNodeKeys)==null?void 0:t.length;if(n){const a=n===1,i=a&&e.selectedMindNodeKeys.includes(e.selectedMindNodeFlagIconKey),c=a&&e.selectedMindNodeKeys.includes(e.selectedMindNodeImageKey);return n>1?AG():i?kG():c?MG():SG()}else return{controlConfig:EG()}};var _G=Object.defineProperty,TG=Object.defineProperties,PG=Object.getOwnPropertyDescriptors,K4=Object.getOwnPropertySymbols,Jw=Object.prototype.hasOwnProperty,qw=Object.prototype.propertyIsEnumerable,$w=(e,t,n)=>t in e?_G(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,gy=(e,t)=>{for(var n in t||(t={}))Jw.call(t,n)&&$w(e,n,t[n]);if(K4)for(var n of K4(t))qw.call(t,n)&&$w(e,n,t[n]);return e},LG=(e,t)=>TG(e,PG(t)),NG=(e,t)=>{var n={};for(var a in e)Jw.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&K4)for(var a of K4(e))t.indexOf(a)<0&&qw.call(e,a)&&(n[a]=e[a]);return n},jG=(0,l.forwardRef)((e,t)=>{var n=e,{size:a,spin:i,style:c}=n,d=NG(n,["size","spin","style"]);const p=gy(gy({width:a||"var(--x-icon-size, 1em)",height:a||"var(--x-icon-size, 1em)",animation:i?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),c);return l.createElement("svg",LG(gy({ref:t,style:p},d),{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),l.createElement("path",{d:"M5.75 5C5.33579 5 5 5.33579 5 5.75V18.25C5 18.6642 5.33579 19 5.75 19C6.16421 19 6.5 18.6642 6.5 18.25V12.5L13.5 12.5V18.25C13.5 18.6642 13.8358 19 14.25 19C14.6642 19 15 18.6642 15 18.25V5.75C15 5.33579 14.6642 5 14.25 5C13.8358 5 13.5 5.33579 13.5 5.75V11L6.5 11V5.75C6.5 5.33579 6.16421 5 5.75 5Z",fill:"#19191A"}),l.createElement("path",{d:"M19.5368 12.7275C19.5368 12.1752 19.089 11.7275 18.5368 11.7275H18.3814C18.192 11.7275 18.0065 11.7813 17.8465 11.8826L16.56 12.6971C16.3925 12.8031 16.291 12.9876 16.291 13.1858C16.291 13.6404 16.7914 13.9174 17.1766 13.6759L17.9565 13.187H17.9991V18.2314C17.9991 18.656 18.3433 19.0002 18.7679 19.0002C19.1925 19.0002 19.5368 18.656 19.5368 18.2314V12.7275Z",fill:"#19191A"}))}),DG=Object.defineProperty,RG=Object.defineProperties,BG=Object.getOwnPropertyDescriptors,Y4=Object.getOwnPropertySymbols,eC=Object.prototype.hasOwnProperty,tC=Object.prototype.propertyIsEnumerable,nC=(e,t,n)=>t in e?DG(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,yy=(e,t)=>{for(var n in t||(t={}))eC.call(t,n)&&nC(e,n,t[n]);if(Y4)for(var n of Y4(t))tC.call(t,n)&&nC(e,n,t[n]);return e},UG=(e,t)=>RG(e,BG(t)),OG=(e,t)=>{var n={};for(var a in e)eC.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&Y4)for(var a of Y4(e))t.indexOf(a)<0&&tC.call(e,a)&&(n[a]=e[a]);return n},FG=(0,l.forwardRef)((e,t)=>{var n=e,{size:a,spin:i,style:c}=n,d=OG(n,["size","spin","style"]);const p=yy(yy({width:a||"var(--x-icon-size, 1em)",height:a||"var(--x-icon-size, 1em)",animation:i?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),c);return l.createElement("svg",UG(yy({ref:t,style:p},d),{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),l.createElement("path",{d:"M5.75 5C5.33579 5 5 5.33579 5 5.75V18.25C5 18.6642 5.33579 19 5.75 19C6.16421 19 6.5 18.6642 6.5 18.25V12.5L13.5 12.5V18.25C13.5 18.6642 13.8358 19 14.25 19C14.6642 19 15 18.6642 15 18.25V5.75C15 5.33579 14.6642 5 14.25 5C13.8358 5 13.5 5.33579 13.5 5.75V11L6.5 11V5.75C6.5 5.33579 6.16421 5 5.75 5Z",fill:"#19191A"}),l.createElement("path",{d:"M15.8132 18.229C15.8132 18.6549 16.1584 19.0001 16.5843 19.0001H20.3693C20.7165 19.0001 20.9979 18.7187 20.9979 18.3715C20.9979 18.0244 20.7165 17.743 20.3693 17.743H17.9439V17.6933L19.0057 16.6528C19.5052 16.1982 19.8923 15.8088 20.1669 15.4845C20.4415 15.1578 20.6321 14.8606 20.7386 14.5931C20.8475 14.3256 20.902 14.0545 20.902 13.7799C20.902 13.3609 20.7943 12.9892 20.5788 12.6649C20.3634 12.3405 20.0616 12.0872 19.6733 11.9049C19.2874 11.7203 18.834 11.6279 18.3132 11.6279C17.8066 11.6279 17.3591 11.7238 16.9709 11.9156C16.5826 12.1073 16.2808 12.3784 16.0653 12.7288C15.9671 12.8885 15.8913 13.0613 15.8379 13.2471C15.7265 13.6344 16.0689 13.9681 16.4719 13.9681H16.5803C16.9235 13.9681 17.1747 13.6706 17.3366 13.368C17.4266 13.1999 17.5545 13.0709 17.7202 12.9809C17.8859 12.891 18.08 12.846 18.3026 12.846C18.5156 12.846 18.7062 12.8886 18.8743 12.9738C19.0424 13.0567 19.175 13.1762 19.272 13.3325C19.3691 13.4864 19.4176 13.6698 19.4176 13.8829C19.4176 14.0747 19.3786 14.2534 19.3004 14.4191C19.2223 14.5825 19.1075 14.7494 18.956 14.9198C18.8068 15.0903 18.6222 15.282 18.402 15.4951L16.0604 17.6632C15.9028 17.8092 15.8132 18.0142 15.8132 18.229Z",fill:"#19191A"}))}),VG=Object.defineProperty,zG=Object.defineProperties,WG=Object.getOwnPropertyDescriptors,X4=Object.getOwnPropertySymbols,oC=Object.prototype.hasOwnProperty,aC=Object.prototype.propertyIsEnumerable,rC=(e,t,n)=>t in e?VG(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,xy=(e,t)=>{for(var n in t||(t={}))oC.call(t,n)&&rC(e,n,t[n]);if(X4)for(var n of X4(t))aC.call(t,n)&&rC(e,n,t[n]);return e},HG=(e,t)=>zG(e,WG(t)),GG=(e,t)=>{var n={};for(var a in e)oC.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&X4)for(var a of X4(e))t.indexOf(a)<0&&aC.call(e,a)&&(n[a]=e[a]);return n},ZG=(0,l.forwardRef)((e,t)=>{var n=e,{size:a,spin:i,style:c}=n,d=GG(n,["size","spin","style"]);const p=xy(xy({width:a||"var(--x-icon-size, 1em)",height:a||"var(--x-icon-size, 1em)",animation:i?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),c);return l.createElement("svg",HG(xy({ref:t,style:p},d),{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),l.createElement("path",{d:"M14.25 5C13.8358 5 13.5 5.33579 13.5 5.75V11L6.5 11V5.75015C6.5 5.33594 6.16421 5.00015 5.75 5.00015C5.33579 5.00015 5 5.33594 5 5.75015V18.2502C5 18.6644 5.33579 19.0002 5.75 19.0002C6.16421 19.0002 6.5 18.6644 6.5 18.2502V12.5L13.5 12.5V18.25C13.5 18.6642 13.8358 19 14.25 19C14.6642 19 15 18.6642 15 18.25V5.75C15 5.33579 14.6642 5 14.25 5Z",fill:"#19191A"}),l.createElement("path",{d:"M16.8423 18.6982C17.2566 18.8804 17.7289 18.9716 18.2592 18.9716C18.8037 18.9716 19.2867 18.8793 19.7081 18.6946C20.1295 18.5099 20.4598 18.2566 20.6989 17.9347C20.9403 17.6127 21.0599 17.2446 21.0575 16.8303C21.0599 16.3781 20.9202 16.0017 20.6385 15.701C20.3591 15.398 19.9519 15.2121 19.4169 15.1435V15.0866C19.8241 15.0133 20.1544 14.8404 20.4077 14.5682C20.6634 14.2959 20.79 13.9562 20.7876 13.549C20.79 13.1655 20.6858 12.8198 20.4751 12.5121C20.2668 12.2019 19.9744 11.9557 19.598 11.7734C19.2216 11.5911 18.7824 11.5 18.2805 11.5C17.7834 11.5 17.3371 11.5911 16.9418 11.7734C16.5488 11.9534 16.2363 12.2031 16.0043 12.5227C15.9195 12.6395 15.8497 12.7629 15.795 12.893C15.6335 13.2766 15.9867 13.6307 16.4029 13.6307H16.6C16.89 13.6307 17.111 13.3787 17.2862 13.1477C17.3904 13.0104 17.5289 12.9051 17.7017 12.8317C17.8745 12.7559 18.0651 12.718 18.2734 12.718C18.4794 12.718 18.6593 12.7571 18.8132 12.8352C18.9695 12.9134 19.0902 13.0223 19.1754 13.1619C19.263 13.2992 19.3068 13.459 19.3068 13.6413C19.3068 13.8331 19.2571 14.0012 19.1577 14.1456C19.0582 14.2876 18.9186 14.3989 18.7386 14.4794C18.5611 14.5599 18.3563 14.6001 18.1243 14.6001H18.0107C17.6988 14.6001 17.446 14.8529 17.446 15.1648C17.446 15.4766 17.6988 15.7294 18.0107 15.7294H18.1243C18.3989 15.7294 18.6357 15.772 18.8345 15.8572C19.0357 15.9425 19.1896 16.0608 19.2962 16.2124C19.4051 16.3615 19.4595 16.5331 19.4595 16.7273C19.4595 16.919 19.4086 17.0883 19.3068 17.2351C19.205 17.3819 19.0642 17.4967 18.8842 17.5795C18.7043 17.6624 18.4972 17.7038 18.2628 17.7038C18.0379 17.7038 17.8355 17.6671 17.6555 17.5938C17.4756 17.5204 17.3312 17.4174 17.2223 17.2848C17.0457 17.0611 16.825 16.8161 16.54 16.8161H16.3013C15.8609 16.8161 15.4866 17.1922 15.666 17.5943C15.7196 17.7146 15.7862 17.8292 15.8658 17.9382C16.1049 18.2602 16.4304 18.5135 16.8423 18.6982Z",fill:"#19191A"}))}),KG=Object.defineProperty,YG=Object.defineProperties,XG=Object.getOwnPropertyDescriptors,Q4=Object.getOwnPropertySymbols,iC=Object.prototype.hasOwnProperty,sC=Object.prototype.propertyIsEnumerable,lC=(e,t,n)=>t in e?KG(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,vy=(e,t)=>{for(var n in t||(t={}))iC.call(t,n)&&lC(e,n,t[n]);if(Q4)for(var n of Q4(t))sC.call(t,n)&&lC(e,n,t[n]);return e},QG=(e,t)=>YG(e,XG(t)),JG=(e,t)=>{var n={};for(var a in e)iC.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&Q4)for(var a of Q4(e))t.indexOf(a)<0&&sC.call(e,a)&&(n[a]=e[a]);return n},qG=(0,l.forwardRef)((e,t)=>{var n=e,{size:a,spin:i,style:c}=n,d=JG(n,["size","spin","style"]);const p=vy(vy({width:a||"var(--x-icon-size, 1em)",height:a||"var(--x-icon-size, 1em)",animation:i?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),c);return l.createElement("svg",QG(vy({ref:t,style:p},d),{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),l.createElement("path",{d:"M6.05556 4.42122C5.99911 4.07303 5.59296 3.8824 5.28445 4.08849L4.22379 4.79699L4.15353 4.85361C3.98308 5.01837 3.9494 5.28638 4.08574 5.49049L4.14236 5.56075C4.30713 5.73119 4.57513 5.76488 4.77924 5.62853L5.06139 5.43926L5.06218 8.00426L5.07023 8.09414C5.11257 8.32738 5.31672 8.50426 5.56218 8.50426C5.83832 8.50426 6.06218 8.2804 6.06218 8.00426V4.50426L6.05556 4.42122Z",fill:"#19191A"}),l.createElement("path",{d:"M5.9068 10.0494C5.45709 9.93689 5.02016 10.0651 4.61031 10.3286C4.4371 10.44 4.30473 10.5517 4.22168 10.6347C4.02642 10.83 4.02643 11.1466 4.2217 11.3418C4.41697 11.5371 4.73355 11.5371 4.92881 11.3418C4.93793 11.3327 4.94977 11.3216 4.96407 11.3091L5.0769 11.2202L5.15109 11.1698C5.35136 11.041 5.53492 10.9872 5.6642 11.0195C5.75655 11.0426 5.85036 11.1129 5.95214 11.2656C6.002 11.3404 6.01017 11.412 5.97815 11.5187C5.90287 11.7696 5.62769 12.0989 5.21671 12.4401C5.02208 12.6017 4.81149 12.7548 4.60076 12.8934L4.43609 12.9988L4.32718 13.0641C3.882 13.3185 4.06251 13.9983 4.57525 13.9983H6.60427L6.69414 13.9902C6.92739 13.9479 7.10427 13.7437 7.10427 13.4983L7.09621 13.4084C7.05387 13.1751 6.84973 12.9983 6.60427 12.9983H6.09439L6.19689 12.9042C6.56463 12.547 6.82236 12.1847 6.93596 11.8061C7.05028 11.4251 7.00685 11.0449 6.7842 10.7109C6.54981 10.3593 6.25145 10.1355 5.9068 10.0494Z",fill:"#19191A"}),l.createElement("path",{d:"M5.72364 18.132C5.44749 18.132 5.22364 17.9081 5.22364 17.632C5.22364 17.3865 5.40051 17.1824 5.63376 17.14L5.72364 17.132L6.05027 17.1321L6.0973 17.073C6.23519 16.8891 6.26709 16.751 6.20307 16.6442C6.16502 16.5808 6.09416 16.5099 5.9809 16.4344C5.61602 16.1911 5.34227 16.2324 5.06782 16.4596C4.97292 16.5381 4.90697 16.616 4.88142 16.6543C4.72825 16.8841 4.41782 16.9462 4.18805 16.793C3.95828 16.6398 3.89618 16.3294 4.04935 16.0996C4.12465 15.9867 4.25095 15.8376 4.43023 15.6892C5.01895 15.202 5.76595 15.0892 6.53561 15.6023C6.76615 15.756 6.94187 15.9318 7.06069 16.1299C7.36827 16.6428 7.25919 17.1684 6.92737 17.632C7.25931 18.0956 7.36834 18.6214 7.06039 19.1345C6.94158 19.3324 6.76597 19.508 6.5356 19.6616C5.76593 20.1747 5.01897 20.0619 4.43025 19.5747C4.25097 19.4263 4.12467 19.2773 4.04936 19.1643C3.89618 18.9346 3.95827 18.6241 4.18803 18.4709C4.39226 18.3348 4.66024 18.3687 4.82485 18.5393L4.88141 18.6096C4.90696 18.6479 4.9729 18.7258 5.06781 18.8043C5.34227 19.0314 5.61604 19.0728 5.9809 18.8295C6.09406 18.7541 6.16492 18.6832 6.20299 18.6198C6.26711 18.513 6.23524 18.3748 6.09731 18.1909L6.05028 18.1318L5.72364 18.132Z",fill:"#19191A"}),l.createElement("path",{d:"M9.06207 5.75426C9.06207 6.16846 9.39786 6.50426 9.81207 6.50426H19.2849C19.6991 6.50426 20.0349 6.16846 20.0349 5.75426C20.0349 5.34004 19.6991 5.00426 19.2849 5.00426H9.81207C9.39786 5.00426 9.06207 5.34005 9.06207 5.75426Z",fill:"#19191A"}),l.createElement("path",{d:"M9.81207 12.5043C9.39786 12.5043 9.06207 12.1685 9.06207 11.7543C9.06207 11.3401 9.39786 11.0043 9.81207 11.0043H19.2849C19.6991 11.0043 20.0349 11.3401 20.0349 11.7543C20.0349 12.1685 19.6991 12.5043 19.2849 12.5043H9.81207Z",fill:"#19191A"}),l.createElement("path",{d:"M9.06207 17.7543C9.06207 18.1685 9.39786 18.5043 9.81207 18.5043H19.2849C19.6991 18.5043 20.0349 18.1685 20.0349 17.7543C20.0349 17.3401 19.6991 17.0043 19.2849 17.0043H9.81207C9.39786 17.0043 9.06207 17.3401 9.06207 17.7543Z",fill:"#19191A"}))}),$G=Object.defineProperty,eZ=Object.defineProperties,tZ=Object.getOwnPropertyDescriptors,J4=Object.getOwnPropertySymbols,cC=Object.prototype.hasOwnProperty,dC=Object.prototype.propertyIsEnumerable,pC=(e,t,n)=>t in e?$G(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,by=(e,t)=>{for(var n in t||(t={}))cC.call(t,n)&&pC(e,n,t[n]);if(J4)for(var n of J4(t))dC.call(t,n)&&pC(e,n,t[n]);return e},nZ=(e,t)=>eZ(e,tZ(t)),oZ=(e,t)=>{var n={};for(var a in e)cC.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&J4)for(var a of J4(e))t.indexOf(a)<0&&dC.call(e,a)&&(n[a]=e[a]);return n},aZ=(0,l.forwardRef)((e,t)=>{var n=e,{size:a,spin:i,style:c}=n,d=oZ(n,["size","spin","style"]);const p=by(by({width:a||"var(--x-icon-size, 1em)",height:a||"var(--x-icon-size, 1em)",animation:i?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),c);return l.createElement("svg",nZ(by({ref:t,style:p},d),{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),l.createElement("path",{d:"M9.0625 5.75391C9.0625 6.16811 9.3983 6.50391 9.8125 6.50391H19.2853C19.6995 6.50391 20.0353 6.16811 20.0353 5.75391C20.0353 5.33969 19.6995 5.00391 19.2853 5.00391H9.8125C9.3983 5.00391 9.0625 5.3397 9.0625 5.75391Z",fill:"#19191A"}),l.createElement("path",{d:"M9.8125 12.5039C9.3983 12.5039 9.0625 12.1681 9.0625 11.7539C9.0625 11.3397 9.3983 11.0039 9.8125 11.0039H19.2853C19.6995 11.0039 20.0353 11.3397 20.0353 11.7539C20.0353 12.1681 19.6995 12.5039 19.2853 12.5039H9.8125Z",fill:"#19191A"}),l.createElement("path",{d:"M9.0625 17.7539C9.0625 18.1681 9.3983 18.5039 9.8125 18.5039H19.2853C19.6995 18.5039 20.0353 18.1681 20.0353 17.7539C20.0353 17.3397 19.6995 17.0039 19.2853 17.0039H9.8125C9.3983 17.0039 9.0625 17.3397 9.0625 17.7539Z",fill:"#19191A"}),l.createElement("path",{d:"M4 5.75391C4 6.16811 4.3358 6.50391 4.75 6.50391H6.25C6.6642 6.50391 7 6.16811 7 5.75391C7 5.33969 6.6642 5.00391 6.25 5.00391H4.75C4.3358 5.00391 4 5.3397 4 5.75391Z",fill:"#19191A"}),l.createElement("path",{d:"M4.75 12.5039C4.3358 12.5039 4 12.1681 4 11.7539C4 11.3397 4.3358 11.0039 4.75 11.0039H6.25C6.6642 11.0039 7 11.3397 7 11.7539C7 12.1681 6.6642 12.5039 6.25 12.5039H4.75Z",fill:"#19191A"}),l.createElement("path",{d:"M4 17.7539C4 18.1681 4.3358 18.5039 4.75 18.5039H6.25C6.6642 18.5039 7 18.1681 7 17.7539C7 17.3397 6.6642 17.0039 6.25 17.0039H4.75C4.3358 17.0039 4 17.3397 4 17.7539Z",fill:"#19191A"}))});const rZ=(0,l.memo)(e=>{const{config:t,dropdownPosition:n,editorState:a,onChange:i}=e,c=(0,vl.E7)(a),d=(0,vl.UT)(a),p=(0,l.useRef)(null),h=(0,l.useMemo)(()=>[{key:"Normal",label:I18N.TextToolbar.syntax1,icon:(0,o.jsx)(rw,{size:24})},{key:"H1",label:I18N.TextToolbar.syntax2,icon:(0,o.jsx)(jG,{size:24})},{key:"H2",label:I18N.TextToolbar.syntax3,icon:(0,o.jsx)(FG,{size:24})},{key:"H3",label:I18N.TextToolbar.syntax4,icon:(0,o.jsx)(ZG,{size:24})},{key:"h_separator"},{key:"ordered",label:I18N.TextToolbar.syntax6,icon:(0,o.jsx)(qG,{size:24})},{key:"unordered",label:I18N.TextToolbar.syntax5,icon:(0,o.jsx)(aZ,{size:24})}],[]),m=(0,l.useMemo)(()=>{var k;const F=((k=tn.F.find(Z=>Z.style===c))==null?void 0:k.label)||d;return h.find(Z=>Z.key===F)},[c,h]),x=k=>{var R,F;if(["unordered","ordered"].includes(k)){var Z,G;v(k),(Z=p.current)==null||(G=Z.close)==null||G.call(Z);return}if(["header-one","header-two","header-three"].includes(k)){var ee,ce;A(k),(ee=p.current)==null||(ce=ee.close)==null||ce.call(ee);return}const se=tn.F.find(ve=>ve.label===k).style;if(c===se)return;const he=(0,vl.ex)(a,se);he&&i(he,void 0,!1),(R=p.current)==null||(F=R.close)==null||F.call(R)},v=k=>{const R=(0,vl.MM)(a,k);R&&i(R,void 0,!1)},A=k=>{const R=(0,vl.WR)(a,k);R&&i(R,void 0,!1)};return(0,o.jsx)(Rl,{ref:p,title:t.title,top:n==="bottom"?40:-198,left:ENV.IS_MO?-10:-16,trigger:(0,o.jsxs)("div",{className:"trigger-container has-arrow",children:[(0,o.jsx)("div",{className:"trigger-icon size-24 margin-right-2",children:m==null?void 0:m.icon}),(0,o.jsx)("div",{className:"trigger",children:(0,o.jsx)(j0.A,{className:"arrow",size:14})})]}),children:(0,o.jsx)("div",{className:"content-container draft-block-type-options width-140",children:h.map(k=>{const R=(m==null?void 0:m.key)===k.key;return k.key==="h_separator"?(0,o.jsx)(xu,{}):(0,o.jsx)(N0,{value:k.key,active:R,onClick:()=>x(k.key),children:(0,o.jsxs)(o.Fragment,{children:[R&&(0,o.jsx)(xt.C,{name:"draft/check",className:"draft-check"}),(0,o.jsxs)("div",{className:"option-content",children:[k.icon,(0,o.jsx)("span",{className:"option-title",children:k.label})]})]})},k.key)})})})});var iZ=Object.defineProperty,sZ=Object.defineProperties,lZ=Object.getOwnPropertyDescriptors,q4=Object.getOwnPropertySymbols,uC=Object.prototype.hasOwnProperty,hC=Object.prototype.propertyIsEnumerable,mC=(e,t,n)=>t in e?iZ(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,wy=(e,t)=>{for(var n in t||(t={}))uC.call(t,n)&&mC(e,n,t[n]);if(q4)for(var n of q4(t))hC.call(t,n)&&mC(e,n,t[n]);return e},cZ=(e,t)=>sZ(e,lZ(t)),dZ=(e,t)=>{var n={};for(var a in e)uC.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&q4)for(var a of q4(e))t.indexOf(a)<0&&hC.call(e,a)&&(n[a]=e[a]);return n},pZ=(0,l.forwardRef)((e,t)=>{var n=e,{size:a,spin:i,style:c}=n,d=dZ(n,["size","spin","style"]);const p=wy(wy({width:a||"var(--x-icon-size, 1em)",height:a||"var(--x-icon-size, 1em)",animation:i?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),c);return l.createElement("svg",cZ(wy({ref:t,style:p},d),{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.71288 17.0115C5.78609 16.8813 5.85808 16.7533 5.92727 16.6294C5.91287 16.5927 5.90122 16.5544 5.89262 16.5147C5.33889 13.9651 5.45103 10.0443 8.56087 6.89058C10.0166 5.41431 12.274 4.57792 14.239 4.35659C15.2282 4.24517 16.1999 4.28248 17.0074 4.5075C17.7908 4.7258 18.5592 5.16547 18.8891 5.9664C18.8941 5.978 18.8988 5.98978 18.9033 6.0017C19.3666 7.1721 19.4194 8.65667 18.5325 9.94097C17.8277 10.9614 16.6038 11.7475 14.778 12.1725C14.9442 12.4591 15.0416 12.7751 15.0508 13.1196C15.0737 13.9876 14.5229 14.7198 13.8185 15.2604C12.5107 16.2641 10.2224 16.981 7.38982 17.0909C7.18196 17.4838 6.98059 17.8758 6.78525 18.2644H16.9404C17.084 18.2644 17.2004 18.3808 17.2004 18.5244C17.2004 18.66 17.0963 18.7728 16.9612 18.7836L5.54853 19.7018C5.13841 19.7348 4.78612 19.4185 4.7714 19.0108C4.75994 18.8797 4.78288 18.7438 4.8449 18.6169C5.07708 18.1419 5.4057 17.5576 5.71288 17.0115ZM14.4069 5.84717C12.6691 6.0429 10.7737 6.78289 9.62894 7.94378C7.6112 9.99 7.06666 12.423 7.14049 14.4581C7.99206 13.0149 8.95099 11.5934 10.0385 10.3233C11.7524 8.3215 13.824 6.65151 16.3402 5.88984C15.8076 5.78412 15.1417 5.76439 14.4069 5.84717ZM17.2982 9.08856C17.7177 8.48115 17.8095 7.77708 17.673 7.10443C15.1271 7.59152 12.999 9.1719 11.1779 11.2989C10.0814 12.5795 9.11406 14.0376 8.25046 15.5319C10.4333 15.3284 12.0466 14.7294 12.9053 14.0704C13.4426 13.6581 13.5558 13.3296 13.5513 13.1593C13.5475 13.0161 13.4485 12.7031 12.7963 12.3339C12.5128 12.1734 12.3654 11.8483 12.4313 11.5293C12.4973 11.2103 12.7616 10.9704 13.0855 10.9355C15.545 10.6706 16.7551 9.8749 17.2982 9.08856Z",fill:"#19191A"}))});class uZ extends l.PureComponent{constructor(){super(...arguments),(0,B.A)(this,"handleInfoChange",()=>{const{updateInfo:t,info:n,currentUser:a}=this.props,i=a.name,c=Ft()().valueOf();t({...n,author:i,time:c})}),(0,B.A)(this,"renderOption",(t,n)=>{const{config:a,info:i,handleAuthorChange:c,handleDateChange:d,widget:p}=this.props,{key:h,label:m}=t;if(h==="h_separator")return(0,o.jsx)(xu,{});if(h==="update")return(0,o.jsx)(N0,{value:h,onClick:this.handleInfoChange,children:m},n);const v={author:i.showAuthor,time:i.showTime}[h],A=k=>{h==="author"?c(k):h==="time"&&d(k)};return(0,o.jsx)(N0,{preventDefault:!1,value:h,children:(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("label",{className:"left-label",children:m}),(0,o.jsx)("div",{className:"right-content",children:(0,o.jsx)(au.A,{isIOS:!0,size:"small",isChecked:v,onChange:A})})]})},n)})}render(){const{config:t,dropdownPosition:n}=this.props,{options:a,title:i}=t;return(0,o.jsx)(Rl,{title:i,top:n==="bottom"?40:-114,left:-52,trigger:(0,o.jsx)("div",{className:"trigger-container padding-0",children:(0,o.jsx)("div",{className:"trigger-icon",children:(0,o.jsx)(pZ,{size:24})})}),children:(0,o.jsx)("div",{className:"content-container draft-info-options",children:a.map((c,d)=>this.renderOption(c,d))})})}}const hZ=(0,l.memo)(e=>{const t=(0,l.useRef)(null),{widget:n,editorState:a,config:i,dropdownPosition:c,rootProject:d,currentUser:p,currentOrg:h,isLeftShow:m,dispatch:x,onChange:v}=e,{options:A,title:k}=i,R=(0,l.useRef)(null),F=(0,l.useMemo)(()=>{let se=!1;const he=(0,vl.DN)(a),ve=(0,vl.d8)(a),Te=ve&&ve.get("type");return(he||["unordered-list-item","ordered-list-item"].includes(Te))&&(se=!0),se},[a]),Z=se=>{var he,ve;se==="local"&&t&&(t.current.value=null,t.current.setAttribute("value",null),t.current.click()),se==="gallery"&&(!m&&x({type:"left-panel:collapse:panel:show"}),x({type:"entry:resource:open:assetPanel"})),(he=R.current)==null||(ve=he.close)==null||ve.call(he)},G=se=>{const he=se.target.files[0];(0,ly.i3)({files:[he],rootProject:d,callback:ee,isFilterSvg:!1},p,h)},ee=se=>{if(!se)return;const{w:he}=n.hotAttr,ve=he;let Te;se.width>=ve?Te=100:Te=Number(se.width/ve*100).toFixed(2);const xe={src:se.image,width:Te,height:void 0,alt:se.name},Fe=(0,vl.V4)(a,xe);Fe&&v(Fe,{isImageInserted:!0})},ce=se=>{let{asset:he}=se;ee(he)};return(0,l.useEffect)(()=>(Yc.A.on("draft:side-toolbar:image",ce),Yc.A.on("draft:side-toolbar:image-paste",G),()=>{Yc.A.off("draft:side-toolbar:image",ce),Yc.A.off("draft:side-toolbar:image-paste",G)}),[ce,G]),(0,o.jsx)(Rl,{disabled:F,title:k,top:c==="bottom"?40:-78,left:-50,trigger:(0,o.jsx)("div",{className:C()("trigger-container","padding-0",{disabled:F}),children:(0,o.jsxs)("div",{className:"trigger-icon",children:[(0,o.jsx)("input",{ref:t,type:"file",onChange:G,disabled:F,hidden:!0,multiple:!0,accept:"image/gif, image/jpg, image/jpeg, image/png, image/svg+xml"}),(0,o.jsx)(O4,{size:24})]})}),children:(0,o.jsx)("div",{className:"content-container draft-image-options",children:A.map((se,he)=>(0,o.jsx)(N0,{value:se.key,active:!1,disabled:!1,onClick:Z,children:(0,o.jsx)("span",{className:"option-title",children:se.label})},he))})})});var mZ=Object.defineProperty,fZ=Object.defineProperties,gZ=Object.getOwnPropertyDescriptors,$4=Object.getOwnPropertySymbols,fC=Object.prototype.hasOwnProperty,gC=Object.prototype.propertyIsEnumerable,yC=(e,t,n)=>t in e?mZ(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Cy=(e,t)=>{for(var n in t||(t={}))fC.call(t,n)&&yC(e,n,t[n]);if($4)for(var n of $4(t))gC.call(t,n)&&yC(e,n,t[n]);return e},yZ=(e,t)=>fZ(e,gZ(t)),xZ=(e,t)=>{var n={};for(var a in e)fC.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&$4)for(var a of $4(e))t.indexOf(a)<0&&gC.call(e,a)&&(n[a]=e[a]);return n},vZ=(0,l.forwardRef)((e,t)=>{var n=e,{size:a,spin:i,style:c}=n,d=xZ(n,["size","spin","style"]);const p=Cy(Cy({width:a||"var(--x-icon-size, 1em)",height:a||"var(--x-icon-size, 1em)",animation:i?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),c);return l.createElement("svg",yZ(Cy({ref:t,style:p},d),{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),l.createElement("path",{d:"M19.25 17.0039C19.6642 17.0039 20 17.3397 20 17.7539C20 18.1681 19.6642 18.5039 19.25 18.5039H4.75C4.3358 18.5039 4 18.1681 4 17.7539C4 17.3397 4.3358 17.0039 4.75 17.0039H19.25ZM4 10.0596C4.0001 9.59328 4.50931 9.305 4.90918 9.54492L8.14258 11.4854C8.53098 11.7184 8.53098 12.2816 8.14258 12.5146L4.90918 14.4551C4.50931 14.695 4.0001 14.4067 4 13.9404V10.0596ZM19.25 11.0039C19.6642 11.0039 20 11.3397 20 11.7539C20 12.1681 19.6642 12.5039 19.25 12.5039H11.75C11.3358 12.5039 11 12.1681 11 11.7539C11 11.3397 11.3358 11.0039 11.75 11.0039H19.25ZM19.25 5.00391C19.6642 5.00391 20 5.33969 20 5.75391C20 6.16811 19.6642 6.50391 19.25 6.50391H4.75C4.3358 6.50391 4 6.16811 4 5.75391C4 5.3397 4.3358 5.00391 4.75 5.00391H19.25Z",fill:"#19191A"}))}),bZ=Object.defineProperty,wZ=Object.defineProperties,CZ=Object.getOwnPropertyDescriptors,e3=Object.getOwnPropertySymbols,xC=Object.prototype.hasOwnProperty,vC=Object.prototype.propertyIsEnumerable,bC=(e,t,n)=>t in e?bZ(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Sy=(e,t)=>{for(var n in t||(t={}))xC.call(t,n)&&bC(e,n,t[n]);if(e3)for(var n of e3(t))vC.call(t,n)&&bC(e,n,t[n]);return e},SZ=(e,t)=>wZ(e,CZ(t)),AZ=(e,t)=>{var n={};for(var a in e)xC.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&e3)for(var a of e3(e))t.indexOf(a)<0&&vC.call(e,a)&&(n[a]=e[a]);return n},kZ=(0,l.forwardRef)((e,t)=>{var n=e,{size:a,spin:i,style:c}=n,d=AZ(n,["size","spin","style"]);const p=Sy(Sy({width:a||"var(--x-icon-size, 1em)",height:a||"var(--x-icon-size, 1em)",animation:i?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),c);return l.createElement("svg",SZ(Sy({ref:t,style:p},d),{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),l.createElement("path",{d:"M19.25 17.0039C19.6642 17.0039 20 17.3397 20 17.7539C20 18.1681 19.6642 18.5039 19.25 18.5039H4.75C4.3358 18.5039 4 18.1681 4 17.7539C4 17.3397 4.3358 17.0039 4.75 17.0039H19.25ZM7.59082 9.54492C7.99069 9.305 8.4999 9.59328 8.5 10.0596V13.9404C8.4999 14.4067 7.99069 14.695 7.59082 14.4551L4.35742 12.5146C3.96902 12.2816 3.96902 11.7184 4.35742 11.4854L7.59082 9.54492ZM19.25 11.0039C19.6642 11.0039 20 11.3397 20 11.7539C20 12.1681 19.6642 12.5039 19.25 12.5039H11.75C11.3358 12.5039 11 12.1681 11 11.7539C11 11.3397 11.3358 11.0039 11.75 11.0039H19.25ZM19.25 5.00391C19.6642 5.00391 20 5.33969 20 5.75391C20 6.16811 19.6642 6.50391 19.25 6.50391H4.75C4.3358 6.50391 4 6.16811 4 5.75391C4 5.3397 4.3358 5.00391 4.75 5.00391H19.25Z",fill:"#19191A"}))});const MZ=(0,l.memo)(e=>{const{config:t,dropdownPosition:n,editorState:a,widget:i,onChange:c,dispatch:d}=e,h=i.hotAttr["!haVersion"]===1?(0,vl.j1)(a):i.hotAttr.textV0.horizontalAlign,m=(0,vl.DN)(a),x=(0,vl.d8)(a),v=(0,vl.HA)(a),A=(0,l.useRef)(null),k=()=>(0,Qo.Eg)(x)?!v||!(0,Qo.Eg)(x)||v.get("type")!==x.get("type")||v.get("depth")<x.get("depth")||x.get("depth")>=2:m===2,R=()=>(0,Qo.Eg)(x)?!x||!(0,Qo.Eg)(x)||x.get("depth")<=0:m===0,F=(0,l.useMemo)(()=>[{value:"left",tip_title:I18N.TextToolbar.align1,label:(0,o.jsx)(Zg,{size:24})},{value:"center",tip_title:I18N.TextToolbar.align2,label:(0,o.jsx)(z7,{size:24})},{value:"right",tip_title:I18N.TextToolbar.align3,label:(0,o.jsx)(Z7,{size:24})},{value:"justify",tip_title:I18N.TextToolbar.align4,label:(0,o.jsx)(Q7,{size:24})}],[]),Z=(0,l.useMemo)(()=>[{value:"indent",tip_title:I18N.TextToolbar.align5,label:(0,o.jsx)(vZ,{size:24}),disabled:k()},{value:"outdent",tip_title:I18N.TextToolbar.align6,label:(0,o.jsx)(kZ,{size:24}),disabled:R()}],[k,R]),G=(0,l.useMemo)(()=>{const ce=F.find(se=>se.value===h);return(ce==null?void 0:ce.label)||(0,o.jsx)(Zg,{size:24})},[F,h]),ee=ce=>{var se,he;const{_getEditorState:ve}=(0,cn.DT)(),Te=ve();let xe;if(["indent","outdent"].includes(ce))(0,Qo.Eg)(x)?xe=(0,vl.H2)(Te,ce==="indent"?1:-1):xe=(0,vl.fM)(Te,ce,m),xe&&c(xe,void 0,!1);else{const Fe=i.hotAttr["!haVersion"],et=Te.getSelection();Fe===1?(Wt({value:3,attr:"!haVersion",selections:[i.key],dispatch:d}),Wt({value:ce,attr:"horizontalAlign",supAttr:"textV0",selections:[i.key],dispatch:d})):Wt({value:ce,attr:"horizontalAlign",supAttr:"textV0",selections:[i.key],dispatch:d}),setTimeout(()=>{const Ke=Eh.$t.forceSelection(Te,et);c(Ke,{isChangeAlign:!0})},4)}(se=A.current)==null||(he=se.close)==null||he.call(se)};return(0,o.jsx)(Rl,{ref:A,title:t.title,top:n==="bottom"?40:-96,left:-62,trigger:(0,o.jsx)("div",{className:"trigger-container padding-0",children:(0,o.jsx)("div",{className:"trigger-icon",children:G})}),children:(0,o.jsxs)(s9,{className:"content-container draft-alignment-options",children:[(0,o.jsx)($g.z,{className:"h-alignment",options:F,value:h,isLongTimeHover:!0,handleChange:ee}),(0,o.jsx)(xu,{}),(0,o.jsx)($g.z,{className:"indent",options:Z,value:m,isLongTimeHover:!0,handleChange:ee})]})})}),wC=e=>({getCommonProps:t=>wu(t),controlConfig:[{component:rZ,styleConfig:{title:I18N.TextToolbar.syntaxDesc}},{component:v6,styleConfig:{title:I18N.TextToolbar.textColor,hasColorBtn:!0,colors:[{color:"rgba(25, 25, 25, 1)",borderColor:"rgba(96, 96, 96, 1)"},{color:"rgba(22, 132, 252, 1)",borderColor:"rgba(0, 101, 210, 1)"},{color:"rgba(138, 56, 245, 1)",borderColor:"rgba(104, 1, 239, 1)"},{color:"rgba(102, 102, 102, 1)",borderColor:"rgba(79, 79, 79, 1)"},{color:"rgba(251, 251, 251, 1)",borderColor:"rgba(203, 199, 199, 1)"},{color:"rgba(236, 73, 84, 1)",borderColor:"rgba(226, 25, 39, 1)"},{color:"rgba(255, 159, 41, 1)",borderColor:"rgba(255, 138, 0, 1)"}]}},jf(),{component:i4,styleConfig:{title:I18N.TextToolbar.style0}},{component:MZ,styleConfig:{title:I18N.TextToolbar.align0}},{type:"VSeparator",component:J0},{component:_9,styleConfig:{title:I18N.TextToolbar.url0}},{component:hZ,styleConfig:{title:I18N.TextToolbar.image0,options:[{key:"local",label:I18N.TextToolbar.image1},{key:"gallery",label:I18N.TextToolbar.image2}]}},{component:uZ,styleConfig:{title:I18N.TextToolbar.info,options:[{key:"author",label:I18N.TextToolbar.author},{key:"time",label:I18N.TextToolbar.date},{key:"h_separator"},{key:"update",label:I18N.TextToolbar.update}]},getMiddleProps:t=>{const{widget:n,dispatch:a}=t,i=n.hotAttr.info,c=(m,x)=>{a({type:"entry:widget:change",payload:{flatChgList:[{key:n.key,hotAttr:m}]}}),a({type:"entry:update:preference_flags_by_sticky",payload:{info:x==null?void 0:x.info}})};return{info:i,updateInfo:m=>{c({info:m},{info:m}),MB.notice({text:I18N.TextToolbar.sticky.updateInfo.notice,type:"success"})},handleAuthorChange:m=>{const x={...i,showAuthor:m,author:i.author||MB.user.name};c({info:x},{info:x})},handleDateChange:m=>{const x={...i,showTime:m,time:i.time||new Date().getTime()};c({info:x},{info:x})}}}},{component:Wg,styleConfig:{className:"draft-bg-color",title:I18N.TextToolbar.backgroundColor,colors:[{color:"rgba(172, 188, 209, 1)",borderColor:"rgba(144, 170, 204, 1)"},{color:"rgba(255, 158, 147, 1)",borderColor:"rgba(245, 130, 117, 1)"},{color:"rgba(255, 158, 71, 1)",borderColor:"rgba(255, 132, 22, 1)"},{color:"rgba(253, 209, 67, 1)",borderColor:"rgba(240, 183, 0, 1)"},{color:"rgba(157, 196, 255, 1)",borderColor:"rgba(122, 174, 252, 1)"},{color:"rgba(56, 205, 231, 1)",borderColor:"rgba(42, 180, 204, 1)"},{color:"rgba(84, 214, 145, 1)",borderColor:"rgba(52, 197, 120, 1)"},{color:"rgba(218, 163, 255, 1)",borderColor:"rgba(205, 130, 255, 1)"},{color:"rgba(255, 148, 228, 1)",borderColor:"rgba(251, 113, 216, 1)"},{color:"rgba(230, 230, 230, 1)",borderColor:"rgba(102, 102, 102, 0.3)"}]},getMiddleProps:t=>{const{widget:n,dispatch:a}=t;return{fill:n.hotAttr.fill,handleColorChange:d=>{a({type:"entry:widget:change",payload:{flatChgList:[{key:n.key,hotAttr:{fill:d}}]}})}}}}]}),Ay=M.Ay.div.withConfig({displayName:"style__StyledCodeGenerateItem",componentId:"sc-d5cbar-0"})(["display:flex;align-items:center;color:",";font-size:12px;font-weight:500;line-height:16px;"],e=>e.theme.color_text_L1),EZ=(0,M.Ay)(Ay).withConfig({displayName:"style__StyledCodeGenerateConfirm",componentId:"sc-d5cbar-1"})(["height:32px;padding:0 8px 0 4px;border-radius:6px;background-color:transparent;cursor:pointer;&:hover{background-color:",";}&:active{background-color:",";}svg{color:inherit;path[fill]{fill:",";}}span{white-space:nowrap;margin-left:2px;}"],e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_btn_secondary_active,e=>e.theme.color_text_L1),IZ=(0,M.Ay)(Ay).withConfig({displayName:"style__StyledCodeGenerateOrder",componentId:"sc-d5cbar-2"})([".order{padding:6px;}"]),Kse=M.Ay.div.withConfig({displayName:"style__StyledIconContainer",componentId:"sc-d5cbar-3"})(["margin-right:4px;"]),CC=(0,M.Ay)(xt.C).withConfig({displayName:"style__StyledSvgIcon",componentId:"sc-d5cbar-4"})(["width:32px;height:32px;padding:4px;color:",";&.feedback-btn.unsatisfied{transform:rotate(180deg);&.active{color:",";}}&.feedback-btn.satisfied.active{color:",";}"],e=>e.theme.color_text_L1,e=>e.theme.color_error,e=>e.theme.color_text_link_normal),_Z=(0,M.Ay)(Ay).withConfig({displayName:"style__StyledCodeGenerateLoading",componentId:"sc-d5cbar-5"})(["margin-right:6px;.request-loading{width:24px;height:24px;}.request-loading{animation:loading 3s linear infinite;@keyframes loading{0%{transform:rotate(0deg);}100%{transform:rotate(360deg);}}}"]),TZ=M.Ay.div.withConfig({displayName:"style__StyledCode2MDWidgetButton",componentId:"sc-d5cbar-6"})(["height:32px;display:flex;align-items:center;justify-content:center;gap:4px;padding:0 6px;border-radius:6px;cursor:pointer;margin-right:6px;background:",";&.disabled{opacity:0.5;cursor:not-allowed;}&:hover{background:",";}.loading-icon{animation:loading 3s linear infinite;@keyframes loading{0%{transform:rotate(0deg);}100%{transform:rotate(360deg);}}}svg{color:inherit;path[fill]{fill:",";}}.text{font-weight:400;font-size:14px;line-height:20px;color:",";white-space:nowrap;}"],e=>e.theme.color_bg_white,e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_text_L1,e=>e.theme.color_text_L1),PZ=()=>(0,o.jsx)(_Z,{children:(0,o.jsx)(xt.C,{className:"request-loading",name:"chatGPT/tip-loading",isColorPure:!0})});var LZ=Object.defineProperty,NZ=Object.defineProperties,jZ=Object.getOwnPropertyDescriptors,t3=Object.getOwnPropertySymbols,SC=Object.prototype.hasOwnProperty,AC=Object.prototype.propertyIsEnumerable,kC=(e,t,n)=>t in e?LZ(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ky=(e,t)=>{for(var n in t||(t={}))SC.call(t,n)&&kC(e,n,t[n]);if(t3)for(var n of t3(t))AC.call(t,n)&&kC(e,n,t[n]);return e},DZ=(e,t)=>NZ(e,jZ(t)),RZ=(e,t)=>{var n={};for(var a in e)SC.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&t3)for(var a of t3(e))t.indexOf(a)<0&&AC.call(e,a)&&(n[a]=e[a]);return n},BZ=(0,l.forwardRef)((e,t)=>{var n=e,{size:a,spin:i,style:c}=n,d=RZ(n,["size","spin","style"]);const p=ky(ky({width:a||"var(--x-icon-size, 1em)",height:a||"var(--x-icon-size, 1em)",animation:i?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),c);return l.createElement("svg",DZ(ky({ref:t,style:p},d),{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),l.createElement("path",{d:"M18.2579 7.21973C18.5508 6.92691 19.0256 6.92705 19.3185 7.21973C19.6112 7.51263 19.6113 7.98743 19.3185 8.28027L10.8331 16.7656C10.6925 16.9062 10.5017 16.9853 10.3029 16.9854C10.1041 16.9853 9.91315 16.9061 9.77258 16.7656L4.68176 11.6748C4.3889 11.3819 4.38897 10.9072 4.68176 10.6143C4.97466 10.3214 5.44942 10.3214 5.74231 10.6143L10.3029 15.1748L18.2579 7.21973Z",fill:"#19191A"}))});const UZ=e=>{const{dispatch:t}=e,n=()=>{t({type:"entry:aiComponent:float-bar:confirm",payload:{key:e.widget.key}})};return(0,o.jsxs)(EZ,{onClick:n,children:[(0,o.jsx)(BZ,{size:24}),(0,o.jsx)("span",{children:I18N.Common.confirm2})]})};var D0=s(95657);const OZ=e=>{const{dispatch:t}=e,n=(0,r.d4)(D0.G1),a=e.widget.key,i=n[a]||{},{activeIndex:c,list:d}=(i==null?void 0:i.resultTmpListData)||{activeIndex:0,list:[]},p=v=>{t({type:"entry:aiComponent:float-bar:handle-order",payload:{key:a,type:v}})},h=c+1+"/"+d.length,m=c===0,x=c===d.length-1;return d.length<=1?null:(0,o.jsxs)(IZ,{children:[(0,o.jsx)(fu,{disabled:m,title:I18N.TextToolbar.code.prev,onClick:()=>p("prev"),children:(0,o.jsx)(CC,{className:"prev",name:"chatGTP/ai-component/float-bar/prev",size:24})}),(0,o.jsx)("div",{className:"order",children:h}),(0,o.jsx)(fu,{disabled:x,title:I18N.TextToolbar.code.next,onClick:()=>p("next"),children:(0,o.jsx)(CC,{className:"next",name:"chatGTP/ai-component/float-bar/next",size:24})})]})};var FZ=Object.defineProperty,VZ=Object.defineProperties,zZ=Object.getOwnPropertyDescriptors,n3=Object.getOwnPropertySymbols,MC=Object.prototype.hasOwnProperty,EC=Object.prototype.propertyIsEnumerable,IC=(e,t,n)=>t in e?FZ(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,My=(e,t)=>{for(var n in t||(t={}))MC.call(t,n)&&IC(e,n,t[n]);if(n3)for(var n of n3(t))EC.call(t,n)&&IC(e,n,t[n]);return e},WZ=(e,t)=>VZ(e,zZ(t)),HZ=(e,t)=>{var n={};for(var a in e)MC.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&n3)for(var a of n3(e))t.indexOf(a)<0&&EC.call(e,a)&&(n[a]=e[a]);return n},GZ=(0,l.forwardRef)((e,t)=>{var n=e,{size:a,spin:i,style:c}=n,d=HZ(n,["size","spin","style"]);const p=My(My({width:a||"var(--x-icon-size, 1em)",height:a||"var(--x-icon-size, 1em)",animation:i?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),c);return l.createElement("svg",WZ(My({ref:t,style:p},d),{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),l.createElement("path",{d:"M18.625 10.917C19.4583 11.3981 19.4583 12.6019 18.625 13.083L8.875 18.7119C8.04168 19.1929 7 18.5911 7 17.6289L7 6.37109C7 5.40888 8.04168 4.80706 8.875 5.28809L18.625 10.917Z",stroke:"#19191A",strokeWidth:"1.5"}))});const ZZ=e=>{const{dispatch:t}=e,n=e.widget.key,a=()=>{var i;const c=(i=sdkStore.getHotItem(n))==null?void 0:i.sup;t({type:"entry:preview:widget",payload:{activeWidgetKey:n,activePageKey:c}})};return(0,o.jsx)(fu,{className:"code-generate-preview",title:I18N.TextToolbar.code.preview,onClick:a,children:(0,o.jsx)(GZ,{size:24})})};var KZ=Object.defineProperty,YZ=Object.defineProperties,XZ=Object.getOwnPropertyDescriptors,o3=Object.getOwnPropertySymbols,_C=Object.prototype.hasOwnProperty,TC=Object.prototype.propertyIsEnumerable,PC=(e,t,n)=>t in e?KZ(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ey=(e,t)=>{for(var n in t||(t={}))_C.call(t,n)&&PC(e,n,t[n]);if(o3)for(var n of o3(t))TC.call(t,n)&&PC(e,n,t[n]);return e},QZ=(e,t)=>YZ(e,XZ(t)),JZ=(e,t)=>{var n={};for(var a in e)_C.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&o3)for(var a of o3(e))t.indexOf(a)<0&&TC.call(e,a)&&(n[a]=e[a]);return n},qZ=(0,l.forwardRef)((e,t)=>{var n=e,{size:a,spin:i,style:c}=n,d=JZ(n,["size","spin","style"]);const p=Ey(Ey({width:a||"var(--x-icon-size, 1em)",height:a||"var(--x-icon-size, 1em)",animation:i?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),c);return l.createElement("svg",QZ(Ey({ref:t,style:p},d),{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),l.createElement("path",{d:"M5.021 11.2495C5.33191 11.2497 5.59787 11.4388 5.71143 11.7085C5.74933 11.7982 5.771 11.897 5.771 12.0005C5.77137 15.4404 8.56045 18.229 12.0005 18.229C13.6809 18.2288 15.2046 17.5641 16.3257 16.4819C16.6237 16.1944 17.0986 16.2035 17.3862 16.5015C17.6735 16.7995 17.6655 17.2745 17.3677 17.562C15.9783 18.9031 14.0848 19.7288 12.0005 19.729C9.44415 19.729 7.17811 18.4871 5.771 16.5747V18.2036C5.77053 18.6173 5.43475 18.9534 5.021 18.9536C4.60707 18.9536 4.27146 18.6174 4.271 18.2036V11.9995C4.271 11.5853 4.60678 11.2495 5.021 11.2495ZM12.0005 4.271C14.5558 4.27122 16.8202 5.51198 18.2271 7.42334V5.79639C18.2273 5.38253 18.5632 5.04661 18.9771 5.04639C19.3911 5.04639 19.7268 5.38239 19.7271 5.79639V11.9224C19.7273 11.9483 19.729 11.9745 19.729 12.0005C19.7288 12.2543 19.6009 12.4772 19.4077 12.6128C19.2861 12.6985 19.139 12.7502 18.979 12.7505L18.978 12.7495L18.9771 12.7505C18.5632 12.7503 18.2273 12.4144 18.2271 12.0005V11.9224C18.1854 8.51817 15.4145 5.77137 12.0005 5.771C10.2405 5.771 8.65181 6.49993 7.51807 7.67432C7.2305 7.9722 6.75556 7.98019 6.45752 7.69287C6.15957 7.40518 6.1513 6.93032 6.43896 6.63232C7.84367 5.17733 9.81705 4.271 12.0005 4.271Z",fill:"#19191A"}))});const $Z=e=>{const{dispatch:t}=e,n=()=>{t({type:"entry:aiComponent:float-bar:retry",payload:{key:e.widget.key}})};return(0,o.jsx)(fu,{title:I18N.TextToolbar.code.regenerate,onClick:n,children:(0,o.jsx)(qZ,{size:24})})},Jse=e=>{const{dispatch:t}=e,n=()=>{};return _jsx(MenuOption,{title:I18N.TextToolbar.code.edit_mode.replace(/<br\/>/g,"\n"),onClick:n,children:_jsx(AiMainIconEdit2,{size:24})})},qse=e=>{const{dispatch:t}=e,n=()=>{};return _jsx(MenuOption,{title:I18N.TextToolbar.code.code_editor,onClick:n,children:_jsx(AiMainIconCode,{size:24})})};var eK=Object.defineProperty,tK=Object.defineProperties,nK=Object.getOwnPropertyDescriptors,a3=Object.getOwnPropertySymbols,LC=Object.prototype.hasOwnProperty,NC=Object.prototype.propertyIsEnumerable,jC=(e,t,n)=>t in e?eK(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Iy=(e,t)=>{for(var n in t||(t={}))LC.call(t,n)&&jC(e,n,t[n]);if(a3)for(var n of a3(t))NC.call(t,n)&&jC(e,n,t[n]);return e},oK=(e,t)=>tK(e,nK(t)),aK=(e,t)=>{var n={};for(var a in e)LC.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&a3)for(var a of a3(e))t.indexOf(a)<0&&NC.call(e,a)&&(n[a]=e[a]);return n},DC=(0,l.forwardRef)((e,t)=>{var n=e,{size:a,spin:i,style:c}=n,d=aK(n,["size","spin","style"]);const p=Iy(Iy({width:a||"var(--x-icon-size, 1em)",height:a||"var(--x-icon-size, 1em)",animation:i?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),c);return l.createElement("svg",oK(Iy({ref:t,style:p},d),{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),l.createElement("path",{opacity:"0.8",d:"M9.99993 3C10.4666 3 10.6999 3.23333 10.6999 3.7V5.8C10.6999 6.26667 10.4666 6.5 9.99993 6.5C9.53326 6.5 9.29993 6.26667 9.29993 5.8V3.7C9.29993 3.23333 9.53326 3 9.99993 3Z",fill:"black"}),l.createElement("path",{opacity:"0.4",d:"M9.99993 13.5C10.4666 13.5 10.6999 13.7333 10.6999 14.2V16.3C10.6999 16.7667 10.4666 17 9.99993 17C9.53326 17 9.29993 16.7667 9.29993 16.3V14.2C9.29993 13.7333 9.53326 13.5 9.99993 13.5Z",fill:"black"}),l.createElement("path",{opacity:"0.2",d:"M16.9999 9.9998C16.9999 10.4665 16.7666 10.6998 16.2999 10.6998H14.1999C13.7333 10.6998 13.4999 10.4665 13.4999 9.9998C13.4999 9.53314 13.7333 9.2998 14.1999 9.2998H16.2999C16.7666 9.2998 16.9999 9.53314 16.9999 9.9998Z",fill:"black"}),l.createElement("path",{opacity:"0.6",d:"M6.49994 9.9998C6.49994 10.4665 6.26661 10.6998 5.79994 10.6998H3.69994C3.23327 10.6998 2.99994 10.4665 2.99994 9.9998C2.99994 9.53314 3.23327 9.2998 3.69994 9.2998H5.79994C6.26661 9.2998 6.49994 9.53314 6.49994 9.9998Z",fill:"black"}),l.createElement("path",{opacity:"0.1",d:"M14.9467 5.05022C15.2766 5.3802 15.2766 5.71019 14.9467 6.04017L13.4617 7.52509C13.1318 7.85508 12.8018 7.85508 12.4718 7.52509C12.1418 7.19511 12.1418 6.86513 12.4718 6.53515L13.9567 5.05022C14.2867 4.72024 14.6167 4.72024 14.9467 5.05022Z",fill:"black"}),l.createElement("path",{opacity:"0.5",d:"M7.52284 12.4745C7.85282 12.8045 7.85282 13.1345 7.52284 13.4645L6.03791 14.9494C5.70793 15.2794 5.37795 15.2794 5.04796 14.9494C4.71798 14.6194 4.71798 14.2894 5.04796 13.9595L6.53289 12.4745C6.86287 12.1446 7.19285 12.1446 7.52284 12.4745Z",fill:"black"}),l.createElement("path",{opacity:"0.3",d:"M14.9467 14.9499C14.6167 15.2799 14.2867 15.2799 13.9567 14.9499L12.4718 13.465C12.1418 13.135 12.1418 12.805 12.4718 12.475C12.8018 12.145 13.1318 12.145 13.4617 12.475L14.9467 13.96C15.2766 14.2899 15.2766 14.6199 14.9467 14.9499Z",fill:"black"}),l.createElement("path",{opacity:"0.7",d:"M7.52284 7.5251C7.19285 7.85508 6.86287 7.85508 6.53289 7.5251L5.04796 6.04017C4.71798 5.71019 4.71798 5.3802 5.04796 5.05022C5.37795 4.72024 5.70793 4.72024 6.03791 5.05022L7.52284 6.53515C7.85282 6.86513 7.85282 7.19511 7.52284 7.5251Z",fill:"black"}))}),rK=Object.defineProperty,iK=Object.defineProperties,sK=Object.getOwnPropertyDescriptors,r3=Object.getOwnPropertySymbols,RC=Object.prototype.hasOwnProperty,BC=Object.prototype.propertyIsEnumerable,UC=(e,t,n)=>t in e?rK(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,_y=(e,t)=>{for(var n in t||(t={}))RC.call(t,n)&&UC(e,n,t[n]);if(r3)for(var n of r3(t))BC.call(t,n)&&UC(e,n,t[n]);return e},lK=(e,t)=>iK(e,sK(t)),cK=(e,t)=>{var n={};for(var a in e)RC.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&r3)for(var a of r3(e))t.indexOf(a)<0&&BC.call(e,a)&&(n[a]=e[a]);return n},dK=(0,l.forwardRef)((e,t)=>{var n=e,{size:a,spin:i,style:c}=n,d=cK(n,["size","spin","style"]);const p=_y(_y({width:a||"var(--x-icon-size, 1em)",height:a||"var(--x-icon-size, 1em)",animation:i?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),c);return l.createElement("svg",lK(_y({ref:t,style:p},d),{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),l.createElement("path",{d:"M4.18481 6.72519C6.72035 6.59191 8.49773 7.22952 9.85083 8.29062C11.1668 9.32273 12.0287 10.7224 12.7971 11.9518C13.5942 13.2269 14.2872 14.3091 15.2786 15.0201C15.9664 15.5134 16.8401 15.8518 18.0774 15.8629L17.72 15.5045C17.4271 15.2116 17.4271 14.7368 17.72 14.4439C18.0129 14.1512 18.4877 14.1511 18.7805 14.4439L20.3069 15.9703C20.5993 16.2632 20.5995 16.7381 20.3069 17.0309L18.7805 18.5562C18.4876 18.8491 18.0129 18.8491 17.72 18.5562C17.4273 18.2633 17.4271 17.7885 17.72 17.4957L17.8567 17.358C16.4458 17.31 15.33 16.9032 14.4036 16.2389C13.13 15.3252 12.2908 13.9708 11.5256 12.7467C10.7317 11.4766 9.9994 10.3129 8.92505 9.47031C7.88766 8.65687 6.47678 8.10682 4.26294 8.22324C3.84944 8.2448 3.4966 7.92681 3.47485 7.51328C3.45352 7.09996 3.77142 6.74693 4.18481 6.72519ZM9.51294 14.2623C9.85779 13.8858 10.4754 13.9036 10.7522 14.3326C10.9226 14.597 10.9134 14.9452 10.7043 15.1803C10.3583 15.5693 9.97621 15.93 9.54419 16.2398C8.21976 17.1897 6.50833 17.6156 4.10083 17.2144C3.69225 17.1464 3.41653 16.7597 3.48462 16.3512C3.5527 15.9427 3.93846 15.6671 4.34692 15.735C6.43935 16.0836 7.729 15.6961 8.67017 15.0211C8.97574 14.8019 9.25239 14.5468 9.51294 14.2623ZM17.72 5.44394C18.0129 5.15116 18.4877 5.15108 18.7805 5.44394L20.3069 6.97031C20.5993 7.26319 20.5995 7.73808 20.3069 8.03085L18.7805 9.55624C18.4876 9.84914 18.0129 9.84914 17.72 9.55624C17.4273 9.26334 17.4271 8.78853 17.72 8.4957L17.9299 8.28476C16.6739 8.45465 15.7552 8.89681 15.0227 9.47128C14.8246 9.62664 14.6385 9.79354 14.4612 9.96933C14.1134 10.314 13.5369 10.3029 13.2629 9.89706C13.0789 9.62412 13.0779 9.23809 13.3079 9.00253C13.5523 8.75215 13.8141 8.51341 14.0969 8.2916C15.1083 7.49839 16.3568 6.94192 17.9817 6.76718L17.72 6.50449C17.4271 6.21159 17.4271 5.73683 17.72 5.44394Z",fill:"#19191A"}))});const pK=e=>{const{widget:t,dispatch:n}=e,i=(0,r.d4)(D0.G1)[t.key]||{},c=!t.hotAttr.injection,{convertToEditableType:d="idle"}=i,p=d==="converting",h=async()=>{p||c||n({type:"entry:aiComponent:float-bar:convert-to-editable",payload:{widget:t}})},m=(0,l.useMemo)(()=>c?I18N.TextToolbar.code.convert_error:"",[c]);return(0,o.jsx)(Ti.A,{content:m,direction:"down",distance:12,className:"floating-tooltip",children:(0,o.jsx)(TZ,{onClick:h,className:C()({disabled:c}),children:p?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(DC,{size:20,className:"loading-icon"}),(0,o.jsx)("span",{className:"text",children:I18N.TextToolbar.code.converting})]}):(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(dK,{size:20}),(0,o.jsx)("span",{className:"text",children:I18N.TextToolbar.code.convert})]})})})};var Df=s(90852),Ty=s(81764);const uK=e=>{const{getPrefixCls:t,direction:n}=(0,l.useContext)(Cr.QO),{prefixCls:a,className:i}=e,c=t("input-group",a),d=t("input"),[p,h,m]=(0,Ty.Ay)(d),x=C()(c,m,{[c+"-lg"]:e.size==="large",[c+"-sm"]:e.size==="small",[c+"-compact"]:e.compact,[c+"-rtl"]:n==="rtl"},h,i),v=(0,l.useContext)(Df.$W),A=(0,l.useMemo)(()=>Object.assign(Object.assign({},v),{isFormItemInput:!1}),[v]);return p(l.createElement("span",{className:x,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},l.createElement(Df.$W.Provider,{value:A},e.children)))};var hK=s(51885),OC=s(27479),mK=s(74901),i3=s(49212),FC=s(16981),fK=s(73650),VC=s(31161);function zC(e,t){const n=(0,l.useRef)([]),a=()=>{n.current.push(setTimeout(()=>{var i,c,d,p;!((i=e.current)===null||i===void 0)&&i.input&&((c=e.current)===null||c===void 0?void 0:c.input.getAttribute("type"))==="password"&&(!((d=e.current)===null||d===void 0)&&d.input.hasAttribute("value"))&&((p=e.current)===null||p===void 0||p.input.removeAttribute("value"))}))};return(0,l.useEffect)(()=>(t&&a(),()=>n.current.forEach(i=>{i&&clearTimeout(i)})),[]),a}function gK(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}var yK=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,a=Object.getOwnPropertySymbols(e);i<a.length;i++)t.indexOf(a[i])<0&&Object.prototype.propertyIsEnumerable.call(e,a[i])&&(n[a[i]]=e[a[i]]);return n};const s3=(0,l.forwardRef)((e,t)=>{const{prefixCls:n,bordered:a=!0,status:i,size:c,disabled:d,onBlur:p,onFocus:h,suffix:m,allowClear:x,addonAfter:v,addonBefore:A,className:k,style:R,styles:F,rootClassName:Z,onChange:G,classNames:ee,variant:ce}=e,se=yK(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]),{getPrefixCls:he,direction:ve,allowClear:Te,autoComplete:xe,className:Fe,style:et,classNames:Ke,styles:Qe}=(0,Cr.TP)("input"),nt=he("input",n),Xe=(0,l.useRef)(null),lt=(0,si.A)(nt),[Ct,St,hn]=(0,Ty.MG)(nt,Z),[Cn]=(0,Ty.Ay)(nt,lt),{compactSize:Mt,compactItemClassnames:Et}=(0,VC.RQ)(nt,ve),Co=(0,Ui.A)(oi=>{var js;return(js=c!=null?c:Mt)!==null&&js!==void 0?js:oi}),Pn=l.useContext(FC.A),ro=d!=null?d:Pn,{status:Io,hasFeedback:mo,feedbackIcon:So}=(0,l.useContext)(Df.$W),ho=(0,i3.v)(Io,i),No=gK(e)||!!mo,Xo=(0,l.useRef)(No),Ta=zC(Xe,!0),Da=oi=>{Ta(),p==null||p(oi)},xr=oi=>{Ta(),h==null||h(oi)},Wa=oi=>{Ta(),G==null||G(oi)},Dr=(mo||m)&&l.createElement(l.Fragment,null,m,mo&&So),Wr=(0,mK.A)(x!=null?x:Te),[hi,Sr]=(0,fK.A)("input",ce,a);return Ct(Cn(l.createElement(hK.A,Object.assign({ref:(0,it.K4)(t,Xe),prefixCls:nt,autoComplete:xe},se,{disabled:ro,onBlur:Da,onFocus:xr,style:Object.assign(Object.assign({},et),R),styles:Object.assign(Object.assign({},Qe),F),suffix:Dr,allowClear:Wr,className:C()(k,Z,hn,lt,Et,Fe),onChange:Wa,addonBefore:A&&l.createElement(OC.A,{form:!0,space:!0},A),addonAfter:v&&l.createElement(OC.A,{form:!0,space:!0},v),classNames:Object.assign(Object.assign(Object.assign({},ee),Ke),{input:C()({[nt+"-sm"]:Co==="small",[nt+"-lg"]:Co==="large",[nt+"-rtl"]:ve==="rtl"},ee==null?void 0:ee.input,Ke.input,St),variant:C()({[nt+"-"+hi]:Sr},(0,i3.L)(nt,ho)),affixWrapper:C()({[nt+"-affix-wrapper-sm"]:Co==="small",[nt+"-affix-wrapper-lg"]:Co==="large",[nt+"-affix-wrapper-rtl"]:ve==="rtl"},St),wrapper:C()({[nt+"-group-rtl"]:ve==="rtl"},St),groupWrapper:C()({[nt+"-group-wrapper-sm"]:Co==="small",[nt+"-group-wrapper-lg"]:Co==="large",[nt+"-group-wrapper-rtl"]:ve==="rtl",[nt+"-group-wrapper-"+hi]:Sr},(0,i3.L)(nt+"-group-wrapper",ho,mo),St)})}))))});var xK=s(24243),WC=s(35125);const vK=e=>{const{componentCls:t,paddingXS:n}=e;return{[t]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:n,[t+"-input-wrapper"]:{position:"relative",[t+"-mask-icon"]:{position:"absolute",zIndex:"1",top:"50%",right:"50%",transform:"translate(50%, -50%)",pointerEvents:"none"},[t+"-mask-input"]:{color:"transparent",caretColor:"var(--ant-color-text)"},[t+"-mask-input[type=number]::-webkit-inner-spin-button"]:{"-webkit-appearance":"none",margin:0},[t+"-mask-input[type=number]"]:{"-moz-appearance":"textfield"}},"&-rtl":{direction:"rtl"},[t+"-input"]:{textAlign:"center",paddingInline:e.paddingXXS},["&"+t+"-sm "+t+"-input"]:{paddingInline:e.calc(e.paddingXXS).div(2).equal()},["&"+t+"-lg "+t+"-input"]:{paddingInline:e.paddingXS}}}},bK=(0,e2.OF)(["Input","OTP"],e=>{const t=(0,Z0.oX)(e,(0,WC.C)(e));return[vK(t)]},WC.b);var wK=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,a=Object.getOwnPropertySymbols(e);i<a.length;i++)t.indexOf(a[i])<0&&Object.prototype.propertyIsEnumerable.call(e,a[i])&&(n[a[i]]=e[a[i]]);return n};const CK=l.forwardRef((e,t)=>{const{className:n,value:a,onChange:i,onActiveChange:c,index:d,mask:p}=e,h=wK(e,["className","value","onChange","onActiveChange","index","mask"]),{getPrefixCls:m}=l.useContext(Cr.QO),x=m("otp"),v=typeof p=="string"?p:a,A=l.useRef(null);l.useImperativeHandle(t,()=>A.current);const k=G=>{i(d,G.target.value)},R=()=>{(0,At.A)(()=>{var G;const ee=(G=A.current)===null||G===void 0?void 0:G.input;document.activeElement===ee&&ee&&ee.select()})},F=G=>{const{key:ee,ctrlKey:ce,metaKey:se}=G;ee==="ArrowLeft"?c(d-1):ee==="ArrowRight"?c(d+1):ee==="z"&&(ce||se)&&G.preventDefault(),R()},Z=G=>{G.key==="Backspace"&&!a&&c(d-1),R()};return l.createElement("span",{className:x+"-input-wrapper",role:"presentation"},p&&a!==""&&a!==void 0&&l.createElement("span",{className:x+"-mask-icon","aria-hidden":"true"},v),l.createElement(s3,Object.assign({"aria-label":"OTP Input "+(d+1),type:p===!0?"password":"text"},h,{ref:A,value:a,onInput:k,onFocus:R,onKeyDown:F,onKeyUp:Z,onMouseDown:R,onMouseUp:R,className:C()(n,{[x+"-mask-input"]:p})})))});var SK=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,a=Object.getOwnPropertySymbols(e);i<a.length;i++)t.indexOf(a[i])<0&&Object.prototype.propertyIsEnumerable.call(e,a[i])&&(n[a[i]]=e[a[i]]);return n};function l3(e){return(e||"").split("")}const AK=e=>{const{index:t,prefixCls:n,separator:a}=e,i=typeof a=="function"?a(t):a;return i?l.createElement("span",{className:n+"-separator"},i):null},kK=l.forwardRef((e,t)=>{const{prefixCls:n,length:a=6,size:i,defaultValue:c,value:d,onChange:p,formatter:h,separator:m,variant:x,disabled:v,status:A,autoFocus:k,mask:R,type:F,onInput:Z,inputMode:G}=e,ee=SK(e,["prefixCls","length","size","defaultValue","value","onChange","formatter","separator","variant","disabled","status","autoFocus","mask","type","onInput","inputMode"]),{getPrefixCls:ce,direction:se}=l.useContext(Cr.QO),he=ce("otp",n),ve=(0,xK.A)(ee,{aria:!0,data:!0,attr:!0}),[Te,xe,Fe]=bK(he),et=(0,Ui.A)(ro=>i!=null?i:ro),Ke=l.useContext(Df.$W),Qe=(0,i3.v)(Ke.status,A),nt=l.useMemo(()=>Object.assign(Object.assign({},Ke),{status:Qe,hasFeedback:!1,feedbackIcon:null}),[Ke,Qe]),Xe=l.useRef(null),lt=l.useRef({});l.useImperativeHandle(t,()=>({focus:()=>{var ro;(ro=lt.current[0])===null||ro===void 0||ro.focus()},blur:()=>{var ro;for(let Io=0;Io<a;Io+=1)(ro=lt.current[Io])===null||ro===void 0||ro.blur()},nativeElement:Xe.current}));const Ct=ro=>h?h(ro):ro,[St,hn]=l.useState(()=>l3(Ct(c||"")));l.useEffect(()=>{d!==void 0&&hn(l3(d))},[d]);const Cn=(0,Ge.A)(ro=>{hn(ro),Z&&Z(ro),p&&ro.length===a&&ro.every(Io=>Io)&&ro.some((Io,mo)=>St[mo]!==Io)&&p(ro.join(""))}),Mt=(0,Ge.A)((ro,Io)=>{let mo=(0,Ne.A)(St);for(let ho=0;ho<ro;ho+=1)mo[ho]||(mo[ho]="");Io.length<=1?mo[ro]=Io:mo=mo.slice(0,ro).concat(l3(Io)),mo=mo.slice(0,a);for(let ho=mo.length-1;ho>=0&&!mo[ho];ho-=1)mo.pop();const So=Ct(mo.map(ho=>ho||" ").join(""));return mo=l3(So).map((ho,No)=>ho===" "&&!mo[No]?mo[No]:ho),mo}),Et=(ro,Io)=>{var mo;const So=Mt(ro,Io),ho=Math.min(ro+Io.length,a-1);ho!==ro&&So[ro]!==void 0&&((mo=lt.current[ho])===null||mo===void 0||mo.focus()),Cn(So)},Co=ro=>{var Io;(Io=lt.current[ro])===null||Io===void 0||Io.focus()},Pn={variant:x,disabled:v,status:Qe,mask:R,type:F,inputMode:G};return Te(l.createElement("div",Object.assign({},ve,{ref:Xe,className:C()(he,{[he+"-sm"]:et==="small",[he+"-lg"]:et==="large",[he+"-rtl"]:se==="rtl"},Fe,xe),role:"group"}),l.createElement(Df.$W.Provider,{value:nt},Array.from({length:a}).map((ro,Io)=>{const mo="otp-"+Io,So=St[Io]||"";return l.createElement(l.Fragment,{key:mo},l.createElement(CK,Object.assign({ref:ho=>{lt.current[Io]=ho},index:Io,size:et,htmlSize:1,className:he+"-input",onChange:Et,value:So,onActiveChange:Co,autoFocus:Io===0&&k},Pn)),Io<a-1&&l.createElement(AK,{separator:m,index:Io,prefixCls:he}))}))))});var MK={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"};const EK=MK;var IK=function(t,n){return l.createElement(Sh.A,(0,wd.A)({},t,{ref:n,icon:EK}))},_K=l.forwardRef(IK);const TK=_K;var PK={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"};const LK=PK;var NK=function(t,n){return l.createElement(Sh.A,(0,wd.A)({},t,{ref:n,icon:LK}))},jK=l.forwardRef(NK);const DK=jK;var RK=s(13199),BK=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,a=Object.getOwnPropertySymbols(e);i<a.length;i++)t.indexOf(a[i])<0&&Object.prototype.propertyIsEnumerable.call(e,a[i])&&(n[a[i]]=e[a[i]]);return n};const UK=e=>e?l.createElement(DK,null):l.createElement(TK,null),OK={click:"onClick",hover:"onMouseOver"},FK=l.forwardRef((e,t)=>{const{disabled:n,action:a="click",visibilityToggle:i=!0,iconRender:c=UK}=e,d=l.useContext(FC.A),p=n!=null?n:d,h=typeof i=="object"&&i.visible!==void 0,[m,x]=(0,l.useState)(()=>h?i.visible:!1),v=(0,l.useRef)(null);l.useEffect(()=>{h&&x(i.visible)},[h,i]);const A=zC(v),k=()=>{var et;if(p)return;m&&A();const Ke=!m;x(Ke),typeof i=="object"&&((et=i.onVisibleChange)===null||et===void 0||et.call(i,Ke))},R=et=>{const Ke=OK[a]||"",Qe=c(m),nt={[Ke]:k,className:et+"-icon",key:"passwordIcon",onMouseDown:Xe=>{Xe.preventDefault()},onMouseUp:Xe=>{Xe.preventDefault()}};return l.cloneElement(l.isValidElement(Qe)?Qe:l.createElement("span",null,Qe),nt)},{className:F,prefixCls:Z,inputPrefixCls:G,size:ee}=e,ce=BK(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:se}=l.useContext(Cr.QO),he=se("input",G),ve=se("input-password",Z),Te=i&&R(ve),xe=C()(ve,F,{[ve+"-"+ee]:!!ee}),Fe=Object.assign(Object.assign({},(0,RK.A)(ce,["suffix","iconRender","visibilityToggle"])),{type:m?"text":"password",className:xe,prefixCls:he,suffix:Te});return ee&&(Fe.size=ee),l.createElement(s3,Object.assign({ref:(0,it.K4)(t,v)},Fe))});var VK=s(21297),HC=s(67916),zK=s(92312),WK=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,a=Object.getOwnPropertySymbols(e);i<a.length;i++)t.indexOf(a[i])<0&&Object.prototype.propertyIsEnumerable.call(e,a[i])&&(n[a[i]]=e[a[i]]);return n};const HK=l.forwardRef((e,t)=>{const{prefixCls:n,inputPrefixCls:a,className:i,size:c,suffix:d,enterButton:p=!1,addonAfter:h,loading:m,disabled:x,onSearch:v,onChange:A,onCompositionStart:k,onCompositionEnd:R,variant:F,onPressEnter:Z}=e,G=WK(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd","variant","onPressEnter"]),{getPrefixCls:ee,direction:ce}=l.useContext(Cr.QO),se=l.useRef(!1),he=ee("input-search",n),ve=ee("input",a),{compactSize:Te}=(0,VC.RQ)(he,ce),xe=(0,Ui.A)(Pn=>{var ro;return(ro=c!=null?c:Te)!==null&&ro!==void 0?ro:Pn}),Fe=l.useRef(null),et=Pn=>{Pn!=null&&Pn.target&&Pn.type==="click"&&v&&v(Pn.target.value,Pn,{source:"clear"}),A==null||A(Pn)},Ke=Pn=>{var ro;document.activeElement===((ro=Fe.current)===null||ro===void 0?void 0:ro.input)&&Pn.preventDefault()},Qe=Pn=>{var ro,Io;v&&v((Io=(ro=Fe.current)===null||ro===void 0?void 0:ro.input)===null||Io===void 0?void 0:Io.value,Pn,{source:"input"})},nt=Pn=>{se.current||m||(Z==null||Z(Pn),Qe(Pn))},Xe=typeof p=="boolean"?l.createElement(VK.A,null):null,lt=he+"-button";let Ct;const St=p||{},hn=St.type&&St.type.__ANT_BUTTON===!0;hn||St.type==="button"?Ct=(0,HC.Ob)(St,Object.assign({onMouseDown:Ke,onClick:Pn=>{var ro,Io;(Io=(ro=St==null?void 0:St.props)===null||ro===void 0?void 0:ro.onClick)===null||Io===void 0||Io.call(ro,Pn),Qe(Pn)},key:"enterButton"},hn?{className:lt,size:xe}:{})):Ct=l.createElement(zK.Ay,{className:lt,color:p?"primary":"default",size:xe,disabled:x,key:"enterButton",onMouseDown:Ke,onClick:Qe,loading:m,icon:Xe,variant:F==="borderless"||F==="filled"||F==="underlined"?"text":p?"solid":void 0},p),h&&(Ct=[Ct,(0,HC.Ob)(h,{key:"addonAfter"})]);const Cn=C()(he,{[he+"-rtl"]:ce==="rtl",[he+"-"+xe]:!!xe,[he+"-with-button"]:!!p},i),Mt=Pn=>{se.current=!0,k==null||k(Pn)},Et=Pn=>{se.current=!1,R==null||R(Pn)},Co=Object.assign(Object.assign({},G),{className:Cn,prefixCls:ve,type:"search",size:xe,variant:F,onPressEnter:nt,onCompositionStart:Mt,onCompositionEnd:Et,addonAfter:Ct,suffix:d,onChange:et,disabled:x});return l.createElement(s3,Object.assign({ref:(0,it.K4)(Fe,t)},Co))});var GK=s(52401);const Om=s3;Om.Group=uK,Om.Search=HK,Om.TextArea=GK.A,Om.Password=FK,Om.OTP=kK;const ZK=Om;var KK=s(20366),YK=Object.defineProperty,XK=Object.defineProperties,QK=Object.getOwnPropertyDescriptors,c3=Object.getOwnPropertySymbols,GC=Object.prototype.hasOwnProperty,ZC=Object.prototype.propertyIsEnumerable,KC=(e,t,n)=>t in e?YK(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Py=(e,t)=>{for(var n in t||(t={}))GC.call(t,n)&&KC(e,n,t[n]);if(c3)for(var n of c3(t))ZC.call(t,n)&&KC(e,n,t[n]);return e},JK=(e,t)=>XK(e,QK(t)),qK=(e,t)=>{var n={};for(var a in e)GC.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&c3)for(var a of c3(e))t.indexOf(a)<0&&ZC.call(e,a)&&(n[a]=e[a]);return n},$K=(0,l.forwardRef)((e,t)=>{var n=e,{size:a,spin:i,style:c}=n,d=qK(n,["size","spin","style"]);const p=Py(Py({width:a||"var(--x-icon-size, 1em)",height:a||"var(--x-icon-size, 1em)",animation:i?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),c);return l.createElement("svg",JK(Py({ref:t,style:p},d),{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10 16.25C13.4518 16.25 16.25 13.4518 16.25 10C16.25 6.54822 13.4518 3.75 10 3.75C6.54822 3.75 3.75 6.54822 3.75 10C3.75 13.4518 6.54822 16.25 10 16.25ZM10 17.5C14.1421 17.5 17.5 14.1421 17.5 10C17.5 5.85786 14.1421 2.5 10 2.5C5.85786 2.5 2.5 5.85786 2.5 10C2.5 14.1421 5.85786 17.5 10 17.5Z",fill:"#8B8C8F"}),l.createElement("path",{d:"M9.375 5.625H10.625V7.5H9.375V5.625Z",fill:"#8B8C8F"}),l.createElement("path",{d:"M9.375 8.75H10.625V14.375H9.375V8.75Z",fill:"#8B8C8F"}))});const YC=e=>{let{className:t}=e;return(0,o.jsxs)("svg",{className:t,width:"22",height:"22",viewBox:"0 0 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,o.jsx)("path",{d:"M10.0164 5.26828C10.3542 4.35523 11.6456 4.35523 11.9835 5.26828L13.0986 8.28186C13.2048 8.56892 13.4312 8.79525 13.7182 8.90148L16.7318 10.0166C17.6448 10.3545 17.6448 11.6459 16.7318 11.9837L13.7182 13.0989C13.4312 13.2051 13.2048 13.4314 13.0986 13.7185L11.9835 16.732C11.6456 17.6451 10.3542 17.6451 10.0164 16.732L8.90123 13.7185C8.79501 13.4314 8.56868 13.2051 8.28162 13.0989L5.26804 11.9837C4.35499 11.6459 4.35499 10.3545 5.26804 10.0166L8.28162 8.90148C8.56868 8.79525 8.79501 8.56893 8.90123 8.28187L10.0164 5.26828Z",fill:"url(#aiCreditStarGradientNormal)"}),(0,o.jsxs)("defs",{children:[(0,o.jsxs)("linearGradient",{id:"aiCreditStarGradientNormal",x1:"8.50122",y1:"2.50018",x2:"10.6022",y2:"16.7187",gradientUnits:"userSpaceOnUse",children:[(0,o.jsx)("stop",{stopColor:"#DAFBFF"}),(0,o.jsx)("stop",{offset:"0.551111",stopColor:"#52A5FF"}),(0,o.jsx)("stop",{offset:"1",stopColor:"#7C89FF"})]}),(0,o.jsxs)("linearGradient",{id:"aiCreditStarGradientWarning",x1:"8.50146",y1:"1.50024",x2:"10.5674",y2:"16.7175",gradientUnits:"userSpaceOnUse",children:[(0,o.jsx)("stop",{stopColor:"#FFF0DA"}),(0,o.jsx)("stop",{offset:"0.551111",stopColor:"#FFA852"}),(0,o.jsx)("stop",{offset:"1",stopColor:"#FFAE78"})]})]})]})},XC=e=>{let{creditCount:t,isInsufficientCredit:n,costPerGeneration:a,openPurchaseModal:i}=e;if(t===void 0)return null;const c=(0,o.jsxs)(tY,{$isWarning:n,children:[(0,o.jsxs)("div",{className:"tooltip-header",children:[(0,o.jsx)("div",{className:"star-icon-wrapper",children:(0,o.jsx)(YC,{className:"content-star-icon"})}),(0,o.jsx)("span",{className:"header-text",children:(()=>{const p=I18N.ChatGPT.aicomponent.credit_remaining.split("{count}");return(0,o.jsxs)(o.Fragment,{children:[p[0],(0,o.jsx)("span",{className:"remaining-credit-text",children:t}),p[1]]})})()})]}),(0,o.jsx)("div",{className:"tooltip-body",children:I18N.ChatGPT.aicomponent.credit_cost_per_generation.replace("{cost}",a.toString())}),n&&(0,o.jsxs)("div",{className:"tooltip-warning",children:[(0,o.jsx)($K,{size:18}),(0,o.jsx)("span",{children:I18N.ChatGPT.aicomponent.credit_insufficient})]}),(0,o.jsx)("button",{className:"tooltip-button",onClick:i,children:I18N.ChatGPT.Upgrade})]});return(0,o.jsx)(M.e$,{children:d=>(0,o.jsx)(KK.A,{title:c,getPopupContainer:()=>document.querySelector(".ai-credit-tag"),placement:"bottom",arrow:!1,zIndex:1049,styles:{body:{padding:0,borderRadius:"12px",boxShadow:"2px 8px 20px 0px rgba(0, 0, 0, 0.1)",border:"1px solid "+(d==null?void 0:d.color_bg_border_01),background:""+(d==null?void 0:d.color_bg_white),pointerEvents:"auto"}},children:(0,o.jsxs)(eY,{className:"ai-credit-tag",$isWarning:n,onClick:i,children:[(0,o.jsx)(YC,{className:"tag-star-icon"}),(0,o.jsx)("span",{className:"credit-text",children:t})]})})})},eY=M.Ay.div.withConfig({displayName:"AICreditTag__StyledAICreditTag",componentId:"sc-1k1uaop-0"})(["display:flex;align-items:center;justify-content:center;gap:2px;padding:1px 10px 1px 4px;border-radius:100px;background:",";cursor:pointer;.tag-star-icon{width:22px;height:22px;path{fill:",";}}.credit-text{font-size:13px;font-weight:400;line-height:1.4;color:",";}"],e=>e.$isWarning?e.theme.color_warning_bg:e.theme.color_bg_tab,e=>e.$isWarning?"url(#aiCreditStarGradientWarning)":"url(#aiCreditStarGradientNormal)",e=>e.$isWarning?e.theme.color_warning:e.theme.color_text_L1),tY=M.Ay.div.withConfig({displayName:"AICreditTag__TooltipContent",componentId:"sc-1k1uaop-1"})(["display:flex;flex-direction:column;gap:8px;padding:16px;min-width:198px;background:",";border-radius:12px;.tooltip-header{display:flex;align-items:center;gap:8px;.star-icon-wrapper{display:flex;align-items:center;justify-content:center;width:24px;height:24px;background:",";border-radius:6px;.content-star-icon{width:24px;height:24px;}}.header-text{font-size:13px;font-weight:500;line-height:20px;color:",";.remaining-credit-text{color:",";}}}.tooltip-body{font-size:12px;font-weight:400;line-height:20px;color:",";}.tooltip-warning{display:flex;align-items:center;gap:4px;padding:1px 8px 1px 4px;background:",";border-radius:6px;svg{path{fill:",";}}span{font-size:12px;font-weight:400;line-height:22px;color:",";}}.tooltip-button{width:100%;padding:4px 14px;background:",";border:none;border-radius:6px;font-size:13px;font-weight:500;line-height:20px;color:",";cursor:pointer;&:hover{background:",";}&:active{background:",";}&.disabled{background:",";cursor:not-allowed;}}"],e=>e.theme.color_bg_white,e=>e.theme.color_bg_tab,e=>e.theme.color_text_L1,e=>e.$isWarning?e.theme.color_warning:e.theme.color_text_link_normal,e=>e.theme.color_text_L2,e=>e.theme.color_warning_bg,e=>e.theme.color_warning,e=>e.theme.color_warning,e=>e.theme.color_btn_primary_normal,e=>e.theme.color_text_white,e=>e.theme.color_btn_primary_hover,e=>e.theme.color_btn_primary_clicked,e=>e.theme.color_btn_primary_disabled);var Fm=s(64165),nY=s(32330);const QC=e=>{let{onClick:t,isDisabled:n}=e;return(0,o.jsx)(oY,{onClick:t,className:"chat-submit "+(n?"disabled":""),children:(0,o.jsx)(nY.A,{size:24})})},oY=M.Ay.div.withConfig({displayName:"SendIcon__StyledDivButton",componentId:"sc-1keqio0-0"})(["align-self:flex-end;background-color:",";background-clip:content-box;color:",";cursor:pointer;display:flex;align-items:center;justify-content:center;width:32px;height:32px;padding:4px;border-radius:50%;transition:background-color 0.3s ease;&.disabled{background-color:",";cursor:not-allowed;}&:hover:not(.disabled){background-color:",";}&:active:not(.disabled){background-color:",";}path{fill:currentColor;}"],e=>e.theme.color_btn_primary_normal,e=>e.theme.color_text_white,e=>e.theme.color_btn_primary_disabled,e=>e.theme.color_btn_primary_hover,e=>e.theme.color_btn_primary_clicked),JC=e=>{let{isDisable:t,storedText:n,updateStoredText:a,placeholder:i=I18N.ChatGPT.aicomponent.edit_whole_component,onSubmit:c,onEscape:d}=e;const[p,h]=(0,l.useState)(n||""),m=(0,l.useRef)(null),[x,v]=(0,l.useState)(!1),A=(0,l.useRef)(!1),{creditCount:k,isInsufficientCredit:R,costPerGeneration:F,openPurchaseModal:Z}=(0,Fm.mk)({cost:Fm.CW}),G=Te=>{h(Te.target.value),a==null||a(Te.target.value)},ee=Te=>{Te.key==="Enter"&&!Te.shiftKey&&(he(),Te.preventDefault()),Te.key==="Escape"&&(d==null||d(),Te.preventDefault())},ce=()=>{A.current=!0},se=()=>{A.current=!1},he=async()=>{if(R){MB.notice({text:I18N.ChatGPT.aicomponent.insufficient_points,type:"error",duration:3e3}),Z();return}p&&(A.current||(v(!0),await c(p),v(!1)))};(0,l.useEffect)(()=>{p&&document.querySelector(".chat-input-textarea").setSelectionRange(0,p.length)},[]);const ve=!(p!=null&&p.trim())||x||t;return(0,o.jsxs)(rY,{children:[(0,o.jsx)(aY,{disabled:x,ref:m,className:"chat-input-textarea",variant:"borderless",placeholder:i,autoSize:{minRows:2,maxRows:4},maxLength:2e4,value:p,onChange:G,onKeyDown:ee,autoFocus:!0,onCompositionStart:ce,onCompositionEnd:se}),(0,o.jsxs)("div",{className:"chat-input-button-area",children:[(0,o.jsx)(XC,{creditCount:k,isInsufficientCredit:R,costPerGeneration:F,openPurchaseModal:Z}),(0,o.jsx)(QC,{onClick:he,isDisabled:ve})]})]})},aY=(0,M.Ay)(ZK.TextArea).withConfig({displayName:"ChatInputArea__StyledChatInputTextArea",componentId:"sc-j1li8m-0"})(["&.ant-input{&::-webkit-scrollbar{display:block !important;width:6px !important;}&::-webkit-scrollbar-thumb{background:"," !important;border:1px solid transparent !important;background-clip:content-box !important;}border-radius:0;padding:0;line-height:20px;transition:none;text-align:justify;color:",";caret-color:",";&::placeholder{color:",";}&::selection{}}"],e=>e.theme.color_slider_normal,e=>e.theme.color_text_L1,e=>e.theme.color_btn_primary_clicked,e=>e.theme.color_text_L3),rY=M.Ay.div.withConfig({displayName:"ChatInputArea__StyledChatInputArea",componentId:"sc-j1li8m-1"})(["position:relative;width:360px;display:flex;flex-direction:column;justify-content:space-between;gap:10px;border-radius:8px;border:1px solid ",";background:",";padding:12px 6px 6px 12px;box-shadow:",";.chat-input-button-area{display:flex;justify-content:flex-end;align-items:center;gap:8px;}"],e=>e.theme.color_bg_border_01,e=>e.theme.color_bg_white,e=>e.theme.shadow_m),qC=()=>(0,o.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,o.jsx)("path",{d:"M9.92676 6.74707C10.2953 5.75101 11.7047 5.75101 12.0732 6.74707L13.2891 10.0342C13.4049 10.3473 13.6527 10.5941 13.9658 10.71L17.2529 11.9268C18.249 12.2953 18.249 13.7047 17.2529 14.0732L13.9658 15.2891C13.6527 15.4049 13.405 15.6518 13.2891 15.9648L12.0732 19.2529C11.7047 20.249 10.2953 20.249 9.92676 19.2529L8.71094 15.9648C8.59502 15.6518 8.34726 15.4049 8.03418 15.2891L4.74707 14.0732C3.75101 13.7047 3.75101 12.2953 4.74707 11.9268L8.03418 10.71C8.34734 10.5941 8.59506 10.3473 8.71094 10.0342L9.92676 6.74707ZM17.04 4.32031C17.198 3.89343 17.802 3.89343 17.96 4.32031L18.4814 5.72852C18.5311 5.8626 18.6365 5.96884 18.7705 6.01855L20.1797 6.54004C20.6066 6.698 20.6066 7.302 20.1797 7.45996L18.7705 7.98145C18.6366 8.03115 18.5311 8.13659 18.4814 8.27051L17.96 9.67969C17.802 10.1066 17.198 10.1066 17.04 9.67969L16.5186 8.27051C16.4689 8.13659 16.3634 8.03114 16.2295 7.98145L14.8203 7.45996C14.3934 7.302 14.3934 6.698 14.8203 6.54004L16.2295 6.01855C16.3635 5.96884 16.4689 5.8626 16.5186 5.72852L17.04 4.32031Z",fill:"url(#paint0_linear_7040_2992)"}),(0,o.jsx)("defs",{children:(0,o.jsxs)("linearGradient",{id:"paint0_linear_7040_2992",x1:"9.23804",y1:"2.49626",x2:"11.6298",y2:"19.1453",gradientUnits:"userSpaceOnUse",children:[(0,o.jsx)("stop",{stopColor:"#DAFBFF"}),(0,o.jsx)("stop",{offset:"0.551111",stopColor:"#52A5FF"}),(0,o.jsx)("stop",{offset:"1",stopColor:"#7C89FF"})]})})]}),iY="/mb-proto2/images/AIGC/aicomponent-toolbar-edit.gif",sY=()=>{const[e,t]=(0,l.useState)(!1),[n,a]=(0,l.useState)(!1),i=()=>{t(!0)},c=()=>{t(!1),a(!1)};return(0,o.jsxs)(cY,{className:"trigger-icon pure-icon",$gifLoaded:n,onMouseEnter:i,onMouseLeave:c,children:[(0,o.jsx)(qC,{}),e&&(0,o.jsx)("img",{className:"ai-component-toolbar-edit-gif",src:iY,alt:"",onLoad:d=>{a(!0)}})]})},lY=e=>{const{dropdownPosition:t,onSubmit:n}=e,a=(0,r.wA)(),i=(0,l.useRef)(null),c=(0,r.d4)(D0.SH),d=(0,r.d4)(D0.Lu),p=x=>{a({type:"ai-component:update:editInputAreaText",payload:{editInputAreaText:x}})},h=async x=>{var v,A;await n(x),(v=i.current)==null||(A=v.close)==null||A.call(v)},m=()=>{var x,v;(x=i.current)==null||(v=x.close)==null||v.call(x)};return(0,o.jsx)(o.Fragment,{children:(0,o.jsx)(Rl,{ref:i,title:I18N.TextToolbar.code.ai_editor,top:t==="bottom"?40:-100,left:-28,trigger:(0,o.jsx)("div",{className:"trigger-container padding-0",children:(0,o.jsx)(sY,{})}),children:(0,o.jsx)(JC,{isDisable:d,storedText:c,updateStoredText:p,onSubmit:h,onEscape:m})})})},cY=M.Ay.div.withConfig({displayName:"CodeAIEdit__StyledTriggerIcon",componentId:"sc-1win7bi-0"})(["position:relative;.ai-component-toolbar-edit-gif{width:24px;height:24px;position:absolute;top:4px;left:4px;z-index:1;opacity:0;}",""],e=>e.$gifLoaded&&"\n svg {\n opacity: 0;\n }\n\n .ai-component-toolbar-edit-gif {\n opacity: 1;\n }\n "),dY=()=>[{component:OZ},{component:UZ},{type:"VSeparator",component:J0},{component:$Z},{component:ZZ}],pY=()=>[],uY=()=>[{component:lY,getMiddleProps:e=>({onSubmit:async n=>{await e.dispatch({type:"entry:aiComponent:float-bar:chat-ai-send",payload:{userContent:n,editComponentKey:e.widget.key,type:"edit",selectedElementList:[]}})}})},{component:pK}],hY=()=>[{component:PZ}],mY=e=>{const n=(0,r.d4)(D0.G1)[e.widget.key]||{},{type:a="common"}=n;return(a==="loading"?hY():a==="result"?dY():a==="edit-html"?pY():uY()).map(c=>{var d;return(0,o.jsx)(c.component,{...e,...(d=c.getMiddleProps)==null?void 0:d.call(c,e)},c.component.name)})},fY=e=>({controlConfig:[{component:mY}]}),gY=M.Ay.div.withConfig({displayName:"styles__StyledButtonHeightContent",componentId:"sc-s81i55-0"})(["display:flex;.title{width:100%;height:26px;display:flex;align-items:center;color:",";font-weight:500;font-size:12px;}.heights{display:flex;align-items:center;margin-bottom:8px;.height-opt{width:46px;height:28px;border-radius:6px;margin-right:8px;cursor:pointer;display:flex;align-items:center;justify-content:center;&:last-child{margin-right:0;}&.is-active{background:",";}&:not(.is-active):hover{background:",";}}}.size-settings{display:flex;align-items:center;flex-direction:column;width:100%;.box{width:100%;display:flex;align-items:center;justify-content:space-between;height:36px;span{font-size:12px;color:",";line-height:16px;}.font-size-container{width:60px;.font-size-input{+ .toolbar-dropdown-opener{.var-tag{margin-left:0;}}}}.button-input,.input.input-number{width:60px !important;height:28px;display:flex;align-items:center;border-radius:6px;",";input{margin-left:0;padding-left:12px;}.arrow{cursor:pointer;transform:rotate(-90deg);margin-right:7px;path{stroke:",";}}&.has-menu{input{width:calc(100% - 14px);}}}.var-input-container{width:60px !important;height:28px;}}}"],e=>e.theme.color_text_L1,e=>e.theme.color_btn_secondary_active,e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_text_L2,gu,e=>e.theme.color_text_L1),yY=(0,M.DU)(["#IBOT_SELECT_MENU_ROOT{.SelectMenuPortal{.font-size-input-menu,.icon-size-input-menu{margin-left:78px;}}}"]),xY=(0,l.memo)(e=>{var t,n;const{config:a,dropdownPosition:i,widget:c,textFontInfo:d,onChange:p,onChangeText:h,dispatch:m}=e,{title:x}=a,{key:v,hotAttr:{type:A,w:k,h:R,icon:F,isLockAspect:Z}}=c,{fontSize:G,refVars:ee}=d,ce={w:(0,_l.xj)([c],"w"),h:(0,_l.xj)([c],"h"),icon:(0,_l.xj)([c],"icon"),...ee},he=(0,r.d4)(ns.y.query.getMissFontHiKeySet).has(v),ve=xm.VV.includes(A),Te=(0,r.d4)(me.lh),xe=Te&&Te===v,Fe=!he,et=(0,l.useRef)(null),Ke=(0,l.useRef)(null),[Qe,nt]=(0,l.useState)(null),Xe=(0,l.useMemo)(()=>[{key:"extra_small",label:I18N.TextToolbar.button.height.default.extra_small,data:{fontSize:11,iconSize:12,height:28,gap:4}},{key:"small",label:I18N.TextToolbar.button.height.default.small,data:{fontSize:12,iconSize:12,height:32,gap:4}},{key:"middle",label:I18N.TextToolbar.button.height.default.middle,data:{fontSize:14,iconSize:16,height:36,gap:6}},{key:"big",label:I18N.TextToolbar.button.height.default.big,data:{fontSize:16,iconSize:18,height:40,gap:6}}],[]),lt=(0,l.useMemo)(()=>[12,14,16,24,32,48,100].map(ro=>({label:ro+"px",value:ro})),[]),Ct=(0,l.useMemo)(()=>Xe.find(ro=>{const{data:Io}=ro;return Io.height===R&&Io.fontSize===G&&(F?Io.iconSize===F.iconSize&&Io.gap===F.gap:!0)}),[R,F,G,Xe]),St=(ro,Io)=>{h({attr:"fontSize",value:ro,refVar:Io,dispatch:m})},hn=(ro,Io,mo)=>{Io==="fontSize"?St(ro,mo):["iconSize","gap"].includes(Io)&&p({value:ro,attr:Io,supAttr:"icon",refVar:mo,dispatch:m,selections:[c.key]})},Cn=(ro,Io)=>{if(typeof ro!="number")return;const mo=ro>1?ro:1;m({type:"entry:items:set:width",payload:{width:mo,refVar:Io}}),m({type:"entry:auto:show:hide:item"})},Mt=(ro,Io)=>{if(typeof ro!="number")return;const mo=ro>1?ro:1;m({type:"entry:items:set:height",payload:{height:mo,refVar:Io}}),m({type:"entry:auto:show:hide:item"})},Et=(0,l.useCallback)(ro=>{var Io,mo;const{data:{fontSize:So,iconSize:ho,height:No,gap:Xo}}=ro;Mt(No,""),hn(So,"fontSize","");const Ta=F?{...F,iconSize:ho,gap:Xo}:{iconSize:ho,gap:Xo};p({value:Ta,attr:"icon",dispatch:m,selections:[v]}),(Io=Ke.current)==null||(mo=Io.close)==null||mo.call(Io)},[hn,Mt,p,F,v,Ke]),Co=(0,l.useCallback)(()=>{setTimeout(()=>{nt({menuPosRight:void 0,direction:"right-start",distance:2,targetNode:et==null?void 0:et.current})})},[et]),Pn=ro=>(0,o.jsx)(j0.A,{className:"arrow",size:14,onClick:ro});return(0,o.jsx)(Rl,{ref:Ke,title:x,top:i==="bottom"?40:F!=null&&F.path?-300:-227,left:-90,onShow:Co,trigger:(0,o.jsxs)("div",{className:"trigger-container has-arrow",children:[(0,o.jsx)("span",{className:"title",children:Ct?Ct.label+"-"+R:I18N.TextToolbar.button.height.none}),(0,o.jsx)("div",{className:"trigger",children:(0,o.jsx)(j0.A,{className:"arrow",size:14})})]}),children:(0,o.jsxs)(gY,{className:"content-container button-height-options width-240",ref:et,children:[(0,o.jsx)("span",{className:"title",children:I18N.TextToolbar.default}),(0,o.jsx)("div",{className:"heights",children:Xe.map(ro=>(0,o.jsx)("div",{className:C()("height-opt",{"is-active":(Ct==null?void 0:Ct.key)===ro.key}),onClick:()=>Et(ro),children:ro.label},ro.key))}),(0,o.jsx)("span",{className:"title",children:I18N.TextToolbar.button.height.sizeText}),(0,o.jsxs)("div",{className:"size-settings",children:[(0,o.jsxs)("div",{className:"box",children:[(0,o.jsx)("span",{children:I18N.TextToolbar.button.height.fontSize}),(0,o.jsx)(wg.A,{disabled:he||!ve&&xe,fontSize:G,refVar:ce==null?void 0:ce.fontSize,canAddVar:!0,isShowLess12:!1,isShowAddVarIcon:!1,dropdownProps:Qe,handleChange:hn,onRenderArrow:Pn}),(0,o.jsx)(yY,{})]}),(F==null?void 0:F.path)&&(0,o.jsxs)("div",{className:"box",children:[(0,o.jsx)("span",{children:I18N.TextToolbar.button.height.iconSize}),(0,o.jsx)(d0.Yw,{type:"number",className:"step-input-width-72 button-input",inputClassName:"general-input",menuClassName:"icon-size-input-menu",attr:"iconSize",isShowAddVarIcon:!1,value:F==null?void 0:F.iconSize,refVar:ce==null||(t=ce.icon)==null?void 0:t.iconSize,isNotVerify:!1,disabled:!Fe,min:1,max:1e3,placeholder:"",optionList:lt,dropdownProps:Qe,onConfirm:(ro,Io)=>hn(ro,"iconSize",Io),onRenderArrow:Pn})]}),(0,o.jsxs)("div",{className:"box",children:[(0,o.jsx)("span",{children:I18N.TextToolbar.button.height.buttonWidth}),(0,o.jsx)(d0.Yw,{type:"number",className:"step-input-width-72 button-input",inputClassName:"general-input",attr:"w",isShowAddVarIcon:!1,value:Z&&ce!=null&&ce.h?k:Math.round(k),refVar:ce==null?void 0:ce.w,isNotVerify:!1,disabled:!Fe,min:1,max:99999,placeholder:"",dropdownProps:Qe,onConfirm:Cn})]}),(0,o.jsxs)("div",{className:"box",children:[(0,o.jsx)("span",{children:I18N.TextToolbar.button.height.buttonHeight}),(0,o.jsx)(d0.Yw,{type:"number",className:"step-input-width-72 button-input",inputClassName:"general-input",attr:"h",isShowAddVarIcon:!1,value:Z&&ce!=null&&ce.w?R:Math.round(R),refVar:ce==null?void 0:ce.h,isNotVerify:!1,disabled:!Fe,min:1,max:99999,placeholder:"",dropdownProps:Qe,onConfirm:Mt})]}),(F==null?void 0:F.path)&&(0,o.jsxs)("div",{className:"box",children:[(0,o.jsx)("span",{children:I18N.TextToolbar.button.height.gap}),(0,o.jsx)(d0.Yw,{type:"number",className:"step-input-width-72 button-input",inputClassName:"general-input",attr:"gap",isShowAddVarIcon:!1,value:F==null?void 0:F.gap,refVar:ce==null||(n=ce.icon)==null?void 0:n.gap,isNotVerify:!1,disabled:!Fe,min:1,max:1e3,placeholder:"",dropdownProps:Qe,onConfirm:(ro,Io)=>hn(ro,"gap",Io)})]})]})]})})}),vY=(0,l.memo)(e=>{const{config:t,dropdownPosition:n,widget:a,editorState:i,getTextV1:c,setTextV1:d,dispatch:p}=e,{title:h}=t,{hotAttr:{stateType:m}}=a,x=(0,l.useRef)(null),{activeColorItem:v,handleChangeStateType:A}=c6({widget:a,editorState:i,getTextV1:c,setTextV1:d,dispatch:p}),k=(0,l.useMemo)(()=>[{key:"default",label:I18N.TextToolbar.button.stateType.default},{key:"hover",label:I18N.TextToolbar.button.stateType.hover},{key:"active",label:I18N.TextToolbar.button.stateType.active},{key:"disabled",label:I18N.TextToolbar.button.stateType.disabled}],[]),R=(0,l.useMemo)(()=>{const Z=k.find(G=>G.key===m);return!Z||v!=null&&v.isCustomize?I18N.TextToolbar.button.stateType.none:Z.label},[k,m,v]),F=Z=>{var G,ee;A(Z),(G=x.current)==null||(ee=G.close)==null||ee.call(G)};return(0,o.jsx)(Rl,{ref:x,title:h,top:n==="bottom"?40:-135,left:-29,trigger:(0,o.jsxs)("div",{className:"trigger-container has-arrow",children:[(0,o.jsx)("span",{className:"title",children:R}),(0,o.jsx)("div",{className:"trigger",children:(0,o.jsx)(j0.A,{className:"arrow",size:14})})]}),children:(0,o.jsx)("div",{className:"content-container state-type-options width-140",children:k.map(Z=>(0,o.jsx)(N0,{value:Z.key,active:m===Z.key&&!(v!=null&&v.isCustomize),onClick:()=>F(Z.key),children:(0,o.jsxs)(o.Fragment,{children:[m===Z.key&&!(v!=null&&v.isCustomize)&&(0,o.jsx)(xt.C,{name:"draft/check",className:"draft-check"}),(0,o.jsx)("span",{className:"option-title",children:Z.label})]})},Z.key))})})});var $C=s(75661);const bY=()=>[{component:Xb,styleConfig:{title:I18N.TextToolbar.button.styleType.title}},{type:p0.Appear,component:vY,styleConfig:{title:I18N.TextToolbar.button.stateType.title}},{component:xY,styleConfig:{title:I18N.TextToolbar.button.height.title},getMiddleProps:e=>{const{widget:t,dispatch:n}=e,{hotAttr:{type:a}}=t;return{textFontInfo:bu.sE[vu.s.TextFontPanel][a]({...e,selectedItems:[t]}),onChangeText:d=>{let{attr:p,value:h,refVar:m}=d;Lh({attr:p,value:h,refVar:m,dispatch:n})},onChange:Nf}}},q0,{type:p0.Appear,component:_7,styleConfig:{title:I18N.TextToolbar.button.color.title}},q0,$6(),ey(),D4(),{component:j9,styleConfig:{title:I18N.SettingPanel.icon,source:$C.Z.buttonIconWidgetSettingPanel},getMiddleProps:e=>{const{widget:t,dispatch:n}=e,{key:a,hotAttr:{icon:i}}=t;return{icon:i,onSetCurrentNodeIcon:(p,h)=>{const{iconName:m}=(0,y5.RU)(p),{path:x,view_box:v}=p,A=i?{...i,path:x,viewBox:v,iconName:m}:{path:x,viewBox:v,iconName:m,iconSize:12,gap:4,isMultiColorIcon:h,position:"left"};n({type:"entry:widget:change",payload:{flatChgList:[{key:a,hotAttr:{icon:A}}]}}),n({type:"entry:auto:show:hide:item"})},onChangePosition:p=>{const h=p==="none"?{path:"",viewBox:""}:{position:p},m=i?{...i,...h}:h;n({type:"entry:widget:change",payload:{flatChgList:[{key:a,hotAttr:{icon:m}}]}}),n({type:"entry:auto:show:hide:item"})}}}},q0,ty(),oy()],wY=e=>{const t=bY(),{textRefStyleKey:n}=e,a=n?t.slice(0,t.length-1).concat([ny()]).concat(t.slice(t.length-1)):t;return{getCommonProps:i=>wu(i),controlConfig:a}};var CY=Object.defineProperty,SY=Object.defineProperties,AY=Object.getOwnPropertyDescriptors,d3=Object.getOwnPropertySymbols,eS=Object.prototype.hasOwnProperty,tS=Object.prototype.propertyIsEnumerable,nS=(e,t,n)=>t in e?CY(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ly=(e,t)=>{for(var n in t||(t={}))eS.call(t,n)&&nS(e,n,t[n]);if(d3)for(var n of d3(t))tS.call(t,n)&&nS(e,n,t[n]);return e},kY=(e,t)=>SY(e,AY(t)),MY=(e,t)=>{var n={};for(var a in e)eS.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&d3)for(var a of d3(e))t.indexOf(a)<0&&tS.call(e,a)&&(n[a]=e[a]);return n},EY=(0,l.forwardRef)((e,t)=>{var n=e,{size:a,spin:i,style:c}=n,d=MY(n,["size","spin","style"]);const p=Ly(Ly({width:a||"var(--x-icon-size, 1em)",height:a||"var(--x-icon-size, 1em)",animation:i?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),c);return l.createElement("svg",kY(Ly({ref:t,style:p},d),{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),l.createElement("path",{d:"M3.65326 7.14335C3.36037 6.85046 3.36037 6.37558 3.65326 6.08269L5.77458 3.96137C6.06748 3.66848 6.54235 3.66848 6.83524 3.96137L8.95656 6.08269C9.24946 6.37558 9.24946 6.85046 8.95656 7.14335C8.66367 7.43624 8.1888 7.43624 7.8959 7.14335L7.06663 6.31408L7.06663 17.6859L7.8959 16.8566C8.1888 16.5637 8.66367 16.5637 8.95656 16.8566C9.24946 17.1495 9.24946 17.6243 8.95656 17.9172L6.83524 20.0386C6.54235 20.3315 6.06748 20.3315 5.77458 20.0386L3.65326 17.9172C3.36037 17.6243 3.36037 17.1495 3.65326 16.8566C3.94616 16.5637 4.42103 16.5637 4.71392 16.8566L5.56663 17.7093L5.56663 6.29064L4.71392 7.14335C4.42103 7.43624 3.94616 7.43624 3.65326 7.14335Z",fill:"#19191A"}),l.createElement("path",{d:"M10.5664 5.74951C10.5664 5.3353 10.9022 4.99951 11.3164 4.99951H19.8164C20.2306 4.99951 20.5664 5.3353 20.5664 5.74951C20.5664 6.16373 20.2306 6.49951 19.8164 6.49951H11.3164C10.9022 6.49951 10.5664 6.16373 10.5664 5.74951Z",fill:"#19191A"}),l.createElement("path",{d:"M11.3164 8.99951C10.9022 8.99951 10.5664 9.3353 10.5664 9.74951C10.5664 10.1637 10.9022 10.4995 11.3164 10.4995H19.8164C20.2306 10.4995 20.5664 10.1637 20.5664 9.74951C20.5664 9.3353 20.2306 8.99951 19.8164 8.99951H11.3164Z",fill:"#19191A"}),l.createElement("path",{d:"M10.5664 13.7495C10.5664 13.3353 10.9022 12.9995 11.3164 12.9995H19.8164C20.2306 12.9995 20.5664 13.3353 20.5664 13.7495C20.5664 14.1637 20.2306 14.4995 19.8164 14.4995H11.3164C10.9022 14.4995 10.5664 14.1637 10.5664 13.7495Z",fill:"#19191A"}),l.createElement("path",{d:"M11.3164 16.9593C10.9022 16.9593 10.5664 17.2951 10.5664 17.7093C10.5664 18.1235 10.9022 18.4593 11.3164 18.4593H19.8164C20.2306 18.4593 20.5664 18.1235 20.5664 17.7093C20.5664 17.2951 20.2306 16.9593 19.8164 16.9593H11.3164Z",fill:"#19191A"}))});const IY=()=>{const e=ty();return[ny(),{type:p0.Text,component:uF,styleConfig:{title:I18N.TextToolbar.fontFamily.title},getMiddleProps:t=>{const{widget:n,widget:{hotAttr:{type:a}}}=t;return{textInfo:bu.sE[vu.s.TextFontPanel][a]({...t,selectedItems:[n]}),onChange:d=>{let{value:p,attr:h,refVar:m,dispatch:x,isFakeOverride:v}=d;Lh({value:p,attr:h,refVar:m,dispatch:x,isFakeOverride:v})}}}},{...jf(),type:p0.Text},{type:"VSeparator",component:J0},{type:p0.Text,component:D7,styleConfig:{title:I18N.TextToolbar.button.color.title},getMiddleProps:t=>{const{widget:n,isTextEditing:a,hasMissFontHi:i,dispatch:c}=t,{hotAttr:{type:d}}=n,p=bu.sE[vu.s.TextFontPanel][d]({...t,selectedItems:[n]}),{textColor:h,supAttr:m}=p;return{color:h,attr:"textColor",supAttr:m,disabled:!!i,canOpenLib:!a,canCreateColorRef:!a,getMode:A=>A&&!a?"input":"",onChange:A=>{const k=(0,ul.t0)(A);Lh({value:k,attr:"textColor",refVar:"",dispatch:c})}}}},oy(),{type:p0.Text,component:i4,styleConfig:{title:I18N.TextToolbar.style0}},{...e,styleConfig:{...e.styleConfig,icon:(0,o.jsx)(EY,{size:24}),title:I18N.TextToolbar.font.spacing.title,isShowFontLib:!1,isShowFamily:!1,isShowText:!1,isShowSpacing:!0}},{type:"VSeparator",component:J0},ay()]},_Y=e=>{const t=IY();return{getCommonProps:n=>wu(n),controlConfig:t}};var TY=Object.defineProperty,PY=Object.defineProperties,LY=Object.getOwnPropertyDescriptors,p3=Object.getOwnPropertySymbols,oS=Object.prototype.hasOwnProperty,aS=Object.prototype.propertyIsEnumerable,rS=(e,t,n)=>t in e?TY(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ny=(e,t)=>{for(var n in t||(t={}))oS.call(t,n)&&rS(e,n,t[n]);if(p3)for(var n of p3(t))aS.call(t,n)&&rS(e,n,t[n]);return e},NY=(e,t)=>PY(e,LY(t)),jY=(e,t)=>{var n={};for(var a in e)oS.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&p3)for(var a of p3(e))t.indexOf(a)<0&&aS.call(e,a)&&(n[a]=e[a]);return n},DY=(0,l.forwardRef)((e,t)=>{var n=e,{size:a,spin:i,style:c}=n,d=jY(n,["size","spin","style"]);const p=Ny(Ny({width:a||"var(--x-icon-size, 1em)",height:a||"var(--x-icon-size, 1em)",animation:i?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),c);return l.createElement("svg",NY(Ny({ref:t,style:p},d),{width:"64",height:"63",viewBox:"0 0 64 63",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),l.createElement("g",{clipPath:"url(#clip0_2868_1177)"},l.createElement("rect",{width:"64",height:"62.67",rx:"2",fill:"white"}),l.createElement("path",{d:"M1 1L63 62",stroke:"#DEDFE0",strokeLinecap:"round"}),l.createElement("path",{d:"M63 1L1 62",stroke:"#DEDFE0",strokeLinecap:"round"})),l.createElement("rect",{x:"0.5",y:"0.5",width:"63",height:"61.67",rx:"1.5",stroke:"#DEDFE0"}),l.createElement("defs",null,l.createElement("clipPath",{id:"clip0_2868_1177"},l.createElement("rect",{width:"64",height:"62.67",rx:"2",fill:"white"}))))}),RY=s(55514);const BY=()=>{const e=(0,r.d4)(rt.oE),t=(0,r.Pj)();return{handleGetImageData:async(a,i)=>{e||await(0,m5._)();const c=t.getState(),d=(0,rt.ld)(c);let p;if(d.length){var h;const{tab:ee,imgs:ce}=d[0];ce.length&&(h=ce[0])!=null&&h.length&&(p=(0,nu.Kb)(ee,ce[0]))}if(!p)return;const m=(0,Af.BL)(p),{image:x,image:{imageRectOriginalWidth:v,imageRectOriginalHeight:A}}=m,k=(0,RY.Z)({w:a,h:i,imageRectOriginalWidth:v,imageRectOriginalHeight:A}),R=k.imageRectCenterX,F=k.imageRectCenterY,Z=k.imageRectWidth,G=k.imageRectHeight;return{...m,image:{...x,imageRectCenterX:R,imageRectCenterY:F,imageRectWidth:Z,imageRectHeight:G}}}}},UY=M.Ay.div.withConfig({displayName:"styles__StyledImageTypeSelectContent",componentId:"sc-qj0gg7-0"})(["&.image-type-select-options.width-240{display:flex;flex-direction:row;align-items:center;padding:6px;}.type-option{width:72px;height:72px;border-radius:6px;padding:4px;margin-right:6px;cursor:pointer;.inner{width:100%;height:100%;border-radius:2px;display:flex;align-items:center;justify-content:center;overflow:hidden;}img{width:100%;}&.image_placeholder{.inner{background:",";svg{path[fill]{fill:",";}}}}&:not(.is-active):hover{outline:1.5px solid ",";}&.is-active{outline:1.5px solid ",";}&:last-child{margin-right:0;}}"],e=>e.theme.color_navigation_active,e=>e.theme.color_text_disabled01,e=>e.theme.color_bg_select01,e=>e.theme.color_btn_primary_normal),OY=(0,l.memo)(e=>{const{config:t,dropdownPosition:n,widget:a,dispatch:i}=e,{title:c}=t,{hotAttr:d,hotAttr:{type:p,image:h,w:m,h:x}}=a,{handleGetImageData:v}=BY(),A=(0,l.useRef)(null),k=(0,l.useMemo)(()=>[{key:"high_fidelity_image",label:I18N.TextToolbar.image.typeSelect.high_fidelity_image,icon:(0,o.jsx)("img",{src:"/res-img/org/hot/7.jpg",alt:""})},{key:"image_placeholder",label:I18N.TextToolbar.image.typeSelect.image_placeholder,icon:(0,o.jsx)(O4,{size:24})},{key:"universal_placeholder",label:I18N.TextToolbar.image.typeSelect.universal_placeholder,icon:(0,o.jsx)(DY,{size:64})}],[]),R=(0,l.useMemo)(()=>{if(p===$.x.WPlaceholder)return"universal_placeholder";if(p===$.x.WImage)return h!=null&&h.imageRef?"high_fidelity_image":"image_placeholder"},[p,h]),F=(0,l.useMemo)(()=>{const G=k.find(ee=>ee.key===R);return G?G.label:I18N.TextToolbar.none},[R,k]),Z=async G=>{var ee,ce;if(G===R)return;const{name:se,zIndex:he,x:ve,y:Te,w:xe,h:Fe,r:et,opacity:Ke,isLock:Qe,isVisible:nt,isLockAspect:Xe,fixPosTo:lt,stickyOffset:Ct,interactions:St,refVars:hn}=d,Cn={name:se,zIndex:he,x:ve,y:Te,w:xe,h:Fe,r:et,opacity:Ke,isLock:Qe,isVisible:nt,isLockAspect:Xe,fixPosTo:lt,stickyOffset:Ct,interactions:St,refVars:hn};let Mt;switch(G){case"high_fidelity_image":{const Et=await v(m,x);if(!Et)break;if(p===$.x.WImage){const{image:Co,flip:Pn}=Et;Mt={...d,type:$.x.WImage,image:Co,flip:Pn}}else Mt={...Et,type:$.x.WImage,...Cn};break}case"image_placeholder":{const Et=(0,fp.gu)({type:$.x.WImage});p===$.x.WPlaceholder?Mt={...Et,type:$.x.WImage,...Cn}:Mt={...d,type:$.x.WImage,image:Et.image,flip:Et.flip};break}case"universal_placeholder":{Mt={...(0,fp.gu)({type:$.x.WPlaceholder}),type:$.x.WPlaceholder,...Cn};break}}Mt&&(i({type:"entry:widget:change",payload:{flatChgList:[{key:a.key,hotAttr:Mt}]}}),i({type:"entry:auto:show:hide:item"}),(ee=A.current)==null||(ce=ee.close)==null||ce.call(ee))};return(0,o.jsx)(Rl,{ref:A,title:c,top:n==="bottom"?40:-91,left:ENV.IS_MO?-10:-16,trigger:(0,o.jsxs)("div",{className:"trigger-container has-arrow",children:[(0,o.jsx)("span",{className:"title",children:F}),(0,o.jsx)("div",{className:"trigger",children:(0,o.jsx)(j0.A,{className:"arrow",size:14})})]}),children:(0,o.jsx)(UY,{className:"content-container image-type-select-options width-240",children:k.map(G=>(0,o.jsx)(Ti.A,{className:"floating-tooltip",content:G.label,direction:"down",distance:12,children:(0,o.jsx)("div",{className:C()("type-option",G.key,{"is-active":R===G.key}),onClick:()=>Z(G.key),children:(0,o.jsx)("div",{className:"inner",children:G.icon})})},G.key))})})});var FY=Object.defineProperty,VY=Object.defineProperties,zY=Object.getOwnPropertyDescriptors,u3=Object.getOwnPropertySymbols,iS=Object.prototype.hasOwnProperty,sS=Object.prototype.propertyIsEnumerable,lS=(e,t,n)=>t in e?FY(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,jy=(e,t)=>{for(var n in t||(t={}))iS.call(t,n)&&lS(e,n,t[n]);if(u3)for(var n of u3(t))sS.call(t,n)&&lS(e,n,t[n]);return e},WY=(e,t)=>VY(e,zY(t)),HY=(e,t)=>{var n={};for(var a in e)iS.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&u3)for(var a of u3(e))t.indexOf(a)<0&&sS.call(e,a)&&(n[a]=e[a]);return n},GY=(0,l.forwardRef)((e,t)=>{var n=e,{size:a,spin:i,style:c}=n,d=HY(n,["size","spin","style"]);const p=jy(jy({width:a||"var(--x-icon-size, 1em)",height:a||"var(--x-icon-size, 1em)",animation:i?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),c);return l.createElement("svg",WY(jy({ref:t,style:p},d),{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),l.createElement("path",{d:"M7.25 10.0298C7.66421 10.0298 8 10.3656 8 10.7798C8 11.194 7.66421 11.5298 7.25 11.5298H6C5.72386 11.5298 5.5 11.7537 5.5 12.0298L5.5 18.0298C5.5 18.306 5.72386 18.5298 6 18.5298H18C18.2761 18.5298 18.5 18.306 18.5 18.0298V12.0298C18.5 11.7537 18.2761 11.5298 18 11.5298H16.75C16.3358 11.5298 16 11.194 16 10.7798C16 10.3656 16.3358 10.0298 16.75 10.0298H18C19.1046 10.0298 20 10.9253 20 12.0298V18.0298C20 19.1344 19.1046 20.0298 18 20.0298H6C4.89543 20.0298 4 19.1344 4 18.0298V12.0298C4 10.9253 4.89543 10.0298 6 10.0298H7.25Z",fill:"#19191A"}),l.createElement("path",{d:"M14.6506 8.43253L12.7479 6.5298V15.2822C12.7479 15.6965 12.4121 16.0322 11.9979 16.0322C11.5836 16.0322 11.2479 15.6965 11.2479 15.2822V6.53195L9.34728 8.43253C9.05438 8.72542 8.57951 8.72542 8.28662 8.43253C7.99372 8.13963 7.99372 7.66476 8.28662 7.37187L11.4686 4.18988C11.7615 3.89699 12.2364 3.89699 12.5293 4.18988L15.7112 7.37187C16.0041 7.66476 16.0041 8.13963 15.7112 8.43253C15.4183 8.72542 14.9435 8.72542 14.6506 8.43253Z",fill:"#19191A"}))}),ZY=Object.defineProperty,KY=Object.defineProperties,YY=Object.getOwnPropertyDescriptors,h3=Object.getOwnPropertySymbols,cS=Object.prototype.hasOwnProperty,dS=Object.prototype.propertyIsEnumerable,pS=(e,t,n)=>t in e?ZY(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Dy=(e,t)=>{for(var n in t||(t={}))cS.call(t,n)&&pS(e,n,t[n]);if(h3)for(var n of h3(t))dS.call(t,n)&&pS(e,n,t[n]);return e},XY=(e,t)=>KY(e,YY(t)),QY=(e,t)=>{var n={};for(var a in e)cS.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&h3)for(var a of h3(e))t.indexOf(a)<0&&dS.call(e,a)&&(n[a]=e[a]);return n},JY=(0,l.forwardRef)((e,t)=>{var n=e,{size:a,spin:i,style:c}=n,d=QY(n,["size","spin","style"]);const p=Dy(Dy({width:a||"var(--x-icon-size, 1em)",height:a||"var(--x-icon-size, 1em)",animation:i?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),c);return l.createElement("svg",XY(Dy({ref:t,style:p},d),{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),l.createElement("path",{d:"M9.17156 13.7679C8.87867 14.0608 8.87867 14.5356 9.17156 14.8285C9.46445 15.1214 9.93933 15.1214 10.2322 14.8285L10.5858 14.475C10.8787 14.1821 10.8787 13.7072 10.5858 13.4143C10.2929 13.1214 9.81801 13.1214 9.52511 13.4143L9.17156 13.7679Z",fill:"#19191A"}),l.createElement("path",{d:"M11.2929 11.6465C11 11.9394 11 12.4143 11.2929 12.7072C11.5858 13.0001 12.0606 13.0001 12.3535 12.7072L12.7071 12.3537C13 12.0608 13 11.5859 12.7071 11.293C12.4142 11.0001 11.9393 11.0001 11.6464 11.293L11.2929 11.6465Z",fill:"#19191A"}),l.createElement("path",{d:"M13.7678 9.17167C14.0606 8.87878 14.5355 8.87878 14.8284 9.17167C15.1213 9.46457 15.1213 9.93944 14.8284 10.2323L14.4749 10.5859C14.182 10.8788 13.7071 10.8788 13.4142 10.5859C13.1213 10.293 13.1213 9.81812 13.4142 9.52523L13.7678 9.17167Z",fill:"#19191A"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6 4.25L6 6H4.25C3.83579 6 3.5 6.33579 3.5 6.75C3.5 7.16421 3.83579 7.5 4.25 7.5H6V16C6 17.1046 6.89543 18 8 18H16.5V19.75C16.5 20.1642 16.8358 20.5 17.25 20.5C17.6642 20.5 18 20.1642 18 19.75V18H19.75C20.1642 18 20.5 17.6642 20.5 17.25C20.5 16.8358 20.1642 16.5 19.75 16.5H18V8C18 6.89543 17.1046 6 16 6H7.5L7.5 4.25C7.5 3.83579 7.16421 3.5 6.75 3.5C6.33579 3.5 6 3.83579 6 4.25ZM7.5 7.5H16C16.2761 7.5 16.5 7.72386 16.5 8V16.5H8C7.72386 16.5 7.5 16.2761 7.5 16V7.5Z",fill:"#19191A"}))}),uS=s(99917);const qY=()=>{const e=ay("image");return[{component:OY,styleConfig:{className:"draft-image-type-select",title:I18N.TextToolbar.image.typeSelect.title}},{component:Ph,styleConfig:{icon:(0,o.jsx)(O4,{size:24}),title:I18N.TextToolbar.image.imagePortal.title},getMiddleProps:t=>{const{widget:n,dispatch:a}=t;return{onClick:()=>{const{hotAttr:{image:c}}=n;let d=Qc.S.Image;if(c!=null&&c.imageRef){const p=sdkStore.getHotItem(c.imageRef);if(p){const{hotAttr:{extData:h}}=p;h.includes("stickers")&&(d=Qc.S.Sticker)}}a({type:"modal:update:state",payload:{imageModal:{isOpen:!0,source:d}}})}}}},{component:Ph,styleConfig:{icon:(0,o.jsx)(GY,{size:24}),title:I18N.TextToolbar.image.upload.title,isShowUploadFile:!0},getMiddleProps:t=>{const{isExperience:n,isLoggedExperience:a,rootProject:i,currentUser:c,currentOrg:d,dispatch:p}=t;return{onClick:m=>{if(n||a){MB.notice({text:I18N.LibraryContainer.un_save_tips});return}(0,ly.i3)({files:[m],rootProject:i,callback:x=>{p({type:"entry:items:set:asset",payload:{asset:x}}),p({type:"entry:auto:show:hide:item"})},isFilterSvg:!1},c,d)}}}},{type:"VSeparator",component:J0},{component:Ph,styleConfig:{icon:(0,o.jsx)(JY,{size:24}),title:I18N.TextToolbar.image.cut.title},getMiddleProps:t=>{const{dispatch:n}=t;return{onClick:()=>{n({type:"entry:image-view:edit",payload:{operationType:uS.bl.cutting}}),n({type:"entry:image-view:cutting"})}}}},$6(),ey(),D4(),{type:"VSeparator",component:J0},e]},hS=e=>{const t=qY(),{imageRef:n,imageClipType:a}=e,i=a===uS.Mg.circular,c=(n==null?void 0:n.length)>0?i?t.slice(0,5).concat(t.slice(6)):t:t.slice(0,4).concat(t.slice(5));return{getCommonProps:d=>wu(d),controlConfig:c}},$Y=M.Ay.div.withConfig({displayName:"styles__StyledShapeTypeSelectContent",componentId:"sc-1kip40s-0"})(["&.shape-type-select-options.width-240{display:grid;grid-template-columns:repeat(auto-fill,64px);align-items:center;gap:8px 12px;padding:12px;}.type-option{width:64px;height:64px;border-radius:6px;cursor:pointer;display:flex;align-items:center;justify-content:center;overflow:hidden;&:not(.is-active):hover{outline:1.5px solid ",";}&.is-active{outline:1px solid ",";}svg{rect[fill],path[fill]{fill:#fff;}rect[stroke],path[stroke]{stroke:",";}}}"],e=>e.theme.color_bg_select01,e=>e.theme.color_btn_primary_normal,e=>e.theme.color_text_L3),eX=(0,l.memo)(e=>{const{config:t,dropdownPosition:n,widget:a,dispatch:i}=e,{title:c}=t,{hotAttr:d,hotAttr:{type:p}}=a,h=(0,l.useRef)(null),m=(0,l.useMemo)(()=>[{key:$.x.WRect,label:I18N.w.wRect,icon:(0,o.jsx)(V9,{size:64})},{key:$.x.WOval,label:I18N.w.wOval,icon:(0,o.jsx)(eb,{size:64})},{key:$.x.WTriangle,label:I18N.w.triangleb,icon:(0,o.jsx)(hb,{size:64})},{key:$.x.WStar,label:I18N.w.star,icon:(0,o.jsx)(Mb,{size:64})},{key:$.x.WPolygon,label:I18N.w.polygon,icon:(0,o.jsx)(Ob,{size:64})}],[]),x=(0,l.useMemo)(()=>{const R=m.find(F=>F.key===p);return R?R.label:I18N.TextToolbar.none},[p,m]),v=()=>{var R,F;if(p===$.x.WStar)return d==null||(R=d.star)==null?void 0:R.cornerRadius;if(p===$.x.WPolygon)return d==null||(F=d.polygon)==null?void 0:F.cornerRadius;if(d&&"borderRadius"in d)return d.borderRadius},A=()=>{var R,F,Z;return p===$.x.WStar?d==null||(R=d.refVars)==null||(R=R.star)==null?void 0:R.cornerRadius:p===$.x.WPolygon?d==null||(F=d.refVars)==null||(F=F.polygon)==null?void 0:F.cornerRadius:d==null||(Z=d.refVars)==null?void 0:Z.borderRadius},k=async(R,F)=>{var Z,G;if(R.stopPropagation(),F===p)return;const ee=A(),ce=v(),se=typeof ce=="object"?ce.radiusTL:ce;let he=d.refVars,ve;switch(F){case $.x.WRect:{ve={...d,type:F,borderRadius:ce,borderVisibility:{bdrIsVisibleT:!0,bdrIsVisibleL:!0,bdrIsVisibleB:!0,bdrIsVisibleR:!0}},ee&&(he==null||delete he.star,he==null||delete he.polygon,ve={...ve,refVars:{...he,borderRadius:ee}});break}case $.x.WOval:{ve={...d,type:F,borderRadius:ce},ee&&(he==null||delete he.star,he==null||delete he.polygon,ve={...ve,refVars:{...he,borderRadius:ee}});break}case $.x.WTriangle:{ve={...d,type:F,borderRadius:se},ee&&(he==null||delete he.star,he==null||delete he.polygon,ve={...ve,refVars:{...he,borderRadius:ee}});break}case $.x.WStar:{var Te;ve={...d,type:F,star:{sideNum:(d==null||(Te=d.polygon)==null?void 0:Te.sideNum)||6,cornerRadius:se,radius:50}},ee&&(he==null||delete he.borderRadius,he==null||delete he.polygon,ve={...ve,refVars:{...he,star:{...(he==null?void 0:he.star)||{},...(he==null?void 0:he.polygon)||{},cornerRadius:ee}}});break}case $.x.WPolygon:{var xe;ve={...d,type:F,polygon:{sideNum:(d==null||(xe=d.star)==null?void 0:xe.sideNum)||6,cornerRadius:se}},ee&&(he==null||delete he.borderRadius,he==null||delete he.star,ve={...ve,refVars:{...he,polygon:{...(he==null?void 0:he.star)||{},...(he==null?void 0:he.polygon)||{},cornerRadius:ee}}});break}}ve&&(i({type:"entry:widget:change",payload:{flatChgList:[{key:a.key,hotAttr:ve}]}}),i({type:"entry:auto:show:hide:item"}),(Z=h.current)==null||(G=Z.close)==null||G.call(Z))};return(0,o.jsx)(Rl,{ref:h,title:c,top:n==="bottom"?40:-167,left:ENV.IS_MO?-10:-16,trigger:(0,o.jsxs)("div",{className:"trigger-container has-arrow",children:[(0,o.jsx)("span",{className:"title",children:x}),(0,o.jsx)("div",{className:"trigger",children:(0,o.jsx)(j0.A,{className:"arrow",size:14})})]}),children:(0,o.jsx)($Y,{className:"content-container shape-type-select-options width-240",children:m.map(R=>(0,o.jsx)(Ti.A,{className:"floating-tooltip",content:R.label,direction:"down",distance:12,children:(0,o.jsx)("div",{className:C()("type-option",{"is-active":p===R.key}),onClick:F=>k(F,R.key),children:R.icon})},R.key))})})}),mS=()=>{const e=ay();return[{component:eX,styleConfig:{title:I18N.TextToolbar.shape.typeSelect.title}},{component:Xb,styleConfig:{title:I18N.TextToolbar.shape.styleType.title}},{type:"VSeparator",component:J0},{type:p0.Appear,component:_7,styleConfig:{title:I18N.TextToolbar.button.color.title,isShowDefaultColors:!1}},{type:"VSeparator",component:J0},$6(),ey(),D4(),{type:"VSeparator",component:J0},ty(),oy(),{type:"VSeparator",component:J0},e]},m3=e=>{const t=mS(),{textRefStyleKey:n}=e,a=n?t.slice(0,t.length-3).concat([ny()]).concat(t.slice(t.length-3)):t;return{getCommonProps:i=>wu(i),controlConfig:a}},tX=e=>{const t=mS();return{getCommonProps:n=>wu(n),controlConfig:t.slice(0,5).concat(t.slice(6))}};var nX=Object.defineProperty,oX=Object.defineProperties,aX=Object.getOwnPropertyDescriptors,f3=Object.getOwnPropertySymbols,fS=Object.prototype.hasOwnProperty,gS=Object.prototype.propertyIsEnumerable,yS=(e,t,n)=>t in e?nX(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ry=(e,t)=>{for(var n in t||(t={}))fS.call(t,n)&&yS(e,n,t[n]);if(f3)for(var n of f3(t))gS.call(t,n)&&yS(e,n,t[n]);return e},rX=(e,t)=>oX(e,aX(t)),iX=(e,t)=>{var n={};for(var a in e)fS.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&f3)for(var a of f3(e))t.indexOf(a)<0&&gS.call(e,a)&&(n[a]=e[a]);return n},sX=(0,l.forwardRef)((e,t)=>{var n=e,{size:a,spin:i,style:c}=n,d=iX(n,["size","spin","style"]);const p=Ry(Ry({width:a||"var(--x-icon-size, 1em)",height:a||"var(--x-icon-size, 1em)",animation:i?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),c);return l.createElement("svg",rX(Ry({ref:t,style:p},d),{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),l.createElement("path",{d:"M9.99999 6.75C9.99999 7.16421 9.6642 7.5 9.24999 7.5L7.26555 7.5C7.01339 7.5 6.80069 7.68777 6.76941 7.93798L5.76941 15.938C5.73211 16.2364 5.9648 16.5 6.26555 16.5L9.24999 16.5C9.6642 16.5 9.99999 16.8358 9.99999 17.25C9.99999 17.6642 9.6642 18 9.24999 18L6.26555 18C5.06256 18 4.13178 16.9456 4.281 15.7519L5.281 7.75193C5.4061 6.75107 6.25691 6 7.26555 6L9.24999 6C9.6642 6 9.99999 6.33579 9.99999 6.75Z",fill:"#19191A"}),l.createElement("path",{d:"M12.7499 4.5C12.7499 4.08579 12.4141 3.75 11.9999 3.75C11.5856 3.75 11.2499 4.08579 11.2499 4.5L11.2499 19.5C11.2499 19.9142 11.5856 20.25 11.9999 20.25C12.4141 20.25 12.7499 19.9142 12.7499 19.5V4.5Z",fill:"#19191A"}),l.createElement("path",{d:"M18.2306 15.938L17.2306 7.93798C17.1993 7.68777 16.9866 7.5 16.7344 7.5H14.75C14.3358 7.5 14 7.16421 14 6.75C14 6.33579 14.3358 6 14.75 6L16.7344 6C17.7431 6 18.5939 6.75108 18.719 7.75193L19.719 15.7519C19.8682 16.9456 18.9374 18 17.7344 18L14.75 18C14.3358 18 14 17.6642 14 17.25C14 16.8358 14.3358 16.5 14.75 16.5L17.7344 16.5C18.0352 16.5 18.2679 16.2364 18.2306 15.938Z",fill:"#B7B9BD"}))}),lX=Object.defineProperty,cX=Object.defineProperties,dX=Object.getOwnPropertyDescriptors,g3=Object.getOwnPropertySymbols,xS=Object.prototype.hasOwnProperty,vS=Object.prototype.propertyIsEnumerable,bS=(e,t,n)=>t in e?lX(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,By=(e,t)=>{for(var n in t||(t={}))xS.call(t,n)&&bS(e,n,t[n]);if(g3)for(var n of g3(t))vS.call(t,n)&&bS(e,n,t[n]);return e},pX=(e,t)=>cX(e,dX(t)),uX=(e,t)=>{var n={};for(var a in e)xS.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&g3)for(var a of g3(e))t.indexOf(a)<0&&vS.call(e,a)&&(n[a]=e[a]);return n},hX=(0,l.forwardRef)((e,t)=>{var n=e,{size:a,spin:i,style:c}=n,d=uX(n,["size","spin","style"]);const p=By(By({width:a||"var(--x-icon-size, 1em)",height:a||"var(--x-icon-size, 1em)",animation:i?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),c);return l.createElement("svg",pX(By({ref:t,style:p},d),{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.25 14.7495C6.25 14.3353 5.91421 13.9995 5.5 13.9995C5.08579 13.9995 4.75 14.3353 4.75 14.7495V16.2024C4.75 17.2245 5.52065 18.0821 6.53693 18.191L16.5369 19.2624C17.7191 19.3891 18.75 18.4627 18.75 17.2738L18.75 14.7495C18.75 14.3353 18.4142 13.9995 18 13.9995C17.5858 13.9995 17.25 14.3353 17.25 14.7495L17.25 17.2738C17.25 17.571 16.9923 17.8026 16.6967 17.7709L6.69673 16.6995C6.44266 16.6723 6.25 16.4579 6.25 16.2024L6.25 14.7495Z",fill:"#B7B9BD"}),l.createElement("path",{d:"M16.6967 6.22865L6.69673 7.30008C6.44266 7.3273 6.25 7.54171 6.25 7.79723L6.25 9.24957C6.25 9.66379 5.91421 9.99957 5.5 9.99957C5.08579 9.99957 4.75 9.66379 4.75 9.24957V7.79723C4.75 6.77514 5.52065 5.9175 6.53693 5.80862L16.5369 4.73719C17.719 4.61053 18.75 5.53692 18.75 6.72581L18.75 9.24957C18.75 9.66379 18.4142 9.99957 18 9.99957C17.5858 9.99957 17.25 9.66379 17.25 9.24957L17.25 6.72581C17.25 6.42859 16.9923 6.19699 16.6967 6.22865Z",fill:"#19191A"}),l.createElement("path",{d:"M3.75 11.2496C3.33579 11.2496 3 11.5854 3 11.9996C3 12.4138 3.33579 12.7496 3.75 12.7496L20.25 12.7496C20.6642 12.7496 21 12.4138 21 11.9996C21 11.5854 20.6642 11.2496 20.25 11.2496L3.75 11.2496Z",fill:"#19191A"}))});const mX=()=>{const e=jf();return[{component:j9,styleConfig:{left:ENV.IS_MO?-10:-16,title:I18N.TextToolbar.icon.replace.title,source:$C.Z.iconWidgetSettingPanel},getMiddleProps:t=>{const{widget:n,dispatch:a}=t,{hotAttr:{iconData:i}}=n;return{icon:i,onSetCurrentNodeIcon:(d,p)=>{const{iconName:h,iconDisplayName:m}=(0,y5.RU)(d);a({type:"entry:items:set:icon",payload:{icon:d,iconName:h,iconDisplayName:m,isMultiColorIcon:p}}),a({type:"entry:auto:show:hide:item"})}}}},q0,uw(),q0,{...e,styleConfig:{...e.styleConfig,title:I18N.TextToolbar.icon.size.title,suffix:"px",options:[12,14,16,24,32,48,100],top:-219},getMiddleProps:t=>{const{widget:n,dispatch:a}=t,{key:i,hotAttr:{w:c,h:d,isLockAspect:p}}=n;return{onGetRefVar:()=>{const m=(0,_l.xj)([n],"w"),x=(0,_l.xj)([n],"h");return c==d&&(m||x)&&m===x?m:""},onGetCurrentSize:()=>{const m=(0,_l.xj)([n],"w"),x=(0,_l.xj)([n],"h");if(c===d)return m||x?m===x?c:void 0:c},onChangeFontSize:(m,x)=>{if(typeof m!="number")return;const v=m>1?m:1;sdkStore.combineMergeMark("icon-size-changed"),p&&sdkStore.updateHotAttrKV(i,"isLockAspect",!1),a({type:"entry:items:set:width",payload:{width:v,refVar:x}}),a({type:"entry:items:set:height",payload:{height:v,refVar:x}}),a({type:"entry:auto:show:hide:item"}),p&&sdkStore.updateHotAttrKV(i,"isLockAspect",!0),sdkStore.combineMerge("icon-size-changed")}}}},q0,{component:Ph,styleConfig:{icon:(0,o.jsx)(sX,{size:24}),className:"image-mirror-h",title:I18N.SettingPanel.horizontal_flip},getMiddleProps:t=>{const{dispatch:n}=t;return{onClick:()=>{n({type:"entry:image-view:horizontal-flip",payload:{isImage:!1}})}}}},{component:Ph,styleConfig:{icon:(0,o.jsx)(hX,{size:24}),className:"image-mirror-v",title:I18N.SettingPanel.vertical_flip},getMiddleProps:t=>{const{dispatch:n}=t;return{onClick:()=>{n({type:"entry:image-view:vertically-flip",payload:{isImage:!1}})}}}},q0,D4()]},fX=e=>{const t=mX(),{isMultiColorIcon:n}=e,a=n?t.slice(0,2).concat(t.slice(3)):t;return{getCommonProps:i=>wu(i),controlConfig:a}},gX=(0,M.Ay)(Oe.Ay).withConfig({displayName:"styles__StyledCanvasSizeSelectMenu",componentId:"sc-1ieyxre-0"})(["li{list-style:none;}a{color:",";}.MenuItem{&.disabled a{color:rgba(255,255,255,0.22);.shortfont kbd{color:rgba(255,255,255,0.22);}}}ul.SubMenu{min-width:280px;&:lang(en){min-width:280px;}li.MenuItem{a{padding-left:16px;}}}",";"],e=>e.theme.color_text_L1,za.ZJ),yX=(0,M.DU)(["body > div > div.context-menu-mask{width:initial;height:initial;.CanvasSizeSelectMenu .CanvasSizeSelectSubMenu .MenuItem.SelectOption a > span{margin-right:6px;}}"]),xX=e=>{let{position:t,className:n="",device:a,onSelect:i,onClose:c}=e;const d=(0,l.useCallback)(h=>{if(!i)return;const m=h.currentTarget.dataset.type,x=m==="google_nexus"?"Android":m,v=Jc.v2[x];i({width:v==null?void 0:v.width,height:v==null?void 0:v.height,device:x}),c&&c()},[i,c]),p=(0,l.useCallback)(h=>{if(!c)return;const m=h.target.closest(".CanvasSizeSelectMenu"),x=h.target.closest(".CanvasSizeSelectSubMenu");m||x||c()},[c]);return t?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(gX,{className:C()("CanvasSizeSelectMenu",n),position:t,children:Jc.a$.map((h,m)=>{let{device:x,modelList:v}=h;const A=v.length;if(A===0)return null;if(A===1){const k=v[0];return(0,o.jsx)(Oe.Dr,{text:(0,Jc.KB)({device:x}),hotKeyText:k.key!=="customize"?[k.width+" \xD7 "+k.height]:null,dataType:k.key,className:"CanvasSizeSelectMenuItem SelectOption",subMenuClassName:"CanvasSizeSelectSubMenu",onClick:d},x+" -"+(m+1))}return(0,o.jsx)(Oe.Dr,{text:(0,Jc.KB)({device:x}),className:"CanvasSizeSelectMenuItem SelectOption",subMenuClassName:"CanvasSizeSelectSubMenu",isAiry:!0,children:v.map(k=>{let{width:R,height:F,key:Z}=k;const G=Z==="google_nexus"?"Android":(0,Jc.d0)({model:Z,device:x,isPageSize:!0}),ee=Z==="customize"||Z==="none"?null:[R+" \xD7 "+F];return(0,o.jsx)(Oe.Dr,{className:"SelectOption",text:G,hotKeyText:ee,dataType:Z,icon:Z===a?(0,o.jsx)(xt.C,{name:"draft/check",className:"draft-check"}):null,onClick:d},Z+" -"+(m+1))})},x+" -"+(m+1))})}),(0,o.jsx)(yX,{}),(0,o.jsx)(Ls.A,{target:document,onClick:(0,Ls.t)(p,{capture:!0})})]}):null},wS=(0,l.memo)(xX),vX=(0,M.DU)([".quick-canvas-select-menu{ul.CanvasSizeSelectSubMenu.SubMenu{min-width:300px;li.MenuItem a{padding-left:32px;.draft-check{width:16px;height:16px;position:absolute;left:8px;}}}}"]),bX=(0,l.memo)(e=>{const{config:t,dropdownPosition:n,widget:a,dispatch:i}=e,{title:c}=t,{hotAttr:{device:d,orientation:p}}=a,[h,m]=(0,l.useState)(null),x=(0,Jc.d0)({model:d,isPageSize:!0}),v=(0,l.useRef)(null),A=(0,l.useRef)(null),k=(0,l.useCallback)(()=>{const Z=Hg({$ref:A,dropdownPosition:n,contentWidth:200,contentHeight:324,offset:5});m(Z)},[A,n]),R=Z=>{const G=(0,Jc.$n)(Z.key),ee=G?p==="landscape":!1,ce=[a.key].map(se=>{let he={device:Z.key};if(!G&&p==="landscape"&&(he={...he,orientation:"portrait"}),Z.key!=="customize"){const{hotAttr:{x:ve,y:Te,w:xe,h:Fe}}=sdkStore.getHotItem(se),et=ee?Z.height:Z.width,Ke=ee?Z.width:Z.height,Qe={x:ve-xe/2,y:Te-Fe/2};he={...he,x:Qe.x+et/2,y:Qe.y+Ke/2,w:et,h:Ke}}return{key:se,hotAttr:he}});i({type:"entry:widget:change",payload:{flatChgList:ce}})},F=(0,l.useCallback)(Z=>{var G,ee;const{device:ce}=Z,se={...Jc.v2[ce],key:ce};R(se),(G=v.current)==null||(ee=G.close)==null||ee.call(G)},[R,v]);return(0,o.jsx)(Rl,{ref:v,title:c,onShow:k,onClose:()=>m(null),trigger:(0,o.jsxs)("div",{className:"trigger-container max-width-150 has-arrow",ref:A,children:[(0,o.jsx)("span",{className:"title",children:x}),(0,o.jsx)("div",{className:"trigger",children:(0,o.jsx)(j0.A,{className:"arrow",size:14})})]}),children:(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(wS,{className:"quick-canvas-select-menu",device:d,position:h,onSelect:F}),(0,o.jsx)(vX,{})]})})});var wX=s(89886),CX=s(77494);const SX=(0,l.memo)(e=>{const{config:t,dropdownPosition:n,widget:a,layoutInfo:i,onChange:c,dispatch:d}=e,{title:p}=t;return(0,o.jsx)(Rl,{title:p,top:n==="bottom"?40:-152,left:-92,trigger:(0,o.jsxs)("div",{className:"trigger-container has-arrow",children:[(0,o.jsx)("span",{className:"title",children:I18N.SettingPanel.design.layout}),(0,o.jsx)("div",{className:"trigger",children:(0,o.jsx)(j0.A,{className:"arrow",size:14})})]}),children:(0,o.jsx)("div",{className:"content-container",children:(0,o.jsx)(CX.H,{title:I18N.PreferenceBar.layout,children:(0,o.jsx)("section",{type:"screen-body",children:(0,o.jsx)(wX.A,{...i,selections:[a.key],onChange:c,dispatch:d})})})})})});var AX=s(6469);const kX=()=>{const e=uw();return[{component:bX,styleConfig:{title:I18N.TextToolbar.canvas.size.title}},q0,{...e,styleConfig:{...e.styleConfig,pIsSolidColorOnly:!0,title:I18N.TextToolbar.canvas.color.title}},q0,{component:SX,styleConfig:{title:I18N.SettingPanel.design.layout},getMiddleProps:t=>{const{widget:n}=t;return{layoutInfo:(0,AX.V)({selectedItems:[n]}),onChange:Nf}}}]},MX=e=>({controlConfig:kX()}),EX=e=>(0,l.memo)(t=>{const{getCommonProps:n,controlConfig:a}=e,i=n?n(t):{};return(0,o.jsx)(o.Fragment,{children:a.map((c,d)=>{const p=c.getMiddleProps?c.getMiddleProps({...t,...i}):{};return(0,o.jsx)(c.component,{...t,...i,config:c.styleConfig,...p},d)})})}),IX={[$.x.WSwimlane]:sH,[$.x.WMind]:IG,[$.x.WTear]:wC,[$.x.WSticky]:wC,[$.x.WCode]:fY,[$.x.WButton]:wY,[$.x.WRichText]:_Y,[$.x.WImage]:hS,[$.x.WPlaceholder]:hS,[$.x.WRect]:m3,[$.x.WOval]:tX,[$.x.WTriangle]:m3,[$.x.WStar]:m3,[$.x.WPolygon]:m3,[$.x.WIcon]:fX,[$.x.Canvas]:MX},_X=(e,t)=>{const n=IX[e](t);if(!n)return null;const{textRefStyleKey:a,appearRefStyleKey:i}=t,{controlConfig:c}=n,d=WW(c,{isText:!!a,isAppear:!!i});return EX({...n,controlConfig:d})};var Uy=s(11446);const TX=-80,PX=(0,I.Mz)([me.X_,me.ER,me.$S,zn.X.query.getIsShallowEditing,zn.X.query.getIsDeepEditing,zn.X.query.getSelectedCellsInfo,ne.WH,ne.ul,ne.UN,ne.g0,ne.aJ,te.O4,te.Dc,rt.Xf,me.PL,me.HW,me.wA,tt.nE,He.UV,te.uI,ns.y.query.getMissFontHiKeySet,ns.y.query.getCloudFontLocalList,me.lh,me.Mj,n2.wb,n2.Hh,gl.Dw,gl.jj,me.W4,D0.G1],(e,t,n,a,i,c,d,p,h,m,x,v,A,k,R,F,Z,G,ee,ce,se,he,ve,Te,xe,Fe,et,Ke,Qe,nt)=>{var Xe;let{isExperience:lt,isLoggedExperience:Ct}=Qe;const St=G.some(Cn=>se.has(Cn.key)),hn=ve&&ve===((Xe=G[0])==null?void 0:Xe.key);return{scale:e,canvasOffset:t,viewportRect:n,swimlaneIsShallowEditing:a,swimlaneIsDeepEditing:i,selectedCellsInfo:c,editMindKey:d,selectedMindNodeKeys:p,selectedMindNodeFlagIconKey:h,selectedMindNodeImageKey:m,isShallowEditText:x,theme:v,recentlyUsedScreenMetaIcons:A,isLeftShow:k,rootProject:R,currentUser:F,currentOrg:Z,selectedHotItem:G[0],widgetStore:ee,prefernceFlags:ce,isTextEditing:hn,hasMissFontHi:St,richTextEditorState:Te,cloudFontLocalList:he,isAutoFillPanelShow:xe,openFrom:Fe,appearRefStyle:et,textRefStyle:Ke,isExperience:lt,isLoggedExperience:Ct,aiComponentFloatBarOperationMap:nt}}),CS=m7.A.getStore(),LX=e=>(CS.subscribeToItem("selection",e),()=>{CS.unsubscribeFromItem("selection",e)}),NX=()=>m7.s,jX=(0,l.memo)(()=>{var e,t,n;const[a,i]=(0,l.useState)(!1),[c,d]=(0,l.useState)(!1),[p,h]=(0,l.useState)({}),[m,x]=(0,l.useState)("bottom"),{scale:v,canvasOffset:A,viewportRect:k,swimlaneIsShallowEditing:R,swimlaneIsDeepEditing:F,selectedCellsInfo:Z,theme:G,editMindKey:ee,selectedMindNodeKeys:ce,selectedMindNodeFlagIconKey:se,selectedMindNodeImageKey:he,isShallowEditText:ve,recentlyUsedScreenMetaIcons:Te,rootProject:xe,currentUser:Fe,currentOrg:et,selectedHotItem:Ke,widgetStore:Qe,prefernceFlags:nt,isTextEditing:Xe,hasMissFontHi:lt,richTextEditorState:Ct,cloudFontLocalList:St,isAutoFillPanelShow:hn,openFrom:Cn,appearRefStyle:Mt,textRefStyle:Et,isExperience:Co,isLoggedExperience:Pn,isLeftShow:ro,aiComponentFloatBarOperationMap:Io}=(0,r.d4)(PX),mo=(0,r.wA)(),So=(0,l.useRef)(null),{key:ho,hotAttr:No}=Ke,{getMenuStyle:Xo}=AU(),Ta=[Lt.G.QuickMenuText,Lt.G.QuickMenuImage].includes(Cn),Da=(0,Uy.Pq)(nt,Uy.wL);(0,l.useEffect)(()=>(setTimeout(()=>Wa()),window.addEventListener("resize",Wa),()=>{window.removeEventListener("resize",Wa)}),[v,A,ho,Z]),(0,l.useEffect)(()=>{const Ri=Qe.addSdkStoreChangeListener(li=>{let{isRemote:fi,changedKeyList:bi}=li;if(fi&&bi.includes(ho)&&ho&&Qe.isTrashed(ho)){const ls=Qe.getHotItem(ho),Pi=ls==null?void 0:ls.hotAttr.type;Pi===$.x.WMind?mo({type:"mind:exit:edit:state"}):Pi===$.x.WSwimlane?mo({type:"flow:update:clear"}):mo({type:"set:editing:cid",payload:{cid:""}})}});return()=>{Ri()}},[Qe,ho]);const xr=(0,l.useMemo)(()=>{var Ri;const li=((Ri=So.current)==null?void 0:Ri.clientWidth)||400;return Xo(li)},[So,Xo]);(0,uU.useSyncExternalStore)(LX,NX);const Wa=()=>{var Ri,li;if(!Ke||!k)return;let fi="bottom";const bi=((Ri=So.current)==null?void 0:Ri.clientWidth)||400,ls=((li=So.current)==null?void 0:li.clientHeight)||42;let Pi=-100,es=0;const{left:qs,top:Us,width:pc,height:Yl}=k,xs={x:qs,y:Us,w:pc,h:Yl};let wl={x:0,y:0};if(No.type===$.x.WTear){const _a=document.querySelector('.STSticky[data-cid="'+ho+'"] div');if(_a){const hl=_a.getBoundingClientRect();wl={x:hl.left+hl.width/2,y:hl.top}}}else{const{x:_a,y:hl,h:ol}=sdkStore.getHotBound(ho),vs=hl-ol*.5;wl=(0,i7.mY)({x:_a,y:vs})}Pi=wl.x-bi/2,es=wl.y+TX;const nl={x:Pi,y:es,w:bi,h:ls};if(!hU.rw.containsRect(xs,nl))if(nl.w>xs.w||nl.h>xs.h)Pi=0,es=-100;else{const _a=xs.x-nl.x,hl=nl.x+nl.w-(xs.x+xs.w),ol=xs.y-nl.y,vs=nl.y+nl.h-(xs.y+xs.h);_a>0?Pi+=_a+20:hl>0&&(Pi-=hl+20),ol>0?es+=ol+20:vs>0&&(es-=vs+20)}es+ls/2-Us>Yl/2&&(fi="top"),h({left:Math.round(Pi),top:Math.round(es)}),x(fi)},Dr=(0,l.useMemo)(()=>{if(No.type!==$.x.WCode)return"";const Ri=Io[ho]||{},{convertToEditableType:li="idle",type:fi="common"}=Ri;return fi+"-"+li},[Io,ho,No]);(0,l.useEffect)(()=>{Wa()},[Dr]);const Wr=Ri=>{mo({type:"entry:update:preference_flags",payload:{option:Uy.j9.is_fixed_proto_quick_menu,bool:Ri}})},hi=Ri=>{var li;Ri.preventDefault(),Ri.stopPropagation();const{pageX:fi,pageY:bi}=Ri.nativeEvent,ls=So==null||(li=So.current)==null?void 0:li.getBoundingClientRect();if(!ls)return;const Pi=fi-ls.left,es=bi-ls.top;i(!1);let qs=Da,Us=!1,pc=0;const Yl=wl=>{var nl;wl.preventDefault();const _a=j7({left:wl.pageX-Pi,top:wl.pageY-es});if(!_a)return;pc===0&&Wr(!1),pc++,i(!0),Us=!0;const{left:hl,top:ol}=_a;h({left:Math.round(hl),top:Math.round(ol)});const vs=(nl=document.querySelector(".quick-menu-fixed-container"))==null?void 0:nl.getBoundingClientRect();vs&&(qs=wl.pageX>=vs.left&&wl.pageX<=vs.right&&wl.pageY>=vs.top&&wl.pageY<=vs.bottom,d(qs))},xs=wl=>{Us&&Wr(qs),Us=!1,i(!1),document.removeEventListener("mousemove",Yl),document.removeEventListener("mouseup",xs)};document.addEventListener("mousemove",Yl),document.addEventListener("mouseup",xs)},Sr=Ri=>{var li;const{target:fi}=Ri;!hn||!Ta||(li=document.querySelector(".autoFillPanel-element"))!=null&&li.contains(fi)||fi.closest(".ai-auto-fill")||fi.closest(".autoFillPanelSelectScreenMenu")||mo({type:"autoFillPanel:reset:state"})},oi={widget:Ke,dropdownPosition:Da?"bottom":m,selectedCellsInfo:Z,theme:G,editMindKey:ee,selectedMindNodeKeys:ce,isShallowEditText:ve,recentlyUsedScreenMetaIcons:Te,rootProject:xe,currentUser:Fe,currentOrg:et,isTextEditing:Xe,hasMissFontHi:lt,richTextEditorState:Ct,cloudFontLocalList:St,isAutoFillPanelShow:hn,isExperience:Co,isLoggedExperience:Pn,isLeftShow:ro,dispatch:mo},js=(0,l.useMemo)(()=>{var Ri,li,fi;return _X(No.type,{swimlaneIsShallowEditing:R,swimlaneIsDeepEditing:F,selectedMindNodeKeys:ce,selectedMindNodeFlagIconKey:se,selectedMindNodeImageKey:he,textRefStyleKey:Et==null?void 0:Et.key,appearRefStyleKey:Mt==null?void 0:Mt.key,isMultiColorIcon:No==null||(Ri=No.iconData)==null?void 0:Ri.isMultiColorIcon,imageRef:No==null||(li=No.image)==null?void 0:li.imageRef,imageClipType:No==null||(fi=No.image)==null?void 0:fi.imageClipType})},[No.type,R,F,ce,se,he,Et==null?void 0:Et.key,Mt==null?void 0:Mt.key,No==null||(e=No.iconData)==null?void 0:e.isMultiColorIcon,No==null||(t=No.image)==null?void 0:t.imageRef,No==null||(n=No.image)==null?void 0:n.imageClipType]);return Ke?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(tO,{className:C()("draft-inline-toolbar"),style:Da?xr:p,ref:So,children:[(0,o.jsx)("div",{type:"draggable",className:C()("drag-box",{"is-dragging":a}),onMouseDown:hi,children:(0,o.jsx)(vU,{size:14})}),js?(0,o.jsx)(js,{...oi}):null,hn&&Ta&&(0,o.jsx)(Ls.A,{target:document,onMouseDown:(0,Ls.t)(Sr,{capture:!0})})]}),a&&(0,o.jsx)(oO,{className:C()("quick-menu-fixed-container",{"is-active":c}),style:Xo(450),children:(0,o.jsx)("span",{children:I18N.TextToolbar.quickMenu.fixedText})})]}):null}),DX=(0,I.Mz)([me.lh,tt.p$,me.pO,q.$W,ne.ul,Nl.$J,pU.tl,Me.r,me.Jv,D0.i8],(e,t,n,a,i,c,d,p,h,m)=>{let{isEditingBasket:x,isEditingMuban:v}=p;return{editingCid:e,selection:t,isDraggingItem:n,isShowFloatingToolbar:a,selectedMindNodeKeys:i,imageModal:c,editingImageNodes:d,isEditingBasket:x,isEditingMuban:v,isResizingItem:h,isShowAIComponentFloatBar:m}}),RX=[$.x.WSwimlane,$.x.WMind,$.x.WSticky,$.x.WTear,$.x.WCode,$.x.WButton,$.x.WRichText,$.x.WImage,$.x.WPlaceholder,$.x.WRect,$.x.WOval,$.x.WTriangle,$.x.WStar,$.x.WPolygon,$.x.WIcon,$.x.Canvas],BX=()=>{var e,t;const n=(0,r.d4)(DX),{selection:a,isDraggingItem:i,isShowFloatingToolbar:c,editingCid:d,imageModal:p,editingImageNodes:h,isEditingBasket:m,isEditingMuban:x,isResizingItem:v,isShowAIComponentFloatBar:A}=n;if(!c||i||a.length!==1||v)return null;const k=sdkStore.getHotItem(a[0]);if(!k)return null;const R=k.hotAttr.type;return!RX.includes(R)||[$.x.WSticky,$.x.WTear].includes(R)&&!d||[$.x.Canvas].includes(R)&&k!=null&&(e=k.hotAttr)!=null&&e.asOverlay||[$.x.Canvas].includes(R)&&(m||x)||[$.x.WCode].includes(R)&&!A||[$.x.WImage].includes(R)&&(p!=null&&p.isOpen||h!=null&&h.length&&((t=h[0])==null?void 0:t.key)===a[0])?null:(0,o.jsx)(jX,{})},UX=()=>{const e=i=>{let{action:c,linkTitle:d,linkTarget:p,originLinkTarget:h,blockKey:m,start:x,end:v,fromType:A,widget:k}=i;const{_getEditorState:R}=(0,cn.DT)(),F=R==null?void 0:R();if(!p||!F)return;let Z=F,G=(0,vl.Kt)(Z);const ee=F.getSelection();//! curSelection.getHasFocus() || // TODO: 需要吗,为了文本组件暂时先把它弄出去了
if(ee.isCollapsed()){const se=(0,vl.Bm)(F.getCurrentContent(),m,x,v,h,d);if(!se)return;Z=(0,vl.N$)(F,se),G=Z?(0,vl.A_)(Z):void 0}if(c==="unlink"){n(Z,G,A);return}let ce="add";G&&Z.getCurrentContent().getEntity(G).get("type")==="LINK"&&(ce="edit"),t(Z,G,ce,d,p,A)},t=(i,c,d,p,h,m)=>{const{_setEditorState:x}=(0,cn.DT)(),v=(0,vl.FO)({title:p||h,target:h,targetOption:"_blank"}),A=(0,vl.nf)(i,c,d,v);A&&x(A)},n=(i,c,d)=>{const{_setEditorState:p}=(0,cn.DT)();if(c){const h=(0,vl.QF)(i,c);h&&p(h)}},a=i=>{let{action:c,linkTitle:d,linkTarget:p,fromType:h,widget:m}=i;if(c==="unlink"){(0,vl.Nc)({widget:m});return}const x=(0,vl.FO)({title:d,target:p,targetOption:"_blank"});x.target!==""&&(0,vl.eU)({widget:m,currentEntityKey:"",mode:"add",linkified:x})};return(0,l.useEffect)(()=>(Yc.A.on("draft:inline-toolbar:link",e),Yc.A.on("draft:inline-toolbar:link-widget",a),()=>{Yc.A.off("draft:inline-toolbar:link",e),Yc.A.off("draft:inline-toolbar:link-widget",a)}),[]),(0,o.jsx)("div",{style:{visibility:"hidden"}})},OX=M.Ay.header.withConfig({displayName:"styles__StyledVersionViewHeader",componentId:"sc-wr3mke-0"})(["&.version-view-header{position:absolute;left:0;top:0;width:100%;height:48px;background:",";display:flex;justify-content:space-between;align-items:center;z-index:108;box-shadow:0 1px 0 ",";padding:0 16px 0 24px;.toolbar-icon-item{width:38px;}.left-part{display:flex;align-items:center;.project-name{color:",";font-size:14px;font-weight:500;margin-right:10px;}.version-title{color:",";font-size:12px;}}.right-part{display:flex;align-items:center;color:",";.version-control-icon{color:",";margin-right:12px;}}}&.hidden{top:-60px;}"],e=>e.theme.color_bg_white,e=>e.theme.color_bg_border_02,e=>e.theme.color_text_L1,e=>e.theme.color_text_L2,e=>e.theme.color_text_L1,e=>e.theme.color_text_L1),FX=M.Ay.div.withConfig({displayName:"styles__StyledVersionViewModel",componentId:"sc-wr3mke-1"})(["&.version-view-model{position:absolute;width:100%;height:calc(100% - 48px);background:",";top:48px;left:0;z-index:5;.mb-loading{width:80px;height:80px;position:absolute;top:50%;left:50%;z-index:-1;margin-top:-40px;margin-left:-40px;}.version-view-iframe{width:100%;height:100%;border:none;}}&.hidden{display:none;}&.isVersionPaneShow{width:calc(100% - 241px);}"],e=>e.theme.color_bg_canvas);var N1=s(25067),Rf=s(18183);const VX=(0,l.memo)(e=>{let{projectToken:t,projectName:n,currentViewing:a,isVersionManagementPaneShow:i,isReadOnly:c,dispatch:d}=e;if(!a)return null;let p=document.querySelector("#VERSION_VIEW_WINDOW");p||(p=document.createElement("div"),p.id="VERSION_VIEW_WINDOW",document.body.appendChild(p));const h=()=>{d({type:"versions:update",payload:{currentViewing:void 0}})};return(0,Ki.createPortal)((0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(WX,{projectName:n,currentViewing:a,onQuitView:h,isReadOnly:c,isVersionManagementPaneShow:i,dispatch:d}),(0,o.jsx)(HX,{projectToken:t,currentViewing:a,isVersionManagementPaneShow:i})]}),p)}),zX=(0,I.Mz)([gl.cS,me.PL,q.jx,me.z$],(e,t,n,a)=>{const{currentViewing:i,isVersionManagementPaneShow:c}=e,{access_token:d,name:p}=t;return{projectToken:n===Le.qi.OnlyView&&(a==null?void 0:a.access_token)||d,projectName:p,currentViewing:i,isVersionManagementPaneShow:c,isReadOnly:n===Le.qi.OnlyView}}),SS=(0,r.Ng)(e=>zX(e))(VX),WX=(0,l.memo)(e=>{let{projectName:t,currentViewing:n,onQuitView:a,isVersionManagementPaneShow:i,isReadOnly:c,dispatch:d}=e;const p=()=>{d({type:"entry:toolbar:open:versionControl:modal"})};return(0,o.jsxs)(OX,{className:C()("version-view-header",{hidden:!n}),children:[(0,o.jsxs)("div",{className:"left-part",children:[(0,o.jsx)("p",{className:"project-name",children:t}),n&&(0,o.jsx)("p",{className:"version-title",children:"\u9884\u89C8 "+n.title+" \u7248\u672C"})]}),(0,o.jsxs)("div",{className:"right-part",children:[(0,o.jsx)(N1.A,{toolTipName:I18N.ToolBar.versionControl,svgIconName:i?"design/versions/expand/panel":"design/versions/unexpand/panel",onClick:p,size:32,className:"version-control-icon"}),(0,o.jsx)(ll.tA,{className:"quit",onClick:a,children:c?I18N.ToolBar.backToOverview:I18N.ToolBar.backToDesign})]})]})}),HX=(0,l.memo)(e=>{let{projectToken:t,currentViewing:n,isVersionManagementPaneShow:a}=e;const i=(0,l.useRef)(void 0),c=(0,l.useRef)(null),[d,p]=(0,l.useState)(!1),h=x=>{x.data.type==="design:loaded"&&p(!0)};(0,l.useEffect)(()=>(window.addEventListener("message",h),()=>{window.removeEventListener("message",h)}),[]);const m=i.current;return(0,l.useEffect)(()=>{n&&n.cid&&(!m||m.cid!==n.cid)&&(p(!1),c.current.contentWindow.location.replace((0,Rf.Dw)(t+"?version="+n.cid)))},[n,m,t]),(0,l.useEffect)(()=>{i.current=n}),(0,o.jsxs)(FX,{className:C()("version-view-model",{hidden:!n},{isVersionPaneShow:a}),children:[!d&&(0,o.jsx)(E1.T,{className:"mb-loading"}),n&&(0,o.jsx)("iframe",{ref:c,className:"version-view-iframe",src:"/src/pages"})]})});var GX=s(14794),y3=s(46364);const AS=M.Ay.div.withConfig({displayName:"style__StyledAIComponentInputContainer",componentId:"sc-1c4w357-0"})(["position:absolute;z-index:111;"]),kS={[yl.Sx.LIGHT]:"255, 255, 255",[yl.Sx.DARK]:"33, 33, 33"},Oy=M.Ay.div.withConfig({displayName:"style__StyledInputContainer",componentId:"sc-1c4w357-1"})(["background:",";border:1px solid ",";border-radius:12px;width:","px;cursor:default;box-shadow:0 8px 20px 0 rgba(0,0,0,0.10);font-size:12px;line-height:17px;font-weight:400;.head-area{padding:0 14px 0 10px;height:40px;display:flex;align-items:center;position:relative;.left-icon{width:24px;height:24px;}.title{margin-left:4px;font-size:14px;line-height:24px;font-weight:500;flex:1;color:",";}.right-button{font-size:14px;line-height:24px;color:",";&:hover,&:active{color:",";}}}.input-area{position:relative;flex:1;padding:4px 14px;.text-area{width:100%;height:100%;display:block;resize:none;border:none;outline:none;background-color:transparent;color:",";font-size:14px;line-height:20px;&::-webkit-scrollbar-thumb{cursor:pointer;}&::placeholder{color:",";}&:read-only{color:",";cursor:not-allowed;}}.tips-icon{width:16px;height:16px;position:absolute;right:20px;top:4px;&:hover{*{fill-opacity:1;}}}}.bottom-area{display:flex;justify-content:flex-end;align-items:center;padding:0 14px 8px 10px;.svg-icon:not(.loading-icon),.pure-svg-icon:not(.loading-icon){width:28px;height:28px;cursor:pointer;}.generate-handle-area{display:grid;justify-items:center;align-items:center;grid-template-columns:repeat(2,28px);grid-gap:4px;.svg-icon:not(.loading-icon),.pure-svg-icon:not(.loading-icon){color:",";border-radius:4px;&:hover:not(.is-disabled){background-color:",";}&:active:not(.is-disabled){background-color:",";}&.is-disabled{cursor:not-allowed;color:",";}}}.edit-element{display:flex;align-items:center;height:20px;padding:0 4px 0 6px;border-radius:4px;background-color:",";color:",";.clear-selected-icon{width:16px;height:16px;margin-left:4px;cursor:pointer;}}.right-area{flex:1;display:flex;justify-content:flex-end;align-items:center;gap:8px;.send-icon{color:",";&.is-disabled{cursor:not-allowed;color:",";}&:not(.is-disabled):hover{color:","}&:not(.is-disabled):active{color:","}}}}&.generate-mode{display:flex;flex-direction:column;height:","px;}&.thinking-mode{height:","px;display:flex;align-items:center;gap:4px;padding:0 14px 0 10px;font-size:14px;line-height:24px;.loading-icon-area{width:32px;height:32px;display:flex;justify-content:center;align-items:center;}.loading-icon{color:#266FFF;path[fill]{fill:currentColor;}animation:loading 3s linear infinite;@keyframes loading{0%{transform:rotate(0deg);}100%{transform:rotate(360deg);}}}.thinking-text{color:",";position:relative;&::before{content:'';position:absolute;top:0;left:0;width:100%;height:100%;"," background-size:200% 100%;background-position:-100% 0;animation:loadingFont 2s infinite linear;z-index:1;}}@keyframes loadingFont{0%{background-position:100% 0;}100%{background-position:-100% 0;}}.close-button{flex:1;display:flex;justify-content:flex-end;align-items:center;cursor:pointer;svg{color:",";path{fill:currentColor;}}}}&.snapshot-mode{height:","px;display:flex;justify-content:center;align-items:center;padding:0 14px 0 10px;font-size:14px;line-height:24px;.left-icon{width:28px;height:28px;cursor:pointer;color:",";border-radius:4px;&:hover:not(.is-disabled){background-color:",";}&:active:not(.is-disabled){background-color:",";}}.split-line{margin:0 8px;width:1px;height:20px;background-color:",";}.tips{color:",";flex:1;}.quit{cursor:pointer;color:",";&:hover,&:active{color:",";}}}"],e=>e.theme.color_bg_white,e=>e.theme.color_btn_secondary_hover,y3.dx,e=>e.theme.color_text_L1,e=>e.theme.color_text_L2,e=>e.theme.color_text_L1,e=>e.theme.color_text_L1,e=>e.theme.color_text_L3,e=>e.theme.color_text_disabled01,e=>e.theme.color_text_link_normal,e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_btn_secondary_active,e=>e.theme.color_btn_primary_disabled,e=>e.theme.color_bg_card,e=>e.theme.color_text_L2,e=>e.theme.color_btn_primary_normal,e=>e.theme.color_btn_primary_disabled,e=>e.theme.color_btn_primary_hover,e=>e.theme.color_btn_primary_clicked,y3.V5.generate,y3.V5.thinking,e=>e.theme.color_text_L1,e=>{if(e.themeType&&kS[e.themeType]){const t=kS[e.themeType];return console.log("color",t),"background: linear-gradient(\n 90deg,\n transparent,\n rgba("+t+", 0.4) 30%,\n rgba("+t+", 0.8) 50%,\n rgba("+t+", 0.4) 70%,\n transparent\n );"}},e=>e.theme.color_text_L2,y3.V5.snapshot,e=>e.theme.color_text_link_normal,e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_btn_secondary_active,e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_text_L3,e=>e.theme.color_text_L2,e=>e.theme.color_text_L1),ZX=e=>{let{textareaRef:t,inputPlaceholderText:n,userTextContent:a,isInputDisabled:i,handleKeyDown:c,handleCompositionStart:d,handleCompositionEnd:p,handleChange:h}=e;return(0,o.jsx)("textarea",{className:"text-area",ref:t,placeholder:n,value:a,autoFocus:!0,readOnly:i,onCompositionStart:d,onCompositionEnd:p,onMouseDown:m=>{i&&m.preventDefault()},onKeyDown:c,onChange:h})},KX=e=>{let{size:t=22}=e;return(0,o.jsx)(YX,{className:"loading-icon",size:t,name:"chatGPT/tip-loading",isColorPure:!0})},YX=(0,M.Ay)(xt.C).withConfig({displayName:"AIComponentLoadingIcon__StyledSVGIcon",componentId:"sc-voamyl-0"})(["&.loading-icon{animation:loading 3s linear infinite;@keyframes loading{0%{transform:rotate(0deg);}100%{transform:rotate(360deg);}}}"]);var XX=Object.defineProperty,QX=Object.defineProperties,JX=Object.getOwnPropertyDescriptors,x3=Object.getOwnPropertySymbols,MS=Object.prototype.hasOwnProperty,ES=Object.prototype.propertyIsEnumerable,IS=(e,t,n)=>t in e?XX(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Fy=(e,t)=>{for(var n in t||(t={}))MS.call(t,n)&&IS(e,n,t[n]);if(x3)for(var n of x3(t))ES.call(t,n)&&IS(e,n,t[n]);return e},qX=(e,t)=>QX(e,JX(t)),$X=(e,t)=>{var n={};for(var a in e)MS.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&x3)for(var a of x3(e))t.indexOf(a)<0&&ES.call(e,a)&&(n[a]=e[a]);return n},eQ=(0,l.forwardRef)((e,t)=>{var n=e,{size:a,spin:i,style:c}=n,d=$X(n,["size","spin","style"]);const p=Fy(Fy({width:a||"var(--x-icon-size, 1em)",height:a||"var(--x-icon-size, 1em)",animation:i?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),c);return l.createElement("svg",qX(Fy({ref:t,style:p},d),{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),l.createElement("path",{d:"M8.03033 6.96967C7.73744 6.67678 7.26256 6.67678 6.96967 6.96967C6.67678 7.26256 6.67678 7.73744 6.96967 8.03033L10.9393 12L6.96967 15.9697C6.67678 16.2626 6.67678 16.7374 6.96967 17.0303C7.26256 17.3232 7.73744 17.3232 8.03033 17.0303L12 13.0607L15.9697 17.0303C16.2626 17.3232 16.7374 17.3232 17.0303 17.0303C17.3232 16.7374 17.3232 16.2626 17.0303 15.9697L13.0607 12L17.0303 8.03033C17.3232 7.73744 17.3232 7.26256 17.0303 6.96967C16.7374 6.67678 16.2626 6.67678 15.9697 6.96967L12 10.9393L8.03033 6.96967Z",fill:"#19191A"}))});const tQ=()=>{const{inputPlaceholderText:e,textareaRef:t,userTextContent:n,handleChange:a,handleCompositionEnd:i,handleCompositionStart:c,handleKeyDown:d,handleQuit:p,isShowSnapshotSwitch:h,isShowSnapshotModeTips:m,handleSnapshotSwitch:x,isShowExamplePrompts:v,handleExamplePrompts:A,isShowOptimumLoading:k,isShowOptimumPrompts:R,handleOptimumPrompts:F,isSendLoading:Z,isSendIconDisable:G,handleSend:ee,isInputDisabled:ce,creditCount:se,isInsufficientCredit:he,costPerGeneration:ve,openPurchaseModal:Te,isShowThinkingMode:xe,handleCloseThinkingMode:Fe}=(0,Fm.q6)();return xe?(0,o.jsx)(nQ,{handleCloseThinkingMode:Fe}):m?(0,o.jsx)(oQ,{handleSnapshotSwitch:x,handleQuit:p}):(0,o.jsxs)(Oy,{className:"generate-mode",children:[(0,o.jsxs)("div",{className:"head-area",children:[(0,o.jsx)(qC,{}),(0,o.jsx)("span",{className:"title",children:"AI \u751F\u6210\u7EC4\u4EF6"}),(0,o.jsx)("button",{className:"right-button",onClick:p,children:"\u9000\u51FA"})]}),(0,o.jsx)("div",{className:"input-area",children:(0,o.jsx)(ZX,{textareaRef:t,inputPlaceholderText:e,userTextContent:n,isInputDisabled:ce,handleCompositionStart:c,handleCompositionEnd:i,handleKeyDown:d,handleChange:a})}),(0,o.jsxs)("div",{className:"bottom-area",children:[(0,o.jsxs)("div",{className:"generate-handle-area",children:[h&&(0,o.jsx)(gc.A,{content:"\u6846\u9009\u5143\u7D20",direction:"top",children:(0,o.jsx)(xt.C,{name:"chatGPT/ai-component/snapshot-mode",isDisabled:ce,onClick:x})}),v&&(0,o.jsx)(gc.A,{content:"\u968F\u673A\u63D0\u793A\u8BCD",direction:"top",children:(0,o.jsx)(xt.C,{name:"chatGPT/ai-component/case-prompts",isDisabled:ce,onClick:A})}),(0,o.jsx)(aQ,{isDisabled:ce,isShowLoading:k,isShowIcon:R,handleClick:F})]}),(0,o.jsxs)("div",{className:"right-area",children:[(0,o.jsx)(XC,{creditCount:se,isInsufficientCredit:he,costPerGeneration:ve,openPurchaseModal:Te}),(0,o.jsx)(QC,{isSendLoading:Z,isDisabled:G,onClick:ee})]})]})]})},nQ=e=>{let{handleCloseThinkingMode:t}=e;const n=(0,r.d4)(te.O4);return(0,o.jsxs)(Oy,{className:"thinking-mode",themeType:n,children:[(0,o.jsx)("div",{className:"loading-icon-area",children:(0,o.jsx)(DC,{size:24,className:"loading-icon"})}),(0,o.jsx)("div",{className:"thinking-text",children:I18N.ChatGPT.ai_semantic_thinking}),(0,o.jsx)("div",{className:"close-button",onClick:t,children:(0,o.jsx)(eQ,{size:24,className:"close-icon"})})]})},oQ=e=>{let{handleQuit:t,handleSnapshotSwitch:n}=e;return(0,o.jsxs)(Oy,{className:"snapshot-mode",children:[(0,o.jsx)(gc.A,{content:"\u8F93\u5165\u63D0\u793A\u8BCD",direction:"top",children:(0,o.jsx)(xt.C,{className:"left-icon",name:"chatGPT/ai-component/edit-mode",onClick:n})}),(0,o.jsx)("div",{className:"split-line"}),(0,o.jsx)("div",{className:"tips",children:"\u8BF7\u6846\u9009\u753B\u5E03\u4E2D\u7684\u5143\u7D20\u4F5C\u4E3A\u751F\u6210\u793A\u610F\u56FE"}),(0,o.jsx)("div",{className:"quit",onClick:t,children:"\u9000\u51FA"})]})},aQ=e=>{let{isShowLoading:t,isShowIcon:n,handleClick:a,isDisabled:i}=e;return n?t?(0,o.jsx)(KX,{}):(0,o.jsx)(gc.A,{content:"\u4F18\u5316\u63D0\u793A\u8BCD",direction:"top",children:(0,o.jsx)(xt.C,{name:"chatGPT/ai-component/optimum-prompts",onClick:a})}):null},rQ=e=>{let{editComponentKey:t,selectedElementList:n}=e;const a=(0,r.wA)(),i=(0,r.d4)(D0.SH),c=(0,r.d4)(D0.Lu),d=m=>{a({type:"ai-component:update:editInputAreaText",payload:{editInputAreaText:m}})},p=m=>{a({type:"ai-component:update:isShowInputContainer",payload:{isShowInputContainer:!1}}),a({type:"entry:aiComponent:float-bar:chat-ai-send",payload:{userContent:m,editComponentKey:t,type:"edit",selectedElementList:n,onError:()=>{a({type:"ai-component:update:isShowInputContainer",payload:{isShowInputContainer:!0}})}}})},h=()=>{a({type:"ai-component:update:editingAIComponentKey",payload:{editingAIComponentKey:null}}),a({type:"ai-component:clear:editingInfo",payload:{key:t}})};return(0,o.jsx)(JC,{isDisable:c,storedText:i,updateStoredText:d,onSubmit:p,onEscape:h,placeholder:I18N.ChatGPT.aicomponent.edit_selected_element})},iQ=()=>{const e=(0,Fm.qO)(),t=(0,r.d4)(D0.Bq),n=(0,r.d4)(D0.qr)[t]||{},{selectedElementList:a=[]}=n;return t?a.length===0?null:(0,o.jsx)(AS,{id:"ai-component-input-container",style:e,onMouseDown:Fm.dG,children:(0,o.jsx)(rQ,{editComponentKey:t,selectedElementList:a})}):(0,o.jsx)(AS,{id:"ai-component-input-container",style:e,onMouseDown:Fm.dG,children:(0,o.jsx)(tQ,{})})},sQ=()=>{const e=(0,r.d4)(D0.l3),t=(0,r.d4)(D0.iB);return e?(0,o.jsx)(o.Fragment,{children:t&&(0,o.jsx)(iQ,{})}):null};var v3=s(48260);const lQ=M.Ay.div.withConfig({displayName:"style__StyledUploadFontModal",componentId:"sc-bj39ar-0"})(["position:absolute;width:480px;height:418px;gap:20px;opacity:0px;z-index:108;font-size:0.875rem;background-color:",";box-shadow:rgba(0,0,0,0.1) 0px 2px 8px 0px;border-radius:10px;color:",";",";border:1px solid ",";header{border-top-left-radius:8px;border-top-right-radius:8px;border-bottom:1px solid "," !important;}.dark{box-shadow:2px 8px 20px 0px #0000001A;}",";.content-container{margin:20px 0;padding-left:20px;padding-right:4px;height:276px;}.scroll-container{overflow-y:scroll;overflow-x:hidden;}.font-check-container{width:254px;height:32px;display:flex;.Check-label{color:",";font-size:12px;font-weight:500;}.tip-icon{color:",";}}.upload-law-tip{width:350px;left:-173px;top:30px;padding:12px 16px;&::before{left:50%;}p{font-size:12px;color:",";transform:scaleY(-1);a{text-decoration:none;color:#70BCF6;&:hover,&:focus{color:#95D1F8;}}}}"],e=>e.theme.color_bg_white,e=>e.theme.color_text_L1,v3.wy,e=>e.theme.color_bg_border_01,e=>e.theme.color_bg_border_01,v3.C0,e=>e.theme.color_text_L2,e=>e.theme.color_text_L2,e=>e.theme.color_text_btn),cQ=M.Ay.div.withConfig({displayName:"style__StyledFontScrollContainer",componentId:"sc-bj39ar-1"})(["height:","px;overflow-y:scroll;overflow-x:hidden;"],e=>e==null?void 0:e.height),dQ=M.Ay.div.withConfig({displayName:"style__StyledUploadComponent",componentId:"sc-bj39ar-2"})(["cursor:pointer;& > *{pointer-events:none;}.upload-content{width:440px;border-radius:10px;border:1px dashed ",";background:",";cursor:pointer;&.is-active{background:",";border:1px dashed ",";}height:","px;transition:all 0.1s ease-in-out;display:flex;flex-direction:column;align-items:center;.center-div{display:flex;justify-content:center;}.desc1{margin-top:14px}.desc2{margin-top:2px}.title{font-weight:500;color:",";}.margin-header{margin-top:86px;}.sub-title{color:",";}}"],e=>e.theme.color_bg_border_02,e=>e.theme.color_bg_card,e=>e.theme.color_bg_select03,e=>e.theme.color_text_link_normal,e=>e.height,e=>e.theme.color_text_L1,e=>e.theme.color_text_L2),pQ=(0,M.i7)(["0%{transform:rotate(0deg);}100%{transform:rotate(359deg);}"]),Vy=M.Ay.div.withConfig({displayName:"style__StyledFontItem",componentId:"sc-bj39ar-3"})(["border-radius:10px;width:440px;height:60px;border:1px solid ",";display:flex;align-items:center;padding:0 12px;margin-bottom:12px;color:",";font-size:12px;&.upload-component{border:1px dashed ",";background:",";}.p1{display:flex;width:276px;.left{margin-right:14px;}.name{width:230px;font-size:12px;font-weight:500;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;color:",";}.size{color:",";}}.p1-manager{display:flex;width:372px;.left{margin-right:14px;}.middle{align-items:center;display:flex;}.name{width:326px;font-size:12px;font-weight:500;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;color:",";}}.right{display:flex;align-items:center;width:138px;justify-content:flex-end;> *{margin-left:10px;&:first-child{margin-left:0px;}}.error{color:",";}.retry{cursor:pointer;color:",";}.success{color:",";}.uploading{animation:"," 1.5s infinite linear;}.pending-icon{color:",";}}.upload-content{display:flex;align-items:center;cursor:pointer;.name{margin-left:14px;font-weight:500;}}"],e=>e.theme.color_bg_border_01,e=>e.theme.color_text_L1,e=>e.theme.color_bg_border_02,e=>e.theme.color_bg_card,e=>e.theme.color_text_L1,e=>e.theme.color_text_L3,e=>e.theme.color_text_L1,e=>e.theme.color_text_error,e=>e.theme.color_text_link_normal,e=>e.theme.color_success,pQ,e=>e.theme.color_text_L1),uQ=M.Ay.div.withConfig({displayName:"style__StyledEmptyManager",componentId:"sc-bj39ar-4"})(["display:flex;flex-direction:column;align-items:center;height:","px;justify-content:center;img{width:117px;}> *{margin-bottom:20px;}.no{color:",";}"],e=>e.height,e=>e.theme.color_text_L2);var c2=s(47617);const _S=e=>{const[t,n]=(0,l.useState)((e==null?void 0:e.initiralIsDragActive)||!1),a=(0,l.useRef)(null),i=(0,l.useRef)(null),c=()=>{a.current.value=null,a.current.click()},d=m=>{var x;clearTimeout(i.current||void 0),m.preventDefault(),m.stopPropagation(),n(!0),e==null||(x=e.handleDragActiveCallback)==null||x.call(e)},p=m=>{m.preventDefault(),m.stopPropagation(),i.current=setTimeout(()=>{var x;n(!1),e==null||(x=e.handleLeaveCallback)==null||x.call(e,m)},100)};return{isDragActive:t,handleDrop:async m=>{var x;p(m),e==null||(x=e.handleDropCallback)==null||x.call(e,m)},handleDragActive:d,handleDragInactive:p,importInputRef:a,handleInputClick:c}},hQ=()=>{const e=(0,r.d4)(ns.y.query.getUploadInitialFrom),t=(0,r.wA)(),n=async k=>{const R=[...k.dataTransfer.files];!R||R.length<1||(t({type:ns.y.entryKey["font:upload:file:push"],payload:{originalFileList:R,inputType:"drag"}}),ns.y.dispatchState({fontModalState:"upload-uploading"},t))},a=()=>{e==="uploading"&&ns.y.dispatchState({fontModalState:"upload-uploading"},t)},{isDragActive:i,handleDrop:c,handleDragActive:d,handleDragInactive:p,importInputRef:h,handleInputClick:m}=_S({handleDropCallback:n,handleLeaveCallback:a}),x=async k=>{const R=k.currentTarget.files?Array.from(k.currentTarget.files):[];!R||R.length<1||(t({type:ns.y.entryKey["font:upload:file:push"],payload:{originalFileList:R,inputType:"select"}}),ns.y.dispatchState({fontModalState:"upload-uploading"},t))},[v,A]=(0,l.useState)(e==="none"?276:76);return(0,l.useEffect)(()=>(e==="uploading"&&setTimeout(()=>{A(276)},100),()=>{ns.y.dispatchState({uploadInitialFrom:"none"},t)}),[]),(0,o.jsx)("div",{className:"content-container",children:(0,o.jsxs)(dQ,{onDrop:c,onDragOver:d,onDragLeave:p,onClick:m,height:v,children:[(0,o.jsxs)("div",{className:C()("upload-content",{"is-active":i}),children:[(0,o.jsx)("div",{className:"center-div margin-header",children:(0,o.jsx)(xt.C,{size:48,name:"common/font/upload-initial"})}),i?(0,o.jsx)("div",{className:"center-div desc1",children:(0,o.jsx)("p",{className:"title",children:"\u677E\u624B\u5373\u53EF\u6DFB\u52A0\u4E0A\u4F20"})}):(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("div",{className:"center-div desc1",children:(0,o.jsx)("p",{className:"title",children:"\u70B9\u51FB\u6DFB\u52A0\u6216\u62D6\u62FD\u5B57\u4F53\u6587\u4EF6\u5230\u6B64\u5904 \uFF08.ttf/.otf/.ttc/.woff/.woff2\uFF09"})}),(0,o.jsx)("div",{className:"center-div desc2",children:(0,o.jsx)("span",{className:"sub-title",children:"\u8BF7\u786E\u4FDD\u6BCF\u4E2A\u6587\u4EF6\u7684\u5927\u5C0F\u4E0D\u8D85\u8FC7 200 MB"})})]})]}),(0,o.jsx)("input",{hidden:!0,multiple:!0,type:"file",accept:".ttf,.otf,.woff,.woff2,.ttc",ref:h,onChange:x})]})})},mQ=()=>{const e=(0,r.wA)(),{handleDrop:t,handleDragActive:n,handleDragInactive:a,importInputRef:i,handleInputClick:c}=_S({handleDragActiveCallback:()=>{ns.y.dispatchState({fontModalState:"upload-initial",uploadInitialFrom:"uploading"},e)}}),d=async p=>{const h=p.currentTarget.files?Array.from(p.currentTarget.files):[];!h||h.length<1||(e({type:ns.y.entryKey["font:upload:file:push"],payload:{originalFileList:h,inputType:"select"}}),ns.y.dispatchState({fontModalState:"upload-uploading"},e))};return(0,o.jsxs)(Vy,{onDrop:t,onDragOver:n,onDragEnter:n,onDragLeave:a,onClick:c,className:"upload-component",children:[(0,o.jsxs)("div",{className:"upload-content",children:[(0,o.jsx)(xt.C,{size:32,name:"font/upload/tip"}),(0,o.jsx)("p",{className:"name",children:"\u70B9\u51FB\u6DFB\u52A0\u6216\u62D6\u62FD\u5B57\u4F53\u6587\u4EF6\u5230\u6B64\u5904 \uFF08.ttf/.otf/.ttc/.woff/.woff2\uFF09"})]}),(0,o.jsx)("input",{hidden:!0,multiple:!0,type:"file",accept:".ttf,.otf,.woff,.woff2,.ttc",ref:i,onChange:d})]})},fQ=()=>{const e=(0,r.wA)(),t=()=>{},n=()=>{e({type:ns.y.entryKey["font:fontModal:close"]})};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(hQ,{}),(0,o.jsx)(c2.jl,{onConfirm:t,onCancel:n,confirmBtnProps:{onClick:t,children:"\u4E0A\u4F20",disabled:!0},cancelBtnProps:{onClick:n,children:"\u53D6\u6D88",type:"secondary"},footer:!1})]})},gQ=e=>{switch(e.type){case"prepare-upload":return(0,o.jsx)(o.Fragment,{children:e.uploadState!=="uploading"&&(0,o.jsx)(cl.A,{iconBoxSize:32,size:32,name:"common/font/trash",onClick:e.handleDiscard})});case"invalid-format":return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("span",{className:"error",children:"\u683C\u5F0F\u9519\u8BEF"}),e.uploadState!=="uploading"&&(0,o.jsx)(cl.A,{iconBoxSize:32,size:32,name:"common/font/trash",onClick:e.handleDiscard})]});case"over-size":return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("span",{className:"error",children:"\u6587\u4EF6\u8FC7\u5927"}),e.uploadState!=="uploading"&&(0,o.jsx)(cl.A,{iconBoxSize:32,size:32,name:"common/font/trash",onClick:e.handleDiscard})]});case"exist":return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("span",{className:"error",children:"\u5B57\u4F53\u5DF2\u5B58\u5728"}),e.uploadState!=="uploading"&&(0,o.jsx)(cl.A,{iconBoxSize:32,size:32,name:"common/font/trash",onClick:e.handleDiscard})]});case"uploading":return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("span",{className:"normal",children:"\u4E0A\u4F20\u4E2D"}),(0,o.jsx)(xt.C,{isColorPure:!0,size:32,name:"common/font/uploading",className:"uploading"})]});case"pending":return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("span",{className:"normal",children:"\u7B49\u5F85\u4E2D"}),(0,o.jsx)(xt.C,{size:32,name:"common/font/pending",className:"pedning-icon"})]});case"success":return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("span",{className:"success",children:"\u4E0A\u4F20\u6210\u529F"}),(0,o.jsx)(xt.C,{isColorPure:!0,size:32,name:"common/font/success"})]});case"failed-timeout":return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("span",{className:"error",children:"\u4E0A\u4F20\u8D85\u65F6"}),e.uploadState==="done"&&(0,o.jsx)("div",{className:"retry",onClick:e.handleRetry,children:"\u91CD\u8BD5"}),e.uploadState!=="uploading"&&(0,o.jsx)(cl.A,{iconBoxSize:32,size:32,name:"common/font/trash",onClick:e.handleDiscard})]});case"failed-network-error":return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("span",{className:"error",children:"\u7F51\u7EDC\u9519\u8BEF"}),e.uploadState==="done"&&(0,o.jsx)("div",{className:"retry",onClick:e.handleRetry,children:"\u91CD\u8BD5"}),e.uploadState!=="uploading"&&(0,o.jsx)(cl.A,{iconBoxSize:32,size:32,name:"common/font/trash",onClick:e.handleDiscard})]});case"failed-parse":return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("span",{className:"error",children:"\u89E3\u6790\u5931\u8D25"}),e.uploadState!=="uploading"&&(0,o.jsx)(cl.A,{iconBoxSize:32,size:32,name:"common/font/trash",onClick:e.handleDiscard})]})}},yQ=e=>{let{fileKey:t,name:n,size:a,type:i,uploadState:c}=e;const d=(0,r.wA)(),p=()=>{d({type:ns.y.entryKey["font:upload:file:discard"],payload:{fileKey:t}})},h=()=>{d({type:ns.y.entryKey["font:upload:retry"]})},m=(x,v)=>{const A=v;return A.offsetWidth<A.scrollWidth};return(0,o.jsxs)(Vy,{children:[(0,o.jsxs)("div",{className:"p1",children:[(0,o.jsx)(xt.C,{isColorPure:!0,className:"left",size:32,name:"common/font/text"}),(0,o.jsxs)("div",{className:"middle",children:[(0,o.jsx)(gc.A,{content:n,onChangeTooltipsHover:(x,v)=>v==null?void 0:v(),isShowTipsByTarget:m,children:(0,o.jsx)("div",{className:"name",children:n})}),(0,o.jsx)("div",{className:"size",children:a+"MB"})]})]}),(0,o.jsx)("div",{className:"right",children:gQ({type:i,handleDiscard:p,handleRetry:h,uploadState:c})})]})},xQ=e=>{let{fontFamily:t,handleFontDelete:n}=e;return(0,o.jsxs)(Vy,{children:[(0,o.jsxs)("div",{className:"p1-manager",children:[(0,o.jsx)(xt.C,{isColorPure:!0,className:"left",size:32,name:"common/font/text"}),(0,o.jsx)("div",{className:"middle",children:(0,o.jsx)("div",{className:"name",children:t})})]}),(0,o.jsx)("div",{className:"right",children:(0,o.jsx)(cl.A,{iconBoxSize:32,size:32,name:"common/font/trash",onClick:n})})]})};var vQ=s(3877),bQ=s(86992);const gle=(0,M.Ay)(bQ.A).withConfig({displayName:"styles__StyledVideoSubPanel",componentId:"sc-1newfzy-0"})(['&.video-panel-container{header{.customize-title{order:1;}.angle-icon-wrap{order:2;}}}.icon-wrapper{cursor:default;}.colorful-svg{margin-right:8px;width:16px;height:16px;}.colorful-svg path[fill="#1684FC"]{fill:#1684FC;}.colorful-svg path[fill="#FF4A4A"]{fill:#FF4A4A;}.colorful-svg path[fill="#38CEFF"]{fill:#38CEFF;}.colorful-svg path[fill="#0B99FF"]{fill:#0B99FF;}.colorful-svg path[fill="#F5001A"]{fill:#F5001A;}.colorful-svg path[fill="#10ABF2"]{fill:#10ABF2;}.colorful-svg path[fill="#FF8F21"]{fill:#FF8F21;}.colorful-svg path[fill="#7DE621"]{fill:#7DE621;}.colorful-svg path[fill="#1296DB"]{fill:#1296DB;}.colorful-svg path[fill="#fff"]{fill:#fff;}.colorful-svg circle[fill="#1684FC"]{fill:#1684FC;}']),yle=M.Ay.div.withConfig({displayName:"styles__StyledVideoSettings",componentId:"sc-1newfzy-1"})([".video-settings-checkboxes{display:grid;grid-template-columns:123px 90px;padding:0 16px 0px 10px;&:lang(en){grid-template-columns:106px 106px;}label{min-width:100px;height:32px;}}"]),wQ=M.Ay.div.withConfig({displayName:"styles__StyledVideoTipContent",componentId:"sc-1newfzy-2"})(['position:absolute;top:22px;left:-42px;width:240px;background:#454647;color:#fff;flex-direction:column;justify-content:space-around;padding:12px 28px 10px 16px;border-radius:6px;z-index:1;transform:scaleY(-1);&:lang(en){left:-80px;}&::before{content:"";position:absolute;top:100%;left:19%;width:0;height:0;border-left:6px solid transparent;border-right:6px solid transparent;border-top:6px solid #454647;}p{a{text-decoration:underline;color:#80BCFF;&:hover{color:#A6D2FF;}}&:hover{visibility:visible;}font-size:14px;font-weight:400;line-height:20px;}.icon-wrapper{margin-top:11px;}']);var CQ=s(91363),$0=s(99203);const SQ=e=>(0,o.jsxs)("div",{children:[(0,o.jsxs)("p",{className:"ellipsis-content",children:["\u786E\u5B9A\u5220\u9664\u300C",(0,o.jsx)("span",{children:e.label}),"\u300D\u5B57\u4F53\u5417\uFF1F"]}),(0,o.jsx)("p",{children:"\u5220\u9664\u540E\uFF0C\u5DF2\u4F7F\u7528\u8BE5\u5B57\u4F53\u7684\u7EC4\u4EF6\u4F1A\u51FA\u73B0\u5B57\u4F53\u7F3A\u5931"})]}),AQ=()=>{const e=(0,r.wA)(),t=(0,r.d4)(te.O4),n=(0,r.d4)(ns.y.query.getCloudFontLocalList),a=()=>{e({type:ns.y.entryKey["font:manage:to:upload"]}),(0,CQ.rr)({operation_type:"\u4E0A\u4F20\u5B57\u4F53-\u7BA1\u7406\u5B57\u4F53\u9762\u677F"})},i=c=>()=>{MB.global.popupHelper.confirmAsync({title:"\u5220\u9664\u5B57\u4F53",confirmText:I18N.Common.confirm,cancelText:"\u53D6\u6D88",desc:SQ(c),theme:t}).then(d=>{d&&e({type:ns.y.entryKey["font:manage:to:delete"],payload:{ff:c.value}})})};return n.length===0?(0,o.jsx)(TS,{handleUploadFont:a}):(0,o.jsx)(kQ,{handleUploadFont:a,fontList:(0,$0.r)(n),handleFontDelete:i})},kQ=e=>{let{fontList:t,handleUploadFont:n,handleFontDelete:a}=e;const i=(0,r.wA)(),c=()=>{i({type:ns.y.entryKey["font:fontModal:close"]})};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("div",{className:"content-container scroll-container",children:t.map((d,p)=>(0,o.jsx)(xQ,{fontFamily:d.family,handleFontDelete:a(d)},p))}),(0,o.jsx)(c2.jl,{onCancel:n,cancelBtnProps:{onClick:n,children:"\u4E0A\u4F20\u5B57\u4F53",type:"secondary"},onConfirm:c,confirmBtnProps:{onClick:c,children:"\u5B8C\u6210"},footer:!1})]})},TS=e=>{let{handleUploadFont:t,text:n}=e;return(0,o.jsxs)(uQ,{height:t?368:316,children:[(0,o.jsx)("div",{children:(0,o.jsx)("img",{src:"/mb-proto2/images/font/font_empty.png"})}),(0,o.jsx)("div",{children:(0,o.jsx)("span",{className:"no",children:n||"\u6682\u65E0\u4E0A\u4F20\u7684\u4E91\u7AEF\u5B57\u4F53"})}),t&&(0,o.jsx)("div",{children:(0,o.jsx)(ll.jn,{onClick:t,children:"\u4E0A\u4F20\u5B57\u4F53"})})]})},MQ=l.memo(()=>{const[e,t]=(0,l.useState)(!1),n=(0,r.wA)(),a=(0,r.d4)(ns.y.query.getUploadFileList),i=(0,r.d4)(ns.y.query.getUploadState),c=()=>{n({type:ns.y.entryKey["font:upload:file:preapre:go"]})},d=()=>{n({type:ns.y.entryKey["font:fontModal:close2"]})},p=()=>{n({type:ns.y.entryKey["font:fontModal:uplaod:continue"]})},h=()=>i==="prepare"||i==="uploading"?{onClick:d,children:"\u53D6\u6D88",type:"secondary"}:{onClick:p,children:"\u7EE7\u7EED\u4E0A\u4F20",type:"secondary"},m=()=>i==="prepare"||i==="uploading"?{onClick:c,children:"\u4E0A\u4F20"}:{onClick:d,children:"\u5B8C\u6210"},x=!e||i==="uploading",v=i==="prepare"?204:276;return(0,o.jsxs)(o.Fragment,{children:[a.length===0?(0,o.jsx)(TS,{handleUploadFont:void 0,text:"\u6682\u65E0\u4E0A\u4F20\u8BB0\u5F55"}):(0,o.jsxs)("div",{className:"content-container",children:[i==="prepare"&&(0,o.jsx)(mQ,{}),(0,o.jsx)(cQ,{height:v,children:a.map((A,k)=>(0,o.jsx)(yQ,{...A,uploadState:i},k))})]}),(0,o.jsx)(c2.jl,{onConfirm:c,onCancel:d,confirmBtnProps:{...m(),disabled:x},cancelBtnProps:h(),renderFooterSide:()=>i!=="prepare"?null:(0,o.jsxs)("div",{className:"font-check-container",children:[(0,o.jsx)(Sn.A,{attr:"fontUseIsChecked",isChecked:e,label:"\u6211\u62E5\u6709\u4EE5\u4E0A\u5B57\u4F53\u7684\u5546\u7528\u7248\u6743",onChange:()=>{t(!e)}}),i==="prepare"&&(0,o.jsx)(vQ.A,{renderContent:()=>(0,o.jsx)(wQ,{className:"upload-law-tip",children:(0,o.jsxs)("p",{children:["\u60A8\u9700\u8981\u5BF9\u60A8\u5728\u58A8\u5200\u4E2D\u4E0A\u4F20\u6216\u5B58\u50A8\u7684\u6587\u4EF6\u4EE5\u53CA\u8F93\u5165\u7684\u6570\u636E\u7684\u5408\u6CD5\u6027\u8D1F\u8D23\uFF0C\u5E76\u786E\u4FDD\u83B7\u53D6\u8FD9\u4E9B\u6587\u4EF6\u3001\u6570\u636E\u548C\u5185\u5BB9\u7684\u65B9\u5F0F\u7B26\u5408\u6CD5\u5F8B\u8981\u6C42\u3002\u56E0\u8FD9\u4E9B\u6587\u4EF6\u3001\u6570\u636E\u6216\u5185\u5BB9\u5F15\u53D1\u7684\u4EFB\u4F55\u7EA0\u7EB7\uFF0C\u60A8\u5C06\u627F\u62C5\u6240\u6709\u6CD5\u5F8B\u8D23\u4EFB\uFF0C\u58A8\u5200\u5BF9\u6B64\u4E0D\u627F\u62C5\u4EFB\u4F55\u6CD5\u5F8B\u8D23\u4EFB\u3002",(0,o.jsx)("a",{href:"/ad/tos",target:"blank",children:"\u4E86\u89E3\u66F4\u591A"})]})}),customIconName:"common/font/law/tip"})]}),footer:!1})]})}),EQ=()=>{const e=(0,r.wA)(),t=(0,r.d4)(ns.y.query.getUploadFontModalPosition),n=(0,r.d4)(ns.y.query.getFontModalState),a=(0,r.d4)(ns.y.query.getIsShowFontModal),i=(0,r.d4)(te.O4);if(!a)return null;const c=(x,v)=>{e({type:ns.y.entryKey["font:uploadFontModalPosition:update"],payload:{position:{left:x,top:v}}})},d=()=>{e({type:ns.y.entryKey["font:fontModal:close2"]})},p=(t==null?void 0:t.left)||window.innerWidth/2-480/2,h=(t==null?void 0:t.top)||window.innerHeight/2-418/2,m=n.startsWith("upload")?"\u5B57\u4F53\u4E0A\u4F20":"\u7BA1\u7406\u5B57\u4F53";return(0,o.jsx)(Qa.A,{position:{left:p,top:h},onMove:c,children:(0,o.jsxs)(lQ,{id:"upload-font-modal",className:i,children:[(0,o.jsx)(c2.rQ,{title:m,type:"draggable"}),(0,o.jsx)(c2.v,{canClose:!0,onClick:d}),n==="upload-initial"?(0,o.jsx)(fQ,{}):n==="upload-uploading"?(0,o.jsx)(MQ,{}):(0,o.jsx)(AQ,{})]})})};var IQ=s(4239),_Q=s(97267),TQ=Object.defineProperty,PQ=Object.defineProperties,LQ=Object.getOwnPropertyDescriptors,b3=Object.getOwnPropertySymbols,PS=Object.prototype.hasOwnProperty,LS=Object.prototype.propertyIsEnumerable,NS=(e,t,n)=>t in e?TQ(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,zy=(e,t)=>{for(var n in t||(t={}))PS.call(t,n)&&NS(e,n,t[n]);if(b3)for(var n of b3(t))LS.call(t,n)&&NS(e,n,t[n]);return e},NQ=(e,t)=>PQ(e,LQ(t)),jQ=(e,t)=>{var n={};for(var a in e)PS.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&b3)for(var a of b3(e))t.indexOf(a)<0&&LS.call(e,a)&&(n[a]=e[a]);return n},DQ=(0,l.forwardRef)((e,t)=>{var n=e,{size:a,spin:i,style:c}=n,d=jQ(n,["size","spin","style"]);const p=zy(zy({width:a||"var(--x-icon-size, 1em)",height:a||"var(--x-icon-size, 1em)",animation:i?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),c);return l.createElement("svg",NQ(zy({ref:t,style:p},d),{width:"32",height:"33",viewBox:"0 0 32 33",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),l.createElement("path",{d:"M11.5996 1.5H21.793L29.5 9.20703V23.4004C29.5 25.0884 29.4996 26.3245 29.4199 27.2998C29.3407 28.2694 29.1855 28.9376 28.9004 29.4971C28.3731 30.5318 27.5318 31.3731 26.4971 31.9004C25.9376 32.1855 25.2694 32.3407 24.2998 32.4199C23.3245 32.4996 22.0884 32.5 20.4004 32.5H11.5996C9.91155 32.5 8.67551 32.4996 7.7002 32.4199C6.7306 32.3407 6.06243 32.1855 5.50293 31.9004C4.46816 31.3731 3.62689 30.5318 3.09961 29.4971C2.81453 28.9376 2.6593 28.2694 2.58008 27.2998C2.50041 26.3245 2.5 25.0884 2.5 23.4004V10.5996C2.5 8.91156 2.50041 7.67551 2.58008 6.7002C2.6593 5.7306 2.81453 5.06243 3.09961 4.50293C3.62689 3.46816 4.46816 2.62689 5.50293 2.09961C6.06243 1.81453 6.7306 1.6593 7.7002 1.58008C8.67551 1.50041 9.91156 1.5 11.5996 1.5Z",fill:"white",stroke:"#0090F6"}),l.createElement("g",{filter:"url(#filter0_d_879_267)"},l.createElement("path",{d:"M21.8086 1.03807C21.9954 0.960681 22.2105 1.00347 22.3535 1.14647L29.8535 8.64647C29.9965 8.78947 30.0393 9.00455 29.9619 9.19139C29.8845 9.37819 29.7022 9.49999 29.5 9.49999H25C23.1273 9.49999 21.5984 8.02916 21.5049 6.17967L21.5 5.99999V1.49999C21.5 1.29778 21.6218 1.11548 21.8086 1.03807ZM22.5127 6.25585C22.6408 7.51638 23.7057 8.49999 25 8.49999H28.293L22.5 2.70702V5.99999L22.5127 6.25585Z",fill:"#0090F6"})),l.createElement("rect",{x:"6",y:"16",width:"20",height:"1.5",rx:"0.75",fill:"#DFE2EB"}),l.createElement("rect",{x:"6",y:"20.5",width:"20",height:"1.5",rx:"0.75",fill:"#DFE2EB"}),l.createElement("rect",{x:"6",y:"25",width:"20",height:"1.5",rx:"0.75",fill:"#DFE2EB"}),l.createElement("rect",{y:"11.5",width:"22",height:"11",rx:"2",fill:"url(#paint0_linear_879_267)"}),l.createElement("path",{d:"M2.554 16.392H4.864V14.376H5.886V19.5H4.864V17.295H2.554V19.5H1.539V14.376H2.554V16.392ZM6.48373 14.376H10.6137V15.279H9.05973V19.5H8.03773V15.279H6.48373V14.376ZM15.5167 14.376H16.2867V19.5H15.3207V16.196L14.0187 18.135H13.4867L12.1777 16.182V19.5H11.2187V14.376H12.0237L13.7737 17.029L15.5167 14.376ZM17.3642 14.376H18.3792V18.59H20.7102V19.5H17.3642V14.376Z",fill:"white"}),l.createElement("defs",null,l.createElement("filter",{id:"filter0_d_879_267",x:"19",y:"0",width:"12.5",height:"12.5",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},l.createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),l.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),l.createElement("feOffset",{dx:"-0.5",dy:"1"}),l.createElement("feGaussianBlur",{stdDeviation:"1"}),l.createElement("feComposite",{in2:"hardAlpha",operator:"out"}),l.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0"}),l.createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_879_267"}),l.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_879_267",result:"shape"})),l.createElement("linearGradient",{id:"paint0_linear_879_267",x1:"11",y1:"11.5",x2:"11",y2:"22.5",gradientUnits:"userSpaceOnUse"},l.createElement("stop",{stopColor:"#79D4FF"}),l.createElement("stop",{offset:"1",stopColor:"#0090F6"}))))}),RQ=s(40042),BQ=s(63072),UQ=s(87612),OQ=s(15086);function FQ(){const e=(0,r.wA)(),n=(0,l.useRef)(new OQ.M).current,a=(0,l.useSyncExternalStore)(n.subscribe,n.getSnapshot);(0,l.useEffect)(()=>{n.setDispatch(e)},[e]);const i=(0,l.useCallback)(async(m,x)=>n.convert(m,x),[]),c=(0,l.useCallback)(()=>{n.cancel()},[]),d=(0,l.useCallback)(()=>{n.reset()},[]),p=(0,l.useCallback)(()=>n.getPrevHtml(),[]),h=(0,l.useCallback)(()=>n.getIsCanceled(),[]);return{state:a,convert:i,cancel:c,reset:d,getPrevHtml:p,getIsCanceled:h}}const VQ=()=>{const e=(0,l.useRef)(null),[t,n]=(0,l.useState)(0),[a,i]=(0,l.useState)({}),[c,d]=(0,l.useState)(""),p=(0,r.wA)(),[h,m]=(0,l.useState)(""),[x,v]=(0,l.useState)(0),A=(0,l.useRef)(0),[k,R]=(0,l.useState)("\u7F16\u8F91\u533A\u5DE6\u4FA7"),{state:F,convert:Z,cancel:G,reset:ee,getPrevHtml:ce,getIsCanceled:se}=FQ(),he=async hn=>{const Mt=Array.from(hn.target.files)[0],Et=await Mt.text();m(Te.current.value),xe({fileInfo:{fileName:Mt.name.split(".html").join(""),from:"select"},htmlString:Et}),n(Co=>Co+1)},ve=()=>{if(F.type==="success"){var hn;((hn=a.fileInfo)==null?void 0:hn.from)==="input"&&(m(""),d(""))}ee(),i({})},Te=(0,l.useRef)(),xe=async hn=>{let{fileInfo:Cn,htmlString:Mt,isFromRetry:Et}=hn;if(i({fileInfo:Cn,isFromRetry:Et}),Mt===""){await Z({htmlString:"",fileName:Cn.from==="select"?Cn.fileName:void 0},{onError:async()=>{Et&&(await new Promise(Co=>setTimeout(Co,2e3)),se()&&i({}))}});return}await Z({htmlString:Mt,fileName:Cn.from==="select"?Cn.fileName:void 0,autoPaste:!0},{onProgress:Co=>{Co==="toDSLEnd"?nt(90,1):Co==="toModaoEnd"&&nt(95,100)},onError:async()=>{if(Et){const Pn=new Date().getTime()-A.current;await new Promise(ro=>setTimeout(ro,Math.max(2e3-Pn,0)))}}}),A.current=new Date().getTime()},[Fe,et]=(0,l.useState)({left:window.innerWidth/2-320/2,top:window.innerHeight/2-398/2}),Ke=(0,l.useRef)(),Qe=(0,l.useRef)(0);(0,l.useEffect)(()=>(Qe.current=0,F.type==="converting"&&nt(90,10*1e3),()=>{clearInterval(Ke.current)}),[F.type]),(0,l.useEffect)(()=>{const hn=(0,Rm.kI)();return hn&&R(hn),()=>{}},[]),(0,l.useEffect)(()=>{if((F.type==="success"||F.type==="failed")&&a.fileInfo)try{(0,xl.jE)({source:k,type:a.fileInfo.from==="select"?"html\u6587\u4EF6":"html\u4EE3\u7801",status:F.type==="success"?"\u521B\u5EFA\u6210\u529F":"\u521B\u5EFA\u5931\u8D25"})}catch(hn){(0,UQ.p)("[fail-info]-protoHtml2ProtoTrack",hn,{...F,...a})}return()=>{}},[F,a.fileInfo,k]);const nt=(hn,Cn)=>{clearInterval(Ke.current);const Mt=document.getElementById("progress-bar"),Et=2*Math.PI*36;function Co(mo){const So=Et-mo/100*Et;Mt.style.strokeDashoffset=So,v(Math.round(mo))}let Pn=Qe.current;const ro=20,Io=hn/Cn*ro;Ke.current=setInterval(()=>{Pn+=Io,Qe.current=Pn,Pn>=hn?(clearInterval(Ke.current),Co(hn)):Co(Pn)},ro)},Xe=(hn,Cn)=>{et({left:hn,top:Cn})},lt=()=>{const hn=Te.current.value;m(hn),xe({htmlString:hn,fileInfo:{from:"input"}})},Ct=()=>{G(),i({})},St=()=>{switch(F.type){case"idle":return(0,o.jsxs)("div",{className:"wait-content",children:[(0,o.jsxs)("div",{className:"select-file",onClick:()=>e.current.click(),children:[(0,o.jsx)(DQ,{style:{marginBottom:"8px"},size:40}),(0,o.jsx)("p",{children:I18N.htmlimport.wait}),(0,o.jsx)("input",{type:"file",ref:e,accept:".html",onChange:he,style:{display:"none"}},t)]}),(0,o.jsxs)("div",{className:"input-html",children:[(0,o.jsx)("textarea",{defaultValue:h,ref:Te,placeholder:I18N.htmlimport.paste,onChange:hn=>d(hn.target.value)}),(0,o.jsx)(ll.jn,{disabled:c==="",onClick:lt,children:"\u8F6C\u6362"})]})]});case"converting":return(0,o.jsxs)("div",{className:"status-content uploading-content",children:[(0,o.jsxs)("div",{className:"img-text-container",children:[(0,o.jsxs)("div",{className:"progress-container",children:[(0,o.jsxs)("svg",{className:"progress-svg",width:"120",height:"120",viewBox:"0 0 100 100",children:[(0,o.jsx)("circle",{className:"progress-background",cx:"50",cy:"50",r:"36"}),(0,o.jsx)("circle",{id:"progress-bar",className:"progress-bar",cx:"50",cy:"50",r:"36"})]}),(0,o.jsxs)("div",{id:"progress-text",className:"progress-text",children:[x,"%"]})]}),(0,o.jsx)("div",{className:"title-container",children:(0,o.jsx)("div",{className:"title1",children:I18N.htmlimport.uploading})})]}),(0,o.jsx)("div",{className:"btn-container",children:(0,o.jsx)(ll.jn,{onClick:Ct,children:I18N.Common.cancel})})]});case"success":return(0,o.jsxs)("div",{className:"status-content success-content",children:[(0,o.jsxs)("div",{className:"img-text-container",children:[(0,o.jsx)(RQ.A,{className:"svg-img",size:120}),(0,o.jsx)("div",{className:"title-container",children:(0,o.jsx)("div",{className:"title1",children:I18N.htmlimport.success})})]}),(0,o.jsx)("div",{className:"btn-container",children:(0,o.jsx)(ll.jn,{onClick:ve,children:I18N.htmlimport.success_continue})})]});case"failed":return(0,o.jsxs)("div",{className:"status-content failed-content",children:[(0,o.jsxs)("div",{className:"img-text-container",children:[(0,o.jsx)(BQ.A,{className:"svg-img",size:56}),(0,o.jsxs)("div",{className:"title-container",children:[(0,o.jsx)("div",{className:"title1",children:I18N.htmlimport.failed}),(0,o.jsx)("div",{className:"title2",children:F.reason})]})]}),(0,o.jsxs)("div",{className:"btn-container",children:[(0,o.jsx)(ll.tA,{onClick:()=>xe({htmlString:ce(),fileInfo:a.fileInfo,isFromRetry:!0}),children:I18N.htmlimport.retry}),(0,o.jsx)(ll.jn,{onClick:ve,children:I18N.pPreviewToolbar.back})]})]});default:return null}};return(0,o.jsx)(Qa.A,{position:{left:Fe.left,top:Fe.top},onMove:Xe,children:(0,o.jsxs)(WQ,{children:[(0,o.jsxs)("div",{className:"import-header",type:"draggable",children:[(0,o.jsx)(c2.rQ,{title:I18N.htmlimport.desc2}),(0,o.jsx)("div",{className:"header-title2",children:I18N.htmlimport.desc1})]}),(0,o.jsx)(c2.v,{canClose:!0,onClick:()=>{p({type:"htmlImportPanel:set:show",payload:{show:!1}})}}),St()]})})},zQ=()=>(0,r.d4)(_Q.C)?(0,o.jsx)(VQ,{}):null,WQ=M.Ay.div.withConfig({displayName:"ImportPanel__StyledImportModal",componentId:"sc-cxkg59-0"})(["position:absolute;width:320px;opacity:0px;z-index:108;font-size:0.875rem;background-color:",";box-shadow:rgba(0,0,0,0.1) 0px 2px 8px 0px;border-radius:10px;color:",";border:1px solid ",";",";header{border-top-left-radius:8px;border-top-right-radius:8px;border-bottom:none !important;}display:flex;flex-direction:column;.dark{box-shadow:2px 8px 20px 0px #0000001A;}.close-btn{right:16px;}.import-header{padding:16px 20px;display:flex;flex-direction:column;gap:4px;.header{pointer-events:none;height:fit-content;padding:0px;font-size:14px;}.header-title2{pointer-events:none;color:",";font-size:12px;}}.wait-content{display:flex;flex-direction:column;margin-top:8px;padding:0 20px;gap:16px;margin-bottom:20px;.select-file,.input-html{font-size:12px;display:flex;flex-direction:column;align-items:center;justify-content:center;width:280px;cursor:pointer;.button-root{width:100%;}}.select-file{height:120px;border-radius:12px;border:1px dashed ",";&:hover{background:",";}}.input-html{padding:12px;gap:12px;border-radius:12px;background:",";textarea{color:",";width:100%;height:92px;border:none;resize:none;background:transparent;&:focus{outline:none;border:none;}}}}.status-content{display:flex;padding:0 20px 20px 20px;flex-direction:column;justify-content:center;align-items:center;gap:32px;flex:1 0 0;align-self:stretch;flex:1;min-height:324px;.img-text-container{display:flex;flex-direction:column;justify-content:center;align-items:center;.svg-img{margin-bottom:16px;}}.title-container{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:4px;.title1{color:",";font-size:14px;font-weight:500;}.title2{color:",";font-size:12px;}}.btn-container{display:flex;gap:24px;}&.success-content,&.uploading-content{.button-root{width:120px;}}}.uploading-content{.progress-container{width:120px;height:120px;display:flex;justify-content:center;align-items:center;position:relative;}.progress-svg{transform:rotate(-90deg);}.progress-background{fill:none;stroke:",";stroke-width:8;}.progress-bar{fill:none;stroke:",";stroke-width:8;stroke-linecap:round;stroke-dasharray:226;stroke-dashoffset:226;transition:stroke-dashoffset 0.02s ease;}.progress-text{position:absolute;font-size:18px;color:",";text-align:center;font-size:20px;font-weight:500;}}"],e=>e.theme.color_bg_white,e=>e.theme.color_text_L1,e=>e.theme.color_bg_border_01,v3.wy,e=>e.theme.color_text_L2,e=>e.theme.color_btn_primary_normal,e=>e.theme.color_bg_select03,e=>e.theme.color_navigation_hover,e=>e.theme.color_text_L1,e=>e.theme.color_text_L0,e=>e.theme.color_text_L2,e=>e.theme.color_bg_card,e=>e.theme.color_btn_primary_normal,e=>e.theme.color_text_L0),HQ=e=>{var t;let{isDesign:n,onlyView:a,isCommunityPreviewMode:i,isEmbedV2PreviewMode:c,isHTMLZipPreviewMode:d,layout:p,isAutoFillPanelShow:h,isFindReplacePanelShow:m,isShowPreference:x,isExportMenuShow:v,enableShowContextMenu:A}=e;const k=(0,l.useRef)(null),R=a&&!ENV.IS_ON_PREMISES&&!d&&!i&&!c&&!((t=MB)!=null&&(t=t.user)!=null&&t.id),F=(0,l.useContext)($5.G)==="read_only";return(0,o.jsxs)("div",{className:"fixed_area",id:"fixed-area",ref:k,children:[A&&(0,o.jsx)(la,{}),(0,o.jsx)(ze.Ay,{}),(0,o.jsx)(y_,{}),F&&(0,o.jsx)(Q.H,{}),a?(0,o.jsxs)(o.Fragment,{children:[n&&(0,o.jsx)(SS,{}),R&&(0,o.jsx)(GX.v,{})]}):(0,o.jsxs)(o.Fragment,{children:[h&&(0,o.jsx)(BT,{}),m&&(0,o.jsx)(XT,{}),x&&(0,o.jsx)(V_,{}),v&&(0,o.jsx)(JB,{}),p==="old_right"&&(0,o.jsx)(dU,{}),(0,o.jsx)(H_,{}),(0,o.jsx)(JT,{readOnly:!0,id:"clipboard",value:"COPIED__MB__WIDGET"}),ENV.IS_MO&&(0,o.jsx)(QT,{}),(0,o.jsx)(__,{}),(0,o.jsx)(UX,{}),(0,o.jsx)(BX,{}),(0,o.jsx)(oP,{}),(0,o.jsx)($T,{}),(0,o.jsx)(VT,{}),n&&(0,o.jsx)(SS,{}),!n&&(0,o.jsx)(j_,{}),(0,o.jsx)(IQ.ac,{}),(0,o.jsx)(_B,{}),(0,o.jsx)(EQ,{}),(0,o.jsx)(zQ,{})]}),(0,o.jsx)(sQ,{})]})},GQ=(0,I.Mz)([me.W4,q.jx,q.pH,q.rg,q.uu,te.bP,n2.wb,k5.jQ,te.vA,Pf.bc,W],(e,t,n,a,i,c,d,p,h,m,x)=>({isDesign:e.isDesign,onlyView:t===Le.qi.OnlyView,isCommunityPreviewMode:n,isEmbedV2PreviewMode:a,isHTMLZipPreviewMode:i,layout:c,isAutoFillPanelShow:d,isFindReplacePanelShow:p,isShowPreference:h,isExportMenuShow:m,enableShowContextMenu:x})),ZQ=(0,r.Ng)(e=>GQ(e))(HQ);var Ad=s(64580),Bf=s(34860),KQ=s(66247);const YQ=M.Ay.div.withConfig({displayName:"styles__StyledMenu",componentId:"sc-ponrbl-0"})(["padding:4px;color:",";font-size:12px;font-weight:500;"],Ws.q.color_text_L2),vle="\n border-radius: 6px;\n border: 1px solid "+Ws.q.color_split_line+";\n background: "+Ws.q.color_bg_normal+";\n box-shadow: 0px 4px 16px 0px rgba(53, 68, 93, 0.14); \n",ble="\n height: unset;\n padding: 10px 12px;\n border-radius: 6px;\n line-height: 20px;\n font-size: 14px;\n font-weight: 500;\n color: "+Ws.q.color_text_L2+";\n\n &:hover:not(.is-disabled) {\n background: "+Ws.q.color_bg_item_gray+";\n }\n &.is-active {\n color: "+Ws.q.color_text_L1+";\n background: "+Ws.q.color_bg_menu_hover+";\n }\n",XQ=e=>{let{className:t,children:n}=e;return(0,o.jsx)(YQ,{className:t,children:n})},QQ=(0,M.Ay)(Oe.Ay).withConfig({displayName:"styles__StyledMenuContent",componentId:"sc-tp3fgw-0"})([".laptop{width:20px;height:20px;border-radius:2px;}.sketch,.proto{width:20px;height:20px;}.carat{position:absolute;left:12px;top:12px;}.svg-icon:not(.pure-svg-icon) > .laptop{fill:#0072ff;}",";ul{&.SubMenu{border-radius:8px;}}li{list-style:none;}a{color:",";}.MenuItem{a{.shortfont kbd{color:rgba(255,255,255,0.7);}}&.disabled a{color:rgba(255,255,255,0.22);.shortfont kbd{color:rgba(255,255,255,0.22);}}.toolbar-feature-notice{&.versionHistory{left:111px;}&.versionHistoryTop{left:47px;}}}.SubMenu{border-radius:4px;min-width:200px;background:",";color:",";box-shadow:",";border:1px solid ",";&:lang(en){min-width:200px;}.MenuItem{& > a{&:lang(en){padding-left:27px;}}&.hasIcon{> a{&:lang(en){padding-left:10px;}}}&.findReplaceItem.hasIcon,&.pastePropertiesItem.hasIcon{a{&:lang(en){padding-left:27px;}}.MenuItem{a{.shortfont kbd{color:",";}}&.disabled a{color:",";.shortfont kbd{color:",";}}}.SubMenu{border-radius:8px;background:",";color:",";box-shadow:",";border:1px solid ",";}}}}"],za.ZJ,e=>e.theme.color_text_L1,e=>e.theme.color_bg_white,e=>e.theme.color_text_L1,e=>e.theme.menu_content_shadow,e=>e.theme.color_bg_border_01,e=>e.theme.color_text_L2,e=>e.theme.color_text_disabled01,e=>e.theme.color_text_disabled01,e=>e.theme.color_bg_white,e=>e.theme.color_text_L1,e=>e.theme.shadow_m,e=>e.theme.color_bg_border_01),JQ=M.Ay.div.withConfig({displayName:"styles__StyledToolbarLeftMenu",componentId:"sc-tp3fgw-1"})(["display:flex;align-items:center;pointer-events:auto;.toolbar-logo-container{width:48px;height:32px;border-radius:6px;display:flex;align-items:center;justify-content:center;cursor:pointer;.toolbar-icon-item.toolbar-basket-quit{width:32px;height:32px;.svg-icon{width:32px;height:32px;}}.toolbar-logo-icon{width:24px;height:24px;margin:4px;path{fill:",";}}.down-container{width:16px;height:32px;display:flex;align-items:center;justify-content:center;&.active,&:hover{.toolbar-dropDown{margin-top:5px;transition:margin-top ease-in-out 0.2s;}}}.toolbar-dropDown{width:16px;height:16px;margin-top:0;color:",";}&:not(.active):hover{background:",";}&.active{background:",";}}"],e=>e.theme.color_text_L1,e=>e.theme.color_text_L1,e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_btn_secondary_active),jS=(0,M.Ay)(XQ).withConfig({displayName:"styles__StyledPluginMenu",componentId:"sc-tp3fgw-2"})(["&.plugin-download-link-container{display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start;a{padding:8px 12px;border-radius:6px;font-size:12px;line-height:16px;width:100%;display :inline-block;font-weight:400;&:hover{background:",";}&:active{background:",";.text{color:",";}}li{display:flex;flex-direction:row;justify-content:space;align-items:center;.text{margin-left:8px;color:",";white-space:nowrap;}.wrapper{position:relative;.svg-icon.carat{position:absolute;left:70%;top:50%;}}}}a:hover{background:",";}a:active{background:",";.text{color:",";}}}"],Ws.q.color_bg_item_gray,Ws.q.color_bg_menu_hover,Ws.q.color_text_L1,e=>e.theme.color_text_L1,e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_text_L1);var Uf=s(17573);const w3=(e,t)=>{const n=(0,l.useCallback)(c=>(e.subscribe(c),()=>{e.unsubscribe(c)}),[e]),a=(0,l.useCallback)(()=>e[t],[e,t]);return(0,l.useSyncExternalStore)(n,a,a)},Wy=()=>window.MB_DESKTOP_VERSION||window.isElectron||/Electron/i.test(navigator.userAgent),wle=()=>Wy()&&(/MockingBot/i.test(navigator.userAgent)||/MB_DESKTOP/i.test(navigator.userAgent)),DS=()=>{if(!Wy())return!1;const e=/MB_DESKTOP\/([^\s]+)/,t=navigator.userAgent.match(e);if(t&&t.length>0){const n=t[1],[a,i]=n.split(".");if(+a>1||+a==1&&+i>0)return!0}return!1},RS=()=>/(Macintosh)/i.test(navigator.userAgent),BS=()=>/(Windows)/i.test(navigator.userAgent),US=()=>/(win64)/i.test(navigator.userAgent.toLowerCase()),OS=()=>/(win32)/i.test(navigator.userAgent.toLowerCase()),qQ=()=>/(Harmony)/i.test(navigator.userAgent),Cle=()=>qQ()&&Wy(),FS=()=>/(linux)/i.test(navigator.userAgent.toLowerCase())&&/(ubuntu)/i.test(navigator.userAgent.toLowerCase()),Sle=()=>/(Lark)/i.test(navigator.userAgent),Ale=()=>/MicroMessenger/i.test(navigator.userAgent),kle=()=>/Chrome/i.test(navigator.userAgent),Mle=()=>/Firefox/i.test(navigator.userAgent),Ele=()=>/Safari/i.test(navigator.userAgent),Ile=()=>/(iPod|iPhone|iPad|Android|MobileClient)/.test(navigator.userAgent),_le=()=>/Android/i.test(navigator.userAgent),Tle=()=>/(iPad)/.test(navigator.userAgent),$Q=()=>/wxwork/i.test(navigator.userAgent),Ple=()=>/(iPod|iPhone|iPad)/.test(navigator.userAgent),Lle=()=>!!(window.webkit&&window.webkit.messageHandlers),Nle=()=>navigator.standalone,jle=()=>/\/uichina$/.test(location.pathname),Dle=()=>/\/forum$/.test(location.pathname),Rle=()=>/(ABOARD_SKETCH_PLUGIN|MB_SKETCH_PLUGIN)/.test(navigator.userAgent);function eJ(){const e=window.navigator.userAgent;if(e.indexOf("iPad")>-1)return!0;if(e.indexOf("Macintosh")>-1)try{return document.createEvent("TouchEvent"),!0}catch(t){}return!1}const Ble=function(){const e=navigator.userAgent,t=/(?:Windows Phone)/.test(e),n=/(?:SymbianOS)/.test(e)||t,a=/(?:Android)/.test(e),i=/(?:Firefox)/.test(e),c=/(?:Chrome|CriOS)/.test(e),d=/(?:iPad|PlayBook)/.test(e)||a&&!/(?:Mobile)/.test(e)||i&&/(?:Tablet)/.test(e)||eJ(),p=/(?:iPhone)/.test(e)&&!d;return{isTablet:d,isPhone:p,isAndroid:a,isPc:!p&&!a&&!n,isChrome:c}},Ule=()=>/(iPod|iPhone|Android|MicroMessenger)/i.test(navigator.userAgent),Ole=()=>{let e=!1;return $Q()&&/Mobile/i.test(navigator.userAgent)&&(e=!0),e},Fle=()=>{try{return window.self!==window.top}catch(e){return!0}},C3=()=>{const[e,t]=(0,l.useState)(!1),n=(0,l.useRef)(null),a=e&&n.current?(0,Ki.createPortal)((0,o.jsxs)(nJ,{style:{position:"absolute",left:n.current.getBoundingClientRect().right+18,top:n.current.getBoundingClientRect().top},onMouseEnter:()=>t(!0),onMouseLeave:()=>t(!1),children:[(0,o.jsx)("div",{className:"qr-image"}),(0,o.jsx)("span",{children:"\u626B\u7801\u4E0B\u8F7D\u5E94\u7528"})]}),document.body):null;return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(tJ,{ref:n,className:"ios-qr",onMouseEnter:()=>t(!0),onMouseLeave:()=>t(!1),onMouseDown:i=>i.stopPropagation(),onMouseUp:i=>i.stopPropagation(),onClick:i=>i.stopPropagation(),children:(0,o.jsxs)("li",{children:[(0,o.jsx)(xt.C,{name:"toolbar/create/ios",className:"mobile",isColorPure:!0}),(0,o.jsx)("div",{className:"text",children:"iOS App"})]})}),a]})},tJ=M.Ay.div.withConfig({displayName:"IOSMenuItem__IOSItem",componentId:"sc-82ceby-0"})([".mobile{width:20px;height:20px;border-radius:2px;}width:178px;padding:8px 12px;box-sizing:border-box;display:flex;align-items:center;flex-direction:row;cursor:pointer;border-radius:6px;background:",";font-size:12px;line-height:16px;font-weight:400;color:",";&:hover{background:",";}li{display:flex;align-items:center;width:100%;gap:8px;}"],e=>e.theme.primary_gray_01,e=>e.theme.color_text_L1,e=>e.theme.color_btn_secondary_hover),nJ=M.Ay.div.withConfig({displayName:"IOSMenuItem__QRWrapper",componentId:"sc-82ceby-1"})(["background:#fff;border-radius:8px;box-shadow:0 4px 12px rgba(0,0,0,0.15);padding:12px;text-align:center;pointer-events:auto;z-index:9999;.qr-image{width:90px;height:90px;background:url('https://modao.cc/images/workspace/appstore_cn_org.jpg') center / contain no-repeat;}span{display:block;margin-top:6px;font-size:12px;color:#666;}"]),S3=()=>{const[e,t]=(0,l.useState)(!1),n=(0,l.useRef)(null),a=e&&n.current?(0,Ki.createPortal)((0,o.jsxs)(aJ,{style:{position:"absolute",left:n.current.getBoundingClientRect().right+18,top:n.current.getBoundingClientRect().top},onMouseEnter:()=>t(!0),onMouseLeave:()=>t(!1),children:[(0,o.jsx)("div",{className:"qr-image"}),(0,o.jsx)("span",{children:"\u626B\u7801\u4E0B\u8F7D\u5E94\u7528"})]}),document.body):null;return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(oJ,{ref:n,className:"android-qr",onMouseEnter:()=>t(!0),onMouseLeave:()=>t(!1),onMouseDown:i=>i.stopPropagation(),onMouseUp:i=>i.stopPropagation(),onClick:i=>i.stopPropagation(),children:(0,o.jsxs)("li",{children:[(0,o.jsx)(xt.C,{name:"toolbar/create/android",className:"mobile",isColorPure:!0}),(0,o.jsx)("div",{className:"text",children:"Android App"})]})}),a]})},oJ=M.Ay.div.withConfig({displayName:"AndroidMenultem__AndroidItem",componentId:"sc-vys7ci-0"})([".mobile{width:20px;height:20px;border-radius:2px;}width:178px;padding:8px 12px;box-sizing:border-box;display:flex;align-items:center;flex-direction:row;cursor:pointer;border-radius:6px;background:",";font-size:12px;line-height:16px;font-weight:400;color:",";&:hover{background:",";}li{display:flex;align-items:center;width:100%;gap:8px;}"],e=>e.theme.primary_gray_01,e=>e.theme.color_text_L1,e=>e.theme.color_btn_secondary_hover),aJ=M.Ay.div.withConfig({displayName:"AndroidMenultem__QRWrapper",componentId:"sc-vys7ci-1"})(["background:#fff;border-radius:8px;box-shadow:0 4px 12px rgba(0,0,0,0.15);padding:12px;text-align:center;pointer-events:auto;z-index:9999;.qr-image{width:90px;height:90px;background:url('https://cdn-release.modao.cc/android/Android.png') center / contain no-repeat;}span{display:block;margin-top:6px;font-size:12px;color:#666;}"]),Vle={CN:{link_enterprise:"/enterprise",link_supper:"/hc",link_chat_online:"",link_feedback:"https://jinshuju.net/f/JQG5ma",link_guide:"/hc",link_pricing:"/pricing",link_pricing_business:"/pricing",link_guide_enterprise_permissions:"/hc/articles/86",link_logo:"/brand",link_article_business_font_state:"/hc/articles/42",link_account_web_overview:"/me",link_enterprise_permissions:"/hc/articles/86"},US:{link_enterprise:"https://mockitt.com/enterprise.html",link_supper:"http://support.wondershare.com/",link_chat_online:"http://support.wondershare.com/en/1423",link_feedback:"",link_guide:"https://mockitt.com/guide/",link_pricing:"https://mockitt.com/store/individuals.html",link_pricing_business:"https://mockitt.com/store/business.html",link_guide_enterprise_permissions:"https://mockitt.com/guide/enterprise-permissions.html",link_logo:"https://mockitt.com",link_article_business_font_state:"",link_account_web_overview:"https://accounts.wondershare.com/web/overview",link_enterprise_permissions:"https://mockitt.com/guide/enterprise-permissions.html"},JP:{link_enterprise:"https://mockitt.com/enterprise.html",link_supper:"http://support.wondershare.jp/ask-a-question.html",link_chat_online:"",link_feedback:"",link_guide:"https://mockitt.com/guide/",link_pricing:"https://mockitt.com/pricing",link_pricing_business:"https://mockitt.com/pricing",link_guide_enterprise_permissions:"https://mockitt.com/guide/enterprise-permissions.html",link_logo:"https://mockitt.com",link_article_business_font_state:"",link_account_web_overview:"https://accounts.wondershare.jp/web/overview",link_enterprise_permissions:"https://mockitt.com/guide/enterprise-permissions.html"}},zle=e=>LINK[ENV.IS_MO?"US":"CN"][e],VS=()=>ENV.IS_ON_PREMISES?"https://cdn.modao.cc/v7/sketch-110-per.sketchplugin.zip":"https://cdn-release.modao.cc/sketch_aboard/sketch-112.sketchplugin.zip",zS=()=>ENV.IS_ON_PREMISES?"https://cdn.modao.cc/v7/pre-xd-v1.0.3.xdx":"https://cdn-release.modao.cc/sketch_aboard/xd-v1.0.6.xdx?_gl=1*7vur9d*_ga*NjU0MjczNDQuMTY1NjMwODMwMg..*_ga_24WTSJBD5B*MTY1OTA2MzI4MC44OS4xLjE2NTkwNjUzMTIuNjA.",WS=()=>ENV.IS_ON_PREMISES?"https://cdn.modao.cc/v7/md_ps_uxp-v1.0.2.ccx":"https://cdn-release.modao.cc/sketch_aboard/md_ps_uxp-v1.0.5.ccx?_gl=1*7vur9d*_ga*NjU0MjczNDQuMTY1NjMwODMwMg..*_ga_24WTSJBD5B*MTY1OTA2MzI4MC44OS4xLjE2NTkwNjUzMTIuNjA.",HS=()=>ENV.IS_ON_PREMISES?"https://cdn.modao.cc/v7/MockingBot.zh.sketchplugin.zip":"https://cdn-release.modao.cc/sketch/MockingBot.zh.sketchplugin.zip",e1="1.5.3",rJ="https://cdn-release.modao.cc/desktop/prod-"+e1+"/darwin/modao-darwin-x64-zh-"+e1+".dmg",iJ="https://cdn-release.modao.cc/desktop/prod-"+e1+"/darwin/modao-darwin-arm64-zh-"+e1+".dmg",sJ="https://cdn.modao.cc/MockittEnterprise-darwin-x64-zh-1.4.0.dmg",lJ="https://cdn.modao.cc/MockittEnterprise-darwin-arm64-zh-1.4.0.dmg",GS="https://cdn-release.modao.cc/desktop/prod-"+e1+"/win32/modao-win32-x64-zh-"+e1+".exe",ZS="https://cdn-release.modao.cc/desktop/prod-"+e1+"/win32/modao-win32-ia32-zh-"+e1+".exe",KS="https://cdn-release.modao.cc/desktop/prod-"+e1+"/win32/modao-win32-ia32-"+e1+".zip",Wle="https://cdn.modao.cc/MockittEnterprise-win32-x64-zh-1.4.0.exe",Hle="https://cdn.modao.cc/MockittEnterprise-win32-ia32-1.4.0.zip",Gle="https://cdn.modao.cc/MockittEnterprise-win32-ia32-1.4.0.zip",YS="https://cdn-release.modao.cc/desktop/prod-"+e1+"/linux/modao-linux-x64-"+e1+".deb",Zle="https://cdn-release.modao.cc/MockittEnterprise-linux-x64-1.4.0.deb";class cJ extends l.PureComponent{constructor(){var t;super(...arguments),t=this,(0,B.A)(this,"state",{isOpen:!1,position:{left:6,top:46},canPasteProperties:!1}),(0,B.A)(this,"handleToggle",function(n){n===void 0&&(n=void 0);const{isOpen:a}=t.state,i=n===void 0?!a:n;t.setState({isOpen:i}),(0,Oc.kX)({operation_type:Oc.mV.BackDropMenu})}),(0,B.A)(this,"handleExitCombo",()=>{const{dispatch:n}=this.props;n({type:"entry:exit:combo"})})}render(){const{dispatch:t,onlyView:n,theme:a,isShowExitCombo:i}=this.props,{isOpen:c,position:d}=this.state,p=(0,yl.Y8)(a);return(0,o.jsxs)(JQ,{children:[(0,o.jsxs)("div",{className:C()("toolbar-logo-container",{active:c}),children:[i?(0,o.jsx)(N1.A,{className:"toolbar-basket-quit",svgIconName:"art_board/basket/quit",toolTipName:I18N.ToolBar.back_to_edit,toolTipDistance:8,onClick:this.handleExitCombo}):(0,o.jsx)("img",{className:"toolbar-logo-icon",src:p,onClick:()=>this.handleToggle()}),(0,o.jsx)("div",{className:C()("down-container",{active:c}),onClick:()=>this.handleToggle(),children:(0,o.jsx)(xt.C,{className:"toolbar-dropDown",name:"toolbar/triangle-down-16-left"})})]}),c&&(0,o.jsx)(QQ,{position:d,onClose:()=>this.handleToggle(!1),children:(0,o.jsx)(dJ,{onlyView:n,dispatch:t})})]})}}const dJ=(0,l.memo)(e=>{let{dispatch:t,onlyView:n}=e;const[a,i]=(0,l.useState)(!1),[c,d]=(0,l.useState)(!1),[p,h]=(0,l.useState)((0,Pt.Yt)("isShowVersionSignal",(0,Uf.Ds)(),Pt.qW.Boolean)),m=w3(sdkStore,"canUndo")(),x=w3(sdkStore,"canRedo")(),v=(0,r.d4)(uJ);(0,l.useEffect)(()=>{(async()=>{const hl=!!await(0,It.LD)({isShowPrompt:!1}),ol=v.newSelection.map(nc=>sdkStore.getHotItem(nc)),vs=(await(0,It.FR)(ol)).canPaste;i(hl),d(vs)})()},[]);const A=()=>{t({type:"entry:leave:project"})},k=()=>{t({type:"entry:toolbar:open:versionControl:modal"}),p&&((0,Pt.a0)("isShowVersionSignal",!1,Pt.qW.Boolean),h(!1)),(0,Oc.kX)({operation_type:Oc.mV.VersionToDropMenu})},R=()=>{t({type:"modal:update:state",payload:{projectSummaryModal:{isOpen:!0}}}),(0,ed.kH)("file_information",{source:"\u8FD4\u56DE\u4E0B\u62C9\u7BAD\u5934-\u6587\u4EF6\u4FE1\u606F"})},F=_a=>{_a.preventDefault(),t({type:"modal:update:state",payload:{helpCenterModal:{isOpen:!0,productName:"a10_proto_tool_v8"}}})},Z=_a=>{_a.preventDefault(),ENV.IS_MO?(0,rl.JW)("https://mockitt.wondershare.com/whats-new.html","_blank","noreferrer"):(0,rl.JW)("/changelog","_blank","noreferrer"),MB.notice({text:I18N.Common.feature_is_not_available,type:"warning"})},G=_a=>{_a.preventDefault(),t({type:"toggle:showShortCutArtBoard"})},ee=_a=>{_a.preventDefault(),t({type:"newbieVideoPanelState:toggle",payload:{show:!0}}),(0,Oc.kX)({operation_type:Oc.mV.NewbieVideo})},ce=_a=>{_a.preventDefault(),t({type:"preference:open:appearance"}),t({type:ns.y.entryKey["font:fontModal:close"],payload:{closeOther:!0}})},se=_a=>{_a.preventDefault(),(0,rl.JW)("https://www.youtube.com/playlist?list=PLwqdiqSxXvnmIu3Vlis-GKrxVokuci0RK","_blank","noreferrer")},he=()=>{MB.global.experienceLoginModalHelper("isSave")||t({type:"entry:start:saving"})},ve=_a=>{_a.preventDefault(),!MB.global.experienceLoginModalHelper("isSave")&&t({type:"entry:toolbar:open:export_menu"})},Te=_a=>{_a.preventDefault(),m&&t({type:"entry:undo-stack:undo"})},xe=_a=>{_a.preventDefault(),x&&t({type:"entry:undo-stack:redo"})},Fe=_a=>{_a.preventDefault(),t({type:"entry:cut:items"}),(0,yd.H8)()&&(0,It.P8)()},et=_a=>{_a.preventDefault(),t({type:"entry:copy:items",payload:{needPasteProperties:!0}}),(0,yd.H8)()&&(0,It.P8)()},Ke=_a=>{_a.preventDefault(),t({type:"entry:toggle:paste:direct:by:contextmenu"})},Qe=_a=>{_a.preventDefault(),t({type:"entry:select:all"})},nt=_a=>{_a.preventDefault(),t({type:"entry:update:preference",payload:{theme:yl.Sx.LIGHT}}),t({type:"entry:init:ruler:canvas"})},Xe=_a=>{_a.preventDefault(),t({type:"entry:update:preference",payload:{theme:yl.Sx.DARK}}),t({type:"entry:init:ruler:canvas"})},lt=_a=>{const{showRuler:hl}=v;_a.preventDefault(),t({type:"entry:update:preference",payload:{ruler:!hl}})},Ct=_a=>{const{isShowReferLine:hl}=v;_a.preventDefault(),t({type:"entry:update:preference",payload:{show_ruler_line:!hl}})},St=_a=>{const{isShowAlignLine:hl}=v;_a.preventDefault(),t({type:"entry:update:preference",payload:{show_align_line:!hl}})},hn=_a=>{_a.preventDefault(),t({type:"entry:toggle:left-nav-panel"})},Cn=_a=>{_a.preventDefault(),t({type:"entry:toggle:right-panel"})},Mt=_a=>{_a.preventDefault(),t({type:"entry:design:zoom:in"})},Et=_a=>{_a.preventDefault(),t({type:"entry:design:zoom:out"})},Co=_a=>{_a.preventDefault(),t({type:"entry:set:scale",payload:{scale:100}})},Pn=_a=>{_a.preventDefault(),t({type:"entry:zoom:fit:scale:offset"})},ro=_a=>{_a.preventDefault(),t({type:"entry:design:zoom:selection"})},Io=_a=>{_a.preventDefault(),t({type:"entry:isShowSticky:toggle"})},mo=()=>{t({type:"comment:toggle:isShowCommentInCanvas"})},So=_a=>{_a.preventDefault(),t({type:"entry:findReplacePanel:toggle:show"})},ho=()=>{t({type:"entry:update:preference",payload:{isShowMultiCursor:!v.isShowMultiCursor}})},No=_a=>{_a.preventDefault(),t({type:"entry:paste:items:properties"})},Xo=_a=>{_a.preventDefault(),t({type:"modal:update:state",payload:{screenTrashModal:{isOpen:!0,isEditingCombo:Pi,isEditingUserCombo:es}}})},Ta=()=>{switch(!0){case BS():return US()?GS:OS()?ZS:KS;case FS():return YS;default:return null}},Da=()=>{switch(!0){case BS():return US()?GS:OS()?ZS:KS;case FS():return YS;default:return null}},xr=()=>{if(ENV.IS_ON_PREMISES){const _a=Ta();(0,rl.JW)(_a,nl)}else{const _a=ENV.IS_MO?"https://mockitt.com/download.html#":"https://modao.cc/feature/downloads.html",hl=Da();if(!ENV.IS_MO&&hl){(0,rl.JW)(hl,nl);return}(0,rl.JW)(_a)}},Wa=function(_a,hl){return _a===void 0&&(_a=""),hl===void 0&&(hl=!1),(0,o.jsx)(KQ.A,{on:hl,className:C()("toolbar-feature-notice",_a)})},Dr=()=>v.newSelection.length===0,Wr=(0,o.jsx)(xt.C,{name:"toolbar/selected",className:"selected-icon"}),hi=(0,o.jsx)("div",{className:"menu-divider"}),{showRuler:Sr,isShowReferLine:oi,theme:js,isLeftShow:Ri,isShowRightPanel:li,isShowSticky:fi,isShowAlignLine:bi,isShowMultiCursor:ls,isEditingCombo:Pi,isEditingUserCombo:es,isShowExport:qs,isShowCommentInCanvas:Us,currentUser:pc,currentOrg:Yl}=v,xs=js==="dark",wl=Dr(),nl=DS()?"_self":"_blank";return(0,o.jsxs)(l.Fragment,{children:[!n&&(0,o.jsxs)(o.Fragment,{children:[!Pi&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(Oe.Dr,{text:I18N.ToolBar.back_to_dashboard,onClick:A}),(0,o.jsx)(_t.cG,{})]}),(0,o.jsx)(Oe.Dr,{text:I18N.ToolBar.save,hotKeyText:sn.V.save,onClick:he,disabled:!1}),(0,o.jsx)(Oe.Dr,{text:I18N.ToolBar.export2,onClick:ve,disabled:!(qs&&!Pi)}),(0,o.jsxs)(Oe.Dr,{text:I18N.ToolBar.edit,isAiry:!0,children:[(0,o.jsx)(Oe.Dr,{text:I18N.ToolBar.undo,onClick:Te,disabled:!m,hotKeyText:sn.V.undo}),(0,o.jsx)(Oe.Dr,{text:I18N.ToolBar.redo,onClick:xe,disabled:!x,hotKeyText:sn.V.redo}),hi,(0,o.jsx)(Oe.Dr,{text:I18N.ToolBar.cut,onClick:Fe,disabled:wl,hotKeyText:sn.V.cut}),(0,o.jsx)(Oe.Dr,{text:I18N.ToolBar.copy+"/"+I18N.ContextMenu.copy_properties,onClick:et,disabled:wl,hotKeyText:sn.V.copy}),(0,o.jsx)(Oe.Dr,{text:I18N.ToolBar.paste,onClick:Ke,disabled:!a,hotKeyText:sn.V.past}),(0,o.jsx)(Oe.Dr,{text:I18N.ContextMenu.paste_properties,onClick:No,hotKeyText:sn.V.pasteProperties,disabled:!c,className:"pastePropertiesItem"}),hi,(0,o.jsx)(Oe.Dr,{text:I18N.ToolBar.select_all,onClick:Qe,hotKeyText:sn.V.selectAll}),(0,o.jsx)(_t.cG,{}),(0,o.jsx)(Oe.Dr,{text:I18N.ToolBar.find_replace,onClick:So,hotKeyText:sn.V.findReplace,className:"findReplaceItem"}),(0,o.jsx)(_t.cG,{}),(0,o.jsx)(nn.fc,{dispatch:t,from:Lt.G.TopBar,user:pc,org:Yl})]})]}),(0,o.jsxs)(Oe.Dr,{subMenuClassName:"inner-sub",text:I18N.ToolBar.view,isAiry:!0,children:[(0,o.jsxs)(Oe.Dr,{text:I18N.ToolBar.theme,isAiry:!0,children:[(0,o.jsx)(Oe.Dr,{text:I18N.ToolBar.theme_light,onClick:nt,icon:xs?null:Wr}),(0,o.jsx)(Oe.Dr,{text:I18N.ToolBar.theme_dark,onClick:Xe,icon:xs?Wr:null})]}),hi,(0,o.jsx)(Oe.Dr,{text:I18N.ToolBar.scale_length,onClick:lt,icon:Sr?Wr:null}),Sr&&(0,o.jsx)(Oe.Dr,{text:I18N.ToolBar.ref_line,onClick:Ct,icon:oi?Wr:null}),Sr&&(0,o.jsx)(Oe.Dr,{text:I18N.ToolBar.align_line,onClick:St,icon:bi?Wr:null}),(0,o.jsx)(Oe.Dr,{text:I18N.ToolBar.sticky,onClick:Io,icon:fi?Wr:null,hotKeyText:sn.V.sticky}),!Pi&&(0,o.jsx)(Oe.Dr,{text:I18N.ToolBar.comment,onClick:mo,icon:Us?Wr:null}),(0,o.jsx)(Oe.Dr,{text:I18N.ToolBar.multi_user_mouse_pointer,onClick:ho,icon:ls?Wr:null}),(0,o.jsx)(Oe.Dr,{text:I18N.ToolBar.show_left_panel,onClick:hn,icon:Ri?Wr:null,hotKeyText:sn.V.showLeftPanel}),(0,o.jsx)(Oe.Dr,{text:I18N.ToolBar.show_right_panel,onClick:Cn,icon:li?Wr:null,hotKeyText:sn.V.showRightPanel}),(0,o.jsx)(_t.cG,{}),(0,o.jsx)(Oe.Dr,{text:I18N.ToolBar.zoomin,onClick:Mt,hotKeyText:sn.V.zoomIn}),(0,o.jsx)(Oe.Dr,{text:I18N.ToolBar.zoomout,onClick:Et,hotKeyText:sn.V.zoomOut}),(0,o.jsx)(Oe.Dr,{text:I18N.ToolBar.zoom_to_hundred,onClick:Co,hotKeyText:sn.V.zoomToHundred}),(0,o.jsx)(Oe.Dr,{text:I18N.ToolBar.fit_canvas,onClick:Pn,hotKeyText:sn.V.fitCanvas}),(0,o.jsx)(Oe.Dr,{text:I18N.ToolBar.zoom_selection,onClick:ro,hotKeyText:sn.V.zoomSelection})]}),!n&&(0,o.jsx)(Oe.Dr,{text:I18N.ToolBar.favorite_set,onClick:ce}),(0,o.jsx)(_t.cG,{}),!n&&(0,o.jsxs)(o.Fragment,{children:[!Pi&&(0,o.jsx)(Oe.Dr,{text:I18N.ProjectSummaryModal.title,onClick:R}),(0,o.jsx)(Oe.Dr,{className:"version-history",icon:Wa("versionHistory",p),text:I18N.ToolBar.show_version_history,onClick:k}),(0,o.jsx)(Oe.Dr,{text:Pi?I18N.ToolBar.widget_trash_bin:I18N.ToolBar.page_trash_bin,onClick:Xo}),(0,o.jsx)(_t.cG,{})]}),!ENV.IS_ON_PREMISES&&(0,o.jsx)(Oe.Dr,{text:I18N.ToolBar.help,canClick:!0,isAiry:!0,children:!ENV.IS_ON_PREMISES&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(To.kN,{children:(0,o.jsx)(Oe.Dr,{text:I18N.ToolBar.online_customer_service})}),(0,o.jsx)(Oe.Dr,{text:I18N.ToolBar.help_center,onClick:F})]})}),ENV.IS_MO&&(0,o.jsx)(Oe.Dr,{text:I18N.ToolBar.tutorial,onClick:se}),(0,o.jsx)(Oe.Dr,{text:I18N.ToolBar.shortcuts,onClick:G}),!ENV.IS_ON_PREMISES&&(0,o.jsx)(Oe.Dr,{text:I18N.ToolBar.newbie_video,onClick:ee}),!ENV.IS_ON_PREMISES&&(0,o.jsx)(Oe.Dr,{text:I18N.ToolBar.feature_update,onClick:Z,disabled:!1,canClick:!0}),(0,o.jsx)(Oe.Dr,{text:"\u4E0B\u8F7D\u5BA2\u6237\u7AEF",canClick:!0,isAiry:!0,children:ENV.IS_ON_PREMISES&&!DS()?(0,o.jsx)(jS,{className:"plugin-download-link-container",children:ENV.IS_MO&&RS()?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("a",{href:VS(),target:nl,onMouseDown:_a=>_a.stopPropagation(),onMouseUp:_a=>_a.stopPropagation(),children:(0,o.jsxs)("li",{children:[(0,o.jsxs)("div",{className:"wrapper",children:[(0,o.jsx)(xt.C,{name:"toolbar/create/aboard",className:"sketch",isColorPure:!0}),(0,o.jsx)(xt.C,{name:"toolbar/create/sketch",className:"carat",isColorPure:!0})]}),(0,o.jsx)("div",{className:"text",children:"\u534F\u4F5CSketch\u63D2\u4EF6"})]})}),(0,o.jsx)("a",{href:HS(),target:nl,onMouseDown:_a=>_a.stopPropagation(),onMouseUp:_a=>_a.stopPropagation(),children:(0,o.jsxs)("li",{children:[(0,o.jsxs)("div",{className:"wrapper",children:[(0,o.jsx)(xt.C,{name:"toolbar/create/prototype",className:"proto",isColorPure:!0}),(0,o.jsx)(xt.C,{name:"toolbar/create/sketch",className:"carat",isColorPure:!0})]}),(0,o.jsx)("div",{className:"text",children:"\u539F\u578BSketch\u63D2\u4EF6"})]})}),(0,o.jsx)("a",{href:zS(),target:nl,onMouseDown:_a=>_a.stopPropagation(),onMouseUp:_a=>_a.stopPropagation(),children:(0,o.jsxs)("li",{children:[(0,o.jsx)("div",{className:"wrapper",children:(0,o.jsx)(xt.C,{name:"toolbar/create/adobexd",className:"sketch",isColorPure:!0})}),(0,o.jsx)("div",{className:"text",children:"Adobe XD\u63D2\u4EF6"})]})}),(0,o.jsx)("a",{href:""+WS(),target:nl,onMouseDown:_a=>_a.stopPropagation(),onMouseUp:_a=>_a.stopPropagation(),children:(0,o.jsxs)("li",{children:[(0,o.jsx)("div",{className:"wrapper",children:(0,o.jsx)(xt.C,{name:"toolbar/create/photoshop",className:"sketch",isColorPure:!0})}),(0,o.jsx)("div",{className:"text",children:"Adobe PS\u63D2\u4EF6"})]})}),(0,o.jsx)("a",{href:sJ,target:nl,onMouseDown:_a=>_a.stopPropagation(),onMouseUp:_a=>_a.stopPropagation(),children:(0,o.jsxs)("li",{children:[(0,o.jsx)(xt.C,{name:"toolbar/create/pc",className:"laptop",isColorPure:!0}),(0,o.jsx)("div",{className:"text",children:"\u684C\u9762\u7AEFIntel\u82AF\u7247"})]})}),(0,o.jsx)("a",{href:lJ,target:nl,onMouseDown:_a=>_a.stopPropagation(),onMouseUp:_a=>_a.stopPropagation(),children:(0,o.jsxs)("li",{children:[(0,o.jsx)(xt.C,{name:"toolbar/create/pc",className:"laptop",isColorPure:!0}),(0,o.jsx)("div",{className:"text",children:"\u684C\u9762\u7AEFApple\u82AF\u7247"})]})}),(0,o.jsx)(C3,{}),(0,o.jsx)(S3,{})]}):(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("a",{href:VS(),target:nl,onMouseDown:_a=>_a.stopPropagation(),onMouseUp:_a=>_a.stopPropagation(),children:(0,o.jsxs)("li",{children:[(0,o.jsxs)("div",{className:"wrapper",children:[(0,o.jsx)(xt.C,{name:"toolbar/create/aboard",className:"sketch",isColorPure:!0}),(0,o.jsx)(xt.C,{name:"toolbar/create/sketch",className:"carat",isColorPure:!0})]}),(0,o.jsx)("div",{className:"text",children:"\u534F\u4F5CSketch\u63D2\u4EF6"})]})}),(0,o.jsx)("a",{href:HS(),onMouseDown:_a=>_a.stopPropagation(),onMouseUp:_a=>_a.stopPropagation(),children:(0,o.jsxs)("li",{children:[(0,o.jsxs)("div",{className:"wrapper",children:[(0,o.jsx)(xt.C,{name:"toolbar/create/prototype",className:"proto",isColorPure:!0}),(0,o.jsx)(xt.C,{name:"toolbar/create/sketch",className:"carat",isColorPure:!0})]}),(0,o.jsx)("div",{className:"text",children:"\u539F\u578BSketch\u63D2\u4EF6"})]})}),(0,o.jsx)("a",{href:zS(),target:nl,onMouseDown:_a=>_a.stopPropagation(),onMouseUp:_a=>_a.stopPropagation(),children:(0,o.jsxs)("li",{children:[(0,o.jsx)("div",{className:"wrapper",children:(0,o.jsx)(xt.C,{name:"toolbar/create/adobexd",className:"sketch",isColorPure:!0})}),(0,o.jsx)("div",{className:"text",children:"Adobe XD\u63D2\u4EF6"})]})}),(0,o.jsx)("a",{href:WS(),target:nl,onMouseDown:_a=>_a.stopPropagation(),onMouseUp:_a=>_a.stopPropagation(),children:(0,o.jsxs)("li",{children:[(0,o.jsx)("div",{className:"wrapper",children:(0,o.jsx)(xt.C,{name:"toolbar/create/photoshop",className:"sketch",isColorPure:!0})}),(0,o.jsx)("div",{className:"text",children:"Adobe PS\u63D2\u4EF6"})]})}),(0,o.jsx)("a",{onClick:xr,onMouseDown:_a=>_a.stopPropagation(),onMouseUp:_a=>_a.stopPropagation(),children:(0,o.jsxs)("li",{children:[(0,o.jsx)(xt.C,{name:"toolbar/create/pc",className:"laptop",isColorPure:!0}),(0,o.jsx)("div",{className:"text",children:"Windows\u684C\u9762\u7AEF"})]})}),(0,o.jsx)(C3,{}),(0,o.jsx)(S3,{})]})}):(0,o.jsx)(jS,{className:"plugin-download-link-container",children:!ENV.IS_MO&&RS()?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("a",{href:rJ,target:nl,onMouseDown:_a=>_a.stopPropagation(),onMouseUp:_a=>_a.stopPropagation(),children:(0,o.jsxs)("li",{children:[(0,o.jsx)(xt.C,{name:"toolbar/create/pc",className:"laptop",isColorPure:!0}),(0,o.jsx)("div",{className:"text",children:"\u684C\u9762\u7AEFIntel\u82AF\u7247"})]})}),(0,o.jsx)("a",{href:iJ,target:nl,onMouseDown:_a=>_a.stopPropagation(),onMouseUp:_a=>_a.stopPropagation(),children:(0,o.jsxs)("li",{children:[(0,o.jsx)(xt.C,{name:"toolbar/create/pc",className:"laptop",isColorPure:!0}),(0,o.jsx)("div",{className:"text",children:"\u684C\u9762\u7AEFApple\u82AF\u7247"})]})}),(0,o.jsx)(C3,{}),(0,o.jsx)(S3,{})]}):(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("a",{onClick:xr,onMouseDown:_a=>_a.stopPropagation(),onMouseUp:_a=>_a.stopPropagation(),children:(0,o.jsxs)("li",{children:[(0,o.jsx)(xt.C,{name:"toolbar/create/pc",className:"laptop",isColorPure:!0}),(0,o.jsx)("div",{className:"text",children:"Windows\u684C\u9762\u7AEF"})]})}),(0,o.jsx)(C3,{}),(0,o.jsx)(S3,{})]})})})]})}),pJ=(0,I.Mz)([q.jx,te.O4],(e,t)=>({onlyView:e===Le.qi.OnlyView,theme:t})),uJ=(0,I.Mz)([te.qT,te.O4,rt.Xf,te.gf,gl.UI,T.$7,te.Nn,te.lU,Me.r,N.EH,me.HW,me.wA,tt.p$],(e,t,n,a,i,c,d,p,h,m,x,v,A)=>{let{isEditingCombo:k,isEditingProjectMain:R,isEditingUserCombo:F}=h;return{showRuler:e,theme:t,isLeftShow:n,isShowReferLine:a,isShowRightPanel:i,isShowSticky:c,isShowAlignLine:d,isShowMultiCursor:p,isEditingCombo:k,isEditingUserCombo:F,isShowExport:R,isShowCommentInCanvas:m,currentUser:x,currentOrg:v,newSelection:A}}),hJ=(0,r.Ng)(e=>pJ(e))(cJ);var j1=s(81122),mJ=s(9248);const Hy=e=>{const{value:t,className:n,isEditing:a,onConfirm:i,onChange:c,isShowToolTips:d=!1}=e,[p,h]=(0,l.useState)(t),m=v=>{h(v),c&&c(t)},x=()=>{i&&i(p,p!==t)};return(0,l.useEffect)(()=>{h(t)},[t,a]),(0,o.jsx)(mJ.A,{value:p,className:n,editing:a,onBlur:x,onChange:m,isShowToolTips:d})},fJ=M.Ay.div.withConfig({displayName:"styles__StyledDesignSaveTips",componentId:"sc-eg733g-0"})(["color:",";display:flex;align-items:center;justify-content:flex-start;height:32px;width:auto;.toolbar-saveSuccess{color:#298df8;width:14px;height:14px;}.svg-icon.toolbar-saveSuccess{color:#23b571;}.save-tips-dropdown{height:16px;width:16px;display:flex;align-items:center;justify-content:center;cursor:pointer;border-radius:4px;.svg-icon{color:",";}&.is-open,&:hover{.toolbar-dropDown{margin-top:5px;transition:margin-top ease-in-out 0.2s;}}}.only-view-container{display:flex;flex:1;align-items:center;justify-content:center;max-width:350px;.center-name-wrapper{position:relative;}.can-edit-btn{display:flex;padding:3px 12px;border:1px solid ",";border-radius:100px;margin-right:4px;font-size:12px;color:",";cursor:pointer;&:hover{background-color:",";}&:active{background-color:",";}}.only-can-view{font-size:12px;color:",";margin-left:8px;}.save-name{cursor:default;}}.save-name{width:auto;max-width:none;font-size:14px;color:",";text-align:center;cursor:text;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;&.screen-glue-name{cursor:auto;}&.is-editing{width:100%;.is-editing textarea{color:",";}}.save-name-edit-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:600;font-size:13px;line-height:20px;height:20px;&.is-editing{border-bottom:unset;textarea{font-weight:bold;text-align:center;}}}}.mockitt-icon{width:193px;height:40px;}.loading-box{width:32px;height:32px;margin-left:12px;display:flex;align-items:center;justify-content:center;.svg-icon{width:32px;height:32px;&.is-saving{width:16px;height:16px;color:#1684fc;animation:design-ani-spinning 1.5s infinite ease-out;}&:not(.is-saving){path{&:first-child{fill:",";}&:last-child{fill:",";}}}&.is-success{path{&:last-child{fill:",";}}}&.is-offline{path{&:last-child{fill:",";}}}}}.undoIcon,.redoIcon{width:32px;height:32px;}.save-name{&.is-editing{max-width:230px;}.save-name-edit-name{max-width:230px;}}&.isEditing{width:100%;.save-name.is-editing{max-width:290px;width:auto;}.save-name-edit-name{max-width:290px;}}@keyframes design-ani-spinning{0%{transform:rotate(0deg);}100%{transform:rotate(359deg);}}"],e=>e.theme.color_text_L3,e=>e.theme.color_text_L1,e=>e.theme.color_btn_secondary_active,e=>e.theme.color_text_L1,e=>e.theme.color_btn_secondary_active,e=>e.theme.color_btn_secondary_active,e=>e.theme.color_text_L3,e=>e.theme.color_text_L1,e=>e.theme.color_text_L1,e=>e.theme.color_text_L1,e=>e.theme.color_text_disabled01,e=>e.theme.color_success,e=>e.theme.color_error);var XS=s(68587),gJ=s(54844),yJ=s(29187);const xJ=M.Ay.div.withConfig({displayName:"styles__StyledFlpakSizeWarnTips",componentId:"sc-iz64gy-0"})(["cursor:pointer;position:relative;width:82px;height:24px;padding:4px 6px;border-radius:4px;background-color:#FAAD14;flex-shrink:0;margin-left:10px;display:flex;justify-content:space-between;color:#FFF;font-size:12px;font-weight:600;line-height:16px;.svg-box{width:16px;height:16px;border-radius:4px;&:hover{background-color:rgba(255,255,255,0.2);}svg{width:16px;}}.corner{position:absolute;left:-3px;top:9px;transform:rotate(45deg);width:6px;height:6px;border-radius:0 1px;background-color:#FAAD14;}"]),vJ=e=>{const{onClose:t,onClick:n}=e;return(0,o.jsxs)(xJ,{onClick:n,children:[(0,o.jsx)("span",{children:"\u4F53\u79EF\u8F83\u5927"}),(0,o.jsx)("div",{className:"svg-box",children:(0,o.jsx)(xt.C,{name:"common/close_ninth",className:"flpak-size-warn-close",onClick:a=>t(a),isColorPure:!0})}),(0,o.jsx)("div",{className:"corner"})]})},QS=(0,l.memo)(vJ),bJ=e=>{let{dispatch:t}=e;const n=w3(sdkStore,"canUndo")(),a=w3(sdkStore,"canRedo")(),i=()=>{n&&t({type:"entry:undo-stack:undo"})},c=()=>{a&&t({type:"entry:undo-stack:redo"})};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(N1.A,{onClick:i,className:"undoIcon",toolTipName:I18N.ToolBar.undo,svgIconName:"toolbar/undo",toolTipDistance:8,disabled:!n}),(0,o.jsx)(N1.A,{onClick:c,className:"redoIcon",toolTipName:I18N.ToolBar.redo,svgIconName:"toolbar/redo",toolTipDistance:8,disabled:!a})]})},wJ=(0,I.Mz)([q.jx,tt.p$],(e,t)=>({viewType:e,newSelection:t})),CJ=(0,r.Ng)(e=>wJ(e))(bJ),SJ=e=>{if(!e)return{};const t=window.getComputedStyle(e);return["fontSize","fontFamily","fontWeight","lineHeight","letterSpacing","overflow","tabSize","textIndent","textTransform","whiteSpace","wordBreak","wordSpacing","boxSizing","padding","border"].reduce((a,i)=>(Number.isNaN(Number(i))&&i!=="length"&&(a[i]=t[i]),a),{})},AJ=(0,l.forwardRef)(function(t,n){const{className:a,style:i,value:c,maxLength:d,autoWidth:p=!1,cursorPosition:h="end",onSave:m,onCancel:x,onEnd:v}=t,A=l.useRef(null),k=l.useRef(null),R=l.useRef(!1),F=l.useRef(),[Z,G]=l.useState(c),[ee,ce]=l.useState({});l.useEffect(()=>{G(c)},[c]);const se=()=>{const Ct=A.current;if(!Ct)return;const{width:St}=k.current.getBoundingClientRect();Ct.style.width=St+"px"};l.useEffect(()=>{if(!A.current)return;const Ct=A.current;Ct.focus(),Ct.select(),h==="start"&&(Ct.scrollLeft=0),p&&(ce(SJ(Ct)),se())},[h,p]),l.useEffect(()=>{p&&new ResizeObserver(()=>{se()}).observe(k.current)},[p]);const he=Ct=>{let{target:St}=Ct;G(St.value.replace(/[\n\r]/g,""))},ve=()=>{R.current=!0},Te=()=>{R.current=!1},xe=Ct=>{let{keyCode:St}=Ct;R.current||(F.current=St)},Fe=()=>{m(Z.trim())};(0,l.useImperativeHandle)(n,()=>({confirmChange:Fe,cancel:x}));const et=Ct=>{let{keyCode:St,ctrlKey:hn,altKey:Cn,metaKey:Mt,shiftKey:Et}=Ct;F.current===St&&!R.current&&!hn&&!Cn&&!Mt&&!Et&&(St===13?(Fe(),v==null||v()):St===27&&x())},Ke=()=>{Fe()},Qe=Ct=>Ct!==null&&typeof Ct=="object"&&!Array.isArray(Ct),nt=l.useMemo(()=>p?{minWidth:0,maxWidth:"100%",...Qe(p)?p:{}}:null,[p]),Xe={minWidth:nt==null?void 0:nt.minWidth,maxWidth:nt==null?void 0:nt.maxWidth,width:nt&&"auto",...i},lt={...ee,...Xe,whiteSpace:"nowrap",position:"absolute",visibility:"hidden"};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("input",{ref:A,className:a,maxLength:d,value:Z,onChange:he,onKeyDown:xe,onKeyUp:et,onCompositionStart:ve,onCompositionEnd:Te,onBlur:Ke,style:Xe}),(0,o.jsx)("span",{className:"auto-width-placeholder",ref:k,style:lt,children:Z})]})}),kJ=e=>{const{value:t,className:n,isEditing:a,theme:i,onConfirm:c}=e,p={...{color:i===yl.Sx.LIGHT?"rgba(0, 0, 0, 0.85)":"rgba(255, 255, 255, 0.85)",fontSize:"13px",height:"20px",lineHeight:"20px",fontWeight:"600"},paddingTop:"2px"};return(0,o.jsx)("div",{className:n,children:a?(0,o.jsx)(AJ,{cursorPosition:"start",autoWidth:{minWidth:0,maxWidth:"230px"},style:p,value:t,onSave:c,onCancel:()=>c(t)}):(0,o.jsx)(Hy,{value:t,className:"save-name-edit-name",isEditing:!1})})};var Cu=s(87332);const MJ=M.Ay.div.withConfig({displayName:"styles__StyledPlanTag",componentId:"sc-tq258e-0"})(["display:flex;align-items:center;padding:0px 4px;height:16px;padding-top:1px;margin-left:6px;border-radius:4px;background:",";font-weight:500;font-size:12px;color:",';font-family:"PingFang SC";font-size:10px;font-weight:500;cursor:pointer;svg{width:30px;height:30px;}span{display:inline-block;transform:scale(.83);transform-origin:center;}'],e=>e.theme.color_bg_border_01,e=>e.theme.color_text_L2),EJ=M.Ay.div.withConfig({displayName:"styles__StyledPlanDropMenu",componentId:"sc-1wi33sa-0"})(["padding:16px;width:378px;margin-left:12px;display:flex;flex-direction:column;border-radius:12px;border:1px solid ",";background:",";box-shadow:2px 8px 20px 0px rgba(0,0,0,0.10);.free-plan{padding:10px 12px;display:flex;position:relative;align-items:center;border-radius:10px;background:",";gap:12px;overflow:hidden;svg{width:32px;height:32px;}.plan-info{display:flex;flex-direction:column;.title{color:",';font-family:"HarmonyOS Sans SC";font-size:12px;font-style:normal;font-weight:500;line-height:16px;}.desc{color:',';font-family:"HarmonyOS Sans SC";font-size:11px;font-style:normal;font-weight:400;line-height:16px;}}}.paid-card{padding:12px;margin-top:8px;margin-bottom:16px;display:flex;position:relative;flex-direction:column;align-items:flex-start;gap:12px;border-radius:10px;background:',";overflow:hidden;.plan-head{gap:4px;display:flex;flex-direction:row;align-items:center;color:",';font-family:"HarmonyOS Sans SC";font-size:12px;font-weight:500;svg{width:16px;height:16px;}}.plan-container{width:100%;display:flex;flex-direction:row;gap:8px;}}.plan-tag{right:0;top:0;padding:3px 6px;min-width:56px;display:flex;position:absolute;align-items:center;justify-content:center;color:white;font-size:11px;border-radius:0px 0px 0px 12px;background:',";&.purple{background:#8A78FE;}&.org-full-plan{min-width:auto;top:-1px;padding:3px 2px;line-height:10px;font-size:10px;background-color:",";color:",';border-radius:0px 0px 0px 6px;}}.upgrade-btn{width:100%;height:30px;display:flex;align-items:center;justify-content:center;border-radius:6px;background:linear-gradient(105deg,#73C7FF -23.92%,#4D54FF 51.2%,#FF83F9 118.13%);color:#FFF;font-family:"PingFang SC";font-size:13px;font-style:normal;font-weight:500;line-height:normal;gap:4px;cursor:pointer;&:hover,&:active{svg{transform:translateY(-2px);transition:transform .2s ease-in-out;}}}'],e=>e.theme.color_bg_border_01,e=>e.theme.color_bg_white,e=>e.theme.color_navigation_active,e=>e.theme.color_text_L1,e=>e.theme.color_text_L3,e=>e.theme.free_card_panel_paid_plan_bg,e=>e.theme.free_card_exclusive_benefits_text_color,e=>e.theme.color_slider_normal,e=>e.theme.free_card_org_full_tag_bg,e=>e.theme.free_card_org_full_tag_text_color),IJ=M.Ay.div.withConfig({displayName:"styles__StyledPlanItem",componentId:"sc-1wi33sa-1"})(["height:90px;flex:1 0 0;display:flex;position:relative;flex-direction:column;justify-content:center;align-items:center;border-radius:8px;overflow:hidden;border:0.5px solid ",";background:",";svg{width:30px;height:30px;}.label{margin-top:10px;color:",';font-family:"PingFang SC";font-size:11px;font-style:normal;font-weight:500;line-height:16px;}.desc{color:',';text-align:center;font-family:"PingFang SC";font-size:11px;font-style:normal;font-weight:400;line-height:16px;}'],e=>e.theme.free_card_panel_plan_item_border,e=>e.theme.free_card_panel_plan_item_bg,e=>e.theme.color_text_L1,e=>e.theme.color_text_L2),_J=()=>[{label:I18N.payment.free_plan_label1,desc:I18N.payment.free_plan_desc1,icon:(0,o.jsx)(xt.C,{name:"plan/free-card-page-count-unlimit",isColorPure:!0})},{label:I18N.payment.free_plan_label2,desc:I18N.payment.free_plan_desc2,icon:(0,o.jsx)(xt.C,{name:"plan/free-card-project-count-unlimit",isColorPure:!0})},{label:I18N.payment.free_plan_label3,desc:I18N.payment.free_plan_desc3,icon:(0,o.jsx)(xt.C,{name:"plan/free-card-template-count-unlimit",isColorPure:!0})}],TJ=()=>[{label:I18N.payment.free_plan_label1,desc:I18N.payment.free_plan_desc1,icon:(0,o.jsx)(xt.C,{name:"plan/free-card-page-count-unlimit",isColorPure:!0})},{label:I18N.payment.free_plan_label4,desc:I18N.payment.free_plan_desc4,icon:(0,o.jsx)(xt.C,{name:"plan/free-card-member-manage",isColorPure:!0})},{label:I18N.payment.free_plan_label5,desc:I18N.payment.free_plan_desc5,icon:(0,o.jsx)(xt.C,{name:"plan/free-card-template-count-unlimit",isColorPure:!0}),tag:(0,o.jsx)("div",{className:"plan-tag org-full-plan",children:I18N.payment.plan_org_full})}],PJ=e=>{let{item:t}=e;const{icon:n,label:a,desc:i,tag:c}=t;return(0,o.jsxs)(IJ,{children:[n,(0,o.jsx)("div",{className:"label",children:a}),(0,o.jsx)("div",{className:"desc",children:i}),c]})},LJ=e=>{let{isPersonal:t,onUpgrade:n}=e;const a=(0,l.useMemo)(()=>t?_J():TJ(),[t]);return(0,o.jsxs)(EJ,{children:[(0,o.jsxs)("div",{className:"free-plan",children:[(0,o.jsx)(xt.C,{name:"plan/free-card-folder",isColorPure:!0}),(0,o.jsxs)("div",{className:"plan-info",children:[(0,o.jsx)("span",{className:"title",children:t?I18N.payment.free_solo:I18N.payment.free_org}),(0,o.jsx)("span",{className:"desc",children:I18N.payment.free_limit})]}),(0,o.jsx)("div",{className:"plan-tag",children:I18N.payment.current_plan})]}),(0,o.jsxs)("div",{className:"paid-card",children:[(0,o.jsxs)("div",{className:"plan-head",children:[(0,o.jsx)(xt.C,{name:"plan/free-card-purple-diamond",isColorPure:!0}),I18N.payment.member_exclusive_benefits]}),(0,o.jsx)("div",{className:"plan-container",children:a.map(i=>(0,o.jsx)(PJ,{item:i},i.label))}),(0,o.jsx)("div",{className:"plan-tag purple",children:I18N.payment.after_upgrade})]}),(0,o.jsxs)("div",{className:"upgrade-btn",onClick:n,children:[I18N.ToolBar.upgradeToVersionControl.upgradeNow,(0,o.jsx)(xt.C,{name:"plan/upgrade-white-arrow",isColorPure:!0})]})]})},NJ=()=>{const e=(0,r.d4)(me.K$),t=(0,l.useMemo)(()=>{if(!e)return!1;const{plan:a}=is.tz.InitialOrg(e).planSdk;return[is.L1.Free,is.Sj.OrgFree].includes(a)},[e]),n=()=>{const a=e&&e.otype!=="personal",d=(0,Ra.l)(a&&e,"\u7F16\u8F91\u533A_v8\u9876\u90E8_\u5DE6\u4FA7_\u5347\u7EA7","workspace-v8_top_left_upgrade");MB.global.popupHelper.chargeAsync(d)};return t?(0,o.jsx)(Cu.A,{renderOpener:(0,o.jsx)(MJ,{children:I18N.Common.free}),renderMenu:(0,o.jsx)(LJ,{isPersonal:(e==null?void 0:e.otype)==="personal",onUpgrade:n})}):null};class jJ extends l.PureComponent{constructor(t){var n;super(t),(0,B.A)(this,"handleEdit",a=>{const{isRenderProjectTips:i}=this.props;i&&this.setState({isEditing:!0}),this.renameProjectEntry=a}),(0,B.A)(this,"handleChangeProjectName",a=>{const{dispatch:i}=this.props;i({type:"entry:update:root-project:name",payload:{name:a}}),this.setState({isEditing:!1}),(0,ed.kH)("rename_project",{project_type:"\u539F\u578B V8",source:this.renameProjectEntry})}),(0,B.A)(this,"handleChangeScreenGlueName",a=>{const{dispatch:i}=this.props;i({type:"entry:toolbar:update:screen_glue_name",payload:{name:a}}),this.setState({isEditing:!1})}),(0,B.A)(this,"handleSave",()=>{const{dispatch:a}=this.props;MB.global.experienceLoginModalHelper("isSave")||a({type:"entry:start:saving"})}),(0,B.A)(this,"handleClickVersionControl",()=>{this.props.dispatch({type:"entry:toolbar:open:versionControl:modal"}),(0,Oc.kX)({operation_type:Oc.mV.VersionToTitleMenu})}),(0,B.A)(this,"handleProjectSummaryClicked",()=>{this.props.dispatch({type:"modal:update:state",payload:{projectSummaryModal:{isOpen:!0}}}),(0,ed.kH)("file_information",{source:"\u9876\u680F\u4E2D\u90E8\u540D\u79F0\u4E0B\u62C9-\u6587\u4EF6\u4FE1\u606F"})}),(0,B.A)(this,"handleOpenTrash",a=>{a.stopPropagation();const{isShowExitCombo:i,isEditingUserCombo:c,dispatch:d}=this.props;d({type:"modal:update:state",payload:{screenTrashModal:{isOpen:!0,isEditingCombo:i,isEditingUserCombo:c}}})}),(0,B.A)(this,"handleSaveTipsDropdown",()=>{(0,Oc.kX)({operation_type:Oc.mV.TitleDropMenu})}),(0,B.A)(this,"handleGoEdit",async()=>{const{rootProject:a,importAbarOptions:i}=this.props,{isFromAbar:c,tabCid:d}=i||{},p=c?"?from=zboard"+(d?"&tabCid="+d:""):"";location.href=(0,Rf.Dw)("design/"+a.cid+p)}),(0,B.A)(this,"handleGoToReadOnly",async()=>{const{rootProject:a,projectMeta:i,screenMeta:c,dispatch:d}=this.props;window.history.pushState("","",(0,Rf.Dw)(a.access_token+"/sharing?view_mode=read_only")),(0,XS.FR)(),MB.canEditByCurrentUser=!0,await d({type:"screen:update:state",payload:{isMultiplePage:!1}}),await d({type:"ai:update:state",payload:{showAIModal:!1,currentAiComponent:null}});const p=MB.getRootProject()||MB.abarSubProject,{sharing:h}=await(0,gJ.J_)({project:p,accessToken:p==null?void 0:p.access_token}),m=h.type==="default"?(h==null?void 0:h.view_sticky)==="view_sticky":h.view_sticky;await d({type:"current:update:state",payload:{sharingInReadOnly:{...h,view_sticky:m}}}),await d({type:"entry:root-project:readOnly:activate",payload:{projectBasic:a,projectMeta:i,screenCid:c.cid}}),await d({type:"entry:update:viewport:rect"}),(0,XS.RZ)(),(0,ed.kH)("model_change",{change_type:"\u7F16\u8F91\u6A21\u5F0F\u5207\u6362\u53EA\u8BFB"}),(0,yJ.wl)()}),(0,B.A)(this,"onFlpakSizeWarnTipsClose",a=>{a.stopPropagation(),this.setState({isFlpakSizeWarnTipsShow:!1})}),(0,B.A)(this,"onFlpakSizeWarnTipsClick",()=>{this.props.dispatch({type:"modal:update:state",payload:{flpakSizeWarnModal:{isOpen:!0}}})}),this.state={isEditing:!1,isSaved:!1,isOffline:!(0,kl.ys)(),isFlpakSizeWarnTipsShow:!!((n=np.A.getFlpakSizeInfo())!=null&&n.isFlpakSizeWarn)},this.renameProjectEntry=""}UNSAFE_componentWillReceiveProps(t){this.props.isSaving&&!t.isSaving&&this.setState({isSaved:!0})}componentDidUpdate(){this.setState({isOffline:!(0,kl.ys)()}),this.state.isSaved&&(this.timer=setTimeout(()=>{this.setState({isSaved:!1})},2e3))}componentWillUnmount(){clearTimeout(this.timer)}render(){const{isSaving:t,onlyView:n,rootProjectName:a,editingComboName:i,isRenderProjectTips:c,isRenderScreenGlueTips:d,isRenderExperienceTips:p,isShowExitCombo:h,layoutV9:m="old",theme:x,dispatch:v}=this.props,{isSaved:A,isEditing:k,isFlpakSizeWarnTipsShow:R,isOffline:F}=this.state,Z=DJ({isSaving:t}),G=t?I18N.ToolBar.IconSaving:F?I18N.ToolBar.IconSaveFailure:I18N.ToolBar.IconSave,ee=(0,Bf.OB)(),ce=()=>{MB.global.experienceLoginModalHelper("isSave")||MB.action("entry:start:saving")};return(0,o.jsxs)(fJ,{className:C()({isEditing:k}),children:[n?(0,o.jsxs)("div",{className:"only-view-container",children:[(0,o.jsx)("span",{className:"save-name",children:(0,Rs.qk)(a)}),R&&!h&&(0,o.jsx)(QS,{onClose:this.onFlpakSizeWarnTipsClose,onClick:this.onFlpakSizeWarnTipsClick})]}):(0,o.jsxs)(o.Fragment,{children:[p?ENV.IS_MO?(0,o.jsx)(BJ,{}):(0,o.jsx)(RJ,{}):(0,o.jsxs)("div",{className:C()("save-name",{"is-editing":k,"screen-glue-name":d}),onClick:()=>this.handleEdit("\u539F\u578B\u9876\u90E8\u680F"),children:[c?(0,o.jsx)(kJ,{value:(0,Rs.qk)(a),className:"save-name-edit-name",isEditing:k,onConfirm:this.handleChangeProjectName,theme:x}):null,d?(0,o.jsx)(Hy,{value:(0,Rs.qk)(i),className:"save-name-edit-name",isEditing:!1,onConfirm:this.handleChangeScreenGlueName}):null]}),!k&&!p&&(0,o.jsx)(o.Fragment,{children:R&&!h&&(0,o.jsx)(QS,{onClose:this.onFlpakSizeWarnTipsClose,onClick:this.onFlpakSizeWarnTipsClick})})]}),ee&&(0,o.jsx)(NJ,{}),!p&&!n&&(0,o.jsx)(Ti.A,{content:G,direction:"down",children:(0,o.jsx)("a",{className:"loading-box",onClick:ce,children:(0,o.jsx)(xt.C,{className:C()({"is-saving":t},{"is-offline":F},{"is-success":!A&&!t}),name:Z})})}),ee&&(0,o.jsx)(CJ,{dispatch:v})]})}}const DJ=e=>{let{isSaving:t}=e;return t?"general/loading":"toolbar/saveTips/normal"},RJ=()=>(0,o.jsx)("svg",{className:"mociking-icon",width:"150",height:"14",xmlns:"http://www.w3.org/2000/svg",children:(0,o.jsxs)("g",{fillRule:"nonzero",fill:"none",children:[(0,o.jsx)("path",{d:"M93.982 1l7.194 7.279V1.393h1.945V13l-7.195-7.279v6.882h-1.944V1zm40.89.193c3.167 0 5.736 2.598 5.736 5.803s-2.569 5.804-5.736 5.804c-3.168 0-5.736-2.599-5.736-5.804s2.568-5.803 5.736-5.803zm-64.767 0c1.491 0 2.85.575 3.87 1.519l.186.18-1.374 1.392a3.759 3.759 0 0 0-2.682-1.124c-2.093 0-3.792 1.718-3.792 3.836 0 2.12 1.699 3.837 3.792 3.837.972 0 1.86-.37 2.53-.98l.152-.144 1.375 1.391a5.686 5.686 0 0 1-4.057 1.7c-3.167 0-5.736-2.599-5.736-5.804s2.569-5.803 5.736-5.803zm41.683 0c1.49 0 2.849.575 3.869 1.519l.187.18-1.375 1.392a3.759 3.759 0 0 0-2.681-1.124c-2.094 0-3.792 1.718-3.792 3.836 0 2.119 1.698 3.837 3.792 3.837a3.74 3.74 0 0 0 1.906-.52l.206-.13V8.964h-1.556V6.996h3.5V11.1a5.683 5.683 0 0 1-4.056 1.7c-3.168 0-5.736-2.598-5.736-5.804 0-3.205 2.568-5.803 5.736-5.803zm-55.028 0c3.155 0 5.714 2.588 5.714 5.78 0 3.193-2.559 5.781-5.714 5.781-3.155 0-5.714-2.588-5.714-5.78 0-3.193 2.559-5.781 5.714-5.781zm-8.143-.19v11.603h-1.945V5.724L43.31 9.128l-3.365-3.404v6.882H38V1.003l5.309 5.37 5.308-5.37zm37.783.383l-5.545 5.61 5.545 5.61h-2.625L78.62 7.39v5.213h-1.944V1.39h1.944v5.213l5.156-5.217H86.4zm63.6.004v1.967h-3.403v9.246h-1.944V3.357h-3.403V1.39H150zm-26.488 0c1.799 0 3.257 1.475 3.257 3.295 0 .718-.23 1.382-.616 1.922a3.302 3.302 0 0 1 1.394 2.701c0 1.82-1.459 3.295-3.257 3.295h-5.484V1.39h4.706zm-32.603 0v11.213h-1.945V1.389h1.945zm43.963 1.77c-2.094 0-3.792 1.718-3.792 3.836 0 2.12 1.698 3.837 3.792 3.837s3.791-1.718 3.791-3.837c0-2.118-1.697-3.836-3.791-3.836zM56.76 3.152c-2.086 0-3.777 1.711-3.777 3.822 0 2.11 1.691 3.82 3.777 3.82 2.086 0 3.777-1.71 3.777-3.82s-1.691-3.822-3.777-3.822zm67.53 4.828h-3.54v2.656h3.54a1.32 1.32 0 0 0 1.312-1.328 1.32 1.32 0 0 0-1.312-1.328zm-.778-4.623h-2.761v2.656h2.761a1.32 1.32 0 0 0 1.312-1.328 1.32 1.32 0 0 0-1.312-1.328z",fill:"#3F3A3A"}),(0,o.jsx)("path",{d:"M30 0v13.688h-2.09V2.16h-4.812c-.05.817-.143 2.386-.237 3.899-.304 4.932-3.03 6.967-5.42 7.94l-1-1.973c2.397-.8 4.186-2.825 4.377-6.271.074-1.342.16-2.725.214-3.595h-3.874V.001H30zM7.43 9.005v1.56H13v1.321H7.43v.48h5.803v1.321H0v-1.32h5.804v-.48H.232v-1.321h5.572v-1.56h1.625zm-5.34 0l-.233 1.2H.464l.233-1.2h1.392zm2.669 0l-.232 1.2H3.134l.233-1.2h1.392zm5.108 0l.232 1.2H8.706l-.232-1.2h1.393zm2.67 0l.232 1.2h-1.393l-.232-1.2h1.393zM12.653 0v4.803H7.429v.6h5.34v1.32H7.43v.601h5.572v1.32H.232v-1.32h5.572v-.6H.464V5.402h5.34v-.6H.58V0h12.073zm-6.85 1.32H2.206v2.162h3.599V1.32zm5.225 0H7.429v2.162h3.599V1.32zm-6.5.48l.231 1.202H3.367L3.134 1.8h1.393zm5.57 0l-.231 1.202H8.474L8.706 1.8H10.1z",fill:"#EB5648"})]})}),BJ=()=>(0,o.jsx)("img",{className:"mockitt-icon",src:"/mb-workspace/images/workspace/mockitt_toolbar_icon.png",alt:""}),UJ=(0,I.Mz)([te.O4],e=>({theme:e})),OJ=(0,r.Ng)(e=>UJ(e))(jJ),FJ=(0,M.Ay)(Oe.Ay).withConfig({displayName:"styles__StyledMenuContent",componentId:"sc-1jhw9vf-0"})(["",";ul{li.MenuItem{a{& > .expander .screen-icon .sm-folder-icon path{stroke:",";}}}}&.isEmbedV2Preview{top:32px !important;&.isFullScreen{top:48px !important;}ul{li{a{height:24px;}&.rResBunch::after{top:9px}}}}&.isFullScreen > ul{width:189px;}ul{width:160px;min-width:0;}.scroll{overflow-y:overlay;max-height:258px;&::-webkit-scrollbar{display:none;}}.padd{display:flex;flex-direction:row;align-items:center;}li{list-style:none;&.canExpand{a{padding-left:6px;}}&.isFolder{a{padding-left:15px;}&.canExpand{a{padding-left:6px;}}a a .screen-icon{padding-left:2px;}}&.MenuItem.hasIcon.rResCanvas > a:first-child{padding-left:12px;}&.rResBunch.selected .arrow-right{opacity:0;}&.rResBunch::after{opacity:0;position:absolute;top:13px;right:13px;content:'';width:7px;height:4px;display:inline-block;border:1px solid rgba(0,0,0,0.93);border-width:0 0 2px 2px;transform:rotate(-45deg);}&.rResBunch.selected::after{opacity:1;}&.rResCanvas::before{opacity:0;position:absolute;top:14px;right:24px;content:'';width:7px;height:4px;display:inline-block;border:1px solid #fff;border-width:0 0 2px 2px;transform:rotate(-45deg);}&.rResCanvas.selected::before{opacity:1;}}a{height:32px;padding-left:16px;color:",";.expander{padding-left:0;padding-right:5px;&.canExpand{}.arrow-icon{width:9px;height:6px;path{fill:#999999;}&:not(.is-expand){transform:rotate(-90deg);}}.screen-icon{padding-left:1px;.sm-folder-icon{width:23px;height:22px;color:#333 !important;path{stroke:#fff;fill:transparent !important;}}.page{path{fill:","}}}.design-rResCanvas-new{width:20px;height:20px;path{fill:#fff;}}.arrow-right{position:absolute;right:6px;top:10px;transform:rotate(-90deg);path{fill:#fff;}}}span{max-width:6em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}}.MenuItem{flex:1;.right-arrow{display:none;}}.SubMenu{border-radius:8px;min-width:200px;background:",";color:",";box-shadow:",";border:1px solid ",";}.context-menu-mask{z-index:1001;}"],za.ZJ,e=>e.theme.color_text_L0,e=>e.theme.color_text_L1,e=>e.theme.color_text_L1,e=>e.theme.color_bg_white,e=>e.theme.color_text_L1,e=>e.theme.shadow_m,e=>e.theme.color_bg_border_01),VJ=M.Ay.div.withConfig({displayName:"styles__StyledScreenMetaMenu",componentId:"sc-1jhw9vf-1"})(["display:flex;align-items:center;cursor:pointer;.toolbar-menu-opener{display:flex;align-items:center;width:160px;height:24px;border:1px solid ",";border-radius:4px;transition:all 0.2s ease-in-out 0s;&:hover{background-color:",";}&.isFullScreen{width:189px;height:28px;margin-right:16px;}.title{flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:0 10px;font-weight:400;font-size:12px;color:",";}.arrow-right{margin-right:8px;color:",";width:9px;}}"],e=>e.theme.color_border_state,e=>e.theme.color_content_background_item_state_hover,e=>e.theme.color_content_text_item_state,e=>e.theme.color_content_text_item_state);class zJ extends l.PureComponent{constructor(){super(...arguments),(0,B.A)(this,"state",{isOpen:!1,isShowMoreTips:!0,position:{left:90,top:48}}),(0,B.A)(this,"createRef",t=>this.$ref=t),(0,B.A)(this,"handleToggle",t=>{const{isOpen:n}=this.state,a=t===void 0?!n:t;this.setState({isOpen:a,isShowMoreTips:!this.state.isShowMoreTips}),this.handleSetPosition(a)}),(0,B.A)(this,"handleSetPosition",t=>{if(!this.$ref||!t)return;const n=this.$ref.getBoundingClientRect();if(n){const a=(48-n.height)/2,i={left:n.left-2,top:n.bottom+a-2};this.setState({position:i})}}),(0,B.A)(this,"handleScreenList",(t,n,a)=>{const i=n.children;for(const c of i){const d={...c,depth:a,canExpand:!1,expand:!1,show:!0};c.children&&c.children.length>0?(t.push({...d,canExpand:!0,expand:!0}),this.handleScreenList(t,c,a+1)):t.push(d)}}),(0,B.A)(this,"handleActiveScreenMeta",t=>{if((0,nr.Mo)(t))return;const{activeScreenMetaCid:a,dispatch:i}=this.props,{cid:c,key:d}=t,p=c||d;if(a===p)return;i({type:"entry:memory:current:screen:offset:scale"}),i({type:"entry:goto:project-alike",payload:{screenMetaCid:p}}),i(Le.GO.editBasketItemKey("")),i(Le.GO.editBasketHotItem(null)),i({type:"entry:memory:last:screenAndCanvas",payload:{screenMetaCid:p}});const h=rootSdk.sdkStore.getHotItem(p);i({type:"screen:update:state",payload:{currentPage:h}})}),(0,B.A)(this,"handleClickScreen",(t,n)=>{this.handleActiveScreenMeta(n),this.handleToggle(!1)})}render(){var t;const{screenTreeData:n,activeScreenMetaCid:a,fullScreenMode:i,isEmbedV2Preview:c}=this.props,{position:d,isOpen:p}=this.state,h=((t=sdkStore.getHotItem(a))==null||(t=t.hotAttr)==null?void 0:t.name)||"",m=[];return this.handleScreenList(m,n,0),m.length===0?null:(0,o.jsxs)(VJ,{children:[(0,o.jsxs)("div",{className:C()("toolbar-menu-opener",{isFullScreen:i}),onClick:()=>this.handleToggle(!p),ref:this.createRef,children:[(0,o.jsx)("span",{className:"title",children:h}),(0,o.jsx)(xt.C,{className:"arrow-right",name:"common/expand"})]}),p&&(0,o.jsx)(FJ,{className:C()(i&&"isFullScreen",c&&"isEmbedV2Preview"),position:d,alwaysOpen:!0,onClose:()=>this.handleToggle(!1),children:(0,o.jsx)(WJ,{activeScreenCid:a,screenList:m,onClickScreen:this.handleClickScreen})})]})}}const WJ=e=>{let{activeScreenCid:t,screenList:n,onClickScreen:a}=e;const[i,c]=(0,l.useState)(n);(0,l.useEffect)(()=>{const h=document.querySelector(".scroll.rResBunch"),m=document.querySelector(".content-list.rResBunch");if(t){const x=document.querySelector(".padd."+t);if(h&&m&&x){const{top:v}=m.getBoundingClientRect(),{top:A}=x.getBoundingClientRect();h.scrollTo(0,A-v)}}},[t]);const d=(h,m,x,v,A)=>{h.stopPropagation();let k=1/0,R=0,F=!1;const Z=[];i.forEach((G,ee)=>{let ce=G;G.cid===m&&(ce={...G,expand:!G.expand},k=ee),F&&(ee===R?F=!1:ce={...G,show:!1}),!F&&ee>k&&(G.data.sup!==x&&G.depth>v?ce={...G,show:!A}:(G.data.sup===x||G.depth<=v)&&(k=1/0),!A&&!G.expand&&(R=i.slice(ee+1).findIndex(se=>se.data.sup===G.data.sup||se.depth<=G.depth)+(ee+1),R!==-1&&(F=!0))),Z.push(ce)}),c(Z)},p=h=>{let{type:m,canExpand:x,cid:v,supCid:A,depth:k,expand:R,icon:F}=h;return(0,o.jsxs)("a",{className:C()("expander rResBunch",{canExpand:x}),onClick:Z=>d(Z,v,A,k,R),style:{paddingLeft:8*k+"px"},children:[x&&(0,o.jsx)(xt.C,{className:C()("arrow-icon",{"is-expand":R}),name:"common/triangle-filled-down"}),(0,o.jsx)(no.k,{icon:F,theme:"",isExpand:R})]})};return(0,o.jsx)("div",{className:"scroll rResBunch",children:(0,o.jsx)("div",{className:"content-list rResBunch",children:i.map(h=>{let{cid:m,data:x,depth:v,show:A,expand:k,canExpand:R}=h;const{name:F,asFolder:Z,sup:G,icon:ee}=x,se=sdkStore.getSubHotItemList(m).filter(he=>{let{hotAttr:{type:ve,asOverlay:Te}}=he;return ve===$.x.Canvas&&!Te}).length>0;if(A)return(0,o.jsx)("div",{className:"padd "+m,children:(0,o.jsx)(Oe.Dr,{dataIndex:m,text:F,icon:p({type:"rResBunch",canExpand:R,cid:m,supCid:G,depth:v,expand:k,icon:ee}),onClick:he=>a(he,x),className:C()("rResBunch",R&&"canExpand",{isFolder:Z},{selected:t===m},{disabled:!se&&!Z}),disabled:!se&&!Z},m)},m)})})})},HJ=(0,I.Mz)([rt.HA,me.Ur,tt.p$,rt.Hs,q.T7],(e,t,n,a,i)=>{const{cid:c}=t||{};return{screenTreeData:e,activeScreenMetaCid:c,screenSelection:a,fullScreenMode:i}}),JS=(0,r.Ng)(e=>HJ(e))(zJ);class GJ extends l.PureComponent{constructor(){super(...arguments),(0,B.A)(this,"handleBack",()=>{const{dispatch:t,isShowExitCombo:n}=this.props;if(n){t({type:"entry:exit:combo"});return}t({type:"entry:leave:project"})}),(0,B.A)(this,"onClickLogo",()=>{const{isHtmlZipPreview:t,isCommunityPreview:n,isEmbedV2Preview:a,importAbarOptions:{isFromAbar:i}}=this.props;n||a||i||(t?location.href="https://modao.cc/workspace/home":location.href=location.origin+"/workspace/home",(0,Ad.A)({operation_type:Ad.D.Logo}))}),(0,B.A)(this,"handleGoEdit",()=>{const{rootProject:t,importAbarOptions:{isFromAbar:n}}=this.props;n?(0,j1.sg)(j1.ZW.enterEdit):location.href=""+location.origin+(0,Rf.Dw)("design/"+t.cid),(0,ed.kH)("model_change",{change_type:"\u603B\u89C8\u6A21\u5F0F\u5207\u6362\u7F16\u8F91\u6A21\u5F0F"})})}render(){const{isShowBackIcon:t,isShowExitCombo:n,onlyView:a,isCommunityPreview:i,isEmbedV2Preview:c,isHtmlZipPreview:d,fullScreenMode:p,rootProject:h,screenMeta:m,theme:x,importAbarOptions:v,layoutV9:A,isSaving:k,editingComboName:R,isRenderProjectTips:F,isRenderExperienceTips:Z,isRenderScreenGlueTips:G,isEditingUserCombo:ee,projectMeta:ce,dispatch:se}=this.props,he=(0,Bf.KV)(),ve=(0,yl.Y8)(x),{fromAbarIsPreview:Te}=v||{},xe=F||G||Z;return(0,o.jsxs)("div",{className:C()("toolbar-left",{isEmbed:c},{isCommunity:i},{isHtmlZip:d},{"is-only-view":a}),children:[he&&a||d||p?(0,o.jsxs)("div",{className:"logo",children:[(0,o.jsx)(Ti.A,{content:I18N.ToolBar.back_to_dashboard,direction:"down",tipClassName:"toolbar-modao-logo-tips",children:(0,o.jsx)("img",{className:"toolbar-logo-icon",src:ve,onClick:()=>this.onClickLogo()})}),(!(c||i)||p)&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("span",{className:C()("project-name"),children:(0,Rs.qk)(h.name)}),MB.canEditByCurrentUser&&!(c||i)&&(0,o.jsx)(ll.Oc,{className:"edit-btn",type:"secondary",size:"common",onClick:this.handleGoEdit,children:I18N.pPreviewToolbar.edit})]})]}):(0,o.jsx)("div",{className:"toolbar-menu-box",children:(t||n)&&(0,o.jsx)(hJ,{isShowExitCombo:n})}),c&&!p&&(0,o.jsx)("div",{className:"prd-box",children:(0,o.jsx)(JS,{isEmbedV2Preview:c})}),xe&&!(a||i||c||Te)?(0,o.jsx)(OJ,{onlyView:a,isSaving:k,rootProjectName:h==null?void 0:h.name,rootProject:h,editingComboName:R,isRenderProjectTips:F,isRenderExperienceTips:Z,isRenderScreenGlueTips:G,isShowExitCombo:n,isEditingUserCombo:ee,projectMeta:ce,screenMeta:m,dispatch:se,importAbarOptions:v,layoutV9:A}):null]})}}const ZJ=(0,I.Mz)([Me.r,me.W4,te.O4,te.MZ,T.Er,tt.p$,me.YT],(e,t,n,a,i,c,d)=>{const{isDesign:p,isExperience:h,isLoggedExperience:m}=t,{isEditingCombo:x,isEditingUserCombo:v,isEditingOrgCombo:A}=e,k=!x&&p,R=v?I18N.SettingPanel.my_widgets:A?I18N.SettingPanel.team_widgets:"",F=!x&&(p&&c.length===0||a==="recommend"),Z=!x&&(h||m)&&c.length===0,G=x&&(p&&c.length===0||a==="recommend");return{isShowBackIcon:k,theme:n,layoutV9:a,isSaving:i,editingComboName:R,isRenderProjectTips:F,isRenderExperienceTips:Z,isRenderScreenGlueTips:G,isEditingUserCombo:v,projectMeta:d}}),KJ=(0,r.Ng)(e=>ZJ(e))(GJ);var YJ=s(80226),D1=s(62118);function XJ(e){const{source:t}=e,n=(0,r.d4)(me.Ur),a=(0,r.wA)(),i=(0,l.useCallback)(c=>{const d=(0,fp.gu)({type:$.x.Canvas,screen:n,selectedDeviceModel:c});a({type:"entry:batch:create:items:position",payload:{finalWidget:d}}),(0,xi.wS)(t,c==null?void 0:c.device),c!=null&&c.device&&t===xi.ln.TopNavSizeSelectList&&xl.U4.protoDeviceCreate("\u7F16\u8F91\u533A\u9876\u90E8\u65B0\u589E\u9875\u9762",c==null?void 0:c.device),a({type:"set:quick-create-widget",payload:{widget:null}})},[n,t,a]);return(0,l.useEffect)(()=>{a({type:"set:quick-create-widget",payload:{widget:null}})},[a]),(0,o.jsx)(wS,{...e,onSelect:i})}const QJ=(0,l.memo)(XJ);function JJ(e){const{isDisabled:t,quickCreateWidgetName:n,onQuickCreateWidget:a,onCreateWidget:i}=e,c=(0,l.useRef)(null),[d,p]=(0,l.useState)(!1),[h,m]=(0,l.useState)(0),x=n===$.x.Canvas||d,v=()=>{a($.x.Canvas)},A=Z=>{i(Z,$.x.Canvas)},k=Z=>{Z.stopPropagation()},R=()=>{var Z;return m((((Z=c.current)==null||(Z=Z.$element)==null?void 0:Z.getBoundingClientRect().left)||82)-82)};(0,l.useEffect)(()=>(window.addEventListener("resize",R),()=>{window.removeEventListener("resize",R)}),[]);const F=Z=>{Z&&R(),p(Z)};return(0,o.jsxs)("div",{className:C()("shape-list-box",Va.c.GUIDE_OLD_NEW_CREATE_PAGE,Va.c.GUIDE_DS_SCREEN_STEP_1,Va.c.GUIDE_NOVICE_2408_CREATE_PAGE,x&&"active",t&&"disabled"),onClick:v,onMouseDown:A,children:[(0,o.jsx)(Ti.A,{content:(0,D1.Qc)($.x.Canvas),direction:"down",distance:8,children:(0,o.jsx)("div",{className:"shapeContainer",children:(0,o.jsx)(xt.C,{className:"toolbar-shape",name:"toolbar/page/material"})})}),(0,o.jsx)(Cu.A,{ref:c,menuPosTop:48,onClick:F,className:"shape-list-dropdown",isCloseMenuItem:!1,renderOpener:(0,o.jsx)(Ti.A,{content:"",direction:"down",distance:8,children:(0,o.jsx)("div",{className:"shape-opener",children:(0,o.jsx)(xt.C,{className:"toolbar-dropDown",name:"toolbar/triangle-down",onDoubleClick:k})})}),renderMenu:(0,o.jsx)(QJ,{position:{left:h,top:46},source:xi.ln.TopNavSizeSelectList})})]})}const qJ=(0,l.memo)(JJ);var Vm=s(93971);const $J=[{name:$.x.WVector,svg_icon:"vector"},{name:$.x.WVector,svg_icon:"pencil",attrs:{toolType:$a.pv.PENCIL}}],eq=[["graphics",$.x.WRect,"shape_tool",[{name:$.x.WRect,svg_icon:"rectangle"},{name:$.x.WOval,svg_icon:"circle"},{name:$.x.WLine,svg_icon:"line"},{name:$.x.WLR,svg_icon:"linkarea"},{name:$.x.WImage,svg_icon:"image"},...$J]],{name:$.x.WRichText,svg_icon:"text"},{name:$.x.WElbow,svg_icon:"elbow"}],tq={name:"wSticky",svg_icon:"note",shapeList:[{name:$.x.WSticky,svg_icon:"note"},{name:$.x.WTear,svg_icon:"tear"}]},nq=()=>eq.map(e=>Array.isArray(e)?{name:e[0],defaultActiveType:e[1],combineToolTips:e[2],shapeList:e[3]}:e);var oq=s(85691);const aq=(0,ps.R)(()=>({[$.x.WRect]:I18N.w.rounded_rect,[$.x.WOval]:I18N.w.circle_rect,[$.x.WLine]:I18N.w.line,[$.x.WLR]:I18N.w.lr,[$.x.WImage]:I18N.w.image_view,[$.x.WElbow]:I18N.BasicWidgetsNav.wired,[$.x.WVector]:I18N.BasicWidgetsNav.wVector,[$a.pv.PENCIL]:I18N.BasicWidgetsNav.pencil})),rq={[$.x.WRect]:"rectangle",[$.x.WOval]:"circle",[$.x.WLine]:"line",[$.x.WImage]:"image",[$.x.WLR]:"linkarea",[$.x.WVector]:"vector",[$.x.WElbow]:"elbow",[$a.pv.PENCIL]:"pencil"},iq={[$.x.WRect]:"R",[$.x.WOval]:"O",[$.x.WLine]:"L",[$.x.WLR]:"H",[$.x.WVector]:"P",[$.x.WElbow]:"E",[$a.pv.PENCIL]:(0,oq.sl)("shift+P")},sq=M.Ay.div.withConfig({displayName:"styles__StyledShapeMenu",componentId:"sc-18kbex7-0"})(["padding:8px;min-width:160px;background:",";color:",";box-shadow:",";border-radius:8px;border:1px solid ",";li{list-style:none;}.toolbar-check_mark{width:16px;height:16px;position:absolute;left:8px;}.shape-icon{margin-right:8px;width:16px;height:16px;color:",";&.toolbar-annotate{path{&:first-child{fill:none;}}}&.toolbar-note{rect[stroke]{fill:none;}}}.menu-item{position:relative;height:28px;padding:0 16px 0 28px;display:flex;align-items:center;cursor:pointer;.shape-kdd{margin-left:auto;color:",";}.shape-title{color:",";&.shortCutKeyLabel{margin-left:24px;}}&:hover{background:",";}.shortfont{margin-left:auto;kbd{display:inline-block;text-align:center;min-width:12px;color:",";&:first-child{margin-left:0;}&:last-child{margin-right:0;}}}}.menu-divider{height:1px;margin:3px 0;background-color:",";}.menu-item{border-radius:4px;}"],e=>e.theme.color_bg_white,e=>e.theme.color_text_L1,e=>e.theme.shadow_m,e=>e.theme.color_bg_border_01,e=>e.theme.color_text_L1,e=>e.theme.color_text_L3,e=>e.theme.color_text_L1,e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_text_L2,e=>e.theme.color_bg_border_01),lq=(0,M.DU)([".toolbar_annotate_tips_menu{> div{padding:8px;width:125px;background:#1684fc;border-radius:2px;}}"]);class cq extends l.PureComponent{constructor(t){super(t),(0,B.A)(this,"handleOpenerQuickCreateWidget",()=>{const{currentQuickName:n}=this.state,{onQuickCreateWidget:a}=this.props;if(n===$a.pv.PENCIL){a($.x.WVector,{toolType:n});return}a(n)}),(0,B.A)(this,"handleQuickCreateWidget",n=>{const{onQuickCreateWidget:a}=this.props;this.setState({currentQuickName:(0,$a.xy)(n)}),a(n.name,n.attrs)}),(0,B.A)(this,"handleCreateShapeMenuRef",n=>this.$shapeMenuRef=n),(0,B.A)(this,"handleDown",n=>{const{onCreateWidget:a}=this.props,{currentQuickName:i}=this.state;if(i===$.x.WVector)return;let c=document.getElementById("mb-toolbar").getBoundingClientRect();if(n.target.closest(".menu-item")&&this.$shapeMenuRef&&(c=this.$shapeMenuRef.getBoundingClientRect()),i===$a.pv.PENCIL){a(n,$.x.WVector,c,{toolType:i});return}a(n,i,c,{})}),(0,B.A)(this,"handleCreateWidgetDoubleClick",()=>{const{currentQuickName:n}=this.state,{onCreateWidgetDoubleClick:a}=this.props;a&&a(n)}),(0,B.A)(this,"handleStopPropagation",n=>{n.stopPropagation()}),(0,B.A)(this,"handleChangeStyle",n=>{this.setState({isActive:n})}),this.state={currentQuickName:t.widget.defaultActiveType,isActive:!1}}componentDidUpdate(t){if(this.props.quickCreateWidgetName&&t.quickCreateWidgetName!==this.props.quickCreateWidgetName){const{widget:{shapeList:n},quickCreateWidgetName:a}=this.props;n.map(c=>(0,$a.xy)(c)).includes(a)&&this.setState({currentQuickName:a})}}render(){const{widget:t,quickCreateWidgetName:n,isEmptyScreen:a}=this.props,{currentQuickName:i,isActive:c}=this.state,{shapeList:d}=t,p="toolbar/"+rq[i],h=p.replace("/","-"),m=d.map(x=>{let{name:v}=x;return v}).concat($a.pv.PENCIL).includes(n)||c;return(0,o.jsxs)("div",{className:C()("shape-list-box",{active:m,disabled:a}),onClick:this.handleOpenerQuickCreateWidget,onMouseDown:this.handleDown,onDoubleClick:this.handleCreateWidgetDoubleClick,children:[(0,o.jsx)(Ti.A,{content:(0,D1.Qc)(i),direction:"down",distance:8,children:(0,o.jsx)("div",{className:"shapeContainer",children:(0,o.jsx)(xt.C,{className:C()("toolbar-shape",h),name:p})})}),(0,o.jsx)(Cu.A,{menuPosTop:48,offsetX:8,onClick:this.handleChangeStyle,className:"shape-list-dropdown",renderOpener:(0,o.jsx)(Ti.A,{content:I18N.BasicWidgetsNav[t.combineToolTips],direction:"down",distance:8,children:(0,o.jsx)("div",{className:"shape-opener",children:(0,o.jsx)(xt.C,{className:"toolbar-dropDown",name:"toolbar/triangle-down",onDoubleClick:this.handleStopPropagation})})}),renderMenu:(0,o.jsx)(dq,{quickCreateWidgetName:i,shapeList:d,onQuickCreateWidget:this.handleQuickCreateWidget,onCreateShapeMenuRef:this.handleCreateShapeMenuRef})})]})}}class dq extends l.PureComponent{constructor(){super(...arguments),(0,B.A)(this,"handleCreateRef",t=>{const{onCreateShapeMenuRef:n}=this.props;n(t)})}render(){const{shapeList:t,quickCreateWidgetName:n,onQuickCreateWidget:a}=this.props;return(0,o.jsx)(sq,{ref:this.handleCreateRef,children:t==null?void 0:t.map(i=>(0,o.jsx)(pq,{shape:i,quickCreateWidgetName:n,onQuickCreateWidget:a},i.name))})}}class pq extends l.PureComponent{constructor(){super(...arguments),(0,B.A)(this,"handleQuickCreateWidget",()=>{const{shape:t,onQuickCreateWidget:n}=this.props;n(t)}),(0,B.A)(this,"getIsShowCheckMark",()=>{const{shape:t,quickCreateWidgetName:n}=this.props;return(0,$a.xy)(t)===n}),(0,B.A)(this,"getTitle",()=>{const{shape:t}=this.props,n=(0,$a.xy)(t);return n?aq()[n]:void 0}),(0,B.A)(this,"getKdd",()=>{const{shape:t}=this.props,n=(0,$a.xy)(t);if(n)return iq[n]})}render(){const{shape:t}=this.props,n=this.getIsShowCheckMark(),a=this.getTitle(),i=this.getKdd();return(0,o.jsxs)("li",{className:"menu-item",onClick:this.handleQuickCreateWidget,children:[n&&(0,o.jsx)(xt.C,{className:"toolbar-check_mark",name:"common/checked"}),(0,o.jsx)(xt.C,{className:"shape-icon toolbar-"+t.svg_icon,name:"toolbar/"+t.svg_icon+"/min"}),(0,o.jsx)("span",{className:"shape-title",children:a}),(0,o.jsx)("span",{className:"shape-kdd",children:i}),(0,o.jsx)(lq,{})]})}}function uq(){return(0,o.jsx)(hq,{})}const hq=M.Ay.div.withConfig({displayName:"Divider__StyledDivider",componentId:"sc-1x148vl-0"})(["height:16px;width:1px;margin:0 12px 0 12px;background:",";"],e=>e.theme.color_bg_border_02),mq=(0,ps.R)(()=>({[$.x.WSticky]:I18N.w.sticky,[$.x.WTear]:I18N.w.annotate})),A3={[$.x.WSticky]:"note",[$.x.WTear]:"tear"},fq={[$.x.WSticky]:"N",[$.x.WTear]:"W"},gq=M.Ay.div.withConfig({displayName:"styles__StyledShapeMenu",componentId:"sc-1jwtp5w-0"})(["padding:8px;min-width:160px;background:",";color:",";box-shadow:",";border-radius:8px;border:1px solid ",";li{list-style:none;}.toolbar-check_mark{width:16px;height:16px;position:absolute;left:8px;}.shape-icon{margin-right:8px;width:16px;height:16px;color:",";&.toolbar-annotate{path{&:first-child{fill:none;}}}&.toolbar-note{rect[stroke]{fill:none;}}}.menu-item{position:relative;height:28px;padding:0 16px 0 28px;display:flex;align-items:center;cursor:pointer;.shape-kdd{margin-left:auto;color:",";}.shape-title{color:",";&.shortCutKeyLabel{margin-left:24px;}}&:hover{background:",";}.shortfont{margin-left:auto;kbd{display:inline-block;text-align:center;min-width:12px;color:",";&:first-child{margin-left:0;}&:last-child{margin-right:0;}}}}.menu-divider{height:1px;margin:3px 0;background-color:",";}.menu-item{border-radius:4px;background:",";color:",";}"],e=>e.theme.color_bg_white,e=>e.theme.color_text_L1,e=>e.theme.shadow_m,e=>e.theme.color_bg_border_01,e=>e.theme.color_text_L1,e=>e.theme.color_text_L3,e=>e.theme.color_text_L1,e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_text_L2,e=>e.theme.color_bg_border_01,e=>e.theme.color_bg_white,e=>e.theme.color_text_L1),yq=(0,M.DU)([".toolbar_annotate_tips_menu{> div{padding:8px;width:125px;background:#1684fc;border-radius:2px;}}"]);class xq extends l.PureComponent{constructor(t){super(t),(0,B.A)(this,"handleOpenerQuickCreateWidget",()=>{const{currentQuickName:n}=this.state,{onQuickCreateWidget:a}=this.props;a(n)}),(0,B.A)(this,"handleQuickCreateWidget",n=>{const{onQuickCreateWidget:a}=this.props;this.setState({currentQuickName:n}),a(n)}),(0,B.A)(this,"handleCreateShapeMenuRef",n=>this.$shapeMenuRef=n),(0,B.A)(this,"handleDown",n=>{const{onCreateWidget:a}=this.props,{currentQuickName:i}=this.state;let c=document.getElementById("mb-toolbar").getBoundingClientRect();n.target.closest(".menu-item")&&this.$shapeMenuRef&&(c=this.$shapeMenuRef.getBoundingClientRect()),a(n,i,c)}),(0,B.A)(this,"handleCreateWidgetDoubleClick",()=>{const{currentQuickName:n}=this.state,{onCreateWidgetDoubleClick:a}=this.props;a&&a(n)}),(0,B.A)(this,"handleChangeStyle",n=>{this.setState({isActive:n})}),this.state={currentQuickName:$.x.WSticky,isActive:!1}}componentDidUpdate(t){this.props.quickCreateWidgetName&&t.quickCreateWidgetName!==this.props.quickCreateWidgetName?A3[this.props.quickCreateWidgetName]&&(this.setState({currentQuickName:this.props.quickCreateWidgetName}),this.props.dispatch({type:"entry:ST:STMode:enable"})):!$.Q.ST_MODE_WIDGET_NAMES.includes(this.props.quickCreateWidgetName)&&this.props.dispatch({type:"entry:ST:STMode:disable"})}render(){const{widget:t,quickCreateWidgetName:n,isEmptyScreen:a}=this.props,{currentQuickName:i,isActive:c}=this.state,{shapeList:d}=t,p="toolbar/"+(A3[n]||A3[i]),h=p.replace("/","-"),m=A3[n]&&n||c;return(0,o.jsxs)("div",{className:C()("shape-list-box",{active:m,disabled:a}),onClick:this.handleOpenerQuickCreateWidget,onDoubleClick:this.handleCreateWidgetDoubleClick,children:[(0,o.jsx)(Ti.A,{content:(0,D1.Qc)(i),direction:"down",distance:8,children:(0,o.jsx)("div",{className:"shapeContainer",onMouseDown:this.handleDown,children:(0,o.jsx)(xt.C,{size:32,className:C()("toolbar-shape",h),name:p})})}),(0,o.jsx)(Cu.A,{menuPosTop:48,offsetX:8,onClick:this.handleChangeStyle,className:"shape-list-dropdown",renderOpener:(0,o.jsx)(Ti.A,{content:I18N.Note.note_option,direction:"down",distance:8,children:(0,o.jsx)("div",{className:"shape-opener",children:(0,o.jsx)(xt.C,{className:"toolbar-dropDown",name:"toolbar/triangle-down"})})}),renderMenu:(0,o.jsx)(vq,{quickCreateWidgetName:i,shapeList:d,onQuickCreateWidget:this.handleQuickCreateWidget,onCreateShapeMenuRef:this.handleCreateShapeMenuRef})})]})}}class vq extends l.PureComponent{constructor(){super(...arguments),(0,B.A)(this,"handleCreateRef",t=>{const{onCreateShapeMenuRef:n}=this.props;n(t)})}render(){const{shapeList:t,quickCreateWidgetName:n,onQuickCreateWidget:a}=this.props;return(0,o.jsx)(gq,{ref:this.handleCreateRef,children:t.map(i=>(0,o.jsx)(bq,{shape:i,quickCreateWidgetName:n,onQuickCreateWidget:a},i.name))})}}class bq extends l.PureComponent{constructor(){super(...arguments),(0,B.A)(this,"handleQuickCreateWidget",()=>{const{shape:t,onQuickCreateWidget:n}=this.props;n(t.name)})}render(){const{shape:t,quickCreateWidgetName:n}=this.props,a=t.name===n,i=mq();return(0,o.jsxs)("li",{className:"menu-item",onClick:this.handleQuickCreateWidget,children:[a&&(0,o.jsx)(xt.C,{className:"toolbar-check_mark",name:"common/checked"}),(0,o.jsx)(xt.C,{className:"shape-icon toolbar-"+t.svg_icon,name:"toolbar/"+t.svg_icon+"/min",size:20}),(0,o.jsx)("span",{className:"shape-title",children:i[t.name]}),(0,o.jsx)("span",{className:"shape-kdd",children:fq[t.name]}),(0,o.jsx)(yq,{})]})}}const wq=M.Ay.div.withConfig({displayName:"styles__StyledAIDropDown",componentId:"sc-u591je-0"})(["position:relative;.ai-chat-guide{position:absolute;top:calc(100% + 22px);left:50%;transform:translateX(-50%) scale(1.2);&.show-rule{top:",";}.center-container{height:28px;padding:0 30px;white-space:nowrap;border-radius:14px;display:flex;align-items:center;justify-content:center;background:",";color:",";font-size:12px;.shiny-text{position:relative;font-size:12px;font-weight:500;margin:0 4px;background:",";overflow:hidden;background-clip:text;-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-size:200% auto;color:",';animation:shimmer 5s linear infinite;cursor:pointer;}.shiny-text::after{content:"";position:absolute;top:-20%;left:-30%;width:60%;height:160%;opacity:0.4;background:linear-gradient(45deg,rgba(255,255,255,0) 0%,'," 50%,rgba(255,255,255,0) 100%);transform:rotate(45deg);animation:shine 1.2s ease-in-out infinite;};@keyframes shimmer{0%{background-position:-100% 0}100%{background-position:100% 0}}@keyframes shine{0%{left:-30%;}70%{left:90%;}100%{left:130%;}}}.ai-chat-guide-arrow{transform:translate(-50%,-100%);width:12px;position:absolute;top:1px;left:50%;path{fill:",";}}.ai-chat-guide-2{position:absolute;left:-30px;top:19px;width:61px;}.ai-chat-guide-1{left:-16px;width:36px;height:36px;position:absolute;top:50%;transform:translateY(-50%) rotate(-22deg);}.ai-chat-guide-3{position:absolute;width:36px;right:33px;top:-10px;transform:rotate(-5deg);}.ai-chat-guide-close{position:absolute;width:16px;top:50%;right:8px;transform:translateY(-50%);cursor:pointer;&:hover{path{fill:",";}}path{fill:",";}}}"],"calc(100% + "+(x7+22)+"px)",e=>e.theme.color_bg_menu,e=>e.theme.color_text_L1,e=>e.theme.ai_chat_guide_shine_linear_gradient_color,e=>e.theme.ai_chat_guide_shine_text_color,e=>e.theme.color_bg_menu,e=>e.theme.color_bg_menu,e=>e.theme.color_text_L1,e=>e.theme.color_text_L3),Cq=(0,M.Ay)(Oe.Ay).withConfig({displayName:"styles__StyledAIMenu",componentId:"sc-u591je-1"})(["",";ul{background-position:0 0;background-size:200px 41px;background-repeat:no-repeat;.ai-menu-divider{border-top:1px solid ",";}}ul:has(.other-ai-section){background-image:",";}.ai-agent-item.MenuItem{background:",";border-radius:8px;padding:2px;overflow:hidden;cursor:pointer;height:36px;.agent-icon{width:47px;height:16px;margin-left:6px;}.ai-agent-inner{display:flex;align-items:center;background:",";height:32px;border-radius:7px;}&:hover .ai-agent-inner{background:",";}}.mdai-section{display:flex;padding:10px 8px 0px 8px;width:180px;height:276px;flex-direction:column;align-items:flex-start;align-self:stretch;border-radius:8px;outline:1px solid ",";cursor:pointer;position:relative;overflow:hidden;.pseudo-menu-item{width:100%;height:100%;opacity:0;position:absolute;}&:hover{background:linear-gradient(157deg,#FAFAFF 48.94%,#E2D9FF 96.95%);&.dark{background:linear-gradient(157deg,#292933 48.94%,#58468C 96.95%);}.ani-stuff{.ani-icon-group{opacity:1;}.page,.code{transform:scale(1.05);}.code{rotate:10deg;}}}.title{display:flex;align-items:center;font-size:13px;font-weight:600;svg{&.logo{margin-right:4px;width:24px;height:24px;}&.aihtml-new-tag{margin-left:8px;width:48px;height:18px;}}}.desc{margin-top:16px;font-size:12px;line-height:16px;display:flex;gap:8px;flex-direction:column;color:",";p.try-now{.text{color:transparent;background:linear-gradient(66deg,#183DFF -1.25%,#9E61FF 97.64%);background-clip:text;}display:flex;svg{margin-left:2px;display:flex;width:16px;height:16px;}}}.ani-stuff{overflow:hidden;position:absolute;pointer-events:none;height:100%;width:100%;.ani-icon-group{position:absolute;bottom:94px;width:156px;height:55px;opacity:0;transition:all .2s ease-in-out;z-index:3;}.page{position:absolute;left:4px;bottom:-10px;width:142px;height:100px;z-index:2;transition:all .2s ease-in-out;}.code{position:absolute;left:16px;bottom:2px;width:142px;height:100px;rotate:5deg;z-index:1;transition:all .2s ease-in-out;}}}.other-ai-section{width:180px;}.ai-menu-header{height:36px;display:flex;align-items:center;margin-left:10px;span{color:",";font-size:14px;font-weight:500;strong{font-weight:600;}}}.MenuItem{height:32px;margin:4px 0;.ai-menu-item-icon{width:24px;height:24px;margin-right:8px;}a{height:32px;}}.MenuItem{a{padding-left:6px;}}.SubMenu li.MenuItem.hasIcon a{padding-left:6px;}.older-version{padding:0 6px;line-height:18px;border-radius:4px;background:",";color:",';font-family:"PingFang SC";font-size:11px;font-weight:500;margin-left:8px;}.ai-menu-chat{position:relative;.ai-chat-new-tag{position:absolute;right:13px;top:calc(50% - 11px);width:50px;height:18px;pointer-events:none;}}'],za.ZJ,e=>e.theme.color_bg_border_01,e=>e.theme.ai_menu_bg,e=>e.theme.ai_agent_bg,e=>e.theme.color_bg_white,e=>e.theme.ai_agent_bg_hov,e=>e.theme.color_bg_border_01,e=>e.theme.color_text_L2,e=>e.theme.color_text_L1,e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_text_L2),Sq=e=>{const{dispatch:t}=e,n=(0,r.d4)(te.qT),a=(0,r.d4)(te.O4),[i,c]=(0,l.useState)(!1),d=(0,l.useRef)(null),[p,h]=(0,l.useState)(!1),[m,x]=(0,l.useState)(0),v=()=>{var xe;return x((((xe=d.current)==null||(xe=xe.$element)==null?void 0:xe.getBoundingClientRect().left)||112)-112)},A=sd.SR.Chat||"Chat";(0,l.useEffect)(()=>(window.addEventListener("resize",v),()=>{window.removeEventListener("resize",v)}),[]),(0,l.useEffect)(()=>{const xe=MB.commonGuideHelper.checkGuideHasShown(Va.c.GUIDE_2506_AIHTML);c(!xe)},[]);const k=()=>{i&&(c(!1),MB.commonGuideHelper.markGuideAsRead(Va.c.GUIDE_2506_AIHTML))},R=xe=>{xe&&v(),h(xe),k()},F=()=>{t(Le.GO.updateAIHTMLAgentType("prototyping")),t(Le.GO.enableAIHTML()),t(Le.GO.expandAIHTML()),MB.commonGuideHelper.hideAllGuides(),c(!1),MB.commonGuideHelper.markGuideAsRead(Va.c.GUIDE_2506_AIHTML)},Z=xe=>{t({type:i2.X.AIComponentCreateMode}),xl.U4.AIOpenSourceTrack(xe==null?void 0:xe.type)},G=xe=>{t({type:i2.X.AIToggleOpenSemantic}),xl.U4.AIOpenSourceTrack(xe==null?void 0:xe.type)},ee=xe=>{t({type:i2.X.AIToggleOpenChatPanel}),k(),xl.U4.AIOpenSourceTrack(xe==null?void 0:xe.type)},ce=xe=>{t({type:i2.X.AIOpenModal,payload:xe}),xl.U4.AIOpenSourceTrack(xe==null?void 0:xe.type)},se=xe=>{let Fe=ce;switch(xe.type){case sd.SR.Component:Fe=Z;break;case sd.SR.Semantic:Fe=G;break;case A:Fe=ee;break;default:Fe=ce;break}xe.source="\u9876\u90E8 ToolBar menu",Fe(xe)},he=xe=>{const Fe=(0,sd.Rj)()[xe];let et=Fe.componentTitle||Fe.title;return xe===sd.SR.PageV9&&(et=(0,o.jsxs)(o.Fragment,{children:[et,(0,o.jsx)("i",{className:"older-version",children:I18N.Common.olderVersion})]})),(0,o.jsx)(Oe.Dr,{icon:ve(xe),text:et,onClick:()=>se(Fe),disabled:!1},"AI-toolbar-menu-"+xe)},ve=xe=>(0,o.jsx)(xt.C,{name:"chatGPT/toolbar/"+xe,className:"ai-menu-item-icon",isColorPure:!0}),Te=xe=>{if(ENV.IS_ON_PREMISES){var Fe,et;(Fe=d.current)==null||(et=Fe.handleToggleMenuShow)==null||et.call(Fe,xe);return}t(Le.GO.updateAIHTMLAgentType("prototyping")),t(Le.GO.enableAIHTML()),t(Le.GO.expandAIHTML()),t(Le.GO.updateAIHTMLSource("designTopBar")),MB.commonGuideHelper.hideAllGuides(),xl.U4.AIOpenSourceTrack(sd.SR.AIHTML)};return(0,o.jsxs)(wq,{className:C()("shape-list-box",Va.c.GUIDE_NOVICE_V9_2408_STEP_3),onClick:Te,children:[(0,o.jsxs)(Ti.A,{content:i?"":(0,D1.Qc)("AI"),direction:"down",distance:8,children:[(0,o.jsx)("div",{className:"shapeContainer",children:(0,o.jsx)(xt.C,{className:"toolbar-shape pure-svg-icon",name:"toolbar/ai",style:{transform:"scale(1.0625)"}})}),i&&(0,o.jsxs)("div",{className:C()("ai-chat-guide",{"show-rule":n}),onClick:xe=>xe.stopPropagation(),children:[(0,o.jsxs)("div",{className:"center-container",children:[I18N.ChatGPT.ai_chat_try,(0,o.jsx)("span",{className:"shiny-text",onClick:F,children:I18N.CommonGuides.new_aihtml})]}),["ai-chat-guide-2","ai-chat-guide-1","ai-chat-guide-3"].map(xe=>(0,o.jsx)(xt.C,{name:"chatGPT/"+xe+(a==="dark"?"-dark":""),className:xe,isColorPure:!0},xe)),(0,o.jsx)(xt.C,{className:"ai-chat-guide-arrow",name:"chatGPT/ai-chat-guide-arrow"}),(0,o.jsx)(xt.C,{name:"chatGPT/ai-chat-guide-close",className:"ai-chat-guide-close",onClick:k,isColorPure:!0})]})]}),(0,o.jsx)(Cu.A,{ref:d,menuPosTop:48,onClick:R,isCloseMenuItem:!1,className:"shape-list-dropdown",renderOpener:(0,o.jsx)("div",{className:"shape-opener",children:(0,o.jsx)(xt.C,{className:"toolbar-dropDown",name:"toolbar/triangle-down",onDoubleClick:xe=>xe.stopPropagation()})}),renderMenu:(0,o.jsx)(Cq,{position:{left:m,top:46},children:(0,o.jsxs)("div",{className:"other-ai-section",children:[(0,o.jsx)("div",{className:"ai-menu-header",children:(0,o.jsxs)("span",{children:[(0,o.jsx)("strong",{children:I18N.ChatGPT.ai_chat_mockitt}),"AI"]})}),!ENV.IS_ON_PREMISES&&(0,o.jsx)("div",{className:"ai-agent-item MenuItem",onClick:Te,children:(0,o.jsxs)("div",{className:"ai-agent-inner",children:[(0,o.jsx)(xt.C,{name:"toolbar/ai",className:"pure-svg-icon",size:32}),I18N.ChatGPT.ai_prototype_component_title,(0,o.jsx)(xt.C,{name:"toolbar/ai/agent",className:"pure-svg-icon agent-icon"})]})}),!ENV.IS_ON_PREMISES&&he(sd.SR.Component),he(sd.SR.AutoFill),(0,o.jsxs)(Oe.Dr,{icon:ve("other"),text:I18N.BasicWidgetsNav.AI.gen_other,disabled:!1,subMenuTopOffset:-3,isAiry:!0,children:[[sd.SR.Flow,sd.SR.Mind,sd.SR.Table,sd.SR.Chart].map(xe=>he(xe)),!ENV.IS_ON_PREMISES&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("div",{className:"ai-menu-chat",children:(0,o.jsx)(Oe.Dr,{icon:ve(A),text:"DeepSeek-R1",onClick:()=>se({type:A}),disabled:!1})}),(0,o.jsx)(Oe.Dr,{icon:ve(sd.SR.Semantic),text:I18N.BasicWidgetsNav.AI.semantic,onClick:()=>se({type:sd.SR.Semantic}),disabled:!1})]}),he(sd.SR.PageV9)]})]})})})]})},Aq=(0,l.memo)(Sq),kq=e=>{var t;const{onlyView:n,isDirectlyEditingProjectMain:a,isEmptyScreen:i,quickCreateWidgetName:c,screenMeta:d,rootProject:p,showDragMode:h,isAdsorbentReferenceLine:m,isShowExitCombo:x,isInElbowMode:v,isCommunityPreview:A,isEmbedV2Preview:k,isHtmlZipPreview:R,fullScreenMode:F,handMode:Z,isInCommentMode:G,isDisabledComment:ee,isShowAIMenu:ce,dispatch:se}=e,he=(Ke,Qe)=>{const nt=(0,fp.gu)({type:Ke,screen:d,attrs:{width:0,height:0,...Qe}}),Xe=(0,$a.F6)(nt);if(c&&Xe===c){se({type:"set:quick-create-widget",payload:{widget:null}}),se({type:"entry:pencil:vector:exit:edit",payload:{isSelectLastCreate:!0}});return}se({type:"set:quick-create-widget",payload:{widget:nt,quickCreateWidgetFrom:Vm.Hq.ToolBar}}),Xe===$.x.WElbow?se({type:"elbow:update",payload:{isDraggingElbow:!0}}):Xe===$.x.WVector?(se({type:"update:screenContainer:state",payload:{addVectorSource:s7.dZ.Toolbar}}),MB.commonGuideHelper.checkGuideToBeShown(Va.c.GUIDE_VECTOR_TASK_ENDING_EDITING)&&(MB.commonGuideHelper.markGuideAsRead(Va.c.GUIDE_VECTOR_TASK_ENDING_EDITING),MB.commonGuideHelper.closeGuide(Va.c.GUIDE_VECTOR_TASK_ENDING_EDITING)),MB.commonGuideHelper.tryToShowGuide(Va.c.GUIDE_VECTOR_TASK_QUICK_CREATE)):Xe===$a.pv.PENCIL&&se({type:"entry:pencil:vector:enter:edit",payload:{source:xl.U4.addShapeToCanvasTrackSourceMap.topToolbar}}),se(Le.GO.toggleHandMode(!1)),se({type:"elbow:clear"}),se({type:"entry:comment:disabled",payload:{noWigglingCommentCid:!0}}),se({type:"entry:aiComponent:exit:mode:for-toolbar"}),se({type:"versions:update",payload:{isVersionManagementPaneShow:!1}}),$.Q.ST_MODE_WIDGET_NAMES.includes(Xe)?(se({type:"entry:ST:STMode:enable"}),se({type:"toolbar:update:state",payload:{isShowSticky:!0}})):se({type:"entry:ST:STMode:disable"}),Xe!==$a.pv.PENCIL&&se({type:"entry:pencil:vector:exit:edit"})},ve=(Ke,Qe,nt,Xe)=>{se(Le.GO.toggleHandMode(!1)),se({type:"entry:comment:disabled",payload:{noWigglingCommentCid:!0}}),se({type:"entry:aiComponent:exit:mode:for-toolbar"});const lt=(0,fp.gu)({type:Qe,screen:d,attrs:Xe}),Ct=nt||document.getElementById("mb-toolbar").getBoundingClientRect();(0,$a.dD)({e:Ke,items:[lt],width:lt.width||lt.w,height:lt.height||lt.h,doNotCreateRect:Ct,callback:()=>{(lt==null?void 0:lt.type)===$.x.Canvas?(0,xi.Se)({page:lt}):((0,Vm.Yp)({source:""+Vm.ol.ToolBar+Vm.k8.Drag,widgetName:(0,Vm.KR)(Qe)}),lt.type===$.x.WElbow&&(0,Ot.Zf)(lt.elbow.elbowType))},isToolbarCreate:!0,rootProject:p,showDragMode:h,isAdsorbentReferenceLine:m})},Te=()=>{se({type:"entry:elbow:isInElbowMode:toggle"}),se({type:"entry:comment:disabled",payload:{noWigglingCommentCid:!0}}),se({type:"entry:aiComponent:exit:mode:for-toolbar"}),se({type:"set:quick-create-widget",payload:{widget:null,quickCreateWidgetFrom:Vm.Hq.ToolBar}}),se(Le.GO.toggleInspectMode(!1)),se(Le.GO.toggleHandMode(!1)),se({type:"entry:pencil:vector:exit:edit"})},xe=()=>{se({type:"entry:toolbar:toggle:handTool"}),se({type:"entry:aiComponent:exit:mode:for-toolbar"}),se({type:"entry:observe:dom:size:update-viewport-rect"}),(0,Ad.A)({operation_type:Ad.D.HandTool})},Fe=()=>{se({type:"entry:comment:toggle"}),se({type:"entry:aiComponent:exit:mode:for-toolbar"}),se(Le.GO.toggleInspectMode(!1)),se(Le.GO.toggleHandMode(!1)),se(Le.GO.select([])),se({type:"elbow:update",payload:{isInElbowMode:!1}}),se({type:"entry:ST:STMode:disable"}),se({type:"entry:observe:dom:size:update-viewport-rect"}),se({type:"versions:update",payload:{isVersionManagementPaneShow:!1}}),(0,Ad.A)({operation_type:Ad.D.Comment})},et=(0,l.useMemo)(()=>!(n||!ce||ENV.IS_ON_PREMISES&&!ENV.OP2_V8AI2511),[n,ce]);return(0,o.jsxs)(o.Fragment,{children:[!n&&(0,o.jsx)(qJ,{isDisabled:!a||i,quickCreateWidgetName:c,onQuickCreateWidget:he,onCreateWidget:ve}),!n&&(0,o.jsxs)(o.Fragment,{children:[nq().map((Ke,Qe)=>{if(Ke.name==="graphics")return(0,o.jsx)(cq,{widget:Ke,quickCreateWidgetName:c,onQuickCreateWidget:he,onCreateWidget:ve,isEmptyScreen:i},Qe);if(Ke.name==="divider")return(0,o.jsx)(uq,{},"divider-"+Qe);{if(x&&Ke.name===$.x.Canvas)return null;const nt=Ke.name===$.x.WElbow?Te:he,Xe=Ke.name===$.x.WElbow?v:Ke.name===c;return(0,o.jsx)(N1.A,{disabled:i,active:Xe,onClick:nt,name:Ke.name,toolTipName:(0,D1.Qc)(Ke.name),svgIconName:"toolbar/"+Ke.svg_icon,toolTipDistance:8,onMouseDown:ve,size:32,className:Ke.name===$.x.WElbow?Va.c.GUIDE_OLD_ADD_LINE_FEATURE:""},Ke.name)}}),!(A||k||R&&F)&&(0,o.jsx)(N1.A,{onClick:xe,name:I18N.pPreviewToolbar.comment,className:"handMode",toolTipName:(0,D1.Qc)("handMode"),svgIconName:"toolbar/handTool",toolTipDistance:8,active:Z,disabled:i}),!n&&!x&&((t=MB)==null||(t=t.user)==null?void 0:t.id)&&(0,o.jsx)("div",{className:"prd-box",children:(0,o.jsx)(N1.A,{className:C()(Va.c.GUIDE_OLD_USE_COMMENT,"toolbar-comment"),onClick:Fe,name:I18N.pPreviewToolbar.comment,toolTipName:(0,D1.Qc)("comment"),svgIconName:"design/preview/comment",toolTipDistance:8,size:32,active:G,disabled:ee})}),(0,o.jsx)("div",{className:C()("widget-box",Va.c.GUIDE_OLD_UPGRADE_ANNOTATE),children:(0,o.jsx)(xq,{widget:tq,quickCreateWidgetName:c,onQuickCreateWidget:he,onCreateWidget:ve,dispatch:se,isEmptyScreen:i})})]}),k&&!F&&(0,o.jsx)("div",{className:"prd-box",children:(0,o.jsx)(JS,{isEmbedV2Preview:k})}),et&&(0,o.jsx)(Aq,{dispatch:se})]})};class Mq extends l.PureComponent{constructor(){super(...arguments),(0,B.A)(this,"handleUpdatePreviewViewMode",t=>{this.props.dispatch({type:"entry:handle-tool:preview:view_mode",payload:{previewViewMode:t}})})}render(){const{isSaving:t,canModify:n,canDistribute:a,canGroup:i,canUngroup:c,canLock:d,canMove:p,rootProjectName:h,rootProject:m,isLocked:x,isRenderProjectTips:v,isRenderScreenGlueTips:A,isRenderExperienceTips:k,onlyView:R,isCommunityPreview:F,isEmbedV2Preview:Z,editingComboName:G,isShowExitCombo:ee,isEditingUserCombo:ce,projectMeta:se,screenMeta:he,dispatch:ve,importAbarOptions:Te,isFullScreenMode:xe,layoutV9:Fe,isDirectlyEditingProjectMain:et,isEmptyScreen:Ke,quickCreateWidgetName:Qe,showDragMode:nt,isAdsorbentReferenceLine:Xe,isInElbowMode:lt,isHtmlZipPreview:Ct,fullScreenMode:St,handMode:hn,isInCommentMode:Cn,isDisabledComment:Mt,isShowAIMenu:Et,previewViewMode:Co}=this.props,{fromAbarIsPreview:Pn}=Te||{},ro=v||A||k;return(0,o.jsxs)("div",{className:C()("toolbar-center"),children:[ro&&!(R||F||Z||Pn)?(0,o.jsx)(kq,{onlyView:R,isDirectlyEditingProjectMain:et,isEmptyScreen:Ke,quickCreateWidgetName:Qe,screenMeta:he,rootProject:m,showDragMode:nt,isAdsorbentReferenceLine:Xe,isShowExitCombo:ee,isInElbowMode:lt,isCommunityPreview:F,isEmbedV2Preview:Z,isHtmlZipPreview:Ct,fullScreenMode:St,handMode:hn,isInCommentMode:Cn,isDisabledComment:Mt,isShowAIMenu:Et,layoutV9:Fe,dispatch:ve}):null,R&&(!F||xe)&&(0,o.jsx)(YJ.D,{size:Z&&!xe?"small":"normal",isShowInspect:!Z&&!F,mode:Co,onSwitch:this.handleUpdatePreviewViewMode})]})}}var Eq=s(74945);const Iq=(0,I.Mz)([q.lY,zn.X.query.getIsShallowEditing,Me.r,T.Er,me.W4,me.z$,me.wA,me.YT,tt.p$,T.BM,q.T7,te.MZ,Lf.C,me.wq,te.PI,te.k3,Eq.Q1,q.Ro,N.sI,me.HW,q.MM],(e,t,n,a,i,c,d,p,h,m,x,v,A,k,R,F,Z,G,ee,ce,se)=>{let{isEmptyScreen:he}=A,ve=!1,Te=!1,xe=!1,Fe=!1,et=!1,Ke=!1,Qe=!1;if(h.length>0){var nt;ve=h.length>0&&!e&&!t,Te=!!((nt=sdkStore.getHotItem(h[0]))!=null&&nt.hotAttr.isLock),xe=(0,bt.GS)(h)&&!e&&!t,Fe=(0,bt.sQ)(h)&&!t,et=(0,bt.oR)(h)&&!t,Ke=(0,bt.kE)(h)&&!t,Qe=(0,bt.P6)(h)&&!t}const{isDesign:Xe,isExperience:lt,isLoggedExperience:Ct}=i,{isEditingProjectMain:St,isEditingCombo:hn,isEditingUserCombo:Cn,isEditingOrgCombo:Mt,isEditingBasket:Et,isDirectlyEditingBasket:Co,isEditingMuban:Pn}=n,ro=!hn&&Xe,Io=!hn&&(lt||Ct)&&h.length===0,mo=hn&&Xe,So=Cn?I18N.SettingPanel.my_widgets:Mt?I18N.SettingPanel.team_widgets:"",ho=St,No=(0,$a.F6)(k),Xo=!hn&&!Et&&!Pn&&!!(ce!=null&&ce.id);return{canModify:xe,canMove:Fe,canDistribute:et,canGroup:Ke,canUngroup:Qe,canLock:ve,isLocked:Te,canOpenFlow:ho,isSaving:a,isRenderProjectTips:ro,isRenderExperienceTips:Io,isRenderScreenGlueTips:mo,isEditingUserCombo:Cn,sharingInReadOnly:c,editingComboName:So,currentOrg:d,projectMeta:p,isFullScreenMode:x,toolbarRefresh:m,layoutV9:v,isDirectlyEditingProjectMain:St,isEmptyScreen:he,quickCreateWidgetName:No,showDragMode:R,isAdsorbentReferenceLine:F,isInElbowMode:Z,handMode:G,isInCommentMode:ee,isShowAIMenu:Xo,previewViewMode:se}}),_q=(0,r.Ng)(e=>Iq(e))(Mq);var Tq=s(82066),Pq=s(29342);const qS=e=>{const{isDisabledSharing:t,onShare:n,isNotLogined:a}=e,i=(0,Bf.OB)(),c=(0,l.useContext)($5.G),d=(0,l.useContext)($5.n),[p,h]=(0,l.useState)((0,Pq.N)()),[m,x]=(0,l.useState)(!1),v=()=>{p&&(MB.commonGuideHelper.closeGuide(Va.c.GUIDE_2309_CLICK_SHARE),x(p),setTimeout(()=>{h(!1),x(!1)},6e3)),n()};return(0,l.useEffect)(()=>{if(i)(0,Dg.c)(I18N)[Va.c.GUIDE_2407_PREVIEW].howToShow({isInDesign:i});else{if(c==="device")return;d&&(0,Dg.c)(I18N)[Va.c.GUIDE_2309_CLICK_SHARE].howToShow({isInDesign:i})}},[c,i,d]),c==="device"?null:(0,o.jsx)("div",{id:"sharing-box",className:C()(Va.c.GUIDE_NOVICE_2309_STEP_5,Va.c.GUIDE_2309_CLICK_SHARE),children:(0,o.jsxs)("div",{className:C()("share-box",{disabled:t,isNotLogined:a,"show-animation":p}),onClick:v,children:[(0,o.jsx)("span",{children:I18N.ToolBar.share}),p&&(0,o.jsx)("div",{className:C()("animation-list",{"is-hidding":p&&m}),children:Array(12).fill(0).map((A,k)=>(0,o.jsx)("div",{className:"circle circle-"+(k+1)},k))})]})})};var $S=s(88656);const Lq=M.Ay.div.withConfig({displayName:"styles__StyledDropdown",componentId:"sc-sp1p33-0"})(["position:relative;&.dark{> .content{background-color:#333;}}&.center{&.visible > .content{transform:translateX(-50%) scale(1);}> .content{left:50%;transform:translateX(-50%) scale(.9);}}&.visible > .content{opacity:1;transform:scale(1);visibility:visible;}&.transparent > .content{background-color:transparent;}> .content{border:1px solid ",";position:absolute;top:100%;background-color:",";border-radius:8px;opacity:0;transform:scale(.9);transform-origin:50% 0;transition:visibility .2s,transform .2s,opacity .2s;visibility:hidden;z-index:1000;}.trigger-container{margin:3px;height:30px;font-size:12px;border-radius:2px;display:flex;flex-direction:row;justify-content:space-between;align-items:center;cursor:pointer;&:hover{background-color:#666666;}.icon{flex:1;display:flex;flex-direction:row;justify-content:center;align-items:center;color:#ffffff;position:relative;.svg-icon{margin:0;cursor:pointer;}}.trigger{margin:0 5px;display:flex;flex-direction:row;justify-content:center;align-items:center;transform-origin:center center;transform:scale(0.8);}}.content-container{font-size:12px;position:absolute;top:0;left:0;transform:translate(-50%,0);.menu-root{width:fit-content;height:fit-content;overflow:hidden;border-radius:4px;background-color:#333333;display:flex;flex-direction:column;justify-content:center;align-items:center;.line-anchor-option-list{width:100%;height:100%;position:relative;display:flex;flex-direction:column;justify-content:flex-start;align-items:center;padding:6px 0;.option-item{width:56px;display:flex;justify-content:center;align-items:center;cursor:pointer;&:hover{background-color:rgb(102,102,102);}.item-bg{width:100%;height:24px;position:relative;background-color:transparent;display:flex;justify-content:center;align-items:center;box-sizing:content-box;&.active{background-color:#666666;}}}}.line-style-option-list{width:100%;height:100%;position:relative;display:flex;flex-direction:row;justify-content:flex-start;align-items:center;.option-item{display:flex;justify-content:center;align-items:center;cursor:pointer;margin:6px;border-radius:2px;overflow:hidden;&:hover{background-color:#666666;}.item-bg{position:relative;background-color:transparent;display:flex;justify-content:center;align-items:center;box-sizing:content-box;.svg{width:24px;height:24px;display:flex;justify-content:center;align-items:center;}&.active{background-color:#666666;}}}.menu-separator{width:1px;height:40px;padding:0;margin:0 4px;background-color:#000;.separator-line{width:1px;height:100%;border-left:1px solid rgba(0,0,0,0.1);}}}}}"],e=>e.theme.color_bg_border_01,e=>e.theme.color_bg_white),Nq=l.memo(l.forwardRef((e,t)=>{const{position:n,top:a,right:i,bottom:c,left:d,dark:p,center:h,className:m,trigger:x,onBeforeShow:v,onShow:A,onClose:k,onBeforeClose:R,closeOnContentClick:F,onClickOutside:Z}=e,[G,ee]=(0,l.useState)(!1),[ce,se]=(0,l.useState)(!1),he=(0,l.useRef)(),ve=(0,l.useRef)(),Te=(0,l.useMemo)(()=>({position:n,top:a,right:i,bottom:c,left:d}),[n,a,i,d,c]),xe=(0,l.useCallback)(async Fe=>{if(he.current===Fe.target||he.current.contains(Fe.target)){if(!G&&v&&!v())return;ee(et=>!et)}else ve.current===Fe.target||ve.current.contains(Fe.target)?F&&ee(!1):R?R(Fe)!==!1&&ee(!1):Z&&Z(Fe)!==!1&&ee(!1)},[G,v,R,F,Z]);return(0,l.useImperativeHandle)(t,()=>({setDropdownVisible:ee,show:()=>ee(!0),close:()=>ee(!1)})),(0,l.useEffect)(()=>(document.addEventListener("click",xe),()=>{document.removeEventListener("click",xe)}),[xe]),(0,l.useEffect)(()=>{A&&G&&A()},[G,A]),(0,l.useEffect)(()=>{ce&&k&&!G&&k()},[G,ce,k]),(0,l.useEffect)(()=>{se(!0)},[]),(0,o.jsxs)(Lq,{className:C()(m,{dark:p,center:h,visible:G}),children:[(0,o.jsx)("a",{ref:he,className:"trigger",id:"drop-trigger",children:x}),(0,o.jsx)("div",{ref:ve,className:"content",style:Te,children:e.children})]})})),jq=(0,M.DU)([".fake-avatar,.image-avatar{display:block;width:24px;height:24px;border-radius:50%;color:#fff;font-size:14px;text-align:center;line-height:24px;display:flex;align-items:center;justify-content:center;}.dropdown-collaborators{width:180px;max-height:300px;overflow:auto;padding:8px;.dropdown-collaborator{display:flex;align-items:center;height:28px;margin-bottom:8px;&:last-child{margin-bottom:0;}.name{margin-left:8px;flex:1;color:",";font-size:12px;",";}}}"],e=>e.theme.color_text_L1,za.L9),Dq=M.Ay.div.withConfig({displayName:"styles__StyledCollaboratorsWrapper",componentId:"sc-zgsb2u-0"})(["display:flex;align-items:center;justify-content:flex-end;&.collaborators{height:32px;border-radius:4px;}&.list-padded-right{padding-right:12px;}&.show-avatar{padding-right:0;.avatar-divider{height:16px;width:1px;margin:0 10px 0 8px;border-radius:100px;background:",";}}#drop-trigger{height:28px;width:28px;display:flex;justify-content:center;align-items:center;padding:2px;border-radius:50%;background:",";margin-left:-4px;}.dropdown-caret{height:24px;width:24px;display:flex;justify-content:center;align-items:center;border-radius:50%;background:",";font-size:13px;color:",";}.visitor-avatar,.dropdown-caret{&:hover{background-color:",";}}.collaborator{position:relative;height:28px;width:28px;display:flex;justify-content:center;align-items:center;padding:2px;border-radius:50%;background:",";}.avatar-container{display:flex;align-items:center;&:not(:first-child){margin-left:-4px;}}"],e=>e.theme.color_bg_border_01,e=>e.theme.color_bg_white,e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_text_L1,e=>e.theme.color_background_icon_hover_active,e=>e.theme.color_bg_white),Rq=(0,o.jsx)(xt.C,{name:"toolbar/visitor",size:24,style:{borderRadius:"50%"}}),Bq=(0,o.jsx)(xt.C,{name:"toolbar/dropdown",size:16}),Uq=e=>(0,o.jsxs)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center"},children:[(0,o.jsx)("div",{style:{paddingBottom:3},children:"+"}),(0,o.jsx)("div",{style:{paddingBottom:1},children:e})]}),eA=["#266FFF","#e031c5","#fe9f0a","#ff5d60","#32c67d","#4e90f3","#139b83","#F9c74e","#7c55ec","#fe5B0a"];class tA extends l.PureComponent{constructor(){super(...arguments),(0,B.A)(this,"state",{ssList:[]}),(0,B.A)(this,"getAvatar",(t,n,a,i)=>{var c;if(!t)return(0,o.jsx)("div",{className:"visitor-avatar",children:Rq});if(n&&!n.includes("/images/avatar.png"))return(0,o.jsx)("img",{className:C()("image-avatar",{isDropdown:i}),src:n,alt:t});const d=eA[a%eA.length];return(0,o.jsx)("div",{className:C()("fake-avatar",{isDropdown:i}),style:{backgroundColor:""+d},children:(c=t.slice(0,1))==null?void 0:c.toUpperCase()})}),(0,B.A)(this,"onClickOutside",()=>{var t;this.dropDownRef&&this.dropDownRef.current&&((t=this.dropDownRef.current)==null||t.close())})}componentDidMount(){this.token=setInterval(()=>{if(typeof rootSdk>"u")return;const t=rootSdk.cssCur.getRoomStat().filter(n=>{let[a,i]=n;return a&&i});this.setState({ssList:t})},2*1e3)}componentWillUnmount(){clearTimeout(this.token)}render(){const{ssList:t}=this.state,{showAvatarMenu:n}=this.props;if(t.length===0)return null;const a=t.find(x=>{let[v]=x;return v===rootSdk.flatSocket.getSocketId()})||["specialUser","?",""],i=t.filter(x=>{let[v]=x;return v!==a[0]}),c=2,d=i.slice(0,c),p=i.slice(c),h=n&&i.length>0,m=!n||h;return(0,o.jsxs)(Dq,{className:C()("collaborators",{"show-avatar":h,"list-padded-right":m}),children:[!n&&(0,o.jsx)("div",{className:"avatar-container",children:(0,o.jsx)(gc.A,{content:""+a[1]+I18N.ToolBar.CollaboratorsYou,direction:"down",distance2:2,children:(0,o.jsx)("div",{className:"collaborator",children:this.getAvatar(a[1],a[2],0,!1)})})}),d.map((x,v)=>{let[A,k,R]=x;return(0,o.jsx)("div",{className:"avatar-container",children:(0,o.jsx)(gc.A,{content:k,direction:"bottom",distance2:2,children:(0,o.jsx)("div",{className:"collaborator",children:this.getAvatar(k,R,v+1,!1)},v)},v)},A)}),p.length>0&&(0,o.jsx)(Nq,{top:38,right:0,ref:this.dropDownRef,onClickOutside:this.onClickOutside,trigger:(0,o.jsx)("div",{className:"dropdown-caret",children:p.length>10?Bq:Uq(p.length)}),children:(0,o.jsx)("div",{className:"dropdown-collaborators",children:p.map((x,v)=>{let[A,k,R]=x;return(0,o.jsxs)("div",{className:"dropdown-collaborator",children:[this.getAvatar(k,R,v,!0),(0,o.jsx)("span",{className:"name",children:k})]},A)})})}),h&&(0,o.jsx)("div",{className:"avatar-divider"}),(0,o.jsx)(jq,{})]})}}var Oq=s(36689);const Fq=M.Ay.div.withConfig({displayName:"styles__StyledToolBarRight4ReadOnly",componentId:"sc-1i332un-0"})(['width:510px;.login{margin-right:6px;&:lang(en){width:80px;}}.signup{margin-right:6px;width:96px;background:linear-gradient(230.47deg,#FFA41C -0.87%,#FE4141 25.89%,#F4153E 77.87%,#FF27C3 97.94%),#E73828;&:hover:not([class*="is-disabled"]){color:#d9d9d9;background:linear-gradient(230.47deg,#FFA41C -0.87%,#FE4141 25.89%,#F4153E 77.87%,#FF27C3 97.94%),#E73828;}&:active:not([class*="is-disabled"]){color:#d9d9d9;background:linear-gradient(230.47deg,#FFA41C -0.87%,#FE4141 25.89%,#F4153E 77.87%,#FF27C3 97.94%),#E73828;}&:lang(en){width:120px;}}&.toolbar-right .toolbar-icon-item.full-screen-button{width:32px;height:32px;&.small{width:24px;height:24px;}}.to-share{width:32px;height:32px;cursor:pointer;font-size:12px;.svg-icon{width:32px;height:32px;}}a{cursor:pointer;}.preview-box.toolbar-icon-item.isEmbed{width:28px;height:24px;svg{width:24px;height:24px;}}.save-tips-dropdown.isEmbedV2Preview.NotFullScreen{.fixed-layout-position{width:28px;height:24px;svg{width:24px;height:24px;}}}.icon-box{margin-right:8px;.svg-icon{color:',";[fill]{fill:currentColor;stroke:none;}[stroke]{stroke:currentColor;fill:none;}}}"],e=>e.theme.color_text_L1),Vq=(0,l.memo)(e=>{var t;let{isShowSharing:n,isCommunityPreview:a,isEmbedV2Preview:i,isHtmlZipPreview:c,fullScreenMode:d,handleZoomIn:p,handleZoomOut:h,handleZoomInitialScale:m,handleZoomSelection:x,handleZoomSpecifiedScale:v,handleShare:A,handleToggleCommentMode:k,scale:R,isDisabledSharing:F,dispatch:Z,isFromAbar:G,className:ee,currentSharingInReadOnly:ce,commentMode:se}=e;const he=!((t=MB)!=null&&(t=t.user)!=null&&t.id),ve=n&&!(a||i||c)&&!((0,j1.M2)()||G);return(0,o.jsxs)(Fq,{className:C()("toolbar-right",{isEmbed:i},ee),children:[a||i||c?null:he?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(ll.tA,{className:"login",onClick:()=>{MB.global.popupHelper.loginAsync({onConfirm:()=>{setTimeout(()=>location.reload(),50),(0,rl.JW)("/dashboard/me","_blank","noreferrer")},type:"signin",source:"proto-preview"}),(0,Ad.A)({operation_type:Ad.D.Login}),ENV.IS_MO&&(0,ed.lW)("Device-Top-Signin")},children:I18N.pPreviewToolbar.login}),(0,o.jsx)(ll.jn,{className:"signup",onClick:()=>{MB.global.popupHelper.loginAsync({onConfirm:()=>{setTimeout(()=>location.reload(),50),(0,rl.JW)("/dashboard/me","_blank","noreferrer")},type:"signup",source:"proto-preview"}),(0,Ad.A)({operation_type:Ad.D.FreeToUse}),ENV.IS_MO&&(0,ed.lW)("Device-Top-Start for Free")},children:I18N.pPreviewToolbar.signup})]}):(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(N1.A,{size:32,svgIconName:"design/preview/comment",disabled:(ce==null?void 0:ce.comment_permission)==="off",className:"icon-box",toolTipName:(0,D1.Qc)("comment"),direction:"up",active:se,onClick:k}),(0,o.jsx)(tA,{})]}),ve&&!he&&(0,o.jsx)(qS,{isDisabledSharing:F,onShare:A,isNotLogined:he}),(0,o.jsx)($S.X,{}),(0,o.jsx)(Oq.A,{scale:R,fullScreenMode:d,isShowZoomSelection:!1,isEmbedV2Preview:i,onZoomIn:p,onZoomOut:h,onZoomInitialScale:m,onZoomSpecifiedScale:v,onZoomSelection:x,dispatch:Z})]})}),zq=M.Ay.div.withConfig({displayName:"style__StyledBuyMe",componentId:"sc-xiyek6-0"})(["position:relative;margin-right:10px;display:flex;.activity-btn{height:28px;position:relative;.swipper-item{display:flex;justify-content:flex-start;align-items:center;margin-left:8px;}.activity-bg{width:104px;height:28px;cursor:pointer;}.activity-swipper{width:104px;height:28px;cursor:pointer;position:absolute;left:0;top:0;}.a618-icon{width:72px;}.activity-btn-close{width:20px;height:20px;border-radius:50%;cursor:pointer;position:absolute;right:2px;top:4px;color:rgba(246,154,24,1);&:hover{background:rgba(246,154,24,0.14);color:#CD7711;}}}.buyme-btn{border-radius:44px;height:28px;font-size:14px;display:flex;font-weight:500;justify-content:center;align-items:center;cursor:pointer;&.activity{padding:0 5px 0 9px;background:#FFECC6;.text{display:flex;justify-content:center;align-items:center;color:#865903;font-size:13px;font-weight:500;line-height:1;font-family:PingFang SC;span{font-size:9px;}}&.upgrade .text svg{margin-left:4px;}.buyme-close.activity{width:20px;height:20px;margin-left:2px;border-radius:50%;color:#F69A18;&:hover{color:#CD7711;background:#F69A1824;}}&.no-order{.text{align-items:flex-end;}}}&.free{width:87px;color:",";background:",";&.isHovered{background:",";}}&.trial{width:72px;color:",";background:",";&.isHovered{color:",";background:",";}}&.due{justify-content:flex-start;padding:4px 4px 4px 12px;color:",";background:",";.buyme-close{width:20px;height:20px;border-radius:10px;margin-left:2px;background:transparent;color:",";&:hover{background:",";color:",";}}}}.buyme-btn-activity{height:28px;padding:0 4px 0 8px;border-radius:44px;background:#FFDED6;display:flex;justify-content:center;align-items:center;gap:2px;font-size:13px;font-weight:500;color:#D92400;cursor:pointer;.buyme-close{width:20px;height:20px;border-radius:50%;color:#F0A799;&:hover{background:#F5C8BF;color:#D34444;}}}"],e=>e.theme.free_buyme_btn_color,e=>e.theme.free_buyme_btn_bg_color,e=>e.theme.free_buyme_btn_bg_color_hover,e=>e.theme.color_text_link_normal,e=>e.theme.trial_buyme_btn_bg_color,e=>e.theme.color_text_link_hover,e=>e.theme.trial_buyme_btn_bg_color_hover,e=>e.theme.color_text_error,e=>e.theme.color_error_bg,e=>e.theme.color_polyline_normal,e=>e.theme.color_error_bg,e=>e.theme.color_text_error),Wq=M.Ay.div.withConfig({displayName:"style__StyledVIPRightsModal",componentId:"sc-xiyek6-1"})(["position:absolute;z-index:10086;top:100%;width:352px;border-radius:10px;filter:drop-shadow(0px 9px 28px rgba(0,0,0,0.09)) drop-shadow(0px 6px 16px rgba(0,0,0,0.02)) drop-shadow(0px 3px 6px rgba(0,0,0,0.02));left:-131px;&.free{left:-131px;}&.trial{left:-139px;}&.due{left:-121px;}img{width:100%;height:100%;}.desc-grid{position:absolute;top:137px;display:flex;text-align:center;width:352px;justify-content:space-between;padding:0 20px;.desc-cell{width:72px;height:45px;}.desc1{color:#39250A;font-size:20px;font-weight:500;line-height:28px;height:28px;&.has-han{font-size:18px;font-weight:600;}}.desc2{color:#865903;font-size:12px;line-height:17px;height:17px;font-weight:400;}}.features{font-size:16px;font-weight:500;line-height:24px;position:absolute;top:33px;left:31px;color:rgba(51,51,51,1);}.more{position:absolute;top:33px;right:24px;display:flex;align-items:center;color:#865903;font-size:12px;line-height:24px;.svg-icon{color:#865903;}&:hover{color:#503510;.svg-icon{color:#503510;}}}.upgrade{position:absolute;top:206px;left:31px;width:290px;height:32px;border-radius:6px;background:linear-gradient(90deg,#DBBB82 20.83%,#986818 100%);display:flex;justify-content:center;align-items:center;color:#FFF;font-size:14px;cursor:pointer;&:hover{background:linear-gradient(90deg,#E0B05B 20.83%,#845403 100%);}img{width:144px;height:22px;position:absolute;margin-left:5px;left:-8px;top:-12px;}}"]),qle=M.Ay.div.withConfig({displayName:"style__StyledVIPRightsModalActivity",componentId:"sc-xiyek6-2"})(["width:266px;height:316px;padding:24px 18px;border-radius:16px;background:url('/mb-proto2/images/toolbar/buyme-btn-bg.png') center / 100% 100% no-repeat;position:absolute;top:100%;left:-152px;z-index:10086;display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start;font-family:'PingFang SC';color:#525e71;filter:drop-shadow(0px 9px 28px rgba(0,0,0,0.09)) drop-shadow(0px 6px 16px rgba(0,0,0,0.02)) drop-shadow(0px 3px 6px rgba(0,0,0,0.02));.left-time{font-size:14px;font-weight:500;line-height:20px;}.discount-title{margin-top:16px;font-size:14px;font-weight:500;line-height:20px;}.discount-container{width:230px;height:136px;padding:12px 8px;margin-top:16px;border-radius:12px;background:linear-gradient(0deg,#FFFFFF,#FFFFFF),linear-gradient(0deg,#FFDB95,#FFDB95);display:flex;flex-direction:column;justify-content:center;align-items:flex-start;span{font-size:14px;line-height:28px;}}.payment-btn{width:216px;height:36px;margin-top:24px;border-radius:22px;background:linear-gradient(91.21deg,#73C7FF -7.44%,#4D54FF 49.38%,#FF83F9 100%);align-self:center;display:flex;justify-content:center;align-items:center;color:#fff;font-size:13px;font-weight:500;cursor:pointer;}"]),Of=e=>{const n=+new Date(new Date(e).setDate(new Date(e).getDate()-1)),a=+new Date;return n<=a},zm=function(e,t){t===void 0&&(t=0);const n=Of(e),a=Math.floor((+new Date(new Date(e).setDate(new Date(e).getDate()-1))-+new Date)/(1e3*60*60*24)),i=a>=0&&a<=30,c=a<0&&a>=-30,d=t>0&&n;return{isBillingExpired:n,isPaidBillingExpired:d,isDue:i,leftDays:a,isJustExpired:c,isPaidJustExpired:d&&c}},$le=e=>{if(!e)throw new Error("user is required");const{paid:t,edition:n,trial:a,value:i=0,period:c,next_billing_on:d,nextBillingOn:p,current_plan:h,currentPlan:m}=e,x=d||p||"",v=h||m,A=Of(x),k=zm(x,i),R=v==="free",F=A&&(t||i>0),Z=!R&&A,G=!A&&a,ee=!A&&(t||v==="solo"&&!a),ce=ee&&["premium_lifetime","standard_lifetime"].includes(n),se=ee&&!ce,he=ce?n||"standard_lifetime":"solo",ve=G?"trial":ee?he:"free";return{userPlan:ve,userPlanType:G?"trial":ee&&t?"paid":"free",userPlanPeriod:G?"trial":ce?he:ee&&t?c==="monthly"||c==="threeMonth"?"monthly":"yearly":"free",isBillingExpired:A,isExpired:Z,isDefaultFree:R,isFree:ve==="free",isPaidExpiredFree:F,isTrial:G,isPaid:ee,isSolo:se,isLifeTime:ce,...k}},Hq=function(e,t){if(t===void 0&&(t=null),!e)throw new Error("org is required");const{paid:n=!1,plan:a,trial:i=!1,next_billing_on:c,nextBillingOn:d,value_in_cents:p,valueInCents:h,seats_taken:m,seatsTaken:x,lifetime_seats_taken:v,lifetimeSeatsTaken:A,lifetime_bindings:k,lifetimeBindings:R}=e,F=c||d||"",Z=p||h||0,G=m||x||0,ee=v||A||0,se=!!t&&!!(k||R||[]).find(Et=>Number(Et)===Number(t)),he=ee>=1&&ee===G,ve=!(se||he)&&Of(F),Te=se||he?new Date(new Date(F).setFullYear(new Date(F).getFullYear()+100)).toLocaleString():F,xe=zm(Te,Z),Fe=!i&&a==="org_free",et=Fe&&!n,Ke=Fe&&n,Qe=!Fe&&ve,nt=!ve&&i,Xe=!ve&&n&&Z>0,lt=Xe&&a==="org_lite",Ct=Xe&&a==="org_full";let St="expire";return Qe&&(a?Z>0?St="paid_expire":St="trial_expire":St="default_expire"),{orgPlan:Qe?"org_expire":nt?"org_trial":Xe?a:"org_free",orgPlanType:Qe?"expired":nt?"trial":Xe?"paid":"free",displayPlan:Qe?St==="default_expire"?"org_full":a:nt?"org_full":Xe?a:"org_free",isBillingExpired:ve,isExpired:Qe,isExpiredOrg:Qe,isDefaultExpiredOrg:St==="default_expire",isPaidExpiredOrg:St==="paid_expire",isTrialExpiredOrg:St==="trial_expire",isFree:Fe,isFreeOrg:Fe,isDefaultFreeOrg:et,isPaidExpiredFreeOrg:Ke,isTrial:nt,isTrialOrg:nt,isPaid:Xe,isLiteOrg:lt,isFullOrg:Ct,isLifetimeMember:se,isLifetimeOrg:he,...xe}},ece=function(e,t){t===void 0&&(t=null);const{next_billing_on:n,nextBillingOn:a,value_in_cents:i,value_in_cents:c,seats_taken:d,seatsTaken:p,lifetime_seats_taken:h,lifetimeSeatsTaken:m,lifetime_bindings:x,lifetimeBindings:v,paid:A=!1}=e||{},k=n||a||"",R=i||c||0,F=d||p,Z=h||m,ee=!!t&&!!(x||v||[]).find(ve=>Number(ve)===Number(t)),ce=Z>=1&&Z===F;return!(!(ee||ce)&&Of(k))&&A&&R>0},tce=e=>{const{next_billing_on:t,nextBillingOn:n,current_plan:a,currentPlan:i,trial:c,paid:d}=e,p=t||n||"",h=a||i;return!Of(p)&&(d||h==="solo"&&!c)};var Gq=s(15628);const Zq="enterprise",Kq="personal",k3="buy-me-btn-close-day-org",M3="buy-me-btn-close-day-user",Yq=[30,15,7,3],Xq=[7,3],Gy=Ft()("2025-10-12 18:00:00").startOf("hour"),Zy=Ft()("2025-12-31 23:59:59").startOf("hour"),Ky=(e,t)=>{const n=Ft()().startOf("hour"),a=e.isSameOrBefore(n,"hour"),i=t.isSameOrBefore(n,"hour");return a&&!i};var u0=function(e){return e.Free="free",e.Trial="trial",e.Due="due",e}(u0||{});const Qq=e=>/[\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u3005\u3007\u3021-\u3029\u3038-\u303B\u3400-\u4DBF\u4E00-\u9FFF\uF900-\uFA6D\uFA70-\uFAD9\u{16FE2}\u{16FE3}\u{16FF0}\u{16FF1}\u{20000}-\u{2A6DF}\u{2A700}-\u{2B739}\u{2B740}-\u{2B81D}\u{2B820}-\u{2CEA1}\u{2CEB0}-\u{2EBE0}\u{2EBF0}-\u{2EE5D}\u{2F800}-\u{2FA1D}\u{30000}-\u{3134A}\u{31350}-\u{323AF}]/u.test(e),Jq=(e,t,n)=>e?t?[{desc1:n.FreeUpgrade.infinite,desc2:n.FreeUpgrade.file_num},{desc1:n.FreeUpgrade.infinite,desc2:n.FreeUpgrade.widget_num},{desc1:n.FreeUpgrade.infinite,desc2:n.FreeUpgrade.canvas_num},{desc1:ENV.IS_MO?"500+":"10000+",desc2:n.FreeUpgrade.resource_num}]:[{desc1:"100",desc2:n.FreeUpgrade.file_num},{desc1:n.FreeUpgrade.infinite,desc2:n.FreeUpgrade.widget_num},{desc1:"3000",desc2:n.FreeUpgrade.canvas_num},{desc1:ENV.IS_MO?"500+":"10000+",desc2:n.FreeUpgrade.resource_num}]:[{desc1:"100",desc2:n.FreeUpgrade.file_num},{desc1:n.FreeUpgrade.infinite,desc2:n.FreeUpgrade.widget_num},{desc1:"500",desc2:n.FreeUpgrade.canvas_num},{desc1:ENV.IS_MO?"500+":"10000+",desc2:n.FreeUpgrade.resource_num}],qq=(e,t,n)=>{let a=!1,i="",c=0,d=!1;if(!n)return{planType:i,leftDays:c,isOrgFull:a,showBtn:d};if(e){const{value:Z=0,pt_next_billing_on:G,nextBillingOn:ee}=t,ce=G||ee||"",{leftDays:se}=zm(ce,Z),{plan:he,status:ve}=(0,tr.rM)(t),Te=se>=0&&se<=30,xe=(0,Pt.Yt)(k3,-1,Pt.qW.Number);switch(he){case rs.Sj.OrgExpired:case rs.Sj.OrgFree:i=u0.Free,d=!0;break;case"org_lite":case"org_full":if(d=!1,a=he===rs.Sj.OrgFull,!Te)break;if(i=u0.Due,c=se,xe===-1){d=!0;break}if(xe<se){d=!0,(0,Pt.a0)(k3,-1,Pt.qW.Number);break}if(xe===se){d=!1;break}Yq.some(Fe=>xe>Fe&&Fe>=se)&&(d=!0,(0,Pt.a0)(k3,-1,Pt.qW.Number));break;default:d=!1}return ve===rs._E.Trial&&(i=u0.Trial,d=!0),{planType:i,leftDays:c,isOrgFull:a,showBtn:d}}const p=is.tz.InitialUser(n),{plan:h,status:m}=p.planSdk.prototypePlan,x=m===rs.pZ.Trial,{next_billing_on:v,pt_next_billing_on:A}=n,{leftDays:k}=zm(A||v,0),R=k>=0&&k<=7,F=(0,Pt.Yt)(M3,-1,Pt.qW.Number);if(x)i=u0.Trial,d=!0;else switch(h){case rs.L1.Free:{i=u0.Free,d=!0;break}case rs.L1.Solo:{if(d=!1,n.sub_plan!==""||!R)break;if(i=u0.Due,c=k,F===-1){d=!0;break}if(F<k){d=!0,(0,Pt.a0)(M3,-1,Pt.qW.Number);break}if(F===k){d=!1;break}Xq.some(Z=>F>Z&&Z>=k)&&(d=!0,(0,Pt.a0)(M3,-1,Pt.qW.Number));break}default:d=!1;break}return{planType:i,leftDays:c,isOrgFull:a,showBtn:d}},nce="buy-me-btn-last-close-left-day-org-activity",oce="buy-me-btn-last-close-left-day-user-activity",ace="buy-me-btn-last-close-left-day-org-activity2",rce="buy-me-btn-last-close-left-day-user-activity2",$q=e=>{const t=is.tz.InitialUser(e),{plan:n,status:a}=t.planSdk.prototypePlan,{plan:i,status:c}=t.planSdk.bomxPlan,d=[rs.L1.PremiumLifetime,rs.L1.Lifetime].includes(n)&&a!==rs.pZ.Trial,p=[rs.L1.PremiumLifetime,rs.L1.Lifetime].includes(i)&&c!==rs.pZ.Trial,h=e.aippt_plan_state===9;return{isProtoLifeTime:d,isBomxLifeTime:p,isAIPPTLifeTime:h}},e$=(e,t,n)=>{if(!n||!Ky(Gy,Zy))return{isDue:!1,isPaidProto:!1,lfTotalSeats:0,minRealSeats:0};if(e){const{value:x=0,pt_next_billing_on:v,nextBillingOn:A}=t,k=v||A||"",{leftDays:R}=zm(k,x),F=R>=0&&R<=90,{minRealSeats:Z=0,ptLfTotalSeats:G=0,bxLfTotalSeats:ee=0}=(0,Gq.TF)(t);return{isPaidProto:(0,is.EQ)(t).proto.isPaid,lfTotalSeats:G+ee,minRealSeats:Z,isDue:F}}if(n.sub_plan!=="")return{isDue:!1,isPaidProto:!1,lfTotalSeats:0,minRealSeats:0};const a=is.tz.InitialUser(n),{status:i}=a.planSdk.prototypePlan,{next_billing_on:c,pt_next_billing_on:d}=n,{leftDays:p}=zm(d||c,0),h=p>=0&&p<=90,m=i===rs.pZ.Paid;return{isDue:h,isPaidProto:m,lfTotalSeats:0,minRealSeats:0}},t$=(e,t,n)=>{if(!e&&n){const a=is.tz.InitialUser(n),i=a.planSdk.prototypePlan.getUserPlan(),c=a.planSdk.bomxPlan.getUserPlan(),d=[rs.L1.PremiumLifetime,rs.L1.Lifetime].includes(i),p=[rs.L1.PremiumLifetime,rs.L1.Lifetime].includes(c);return d&&p?[{id:1,content:(0,o.jsx)(xt.C,{name:"toolbar/618/tehui",className:"pure-svg-icon a618-icon"})},{id:2,content:(0,o.jsx)(xt.C,{name:"toolbar/618/ptMt",className:"pure-svg-icon a618-icon"})}]:d?[{id:1,content:(0,o.jsx)(xt.C,{name:"toolbar/618/399",className:"pure-svg-icon a618-icon"})},{id:2,content:(0,o.jsx)(xt.C,{name:"toolbar/618/bxlf",className:"pure-svg-icon a618-icon"})}]:p?[{id:1,content:(0,o.jsx)(xt.C,{name:"toolbar/618/399",className:"pure-svg-icon a618-icon"})},{id:2,content:(0,o.jsx)(xt.C,{name:"toolbar/618/ptlf",className:"pure-svg-icon a618-icon"})}]:Ky(Gy,Zy)?[{id:1,content:(0,o.jsx)(xt.C,{name:"toolbar/618/last-week-tehui",className:"pure-svg-icon a618-icon"})},{id:2,content:(0,o.jsx)(xt.C,{name:"toolbar/618/last-day",className:"pure-svg-icon a618-icon"})}]:[{id:1,content:(0,o.jsx)(xt.C,{name:"toolbar/618/last-week-tehui",className:"pure-svg-icon a618-icon"})},{id:2,content:(0,o.jsx)(xt.C,{name:"toolbar/618/last-week",className:"pure-svg-icon a618-icon"})}]}return[{id:1,content:(0,o.jsx)(xt.C,{name:"toolbar/618/tehui",className:"pure-svg-icon a618-icon"})},{id:2,content:(0,o.jsx)(xt.C,{name:"toolbar/618/ptMt",className:"pure-svg-icon a618-icon"})}]},n$="\n data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAsAAAAIOCAMAAACBE0sZAAADAFBMVEUAAADhuHDjxpLn2r/k0qzlzJ7+/v3l0Kbs48rl0arm2Lvftm3//v3gtm7//v3+/v3mzJ7+/vzftm38/Pr///7//fb8+vbn2r/byJ/+/vz18OTm2b3o3MLp3cT9/Prax5328ebr4Mn07eDcyqH69/Daxpvu5dH07+L38ujZxZn59e3q38j6+PL7+fPw6Nfdy6Ps4s3x6trt48749Ovx6djv5tPz7N738+r9+/jt5NDy69vy7N359u7s4cvq3sbv59TYw5bm2LvdzKXfzqji07Lk1rfZxJjg0Kz///7h0a7fz6rj1LTezKbi0rDl17jj1bbXwpPo28Hl17rw59XawpHaxJbWwZLaw5TZwI3avIPZwpPetm/bvIDaxZjbunvZwY/Vv4/avofYwI/av4nftW3bu33dt3Law5PcuHbUvYzKfhzcxpncxZbcx5vawY7av4vcuHjbvobdyJ3cxJPdx5nduHXcwo7TvInetnHbwIveyqDdyZ/gzKTkzKDcv4jgzKLhzqbfyJvfyZ3i0Krey6LdwYvdxpbcvYPfwYngy6Di0a3gxZLevYDgyp7duXj/9uXevH3ev4bfxpXgz6nfx5jgw4zSuobhyZvdw5HevoPjzqTix5XcwpHewo7exJPcvoXiz6fgxI//9+ngv4PUkTbdunvl1LDgu3nqwmvhyJjgwIbky53hvn/Xlz3l1bP/8Nbl1rbixI7l0qzl0KjhvHzfuXTfunfZm0PNhCL/9OHjr13hqlfjwonSjS+ncSnPiCnfp1L/6MDdo03boEj57+HqvW//+Ozsw3b/5LbkyZjnt2jls2PkxpHguHH/68jlvGf/7s/tx33iwYXhtmzJmkywfTbes2DTp1farVz03K7Dk0b57tq3hDm9jECqdS3505D1zoj0yn/HpGyueTD04cH72J/sz6P79urgtmrqyYnRtYX36dDOoFHv1qvtzJT/+/LYnlLCmFn93ai2iEj14Lmzg0D15MrPsYHbsW3HoGLiunTy1Z+7kFLRrGzMq3jn17iz/AoyAAAAFXRSTlMAX19gYCaCikK539vfj8+fb7+/sK8K/rr4AACZOUlEQVR42uzbz0obQRwH8DW6JLEI3jwo+Cw5FxfsNdd9BE/FIZqANCm5NQTiJRCI4Irkj8nJFxD0kn2JfQTJJf3+ZmeyO7upLaW0Hfl9fr+d2c2EwMKXgTnEYYwxxt6jUrFYchizVFFA0WHMSsgvJ5hZa18o+w5j1nGFVncdxizjHou1Y4cxy5TFWiDKDmNWKQqFD3LMQvsio+AwZg23LmJ8kGMWSg5wfJBjFiqLrEAEfJBjligirxIf5JiFdoTCBzlmoeQAxwc5ZqFjsVnAB7m/wnW37FcooP+NciCoNivv/Fnb6P9F4Q07cvgN2yBnUiq5Pwvv3ocojKLIj0Jc1GEY+pHvhxBR05JP3wip5ToeaMAiPfr0TCPIFZ/Kl7+GrwFG+kzzX/KWs9lyOcOAaTlHLefz+c38JuXh5kG5ozIMBncDWCwGCxq1R1y3mEyd8QbPadeJJ/QGQdAN0kQ6wT0UTWnT3jSr0Zg2JhnDydBwnzYarUZkRbO38rzVyqt4lZRDcgAY4JTq9JRuDo7oRl+yNLmOSy9holl+FtMfy9+IR3Tt6uzqDL6dXRKMdWi36yjS/Nys1dBwfn5xfkH6pKG0Gq1Wa4Lr5GR4ol72I15T8kaeVNl94x8Ce69+WohG6dtQ3eAuWTLpRS1/p38vLnS1+pIziy1RMsAkG2B4WLvLQ4TJgvJrZhiM/HYex51xp5ML8Pj56zNauTZS/JTT7ZoRzm7CvbiUKVUfZZqgJ5NMjI0AyyExIirIHkGCVxWM2qF0oCG36yjHN/pZptV0lHxPJh6TjjY9J0vEu7wiFOFLXBRgJFhrN9tNqRbrIcMywn10v9FXCdYQYIQY0q/pwSf5ZrvbziZbr0nQwiSOPxAZXzaS+stC+fPVF9qDq2aCE3MtHV1jBwZjDx6gqUBtwbjgViUY+f2yjm8c4A4yjDbzS/GVwzUKETY8JQJUFxNluJvPsCm1CaOn2ICmhmyEh7kM36ONAJtbFNA+/J1Zs+mpq4rCcB0Yv+LEqWP/hwqkIUhvJBhJGODAwIALA7AJoTVQQCNfDYi2gaqBNC2hGoMfMOofcNCJ/gnjn9BnrbUXa69zctH4Efvstdc5lwuaG56+XfvoSBicHH4738QtLToXf5m/0XGXtWgb3Y8NAhiKwslhFCaEwUPYCYOBDGY9LAprBtsH7ajCONxL4VeygHGbkzN/JRv+lyz2GKf0+gSDdUPbYA3hZgBnfdsG4652V5hCXzVXPH786PHPGExFCmMw1QjhI0KYVRKYSlxkr1lsd5cZrAlMdwjgA/Q9aI8S37epDKYSoTDbIIR/J6xc41ffEIX/O169ibrdksDT6i/6Givi8LYInEL4JgofuMAQQwQ8ZIqAh6pwCDygn29E/3S+8Gxj+H2pt2+/+jUreLmvOcipXt8xDq0ZImewGXycyfpSTljsRAKzqcdNsDf0TSG8ubl5jx4RHPpqC+6y6FALzE6EwhHDh1RWmFliNevbO4bh1B12k0HG4RH3V7dKjMZ0bWCNe3/LXlqj6xXsXeDKi/Rz3L/xwcfz3W5J4AB5TWGbgm2OWLoweJkihm2QONyLDAZCGH3xtx9IYWIYgcEMviYh/Gz2t6eC/5xfLr8f9wimnLM6gs+dhsBUMrhFCCzt0SNV2LO4ZPDnlsChcAKJv9MQpt0TjzNm8Ak7UvhrDM4kf9VhqgaBK4MPJYS/p9rT8HDOYXaS2Pk95gnCSsfGEYtht9NEBHp5HXZLKa6yawt+qSeTYfSFCOHPYoxQfykk9iEiFGaMcIHTUc7gQ4rECDwkfHvakQS2UXhkJBuMvz0HiBh1/7a30HOmtgS2WljAXXbDYB8hqKbC2V926xTnJzm5PjJQ+TH2QtGXYgIWsr3fHcnlCH1NYFbm5N5PJ0Bjk76SwCgsC2iucItmBh9C0ngVfqgNHnaHk8VpkqDSROyM4C8OozAUWYu/YWLqFCssDufzndwsz4MmcHFY9Z22sxysUMbi9qJPEWtligiHK4WN4Y1hVRiD+0VgQlgTmIJsMP7+HyAvG0xi/F2QbfbGowh6FcG0IGUwq/ksLSHjA5TLJ49tfS4KB9+lID6imCKOGCVshthkJ8xeYpjG/V0z+PLj3EErhDEYfdmsLHHt8AYWP4xZIlvMaWfoNCwuA6PnsKRWfjLhAv4t4ueu3ZoviMFdlVgepTlmsGWwsOiT8JqFMLjBe4ere66wYXOwGSyDxGmHGB64NlA+1Ivu78s9DSNG/2uQWP1FYIlg3WcJ89djONmbMrhtcOaRRzAOI7ArrA67vew8SRwdYfFmgRmCmbjFiYC+pd+FojDVM4azw4clhdVjuvmrCrNaTyYaQewGxyyRDnY6OI5QLjA7rnTBrmyDO2/xpt9Y49LfnZ8yf1G3zBG02t8ZmyFgkQzmcfAiFZMwBvsYsUoKm8MbtcIyCQ/hMHRQeIAPhcLyJ/K5MkC8/z8y7hDAlCRw6xAXZId/bFDLmzOYIYJe1HU+EcpTCApyEHsEAzms3NPNqmCMQOHABTZ5pW+z14vC65XBDYVlG2UUhlUnYpgFbYExuGxTuFNpbKAwk0RRuMWrcSPbMcPtrsXy/BdTCGx0HVPYQeE5DJ5Th0lgHSTM4LUyRqCxKAx7e8lg0Dl42MYIO8wxCxPDwsjzNkCMm0qmE6308oolDfx74hu8Sdd7pfwM2NWqtPyvYAcLhSdwicCJH3fc460sMfK2eJSR/FVqibHWDI4Ehs1NqjySIIcTJ+xscA0Ob9/d3v6ahcYInI5zSweJ2mF29YDUxwkO6OwNNg7zvNQ97leJiSpQm9VhqkPj983oSCeD62Gi3MRwMZLfgPw6v+rMfTE1P0VVAtsg/EGVwdTcnPg7t01bxGGN4CUDg81fHyQweK+eIiyF+8EU7nQGZJHD8IIGcDhVJAsV3dE2+dvjVbT4p9Iz4XE7gKmzhbNMbS8tPQ7G3x3EpWOvGrwVI3BonEeIyOBQ+JPIYXU4C5y5J+X+2kowCFeovdv4u73+NQs+XF/6kCVIDtOcQ6qAwtlgwF6BLjwkn3RROixScmin2KdDqrEYjL3oq/gp3ort8JrtXSq+JNbW6FvD3dHR0S++mMdg85dSh604yFUhzCxhGbzIHIy/hLArbFwMwnuAxKFwgU9GmcSn/nEkgl8O/ahKRA/e5LCHZybevkx2VhD3OX9d4kTvCEZcaufHnW+4yY/Ttrbu36cSSWLG4ETMD4aoqw4bhHDgBgdZ4TqDQ2KZJzSDtYnEWd88TKCwkS1GX6pADit6Yi/PTfuxV2Gi6Mjc2GEPACKXifjPucaqaP/MIfpOTU0xQ4A7fKEw9k67voDAhDCTRHLYj3IkcJzlkBjSWW6wGAzq79CphjBIBCeVePEv8X5cen9P8lf2JDxZmDyTJXV2vccQ8aBsIvgYfQ2Rd2dHInjrPgvoIvF+zBCyXeAMGYzDFUefHyXaQexkh/UglxS22gb9jxvroA4TwOtLNFlUGiQ41rjAzUmC2pBx2DGJxWBzeEgsxl48tlNdR2pAfumcf+QYZKimlG9Wea03YN3frxjYHi1IAkMIzBQB3elud9pnCMETWAbhG4uLa6z19TV7oKa4w6sYDP5MOFLYBUZhkI9zjQcRz4w/HTBBKCruk8nJs+uG+HudF+fXz89v3759zqLUXtoDrj8eSwIbCLy1s7Ul6YvEsvB4f781B++WhsRUlcHsQAI4+Uul0xwrCUw5GNxkW8FfLEbgdVV4nRiWhb+qcsQwaUQpbYk3qFD4YZXDPjF+i8cY7GcfjWHgKZQ/iQoG8m3cZcLib+fd3ynFFa6nCMlgZ0YknpMUVta3UZgpIinsKSwfds9H4atlElaBGwpLCD/PBPE0sABusOMGW52jritMd4Ux2OSl46+UCRwDBHf71Qxxf3fX/c1BHBZneiewWfxpcjjTFljPc4DCIjH7YH0dcc1gWs3ygTuMvoc/pEGCqiaJDQ9h6/2GyiulAg+xB+wXbxLb9ZqUki50KuCb2DT68ujsqDOFwzFGdOffuRgkpm2SYGEw/loKU4KNETZHrDUymAimcFhDGIkHTWAfI0xi/SDPXXll/ClgQfaFv5K/k9cnw95zucVfBGYhr/oLxw92HpC/D0xfut7Y7GCNta/cZ6nA+6hb2ctK9srOcIxze2lNgfH3kkmYqg2mHP8/DIlhfocBCqu5BzfpBXfYVhB/x/qhLjx2hWUZHWmnpvFAlhiys21E8/L+0Nro7OxsOFz0hZLA7/gogbzT6GvMzMxhMKzMkb83FjFYxog14ImaP06DvuW+PcNCmBQelBj2DAb+UJrBL/AQ7SlB7aVM4TO62MumicIWv9qPaXQEJoG57AQIvEUZNgibvTQ2xXWXEIZyyQLLyjTn4CwxCSwgsqyTTz89kZ0miawwuMI1YTCFxfwqEZkmKSwUiTMbsmuGTWFIv++EhrDUwN+ivzs2MTsxMep4Ar978TSNrUzzQC24NYPCc4RwyWAsVtaWRGKfhIvCe+KwzxEi8OAgWyI4p/CLV8afFkr+UgoR7BlsqLQ0dVeb+rvDIQ6DExzjXGH8RVzFrpLBGAwInI5zTvso9yWLcjA4WWz+Qrni72cnbOozM/jWXf76DIkjhVnZ4LCYkhhGY7YIHDRzuEmlMAXFYkqDWCeKMFhu6pcdaaXk3nWn0zZGJyZmVeAYI9IUIUMEJREMEsC2bzFHYHA5zt1AYEdDGIM9hfv6+vi8feawIBkM5U+nOOwfpf9Kj7/NaXaxl/E2FffV92iTr7TR5wt+m67xg2ylEriGCK6OcIroW2gZvBWgLA7vG9zs7jJH7GMv/sYckQ0GmiPmfoe/oa9WbTCThMcwXQ3GXRbdBgkMTtNwpDAVDlPBAb9SSWKVOM50q9Zb1DHsSaz+ahtqRrEMxSjZpPhLF+xLQ9w4a7MTs2MIPOYG5xA2hTH4HRwGj2AEnoFbFsJzN3QMLgpzkqsVXi4pDJbCYjCkwxwMoe9rd664itbaknoFrmyW3gW2zsXv7S4cTv+ePEBUVAc443YxmH1MP1Z92TthbzI4OUwVxF0uIjAG06WapziKFQaTwiTwhcKbsrPAoAarvfdkjMBcNPYxwnM4Bok0DVOYvGRU0wQKLx/w+6RJCovBMUpwVu+dw2FwiBzjsE/Df51i8HB3bAx5Z6UTwjXqLyX2dp1p+IDCXyCDOczpFFFC+EaEcH2Ue2sZYhK+ehWDyWA+lT4T7jeuvn7nzm9XLPvY4MnrqItsj9r8VS2XE+iGazvJHVq61nLhBdi9XiLC5a12+pZD3O3A5l+JYAeH2Q1/2ca+DBKavjr+isD3MdcFvuw5xEdiLyseCUcEZ4q8gL1skPCl3OOcwSTwCosqaABTtiqF9WBDFRCYjserIrFNiT4qUsogxQqJ+y213GG60+kNb9Z3uq9OzYq+NkNQKYFpEr/vdqdkCn6HpQq7wzAjBzkimARmza0sNgReW7tpEsfplU+Gv3uSwYNXBwGBbRJ+6z30/e3OlYVg0pteWQ5isXUl+IJKZ/ctJttfGZch138uvsXkpZw0PVgPhY9NXo/gNil+qQvKFLyb+KSp8Eds7GVFCGv+RgbLcr4Sf0lh09dhfAA6TZEE1h1E/rIdBGbnpxL6Ow2JgYsqHOwhsFjsDrePdFopiDsmsTUW5V+j2PENspc0eMfGOMSNUgg8ceGvdfxlMQWTwxgcCiOwG+yQwIs2RaxRShj81lvEsGfwKhLzMEIEdoXffO+3O0ACh1xU0lfLbyi/JNtZl0s7SaVXSEz51+XG3wgseMHHB09eGyCOc/yyKGerabAoTHd2qcCfR6QJAtIQTPxyjqPYTpGXBZ9aR2B/FsHG3iIxJQKfNOy9u6Lk41yO4AP2TToKewwnkzWGWRRb/XX01C4SB57D5rC0mo73TMcv/TNjQAIDT9EomDCBKUXsRV6fgOsMZoyYQWCZg3UKvrHCpiyFyxTsYwTuInCfIiHMZowwfSn0xV8KgSfB3eFKs85F7a3fYZVKX4V4w63Xu5DSQjz/m9K7gT0CzpTZwXnwBzNntxNZFURh32XihVe8ghkuiKRNvAAZid1OOkGZIDoR1NgQRhFEoxIDE8VEQS+88AV8Pr9aVXXq7HPGjtFoZu2q2ruB9if5slxnNw4ANwFCeyjjQyFs3SeYLv/1INw4cGVghQgXEPdi8FBX1EBgbOzKgpkAXB5cGJcAOBnWCAnhsGCbFSaEr3795fN8Xmdy8U/n7SnDfPgVVqVhBvwio1i9XPqRV995EACDsKeH99KC4Te1ZTF4UwFCHZ9meA7el+AXgH1xIYwBS2HBuhGW/3IVcS2AkUIEAuK1Fz+W93q/8Pbzpw8HBDfwKvyqQu7ApRZfsUuNAa4gUfcQBTCC4fPMD1ylmYLecRAWvi3DdRHByMuIz55+9tSu1ESyPtgoCwZaZhAcW4ewNDRgKhQEd79N6w/uxrGuUN2HA2L4LStOfDmFegdz6iT8jAc36a1Sl4DfogthYrCu0jJC5McZtCHs+cGTcD3G8bsRX1kMRvUoN9F1mj/ISQThlzw60NqfN4AH8O5ai9qW4MaAhwQPVOgWwv0IYZ38tkkiY7DxyzCC04NvbGQIJkjQisGNnl49LQEx9P4uem2c/nBqBgzCqHcZoS6AS3nD1Io4vPrLp6JXAwXEIhh4bZnaJKEWoYFpnDRzaNf64EHoPQy4A9iXtL2B+XqKwILFLzJ+K0TAcHhw6siECbsDpwm7B1MTRYiQ/fusCt9g97l04BG9GPAu64+i93EbIZ5xB0wvRbhz3iSYBEE1Ond84fZc3stCHIrhm5uvv6aMXUoAUw3BVOFrBb2UEQy2P6BTTxFgLIJphpEbBGtArwFMSWQJhzcRVpogSyS/eSmxVs8+sEyUKCNG0FkcS+7ElZKZGq9sJb9z+IXh95LgXgamYPjgnU1SMCGiHLi7Tdunkl+GXQZHBO7HYAgO+cfKKACevBThgUq90GTPv6vdv4PiPyV4t4+vAkTjwcDLKNUzXBG8hN8mAifBwvdkyC8RGMHvedCbKUI035gAWB78l0F44MBmwCURLIqdYWrZhYTxGz7M6BC+Bl/GKndOYOwQs1lqpJAFYYlD8VtmLBXF9SqpXs30wPIDDLvqKY6BxPABDDvANDrsLHg/HNga+bPc4Do4A5NSRABsCN977ftW4cD6r3Y3opGOVNpivep+Jo4aVPvDiXDu+RP1Lqr+VhypZHe3w5dCDb8tvqwmAFOtLn5kXVw4vXUPcUeXTmC4BVj0CmIAbhUmDL+IESlCtxFDfq9YZcHWHcWn7sbge0qSYMAura2huABWiWEaBccWFRnExRL4Xq/hxA6wTX0Yy+OcCY7LiKllOnqQAM8fzIEWjD0BUxp1EUGO2LQMQXqg04JDBIgMEe7AgwzRv0wzF55MrOMy4t7DMbxy4A8Henv0UrNOf6Xd4pylQ319+d+k/dau8xvpd3e39d8BwN+N3be9RBPCxrDLT318sd8T4B1nCBP4DgkONxa+Qa+PuEobIky1IkZQlYXhF8WWWYJeUO7BVKlihLbUqgF8bTbco9gQXhPDkSNoKWy4ANZArSfbi7VNwRsBwtLDHH7Z2s/hbJn4MA4Rgn1hwsUw0kUaIw0YgoNhZWBn+NiWNFmdYMKF71gATCAAMq14oYphXzEKfXFg0JSxxpH3MOxrDL2fKpJ386+f76Llrkw1r+s7/v5Wl49Tvz3+7XI2mxm4M9N3v82gd0eFNIcXELJfoRvx1+Yde59gJQgW2Db8il6qUSZhJQj69ua2k3Hc8ssa8ks5wfJfELaFkl8KZZZYPBk+0FUWptQp/ce2ACY2QrCJ2wh9GAvHhTDLP9eiHVaUUCNtqxvFL/gC8XxelxAMpYcKEJQcGG3RGYKTX1v+cVyXIaA4XRh8adf9lZXJMYsHuRcbfIcA7yKRaOjYqzqx006vTnJHf0nzDYpzfJHRf5ctoYn000x9g9Yplp8+DO5pvcHmpeNrdUlBMPRS1izCg23pvjvfCN+dAcCQSyXDGSFanRi9DcBOb2ZgRukmcvCNhYhbEDZqU/DLy6vbwhh+qS9ahgkS+nN0S9+6F4Pt+FeG04RpAewQl0gSpYiM7S8SIAiWHGK7Hk6SA2EHt+/LbIsgt1Jw4FsZQvDSoS1EjshbiEK4CJY6gikBfAS7FSLOnqwcK0KsvPQITpcBLHhQoiQVW1K8EniBPJXAO9h9uDn7Xu/1IUBD+SYpg692KQEWvD4yPcyqiRCy4B0mDEtv0hLIWkcETnzvxvwawY6wHc8NYCpNGIRZpo/CgD8ygH/+6MYIRsrA3legS9sqAfAQYdQ+z6UH9x2YDhOuzzaKYfLwkOBrzxIgjHo+jAk7x4ALwgZw4kvD8EDB8St7Ru2jHr9z5YeNOd5LdQBT29sb+UEG+RcFwVMliKnwjce4PceXCbyVIqRg+Al9H4DPXraLh49ZEvsQ4OIuiSrEHFcx5cgWcELNoU508zux5dcZxWi99EMu/TTNiELC1tzX+Z2Zkl8VDbdOrj/Cvfkm9DKYkj++qQRy3ULcZSfCXXY4OS96lX+ZRW8c7CIYcmlihA0HGNnHykVvMSwVxYcFsScIBhWy6wiysK9FmnAyfOYFubRrArkAzGanAJgqiBEQlwuH8lTwlq7fcnpLln/HH2WIYeMXirdcm+HAVDKcgmEkeq0jQSxo5r3FvXtnK2bB1PEK+Bq1H7OVPlYxAuDWEBsIW6csLhnL9OHwdR0K5OXCeVnil2Kb4b5JrsQJ74VgISyIdwJdNfPigue3cF/tF+BrMmzvaHR3og3zTfs9MYLLfsN8GSXwxYEx4E63JaNXhyCX/uLp1RemHsH2f+sOfPi0L8/ANqwWgviMFr+ss/Dh+pCu8+FVtSy4XFgDJcJ0H2CZcAymtgX8vt/GX4N3LnLzkPwqRkCuPHiTAxFYFE/fnU7JENO9d3sh4jAQppNhWbD1vUwRR8KX1mbyWRgL4OdQl7EnwGg2sw52c6/wwA613wW66cAXKbmvHuDg1sjNoiFYDMOvoUufyIAL4kgRacHsHLgHDoSVI3BfmXBRrCGKIfcKctkGJnyoh7nDng/THPxJjiEbXoAv82wBxSwDuZ7mqJTwnRi8jGD4OrKESuReQ3DJAS4JXwd6bb/gNXZpw1gIs0A4soQDjOoe2EIw/FYK3kNgrM0AThNmBb8VIrBg82Ce3IBVHVsFCF5rIAP4ccPOUI81qOb15TOhe8zi2Lx1jGf7Db1o35d/x55mJIiCV72DAyMD+Bvb3lR+MHFKfgtgpd+LOzgWt4Gx0DUDRqArcr/UamTsnnf8Qu+vUAzBqdvWgvMgfAFYHQRXhkCNC3uMYEcfZCAOeYxgUqRESimC7ZgKyYMnFI/uIjklJ15fh2KcOG34lWI4bVjlWtt+8L7HBybsIriV6drYsK25By5tmv3WJYTG3nQ67UWIgDgc+KhkJowMX/GZ7MZelXpBaAIkU2SJGweWheIryRRVfMXuc4RfgqojZ585mi/V+9n8L5ki/F5ivlJBbOSyUsJX4cGl/FCC3zsRDLSu/h3aiW4haEOYbpUXEdiu6KWQnuAGEYKR0jWEKgS7QTBVwoKJEqKXrhTMHhK9mLA2fuGFIkf4c45v9ThHEqatQBhu+WWuhBiAQZgl9eMwHFsNtDI3cN9/6PbrLXxpFE9wtGt7G4TrfywSwBL4Uiasl8oUURGCVQzHbQT4OrBaeWTLsyQTBuDCkU6A4ohIog5zwhV4+UnO6YCmNSu08rJ+JJZe1aRiSz+vv/0lzaQs/Rq/veRrk/Br+YGh3e236B0TjAQx7IrgE4M400PpWQjjvYavipHqEgTk+oPc7UhFsOiljOOKEIeob8HBcWlB4cMJsCIEHOtyOB7XAZjqCxeWCa+2uu6LG+LSKE3su/eyHN0YFBSnxC8FuRDMiASxJftluKa6R7MoLIDp/b6Er1WH8PRhBV4/sWrXlicAFigpjstUvjj+4cqrDmhoyTuWf7e+0sReooNehPPGNHrVvkEsh2D3jvJVguJ8gpP9Jr0cn+G/dOLLZI/TDbPx4DHANPmBpac4oGX6wRkODZ/mfKYJL4D4q1N8OAF+srAHOtmvRwkc+OyYEr4iGBNGLcB9M17XR83rLcPIxvqW2K0EkQHCTJjFjBxBh7a5gqB5imNIbsAAjAObxG9I4A7ugwPh15zVgfH6MQ4FsQBeruWE/QfvvmySL2skRV/PEKC7811nu5RU9P7oAMMuXVLwBWLgHSCsFEwPEK4AQSfEBW+FYLaDA3baZOQeKAfLgF3Am0lC8NI+O2wVKT5QCHYdYcLmwkfKEWBsScJTsPKE8H1SUVhxQquF+JolfmNhw60M4cnGg0ZzW5QCBMsHneziv7pFy2s0XUNsuvITZXuECw/et+vgvcaCO4Zfe1S2q3a1Ftxm4OdaY3qxXqqyL1X4xrgIfN9QIZilnV010Nrtg1Xp3EdAO0ZYJlwiQxTDYtd2WwYxja4ODsRs+C8tgKl8kjuM5zgIFr/lwohf/C6KF+iIJSXGhAkG7MYTXV8TBMLjJEGvr68CMBbMbAleO8rwID3MDJHkdhRLiTDw0lgwSv8FYyd4atMiBJXKxzhaCVi/2oP7toC2AI+/UxGC8jFji5M+R5B0JzuLV3gircTAqh+r91I4pwdYbfUjl7Z0oJCO0XnO4whdqrhVAa+1o1sEV/4NejWFse5/ORm/RAhUEJ8nwJ/QiEPQi+dSAW7AC73lwUkvZS0ThuIDDPjW6CUFp//aYpP/ZhIWvsySWK6HuQUdfxzTt8RE0JUJs52FZMTUysr94/vH4cFAnGoIRsYvk11JgkLsm+BbzisJXh8owIXijbnglQdjvvQ7W4oRIpdBESKmiCBMtyFC/GooB++9nlCO6a35aATwjAVolItdQ6DqyJSMqDz7e+h8CzDa5EgjhhUcIzuIx3zPpY5sJntPfKH5q7OPCW4Fv/nkVnOI8I9NfAiAxS3d6pwFtZ8ALpWdjjuwYDHcCxB5YBq+Kg5f4MLQ2+jQV2kchB1fRi8LC+JUHAkRMuKk+L6GEL4PwGz+QMdodC2SAVhas0aT+fsKvtRD+I2VUnKIQYJgz4/hPD+4/XYZmPIMbGuKOoDzJq0yxPThkNnSo3ZvAVaoLFiK1aUq1P/BG0uiXP8Ay1UApwFL0DsSqeENhtRmX86RIFh4LxWqBAy9smAhXEYMwucOb7F8k/77kxD+SR7MOLi5OWCCb7YMmC5+cWDxiw87ujVSp/ZHgIBwBAlpoT/N5rRPL629ZCRPzjDhifE7oUujNIEFU7TlYQj+YB5Pb2olX0bRyzTJfjfkwGgbcQ+B+Ypgc2BVEawQLH6Z4pdGDAl8hecyPRofOQHw/6h/AfyO9VBjfjMAvyF61RRSBv6TurPZbasMwnAuozsWVte+hSprFmdhx8RShOMIRchOK0MUKQRZAgVyAbBgEdFb5Zl3Zjr+znGcAlGh7zd/x267ejp6z3F+NhzqloK0fgcbGGgDYTJV+JqRKCW/fyrkHB7Fcexf4CWpPV0ToEuQ1F05vgawpJ/EBMJxS3dn1Y3EDsNpJajYCNR+nURRHE/XyCRY0iJmH68AdxnkhgrfdMEpFjDewQS5shC2fSlSuOCzfJQGusEw5cq3cAp8WzoptLrIgcgp9J8D/JH4DrUXXZIDv6xhuK0lTGxAd0Nh2G62QNyCmwrzoNYooS16y0M8yjzQGB+FbHgIEoTzNq70exoJGeEG33wecSWQSf1o/u8gV6LrWb+Ve52UbHHKQB4fc4D3RwoqgkkQTrkRpnzZ5cPfhd+3Ob+WfYzNR8Q3dMKuJeR6YxNDrsd6KtHAl6O7OEIEU2UlOkeS6s2Gqt5QvuPBFeV/sIE/1jn0GN5PL3vX12+y2z6CCHpBt+BtES7/wElwxS7ZShaibIS2rk9wa7MxzGj4WpClpNdA7hHsTyP4GTYQ7D/KEYABOb7mxRBGwbASWI3eEVnyLUwZ39sCbjewShBcEN8BLA6CSl/QE95Cl5NX+hC5ti/kEqZ0wQCcAl8y+RXBr8+glzg7CSJR8JujpiBahUhuJfpnATC8ksXuUwRr9RLIqjYvSS1tyHr0MFjAoHtLWiV0dSOIn5KjS6V9bxB7f9T6jSIfUQu4VYFbBKvavTmJfvpZHgIZwxzWsX4uHqfZvgBsIZCFrsueSozNRBzvOmGKKiH9dlYPzeCYWuDGFBAnv9rBEOwC4KiwS374agjizBKAVfILetS7bxvVrk3Ftq03yObyyO0ltXadoKnXLUpGU/R6zSuylu/lVYkrTuNq643oNev6KfdAGcjAJZxigRv5sHF4vW1LLcNJriqhvDGG96Eb/dHYJang6vwyoHiQ5lrbr2IlWq2uyScQvkK2hC1Bl4ryhs6XsAgmU05w6UciGD4eJ77Hx+Ukkl8uZjIP6Rxy/Q4lF0ybcOoeDun2zYZZ0tsKhqUV6S4CfPs8Dng+JL17JFRFZdbEt32HKDR1mLMGffUnm38xuSwe6URQr4rq79ZfoPYEukP3cEpq/5J1A6dEYtdl7kEEbzb0BuCLX3wBU1CaiBsuW34TXLavfDAEk5JsxCMIQzKltHYHsc4iXccKJvbqys4VBFNSrF8SdGkozERKEww3EAvj43sIFrpBcTIcfmK0FLhUQkkMqE1NdOZzbuJ02L0hbV9pmhQXv3aQG4jXb072IllzlspUuggH+LNSi+9DFgA+dXrL/p7ifDcGcKDLEbUE6cP5dntxQdlav70lgmBS7ZB9eFQRv36AVgy7HskwEGxfDgyvaYTJSeZnJTA84SOu5IfNSGj3BsKcoDgJVjWpjUaj8f3onkBjFeLHsRE8tv17PA5HXLb4Kj51C3p1eioDPKFjILAP9I4TG5iYzTkuDeWBYZdaz4Jni+dXrVbzU/ocAd7je7322SVcG5s3Ja1fGy6sObjGLsXgJctFQK8D7Gco0Usic725h5k4rX6NHbz2IE3X7iLWUOxFWcqfaE6opGBXv+2n4ZdAI38ucQ/FibDF2CoIjw3esfuI0vFsYR9bLBbxxZNP6+uAd0l0+gBu+WH3RssFLKmdWaDA1zQtfJ/n+OUB1ib8pNLnxcRQWr66cQuM0zkoBW8VCYbVUrcG8S0Q35YEsX98QQ29JXob+A9ZYEIF/yB+6eBc9KquS0axegQqcgtfrwh4f7IWym0scqmwy2CtMAZiETxGVaRjO7aITdCLfYBZ+GUDMxCHNMFKTHycT5aXmIjODETn/oGxtQ+k6KWW5uD7YjoCi4KEo4oSUy7qLUQjOQwxUmsmamOSDp83In2AmiY1dR9o+doh45vuF3iVVJEMv8JYyEbhyDhQhC5RAlxK8evOgeo3cJTbABgZwqTQjafAMDuhSDIRVM6eJUwIWJkH51gugt+N7QSvOPmLqehcXf10XV93aIp6p+ZGQi22sDU79QGdf4OOyBXHJAPgmp+w9tp8A8uX4p9i7L9zaxwwYvWqiN6ywKQATopJ0as9rKED35cEWCA4soUZaqARX4pCUFfN3yzSgkIiZnpc1NsadJBe8Ew5yJqGe1ebl+L4hoPgou7dkt7wDkgTxjcBPr8Ibq1sqe0ChltJXegS9GBYAmL8A+HcEmWAKaU1okjhgvOeznkdGmEIlokIiV6qk/szSahQUeCLosIuXmIMw/IRfX2JlyDPQHJByvYqDmki86BhTqWI3sv4HM5rmgiyXDDaj++CqEGjrj4W4MRsqD47NdZLB65cCWphW5y2c+EsqdfrfYCJUjCMaJuHU3Fb2irONV9shO75OfhKbOBkuPDloAQX+dgKZG+I8L1oYv3SyOX0xT3cmloEpx/mYgXEK0FMJXbU+7JZCtG44TimssOUkd3OATFFwNI0wPIxg6/kUcfOBeCvFofWbs0ywCfdUgtYu3dZDrhzhhNgyZuxS3lzEljSWoLjtNIrZIl5CPB/Ioj8p2L1UotdlB54c7ox89DoHHjPNVxsDV/QdXHN/rUjZS+VARa+gXMxDbok3HJS3+ua3mimWr83Qn0qhqe+jVd4CDspH6/ykXAiTCC1QpjI/uqHxkqMgFgPJMZgDLocV3qKL+p5AxQf8A4nWr1BcLckOxh2dZzUNB8/ME0/6I23wNfrYSzRIsNLqcX6KLGIOswhQASqWg21b2Wv+RsmxcG/vx9djrsGspT4Qq/fvu0uX61e+gXDRTjh9A/vdOtmZyjWrxFMDWoTYfRY+KKJE8tA0P4Qv2QjMxBiuGcjCOG74gKCXeAb7SropYJvEcxp5QwLXzimj9wL30MxuhfF457OWLyFMPNTOpFpyBnzC8/zRjNVsVsmYlezRbDIMTCRLqMWqLpi8rlGZic6D6IdFU52SgVZi5COSkRe+ODTNzGJ14KUM8S3Xq53s7U8i1waVdSWxO4pC3igc/AFW4aLem5mvkHrV6fU8gutt+BKSu5/H6344iVuyInPmmK8vJQFppaG9JZWBAhDLR0lxvgHUgiXykWoC9xoqJ5I+OWIvGcX3znG7N5R7uHRfBHOl3xeBi2ml9Mt5Xx5ANH1CNb+fZMfxTHRpM7RQxS0g6MPNGWGXopGULzmC8j7kSNRFCcjLUzFWIZeHJDOUP/IkM52gRey6p55EtnmP8hg8QJttB1m0/iyZtGGY0NaX8hN3b673S9/9BDg5rnxSxA2weuk0k4CfPk4udT+3eeEBwyXGoCZ0ZVMcFmIKnlPd1crOPvup8wS6JK2ghWh71i5ROiQBe7i0YNPANwR8zxzzdIMqQAuQRKGbwFXrYguJc9xoSiOyUa6PkpCEpVkpgVQg4KkZqoUe/U/gUnhQ8P6DsAZyj7IaoiiWupxvHnf270gS5AcLd9zYL6gbTmxeYknd68eoBm6O0ojzA7WnZtDS0MUVbuHc8EqiWKYNTZ42mIMtUxJb+siQBiOiR2Ec45TG5ikIoYPGnGAmZay7Tt+vYBehdp+49B/eHYy6ZbzE925BcLIS8cOJso9kNbeJL7FpHqP6UC3xEwhVOrlOroC4ELhKUJeVg/KA+8feoMStTYvtcU3FSOeIR46WBXAKPjNHVzzW1ItN7CSoCTCAJybV00ga4bXSxKp+AXc7rqI6fRXGCaU0ko1wCWQBtJqfP8NRQTH+kU0InXHeZV3dLuyu7nSmOz6tC6G/HpSokEx6BJyEJ0jbI3OMLNXHd8s6KTItVIIc4YM03rRUj1oAPzSfL74v9Je1R2b8Ysozq1KCXIN3MSWATEYuQJYyaEBL2GFZpxSWcNfhYOg39QOht630EpyopguGS8JQUtSqISVtZ2ZwQu0enzm9OqKWKXWya66qrPLIRJhb2GEyxeLXZFMabYwhqIQ/g6sllrBUVUGBBMnE58/+AeDFYKD3yxpHwhOOAfh+6y+ffYPZN1vIQ7j92mW8jO0DvVADGxDWQcEqVgHTQRiCmiJ6NBKokSYYBKu7+reLSfN9gny5GYCv5CrxqDz/QSIET4i1zCNAc18//oPu5tRIDkZ9r7iKPQtC5S6kbsuD2GtbLAV0ksZYiGMAuFXjjAtbcRquRDAz+qE5dtRRHBnD36FLsGQE/TSuWWb2+1b103DRBS+/47iwzpKJP4WpA/V+3ofr22eBZWI4Um9593mcldBrbXgNvo2Gc6AZpfhSUsLTHn3Lk2EhrcQDLtD3agQyAgGWIleErjcudEJZe9RcDmHrKUiOHSGBTaGIdgAJu1YvE6MyZSo/SIARjEBbrgI8Uu+mrr7RUUxc0NuQzC7F+/LxChBLCFpROzgTo8dZlMq/Hbg+wkEwGkikzqKQqpXLSnFTw1E6RC++a/QNA3e1qE3nKpGpyqQ+nkpIE54tySBkt4d66sevkHowiYsv+UFMA2CmVqZd/iLuXPZjaQIoqg/Y3Ze9cJ/USvWXrhpY6nVYBYseAkWSBa/wsdy4kZcrlLJWLzFrYxHRma5QXOIySoz434hYXJ19p2cIwTATv+d3iuMm90huPnFW0nFLu5KsBe5kuFFATdTcMXf//jzfUH84UPBi0nVhuG4Qf7xpXFdH99uYfYJg1isvl9BDp6QS1aovmIS0fwSmHXj7QMET27/ke78ELQw2jUUOl1Qho1EVu6dLfLMlHTme4yuFh17ITdrJbxi7bvwBc7ARj454MZwTHEBF60vf4G3O285AIZjMRyA8RaUMsXLRY0z+DIK2faXMhC+COHz/PhKjhGWSQ6/Na45QdB+ZYa4vJ/mVhW6OQd/YNCM/UDXPH/oNnwStJ9qrK2XisvFMNZ6YfJb630adofbi9vwhenBO+DjfAHl/6L7BmCA+KyY6MydjYA3XJNr2ivA9EVIjcgX94XL8Un94d4sP2Rnpyz/KMKXD8ct6Nob4eitHUGRXgy56Dd+8dA7R99nrlIw/kVH4VD73UpusUsrFr44CXCh9wK+PLtdyJAOwUJWoQA2uvFqwleuVWLWQQSnC5PJCuB7nx3uMRGMCl/SD+gcZsPw5HVU8Jm30hf5arrCF9cQ22FN8SN2wUqPjBXfmiXb1xTs12TfuJXuIKIHJEEGgRSu8GJGRUNNLpS6aqbYKaqosuqtTEIbBXZX1JSY/yTsWNUOf5rurLImjN5ubKOcd7vlOuwIo+9bIPuMcWqAWSJH32fI5eq46pfuv3r7sItHtwo4NIdfPFJ2kb45VxvuH9/jg7C7cD/Cnb8Wv/j5+z8YJE0vk7Ard/r2dJIJ4QwQjgTvvFYD4m8hEqXh4su5wgyAyz1RfnwCYkyofoqj/76E4ctvCb1XeoThA3xh69ONwNBLnh0dmOK8Lfc4kix7lDfAgWCVCJOMjDiMlgmwueIMwyuqqJTccolrtnh/1rPDK8kCb5LuvG/lvmdgI71uEL7PwIrjAmFODRIIkxW6q9yInwQwB+D03aiarsjlPQQ5V94Bk1z6f4SA4HkJHIll0yx/hWX14kYXATPEVm5+yzmcvoZfhjRv1BR1jMAkvR0G4lNgLUiFcM9mUGRIlYKuGjFx6b6OnBxI5OsJrg4UwDUAB05EWq6kzAqWkvPeM05RnoC8ig/A7yrAZPqnb9vg/1v6AVIjeNWI0nCJeX5rXGm9zxVgFi7VfVH6rpMbzM45wrAmC7yIaGRx2EyY1l+SQFQLPn9DDLolZVclYMu4lohmmAGs0qmN6XYATlrw3lPhWe4effhQgwuYHyCU9w6fEqS8I6NgfiX6rcYL/lWnBeTuG7vI0XZxx3FwdhgFtoFPianMgslUEjHRhZRoYEnzOQZ45WHP94rTFPaN+/5/Ul8m5j0DjqHsDd+xhB+B7Vs5wSxw355N7aYnEL79ZG43fjVGv8hHHIEvjHO5eorrky/Sm+CKhEgcD8Ow6+TrKM9xCvReLtQCWWeiuOy+SO7T7/1ljgvCtF1VCE9VUy7pvMtFMhPLp17ze4jqA4bFdDgkbErNXdkK1L5Qh32X907hzs/uEXOVqmaLggy+N04tN3iHV3ozWm/ohdayd5RbsiqpoqCEAbJDL7zKmDPDorc5OzwXwzV03G23CVRxYyu5Qy2+YmUojRdpUtzK8gfEpIFYNF+vQvnq5ziCDsFgW6MiwT1Y0S1YGQkKxj/aTv1STY2YBgzJwhPX+IhhzTXRNAS7B6MkktEF42JZr37xVQ1njHZpoMgxPpzKdtqzmIKubLvb2RUfycg1upSFcKhtM8KivS+NDWO8k+yQeUuWl3tcQUAqZ2gRtL5Vqr47Lindt8awq/Cxo+/ednN4cILErEaBizGIVPxnHBVMcHrxVQOp/UK0+m734CSCORh7YCedjOdZLvoRbiFZVgD/+PAoBui/1uMMLo4SqU7XnQiolNRyfWoA2Hlmkw4V2R3i3u2+hjy7nWdf0llJIberCsCma0FQw5Q4J0hdTZ9duXVfzE2KTlxG5jjsdtE7uqTZCj5u9H2iZZIx2m2LKGIRZwUZSv9lbCcHd97b78GLydXwIfiCy5sHeTA+9yECRG1WI3ytaJD9lycE3LrIGOhEjkvrPUGwHuSguRiuC+UgQRDC5yZWHisXjMehXlHqqbBFima4EkLjzIuHndV9kvleTiFUB2O8k5Br3fkXvZwyri+wTeFX2+QDTaNmCaHRmkSDeRhsgleplq+1yzf7Y0Mso0zodg6rgZaLugbuJmix2xPhJng3BWVAxUaFsYIrFwSrenTrsy+qSn72nwl2661IxmD1GvkQrCBRKVi7/ZIXtKiRJYBrOYbgJdzz9mxHxrAaXMFJ5eXTbrm7KF8aYzyZ/+dfFv6SPv/721i7Wx59nOs339/rbV5ntRwTLJqvM+suKGhBS4S3zrQc2AldilzYxU2+wVkTuzIscPu0iw3AqNxNCfAqJ95uGKOuEEsY/1X4NbTRzC5cffw947nwBL4Fd9l7r2AG2ya4ACYn4JmufVihpCIMC2Oxi5+zMAifCEo74jg+7PhyDcPGM4bC8Hb+JRzHQf5yAPFH6F3L++o/pjtBiXKCJLqkxEWp6FuwGUPLboJIxTTZ+ZOfJLWEsG8f+Ut2wATrtFn8GzY91wC3ilw564Y0h9mCFF/6jmuV0fVQw11VLQmvrP90mF86DL1UiAykFHILW64m2O0Xtr9OD+6LgcmL3poonJj5EFxvHcpjmpyw886usLUhd2B3X8N7CbmJhwYGxehdHB//MsuPfxjgaV1CAT/z5lrxrZO0TMNuZS/e9HIfrkfHoKzEs1Bf/llRw8uamPjnDpvg9U2xX+9WRDUXt7aSwrTdp/KCt1JsP/V+DGRYlaLi94K3SM3rxCi6toNc4UwCpQVzAAZm03vCUKMrE8HYHCbAtjQRhA9ztDI859vKoxeu9dxr47IOdWBFH6KjiFVn79G7J7g/wfudf9MVxXjPVJdLsTLvdylmnwq7K8NFzzmnLp+zrX1M4jlbzGhaLI5QPrUB100Xx/jpJ/InlbACF6JXTD/SghWXd2atkMtDXENLSoii63giuOrwEGgxK6XUT6Asbq9YyboXxDUa4qsgs23PacRdYfnY60d7xZ3VaM4ogS4TKeW4de09ivOZdxsrmsMEieFyxdkEVbCUqVDFe8l+2cQ1W5WkqDARU73nnkpZ9+eJWfulgDRB9NnnGxLBIrYPDjXbn9YEqc3YutyVYNuhMrD1SaFE6iQCVDOrOehScrEtyJrZh0q8cGqPqgEriloOwSZZ/fihMQuzCu/qBeP3kkqOSmX4IwyrGogImuW7HqoFWyubyiuRlIR6FLc3ct2aDmwGBERnnjmTyHRtSs3rcrk1a0vFoDvbvkA+3TGZ3SKjeoPb8koJFG9DLhXpaS6NJzskerHAmqc1/kRCT2dFVXXcGdWJBayRHX4xpcQ030n8AgJD5CY4ehDGGMmJDM8gnYhEa3Q/KB+DlmSy/qAuYpXvU+COsipgOvpub99Q2AuWQbuuiguvXg/58ikZ6TY718sB8LsKHP9v6Tms2y4RwwMrDi+7aQfEDqmh2BOJ6Fx/94E4ZeiHoGEM6orThC8vja8khLkG25EKE3FCtx/ZOoPfwpbUfXhpxKK3MgLccp2YAG/nw/Au/5JjKBn6ExxDr3SB3EtNmtWhuOwY4NJbw6Rkbomp+ktkmuaseVjOznzOFO7+NqbfvcfUv/+fQ06503zJRLNFxjnBBTXb8sTBVmM/8wKvsMUhnKL4BVPNcUykCpGg5bKUUT4IkX7637w2i84Jhrr4ZZwYyk6CF5EMvSxZdGPZJx+n8lhSTAE/M0+5XiiuSi+XDrlPFaKuUdzL3lw+KCd3CNRRdjnehSYyufYz6X7m9cZDYX9QIrdLrQxlzZqaMdeC6et7szWE+qNXcnHqsfiuwCyOMOama15JsJ7vSvt9cs9F6rU+8L7ojQMh4FJhktOCwcVWHX54OyZePzl/YmYR80kjfzMOULE+ApPCcpXgtymWtXZ+w2VmCWExZdFm8S+IX1DfdPiuVFRiYGbOWx2VvK9DGzPJAgBbNw/xYEBugQUUeou33Ux6VPvNvbe4MRJydzNboPUyQ/OcX3HcEKhV5/IyXtl8E4Jd6bgVTS2piUWTYZHbrz0OdotbnXzzsNbgyqC1Jtiqc7uzIbbfdW1DEPsJ2MozlD9cHz65fv3wkJMwgyLwPpzEMuyKZJotiWWQ3+fhkGu6wodxI7Y5sZioGPTw0c5/oFtmKYXwlJ1ky7Jn3XqnX2yT0SkkvJJ5QUgIm3Y1FHrjM6O3YuWEEgl61d1oZj19YlWovr5WsmgQZ3N3UJzvTvBXfW3C02Ob2zRcOQZy0oskELqjW7ySFKh9yuWS1IcF7rnALYNoIle4negDhGzX1QOtCeQWx4hkFfCexDB9lyhQHyAXt+vh4QgCS2tMgnAtL1S6UKuNUYgbkgO8qY9LC5a6MEtyxjPqYj45UjkfOsa4u42eHJy+vgadZI5ebkhS37e+NklRvsTczw7iq0vZkNifwaZXBWyq2HaTlwWqvPUqTJdeK0JJmleKRE360ICRMF8ODOm9ghZrl1wrAXbRwi0Bj6b/WqSOgreohdZpwq3pvEY46fVX6s5eR6oYhsL7MhTzFqlST8GwEtI0NBTw/jWfj310FF3xDxL4Jvax4wRW9yMMKwHHvWoiNH/Yrs1m1SRdWwOxSwHP1DJdnjPs31lOzjipzZZsM8CxvPthgmg76SnosjSLbokFskFZSKdJ8E6aUqZ9qMdrZo+ytiCPBlmbP9oWpB+g0n8os4rBZ3kcCwi86GXwCM4BNKx2ZfD1DcywrYmfm1fGZyZRLG90j3aYgLX6JM+sAaVCmkEqX+gGY12/JiA37usFz58xjghPKcmXFn+KV4ylXJOMBecUyKNtPgQ/TqWXIBZyKz1RVXmipM2EucVZ2HSXa1Bk1ZilEMiFnoS3oPQchB+MJ+vr9b2eRNj1vIvM0+4BmGGSE8UpYQ21Te5gvAZWlSW0Sn0Z36eU8BzxObRWPo/SuXk15jvAaKE8BsTMfrBWsudxgdmQv2zZH4ajQ2kPHsMd1rAWJ8SJ3h8RYNNnmR/r5fhjeZHifBZwrbyMRRE+WsYo+ih7Kj5OPicGx0o08gmVxGVK2kZIl463ox4TeYDbiWb+T1Q5pwxbf6jF2U9NySpQ369VcC6xWtaePEbxObGWePZez8fa+2HTfduYPjbLz5qVMm4DLU6qw4ZXSQKrHcCVaEeO7fXHzaQGpAtSF0s52gSf/oRcMdu+e/BLYDnInPd+sYDTSLLZBWlnWZGJu1RiQXBOo23a03xuc6ddx/fygra9WT0NJvP93HBLgm+jZYQH6OL6CobKMfEZg+7icq1QatGMLuZGKZx2K2yL3BuBCKakeCqFrJhGatQS9qay/tTrUM/37tsdmVqKpz2+BbU3Of/92/1X7OXje719ocBrxOfiGiJVOqGGguTQQFAXyDRNJWcbotI6qBdnQWVFNnU/TbQIQDnqejrzaVJ9Nk4hTDK1HWWGs+pb1QqrKCc+De7xOfdqsIq72nykDb4Wu65WHANtq+rUh2CgxCQjNvg6B2YVjXCMnLX1o7YZR0zBHZT+fXupV+v7qLhE9MxnQhHnsoQj294ys3og4/qphZYbs0mHBbZD9Arucp6HjyLopINc0WrrZCCtxLdpgPW8YsvUmgbOnx1KPTW3GG5mzW8L8doz1D6tGYVpcWyMLaiONqYKcgwKUvif4Bc8GSMrk9DT2f8A7wB85+m3bjrugYSlUMvCvRhBUO+8dr6qRFal8iKISgUd3ztQ08TUDjpVDJc69FW+qggdiXRXV31eYFYSE6fz+Mpts3oc6GJVMqGtBbQxVdZBHymci1j5EoJRWjmFjRLaGxOz+JHSilkQxcywS8gniKGVySPzfXyB7uTQeCblMboIZLufpPdH2v/agS+vRYh5JMgp8pAQyklqvs66HHm2XPXh2Yg3vMplBK/cXXCOSWlSB+0WWaBC6HaS2QalaxW6S+VaWAT9NfA7/CEeiwTwSImrAV5mMzDTtlhdSIke7cjlAbeH6d1MNG4qIRcUEVbIGjflm1wZTjlGEaN2a3ZHlGyOnyIYnZcvE4pJrVJTNunGiOMY3+UqSbJrZTuLzJJVxP5BtHPkC6966Urqf54YW7zr1zvJgEDD/L7LEjg8mPSCMjxRo0lCOxELoNhABVkmSZ2jxD+PL0I0Z1UByWIjNoSvOpCEKhpZXfTrSEy5JBX/HHQI7Daw+pIYC8GkJGZxq1BlCEfyKuBkSCf4jVWykVV6qqyX3JtXJ1s24N1GyjHIh15BAqFitqH1VdxOawj2EGCVKpoIrOyCYSJTnUkCS/OnKUVUVeEC4lArEfBjGwswOTdHX8GMPAG+5olZ8hnn/pTTAsC8wmFB4T1qLd50JcoJIIaiD4HHYXr32twtMvFLcxO7eje6OH8AmRhiNrytmfPDTSrglKBFWQPLLx02Drg0qav22kp1Bw1LJ/hYrK9QprCb0HqcijwbIkHUTXvuMsqVmOkCTsHwWtDsyq3RvhVdoMpDRpFYgwXNEdsKR3c+PYAx8O43+XjxRMM3afNMMUCGAzlD+rWr12B4u7+GtCqxN9P+io1+nM7yBm/1oyxUZjezlavX3xq8KwwDMK5RWQ2MUiGgt32XzrIwGN7vCGuaUW4b8qSnY80WRXc4LtBkhdbZh6kbp6Q59GHepQqbCa17WLGNSaQpZmR5xKecCrvqYtNv6FneBalFkTWU/KqKLSr3b+H2hV1zyc0bhoGwL+OFbuHVf4Muef9rdP4hBx8EIUWAtIsUoW0+RtSD0Fh1moivYaZSZEPXyL2A35SNkEI+2B2jtqyAbfeTFyqtBoaQac2NKEDjhkpLhvvZG6G1V3UswHawZMjmNZFQjQFcKmT818VfsD7NPu1ns6cNNNDduDFY3T/mNPGc5BT15mtyxgrhpMKzvtxRid1j6OdBDDcHFU5iKJoOzxgkHwMysLZshq7WSFVl0028kDeCO82IyZcGoLjVHDYKAXEOubG3zd4CAjwsQAiID4za/Pqk/uSto/7gURQLdtRvf+39GfIUevreZ2J9YfYlz1spoLfcxueLw/ChPVv+zYEukR6CuILFEpBm50WGAhsQ/s0bUmbSJqI7dGLQmgO1fj0l/bYyKstaj1w+WotgDRZrXePVTtM48RJvObgrTM+3wUf8xeAS6r6D9u8vzv12iF0ObEijnQLCRUmHAcn+RP1nTmQbFJKTyUIjxxrwpa/X/EWqv/usqhoSFcwB7/kjU/0otjxySr5UKRiacLi9nC5FWn6xKtX06lmrRPR35rBMae5cXlcvQlgJUUMJf7nhaU4qu1sU9CjvpIZnelukYgAISmIIuEYn3I+eNcdsyWEcIdDGadaVTrYneaWgqTUNJq5UUINhnEfM0MyYSy4COwGgY0aB3czRyFH/3IY+rp+6I84gsTWDz1ooJ+Mwy9Wm95f/k/RWvfljN/vP5j1ta6CdCXvbRLS5d3G0+RYpM3N6zJVopILLTX8esuYoXG5p5iSZWouDaw5G6l+swIOwK1KCVraz9h1VXHYmhE+wvIexUdjj2W7M7NPVN7AwX+F4FtSX3Wi23MqGUw8mQHrn+2HI7gT5EkNn6qfprD+pR/3AiZyccF8p65qlXsKYsxtivdvty4ltk9XHPkvi72uKlfCB7oFjGWh7zQaLCjZrHRa4KetMbWhJFg3OpLJpeez+qf59szhJ9vqTlxlw/dxSwNaVCqvnLOoX+93AJvk2Vf3kDI4664d94DAzLj41B5ON9/X611F/Vmez7z+DE5HEfrDSa3vt9gLJAgvKKMzlh1r33hsVBmBOyBMHJtNtvMQkh5ntSqg7FnEiwN+rf322/vXJ+q3O+k1iBt/ql4LD27PJt65f+iAwEC7+WfOZj4fFtMIlOATskHMq5ANqf5BDxk/937v+y6/zIaBfkvvrQ73WP5Z7zH9W/31C/2X9FxPwIy8QHq2AtP1huXQ5cQwT/0noRCo4Lr4TyQaN/an/e9d/3ftyUz1IYDV0rtUk3knHvc81E4HgbbCECXX5ztBpvEHoP2lMrwtNJU6k40/9v9mpl6RKQiAKwyyDGYMOB73/DTZWcfwGeaM02okYpFokycnHT93r3vztg9uAlyG5opn2LenTcpZeSYp8ORlB+fsvc6bDMvnKz1XCqpYlrLbTYIQl2YnmJg7/3vzt3RVbpLBTV1cCICSmcVKEZs0h4oRclaf4tSAJbEzEPS6cazM+6o3Dvzd/m97iYQLVNI9w/HUh8vnXyRAec/9cepQJSmH1avpz6oVNdPj35m8vWzKx8bLVkFJ78IpVxZPmWZshYmU7SMp0h39v/lakj1C2kByzilRL8FKxxGNEdnzL+CoEO/x787c5h52h1LuOr9tJoDQoUxLeidMdKa7US2kdNa7jQTLmhkScG4E3rM50Dv/e/G1xzEcKCCg40jKqYEnJmolzaeSZMxptr1OXBxvdSHd6oLD0zEDEeg0Xcvj35m9mWgPrMx++4PLDPI0oa6jVgp2s66lF5jWiUu8+1NtynuPI6VYhtEZfHb2Kw783fwv8ZSubMIs/isunybEt0qRI0ET2aq9dFBquDqlMhz2FvFESJd7S9fDvzd+GUj7qQj0ba/67J+K0X/l3Sl8n/eqbCHVO589M+TjoPcL0+fBUcCt9+e41iwJiEhU9/Hvzt8GY5p3Xx3ooUkwjAFMakkRV6MGYvwwMs+Hal2kI6RnF4d+bv2kUp9u/qEvWM2gViZTqFtGqLDeH5vG6xHgcJnT49+ZvpPGwZVAzRziN9PX8D10dFTInovZmlW0pZaLKXkF2+PfmbxJ6jopJ6uD0cTmFlZ5Ydr+Vuevu1PZWykKinbvWfhVRcAblyzv8e/M3LZPkqWKa3LpCJTlrn7Z2Pc2ySEVmvZtJUmbGQID28qK0JpbJ8xINcvj35m+jryaZRZnEPa4lxdzg9F1hJk4EVr5EyS686AB6P7dEy1UdZxgkQ8to0Nfu8O/N36aDPNxLA6XL6muB13OKitCXVMnccfLUC0vyYHVjgxYyX3g6MNu8AN/nw783f+uhiWPLt3UzcXMZidZS9gRMaBj/ciSX/klwKuqd2nBiiR3+vfmbsOVzG4+7L5th/tPGt/WHf2/+1o8d29h+wAf4z6eK39DyRw3zi/jbV4tQWZ+VnGf951jfLqYC78+9O/z/2Ct/3SaCIIzvS0SiAFEgaK+zRIeuoMFFaFzT+gl4O97C7RVxgeTOsiwrkhUxXu+nn46B9WQTRZzw+Hy78//7ZgyZNv/0B3j6ElruwJKREEJxjFK4jsb4rqQQVXCSIlWgAOOAEj2+e4MaXvlPm3/SHWMuC2oIKfMk2MkEqk5d1RKYSrUPpInObyBjMPltE+I2Bq3izBOUFLf3lf+0+adiz7iAJn5nM4PApSNfFH52CnlJ/D2cYLWGjwAIIW6tQzHiqjXgLURlVIzs+QTYlf+0+adi4EFAUzSmw0WgyVAH0EOzKBorrQgCIV5quC1IQSOIQdFAcBV/5T9t/km1x3BJJg1Bp7A/6wLvSnmdAYebMYIXofOV/6T5JzwYCcdVQ9WJu+PrRdPqMIUF5t4mO5NBUH3ilf+0+ad6dGdP7vaqnPXaY961qu1yYT4dN6JMO+ldPfnKf4L8ExXz28Hvok2J8eWoA4Qqpa7ehAYUBPJ50B0WgjrX+cp/2vwT4QyAE0i4sl4+uAnppPHiHCUIB7mAkM/ho5Wa5YdaZJHTYy9O7i/In/h/jj/XRv6kvCj/VE7LUKbdGQxspeKx0Pwq6fmjkwFncXBLU3WiHFOAUScEildwrgA3VaKVoumI/SxX/s/M3+Ql+adsLTn0Jvx8gqSMTD6hBqCpUFUnBlQU+Kqwqp9TYUa4sFBSiJXPugjASYJGShDD/s/5T23/Sf0VOi4MdVSVR6A+HhOexcPd8bhfDT9MhtVut707LEb5ZFUEBkRCBTOBrI+hsXESPL7N4jn540dkDPCvzO+p/J++/8r8wvzb95+wjArR0QvNYI/mZHl3NGJehuPd0pflhrjR+jh2hNWvoceHfP87vu/t/InmgEif36Q5/jF8y+fg377/hvlV+cf3j6QR2r4jA7J1Oef9LXqzzeRW28PnLx9nP29Mfs6+fv182K6y/bjx9bgJ1/NIX35vpxN86xA+LwH+WP0fe4ycxDTOL84fadt/HF8T//j+E+x6xwlLZDpeFvdrI7E/zGfGy8nsy8M+c1zUfh0ZWH4CHaN77BvwhfmD3f2GC493kUJxfLct/JH2/d8G59fAP7z/VBQLrJXUQyEvfc9xCt3sTuyWX28q8vFgHIfjxhLcENEj0gdDoV7wvb6Az/6HOW5c8QD/6m6c2/E3fENsfoYvzh+EUhv2z/zC+Or82/efmLzv0ENVJwyU5wej8Q+rw5ubi/L6YRiG3cb3L5reNAitiiK9W4XZCr7XYXzCEOGP3gPBr4irtzTgi/LvhUvSsP8WfHX+rftPpgoVmb3y2QCVOGRX4WIVvW8/b0Iye2/Ru0/UBCUATg8o7IqXtvxkmLbga3X2NOG7jfPnbaIQxgl4/GQzv+Xj5vcY/vRv2H8bvtsA/4b9p+KjVt8rXpTpYUJEvpWU0r6ob+/5ecTkRHF7W1aQRQCybd5hZglnVQKaLFqYHPLbtxXfpyh/WuvbAwZwFFDB87UZX4S/dMFq2H8zvij/+P7zD3h+NtthYsfcFHEW7hxTIiiVQ+enC26TzX4YoBeT2WEY9g/CYcWAbBDMKIBCJJcAuXNeAimjownfJuML8EfMpQXhA4YGq0M1G+e3Nnwx/qPODftv3+8l/g37TygwyMdcWXMfgsVn2j/P9fYD0MMUd+v1/au+dB9V58LJG/HxwNdSDd+6Hd/bC/w5cHXlNoeZS0Z5Or46f9fzcft/Kr5L/B+9/1+sljFqHEEQRecSA84cCAw+gB0K4QYJfAAFinQLn7QzRTuBQKlYlBk33ft4NO0ZZrRVXq26uzxT79evndXUERKw91veMAS9Ncv+7rycv86fiudlOd9ZzDJ2VnRDtj6kIhvBt6F/kwZZq7kgvm394+qg/wF82/qP+l8GmGvWJp0+XHwainbbj7y8/5T58Ic0f3ArnlkgUHuj++YqMtd4GsG3qp+gLsVlEpic2bD+beqHwOOD/l/Pt6qfOOb/VNfcwwya+EJpDeGk7doB19fUaVn+vs6fjte3ZTlxO97tY9VEOUSSAUmP2ikK6j6Cb0O/1sjvUPMLWK2oqSi+Lf3jn1i7/Q/j29BfF8f8n3p1wHbjqlxFWtgydX6f56viEYVIsVqlsf8yoECi4Zvvkg7kG/XLAuswHK2pCFElkIXvMYJv1G9peWvs9j+uf+v6iQP+T0ir+RpcjRIagCS8UFnLlv7n/Hu+Mh6cELtPUev7GOSoEgipKV5b+n89X15Oa/rpMKR2GzIUKYLHT+OL6d+afj/iFt7vP/0L4FvRz9f7Ef/rALe72FnYHQU/NNRiidI6v+fb+er4ds5FIUFJmkl1zkzXRPdYVFE036jf7nOuI37UZEpQcl5+BfKN+nW0b+wB/+P4/q/fggf8n+o6cZGRPHcxRsLL2v8fUEZMiOhqAucXxVM5Kz/rwXClWL5RP4v1PiWMaq+699kTzDfq11US4O7yP5Rv1C8ssc//yd6OYcJFQlp7d3fKGX1Xxm3Op6Tr1NniSyvn8KYUztfrt3CiZFmWnxEJqC4ZzTfq76pr527/o/mEEFPO3f5PXsHFyaza7EIyUV+Xm7/l/DAHxUPObxAhAToGo9Zl5cu2cH4hjuZTP4SOSqKuCsB1IHSocobzqV8X5QU27fU/mq/XbyGWe/2fmpSEHLKs8IEyjIm79p+/v+SnOSye8ss981h/40Tb0fnLoZ7A6YK5uQ/luyt86i/vdqIbBFJy0Gltafn4/vV1ffKCBsg+/+/P0Xyd/voi2m6P/2U9yawJzmiXManGy52+vL/8mQPjI7/fJMOCdLU/7baa5qfuJprvpfCp32r1zKDT/uO8Iy/9y+F8jiAricBgPAaX9b/xxffviyV9HnYUm/4TUxoDOf94K5+WNoIwjOdL5FxQPHjqqfeC0IX3WjwWvMZ+AQ899t5Dv0ERvBi8CGoSSeLfYKBUb2lnSRq0QYq2SaXV1kMnO/vwsoy7+27cyRNdd2bB/c3zPDMh/XlgngesvrofFHPU4F71o/DoRwSJglkK5u3qkGs+2zVCHPgEfGydgY10KFiDez68DcVMlAFnWId8IAIVsUvp+ZsTGIoWQ7c3rtu2/ig1U8xVM79UyapGEgzvXtNn88cdnw++WCYKjgB4TmZiYcr+2T2QC7BT8w/7HUrKHyokw2O9yTWe99XzYs56q/xZG0oq93yz4IuVnYTeVHF8iw78e5ruDInY56aS72S0BcmKKKU/d+q+mLv6qv8QCcmWSVPnsyEIdxRjMEinwoe3JYummW8akST/QmRluI36TvbyiIgn5/EFk6ueKXzJQESEa/h6M8E0Nub4d84Zn+UZ2YHwFBl4C9UdH6zi7YQxwTxB/m74Xgb+kd0vZiZB/gWr1ESoBO4XMMAqww/+21CVig70Qg2Z3FpLCETBxdyDDsxk5IpvUfMRwXNmABL8jibAiwGtQ/9orKhr7I4ZC/KfiG+n1TxK5UNHcQUkKizIv0AQeDl+dAC+a/FzDqmkhjNFBxr4qoRD1DgKHkyCEVxmkn/Mwyx8RzfnO1n4gAXDCKcwWxYM3/MzeEcUDp36h+gNFrzjNCk1/8n4Po5ao9FGKh+jIGNgIcSU/FFgq60YCzRUb+L34c1NZ6x/ga7Hurys1c4OJCa8UkOCLL9jED3MW3yS+l61q43GNeAy8nkWD/caqeAGkwl8P5ot413nCubBvtrZ2frm5tra35WVldtvEj7bMdwl5w++CfqrdbEh9C8WKj3/Aj1WS/4wFrHV7fV6X09Pj48PD09O2pVKtdrY29vf2mpISjL4rEr0eD4FvjR12mO+xl6lowcyviVy5d+Hi25XexeaB/c03b62r1xeXd3drdfr29vLy7du+UrMJ+9vq9lKajD4fPDxGZBNeRT4zo/doJ9MBuivjsAkoAP4KWnwa3+YZWUeeWI+W98vw4ZowOpvzIr45GhyvlGXNz+7Z7Z/GQXW/dU6z8yXW7690+NDvbWqmqq8ulu/DedbTS1ucDKfFxexJ2l2QWIyy37FE9+P7eIo7gDWAex/kRxx/hPBahIegC9V767bFfCNAdcPijI+iy2RUM5n+svm2Qcw+rtcS+bzQJSC5mX27z/vZtIzQxSF4foTEhIR08LGztZO0IteCBEkNmLDL5BY2drYWoiFdGJhipinIEqbO42OoTq9kfYJTRUibQpxbt16vX376nOvNpxvqKrbQz11zlPnu6rLcymuwJ2XrJX+nt1u5jPFsautqzQ4pr4qnF7/hENe7rnupYAH/Kz3ikReEdhDpASogC3AmQiDN/S+uwAqnB/k06P59HplCFtcHvHZ6RbyrcIPc6MBrtLyR4Hh7+3y9KK/rsCRfPLNNYZe/89K/oQPDXhE4GMtE1CYBut8PhQG9M0EubTfOBT/0MzjZokRFCvrLZjIN6EBX3iRmwIcCRu8oJeN7G20Blg3o4QdqQGeBz4t+jfY4ajItTfBFy4XPotWEa3Ct1YAHosswKfkjg3Ym0BAYC1/q/wm7JRQq7+eP0wgrsBfI/C5VhsGYx6s5K+H3QGIimFFr38y9jokloayIHxPPrRFm+I7M2A24AezZt0yBYgw+F1v/SoT5d5AZRccIjfYuAY+Jbr5bedP9DUoglNM5dtS0lS1ByjL4djMbGJscv7CEwgRBgJrfCgoqeSbA3r99fraBswJhBH4XNsEejAM1vkkAAQ/ebYF6p/YUbyDWaIU5vfY67HN1We9LZPxJsyAH8hDd00HaQQF2dX7ZkEQQEJQCZv1MblLPjWaXx1Dxv5G7+hG8Lkg+MEWmTHKcih84w3Y0jlwFFjlowRcsp6B+qv5G5lAQGDx91iMweRzMEBFAgm1/olj5KSAHdjg76y3VhH415cgDs8yBpsCwGDtbzT3zOMgV4i9I3zqBxf3OcW84PhrHbl8MYJPx+GJxe1w/oy/T/v9/gcTuCBsYqaK3MTFSxBY4SOQt3+Ocz0+f2MTCIk37daxYzS4Uvj9MZ1PD73+ifrKWuitV6p/oX/dgEVgE8fliMMGv+utVAGm4WN0Xwqc0oBNk2vM6HybtbxNzyfn/tdm88DP2PMzzo3GGwis8E0fNT1/N5wrEBJfWleNwL7Be/5yfRlJ9DNrXHLxsbdRExj+Og1YBC7j4vYIg/dlH0NcmjkfM43vA/5Cuw3Y+ZhA4qDyFus0Pj30/JkG7ApMg0ccHgYE3tebgi82f+MTiEbraV8ENuEYLFFE8dW4EhsJnzxND/6crQkJfN27BnxyVrzBR7PPk8hqOnZNvnS+4Y0bXgOGv84kcyaOr+avYRO/4vMnqTMdmP56PZgCT5c/tqJp6zs+gXhyFQLDYEyE3xeFwqe7p9c/4XP5iDvEVd+eLNMu+HuXIOzfZwgcY3CaZe6ZyQ1gugOAi+D76vjrzIDZgMvC6HzEc7kI7Af5NIEdg70WTIFVPt0Hvf56fcsrENd++nv2UlsEbtPgNg1uFiqfrxtPe73+Sc3y+upyjC/FAJ63KOto9nkzYApMg0UPLTrZIuzYfBEIENTYd2inyvd15EOCO1/M+cUG3HgLfyXe6nw1wKHz17wy1MwoKMmq5E9S586BoTDlpcAq3+wSqeJgLfFbqb+aPwlMICDw5cPlHNgz+Ob77ouimMS3EwQlEzkZWv2Tao1PQKYl8Dr7jR+sya9N2TdV4F824MZWPsPqocW3bBvyWqtMwKZlIGZ1CIBcFeLL2YBfLlnSP88GfORBml4MCEw+pBCuwmILiGGkH6PgixWY/TeqA5NvyyoA0U96oNU/VF93AiECX5ppU2Aa/H6YvlhaKHzIEOqGYgNIqX/ChNJLBHSgwlwph19l+7QD/HUDblz6dEpuAzTxNizw3uwV9skTaLwezjNoiPDt1wS+/rMBD5csmZ++uWAb8JGLgzRNFza2xwi8T/hsUFg/l2h11RB0VvInqTMCU1/24OgOTD5W0gYZ1foLnyowJxAScs2xcWuAGQQMNv72uyk7sF9fJocLIJtQ658QGcEBtzB4T8bu79kJVWDvEsT4p6BhgU9k38DBY3DYFHidL+cMuC/+SsxcOXLkzMVlqYnBZRIG+fwgrBIKn6RuVOAprkKQD9UjDqnU+gfqywkEOvCtAQzmP+Xe9wcQWMsf5eISUiv1T2p/Ep+z5UGB/QZ8Cf7GCDzXFYT4irqRfDkvod35kKZLSoUrfdP+4zjCNQ4fDfnT/FFgXoVQOrCev39UX14ChsCHBkPX4NLfZd0lFFjlY+Iii/zHAqs3zvozYDTgeIGXZZ//DR8FLvG+DNORGOxwCf8/n6Qu/irE/+VjB+YEojL4UHfg9uD2zf7ANOBm8Q/4/lzg1500QuDbDw5/+XLv4Z1HF668LWcR8DdG4LTz2u6rroHUp+HL3UvAhwc/9T18KeYUIx85VDadTxf4lx24OWvO6tWrF8+ZF8tHGm5MX9/8zJjAjUHaZQ92/C1i+NQSawLXvccxUFffr9NRb5q1/r40ByUf6sun+LfuPji549OTxm8I/KLTwe7q5sthqBPRow3z5bgJAvd5nRyW+j5oXI47xcjHXXPNJ+VmmE9S50wh/A58YNZqxhyNr04Ij1Spv+XTYljem8FIXyxJ0YPD/Zd8uqdq/RO7lJ86hpzAo3hrrNj1TmdWWOA33YEI/EEO9dDdi4dPf3ry5Mz2oB4MHCD2b4FAAnY8xmGz1Ply/yYIY/BbmeJECEw+UNVHs0XiipdDPADhUwTOmzQYFyE4gSjgrq6w8NWZLsBRBaX+4IuPoigNHg6qC2ha/yWfexJhg2Nq/ZMq9XXKMHao1UPlDyoSKbCdY14fir5PS33L/vv47aXfE7hCsngVKHJOcCYAoCGBX3p3oZUCHzECxxCSjxowxXaIC4stP8AOCHzbEXi8Ae+ZU0o7r5DtciIhMVkQctUhAi1W6i98UxpcfgJX+btY8bfko2isMMfqav2TKqtAh6jl7xV1RA2LkcMNC6xegogXmASAcFFcPVitoMD+TRClwJGE5LP7Rl4RpEYZ6Hj1WJTA/oU0+FucKxvd1Vbbbk8SxAVBtQGt1D9Q36JV3ulpphGH8lt3j1/sGoMHZuBpSz4/zu/elcEZ1V/h8+oKWTGu1T/BaPnNoLwMvhYREnjSJYjGrZlP8QKrXMTxIyTw+F1ojekEXlFx1WLAeBh6B5bUuQJT38rfeXuOta3AEu0mDPb5QKdR+fWPqO9TuVvL3pGGyxHDWcU58/nrly/51/zhkytvj8i/J57E1peMjm9q/ZNfDNqCmK+Q0q/1Sb7fgCt/zatmYv8R97quhwKp870c+586EJj+klDlw4795fT5k1M/n3QdeM8P1s5k5YkgisJ5CRduXPgUPoBCQwQXLhVBHBBXgi4UBEXduBAXPoAiQRcqgogaB/THOKEGB7BbsojCHwdMjIhIQERPVfXxpKz07Thck+6q6jb91b0ntyuV7vxLnFjb8UWLJzUOTvnKiM5AMONfE99X/qa4X18oh+v2Fp8+hX6fP3/3Avq93IKsW3PEV2rTmmUzFTREb/RMhbiaDzsWXFUCHvmtb+acRsv9EWPno44Hy+ouV+Qzp4HeJ5exewG3/kjAnWEuL+kZwyYLvzL58NZPMjAF7LXajq+6xU+RoXUmn1yGJ6XMNiP+5DMul70XJWAv4C9P3Wf3dw+Dfm+gtULA4iND4qHAasWfGZj7spLmErwCS2rMhz0LLiTgh73eVzeJ9ujZpQKnZ3+iWdbFuOjBPAL+OvzO45OQWGwjT+yGer73nELTVWhBwJKuCG2+aQ2LSalM7tWuNt9DQ8AuAR8tv6l9ee+b1y/+oXnpbL6VDJ+CT6ca8a+Nb5KAvYChXx936Pecl3WrJr7pyZ4i48OIf2NK46EtbCq7SYmEWukIvcD34aIFFxLw6IPX78frZ3e/CBcpwiv3u7yasl7A6lDAUPcUFq20ruN7nyRgJ+DlfyxguU1McZ4jOIvkNPgggWQWguZSbXmpQRcX1PC2h/Non8XH3CtGGDmN+NfGN07AFHBoDLcaobVewHEqIqTibMa/oU1YqAhzJb55JWRf4g7bhqdsATuJPF/84BPw9YuTwp2eg4A/L4yh4HoBXxhuCIcjO91MP/NJTBJjCb4LloCT+4iCgLenArb5qEt5p2xhncIJgPL1hHyGgDUNTBtPJeCFW7fPUcBKwYn/qExKQFRm/C3/wZSA3VCBAnb6hVvV2qqJr+RGT5IhgJrxb8jLZUlv12RT+fqyjcMHFlzVVRCYbbkvBdsCfjDcKHl4i9+XUu2vuna0+d5rCq3kuzHqLP9wMxWwzceTE73EhZypM9h0HjD9hzfX+4ohBHS6rF1m4AXkOT/l6hTcloBjPgHACMoWI/7ks+5K5hU9kYARc7W2auLLMPLI8iFBjPg3fvWj+VuJu6vIVql753CHBRdNQUi/EPBdCJgKtgW8Y7hLoxmgkUIoJZCoZTbf0/RG5HMP3uQ3Jz86WWdxUor3QSeDLiw+aqBJlEDq6r5CUpXZtHO4ofpicQh49iyEnwGmgHH67vLOySfYMpNPp1G5knBW/B2fYUrAUCoF/DK609MQsPiIQWPVocCJZvwbLGvd5G6hkipZO+8f5hZcxXXAFPDA3at6ukbA+XD1ysSIIsK4W0FKdXzPZt7I+amTBesU27fffKBvaqv49tOxolJRNcEKnXyGgGnxEPiuE/CXO1ehnnCefu8EvCABR3ypCcaIf2184wRMAetW+/Jc1rLju1c8JIg5zfg37J2NvvunPY/GBEyBBP1KwF7Bk081syxJl5pcNpsxT2I233sNIPRLELuhju6g//kLRpqTmx+yFV8Gr1/3u5ijMvh09CYLKXTqRIsPnosF7P7FAn7/8BqEEj7+f6KAUz5LEOa22vgyATv9SsBRAq4TcCfPA4Y4WCecGX8JmG0zPU19JC86yb8YdNSvEnAsYOjkLuaDLQEv5pOUnWv1VIuIH3w/jJ+FiKfQPGAry86DC/YKcuhkd/uvvfUhmwq+pqFQbkNJlORsWnxgqxoDU8DfkIDLs/cVZeCETz6qIDTiDz57luni86u3YgGPygSsxtb88RWmanb8Gwo76VWP2ptq8zVf3ZSfmUvALSXgSMD9wXiJaY/yTUmKlQYq8p1sj8n3Jk3AnezJoBSwU/CK/mva3WypwQezRBIkRGwWLP/Bc7d6s4cQSzkG7i4sjjCAwI9OhV9E70LAKR8PGruOsrbjDz5ziIgJptGjCRimBYysUC9g8cVHZFE8dvwb7Bgf9HgUAOxJ4cZJ+HA+sQScJOBEwK9qFDzJD680cgSpsEj7ST4jB1+NfwkCA4gx9Ptt8HIAATsFL7jsO3ACHkgcEd8+ciXuZ0FkMR6Khyr53Mnh2vPn+EbralHgS4EpWwQJP8R9wQCCH+LcRPDSlE8xV/DEZ8cffKaAOx++vLm+ORawblW2BSw+IhAqfoPZ8W+gRTrAkj11lUQY7hGeVHaef6imSxNwKmBbwb28WBn0WYKxl0QiH7eQmdtMPtiba8DTJ7gfWRcC7q7Isq5TcBcK7rezMJBoZ9V8eJaGQiAQYNmgJxVi8V1LfwuYdh06/SXgK1MC5jxwxEc2icITy59m/MFnJaizo4/PNl92bBJwuFX5hohb88QXRgpSkcaMf4Nl+vqXuyl2bcZDfS9fc0tuDGHTBEwBn5SAXw8MfZ3Jd3CoQCwFXy3SrkIV8B2faZ1n0z/Fsza7Pxh8zpx1X8GQ08au0oaAF6iOmI8SoHhZIpR0rEA0CV3N9yb9YwK0lhsEcxoNdQgYxhFE4j+ySJmhzqIZ//VmfDXYlYABzkZTwOJTXFESKpvs+Dccb2CPTPGgKKJak+sD1jmGU2hKwBTw0VLAfuRmnmEO8HhysIzdiVCjIvksCRf6LbQsQwJ+knn70oe1vSiyDCn4MwUc83kEeZsipdOjspZBIRbfx/S3gGmL5TcZT2AfP733AmYCTvkIJ1lEZscffPZt9ZSqBExRmwIWH4Mqrrhsxx8CrrA1yWvFfeSWwjjHVCRgCbjuI9yHvJgNBzrRJFgqkc+20W3PJwEHu9+Hnfwl4PuUR8InLq1jk8ojM/k6X70tptYD3Pi334DkpRApn212/G3/PQ9a3S4bYV5BCbi0c3Z8bauLfyNq14olFvhIwnPc+Jx6UQmY+pWAF47eH/S7dXMQG3A04aRkVkvMZx+oBOxkLzE7nTlblmUv+7Cxq9zlECLh0xFFZ5vBN68tdUixgJ1+BSg+cJkKteMPPmMM0XvsbzNv/bIH/tRRfLo83fipN098DU4z/o0gzDVRqyr1dqx4cbeK76sScCJgXE95ftAf1Jzci4MJFMnYI3agYq+D5LOtt9vz4UNcmYKffB5nyz5DwAMoeNz382gpX34wHJxHFIbMjs6xXHzzm39TRQJuu6bkW4LiRHw4coiqJv7gK8D3n03xPVblLz7q4t+Ywo93deYb/QpL7aQCFluLUfVn/PhLONrbJSfd9cBj6KNt3rJSbPMIMRsjIb34IkzbSSy+WvvQAlmBaTQY/tAvFuMMf+kO9vnzq9nTaKNiW+xQyYGPYHQj91ZwbD5bwZhLo4B5R1HCl6pVRYLY8SfffzXxEUluiuJbF38v4KQ7/oX0n6UPhaXcjucRK8V1FvGHHB74e/umjFu7EIfVwXXFkRKPJCxQoIIL+EQnHRaHyVdrb1puDHEeg/Ngbgpi0C//4mD/brZsBh+PI5/Q31GCC5gExUL9sfxnKxh4/ra48+Ut9hX+E4fDYIwJVRd/8v1fE5/HitIifeitNv4NrB0rLWyBaS1RaENTDf/wFm1DHOetBLyVWM5IKlrVuNZOqs3P18OVRW7w4M0PJKDgIGDoNzP4dFA5na1USsTN+Py9/5ZavwtBPuHweCyzUB///5+CxScsWuyh+vg31hjGnWybI8UZf4v2fnX2XlccngfHcIJb/BFfb9RxF/NAvwsnnSayDBkZ4+AFfLVh8zW1XMU2li3v/oP/Iv1W+U/v75SKrTYh+f6bie9ICmD7LSVuuJ25N4v266xSK0p4/v1b9Amy27jyjO4TyCqzPykuO8Etf5ziftJmNqtRBFEU7tcQwXdpMCCIJfT7iAtXiuADuB+iEf+ycukiycJImyyaSLYiCRLduIoby6o++aYsu6yuqb7O1G9313fuuTOJeuOW4gbfc3zBhXxbUwxp2gK+FOu1GxP5S4AxS/oPX92AD9titAz/G9dRmO6lN6rU6RI27fDhyclpmYYftoA/Tey9s/8EkVGsEE/GXL4bQcVeYxLzkQoGpCzCBpgt+GoFfIkaYDXh/8J8j2DZsuEGmsOV9r+hElWieqCb62m00unDXXg8HJd+Bb+f/AL+ODy+uyUQ9wLRBjieFGat2GakfX4CX7X4ePJC+rf+hMpW0Fjhxloj23THS/BdDi+k33VKmujGtOb4/3yoyoe//Mj0b7ViyvC/sY3KQFUgbXijJkgGj7l5Nnyure9iOHskbv9HAJKp4hEUFSwpqvA7S/EpjZwsB/icUzmocENuWy3EdxcQnSyLOT/D/4X8fSD9MkrOaS3H/0aUPiRSKqlaM05kh7bd+95w9q6uvnfD8FQZJkj8XeMkmbAqJJxVz3l/ET7034VNDPCqiOEkRsJl8od+fkaoZkHJ8H8ZvmfoJ0HBF2SO/82oyOgepTsh8R8V8ny4rPo31f3L4TmHRhwIM8h3a8Zr+5v9eAk+9K+nxmeSdT7wDs/AD94SfMfoH7nWaoPI83+J/EWnRLWa43/jkup8jy+l9woJ7xNrL8+G7zUFfh3OboZnUbB/gxgxsm+YutcSfLcDGIWKRbisMTDxfTcX4UO/H8MBbJ7/q/p8L0OQOIl5/jfUIjJdr4ZwQtkL6uTt2XBR9xc4MIKgAGbFo+p8oX4jsDhpwo20sLwEXzIdsGT4vzCfmeDK879Rkidkyh/GLATP3BmGL7X0fRmGneBkDmVOsIoYTdTX5wv1e9CYCm4TzLRrhF2bD/0BIFBqMv1fJH/ojwoq1/+GMUptg2S/SF3E1Wzcwpth+FZH3+kwvOHbzA9CeWhCGBev83N/Xb5IPwuiUT+O/JAMUkrL8KE/RGMRiAz/K/NF+uWbspnrf2Nb3ST2q4kLsm4kWyas7bgK7k+r6OtVv1fnS5TI0YofAvSNqGwoFYcV+SL9GoqWY8cxH//AM+6vyhfpF/BITUnn+V/b31i/73E51/8GSAF7cilfnzMJVuTP4YcaCr/1Hw7NVS12/kABcyqNLmBbilitytcf/lt/kCB62OVRAMq8Zv5i/XyoAIMk6X99vli/lpjm+d/8Bd0xIbBqiyfyjUeF9P2XjX8/8vXBw2Mg9KBD1dN1rnWTTld0Y1+PL9bPEF7GVAnwkXnV+Kb083Gjy/a/It+Ufpiz/VcBEx0D9XTd2LG5pb2u8wo3/C+bz74+/AM7YNxcGBwPCkPC+gikqcY3qZ9MwxgmLxH1+Cb1E3Bl+1+ZL02U73+j5LsbSDYPYMkt6jn4wa7prMKL/XJ5+7+kD5Q1CdOFIfZOa8FN2q3Dl9If+24DCoxwoTEprcGX0i/wDo/n+F+Fb0q/imue/w0qqAOeZhv/9i0euKkb+kUx3Ov7gyel+p4c9P09lWHnAwuEMdaFKJh7lf4Nl97+tTlfQj+UnKsLTNsZLajVlIUKfGn9V0kV6zz/K/Al9duY6X/TdW2nsEl2qf7TK9MKm3/XEu7BLRQ+VpfFP2Z+7vV7K3dIazoQYfed3TWt8gsAGYHTGCbi29uUL60/yBhVjh+tnQOMwrYO37R+oFm1zTz/N+b7n/65/jfQoyX2A8VMJuL1YdmH9PS8789f+4dbTpdanROTsMu7jVgNM/jON+FL6deWiOicJCLMcFuTL6E/Ffn+O76jQr5D8SX0z/S/aX2+ybRegSNc40b4ZGOc8+Cdg76/mClx/7O1bRffdUYbs4NKDUeroEoQyOV8efppY2vi9VhbOV+efvuGuMD/nb0yvr3dDP1z/W8kiIvXjMEf6WylRsL8ZTStbVbn/fbRz1nyDra37deHMtqKT0ycqGVNRdF6Qo15UqvMk53V+XYRX65+u8epwNley1pjlYIrz1+ufh3sosD/Ir7e8mXon+t/A2qQfc38ECO0Na4S4dbq6E+JPJmR/qPdlghwNGqvA0DFcK4SogWhs80dJXyZ+pmEl8LKzW4VJZvmL18/Rxf4X8yX1l/mf2PXIw9QxgKXMYqD/V0rcfvXq//Le4U8IsprIiCCNUnZlfDN0V+2S5TwzdNPlPhfzpfgKvS/4bnX6e1LU9f8Zr/sdewogijcb0HA3cCJEyfWZgS777C8mHMeYIVkaZHwO2ARElqkJCskR2Qk9HTPt59KZZrhXlai7S7PdNd/nVPjizANcByC8u7x+4r8w69jdnUP0EsCFHW09nPE+JYcU2KXr/eKuJ7z8B3nLyogs2M5sOVL93cO/+A4/v3PwneA/5nfv0gxFFoit9xdBPXKwYfH9xv8P39/IyXlzW+VXZWP95kFqJhtrPrq4UjvWOq+YCBI7vtj+B7O5V9fI4HX6Cuad2h/7z/en8FfOf/7H93f/QH+Z3//Ug3Ism5Obj1NJ7tdODZJ4Or7rnJsW/7wxw8/vPmp/S/Rm19//+PDx+qv8viuU6hvu/oNmK4yyKxADWRgphHVis1hcQDfJfwdJpyO3KYj/kfwXcSf0rO//xF8Y/4Xfv8iB/pJxpmbr9v7oQ98dqVsn/zj20YyyfvHtz/u+XTa2zKrKQ730r2/VGKSsgkmQ8ji/vHnRyBFeXx7fzl/UdsBb9UP8K/7+1t8l/O//PvfD/Ad5X/+9y/W446mYW+dei3Ua++H+hV++eV9/4v7/pfHx7ffPfTmCmziPC+3kKG611wkWcVIx/jw7u1H8H3f8L17+C/5Y8SS4/w/he8/43/596/4fhYf3/cA/8u/f8HMQt6lCcqZs4wOP0pe7ZHw4j83/9KMr/BmRTEy9l4udhxntD+aB8oJeS3+c/MvW+JXkQuXXhaVaVuwScs0x3DeeczTyYGZ4BgEd7888DZM/7ScxX9u/iV5TU4VugC9J0oi8E2E7a9qOJxswko2XQ8GGnc1YEibjxTIXPzn5l82lVAeTIFuyImInqYFjBqMJ8crmgDce7bDh5awSWtgcAvRaTd5hL/4z82/1Is9+Cs2ThVx0r9SDzUcELQJSPYgxYLqTcNSiMOHJFOAk/9jYbHc7P50L/5z8y/U09OZHgx3UU2Nv2OXJSXmwwyFRQlLwE1rNsR4ddLAuuZ2NmMdADJgsdLFf27+hX4tasgN4KwiIGntMQox0GkMWKTqtIWEbaHsykUgvw5IikIUv/+wIEo96Bb/ufmXqmM5767ZvCRzxqM+gvFH2JsYa1MkzGml7LnpZBt0SMMJBate1JPZNX/w+Bf/ufmX3XVnpg0qiE1Ho5HYENHjA3BoJusqxO8AZ8xt4hpIypCODRjVjLtK5sm3+M/Nv/TGEnCYCqq6yMdltSZ04EDxOl/uLuqy+M/Nv9Ajt3FIRp/zE+AxMcxYm9d5bKiqTOw6bLn4z82/BKSc9UKxKE+nkqGjPR3n1HaQ+8BtUJq3OZrar8V/bv4lgAE5UQBinPKKZIGMuLiWelaxY3MBI6UrJ6wIreGgUNVVtAxbnQgv/nPzL/0WrtK7pxDDBXpqith2JFadAO22a5UgvNWzfefCThWbaewwb4/xALsDoF0X/7n5l6pVu1ec9vHU9ikRTaQiE0iRBBMgsxI4kgHBNrfO69volvOYT9RRJxrWWpL7SjvTTrUbG5CNYz1rTi9d/OfmX/hBtchpo9Kfmnrqd6XVr059e7ejz+00kC21Z9SKemypdKvS+jep0Y6xZbJ3NtW5dAqeNXFvAIN69LwGe4ueWgAOtTH0dnbNavlMW/zn5l/qnD67z6pKf06MO/VN6NuezV+Fjt1Bp105Wd/8Pb/bdkDd3Hu4poGzZdqf32gztljP3/G7M92tTdcA0mExf/Gfm3/ZsTOy92Q07v3tg9qDyXCIhHkU4KGa/em648LHJ2AqWjto12Yg2Hu9qIRMHF6btvjPzb/AdrupxAIHR32IWIGLAtCAg1OPeKiOq0cwyXTdewsTEPHrNE8R9+I/N/9ibhA7XUUzZ1y5wzydJlL8NEy9kS2mP35k8FFSYABu8Z+bf9G8UvNMYg6K93gp40ZCyo3RdJqsNRxCPMniPzf/ktvFilStHQ08g4CbyZcZuSy7DjoHNJDFf27+BR8vSWHWeDMWUZVQtce+5sTE7MrD7GaO8x0SEnAgxhb/ufmXRCiw0NJlIIXTKMkoMEr5asRdS9w1JGQuPMIASLPjzMV/bv6FAlsYtYm92A2d0g7E7kw71hdxLusONLx6oSF9VVyk3JlKxmY4KMriPzf/App6iBk7YuobMejCWgQ6zvEJjYDDaDKM0qyZhDGhjQf+DGdhtFDxi9tx8Z+bf4FDdcCQdOuJ+7iZVgIigm0MIRCH3yKG6+gum7sv+socWKRVkQb8NI0jV/RY/OfmX6pJnjz9Xe2UAhIhE0Ph6cJIuBKlW32hYJHT7Ob6XIBz6OZK7APIbrgCGyz+c/Mv1qGMRGxouFV9jORGY5+620rCblDISaVaufviPzf/crVkycRSzqi5vfqyZfH/H0n5x4zbceD2Ijq3PM8gThhxWfzn5l9SP9rh0QVe4Wug9D8Dwsm0MJucIkm9TSKBeiKJTQC8+M/Nv1Dh9AYyY8e7uVoSjhbxEUQ4e6Ho7Jw35iQtvdY1wxTTLfHUpA368/InafF/Fv6l+3pHqqpIsGqM3KJYnLR2Fjqb6ATh3C5SuJoiRS/pN2kKaXhcmzDdLJO7JUjaLP5z8y8dl0F+hkxisFNETi6wgQaHsAzQy4LHYcJAcehu6nYcPrp2DV8AILU9sPjPzb/cIpS9eqURhTY9ATLoo6pRSEVDEbSUxp2FfwjT4j83/3KE9hlbIst7nKTJO8g/2OlQxeI/N/8S5qC+eoWyn9VGNYDKQxVxDSDZ1jvvEQzWIaEkt6Kia6hdjzOlufjPzb9s4BhNfru6VB3+GAEwBylVehNre7RNIYeyJ5hEdJPB+jDYr+CqGCEkyB0MJTQExeI/N/9CGZ0QSQemEYu5iFDIVsUPOiwYkJSLeE2X+K5iu3xnONXe+Bb/ufmX4Ax0VbLADGq6MV5UxTy3NeytUGwDRcSH5bYB8oetLP5z8y+HN3BAXhyvNDkHOIaZRs9Ba9XiPzf/8slq1Rweu3QTOPszKOPK+jDsDFn85+ZfNvZ2YSHNWQ/8qCpxMoUD4ly5JEpu5+D8qcwwkjJyzMDiPzf/AjvZNMt0oihaqhSn2Q4GhhshNU9yWxpxJnG6Q8zWcR6G4aZXY/Gfm3/pS/DptuOh2EY0NW4Bk4Dk6RB7NjOi6NJLjEnUPu5YELpaL0rw0Ac/FKla/OfmXxgQBJeG5Dy9hbDjI7orDtStUOZCt0fNJAK2120Lv1OzBS146xf/ufkXrCikjG2no+aguu942Ng9GqfveGjxn5t/ebFkycTyWf4FvnnxZcuXxP8z+Qt8E5Usn/lX/XL5l+24aQ8cg6YnWuZTax+T8bV8HebXcySD+ACkmAZ1DF/85+ZfHBmZ3dge+2a0jCpw20y4cDeP2RwW5aZ0MMwZ02MMCRQ6vBysz+I/N/9yQysy6AvD7SYgF4DuGjmyZwUkd454enrc5OuWY3ceB9HIZbqoKkBzPmNFbpT73/N/vfj/f/gXIECWG0ONVmbEIiKkxFnYTaPItgQN+FVMD/0jGObEpim+txXr4j83/7L7XxPOYqkYTVV3G5kwU16gDEYRARaiM9eO0Qsw5y7+c/MvpqS8dny6RX3IyJHkzllc49WbcTwG6HGuYBf/ufmX10zdTt5Q2SNWkUyMGx9CxGufkRjioFXEVA+qNkeaTT1WXLMpvSHdCC7+c/MvPbNKL6iyt5BLlRajCdtAEYL7oBEwyImEeXuvnR1TQGE1eXjAwrT+8Cl07c1DFmgW/7n5l14hEG7ogEa5gaT3DXlWYcc0D2haCxfHRHYskiGStUTwUTphTesX/7n5F6o5FE1xqAbyyY2qfh0XbWt+2dhpmGIwCzW5dpy/+M/Nv5h1WK7rM9rIGf3G4eeUxX9u/mVYek319bgbeclnCfrZYkNurWQfn7X4z82/qAob6EoAgU3yIT6GIjFGZXC6lQxGI0OxKUeWxX9u/qXX19PBmLTgytB66XXz06NekRpuMqxlAjtrxTFP3ZtuOLjs1RqRA8rICXPxn5t/qVaroFUHzFD6A25TYU0W+2kXlNmf/JnsjnlNq2JzAIGLHQAmRNkbGQ4hE32nTsniPzf/co2QAX2E8DdPfQEndXKqosOuHhKnFEAm0CTCQgtBY3SDY2Chbi3wF/+5+ZfAYCTf+DMb5wVr0F5/TujbOiwS1BrCcjGL/9z8yxEc+p5FbJ9H6Bo7DdQnRFM8Rhf/ufkX9ZxjW3ifQ5AeKPWk2yGoeiOu7FNTQE8jEviYi//c/AvhFLdSthyc+xEyhZgnZ0fGpOoA7MGgegIuZRK0pxMW/7n5F8MigwBwTemeereTZxPobeJo68JeeHiJ9r5uGI1pHYFfzD2aQQJI4OF6WgD8i//c/Ev3bnFiVaEPRtN3tUdpR1IPasuRfC8MdhtE0/2AwN2JwHU4zV1KB/gkkL74z82/kJmLc19vgOlPu3JNGbqbCK5QzfUyj0ec5M5MsYU5mcbiPzf/ghLlpQU6tHXS/5ph9bEANawVL5eZEga8URSTnFwvcjgPy+I/N/9C+KWZu8PmhOyXycoHGpkLflErhjUYqq0zLKBjJYEniRWGF/+5+ZeqAP+ltRCgRupyc2e8m4MMXFQHCxT0a5o2Wne1SKBETdXAyoHZLA8qsESz+M/Nv1DY7qqxB09iAKwWJRz4AUj+EyUBdI8tPQQGEb5PYGJP1yoOty8eohgczbv4z82/NFucPY3mzW0/SdIecsATFmZ31JNOYnAsUfxEmBiwS9LfNTPSdHbliF0YtfjPzb9AkFQEi7hTU2eEOLOws8B1e60DBXsUB0MVWQdW+61n74LpopDF/y/2yiVXkiKGorEORogBMHoSErxBMWARtf+94LLrcGRZJAkNghDhlxnhv+91dar35r9EigZZDJIvZWb0bvLVOdI1eIf/lgj4j3sc/nvzX39uOY7/i0L9f08O/y35r9fx0/TrvBHTp8Vxr2C6tafLGFe8qRu4K4f/3vzX7wRczk/5/hTv5Q4cZKKdjJqveo3VMAN4rrM9Z5rzDv+9+S89mQHhUJgdGjQ4hJaxtGFoubk2ohdha/rU1G0j8lL1294TMSw+mBA5/Pfmv+LgA3NAnvjTzgQvfKmVLhvcqJgWuq3yuQzLRBySl034ID0thHgF8TvwTZX8w39v/iuUPhDovzBanBoR/TaOeE3rcVwwBRZRlkYQVY5tOZDLKMF+tDzFn5erKYf/3vxXB/VLXowXnR4e7GYNMtlv+BWj039fZvH96OG/N/8FqqyI03JfA3OEBPRDrTtmvfzMvSi4FZqIpNGlWB3+e/NfeIxKTgx9rNlg1fQONxEaGm5uIi2GoUuVT586FKBUdPx+MjL38N+b/6K4bsBkWOK9IbHIKiMtPPGmRu5z8K8RESGJRqwYg2RhA1Hy7BogZteUZ15MkT7Fh//e/JdTCWLXsLfjWdNqNNWJLzMqp+/iHQBWxouOmyQuhjgqDwR8awFB9vQEUBru+wkIEhBX8KwRz8N/b/4rPWB4Jo7MAPwz9ARXZsFweXKpDGLuhV2ICD9oTLJBQGGrLwTF4gmSCNrqWUpWJBAWX7E4/aIB5wIO/735r2eCDHcGn/FmhmOgGo3omTwZzCdIsJT6xrOXXxctc5pmqLR6Joj00biU4lQUKivJ5WTKsRHQcfGb8JundfjvzX+lX4FjurPgWSquah/XWFSugSoahU6hIzKner9KQiGb/uEe7a1EMKqu1gL1EJcTMfaTYRqFcvjvzX/l9WHgWbZfrrkh6ckZHReibR+YskHkozyViJOmgK4eH9pdSEBoaL6x2Fc6WP8ztcN/b/4rGrweGqaSfekd5Qx4ViyDH3HXIV74fYQfsM+PgkmznFGdigF59mBqjSh+CaeQuU7qQFXP0yUSfr4LgQWJcB/+e/Nfr0BB/whXNgdyuLKsdhA3vOxR0Ao1eCu5st+IWVR1cdnhKYARyLpq8JFXIqj6kDeRMkMLT7aLpzWv3vwMkVNEsm1MAHFo1fbw35v/SiUapLgV+NCvpL6uCtZ3XVizBhwfL6mceLKCzOpee325skXuOvV3MtMrEyNHsDF+DQwwf0A5tUjJPRaWmsaPluHQDv+9+a+q/LCKycW4lHTVRXai1P9hvEIvgRBNKo0d0IGGtHZmStXY3hbGCOAFOg1FkG9tsqoO/735r3cmmGSWVhGmxQhwIbjMkRtXHIIqi/GkodgdqwUZIWgkVSkzUrxWH/5781/6+vwp5EHoxzJ+NOKt6DUw+RqH1xUI5poCW+3r4ZqH/97814+oQ0B3Q8ynYsxsgVHGjXIx/prb5e9gqa0P/735L9Xb4jw0nLz36eZZBujv9XD73fZWtCfcw39v/osy6rFDS/315KC0uJVKIDZq66VmLIA0fZ2XoFLrXcA2tmk1nUyhI+fhvzf/xRwyqIAsjjroRSKF8TJEvr+d/anewJeLgCdaZ8vWDekDmYDKbRbTsQ//vfmvolQxADCGGlP8jgEOLkZCnQxcbA4XzCh1tAF79yXH7QDVjE6cFBQOfOQd/nvzX+r0xK58VIZCBsGrAsU6bYCXPcoNJyZ+28rf8pFlFwOgsHO+djn89+a/Oop5D6z9dMyUHwa/wX34P6jDUjXjWky8yqXh4b83/zWnDc8ouwI8vdR/gXzYymsMGsa0pxz+e/NfWg70HkH9ajOr58x4naahoOPo6Q2DTSoitNnJCJXK4b83/6XTAhLSbbGmRZkVV529T9mCsiWC7RiRVb2jk3Fd9kChNEvsR/H4ab0O/735rzJIyA0AJP9S5aa6FO6MjqENL556qhpIurEyGZN0VFABtTn7KqDsdAJ2Pfz35r/SDfLSHpWEMx4mOOAhi0aESrfyyH3hjpNEcstDOjlaAKOeFohN6QNLR8oPFf3w35v/AmcMsp2Yk45ipweGs1IeVYdBNRm9U5/KOL/FMLKOmamnu1VxUAcC4hfyOPz35r+ccS2PPB6g+iJ53Eqaideehy4MHbyjyeG/N/+FC9Kewp5tqNAzx5qn/YhnYDPKcD1aKBrTNH0mT3CpH/5781+qj2pAHyFq8NrdXQC3jAdn6zPoSFoEimkkaDq9rY4K9bA4kCJRsA7/vfmvhzXgn59gBat/bYMtpKSBu22hk588WKPoQlJNBVXUIMHTfyhKgMk+md+gVvLhvzf/VeFWUhkw4QuWA0LMHTnCJRohC+P18NLWeuqYSgEuLn4jTDeGpEF1OdzE4b83/wUQJriS9NrXqYDgIMm94AEYp92gShk8cHFowoc2jOJjZBRQ3G5LMa2Uw39v/kvKUpKmNmKSgPWM77RZP2erPLs0mpGhcS0wQcMplyHsCuPw35v/KiV6Kz83WsxmbuNCGbeqipo08dNMjVswsxtZOLJan80ET5Ho3j/B4b83/2V0gBBKEVCGx1TDWuzZfFs4nezeS6OHMCgPk18KMXqx5sN/b/7r8/Gp9UlRaPGEOx7CqZWPLgzkqZcBn7nP11FXThIJBRk3EA9kssoxziI/Wr7mmCQMGtT4vPCnC+Xw35v/KvuznLUMCBe/ND6rMz2ooClMWQzpcbi9POEfDT4f2YQaiEoamtj0g+eDSm/TS0rRxwIA8/k4/Pfmv+IgAfkcF2G8j1Tg8fl6EjVitNIflHwSqAuhYTbjgV4ZKu+VRovom2NpS95DyFNJsOqH/978V/nDIiuNz7ypIUqbMgViWvfR+91QRx5McKSFcnUlw8g2VOI3WF1I67UyPPz35r9SwbaaeCnVLi8Fn4vCCLWqwUFSmnmSCBvwtm33ANkKUzqnQmKiYRfpkg//vfmvDNidfGF8ksEkCPpZ6NSLR7gywZTS2ClMcdvUjaO1kCvgolP5AIL78N+b/0qd+myYgsJ86FaOsQzA0fk4Uiz0Q3IX/UeQB4BIDMGGoMSFw2cLUflJu1LLPvz35r/8CvrXJ22oSwzMadGMKv3UtU2AhQbk9l6iJmQnx4IGOIRwki8m/4tlE4f/3vxXucsSmQPREbjaUr8hXbAAsy1tiwY7x5Plmm07ZlmormM0Ljn89+a/CooOv45v6BfyTfx1tigZ7NhdToZ0ON5E33TV2OjZk6jNBGHUA4o5hI9+ZNj38N+b/2owphAm45vSuElBZ2oXkFBLGW25TBcidyuIFkmSvSGjZ/XBDmMs9fDfm/+Ky+rZi2mozI+7jJ7sTS4ZaRMlp7DY38yWrtccoTmEUyCYWtXHuYf/3vxX6AwKJSWzJBkXSLjyQHUefWhRB9BCAECwdceiJRjg6nx2YnG5THwrTAMhD3g55I/c4K96+P97/Bd5ws4zpGMGU2bSURLmWOO4EjSdFJeOFyCC6JXvVxjmfkeNXFDQOd7q4b83/1WXGTfFTMcMEYSOmx21Zp6H7UcU6eynHP5781/fbCbfffP/lv87/y4b/gM+cuRP/wP+j3z33/0TvQ7/vfmvHtXSpQ/lO2zuq6Fcl1nZNP6wesxRqgOp9tQGDI3Df2/+q4orHDI44LJVuuqhxBx18uJElU+1ni7H2c10G1PWEE8S+EjNt3sP/735rwjArQIh6ZJWZRRV/jLVKx/gStA5FLrDunHmK5vezhFCRPAzyVJKKMAPt3Ic/nvzX/CEvWbpzOQkSf716GRZTusLxVMHFn4TU8BCvl5FVqmZ3/ZQiV9Ry334781/fYVp0BzlOqbnnl/56irRiCzrtt4krZ5wLYf/3vxXbzMNTv13AN1KpetV8b2Z8VLNJfRrOfz35r9E1xCzFcW0LxfbqDH3XoO/DdXhvzf/hTFCUOjAjXLz6LyESMOvEqwzVDjHHE8nNrADewmtqTIhKg7/vfmveGll23wcZn/wpquOEFdBYxwU40dhKJNwmMAQ9LJpiKdtavD0aNGmHf578199WAh90sJLjAZ0q7cP7lyoKcPREAiNxmbaXp5sELi4SShTICZUCaPMz6TDf2/+qxWyEvkSbh8UU82hkixHAsipednaea7YPJ3izCJ055kmoRAiIMB+Yzr89+a/yBAHZVPkhFDUD040mIlDvrpYvd7xZZJqW1cu3bZi4Dqm4zv89+a/vrovk1ijcrt+uu+PmV7NbtxscvjvzX99deTIxtL+AX+tqudSzJrO+33u9zVE9Evl8N+b/2rOkYLr/sAJ/D6RicCTg+vLlqD38N+b//q6e2aN9g3GI3ZNSLfVTuNGu+6TRPQPXhl2CuHDf2/+C4c7yFPoxtIwwyw/VTIzKZ54Cbu99E0SFaO6bkKpp9+hNk9XXnSYu4EOUazDf2/+6+UlVHFH/jYZzI6hhnTKQUkIfkQx3RbtWYWz+FXsICH3XAh9QUmgsZY5yYf/3vyXTfJScOklVQPL72bmYSqaZvWwps39/vKceRosVYdAQuCVeYf/3vwXSV8oQrifJVeB3m9lueKX2tMuUB7+e/NfXx85srGcf8BHtpaF0uT7+Ku7u/HcFwumcav0y+W64eG/N/+VeSZfVxtQwfr+Pre5E4snnrlGs7IWfXKYgEfO4f8re+WzInsRQ+GAOLgQRYQBN3c1CxF71Ytx4QP4/k/kz+R+fIZg2Yx35JZWprsqf06Sc+rauLf+IDHRJjwhmhvTIwDD7ZMBqU56xZl1Xga1CIdAcB51S6q/ARjZmKzOo39v/YEOBvEoNYR57BQGiieZjwORykEJAFnFFg8+PJR5ZqXHavXV7DKW++Z8KFP98ejfW3+kA2OtcKJhS44MrwQb6j5Wv1pNrya0PMIxYaR9Wh7Czqmkteoe/XvrDzve3ySyri4Rr6u29WShDjv699Yfs/7p7XVdfZfha6zB0b+3/nBEeo9Oe30/xetV+q8z9QY7+vfWHzyDlxjOV4J0iIS0Gxi55s7ErHEzbICkK2KtvM0sCdjRv7f+KAddeXh5TxqvHjUBgC2mmkJakmQtHW9KH62JJGUdgO3yHv8IGLg8j/699YfsEwORjMCXlw5lauhlV43hLUoYrdKCh/UEiCJkSl4UCVnrgELn3RXhUU5sXkf/3vojXUAVlBxmYERugibDPalgcBXr4SA3KNqmtDvZqliDD06aK3wFH66uo39v/dEJ3nHcrJsnk+7KttbfoyJGNmvkVFWjLxrJVfEUavMFuPzMZyqjPtuzFSFk1/3o31t/XF9XiLzrc3BbG325GZODs67MnYXO8nTjfC01mrnzaQ2jOPQ55ejfW39cXs6su5IZ5p50AVesmq5+MvN2ci9P8FTFVZtFwIaUnMZcYyZ4Hv176497BlkHCQQZ5fGHA2FF0whdEp24JVy3QA2cELaA81Xb2LbIbP074LXq0b+3/shqgiggFHGGNEO/TJqKZANrOBmVbRX233rm8UD7DmzxRy/vLMgZFlNRukw4+vfWH5mjBZctwGGToMIio2I6eElQ9hORTmOKG3HBkndVxmrJdhHpGeBzcsvq6N9bf1jo+nCoOx2c47Byqc3JBk7RGtI39aNUMgnmqedEc5CbtaN/b/3ROgFOTpZ7bEbHBPrQoo3IZbiOFqxraEruk/pUWd7Rv7f+uK/tp79Iv1KcpekZrleBMLXsfX2M7Lrx6N9bf1BdrjYWXHkSXJPOrJgzM1Idrt9ruaUxwNMvIHwSn/TqPvr31h+1SH2MM/YNKkoIgEzyGFWjBVjdl+GKUGyf7knqssywlUFs6SRNM0RRmZDt0b+z/p/uUemawqSslcenOhhSDnPpKlj5VTCEJuxQSIFO9mREoTTT4iGbRElevaqWF8vTP/r31h9XDYAT8H7NGyKdlYXp/lrz5GSZTRZXo8zZbd7pDjMz52m+9dG/t/7AWRikuLn+qcnEHXMZhC1qQu8E9/Ekazv699YfFJa0H0JMz5Bjds80GUsPdI4Z1+fv+rN+9O+tP2gix+lC3YY0w1/69XiJ4JH4TnOXgE6guQ4mpnWt3PJMHv1764/aMTvNCUcfY8uvUt0V/zrf5MoCoIZAGDCELkwBTtAxnK9sWDsUKO2jf2/90XGyzZ3QrFMvvwxEGrsBlUsadFkmyDQEjygFScEM8QxsGmHWa2I8047+vfVHzWOAu3kOOEgdfaomyj7pIDQDhTYU5FhYfpNLb3noQDcSyZUJhz66HVEbjv699Uc6tQU55b04t//IZWa1gpfsbFOsuqYOgEChLoB1PkdGVaqvQ14EpCML5cvB8tG/t/6gyVn1HH9IyI/5CqqCm2m7Rb+AYSbdWcxvFzCNBncLfeHJXirwF5tV2ngmT62e5ejfW39MCVo9zvVHu9ZxBZu9eYw8VTJ9vLN6TnuUi8ai/PaZR//e+uPFpqm3GNTpJlkXjJjDCNc8YNKqEDie5jI72/qsFU/y8K3WRktXzUf/nvovJ/EBiVJT8Lr8EZG1dhlgunhQpVY2k1DIInlrFfvwTOEBgZFAGLxEkSxQByYW3uSP/h31586EBbqw5jPG1+HoqPZG02A1VqjUMe4S5AIzXpMoZseIOY/+vfWHUxf73242m9jNjv7PWH+8HDu2sYVut585P605/jO3o38P/aHr8DzyL4PHd4paV8yRrm3v9GhumHb0760/Op72KaXnuScFvnOMh1ldsQzlWz0/i6mYjENt6wbij3J5eVfu6N9bf5QGWarOVi7yL0Jc1SXlYxUyJ7JRInJnc14+rFIqw1wg5AYJsHbneoeXlXf0760/rgvTYwBBgUjIUzgJkPVmsONjFcoMqyRfJhMxzpfou+qVVAvE1vIFv6Dl6N9bf4CFyEeoniZu4atr3cwDvJjnvKUnSiI6xkhb2K29Srtfjv699Qfug3bTYeIsGr2/3R5B6A/n6N9bf+Dc3HfLT3pDvQI47bRWE4BoTpw5fecZOLnb3KOvLUpH/976Q3ibR+I2moT1vQbzGQqhbL6Ll7BX7gaiV4spQdFYoUf/3vrDPc5yilXzJImLKhFMC+iAP/vUEuRQdUOXg2w6NtLkb54e1+py90VH/976o5wbK8olpDf99LKeGTwrrIVwlWplXW0uuwzH/zVYyxQWFI751v0X8Q0kQim/7D3699YftRdyVQDpTRmRbLLJXwp0VMDteAVlI2tU7qMUBgZCAGaF7gI5w67yYK6oo39v/XFDDgzZgNFHnW0qbUAM2kS67fkgLlp2vi4gIbh0mPWFkew3MzWRLUf/3vqDPuzZ7a42hYfjNeg/j9oEqoPP5GAX8SRDs50iBOpoR//e+gNH/s/PBl4NZKrjJsCb6SIesCIzt81Qkz6H8bSjf2/9IdscX7fJ8QiGAsjJkoCqUzmEsqS3V5qADqcpbgKkD36W2Hz0760/rqsyl/0ZknHVVFHJj1k1gLKjVaHGqvR4PmK4d9qXgawbBii1x7XpUmEtNJHOSxz9e+uPj1xZbNB+kFUmb8SbDAnu+hkC1BU8d/N44CBCGt7wlAQ3qfTtkmmmXHz0760/kO9M6l2rZJFBqotXncpasxNMUjfnH4Y7uHTPQfioINnnH/176w8BMGE8KXvV2EfyamJx53MCAagiu91GRaATBBAIlaPMKNTJjqN/b/0Bp0EPrNb3Ch8Ql5EZU/3aLhSfe9AnzWd2uV5Xk/nRv4N+0lN/uFzkiBagx2vLjncz38rEhBz9u+qP52PHNrb45BN/ef5/29H/r1rosvsBBp/PP9Mvb0OaPfr31h8w6en6/kJxSd3U+qmc9oYBDwEsz3VGXdfRv7f+yJBEuhlmpm6LqkcfbvkVg6LacI4nZ6uNJnDJecrFLQNu3dFdztG/t/6ApV8+V5QXe59JN8G0kcLnxqeRGwIFqUqNayoHJdIFYxaj0CCTCkDZj7ijf2/9wcQiXIg0JpabNiaxFLXpw5wUOx1WDa6AQN9lkqv25eEMvTxl5HtTEObko39v/QEeIN043h1idiQ5Z046iwEU9D+YGU1rWldn8yf06N9bf6DyAQP4YGxSbw14Ew9lvcmO/r31R2VILVoWEIpTELfBh3T4itHVH73G2mwVwr14zKN/b/0xqDg/PyZtc2IVwQmZJGvY9SeyO+7qTGnQeAgwwCc9jmFmj/699Ue5ZLzJfShkjRLRXk2QFcfII2uYoyQpvuDsL1HscKQvDNc2Ir89K+uPPI/+vfUHoMwR2JYXlu2+i3BIW7SPsSWfSjmMpCyLCrHCG5RgPAHlwr/1FI4+3aN/b/1hrqF7JE3jvqW7evqohIzkpynBaCK8+tsTCBw6rB39e+uP2yysTYye4aJ9JXTQxV9PWqV118OO/p313+Lrx6X9sIjMjdR/xo7+z0//N/H9Yt8Dsfk8KJufSLIm6hpJUjTZOUeLnFvXlI7+nfV/H0+L58AbdaevpVlT34NdVh+vrLeQ933y7+jfWf9TfIVPtsEuyzSK+RDPHlO6PpYeQTs5WDYlM2IAeu9Sfud19O+s/6uImyPso7OCijhSV31RKJatjRo1lWdkDQjUmEkbOSpNIcN8IJgYVWNl04Be3tG/r/6vI+KpaPQfW0Um5Qs/UuVkqXkwri5ypNFujw/O+5qvD0g8H8wUMPCW/OUzFyZH/776v43LMiM5HNCSkrqCudmpibLEaja5WbTQ9ti0I9lW3zKHopAVrHG4k7N89G+r/4cv47KnPrpYgmZOfhqrKRQTnQcpcQOL63hoo16VSpSXLWODwKzb5sijf1f930bazVHYNIdPBvBALoY7GpbmBNHreXYZ+h2vNEYd/Xvq//rLSHsy9bA5cnv78MPRv6f+LyL4L/jYse3sKQL7LhPab7ot+w7G0McbOB6bZ2GFOfr30/9NhPbNx6QwouWk9YutR4mbCT27zTqVr7reakf/7+2UUQrCMBBEA2LwoyiC9Bbeo/c/kbjL47EUSulXCxl1s9lMsjPB9mr+362gJ/v/WRb4xKwxyRSSvKzajxhnVhdwbRocGsUE9fbRhFXSos1BVA+k6h3+L+V/6S0gbhMaOZG9tooh1nQWWQgk870AlVAOVK8XytFkMCNGwJ3O+aqlXDAcOilVC1kc/q/j/9vbCvdXyIifwXmOSGXJmIDsgGUWMwepFUMu6N2CENypKQJFFQGYunv4v4r/3kT5C08w3FMLRkFtD+BpsipE+pEGkLbLXroz14f/8/ufewNrPPrnOR/WxxO8h+bgru3dGtst5tjdDv9n9P+3P0+f/mgFP2G4opHzpiinAAAAAElFTkSuQmCC\n",nA=e=>{let{popupName:t,isSeen:n}=e;(0,ic.ZI)("market_ad_exp",{popup_name:t,current_type:MB.org?Qd(MB.org):Q1(MB.user),is_first_exp:n?"0":"1",...MB.org?{current_edit_member:MB.org.total_seats}:{}})},oA=e=>{let{popupName:t,isSeen:n}=e;(0,ic.ZI)("market_ad_click",{popup_name:t,current_type:MB.org?Qd(MB.org):Q1(MB.user),is_first_exp:n?"0":"1",url:location.href})},o$=(0,l.memo)(()=>{const e=(0,r.d4)(me.wA),t=(0,r.d4)(me.HW),n=(0,r.d4)(te.O4),a=!!e,{planType:i,leftDays:c,isOrgFull:d,showBtn:p}=qq(a,e,t),[h,m]=(0,l.useState)(Ky(Gy,Zy)),[x,v]=(0,l.useState)(!1),[A,k]=(0,l.useState)(p),R=t$(a,e,t),F=()=>{const Ct=ENV.IS_MO?Tf.Jh:location.origin+"/brand/pricing?tab="+(a?Zq:Kq)+"&next="+location.href;(0,rl.JW)(Ct,"_blank","noreferrer")},Z=i===u0.Trial?"\u5176\u4ED6\u8D44\u6E90\u4F4D-v8\u9876\u90E8_\u8BD5\u7528\u5347\u7EA7":"\u5176\u4ED6\u8D44\u6E90\u4F4D-v8\u9876\u90E8_\u5347\u7EA7",G=Ou(Z),ee="\u5176\u4ED6\u8D44\u6E90\u4F4D-v8\u9876\u90E8_hover\u5347\u7EA7",ce=Ou(ee),se=()=>{if(MB.global.experienceLoginModalHelper("isSave"))return;let Ct,St;i===u0.Trial?(Ct="\u8D44\u6E90\u4F4D-v8\u9876\u90E8_\u8BD5\u7528\u5347\u7EA7",St="workspace-v8_trial_upgrade"):(Ct="\u8D44\u6E90\u4F4D-v8\u9876\u90E8_\u5347\u7EA7",St="workspace-v8_top_upgrade");const hn=(0,Ra.l)(e,Ct,St);a||(hn.soloPtypes="bomx_proto",hn.soloTab="combine"),MB.global.popupHelper.chargeAsync(hn),oA({popupName:Z,isSeen:G})},he=()=>{if(MB.global.experienceLoginModalHelper("isSave"))return;const hn=(0,Ra.l)(e,"\u8D44\u6E90\u4F4D_v8\u9876\u90E8_hover\u5347\u7EA7","workspace-v8_top_hover_upgrade");a||(hn.soloPtypes="bomx_proto",hn.soloTab="combine"),MB.global.popupHelper.chargeAsync(hn),oA({popupName:ee,isSeen:ce})},ve=(Ct,St)=>{St.preventDefault(),St.stopPropagation(),(0,Pt.a0)(a?k3:M3,Ct,Pt.qW.Number),k(!1),v(!1)},Te=Ct=>{Ct.preventDefault(),Ct.stopPropagation(),k(!1),v(!1),m(!1)},xe=n==="dark",Fe=i===u0.Trial?I18N.FreeUpgrade.trial:i===u0.Due?I18N.FreeUpgrade.due.replace(/{n}/,c):I18N.FreeUpgrade.free,et=Jq(a,d,I18N),{isProtoLifeTime:Ke,isBomxLifeTime:Qe,isAIPPTLifeTime:nt}=$q(t);(0,l.useEffect)(()=>{A&&nA({popupName:Z,isSeen:G})},[A]);const Xe=()=>{if(h){const{isDue:Ct=!1,isPaidProto:St=!1,lfTotalSeats:hn=0,minRealSeats:Cn=0}=e$(a,e,t);if(a){if(Ct&&hn<2&&Cn<10)return(0,o.jsxs)("div",{className:C()("buyme-btn-activity",i,{isHovered:x}),onClick:se,children:[(0,o.jsx)("div",{className:"text",children:"\u4F1A\u5458\u5373\u5C06\u5230\u671F"}),(0,o.jsx)(xt.C,{name:"toolbar/upgrade/close",className:"buyme-close",onClick:Mt=>Te(Mt)})]});if(!St&&Cn<=6)return(0,o.jsxs)("div",{className:C()("buyme-btn","activity","no-order",{isHovered:x}),onClick:se,children:[(0,o.jsx)("div",{className:"text",children:"\u65B0\u8D2D 66 \u6298\u8D77"}),(0,o.jsx)(xt.C,{name:"toolbar/upgrade/close",className:"buyme-close activity",onClick:Mt=>Te(Mt)})]})}else{if(Ct)return(0,o.jsxs)("div",{className:C()("buyme-btn-activity",i,{isHovered:x}),onClick:se,children:[(0,o.jsx)("div",{className:"text",children:"\u4F1A\u5458\u5373\u5C06\u5230\u671F"}),(0,o.jsx)(xt.C,{name:"toolbar/upgrade/close",className:"buyme-close",onClick:Mt=>Te(Mt)})]});if(Ke&&Qe)return(0,o.jsxs)("div",{className:C()("buyme-btn","activity","aippt",{isHovered:x}),onClick:se,children:[(0,o.jsxs)("div",{className:"text",children:["\u65B0\u5E74\u8D85\u7EA7\u4F1A\u5458 4.",(0,o.jsx)("span",{style:{marginTop:"3.9px",display:"inline-block"},children:"4"})," \u6298\u8D77"]}),(0,o.jsx)(xt.C,{name:"toolbar/upgrade/close",className:"buyme-close activity",onClick:Mt=>Te(Mt)})]});if(Ke||Qe||nt)return(0,o.jsxs)("div",{className:C()("buyme-btn","activity","aippt",{isHovered:x}),onClick:se,children:[(0,o.jsxs)("div",{className:"text",children:["399",(0,o.jsxs)("svg",{width:"14",height:"16",fill:"none",viewBox:"0 0 14 16",children:[(0,o.jsx)("path",{fill:"url(#paint0_linear_5806_26826)","fill-opacity":".88",stroke:"#FFE9C2","stroke-linejoin":"round","stroke-width":".05",d:"M6.85.95q.15-.05.3 0a1 1 0 0 1 .18.12l.24.25 3.66 3.97.45.5q.15.2.15.32 0 .22-.16.38-.1.07-.33.1l-.68.01h-1.2l-.08.02a.2.2 0 0 0-.1.09l-.02.08-.02.13c-.38 3.69-2.84 6.13-4.93 7.44l-.75.44-.08.02a.2.2 0 0 1-.12-.13v-.03q0-.02.02-.05.01-.07.09-.18.12-.24.38-.65c1.37-2.24 1.26-5.25.94-6.91q-.02-.11-.06-.18l-.09-.07q-.06-.03-.19-.02H3.34l-.68-.01q-.23-.03-.33-.1a.5.5 0 0 1-.16-.38q0-.13.15-.31.15-.2.45-.5l3.66-3.98.24-.25a1 1 0 0 1 .18-.12Z"}),(0,o.jsx)("defs",{children:(0,o.jsxs)("linearGradient",{id:"paint0_linear_5806_26826",x1:"7",x2:"25.94",y1:".67",y2:"9.73",gradientUnits:"userSpaceOnUse",children:[(0,o.jsx)("stop",{"stop-color":"#D37A11"}),(0,o.jsx)("stop",{offset:"1","stop-color":"#FFEFD7"})]})})]}),"\u4EA7\u54C1\u7EC8\u8EAB"]}),(0,o.jsx)(xt.C,{name:"toolbar/upgrade/close",className:"buyme-close activity",onClick:Mt=>Te(Mt)})]});if(!St)return(0,o.jsx)("div",{className:C()("buyme-btn","activity","upgrade",{isHovered:x}),onClick:se,children:(0,o.jsxs)("div",{className:"text",children:[(0,o.jsx)("img",{src:"https://cdn-yunyin.modao.cc/activity-dashboard-proto/2511/d-12-proto-icon.png",style:{width:16,height:16,marginRight:2},alt:"icon"}),"\u65B0\u5E74\u7115\u65B0\u7279\u60E0"]})})}}if(A&&i)return(0,o.jsxs)("div",{className:C()("buyme-btn",i,{isHovered:x}),onClick:se,children:[i===u0.Free&&(0,o.jsx)(xt.C,{name:"toolbar/upgrade_"+n,size:16,isColorPure:!0}),(0,o.jsxs)("div",{className:"text",children:[Fe," "]}),i===u0.Due&&(0,o.jsx)(xt.C,{name:"toolbar/upgrade/close",className:"buyme-close",onClick:Ct=>ve(c,Ct)})]})};return(A||h)&&(0,o.jsxs)(zq,{isDark:xe,onMouseEnter:()=>{v(!0),nA({popupName:ee,isSeen:ce})},onMouseLeave:()=>v(!1),children:[Xe(),x&&(0,o.jsxs)(Wq,{className:""+i,isDark:xe,children:[(0,o.jsx)("img",{src:n$,alt:"",draggable:"false"}),(0,o.jsx)("div",{className:"desc-grid",children:et.map((Ct,St)=>(0,o.jsxs)("div",{className:"desc-cell",children:[(0,o.jsx)("div",{className:C()("desc1",{"has-han":Qq(Ct.desc1)}),children:Ct.desc1}),(0,o.jsx)("div",{className:"desc2",children:Ct.desc2})]},St))}),(0,o.jsx)("div",{className:"features",children:I18N.FreeUpgrade.membership_features}),(0,o.jsxs)("div",{className:"more",onClick:F,children:[(0,o.jsx)("div",{className:"text",children:I18N.FreeUpgrade.more}),(0,o.jsx)(xt.C,{name:"common/back_reverse",size:24})]}),(0,o.jsxs)("div",{className:"upgrade",onClick:he,children:[(0,o.jsx)("div",{className:"text",children:i===u0.Due?I18N.Common.renew:I18N.dModals.renew_now}),(0,o.jsx)("img",{src:"https://cdn-yunyin.modao.cc/2502/proto-activity-1.png",alt:""})]})]})]})});var a$=s(85131),r$=s(46712),i$=s(10245);const s$=(e,t,n)=>{const[a,i]=(0,l.useState)((0,Pt.Yt)(e,t,n));return(0,l.useEffect)(()=>{(0,Pt.a0)(e,a,n)},[e,a,n]),[a,i]},l$=(0,l.memo)(()=>{const e=(0,r.d4)(me.PL),{isEditingBasket:t,isDirectlyEditingBasket:n,isEditingCombo:a}=(0,r.d4)(Me.r),i=(0,r.d4)(rt.p$),{isFromAbar:c}=(0,r.d4)(me.fv),d=(0,r.d4)(me.z$),p=(0,r.d4)(q.rg),h=(0,r.d4)(q.uu),m=(0,r.d4)(me.zv),x=(0,hc.WM)(),v=(0,r.wA)(),[A,k]=(0,l.useState)(!1),[R,F]=s$(e.cid+"_mode_selected","device",Pt.qW.String);if((0,l.useEffect)(()=>{let ce;return(0,hc.WM)()&&(ce=setTimeout(()=>{k(!0)},i$.b)),()=>clearTimeout(ce)},[x]),(0,l.useEffect)(()=>{(m.includes(Va.c.GUIDE_NOVICE_2309_TASK_4)||m.includes(Va.c.GUIDE_2407_PREVIEW_CLOSE))&&k(!1)},[m]),t||n)return null;const Z=(d==null?void 0:d.access_token)||e.access_token,G=ce=>{const se=i.key;if(!se)return MB.notice({text:I18N.dUtils.no_canvas_cannot_be_previewed,type:"warning"});switch(ce){case"device":{var he,ve,Te;if(MB.global.experienceLoginModalHelper("isSave"))return;if(h||v({type:"entry:start:saving"}),a){v({type:"entry:preview:combo"});return}const Qe=((he=MB.getSelectionItems().findLast(Xe=>{const lt=Xe.hotAttr||Xe;return lt.type==="rResCanvas"&&!lt.asOverlay}))==null?void 0:he.key)||(0,a$.XV)(se),nt=(0,Rm.f1)({accessToken:Z,screen:se,canvasId:Qe});c?(0,j1.sg)(j1.ZW.enterPreview,{link:nt}):(0,rl.Ix)(nt,"_blank","noreferrer"),p||((0,Oc.kX)({operation_type:Oc.mV.Device}),v({type:"entry:update:novice:guide:and:task",payload:{guideType:Va.c.GUIDE_NOVICE_2309_STEP_4,taskType:Va.c.GUIDE_NOVICE_2309_TASK_4}})),(0,Ce.bO)({currentProject:e,preview_type:"\u6F14\u793A\u6A21\u5F0F"}),(0,ed.kH)("model_change",{change_type:"\u7F16\u8F91\u6A21\u5F0F\u5207\u6362\u6F14\u793A\u6A21\u5F0F"}),xl.U4.protoEditorPresentTrack((ve=MB)==null||(ve=ve.user)==null?void 0:ve.id,"\u53F3\u4E0A\u89D2\u6F14\u793A",(Te=MB.getCurrentScreen())==null?void 0:Te.device);break}case"read_only":{var xe,Fe;const et=(0,Rm.h2)({accessToken:Z,currentPageKey:i.key});c?(0,j1.sg)(j1.ZW.enterPreview,{link:et}):(0,rl.Ix)(et,"_blank","noreferrer"),(0,Ce.bO)({currentProject:e,preview_type:"\u53EA\u8BFB\u6A21\u5F0F"}),(0,ed.kH)("model_change",{change_type:"\u7F16\u8F91\u6A21\u5F0F\u5207\u6362\u603B\u89C8\u6A21\u5F0F"}),xl.U4.protoEditorPresentTrack((xe=MB)==null||(xe=xe.user)==null?void 0:xe.id,"\u53F3\u4E0A\u89D2\u603B\u89C8",(Fe=MB.getCurrentScreen())==null?void 0:Fe.device);break}}A&&(MB.commonGuideHelper.closeGuide(Va.c.GUIDE_2407_PREVIEW),k(!1))},ee=ce=>{F(ce),G(ce)};return(0,o.jsxs)(d$,{className:Va.c.GUIDE_NOVICE_2309_STEP_4+" "+Va.c.GUIDE_2407_PREVIEW+" "+(A?"guide-type-preview":""),onClick:()=>G(R),children:[(0,o.jsx)(Ti.A,{content:R==="device"?(0,D1.Qc)("preview"):I18N.ToolBar.overview,direction:"down",distance:8,children:(0,o.jsx)("div",{className:"mode-container",children:(0,o.jsx)(xt.C,{name:R==="device"?"toolbar/preview":"toolbar/read_only"})})}),!a&&(0,o.jsx)(Cu.A,{menuPosTop:48,offsetX:-52,direction:"down-start",className:"select-mode-dropdown",renderOpener:(0,o.jsx)(Ti.A,{content:I18N.ArtBoard.preview,direction:"down",distance:8,children:(0,o.jsx)("div",{className:"mode-menu-opener",children:(0,o.jsx)(xt.C,{className:"toolbar-dropDown",name:"toolbar/triangle-down"})})}),renderMenu:(0,o.jsx)(c$,{onSelectMode:ee})})]})}),c$=e=>{let{onSelectMode:t}=e;return(0,o.jsxs)(p$,{children:[(0,o.jsxs)("li",{onClick:()=>t("device"),children:[(0,o.jsx)(xt.C,{size:16,name:"toolbar/mode/device/small"}),(0,D1.Qc)("preview")]}),(0,o.jsxs)("li",{onClick:()=>t("read_only"),children:[(0,o.jsx)(xt.C,{name:"toolbar/mode/read_only/small"}),I18N.ToolBar.overview]})]})},d$=M.Ay.div.withConfig({displayName:"OpenNewModeBtn__StyledOpenNewModeButton",componentId:"sc-fp4th1-0"})(["width:48px;height:32px;display:flex;align-items:center;justify-content:center;cursor:pointer;border-radius:6px;&.guide-type-preview{width:48px;height:32px;border-radius:8px;transition:none;",";::before,::after{border-radius:8px;}}.mode-container{width:32px;height:32px;position:relative;.svg-icon{width:100%;}}.select-mode-dropdown{height:100%;display:flex;align-items:center;.mode-menu-opener{width:100%;height:100%;margin-right:9px;margin-top:0;display:flex;align-items:center;justify-content:center;.toolbar-dropDown{width:7px;height:4px;}}&.is-open,&:hover{.toolbar-dropDown{margin-top:5px;transition:margin-top ease-in-out 0.2s;}}}&:not(.active):hover{background-color:",";}&.disabled{opacity:0.4;pointer-events:none;}&:not(.disabled):active,&:not(.disabled).active{background-color:",";.select-mode-dropdown.is-open{background-color:unset;}}"],r$.K6,e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_btn_secondary_active),p$=M.Ay.div.withConfig({displayName:"OpenNewModeBtn__StyledModeMenu",componentId:"sc-fp4th1-1"})(["padding:8px;width:160px;background:",";color:",";box-shadow:",";border-radius:8px;border:1px solid ",";li{list-style:none;.svg-icon{margin-right:4px;width:16px;height:16px;color:",";[stroke]{stroke:currentColor;fill:none;}}.key{position:absolute;right:16px;color:",";}position:relative;height:28px;padding:4px 16px;display:flex;align-items:center;cursor:pointer;font-size:12px;line-height:16px;&:hover{background:",";}}li{border-radius:4px;}"],e=>e.theme.color_bg_white,e=>e.theme.color_text_L1,e=>e.theme.shadow_m,e=>e.theme.color_bg_border_01,e=>e.theme.color_text_L1,e=>e.theme.color_text_L3,e=>e.theme.color_btn_secondary_hover),aA=e=>{let{isOpen:t,onConfirm:n,onClose:a,className:i}=e;return(0,o.jsxs)(u$,{isOpen:t,className:C()("fz-auth-modal",i),title:"\u5B57\u4F53\u4F7F\u7528\u987B\u77E5",confirmText:"\u540C\u610F",cancelText:"\u4E0D\u540C\u610F",onConfirm:n,onCancel:a,onClose:a,width:400,children:[(0,o.jsx)("p",{children:"\u5C0A\u656C\u7684\u58A8\u5200\u7528\u6237\uFF0C\u60A8\u597D!"}),(0,o.jsx)("p",{children:"\u60A8\u53EF\u4EE5\u5728\u58A8\u5200\u8BBE\u8BA1\u5DE5\u5177\u4E2D\u514D\u8D39\u8BD5\u7528\u65B9\u6B63\u5B57\u4F53\uFF0C\u4EE5\u5448\u73B0\u66F4\u597D\u7684\u5728\u7EBF\u8BBE\u8BA1\u6548\u679C\u3002\u5F53\u60A8\u5C06\u65B9\u6B63\u5B57\u4F53\u7528\u4E8E\u5546\u4E1A\u7528\u9014\u65F6\uFF0C\u9700\u8981\u4E3B\u52A8\u8054\u7CFB\u65B9\u6B63\u5B57\u5E93\u8D2D\u4E70\u6388\u6743\u3002\u300C\u514D\u8D39\u83B7\u5F97\u8BD5\u7528\u6743\uFF0C\u4ED8\u8D39\u83B7\u5F97\u4F7F\u7528\u6743\u300D\u3002"}),(0,o.jsx)("br",{}),(0,o.jsxs)("p",{children:["\u65B9\u6B63\u5B57\u5E93\u4EC5\u9488\u5BF9\u6700\u7EC8\u7528\u6237\u7684\u5546\u4E1A\u884C\u4E3A\u6536\u53D6\u6388\u6743\u8D39\u3002\u6709\u5173\u65B9\u6B63\u5B57\u5E93\u6388\u6743\u6A21\u5F0F\u548C\u4EF7\u683C\u7684\u8BE6\u7EC6\u5185\u5BB9\uFF0C\u8BF7\u4ED4\u7EC6\u9605\u8BFB",(0,o.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:"http://www.foundertype.com/index.php/About/bookAuth/key/my_sysq.html",children:"\u300A\u65B9\u6B63\u5B57\u5E93\u201C\u5546\u4E1A\u53D1\u5E03\u201D\u6388\u6743\u4EF7\u683C\u8BF4\u660E\u300B"})]})]})};aA.propTypes={isOpen:ya().bool,className:ya().string,onConfirm:ya().func,onClose:ya().func};const u$=(0,M.Ay)(ci.H).withConfig({displayName:"FZAuthModal__StyledModal",componentId:"sc-fk7ij6-0"})(["&.fz-auth-modal{background-color:",";border:1px solid ",";p{color:",";}.content{a{color:",";}}}"],e=>e.theme.color_bg_white,e=>e.theme.color_bg_border_02,e=>e.theme.color_text_L1,e=>e.theme.color_text_link_normal),h$=aA,m$=(0,M.DU)([".DesignDropdownMenu{&.font-options-menu{transition:unset !important;background:",";border:1px solid ",";box-shadow:0 3px 6px -4px rgba(0,0,0,0.12),0 6px 16px rgba(0,0,0,0.08),0 9px 28px 8px rgba(0,0,0,0.05);border-radius:8px;overflow:hidden;.content{padding:0 !important;position:relative;background:",";}.radio-line{color:",";&.disabled{background:transparent;}.check-line{&.disabled{background-color:transparent;cursor:not-allowed;&:hover{background:transparent !important;}.svg-icon{color:",";}}}}}&.border-width-menu{transition:unset !important;.content{padding:0 !important;border-radius:8px !important;position:relative;}}}"],e=>e.theme.color_bg_white,e=>e.theme.color_bg_border_02,e=>e.theme.color_bg_white,e=>e.theme.color_text_L2,e=>e.theme.color_text_disabled01),ice=M.Ay.section.withConfig({displayName:"styles__StyledTextSettings",componentId:"sc-1hpsc6c-0"})(["position:relative;width:240px;padding:0 10px;color:",";>:not(:first-child){margin-top:2px;}.font-group{display:flex;align-items:center;position:relative;&.font-line{justify-content:space-between;.font-family-selector{flex:0 0 100px;margin-right:23px;&:not(.is-disabled):not(.readonly):hover{.caret{padding:0 11px;}}}.font-menu-opener{display:flex;}}&.style-line{>:nth-child(1){margin-right:6px;}>:nth-child(3){width:96px;right:0px;position:absolute;}.font-size-input{width:66px;}.font-weight-selector{width:60px;}.options-menu-opener{&.is-open{.menu-opener{background-color:",";&.fontSettings{background-color:",";}}}&.font-menu-opener{margin-left:auto;display:flex;align-items:center;}}}&.ali-line{.has-ref-style-font-menus{position:absolute;right:0;}}&.ali-line >:nth-child(2){width:96px;position:absolute;right:0;justify-content:flex-start;*{flex-grow:0;}}&.spacing-line{justify-content:space-between;& >:nth-child(2){margin-left:46px;.radio-option svg{width:24px;height:24px;}}}}.size-type-item{width:60px;}.sizetype,.h-alignment,.v-alignment{&.radio-line{margin-bottom:0;height:24px;border:none;.radio-option{width:24px;height:24px;transition:background-color 0.2s ease-in-out;border-radius:4px;.svg-icon{width:24px;height:24px;color:",";}&.active{background:",";}&:not(.active):hover{background:",";}}}.icon{width:24px;height:24px;}}.item-with-name{display:flex;justify-content:space-between;margin:8px 0;.item-name{height:22px;line-height:22px;color:#5b6b73;}.item-value{width:100%;}}.text-setting-tips{background:#f8efa7;width:202px;height:auto;line-height:24px;text-align:center;color:#415058;margin-bottom:8px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;word-break:break-all;padding:0 10px;}"],e=>e.theme.color_text_L2,e=>e.theme.color_bg_border_02,e=>e.theme.color_btn_secondary_active,e=>e.theme.color_text_L1,e=>e.theme.color_btn_secondary_active,e=>e.theme.color_btn_secondary_hover),f$=M.Ay.div.withConfig({displayName:"styles__StyledMissFontModal",componentId:"sc-j1bci5-0"})(["position:absolute;right:24px;z-index:199;top:49px;display:flex;flex-direction:column;width:606px;border-radius:8px;background-color:",";font-size:12px;outline:",";box-shadow:",";",";header{border-top-left-radius:8px;border-top-right-radius:8px;font-size:14px;border-bottom:1px solid "," !important;}.body{display:flex;flex-direction:column;padding-left:20px;.tip{color:",";margin-top:20px;font-weight:500;}.sub-tip{color:",";height:34px;display:flex;align-items:center;.sub-tip-1{margin-right:186px;}}.content-body{&::-webkit-scrollbar{width:6px;}&::-webkit-scrollbar-thumb{background-color:",";border-radius:8px;&:hover{background-color:",";}}border-radius:0 !important;max-height:266px;overflow-y:scroll;overflow-x:hidden;margin-right:4px;}}#last{display:flex;margin-top:24px;justify-content:flex-end;align-items:flex-start;padding:0 20px;height:56px;& > .button-root{margin-left:12px;}}"],e=>e.theme.color_bg_white,e=>e.$theme==="dark"?"1px solid #4F5052":void 0,e=>e.theme.miss_font_box_shadow,v3.wy,e=>e.theme.color_bg_border_01,e=>e.theme.color_text_L1,e=>e.theme.color_text_L3,e=>e.theme.color_slider_normal,e=>e.theme.color_slider_hover),g$=M.Ay.div.withConfig({displayName:"styles__StyeldFontItem",componentId:"sc-j1bci5-1"})(["display:flex;align-items:center;height:34px;margin-bottom:8px;.svg-icon *{color:",";fill:currentColor}.p1-1{margin-right:8px;}.p1-2{margin-right:6px;}.p1-3{width:140px;margin-right:8px;color:",";}.p1-4{margin-right:16px;}.selct-border{border-radius:6px;border:1px solid ",";&:hover{border:1px solid ",";}}.p4{width:200px;margin-right:8px;}.p5{width:126px;}.p4,.p5{&:hover{background:",";}.WorkspaceSelect{width:100%;display:flex;justify-content:space-between;border:none;}}"],e=>e.theme.color_text_L1,e=>e.theme.color_text_L3,e=>e.theme.color_btn_secondary_active,e=>e.theme.color_btn_secondary_active,e=>e.theme.color_btn_secondary_hover);var E3=s(45709),y$=s(69173),Yy=s.n(y$),x$=s(74937),rA=s.n(x$);function iA(e){return rA()(e)||Yy()(e)||(0,l.isValidElement)(e)?e:e.label||e.value?e.label||e.value:void 0}function v$(e){return rA()(e)||Yy()(e)?String(e):e.value||e.label?String(e.value||e.label):void 0}function sA(e,t){return!!t&&v$(e)===String(t)}var b$=s(54449);const lA=M.Ay.label.withConfig({displayName:"styles__StyledSelect",componentId:"sc-dlp340-0"})(["position:relative;display:inline-flex;align-items:center;max-width:100%;min-width:3em;height:28px;font-size:12px;color:",";cursor:pointer;&.is-disabled{cursor:not-allowed;}.btn{height:100%;display:flex;align-items:center;max-width:calc(100% - 10px - 1em);.questionMark{display:flex;align-items:center;min-width:16px;margin-right:8px;}span{text-align:start;cursor:inherit;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:flex;color:",";}.show-question-mark{color:",";}}.caret{padding:0 8px;color:",";height:100%;display:inline-flex;align-items:center;.svg-icon{color:",";}svg{width:8px;height:8px;transition:transform 0.2s ease-out;}}&{padding-left:8px;border:1px solid transparent;border-radius:2px;}&.is-open .caret svg{transform:rotate(180deg);}"],e=>e.theme.color_text_L2,e=>e.theme.color_text_L1,e=>e.theme.color_text_L3,e=>e.theme.color_text_L2,e=>e.theme.color_text_L2),w$=(0,o.jsx)(xt.C,{name:"toolbar/selected",className:"selected-icon"}),C$=e=>{const{value:t,onChange:n,className:a,showQuestionMark:i,selectValue:c,disabled:d,hasCheck:p,optionList:h,$menuMaxHeight:m,$menuWidth:x,$hasScroll:v}=e,A=(0,l.useRef)(null),{handleToggle:k,handleClose:R,menuStatus:F}=(0,b$.x)({ref:A,leftUse:"left",xOffset:125}),Z=ve=>n(ve),G=()=>{if(i)return(0,E3.cB)((0,$0.cD)(t));const ve=h.find(Te=>sA(Te,t));return ve?(0,$0.cD)(iA(ve)):t},ee=()=>{d||k()},ce=d,se=!d,he=(0,Fs.Hn)(["WorkspaceSelect","regular",a,ce&&"is-disabled"]);return(0,o.jsxs)(lA,{className:he,role:"listbox",ref:A,onClick:ee,children:[(0,o.jsx)("div",{className:"btn",children:(0,o.jsx)("span",{className:C()({"show-question-mark":i}),children:G()})}),(0,o.jsx)("span",{className:"caret",children:(0,o.jsx)(xt.C,{name:"common/expand"})}),F.isOpenContextMenu&&(0,o.jsxs)(S$,{position:F.position,canSelect:se,onClose:R,className:C()("font-family-menu"),$menuWidth:x,$menuMaxHeight:m,$hasScroll:v,children:[c&&(0,o.jsxs)("div",{className:"select-value",children:[(0,o.jsx)(xt.C,{name:"common/checked"}),c]}),h.map((ve,Te)=>{const xe=sA(ve,t);return(0,o.jsx)("div",{className:"font-family-level",style:{position:"relative"},children:(0,o.jsx)(Oe.Dr,{text:iA(ve),option:ve,onClick:()=>Z(ve),icon:p&&xe?w$:null})},Te)})]})]})},S$=(0,M.Ay)(Oe.Ay).withConfig({displayName:"Select__StyledContextMenu",componentId:"sc-10rjh3h-0"})(["",";.select-value{padding-left:5px;height:28px;margin:8px 0;border-bottom:1px solid ",";line-height:21px;white-space:nowrap;text-overflow:ellipsis;display:flex;align-items:center;cursor:pointer;svg{margin-left:6px;margin-right:4px;}}.svg-icon{width:16px;height:16px;}&.font-family-menu ul{&::-webkit-scrollbar{display:block;width:6px;height:6px;}&::-webkit-scrollbar-thumb{background-color:",";border-radius:8px;&:hover{background-color:",";}}}& > ul:first-of-type{max-height:",";min-width:","px;width:","px;overflow-y:",";padding:0px;}.MenuItem{a{padding-left:32px;}&.hasIcon{> a{padding-left:15px;}}}"],za.ZJ,e=>e.theme.color_bg_border_01,e=>e.theme.color_slider_normal,e=>e.theme.color_slider_hover,e=>e.$hasScroll?e.$menuMaxHeight+"px":void 0,e=>e.$menuWidth,e=>e.$menuWidth,e=>e.$hasScroll?"scroll":void 0);var A$=s(55171);const k$=e=>{const{className:t,showQuestionMark:n,disabled:a,allFontList:i,stateFamily:c,stateWeight:d,handleFontFamilyChange:p,handleFontWeightChange:h,familyShowValue:m}=e,x=(0,l.useRef)(null),v=a,A=(0,Fs.Hn)(["WorkspaceSelect","regular",t,v&&"is-disabled"]),[k,R]=(0,l.useState)(!1),[F,Z]=(0,l.useState)({top:0,right:0}),G=()=>{R(!1)},ee=(0,l.useRef)(null),ce=he=>{const ve=he.target;!ve.closest("#font-list-panel")&&!ve.closest(".font-family-label")&&G()},se=()=>{const he=ee==null?void 0:ee.current.getBoundingClientRect();he&&Z({top:he.top+28+4,left:he.left-9}),R(!k)};return(0,o.jsxs)(lA,{className:A,role:"listbox",ref:x,children:[(0,o.jsx)("button",{onClick:se,disabled:v,ref:ee,children:(0,o.jsx)("span",{className:C()({"show-question-mark":n}),children:m})}),(0,o.jsx)("span",{className:"caret",children:(0,o.jsx)(xt.C,{name:"common/expand"})}),k&&(0,Ki.createPortal)((0,o.jsx)(A$.Z,{fontFamily:c,fontWeight:d,fontStyle:"normal",position:F,wbiVersion:3,subMenuDirection:"left",clickFF:he=>{p(he),R(!1)},clickFW:(he,ve)=>{h(he,ve),R(!1)},hoverFF:he=>null,hoverFW:(he,ve)=>null,clearOverrideAttr:()=>null,handleClickOutSideToClose:ce,fontListOriginal:i,setIsOpenListPanel:R}),document.body)]})};function M$(e){var t;const{family:n,weight:a,changeOpenFZAuthInfo:i,modifyFontFamily:c,modifyFontWeight:d,fontItemKey:p,handleFocusItem:h,changeMap:m,allFontList:x}=e,v=n,A=a,[k,R]=(0,l.useState)("PLACE_HOLDER_FAMILY"),[F,Z]=(0,l.useState)(a),G=()=>v,ee=async function(Qe,nt){nt===void 0&&(nt=!1);const Xe=G();let lt=Qe.value;const Ct=()=>{if(Qe.type==="cloud"){const{ff:St,fw:hn}=(0,$0.dv)(Qe);lt=St,c({fontItemKey:p,fromFF:Xe,toFF:lt}),d({fontItemKey:p,fromFW:A,toFW:hn}),Z(hn)}else c({fontItemKey:p,fromFF:Xe,toFF:lt}),se({font:Qe,value:"regular"});R(lt)};nt?Ct():(0,$0.x7)(lt)?i(!0,Ct):Ct()},ce=(Qe,nt)=>{let Xe=Qe.value;Qe.type==="cloud"&&(Xe=Qe.weightExtKeyKV[nt.value]||Qe.strangeExtKeyWeightKV[nt.value]),c({fontItemKey:p,fromFF:G(),toFF:Xe});const lt=nt.value;d({fontItemKey:p,fromFW:A,toFW:lt}),R(Xe),Z(lt)},se=Qe=>{const nt=Qe.value;if(Qe.font.type==="cloud"){const Xe=Qe.font.weightExtKeyKV[nt]||Qe.font.strangeExtKeyWeightKV[nt];c({fontItemKey:p,fromFF:G(),toFF:Xe})}d({fontItemKey:p,fromFW:A,toFW:nt}),Z(nt)},he=(0,Kp.w0)(k,x),ve=(he==null?void 0:he.typeList.map(Qe=>({font:he,label:(0,E3.cB)(Qe),value:Qe})))||[],Te=k==="PLACE_HOLDER_FAMILY"?"\u9009\u62E9\u66FF\u6362\u7684\u5B57\u4F53":(he==null?void 0:he.label)||(0,$0._9)(k),xe=F,Fe=((t=(0,Kp.w0)(v,x))==null?void 0:t.label)||(0,$0._9)(v),et=(0,E3.cB)(A)||A,Ke=he==null?void 0:he.typeList.find(Qe=>Qe===F);return(0,l.useEffect)(()=>{const Qe=(0,Kp.w0)(n,x);Qe&&setTimeout(()=>{ee(Qe)},4)},[]),(0,o.jsxs)(g$,{children:[(0,o.jsx)(Ti.A,{content:"\u9009\u4E2D\u4F7F\u7528\u8BE5\u5B57\u4F53\u7684\u7EC4\u4EF6",direction:"down",distance2:4,children:(0,o.jsx)(cl.A,{onClick:()=>h(p),size:24,name:"font/miss/focus",className:"p1-1"})}),(0,o.jsx)(Ti.A,{content:"\u5B57\u4F53\u7F3A\u5931",direction:"down",distance2:4,children:(0,o.jsx)(xt.C,{size:16,isColorPure:!0,name:"design/notify/questionMark",className:"p1-2"})}),(0,o.jsx)("span",{className:"p1-3",children:Fe+", "+et}),(0,o.jsx)(xt.C,{size:14,name:"design/missfont/arrow",className:"p1-4"}),(0,o.jsx)("div",{className:"p4 selct-border",children:(0,o.jsx)(k$,{familyShowValue:Te,stateFamily:k,stateWeight:F,allFontList:x,handleFontFamilyChange:ee,handleFontWeightChange:ce})}),(0,o.jsx)("div",{className:"p5 selct-border",children:(0,o.jsx)(C$,{optionList:ve,value:F,onChange:se,disabled:ve.length===0,showQuestionMark:!Ke,hasCheck:!0,$menuWidth:130,$menuMaxHeight:270,$hasScroll:!1})})]})}const cA=()=>({changeFF:null,changeFW:null});function E$(e){const{missFontKeyMap:t,handleClose:n}=e,a=(0,l.useRef)(new Map),i=dv(),[c,d]=(0,l.useState)([...t.keys()]),p=(0,r.d4)(ns.y.query.getCloudFontLocalList),h=(0,r.d4)(te.O4),m=(0,l.useMemo)(()=>(0,$0.r)((0,E3.Sq)().concat(p)),[p]);(0,l.useEffect)(()=>{a.current=new Map,d([...t.keys()])},[t]);const[x,v]=(0,l.useState)(!1),A=(0,r.wA)(),k=()=>{A({type:ns.y.entryKey["font:modify:fontItem:confirm"],payload:{changeMap:a.current}}),n()},R=ve=>{A({type:ns.y.entryKey["font:focus:fontItem"],payload:{fontItemKey:ve}})},F=ve=>{let{fontItemKey:Te,fromFF:xe,toFF:Fe}=ve,et=a.current.get(Te);et||a.current.set(Te,et=cA()),et.changeFF={fontItemKey:Te,fromFF:xe,toFF:Fe,type:"ff"},i()},Z=ve=>{let{fontItemKey:Te,fromFW:xe,toFW:Fe}=ve,et=a.current.get(Te);et||a.current.set(Te,et=cA()),et.changeFW={fontItemKey:Te,fromFW:xe,toFW:Fe,type:"fw"},i()},G=(ve,Te)=>{v(ve)},ee=()=>{(0,Pt.cH)("FZFontAuthInformed",!0),v(!1)},ce=()=>{v(!1)},se=a.current.size>0,he=c.sort((ve,Te)=>{var xe,Fe;const et=ve.split(":"),Ke=Te.split(":"),Qe=""+(((xe=(0,Kp.w0)(et[0],m))==null?void 0:xe.label)||(0,$0._9)(et[0]))+(et[1]||""),nt=""+(((Fe=(0,Kp.w0)(Ke[0],m))==null?void 0:Fe.label)||(0,$0._9)(Ke[0]))+(Ke[1]||"");return Qe.localeCompare(nt,"zh-Hans-CN",{sensitivity:"accent"})});return(0,o.jsxs)(f$,{className:"missingFont",$theme:h,children:[(0,o.jsx)(c2.rQ,{title:I18N.ToolBar.missingFont_title}),(0,o.jsx)(c2.v,{canClose:!0,onClick:n}),(0,o.jsxs)("div",{className:"body",children:[(0,o.jsx)("div",{className:"tip",children:I18N.ToolBar.missingFont.tip}),(0,o.jsxs)("div",{className:"sub-tip",children:[(0,o.jsx)("div",{className:"sub-tip-1",children:"\u7F3A\u5931\u5B57\u4F53"}),(0,o.jsx)("div",{className:"sub-tip-2",children:"\u66FF\u6362\u5B57\u4F53\u4E3A"})]}),(0,o.jsx)("div",{className:"content-body",children:he.map((ve,Te)=>{const xe=ve.split(":"),Fe=xe[0];return(0,o.jsx)(M$,{fontItemKey:ve,weight:xe[1]||"regular",family:Fe,changeOpenFZAuthInfo:G,modifyFontFamily:F,modifyFontWeight:Z,handleFocusItem:R,changeMap:a.current,allFontList:m},ve)})}),(0,o.jsxs)("div",{id:"last",children:[(0,o.jsx)(ll.tA,{onClick:n,children:I18N.Popups.cancel}),(0,o.jsx)(ll.jn,{disabled:!se,onClick:k,children:I18N.ToolBar.missingFont.replaceFont})]})]}),x&&(0,o.jsx)(h$,{isOpen:!0,className:"MissFontFZAuthInformed",onConfirm:ee,onClose:ce}),(0,o.jsx)(m$,{})]})}const I$=(0,l.memo)(()=>{const e=(0,l.useRef)(null),t=(0,r.wA)(),n=(0,r.d4)(ns.y.query.getIsShowMissFontModal),a=(0,r.d4)(ns.y.query.getMissFontKeyMap),i=()=>{ns.y.dispatchState({isShowMissFontModal:!1},t)},c=()=>{n?ns.y.dispatchState({isShowMissFontModal:!1},t):t({type:ns.y.entryKey["font:miss:modal:open"]})};return a!=null&&a.size?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("div",{className:C()("missing-font",n&&"active"),style:{position:"relative"},ref:e,onClick:c,children:(0,o.jsx)(Ti.A,{content:"\u5B57\u4F53\u7F3A\u5931",direction:"down",distance:5,enterHoverTime:500,children:(0,o.jsx)(xt.C,{size:32,isColorPure:!1,name:"toolbar/missingfont"})})}),n&&e.current&&(0,Ki.createPortal)((0,o.jsx)(E$,{missFontKeyMap:a,handleClose:i}),document.body)]}):null}),_$=M.Ay.div.withConfig({displayName:"styles__StyledNotice",componentId:"sc-8qqb00-0"})(["position:relative;margin-right:10px;.buyme-btn{width:118px;border-radius:44px;height:28px;font-size:14px;line-height:20px;font-weight:500;display:flex;justify-content:center;align-items:center;cursor:pointer;color:#FFFFFF;border:",";background:linear-gradient(353.67deg,#333333 33.16%,#666666 94.29%);&:hover{background:linear-gradient(353.67deg,rgba(51,51,51,0.85) 33.16%,rgba(102,102,102,0.85) 94.29%);}}"],e=>e.isDark?"1px solid #FFFFFF":"1px solid #333333"),T$=(0,l.memo)(()=>{const e=(0,r.d4)(te.O4),t=(0,r.wA)(),n=e==="dark",a=()=>{t({type:"modal:update:state",payload:{noticeModal:{isOpen:!0}}})};return(0,o.jsx)(_$,{isDark:n,onClick:a,children:(0,o.jsxs)("div",{className:C()("buyme-btn"),children:[(0,o.jsx)(xt.C,{name:"toolbar/notice/serve",size:16,isColorPure:!0}),(0,o.jsx)("div",{className:"text",children:"\u7CFB\u7EDF\u5347\u7EA7\u7EF4\u62A4"})]})})}),P$=()=>{const e=(0,r.wA)(),t=(0,r.d4)(me.K$),n=(0,r.d4)(me.HW),a=(0,r.d4)(te.O4),h={bizUpdateUser:m=>{e({type:"set:current:user",payload:{user:m}})},bizUpdateOrg:m=>{if(m.otype==="personal"){e({type:"set:current:personal:org",payload:{org:m}});return}e({type:"set:current:org",payload:{org:m}})},bizOpenCharge:m=>{const{toolType:x,isSolo:v,org:A,showAipptBenefitPage:k,payEntrance:R,checkoutPlace:F}=m,Z=A||t;if(x===To.Zl)return MB.global.popupHelper.chargeAsync({potatoSource:m.potatoSource,isBuyAgentPoint:!0});if(x==="mkt"){let ve="mat";const Te=v||Z==null?void 0:Z.cid,xe={mode:ve,orgCid:Te,payEntrance:R,checkoutPlace:F};return MB.global.popupHelper.chargeAsync(xe)}if(x===To.X3){if(v&&Z){const{planSdk:Fe}=is.tz.InitialOrg(Z),{isLifetime:et}=Fe.prototypePlan,{isLifetime:Ke}=Fe.bomxPlan,{isLifetime:Qe}=Fe.aiPptPlan;if(v&&!(et&&Ke&&Qe)){const Xe={mode:"aippt-solo",payEntrance:R,checkoutPlace:F,showAipptBenefitPage:k,from:"proto"};return MB.global.popupHelper.chargeAsync(Xe)}}const{aiPpt:{plan:ve}}=(0,is.EQ)(Z),Te=ve===is.Sj.OrgLite?"org_full":"",xe={mode:"org",orgCid:Z==null?void 0:Z.cid,payEntrance:R,checkoutPlace:F,immediateUse:Te,showAipptBenefitPage:k,addAippt:!0,from:"proto"};return MB.global.popupHelper.chargeAsync(xe)}const G=v?"solo":"org",ee={[To.Pq]:"bomx",[To.fv]:"proto",design2:"design",design:"design"},ce=x!=null?x:"",se=ee[ce]||"",he={mode:G,orgCid:Z==null?void 0:Z.cid,payEntrance:R,checkoutPlace:F,soloPtypes:se,soloTab:"piece",showAipptBenefitPage:k,from:"proto"};MB.global.popupHelper.chargeAsync(he)},bizNavOpenPage:m=>{switch(m){case To.Mi.MCPToken:MB.action("modal:update:state",{mcpTokenModal:{isOpen:!0}});break}}};return!t||!n?null:(0,o.jsx)("div",{style:{display:"flex",alignItems:"center",marginRight:"12px"},children:(0,o.jsx)(To.M5,{org:t,user:n,from:"proto",theme:a,actions:h,avatarStyle:{width:"24px",height:"24px"}})})};class L$ extends l.PureComponent{constructor(){super(...arguments),(0,B.A)(this,"handleZoomIn",()=>{this.props.dispatch({type:"entry:design:zoom:in"})}),(0,B.A)(this,"handleZoomOut",()=>{this.props.dispatch({type:"entry:design:zoom:out"})}),(0,B.A)(this,"handleZoomInitialScale",t=>{t==null||t.stopPropagation(),t==null||t.preventDefault();const{dispatch:n}=this.props;n({type:"entry:zoom:fit:scale:offset"})}),(0,B.A)(this,"handleZoomSelection",t=>{t.stopPropagation(),t.preventDefault(),this.props.dispatch({type:"entry:design:zoom:selection"})}),(0,B.A)(this,"handleZoomSpecifiedScale",t=>{const n=Number(t),{dispatch:a}=this.props;a({type:"entry:set:scale",payload:{scale:n}})}),(0,B.A)(this,"handleDownload",t=>{t.stopPropagation(),!MB.global.experienceLoginModalHelper("isSave")&&(this.props.dispatch({type:"entry:toolbar:open:export_menu"}),(0,Oc.kX)({operation_type:Oc.mV.Download}))}),(0,B.A)(this,"handleShare",()=>{const{isDisabledSharing:t,dispatch:n}=this.props;t||MB.global.experienceLoginModalHelper("isSave")||(n({type:"toolbar:sharingManager:toggle"}),n({type:"entry:update:novice:guide:and:task",payload:{guideType:Va.c.GUIDE_NOVICE_2309_STEP_5,taskType:Va.c.GUIDE_NOVICE_2309_TASK_5}}),(0,Oc.kX)({operation_type:Oc.mV.Sharing}))}),(0,B.A)(this,"handleLaunchCombo",()=>{this.props.dispatch({type:"entry:preview:combo"});const{rootProject:t}=this.props;(0,Ce.bO)({currentProject:t,source:"\u7EC4\u4EF6\u7F16\u8F91",preview_type:"\u6F14\u793A\u6A21\u5F0F"})}),(0,B.A)(this,"handleExitFullScreenMode",async()=>{const{dispatch:t}=this.props;t({type:"entry:toolbar:toggle:fullScreen"})}),(0,B.A)(this,"handleToggleCommentMode",()=>{const{dispatch:t}=this.props;t({type:"entry:comment:toggle",payload:{onlyView:!0}}),(0,Ad.A)({operation_type:Ad.D.Comment})})}componentDidMount(){var t,n;this.props.onlyView&&!((t=MB)!=null&&(t=t.commonGuideHelper)!=null&&t.checkGuideHasShown(Va.c.GUIDE_TO_PREVIEW_IN_SHARE))&&((n=MB)==null||(n=n.commonGuideHelper)==null||n.tryToShowGuide(Va.c.GUIDE_TO_PREVIEW_IN_SHARE))}render(){const{scale:t,isShowSharing:n,isDisabledSharing:a,isShowExport:i,isDisabledExport:c,isShowPreview:d,isExportMenuShow:p,dispatch:h,onlyView:m,isCommunityPreview:x,isEmbedV2Preview:v,isHtmlZipPreview:A,fullScreenMode:k,isShowExitCombo:R,importAbarOptions:F,isDisabledLunchCombo:Z,currentSharingInReadOnly:G,commentMode:ee,isShowAvatarMenu:ce}=this.props,{isFromAbar:se,isImportAbar:he,fromAbarIsReadOnly:ve}=F||{};let Te="";if(m&&se&&!ve&&(Te=he?"toolbar-right-abar-import":"toolbar-right-abar"),m)return(0,o.jsx)(Vq,{isShowSharing:n,isCommunityPreview:x,isEmbedV2Preview:v,isHtmlZipPreview:A,fullScreenMode:k,scale:t,isDisabledSharing:a,currentSharingInReadOnly:G,commentMode:ee,dispatch:h,handleZoomIn:this.handleZoomIn,handleZoomOut:this.handleZoomOut,handleZoomInitialScale:this.handleZoomInitialScale,handleZoomSelection:this.handleZoomSelection,handleZoomSpecifiedScale:this.handleZoomSpecifiedScale,handleShare:this.handleShare,handleToggleCommentMode:this.handleToggleCommentMode,isFromAbar:se,className:Te});const xe=n&&!R&&!(se||(0,j1.M2)()),Fe=(0,bh.tg)();return(0,o.jsxs)("div",{className:C()("toolbar-right",Te),children:[!ENV.IS_ON_PREMISES&&(Fe?(0,o.jsx)(T$,{}):(0,o.jsx)(o$,{})),(0,o.jsx)(tA,{showAvatarMenu:ce}),ce&&(0,o.jsx)(P$,{}),xe&&(0,o.jsx)(qS,{isDisabledSharing:a,onShare:this.handleShare,isNotLogined:!1}),!m&&(0,o.jsx)(I$,{}),d&&(R?(0,o.jsx)(N1.A,{className:C()("preview-box",Va.c.GUIDE_NOVICE_2309_STEP_4),toolTipName:(0,D1.Qc)("preview"),toolTipDistance:8,svgIconName:"toolbar/preview",disabled:Z,onClick:this.handleLaunchCombo}):(0,o.jsx)(l$,{})),i&&!R&&(0,o.jsx)("div",{id:"design-export",onClick:this.handleDownload,children:(0,o.jsx)(N1.A,{toolTipName:I18N.ToolBar.download,toolTipDistance:8,disabled:c,active:p,svgIconName:"toolbar/download",className:"export-screen-btn"})}),(0,o.jsx)($S.X,{}),(0,o.jsx)("div",{className:"design-zoom-box-container",children:(0,o.jsx)(Tq.Pd,{className:"toolbar-right-zoom",scale:t,onZoomIn:this.handleZoomIn,onZoomOut:this.handleZoomOut,onZoomInitialScale:this.handleZoomInitialScale,onZoomSpecifiedScale:this.handleZoomSpecifiedScale,onZoomSelection:this.handleZoomSelection})}),k&&(0,o.jsx)(N1.A,{size:32,svgIconName:"toolbar/fullscreen_exit",toolTipName:I18N.PreferenceBar.exit_full_screen_mode,toolTipDistance:8,onClick:this.handleExitFullScreenMode})]})}}const N$=(0,I.Mz)([Me.r,Pf.bc,me.X_,me.Ur,me.z$,N.sI,q.MM,me.K$,me.HW],(e,t,n,a,i,c,d,p,h)=>{const{isEditingProjectMain:m,isEditingCombo:x}=e,v=!m;return{isExportMenuShow:t,isShowPreview:m||x,isDisabledExport:v,isShowExport:m,isDisabledSharing:v,isShowSharing:m,scale:n,isDisabledLunchCombo:x&&!a,currentSharingInReadOnly:i,commentMode:c,previewViewMode:d,isShowAvatarMenu:!!(p&&h)}}),j$=(0,r.Ng)(e=>N$(e))(L$);var dA=s(97644);const Xy=(0,M.AH)(["display:flex;align-items:center;height:100%;"]),D$=M.Ay.div.withConfig({displayName:"styles__StyledToolbar",componentId:"sc-1bwimj5-0"})(["position:relative;height:","px;padding:0 8px;background:",";display:flex;justify-content:space-between;box-shadow:0 1px 0 ",";z-index:107;opacity:1;pointer-events:auto;transition:all 0.3s ease-in-out;&.isHidden{opacity:0;> *{pointer-events:none;}}&.isEmbedV2NotFull{height:32px;.toolbar-left svg.modao-logo{width:51px;height:30px;}}.back-icon{.svg-icon{width:24px;height:24px;}&.exit-combo .svg-icon{width:30px;height:30px;}}.toolbar-menu{width:16px;height:14px;}.toolbar-text,.toolbar-rectangle,.toolbar-circle,.toolbar-linkarea,.toolbar-line,.toolbar-image,.toolbar-org_members,.toolbar-version_record,.toolbar-download,.toolbar-preview,.toolbar-note,.toolbar-rResCanvas,.toolbar-annotate{width:32px;height:32px;}.toolbar-comment{[stroke]{stroke:currentColor;fill:none;}}.toolbar-widget_align_center,.toolbar-layer,.toolbar-group,.toolbar-ungroup,.toolbar-lock,.toolbar-un-lock{width:24px;height:24px;}.common-triangle-filled-down{width:8px;height:5px;}.toolbar-triangle-down{width:7px;height:4px;}.svg-icon{color:",";}.toolbar-left{min-width:466px;width:466px;",";&.isEmbed,&.isCommunity,&.isHtmlZip{.modao-logo{margin-right:13px}}&.isEmbed,&.isCommunity{.modao-logo{cursor:default;}}&.is-only-view{min-width:510px;width:510px;}.toolbar-icon-item:not(.back-icon):not(.undoIcon):not(.redoIcon){width:38px;}.logo{display:flex;align-items:center;cursor:pointer;.toolbar-logo-icon{width:24px;height:24px;margin:4px 12px;path{fill:",";}}}.modao-logo{height:32px;margin-right:10px;}.mockitt-logo{width:106px;height:22px;cursor:pointer;margin-right:10px;}}.toolbar-left,.toolbar-center{.toolbar-menu-div{display:flex;align-items:center;.toolbar-menu-opener-notice{display:inline-block;width:6px;height:6px;background:#1684fc;border-radius:50%;top:4px;right:0;border:none;}}.edit-btn{display:flex;align-items:center;justify-content:center;width:58px;max-height:32px;.btn-icon-text-container{font-weight:500;}}.widget-box{display:flex;align-items:center;}.prd-box{display:flex;a{cursor:pointer;}.toolbar-icon-item{margin-right:8px;}}.shape-list-box{width:48px;height:32px;display:flex;align-items:center;justify-content:center;cursor:pointer;border-radius:6px;margin-right:8px;.shapeContainer{width:32px;height:32px;position:relative;.svg-icon{width:100%;}.toolbar-shape{&.toolbar-note,&.toolbar-annotate,&.toolbar-elbow,&.toolbar-vector{width:32px;height:32px;}}.circle{width:10px;height:10px;background:#1684fc;border:2px solid ",";border-radius:50%;position:absolute;top:2px;right:0;}}.shape-list-dropdown{height:100%;display:flex;align-items:center;.Tooltip{height:100%;}.shape-opener{width:100%;height:100%;margin-right:9px;margin-top:0;display:flex;align-items:center;justify-content:center;.toolbar-dropDown{width:7px;height:4px;}}&.is-open,&:hover{.toolbar-dropDown{margin-top:5px;transition:margin-top ease-in-out 0.2s;}}}&:not(.active):hover{background-color:",";}&:hover:active{background:",";}&.disabled{opacity:0.4;pointer-events:none;}&:not(.disabled).active,&:has(.shape-list-dropdown.is-open){background-color:",";.shape-list-dropdown.is-open{background-color:unset;}}}.toolbar-menu-box{display:flex;align-items:center;border-radius:4px;margin-right:12px;.back-icon,.toolbar-menu-opener{svg{width:32px;height:32px;}&:hover:not(.disabled):not(.active){background:",";}&:hover:not(.disabled):active{background:",";}}.divider{width:1px;height:16px;height:0;margin:0 7px;background:",";}.toolbar-left-dropdown-menu.is-open{.toolbar-menu-opener:not(.disabled):not(.active){background:",";}}&.page{width:38px;height:32px;border-radius:4px;display:flex;align-items:center;justify-content:center;cursor:pointer;margin-right:0;.material-icon{width:38px;height:32px;flex:0 0 32px;.svg-icon{width:38px;height:32px;}}.shape-list-dropdown{width:100%;height:100%;display:flex;align-items:center;margin-right:9px;.toolbar-dropDown{width:7px;height:4px;}&:hover{.toolbar-dropDown{margin-top:5px;transition:margin-top ease-in-out 0.2s;}}}&.disabled{pointer-events:none;cursor:not-allowed;opacity:0.4;}}}.comment,.handMode{width:38px;height:32px;display:flex;align-items:center;justify-content:center;.svg-icon{width:32px;height:32px;}}.undoIcon,.redoIcon{.svg-icon{width:32px;height:32px;}}.project-name{padding:6px 0px;margin-right:12px;align-items:center;gap:10px;font-size:13px;font-weight:bold;color:",";max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:center;cursor:auto;}}.toolbar-center{",";flex:1;justify-content:center;max-width:calc(100% - 596px);min-width:334px;.toolbar_center_dropdown{.toolbar-icon-item{width:48px;}&.is-open{background-color:unset;.toolbar-icon-item{background-color:"," !important;}}}.toolbar-icon-item{width:32px;margin-right:10px;}.group-button,.lock-button{min-width:32px;&.active{background-color:"," !important;}}}.toolbar-right{min-width:466px;",";justify-content:flex-end;.missing-font{width:38px;display:flex;justify-content:center;border-radius:6px;&:hover{background-color:",";cursor:pointer;}&.active{background-color:",";}}&.toolbar-right-abar-import{padding-right:78px;}.backToOldVersion{margin-right:30px;text-decoration:underline;color:#1684fc;&:hover{color:#1169c9;}}#design-export{position:relative;.export-screen-btn svg{width:32px;}}.toolbar-icon-item{width:32px;}.design-zoom-box-container{.toolbar-right-zoom{width:72px;}}#sharing-box{margin-right:12px;.share-box{display:flex;align-items:center;height:32px;padding:0 16px;background:",";border-radius:6px;font-size:13px;font-weight:500;color:",";cursor:pointer;white-space:nowrap;&:hover:not(.disabled){background:",";}&:active:not(.disabled){background:",";}&.isNotLogined{background:transparent;color:",";border:1px solid ",";margin:0;color:",";background:",";border:1px solid ",";&:hover:not(.disabled){background:",";border:1px solid ",";&:lang(en){border:1px solid #000;}}&:active:not(.disabled){background:",";border:1px solid ",";&:lang(en){border:1px solid #000;}}}&.disabled{cursor:not-allowed;background:",";color:",";.svg-icon{color:",";}}}.share-box.show-animation{",";}}.zoom{display:flex;align-items:center;border:1px solid #E5E5E5;border-radius:3px;}}&:hover{.svg-icon{.fore{color:",";}}}&.isDeleteRulerLine{pointer-events:none;}@media only screen and (max-width:1082px){&.isEmbedV2NotFull{.toolbar-left,.toolbar-right{min-width:calc(50% - 75px);}}}"],yl.E0,e=>e.theme.color_bg_white,e=>e.theme.color_bg_border_01,e=>e.theme.color_text_L1,Xy,e=>e.theme.color_text_L1,e=>e.theme.color_bg_white,e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_btn_secondary_active,e=>e.theme.color_btn_secondary_active,e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_btn_secondary_active,e=>e.theme.color_bg_border_02,e=>e.theme.color_btn_secondary_active,e=>e.theme.color_text_L1,Xy,e=>e.theme.color_btn_secondary_active,e=>e.theme.color_btn_secondary_active,Xy,e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_btn_secondary_active,e=>e.theme.color_btn_primary_normal,e=>e.theme.color_text_btn,e=>e.theme.color_btn_primary_hover,e=>e.theme.color_btn_primary_clicked,e=>e.theme.color_text_L1,e=>e.theme.color_bg_border_02,e=>e.theme.color_text_L1,e=>e.theme.color_bg_white,e=>e.theme.color_bg_border_02,e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_bg_border_02,e=>e.theme.color_btn_secondary_active,e=>e.theme.color_bg_border_02,e=>e.theme.color_btn_primary_disabled,e=>e.theme.color_text_disabled01,e=>e.theme.color_text_disabled01,dA.e,e=>e.theme.color_primary_brand01),R$=(0,M.DU)(["#IBOT_TOOLTIP_ROOT{.toolbar-modao-logo-tips{transform:translate(-40%,10%);> .arrow{left:40%;}}}"]);class B$ extends l.PureComponent{render(){const{designOptions:t,rootProject:n,isShowExitCombo:a,screenMeta:i,isDeleteRulerLine:c,onlyView:d,isCommunityPreview:p,isEmbedV2Preview:h,isHtmlZipPreview:m,fullScreenMode:x,importAbarOptions:v,currentSharingInReadOnly:A}=this.props,k=d&&(A==null?void 0:A.comment_permission)==="off";return(0,o.jsxs)(D$,{id:"mb-toolbar","data-is-widget-insertable":!1,"data-is-quick-create-quit":!0,className:C()(Va.c.GUIDE_TOOLBAR_COMMON,Va.c.GUIDE_NOVICE_2309,{isDeleteRulerLine:c,isEmbedV2:h,isEmbedV2NotFull:h&&!x}),children:[(0,o.jsx)(KJ,{onlyView:d,isCommunityPreview:p,isEmbedV2Preview:h,isHtmlZipPreview:m,isShowExitCombo:a,designOptions:t,rootProject:n,screenMeta:i,fullScreenMode:x,isDisabledComment:k,importAbarOptions:v}),(0,o.jsx)(_q,{onlyView:d,isCommunityPreview:p,isEmbedV2Preview:h,rootProjectName:n==null?void 0:n.name,rootProject:n,isShowExitCombo:a,screenMeta:i,importAbarOptions:v,isHtmlZipPreview:m,fullScreenMode:x,isDisabledComment:k}),(0,o.jsx)(j$,{onlyView:d,isCommunityPreview:p,isEmbedV2Preview:h,isHtmlZipPreview:m,rootProject:n,fullScreenMode:x,isShowExitCombo:a,importAbarOptions:v}),(0,o.jsx)(R$,{})]})}}const U$=(0,I.Mz)([Me.r,me.PL,me.W4,me.Ur,J.Q,q.jx,q.pH,q.rg,q.uu,q.T7,me.YT,me.fv,me.z$],(e,t,n,a,i,c,d,p,h,m,x,v,A)=>{const{isDesign:k}=n,{isEditingCombo:R}=e,F=R&&k,Z=c===Le.qi.OnlyView;return{screenMeta:a,rootProject:t,designOptions:n,isShowExitCombo:F,isDeleteRulerLine:i,onlyView:Z,isCommunityPreview:d,isEmbedV2Preview:p,isHtmlZipPreview:h,fullScreenMode:m,projectMeta:x,importAbarOptions:v,currentSharingInReadOnly:A}}),O$=(0,r.Ng)(e=>U$(e))(B$);var F$=s(40191),V$=s(20315),pA=s(66195),Qy=s(89208),z$=s(27306),uA=s(24094),Jy=s(61924),W$=s(99378),H$=s(40497),G$=s(17654),Z$=s(54894),K$=s(10999),Y$=s(97919),X$=s(87606),I3=s(40486);const Q$=e=>{let{initPos:t}=e;const{editingInteraction2:n,currentCanvas:a,selectInteractionKey:i,itemKey:c,interactionTree:d,selectItaInfo:p,selectTreeNode:h,interactionStore:m,selectTreeNode2:x}=(0,Jy.Cl)({from:"treePanelRight"}),v=m==null?void 0:m.query.getNode(i),{position:A,setPosition:k}=(0,K$.J)(t),R=(0,r.d4)(Vn.R7.query.getEditorFloatOpenFrom),F=(0,l.useRef)(),Z=(0,r.wA)(),G=(0,l.useRef)(null),ee=(ve,Te)=>{k({left:ve,top:Te})};(0,l.useEffect)(()=>()=>{R!=="itaConnector"&&Vn.R7.dispatchState({editorFloatPosition:{top:Vn.iA,left:Vn.iA}},Z)},[]),(0,l.useLayoutEffect)(()=>{const ve=G.current!==t;if(G.current=t,R==="alignTop")return;const Te=document.getElementById("tree-editor-float");if(!Te)return;if(ve){if(G.current=t,R==="itaConnector")return;setTimeout(()=>{const et=document.querySelector('#interaction-tree-list [data-key="'+i+'"]'),Ke=et?et.getBoundingClientRect().top:t.top,Qe=et?et.getBoundingClientRect().left:t.left,{height:nt}=Te.getBoundingClientRect(),{finalTop:Xe,finalLeft:lt}=(0,I3.X2)({top:Ke,left:Qe-Vn.mJ,height:nt});k({left:lt,top:Xe})},20);return}const{height:xe}=Te.getBoundingClientRect(),{finalTop:Fe}=(0,I3.X2)({top:A.top,left:A.left,height:xe});k({left:A.left,top:Fe})},[t,v]),(0,l.useEffect)(()=>{(!d||p.type==="empty"||p.type==="normal"&&!n)&&setTimeout(()=>{Vn.R7.dispatchState({newInteractionTypeEditingKey:"",newTriggerNodeEditingKey:"",newTriggerNodeShowKey:""},Z)},4)},[Z,n,d,p.type]),(0,Bg.wo)(F,"$body");const ce=()=>{Z(Vn.R7.command.clearAllCommand({withClearCellLinks:!0}))},se=ve=>{var Te,xe,Fe,et,Ke,Qe,nt,Xe,lt,Ct,St,hn;if(!((Te=(xe=ve.target).closest)!=null&&Te.call(xe,".bar-vertical")||(Fe=(et=ve.target).closest)!=null&&Fe.call(et,".bar-horizontal"))){if(document.querySelector("#expression-editor")&&!((Ke=(Qe=ve.target).closest)!=null&&Ke.call(Qe,"#canvas .tree-node"))&&!((nt=(Xe=ve.target).closest)!=null&&nt.call(Xe,"#interaction-tree-container"))){ve.stopPropagation();return}if(document.querySelector(".wAttr-select-panel")){ve.stopPropagation();return}(lt=(Ct=ve.target).closest)!=null&&lt.call(Ct,"#mb-toolbar")&&Z(Vn.R7.command.clearAllCommand({})),(St=(hn=ve.target).closest)!=null&&St.call(hn,"#screens")&&!ve.target.closest("#canvas .tree-node:not(.rResCanvas)")&&!ve.target.closest("#overlay-rel-pos-ctrl")&&!ve.target.closest("#scroll-to-offset-guidelines")&&(document.querySelector(".var-dropmenu")||Z(Vn.R7.command.clearAllCommand({})),ve.stopPropagation())}},he=()=>{if(!F.current||!F.current.$body)return;const{top:ve,height:Te}=F.current.$body.getBoundingClientRect();ve+Te>window.innerHeight&&k({...A,top:window.innerHeight-Te-12})};return!d||p.type==="empty"||p.type==="normal"&&!n?null:(0,o.jsx)(Qa.A,{position:{left:A.left,top:A.top},onMove:ee,ref:F,children:(0,o.jsxs)(uA.$s,{id:"tree-editor-float",className:Va.c.GUIDE_PAGE_CREAT_LINK2,children:[(0,o.jsx)(X$.C,{uiFrom:"treePanelRight",hasTrash:p.type!=="action",interactionStore:m,selectTreeNode:h,isClearAll:!0,onClose:ce}),p.type==="normal"?(0,o.jsx)(Z$.A,{link:n,currentCanvas:a,currentWidgetKey:c,interactionTree:d,interactionStore:m,hasTrash:!1,selectTreeNode:h,adaptTopPosition:he}):(0,o.jsx)(Y$.S,{itemKey:c,interactionDummyKey:i,selectItaInfo:p,interactionTree:d,interactionStore:m,selectNode2:x,uiFrom:"treePanelRight"}),(0,o.jsx)(Ls.A,{target:document,onMouseDown:(0,Ls.t)(se,{capture:!0})})]})})},J$=()=>{const e=(0,r.d4)(Vn.R7.query.getIsEditorFloatOpen),t=(0,r.d4)(Vn.R7.query.getEditorFloatPosition);return e?(0,Ki.createPortal)((0,o.jsx)(o.Fragment,{children:(0,o.jsx)(Q$,{initPos:t})}),document.body):null};var q$=s(19969),$$=s(83485);const eee=()=>{const e=(0,r.wA)(),t=(0,l.useRef)(!1),n="treePanelRight",{interactionTree:a,itemKey:i,isEditingCombo:c,editingPanelRefPage:d,selectInteractionKey:p,disableType:h,isGlobalLink:m,interactionStore:x}=(0,Jy._C)({from:n});(0,r.d4)(q$.wN);const{collapseList:v,handleCollapse:A}=(0,Jy.zi)({cacheKey:i,interactionTree:a}),k=(0,l.useCallback)((Z,G)=>{G?(e(Vn.R7.command.interactionEditorFloatOpenCommand({directlySelect:!0,interactionType:G.attr.interactionType})),(0,I3.Es)(G.attr.key)&&(0,$$.X)()):e(Vn.R7.command.interactionEditorFloatOpenCommand({directlySelect:!0}))},[e]);(0,l.useEffect)(()=>{p&&(0,I3._6)({itaKey:p})},[]);const R=Z=>{if(!Z.target)return;if(Z.target.closest("#interaction-tree-list")===Z.target){e(Vn.R7.command.interactionSelectCommand({selectInteractionKeyList:[]}));return}if(!(Z.target.closest("#interaction-tree-list")||Z.target.closest("#interaction-panel-float")||Z.target.closest(".SelectMenuPortal")||Z.target.closest(".DropdownMenuPortal")||Z.target.closest(".context-menu-mask")||Z.target.closest("#tree-editor-float")||Z.target.closest(".quickCreateItaBtn")||Z.target.closest(".setting-panel-header")||Z.target.closest(".wAttr-select-panel"))){if(t.current){t.current=!1;return}e(Vn.R7.command.interactionSelectCommand({selectInteractionKeyList:[]}))}},F=Z=>{document.querySelector("#expression-editor")&&(t.current=!0)};return(0,o.jsxs)(uA.LY,{onMouseDown:F,onClick:R,className:C()("link-settings",Va.c.GUIDE_PAGE_CREAT_LINK),children:[(0,o.jsx)(H$.m,{disabled:h!=="none",showPreference:!m,buttonType:m?"global":"common",uiFrom:n,handleCollapse:A,interactionTree:a,interactionStore:x,itemKey:i}),h!=="none"?(0,o.jsx)(G$.q,{disableType:h}):(x==null?void 0:x.type)!=="defaultData"?(0,o.jsx)(W$.L,{currentWidgetKey:i,interactionTree:a,selectInteractionKey:p,editingPanelRefPage:d,extraClick:k,uiFrom:n,collapseList:v,handleCollapse:A,interactionStore:x,isEditingCombo:c}):(0,o.jsx)(z$.U,{isEditingCombo:c,openEditorFloat:!0,uiFrom:n,interactionStore:x}),h==="none"&&a&&(0,o.jsx)(J$,{})]})};var _3=s(4649),tee=s(19295);const nee=M.Ay.div.withConfig({displayName:"styles__StyledVarSetting",componentId:"sc-qqvf44-0"})(["position:relative;display:flex;flex-direction:column;overflow:hidden;min-height:40px;.border-resizer.top{top:0;&:hover{background-color:rgba(22,132,252,.6);}&.active{background-color:rgba(22,132,252,.6);}}.var-list .empty-box{min-height:90px;img{display:none;}}"]),oee=M.Ay.div.withConfig({displayName:"styles__StyleHeader",componentId:"sc-qqvf44-1"})([" width:100%;height:40px;flex-shrink:0;display:flex;align-items:center;justify-content:space-between;border-top:1px solid ",";&:not(.show-search){padding:0 9px 0 16px;cursor:grab;}.container{display:flex;align-items:center;justify-content:space-between;flex:1;.left .title{font-size:12px;font-weight:600;font-style:normal;color:",";}.right{display:flex;align-items:center;.add-var-opener{margin-left:4px;}}}"],e=>e.theme.color_bg_border_01,e=>e.theme.color_text_L1),aee=(0,M.Ay)(Oe.Ay).withConfig({displayName:"styles__StyledContextMenu",componentId:"sc-qqvf44-2"})(["&.var-context-menu ul{min-width:160px;padding:8px;border-radius:8px;border:1px solid ",";color:",";background:",";box-shadow:",";li.MenuItem{a{border-radius:4px;padding-left:8px;background:",";color:",";svg path{fill:",";}.right-arrow svg > path{fill:",";}.shortfont kbd{color:",";}}&:not(.disabled).active{a{background:",";}}&.disabled{a{color:",";svg path{fill:",";}.shortfont kbd{color:",";}}}}}.mutiple-selection{color:",";border-bottom:1px solid ",";white-space:nowrap;line-height:24px;padding-bottom:4px;margin-bottom:4px;padding-left:8px;}"],e=>e.theme.color_bg_border_01,e=>e.theme.color_text_L0,e=>e.theme.color_bg_white,e=>e.theme.shadow_m,e=>e.theme.color_bg_white,e=>e.theme.color_text_L0,e=>e.theme.color_text_L0,e=>e.theme.color_text_L2,e=>e.theme.color_text_L2,e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_text_disabled01,e=>e.theme.color_text_disabled01,e=>e.theme.color_text_disabled01,e=>e.theme.color_text_L2,e=>e.theme.color_bg_border_01),ree=e=>{let{searchKeyword:t,showSearchIcon:n,setSearchKeyword:a,onAddVar:i,onMouseDown:c,onShowSearch:d}=e;const[p,h]=(0,l.useState)(!1),m=C()({"show-search":p}),x=k=>{k.stopPropagation(),a(""),h(!1)},v=(0,Bg.qK)(()=>{h(!0),d==null||d()}),A=k=>{k.target.closest(".container > .right")||p||c==null||c(k)};return(0,o.jsx)(oee,{className:m,onMouseDown:A,children:p?(0,o.jsx)(tee.A,{keyword:t,placeholder:I18N.Variable.search.placeholder,onChangeKeyword:a,onExitSearch:x}):(0,o.jsxs)("div",{className:"container",children:[(0,o.jsx)("div",{className:"left",children:(0,o.jsx)("span",{className:"title",children:I18N.Variable.title})}),(0,o.jsxs)("div",{className:"right",children:[n&&(0,o.jsx)(cl.A,{name:"common/search",onClick:v}),(0,o.jsx)(d0.Tl,{onAddVar:i})]})]})})},iee=async e=>{const t=await(0,It.ZO)({isShowPrompt:!0})||[],n=(0,_l.pU)();let a=e&&n.findIndex(c=>c.key===e.key)+1||n.length;a===0&&(a=1);const i=n.map(c=>c.hotAttr.name);if(t.length){const c=t.map((d,p)=>{const h=(0,vd.hX)(i,d.name),m={key:(0,_3.dU)(),hotAttr:(0,_3.mn)({name:h,zIndex:a+p,varDataType:d.varDataType,varData:d.varData,description:"",varType:"variable"}),sub:[],sup:Za.fu};return i.push(h),m});return n.splice(a,0,...c),sdkStore.updateHotItemBatch(n),(0,_l.E4)("",n),c}},Ff={single:"single",range:"range",multiple:"multiple"},see=e=>e!=null&&e.shiftKey?Ff.range:e!=null&&e.metaKey||e!=null&&e.ctrlKey?Ff.multiple:Ff.single;var T3=s(50060);const Vf=280,qy=40,$y=new Map,hA=(e,t)=>MB.global.popupHelper.confirmAsync({isHTML:!0,title:I18N.Variable.delete.title,desc:I18N.Variable.delete[e?"desc_used":"desc_noused"],theme:t}),mA=(e,t)=>{const n=e.reduce((i,c)=>((0,T3.GO)(c,T3.zN.interactions).forEach(d=>i.add(d)),i),new Set),a=[];n.forEach(i=>{const c=sdkStore.getHotItem(i);c&&a.push({key:i,hotAttr:{interactions:c.hotAttr.interactions.slice(0)}})}),a.length&&(t({type:"entry:widget:change",payload:{flatChgList:a}}),t({type:"entry:refresh:link-list"}))},fA=e=>{var t;let{containerHeight:n=0,showEmptyTtext:a=!0}=e;const i=(0,r.wA)(),c=(0,r.d4)(gl.ue),d=(0,r.d4)(te.O4),p=(0,l.useRef)(null),h=(0,l.useRef)(null),m=(0,l.useRef)(null),x=(0,l.useRef)(),v=Math.max(n-220,Vf),A=(t=(0,r.d4)(tt.p$))==null?void 0:t[0],[k,R]=(0,l.useState)($y.get(A)||Vf),[F,Z]=(0,l.useState)(""),[G,ee]=(0,l.useState)([]),[ce,se]=(0,l.useState)(null),[he,ve]=(0,l.useState)(null),Te=he==null?void 0:he.item,xe=Te&&c.find(ho=>ho.key===Te.key);Te&&Te!==xe&&ve(xe?{...he,item:xe}:null);const Fe=(0,l.useMemo)(()=>ce!=null&&ce.trigger?[{label:I18N.ToolBarNext.copy,command:"copy"},{label:I18N.ToolBarNext.paste,command:"paste",disabled:!(0,It.pU)()},{label:I18N.ToolBarNext.delete,command:"delete"}]:[{label:I18N.ToolBarNext.paste,command:"paste",disabled:!(0,It.pU)()}],[ce==null?void 0:ce.trigger]),et=(0,l.useMemo)(()=>{const ho=c.sort((Xo,Ta)=>Xo.hotAttr.zIndex-Ta.hotAttr.zIndex);if(!F)return ho;const No=F.toLowerCase();return ho.filter(Xo=>Xo.hotAttr.name.toLowerCase().includes(No)||String(Xo.hotAttr.varData).includes(No))},[c,F]),Ke=(0,l.useCallback)(()=>{i({type:"settings:update:varList",payload:{varList:(0,_l.pU)()}})},[i]);(0,l.useEffect)(()=>{if(A){const ho=$y.get(A);R(ho||Vf)}},[A,R]),(0,l.useEffect)(()=>(nt(),()=>{Et()}),[]),(0,l.useEffect)(()=>{var ho;(ho=m.current)==null||ho.call(m,c)},[c]);const Qe=(ho,No)=>{ho>v&&(ho=v),ho<qy&&(ho=qy),R(ho),No&&A&&$y.set(A,ho)},nt=()=>{p!=null&&p.current&&Qe(p.current.clientHeight)},Xe=()=>{Qe(p.current.clientHeight,!0)},lt=()=>{k<80&&Qe(Vf,!0)},Ct=(ho,No)=>{var Xo;const Ta=c.map(Wr=>Wr.hotAttr.name),Da=(0,vd.hX)(Ta,No==null?void 0:No.name),xr=(Xo=No==null?void 0:No.varData)!=null?Xo:(0,vd.D5)(ho),Wa={key:(0,_3.dU)(),hotAttr:(0,_3.mn)({name:Da,zIndex:0,varDataType:ho,varData:xr,description:"",varType:"variable"}),sub:[],sup:Za.fu};sdkStore.combineMergeMark("add-items"),x.current="add-items";const Dr=(0,_l.pU)();(0,_l.E4)("",[Wa,...Dr]),Ke(),k<80&&Qe(Vf,!0),m.current=Wr=>{m.current=null;const hi=Wr.find(Sr=>Sr.key===Wa.key);hi&&(ee([hi.key]),ve({item:hi,autoFocusArea:"varName",position:(0,vd.iL)(hi,p.current)}))}},St=(ho,No)=>{const Xo=sdkStore.getHotItem(ho);if(!Xo||Xo.hotAttr.name!==No.name||Xo.hotAttr.varData!==No.varData){if(sdkStore.combineMergeMark("update-vardata"),sdkStore.updateHotAttrMerge(ho,No),Xo&&typeof No.varData<"u"&&No.varData!==Xo.hotAttr.varData){const Da=(0,_l.z1)(Xo.key);Da!=null&&Da.length&&i({type:"entry:widget:change",payload:{flatChgList:Da}})}Ke(),sdkStore.combineMerge("update-vardata")}},hn=async()=>{if(!he)return;const ho=he.item.key,No=(0,T3.Sc)(ho);if(await hA(No,d)){if(x.current&&(sdkStore.combineMerge(x.current),x.current=""),sdkStore.combineMergeMark("delete-items"),sdkStore.deleteHotItem(ho),No){const Ta=(0,_l.p8)(he.item);sdkStore.updateHotItem(Ta),mA([ho],i)}(0,_l.E4)("delete-items"),Ke(),Et()}},Cn=(ho,No,Xo)=>{const Ta=see(No),Da=G.includes(ho.key);if(G.length){if(Ta===Ff.range){const xr=et.findIndex(Wr=>Wr.key===ho.key);let Wa=-1,Dr=1/0;if(G.forEach(Wr=>{const hi=et.findIndex(oi=>oi.key===Wr),Sr=Math.abs(hi-xr);Sr<Dr&&(Dr=Sr,Wa=hi)}),Wa!==-1){const[Wr,hi]=Wa<xr?[Wa,xr]:[xr,Wa];et.slice(Wr,hi+1).forEach(Sr=>{G.includes(Sr.key)||G.push(Sr.key)}),ee(G.slice()),ve(null)}return}if(Ta===Ff.multiple){ee(Da?G.filter(xr=>xr!==ho.key):[...G,ho.key]),ve(null);return}if(Da){ee([]),ve(null);return}}ee([ho.key]),ve({item:ho,position:(0,vd.iL)(ho,p.current),autoFocusArea:Xo})},Mt=(ho,No)=>{G.includes(ho.key)&&he?ve({...he,autoFocusArea:No}):(ee([ho.key]),ve({item:ho,position:(0,vd.iL)(ho,p.current),autoFocusArea:No}))},Et=()=>{ve(null),ee([]),x.current&&(sdkStore.combineMerge(x.current),x.current="")},Co=ho=>{(0,_l.E4)("sort-items",ho),Ke(),ve(null)},Pn=()=>{ee([])},ro=ho=>{if(h.current){h.current.handleDown(ho),h.current.setState({active:!1});const No=document.body.querySelector(".body-ns-resize");No&&(No.style.pointerEvents="none")}},Io=(ho,No)=>{const Xo={top:No.clientY,left:No.clientX};se({position:Xo,trigger:ho}),(!ho||!G.includes(ho.key))&&Et()},mo=(0,l.useCallback)(async ho=>{const No=G.slice();ho!=null&&ho.key&&!G.includes(ho.key)&&No.push(ho.key);const Xo=No.filter(Da=>(0,T3.Sc)(Da));if(await hA(Xo.length>0,d)){if(sdkStore.combineMergeMark("delete-items"),sdkStore.deleteHotItemBatch(No),Xo.length){const Da=Xo.map(xr=>(0,_l.p8)(sdkStore.getHotItem(xr)));sdkStore.updateHotItemBatch(Da),mA(Xo,i)}(0,_l.E4)("delete-items"),Et(),Ke()}},[i,Ke,d,G]);(0,l.useEffect)(()=>{Object.assign(MB,{shortKeyCallbackBucket:{...MB.shortKeyCallbackBucket,deleteVarNodeCallback:()=>G.length===0?!1:(mo(),!0)}})},[mo,G.length]),(0,l.useEffect)(()=>()=>{Object.assign(MB,{shortKeyCallbackBucket:{...MB.shortKeyCallbackBucket,deleteVarNodeCallback:void 0}})},[]);const So=async ho=>{const{trigger:No}=ce;if(ho==="copy"){const Xo=G.length?G:No!=null&&No.key?[No==null?void 0:No.key]:[];if(!Xo.length)return;const Ta=Xo.map(Da=>{const{hotAttr:{name:xr,varDataType:Wa,varData:Dr}}=sdkStore.getHotItem(Da);return{name:xr,varDataType:Wa,varData:Dr}});await(0,It.p8)(Ta);return}if(ho==="paste"){x.current="paste-items",sdkStore.combineMergeMark(x.current);const Xo=await iee(No);Xo&&(Ke(),m.current=Ta=>{m.current=null;const Da=Xo.map(Wa=>Wa.key);if(Da.length===1){ee(Da);const Wa=Ta.find(Dr=>Dr.key===Da[0]);Wa&&ve({item:Wa,autoFocusArea:"varName",position:(0,vd.iL)(Wa,p.current)})}else{var xr;ee([]);const Wa=Xo[Da.length-1].key,Dr=(xr=p.current)==null?void 0:xr.querySelector('.var-list .var-item[data-cid="'+Wa+'"]');Dr==null||Dr.scrollIntoView(!1);const Wr=[];Da.forEach(hi=>{var Sr;const oi=(Sr=p.current)==null?void 0:Sr.querySelector('.var-list .var-item[data-cid="'+hi+'"]');oi&&(oi.classList.add("highlight"),Wr.push(oi))}),setTimeout(()=>{Wr.forEach(hi=>hi==null?void 0:hi.classList.remove("highlight"))},1e3),sdkStore.combineMerge(x.current),x.current=""}});return}ho==="delete"&&mo(No)};return(0,o.jsxs)(nee,{style:{flexBasis:k},ref:p,children:[(0,o.jsx)(qr.A,{placement:"top",value:k,min:qy,max:v,onResizeStart:nt,onResizeEnd:Xe,onChange:Qe,ref:h}),(0,o.jsx)(ree,{onAddVar:Ct,showSearchIcon:!!(et!=null&&et.length),searchKeyword:F,setSearchKeyword:Z,onMouseDown:ro,onShowSearch:lt}),(0,o.jsx)(d0.CB,{list:et,showEmptyTtext:a,onClick:Cn,onDoubleClick:Mt,selection:G,contextTrigger:ce==null?void 0:ce.trigger,onSorted:F?void 0:Co,onContextMenu:Io,onClickOutside:Pn}),he&&(0,o.jsx)(d0.Hk,{editorItem:he.item,position:he.position,onClose:Et,onDelete:hn,onChange:St,autoFocus:he.autoFocusArea}),ce&&(0,o.jsx)(aee,{className:"var-context-menu",position:ce.position,onClose:()=>se(null),children:(0,o.jsxs)(o.Fragment,{children:[G.length>1&&(0,o.jsx)("li",{className:"mutiple-selection",children:I18N.Variable.context.selection.replace("{n}",G.length)}),Fe.map(ho=>(0,o.jsx)(Oe.Dr,{text:ho.label,disabled:ho.disabled,onClick:()=>So(ho.command)},ho.command))]})})]})};var lee=s(49291),cee=s(51320),dee=s(11582);function pee(e){let{device:t,deviceKey:n,width:a,height:i}=e;const c=(0,r.wA)(),d=(0,r.d4)(me.Ur),p=(0,r.d4)(me.wq),h=()=>{const m=(0,fp.X0)(d,{width:a,height:i,device:n}),x={...p,...m};c({type:"entry:batch:create:items:position",payload:{finalWidget:x}}),c({type:"set:quick-create-widget",payload:{widget:null}}),(0,xi.s9)({page:{device:n}})};return(0,o.jsxs)(uee,{onClick:h,children:[(0,o.jsx)("span",{className:"deviceName",children:(0,Jc.d0)({model:n,device:t,isPageSize:!0})}),(0,o.jsxs)("span",{className:"deviceSize",children:[a," \xD7 ",i]})]})}const uee=M.Ay.div.withConfig({displayName:"SizeItem__StyledSizeItem",componentId:"sc-yydgop-0"})(["width:100%;padding:6px 16px 6px 32px;line-height:20px;display:flex;justify-content:space-between;cursor:pointer;.deviceName{color:",";}.deviceSize{color:",";white-space:nowrap;display:flex;align-items:center;}&:hover{background:",";}&:first-child{margin-top:8px;}&:last-child{margin-bottom:8px;}"],e=>e.theme.color_text_L1,e=>e.theme.color_text_L3,e=>e.theme.color_btn_secondary_hover),hee=M.Ay.div.withConfig({displayName:"CanvasSizeSelect__StyledCanvasSizeSelect",componentId:"sc-1ph3hpr-0"})([".collapse-panel-wrapper{&:not(:first-child){margin-top:2px;border-top:1px solid ",";}.collapse-panel{header{height:24px;&:hover{background:none;}}&:not(.expanded) header{margin:4px 0;}&.expanded header{margin-top:4px;}div.title{font-weight:500;margin-left:6px;}}}"],e=>e.theme.color_bg_border_02),mee=(0,l.memo)(e=>{var t;let{defaultDevice:n}=e;const[a,i]=(0,l.useState)(n!=="none"&&((t=Jc.v2[n])==null?void 0:t.device)||"iphone"),c=d=>()=>{i(a===d?"":d)};return(0,o.jsx)(hee,{children:Jc.a$.map((d,p)=>{let{device:h,modelList:m}=d;const x=a===h;return(0,o.jsx)("div",{className:"collapse-panel-wrapper",children:(0,o.jsx)(dee.A,{id:p+"1",title:(0,Jc.KB)({device:h}),width:250,expanded:x,onToggle:c(h),children:m.map((v,A)=>{let{width:k,height:R,key:F}=v;return(0,o.jsx)(pee,{device:h,deviceKey:F,width:k,height:R},A)})},p)},"collapse-panel-wrapper-"+p)})})});var fee=s(15170);const gee=M.Ay.div.withConfig({displayName:"styles__StyledExportButton",componentId:"sc-tr7jxo-0"})(["width:100%;height:40px;background:",";padding:0 10px;display:flex;justify-content:flex-end;align-items:center;z-index:1;border-top:1px solid ",";.button-root{width:100%;}.svg-icon.btn-loading{animation:spinning 2s linear infinite;}"],e=>e.theme.color_bg_white,e=>e.theme.color_bg_border_01),yee=(0,l.memo)(e=>{const{dispatch:t}=e,n=()=>{MB.global.experienceLoginModalHelper("isSave")||t({type:"entry:toolbar:open:export_menu"})};return(0,o.jsx)(gee,{children:(0,o.jsx)(ll.lV,{className:"export-screen-btn2",onClick:n,children:I18N.SettingPanel.export})})});var xee=s(86750),e8=s(71190);class vee extends l.PureComponent{render(){const{updateHeight:t,updateWidth:n,selectNewModel:a,updateOrientation:i,deviceType:c,deviceWidth:d,deviceHeight:p,orientation:h}=this.props,m=d==="\u591A\u4E2A\u503C",x=p==="\u591A\u4E2A\u503C";return(0,o.jsxs)(bee,{title:I18N.ScreenPanel.prototype_presentation,children:[(0,o.jsxs)("div",{className:"screen-info height-32",children:[(0,o.jsx)(xee.A,{model:c,renderList:Jc.X6,onSelect:a}),(0,o.jsx)("div",{className:"placeholder"}),(0,Jc.$n)(c)&&c!=="\u591A\u4E2A\u503C"&&(0,o.jsxs)("section",{className:C()("orientation-body"),children:[(0,o.jsx)(gc.A,{content:I18N.SettingPanel.portrait,children:(0,o.jsx)("div",{className:C()("orientation-option",{active:h==="portrait"}),onClick:()=>{i({deviceOrientation:"portrait"})},children:(0,o.jsx)(xt.C,{className:"icon",name:"setting_panel/screen/screen_portrait"})})}),(0,o.jsx)(gc.A,{content:I18N.SettingPanel.landscape,children:(0,o.jsx)("div",{className:C()("orientation-option",{active:h==="landscape"}),onClick:()=>{i({deviceOrientation:"landscape"})},children:(0,o.jsx)(xt.C,{className:"icon",name:"setting_panel/screen/screen_landscape"})})})]})]}),c==="customize"&&(0,o.jsxs)("div",{className:"general-line height-32",children:[(0,o.jsx)(P1.A,{className:"general-input screen-width-edit step-input-width-72",title:"W",attr:"width",value:m?void 0:d,disabled:!1,min:1,max:99999,isNotVerify:m,placeholder:"\u591A\u4E2A\u503C",onConfirm:n}),(0,o.jsx)(P1.A,{className:"general-input screen-height-edit step-input-width-72",title:"H",attr:"height",value:x?void 0:p,disabled:!1,min:1,max:99999,isNotVerify:x,placeholder:"\u591A\u4E2A\u503C",onConfirm:t})]})]})}}const bee=(0,M.Ay)(e8.A).withConfig({displayName:"indexui__StyledDeviceSettings",componentId:"sc-1lyankb-0"})(["",";.screen-info{display:flex;align-items:center;padding:0 10px;}.placeholder{flex:1}.orientation-body{display:flex;flex-direction:row;justify-content:flex-start;margin-left:10px;.orientation-option{cursor:pointer;width:24px;height:24px;border-radius:4px;&:not(.active):hover{background:",";color:",";}&.active{color:",";background:",";}.icon{font-size:24px;margin-right:6px;}.svg-icon{color:",";}&:first-child{margin:0 3px;}}}.general-line{display:flex;align-items:center;padding:0 10px;&.is-clip-content-line{padding-left:5px;margin-top:4px;.Check-label{margin-left:10px;}}.general-input{flex:0 0 66px;display:flex;justify-content:space-between;align-items:center;margin-bottom:4px;&:not(:last-child){margin-right:8px;}&.is-active:not(.has-menu):not(.is-disabled) .title{color:",";}}.active{background:#1A70D8;}}"],za.L9,e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_text_L1,e=>e.theme.color_text_L1,e=>e.theme.color_btn_secondary_active,e=>e.theme.color_text_L1,e=>e.theme.color_text_L3);var gA=s(51743),P3=s(50521),yA=s(30542),wee=s(40715);const xA=240,vA=e=>{let{position:t,renderOpener:n,onClickOpener:a}=e;const i=(0,r.wA)(),c=m=>i({type:"entry:libStyle:re-build:treeData",payload:{type:m}}),d=()=>{const m={...t,left:t.left-un.tA};i({type:"entry:libStyle:open:color:modal",payload:{position:m,onConfirm:()=>c("color")}})},p=()=>{i({type:"modal:update:state",payload:{libEditTextModal:{isOpen:!0,position:{...t,left:t.left-un.tA-xA},type:"create",attrs:(0,un.H$)(),onConfirm:()=>c("text")}}})},h=()=>{i({type:"modal:update:state",payload:{libEditAppearModal:{isOpen:!0,position:{...t,left:t.left-un.tA-xA},type:"create",attrs:un.R3,onConfirm:()=>c("appear")}}})};return(0,o.jsx)(Cee,{direction:"down",renderOpener:n,renderMenu:(0,o.jsxs)(See,{position:t,children:[(0,o.jsx)(Oe.Dr,{text:I18N.libPanel.manage.create_ref.color,icon:(0,o.jsx)(xt.C,{name:"setting_panel/libPanl/color/create",size:16}),size:16,onClick:d}),(0,o.jsx)(Oe.Dr,{text:I18N.libPanel.manage.create_ref.text,icon:(0,o.jsx)(xt.C,{name:"setting_panel/libPanl/text/create",size:16}),onClick:p}),(0,o.jsx)(Oe.Dr,{text:I18N.libPanel.manage.create_ref.appear,icon:(0,o.jsx)(xt.C,{name:"setting_panel/libPanl/appear/create",size:16}),onClick:h})]}),onClick:a})},Cee=(0,M.Ay)(Cu.A).withConfig({displayName:"CreateDropDown__StyledDropDown",componentId:"sc-abkp7x-0"})(["height:24px;"]),See=(0,M.Ay)(Oe.Ay).withConfig({displayName:"CreateDropDown__StyledContextMenu",componentId:"sc-abkp7x-1"})(["width:max-content;",";ul{min-width:160px;li{.svg-icon{margin-right:8px;}}}"],za.ZJ),Aee=()=>{const[e,t]=(0,l.useState)(!1),[n,a]=(0,l.useState)({top:0,left:0}),i=(0,l.useRef)(null),c=d=>{if(t(d),!d)return;const{left:p,bottom:h}=i.current.getBoundingClientRect();a({top:h+6,left:p+23})};return(0,o.jsxs)(kee,{children:[(0,o.jsx)(wee.m,{}),(0,o.jsx)(vA,{position:n,renderOpener:(0,o.jsx)(P3.Q,{icon:(0,o.jsx)(xt.C,{className:C()("add-icon",{active:e}),name:"common/add@24",size:24,ref:i}),content:"\u521B\u5EFA\u6837\u5F0F",direction:"down"}),onClickOpener:c})]})},kee=M.Ay.div.withConfig({displayName:"Header__StyledHeaderRightComponent",componentId:"sc-1l97pr9-0"})(["display:flex;.toolbar-dropdown-opener{width:24px;height:24px;border-radius:4px;color:",";cursor:pointer;display:flex;align-items:center;justify-content:center;&:not(.is-open):hover{background:",";}&.is-open{background:",";}}"],e=>e.theme.color_text_L1,e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_btn_secondary_active);var Mee=s(18821),bA=s.n(Mee);const Eee=e=>{let{refStyleData:t,onActiveKey:n}=e;const a=(0,r.wA)(),i=(0,l.useRef)(null),c=p=>{a({type:"entry:libStyle:re-build:treeData",payload:{type:p}}),n("")},d=p=>{p.stopPropagation();const{hotAttr:h}=t,{left:m,top:x,width:v}=i.current.getBoundingClientRect(),A={top:x-110,left:m-240-un.tA+v};if(n(t==null?void 0:t.key),h.styleType==="color"&&a({type:"modal:update:state",payload:{libEditColorModal:{isOpen:!0,position:A,type:"edit",color:{fill:"solid",fillIsVisible:!0,solidColor:h.fill},currentKey:t==null?void 0:t.key,title:h==null?void 0:h.name,desc:h==null?void 0:h.desc,onSetRefStyle:()=>{},onColorChange:()=>{},onConfirm:()=>{c("color"),c("appear")},onCancel:()=>n("")}}}),h.styleType==="appear"){const k={borderRadius:h==null?void 0:h.borderRadius,borderRadiusIsVisible:h==null?void 0:h.borderRadiusIsVisible,borderVisibility:h==null?void 0:h.borderVisibility,border:h==null?void 0:h.border,fill:h==null?void 0:h.fill,shadow:h==null?void 0:h.shadow};a({type:"modal:update:state",payload:{libEditAppearModal:{isOpen:!0,position:A,type:"edit",currentKey:t==null?void 0:t.key,title:h==null?void 0:h.name,desc:h==null?void 0:h.desc,attrs:k,refStyles:h==null?void 0:h.refStyles,onConfirm:()=>c("appear"),onCancel:()=>n("")}}})}if(h.styleType==="text"){const k=bA()(h,un.F$);a({type:"modal:update:state",payload:{libEditTextModal:{isOpen:!0,position:A,type:"edit",currentKey:t==null?void 0:t.key,title:h==null?void 0:h.name,desc:h==null?void 0:h.desc,attrs:k,refStyles:h==null?void 0:h.refStyles,onConfirm:()=>c("text"),onCancel:()=>n("")}}})}};return(0,o.jsx)(o.Fragment,{children:!t.hotAttr.libKey&&(0,o.jsx)(P3.Q,{icon:(0,o.jsx)(xt.C,{name:"common/edit@24",size:24,ref:i}),className:"edit-icon",content:"\u7F16\u8F91",direction:"down",onClick:d})})};var t8=s(63496);const wA={isOpen:!1,position:{top:0,left:0},refStyle:{}},Iee=e=>{var t;return(t=sdkStore.findAllTypeUnder(e,"rResStyle"))==null?void 0:t.length},_ee=e=>{let{treeNode:t,onSetActiveKey:n,index:a=0}=e;const i=(0,l.useRef)(null),c=(0,l.useMemo)(()=>{if(t.hotAttr.styleType==="color"){const p={fill:"solid",fillIsVisible:!0,solidColor:t.hotAttr.fill};return p&&(0,$l.$8)(p,{w:200,h:100})}},[t]),d=(0,l.useMemo)(()=>{if(c)return(0,$l.TQ)(c)},[c]);return(0,o.jsxs)(gc.A,{content:(0,I0.M)(t.hotAttr,d),direction:"down",delay:500,children:[t.hotAttr.styleType==="text"&&(0,o.jsx)(T0.c,{textStyle:t}),t.hotAttr.styleType==="color"&&(0,o.jsx)(M1.I,{ref:i,color:c,solidRenderType:"circle",size:16,index:a}),t.hotAttr.styleType==="appear"&&(0,o.jsx)(Xp.U,{appearStyle:t,index:a}),(0,o.jsxs)("div",{className:"content-wrap",children:[(0,o.jsx)("div",{className:"title",children:t.hotAttr.name}),t.hotAttr.styleType==="text"&&(0,o.jsxs)("span",{className:"desc",children:[t.hotAttr.fontSize,"/",t.hotAttr.lineHeight]})]}),(0,o.jsx)(Eee,{refStyleData:t,onActiveKey:n})]},t.key)},Tee=e=>{let{treeNode:t,isEditing:n,onSetIsEditing:a}=e;const i=(0,l.useRef)(null),c=(0,r.wA)(),d=m=>{c({type:"entry:libStyle:re-build:treeData",payload:{type:m}})},p=m=>{m.stopPropagation(),m.preventDefault();const x=t.hotAttr.styleType,{left:v,bottom:A}=i.current.getBoundingClientRect(),k={top:A+un.Nc,left:v-un.tA};x==="color"&&c({type:"entry:libStyle:open:color:modal",payload:{position:k,onConfirm:()=>d("color"),sup:t.key}}),x==="text"&&c({type:"modal:update:state",payload:{libEditTextModal:{isOpen:!0,position:k,type:"create",sup:t.key,attrs:(0,un.H$)(),onConfirm:()=>d("text")}}}),x==="appear"&&c({type:"modal:update:state",payload:{libEditAppearModal:{isOpen:!0,position:k,sup:t.key,type:"create",attrs:un.R3,onConfirm:()=>d("appear")}}})},h=async(m,x)=>{x&&m.trim()&&((0,ms.F5)(t.key,m,t.hotAttr.styleType),d(t.hotAttr.styleType)),a(!1)};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("div",{className:"content-wrap",children:[(0,o.jsx)("div",{className:"folder-expand",children:(0,o.jsx)(xt.C,{name:"common/expand",className:"expand"})}),(0,o.jsx)(vf.A,{className:"editable-span",isEditing:n,value:t.hotAttr.name,onConfirm:h},t.hotAttr.name)]}),(0,o.jsx)(P3.Q,{icon:(0,o.jsx)(xt.C,{className:"add-icon",name:"common/add@24",size:24,ref:i}),content:""+I18N.SettingPanel.design.create+I18N.libPanel.common[t.hotAttr.styleType]+I18N.libPanel.common.style,direction:"down",onClick:p,className:"create-icon"})]})},CA=e=>{var t;let{treeNode:n,type:a,depth:i,index:c=0,onMouseDown:d,onMouseUp:p}=e;const[h,m]=(0,l.useState)(!1),[x,v]=(0,l.useState)(""),[A,k]=(0,l.useState)(wA),R=(0,r.d4)(Ns.qF),F=(0,l.useMemo)(()=>!R.has(n.key),[R,n.key]),Z=(0,r.wA)(),G=(xe,Fe)=>{xe.stopPropagation(),xe.preventDefault(),k({isOpen:!0,position:{top:xe.clientY,left:xe.clientX},refStyle:Fe}),v(Fe.key)},ee=()=>{k(wA),v("")},ce=xe=>{Z({type:"entry:libStyle:re-build:treeData",payload:{type:xe}}),v("")},se=()=>{const{refStyle:xe}=A,{hotAttr:Fe}=xe;if(v(xe.key),(Fe==null?void 0:Fe.type)==="rResStyleGroup"){m(!0);return}const et={...A.position,left:A.position.left-un.tA};if(Fe.styleType==="color"&&Z({type:"modal:update:state",payload:{libEditColorModal:{isOpen:!0,position:et,type:"edit",color:{fill:"solid",fillIsVisible:!0,solidColor:Fe.fill},currentKey:xe==null?void 0:xe.key,title:Fe==null?void 0:Fe.name,desc:Fe==null?void 0:Fe.desc,onSetRefStyle:()=>{},onColorChange:()=>{},onConfirm:()=>ce("color"),onCancel:()=>v("")}}}),Fe.styleType==="appear"){const Ke={borderRadius:Fe==null?void 0:Fe.borderRadius,borderVisibility:Fe==null?void 0:Fe.borderVisibility,borderRadiusIsVisible:Fe==null?void 0:Fe.borderRadiusIsVisible,border:Fe==null?void 0:Fe.border,fill:Fe==null?void 0:Fe.fill,shadow:Fe==null?void 0:Fe.shadow};Z({type:"modal:update:state",payload:{libEditAppearModal:{isOpen:!0,position:et,type:"edit",currentKey:xe==null?void 0:xe.key,title:Fe==null?void 0:Fe.name,desc:Fe==null?void 0:Fe.desc,attrs:Ke,onConfirm:()=>ce("appear"),onCancel:()=>v("")}}})}if(Fe.styleType==="text"){const Ke=bA()(Fe,un.F$);Z({type:"modal:update:state",payload:{libEditTextModal:{isOpen:!0,position:et,type:"edit",currentKey:xe==null?void 0:xe.key,title:Fe==null?void 0:Fe.name,desc:Fe==null?void 0:Fe.desc,attrs:Ke,onConfirm:()=>ce("text"),onCancel:()=>v("")}}})}},he=()=>{var xe;const{refStyle:Fe}=A;v("");const et=sdkStore.getHotItem(Fe.sup);et&&et.hotAttr.type==="rResStyleGroup"&&et.sub.length===1&&et.sub[0]===Fe.key&&sdkStore.deleteHotItem(et.key),Fe.key&&sdkStore.deleteHotItem(Fe.key),ce(Fe.hotAttr.styleType),xl.U4.protoStyleTrack((xe=MB)==null||(xe=xe.user)==null?void 0:xe.id,"\u5220\u9664",Fe.hotAttr.styleType)},ve=(xe,Fe)=>{Fe.hotAttr.type==="rResStyleGroup"&&Z({type:"style-lib:update:collapseGroupKeySet",payload:{key:Fe.key}})},Te=()=>{const xe="\u672A\u547D\u540D/"+n.hotAttr.name;n.hotAttr.type==="rResStyle"?(0,ms.$6)(n.key,"\u672A\u547D\u540D"):n.hotAttr.type==="rResStyleGroup"&&(0,ms.F5)(n.key,xe,n.hotAttr.styleType),ce(n.hotAttr.styleType)};return(0,o.jsxs)("li",{className:"style-list-item","data-key":n.key,children:[(0,o.jsxs)("div",{className:C()("style-content",{"folder-style":n.hotAttr.type==="rResStyleGroup","is-active":x===n.key,"is-collapse":n.hotAttr.type==="rResStyleGroup"&&!F}),style:{paddingLeft:30*i+4+"px"},onContextMenu:xe=>G(xe,n),onClick:xe=>ve(xe,n),onMouseDown:xe=>d&&d(xe,n),onMouseUp:p,children:[n.hotAttr.type==="rResStyle"&&(0,o.jsx)(_ee,{treeNode:n,onSetActiveKey:v,index:c}),n.hotAttr.type==="rResStyleGroup"&&(0,o.jsx)(Tee,{treeNode:n,isEditing:h,onSetIsEditing:m})]}),n.children.length>0&&F&&(0,o.jsx)("ul",{className:"lib-style-list",children:n==null||(t=n.children)==null?void 0:t.map((xe,Fe)=>(0,o.jsx)(CA,{treeNode:xe,type:a,depth:i+1,index:Fe+c,onMouseDown:d,onMouseUp:p},xe.key))}),A.isOpen&&(0,o.jsxs)(t8.Sv,{position:A.position,onClose:ee,children:[(0,o.jsx)(Oe.Dr,{text:n.hotAttr.type==="rResStyleGroup"?"\u91CD\u547D\u540D":"\u7F16\u8F91",onClick:se}),(0,o.jsx)(Oe.Dr,{text:n.hotAttr.type==="rResStyleGroup"?"\u5220\u9664 "+Iee(n.key)+" \u4E2A\u6837\u5F0F":"\u5220\u9664",onClick:he}),(0,o.jsx)(Oe.Dr,{text:"\u65B0\u5EFA\u6587\u4EF6\u5939",onClick:Te})]})]},n.key)};var Pee=s(99306),Lee=s(44229);const Nee=(e,t)=>{const n=t.children;return n[n.length-1].key===e},jee=(e,t,n,a)=>{var i;const c=document.querySelector("."+a+"-style-panel-content"),d=c==null?void 0:c.querySelector(".lib-style-list"),p=Array.from((i=c==null?void 0:c.querySelectorAll("."+a+"-style-panel-content li.style-list-item"))!=null?i:[]),h=c==null?void 0:c.getBoundingClientRect(),m={left:h==null?void 0:h.left,top:(h==null?void 0:h.top)+32,right:h==null?void 0:h.right,bottom:h==null?void 0:h.bottom,width:h==null?void 0:h.width,height:(h==null?void 0:h.height)-32},x=d==null?void 0:d.getBoundingClientRect(),v=[],A={},k=(0,kl.dP)(),R=(0,Ns.qF)(k),F=(0,Ns.Ip)(k);let Z=new Set,G=1,ee=t;if(e){const se=new Set(t);for(const ve of t){const Te=sdkStore.getHotItem(ve);Te&&se.has(Te.sup)&&se.delete(Te.key)}ee=Array.from(se),Z=new Set(ee);const he=[];(0,nr.sV)(n,ve=>{const{key:Te,children:xe}=ve;if(Z.has(Te)&&(xe==null?void 0:xe.length)>0)for(const Fe of ve.children)Z.add(Fe.key);t.includes(Te)&&he.push(ve)});for(const ve of he){const Te=(0,nr.QR)(ve);G=Math.max(Te,G)}}const ce=p.length;return p.forEach((se,he)=>{const{key:ve}=se.dataset,Te=(0,nr.aR)(ve,n),xe=Te,Fe=F.getTreeNodeLevel(Te.key),et=se.querySelector(":scope > .style-content"),Ke=et==null?void 0:et.getBoundingClientRect(),Qe=(0,Rs.yB)(et),nt=se.getBoundingClientRect(),Xe={top:Ke.top-x.top,left:Ke.left-x.left,width:Ke.width,height:Ke.height},lt={top:Qe.top-x.top,left:Qe.left-x.left,width:Qe.width,height:Qe.height},Ct={top:nt.top-x.top,left:lt.left+8,width:lt.width,height:nt.height};A[ve]={rect:Xe,contentRect:lt,treeRect:Ct};const{left:St,top:hn,width:Cn,height:Mt}=Xe,Et=St+Cn,Co=hn+Mt/3,Pn=hn+Mt/3*2,ro=hn+Mt;if(Z.has(ve)){v.push({cid:ve,type:null,min:{x:St,y:hn},max:{x:Et,y:ro},isValid:!1});return}he===0&&v.push({cid:ve,type:"prevSibling",parentCid:xe.sup,min:{x:St,y:hn},max:{x:Et,y:Co},isValid:!0}),he===ce-1&&v.push({cid:ve,type:"nextSibling",parentCid:xe.sup,min:{x:St,y:ro},max:{x:Et,y:m.height},isValid:!0});const Io=4,mo=Fe+G<=Io,So=Fe-1+G<=Io;if(Te.hotAttr.type==="rResStyleGroup"&&v.push({cid:ve,type:"firstChild",parentCid:ve,min:{x:St,y:hn},max:{x:Et,y:Pn},isValid:mo}),!R.has(ve)&&Te.children.length>0){const{key:No}=Te.children[0];v.push({cid:No,type:"prevSibling",parentCid:ve,min:{x:St,y:Pn},max:{x:Et,y:ro},isValid:mo})}else{const No=(0,nr.aR)(xe.sup,n);Nee(ve,n)&&No?v.push({cid:ve,type:"nextSibling",parentCid:xe.sup,min:{x:A[ve].contentRect.left,y:Pn},max:{x:Et,y:ro},isValid:So}):v.push({cid:ve,type:"nextSibling",parentCid:xe.sup,min:{x:St,y:Pn},max:{x:Et,y:ro},isValid:So})}}),{matchDataList:v,containerRect:m,rectQueryMap:A,pathSelectedIds:ee}},n8=e=>{var t,n;let{treeData:a,type:i}=e;const[c,d]=(0,l.useState)(null),p=(0,l.useRef)(null),h=(0,l.useRef)(null),m=(0,r.wA)(),x=(0,r.d4)(tt.p$),v=(0,r.d4)(Ns.Ip);if(!a||a.children.length===0)return null;const A=ee=>m({type:"entry:libStyle:re-build:treeData",payload:{type:ee}}),k=()=>{const{left:ee,bottom:ce}=h.current.getBoundingClientRect(),se={top:ce+un.Nc,left:ee-un.tA};i==="color"&&m({type:"entry:libStyle:open:color:modal",payload:{position:se,onConfirm:()=>A("color")}}),i==="text"&&m({type:"modal:update:state",payload:{libEditTextModal:{isOpen:!0,position:se,type:"create",attrs:(0,un.H$)(),onConfirm:()=>A("text"),...(0,ms.l$)(x)}}}),i==="appear"&&m({type:"modal:update:state",payload:{libEditAppearModal:{isOpen:!0,position:se,type:"create",attrs:un.R3,onConfirm:()=>A("appear"),...(0,ms.xe)(x)}}})},R=(ee,ce)=>{ee.button===0&&(p.current=setTimeout(()=>{const se=document.querySelector("."+ce.hotAttr.styleType+'-style-panel-content li[data-key="'+ce.key+'"] .style-content');if(!se)return;const{top:he,left:ve}=se.getBoundingClientRect(),Te=ee.clientX-ve,xe=ee.clientY-he,Fe=[ce.key],et={screen:ce,$element:se,offsetX:Te,offsetY:xe,...jee(ce,Fe,a,i)};d(et)},200))},F=()=>{p.current&&clearTimeout(p.current)},Z=ee=>{var ce;let{cid:se,type:he,parentCid:ve,isValid:Te}=ee;if(!c)return;const{pathSelectedIds:xe}=c;if(d(null),!Te)return;const Fe=[v.getNode(xe[0])],et=(ce=v.getNode(ve))==null?void 0:ce.children.filter(nt=>{let{key:Xe,hotAttr:lt}=nt;return!xe.includes(Xe)&&lt.styleType===i}),Ke=et.findIndex(nt=>nt.key===se),Qe=he==="prevSibling"?Ke:he==="firstChild"?0:he==="nextSibling"?Ke+1:"error";et.splice(Qe,0,...Fe),sdkStore.combineMergeMark("sort-style"),et.forEach((nt,Xe)=>{var lt;if(nt.sup!==ve||((lt=nt.hotAttr)==null?void 0:lt.zIndex)!==et.length-Xe){const Ct=sdkStore.getHotItem(nt.key),St={...Ct,sup:ve,hotAttr:{...Ct.hotAttr,zIndex:et.length-Xe}};sdkStore.updateHotItem(St)}}),sdkStore.combineMerge("sort-style"),A(i)},G=()=>document.querySelector("."+i+"-style-panel-content");return(0,o.jsxs)("li",{className:i+"-style-panel-content",children:[(0,o.jsxs)("header",{ref:h,children:[(0,o.jsx)("span",{children:""+I18N.libPanel.common[i]+I18N.libPanel.common.style}),(0,o.jsx)(P3.Q,{icon:(0,o.jsx)(xt.C,{className:"add-icon",name:"common/add@24",size:24}),content:""+I18N.SettingPanel.design.create+I18N.libPanel.common[i]+I18N.libPanel.common.style,direction:"down",onClick:k})]}),(a==null||(t=a.children)==null?void 0:t.length)>0&&(0,o.jsxs)("ul",{className:"lib-style-list",children:[a==null||(n=a.children)==null?void 0:n.map((ee,ce)=>(0,o.jsx)(CA,{treeNode:ee,type:i,depth:0,index:ce,onMouseDown:R,onMouseUp:F},ee.key)),c&&(0,o.jsx)(yA.A,{draggingElement:c.$element,getContainerElement:G,matchDataList:c.matchDataList,containerRect:c.containerRect,rectQueryMap:c.rectQueryMap,offsetX:c.offsetX,offsetY:c.offsetY,onDrop:Z})]})]})},Dee=()=>{const[e,t]=(0,l.useState)(!1),n=(0,r.d4)(Ns.HL),a=(0,r.d4)(Ns.rw),i=(0,r.d4)(Ns.bC),c=(0,r.wA)();return(0,l.useEffect)(()=>{const d=new Pee.o;d.buildStyleTree("color"),d.buildStyleTree("appear"),d.buildStyleTree("text"),c({type:"style-lib:set:attr",payload:{localStyleStore:d,textStyleTree:d.textStyleTree,colorStyleTree:d.colorStyleTree,appearStyleTree:d.appearStyleTree}}),(0,Lee._o)(()=>{c({type:"entry:libStyle:init"})},{timeout:200})},[]),(0,l.useEffect)(()=>{const d=n&&(n==null?void 0:n.children.length)===0&&a&&(a==null?void 0:a.children.length)===0&&i&&(i==null?void 0:i.children.length)===0;t(d)},[n,a,n]),(0,o.jsx)(t8.YA,{className:"local-style-list-container",title:"\u672C\u5730\u6837\u5F0F",headerChildren:(0,o.jsx)(Aee,{}),children:e?(0,o.jsx)(Ree,{}):(0,o.jsxs)("ul",{className:"local-libs-content",children:[(0,o.jsx)(n8,{treeData:n,type:"text"}),(0,o.jsx)(n8,{treeData:a,type:"color"}),(0,o.jsx)(n8,{treeData:i,type:"appear"})]})})},Ree=()=>{const[e,t]=(0,l.useState)(!1),[n,a]=(0,l.useState)({top:0,left:0}),i=(0,l.useRef)(null),c=d=>{if(t(d),!d)return;const{left:p,bottom:h,width:m}=i.current.getBoundingClientRect();a({top:h+6,left:p+m/2+160/2})};return(0,o.jsxs)("div",{className:"empty-content",children:[(0,o.jsx)("span",{className:"desc",children:"\u521B\u5EFA\u989C\u8272\u3001\u6587\u672C\u3001\u5916\u89C2\u7B49\u6837\u5F0F\u540E\uFF0C\u5373\u53EF\u5728\u5176\u4ED6\u7EC4\u4EF6\u4E2D\u5FEB\u901F\u590D\u7528"}),(0,o.jsx)(vA,{position:n,renderOpener:(0,o.jsx)(t8.qf,{className:C()("create-button",{active:e}),ref:i,children:"\u65B0\u5EFA\u6837\u5F0F"}),onClickOpener:c})]})};function Bee(e){const{screenSelection:t,currentPage:n}=e,[a,i]=(0,l.useState)(!1),[c,d]=(0,l.useState)(0),p=(0,r.wA)(),h=(0,Rm.FT)(t),m=h.length?h:[n.key],x=(0,l.useRef)(null),v=Pn=>{var ro;let Io;Pn.key==="customize"?Io={device:Pn.key}:Io={deviceW:Pn.width,deviceH:Pn.height,device:Pn.key};const{screen:mo,currentProject:So}=e,ho=se(mo);!(0,Jc.$n)(Pn.key)&&(ho==null||(ro=ho.hotAttr)==null?void 0:ro.deviceOrientation)==="landscape"&&(Io={...Io,deviceOrientation:"portrait"}),p({type:"entry:update:root-project:object",payload:{currentProject:{...So,model:Pn.key,device:Pn.device,width:Pn.width,height:Pn.height}}}),ce(Io),(0,jc.Le)(Pn.key),Pn.key&&xl.U4.protoDeviceCreate("\u53F3\u4FA7\u6F14\u793A\u8BBE\u5907\u5207\u6362",Pn.key)},A=Pn=>{ce({deviceScroll:Pn})},k=Pn=>{ce({isShowDeviceGuide:Pn})},R=Pn=>{ce(Pn)},F=Pn=>{Pn.trim()===""||Pn.includes("/")?MB.notice({text:I18N.Common.name_cannot_be_empty_or_symbol,type:"warning"}):ce({name:Pn}),i(!1)},Z=()=>{i(!0)},G=Pn=>{ce({deviceW:Pn})},ee=Pn=>{ce({deviceH:Pn})},ce=Pn=>{const{screen:ro}=e,Io=[];m.forEach(mo=>{const So=sdkStore.getHotItem(mo),ho={...So.hotAttr,...Pn},No={...So,hotAttr:ho};d(c+1),ro.cid===mo&&p({type:"current:update:state",payload:{currentScreen:{...No.hotAttr,cid:No.key}}}),Io.push([No.key,ho])}),sdkStore.updateHotAttrMergeBatch(Io),p({type:"entry:update:screen:list"})},se=Pn=>sdkStore.getHotItem(Pn.cid),he=Pn=>{p({type:"entry:update:all-screen:bgcolor",payload:{fill:{...Pn,fillIsVisible:!0}}})},ve=()=>{p({type:"entry:update:all-screen:bgcolor",payload:{fill:{fillIsVisible:!1,fill:"solid",solidColor:yl.kV[nt||yl.Sx.LIGHT]}}})},Te=Pn=>{const{screen:ro}=e,Io=se(ro).hotAttr,{fill:mo}=Io,So=(0,ul.BN)(mo.solidColor),ho=(0,ul.u_)({...So,A:Pn}),No={...mo,fillIsVisible:!0,solidColor:ho};he(No)},xe=Pn=>{Te(Pn),sdkStore.combineMerge("screen-fill-update")},Fe=()=>sdkStore.combineMergeMark("screen-fill-update"),{isProject:et,isMultipleScreen:Ke,screen:Qe,theme:nt}=e,Xe=et,lt=h.length?se({cid:h[0]}).hotAttr:se(Qe).hotAttr,{fill:Ct}=lt,St=(0,yl.t6)(nt,{fill:Ct}),hn=(0,ul.BN)(St).A,[Cn,Mt,Et,Co]=(()=>{const Pn=m.map(Da=>{const xr=sdkStore.getHotItem(Da).hotAttr;return[xr.device,xr.deviceScroll,xr.deviceW,xr.deviceH]}),[ro,Io,mo,So]=Pn[0];let[ho,No,Xo,Ta]=[ro,Io,mo,So];for(const Da of Pn)ro!==Da[0]&&(ho="\u591A\u4E2A\u503C"),Io!==Da[1]&&(No="\u591A\u4E2A\u503C"),mo!==Da[2]&&(Xo="\u591A\u4E2A\u503C"),So!==Da[3]&&(Ta="\u591A\u4E2A\u503C");return[ho,No,Xo,Ta]})();return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(Oee,{className:"scroll-container",ref:x,children:[(0,o.jsx)("div",{className:"scroll-content",children:(0,o.jsx)(Fee,{className:"screenSettings",children:(0,o.jsx)("div",{className:C()("layer-size","screen-name-edit",{isLayerHover:!a,layerState:a}),onClick:Z,children:(0,o.jsx)(Hy,{value:Ke?I18N.LeftSidePanel.multi_select_page:lt.name,className:"layer-name",isEditing:a,onConfirm:F})})})}),(0,o.jsx)(SA,{title:I18N.ScreenPanel.background_color,children:(0,o.jsx)("section",{className:"bgcolor-body",children:(0,o.jsxs)("div",{className:"screen-bg-line height-32",children:[(0,o.jsx)(Ec.R_,{supAttr:"fill",attr:"solidColor",className:Ec.Fw,color:{fill:"solid",...Ct,solidColor:St},canOpenLib:!1,pIsSolidColorOnly:!0,onChange:he,onResetColor:Ct!=null&&Ct.fillIsVisible?ve:null}),m.length===1&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(gA.A,{value:hn,max:100,onChange:Te,onConfirm:xe,onMouseDown:Fe}),(0,o.jsx)(P1.A,{precision:0,className:"input-number",min:0,max:100,suffix:"%",value:hn,onConfirm:Te})]})]})})}),(0,o.jsx)(vee,{updateOrientation:R,updateWidth:G,updateHeight:ee,selectNewModel:v,deviceType:Cn,deviceWidth:Et,deviceHeight:Co,orientation:lt.deviceOrientation}),Cn!=="none"&&Cn!=="\u591A\u4E2A\u503C"?(0,o.jsx)(Vee,{title:I18N.ScreenPanel.when_artboards_exceed_the_device,children:(0,o.jsx)("section",{className:"size-body",children:(0,o.jsxs)("div",{className:"screen-info",children:[(0,o.jsx)("div",{className:"screen-setting-line select height-32",children:(0,o.jsx)(A5.mq,{value:Mt,placeholder:Mt,optionList:Uee(),onChange:A,isMultipleScreen:Ke})}),(0,o.jsx)("div",{className:"screen-setting-line check height-32",children:(0,o.jsx)(Sn.A,{className:C()("check",Sn.p),isChecked:lt.isShowDeviceGuide,onChange:k,label:I18N.SettingPanel.overflowLine})})]})})}):(0,o.jsx)("div",{}),(0,Uf.bJ)()&&(0,o.jsx)(Dee,{}),(0,o.jsx)(fA,{containerHeight:window.innerHeight-88,showEmptyTtext:!1})]}),(0,o.jsx)(jl.yP,{type:"vertical",containerRef:x,isAutoHideBar:!0}),Xe&&(0,o.jsx)(yee,{dispatch:p})]})}const Uee=()=>[{label:I18N.SettingPanel.singlePanelScroll.hide,value:"hide"},{label:I18N.SettingPanel.singlePanelScroll.vertical,value:"vertical"},{label:I18N.SettingPanel.singlePanelScroll.horizontal,value:"horizontal"},{label:I18N.SettingPanel.singlePanelScroll.auto,value:"auto"}],Oee=M.Ay.div.withConfig({displayName:"ScreenSettings__StyledScreenSetting",componentId:"sc-tzabps-0"})(["flex:1 1 0%;overflow:hidden auto;position:relative;scrollbar-width:none;"]),Fee=M.Ay.div.withConfig({displayName:"ScreenSettings__StyledNameSetting",componentId:"sc-tzabps-1"})(["padding:0px 16px;height:40px;width:240px;display:flex;align-items:center;color:",";font-weight:500;",";.layer-size{flex:1;border:1px solid transparent;cursor:text;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;.is-editing{textarea{font-weight:500;}}}.layer-name{flex:1;width:100%;height:23px;line-height:22px;overflow:hidden;border-bottom:1px solid transparent;font-weight:500;}.layerState{border-bottom:1px solid ",";}.isLayerHover{&:hover{border-bottom:1px solid ",";}}"],e=>e.theme.color_text_L1,za.L9,e=>e.theme.color_proto,e=>e.theme.color_proto),Vee=(0,M.Ay)(e8.A).withConfig({displayName:"ScreenSettings__StyledScrollSetting",componentId:"sc-tzabps-2"})(["",";.screen-info{padding:0 16px;.screen-setting-line{display:flex;align-items:center;&.select{margin-left:-7px;}&.check{margin-left:-6px;.Check-label{color:",";}}}}"],za.L9,e=>e.theme.color_text_L1),SA=(0,M.Ay)(e8.A).withConfig({displayName:"ScreenSettings__StyledBgColorSetting",componentId:"sc-tzabps-3"})(['.bgcolor-body{padding:0 10px;.screen-bg-line{display:flex;justify-content:space-between;align-items:center;[type="slider"]{width:120px;margin:0 8px;.rail{.fill{background-color:',";}}}.input-number{width:60px;input::placeholder{color:",";}}}}&.combo-setting{border-top:none;}"],e=>e.theme.color_proto,e=>e.theme.color_text_L2),zee=(0,I.Mz)([Me.r,me.Ur,rt.Hs,te.O4,me.PL,rt.p$],(e,t,n,a,i,c)=>{var d;let{isEditingProjectMain:p}=e;t=t||{},i=i||{},c=c||{};const h=((d=t)==null?void 0:d.orientation)==="landscape",m=p&&(0,fee.M)(i,t);let x=(0,Rs.qk)(i.name);const v=i.model,A=n.length>1;if(p){var k;x=A?I18N.SettingPanel.choose_pages.replace(/%page/,n.length):""+((k=t)==null?void 0:k.name)}return{isProject:p,canSetOrientation:m,isScreenLandScape:h,screen:t,projectModel:v,displayName:x,isEditingProjectMain:p,isMultipleScreen:A,screenSelection:n,theme:a,currentProject:i,currentPage:c}}),Wee=(0,r.Ng)(e=>zee(e))(Bee);var Hee=s(27086),Gee=s(20459);const Zee=M.Ay.div.withConfig({displayName:"styles__StyledLayerInfo",componentId:"sc-xkeir8-0"})(["height:40px;display:flex;align-items:center;margin:0 0 8px -9px;padding:0 16px;color:",";font-weight:500;border-bottom:1px solid ",";.layer-size{flex:1;border:1px solid transparent;cursor:text;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;.is-editing{textarea{font-weight:500;}}}.layer-name{flex:1;width:100%;height:23px;line-height:22px;overflow:hidden;border-bottom:1px solid transparent;font-weight:500;}.layerState{border-bottom:1px solid ",";}.isLayerHover{&:hover{border-bottom:1px solid ",";}}.action,.my-widget-action{display:inline-block;width:24px;height:24px;text-align:center;color:",";border-radius:4px;.icon{width:24px;height:24px;color:",";}&.icon-disabled{cursor:not-allowed;color:",";}&:not(.icon-disabled):hover{background:",";}&:not(.icon-disabled):active{background:",";}}.actions,.my-widget-action{display:flex;align-items:center;}.divider{display:inline-block;content:'';width:1px;height:24px;background:",";margin-right:6px;margin-left:10px;}"],e=>e.theme.color_text_L1,e=>e.theme.color_bg_border_01,e=>e.theme.color_proto,e=>e.theme.color_proto,e=>e.theme.color_text_L2,e=>e.theme.color_text_L1,e=>e.theme.color_text_disabled01,e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_btn_secondary_active,e=>e.theme.color_bg_border_01);class Kee extends l.PureComponent{constructor(t){super(t),(0,B.A)(this,"handleEdit",()=>{if(this.setState({isEditing:!0}),!(0,Uf.bJ)())return;const{editingBasketRefPage:n}=this.props;if(n){const c=sdkStore.getHotItem(n);if((c==null?void 0:c.sup)!=="B@ref-muban"){var a,i;const d=(c==null?void 0:c.sup)&&sdkStore.getHotItem(c.sup);d&&this.setState({name:((a=d.hotAttr)==null?void 0:a.name)+"/"+((i=c.hotAttr)==null?void 0:i.name)})}}}),(0,B.A)(this,"handleLayerName",n=>{const{onChange:a,editingBasketRefPage:i,dispatch:c}=this.props;if(n.trim()===""||!i&&(0,Uf.bJ)()&&n.includes("/"))MB.notice({text:I18N.Common.name_cannot_be_empty_or_symbol,type:"warning"});else{let p=n;(0,Uf.bJ)()?i?(p=(0,S1.PL)(n,i),sdkStore.updateHotAttrMerge(i,{name:p,mtime:rootSdk.fssCmt.getClockStore().getMtime()}),this.setState({name:p.split("/")[0]}),c({type:"entry:libStyle:update:mubanPanel:libMubanTreeMap",payload:{libFlatKey:"local",needUpdate:!0}})):(this.setState({name:p}),a(p,"name"),c({type:"entry:libStyle:update:mubanPanel:libMubanTreeMap",payload:{libFlatKey:"local",needUpdate:!0}})):(this.setState({name:p}),a(p,"name"))}this.setState({isEditing:!1})}),this.state={isEditing:!1,name:t.layerName}}static getDerivedStateFromProps(t,n){return n.name!==t.layerName?{...n,name:t.layerName}:null}render(){const{isEditing:t,name:n}=this.state;return(0,o.jsx)(Zee,{className:"layer-info",children:(0,o.jsx)("div",{className:C()("layer-size",{isLayerHover:!t,layerState:t}),onClick:this.handleEdit,children:(0,o.jsx)(vf.A,{value:n,className:"layer-name",isEditing:t,onConfirm:this.handleLayerName},n)})})}}var Yee=s(5621);const Xee=M.Ay.div.withConfig({displayName:"styles__StyledBasketSetting",componentId:"sc-cjj4nm-0"})([".layer-info{margin-left:0;}.general-line{display:flex;align-items:center;padding-left:6px;margin-bottom:8px;&.is-clip-content-line{padding-left:5px;margin-top:4px;.Check-label{margin-left:10px;}}.general-input{flex:0 0 72px;display:flex;justify-content:space-between;align-items:center;&:not(:last-child){margin-right:4px;}&.is-active:not(.has-menu):not(.is-disabled) .title{color:",";}}.active{background:#1a70d8;}}.state-scroll-container{padding:8px 0;border-top:1px solid ",";}"],e=>e.theme.color_text_L3,e=>e.theme.color_bg_border_01);var Qee=s(95545);const Jee=(0,I.Mz)([q.bt,q.PR],(e,t)=>({editingBasketRefPage:e,editingBasketHotItem:t})),qee=(0,l.memo)(()=>{const{editingBasketRefPage:e,editingBasketHotItem:t}=(0,r.d4)(Jee),n=(0,r.wA)(),{hotAttr:a={},key:i}=t||{},c=t,{w:d,h:p,scroll:h,showScrollBar:m,name:x,isLockAspect:v}=a,A=(0,l.useCallback)((k,R)=>{const F=R==="w"||R==="h";let Z={key:i,hotAttr:{[R]:k}};if(F&&v){const ee=(0,Yee.K)(d,p),ce=R==="w"?k:k*ee,se=R==="h"?k:k/ee;Z={...Z,hotAttr:{...Z.hotAttr,w:ce,h:se}}}n({type:"entry:widget:change",payload:{flatChgList:[Z]}});const G={...t,hotAttr:{...t.hotAttr,[R]:k}};n(Le.GO.editBasketHotItem(G)),F&&n({type:"entry:layout:basket-canvas"}),R==="name"&&e&&n({type:"muban-panel:update:mubanList",payload:{mubanList:(0,fd.AG)()}})},[n,t,e,p,v,i,d]);return t?(0,o.jsxs)(Xee,{children:[(0,o.jsx)(Kee,{layerName:x,editingBasketRefPage:e,onChange:A,dispatch:n}),(0,o.jsxs)("div",{className:C()("general-line"),children:[(0,o.jsx)(P1.A,{className:"general-input",title:"W",attr:"w",value:d,disabled:!1,min:0,max:99999,placeholder:d,onConfirm:A}),(0,o.jsx)(P1.A,{className:"general-input",title:"H",attr:"h",value:p,disabled:!1,min:0,max:99999,placeholder:p,onConfirm:A})]}),(0,o.jsxs)("div",{className:"state-scroll-container",children:[(0,o.jsx)(Gee._,{panel:c,dispatch:n,editingBasketRefPage:e}),(0,o.jsx)(Hee.E,{scroll:h,handleChange:A}),h!==Zc.Ci.hide&&(0,o.jsx)(Qee.W,{showScrollBar:m,handleChange:A})]})]}):null});class $ee extends l.PureComponent{constructor(){super(...arguments),(0,B.A)(this,"handleChangeFill",t=>{this.props.dispatch({type:"entry:update:root-project:bgcolor",payload:{fill:{...t,fillIsVisible:!0}}})}),(0,B.A)(this,"handleRestoreBgColor",()=>{const{dispatch:t,theme:n}=this.props;t({type:"entry:update:root-project:bgcolor",payload:{fill:{fillIsVisible:!1,fill:"solid",solidColor:yl.kV[n||yl.Sx.LIGHT]}}})}),(0,B.A)(this,"handleFillAlphaChanged",t=>{const{currentScreen:n}=this.props,{fill:a}=n,i=(0,ul.BN)(a.solidColor),c=(0,ul.u_)({...i,A:t}),d={...a,fillIsVisible:!0,solidColor:c};this.handleChangeFill(d)}),(0,B.A)(this,"handleFillAlphaConfirm",t=>{this.handleFillAlphaChanged(t),sdkStore.combineMerge("fill-update")}),(0,B.A)(this,"handleFillAlphaMouseDown",()=>sdkStore.combineMergeMark("fill-update"))}render(){const{theme:t,currentScreen:n,isEmptyScreen:a}=this.props;if(a||!n)return null;const{fill:i}=n,c=(0,yl.t6)(t,n),d=(0,ul.BN)(c).A;return(0,o.jsx)(SA,{className:C()("combo-setting",{disabled:a}),title:I18N.ScreenPanel.background_color,children:(0,o.jsx)("section",{className:"bgcolor-body",children:(0,o.jsxs)("div",{className:"screen-bg-line height-32",children:[(0,o.jsx)(Ec.R_,{canOpenLib:!1,supAttr:"fill",attr:"solidColor",color:{...i,solidColor:c},pIsSolidColorOnly:!0,onChange:this.handleChangeFill,onResetColor:i!=null&&i.fillIsVisible?this.handleRestoreBgColor:null}),(0,o.jsx)(gA.A,{value:d,max:100,onChange:this.handleFillAlphaChanged,onConfirm:this.handleFillAlphaConfirm,onMouseDown:this.handleFillAlphaMouseDown}),(0,o.jsx)(P1.A,{precision:0,className:"input-number",min:0,max:100,suffix:"%",value:d,onConfirm:this.handleFillAlphaChanged})]})})})}}const ete=(0,I.Mz)([me.Ur,Lf.C,te.O4],(e,t,n)=>{let{isEmptyScreen:a}=t;return{currentScreen:e,isEmptyScreen:a,theme:n}}),tte=(0,r.Ng)(e=>ete(e))($ee);var nte=s(56849),AA=s(54460),ote=s(97433);const ate=(0,M.Ay)(ote.Y).withConfig({displayName:"styles__StylesBorderOpener",componentId:"sc-ooml4r-0"})([".color-line{margin-left:-4px;}.border-collapse-body{margin-left:0;}"]),rte=M.Ay.div.withConfig({displayName:"styles__StyledPencilSetting",componentId:"sc-ooml4r-1"})(["flex:1;width:240px;padding:8px 16px 0;color:",";"],e=>e.theme.color_text_L2);var o8=s(31093);function kA(e){let{bdrStyle:t,bdrColor:n,bdrWidth:a,dispatch:i}=e;const c=(d,p)=>{["bdrStyle","bdrWidth","bdrColor"].includes(p)&&i({type:"pencil:update",payload:{[p]:d}})};return(0,o.jsx)(rte,{className:"pencil-setting-body",children:(0,o.jsxs)(ate,{className:C()("label-option"),children:[(0,o.jsxs)("div",{className:"color-line appearance-line border-open height-32",children:[(0,o.jsx)(Ec.R_,{className:Ec.Fw,attr:"bdrColor",attrPanel:"attrPanel",color:n,canOpenLib:!1,onChange:c}),(0,o.jsx)("label",{className:"left-label",children:I18N.SettingPanel.stroke})]}),(0,o.jsxs)("div",{className:C()("border-collapse-body height-32 margin-right-n6 is-open"),children:[(0,o.jsxs)("div",{className:"border-select-size-warp",children:[(0,o.jsx)(nte.v,{}),(0,o.jsx)(A5.mq,{className:C()("border-select-size"),attr:"bdrStyle",menuClassName:"border_style_select_menu",optionList:(0,AA.se)(),value:t,onChange:c})]}),(0,o.jsx)(P1.A,{className:"border-width-input",attr:"bdrWidth",value:a,optionList:AA.xq,onConfirm:c})]})]})})}kA.displayName="PencilSetting";const ite=(e,t)=>{const n=(0,o8.pp)(e),a=(0,o8.lu)(e),i=(0,o8.E)(e);return{bdrStyle:n,bdrColor:a,bdrWidth:i}},ste=(0,r.Ng)(ite,null)(kA),lte=M.Ay.aside.withConfig({displayName:"styles__StyledSettingPanel",componentId:"sc-jzr1ok-0"})(["display:flex;flex:1;flex-direction:column;background:",";overflow:hidden;position:relative;width:","px;& > header{display:flex;height:40px;min-width:60px;padding-left:16px;padding-right:12px;border-bottom:1px solid ",";.title{color:",";line-height:40px;font-weight:600;}.design-warning{display:flex;align-items:center;justify-content:center;margin-left:5px;color:",";&:hover{color:",";}.svg-icon{width:14px;height:14px;}}}.ita-panel{height:calc(100% - 40px);display:flex;flex-direction:column;overflow:auto;}.height-32{height:32px;}.height-36{height:36px;}.margin-left-n6{margin-left:-6px;}.margin-right-n6{margin-right:-6px;}.common-check-label-box{width:68px;display:flex;align-items:center;.left-label{margin-left:4px;}}.step-input-width-72{flex:0 0 72px;display:flex;justify-content:space-between;align-items:center;.title{width:24px;height:24px;padding:0;flex-shrink:0;margin-left:1px;svg{width:24px;height:24px;color:inherit;}}input{margin-left:4px;}&:not(:last-child){margin-right:4px;}}.width-66{width:66px;}"],e=>e.theme.color_bg_white,yl.xM,e=>e.theme.color_bg_border_01,e=>e.theme.color_text_L1,e=>e.theme.color_text_L2,e=>e.theme.color_text_L2),cte=(0,M.Ay)(Qy.A).withConfig({displayName:"styles__StyledNewSlideNav",componentId:"sc-jzr1ok-1"})(["margin-left:-8px;.nav-label{padding:0;}.nav-item{padding:0 8px;&.active{font-weight:600;&::after{display:none;}}}height:40px;min-height:40px;.nav-item{font-size:12px;}"]);var dte=s(82694);class pte extends l.PureComponent{constructor(){super(...arguments),(0,B.A)(this,"handleTabChange",t=>{this.props.dispatch({type:"settings:set:autoTabIndex",payload:{autoTabIndex:null}}),this.props.dispatch({type:"settings:set:activeIndex",payload:{activeIndex:t}})})}componentDidMount(){this.props.dispatch({type:"settings:update:varList",payload:{varList:(0,_l.pU)()}})}render(){var t;const{activeIndex:n,showLinkSetting:a,showGlobalSetting:i,showWidgetSetting:c,showQuickCreateCanvasSetting:d,showPencilSetting:p,showBasketSetting:h,currentScreenDevice:m,showEditingComboSetting:x,isGlobalSetting:v,isQuickCreateCanvasSetting:A,isPencilSetting:k,isWidgetSetting:R,isCanvasSetting:F,isBasketSetting:Z,isEditingCombo:G,isEditingComboSetting:ee,vectorEditor:ce,editingPanelRefPage:se,editingPanelCid:he}=this.props,ve=(0,dte.jb)({isGlobalSetting:v,isQuickCreateCanvasSetting:A,isWidgetSetting:R,isCanvasSetting:F,isBasketSetting:Z,isEditingComboSetting:ee,isPencilSetting:k},he,se,ce);return(0,o.jsxs)(lte,{id:"setting-panel",children:[(0,o.jsx)("header",{children:ve.length===1?(0,o.jsx)("span",{className:"title",children:(t=ve[0])==null?void 0:t.label}):(0,o.jsx)(cte,{activeIndex:n,onTabChange:this.handleTabChange,children:ve.map(Te=>{let{key:xe,...Fe}=Te;return(0,o.jsx)(Qy.n,{...Fe,className:C()({line_active:ve.length>1})},xe)})})}),p&&(0,o.jsx)(ste,{}),d&&(0,o.jsx)(mee,{defaultDevice:m}),a&&(0,o.jsxs)("div",{className:"ita-panel",children:[(0,o.jsx)(eee,{}),!G&&(0,o.jsx)(fA,{containerHeight:window.innerHeight-88})]}),i&&(0,o.jsx)(Wee,{}),c&&(0,o.jsx)(cee.A,{}),h&&(0,o.jsx)(qee,{}),x&&(0,o.jsx)(tte,{}),(0,o.jsx)(lee.xN,{})]})}}const ute=(0,I.Mz)([gl.Jg,pA.y],(e,t)=>{let{isGlobalSetting:n,isQuickCreateCanvasSetting:a,isWidgetSetting:i,isCanvasSetting:c,isBasketSetting:d,isEditingCombo:p,isEditingComboSetting:h,isPencilSetting:m}=t;const x=c||i||m;return x||(e=0),{showGlobalSetting:n&&e===0,showWidgetSetting:(c||i)&&e===0,showLinkSetting:x&&e===1,showQuickCreateCanvasSetting:a&&e===0,showPencilSetting:m&&e===0,showBasketSetting:d&&e===0,showEditingComboSetting:h&&e===0,isEditingCombo:p}}),hte=(0,I.Mz)([gl.Jg,pA.y,ute,q.jI,q.bt,me.Ur,q.lY,te.MZ],(e,t,n,a,i,c,d,p)=>({activeIndex:e,...t,...n,editingPanelCid:a,editingPanelRefPage:i,vectorEditor:d,currentScreenDevice:c==null?void 0:c.device,layoutV9:p})),mte=(0,r.Ng)(e=>hte(e))(pte),fte=M.Ay.div.withConfig({displayName:"styles__StyledLeftBorderResizeHOC",componentId:"sc-1qdmz76-0"})(["position:relative;height:100%;right:0;top:0;background:",";box-shadow:-1px 0 0 ",";&.with-switch-header{display:flex;flex-direction:column;.border-resizer.left{left:-1px;}&.is-in-version{width:240px !important;}}.border-resizer.left{left:0;&:hover{background-color:rgba(22,132,252,.6);}&.active{background-color:rgba(22,132,252,.6);}}"],e=>e.theme.color_bg_white,e=>e.theme.color_bg_border_01);function a8(e){const{id:t,className:n,children:a,isShowBorderResizer:i=!0}=e,{rightPanelResizedWidth:c,rightPanelResizedMaxWidth:d,rootProject:p}=(0,r.d4)(gte),h=l.useRef(null),m=(0,r.wA)(),x=(0,l.useCallback)(()=>{h.current&&(h.current.style.transition="none")},[]),v=(0,l.useCallback)(()=>{h.current&&(h.current.style.transition="")},[]),A=k=>{m({type:"right-side-panel:update:resize:width",payload:{width:k,projectCid:p.cid}}),m({type:"entry:observe:dom:right-panel-width"})};return(0,o.jsxs)(fte,{id:t,className:n,ref:h,style:{width:c},children:[a,i&&(0,o.jsx)(qr.A,{placement:"left",className:"v-resizer",value:c,min:yl.xM,max:d,onResizeStart:x,onResizeEnd:v,onChange:A})]})}const gte=(0,I.Mz)([gl.TW,gl.HC,me.PL],(e,t,n)=>({rightPanelResizedWidth:e,rightPanelResizedMaxWidth:t,rootProject:n}));var yte=s(89960);const xte=e=>(0,o.jsx)(yte.L,{...e}),vte=(0,I.Mz)([N.ZA,N.Cb,N.c1,N.M5,q.jx,gl.TW,q.uu,te.O4],(e,t,n,a,i,c,d,p)=>({commentList:e,activeCommentCid:t,selected:n,isShowCompletedComment:a,viewType:i,commentPanelWidth:c,isHtmlZipPreview:d,theme:p})),bte=(0,r.Ng)(e=>vte(e))(xte);function wte(){return(0,o.jsx)(a8,{id:"design-comment-panel",children:(0,o.jsx)(bte,{})})}var Cte=s(52490),Ste=s(53707);const Ate=e=>{const t=document.querySelector("#st-list-container"),a=document.querySelector("#st-list").getBoundingClientRect(),i=t.getBoundingClientRect(),c=[],d={},p={},h={},m={};return Array.from(document.querySelectorAll("#st-list >.st-card")).forEach((v,A)=>{const{cid:k}=v.dataset,R=v.getBoundingClientRect();d[k]=h[k]=R;const F=(0,Rs.yB)(v);p[k]=F;const{left:Z,top:G,width:ee,height:ce}=R,se=Z-a.left,he=G-a.top,ve=se+ee,Te=he+ce,xe={top:he,left:F.left-a.left,width:ee,height:ce};if(m[k]={contentRect:xe,rect:xe,treeRect:xe},e.includes(k)){c.push({cid:k,type:null,min:{x:se,y:he},max:{x:ve,y:Te},isValid:!1,parentCid:null});return}c.push({cid:k,type:"prevSibling",min:{x:se,y:he},max:{x:ve,y:he+ce/2},isValid:!0,parentCid:null}),c.push({cid:k,type:"nextSibling",min:{x:se,y:he+ce/2},max:{x:ve,y:Te},isValid:!0,parentCid:null})}),{matchDataList:c,containerRect:i,rectQueryMap:m}};var MA=s(5010);class EA extends l.PureComponent{constructor(t){super(t),(0,B.A)(this,"createListRef",n=>this.$listRef=n),(0,B.A)(this,"handleMouseDown",(n,a,i)=>{const{isOnlyView:c}=this.props;if(c)return;const{top:d,left:p}=i.getBoundingClientRect(),h=n.clientX-p,m=n.clientY-d,x=[a.key],v={item:a,$element:i,offsetX:h,offsetY:m,selection:x,...Ate(x)};this.setState({dragAndDropState:v})}),(0,B.A)(this,"getContainerElement",()=>document.getElementById("st-list-container")),(0,B.A)(this,"handleDrop",n=>{let{cid:a,type:i,isValid:c}=n;const{dragAndDropState:d}=this.state,{dispatch:p,stickyList:h}=this.props;if(this.setState({dragAndDropState:null}),!c)return;const m=[];for(const F of d==null?void 0:d.selection)m.push(sdkStore.getHotItem(F));m.sort((F,Z)=>F.hotAttr.order-Z.hotAttr.order);const v=([...h]||[]).filter(F=>!(d!=null&&d.selection.includes(F.key))),A=v.findIndex(F=>F.key===a),k=i==="prevSibling"?A:i==="nextSibling"?A+1:"error";if(k==="error")throw new Error("drag type error");v.splice(k,0,...m),v.forEach((F,Z)=>{if(F.hotAttr.order!==Z+1){const G=sdkStore.getHotItem(F.key),ee={...G,hotAttr:{...G.hotAttr,order:Z+1}};sdkStore.updateHotItem(ee)}}),p({type:"entry:refresh:link-list"}),p({type:"entry:select:items",payload:{cids:d==null?void 0:d.selection}});const{hotAttr:R}=sdkStore.getHotItem(a);(0,MA.Uz)({operation_type:MA.P6.Drag,widget:R})}),(0,B.A)(this,"handleClick",()=>{const{dispatch:n}=this.props;n({type:"entry:select:items",payload:{cids:[]}})}),(0,B.A)(this,"selectST",n=>{const{dispatch:a}=this.props;a({type:"entry:update:selection:select:items",payload:{type:"selection:select:items",cids:[n]}}),a({type:"entry:STPanel:fit-viewport",payload:{STKey:n}})}),(0,B.A)(this,"deleteST",n=>{const{dispatch:a}=this.props;a({type:"entry:delete:selected-items",payload:{key:n}})}),(0,B.A)(this,"toggleExpandKeySet",n=>{const{dispatch:a}=this.props;a({type:"entry:STPanel:update:expandKeySet",payload:{key:n}})}),(0,B.A)(this,"pushToAlreadyExpandKeySet",n=>{const{dispatch:a}=this.props;a({type:"STPanel:add:alreadyExpandKeySet",payload:{key:n}})}),(0,B.A)(this,"deleteFromAlreadyExpandKeySet",n=>{const{dispatch:a}=this.props;a({type:"STPanel:delete:alreadyExpandKeySet",payload:{key:n}})}),this.state={dragAndDropState:null}}render(){const{stickyList:t,setIsExportOpenFromContainer:n,isOnlyView:a,selection:i,expandKeySet:c,alreadyExpandKeySet:d,STPanelWidth:p,isHtmlZipPreview:h}=this.props,{dragAndDropState:m}=this.state,{matchDataList:x,containerRect:v,rectQueryMap:A,$element:k,offsetX:R,offsetY:F}=m||{};return(0,o.jsxs)(Ste.TV,{id:"st-list-container",ref:this.createListRef,onClick:this.handleClick,children:[(0,o.jsx)("div",{id:"st-list",className:"st-list",children:t.map((Z,G)=>(0,o.jsx)(Cte.i,{isActive:i.includes(Z.key),st:Z,isHtmlZipPreview:h,setIsExportOpenFromContainer:n,onMouseDown:this.handleMouseDown,editable:!a,selectST:this.selectST,deleteST:this.deleteST,isExpanded:c.has(Z.key),isAlreadyExpanded:d.has(Z.key),STPanelWidth:p,toggleExpandKeySet:this.toggleExpandKeySet,pushToAlreadyExpandKeySet:this.pushToAlreadyExpandKeySet,deleteFromAlreadyExpandKeySet:this.deleteFromAlreadyExpandKeySet},G))}),m&&(0,o.jsx)(yA.A,{draggingElement:k,getContainerElement:this.getContainerElement,matchDataList:x,containerRect:v,rectQueryMap:A,offsetX:R,offsetY:F,onDrop:this.handleDrop})]})}}var r8=s(40988),IA=s(44599);const kte=M.Ay.div.withConfig({displayName:"styles__StyledSTPanelContainer",componentId:"sc-i5vtxm-0"})(["&.comment-panel{width:100%;height:100%;position:absolute;right:0;border-radius:4px;display:flex;flex:1 1 0%;flex-direction:column;.filter-header{width:100%;height:40px;box-sizing:border-box;border-bottom:1px solid ",";padding:0 16px 0 16px;display:flex;flex-direction:row;justify-content:space-between;align-items:center;background:",";h3{flex:1;font-size:12px;font-weight:500;line-height:16px;color:",";}.st-filter-dropdown,.st-options-dropdown{width:auto;}.filter-trigger-container{width:max-content;display:flex;flex-direction:row;justify-content:flex-end;align-items:center;.svg-icon{circle{fill:none;}}.filter-active-icon{circle{fill:#1684fc;}path{fill:#fff !important;}}}.filter-content-container{width:144px;display:flex;justify-content:center;position:relative;padding:8px 0;.list-container{width:100%;position:relative;box-sizing:border-box;.item-container{width:100%;padding-left:8px;padding-right:8px;color:#fff;cursor:pointer;margin:2px 0;display:flex;align-items:center;&:hover{background-color:#666;}.icon-left{font-size:12px;line-height:24px;display:inline-flex;align-items:center;width:20px;text-align:right;margin-right:2px;.svg-icon{width:20px;height:20px;path{fill:none;}}}.value-right{font-size:12px;line-height:24px;display:inline-block;width:max-content;text-align:left;}}}.separate-line{width:100%;height:1px;background-color:rgba(245,245,245,0.1);margin:6px 0;}}.options-trigger-container{width:24px;height:24px;margin-left:4px;}.options-content-container{padding:2px 0;width:240px;background:#fff;box-shadow:0 3px 6px -4px rgba(0,0,0,0.12),0px 6px 16px rgba(0,0,0,0.08),0px 9px 28px 8px rgba(0,0,0,0.05);border-radius:4px;.options-item-container{padding:0 15px;display:flex;align-items:center;justify-content:space-between;margin:2px 0;.info-content{flex:1;.main-info{font-size:12px;line-height:12px;color:#333;}.desc-info{margin-top:3px;font-size:12px;transform:scale(0.75);transform-origin:left center;line-height:16px;color:#999;white-space:nowrap;margin-right:-50px;}}}.end-st{height:45px;}.show-st-in-canvas{height:45px;}}.filter-trigger-container,.options-trigger-container{color:#999;cursor:pointer;border-radius:4px;transition:300ms;color:",";&.active{color:",";background:",";}&:not(.active):hover{background:",";}.svg-icon{width:24px;height:24px;path[fill]{fill:currentColor;}path[stroke]{stroke:currentColor;}}}span.expandAll{cursor:pointer;color:",";&:hover,&:active{color:",";}}}}"],e=>e.theme.color_bg_border_02,e=>e.theme.color_bg_white,e=>e.theme.color_text_L1,e=>e.theme.color_text_L1,e=>e.theme.color_text_L1,e=>e.theme.color_btn_secondary_active,e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_text_L2,e=>e.theme.color_text_L1),Mte=(0,l.memo)(e=>{const[t,n]=(0,l.useState)(!1),{stickyList:a,selection:i,expandKeySet:c,alreadyExpandKeySet:d,STPanelWidth:p,dispatch:h,isHtmlZipPreview:m}=e,x=new Set([...Array.from(c),...Array.from(d)]),v=!a.every(R=>{let{key:F}=R;return d.has(F)}),A=a.every(R=>{let{key:F}=R;return x.has(F)}),k=()=>{h({type:"entry:STPanel:toggle:all:expandKeySet",payload:{isExpandAll:A,stickyList:a}})};return(0,o.jsxs)(kte,{id:"STPanel-container",className:"comment-panel",children:[(0,o.jsxs)("div",{className:"filter-header",children:[(0,o.jsx)("h3",{children:I18N.Note.note}),v&&(0,o.jsx)("span",{className:"expandAll",onClick:k,children:A?I18N.ScreenList.collapse_screens:I18N.ScreenList.expand_screens})]}),a.length===0?(0,o.jsx)(IA.h,{}):(0,o.jsx)(EA,{selection:i,isOnlyView:!1,isHtmlZipPreview:!1,stickyList:a,setIsExportOpenFromContainer:n,expandKeySet:c,alreadyExpandKeySet:d,dispatch:h,STPanelWidth:p}),!m&&(0,o.jsx)(r8.A,{isExportOpenFromContainer:t,setIsExportOpenFromContainer:n})]})}),Ete=(0,I.Mz)([me.Ur,tt.p$,gl.zM,gl.ju,gl.TW,q.uu,me.$5],(e,t,n,a,i,c,d)=>{let p=e!=null&&e.cid?(0,Xn.UR)(e.cid):[];return p.length&&(p=p.map(h=>{const{authorCid:m}=h.hotAttr.info;let x;if(m){var v;if(d){var A;x=d==null||(A=d.find(k=>k.user_cid===m))==null?void 0:A.name}else((v=MB.user)==null?void 0:v.cid)===m&&(x=MB.user.name)}return x?{...h,hotAttr:{...h.hotAttr,info:{...h.hotAttr.info,author:x}}}:h})),{selection:t,expandKeySet:n,alreadyExpandKeySet:a,STPanelWidth:i,stickyList:p,isHtmlZipPreview:c}}),Ite=(0,r.Ng)(e=>Ete(e))(Mte);function _te(){return(0,o.jsx)(a8,{id:"ST-panel",children:(0,o.jsx)(Ite,{})})}const L3=(0,M.Ay)(ci.H).withConfig({displayName:"styles__StyledVersionModel",componentId:"sc-1fu9lb0-0"})(["border:1px solid ",";&.ResetVersionConfirmModel{width:400px !important;.header{span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-right:30px;}}p.tip{margin-top:6px;line-height:20px;color:",";}}&.CollaboratorsConfirmModel{width:510px;.collaborators-scroll-container{width:470px;padding:0 0 0 24px;margin-top:20px;position:relative;height:76px;overflow-y:auto;.collaborators-container{display:flex;flex-flow:row wrap;}.collaborators-item{width:70px;margin-right:28px;margin-bottom:20px;display:flex;flex-direction:column;align-items:center;.collaborator-avatar{width:34px;height:34px;margin-bottom:8px;}.collaborator-name{color:",";font-size:12px;line-height:14px;width:100%;text-align:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}}}}&.UpgradeToOrgModel{margin-top:100px;width:530px;border-radius:8px;> header{display:none;}.content{padding:24px 24px 40px 24px;border-radius:8px;.close-container{display:flex;justify-content:flex-end;.close-icon{width:14px;height:14px;cursor:pointer;path{fill:",";}}}.title{font-size:18px;line-height:25px;font-weight:500;text-align:center;margin-bottom:20px;color:",";}p{text-align:center;}p a{color:",";text-decoration:underline;&:hover{color:#1a70d8;}}.background-container{width:100%;padding:18px;border:1px solid #ededed;border-color:",";background:",";border-radius:2px;margin:24px 0;.org-features-title{padding:0;font-size:14px;line-height:20px;font-weight:500;color:",";margin-bottom:22px;text-align:center;a{color:",";font-weight:400;text-decoration:underline;&:hover{color:#1a70d8;}}}.org-features-container{display:flex;width:100%;justify-content:space-between;.org-feature-item{width:90px;display:flex;flex-flow:column nowrap;align-items:center;.org-feature-image{display:block;height:79px;width:auto;}.org-feature-text{font-size:12px;line-height:17px;margin-top:8px;}}.divider{width:1px;height:51px;background:#e8e8e8;transform:translateY(14px);}}}.upgrade-link{display:block;text-align:center;width:316px;height:32px;line-height:32px;border-radius:2px;background:",";color:#fff;font-size:14px;margin:0 auto;&:hover{background:",";}}}}&.VersionResetNoticeModel{width:510px;}&.DeleteVersionConfirmModel{width:400px !important;}&.new-version-modal{width:400px !important;.modal-content{display:flex;flex-direction:column;input,textarea{color:",";border-radius:6px;padding:10px 12px;resize:none;outline:1px solid ",";border:none;&::placeholder{color:",";}&:focus{outline:2px solid ",";}}.version-title-input{width:100%;height:32px;margin-bottom:10px;}.version-description-container{position:relative;height:104px;width:100%;outline:1px solid ",";border-radius:6px;padding:10px 2px 0 0;&.is-active{outline:2px solid ",";}.version-description-input{width:100%;height:66px;outline:none;padding:0 4px 0 12px;background-color:inherit;&::-webkit-scrollbar{height:36px;}}.words-counter{position:absolute;bottom:6px;right:12px;font-size:12px;line-height:14px;color:",";&.is-limit{color:",";}}}}}"],e=>e.theme.color_bg_border_02,e=>e.theme.color_text_L2,e=>e.theme.color_text_L2,e=>e.theme.color_text_L3,e=>e.theme.color_text_L1,e=>e.theme.color_text_link_normal,e=>e.theme.color_bg_border_02,e=>e.theme.modal_bg1,e=>e.theme.color_text_L1,e=>e.theme.color_text_link_normal,e=>e.theme.color_proto,e=>e.theme.color_proto,e=>e.theme.color_text_L1,e=>e.theme.color_bg_border_02,e=>e.theme.color_text_L3,e=>e.theme.color_proto,e=>e.theme.color_bg_border_02,e=>e.theme.color_proto,e=>e.theme.color_text_L3,e=>e.theme.color_text_error),Tte=(0,l.memo)(e=>{let{projectCid:t,allVersions:n,currentDeleting:a,currentViewing:i,dispatch:c}=e;if(!a)return null;const d=()=>qj({projectCid:t,versionCid:a.cid,allVersions:n,currentViewing:i,dispatch:c}),p=()=>{c({type:"versions:model:deleting:close"})};return(0,o.jsxs)(L3,{isOpen:!!a,title:I18N.VersionManagementPane.delete_version_model_title,onConfirm:d,confirmText:I18N.VersionManagementPane.delete_version_model_confirm,onCancel:p,onClose:p,cancelText:I18N.VersionManagementPane.delete_version_model_cancel,className:"DeleteVersionConfirmModel",children:[(0,o.jsxs)("p",{children:[I18N.VersionManagementPane.delete_version_model_text1,a.title,I18N.VersionManagementPane.delete_version_model_text2]}),(0,o.jsx)("p",{children:I18N.VersionManagementPane.delete_version_model_text3})]})}),Pte=(0,l.memo)(e=>{let{projectCid:t,currentResetting:n,currentCollaborators:a,dispatch:i}=e;if(!n||!a.checked)return null;const c=async()=>{try{await $j(n==null?void 0:n.cid),Th("\u8FD8\u539F\u7248\u672C")}catch(p){/404/.test(p.message)&&(MB.notice({text:I18N.VersionManagementPane.version_toast_error_deleted,type:"warning"}),Tg({projectCid:t,dispatch:i}))}},d=()=>{i({type:"versions:model:resetting:close"})};return(0,o.jsxs)(L3,{isOpen:!!n&&a.checked,title:(0,o.jsx)("span",{children:I18N.VersionManagementPane.reset_version_model_title+"\u300C"+n.title+"\u300D"}),onConfirm:c,confirmText:I18N.VersionManagementPane.reset_model_confirm,onCancel:d,onClose:d,cancelText:I18N.VersionManagementPane.reset_model_cancel,className:"ResetVersionConfirmModel",children:[(0,o.jsx)("p",{children:I18N.VersionManagementPane.reset_version_model_text1}),(0,o.jsx)("p",{className:"tip",children:"\u5F53\u524D\u5DE5\u4F5C\u533A\u5185\u5BB9\u5C06\u81EA\u52A8\u4FDD\u5B58\u5230\u7248\u672C\u8BB0\u5F55\u4E2D\u3002"})]})}),Lte=(0,l.memo)(e=>{let{currentCollaborators:t,dispatch:n}=e;const{collaborators:a,checked:i}=t;if(!a.length||i)return null;const c=async()=>{n({type:"versions:model:resetting:cllaborators:confirm"})},d=()=>{n({type:"versions:model:resetting:close"})};return(0,o.jsxs)(L3,{isOpen:!!a.length&&!i,title:a.length+" "+I18N.VersionManagementPane.collaborator_model_title,onConfirm:c,confirmText:I18N.VersionManagementPane.collaborator_model_confirm,onCancel:d,onClickCloseIcon:d,cancelText:I18N.VersionManagementPane.collaborator_model_cancel,className:"CollaboratorsConfirmModel",children:[(0,o.jsx)("p",{children:I18N.VersionManagementPane.collaborator_model_text}),(0,o.jsx)("div",{className:"collaborators-scroll-container",children:(0,o.jsx)("div",{className:"collaborators-container",children:a.map(p=>{let[h,m,x]=p;return(0,o.jsxs)("div",{className:"collaborators-item",children:[(0,o.jsx)("img",{className:"collaborator-avatar",src:x}),(0,o.jsx)("p",{className:"collaborator-name",children:m})]},h)})})})]})}),Nte=(0,l.memo)(e=>{let{onClose:t,projectCid:n,projectName:a,currentUser:i,currentOrg:c,allVersions:d,currentEditing:p,dispatch:h}=e;const m=p?d.find(Te=>{let{cid:xe}=Te;return xe===p.cid}):null,[x,v]=(0,l.useState)((m==null?void 0:m.title)||""),[A,k]=(0,l.useState)((m==null?void 0:m.description)||""),[R,F]=(0,l.useState)(!1),Z=(0,l.useRef)(null),G=(0,l.useRef)(null);(0,l.useEffect)(()=>{var Te;(Te=Z.current)==null||Te.select()},[]);const ee=()=>{h({type:"versions:update",payload:{currentEditing:null}})},ce=async()=>{await ee(),m?await Jj({projectCid:n,versionCid:m.cid,newTitle:x,newDesc:A,dispatch:h,allVersions:d}):await qv({projectCid:n,dispatch:h,title:x,desc:A,projectName:a,currentUserName:i.name,currentOrgCid:(c==null?void 0:c.cid)||""}),await Tg({projectCid:n,dispatch:h,accessToken:""}),t()},se=async()=>{await ee(),t()},he=Te=>{if(Te.key===bn._.Enter)Te.preventDefault(),ce();else if(Te.key===bn._.Tab){var xe;Te.preventDefault(),(xe=G.current)==null||xe.select()}},ve=Te=>{if(Te.key===bn._.Enter&&!Te.shiftKey)Te.preventDefault(),ce();else if(Te.key===bn._.Tab)Te.preventDefault();else if(Te.key===bn._.Enter){var xe;((xe=G.current)==null?void 0:xe.scrollHeight)>=parseInt(window.getComputedStyle(G.current).lineHeight)*10&&(MB.notice({text:I18N.VersionManagementPane.version_toast_edit_lines_overflow,type:"warning"}),Te.preventDefault())}};return(0,o.jsxs)(L3,{isOpen:!0,title:"\u7248\u672C\u4FE1\u606F",onConfirm:ce,onClose:se,className:"new-version-modal",children:[(0,o.jsx)("input",{type:"text",className:"version-title-input",value:x,maxLength:25,ref:Z,placeholder:Ft()().format("YYYY.MM.DD HH:mm"),onChange:Te=>v(Te.target.value),onKeyDown:he}),(0,o.jsxs)("div",{className:C()("version-description-container",{"is-active":R}),children:[(0,o.jsx)("textarea",{ref:G,className:"version-description-input",value:A,maxLength:200,placeholder:"\u8F93\u5165\u7248\u672C\u63CF\u8FF0",onChange:Te=>k(Te.target.value),onKeyDown:ve,onFocus:()=>F(!0),onBlur:()=>F(!1)}),(0,o.jsx)("div",{className:C()("words-counter",{"is-limit":A.length>=200}),children:(0,o.jsxs)("span",{children:[A.length,"/200"]})})]})]})}),jte=(0,I.Mz)([gl.cS,te.MZ],(e,t)=>{const{filter:n}=e;return{filter:n,isV9Layout:t==="recommend"}}),_A=(0,l.memo)(()=>{const[e,t]=(0,l.useState)({top:0,left:0}),[n,a]=(0,l.useState)(!1),i=(0,l.useRef)(null),c=(0,r.wA)(),{filter:d,isV9Layout:p}=(0,r.d4)(jte),h=(0,o.jsx)(xt.C,{name:"toolbar/selected",className:"selected-icon"}),m=v=>{const A=v.currentTarget.dataset.type;c({type:"versions:update",payload:{filter:A}}),Th(A==="all"?"\u7B5B\u9009-\u5168\u90E8":"\u7B5B\u9009-\u624B\u52A8\u521B\u5EFA")},x=v=>{if(a(v),!v||!i.current)return;const{left:A,bottom:k}=i.current.getBoundingClientRect();t({top:k+6,left:A+23})};return(0,o.jsx)(Dte,{renderOpener:(0,o.jsx)(Ti.A,{content:"\u7B5B\u9009",direction:"down",children:(0,o.jsx)(cl.A,{className:C()("filter-icon",{active:n,"filter-icon-active":d==="active"}),name:d==="active"?"comment/filter-active":"comment/filter",size:24,ref:i})}),direction:"down",onClick:x,renderMenu:(0,o.jsxs)(Rte,{position:e,className:C()({isV9Layout:p}),children:[(0,o.jsx)(Oe.Dr,{text:"\u5168\u90E8",dataType:"all",onClick:m,icon:d==="all"?h:null}),(0,o.jsx)(Oe.Dr,{text:"\u624B\u52A8\u521B\u5EFA",dataType:"active",onClick:m,icon:d==="active"?h:null})]})})}),Dte=(0,M.Ay)(Cu.A).withConfig({displayName:"VersionFilterDropdown__StyledVersionFilterDropdown",componentId:"sc-gbgndu-0"})([".filter-icon{circle{fill:none;stroke:currentColor;}path{stroke:currentColor;}&.filter-icon-active{circle{fill:#1684fc;stroke:#1684fc;}path{fill:#fff;stroke:#fff;}}}.svg-icon{fill:currentColor;}"]),Rte=(0,M.Ay)(Oe.Ay).withConfig({displayName:"VersionFilterDropdown__StyledContextMenu",componentId:"sc-gbgndu-1"})(["min-width:144px;width:max-content;ul{min-width:144px;}&.isV9Layout{",";}.MenuItem{a{padding-left:32px;}&.hasIcon{> a{padding-left:15px;}}}"],za.ZJ),Bte=(0,l.memo)(e=>{let{currentViewing:t,onClickCreatingButton:n,onClosePane:a,allVersions:i,orgPlan:c,isReadOnly:d,dispatch:p}=e;const h=(0,l.useRef)(null),[m,x]=(0,l.useState)(!1),v=(0,l.useMemo)(()=>!MB.getRootProject().is_org_project,[]),A=(0,l.useMemo)(()=>{if(MB.currentOrg&&MB.getRootProject().is_org_project){const Z=i.filter(G=>G.category==="active").length;if(c==="org_free"||c==="org_expire")return Z>=2;if(c==="org_lite")return Z>=10;if(c==="org_full"||c==="org_trial")return Z>=30}return!1},[i,c]),k=Z=>{Z.stopPropagation(),h.current=setTimeout(()=>{x(!0)},0)},R=()=>{h.current&&clearTimeout(h.current),x(!1)},F=()=>{p({type:"modal:update:state",payload:{rightsAndInterestsModal:{isOpen:!0,type:Fr.hC.ProjectVersionFromCount}}})};return(0,o.jsxs)("header",{className:"panel-header",children:[(0,o.jsx)("span",{className:"title",children:I18N.VersionManagementPane.version_pane_title}),(0,o.jsxs)("div",{className:"actions",children:[!d&&(!t&&(v||A)?(0,o.jsxs)("div",{className:"disable-add-version-content",onMouseEnter:k,onMouseLeave:R,children:[(0,o.jsx)(cl.A,{name:"common/add_plus",onClick:n,size:24,isDisabled:!0}),m&&(0,o.jsxs)("div",{className:"drop-tips-content",onClick:Z=>Z.stopPropagation(),children:[(0,o.jsx)("div",{className:"top-bar"}),(0,o.jsx)("span",{children:v?"\u4E2A\u4EBA\u7248\u4E0D\u652F\u6301\u624B\u52A8\u521B\u5EFA\u7248\u672C\u8BB0\u5F55":"\u624B\u52A8\u521B\u5EFA\u7684\u7248\u672C\u6570\u91CF\u5DF2\u8FBE\u5230\u4E0A\u9650"}),(0,o.jsx)("a",{onClick:F,children:"\u5347\u7EA7"})]})]}):!t&&(0,o.jsx)(Ti.A,{content:"\u6DFB\u52A0\u7248\u672C",direction:"down",children:(0,o.jsx)(cl.A,{name:"common/add_plus",onClick:n,size:24})})),(0,o.jsx)(_A,{}),!t&&(0,o.jsx)(Ti.A,{content:"\u5173\u95ED",direction:"down",children:(0,o.jsx)(cl.A,{name:"common/close",size:24,className:"close-pane-icon",onClick:a})})]})]})}),Ute=M.Ay.aside.withConfig({displayName:"styles__StyledVersionManagementPane",componentId:"sc-180wedk-0"})(["position:relative;width:240px;height:100%;background:",";z-index:106;right:0;display:flex;flex-direction:column;box-shadow:-1px 0 0 ",";&.only-view{box-shadow:none;z-index:auto;right:auto;width:100%;&.in-version{border-left:none;width:240px;}}&.in-version{width:241px;border-left:1px solid ",";}a{cursor:pointer;color:",";&:hover{color:",";}}.panel-header{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid ",";height:40px;padding:0 10px 0 16px;.disable-add-version-content{position:relative;z-index:1;.drop-tips-content{font-size:12px;font-weight:400;line-height:18px;position:absolute;background:#454647;top:38px;right:-45px;width:max-content;padding:4px 6px;border-radius:6px;&::before{content:'';position:absolute;top:0;right:51px;transform:translateY(-100%);display:inline-block;width:0;height:0;border:6px solid transparent;border-bottom:6px solid #454647;}.top-bar{position:absolute;width:100%;height:15px;top:-15px;right:0;}span{color:",";}a{margin-left:10px;color:#80BCFF;&:hover{color:",";}}}}&.is-auto-save{.title{font-weight:400;}}.title{color:",";font-size:12px;line-height:16px;font-weight:500;}.actions{display:flex;.toolbar-dropdown-opener{color:",";}.filter-icon{circle{fill:none;stroke:currentColor;}path{stroke:currentColor;}&.filter-icon-active{circle{fill:#1684fc;stroke:#1684fc;}path{fill:#fff;stroke:#fff;}}}.svg-icon{fill:currentColor;}}}.panel-content{flex:1;overflow:hidden auto;position:relative;.versions-list-scroll-container{max-height:100%;max-width:100%;overflow-x:hidden;overflow-y:auto;scrollbar-width:none;.upgrade-tips{width:208px;margin:8px auto;padding:10px;background-color:",";border-radius:6px;color:",";}.versions-loading{position:absolute;width:50px;height:50px;left:50%;top:50%;transform:translate(-50%);}.versions-blank-container{width:180px;margin:160px auto;.versions-blank-bg{width:99px;height:auto;margin:0 auto;display:block;margin-bottom:25px;position:relative;left:-8px;}.blank-title{font-size:14px;line-height:20px;font-weight:500;margin-bottom:6px;text-align:center;color:",";}.blank-text{font-size:12px;line-height:17px;text-align:center;color:",";}}}}.panel-bottom{padding:8px 16px;background-color:",";border-top:1px solid ",";color:",";}"],e=>e.theme.color_bg_white,e=>e.theme.color_background_split,e=>e.theme.color_background_split,e=>e.theme.color_text_link_normal,e=>e.theme.color_text_link_hover,e=>e.theme.color_bg_border_02,e=>e.theme.color_text_btn,e=>e.theme.color_text_link_hover,e=>e.theme.color_text_L1,e=>e.theme.color_text_L1,e=>e.theme.color_info_bg,e=>e.theme.color_text_L1,e=>e.theme.color_text_L2,e=>e.theme.color_text_L3,e=>e.theme.color_bg_white,e=>e.theme.color_bg_border_02,e=>e.theme.color_text_L2),Ote=M.Ay.div.withConfig({displayName:"styles__StyledVersionItem",componentId:"sc-180wedk-1"})(["&.version-item-wrapper{padding-top:12px;width:100%;overflow:hidden;cursor:pointer;&.is-hide{cursor:auto;.top-part{.version-title{opacity:0.3;}}.bottom-part{opacity:0.3;}}&.has-expand{&.is-expand{.bottom-part .version-description{max-height:none;overflow:initial;}}.bottom-part{.version-description{display:flex;flex-direction:column;max-height:56px;overflow:hidden;margin-bottom:0;}.expand-action{min-height:24px;line-height:24px;color:",";}}}&.is-auto-create{.top-part .version-title{font-weight:400;}}.top-part{display:flex;justify-content:space-between;align-items:center;height:24px;padding:0 10px 0 16px;.version-title{flex-grow:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:0;font-size:12px;line-height:16px;font-weight:500;color:",";}.options{display:flex;align-items:center;.option{display:none;&:not(.disabled):hover{background-color:transparent;}&:not(.disabled){cursor:pointer;color:",";}}}}.bottom-part{display:flex;flex-direction:column;padding:0 16px;.version-description{display:flex;align-items:center;color:",";font-size:12px;min-height:24px;white-space:pre-wrap;word-break:break-word;}.bottom-line{display:flex;align-items:center;min-height:24px;.version-author-name{max-width:100px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:",";font-size:12px;line-height:17px;font-weight:500;margin-right:6px;}.create-time{color:",";font-size:12px;line-height:17px;}}}.divider-line{border-top:1px solid ",";margin-top:12px;}&:hover{&:not(.is-hide){background-color:",";}.top-part .options .option{display:block}}&.active{&:not(.is-hide){background-color:",";}.top-part .options .option{display:block}}&:last-child{.divider-line{border:none;}}}"],e=>e.theme.color_text_link_normal,e=>e.theme.color_text_L1,e=>e.theme.color_text_L1,e=>e.theme.color_text_L2,e=>e.theme.color_text_L3,e=>e.theme.color_text_L3,e=>e.theme.color_bg_border_02,e=>e.theme.color_btn_secondary_hover,e=>e.theme.comment_active),TA=(0,l.memo)(e=>{let{versionCid:t,title:n,description:a,createdTime:i,ownerName:c,category:d,currentViewing:p,dispatch:h,onOpenVersionModal:m,isHide:x,isOrgFree:v,isReadOnly:A,showDays:k}=e;const R=Ft()(i).format("YYYY.MM.DD HH:mm"),[F,Z]=(0,l.useState)(!1),[G,ee]=(0,l.useState)(!1),ce=l.useRef(null),se=MB.currentOrg?c:MB.user.name;(0,l.useEffect)(()=>{ce.current&&ce.current.clientHeight>48&&ee(!0)},[a]);const he=async Ke=>{x||(Ke.stopPropagation(),await h({type:"versions:update",payload:{currentEditing:{cid:t}}}),m())},ve=Ke=>{Ke.stopPropagation(),h({type:"versions:model:deleting:open",payload:{currentDeleting:{cid:t,title:n}}})},Te=Ke=>{x||(Ke.stopPropagation(),eD({versionCid:t,title:n,dispatch:h}))},xe=()=>{x||h({type:"versions:update",payload:{currentViewing:{cid:t,title:n}}})},Fe=(Ke,Qe)=>Qe.offsetWidth<Qe.scrollWidth,et=Ke=>{Ke.stopPropagation(),Z(!F)};return(0,o.jsxs)(Ote,{className:C()("version-item-wrapper",{active:p&&p.cid===t},{"has-expand":G},{"is-expand":F},{"is-auto-create":d==="auto"},{"is-hide":x}),onClick:xe,children:[(0,o.jsxs)("div",{className:"top-part",children:[(0,o.jsx)(Ti.A,{direction:"down",content:n,isShowTipsByTarget:Fe,children:(0,o.jsx)("h4",{className:"version-title",children:n})}),!A&&(0,o.jsxs)("div",{className:"options",children:[(0,o.jsx)(Ti.A,{direction:"down",content:x?"\u8D85\u8FC7 "+k+" \u5929\u7684\u7248\u672C\u4E0D\u652F\u6301\u8FD8\u539F":"\u8FD8\u539F\u7248\u672C",children:(0,o.jsx)(cl.A,{className:"option",name:"design/versions/restore",onClick:Te,size:24,isDisabled:x})}),(0,o.jsx)(Ti.A,{direction:"down",content:d==="auto"?"\u81EA\u52A8\u521B\u5EFA\u7684\u7248\u672C\u4E0D\u652F\u6301\u7F16\u8F91":x?"\u8D85\u8FC7 "+k+" \u5929\u7684\u7248\u672C\u4E0D\u652F\u6301\u7F16\u8F91":I18N.VersionManagementPane.version_item_option_edit,children:(0,o.jsx)(cl.A,{className:"option",name:"design/versions/edit",onClick:he,size:24,isDisabled:d==="auto"||x})}),(0,o.jsx)(Ti.A,{direction:"down",content:d==="auto"?"\u81EA\u52A8\u521B\u5EFA\u7684\u7248\u672C\u4E0D\u652F\u6301\u5220\u9664":I18N.VersionManagementPane.version_item_option_delete,children:(0,o.jsx)(cl.A,{className:"option",name:"design/versions/delete",onClick:ve,size:24,isDisabled:d==="auto"})})]})]}),(0,o.jsxs)("div",{className:"bottom-part",children:[a&&(0,o.jsx)("p",{className:"version-description",ref:ce,children:a}),G?(0,o.jsx)("span",{className:"expand-action",onClick:et,children:F?"\u6536\u8D77":"\u5C55\u5F00"}):null,(0,o.jsxs)("div",{className:"bottom-line",children:[(0,o.jsx)(Ti.A,{direction:"down",content:c,isShowTipsByTarget:Fe,children:(0,o.jsx)("p",{className:"version-author-name",children:se})}),d==="active"&&(0,o.jsx)("p",{className:"create-time",children:R})]})]}),(0,o.jsx)("div",{className:"divider-line"})]})}),PA=3,LA=30,Fte=(0,l.memo)(e=>{let{allVersions:t,currentViewing:n,orgPlan:a,soloPlan:i,dispatch:c,onOpenVersionModal:d,isReadOnly:p,isSoloLifeTime:h}=e;const m=i==="free"||a==="org_free",x=(0,l.useMemo)(()=>m?PA:(p?!(h||a===rs.Sj.OrgFull):i===rs.L1.Solo||a===rs.Sj.OrgLite)?LA:null,[m,h,a,i,p]),{showFilterVersions:v,filterHideAutoAndActiveVersions:A}=(0,l.useMemo)(()=>{const F=[],Z=[];return x!==null?(t.forEach(G=>{Ft()().diff(Ft()(G.created_at),"day")<=x?F.push(G):Z.push(G)}),{showFilterVersions:F,filterHideAutoAndActiveVersions:Z}):{showFilterVersions:t,filterHideAutoAndActiveVersions:[]}},[t,x]),k=()=>{c({type:"modal:update:state",payload:{rightsAndInterestsModal:{isOpen:!0,type:Fr.hC.ProjectVersionFromTime}}})},R=A.findIndex(F=>F.category==="auto")!==-1;return(0,o.jsxs)("div",{className:"version-items-wrapper",children:[v.map(F=>{let{cid:Z,title:G,description:ee,owner_name:ce,created_at:se,category:he}=F;return(0,o.jsx)(TA,{versionCid:Z,title:G,description:ee,ownerName:ce,createdTime:se,category:he,currentViewing:n,isReadOnly:p,dispatch:c,onOpenVersionModal:d,isHide:!1},Z)}),R&&(0,o.jsxs)("div",{className:"upgrade-tips",children:["\u8D85\u8FC7 ",m?PA:LA," \u5929\u7684\u81EA\u52A8\u521B\u5EFA\u7684\u7248\u672C\u9700\u8981\u5347\u7EA7\u4F1A\u5458\u67E5\u770B",(0,o.jsx)("a",{onClick:k,children:"\u7ACB\u5373\u5347\u7EA7"})]}),A.map(F=>{let{cid:Z,title:G,description:ee,owner_name:ce,created_at:se,category:he}=F;return(0,o.jsx)(TA,{versionCid:Z,title:G,description:ee,ownerName:ce,createdTime:se,category:he,currentViewing:n,dispatch:c,onOpenVersionModal:d,isHide:he==="auto",isOrgFree:a==="org_free",showDays:x},Z)})]})}),Vte=(0,l.memo)(e=>{let{projectCid:t,projectName:n,allVersions:a,fetched:i,fetching:c,isVersionManagementPaneShow:d,currentEditing:p,currentViewing:h,currentDeleting:m,currentResetting:x,currentCollaborators:v,filter:A,theme:k,isReadOnly:R,accessToken:F,dispatch:Z,currentUser:G,currentOrg:ee,onlyView:ce}=e;const[se,he]=(0,l.useState)(!1),ve=(0,l.useRef)(!1),Te=l.useRef(null),xe=(0,l.useRef)(null),Fe=ve.current,{maxProjectVersionCount:et}=(0,tr.xR)(G,ee);(0,l.useEffect)(()=>{ve.current=d}),(0,l.useEffect)(()=>{!Fe&&d&&Tg({projectCid:t,accessToken:F,dispatch:Z})},[Z,d,Fe,t]);const Ke=()=>{he(!0)},Qe=()=>{he(!1)},nt=()=>{Z({type:"versions:update",payload:{isVersionManagementPaneShow:!1}}),Th("\u5173\u95ED")},Xe=(0,l.useMemo)(()=>A==="all"?a:a.filter(hn=>{let{category:Cn}=hn;return Cn===A}),[A,a]),lt=(0,l.useMemo)(()=>{if(MB.currentOrg&&MB.getRootProject().is_org_project){const{plan:hn}=(0,tr.rM)(MB.currentOrg);return hn}return null},[]),{soloPlan:Ct,isSoloLifeTime:St}=(0,l.useMemo)(()=>{if(MB.user&&!MB.getRootProject().is_org_project){const Cn=is.tz.InitialUser(MB.user).planSdk.prototypePlan.getUserPlan(),Mt=[rs.L1.Lifetime,rs.L1.PremiumLifetime].includes(Cn);return{soloPlan:Cn,isSoloLifeTime:Mt}}return{}},[]);return(0,o.jsxs)(Ute,{id:"version-panel",className:C()({"only-view":ce},{"in-version":h}),children:[!ce&&(0,o.jsx)(Bte,{currentViewing:h,onClickCreatingButton:Ke,onClosePane:nt,allVersions:a,isReadOnly:R,orgPlan:lt,dispatch:Z}),(0,o.jsx)("div",{className:"panel-content",ref:Te,children:(0,o.jsxs)("div",{className:"versions-list-scroll-container",ref:xe,children:[c?(0,o.jsx)(E1.f,{className:"versions-loading"}):i?Xe.length?(0,o.jsx)(Fte,{allVersions:Xe,currentViewing:h,dispatch:Z,onOpenVersionModal:Ke,orgPlan:lt,soloPlan:Ct,isReadOnly:R,isSoloLifeTime:St}):(0,o.jsx)(Wte,{theme:k,filter:A}):null,(0,o.jsx)(jl.yP,{type:"vertical",containerRef:xe,isAutoHideBar:!0})]})}),(0,o.jsxs)("div",{className:"panel-bottom",children:["\u81EA\u52A8\u521B\u5EFA\u7684\u7248\u672C\u4EC5\u4FDD\u5B58 180 \u5929\uFF0C\u624B\u52A8\u521B\u5EFA\u7684\u7248\u672C\u53EF\u6C38\u4E45\u4FDD\u5B58\u3002",!ENV.IS_ON_PREMISES&&(0,o.jsx)("a",{rel:"noopener noreferrer",target:"_blank",href:"/hc/articles/415",onClick:()=>Th("\u4E86\u89E3\u66F4\u591A"),children:"\u4E86\u89E3\u66F4\u591A"})]}),(0,o.jsx)(Tte,{projectCid:t,allVersions:a,currentDeleting:m,currentViewing:h,dispatch:Z}),(0,o.jsx)(Pte,{projectCid:t,allVersions:a,currentResetting:x,currentCollaborators:v,dispatch:Z,currentUser:G,currentOrg:ee,maxProjectVersionCount:et}),(0,o.jsx)(Lte,{currentCollaborators:v,dispatch:Z}),se&&(0,o.jsx)(Nte,{onClose:Qe,projectCid:t,projectName:n,currentUser:G,currentOrg:ee,currentEditing:p,allVersions:a,dispatch:Z})]})}),zte=(0,I.Mz)([gl.cS,me.wA,me.HW,me.PL,te.O4,q.jx,me.z$],(e,t,n,a,i,c,d)=>{const{allVersions:p,fetched:h,fetching:m,isVersionManagementPaneShow:x,currentEditing:v,currentViewing:A,currentDeleting:k,currentResetting:R,currentCollaborators:F,filter:Z}=e,G=c===Le.qi.OnlyView,ee=G?d==null?void 0:d.access_token:"";return{projectName:a.name,projectCid:a.cid,allVersions:p,fetched:h,fetching:m,isVersionManagementPaneShow:x,currentEditing:v,currentViewing:A,currentDeleting:k,currentResetting:R,filter:Z,currentCollaborators:F,theme:i,currentOrg:t,currentUser:n,isReadOnly:G,accessToken:ee}}),NA=(0,r.Ng)(e=>zte(e))(Vte),jA={VERSIONS_LIST_DARK:["/mb-workspace/images/workspace/design/versions_blank_dark.png","/mb-workspace/images/workspace/design/versions_blank_dark_en.png"],VERSIONS_LIST_LIGHT:["/mb-workspace/images/workspace/design/versions_blank_light.png","/mb-workspace/images/workspace/design/versions_wonder.png"]},Wte=(0,l.memo)(e=>{let{theme:t,filter:n}=e;return(0,o.jsxs)("div",{className:"versions-blank-container",children:[(0,o.jsx)("img",{src:t==="dark"?jA.VERSIONS_LIST_DARK[+(ENV.IS_MO===!0)]:jA.VERSIONS_LIST_LIGHT[+(ENV.IS_MO===!0)],className:"versions-blank-bg"}),n==="all"?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("p",{className:"blank-title",children:I18N.VersionManagementPane.versions_blank1}),(0,o.jsx)("p",{className:"blank-text",children:I18N.VersionManagementPane.versions_blank2})]}):(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("p",{className:"blank-title",children:"\u65E0\u624B\u52A8\u521B\u5EFA\u7684\u7248\u672C\u8BB0\u5F55"}),(0,o.jsx)("p",{className:"blank-text",children:"\u624B\u52A8\u521B\u5EFA\u7684\u7248\u672C\u53EF\u6C38\u4E45\u4FDD\u5B58\uFF0C\u5E2E\u60A8\u8F7B\u677E\u8FD8\u539F\u5230\u67D0\u4E00\u5173\u952E\u8282\u70B9\u3002"})]})]})});var DA=s(96582);const Hte=M.Ay.div.withConfig({displayName:"styles__StyledSingleNewbieVideo",componentId:"sc-1cm90x5-0"})(["width:240px;height:154px;margin-top:8px;.video-cover{position:relative;width:240px;height:124px;text-align:center;img{width:220px;height:124px;border-radius:8px;}.video-play-mask{position:absolute;top:0;left:10px;width:220px;height:124px;background-color:rgba(0,0,0,0.08);border-radius:8px;display:flex;justify-content:center;align-items:center;}}.video-info{width:240px;height:30px;padding:6px 16px;display:flex;justify-content:space-between;.video-title{max-width:160px;p{color:",";font-size:12px;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}}.video-duration{width:40px;height:18px;border-radius:9px;background-color:",";text-align:center;p{color:",";font-size:12px;font-weight:400;}}}"],e=>e.theme.color_text_L1,e=>e.theme.color_bg_card,e=>e.theme.color_text_L2),Gte=e=>{const t=Math.floor(e/60),n=Math.floor(e%60),a=""+t,i=n<10?"0"+n:""+n;return a+":"+i};function Zte(e){let{index:t,coverSrc:n,videoSrc:a,videoName:i,duration:c}=e;const d=(0,r.wA)(),p=(0,l.useCallback)(()=>{d({type:"modal:update:state",payload:{newbieVideoModal:{isOpen:!0,index:t}}})},[]),[h,m]=(0,l.useState)(!1);return(0,o.jsxs)(Hte,{children:[(0,o.jsxs)("div",{className:"video-cover",onMouseEnter:()=>m(!0),onMouseLeave:()=>m(!1),children:[(0,o.jsx)("img",{src:n,alt:i}),h&&(0,o.jsx)("div",{className:"video-play-mask",children:(0,o.jsx)(ll.jn,{onClick:p,children:I18N.Common.play_video})})]}),(0,o.jsxs)("div",{className:"video-info",children:[(0,o.jsx)("div",{className:"video-title",children:(0,o.jsx)("p",{children:i})}),(0,o.jsx)("div",{className:"video-duration",children:(0,o.jsx)("p",{children:Gte(c)})})]})]})}const Kte=(0,l.memo)(Zte),Yte=M.Ay.div.withConfig({displayName:"styles__StyledNewbieVideoPanel",componentId:"sc-eymadb-0"})(["width:240px;height:100%;background:",";position:absolute;z-index:4;.newbie-video-header{display:flex;align-items:center;height:40px;border-bottom:1px solid ",";p{color:",";font-size:12px;font-weight:600;margin-left:16px;}.close{cursor:pointer;margin:0 8px 0 auto;width:24px;border-radius:4px;color:",";&:hover{background:",";}&:active{background:",";}}}.newbie-video-list{height:calc(100% - 40px);padding-top:2px;overflow-y:scroll;overflow-x:hidden;}"],e=>e.theme.color_bg_white,e=>e.theme.color_bg_border_02,e=>e.theme.color_text_L1,e=>e.theme.color_text_L1,e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_btn_secondary_active),RA=200,Xte=()=>({right:-308,transition:"right "+RA+"ms ease-in-out"}),Qte=()=>({entering:{right:-308},entered:{right:0},exiting:{right:-308}});function Jte(){const e=(0,r.wA)(),t=(0,r.d4)(gl.BR),n=()=>{e({type:"newbieVideoPanelState:toggle",payload:{show:!1}})};return(0,o.jsx)(DA.Ay,{in:t,timeout:RA,children:a=>{if(a===DA.Ay.EXITED)return null;const i={...Xte(),...Qte()[a]};return(0,o.jsxs)(Yte,{id:"newbie-video-panel",style:i,children:[(0,o.jsxs)("div",{className:"newbie-video-header",children:[(0,o.jsx)("p",{children:I18N.ToolBar.newbie_video}),(0,o.jsx)(xt.C,{name:"common/close",className:"close",onClick:n})]}),(0,o.jsx)("div",{className:"newbie-video-list",children:W0.map((c,d)=>(0,o.jsx)(Kte,{index:d,coverSrc:c.coverSrc,videoSrc:c.videoSrc,videoName:c.videoName,duration:c.duration},d))})]})}})}const BA=(0,l.memo)(Jte),qte=M.Ay.div.withConfig({displayName:"styles__StyledRightPanel",componentId:"sc-iqy9e-0"})(["position:relative;height:100%;display:flex;box-shadow:-1px 0 0 ",";z-index:5;#ST-panel,#design-comment-panel,#version-panel,#newbie-video-panel{position:absolute;}#ST-panel,#design-comment-panel{z-index:2;}#version-panel{z-index:3;}#newbie-video-panel{z-index:4;}"],e=>e.theme.color_bg_border_01);function $te(){const{isShowSettingPanel:e,isShowCommentPanel:t,isShowSTPanel:n,isShowVersionPanel:a,isShowNewbieVideoPanel:i}=(0,r.d4)(ene);return(0,o.jsxs)(qte,{className:"mb-right-panel",children:[e&&(0,o.jsx)(mte,{}),t&&(0,o.jsx)(wte,{}),n&&(0,o.jsx)(_te,{}),a&&(0,o.jsx)(NA,{}),i&&(0,o.jsx)(BA,{})]})}const ene=(0,I.Mz)([gl.UI,Lf.C,me.W4,N.sI,V$.Lc,gl.cS],(e,t,n,a,i,c)=>{let{isEmptyScreen:d}=t,{isDesign:p}=n,{currentViewing:h,isVersionManagementPaneShow:m}=c;return{isShowSettingPanel:e&&!d&&!h,isShowCommentPanel:e&&!d&&a,isShowSTPanel:e&&!d&&!a&&i,isShowVersionPanel:p&&m,isShowNewbieVideoPanel:p}}),tne=(0,l.memo)($te);var nne=s(77595);function one(e){const{stickyList:t,expandKeySet:n,alreadyExpandKeySet:a}=e,i=(0,r.d4)(tt.p$),c=(0,r.d4)(q.uu),d=(0,r.d4)(gl.TW),[p,h]=(0,l.useState)(!1),m=(0,r.wA)();return(0,o.jsxs)(o.Fragment,{children:[t!=null&&t.length?(0,o.jsx)(EA,{selection:i,isOnlyView:!0,isHtmlZipPreview:c,stickyList:t,setIsExportOpenFromContainer:h,expandKeySet:n,alreadyExpandKeySet:a,STPanelWidth:d,dispatch:m}):(0,o.jsx)(IA.h,{}),!c&&(0,o.jsx)(r8.A,{isExportOpenFromContainer:p,setIsExportOpenFromContainer:h})]})}const ane=(0,l.memo)(one);var rne=s(54222);function ine(){const e=(0,r.d4)(q.uu),t=(0,r.d4)(q.jx),n=(0,r.d4)(N.Cb),a=(0,r.d4)(N.ZA),i=(0,r.d4)(gl.TW),c=(0,r.d4)(te.O4);return(0,o.jsx)(rne.K,{activeCommentCid:n,commentList:a,isHtmlZipPreview:e,commentPanelWidth:i,viewType:t,theme:c})}const sne=(0,l.memo)(ine);var lne=s(77099);const cne=(0,l.memo)(e=>{var t;let{isEnableVersionControl:n,layoutV9:a,onTabChange:i,isActive:c}=e;const d=(0,r.d4)(gl.vr),p=(0,r.d4)(me.HW),h=(0,r.d4)(me.wA),m=(0,r.d4)(me.PL),x=(0,r.d4)(me.z$),v=(0,r.wA)(),A=a==="recommend",k=m==null?void 0:m.is_org_project,R=m==null?void 0:m.is_solo_lifetime,F=k&&h?Hq(h,p==null?void 0:p.id):{},Z=k&&h?(t=h.permissions)==null?void 0:t.find(xe=>Number(xe.user_id)===Number(p==null?void 0:p.id)):!1,G=((h==null?void 0:h.lifetime_bindings)||(h==null?void 0:h.lifetimeBindings)||[]).length>0,ee=n&&(k?F.isFullOrg||F.isTrialOrg||F.displayPlan==="org_full"&&G:R),ce=MB.canEditByCurrentUser,se=()=>{const xe=(0,Ra.l)(h,"v8_\u603B\u89C8\u6A21\u5F0F_\u5E95\u90E8\u7248\u672C\u8BB0\u5F55\u529F\u80FD","v8proto-read-use-version",!0);xe.immediateUse="org_full",MB.global.popupHelper.chargeAsync(xe)},he=()=>{!ee||c||(i(),v({type:"entry:comment:disabled",payload:{noWigglingCommentCid:!0}}),v(Le.GO.toggleInspectMode(!1)),v(Le.GO.toggleHandMode(!1)),v(Le.GO.select([])),v({type:"elbow:update",payload:{isInElbowMode:!1}}),v({type:"entry:ST:STMode:disable"}),v({type:"entry:toolbar:open:versionControl:modal"}),d?(0,Ad.A)({operation_type:Ad.D.TurnOffVersionControl}):(0,Ad.A)({operation_type:Ad.D.TurnOnVersionControl}))},ve=()=>{const xe=new URL("/proto/design/"+m.cid,window.location.origin);x!=null&&x.access_token&&xe.searchParams.append("projShareToEdit",x.access_token),(0,rl.JW)(xe.href)},Te=(0,l.useMemo)(()=>{const xe=(0,o.jsxs)("span",{children:[I18N.ToolBar.versionControlNotAvailable.content,(0,o.jsx)("span",{className:"change-settings",onClick:ve,children:I18N.ToolBar.versionControlNotAvailable.changeSettings})]}),Fe=(0,o.jsxs)("span",{children:[I18N.ToolBar.upgradeToVersionControl.content,(0,o.jsxs)("span",{className:"upgrade-now",onClick:se,children:[(0,o.jsx)(xt.C,{size:16,name:"sharing/updated"}),I18N.ToolBar.upgradeToVersionControl.upgradeNow]})]}),et=""+I18N.ToolBar.versionControlNotAvailable.content+I18N.ToolBar.versionControlNotAvailable.contact;return ee?I18N.ToolBar.versionControl:k?F.isFullOrg||F.isTrialOrg?ce?xe:et:Z?Fe:et:ce&&R?xe:et},[ve,se,ee,k,F.isFullOrg,F.isTrialOrg,ce,Z,R]);return ee?(0,o.jsx)(UA,{className:C()("nav-item",{active:c},{isV9Layout:A}),onClick:he,children:(0,o.jsx)("span",{className:"nav-label",children:I18N.ToolBar.versionControl})}):(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(lne.I,{className:"version-control-entry-tt",content:Te,children:(0,o.jsx)(UA,{className:C()("nav-item","disabled",{isV9Layout:A}),children:(0,o.jsx)("span",{className:"nav-label",children:I18N.ToolBar.versionControl})})}),(0,o.jsx)(dne,{})]})}),UA=M.Ay.li.withConfig({displayName:"VersionControlEntryTab__StyledVersionControlEntryTab",componentId:"sc-1v90i57-0"})([""]),dne=(0,M.DU)([".version-control-entry-tt{padding:6px;margin-top:-10px;> span{display:flex;align-items:center;line-height:16px;.change-settings,.upgrade-now{display:flex;align-items:center;margin-left:10px;color:rgba(112,188,246,1);cursor:pointer;&:hover{color:rgba(149,209,248,1);}}.upgrade-now{.svg-icon{margin-right:2px;path{fill:rgba(22,132,252,1);}path:last-of-type{fill:#fff;}}}}}"]);var OA=s(33394);function pne(){var e,t;const n=(0,r.d4)(gl.UI),a=(0,r.d4)(N.sI),i=(0,r.d4)(q.uu),c=(0,r.d4)(q.rg),d=(0,r.d4)(q.jx),p=(0,r.d4)(me.z$),h=d===Le.qi.OnlyView&&(p==null?void 0:p.comment_permission)==="off",m=(0,r.d4)(T.I9),x=!i&&(p==null?void 0:p.type)==="advanced",{currentViewing:v}=(0,r.d4)(gl.cS),A=!!v,k=[];A||(i||c?k.push({label:I18N.Note.note}):(m&&k.push({label:I18N.Note.note}),h||k.push({label:I18N.Comment.comment})));const[R,F]=(0,l.useState)(0),Z=(0,r.wA)(),G=(0,r.d4)(N.c1),ee=(0,r.d4)(N.M5),ce=(0,r.d4)(me.Ur),se=(0,r.d4)(gl.zM),he=(0,r.d4)(gl.ju),ve=(0,r.d4)(te.MZ),Te=(0,r.d4)(me.$5),xe=ve==="old",Fe=(ce==null?void 0:ce.cid)&&((e=rootSdk.sdkStore.getHotItem(ce.cid))==null?void 0:e.sub),et=(0,l.useMemo)(()=>{let hn=ce!=null&&ce.cid?rootSdk.sdkStore.getSubHotItemList(ce.cid).filter(Cn=>{let{hotAttr:Mt}=Cn;return["wSticky","wTear"].includes(Mt.type)}).sort((Cn,Mt)=>Cn.hotAttr.order-Mt.hotAttr.order):[];return hn.length&&(hn=hn.map(Cn=>{const{authorCid:Mt}=Cn.hotAttr.info;let Et;if(Mt){var Co;if(Te){var Pn;Et=Te==null||(Pn=Te.find(ro=>ro.user_cid===Mt))==null?void 0:Pn.name}else((Co=MB.user)==null?void 0:Co.cid)===Mt&&(Et=MB.user.name)}return Et?{...Cn,hotAttr:{...Cn.hotAttr,info:{...Cn.hotAttr.info,author:Et}}}:Cn})),hn},[Te,ce==null?void 0:ce.cid,Fe,Fe.length]),Ke=new Set([...Array.from(se),...Array.from(he)]),Qe=!et.every(hn=>{let{key:Cn}=hn;return he.has(Cn)}),nt=et.every(hn=>{let{key:Cn}=hn;return Ke.has(Cn)}),Xe=!i&&!m&&!h;if((0,l.useEffect)(()=>{(a||!m&&!h)&&F(1)},[a,m,h]),!n&&!a)return null;const lt=()=>{Z({type:"entry:STPanel:toggle:all:expandKeySet",payload:{isExpandAll:nt,stickyList:et}})},Ct=()=>{Z({type:"versions:update",payload:{isVersionManagementPaneShow:!1}})},St=hn=>{[0,1].includes(hn)&&Ct(),F(hn)};return(0,o.jsxs)(a8,{className:C()("with-switch-header",{"is-in-version":A}),isShowBorderResizer:!A,children:[(0,o.jsxs)(OA.b,{children:[a?(0,o.jsx)("h3",{children:I18N.Comment.comment}):(0,o.jsxs)(OA.u,{className:C()({isOldV8UI2408:xe}),activeIndex:Xe?0:R,onTabChange:St,layoutV9:ve,children:[k.map((hn,Cn)=>{let{...Mt}=hn;return(0,o.jsx)(Qy.n,{...Mt,className:C()({line_active:k.length>1})},Cn)}),x?(0,o.jsx)(cne,{isEnableVersionControl:p==null?void 0:p.enable_version_record,layoutV9:ve,onTabChange:()=>St(2),isActive:R===2},2):(0,o.jsx)(o.Fragment,{})]}),R===0?Qe&&(0,o.jsx)("span",{className:"expandAll",onClick:lt,children:nt?I18N.ScreenList.collapse_screens:I18N.ScreenList.expand_screens}):R===1?((t=MB)==null||(t=t.user)==null?void 0:t.id)&&(0,o.jsx)(nne.A,{selected:G,isShowCompletedComment:ee,viewType:d,dispatch:Z}):R===2?(0,o.jsx)(_A,{}):null]}),R===0?(0,o.jsx)(ane,{stickyList:et,expandKeySet:se,alreadyExpandKeySet:he}):R===2?(0,o.jsx)(NA,{onlyView:!0}):(0,o.jsx)(sne,{})]})}const une=(0,l.memo)(e=>{const{isHtmlZipPreview:t,inspectMode:n}=e;return(0,o.jsx)("div",{id:"inspect-panel",children:!t&&n&&(0,o.jsx)(r8.A,{})})});var FA=s(23200);const hne=(0,FA.$)(pne),mne=(0,FA.$)(une);function fne(){const{inspectMode:e,isCommunityPreview:t,isEmbedV2Preview:n,isReadOnlyCommentMode:a,fullScreenMode:i,isShowRightPane:c,isHtmlZipPreview:d}=(0,r.d4)(gne),p=(0,r.wA)(),h=()=>p({type:"entry:toggle:right-panel"}),m=()=>e||t||n&&!i?null:a?(0,o.jsx)(hne,{isVisible:c,orientation:"right",vacuum:12,toggleFunc:h}):null;return(0,o.jsxs)(o.Fragment,{children:[m(),(0,o.jsx)(BA,{}),(0,o.jsx)(mne,{className:C()("with-toggle-visibility-button-readOnly-inspect-panel",{"is-inspect-mode":e}),isVisible:c&&e,orientation:"right",vacuum:12,inspectMode:e,isHtmlZipPreview:d,toggleFunc:h})]})}const gne=(0,I.Mz)([q._b,q.pH,q.rg,me.z$,q.T7,T.I9,gl.UI,q.uu],(e,t,n,a,i,c,d,p)=>{const h=c||(a==null?void 0:a.comment_permission)!=="off";return{inspectMode:e,isCommunityPreview:t,isEmbedV2Preview:n,isReadOnlyCommentMode:h,fullScreenMode:i,isShowRightPane:d,isHtmlZipPreview:p}}),yne=(0,l.memo)(fne),xne=M.Ay.div.withConfig({displayName:"styles__StyledRightSidePanel",componentId:"sc-103a1mw-0"})(["display:flex;position:relative;flex-direction:column;&.isDeleteRulerLine{pointer-events:none;}.with-toggle-visibility-button-readOnly-inspect-panel{height:0;.toggle-button{visibility:hidden;opacity:0;}&.is-inspect-mode{height:100%;.toggle-button{&:not(.pane-visible){visibility:visible;opacity:1;}&.visible{visibility:visible;opacity:1;}}}}#inspect-panel{width:100%;height:100%;display:flex;position:relative;flex-direction:column;}"]);function vne(){const{isDeleteRulerLine:e,onlyView:t}=(0,r.d4)(bne);return(0,o.jsx)(xne,{id:"right-slide-panel",className:C()({isDeleteRulerLine:e}),"data-is-widget-insertable":!1,children:t?(0,o.jsx)(yne,{}):(0,o.jsx)(tne,{})})}const bne=(0,I.Mz)([J.Q,q.jx],(e,t)=>{const n=t===Le.qi.OnlyView;return{isDeleteRulerLine:e,onlyView:n}});var wne=s(8702),Cne=s(98481),Sne=s(51326),Ane=s(3289),kne=s(20640);const Mne=M.Ay.div.withConfig({displayName:"styles__StyledSharingManager",componentId:"sc-1xm9iti-0"})(["min-width:376px;background:",";color:",";position:absolute;transform:translateX(-84%);top:48px;border-radius:8px;border:1px solid ",";box-shadow:",";overflow:hidden;cursor:auto;"],e=>e.theme.color_bg_white,e=>e.theme.color_text_L2,e=>e.theme.color_bg_border_02,e=>e.theme.shadow_5),Ene=(0,Sne.dl)();window.SharingEventEmitter=Ene;const Ine=(0,I.Mz)([te.O4,me.HW,me.wA,me.z$,T.iJ,me.Ur],(e,t,n,a,i,c)=>({theme:e,user:t,org:n,sharingInReadOnly:a,projShareToEdit:i,hostCurrentScreen:c}));function _ne(){var e;const{theme:t,user:n,org:a,sharingInReadOnly:i,projShareToEdit:c,hostCurrentScreen:d}=(0,r.d4)(Z=>Ine(Z),r.bN),p=(e=MB)==null?void 0:e.getRootProject(),h=(0,r.wA)(),[m,x]=(0,l.useState)(void 0),{screenDataMap:v,screenTreeData:A}=(0,kne.tb)(),k={pageAttrMap:v,pageKeyList:Object.keys(v),treeData:A},R=()=>{h({type:"toolbar:update:state",payload:{isShowSharingManager:!1,projShareToEdit:""}})},F=Z=>{const G=typeof Z.clientX=="number"?document.elementFromPoint(Z.clientX,Z.clientY):null,ee=document.querySelector("#sharing-box"),ce=document.querySelector("#IBOT_MODAL_ROOT");G!=null&&G.closest("#IBOT_SELECT_MENU_ROOT")||Z.target.closest(".sharingV2-click-visible")!==null||Z.target.closest(".ai-semantic-share")!==null||ce.contains(G)||Z.target.closest("#sharing-box")!==null||ee.contains(G)||Z.target.closest(".context-menu-mask > .design-avoid")!==null||Z.target.closest(".go-to-sharing")!==null||Z.target.closest(".sharing--drop-canvas-list")!==null||Z.target.closest(".dropmenu-no-exit")!==null||Z.target.closest(".permission-select.CheckSelectMenu")!==null||(h({type:"toolbar:sharingManager:toggle"}),h({type:"toolbar:update:state",payload:{projShareToEdit:""}}))};return(0,l.useEffect)(()=>{const Z=ee=>{let{whichModal:ce}=ee;MB.action("modal:update:state",{rightsAndInterestsModal:{isOpen:!0,type:Fr.hC.MaxSharingCount,project:p}})},G=window.SharingEventEmitter;return G.on("sharing:count",Z),()=>{G.off("sharing:count",Z)}},[p,h]),(0,l.useEffect)(()=>{x(document.getElementById("sharing-box"))},[]),(0,l.useEffect)(()=>{var Z;p!=null&&p.is_org_project&&a&&a!=null&&a.cid&&!(a!=null&&(Z=a.members)!=null&&Z.length)&&(async()=>{try{const ee=await(0,Td.jm)(a.cid);h({type:"update:org:member:list",payload:{orgMembers:ee}})}catch(ee){console.error("requestOrgMembers",ee)}})()},[p==null?void 0:p.is_org_project,h,a]),m?(0,Ki.createPortal)((0,o.jsxs)(Mne,{children:[(0,o.jsx)(Ane.n,{theme:t,org:a,user:n,project:p,members:(a==null?void 0:a.members)||[],hostType:"proto",hostSharingData:i,projShareToEdit:c,screenMetaList:k,handleClose:R,hostCurrentScreen:d}),(0,o.jsx)(Ls.A,{target:document,onClick:(0,Ls.t)(F,{capture:!0})})]}),m):null}const Tne="px",N3="rem",j3="em",Pne="pt",Lne="dp",VA="rpx",Nne=[Tne,Lne,Pne,VA,j3,N3],jne=[10,12,14,16],zA=e=>1,vc=function(e,t,n,a,i){var c;e===void 0&&(e=0),t===void 0&&(t=1),n===void 0&&(n=""),a===void 0&&(a=1),i===void 0&&(i=!0);let d=Number.parseFloat((t*e).toFixed(2));return n===VA?d=Number.parseFloat((d*a).toFixed(2)):[j3,N3].includes(n)&&(d=Number.parseFloat((1/t*e).toFixed(2))),(c=n)!=null&&c.length&&i?d+n:d},i8=()=>{try{const e=window.localStorage.getItem("user_pick_color");return JSON.parse(e||"[]")}catch(e){return[]}},Dne=e=>{const t=i8(),n=e==null?void 0:e.toLowerCase();return t.includes(n)?{history:t,focusColor:e}:(t.unshift(n),t.length>40&&t.pop(),window.localStorage.setItem("user_pick_color",JSON.stringify(t)),{history:t,focusColor:null})},Rne=e=>{const t=i8(),n=e==null?void 0:e.toLowerCase(),a=t.indexOf(n);return a===-1||(t.splice(a,1),window.localStorage.setItem("user_pick_color",JSON.stringify(t))),t},s8=e=>{const t=new Map;return e&&e.split(";").filter(n=>n).forEach(n=>{const[a,i]=n.split(":");t.set(a.trim(),i.trim())}),t},WA=(e,t)=>{const{selectionLeftTopInfo:{x:n,y:a}}=e;let i;if((0,iu.SS)(t)){const{table:p,cells:h}=t,m=(0,iu.j)(h,p,a,n);i=(m==null?void 0:m.style)||""}else{var c;i=t!=null&&(c=t.tableData)!=null&&c.cellStyles&&t.tableData.cellStyles[a]?t.tableData.cellStyles[a][n]:""}const d=s8(i);return Bne(d)},l8={ha:["text-align","left"],va:["align-items","center"],fontSize:["font-size",14],color:["color","rgba(255,255,255,1)"],boldType:["font-weight","normal"],fontStyle:["font-style","normal"],textDecoration:["text-decoration","normal"],lineHeight:["line-height",20],padding:["padding",4]},Bne=e=>{const t={newOverOld:!1,showContentBox:!1,ha:"center",va:"center",fontSize:14,color:"rgba(91, 107, 115, 1)",boldType:0,fontStyle:"normal",textDecoration:"normal",lineHeight:20,padding:0,haDisabled:!1,vaDisabled:!1,canShowParagraph:!0,isDisabledFontDropdown:!1,isDisabledFontRadioLine:!1,isEditing:!1};return Object.keys(t).forEach(n=>{l8[n]&&(t[n]=e.get(l8[n][0])||l8[n][1])}),t.padding=Number.parseInt(t.padding),t.fontSize=Number.parseInt(t.fontSize),t.lineHeight=Number.parseInt(t.lineHeight),t.boldType=+(t.boldType==="bold"),t},D3=(e,t)=>{var n,a,i,c;if((0,iu.SS)(e))return Une(e,t);const{x:d,y:p}=t,{x:h,y:m,w:x,h:v,tableData:{columns:A,rows:k,mergeCells:R}}=e;let F=((n=A[d])==null?void 0:n.width)||0,Z=((a=k[p])==null?void 0:a.height)||0;if(R[d+"-"+p]){const[he,ve]=R[d+"-"+p];for(let Te=d+1;Te<=d+he-1;Te++){var G;F+=((G=A[Te])==null?void 0:G.width)||0}for(let Te=p+1;Te<=p+ve-1;Te++){var ee;Z+=((ee=k[Te])==null?void 0:ee.height)||0}}const ce=A.reduce((he,ve,Te)=>he+(Te<=d?ve.width:0),0)-((i=A[d])==null?void 0:i.width)||0,se=k.reduce((he,ve,Te)=>he+(Te<=p?ve.height:0),0)-((c=k[p])==null?void 0:c.height)||0;return{w:F,h:Z,x:h-x/2+ce+F/2,y:m-v/2+se+Z/2,r:0}},Une=(e,t)=>{const{x:n,y:a}=t,{x:i,y:c,w:d,h:p,widthList:h,heightList:m,tableData:{mergeCells:x}}=e;let v=h[n],A=m[a];if(x[n+"-"+a]){const[F,Z]=x[n+"-"+a];for(let G=n+1;G<=n+F-1;G++)v+=h[G];for(let G=a+1;G<=a+Z-1;G++)A+=m[G]}const k=h.reduce((F,Z,G)=>F+(G<=n?Z:0),0)-h[n],R=m.reduce((F,Z,G)=>F+(G<=a?Z:0),0)-m[a];return{w:v,h:A,x:i-d/2+k+v/2,y:c-p/2+R+A/2,r:0}},One=(e,t,n,a,i)=>{if((0,iu.SS)(e))return Fne(e,t,n,a,i);const{x:c,y:d}=n,{tableData:{data:p,cellStyles:h}}=e,m=D3(e,n),x=p[d][c],v=s8(h[d][c]),{color:A,fontSize:k,fontStyle:R,boldType:F,textDecoration:Z,ha:G,va:ee,lineHeight:ce,padding:se}=WA({selectionLeftTopInfo:n},e);return c8({...e,table_cell_text:x,x:m.x,y:m.y,w:m.w,h:m.h,border:void 0,color:A,fontSize:k,fontStyle:R,boldType:F,textDecoration:Z,ha:G,va:ee,lineHeight:ce,padding:se,table_cell_background:v.get("background")},t,a)},Fne=(e,t,n,a,i)=>{const{x:c,y:d}=n,{table:p,cells:h}=e,m=D3(e,n),x=(0,iu.j)(h,p,d,c),v=(x==null?void 0:x.data)||"",A=s8((x==null?void 0:x.style)||""),{color:k,fontSize:R,fontStyle:F,boldType:Z,textDecoration:G,ha:ee,va:ce,lineHeight:se,padding:he}=WA({selectionLeftTopInfo:n},e);return c8({...e,table_cell_text:v,x:m.x,y:m.y,w:m.w,h:m.h,border:void 0,color:k,fontSize:R,fontStyle:F,boldType:Z,textDecoration:G,ha:ee,va:ce,lineHeight:se,padding:he,table_cell_background:A.get("background")},t,a,i?ve=>i(ve,n):void 0)},Vne=["wRect","wOval","wMTextInput","wMTextArea","wMSelect","wButton","wMTooltip","wLine","wArrow","wIconButton","wPlaceholder","wPolygon","wStar","wSegmentedControl","wCollapse","wDigitalStepper","wPaginationMobile","wPaginationWeb","wDropMenu"],c8=(e,t,n,a)=>{var i,c;const d={top:e.y-e.h*.5,width:e.w,height:e.h,left:e.x-e.w*.5,refVars:{}};if(typeof n=="function"){const{displayName:x,textStyles:v,inspectText:A,widgetText:k,bgColors:R}=n(e);d.displayName=x,k&&(d.textStyles=v,d.inspectText=A),R&&(d.bgColors=R)}else console.error("getWidgetInspectStyles is not a function");const p=e.borderRadius;p&&p!=="0"&&(d.bdRadius=p);const h=e.ro;if(h&&(d.rotation=h),e.border&&Vne.includes(e.type)){var m;d.borders=e!=null&&(m=e.border)!=null&&m.bdrIsVisible?[{thickness:e.border.bdrWidth,color:(0,ul.t0)(e.border.bdrColor)}]:[]}if((e==null||(i=e.shadow)==null?void 0:i.type)==="box_shadow"){const x=e==null?void 0:e.shadow;d.shadows=x!=null&&x.shadowIsVisible?[{offset_x:x.offsetX,offset_y:x.offsetY,blur_radius:x.blurRadius,spread:x.spreadRadius,color:(0,ul.t0)(x.shadowColor)}]:[]}if((e==null||(c=e.shadow)==null?void 0:c.type)==="text_shadow"){const x=e==null?void 0:e.shadow;d.shadows=x!=null&&x.shadowIsVisible?[{offset_x:x.offsetX,offset_y:x.offsetY,blur_radius:x.blurRadius,color:(0,ul.t0)(x.shadowColor)}]:[]}return typeof a=="function"&&Object.assign(d.refVars,a(e)),Object.assign({},e,d)},dce=(e,t)=>{const n=zne(e)?"chinese":"english",a=Wne()?"mac":"windows";return Hne[a]["others"][n]},zne=e=>{const t=e.charCodeAt(0);return t>=19968&&t<=40869},Wne=()=>/Mac|iPod|iPhone|iPad/.test(navigator.platform),Hne={mac:{ios:{chinese:"PingFang SC",english:"-apple-system"},android:{chinese:"PingFang SC",english:"Roboto"},others:{chinese:"PingFang SC",english:"Roboto"}},windows:{ios:{chinese:"Microsoft Yahei",english:"Arial"},android:{chinese:"Microsoft Yahei",english:"Roboto"},others:{chinese:"Microsoft Yahei",english:"Roboto"}}};var Gne=s(76682),d8=s.n(Gne);const zf=e=>{if(h0(e)!==t1)return console.warn("Not rgbacolor but use rgba2hexWithA"),e;const n=e.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+(\.\d+)?)[\s+]?/i);return n&&n.length>=4?{hex:("#"+("0"+parseInt(n[1],10).toString(16)).slice(-2)+("0"+parseInt(n[2],10).toString(16)).slice(-2)+("0"+parseInt(n[3],10).toString(16)).slice(-2)).toUpperCase(),o:Number((+n[4]).toFixed(2))}:e},h0=function(e){return e===void 0&&(e=Wf),e.includes(t1)?t1:e.includes(gp)?gp:e.includes("#")&&e.length===9?d2:e.includes("#")?p2:e.includes(m8)?m8:!1},m0=function(e,t){if(t===void 0&&(t=t1),!e)return Wf;const n=h0(e);if(!n)return Wf;switch(n){case t1:if(t===n)return e;if(t===gp)return GA(e);if(t===p2)return ZA(e);if(t===d2)return KA(e);break;case gp:if(t===n)return e;if(t===t1)return YA(e);if(t===p2)return XA(e);if(t===d2)return Zne(e);break;case p2:if(t===n)return e;if(t===t1)return Kne(e);if(t===gp)return p8(e);if(t===d2)return QA(e);break;case d2:if(t===n)return e;if(t===t1)return u8(e);if(t===gp)return Yne(e);if(t===p2)return Xne(e);break;case m8:if(t===t1)return R3;if(t===gp)return GA(R3);if(t===p2)return ZA(R3);if(t===d2)return KA(R3);break;default:return e}},HA=e=>{if(h0(e)!==t1)return console.warn("Not rgbacolor but use rgba2rgbWithA"),e;const{hex:n,o:a}=zf(e);return n?{rgb:p8(n),o:a}:Wf},p8=e=>{if(h0(e)!==p2)return console.warn("Not hexcolor but use hex2rgb"),e;if(e=e.replace("#",""),e.length===3){const[c,d,p]=e.split("");e=""+c+c+d+d+p+p}const n=parseInt(e.substring(0,2),16),a=parseInt(e.substring(2,4),16),i=parseInt(e.substring(4,6),16);return"rgb("+n+", "+a+", "+i+")"},GA=e=>{const{rgb:t,o:n}=HA(e);if(!t)return e;const a=n<=1?n*100:n;return t+" "+Math.round(a)+"%"},ZA=e=>{const{hex:t,o:n}=zf(e);if(!t)return e;const a=n<=1?n*100:n;return t.toUpperCase()+" "+Math.round(a)+"%"},KA=e=>{if(h0(e)!==t1)return console.warn("Not rgbacolor but use rgba2argb"),e;const{hex:n,o:a}=zf(e);return n?"#"+("0"+Math.round(a*255/100).toString(16)).slice(-2).toUpperCase()+n.slice(1):e},YA=e=>h0(e)!==gp?(console.warn("Not rgbcolor but use rgb2rgba"),e):"rgba("+e.slice(4,-1)+", 1)",XA=e=>{if(h0(e)!==gp)return console.warn("Not rgbcolor but use rgb2hex"),e;const n=e.match(/^rgb?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i);if(n&&n.length===4){const a=("0"+parseInt(n[1],10).toString(16)).slice(-2),i=("0"+parseInt(n[2],10).toString(16)).slice(-2),c=("0"+parseInt(n[3],10).toString(16)).slice(-2);return("#"+a+i+c).toUpperCase()}},Zne=e=>h0(e)!==gp?(console.warn("Not rgbcolor but use rgb2argb"),e):QA(XA(e)),QA=e=>h0(e)!==p2?(console.warn("Not hexcolor but use hex2argb"),e):"#FF"+e.slice(1),Kne=e=>h0(e)!==p2?(console.warn("Not hexcolor but use hex2rgba"),e):YA(p8(e)),u8=e=>{if(h0(e)!==d2)return console.warn("Not argbcolor but use argb2rgba"),e;const n=[];for(let p=1;p<e.length;p+=2)n.push(e.slice(p,p+2));let[a,i,c,d]=n;return i=parseInt(i,16),c=parseInt(c,16),d=parseInt(d,16),a=Number((parseInt(a,16)/255).toString().slice(0,4)),"rgba("+i+", "+c+", "+d+", "+a+")"},Yne=e=>{if(h0(e)!==d2)return console.warn("Not argbcolor but use argb2rgbWithA"),e;const n=u8(e),{rgb:a,o:i}=HA(n);return a?a+" "+Math.round(i*100)+"%":e},Xne=e=>{if(h0(e)!==d2)return console.warn("Not argbcolor but use argb2hexWithA"),e;const n=u8(e),{hex:a,o:i}=zf(n);return a?a.toUpperCase()+" "+Math.round(i*100)+"%":e},h8=e=>Number(e.toFixed(2)),Qne=e=>{if(!e)return Wf;const{R:t,G:n,B:a,A:i}=(0,ul.BN)((0,ul.Sd)(e)),c=h8(t/255),d=h8(n/255),p=h8(a/255);return"UIColor(red:"+c+", green:"+d+", blue:"+p+", alpha:"+i+")"},Jne=e=>{try{if(h0(e)!==t1)return console.warn("Not rgbacolor but use rgba2hexWithA"),e;const n=e.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+(\.\d+)?)[\s+]?/i);if(n&&n.length>=4){let a="#",i=parseFloat(Number((+n[4]).toFixed(2)).toString());return i>=0&&i<=1?i=Math.round(255*i):i>=0&&i<=100?i=Math.round(255*i/100):i=-1,i>=0&&(a=a+(i|256).toString(16).slice(1)),a=(a+("0"+parseInt(n[1],10).toString(16)).slice(-2)+("0"+parseInt(n[2],10).toString(16)).slice(-2)+("0"+parseInt(n[3],10).toString(16)).slice(-2)).toUpperCase(),a}return e}catch(t){return e}},t1="rgba",d2="argb",gp="rgb",p2="hex",m8="transparent",R3="rgba(255, 255, 255, 0)",Wf="#FFFFFF",qne=e=>{let{attr:t,language:n,unit:a}=e;const i=qA(n),{width:c,height:d,lineHeight:p,opacity:h,borderRadius:m,borderWidth:x,borderColor:v,background:A,backgroundColor:k,color:R,fontSize:F,fontFamily:Z,fontStyle:G,boxShadow:ee,textAlign:ce,x:se,y:he}=t,ve=se&&{[ld[i].x]:n1(se,a,i)},Te=he&&{[ld[i].y]:n1(he,a,i)},xe=c&&{[ld[i].width]:n1(c,a,i)},Fe=d&&{[ld[i].height]:n1(d,a,i)},et=p&&{[ld[i].lineHeight]:n1(p,a,i)},Ke=h&&{[ld[i].opacity]:n1(h,a,i)},Qe=m&&{[ld[i].borderRadius]:n1(m,a,i)},nt=k&&{[ld[i].backgroundColor]:Hf(k,n)},Xe=A&&{[ld[i].background]:n1(A,a,i,!0)},lt=R&&{[ld[i].color]:Hf(R,n)},Ct=F&&{[ld[i].fontSize]:n1(F,a,i)},St=Z&&{[ld[i].fontFamily]:n1(Z,a,i)},hn=G&&{[ld[i].fontStyle]:n1(G,a,i)},Cn=ee&&{[ld[i].shadows]:ee},Mt=x&&{[ld[i].borderWidth]:n1(x,a,i)},Et=v&&{[ld[i].borderColor]:Hf(v,n)},Co=ce&&{[ld[i].textAlign]:ce};return Object.assign({},ve,Te,xe,Fe,et,Ke,Qe,Mt,Et,Xe,nt,lt,Ct,hn,Co,Cn,St)},n1=function(e,t,n,a){if(a===void 0&&(a=!1),e=e.toString(),n==="px")return t==="dp"?e.replace(t,n):e;if(n==="dp")return e.replace(t,n);if(n==="pt")return e.replace(t,"")},Hf=(e,t)=>{e=e.toString();try{if(t==="android")return Jne(e);if(t==="swift")return Qne(e)}catch(n){console.warn("### color error:",n)}return e},ld={px:{x:"left",y:"top",width:"width",height:"height",lineHeight:"line-height",opacity:"opacity",border:"border",borderRadius:"border-radius",borderColor:"border-color",borderWidth:"border-width",background:"background",backgroundColor:"background-color",color:"color",fontSize:"font-size",fontFamily:"font-family",fontStyle:"font-style",textAlign:"text-align",shadows:"box-shadow",innerShadows:"inner-shadow"},dp:{x:"left",y:"top",width:"layout_width",height:"layout_height",border:"border",opacity:"opacity",color:"textColor",fontSize:"textSize",fontFamily:"font-family",fontStyle:"font-style",textAlign:"gravity",background:"background",backgroundColor:"background",borderRadius:"radius",borderColor:"border-color",lineHeight:"line-height",borderWidth:"border-width",shadows:"box-shadow",innerShadows:"inner-shadow"},pt:{x:"x",y:"y",width:"width",height:"height",opacity:"opacity",border:"border",background:"background",backgroundColor:"backgroundColor",color:"text-color",textAlign:"alignment",fontSize:"fontSize",fontFamily:"fontFamily",fontStyle:"font-style",borderRadius:"cornerRadius",borderColor:"borderColor",borderWidth:"border-width",lineHeight:"lineSpacing"}},f8=e=>{const t=/<[^>]+>/ig;return e?e.replace(t,""):""},$ne=e=>{const{width:t,height:n,left:a,top:i,opacity:c,borderRadius:d,rotation:p,ratio:h,unit:m,rectHeight:x,rectWidth:v,rpxRatio:A}=e,k=vc(a,h,m,A),R=vc(i,h,m,A),F=vc(v||t,h,m,A),Z=vc(x||n,h,m,A),G=d?(()=>{if(typeof d=="number")return vc(parseInt(d)||0,h,m,A);{const se=Object.values(d),he=se[2];return se[2]=se[3],se[3]=he,se.map(ve=>vc(parseInt(ve)||0,h,m,A)).join(" ")}})():null,ee=g8(p)?null:p+"\xB0",ce=g8(c)?null:c+"%";return{adapterLeft:k,adapterTop:R,adapterWidth:F,adapterHeight:Z,radius:G,opacity:ce,rotate:ee}},g8=e=>e===null||isNaN(e)||e===0,y8=function(e,t,n,a){return a===void 0&&(a=1),g8(e)?null:vc(e,t,n,a)},eoe=e=>{let{textStyles:t,borders:n,background:a,shadows:i,innerShadows:c,unit:d,ratio:p,language:h,rpxRatio:m}=e,x,v,A,k,R,F,Z,G,ee,ce,se,he;if(t){const{color:xe,fontSize:Fe,fontFace:et,lineHeight:Ke,horizontalAlign:Qe}=t;x=xe,v=vc(Fe,p,d,m),A=et,R=Qe,k=y8(Ke,p,d,m)}if(n.length){const{position:xe="inside",color:Fe,thickness:et}=n[0];F=vc(et,p,d,m),G=xe,Fe&&(Z=Fe)}return a.length&&(["linear","radial"].includes(a[0].type)?he=toe(a[0],h):ee=a[0].value),i.length&&(ce=JA(i,d,p,h,!1,m)),c.length&&(se=JA(c,d,p,h,!0,m),ce=ce+", "+se),{fontFamily:A,fontSize:v,color:x,lineHeight:k,textAlign:R,borderWidth:F,borderColor:Z,borderPosition:G,backgroundColor:ee,background:he,boxShadow:ce}},JA=function(e,t,n,a,i,c){i===void 0&&(i=!1),c===void 0&&(c=1);const d=e.length;return e.reduce((p,h,m)=>{let{color:x,offset_x:v=0,offset_y:A=0,blur_radius:k=0,spread:R=0}=h;const F=vc(v,n,t,c),Z=vc(A,n,t,c),G=vc(k,n,t,c),ee=vc(R,n,t,c);x=Hf(x,a);const ce=m<d-1?", ":"",se=i?"inset ":"";return p.concat(""+se+F+" "+Z+" "+G+" "+ee+" "+x+ce)},"")},toe=(e,t)=>{try{if(!["android","swift"].includes(t))return e.value;const{value:n,gradient:{color_stops:a}}=e;let i=n;return a&&a.length&&a.forEach(c=>{let{color:d}=c;const p=Hf(d,t);i=i.replace(d,p)}),i}catch(n){console.warn("### reduceGradient error:",n)}return(e==null?void 0:e.value)||""},noe="pt",ooe="dp",aoe="px",qA=e=>{switch(e){case"swift":return noe;case"android":return ooe;default:return aoe}},roe=()=>window.getSelection?window.getSelection().toString():document.selection?document.selection.createRange().text:"",ioe={"&amp;":"&","&lt;":"<","&gt;":">"},soe=/(&amp;|&lt;|&gt;)/g,loe=e=>ioe[e]||e,coe=e=>e&&e.replace(soe,loe),Gf=function(e){var t,n,a;e===void 0&&(e=!0);const i=(t=MB)==null||(t=t.global)==null||(t=t.previewOptions)==null?void 0:t.isHTMLZip;return e?!!((n=MB)!=null&&(n=n.user)!=null&&n.id)||i||ENV.IS_ON_PREMISES:!!((a=MB)!=null&&(a=a.user)!=null&&a.id)||i},B3=function(e,t){t===void 0&&(t=!0),Gf(t)||MB.global.popupHelper.loginAsync({onConfirm:()=>{setTimeout(()=>location.reload(),50)},type:"signin",source:e})};var $A=s(79186),Su=s(46219);class doe extends l.Component{constructor(){super(...arguments),(0,B.A)(this,"handleCopy",()=>{B3("proto-inspect")})}componentDidMount(){const{target:t,text:n}=this.props;Gf()&&(this.clipboard=n?new(d8())(this.$copyBtn,{text:()=>coe(document.querySelector(n).innerText)}):new(d8())(this.$copyBtn,{target:()=>document.querySelector(t)}),this.clipboard.on("success",i=>{this.error=!1,window.getSelection().removeAllRanges()}),this.clipboard.on("error",i=>{this.error=!0}))}componentWillUnmount(){this.clipboard&&this.clipboard.destroy()}render(){return(0,o.jsx)(Su.A,{arrowed:!1,content:{click:I18N.pInspect.copied},duration:1e3,className:"copyBtn",onClick:this.handleCopy,children:(0,o.jsx)("span",{ref:t=>this.$copyBtn=t,children:I18N.pInspect.copy})})}}class U3 extends l.PureComponent{constructor(t){super(t),(0,B.A)(this,"handleClick",()=>{this.setState(n=>({activeColor:n.colorList[n.index%4],index:n.index+1}))}),(0,B.A)(this,"handleCopy",()=>{B3("proto-inspect")}),this.state={index:0,activeColor:t.stateColor,colorList:t.rgbaColor==="transparent"?Array(4).fill("transparent"):ek(t.rgbaColor)||[]}}componentDidUpdate(t){this.props.stateColor!==t.stateColor&&this.setState({index:0,activeColor:this.props.stateColor,colorList:this.props.rgbaColor==="transparent"?Array(4).fill("transparent"):ek(this.props.rgbaColor)||[]})}render(){const{activeColor:t}=this.state,{title:n,rgbaColor:a,titleWidth:i=62}=this.props,c=C()("panel"),d=a.split(","),p=d.length,h=p>3&&+d[p-1].replace(")","")!=1,m=Gf();return(0,o.jsxs)("div",{className:c,"data-value":n,children:[(0,o.jsx)("label",{className:"title-label",style:{width:i},children:n}),(0,o.jsxs)("div",{className:"panel-item panel-item-color item-flex-1",children:[(0,o.jsx)(Su.A,{className:"panel-item-value textEllipsis",content:{click:I18N.pInspect.copied},"data-type":"copy",arrowed:!1,"data-clipboard-text":m?t:"",onClick:this.handleCopy,children:t}),(0,o.jsx)("div",{className:"panel-item-color-block-wrap "+(h?"panel-item-color-block-imageback-wrap":""),children:(0,o.jsx)("div",{className:"panel-item-color-block",style:{backgroundColor:a},onClick:this.handleClick})})]})]})}}const ek=e=>{if(e)return[m0(e,"rgba"),m0(e,"rgb"),m0(e,"argb"),m0(e,"hex")]},poe=e=>e.refVar?(0,o.jsx)(uoe,{content:I18N.Variable.title+": "+e.refVar,className:C()("var-tip-trigger",e.className),position:"bottom",children:(0,o.jsx)("span",{})}):null,uoe=(0,M.Ay)(Su.A).withConfig({displayName:"VarTip__StyledVarTip",componentId:"sc-1ua08hn-0"})(["&.Tooltip{display:flex;align-items:center;justify-content:center;margin-left:4px;height:18px;span{width:8px;height:8px;border:2px solid ",";cursor:pointer;border-radius:8px;&:hover{border-color:",";}}}"],e=>e.theme.color_text_disabled01,e=>e.theme.color_text_L3),tk=poe;class Tl extends l.PureComponent{constructor(t){super(t),(0,B.A)(this,"handleSelectTextContent",()=>{const{text:n}=this.props,a=roe();a&&n!==a&&this.setState({copyTextSelected:a})}),(0,B.A)(this,"handleClearSelectTextContent",()=>{this.setState({copyTextSelected:""})}),(0,B.A)(this,"handleCopy",()=>{B3("proto-inspect")}),this.state={copyTextSelected:""}}render(){const{color:t,colorUnit:n,dataValue:a,className:i,title:c,text:d,data:p,first:h,i18n:m,refVars:x,fontFace:v,titleWidth:A=62}=this.props,{copyTextSelected:k}=this.state,R=m0(t,"rgba"),F=m0(t,n),Z=a.length>0,G=a.length===4,ee=C()("panel",""+i,{"panel-item-text":!!d,"shadow-panel":G}),ce=Gf();return t?(0,o.jsx)(U3,{title:c,rgbaColor:R,stateColor:F,titleWidth:A}):(0,o.jsxs)("div",{className:ee,children:[(0,o.jsx)("label",{className:"title-label",style:{width:A},children:c}),d?(0,o.jsx)(Su.A,{arrowed:!1,className:"panel-item item-flex-1",content:{click:I18N.pInspect.copied},duration:1e3,onClick:this.handleCopy,children:(0,o.jsxs)("pre",{type:"text","data-placement":"top","data-type":"copy","data-clipboard-text":ce?(0,Rs.qk)(k||d):"",className:"panel-item-value text-content",onMouseUp:this.handleSelectTextContent,onMouseDown:this.handleClearSelectTextContent,children:[(0,o.jsx)("span",{style:{fontFamily:v},dangerouslySetInnerHTML:{__html:d.replace(/\n$/,"")}}),(0,o.jsx)(tk,{refVar:x[0],className:"text-var-tip"})]})}):(0,o.jsx)("div",{className:p.length<2?"single-panel-box":"mult-panel-box",children:(h?p.slice(0,1):p).map((se,he)=>(0,o.jsxs)(Su.A,{arrowed:!1,content:{click:I18N.pInspect.copied},duration:1e3,className:"panel-item","data-value":a[he],onClick:this.handleCopy,children:[(0,o.jsx)("span",{className:"prefix-label",children:a[he]}),(0,o.jsxs)("div",{"data-type":"copy","data-clipboard-text":ce?se:"",className:"panel-item-value "+(x!=null&&x[he]?"has-var":""),children:[m?I18N.pInspect[se]:se,(0,o.jsx)(tk,{refVar:x==null?void 0:x[he]})]})]},he))})]})}}(0,B.A)(Tl,"defaultProps",{dataValue:[],data:[]});const nk=(0,l.memo)(e=>{let{value:t,title:n}=e;return(0,o.jsx)("div",{className:C()("container")+" "+C()("layer-name"),children:(0,o.jsx)(Tl,{title:n||I18N.pInspect.layer_name,data:[t]})})}),hoe=e=>{let{colorUnit:t,backgroundColorSort:n}=e;return(0,o.jsxs)(Au,{children:[I18N.pInspect.fills,n.map((a,i)=>{let{value:c,type:d="color",opacity:p,gradient:h}=a;const m=c,x=m&&m0(m,t);return d==="color"?(0,o.jsx)(U3,{stateColor:x,rgbaColor:m,title:I18N.pInspect.color},i):(0,o.jsx)(ok,{gradient:h,colorUnit:t,opacity:p},i)})]})},ok=e=>{let{gradient:{color_stops:t=[],type:n},opacity:a,colorUnit:i}=e;return(0,o.jsxs)("div",{children:[t.length>0&&t.map((c,d)=>{let{color:p,position:h}=c;return(0,o.jsx)("div",{children:(0,o.jsx)(Tl,{colorUnit:i,color:p,title:d===0?I18N.pInspect.gradient:""})},""+p+d)}),a&&(0,o.jsx)(Tl,{title:I18N.pInspect.opacity,data:[a*100+"%"]}),n&&(0,o.jsx)(Tl,{data:[n],title:I18N.pInspect.type})]})},ak=e=>{let{shadows:t=[],isInnerShadows:n=!1,unit:a,ratio:i,colorUnit:c,textShadows:d=[],rpxRatio:p=1,refVars:h}=e;return(0,o.jsxs)(Au,{children:[n?I18N.pInspect.inner_shadow:I18N.pInspect.shadow,t.length>0&&(0,o.jsx)(rk,{shadows:t,unit:a,ratio:i,colorUnit:c,rpxRatio:p,refVars:h}),d.length>0&&(0,o.jsx)(rk,{shadows:d,unit:a,ratio:i,colorUnit:c,rpxRatio:p,refVars:h})]})},rk=(0,l.memo)(e=>{let{shadows:t,unit:n,ratio:a,colorUnit:i,rpxRatio:c=1,refVars:d}=e;return(0,o.jsx)(o.Fragment,{children:t.map((p,h)=>{var m;let{color:x,offset_x:v=0,offset_y:A=0,blur_radius:k=0,spread:R=0}=p;const F=vc(v,a,n,c),Z=vc(A,a,n,c),G=vc(k,a,n,c),ee=vc(R,a,n,c),ce=d==null||(m=d.shadows)==null?void 0:m[h];return(0,o.jsxs)("div",{className:"shadow-item-gap",children:[x&&(0,o.jsx)(Tl,{title:I18N.pInspect.color,titleWidth:30,color:x,colorUnit:i}),(0,o.jsxs)("div",{className:"col-2",children:[(0,o.jsx)(Tl,{title:I18N.pInspect._x,titleWidth:30,data:[F],refVars:[ce==null?void 0:ce.offsetX]}),(0,o.jsx)(Tl,{title:I18N.pInspect._y,titleWidth:30,data:[Z],refVars:[ce==null?void 0:ce.offsetY]})]}),(0,o.jsxs)("div",{className:"col-2",children:[(0,o.jsx)(Tl,{title:I18N.pInspect.blur,titleWidth:30,data:[G],refVars:[ce==null?void 0:ce.blurRadius]}),(0,o.jsx)(Tl,{title:I18N.pInspect.spread,titleWidth:30,data:[ee],refVars:[ce==null?void 0:ce.spreadRadius]})]})]},h)})})}),moe=(0,l.memo)(e=>{let{colorUnit:t,borderSort:n,unit:a,ratio:i,isStroke:c,rpxRatio:d=1,refVars:p}=e;return(0,o.jsxs)(Au,{children:[c?I18N.pInspect.stroke:I18N.pInspect.borders,n.reverse().map((h,m)=>{var x;let{position:v="inside",color:A,thickness:k,gradient:R}=h;const F=A,Z=k&&vc(k,i,a,d);return[A?(0,o.jsx)(Tl,{color:F,title:I18N.pInspect.color,colorUnit:t},""+m+F):(0,o.jsx)(ok,{gradient:R,colorUnit:t}),v&&(0,o.jsx)(Tl,{title:I18N.pInspect.position,data:[v]},""+m+v),Z&&(0,o.jsx)(Tl,{title:I18N.pInspect.thickness,data:[Z],refVars:[p==null||(x=p.borders)==null||(x=x[m])==null?void 0:x.bdrWidth]},""+m+Z)]})]})}),Au=e=>{let{children:t}=e;return(0,o.jsxs)("section",{children:[(0,o.jsx)("div",{className:C()("header"),children:t[0]}),(0,o.jsx)("div",{className:C()("container"),children:t.slice(1)})]})};var foe=s(55603),Nh=s.n(foe),goe=s(85657),yoe=s.n(goe),xoe=s(11817),voe=s.n(xoe),boe=s(73756),woe=s.n(boe),Coe=s(18102),Soe=s.n(Coe),Aoe=s(50918),koe=s.n(Aoe),Moe=s(95975),Eoe=s.n(Moe);Nh().registerLanguage("css",yoe()),Nh().registerLanguage("less",voe()),Nh().registerLanguage("scss",woe()),Nh().registerLanguage("stylus",Soe()),Nh().registerLanguage("swift",koe()),Nh().registerLanguage("xml",Eoe());const Ioe={css:"css",less:"less",sass:"scss",stylus:"stylus",swift:"swift",android:"xml"},_oe=[{value:"swift",label:"Swift"},{value:"android",label:"Android"},{value:"css",label:"CSS"},{value:"less",label:"Less"},{value:"sass",label:"Sass"},{value:"stylus",label:"Stylus"}];class Toe extends l.PureComponent{constructor(t){super(t),(0,B.A)(this,"highlight",()=>{this.hljsRef&&this.hljsRef.current.querySelectorAll("pre code").forEach(a=>{Nh().highlightBlock(a)})}),(0,B.A)(this,"updateLanguage",n=>{this.props.dispatch({type:"inspect:update:state",payload:{language:n}})}),(0,B.A)(this,"renderCode",n=>{const a={px:this.renderCss,dp:this.renderAndroidCode,pt:this.renderIos},i=qA(n);return a[i]()}),(0,B.A)(this,"renderIos",()=>{const{code:n,text:a}=this.props;return(0,o.jsx)(Loe,{code:n,text:a})}),(0,B.A)(this,"renderCss",()=>{const{code:n,language:a}=this.props;return(0,o.jsx)(Poe,{language:a,code:n})}),(0,B.A)(this,"renderAndroidCode",()=>{const{whichAndView:n,code:a,text:i}=this.props;return(0,o.jsx)(Noe,{code:a,text:i,whichAndView:n})}),this.hljsRef=l.createRef()}componentDidMount(){this.highlight()}componentDidUpdate(t){(t.code!==this.props.code||t.language!==this.props.language)&&this.highlight()}render(){const{language:t,theme:n}=this.props;return(0,o.jsxs)(Au,{children:[(0,o.jsxs)("div",{children:[(0,o.jsx)($A.Ay,{menuClassName:"CodeBoxSelectMenu",placeholder:" ",unstyled:!0,menuX:"center",optionList:_oe,value:t,onChange:this.updateLanguage}),(0,o.jsx)(doe,{text:"#code-content"})]}),(0,o.jsx)("div",{ref:this.hljsRef,className:C()("code-content",{"is-dark-theme":n==="dark"}),id:"code-content",children:(0,o.jsx)("pre",{children:this.renderCode(t)})})]})}}const Poe=e=>{let{language:t,code:n}=e;const a=joe(t),i=Doe(t),c=Boe(n);return(0,o.jsx)(o.Fragment,{children:Object.entries(c).map(d=>{let[p,h]=d;return(0,o.jsx)("code",{className:Ioe[t],children:""+p+i+h+a},p)})})},Loe=e=>{let{code:t,text:n}=e;const a=Roe({code:t,text:n});return(0,o.jsx)(o.Fragment,{children:a.map((i,c)=>(0,o.jsx)("code",{className:"swift",children:i},c))})},Noe=e=>{let{code:t,text:n,whichAndView:a}=e;return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("code",{className:"xml",children:"<"+a}),Object.entries(t).map(i=>{let[c,d]=i;return(0,o.jsx)("code",{className:"xml",children:"android:"+c+'="'+d+'"'},c)}),n.length>0&&(0,o.jsx)("div",{children:'android:text="'+n+'"'}),(0,o.jsx)("code",{className:"xml",children:"/>"})]})},joe=e=>{switch(e){case"stylus":case"sass":return"";default:return";"}},Doe=e=>{switch(e){case"stylus":return" ";default:return": "}},Roe=e=>{let{code:t,text:n}=e;const{width:a,height:i,x:c,y:d,fontFamily:p,cornerRadius:h,fontSize:m,opacity:x,"border-width":v,borderColor:A,alignment:k,background:R,backgroundColor:F}=t,Z=n?"textLayer":"layer",G=n?"UILabel":"UIView",ee=[];return ee.push("let "+Z+" = "+G+"(frame: CGRect(x: "+c+", y:"+d+", width: "+a+", height: "+i+"))"),R&&ee.push(Z+".background = "+R),F&&ee.push(Z+".backgroundColor = "+F),x&&ee.push(Z+".alpha = "+x),h&&ee.push("layer.layer.cornerRadius = "+h),v&&ee.push("layer.layer.borderWidth = "+v),A&&ee.push("layer.layer.borderColor = "+A+".cgColor"),n&&(ee.push('let textContent = "'+n+'"'),ee.push('let textString = NSMutableAttributedString(string: textContent, attributes: [\n NSAttributedStringKey.font: UIFont(name: "'+p+'", size: '+m+")!\n ])"),ee.push("let textRange = NSRange(location:0, length: textString.length)"),ee.push("let paragraphStyle = NSMutableParagraphStyle()"),ee.push("paragraphStyle.alignment = ."+k),ee.push("textString.addAttribute(NSAttributedStringKey.paragraphStyle, value: paragraphStyle, range: textRange)"),ee.push("textLayer.attributedText = textString")),ee},Boe=e=>{if(e["border-color"]&&e["border-width"]){const t={border:e["border-width"]+" solid "+e["border-color"]};return delete e["border-color"],delete e["border-width"],Object.assign(e,t)}return e},Uoe=e=>{let{adapterLeft:t,adapterTop:n,adapterWidth:a,adapterHeight:i,opacity:c,radius:d,rotate:p,mask:h,ignore_underlying_mask:m,refVars:x}=e;return(0,o.jsxs)(Au,{children:[I18N.pInspect.basic_attribute,t&&(0,o.jsx)(Tl,{title:I18N.pInspect.position,dataValue:[I18N.pInspect._x,I18N.pInspect._y],data:[t,n],titleWidth:30}),a&&(0,o.jsx)(Tl,{title:I18N.pInspect.size,dataValue:[I18N.pInspect._w,I18N.pInspect._h],data:[a,i],refVars:[x==null?void 0:x.w,x==null?void 0:x.h],titleWidth:30}),p&&(0,o.jsx)(Tl,{title:I18N.pInspect.rotation,data:[p],refVars:[x==null?void 0:x.r]}),d&&(0,o.jsx)(Ooe,{radius:d,refVars:x}),c&&(0,o.jsx)(Tl,{title:I18N.pInspect.opacity,data:[c],refVars:[x==null?void 0:x.opacity],titleWidth:30}),h&&(0,o.jsx)(Tl,{title:I18N.pInspect.mask,data:[h],i18n:!0,titleWidth:30}),m&&(0,o.jsx)(Tl,{title:I18N.pInspect.underlying_mask,data:["ignore_underlying_mask"],i18n:!0,titleWidth:30})]})},Ooe=e=>{let{radius:t,refVars:n}=e;if(!t)return null;const a=(t==null?void 0:t.split(" "))||[],i=a.length>1,c=[].concat((n==null?void 0:n.radius)||[]);if(i){const p=a[3],h=c[3];a[3]=a[2],a[2]=p,c[3]=c[2],c[2]=h}const d=i?[0,90,270,180].map(p=>(0,o.jsx)("span",{className:"prefix-radius-label",children:(0,o.jsx)(xc.C,{name:"design/br_single",size:10,style:{transform:"rotate("+p+"deg)"}})},p+"deg")):[(0,o.jsx)("span",{className:"prefix-radius-label",children:(0,o.jsx)(xc.C,{name:"design/br_single",size:10})},"radius")];return(0,o.jsx)(Tl,{title:I18N.pInspect.border_radius,dataValue:d,data:a,refVars:c,titleWidth:30,className:"radius-panel"})},Foe=(0,l.memo)(e=>{var t,n,a,i;let{textStyles:c,ratio:d,unit:p,text:h,colorUnit:m,hiddenSpacing:x,rpxRatio:v,refVars:A}=e;const{color:k,fontSize:R,fontFace:F,fontStyle:Z,horizontalAlign:G,verticalAlign:ee,paraSpacing:ce,letterSpacing:se,lineHeight:he,italic:ve}=c||{},Te=m0(k,"rgba"),xe=vc(R,d,p,v),Fe=m0(k,m),et=y8(he,d,p,v),Ke=y8(se,d,p,v),nt=Z||(typeof ve=="boolean"?ve?"italic":"normal":void 0);return(0,o.jsxs)(Au,{children:[I18N.pInspect.font,c&&(0,o.jsxs)("div",{children:[F&&(0,o.jsx)(Tl,{title:I18N.pInspect.type_face,data:[F]}),nt&&(0,o.jsx)(Tl,{title:I18N.pInspect.font_style,data:[nt]}),Te&&(0,o.jsx)(U3,{stateColor:Fe,title:I18N.pInspect.color,rgbaColor:Te}),(0,o.jsx)("div",{className:"row-divider"}),(0,o.jsxs)("div",{className:"col-2",children:[xe!==void 0&&(0,o.jsx)(Tl,{title:I18N.pInspect.font_size,titleWidth:30,data:[xe],refVars:[A==null||(t=A.textStyles)==null?void 0:t.fontSize]}),Ke!==void 0&&(0,o.jsx)(Tl,{title:I18N.pInspect.letter_spacing,titleWidth:42,data:[Ke||"auto"],refVars:[A==null||(n=A.textStyles)==null?void 0:n.letterSpacing]})]}),(0,o.jsxs)("div",{className:"col-2",children:[et!==void 0&&(0,o.jsx)(Tl,{title:I18N.pInspect.line_height,titleWidth:30,data:[et],refVars:[A==null||(a=A.textStyles)==null?void 0:a.lineHeight]}),ce!==void 0&&(0,o.jsx)(Tl,{title:I18N.pInspect.para_spacing,titleWidth:42,data:[ce],refVars:[A==null||(i=A.textStyles)==null?void 0:i.paraSpacing]})]})]}),G&&(0,o.jsxs)("div",{className:"col-2",children:[(0,o.jsx)(Tl,{title:I18N.pInspect.horizontal_align,titleWidth:30,data:[G]}),(0,o.jsx)(Tl,{title:I18N.pInspect.vertical_align,titleWidth:30,data:[ee||"auto"]})]}),h!==void 0&&(0,o.jsx)(Tl,{text:h,title:I18N.pInspect.content,titleWidth:"100%",refVars:[A==null?void 0:A.text],fontFace:F})]})});var Voe=s(35603);const zoe=()=>(0,o.jsx)("div",{children:"Error in GlobalAttributes"});class Woe extends l.PureComponent{constructor(){super(...arguments),(0,B.A)(this,"handleDelColor",t=>{const n=zf(t),a=Rne((n==null?void 0:n.hex)||n);this.props.dispatch({type:"inspect:update:state",payload:{usePickerColor:a}})}),(0,B.A)(this,"handleCopy",()=>{B3("proto-inspect")})}componentWillUnmount(){this.props.dispatch({type:"inspect:update:state",payload:{focusColor:""}})}componentDidCatch(t,n){return console.error(t,n),(0,o.jsx)(zoe,{})}render(){const{screenName:t,rgbaColor:n,stateColor:a,userPickColor:i=[],colorUnit:c,focusColor:d}=this.props,p=Gf();return(0,o.jsxs)("div",{className:C()("global-attributes"),children:[(0,o.jsx)(nk,{title:I18N.pInspect.screen_name,value:t}),(0,o.jsxs)(Au,{children:[I18N.pInspect.basic_attribute,(0,o.jsx)(U3,{title:I18N.pInspect.backgroundColor,rgbaColor:n,stateColor:a})]}),(0,o.jsxs)(Au,{children:[I18N.pInspect.color_title,(0,o.jsx)(Hoe,{trackId:I18N.pInspect.pick_color,title:I18N.pInspect.pick_color,handleDelColor:this.handleDelColor,colorBlockMap:i,focusColor:d,colorUnit:c,canDel:!0,isSignIn:p,onCopy:this.handleCopy})]})]})}}const Hoe=e=>{let{trackId:t,title:n,colorBlockMap:a,handleDelColor:i,canDel:c,colorUnit:d,focusColor:p,isSignIn:h,onCopy:m}=e;return(0,o.jsxs)("div",{children:[(0,o.jsx)("span",{className:"second-title",children:n}),(0,o.jsx)("div",{className:"panel-row",children:a.length?a.map((x,v)=>{const A=m0(x,"rgba"),k=m0(A,d);return(0,o.jsx)(Goe,{canDel:c,trackId:t,handleDelColor:i,color:k,rgbaColor:A,colorUnit:d,focusColor:p,isSignIn:h,onCopy:m},""+v+x)}):(0,o.jsx)(Zoe,{})})]})},Goe=e=>{let{color:t,rgbaColor:n,colorUnit:a,handleDelColor:i,canDel:c,trackId:d,focusColor:p,isSignIn:h,onCopy:m}=e;const x=t===m0(p,a);return(0,o.jsx)(o.Fragment,{children:h?(0,o.jsx)(Voe.A,{shouldOpenOnHover:!0,className:C()("color-dropdown",{"is-focus":x}),opener:(0,o.jsx)(Su.A,{arrowed:!1,"data-type":"copy","data-track-id":d,"data-clipboard-text":t,duration:1e3,content:{click:I18N.pInspect.copied},children:(0,o.jsx)("span",{className:"row-item color-block",style:{background:n,display:"block"},onClick:m})}),inflexible:!0,arrowed:!0,menuX:"left",menuY:"top",menu:(0,o.jsx)(Koe,{color:t,rgbaColor:n,canDel:c,handleDelColor:i}),menuClassName:(0,Fs.Hn)(["palette-dropdown-menu",a])}):(0,o.jsx)(Su.A,{arrowed:!1,duration:1e3,children:(0,o.jsx)("span",{className:"row-item color-block row-margin",style:{background:n,display:"block"},onClick:m})})})},Zoe=()=>(0,o.jsx)("div",{className:"forbid-color",children:(0,o.jsx)("div",{className:"transparent"})});class Koe extends l.PureComponent{constructor(){super(...arguments),(0,B.A)(this,"handleClick",()=>{const{rgbaColor:t,handleDelColor:n}=this.props;n(t)})}render(){const{color:t,canDel:n}=this.props;return(0,o.jsxs)("div",{children:[(0,o.jsx)("span",{children:t}),n&&(0,o.jsx)(xc.C,{name:"new_replace/trash",className:"trash",onClick:this.handleClick})]})}}const Yoe=e=>{let{theme:t,layer:n,unit:a,ratio:i,showGlobal:c,language:d,colorUnit:p,currPageName:h,currPageBgColor:m,usePickerColor:x,focusColor:v,rpxRatio:A,dispatch:k}=e;if(c){const oi=m0(m,"rgba"),js=m0(m,p);return(0,o.jsx)(Woe,{rgbaColor:oi,stateColor:js,colorUnit:p,screenName:h,userPickColor:x,focusColor:v,dispatch:k})}const{left:R,top:F,width:Z,height:G,o:ee,bdRadius:ce,bgColors:se=[],borders:he=[],hiddenSpacing:ve=!1,displayName:Te,textStyles:xe=null,inspectText:Fe,image:et,shadows:Ke=[],inner_shadows:Qe=[],rotation:nt,textShadows:Xe=[],mask:lt=null,ignore_underlying_mask:Ct=!1,refVars:St}=n,hn=he.length>0,Cn=se.length>0,Mt=!!et,Et=xe&&Fe&&!!f8(Fe).length,Co=Ke.length>0||Xe.length>0,Pn=Qe.length>0,ro={left:Math.round(R),top:Math.round(F),width:Math.round(Z),height:Math.round(G),borderRadius:ce,opacity:ee,rotation:nt,ratio:i,unit:a,rpxRatio:A},Io=n.name==="line"||n.name==="arrow",{adapterTop:mo,adapterLeft:So,adapterWidth:ho,adapterHeight:No,radius:Xo,opacity:Ta,rotate:Da}=$ne(ro),Wa=eoe({textStyles:xe,background:se,borders:he,shadows:Ke,innerShadows:Qe,colorUnit:p,ratio:i,unit:a,language:d,rpxRatio:A}),Dr=ee&&ee!==100?ee/100:null,Wr=qne({attr:{x:So,y:mo,width:ho,height:No,opacity:Dr,borderRadius:Xo,...Wa},language:d,unit:a}),hi=Mt?"ImageView":Et?"TextView":"View",Sr=Te;return(0,o.jsxs)("div",{children:[(0,o.jsx)(nk,{value:Sr}),(0,o.jsx)(Uoe,{adapterTop:mo,adapterLeft:So,adapterWidth:ho,adapterHeight:No,rotate:Da,radius:Xo,opacity:Ta,mask:lt,refVars:St,ignore_underlying_mask:Ct}),Et&&(0,o.jsx)(Foe,{textStyles:xe,ratio:i,unit:a,colorUnit:p,text:f8(Fe),hiddenSpacing:ve,rpxRatio:A,refVars:St}),Cn&&(0,o.jsx)(hoe,{backgroundColorSort:se,colorUnit:p}),hn&&(0,o.jsx)(moe,{isStroke:Io,borderSort:he,ratio:i,unit:a,colorUnit:p,rpxRatio:A,refVars:St}),Co&&(0,o.jsx)(ak,{shadows:Ke,textShadows:Xe,colorUnit:p,unit:a,ratio:i,rpxRatio:A,refVars:St}),Pn&&(0,o.jsx)(ak,{shadows:Qe,colorUnit:p,unit:a,ratio:i,isInnerShadows:!0,refVars:St}),(0,o.jsx)(Toe,{theme:t,code:Wr,whichAndView:hi,language:d,text:f8(Fe),dispatch:k})]})},Xoe=M.Ay.div.withConfig({displayName:"styles__StyledLayerPanel",componentId:"sc-wu10f9-0"})(["display:flex;flex-direction:column;position:relative;flex:1;width:260px;height:100%;font-size:12px;background-color:",";transition:left 0.5s ease-in-out;color:",";overflow-x:hidden;overflow-y:auto;.layerInfo{position:relative;width:inherit;height:100%;overflow-x:hidden;overflow-y:auto;flex:1;& > div{width:inherit;}.Select{color:",";}.global-attributes{.color-dropdown{button{border-radius:2px;transition:box-shadow 0.5s;background-image:linear-gradient(45deg,#ccc 25%,transparent 0),linear-gradient(-45deg,#ccc 25%,transparent 0),linear-gradient(45deg,transparent 75%,#ccc 0),linear-gradient(-45deg,transparent 75%,#ccc 0);background-size:10px 10px;background-position:0 0,0 5px,5px -5px,-5px 0;background-clip:padding-box;overflow:hidden;}&.is-focus{button{box-shadow:0 0 0 2px #1e98ea;}}}}.layer-name{.panel-item-value{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:center;}}.panelAction{border-bottom:1px solid ",";padding:20px;width:100%;.panelMoreStateButton{text-align:center;cursor:pointer;.name{display:inline-block;width:100%;height:32px;line-height:32px;border:1px solid #1684FC;border-radius:4px;color:#1684FC;&.exit{background-color:#1684FC;color:#ffffff;}}}.panelstate{display:flex;align-items:center;margin-top:16px;.left-label{margin-right:38px;color:#5B6B73;}.right-content{label.panelstate-select{width:158px;}}}}.header{line-height:32px;height:32px;font-size:12px;color:",";background:",";font-weight:bold;padding:0 20px;}.col-2{display:flex;.panel{flex:1;&:first-child{margin-right:8px;}.panel-item-value{flex:1;width:auto;}}}.panel{display:flex;height:22px;line-height:22px;margin-bottom:18px;position:unset;.title-label{flex-shrink:0;color:",";}&.panel-item-text{flex-wrap:wrap;height:auto;.panel-item{margin:4px -4px 0;.text-content{display:block;}.text-var-tip{display:inline-flex;}}}&.panel-bottom-8{margin-bottom:8px;}&.shadow-panel{&::before{width:0 !important;}.panel-item{width:50px !important;}}&.radius-panel{height:auto;margin-bottom:0;.mult-panel-box{flex-wrap:wrap;.panel-item{width:calc(50% - 5px) !important;flex-basis:calc(50% - 5px) !important;margin-bottom:18px;&:nth-child(even){margin-right:0;}}}.prefix-radius-label{width:22px;height:22px;display:flex;align-items:center;justify-content:center;svg{color:",";path{fill:none;}}}}.mult-panel-box{width:151px;display:flex;justify-content:space-between;flex:1;.panel-item{.prefix-label{width:24px;text-align:center;color:",";}}}.single-panel-box{display:flex;flex:1;.panel-item{width:100%;}}.panel-item{flex:1;text-align:center;background:",";border-radius:2px;border:1px solid ",";cursor:pointer;margin-right:10px;&:last-child{margin-right:0;}&.panel-item-color{position:relative;display:flex;justify-content:flex-start;width:138px;.panel-item-value{text-align:left;width:138px;}}&.item-flex-1{flex:1;height:auto;}.panel-item-value{line-height:22px;user-select:text;display:flex;align-items:center;padding:0 4px;&.has-var{justify-content:space-between;flex:1;}&.text-content{flex:1;padding:0.25em 0.5em;height:64px;line-height:1.5;word-wrap:break-word;overflow-x:hidden;overflow-y:scroll;text-align:left;white-space:pre-wrap;}.split-value{display:flex;align-items:center;justify-content:space-between;margin:0 4px;&:hover > .var-tip-trigger{visibility:visible;}}.var-tip-trigger{visibility:hidden;}&:hover > .var-tip-trigger{visibility:visible;}}.panel-item-color-block-wrap{position:absolute;right:1px;top:1px;border:inset 1px rgba(0,0,0,0.2);border-radius:2px;cursor:pointer;width:18px;height:18px;}.panel-item-color-block-imageback-wrap{background-image:linear-gradient(45deg,#ccc 25%,transparent 0),linear-gradient(-45deg,#ccc 25%,transparent 0),linear-gradient(45deg,transparent 75%,#ccc 0),linear-gradient(-45deg,transparent 75%,#ccc 0);background-size:12px 12px;background-position:-1px -1px,-1px 5px,5px -7px,-7px -1px;}.panel-item-color-block{height:100%;}}}.row-divider{border-top:1px solid ",";margin-bottom:12px;}.container{padding:20px 20px 12px;min-width:230px;&.global-layer{padding-top:0;height:60px;}.second-title{display:flex;margin-bottom:10px;color:",";}.code-content{position:relative;width:100%;overflow:hidden;color:",";font-size:12px;font-family:Menlo,Courier,monospace;line-height:22px;&.is-dark-theme{pre code{color:",";background:",";span{color:inherit;}}}pre{white-space:pre-wrap;}*{user-select:text;font-weight:normal;overflow:hidden;}}.text-content{flex:1;line-height:18px;word-wrap:break-word;}.global-font{line-height:22px;&::before{min-width:0 !important;}.panel-item-value{max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}}.panel-item{display:flex;align-items:center;}.panel-row{display:flex;flex-wrap:wrap;.Dropdown{margin:0 6px 6px 0;cursor:pointer;}.row-item.color-block{border:inset 1px rgba(0,0,0,0.2);width:18px;height:18px;border-radius:2px;&.row-margin{margin:0 6px 6px 0;cursor:pointer;}}}.panel-image{width:100%;height:50px;background-image:svg-load('./background.svg');object-fit:contain;}.image-download{justify-content:space-between;align-items:center;& a{height:19px;font-size:19px;color:#f55d54;}}.download-file-type{display:flex;align-items:center;}.download-file-type-icon{display:inline-block;text-align:center;color:#f55d54;border:1px solid currentColor;width:30px;height:19px;line-height:17px;vertical-align:middle;margin-right:9px;}}.shadow-item-gap{padding-bottom:20px;&:last-child{padding-bottom:0;}}.forbid-color{position:relative;width:18px;height:18px;border:1px solid #d9d9d9;margin-bottom:8px;background:#fff;cursor:not-allowed;overflow:hidden;.transparent{width:200%;position:absolute;left:0;top:0;border-top:1px solid #eb5648;transform:translateY(-50%) rotate(45deg);transform-origin:0 0;}}.slice-title{display:flex;justify-content:space-between;align-items:center;& > span{cursor:pointer;color:var(--copy-btn-color);}}.slice-panel{height:40px;display:flex;justify-content:flex-start;align-items:center;}.slice-item-wrap{min-width:40px;height:40px;border:1px solid #B7BBC1;border-radius:2px;display:flex;align-items:center;justify-content:center;overflow:hidden;& > img{box-shadow:rgba(25,39,45,0.4) 0 1px 4px;}}.slice-item-name{margin-left:8px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}.slice-panel-item{height:24px;line-height:24px;margin-bottom:8px;text-indent:8px;color:#415058;background:#F6F7F8;border:1px solid #F2F2F2;border-radius:2px;}.copyBtn{cursor:pointer;float:right;color:",";&:focus{outline:0;}}@keyframes rotate-infinite{from{transform:rotate(0);}to{transform:rotate(720deg);}}}&.is-loading{justify-content:center;align-items:center;.layer-panel-loading{width:60px;height:60px;}}"],e=>e.theme.color_background_white,e=>e.theme.color_text_L1,e=>e.theme.color_text_L2,e=>e.theme.color_background_icon_active,e=>e.theme.color_text_L2,e=>e.theme.color_background,e=>e.theme.color_text_L2,e=>e.theme.color_text_L3,e=>e.theme.color_text_L3,e=>e.theme.color_background,e=>e.theme.color_background_icon_hover,e=>e.theme.color_bg_card,e=>e.theme.color_text_L2,e=>e.theme.color_text_L2,e=>e.theme.color_text_L2,e=>e.theme.color_background,e=>e.theme.color_primary_proto01),Qoe=(0,M.DU)(["#IBOT_DROPDOWN_MENU_ROOT{.palette-dropdown-menu{color:#415058;width:auto;&.hex,&.argb{text-transform:uppercase;}.arrow{svg path{fill:",";}}.content{opacity:0.9;background-color:",";& > div{display:flex;justify-content:space-between;align-items:center;> span{display:block;width:-moz-max-content;width:-webkit-max-content;width:max-content;}}}.trash{margin-left:.5em;font-size:14px;color:#C8CDD0;cursor:pointer;}}}.textEllipsis{text-overflow:ellipsis;overflow:hidden;white-space:nowrap;}#IBOT_SELECT_MENU_ROOT{ul.CodeBoxSelectMenu{background-color:",";width:100%;padding:0 0.5em;font-size:12px;min-width:7em;.SelectOption{color:",";justify-content:center;margin:0.5em 0;border-radius:2px;&:not(.is-active):hover{color:",";background-color:",";}&.is-active{color:",";background-color:",";}}}}"],e=>e.theme.color_background_white,e=>e.theme.color_background_white,e=>e.theme.color_background_white,e=>e.theme.color_text_L2,e=>e.theme.color_primary_proto01,e=>e.theme.color_background,e=>e.theme.color_primary_proto01,e=>e.theme.color_background),Joe=e=>{const{state:{unit:t,ratio:n,language:a,colorUnit:i,usePickerColor:c,focusColor:d},dispatch:p}=F3(),{sdk:h,theme:m,selectedWidgetInfo:x,currPageKey:v,getWidgetInspectStyles:A,getWidgetInspectRefVars:k}=e,R=!x,F=(0,l.useRef)(null);(0,l.useEffect)(()=>(F.current=new(d8())('[data-type="copy"]'),()=>{F.current.destroy()}));let Z=null;if(x!=null&&x.key){let ve=L1()(h.getHotItem(x.key).hotAttr);if(ve.type!=="rResCanvas"&&(ve={...ve,...h.getRelocateLocalBound(x.key,h.locUpColdCanvasKey(x.key)||h.locUpRBPageKey(x.key))}),x.extra){const{extra:{x:Te,y:xe}}=x;Z=One(ve,"none",{x:Te,y:xe},A,k)}else Z=c8(ve,"none",A,k)}const{name:G="",fill:ee={},deviceW:ce}=h.getHotItem(v).hotAttr||{},se=ee?(0,ul.t0)(ee.solidColor):"",he=zA(ce);return(0,o.jsxs)(Xoe,{className:R?"is-loading":"",children:[(0,o.jsx)("div",{className:"layerInfo",children:(0,o.jsx)(Yoe,{layer:Z,unit:t,ratio:n,language:a,colorUnit:i,currPageName:G,currPageBgColor:se,usePickerColor:c,focusColor:d,showGlobal:!Z,theme:m,rpxRatio:he,dispatch:p})}),(0,o.jsx)(Qoe,{})]})};var qoe=s(70768),x8=s(91752);const $oe=M.Ay.label.withConfig({displayName:"styled__StyledInputLabel",componentId:"sc-54bl9a-0"})(["&.Textarea,&.CoreTextarea,&.Input,&.CoreInput{display:inline-block;color:#415058;input,textarea{font-size:inherit;color:inherit;&:disabled{opacity:0.5;cursor:not-allowed;}&[readonly]{color:#8d9ea7;}&:focus{outline:0;}&::placeholder{color:#8d9ea7;}}}&.is-invalid input,&.is-invalid textarea,& input:not([type=email]):invalid,& textarea:invalid{border-color:#ff6161 !important;box-shadow:0 0 6px 0 rgba(#ff6161,.5) !important;}&:not(.unstyled){input,textarea{background-color:#f6f7f8;border:1px solid #f2f2f3;border-radius:2px;caret-color:#298df8;transition:0.2s ease-out;transition-property:background,border,box-shadow,opacity;&:enabled:not([readonly]){:hover{border-color:#298df8;}:focus{background-color:#fff;border-color:#298df8;box-shadow:0 0 6px 0 rgba(41,141,248,.5);}}}}&.is-readonly{color:#8d9ea7;}&.Input,&.CoreInput{&.regular{height:34px;font-size:14px;}&.small{height:22px;font-size:12px;}input{padding:0 .5em;width:100%;height:100%;}}&.Textarea,&.CoreTextarea{&.regular{font-size:14px;}&.small{font-size:12px;}textarea{padding:.5em;width:100%;min-height:5em;max-height:10em;resize:vertical;&:disabled,&[readonly]{resize:none;}}}&.CoreInput:not(.unstyled) input,&.CoreTextarea:not(.unstyled) textarea{background-color:#fff;border-color:#c8cdd1;}&.InputEmail,&.CoreInputEmail{&:not(.unstyled).isnt-valid input{box-shadow:0 0 6px 0 rgba(255,97,97,.5) !important;border-color:#ff6161 !important;}}"]),eae=(0,M.Ay)($oe).withConfig({displayName:"styled__StyledInputNumber",componentId:"sc-54bl9a-1"})(["&.InputNumber,&.CoreInputNumber{position:relative;display:inline-block;min-width:2em;font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;&:not(.unstyled).is-active input{background-color:#fff;border-color:#298df8;box-shadow:0 0 6px 0 rgba(41,141,248,.5);}&:not(.unstyled).isnt-valid input{border-color:#ff6161 !important;box-shadow:0 0 6px 0 rgba(255,97,97,.5) !important;}&.is-disabled{cursor:not-allowed;> *{opacity:0.5;}}&.is-disabled,&.is-readonly{.action{visibility:hidden;}}input{padding-right:1.5em;padding-left:.5em;font-family:inherit;}&.regular input{padding-right:2em;}}&:not(.is-disabled):hover input:not([readonly]),input:not([readonly]):focus{& ~ .action{opacity:1;transition:all 0.2s ease-out;}}.action{position:absolute;top:0;right:0;width:1.5em;height:100%;text-align:center;&:not(.caret){opacity:0;}svg{height:4px;fill:currentColor;fill-rule:evenodd;}&.caret{button{height:100%;}svg{transition:transform 0.2s ease-out;}/.InputNumber.is-menu-open .caret svg{transform:rotate(180deg);}}button{display:block;margin:0;padding:0;width:100%;height:50%;line-height:0;color:#8d9ea7;transition:all 0.1s ease-out;&:hover{color:#5b6b73;}&:active{color:#298df8;}&[data-action=up] svg{margin:5px 0 2px;}&[data-action=down] svg{margin:2px 0 5px;}}}&.regular .action{top:50%;transform:translateY(-50%);width:2em;height:28px;}&.with-desc{margin-top:6px;margin-bottom:1.5em;}.title,.desc,.prefix,.suffix{position:absolute;top:0;left:0;display:flex;align-items:center;height:100%;pointer-events:none;user-select:none;border:1px solid transparent;}&.is-empty{.prefix,.suffix{opacity:0.3;}}.title{margin-left:.5em;color:#8d9ea7;}.desc{top:100%;width:100%;height:1.5em;line-height:1.5;justify-content:center;color:#8d9ea7;}.prefix{margin-left:.5em;}.suffix{padding-left:.5em;padding-right:1.625em;width:100%;&:before{content:attr(data-value);display:inline-block;margin-right:0.125em;width:-moz-fit-content;width:-webkit-fit-content;width:fit-content;overflow:hidden;opacity:0;}}"]);function Fc(e,t,n){return(t=tae(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tae(e){var t=nae(e,"string");return typeof t=="symbol"?t:t+""}function nae(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var a=n.call(e,t||"default");if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}const oae=500,aae=30,rae=1e3,iae=(e,t)=>Number(Number(e).toFixed(t)),ik=function(e,t){let{shiftKey:n,metaKey:a}=e;return t===void 0&&(t=1),n?t*10:a?t*100:t},sae=e=>e===""||/^0?[+-]0*$/.test(e)||/^[+-]?\d*\.$/.test(e),lae=e=>{let{currentTarget:t}=e;return setTimeout(()=>t.select(),50)};class v8 extends l.PureComponent{constructor(){super(...arguments),Fc(this,"state",{prevProps:this.props,value:(0,Fs.Fd)(this.props.value),isActive:!1,isValid:!0,isMenuOpen:!1}),Fc(this,"onChange",t=>{const{target:{value:n}}=t;this.setValue(n.trim(),t)}),Fc(this,"correctNumber",t=>{const{min:n,max:a,precision:i}=this.props;return iae(Math.min(Math.max(t,n),a),i)}),Fc(this,"checkValidity",t=>t===""||isFinite(t)&&this.correctNumber(t)===Number(t)),Fc(this,"setValue",(t,n)=>{n.persist(),clearTimeout(this.correctionTimeout);const{value:a,parser:i,placeholder:c,onChange:d}=this.props,p=i(t.toString()).toString(),h=t!=="0"&&!p&&!!c,m=this.checkValidity(p),x=t!==""&&isFinite(p),v=sae(p);if(!x&&!v)return;const A=this.correctNumber(p),k=isNaN(A)?a:A,R=h?"":v||!m?p:k;this.setState({value:R,isValid:m}),m?d(R,n):Object.assign(this,{correctionTimeout:setTimeout(()=>this.state.value===R&&this.setState({value:k,isValid:!0},d(k,n)),rae)})}),Fc(this,"focusOnInput",t=>{try{const n=t.currentTarget.closest("label").querySelector("input");setTimeout(()=>n.focus())}catch(n){console.error(n)}}),Fc(this,"onStep",t=>{t.persist(),t.nativeEvent.stopPropagation();const{action:n}=t.currentTarget.dataset,a=ik(t,this.props.step)*(n==="up"?1:-1);this.setValue(this.correctNumber(Number(this.state.value)+a),t),this.focusOnInput(t),Object.assign(this,{longPressedTimeout:setTimeout(()=>Object.assign(this,{steppingInterval:setInterval(()=>this.setValue(this.correctNumber(Number(this.state.value)+a),t),aae)}),oae)})}),Fc(this,"onRelease",()=>{clearTimeout(this.longPressedTimeout),clearInterval(this.steppingInterval)}),Fc(this,"onKeyDown",t=>{const n=t.key==="ArrowUp"?"up":t.key==="ArrowDown"?"down":null;if(t.key==="Enter"&&this.props.isEnterBlur){var a;this.setInactive(),(a=this.$label)==null||(a=a.querySelector("input"))==null||a.blur();return}if(!n)return;t.persist(),t.nativeEvent.preventDefault();const i=ik(t,this.props.step)*(n==="up"?1:-1);this.setValue(this.correctNumber(Number(this.state.value)+i),t)}),Fc(this,"set$label",t=>Object.assign(this,{$label:t})),Fc(this,"setActive",()=>this.setState({isActive:!0})),Fc(this,"setInactive",()=>this.setState({isActive:!1})),Fc(this,"toggleMenu",()=>this.setState({isMenuOpen:!this.state.isMenuOpen})),Fc(this,"closeMenu",()=>this.setState({isMenuOpen:!1})),Fc(this,"onSelect",t=>{t.persist();const{currentTarget:n}=t;this.setValue(n.dataset.value,t),this.closeMenu()}),Fc(this,"onClickOutside",t=>{let{target:n}=t;n.closest("label")&&this.$label.contains(n)||this.setInactive()}),Fc(this,"onBlur",t=>{const{valueForEmptyInput:n,onBlur:a}=this.props,{value:i}=this.state;a(t),!i&&Yy()(n)&&this.setValue(n,t)})}static getDerivedStateFromProps(t,n){let{prevProps:a,value:i}=n;if(!Vo()(a,t)){const{value:c}=t;return{prevProps:t,value:(0,Fs.Fd)(c)}}return null}componentDidMount(){const{$label:t}=this,{value:n,title:a,prefix:i,suffix:c}=this.props,d=this.checkValidity(n);if(this.setState({isValid:d}),!a&&!i&&!c)return;const p=t.querySelector("input"),h=t.querySelector(".action"),m=t.querySelector(".title"),x=t.querySelector(".prefix"),v=t.querySelector(".suffix span"),A=parseInt(getComputedStyle(p).getPropertyValue("padding-left"));if(a||i){const R={paddingLeft:(m?m.clientWidth+6:0)+(x?x.clientWidth:0)+A+"px"};Object.assign(p.style,R),a&&i&&Object.assign(x.style,{left:m.clientWidth+6+"px"}),c&&Object.assign(v.parentNode.style,R)}if(c){const k=h.clientWidth+v.clientWidth;Object.assign(p.style,{paddingRight:k+"px"})}}render(){const{className:t,size:n,theme:a,unstyled:i,readOnly:c,placeholder:d,prefix:p,suffix:h,title:m,desc:x,formatter:v,dontSelectOnFocus:A,onFocus:k=A?void 0:lae,optionList:R,menuX:F}=this.props,{value:Z,isActive:G,isValid:ee,isMenuOpen:ce}=this.state,se=Z==="",he=this.props.isDisabled||this.props.disabled,ve=(0,Fs.Hn)([a==="core"?"CoreInput CoreInputNumber":"Input InputNumber",n,i&&"unstyled",t,G&&!he&&!c&&"is-active",ce&&"is-menu-open",he&&"is-disabled",c&&"is-readonly",ee?"is-valid":"isnt-valid",se?"is-empty":"isnt-empty",!!m&&"with-title",!!x&&"with-desc",!!p&&"with-prefix",!!h&&"with-suffix"]),Te=R&&R.length>0;return(0,o.jsxs)(eae,{className:ve,ref:this.set$label,onMouseDown:this.setActive,children:[m&&(0,o.jsx)("span",{className:"title",children:m}),x&&(0,o.jsx)("span",{className:"desc",children:x}),p&&(0,o.jsx)("span",{className:"prefix",children:p}),(0,o.jsx)("input",{type:"text",value:v(Z),placeholder:d,disabled:he,readOnly:c,onChange:this.onChange,onKeyDown:this.onKeyDown,onFocus:k,onBlur:this.onBlur,...(0,Fs.vq)(this.constructor,this.props)}),h&&(0,o.jsx)("span",{className:"suffix","data-value":v(Z),"data-suffix":h,children:(0,o.jsx)("span",{children:h})}),(0,o.jsx)(sk,{hasMenu:Te,onToggleMenu:this.toggleMenu,onStep:this.onStep,onRelease:this.onRelease}),Te&&(0,o.jsx)($A.eB,{isOpen:ce,menuClassName:"SelectNumberMenu",$select:this.$label,optionList:R,value:Z,menuX:F,onChange:this.onSelect,onClose:this.closeMenu}),(G||ce)&&(0,o.jsx)(Ls.A,{target:document,onClick:this.onClickOutside})]})}}Fc(v8,"propTypes",{size:ya().oneOf(["regular","small"]),theme:ya().oneOf(["core","plain"]),unstyled:ya().bool,step:ya().number,precision:ya().number,formatter:ya().func,parser:ya().func,value:ya().oneOfType([ya().string,ya().number]),valueForEmptyInput:ya().oneOfType([ya().string,ya().number]),placeholder:ya().oneOfType([ya().string,ya().number]),optionList:ya().arrayOf(ya().oneOfType([ya().string,ya().number])),menuX:ya().oneOf(["left","center"]),dontSelectOnFocus:ya().bool,title:ya().node,desc:ya().node,prefix:ya().node,suffix:ya().node,min:ya().number,max:ya().number,isDisabled:ya().bool,disabled:ya().bool,readOnly:ya().bool,onChange:ya().func.isRequired,onFocus:ya().func,onBlur:ya().func,className:ya().string}),Fc(v8,"defaultProps",{size:"regular",theme:"plain",unstyled:!1,value:"",valueForEmptyInput:null,placeholder:"",step:1,precision:1,parser:e=>e,formatter:e=>e,min:0,max:1/0,isDisabled:!1,disabled:!1,readOnly:!1,isEnterBlur:!1,onChange:()=>null,onBlur:()=>null});class sk extends l.PureComponent{render(){const{hasMenu:t,onToggleMenu:n,onStep:a,onRelease:i}=this.props;return(0,o.jsx)(l.Fragment,{children:t?(0,o.jsx)("div",{className:"action caret",children:(0,o.jsx)(x8.Ay,{type:"text",tabIndex:"-1",onClick:n,children:(0,o.jsx)(ta.A,{name:"triangle_down"})})}):(0,o.jsxs)("div",{className:"action",children:[(0,o.jsx)(x8.Ay,{type:"text",tabIndex:"-1","data-action":"up",onMouseDown:a,onMouseLeave:i,onMouseUp:i,children:(0,o.jsx)(ta.A,{name:"triangle_up"})}),(0,o.jsx)(x8.Ay,{type:"text",tabIndex:"-1","data-action":"down",onMouseDown:a,onMouseLeave:i,onMouseUp:i,children:(0,o.jsx)(ta.A,{name:"triangle_down"})})]})})}}Fc(sk,"propTypes",{hasMenu:ya().bool,onStep:ya().func,onToggleMenu:ya().func,onRelease:ya().func});var lk=s(66633);const cae=(0,M.Ay)(ev.Ay).withConfig({displayName:"styled__StyledWorkspaceSelectProto",componentId:"sc-1443prg-0"})(["&.WorkspaceSelect{padding:0px;border-radius:4px;button{width:auto;display:flex;padding:0 6px;align-items:center;color:",";}.caret{flex-shrink:0;width:8px;display:flex;justify-content:center;align-items:center;padding:0;color:",";svg{width:8px;height:8px;}}&:not(.is-disabled):not(.readonly):hover{border-color:",";button{width:calc(100% - 26px);}.caret{padding:0;color:",";}}&.is-open{border-color:transparent;}}"],e=>e.theme.color_text_L1,e=>e.theme.color_text_L3,e=>e.theme.color_bg_border_02,e=>e.theme.color_text_L1),ck="select-menu-width-108",xce=(0,M.DU)(["#IBOT_SELECT_MENU_ROOT{.SelectMenuPortal{.menu-animation-select{margin-left:-15px;}.WorkspaceSelectMenu.is-open{border:1px solid #454647;box-shadow:0 3px 6px -4px rgba(0,0,0,0.12),0 6px 16px rgba(0,0,0,0.08),0 9px 28px 8px rgba(0,0,0,0.05);.SelectOption{&:not(.empty-msg):not(.is-disabled):hover{background:#666;}}}}.autoFillPanelSelectScreenMenu{margin-left:-138px;margin-top:26px;width:175px;}.bdr-width-input-menu{width:88px;}.arrow-setting-menu{width:78px;}.","{width:108px;}}"],ck),dae=(0,M.DU)(["#IBOT_SELECT_MENU_ROOT{.SelectMenuPortal{.menu-animation-select{margin-left:-15px;}.WorkspaceSelectMenu{padding:8px;border-radius:8px;color:",";background:",";box-shadow:",";&.is-open{border:1px solid ",";border-radius:8px;width:176px;max-width:176px;padding:8px;background-color:",";box-shadow:",";.SelectOption{&:not(.empty-msg):not(.is-disabled):hover{background:",";}}}> .divider{border-bottom:1px solid ",";margin:5px;}.SelectOption{border-radius:4px;&.is-active{color:",";}&:not(.empty-msg):not(.is-disabled):not(.is-active):hover{background-color:",";color:",";}}}}.autoFillPanelSelectScreenMenu{margin-left:-138px;margin-top:26px;width:175px;}.bdr-width-input-menu{width:88px;}.arrow-setting-menu{width:78px;}.","{width:108px;}}"],e=>e.theme.color_text_L0,e=>e.theme.color_bg_white,e=>e.theme.shadow_m,e=>e.theme.color_bg_border_01,e=>e.theme.color_bg_white,e=>e.theme.shadow_m,e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_bg_border_01,e=>e.theme.color_text_L0,e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_text_L0,ck);class O3 extends l.PureComponent{render(){return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(cae,{...this.props,arrowSvg:(0,o.jsx)(xc.C,{className:"triangle-icon",name:"common/expand"})}),(0,o.jsx)(dae,{})]})}}var pae=s(46082);const uae=M.Ay.div.withConfig({displayName:"styles__StyledLayerBorder",componentId:"sc-1h0nsie-0"})(["position:absolute;pointer-events:none;border:1px solid ",";.LayerCorner{position:absolute;display:inline-block;width:6px;height:6px;border-radius:50%;background-color:white;border:1px solid ",";&.left{left:-4px;}&.top{top:-4px;}&.right{right:-4px;}&.bottom{bottom:-4px;}}.layer-width,.layer-height{line-height:1;padding:3px 5px;background-color:",";color:#fff;}.layer-width{position:absolute;top:-5px;left:50%;transform:translateX(-50%) translateY(-100%);}.layer-height{position:absolute;top:50%;right:-5px;transform:translateX(100%) translateY(-50%);}.rect_info{position:absolute;display:inline-block;top:calc(100% + 5px);left:50%;transform:translateX(-50%);line-height:1;padding:3px 5px;background-color:#1E98EA;color:#fff;border-radius:2px;white-space:nowrap;}"],e=>e.theme.color_primary_proto01,e=>e.theme.color_primary_proto01,e=>e.theme.color_interaction_reference_line),hae=M.Ay.div.withConfig({displayName:"styles__StyledInspectorToolBar",componentId:"sc-1h0nsie-1"})(["&{position:absolute;z-index:10;top:78px;left:50%;transform:translateX(-50%);display:flex;justify-content:center;align-items:center;min-width:263px;height:40px;border:1px solid ",";background:",";border-radius:6px;box-shadow:0 2px 6px 0 rgba(39,54,78,0.08);pointer-events:auto;padding:2px 8px;}span.divider{display:block;width:1px;height:18px;margin-left:8px;background-color:",";}.mode{display:flex;align-items:center;justify-content:center;.picker{width:28px;height:28px;display:flex;justify-content:center;align-items:center;border-radius:6px;cursor:pointer;.svg-icon{width:24px;height:24px;path{fill:",";}}&:hover{background-color:",";}&:active,&.is-active{background-color:",";}}}.param{display:flex;flex:1;justify-content:center;align-items:center;.ToolbarSelect{margin-left:8px;width:56px;height:28px;border-radius:6px;padding:0 6px;border:none;button{width:36px;padding:0;font-size:13px;}.caret{color:",";}&:not(.is-disabled):not(.readonly):hover{border:none;background-color:",";button{width:36px;}.caret{margin-top:2px;}}&:not(.is-disabled):not(.readonly).is-open{background-color:",";.caret{margin-top:2px;svg{transform:rotate(0deg);}}}}}.dora{margin-top:-1px;font-size:15px;cursor:pointer;}.cursor.is-active{color:",";}.px-ratio{color:",";margin-right:10px;}"],e=>e.theme.color_bg_border_01,e=>e.theme.color_bg_white,e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_text_L1,e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_btn_secondary_active,e=>e.theme.color_text_L1,e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_btn_secondary_active,e=>e.theme.color_primary_proto01,e=>e.theme.color_text_L1),mae=(0,M.DU)(["ul.ToolbarSelectMenu{&{width:100%;margin-top:1em;padding:0 0.5em;font-size:12px;min-width:7em;}li{justify-content:center;margin:0.5em 0;border-radius:2px;}}#IBOT_SELECT_MENU_ROOT{.PreviewSubToolbarSelectMenu{margin-left:-10px;background-color:",";.SelectOption{color:",";&:not(.is-active):hover{color:",";background-color:",";}&.is-active{color:",";background-color:",";}}}.PreviewSubToolbarSelectMenu.scale-select-menu{margin-left:-5px;width:80px;li:nth-last-child(2){display:none;}li:last-child{padding:0.25em 0;line-height:1.5;&:hover{background-color:transparent;}> .Ellipsis{padding:0;}.InputNumber{width:100%;height:30px;input{padding:0 1em;text-align:center;background-color:transparent;&:focus::placeholder{color:transparent;}}}}}}"],e=>e.theme.color_background_white,e=>e.theme.color_text_L2,e=>e.theme.color_primary_proto01,e=>e.theme.color_background,e=>e.theme.color_primary_proto01,e=>e.theme.color_background),fae=(0,M.DU)(["ul.ToolbarSelectMenu{&{width:100%;margin-top:11px;font-size:12px;min-width:7em;}li{justify-content:center;border-radius:4px;}}#IBOT_SELECT_MENU_ROOT{.PreviewSubToolbarSelectMenu{margin-left:-10px;padding:8px;background-color:",";box-shadow:0px 4px 10px 0px ",";border-radius:8px;border:1px solid ",";.SelectOption{color:",";border-radius:4px;&:hover,&.is-active{background-color:",";}.InputNumber input{border-radius:6px;border:1px solid ",";box-shadow:none;&:hover,&:focus{border:1px solid ",";}}}}.PreviewSubToolbarSelectMenu.scale-select-menu{margin-left:-5px;width:80px;li:nth-last-child(2){display:none;}li:last-child{padding:0.25em 0;line-height:1.5;&:hover{background-color:transparent;}> .Ellipsis{padding:0;}.InputNumber{width:100%;height:30px;input{padding:0 1em;text-align:center;background-color:transparent;&:focus::placeholder{color:transparent;}}}}}.SelectMenuPortal{.WorkspaceSelectMenu.toolbar-select-menu.is-open{top:calc(100% + 10px) !important;li.SelectOption{height:28px;line-height:28px;}}.WorkspaceSelectMenu.color-unit-select-menu.is-open{width:94px;}.WorkspaceSelectMenu.device-unit-select-menu.is-open{width:82px;}.WorkspaceSelectMenu.rpx-ratio-select-menu.is-open{width:134px;}.WorkspaceSelectMenu.em-pixel-select-menu.is-open{width:86px;li.SelectOption:last-child{.Ellipsis{padding-left:0;height:28px;.Input.small{width:70px;height:28px;border-radius:6px;border:1px solid transparent;overflow:hidden;background:",";display:flex;align-items:center;input{color:",";width:100%;height:100%;cursor:default;background:none;border:0;outline:0;padding-right:2px;text-align:left;}&.is-empty{input{text-align:right;color:",";}}&:not(.is-empty):not(:hover):not(.is-active){input{padding-left:32px;}}&:hover:not(.is-disabled){border:1px solid ",";input{text-align:left;padding-left:6px;}}&.is-active:not(.is-disabled){border:1px solid ",";outline:1px solid ",";outline-offset:-2px;input{text-align:left;padding-left:6px;}}}}&:not(.empty-msg):not(.is-disabled):not(.is-active):hover{background-color:transparent;}}li.SelectOption:nth-last-child(2){display:none;}}}}"],e=>e.theme.color_bg_white,e=>e.theme.shadow_m,e=>e.theme.color_bg_border_01,e=>e.theme.color_text_L0,e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_bg_border_01,e=>e.theme.color_proto,e=>e.theme.color_bg_white,e=>e.theme.color_text_L1,e=>e.theme.color_text_L3,e=>e.theme.color_bg_border_02,e=>e.theme.color_proto,e=>e.theme.color_proto),gae=M.Ay.div.withConfig({displayName:"styles__StyledMarkLabel",componentId:"sc-1h0nsie-2"})(["padding:0 5px;color:#fff;background-color:",";border-radius:2px;"],e=>e.theme.color_interaction_reference_line),yae=e=>{const{state:t,dispatch:n}=F3(),{ratio:a,customEmPixel:i,colorUnit:c,unit:d,emPixel:p,unitRatio:h,isShowColorPicker:m}=t,{onPickColor:x,openDownloadPluginModal:v,useNativeEyedropper:A}=e,k=[j3,N3].includes(d);let R=!1,F=!1;const Z=()=>{let Qe=null;try{if(F){var nt;F=!1,(nt=Qe)==null||nt.abort("abort EyeDropper already opened")}else{F=!0;const Xe=new EyeDropper;Qe=new AbortController,n({type:"inspect:update:state",payload:{isShowColorPicker:!0}}),Xe.open({signal:Qe.signal}).then(lt=>{se(lt.sRGBHex)}).catch(lt=>{console.warn(lt)}).finally(()=>{F=!1,n({type:"inspect:update:state",payload:{isShowColorPicker:!1}})})}}catch(Xe){F=!1,n({type:"inspect:update:state",payload:{isShowColorPicker:!1}})}},ee=(()=>{let Qe=!1,nt=null,Xe=null,lt=null;const Ct=l.memo(hn=>{let{colorPickedCallback:Cn,event:Mt}=hn;const[Et,Co]=(0,l.useState)(!0);(0,l.useEffect)(()=>(nt=Co,()=>{nt=null}),[]);const Pn=Io=>{Cn({sRGBHex:Io})},ro=(0,l.useCallback)(()=>{Qe=!1,Co(!1),n({type:"inspect:update:state",payload:{isShowColorPicker:!1}}),Xe&&lt&&(Xe.unmount(),document.body.removeChild(lt),Xe=null,lt=null)},[Co]);return(0,l.useEffect)(()=>{const Io=mo=>{mo&&mo.key!=="Escape"||ro()};return document.addEventListener("keydown",Io),()=>{document.removeEventListener("keydown",Io)}},[ro]),(0,o.jsx)(pae.A,{open:Et,event:Mt,onClose:ro,onChange:Pn,handleOpenDownloadPluginModal:v})}),St=()=>{lt||(lt=document.createElement("div"),document.body.appendChild(lt),Xe=qoe.createRoot(lt))};return(hn,Cn)=>{St();try{if(Qe)Qe=!1,nt&&nt(!1);else{var Mt;if(!window.mbRequestMessage){n({type:"inspect:update:state",payload:{isShowColorPicker:!1}});return}Qe=!0,nt&&nt(!0),(Mt=Xe)==null||Mt.render((0,o.jsx)(Ct,{colorPickedCallback:hn,event:Cn}))}}catch(Co){var Et;n({type:"inspect:update:state",payload:{isShowColorPicker:!1}}),(Et=MB)==null||Et.notice({text:"\u5F53\u524D\u6D4F\u89C8\u5668\u4E0D\u652F\u6301\u53D6\u8272\u5668"}),console.log(Co)}}})(),ce=Qe=>{x(),n({type:"inspect:update:state",payload:{isShowColorPicker:!0}});const nt=window.MB_DESKTOP_GET_COLOR_HEX_RGB||window.parent.MB_DESKTOP_GET_COLOR_HEX_RGB;if(nt)if((0,lk.uF)()&&A)new window.EyeDropper().open().then(lt=>{let{sRGBHex:Ct}=lt;return se(Ct)});else{if(R)return;R=!0;try{nt().then(lt=>{if(!lt)return;const{hex:Ct}=(0,Fs.H0)(lt);se(Ct)},lt=>{console.warn(lt),n({type:"inspect:update:state",payload:{isShowColorPicker:!1}})}).then(()=>R=!1)}catch(lt){console.warn(lt),R=!1,n({type:"inspect:update:state",payload:{isShowColorPicker:!1}})}}else{var Xe;(Xe=ENV)!=null&&Xe.IS_WONDER_SHARE||(0,lk.cX)()?window.EyeDropper&&Z():window.mbSendMessage?ee(lt=>{let{sRGBHex:Ct}=lt;return se(Ct)},Qe):(n({type:"inspect:update:state",payload:{isShowColorPicker:!1}}),v())}},se=Qe=>{const{history:nt,focusColor:Xe}=Dne(Qe);n({type:"inspect:update:state",payload:{usePickerColor:nt,focusColor:Xe,isShowColorPicker:!1}})},he=Qe=>{const nt=[j3,N3].includes(Qe)?p:h;n({type:"inspect:update:state",payload:{unit:Qe,ratio:nt,isChangeUnitRatio:!0}})},ve=Qe=>{n({type:"inspect:update:state",payload:{colorUnit:Qe}})},Te=Qe=>{const nt=Number(Qe);n({type:"inspect:update:state",payload:{emPixel:nt,ratio:nt,customEmPixel:"",isChangeUnitRatio:!0}})},xe=Qe=>{Qe&&n({type:"inspect:update:state",payload:{customEmPixel:Qe,emPixel:Qe,ratio:Qe}})},Fe=Qe=>{n({type:"inspect:update:state",payload:{ratio:Number(Qe),unitRatio:Number(Qe),isChangeUnitRatio:!0}})},et=()=>{const Qe=jne.concat([p]).map(Xe=>({value:Xe,label:Xe+"px"})),nt=(0,o.jsx)("div",{onClick:Xe=>Xe.stopPropagation(),children:(0,o.jsx)(v8,{size:"small",min:1,max:99,precision:0,value:i,placeholder:I18N.pInspect.custom,isEnterBlur:!0,onChange:xe})});return Qe.concat([nt])},Ke=tv();return(0,o.jsxs)(hae,{className:C()("sub-toolbar","preview-sub-toolbar"),children:[(0,o.jsxs)("div",{className:"mode",children:[(0,o.jsx)(Su.A,{arrowed:!0,position:"bottom",duration:1500,className:(0,Fs.Hn)(["picker",m&&"is-active"]),tipClassName:"marign-top-20",content:{click:null,hover:I18N.pInspect.color_picker},children:(0,o.jsx)(xc.C,{name:"preview/inspect/color_absorber",onClick:Qe=>ce(Qe)})}),(0,o.jsx)("span",{className:"divider"})]}),(0,o.jsxs)("div",{className:"param",children:[(0,o.jsx)(O3,{className:"ToolbarSelect color-unit",menuClassName:"toolbar-select-menu color-unit-select-menu",placeholder:" ",value:c,optionList:xae,onChange:ve}),(0,o.jsx)("span",{className:"divider"}),(0,o.jsx)(O3,{className:"ToolbarSelect device-unit",menuClassName:"toolbar-select-menu device-unit-select-menu",placeholder:" ",value:d,optionList:Nne,onChange:he}),(0,o.jsx)("span",{className:"divider"}),k?(0,o.jsx)(O3,{className:"ToolbarSelect em-pixel",menuClassName:"toolbar-select-menu em-pixel-select-menu",placeholder:" ",optionList:et(),value:p,onChange:Te}):(0,o.jsx)(O3,{className:"ToolbarSelect rpx-ratio",menuClassName:"toolbar-select-menu rpx-ratio-select-menu",placeholder:" ",value:a,optionLabelProp:"labelText",optionList:bae,onChange:Fe})]}),Ke?(0,o.jsx)(mae,{}):(0,o.jsx)(fae,{})]})},xae=[{value:"hex",label:"Hex"},{value:"rgb",label:"RGB"},{value:"rgba",label:"RGBA"},{value:"argb",label:"ARGB"}],vae=[1/3,1/2,1,2,3],dk=["1/3","1/2","1","2","3"],bae=vae.map((e,t)=>({value:e,label:"\u8BBE\u8BA1\u5C3A\u5BF8x"+dk[t],labelText:dk[t]+"x"}));var wae=s(62280);const Cae=(e,t)=>{const n=[],a=b8(e,t);if(a.width<e.width+t.width)n[0]=null;else{const i=a.width-(e.width+t.width),c=t.left>e.left;n[0]=c?i:-i}if(a.height<e.height+t.height)n[1]=null;else{const i=a.height-(e.height+t.height),c=t.top>e.top;n[1]=c?i:-i}return n},Sae=(e,t)=>{if(kae(e,t))return{top:e.top-t.top,right:t.left+t.width-(e.left+e.width),bottom:t.top+t.height-(e.top+e.height),left:e.left-t.left};{const n={},a=Cae(e,t);return a[0]>0?n.right=a[0]:a[0]<0&&(n.left=Math.abs(a[0])),a[1]>0?n.bottom=a[1]:a[1]<0&&(n.top=Math.abs(a[1])),n}},u2=e=>e*100+"%",pk=e=>[e.left,e.top,e.left+e.width,e.top+e.height];function Sce(e,t){var n,a;const i=(n=document.querySelector("#canvas"))==null?void 0:n.getBoundingClientRect(),c=(a=document.querySelector("#screens"))==null?void 0:a.getBoundingClientRect();if(!i||!c)return;const d=i.left-c.left,p=i.top-c.top,h=100/t;return Aae(e,{offsetX:d,offsetY:p,ratio:h})}function Ace(e,t,n){let{startX:a,startY:i,endX:c,endY:d}=e;t===void 0&&(t=90),n===void 0&&(n=0);const p=Math.atan2(d-i,c-a)/Math.PI*180,h=Math.hypot(c-a,d-i),m=n+t*Math.round((p-n)/t),x=h*Math.cos((p-m)/180*Math.PI);return{startX:a,startY:i,endX:a+Math.round(x*Math.cos(m/180*Math.PI).toFixed(2)),endY:i+Math.round(x*Math.sin(m/180*Math.PI).toFixed(2))}}function kce(e){let{startX:t,startY:n,endX:a,endY:i}=e;const c=Math.min(n,i),d=Math.min(t,a),p=Math.abs(a-t),h=Math.abs(i-n);return{top:Math.round(c),left:Math.round(d),width:Math.round(p),height:Math.round(h)}}function Aae(e,t){let{startX:n,startY:a,endX:i,endY:c}=e,{offsetX:d,offsetY:p,ratio:h}=t;return{startX:Math.round((n-d)*h),startY:Math.round((a-p)*h),endX:Math.round((i-d)*h),endY:Math.round((c-p)*h)}}const uk=(e,t)=>["top","left","width","height"].every(n=>e[n]===t[n]),kae=(e,t)=>{const n=b8(e,t);return n.width<e.width+t.width&&n.height<e.height+t.height},b8=(e,t)=>{const n=Math.min(e.top||0,t.top||0),a=Math.max((e.top||0)+e.height,(t.top||0)+t.height),i=Math.min(e.left||0,t.left||0),c=Math.max((e.left||0)+e.width,(t.left||0)+t.width);return{top:n,left:i,width:c-i,height:a-n}},Mce=(e,t,n)=>Mae(e,n)&&Eae(t,n),Mae=(e,t)=>e>t.left&&e<t.left+t.width,Eae=(e,t)=>e>t.top&&e<t.top+t.height,Iae=function(e,t,n){return e===void 0&&(e=0),t===void 0&&(t=1),n===void 0&&(n=null),Number.parseFloat((1/t*e).toFixed(2))+n};class _ae extends l.PureComponent{constructor(){super(...arguments),(0,B.A)(this,"getDistanceMarksStyle",t=>{const{ratio:n}=this.props;return{width:t.width*n,height:t.height*n,left:t.left*n,top:t.top*n}}),(0,B.A)(this,"mapDistanceMarks",(t,n)=>{let[a,i]=t;const{style:c,renderValue:d}=this.props,{colorForLines:p,colorForText:h,backgroundColorForText:m,dashed:x}=c,v=this.getMarkStyle(a,i),A=Math.abs(i),k=Math.round(Iae(A));return(0,o.jsxs)("div",{children:[(0,o.jsx)("div",{className:"distance-line "+a,style:{...v.line,[["top","bottom"].includes(a)?"borderLeftStyle":"borderTopStyle"]:x?"dashed":"solid",borderColor:p}}),d?d({value:k,style:v.value,customClassName:"distance-value "+a}):(0,o.jsx)("span",{className:"distance-value "+a,style:{...v.value,color:h,backgroundColor:m},children:k})]},n+"-"+i)}),(0,B.A)(this,"getMarkStyle",(t,n)=>{const{baseRect:a,refRect:i}=this.props,c={line:{},value:{},endBoundary:{}},d=pk(a),p=pk(i),h=(0,Je.Pn)(d,p),m=["right","left"],x=["right","bottom"],v=["top","bottom"],A=m.includes(t)?n/a.width:n/a.height,k=(i.left-a.left+i.width/2)/a.width,R=(i.top-a.top+i.height/2)/a.height,F=v.includes(t)?"left":"top";return c.line={[t]:n<0?0:u2(-A),[F]:h?u2(Math.abs(F==="left"?k:R)):"50%",[m.includes(t)?"width":"height"]:u2(Math.abs(A))},c.endBoundary={[t]:u2(-A)},c.value={[m.includes(t)?"left":"top"]:x.includes(t)?u2(1+A/2):u2(-A/2),[F]:h?u2(Math.abs(F==="left"?k:R)):"50%"},c})}render(){const{baseRect:t,refRect:n}=this.props,a=Sae(t,n),i=this.getDistanceMarksStyle(t);return(0,o.jsx)("div",{className:"distance-marks",style:i,children:Object.entries(a).map(this.mapDistanceMarks)})}}const Tae=e=>{let{refRect:t,ratio:n,style:{dashed:a,colorForLines:i}}=e;return(0,o.jsx)("div",{style:{position:"absolute",pointerEvents:"none",width:t.width*n,height:t.height*n,left:t.left*n,top:t.top*n,border:"1px "+(a?"dashed":"solid")+" "+i}})};class Pae extends l.Component{constructor(){super(...arguments),(0,B.A)(this,"getAuxiliaryLinesStyle",t=>{const{ratio:n}=this.props;return{width:t.width*n,height:t.height*n,top:t.top*n,left:t.left*n}}),(0,B.A)(this,"getAuxiliaryLinesLength",()=>{const t={},{baseRect:n,refRect:a}=this.props,i=b8(n,a),c=i.width-a.width;i.height-(n.height+a.height)>0&&c>n.width/2&&(t.horizontal=c);const p=i.height-a.height;return i.width-(n.width+a.width)>0&&p>n.height/2&&(t.vertical=p),t}),(0,B.A)(this,"getLineStyle",(t,n)=>{const{baseRect:a,refRect:i,ratio:c}=this.props,d=a.left>i.left,p=a.top>i.top,h={};if(t){const m=t/i.width;h.horizontal={[p?"bottom":"top"]:0,[d?"right":"left"]:u2(-m),width:u2(m)}}if(n){const m=n/i.height;h.vertical={[d?"right":"left"]:0,[p?"bottom":"top"]:-m*c,height:m*c}}return h})}render(){const{refRect:t,style:n}=this.props,{horizontal:a,vertical:i}=this.getAuxiliaryLinesLength();if(!a&&!i)return null;const c=this.getAuxiliaryLinesStyle(t),d=this.getLineStyle(a,i);return(0,o.jsxs)("div",{className:"smart-auxiliary-lines",style:c,children:[a&&(0,o.jsx)("div",{className:"line horizontal",style:{...d.horizontal,borderTopStyle:n.dashed?"dashed":"solid",borderTopColor:n.colorForLines}}),i&&(0,o.jsx)("div",{className:"line vertical",style:{...d.vertical,borderLeftStyle:n.dashed?"dashed":"solid",borderLeftColor:n.colorForLines}})]})}}const Lae=M.Ay.div.withConfig({displayName:"styles__StyledDistanceMeasurement",componentId:"sc-1sjqq8d-0"})(["width:100%;height:100%;pointer-events:none;.distance-marks{position:absolute;pointer-events:none;.distance-line{position:absolute;width:1px;height:1px;&.top,&.bottom{border-left:1px solid black;}&.left,&.right{border-top:1px solid black;}}.distance-value{position:absolute;&.top,&.bottom{transform:translateY(-50%);}&.left,&.right{transform:translate(-50%,-100%);}}.distance-mark-start-boundary{&.top{top:0;}&.right{right:0;}&.bottom{bottom:0;}&.left{left:0;}}.distance-mark-start-boundary,.distance-mark-end-boundary{position:absolute;&.top,&.bottom{transform:translateX(-4px);width:9px;height:1px;border-top:1px solid black;}&.left,&.right{transform:translateY(-4px);width:1px;height:9px;border-left:1px solid black;}}}.smart-auxiliary-lines{position:absolute;pointer-events:none;.line{position:absolute;width:1px;height:1px;&.horizontal{border-top:1px solid black;}&.vertical{border-left:1px solid black;}}}.verbose-auxiliary-lines{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;.line{position:absolute;&.top,&.bottom{width:100%;height:1px;border-top:1px solid black;}&.bottom{transform:translateY(-1px);}&.left,&.right{width:1px;height:100%;border-left:1px solid black;}&.right{transform:translateX(-1px);}}}"]),jh={color_interaction_reference_line:{value:"#ff1313",description:"\u667A\u80FD\u5BF9\u9F50/\u624B\u52A8\u6D4B\u8DDD/\u53C2\u8003\u7EBF"},color_primary_proto01:{value:"#1684fc",description:"\u539F\u578B\u4E3B\u8981\u5F3A\u8C03\u8272"}},w8={design:{distanceMarks:{showStartAndEndBoundary:!1,dashed:!1,colorForLines:jh.color_interaction_reference_line.value,colorForText:jh.color_interaction_reference_line.value},refRectBorder:{dashed:!1,colorForLines:jh.color_interaction_reference_line.value},verboseAuxiliaryLines:!1,auxiliaryLines:{dashed:!0,colorForLines:jh.color_interaction_reference_line.value}},preview:{distanceMarks:{showStartAndEndBoundary:!0,dashed:!0,colorForLines:jh.color_interaction_reference_line.value},refRectBorder:{dashed:!0,colorForLines:jh.color_primary_proto01.value},verboseAuxiliaryLines:!0,auxiliaryLines:{dashed:!0,colorForLines:jh.color_primary_proto01.value}}};class Nae extends l.Component{shouldComponentUpdate(t){return!(uk(t.baseRect,this.props.baseRect)&&uk(t.refRect,this.props.refRect)&&t.ratio===this.props.ratio&&t.theme===this.props.theme)}render(){const{baseRect:t,refRect:n,theme:a,renderValue:i,ratio:c}=this.props;return(0,o.jsxs)(Lae,{className:"distance-measurement-container",children:[(0,o.jsx)(_ae,{baseRect:t,refRect:n,ratio:c,style:w8[a].distanceMarks,renderValue:i}),(0,o.jsx)(Pae,{baseRect:t,refRect:n,ratio:c,style:w8[a].auxiliaryLines}),(0,o.jsx)(Tae,{refRect:n,ratio:c,style:w8[a].refRectBorder})]})}}const hk=e=>{const{state:{unit:t,ratio:n}}=F3(),{layerBound:a,viewportScale:i,displayLayerSizeAndRoInfo:c,rpxRatio:d}=e,{x:p,y:h,r:m,w:x,h:v}=a,A={width:x*i,height:v*i,transform:"translate("+(p-x*.5)*i+"px,"+(h-v*.5)*i+"px) rotate("+m+"deg)"},k=vc(Math.round(x),n,t,d,!1),R=vc(Math.round(v),n,t,d,!1);return(0,o.jsx)(uae,{style:A,children:c&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("span",{className:"LayerCorner left top"}),(0,o.jsx)("span",{className:"LayerCorner left bottom"}),(0,o.jsx)("span",{className:"LayerCorner right top"}),(0,o.jsx)("span",{className:"LayerCorner right bottom"}),(0,o.jsx)("span",{className:"layer-width",children:""+k+t}),(0,o.jsx)("span",{className:"layer-height",children:""+R+t}),m!==0&&(0,o.jsxs)("span",{className:"rect_info",children:[k+" x "+R,"\xA0\xA0",m+"\xB0"]})]})})},mk=l.memo(e=>{let{value:t,unit:n,style:a,className:i,customClassName:c,ratio:d,rpxRatio:p}=e;const h=vc(t,d,n,p);return(0,o.jsx)(gae,{style:a,className:i+" "+c,children:""+h})});mk.displayName="MarkLabel";const jae=e=>{const{state:{unit:t,ratio:n,isShowColorPicker:a}}=F3();if(a)return null;const{sdk:i,viewportScale:c,selectedWidgetInfo:d,hoveredWidgetInfo:p,currPageKey:h}=e;let m=null,x=null;if(d!=null&&d.key)if(d.extra){const{key:R,extra:{x:F,y:Z}}=d,G={...i.getHotItem(R).hotAttr,...i.getRelocateLocalBound(d.key,i.locUpRBPageKey(d.key))};m=D3(G,{x:F,y:Z})}else m=i.getHotBound(d.key);if(p!=null&&p.key)if(p.extra){const{key:R,extra:{x:F,y:Z}}=p,G={...i.getHotItem(R).hotAttr,...i.getRelocateLocalBound(p.key,i.locUpRBPageKey(p.key))};x=D3(G,{x:F,y:Z})}else x=i.getHotBound(p.key);let v=1;if(h){var A;const R=i.getHotItem(h),F=R==null||(A=R.hotAttr)==null?void 0:A.deviceW;v=zA(F)}const k=R=>(0,o.jsx)(mk,{unit:t,ratio:n,rpxRatio:v,...R});return(0,o.jsxs)(o.Fragment,{children:[m&&x&&!Vo()(m,x)&&(0,o.jsx)(Nae,{baseRect:fk(m),refRect:fk(x),ratio:c,renderValue:k,theme:"preview"}),m&&(0,o.jsx)(hk,{viewportScale:c,displayLayerSizeAndRoInfo:!(x&&!Vo()(m,x)),layerBound:m,rpxRatio:v}),x&&(0,o.jsx)(hk,{viewportScale:c,displayLayerSizeAndRoInfo:!1,layerBound:x,rpxRatio:v})]})},fk=e=>{const t=(0,wae.Pb)(e);return{width:t[2]-t[0],height:t[3]-t[1],left:t[0],top:t[1],right:t[2],bottom:t[3]}},Dae={unit:"px",colorUnit:"hex",emPixel:16,customEmPixel:"",ratio:1,unitRatio:1,language:"css",usePickerColor:i8(),focusColor:"",isShowColorPicker:!1,isChangeUnitRatio:!1};function Rae(e,t){let{type:n,payload:a}=t;switch(n){case"inspect:update:state":return{...e,...a};default:return e}}const gk=(0,l.createContext)(null),F3=()=>{const e=(0,l.useContext)(gk);if(e===null)throw new Error("Inspector context is null");return e},Bae=e=>{let{sdk:t,hoveredWidgetInfo:n,selectedWidgetInfo:a,viewportScale:i,containerSelector:c,currPageKey:d}=e;return document.querySelector(c)?Ki.createPortal((0,o.jsx)(jae,{sdk:t,viewportScale:i,selectedWidgetInfo:a,hoveredWidgetInfo:n,currPageKey:d}),document.querySelector(c)):null},yk=l.memo(Bae);yk.displayName="InspectorMeasurementToolPortal";const Uae=e=>{let{sdk:t,theme:n,currPageKey:a,selectedWidgetInfo:i,containerSelector:c,getWidgetInspectStyles:d,getWidgetInspectRefVars:p}=e;return document.querySelector(c)?Ki.createPortal((0,o.jsx)(Joe,{sdk:t,selectedWidgetInfo:i,theme:n,currPageKey:a,getWidgetInspectStyles:d,getWidgetInspectRefVars:p}),document.querySelector(c)):null},xk=l.memo(Uae);xk.displayName="InspectorPanelPortal";const Oae=e=>{let{onPickColor:t,openDownloadPluginModal:n,useNativeEyedropper:a,containerSelector:i}=e;return document.querySelector(i)?Ki.createPortal((0,o.jsx)(yae,{onPickColor:t,openDownloadPluginModal:n,useNativeEyedropper:a}),document.querySelector(i)):null},vk=l.memo(Oae);vk.displayName="InspectorToolbarPortal";const Fae=(0,l.memo)(e=>{let{enabled:t,sdk:n,hoveredWidgetInfo:a,selectedWidgetInfo:i,viewportScale:c,theme:d,currPageKey:p,useNativeEyedropper:h,initialUnitRatio:m,onPickColor:x,openDownloadPluginModal:v,measurementToolContainerSelector:A,panelContainerSelector:k,toolbarContainerSelector:R,getWidgetInspectStyles:F,getWidgetInspectRefVars:Z}=e;const[G,ee]=(0,l.useReducer)(Rae,Dae),ce=(0,l.useMemo)(()=>({state:G,dispatch:ee}),[G,ee]),se=(0,l.useMemo)(()=>({key:a==null?void 0:a.key,extra:a==null?void 0:a.extra}),[a==null?void 0:a.key,a==null?void 0:a.extra]),he=(0,l.useMemo)(()=>({key:i==null?void 0:i.key,extra:i==null?void 0:i.extra}),[i==null?void 0:i.key,i==null?void 0:i.extra]),{isChangeUnitRatio:ve}=G;return(0,l.useEffect)(()=>{ve||ee({type:"inspect:update:state",payload:{unit:m.unit,ratio:m.ratio}})},[m,ve]),(0,o.jsx)(gk.Provider,{value:ce,children:t&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(yk,{sdk:n,hoveredWidgetInfo:se,selectedWidgetInfo:he,viewportScale:c,containerSelector:A,currPageKey:p}),(0,o.jsx)(xk,{sdk:n,selectedWidgetInfo:he,theme:d,currPageKey:p,containerSelector:k,getWidgetInspectStyles:F,getWidgetInspectRefVars:Z}),(0,o.jsx)(vk,{onPickColor:x,openDownloadPluginModal:v,useNativeEyedropper:h,containerSelector:R})]})})}),Vae=e=>{const t=e();return(0,o.jsx)(Fae,{...t})};var bk=s(18805);const C8=e=>typeof e=="number"?(0,ul.t0)(e):typeof e=="string"&&e!=null&&e.includes("#")?(0,$l.d9)((0,$l.UV)(e)):e,zae=(e,t)=>{if((0,xm.yD)(e.type)&&e.textV0){const{fontSize:F,color:Z,horizontalAlign:G,verticalAlign:ee,italic:ce,letterSpacing:se,lineHeight:he,fontFamily:ve,fontWeight:Te}=(0,_0.Mi)(e.textV0);return{fontSize:F,color:C8(Z),length:t==null?void 0:t.length,horizontalAlign:G,verticalAlign:ee,italic:ce,lineHeight:he,fontFace:(0,$0.cD)(ve)+"-"+Te,letterSpacing:se}}if((0,xm.e_)(e.type)){const{fontColor:F="#000000",fontSize:Z=14,italic:G,fontFamily:ee="PingFang SC"}=(0,_0.DG)(e.textV1);return{fontFace:ee,fontSize:Z,color:C8(F),length:t==null?void 0:t.length,italic:G}}const{fontFamily:n,fontWeight:a,fontSize:i,fontStyle:c,textColor:d,letterSpacing:p,paraSpacing:h,lineHeight:m,paddingTuple:x,horizontalAlign:v,verticalAlign:A,italic:k}=(0,_0.xH)({baseItem:e});return{...{fontSize:i,color:C8(d),fontStyle:c,lineHeight:m,paraSpacing:h,horizontalAlign:v,verticalAlign:A,italic:k,letterSpacing:p,fontFace:(0,$0.cD)(n)+"-"+a}}},Wae=e=>{var t,n;const a=(0,jt.WM)({...e,display_name:e.name});let i="";if(e.textV1)i=(0,cn.YZ)(e.textV1);else if(typeof((t=e.textV0)==null?void 0:t.text)=="string"){var c;i=(c=e.textV0)==null?void 0:c.text}else{var d,p;(d=e.textV0)!=null&&d.text&&(i=JSON.stringify((p=e.textV0)==null?void 0:p.text))}let h,m;if(i){const k=i.replace(/<p>/g,"").replace(/<\/p>/g,"\n"),R=k&&k.replace(/<[^>]+>/ig,"");h=zae(e,R),m=R}e.table_cell_text&&(i=e.table_cell_text,h={fontStyle:e.fontStyle,letterSpacing:e.padding,lineHeight:e.lineHeight,paraSpacing:0,fontSize:e.fontSize,color:e.color,length:i.length,horizontalAlign:e.ha,verticalAlign:e.va},m=i);let x;if(e.fill){const k=e==null?void 0:e.fill,R=(0,$l.$8)(k,{w:e.w,h:e.h});switch(k==null?void 0:k.fill){case"linearGradient":x=[{type:"linear",opacity:"1",value:(0,bk.l$)(R),gradient:{color_stops:k.knobList.map(F=>({color:(0,ul.t0)(F.color)}))}}];break;case"radialGradient":x=[{type:"radial",opacity:"1",value:(0,bk.rp)(R),gradient:{color_stops:k.knobList.map(F=>({color:(0,ul.t0)(F.color)}))}}];break;case"solid":x=[{value:(0,ul.t0)(e==null||(n=e.fill)==null?void 0:n.solidColor)}];break;default:x=[{value:"transparent"}]}}if(e.table_cell_background&&(x=[{value:(0,ul.t0)(e.table_cell_background)}]),e.type===$.x.WTriangleB||e.type===$.x.WTriangleTL){var v,A;x=e!=null&&(v=e.fill)!=null&&v.fillIsVisible?[{value:(0,ul.t0)(e==null||(A=e.fill)==null?void 0:A.solidColor)}]:[]}return{displayName:a,textStyles:h,inspectText:m,widgetText:i,bgColors:x}},Hae=(e,t)=>{const{refVars:n}=e;if(!n)return;let a,i;if(e.table&&t){var c;const{table:R}=e,{x:F,y:Z}=t,G=R[Z][F],ee=n==null||(c=n.cells)==null?void 0:c[G];a=ee==null?void 0:ee.data,i=ee==null?void 0:ee.style}else a=(0,_l.m5)(e),i=(0,_l.xu)([{hotAttr:e}]);const{borderRadius:d,opacity:p,shadow:h,border:m,w:x,h:v,r:A}=n,k=(0,_l.RL)({opacity:p,text:a,textStyles:i,w:x,h:v,r:A});if(typeof d=="object"){const{radiusTL:R,radiusTR:F,radiusBR:Z,radiusBL:G}=(0,_l.RL)(d);k.radius=[R,F,Z,G]}else d&&(k.radius=(0,_l.sU)(d));if(h&&(k.shadows=[(0,_l.RL)(h)]),m){const{bdrWidth:R}=(0,_l.RL)(m);k.borders=[{bdrWidth:R}]}return k},S8={default:{unit:"px",ratio:1},iphone:{unit:"pt",ratio:1},android:{unit:"dp",ratio:1}},Gae=e=>{if(!e)return S8.default;const{device:t}=e;let n="default";return Object.entries(Jc.Am).forEach(a=>{let[i,c]=a;c.includes(t)&&(n=i)}),S8[n]||S8.default},Zae=(0,I.Mz)([q._b,q.IL,tt.p$,De.zg,me.Ur,te.O4,me.X_,te.AM],(e,t,n,a,i,c,d,p)=>{const h=n[0]?a.selectCellInfo&&a.selectCellInfo.key===n[0]?{key:a.selectCellInfo.key,extra:{x:a.selectCellInfo.x,y:a.selectCellInfo.y}}:{key:n[0]}:null,m=t?a.hoverCellInfo&&a.hoverCellInfo.key===t?{key:a.hoverCellInfo.key,extra:{x:a.hoverCellInfo.x,y:a.hoverCellInfo.y}}:{key:t}:h&&sdkStore.locUpHotCanvasKey(h.key)?{key:sdkStore.locUpHotCanvasKey(h.key)}:null;return{enabled:e,hoveredWidgetInfo:m,selectedWidgetInfo:h,viewportScale:d/100,theme:c,currentScreen:i,currPageKey:(i==null?void 0:i.cid)||"",useNativeEyedropper:p}}),Kae=(0,r.Ng)(Zae)(e=>{let{enabled:t,hoveredWidgetInfo:n,selectedWidgetInfo:a,viewportScale:i,theme:c,currentScreen:d,currPageKey:p,useNativeEyedropper:h,dispatch:m}=e;const x=(0,l.useCallback)(()=>{const A=Gae(d);return{enabled:t,hoveredWidgetInfo:n,selectedWidgetInfo:a,viewportScale:i,theme:c,currPageKey:p,useNativeEyedropper:h,initialUnitRatio:A,onPickColor:()=>m({type:"entry:clear:selection"}),openDownloadPluginModal:()=>m({type:"modal:update:state",payload:{colorPickerDownloadModal:{isOpen:!0}}}),sdk:sdkStore,measurementToolContainerSelector:"#ro-fe-canvas",toolbarContainerSelector:"#fixed-area",panelContainerSelector:"#inspect-panel",getWidgetInspectStyles:Wae,getWidgetInspectRefVars:Hae}},[t,n,a,i,c,p,h,d,m]),v=Vae(x);return(0,o.jsx)(o.Fragment,{children:v})});var A8=s(58053),Yae=s(33236),Xae=s(78778),Qae=s(1404),Jae=s(12583),qae=s(45796),$ae=s(68818);const ere=(e,t,n)=>{const a=e?new URL(e):new URL("https://embed.diagrams.net"),i=a.searchParams;return i.append("embed","1"),i.append("proto","json"),n&&i.append("configure","1"),t&&Object.keys(t).forEach(c=>{const d=t[c];d!==void 0&&(typeof d=="boolean"?i.append(c,d?"1":"0"):i.append(c,d.toString()))}),a.toString()};function tre(e,t,n){if(e.origin.includes("embed.diagrams.net")||n&&n.includes(e.origin))try{const a=JSON.parse(e.data);if(a.event in t){const i=t[a.event];i&&i(a)}}catch(a){}}const nre=e=>{const t=(k,R)=>{var F;(F=e.current)==null||(F=F.contentWindow)==null||F.postMessage(JSON.stringify({action:k,...R}),"*")};return{load:k=>{t("load",k)},configure:k=>{t("configure",k)},merge:k=>{t("merge",k)},dialog:k=>{t("dialog",k)},prompt:k=>{t("prompt",k)},template:k=>{t("template",k)},layout:k=>{t("layout",k)},draft:k=>{t("draft",k)},status:k=>{t("status",k)},spinner:k=>{t("spinner",k)},exportDiagram:k=>{t("export",k)}}},ore=(0,l.memo)((0,l.forwardRef)((e,t)=>{const{autosave:n=!1,baseUrl:a,urlParameters:i,configuration:c,xml:d,csv:p,exportFormat:h,onAutoSave:m,onSave:x,onClose:v,onLoad:A,onConfigure:k,onDraft:R,onExport:F,onMerge:Z,onPrompt:G,onTemplate:ee}=e,ce=(0,l.useRef)(null),se=nre(ce),he=ere(a,i,!!c),[ve,Te]=(0,l.useState)(!1),[xe,Fe]=(0,l.useState)(!1);return(0,l.useImperativeHandle)(t,()=>({...se}),[se]),(0,l.useEffect)(()=>{let et={};ve&&(d?h==="xmlpng"?et={xmlpng:d}:et={xml:d}:p?et={descriptor:{format:"csv",data:p}}:et={xml:""},et={...et,autosave:n},se.load(et))},[ve,d,p,n,se,h]),(0,l.useEffect)(()=>{const et=Ke=>{tre(Ke,{init:()=>{Te(!0)},load:Qe=>{Fe(!0),A&&A(Qe)},configure:Qe=>{c&&se.configure({config:c}),k&&k(Qe)},autosave:Qe=>{se.exportDiagram({format:"xmlsvg"}),m&&m(Qe)},save:Qe=>{se.exportDiagram({format:h||"xmlsvg",exit:Qe.exit,parentEvent:"save"})},exit:Qe=>{v&&v(Qe)},draft:Qe=>{R&&R(Qe)},export:Qe=>{x&&x({event:"save",xml:Qe.data,parentEvent:Qe.message.parentEvent||"export"}),F&&F(Qe),Qe.message.exit&&v&&v({event:"exit",modified:!0,parentEvent:Qe.message.parentEvent||"export"})},merge:Qe=>{Z&&Z(Qe)},prompt:Qe=>{G&&G(Qe)},template:Qe=>{ee&&ee(Qe)}},a)};return window.addEventListener("message",et),()=>{window.removeEventListener("message",et)}},[]),(0,o.jsxs)("div",{className:"diagrams-iframe-container",children:[(0,o.jsx)("iframe",{className:"diagrams-iframe",src:he,ref:ce,title:"\u58A8\u5200\u7ED8\u56FE",frameBorder:"0",style:{opacity:xe?1:0}}),!xe&&(0,o.jsx)("div",{className:"loading-wrapper",children:(0,o.jsx)(E1.T,{className:"iframe-loading"})})]})}));var k8=s(71217);const are=(0,M.Ay)(ci.H).withConfig({displayName:"styles__CheckSizeModalModal",componentId:"sc-1b2486b-0"})(["width:400px !important;.content{color:",";}.cancel-btn{color:"," !important;&:hover,&:active{background:none !important;color:"," !important;}}"],e=>e.theme.color_text_L1,e=>e.theme.color_text_L3,e=>e.theme.color_text_L1),rre=(0,M.DU)(["#IBOT_MODAL_ROOT{.new-model-portal.check-size-modal-portal{z-index:2001;}}"]),ire=e=>{let{isOpen:t,onCancel:n,onConfirm:a}=e;return(0,o.jsxs)(are,{title:"\u8D85\u9650\u63D0\u9192",isOpen:t,cancelText:"\u4E0D\u4FDD\u5B58\u9000\u51FA",confirmText:"\u786E\u5B9A",onCancel:n,cancelBtnProps:{type:"text"},onConfirm:a,portalClassName:"check-size-modal-portal",children:[(0,o.jsx)("p",{className:"content",children:"\u6587\u4EF6\u5927\u5C0F\u8D85\u9650\u65E0\u6CD5\u4FDD\u5B58\uFF0C\u8BF7\u51CF\u5C11\u7EC4\u4EF6\u540E\u91CD\u65B0\u4FDD\u5B58"}),(0,o.jsx)(rre,{})]})},sre=M.Ay.div.withConfig({displayName:"styles__StyledMbDrawioContainer",componentId:"sc-1cq5nu-0"})(["position:absolute;top:0;left:0;width:100vw;height:100vh;z-index:2000;background:",";.header{height:30px;display:flex;flex-direction:row;align-items:center;justify-content:flex-end;margin-bottom:12px;z-index:1;width:100%;position:absolute;.left{color:",";font-size:16px;font-weight:600;}.save-close-btn{display:flex;align-items:center;height:28px;padding:0 15px;background:",";border-radius:6px;font-size:13px;font-weight:500;color:",";cursor:pointer;white-space:nowrap;margin-right:12px;position:absolute;top:53px;right:54px;&:hover{background:",";}&:active{background:",";}}}.diagrams-iframe-container{width:100%;height:100%;overflow:hidden;position:relative;margin-top:18px;}.diagrams-iframe{width:100%;height:100%;border:none;.geMenubarContainer{margin-left:20px;}}.loading-wrapper{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;align-items:center;justify-content:center;.iframe-loading{width:100px;}}"],e=>e.theme.color_bg_canvas,e=>e.theme.color_text_L1,e=>e.theme.color_btn_primary_normal,e=>e.theme.color_text_btn,e=>e.theme.color_btn_primary_hover,e=>e.theme.color_btn_primary_clicked),Zf={width:200,height:200},V3=e=>!(e!=null&&e.length&&e.length/1024>600),lre=()=>{var e;const t=(0,r.wA)(),n=(0,r.d4)(te.O4),a=(0,r.d4)(me.Ur),i=(0,l.useRef)(null),c=(0,r.d4)(me.q6),d=(c==null?void 0:c.editType)==="newWidget",p=(0,l.useRef)(null),[h,m]=(0,l.useState)(!1),[x,v]=(0,l.useState)(!1),A=ENV.IS_ON_PREMISES?window.location.origin+"/mb-drawio/v26.2.8/index.html":void 0,k=(0,l.useMemo)(()=>({lang:"zh",ui:n==="dark"?"dark":void 0,saveAndExit:!1,noSaveBtn:!0,noExitBtn:!0}),[n]);(0,l.useEffect)(()=>{const he=window.onbeforeunload;return window.onbeforeunload=()=>{if(p.current||rootSdk.hasSave())return I18N.dPages.data_lost_warning},()=>{window.onbeforeunload=he,v(!1)}},[]);const R=(0,Bg.qK)(he=>{p.current=he,V3(he.data)||MB.notice({text:"\u6587\u4EF6\u5927\u5C0F\u5DF2\u8D85\u9650\uFF0C\u65B0\u589E\u5185\u5BB9\u65E0\u6CD5\u4FDD\u5B58\uFF0C\u8BF7\u51CF\u5C11\u591A\u4F59\u7EC4\u4EF6",type:"warning"})}),F=()=>{var he;if(!V3((he=p.current)==null?void 0:he.data)){v(!0);return}Z()},Z=()=>{if(t({type:"set:current:drawio:editor:item",payload:{hotItem:null}}),m(!1),v(!1),xl.U4.addDrawIOToCanvasTrack(d?"\u65B0\u5EFA":"\u66F4\u65B0"),!d&&!p.current){t(Le.GO.select([c.key]));return}if(!d){var he;const{height:xe,width:Fe}=p.current.bounds;if(xe===0&&Fe===0){t({type:"entry:widget:change",payload:{flatChgList:[{key:c.key,hotAttr:{xmlData:""}}]}}),p.current=null,t(Le.GO.select([c.key])),G();return}const et=(0,k8.S$)({height:xe,width:Fe},{height:c.hotAttr.h,width:c.hotAttr.w}),Ke=V3(p.current.data)?p.current.data:(c==null||(he=c.hotAttr)==null?void 0:he.xmlData)||"",Qe=[{key:c.key,hotAttr:{xmlData:Ke,h:et.height,w:et.width}}];p.current=null,t({type:"entry:widget:change",payload:{flatChgList:Qe}}),t(Le.GO.select([c.key])),G();return}const ve=(0,fp.gu)({type:"wGraph",screen:a});if(!p.current||p.current.bounds.height===0&&p.current.bounds.width===0||!V3(p.current.data)){(0,$a.Q7)([{...ve,xmlData:"",h:Zf.height,w:Zf.height}],Zf.width,Zf.height),G();return}const Te=(0,k8.S$)({height:p.current.bounds.height,width:p.current.bounds.width},Zf);(0,$a.Q7)([{...ve,xmlData:p.current.data,h:Te.height,w:Te.width}],Te.width,Te.height),G(),p.current=null},G=()=>{MB.global.experienceLoginModalHelper("isSave")||MB.action("entry:start:saving")},ee=(0,Bg.qK)(()=>{m(!0)}),ce=()=>{Z()},se=()=>{v(!1)};return c?(0,Ki.createPortal)((0,o.jsxs)(sre,{children:[(0,o.jsx)("div",{className:"header",children:(0,o.jsx)("div",{className:"right",children:h&&(0,o.jsx)("div",{className:"save-close-btn",onClick:F,children:"\u4FDD\u5B58\u5E76\u9000\u51FA"})})}),(0,o.jsx)(ore,{ref:i,autosave:!0,xml:(0,k8.Bf)((e=c.hotAttr)==null?void 0:e.xmlData)||"",baseUrl:A,onExport:R,urlParameters:k,exportFormat:"xmlsvg",onLoad:ee}),(0,o.jsx)(ire,{isOpen:x,onCancel:ce,onConfirm:se})]}),document.body):null};class cre extends l.PureComponent{constructor(t){super(t),(0,B.A)(this,"setElementRef",n=>this.$element=n),(0,B.A)(this,"handleFullScreenChange",()=>{if(A8.A.isFullscreen){(0,Bf.gh)()&&setTimeout(()=>MB.commonGuideHelper.tryToShowGuide(Va.c.INTER_SWITCHABLE_VIEW_MODE_OV_TOGGLE_PANE_BTN),1e3);return}const{dispatch:n}=this.props;n(Le.GO.toggleFullScreenMode(!1)),n({type:"entry:toolbar:restore:leftrightpane"}),n({type:"entry:update:mode:viewType"}),n(Le.GO.toggleHandMode(!1)),MB.commonGuideHelper.closeGuide(Va.c.INTER_SWITCHABLE_VIEW_MODE_OV_TOGGLE_PANE_BTN),MB.commonGuideHelper.markGuideAsRead(Va.c.INTER_SWITCHABLE_VIEW_MODE_OV_TOGGLE_PANE_BTN)}),(0,B.A)(this,"handleBeforeUnload",()=>{this.props.dispatch({type:"entry:reset:dragging:state"})}),(0,B.A)(this,"handleResize",()=>{const{dispatch:n}=this.props;n({type:"entry:update:viewport:rect"}),n({type:"entry:observe:dom:left-panel-width"}),n({type:"entry:observe:dom:right-panel-width"})}),t.dispatch({type:"entry:update:toolbar"}),t.dispatch({type:"entry:update:ui:by:preference"}),t.dispatch({type:"entry:update:ui:by:iconinfo"}),MB.clientX=0,MB.clientY=0}componentDidMount(){var t;const{onlyView:n}=this.props,a=(0,Bf.OB)();(!n||n&&a)&&(t=np.A.getFlpakSizeInfo())!=null&&t.isFlpakSizeWarn&&this.props.dispatch({type:"modal:update:state",payload:{flpakSizeWarnModal:{isOpen:!0}}}),window.addEventListener("dragover",this.preventDefault),window.addEventListener("drop",this.preventDefault),window.addEventListener("contextmenu",this.preventDefault),window.addEventListener("beforeunload",this.handleBeforeUnload),this.$element.addEventListener("wheel",this.handleWheel,{passive:!1}),A8.A.on("change",this.handleFullScreenChange),new URLSearchParams(location.hash.replace(/^#/,"")).get("version")==="reset"&&(MB.notice({text:I18N.__App__.version_toast_reset_success}),window.history.replaceState(void 0,void 0,"#")),!n&&document.addEventListener("paste",i=>{const{isShallowEditText:c}=this.props;if(i.target.className.includes("batch-set-content-area")||MB.f.editingRichText&&!c)return;const{isEditingComment:d}=this.props;d||zn.X.query.getIsShallowEditing((0,kl.dP)())||MB.action("entry:prepare:paste:by:shortcut",{e:i})}),(0,j1.KA)(),(0,j1.BG)()&&(0,j1.sg)("currentTheme",{theme:this.props.theme}),window.addEventListener("popstate",i=>{location.pathname.startsWith(Rf.o$+"/")&&location.reload()}),pre(),xl.U4.protoEditorLoadSuccessTrack(MB.user.id),n||ure(this.props.dispatch)}componentWillUnmount(){window.removeEventListener("dragover",this.preventDefault),window.removeEventListener("drop",this.preventDefault),window.removeEventListener("contextmenu",this.preventDefault),window.removeEventListener("beforeunload",this.handleBeforeUnload),A8.A.off("change",this.handleFullScreenChange),this.$element.removeEventListener("wheel",this.handleWheel,{passive:!1})}preventDefault(t){t.preventDefault()}handleWheel(t){(t.ctrlKey||t.metaKey)&&t.preventDefault()}render(){const{theme:t,isShowSharingManager:n,isDeleteRulerLine:a,onlyView:i,isCommunityPreview:c,isEmbedV2Preview:d,fullScreenMode:p}=this.props,h=i?!(d&&!p):!p,m=!(c&&!p),x=i?c||d?_f.xO:_f.tt:_f.xz;return(0,o.jsx)(M.NP,{theme:bg.A[t],children:(0,o.jsxs)(w.D.Provider,{value:t,children:[(0,o.jsxs)(Qae.n,{ref:this.setElementRef,className:C()({isDeleteRulerLine:a,isEmbedV2Preview:d}),children:[i?(0,o.jsx)(Jae.VW,{sheet:x,viewMode:["read_only","inspect"]}):(0,o.jsx)(j.NH,{sheet:x}),m&&(0,o.jsx)(O$,{}),(0,o.jsxs)("div",{className:"main-content",children:[(0,o.jsx)(Cne.A,{}),h&&(0,o.jsx)(F$.D,{}),(0,o.jsxs)("main",{className:"mb-viewport",children:[(0,o.jsx)(wne.A,{}),(0,o.jsx)(y.A,{onResize:this.handleResize})]}),(0,o.jsx)(vne,{})]}),(0,o.jsx)(ZQ,{}),(0,o.jsx)(lre,{}),n&&(0,o.jsx)(_ne,{}),(0,o.jsx)(Kae,{})]}),!(0,$ae.FM)()&&(0,o.jsx)(qae.w9,{}),(0,o.jsx)(dre,{})]})})}}const dre=(0,l.memo)(()=>(0,o.jsxs)(l.Fragment,{children:[(0,o.jsx)(Yae.r,{}),(0,o.jsx)(dA.l,{}),(0,o.jsx)(Xae.K,{})]}));function pre(){const e=new Date;e.setHours(4,0,0,0),e.setDate(e.getDate()+1);const t=e.getTime(),n=setInterval(()=>{Date.now()<=t||(clearInterval(n),setInterval(()=>{MB.global.popupHelper.alertAsync({title:I18N.Popups.inactive_for_too_long_title,desc:I18N.Popups.inactive_for_too_long_content,confirmText:I18N.Popups.inactive_for_too_long_confirm}).then(()=>{rootSdk.hasSave()||window.location.reload()})},20*1e3))},10*60*1e3)}function ure(e){setTimeout(()=>{e&&e({type:"copy:as:png:thumbnail"})},1*60*1e3),setInterval(()=>{e&&e({type:"copy:as:png:thumbnail"})},5*60*1e3)}const hre=(0,I.Mz)([te.O4,N.ud,T.H5,J.Q,q.jx,q.pH,q.rg,q.T7,ne.aJ],(e,t,n,a,i,c,d,p,h)=>({onlyView:i===Le.qi.OnlyView,isEditingComment:t,isCommunityPreview:c,isEmbedV2Preview:d,theme:e,isShowSharingManager:n,isDeleteRulerLine:a,fullScreenMode:p,isShallowEditText:h})),mre=(0,r.Ng)(e=>hre(e))(cre)},58664:(Qn,qe,s)=>{"use strict";s.d(qe,{P:()=>T});var r=s(20089),I=s(4410);const J=[{keyCode:78,name:r.x.WSticky,shortcut:"N",default:{width:280,height:120}},{keyCode:72,name:r.x.WLR,shortcut:"H",default:{width:45,height:45}},{keyCode:76,name:r.x.WLine,shortcut:"L"},{keyCode:79,name:r.x.WOval,shortcut:"O",default:{width:100,height:100}},{keyCode:84,name:r.x.WRichText,shortcut:"T"},{keyCode:80,name:r.x.WVector,shortcut:"P"},{keyCode:80,shiftKey:!0,name:r.x.WVector,shortcut:"Shift + P",attrs:{toolType:I.pv.PENCIL}},{keyCode:82,name:r.x.WRect,shortcut:"R",default:{width:200,height:100}},{keyCode:87,name:r.x.WTear,shortcut:"W",default:{width:20,height:20}}],N={keyCode:65,name:r.x.Canvas,shortcut:"A",default:{width:400,height:800}},T=te=>te?[...J,N]:J},60129:(Qn,qe,s)=>{"use strict";s.d(qe,{Pr:()=>N,_D:()=>J,vY:()=>I});var r=s(93413);const I=[r.c.TASK_GUIDE_NEW_CREATE_PAGE,r.c.TASK_GUIDE_NEW_SHOW_WIDGET_LIBRARY,r.c.TASK_GUIDE_NEW_CREATE_LINK,r.c.TASK_GUIDE_NEW_USE_PREVIEW,r.c.TASK_GUIDE_NEW_USE_SHARE,r.c.TASK_GUIDE_NEW_USE_COMMENT,r.c.TASK_GUIDE_NEW_CREATE_ANNOTATE,r.c.TASK_GUIDE_NEW_CREATE_FLOW,r.c.TASK_GUIDE_NEW_CREATE_MIND],J=[r.c.GUIDE_NOVICE_2309_TASK_1,r.c.GUIDE_NOVICE_2309_TASK_2,r.c.GUIDE_NOVICE_2309_TASK_3,r.c.GUIDE_NOVICE_2309_TASK_4,r.c.GUIDE_NOVICE_2309_TASK_5],N=[{label:"add_artboard",guideKey:r.c.GUIDE_NOVICE_2309_TASK_1,imgUrl:ENV.IS_MO?"https://cdn-release.modao.cc/mb_proto/guide/GUIDE_NOVICE_2309_TASK_1_ws.gif":"/mb-proto2/images/guide/noviceGuides2309/"+r.c.GUIDE_NOVICE_2309_TASK_1+".gif",icon:{name:"art_board/guide/task/CREATE_PAGE",width:12,height:14},track:"\u65B0\u5EFA\u9875\u9762"},{label:"add_widget",guideKey:r.c.GUIDE_NOVICE_2309_TASK_2,imgUrl:ENV.IS_MO?"https://cdn-release.modao.cc/mb_proto/guide/GUIDE_NOVICE_2309_TASK_2_ws.gif":"/mb-proto2/images/guide/noviceGuides2309/"+r.c.GUIDE_NOVICE_2309_TASK_2+".gif",icon:{name:"art_board/guide/task/CREATE_WIDGET",width:14,height:16},track:"\u521B\u5EFA\u7EC4\u4EF6"},{label:"add_interaction",guideKey:r.c.GUIDE_NOVICE_2309_TASK_3,imgUrl:ENV.IS_MO?"https://cdn-release.modao.cc/mb_proto/guide/GUIDE_NOVICE_2309_TASK_3_ws.gif":"/mb-proto2/images/guide/noviceGuides2309/"+r.c.GUIDE_NOVICE_2309_TASK_3+".gif",icon:{name:"art_board/guide/task/CREATE_LINK",width:16,height:16},track:"\u6DFB\u52A0\u4EA4\u4E92"},{label:"preview",guideKey:r.c.GUIDE_NOVICE_2309_TASK_4,imgUrl:ENV.IS_MO?"https://cdn-release.modao.cc/mb_proto/guide/GUIDE_NOVICE_2309_TASK_4_ws.gif":"/mb-proto2/images/guide/noviceGuides2309/"+r.c.GUIDE_NOVICE_2309_TASK_4+".gif",icon:{name:"art_board/guide/task/USE_PREVIEW",width:12,height:14},track:"\u771F\u673A\u6F14\u793A"},{label:"share",guideKey:r.c.GUIDE_NOVICE_2309_TASK_5,imgUrl:ENV.IS_MO?"https://cdn-release.modao.cc/mb_proto/guide/GUIDE_NOVICE_2309_TASK_5_ws.gif":"/mb-proto2/images/guide/noviceGuides2309/"+r.c.GUIDE_NOVICE_2309_TASK_5+".gif",icon:{name:"art_board/guide/task/USE_SHARE",width:12,height:12},track:"\u6587\u4EF6\u5206\u4EAB"}]},60399:(Qn,qe,s)=>{"use strict";s.d(qe,{n:()=>I});var r=s(32424);const I=J=>{const N=J.access_token||(0,r.kt)(),T=/iphone|android|apple_watch/.test(J.device)?200:100,te=J.png_scale||T,q=J.pngs_scale||T,ne=!1,B=!1,l=J.device;let U;return l==="web"?U="web":l==="customize"?U="customize":U="device",{...J,access_token:N,png_scale:te,pngs_scale:q,template:ne,combo:B,shell_type:U}}},60440:(Qn,qe,s)=>{"use strict";s.d(qe,{m:()=>ne});var r=s(38502),I=s(18381),J=s(11032),N=s(70933),T=s(67052),te=s(74923),q=s(3862);const ne=B=>{let{templateList:l=[],resourcesMap:U=new Map,currentResource:C=null,isFromSameResource:M=!1,isOrg:w=!1,onUpdateCurrentResources:y}=B;const j=(0,I.d4)(N.HW),Q=(0,I.d4)(N.wA),ze=(0,I.d4)(N.F2),me=(0,I.d4)(N._x),Se=(0,I.wA)(),[Me,De]=(0,r.useState)(new Set),[tt,at]=(0,r.useState)(C||null),ht=(0,I.d4)(T.fm),Je=(0,I.d4)(te.AC),$=nn=>{var Oe;return(nn==null?void 0:nn.flpakKey)||(nn==null?void 0:nn.marketTemplateCid)||(nn==null||(Oe=nn.marketTemplateSource)==null?void 0:Oe.cid)},mt=nn=>(ze==null?void 0:ze.project_meta_cid)===nn?userSdkStore:(me==null?void 0:me.project_meta_cid)===nn?orgSdkStore:ht.get(nn),yt=nn=>{at(nn),y&&y(nn)},Le=nn=>{if(!M){const Oe=[...nn];Oe.filter(It=>{const Pt=U==null?void 0:U.get(It),{show:dt}=(0,J.o3)(Pt,j);return dt}).length==0&&Oe.length>0?yt((U==null?void 0:U.get(Oe[0]))||null):yt(null)}},He=nn=>{const Oe=new Set(Me);Oe.has(nn)?Oe.delete(nn):Oe.add(nn),De(Oe);const sn=new Set;l.forEach(It=>{Oe.has(It.key)&&!(It!=null&&It.flpakKey)&&sn.add($(It))}),Le(sn)},ye=(0,r.useCallback)(()=>{const nn=l==null?void 0:l.map(sn=>sn.key),Oe=new Set;l.forEach(sn=>{sn!=null&&sn.flpakKey||Oe.add($(sn))}),De(new Set(nn)),Le(Oe)},[De,Le]),je=(0,r.useCallback)(()=>{De(new Set)},[De]),ot=(0,r.useCallback)(()=>{C&&(yt({...C,is_purchased:!0,is_star:!0}),Se({type:"entry:resources:update:find:data",payload:{cid:C==null?void 0:C.cid,category:q.t_}}))},[yt,Se]),we=()=>{MB.global.experienceLoginModalHelper("isSave")||C&&Se({type:"modal:update:state",payload:{resourcePurchaseModal:{isOpen:!0,resources:C,currentOrg:Q,paidCallback:ot,isFooter:!0}}})},$e=(0,r.useCallback)(()=>{if(MB.global.experienceLoginModalHelper("isSave"))return;const{category:nn}=C||{};let Oe="",sn="";nn==="combo_group"?(Oe="\u7F16\u8F91\u533A-v8_\u539F\u578B\u7D20\u6750\u9762\u677F-\u7EC4\u4EF6_\u8D2D\u4E70VIP",sn="workspace-v8_components_buy_vip"):nn==="screen_list"?(Oe="\u7F16\u8F91\u533A-v8_\u539F\u578B\u7D20\u6750\u9762\u677F-\u9875\u9762_\u8D2D\u4E70VIP",sn="workspace-v8_pages_buy_vip"):(Oe="\u7F16\u8F91\u533A-v8_\u539F\u578B\u7D20\u6750\u9762\u677F-\u4F1A\u5458\u7D20\u6750_\u8D2D\u4E70VIP",sn="workspace-v8_template_buy_vip");const It={mode:"mat",payEntrance:Oe,checkoutArea:"proto",checkoutPlace:sn,templatePaySource:"\u7F16\u8F91\u533A\u7EC4\u4EF6\u5F39\u7A97"};MB.global.popupHelper.chargeAsync(It)},[C]),ge=nn=>{const Oe=new Map;return nn.forEach(sn=>{const It=l.find(Vn=>Vn.key===sn);if(It){var Pt,dt;const Vn=$(It),o=(Pt=Oe.get(Vn))!=null?Pt:[],Gn=It.key,xt=It!=null&&It.flpakKey?"user_combo":It.type,Ot=It!=null&&It.flpakKey?ze==null?void 0:ze.cid:(dt=It.marketTemplateSource)==null?void 0:dt.cid;let wt={...It,recent:{isRequestRecent:!w,itemCid:Gn,projectUpperType:xt,projectUpperCid:Ot,isTrack:!0,from:"widget-modal"}};Oe.set(Vn,[...o,wt])}}),[...Oe.keys()].map(sn=>{const It=mt(sn);return It?[Oe.get(sn),It]:null}).filter(sn=>!!sn)},Ze=nn=>{if(!(nn!=null&&nn.length))return;const Oe=ge([nn]);Se({type:"entry:resources:quick:create:template",payload:{data:Oe}}),Se({type:"modal:update:state",payload:{widgetModal:{isOpen:!1}}}),Se({type:"widget-modal:reset:state"})},W=()=>{const nn=Array.from(Me),Oe=ge(nn);Se({type:"entry:resources:quick:create:template",payload:{data:Oe}}),Se({type:"modal:update:state",payload:{widgetModal:{isOpen:!1}}}),Se({type:"widget-modal:reset:state"})},an=()=>{const nn=l==null?void 0:l.map(sn=>sn.key),Oe=ge(nn);Se({type:"entry:resources:quick:create:template",payload:{data:Oe}}),Se({type:"modal:update:state",payload:{widgetModal:{isOpen:!1}}}),Se({type:"widget-modal:reset:state"})},_t=(0,r.useCallback)(nn=>{const Oe=[...l],sn=Oe==null?void 0:Oe.find(It=>It.key===nn);Se({type:"modal:update:state",payload:{resourcesSnapshotPreviewModal:{isOpen:!0,type:"widget",list:Oe,currentTemplate:sn}}})},[Se,l]);return{checkedSet:Me,curRes:tt,handleChangeChecked:He,handleSelectAll:ye,handleClearAll:je,handleBySeparately:we,handleMemberClick:$e,handleAddItem:Ze,handleAddItems:W,handleAddItemsAll:an,handleOpenPreviewModal:_t,handlePaidResources:ot}}},60441:(Qn,qe,s)=>{"use strict";s.d(qe,{GL:()=>N,ri:()=>r,um:()=>I,ur:()=>T,vE:()=>J});const r=te=>te.ui.leftLayout.widgetModal.keyword,I=te=>te.ui.leftLayout.widgetModal.currentResource,J=te=>te.ui.leftLayout.widgetModal.largeFactory,N=te=>te.ui.leftLayout.widgetModal.componentLibrary,T=te=>te.ui.leftLayout.widgetModal.me},60921:(Qn,qe,s)=>{"use strict";s.d(qe,{N:()=>J,Z:()=>I});var r=s(42459);const I=(N,T)=>{if(N!=null&&N.is_star&&!(N!=null&&N.is_purchased))return(0,r.Op)(T,q=>q.cid===N.cid);if(N!=null&&N.is_purchased)return(0,r.$G)(T,q=>q.cid===N.cid,{...N,is_star:!(N!=null&&N.is_star)})},J=function(N,T){return T===void 0&&(T="all"),T==="all"?N:T==="page"?N.filter(te=>te.category==="screen_list"):T==="file"?N.filter(te=>te.category==="project_basic"):N}},61232:(Qn,qe,s)=>{"use strict";s.d(qe,{_:()=>os});var r=s(95549),I=s(38502),J=s(18381),N=s(16738),T=s(12211),te=s(86769),q=s(94319),ne=s.n(q),B=s(39695),l=s(56202),U=s(16454),C=s(96986),M=s(99566),w=s(82846),y=s(34428),j=s(88981),Q=s(30728),ze=s(32267),me=s(29329),Se=s(72064),Me=s(74222),De=s(9680),tt=s(89853),at=s(1984),ht=s(98267);const Je=pt=>pt.replace(/.*scale\((.+)\).*/,"$1"),$=pt=>{let{clientX:Ee,clientY:Ue}=pt;const ke=MB.webpackInterface.store.getState(),Ve=(0,U.mf)(ke),{activePageKey:st,activeCanvasKey:ut,screenScrollLeftMap:Rt,screenScrollTopMap:en}=Ve,Xt=Q.Z.xy(Ee,Ue),Zn=Rt[ut]||0,bo=en[ut]||0;let Po=(0,U.X_)(ke)/100;const ha=(0,U.bF)(ke);let xa;try{xa=document.querySelector('#preview-content-container div[data-cid="'+ut+'"]').getBoundingClientRect()}catch(Fa){xa=document.querySelector("#app").getBoundingClientRect();try{Po=Je((0,ze.T)({activePageKey:st,activeCanvasKey:ut,previewOptions:ha}).transform)}catch(Pa){}}const da={x:(Xt.x-xa.x)/Po,y:(Xt.y-xa.y)/Po},Ko={x:da.x-Zn,y:da.y-bo};MB.previewMouseX=Math.round(da.x),MB.previewMouseY=Math.round(da.y),MB.previewMousePageX=Math.round(Ko.x),MB.previewMousePageY=Math.round(Ko.y)},mt=()=>{MB.previewMouseX=0,MB.previewMouseY=0,MB.previewMousePageX=0,MB.previewMousePageY=0},yt=()=>{if(MB.runnerController)return{variables:MB.runnerController.variableStore.getSnapshot(),p2sdkStore:(0,Se.yV)()};var pt;return{variables:((pt=sdkStore.getHotItem(Me.fu))==null?void 0:pt.sub.map(De.hZ))||[],p2sdkStore:sdkStore}},Le=(pt,Ee)=>{const ke=pt.interactionTrigger==="timer"?"timerDuration":"transitionDelay";return ye(pt,ke,Ee)},He=pt=>{switch(pt.interactionType){case B.O2.SetVisibility:{if(!document.querySelector("#app"))return;const Ue=(0,ht.$8)(pt,MB.webpackInterface),ke=(0,Se.yV)(),Ve=ke==null?void 0:ke.getSnapshotItem(Ue);if(!Ve)return;const st=Ve.hotAttr.isVisible,ut=pt.actionType;if((ut==="setVisible"||ut==="toggleVisibility")&&!st)return pt.setVisibleTransition==="auto"?ye(pt,"setVisibleTransitionDuration"):0;if((ut==="setHidden"||ut==="toggleVisibility")&&st)return pt.setHiddenTransition==="auto"?ye(pt,"setHiddenTransitionDuration"):0;break}default:return!pt.transition||pt.transition==="none"?0:ye(pt,"transitionDuration")}},ye=function(pt,Ee,Ue){var ke;Ue===void 0&&(Ue=yt());const Ve=pt[Ee]||"0";let st=parseFloat(Ve)*1e3;const ut=(ke=pt.expression)==null?void 0:ke[Ee];if(ut){var Rt;st=(Rt=(0,me.LB)(ut,"number",Ue))!=null?Rt:0}return(0,tt.d8)(st,[0,at.sw])},je=function(pt,Ee,Ue){return Ue===void 0&&(Ue="number"),(0,M.g3)(pt,Ee,Ue,yt())},ot=function(){for(var pt=arguments.length,Ee=new Array(pt),Ue=0;Ue<pt;Ue++)Ee[Ue]=arguments[Ue];return Ee.join(",")};class we{constructor(){(0,r.A)(this,"_incrementId",0),(0,r.A)(this,"actionQueue",[]),(0,r.A)(this,"scopeTimoutMap",new Map),(0,r.A)(this,"runningActionId",""),(0,r.A)(this,"selfIncreaingIncrementId",()=>this._incrementId++)}setTimeout(Ee,Ue,ke,Ve){const{startTime:st=Date.now(),scope:ut="",key:Rt}=ke,en=ot(ut,st,Ue);let Xt=this.scopeTimoutMap.get(en);return Xt||(Xt={scope:ut,startTime:st,delay:Ue,actions:new Set,cancelToken:setTimeout(()=>{this.timeoutCallback(en)},Ue)},this.scopeTimoutMap.set(en,Xt)),this.insertAction({id:Rt,callback:Ee},Ve),Xt.actions.add(Rt),Xt.cancelToken}timeoutCallback(Ee){if(!this.scopeTimoutMap.has(Ee))return;const{scope:Ue,startTime:ke,delay:Ve}=this.scopeTimoutMap.get(Ee),st=[];for(const[ut,Rt]of this.scopeTimoutMap)Rt.scope.includes(Ue)&&Rt.startTime===ke&&Rt.delay===Ve&&st.push(ut);for(const{id:ut,callback:Rt}of this.actionQueue)if(st.some(en=>{var Xt;return(Xt=this.scopeTimoutMap.get(en))==null?void 0:Xt.actions.has(ut)}))try{this.runningActionId=ut,Rt(),this.runningActionId=""}catch(en){console.warn(ut+" action error",en)}Promise.resolve().then(()=>{st.forEach(ut=>{this.clearScopeId(ut)})})}insertAction(Ee,Ue){if(Ue){const ke=this.actionQueue.findIndex(Ve=>{let{id:st}=Ve;return st===Ue});if(ke!==-1){this.actionQueue.splice(ke+1,0,Ee);return}}this.actionQueue.push(Ee)}clearScopeId(Ee){const Ue=this.scopeTimoutMap.get(Ee);Ue&&(clearTimeout(Ue.cancelToken),this.actionQueue=this.actionQueue.filter(ke=>{let{id:Ve}=ke;return!Ue.actions.has(Ve)})),this.scopeTimoutMap.delete(Ee)}clearScope(Ee,Ue){if(!Ue&&this.runningActionId){const ke=Array.from(this.scopeTimoutMap.values()).find(Ve=>Ve.actions.has(this.runningActionId));ke&&(Ue=ke.startTime+ke.delay)}Ue||(Ue=Date.now(),Array.from(this.scopeTimoutMap.values()).forEach(ke=>{ke.scope.includes(Ee)&&(Ue=Math.min(Ue,ke.startTime+ke.delay))}));for(const ke of this.scopeTimoutMap.keys()){const{scope:Ve,startTime:st,delay:ut}=this.scopeTimoutMap.get(ke);Ve.includes(Ee)&&st+ut>Ue&&this.clearScopeId(ke)}}clear(){this.clearScope("")}clearAll(){this.actionQueue=[],this.scopeTimoutMap.clear()}}const $e=()=>new Date().getTime(),ge=["mouseIn","mouseOut","left","right","up","down"],Ze=pt=>pt.some(Ee=>ge.includes(Ee));class W{constructor(){this.coolDownTime=$e(),this.coolDownInterval=200}isCoolDown(Ee){if(Ee===void 0&&(Ee=[]),Ze(Ee))return!0;const Ue=$e()-this.coolDownTime;return this.coolDownTime+=Ue,Ue>this.coolDownInterval}resetCoolDown(){this.coolDownTime-=this.coolDownInterval}}var an=s(83535),_t=s(85449);const nn=[B.O2.SetVariableValue,B.O2.SetAnimation,B.O2.Transform,B.O2.ScrollTo];class Oe{constructor(Ee,Ue){(0,r.A)(this,"addIterationLinkKeySet",ke=>this.iterationLinkKeySet.add(ke)),(0,r.A)(this,"clearIterationLinkKeySet",()=>this.iterationLinkKeySet.clear()),(0,r.A)(this,"isIterableIta",ke=>nn.some(Ve=>Ve===ke)),(0,r.A)(this,"getNumIterationCount",ke=>ke==="infinite"?1/0:(0,tt.d8)(Number(ke),[1,at.sw])),(0,r.A)(this,"getStringIterationCount",ke=>Number(ke)===1/0?"infinite":(0,tt.d8)(Number(ke),[1,at.sw]).toFixed(0)),(0,r.A)(this,"execIterableIta",ke=>{let{ita:Ve,itasTotal:st,option:ut,curIterationCount:Rt=this.getNumIterationCount(je(Ve,"iterationCount","number"))}=ke;if(!this.iterationLinkKeySet.has(Ve.key))return;this.runnerController.switchInteraction(Ve,st,ut);const en=()=>{const Xt=ye(Ve,"iterationInterval"),Zn=Ve.interactionType===B.O2.SetAnimation?(0,tt.d8)(je(Ve,"animationDuration","number"),[0,at.sw]):ye(Ve,"transitionDuration"),bo={...ut,startTime:Date.now()},Po=()=>{this.requestAnimationFrameId=(0,_t.Wz)(()=>this.execIterableIta({ita:Ve,itasTotal:st,option:bo,curIterationCount:Rt-1}))},ha=Ve.key+this.timeoutBucket.selfIncreaingIncrementId(),xa={...bo,key:ha};this.timeoutBucket.setTimeout(Po,Zn+Xt,xa)};Rt>1?en():this.iterationLinkKeySet.delete(Ve.key)}),(0,r.A)(this,"start",ke=>{let{ita:Ve,itasTotal:st,option:ut}=ke;this.addIterationLinkKeySet(Ve.key),this.isIterableIta(Ve.interactionType)?this.execIterableIta({ita:Ve,itasTotal:st,option:ut}):this.runnerController.switchInteraction(Ve,st,ut)}),(0,r.A)(this,"clear",()=>{this.clearIterationLinkKeySet(),this.requestAnimationFrameId&&cancelAnimationFrame(this.requestAnimationFrameId)}),this.runnerController=Ee,this.timeoutBucket=Ue,this.iterationLinkKeySet=new Set}}const{Shake:sn}=window,It=["pointerdown","pointerup","hold","longpress","tap","click","rightClick","left","right","up","down","dtap","dbclick"],Pt=()=>document.querySelector(".pcanvas.active"),dt=()=>{var pt,Ee;return((pt=MB.runnerController)==null?void 0:pt.getAllActiveKeys().mainCanvasKey)||((Ee=document.querySelector(".pcanvas.active:not(.as-overlay)"))==null?void 0:Ee.dataset.cid)},Vn=pt=>pt?document.querySelector("#pscreen"+pt):Pt(),o=()=>({startTime:Date.now(),sourceCanvas:dt()}),Gn=(pt,Ee)=>{if(pt)for(const ke of Ee){var Ue;const Ve=(Ue=pt.closest)==null?void 0:Ue.call(pt,".clickable."+ke);if(Ve)return Ve}},xt=(pt,Ee)=>(Ee?[Ee,pt]:[pt]).join(",");class Ot{constructor(Ee,Ue){(0,r.A)(this,"highTimer",null),(0,r.A)(this,"swipeDownTarget",null),(0,r.A)(this,"swipeDownTargetCanvas",null),(0,r.A)(this,"_isMobile",!1),(0,r.A)(this,"needRemoveEventListers",[]),(0,r.A)(this,"_pointerGesHasTriggered",!1),(0,r.A)(this,"timeoutBucket",new we),(0,r.A)(this,"onMouseIn",ke=>this.prepareJump(ke,["mouseIn"])),(0,r.A)(this,"onMouseOut",ke=>this.prepareJump(ke,["mouseOut"])),(0,r.A)(this,"shakeHandle",()=>{var ke;const Ve=this.store.getState();if(this.runnerController.isPreventEvent||(0,C.sI)(Ve))return;const st=Vn(this.runnerController.currentCanvasAsMenuOrDrawerKey),ut=st==null||(ke=st.attributes["data-cid"])==null?void 0:ke.value;ut&&this.setupCanvasGlobalInteractions(ut,["shake"],o())}),(0,r.A)(this,"keydownHandle",ke=>{if(this.runnerController.isPreventEvent)return;const Ve=(0,M.AE)({interactionTrigger:j.O.Keydown,keyseq:ke});this.globalEventHandle({nodeTriggers:[Ve]})}),(0,r.A)(this,"inputEventHandle",(ke,Ve)=>{var st,ut,Rt;if(this.runnerController.isPreventEvent)return;const en=ke.closest(".clickable.inputEvent");if(!en)return;const Xt=((st=en.attributes["data-cid"])==null?void 0:st.value)||((ut=en.attributes["data-container-cid"])==null?void 0:ut.value),Zn=(Rt=en.attributes["data-link_cid"])==null?void 0:Rt.value.split(","),bo=(0,M.AE)({interactionTrigger:j.O.InputEvent,event:Ve}),{itasTotal:Po,itasRootLevel:ha}=te.A.getWidgetInteractionsByTrigger(Xt,[bo],this.store,Zn);this.triggerInteractions(ha,Po,o())}),(0,r.A)(this,"globalEventHandle",ke=>{var Ve;let{nodeTriggers:st}=ke;if(!(st!=null&&st.length))return;const ut=this.store.getState();if(this.runnerController.isPreventEvent||(0,C.sI)(ut))return;const Rt=o();if((0,U.hM)(ut)){const{activePageKey:Po}=(0,U.mf)(ut);this.setupCanvasGlobalInteractions(Po,st,Rt);return}const Xt=[];let Zn;this.runnerController.currentCanvasAsMenuOrDrawerKey?Zn=document.querySelector("#pscreen"+this.runnerController.currentCanvasAsMenuOrDrawerKey):(Zn=document.querySelector(".pcanvas.active:not(.as-overlay):not(.in-overlay)"),document.querySelectorAll(".pcanvas.active.as-overlay").forEach(Po=>{var ha;const xa=Po==null||(ha=Po.attributes["data-cid"])==null?void 0:ha.value;xa&&Xt.push(xa)}),Xt.reverse().forEach(Po=>this.setupCanvasGlobalInteractions(Po,st,{...Rt,scope:Po})));const bo=(Ve=Zn)==null?void 0:Ve.dataset.cid;bo&&this.setupCanvasGlobalInteractions(bo,st,Rt)}),(0,r.A)(this,"triggerInteractions",(ke,Ve,st,ut)=>{if(!ke.length)return;const Rt=this.store.getState(),en=(0,U.KR)(Rt),Xt=(0,U.hM)(Rt),{activeCanvasKey:Zn,overlayStack:bo,basketCanvasMap:Po,activePageKey:ha}=(0,U.mf)(Rt);let xa=ut?this.timeoutBucket.runningActionId:void 0;const{sourceCanvas:da,scope:Ko}=st||{},Fa=da&&da!==Zn,Pa=Ko&&!Ko.includes(Zn)&&!bo.some(sr=>sr.isOverlayIn&&(Ko==null?void 0:Ko.includes(sr.targetOverlayKey)))&&![...Po.keys()].some(sr=>Po.get(sr).activeCanvas&&Ko.includes(sr));for(const sr of ke){const vr=sr.interactionTrigger==="timer",Or=Le(sr);if((Fa||Pa)&&Or>0)continue;if(vr&&Or===0&&([B.O2.SetAnimation,B.O2.SetVisibility].includes(sr.interactionType)||sr.interactionType===B.O2.Transform&&He(sr)===0)){const Kr=(0,Se.EW)();if(!Kr||Xt&&Kr.rootKey!==ha){this.runnerController.runnerTreeConstructorCallbackSet.add(()=>this.iterationHandler.start({ita:sr,itasTotal:Ve,option:st}));continue}this.iterationHandler.start({ita:sr,itasTotal:Ve,option:st});continue}const Tr=()=>{const Kr=()=>{this.iterationHandler.start({ita:sr,itasTotal:Ve,option:st})},Ha=sr.key+this.timeoutBucket.selfIncreaingIncrementId(),Br={...st,key:Ha};this.timeoutBucket.setTimeout(Kr,vr?Or+50:Or,Br,xa),ut&&(xa=Ha)};if(vr&&!ut){if(en&&!this.runnerController.didInit()){this.runnerController.initedCallbackBucket.add(Tr);continue}this.runnerController.timerEventCallbackSet.add(Tr);continue}Tr()}}),this.store=Ee,this.runnerController=Ue,this.store=Ee,this.eventBucket=new W,this.runnerController=Ue,this.iterationHandler=new Oe(this.runnerController,this.timeoutBucket)}get isMobile(){return this._isMobile}set isMobile(Ee){this._isMobile=Ee}get pointerGesHasTriggered(){return this._pointerGesHasTriggered}init(Ee,Ue){if(!Ee)return;const{isImmersive:ke,isMobile:Ve=!1}=Ue||{};this.isMobile=Ve;const st=new(ne()).Manager(Ee);st.set({touchAction:"auto",inputClass:(0,l.Fr)()?ne().TouchInput:null});const ut=new(ne()).Tap({event:"singletap",interval:0}),Rt=new(ne()).Tap({event:"doubletap",taps:2}),en=new(ne()).Swipe({event:"swipe",direction:ne().DIRECTION_ALL,velocity:.05,threshold:10}),Xt=new(ne()).Pan({event:"pan",direction:ne().DIRECTION_ALL,threshold:10}),Zn=new(ne()).Press({event:"press"});st.add([Rt,ut]),st.add([Xt,en]),st.add(Zn),Rt.recognizeWith(ut),ut.requireFailure(Rt),Xt.recognizeWith(en),st.on("panstart",Ko=>{switch(this.prepareJump(Ko,["panstart"],!1),Ko.additionalEvent){case"panleft":this.prepareJump(Ko,["left"]);break;case"panright":this.prepareJump(Ko,["right"]);break;case"panup":this.prepareJump(Ko,["up"]);break;case"pandown":this.prepareJump(Ko,["down"]);break;default:break}}),st.on("panend",Ko=>{this.prepareJump(Ko,["panend"],!1)}),st.on("press",Ko=>{this.prepareJump(Ko,["hold","longpress"])}),st.on("doubletap",Ko=>{this.prepareJump(Ko,["dtap","dbclick"])}),st.on("singletap",Ko=>{this.prepareJump(Ko,["tap","click"])}),new sn({threshold:15}).start(),window.addEventListener("shake",this.shakeHandle),this.needRemoveEventListers.push(()=>window.removeEventListener("shake",this.shakeHandle));const Po=Ko=>{this.dragPanelEventHandler(Ko,{isImmersive:ke,isMobile:Ve}),Ko.button===2&&this.prepareJump(Ko,["rightClick"])};Ee.addEventListener("mousedown",Po),this.needRemoveEventListers.push(()=>Ee==null?void 0:Ee.removeEventListener("mousedown",Po));const ha=Ko=>{this.prepareJump(Ko,["pointerdown"]),da(Ko)};Ee.addEventListener("pointerdown",ha),this.needRemoveEventListers.push(()=>Ee==null?void 0:Ee.removeEventListener("pointerdown",ha));const xa=Ko=>{this.prepareJump(Ko,["pointerup"],!1)};Ee.addEventListener("pointerup",xa),this.needRemoveEventListers.push(()=>Ee==null?void 0:Ee.removeEventListener("pointerup",xa)),mt();const da=Ko=>$({clientX:Ko.clientX,clientY:Ko.clientY});Ee.addEventListener("pointerenter",da),Ee.addEventListener("pointermove",da),this.needRemoveEventListers.push(()=>Ee==null?void 0:Ee.removeEventListener("pointerenter",da),()=>Ee==null?void 0:Ee.removeEventListener("pointermove",da)),this.hammertime=st,this.initKeyboardEvent()}initKeyboardEvent(){let Ee;(0,U.k6)(this.store.getState())&&(Ee=document.getElementById(y.er.CanvasModal)),(0,U.hM)(this.store.getState())&&(Ee=document.getElementById(y.er.ComboModal)),(0,U.KR)(this.store.getState())&&(Ee=document.getElementById(y.er.PanelModal)),this._keydownRecorder=new w.Ay({containerEle:Ee,onCompleteCallback:Ue=>{let ke=[Ue];if(!(0,l.cX)()){if(Ue.includes("Meta"))return;Ue.includes("Control")&&(ke=[Ue,Ue.replace("Control","Meta")])}ke.forEach(Ve=>this.keydownHandle(Ve))}})}initMouseEvent(Ee){var Ue,ke;(Ue=Ee.querySelectorAll(".mouseIn"))==null||Ue.forEach(st=>{st.removeEventListener("mouseenter",this.onMouseIn),st.addEventListener("mouseenter",this.onMouseIn)}),(ke=Ee.querySelectorAll(".mouseOut"))==null||ke.forEach(st=>{st.removeEventListener("mouseleave",this.onMouseOut),st.addEventListener("mouseleave",this.onMouseOut)});const Ve=()=>{var st,ut;(st=Ee.querySelectorAll(".mouseIn"))==null||st.forEach(en=>{en.removeEventListener("mouseenter",this.onMouseIn)}),(ut=Ee.querySelectorAll(".mouseOut"))==null||ut.forEach(en=>{en.removeEventListener("mouseleave",this.onMouseOut)});const Rt=this.needRemoveEventListers.indexOf(Ve);Rt>-1&&this.needRemoveEventListers.splice(Rt,1)};return this.needRemoveEventListers.push(Ve),Ve}clear(){var Ee,Ue;this.needRemoveEventListers.forEach(ke=>ke()),this.needRemoveEventListers=[],(Ee=this.hammertime)==null||Ee.destroy(),this.hammertime=null,(Ue=this._keydownRecorder)==null||Ue.destroyRecording(),this.iterationHandler.clear()}prepareJump(Ee,Ue,ke){var Ve,st,ut,Rt,en;ke===void 0&&(ke=!0),Ue.includes(j.O.PointerDown)&&(this._pointerGesHasTriggered=!1);const Xt=o(),Zn=this.store.getState();if(this.runnerController.isPreventEvent||(0,C.sI)(Zn)||!(Ee!=null&&(Ve=Ee.target)!=null&&Ve.closest))return;let bo=Ee.target.closest(".clickable");if((st=bo)!=null&&st.classList.contains("wElbow")&&!((ut=Ee.target.classList)!=null&&ut.contains("line-path-ghost"))&&(bo=null),Ue.includes("mouseOut")?bo=Ee.target.closest(".mouseOut"):Ue.includes("mouseIn")?bo=Ee.target.closest(".mouseIn"):bo=Gn(bo,Ue)||bo,!this.isMobile&&(Ue.includes("left")||Ue.includes("right")||Ue.includes("up")||Ue.includes("down")))if(bo){if(!this.swipeDownTarget||this.swipeDownTarget!==bo&&!bo.contains(this.swipeDownTarget))return}else this.swipeDownTarget&&(bo=this.swipeDownTarget);const Po=Ee.target.closest(".panel");let ha;Ue.includes("shake")?ha=Vn(this.runnerController.currentCanvasAsMenuOrDrawerKey):ha=Ee.target.closest(".pcanvas"),Ue.includes("panstart")&&(bo&&(this.swipeDownTarget=bo),ha&&(this.swipeDownTargetCanvas=ha)),Ue.includes("panend")&&(this.swipeDownTarget=null,this.swipeDownTargetCanvas=null);const xa=(0,U.hM)(Zn),da=(0,U.Re)(Zn),Ko=(0,U.ub)(Zn);if(!this.isMobile&&!ha&&!xa&&!Ko)if(Ue.includes("left")||Ue.includes("right")||Ue.includes("up")||Ue.includes("down"))this.swipeDownTargetCanvas&&(ha=this.swipeDownTargetCanvas);else return;const Fa=(Rt=ha)==null||(Rt=Rt.attributes["data-cid"])==null?void 0:Rt.value;if(this.runnerController.currentCanvasAsMenuOrDrawerKey&&!Ee.target.closest(".overlay-runner")&&!((en=Vn(this.runnerController.currentCanvasAsMenuOrDrawerKey))!=null&&en.contains(Ee.target))&&!Ze(Ue))return this.runnerController.closeMenu();const Pa=Fa&&sdkStore.getHotItem(Fa);if((Pa==null?void 0:Pa.hotAttr.type)==="rResCanvas"&&Pa.hotAttr.asOverlay&&(Xt.scope=Fa),Po){if(this.basketEventHandler(Ee,Ue,Xt))return}else if(bo){var sr,vr,Or;const Tr=((sr=bo.attributes["data-cid"])==null?void 0:sr.value)||((vr=bo.attributes["data-container-cid"])==null?void 0:vr.value),Kr=(Or=bo.attributes["data-link_cid"])==null?void 0:Or.value;if(!Kr)return;const Ha=Kr.split(","),{itasTotal:Br,itasRootLevel:Gi}=te.A.getWidgetInteractionsByTrigger(Tr,Ue,this.store,Ha);if(Ue.includes(j.O.PointerDown)){const{itasRootLevel:xi}=te.A.getWidgetInteractionsByTrigger(Tr,It,this.store,Ha);this._pointerGesHasTriggered=xi.length>0}this.triggerInteractions(Gi,Br,Xt);return}if(Fa){const{itasRootLevel:Tr,itasTotal:Kr}=te.A.getWidgetInteractionsByTrigger(Fa,Ue),Ha=(0,U.KR)(this.store.getState()),Br=Tr.filter(Gi=>!(Ha&&[1,2].includes(Gi.interactionType)));this.triggerInteractions(Br,Kr,Xt)}if(ke&&da&&!Ze(Ue)&&!Ee.target.closest(".play-pause")&&!Ee.target.closest(".audio-progress")&&!Ee.target.closest(".video")&&!Ee.target.closest(".annotate")){if(It.some(Tr=>Ue.includes(Tr))&&this._pointerGesHasTriggered)return;this.highlightClickables(Ee)}}basketEventHandler(Ee,Ue,ke){var Ve,st;const ut=this.store.getState(),Rt=Gn(Ee.target,Ue)||Ee.target.closest(".clickable"),Xt=Ee.target.closest(".panel").closest(".tree-node").attributes["data-cid"].value,Zn=((Ve=ke)!=null&&Ve.scope?[(st=ke)==null?void 0:st.scope,Xt]:[Xt]).join(",");if(ke={...ke,scope:Zn},Rt){var bo,Po;const da=((bo=Rt.attributes["data-cid"])==null?void 0:bo.value)||((Po=Rt.attributes["data-container-cid"])==null?void 0:Po.value),Ko=Rt.attributes["data-link_cid"].value.split(","),{itasTotal:Fa,itasRootLevel:Pa}=te.A.getWidgetInteractionsByTrigger(da,Ue,this.store,Ko);if(Ue.includes(j.O.PointerDown)){const{itasRootLevel:sr}=te.A.getWidgetInteractionsByTrigger(da,It,this.store,Ko);this._pointerGesHasTriggered=sr.length>0}return Pa.length===0?!1:(this.triggerInteractions(Pa,Fa,ke),!0)}const xa=(0,U.mf)(ut)[Xt];if(xa){const{itasRootLevel:da,itasTotal:Ko}=te.A.getWidgetInteractionsByTrigger(xa,Ue),Fa=da[0];if(Fa)return this.triggerInteractions([Fa],Ko,ke),!0}return!1}highlightClickables(Ee){if(Ee.target.closest(".canClickableHighWidget"))return;let Ue=[];if(Ee.target.closest(".pcanvas.as-overlay")){var ke;const Ve=((ke=Array.from(document.querySelectorAll(".pcanvas.as-overlay")).at(-1))==null?void 0:ke.querySelectorAll(".region"))||[];Ue=Array.from(Ve)}else{const Ve=document.querySelectorAll(".pcanvas.active .region"),st=document.querySelectorAll(".pnoncanvas .region");Ue=Array.from(Ve).concat(Array.from(st))}Ue.forEach(Ve=>{Ve.style.display="block"}),this.highTimer=setTimeout(()=>{Ue.forEach(Ve=>{Ve.style.display="none"})},400)}setupPageGesture(Ee){const{itasRootLevel:Ue}=te.A.getWidgetInteractionsByTrigger(Ee,["left","right","up","down"]);if(Ue.length===0)return;const ke=[];Ue.forEach(ut=>{const{interactionTrigger:Rt}=ut;switch(Rt){case"left":case"right":{ke.indexOf("pan-y")===-1&&ke.push("pan-y");break}case"up":case"down":{ke.indexOf("pan-x")===-1&&ke.push("pan-x");break}}});const Ve=ke.length?ke.join(" "):"auto";this.hammertime.touchAction.actions=Ve;const st=document.querySelector(".pcanvas.active .widgets");st&&(st.style.touchAction=Ve)}dragPanelEventHandler(Ee,Ue){let{isImmersive:ke,isMobile:Ve}=Ue;if(Ve||ke)return;const st=Ee.target.closest(".wMapView div"),ut=Ee.target.closest(".panel"),Rt=st||ut;if(!Rt||Rt.clientWidth===Rt.scrollWidth&&Rt.clientHeight===Rt.scrollHeight)return;const{clientX:en,clientY:Xt}=Ee,{scrollTop:Zn,scrollLeft:bo}=Rt;let Po=0;const ha=da=>{da.preventDefault(),Po++,Rt.scrollTop=Zn-(da.clientY-Xt),Rt.scrollLeft=bo-(da.clientX-en)},xa=()=>{Po>5&&this.eventBucket.isCoolDown(),document.removeEventListener("mousemove",ha),document.removeEventListener("mouseup",xa)};document.addEventListener("mousemove",ha),document.addEventListener("mouseup",xa)}setupCanvasGlobalInteractions(Ee,Ue,ke){var Ve,st;(Ve=ke)!=null&&Ve.startTime||(ke={...ke,startTime:Date.now()}),(st=ke)!=null&&st.sourceCanvas||(ke={...ke,sourceCanvas:dt()});const ut=sdkStore.getHotItem(Ee);(ut==null?void 0:ut.hotAttr.type)==="rResCanvas"&&ut.hotAttr.asOverlay&&(ke={...ke,scope:Ee}),(0,an.r)(Ee,Rt=>{const{key:en}=Rt;if(this.addHiInteractions(en,Ue,ke),Rt.hotAttr.type==="wBasket")return Rt.sub.length?this.setupBasketGlobalInteractions(Rt.key,Rt.sub[0],Ue,ke):console.error("[Bad Basket without sub keys]",Rt.key),!1})}setupBasketGlobalInteractions(Ee,Ue,ke,Ve){var st;const ut=xt(Ee,Ve==null?void 0:Ve.scope),Rt=this.store.getState(),{basketCanvasMap:en}=(0,U.mf)(Rt),Xt=(en==null||(st=en.get(Ee))==null?void 0:st.activeCanvas)||Ue;this.setupCanvasGlobalInteractions(Xt,ke,{...Ve,scope:ut})}addHiInteractions(Ee,Ue,ke){const{itasRootLevel:Ve,itasTotal:st}=te.A.getWidgetInteractionsByTrigger(Ee,Ue,this.store);Ve.length&&this.triggerInteractions(Ve,st,ke)}setupCanvasTimers(Ee,Ue,ke){var Ve,st;Ue&&this.clearScopeActions(),(Ve=ke)!=null&&Ve.startTime||(ke={...ke,startTime:Date.now()});const ut=this.store.getState(),{activeCanvasKey:Rt}=(0,U.mf)(ut);(st=ke)!=null&&st.sourceCanvas||(ke={...ke,sourceCanvas:Rt});const en=sdkStore.getHotItem(Ee);(en==null?void 0:en.hotAttr.type)==="rResCanvas"&&en.hotAttr.asOverlay&&(ke={...ke,scope:Ee}),(0,an.r)(Ee,Xt=>{if(this.addHiInteractions(Xt.key,["timer"],ke),Xt.hotAttr.type==="wBasket")return Xt.sub.length?this.setupBasketTimers(Xt.key,Xt.sub[0],ke):console.error("[Bad Basket without sub keys]",Xt.key),!1})}setupBasketTimers(Ee,Ue,ke){if(!Ue)return;this.clearScopeActions(Ee);const Ve=xt(Ee,ke==null?void 0:ke.scope);this.setupCanvasTimers(Ue,!1,{...ke,scope:Ve})}clearScopeActions(Ee,Ue){Ee===void 0&&(Ee=""),this.timeoutBucket.clearScope(Ee,Ue)}clearTimeout(){this.timeoutBucket.clear()}}var wt=s(20089),Kt=s(20389);const fe=function(pt,Ee){return Ee===void 0&&(Ee=""),pt?(0,M.AE)({interactionTrigger:"listener",listenTarKey:pt,listenTarAttr:Ee}):""},bt=pt=>{let{widgetKey:Ee,attrKey:Ue="TC",newValue:ke,oldValue:Ve}=pt;const st=[];if(ke!==Ve){const ut=fe(Ee,Ue);if(ut&&st.push(ut),Ue==="TC"&&String(ke).length!==String(Ve).length){const Rt=fe(Ee,"TL");Rt&&st.push(Rt)}}return st},un=(pt,Ee)=>{if(!pt||!Ee||pt===Ee||pt.key!==Ee.key)return[];const{key:Ue,hotAttr:ke}=pt,{hotAttr:Ve}=Ee,st=["TC","O","W","H","R","RX","RY","TRLX","TRLY","SCLX","SCLY"],ut=[];return st.forEach(Rt=>{ut.push(...bt({widgetKey:Ue,attrKey:Rt,newValue:gt(ke,Rt),oldValue:gt(Ve,Rt)}))}),ut},gt=function(pt,Ee){var Ue,ke,Ve,st,ut,Rt,en;if(Ee===void 0&&(Ee="TC"),!pt)return"";const Xt=Zn=>{var bo;switch(!0){case!!Zn.textV1:return(0,Kt.o6)(Zn.textV1);case(Zn.type===wt.x.WMTextInput||Zn.type===wt.x.WMTextArea):return Zn.textInput.prefillTextV0;case Zn.type===wt.x.WDigitalStepper:return Zn.digitalStepper.value;case Zn.type===wt.x.WPaginationWeb:return Zn.paginationWeb.curPage;case Zn.type===wt.x.WPaginationMobile:return Zn.paginationMobile.curPage;default:return(bo=Zn.textV0)==null?void 0:bo.text}};switch(Ee){case"TC":return Xt(pt);case"O":return pt.opacity;case"W":return pt.w;case"H":return pt.h;case"R":return((Ue=pt.runnerTransform)==null?void 0:Ue.rotateZ)||pt.r||0;case"RX":return((ke=pt.runnerTransform)==null?void 0:ke.rotateX)||0;case"RY":return((Ve=pt.runnerTransform)==null?void 0:Ve.rotateY)||0;case"TRLX":return((st=pt.runnerTransform)==null?void 0:st.translateX)||0;case"TRLY":return((ut=pt.runnerTransform)==null?void 0:ut.translateY)||0;case"SCLX":return((Rt=pt.runnerTransform)==null?void 0:Rt.scaleX)||100;case"SCLY":return((en=pt.runnerTransform)==null?void 0:en.scaleY)||100;default:return""}},Wt=(pt,Ee,Ue)=>{const ke=Ee.getInteractionsOf(pt);ke&&ke.forEach(Ve=>{var st;!Ve.triggerDisable&&!Ve.actionDisable&&Ve.interactionType!==B.O2.TriggerPlaceHolder&&Ve.interactionTrigger===j.O.Listener&&!((st=Ve.listenTarKey)!=null&&st.startsWith(M._x))&&Ue.add((0,M.AE)(Ve))})};class Un{constructor(Ee,Ue){var ke=this;(0,r.A)(this,"subListenerTriggersMap",new Map),(0,r.A)(this,"wItemSnapshot",new Map),(0,r.A)(this,"curListenerSnapshotMap",new Map),(0,r.A)(this,"isSdkChanged",!1),(0,r.A)(this,"listenerHandle",Ve=>{!Ve||Ve.length===0||this.eventHandler.globalEventHandle({nodeTriggers:Ve})}),(0,r.A)(this,"compareWAttrSnapshot",()=>{const Ve=(0,Se.yV)(),st=new Set;return Array.from(this.wItemSnapshot).forEach(ut=>{let[Rt,en]=ut;const Xt=Ve.getHotItem(Rt),Zn=en||sdkStore.getHotItem(Rt),bo=un(Xt,Zn);bo&&bo.forEach(Po=>st.add(Po))}),st}),(0,r.A)(this,"wAttrChangeItaListener",()=>{const Ve=this.compareWAttrSnapshot();Ve.size!==0&&this.listenerHandle(Array.from(Ve))}),(0,r.A)(this,"getTriggers",()=>{var Ve;return this.isSdkChanged?(this.isSdkChanged=!1,this.updateListenerTriggers()):(Ve=this.listenerTriggers)!=null?Ve:this.updateListenerTriggers()}),(0,r.A)(this,"updateListenerTriggers",()=>{const Ve=(0,Se.yV)(),st=Ve.hotItemSnapshot;return st?(this.listenerTriggers=new Set,Array.from(st).forEach(ut=>{let[Rt]=ut;return Wt(Rt,Ve,this.listenerTriggers)}),this.listenerTriggers):new Set}),(0,r.A)(this,"getSubKeyTriggers",Ve=>{var st;const{basketCanvasKeys:ut,overlayCanvasKeys:Rt}=MB.runnerController.getAllActiveKeys();if([...ut,...Rt].includes(Ve))return this.isSdkChanged?(this.isSdkChanged=!1,this.updateSubListenerTriggersMap(Ve)):(st=this.subListenerTriggersMap.get(Ve))!=null?st:this.updateSubListenerTriggersMap(Ve)}),(0,r.A)(this,"updateSubListenerTriggersMap",Ve=>{var st;const ut=(0,Se.yV)(),Rt=ut.hotItemSnapshot;if(!Rt)return new Set;const en=new Set;return(st=Rt.get(Ve))==null||st.sub.forEach(Xt=>Wt(Xt,ut,en)),this.subListenerTriggersMap.set(Ve,en),en}),(0,r.A)(this,"updateCurWItemSnapshot",()=>{const Ve=(0,Se.yV)(),st=Ve.hotItemSnapshot;if(!st)return new Set;const ut=this.getTriggers();Array.from(ut).forEach(Rt=>{const[,en]=(0,M.Tq)(Rt);if(Ve.isTrashed(en))return;const Xt=st.get(en);Xt&&Xt.hotAttr.type!==wt.x.Var&&this.wItemSnapshot.set(en,Xt)})}),(0,r.A)(this,"updateListenerTriggersBySDK",()=>{this.isSdkChanged=!0}),(0,r.A)(this,"updateCurListenerSnapshotMap",Ve=>{if(!Ve)return;const st=(0,Se.yV)(),ut=this.getTriggers(),Rt=Array.from(ut).reduce((en,Xt)=>{const[,Zn,bo]=(0,M.Tq)(Xt);if(st.isTrashed(Zn))return en;const Po=st.getHotItem(Zn);if(!Po)return en;if(Po.hotAttr.type===wt.x.Var){var ha;const da=(ha=MB.runnerController.variableStore.getVariableMap().get(Zn))==null?void 0:ha.varData;en.set(Xt,da)}else{const xa=gt(Po.hotAttr,bo);en.set(Xt,xa)}return en},new Map);if(Rt.size>0){this.curListenerSnapshotMap.set(Ve,Rt);const{basketCanvasKeys:en}=MB.runnerController.getAllActiveKeys();en&&en.forEach(Xt=>Xt&&this.curListenerSnapshotMap.set(Xt,Rt))}}),(0,r.A)(this,"listenerHandleAfterload",function(Ve,st){if(st===void 0&&(st=!1),!Ve)return;const ut=ke.getSubKeyTriggers(Ve)||ke.updateListenerTriggers();if(!st&&ut&&ut.size>0){const Rt=Array.from(ut).filter(en=>{const[,Xt,Zn]=(0,M.Tq)(en);if(sdkStore.isTrashed(Xt))return!1;const bo=sdkStore.getHotItem(Xt);if(!bo)return!1;const Po=ke.curListenerSnapshotMap.get(Ve),ha=Po==null?void 0:Po.get(en);if(bo.hotAttr.type===wt.x.Var){var xa;const Ko=ha!=null?ha:bo.hotAttr.varData,Pa=(xa=MB.runnerController.variableStore.getVariableMap().get(Xt))==null?void 0:xa.varData;return Ko!==Pa}else{var da;const Ko=ha!=null?ha:gt(bo.hotAttr,Zn),Fa=(da=(0,Se.yV)())==null?void 0:da.getHotItem(Xt);if(!Fa)return!1;const Pa=gt(Fa.hotAttr,Zn);return Ko!==Pa}});ke.listenerHandle(Rt)}}),(0,r.A)(this,"clear",()=>{this.wItemSnapshot.clear(),this.listenerTriggers=void 0,this.subListenerTriggersMap.clear(),this.curListenerSnapshotMap.clear()}),this.store=Ee,this.eventHandler=Ue}varChangeItaListener(Ee){let{newVarItem:Ue}=Ee;if(!Ue)return;const ke=[];if(Ue.varData!==Ue.oldVarData){const st=fe(Ue.key);st&&ke.push(st)}const Ve=this.compareWAttrSnapshot();ke.push(...Array.from(Ve)),this.listenerHandle(ke)}}var Jn=s(24281),Yt=s(68033),rt=s(70248);const An=function(pt,Ee,Ue){Ee===void 0&&(Ee="hasVerticalScroll");let ke;const Ve=Ee==="hasVerticalScroll"?["y","maxScrollY"]:["x","maxScrollX"],st=en=>en&&en[Ee]&&(Ue<0?en[Ve[0]]>en[Ve[1]]:en[Ve[0]]<0);if(st(pt))return pt;for(;ke=(ut=pt)==null||(ut=ut.wrapper)==null||(ut=ut.parentElement)==null||(ut=ut.closest(".screen-content"))==null||(ut=ut.closest(".pcanvas"))==null||(ut=ut.dataset)==null?void 0:ut.cid;){var ut,Rt;if(pt=(Rt=MB.runnerController)==null?void 0:Rt.scrollHandler.getScroller(ke),st(pt))return pt}};let Nt=null,jt=null,vn=null;const Dt=(pt,Ee,Ue)=>{var ke,Ve;if(pt.metaKey||pt.ctrlKey||pt.buttons===4)return!0;const st=(ke=(Ve=pt.target).closest)==null?void 0:ke.call(Ve,".widget");if(st&&(st.classList.contains("wWebpage")||st.classList.contains("wMapView")||st.querySelector("input")||st.querySelector("textarea")&&!st.classList.contains("wTable"))||pt.touches&&pt.touches.length===2)return!0;if(!Ue){var ut,Rt;jt=null;const Zn=(ut=(Rt=pt.target).closest)==null?void 0:ut.call(Rt,".panel:not(."+Yt.M5[Yt.Ci.hide]+")");(!Zn||Zn.contains(Ee.wrapper))&&(Nt=Ee)}if(jt)return jt!==Ee;let en,Xt=!1;return Ue!=null&&Ue.deltaX&&Nt&&(en=An(Nt,"hasHorizontalScroll",Ue.deltaX),Xt=!0),Ue!=null&&Ue.deltaY&&Nt&&(en=An(Nt,"hasVerticalScroll",Ue.deltaY),Xt=!0),en?(jt=Nt=en,Nt!==Ee):!!Xt},$t=(pt,Ee)=>{var Ue,ke;if(pt.metaKey||pt.ctrlKey)return!0;const Ve=(Ue=pt.target)==null||(ke=Ue.closest)==null?void 0:ke.call(Ue,".scrollable-widget");if(jt)return(jt===Ee||jt===Ve)&&(vn&&clearTimeout(vn),vn=setTimeout(()=>{jt=null},300)),jt.wrapper?jt!==Ee:(jt===Ve&&pt.stopPropagation(),!!Ve);const{deltaX:st,deltaY:ut}=pt;if(Ve){const{clientHeight:Zn,clientWidth:bo,scrollHeight:Po,scrollWidth:ha,scrollTop:xa,scrollLeft:da}=Ve;if(Zn<Po&&ut&&(ut>0?xa+Zn<Po:xa>0)||bo<ha&&st&&(st>0?da+bo<ha:da>0))return jt=Ve,pt.stopPropagation(),vn=setTimeout(()=>{jt=null},300),!0}const Rt=Ee.hasVerticalScroll?ut:0,en=Ee.hasHorizontalScroll?st:0;return(Rt>0&&Ee.maxScrollY<Ee.y||Rt<0&&Ee.y<0||en>0&&Ee.maxScrollX<Ee.x||en<0&&Ee.x<0)&&(jt=Ee,vn=setTimeout(()=>{jt=null},300)),!1},kn={useTransform:!1,disableTouch:!1,disablePointer:!0,preventDefault:!0,probeType:3,ignoreEventException:(pt,Ee,Ue)=>pt.type!=="wheel"?Dt(pt,Ee,Ue):$t(pt,Ee)},Kn={...kn,scrollbars:!0,mouseWheel:!0,disableMouse:!1,interactiveScrollbars:!0,shrinkScrollbars:"scale",fadeScrollbars:!0,HWCompositing:!1};class dn{constructor(Ee,Ue){(0,r.A)(this,"_lockedTarget",null),(0,r.A)(this,"toBeRemovedListers",{}),this.store=Ee,this.runner=Ue,this.iScrollMap={},this.stickyWidgetListMap={}}toggleScrollBar(Ee){Object.values(this.iScrollMap).forEach(Ue=>{Ee?Ue.enable():Ue.disable()})}disableScrollBar(Ee){const Ue=this.iScrollMap[Ee];Ue&&Ue.disable()}renderScrollbar(Ee,Ue){this.iScrollMap[Ee]?this.refreshScrollBar(Ee):this.initScrollBar(Ee,Ue),this.resetPanelPreviewModeScrollPos(Ee)}clear(){this.destroyScrollBar(),this._lockedTarget=null}refreshScrollBar(Ee){this.iScrollMap[Ee]&&this.iScrollMap[Ee].refresh()}initScrollBar(Ee,Ue){if(this.iScrollMap[Ee])return;const ke=this.store.getState(),st=(((0,U.k6)(ke)?"#IBOT_MODAL_ROOT ":"")+"#pscreen"+Ee+">.screen-content").replaceAll("/","\\/"),ut=document.querySelector(st);if(!ut)return;const Rt=!ut.offsetParent&&ut.closest('[style*="display: none;"]');if(Rt){const Po=new MutationObserver(()=>{ut.offsetParent&&(this.refreshScrollBar(Ee),Po.disconnect())});Po.observe(Rt,{subtree:!0,attributes:!0})}const en=(0,l.Fr)()?kn:Kn,Xt=te.A.getScreenScrollTop(this.store,Ee),Zn=te.A.getScreenScrollLeft(this.store,Ee);en.startY=Xt||0,en.startX=Zn||0;const bo=new window.IScroll(ut,{...en,...Ue});this.updateStickyWidgetList(Ee),this.updateStickyBehavior(Ee,Xt),bo.on("scroll",()=>{this.updateStickyBehavior(Ee,bo.y),this.runner.updateScrollTop(Ee,bo.y),this.runner.updateScrollLeft(Ee,bo.x)}),this.iScrollMap[Ee]=bo}resetScreenScrollState(Ee){this.runner.updateScrollTop(Ee,0),this.runner.updateScrollLeft(Ee,0)}destroyScrollBar(){Object.keys(this.iScrollMap).forEach(Ee=>{this.destroyScrollBarByCid(Ee)}),this.iScrollMap={}}destroyScrollBarByCid(Ee){const Ue=this.iScrollMap[Ee];if(Ue){var ke,Ve;Nt===Ue&&(Nt=null),jt===Ue&&(jt=null),Ue.destroy(),(ke=(Ve=this.toBeRemovedListers)[Ee])==null||ke.call(Ve),delete this.iScrollMap[Ee],delete this.toBeRemovedListers[Ee]}}resetCurrentScreenScrollState(Ee){const Ue=this.iScrollMap[Ee];Ue&&Ue.scrollTo(0,0)}resetScrollState(){Object.values(this.iScrollMap).forEach(Ee=>Ee.scrollTo(0,0)),this.runner.resetScreenScrollTopMap(),this.runner.resetScreenScrollLeftMap()}scrollTo(Ee,Ue,ke,Ve){var st;Ve===void 0&&(Ve={duration:0});const ut=this.iScrollMap[Ee];if(!ut)return;const Rt=Ue!==null?Math.max(-Ue,ut.maxScrollX):ut.x,en=ke!==null?Math.max(-ke,ut.maxScrollY):ut.y;this.iScrollMap[Ee]&&(ut.scrollTo(Rt,en,Ve.duration),setTimeout(()=>{var Xt,Zn;if(!this.iScrollMap[Ee])return;const bo=this.store&&(0,U.mf)(this.store.getState());bo&&(((Xt=bo.screenScrollTopMap)==null?void 0:Xt[Ee])!==ut.y&&this.runner.updateScrollTop(Ee,ut.y),((Zn=bo.screenScrollLeftMap)==null?void 0:Zn[Ee])!==ut.x&&this.runner.updateScrollLeft(Ee,ut.x),this.updateStickyBehavior(Ee,ut.y))},((st=Ve.duration)!=null?st:0)+1))}updateStickyWidgetList(Ee,Ue){if(!Ue){const ke=this.store.getState(),Ve=(0,U.KR)(ke),st=(0,U.Mo)(ke),ut=Ve&&sdkStore.getHotItem(st).hotAttr.type==="wBasket"?"shadow-sticky":"sticky",Rt=document.querySelectorAll("."+ut);Ue=Array.from(Rt)}this.stickyWidgetListMap[Ee]=Ue}updateStickyBehavior(Ee,Ue){var ke;if(!((ke=this.stickyWidgetListMap[Ee])!=null&&ke.length))return;const Ve=this.store.getState(),st=(0,U.KR)(Ve),ut=(0,U.Mo)(Ve),Rt=Ue!==void 0?Ue:te.A.getScreenScrollTop(this.store,Ee);(0,Jn.ZA)({stickyWidgetList:this.stickyWidgetListMap[Ee],scrollTop:Rt,returnFunc:en=>{if(st)return(0,Jn.VG)(en,ut)},runnerCanvasKey:Ee})}resetStickyBehavior(Ee){var Ue;if(!((Ue=this.stickyWidgetListMap[Ee])!=null&&Ue.length))return;const ke=this.store.getState(),Ve=(0,U.KR)(ke),st=(0,U.Mo)(ke);(0,Jn.mC)({stickyWidgetList:this.stickyWidgetListMap[Ee],returnFunc:ut=>{if(Ve)return(0,Jn.VG)(ut,st)},runnerCanvasKey:Ee})}resetPanelPreviewModeScrollPos(Ee){if(!Ee)return;const Ue=this.iScrollMap[Ee];if(!Ue||MB.runnerController.resetHandler.getWScrollMap(Ee)||!(0,rt.OO)(Ee)&&sdkStore.locTopRBActiveKey(Ee)!==Me.fW)return;const Ve=sdkStore.getSourceHotItem(Ee);if(!Ve||!(Ve!=null&&Ve.hotAttr))return;const{hotAttr:{x:st,y:ut,w:Rt,h:en}}=Ve,Xt=Math.max(0,-st+Rt/2),Zn=Math.max(0,-ut+en/2);this.runner.updateScrollLeft(Ee,-Xt),this.runner.updateScrollTop(Ee,-Zn),Ue.scrollTo(Math.max(-Xt,Ue.maxScrollX),Math.max(-Zn,Ue.maxScrollY),0),this.updateStickyBehavior(Ee,Ue.y),MB.runnerController.resetHandler.updateWScrollMap(Ee,{scrollTop:-Zn,scrollLeft:-Xt})}getScroller(Ee){return this.iScrollMap[Ee]}}class ft{constructor(Ee){var Ue=this;(0,r.A)(this,"subscribeChartsOption",ke=>(this.chartsOptionListener.add(ke),()=>{this.chartsOptionListener.delete(ke)})),(0,r.A)(this,"emitChartsOption",()=>{this.chartsOptionListener.forEach(ke=>ke())}),(0,r.A)(this,"getWStatus",function(ke,Ve){var st;return Ve===void 0&&(Ve=""),Ve?(st=Ue.wStatusMap.get(ke))==null?void 0:st[Ve]:Ue.wStatusMap.get(ke)||{}}),(0,r.A)(this,"getWScrollMap",ke=>this.wScrollMap.get(ke)),(0,r.A)(this,"updateWStatusMap",(ke,Ve)=>{const ut={...this.wStatusMap.get(ke),...Ve};this.wStatusMap.set(ke,ut)}),(0,r.A)(this,"updateWScrollMap",(ke,Ve)=>{const ut={...this.wScrollMap.get(ke),...Ve};this.wScrollMap.set(ke,ut)}),(0,r.A)(this,"deleteWStatus",ke=>{ke&&this.wStatusMap.delete(ke)}),(0,r.A)(this,"deleteWScroll",ke=>{ke&&this.wScrollMap.delete(ke)}),(0,r.A)(this,"resetCurWStatus",ke=>{var Ve;(Ve=(0,Se.EW)())==null||Ve.resetCurWStatus(ke,this.deleteWStatus)}),(0,r.A)(this,"resetCurWScroll",ke=>{var Ve;const st=(0,Se.EW)();st==null||st.resetCurWScroll(ke,this.deleteWScroll),(st==null||(Ve=st.sdkStore.getHotItem(ke))==null?void 0:Ve.hotAttr.type)===wt.x.Canvas&&MB.runnerController.resetScreenScrollState(ke)}),(0,r.A)(this,"clearWStatusMap",()=>{this.wStatusMap.clear()}),(0,r.A)(this,"clearWScrollMap",()=>{this.wScrollMap.clear()}),(0,r.A)(this,"clear",()=>{this.clearWStatusMap(),this.clearWScrollMap()}),(0,r.A)(this,"resetRunnerState",()=>{var ke;this.clear(),MB.runnerController.resetRunnerState(),(ke=(0,Se.EW)())==null||ke.resetRunnerState()}),this.store=Ee,this.wStatusMap=new Map,this.wScrollMap=new Map,this.chartsOptionListener=new Set}}class Lt{constructor(Ee){this.store=Ee,this.store=Ee}setCurrentScreen(Ee){this.store.dispatch({type:"preview:current:update:state",payload:{screenMeta:Ee}})}reloadScreen(Ee){this.store.dispatch({type:"entry:runner:reload:screen",payload:{activeCid:Ee}})}backToPrevCanvas(Ee){let{callback:Ue,noDuration:ke,transition:Ve}=Ee;this.store.dispatch({type:"entry:runner:back-to-prev-canvas",payload:{callback:Ue,noDuration:ke,transition:Ve}})}updateScrollTop(Ee,Ue){this.store.dispatch({type:"runner:update:scroll-top",payload:{screenMetaCid:Ee,scrollTop:Ue}});const{isInCommentMode:ke}=this.store.getState().comment;ke&&this.store.dispatch({type:"entry:comment:update:view-container-style"})}updateScrollLeft(Ee,Ue){this.store.dispatch({type:"runner:update:scroll-left",payload:{screenMetaCid:Ee,scrollLeft:Ue}});const{isInCommentMode:ke}=this.store.getState().comment;ke&&this.store.dispatch({type:"entry:comment:update:view-container-style"})}resetScreenScrollTopMap(){this.store.dispatch({type:"runner:update:state",payload:{screenScrollTopMap:{}}})}resetScreenScrollLeftMap(){this.store.dispatch({type:"runner:update:state",payload:{screenScrollLeftMap:{}}})}clear(){this.store.dispatch({type:"entry:runner:cleanup:audio"}),this.store.dispatch({type:"runner:reset:state"}),this.store.dispatch({type:"container:comment:reset:state"}),this.store.dispatch({type:"preview:previewPanel:navindex",payload:{previewPanelNavIndex:0}})}openCanvas(Ee,Ue){const ke=Le(Ee),Ve=ye(Ee,"transitionDuration"),ut=/drawer|menu/.test(Ee.transition)?(0,tt.d8)(je(Ee,"menuOrDrawerOffset","number"),[0,99]):100;switch(Ee.interactionType){case B.O2.LinkToCanvas:{this.store.dispatch({type:"entry:runner:activate:canvas",payload:{pageKey:Ee.targetRBPageKey,canvasKey:Ee.targetResCanvasKey,resetTargetSubWidgetsState:Ee.resetTargetSubWidgetsState,resetTargetCanvasScrollOffset:Ee.resetTargetCanvasScrollOffset,sourceCanvas:Ue==null?void 0:Ue.sourceCanvas,transition:{name:Ee.transition,delay:ke,duration:Ve,offset:ut}}});break}case B.O2.LinkToSourceCanvas:this.store.dispatch({type:"entry:runner:back-to-prev-canvas",payload:{currentCanvasKey:Ue==null?void 0:Ue.sourceCanvas,toSource:!0,transition:{name:Ee.transition,delay:ke,duration:Ve,offset:ut},resetTargetSubWidgetsState:Ee.resetTargetSubWidgetsState,resetTargetCanvasScrollOffset:Ee.resetTargetCanvasScrollOffset}});break;case B.O2.SetBasketCanvas:this.store.dispatch({type:"entry:runner:activate:basket:canvas",payload:{interaction:Ee,basketKey:Ee.targetBasketKey,basketActiveCanvas:Ee.targetResCanvasKey,triggerItemKey:Ee.triggerItemKey,transition:{name:Ee.transition,delay:ke,duration:Ve,offset:100},resetTargetSubWidgetsState:Ee.resetTargetSubWidgetsState,resetTargetCanvasScrollOffset:Ee.resetTargetCanvasScrollOffset}});break}}openOverlay(Ee){this.store.dispatch({type:"entry:runner:open:overlay",payload:{interaction:Ee}})}swapOverlay(Ee){this.store.dispatch({type:"entry:runner:swap:overlay",payload:{interaction:Ee}})}closeOverlay(){this.store.dispatch({type:"entry:runner:close:overlay"})}jumpHyperLink(Ee){let{hyperlink:Ue,openIn:ke}=Ee;this.store.dispatch({type:"entry:runner:open:hyperlink",payload:{hyperlink:Ue,openIn:ke}})}}var bn=s(62280),Yn=s(20640),on=s(95106);const yn=["string","number","boolean"],lo={string:pt=>""+pt,number:pt=>Number(pt),boolean:pt=>!!pt},qn=function(pt,Ee){Ee===void 0&&(Ee=5);const Ue=10**Ee;return Math.round(pt*Ue)/Ue};class Wn{constructor(){(0,r.A)(this,"listeners",[]),(0,r.A)(this,"variables",[]),(0,r.A)(this,"syncSdkStoreVariables",()=>{const Ee=(0,De.pU)();this.variables=[];const Ue=Ee.length;Ee.forEach((ke,Ve)=>{let{key:st,hotAttr:{name:ut,varData:Rt,varDataType:en,zIndex:Xt}}=ke;this.variables.push({key:st,name:ut,varData:Rt,varDataType:en,zIndex:Xt,isTrashed:Ve>=Ue})}),this.emitChange()}),(0,r.A)(this,"subscribe",Ee=>(this.listeners=[...this.listeners,Ee],()=>{this.listeners=this.listeners.filter(Ue=>Ue!==Ee)})),(0,r.A)(this,"getSnapshot",()=>this.variables),(0,r.A)(this,"getVariable",Ee=>{const Ue=this.variables.find(ke=>ke.key===Ee);if(!(!Ue||Ue.isTrashed))return Ue}),(0,r.A)(this,"updateVariable",(Ee,Ue)=>{const ke=typeof Ue;if(!yn.includes(ke))return;const Ve=this.variables.findIndex(st=>st.key===Ee);if(Ve!==-1){const st=this.variables[Ve];ke!==st.varDataType&&(Ue=lo[st.varDataType](Ue)),st.varDataType==="number"&&(Ue=qn(Ue));const ut={...this.variables[Ve],oldVarData:this.variables[Ve].varData,varData:Ue};this.variables[Ve]=ut,this.variables=this.variables.slice(),this.emitChange(ut)}}),(0,r.A)(this,"getVariableMap",()=>{const Ee=new Map;return this.variables.forEach(Ue=>{Ee.set(Ue.key,Ue)}),Ee}),this.syncSdkStoreVariables()}emitChange(Ee){this.listeners.forEach(Ue=>Ue(Ee))}}const Nn=Wn;var xn=s(26067);const Ye=1e3;class wn{constructor(Ee,Ue,ke){var Ve=this;(0,r.A)(this,"linkQueryMap",null),(0,r.A)(this,"inited",!1),(0,r.A)(this,"initedCallbackBucket",new Set),(0,r.A)(this,"runnerTreeConstructorCallbackSet",new Set),(0,r.A)(this,"timerEventCallbackSet",new Set),(0,r.A)(this,"nextCanvasKeyMap",new Map),(0,r.A)(this,"getCanChangeSTVisibility",(ut,Rt)=>{const en=Rt.getBoundingClientRect();return en.top>=ut.top&&en.bottom<=ut.bottom&&en.left>=ut.left&&en.right<=ut.right}),(0,r.A)(this,"resetRunnerState",()=>{this.scrollHandler.resetScrollState(),this.variableStore.syncSdkStoreVariables(),this.listenerHandler.clear(),this.eventHandler.timeoutBucket.clearAll(),this.initedCallbackBucket.clear(),this.runnerTreeConstructorCallbackSet.clear(),this.timerEventCallbackSet.clear(),this.nextCanvasKeyMap.clear()}),(0,r.A)(this,"collectNextCanvasKey",(ut,Rt)=>this.nextCanvasKeyMap.set(Rt,ut)),(0,r.A)(this,"getHighestPriorityNextCanvasKey",()=>{if(this.nextCanvasKeyMap.get("mainCanvas"))return this.nextCanvasKeyMap.get("mainCanvas");if(this.nextCanvasKeyMap.get("basketCanvas"))return this.nextCanvasKeyMap.get("basketCanvas");if(this.nextCanvasKeyMap.get("overlayCanvas"))return this.nextCanvasKeyMap.get("overlayCanvas")}),(0,r.A)(this,"execRunnerTreeConstructorCallback",()=>{Array.from(this.runnerTreeConstructorCallbackSet).forEach(ut=>ut==null?void 0:ut()),this.runnerTreeConstructorCallbackSet.clear()}),(0,r.A)(this,"execTimerEventCallbackSet",function(ut){if(ut===void 0&&(ut=""),ut){const Rt=Ve.getHighestPriorityNextCanvasKey();if(Rt&&ut!==Rt)return}Ve.nextCanvasKeyMap.clear(),Array.from(Ve.timerEventCallbackSet).forEach(Rt=>Rt==null?void 0:Rt()),Ve.timerEventCallbackSet.clear()}),this.runner=new Lt(Ee.store),this.eventHandler=new Ot(Ee.store,this),this.scrollHandler=new dn(Ee.store,this.runner),this.listenerHandler=new Un(Ee.store,this.eventHandler),this.resetHandler=new ft(Ee.store),this.clearCallbackBucket={},this.currentCanvasKey="",this.currentCanvasAsMenuOrDrawerKey="",this.requestScreenCidSet=new Set,this.webpackInterface=Ee,this.messageBucket=Ue,this.f=ke,this.isPreventEvent=!1;const{isMobile:st}=(0,U.bF)(this.webpackInterface.store.getState());st&&this._bindMobileGlobalEvent()}setIsPreventEvent(Ee){this.isPreventEvent=Ee}get currentCanvasKey(){return this._currentCanvasKey}set currentCanvasKey(Ee){this._currentCanvasKey=Ee}setCurrentCanvasKey(Ee){this._currentCanvasKey=Ee}get currentCanvasAsMenuOrDrawerKey(){return this._currentCanvasAsMenuOrDrawerKey}set currentCanvasAsMenuOrDrawerKey(Ee){this._currentCanvasAsMenuOrDrawerKey=Ee}setCurrentCanvasAsMenuOrDrawerKey(Ee){this._currentCanvasAsMenuOrDrawerKey=Ee}_bindMobileGlobalEvent(){window.addEventListener("message",Ee=>{try{if(JSON.parse(Ee.data).event==="back"){const{history:ke}=this.webpackInterface.store.getState().container.runner;ke.length===1&&this.messageBucket?this.messageBucket.send("exit"):this.runner.backToPrevCanvas({transition:{name:"none",duration:0,delay:0}})}}catch(Ue){}},!1),window.onorientationchange&&window.addEventListener("orientationchange",()=>{this.reload()}),window.addEventListener("resize",()=>{document.activeElement.tagName!=="INPUT"&&this.reload()})}init(Ee,Ue,ke,Ve,st,ut,Rt,en){let{rootProject:Xt,activePageKey:Zn,activeCanvasKey:bo,basketKey:Po,activeWidgetKey:ha}=Ee;st===void 0&&(st=null),this.variableStore=new Nn;const xa=new URLSearchParams(location.search);let da=Zn,Ko=bo||xa.get("canvasId");const Fa=xa.get("selection"),Pa=()=>{if(ke||ut)return(0,Yn.tb)(ke&&Zn?Zn:Me.$k);if(st){if(st.type==="advanced"&&st.screen_visible_switch)return(0,Yn.wb)(st.screen_visible_list);if(st.type!=="advanced"&&Fa)return(0,Yn.wb)([Fa])}return(0,Yn.tb)()},{screenTreeData:sr,screenDataMap:vr}=Pa();let Or=!!da,Tr=!!Ko;if(Or&&(Or=!sdkStore.isTrashed(da)&&sdkStore.getHotItem(da)),Tr&&(Tr=!sdkStore.isTrashed(Ko)&&sdkStore.getHotItem(Ko)),!Or&&st&&st.canvas_begin){Ko=st.canvas_begin;const xi=sdkStore.getHotItem(Ko);if(xi&&!sdkStore.isTrashed(Ko))da=xi.sup;else{const{activePageKey:Fr,activeCanvasKey:Fi}=(0,Yn.u1)(sr);da=Fr,Ko=Fi}}else if(!Or||!Tr&&!(Ve||ut))if(Or&&!Tr){var Kr;const xi=(0,xn.Y2)(da);Ko=xi!=null&&xi.length?(Kr=xi[0])==null?void 0:Kr.key:""}else if(!Or&&Tr){const xi=sdkStore.getHotItem(Ko);xi&&(da=xi.sup)}else{const{activePageKey:xi,activeCanvasKey:Fr}=(0,Yn.u1)(sr);da=xi,Ko=Fr}const{hotAttr:Ha}=sdkStore.getHotItem(da)||{},Br={...Ha,cid:da};this.webpackInterface.store.dispatch({type:"entry:init:preview:related:data",payload:{rootProject:Xt,screenMeta:Br,previewMode:Ue,isPanelPreviewMode:ke,isCommunityComboPreview:Ve,isPreviewCombo:ut,basketKey:Po,screenTreeData:sr,screenDataMap:vr,isQuickPreview:Rt,quickPreviewSize:en,isPreviewAIComponent:!!ha}}),this.webpackInterface.store.dispatch({type:"entry:init:preview:scale"});const Gi=setTimeout(()=>{this.inited=!0,this.webpackInterface.store.dispatch({type:"reducer:preview-toolbar:update",payload:{isShowSplash:!1}});const{activePageKey:xi,activeCanvasKey:Fr}=(0,U.mf)(this.webpackInterface.store.getState());if(this.webpackInterface.store.dispatch({type:"entry:runner:activate:canvas",payload:{pageKey:xi||da,canvasKey:Fr||Ko,widgetKey:ha}}),Array.from(this.initedCallbackBucket).forEach(Ii=>Ii==null?void 0:Ii()),this.initedCallbackBucket.clear(),this.webpackInterface.store.dispatch({type:"entry:init:preview:scale"}),this.webpackInterface.store.dispatch({type:"entry:preview:check:location-hash"}),this.messageBucket){this.messageBucket.request({type:"message:set:record",payload:{key:"preview-ready",value:!0}}),this.messageBucket.send("ready");const Ii=setTimeout(()=>{if(this.messageBucket.send("ready"),!Ko){var Ks;(Ks=MB)==null||(Ks=Ks.messageBucket)==null||Ks.send("mobileLoadProjectError",{errMsg:I18N.dUtils.no_artboard_cannot_be_previewed,onlyToast:!0})}},2e3);this.clearCallbackBucket.redundantReady=()=>clearTimeout(Ii)}if(!Ko&&!(Ve||ut)){var Fi;(Fi=MB)==null||Fi.notice({text:I18N.dUtils.no_artboard_cannot_be_previewed,type:"warning"})}},Ye);this.clearCallbackBucket.init=()=>clearTimeout(Gi)}didInit(){return this.inited}setupCanvasTimers(Ee,Ue){Ue===void 0&&(Ue=!1),Ee&&this.eventHandler.setupCanvasTimers(Ee,!Ue)}clearTimerHandler(){this.eventHandler.clearTimeout()}setupBasketTimers(Ee,Ue){this.eventHandler.setupBasketTimers(Ee,Ue)}initEventHandler(Ee,Ue){this.eventHandler.init(Ee,Ue)}initMouseEventHandler(Ee){return this.eventHandler.initMouseEvent(Ee)}prepareJump(Ee,Ue,ke){ke===void 0&&(ke=!0),this.eventHandler.prepareJump(Ee,Ue,ke)}closeMenu(Ee,Ue){Ee===void 0&&(Ee=null),Ue===void 0&&(Ue=!1),this.runner.backToPrevCanvas({callback:Ee,noDuration:Ue})}j(Ee,Ue,ke){te.A.checkIfSkipInteraction(this.webpackInterface.store,Ee)||this.switchInteraction(Ee,Ue,ke)}switchInteraction(Ee,Ue,ke){switch(Ee.interactionType){case B.O2.LinkToCanvas:case B.O2.LinkToSourceCanvas:case B.O2.SetBasketCanvas:{this.runner.openCanvas(Ee,ke);break}case B.O2.OpenOverlay:{this.runner.openOverlay(Ee);break}case B.O2.SwapOverlay:{this.runner.swapOverlay(Ee);break}case B.O2.CloseOverlay:{this.runner.closeOverlay();break}case B.O2.ScrollTo:{const{transition:ut,scrollToDir:Rt}=Ee,en=ut!=="none"?ye(Ee,"transitionDuration"):0,Xt=(0,ht.$8)(Ee,this.webpackInterface);if(!document.querySelector('.scontainer [data-cid="'+Xt+'"]'))break;const bo=(0,on.Ik)(sdkStore,Xt)||(0,on.ao)(sdkStore,Xt)||"",Po=this.webpackInterface.store.getState(),ha=(0,U.KR)(Po),xa=(0,U.Mo)(Po),da=sdkStore.getHotItem(bo);if(!da)break;const{type:Ko,asOverlay:Fa,scroll:Pa}=da.hotAttr;if(Ko==="rResCanvas"&&Fa)break;if(Ko==="wBasket"){const vr=Pa===2||Pa===3,Or=Pa===2||Pa===4;if(ha&&xa===bo){const Tr=Po.container.runner.activeCanvasKey,[Kr,Ha]=(0,bn.Pb)(sdkStore.getRelocateLocalBound(Xt,sdkStore.locUpHotCanvasKey(Xt))),Br=vr&&Rt!=="horizontal"?Ha+(0,tt.d8)(je(Ee,"scrollToOffsetY","number"),[-at.rT,at.rT]):null,Gi=Or&&Rt!=="vertical"?Kr+(0,tt.d8)(je(Ee,"scrollToOffsetX","number"),[-at.rT,at.rT]):null;this.scrollHandler.scrollTo(Tr,Gi,Br,{duration:en})}else{var Ve;if(!document.querySelector('[data-cid="'+bo+'"] > .wBasket'))break;const Kr=(Ve=Po.container.runner.basketCanvasMap.get(bo))==null?void 0:Ve.activeCanvas;if(!Kr)break;if(Kr===sdkStore.locUpHotCanvasKey(Xt)){const[Ha,Br]=(0,bn.Pb)(sdkStore.getRelocateLocalBound(Xt,Kr)),Gi=vr&&Rt!=="horizontal"?Br+(0,tt.d8)(je(Ee,"scrollToOffsetY","number"),[-at.rT,at.rT]):null,xi=Or&&Rt!=="vertical"?Ha+(0,tt.d8)(je(Ee,"scrollToOffsetX","number"),[-at.rT,at.rT]):null;if(xi===null&&Gi===null)break;this.scrollHandler.scrollTo(Kr,xi,Gi,{duration:en})}}}else{var st;const vr=Po.container.runner.activeCanvasKey,Or=Po.container.runner.activePageKey;if(!vr||!Or)break;const Tr=sdkStore.getHotItem(Or);if(!Tr)break;let Kr=!0,Ha=!0;const{scroll:Br,deviceScroll:Gi}=Tr.hotAttr;Tr.sup===Me.fW?(Kr=Br===2||Br===3,Ha=Br===2||Br===4):(Kr=Gi==="vertical"||Gi==="auto",Ha=Gi==="horizontal"||Gi==="auto");const xi=((st=sdkStore.getHotItem(vr))==null||(st=st.hotAttr)==null?void 0:st.stickyHeaderHeight)||0,[Fr,Fi]=(0,bn.Pb)(sdkStore.getRelocateLocalBound(Xt,sdkStore.locUpColdCanvasKey(Xt))),Ii=Kr&&Rt!=="horizontal"?Fi+(0,tt.d8)(je(Ee,"scrollToOffsetY","number"),[-at.rT,at.rT])-xi:null,Ks=Ha&&Rt!=="vertical"?Fr+(0,tt.d8)(je(Ee,"scrollToOffsetX","number"),[-at.rT,at.rT]):null;this.scrollHandler.scrollTo(vr,Ks,Ii,{duration:en})}break}case B.O2.OpenExternalUrl:{this.runner.jumpHyperLink({hyperlink:je(Ee,"interactionExternalUrl","string"),openIn:Ee.openIn});break}case B.O2.SetVisibility:{if(!document.querySelector("#app"))return;const Rt=(0,ht.$8)(Ee,this.webpackInterface),en=(0,Se.yV)(),Xt=en==null?void 0:en.getSnapshotItem(Rt);if(!Xt)return;const Zn=Xt.hotAttr.isVisible,bo=Ee.actionType;if((bo==="setVisible"||bo==="toggleVisibility")&&!Zn){const Po=Ee.setVisibleTransition==="auto"?ye(Ee,"setVisibleTransitionDuration"):0;en.setWidgetVisible(Rt,!0,Po),MB.webpackInterface.store.dispatch({type:"runner:update:state",payload:{tearStickyCacheTag:Math.random()}})}else if((bo==="setHidden"||bo==="toggleVisibility")&&Zn){const Po=Ee.setHiddenTransition==="auto"?ye(Ee,"setHiddenTransitionDuration"):0;en.setWidgetVisible(Rt,!1,Po),MB.webpackInterface.store.dispatch({type:"runner:update:state",payload:{tearStickyCacheTag:Math.random()}})}break}case B.O2.SetVariableValue:{const{targetVarKey:ut,targetVarValue:Rt,triggerItemKey:en}=Ee;if(!ut||!Rt)return;const Xt=this.variableStore.getVariable(ut);if(!Xt)return;const Zn=(0,me.LB)(Rt,Xt.varDataType,{variables:this.variableStore.getSnapshot(),p2sdkStore:(0,Se.yV)(),p2sdkWkeyOnEval:en});this.variableStore.updateVariable(ut,Zn);break}case B.O2.ConditionalBranches:{const ut=Rt=>{const en=Ue.filter(Xt=>Rt.subItaRefList.includes(Xt.key));this.eventHandler.triggerInteractions(en,Ue,ke,!0)};for(const[Rt,en]of Ee.branches.entries()){if(Rt===Ee.branches.length-1){Ee.branchSwitch&&ut(en);break}if((0,me.LB)(en.condition,"boolean",{variables:this.variableStore.getSnapshot(),p2sdkStore:(0,Se.yV)()})===!0){ut(en);break}}break}case B.O2.Transform:{if(!document.querySelector("#app"))return;const Rt=(0,ht.$8)(Ee,this.webpackInterface),en=(0,Se.EW)();if(!(en==null?void 0:en.getSnapshotItem(Rt)))return;const Zn=Ee.transition!=="none"?ye(Ee,"transitionDuration"):0;en.setWidgetRunnerTransform({key:Rt,transform:{translateX:(0,tt.d8)(je(Ee,"transformTranslateX","number"),[-at.rT,at.rT]),translateY:(0,tt.d8)(je(Ee,"transformTranslateY","number"),[-at.rT,at.rT]),scaleX:(0,tt.d8)(je(Ee,"transformScaleX","number"),[-at.rT,at.rT]),scaleY:(0,tt.d8)(je(Ee,"transformScaleY","number"),[-at.rT,at.rT]),rotateZ:(0,tt.d8)(je(Ee,"transformRotateZ","number"),[-at.rT,at.rT]),rotateX:(0,tt.d8)(je(Ee,"transformRotateX","number"),[-at.rT,at.rT]),rotateY:(0,tt.d8)(je(Ee,"transformRotateY","number"),[-at.rT,at.rT]),rotate3d:Ee.rotate3d,originX:Ee.transformOriginX,originY:Ee.transformOriginY},duration:Zn,forceUpdate:!0});break}case B.O2.SetAnimation:{if(!document.querySelector("#app"))return;const Rt=(0,ht.$8)(Ee,this.webpackInterface),en=(0,Se.EW)();if(!(en==null?void 0:en.getSnapshotItem(Rt)))return;const Zn=(0,tt.d8)(je(Ee,"animationDuration","number"),[0,at.sw]);en.setWidgetAnimationRecords(Rt,{aniName:Ee.animationName||"",aniDuration:Zn,aniCount:this.eventHandler.iterationHandler.getStringIterationCount(je(Ee,"iterationCount","number")),endTime:new Date().getTime()+Zn});break}case B.O2.SetInputFocus:{const ut=document.querySelector("#app");if(!ut)return;const Rt=(0,ht.$8)(Ee,this.webpackInterface),en=sdkStore.getHotItem(Rt);if(!en)return;const Xt=en.hotAttr.type;let Zn;if(Xt===wt.x.WMTextInput?Zn=ut.querySelector('.scontainer [data-cid="'+Rt+'"] input'):Xt===wt.x.WMTextArea&&(Zn=ut.querySelector('.scontainer [data-cid="'+Rt+'"] textarea')),!Zn)return;const{isFocus:bo,isSelectContent:Po}=Ee;if(bo){if(Zn.focus(),Xt===wt.x.WMTextArea){const ha=Zn.value.length||0;Zn.setSelectionRange(ha,ha)}Po&&Zn.select()}else Zn.blur();break}}}updateVariable(Ee,Ue){const ke=this.variableStore.getVariable(Ee);if(!ke)return;const{varDataType:Ve}=ke,st=typeof Ue;if(Ve!==st){var ut,Rt;const en=Ue;if(Ue=(ut=De.AV[Ve])==null?void 0:ut.call(De.AV,Ue),Number.isNaN(Ue)||((Rt=De.AV[st])==null?void 0:Rt.call(De.AV,Ue))!==en)return}this.variableStore.updateVariable(Ee,Ue)}doneTransition(Ee,Ue){(0,l.m0)()&&Ue&&this.eventHandler.setupPageGesture(Ue),!(!Ee||!sdkStore.getHotItem(Ee))&&(this.currentCanvasKey=Ue,this.runner.setCurrentScreen({cid:Ee,...sdkStore.getHotItem(Ee).hotAttr}))}reload(){const Ee=te.A.getCurrentScreen(this.webpackInterface.store);Ee&&(this.runner.reloadScreen(Ee.cid),this.scrollHandler.resetScrollState())}destroyScrollBarByCid(Ee,Ue){var ke;if(Ue){var Ve;const st=(Ve=this.scrollHandler.getScroller(Ee))==null||(Ve=Ve.options)==null?void 0:Ve.basketFromScreenPartSet;if(st&&(st.delete(Ue),st.size>0))return}(ke=this.scrollHandler)==null||ke.destroyScrollBarByCid(Ee)}renderScrollbar(Ee,Ue){if(this.scrollHandler.renderScrollbar(Ee,Ue),Ue!=null&&Ue.basketFromScreenPartSet){const ke=this.scrollHandler.getScroller(Ee);if(ke!=null&&ke.options){const Ve=new Set([...ke.options.basketFromScreenPartSet||new Set,...Ue.basketFromScreenPartSet]);ke.options.basketFromScreenPartSet=Ve}}}resetScreenScrollState(Ee){this.scrollHandler.resetScreenScrollState(Ee)}toggleScrollBar(Ee){this.scrollHandler.toggleScrollBar(Ee)}disableScrollBar(Ee){this.scrollHandler.disableScrollBar(Ee)}resetCurrentScreenScrollState(Ee){this.scrollHandler.resetCurrentScreenScrollState(Ee)}clear(){Object.values(this.clearCallbackBucket).forEach(Ee=>Ee()),this.currentCanvasKey="",this.currentCanvasAsMenuOrDrawerKey="",this.linkQueryMap=null,this.scrollHandler.clear(),this.requestScreenCidSet.clear(),this.runner.clear(),this.eventHandler.clear(),this.initedCallbackBucket.clear(),this.runnerTreeConstructorCallbackSet.clear(),this.timerEventCallbackSet.clear(),this.nextCanvasKeyMap.clear()}getAllActiveKeys(){const Ee=this.webpackInterface.store.getState(),{activeCanvasKey:Ue="",activePageKey:ke="",overlayStack:Ve=[],basketCanvasMap:st=new Map}=(0,U.mf)(Ee),ut=(0,U.hM)(Ee),Rt=Ve.filter(Xt=>Xt.isOverlayIn).map(Xt=>Xt.targetOverlayKey);return{mainActiveKey:ut?ke:Ue,mainCanvasKey:Ue,overlayCanvasKeys:Ve.filter(Xt=>Xt.isOverlayIn).map(Xt=>Xt.targetOverlayKey),basketCanvasKeys:[...st.keys()].filter(Xt=>{const Zn=ut?sdkStore.locUpRBPageKey(Xt):sdkStore.locUpMainCanvasKey(Xt);return Zn===ut?ke:Ue||Rt.includes(Zn)}).map(Xt=>{var Zn;return(Zn=st.get(Xt))==null?void 0:Zn.activeCanvas})}}getWidgetStore(){return(0,Se.yV)()}}var Hn=s(34567),zn=s(72274),ko=s(25942),On=s(78859),Mo=s(61565),jn=s(15515),xo=s(53940),jo=s(4410),Qo=s(42715);const cn=pt=>{pt.setAttribute("data-mark","echarts-div")},In=()=>{for(const pt of document.querySelectorAll("[data-mark=echarts-div] svg"))pt.style.transform="translateZ(0)";requestAnimationFrame(()=>{for(const pt of document.querySelectorAll("[data-mark=echarts-div] svg"))pt.style.transform=""})},tn=xo.I,Jt=pt=>Number((0,jn.kV)("preview_scale_"+pt)),Ln=(pt,Ee)=>(0,jn.cH)("preview_scale_"+pt,Ee),Xn={"entry:init:preview:scale":pt=>{let{getState:Ee,dispatch:Ue}=pt;const ke=Ee(),Ve=(0,U.PL)(ke),{isUIChina:st,isForum:ut,isSquare:Rt}=(0,U.bF)(ke),en=(0,U.k6)(ke),Xt=(0,U.KR)(ke),Zn=(0,U.hM)(ke);if(en||Xt||Zn)Ue({type:"entry:preview:zoom-quick-preview"});else if(st&&Ve.model==="car_play")Ue({type:"preview:set:scale",payload:{scale:40}});else if(ut||Rt)Ue({type:"entry:auto-fit:preview:scale"});else{const bo=Jt(Ve.cid);Ue(bo?{type:"preview:set:scale",payload:{scale:bo}}:{type:"entry:auto-fit:preview:scale"})}},"entry:auto-fit:preview:scale":pt=>{let{getState:Ee,dispatch:Ue}=pt;Ue({type:"entry:preview:set:shellContainer"});const ke=Ee(),Ve=(0,U._v)(ke),st=(0,U.Ph)(ke),{isForum:ut,isSquare:Rt}=(0,U.bF)(ke),en=(0,U.U4)(ke),Xt=!Rt&&en?(0,U.zo)(ke):0,bo=(0,U.Pf)(ke)?0:(0,U.E1)(ke),Po=(0,U.PL)(ke),ha=(0,U.Ur)(ke),xa=(0,U.KR)(ke),da=(0,U.ub)(ke),Ko=(0,U.hM)(ke),Fa=(0,U.y3)(ke),Pa=da||Ko;if((0,U.k6)(ke)||xa||Ko){Ue({type:"entry:preview:zoom-quick-preview"});return}if(Fa)return;const{width:vr,height:Or}=Ve,Tr=ha.orientation==="landscape",Kr={width:Tr?Or:vr,height:Tr?vr:Or};let Ha,Br,Gi;ut?Ha=Br=Gi=0:Rt?(Ha=100,Br=20,Gi=20):Pa||xa?(Ha=88,Br=20,Gi=20):(Ha=132,Br=20,Gi=20);let xi=window.innerWidth-bo-Xt,Fr=window.innerHeight;if(Ko||xa){const rn=document.querySelector(Ko?".preview-combo-modal":".preview-modal");if(rn){const Ft=rn.getBoundingClientRect();xi=Ft.width,Fr=Ft.height}}const Fi=xi-(Br+Gi),Ii=Fr-Ha,Ks=Math.min(Ii/Kr.height,Fi/Kr.width)*100,Ul=xa?Math.min(Math.max(Ks,20),100):Math.min(Math.max(Ks,20),400);!Rt&&!st&&Ln(Po.cid,Ul),Ue({type:"preview:set:scale",payload:{scale:Ul}}),(0,C.sI)(ke)&&Ue({type:"entry:comment:update:view-container-style"})},"entry:preview:set:scale":(pt,Ee)=>{let{dispatch:Ue,getState:ke}=pt,{payload:{scale:Ve}}=Ee;const st=ke(),ut=(0,U.PL)(st);Ve=Math.min(Math.max(Ve,20),400);const{isFullScreenMode:Rt}=st.container.previewSetting;!Rt&&Ln(ut.cid,Ve),Ue({type:"preview:set:scale",payload:{scale:Ve}}),Ue({type:"preview:update:state",payload:{hasChangedScaleManually:!0}}),(0,C.sI)(st)&&Ue({type:"entry:comment:update:view-container-style"}),In()},"entry:preview:zoom-in":pt=>{let{getState:Ee,dispatch:Ue}=pt;const ke=Ee(),Ve=(0,U.St)(ke),st=tn.findIndex(Rt=>Rt>Ve),ut=tn[st]||tn[tn.length-1];Ue({type:"entry:preview:set:scale",payload:{scale:ut}})},"entry:preview:zoom-out":pt=>{let{getState:Ee,dispatch:Ue}=pt;const ke=Ee(),Ve=(0,U.St)(ke),st=tn.findIndex(Rt=>Rt>=Ve),ut=tn[st-1]||tn[0];Ue({type:"entry:preview:set:scale",payload:{scale:ut}})},"entry:preview:zoom-out:set-offset":pt=>{let{getState:Ee,dispatch:Ue}=pt;const ke=Ee(),Ve=(0,U.St)(ke),st=tn.findIndex(Rt=>Rt>=Ve),ut=tn[st-1]||tn[0];Ue({type:"entry:preview:set:scale",payload:{scale:ut}}),Ue({type:"entry:preview:zoom-out:center-position",payload:{nextScale:ut,oldScale:Ve}})},"entry:preview:zoom-out:center-position":(pt,Ee)=>{let{getState:Ue,dispatch:ke}=pt,{payload:{nextScale:Ve,oldScale:st}}=Ee;const ut=Ue(),Rt=(0,U.PN)(ut),en=(0,U.A3)(ut),Xt=(0,Mo.Lc)(ut),{width:Zn,height:bo}=document.getElementById("simulator-container")?document.getElementById("simulator-container").getBoundingClientRect():{height:null,width:null},{width:Po,height:ha}=document.querySelector("#simulator-shell")?document.querySelector("#simulator-shell").getBoundingClientRect():document.querySelector("#simulator-container .zoom-area").getBoundingClientRect(),[xa,da]=Rt,Ko=Xt?xa:0,Fa=Xt?da:0,Pa=Math.min(Math.max(Zn/(Po*100/st+Ko*2)*100,20),400),sr=Math.min(Math.max(bo/(ha*100/st+Fa*2)*100,20),400),vr=Math.min(1,Pa<st?Math.abs(st-Ve)/(st-Pa):0),Or=Math.min(1,sr<st?Math.abs(st-Ve)/(st-sr):0),Tr=en.x-vr*en.x,Kr=en.y-Or*en.y;ke({type:"preview:set:canvas:offset:dev",payload:{offset:{x:Tr,y:Kr}}})},"entry:preview:set:shellContainer":pt=>{let{getState:Ee,dispatch:Ue}=pt;const ke=Ee(),Ve=(0,U.Ur)(ke),{activePageKey:st,activeCanvasKey:ut}=(0,U.mf)(ke);let Rt=0,en=0,Xt=-1,Zn=-1;const bo=sdkStore.getHotItem(st),Po=bo?bo.hotAttr.device:Ve.device;if(!ut&&st){const{w:vr,h:Or}=(0,jo.lY)(bo,sdkStore,!0);if(!Number.isFinite(vr)||!Number.isFinite(Or)){var ha,xa;const Tr=(0,Qo.MR)(Po);Rt=(Tr==null?void 0:Tr.width)||(bo==null||(ha=bo.hotAttr)==null?void 0:ha.deviceW)||0,en=(Tr==null?void 0:Tr.height)||(bo==null||(xa=bo.hotAttr)==null?void 0:xa.deviceH)||0}else Rt=vr,en=Or}else if(Po==="none"&&ut){var da;const vr=(da=sdkStore.getHotItem(ut))==null?void 0:da.hotAttr;Rt=vr==null?void 0:vr.w,en=vr==null?void 0:vr.h}else if(Po==="customize")Rt=bo?bo.hotAttr.deviceW:Ve.deviceW,en=bo?bo.hotAttr.deviceH:Ve.deviceH;else{var Ko,Fa,Pa,sr;const vr=(0,Qo.MR)(Po);Rt=(vr==null?void 0:vr.width)||(bo==null||(Ko=bo.hotAttr)==null?void 0:Ko.deviceW)||0,en=(vr==null?void 0:vr.height)||(bo==null||(Fa=bo.hotAttr)==null?void 0:Fa.deviceH)||0,Xt=bo==null||(Pa=bo.hotAttr)==null?void 0:Pa.deviceW,Zn=bo==null||(sr=bo.hotAttr)==null?void 0:sr.deviceH}Xt===-1&&(Xt=Rt,Zn=en),Ue({type:"preview:set:shellContainer",payload:{shellContainer:{width:Rt,height:en,widthBare:Xt,heightBare:Zn}}})},"entry:preview:zoom-quick-preview":(pt,Ee)=>{let{getState:Ue,dispatch:ke}=pt,{payload:Ve}=Ee;const st=Ue(),{activePageKey:ut,activeCanvasKey:Rt,activeWidgetKey:en}=(0,U.mf)(st),Xt=(0,U.B3)(st),Zn=(0,U.KR)(st),bo=(0,U.Mo)(st),Po=(0,U.hM)(st),ha=Ve==null?void 0:Ve.quickPreviewSize,xa=ha||Xt;if(!xa)return;let{width:da,height:Ko}=xa;if(Zn){var Fa;const Ha=(Fa=sdkStore.getHotItem(bo))==null?void 0:Fa.hotAttr;if(!Ha)return;da=Ha.w,Ko=Ha.h}else if(Po){const Ha=sdkStore.getHotItem(ut);if(!Ha)return;if(en){const Br=sdkStore.getHotItem(en);if(Br){var Pa,sr;da=Br==null||(Pa=Br.hotAttr)==null?void 0:Pa.w,Ko=Br==null||(sr=Br.hotAttr)==null?void 0:sr.h}}else{const{hotAttr:{device:Br,deviceW:Gi,deviceH:xi}}=Ha,{w:Fr,h:Fi}=(0,jo.lY)(Ha,sdkStore,!0);if(!Number.isFinite(Fr)||!Number.isFinite(Fi)){const Ii=(0,Qo.MR)(Br);da=(Ii==null?void 0:Ii.width)||Gi||0,Ko=(Ii==null?void 0:Ii.height)||xi||0}else da=Fr,Ko=Fi}}else{var vr,Or;const Ha=(vr=sdkStore.getHotItem(ut))==null?void 0:vr.hotAttr,Br=(Or=sdkStore.getHotItem(Rt))==null?void 0:Or.hotAttr;if(!Ha||!Br)return;const{deviceW:Gi,deviceH:xi,deviceOrientation:Fr,device:Fi}=Ha,{w:Ii,h:Ks}=Br;da=Fr==="portrait"?Gi:xi,Ko=Fr==="portrait"?xi:Gi,Fi==="none"&&(da=Ii,Ko=Ks)}const Tr=Math.min(xa.height/Ko,xa.width/da)*100,Kr=Math.min(Tr,400);ke({type:"preview:set:scale",payload:{scale:Kr}}),ha&&ke({type:"preview:current:update:state",payload:{quickPreviewSize:ha}})}},Dn=function(pt,Ee,Ue){if(Ue===void 0&&(Ue=100),pt==="auto"||pt==="none")return[{display:"none"},{display:""}];const[ke,Ve]=Ho(pt,Ee),[st,ut]=la(pt),[Rt,en]=eo(pt,Ee),[Xt,Zn]=Oo(pt,Ee,Ue);return[{display:ke,...Rt,zIndex:st,transform:Xt},{display:Ve,...en,zIndex:ut,transform:Zn}]},go=pt=>{switch(pt){case"none":return"none";case"auto":return"auto";case"leftmenu":return"leftmenu-reverse";case"rightmenu":return"rightmenu-reverse";case"leftdrawer":return"leftdrawer-reverse";case"rightdrawer":return"rightdrawer-reverse";case"slideright":return"slideleft";case"slideleft":return"slideright";case"slidetop":return"slidebottom";case"slidebottom":return"slidetop";case"slideleft2":return"leftout";case"slideright2":return"rightout";case"topin":return"topout";case"popin":return"popout";case"leftout":return"slideleft2";case"rightout":return"slideright2";case"topout":return"topin";case"popout":return"popin"}},Uo=null,Ho=(pt,Ee)=>pt==="none"?Ee<1?["","none"]:["none",""]:Ee<1?["",""]:[Uo.includes(pt)?"":"none",""],ua=null,la=pt=>ua.includes(pt)?[3,2]:[2,3],To={boxShadow:"0 0 8px #aaa",borderLeft:"1px solid #bbb"},Ia={boxShadow:"0 0 8px #aaa",borderRight:"1px solid #bbb"},ya={boxShadow:"0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22), 0 0 10px 1000px rgba(0, 0, 0, 0.2)"},eo=(pt,Ee)=>{switch(pt){case"leftmenu":return[To,null];case"leftmenu-reverse":return Ee<1?[null,To]:[null,null];case"rightmenu":return[Ia,null];case"rightmenu-reverse":return Ee<1?[null,Ia]:[null,null];case"leftdrawer":case"rightdrawer":return[null,ya];case"leftdrawer-reverse":case"rightdrawer-reverse":return Ee<1?[ya,null]:[null,null];default:return[null,null]}},Oo=(pt,Ee,Ue)=>{const ke=Ee*Ue;switch(pt){case"none":return["none","none"];case"leftmenu":return["translateX("+(0+ke)+"%)","translateX("+(-100+ke)+"%)"];case"leftmenu-reverse":return["translateX("+(-100+Ue-ke)+"%)","translateX("+(0+Ue-ke)+"%)"];case"rightmenu":return["translateX("+(0-ke)+"%)","translateX("+(100-ke)+"%)"];case"rightmenu-reverse":return["translateX("+(100-Ue+ke)+"%)","translateX("+(0-Ue+ke)+"%)"];case"leftdrawer":return["none","translateX("+(-100+ke)+"%)"];case"leftdrawer-reverse":return["translateX("+(-100+Ue-ke)+"%)","none"];case"rightdrawer":return["none","translateX("+(100-ke)+"%)"];case"rightdrawer-reverse":return["translateX("+(100-Ue+ke)+"%)","none"];case"slideright":return["translateX("+ke+"%)","translateX("+(-100+ke)+"%)"];case"slideleft":return["translateX("+(0-ke)+"%)","translateX("+(100-ke)+"%)"];case"slidetop":return["translateY("+ke+"%)","translateY("+(-100+ke)+"%)"];case"slidebottom":return["translateY("+(0-ke)+"%)","translateY("+(100-ke)+"%)"];case"slideleft2":return["none","translateX("+(-100+ke)+"%)"];case"slideright2":return["none","translateX("+(100-ke)+"%)"];case"topin":return["none","translateY("+(-100+ke)+"%)"];case"popin":return["none","translateY("+(100-ke)+"%)"];case"leftout":return["translateX("+(0-ke)+"%)","none"];case"rightout":return["translateX("+ke+"%)","none"];case"topout":return["translateY("+(0-ke)+"%)","none"];case"popout":return["translateY("+ke+"%)","none"];default:return console.error("\u53D1\u73B0\u672A\u77E5\u52A8\u753B\u540D\u79F0: "+pt),["none","none"]}};var so=s(85131),to=s(70466),Vo=s(37342),ta=s(22835);const Qa={name:"none",delay:0,duration:0,offset:100},qr={"entry:runner:reload:screen":(pt,Ee)=>{let{dispatch:Ue}=pt,{payload:{activeCid:ke}}=Ee;Ue({type:"entry:runner:activate:canvas",payload:{pageKey:ke}})},"entry:runner:reset":(pt,Ee)=>{let{getState:Ue,dispatch:ke}=pt,{payload:Ve}=Ee;const st=Ue();try{var ut;const{activePageKey:Rt,history:en}=(0,U.mf)(st);let Xt=Rt;MB.runnerController.resetHandler.resetRunnerState(),ke({type:"entry:runner:cleanup:audio"}),ke({type:"runner:update:state",payload:{audioList:[],videoList:[]}}),ke({type:"entry:update:preview:screenTreeData"});const Zn=(en==null||(ut=en.slice(-1)[0])==null?void 0:ut.current)||"",bo=Zn.indexOf("/");if(bo!==-1){Xt=Zn.substring(0,bo);const Po=Zn.substring(bo+1);ke({type:"entry:runner:activate:canvas",payload:{pageKey:Xt,canvasKey:Po,isResetAllRunner:!0}}),ke({type:"entry:runner:update:basket:status:under",payload:{key:Po}})}else ke({type:"entry:runner:activate:canvas",payload:{pageKey:Xt}}),ke({type:"entry:runner:update:basket:status:under",payload:{key:Xt}});ke({type:"entry:update:preview:data",payload:{pageKey:Xt}}),ke({type:"runner:update:state",payload:{runnerCacheTag:Math.random()}})}catch(Rt){console.error(Rt)}},"entry:runner:activate:basket:canvas":(pt,Ee)=>{let{getState:Ue,dispatch:ke}=pt,{payload:{interaction:Ve,basketKey:st,basketActiveCanvas:ut,transition:Rt,resetTargetSubWidgetsState:en,resetTargetCanvasScrollOffset:Xt}}=Ee;const Zn=Ue(),bo=(0,U.KR)(Zn),Po=(0,U.Mo)(Zn);let ha,xa;if(bo&&Po){const Fr=sdkStore.getHotItem(Po);ha=Po,(Fr==null?void 0:Fr.hotAttr.type)==="wBasket"?(ha=Po,xa=Fr.hotAttr.refRBPageKey):(Fr==null?void 0:Fr.hotAttr.type)==="rResBunch"&&(ha=xa=Po)}const da=(0,on.XR)({link:Ve,editingBasketKey:ha,editingPanelRefPage:xa});if(!da)return;const{basketKey:Ko,refRBPageKey:Fa,canvasKey:Pa,refCanvasKey:sr}=da;if(!Ko||!Pa)return;const vr=(0,Se.yV)(),Or=vr.getHotItem(Ko);if(!Or)return;const{key:Tr,sup:Kr,hotAttr:{refRBPageKey:Ha,bunch:Br}}=Or;if(bo&&Ko===Po){const{activeCanvasKey:Fr}=(0,U.mf)(Zn),Fi=te.A.getCanvasKeyByAlias(Ko,Pa,Fr);if(!Fi)return;Xt&&MB.runnerController.resetHandler.resetCurWScroll(Fi),en&&MB.runnerController.resetHandler.resetCurWStatus(Fi);const Ii=Br===wt.x.RbPage&&Kr==="B@ref-muban"?Tr:Ha,{sub:Ks}=sdkStore.getHotItem(Ii);Ks.includes((0,rt.OO)(Fi)?(0,rt.QL)(Fi).pop():Fi)&&(MB.runnerController.eventHandler.clearScopeActions(),ke({type:"entry:runner:activate:canvas",payload:{pageKey:Ii,canvasKey:Fi,resetTargetSubWidgetsState:en,resetTargetCanvasScrollOffset:Xt,transition:Rt}}))}else{var Gi,xi;const{basketCanvasMap:Fr}=(0,U.mf)(Zn);if(!Fr.get(Ko))return;const{activeCanvas:Fi}=Fr.get(Ko);(Gi=(0,Se.EW)())==null||Gi.deleteUnderWidgetAnimationRecords(Fi);const Ii=te.A.getCanvasKeyByAlias(Ko,ut,Fi);if(Xt&&MB.runnerController.resetHandler.resetCurWScroll(Ii),en&&MB.runnerController.resetHandler.resetCurWStatus(Ii),Fi===ut&&!en||sdkStore.isTrashed(Ii))return;MB.runnerController.resetHandler.emitChartsOption(),MB.runnerController.listenerHandler.updateCurListenerSnapshotMap(Fi),ke({type:"entry:runner:cache:media",payload:{canvasKey:Fi}}),Rt=Rt||Qa;const Ks=()=>{typeof Rt.callback=="function"&&Rt.callback();const Ft=Ue(),{audioList:Sn,videoList:no}=(0,U.mf)(Ft),wa=[];for(const hr of Sn)hr.keepAlive?wa.push(hr):hr.key.includes(Ko)?te.A.isWidgetInBasketCanvas(hr.key,Ii)?wa.push(hr):hr.audioObj.pause():wa.push(hr);const za=[];for(const hr of no){const ar=document.getElementById(hr.key);ar&&(hr.key.includes(Ko)?te.A.isWidgetInBasketCanvas(hr.key,Ii)?za.push(hr):ar.src="":za.push(hr))}ke({type:"runner:update:state",payload:{audioList:wa,videoList:za}}),MB.runnerController.listenerHandler.listenerHandleAfterload(Ii)};Ii!==Fi&&Or.hotAttr.isVisible&&MB.runnerController.collectNextCanvasKey(Ii,"basketCanvas");for(const Ft of te.A.findAllAVUnder(Ii,"wAudio"))ke({type:"entry:runner:append:audio",payload:{audio:Ft}});for(const Ft of te.A.findAllAVUnder(Ii,"wVideo"))ke({type:"entry:runner:append:video",payload:{video:Ft}});const Ul={...Rt,callback:Ks},ts=new Map(Fr);ts.set(Ko,{activeCanvas:Ii,transition:Ul}),MB.runnerController.eventHandler.clearScopeActions(Ko),ke({type:"runner:update:state",payload:{basketCanvasMap:ts}}),ke({type:"entry:runner:update:basket:status:under",payload:{key:Ii}});const rn=[...Fr.keys()].filter(Ft=>Ft.startsWith("/"+Ko)||Ft===Ko).map(Ft=>(0,rt.OO)(Ft)?(0,rt.QL)(Ft).pop():Ft);ke({type:"runner:reset:basket:list:scroll",payload:{keys:rn}}),(xi=vr.overwriteItem)==null||xi.call(vr,{...Or,hotAttr:{refContentKey:(0,rt.OO)(Ii)?Ii.split("/").at(-1):Ii},sub:[Ii]}),MB.runnerController.listenerHandler.updateListenerTriggers(),MB.runnerController.setupBasketTimers(Ko,Ii)}},"entry:runner:open:hyperlink":(pt,Ee)=>{let{getState:Ue,dispatch:ke}=pt,{payload:{hyperlink:Ve,openIn:st}}=Ee;const ut=Ue(),{isMobile:Rt}=(0,U.bF)(ut),en=(0,l.vq)();let Xt,Zn;try{const Po=new URL(Ve);Xt=Po.href,Zn=Po.hostname.split(".").slice(-2).join(".")}catch(Po){Xt="https://"+Ve,Zn=""}const bo=()=>{try{switch(st){case"inPage":(0,Vo.JW)(Xt,"_self");break;case"newTab":window.ReactNativeWebView?MB.messageBucket.send("openLinkByBrowser",{link:Ve}):(0,Vo.JW)(Xt,"_blank","noreferrer");break}}catch(Po){throw MB.notice({text:I18N.SettingPanel.invalid_url_notice,type:"error"}),new Error("[NO SENTRY]: Invalid hyperlink setting")}};["wondershare.com","modao.cc"].includes(Zn)?en&&st==="newTab"?ke({type:"previewModal:update:state",payload:{preOpenHyperlinkModal:{isOpen:!0,hyperlink:Ve,isMobile:Rt,displayWeChatNewTabInternalUrlTip:!0,confirmText:I18N.Common.confirm,onConfirm:bo}}}):bo():ke({type:"previewModal:update:state",payload:{preOpenHyperlinkModal:{isOpen:!0,hyperlink:Ve,isMobile:Rt,displayWeChatNewTabExternalUrlTip:en&&st==="newTab",confirmText:I18N.SettingPanel.continue,onConfirm:bo}}})},"entry:runner:activate:canvas":(pt,Ee)=>{var Ue;let{getState:ke,dispatch:Ve}=pt,{payload:{pageKey:st,canvasKey:ut,widgetKey:Rt,transition:en,resetTargetSubWidgetsState:Xt=!1,resetTargetCanvasScrollOffset:Zn=!1,saveHistory:bo=!0,forceInit:Po=!1,keepScale:ha=!0,keepOverlayStack:xa=!1,sourceCanvas:da,isResetAllRunner:Ko=!1}}=Ee;const Fa=(0,to.F)();if(Fa){Ve({type:"entry:comment:wigglingCommentCid",payload:{wigglingCommentCid:Fa}});return}Ve({type:"entry:comment:clear"});const Pa=ke(),{activeCanvasKey:sr,history:vr}=(0,U.mf)(Pa);if(sr&&sr===ut&&!Ko){xa||Ve({type:"entry:runner:reset:overlay:stack"});return}if(!st||sdkStore.isTrashed(st)||!MB.runnerController)return;const Or=(0,U.KR)(Pa),Tr=(0,U.Mo)(Pa),Kr=(0,U.hM)(Pa),Ha=(0,U.UB)(Pa),Br=(0,U.ub)(Pa),Gi=(0,U.k6)(Pa);if(!(Po||(0,ht.pE)({isPanelPreviewMode:Or,basketKey:Tr,canvasKey:ut,sharing:Ha})))return;en=en||Qa,/drawer|menu/.test(en.name)?(MB.runnerController.setCurrentCanvasKey(sr),MB.runnerController.setCurrentCanvasAsMenuOrDrawerKey(ut)):(MB.runnerController.setCurrentCanvasKey(null),MB.runnerController.setCurrentCanvasAsMenuOrDrawerKey(null));const Fr=te.A.getCanvasKeyByAlias(st,ut,sr)||(0,so.XV)(st);if(Ko||(MB.runnerController.resetHandler.emitChartsOption(),MB.runnerController.listenerHandler.updateCurListenerSnapshotMap(sr),Ve({type:"entry:runner:cache:media",payload:{canvasKey:sr}})),Zn)MB.runnerController.resetHandler.resetCurWScroll(Fr);else{const{screenScrollTopMap:no,screenScrollLeftMap:wa}=(0,U.mf)(Pa),za=no[Fr]||0,hr=wa[Fr]||0;MB.runnerController.runner.updateScrollTop(Fr,za),MB.runnerController.runner.updateScrollLeft(Fr,hr)}Xt&&MB.runnerController.resetHandler.resetCurWStatus(Fr);const Ii={...en,callback:()=>{typeof en.callback=="function"&&en.callback(),Ve({type:"entry:media:update",payload:{canvasKey:Fr}}),MB.runnerController.listenerHandler.listenerHandleAfterload(Fr,Ko)}},Ks=da?vr.find(no=>{var wa;return(wa=no.current)==null?void 0:wa.endsWith(da)}):null,Ul=bo?[(0,ht.NG)(st,Fr,Ks),...vr]:vr;MB.runnerController.collectNextCanvasKey(Fr,"mainCanvas"),MB.runnerController.destroyScrollBarByCid(sr);const ts=sdkStore.getHotItem(st);ts!=null&&ts.hotAttr&&Ve({type:"preview:current:update:state",payload:{screenMeta:{cid:st,...ts.hotAttr}}}),Ve({type:"entry:update:preview:data"}),Ve(Kr||Br?{type:"entry:runner:update:basket:status:under",payload:{key:st}}:{type:"entry:runner:update:basket:status:under",payload:{key:Fr}}),(Ue=(0,Se.EW)())==null||Ue.clearWidgetAnimationRecords(),MB.runnerController.eventHandler.clearTimeout(),MB.runnerController.eventHandler.iterationHandler.clear(),Ve({type:"entry:runner:reset:overlay:stack"}),Ve({type:"runner:update:state",payload:{transition:Ii,activePageKey:st,activeCanvasKey:Fr,activeWidgetKey:Rt,history:Ul}});const rn=Or||Kr;if((0,ht.AT)(st,Fr,rn||Gi),ha&&Ve({type:"entry:auto-fit:preview:scale"}),Ve({type:"runner:reset:basket:scroll"}),(0,ta.fl)(st),setTimeout(()=>{(0,ta.cL)(Fr)},50),!Fr&&!(Br||rn)){var Ft,Sn;(Ft=MB)!=null&&Ft.notice&&((Sn=MB)==null||Sn.notice({text:I18N.dUtils.no_artboard_cannot_be_previewed,type:"warning"}))}(Gi||Or||Kr)&&MB.previewModalActiveRunner&&MB.previewModalActiveRunner({activePageKey:st,activeCanvasKey:Fr,resetTargetSubWidgetsState:Xt,resetTargetCanvasScrollOffset:Zn}),MB.runnerController.setupCanvasTimers(Kr?st:Fr)},"entry:runner:back-to-prev-canvas":(pt,Ee)=>{var Ue,ke,Ve,st;let{getState:ut,dispatch:Rt}=pt,{payload:en={}}=Ee;const Xt=(0,to.F)();if(Xt){Rt({type:"entry:comment:wigglingCommentCid",payload:{wigglingCommentCid:Xt}});return}Rt({type:"entry:comment:clear"});const Zn=ut(),{activeCanvasKey:bo,history:Po,transition:{name:ha,duration:xa,offset:da}}=(0,U.mf)(Zn),Ko=(0,U.KR)(Zn),Fa=(0,U.Mo)(Zn),Pa=(0,U.hM)(Zn),sr=(0,U.k6)(Zn);if(Po.length===1)return;let vr;const Or=en.currentCanvasKey||(0,ht.Lf)(Po[0])[1];if(!Or)return;const Tr=(0,Se.yV)(),Kr=en.toSource?(Ue=Po.find(rn=>(0,ht.Lf)(rn)[1]===Or))==null?void 0:Ue.from:Po[1],[Ha,Br]=(0,ht.Lf)(Kr);if(!Br||Tr.isTrashed(Br))return;const Gi=(ke=Tr.getHotItem(Or))==null?void 0:ke.hotAttr,xi=(Ve=Tr.getHotItem(Br))==null?void 0:Ve.hotAttr;MB.runnerController.setCurrentCanvasKey(null),MB.runnerController.setCurrentCanvasAsMenuOrDrawerKey(null),Gi&&Gi.orientation!==(xi==null?void 0:xi.orientation)?vr=Qa:en.transition?vr=en.transition:vr={name:go(ha),delay:0,duration:en.noDuration?0:xa,offset:da,callback:en.callback};const Fi={...vr,callback:()=>{typeof vr.callback=="function"&&vr.callback(),Rt({type:"entry:media:update",payload:{canvasKey:Br}}),MB.runnerController.listenerHandler.listenerHandleAfterload(Br)}},Ii=(0,U.UB)(Zn);if(!(0,ht.pE)({isPanelPreviewMode:Ko,basketKey:Fa,canvasKey:Br,sharing:Ii}))return;(st=(0,Se.EW)())==null||st.deleteUnderWidgetAnimationRecords(bo),MB.runnerController.resetHandler.emitChartsOption(),MB.runnerController.listenerHandler.updateCurListenerSnapshotMap(bo),Rt({type:"entry:runner:cache:media",payload:{canvasKey:bo}}),en.resetTargetCanvasScrollOffset&&MB.runnerController.resetHandler.resetCurWScroll(Br),en.resetTargetSubWidgetsState&&MB.runnerController.resetHandler.resetCurWStatus(Br);const Ul=Po.slice(1);MB.runnerController.destroyScrollBarByCid(bo),MB.runnerController.eventHandler.clearTimeout(),MB.runnerController.eventHandler.iterationHandler.clear(),Rt({type:"entry:runner:reset:overlay:stack"});const ts=sdkStore.getHotItem(Ha);ts!=null&&ts.hotAttr&&Rt({type:"preview:current:update:state",payload:{screenMeta:{cid:Ha,...ts.hotAttr}}}),Rt({type:"runner:update:state",payload:{transition:Fi,history:Ul,activePageKey:Ha,activeCanvasKey:Br}}),Rt({type:"entry:sync-runner:set-screen",payload:{cid:Ha}}),(0,ht.AT)(Ha,Br,Ko||Pa),Rt({type:"entry:update:preview:data"}),Rt({type:"entry:runner:update:basket:status:under",payload:{key:Br}}),Rt({type:"entry:auto-fit:preview:scale"}),Rt({type:"runner:reset:basket:scroll"}),(0,ta.cL)(Br),(sr||Ko||Pa)&&MB.previewModalActiveRunner&&MB.previewModalActiveRunner({activePageKey:Ha,activeCanvasKey:Br,resetTargetSubWidgetsState:en.resetTargetSubWidgetsState,resetTargetCanvasScrollOffset:en.resetTargetCanvasScrollOffset}),MB.runnerController.setupCanvasTimers(Br)},"entry:runner:update:basket:status:under":(pt,Ee)=>{let{getState:Ue,dispatch:ke}=pt,{payload:{key:Ve}}=Ee;const st=Ue(),{basketCanvasMap:ut}=(0,U.mf)(st),Rt=te.A.findAllBasketsUnder(Ve),en=new Map(ut);for(const Xt of Rt)if(Xt.sub.length!==0){en.set(Xt.key,{activeCanvas:Xt.sub[0],transition:Qa});for(const Zn of te.A.findAllAVUnder(Xt.sub[0],"wAudio"))ke({type:"entry:runner:append:audio",payload:{audio:Zn}});for(const Zn of te.A.findAllAVUnder(Xt.sub[0],"wVideo"))ke({type:"entry:runner:append:video",payload:{video:Zn}})}ke({type:"runner:update:state",payload:{basketCanvasMap:en}})},"entry:runner:update:basketCanvasMap:by:basketKey":(pt,Ee)=>{var Ue,ke;let{getState:Ve,dispatch:st}=pt,{payload:{key:ut}}=Ee;const Rt=Ve(),{basketCanvasMap:en}=(0,U.mf)(Rt),Xt=new Map(en);if(!ut||sdkStore.isTrashed(ut))return;const Zn=sdkStore.getHotItem(ut);!Zn||(Zn==null||(Ue=Zn.hotAttr)==null?void 0:Ue.type)!==wt.x.WBasket||!(Zn!=null&&(ke=Zn.sub)!=null&&ke.length)||(Xt.set(ut,{activeCanvas:Zn==null?void 0:Zn.sub[0],transition:Qa}),st({type:"runner:update:state",payload:{basketCanvasMap:Xt}}))},"entry:runner:open:overlay":(pt,Ee)=>{let{getState:Ue,dispatch:ke}=pt,{payload:{interaction:Ve}}=Ee;const st=Ue();if((0,U.KR)(st))return;const Rt=(0,U.UB)(st),{targetRBPageKey:en,targetOverlayKey:Xt,transition:Zn,transitionDuration:bo,transitionDelay:Po,addBackdrop:ha,backdropColor:xa,closeWhenClickingOutside:da,overlayRelativePos:Ko}=Ve;if(!te.A.canOverlayBeOpened(Xt,Rt))return;Ve.resetTargetSubWidgetsState&&MB.runnerController.resetHandler.resetCurWStatus(Xt);const{activePageKey:Fa,activeCanvasKey:Pa,overlayStack:sr,basketCanvasMap:vr}=(0,U.mf)(st),Or={name:Zn==="auto"?"fade":Zn,duration:parseFloat(bo||"0")*1e3,delay:parseFloat(Po||"0")*1e3,called:!1,callback:()=>{Or.called||(Or.called=!0,typeof Zn.callback=="function"&&Zn.callback(),te.A.isOpeningUniqueOverlay(sr,Xt)&&ke({type:"entry:media:update",payload:{canvasKey:Xt}}))}};MB.runnerController.collectNextCanvasKey(Xt,"overlayCanvas");const Tr=[...sr,{idx:sr.length+1,itaKey:Ve.key,triggerItemKey:Ve.triggerItemKey,tick:0,isOverlayIn:!0,targetRBPageKey:en,targetOverlayKey:Xt,transition:Or,addBackdrop:ha,backdropColor:xa,backdropFilterBlurRadius:(0,tt.d8)(je(Ve,"backdropFilterBlurRadius","number"),[0,1e4]),overlayRelativePos:Ko,...te.A.getOverlayRelativePosXY(Fa,Pa,Xt,Ko,(0,tt.d8)(je(Ve,"overlayRelativePosX","number"),[-at.rT,at.rT]),(0,tt.d8)(je(Ve,"overlayRelativePosY","number"),[-at.rT,at.rT])),closeWhenClickingOutside:da}];te.A.isOpeningUniqueOverlay(sr,Xt)&&ke({type:"entry:runner:update:basket:status:under",payload:{key:Xt}}),ke({type:"runner:update:state",payload:{overlayStack:Tr}}),MB.runnerController.setupCanvasTimers(Xt,!0)},"entry:runner:swap:overlay":(pt,Ee)=>{var Ue;let{getState:ke,dispatch:Ve}=pt,{payload:{interaction:st}}=Ee;const ut=ke();if((0,U.KR)(ut))return;const en=(0,U.UB)(ut),{targetOverlayKey:Xt,transition:Zn,transitionDuration:bo,transitionDelay:Po}=st;if(!te.A.canOverlayBeOpened(Xt,en))return;const{activePageKey:ha,activeCanvasKey:xa,overlayStack:da,basketCanvasMap:Ko}=(0,U.mf)(ut),Fa=da[da.length-1];if(!Fa)return;const{overlayRelativePos:Pa,overlayRelativePosX:sr,overlayRelativePosY:vr}=Fa;(Ue=(0,Se.EW)())==null||Ue.deleteUnderWidgetAnimationRecords(Fa.targetOverlayKey),st.resetTargetSubWidgetsState&&MB.runnerController.resetHandler.resetCurWStatus(Xt),MB.runnerController.resetHandler.emitChartsOption(),MB.runnerController.listenerHandler.updateCurListenerSnapshotMap(Fa.targetOverlayKey);const Or=()=>{typeof Zn.callback=="function"&&Zn.callback();const Kr=Fa.targetOverlayKey;if(te.A.isClosingUniqueOverlay(da,Kr)){Ve({type:"entry:runner:cleanup:audio:in:overlay",payload:{overlayKey:Kr}}),Ve({type:"entry:runner:cleanup:video:in:overlay",payload:{overlayKey:Kr}});const Ha=Array.from(Ko.keys()).filter(Br=>sdkStore.locUpColdCanvasKey(Br)===Kr);Ve({type:"runner:reset:basket:list:scroll",payload:{keys:Ha}}),Ve({type:"entry:media:update",payload:{canvasKey:Xt}})}MB.runnerController.listenerHandler.listenerHandleAfterload(Xt)};Fa.targetOverlayKey!==Xt&&MB.runnerController.collectNextCanvasKey(Xt,"overlayCanvas");const Tr=da.slice(0,-1).concat([{...Fa,itaKey:st.key,triggerItemKey:st.triggerItemKey,tick:Zn!=="auto"?Fa.tick+1:Fa.tick,targetRBPageKey:st.targetRBPageKey,targetOverlayKey:st.targetOverlayKey,transition:{name:Zn,duration:parseFloat(bo)*1e3,delay:parseFloat(Po)*1e3,callback:Or},overlayRelativePos:Pa,...te.A.getOverlayRelativePosXY(ha,xa,Xt,Pa,sr,vr)}]);te.A.isOpeningUniqueOverlay(da,Xt)&&Ve({type:"entry:runner:update:basket:status:under",payload:{key:Xt}}),Fa.targetOverlayKey&&MB.runnerController.eventHandler.clearScopeActions(Fa.targetOverlayKey),Ve({type:"runner:update:state",payload:{overlayStack:Tr}}),MB.runnerController.setupCanvasTimers(Xt,!0)},"entry:runner:close:overlay":pt=>{let{getState:Ee,dispatch:Ue}=pt;const ke=Ee(),{overlayStack:Ve}=(0,U.mf)(ke),st=Ve.findLastIndex(Xt=>Xt.isOverlayIn),ut=Ve.splice(st,1)[0];if(!ut)return;const Rt=Ve.concat({...ut,isOverlayIn:!1});if(Ue({type:"runner:update:state",payload:{overlayStack:Rt}}),MB.runnerController.resetHandler.emitChartsOption(),ut.targetOverlayKey){var en;MB.runnerController.listenerHandler.updateCurListenerSnapshotMap(ut.targetOverlayKey),MB.runnerController.eventHandler.clearScopeActions(ut.targetOverlayKey),(en=(0,Se.EW)())==null||en.deleteUnderWidgetAnimationRecords(ut.targetOverlayKey)}setTimeout(()=>{const Xt=Ee(),Zn=ut.targetOverlayKey,{overlayStack:bo,basketCanvasMap:Po}=(0,U.mf)(Xt);if(te.A.isClosingUniqueOverlay(bo,Zn)){Ue({type:"entry:runner:cleanup:audio:in:overlay",payload:{overlayKey:Zn}}),Ue({type:"entry:runner:cleanup:video:in:overlay",payload:{overlayKey:Zn}});const ha=Array.from(Po.keys()).filter(xa=>sdkStore.locUpColdCanvasKey(xa)===Zn);Ue({type:"runner:reset:basket:list:scroll",payload:{keys:ha}})}if(bo.length){const ha=bo.findLastIndex(xa=>xa.itaKey===ut.itaKey);if(ha!==-1){const xa=bo.slice(0);xa.splice(ha,1),Ue({type:"runner:update:state",payload:{overlayStack:xa}})}}},ut.transition.duration)},"entry:runner:reset:overlay:stack":(pt,Ee)=>{let{getState:Ue,dispatch:ke}=pt,{payload:{targetOverlayKey:Ve}={targetOverlayKey:""}}=Ee;const st=Ue(),{overlayStack:ut,basketCanvasMap:Rt}=(0,U.mf)(st);let en=ut;if(Ve){const Xt=ut.findIndex(Zn=>Zn.targetOverlayKey===Ve);if(Xt!==-1){en=ut.slice(0,Xt);const Zn=en.map(ha=>ha.targetOverlayKey),bo=ut.slice(Xt,ut.length).map(ha=>ha.targetOverlayKey);bo.forEach(ha=>{ke({type:"entry:runner:cleanup:audio:in:overlay",payload:{overlayKey:ha}}),ke({type:"entry:runner:cleanup:video:in:overlay",payload:{overlayKey:ha}})});const Po=Array.from(Rt.keys()).filter(ha=>{const xa=sdkStore.locUpColdCanvasKey(ha)||"";return bo.includes(xa)&&!Zn.includes(xa)});ke({type:"runner:reset:basket:list:scroll",payload:{keys:Po}})}}else{en=[];const Xt=ut.map(bo=>bo.targetOverlayKey);Xt.forEach(bo=>{ke({type:"entry:runner:cleanup:audio:in:overlay",payload:{overlayKey:bo}}),ke({type:"entry:runner:cleanup:video:in:overlay",payload:{overlayKey:bo}})});const Zn=Array.from(Rt.keys()).filter(bo=>Xt.includes(sdkStore.locUpColdCanvasKey(bo)));ke({type:"runner:reset:basket:list:scroll",payload:{keys:Zn}})}ke({type:"runner:update:state",payload:{overlayStack:en}})},"entry:runner:update:overlay:stack":(pt,Ee)=>{let{getState:Ue,dispatch:ke}=pt,{payload:{keyItemUpdated:Ve}}=Ee;const st=Ue(),{overlayStack:ut,activePageKey:Rt,activeCanvasKey:en}=(0,U.mf)(st),Xt=ut.map(Zn=>{const{itaKey:bo,triggerItemKey:Po,targetOverlayKey:ha}=Zn,xa=sdkStore.getHotItem(Ve);if(!xa)return Zn;if(Po===Ve||xa.hotAttr.type==="wBasket"&&xa.hotAttr.basket==="bMuban"&&(0,rt.OO)(Po)&&(0,rt.QL)(Po).some(da=>da===Ve)){const da=sdkStore.getHotItem(Po);if(!da||!("interactions"in da.hotAttr))return Zn;const Ko=da.hotAttr.interactions.find(Fa=>Fa.key===bo);return!Ko||Ko.interactionType!==B.O2.OpenOverlay?Zn:{...Zn,addBackdrop:Ko.addBackdrop,backdropColor:Ko.backdropColor,backdropFilterBlurRadius:Ko.backdropFilterBlurRadius,overlayRelativePos:Ko.overlayRelativePos,...te.A.getOverlayRelativePosXY(Rt,en,ha,Ko.overlayRelativePos,Ko.overlayRelativePosX,Ko.overlayRelativePosY),closeWhenClickingOutside:Ko.closeWhenClickingOutside}}return Zn});ke({type:"runner:update:state",payload:{overlayStack:Xt}})},"entry:runner:re:pos:overlay":(pt,Ee)=>{let{getState:Ue,dispatch:ke}=pt,{payload:{targetOverlayKey:Ve}={targetOverlayKey:""}}=Ee;const st=Ue(),{overlayStack:ut,activePageKey:Rt,activeCanvasKey:en}=(0,U.mf)(st),Xt=ut.map(Zn=>{if(Ve===""||Zn.targetOverlayKey===Ve){const{targetOverlayKey:bo,overlayRelativePos:Po,overlayRelativePosX:ha,overlayRelativePosY:xa}=Zn;return{...Zn,...te.A.getOverlayRelativePosXY(Rt,en,bo,Po,ha,xa)}}return Zn});ke({type:"runner:update:state",payload:{overlayStack:Xt}})},"entry:runner:update:basket:status:in:overlay":pt=>{let{getState:Ee,dispatch:Ue}=pt;const ke=Ee(),{overlayStack:Ve}=(0,U.mf)(ke);Ve.forEach(st=>{const{targetOverlayKey:ut}=st;Ue({type:"entry:runner:update:basket:status:under",payload:{key:ut}})})}};var kr=s(18183);const ur=pt=>/^\/app\/design\//.test(pt)||/^\/mb-workspace\//.test(pt)||pt.startsWith((0,kr.Dw)("design/"));var Mr=s(34860);const gr="preview-is-stickyshow",dr="preview-is-highlight",wi="preview-is-statePanel",gi="preview-is-shell-type",Li=pt=>"preview-simulator-type-"+pt,Ni=(pt,Ee,Ue)=>{const{isSquare:ke,isMobile:Ve,isEmbedV1:st,isEmbedV2:ut,isHTMLZip:Rt}=Ee;if(ke)return{simulatorType:pt.device==="web"||pt.category==="combo_group"?"long_page":"device",isStickyShow:!1,isStickyAvailable:!0,isHighlight:!0,isShowOutsideArtboardNav:!1};const en=(0,jn.Yt)(gr,!0,jn.qW.Boolean),Xt=(0,jn.Yt)(dr,!0,jn.qW.Boolean);if(Ve||st){const Po=Ue?Ue.highlight:!0;return{simulatorType:"device",isStickyShow:en,isHighlight:Po===void 0?!0:Po,isShowOutsideArtboardNav:!1}}if(ut)return{simulatorType:(Ue==null?void 0:Ue.simulator_type)||"device",isStickyShow:Ue==null?void 0:Ue.sticky,isStickyAvailable:Ue==null?void 0:Ue.view_sticky,isHighlight:!0,isShowOutsideArtboardNav:Ue==null?void 0:Ue.view_prd};if(ur(location.pathname)||Rt)return{simulatorType:(0,jn.Yt)(Li(pt.cid),"device",jn.qW.String),isStickyShow:en,isHighlight:Xt,isShowOutsideArtboardNav:Rt?Ue==null?void 0:Ue.view_prd:!0,isStickyAvailable:!0};if((0,Mr.oK)()){const{simulator_type:Po,sticky:ha,from:xa}=Object.fromEntries(new URLSearchParams(location.search).entries()),da=ha===""?!0:(0,jn.Yt)(gr,!1,jn.qW.Boolean),Ko=xa?Ue==null?void 0:Ue.highlight:Xt,Fa=MB.canEditByCurrentUser||(Ue==null?void 0:Ue.view_prd);return Po?{simulatorType:!Fa&&Po==="outside_artboard"?"device":Po,isStickyShow:da,isHighlight:Ko,isShowOutsideArtboardNav:Fa,isStickyAvailable:!0}:{simulatorType:(Ue==null?void 0:Ue.simulator_type)||"device",isStickyShow:Ue==null?void 0:Ue.sticky,isStickyAvailable:MB.canEditByCurrentUser||(Ue==null?void 0:Ue.view_sticky),isHighlight:Ko,isShowOutsideArtboardNav:Fa}}else return{simulatorType:pt.device==="web"?"long_page":"device",isStickyShow:!1,isHighlight:!0,isStickyAvailable:!0,isShowOutsideArtboardNav:!1}};var Ai=s(14861),Bi=s(93413);const Ss={"entry:init:preview-setting":pt=>{let{getState:Ee,dispatch:Ue}=pt;const ke=Ee(),Ve=(0,U.PL)(ke),st=(0,U.bF)(ke),ut=(0,U.UB)(ke),Rt=(0,U.Ur)(ke),{simulatorType:en,isStickyShow:Xt,isHighlight:Zn,isStickyAvailable:bo,isShowOutsideArtboardNav:Po}=Ni(Ve,st,ut),{isSquare:ha}=st,xa=ha?!1:(0,jn.Yt)("is_minimized",!1,jn.qW.Boolean),da=!Ai.CZ.includes(Rt.device),Ko=(0,jn.Yt)(gi+"-"+Ve.cid,da,jn.qW.Boolean),Fa={simulatorType:en,isStickyShow:Xt,isShowOutsideArtboardNav:Po,isStickyAvailable:bo,isStatePanelShow:(0,jn.Yt)(wi,!1,jn.qW.Boolean),isHighlight:Zn,isMinimized:xa,isShowShell:Ko};Ue({type:"reducer:preview-toolbar:update",payload:Fa})},"entry:preview-setting:update:is-highlight":(pt,Ee)=>{let{dispatch:Ue}=pt,{payload:ke}=Ee;const{isHighlight:Ve}=ke;(0,jn.a0)(dr,!!Ve,jn.qW.Boolean),Ue({type:"reducer:preview-toolbar:update",payload:{isHighlight:Ve}})},"entry:preview-setting:update:show:shell":(pt,Ee)=>{let{getState:Ue,dispatch:ke}=pt,{payload:Ve}=Ee;const{isShowShell:st}=Ve,ut=Ue(),Rt=(0,U.PL)(ut);(0,jn.a0)(gi+"-"+Rt.cid,st,jn.qW.Boolean),ke({type:"reducer:preview-toolbar:update",payload:{isShowShell:st}}),setTimeout(()=>{MB.runnerController.reload()})},"entry:preview-setting:update:simulatorType":(pt,Ee)=>{let{getState:Ue,dispatch:ke}=pt,{payload:Ve}=Ee;const{simulatorType:st}=Ve,ut=Ue(),Rt=(0,U.Ur)(ut),en=(0,U.PL)(ut);(0,jn.a0)(Li(en.cid),st,jn.qW.String),MB.runnerController.resetCurrentScreenScrollState(Rt.cid),ke({type:"reducer:preview-toolbar:update",payload:{simulatorType:st}}),setTimeout(()=>{MB.runnerController.reload()})},"entry:preview-setting:update:is-sticky-show":(pt,Ee)=>{let{dispatch:Ue}=pt,{payload:ke}=Ee;const{isStickyShow:Ve}=ke;(0,jn.a0)(gr,Ve,jn.qW.Boolean),Ue({type:"reducer:preview-toolbar:update",payload:{isStickyShow:Ve}})},"entry:preview-setting:update:is-statePanel-show":(pt,Ee)=>{let{dispatch:Ue}=pt,{payload:ke}=Ee;const{isStatePanelShow:Ve}=ke;(0,jn.a0)(wi,Ve,jn.qW.Boolean),Ue({type:"reducer:preview-toolbar:update",payload:{isStatePanelShow:Ve}})},"entry:preview-setting:restore:leftrightpane":pt=>{let{dispatch:Ee}=pt;const Ue=(0,jn.Yt)("is_minimized",!1,jn.qW.Boolean),ke=(0,jn.Yt)("is_show_rightpane",!0,jn.qW.Boolean);Ee({type:"entry:preview-setting:toggle:isMinimized",payload:{isMinimized:Ue}}),Ee({type:"entry:preview-setting:toggle:rightPane",payload:{isShowRightPane:ke}})},"entry:preview-setting:toggle:isMinimized":(pt,Ee)=>{var Ue,ke,Ve;let{getState:st,dispatch:ut}=pt,{payload:Rt}=Ee;const en=st(),Xt=(0,U.Pf)(en),Zn=(0,U.U4)(en),bo=(0,U.Ph)(en),Po=(0,U.bF)(en),ha=(Ue=Rt==null?void 0:Rt.isMinimized)!=null?Ue:!Xt;ut({type:"reducer:preview-toolbar:update",payload:{isMinimized:ha}}),((ke=Rt==null?void 0:Rt.isMemorize)!=null?ke:!0)&&!bo&&(0,jn.a0)("is_minimized",ha,jn.qW.Boolean),ha?Zn||ut({type:"entry:preview:toggle:isHiddenToolBar",payload:{value:!0,isSetTimeout:!0}}):ut({type:"entry:preview:toggle:isHiddenToolBar",payload:{value:!1}});const{isSquare:da,isEmbedV2:Ko,isHTMLZip:Fa}=Po;if(!(da||Ko||Fa)&&!((Ve=MB)!=null&&(Ve=Ve.commonGuideHelper)!=null&&Ve.checkGuideHasShown(Bi.c.GUIDE_PREVIEW_VIEW_BTN))){var Pa;(Pa=MB)==null||(Pa=Pa.commonGuideHelper)==null||Pa.tryToShowGuide(Bi.c.GUIDE_PREVIEW_VIEW_BTN)}},"entry:preview-setting:toggle:rightPane":(pt,Ee)=>{var Ue,ke;let{getState:Ve,dispatch:st}=pt,{payload:ut}=Ee;const Rt=Ve(),en=(0,U.U4)(Rt),Xt=(0,U.Pf)(Rt),Zn=(0,U.Ph)(Rt),bo=(Ue=ut==null?void 0:ut.isShowRightPane)!=null?Ue:!en;st({type:"reducer:preview-toolbar:update",payload:{isShowRightPane:bo}}),((ke=ut==null?void 0:ut.isMemorize)!=null?ke:!0)&&!Zn&&(0,jn.a0)("is_show_rightpane",bo,jn.qW.Boolean),bo?st({type:"entry:preview:toggle:isHiddenToolBar",payload:{value:!1}}):Xt&&st({type:"entry:preview:toggle:isHiddenToolBar",payload:{value:!0,isSetTimeout:!0}})}};var qi=s(55135);const Ga=(pt,Ee,Ue,ke,Ve,st)=>{let ut;const Rt=Ue?!0:Ve;if(pt.hostname==="youtu.be")ut="https://www.youtube.com/embed/"+pt.pathname.replace("/","")+"?autoplay="+(Ue?1:0)+"&loop="+(ke?1:0)+"&controls="+(st?0:1)+"&mute="+(Rt?1:0);else if(pt.hostname==="www.youtube.com")ut="https://www.youtube.com/embed/"+pt.searchParams.get("v")+"?autoplay="+(Ue?1:0)+"&loop="+(ke?1:0)+"&controls="+(st?0:1)+"&mute="+(Rt?1:0);else if(pt.hostname==="v.qq.com")ut="https://v.qq.com/txp/iframe/player.html?vid="+pt.pathname.split("/").slice(-1).join().replace(".html","")+"&autoplay="+Ue+(Rt?"&volume=0":"");else if(pt.hostname==="vimeo.com")ut="https://player.vimeo.com/video/"+pt.href.split("/").slice(-1).join()+"?autoplay="+(Ue?1:0)+"&loop="+(ke?1:0)+"&controls="+(st?0:1)+"&mute="+(Rt?1:0);else if(pt.hostname==="www.bilibili.com")ut="https://player.bilibili.com/player.html?bvid="+pt.pathname.split("/")[2]+"&autoplay="+(Ue?1:0)+"&t="+(Ue?.1:0)+"}";else if(pt.hostname==="v.youku.com"){var en;ut="https://player.youku.com/embed/"+((en=pt.pathname.split("/")[2])==null?void 0:en.replace("id_","").replace(".html",""))}return{iframeSrc:ut,iframeHtml:"<iframe id="+Ee+" src="+ut+' style="border: unset" type="text/html" width="100%" height="100%" allow="autoplay" allowfullscreen></iframe>'}},ai={"entry:media:update":(pt,Ee)=>{let{getState:Ue,dispatch:ke}=pt,{payload:{canvasKey:Ve}}=Ee;const st=Ue(),ut=(0,U.KR)(st),{activeCanvasKey:Rt,audioList:en,videoList:Xt,overlayStack:Zn}=(0,U.mf)(st),bo=[];for(const da of en){var Po;const Ko=(Po=sdkStore.getHotItem(da.coldCanvasKeyToAudio||""))==null?void 0:Po.hotAttr.asOverlay;da.keepAlive||(ut?te.A.isWidgetInBasketCanvas(da.key,Rt):Ko?Zn.some(Fa=>da.coldCanvasKeyToAudio===Fa.targetOverlayKey):da.coldCanvasKeyToAudio===Rt)?bo.push(da):da.audioObj.pause()}const ha=[];for(const da of Xt){const Ko=document.getElementById(da.key);if(Ko){var xa;const Fa=(xa=sdkStore.getHotItem(da.coldCanvasKeyToVideo||""))==null?void 0:xa.hotAttr.asOverlay;(ut?te.A.isWidgetInBasketCanvas(da.key,Rt):Fa?Zn.some(Pa=>da.coldCanvasKeyToVideo===Pa.targetOverlayKey):da.coldCanvasKeyToVideo===Rt)?ha.push(da):Ko.src=""}}ke({type:"runner:update:state",payload:{audioList:bo,videoList:ha}});for(const da of te.A.findAllAVUnder(Ve,"wAudio"))ke({type:"entry:runner:append:audio",payload:{audio:da}});for(const da of te.A.findAllAVUnder(Ve,"wVideo"))ke({type:"entry:runner:append:video",payload:{video:da}})},"entry:runner:append:audio":(pt,Ee)=>{let{getState:Ue,dispatch:ke}=pt,{payload:{audio:Ve}}=Ee;const st=(0,U.mf)(Ue()),{audioList:ut}=st;if(ut.find(Fa=>{let{key:Pa}=Fa;return Ve.key===Pa}))return;const{key:Rt,hotAttr:{audio:{isAutoplay:en,isLoop:Xt,isKeepAlive:Zn,audioSrc:bo}}}=Ve,Po=new Audio(bo),{audioPaused:ha,audioCurrentTime:xa}=MB.runnerController.resetHandler.getWStatus(Rt);xa!==void 0&&(Po.currentTime=xa),Po.preload="metadata",Po.autoplay=en,Po.loop=Xt;const da=ha===void 0?en:!ha;da?Po.play().catch(()=>{}):Po.pause();const Ko={key:Rt,currentTime:xa||0,duration:0,audioState:da?"play":"pause",audioObj:Po,keepAlive:Zn,previewAudioLoaded:!1,coldCanvasKeyToAudio:rootSdk.sdkStore.locUpColdCanvasKey(Rt),hotCanvasKeyToAudio:rootSdk.sdkStore.locUpHotCanvasKey(Rt)};if((0,l.vq)()){const Fa=()=>{Po.play().then(()=>{da||Po.pause()}).catch(sr=>{console.log("\u5FAE\u4FE1\u73AF\u5883\u97F3\u9891\u64AD\u653E\u5931\u8D25:",sr)})},Pa=()=>{WeixinJSBridge.invoke("getNetworkType",{},()=>{Fa()})};typeof WeixinJSBridge<"u"?Pa():document.addEventListener("WeixinJSBridgeReady",Pa,!1)}Po.onloadedmetadata=Fa=>{ke({type:"entry:runner:update:audio",payload:{key:Rt,duration:Fa.target.duration}}),ke({type:"entry:runner:update:audio",payload:{key:Rt,previewAudioLoaded:!0}})},Po.ontimeupdate=Fa=>{ke({type:"entry:runner:update:audio",payload:{key:Rt,currentTime:Fa.target.currentTime}})},Po.onplay=()=>{ke({type:"entry:runner:update:audio",payload:{key:Rt,audioState:"play"}})},Po.onpause=()=>{ke({type:"entry:runner:update:audio",payload:{key:Rt,audioState:"pause"}})},ke({type:"runner:update:state",payload:{audioList:[...ut,Ko]}})},"entry:runner:cleanup:audio":pt=>{let{getState:Ee}=pt;const Ue=(0,U.mf)(Ee()),{audioList:ke}=Ue;ke.forEach(Ve=>{Ve.audioObj.src=null})},"entry:runner:cleanup:audio:in:overlay":(pt,Ee)=>{let{getState:Ue,dispatch:ke}=pt,{payload:{overlayKey:Ve}}=Ee;const st=(0,U.mf)(Ue()),{audioList:ut}=st,Rt=ut.filter(en=>!en.keepAlive&&en.coldCanvasKeyToAudio===Ve?(MB.runnerController.resetHandler.updateWStatusMap(en.key,{audioPaused:en.audioObj.paused,audioCurrentTime:en.audioObj.currentTime}),en.audioObj.src=null,!1):!0);ke({type:"runner:update:state",payload:{audioList:Rt}})},"entry:runner:cleanup:video:in:overlay":(pt,Ee)=>{let{getState:Ue,dispatch:ke}=pt,{payload:{overlayKey:Ve}}=Ee;const st=(0,U.mf)(Ue()),{videoList:ut}=st,Rt=ut.filter(en=>{if(en.coldCanvasKeyToVideo===Ve){var Xt;const Zn=(Xt=MB.runnerController.resetHandler.getWStatus(en.key,"videoRef"))==null?void 0:Xt.current;Zn&&MB.runnerController.resetHandler.updateWStatusMap(en.key,{videoRef:void 0,videoPaused:Zn.paused,videoMuted:Zn.muted,videoVolume:Zn.volume,videoCurrentTime:Zn.currentTime,videoPlaybackRate:Zn.playbackRate});const bo=document.getElementById(en.key);if(bo)return bo.src=null,!1}return!0});ke({type:"runner:update:state",payload:{videoList:Rt}})},"entry:runner:update:audio":(pt,Ee)=>{let{getState:Ue,dispatch:ke}=pt,{payload:{key:Ve,...st}}=Ee;const ut=(0,U.mf)(Ue()),{audioList:Rt}=ut,en=Rt.find(Xt=>Xt.key===Ve);en&&(Object.assign(en,st),ke({type:"runner:update:state",payload:{audioList:[...Rt.filter(Xt=>Xt.key!==Ve),en]}}))},"entry:runner:append:video":(pt,Ee)=>{let{getState:Ue,dispatch:ke}=pt,{payload:{video:Ve}}=Ee;const st=(0,U.mf)(Ue()),{videoList:ut}=st,{key:Rt,hotAttr:{video:{videoSrc:en,isAutoplay:Xt,isLoop:Zn,isMuted:bo,isHideControls:Po}}}=Ve,ha=(0,qi.dB)(en)&&(0,qi.Je)(new URL(en))?Ga(new URL(en),Rt,Xt,Zn,bo,Po).iframeSrc:en,xa={key:Rt,src:ha,isAutoplay:Xt,coldCanvasKeyToVideo:rootSdk.sdkStore.locUpColdCanvasKey(Rt),hotCanvasKeyToVideo:rootSdk.sdkStore.locUpHotCanvasKey(Rt)};ke({type:"runner:update:state",payload:{videoList:[...ut,xa]}})},"entry:runner:cache:audio":(pt,Ee)=>{let{getState:Ue}=pt,{payload:{canvasKey:ke}}=Ee;if(!ke)return;const Ve=(0,U.mf)(Ue()),{audioList:st}=Ve;st.forEach(ut=>{(ut.coldCanvasKeyToAudio===ke||ut.hotCanvasKeyToAudio===ke)&&MB.runnerController.resetHandler.updateWStatusMap(ut.key,{audioPaused:ut.audioObj.paused,audioCurrentTime:ut.audioObj.currentTime})})},"entry:runner:cache:video":(pt,Ee)=>{let{getState:Ue}=pt,{payload:{canvasKey:ke}}=Ee;if(!ke)return;const Ve=(0,U.mf)(Ue()),{videoList:st}=Ve;st.forEach(ut=>{if(ut.coldCanvasKeyToVideo===ke||ut.hotCanvasKeyToVideo===ke){var Rt;const en=(Rt=MB.runnerController.resetHandler.getWStatus(ut.key,"videoRef"))==null?void 0:Rt.current;en&&MB.runnerController.resetHandler.updateWStatusMap(ut.key,{videoRef:void 0,videoPaused:en.paused,videoMuted:en.muted,videoVolume:en.volume,videoCurrentTime:en.currentTime,videoPlaybackRate:en.playbackRate})}})},"entry:runner:cache:media":(pt,Ee)=>{let{dispatch:Ue}=pt,{payload:{canvasKey:ke}}=Ee;Ue({type:"entry:runner:cache:audio",payload:{canvasKey:ke}}),Ue({type:"entry:runner:cache:video",payload:{canvasKey:ke}})}};var kt=s(58053),Qt=s(18250),oo=s.n(Qt),ao=s(47695),fa=s(36449),wr=s(77337),Xa=s(78998);let ir=null;const Er={...{...Xn,...qr,...Ss,...fa.k.__entry,...ai,"entry:init:preview:leftPaneWidth":pt=>{let{getState:Ee,dispatch:Ue}=pt;const ke=Ee(),Ve=(0,U.bF)(ke),st=(0,U.PL)(ke);if(Ve.isSquare)Ue({type:"preview:set:leftPaneWidth",payload:{leftPaneWidth:xo.qE}});else{const ut=(0,jn.Yt)("preview_layer_left_panel_width_"+st.cid,xo.sR,jn.qW.Number);ut&&Ue({type:"preview:set:leftPaneWidth",payload:{leftPaneWidth:ut,projectCid:st.cid}})}},"entry:preview:check:location-hash":pt=>{let{getState:Ee,dispatch:Ue}=pt;const ke=window.location.hash||"";if(ke.startsWith("#thread=")){const Ve=ke.substr(8),st=Ee().model.commentThreads.find(ut=>ut.cid===Ve);if(!st)return console.warn("[checkLocationHash] missing commentThread: "+Ve);Ue({type:"entry:sync-runner:set-screen",payload:{cid:st.screen_cid}}),Ue({type:"entry:comment:set:active",payload:{isActive:!0}}),Ue({type:"container:comment:focus",payload:{focusCommentThreadCid:st.cid}})}},"entry:init:preview:preference":(pt,Ee)=>{let{dispatch:Ue}=pt,{payload:{preference:ke}}=Ee;const Ve=!ke.theme||ke.theme==="grey"?xo.Ke.theme:ke.theme,st={...ke,theme:Ve,grid_size:ke.grid_size||xo.Ke.grid_size};Ue({type:"preview:update:state",payload:{preference:st}}),Ue({type:"reducer:preview-toolbar:update",payload:{theme:Ve}})},"entry:init:preview:related:data":async(pt,Ee)=>{let{dispatch:Ue}=pt,{payload:{rootProject:ke,previewMode:Ve,screenMeta:st,isPanelPreviewMode:ut,isCommunityComboPreview:Rt,isPreviewCombo:en,basketKey:Xt,screenTreeData:Zn,screenDataMap:bo,isQuickPreview:Po,quickPreviewSize:ha,isPreviewAIComponent:xa}}=Ee;Ue({type:"preview:current:update:state",payload:{rootProject:ke,screenMeta:st,isPanelPreviewMode:ut,isCommunityComboPreview:Rt,isPreviewCombo:en,screenTreeData:Zn,screenDataMap:bo,panelPreviewBasketKey:Xt,isQuickPreview:Po,quickPreviewSize:ha,isPreviewAIComponent:xa}}),Ue({type:"entry:update:preview:data"}),Ue({type:"entry:comment:init:projectShare"});const da=MB.global.designOptions||{isDesign:!0};Ue({type:"entry:init:preview-setting"}),Ue({type:"preview:update:state",payload:{designOptions:da}}),Ue({type:"entry:preview:update-mode",payload:{toolbarActiveItem:Ve}}),Ue({type:"entry:init:preview:leftPaneWidth"})},"entry:preview:select":(pt,Ee)=>{let{dispatch:Ue,getState:ke}=pt,{payload:{toolbarActiveItem:Ve}}=Ee;const st=ke(),ut=(0,U.Br)(st);Ve!==ut&&Ue({type:"entry:preview:update-mode",payload:{toolbarActiveItem:Ve}})},"entry:preview:update-mode":async(pt,Ee)=>{let{dispatch:Ue,getState:ke}=pt,{payload:{toolbarActiveItem:Ve}}=Ee;const st=ke();Ue({type:"reducer:preview-toolbar:update",payload:{toolbarActiveItem:Ve}}),Ue({type:"preview:previewPanel:navindex",payload:{previewPanelNavIndex:0}}),setTimeout(()=>{(0,U.pW)(st)&&MB.runnerController.reload()})},"entry:enter:full-screen-mode":async pt=>{let{dispatch:Ee}=pt;await kt.A.request(),Ee({type:"entry:preview:select",payload:{toolbarActiveItem:"preview"}}),Ee({type:"reducer:preview-toolbar:fullscreen",payload:{isFullScreenMode:!0}}),Ee({type:"entry:auto-fit:preview:scale"}),Ee({type:"preview:set:canvas:offset",payload:{offset:{x:0,y:0}}}),Ee({type:"entry:preview-setting:toggle:isMinimized",payload:{isMinimized:!0,isMemorize:!1}}),Ee({type:"entry:preview-setting:toggle:rightPane",payload:{isShowRightPane:!1,isMemorize:!1}})},"entry:exit:fill-screen-mode":pt=>{let{dispatch:Ee}=pt;Ee({type:"reducer:preview-toolbar:fullscreen",payload:{isFullScreenMode:!1}}),Ee({type:"entry:init:preview:scale"})},"entry:update:preview:data":(pt,Ee)=>{let{getState:Ue,dispatch:ke}=pt,{payload:Ve}=Ee;const st=Ue(),ut=(0,U.Ur)(st),Rt=(0,U.KR)(st),en=(Ve==null?void 0:Ve.pageKey)||ut.cid,Xt=sdkStore.getHotItem(en);if(Ve!=null&&Ve.pageKey){const{hotAttr:bo}=Xt,Po={cid:Ve==null?void 0:Ve.pageKey,...bo};ke({type:"preview:current:update:state",payload:{screenMeta:Po}})}const Zn=(0,U.De)(st);ke({type:"preview:current:update:state",payload:{folderTreeData:Zn===Xt?{...Xt}:Xt}}),Rt&&ke({type:"runner:update:state",payload:{panelPreviewStateListCacheTag:Math.random()}})},"entry:update:preview:screenTreeData":pt=>{let{getState:Ee,dispatch:Ue}=pt;const ke=Ee(),Ve=(0,U.KR)(ke),{activePageKey:st}=(0,U.mf)(ke),{screenTreeData:ut,screenDataMap:Rt}=(0,Yn.tb)(Ve&&st?st:Me.$k);Ue({type:"preview:current:update:state",payload:{screenTreeData:ut,screenDataMap:Rt}})},"entry:preview:reload:screen":pt=>{let{getState:Ee,dispatch:Ue}=pt;const ke=Ee(),Ve=(0,U.HA)(ke),{activePageKey:st,activeCanvasKey:ut}=(0,U.mf)(ke),Rt=(0,U.KR)(ke),en=(0,U.Mo)(ke),Xt=(0,U.hM)(ke),Zn=st&&!sdkStore.isTrashed(st)&&sdkStore.getHotItem(st),bo=ut&&!sdkStore.isTrashed(ut)&&sdkStore.getHotItem(ut);let Po=ut,ha=st;if(!Zn||!bo){if(Zn&&!bo){var xa,da;Po=(xa=(da=sdkStore.getSubHotItemList(st))==null||(da=da.filter(Pa=>{let{hotAttr:sr}=Pa;return(sr==null?void 0:sr.type)===wt.x.Canvas&&!sr.asOverlay}).sort((Pa,sr)=>{var vr,Or;return((vr=Pa.hotAttr)==null?void 0:vr.order)-((Or=sr.hotAttr)==null?void 0:Or.order)})[0])==null?void 0:da.key)!=null?xa:""}else if(!Zn&&bo){const Pa=sdkStore.getHotItem(Po);Pa&&(ha=Pa.sup)}else{const{activePageKey:Pa,activeCanvasKey:sr}=(0,Yn.u1)(Ve);ha=Pa,Po=sr}if(!ha){Xt&&(setTimeout(()=>{var Pa;(Pa=MB)==null||Pa.notice({text:I18N.dUtils.no_canvas_cannot_be_previewed_on_combo,type:"warning"})},200),Ue({type:"runner:update:state",payload:{activePageKey:"",activeCanvasKey:""}}));return}if(Ue({type:"entry:runner:cleanup:audio"}),Ue({type:"runner:update:state",payload:{audioList:[],videoList:[]}}),Rt&&en&&(0,rt.OO)(ut)&&(Po=(0,rt.iK)([en],Po)),Ue({type:"entry:runner:activate:canvas",payload:{pageKey:ha,canvasKey:Po}}),Xt&&Ue({type:"entry:preview:zoom-quick-preview"}),!Po){var Ko,Fa;const Pa=en&&((Ko=sdkStore.getHotItem(en))==null?void 0:Ko.hotAttr.bunch)==="rbPage";(Fa=MB)==null||Fa.notice({text:Pa?I18N.dUtils.no_canvas_cannot_be_previewed_on_muban:I18N.dUtils.no_artboard_cannot_be_previewed,type:"warning"})}}Po&&(Ue({type:"entry:runner:update:basket:status:under",payload:{key:Po}}),MB.runnerController.destroyScrollBarByCid(Po)),Ue({type:"entry:update:preview:data",payload:{pageKey:ha}})},"entry:preview:reload":async pt=>{let{getState:Ee,dispatch:Ue}=pt;Ue({type:"entry:runner:cleanup:audio"}),Ue({type:"runner:update:state",payload:{audioList:[],videoList:[]}}),Ue({type:"entry:update:preview:screenTreeData"});const ke=Ee(),{activePageKey:Ve,activeCanvasKey:st}=(0,U.mf)(ke),ut=(0,U.HA)(ke),Rt=Ve&&!sdkStore.isTrashed(Ve)&&sdkStore.getHotItem(Ve),en=st&&!sdkStore.isTrashed(st)&&sdkStore.getHotItem(st);let Xt=st,Zn=Ve;if(!Rt||!en){if(Rt&&!en){var bo,Po;Xt=(bo=(Po=sdkStore.getSubHotItemList(Ve))==null||(Po=Po.find(xa=>{let{hotAttr:da}=xa;return(da==null?void 0:da.type)===wt.x.Canvas&&!(da!=null&&da.asOverlay)}))==null?void 0:Po.key)!=null?bo:""}else if(!Rt&&en){const xa=sdkStore.getHotItem(Xt);xa&&(Zn=xa.sup)}else{const{activePageKey:xa,activeCanvasKey:da}=(0,Yn.u1)(ut);Zn=xa,Xt=da}if(Ue({type:"entry:runner:activate:canvas",payload:{pageKey:Zn,canvasKey:Xt}}),!Xt){var ha;(ha=MB)==null||ha.notice({text:"\u753B\u5E03\u65E0\u9875\u9762\uFF0C\u65E0\u6CD5\u9884\u89C8",type:"warning"})}}Xt&&(Ue({type:"entry:runner:update:basket:status:under",payload:{key:Xt}}),MB.runnerController.resetScreenScrollState(Xt),MB.runnerController.destroyScrollBarByCid(Xt)),Ue({type:"entry:update:preview:data",payload:{pageKey:Zn}}),Ue({type:"runner:update:state",payload:{runnerCacheTag:Math.random()}})},"entry:preview:toggle:isHiddenToolBar":(pt,Ee)=>{let{getState:Ue,dispatch:ke}=pt,{payload:{value:Ve,isSetTimeout:st=!1}}=Ee;const ut=Ue(),{isSquare:Rt,isEmbedV2:en,isHTMLZip:Xt}=(0,U.bF)(ut);if(!Rt&&!en&&!Xt&&(0,ao.jo)())return;const Zn=(0,C.sI)(ut),bo=(0,U.kM)(ut),Po=(0,U.KR)(ut),ha=(0,U.hM)(ut),xa=(0,U.ub)(ut),da=(0,U.Pf)(ut),Ko=(0,U.U4)(ut),Fa=(0,U.H5)(ut);if(clearTimeout(ir),Po||ha||xa||Fa||Ve&&(!da||Ko))return;if(Zn){ke({type:"preview:update:isHiddenToolBar",payload:!1});return}const Pa=oo()(Ve)?Ve:!bo;if(st&&Pa===!0){ir=setTimeout(()=>{ke({type:"preview:update:isHiddenToolBar",payload:Pa})},2e3);return}ke({type:"preview:update:isHiddenToolBar",payload:Pa})},"entry:preview:update:current:sharing":(pt,Ee)=>{let{dispatch:Ue}=pt,{payload:{sharing:ke}}=Ee;const{screen_visible_switch:Ve,screen_visible_list:st}=ke;let ut=st;ke.type==="default"?(Ve&&(ut=(0,Yn.UG)(st[0])),Ue({type:"preview:set:current-projectShare",payload:{projectShare:{...ke,screen_visible_list:ut}}})):Ue({type:"preview:set:current-projectShare",payload:{projectShare:ke}})},"entry:preview:switch:page":(pt,Ee)=>{let{getState:Ue,dispatch:ke}=pt,{payload:Ve}=Ee;const st=Ue(),{activePageKey:ut,activeCanvasKey:Rt}=(0,U.mf)(st),en=(0,U.lR)(st),Xt=en.indexOf(Rt);if(Xt===-1)return;const Zn=Ve!=null&&Ve.isPrev?Xt-1:Xt+1,bo=en[Zn];if(!bo)return;ke({type:"entry:runner:activate:canvas",payload:{pageKey:ut,canvasKey:bo,transition:{name:"none",delay:0,duration:0,offset:100}}}),ke({type:"preview:set:canvas:offset:dev",payload:{offset:{x:0,y:0}}})},"entry:export:item":async(pt,Ee)=>{var Ue,ke;let{getState:Ve,dispatch:st}=pt,{payload:{exportConfigList:ut,itemToExportKeyList:Rt}}=Ee;st({type:"preview:update:state",payload:{isWidgetBeingExported:!0}});const en=Ve(),Xt=(0,U.PL)(en).name,Zn=(Ue=MB)!=null&&Ue.user||(ke=MB)!=null&&ke.currentOrg?(0,Xa.XB)(MB.user,MB.currentOrg,(0,U.PL)(en)):!0,bo=[];for(const Po of Rt)for(const ha of ut)bo.push({...ha,hasWatermark:Zn,itemKey:Po});await(0,wr.WE)(bo,Xt,Po=>(console.error(Po),!0)),st({type:"preview:update:state",payload:{isWidgetBeingExported:!1}})}},"entry:state:init":pt=>{let{dispatch:Ee}=pt;Ee({type:"user:set",payload:MB.user||void 0}),Ee({type:"preview:current:update:state",payload:{org:MB.org}}),Ee({type:"teams:refresh"})},"entry:sync-runner:set-screen":(pt,Ee)=>{let{dispatch:Ue,getState:ke}=pt,{payload:{cid:Ve}}=Ee;const st=ke(),{activePageKey:ut}=(0,U.mf)(st);if(Ve===ut)return;const{hotAttr:Rt}=sdkStore.getHotItem(Ve),en={cid:Ve,...Rt};Ue({type:"preview:current:update:state",payload:{screenMeta:en}}),MB.runnerController.clearTimerHandler(),Ue({type:"entry:runner:activate:canvas",payload:{pageKey:Ve}})},"entry:preview:toggle:sharingManager":pt=>{let{dispatch:Ee,getState:Ue}=pt;const ke=Ue(),Ve=(0,U.H5)(ke);Ee({type:"preview:sharingManager:update:state",payload:{isShowSharingManager:!Ve}})}};var ji=s(78235);const ci={id:null,name:"",email:"",avatar:"",plan:{state:"",type:"free",rawType:"free",daysLeft:""}},{getState:Cl,setState:Di,wrapEntry:Rs}=(0,ko.J$)(ci),wc={"user:set":Rs((pt,Ee,Ue)=>{let{dispatch:ke}=Ee,{payload:Ve={}}=Ue;const{id:st=null,name:ut="",email:Rt="",avatar:en="",created_at:Xt}=Ve;ke({type:"reducer:user:update",payload:(0,ji.O1)(pt,{id:st,name:ut,email:Rt,avatar:en,plan:Vc(Ve),created_at:Xt})})})};function Vc(pt){let{plan:Ee,state:Ue,limitation:ke,days_left:Ve}=pt;return{state:Ue||"",type:Ue==="active"&&Ee||"free",rawType:Ee||"free",daysLeft:Ve||""}}const Wl={entryMap:wc,getState:Cl,setState:Di};var ca=s(54844),Lr=s(31181);const yi={...Wl.entryMap,"entry:comment:init:projectShare":async pt=>{let{getState:Ee,dispatch:Ue}=pt;const ke=Ee(),Ve=(0,U.PL)(ke),st=ur(location.pathname);try{if(st){const{sharing:ut}=await(0,ca.J_)({project:Ve});Ue({type:"preview:set:current-projectShare",payload:{projectShare:ut}})}}catch(ut){console.log("e",ut)}},"entry:state:update:previewUserCommonGuidesData":(pt,Ee)=>{let{getState:Ue,dispatch:ke}=pt,{payload:{key:Ve}}=Ee;const st=Ue(),ut=(0,U.HW)(st);if(!!(ut!=null&&ut.id)){let en=(0,U.Sy)(st),Xt=(0,U.sU)(st);en.push(Ve),en=Array.from(new Set(en)),(0,Lr.J)(JSON.stringify(en)),Xt.includes(Ve)&&(Xt.splice(Xt.findIndex(Zn=>Zn===Ve),1),Xt=Array.from(new Set(Xt))),ke({type:"preview:current:update:state",payload:{previewCommonGuidesHasShown:en,previewCommonGuidesToBeShown:Xt}})}}},Ts={user:(0,ko.Tf)("reducer:user:update",Wl)},Cc={activeCid:"",transition:{name:"slideleft",delay:0,duration:2e3,offset:100,callback:()=>null},history:[],currentScreenStateHistory:[],screenInfoMap:{},screenScrollTopMap:{},screenScrollLeftMap:{},audioList:[],videoList:[],activeCanvasKey:"",activePageKey:"",basketCanvasMap:new Map,runnerCacheTag:0,tearStickyCacheTag:0,panelPreviewStateListCacheTag:0,basketScrollTopMap:{},basketScrollLeftMap:{},overlayStack:[]};function Wi(pt,Ee){pt===void 0&&(pt=Cc);const{type:Ue,payload:ke}=Ee;switch(Ue){case"runner:update:state":return{...pt,...ke};case"runner:update:scroll-top":{const{screenMetaCid:Ve,scrollTop:st}=ke;return{...pt,screenScrollTopMap:{...pt.screenScrollTopMap,[Ve]:st}}}case"runner:update:scroll-left":{const{screenMetaCid:Ve,scrollLeft:st}=ke;return{...pt,screenScrollLeftMap:{...pt.screenScrollLeftMap,[Ve]:st}}}case"runner:update:basket:scroll-top":{const{basketKey:Ve,scrollTop:st}=ke;return{...pt,basketScrollTopMap:{...pt.basketScrollTopMap,[Ve]:st}}}case"runner:update:basket:scroll-left":{const{basketKey:Ve,scrollLeft:st}=ke;return{...pt,basketScrollLeftMap:{...pt.basketScrollLeftMap,[Ve]:st}}}case"runner:reset:basket:list:scroll":{const{keys:Ve}=ke,st=()=>{const ut={};return Ve.forEach(Rt=>ut[Rt]=0),ut};return{...pt,basketScrollLeftMap:{...pt.basketScrollLeftMap,...st()},basketScrollTopMap:{...pt.basketScrollTopMap,...st()}}}case"runner:reset:basket:scroll":return{...pt,basketScrollTopMap:{},basketScrollLeftMap:{}};case"runner:reset:state":return Cc;case"runner:reset:state:except:history":return{...Cc,history:pt.history};default:return pt}}const Ml={rootProject:null,projectMeta:null,screenGlue:null,isPanelPreviewMode:!1,isPreviewCombo:!1,panelPreviewBasketKey:null,projectShare:null,previewCommonGuidesHasShown:[],previewCommonGuidesToBeShown:[],screenMetaList:[],folderTreeData:null,screenTreeData:null,refreshCount:0,STRenderArea:[0,0],org:null,isQuickPreview:!1,quickPreviewSize:null,isPreviewAIComponent:!1,previewViewMode:"device"};function Oi(pt,Ee){pt===void 0&&(pt=Ml);const{type:Ue,payload:ke}=Ee;switch(Ue){case"preview:current:update:state":return{...pt,...ke};case"preview:set:root-project":return{...pt,rootProject:ke.rootProject};case"preview:set:current-projectShare":return{...pt,projectShare:ke.projectShare};case"preview:screenMetaList:set":return{...pt,screenMetaList:ke.screenMetaList};case"preview:refreshCount:update":return{...pt,refreshCount:pt.refreshCount+1};case"preview:set:STRenderArea":return{...pt,STRenderArea:ke.STRenderArea};case"update:org:member:list":{const{orgMembers:Ve}=ke;return{...pt,org:{...pt.org,members:Ve}}}case"current:update:previewViewMode":return{...pt,previewViewMode:ke.previewViewMode};default:return pt}}const zs={isSpaceDown:!1,isShiftDown:!1},Hl={isDesktop:!0,isInApp:!1,isMobile:!1,isIOSClient:!1,isStandAlone:!1,isEmbedV1:!1,isHTMLZip:!1,isSquare:!1},El={isShowNewVersionArtboardGuide:!1},Xl="preview_layer_panel_height",uc={previewOptions:Hl,designOptions:{},guideOptions:El,offset:{x:0,y:0},currentScreenOriginOffset:{x:0,y:0},scale:100,hasChangedScaleManually:!1,keyFlags:zs,viewport:{width:0,height:0,left:0,top:0},preference:{},previewPanelNavIndex:0,screenCommentThreadCountMap:null,panelHeight:(0,jn.Yt)(Xl,window.innerHeight*.6,jn.qW.Number),isHiddenToolBar:!1,leftPaneWidth:xo.sR,isWidgetBeingExported:!1,rightPaneWidth:xo.xM,collapsedRBPageKeySet:new Set,shellContainer:{width:0,height:0,widthBare:0,heightBare:0}};function Pl(pt,Ee){pt===void 0&&(pt=uc);const{type:Ue,payload:ke}=Ee;switch(Ue){case"preview:update:state":return{...pt,...ke};case"preview:set:canvas:offset":return{...pt,offset:ke.offset};case"preview:set:canvas:currentScreenOriginOffset":return{...pt,currentScreenOriginOffset:ke.currentScreenOriginOffset};case"preview:set:scale":return{...pt,scale:ke.scale};case"preview:set:key:flags":return{...pt,keyFlags:{...zs,...ke}};case"preview:reset:key:flags":return{...pt,keyFlags:zs};case"preview:scrollbar:viewport":return{...pt,viewport:ke};case"preview:previewPanel:navindex":return{...pt,previewPanelNavIndex:ke.previewPanelNavIndex};case"preview:update:preference":return{...pt,preference:{...pt.preference,...ke}};case"preview:comment:update:screen_count_map":return{...pt,screenCommentThreadCountMap:ke.screenCommentThreadCountMap||null};case"preview:panel:set:height":{const{panelHeight:Ve}=ke;return(0,jn.a0)(Xl,Ve,jn.qW.Number),{...pt,panelHeight:Ve}}case"preview:update:guideOptions":return{...pt,guideOptions:{...pt.guideOptions,...ke}};case"preview:update:isHiddenToolBar":return{...pt,isHiddenToolBar:ke};case"preview:set:canvas:offset:dev":return{...pt,offset:{...pt.offset,...ke.offset}};case"preview:set:leftPaneWidth":return ke.projectCid&&(0,jn.a0)("preview_layer_left_panel_width_"+ke.projectCid,ke.leftPaneWidth,jn.qW.Number),{...pt,leftPaneWidth:ke.leftPaneWidth};case"preview:set:rightPaneWidth":return ke.projectCid&&(0,jn.a0)("preview_layer_right_panel_width_"+ke.projectCid,ke.rightPaneWidth,jn.qW.Number),{...pt,rightPaneWidth:ke.rightPaneWidth};case"preview:set:shellContainer":return{...pt,shellContainer:ke.shellContainer};case"preview:set:collapsedRBPageKeySet":return{...pt,collapsedRBPageKeySet:ke.collapsedRBPageKeySet};default:return pt}}var Pc=s(86969),Gl=s(81122);const vo={toolbarActiveItem:Pc.$y,isFullScreenMode:!1,simulatorType:"device",isShowShell:!0,isStickyShow:!0,isStickyAvailable:!0,isHighlight:!0,isStatePanelShow:!0,isOutsideVisible:!1,isShowOutsideArtboardNav:!1,isMinimized:(0,jn.Yt)("is_minized",!1,jn.qW.Boolean),isShowRightPane:(0,jn.Yt)("is_show_rightpane",!0,jn.qW.Boolean),appVersion:"",isDummyApk:!1,isShowSplash:!1,theme:xo.Sx.LIGHT,isFromSharing:(0,Mr.IB)(),isFromAbar:(0,Gl.BG)()};function ia(pt,Ee){pt===void 0&&(pt=vo);let{type:Ue,payload:ke}=Ee;switch(Ue){case"reducer:preview-toolbar:update":return{...pt,...ke};case"reducer:preview-toolbar:fullscreen":return{...pt,isFullScreenMode:ke.isFullScreenMode};case"reducer:preview-toolbar:update:highlight":return{...pt,isHighlight:ke.isHighlight};default:return pt}}const na={preOpenHyperlinkModal:{isOpen:!1},imagePreviewModal:{isOpen:!1}};function Sa(pt,Ee){pt===void 0&&(pt=na);const{type:Ue,payload:ke}=Ee;switch(Ue){case"previewModal:update:state":return{...pt,...ke};case"previewModal:reset:state":return na;case"previewModal:reset:popup:state":{const{modalName:Ve}=ke;return{...pt,[Ve]:na[Ve]}}default:return pt}}const Na={isShowSharingManager:!1};function Tt(pt,Ee){pt===void 0&&(pt=Na);const{type:Ue,payload:ke}=Ee;switch(Ue){case"preview:sharingManager:update:state":return{...pt,...ke};default:return pt}}var mn=s(62485);const Rn={current:Oi,common:Pl,modals:Sa,previewSetting:ia,runner:Wi,sharingManager:Tt,draft:mn.A};var gn=s(6861);const Tn={STMode:!1,activeTearPreview:null,tearOffset:{left:0,top:0}};function wo(pt,Ee){pt===void 0&&(pt=Tn);const{type:Ue,payload:ke}=Ee;switch(Ue){case"ST:update":return Object.assign({},pt,ke);default:return pt}}const io={"entry:ST:STMode:toggle":pt=>{let{getState:Ee,dispatch:Ue}=pt;const ke=(0,Mo.Lc)(Ee());Ue({type:"ST:update",payload:{STMode:!ke}})}};var fo=s(93e3),co=s(14166),ga=s(32424),Fo=s(27480),Eo=s(21489),Oa=s(86493),Ra=s(31348),tr=s(78401),Ar=s(79770);const nr=pt=>{const Ee=(0,U.X_)(pt),Ue=(0,U.ER)(pt);return{scale:Ee/100,offset:Ue}},$a={...to.u,"entry:comment:rebuild:commentList":pt=>{let{dispatch:Ee}=pt;const Ue=rootSdk.cmtStore.getSubHotItemList("C@main").filter(Ve=>Ve.hotAttr.type==="cCmtPack"),ke=[];Ue.forEach(Ve=>{Ve.sub.forEach(st=>{const ut=rootSdk.cmtStore.getHotItem(st),Rt=(0,Eo.Bt)(ut);ut.sub.forEach(en=>{const Xt=rootSdk.cmtStore.getHotItem(en);Rt.comments.push((0,Eo.gR)(Xt))}),ke.push(Rt)})}),Ee({type:"comment:update:allCommentList",payload:{allCommentList:ke}})},"entry:comment:mousedown":(pt,Ee)=>{let{getState:Ue,dispatch:ke}=pt,{payload:{event:Ve}}=Ee;const st=Ue(),ut=(0,C.sI)(st),Rt=(0,U.mf)(st);if(ut){const Xt=document.querySelector("#preview-content-container .zoom-area");if(!Xt)return;const Zn=Xt.getBoundingClientRect(),{x:bo,y:Po,width:ha,height:xa}=Zn,da=Fo.rw.xywh(bo,Po,ha,xa),Ko=Q.Z.xy(Ve.clientX,Ve.clientY);if(Fo.rw.contains(da,Ko)){var en;const{activeCanvasKey:Fa}=Rt,Pa=(en=document.querySelector('#preview-content-container div[data-cid="'+Fa+'"]'))==null?void 0:en.getBoundingClientRect();if(!Pa)return;const{x:sr,y:vr,width:Or,height:Tr}=Pa,Kr=Fo.rw.xywh(sr,vr,Or,Tr),Ha=Q.Z.xy(Ve.clientX,Ve.clientY);Fo.rw.contains(Kr,Ha)?ke({type:"entry:comment:create:mousedown",payload:{event:Ve}}):ke({type:"entry:comment:empty:mousedown",payload:{event:Ve}})}else ke({type:"entry:comment:empty:mousedown",payload:{event:Ve}})}},"entry:comment:create:mousedown":(pt,Ee)=>{let{getState:Ue,dispatch:ke}=pt,{payload:{event:Ve}}=Ee;const st=Ue(),ut=(0,C.sI)(st),Rt=(0,U.mf)(st),en=(0,C.nO)(st),Xt=(0,C.fd)(st),Zn=(0,C.YW)(st),bo=(0,C.CI)(st),Po=(0,C.Cb)(st),ha=(0,C.V8)(st);if((0,Eo.m0)(Ve)){en&&ke({type:"comment:update:startCommentAnchorPoint",payload:{startCommentAnchorPoint:null}}),Xt&&ke({type:"entry:comment:benot-dragging"});return}if(Zn)return;const xa=(0,to.F)();if(xa){ke({type:"entry:comment:wigglingCommentCid",payload:{wigglingCommentCid:xa}});return}if(ha){ke({type:"entry:comment:clear"});return}if(Po){const xi=bo.find(Fr=>Fr.cid===Po);if(xi){const{comments:Fr}=xi,Fi=(0,C.Ou)(st);[xi,...Fr].find(Ks=>Ks.cid===Fi)&&ke({type:"comment:update:editingRecordCid",payload:{editingRecordCid:""}})}ke({type:"comment:update:activeCommentCid",payload:{activeCommentCid:""}});return}if(!ut)return;const da=nr(st),{activePageKey:Ko,activeCanvasKey:Fa,screenScrollLeftMap:Pa,screenScrollTopMap:sr}=Rt,vr=Q.Z.xy(Ve.clientX,Ve.clientY),Or=Pa[Fa],Tr=sr[Fa],Kr=(0,Eo.v0)(vr,Fa,da,Or,Tr),Ha=(0,Eo._p)(Kr,Fa,{offset:{x:0,y:0},scale:1}),{user:Br}=window.MB,Gi={threadType:"point",cid:(0,ga.xc)(),isCompleted:!1,comments:[],screenCid:Ko,canvasCid:Fa,canvasVec2:Kr,message:"",x:Ha.x,y:Ha.y,w:0,h:0,z:1,userInfo:Br,userId:Br==null?void 0:Br.id,vec2:Ha,rect:null,status:"creating"};ke({type:"comment:update:startCommentAnchorPoint",payload:{startCommentAnchorPoint:Ha}}),ke({type:"comment:update:creatingComment",payload:{creatingComment:Gi}}),MB.runnerController.scrollHandler.toggleScrollBar(!1)},"entry:comment:create:mousemove":(pt,Ee)=>{let{getState:Ue,dispatch:ke}=pt,{payload:{event:Ve}}=Ee;const st=Ue(),ut=(0,C.nO)(st),Rt=nr(st),en=(0,U.mf)(st);if(!ut)return;let Xt=(0,C.V8)(st);if(!Xt)return;const{activePageKey:Zn,activeCanvasKey:bo,screenScrollLeftMap:Po,screenScrollTopMap:ha}=en,xa=Q.Z.xy(Ve.clientX,Ve.clientY),da=Po[bo],Ko=ha[bo],Fa=(0,Eo.v0)(xa,bo,Rt,da,Ko),Pa=(0,Eo._p)(Fa,bo,{offset:{x:0,y:0},scale:1});if(Q.Z.distance(ut,Pa)<5)Xt={threadType:"point",...Xt,screenCid:Zn,canvasVec2:Fa,vec2:Pa,rect:null,x:Pa.x,y:Pa.y,w:0,h:0,canvasCid:bo||""};else{const{x:vr,y:Or}=ut,{x:Tr,y:Kr}=Pa,Ha={x:vr<=Tr?vr:Tr,y:Or<=Kr?Or:Kr,w:Math.abs(Tr-vr),h:Math.abs(Kr-Or),rotate:0},Br=(0,Eo.vl)(Ha,bo);Xt={...Xt,threadType:"frame",vec2:null,rect:Ha,x:vr<=Tr?vr:Tr,y:Or<=Kr?Or:Kr,w:Math.abs(Tr-vr),h:Math.abs(Kr-Or),canvasVec2:Br,canvasCid:bo||""}}ke({type:"comment:update:creatingComment",payload:{creatingComment:Xt}})},"entry:comment:create:mouseup":pt=>{let{getState:Ee,dispatch:Ue}=pt;const ke=Ee();if(!(0,C.nO)(ke))return;Ue({type:"comment:update:isCommentDragging",payload:{isCommentDragging:!1}});const st=(0,C.V8)(ke);st&&(Ue({type:"comment:update:activeCommentCid",payload:{activeCommentCid:st.cid}}),Ue({type:"comment:update:editorRawContentObject",payload:{editorRawContentObject:{}}}),Ue({type:"comment:update:editorIsEditing",payload:{editorIsEditing:!0}}),Ue({type:"comment:update:editingCommentCid",payload:{editingCommentCid:st.cid}})),Ue({type:"comment:update:startCommentAnchorPoint",payload:{startCommentAnchorPoint:null}})},"entry:comment:anchor:mousedown":(pt,Ee)=>{let{getState:Ue,dispatch:ke}=pt,{payload:{event:Ve,comment:st}}=Ee;if(!st||(st==null?void 0:st.status)==="creating")return;const ut=Ue(),Rt=(0,C.CI)(ut),en=(0,C.Cb)(ut),Xt=(0,C.V8)(ut),Zn=(0,C.az)(ut),bo={x:Ve.clientX,y:Ve.clientY},Po={...st},ha=(0,to.F)();if(ha){ke({type:"entry:comment:wigglingCommentCid",payload:{wigglingCommentCid:ha}});return}Xt&&ke({type:"comment:update:creatingComment",payload:{creatingComment:null}});let xa;(0,tr.FJ)({onPointerDown:()=>{st.cid===Zn&&ke({type:"entry:comment:clear"}),xa=Rt.find(da=>da.cid===st.cid)},onDragStart:()=>{!(0,Mr.OB)()&&!MB.canEditByCurrentUser||ke({type:"entry:comment:be-dragging"})},onDrag:(da,Ko)=>{!(0,Mr.OB)()&&!MB.canEditByCurrentUser||ke({type:"entry:comment:drag",payload:{cid:st.cid,prevComment:Po,prevPoint:bo,curPoint:{x:da,y:Ko}}})},onDrop:(da,Ko)=>{const Fa=Po&&Po.cid;if(Ko&&!en&&ke({type:"comment:update:activeCommentCid",payload:{activeCommentCid:st.cid}}),Ko&&st.cid===Fa&&["created","checked"].includes(st.status)?st.cid===en?ke({type:"comment:update:activeCommentCid",payload:{activeCommentCid:""}}):ke({type:"comment:update:activeCommentCid",payload:{activeCommentCid:st.cid}}):ke({type:"comment:update:activeCommentCid",payload:{activeCommentCid:st.cid}}),!xa)return;const{canvasCid:Pa,cid:sr,threadType:vr}=xa;let Or=!1;if(vr==="point"){const{hotAttr:{x:Tr,y:Kr}}=rootSdk.cmtStore.getHotItem(sr),Ha=Q.Z.xy(Tr,Kr);Or=(0,Ar.Tg)(Ha,Pa)&&!0}else if(vr==="frame"){const{hotAttr:{x:Tr,y:Kr,w:Ha,h:Br}}=rootSdk.cmtStore.getHotItem(sr),Gi=[Tr,Kr,Tr+Ha,Kr+Br];Or=(0,Ar.TW)(Gi,Pa)&&!0}if(!Or){const Tr={x:xa.x,y:xa.y,canvasVec2:xa.canvasVec2};ke({type:"entry:comment:update:item",payload:{cid:xa.cid,attr:Tr}})}setTimeout(()=>{ke({type:"entry:comment:benot-dragging",payload:{cid:st.cid,undo:!0}})},16.7)}})},"entry:comment:be-dragging":pt=>{let{dispatch:Ee}=pt;Ee({type:"comment:update:isCommentDragging",payload:{isCommentDragging:!0}})},"entry:comment:drag":(pt,Ee)=>{let{getState:Ue,dispatch:ke}=pt,{payload:{cid:Ve,prevComment:st,prevPoint:ut,curPoint:Rt,vec2Delta:en}}=Ee;const Xt=Ue(),Zn=(0,C.CI)(Xt),bo=nr(Xt),Po=(0,U.dK)(Xt),ha=(0,U.mf)(Xt);if(!Zn.find(Tr=>Tr.cid===Ve))return;const{activeCanvasKey:da}=ha;let Ko,Fa;if(Po){const[Tr,Kr]=(0,Eo.RR)(ut,Rt,!0,!1);Ko=Kr.x-Tr.x,Fa=Kr.y-Tr.y}else Ko=Rt.x-ut.x,Fa=Rt.y-ut.y;const Pa=Q.Z.xy(Ko,Fa),sr=fo.L.applyInverse(bo,Q.Z.add(fo.L.apply(bo,st.canvasVec2),Pa)),vr=(0,Eo._p)(sr,da,{offset:{x:0,y:0},scale:1}),Or={x:vr.x,y:vr.y,canvasVec2:sr};ke({type:"entry:comment:update:item",payload:{cid:Ve,attr:Or}})},"entry:comment:benot-dragging":(pt,Ee)=>{let{getState:Ue,dispatch:ke}=pt,{payload:Ve}=Ee;ke({type:"comment:update:isCommentDragging",payload:{isCommentDragging:!1}})},"entry:comment:resize":(pt,Ee)=>{let{getState:Ue,dispatch:ke}=pt,{payload:{cid:Ve,rect:st,screenRect:ut}}=Ee;const Rt=Ue(),en=(0,C.CI)(Rt),Xt=(0,U.mf)(Rt);if(!en.find(vr=>vr.cid===Ve))return;const{activeCanvasKey:bo}=Xt,{x:Po,y:ha,w:xa,h:da}=ut,Ko=[Po,ha,Po+xa,ha+da],Fa=document.querySelector("#preview-content-container .zoom-area").getBoundingClientRect(),Pa=[0,0,Fa.width,Fa.height];if((0,co.cj)(Pa,Ko)){const vr=Fo.rw.enclosingRects([st]),Or=(0,Eo.vl)(st,bo),Tr={x:vr.x,y:vr.y,w:vr.w,h:vr.h,canvasVec2:Or,canvasCid:bo||""};ke({type:"entry:comment:update:item",payload:{cid:Ve,attr:Tr}})}},"entry:comment:cancel":pt=>{let{getState:Ee,dispatch:Ue}=pt;Ue({type:"entry:comment:clear"})},"entry:comment:confirm":(pt,Ee)=>{let{getState:Ue,dispatch:ke}=pt,{payload:{cid:Ve}}=Ee;const st=Ue(),ut=(0,C.V8)(st),Rt=(0,C.CI)(st),en=(0,C.uX)(st),Xt=ut||Rt.find(Pa=>Pa.cid===Ve);if(!Xt)return;const{user:Zn,members:bo=[]}=window.MB,{content:Po,replyUserCid:ha,userCids:xa}=(0,Eo.bL)(en);let da="";const Ko=xa.concat(ha).filter(Boolean);if(ut)da=Ko.length>0?"appointed":"comment";else{da=Ko.length>0?"replied_appoint":"replied_comment";const{userInfo:Pa}=Xt;if(Zn.cid!==Pa.cid){const sr=bo.find(vr=>vr.user_cid===Pa.cid);sr&&(Pa.name=sr.name,Pa.avatar=sr.avatar,Pa.email=sr.email),Pa.cid}}const Fa=(0,Oa.qn)(en);ke({type:"entry:comment:noticeAtUsers",payload:{content:Po,noticeType:da,userCids:Ko,commentCid:Ve}}),ke(ut?{type:"entry:comment:init:item",payload:{type:"thread",curComment:Xt,message:Fa}}:{type:"entry:comment:init:item",payload:{type:"content",curComment:Xt,message:Fa}}),ke({type:"comment:update:creatingComment",payload:{creatingComment:null}}),ke({type:"comment:update:editorRawContentObject",payload:{editorRawContentObject:{}}}),ke({type:"comment:update:editorIsEditing",payload:{editorIsEditing:!1}}),ke({type:"comment:update:editingCommentCid",payload:{editingCommentCid:""}}),ke({type:"comment:update:startCommentAnchorPoint",payload:{startCommentAnchorPoint:null}}),MB.runnerController.scrollHandler.toggleScrollBar(!0)},"entry:comment:delete":(pt,Ee)=>{let{getState:Ue,dispatch:ke}=pt,{payload:{cid:Ve}}=Ee;const st=Ue(),ut=(0,C.CI)(st);if(!Ve)return;const Rt=ut.find(Zn=>Zn.cid===Ve);if(!Rt)return;const{userInfo:en}=Rt,{user:Xt}=window.MB;if(Xt.cid!==en.cid){MB.notice({text:"\u5220\u9664\u8BC4\u8BBA\u6743\u9650\u4E0D\u8DB3"});return}ke({type:"entry:comment:del:item",payload:{cid:Ve}}),ke({type:"comment:update:activeCommentCid",payload:{activeCommentCid:""}}),ke({type:"comment:update:editingCommentCid",payload:{editingCommentCid:""}}),ke({type:"comment:update:editingRecordCid",payload:{editingRecordCid:""}})},"entry:comment:record:editing":(pt,Ee)=>{let{getState:Ue,dispatch:ke}=pt,{payload:{cid:Ve,recordCid:st}}=Ee;const ut=Ue(),en=(0,C.CI)(ut).find(Zn=>Zn.cid===Ve);!en||![...en.comments,en].find(Zn=>Zn.cid===st)||(ke({type:"comment:update:editorIsEditing",payload:{editorIsEditing:!1}}),ke({type:"comment:update:editingCommentCid",payload:{editingCommentCid:""}}),ke({type:"comment:update:editingRecordCid",payload:{editingRecordCid:st}}),MB.runnerController.scrollHandler.toggleScrollBar(!1))},"entry:comment:record:delete":(pt,Ee)=>{let{getState:Ue,dispatch:ke}=pt,{payload:{cid:Ve,recordCid:st}}=Ee;const ut=Ue(),en=(0,C.CI)(ut).find(Zn=>Zn.cid===Ve);!en||![...en.comments,en].find(Zn=>Zn.cid===st)||(ke({type:"entry:comment:del:item",payload:{cid:st||Ve}}),ke({type:"comment:update:editingRecordCid",payload:{editingRecordCid:""}}))},"entry:comment:record:confirm":(pt,Ee)=>{let{getState:Ue,dispatch:ke}=pt,{payload:{cid:Ve,recordCid:st,rawContent:ut}}=Ee;const Rt=Ue(),Xt=(0,C.CI)(Rt).find(Pa=>Pa.cid===Ve);if(!Xt)return;let Zn=-1,bo=null;if(Xt.cid===st?bo=Xt:Xt.comments.forEach((Pa,sr)=>{Pa.cid===st&&(Zn=sr,bo=Pa)}),!bo)return;const{content:Po,replyUserCid:ha,userCids:xa}=(0,Eo.bL)(ut),da=xa.concat(ha).filter(Boolean);let Ko="";Zn===-1?(Ko="comment",da.length>0&&(Ko="appointed")):(Ko="replied_comment",da.length>0&&(Ko="replied_appoint")),ke({type:"entry:comment:noticeAtUsers",payload:{content:Po,noticeType:Ko,userCids:da,commentCid:Ve}});const Fa={message:ut,mtime:rootSdk.fssCmt.getClockStore().getMtime()};ke({type:"entry:comment:update:item",payload:{cid:st||Ve,attr:Fa}}),ke({type:"comment:update:editingRecordCid",payload:{editingRecordCid:""}}),MB.runnerController.scrollHandler.toggleScrollBar(!0)},"entry:comment:record:cancel":(pt,Ee)=>{let{getState:Ue,dispatch:ke}=pt,{payload:{cid:Ve,recordCid:st}}=Ee;const ut=Ue(),en=(0,C.CI)(ut).find(bo=>bo.cid===Ve);!en||![en,...en.comments].find(bo=>bo.cid===st)||!(0,C.Ou)(ut)||(ke({type:"comment:update:editingRecordCid",payload:{editingRecordCid:""}}),MB.runnerController.scrollHandler.toggleScrollBar(!0))},"entry:comment:noticeAtUsers":(pt,Ee)=>{let{getState:Ue}=pt,{payload:{content:ke,noticeType:Ve,userCids:st,commentCid:ut}}=Ee;const Rt=Ue(),en=(0,U.PL)(Rt),Xt=(0,U.mf)(Rt),{activePageKey:Zn}=Xt,bo=en.cid;Ra.A.noticeCommentAtUsers({projectCid:bo,noticeType:Ve,userCids:st,content:ke,screenCid:Zn,commentCid:ut})},"entry:comment:rightPanel:active":(pt,Ee)=>{let{getState:Ue,dispatch:ke}=pt,{payload:{commentCid:Ve}}=Ee;const st=Ue();(0,C.CI)(st).find(en=>en.cid===Ve)&&ke({type:"comment:update:activeCommentCid",payload:{activeCommentCid:Ve}})},"entry:comment:update:atStyle":(pt,Ee)=>{let{getState:Ue,dispatch:ke}=pt,{payload:{dom:Ve}}=Ee;const st=document.querySelector("#preview-comment-view-container"),ut=(0,Eo.GY)(Ve,st),Rt=ut.left+16,en=ut.top+16+20;ke({type:"comment:update:atStyle",payload:{atStyle:{top:en,left:Rt}}})},"entry:comment:update:emojiToastStyle":(pt,Ee)=>{let{getState:Ue,dispatch:ke}=pt,{payload:{event:Ve,scrollTop:st,dom:ut}}=Ee;const Rt=document.querySelector("#preview-comment-view-container"),en=(0,Eo.GY)(ut,Rt),Xt=en.left-20,Zn=en.top-st+59;ke({type:"comment:update:emojiToastStyle",payload:{emojiToastStyle:{left:Xt,top:Zn}}})},"entry:comment:update:view-container-style":pt=>{let{getState:Ee,dispatch:Ue}=pt;const ke=document.getElementById("preview-comment-view-container");if(!ke)return;const Ve=Ee(),st=(0,U.mf)(Ve),ut=(0,U.X_)(Ve),{activeCanvasKey:Rt,screenScrollTopMap:en,screenScrollLeftMap:Xt}=st,Zn=en[Rt],bo=Xt[Rt];ke.style.transform="translateY("+Zn*ut/100+"px) translateX("+bo*ut/100+"px)",Ue({type:"entry:comment:show-or-hide:anchor-node"})},"entry:comment:show-or-hide:anchor-node":(pt,Ee)=>{let{getState:Ue,dispatch:ke}=pt,{payload:Ve}=Ee;const st=document.querySelectorAll("#preview-comment-view-container .comment-anchor-container");if(st.length===0)return;const ut=Ue(),Rt=(0,U.mf)(ut),{activeCanvasKey:en}=Rt,Xt=document.querySelector("#pscreen"+en+" .screen-content"),Zn=document.querySelector("#pscreen"+en+" .screen-content .widgets"),bo=(0,U.X_)(ut);if(!Xt||!Zn)return;const Po=(parseFloat(Zn==null?void 0:Zn.style.top)||0)*bo/100,ha=(parseFloat(Zn==null?void 0:Zn.style.left)||0)*bo/100,xa=Xt.clientHeight*bo/100,da=Xt.clientWidth*bo/100;st.forEach(Ko=>{if(Ko.classList.contains("point")){const Fa=parseFloat(Ko.style.top),Pa=parseFloat(Ko.style.left);Po+Fa+Eo.xb<0||Po+Fa-Eo.xb>xa||ha+Pa<0||ha+Pa+Eo.yG>da?Ko.style.display="none":Ko.style.display="block"}else{const Fa=parseFloat(Ko.style.top),Pa=parseFloat(Ko.style.left),sr=parseFloat(Ko.clientWidth),vr=parseFloat(Ko.clientHeight);Po+Fa<=0&&Po+Fa+vr<0||Po+Fa>xa&&Po+Fa+vr>xa||ha+Pa<0&&ha+Pa+sr<0||ha+Pa>da&&ha+Pa+sr>da?Ko.style.visibility="hidden":Ko.style.visibility="inherit"}})},"entry:comment:empty:mousedown":(pt,Ee)=>{let{getState:Ue,dispatch:ke}=pt,{payload:{event:Ve}}=Ee;const st=Ue(),ut=(0,C.nO)(st),Rt=(0,C.fd)(st);if((0,Eo.m0)(Ve)){ut&&ke({type:"comment:update:startCommentAnchorPoint",payload:{startCommentAnchorPoint:null}}),Rt&&ke({type:"entry:comment:benot-dragging"});return}const en=(0,to.F)();if(en){ke({type:"entry:comment:wigglingCommentCid",payload:{wigglingCommentCid:en}});return}ke({type:"entry:comment:clear"})}};var Rr=s(36666),or=s(17533);const Ba=(0,On.tY)({}),Ja=()=>{const pt={...yi,...$a,...Er,...io},Ee={model:(0,zn.HY)(Ts),comment:gn.A,container:(0,zn.HY)(Rn),ST:wo,watermark:Rr.A},{middleware:Ue,setEntryMap:ke}=(0,ko.RZ)();return ke(pt),{store:(0,zn.y$)((0,zn.HY)(Ee),Ba((0,zn.Tw)(Ue,or.v)))}};var Za=s(60690),Nr=s(67787),ii=s(29767),Ci=s(9338),Zi=s(85584),Zr=s(24437),Hi=s(72214);const yr=pt=>{class Ee extends I.PureComponent{constructor(Ve){super(Ve),(0,r.A)(this,"abarHandleOnMessage",Fa=>{(0,Gl.cS)(Fa,null,!0)}),this.state={isZero:!1};const{previewMode:st,projectAlike:ut,activePageKey:Rt,activeCanvasKey:en,isPanelPreviewMode:Xt,isCommunityComboPreview:Zn,basketKey:bo,activeWidgetKey:Po,projectShare:ha,isPreviewCombo:xa,isQuickPreview:da,quickPreviewSize:Ko}=Ve;MB.currentProject=ut,(0,Gl.et)(ut);try{const Fa=(0,Zr.rV)(Rt);if(!Xt&&!xa&&(0,Zi.lB)(ha)){this.state={isZero:!0};return}MB.runnerController.init({rootProject:ut,activePageKey:Fa,activeCanvasKey:en,basketKey:bo,activeWidgetKey:Po},st,Xt,Zn,ha,xa,da,Ko)}catch(Fa){this.state={isZero:!0}}}componentDidMount(){var Ve,st;(0,Gl.KA)(),(0,Gl.BG)()&&window.addEventListener("message",this.abarHandleOnMessage,!1),(Ve=(st=this.props).onComponentDidMount)==null||Ve.call(st)}componentWillUnmount(){var Ve;(Ve=MB.runnerController)==null||Ve.clear(),(0,Gl.BG)()&&window.removeEventListener("message",this.abarHandleOnMessage,!1)}render(){const{isZero:Ve}=this.state;if(Ve)return(0,ii.V)();const{store:st,theme:ut,onCloseModal:Rt,onLunch:en}=this.props;return(0,Hi.jsx)(J.Kq,{store:st,children:(0,Hi.jsx)(Nr.NP,{theme:Za.A[ut],children:(0,Hi.jsx)(N.D.Provider,{value:ut,children:(0,Hi.jsx)(pt,{onCloseModal:Rt,onLunch:en})})})})}}const Ue=(0,T.Mz)([U.m5,U.UB],(ke,Ve)=>({theme:ke,projectShare:Ve}));return(0,J.Ng)(ke=>Ue(ke))(Ee)},$r=pt=>{const Ee=yr(pt);return ke=>(0,Hi.jsx)(Ci.A,{children:(0,Hi.jsx)(Ee,{...ke})})},os=pt=>{const Ee=Ja(),Ue=(0,Hn.e)(),ke=new wn(Ee,Ue,MB.f),Ve=$r(pt);return{runnerController:ke,messageBucket:Ue,webpackInterface:Ee,PreviewApp:Ve}}},61565:(Qn,qe,s)=>{"use strict";s.d(qe,{Lc:()=>r,nC:()=>I,yc:()=>J});const r=N=>N.ST.STMode,I=N=>N.ST.activeTearPreview,J=N=>N.ST.tearOffset},61774:(Qn,qe,s)=>{"use strict";s.d(qe,{A:()=>M});var r=s(38502),I=Object.defineProperty,J=Object.defineProperties,N=Object.getOwnPropertyDescriptors,T=Object.getOwnPropertySymbols,te=Object.prototype.hasOwnProperty,q=Object.prototype.propertyIsEnumerable,ne=(w,y,j)=>y in w?I(w,y,{enumerable:!0,configurable:!0,writable:!0,value:j}):w[y]=j,B=(w,y)=>{for(var j in y||(y={}))te.call(y,j)&&ne(w,j,y[j]);if(T)for(var j of T(y))q.call(y,j)&&ne(w,j,y[j]);return w},l=(w,y)=>J(w,N(y)),U=(w,y)=>{var j={};for(var Q in w)te.call(w,Q)&&y.indexOf(Q)<0&&(j[Q]=w[Q]);if(w!=null&&T)for(var Q of T(w))y.indexOf(Q)<0&&q.call(w,Q)&&(j[Q]=w[Q]);return j},M=(0,r.forwardRef)((w,y)=>{var j=w,{size:Q,spin:ze,style:me}=j,Se=U(j,["size","spin","style"]);const Me=B(B({width:Q||"var(--x-icon-size, 1em)",height:Q||"var(--x-icon-size, 1em)",animation:ze?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),me);return r.createElement("svg",l(B({ref:y,style:Me},Se),{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.0989 14.6563H13.8983V13.5458C13.8983 13.3199 14.0815 13.1367 14.3075 13.1367H15.0089C15.2349 13.1367 15.4181 13.3199 15.4181 13.5458V16.176H10.0989V17.0913C10.0989 17.3808 9.80654 17.5787 9.53777 17.4712L3.01444 14.8621C2.70374 14.7378 2.5 14.4369 2.5 14.1023V3.31749C2.5 2.86553 2.86638 2.49915 3.31834 2.49915H14.5998C15.0517 2.49915 15.4181 2.86553 15.4181 3.31749V5.12927C15.4181 5.35525 15.2349 5.53844 15.0089 5.53844H14.3075C14.0815 5.53844 13.8983 5.35525 13.8983 5.12927V4.01879H6.29944L9.58445 5.33268C9.89515 5.45695 10.0989 5.75787 10.0989 6.0925V14.6563ZM17.3975 9.15606C17.5342 9.23804 17.5342 9.43605 17.3975 9.51803L14.2194 11.4247C14.0787 11.5091 13.8998 11.4078 13.8998 11.2437V10.1391C13.8998 10.1158 13.8809 10.0969 13.8575 10.0969H11.0713C10.9547 10.0969 10.8602 10.0024 10.8602 9.88581V8.78828C10.8602 8.67172 10.9547 8.57722 11.0713 8.57722H13.8575C13.8809 8.57722 13.8998 8.55832 13.8998 8.53501V7.43035C13.8998 7.26629 14.0787 7.16496 14.2194 7.24936L17.3975 9.15606Z",fill:"#B7B9BD"}))})},61920:(Qn,qe,s)=>{"use strict";s.d(qe,{A:()=>M});var r=s(38502),I=Object.defineProperty,J=Object.defineProperties,N=Object.getOwnPropertyDescriptors,T=Object.getOwnPropertySymbols,te=Object.prototype.hasOwnProperty,q=Object.prototype.propertyIsEnumerable,ne=(w,y,j)=>y in w?I(w,y,{enumerable:!0,configurable:!0,writable:!0,value:j}):w[y]=j,B=(w,y)=>{for(var j in y||(y={}))te.call(y,j)&&ne(w,j,y[j]);if(T)for(var j of T(y))q.call(y,j)&&ne(w,j,y[j]);return w},l=(w,y)=>J(w,N(y)),U=(w,y)=>{var j={};for(var Q in w)te.call(w,Q)&&y.indexOf(Q)<0&&(j[Q]=w[Q]);if(w!=null&&T)for(var Q of T(w))y.indexOf(Q)<0&&q.call(w,Q)&&(j[Q]=w[Q]);return j},M=(0,r.forwardRef)((w,y)=>{var j=w,{size:Q,spin:ze,style:me}=j,Se=U(j,["size","spin","style"]);const Me=B(B({width:Q||"var(--x-icon-size, 1em)",height:Q||"var(--x-icon-size, 1em)",animation:ze?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),me);return r.createElement("svg",l(B({ref:y,style:Me},Se),{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),r.createElement("path",{d:"M10.0001 2.6499C10.3779 2.65165 10.7513 2.73218 11.0958 2.88721C11.4403 3.04224 11.7483 3.26871 12.0001 3.55029L13.5997 3.47998C13.8685 3.4687 14.1349 3.53827 14.3634 3.68018C14.5919 3.82216 14.773 4.02988 14.882 4.27588C14.9909 4.52185 15.0231 4.79542 14.9747 5.06006C14.9263 5.32463 14.7994 5.5688 14.6105 5.76025L13.4601 6.91943C14.9609 7.81535 16.1273 9.179 16.7804 10.8003C17.3669 12.2535 17.4997 13.8866 17.1798 15.6997C17.0976 16.1623 16.8555 16.5816 16.4952 16.8833C16.135 17.185 15.6799 17.3503 15.2101 17.3501H4.79016C4.31883 17.3499 3.8625 17.1831 3.50207 16.8794C3.14171 16.5757 2.90057 16.1543 2.82043 15.6899C2.49835 14.0545 2.63635 12.3617 3.21984 10.8003C3.87293 9.179 5.03934 7.81535 6.54016 6.91943L5.40051 5.76025C5.21077 5.56816 5.08342 5.3228 5.03527 5.05713C4.98713 4.79148 5.01977 4.51744 5.13 4.271C5.2402 4.02468 5.4225 3.81743 5.65246 3.67627C5.8826 3.53511 6.1504 3.46657 6.42004 3.47998L8.00012 3.56006C8.25107 3.27665 8.55888 3.04886 8.90344 2.89209C9.24796 2.73535 9.62163 2.65291 10.0001 2.6499ZM11.3048 8.56592C11.1763 8.60061 11.0664 8.68492 11.0001 8.80029L10.0001 10.5103L9.00012 8.80029C8.93135 8.68878 8.82164 8.60806 8.69445 8.57666C8.56715 8.54531 8.43222 8.56545 8.31945 8.63232C8.20678 8.69917 8.12452 8.80746 8.09094 8.93408C8.05739 9.06082 8.07487 9.19615 8.13977 9.31006L8.95031 10.7202H8.15051C8.01525 10.7202 7.88482 10.774 7.78918 10.8696C7.69376 10.9652 7.63977 11.0949 7.63977 11.23C7.63979 11.3651 7.69372 11.4947 7.78918 11.5903C7.88482 11.686 8.01525 11.7397 8.15051 11.7397H9.50012V12.7397H8.15051C8.01657 12.7397 7.88779 12.7935 7.79309 12.8882C7.69855 12.9828 7.64472 13.1109 7.64465 13.2446C7.64465 13.3786 7.69838 13.5073 7.79309 13.6021C7.88779 13.6967 8.0166 13.7495 8.15051 13.7495H9.49035V15.2603C9.49045 15.3939 9.54335 15.5221 9.63781 15.6167C9.73252 15.7114 9.8613 15.7651 9.99524 15.7651C10.1291 15.7651 10.258 15.7114 10.3527 15.6167C10.4471 15.5221 10.5 15.3939 10.5001 15.2603V13.7397H11.84C11.9726 13.7397 12.0997 13.687 12.1935 13.5933C12.2872 13.4995 12.34 13.3724 12.34 13.2397C12.3399 13.1072 12.2872 12.98 12.1935 12.8862C12.0997 12.7926 11.9725 12.7397 11.84 12.7397H10.5001V11.73H11.8605C11.9943 11.7299 12.1223 11.6762 12.2169 11.5815C12.3115 11.4869 12.3653 11.3589 12.3654 11.2251C12.3654 11.0912 12.3116 10.9624 12.2169 10.8677C12.1223 10.7732 11.9942 10.7203 11.8605 10.7202H11.0597L11.8702 9.30029C11.9365 9.18499 11.9537 9.04783 11.9191 8.91943C11.8844 8.79097 11.8001 8.68105 11.6847 8.61475C11.5695 8.54869 11.433 8.53139 11.3048 8.56592Z",fill:"#B7B9BD"}))})},62532:(Qn,qe,s)=>{"use strict";s.d(qe,{$U:()=>q,Hw:()=>I,KF:()=>N,Q:()=>ne,f2:()=>r,iX:()=>te,ks:()=>B,o5:()=>J,uE:()=>T});const r=l=>l.editorPlugin.ruler.rulerConfig,I=l=>l.editorPlugin.ruler.rulerLineCanvas,J=l=>l.editorPlugin.ruler.isDraggingLine,N=l=>l.editorPlugin.ruler.selectedLine,T=l=>{var U;return((U=l.editorPlugin.ruler.selectedLine)==null?void 0:U.length)>0},te=l=>l.editorPlugin.ruler.draggingLine,q=l=>l.editorPlugin.ruler.rulerRect,ne=l=>l.editorPlugin.ruler.isDeleteLine,B=l=>{var U,C,M;const w=(U=l.editorPlugin.ruler.selectedLine)==null?void 0:U[0],y=l.editorPlugin.ruler.draggingLine;return!w||!y||(y==null?void 0:y.type)!==(w==null?void 0:w.type)||(y==null?void 0:y.index)!==(w==null?void 0:w.index)?!1:!(y!=null&&y.canvas)&&!(w!=null&&w.canvas)||(y==null||(C=y.canvas)==null?void 0:C.key)===(w==null||(M=w.canvas)==null?void 0:M.key)}},63195:(Qn,qe,s)=>{var r=s(69647),I=s(36315),J=s(19108),N=s(59696),T=r.isFinite,te=Math.min;function q(ne){var B=Math[ne];return function(l,U){if(l=J(l),U=U==null?0:te(I(U),292),U&&T(l)){var C=(N(l)+"e").split("e"),M=B(C[0]+"e"+(+C[1]+U));return C=(N(M)+"e").split("e"),+(C[0]+"e"+(+C[1]-U))}return B(l)}}Qn.exports=q},65251:(Qn,qe,s)=>{"use strict";Object.defineProperty(qe,"__esModule",{value:!0});var r=function(){function M(w,y){for(var j=0;j<y.length;j++){var Q=y[j];Q.enumerable=Q.enumerable||!1,Q.configurable=!0,"value"in Q&&(Q.writable=!0),Object.defineProperty(w,Q.key,Q)}}return function(w,y,j){return y&&M(w.prototype,y),j&&M(w,j),w}}(),I=s(38502),J=ne(I),N=s(25582),T=ne(N),te=s(36221),q=ne(te);function ne(M){return M&&M.__esModule?M:{default:M}}function B(M,w){if(!(M instanceof w))throw new TypeError("Cannot call a class as a function")}function l(M,w){if(!M)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return w&&(typeof w=="object"||typeof w=="function")?w:M}function U(M,w){if(typeof w!="function"&&w!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof w);M.prototype=Object.create(w&&w.prototype,{constructor:{value:M,enumerable:!1,writable:!0,configurable:!0}}),w&&(Object.setPrototypeOf?Object.setPrototypeOf(M,w):M.__proto__=w)}var C=function(M){U(w,M);function w(y){B(this,w);var j=l(this,(w.__proto__||Object.getPrototypeOf(w)).call(this,y));return j.handleChange=j.handleChange.bind(j),j}return r(w,[{key:"componentDidMount",value:function(){this._input.focus()}},{key:"handleChange",value:function(j){this.props.onChange(j.target.value)}},{key:"render",value:function(){var j=this,Q=this.props,ze=Q.value,me=Q.onKeyDown;return J.default.createElement("input",{ref:function(Me){j._input=Me},className:"data-editor",value:ze,onChange:this.handleChange,onKeyDown:me})}}]),w}(I.PureComponent);qe.default=C,C.propTypes={value:T.default.node.isRequired,row:T.default.number.isRequired,col:T.default.number.isRequired,cell:T.default.shape(q.default),onChange:T.default.func.isRequired,onCommit:T.default.func.isRequired,onRevert:T.default.func.isRequired,onKeyDown:T.default.func.isRequired}},65282:(Qn,qe,s)=>{"use strict";s.d(qe,{A:()=>M});var r=s(38502),I=Object.defineProperty,J=Object.defineProperties,N=Object.getOwnPropertyDescriptors,T=Object.getOwnPropertySymbols,te=Object.prototype.hasOwnProperty,q=Object.prototype.propertyIsEnumerable,ne=(w,y,j)=>y in w?I(w,y,{enumerable:!0,configurable:!0,writable:!0,value:j}):w[y]=j,B=(w,y)=>{for(var j in y||(y={}))te.call(y,j)&&ne(w,j,y[j]);if(T)for(var j of T(y))q.call(y,j)&&ne(w,j,y[j]);return w},l=(w,y)=>J(w,N(y)),U=(w,y)=>{var j={};for(var Q in w)te.call(w,Q)&&y.indexOf(Q)<0&&(j[Q]=w[Q]);if(w!=null&&T)for(var Q of T(w))y.indexOf(Q)<0&&q.call(w,Q)&&(j[Q]=w[Q]);return j},M=(0,r.forwardRef)((w,y)=>{var j=w,{size:Q,spin:ze,style:me}=j,Se=U(j,["size","spin","style"]);const Me=B(B({width:Q||"var(--x-icon-size, 1em)",height:Q||"var(--x-icon-size, 1em)",animation:ze?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),me);return r.createElement("svg",l(B({ref:y,style:Me},Se),{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.05024 7.05025C7.2455 6.85499 7.56209 6.85499 7.75735 7.05025L12 11.2929L16.2426 7.05025C16.4379 6.85499 16.7545 6.85499 16.9497 7.05025C17.145 7.24551 17.145 7.5621 16.9497 7.75736L12.7071 12L16.9497 16.2426C17.145 16.4379 17.145 16.7545 16.9497 16.9497C16.7545 17.145 16.4379 17.145 16.2426 16.9497L12 12.7071L7.75735 16.9497C7.56209 17.145 7.2455 17.145 7.05024 16.9497C6.85498 16.7545 6.85498 16.4379 7.05024 16.2426L11.2929 12L7.05024 7.75736C6.85498 7.5621 6.85498 7.24551 7.05024 7.05025Z",fill:"#19191A"}))})},65296:(Qn,qe,s)=>{"use strict";s.d(qe,{A:()=>M});var r=s(38502),I=Object.defineProperty,J=Object.defineProperties,N=Object.getOwnPropertyDescriptors,T=Object.getOwnPropertySymbols,te=Object.prototype.hasOwnProperty,q=Object.prototype.propertyIsEnumerable,ne=(w,y,j)=>y in w?I(w,y,{enumerable:!0,configurable:!0,writable:!0,value:j}):w[y]=j,B=(w,y)=>{for(var j in y||(y={}))te.call(y,j)&&ne(w,j,y[j]);if(T)for(var j of T(y))q.call(y,j)&&ne(w,j,y[j]);return w},l=(w,y)=>J(w,N(y)),U=(w,y)=>{var j={};for(var Q in w)te.call(w,Q)&&y.indexOf(Q)<0&&(j[Q]=w[Q]);if(w!=null&&T)for(var Q of T(w))y.indexOf(Q)<0&&q.call(w,Q)&&(j[Q]=w[Q]);return j},M=(0,r.forwardRef)((w,y)=>{var j=w,{size:Q,spin:ze,style:me}=j,Se=U(j,["size","spin","style"]);const Me=B(B({width:Q||"var(--x-icon-size, 1em)",height:Q||"var(--x-icon-size, 1em)",animation:ze?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),me);return r.createElement("svg",l(B({ref:y,style:Me},Se),{width:"51",height:"17",viewBox:"0 0 51 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),r.createElement("rect",{x:"0.25",y:"0.25",width:"50.5",height:"16.5",rx:"4.25",fill:"url(#paint0_linear_291_97)"}),r.createElement("rect",{x:"0.25",y:"0.25",width:"50.5",height:"16.5",rx:"4.25",fill:"url(#paint1_linear_291_97)",fillOpacity:"0.5"}),r.createElement("rect",{x:"0.25",y:"0.25",width:"50.5",height:"16.5",rx:"4.25",fill:"url(#paint2_linear_291_97)",fillOpacity:"0.8"}),r.createElement("rect",{x:"0.25",y:"0.25",width:"50.5",height:"16.5",rx:"4.25",stroke:"url(#paint3_linear_291_97)",strokeWidth:"0.5"}),r.createElement("path",{d:"M16.73 12.02C16.73 12.54 16.45 12.82 15.93 12.82H9.1C8.58 12.82 8.3 12.54 8.3 12.02V4.99C8.3 4.47 8.58 4.19 9.1 4.19H15.93C16.45 4.19 16.73 4.47 16.73 4.99V12.02ZM9.5 11.58C9.5 11.71 9.57 11.78 9.7 11.78H15.32C15.45 11.78 15.52 11.71 15.52 11.58V5.43C15.52 5.3 15.45 5.23 15.32 5.23H9.7C9.57 5.23 9.5 5.3 9.5 5.43V11.58ZM14.2 7.66V10.16C14.2 10.84 13.84 11.29 13.18 11.37C12.71 11.42 12.11 11.39 11.63 11.27L11.36 10.23C11.82 10.34 12.4 10.36 12.71 10.32C12.94 10.29 13.04 10.16 13.04 9.94V8.31C12.37 9.19 11.39 10 10.04 10.66L9.73 9.51C10.86 8.91 11.62 8.39 12.22 7.66H10.14L10.04 6.66H13.04V5.52H14.2V6.66H15.13V7.66H14.2ZM24.24 5.96C24.4 8.49 25.26 10.26 26.82 11.69L26.31 13.06C25.09 11.98 24.27 10.66 23.76 9.16C23.3 10.64 22.48 11.96 21.09 13.08L20.57 11.85C22.66 10 23.04 8.32 23.04 5.36V4.01H24.25V5.31C24.25 5.53 24.25 5.75 24.24 5.96ZM19.2 10.28V12.99H18.03V4.84C18.03 4.45 18.26 4.24 18.68 4.24H20.79C21.21 4.24 21.41 4.4 21.44 4.8C21.46 5.03 21.41 5.23 21.36 5.41L20.78 7.53C21.23 8.15 21.41 8.99 21.41 9.76C21.41 10.7 21.04 11.08 20.17 11.11C19.89 11.12 19.63 11.1 19.43 11.07L19.2 10.28ZM19.2 10.12C19.38 10.14 19.63 10.16 19.87 10.15C20.12 10.14 20.27 10.07 20.27 9.75C20.27 9.13 20.09 8.42 19.83 7.95C19.73 7.77 19.71 7.61 19.75 7.42L20.25 5.2H19.3C19.23 5.2 19.2 5.23 19.2 5.3V10.12Z",fill:"#C6500F"}),r.createElement("path",{d:"M30.7256 12.5L27.6792 4.5928H29.5608L31.8792 10.988H31.1064L33.4584 4.5928H35.3176L32.2376 12.5H30.7256ZM35.746 12.5V4.5928H37.5044V12.5H35.746ZM39.8712 9.6216V8.2552H41.5736C41.7902 8.2552 41.988 8.2104 42.1672 8.1208C42.3464 8.0312 42.4883 7.90053 42.5928 7.7288C42.6974 7.55707 42.7496 7.348 42.7496 7.1016C42.7496 6.86267 42.6974 6.65733 42.5928 6.4856C42.4883 6.31387 42.3464 6.1832 42.1672 6.0936C41.988 6.004 41.7902 5.9592 41.5736 5.9592H39.8712V4.5928H41.8312C42.3315 4.5928 42.7832 4.6936 43.1864 4.8952C43.5896 5.0968 43.907 5.388 44.1384 5.7688C44.3774 6.14213 44.4968 6.5864 44.4968 7.1016C44.4968 7.6168 44.3774 8.0648 44.1384 8.4456C43.907 8.81893 43.5896 9.11013 43.1864 9.3192C42.7832 9.5208 42.3315 9.6216 41.8312 9.6216H39.8712ZM38.5272 12.5V4.5928H40.2856V12.5H38.5272Z",fill:"#C6500F"}),r.createElement("defs",null,r.createElement("linearGradient",{id:"paint0_linear_291_97",x1:"23.2273",y1:"1.59091",x2:"29.9893",y2:"18.2067",gradientUnits:"userSpaceOnUse"},r.createElement("stop",{stopColor:"#FFCC7C"}),r.createElement("stop",{offset:"1",stopColor:"#FFF1CC"})),r.createElement("linearGradient",{id:"paint1_linear_291_97",x1:"-2.55304",y1:"20.9444",x2:"9.30572",y2:"2.20874",gradientUnits:"userSpaceOnUse"},r.createElement("stop",{stopColor:"#FF7658"}),r.createElement("stop",{offset:"1",stopColor:"#D55C5C",stopOpacity:"0"})),r.createElement("linearGradient",{id:"paint2_linear_291_97",x1:"4.54412",y1:"0.5",x2:"9.2775",y2:"9.57088",gradientUnits:"userSpaceOnUse"},r.createElement("stop",{stopColor:"white"}),r.createElement("stop",{offset:"1",stopColor:"white",stopOpacity:"0"})),r.createElement("linearGradient",{id:"paint3_linear_291_97",x1:"0.867647",y1:"8",x2:"50.8676",y2:"8",gradientUnits:"userSpaceOnUse"},r.createElement("stop",{stopColor:"#FFD897"}),r.createElement("stop",{offset:"1",stopColor:"#FFEDC6"}))))})},65575:(Qn,qe,s)=>{"use strict";s.d(qe,{fs:()=>Kt,Qq:()=>wt,ZE:()=>fe,fc:()=>Vn,YR:()=>sn,F0:()=>Oe,ns:()=>vn,QR:()=>It,av:()=>rt,lD:()=>Pt,ep:()=>dt,OD:()=>bt,qv:()=>un,u2:()=>Wt,YJ:()=>Ze,Ld:()=>Gn,Kf:()=>Jn,xx:()=>Yt,c_:()=>o,$m:()=>An,sg:()=>Nt,do:()=>jt,yX:()=>an,Om:()=>Un,cz:()=>nn,Am:()=>_t,af:()=>gt,Xr:()=>W});var r=s(38502),I=s(53732),J=s.n(I),N=s(21066),T=s(83199),te=s(17307),q=s(56202),ne=s(67787);const B=ne.Ay.div.withConfig({displayName:"styles__StyledIconTips",componentId:"sc-g9m8f2-0"})(["display:flex;align-items:center;justify-content:center;flex-direction:row;.shortfont{color:#c8cdd0;margin-left:10px;white-space:nowrap;kbd{display:inline-block;text-align:center;min-width:12px;}}"]);var l=s(72214);const U=Dt=>{const{iconClassName:$t,name:kn,onClick:Kn,content:dn,direction:ft="down",hotKeyText:Lt,iconProps:bn}=Dt,Yn=(0,r.useRef)(null),on=Nn=>{Kn&&Kn(Nn)},lo={down:"bottom",up:"top",left:"left",right:"right"}[ft],qn=Lt&&Lt.length>0&&((0,q.cX)()?Lt.filter(Nn=>Nn!=="+"):Lt),Wn=()=>(0,l.jsx)(l.Fragment,{children:(0,l.jsxs)(B,{children:[dn,qn&&qn.length>0&&(0,l.jsx)("div",{className:"shortfont",children:qn.map((Nn,xn)=>(0,l.jsx)("kbd",{children:Nn},xn))})]})});return(0,l.jsx)(T.A,{content:Wn(),direction:lo,children:(0,l.jsx)("a",{className:$t,ref:Yn,onClick:on,children:(0,l.jsx)(te.C,{...bn,name:kn})})})},C=Dt=>(0,l.jsx)(T.A,{component:(0,l.jsx)(U,{...Dt})});var M=s(93257),w=s(88856),y=s(65541),j=s(86594),Q=s(79150),ze=s(78661),me=s(99917),Se=s(87945),Me=s(15515),De=s(53008),tt=s(43641),at=s(88944),ht=s(5209),Je=s(93971),$=s(88670),mt=s(8228),yt=s(61790),Le=s(81122),He=s(61893),ye=s(43838),je=s(21677),ot=s(70812),we=s(13642),$e=s(6357);const ge=Dt=>Dt.stopPropagation(),Ze=(0,r.memo)(Dt=>{const{dispatch:$t,disabled:kn,from:Kn}=Dt,dn=ft=>{ft.preventDefault(),$t({type:"entry:group:items"}),(0,at.O3)({operation_from:Kn,operation_type:at.VW.Combination})};return(0,l.jsx)(N.Dr,{text:I18N.ContextMenu.group,onClick:dn,hotKeyText:ze.V.group,disabled:kn})}),W=(0,r.memo)(Dt=>{const{dispatch:$t,disabled:kn,from:Kn}=Dt,dn=ft=>{ft.preventDefault(),$t({type:"entry:ungroup:items"}),(0,at.O3)({operation_from:Kn,operation_type:at.VW.BreakUp})};return(0,l.jsx)(N.Dr,{text:I18N.ContextMenu.ungroup,onClick:dn,hotKeyText:ze.V.ungroup,disabled:kn})}),an=(0,r.memo)(Dt=>{const{dispatch:$t,disabled:kn}=Dt,Kn=dn=>{dn.preventDefault(),$t({type:"entry:design:zoom:selection"})};return(0,l.jsx)(N.Dr,{text:I18N.ContextMenu.zoom_to_the_element,onClick:Kn,disabled:kn})}),_t=(0,r.memo)(Dt=>{const{dispatch:$t,disabled:kn,from:Kn}=Dt,dn=Lt=>{Lt.preventDefault(),$t({type:"entry:items:send:front"}),(0,at.O3)({operation_from:Kn,operation_type:at.VW.Top})},ft=Lt=>{Lt.preventDefault(),!kn&&($t({type:"entry:items:forward"}),(0,at.O3)({operation_from:Kn,operation_type:at.VW.MoveUp}))};return(0,l.jsxs)($e.n_,{children:[(0,l.jsx)(N.Dr,{text:I18N.ContextMenu.send_front,onClick:dn,disabled:kn,hotKeyText:ze.V.sendFront}),(0,l.jsx)("div",{className:J()("icon-box","forward","menu-right-box",{disabled:kn}),onClick:ft,onMouseDown:ge,children:(0,l.jsx)(C,{name:"common/z_forward",iconClassName:"menu-icon-box menu-z_forward",tagName:"SVGIcon",content:I18N.ContextMenu.z_forward,hotKeyText:ze.V.zForward,direction:"right"})})]})}),nn=(0,r.memo)(Dt=>{const{dispatch:$t,disabled:kn,from:Kn}=Dt,dn=Lt=>{Lt.preventDefault(),$t({type:"entry:items:send:back"}),(0,at.O3)({operation_from:Kn,operation_type:at.VW.Bottom})},ft=Lt=>{Lt.preventDefault(),!kn&&($t({type:"entry:items:backward"}),(0,at.O3)({operation_from:Kn,operation_type:at.VW.MoveDown}))};return(0,l.jsxs)($e.n_,{children:[(0,l.jsx)(N.Dr,{text:I18N.ContextMenu.send_back,onClick:dn,disabled:kn,hotKeyText:ze.V.sendBack}),(0,l.jsx)("div",{className:J()("icon-box","backward","menu-right-box",{disabled:kn}),onClick:ft,onMouseDown:ge,children:(0,l.jsx)(C,{name:"common/z_backward",iconClassName:"menu-icon-box menu-z_backward",tagName:"SVGIcon",content:I18N.ContextMenu.z_backward,hotKeyText:ze.V.zBackward,direction:"right"})})]})}),Oe=(0,r.memo)(Dt=>{const{dispatch:$t,disabled:kn,from:Kn}=Dt,dn=()=>{$t({type:"entry:items:canvasList:backward",payload:{attr:"order"}}),(0,at.O3)({operation_from:Kn,operation_type:at.VW.MoveUp})};return(0,l.jsx)(N.Dr,{text:I18N.ContextMenu.move_up,disabled:kn,onClick:dn})}),sn=(0,r.memo)(Dt=>{const{dispatch:$t,disabled:kn,from:Kn}=Dt,dn=()=>{$t({type:"entry:items:canvasList:forward",payload:{attr:"order"}}),(0,at.O3)({operation_from:Kn,operation_type:at.VW.MoveDown})};return(0,l.jsx)(N.Dr,{text:I18N.ContextMenu.move_down,disabled:kn,onClick:dn})}),It=(0,r.memo)(Dt=>{const{dispatch:$t,from:kn}=Dt,Kn=dn=>{if(dn.preventDefault(),MB.f.editingRichText){we.A.emit("draft:text:copy");return}$t({type:"entry:copy:items"}),(0,at.O3)({operation_from:kn,operation_type:at.VW.Copy}),(0,q.H8)()&&(0,j.P8)()};return(0,l.jsx)(N.Dr,{text:""+I18N.ContextMenu.copy,onClick:Kn,hotKeyText:ze.V.copy})}),Pt=(0,r.memo)(Dt=>{const{dispatch:$t,disabled:kn,from:Kn}=Dt,dn=ft=>{if(!kn){if(ft.preventDefault(),MB.f.editingRichText){we.A.emit("draft:text:cut");return}$t({type:"entry:cut:items"}),(0,at.O3)({operation_from:Kn,operation_type:at.VW.Cut}),(0,q.H8)()&&(0,j.P8)()}};return(0,l.jsx)(N.Dr,{text:I18N.ContextMenu.cut,onClick:dn,hotKeyText:ze.V.cut,disabled:kn})}),dt=(0,r.memo)(Dt=>{const{dispatch:$t,disabled:kn,from:Kn}=Dt,dn=ft=>{kn||(ft.preventDefault(),$t({type:"entry:delete:selected-items"}),(0,at.O3)({operation_from:Kn,operation_type:at.VW.Delete}))};return(0,l.jsx)(N.Dr,{text:I18N.ContextMenu.delete,onClick:dn,disabled:kn})}),Vn=(0,r.memo)(Dt=>{const{from:$t,dispatch:kn}=Dt,Kn=$t===Se.G.TopBar,dn=Lt=>{if(Lt.preventDefault(),ENV.IS_MO){ft(Lt);return}kn({type:"entry:autoFillPanel:toggle:show",payload:{canClose:!1,openFrom:$t||Se.G.RightClick}}),(0,at.O3)({operation_from:$t,operation_type:at.VW.AutoFill}),(0,je.Z)(mt.SR.AutoFill)},ft=Lt=>{Lt.preventDefault();const bn=(0,mt.$I)().find(Yn=>Yn.type===mt.SR.AutoFill);bn.source="\u53F3\u952E\u83DC\u5355\u667A\u80FD\u586B\u5145AI",kn({type:$.X.AIOpenModal,payload:bn})};return(0,l.jsxs)($e.n_,{children:[(0,l.jsx)(N.Dr,{text:I18N.ChatGPT.magic_fill,onClick:dn}),!ENV.IS_ON_PREMISES&&(0,l.jsx)(Q.A,{size:16,name:"chatGPT/left_panel_header"+(ENV.IS_MO?"":"_new"),isColorPure:!0,className:J()("en-auto-fill-box",Kn&&"from-topbar")})]})}),o=(0,r.memo)(Dt=>{const{isLocked:$t,dispatch:kn,disabled:Kn,from:dn}=Dt,[ft]=$t?[I18N.ContextMenu.unlock]:[I18N.ContextMenu.lock_widget],Lt=bn=>{bn.preventDefault(),kn({type:"entry:toggle:lock"}),(0,at.O3)({operation_from:dn,operation_type:$t?at.VW.UnLocked:at.VW.Locked})};return(0,l.jsx)(N.Dr,{text:ft,onClick:Lt,hotKeyText:ze.V.lock,disabled:Kn})}),Gn=(0,r.memo)(Dt=>{const{isVisible:$t,from:kn,disabled:Kn,dispatch:dn}=Dt,ft=$t?I18N.ContextMenu.hide:I18N.ContextMenu.show,Lt=bn=>{bn.preventDefault(),dn({type:"entry:toggle:visible"}),(0,at.O3)({operation_from:kn,operation_type:$t?at.VW.Hide:at.VW.Show})};return(0,l.jsx)(N.Dr,{text:ft,onClick:Lt,hotKeyText:ze.V.hide,disabled:Kn})}),xt=(0,r.memo)(Dt=>{const{from:$t,isMeDesign:kn,isEditingOrgCombo:Kn,isEditingUserCombo:dn,canEditLibrary:ft,dispatch:Lt}=Dt,bn=on=>{MB.global.experienceLoginModalHelper("isSave")||(on.preventDefault(),Lt({type:"entry:create:combo:to:user:org:group",payload:{targetType:"user",callback:()=>{(0,at.O3)({operation_from:$t,operation_type:at.VW.AddToMyCombo})}}}))},Yn=on=>{MB.global.experienceLoginModalHelper("isSave")||(on.preventDefault(),Lt({type:"entry:create:combo:to:user:org:group",payload:{targetType:"org",callback:()=>{(0,at.O3)({operation_from:$t,operation_type:at.VW.AddToOrgCombo})}}}))};return(0,l.jsxs)(l.Fragment,{children:[!dn&&(0,l.jsx)(N.Dr,{text:I18N.ContextMenu.my_widgets,onClick:bn}),!kn&&!Kn&&(0,l.jsx)(T.A,{maxWidth:"236px",content:ft?"":I18N.pComment.no_permission_contact_administrator,direction:"down",isNeedWrap:!0,style:{padding:"12px 16px"},children:(0,l.jsx)(N.Dr,{disabled:!ft,text:I18N.ContextMenu.org_widgets,onClick:Yn})})]})}),Ot=(0,r.memo)(Dt=>{const{isMeDesign:$t,canEditLibrary:kn,dispatch:Kn}=Dt,dn=Lt=>{MB.global.experienceLoginModalHelper("isSave")||(Lt.preventDefault(),Kn({type:"entry:prepare:asset:to:user:org:group",payload:{targetType:"user"}}))},ft=Lt=>{MB.global.experienceLoginModalHelper("isSave")||(Lt.preventDefault(),Kn({type:"entry:prepare:asset:to:user:org:group",payload:{targetType:"org"}}))};return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(N.Dr,{text:I18N.ContextMenu.my_assets,onClick:dn}),!$t&&(0,l.jsx)(T.A,{maxWidth:"236px",content:kn?"":I18N.pComment.no_permission_contact_administrator,direction:"down",isNeedWrap:!0,style:{padding:"12px 16px"},children:(0,l.jsx)(N.Dr,{disabled:!kn,text:I18N.ContextMenu.org_assets,onClick:ft})})]})}),wt=(0,r.memo)(Dt=>{const{canCreateCombo:$t,canCreateAsset:kn,isMeDesign:Kn,dispatch:dn,canEditLibrary:ft,canAddToMyOrOrgAsset:Lt,isEditingOrgCombo:bn,isEditingUserCombo:Yn,from:on,disabled:yn}=Dt;return(0,l.jsxs)(N.Dr,{text:I18N.ContextMenu.add_to,disabled:yn,isAiry:!0,children:[$t&&(0,l.jsx)(xt,{canEditLibrary:ft,isMeDesign:Kn,isEditingOrgCombo:bn,isEditingUserCombo:Yn,dispatch:dn,from:on}),kn&&Lt&&(0,l.jsx)(Ot,{canEditLibrary:ft,isMeDesign:Kn,dispatch:dn})]})}),Kt=(0,r.memo)(Dt=>{const{dispatch:$t,selectedItems:kn,isEditingBasket:Kn,from:dn,disabled:ft}=Dt,Lt=async bn=>{if(bn.preventDefault(),MB.global.experienceLoginModalHelper("isSave")||ft)return;const Yn=kn[0].hotAttr.name||(0,yt.KD)(kn[0].key);$t({type:"modal:update:state",payload:{masterCreateModal:{isOpen:!0,name:Yn,onConfirm:async on=>{let{name:yn,onSuccess:lo}=on;await $t({type:"entry:create:basket",payload:{basketType:"bMuban",attr:{name:yn},onSuccess:lo,isCreateFolder:!0}}),(0,at.O3)({operation_from:dn,operation_type:at.VW.SwitchMuban})}}}}),(0,Je.SJ)("\u53F3\u952E\u8F6C\u5316\u6BCD\u7248",Kn,kn.map(on=>on.key))};return(0,l.jsx)(N.Dr,{text:I18N.ContextMenu.create_master,onClick:Lt,disabled:ft})}),fe=(0,r.memo)(Dt=>{const{dispatch:$t,selectedItems:kn,isEditingBasket:Kn,from:dn,disabled:ft}=Dt,Lt=async()=>{await $t({type:"entry:create:basket",payload:{basketType:"bDanli"}}),$t({type:"entry:screenContainer:enter:editing:widget"}),(0,at.O3)({operation_from:dn,operation_type:at.VW.SwitchBasket}),(0,Je.XG)("\u53F3\u952E\u8F6C\u6362\u52A8\u6001\u7EC4\u4EF6",Kn,kn.map(Yn=>Yn.key))},bn=async Yn=>{ft||(Yn.preventDefault(),kn.length===1&&kn[0].hotAttr.type==="wBasket"&&kn[0].hotAttr.basket==="bDanli"?$t({type:"modal:update:state",payload:{nestedDynamicModal:{isOpen:!0,from:"contextMenu",onConfirm:()=>Lt()}}}):Lt())};return(0,l.jsx)(N.Dr,{text:I18N.ContextMenu.create_panel,onClick:bn,disabled:ft})}),bt=(0,r.memo)(Dt=>{const{dispatch:$t}=Dt,kn=()=>{MB.global.experienceLoginModalHelper("isSave")||($t({type:"entry:basket:transform",payload:{basketType:"bDanli",type:"detachMuban"}}),(0,ht.kH)("master_operation_V8",{source:"\u53F3\u952E",operation_type:I18N.ContextMenu.detach_panel}))};return(0,l.jsx)(N.Dr,{text:I18N.ContextMenu.detach_panel,onClick:kn})}),un=(0,r.memo)(Dt=>{const{disabled:$t,dispatch:kn}=Dt,Kn=()=>{MB.global.experienceLoginModalHelper("isSave")||kn({type:"entry:detach:basket"})};return(0,l.jsx)(N.Dr,{text:I18N.Basket.separateState,onClick:Kn,disabled:$t})}),gt=(0,r.memo)(Dt=>{const{widget:$t,dispatch:kn}=Dt,Kn=async()=>{await kn({type:"entry:basket:muban:commitOwa"}),(0,ht.kH)("master_operation_V8",{source:"\u53F3\u952E",operation_type:I18N.ContextMenu.sync_to_muban})};return(0,l.jsx)(N.Dr,{text:I18N.ContextMenu.sync_to_muban,onClick:Kn,disabled:!sdkStore.hasOwa($t.cid)})}),Wt=(0,r.memo)(Dt=>{const{widget:$t,dispatch:kn}=Dt,Kn=()=>{const dn=sdkStore.getHotItem($t.refRBPageKey);kn({type:"entry:edit:basket:source:muban",payload:{item:{...dn,...dn.hotAttr}}}),(0,ht.kH)("master_operation_V8",{source:"\u53F3\u952E",operation_type:I18N.ContextMenu.edit_muban})};return(0,l.jsx)(N.Dr,{text:I18N.ContextMenu.edit_muban,onClick:Kn})}),Un=(0,r.memo)(Dt=>{const{selectItems:$t,dispatch:kn}=Dt,Kn=$t.every(ft=>!sdkStore.hasOwa(ft.cid)),dn=()=>{kn({type:"entry:basket:muban:resetOwa"}),(0,ht.kH)("master_operation_V8",{source:"\u53F3\u952E",operation_type:I18N.ContextMenu.reset_to_muban})};return(0,l.jsx)(N.Dr,{text:I18N.ContextMenu.reset_to_muban,onClick:dn,disabled:Kn})}),Jn=(0,r.memo)(Dt=>{const{dispatch:$t}=Dt,kn=Kn=>{Kn.preventDefault(),$t({type:"entry:image-view:edit",payload:{operationType:me.bl.cutting}}),$t({type:"entry:image-view:cutting"})};return(0,l.jsx)(N.Dr,{text:I18N.SettingPanel.crop,onClick:kn})}),Yt=(0,r.memo)(Dt=>{const{dispatch:$t}=Dt,kn=Kn=>{Kn.preventDefault(),$t({type:"entry:image-view:edit",payload:{operationType:me.bl.slicing}}),$t({type:"update:screenContainer:state",payload:{defaultImageSlicingOffset:{x:Kn.clientX,y:Kn.clientY}}})};return(0,l.jsx)(N.Dr,{text:I18N.SettingPanel.division,onClick:kn})}),rt=(0,r.memo)(Dt=>{const{canvas:$t,currentProject:kn,dispatch:Kn,isFromAbar:dn}=Dt,ft=async(Lt,bn)=>{if(Lt.preventDefault(),MB.global.experienceLoginModalHelper("isSave"))return;if(!1)Kn({type:"modal:update:state",payload:{rightsAndInterestsModal:{isOpen:!0,type:He.hC.MaxSharingCount,isFromScreenList:!0,project:kn}}});else{var on;const yn=$t.hotAttr.name;let lo;const qn=$t==null?void 0:$t.sup;bn==="curPage"?lo=qn?[qn]:[]:bn==="allPage"&&(lo=[]),lo=(0,De.Uh)(lo);const Wn=(0,Me.Yt)(kn.cid+"_default_sharing_view_mode","read_only",Me.qW.String),Nn=(0,De.CV)({accessToken:kn.access_token,view_mode:Wn,pageKey:qn,targetKey:$t.key,selection:lo}),xn=(0,De.R_)(Nn,MB.getRootProject().name,yn,"");(0,tt.$)(xn),dn||(0,Le.M2)()?MB.notice({text:"\u5206\u4EAB\u94FE\u63A5\u5DF2\u590D\u5236",duration:5e3}):MB.notice({text:I18N.ScreenPanel.copy_share_url_success,CustomChildComponent:w.pU,duration:5e3}),ot.U4.protoEditorShareTrack((on=MB)==null||(on=on.user)==null?void 0:on.id,"\u9875\u9762\u53F3\u952E\u5206\u4EAB")}};return(0,l.jsx)(An,{text:I18N.ContextMenu.copy_share_link,tips:I18N.ContextMenu.share_link_browsing_from_current_canvas,onClick:Lt=>ft(Lt,"allpage")})}),An=(0,r.memo)(Dt=>{const{text:$t,tips:kn,distance:Kn=10,maxWidth:dn=ENV.IS_MO?"none":"250px",onClick:ft}=Dt;return(0,l.jsxs)($e.g$,{children:[(0,l.jsx)(N.Dr,{text:$t,onClick:ft}),(0,l.jsx)(M.A,{content:kn,direction:"right",tipClassName:"tips-container",distance:Kn,maxWidth:dn,children:(0,l.jsx)(Q.A,{className:"tipsIcon",name:"common/tip",size:16})}),(0,l.jsx)($e.hb,{})]})}),Nt=(0,r.memo)(Dt=>{const{dispatch:$t,disabled:kn,from:Kn}=Dt,dn=async ft=>{if(ft.preventDefault(),MB.f.editing){we.A.emit("draft:text:paste");return}$t({type:"entry:toggle:paste:direct:by:contextmenu"}),(0,at.O3)({operation_from:Kn,operation_type:at.VW.Paste})};return(0,l.jsx)(N.Dr,{text:I18N.ToolBar.paste,onClick:dn,hotKeyText:ze.V.past,disabled:kn})}),jt=(0,r.memo)(Dt=>{const{from:$t,disabled:kn,position:{top:Kn,left:dn},dispatch:ft}=Dt,Lt=async bn=>{const Yn={clientX:dn,clientY:Kn};if(bn.preventDefault(),MB.f.editing)return;const on=await(0,j.LD)({isShowPrompt:!0});await(0,ye.$H)({hasNotice:!1})?on!=null&&on.data?ft({type:"entry:paste:items:at",payload:{clientPos:Yn,hasPrompt:!0}}):ft({type:"entry:prepare:paste:by:contextmenu",payload:{cursorPos:Yn}}):ft({type:"entry:prepare:paste:by:contextmenu",payload:{cursorPos:Yn}}),(0,at.O3)({operation_from:$t,operation_type:at.VW.Paste})};return(0,l.jsx)(N.Dr,{text:""+I18N.ToolBar.paste+I18N.ContextMenu.paste_to_point,onClick:Lt,hotKeyText:ze.V.pastToPoint,disabled:kn})}),vn=(0,r.memo)(Dt=>{const{dispatch:$t}=Dt,kn=Kn=>{Kn.preventDefault(),!MB.global.experienceLoginModalHelper("isSave")&&$t({type:"modal:update:state",payload:{canvasConvertedToPixsoModal:{isOpen:!0,from:"contextMenu"}}})};return ENV.IS_ON_PREMISES?null:(0,l.jsx)(N.Dr,{className:"in-beta-icon",text:I18N.ContextMenu.converted_pixso,icon:(0,l.jsx)(y.A,{className:"beta is-multi-color-icon"}),onClick:kn})})},65710:(Qn,qe,s)=>{"use strict";s.d(qe,{$S:()=>I,Jh:()=>B,Wq:()=>q,lJ:()=>J,z4:()=>te});var r=s(74302);const I=[{dataType:"png",text:"PNG",iconName:"png",tempDisabled:!1},{dataType:"pdf",text:"PDF",iconName:"pdf",tempDisabled:!1},{dataType:"htmlzip",text:"html5_zip",iconName:"htmlzip",tempDisabled:!1},{dataType:"apk",text:"apk_file",iconName:"apk",tempDisabled:!1},{dataType:"source_file",text:"source_file",iconName:"source_file",tempDisabled:!1}],J=[{label:"current_screen",value:"currentPage"},{label:"all_screen",value:"allPage"}],N=l=>[{label:"1x",value:1},{label:"2x",value:2,isDisabled:l},{label:"3x",value:3,isDisabled:l}],T=l=>[{label:"1x",value:1},{label:"2x",value:2,isDisabled:l}],te=function(l,U){switch(U===void 0&&(U=!1),l){case r.xk.PNG:return N(U);default:return T(U)}},q={png:{postfix:".png",MIME:"image/png"},pdf:{postfix:".pdf",MIME:"application/pdf"},pngs:{postfix:".zip",MIME:"application/zip"},htmlzip:{postfix:".zip",MIME:"application/zip"},apk:{postfix:".apk",MIME:"application/vnd.android.package-archive"},source_file:{postfix:".mdrp",MIME:"application/zip"}},ne='<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16"><g fill="#FFF"><path d="M8 0C3.6 0 0 3.6 0 8 0 12.4 3.6 16 8 16 12.4 16 16 12.4 16 8 16 3.6 12.4 0 8 0ZM8.6 12.4C8.4 12.6 8.2 12.7 7.9 12.7 7.7 12.7 7.5 12.6 7.3 12.5 7.1 12.3 7 12.1 7 11.8 7 11.5 7.1 11.3 7.3 11.1 7.4 10.9 7.7 10.8 7.9 10.8 8.2 10.8 8.4 10.9 8.6 11.1 8.8 11.3 8.8 11.5 8.8 11.8 8.8 12.1 8.8 12.3 8.6 12.4ZM10.9 6.7C10.7 7 10.6 7.2 10.4 7.4 10.2 7.6 9.8 7.9 9.3 8.4 9.2 8.5 9.1 8.6 9 8.7 8.9 8.8 8.8 8.9 8.8 9 8.8 9 8.7 9.1 8.7 9.2 8.7 9.3 8.6 9.4 8.6 9.6 8.5 10.1 8.3 10.3 7.9 10.3 7.6 10.3 7.5 10.2 7.3 10.1 7.2 9.9 7.1 9.7 7.1 9.4 7.1 9.1 7.1 8.8 7.3 8.5 7.4 8.3 7.5 8.1 7.7 7.9 7.9 7.7 8.1 7.4 8.4 7.2 8.7 6.9 8.9 6.8 9 6.7 9.1 6.5 9.2 6.4 9.3 6.3 9.4 6.1 9.4 6 9.4 5.8 9.4 5.5 9.3 5.2 9 5 8.8 4.7 8.5 4.6 8.1 4.6 7.6 4.6 7.3 4.7 7.1 5 6.9 5.2 6.7 5.5 6.5 6 6.4 6.4 6.1 6.7 5.7 6.7 5.5 6.7 5.3 6.6 5.1 6.4 5 6.3 4.9 6.1 4.9 5.9 4.9 5.5 5 5.1 5.3 4.7 5.5 4.3 5.9 4 6.4 3.7 6.9 3.4 7.4 3.3 8.1 3.3 8.7 3.3 9.2 3.4 9.7 3.6 10.1 3.9 10.5 4.2 10.7 4.5 11 4.9 11.1 5.3 11.1 5.8 11.1 6.1 11 6.4 10.9 6.7Z"/></g></svg>',B="https://mockitt.wondershare.com/pricing.html"},65712:(Qn,qe,s)=>{"use strict";s.d(qe,{A:()=>He});var r=s(38502),I=s(53732),J=s.n(I),N=s(94815),T=s(49358);const te=ye=>ye?typeof ye=="function"?ye():ye:null;var q=s(54709),ne=s(67916),B=s(46757),l=s(20366),U=s(28706),C=s(55095),M=s(60587),w=s(42223),y=s(65737),j=s(47096),Q=s(58196),ze=s(48150);const me=ye=>{const{componentCls:je,popoverColor:ot,titleMinWidth:we,fontWeightStrong:$e,innerPadding:ge,boxShadowSecondary:Ze,colorTextHeading:W,borderRadiusLG:an,zIndexPopup:_t,titleMarginBottom:nn,colorBgElevated:Oe,popoverBg:sn,titleBorderBottom:It,innerContentPadding:Pt,titlePadding:dt}=ye;return[{[je]:Object.assign(Object.assign({},(0,C.dF)(ye)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:_t,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"--antd-arrow-background-color":Oe,width:"max-content",maxWidth:"100vw","&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[je+"-content"]:{position:"relative"},[je+"-inner"]:{backgroundColor:sn,backgroundClip:"padding-box",borderRadius:an,boxShadow:Ze,padding:ge},[je+"-title"]:{minWidth:we,marginBottom:nn,color:W,fontWeight:$e,borderBottom:It,padding:dt},[je+"-inner-content"]:{color:ot,padding:Pt}})},(0,w.Ay)(ye,"var(--antd-arrow-background-color)"),{[je+"-pure"]:{position:"relative",maxWidth:"none",margin:ye.sizePopupArrow,display:"inline-block",[je+"-content"]:{display:"inline-block"}}}]},Se=ye=>{const{componentCls:je}=ye;return{[je]:j.s.map(ot=>{const we=ye[ot+"6"];return{["&"+je+"-"+ot]:{"--antd-arrow-background-color":we,[je+"-inner"]:{backgroundColor:we},[je+"-arrow"]:{background:"transparent"}}}})}},Me=ye=>{const{lineWidth:je,controlHeight:ot,fontHeight:we,padding:$e,wireframe:ge,zIndexPopupBase:Ze,borderRadiusLG:W,marginXS:an,lineType:_t,colorSplit:nn,paddingSM:Oe}=ye,sn=ot-we,It=sn/2,Pt=sn/2-je,dt=$e;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:Ze+30},(0,y.n)(ye)),(0,w.Ke)({contentRadius:W,limitVerticalRadius:!0})),{innerPadding:ge?0:12,titleMarginBottom:ge?0:an,titlePadding:ge?It+"px "+dt+"px "+Pt+"px":0,titleBorderBottom:ge?je+"px "+_t+" "+nn:"none",innerContentPadding:ge?Oe+"px "+dt+"px":0})},De=(0,Q.OF)("Popover",ye=>{const{colorBgElevated:je,colorText:ot}=ye,we=(0,ze.oX)(ye,{popoverBg:je,popoverColor:ot});return[me(we),Se(we),(0,M.aB)(we,"zoom-big")]},Me,{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]});var tt=function(ye,je){var ot={};for(var we in ye)Object.prototype.hasOwnProperty.call(ye,we)&&je.indexOf(we)<0&&(ot[we]=ye[we]);if(ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $e=0,we=Object.getOwnPropertySymbols(ye);$e<we.length;$e++)je.indexOf(we[$e])<0&&Object.prototype.propertyIsEnumerable.call(ye,we[$e])&&(ot[we[$e]]=ye[we[$e]]);return ot};const at=ye=>{let{title:je,content:ot,prefixCls:we}=ye;return!je&&!ot?null:r.createElement(r.Fragment,null,je&&r.createElement("div",{className:we+"-title"},je),ot&&r.createElement("div",{className:we+"-inner-content"},ot))},ht=ye=>{const{hashId:je,prefixCls:ot,className:we,style:$e,placement:ge="top",title:Ze,content:W,children:an}=ye,_t=te(Ze),nn=te(W),Oe=J()(je,ot,ot+"-pure",ot+"-placement-"+ge,we);return r.createElement("div",{className:Oe,style:$e},r.createElement("div",{className:ot+"-arrow"}),r.createElement(U.z,Object.assign({},ye,{className:je,prefixCls:ot}),an||r.createElement(at,{prefixCls:ot,title:_t,content:nn})))},$=ye=>{const{prefixCls:je,className:ot}=ye,we=tt(ye,["prefixCls","className"]),{getPrefixCls:$e}=r.useContext(B.QO),ge=$e("popover",je),[Ze,W,an]=De(ge);return Ze(r.createElement(ht,Object.assign({},we,{prefixCls:ge,hashId:W,className:J()(ot,an)})))};var mt=function(ye,je){var ot={};for(var we in ye)Object.prototype.hasOwnProperty.call(ye,we)&&je.indexOf(we)<0&&(ot[we]=ye[we]);if(ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $e=0,we=Object.getOwnPropertySymbols(ye);$e<we.length;$e++)je.indexOf(we[$e])<0&&Object.prototype.propertyIsEnumerable.call(ye,we[$e])&&(ot[we[$e]]=ye[we[$e]]);return ot};const Le=r.forwardRef((ye,je)=>{var ot,we;const{prefixCls:$e,title:ge,content:Ze,overlayClassName:W,placement:an="top",trigger:_t="hover",children:nn,mouseEnterDelay:Oe=.1,mouseLeaveDelay:sn=.1,onOpenChange:It,overlayStyle:Pt={},styles:dt,classNames:Vn}=ye,o=mt(ye,["prefixCls","title","content","overlayClassName","placement","trigger","children","mouseEnterDelay","mouseLeaveDelay","onOpenChange","overlayStyle","styles","classNames"]),{getPrefixCls:Gn,className:xt,style:Ot,classNames:wt,styles:Kt}=(0,B.TP)("popover"),fe=Gn("popover",$e),[bt,un,gt]=De(fe),Wt=Gn(),Un=J()(W,un,gt,xt,wt.root,Vn==null?void 0:Vn.root),Jn=J()(wt.body,Vn==null?void 0:Vn.body),[Yt,rt]=(0,N.A)(!1,{value:(ot=ye.open)!==null&&ot!==void 0?ot:ye.visible,defaultValue:(we=ye.defaultOpen)!==null&&we!==void 0?we:ye.defaultVisible}),An=($t,kn)=>{rt($t,!0),It==null||It($t,kn)},Nt=$t=>{$t.keyCode===T.A.ESC&&An(!1,$t)},jt=$t=>{An($t)},vn=te(ge),Dt=te(Ze);return bt(r.createElement(l.A,Object.assign({placement:an,trigger:_t,mouseEnterDelay:Oe,mouseLeaveDelay:sn},o,{prefixCls:fe,classNames:{root:Un,body:Jn},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign({},Kt.root),Ot),Pt),dt==null?void 0:dt.root),body:Object.assign(Object.assign({},Kt.body),dt==null?void 0:dt.body)},ref:je,open:Yt,onOpenChange:jt,overlay:vn||Dt?r.createElement(at,{prefixCls:fe,title:vn,content:Dt}):null,transitionName:(0,q.b)(Wt,"zoom-big",o.transitionName),"data-popover-inject":!0}),(0,ne.Ob)(nn,{onKeyDown:$t=>{var kn,Kn;(0,r.isValidElement)(nn)&&((Kn=nn==null?void 0:(kn=nn.props).onKeyDown)===null||Kn===void 0||Kn.call(kn,$t)),Nt($t)}})))});Le._InternalPanelDoNotUseOrYouWillBeFired=$;const He=Le},65744:(Qn,qe,s)=>{var r=s(57327),I=s(22625);function J(N,T){return N&&N.length?I(N,r(T,3),!0):[]}Qn.exports=J},65791:(Qn,qe,s)=>{"use strict";s.d(qe,{Eq:()=>w,FC:()=>N,Fi:()=>j,JI:()=>B,Lt:()=>M,MM:()=>q,XA:()=>C,c3:()=>J,dr:()=>l,ru:()=>y,sq:()=>T,xN:()=>te,zA:()=>U});const r=Q=>Q.ui.leftLayout.page.meTemplateList,I=Q=>Q.ui.leftLayout.page.isLoadedTemplateMeData,J=Q=>Q.ui.leftLayout.page.filePlatformType,N=Q=>Q.ui.leftLayout.page.fileTemplateList,T=Q=>Q.ui.leftLayout.page.isLoadedfileData,te=Q=>Q.ui.leftLayout.page.isLoadedPageSingleData,q=Q=>Q.ui.leftLayout.page.isLoadedPageLibraryData,ne=Q=>Q.ui.leftLayout.page.templatePageSingleDataMap,B=Q=>Q.ui.leftLayout.page.templatePageLibraryList,l=Q=>Q.ui.leftLayout.page.templateLibraryPlatformType,U=Q=>Q.ui.leftLayout.page.templateLibraryPlatformSubType,C=Q=>Q.ui.leftLayout.page.templateLibraryPlatformSubTypeListMap,M=Q=>Q.ui.leftLayout.page.pageMode,w=Q=>Q.ui.leftLayout.page.meNavIndex,y=Q=>Q.ui.leftLayout.page.meFilter,j=Q=>Q.ui.leftLayout.page.currentStarResourcesCid},66339:(Qn,qe,s)=>{"use strict";s.d(qe,{$d:()=>M,xq:()=>C});var r=s(67787),I=s(53732),J=s.n(I),N=s(27660),T=s(72214);const te=r.Ay.div.withConfig({displayName:"common__StyledLine",componentId:"sc-198dvpo-0"})(["width:43px;height:2px;color:",";background-repeat:repeat-x;background-position:left center;&.solid{background-image:linear-gradient(to right,currentColor 0%,currentColor 100%,transparent 0%);background-size:43px 1px;}&.dotted{background-image:linear-gradient(to right,currentColor 0%,currentColor 25%,transparent 25%);background-size:4px 1px;}&.dashed{background-image:linear-gradient(to right,currentColor 0%,currentColor 55%,transparent 55%);background-size:22% 1px;}"],j=>j.theme.color_text_L1),q=()=>(0,T.jsx)(te,{className:J()("border-line solid")}),ne=()=>(0,T.jsx)(te,{className:J()("border-line dotted")}),B=()=>(0,T.jsx)(te,{className:J()("border-line dashed")}),l=(0,N.R)(()=>[{label:(0,T.jsx)(q,{}),value:"solid",tip_title:I18N.SettingPanel.solid_line},{label:(0,T.jsx)(ne,{}),value:"dotted",tip_title:I18N.SettingPanel.dot_line},{label:(0,T.jsx)(B,{}),value:"dashed",tip_title:I18N.SettingPanel.break_line}]),U=j=>j.map(Q=>({label:Q.toString(),value:Q})),C=U([0,1,2,3,4,5,6,7,8,9]),M=U([1,2,3,4,5,6,7,8,9]),w=U([1,2,3,4,5,6,7,8,9,10]),y=U([0,30,45,60,90])},66361:(Qn,qe,s)=>{"use strict";s.d(qe,{$:()=>r});let r=function(I){return I[I.MOVEUP=1]="MOVEUP",I[I.MOVEDOWN=-1]="MOVEDOWN",I[I.UPGRADE=2]="UPGRADE",I[I.DOWNGRADE=0]="DOWNGRADE",I}({})},67487:(Qn,qe,s)=>{"use strict";/**
* @license React
* use-sync-external-store-shim.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var r=s(38502);function I(C,M){return C===M&&(C!==0||1/C===1/M)||C!==C&&M!==M}var J=typeof Object.is=="function"?Object.is:I,N=r.useState,T=r.useEffect,te=r.useLayoutEffect,q=r.useDebugValue;function ne(C,M){var w=M(),y=N({inst:{value:w,getSnapshot:M}}),j=y[0].inst,Q=y[1];return te(function(){j.value=w,j.getSnapshot=M,B(j)&&Q({inst:j})},[C,w,M]),T(function(){return B(j)&&Q({inst:j}),C(function(){B(j)&&Q({inst:j})})},[C]),q(w),w}function B(C){var M=C.getSnapshot;C=C.value;try{var w=M();return!J(C,w)}catch(y){return!0}}function l(C,M){return M()}var U=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?l:ne;qe.useSyncExternalStore=r.useSyncExternalStore!==void 0?r.useSyncExternalStore:U},69130:(Qn,qe,s)=>{"use strict";s.d(qe,{A:()=>M});var r=s(38502),I=Object.defineProperty,J=Object.defineProperties,N=Object.getOwnPropertyDescriptors,T=Object.getOwnPropertySymbols,te=Object.prototype.hasOwnProperty,q=Object.prototype.propertyIsEnumerable,ne=(w,y,j)=>y in w?I(w,y,{enumerable:!0,configurable:!0,writable:!0,value:j}):w[y]=j,B=(w,y)=>{for(var j in y||(y={}))te.call(y,j)&&ne(w,j,y[j]);if(T)for(var j of T(y))q.call(y,j)&&ne(w,j,y[j]);return w},l=(w,y)=>J(w,N(y)),U=(w,y)=>{var j={};for(var Q in w)te.call(w,Q)&&y.indexOf(Q)<0&&(j[Q]=w[Q]);if(w!=null&&T)for(var Q of T(w))y.indexOf(Q)<0&&q.call(w,Q)&&(j[Q]=w[Q]);return j},M=(0,r.forwardRef)((w,y)=>{var j=w,{size:Q,spin:ze,style:me}=j,Se=U(j,["size","spin","style"]);const Me=B(B({width:Q||"var(--x-icon-size, 1em)",height:Q||"var(--x-icon-size, 1em)",animation:ze?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),me);return r.createElement("svg",l(B({ref:y,style:Me},Se),{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),r.createElement("path",{d:"M9.87 10.175C10.3757 10.183 10.878 10.0899 11.3473 9.90129C11.8166 9.71265 12.2435 9.43221 12.603 9.07643C12.9625 8.72064 13.2474 8.29666 13.4409 7.82934C13.6344 7.36203 13.7327 6.86078 13.73 6.35499C13.73 5.32064 13.3191 4.32866 12.5877 3.59727C11.8563 2.86588 10.8643 2.45499 9.83 2.45499C8.79566 2.45499 7.80368 2.86588 7.07228 3.59727C6.34089 4.32866 5.93 5.32064 5.93 6.35499C5.93249 6.8661 6.03699 7.37158 6.23738 7.84178C6.43777 8.31199 6.73001 8.73745 7.09697 9.09324C7.46394 9.44903 7.89824 9.72797 8.37441 9.91373C8.85058 10.0995 9.35905 10.1883 9.87 10.175ZM13.7 11.795C12.9281 11.29 12.0223 11.0287 11.1 11.045H8.83C7.93 11.045 6.97 11.275 6.23 11.755C5.55509 12.1935 4.99858 12.7914 4.60965 13.496C4.22071 14.2007 4.01133 14.9902 4 15.795V16.095C4 17.515 6.13 17.545 8.87 17.545H11.13C13.87 17.545 16 17.545 16 16.095V15.795C16 14.115 15.07 12.635 13.7 11.795Z",fill:"#B7B9BD"}))})},70169:(Qn,qe,s)=>{"use strict";s.d(qe,{oB:()=>o,C5:()=>Oe});var r=s(70933),I=s(20119),J=s(70422),N=s(24496),T=s(60651),te=s(4235),q=s(41589),ne=s.n(q);function B(Gn,xt,Ot){const wt=[];return Ot.forEach(Kt=>{const fe=ne()(Kt.hotAttr);if(fe.textV0){var bt;const un=fe.textV0.text;Gn==="textColor"&&(fe.textV0.text=C(un)),Gn==="bold"&&(fe.textV0.text=y(un)),Gn==="italic"&&(fe.textV0.text=M(un)),Gn==="textDecoration"&&xt==="line-through"&&(fe.textV0.text=j(un)),Gn==="textDecoration"&&xt==="underline"&&(fe.textV0.text=w(un)),Gn==="fontSize"&&!((bt=Kt.refVars)!=null&&(bt=bt.textV0)!=null&&bt.lineHeight)&&(fe.textV0.lineHeight=Math.round(xt*1.45))}wt.push({...Kt,hotAttr:fe})}),wt}function l(Gn,xt,Ot,wt){const Kt=[];return Ot.forEach(fe=>{const bt=ne()(fe.hotAttr);bt.textV0&&(bt.type!=="wTree"||!wt)&&(Gn==="bold"&&(bt.textV0.bold=xt),Gn==="italic"&&(bt.textV0.italic=xt),Gn==="fontFamily"&&(bt.textV0.fontFamily=xt),Gn==="fontWeight"&&(bt.textV0.fontWeight=xt)),Kt.push({...fe,hotAttr:bt})}),Kt}function U(Gn){let{attr:xt,value:Ot,supAttr:wt,items:Kt}=Gn;const fe=[];return Kt.forEach(bt=>{const un=ne()(bt.hotAttr);bt[wt]&&wt==="textInput"&&xt==="prefillTextColorV0"&&(un.textInput.prefillTextColorV0=Ot),fe.push({...bt,hotAttr:un})}),fe}const C=Gn=>Gn.replace(/<font.*?>(.*?)<\/font>/g,"$1"),M=Gn=>Gn.replace(/<i>(.*?)<\/i>/g,"$1"),w=Gn=>Gn.replace(/<u>(.*?)<\/u>/g,"$1"),y=Gn=>Gn.replace(/<b>(.*?)<\/b>/g,"$1").replace(/<span.*?>(.*?)<\/span>/g,"$1"),j=Gn=>Gn.replace(/<strike>(.*?)<\/strike>/g,"$1");var Q=s(15186),ze=s(9521),me=s(78401),Se=s(56202),Me=s(20089),De=s(45709),tt=s(69815),at=s(98915),ht=s(40610),Je=s(49021),$=s(62587),mt=s(37342),yt=s(46199),Le=s(63763),He=s(68049),ye=s(55584),je=s(39679),ot=s(34748),we=s(83744),$e=s(8580),ge=s(28068),Ze=s(86493),W=s(66360),an=s(25997),_t=s(73662),nn=s(9680);const Oe={"entry:batch:edit:text:content":(Gn,xt)=>{let{getState:Ot,dispatch:wt}=Gn,{payload:{contentArray:Kt,refVar:fe}}=xt;const bt=Ot(),un=(0,te.nE)(bt),gt=[];un.forEach(Wt=>{const Un=o(Wt,Kt,fe);Un&&gt.push({key:Wt.key,hotAttr:Un.hotAttr})}),gt.length>0&&wt({type:"entry:widget:change",payload:{flatChgList:gt}})},"entry:set:specify:text:attr":(Gn,xt)=>{let{getState:Ot,dispatch:wt}=Gn,{payload:{attr:Kt,value:fe,widgets:bt}}=xt;const un=Ot();sn({widgets:bt,dispatch:wt,attr:Kt,value:fe,state:un}),(0,we.Xq)(bt.map(gt=>(0,$e.Op)(gt.key)))},"entry:set:text:align":(Gn,xt)=>{let{getState:Ot,dispatch:wt}=Gn,{payload:{attr:Kt,value:fe}}=xt;const bt=Ot(),un=(0,te.nE)(bt),gt=un.filter(Jn=>ht.VV.includes(Jn.hotAttr.type)),Wt=un.filter(Jn=>!ht.VV.includes(Jn.hotAttr.type));if(gt.length>0){const Jn=gt.map(Yt=>({key:Yt.key,hotAttr:{richTextV1:{...Yt.hotAttr.richTextV1,[Kt]:fe}}}));wt({type:"entry:widget:change",payload:{flatChgList:Jn}})}const Un=gt.filter(Jn=>Me.Q.USE_CLIP_TEXT.includes(Jn.hotAttr.type));if(Un.length>0){const Jn=Un.map(Yt=>{const rt=sdkStore.getHotItem(Yt.key);return rt?{key:Yt.key,hotAttr:{...!rt.hotAttr.richTextV1.isClipText&&{richTextMetric:(0,at.Ro)(rt.hotAttr)}}}:null});wt({type:"entry:widget:change",payload:{flatChgList:Jn}})}if(Wt.length>0){const Jn=Wt.map(Yt=>({key:Yt.key,hotAttr:{textV0:{...Yt.hotAttr.textV0,[Kt]:fe}}}));wt({type:"entry:widget:change",payload:{flatChgList:Jn}})}(0,we.Xq)(un.map(Jn=>(0,$e.Op)(Jn.key)))},"entry:set:text:attr":(Gn,xt)=>{let{getState:Ot,dispatch:wt}=Gn,{payload:{attr:Kt,value:fe,refVar:bt,compressible:un=!0,fromUI:gt}}=xt;const Wt=Ot(),Un=(0,te.nE)(Wt),Jn=(0,T.nx)(Wt),Yt=(0,I.c)(Wt),rt=(0,N.WH)(Wt),An=(0,N.GP)(Wt),Nt=(0,N.OX)(Wt),jt=(0,N.aJ)(Wt),vn=_t.y.query.getMissFontHiKeySet(Wt),Dt=(Un==null?void 0:Un.length)===1&&Un[0].key===rt&&Nt.length,$t=Dt?Nt:Un,kn=Dt?An:Yt,Kn=$t.filter(Yn=>Je.cX.includes(Yn.hotAttr.type));if(Kn.length===0)return;const dn=Kn.filter(Yn=>ht.VV.includes(Yn.hotAttr.type)),ft=Kn.filter(Yn=>!ht.VV.includes(Yn.hotAttr.type)),Lt=Kn.filter(Yn=>(0,yt.kY)(Yn.hotAttr));if(sdkStore.combineMergeMark("update-text-attr"),sn({widgets:Kn,dispatch:wt,attr:Kt,value:fe,refVar:bt,state:Wt,compressible:un,fromUI:gt,recordAvailableInheritTextAttrs:we.Xq,missFontHiKeySet:vn}),kn&&!jt&&((0,ht.e_)(kn.hotAttr.type)||(0,ht.gM)(kn.hotAttr.type)))return;const bn=dn.filter(Yn=>Me.Q.USE_CLIP_TEXT.includes(Yn.hotAttr.type));if(bn.length>0){const Yn=[];bn.forEach(on=>{const yn=sdkStore.getHotItem(on.key);if(!yn)return null;yn.hotAttr.richTextV1.isClipText||Yn.push({key:on.key,hotAttr:{richTextMetric:(0,at.Ro)(yn.hotAttr)}})}),wt({type:"entry:widget:change",payload:{flatChgList:Yn}})}if(!(Kt==="sizeType"&&Kn.find(Yn=>Yn.hotAttr.type===Me.x.WRichText))){if(Object.keys(Jn).length===0){const Yn=yn=>{let{a:lo,v:qn,supAttr:Wn,list:Nn}=yn;const xn=Nn.map(Ye=>{const wn=sdkStore.getHotItem(Ye.key);return{key:Ye.key,hotAttr:{[Wn]:{...wn.hotAttr[Wn],[lo]:qn}}}});wt({type:"entry:widget:change",payload:{flatChgList:xn}})},on=dn.filter(yn=>yn.hotAttr.type===Me.x.WMindNode);if(on.length>0){const{a:yn,v:lo}=Vn(Kt,fe,"wMind");Yn({a:yn,v:lo,supAttr:"richTextV1",list:on})}if(ft.length>0){const{a:yn,v:lo}=Vn(Kt,fe,"commonText");Yn({a:yn,v:lo,supAttr:"textV0",list:ft})}if(Lt.length>0)if(Kt==="prefillTextColorV0")Yn({a:"prefillTextColorV0",v:fe,supAttr:"textInput",list:Lt});else{const{a:yn,v:lo}=Vn(Kt,fe,"commonText");Yn({a:yn,v:lo,supAttr:"textV0",list:Lt})}}Dt&&Kt!=="textColor"&&wt({type:"entry:mind:update:mind-size"}),wt({type:"settings:update:currentTextRefStyle",payload:null}),sdkStore.combineMerge("update-text-attr")}},"entry:set:text:attr:fakeOverride":(Gn,xt)=>{var Ot;let{getState:wt,dispatch:Kt}=Gn,{payload:{attrValueList:fe,supAttr:bt,isTreeSelectNode:un}}=xt;const gt=wt(),Wt=(0,te.nE)(gt),Un=(0,I.c)(gt),Jn=(0,N.WH)(gt),Yt=(0,an.UV)(gt),rt=(0,N.OX)(gt),An=(0,r.Mj)(gt),jt=(Wt==null?void 0:Wt.length)===1&&Wt[0].key===Jn&&rt.length?rt:Wt;if(Un&&Un.key===((Ot=jt[0])==null?void 0:Ot.key)&&An&&(0,ht.AG)(Un)){(0,tt.nk)(An,fe);return}Pt({widgets:jt,attrValueList:fe,widgetStore:Yt,supAttr:bt,isTreeSelectNode:un})},"entry:set:text:attr:fakeOverride:restore":Gn=>{let{getState:xt,dispatch:Ot}=Gn;const wt=xt(),Kt=(0,an.UV)(wt),fe=dt(Kt);fe&&Ot({type:"selection:update:state",payload:{widgetTreeData:fe}})},"entry:set:text:attr:by:key":async(Gn,xt)=>{var Ot;let{getState:wt,dispatch:Kt}=Gn,{payload:{attr:fe,action:bt,isInEditing:un=!1}}=xt;const gt=wt(),Wt=(0,te.nE)(gt),Un=(0,N.OX)(gt),Jn=Wt.some(Lt=>{let{hotAttr:{type:bn}}=Lt;return bn===Me.x.WMind})&&!Un.length;if(Wt.length===0||((Ot=Wt[0])==null?void 0:Ot.hotAttr.bunch)===Me.x.RbPage||Jn)return;const Yt=Un[0]||Wt[0],rt=(0,J.zX)(gt),An=(Yt==null?void 0:Yt.hotAttr.type)===Me.x.WTable&&rt,Nt=(0,ht.AG)(Yt);if(!Nt&&Yt&&!Yt.hotAttr.textV0)return;const jt={underline:"textDecoration",lineThrough:"textDecoration",boldType:"bold"},vn={lineThrough:"strikethrough",boldType:"fontWeight"};let Dt;Nt?Dt=vn[fe]||fe:Dt=jt[fe]||fe;const $t=Nt?(0,ot.xH)({baseItem:Yt.hotAttr})[Dt]:Yt.hotAttr.textV0[Dt],kn={bold:!$t,boldType:!$t,italic:!$t,fontSize:bt==="increase"?$t+1:$t-1<1?1:$t-1,textDecoration:$t==="line-through"||$t==="underline"?"noraml":Dt==="underline"?"underline":"line-through",underline:$t==="normal"||$t==="line-through"?"underline":"normal",lineThrough:$t==="normal"||$t==="underline"?"line-through":"normal"},Kn={...kn,underline:!$t,lineThrough:!$t,fontWeight:$t==="bold"?"regular":"bold"},dn=Nt?Kn[Dt]:kn[Dt];if(An){Kt({type:"entry:table:set:cell:attr:new",payload:{attr:Dt,value:dn}});return}let ft=Dt;Nt&&(ft=Dt==="bold"?"boldType":Dt==="strikethrough"?"line-through":Dt),await Kt({type:"entry:set:text:attr",payload:{attr:ft,value:dn}})},"entry:set:richText:attr:fontWeight":async(Gn,xt)=>{let{getState:Ot,dispatch:wt}=Gn,{payload:{fontFamily:Kt,fontWeight:fe,boldType:bt}}=xt;if(Kt){const gt=(0,De.dA)(Kt).map(Un=>{let{value:Jn}=Un;return Jn});bt===1?!(0,De.GZ)(fe)&&gt.includes("bold")&&await wt({type:"entry:set:text:attr",payload:{attr:"fontWeight",value:"bold"}}):await wt({type:"entry:set:text:attr",payload:{attr:"fontWeight",value:"regular"}})}},"entry:paste:text:from:clipboard":(Gn,xt)=>{let{getState:Ot,dispatch:wt}=Gn,{payload:{html:Kt,pasteAtData:fe}}=xt;if(MB.f.isPastingRichText=!0,Kt===void 0)return;const un=new DOMParser().parseFromString(Kt,"text/html"),gt=un.querySelectorAll("[data-mb-type]");let Wt,Un,Jn,Yt=null;if(gt.length>0)Wt=(0,je.lN)("COPIED__MB__WIDGET");else{var rt,An;Yt=un.querySelector("[data-mb-text-flag]"),Un=(rt=un.querySelector("[data-mb-richData]"))==null?void 0:rt.getAttribute("data-mb-richdata"),Jn=(An=un.querySelector("[data-ref-style-text]"))==null?void 0:An.getAttribute("data-ref-style-text"),Wt=(0,ye.Ld)({html:Kt,isClearStyle:Yt===null})}const Nt=(0,Le.gu)({type:Me.x.WRichText,attrs:{textV1:Wt,isRawText:Yt===null}});if(Un)try{const jt=JSON.parse(Un).richData;Nt.w=jt.w,Nt.h=jt.h,Nt.richTextV1=jt.richTextV1,Nt.refStyles={text:Jn}}catch(jt){console.warn("clipboard-richData-error",jt,{html:Kt,richDataAttr:Un})}fe?(Nt.x=fe.worldPos.x,Nt.y=fe.worldPos.y,wt({type:"entry:batch:create:items",payload:{data:[{items:[Nt],width:Nt.w,height:Nt.h}],sup:fe.keyRndSup,offset:{top:0,left:0}}})):wt({type:"entry:batch:create:items",payload:{data:[{items:[Nt],width:Nt.w,height:Nt.h}]}})},"entry:min:fontsize:issue":Gn=>{let{getState:xt,dispatch:Ot}=Gn;if(MB.f.inSharing||(0,Se.Fr)())return;const wt=xt(),Kt=wt==null?void 0:wt.ui.fixedLayout.preference;if(!Kt||!Kt.showFsWarning)return;const fe=Kt.theme;return MB.global.popupHelper.confirmAsync({title:I18N.railsLib.warning,desc:I18N.railsLib.font_size_issue,confirmText:I18N.railsLib.know_how,cancelText:I18N.railsLib.remind_not,isClose:!1,theme:fe}).then(bt=>{if(bt)return(0,mt.JW)("/hc/articles/127","_blank","noreferrer");Ot({type:"entry:update:preference-data",payload:{show_fs_warning:!1}})})}};function sn(Gn){let{widgets:xt,dispatch:Ot,attr:wt,value:Kt,refVar:fe,state:bt,compressible:un=!0,fromUI:gt,recordAvailableInheritTextAttrs:Wt,missFontHiKeySet:Un}=Gn;sdkStore.combineMergeMark("text-attr");const Jn=(0,I.c)(bt),Yt=(0,r.Mj)(bt),rt=Jn&&Jn.key===xt[0].key;wt==="fontFamily"&&(xt=xt.map(vn=>({...vn,hotAttr:{...vn.hotAttr,"!ffVersion":1}})));const An=xt.filter(vn=>vn.hotAttr.type===Me.x.WRichText);if(An.length>0&&wt==="sizeType"){const vn=(0,ze.GP)(Kt,An);Ot({type:"entry:widget:change",payload:{flatChgList:vn}}),sdkStore.combineMerge("text-attr");return}const Nt=xt.filter(vn=>Me.Q.USE_TEXT_FONT_DIRECTION.includes(vn.hotAttr.type));if(wt==="fontDirection"){const vn=(0,ze.rA)(Kt,Nt);Ot({type:"entry:widget:change",payload:{flatChgList:vn}}),sdkStore.combineMerge("text-attr"),Wt==null||Wt(vn.map(Dt=>(0,$e.Op)(Dt.key)));return}if(wt==="isClipText"){const vn=xt.filter(Dt=>Me.Q.USE_CLIP_TEXT.includes(Dt.hotAttr.type)).map(Dt=>({key:Dt.key,hotAttr:{richTextV1:{...Dt.hotAttr.richTextV1,isClipText:Kt}}}));Ot({type:"entry:widget:change",payload:{flatChgList:vn}}),sdkStore.combineMerge("text-attr");return}if(rt){if((0,ht.AG)(Jn)&&Yt){const vn=$t=>{if((0,W.$B)($t)&&!["sizeType","listType","isClipText","paddingTuple"].includes(wt)){const kn=(0,ge.dM)($t.getCurrentContent()),Kn=(0,Ze.qn)(kn);Wt==null||Wt([Jn].map(dn=>(0,$e.Op)(dn.key,{textV1:Kn})))}};(0,tt.l2)(Yt,wt,Kt,un,vn);const Dt=Jn.hotAttr.richTextV1;if(wt==="fontSize"&&(0,tt.ul)(Yt)&&(Dt==null?void 0:Dt.fontSize)!==Kt){var jt;const $t=(jt=(0,ze.zs)([Jn],wt,Kt,gt)[0])==null||(jt=jt.hotAttr.richTextV1)==null?void 0:jt.lineHeight;Ot({type:"entry:widget:change",payload:{flatChgList:[{key:Jn.key,hotAttr:{richTextV1:{...Dt,fontSize:Kt,...$t&&{lineHeight:$t}}}}]}})}else if(wt==="lineHeight"){const $t=xt.filter(kn=>{var Kn;return((Kn=kn.hotAttr.richTextV1)==null?void 0:Kn["!lhVersion"])===1}).map(kn=>{const Kn=sdkStore.getHotItem(kn.key);return{key:kn.key,hotAttr:{richTextV1:{...Kn.hotAttr.richTextV1,"!lhVersion":3}}}});$t.length>0&&Ot({type:"entry:widget:change",payload:{flatChgList:$t}})}else if(wt==="paraSpacing"){const $t=xt.filter(kn=>kn.hotAttr["!psVersion"]===1).map(kn=>({key:kn.key,hotAttr:{"!psVersion":3}}));$t.length>0&&Ot({type:"entry:widget:change",payload:{flatChgList:$t}})}}}else{const vn=xt.filter(lo=>(0,ht.AG)(lo)),Dt=xt.filter(lo=>!(0,ht.AG)(lo)),{a:$t,v:kn}=Vn(wt,Kt,"richText"),Kn=(0,ze.zs)(vn,$t,kn,gt),{a:dn,v:ft}=Vn(wt,Kt,"commonText"),Lt=B(dn,ft,Dt),bn=Lt.filter(lo=>(0,yt.kY)(lo.hotAttr));if(bn.length>0&&wt==="prefillTextColorV0"){const lo=U({attr:"prefillTextColorV0",value:Kt,supAttr:"textInput",items:bn});Lt.forEach((qn,Wn)=>{const Nn=lo.find(xn=>xn.key===qn.key);Nn&&(Lt[Wn]=Nn)})}const Yn=Kn.concat(Lt),on=(0,nn.b4)(Yn,wt,fe),yn=Yn.map(lo=>{var qn,Wn,Nn,xn,Ye,wn,Hn;let{key:zn,hotAttr:ko}=lo;const On=on.find(jo=>jo.key===zn),Mo=On?On.refVars:ko.refVars,jn=(ko==null||(qn=ko.refStyles)==null?void 0:qn.text)&&sdkStore.getHotItem(ko==null||(Wn=ko.refStyles)==null?void 0:Wn.text),xo=jn?{color:{...(Nn=ko==null||(xn=ko.refStyles)==null?void 0:xn.color)!=null?Nn:{},...(Ye=(wn=jn.hotAttr)==null||(wn=wn.refStyles)==null?void 0:wn.color)!=null?Ye:{}},appear:ko==null||(Hn=ko.refStyles)==null?void 0:Hn.appear,text:""}:{...ko.refStyles};return{key:zn,hotAttr:{...ko,refVars:Mo,refStyles:xo}}});Ot({type:"entry:widget:change",payload:{flatChgList:yn}}),["sizeType","listType","isClipText","paddingTuple"].includes(wt)||Wt&&Wt(Yn.map(lo=>(0,$e.Op)(lo.key)))}sdkStore.combineMerge("text-attr")}const It=new Set,Pt=Gn=>{let{widgets:xt,attrValueList:Ot,supAttr:wt,widgetStore:Kt,isTreeSelectNode:fe}=Gn,bt=xt.filter(Un=>(0,ht.AG)(Un)),un=xt.filter(Un=>!(0,ht.AG)(Un));for(const[Un,Jn]of Ot){const{a:Yt,v:rt}=Vn(Un,Jn,"richText"),{a:An,v:Nt}=Vn(Un,Jn,"commonText");if(bt=(0,ze.zs)(bt,Yt,rt),un=l(An,Nt,un,fe),wt){const jt=wt.split("-"),vn=jt.length;for(const Dt of un){let $t=Dt.hotAttr;if($t.type===Me.x.WTree)fe&&($t.selectNode[An]=Nt);else{var gt;for(let kn=0;kn<vn;kn++)$t=$t[jt[kn]];(gt=$t)!=null&&gt.textV0&&($t.textV0[An]=Nt)}}}}const Wt=bt.concat(un);Wt.forEach(Un=>It.add(Un.key)),Kt.triggerSnapshotChange(Wt)},dt=Gn=>{if(It.size===0)return;const xt=[...It.keys()];Gn.triggerSnapshotChange(xt),It.clear()},Vn=(Gn,xt,Ot)=>{let wt=Gn,Kt=xt;return Ot==="richText"?(Gn==="textColor"&&typeof xt=="number"&&(Kt=(0,Q.t0)(xt)),Gn==="textDecoration"&&(xt==="underline"&&(wt="underline",Kt=!0),xt==="line-through"&&(wt="line-through",Kt=!0),xt==="normal"&&(wt="underline",Kt=!1)),Gn==="italic"&&(wt="fontStyle",Kt=xt?"italic":"normal"),{a:wt,v:Kt}):Ot==="wMind"?(Gn==="textColor"&&typeof xt=="number"&&(Kt=(0,Q.t0)(xt)),Gn==="boldType"&&(wt="bold"),Gn==="line-through"&&(wt="strikethrough"),{a:wt,v:Kt}):(Gn==="textColor"&&typeof xt=="string"&&(Kt=(0,$.dT)(xt)),Gn==="underline"&&(wt="textDecoration",Kt=xt?"underline":"normal"),Gn==="line-through"&&(wt="textDecoration",Kt=xt?"line-through":"normal"),Gn==="fontStyle"&&(wt="italic",Kt=xt==="italic"),{a:wt,v:Kt})};function o(Gn,xt,Ot){const{hotAttr:wt,hotAttr:{type:Kt,textV0:fe,textV1:bt,textInput:un,refVars:gt}}=Gn;let Wt,Un;if(ht.VV.includes(Kt)){const Yt=(0,tt.Qj)(bt,xt);if(Yt){var Jn;Wt=((Jn=(0,ze.zs)([Gn],"textV1",Yt,!1)[0])==null?void 0:Jn.hotAttr)||{},Wt.refVars={...gt,textV1:(0,nn.JK)(gt==null?void 0:gt.textV1,"text",Ot)}}}else{Kt===Me.x.WMSelect||[Me.x.WWebpage,Me.x.WButton,Me.x.WButtonSolid,Me.x.WMTextInput,Me.x.WMTextArea,Me.x.WDropMenu,Me.x.WElbow].includes(Kt)?Un=xt.join("\n"):Un=(0,me.c1)(xt.join("\n"));let Yt={textV0:{...fe,text:Un}};if(Yt.refVars={...gt,textV0:(0,nn.JK)(gt==null?void 0:gt.textV0,"text",Ot)},[Me.x.WMTextInput,Me.x.WMTextArea].includes(Kt)&&(Yt={textInput:{...un,prefillTextV0:Un}},Yt.refVars={...gt,textInput:(0,nn.JK)(gt==null?void 0:gt.textInput,"prefillTextV0",Ot)}),Wt={...wt,...Yt},Kt===Me.x.WMTooltip){const rt=(0,He.EO)(Wt),An=wt.y-wt.h/2;Wt={...Wt,h:rt,y:An+rt/2}}}return{...Gn,hotAttr:Wt}}},70466:(Qn,qe,s)=>{"use strict";s.d(qe,{F:()=>B,u:()=>ne});var r=s(96986),I=s(21489),J=s(70933),N=s(78915),T=s(34860),te=s(77866),q=s(67588);const ne={"entry:comment:toggle":(l,U)=>{var C;let{getState:M,dispatch:w}=l,{payload:y}=U;const j=M(),Q=(0,r.sI)(j);if((C=MB.user)!=null&&C.id){if(y!=null&&y.onlyView){const ze=(0,J.z$)(j);if((ze==null?void 0:ze.comment_permission)==="off")return}w({type:"entry:vector:exit:edit"}),w({type:"entry:pencil:vector:exit:edit"}),Q?(w({type:"entry:comment:disabled"}),w({type:"set:quick-create-widget",payload:{widget:null}})):(w({type:"entry:comment:enable",payload:y}),w({type:"set:quick-create-widget",payload:{widget:null}}))}},"entry:comment:enable":(l,U)=>{let{getState:C,dispatch:M}=l,{payload:w}=U;M({type:"comment:update:isInCommentMode",payload:{isInCommentMode:!0}}),M({type:"entry:observe:dom:right-panel-width"}),w!=null&&w.onlyView&&(M(N.GO.toggleInspectMode(!1)),M(N.GO.toggleHandMode(!1)),M(N.GO.select([])))},"entry:comment:disabled":(l,U)=>{var C;let{getState:M,dispatch:w}=l,{payload:y}=U;const j=M(),Q=j==null||(C=j.editor)==null||(C=C.state)==null||(C=C.mode)==null?void 0:C.previewViewMode,{noWigglingCommentCid:ze}=y||{};if(!ze){const me=B();if(me){w({type:"entry:comment:wigglingCommentCid",payload:{wigglingCommentCid:me}});return}}w(N.GO.hoverItem("")),w({type:"entry:comment:clear"}),w({type:"comment:update:isInCommentMode",payload:{isInCommentMode:!1}}),w({type:"entry:observe:dom:right-panel-width"}),Q==="inspect"&&(w(N.GO.toggleHandMode(!1)),w(N.GO.toggleInspectMode(!0)),w(N.GO.select([])))},"entry:comment:clear":l=>{let{dispatch:U}=l;U({type:"comment:update:creatingComment",payload:{creatingComment:null}}),U({type:"comment:update:activeCommentCid",payload:{activeCommentCid:""}}),U({type:"comment:update:editorRawContentObject",payload:{editorRawContentObject:{}}}),U({type:"comment:update:editorIsEditing",payload:{editorIsEditing:!1}}),U({type:"entry:comment:wigglingCommentCid",payload:{wigglingCommentCid:""}}),U({type:"comment:update:startCommentAnchorPoint",payload:{startCommentAnchorPoint:null}}),U({type:"comment:update:editingCommentCid",payload:{editingCommentCid:""}}),U({type:"comment:update:editingRecordCid",payload:{editingRecordCid:""}}),U({type:"entry:comment:benot-dragging"})},"entry:comment:init:item":(l,U)=>{let{getState:C,dispatch:M}=l,{payload:{type:w,curComment:y,message:j}}=U;if(w==="thread"){if(!rootSdk.cmtStore.getHotItem(y.screenCid)){const Le=(0,I.$S)(y.screenCid);rootSdk.cmtStore.updateHotItem(Le)}const{cid:ze,x:me,y:Se,w:Me,h:De,z:tt,userInfo:at,canvasVec2:ht,canvasCid:Je,screenCid:$,threadType:mt}=y,yt=(0,I.Ch)($,ze,{message:j,x:me,y:Se,w:Me,h:De,z:tt,userInfo:at,canvasCid:Je,canvasVec2:ht,threadType:mt});rootSdk.cmtStore.updateHotItem(yt)}else if(w==="content"){const{cid:Q}=y,ze=(0,I.Bh)(Q,{userInfo:MB.user,message:j});rootSdk.cmtStore.updateHotItem(ze)}M({type:"entry:comment:rebuild:commentList"})},"entry:comment:del:item":(l,U)=>{let{getState:C,dispatch:M}=l,{payload:{cid:w}}=U;rootSdk.cmtStore.deleteHotItem(w),M({type:"entry:comment:rebuild:commentList"})},"entry:comment:update:item":(l,U)=>{let{getState:C,dispatch:M}=l,{payload:{cid:w,attr:y}}=U;const j=rootSdk.cmtStore.getHotItem(w),Q={...j,hotAttr:{...j.hotAttr,...y}};rootSdk.cmtStore.updateHotItem(Q),M({type:"entry:comment:rebuild:commentList"})},"entry:comment:create:esc":l=>{let{getState:U,dispatch:C}=l;const M=U(),w=(0,r.V8)(M),y=(0,r.QV)(M),j=(0,r.uX)(M);w&&y?(0,I.IP)(w,j)?C({type:"entry:comment:wigglingCommentCid",payload:{wigglingCommentCid:w.cid}}):C({type:"entry:comment:cancel"}):C({type:"entry:comment:disabled"})},"enter:comment:shortcut:del":l=>{var U;let{getState:C,dispatch:M}=l;const w=C(),y=(0,r.Cb)(w),j=(0,r.EH)(w),Q=(0,r.sI)(w),me=(0,r.Vr)(w).find(tt=>tt.cid===y),Se=(0,r.QV)(w),Me=(0,q.O4)(w);if(!(Q||j)||Se||!me)return;if((0,I.ug)(me.userInfo).cid!==((U=MB.user)==null?void 0:U.cid)){MB.notice({text:"\u5220\u9664\u8BC4\u8BBA\u6743\u9650\u4E0D\u8DB3"});return}MB.global.popupHelper.confirmAsync({className:"DeleteCommentModal",title:I18N.Comment.delete_comment_title,confirmText:I18N.Common.confirm,desc:I18N.Comment.delete_comment_desc,theme:Me}).then(tt=>{var at;tt&&(M({type:"entry:comment:delete",payload:{cid:y}}),(0,te.i4)({operation_type:te.nU.deleteInPanel,comment_type:te.ej[me.threadType],relation:!!y,operation_from:te.HI[(at=w.editor)==null?void 0:at.state.mode.viewType]||te.HI.edit}))})},"entry:comment:wigglingCommentCid":(l,U)=>{let{dispatch:C}=l,{payload:{wigglingCommentCid:M}}=U;C({type:"comment:update:wigglingCommentCid",payload:{wigglingCommentCid:M}}),C({type:"comment:update:activeCommentCid",payload:{activeCommentCid:M}}),M&&setTimeout(()=>{C({type:"comment:update:wigglingCommentCid",payload:{wigglingCommentCid:""}})},1e3)},"entry:comment:checked":(l,U)=>{let{getState:C,dispatch:M}=l,{payload:{cid:w,status:y}}=U;const j=C(),ze=(0,r.Vr)(j).find(Se=>Se.cid===w);if(!ze)return;const me={isCompleted:!ze.isCompleted};M({type:"entry:comment:update:item",payload:{cid:w,attr:me}}),M({type:"comment:update:editorIsEditing",payload:{editorIsEditing:!1}})}},B=()=>{var l,U;const C=(0,T.oK)()?(l=MB.webpackInterface.store)==null?void 0:l.getState():(U=MB.__store__)==null?void 0:U.getState();if(!C)return;const M=(0,r.QV)(C),w=(0,r.az)(C),y=(0,r.Ou)(C),j=(0,r.uX)(C),Q=(0,r.V8)(C),ze=(0,T.oK)()?(0,r.CI)(C):(0,r.AU)(C);let me;Q&&M&&(0,I.IP)(Q,j)&&(me=Q.cid);const Se=ze.find(Me=>Me.cid===w);if(Se&&M&&(0,I.IP)(Se,j)&&(me=Se.cid),y){const Me=rootSdk.cmtStore.getHotItem(y),{hotAttr:{type:De}}=Me;De==="cCmtContent"?me=Me.sup:De==="cCmtThread"&&(me=y)}return me}},70526:(Qn,qe,s)=>{"use strict";var r=s(24229);/*! iScroll v5.2.0-snapshot ~ (c) 2008-2017 Matteo Spinelli ~ http://cubiq.org/license */(function(I,J,N){let T="";var te=I.requestAnimationFrame||I.webkitRequestAnimationFrame||I.mozRequestAnimationFrame||I.oRequestAnimationFrame||I.msRequestAnimationFrame||function(U){I.setTimeout(U,16.666666666666668)},q=function(){var U={},C=J.createElement("div").style,M=function(){for(var j=["t","webkitT","MozT","msT","OT"],Q,ze=0,me=j.length;ze<me;ze++)if(Q=j[ze]+"ransform",Q in C)return j[ze].substr(0,j[ze].length-1);return!1}();function w(j){return M===!1?!1:M===""?j:M+j.charAt(0).toUpperCase()+j.substr(1)}U.getTime=Date.now||function(){return new Date().getTime()},U.extend=function(j,Q){for(var ze in Q)j[ze]=Q[ze]},U.addEvent=function(j,Q,ze,me){j.addEventListener(Q,ze,!!me)},U.removeEvent=function(j,Q,ze,me){j.removeEventListener(Q,ze,!!me)},U.prefixPointerEvent=function(j){return I.MSPointerEvent?"MSPointer"+j.charAt(7).toUpperCase()+j.substr(8):j},U.momentum=function(j,Q,ze,me,Se,Me){var De=j-Q,tt=N.abs(De)/ze,at,ht;return Me=Me===void 0?6e-4:Me,at=j+tt*tt/(2*Me)*(De<0?-1:1),ht=tt/Me,at<me?(at=Se?me-Se/2.5*(tt/8):me,De=N.abs(at-j),ht=De/tt):at>0&&(at=Se?Se/2.5*(tt/8):0,De=N.abs(j)+at,ht=De/tt),{destination:N.round(at),duration:ht}};var y=w("transform");return U.extend(U,{hasTransform:y!==!1,hasPerspective:w("perspective")in C,hasTouch:"ontouchstart"in I,hasPointer:!!(I.PointerEvent||I.MSPointerEvent),hasTransition:w("transition")in C}),U.isBadAndroid=function(){var j=I.navigator.appVersion;if(/Android/.test(j)&&!/Chrome\/\d/.test(j)){var Q=j.match(/Safari\/(\d+.\d)/);return Q&&typeof Q=="object"&&Q.length>=2?parseFloat(Q[1])<535.19:!0}else return!1}(),U.extend(U.style={},{transform:y,transitionTimingFunction:w("transitionTimingFunction"),transitionDuration:w("transitionDuration"),transitionDelay:w("transitionDelay"),transformOrigin:w("transformOrigin"),touchAction:w("touchAction")}),U.hasClass=function(j,Q){var ze=new RegExp("(^|\\s)"+Q+"(\\s|$)");return ze.test(j.className)},U.addClass=function(j,Q){if(!U.hasClass(j,Q)){var ze=j.className.split(" ");ze.push(Q),j.className=ze.join(" ")}},U.removeClass=function(j,Q){if(U.hasClass(j,Q)){var ze=new RegExp("(^|\\s)"+Q+"(\\s|$)","g");j.className=j.className.replace(ze," ")}},U.offset=function(j){for(var Q=-j.offsetLeft,ze=-j.offsetTop;j=j.offsetParent;)Q-=j.offsetLeft,ze-=j.offsetTop;return{left:Q,top:ze}},U.preventDefaultException=function(j,Q){for(var ze in Q)if(Q[ze].test(j[ze]))return!0;return!1},U.extend(U.eventType={},{touchstart:1,touchmove:1,touchend:1,mousedown:2,mousemove:2,mouseup:2,pointerdown:3,pointermove:3,pointerup:3,MSPointerDown:3,MSPointerMove:3,MSPointerUp:3}),U.extend(U.ease={},{quadratic:{style:"cubic-bezier(0.25, 0.46, 0.45, 0.94)",fn:function(j){return j*(2-j)}},circular:{style:"cubic-bezier(0.1, 0.57, 0.1, 1)",fn:function(j){return N.sqrt(1- --j*j)}},back:{style:"cubic-bezier(0.175, 0.885, 0.32, 1.275)",fn:function(j){var Q=4;return(j=j-1)*j*((Q+1)*j+Q)+1}},bounce:{style:"",fn:function(j){return(j/=1)<1/2.75?7.5625*j*j:j<2/2.75?7.5625*(j-=1.5/2.75)*j+.75:j<2.5/2.75?7.5625*(j-=2.25/2.75)*j+.9375:7.5625*(j-=2.625/2.75)*j+.984375}},elastic:{style:"",fn:function(j){var Q=.22,ze=.4;return j===0?0:j==1?1:ze*N.pow(2,-10*j)*N.sin((j-Q/4)*(2*N.PI)/Q)+1}}}),U.tap=function(j,Q){var ze=J.createEvent("Event");ze.initEvent(Q,!0,!0),ze.pageX=j.pageX,ze.pageY=j.pageY,j.target.dispatchEvent(ze)},U.click=function(j){var Q=j.target,ze;/(SELECT|INPUT|TEXTAREA)/i.test(Q.tagName)||(ze=J.createEvent(I.MouseEvent?"MouseEvents":"Event"),ze.initEvent("click",!0,!0),ze.view=j.view||I,ze.detail=1,ze.screenX=Q.screenX||0,ze.screenY=Q.screenY||0,ze.clientX=Q.clientX||0,ze.clientY=Q.clientY||0,ze.ctrlKey=!!j.ctrlKey,ze.altKey=!!j.altKey,ze.shiftKey=!!j.shiftKey,ze.metaKey=!!j.metaKey,ze.button=0,ze.relatedTarget=null,ze._constructed=!0,Q.dispatchEvent(ze))},U.getTouchAction=function(j,Q){var ze="none";return j==="vertical"?ze="pan-y":j==="horizontal"&&(ze="pan-x"),Q&&ze!="none"&&(ze+=" pinch-zoom"),ze},U.getRect=function(j){if(j instanceof SVGElement){var Q=j.getBoundingClientRect();return{top:Q.top,left:Q.left,width:Q.width,height:Q.height}}else return{top:j.offsetTop,left:j.offsetLeft,width:j.offsetWidth,height:j.offsetHeight}},U}();function ne(U,C){this.wrapper=typeof U=="string"?J.querySelector(U):U,this.scroller=this.wrapper.children[0],this.scrollerStyle=this.scroller.style,this.options={resizeScrollbars:!0,mouseWheelSpeed:20,snapThreshold:.334,disablePointer:!q.hasPointer,disableTouch:q.hasPointer||!q.hasTouch,disableMouse:q.hasPointer||q.hasTouch,startX:0,startY:0,scrollY:!0,directionLockThreshold:5,momentum:!0,bounce:!0,bounceTime:600,bounceEasing:"",preventDefault:!0,preventDefaultException:{tagName:/^(INPUT|TEXTAREA|BUTTON|SELECT)$/},HWCompositing:!0,useTransition:!0,useTransform:!0,bindToWrapper:typeof I.onmousedown>"u"};for(var M in C)this.options[M]=C[M];this.translateZ=this.options.HWCompositing&&q.hasPerspective?" translateZ(0)":"",this.options.useTransition=q.hasTransition&&this.options.useTransition,this.options.useTransform=q.hasTransform&&this.options.useTransform,this.options.eventPassthrough=this.options.eventPassthrough===!0?"vertical":this.options.eventPassthrough,this.options.preventDefault=!this.options.eventPassthrough&&this.options.preventDefault,this.options.scrollY=this.options.eventPassthrough=="vertical"?!1:this.options.scrollY,this.options.scrollX=this.options.eventPassthrough=="horizontal"?!1:this.options.scrollX,this.options.freeScroll=this.options.freeScroll&&!this.options.eventPassthrough,this.options.directionLockThreshold=this.options.eventPassthrough?0:this.options.directionLockThreshold,this.options.bounceEasing=typeof this.options.bounceEasing=="string"?q.ease[this.options.bounceEasing]||q.ease.circular:this.options.bounceEasing,this.options.resizePolling=this.options.resizePolling===void 0?60:this.options.resizePolling,this.options.tap===!0&&(this.options.tap="tap"),!this.options.useTransition&&!this.options.useTransform&&(/relative|absolute/i.test(this.scrollerStyle.position)||(this.scrollerStyle.position="relative")),this.options.shrinkScrollbars=="scale"&&(this.options.useTransition=!1),this.options.invertWheelDirection=this.options.invertWheelDirection?-1:1,this.options.probeType==3&&(this.options.useTransition=!1),this.x=0,this.y=0,this.directionX=0,this.directionY=0,this._events={},this._init(),this.refresh(),this.scrollTo(this.options.startX,this.options.startY),this.enable()}ne.prototype={version:"5.2.0-snapshot",_init:function(){this._initEvents(),(this.options.scrollbars||this.options.indicators)&&this._initIndicators(),this.options.mouseWheel&&this._initWheel(),this.options.snap&&this._initSnap(),this.options.keyBindings&&this._initKeys()},destroy:function(){this._initEvents(!0),clearTimeout(this.resizeTimeout),this.resizeTimeout=null,this._execEvent("destroy"),this.destroyed=!0},_transitionEnd:function(U){U.target!=this.scroller||!this.isInTransition||(this._transitionTime(),this.resetPosition(this.options.bounceTime)||(this.isInTransition=!1,this._execEvent("scrollEnd")))},_start:function(U){if(q.eventType[U.type]!=1){var C;if(U.which?C=U.button:C=U.button<2?0:U.button==4?1:2,C!==0)return}if(!(!this.enabled||this.initiated&&q.eventType[U.type]!==this.initiated)&&!(this.options.ignoreEventException&&this.options.ignoreEventException(U,this))){this.options.preventDefault&&!q.isBadAndroid&&!q.preventDefaultException(U.target,this.options.preventDefaultException)&&U.preventDefault();var M=U.touches?U.touches[0]:U,w;this.initiated=q.eventType[U.type],this.moved=!1,this.distX=0,this.distY=0,this.directionX=0,this.directionY=0,this.directionLocked=0,this.startTime=q.getTime(),this.options.useTransition&&this.isInTransition?(this._transitionTime(),this.isInTransition=!1,w=this.getComputedPosition(),this._translate(N.round(w.x),N.round(w.y)),this._execEvent("scrollEnd")):!this.options.useTransition&&this.isAnimating&&(this.isAnimating=!1,T="",this._execEvent("scrollEnd")),this.startX=this.x,this.startY=this.y,this.absStartX=this.x,this.absStartY=this.y,this.pointX=M.pageX,this.pointY=M.pageY,this._execEvent("beforeScrollStart")}},_move:function(U){if(!(!this.enabled||q.eventType[U.type]!==this.initiated)){this.options.preventDefault&&U.preventDefault();var C=U.touches?U.touches[0]:U,M=C.pageX-this.pointX,w=C.pageY-this.pointY,y=q.getTime(),j,Q,ze,me;if(this.pointX=C.pageX,this.pointY=C.pageY,this.distX+=M,this.distY+=w,ze=N.abs(this.distX),me=N.abs(this.distY),!(y-this.endTime>300&&ze<10&&me<10)){if(!this.directionLocked&&!this.options.freeScroll&&(ze>me+this.options.directionLockThreshold?this.directionLocked="h":me>=ze+this.options.directionLockThreshold?this.directionLocked="v":this.directionLocked="n"),this.directionLocked=="h"){if(this.options.eventPassthrough=="vertical")U.preventDefault();else if(this.options.eventPassthrough=="horizontal"){this.initiated=!1;return}w=0}else if(this.directionLocked=="v"){if(this.options.eventPassthrough=="horizontal")U.preventDefault();else if(this.options.eventPassthrough=="vertical"){this.initiated=!1;return}M=0}M=this.hasHorizontalScroll?M:0,w=this.hasVerticalScroll?w:0,!(this.options.ignoreEventException&&this.options.ignoreEventException(U,this,{deltaX:M,deltaY:w}))&&(j=this.x+M,Q=this.y+w,(j>0||j<this.maxScrollX)&&(j=this.options.bounce?this.x+M/3:j>0?0:this.maxScrollX),(Q>0||Q<this.maxScrollY)&&(Q=this.options.bounce?this.y+w/3:Q>0?0:this.maxScrollY),this.directionX=M>0?-1:M<0?1:0,this.directionY=w>0?-1:w<0?1:0,this.moved||this._execEvent("scrollStart"),this.moved=!0,this._translate(j,Q),y-this.startTime>300&&(this.startTime=y,this.startX=this.x,this.startY=this.y,this.options.probeType==1&&this._execEvent("scroll")),this.options.probeType>1&&this._execEvent("scroll"))}}},_end:function(U){if(!(!this.enabled||q.eventType[U.type]!==this.initiated)){this.options.preventDefault&&!q.preventDefaultException(U.target,this.options.preventDefaultException)&&U.preventDefault();var C=U.changedTouches?U.changedTouches[0]:U,M,w,y=q.getTime()-this.startTime,j=N.round(this.x),Q=N.round(this.y),ze=N.abs(j-this.startX),me=N.abs(Q-this.startY),Se=0,Me="";if(this.isInTransition=0,this.initiated=0,this.endTime=q.getTime(),!this.resetPosition(this.options.bounceTime)){if(this.scrollTo(j,Q),!this.moved){this.options.tap&&q.tap(U,this.options.tap),this.options.click&&q.click(U),this._execEvent("scrollCancel");return}if(this._events.flick&&y<200&&ze<100&&me<100){this._execEvent("flick");return}if(this.options.momentum&&y<300&&(M=this.hasHorizontalScroll?q.momentum(this.x,this.startX,y,this.maxScrollX,this.options.bounce?this.wrapperWidth:0,this.options.deceleration):{destination:j,duration:0},w=this.hasVerticalScroll?q.momentum(this.y,this.startY,y,this.maxScrollY,this.options.bounce?this.wrapperHeight:0,this.options.deceleration):{destination:Q,duration:0},j=M.destination,Q=w.destination,Se=N.max(M.duration,w.duration),this.isInTransition=1),this.options.snap){var De=this._nearestSnap(j,Q);this.currentPage=De,Se=this.options.snapSpeed||N.max(N.max(N.min(N.abs(j-De.x),1e3),N.min(N.abs(Q-De.y),1e3)),300),j=De.x,Q=De.y,this.directionX=0,this.directionY=0,Me=this.options.bounceEasing}if(j!=this.x||Q!=this.y){(j>0||j<this.maxScrollX||Q>0||Q<this.maxScrollY)&&(Me=q.ease.quadratic),this.scrollTo(j,Q,Se,Me);return}this._execEvent("scrollEnd")}}},_resize:function(){var U=this;clearTimeout(this.resizeTimeout),this.resizeTimeout=setTimeout(function(){U.refresh()},this.options.resizePolling)},resetPosition:function(U){var C=this.x,M=this.y;return U=U||0,!this.hasHorizontalScroll||this.x>0?C=0:this.x<this.maxScrollX&&(C=this.maxScrollX),!this.hasVerticalScroll||this.y>0?M=0:this.y<this.maxScrollY&&(M=this.maxScrollY),C==this.x&&M==this.y?!1:(this.scrollTo(C,M,U,this.options.bounceEasing),!0)},disable:function(){this.enabled=!1},enable:function(){this.enabled=!0},refresh:function(){q.getRect(this.wrapper),this.wrapperWidth=this.wrapper.clientWidth,this.wrapperHeight=this.wrapper.clientHeight;var U=q.getRect(this.scroller);this.scrollerWidth=U.width,this.scrollerHeight=U.height,this.maxScrollX=this.wrapperWidth-this.scrollerWidth,this.maxScrollY=this.wrapperHeight-this.scrollerHeight,this.hasHorizontalScroll=this.options.scrollX&&this.maxScrollX<0,this.hasVerticalScroll=this.options.scrollY&&this.maxScrollY<0,this.hasHorizontalScroll||(this.maxScrollX=0,this.scrollerWidth=this.wrapperWidth),this.hasVerticalScroll||(this.maxScrollY=0,this.scrollerHeight=this.wrapperHeight),this.endTime=0,this.directionX=0,this.directionY=0,q.hasPointer&&!this.options.disablePointer&&(this.wrapper.style[q.style.touchAction]=q.getTouchAction(this.options.eventPassthrough,!0),this.wrapper.style[q.style.touchAction]||(this.wrapper.style[q.style.touchAction]=q.getTouchAction(this.options.eventPassthrough,!1))),this.wrapperOffset=q.offset(this.wrapper),this._execEvent("refresh"),this.resetPosition()},on:function(U,C){this._events[U]||(this._events[U]=[]),this._events[U].push(C)},off:function(U,C){if(this._events[U]){var M=this._events[U].indexOf(C);M>-1&&this._events[U].splice(M,1)}},_execEvent:function(U){if(this._events[U]){var C=0,M=this._events[U].length;if(M)for(;C<M;C++)this._events[U][C].apply(this,[].slice.call(arguments,1))}},scrollBy:function(U,C,M,w){U=this.x+U,C=this.y+C,M=M||0,this.scrollTo(U,C,M,w)},scrollTo:function(U,C,M,w){w=w||q.ease.circular,this.isInTransition=this.options.useTransition&&M>0;var y=this.options.useTransition&&w.style;!M||y?(y&&(this._transitionTimingFunction(w.style),this._transitionTime(M)),this._translate(U,C)):this._animate(U,C,M,w.fn)},scrollToElement:function(U,C,M,w,y){if(U=U.nodeType?U:this.scroller.querySelector(U),!!U){var j=q.offset(U);j.left-=this.wrapperOffset.left,j.top-=this.wrapperOffset.top;var Q=q.getRect(U),ze=q.getRect(this.wrapper);M===!0&&(M=N.round(Q.width/2-ze.width/2)),w===!0&&(w=N.round(Q.height/2-ze.height/2)),j.left-=M||0,j.top-=w||0,j.left=j.left>0?0:j.left<this.maxScrollX?this.maxScrollX:j.left,j.top=j.top>0?0:j.top<this.maxScrollY?this.maxScrollY:j.top,C=C==null||C==="auto"?N.max(N.abs(this.x-j.left),N.abs(this.y-j.top)):C,this.scrollTo(j.left,j.top,C,y)}},_transitionTime:function(U){if(this.options.useTransition){U=U||0;var C=q.style.transitionDuration;if(C){if(this.scrollerStyle[C]=U+"ms",!U&&q.isBadAndroid){this.scrollerStyle[C]="0.0001ms";var M=this;te(function(){M.scrollerStyle[C]==="0.0001ms"&&(M.scrollerStyle[C]="0s")})}if(this.indicators)for(var w=this.indicators.length;w--;)this.indicators[w].transitionTime(U)}}},_transitionTimingFunction:function(U){if(this.scrollerStyle[q.style.transitionTimingFunction]=U,this.indicators)for(var C=this.indicators.length;C--;)this.indicators[C].transitionTimingFunction(U)},_translate:function(U,C){if(this.options.useTransform?this.scrollerStyle[q.style.transform]="translate("+U+"px,"+C+"px)"+this.translateZ:(U=N.round(U),C=N.round(C),this.scrollerStyle.left=U+"px",this.scrollerStyle.top=C+"px"),this.x=U,this.y=C,this.indicators)for(var M=this.indicators.length;M--;)this.indicators[M].updatePosition()},_initEvents:function(U){var C=U?q.removeEvent:q.addEvent,M=this.options.bindToWrapper?this.wrapper:I;C(I,"orientationchange",this),C(I,"resize",this),this.options.click&&C(this.wrapper,"click",this,!0),this.options.disableMouse||(C(this.wrapper,"mousedown",this),C(M,"mousemove",this),C(M,"mousecancel",this),C(M,"mouseup",this)),q.hasPointer&&!this.options.disablePointer&&(C(this.wrapper,q.prefixPointerEvent("pointerdown"),this),C(M,q.prefixPointerEvent("pointermove"),this),C(M,q.prefixPointerEvent("pointercancel"),this),C(M,q.prefixPointerEvent("pointerup"),this)),q.hasTouch&&!this.options.disableTouch&&(C(this.wrapper,"touchstart",this),C(M,"touchmove",this),C(M,"touchcancel",this),C(M,"touchend",this)),C(this.scroller,"transitionend",this),C(this.scroller,"webkitTransitionEnd",this),C(this.scroller,"oTransitionEnd",this),C(this.scroller,"MSTransitionEnd",this)},getComputedPosition:function(){var U=I.getComputedStyle(this.scroller,null),C,M;return this.options.useTransform?(U=U[q.style.transform].split(")")[0].split(", "),C=+(U[12]||U[4]),M=+(U[13]||U[5])):(C=+U.left.replace(/[^-\d.]/g,""),M=+U.top.replace(/[^-\d.]/g,"")),{x:C,y:M}},_initIndicators:function(){var U=this.options.interactiveScrollbars,C=typeof this.options.scrollbars!="string",M=[],w,y=this;this.indicators=[],this.options.scrollbars&&(this.options.scrollY&&(w={el:B("v",U,this.options.scrollbars),interactive:U,defaultScrollbars:!0,customStyle:C,resize:this.options.resizeScrollbars,shrink:this.options.shrinkScrollbars,fade:this.options.fadeScrollbars,listenX:!1},this.wrapper.appendChild(w.el),M.push(w)),this.options.scrollX&&(w={el:B("h",U,this.options.scrollbars),interactive:U,defaultScrollbars:!0,customStyle:C,resize:this.options.resizeScrollbars,shrink:this.options.shrinkScrollbars,fade:this.options.fadeScrollbars,listenY:!1},this.wrapper.appendChild(w.el),M.push(w))),this.options.indicators&&(M=M.concat(this.options.indicators));for(var j=M.length;j--;)this.indicators.push(new l(this,M[j]));function Q(ze){if(y.indicators)for(var me=y.indicators.length;me--;)ze.call(y.indicators[me])}this.options.fadeScrollbars&&(this.on("scrollEnd",function(){Q(function(){this.fade()})}),this.on("scrollCancel",function(){Q(function(){this.fade()})}),this.on("scrollStart",function(){Q(function(){this.fade(1)})}),this.on("beforeScrollStart",function(){Q(function(){this.fade(1,!0)})})),this.on("refresh",function(){Q(function(){this.refresh()})}),this.on("destroy",function(){Q(function(){this.destroy()}),delete this.indicators})},_initWheel:function(){q.addEvent(this.wrapper,"wheel",this),q.addEvent(this.wrapper,"mousewheel",this),q.addEvent(this.wrapper,"DOMMouseScroll",this),this.on("destroy",function(){clearTimeout(this.wheelTimeout),this.wheelTimeout=null,q.removeEvent(this.wrapper,"wheel",this),q.removeEvent(this.wrapper,"mousewheel",this),q.removeEvent(this.wrapper,"DOMMouseScroll",this)})},_wheel:function(U){if(this.enabled){if(U.metaKey||U.ctrlKey||U.buttons===4)return!0;if(!(this.options.ignoreEventException&&this.options.ignoreEventException(U,this,{deltaX:U.deltaX,deltaY:U.deltaY}))){var C,M,w,y,j=this;if(this.wheelTimeout===void 0&&j._execEvent("scrollStart"),clearTimeout(this.wheelTimeout),this.wheelTimeout=setTimeout(function(){j.options.snap||j._execEvent("scrollEnd"),j.wheelTimeout=void 0},400),"deltaX"in U)U.deltaMode===1?(C=-U.deltaX*this.options.mouseWheelSpeed,M=-U.deltaY*this.options.mouseWheelSpeed):(C=-U.deltaX,M=-U.deltaY);else if("wheelDeltaX"in U)C=U.wheelDeltaX/120*this.options.mouseWheelSpeed,M=U.wheelDeltaY/120*this.options.mouseWheelSpeed;else if("wheelDelta"in U)C=M=U.wheelDelta/120*this.options.mouseWheelSpeed;else if("detail"in U)C=M=-U.detail/3*this.options.mouseWheelSpeed;else return;if(C*=this.options.invertWheelDirection,M*=this.options.invertWheelDirection,this.options.snap){w=this.currentPage.pageX,y=this.currentPage.pageY,C>0?w--:C<0&&w++,M>0?y--:M<0&&y++,this.goToPage(w,y);return}w=this.x+N.round(this.hasHorizontalScroll?C:0),y=this.y+N.round(this.hasVerticalScroll?M:0),this.directionX=C>0?-1:C<0?1:0,this.directionY=M>0?-1:M<0?1:0,w>0?w=0:w<this.maxScrollX&&(w=this.maxScrollX),y>0?y=0:y<this.maxScrollY&&(y=this.maxScrollY),this.scrollTo(w,y,0),this.options.probeType>1&&this._execEvent("scroll")}}},_initSnap:function(){this.currentPage={},typeof this.options.snap=="string"&&(this.options.snap=this.scroller.querySelectorAll(this.options.snap)),this.on("refresh",function(){var U=0,C,M=0,w,y,j,Q=0,ze,me=this.options.snapStepX||this.wrapperWidth,Se=this.options.snapStepY||this.wrapperHeight,Me,De;if(this.pages=[],!(!this.wrapperWidth||!this.wrapperHeight||!this.scrollerWidth||!this.scrollerHeight)){if(this.options.snap===!0)for(y=N.round(me/2),j=N.round(Se/2);Q>-this.scrollerWidth;){for(this.pages[U]=[],C=0,ze=0;ze>-this.scrollerHeight;)this.pages[U][C]={x:N.max(Q,this.maxScrollX),y:N.max(ze,this.maxScrollY),width:me,height:Se,cx:Q-y,cy:ze-j},ze-=Se,C++;Q-=me,U++}else for(Me=this.options.snap,C=Me.length,w=-1;U<C;U++)De=q.getRect(Me[U]),(U===0||De.left<=q.getRect(Me[U-1]).left)&&(M=0,w++),this.pages[M]||(this.pages[M]=[]),Q=N.max(-De.left,this.maxScrollX),ze=N.max(-De.top,this.maxScrollY),y=Q-N.round(De.width/2),j=ze-N.round(De.height/2),this.pages[M][w]={x:Q,y:ze,width:De.width,height:De.height,cx:y,cy:j},Q>this.maxScrollX&&M++;this.goToPage(this.currentPage.pageX||0,this.currentPage.pageY||0,0),this.options.snapThreshold%1===0?(this.snapThresholdX=this.options.snapThreshold,this.snapThresholdY=this.options.snapThreshold):(this.snapThresholdX=N.round(this.pages[this.currentPage.pageX][this.currentPage.pageY].width*this.options.snapThreshold),this.snapThresholdY=N.round(this.pages[this.currentPage.pageX][this.currentPage.pageY].height*this.options.snapThreshold))}}),this.on("flick",function(){var U=this.options.snapSpeed||N.max(N.max(N.min(N.abs(this.x-this.startX),1e3),N.min(N.abs(this.y-this.startY),1e3)),300);this.goToPage(this.currentPage.pageX+this.directionX,this.currentPage.pageY+this.directionY,U)})},_nearestSnap:function(U,C){if(!this.pages.length)return{x:0,y:0,pageX:0,pageY:0};var M=0,w=this.pages.length,y=0;if(N.abs(U-this.absStartX)<this.snapThresholdX&&N.abs(C-this.absStartY)<this.snapThresholdY)return this.currentPage;for(U>0?U=0:U<this.maxScrollX&&(U=this.maxScrollX),C>0?C=0:C<this.maxScrollY&&(C=this.maxScrollY);M<w;M++)if(U>=this.pages[M][0].cx){U=this.pages[M][0].x;break}for(w=this.pages[M].length;y<w;y++)if(C>=this.pages[0][y].cy){C=this.pages[0][y].y;break}return M==this.currentPage.pageX&&(M+=this.directionX,M<0?M=0:M>=this.pages.length&&(M=this.pages.length-1),U=this.pages[M][0].x),y==this.currentPage.pageY&&(y+=this.directionY,y<0?y=0:y>=this.pages[0].length&&(y=this.pages[0].length-1),C=this.pages[0][y].y),{x:U,y:C,pageX:M,pageY:y}},goToPage:function(U,C,M,w){w=w||this.options.bounceEasing,U>=this.pages.length?U=this.pages.length-1:U<0&&(U=0),C>=this.pages[U].length?C=this.pages[U].length-1:C<0&&(C=0);var y=this.pages[U][C].x,j=this.pages[U][C].y;M=M===void 0?this.options.snapSpeed||N.max(N.max(N.min(N.abs(y-this.x),1e3),N.min(N.abs(j-this.y),1e3)),300):M,this.currentPage={x:y,y:j,pageX:U,pageY:C},this.scrollTo(y,j,M,w)},next:function(U,C){var M=this.currentPage.pageX,w=this.currentPage.pageY;M++,M>=this.pages.length&&this.hasVerticalScroll&&(M=0,w++),this.goToPage(M,w,U,C)},prev:function(U,C){var M=this.currentPage.pageX,w=this.currentPage.pageY;M--,M<0&&this.hasVerticalScroll&&(M=0,w--),this.goToPage(M,w,U,C)},_initKeys:function(U){var C={pageUp:33,pageDown:34,end:35,home:36,left:37,up:38,right:39,down:40},M;if(typeof this.options.keyBindings=="object")for(M in this.options.keyBindings)typeof this.options.keyBindings[M]=="string"&&(this.options.keyBindings[M]=this.options.keyBindings[M].toUpperCase().charCodeAt(0));else this.options.keyBindings={};for(M in C)this.options.keyBindings[M]=this.options.keyBindings[M]||C[M];q.addEvent(I,"keydown",this),this.on("destroy",function(){q.removeEvent(I,"keydown",this)})},_key:function(U){if(this.enabled){var C=this.options.snap,M=C?this.currentPage.pageX:this.x,w=C?this.currentPage.pageY:this.y,y=q.getTime(),j=this.keyTime||0,Q=.25,ze;switch(this.options.useTransition&&this.isInTransition&&(ze=this.getComputedPosition(),this._translate(N.round(ze.x),N.round(ze.y)),this.isInTransition=!1),this.keyAcceleration=y-j<200?N.min(this.keyAcceleration+Q,50):0,U.keyCode){case this.options.keyBindings.pageUp:this.hasHorizontalScroll&&!this.hasVerticalScroll?M+=C?1:this.wrapperWidth:w+=C?1:this.wrapperHeight;break;case this.options.keyBindings.pageDown:this.hasHorizontalScroll&&!this.hasVerticalScroll?M-=C?1:this.wrapperWidth:w-=C?1:this.wrapperHeight;break;case this.options.keyBindings.end:M=C?this.pages.length-1:this.maxScrollX,w=C?this.pages[0].length-1:this.maxScrollY;break;case this.options.keyBindings.home:M=0,w=0;break;case this.options.keyBindings.left:M+=C?-1:5+this.keyAcceleration>>0;break;case this.options.keyBindings.up:w+=C?1:5+this.keyAcceleration>>0;break;case this.options.keyBindings.right:M-=C?-1:5+this.keyAcceleration>>0;break;case this.options.keyBindings.down:w-=C?1:5+this.keyAcceleration>>0;break;default:return}if(C){this.goToPage(M,w);return}M>0?(M=0,this.keyAcceleration=0):M<this.maxScrollX&&(M=this.maxScrollX,this.keyAcceleration=0),w>0?(w=0,this.keyAcceleration=0):w<this.maxScrollY&&(w=this.maxScrollY,this.keyAcceleration=0),this.scrollTo(M,w,0),this.keyTime=y}},_animate:function(U,C,M,w){var y=this,j=this.x,Q=this.y,ze=q.getTime(),me=ze+M;const Se=(0,r.cF)();T=Se;function Me(){if(y.destroyed){y._execEvent("scrollEnd");return}if(Se!==T){y._execEvent("scrollEnd");return}var De=q.getTime(),tt,at,ht;if(De>=me){T="",y.isAnimating=!1,y._translate(U,C),y.resetPosition(y.options.bounceTime)||y._execEvent("scrollEnd");return}De=(De-ze)/M,ht=w(De),tt=(U-j)*ht+j,at=(C-Q)*ht+Q,y._translate(tt,at),y.isAnimating&&te(Me),y.options.probeType==3&&y._execEvent("scroll")}this.isAnimating=!0,Me()},handleEvent:function(U){switch(U.type){case"touchstart":case"pointerdown":case"MSPointerDown":case"mousedown":this._start(U);break;case"touchmove":case"pointermove":case"MSPointerMove":case"mousemove":this._move(U);break;case"touchend":case"pointerup":case"MSPointerUp":case"mouseup":case"touchcancel":case"pointercancel":case"MSPointerCancel":case"mousecancel":this._end(U);break;case"orientationchange":case"resize":this._resize();break;case"transitionend":case"webkitTransitionEnd":case"oTransitionEnd":case"MSTransitionEnd":this._transitionEnd(U);break;case"wheel":case"DOMMouseScroll":case"mousewheel":this._wheel(U);break;case"keydown":this._key(U);break;case"click":this.enabled&&!U._constructed&&(U.preventDefault(),U.stopPropagation());break}}};function B(U,C,M){var w=J.createElement("div"),y=J.createElement("div");return M===!0&&(w.style.cssText="position:absolute;z-index:9999",y.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;position:absolute;background:rgba(0,0,0,0.5);border:1px solid rgba(255,255,255,0.9);border-radius:3px"),y.className="iScrollIndicator",U=="h"?(M===!0&&(w.style.cssText+=";height:7px;left:2px;right:2px;bottom:0",y.style.height="100%"),w.className="iScrollHorizontalScrollbar"):(M===!0&&(w.style.cssText+=";width:7px;bottom:2px;top:2px;right:1px",y.style.width="100%"),w.className="iScrollVerticalScrollbar"),w.style.cssText+=";overflow:hidden",C||(w.style.pointerEvents="none"),w.appendChild(y),w}function l(U,C){this.wrapper=typeof C.el=="string"?J.querySelector(C.el):C.el,this.wrapperStyle=this.wrapper.style,this.indicator=this.wrapper.children[0],this.indicatorStyle=this.indicator.style,this.scroller=U,this.options={listenX:!0,listenY:!0,interactive:!1,resize:!0,defaultScrollbars:!1,shrink:!1,fade:!1,speedRatioX:0,speedRatioY:0};for(var M in C)this.options[M]=C[M];if(this.sizeRatioX=1,this.sizeRatioY=1,this.maxPosX=0,this.maxPosY=0,this.options.interactive&&(this.options.disableTouch||(q.addEvent(this.indicator,"touchstart",this),q.addEvent(I,"touchend",this)),this.options.disablePointer||(q.addEvent(this.indicator,q.prefixPointerEvent("pointerdown"),this),q.addEvent(I,q.prefixPointerEvent("pointerup"),this)),this.options.disableMouse||(q.addEvent(this.indicator,"mousedown",this),q.addEvent(I,"mouseup",this))),this.options.fade){this.wrapperStyle[q.style.transform]=this.scroller.translateZ;var w=q.style.transitionDuration;if(!w)return;this.wrapperStyle[w]=q.isBadAndroid?"0.0001ms":"0ms";var y=this;q.isBadAndroid&&te(function(){y.wrapperStyle[w]==="0.0001ms"&&(y.wrapperStyle[w]="0s")}),this.wrapperStyle.opacity="0"}}l.prototype={handleEvent:function(U){switch(U.type){case"touchstart":case"pointerdown":case"MSPointerDown":case"mousedown":this._start(U);break;case"touchmove":case"pointermove":case"MSPointerMove":case"mousemove":this._move(U);break;case"touchend":case"pointerup":case"MSPointerUp":case"mouseup":case"touchcancel":case"pointercancel":case"MSPointerCancel":case"mousecancel":this._end(U);break}},destroy:function(){this.options.fadeScrollbars&&(clearTimeout(this.fadeTimeout),this.fadeTimeout=null),this.options.interactive&&(q.removeEvent(this.indicator,"touchstart",this),q.removeEvent(this.indicator,q.prefixPointerEvent("pointerdown"),this),q.removeEvent(this.indicator,"mousedown",this),q.removeEvent(I,"touchmove",this),q.removeEvent(I,q.prefixPointerEvent("pointermove"),this),q.removeEvent(I,"mousemove",this),q.removeEvent(I,"touchend",this),q.removeEvent(I,q.prefixPointerEvent("pointerup"),this),q.removeEvent(I,"mouseup",this)),this.options.defaultScrollbars&&this.wrapper.parentNode&&this.wrapper.parentNode.removeChild(this.wrapper)},_start:function(U){var C=U.touches?U.touches[0]:U;U.preventDefault(),U.stopPropagation(),this.transitionTime(),this.initiated=!0,this.moved=!1,this.lastPointX=C.pageX,this.lastPointY=C.pageY,this.startTime=q.getTime(),this.options.disableTouch||q.addEvent(I,"touchmove",this),this.options.disablePointer||q.addEvent(I,q.prefixPointerEvent("pointermove"),this),this.options.disableMouse||q.addEvent(I,"mousemove",this),this.scroller._execEvent("beforeScrollStart")},_move:function(U){var C=U.touches?U.touches[0]:U,M,w,y,j,Q=q.getTime();this.moved||this.scroller._execEvent("scrollStart"),this.moved=!0,M=C.pageX-this.lastPointX,this.lastPointX=C.pageX,w=C.pageY-this.lastPointY,this.lastPointY=C.pageY,y=this.x+M,j=this.y+w,this._pos(y,j),this.scroller.options.probeType==1&&Q-this.startTime>300?(this.startTime=Q,this.scroller._execEvent("scroll")):this.scroller.options.probeType>1&&this.scroller._execEvent("scroll"),U.preventDefault(),U.stopPropagation()},_end:function(U){if(this.initiated){if(this.initiated=!1,U.preventDefault(),U.stopPropagation(),q.removeEvent(I,"touchmove",this),q.removeEvent(I,q.prefixPointerEvent("pointermove"),this),q.removeEvent(I,"mousemove",this),this.scroller.options.snap){var C=this.scroller._nearestSnap(this.scroller.x,this.scroller.y),M=this.options.snapSpeed||N.max(N.max(N.min(N.abs(this.scroller.x-C.x),1e3),N.min(N.abs(this.scroller.y-C.y),1e3)),300);(this.scroller.x!=C.x||this.scroller.y!=C.y)&&(this.scroller.directionX=0,this.scroller.directionY=0,this.scroller.currentPage=C,this.scroller.scrollTo(C.x,C.y,M,this.scroller.options.bounceEasing))}this.moved&&this.scroller._execEvent("scrollEnd")}},transitionTime:function(U){U=U||0;var C=q.style.transitionDuration;if(C&&(this.indicatorStyle[C]=U+"ms",!U&&q.isBadAndroid)){this.indicatorStyle[C]="0.0001ms";var M=this;te(function(){M.indicatorStyle[C]==="0.0001ms"&&(M.indicatorStyle[C]="0s")})}},transitionTimingFunction:function(U){this.indicatorStyle[q.style.transitionTimingFunction]=U},refresh:function(){this.transitionTime(),this.options.listenX&&!this.options.listenY?this.indicatorStyle.display=this.scroller.hasHorizontalScroll?"block":"none":this.options.listenY&&!this.options.listenX?this.indicatorStyle.display=this.scroller.hasVerticalScroll?"block":"none":this.indicatorStyle.display=this.scroller.hasHorizontalScroll||this.scroller.hasVerticalScroll?"block":"none",this.scroller.hasHorizontalScroll&&this.scroller.hasVerticalScroll?(q.addClass(this.wrapper,"iScrollBothScrollbars"),q.removeClass(this.wrapper,"iScrollLoneScrollbar"),this.options.defaultScrollbars&&this.options.customStyle&&(this.options.listenX?this.wrapper.style.right="8px":this.wrapper.style.bottom="8px")):(q.removeClass(this.wrapper,"iScrollBothScrollbars"),q.addClass(this.wrapper,"iScrollLoneScrollbar"),this.options.defaultScrollbars&&this.options.customStyle&&(this.options.listenX?this.wrapper.style.right="2px":this.wrapper.style.bottom="2px")),q.getRect(this.wrapper),this.options.listenX&&(this.wrapperWidth=this.wrapper.clientWidth,this.options.resize?(this.indicatorWidth=N.max(N.round(this.wrapperWidth*this.wrapperWidth/(this.scroller.scrollerWidth||this.wrapperWidth||1)),8),this.indicatorStyle.width=this.indicatorWidth+"px"):this.indicatorWidth=this.indicator.clientWidth,this.maxPosX=this.wrapperWidth-this.indicatorWidth,this.options.shrink=="clip"?(this.minBoundaryX=-this.indicatorWidth+8,this.maxBoundaryX=this.wrapperWidth-8):(this.minBoundaryX=0,this.maxBoundaryX=this.maxPosX),this.sizeRatioX=this.options.speedRatioX||this.scroller.maxScrollX&&this.maxPosX/this.scroller.maxScrollX),this.options.listenY&&(this.wrapperHeight=this.wrapper.clientHeight,this.options.resize?(this.indicatorHeight=N.max(N.round(this.wrapperHeight*this.wrapperHeight/(this.scroller.scrollerHeight||this.wrapperHeight||1)),8),this.indicatorStyle.height=this.indicatorHeight+"px"):this.indicatorHeight=this.indicator.clientHeight,this.maxPosY=this.wrapperHeight-this.indicatorHeight,this.options.shrink=="clip"?(this.minBoundaryY=-this.indicatorHeight+8,this.maxBoundaryY=this.wrapperHeight-8):(this.minBoundaryY=0,this.maxBoundaryY=this.maxPosY),this.maxPosY=this.wrapperHeight-this.indicatorHeight,this.sizeRatioY=this.options.speedRatioY||this.scroller.maxScrollY&&this.maxPosY/this.scroller.maxScrollY),this.updatePosition()},updatePosition:function(){var U=this.options.listenX&&N.round(this.sizeRatioX*this.scroller.x)||0,C=this.options.listenY&&N.round(this.sizeRatioY*this.scroller.y)||0;this.options.ignoreBoundaries||(U<this.minBoundaryX?(this.options.shrink=="scale"&&(this.width=N.max(this.indicatorWidth+U,8),this.indicatorStyle.width=this.width+"px"),U=this.minBoundaryX):U>this.maxBoundaryX?this.options.shrink=="scale"?(this.width=N.max(this.indicatorWidth-(U-this.maxPosX),8),this.indicatorStyle.width=this.width+"px",U=this.maxPosX+this.indicatorWidth-this.width):U=this.maxBoundaryX:this.options.shrink=="scale"&&this.width!=this.indicatorWidth&&(this.width=this.indicatorWidth,this.indicatorStyle.width=this.width+"px"),C<this.minBoundaryY?(this.options.shrink=="scale"&&(this.height=N.max(this.indicatorHeight+C*3,8),this.indicatorStyle.height=this.height+"px"),C=this.minBoundaryY):C>this.maxBoundaryY?this.options.shrink=="scale"?(this.height=N.max(this.indicatorHeight-(C-this.maxPosY)*3,8),this.indicatorStyle.height=this.height+"px",C=this.maxPosY+this.indicatorHeight-this.height):C=this.maxBoundaryY:this.options.shrink=="scale"&&this.height!=this.indicatorHeight&&(this.height=this.indicatorHeight,this.indicatorStyle.height=this.height+"px")),this.x=U,this.y=C,this.scroller.options.useTransform?this.indicatorStyle[q.style.transform]="translate("+U+"px,"+C+"px)"+this.scroller.translateZ:(this.indicatorStyle.left=U+"px",this.indicatorStyle.top=C+"px")},_pos:function(U,C){U<0?U=0:U>this.maxPosX&&(U=this.maxPosX),C<0?C=0:C>this.maxPosY&&(C=this.maxPosY),U=this.options.listenX?N.round(U/this.sizeRatioX):this.scroller.x,C=this.options.listenY?N.round(C/this.sizeRatioY):this.scroller.y,this.scroller.scrollTo(U,C)},fade:function(U,C){if(!(C&&!this.visible)){clearTimeout(this.fadeTimeout),this.fadeTimeout=null;var M=U?250:500,w=U?0:300;U=U?"1":"0",this.wrapperStyle[q.style.transitionDuration]=M+"ms",this.fadeTimeout=setTimeout((function(y){this.wrapperStyle.opacity=y,this.visible=+y}).bind(this,U),w)}}},ne.utils=q,I.IScroll=ne})(window,document,Math)},70629:(Qn,qe,s)=>{"use strict";s.d(qe,{j:()=>ze});var r=s(38502),I=s(53732),J=s.n(I),N=s(88656),T=s(29303),te=s(82066),q=s(36689),ne=s(95549),B=s(17307),l=s(83199),U=s(58053),C=s(67787),M=s(15400);const w=C.Ay.div.withConfig({displayName:"styles__StyledFullScreenMode",componentId:"sc-1a8kzq2-0"})(["&{position:relative;",";border-radius:4px;transition:all 0.2s ease-in-out;cursor:pointer;}&.isEmbedV2Preview.NotFullScreen{.fullscreen{width:28px;height:24px;align-items:center;.svg-icon{width:24px;height:24px;}}}&.isCommunityPreview{.fullscreen .svg-icon{color:#666;}}.fullscreen{position:relative;display:flex;justify-content:center;width:38px;height:32px;.svg-icon{width:32px;height:32px;}}&:hover&:not(.active){background-color:",";}&.active{background-color:",";}"],M.om,me=>me.theme.color_btn_secondary_active,me=>me.theme.color_btn_secondary_active);var y=s(72214);class j extends r.PureComponent{constructor(){super(...arguments),(0,ne.A)(this,"handleFullScreen",async()=>{const{isFullScreenMode:Se,dispatch:Me}=this.props;Se?(await U.A.exit(),Me({type:"entry:exit:fill-screen-mode"})):Me({type:"entry:enter:full-screen-mode"})})}render(){const{isFullScreenMode:Se,isEmbedV2:Me,isCommunityPreview:De}=this.props,tt=Se?"design/collapse_screen":"design/fullscreen";return(0,y.jsx)(w,{className:J()("fullscreen-box",{isEmbedV2Preview:Me},{NotFullScreen:!Se},{isCommunityPreview:De}),children:(0,y.jsx)(l.A,{direction:"down",content:I18N.pPreviewToolbar.fullscreen,children:(0,y.jsx)("div",{className:"fullscreen-wrapper",children:(0,y.jsx)("div",{className:"fullscreen",onClick:this.handleFullScreen,children:(0,y.jsx)(B.C,{name:tt})})})})})}}(0,ne.A)(j,"defaultProps",{isFullScreenMode:!1});const Q=C.Ay.div.withConfig({displayName:"styles__StyledOperationBox",componentId:"sc-1448df2-0"})(["position:absolute;height:36px;border-radius:4px;box-shadow:0px 9px 28px rgba(0,0,0,0.05);display:flex;flex-direction:row;background:#fff;top:16px;right:16px;pointer-events:auto;align-items:center;padding:4px 6px 4px 4px;transition:right 0.2s ease-in-out;&.dark{background-color:#252626;svg{color:#F2F4F5 !important;}.communityZoomBox.isComboPreview{border:1px solid #454647;}& > div.divider{border-left:1px solid #454647;}}&.isCommunityComboPreview{right:24px;&.isPreviewOnly{.save-tips-dropdown{margin-right:10px;}}}.save-tips-dropdown.isCommunity .toolbar-icon-item{width:36px;height:28px;margin-top:1px;svg{color:#666666;}}& > div.divider{border-left:1px solid #e5e5e5;margin:0 6px;height:20px;}.fullscreen{width:36px;height:28px;align-items:center;.fullIcon{width:36px;height:28px;.svg-icon{width:32px;height:32px;color:#666666;}}}span.divider{margin-left:8px;height:20px;border-right:1px solid #e5e5e5;}.zoom-control{&.zoom-in{width:36px;height:28px;svg{path{stroke:#666666;}}}&.zoom-out{width:36px;height:28px;svg{path{stroke:#666666;}}}&.disabled{svg{path{stroke:#ccc;}}}}.communityZoomBox{width:71px;height:28px;&.isComboPreview{border:1px solid #E5E5E5;border-radius:3px;}.zoom-main > .zoom-box{.zoom-scale{font-size:13px;font-weight:400;}.zoom-arrow{width:7px;margin-left:12px;}}.mac,.others{top:120%;}}button.zoom-options-panel-toggle{width:47px;height:28px;border-radius:4px;margin:0 4px;text-align:center;&:hover{background-color:",";}}"],me=>me.theme.color_btn_secondary_active);class ze extends r.PureComponent{render(){const{isReadOnly:Se,isFullScreenMode:Me,scale:De,theme:tt,isEmbedV2Preview:at,isCommunityPreview:ht,isCommunityComboPreview:Je,handleZoomIn:$,handleZoomOut:mt,handleZoomInitialScale:yt,handleZoomSpecifiedScale:Le,handleZoomSelection:He,handleToggleFullScreenMode:ye,dispatch:je}=this.props;return(0,y.jsxs)(Q,{className:J()("operation-box",{isCommunityComboPreview:Je},{isPreviewOnly:!Se},""+tt),children:[Se?(0,y.jsx)(N.X,{}):(0,y.jsx)(T.A,{}),!Je&&!Se&&(0,y.jsx)("div",{className:"divider"}),Se?(0,y.jsx)(q.A,{scale:De,fullScreenMode:Me,isShowZoomSelection:!1,isEmbedV2Preview:at,onZoomIn:$,onZoomOut:mt,onZoomInitialScale:yt,onZoomSpecifiedScale:Le,onZoomSelection:He,dispatch:je}):(0,y.jsx)(te.Pd,{onlyPreview:!Se,className:J()("communityZoomBox",{isComboPreview:Je&&!Se}),scale:De,isShowZoomSelection:!1,onZoomIn:$,onZoomOut:mt,onZoomInitialScale:yt,onZoomSpecifiedScale:Le,onZoomSelection:He}),!Je&&!Se&&(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("div",{className:"divider"}),(0,y.jsx)(j,{dispatch:je,isFullScreenMode:Me,isEmbedV2:at,isCommunityPreview:ht})]})]})}}},71123:(Qn,qe,s)=>{"use strict";s.d(qe,{A:()=>Yn});var r={};s.r(r),s.d(r,{basketScrollLeft:()=>xt,basketScrollTop:()=>Gn,zoomQuickPreview:()=>o});var I=s(18381),J=s(12211),N=s(16454),T=s(95549),te=s(38502),q=s(53732),ne=s.n(q),B=s(35639),l=s(58315),U=s(15186),C=s(86769),M=s(69212),w=s(77670),y=s(72214);const j=(0,te.memo)(on=>{let{overlayEntry:yn}=on;const{activeCanvasKey:lo,activePageKey:qn}=(0,M.f)(),{idx:Wn,tick:Nn,isOverlayIn:xn,transition:Ye,targetRBPageKey:wn,targetOverlayKey:Hn,overlayRelativePosX:zn,overlayRelativePosY:ko,addBackdrop:On,backdropColor:Mo,backdropFilterBlurRadius:jn,closeWhenClickingOutside:xo}=yn,jo=(0,te.useRef)(null),Qo=(0,te.useRef)(null),cn=(0,I.wA)(),In=(0,te.useRef)();In.current=Ye.callback;const tn=Ye.name==="auto",Jt=sdkStore.getHotItem(Hn);if(!Jt)return null;const Ln=C.A.getOverlayRunnerViewport(qn,lo);if(!Ln)return null;const Xn=()=>{xo&&cn({type:"entry:runner:close:overlay"})};return(0,y.jsxs)(w.Tt,{id:Hn+Wn,className:"overlay-runner",zIndex:Wn,transitionDuration:Ye.duration,destXY:{x:zn,y:ko},overlayWH:{w:Jt.hotAttr.w,h:Jt.hotAttr.h},overlayRunnerViewportBR:{r:Ln.right,b:Ln.bottom},addBackdrop:On,backdropColor:(0,U.t0)(Mo),backdropFilterBlurRadius:jn,children:[(0,y.jsx)(l.A,{in:xn,appear:!0,timeout:Ye.duration,nodeRef:jo,className:Ye.name+" overlay",onEntered:Ye.callback,children:(0,y.jsx)("div",{ref:jo,children:(0,y.jsx)(B.A,{pageKey:wn,canvasKey:Hn,transition:Ye,isShow:!0,style:{},isActive:!0,onTransitionEnd:tn?Ye.callback:void 0})})},Nn),(0,y.jsx)(l.A,{in:xn,appear:!0,nodeRef:Qo,timeout:Ye.duration,className:"fade overlay-backdrop",children:(0,y.jsx)("div",{ref:Qo,onClick:Xn})})]})}),Q=()=>{const yn=(0,I.d4)(N.mf).overlayStack;return yn.length===0?null:(0,y.jsx)(w.wJ,{children:yn.map(lo=>(0,y.jsx)(j,{overlayEntry:lo},lo.idx))})};var ze=s(62280),me=s(20089),Se=s(98915);const Me=(on,yn)=>{const lo=on.children.filter(Wn=>{if(Wn.widget.fixPosTo!=="none")return!1;const Nn=Widget.USE_CLIP_TEXT.includes(Wn.widget.type)?calcRichTextedLocalBound(Wn.key,Wn.widgetStore.sdkStore):Wn.widget.type==="wWrap"?calcRichTextedWrapLocalBound(Wn.key,Wn.widgetStore.sdkStore):Wn.widgetStore.sdkStore.getLocalBound(Wn.key);return fromWBoundToAABB(Nn)[1]<yn}),qn=on.dup();return qn.children=lo,qn},De=(on,yn,lo)=>{const qn=on.children.filter(Nn=>{if(Nn.widget.fixPosTo!=="none")return!1;const xn=Widget.USE_CLIP_TEXT.includes(Nn.widget.type)?calcRichTextedLocalBound(Nn.key,Nn.widgetStore.sdkStore):Nn.widget.type==="wWrap"?calcRichTextedWrapLocalBound(Nn.key,Nn.widgetStore.sdkStore):Nn.widgetStore.sdkStore.getLocalBound(Nn.key),Ye=fromWBoundToAABB(xn);return yn<Ye[3]+lo}),Wn=on.dup();return Wn.children=qn,Wn},tt=(on,yn)=>{if(!on||!yn||!sdkStore.isActiveKey(yn))return{};const lo=sdkStore.getHotItem(yn),{hotAttr:{stickyHeaderHeight:qn,stickyFooterHeight:Wn,h:Nn}}=lo,xn=fromWBoundToAABB(on),Ye=qn>0&&xn[1]<qn,wn=Wn>0&&Nn<xn[3]+Wn;return{isFixedOnHeader:Ye,isFixedOnFooter:wn}},at=(on,yn)=>!on||!yn||!sdkStore.isActiveKey(on)||!sdkStore.isActiveKey(yn)?{}:tt(sdkStore.getRelocateLocalBound(on,yn),yn),ht=["leftmenu","rightmenu","leftdrawer","rightdrawer"],Je=(on,yn)=>on==="none"?yn<1?["","none"]:["none",""]:yn<1?["",""]:[ht.includes(on)?"":"none",""],$=["leftout","rightout","topout","popout","slideleft2-reverse","slideright2-reverse","topin-reverse","popin-reverse","leftmenu","rightmenu","leftdrawer-reverse","rightdrawer-reverse"],mt=on=>$.includes(on)?[3,2]:[2,3],yt={boxShadow:"0 0 8px #aaa",borderLeft:"1px solid #bbb"},Le={boxShadow:"0 0 8px #aaa",borderRight:"1px solid #bbb"},He={boxShadow:"0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22), 0 0 10px 1000px rgba(0, 0, 0, 0.2)"},ye=(on,yn)=>{switch(on){case"leftmenu":return[yt,null];case"leftmenu-reverse":return yn<1?[null,yt]:[null,null];case"rightmenu":return[Le,null];case"rightmenu-reverse":return yn<1?[null,Le]:[null,null];case"leftdrawer":case"rightdrawer":return[null,He];case"leftdrawer-reverse":case"rightdrawer-reverse":return yn<1?[He,null]:[null,null];default:return[null,null]}},je=(on,yn,lo)=>{const qn=yn*lo;switch(on){case"none":return["none","none"];case"leftmenu":return["translateX("+(0+qn)+"%)","translateX("+(-100+qn)+"%)"];case"leftmenu-reverse":return["translateX("+(-100+lo-qn)+"%)","translateX("+(0+lo-qn)+"%)"];case"rightmenu":return["translateX("+(0-qn)+"%)","translateX("+(100-qn)+"%)"];case"rightmenu-reverse":return["translateX("+(100-lo+qn)+"%)","translateX("+(0-lo+qn)+"%)"];case"leftdrawer":return["none","translateX("+(-100+qn)+"%)"];case"leftdrawer-reverse":return["translateX("+(-100+lo-qn)+"%)","none"];case"rightdrawer":return["none","translateX("+(100-qn)+"%)"];case"rightdrawer-reverse":return["translateX("+(100-lo+qn)+"%)","none"];case"slideright":return["translateX("+qn+"%)","translateX("+(-100+qn)+"%)"];case"slideleft":return["translateX("+(0-qn)+"%)","translateX("+(100-qn)+"%)"];case"slidetop":return["translateY("+qn+"%)","translateY("+(-100+qn)+"%)"];case"slidebottom":return["translateY("+(0-qn)+"%)","translateY("+(100-qn)+"%)"];case"slideleft2":return["none","translateX("+(-100+qn)+"%)"];case"slideright2":return["none","translateX("+(100-qn)+"%)"];case"topin":return["none","translateY("+(-100+qn)+"%)"];case"popin":return["none","translateY("+(100-qn)+"%)"];case"leftout":return["translateX("+(0-qn)+"%)","none"];case"rightout":return["translateX("+qn+"%)","none"];case"topout":return["translateY("+(0-qn)+"%)","none"];case"popout":return["translateY("+qn+"%)","none"];default:return console.error("\u53D1\u73B0\u672A\u77E5\u52A8\u753B\u540D\u79F0: "+on),["none","none"]}},ot=function(on,yn,lo){if(lo===void 0&&(lo=100),on==="auto"||on==="none")return[{display:"none"},{display:""}];const[qn,Wn]=Je(on,yn),[Nn,xn]=mt(on),[Ye,wn]=ye(on,yn),[Hn,zn]=je(on,yn,lo);return[{display:qn,...Ye,zIndex:Nn,transform:Hn},{display:Wn,...wn,zIndex:xn,transform:zn}]},we=on=>{switch(on){case"none":return"none";case"auto":return"auto";case"leftmenu":return"leftmenu-reverse";case"rightmenu":return"rightmenu-reverse";case"leftdrawer":return"leftdrawer-reverse";case"rightdrawer":return"rightdrawer-reverse";case"slideright":return"slideleft";case"slideleft":return"slideright";case"slidetop":return"slidebottom";case"slidebottom":return"slidetop";case"slideleft2":return"leftout";case"slideright2":return"rightout";case"topin":return"topout";case"popin":return"popout";case"leftout":return"slideleft2";case"rightout":return"slideright2";case"topout":return"topin";case"popout":return"popin"}},$e=on=>on<.5?4*on*on*on:(on-1)*(2*on-2)*(2*on-2)+1,Ze=()=>{const{sdkStore:on,activeCanvasKey:yn,transition:lo,activePageKey:qn}=(0,M.f)(),[Wn,Nn]=(0,te.useState)(yn),[xn,Ye]=(0,te.useState)(""),{name:wn,duration:Hn,offset:zn,callback:ko}=lo||{},On=wn==="none"||Hn<=0,[Mo,jn]=(0,te.useState)(On?1:0),xo=(0,te.useRef)(),jo=In=>{var tn;if((tn=xo.current)==null||tn.call(xo),In<=0){jn(1);return}let Jt;const Ln=Date.now();jn(0);const Xn=()=>{let Dn=(Date.now()-Ln)/In;isNaN(Dn)&&(Dn=1/0);const go=$e(Dn),Uo=Math.min(go,1);jn(Uo),Uo<1&&(Jt=requestAnimationFrame(Xn))};return Jt=requestAnimationFrame(Xn),()=>{cancelAnimationFrame(Jt)}};Wn!==yn&&(Ye(Wn),Nn(yn),yn&&(xo.current=jo(On?0:Hn))),(0,te.useEffect)(()=>{Mo>=1&&yn&&(wn&&/(menu|drawer)-reverse/.test(wn)&&(MB.runnerController.setCurrentCanvasAsMenuOrDrawerKey(""),MB.runnerController.setCurrentCanvasKey("")),MB.runnerController.doneTransition(qn,yn),ko==null||ko())},[Mo,yn]),(0,te.useEffect)(()=>(yn&&MB.runnerController.doneTransition(qn,yn),()=>{var In;(In=xo.current)==null||In.call(xo)}),[]);const[Qo,cn]=(0,te.useMemo)(()=>ot(wn,Mo,zn),[wn,Mo,zn]);return!on||!Wn||!sdkStore.isActiveKey(Wn)?null:(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(Q,{}),xn&&(Qo==null?void 0:Qo.display)!=="none"&&(0,y.jsx)(B.A,{pageKey:qn,canvasKey:xn,transition:lo,isShow:!0,style:Qo,isActive:!1}),Wn&&(cn==null?void 0:cn.display)!=="none"&&(0,y.jsx)(B.A,{pageKey:qn,canvasKey:Wn,transition:lo,isShow:!0,style:cn,isActive:!0})]})};var W=s(70043),an=s(67787);const _t=an.Ay.div.withConfig({displayName:"styles__StyledNonCanvas",componentId:"sc-zu9fdm-0"})(["z-index:1;display:flex;position:absolute;flex-direction:column;width:100%;height:100%;.screen-content{position:relative;flex:1;overflow:hidden;.widgets{width:100%;height:100%;position:relative;overflow:hidden;.scontainer{position:absolute;overflow:hidden;width:100%;height:100%;.non-canvas-wrapper{position:absolute;top:","px;left:","px;width:0px;height:0px;z-index:1;pointer-events:auto;}}}}"],on=>-on.top,on=>-on.left),Oe=()=>{const{sdkStore:on,activePageKey:yn,transition:lo}=(0,M.f)(),[qn,Wn]=(0,te.useState)(on.getSnapshotItem(yn)),Nn=(0,te.useRef)(yn),xn=(0,te.useRef)(null),Ye=()=>{const{delay:ko,duration:On}=lo;setTimeout(()=>xn.current&&MB.runnerController.initMouseEventHandler(xn.current),ko+On+100)};if(Nn.current!==yn&&(Nn.current=yn,Ye()),(0,te.useEffect)(()=>{var ko;Ye();const On=()=>{MB.webpackInterface.store.dispatch({type:"entry:preview:zoom-quick-preview"}),Ye()},Mo=jo=>{const{changedKeyList:Qo,changedKeySet:cn}=jo;if(!(cn!=null&&cn.size))return;if(Qo.some(Ln=>{var Xn;return((Xn=sdkStore.getHotItem(Ln))==null||(Xn=Xn.hotAttr)==null?void 0:Xn.type)===me.x.WMindNode})){setTimeout(On);return}let In=!1;const tn=Qo.filter(Ln=>{const[Xn,Dn]=on.getSnapshotDiffedHotItem(Ln);if(!Dn)return!1;const go=on.locUpRBPageKey(Ln),Uo=yn===go;return!Uo&&Xn&&(In=!0),Uo});if(!(tn!=null&&tn.length)&&!In)return;let Jt;tn.forEach(Ln=>{const[Xn,Dn]=on.getSnapshotDiffedHotItem(Ln);Xn!==Dn&&(Jt=!0)}),Jt&&On()},jn=on.addSdkStoreChangeListener(Mo),xo=on.externalSubscribe(jo=>{jo!=null&&jo.includes(yn)&&Wn(on.getSnapshotItem(yn))});return(ko=lo.callback)==null||ko.call(lo),MB.runnerController.execTimerEventCallbackSet(),()=>{jn(),xo()}},[]),!qn)return null;const Hn=on.getRenderableSubHotItems(qn).filter(ko=>![me.x.WSticky,me.x.WTear,me.x.Canvas].includes(ko.hotAttr.type)),zn=sdkStore.getHotKeyListAABB(Hn.map(ko=>ko.key));return(0,y.jsx)(_t,{className:"pnoncanvas",top:zn[1],left:zn[0],ref:xn,children:(0,y.jsx)("div",{className:"screen-content",children:(0,y.jsx)("div",{className:"widgets",children:(0,y.jsx)("div",{className:"scontainer",children:(0,y.jsx)("div",{className:"non-canvas-wrapper",children:Hn.map(ko=>(0,y.jsx)(W.A,{hotItem:ko,mode:"preview"},ko.key))})})})})})},It=()=>{const{sdkStore:on,activeWidgetKey:yn}=(0,M.f)(),lo=on.getHotItem(yn),qn=(0,te.useMemo)(()=>lo&&{...lo,hotAttr:{...lo.hotAttr,r:0,fixPosTo:"none"}},[lo]);if((0,te.useRef)(lo).current!==lo&&MB.webpackInterface.store.dispatch({type:"entry:preview:zoom-quick-preview"}),!qn)return null;const{x:Nn,y:xn,w:Ye,h:wn}=on.getCCSBound2308(yn);return(0,y.jsx)(_t,{className:"pnoncanvas",top:xn-wn/2,left:Nn-Ye/2,children:(0,y.jsx)("div",{className:"screen-content",children:(0,y.jsx)("div",{className:"widgets",children:(0,y.jsx)("div",{className:"scontainer",children:(0,y.jsx)("div",{className:"non-canvas-wrapper",children:(0,y.jsx)(W.A,{hotItem:qn,mode:"preview"})})})})})})};var Pt=s(62530),dt=s(74222),Vn=s(72064);const o=()=>{MB.webpackInterface.store.dispatch({type:"entry:preview:zoom-quick-preview"})},Gn=(on,yn)=>{MB.webpackInterface.store.dispatch({type:"runner:update:basket:scroll-top",payload:{basketKey:on,scrollTop:yn}})},xt=(on,yn)=>{MB.webpackInterface.store.dispatch({type:"runner:update:basket:scroll-left",payload:{basketKey:on,scrollLeft:yn}})};var Ot=s(52183);const wt=(0,J.Mz)([N.KR,N.Mo,N.ub,N.hM,N.mf,N.wS],(on,yn,lo,qn,Wn,Nn)=>{const{basketCanvasMap:xn,activePageKey:Ye,activeCanvasKey:wn,activeWidgetKey:Hn,transition:zn,runnerCacheTag:ko}=Wn;let On;return Nn===Pt.L.canvas?On=on?yn:dt.$k:Nn===Pt.L.nonCanvas?On=Ye:Nn===Pt.L.code&&(On=Hn),{isPanelPreviewMode:on,panelPreviewBasketKey:yn,isEditingCombo:lo||qn,basketCanvasMap:xn,activePageKey:Ye,activeCanvasKey:wn,activeWidgetKey:Hn,transition:zn,runnerCacheTag:ko,runnerMode:Nn,rootKey:On}}),fe=()=>{const{runnerMode:on,rootKey:yn,runnerCacheTag:lo,isPanelPreviewMode:qn,panelPreviewBasketKey:Wn,isEditingCombo:Nn,basketCanvasMap:xn,activePageKey:Ye,activeCanvasKey:wn,activeWidgetKey:Hn,transition:zn}=(0,I.d4)(wt),ko=(0,te.useRef)(null),On=(0,te.useMemo)(()=>{if(ko.current&&(ko.current.destory(),ko.current=null),!yn)return;const jn=new Vn.Ay(sdkStore,yn);return ko.current=jn,jn},[yn]),Mo=(0,te.useMemo)(()=>({sdkStore:On,actions:r,runnerCacheTag:lo,isPanelPreviewMode:qn,panelPreviewBasketKey:Wn,isEditingCombo:Nn,basketCanvasMap:xn,activePageKey:Ye,activeCanvasKey:wn,activeWidgetKey:Hn,transition:zn}),[On,qn,Wn,Nn,xn,Ye,wn,Hn,zn]);return(0,te.useEffect)(()=>(MB.runnerController.didInit()||MB.webpackInterface.store.dispatch({type:"reducer:preview-toolbar:update",payload:{isShowSplash:!0}}),()=>{var jn;(jn=ko.current)==null||jn.destory()}),[]),(0,Ot.A)(ko),On?(0,y.jsx)(M.i.Provider,{value:Mo,children:on===Pt.L.canvas?(0,y.jsx)(Ze,{},yn+lo):on===Pt.L.nonCanvas?(0,y.jsx)(Oe,{},yn+lo):on===Pt.L.code?(0,y.jsx)(It,{},yn+lo):null}):null};var bt=s(15207);const un=an.Ay.div.withConfig({displayName:"style__StyledAppSplash",componentId:"sc-5h7nzf-0"})(["position:absolute;width:100%;height:100%;background:#f5f5f5;overflow:hidden;margin-bottom:500px;top:0;z-index:2;img{position:absolute;width:100%;height:100%;}.loading{display:flex;align-items:center;justify-content:center;position:absolute;top:calc(50% - 15px);width:100%;height:30px;.splash-loading{width:30px;height:30px;}&.common-loading{top:calc(50% - 25px);height:50px;.splash-loading{width:50px;height:50px;}}}&.landscape{img{transform:rotate(90deg);transform-origin:bottom left;}}"]);class gt extends te.PureComponent{render(){const{homeScreen:yn,url:lo,isPanelPreviewMode:qn,isQuickPreview:Wn,isPreviewCombo:Nn}=this.props,xn=qn||Wn||Nn,Ye=0,wn=0;let Hn;return yn.width!==Ye?Hn={top:0-Ye,width:wn,height:Ye}:Hn={top:0,width:Ye,height:"101%"},(0,y.jsxs)(un,{className:ne()("splash",yn.orientation),style:{backgroundColor:yn.bgcolor},children:[lo&&!xn&&(0,y.jsx)("img",{src:lo,style:Hn}),(0,y.jsx)("div",{className:ne()("loading",{"common-loading":xn}),children:xn?(0,y.jsx)(bt.f,{className:"splash-loading"}):(0,y.jsx)(bt.T,{className:"splash-loading"})})]})}}var Wt=s(509),Un=s(78795),Jn=s(97605),Yt=s(42715),rt=s(32267),An=s(33236),Nt=s(97644),jt=s(88856),vn=s(63763),Dt=s(16958);const $t=(0,an.AH)([".iScrollVerticalScrollbar{width:6px !important;}.iScrollHorizontalScrollbar{height:6px !important;}.iScrollIndicator{background-color:#d2d2d8 !important;border-radius:4px !important;border:none !important;&:hover{background-color:"," !important;}}"],on=>on.theme.color_background_split_hover),kn=an.Ay.div.withConfig({displayName:"style__StyledSimulator",componentId:"sc-239cgm-0"})(["transform-origin:top left;background-size:100% 100%;position:relative;z-index:4;width:100%;height:100%;overflow:hidden;"," &.is-modal-preview{overflow:unset;}&.ios,&.android{cursor:url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAMAAAAp4XiDAAABblBMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFBQX////////////////////////////////////////////////////////////////////////////+/v7///8CAgL///////////8AAAAAAAD///////////////////////////8AAAADAwP///////////8AAAD///////////8BAQH///8AAAD////t7e3///8DAwNDQ0MkJCQXFxcgICDl5eX8/Pz8/Pz19fW4uLj///+0tLSurq7////AwMChoaFZWVlAQECqqqqfn591dXVqampOTk4vLy/q6urx8fHr6+vg4ODa2trz8/POzs7CwsLKysr19fXg4OC7u7v////k5OT09PT///////+ysrL////39/fn5+eWlpbT09PLy8u5ubmamprS0tKzs7Obm5stLS1WVlbJycnX19dISEiZmZnPz8/R0dGZmZlISEjBwcG/v7/YpJ28AAAAenRSTlMAAwYLEg4XCS8tNzJEST81KiglIyBCR049OhgbTB0WVBMUGhBYVg4eC1EmIwlcBykcY14sOyBSBVovNzEtNZ6MhXx4dHRualxMPz0SYkdGMjCqo6Ccl5KMiYaFhXx7eXhvbWdgX19eU0pGOjIvLBwaFxMTBXBvZDwdHMsX0GIAAAKhSURBVEjHpZYHk5pAFICTCHheNP1OjSEGYnIRgmjQE3vv9XrvvbfUf59d6nkI7sx9w4yF/ea9XZb39skwnuoY7pkMf6aBYEnj7TYbLmGz2eySZimA8TiGUYQERWFAkyQrAcMImmQZXhB4hiVJGlgg1HBHFiia5LvlpYXszEx2Yanc5WM0ASTZMRogJTr2Z31+NpffKG1vlzbyudn59SZLEpgcyGhgBJkqzuVK1YhGtZSbK2ZiNIZLjtFg29l8NfJjgEg1n/3N0BR0jAZTXNzZ4zhR5EROQ+T2dhaLAvnQkYz+8mpEDAxBjKyupKADUtMNO04wKwXuiwlcYVkgMbhuelo4xZa3RL8p4laZp6FzLy3ysBCYhgSngyrgq/Y7UDhkCZiaEgSklVoLuC0JrGWk1LQgscq++4Ml7v0Ko4WBQZKbQdcI3JtNKYw6k4rfNTkCl78CZqMqFPPT5RyJ65dAYyAzqOBE48A5MRLnQUPKDE4Fo9uTLxCYbMdgZvJ67To9UU8UXB4z4P2JXUZVKLbm8UKi3ii4vGZ4ajyN22WFqUXHEYjWwPwVhT8af4nA+FFCV46fI3GsK8zJGBInemJsfcyBwFhdmz4WqzteIeCog0VWH2XH8RoBRwc+SmXDJM/eIHCmbGV5/qdvETjVtiXc/J13CHTh5tdesdR5eCoMrikD4E8I+DjX3mR5zRo+C8K+cNjna9x7kWGY9MX7EVzoQZTZJP9+tORfUy1KeulLXn+y4Dqplz69wPZuPpty01MK7GAZ53utrya0koJcxg3Not/6NpRW39AsVIdNXYW+GwhdZbSWZHRIIX0bDw0Qv00l1MZn0l4T6Uv7XVzhzn6ZTmjt1aKJJ9JgFI5TJJtOGJs4+lHhsQcS9GPP4w9X6Ee4/9WZxSosYtQDAAAAAElFTkSuQmCC') 25 25,default;&:active{cursor:url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAMAAAAp4XiDAAAA51BMVEUAAADu7u7t7e3s7Ozl5eXr6+vq6uro6OgAAAAAAADt7e3s7Ozq6uro6Ojs7Ozp6enm5ubk5OTv7+/n5+fv7+/v7+/q6uri4uLh4eHs7Ozp6enw8PDf39/v7+/h4eHx8fHw8PDi4uLd3d3v7+/o6Ojw8PDm5ubr6+soKCi/v7/l5eXx8fHw8PDa2trx8fHAwMCZmZlmZmbHx8e5ubnh4eHOzs66urro6Ojc3NzAwMDc3NzZ2dnm5ubk5OTW1tbS0tLLy8vQ0NC0tLSvr6+MjIyCgoLf39/i4uLs7Ozh4eHW1tbPz8/q6uojhl1DAAAATXRSTlMAgHlyVG1qWwcCfHRoYG9hV1GGXYOMZktJd2STRIhGlpBNQY5YmVJ/DGJNmoiGjmYoFHBbjHNgk4J4m5GMf316eXhKSB8cdp6Xko6GhVNXB78AAAI1SURBVEjH3ZZrd6IwEIa3oJKoKHZbVIpaVmRBF1FAvF/qrdf//3t2kGVDBJXPfTKZzHvkPTkcJMOP7w7GCOk6QhinvB4NnNHKfH83VyNngPBtw8EwF6zEaYqicRK7MI0Dvm4YGi6r1mT51wlZrqmsawyvmNDWZbUmXE+Qm1rJ3aKLDmOpVuUYNXVpXPDo04LWTKJWKWz0xD022UotgSrMSnaKEhxWtlINUKoxKkcr5sHbpaB0u0pXAbpBRLWw3OIzy3DCaRUaWnPm8GwTS8qEaBBhpWmQAiSL3mY/4TJCBiJEEE7an/80N9nTm4iqKqgCAAsARaiDCUmktkFrnrsJv0YRy+DI/6TgSfZToI4D4sBGkefLfEBYxLVoYGKxi+WyVP6PBCMIyS9DRJtY0KgoiREkUZIgwxLUgP97cYSI5SVXjCDCSCL3Qiz6KpeKlU4s62wq1sSCRmypBHEiVhEdvRebTYVNLNiuF1JQtzGxOHWmDsEw/upXydrBkT/MhGGYPHOd/GRAHPBg8imAx0LA3t3d7zAgwfDTmfYw9YqZdzcx9/SL7Hw9+Nw/EM70F9w8xdC8j9MIkw8cFzR45zYaf4LwEyy0dnc4dvR5i8crLJyk43L62O63n2Ge6Pfb4QDGNko+xsfPNE/+9PN4ql9qFuOnRMbe5Qazm7+1YrzNd+hq45u1er1Op9fqQG71Oq3ODBrfjfZqfbyCpQcWiNcP64DTNHFv8zmfzeafG4808fSfCt+cvwzTdVIzvwMmAAAAAElFTkSuQmCC') 25 25,default;}}.panel .tree-node{pointer-events:auto;}.invisible{*{visibility:hidden !important;animation-play-state:paused !important;}}.wBasket.tree-node{transform:translateX(0);}.panel{.panel-scroll-box{position:relative;width:100%;height:100%;overflow:hidden;}&.panelShow{overflow:visible;.panel-scroll-box{overflow:visible !important;.pstate{overflow:visible !important;}}}&.panelHidden{overflow:hidden;.panel-scroll-box{overflow:hidden;width:100% !important;height:100% !important;.pstate{overflow:hidden;}}}&.panelScrollX{overflow:hidden;.panel-scroll-box{overflow:hidden;height:100% !important;.pstate{overflow:hidden;}}}&.panelScrollY{overflow:hidden;.panel-scroll-box{overflow:hidden;width:100% !important;.pstate{overflow:hidden;}}}}.lr{background:transparent;opacity:1;border:none;}.clickable > .region{position:absolute;top:0;left:0;width:100%;height:100%;background-color:",";z-index:",";display:none;background-repeat:no-repeat;background-position:50%;border:1px solid ","}.pg{display:none;left:50%;margin-left:-20px;z-index:110;justify-content:center;align-items:center;&.stap{top:10px;}&.sleft{top:60px;}&.sright{top:120px;}&.sup{top:180px;}&.sdown{top:240px;}&.sshake{top:300px;}&.sdtap{top:300px;}}#app{width:100%;height:100%;position:absolute;background-size:100% auto;z-index:1;transform:translate(0,0);overflow:hidden;.pstate{position:absolute;overflow:hidden;width:100%;height:100%;z-index:1;}.pcanvas{display:flex;flex-direction:column;.screen-header,.screen-footer{position:relative;overflow:hidden;}.screen-footer{.footer-widgets{position:absolute;top:0;left:0;width:100%;height:100%;}}.screen-content{position:relative;flex:1;overflow:hidden;.iScrollVerticalScrollbar,.iScrollHorizontalScrollbar{z-index:2147483647 !important;}}}.pnoncanvas,.pcanvas,.pstate{z-index:1;width:100%;height:100%;position:absolute;left:0;top:0;background-color:transparent;background-repeat:repeat;background-position:top left;background-size:100% auto;overflow:hidden;&.as-overlay{overflow:visible;> .screen-content{overflow:visible;.widgets{overflow:visible;.scontainer{overflow:visible;}}}}.widgets{width:100%;height:100%;position:relative;overflow:hidden;.scontainer{position:absolute;overflow:hidden;width:100%;height:100%;}}&.mouseIn,&.mouseOut{pointer-events:auto;}}.panel-preview-mode-scroll-container{width:100%;height:100%;&.overFlowHide{overflow:hidden;}&.overFlowAuto{overflow:auto;overflow:overlay;}&.overFlowX{overflow-x:auto;overflow-x:overlay;overflow-y:hidden;}&.overFlowY{overflow-y:auto;overflow-y:overlay;overflow-x:hidden;}}}&.is-outside-visible{#app{overflow:visible;.pcanvas{overflow:visible;.screen-header,.screen-footer{overflow:visible;}.screen-content{overflow:visible;.widgets{overflow:visible;.scontainer{overflow:visible;}}}}}}&.is-mobile{#app{overflow:visible;.pcanvas{overflow:visible;}}.panel{overflow:auto;&.panelShow{overflow:visible;}&.overFlowHide{overflow:hidden;}}.wMapView{.image{overflow:auto;}}}&.simulator-hide-shell{border-radius:0px;}&.is-panel-preview{#app{.pcanvas{.screen-content{","}}.panel-preview-mode-scroll-container{","}}&.overFlowX{#app{.pcanvas{.screen-content{.iScrollVerticalScrollbar{opacity:0;}}}.panel-preview-mode-scroll-container{.iScrollVerticalScrollbar{opacity:0;}}}}&.overFlowY{#app{.pcanvas{.screen-content{.iScrollHorizontalScrollbar{opacity:0;}}}.panel-preview-mode-scroll-container{.iScrollHorizontalScrollbar{opacity:0;}}}}}"],Dt.Jj,on=>on.theme.color_hotspot,vn.Mh,on=>on.theme.color_comments,$t,$t);var Kn=s(45796),dn=s(68033);class ft extends te.PureComponent{constructor(yn){super(yn),(0,T.A)(this,"setRef",lo=>this.ref=lo),this.state={homeScreen:yn.screen,windowSize:{width:window.innerWidth,height:window.innerHeight}}}componentDidMount(){const{previewOptions:yn,isImmersive:lo}=this.props,{isMobile:qn}=yn;if(qn){const Wn=()=>{setTimeout(()=>{this.forceUpdate()},100)},Nn="onorientationchange"in window?"orientationchange":"resize";window.addEventListener(Nn,Wn,!1),this.resizeObserver=new ResizeObserver(xn=>{const{windowSize:Ye}=this.state;for(const wn of xn)if(wn.contentRect){const{width:Hn,height:zn}=wn.contentRect;(Ye.width!==Hn||Ye.height!==zn)&&this.setState({windowSize:{width:Hn,height:zn}})}}),this.resizeObserver.observe(document.body)}MB.runnerController.initEventHandler(this.ref,{isImmersive:lo,isMobile:qn})}componentWillUnmount(){var yn;(yn=this.resizeObserver)==null||yn.disconnect(),this.resizeObserver=void 0}render(){const{activePageKey:yn,activeCanvasKey:lo,project:qn,screen:Wn,isShowSplash:Nn,isPanelPreviewMode:xn,previewOptions:Ye,isShellShow:wn,isPreviewCombo:Hn,panelPreviewBasketKey:zn,isQuickPreview:ko}=this.props,{homeScreen:On={},windowSize:Mo}=this.state,{isMobile:jn}=Ye,{splash:xo=""}=qn||{},{deviceOrientation:jo,device:Qo}=Wn||{},cn=(0,Jn.gE)({orientation:jo},Qo),In=yn&&lo?(0,rt.T)({activePageKey:yn,activeCanvasKey:lo,previewOptions:Ye,windowSize:Mo}):{},tn=wn?(0,Yt.uQ)(Qo):{},Jt="";let Ln;if(xn&&zn){var Xn;const Dn=(Xn=sdkStore.getHotItem(zn))==null?void 0:Xn.hotAttr;Dn&&(Ln=Dn.scroll?dn.M5[Dn.scroll]:"overflowHide")}return(0,y.jsxs)(y.Fragment,{children:[(0,y.jsxs)(kn,{id:"simulator",className:ne()({"is-mobile":jn,"simulator-hide-shell":jn||!wn,"is-modal-preview":Hn||xn},cn,Jt),style:In,children:[(0,y.jsx)("div",{id:"event-container",ref:this.setRef,children:(0,y.jsx)("div",{id:"app",style:tn,children:xn?(0,y.jsx)("div",{className:ne()("panel-preview-mode-scroll-container",Ln),children:(0,y.jsx)(fe,{})}):(0,y.jsx)(fe,{})})}),Nn&&!jn&&(0,y.jsx)(gt,{homeScreen:On,url:xo,isPanelPreviewMode:xn,isQuickPreview:ko,isPreviewCombo:Hn}),(0,y.jsx)(Nt.l,{}),(0,y.jsx)(Kn.Sn,{}),jn&&(0,y.jsx)(An.l,{})]}),jn&&(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(Un.A,{}),(0,y.jsx)(Wt.A,{}),(0,y.jsx)(jt.Ay,{})]})]})}}const Lt=on=>on.container.previewSetting.isShowSplash,bn=(0,J.Mz)([N.Ur,N.PL,N.Kv,Lt,N.bF,N.KR,N.mf,N.hM,N.Mo,N.k6],(on,yn,lo,qn,Wn,Nn,xn,Ye,wn,Hn)=>{let{activePageKey:zn,activeCanvasKey:ko}=xn;return{screen:on,project:yn,isImmersive:lo,isShowSplash:qn,previewOptions:Wn,isPanelPreviewMode:Nn,activePageKey:zn,activeCanvasKey:ko,isPreviewCombo:Ye,panelPreviewBasketKey:wn,isQuickPreview:Hn}}),Yn=(0,I.Ng)(on=>bn(on))(ft)},71217:(Qn,qe,s)=>{"use strict";s.d(qe,{Bf:()=>r,S$:()=>I,hF:()=>J,j1:()=>N});function r(T){if(!T)return"";try{if(!T.startsWith("data:image/svg+xml;base64,"))throw new Error("\u8F93\u5165\u7684 BASE64 \u6570\u636E\u4E0D\u662F SVG \u7C7B\u578B");const te=T.split(",")[1],q=atob(te),ne=new Uint8Array(q.length);for(let U=0;U<q.length;U++)ne[U]=q.charCodeAt(U);return new TextDecoder("utf-8").decode(ne)}catch(te){return console.error("BASE64 \u5230 SVG \u8F6C\u6362\u5931\u8D25:",te),""}}const I=(T,te)=>te.width>te.height?{width:te.width,height:Math.round(te.width*(T.height/T.width))}:{height:te.height,width:Math.round(te.height*(T.width/T.height))},J={h:391,w:281},N="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiBzdHlsZT0iYmFja2dyb3VuZDogI2ZmZmZmZjsgYmFja2dyb3VuZC1jb2xvcjogbGlnaHQtZGFyaygjZmZmZmZmLCB2YXIoLS1nZS1kYXJrLWNvbG9yLCAjMTIxMjEyKSk7IGNvbG9yLXNjaGVtZTogbGlnaHQgZGFyazsiIHZlcnNpb249IjEuMSIgd2lkdGg9IjI4MXB4IiBoZWlnaHQ9IjM5MXB4IiB2aWV3Qm94PSItMC41IC0wLjUgMjgxIDM5MSIgY29udGVudD0iJmx0O214ZmlsZSBob3N0PSZxdW90O2FwcC5kaWFncmFtcy5uZXQmcXVvdDsgYWdlbnQ9JnF1b3Q7TW96aWxsYS81LjAgKFdpbmRvd3MgTlQgMTAuMDsgV2luNjQ7IHg2NCkgQXBwbGVXZWJLaXQvNTM3LjM2IChLSFRNTCwgbGlrZSBHZWNrbykgQ2hyb21lLzEzNC4wLjAuMCBTYWZhcmkvNTM3LjM2JnF1b3Q7IHZlcnNpb249JnF1b3Q7MjYuMS4zJnF1b3Q7IHNjYWxlPSZxdW90OzEmcXVvdDsgYm9yZGVyPSZxdW90OzAmcXVvdDsmZ3Q7JiMxMDsgICZsdDtkaWFncmFtIGlkPSZxdW90O0M1UkJzNDNvRGEtS2R6WmVOdHV5JnF1b3Q7IG5hbWU9JnF1b3Q7UGFnZS0xJnF1b3Q7Jmd0OyYjMTA7ICAgICZsdDtteEdyYXBoTW9kZWwgZHg9JnF1b3Q7MTQzNCZxdW90OyBkeT0mcXVvdDs3ODAmcXVvdDsgZ3JpZD0mcXVvdDsxJnF1b3Q7IGdyaWRTaXplPSZxdW90OzEwJnF1b3Q7IGd1aWRlcz0mcXVvdDsxJnF1b3Q7IHRvb2x0aXBzPSZxdW90OzEmcXVvdDsgY29ubmVjdD0mcXVvdDsxJnF1b3Q7IGFycm93cz0mcXVvdDsxJnF1b3Q7IGZvbGQ9JnF1b3Q7MSZxdW90OyBwYWdlPSZxdW90OzEmcXVvdDsgcGFnZVNjYWxlPSZxdW90OzEmcXVvdDsgcGFnZVdpZHRoPSZxdW90OzgyNyZxdW90OyBwYWdlSGVpZ2h0PSZxdW90OzExNjkmcXVvdDsgbWF0aD0mcXVvdDswJnF1b3Q7IHNoYWRvdz0mcXVvdDswJnF1b3Q7Jmd0OyYjMTA7ICAgICAgJmx0O3Jvb3QmZ3Q7JiMxMDsgICAgICAgICZsdDtteENlbGwgaWQ9JnF1b3Q7V0l5V2xMazZHSlFzcWFVQktUTlYtMCZxdW90OyAvJmd0OyYjMTA7ICAgICAgICAmbHQ7bXhDZWxsIGlkPSZxdW90O1dJeVdsTGs2R0pRc3FhVUJLVE5WLTEmcXVvdDsgcGFyZW50PSZxdW90O1dJeVdsTGs2R0pRc3FhVUJLVE5WLTAmcXVvdDsgLyZndDsmIzEwOyAgICAgICAgJmx0O214Q2VsbCBpZD0mcXVvdDtXSXlXbExrNkdKUXNxYVVCS1ROVi0yJnF1b3Q7IHZhbHVlPSZxdW90OyZxdW90OyBzdHlsZT0mcXVvdDtyb3VuZGVkPTA7aHRtbD0xO2pldHR5U2l6ZT1hdXRvO29ydGhvZ29uYWxMb29wPTE7Zm9udFNpemU9MTE7ZW5kQXJyb3c9YmxvY2s7ZW5kRmlsbD0wO2VuZFNpemU9ODtzdHJva2VXaWR0aD0xO3NoYWRvdz0wO2xhYmVsQmFja2dyb3VuZENvbG9yPW5vbmU7ZWRnZVN0eWxlPW9ydGhvZ29uYWxFZGdlU3R5bGU7JnF1b3Q7IHBhcmVudD0mcXVvdDtXSXlXbExrNkdKUXNxYVVCS1ROVi0xJnF1b3Q7IHNvdXJjZT0mcXVvdDtXSXlXbExrNkdKUXNxYVVCS1ROVi0zJnF1b3Q7IHRhcmdldD0mcXVvdDtXSXlXbExrNkdKUXNxYVVCS1ROVi02JnF1b3Q7IGVkZ2U9JnF1b3Q7MSZxdW90OyZndDsmIzEwOyAgICAgICAgICAmbHQ7bXhHZW9tZXRyeSByZWxhdGl2ZT0mcXVvdDsxJnF1b3Q7IGFzPSZxdW90O2dlb21ldHJ5JnF1b3Q7IC8mZ3Q7JiMxMDsgICAgICAgICZsdDsvbXhDZWxsJmd0OyYjMTA7ICAgICAgICAmbHQ7bXhDZWxsIGlkPSZxdW90O1dJeVdsTGs2R0pRc3FhVUJLVE5WLTMmcXVvdDsgdmFsdWU9JnF1b3Q7TGFtcCBkb2VzbiZhbXA7IzM5O3Qgd29yayZxdW90OyBzdHlsZT0mcXVvdDtyb3VuZGVkPTE7d2hpdGVTcGFjZT13cmFwO2h0bWw9MTtmb250U2l6ZT0xMjtnbGFzcz0wO3N0cm9rZVdpZHRoPTE7c2hhZG93PTA7JnF1b3Q7IHBhcmVudD0mcXVvdDtXSXlXbExrNkdKUXNxYVVCS1ROVi0xJnF1b3Q7IHZlcnRleD0mcXVvdDsxJnF1b3Q7Jmd0OyYjMTA7ICAgICAgICAgICZsdDtteEdlb21ldHJ5IHg9JnF1b3Q7MTYwJnF1b3Q7IHk9JnF1b3Q7ODAmcXVvdDsgd2lkdGg9JnF1b3Q7MTIwJnF1b3Q7IGhlaWdodD0mcXVvdDs0MCZxdW90OyBhcz0mcXVvdDtnZW9tZXRyeSZxdW90OyAvJmd0OyYjMTA7ICAgICAgICAmbHQ7L214Q2VsbCZndDsmIzEwOyAgICAgICAgJmx0O214Q2VsbCBpZD0mcXVvdDtXSXlXbExrNkdKUXNxYVVCS1ROVi00JnF1b3Q7IHZhbHVlPSZxdW90O1llcyZxdW90OyBzdHlsZT0mcXVvdDtyb3VuZGVkPTA7aHRtbD0xO2pldHR5U2l6ZT1hdXRvO29ydGhvZ29uYWxMb29wPTE7Zm9udFNpemU9MTE7ZW5kQXJyb3c9YmxvY2s7ZW5kRmlsbD0wO2VuZFNpemU9ODtzdHJva2VXaWR0aD0xO3NoYWRvdz0wO2xhYmVsQmFja2dyb3VuZENvbG9yPW5vbmU7ZWRnZVN0eWxlPW9ydGhvZ29uYWxFZGdlU3R5bGU7JnF1b3Q7IHBhcmVudD0mcXVvdDtXSXlXbExrNkdKUXNxYVVCS1ROVi0xJnF1b3Q7IHNvdXJjZT0mcXVvdDtXSXlXbExrNkdKUXNxYVVCS1ROVi02JnF1b3Q7IHRhcmdldD0mcXVvdDtXSXlXbExrNkdKUXNxYVVCS1ROVi0xMCZxdW90OyBlZGdlPSZxdW90OzEmcXVvdDsmZ3Q7JiMxMDsgICAgICAgICAgJmx0O214R2VvbWV0cnkgeT0mcXVvdDsyMCZxdW90OyByZWxhdGl2ZT0mcXVvdDsxJnF1b3Q7IGFzPSZxdW90O2dlb21ldHJ5JnF1b3Q7Jmd0OyYjMTA7ICAgICAgICAgICAgJmx0O214UG9pbnQgYXM9JnF1b3Q7b2Zmc2V0JnF1b3Q7IC8mZ3Q7JiMxMDsgICAgICAgICAgJmx0Oy9teEdlb21ldHJ5Jmd0OyYjMTA7ICAgICAgICAmbHQ7L214Q2VsbCZndDsmIzEwOyAgICAgICAgJmx0O214Q2VsbCBpZD0mcXVvdDtXSXlXbExrNkdKUXNxYVVCS1ROVi01JnF1b3Q7IHZhbHVlPSZxdW90O05vJnF1b3Q7IHN0eWxlPSZxdW90O2VkZ2VTdHlsZT1vcnRob2dvbmFsRWRnZVN0eWxlO3JvdW5kZWQ9MDtodG1sPTE7amV0dHlTaXplPWF1dG87b3J0aG9nb25hbExvb3A9MTtmb250U2l6ZT0xMTtlbmRBcnJvdz1ibG9jaztlbmRGaWxsPTA7ZW5kU2l6ZT04O3N0cm9rZVdpZHRoPTE7c2hhZG93PTA7bGFiZWxCYWNrZ3JvdW5kQ29sb3I9bm9uZTsmcXVvdDsgcGFyZW50PSZxdW90O1dJeVdsTGs2R0pRc3FhVUJLVE5WLTEmcXVvdDsgc291cmNlPSZxdW90O1dJeVdsTGs2R0pRc3FhVUJLVE5WLTYmcXVvdDsgdGFyZ2V0PSZxdW90O1dJeVdsTGs2R0pRc3FhVUJLVE5WLTcmcXVvdDsgZWRnZT0mcXVvdDsxJnF1b3Q7Jmd0OyYjMTA7ICAgICAgICAgICZsdDtteEdlb21ldHJ5IHk9JnF1b3Q7MTAmcXVvdDsgcmVsYXRpdmU9JnF1b3Q7MSZxdW90OyBhcz0mcXVvdDtnZW9tZXRyeSZxdW90OyZndDsmIzEwOyAgICAgICAgICAgICZsdDtteFBvaW50IGFzPSZxdW90O29mZnNldCZxdW90OyAvJmd0OyYjMTA7ICAgICAgICAgICZsdDsvbXhHZW9tZXRyeSZndDsmIzEwOyAgICAgICAgJmx0Oy9teENlbGwmZ3Q7JiMxMDsgICAgICAgICZsdDtteENlbGwgaWQ9JnF1b3Q7V0l5V2xMazZHSlFzcWFVQktUTlYtNiZxdW90OyB2YWx1ZT0mcXVvdDtMYW1wJmFtcDtsdDticiZhbXA7Z3Q7cGx1Z2dlZCBpbj8mcXVvdDsgc3R5bGU9JnF1b3Q7cmhvbWJ1czt3aGl0ZVNwYWNlPXdyYXA7aHRtbD0xO3NoYWRvdz0wO2ZvbnRGYW1pbHk9SGVsdmV0aWNhO2ZvbnRTaXplPTEyO2FsaWduPWNlbnRlcjtzdHJva2VXaWR0aD0xO3NwYWNpbmc9NjtzcGFjaW5nVG9wPS00OyZxdW90OyBwYXJlbnQ9JnF1b3Q7V0l5V2xMazZHSlFzcWFVQktUTlYtMSZxdW90OyB2ZXJ0ZXg9JnF1b3Q7MSZxdW90OyZndDsmIzEwOyAgICAgICAgICAmbHQ7bXhHZW9tZXRyeSB4PSZxdW90OzE3MCZxdW90OyB5PSZxdW90OzE3MCZxdW90OyB3aWR0aD0mcXVvdDsxMDAmcXVvdDsgaGVpZ2h0PSZxdW90OzgwJnF1b3Q7IGFzPSZxdW90O2dlb21ldHJ5JnF1b3Q7IC8mZ3Q7JiMxMDsgICAgICAgICZsdDsvbXhDZWxsJmd0OyYjMTA7ICAgICAgICAmbHQ7bXhDZWxsIGlkPSZxdW90O1dJeVdsTGs2R0pRc3FhVUJLVE5WLTcmcXVvdDsgdmFsdWU9JnF1b3Q7UGx1ZyBpbiBsYW1wJnF1b3Q7IHN0eWxlPSZxdW90O3JvdW5kZWQ9MTt3aGl0ZVNwYWNlPXdyYXA7aHRtbD0xO2ZvbnRTaXplPTEyO2dsYXNzPTA7c3Ryb2tlV2lkdGg9MTtzaGFkb3c9MDsmcXVvdDsgcGFyZW50PSZxdW90O1dJeVdsTGs2R0pRc3FhVUJLVE5WLTEmcXVvdDsgdmVydGV4PSZxdW90OzEmcXVvdDsmZ3Q7JiMxMDsgICAgICAgICAgJmx0O214R2VvbWV0cnkgeD0mcXVvdDszMjAmcXVvdDsgeT0mcXVvdDsxOTAmcXVvdDsgd2lkdGg9JnF1b3Q7MTIwJnF1b3Q7IGhlaWdodD0mcXVvdDs0MCZxdW90OyBhcz0mcXVvdDtnZW9tZXRyeSZxdW90OyAvJmd0OyYjMTA7ICAgICAgICAmbHQ7L214Q2VsbCZndDsmIzEwOyAgICAgICAgJmx0O214Q2VsbCBpZD0mcXVvdDtXSXlXbExrNkdKUXNxYVVCS1ROVi04JnF1b3Q7IHZhbHVlPSZxdW90O05vJnF1b3Q7IHN0eWxlPSZxdW90O3JvdW5kZWQ9MDtodG1sPTE7amV0dHlTaXplPWF1dG87b3J0aG9nb25hbExvb3A9MTtmb250U2l6ZT0xMTtlbmRBcnJvdz1ibG9jaztlbmRGaWxsPTA7ZW5kU2l6ZT04O3N0cm9rZVdpZHRoPTE7c2hhZG93PTA7bGFiZWxCYWNrZ3JvdW5kQ29sb3I9bm9uZTtlZGdlU3R5bGU9b3J0aG9nb25hbEVkZ2VTdHlsZTsmcXVvdDsgcGFyZW50PSZxdW90O1dJeVdsTGs2R0pRc3FhVUJLVE5WLTEmcXVvdDsgc291cmNlPSZxdW90O1dJeVdsTGs2R0pRc3FhVUJLVE5WLTEwJnF1b3Q7IHRhcmdldD0mcXVvdDtXSXlXbExrNkdKUXNxYVVCS1ROVi0xMSZxdW90OyBlZGdlPSZxdW90OzEmcXVvdDsmZ3Q7JiMxMDsgICAgICAgICAgJmx0O214R2VvbWV0cnkgeD0mcXVvdDswLjMzMzMmcXVvdDsgeT0mcXVvdDsyMCZxdW90OyByZWxhdGl2ZT0mcXVvdDsxJnF1b3Q7IGFzPSZxdW90O2dlb21ldHJ5JnF1b3Q7Jmd0OyYjMTA7ICAgICAgICAgICAgJmx0O214UG9pbnQgYXM9JnF1b3Q7b2Zmc2V0JnF1b3Q7IC8mZ3Q7JiMxMDsgICAgICAgICAgJmx0Oy9teEdlb21ldHJ5Jmd0OyYjMTA7ICAgICAgICAmbHQ7L214Q2VsbCZndDsmIzEwOyAgICAgICAgJmx0O214Q2VsbCBpZD0mcXVvdDtXSXlXbExrNkdKUXNxYVVCS1ROVi05JnF1b3Q7IHZhbHVlPSZxdW90O1llcyZxdW90OyBzdHlsZT0mcXVvdDtlZGdlU3R5bGU9b3J0aG9nb25hbEVkZ2VTdHlsZTtyb3VuZGVkPTA7aHRtbD0xO2pldHR5U2l6ZT1hdXRvO29ydGhvZ29uYWxMb29wPTE7Zm9udFNpemU9MTE7ZW5kQXJyb3c9YmxvY2s7ZW5kRmlsbD0wO2VuZFNpemU9ODtzdHJva2VXaWR0aD0xO3NoYWRvdz0wO2xhYmVsQmFja2dyb3VuZENvbG9yPW5vbmU7JnF1b3Q7IHBhcmVudD0mcXVvdDtXSXlXbExrNkdKUXNxYVVCS1ROVi0xJnF1b3Q7IHNvdXJjZT0mcXVvdDtXSXlXbExrNkdKUXNxYVVCS1ROVi0xMCZxdW90OyB0YXJnZXQ9JnF1b3Q7V0l5V2xMazZHSlFzcWFVQktUTlYtMTImcXVvdDsgZWRnZT0mcXVvdDsxJnF1b3Q7Jmd0OyYjMTA7ICAgICAgICAgICZsdDtteEdlb21ldHJ5IHk9JnF1b3Q7MTAmcXVvdDsgcmVsYXRpdmU9JnF1b3Q7MSZxdW90OyBhcz0mcXVvdDtnZW9tZXRyeSZxdW90OyZndDsmIzEwOyAgICAgICAgICAgICZsdDtteFBvaW50IGFzPSZxdW90O29mZnNldCZxdW90OyAvJmd0OyYjMTA7ICAgICAgICAgICZsdDsvbXhHZW9tZXRyeSZndDsmIzEwOyAgICAgICAgJmx0Oy9teENlbGwmZ3Q7JiMxMDsgICAgICAgICZsdDtteENlbGwgaWQ9JnF1b3Q7V0l5V2xMazZHSlFzcWFVQktUTlYtMTAmcXVvdDsgdmFsdWU9JnF1b3Q7QnVsYiZhbXA7bHQ7YnImYW1wO2d0O2J1cm5lZCBvdXQ/JnF1b3Q7IHN0eWxlPSZxdW90O3Job21idXM7d2hpdGVTcGFjZT13cmFwO2h0bWw9MTtzaGFkb3c9MDtmb250RmFtaWx5PUhlbHZldGljYTtmb250U2l6ZT0xMjthbGlnbj1jZW50ZXI7c3Ryb2tlV2lkdGg9MTtzcGFjaW5nPTY7c3BhY2luZ1RvcD0tNDsmcXVvdDsgcGFyZW50PSZxdW90O1dJeVdsTGs2R0pRc3FhVUJLVE5WLTEmcXVvdDsgdmVydGV4PSZxdW90OzEmcXVvdDsmZ3Q7JiMxMDsgICAgICAgICAgJmx0O214R2VvbWV0cnkgeD0mcXVvdDsxNzAmcXVvdDsgeT0mcXVvdDsyOTAmcXVvdDsgd2lkdGg9JnF1b3Q7MTAwJnF1b3Q7IGhlaWdodD0mcXVvdDs4MCZxdW90OyBhcz0mcXVvdDtnZW9tZXRyeSZxdW90OyAvJmd0OyYjMTA7ICAgICAgICAmbHQ7L214Q2VsbCZndDsmIzEwOyAgICAgICAgJmx0O214Q2VsbCBpZD0mcXVvdDtXSXlXbExrNkdKUXNxYVVCS1ROVi0xMSZxdW90OyB2YWx1ZT0mcXVvdDtSZXBhaXIgTGFtcCZxdW90OyBzdHlsZT0mcXVvdDtyb3VuZGVkPTE7d2hpdGVTcGFjZT13cmFwO2h0bWw9MTtmb250U2l6ZT0xMjtnbGFzcz0wO3N0cm9rZVdpZHRoPTE7c2hhZG93PTA7JnF1b3Q7IHBhcmVudD0mcXVvdDtXSXlXbExrNkdKUXNxYVVCS1ROVi0xJnF1b3Q7IHZlcnRleD0mcXVvdDsxJnF1b3Q7Jmd0OyYjMTA7ICAgICAgICAgICZsdDtteEdlb21ldHJ5IHg9JnF1b3Q7MTYwJnF1b3Q7IHk9JnF1b3Q7NDMwJnF1b3Q7IHdpZHRoPSZxdW90OzEyMCZxdW90OyBoZWlnaHQ9JnF1b3Q7NDAmcXVvdDsgYXM9JnF1b3Q7Z2VvbWV0cnkmcXVvdDsgLyZndDsmIzEwOyAgICAgICAgJmx0Oy9teENlbGwmZ3Q7JiMxMDsgICAgICAgICZsdDtteENlbGwgaWQ9JnF1b3Q7V0l5V2xMazZHSlFzcWFVQktUTlYtMTImcXVvdDsgdmFsdWU9JnF1b3Q7UmVwbGFjZSBCdWxiJnF1b3Q7IHN0eWxlPSZxdW90O3JvdW5kZWQ9MTt3aGl0ZVNwYWNlPXdyYXA7aHRtbD0xO2ZvbnRTaXplPTEyO2dsYXNzPTA7c3Ryb2tlV2lkdGg9MTtzaGFkb3c9MDsmcXVvdDsgcGFyZW50PSZxdW90O1dJeVdsTGs2R0pRc3FhVUJLVE5WLTEmcXVvdDsgdmVydGV4PSZxdW90OzEmcXVvdDsmZ3Q7JiMxMDsgICAgICAgICAgJmx0O214R2VvbWV0cnkgeD0mcXVvdDszMjAmcXVvdDsgeT0mcXVvdDszMTAmcXVvdDsgd2lkdGg9JnF1b3Q7MTIwJnF1b3Q7IGhlaWdodD0mcXVvdDs0MCZxdW90OyBhcz0mcXVvdDtnZW9tZXRyeSZxdW90OyAvJmd0OyYjMTA7ICAgICAgICAmbHQ7L214Q2VsbCZndDsmIzEwOyAgICAgICZsdDsvcm9vdCZndDsmIzEwOyAgICAmbHQ7L214R3JhcGhNb2RlbCZndDsmIzEwOyAgJmx0Oy9kaWFncmFtJmd0OyYjMTA7Jmx0Oy9teGZpbGUmZ3Q7JiMxMDsiPjxkZWZzLz48cmVjdCBmaWxsPSIjZmZmZmZmIiB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiB4PSIwIiB5PSIwIiBzdHlsZT0iZmlsbDogbGlnaHQtZGFyaygjZmZmZmZmLCB2YXIoLS1nZS1kYXJrLWNvbG9yLCAjMTIxMjEyKSk7Ii8+PGc+PGcgZGF0YS1jZWxsLWlkPSJXSXlXbExrNkdKUXNxYVVCS1ROVi0wIj48ZyBkYXRhLWNlbGwtaWQ9IldJeVdsTGs2R0pRc3FhVUJLVE5WLTEiPjxnIGRhdGEtY2VsbC1pZD0iV0l5V2xMazZHSlFzcWFVQktUTlYtMiI+PGc+PHBhdGggZD0iTSA2MCA0MCBMIDYwIDc5Ljg4IiBmaWxsPSJub25lIiBzdHJva2U9IiMwMDAwMDAiIHN0cm9rZS1taXRlcmxpbWl0PSIxMCIgcG9pbnRlci1ldmVudHM9InN0cm9rZSIgc3R5bGU9InN0cm9rZTogbGlnaHQtZGFyayhyZ2IoMCwgMCwgMCksIHJnYigyNTUsIDI1NSwgMjU1KSk7Ii8+PHBhdGggZD0iTSA2MCA4OC44OCBMIDU1LjUgNzkuODggTCA2NC41IDc5Ljg4IFoiIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzAwMDAwMCIgc3Ryb2tlLW1pdGVybGltaXQ9IjEwIiBwb2ludGVyLWV2ZW50cz0iYWxsIiBzdHlsZT0ic3Ryb2tlOiBsaWdodC1kYXJrKHJnYigwLCAwLCAwKSwgcmdiKDI1NSwgMjU1LCAyNTUpKTsiLz48L2c+PC9nPjxnIGRhdGEtY2VsbC1pZD0iV0l5V2xMazZHSlFzcWFVQktUTlYtMyI+PGc+PHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEyMCIgaGVpZ2h0PSI0MCIgcng9IjYiIHJ5PSI2IiBmaWxsPSIjZmZmZmZmIiBzdHJva2U9IiMwMDAwMDAiIHBvaW50ZXItZXZlbnRzPSJhbGwiIHN0eWxlPSJmaWxsOiBsaWdodC1kYXJrKCNmZmZmZmYsIHZhcigtLWdlLWRhcmstY29sb3IsICMxMjEyMTIpKTsgc3Ryb2tlOiBsaWdodC1kYXJrKHJnYigwLCAwLCAwKSwgcmdiKDI1NSwgMjU1LCAyNTUpKTsiLz48L2c+PGc+PGcgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTAuNSAtMC41KSI+PHN3aXRjaD48Zm9yZWlnbk9iamVjdCBzdHlsZT0ib3ZlcmZsb3c6IHZpc2libGU7IHRleHQtYWxpZ246IGxlZnQ7IiBwb2ludGVyLWV2ZW50cz0ibm9uZSIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgcmVxdWlyZWRGZWF0dXJlcz0iaHR0cDovL3d3dy53My5vcmcvVFIvU1ZHMTEvZmVhdHVyZSNFeHRlbnNpYmlsaXR5Ij48ZGl2IHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hodG1sIiBzdHlsZT0iZGlzcGxheTogZmxleDsgYWxpZ24taXRlbXM6IHVuc2FmZSBjZW50ZXI7IGp1c3RpZnktY29udGVudDogdW5zYWZlIGNlbnRlcjsgd2lkdGg6IDExOHB4OyBoZWlnaHQ6IDFweDsgcGFkZGluZy10b3A6IDIwcHg7IG1hcmdpbi1sZWZ0OiAxcHg7Ij48ZGl2IHN0eWxlPSJib3gtc2l6aW5nOiBib3JkZXItYm94OyBmb250LXNpemU6IDA7IHRleHQtYWxpZ246IGNlbnRlcjsgY29sb3I6ICMwMDAwMDA7ICI+PGRpdiBzdHlsZT0iZGlzcGxheTogaW5saW5lLWJsb2NrOyBmb250LXNpemU6IDEycHg7IGZvbnQtZmFtaWx5OiAmcXVvdDtIZWx2ZXRpY2EmcXVvdDs7IGNvbG9yOiBsaWdodC1kYXJrKCMwMDAwMDAsICNmZmZmZmYpOyBsaW5lLWhlaWdodDogMS4yOyBwb2ludGVyLWV2ZW50czogYWxsOyB3aGl0ZS1zcGFjZTogbm9ybWFsOyB3b3JkLXdyYXA6IG5vcm1hbDsgIj5MYW1wIGRvZXNuJ3Qgd29yazwvZGl2PjwvZGl2PjwvZGl2PjwvZm9yZWlnbk9iamVjdD48aW1hZ2UgeD0iMSIgeT0iMTMuNSIgd2lkdGg9IjExOCIgaGVpZ2h0PSIxNyIgeGxpbms6aHJlZj0iZGF0YTppbWFnZS9wbmc7YmFzZTY0LGlWQk9SdzBLR2dvQUFBQU5TVWhFVWdBQUFkZ0FBQUJFQ0FZQUFBQWlDaVFWQUFBQUFYTlNSMElBcnM0YzZRQUFHR3BKUkVGVWVGN3RuUVhRTmpjUng3ZTRlM0dLZTNFclZseUxRM0VyN3U3dVVJckw0TjdpWHR5ZDR1NU9jWGUzKzgyWERQbDJOcGZrNUwxSE5qT2R0cytidXlULzVQYWZsV3oyRUMrT2dDUGdDRGdDam9Bak1Ea0NlMHorUm4raEkrQUlPQUtPZ0NQZ0NJZ1RyQzhDUjhBUmNBUWNBVWRnQmdTY1lHY0ExVi9wQ0RnQ2pvQWo0QWc0d2ZvYWNBUWNBVWZBRVhBRVprREFDWFlHVVAyVmpvQWo0QWc0QW82QUU2eXZBVWZBRVhBRUhBRkhZQVlFbkdCbkFOVmY2UWc0QW82QUkrQUlPTUg2R25BRUhBRkh3QkZ3QkdaQVlKVUo5bndpOGlFUk9VWXk3cXVKeUtFejRPQ3YzQTRFOUpyNm9ZanNJeUkvM1k3aGI4d29yeW9pYjFhanVaK0lITGd4STl5T2daeE1SQTRUa2IzQ2NQOGlJdnVLeUdjMlpmaE9zSnN5a3o2T0dnU2NZR3RRV3YwNlF3bjJiQ0p5RHhGNW9JajhmUFdIdWZFOWRJSmRjSXBkZzEwUS9BMXQyZ2wyTXlhMmxXQVI1QThSa2R1SmlGc3RWbWNOT01FdU9CZE9zQXVDdjZGTk84RnV4c1MyRU95NVJPVDlJbkw4TUhRbjJOVlpBMDZ3Qzg2RkUreUM0RzlvMDA2d216R3hMUVRyYzc2NmMrNEV1K0RjT01FdUNQNkdOdTNDZGpNbTFpTFllNHJJazR6aCtaeXY3cHc3d1M0NE4wNndDNEsvb1UyN3NOMk1pYjFZTVBzZUtRem52eUp5ZVJGNWp4UHNXazJ3RSt5QzArVUV1eUQ0RzlxMEUreG1UT3pwUk9TakluTFNNSnpmZE9RSzZYN05DWGF0SnRnSmRzSHBjb0pkRVB3TmJkb0pkak1tbG9DbGQ0bkkrY053dnRwcHRKY1FrVjg1d2E3VkJEdkJMamhkU3hMc2tidUVGclIvM1M3WnhhVkY1QXdpY3N3RWkvK0VjUDhQaXNqTGc3bnFueFZZNlFYRjgxY1JrVCtGWjg4c0luZnZEbHJqWXpwNStJMjJ2aUlpTHhHUkY0dklyNDEyamlnaUZ4S1J1d1JUV1l5WS9MT0lmSzVMMXZINExxSENPN3J6ZjZVKzl2V1BNOU1YRFAzREhCZmI0SjJmRlpGbmlNZ2JSSVEyZDdJd0wxY1drVnNHTFNiTzB5OUNmNTRzSXQ4SUhScExzT0NNVUQ5QVJLNlVISkRuOVl6N3l5THlDaEY1NVFUbkxOTnhnWHZFbTdhSWhDVXk5cmxkUHo0aEl2OGVDUGhKUk9UNkhUNDNFSkc5MVJvbitjYkhST1JWM2J5L3JYSmVTK3Y3VkYxU2o5dDJtdWIxUkFRdDlBaWgzNy9zRWd5OFQwU2VWamtlVE1OZ2ZPM3cvT3ZDT1A0Vi90L3kwZVlnR3BQYzRFYWRiRGc0ZVhFZjBldjJHZXVka3g5L0hKS2UvS2hpTHZXek5VazJUaWdpMXhDUld4dHpIZGZUODdwdjZaTVZjaUoyTVRmZmZBc1hENGsvU09SQytXM1lGS1Z6UEpSZ0x5c2lyeEdSNHlWWS9VNUU5Z3RydGdMQ25hbmlpU1oyeC9ub0luSXJFWGxVRnpCeG5JWXArRU00WS9mcWdyRExMY2lqZE9hdVozZEV1bitoVGNpTS9yMU1SUEE3VVU0VFNQN0NoV2UvTGlMWHlwalJTaDlNUy84NHhQK1VobyswQWViZHFrSjJiSURBclRSWFR3am5JRWswa0dZSHF6MnlRVnNJODRNVXFmYjFIUUZBVW9NYWdabStoeldJNEdVTnN0RXJsZStJeUcwQzRjWTFVWG9HMHlxQ3JyVGU0bnRZZHc4U2thZUx5Rjk3WHA1YjMvVHJzWXBRY3E5aFBCRCtwd3FEZUxTSVBDRFVlVXhJSGhFZjJTbUNQYXVJZktURDhnU2hZUWorVXVHM3Z1NGZxOXVvdlNWbzNiRmVueDg1ZlpmVzNrc2JoRk9LeUNORjVPYWxSUkgrem1ibnJpSlNrbVZVdCthYjcrVCtJa0xRbVZYU2NRNGhXRGFiNzF3SGNtWHdUckQvWHdJc1JEU3dhSGFxWEkrN1ZVUFlvMFhtTkVWclFkNHA3TWJQWHRrZ0dpM0V3cTZkdnI2OTB4NVBWUG5zejRKR2J2bXFjaC9NVFlQbWpPQ29MYThORzRIZjF6N1FXQS90RG8yNVZtancraGVJeUl2Q0xqcW0zNndoMkNGdHhlRmdza1JiUXp1cktXeVdJT1loYS9DSlFiQ1ZyQlJZWTlCSXoxalRJVlhudzJIdHNZNnNZcTF2a2p1d0lXd1pFMk5BczM1OVR4OVQ3ZkhHM1hnT1NlcnVGTUZhUkZtalRXcGlqbDJ2ZVZaYllUNGRyRlpvaUxwZ2ZjTUNVU3NmMHVleGxpR2IraXhTZXI1WkgyeGcyV1RuQ2hhWEszU1dNR1JESzhIbXlKV05vaFhnTm1DSlQvdUlFK3d1UEk4YkNPc3lCcnpzNkRDVllYS2tuRGpreTB4TmR2RXhkbWZYNlJFTWVrRmgrdjFiTUVmSGQyRHF3TC9FQXNTTVJtNU9yY2w4dXpNVDNpS1FSaW9vTVlVUy9FRzVhR2V1eE9Tc0M2YTFtM1FhU1RTbnBYL1gvZU5qK0ltSVhET3BCTUZqMnFZUDRJYTVPRFhWeEtxWW0rNDRneVlMRnM4TXBpNDl0aEoyYncwYkRMUkVTb2xnKzlZRkpJQXcrVzZublIwMWFDT25OdkN1SVFzZTQ5bDNaNGlQT1VCVFlrM1FwMHVHZGFpYksyR2VHMDgwODM4eHZMQ3ZEUVF2R3JORjVEWHJ1eFkzMWhjRWNmZ0FrWGZ1N251OVEzaHV6ODVOY3ZWRW1maEhaeUpsQXhpSkE0MGNOOEwzQjdUREk2a216Zit6ZVVHTDQ3dk9GU3hKYkpCMTBhWnU2M2xNN0d6a1k5SGFlL3lkUHFDRlJqTjgrcTRmaEcvNDd6MHlodnE0bGRqbzVEYktlcjZaVzh6M2tWZFl0NUg0TU92aTlzSTZ3K2FZMGtLd2JFclErcEdKc2ZDOXJ5eTUwa2tuMkYxVGRWOFJlWnhhelNRVHY1dUlmQy96bFVCZStNQWd3TFJndm9DUUxGT2FYbERwY3dnUy9JaG9PNmxQRGZQbnMwVGtocW9keUR6T0gzMkZ6TFE1OHB4Qks5ZUxFdjhJL2tKZCt2cEhYVDRNZHFlWXhHUEJmSHE1b0tYb25mSzlSQVROYXNxQ3RvSkdsQlkwUlRZTkVGU0tIV1NNQnZrY2RXbEVmTGFQWUJFVW1FVFJ3SFJiQ0xrM0dlNEFyQ0NZWHRNTkNjOGlDQ0FML09GV3lSRWZGaFZNYlhvTk11L25DSDU1eUNRdGZaaXp2cDZmVkdhenhQZ2dUVTJZdEVFV0pIektaMG1lZ2FBZytJOGJBK2xiUDZ3WlNBK2hyOXRpbmFKcHBlM3crbFFZRDExRFkvM3VwWGIxa1NISWk4MHRQdFZjMFQ3VVdJL04ya1Y2L1BkSEM4Uk16QUVsWjFZK1Q1QWpldVBMWExLZTlPVVdmZTRXeUp4NXFObVF4M0d3cm5DUElDL2k5OGg2T20zNEZvajZwdFFTckxYNXhEU09KWTlOODhvV0oxZ1JBajArb0Q1dXpIU1lvRXJtTmpRaGhIME10bUNpTVoveGdmR3g2SklUUU44S0pNWEhhUldyajdGZVNXc2grQW5TVG04bFFxaENPclg5NDROQk9CTm9sZlB6V2FaSGhBeGtudHVrdEg0WVdBOFlTMnBPQnpzRURocFBybGltSmVyMkVTeWJCbmJ3cVFhQU9RN3k3UE9yOGsyeDJYbXFlcGJkTndMQjJuaFpHeno4aXdTbjlRVXdZYjVHQUxMcGlBWGh5YVpQNDZHRk0vVnJDQXl6OVh1VjVzREdBMWRJN2ZxcG1TTkxpT29nd05iMVF2MjVDWlpOSmYzRXYwOHArVksxRHpVZFU4bUhxNDhuRVZmQlppZTl1QUNaeENhRzRNbFkrSDd4cTJMNTZmUFRXMjR5bnIxaTJMeld6amRyRjRXbEZCTlFRN0JyUzY2QTVRUXJndWtDazJ6RUFtMGpwK0ZaSDdqZXdTSkFPVEpnQldsWUJNc2loQ0FRNW4xRm02S29pNGtaelNpYXI2M25MY0hhS2lCclB4aUx6R3VFZUszZ3hGekZMandXdENubUQ5OVBxYURKOG15NjVuTUVpL2JLeG9uMllza1JsOVV1YlR3aUJBYWxRczRTVk5ibXFiUnBTdHNrT2hRLy9BV1NIeC9lL2ZmRFZNZG9CMWRIdEdhVWdtUFN4L0hGc1daaXlmbjlyUFhkSjZBMWRycWRsc2phM1B6UFRiRE05UXRWUEVET2JFc2ZzUXF3WG84ZE9veExodzE1TExtTVZQeWQ2enF4bk1TQzVRRlhVVXBrQkR1aU1CQ1lHQXNCYzF4MlVDSTg2ck5SeHZYQlhNYVMyeHhhODkyeXFTNFJMTUY0YkJhUXg3R3NoZVlhTytzRXUydkJvNTJoNVNCOFdKeVlZeTJUaVBVUlc0c3NkMit0VlRkMSt1ZUVCTCszNUYvVjc5RW1xWmQyV3VYTmpNYXMvbG03NUZ3L0lTWTBLdkNNWlFvdGhIZnBveG44MXVkUDFuMWtaNC9KbFFDTFdISUVhd1dodEc0VUxPSzBCS0xlTkxRUWVSeUhmb2QxWEVUUGJVbGJTdkdEdkRIRi9iSFRqQ0JYVE4xbzZGb2J0OVpQeS96cnpXckxKaUMzSnVjbVdOclZ4M1hRK1BIN1dnRkNhVjNHZC92Z0E0NlJ5SDErV1AwZEUyM05ONUFXWGFmbCs0M3YwUnVkM0R4WTgxM2pSNDd0OUJHczVUYXBqV2ZvazZNNytqY24yUEZ3anlYWW5EYXBlNmFGVDR1QTFDYklGb0sxdEtFKzFMUkZvQy9MVGd2NnB3Z0JYR2tna1k0ZUxiMVBDOEljd2VwNmZXYi92amExMVVFVG42WDlXQ1JjR3BjMkhWcHJBNDJKQUJ6V1VTeWxxT0JTdS9ydjFyZlFwODNwNS9VNDFvVmc5WVlzdDE3MGZMTWVPSnZLV2ZwUzBneHRXcmJhc016UExmakgrZER6d08rV1c4bWFiMkkwYUxPbTVBZ1c5d1pFblFhZHJoMjVBb0FUYk0weTZLOHpsbUJyU1VMdnhGdUlheWpCdHBCNFJBay96bUVpQWlIR2dna2NNK2FZb2pjWUxlT1A3V3J6WEk1Z0NRUkt0ZkNheUZCcmJIcXpvUW5ERW9oOUpzSWNmaFo1V2dJUnMvRkQxVXZRUXRsd1FleWZxWWc3Nkp0RDYxc2dQcUh2dUUzNnZwTEpjTWo2MlFrTjFyS09vTUVTZkpnV1BkOWd6cmwyOEk5QmpEa1hrMTcvMXByVTY3dmtEODdoYWJtVnJFMTVpK3l6MnJMbUcxa0JKbWxjQWVNQUg2MnREMWtQTy9xTUUrd3d1SWxPUFZNd0EzRk9WQitIYVRFUjUrcnFubzBSRkVNSmRvZ1BiT2pad05KTTZLTU5wWWhMNjMzYUQya1JiSXZQdXRSblN4Tkk1OXY2TzVIUXJVZEdXSThFdGFSUjNKYm1Zdm5YMGpIZ0w4VUVqRStSYUhpQzdtcjhkdkVkbHNCdDJWeXRLOEV5ZnYyTldaWXAvUTNIVFJBUnQybTB2YlU1MHUrMzZreHBQZExXRjh2VVA4YnRBR2JXOHdURVlSSFFwVGJ3dFBSTjd1amZuV0R6Y0lNTmZwSFRCOS9zZWJzZGFmekhPZ09idnFtV1lGczB4Q1VJbHJPWENFaDhiN1hGOHBVT01WUHA5clNBYWZIdHhYZHA4cmNJZHNvTlFtbUhiNlVEcmNXNVZDL25CbUNqZ2laUWt5V0tnRCtPejVDZ0ErSXRwV1FjUzVCam43Y3dHZlBkbERCTy82NDFUT3ZiU2Mrd3B0WU0vYXgyRStoTlh5NFFVOGRwbE01NTk0MnY1bnNiTzErNVV4Vld2OWpvNFhObVBhNU5jWUxkZmFvUU9rUjZzcmlJeHJNT2FkZE1iaTNCdHZpWXhnaUtvUnJzRUJJREg0N3pvTm5Ia2hQMk5WakdPalVmZk9sOXEwQ3dhYmFlSlFnV2pEaFNnaEJQSTQ5TDJHRzZaS05FRUUxNkRqcDlibXFCMi9KOTVQby81cnNwWVpMK1hSL1gwUzRNeS84YUx5alFsaFVkcGEwdEhibnZjazZDdGNoNjZ2bldlR05SU1dVd1ZpdjhzcTBXbnBaNW5MU3VFK3d1T01HQlZJQWtqa0JqYlNsa0t5R2NQRjBJVHJCT3NLd2hhNGVlK3R5WEl0aTQ1akhGM1R0RXdkWm90RHpYbDlONmFvRzdUZ1JyQmF5bGM2MEpPTlZTdGRWSGoxdEhpZWNDRCtja1dPdG8xdFR6SGVWdVBMZUx1UmhmY3lwYit4SmZ0TWp0SGFuckJMdUxYSzNFQU5ZRWNJU0MyeVk0VDhoeEhsTExZUzRtcUdldjVJRnRKbGpMaDFtVFk3VzA0RGRGZzAzWGhpYllLUWlsaEtQMWR6TDVFRk5BRWcyQ1NVcDVzU0ZaRW5Ib2hCdFRDOXdwOE5ncERSWmNOUkdtSklxMUFNMHpwdW5VUGxUdGg0M2tySW03ejYwMEo4SFcrR0JiNTh2YWdLWkpNVmlYK3RoZnk3bnFJZC9DcE04NHdlNjY1azFuT2dMa3ozZVJzQno0NTlBMUpvbDRwWnllZ0pLZmJTb1QyaGhCTWRSRVBDU1FxRGFpdFhVaFR5RThkQlRuM0VGTzFubmFOT2hIUjMyQ1NVdFFVQ3VHdGZYWkpCRnZnSm1mQkIxV3JtbnJYUEMyRTZ3MjVhWmFYODcvR3VkRSsyRzVuSUpvV3EzNTlsMkpOMldRa3o1UGE1M3RuWHErOGJOeVhTZHR4K0E2S3pDdkpzRk83VnFmdGQ2MkU2eVZzWWZ6VnB5REpDRjRUUVRsSmhQc2tLTXdXc2dNUFNxZ0Y3N1dBRnAzeTd4UDl5MFhCRklqWEdvK1RPNk14Y1FWQzhGaVpLWDVRdmhCKzk3NGVRcHR2Nlp2dFhYUUlyaTFDUGRKYXFyYkNZRTdaSTcxdU1ac1RHc3hpdlcwOVNiMm4vbE83NisxU0ZLZjg0N2tqRFdCdTMrUlZaUytjL09sRFYzdGVFakJTY2FvOUJ4cUpQeXBGQWJlVTB2UWFQdmtZMDlMUzNhcTJuRlBYbS9iQ2RZNkp0RTZjVnJ3TTBtYllpSm1MRmEybUw2RnFOTzUxU1EvcjFuWUZobmxjaXJuM3FmN3RuU2lDY3VjM25kWlJHNWNZQVBoRWZXTzhPWWZCR0lrY3A3RFVvTjJURm8ra3V1VGkvckJOY0NIR0FWeXk5NG5xYjhUUVMvclJyREFZeDJuSVdsQ21xL1lTaWFpL2JCeGM4dWFUUzhpc2M3WHhtbFpPdEZFNjN6VkVpekJpWnlseGkwUkMyMlJKcFpNZUN0YnRwMWd0VmxtaUxhbDA0cHRHc0cycENPMExBSXR6L2Q5S0ZZUVNVdVVzOVczbGxTSnJacmxxWUxyQVJOWExKWmcxZXVuSmI5eWZLKytZY2hheDJOOTJEVW0rbHFCbVp2bnNjOWI3OTFKRFpiMnRVeUJYRW15VDc3enFJWG1Ob1o2anJBY0hKQmN6RjZ6V2RYV2x5SFgvdWwrMUtaS25JdGc0d1pSdS9MSVJNYTZuT3ZlNmRIRXZlMEVxMzBXQU5yaUE4c2QzTjhrRGJZbHFFRGZRRk43a1VIdFF1WUlGU2JYZE4xeVRkM0JGUy9BTk12ZGxHa1M5SjFNOXAvREFoTWdBWE5wa2dpMFVUSWcxUWdPTW1lUm5DSzk2bzNnTzNiM3YwNXcwWUsvbGNpMTBMWE9lWTRseUxIUHJ3TEJhcDhwcE1qNmpKZVE5NUdRZFphV0kxVXhUM0hOWm5XT1pQODVxOHJZK1dwNTNycEFnL21lNDByTUNuRlNWMlhiQ2RZS011bTdVRHBGRlhKOVl5YmlNcGNlcm1WQjZSa2NzeE1mR3VRVSswQ3dFNW1DdnRhenJMaVhsTlJ3YUc2eHRHaVlOU3ZXdW9xcjV0Smw2eW85Mm11OXJvN2dpdjFDaHFOY2YzTlI2WkFnU1I1MHNCejF1ZkNiNjhUU2dsQkcwN0VTeHNkNjRJRlBMazNyeU45SUlKOWV5czF2SkU5SFVHSXFqcVYwVFdLc1oxMVpaeVVQR2JPK2FXdnM4elVFT3pTdmRNMzZqSFZTTFpLb1grWThCb3IxQlNsWitiYlRkbXZTcWxyZlNDU2lKdzI4cm83b2NwMzJjWXI1YXAxdjY3ckswbDNMTGZNMmVkMXRKMWhMNkFBeURuVk1ndGFCZXE0SDQxalBnM3F5NGVUTWlhMExLcDN3SlFtV2ZvQUZBcC9ybzlLTVBnVEJFR2xLeEhWNjUyeXJobFM3dUsyN1hRbE1ZejRnbS9TR2w3N0w0RXNFbTd0d1BZZERGRGlrdk1Odm5SYUVBTGY0Y01UTEtwWVdTajBpMmNHYzUzVEFYUzVaUkovMmExMVcvNTFBeUpqZmRLYW1lRDZjVFdlNmNlS0NlKzRoWmNPUmxqSHJld3FCYldGckJmN1UzTFZidXg2dGV0clhuOWJwdTh6QnlvSVduMjBKT014ZHVNNXRVdHpqcTQ5WDhaM2cyOFV2bjFwU2FMdnY2c1FsNXR1NmRyTHZydVV4OHpqNjJYVWoyTkVETmdLUUxLRkRPNWhHRVNEYzY0cmdnWXd4NFp4Y2RRTGhUcktKOUphWDNJMFNZeGJrVWdTTFlFL1hDUm9WcGxidW9HVkhpVW5kU2xLQTFueFFaU1IyNjd4aUlZRG9kYVl0NW9KalZXamM5QTBYQUJHUnVWSktKV2RkbVJYZmxiWjExT0FuUzlkQXJNYzY0cUoxZkhGOUpYY3BQTStrbU5NVzQ5THJrSHFIQnczN1M1bUdjdHBOYklQejNHQkhJUUJ3bnd4K3Via2RzNzduSWxodHNvM1FnQ21reFR6aTY2eTVVN2gyblZyQmsvSFpVbUNldGpiRjUxb3ZuTWg5STd3UHN6WFdwYitIZWQ0Mzh3MlhYQlZMekRleTVwQk9OdSt2SnFQV1ZWUTdoNVBVYzRMZFJRNllkRmo0cllYZFA5b0svcjAwV1RmWFQwSGNXdXNZc3lDWElGajhSV1Q2SVhPTTN0bm1zRW9QaXRjY2MyckZuUHFzVys2ekpWSzJKWjBsRjY0ai9LS1p0RVN3dEFYSnNyTm41OXhhMEhaSlBsQjdrNUJsWnE5dEUzSkZjMExyN1N2V0pkYTFiVkNQeU9NRE03ZnVqRm5mY3hGc3pnU2Zqcm5HOU5xQ2tSVWR6dk0xUVVEYUR4dmJiUTJ5NHptT2llRzNQVTVMNTBOZGN2NXlkcmN2RG1DcCtiYmlGb2Jjb3p3QWxyWkhuR0IzNFFYSjNxMzdOemRJMUtTTVEzQmlrdVJhTTB5U09sZ3FGKzAzWmtFdVJiRHNiZ21XWWROQUFFVmZRZHRIRzhEUHRCT2xOcWN1V2dyQkVPUkk1bndmT1dBcE5RUkxQVXhvYUtGY01yNW41Y0R3Z1VKR21GTmJDc0tRbzJLNElXbzNEODhJUVRTNUhNRzZmVFJacnE0RGs5bzJ5TjVFbnppVG1kczRqVm5mOUhIczh6bWNTNXVLS1M2ajBHMWJtbWlmL3pVK2IvbGhhNGc1TjNiY0QvaGV0Y2FYcTQvU1FEd0FHbk5wZ3p4MnZzWTh6N1dPVDFDRHFJMmZhZmtlUjlWMWd0MGRQdnlyN0diUlN2ZFc1akdFTWNJRm91SGZDTzFZT0lkSUpHZ2F5V21aTE1Zc3FDVUpsbnRDSVJtaWVNbmdRNFJxM0loZ0hqODArR28rVy9GUmpscXd4c1AwQzQwVTN4TDlpZ1FZVGZ5UUtoOGVtNFNhWlA5OS9XUE01S3dtblNEL1R0TmovcmJUSUJrL1dqTEJiMmtFNzVBeG96bHpCSUVOQytkV1UyS25yVzhHek1lMGhma2NFei9hK1VVQ3djVytzcjR4RnhNWXhVWVNjbGpIMjNUaWVOaFVjT1FGU3hVYVVMcXh3SHlQcFlHQXBLbUtsV2U2ei84YTI3WDhzRlllNE5aKzRrTm5rd2pScHJLTjc0UjVobENSYlRXM0pzVzJ4OGl6c1JzcXZnL2tEdGJEV0JoTExpQ3JGYTlKNnE4eXdVNHlRSDlKRXdKalA1aW14cnl5SStBSU9BS2JqSUFUN0NiUGJ2dlluR0RiTWZNbkhBRkh3QkV3RVhDQzlZV1JJdUFFNit2QkVYQUVISUdKRUhDQ25RaklEWG1ORSt5R1RLUVB3eEZ3QkpaSHdBbDIrVGxZcFI0NHdhN1NiSGhmSEFGSFlLMFJjSUpkNittYnZQTk9zSk5ENmk5MEJCeUJiVVhBQ1haYlo5NGV0eE9zcndkSHdCRndCQ1pDd0FsMklpQTM1RFZPc0JzeWtUNE1SOEFSV0I0Qko5amw1MkNWZXVBRXUwcXo0WDF4QkJ5QnRVYkFDWGF0cDIveXpqdkJUZzZwdjlBUmNBUzJGUUVuMkcyZGVSKzNJK0FJT0FLT3dLd0lPTUhPQ3ErLzNCRndCQndCUjJCYkVYQ0MzZGFaOTNFN0FvNkFJK0FJeklxQUUreXM4UHJMSFFGSHdCRndCTFlWQVNmWWJaMTVIN2NqNEFnNEFvN0FyQWc0d2M0S3I3L2NFWEFFSEFGSFlGc1JjSUxkMXBuM2NUc0Nqb0FqNEFqTWlvQVQ3S3p3K3NzZEFVZkFFWEFFdGhVQko5aHRuWGtmdHlQZ0NEZ0Nqc0NzQ0RqQnpncXZ2OXdSY0FRY0FVZGdXeEZ3Z3QzV21mZHhPd0tPZ0NQZ0NNeUtnQlBzclBENnl4MEJSOEFSY0FTMkZRRW4yRzJkZVIrM0krQUlPQUtPd0t3SU9NSE9DcSsvM0JGd0JCd0JSMkJiRWZnZjNiRVB2WHFZYlJFQUFBQUFTVVZPUks1Q1lJST0iLz48L3N3aXRjaD48L2c+PC9nPjwvZz48ZyBkYXRhLWNlbGwtaWQ9IldJeVdsTGs2R0pRc3FhVUJLVE5WLTQiPjxnPjxwYXRoIGQ9Ik0gNjAgMTcwIEwgNjAgMTk5Ljg4IiBmaWxsPSJub25lIiBzdHJva2U9IiMwMDAwMDAiIHN0cm9rZS1taXRlcmxpbWl0PSIxMCIgcG9pbnRlci1ldmVudHM9InN0cm9rZSIgc3R5bGU9InN0cm9rZTogbGlnaHQtZGFyayhyZ2IoMCwgMCwgMCksIHJnYigyNTUsIDI1NSwgMjU1KSk7Ii8+PHBhdGggZD0iTSA2MCAyMDguODggTCA1NS41IDE5OS44OCBMIDY0LjUgMTk5Ljg4IFoiIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzAwMDAwMCIgc3Ryb2tlLW1pdGVybGltaXQ9IjEwIiBwb2ludGVyLWV2ZW50cz0iYWxsIiBzdHlsZT0ic3Ryb2tlOiBsaWdodC1kYXJrKHJnYigwLCAwLCAwKSwgcmdiKDI1NSwgMjU1LCAyNTUpKTsiLz48L2c+PGc+PGcgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTAuNSAtMC41KSI+PHN3aXRjaD48Zm9yZWlnbk9iamVjdCBzdHlsZT0ib3ZlcmZsb3c6IHZpc2libGU7IHRleHQtYWxpZ246IGxlZnQ7IiBwb2ludGVyLWV2ZW50cz0ibm9uZSIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgcmVxdWlyZWRGZWF0dXJlcz0iaHR0cDovL3d3dy53My5vcmcvVFIvU1ZHMTEvZmVhdHVyZSNFeHRlbnNpYmlsaXR5Ij48ZGl2IHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hodG1sIiBzdHlsZT0iZGlzcGxheTogZmxleDsgYWxpZ24taXRlbXM6IHVuc2FmZSBjZW50ZXI7IGp1c3RpZnktY29udGVudDogdW5zYWZlIGNlbnRlcjsgd2lkdGg6IDFweDsgaGVpZ2h0OiAxcHg7IHBhZGRpbmctdG9wOiAxOTBweDsgbWFyZ2luLWxlZnQ6IDgwcHg7Ij48ZGl2IHN0eWxlPSJib3gtc2l6aW5nOiBib3JkZXItYm94OyBmb250LXNpemU6IDA7IHRleHQtYWxpZ246IGNlbnRlcjsgY29sb3I6ICMwMDAwMDA7ICI+PGRpdiBzdHlsZT0iZGlzcGxheTogaW5saW5lLWJsb2NrOyBmb250LXNpemU6IDExcHg7IGZvbnQtZmFtaWx5OiAmcXVvdDtIZWx2ZXRpY2EmcXVvdDs7IGNvbG9yOiBsaWdodC1kYXJrKCMwMDAwMDAsICNmZmZmZmYpOyBsaW5lLWhlaWdodDogMS4yOyBwb2ludGVyLWV2ZW50czogYWxsOyB3aGl0ZS1zcGFjZTogbm93cmFwOyAiPlllczwvZGl2PjwvZGl2PjwvZGl2PjwvZm9yZWlnbk9iamVjdD48aW1hZ2UgeD0iNzEiIHk9IjE4NCIgd2lkdGg9IjE4IiBoZWlnaHQ9IjE1Ljc1IiB4bGluazpocmVmPSJkYXRhOmltYWdlL3BuZztiYXNlNjQsaVZCT1J3MEtHZ29BQUFBTlNVaEVVZ0FBQUVnQUFBQS9DQVlBQUFCRHlvNCtBQUFBQVhOU1IwSUFyczRjNlFBQUJneEpSRUZVZUY3dG1XZUlaVVVRaGI4MVljSWNmeGd3Z0FFRWM4NDVMdW9xSmxSVVJCR3pZc1FmWWtURmpJazFZRnAxVjFsenhvenBod0VUaXBoQTBUVkhGRU9mcFZwcWUrNjd0Kys3dSs4TlF6Y01NL05lZDkzcWMwOVZuNm9lUnhtMUNJd3IrTlFqVUFCcVlFZ0JxQURVTFlrVUJoVUdGUVoxUXlDRFFhY0I1eVh6VGdjdUFQN3QrUFQxZ01lQWhaeWRHNENqZ0w4NjJoN0ljdVdnQllFSGdFM2RFMzhEdGdKZTZlQkZsZDMzZ1cyQkx6cllIZWpTbUtUWEI1NEc1blZQZng3WUZmaXhENDlrOTlTRW1mOEFPd0JQOUdGdmFFc2lRUHA5TW5CaDRzazV3Rmw5aEpyWStHUUFhQzVucjE5YlF3TkhEL2JIdkVKaUNyQzE4K2hQWUp2d21kaVVPeFlGSGdIV2RRdWVBdmJzazQyNXo1MGw4MUlkVkpWVVh3dTVhRWZnMnd3UFpPOXM0RXczOXdkZ2UrRFZqUFdqYmtvS1VOZFFVd0orTklBMG05dnBTY0FsbzI3bm1RNVZLZWwrUTIwSlMvU3J1MmMvQ093Ti9KN3B6NmliMXF2VVdOTTI2L1ZMWGFqSnpxWEFzVzZIWHdZYm13RWZqYnBkdDNDb3JoWTdFYmc0ODFUYkRialBoWllFNXI3QVhSbSt6QjZTdW1URzRjQ1d3TEp1elRkQmp6MEgzR0toMjFaY3pnZnNEaHdNckFVc25MekFsNXBzMXdFMFAzQ3ZDYnRvdCtwVXF3cXRYTFc4T1RBUldERUR5SjhNeExzelpNZWN3SEhBdWVGSGZ6Y04yVDRDa08yLy9lU21hcjRxMUx5QXJBcXREdzNVVDJ1OEVtdkUwRlIzTlcxRTMxOExIRk5UcWdpUUsyekRPZmI4bkJHMm13RFNZaUY3VGZLa2VES2xnakJITGZjNktUOERyZ3VoY0w5SkNqRjRJNnZidkthU0szVU1QU0F3OGxibnIzeTZEWmdVdE5qYnhoRFoxb2w3U2hMU21xdVFsQS9UUnc1QTh4ajFka25pVjJXSUVyT3Y0WExVY2hXb0p3QlhwZlIyUG01bkc0eUh4b2lOMkZ4dFhDZW5RbGRER214blFMbW1hbWh2VndLSHVpOGZObEg3Unk1QW1xZWorNW13aWNXY29lK1RwSmRUdThraEpYTUpSdzBsOC8xdDgwMmRnN1JlVkNFdE83NVdYRFVvL3hkQ2lDMWk5bThHRG1uSVdVdmEzbGF4TlYrRmVuRmo0T00yQVBVS3RZaFhybHJlMEp5Sk5Wb2JuU1MyNjIyclZSTEJGYk5VODhXeHRwMTZzZWpPQVVockx3UDJNMUFFdkNMams3WUFLZm5kRHV4VndWWEY4a1VacDR0T0ZmV2E0bEMra00zY0lUa3gxVTFXSCtzTTkvOEtJYmU4R0JMNVV2YVpYdHcrSVpjOW51RmJwUTg1T2NndlhNbmUwTkx1UTdVdjlnQithZGpsM0ZZTTcyVHpwSzZWRU4vS1JTZklqalVzUkJXcUdqUGtpM0FxcGlFY1RiOWhPVTVGdEFSc1V6ai83MUpiZ0xSUW91MUF0eW4xZlhLT2ErV3ZaMFBDWDYwRklFMVRYdzhKV0dHbWZCaEhWVDNvN2Z4cW9sTWlWc3lxN1hjTkVpQ3g3dVhrV0cwQ29PbDdTWU1OakJWeHJ2YWtQSFY1VWpUM3N2VkI4T2xHNE01d21uMmVUaHFMQU1VOWlxbnFJcWlMbVR1a2xRVHVkeDd0M01WeFhyOGhsaktvNnUyMzlTVm52cm9UQ3NQRHJQbm5XekZWNjJkbzdnMlNRZEliRW13NmFUVDBsallCM3N2WjVVeWFveEpuZVFOSyttaWRIbUdvOER4ZXlYeVFBS215MWhIdFc3cmp2YXlmU1NDME1TUHBJcVd0cm9Vdm1OODFOVDV0a0FESmNSV1JSN3NkWEczL1p4KzdOYnVmd3pZcnJTUWxyQ05mK1NlSG9hbDgrZGxLcURjSERaQWNsbmFKejUwV2xQVVdRWHkray9uYUpTeWxqbFVPNkc1TjdRblZjR3JEVkwwQTlhU1VlSnRHV3NNTkRTQWxUTjIwcXE2S0kvZkdZem03VTF2WnJSVWJCVkFjNlF2SXFRKzFObVhRMEVKTXpxVGRSMzBta05UMTYzWGpxc1I2anlYVkNJWllwOXZmcngxQVZWZE9kd0JIQW1xS1ZRMFZ0bXFmcUJxSVl5aEpPajVjdVVMRllTdzY0K2RxcHlwOEZEYmF2RTRjTmV3VVZoT1MwMGJ0RGwwRzZCNHZIVlV2UU9Db0dhYjVVUXd1WThlL21tK0xPeU9xNG5XUXRDNVdvNDErZFpEZmlFNlA4NjJyMkpRZjB1OEZwRm9razN2VVZMMGFjam5QR2RFL0duU1M5azdxMldyU1g1L1prOVphM2F3b0ZKVWo2b1pzaTJHeXZVQU9Nblo3ckJwek9uUGlHQ1pBMFllNld3MnhSV0E4WkVXeSt0MXRKSUdZcXNSOWtMVnZmUmNpMnBZMnV3bFFEMzJFN1g0QXlud2hZMk5hQVNnalZzZkdxNTVGdXlnTUtnenFScTNDb01LZ3dxQnVDQlFHZGNPdjVLRENvTUtnYmdnVUJuWERyK1Nnd3FEQ29HNElGQVoxdzYva29NS2d3cUJ1Q0JRR2RjT3Y1S0RDb0c0TStnOHN1VlJQdUZJcGVnQUFBQUJKUlU1RXJrSmdnZz09Ii8+PC9zd2l0Y2g+PC9nPjwvZz48L2c+PGcgZGF0YS1jZWxsLWlkPSJXSXlXbExrNkdKUXNxYVVCS1ROVi01Ij48Zz48cGF0aCBkPSJNIDExMCAxMzAgTCAxNDkuODggMTMwIiBmaWxsPSJub25lIiBzdHJva2U9IiMwMDAwMDAiIHN0cm9rZS1taXRlcmxpbWl0PSIxMCIgcG9pbnRlci1ldmVudHM9InN0cm9rZSIgc3R5bGU9InN0cm9rZTogbGlnaHQtZGFyayhyZ2IoMCwgMCwgMCksIHJnYigyNTUsIDI1NSwgMjU1KSk7Ii8+PHBhdGggZD0iTSAxNTguODggMTMwIEwgMTQ5Ljg4IDEzNC41IEwgMTQ5Ljg4IDEyNS41IFoiIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzAwMDAwMCIgc3Ryb2tlLW1pdGVybGltaXQ9IjEwIiBwb2ludGVyLWV2ZW50cz0iYWxsIiBzdHlsZT0ic3Ryb2tlOiBsaWdodC1kYXJrKHJnYigwLCAwLCAwKSwgcmdiKDI1NSwgMjU1LCAyNTUpKTsiLz48L2c+PGc+PGcgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTAuNSAtMC41KSI+PHN3aXRjaD48Zm9yZWlnbk9iamVjdCBzdHlsZT0ib3ZlcmZsb3c6IHZpc2libGU7IHRleHQtYWxpZ246IGxlZnQ7IiBwb2ludGVyLWV2ZW50cz0ibm9uZSIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgcmVxdWlyZWRGZWF0dXJlcz0iaHR0cDovL3d3dy53My5vcmcvVFIvU1ZHMTEvZmVhdHVyZSNFeHRlbnNpYmlsaXR5Ij48ZGl2IHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hodG1sIiBzdHlsZT0iZGlzcGxheTogZmxleDsgYWxpZ24taXRlbXM6IHVuc2FmZSBjZW50ZXI7IGp1c3RpZnktY29udGVudDogdW5zYWZlIGNlbnRlcjsgd2lkdGg6IDFweDsgaGVpZ2h0OiAxcHg7IHBhZGRpbmctdG9wOiAxMjBweDsgbWFyZ2luLWxlZnQ6IDEzNXB4OyI+PGRpdiBzdHlsZT0iYm94LXNpemluZzogYm9yZGVyLWJveDsgZm9udC1zaXplOiAwOyB0ZXh0LWFsaWduOiBjZW50ZXI7IGNvbG9yOiAjMDAwMDAwOyAiPjxkaXYgc3R5bGU9ImRpc3BsYXk6IGlubGluZS1ibG9jazsgZm9udC1zaXplOiAxMXB4OyBmb250LWZhbWlseTogJnF1b3Q7SGVsdmV0aWNhJnF1b3Q7OyBjb2xvcjogbGlnaHQtZGFyaygjMDAwMDAwLCAjZmZmZmZmKTsgbGluZS1oZWlnaHQ6IDEuMjsgcG9pbnRlci1ldmVudHM6IGFsbDsgd2hpdGUtc3BhY2U6IG5vd3JhcDsgIj5ObzwvZGl2PjwvZGl2PjwvZGl2PjwvZm9yZWlnbk9iamVjdD48aW1hZ2UgeD0iMTI4IiB5PSIxMTQiIHdpZHRoPSIxNCIgaGVpZ2h0PSIxNS43NSIgeGxpbms6aHJlZj0iZGF0YTppbWFnZS9wbmc7YmFzZTY0LGlWQk9SdzBLR2dvQUFBQU5TVWhFVWdBQUFEZ0FBQUEvQ0FZQUFBQzFnd3VtQUFBQUFYTlNSMElBcnM0YzZRQUFBOHhKUkVGVWFFUHRtVm5JVFZFVXgzK2ZxY2dESmFXSVJJbFNNanlKaUpBcDg0dndRSVpDaGlKa0tJbUVrQXh2NWtJVUhneVpsUkJLa2ZJa252UXBTaDRROXIvTzBmNk9lKzdaKzV4TCszN09lYnZucmozODluL3R0ZGJlcDRGbS9qUTBjejVLd0hwWHVGU3dWRER3RmZqdlhQUW9NTWNTNVJVd0duaVhVNmoyd0dWZ2VOVCtDekFNZUpLelArOW1TUVdUZ09wd0w3QUMrT25kTzlRRjRBOWdMSEM5dVFLSzZ3VXdFbmp2Q1ZrWENzWk1lVnkxcmdDL0FxT0FleDRxMWhXZ3VCNEQ0NEFQanBEQkE4b3RGd050TEtDdHdFYkhxQm84NEdSZ01MREJBdlJ4MWVBQkp4bVhmR2lTODAyZ253V3BmVGpSNU1kUEdhNWFGTENiS1RMbUExcm92a0RyYUx4dndFdmdGSEFhZUpzMmo2eEVMOEJMVVRWekJXaGhkYlFPMko3aHFua0J1d0w3Z0NtT2UvMHNzTEpTeGVVS0tMczl3SEpyUUpWZHlvMVNPTzNKQXpqZXFIVUdhT2NJRjVzMUFoTGtnZDNPRlZCdE91ZHdWVi9BSWNCVm9FTUM3aHh3ekxqcXMrajlBRk4wTElrcUxOdjBvd0VjQXp5S1gvb0FxbzFXNklLSHEvb0F5aTFWRHZheFpxeGlmeGJ3UEVYTi90RjhlbHIvTjZtNmZBRmJBZnVCUlZhSGY2eWE5WjhQNEdhem56ZFpiVjlIZS85TmhxdDJqeGFtdDJXM0Z0aWgzNzZBYWxOcHBXOEEweXBFVlZmQVRzQ2RLRkpxREoxY3BnUG5IZmVoVkZZMGpYa1VZWFZFYTh3RG1PYXFhNENkaWFqcUNqalVUT2dXSUEvUm84Q2x2WlNWaG1MK2pzQTFjL1ljRkwzNGJoWnNoQ2t0NytjRlRITlZSZFU0RUdnc1YwQ0YrRjJXV3R1QTlZN3F4V1pLSzB1dE5xdUEzWGtCMVU4bDMxZVFtQXA4amdaeUJVeE9ialp3MGhOd0lYRElhcU5Zc2F3SW9QclN2bFBPc2d1QTFaWWFyb0RKbTRTNHdQQmhWR1YxMFdxZ3RESzNLS0JLcHdQQWdrUlVqVjIxN2dIRjFRTlFGTFZ6a1M2YVpnSXRIUytkZ2xVd0ZpNFpwdlZleDZ3VGpvQzEySU1WQTFWUkY0MEI1YXBIZ0htV3E2bzIxTDVRUVo1MWJaZ01FTFdJb2lwR0R0Y0tNTTFWZGF4UzBUd3dBays3RnkyYUI1T0ZRdUU4bUJiZEZONlBWd2w5YVlCRks1bmt1SVVybVRRR3VhcnkxNHdVZzJvMzI3V3NSYmVZOGRWZnJsbzBLemYxTXVmRXU4Yi91MVF3ckFaWXE5TkVrODhOdGR5RE5rK2FxMlo5bS9BNUQrb2JpZ3B5K3lsOEhzeFNMLzYvYlZUaFRFZzB5QUtVZVpFVHZkS1Y3bzkrUDM5TFFRMmdTNnJiZ0FKSS9MZ0F5dmFmMzhtNEtwZTBVeTQ2bUFNd2JsTHRWdTFwZEFaVU1aRjZFZjNmZlFETnExU3c3VW9GZzVYR2NXS2xnbzRMRmF4WnFXQ3cwamhPckZUUWNhR0NOU3NWREZZYXg0bVZDam91VkxCbXBZTEJTdU00c1ZKQng0VUsxcXhVTUZocEhDZFdLdWk0VU1HYU5Yc0Zmd0hhR2tGUEJBZUZRQUFBQUFCSlJVNUVya0pnZ2c9PSIvPjwvc3dpdGNoPjwvZz48L2c+PC9nPjxnIGRhdGEtY2VsbC1pZD0iV0l5V2xMazZHSlFzcWFVQktUTlYtNiI+PGc+PHBhdGggZD0iTSA2MCA5MCBMIDExMCAxMzAgTCA2MCAxNzAgTCAxMCAxMzAgWiIgZmlsbD0iI2ZmZmZmZiIgc3Ryb2tlPSIjMDAwMDAwIiBzdHJva2UtbWl0ZXJsaW1pdD0iMTAiIHBvaW50ZXItZXZlbnRzPSJhbGwiIHN0eWxlPSJmaWxsOiBsaWdodC1kYXJrKCNmZmZmZmYsIHZhcigtLWdlLWRhcmstY29sb3IsICMxMjEyMTIpKTsgc3Ryb2tlOiBsaWdodC1kYXJrKHJnYigwLCAwLCAwKSwgcmdiKDI1NSwgMjU1LCAyNTUpKTsiLz48L2c+PGc+PGcgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTAuNSAtMC41KSI+PHN3aXRjaD48Zm9yZWlnbk9iamVjdCBzdHlsZT0ib3ZlcmZsb3c6IHZpc2libGU7IHRleHQtYWxpZ246IGxlZnQ7IiBwb2ludGVyLWV2ZW50cz0ibm9uZSIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgcmVxdWlyZWRGZWF0dXJlcz0iaHR0cDovL3d3dy53My5vcmcvVFIvU1ZHMTEvZmVhdHVyZSNFeHRlbnNpYmlsaXR5Ij48ZGl2IHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hodG1sIiBzdHlsZT0iZGlzcGxheTogZmxleDsgYWxpZ24taXRlbXM6IHVuc2FmZSBjZW50ZXI7IGp1c3RpZnktY29udGVudDogdW5zYWZlIGNlbnRlcjsgd2lkdGg6IDkwcHg7IGhlaWdodDogMXB4OyBwYWRkaW5nLXRvcDogMTI4cHg7IG1hcmdpbi1sZWZ0OiAxNXB4OyI+PGRpdiBzdHlsZT0iYm94LXNpemluZzogYm9yZGVyLWJveDsgZm9udC1zaXplOiAwOyB0ZXh0LWFsaWduOiBjZW50ZXI7IGNvbG9yOiAjMDAwMDAwOyAiPjxkaXYgc3R5bGU9ImRpc3BsYXk6IGlubGluZS1ibG9jazsgZm9udC1zaXplOiAxMnB4OyBmb250LWZhbWlseTogJnF1b3Q7SGVsdmV0aWNhJnF1b3Q7OyBjb2xvcjogbGlnaHQtZGFyaygjMDAwMDAwLCAjZmZmZmZmKTsgbGluZS1oZWlnaHQ6IDEuMjsgcG9pbnRlci1ldmVudHM6IGFsbDsgd2hpdGUtc3BhY2U6IG5vcm1hbDsgd29yZC13cmFwOiBub3JtYWw7ICI+TGFtcDxiciAvPnBsdWdnZWQgaW4/PC9kaXY+PC9kaXY+PC9kaXY+PC9mb3JlaWduT2JqZWN0PjxpbWFnZSB4PSIxNSIgeT0iMTE0IiB3aWR0aD0iOTAiIGhlaWdodD0iMzIiIHhsaW5rOmhyZWY9ImRhdGE6aW1hZ2UvcG5nO2Jhc2U2NCxpVkJPUncwS0dnb0FBQUFOU1VoRVVnQUFBV2dBQUFDQUNBWUFBQUFtaGZPT0FBQUFBWE5TUjBJQXJzNGM2UUFBR3I1SlJFRlVlRjd0blFmMFBVZFZ4Ny8wS3AySUlZQ0FIRW9RYVZJRUFncWhGNm1oSnBHT05KVWlKVUZLYUJwUjJnR0NxQ0F0b1IwSklMMkVFam9IRk1nUlFhcWgxMUJFaXZ2SmYrWmtHR1ozWjkvYjMzdTdiNzl6VGs3Ty8vZG1wM3p2N0hmdTNybjN6dW5rWWdTTWdCRXdBcE5FNEhTVEhKVUhaUVNNZ0JFd0FqSkJleEVZQVNOZ0JDYUtnQWw2b29MeHNJeUFFVEFDSm1pdkFTTmdCSXpBUkJFd1FVOVVNQjZXRVRBQ1JzQUU3VFZnQkl5QUVaZ29BaWJvaVFyR3d6SUNSc0FJbUtDOUJveUFFVEFDRTBYQUJEMVJ3ZXpSc1A1UzBsT1N0cjhvNlJxU1R0NmovdHlzRVRBQ2F5QmdnbDREdkJrK2FvS2VvZEE4NU9VaVlJSmVsdXhOME11U3QyYzdjd1JNMERNWDRNRGhtNkFIQXVicVJtQ2JDSmlndDRuKzV2czJRVzhlYy9kb0JGWkd3QVM5TW5TemZOQUVQVXV4ZWRCTFJjQUV2U3pKbTZDWEpXL1BkdVlJbUtCbkxzQ0J3emRCRHdUTTFZM0FOaEV3UVc4VC9jMzNiWUxlUE9idTBRaXNqSUFKZW1Yb1p2bmdOZ242ckpLdUorbldrcTRyNlJLU3pwU2crSCtTUGlmcFRaSmVLdW5Ea241ZWdYSStwMXRLT2o0OGQ3YlEzNE1rWFRucDd6dVMzaXpwR1pJKzBOTFArU1VkTHVrd1NRZEtPbjFvaytDZVYwcjZlMGxmV25OODU1SjByMElmL3hQbXdQZytMZW1YRmYyNHlnNGlZSUxlUWFGMlRHa2JCQTBKSFNucHdSa2g5eUgvV1VuM2JzajhIVDBFVlNMbzEwbTZtYVNYU0tML3J2STJTWGVWOU5WUTZReVM3aS9wNklyeE1xK25TbUp6YVN2cmp1OURZWHovMlFlWWY5ODlCRXpRdXlmVHJobHRtcUN2MkdpdXI1VjBrVFZnZm1oRHNrL3JJT2w4VHJkcWlQbFNnV0JydTRXa2J5dnBSMEdydm0vdGcyRnNqTEZOeXkyTkQ4MmVyNFNvbGZkMXg3anVJT24xZlJYOSsyNGhZSUxlTFhuMnpXYVRCSDB4U1c4SlpKbVBDelBCK3lWOUwveUF1WU9jSU9jb1RBQnlPa2pTUjFvbWw4L3BXRW0zejhnUGM4bkhKSjBsbUZjWVcxNGVLZWtYUVNPT3Y2RVp2MEhTMXlYdEorbW1CYTM2cDhGMGMyTGwrUDVhMGdNa25UMnBqMG5qclpMK1Y5S1ZKRjIxME5aM0pkMm9HY01IKzRUczMzY0hBUlAwN3NpeVppYWJJdWd6U25wdVk2TzlSemFvNXdSeng3Y0tnMlV0WHJQUnRsOGc2VExaNzgrVzlNQVdMVFdmVS9wb3FULzZ1V0hUeDhzYk8vSjVrc3Bvd1BGOVlGUEFOZ3pacDNad05OOUhORVQrbUpIRzEyYkd3ZjdOVjhPaFdUOG5TVHBZMHBkcmhPMDY4MGZBQkQxL0dRNlp3YVlJK3ZLUzNwMFI0RkdCMlBvT3ZDNFl0TlpVaTBRRGhsUTUzTXRMRzBIejk3L3BNRDJneFQ1ekJVMlZnODFqd2dGaWZQeFRRVFAvNW9EeGdROW1pMmo3emgvRkZ2NXdTVS9LZm5oYzgrL0hEaEc2Njg0WEFSUDBmR1czeXNnM1JkRDNDUnAwSENPYUh4NGNYNnNjOUYwa3ZUaXArNVZnQWlscGppV0N4aE1FYjVFZmQvU0hXZVc5elRndmxOVzVYemIyVWhNM0NGNGc4ZjM1ZG1PaXVIYnd1S2paUVBCV3VYNUQ4cC92d2FPMEdRekZzaEp5VjVzaUFpYm9LVXBsNzhhMEtZSkcyK1hRN2VxU0xpb0pVOE9qQjB6cktwSk9TT3kwWFhib0VrSGZLWmd3dXJvOFoyUHJ4ZHNEbDc5WXZ0RFl6YS9WbURmWUVMcktaU1c5cHpsUVBGK29OSFI4bUd1ZVZZbEhqZ1dQY1JESzRhdkxqaU5nZ3Q1eEFXZlQyeFJCcjR2cU9nVGRwYzJtNDhKT2poMmFqU1NXVjBtNm82U2Y5VXpndDhJaEo1c1BaUWhCUS83WGFYeWYvN3NTSlB6SEdSY0hsTEZnbXNHMzIyWEhFVEJCNzdpQUYwalFYZmJxWE5vdnpBN2lhb2x2SFlLdTNRVFNzVDZxOFI1NVl2SUgzQUxSb24rNHJPVzd2Tm1hb0pjbDh5bHIwR2lLVndnYUxZRWoreWVpR2FLaHZxdUpRcnk1cEZNcVJKc1ROQjRhQko3MGxYVUlHbE5QZnZEWDE5OHRNcE9HcnlyclEyeEhmamRCNzRnZ0s2ZXhiWUxHTXdFWHNzdEp1bkN3VVYrdENaM0c2NlBrQXgybk5ZU2doMmlvMnlCb1RDcXZycFJYck1ZQkpCR1ZtR1VvZUg1Z0srZXcwV1dIRVRCQjc3QndDMVBiQmtGRHZBU09FRzFIVG90VnloQ0NmbEhJYlZIVHp6WUlPczBWVWpORzZneXh5ZGUyNlhvelFNQUVQUU1oalRqRVRSSTAyakordmdTczlPWER5S2RJWkIxbWhEUndwQzJhTUorVENYckVCZU9tdG91QUNYcTcrRys2OTAwUk5QNjdUNWIwa0o0SkVscU5QWlh3Wld6SC9FZFNJR3pScTdyWjdTSkI1MzdYdGtGditzM1pVbjhtNkMwQnY2VnVOMFhRaDBoNldhSUJ4K21TYjRJQWxQZUZWSjAvYWNGaHlDZjkzRFJvTmkzQ3VJZVUyd1JYdS9oTVYrVGlrSFpkZCtJSW1LQW5McUNSaDdjSmdqNTN5T2xNa0Vvc2hFQmplMjFMS0pSUGM1Y0p1dGFWTDhVRUZ6dGM3V0loZ1JPSGpXMGIzTWpMeHMxdEN3RVQ5TGFRMzA2L215RG8zT09BbWQ0dEM5M3VtMzJ1TWU3U0lTRVhCSkNWTG1ieTY4T2lGUEZZNnc3WTE3Wi9uemdDSnVpSkMyams0VzJDb1BNOEdyV1JmWEdxckVtMFRKTG14N0pMQk4yWG5qUVhPUm4rM3RuNFRwODUvREQwK1pHWGtKdmJKQUltNkUyaXZmMitOa0hRZWFLa0g0VFE1bzlYVHA4d2FHelZrWkI0YkpjSW12bVFBd1FQbDY1a1R0UWp2ZWx4SWZBbXdsZVRDS29TYWxlYk9nSW02S2xMYU56eGJZS2dieExTaGFZangzNzZsSXE3OWRBV1NRSjBnV3phRUJsSmpiaitLUzl6T3lTTTR5ZHRLTGJsdHV1eVNwNHdwR3E5M1FxQkx1T3VJcmUyTVFSTTBCdURlaElkYllLZ0x4NXlRUk1wR0F2dWRJUTRQNzFGYStSS0xFaTg2NnFwdGdDUHVSSTAyTHdtSkQzSzA2Z2VJSWxMQ3BoeldsNGhDUk5TMXgySWsxaG9Ic1E0Q0ppZ3g4RnhMcTEwM1Q2eTZoeHluMXpXMU9PYmpIQkhGQnFFV0Q0cTZSUGhONjZSSWdEbHZGbmQ3d2V6UnBxcnVTMUVlbTRFbmQ3Y0VxZjl5WEM3T1A4bWhQdlNCZXcrRTI1VElTV3F5MElRTUVFdlJOQmhtcHNnYUxyQzFZNVVuamRlQVY1YzhlNGNDRDY5TXFzdHlkRGNDSnBydExnWlpzakZ0R1RvNHdJQ1gzVzF3b0thOHlNbTZEbExiL2pZTjBYUWpJd2NIRVFUa3B5K3BxQ0pQeXdFWkhBUFlIN1kySmFsYm00RVRhVGozWU9YeXRHRlMyaFRyUGppNEVzRXI1YStBOFVhakYxblpnaVlvR2Ntc0RXSHUwbUNqa1BGdm56UGtMK1lMSFljZmxHd1M1T05qYUNMbHphZUNtaUo2UVd0K2IyR3VKY1I4c3hkZm1tWkkwRWZGaVpBdmhIY0NVbXZHbThhajJhZzV6ZkpwYkE1WSs1eFdTZ0NKdWlGQ3Q3VDNoZ0M2MndnR3h1a081b21BaWJvYWNyRm85b2RCRXpRdXlQTGpjL0VCTDF4eU4zaHdoQXdRUzlNNEdOTzF3UTlKcHB1eXdqOE9nSW1hSytLbFJFd1FhOE1uUjgwQWxVSW1LQ3JZSEtsRWdJbWFLOExJN0MzQ0ppZzl4YmZuVzdkQkwzVDR2WGtKb0NBQ1hvQ1FwanJFRXpRYzVXY3h6MFhCRXpRYzVIVUJNZHBncDZnVUR5a25VTEFCTDFUNHR6c1pFelFtOFhidlMwUEFSUDA4bVErMm94TjBLTkI2WWFNZ0JFd0F1TWlZSUllRjArM1pnU01nQkVZRFFFVDlHaFF1aUVqWUFTTXdMZ0ltS0RIeGRPdEdRRWpZQVJHUThBRVBScVVic2dJR0FFak1DNENKdWh4OFhSclJzQUlHSUhSRURCQmp3YWxHeklDUnNBSWpJdUFDWHBjUE4yYUVUQUNSbUEwQkV6UW8wSHBob3lBRVRBQzR5SmdnaDRYVDdkbUJJeUFFUmdOQVJQMGFGQzZJU05nQkl6QXVBaVlvTWZGTTdhVzUxOTRWM05yOWMwbG5iSTMzYm5WR1NEQURkN3ZsM1RSTU5ZZlNUcEkwa2RHR3ZzNUpiMU8wbldUOW00cDZmaVIyaCt6bVhOSXVxbWtRd0lHRjB3YTUxYnpUMGw2dmFRWFN2cU1wRitPMmZtYzJqSkI3NDIwVE5CN2crdWNXelZCUzJlVDlFQkpSMGs2VTZVd1Q1SjAvMmJqZWNjU2lkb0VYYmxLQmxZelFROEViQUhWbDA3UUIwaDZUYVBsWDNWRldSOHA2YW1TMExBWFUwelFleU5xRS9UZTREcm5WcGRNMEJlVDlCWkpseW9JRU1JOVFkTG5KSjFCMHRVbEhkZ2k2TCtWOU1nbGtiUUplbTllZVJQMDN1QTY1MWFYU3RDWU1vNlJkSGdtdkM4RmN3ZDI4NTludjUyLytmZGpKVDBnK3p1MjZEdEpPbmJPQzJISTJFM1FROUNxcjJ1Q3JzZHFLVFgzbXFDbml1UEJrdDRvNmZUSkFEbjQ0KzlmNkJnMDNIU1lwQmRrejM2eTBiai9TTkxYcHpyaE1jZGxnaDRUemRQYU1rSHZEYTV6Ym5XSkJIMUdTZjhpNlk2SjRQQmVnV0EvVUNGTStPa1JrcDZVMVVXTGZubkY4N092WW9MZUd4R2FvUGNHMXptM3VrU0N2bkNqS2I5WEVqYm9XSjRkVEJ1MXJuTy9LZW1kRFNGZkptbmptWkllTk9mRlVEdDJFM1F0VXNQcW1hQ0g0YldFMmtzazZHc0g5emcwYVFxa2pQOHpKby9hQWtlOVdOS2Rrd2ZlSU9tMmpYYjlrOXBHNWxwdlNRU2RPL0ovc1ZrbzE1QjBjaERlcFNYOWVSTTRjSXZtVUdQLzhMZGZTTUxtaGNQOFB6YzcvN2NxQlQyRW9HbjcwS1RkRndYYlcyVlhwNDV0MWVjNU5mOURTZmNNbjUweFlJQ1Q5WTlLZWxad2pmcGhHQXpZdkRZWkdKK2Z1RDdWRkh4Z2J4YjZ1cHFrODRhSGFQczlrdENzZUhHakcxV080WkNnQythRk85ZWZOSi9TTjBtQ1EranlPMkZ1eUJPM3J6aTNtam5rZFRnQUE3KzdTN3BoTmljT3YvNnVJYVFQQm1MYWE0SWVFcWlTanlVUHBMcEk4MTdjSndTU1hDS3hBWCtqQ1N4NXU2Um5CQk5GZnJpWDQzUEZ4bGI4cDVKb0F3MzRaMkdkNGJFeHBBeDVuNGEwTy9tNkptanB1ODBDZkh3VDVmZlFDbW54YVlXYlQ5OUxQV1JCclVPd0RIblY1NGs0NHdEbWtqM3ovcjZrZTBzNkxrUkREaVZvMXRnZHdrbit1WHI2K3F5a2V6U2tCMkdzUXREMEJXSGlOZEEzTDRiQ1puQ0VKT1Q2NHdyNXh5cEQrbm1GcFB0S09zdUVJZ25iQ0JvTjk4bkJCTkVIQjdMQ0Z2eWh2b29qL1A0UFlWM0Vwb1lxTVNNTVlUdE5MSjJnZVprZmxRbS9UeElmbG5UclJoUDhja2ZGS1JNME1pY3k2K25aNlhqZnZNSHAwMEhyakhYN05HZzBURjc0aC9RMW52ek9Wd3Vmc3hjUHo4YWYralJvTlBRbmhxK2dBZDJkV3JWR3ByRk41b1I4bnpDZ0U2TGdpS0RqMDN3S29kNGxnbVlUNFVCdlNDQUpHeHdIZ0s4ZWdNWFFxaVViTkdOOTN0Q0c1bGgveVFUOWxmQzVmcjlNY0x5c0h3c2F6dzBTYzBkYTdXM0JCdmE5RnFGUG1hQ3gzYUVOcDI1UFVadU1BUVBuYmc1bXJpZHB2MngrNUkyNFN2SzNMb0ptYlQyc3hRVENGOGhiZzZzVWZZQXorUmxpaWFhbDMwMysxa1hRa0NZbWtuc1Y1RUZmNU1Eb0M0U29kZjFxbXhOa0JRSGovbFdhRXlSOStXYWMwWXkwelZ3Y09VRmp4c09lbThvMkRTQkIrK2VMS3ozc2kxRC9WekJiNE5jOGRpbXRJYjU0cnlQcFA4YnViSXJ0TFptZ2MzbGdqK1JrT05XTXdlZjNKTDBzTzBYbTJlY0dyUWk3V2w2bVN0QlhDamJFOHlRRGJ2dk1yL21NN3lKb0NCVk0wNDBBY3duYUR4dEVhci9FWm93WkJFemJ6Q0J0Qk4yMkVmQUp6dWFMemJRVUNJRUduRy9PUkx2ZHBpT3BGY1RBeG5MbUREL2E0Yk03RFVObVRyaVRZVWJDcHB1WEtSRjBPalpraE4wWUdlVmgxVmNJUVNLcFJ3WFA4blhBZWNXWUpackdYcHF0SWI3OE9DdXE5UUlaYzB3YmI4c0V2US95eDRYUDQ3WTQvL00xMnM4cmczMHpDdW1uUWNzOGNTWUVqWmI1a3ViUTgvYkplTkZHK0RlazAxWXVGRjVXeUNrdmJRUk5KTmkvTlJuSmZqOTVBQTJXakg2WVNkcktaVU5HTmc2Vjh0SkcwR2g5YVA1blR4NUFXNzFkcytGK3U2T3Z0a0NJdXdXdmdmeFJUQ2pSRGg5L0F6OE9QdC9YMFU5Ym1QTVVDWnF2Q0x3czBJcmJTbWsrWTJkcmJEUEQ5WDI1ZGd4N25qK1pvUGQ1WjNBSTFwZUU1YmViVHlzV1NFb2ViVDZkVTlTZ3J4bjhTVlB0RDgwUHJiV3YvRTRnUVQ2TjA5SkcwTmdsK2VxSUJaUEZqVU0raHI2K1Nsb3F6NVFJbXZYTEFSODI5VmhxVEJXeExzOXpRTXhCWVN3RVVOeW8wZEp5ODFVSnZ6WXl6K2RJZmdrMCtYUVRtUnBCRDVFUklkamdIZ3ZtUWp5aXVzNWwrdVFlZjBlUmVIU2pJZjlWOXNBUXVkYjJOZmw2U3lmb29mYXNuSGdKVmIxV1kvdGtnYVpsaWdUTkFSb0hmWDFFMUxabzg1ZVNlaVdDeHVlVktDOXMzYkh3Yjhpc1pBN0sreXVSTG5WS0JNMUI0cnNsRVJBUlN5MXB4dnA1RzN3NjR6S1hmMVdzZzE5cFRsTWo2Q0ZhY083ZlBOWmMrRXJCTlJFWHY3VFVhUGFUSjl0VkJyaDBnaDVDSE9ETEp6Zyt1NWc4S0cwdjg5UUlHcC9qTjJjbjlIMGVHUGw2NHN1QnFEQk1IckdVMmlqVnUxWG1QOTIzVm5NQ2FDTm9TUHRmazhiYU5zeXUva29iQ3FIRmFIR3hsSHlNOHpwRDV6UVdxWFdOc2Mwc2xCOFMwc2FRK2VReUhtTXViUWU5UXp4cyttUXd1OStYVHRCM0RYYlpXc0g5UmppcGgwQml3WVhzYVZrRFV5UG9mR05CazhYRmtNMm10dUJsQVJsZXY0ZWc4Y2hnTTRocjY2dmhLMk5JY0FLdVZkaDFVM05TaVd4eXJSWVRGSnRCbjU5NlBtZStMR2dybGp4U0xTZWt0bzI1Qzh0OFRtT1FXdHJmT29FcXRNTVhUNjI3M05oQk4yMEh2YXdqZksyN3poSnExKzhzNnkyWm9BbE13SFZvcUtOOVRXREkxQWc2SjgxVmJZWjV3RUJKZytiek5MVnJzd2x3OFBTREFXOUlhVFBJQ2JxaytYNiswczZkRCtYS21Zc1pXaHRtRHFJT0tSeDJZZ0xnRTV6Q1hMQ1ZmM3lOT1UyTm9KRVJCN3MxWld5Q0xwMDdjQ2hQaEd1Yksydk5PR2RmWjhrRXZTcEo1VnJicTRLemZtcGZuUnBCNHpyR09HUEp3OXhyRjNJK3J4SkI1OXJvRU50bU9vNThJOHdKdXFReDFzNmpyMTZPVHg3aXZpcCs2WnltUk5CRHh6SW1RWmN5M25HdUFPYUxKbWNXNlpJSmV0V1hySVo4YStwRWtxalJ5THNJcGViNUllUHA2cXVHb0d2RzAwZVEvRzZDcmtIcHREcnJtRGkyU2RBbDg5SFFoRXJEa0pwUmJSUDBhY21TYXNWV1EzWTFkVXpRM1lpYm9HdFg1TDU2Y3lYbzNQekdqZDZZSHI4NWJQcTdXZHNFUFp5Z3llUkY1RlFzcGNRdFV5UG9wWmc0aG5xbTFMN1ZObkg4S2xKam1qanVrZ1VHclhyUVd5dkxXZFZiTWtHdmN0QURYbmx1MmxMeThLa1JOQ2szOFV5SVpWWDdlODBoNFY5STRuTFBXUGJxa0xCMGtFaFlOUWRMWTVjOFduR29TWUR4NUllYXE3VFJOYSs1YXRENXU3S1lUSFUxaTNUSkJMMktxMVRKbjdpVVdXc0lRZGRvNUcyeUxKRlVhWUdUVDRTREY5d0VLYXU0MlowMUhEUmlINHlscExIbW04RXFibllYQ0Y0VGwwdjZLcm5aNVJ2R3FnZVNmZS9LQVNIaFVob1FNOVMzTzE4N0p1aDlxSnVnTzFiZmtna2FXTWpCd2UzQnRhVldreHBDMEhsZGtzUGduMTJUREtia0wxd2k2TkxHTWpUQnphcUJLcXZjb2xFYnFKSzc5QTJOREVYdU1jcVBGS2NjSEpPeEQvOWJ2RjZpWjA1cEl4eDY3Vkx0MnFsZGkzbTl1V3JRcTg1M0VjOHRuYURiOGk2MENSOHlUM01FdEQyL0RrRVBNUW5rQnl5TXUrMFRNZGZVaDg2ZFRZTjh3V2twYWRBbFRYdEl4R1lwUHdaOWxqUm8wbmZ5WlpCbTV6dEswbU1xTnpqYUxlVVpxVEZiRFUyem1hOGRhOUNMb05qMUpybDBnZ2E5Mm9SQkI0WmtRM3greDlLbWhRNGg2UHlRcEZZTExHV242eUxvZFpMOThJbFBLczQ4eldSdHNpUXkvN0daUUtaOXBaUVN0WTJnMnpMTWtleUlxNmI2Q25aaHlCZ3pWU3drRFNKYWtvdEswN0xPWmxEYUJFelFmZEx4NzR2Mmc0N2lyMG01Q1VHUjJ6aTliYUpMZ3hwQzBLVjBtYzhQR2RyYU11eVJhL2poaGV2b3V3aTZMZDFvWDdwTWt2ZGo2eVY5WjE2R3BCdXRTWGhUd2puMjJaWlg0dUJ3bDJHYWQ3b210V2xidm1IdUVpUTNkWDRGRnZWSjVQUGdqTXk1b2d1WHdEYVRWQ2xWTFUyWW9FM0F2UWhZZzk0SFVWL1NlbEtTNWtuWHU3S21EU0hvdG9pNDU0UnNjU1JRVHd2WjEvQ1M0TnF0VXVrNkJXOUwyUDluelcwWi81U1JFbXVERzAwZ0h5Ny9MSldoQ2Z2eGJjVnVURTZQUEdGL1YzSjcrbTRqNkpJV0hBbVFDeGl3NmVka3k2VUFSSVNTb1M4dGJOWmQybmRiYm1lUzFaTmNLWlVWK0xWZDltQ0NQZzMxM045OTdJMnJsd1NuWEdIcEJJM1drMktRWHZPRDVrZytodFMrR1dYWnArRU9JV2pheEUrWjNBTzVQUGpjeGpNQmJiMTA3UkMvazZpSkd6QmlydUUrTnlVKzV5SC92T1J6TDExNWxlUFZkK1ZWcm5IR1B2dXV2TXI3NlNKb2ZrTldIT3FsaVp4aVgyQkVibzJZTjROTnFuVHZIdlVnN0JJMktWYmNTUDZtd3JwSSsybTdNaXh0WjJ3aW11c2hvUW02WTRkWU9rR2pPWEtQSGZibDJvTDJ5czNlWFFuK2h4TDBxcGVyOG5uTjNXeVFlQzFCSTNOOGxZK3VuWEJ6NkFiNUhCbVM3cWMzcS9RRmhqQXZEaWRURzI5ZnR4QVhWeHFoa2NZTFZ2c0lPcEowbXltbXIwL21oK21DQ3hocXZHZXdwM05iZDJuemJ1dnJqZUdyQVpPU05XaHIwSDFyOHRUZmwwN1FmRGFUNDVqc2ErbFZVQ1h3dU9PT20xZTRUcW52SlI1SzBQUlhjeTlmSEJkamdad2g1dHlHM2FkQlI3bVRidlNZeGpQamtqMHJCYlBFSWVIUURmc3NZYml4bEZLdDVzME5tZGRKNFdzQ1V3TVh2YVlFWFpOdExmYkZ2WFh4Y3RhK0Y0RnNob2MzZG1kQ2pJY1U3T1ZzUG0ybXByUXROa004UzFobmg1cWdmd1ZtYTlBZHE4NEVMUjBmTmlvK1hkSGN1RGN2M2pCTnVrbDhZdEhNSU9iODh0RTJhRmNoNk5nV2ZmUFM4N21ONTBBNkZqd1QwUExReHFJR3Z3cEJ4NzdRY0xtSzZyQnd3U24rMGhUYS9tZ2dJQTVIc2VFTytZUXU0UkxuQlJseVBWS2NGK1lPWEF2eHBvaGE1cnFoeE13TGVmSjF4SVlDMGNkRFJPYkdJU0oyY0NJUE9ienMyM0RiNU16N1E2NXRiTjBFNktRYkNwc283b1hQYXpiVGVPTzFzOW45T3BJbWFCUDBxUWlzU3pCRHRLdGRyRnNLZHFuUmFsZkJJZytLV1NVc2Y1VisvWXdSbUJRQzFxRDNhZEF1L1FqazRjNWpIM0tsSThnVDVLK2FHclovVnE1aEJDYU1nQWw2T1FUOWo4R2NnYTBWOHdWUmdmOCtZRzFpQ2lIaFVsd3ptQW4rb0FuMCtWcldCbDhxZUZSdzhCcTlKN0IxNXhmcmRuV2RYMURyREdjREJPV3F1NE9BQ1hvNUJKM2J4VXMzd2JTdDdGS1FTOWZ6dVYxeHlJV2s1dzlYTDZGRnh6TGsrZDE1T3oyVHhTTmdnbDRPUWVjM1lHT2lJRGlFbkJ4ZHBlMUNUeTd6NUJDc1ZQTE5BRzBiSDJYdURPd3FwWnVkQ1JQSEovdkV4Yit0Qm1CeENKaWdsMFBRUkVLK1BTUUhpZ3VkeURlQ1hJNXI4ZXRHbXlYSlR4NXhSMTRPZ210T2FYbGpTdUhyZURXUTk0UXhsTHhoMmlJa2NVMGo1MGw2NStQaVhsUlBlSmtJbUtDWFE5Q3M4SzRvUXV6U253aXZBWkZ3cFB6Y3YvQmE0REpHc0VXWC9icVV0eUkyaFZzZFBzNW8xWlQ5R3RJK1NGSjA4VXU3eEszd2o1dnc4Sk9YK1hwNjFrdEh3QVM5TElMR2hFQ0VYcG95ZGNnN0VBTkpQbDN4RUg3T2FMK2tLVjJsY0RESXN5VDhkekVDaTBUQUJMMHNnbWFSSS9QYUtNTDRVaEFLVFlETUVWbENvTDZYWmtnVVlXeUxvQmcyRUJJUTVVbU8rdnJ6NzBaZ3B4QXdRUytQb09NQ2hqeEpHc1JOSW1Sd0l6Z0VEVHVXYnpTSGlDYzBrWExIQnZjNlRCT3JGdHBsVTZDdlBMS1BOdkZ6SmxLVHpIUDh2eXZQeWFwajhITkdZSFlJTEltZ1p5Y2NEOWdJR0lGbEkyQ0NYcmI4UFhzallBUW1qSUFKZXNMQzhkQ01nQkZZTmdJbTZHWEwzN00zQWtaZ3dnaVlvQ2NzSEEvTkNCaUJaU05nZ2w2Mi9EMTdJMkFFSm95QUNYckN3dkhRaklBUldEWUNKdWhseTkrek53SkdZTUlJbUtBbkxCd1B6UWdZZ1dVallJSmV0dnc5ZXlOZ0JDYU1nQWw2d3NMeDBJeUFFVmcyQWlib1pjdmZzemNDUm1EQ0NKaWdKeXdjRDgwSUdJRmxJMkNDWHJiOFBYc2pZQVFtaklBSmVzTEM4ZENNZ0JGWU5nSW02R1hMMzdNM0FrWmd3Z2lZb0Njc0hBL05DQmlCWlNOZ2dsNjIvRDE3STJBRUpvekEvd05qV05QcVNHZlpGd0FBQUFCSlJVNUVya0pnZ2c9PSIvPjwvc3dpdGNoPjwvZz48L2c+PC9nPjxnIGRhdGEtY2VsbC1pZD0iV0l5V2xMazZHSlFzcWFVQktUTlYtNyI+PGc+PHJlY3QgeD0iMTYwIiB5PSIxMTAiIHdpZHRoPSIxMjAiIGhlaWdodD0iNDAiIHJ4PSI2IiByeT0iNiIgZmlsbD0iI2ZmZmZmZiIgc3Ryb2tlPSIjMDAwMDAwIiBwb2ludGVyLWV2ZW50cz0iYWxsIiBzdHlsZT0iZmlsbDogbGlnaHQtZGFyaygjZmZmZmZmLCB2YXIoLS1nZS1kYXJrLWNvbG9yLCAjMTIxMjEyKSk7IHN0cm9rZTogbGlnaHQtZGFyayhyZ2IoMCwgMCwgMCksIHJnYigyNTUsIDI1NSwgMjU1KSk7Ii8+PC9nPjxnPjxnIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0wLjUgLTAuNSkiPjxzd2l0Y2g+PGZvcmVpZ25PYmplY3Qgc3R5bGU9Im92ZXJmbG93OiB2aXNpYmxlOyB0ZXh0LWFsaWduOiBsZWZ0OyIgcG9pbnRlci1ldmVudHM9Im5vbmUiIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIHJlcXVpcmVkRmVhdHVyZXM9Imh0dHA6Ly93d3cudzMub3JnL1RSL1NWRzExL2ZlYXR1cmUjRXh0ZW5zaWJpbGl0eSI+PGRpdiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94aHRtbCIgc3R5bGU9ImRpc3BsYXk6IGZsZXg7IGFsaWduLWl0ZW1zOiB1bnNhZmUgY2VudGVyOyBqdXN0aWZ5LWNvbnRlbnQ6IHVuc2FmZSBjZW50ZXI7IHdpZHRoOiAxMThweDsgaGVpZ2h0OiAxcHg7IHBhZGRpbmctdG9wOiAxMzBweDsgbWFyZ2luLWxlZnQ6IDE2MXB4OyI+PGRpdiBzdHlsZT0iYm94LXNpemluZzogYm9yZGVyLWJveDsgZm9udC1zaXplOiAwOyB0ZXh0LWFsaWduOiBjZW50ZXI7IGNvbG9yOiAjMDAwMDAwOyAiPjxkaXYgc3R5bGU9ImRpc3BsYXk6IGlubGluZS1ibG9jazsgZm9udC1zaXplOiAxMnB4OyBmb250LWZhbWlseTogJnF1b3Q7SGVsdmV0aWNhJnF1b3Q7OyBjb2xvcjogbGlnaHQtZGFyaygjMDAwMDAwLCAjZmZmZmZmKTsgbGluZS1oZWlnaHQ6IDEuMjsgcG9pbnRlci1ldmVudHM6IGFsbDsgd2hpdGUtc3BhY2U6IG5vcm1hbDsgd29yZC13cmFwOiBub3JtYWw7ICI+UGx1ZyBpbiBsYW1wPC9kaXY+PC9kaXY+PC9kaXY+PC9mb3JlaWduT2JqZWN0PjxpbWFnZSB4PSIxNjEiIHk9IjEyMy41IiB3aWR0aD0iMTE4IiBoZWlnaHQ9IjE3IiB4bGluazpocmVmPSJkYXRhOmltYWdlL3BuZztiYXNlNjQsaVZCT1J3MEtHZ29BQUFBTlNVaEVVZ0FBQWRnQUFBQkVDQVlBQUFBaUNpUVZBQUFBQVhOU1IwSUFyczRjNlFBQUVNMUpSRUZVZUY3dG5YZnNQelVaeDkrNFZ4QVhUaVFLS280WTk0Z2J4UVZxVkhDdktLSUdSZU5ldUhDQW9sRlVRQkFIdUVDVWlLSzRCK0lXMUFnYURTNVVjQ0NJRThWeGIyMURlZEs3YSsrdW44LzFjKzhtL01IdmM5ZnhldnJ0KzlvK2Zib0ZsRVJBQkVSQUJFUkFCQ1luc01Ya09TcERFUkFCRVJBQkVSQUJTR0RWQ1VSQUJFUkFCRVNnQUFFSmJBR295bElFUkVBRVJFQUVKTERxQXlJZ0FpSWdBaUpRZ0lBRXRnQlVaU2tDSWlBQ0lpQUNFbGoxQVJFUUFSRVFBUkVvUUVBQ1d3Q3FzaFFCRVJBQkVSQUJDYXo2Z0FpSWdBaUlnQWdVSUNDQkxRQzFZSmIzQTNEc2lQei9EZUFNQUw4RThFbVgxM2NBL0NzaHo2c0QrQnFBYXdmUDNoL0FSeFBlWGZJanp3T3did0RnY0FDUHJSQ0k3RitoMFZUbDlSS1F3SzZYZjI3cFl3VTJWdDd2QUR3ZHdGRTlRcXNCTnRkYS8zOWVBanVNbTk0U2dlb0pTR0RyTW1FSmdmVUVqbTVtdHJzRCtHTUxFZ25zc0w0aWdSM0dUVytKUVBVRUpMQjFtYkNrd0pMRW9RRDJCUERQQ0JZSjdMQytJb0VkeGsxdmlVRDFCQ1N3ZFprd0pyQTUrNkFYQjdBMWdEc0JlQ1dBN1NMTmZ6U0E5MGhnSitzWUV0akpVQ29qRWFpTGdBUzJMbnVORmRpd3RaY0c4R1lBVHpBSVRnR3dJNERmbW4vWERMYXV2akoxYldYL3FZa3F2NDBuSUlHdHk4UlRDaXhiZm5rQUh3SndkNFBoQVJGdlpRMndkZldWcVdzciswOU5WUGx0UEFFSmJGMG1ubHBnMmZwN0EvZzRjS0dibFRpejNVc3oyTG82UitIYVNtQUxBMWIybTBkQUFsdVhUVXNJN0pVQmZMRTVwbk9qQUFYL2Z4Y0FmdzcrVFFOc1hYMWw2dHJLL2xNVFZYNGJUMEFDVzVlSlN3anM1UUI4RE1CZEFoVGZBbkRQNW56czJRTUYxanIyeEFTN2kvelk5N2NIOEVRQUR3SndYUUFYY1lXZEJ1QURBTjdXN0QyZjd2N05Da2R1WGZ0NlVLcVRrN1hETHdEY3pnVUdZUmxYQXZBNEFIUkM0OGNRSGRhWWFLTnZBSGhyOC96eExSN2dmWFZNK1gyc3dGNEt3RjBCUE5EMU5kckZ0NEhsMDNQOUp5NEF5dnVhRHp6MndaUUFLSlp2NlBSSFB3T1d4OVdZV3hobW53SndBSUN2dDVUamVUTW95STJEUGtTNzhFamJHNE0rbE5PWHcvcHQ2ZnFwTGVQWExvQUw2L2NEQVA5Sk1aQ2VtUjhCQ2V6OGJOSlZvMVVKckIzY1dhZWNBWGFzUUE1OS8ycU5sL1NCYmxEdHN5eVh3VjhBZ0lOY0dLRnFiZ0w3ZXdEUGFNVGhWVWFRWXUwN0Y4QWpBUnhYWUZET3NYOVlOL0xkMndVekNRVzF6ejc4R05xakVlUFA5N1FsSnJEOFlOd1p3SHVkZmJ2SytpeUFSd0U0MHoxMFVYZFViZjhFM216WGZqMGZOV1ByOTAxWHZ4LzFBZFB2OHlNZ2daMmZUZVlnc0dPWGlJY0twRy83a1BkdjVoeXp0c2t3S1FmdnA3azlhQjhDY2s0Q2V5OEErd0RZTmFOTmZQVFpqYkM4WVdLUkhTS3dRMnhpbTlyWEZ0dFg2S0IzUFFBVXlOUkVrWDB3Z0wrNldlMlRVMTkwbkZuSHRsbG1ySDZjV1hPVzdsZFcrb3BqdlI3aVBwejZudFh2TXlJZ2daMlJNUktxVW1JR2UwMEFKd0xZTmlpZm5zVVBBM0IrOEc4NUErd1FnUXlibi9zKzYvNXBON0JhakR4MnhHVkFwdHU2NWI3d0djNlUyTGJMdUgrY2k4QXloT1ZKQUNpeVBqR1dOSmRPdjlzSUwyZGFzZmJ3V1E3SWR3Ync3WVErbGZwSWp2MlpaNWROdUVMQ1ZRTWZOWXpMeFZ3T3YyeWtNbjF0c1gzbFNBQzdHZkVpczVNQlhOSXRUNGQ5M1JmSjFRenk1WXpVSnk1YjB3R1FSOVo0ZnZ5K2tWbnRQOXpTOTFkYlFOcjZ2UmJBVTRQK3h0ZTRKUHlaWmtYbFBBQTNiN1pzYmhYSjZ4elhGN2dkb0ZRSkFRbHNKWVp5MVN3aHNCVFM5eHNNenpjRERYL09HV0J6QmRKYUllZDk3bDErdVBsSTJNbGtjb3piZStQRkJtRzZscHVsY0c4dWx1WWlzR0hkT05DL3hKMWIva3VrUGUrS0hMWGluaXhuNTFQdDMrWFkvMklBRG82Y3NUN0lMUmVmRlFIUHNlajJBQTVyOXNsM01MOTN0Y1gybGZEVldIa3NoLzRGM0l2ZktuaVluUHg0U0ZIbkhqN0ZPdHdINXN5VGZ4dTBSWmlHMXE5dEdaejd2MXlCZUl3cDU0ZXVuOXMrWGRjb3RxRGFTbURyTXZiVUFzdXY4cytaV1YzYkYzbk9BSnNqa0RFTDVMelAvYk1qVENZdmQzdVdzWkNQZkpSN2dTOXF4T2Vsa2NMbkpyQ2N1WEEvOFNzZFhUVjJudm5uemF6K0RvMVEvR3FpTHA1ai81czBnbitDRVRCR0RxTXc5UW4rVmR5c01aekZ4Wnp1ZkxQYUJKYi8vcnFPOGppTDVENjhUWDB6UmZhZFE1ekRtWC8zVkRjejVuNjVUVzMxSXg4dSsvcTlYL3NlVnlpZUMrRFZrYjc5c29sc3Ftd0tFNURBRmdZOGNmWlRDaXhuY3R3SFl0akVNTkZCaEgvNGZ6UC9ualBBNWdqa0dJR2xzUERhUFM2Vit0UldmMXNPQjBvNndYQTVNVXh6RTlpbnVObGdYMWV5NTVscFAzcUcwMGxtaXBSai95ZVpPblBtUlEvaTN5UldoSTVhWWJoT2ZpUndDVGsyYzRzSkdQc0VWeWhzSHc2TDU3STB0MGJvR0JlbUZONzNBRUF2WkQ5Ky9xRlo0cjJqOC9pMVRZelZqOTdTRE83eXN4NGVNVEhQWlptSVhJK1ZJQ0NCTFVHMVhKNWpCSmEydnFMYjQrRlJEODc4ckpNRmw4WVlKdEh2V1lZdHlSbGdWeVd3SE5Ub3FNUWxTYWErL1RCcm1kaE1hMDRDbXpNTGpRbEdUcHpxdmw2YlkzOHV3ZEpwaUI4K2RCN2pVaTFYREZMVExadCsrS1ZnbjdKckh6WW1ZQTkzUzhCZDVjV09wNlh5dmlHQUw3dS9KNWFSV3o4dTNiOGxFWVpsd2RkaWtkWVNzOU5qcXlRZ2dWMGw3ZkZsbGI1TnAydFpMV2VBWFpYQTh1aktDd09zdWVKSVllWmVITVhBcDl3OCtxdzY5QndzODQwNW03V1Zkd1UzcXdxWFZ0Y2xzSDFNK240Zkk3QmRzOG13M0pqdFUzbmJ2NFVjZ2VWc25LdEdQKzJENEg3bitXSFdpdzVXUHNVaXJTVm1wOGRXU1VBQ3UwcmE0OHNxS2JBVWd0ZDNITzZmbThER0JoN3VWK1hNbEdpUlo3cDJ6MUZnMlJhN0I5ZldpMkl6c2lVS2JOZCtyV1gzYnVOSWxDcGNZd1EyVmNURHV2SWpraCtUUHZGWUVXZXgxdUZ0L0FpakhDWWxJSUdkRkdmeHpFb0lMSTlMOEVZZE9tcDBwYmtKYkN6RUkyZWk5Q2pPU2ZkeFRqVnpGTmhuT1cvU2xQYlVMckQ4WUxxcFcwM2c5c1UxZ2tibnpCQnpWaUNzd01hODUyUHN4d2hzemtlVEw5diszY2NDd2FUMEVUMnpZZ0lTMkJVREgxbmNXSUhsRnk4ZFRTaXFuM0JuUjFNZFQrWW1zSFRTWWp0NGp0ZW5JVE0ydXh5Wk0wQ25tSFBNRW5GT2Uyb1FXSHJHOGdnS1F6M1NidHlqdlUwVGVwQjc0YkV6c0o1dmpzRG16QkRYSWJCRFBnS3Ryd0U5aitraFRtY3BwUmtUa01ETzJEaVJxbzF4Y2hyYjBya0piTTQrWFZmYkpiQnBQU1BIL21HT0ZFNTZhalBhRVdQNkRrazVBbnQ0czcvSjJMNHBhUjBDbS9QUjVOc3dWVjlQWWFKbkppUWdnWjBRNWdxeWtzQmVBSG1xUVVjQ205Wnhjd1dXczFVZTkyTEFDY1lqemttTWJNVHl3c0FQYlpHcFVsY0lZdVZMWUhPc29tZXpDVWhnczVHdDlRVUo3QVg0dFVSODRhNDRweVZpbnQ5OERRRHVJWGNsaGlia2ZpTEQvM0ZwbnY4eHFEMzNZb2NlMDluRUdhdzlkNnM5MkxVT3crbUZTMkRUV2MzaFNRbnNCVmE0cW90dXhQT2ZQZzNaMzVxemsxUE9jdUtjQlBhaEx2eW1IVjhZYjVjQkpCaVZpdGNGL3IzbGp5cG5kYUsyR1d5TzQ1ckh3MnNYdWJmc1UxZmtxRG1NVTZxREl5Q0JyYXNyMUNLd05wSlBydVBRMjAwYzI5ajczTnY3aUluQk8rU1l6dGk2OXZXZ1ZBRVlLNUJqMys5clIrb1NjU3k2RmtNSThtT2hMU0MrTFh1VEJUYjFLRkRJeEo3MzVnVUUvSmhzKzBEcHM2VitYeEVCQ2V5S1FFOVVUQzBDYSt2SnFEYzhLUCtuQkE0eDRXd1RhRHZ3cElUSUM2c3c5MEFUTmM1Z3JjY3JlVE55V0JqNnNLOGIyQm5iSmprNU1Vb2FiMGp5TnduMXNZaDlPS1VlSityTFc3OFhKaUNCTFF4NDR1eHJGZGl1V0xJV2tRMUR4OS9iQk5idVRlV0dTdHplN2ZWeGR1WlQ3bXk3ejhSTG04SGFPTUtwa1pVOFI0NUpuT1h0R1lEZEpJSE43YU84WWVnTFRjQ1JTemdldWUvMzlVLzlYcENBQkxZZzNBSloxeUt3ZGhiREcxUTRnejIraHduNzR5dWFlMmhmYko1ckU3M1ljdVFIQVhDUWI3dEp4MmZOMlNzSGNudTV0Z1EyYnFUVUpXSzc1TTVWQzRZRzVCMjJLWW5QY3EvV0N3cmYyU1NCWlh0U0w2VGc5WGhITlhjQTd4S0F5MTJsU1dHdVp3b1JrTUFXQWxzbzIxb0VObmFKTzhPN2NkK29iV21NZlpISE9uakRqNzJFb0V2MFl0ZlZNYlFjTDdZTzcvSU1UY0t5T0VONlUyWlpROHk2dEJtc2RSb2pNOXBqMzRTcjZqaGJPN1lKaE04b1hXSHF1aGtvbFcvTWR1czRwdVBya1hLbG92WEU1b2ZxcmdPaWxRM3B0M3BuQWdJUzJBa2dyakNMV2dTVy9lb2Q1czVNWXVMZ1NXR3oxNDR4dWcvdnVPUWRuYkhVSmJCdEY2N3pFbmw2Yko1aE1tUlorelFSclhndFdXNVpRMHlkS2dCam5aVEd2dC9YdHRRWjdIWGNYYkJoaEMwZXgyR0lRSDdReEs2UTI4YUpzRjFOQ092VXRoK2R5bmR1QXN2NkhBTmdyOGpmQTQrZzhSSjN0amxNcWFzemZiYlU3eXNpSUlGZEVlaUppcWxGWU5uYzJEVmJIZ01Ec3AvY0NCMkRFVEJjbm8zd3c2dThlSituSDZUN2xtMzVQdmVwN015SDVaMFNYTDhYSzR1emd2RHZvSytzWEZPbUNzQllnUno3ZmwrN1VnVzJiWm1mK1hQWi9pUUEzM09GYlEyQUFTUjRFMUNZem5YTHd1RmRyVzFIc0ZMNXprVmdiWCt6ZlpRaEVHOFFxZXlQbS90cmR3TEFLL1dVS2lFZ2dhM0VVSzZhTlFsczF6SnNGM1V1bmIzVE9SL3hMbEdtRk5Iak5XMk1yeHdUMmJieWptNDhYRTlyWmxVY3BIMUtLU3VuMTZRS3dGaUJIUHQrWDV0U0JaYjVjRytjMXdEeUV2amN4S004ajNENzhMeUV3cWUySVBtcGZPY2lzRWNDT0R1eTk5L0ZpUitrL09DTVhUaWZ5MWZQcjVDQUJIYUZzQ2NvcWlhQlpYUFp2KzdXM0l4eUNJRHRldHJQV2NzZXpxbURNeGNHOHM4UldHYlBwYlVEM0dEVWgzdHZBUHU1NitxNFAralQxRmVCcFFyQVdJRWMrMzRmcnh5QlpWNDhic1U5UkY0dW5wSVluZWc1THFBQzk4NVR6eWVuOHAyTHdETFMxT1BkVnNuK3pUVjBqSHJWbGpqanA4TWZuZkZpUytzcFhQWE1HZ2xJWU5jSWYwRFJ0UW1zYnlJSEVjNW11UC9LMjFQOGtpQnY5L2wrTSt2a2tqRDNvL3o5bG5Zd3o1bFZzay96cUE4SDZKMk5zSE8yeXBrVjk3ZjgzdXlZQVRyRmhLbjVqeFhJc2UvM3RTVlhZSDErM0YvZDNkMWZ5bHQwdktCd1g1YTN3VEJvQWgzYk9Fc0xuZEo0dzg0SkFMWnlHZkY0Q285bDhkL0NsTXAzVGdMckx5TWdVLzVOMEZGdlcxZEJ2NHgrYUxOMXdqMVhmbmdxVlVwQUFsdXA0VlR0eVFqWVlCV0hPVUdZckFCbHRHZ0NZejRBRmcxdUV4b3ZnZDBFSzZvTlF3bXcvelBDRVBmOGZGS1VuS0UwOVY2TWdBUjJ3ZjFDQXJ0ZzQyOUEwN2xrenJPTTNMOWpDRG91Tng3WDdGdWRuOWcyWGhoQTcrTWRndWNaRUlQT1Vrb2lNQVVCQ2V3VUZDdk5Rd0picWVGVTdmOFJzRWVCemdUQVl3N2MyMHRKTmtoRjd2c3BaZWlaWlJPUXdDN1kvaExZQlJ0L0E1b2VpeGlWR2pXSXpsWU1PK2VkYUlpRERsQU1USjg2QTk0QWhHcENZUUlTMk1LQTU1eTlCSGJPMWxIZCtnZ3dudkRCNW1vN3ZrT3ZaRWFHT2l1U0FiMVlHWkx4UUFCYkJyK2YwNXk5M2RFRndPZ3JWNytMUUNvQkNXd3FxUTE4VGdLN2dVWmRXSk82b2pqeFdNNkpBTTV6VWFOdTdhSkcyVmpIUERMQ01JMEhMWXlkbWx1ZWdBUzJQT1BabGlDQm5hMXBWTEVNQWp3ZnlUT0Q0WEp2NnVzOGQ4aHpta2NrQktOUHpWUFBpWUFuSUlGZGNGK1F3QzdZK0J2VzlKd29UcjdwakJiRmNIeW5iaGdMTldjK0JDU3c4N0hGeW1zaWdWMDVjaFZZbUFBakIzR1BkYmNtUXREMVRTQjVIem1LczEzZXMzbDY0Ym9vZXhHUXdDNjREMGhnRjJ4OE5WMEVSRUFFUktBY0FRbHNPYmJLV1FSRVFBUkVZTUVFSkxBTE5yNmFMZ0lpSUFJaVVJNkFCTFljVytVc0FpSWdBaUt3WUFJUzJBVWJYMDBYQVJFUUFSRW9SMEFDVzQ2dGNoWUJFUkFCRVZnd0FRbnNnbzJ2cG91QUNJaUFDSlFqSUlFdHgxWTVpNEFJaUlBSUxKaUFCSGJCeGxmVFJVQUVSRUFFeWhHUXdKWmpxNXhGUUFSRVFBUVdURUFDdTJEanEra2lJQUlpSUFMbENFaGd5N0ZWemlJZ0FpSWdBZ3NtSUlGZHNQSFZkQkVRQVJFUWdYSUVKTERsMkNwbkVSQUJFUkNCQlJQNEx4MjhHcENHekFqckFBQUFBRWxGVGtTdVFtQ0MiLz48L3N3aXRjaD48L2c+PC9nPjwvZz48ZyBkYXRhLWNlbGwtaWQ9IldJeVdsTGs2R0pRc3FhVUJLVE5WLTgiPjxnPjxwYXRoIGQ9Ik0gNjAgMjkwIEwgNjAgMzM5Ljg4IiBmaWxsPSJub25lIiBzdHJva2U9IiMwMDAwMDAiIHN0cm9rZS1taXRlcmxpbWl0PSIxMCIgcG9pbnRlci1ldmVudHM9InN0cm9rZSIgc3R5bGU9InN0cm9rZTogbGlnaHQtZGFyayhyZ2IoMCwgMCwgMCksIHJnYigyNTUsIDI1NSwgMjU1KSk7Ii8+PHBhdGggZD0iTSA2MCAzNDguODggTCA1NS41IDMzOS44OCBMIDY0LjUgMzM5Ljg4IFoiIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzAwMDAwMCIgc3Ryb2tlLW1pdGVybGltaXQ9IjEwIiBwb2ludGVyLWV2ZW50cz0iYWxsIiBzdHlsZT0ic3Ryb2tlOiBsaWdodC1kYXJrKHJnYigwLCAwLCAwKSwgcmdiKDI1NSwgMjU1LCAyNTUpKTsiLz48L2c+PGc+PGcgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTAuNSAtMC41KSI+PHN3aXRjaD48Zm9yZWlnbk9iamVjdCBzdHlsZT0ib3ZlcmZsb3c6IHZpc2libGU7IHRleHQtYWxpZ246IGxlZnQ7IiBwb2ludGVyLWV2ZW50cz0ibm9uZSIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgcmVxdWlyZWRGZWF0dXJlcz0iaHR0cDovL3d3dy53My5vcmcvVFIvU1ZHMTEvZmVhdHVyZSNFeHRlbnNpYmlsaXR5Ij48ZGl2IHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hodG1sIiBzdHlsZT0iZGlzcGxheTogZmxleDsgYWxpZ24taXRlbXM6IHVuc2FmZSBjZW50ZXI7IGp1c3RpZnktY29udGVudDogdW5zYWZlIGNlbnRlcjsgd2lkdGg6IDFweDsgaGVpZ2h0OiAxcHg7IHBhZGRpbmctdG9wOiAzMzBweDsgbWFyZ2luLWxlZnQ6IDgwcHg7Ij48ZGl2IHN0eWxlPSJib3gtc2l6aW5nOiBib3JkZXItYm94OyBmb250LXNpemU6IDA7IHRleHQtYWxpZ246IGNlbnRlcjsgY29sb3I6ICMwMDAwMDA7ICI+PGRpdiBzdHlsZT0iZGlzcGxheTogaW5saW5lLWJsb2NrOyBmb250LXNpemU6IDExcHg7IGZvbnQtZmFtaWx5OiAmcXVvdDtIZWx2ZXRpY2EmcXVvdDs7IGNvbG9yOiBsaWdodC1kYXJrKCMwMDAwMDAsICNmZmZmZmYpOyBsaW5lLWhlaWdodDogMS4yOyBwb2ludGVyLWV2ZW50czogYWxsOyB3aGl0ZS1zcGFjZTogbm93cmFwOyAiPk5vPC9kaXY+PC9kaXY+PC9kaXY+PC9mb3JlaWduT2JqZWN0PjxpbWFnZSB4PSI3MyIgeT0iMzI0IiB3aWR0aD0iMTQiIGhlaWdodD0iMTUuNzUiIHhsaW5rOmhyZWY9ImRhdGE6aW1hZ2UvcG5nO2Jhc2U2NCxpVkJPUncwS0dnb0FBQUFOU1VoRVVnQUFBRGdBQUFBL0NBWUFBQUMxZ3d1bUFBQUFBWE5TUjBJQXJzNGM2UUFBQTh4SlJFRlVhRVB0bVZuSVRWRVV4MytmcWNnREphV0lSSWxTTWp5SmlKQXA4NHZ3UUlaQ2hpSmtLSW1Fa0F4djVrSVVIZ3labFJCS2tmSWtudlFwU2g0UTlyL08wZjZPZSs3Wis1eEwrMzdPZWJ2bnJqMzg5bi90dGRiZXA0Rm0valEwY3o1S3dIcFh1RlN3VkREd0ZmanZYUFFvTU1jUzVSVXdHbmlYVTZqMndHVmdlTlQrQ3pBTWVKS3pQKzltU1FXVGdPcHdMN0FDK09uZE85UUY0QTlnTEhDOXVRS0s2d1V3RW5qdkNWa1hDc1pNZVZ5MXJnQy9BcU9BZXg0cTFoV2d1QjRENDRBUGpwREJBOG90RndOdExLQ3R3RWJIcUJvODRHUmdNTERCQXZSeDFlQUJKeG1YZkdpUzgwMmdud1dwZlRqUjVNZFBHYTVhRkxDYktUTG1BMXJvdmtEcmFMeHZ3RXZnRkhBYWVKczJqNnhFTDhCTFVUVnpCV2hoZGJRTzJKN2hxbmtCdXdMN2dDbU9lLzBzc0xKU3hlVUtLTHM5d0hKclFKVmR5bzFTT08zSkF6amVxSFVHYU9jSUY1czFBaExrZ2QzT0ZWQnRPdWR3VlYvQUljQlZvRU1DN2h4d3pManFzK2o5QUZOMExJa3FMTnYwb3dFY0F6eUtYL29BcW8xVzZJS0hxL29BeWkxVkR2YXhacXhpZnhid1BFWE4vdEY4ZWxyL042bTZmQUZiQWZ1QlJWYUhmNnlhOVo4UDRHYXpuemRaYlY5SGUvOU5ocXQyanhhbXQyVzNGdGloMzc2QWFsTnBwVzhBMHlwRVZWZkFUc0NkS0ZKcURKMWNwZ1BuSGZlaFZGWTBqWGtVWVhWRWE4d0RtT2FxYTRDZGlhanFDampVVE9nV0lBL1JvOENsdlpTVmhtTCtqc0ExYy9ZY0ZMMzRiaFpzaENrdDcrY0ZUSE5WUmRVNEVHZ3NWMENGK0YyV1d0dUE5WTdxeFdaS0swdXROcXVBM1hrQjFVOGwzMWVRbUFwOGpnWnlCVXhPYmpadzBoTndJWERJYXFOWXNhd0lvUHJTdmxQT3NndUExWllhcm9ESm00UzR3UEJoVkdWMTBXcWd0REszS0tCS3B3UEFna1JValYyMTdnSEYxUU5RRkxWemtTNmFaZ0l0SFMrZGdsVXdGaTRacHZWZXg2d1Rqb0MxMklNVkExVlJGNDBCNWFwSGdIbVdxNm8yMUw1UVFaNTFiWmdNRUxXSW9pcEdEdGNLTU0xVmRheFMwVHd3QWsrN0Z5MmFCNU9GUXVFOG1CYmRGTjZQVndsOWFZQkZLNW5rdUlVcm1UUUd1YXJ5MTR3VWcybzMyN1dzUmJlWThkVmZybG8wS3pmMU11ZkV1OGIvdTFRd3JBWllxOU5Fazg4TnRkeUROaythcTJaOW0vQTVEK29iaWdweSt5bDhIc3hTTC82L2JWVGhURWcweUFLVWVaRVR2ZEtWN285K1AzOUxRUTJnUzZyYmdBSkkvTGdBeXZhZjM4bTRLcGUwVXk0Nm1BTXdibEx0VnUxcGRBWlVNWkY2RWYzZmZRRE5xMVN3N1VvRmc1WEdjV0tsZ280TEZheFpxV0N3MGpoT3JGVFFjYUdDTlNzVkRGWWF4NG1WQ2pvdVZMQm1wWUxCU3VNNHNWSkJ4NFVLMXF4VU1GaHBIQ2RXS3VpNFVNR2FOWHNGZndIYUdrRlBCQWVGUUFBQUFBQkpSVTVFcmtKZ2dnPT0iLz48L3N3aXRjaD48L2c+PC9nPjwvZz48ZyBkYXRhLWNlbGwtaWQ9IldJeVdsTGs2R0pRc3FhVUJLVE5WLTkiPjxnPjxwYXRoIGQ9Ik0gMTEwIDI1MCBMIDE0OS44OCAyNTAiIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzAwMDAwMCIgc3Ryb2tlLW1pdGVybGltaXQ9IjEwIiBwb2ludGVyLWV2ZW50cz0ic3Ryb2tlIiBzdHlsZT0ic3Ryb2tlOiBsaWdodC1kYXJrKHJnYigwLCAwLCAwKSwgcmdiKDI1NSwgMjU1LCAyNTUpKTsiLz48cGF0aCBkPSJNIDE1OC44OCAyNTAgTCAxNDkuODggMjU0LjUgTCAxNDkuODggMjQ1LjUgWiIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMDAwMDAwIiBzdHJva2UtbWl0ZXJsaW1pdD0iMTAiIHBvaW50ZXItZXZlbnRzPSJhbGwiIHN0eWxlPSJzdHJva2U6IGxpZ2h0LWRhcmsocmdiKDAsIDAsIDApLCByZ2IoMjU1LCAyNTUsIDI1NSkpOyIvPjwvZz48Zz48ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtMC41IC0wLjUpIj48c3dpdGNoPjxmb3JlaWduT2JqZWN0IHN0eWxlPSJvdmVyZmxvdzogdmlzaWJsZTsgdGV4dC1hbGlnbjogbGVmdDsiIHBvaW50ZXItZXZlbnRzPSJub25lIiB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiByZXF1aXJlZEZlYXR1cmVzPSJodHRwOi8vd3d3LnczLm9yZy9UUi9TVkcxMS9mZWF0dXJlI0V4dGVuc2liaWxpdHkiPjxkaXYgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGh0bWwiIHN0eWxlPSJkaXNwbGF5OiBmbGV4OyBhbGlnbi1pdGVtczogdW5zYWZlIGNlbnRlcjsganVzdGlmeS1jb250ZW50OiB1bnNhZmUgY2VudGVyOyB3aWR0aDogMXB4OyBoZWlnaHQ6IDFweDsgcGFkZGluZy10b3A6IDI0MHB4OyBtYXJnaW4tbGVmdDogMTM1cHg7Ij48ZGl2IHN0eWxlPSJib3gtc2l6aW5nOiBib3JkZXItYm94OyBmb250LXNpemU6IDA7IHRleHQtYWxpZ246IGNlbnRlcjsgY29sb3I6ICMwMDAwMDA7ICI+PGRpdiBzdHlsZT0iZGlzcGxheTogaW5saW5lLWJsb2NrOyBmb250LXNpemU6IDExcHg7IGZvbnQtZmFtaWx5OiAmcXVvdDtIZWx2ZXRpY2EmcXVvdDs7IGNvbG9yOiBsaWdodC1kYXJrKCMwMDAwMDAsICNmZmZmZmYpOyBsaW5lLWhlaWdodDogMS4yOyBwb2ludGVyLWV2ZW50czogYWxsOyB3aGl0ZS1zcGFjZTogbm93cmFwOyAiPlllczwvZGl2PjwvZGl2PjwvZGl2PjwvZm9yZWlnbk9iamVjdD48aW1hZ2UgeD0iMTI2IiB5PSIyMzQiIHdpZHRoPSIxOCIgaGVpZ2h0PSIxNS43NSIgeGxpbms6aHJlZj0iZGF0YTppbWFnZS9wbmc7YmFzZTY0LGlWQk9SdzBLR2dvQUFBQU5TVWhFVWdBQUFFZ0FBQUEvQ0FZQUFBQkR5bzQrQUFBQUFYTlNSMElBcnM0YzZRQUFCZ3hKUkVGVWVGN3RtV2VJWlVVUWhiODFZY0ljZnhnd2dBRUVjODQ1THVvcUpsUlVSQkd6WXNRZllrVEZqSWsxWUZwMVYxbHp4b3pwaHdFVGlwaEEwVFZIRkVPZnBWcHFlKzY3dCsrN3UrOE5RemNNTS9OZWQ5M3FjMDlWbjZvZVJ4bTFDSXdyK05RalVBQnFZRWdCcUFEVUxZa1VCaFVHRlFaMVF5Q0RRYWNCNXlYelRnY3VBUDd0K1BUMWdNZUFoWnlkRzRDamdMODYyaDdJY3VXZ0JZRUhnRTNkRTM4RHRnSmU2ZUJGbGQzM2dXMkJMenJZSGVqU21LVFhCNTRHNW5WUGZ4N1lGZml4RDQ5azk5U0VtZjhBT3dCUDlHRnZhRXNpUVBwOU1uQmg0c2s1d0ZsOWhKclkrR1FBYUM1bnIxOWJRd05IRC9iSHZFSmlDckMxOCtoUFlKdndtZGlVT3hZRkhnSFdkUXVlQXZic2s0MjV6NTBsODFJZFZKVlVYd3U1YUVmZzJ3d1BaTzlzNEV3Mzl3ZGdlK0RWalBXamJrb0tVTmRRVXdKK05JQTBtOXZwU2NBbG8yN25tUTVWS2VsK1EyMEpTL1NydTJjL0NPd04vSjdwejZpYjFxdlVXTk0yNi9WTFhhakp6cVhBc1c2SFh3WWJtd0VmamJwZHQzQ29yaFk3RWJnNDgxVGJEYmpQaFpZRTVyN0FYUm0rekI2U3VtVEc0Y0NXd0xKdXpUZEJqejBIM0dLaDIxWmN6Z2ZzRGh3TXJBVXNuTHpBbDVwczF3RTBQM0N2Q2J0b3QrcFVxd3F0WExXOE9UQVJXREVEeUo4TXhMc3paTWVjd0hIQXVlRkhmemNOMlQ0Q2tPMi8vZVNtYXI0cTFMeUFyQXF0RHczVVQydThFbXZFMEZSM05XMUUzMThMSEZOVHFnaVFLMnpET2ZiOG5CRzJtd0RTWWlGN1RmS2tlREtsZ2pCSExmYzZLVDhEcmd1aGNMOUpDakY0STZ2YnZLYVNLM1VNUFNBdzhsYm5yM3k2RFpnVXROamJ4aERaMW9sN1NoTFNtcXVRbEEvVFJ3NUE4eGoxZGtuaVYyV0lFck92NFhMVWNoV29Kd0JYcGZSMlBtNW5HNHlIeG9pTjJGeHRYQ2VuUWxkREdteG5RTG1tYW1odlZ3S0h1aThmTmxIN1J5NUFtcWVqKzVtd2ljV2NvZStUcEpkVHU4a2hKWE1KUncwbDgvMXQ4MDJkZzdSZVZDRXRPNzVXWERVby94ZENpQzFpOW04R0RtbklXVXZhM2xheE5WK0ZlbkZqNE9NMkFQVUt0WWhYcmxyZTBKeUpOVm9iblNTMjYyMnJWUkxCRmJOVTg4V3h0cDE2c2VqT0FVaHJMd1AyTTFBRXZDTGprN1lBS2ZuZER1eFZ3VlhGOGtVWnA0dE9GZldhNGxDK2tNM2NJVGt4MVUxV0grc005LzhLSWJlOEdCTDVVdmFaWHR3K0laYzludUZicFE4NU9jZ3ZYTW5lME5MdVE3VXY5Z0IrYWRqbDNGWU03MlR6cEs2VkVOL0tSU2ZJampVc1JCV3FHalBraTNBcXBpRWNUYjloT1U1RnRBUnNVemovNzFKYmdMUlFvdTFBdHluMWZYS09hK1d2WjBQQ1g2MEZJRTFUWHc4SldHR21mQmhIVlQzbzdmeHFvbE1pVnN5cTdYY05FaUN4N3VYa1dHMENvT2w3U1lNTmpCVnhydmFrUEhWNVVqVDNzdlZCOE9sRzRNNXdtbjJlVGhxTEFNVTlpcW5xSXFpTG1UdWtsUVR1ZHg3dDNNVnhYcjhobGpLbzZ1MjM5U1ZudnJvVENzUERyUG5uV3pGVjYyZG83ZzJTUWRJYkVtdzZhVFQwbGpZQjNzdlo1VXlhb3hKbmVRTksrbWlkSG1HbzhEeGV5WHlRQUtteTFoSHRXN3JqdmF5ZlNTQzBNU1BwSXFXdHJvVXZtTjgxTlQ1dGtBREpjUldSUjdzZFhHMy9aeCs3TmJ1Znd6WXJyU1FsckNOZitTZUhvYWw4K2RsS3FEY0hEWkFjbG5hSno1MFdsUFVXUVh5K2svbmFKU3lsamxVTzZHNU43UW5WY0dyRFZMMEE5YVNVZUp0R1dzTU5EU0FsVE4yMHFxNktJL2ZHWXptN1UxdlpyUlViQlZBYzZRdklxUSsxTm1YUTBFSk16cVRkUjMwbWtOVDE2M1hqcXNSNmp5WFZDSVpZcDl2ZnJ4MUFWVmRPZHdCSEFtcUtWUTBWdG1xZnFCcUlZeWhKT2o1Y3VVTEZZU3c2NCtkcXB5cDhGRGJhdkU0Y05ld1VWaE9TMDBidERsMEc2QjR2SFZVdlFPQ29HYWI1VVF3dVk4ZS9tbStMT3lPcTRuV1F0QzVXbzQxK2RaRGZpRTZQODYycjJKUWYwdThGcEZva2szdlVWTDBhY2puUEdkRS9HblNTOWs3cTJXclNYNS9aazlaYTNhd29GSlVqNm9ac2kyR3l2VUFPTW5aN3JCcHpPblBpR0NaQTBZZTZXdzJ4UldBOFpFV3krdDF0SklHWXFzUjlrTFZ2ZlJjaTJwWTJ1d2xRRDMyRTdYNEF5bndoWTJOYUFTZ2pWc2ZHcTU1RnV5Z01LZ3pxUnEzQ29NS2d3cUJ1Q0JRR2RjT3Y1S0RDb01LZ2JnZ1VCblhEcitTZ3dxRENvRzRJRkFaMXc2L2tvTUtnd3FCdUNCUUdkY092NUtEQ29HNE0rZzhzdVZSUHVGSXBlZ0FBQUFCSlJVNUVya0pnZ2c9PSIvPjwvc3dpdGNoPjwvZz48L2c+PC9nPjxnIGRhdGEtY2VsbC1pZD0iV0l5V2xMazZHSlFzcWFVQktUTlYtMTAiPjxnPjxwYXRoIGQ9Ik0gNjAgMjEwIEwgMTEwIDI1MCBMIDYwIDI5MCBMIDEwIDI1MCBaIiBmaWxsPSIjZmZmZmZmIiBzdHJva2U9IiMwMDAwMDAiIHN0cm9rZS1taXRlcmxpbWl0PSIxMCIgcG9pbnRlci1ldmVudHM9ImFsbCIgc3R5bGU9ImZpbGw6IGxpZ2h0LWRhcmsoI2ZmZmZmZiwgdmFyKC0tZ2UtZGFyay1jb2xvciwgIzEyMTIxMikpOyBzdHJva2U6IGxpZ2h0LWRhcmsocmdiKDAsIDAsIDApLCByZ2IoMjU1LCAyNTUsIDI1NSkpOyIvPjwvZz48Zz48ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtMC41IC0wLjUpIj48c3dpdGNoPjxmb3JlaWduT2JqZWN0IHN0eWxlPSJvdmVyZmxvdzogdmlzaWJsZTsgdGV4dC1hbGlnbjogbGVmdDsiIHBvaW50ZXItZXZlbnRzPSJub25lIiB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiByZXF1aXJlZEZlYXR1cmVzPSJodHRwOi8vd3d3LnczLm9yZy9UUi9TVkcxMS9mZWF0dXJlI0V4dGVuc2liaWxpdHkiPjxkaXYgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGh0bWwiIHN0eWxlPSJkaXNwbGF5OiBmbGV4OyBhbGlnbi1pdGVtczogdW5zYWZlIGNlbnRlcjsganVzdGlmeS1jb250ZW50OiB1bnNhZmUgY2VudGVyOyB3aWR0aDogOTBweDsgaGVpZ2h0OiAxcHg7IHBhZGRpbmctdG9wOiAyNDhweDsgbWFyZ2luLWxlZnQ6IDE1cHg7Ij48ZGl2IHN0eWxlPSJib3gtc2l6aW5nOiBib3JkZXItYm94OyBmb250LXNpemU6IDA7IHRleHQtYWxpZ246IGNlbnRlcjsgY29sb3I6ICMwMDAwMDA7ICI+PGRpdiBzdHlsZT0iZGlzcGxheTogaW5saW5lLWJsb2NrOyBmb250LXNpemU6IDEycHg7IGZvbnQtZmFtaWx5OiAmcXVvdDtIZWx2ZXRpY2EmcXVvdDs7IGNvbG9yOiBsaWdodC1kYXJrKCMwMDAwMDAsICNmZmZmZmYpOyBsaW5lLWhlaWdodDogMS4yOyBwb2ludGVyLWV2ZW50czogYWxsOyB3aGl0ZS1zcGFjZTogbm9ybWFsOyB3b3JkLXdyYXA6IG5vcm1hbDsgIj5CdWxiPGJyIC8+YnVybmVkIG91dD88L2Rpdj48L2Rpdj48L2Rpdj48L2ZvcmVpZ25PYmplY3Q+PGltYWdlIHg9IjE1IiB5PSIyMzQiIHdpZHRoPSI5MCIgaGVpZ2h0PSIzMiIgeGxpbms6aHJlZj0iZGF0YTppbWFnZS9wbmc7YmFzZTY0LGlWQk9SdzBLR2dvQUFBQU5TVWhFVWdBQUFXZ0FBQUNBQ0FZQUFBQW1oZk9PQUFBQUFYTlNSMElBcnM0YzZRQUFHT1ZKUkVGVWVGN3RuUWZVUGtkVnhoK3ExSUNoaVlRZ0JJOUlSSlJpcUtHR0ducVhGZ1JDUzBCRnFWRVJBUU1DQ2xGREVTWDBqaUlsMUlRZ0drcUVxQkFFQXlJdE5DRzBBTkwyZDVnOURPUHN1N1B2dS90dGUrYWNuSlAvOTg3c3pEeDM5dGs3ZCs2OWN6YTVHQUVqWUFTTXdDUVJPTnNrUitWQkdRRWpZQVNNZ0V6UVhnUkd3QWdZZ1lraVlJS2VxR0E4TENOZ0JJeUFDZHByd0FnWUFTTXdVUVJNMEJNVmpJZGxCSXlBRVRCQmV3MFlBU05nQkNhS2dBbDZvb0x4c0l5QUVUQUNKbWl2QVNOZ0JJekFSQkV3UVU5VU1CTVoxaU1sSGIzbFdQNVAwcWNrdlV2U3l5U2RLT25iV3o1cjZHWlhsWFNTcFBPRmpyNGw2V0JKcDJRNlRqRjVnYVI3RHoxQVAzK2RDSmlnMXluMzBsbnZRdEJwSHhEMlVaS09rWFJXNlFEMnFKNEplbytBZGpmZEVEQkJkOE5yYmJYN0pPZ2FPelRxTzBzNlkwSmdtcUFuSkF3UDVTY0ltS0M5R2pZaE1BUkIwOS9iSmQxQjBwa1RnZDhFUFJGQmVCZy9qWUFKMml1aUMwSC9qNlJyU1BwY0Myem5rclN2cEN0SnVwZWtlMmJxUDByU2t5Y0N2d2w2SW9Md01FelFYZ1BsQ0tRYWRDbEJwejFjUzlJYkpGMDQrdUV6bFNaOTNlcUE3UlBsd3htc3BnbDZNR2o5NEYwUXNBYTlDM3JMYjlzWFFZUFVBeVVkbTBCMkQwa3ZuZ0NNSnVnSkNNRkQrUDhJbUtDOUtvWXdjZVNlZVNsSjc1WjBtZWpINTBtNjN3UkVZSUtlZ0JBOEJCTzAxMEEzQlByVW9NOVQyYVJmTGVrVzBSQTRMTHlOcEc5MkcxYnZ0VTNRdlVQcUIvYUJnRFhvUGxCYzdqUDZKR2hRT2k0Y0d0YUl2VlBTb1pLK2tZSHdrcEpPbHJSLzlOdXRKZjFqSWR4ZDJ2ZEYwT2VYZEI5SmgwczZVTkxadzFoUER6YjRaMHM2VGRJUEMrZmdhaXRId0FTOThnWFFNdjArQ2ZxY0lhSVE5N3E2YklyQzYwS3d1V2wwYWI4clFSOG02WmJCbnI1UEM2WjhkSWc4L0tpWG5oRm9ROEFFM1liUXVuL3ZrNkF2RWNLOXJ4QkJ5c0VoV3VXdUJMdHIrMTBJK29XU1RwWDAxQTVMaFZCeWduWHdiSEV4QW8wSW1LQzlPRFloMENkQjQ3RUJtZFdsemMydWl3WThKa0ZEdHRqWGEzTUdZL21zcExkSitvNmtYNWQwdGN3QXZ5cnBwcFZOL3IxZWdrYWdDUUVUdE5mR1hoRDBqU3ViN0NzVFArakhoRVJNVGZiWXVSQjBqTjhISmQyOTBvNC9uSUI2RVVsUFQrenZWUGxRbGFUcGhwSys0R1ZvQkhJSW1LQzlMb1lnNkhOVVNaRWdwYXRJZWxoMTJIZXpwSk9TVU8rNUVYVGJuTURrRVpLZWxHQXhwWWhLdncwVFE4QUVQVEdCVEd3NFErVGllTDZrSXdwYzYrWkUwQityZkx3UHFUdzRQdGtpUDBMZ0NjeTVVMVR2STVWdC92cVNQajh4MlhzNEUwREFCRDBCSVV4NENIMFM5UGVETnYwc1NmeC9XNWtUUWQ4dGVLaTB6WW5mcnhrT1M4OGRLbVBpd1RmOCtKTEdyck11QkV6UTY1SjMxOW4yU2RCMTM5aHBNWHVRZG5TVFAvQmNDTHFyQm55QjZ0RHc5Wkt1RndrRHM4ZGp1d3JIOVplUGdBbDYrVExlWllaREVIUTlucWRWWGc2UHJvaUpSUDY1TWhlQ2Zva2tQRlM2Qko4OFVSS0hwSFdaU2tUbExtdkZiUWRBd0FROUFLZ0xldVF1Ym5ab2lod1Vrckh1b1pYUDc5VXp1RHkrK3R2akdzaHRMZ1M5elNFZm5oNHZpdkQ0dUNReS90a092YUNYcDQrcG1LRDdRSEc1ejlpRm9HTlVXR2Uza3ZUUzZONC9mdjlCOFBCNGF3YkN1UkEwa1pHdjZiZ0V3T0oxVVp0dDA3aDI3TmJWNTRhQUNYcHVFdHZiOGZaRjBQV29JYk5YSkVFZGI2NGk4VzZYdWFkd0xnVGRKVDlJalFPN0NmS1FuRGY4d1FTOXQrdDZOcjJab0djanFsRUcyamRCNTl6TXZoN01JSVJMeDJYSkJIMmQ2cER3QkVua0o2R1lvRWRaM3RQdjFBUTlmUm1OT2NLK0NacTVwUFpYL3BiVFF1ZEMwRFp4akxsQ0Y5NjNDWHJoQXQ1eGVrTVFkR3AvWllpNWc3YTVFSFFmaDRUdmwzU1R5djN3S3p2S3k4MFhob0FKZW1FQzdYazZZeEwwUllPZDlvclJuTHJZZTY4Y2ZLMHZXTkIrbDJ4MjI5d0s4MHhKUjBiajRpS0R1MHI2WHMveTgrTm1qb0FKZXVZQ0hIajRReEIwcVlrakY5RFJ4Wnh3YzBsdlRQQnBJdmhkQ0xxcjludWhLcHFRZzlHRG9yRnRvNFVQTEhvL2Znb0ltS0NuSUlYcGpxRnZndVpRakpTamFJdDFJVjNud1pVYjNpa0pERG1DSnRvdVRUYlVoRjZxcFRiWnV2bjdMZ1Q5M1pCTDQxOEt4VWppS0Q0Yzlidlh0WDFoTjY2MkJBUk0wRXVRNG5CejZKdWdTU2hFem9rNGQvSjdRbDdrTTVOcDVHNWdhWExKU3hHNGZKWEc4NlRxTWdEczJIRVpRb1BtK1lSdWs0RC9yQlpSb0QxelpSZkJPM1VwbmROd1V2YVRKNHVBQ1hxeW9wbkV3UG9rYUpJRUVaeUJiVGt1RDVKRUFxVmNTZnNuc0FVaXhHYmJWUGFWOUtyS2ZuMkRUSVdoQ0pxdUNOMSt5b1pFVVBnOEh5UHB2dEc0Q0ErLzR4YUJMcE5ZSEI3RThBaVlvSWZIZU00OTdFTFFyQzNJa3FDTVhFNW9jSG1mSkd6RlgyNEFLVFU5VUEyVHlQMGx2VHdoUS9JdGsveisyTXFNY2tERDg0WWthTHJranNYZnpjem5zcEtlV3gxYTNpZ1pGNmxYdVdDMktSL0puTmVPeDk0REFpYm9Ia0JjOENPR1RKWlVjdVVUWmc2MDYxanJyT0dtL1Zza1lScTV1Q1J1YmVGVzdicVFvL25FUU9iMTM0WWdhTFQ1MjBjMlpmcmk0UEFEa3Zob1hMc0tjZitsekJxaERoR1VuMTd3K3ZIVWRrVEFCTDBqZ0F0dlBoUkJmMG5TWGFyRHdYY1U0TGVmcE5jMjNPdlgxSnprUTRlR0FKaWpvMHBERURRbUNzdzNEeStZUzEyRjdIVmt3RHVqUXh0WFhTRUNKdWdWQ3IzRGxQc21hTGJ5ejZnMHl6K3BUQUZmNnpDT2ZTU1JvcE9iV05vS1pQN2dRSDdwK0ljZ2FKNkpWOFpEd3MzZWhMTTNGZVovVkxCRnR4MG90czNUdjY4QUFSUDBDb1M4d3hSM0plZ3ZoaHV1MFpUeGRDQkoveTcyMWt0TGVrRFF2aThYZVlPUXkrSk5sYzBiMTdyVG92U2xlMFhRZUdaUThCcUJxSEVqck8zZ0hHeHlPZXh4a3JBNU45bmJkeENUbXk0VkFSUDBVaVhyZVJrQkl6QjdCRXpRc3hlaEoyQUVqTUJTRVRCQkwxV3lucGNSTUFLelI4QUVQWHNSZWdKR3dBZ3NGUUVUOUZJbDYza1pBU013ZXdSTTBMTVhvU2RnQkl6QVVoRXdRUzlWc3A2WEVUQUNzMGZBQkQxN0VYb0NSc0FJTEJVQkUvUlNKZXQ1R1FFak1Ic0VUTkN6RjZFbllBU013RklSTUVFdlZiS2VseEV3QXJOSHdBUTlleEY2QWtiQUNDd1ZBUlAwVWlYcmVSa0JJekI3QkV6UXN4ZWhKMkFFak1CU0VUQkJMMVd5bnBjUk1BS3pSOEFFUFhzUmVnSkd3QWdzRlFFVDlGSWw2M2taQVNNd2V3Uk0wTE1Yb1NkZ0JJekFVaEV3UVM5VnNwNlhFVEFDczBmQUJEMTdFWG9DUnNBSUxCVUJFL1JTSmV0NUdRRWpNSHNFbGt6UUZ3ZzNTVjh2a3RLdEpkVTNNTTllZUo1QWJ3aGNWZEpKa3M0WG5zZ3Q0ZGVvYmhEL1hHODkrRUdiRURpL3BGdUUyOW9QbG5TeHFESzN3SDlZMGh2Q3plZ2ZpMjV0WHp5cUp1akZpOWdUTEVEQUJGMEFVa3VWL1NUOW5xUy9rM1JxNGVQT0srbElTVStRZEs3Q05oK1I5QkJKSjZ5QnFFM1FoYXZDMVJhTmdBbDZlL0h1SSttM0pSMGxDVzBYRGZpVWdzZEI2Syt0ZHJsWEs2aWJxL0lIa3A0Yyt0enlFZE52Wm9LZXZvdzh3dUVSTUVGdmgvSEZKZjJUcEY4TXpiOVZTTkNYa2ZUV3FGM2NPeVNQdWVuamtzNGg2U0JKQnpZTTcybVNIcjFra2paQmI3Y3czV3BaQ0ppZ3Q1UG5KU1dkTEduL0RnU05LZU01a2c1THV2eFVNSGU4WHRMM2s5OHVVdjM3Y1pLT1NQNytRMGwzay9UeTdZWS8vVlltNk9uTHlDTWNIZ0VUOUhZWWIwUFFoMVFIc01kTE9udlVKUWQvL1AyVEc0WUJWOTFiMHZPU3RoK3FOTzRiU3ZyQ2RsT1lkaXNUOUxUbDQ5SHREUUltNk8xdzdrclE1NVQwUWtsM2pickRMQUxCdnFkZ0NQRFZveVE5S2FtTEZ2MnlndmF6cTJLQ25wM0lQT0FCRURCQmJ3ZHFWNEsrVktVcHY3dnk5TUFHWFplL0NxWU56QlVsNVJLU1Rxd0krUXBSNVdNa1BiU2s4ZHpxbUtEbkpqR1Bkd2dFVE5EYm9kcVZvSzhUM09QUXBDbVFNdjdQbUR4S0M1ejFJa20vR1RWNG82UTdWTnIxdDBzZk1wZDZheWJveXdhL3pkdFdoeFkvSHdUR0NmSy9TbnBwV0FSZkxoVGtJeVVkSGRWOXA2UkRxK2QvWTREMmFWOTE4QTN1VG8rVmRMaWtDMHY2Z1NUc2M4ZEplbjZscGRSemFXclBVRG5BdVZud00vME5TVDhiNFVLd0FOdlQrRm1GMC91cGFuVlF3bjBseFgxUWlRQVIvRnM1UkdMTG14NFdkZWt2N2dkaTROOFViSlc0ZC8xNWRjRDBuK0Z2WXhIMHBjTWhGMlJ6eGNnWEdObmh4UUR4L0UwSTFDakZBbm5mS3dMcUJjRjJXNHBkVy9zVXE3Ym54c0ZodjFiaC8yQkpsd3NhOFBlQ2VZTzVkaW03dm05ZCtocTE3aG9KK20zVkljUGpBemx2QXArWGhLMFRwUGZORmludHVtQzZ0TThSTENmZ3I2c09VSGpoY3lYV01Kb0ltb2hMRG1BT0tGaVJUNjArQUg4bzZheUN1bldWcmtFSnA0ZVBUZGVBQkZ5ejdpenBXWkw0YUcwcTlUd2d4NzJNSktTL3Z3Z0hZeVVRZGduT2FDUFl0djdhMnU5QzBHMTlsLzdPUjRzUGZGMjZmb1JLK3htOTN0b0lHczBDYlFVdHNiUzh2NHFNdXAya1QyOW8wSVZnYzQvcDBqNnRTNUFBa1ZXMUwycnUrZkVoU3RyK05zRk42aG5KNlhnYlBteExPZXc1czYxaXBYWC9RdVhMK3NvdGd4SzYrTHFpSmY5bHhvVnIweEQ1S0JIOTlwWTlDUFhtZmJ0bjBJcExJK2Zpc1pjRVo3UVJiSnU0MnRxUFRkQTVHL1FESlQyN2JXSnovSDF0QlAyL2t2Wk5CQVVCZjBEU3oxUk85emVPekIxeHRiY0hHMWNUR1hVaDJMNEpHdTIrM3I2ajlXTmUrYS9LUkhQNXlseUFWdnpSNmxEbCtwSStIenBPeDRvUDZaMFNjc2JkaWVkOEoyeEhpUTdMRVFvbjZrUnpiU3FiZ2hJK0d3SWR3UFZDWVp3RVA2VGx1ZUVqaEFtcXFUQStEcHp1bjZudzFVREE5TVAyT3AwUGVSN3dKRURMcHd5Umk0TjM3ZmMzNElVNXFqYnJYRGw4ekdKWHRIcGE3QXc0RUd2Q29vMWcyM2lxclQwZjI5OEpXTEh1N2xoNVZadzdQQlNiOGo5VXN2cGkxTWxmUy9wZ1c2ZUZ2K2N3UkxiWHJjYnhINFhQbUZXMXRSRjBMSnhqZzh2TzE2SS9nZ2N2QnpibytKU1lLbWlZTE16Y2FmT1lCRjBQbnc4TlJQdmYwWHg0Z1NCSTdNZDFTY2NhWTRKdDl1R1Z6ZklUeVNxR3VDQ1hQMDcrenRZN0p2OTA4VU82cjVaMG8rU0hwbjdBLzByQmJvNjlNaTdrZVVDYmJpcjNDRGJ5K1BjdkJZMlZxTFhZaGd1WjN5Vm9YWFdDcExqZEVBU05MWlo1cDZUTEJ3NjNzWGdkTXBaTkpxRk5XTFFSYkJ0QmRXbmY5WkN3cmU5TnY3TTJNRjI5Sk1GdzAzdTVTMytUYUx0V2dvYWsvbXhEc2hXMDdGZFZXdVFOSWlsdENtTWRtNkE1WklFRVkzSnVXbUJOQlAyWWFvdi9sQTBIYzAwYUlDWVM3Tis1a3V1cnJSK2V3NGNGVFJIU3JRdVo1ZEI4MlIya0JhMzdIVWxJTU1FUGVBams2dGZ0T2FSOGN6aFVIWktnYytOalBVRTRhTytiQ2grcTlIeUJEdzhmUnJUdXRIUWgyRnkvWGRydkZVR3o5akRqcFdhNHRwM3RKRWgybDBHc2thQkx0c3RnaW9tQWd5TVdZVjJhZkRiSEptZzBXMEpoUzBxT05BbXZoU3phRHYxeTlqOE9VZFBBQWNhUnExdUtQZTBKNzMxVFJXQlhqeWJWTkU5czRleDY2dkxkWUs1NlZ3RWdhTkswamQrRnZqWG9kSHdNQzFzMDdtSWxoUzA4aDl1MUtZRTJUWnBqRjRLZEEwR3oyMkdOL1ZFeTJKTG93eEpzSjExbmJRVDltV0N2U3Jmd1RVS0M5T0tGMGJTbEg1T2djVlZDMHlkcFRVbkpFZlFtTFRoK0p2NnJSR3poYzFxWHBoUDBsSlEyYWNCTjQwNmZnYWtHdXpvYVpGMXlZMktNRUNEWXRCVk1DWmdlYmhwVjdKT2d6eFBNUEdqemRVRnI1K0M1N1lOWTErYzl4YU1JTGJJdW5CTmN1N0s1czZianNpU0NSamE0UXo0Z21XUEo3cWhON3JQNGZXMEUzVFZxS1QyeGJpTERNUW1hRjVUazhwdThUT0xGbUk3MWpQQ2lsL3FpUGxFU1pvcE5CTTI2K3R2RW13TC82ZC9xbU1PWEF6MGl6MzR1ZEpiRFB4ZWRobW5reFIzZXdMc24ybXlmQkozT2dXRjFIUjl0Y2tFZU53bWE5UklKdXVuUXQ4U3Jxb1BvcDExMWJRU041dmVhRGlJaFVBUDNxemhuTFlkb1QwK2VNU1pCN3hvVWcrYU5kdmYxUWx6U3VlWTA2RkxjMnJxOFlBaldnSnpxa3JwVXBjU0ZwdzUvTzYzdDRkSHZIQXhqRHFFL1NwOEVmZk13aDdxN2JjWkgyNHNHenhwOHFPdVM4NkpaZ2diZGRON0J1NGpMS0JpdW9xeUpvRXR6MWNhQ3oyMmY4WnU5MzRRSUdpOEpUQUVsMjNtR25SSXNCeTJZT05xQ2Nlb3BseEIwVG12RWs2TGtFRE9HRmkyS2lFeklxUzdZdTdGSjF1WDJ3WVJRLzV1ZHdMVWl0OEtTRnhsNytUOEhGN3krQ1pydE9RZWVkY21aYVVyR1dHcGVXZ0pCNTJ6dUhOcnozcFg0M1pmZ09ZczZheUxvcnFhQVdvQWxDMzVNRGJwckZGVUp3VzVhdkNYdHV3WXpkSGxaMHZudWlqMTlwL2RYOXFsQjl6RytMbXV4WkwxdXdydEwreUc4T0hJWjc5amQzR3B0NUl5UTFrVFEyNzUwMkZ1eHU5WWxSNGk3dm9SZDJwY1E1SzRFdTJ0N0UvUlBFT3dpMjdZUFZVcWVPZk5XRjRMTjlkZWwvUkFFbmU2K3RrbW8xSWJqYkg0M1FiZUxxdVJRYk5lWHNFdDdFL1NQRTdmWHBRdDJUZEtlcXdhZE0yOTFJZGdwRWpUUnZOaWFhMjdhMWlUVS9tYlBvTWFhQ05vbWpoOHZ5TDBnK0ZTRDNzYitYL3I2ckptZ2M3dTV1Uk4wNmxIVDlZeWtkTjNNb3Q2YUNIb2Jrc2dkektTSFZEblMyOVd6WWxQN3ZTRFlYVTBjcVZjRXo4TlRoTUNUdmd1MnlUaVNjUnRUVnVwMXNzMHptdWJWMXlGaHpwODZkMkE5ZDRMZWRYMzN2YjVHZmQ2YUNIb2Jrc2k1TnVWOFdOT1hzQ3RCcCtrVDUwN1FxVmNFMkpja1Z0cm1aU0RTRUx6cVJFZmJmSWhUdTJlZkJKMXUyWEZueEV2aDFJNlR6V0dhYy9sOFpyaWhwSDU4bDBOa1F1eEpkaFRuVHRuVWZnZ2J0QWs2V2hockkraWM5cnZwUGJsbXVGNm5EckZ0ZXZsVExhNkxiM0h1cFpnN1FmY1JQWWRjSUNXMnVPUkd3UmJKZjJpTk1ibmxpS3RyK2trU0dVRk1kZW1Ub1BjNlVDVWxPSklMb1ZTVVhDbVZ3M0t2Q2JyamQydloxZGRHMEtSekpLUzN4SmN5RjE3YjFENGw2QzcyN2w4T1lkcHhHdFM1RXpSdnpSRWhQTGwrZzdya3g2amJwQm5xSUprMGVpNFh0ZGhsQjVOejYrcVRvSE1mcXk3akF3dkdpQzkxbktTK0tkUTdKZWd1eWtLcTdkTzNDWHJFYjhEYUNCcW9INVFFRGpUQmYxRElrQmFub3p3eUpJUlAyMng3MXhyNGM3dkxVY2tEbDBEUUI0YmRSeHhrMGlYNzJINVZDRHJCTFhIYTEzOExlWnZUcThpNGdJRmJZK0wxWEpxTUtCY1UwU2RCSTlvaGtpVTFwUzFJRDlsSzh5VVRGRVI0UENscjQyS0NOa0VQZ2tEcU9sVjN3b0s5WllnY2ErcVlUSGE4OFBFdEphU3RKS2s3MTB1bEpaY1BvbzJNbXZMYjh1d2xFRFR6STlITnd4S3d5T0NHQ1dKVDVDTDJaSklEeFJyanBvOHI5VjhSb2c1ak9VTTJaSUhySW1mcTlrM1F1WFNqSk55SHVOdFNEK1RTamJLR1dZdGNOSkdXbkE5Nld4WkJyZ2w3UkVOV3dpNEUzVFZ4MXlBdi9wSWV1a1lOR3ZueGNxQkpzL2ppbXlsWXFJZUV4Tyt4NXNmV21od0EzRDZTSzdsdE52WHdMaUFEV1pySWlGU2FaTXJEREpBclN5Qm81cFhUZ3ZrN04yeEEwdS9OMkViSk5VRmlwVGpOS0czYVBuaTUzTTdJbHQwSlpCOW5qbXVTY3kyTHZnbWE1ellsN09lS0xrTFhjd243N3hQdUxreHZzOEdNMFpUUHZFa3h5VjFRd2JpNFBKbUxFTWl1bHl1YkNEcDNpTTRaQVR2TjBreDlhWitwRjhvMmg3Nkw0ZWcxRVRUWDhIQXRUcHlFbnhjWVRabWJucm45QS9zbU4yS25wZVJldkUzUmMvVzFXaEFEcGhPMi8zSGhKZVVGUVJPbkxJV2dtVXRUVW54K1E0dEd3d1gvVFZlT3NXdGgxL1B2TFc4ZXliRFFwTk5iUzVBenViM0owNEUyaTYyMXZpWXM5OGdoQ0xvcEFWRGRmK21WVjIzYU1NOGpQd201SzlMM083NFNEYnhKM2NxTk8zWGhkeEtCY2ZOMmJkcmJSTkE1K3pyUEFtK3lKRkw0K0hBYmZHa3hRVWRJclltZ2VlbTRQNDA3MHVMc2RHMExwK1NpVHA3UmRPdEQyL05KUXMrbHBSREkvZ3NrYUthVTI2YTM0VkwvRGptamZaYmNhNGNNaURKRWk4dmQ1OWZVSnduNzhiYmc0MGtaZ3FEck5jTE9qUnU5dDdrMGxodHYyQkZzdXB1UmZuajJuNGJyeTBweGhwd3hLYUhFb0NDVUVEVFBaaWVFZHQ1VXVucE9tYUJYVE5Ea1RlWWlWRTdFMDhPUWRJR2RMdW53U3NzNG9kQkZxWDRCMGRDZlUya05CN1M4R1d4cGVUNGFIL21PVDE0d1FRUEZQcFUzd2hPQ3lhZVVQSnUyLzIyazAyUW1TZHRCZE56dkJ5bmdab2RHT1NSQjEvMHpQajRpck1lUzhyNmcxYklUS3kzczFyZ2xoN1VPOXBzS2F4MXlocGpUbldDYkgzWHVlcks0cjY3WkZrM1FLeWRvYnZaQTAyTHJ6U1d3bURXSUpLT3c1Y1l0aVJQeTR3czBsYVpGandhRFp3SDJaL3FKbjQrR0F2RndpMGQ5VUpZNi9DL0p4SkZpaENrSnQ4VERxZ095WDYyd3ZsaFU0U3ZoRm5LMjhYOWYyVEpUYjQxU2NxSmViVTdpQm13TzFPcCswQlF4SjBBRTJMcnBZOGhjSEUxalpnMXlDSTNHai9rRzBxNjFhajRjK0h4elh5SGo1QWFSRWovbVhGOFFLT1l6emp0K0pUTHRnRFZuQU9sYTcwclFOZGEzRFJjTFh5WFpIZkJSNFIyanY1SmlnbDRKUVpjc0J0Y3hBa2JBQ0V3V2dTWGJvQ2NMdWdkbUJJeUFFU2hCd0FSZGdwTHJHQUVqWUFSR1FNQUVQUUxvN3RJSUdBRWpVSUtBQ2JvRUpkY3hBa2JBQ0l5QWdBbDZCTkRkcFJFd0FrYWdCQUVUZEFsS3JtTUVqSUFSR0FFQkUvUUlvTHRMSTJBRWpFQUpBaWJvRXBSY3h3Z1lBU013QWdJbTZCRkFkNWRHd0FnWWdSSUVUTkFsS0xtT0VUQUNSbUFFQkV6UUk0RHVMbzJBRVRBQ0pRaVlvRXRRY2gwallBU013QWdJbUtCSEFOMWRHZ0VqWUFSS0VEQkJsNkRrT2tiQUNCaUJFUkF3UVk4QXVyczBBa2JBQ0pRZ1lJSXVRY2wxaklBUk1BSWpJR0NDSGdGMGQya0VqSUFSS0VIQUJGMkNrdXNZQVNOZ0JFWkF3QVE5QXVqdTBnZ1lBU05RZ29BSnVnUWwxekVDUnNBSWpJQ0FDWG9FME4ybEVUQUNScUFFQVJOMENVcXVZd1NNZ0JFWUFRRVQ5QWlndTBzallBU01RQWtDSnVnU2xGekhDQmdCSXpBQ0FpYm9FVUIzbDBiQUNCaUJFZ1JNMENVb3VZNFJNQUpHWUFRRVROQWpnTzR1allBUk1BSWxDUHdJZU44bDZzZnd1S1FBQUFBQVNVVk9SSzVDWUlJPSIvPjwvc3dpdGNoPjwvZz48L2c+PC9nPjxnIGRhdGEtY2VsbC1pZD0iV0l5V2xMazZHSlFzcWFVQktUTlYtMTEiPjxnPjxyZWN0IHg9IjAiIHk9IjM1MCIgd2lkdGg9IjEyMCIgaGVpZ2h0PSI0MCIgcng9IjYiIHJ5PSI2IiBmaWxsPSIjZmZmZmZmIiBzdHJva2U9IiMwMDAwMDAiIHBvaW50ZXItZXZlbnRzPSJhbGwiIHN0eWxlPSJmaWxsOiBsaWdodC1kYXJrKCNmZmZmZmYsIHZhcigtLWdlLWRhcmstY29sb3IsICMxMjEyMTIpKTsgc3Ryb2tlOiBsaWdodC1kYXJrKHJnYigwLCAwLCAwKSwgcmdiKDI1NSwgMjU1LCAyNTUpKTsiLz48L2c+PGc+PGcgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTAuNSAtMC41KSI+PHN3aXRjaD48Zm9yZWlnbk9iamVjdCBzdHlsZT0ib3ZlcmZsb3c6IHZpc2libGU7IHRleHQtYWxpZ246IGxlZnQ7IiBwb2ludGVyLWV2ZW50cz0ibm9uZSIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgcmVxdWlyZWRGZWF0dXJlcz0iaHR0cDovL3d3dy53My5vcmcvVFIvU1ZHMTEvZmVhdHVyZSNFeHRlbnNpYmlsaXR5Ij48ZGl2IHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hodG1sIiBzdHlsZT0iZGlzcGxheTogZmxleDsgYWxpZ24taXRlbXM6IHVuc2FmZSBjZW50ZXI7IGp1c3RpZnktY29udGVudDogdW5zYWZlIGNlbnRlcjsgd2lkdGg6IDExOHB4OyBoZWlnaHQ6IDFweDsgcGFkZGluZy10b3A6IDM3MHB4OyBtYXJnaW4tbGVmdDogMXB4OyI+PGRpdiBzdHlsZT0iYm94LXNpemluZzogYm9yZGVyLWJveDsgZm9udC1zaXplOiAwOyB0ZXh0LWFsaWduOiBjZW50ZXI7IGNvbG9yOiAjMDAwMDAwOyAiPjxkaXYgc3R5bGU9ImRpc3BsYXk6IGlubGluZS1ibG9jazsgZm9udC1zaXplOiAxMnB4OyBmb250LWZhbWlseTogJnF1b3Q7SGVsdmV0aWNhJnF1b3Q7OyBjb2xvcjogbGlnaHQtZGFyaygjMDAwMDAwLCAjZmZmZmZmKTsgbGluZS1oZWlnaHQ6IDEuMjsgcG9pbnRlci1ldmVudHM6IGFsbDsgd2hpdGUtc3BhY2U6IG5vcm1hbDsgd29yZC13cmFwOiBub3JtYWw7ICI+UmVwYWlyIExhbXA8L2Rpdj48L2Rpdj48L2Rpdj48L2ZvcmVpZ25PYmplY3Q+PGltYWdlIHg9IjEiIHk9IjM2My41IiB3aWR0aD0iMTE4IiBoZWlnaHQ9IjE3IiB4bGluazpocmVmPSJkYXRhOmltYWdlL3BuZztiYXNlNjQsaVZCT1J3MEtHZ29BQUFBTlNVaEVVZ0FBQWRnQUFBQkVDQVlBQUFBaUNpUVZBQUFBQVhOU1IwSUFyczRjNlFBQUVyRkpSRUZVZUY3dG5RZk1kelVWeGc5dVJjVTljT0RlVVZ5NDk4UVpGVkRjQzlTb0tGRlV4QWp1aVlwN0p1NkZHNks0RmNVdGppQk8zSW9MQjg2NDd5KzAycFQyM3ZhdTk5NzMvelQ1OGlYdnY3ZTNmVTV2bjU3VGMwNTNNQlVoSUFTRWdCQVFBa0pnZEFSMkdMMUZOU2dFaElBUUVBSkNRQWlZQ0ZhVFFBZ0lBU0VnQklUQUJBaUlZQ2NBVlUwS0FTRWdCSVNBRUJEQmFnNElBU0VnQklTQUVKZ0FBUkhzQktDcVNTRWdCSVNBRUJBQ0lsak5BU0VnQklTQUVCQUNFeUFnZ3AwQVZEVXBCSVNBRUJBQ1FrQUVxemtnQklTQUVCQUNRbUFDQkVTd0U0QTZVcE92TTdON2o5RFc3OHpzVjJaMmpKa2RaV1lmTXJNL2pOQ3VtaWhENExGbTlzeWc2dXZON0Q1bGo4NVM2K3BtZHJTWm5TVjQyeDNNN0loWjNxNlhDSUZ0aklBSWRybkNIWXRnVXlOOHNaa2RaR1luTDNmNDI2Wm5JdGh0STBvTlJBalVJU0NDcmNOcnp0cFRFaXpqK0lhWjNkYk1malRub0Rid1hTTFlEUlM2aGl3RVFFQUV1OXg1RUJQc3Y4M3NSRFBqLzlKeUxqUGJzYVh5Ujgzc0xqSVpsOExacTU0SXRoZHNla2dJckI4QkVleHlaUmdUN0NmTjdIWm05cWZLTHAvSnpHN1ZQSE9JbWUyYWVQWko3cmZLWmxXOUVBRVJiQ0ZRcWlZRXRoc0NJdGpsU25Rc2d2VWpQTDA3ZHowNEd2TFB6T3dHamVQTkQ1WUxoWG8ySVFKeWNwb1FYRFc5MlFpSVlKY3IvN0VKbHBGQ3NtOXF6bC8zaklhOXQ1bTlkYmxRcUdjVElpQ0NuUkJjTmIzWkNJaGdseXYvS1FpVzBWN2Z6RDV1WnFjTGh2NGlNOXR2dVZDb1p4TWlJSUtkRUZ3MXZka0lpR0NYSy8rcENQYUNadlk1TTd0b01QU2x4V1l1VnlyYnIyY2kyTzBuVTQxb0lRaUlZQmNpaUVRM2xreXdweld6YXpRaFB2Y3pzOTBqc2lheHhiRm05bG96ZTdlWi9ia1E0ck0yYlI3WmFOYzNjdlYvM0NUR3VMYnpuT1pQbDIyOG5mYzNzOXViMmM2dURoN1ZoQnVCRmU4N3FmQmRxV3JuZDA1a3RMK2JtYkVSQ1F2aitvNlpIVzVtYnplem54UytxOVRKcVczOFYyaTh3Wi9UYkl4dWJXYW5jWmgrMnN4ZTRwS0gvS093TDZscVcwbXdIRm53L3IyYVpCYzNOYk5MUlY3dnlKZDVnSVBmbTUzbHBXU3M4U1l5ZGhEc081ZVk5OWR5MXA1Ym10azVIYURNOGE4MHlUcWVYU2lQdHY2eEpqUC9tT3ZoT3hnMzN4VXg3RFhmMVlDcG9VZUhJaUNDSFlyZ2RNOVBSYkNYY0ZtZEx0QkRnMlcrM0tRaHVGZWEyU1VMaHM2aThBUXp3d1Q5MTQ3Nk9ZTDVmVU1xVDI2OHB4OWQ4RDdlYzJBRnFkTWs1UFdDQnBOYkZMUWZWbUdSdzZ6KzA0N25oaERzZGMzc1RzMUNmcGdqMXRTckh0eHNCbDVSMmZldytsWVE3SmtiM0I3WUhGTTgxY3pPWHRGM0VxTXdYalk0LzJwNUxrZGdaekN6bHlkOEVPS21tTGYwN3cxbTloLzM0OFVjeVYrbm83L2ZNck03bTlrM0orNGZpV0tZdHlVYmpncUlWWFZNQkVTd1k2STVibHRURWV3OTNjSVI5dlpSelVMM3ZJN3VzeWcremUyc2EwZjZKVWNVYldTVUlsakkvUEdOdHZpQWloZVd2SXZtbVBzUDdTQ3ZydGYreG1ud3ZETlhoaEFzTXVFZldtdXFqT0VCUGpmQlh0aHBZRmhBK2haSWtzMU5qbHhTQlBzdzU4aDN4Y0tYb2oyaldiL1RXV3MrMEdpUDV5bDg5aGRPSTgrUmJLcC9wRVhGQ3NPY0x5M3ZjQnNCcFQ0dFJXem1laUxZbVFHdmVOMFVCTHVMbVgyNDhTUytkTkNQdjVqWkRSdlQ2NWRiK29ZcEQzUGtQb2s2bU1jNDAvMittWGtUV21vUis2N1RFbk9abzJLQ2hUemVaMllQaWQ0Sm1XR09PNk9aM1R3d0Y0ZlZTaEpva0dBRFRTZ21MeGJ0NHgwZWFFbU02WnFOYVpneHBZaXVLejY1TDhHaU9mM1RlWDR6TmpSNThrZ1RCMzA5WnpKSEpnOFB0S3lLNmZXL3FuTVM3RTZPc0c2VzZPaXZHNVBvWjF6ZWJINCtuNXVYM2d3YlBnSTJlNWpadXpJRGpnbU1ZNFMvT1hPMGY4VGpDVGxoMWVFYllKNkg1WHVOaWZyK1p2YWE2SnY1dHJNQ1VkZkxJdTRLWHZuM2NqS01mNHY3OTNreis3bmJoUHE2RUR4eml6NkFHK2JpY3lURyt5cTNVWlFtMjJmMlQveU1DSFppZ0FjMFB6YkJZdUxpL0REV0hOb1dBcnJQSERuQXpKNFZqZVVFUjM0ZlM1anJ6dDBRMDFNUzVBaTVZejVMSmN1SUNUYUdMbVdTcFc5WGFjam1MWTEyY3Jub0FiUWN5QWVTaXN0Rm1nV1ZmblBtNXdzYmpRZVoyZHN5bWhFYVBHZk9tT1hDaFpqRi9qYnU3QzBsN3I0RUc3YjFmQmZESEpyWkdRT0xLdHJTa0RJbndjWlkwRzgyVVk5c2ljUG12SlFqQ1Fnd0xCOTBoSlE2ZWtnNTh2bG5PVHZISWhMUFcwelZMMnZPMmU4ZXZRZjUrbldTdm1MMWlDMHhWM1phT1VUdEN3Uk9mUGx4Q2VHMDlZL3FxVnpoYlBRNHhzQnNIV3ZTSEo4Y09tUVM2TmxwRUJEQlRvUHJHSzBPSlZoSUFDM2dhczB1R0xNd08vNVlBK3ZTS2hsSGFnRW16SWYyZnRzeVVPWVd0OGF3K3cvZnk2NytqWW5uMmdpV2JGT1lwM083ZEZKQ1lpNEx6V3QvTjdNYk4xbXNQcHQ0RitaQ3ptdDlvUzdhOEtjS0JJY3pEdVpDenZOOGVib2p3TlRqUXdrV3MrRytFNTYxelVXd09KRjlJdG9Jc2VHN1I4SFkyTnhBTEZnZGZHRmpnZmFJNVNRdU9RTHJtdStwUHZxMnV6UkZuSjhnN2ZCV290ejVlSzUvYUsyUVA5KytQL3VOeDhhbThQMlJSajNHVVVIQjFGZVZXZ1JFc0xXSXpWZC82bVQvSmVlSHpBK0lpRjI3TDEyTFZJZ1F6K09naEtPVEw1akRTTjBZbnh2bENMYVVZTkRRTVEySFdrVEtoRXJxU003VjBEcDlxVEcxRWorTTFoOHU5bmk0c29sSkxZcERDTFp0a3pEV1RKeUxZTm5BWU9MMmEwNmJocGNhV3h5L2plYUt4L2tYQ3dtMnk5TGdtMkVqeDdsL1dEQXhzN0hpMnNkY1NjMnJYSHg1am1CNUwxY2I1c2pWdnp0RjVsaHIwSHhWRm9TQUNIWkJ3b2k2TWlYQm9xbmhWUEhEanVGZjNHbDFGd3JxNVRUUVhGTnhHeXdlbkNkOUpIb2dSYkMxaTNCTVpwejNvdVd3dy9jRmJRZ3RBZk1kNW5MTytMai9sTENYMGhLL3ArMGNkZ2pCY3Q0TVZvUUlUVlhtSWxoTStlQk9DQXFiSUxSWnpMRXBFMzVxckNsU3l0MWJtNnFiMjlqRjd5Sk1DMU53V0I2WE9DSko5ZkdGN2xqQy81YUxMMC8xRCs5akxDNi9MQkEwbXp5T1FFTG52eTVmZ0lKbVZXVnNCRVN3WXlNNlhudGpFeXptVlp4Q09NLzdRc0V1bVpHd2dMMDNHRktLc0xwR25OTDRVaWJWRk1GMm5RL0g3NzY4STBwTXhwUWNtWGYxdWV2M3VRaTJUVFB1Nm1QcDczTVJiR2wvY3ZXR0VteHB0ckpZVTJZRHdORkR5UWFzZERPVkdrdnRwUnV4UllEakd2cmVGaDQwVkFaNnZoSUJFV3dsWUROV3I3bXVqak5PUHRyNGpCV0NlYWxMVW9CalJsdnNZR3Bvc2JrTUUrd2RLK05NYVJmVEYyMzV3aGtTSmxZOE8zMUpFU3htVjNJbmw1YXp1Zk1wRmhwZlNrS1FTdHYzOWVZaTJGTE5xYmIvWWYxTklkalN1UlRqVVVOY2ZRbTJoc1M5N0FoM3ducy90QzV4N0lGL2dNcENFQkRCTGtRUWlXN1VPam41RUJtOFhBa3JDUXNtTHp4a2F6eE9VNW9uSm1VOGdXc0xqbFlzWEw2a1RKOHh3YmFkc2JXOVA4WnRyRFNRZUVhVCtBR25IRHloUTAvaXFVekVwYVJRSzQrMUVDd1lYOFp0NmpqU3dLTTRMRFVtNGx6ZEdMdVlZT09NWW0xWTl5VllqakRJV3RhVnRDUjhkMnBET3NlR2JNaGMyN2huUmJETEZYa3R3ZnFSc0NnOXc4elEzTUtDdHlYM3laYWFrTHJDWm9ZZ2wxcTBVbkd3dFlzT2ZZcTFiaHlhN2xaNDFvZWpDcDZraEYwUUJvTXpDYVRLbVdFdTJRUHZuSXBnUzBsaGlDeTJXb05sRGNLa1QyWXdjR1l6NXYrbFltRDdFR3lOaHJnVkJJdjVHZTN6anhXQ0xEMTZxV2hTVmNkR1FBUTdOcUxqdGRlWFlPbEJMakZFalFmd1ZoTnNqZVlRb2w1anZ1VTVpSlE0VExSRndwcjZGQkZzSFdyTVQvSXFJeXRTRDdadFh0cGFMdFZnUzVLcCtQZHNCY0gyZFZDYXlscFRKMDNWemlJZ2dsM3U1QmhDc0l3S2t5Ym5NYkc1dUNUTEVjOXZkNElsc1FEYUxqR3hOUVZuTVVLY3dzc0FSTEJsQ05ibXNnNWJKZE1SK2JORE1oYkJuaElONE10WXh5RmwwbFN0VGdSRXNKMFFiVm1Gb1FSTHgxUHhjdndkellIYldkcmk3ZVkrNCttNlRhZFVFQ1doRXFYNWNFa0RTYXE2WTF4WUNmK2ZhR2FQY2ZHS3ZrOGkyRzdwMU9SK0JtTTgzVW1kU0RqUDExMDRWWHpONGlZVGJDcnVWbWV3M2ZOdzFob2kyRm5ocm5yWkdBU0xmUG5vQ0lzSkN5WXpBdWVKRGN5VkhWMklUcGczbHF4TTNESXlSWWtKbHZNb1lsVy9WdkV5eGt1V3FERGRYUnllZ1htUzFIdjNqZHJGcVFvTmdMQ2tyN3FrQWptdjZ4b3pkS25qUzJwRHM1M09ZSE9iUGJBbVM5TFJMaTQ3bFVZVFVRMEowMW02aVJqL0NNNzZTMkpnL2JSTmVjd1B2Vm1wNGxOVDFSSUVSTEFsS0cxTm5URUlscDduVE1WdGVZSDlpRjg5WXpCN1REQjlZbGh4aWlGYlVKaHZPVjUwT1BOREt3cFRIZkxNM2gycEg4TlpJSUt0K3lad3lDSFZJYzVtdm1CcXh5T2JGSmRkbVl1Mk84SFdoQUo1L09KckovdDhMM1ZTVk8xcUJFU3cxWkROOXNCWUJFdUhTUkorVk1LWmhKdHF5QWlUSzRUMmhML1habGFpWFo5dUVhMFN4eVZ1N1lIUThPNE5zL2lrTkxqYTRQdllRU1dsdWNSZXhwZ2pTU1NQS2Jpa3BMUmttWWpia1V2ZFFjeGRzRThzSkZkYXg1Y0FuTW5FNWN0Mk1SRXpIalo0SkZZcExXTWtnU2w5bCtyMVJFQUUyeE80R1I0YmsyRFJJRENWb3MyRkJkTVVKdUJjeXNRcnVWU0o0VFZadFFzanlja3gvNFZPUWFtc09pbUNMVTF2NThkMFNMTmdIeHdNTUg0K0ZkcVFTbnJSSnQ1VVFuZ1JiUHNIRVdkSDZxTnR4UmMwOE1idFJMQTFXY3RTRm9HYTUyZFl2dlFLcjEwSWlXVWlNQ2JCTXNJVTBmSDN0bXZkMEJhNE01WDRXVi9RWWtuV2p4TktWMGtST3plR1FPcVlhY09TODFydTBySjlHOXpYU3B2aFZWNXhBdlNVWTBoTmRxclU1UVc4WHdUYlBoUGl0SDdVcnNrNmxKdTcyNGxnK1M0SVhTcEo1QkpicEVvdk11ajZYdlg3eUFoSWd4MFowQkdiRzV0ZzZSb2FMSGRlaHFYcnFyYVVlYmtrYVFWemE2OG1Fdy81ZE1QUWlpUGQzK043UEhNRUM2SHZtYmdjSUJ4RHlpc1lreStPWE56L0daYjRYTG5FNFl2bnlaUkY4bzc0WGx4K2Ewc1VJQ2VuVSs3czVZSUpISE44S2IwbENYSjlqN3Z3UHY2OFNMZVp1blE5ZG9oYXVwT1RIMWZKZDdXcnU0eUErRzFmK3NiUmpyaGNxYWtVQWlMWTVjNkxLUWgycHlabDRSSE9PemNjT1lzZnQ0akVWOGhSSjJkZVp0SGF6eEZvVEphNUdOTTI3YmN0N2hhSEdLNjh3N1FjdnN2SFZiSllod3NPL2M3ZCtvT2pEUmUwaHdVU3hxdVllMjVqaDV1MkZKUytqYmFrR0NKWU0rWWRGNlRqU1J3V05udDR1WitjK0F4eHp1T2FST1FlcHFVTXErYkNVdFpLc0l3TkxOZ0lZemtLdmRpWmgzZDFIdGZobmJOZEcrVGxybkFiMERNUjdIS0ZQQVhCTXRvK0RrOHNrRGdsaFNFN0hqbE1XK1FXOXVFMFY0MjhlTU42bktQRkdyVC9QVVd3a0YwNFJ5RmF6blBaNmRNbnJuSUx6NGQ5VzIyWFkrZThxbm1XYStGbzM5LzdTY3BFMHZiRkN6eTNDckdJZTAva3RseXlheVRZTWI2SzJIeExwaXc4aWVQQy9PRytWZTUxaFZDUUsyZTJPMGNWa1QzSkpuWUovbjVRSWdTTm45ZElzUEZjSndhYkt4MlppMlFZdzZTZTJtaVV4TFNQSVUrMTBRTUJFV3dQMEdaNlpDcUN6V21rWGQ2MExIeVlWL2ZvTVg0VzBVZVlHUmViNTBJeVVnUkxDc045TXViQlhEY09OYk1Eell3Rk9WY0k0eUhMVlhoZVd6cXM1N3B4aEplN3QxMU1JSUk5QlZuSWdTUWdzYU5kQ2U0bk9DOWI0cUtScnkrNTYveldSckJZZ3c1b05wTjR6WmZPeVpKdnFnUmIxWmtRQVJIc2hPQU9iSG9xZ3FWYmZSeWVlQTR6RmVlcWh6VWtjOTdDOGFHWllINDl2cU4rTHRFQzJaTnd4T0ljdHEyd0NPK2JNZk9tbnVPV0ZwSlN4S2trYysvQStRVENaeHcxV1hSRXNQOUhGSklGUTBLbGNtYmZFSC9NcFppSTJkaXhpWW1kcFhMM0U2K1JZQWtWTzhrZHVSQ3IzVlpLdjZuQ1QxVFZwa0pBQkRzVnNzUGJuWkpnNlYzSzRhblVrNUhGY1RlblhkN0l6QzRhT0RLaE9XTENKU01TbVorNFlLQWtrVUJiSmlQbUtlL2IzM2swazJXS2drbVhtRm9XWU01UGErKzc5ZWVyRURPWGFqTU9YekRSSGRkb3o0ZTc4N0RZV1NvT0cySFIyOTB0a3FIMFJiQ24vaFl3MDJNeUp2YVRVREF2VDJweW5vMHMwVTc1UDdSRXBFS2tVbWZ0YXlWWVlzU1prM2dUNHdHUGs1N2ZpR0FleDMrQzQ0OWpDNytwNGF1UVdoaUVnQWgyRUh4NmVFUUV0aXBWNEloRFVGTkNvQWlCSVJ1QW9oZW8waklRRU1FdVF3N3FSZnIybmpseThRcDdJVEEzQWlMWXVSSGZvdmVKWUxjSWVMMzJWQWhJZzlXazJCUUVSTEFiSW1rUjdJWUllZ1hERk1HdVFFanE0aWdJaUdCSGdYSDVqWWhnbHkralRlbWhDSFpUSksxeGltQTNaQTZJWURkRTBDc1lwZ2gyQlVKU0YwZEJRQVE3Q296TGIwUUV1M3daYlVvUFJiQ2JJbW1OVXdTN0lYTkFCTHNoZ2w3Qk1FV3dLeENTdWpnS0FpTFlVV0JjZmlNaTJPWExhRk42S0lMZEZFbHJuQ0xZRFprREl0Z05FZlFLaGltQ1hZR1ExTVZSRUJEQmpnTGo4aHNSd1M1ZlJ1cWhFQkFDUWtBSXJCQUJFZXdLaGFZdUN3RWhJQVNFd1BJUkVNRXVYMGJxb1JBUUFrSkFDS3dRQVJIc0NvV21MZ3NCSVNBRWhNRHlFUkRCTGw5RzZxRVFFQUpDUUFpc0VBRVI3QXFGcGk0TEFTRWdCSVRBOGhFUXdTNWZSdXFoRUJBQ1FrQUlyQkFCRWV3S2hhWXVDd0VoSUFTRXdQSVJFTUV1WDBicW9SQVFBa0pBQ0t3UUFSSHNDb1dtTGdzQklTQUVoTUR5RVJEQkxsOUc2cUVRRUFKQ1FBaXNFQUVSN0FxRnBpNExBU0VnQklUQThoRVF3UzVmUnVxaEVCQUNRa0FJckJBQkVld0toYVl1Q3dFaElBU0V3UElSK0MrckJVNlFZR1VnTmdBQUFBQkpSVTVFcmtKZ2dnPT0iLz48L3N3aXRjaD48L2c+PC9nPjwvZz48ZyBkYXRhLWNlbGwtaWQ9IldJeVdsTGs2R0pRc3FhVUJLVE5WLTEyIj48Zz48cmVjdCB4PSIxNjAiIHk9IjIzMCIgd2lkdGg9IjEyMCIgaGVpZ2h0PSI0MCIgcng9IjYiIHJ5PSI2IiBmaWxsPSIjZmZmZmZmIiBzdHJva2U9IiMwMDAwMDAiIHBvaW50ZXItZXZlbnRzPSJhbGwiIHN0eWxlPSJmaWxsOiBsaWdodC1kYXJrKCNmZmZmZmYsIHZhcigtLWdlLWRhcmstY29sb3IsICMxMjEyMTIpKTsgc3Ryb2tlOiBsaWdodC1kYXJrKHJnYigwLCAwLCAwKSwgcmdiKDI1NSwgMjU1LCAyNTUpKTsiLz48L2c+PGc+PGcgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTAuNSAtMC41KSI+PHN3aXRjaD48Zm9yZWlnbk9iamVjdCBzdHlsZT0ib3ZlcmZsb3c6IHZpc2libGU7IHRleHQtYWxpZ246IGxlZnQ7IiBwb2ludGVyLWV2ZW50cz0ibm9uZSIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgcmVxdWlyZWRGZWF0dXJlcz0iaHR0cDovL3d3dy53My5vcmcvVFIvU1ZHMTEvZmVhdHVyZSNFeHRlbnNpYmlsaXR5Ij48ZGl2IHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hodG1sIiBzdHlsZT0iZGlzcGxheTogZmxleDsgYWxpZ24taXRlbXM6IHVuc2FmZSBjZW50ZXI7IGp1c3RpZnktY29udGVudDogdW5zYWZlIGNlbnRlcjsgd2lkdGg6IDExOHB4OyBoZWlnaHQ6IDFweDsgcGFkZGluZy10b3A6IDI1MHB4OyBtYXJnaW4tbGVmdDogMTYxcHg7Ij48ZGl2IHN0eWxlPSJib3gtc2l6aW5nOiBib3JkZXItYm94OyBmb250LXNpemU6IDA7IHRleHQtYWxpZ246IGNlbnRlcjsgY29sb3I6ICMwMDAwMDA7ICI+PGRpdiBzdHlsZT0iZGlzcGxheTogaW5saW5lLWJsb2NrOyBmb250LXNpemU6IDEycHg7IGZvbnQtZmFtaWx5OiAmcXVvdDtIZWx2ZXRpY2EmcXVvdDs7IGNvbG9yOiBsaWdodC1kYXJrKCMwMDAwMDAsICNmZmZmZmYpOyBsaW5lLWhlaWdodDogMS4yOyBwb2ludGVyLWV2ZW50czogYWxsOyB3aGl0ZS1zcGFjZTogbm9ybWFsOyB3b3JkLXdyYXA6IG5vcm1hbDsgIj5SZXBsYWNlIEJ1bGI8L2Rpdj48L2Rpdj48L2Rpdj48L2ZvcmVpZ25PYmplY3Q+PGltYWdlIHg9IjE2MSIgeT0iMjQzLjUiIHdpZHRoPSIxMTgiIGhlaWdodD0iMTciIHhsaW5rOmhyZWY9ImRhdGE6aW1hZ2UvcG5nO2Jhc2U2NCxpVkJPUncwS0dnb0FBQUFOU1VoRVVnQUFBZGdBQUFCRUNBWUFBQUFpQ2lRVkFBQUFBWE5TUjBJQXJzNGM2UUFBRlA5SlJFRlVlRjd0blFXd1BUY1Z4azl4TFc3RkhRb3pXQ251bE9KUTNJb1h0d0xGdFdqUndkMkxPN1JBc2VMdWcwT3g0aTVGaXU4UEVpWmtzcnNuZTdOdjczM3Z5OHgvL2pQdlJyOWs4K1ZJVG5ZeEpTRWdCSVNBRUJBQ1FxQTVBcnMwcjFFVkNnRWhJQVNFZ0JBUUFpYUMxU0lRQWtKQUNBZ0JJVEFEQWlMWUdVQlZsVUpBQ0FnQklTQUVSTEJhQTBKQUNBZ0JJU0FFWmtCQUJEc0RxS3BTQ0FnQklTQUVoSUFJVm10QUNBZ0JJU0FFaE1BTUNJaGdad0JWVlFvQklTQUVoSUFRRU1GcURRZ0JJU0FFaElBUW1BRUJFZXdNb0ZaV2VTSXpPOFRNTGxkWnJwVDlGMmIyWXpQN3FKbTkzY3crWUdaL2FWRHZKbGZ4TWpPN1pUS0FsNXZaclRaNVFOdWs3L204MUF6cmoyYjJRek03ek14ZWJXYWZOYk8vMVZTd2hYbTk2NiswRDF3N2ZNZGIyRjAxMVJJQkVXeExOS2ZWMVpKZzh4Nnc2VHpFeko1aFpuK2UxcjJOTCtYZDREWitvQnMyZ0ZVSU5oL3E3ODNzVG1iMk9qUDd4NXJoNEYxL0l0ZzFtN2dXM1JIQnRrQnh0VHJtSk5qWXMzZVoyVTNNN0hlcmRYVWpTM3MzdUkwYzNBWjN1aVhCUmhnT0RrU0xoTHN1eWJ2K1JMRHJNbU1OK3lHQ2JRam14S3BLSHhhUzUwOHI2enV0bVIxN29Nd0x6T3l1YTZ4S3F4eXVPN3QzZzNOWHFJeE5FSmlEWU9uWXVxMXo3L29Ud1RaWlZ1dFZpUWgyK2Zrb2ZWaFQ3WVFuTWJOOXpPeVJabmFtd3RCdWFtYXZXWDdJVzlvRDd3YTNwWjFTWTViUHl3Zk43SnBtZHRRSU5zY3pzMU9hMllYTTdPNmR2OEZlV2Y1L21ka056T3hOYTRLeGQvMkpZTmRrd2xwMlF3VGJFczFwZGJVazJOaURFNXJaYzgzc0ZsbVhQbWxtZSs4d1ZiRjNnNXMyZXlvMUZZR3BCSnUyeC81MUl6TjdsWmtkSS9saG5kYTVkLzJKWUtldXBEVXVKNEpkZm5MbUlGaEdkUW96ZTZlWlhUUVo0bDg3eitMTGR5VDc4ZVdIdldVOThHNXdXOVloTmZRZkJGb1FMUFd3aHozVnpPNlo0UHAzTTd1Q21YMWtEYkQycmo4UjdCcE1WdXN1aUdCYkkxcGYzMXdFUzA5dWJtWTRmcVFKYjh2bjFYZHpZMHQ0TjdpTkhlQ0dkcndWd1RMOGk1alpoOHpzQkFrVzl6R3pwNndCTnQ3MUo0SmRnOGxxM1FVUmJHdEU2K3ViazJCTEc4OER6T3lnK201dWJBbnZCcmV4QTl6UWpyY2tXR3l5MkhCM1Q3QjRVWGRYOXZacmdJMTMvWWxnMTJDeVduZEJCTnNhMGZyNjFwMWdVVFZmMTh6Mk03UHpteG4yWGRJL3V3QU8zekd6ZHdTSitHdG1ob09KSjEzTHpONldaRXhKLy9qQlVlc2VYWjRMSjU3UnZ6R3pkNXZaMDgwTUc1djN2cU4zZ3l2MUc2OXNEaW5ZK2E3WWFRUE9rWXcvWXZDRHNMbGpCeng4QlMvdFkzWUJSL1l3czV1WjJkWE43R3lKWFpHeGY4N01YbXBtYnphektkZFErTmJQYVdhM003UHJaZlZUMzVkRDBBWTBIci95VE9LS2VWb1NiTzAzbEI4OC8yUm1sdzBCS3p6RHFpbnZYWDlqQkh2V3pnSHN2dUZiM0MxMGt0c0dyQXVDYld6VnZIbndVWjZBZ0FoMithVlF1em5VOVBqU1lkTS9WZytaRGRXMWEwZHVqekd6dXprYi9MU1ozYm9qbzY4Njh2Y1JMUFppTm91emo5UnhSQ0FLcEpheDVOM2cwbm9nZWFTZlIzZHFSbkR3cGlrQkQvZ0dzUmMrcS9Qd1BvK2pJUUtHM00vTW5sTnh5RUN5ZzV4VGUveFFVOC9zRGdvUE5qUEdNMWRxU2JBbkM0Y3ZEaWd4RFdscWFnaXlOUDZhOHQ3MTEwZXc3KzBPV2djR2NoMmFDdzY4QkpSaDNxWWN3T2FhNXgxZHJ3aDIrZW1maTJDWld6NU1Jam1sQ2VrSTU2ZWh4RWI4UmpNN1l5VThmT1E0bTBBV1E5SnNpV0EvM0JIQW9XWjJVbWViM3JhOEcxeHM5Z3hCU2t3M2EyZVgvcGNORDI0azhMSHdmUkE1RGpwM3JHMGdTQ3pZMDRjMlU2UmlEa2pZSWxNdlcwOXpSM2JTRWFINnZ1REpQQ0ZQUzRKRnM4TDZpV3VIdFhjVk00T2NWaVhJVmN0NzExOXBIeURFSnhxTnExYmcrNW1nQVNLVXBOTENDSWhnRjU0QU01dUxZUGNNc1ZwVHd2cSttVjJxVS9mK2FHRFlwWEl4TzVJamNZNlBOck5UZDE2YVY4NVVwakhmL2J1L1AzR0FaSE9DZldGUXdhSVdqZW0zUVNvaCtoU3FXV0kxNXlRQnlhSys1VERRbDd3YkhPVzVSMHhkVnlwVVJwem5qNW5aejhOdmpCKzFJdEpUbmp4M01WRS9jeEJCOVo0bmlCbW5IVlR3eHcxalAzTWhIMFRPWFZDOFp2UEV0MzFBajcwOXFoYS9GQXBkSUtpbmMzeVpBNjUxZldxR3o2UVZ3WllPa21QWGRHb2swTkxRYThwNzExOXBIL2gxWnhJNWVkWUJDUFR6WVYzdy9VVjFjWnJ0ZldaMi9SMTJIVytHSmJwNmxTTFkxVEZjdFlZNUNMWlBBaVVBeFNNR09zd20vcDVncTB1em9US2tYRzZiUTBMQ05vbERTU3J0UW53RXZFanRyR2w5T2NHbXYvV3BXYkg5WW9QSyt3OEowQWMyblZMeWJuQ1U1V0R3K0t3U3huQ3Y3b0dBNy9iVWYrNXVrM3QrSU5zMEM0SG93YUF2QmpSZXJrL0s2bVRzZHdreGRWUHBsKy8wWWtGcVRkWG40SXgwdzV6bGlRMlcyTHdwYWZiVlQxbndSZXBHTFo2VytYb0k1dEJhSW1wQnNPREN3dzJzdjlobkRqY0VWSG50d0RxdkljZ2xDVFp0RzVNQWF1OVViYy80T1J4aFZzbk5DMC9yQ0hiL0NyK0lWZmN4bFM4Z0lJSmRmbG0wSUZpaTI1ekd6QzRUTmh4T3Rua2FPOVZpcDBVaXdna21Kalp3VkZSczFFTXFYOEkwa29mMlk4SW1lN1VlaDVrK2drVmlJNW9QRGxPbDFCZFlnT2hVKy9aSWNsNkNCVDllSDBvM3F0ZUhxMDRlVmU4cmd0UVErMDJvUzdRRmpDbFBPS3lnMGp4OThzTzNnblBUdHdlV1pPa0FWQ0p5RGp2dkQ1Si9yTTVUUDNsWk80dzcxWHhBdWc5cnZGbFBKVmdrZjdRSGx3d1NlbTVYOW9SSzNEU0NIZE1JSWVXK0lkank0M3pYT200dHZ4TnV3eDZJWUplZjFLMEk5djhWTTd1R21hRWk3a3U1SFl0OFl4OTJXaGRxWE5TYXAwdisyQmVhc1VTd2JBaElvcWozaGhKcmxwUDhZNU5NU0xHUU81NndlZklTTE1TQ2wzTDhKb2JxTFBVdmR5aERja1d0elVFalQ5aEZjVWhKTjBQUDJNbVBCekNiYWV4bktYaElYbit0cXBjSVlCd1lZc0trQUw1OVV2eVVyeWlmbHlsMTVHVWVHbFRpWXdlaVRTSll6NEVCSEVyZkh5WUlUQWhlNy80V2M2QTZFZ1JFc01zdmg3a0pGdW1PSVAvWWM0WVNxdGVISnhtR0pOQytldkk2dU1LRHFqSi9rN1pFc0RXYlFVbEM2L01hOVJJc3FqYWtkMnpRMklLUlpwSGVTL2JOMHZnNVdId2lpd0ZkZXMrek5OK29PSEZZOHJTRm5SaXBGWlZ4VEdsUWhkTHZ0UkpvcVk3V0FVcGFFaXlPWGh6bWVBUFpremFGWUdzUE52bjNoM3FmeUcwLzg0Q2lQTzBSRU1HMng3UzJ4amtJRm9rRkd4UWVxdDl3ZEtqVWh5a0JLWElwcms5Tm1oUHNsQkNPM0lmbGRCNVRINWw3Q2RZQjAyQVdMOEdlTjRUd2k4NHJTQmQ0ZHZPa29EYzlLbmdlNDZURVBjaTNCQWNzeXE5S0hyRVBYTkY2VU5JaG5MOTQ4dEJ6Q1BDTW95WEJ4dmF3UldNdkg3c3F0aXBHTmVXOTY2LzBEZFljT2t0enYwNGhJejFyWXR2bEVjRXVQNlcxejlWaEswM1ZzSEVFQkY3Z1NnNzNIVG14MXFpRmtOandEc2FXR3BQbk9rK09IbGRja09LaWJiSHZ1a1JPc0hoR2NxMkNnQXJlaEtvMDlSN0cxb2xkTGordGV6YzRiN3Q5K2J3RWkxMmF3MEJNU0NrWDcrN2R0bklpeXNOajl1RXlOdDRjWDBnTGxmY3Z4d282ZjUrRFlHbmFjMzJyaGlCTHc2a3A3MTEvcFgwQTdVL05xMENsKzhEckVqTFN1U3kyVnpZUjdQTHpPY1hKQ1VjUGJLcDRvZVpCR1o0ZEFoSFVYRGJQSlUrSThhMmRhcG1yS1RVSlQxU2VDanRPVWdoNzNpdXpTbktDSlFvUytXb09CZDVOenJ2QjFZd3o1bVVlenRWNU1GK25jMmJpemlJZXhXa3FxWWh6VDJVQzBuT1krY09VRGhUSzVKSW5oSGlJNDA1dVh0VlpzcWZnaHB5MnBuUjlxcE1UYmVHQWRhclF2M3NYdmdGSTlqYWRxcDluSDFjbHlGWExlOWRmdmc5TWNWTGk4STFKQ0dLT2FWMUNSazVaSXh0ZlJnUzcvQlJPSWRqWWEyeGwzQ0dGMU5LRWh5cjNRNzJQdGc5ZG0xa1ZvWktxT1crUDZET3AwNUtuelZ6cTdsT0hlVGU0dmpiNVJsRG5jcENoVGNJM3huK2xPN0JqQkl2YUZSS01DZTl1Q0xybVFEU0V6MXlTNFpRTnY2YWYzdmRnOHpyN2dtbHdzTUQraUlOZm5yeUhzNzcrMTVUM3JyOThINWlxMmZDMjUvbkdsR2RGQkVTd0t3TFlvUGdxQkV2emZjRVJ4cTdscEYxZm1tQ24ySHU5S3RrcEd3NlNLZmRMa1RZdk1TRUtVc1MySk1GTzZVL05NdHRwQkFzMmZVRTErbXlZTlFSWndyNm12SGUrODMyQUdOZVlEbjVTTS9uQmJwNGU0SkRpdVN1c3RBQUNJdGdGUU0rYVhKVmdxYTdrb3MvZnZTNytJdGovVGtxTUMwemdpTEY0eVBuSytYR3dZYWRCR2tTdy9kL1hLaXJpVXEybDk0Lzc3TTgxQkxscEJKdWJDRVN3Qys3eEl0Z0Z3UTlOdHlCWXFycHhpT2lTenFrbmxDQmxjNEtkZW5yMm9qbjBtbzYzanR3YnQwK0Y2WlVnd0kzclRFVEFHWXZiaTFSQitFQkNKM0tkQjI5ZTFNV2VhenI1QmppM2luaGROOWpXQk11NnliSHRXeE9iUUxCU0VYdDNnalhPSjRKZGZuSmFFU3hxVFNRdlhyUkpFNmQ0WXV0K2IyQ291V2NyRGpjRUZ2amlUUERrQkR2RkVZTUlQdGp0Q0poUDRwNHZ6bHA1RkNndndYS3ZsT2hINmFQZDFFdXdlelFCQk5FQXc2TjZNUEdxck9kMmNzSW1uMGJqYWszZ3JaYkVIQVJiQ25WWjBpSnNBc0ZPc1htWG5KendiY0RIUVdrQkJFU3dDNENlTmRtS1lLbTJUMVU4RkJTZWNnUlp3REhxeEVuZmNMenBpeVc4S21vNXdmYmRZUjFxSjcrTzBuZU54RU93YkV4RUx1S2VaMHhFQTZJTm9pWjV2SnU5Qkp0ZmY1a2lxVUFRZUFhekNjZmc3MGplUkkvQ3EvYkp5VGc4RHp5c09wOVR5aTlKc0Y3dFI5KzQ4Z1BwRUJsNjFoL3RsUGFCMnF0eXBZZm5TMTc4VStaTFpTWWdJSUtkQUZyaklpMEpscTRSY1lmQTRHa2FDZ3BQdnRLSFdYdkpuWG9JdDhobGYrN2tzdkYvczZ1Ymh3SlFPYWNwSjlqYWlEV3MyeGRuMGpyM2YyOWJJRVBQQmxlNkIxd2IvU2lYcUJsdlNYcktEek5qVDZ1VmxsdCt1RWp2RWVjaEg2Y0VzcUJOd2kzeThBSDNjd2xmU1dRdk5BMTlqeGZVZmhaekVLeFhSWndmaG9iQ1dwYkdsUjlpNWlMWVd1a1RoenhNRnZHYTNCUXB1SFllbFg4QUFSSHM4c3VqTmNGU0g1ZlQ5OHFHaG9RS3NmSDhXNTVZQjhUR3hRWVpFM1pHbm1NYkNqNmYxbE42TnF4UGJWdHlxdXFMVzF5YW9WS3cvTDd5SG9JdDNRTWVlayswMUtjOC9tOGZ3WmJDRU5ZY1prclNOblBIU3ppa1ZSNHRpT01xT1F4TjBUSU1mVjJ0Q2JhRWE1LzBYdEkyZUlNNjhMQUdBVTZRTG1PYWkyREhudDNMdjcvOEc2NHB2L3hPdUExN0lJSmRmbEpiRXl3anduN0tZOU5wd0FmK3puTnZxZm93SFQyRVRMaSsxTUhINjRWTVBSY0tOc3owRlJaQytFRjhubGpFM0ZjazRIMThiN1Z2WmxpemhJRGtZZmVZaG1LdWVnZzJsL3FvdDBZOTE2ZWFMMG13MUozSGpQVStkRURaM0g2WVM2Z2xmTHpPYmhIUDBsTjZ0dzhTYktzdnBqWEJsalEzZmE4c2xTSWVlUTg1cFc5ckxvSUY2enVIVjY3R2NDLzVFQkJLRkEyUzBrSUlpR0FYQWo1cGRnNkNMVzJ5TkRra2xlSXN4Sk56UEJlWEp0NlFSZlUyOUVKSjZibXNJYlYwMzdXZ2c0T0t1eS9vUXArbjc5QTlXZy9CbG16UXFKenY0SWlBQkxseWtEaGZZU24xU1VWOXo5Vnh5Qmw2OGFpRWN5bEFBMzFCVllqcVB5YmlVOTh3SEx5R1ZqM2hKZy9ObnF2ekhuNXF2cVpXQk11YUlOQUswY0p3OUl0cGFQMlZUQXllRjRlWWF5VDVjMllEblpOZzZSZFIyL0JZNzB1bGZxRjU0c0I2Wk0ya0tHOWJCRVN3YmZHY1V0c2NCRXMvQ0hXSEJ5bjJ4VFFORVVkSkNxVXNtd3AycC96aGdLRjdvMFBTNzlDOVcyeDllRUxuQWR0M0RUWkJUdlJwR252MXgwT3dKZlVpYlpRZXVZNXRvMFpGcFU3ODUzUmpUL3MyUlB3bGlZdk5FQTlndkpteFk4Y0V6cVdIdFlkSXBDU0Zrdi9Bb0FGSUgrNm1IUTVZU0R6WW5uT2lJaXBZR3ZkNXlqclB5NnhDc0VSdjRrMVlWUHNIZEFlQy9FMVkyaHA3eXhmdEF1RkEwd1QrckwzRE0xcytlSUFCWVVoWmgzbWFrMkJwaThNdDY1NHJWK2xCRnh3NGxPR2dseDZtUEkvT3Q1aEQxVEdDZ0FoMitTVXlGOEV5c2lrT1QwaGRTTEtsdTZDb2I1R01zT05DU3RncFU1VndSSk03b3RjZGlFS1RFeXdiUXI0V2tlU1F6bzRPNnVjOUNsUGxrVG84QkV2VitSdW9zVGxJQ1FrT0lvZjBHRGNiKzI1WmY5ajRDRGJCbytneERZV0FaTk5HTGJsZllWeEk4S2o0d1p2MkNQa0hvZVJwNkwzZW9mcXBoekZobzJOTVNFQUU4aS9OK1JQQ05ZOVdyK2pFTWN3VmNZcjZlVngrVEJzdzlJb1Y4d2orckQwT3FQZ2lwSWNPRHE2WVBaQXNTWE1RTEhIQWVkLzRDc21rczhZNDdNWjEwZmY5WVFaNm9FUDdzdnp1dDgxN0lJSmRmb0xuSk5nK2g2Y3hxWStOQTVMTjc0UjYwTUtqZForUjEyRnlnc1VCQzZrdGZZOTJyQzJrRGFRUTdxa09KUy9Cc29IeUJCNkhrdHAwUkxBMVk1OUxiZHhqanhqUTV1TzZRUDlJbTdYSm83cGZwWDc2TStkR1BSZkJZby9uS2xSK0g3cUU3d1hEVlRUZUYvYW1HT2Y3b1BEQXcxd0VpK2M5cW0razV0TGhzcSsvM2tmbnZlTlZ2aFVRRU1HdUFGNmpvbk1TTEYyYzR2QkVPWjZlZTBxdzIzbUd5dWthZFNtZWpHTlhPWEtDUlZLRkxKRVVzS1dWMUhCcEgzRGNRRHJNMVp5bGZub0pscklRRXUrSlluUHVVL3VtYmRBK1l5YTRBMlBPbmFVOGQxQnJ3ek5DNXRpR2N6Vm0zeHpGK3BHV3orT1pTRE9yYmNOWjdmOWxhMDJ3K1Z4NCs4UTY1MkRGb1hBc3NiYVJETkV3cFAyZlE0S04wZFNRb3JuSGp2MThLRzNGbkkzaG85OHpCRVN3eXkrSnVRbTJ6K0ZwNkxXUkZCV3VmUkNBQVc5Z25tWkxYNUJCamNXRDM5eVBSSFhsZlJHbVJMQTRWeEVsQ1hKRmJjcHpZOUZ4S0twcGNZTEMzbFFUQUwyR1lPTzRzYStpTW1iTTNPM2xHYjZZMlBnZ042UlQvazl0WXFVck12dDJLbGo2UFphd3ArRUpDbm1pRmp4VFVvQjNjcEh3R1F1ZTNrTU9aMzN0VVAvdW5XWUJiK0M5ZytvekhpTEFsM0VkMXFtNFh4THVNS2MyNExHK1QvbDlWWUpsRGNRK0V4QUZUY2JVUHZPTkVIeUNxMDRFa1lqWWd3dVIwRjdidmNIOHZNeGhhS3NJbG5IU3Z6MDcwOHord1N3VHYwRytONTQ3NVBBMGRWMU1tVHVWY1NJZ2duVUNwV3hORVJnaTJLWU5xVEloSUFTRXdGSUlpR0NYUW41bnR5dUMzZG56cjlFTGdSMkJnQWgyUjB6ejJnMVNCTHQyVTZJT0NRRWgwQm9CRVd4clJGV2ZCd0VSckFjbDVSRUNRbUNqRVJEQmJ2VDBiV3puUmJBYk8zWHF1QkFRQWw0RVJMQmVwSlN2SlFJaTJKWm9xaTRoSUFUV0VnRVI3RnBPeTdidmxBaDIyMCt4QmlnRWhJQUlWbXRnQ1FSRXNFdWdyamFGZ0JEWVVnUkVzRnNLdHhvTENJaGd0UlNFZ0JEWTlnaUlZTGY5RksvbEFFV3dhemt0NnBRUUVBSXRFUkRCdGtSVGRRa0JJU0FFaElBUUNBaUlZTFVVaElBUUVBSkNRQWpNZ0lBSWRnWlFWYVVRRUFKQ1FBZ0lBUkdzMW9BUUVBSkNRQWdJZ1JrUUVNSE9BS3FxRkFKQ1FBZ0lBU0VnZ3RVYUVBSkNRQWdJQVNFd0F3SWkyQmxBVlpWQ1FBZ0lBU0VnQkVTd1dnTkNRQWdJQVNFZ0JHWkFRQVE3QTZpcVVnZ0lBU0VnQklTQUNGWnJRQWdJQVNFZ0JJVEFEQWlJWUdjQVZWVUtBU0VnQklTQUVCREJhZzBJQVNFZ0JJU0FFSmdCQVJIc0RLQ3FTaUVnQklTQUVCQUNJbGl0QVNFZ0JJU0FFQkFDTXlEd2I1RDR4NUFyWjBOV0FBQUFBRWxGVGtTdVFtQ0MiLz48L3N3aXRjaD48L2c+PC9nPjwvZz48L2c+PC9nPjwvZz48L3N2Zz4="},72680:(Qn,qe,s)=>{"use strict";s.d(qe,{A:()=>M});var r=s(38502),I=Object.defineProperty,J=Object.defineProperties,N=Object.getOwnPropertyDescriptors,T=Object.getOwnPropertySymbols,te=Object.prototype.hasOwnProperty,q=Object.prototype.propertyIsEnumerable,ne=(w,y,j)=>y in w?I(w,y,{enumerable:!0,configurable:!0,writable:!0,value:j}):w[y]=j,B=(w,y)=>{for(var j in y||(y={}))te.call(y,j)&&ne(w,j,y[j]);if(T)for(var j of T(y))q.call(y,j)&&ne(w,j,y[j]);return w},l=(w,y)=>J(w,N(y)),U=(w,y)=>{var j={};for(var Q in w)te.call(w,Q)&&y.indexOf(Q)<0&&(j[Q]=w[Q]);if(w!=null&&T)for(var Q of T(w))y.indexOf(Q)<0&&q.call(w,Q)&&(j[Q]=w[Q]);return j},M=(0,r.forwardRef)((w,y)=>{var j=w,{size:Q,spin:ze,style:me}=j,Se=U(j,["size","spin","style"]);const Me=B(B({width:Q||"var(--x-icon-size, 1em)",height:Q||"var(--x-icon-size, 1em)",animation:ze?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),me);return r.createElement("svg",l(B({ref:y,style:Me},Se),{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),r.createElement("g",{clipPath:"url(#clip0_429_142)"},r.createElement("rect",{width:"32",height:"32",rx:"7.07292",fill:"#FF715E"}),r.createElement("path",{d:"M9.67896 21.0657C9.88557 20.5482 10.455 20.2607 11.0024 20.4169C11.5864 20.5837 11.9253 21.1928 11.7586 21.7768L10.6586 25.6268C10.4918 26.2108 9.88269 26.5497 9.29868 26.3831C8.71469 26.2162 8.37582 25.6071 8.54243 25.0231L9.64243 21.1731L9.67896 21.0657Z",fill:"white",fillOpacity:"0.7"}),r.createElement("path",{d:"M22.321 21.0657C22.1144 20.5482 21.545 20.2607 20.9976 20.4169C20.4136 20.5837 20.0747 21.1928 20.2414 21.7768L21.3414 25.6268C21.5082 26.2108 22.1173 26.5497 22.7013 26.3831C23.2853 26.2162 23.6242 25.6071 23.4576 25.0231L22.3576 21.1731L22.321 21.0657Z",fill:"white",fillOpacity:"0.7"}),r.createElement("path",{d:"M23.7002 5.99976C25.5225 5.99986 26.9998 7.47729 27 9.29956V19.2C27 21.0224 25.5226 22.4997 23.7002 22.4998H8.2998C6.47735 22.4997 5 21.0224 5 19.2V9.29956C5.00024 7.47729 6.4775 5.99986 8.2998 5.99976H23.7002Z",fill:"white"}),r.createElement("path",{d:"M22 15.9999C22.5522 15.9999 22.9999 16.4477 23 16.9999C23 17.5522 22.5523 17.9999 22 17.9999H17C16.4477 17.9999 16 17.5522 16 16.9999C16.0001 16.4477 16.4478 15.9999 17 15.9999H22ZM24 10.4999C24.5522 10.4999 24.9999 10.9477 25 11.4999C25 12.0522 24.5523 12.4999 24 12.4999H17C16.4477 12.4999 16 12.0522 16 11.4999C16.0001 10.9477 16.4478 10.4999 17 10.4999H24Z",fill:"#FFB7AD"}),r.createElement("path",{d:"M10.5803 10.5173C10.7466 10.1609 11.2534 10.1609 11.4197 10.5173L12.4027 12.6235C12.4487 12.7221 12.5279 12.8013 12.6265 12.8473L14.7327 13.8303C15.0891 13.9966 15.0891 14.5034 14.7327 14.6697L12.6265 15.6527C12.5279 15.6987 12.4487 15.7779 12.4027 15.8765L11.4197 17.9827C11.2534 18.3391 10.7466 18.3391 10.5803 17.9827L9.59731 15.8765C9.5513 15.7779 9.47205 15.6987 9.37346 15.6527L7.26731 14.6697C6.9109 14.5034 6.9109 13.9966 7.26731 13.8303L9.37346 12.8473C9.47205 12.8013 9.5513 12.7221 9.59731 12.6235L10.5803 10.5173Z",fill:"#FF715D"})),r.createElement("defs",null,r.createElement("clipPath",{id:"clip0_429_142"},r.createElement("rect",{width:"32",height:"32",fill:"white"}))))})},73298:(Qn,qe,s)=>{"use strict";s.d(qe,{L:()=>Yt});var r=s(38502),I=s(70768),J=s(72274),N=s(18381);const T={popupAlertModal:{isOpen:!1},loginModal:{isOpen:!1},teamSelectModal:{isOpen:!1},sharingModal:{isOpen:!1},chargeOverlay:{isOpen:!1},previewAuthModal:{isOpen:!1,isWrongPwd:!1},upgradeChatGPTModal:{isOpen:!1}};function te(Nt,jt){Nt===void 0&&(Nt=T);const{type:vn,payload:Dt}=jt;switch(vn){case"modal:update:state":return{...Nt,...Dt};case"modal:reset:state":return T;default:return Nt}}var q=s(95549),ne=s(39e3),B=s(57479),l=s(67787),U=s(58320),C=s(86964);const M=(0,l.Ay)(U.H).withConfig({displayName:"styles__StyledPreviewAuthModal",componentId:"sc-urw68g-0"})(["min-height:unset;&.preview-auth-modal{.header{color:",";border-bottom:1px solid ",";}}@media (max-width:40rem){width:306px;margin:20vh auto;}.wrapper{display:flex;margin:14px 0;.input-wrapper{display:flex;flex-direction:column;width:100%;input{font-size:14px;line-height:16px;height:32px;border:1px solid #1684fc;border-top-left-radius:6px;border-bottom-left-radius:6px;padding:0 12px;}span{margin-top:4px;color:#ff2e4a;font-size:12px;line-height:17px;}}.confirm-btn{display:flex;justify-content:center;align-items:center;position:relative;width:130px;height:32px;font-size:14px;font-weight:500;border-top-right-radius:6px;border-bottom-right-radius:6px;background-color:#1684FC;color:#fff;&:hover{background-color:#419BFF;}&:active{background-color:#206CCF;}}}"],C.fm.color_text_L1.value_light,C.fm.color_bg_border_02.value_light);var w=s(72214);const y=Nt=>{let{onConfirm:jt,isWrongPwd:vn}=Nt;const[Dt,$t]=(0,r.useState)(""),kn=Kn=>{Kn.key===B._.Enter&&jt(Dt)};return(0,w.jsxs)(M,{className:"preview-auth-modal",isOpen:!0,canCloseOnEsc:!1,canCloseOnClickMask:!1,canConfirmOnEnter:!1,isUsePortal:!1,title:"\u8BF7\u8F93\u5165\u5BC6\u7801\u8BBF\u95EE\u9879\u76EE",canClose:!1,width:400,footer:null,children:[(0,w.jsxs)("div",{className:"wrapper",children:[(0,w.jsxs)("div",{className:"input-wrapper",children:[(0,w.jsx)("input",{type:"password",onChange:Kn=>$t(Kn.currentTarget.value)}),vn&&(0,w.jsx)("span",{className:"warning",children:"\u5BC6\u7801\u9519\u8BEF"})]}),(0,w.jsx)("button",{className:"confirm-btn",onClick:()=>jt(Dt),children:"\u786E\u5B9A"})]}),(0,w.jsx)(ne.A,{target:document,onKeyDown:kn})]})};var j=s(86200),Q=s(77814);const me=()=>ENV.IS_MO?Q.A:j.A;var Se=s(69368);const Me=(0,l.Ay)(U.H).withConfig({displayName:"styles__StyledTeamSelectModal",componentId:"sc-ba0ta4-0"})(["height:448px;.content{width:100%;height:100%;padding:0;}iframe{width:100%;height:100%;border:0;}"]);class De extends r.PureComponent{constructor(){super(...arguments),(0,q.A)(this,"setIframeRef",jt=>this.$iframe=jt),(0,q.A)(this,"onhandleFunc",jt=>{jt.data==="close"?this.onCancel():jt.data.msg==="submit"&&this.onSubmit(jt.data.param)}),(0,q.A)(this,"onSubmit",async jt=>{const{target:vn}=jt,{onConfirm:Dt}=this.props;this.close(),Dt(vn)}),(0,q.A)(this,"onCancel",()=>{const{onCancel:jt}=this.props;this.close(),jt&&jt()}),(0,q.A)(this,"close",()=>{const{onClose:jt}=this.props;jt()})}async componentDidMount(){window.addEventListener("message",this.onhandleFunc,!1)}componentWillUnmount(){window.removeEventListener("message",this.onhandleFunc,!1)}render(){const{isOpen:jt,projectCid:vn}=this.props,Dt={title:I18N.Popups.save_to,from:"workspace",appCidList:vn?[vn]:[]};return(0,w.jsx)(Me,{isOpen:jt,className:(0,Se.Hn)(["TargetSelectingModal","select-common"]),onClose:this.onCancel,title:null,width:800,footer:null,isUsePortal:!1,canClose:!1,modalRender:()=>(0,w.jsx)("iframe",{ref:this.setIframeRef,src:"/embed/folder_select?param="+JSON.stringify(Dt)})})}}var tt=s(53732),at=s.n(tt),ht=s(4650),Je=s(84860),$=s(56202);const mt=(0,l.Ay)(U.H).withConfig({displayName:"styles__StyledPopupHelp",componentId:"sc-1wnmmop-0"})(["&{min-width:unset;}&.dark{background:",";border:1px solid ",";box-shadow:2px 8px 20px 0px #0000001A;.header{border-bottom:1px solid ",";color:",";}.close-btn{color:",";&:hover{color:",";}&:active{color:",";}}.content{color:",";}footer{.button-root[class*='type-secondary']{border:1px solid ",";background:",";color:",";&:hover:not([class*='is-disabled']){border:1px solid ",";background:",";}&:active:not([class*='is-disabled']){border:1px solid ",";background:",";}}.button-root[class*='type-danger']{background:",";&:hover:not([class*='is-disabled']){background:",";}&:active:not([class*='is-disabled']){background:",";}&[class*='is-disabled']{color:",";background:",";}}.button-root[class*='type-danger-blue']{background:",";&:hover:not([class*='is-disabled']){background:",";}&:active:not([class*='is-disabled']){background:",";}&[class*='is-disabled']{color:",";background:",";}}}}&.light{background:",";border:1px solid ",";.header{border-bottom:1px solid ",";color:",";}.close-btn{color:",";&:hover{color:",";}&:active{color:",";}}.content{color:",";}footer{.button-root[class*='type-secondary']{border:1px solid ",";color:",";background:",";&:hover:not([class*='is-disabled']){border:1px solid ",";background:",";}&:active:not([class*='is-disabled']){border:1px solid ",";background:",";}}.button-root[class*='type-danger']{background:",";&:hover:not([class*='is-disabled']){background:",";}&:active:not([class*='is-disabled']){background:",";}&[class*='is-disabled']{color:",";background:",";}}.button-root[class*='type-danger-blue']{background:",";&:hover:not([class*='is-disabled']){background:",";}&:active:not([class*='is-disabled']){background:",";}&[class*='is-disabled']{color:",";background:",";}}}}&.Modal{border-radius:8px;color:#1f292e;&.AlertModal{width:400px;}@media (max-width:40rem){width:100%;}}a{&:link,&:visited{color:#eb5648;}&:hover,&:active{text-decoration:none;}}.desc{font-size:14px;line-height:20px;&{}& + .FormEntry{margin-top:1em;}.ellipsis-content{display:flex;span{max-width:209px;display:block;text-overflow:ellipsis;overflow:hidden;}}}.Punctuation .Ellipsis{max-width:5em;}.desc.tertiary{margin:1em 0 0;font-size:12px;color:#8d9ea6;}.recycle{margin:0 0.25em;padding:0.4em 0.5em;border:1px solid #e5e5e5;border-radius:1px;color:#5b6b73;}.icon-recycle{font-size:1.1em;vertical-align:-0.15em;color:#eb5648;}"],C.fm.color_bg_white.value_dark,C.fm.color_bg_border_01.value_dark,C.fm.color_bg_border_02.value_dark,C.fm.color_text_L1.value_dark,C.fm.color_text_L2.value_dark,C.fm.color_text_L1.value_dark,C.fm.color_text_L1.value_dark,C.fm.color_text_L1.value_dark,C.fm.color_bg_border_02.value_dark,C.fm.color_bg_white.value_dark,C.fm.color_text_L1.value_dark,C.fm.color_bg_border_02.value_dark,C.fm.color_btn_secondary_hover.value_dark,C.fm.color_bg_border_02.value_dark,C.fm.color_btn_secondary_active.value_dark,C.fm.color_btn_danger_normal.value_dark,C.fm.color_btn_danger_hover.value_dark,C.fm.color_btn_danger_clicked.value_dark,C.fm.color_text_disabled02.value_dark,C.fm.color_btn_danger_disabled.value_dark,C.fm.color_btn_primary_normal.value_dark,C.fm.color_btn_primary_hover.value_dark,C.fm.color_btn_primary_clicked.value_dark,C.fm.color_text_disabled02.value_dark,C.fm.color_btn_primary_disabled.value_dark,C.fm.color_bg_white.value_light,C.fm.color_bg_border_01.value_light,C.fm.color_bg_border_02.value_light,C.fm.color_text_L1.value_light,C.fm.color_text_L2.value_light,C.fm.color_text_L1.value_light,C.fm.color_text_L1.value_light,C.fm.color_text_L1.value_light,C.fm.color_bg_border_02.value_light,C.fm.color_text_L1.value_light,C.fm.color_bg_white.value_light,C.fm.color_bg_border_02.value_light,C.fm.color_btn_secondary_hover.value_light,C.fm.color_bg_border_02.value_light,C.fm.color_btn_secondary_active.value_light,C.fm.color_btn_danger_normal.value_light,C.fm.color_btn_danger_hover.value_light,C.fm.color_btn_danger_clicked.value_light,C.fm.color_text_disabled02.value_light,C.fm.color_btn_danger_disabled.value_light,C.fm.color_btn_primary_normal.value_light,C.fm.color_btn_primary_hover.value_light,C.fm.color_btn_primary_clicked.value_light,C.fm.color_text_disabled02.value_light,C.fm.color_btn_primary_disabled.value_light);class yt extends r.PureComponent{render(){const{isOpen:jt,className:vn,type:Dt,alertType:$t,title:kn,desc:Kn=kn,isHTML:dn,onClose:ft,onCancel:Lt=()=>null,onConfirm:bn,canClose:Yn,canCancel:on,canConfirm:yn,cancelText:lo=I18N.dModule.cancel,confirmText:qn=I18N.dModule.confirm,theme:Wn,confirmBtnProps:Nn}=this.props,xn=()=>{typeof Lt=="function"&&Lt(),ft()},Ye=on?()=>{Lt&&Lt(),ft&&ft()}:void 0,wn=yn?()=>{bn&&bn(),ft&&ft()}:void 0;return(0,w.jsxs)(mt,{isOpen:jt,type:Dt,className:at()(vn,Wn,{"wonder-share":!!ENV.IS_MO}),portalClassName:(0,$.Fr)()?"popup-helper-portal is-mobile":"popup-helper-portal",title:kn===Kn||!kn?I18N.dModule.reminder:kn,onClose:xn,canClose:Yn,onCancel:Ye,onConfirm:wn,confirmBtnProps:Nn,cancelBtnProps:{type:"secondary"},cancelText:lo,confirmText:qn,isUsePortal:!1,children:[dn?(0,w.jsx)("p",{className:"desc",dangerouslySetInnerHTML:{__html:Kn}}):(0,w.jsx)("div",{className:"desc",children:Kn}),$t==="prompt"&&(0,w.jsx)(Je.l,{name:I18N.dModule.password,children:(0,w.jsx)(ht.A,{type:"password",className:"prompt-pwd"})})]})}}(0,q.A)(yt,"defaultProps",{type:"alert",theme:"light",confirmBtnProps:{type:"danger"}});var Le=s(84957),He=s(17307),ye=s(88132),je=s(81717),ot=s(44327),we=s(85449),$e=s(98033);const ge=(0,l.DU)(["#IBOT_OVERLAY_ROOT{.OrderChargeOverlay{z-index:1051;height:auto;padding:0;.OverlayCloseButton{z-index:2;&:hover{color:#eb5648;}}}}"]),Ze=(0,l.Ay)(U.H).withConfig({displayName:"styles__StyledAIPointsPaymentModal",componentId:"sc-1dllwwl-0"})(["width:100%;height:100%;background:transparent;&.workspace-modal{border-radius:0;}iframe{width:100%;height:100%;border:none;}svg{position:absolute;width:24px;height:24px;right:14px;top:15px;cursor:pointer}"]),W=(0,l.Ay)(U.H).withConfig({displayName:"styles__StyledMatPaymentModal",componentId:"sc-1dllwwl-1"})(["width:980px;height:600px;&.workspace-modal{border-radius:12px;}iframe{width:100%;height:100%;border:none;}"]);var an=s(32060);class _t extends r.PureComponent{constructor(jt){super(jt),(0,q.A)(this,"handleMessage",async vn=>{try{if(vn.data!=="isHasOrgUnpaid"){const{msg:Dt,payload:$t={}}=JSON.parse(vn.data);if(Dt==="closeChargeModal")this.onCloseEffect();else if(Dt==="chargePaymentSuccess")if(this.props.isChatGPT)await(0,ye.Rn)();else{const kn=(0,we.dP)().current.currentProject.cid,Kn=await(0,ot.wV)(kn),{user:dn,org:ft,team:Lt,user_fcg:bn,org_fcg:Yn,space:on}=Kn,{currentUser:yn,currentOrg:lo}=(0,$e.n)({user:dn,org:ft});Object.assign(MB,{user:yn||{},currentOrg:lo}),MB.action("current:update:state",{currentOrg:lo,currentTeam:Lt,currentUser:yn,user_fcg:bn,org_fcg:Yn,currentSpace:on}),this.setState({paid:!0})}else if(Dt==="openSoloChargeModal"){this.onCloseEffect();const{payEntrance:kn,checkoutArea:Kn,checkoutPlace:dn,templateCid:ft,templateName:Lt,templateCategory:bn,templatePaySource:Yn,templatePayClickType:on}=this.props,yn={mode:"solo",payEntrance:kn,checkoutPlace:dn,checkoutArea:Kn,templateCid:ft,templateName:Lt,templateCategory:bn,templatePaySource:Yn,templatePayClickType:on,...$t};setTimeout(()=>MB.global.popupHelper.chargeAsync({...yn}),100)}else if(Dt==="openOrgChargeModal"){const{payEntrance:kn,checkoutArea:Kn,checkoutPlace:dn,templateCid:ft,templateName:Lt,templateCategory:bn,templatePaySource:Yn,templatePayClickType:on}=this.props,yn={mode:"org",payEntrance:kn,checkoutPlace:dn,checkoutArea:Kn,templateCid:ft,templateName:Lt,templateCategory:bn,templatePaySource:Yn,templatePayClickType:on,...$t};setTimeout(()=>MB.global.popupHelper.chargeAsync({...yn}),100)}else if(Dt==="openSoloMatPaymentModal"){const{payEntrance:kn,checkoutArea:Kn,checkoutPlace:dn,templateCid:ft,templateName:Lt,templateCategory:bn,templatePaySource:Yn,templatePayClickType:on}=this.props,yn={mode:"mat",payEntrance:kn,checkoutPlace:dn,checkoutArea:Kn,templateCid:ft,templateName:Lt,templateCategory:bn,templatePaySource:Yn,templatePayClickType:on,...$t};setTimeout(()=>MB.global.popupHelper.chargeAsync({...yn}),100)}else if(Dt==="openOrgMatPaymentModal"){const{payEntrance:kn,checkoutArea:Kn,checkoutPlace:dn,templateCid:ft,templateName:Lt,templateCategory:bn,templatePaySource:Yn,templatePayClickType:on}=this.props,yn={mode:"mat",payEntrance:kn,checkoutPlace:dn,checkoutArea:Kn,templateCid:ft,templateName:Lt,templateCategory:bn,templatePaySource:Yn,templatePayClickType:on,...$t};setTimeout(()=>MB.global.popupHelper.chargeAsync({...yn}),100)}}}catch(Dt){}}),(0,q.A)(this,"onCloseEffect",()=>{const{onClose:vn}=this.props;setTimeout(()=>{vn(),(0,an.iX)()},30)}),this.state={paid:!1}}componentDidMount(){const{isChatGPT:jt}=this.props;window.addEventListener("message",this.handleMessage),jt&&(0,je.ck)("\u5269\u4F59\u70B9\u6570")}componentWillUnmount(){window.removeEventListener("message",this.handleMessage)}render(){const{mode:jt,matName:vn="",soloTab:Dt="piece",soloPtypes:$t="proto",isBuyAgentPoint:kn=!1,potatoSource:Kn="",payEntrance:dn,orgCid:ft,onClose:Lt,isOpen:bn,productId:Yn,hours:on,immediateUse:yn,checkoutArea:lo,checkoutPlace:qn,isSelectOrg:Wn,isChatGPT:Nn,templateCid:xn,templateName:Ye,templateCategory:wn,isAddMatToCartConfirmModalOpened:Hn,openOrgAddMatToNotProtoModal:zn,addAippt:ko,showAipptBenefitPage:On,templatePaySource:Mo,templatePayClickType:jn,isFromMatPaymentModal:xo}=this.props;let jo={mode:jt,matName:vn,payEntrance:dn,templatePaySource:Mo,templatePayClickType:jn,orgCid:ft,from:lo,productId:Yn,hours:on,immediateUse:(yn||"")+(ko?"yearly":""),isSelectOrg:Wn,checkoutArea:lo,checkoutPlace:qn,initialWorkspace:ft||"me",templateCid:xn,templateName:Ye,templateCategory:wn,soloTab:Dt,soloPtypes:$t,isAddMatToCartConfirmModalOpened:Hn,openOrgAddMatToNotProtoModal:zn,showAipptBenefitPage:On,addAippt:ko,isFromMatPaymentModal:xo};if(Nn){jo={mode:ft?"org":"solo",orgCid:ft,checkoutArea:lo,checkoutPlace:qn,isSelectOrg:Wn};for(const[Jt,Ln]of Object.entries(jo))Ln||delete jo[Jt];return(0,w.jsx)(Ze,{className:"charge-container is-view-centered",isOpen:bn,onClose:Lt,canCloseOnClickMask:!0,isUsePortal:!1,width:1200,centered:!0,footer:null,title:null,modalRender:()=>(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)("iframe",{src:location.origin+"/embed/ai_payment_modal?param="+(0,Le._)(jo)}),(0,w.jsx)(He.C,{name:"common/close",onClick:Lt})]})})}if(jt==="mat"){var Qo;const tn=jo.orgCid||((Qo=MB)==null||(Qo=Qo.currentOrg)==null?void 0:Qo.cid),Jt=tn?"org":"solo";return(0,w.jsx)(W,{isOpen:bn,onClose:this.onCloseEffect,portalClassName:"OrderChargeOverlay",className:"is-view-centered",isUsePortal:!1,centered:!0,footer:null,title:null,modalRender:()=>(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)("iframe",{src:location.origin+"/embed/mat_payment_modal?param="+(0,Le._)({...jo,mode:Jt,orgCid:tn})}),(0,w.jsx)(ge,{})]})})}const cn=location.origin;let In=cn+"/embed/payment_modal?param="+(0,Le._)(jo);if(kn){const tn={potatoSource:Kn};In=cn+("/embed/payment_modal/potato?param="+(0,Le._)(tn))}if(jt==="aippt-solo"){const tn={isAipptPopup:!0,showAipptBenefitPage:On,payEntrance:dn,checkoutArea:lo,checkoutPlace:qn};In=cn+("/embed/payment_modal?param="+(0,Le._)(tn))}return(0,w.jsx)(Ze,{isOpen:bn,onClose:this.onCloseEffect,portalClassName:"OrderChargeOverlay",className:"is-view-centered",isUsePortal:!1,mask:!1,centered:!0,footer:null,title:null,modalRender:()=>(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)("iframe",{src:In}),(0,w.jsx)(ge,{})]})})}}const nn=(0,l.Ay)(U.H).withConfig({displayName:"styles__StyledNewOrderOverlay4WS",componentId:"sc-1yvcmxe-0"})(["height:670px;&.workspace-modal{border-radius:18px;}iframe{width:100%;height:100%;border:none;border-radius:18px;}svg{position:absolute;width:24px;height:24px;right:14px;top:15px;cursor:pointer;color:#FFF;}"]);var Oe=s(23744);class sn extends r.PureComponent{constructor(){super(...arguments),(0,q.A)(this,"state",{isOpen:!1}),(0,q.A)(this,"handleCloseModal",jt=>{jt.state&&jt.state.target==="MeanSure"&&(this.setState({isOpen:!1}),window.history.forward())}),(0,q.A)(this,"handleMessage",jt=>{try{jt.data==="close"?this.props.onClose():jt.data==="reload"&&location.reload()}catch(vn){console.error(vn)}})}componentDidMount(){const{isOpen:jt}=this.props;this.setState({isOpen:jt}),setTimeout(()=>{window.history.state&&window.history.state.target==="Final"||(window.history.pushState({target:"MeanSure",random:Math.random()},"",location.href),window.history.pushState({target:"Final",random:Math.random()},"",location.href)),window.addEventListener("popstate",vn=>this.handleCloseModal(vn),!1)},500),window.addEventListener("message",this.handleMessage)}componentWillUnmount(){window.removeEventListener("popstate",jt=>this.handleCloseModal(jt),!1),window.removeEventListener("message",this.handleMessage)}render(){const{mode:jt,payEntrance:vn,orgCid:Dt,onClose:$t,from:kn,productId:Kn,hours:dn}=this.props,{isOpen:ft}=this.state,Lt={mode:jt,payEntrance:vn,orgCid:Dt,from:kn||"workspace",productId:Kn,hours:dn};return(0,w.jsx)(nn,{isOpen:ft,onClose:$t,canCloseOnClickMask:!0,isUsePortal:!1,width:1200,centered:!0,portalClassName:"OrderChargeOverlay",modalRender:()=>(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)("iframe",{src:location.origin+"/embed/ws_payment_modal?param="+(0,Le._)(Lt)}),(0,w.jsx)(Oe.C,{name:"common/close",onClick:$t})]})})}}const Pt=()=>ENV.IS_MO?sn:_t;var dt=s(65710),Vn=s(37342);const o=(0,l.Ay)(U.H).withConfig({displayName:"styles__StyledUpgradeChatGPTModal",componentId:"sc-1tz832-0"})(['height:342px;background-size:100% auto;background-repeat:no-repeat;background-image:url("/mb-proto2/images/AIGC/upgrade_modal_bg.png");box-shadow:0px 3px 6px rgba(0,0,0,0.02),0px 6px 16px rgba(0,0,0,0.02),0px 9px 28px rgba(0,0,0,0.09);overflow:hidden;display:flex;align-items:center;flex-direction:column;.time-limited{width:fit-content;padding:0 14px;height:32px;line-height:32px;font-style:italic;border-radius:0 0 16px 0;background:linear-gradient(92.27deg,#1684FC 6.81%,#F79DFE 97.87%);box-shadow:4px 12px 40px rgba(39,54,78,0.1),0px 2px 10px rgba(39,54,78,0.08);font-weight:900;font-size:14px;line-height:17px;display:flex;align-items:center;letter-spacing:0.02em;color:#FFFFFF;position:absolute;left:0;top:0;}.close-guide{display:flex;position:absolute;right:18px;top:18px;width:24px;height:24px;cursor:pointer;border-radius:4px;&:hover{background:rgba(0,0,0,0.1);}}.upgrade-title{margin-top:150px;font-weight:600;font-size:18px;line-height:25px;display:flex;align-items:center;color:#333333;}.upgrade-content{margin-top:17px;font-size:14px;line-height:22px;text-align:center;color:#5D6F8F;max-width:calc(100% - 110px);}.bottom-buttons{display:flex;justify-content:center;margin-top:45px;font-weight:500;font-size:14px;.cancel{margin-right:12px;border:1px solid #CFD6E6;border-radius:6px;display:flex;align-items:center;justify-content:center;color:#415058;height:40px;width:170px !important;&:hover{background:#E6E9F1;}&:active{background:#CFD6E6;}}.upgrade{height:40px;width:170px !important;font-size:14px;display:flex;align-items:center;justify-content:center;color:white;border-radius:6px;background:linear-gradient(88.45deg,#1684FC 6.98%,#3BD8FD 176.47%);&:hover{background:linear-gradient(88.42deg,#006FE8 -0.16%,#00CEFF 176.47%);}}}']);class Gn extends r.PureComponent{constructor(){super(...arguments),(0,q.A)(this,"upgradeHandle",()=>{const{onClose:jt,orgCid:vn,checkoutArea:Dt,checkoutPlace:$t}=this.props;jt(),setTimeout(()=>{ENV.IS_MO?(0,Vn.JW)(dt.Jh,"_blank","noreferrer"):MB.global.popupHelper.chargeAsync({orgCid:vn,checkoutArea:Dt,checkoutPlace:$t,isChatGPT:!0})},10)})}componentDidMount(){(0,je.ck)("\u70B9\u6570\u4E0D\u8DB3\u5F39\u7A97\u652F\u4ED8")}render(){const{isOpen:jt,onClose:vn}=this.props;return(0,w.jsx)(o,{className:at()("upgradeChatGPT"),isOpen:jt,onClose:vn,canCloseOnClickMask:!0,isUsePortal:!1,width:400,canClose:!1,modalRender:()=>(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(He.C,{name:"chatGPT/modal_close",className:"close-guide",onClick:vn}),(0,w.jsx)("div",{className:"upgrade-title",children:I18N.ChatGPT.upgrade_limit}),(0,w.jsx)("div",{className:"upgrade-content",children:I18N.ChatGPT.upgrade_limit_content}),(0,w.jsxs)("div",{className:"bottom-buttons",children:[(0,w.jsx)("div",{className:"cancel",onClick:vn,children:I18N.Comment.cancel}),(0,w.jsx)("div",{className:"upgrade",onClick:this.upgradeHandle,children:I18N.ChatGPT.Upgrade})]})]})})}}const xt=(0,l.DU)([".popup-helper-portal{&.ModalPortal{z-index:9999;&.is-mobile{padding:unset;min-width:unset;.Modal{width:unset;}}}.wonder-share .confirm-btn{background-color:#4257ff;color:#fff;&:hover{background-color:#7584ff;}}}.OrderChargeOverlay{transition:none !important;.workspace-modal{box-shadow:none !important;}}.ai-mark-text{font-size:11px !important;}"]);class Ot extends r.PureComponent{constructor(){super(...arguments),(0,q.A)(this,"handleCloseModal",()=>{const{dispatch:jt}=this.props;jt({type:"modal:reset:state"})})}render(){const{loginModal:jt,popupAlertModal:vn,teamSelectModal:Dt,chargeOverlay:$t,previewAuthModal:kn,dispatch:Kn,upgradeChatGPTModal:dn}=this.props,ft=Pt(),Lt=me();return(0,w.jsxs)(w.Fragment,{children:[jt.isOpen&&(0,w.jsx)(Lt,{...jt,onClose:this.handleCloseModal,dispatch:Kn}),Dt.isOpen&&(0,w.jsx)(De,{...Dt,onClose:this.handleCloseModal,dispatch:Kn}),vn.isOpen&&(0,w.jsx)(yt,{...vn,onClose:this.handleCloseModal,dispatch:Kn}),$t.isOpen&&(0,w.jsx)(ft,{...$t,onClose:this.handleCloseModal,dispatch:Kn}),kn.isOpen&&(0,w.jsx)(y,{...kn}),dn.isOpen&&(0,w.jsx)(Gn,{...dn,onClose:this.handleCloseModal,dispatch:Kn}),(0,w.jsx)(xt,{})]})}}const wt=(0,N.Ng)(Nt=>({...Nt}))(Ot);var Kt=s(25306),fe=s(27845),bt=s(79287),un=s.n(bt);const gt=un()().startOf("day");function Wt(Nt){return gt.isSameOrAfter(un()(Nt).startOf("day"))}function Un(Nt){return Wt(Nt)?0:un()(Nt).subtract(1,"day").diff(gt,"day")}const Jn={canUploadToSquare:!1},Yt=function(Nt){Nt===void 0&&(Nt="POPUP-HELPER-ROOT");const jt=document.createElement("div");jt.id=Nt,document.body.appendChild(jt);const vn=(0,J.y$)(te),Dt=(0,I.createRoot)(jt);Dt.render((0,w.jsx)(N.Kq,{store:vn,children:(0,w.jsx)(wt,{})}));const{confirmAsync:$t,alertAsync:kn,alertAsyncWide:Kn,alertAsyncBlocked:dn,promptGetPasswordAsync:ft,loginAsync:Lt,teamSelectModalAsync:bn,sharingAsync:Yn,chargeAsync:on,upgradeChatGPTAsync:yn}=rt(vn.dispatch,vn.getState);return{confirmAsync:$t,alertAsync:kn,alertAsyncWide:Kn,alertAsyncBlocked:dn,promptGetPasswordAsync:ft,loginAsync:Lt,teamSelectModalAsync:bn,sharingAsync:Yn,chargeAsync:on,upgradeChatGPTAsync:yn,destroy:()=>{Dt.unmount(),jt.remove()}}},rt=(Nt,jt)=>({confirmAsync:on=>{let{className:yn="",title:lo,desc:qn,isHTML:Wn=!1,canCancel:Nn=!0,confirmText:xn="",cancelText:Ye="",isClose:wn=void 0,theme:Hn=void 0,confirmBtnProps:zn={type:"danger"}}=on;return new Promise(ko=>Nt({type:"modal:update:state",payload:{popupAlertModal:{isOpen:!0,className:yn,title:lo,desc:qn,isHTML:Wn,type:"alert",alertType:"confirm",canClose:wn!==!1,canCancel:Nn,canConfirm:!0,cancelText:Ye,confirmText:xn,theme:Hn,confirmBtnProps:zn,onCancel:()=>ko(!1),onConfirm:()=>ko(!0)}}}))},alertAsync:on=>{let{title:yn,desc:lo,isHTML:qn=!1,confirmText:Wn=void 0}=on;return new Promise(Nn=>Nt({type:"modal:update:state",payload:{popupAlertModal:{isOpen:!0,title:yn,desc:lo,isHTML:qn,type:"alert",alertType:"alert",canClose:!0,canCancel:!1,canConfirm:!0,confirmText:Wn,onConfirm:()=>Nn()}}}))},alertAsyncWide:on=>{let{title:yn,desc:lo,isHTML:qn,confirmText:Wn}=on;return new Promise(Nn=>Nt({type:"modal:update:state",payload:{popupAlertModal:{isOpen:!0,title:yn,desc:lo,isHTML:qn,type:"functional",alertType:"alert",canClose:!0,canCancel:!1,canConfirm:!0,confirmText:Wn,onConfirm:()=>Nn()}}}))},alertAsyncBlocked:on=>{let{title:yn,desc:lo,isHTML:qn,confirmText:Wn}=on;return new Promise(Nn=>Nt({type:"modal:update:state",payload:{popupAlertModal:{isOpen:!0,title:yn,desc:lo,isHTML:qn,type:"alert",alertType:"alert",canClose:!1,canCancel:!1,canConfirm:!0,confirmText:Wn,onConfirm:()=>Nn()}}}))},promptGetPasswordAsync:(on,yn)=>new Promise(lo=>Nt({type:"modal:update:state",payload:{previewAuthModal:{isOpen:on,isWrongPwd:yn,onConfirm:qn=>qn&&lo(qn)}}})),loginAsync:on=>{let{onCancel:yn=An,onConfirm:lo=An,type:qn="signin",source:Wn}=on;return Nt({type:"modal:update:state",payload:{loginModal:{source:Wn,isOpen:!0,type:qn,onCancel:yn,onConfirm:lo}}})},teamSelectModalAsync:on=>{let{projectCid:yn="",onCancel:lo=An,onConfirm:qn=An}=on;return Nt({type:"modal:update:state",payload:{teamSelectModal:{isOpen:!0,projectCid:yn,onCancel:lo,onConfirm:qn}}})},sharingAsync:on=>{let{project:yn,theme:lo,isGuestMode:qn,screenMetaList:Wn=[],onUpdateProject:Nn=An,extraInfo:xn=Jn,screenMetaCidToVisit:Ye,user:wn}=on;return Nt({type:"modal:update:state",payload:{sharingModal:{isOpen:!0,project:yn,theme:lo,extraInfo:xn,isGuestMode:qn,screenMetaList:Wn,onUpdateProject:Nn,screenMetaCidToVisit:Ye,user:wn}}})},chargeAsync:on=>{const yn={...on};if(yn.mode==="mat"&&MB.currentOrg){const lo=Kt.tz.InitialOrg(MB.currentOrg).planSdk,qn=lo.status===fe._E.Paid,Wn=lo.prototypePlan.status===fe._E.Paid,Nn=un()(lo.org.pt_next_billing_on).isBefore(un()().add(6,"month")),xn=[Kt.Sj.OrgFull,Kt.Sj.OrgLite].includes(lo.getPaymentOrgWidthLifeTimePlan())&&Un(lo.org.pt_mt_next_billing_on)<=0,Ye=lo.org.pt_total_seats===0&&lo.org.ptlt_total_seats===0,wn=lo.org.ptlt_total_seats>0,Hn=(un()(lo.org.pt_next_billing_on).isBefore(un()())||lo.org.pt_total_seats===0)&&wn,zn=lo.mktPlan.getIsMtVip();(!qn&&!xn||!Hn&&(Ye||!Wn||Nn||zn))&&(yn.mode="org",Ye?yn.openOrgAddMatToNotProtoModal=!0:yn.isAddMatToCartConfirmModalOpened=!Hn,yn.immediateUse=MB.currentOrg.plan,yn.orgCid=MB.currentOrg.cid)}Nt({type:"modal:update:state",payload:{chargeOverlay:{isOpen:!0,...yn}}})},upgradeChatGPTAsync:on=>Nt({type:"modal:update:state",payload:{upgradeChatGPTModal:{isOpen:!0,...on}}})}),An=()=>{}},73629:(Qn,qe,s)=>{"use strict";s.d(qe,{Ot:()=>N,SW:()=>T,_l:()=>J,qz:()=>te});var r=s(1072),I=s(11619);const J=(q,ne,B)=>{const{x:l,y:U}=q,C=ne/100;return{left:l*C+18+((B==null?void 0:B.left)||0),top:U*C-10+((B==null?void 0:B.top)||0)}},N=q=>{let{tearAttr:ne,scale:B,activeCanvasKey:l,scrollTop:U,scrollLeft:C,activePageKey:M,STBasketMap:w,basketScrollTopMap:y,basketScrollLeftMap:j,tearOffset:Q}=q;const ze=B/100;let me={left:0,top:0};return ne.isInBasket?me=(0,I.OL)(ne,ze,U,C,w,y,j):(0,r.r)(ne.refWCKey)?me=(0,I.hr)(ne,l,ze,M):me=(0,I.TE)(ne,l,ze,U,C),{left:me.left+((Q==null?void 0:Q.left)||0),top:me.top+((Q==null?void 0:Q.top)||0)}},T=q=>q>120,te=q=>q>300?300:q},73756:Qn=>{const qe=te=>({IMPORTANT:{className:"meta",begin:"!important"},HEXCOLOR:{className:"number",begin:"#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})"},ATTRIBUTE_SELECTOR_MODE:{className:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[te.APOS_STRING_MODE,te.QUOTE_STRING_MODE]}}),s=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],r=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"],I=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"],J=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],N=["align-content","align-items","align-self","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","auto","backface-visibility","background","background-attachment","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","clear","clip","clip-path","color","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","content","counter-increment","counter-reset","cursor","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-variant","font-variant-ligatures","font-variation-settings","font-weight","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inherit","initial","justify-content","left","letter-spacing","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marks","mask","max-height","max-width","min-height","min-width","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","perspective","perspective-origin","pointer-events","position","quotes","resize","right","src","tab-size","table-layout","text-align","text-align-last","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-indent","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","white-space","widows","width","word-break","word-spacing","word-wrap","z-index"].reverse();function T(te){const q=qe(te),ne=J,B=I,l="@[a-z-]+",U="and or not only",M={className:"variable",begin:"(\\$"+"[a-zA-Z-][a-zA-Z0-9_-]*"+")\\b"};return{name:"SCSS",case_insensitive:!0,illegal:"[=/|']",contains:[te.C_LINE_COMMENT_MODE,te.C_BLOCK_COMMENT_MODE,{className:"selector-id",begin:"#[A-Za-z0-9_-]+",relevance:0},{className:"selector-class",begin:"\\.[A-Za-z0-9_-]+",relevance:0},q.ATTRIBUTE_SELECTOR_MODE,{className:"selector-tag",begin:"\\b("+s.join("|")+")\\b",relevance:0},{className:"selector-pseudo",begin:":("+B.join("|")+")"},{className:"selector-pseudo",begin:"::("+ne.join("|")+")"},M,{begin:/\(/,end:/\)/,contains:[te.CSS_NUMBER_MODE]},{className:"attribute",begin:"\\b("+N.join("|")+")\\b"},{begin:"\\b(whitespace|wait|w-resize|visible|vertical-text|vertical-ideographic|uppercase|upper-roman|upper-alpha|underline|transparent|top|thin|thick|text|text-top|text-bottom|tb-rl|table-header-group|table-footer-group|sw-resize|super|strict|static|square|solid|small-caps|separate|se-resize|scroll|s-resize|rtl|row-resize|ridge|right|repeat|repeat-y|repeat-x|relative|progress|pointer|overline|outside|outset|oblique|nowrap|not-allowed|normal|none|nw-resize|no-repeat|no-drop|newspaper|ne-resize|n-resize|move|middle|medium|ltr|lr-tb|lowercase|lower-roman|lower-alpha|loose|list-item|line|line-through|line-edge|lighter|left|keep-all|justify|italic|inter-word|inter-ideograph|inside|inset|inline|inline-block|inherit|inactive|ideograph-space|ideograph-parenthesis|ideograph-numeric|ideograph-alpha|horizontal|hidden|help|hand|groove|fixed|ellipsis|e-resize|double|dotted|distribute|distribute-space|distribute-letter|distribute-all-lines|disc|disabled|default|decimal|dashed|crosshair|collapse|col-resize|circle|char|center|capitalize|break-word|break-all|bottom|both|bolder|bold|block|bidi-override|below|baseline|auto|always|all-scroll|absolute|table|table-cell)\\b"},{begin:":",end:";",contains:[M,q.HEXCOLOR,te.CSS_NUMBER_MODE,te.QUOTE_STRING_MODE,te.APOS_STRING_MODE,q.IMPORTANT]},{begin:"@(page|font-face)",lexemes:l,keywords:"@page @font-face"},{begin:"@",end:"[{;]",returnBegin:!0,keywords:{$pattern:/[a-z-]+/,keyword:U,attribute:r.join(" ")},contains:[{begin:l,className:"keyword"},{begin:/[a-z-]+(?=:)/,className:"attribute"},M,te.QUOTE_STRING_MODE,te.APOS_STRING_MODE,q.HEXCOLOR,te.CSS_NUMBER_MODE]}]}}Qn.exports=T},74901:(Qn,qe,s)=>{"use strict";s.d(qe,{A:()=>N});var r=s(38502),I=s(28086);const N=T=>{let te;return typeof T=="object"&&(T!=null&&T.clearIcon)?te=T:T&&(te={clearIcon:r.createElement(I.A,null)}),te}},75276:(Qn,qe,s)=>{"use strict";s.d(qe,{S1:()=>I,U6:()=>J,gK:()=>T,j9:()=>te});var r=s(12211);const I=q=>q.watermark.mdWMMktList,J=q=>q.watermark.mtWMMktList,N=q=>q.watermark.noWMMktList,T=q=>q.watermark.isShowUpMktTip,te=(0,r.Mz)([I,J,N],(q,ne,B)=>({mdWMMktList:q,mtWMMktList:ne,noWMMktList:B}))},75504:(Qn,qe,s)=>{"use strict";s.d(qe,{A:()=>B});var r=s(38502),I=s(53732),J=s.n(I),N=s(17307),T=s(67787),te=s(58320);const q=(0,T.Ay)(te.H).withConfig({displayName:"styles__StyledPreOpenHyperlinkModal",componentId:"sc-1sxrjtt-0"})(["&.pre-open-hyperlink-modal{.content{padding:0;.title{display:flex;padding:9px 20px;font-size:12px;background-color:",";.tips-icon{color:#FF7100;margin-right:8px;}p{color:",";}}.hyperlink-content{padding:20px;.hyperlink-container{display:flex;padding:8px;border-radius:6px;align-items:center;color:",";border:1px solid ",";background-color:",";.svg-container{width:28px;height:28px;color:#fff;margin-right:8px;border-radius:6px;line-height:32px;text-align:center;background-color:",";}span{width:405px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;align-self:center;color:",";font-weight:500;}}}}&.is-mobile{width:295px;height:auto;padding:32px 20px 0 20px;header{display:none;}.content{padding:0;.wechat-internal-url-new-tab-tip{margin:8px 26px 20px 26px;text-align:center;font-size:18px;}.hyperlink-container{height:72px;padding:16px 12px;.svg-container{display:none;}}}.wechat-tip{margin-top:20px;margin-bottom:-10px;font-size:12px;color:#1f292e;}footer{margin-top:10px;margin-bottom:22px;padding:0;button{width:124px;}}}}"],l=>l.theme.color_background_white_modal_tips,l=>l.theme.color_title_text_state,l=>l.theme.color_text_L1,l=>l.theme.color_bg_border_02,l=>l.theme.color_bg_card,l=>l.theme.color_bg_border_02,l=>l.theme.color_text_L2);var ne=s(72214);class B extends r.PureComponent{render(){const{isOpen:U,isMobile:C,displayWeChatNewTabExternalUrlTip:M,displayWeChatNewTabInternalUrlTip:w,confirmText:y,onConfirm:j,onClose:Q,hyperlink:ze}=this.props;return(0,ne.jsx)(q,{isOpen:U,onClose:()=>Q("preOpenHyperlinkModal"),onConfirm:j,confirmText:y,onCancel:()=>Q("preOpenHyperlinkModal"),cancelText:I18N.Common.cancel,title:I18N.SettingPanel.about_to_jump_to_an_external_website,className:J()("pre-open-hyperlink-modal",{"is-mobile":C}),modalStyle:{width:C?"100%":480,borderRadius:C?0:10},children:w?(0,ne.jsx)("div",{className:"wechat-internal-url-new-tab-tip",children:I18N.SettingPanel.open_link_in_a_new_tab_on_wechat_tip}):(0,ne.jsxs)(ne.Fragment,{children:[(0,ne.jsxs)("div",{className:"title",children:[(0,ne.jsx)(N.C,{className:"tips-icon",name:"common/screen_trash"}),(0,ne.jsx)("p",{children:I18N.SettingPanel.if_you_wish_to_continue})]}),(0,ne.jsx)("div",{className:"hyperlink-content",children:(0,ne.jsxs)("div",{className:"hyperlink-container",children:[(0,ne.jsx)("div",{className:"svg-container",children:(0,ne.jsx)(N.C,{name:"link/link_icon"})}),(0,ne.jsx)("span",{children:ze})]})}),M&&(0,ne.jsxs)("p",{className:"wechat-tip",children:["*",I18N.SettingPanel.open_link_in_a_new_tab_on_wechat_tip]})]})})}}},75908:(Qn,qe,s)=>{"use strict";s.d(qe,{A:()=>Me,_:()=>me});var r=s(38502),I=s(53732),J=s.n(I),N=s(93413);const T=[N.c.GUIDE_NOVICE_V9_2408_STEP_1,N.c.GUIDE_NOVICE_V9_2408_STEP_2,N.c.GUIDE_NOVICE_V9_2408_STEP_3],te=function(De){return De===void 0&&(De=!1),{[N.c.GUIDE_NOVICE_V9_2408_STEP_1]:{selector:"."+N.c.GUIDE_NOVICE_V9_2408_STEP_1,arrowPosition:De?{right:-8}:{left:-8},relativePos:De?"left":"right",title:"\u529F\u80FD\u4F4D\u7F6E\u8C03\u6574-\u6D41\u7A0B\u56FE",content:"\u6D41\u7A0B\u56FE\u79FB\u81F3\u7EC4\u4EF6-\u53D1\u73B0-\u6D41\u7A0B\u4E2D\u3002"},[N.c.GUIDE_NOVICE_V9_2408_STEP_2]:{selector:"."+N.c.GUIDE_NOVICE_V9_2408_STEP_2,arrowPosition:De?{right:-8}:{left:-8},relativePos:De?"left":"right",title:"\u529F\u80FD\u4F4D\u7F6E\u8C03\u6574-\u601D\u7EF4\u5BFC\u56FE",content:"\u601D\u7EF4\u5BFC\u56FE\u79FB\u81F3\u7EC4\u4EF6-\u53D1\u73B0-\u57FA\u7840\u7EC4\u4EF6\u4E2D\u3002"},[N.c.GUIDE_NOVICE_V9_2408_STEP_3]:{selector:"."+N.c.GUIDE_NOVICE_V9_2408_STEP_3,arrowPosition:{top:-5},relativePos:"bottom",title:"\u529F\u80FD\u4F4D\u7F6E\u8C03\u6574-\u58A8\u5200AI",content:"Al \u529F\u80FD\u805A\u5408\u81F3\u9876\u90E8\u5DE5\u5177\u680F\u3002"}}},q=function(De,tt){return De===void 0&&(De=!1),tt===void 0&&(tt=!1),{[N.c.GUIDE_NOVICE_V9_2408_STEP_1]:{offset:{x:tt?De?300:168:De?310:-12,y:tt?-432:0}},[N.c.GUIDE_NOVICE_V9_2408_STEP_2]:{offset:{x:De?310:-12,y:0}},[N.c.GUIDE_NOVICE_V9_2408_STEP_3]:{offset:{x:0,y:-2}}}};var ne=s(77257),B=s(67588),l=s(78257),U=s(37860),C=s(74923),M=s(18356),w=s(15515),y=s(72214);const j=10,Q=(De,tt,at)=>{const ht=document.querySelector(De);if(!ht)return null;const{top:Je,left:$,bottom:mt,right:yt,width:Le,height:He}=ht.getBoundingClientRect(),{x:ye=0,y:je=0}=at||{};switch(tt){case"top":return{bottom:je+window.innerHeight-Je+4,left:ye+$+Le/2};case"bottom":return{top:je+mt+4,left:ye+$+Le/2};case"left":return{top:je+Je+He/2,left:$-ye-6};case"right":return{top:je+Je+He/2,left:yt-ye+4}}},ze=(De,tt,at)=>{if(!De||!tt)return!1;const ht=De.top-tt.top,Je=De.bottom-tt.top;return ht>=at&&Je<=tt.height&&De.left>=tt.left&&De.right<=tt.right},me=(De,tt,at)=>{if(!De||!tt)return;const ht=De.getBoundingClientRect(),Je=tt.getBoundingClientRect(),$=60;if(ze(ht,Je,$)){at&&at();return}let mt=De.offsetTop-Je.top-$;const yt=tt.scrollHeight-tt.clientHeight;mt>yt&&(mt=yt);let Le=!1;const He=()=>{const ye=tt.scrollTop;Math.abs(ye-mt)<j&&!Le&&(tt.removeEventListener("scroll",He),at&&at(),Le=!0)};tt.addEventListener("scroll",He),tt.scrollTo({top:mt,behavior:"smooth"})},Se=De=>{var tt,at,ht,Je;let{guideType:$,onClose:mt,store:yt}=De;const{dispatch:Le,getState:He}=yt,ye=He(),ot=(0,B.bP)(ye)==="old_right",we=te(ot),$e=we[$],{relativePos:ge,selector:Ze,title:W,content:an,arrowPosition:_t}=$e,nn=Object.keys(we),Oe=nn.indexOf($),sn=(0,B.MZ)(ye),It=(0,C.S2)(ye),Pt=(0,M.yj)(),{sceName:dt}=Pt;let Vn=!1;if($===N.c.GUIDE_NOVICE_V9_2408_STEP_1){const bt=document.querySelector(Ze),un=document.querySelector(".widget-panel-container");if(!bt||!un)return null;bt.getAttribute("data-cid")==="\u6D41\u7A0B"&&(Vn=!0)}const Gn=q(ot,Vn)[$],{offset:xt}=Gn,Ot=Q(Ze,ge,xt),wt=()=>{var bt,un;mt(),(bt=MB.commonGuideHelper)==null||bt.markGuideAsRead(N.c.GUIDE_NOVICE_V9_2408);const gt=(un=MB.commonGuideHelper)==null?void 0:un.getState().commonGuidesHasShown;Le({type:"update:taskList:data",payload:{completeList:gt}})},Kt=()=>{var bt;if(mt(),Oe>=nn.length)return;const un=nn[Oe+1];if(Oe===0){Le({type:"left-panel:collapse:panel:show"}),Le({type:"entry:active:popup:panel",payload:{name:l.lS.Builtin}}),Le({type:"widget-panel:update:selectedPLabel:by:name",payload:U.P8});const gt=It.filter(Wt=>Wt!=="\u57FA\u7840");Le({type:"widget-panel:update:sceCollapsedCategories",payload:{sceCollapsedCategories:gt}}),(0,w.a0)(dt+"-collapsed-categories",gt,w.qW.Array),setTimeout(()=>{const Wt=document.querySelector('[data-guide-id="mind"]'),Un=document.querySelector(".widget-panel-container");me(Wt,Un,()=>{var Jn;return(Jn=MB.commonGuideHelper)==null?void 0:Jn.tryToShowGuide(un)})},200);return}(bt=MB.commonGuideHelper)==null||bt.tryToShowGuide(un)},fe=()=>{const bt=[ne.EH,ne.yP,ne.cZ];if(Oe>=bt.length)return;const un=bt[Oe];return(0,y.jsx)(un,{})};return(tt=MB.commonGuideHelper)!=null&&tt.checkGuideHasShown(N.c.GUIDE_NOVICE_V9_2408)||(at=MB.commonGuideHelper)!=null&&at.checkGuideHasShown(N.c.GUIDE_NOVICE_V9_2408+("_STEP_"+(Oe+1)))||!Ot?null:((ht=MB.commonGuideHelper)==null||ht.markGuideAsRead(N.c.GUIDE_NOVICE_V9_2408+("_STEP_"+(Oe+1))),Oe===2&&((Je=MB.commonGuideHelper)==null||Je.markGuideAsRead(N.c.GUIDE_NOVICE_V9_2408)),(0,y.jsxs)(y.Fragment,{children:[(0,y.jsxs)(ne.eA,{id:"MD_"+$,className:J()("on-"+ge),style:Ot,children:[(0,y.jsx)("div",{className:"arrow",style:_t,children:(0,y.jsx)("svg",{width:"12",height:"16",fill:"none",viewBox:"0 0 12 16",children:(0,y.jsx)("path",{fill:"#07F",d:"M1.04 9.74a2 2 0 0 1 0-3.48L12 0v16z"})})}),(0,y.jsxs)("div",{className:"content",children:[(0,y.jsx)("svg",{className:"close-icon",onClick:wt,width:"24",height:"24",fill:"none",viewBox:"0 0 24 24",children:(0,y.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M8.11 7.4a.5.5 0 1 0-.7.71L11.28 12 7.4 15.89a.5.5 0 1 0 .71.7L12 12.72l3.89 3.89a.5.5 0 1 0 .7-.71L12.72 12l3.89-3.89a.5.5 0 1 0-.71-.7L12 11.28z",clipRule:"evenodd",opacity:".9"})}),(0,y.jsx)("span",{className:"title",children:W}),(0,y.jsx)("span",{className:"main-content",children:an}),(0,y.jsxs)("div",{className:"footer",children:[(0,y.jsx)("span",{className:"count",children:Oe+1+"/3"}),(0,y.jsx)("span",{className:"btn-next",onClick:Kt,children:Oe===2?"\u77E5\u9053\u4E86":"\u4E0B\u4E00\u4E2A"})]})]})]}),fe()]}))},Me=(0,r.memo)(Se)},76682:function(Qn){/*!
* clipboard.js v2.0.11
* https://clipboardjs.com/
*
* Licensed MIT © Zeno Rocha
*/(function(s,r){Qn.exports=r()})(this,function(){return function(){var qe={686:function(I,J,N){"use strict";N.d(J,{default:function(){return ot}});var T=N(279),te=N.n(T),q=N(370),ne=N.n(q),B=N(817),l=N.n(B);function U(we){try{return document.execCommand(we)}catch($e){return!1}}var C=function($e){var ge=l()($e);return U("cut"),ge},M=C;function w(we){var $e=document.documentElement.getAttribute("dir")==="rtl",ge=document.createElement("textarea");ge.style.fontSize="12pt",ge.style.border="0",ge.style.padding="0",ge.style.margin="0",ge.style.position="absolute",ge.style[$e?"right":"left"]="-9999px";var Ze=window.pageYOffset||document.documentElement.scrollTop;return ge.style.top="".concat(Ze,"px"),ge.setAttribute("readonly",""),ge.value=we,ge}var y=function($e,ge){var Ze=w($e);ge.container.appendChild(Ze);var W=l()(Ze);return U("copy"),Ze.remove(),W},j=function($e){var ge=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body},Ze="";return typeof $e=="string"?Ze=y($e,ge):$e instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes($e==null?void 0:$e.type)?Ze=y($e.value,ge):(Ze=l()($e),U("copy")),Ze},Q=j;function ze(we){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ze=function(ge){return typeof ge}:ze=function(ge){return ge&&typeof Symbol=="function"&&ge.constructor===Symbol&&ge!==Symbol.prototype?"symbol":typeof ge},ze(we)}var me=function(){var $e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},ge=$e.action,Ze=ge===void 0?"copy":ge,W=$e.container,an=$e.target,_t=$e.text;if(Ze!=="copy"&&Ze!=="cut")throw new Error('Invalid "action" value, use either "copy" or "cut"');if(an!==void 0)if(an&&ze(an)==="object"&&an.nodeType===1){if(Ze==="copy"&&an.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if(Ze==="cut"&&(an.hasAttribute("readonly")||an.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes')}else throw new Error('Invalid "target" value, use a valid Element');if(_t)return Q(_t,{container:W});if(an)return Ze==="cut"?M(an):Q(an,{container:W})},Se=me;function Me(we){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Me=function(ge){return typeof ge}:Me=function(ge){return ge&&typeof Symbol=="function"&&ge.constructor===Symbol&&ge!==Symbol.prototype?"symbol":typeof ge},Me(we)}function De(we,$e){if(!(we instanceof $e))throw new TypeError("Cannot call a class as a function")}function tt(we,$e){for(var ge=0;ge<$e.length;ge++){var Ze=$e[ge];Ze.enumerable=Ze.enumerable||!1,Ze.configurable=!0,"value"in Ze&&(Ze.writable=!0),Object.defineProperty(we,Ze.key,Ze)}}function at(we,$e,ge){return $e&&tt(we.prototype,$e),ge&&tt(we,ge),we}function ht(we,$e){if(typeof $e!="function"&&$e!==null)throw new TypeError("Super expression must either be null or a function");we.prototype=Object.create($e&&$e.prototype,{constructor:{value:we,writable:!0,configurable:!0}}),$e&&Je(we,$e)}function Je(we,$e){return Je=Object.setPrototypeOf||function(Ze,W){return Ze.__proto__=W,Ze},Je(we,$e)}function $(we){var $e=Le();return function(){var Ze=He(we),W;if($e){var an=He(this).constructor;W=Reflect.construct(Ze,arguments,an)}else W=Ze.apply(this,arguments);return mt(this,W)}}function mt(we,$e){return $e&&(Me($e)==="object"||typeof $e=="function")?$e:yt(we)}function yt(we){if(we===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return we}function Le(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(we){return!1}}function He(we){return He=Object.setPrototypeOf?Object.getPrototypeOf:function(ge){return ge.__proto__||Object.getPrototypeOf(ge)},He(we)}function ye(we,$e){var ge="data-clipboard-".concat(we);if($e.hasAttribute(ge))return $e.getAttribute(ge)}var je=function(we){ht(ge,we);var $e=$(ge);function ge(Ze,W){var an;return De(this,ge),an=$e.call(this),an.resolveOptions(W),an.listenClick(Ze),an}return at(ge,[{key:"resolveOptions",value:function(){var W=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.action=typeof W.action=="function"?W.action:this.defaultAction,this.target=typeof W.target=="function"?W.target:this.defaultTarget,this.text=typeof W.text=="function"?W.text:this.defaultText,this.container=Me(W.container)==="object"?W.container:document.body}},{key:"listenClick",value:function(W){var an=this;this.listener=ne()(W,"click",function(_t){return an.onClick(_t)})}},{key:"onClick",value:function(W){var an=W.delegateTarget||W.currentTarget,_t=this.action(an)||"copy",nn=Se({action:_t,container:this.container,target:this.target(an),text:this.text(an)});this.emit(nn?"success":"error",{action:_t,text:nn,trigger:an,clearSelection:function(){an&&an.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(W){return ye("action",W)}},{key:"defaultTarget",value:function(W){var an=ye("target",W);if(an)return document.querySelector(an)}},{key:"defaultText",value:function(W){return ye("text",W)}},{key:"destroy",value:function(){this.listener.destroy()}}],[{key:"copy",value:function(W){var an=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body};return Q(W,an)}},{key:"cut",value:function(W){return M(W)}},{key:"isSupported",value:function(){var W=arguments.length>0&&arguments[0]!==void 0?arguments[0]:["copy","cut"],an=typeof W=="string"?[W]:W,_t=!!document.queryCommandSupported;return an.forEach(function(nn){_t=_t&&!!document.queryCommandSupported(nn)}),_t}}]),ge}(te()),ot=je},828:function(I){var J=9;if(typeof Element<"u"&&!Element.prototype.matches){var N=Element.prototype;N.matches=N.matchesSelector||N.mozMatchesSelector||N.msMatchesSelector||N.oMatchesSelector||N.webkitMatchesSelector}function T(te,q){for(;te&&te.nodeType!==J;){if(typeof te.matches=="function"&&te.matches(q))return te;te=te.parentNode}}I.exports=T},438:function(I,J,N){var T=N(828);function te(B,l,U,C,M){var w=ne.apply(this,arguments);return B.addEventListener(U,w,M),{destroy:function(){B.removeEventListener(U,w,M)}}}function q(B,l,U,C,M){return typeof B.addEventListener=="function"?te.apply(null,arguments):typeof U=="function"?te.bind(null,document).apply(null,arguments):(typeof B=="string"&&(B=document.querySelectorAll(B)),Array.prototype.map.call(B,function(w){return te(w,l,U,C,M)}))}function ne(B,l,U,C){return function(M){M.delegateTarget=T(M.target,l),M.delegateTarget&&C.call(B,M)}}I.exports=q},879:function(I,J){J.node=function(N){return N!==void 0&&N instanceof HTMLElement&&N.nodeType===1},J.nodeList=function(N){var T=Object.prototype.toString.call(N);return N!==void 0&&(T==="[object NodeList]"||T==="[object HTMLCollection]")&&"length"in N&&(N.length===0||J.node(N[0]))},J.string=function(N){return typeof N=="string"||N instanceof String},J.fn=function(N){var T=Object.prototype.toString.call(N);return T==="[object Function]"}},370:function(I,J,N){var T=N(879),te=N(438);function q(U,C,M){if(!U&&!C&&!M)throw new Error("Missing required arguments");if(!T.string(C))throw new TypeError("Second argument must be a String");if(!T.fn(M))throw new TypeError("Third argument must be a Function");if(T.node(U))return ne(U,C,M);if(T.nodeList(U))return B(U,C,M);if(T.string(U))return l(U,C,M);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function ne(U,C,M){return U.addEventListener(C,M),{destroy:function(){U.removeEventListener(C,M)}}}function B(U,C,M){return Array.prototype.forEach.call(U,function(w){w.addEventListener(C,M)}),{destroy:function(){Array.prototype.forEach.call(U,function(w){w.removeEventListener(C,M)})}}}function l(U,C,M){return te(document.body,U,C,M)}I.exports=q},817:function(I){function J(N){var T;if(N.nodeName==="SELECT")N.focus(),T=N.value;else if(N.nodeName==="INPUT"||N.nodeName==="TEXTAREA"){var te=N.hasAttribute("readonly");te||N.setAttribute("readonly",""),N.select(),N.setSelectionRange(0,N.value.length),te||N.removeAttribute("readonly"),T=N.value}else{N.hasAttribute("contenteditable")&&N.focus();var q=window.getSelection(),ne=document.createRange();ne.selectNodeContents(N),q.removeAllRanges(),q.addRange(ne),T=q.toString()}return T}I.exports=J},279:function(I){function J(){}J.prototype={on:function(N,T,te){var q=this.e||(this.e={});return(q[N]||(q[N]=[])).push({fn:T,ctx:te}),this},once:function(N,T,te){var q=this;function ne(){q.off(N,ne),T.apply(te,arguments)}return ne._=T,this.on(N,ne,te)},emit:function(N){var T=[].slice.call(arguments,1),te=((this.e||(this.e={}))[N]||[]).slice(),q=0,ne=te.length;for(q;q<ne;q++)te[q].fn.apply(te[q].ctx,T);return this},off:function(N,T){var te=this.e||(this.e={}),q=te[N],ne=[];if(q&&T)for(var B=0,l=q.length;B<l;B++)q[B].fn!==T&&q[B].fn._!==T&&ne.push(q[B]);return ne.length?te[N]=ne:delete te[N],this}},I.exports=J,I.exports.TinyEmitter=J}},s={};function r(I){if(s[I])return s[I].exports;var J=s[I]={exports:{}};return qe[I](J,J.exports,r),J.exports}return function(){r.n=function(I){var J=I&&I.__esModule?function(){return I.default}:function(){return I};return r.d(J,{a:J}),J}}(),function(){r.d=function(I,J){for(var N in J)r.o(J,N)&&!r.o(I,N)&&Object.defineProperty(I,N,{enumerable:!0,get:J[N]})}}(),function(){r.o=function(I,J){return Object.prototype.hasOwnProperty.call(I,J)}}(),r(686)}().default})},76914:(Qn,qe,s)=>{"use strict";Object.defineProperty(qe,"__esModule",{value:!0});var r=function(){function at(ht,Je){for(var $=0;$<Je.length;$++){var mt=Je[$];mt.enumerable=mt.enumerable||!1,mt.configurable=!0,"value"in mt&&(mt.writable=!0),Object.defineProperty(ht,mt.key,mt)}}return function(ht,Je,$){return Je&&at(ht.prototype,Je),$&&at(ht,$),ht}}(),I=s(38502),J=j(I),N=s(25582),T=j(N),te=s(83466),q=s(27122),ne=j(q),B=s(36221),l=j(B),U=s(65251),C=j(U),M=s(52171),w=j(M),y=s(27921);function j(at){return at&&at.__esModule?at:{default:at}}function Q(at,ht){if(!(at instanceof ht))throw new TypeError("Cannot call a class as a function")}function ze(at,ht){if(!at)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ht&&(typeof ht=="object"||typeof ht=="function")?ht:at}function me(at,ht){if(typeof ht!="function"&&ht!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof ht);at.prototype=Object.create(ht&&ht.prototype,{constructor:{value:at,enumerable:!1,writable:!0,configurable:!0}}),ht&&(Object.setPrototypeOf?Object.setPrototypeOf(at,ht):at.__proto__=ht)}function Se(at){var ht=at.cell,Je=at.row,$=at.col,mt=at.valueRenderer,yt=at.dataRenderer;return(0,y.renderData)(ht,Je,$,mt,yt)}function Me(at){var ht=at.cell,Je=at.row,$=at.col,mt=at.valueRenderer;return(0,y.renderValue)(ht,Je,$,mt)}function De(at){var ht=typeof at.width=="number"?at.width+"px":at.width;return ht?{width:ht}:null}var tt=function(at){me(ht,at);function ht(Je){Q(this,ht);var $=ze(this,(ht.__proto__||Object.getPrototypeOf(ht)).call(this,Je));return $.handleChange=$.handleChange.bind($),$.handleCommit=$.handleCommit.bind($),$.handleRevert=$.handleRevert.bind($),$.handleKey=$.handleKey.bind($),$.handleMouseDown=$.handleMouseDown.bind($),$.handleMouseOver=$.handleMouseOver.bind($),$.handleContextMenu=$.handleContextMenu.bind($),$.handleDoubleClick=$.handleDoubleClick.bind($),$.state={updated:!1,reverting:!1,committing:!1,value:""},$}return r(ht,[{key:"componentDidUpdate",value:function($){var mt=this;if(!this.props.cell.disableUpdatedFlag&&Me($)!==Me(this.props)&&(this.setState({updated:!0}),this.timeout=setTimeout(function(){return mt.setState({updated:!1})},700)),this.props.editing===!0&&$.editing===!1){var yt=this.props.clearing?"":Se(this.props);this.setState({value:yt,reverting:!1})}$.editing===!0&&this.props.editing===!1&&!this.state.reverting&&!this.state.committing&&this.state.value!==Se(this.props)&&this.props.onChange(this.props.row,this.props.col,this.state.value)}},{key:"componentWillUnmount",value:function(){clearTimeout(this.timeout)}},{key:"handleChange",value:function($){this.setState({value:$,committing:!1})}},{key:"handleCommit",value:function($,mt){var yt=this.props,Le=yt.onChange,He=yt.onNavigate;$!==Se(this.props)?(this.setState({value:$,committing:!0}),Le(this.props.row,this.props.col,$)):this.handleRevert(),mt&&(mt.preventDefault(),He(mt,!0))}},{key:"handleRevert",value:function(){this.setState({reverting:!0}),this.props.onRevert()}},{key:"handleMouseDown",value:function($){var mt=this.props,yt=mt.row,Le=mt.col,He=mt.onMouseDown,ye=mt.cell;ye.disableEvents||He(yt,Le,$)}},{key:"handleMouseOver",value:function($){var mt=this.props,yt=mt.row,Le=mt.col,He=mt.onMouseOver,ye=mt.cell;ye.disableEvents||He(yt,Le)}},{key:"handleDoubleClick",value:function($){var mt=this.props,yt=mt.row,Le=mt.col,He=mt.onDoubleClick,ye=mt.cell;ye.disableEvents||He(yt,Le)}},{key:"handleContextMenu",value:function($){var mt=this.props,yt=mt.row,Le=mt.col,He=mt.onContextMenu,ye=mt.cell;ye.disableEvents||He($,yt,Le)}},{key:"handleKey",value:function($){var mt=$.which||$.keyCode;if(mt===te.ESCAPE_KEY)return this.handleRevert();var yt=this.props,Le=yt.cell.component,He=yt.forceEdit,ye=He||!!Le,je=mt===te.ENTER_KEY||mt===te.TAB_KEY||!ye&&[te.LEFT_KEY,te.RIGHT_KEY,te.UP_KEY,te.DOWN_KEY].includes(mt);je&&this.handleCommit(this.state.value,$)}},{key:"renderComponent",value:function($,mt){var yt=mt.component,Le=mt.readOnly,He=mt.forceComponent;if($&&!Le||He)return yt}},{key:"renderEditor",value:function($,mt,yt,Le,He){if($){var ye=mt.dataEditor||He||C.default;return J.default.createElement(ye,{cell:mt,row:yt,col:Le,value:this.state.value,onChange:this.handleChange,onCommit:this.handleCommit,onRevert:this.handleRevert,onKeyDown:this.handleKey})}}},{key:"renderViewer",value:function($,mt,yt,Le,He){var ye=$.valueViewer||He||w.default,je=(0,y.renderValue)($,mt,yt,Le);return J.default.createElement(ye,{cell:$,row:mt,col:yt,value:je})}},{key:"render",value:function(){var $=this.props,mt=$.row,yt=$.col,Le=$.cell,He=$.cellRenderer,ye=$.valueRenderer,je=$.dataEditor,ot=$.valueViewer,we=$.attributesRenderer,$e=$.selected,ge=$.editing,Ze=$.onKeyUp,W=this.state.updated,an=this.renderComponent(ge,Le)||this.renderEditor(ge,Le,mt,yt,je)||this.renderViewer(Le,mt,yt,ye,ot),_t=[Le.className,"cell",Le.overflow,$e&&"selected",ge&&"editing",Le.readOnly&&"read-only",W&&"updated"].filter(function(nn){return nn}).join(" ");return J.default.createElement(He,{row:mt,col:yt,cell:Le,selected:$e,editing:ge,updated:W,attributesRenderer:we,className:_t,style:De(Le),onMouseDown:this.handleMouseDown,onMouseOver:this.handleMouseOver,onDoubleClick:this.handleDoubleClick,onContextMenu:this.handleContextMenu,onKeyUp:Ze},an)}}]),ht}(I.PureComponent);qe.default=tt,tt.propTypes={row:T.default.number.isRequired,col:T.default.number.isRequired,cell:T.default.shape(l.default).isRequired,forceEdit:T.default.bool,selected:T.default.bool,editing:T.default.bool,editValue:T.default.any,clearing:T.default.bool,cellRenderer:T.default.func,valueRenderer:T.default.func.isRequired,dataRenderer:T.default.func,valueViewer:T.default.func,dataEditor:T.default.func,attributesRenderer:T.default.func,onNavigate:T.default.func.isRequired,onMouseDown:T.default.func.isRequired,onMouseOver:T.default.func.isRequired,onDoubleClick:T.default.func.isRequired,onContextMenu:T.default.func.isRequired,onChange:T.default.func.isRequired,onRevert:T.default.func.isRequired,onEdit:T.default.func},tt.defaultProps={forceEdit:!1,selected:!1,editing:!1,clearing:!1,cellRenderer:ne.default}},77212:(Qn,qe,s)=>{"use strict";s.d(qe,{A:()=>M});var r=s(38502),I=Object.defineProperty,J=Object.defineProperties,N=Object.getOwnPropertyDescriptors,T=Object.getOwnPropertySymbols,te=Object.prototype.hasOwnProperty,q=Object.prototype.propertyIsEnumerable,ne=(w,y,j)=>y in w?I(w,y,{enumerable:!0,configurable:!0,writable:!0,value:j}):w[y]=j,B=(w,y)=>{for(var j in y||(y={}))te.call(y,j)&&ne(w,j,y[j]);if(T)for(var j of T(y))q.call(y,j)&&ne(w,j,y[j]);return w},l=(w,y)=>J(w,N(y)),U=(w,y)=>{var j={};for(var Q in w)te.call(w,Q)&&y.indexOf(Q)<0&&(j[Q]=w[Q]);if(w!=null&&T)for(var Q of T(w))y.indexOf(Q)<0&&q.call(w,Q)&&(j[Q]=w[Q]);return j},M=(0,r.forwardRef)((w,y)=>{var j=w,{size:Q,spin:ze,style:me}=j,Se=U(j,["size","spin","style"]);const Me=B(B({width:Q||"var(--x-icon-size, 1em)",height:Q||"var(--x-icon-size, 1em)",animation:ze?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),me);return r.createElement("svg",l(B({ref:y,style:Me},Se),{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),r.createElement("path",{d:"M16.5255 4.40633C16.2098 4.09826 15.845 3.9447 15.4321 3.9447H12.1886C12.0183 3.49444 11.7392 3.12665 11.3503 2.84322C10.9605 2.55884 10.5111 2.41666 10.001 2.41666C9.48989 2.41666 9.04042 2.5579 8.65159 2.84227C8.26275 3.12665 7.98268 3.49349 7.81328 3.94375H4.56785C4.15496 3.94375 3.79018 4.09826 3.47449 4.40539C3.15784 4.71441 3 5.06893 3 5.47179V16.0553C3 16.4572 3.15881 16.8127 3.47449 17.1207C3.79018 17.4298 4.15496 17.5833 4.56785 17.5833H15.4321C15.845 17.5833 16.2098 17.4288 16.5255 17.1217C16.8422 16.8136 17 16.4591 17 16.0562V5.47179C17 5.06988 16.8412 4.71441 16.5255 4.40633ZM9.45236 4.15703C9.59865 4.01579 9.78056 3.94375 10 3.94375C10.2194 3.94375 10.4013 4.01484 10.5476 4.15703C10.6939 4.29922 10.7661 4.47648 10.7661 4.68976C10.7661 4.90304 10.693 5.08694 10.5476 5.2405C10.4013 5.39501 10.2185 5.47179 10 5.47179C9.78152 5.47179 9.59865 5.39501 9.45236 5.24145C9.30606 5.08789 9.23388 4.90399 9.23388 4.69071C9.23388 4.47743 9.30606 4.30017 9.45236 4.15703ZM11.5679 14.5642H6.09913V13.0362H11.5669L11.5679 14.5642ZM13.9009 11.5091H6.09913V10.018H13.9009V11.5091ZM13.9009 8.48996H6.09913V6.96286H13.9009V8.48996Z",fill:"#B7B9BD"}))})},77257:(Qn,qe,s)=>{"use strict";s.d(qe,{EH:()=>N,cZ:()=>te,eA:()=>J,yP:()=>T});var r=s(67787),I=s(46712);const J=r.Ay.div.withConfig({displayName:"styles__StyledV9UserGuide",componentId:"sc-xzm77o-0"})(["width:300px;height:120px;position:absolute;font-size:12px;line-height:20px;speak:none;transition-property:opacity,transform;transition-duration:0.15s;user-select:text;z-index:1049;& > .arrow{position:absolute;z-index:10;display:block;font-size:14px;line-height:0;svg{width:16px;height:14px;fill:",";}}&.on-top{left:50%;bottom:100%;transform:translate(-50%,-10%);& > .arrow{left:50%;bottom:1px;transform:translate(-50%,30%);svg{transform:rotate(180deg);}}}&.on-bottom{left:50%;top:100%;transform:translate(-50%,10%);& > .arrow{top:1px;left:50%;transform:translate(-50%,-30%) rotate(90deg);}}&.on-left{right:100%;top:50%;transform:translate(0%,-50%);& > .arrow{top:50%;right:0;transform:translate(30%,-50%);svg{transform:rotate(180deg);}}}&.on-right{left:100%;top:50%;transform:translate(0,-50%);& > .arrow{top:50%;left:0;transform:translate(-30%,-50%);svg{}}}> .content{width:100%;height:100%;position:relative;z-index:20;min-width:2em;min-height:2em;padding:18px 20px 20px;background-color:",";border-radius:10px;color:#fff;display:flex;flex-direction:column;span{width:100%;}.title{margin-bottom:8px;font-size:14px;font-weight:500;}.main-content{margin-bottom:8px;}.footer{display:flex;justify-content:space-between;.count{max-width:max-content;line-height:28px;}.btn-next{width:64px;height:28px;padding:6px 12px;border:1px solid transparent;border-radius:6px;background-color:#fff;color:",";line-height:12px;font-weight:500;cursor:pointer;}}}.close-icon{position:absolute;top:16px;right:19px;cursor:pointer;}"],q=>q.theme.color_proto,q=>q.theme.color_proto,q=>q.theme.color_proto),N=(0,r.DU)(["#workspace{#popups-builtin-panel{.widget-insertable-cagegory-nav{.GUIDE_NOVICE_V9_2408_STEP_1{",";}}}}"],I.K6),T=(0,r.DU)(["#workspace{#popups-builtin-panel{.widget-panel-container{.widget-insertable-list .GUIDE_NOVICE_V9_2408_STEP_2{",";}}}}"],I.K6),te=(0,r.DU)(["#workspace{#mb-toolbar{.toolbar-center{div.GUIDE_NOVICE_V9_2408_STEP_3{a{",";}}}}}"],I.K6)},77533:(Qn,qe,s)=>{"use strict";s.d(qe,{A:()=>ne});var r=s(38502),I=s(53732),J=s.n(I),N=s(67787);const T=N.Ay.ul.withConfig({displayName:"styles__StyledScreenList",componentId:"sc-1pj18ld-0"})(["&,ol,li{list-style:none;}"]);var te=s(72214);const ne=(0,r.memo)(l=>{let{activeScreenMetaCid:U="",editingScreenMetaCid:C="",screenSelection:M=[],renderScreenMetaItem:w,screenTreeData:y,dummySelect:j=new Set,collapseScreenMetaCidSet:Q=new Set,dispatch:ze}=l;return(0,te.jsx)(T,{children:y.children.map(me=>(0,te.jsx)(B,{treeNode:me,depth:0,screenSelection:M,activeScreenMetaCid:U,editingScreenMetaCid:C,renderScreenMetaItem:w,dummySelect:j,collapseScreenMetaCidSet:Q,dispatch:ze},me.cid))})});class B extends r.PureComponent{render(){const{treeNode:U,depth:C,activeScreenMetaCid:M,editingScreenMetaCid:w,screenSelection:y,renderScreenMetaItem:j,dummySelect:Q,collapseScreenMetaCidSet:ze,dispatch:me}=this.props,{cid:Se,data:Me,children:De}=U,tt=!ze.has(Se),at=!!De.length,ht=M===Se,Je=y.includes(Se),$=Q.has(Se);return(0,te.jsxs)("li",{"data-cid":Se,className:J()("rn-content-item",{active:ht,select:Je,"dummy-select":$}),id:"mobile-page-item",children:[j({depth:C,screenMeta:Me,hasScreenMetaChildren:at,screenSelection:y,activeScreenMetaCid:M,editingScreenMetaCid:w,dummySelect:Q,collapseScreenMetaCidSet:ze,dispatch:me}),De.length>0&&tt&&(0,te.jsx)("ul",{type:"screen-list",className:"child-screens",children:De.map((mt,yt)=>(0,te.jsx)(B,{treeNode:mt,depth:C+1,screenSelection:y,activeScreenMetaCid:M,editingScreenMetaCid:w,renderScreenMetaItem:j,dummySelect:Q,collapseScreenMetaCidSet:ze,dispatch:me},mt.cid))})]})}}},77595:(Qn,qe,s)=>{"use strict";s.d(qe,{A:()=>C});var r=s(38502),I=s(53732),J=s.n(I),N=s(67787),T=s(49439),te=s(17307),q=s(77866),ne=s(93257),B=s(72214);const l=M=>{const{selected:w,dispatch:y,isShowCompletedComment:j,viewType:Q}=M,[ze,me]=(0,r.useState)(!1),Se=[{label:"all",value:""},{label:"only_your_treads",value:"me"},{label:"mentioned_you",value:"@me"}],Me=(0,r.useCallback)(ht=>{ht!==w&&y({type:"comment:update:commentFilterSelected",payload:{commentFilterSelected:ht}})},[w]),De=(0,r.useCallback)((ht,Je)=>()=>{ht==="selected"&&(Me&&Me(Je),(0,q.i4)({operation_type:q.nU[Je]||q.nU.all,comment_type:"",relation:"",operation_from:q.HI[Q]}))},[Me,Q]),tt=()=>{y({type:"comment:toggle:isShowCompletedComment"}),(0,q.i4)({operation_type:q.nU.ShowFinishedComment,comment_type:"",relation:"",operation_from:q.HI[Q]})},at=w!=="";return(0,B.jsx)(U,{children:(0,B.jsx)(T.A,{dark:!0,top:30,right:0,className:"comment-filter-dropdown",onShow:()=>me(!0),onClose:()=>me(!1),trigger:(0,B.jsx)(ne.A,{content:I18N.Comment.filter,direction:"down",children:(0,B.jsx)("div",{className:J()("filter-trigger-container",ze?"active":""),children:at?(0,B.jsx)(te.C,{className:"filter-active-icon",name:"comment/filter-active"}):(0,B.jsx)(te.C,{name:"comment/filter"})})}),children:(0,B.jsx)("div",{className:"filter-content-container",children:(0,B.jsxs)("div",{className:"list-container",children:[Se.map(ht=>(0,B.jsxs)("div",{className:"item-container",onClick:De("selected",ht.value),children:[(0,B.jsx)("div",{className:"icon-left",children:ht.value===w&&(0,B.jsx)(te.C,{size:20,isColorPure:!0,name:"comment/right_panel/filter_checked"})}),(0,B.jsx)("div",{className:"value-right",children:I18N.Comment[ht.label]})]},ht.value)),(0,B.jsx)("div",{className:"separate-line"}),(0,B.jsxs)("div",{className:"item-container",onClick:tt,children:[(0,B.jsx)("div",{className:"icon-left",children:j&&(0,B.jsx)(te.C,{size:20,isColorPure:!0,name:"comment/right_panel/filter_checked"})}),(0,B.jsx)("div",{className:"value-right",children:I18N.Comment.show_resolved_comments})]})]})})})})},U=N.Ay.div.withConfig({displayName:"FilterDropdown__StyledFilterDropdown",componentId:"sc-1m6lf97-0"})([".comment-filter-dropdown{margin:0;.svg-icon{circle{fill:none;stroke:currentColor;}}}.filter-trigger-container{width:max-content;display:flex;flex-direction:row;justify-content:flex-end;align-items:center;.svg-icon{circle{fill:none;}}.filter-active-icon{circle{fill:#1684FC !important;}path{fill:#FFF !important;stroke:#FFF !important;}}}.filter-content-container{min-width:144px;width:max-content;display:flex;justify-content:center;position:relative;padding:8px;.list-container{width:100%;position:relative;box-sizing:border-box;.item-container{width:100%;height:28px;padding-left:8px;padding-right:8px;color:",";cursor:pointer;margin:2px 0;display:flex;align-items:center;&:hover{background:",";}.icon-left{font-size:12px;line-height:24px;display:inline-flex;align-items:center;width:20px;text-align:right;margin-right:2px;}.value-right{font-size:12px;line-height:24px;display:inline-block;width:max-content;text-align:left;}}}.separate-line{width:100%;height:1px;background-color:",";margin:6px 0;}}.filter-content-container{border-radius:8px;border:1px solid ",";background:",";box-shadow:0px 4px 10px 0px ",";.list-container{.item-container{border-radius:4px;.icon-left svg path{fill:",";}}}}"],M=>M.theme.color_text_L1,M=>M.theme.color_btn_secondary_hover,M=>M.theme.color_bg_border_01,M=>M.theme.color_bg_border_01,M=>M.theme.color_bg_white,M=>M.theme.shadow_m,M=>M.theme.color_text_L1),C=(0,r.memo)(l)},77866:(Qn,qe,s)=>{"use strict";s.d(qe,{HI:()=>T,ej:()=>N,i4:()=>te,nU:()=>J});var r=s(81717),I=s(5209);let J=function(q){return q.Create="\u65B0\u5EFA",q.Response="\u56DE\u590D",q.edit="\u7F16\u8F91",q.FinishInEditArea="\u5B8C\u6210",q.CancelFinishInEditArea="\u53D6\u6D88\u5B8C\u6210",q.deleteInEditArea="\u5220\u9664",q.SelectComment="\u9009\u4E2D\u8BC4\u8BBA-\u5217\u8868",q.FinishInPanel="\u5B8C\u6210-\u5217\u8868",q.CancelFinishInPanel="\u53D6\u6D88\u5B8C\u6210-\u5217\u8868",q.deleteInPanel="\u5220\u9664-\u5217\u8868",q.ShowFinishedComment="\u663E\u793A\u5DF2\u5B8C\u6210\u7684\u8BC4\u8BBA",q.me="\u6211\u521B\u5EFA\u7684",q["@me"]="\u63D0\u5230\u6211\u7684",q.all="\u5168\u90E8",q}({}),N=function(q){return q.point="\u6253\u70B9",q.frame="\u6846\u9009",q}({}),T=function(q){return q.edit="\u7F16\u8F91\u6A21\u5F0F",q.only_view="\u53EA\u8BFB\u6A21\u5F0F",q.device="\u771F\u673A\u6A21\u5F0F",q}({});const te=q=>{let{operation_type:ne,comment_type:B,relation:l,operation_from:U}=q;ne===void 0||B===void 0||l===void 0||U===void 0||((0,I.kH)("comment_operation_V8",{operation_type:ne,comment_type:B,relation:l,operation_from:U}),r.Y4.editProjectNew("\u8BC4\u8BBA\u64CD\u4F5C"))}},77938:(Qn,qe,s)=>{"use strict";s.d(qe,{Hh:()=>J,W8:()=>T,a7:()=>te,hu:()=>N,qX:()=>I,wb:()=>r});const r=q=>q.ui.fixedLayout.autoFillPanel.show,I=q=>q.ui.fixedLayout.autoFillPanel.position,J=q=>q.ui.fixedLayout.autoFillPanel.openFrom,N=q=>q.ui.fixedLayout.autoFillPanel.defaultTab,T=q=>q.ui.fixedLayout.autoFillPanel.isShowClose,te=q=>q.ui.fixedLayout.autoFillPanel.canShowAllTab},78778:(Qn,qe,s)=>{"use strict";s.d(qe,{K:()=>I});var r=s(67787);const I=(0,r.DU)(['[role~="tooltip"]{position:relative;}[role~="tooltip"]::before,[role~="tooltip"]::after{transform:translate3d(0,0,0);-webkit-backface-visibility:hidden;backface-visibility:hidden;will-change:transform;opacity:0;pointer-events:none;position:absolute;box-sizing:border-box;z-index:10;transform-origin:top;}[role~="tooltip"]:not(.ant-tooltip-inner)::after{background:',";border-radius:2px;color:",';content:attr(aria-label);font-size:var(--microtip-font-size,13px);font-weight:var(--microtip-font-weight,normal);text-transform:var(--microtip-text-transform,none);padding:3px 7px;white-space:nowrap;box-sizing:content-box;}[role~="tooltip"]:hover::before,[role~="tooltip"]:hover::after,[role~="tooltip"]:focus::before,[role~="tooltip"]:focus::after{opacity:1;pointer-events:auto;}[role~="tooltip"][data-microtip-position|="top"]::before{background:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2236px%22%20height%3D%2212px%22%3E%3Cpath%20fill%3D%22rgba%2817,%2017,%2017,%200.9%29%22%20transform%3D%22rotate%280%29%22%20d%3D%22M2.658,0.000%20C-13.615,0.000%2050.938,0.000%2034.662,0.000%20C28.662,0.000%2023.035,12.002%2018.660,12.002%20C14.285,12.002%208.594,0.000%202.658,0.000%20Z%22/%3E%3C/svg%3E") no-repeat;height:6px;width:18px;margin-bottom:5px;}[role~="tooltip"][data-microtip-position|="top"]::after{margin-bottom:11px;}[role~="tooltip"][data-microtip-position|="top"]::before{transform:translate3d(-50%,0,0);bottom:100%;left:50%;}[role~="tooltip"][data-microtip-position|="top"]:hover::before{transform:translate3d(-50%,-5px,0);}[role~="tooltip"][data-microtip-position|="top"]::after{transform:translate3d(-50%,0,0);bottom:100%;left:50%;}[role~="tooltip"][data-microtip-position="top"]:hover::after{transform:translate3d(-50%,-5px,0);}[role~="tooltip"][data-microtip-position="top-left"]::after{transform:translate3d(calc(-100% + 16px),0,0);bottom:100%;}[role~="tooltip"][data-microtip-position="top-left"]:hover::after{transform:translate3d(calc(-100% + 16px),-5px,0);}[role~="tooltip"][data-microtip-position="top-right"]::after{transform:translate3d(calc(0% + -16px),0,0);bottom:100%;}[role~="tooltip"][data-microtip-position="top-right"]:hover::after{transform:translate3d(calc(0% + -16px),-5px,0);}[role~="tooltip"][data-microtip-position|="bottom"]::before{background:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2236px%22%20height%3D%2212px%22%3E%3Cpath%20fill%3D%22rgba%2817,%2017,%2017,%200.9%29%22%20transform%3D%22rotate%28180%2018%206%29%22%20d%3D%22M2.658,0.000%20C-13.615,0.000%2050.938,0.000%2034.662,0.000%20C28.662,0.000%2023.035,12.002%2018.660,12.002%20C14.285,12.002%208.594,0.000%202.658,0.000%20Z%22/%3E%3C/svg%3E") no-repeat;height:6px;width:18px;margin-top:5px;margin-bottom:0;}[role~="tooltip"][data-microtip-position|="bottom"]::after{margin-top:11px;}[role~="tooltip"][data-microtip-position|="bottom"]::before{transform:translate3d(-50%,-10px,0);bottom:auto;left:50%;top:100%;}[role~="tooltip"][data-microtip-position|="bottom"]:hover::before{transform:translate3d(-50%,0,0);}[role~="tooltip"][data-microtip-position|="bottom"]::after{transform:translate3d(-50%,-10px,0);top:100%;left:50%;}[role~="tooltip"][data-microtip-position="bottom"]:hover::after{transform:translate3d(-50%,0,0);}[role~="tooltip"][data-microtip-position="bottom-left"]::after{transform:translate3d(calc(-100% + 16px),-10px,0);top:100%;}[role~="tooltip"][data-microtip-position="bottom-left"]:hover::after{transform:translate3d(calc(-100% + 16px),0,0);}[role~="tooltip"][data-microtip-position="bottom-right"]::after{transform:translate3d(calc(0% + -16px),-10px,0);top:100%;}[role~="tooltip"][data-microtip-position="bottom-right"]:hover::after{transform:translate3d(calc(0% + -16px),0,0);}[role~="tooltip"][data-microtip-position="left"]::before,[role~="tooltip"][data-microtip-position="left"]::after{bottom:auto;left:auto;right:100%;top:50%;transform:translate3d(10px,-50%,0);}[role~="tooltip"][data-microtip-position="left"]::before{background:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2212px%22%20height%3D%2236px%22%3E%3Cpath%20fill%3D%22rgba%2817,%2017,%2017,%200.9%29%22%20transform%3D%22rotate%28-90%2018%2018%29%22%20d%3D%22M2.658,0.000%20C-13.615,0.000%2050.938,0.000%2034.662,0.000%20C28.662,0.000%2023.035,12.002%2018.660,12.002%20C14.285,12.002%208.594,0.000%202.658,0.000%20Z%22/%3E%3C/svg%3E") no-repeat;height:18px;width:6px;margin-right:5px;margin-bottom:0;}[role~="tooltip"][data-microtip-position="left"]::after{margin-right:11px;}[role~="tooltip"][data-microtip-position="left"]:hover::before,[role~="tooltip"][data-microtip-position="left"]:hover::after{transform:translate3d(0,-50%,0);}[role~="tooltip"][data-microtip-position="right"]::before,[role~="tooltip"][data-microtip-position="right"]::after{bottom:auto;left:100%;top:50%;transform:translate3d(-10px,-50%,0);}[role~="tooltip"][data-microtip-position="right"]::before{background:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2212px%22%20height%3D%2236px%22%3E%3Cpath%20fill%3D%22rgba%2817,%2017,%2017,%200.9%29%22%20transform%3D%22rotate%2890%206%206%29%22%20d%3D%22M2.658,0.000%20C-13.615,0.000%2050.938,0.000%2034.662,0.000%20C28.662,0.000%2023.035,12.002%2018.660,12.002%20C14.285,12.002%208.594,0.000%202.658,0.000%20Z%22/%3E%3C/svg%3E") no-repeat;height:18px;width:6px;margin-bottom:0;margin-left:5px;}[role~="tooltip"][data-microtip-position="right"]::after{margin-left:11px;}[role~="tooltip"][data-microtip-position="right"]:hover::before,[role~="tooltip"][data-microtip-position="right"]:hover::after{transform:translate3d(0,-50%,0);}[role~="tooltip"][data-microtip-size="small"]::after{white-space:initial;width:80px;}[role~="tooltip"][data-microtip-size="medium"]::after{white-space:initial;width:150px;}[role~="tooltip"][data-microtip-size="large"]::after{white-space:initial;width:260px;}'],J=>J.theme.color_tips_black,J=>J.theme.color_text_btn)},78795:(Qn,qe,s)=>{"use strict";s.d(qe,{A:()=>ts});var r=s(18381),I=s(12211),J=s(16454),N=s(95549),T=s(38502),te=s(94319),q=s.n(te),ne=s(53732),B=s.n(ne),l=Object.defineProperty,U=Object.defineProperties,C=Object.getOwnPropertyDescriptors,M=Object.getOwnPropertySymbols,w=Object.prototype.hasOwnProperty,y=Object.prototype.propertyIsEnumerable,j=(rn,Ft,Sn)=>Ft in rn?l(rn,Ft,{enumerable:!0,configurable:!0,writable:!0,value:Sn}):rn[Ft]=Sn,Q=(rn,Ft)=>{for(var Sn in Ft||(Ft={}))w.call(Ft,Sn)&&j(rn,Sn,Ft[Sn]);if(M)for(var Sn of M(Ft))y.call(Ft,Sn)&&j(rn,Sn,Ft[Sn]);return rn},ze=(rn,Ft)=>U(rn,C(Ft)),me=(rn,Ft)=>{var Sn={};for(var no in rn)w.call(rn,no)&&Ft.indexOf(no)<0&&(Sn[no]=rn[no]);if(rn!=null&&M)for(var no of M(rn))Ft.indexOf(no)<0&&y.call(rn,no)&&(Sn[no]=rn[no]);return Sn},Me=(0,T.forwardRef)((rn,Ft)=>{var Sn=rn,{size:no,spin:wa,style:za}=Sn,hr=me(Sn,["size","spin","style"]);const ar=Q(Q({width:no||"var(--x-icon-size, 1em)",height:no||"var(--x-icon-size, 1em)",animation:wa?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),za);return T.createElement("svg",ze(Q({ref:Ft,style:ar},hr),{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),T.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.29289 12.7071C7.90237 12.3166 7.90237 11.6834 8.29289 11.2929L14.2929 5.29289C14.6834 4.90237 15.3166 4.90237 15.7071 5.29289C16.0976 5.68342 16.0976 6.31658 15.7071 6.70711L10.4142 12L15.7071 17.2929C16.0976 17.6834 16.0976 18.3166 15.7071 18.7071C15.3166 19.0976 14.6834 19.0976 14.2929 18.7071L8.29289 12.7071Z",fill:"#414142"}))}),De=Object.defineProperty,tt=Object.defineProperties,at=Object.getOwnPropertyDescriptors,ht=Object.getOwnPropertySymbols,Je=Object.prototype.hasOwnProperty,$=Object.prototype.propertyIsEnumerable,mt=(rn,Ft,Sn)=>Ft in rn?De(rn,Ft,{enumerable:!0,configurable:!0,writable:!0,value:Sn}):rn[Ft]=Sn,yt=(rn,Ft)=>{for(var Sn in Ft||(Ft={}))Je.call(Ft,Sn)&&mt(rn,Sn,Ft[Sn]);if(ht)for(var Sn of ht(Ft))$.call(Ft,Sn)&&mt(rn,Sn,Ft[Sn]);return rn},Le=(rn,Ft)=>tt(rn,at(Ft)),He=(rn,Ft)=>{var Sn={};for(var no in rn)Je.call(rn,no)&&Ft.indexOf(no)<0&&(Sn[no]=rn[no]);if(rn!=null&&ht)for(var no of ht(rn))Ft.indexOf(no)<0&&$.call(rn,no)&&(Sn[no]=rn[no]);return Sn},je=(0,T.forwardRef)((rn,Ft)=>{var Sn=rn,{size:no,spin:wa,style:za}=Sn,hr=He(Sn,["size","spin","style"]);const ar=yt(yt({width:no||"var(--x-icon-size, 1em)",height:no||"var(--x-icon-size, 1em)",animation:wa?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),za);return T.createElement("svg",Le(yt({ref:Ft,style:ar},hr),{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),T.createElement("path",{d:"M7.22299 7.22241C7.53336 6.91203 8.0524 6.92779 8.38217 7.25757L12.0003 10.8757L15.6175 7.25854C15.9473 6.92877 16.4663 6.91301 16.7767 7.22339C17.0869 7.53378 17.0713 8.05284 16.7415 8.38257L13.1244 11.9998L16.7415 15.6169C17.0713 15.9467 17.0871 16.4657 16.7767 16.7761C16.4663 17.0865 15.9473 17.0707 15.6175 16.741L12.0003 13.1238L8.38217 16.7419C8.0524 17.0716 7.53331 17.0874 7.22299 16.7771C6.91268 16.4668 6.92855 15.9477 7.25815 15.6179L10.8763 11.9998L7.25815 8.38159C6.92844 8.05187 6.9128 7.53281 7.22299 7.22241Z",fill:"#414142"}))}),ot=s(17307),we=s(62490),$e=s(78401),ge=s(69246),Ze=s(85584),W=s(20089),an=s(67787),_t=s(51090);const nn=an.Ay.div.withConfig({displayName:"styles__StyledScreenItem",componentId:"sc-1i9nu12-0"})(["display:flex;align-items:center;height:45px;padding-right:20px;position:relative;&.active{background:#f2f2f2;}.choosed{height:14px;min-width:14px;margin-right:16px;color:#999999;}.expander{height:22px;width:22px;margin-left:-16px;display:flex;justify-content:center;align-items:center;.arrow-icon{height:22px;width:22px;color:#8d9ea7;&.is-expand{transform:rotate(90deg);}}}.screen-name{display:flex;align-items:center;width:100%;height:100%;justify-content:space-between;flex-direction:row;align-items:center;.screen-left{display:flex;flex-direction:row;align-items:center;width:calc(100% - 70px);}.screen-item-icon{width:20px;height:20px;display:flex;justify-content:center;align-items:center;flex-shrink:0;margin-right:6px;}.editable-span{font-size:14px;color:#000000;width:calc(100% - 30px);",";}.screen-right{display:flex;flex-direction:row;align-items:center;width:62px;.page-number{width:40px;text-align:right;}.gray-number{color:#cccccc;}svg{width:22px;height:22px;margin-left:6px;}}}.item-line{height:1px;background:#f2f2f2;position:absolute;left:20px;right:20px;top:0;}"],_t.L9);var Oe=s(72214);class sn extends T.PureComponent{constructor(){super(...arguments),(0,N.A)(this,"setElementRef",Ft=>this.$elem=Ft),(0,N.A)(this,"handleExpand",Ft=>{Ft.stopPropagation();const{screenMeta:Sn,actionProps:{onExpand:no}}=this.props;no(Sn)}),(0,N.A)(this,"handleClick",Ft=>{Ft.stopPropagation();const{screenMeta:Sn,actionProps:{onSelect:no}}=this.props,wa=(0,Ze.Mo)(Sn),{cid:za}=Sn,hr=sdkStore.findAllTypeUnderNoSubPage(za,W.x.Canvas).filter(ar=>!ar.hotAttr.asOverlay);!hr||hr.length===0||wa||no(Sn)})}componentDidMount(){if(!(0,$e.zN)(this.$elem)){if(!this.$elem.classList.contains("active"))return;const Sn=document.querySelector(".rn-content-body");if(!Sn)return;const no=Sn.getBoundingClientRect(),{bottom:wa}=this.$elem.getBoundingClientRect();Sn.scrollTop+=wa-no.bottom+20}}stopPropagation(Ft){Ft.stopPropagation()}render(){const{screenMeta:Ft,depth:Sn,isExpand:no,isActive:wa,showExpander:za,theme:hr}=this.props,ar=10*(Sn+1)+25,mi=(0,Ze.Mo)(Ft),{cid:Vi,name:bs,icon:Os}=Ft,ml=sdkStore.findAllTypeUnderNoSubPage(Vi,W.x.Canvas).filter(Bs=>!Bs.hotAttr.asOverlay),Ki=ml&&ml.length>0;return(0,Oe.jsxs)(nn,{ref:this.setElementRef,"data-cid":Vi,onClick:this.handleClick,style:{paddingLeft:ar},className:B()("rn-list-item",{active:wa,folder:mi}),children:[za&&(0,Oe.jsx)("a",{className:"expander",onClick:this.handleExpand,onDoubleClick:this.stopPropagation,children:(0,Oe.jsx)(ot.C,{className:B()("arrow-icon",{"is-expand":!no}),name:"common/mobile/expand"})}),(0,Oe.jsxs)("div",{className:"screen-name",children:[(0,Oe.jsxs)("div",{className:"screen-left",children:[(0,Oe.jsx)("div",{className:"screen-item-icon",children:(0,Oe.jsx)(ge.k,{icon:Os,theme:hr,isExpand:mi?!no:no})}),(0,Oe.jsx)(we.O,{className:"editable-span",children:(0,$e.wh)(bs)})]}),mi?(0,Oe.jsx)(Oe.Fragment,{}):(0,Oe.jsxs)("div",{className:"screen-right",children:[(0,Oe.jsx)("div",{className:"page-number "+(Ki?"":"gray-number"),children:(ml==null?void 0:ml.length)||0}),(0,Oe.jsx)(ot.C,{isColorPure:!0,name:Ki?"preview/scree/right-arror":"preview/scree/right-arror-gray"})]})]}),Sn===0&&(0,Oe.jsx)("div",{className:"item-line"})]})}}var It=s(77533),Pt=s(22835);const dt=an.Ay.div.withConfig({displayName:"styles__StyledPageList",componentId:"sc-8jjx0w-0"})(["height:100%;width:100%;.page-item{height:45px;display:flex;flex-direction:row;justify-content:flex-start;align-items:center;position:relative;width:100%;padding:0 20px;box-sizing:border-box;svg{width:20px;height:20px;margin-left:16px;}.page-name{font-size:14px;color:#000;margin-left:6px;display:flex;flex:1;span{flex:1;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;-o-text-overflow:ellipsis;max-width:260px;}.invisible{width:20px;height:20px;margin-right:16px;}}.bottom-line{display:flex;position:absolute;left:20px;right:20px;bottom:0px;height:1px;background:#f2f2f2;}}"]);class Vn extends T.PureComponent{constructor(){super(...arguments),(0,N.A)(this,"pageItemHandle",Ft=>{const{runnerState:{activeCanvasKey:Sn},dispatch:no,currentCanvasCid:wa}=this.props;Sn!==Ft&&no({type:"entry:runner:activate:canvas",payload:{pageKey:wa,canvasKey:Ft}})}),(0,N.A)(this,"pageItem",(Ft,Sn)=>{const{runnerState:{activeCanvasKey:no}}=this.props,{key:wa,hotAttr:{name:za,isVisible:hr}}=Sn,ar=no===wa;return(0,Oe.jsxs)("div",{"data-cid":wa,id:"mobile-page-item",className:"page-item",onClick:()=>this.pageItemHandle(wa),onDoubleClick:mi=>{mi.stopPropagation()},style:{background:ar?"#f2f2f2":""},children:[(0,Oe.jsx)(ot.C,{name:"preview/share/part_page"}),(0,Oe.jsxs)("div",{className:"page-name",children:[(0,Oe.jsx)("span",{children:za}),!hr&&(0,Oe.jsx)(ot.C,{className:"invisible",name:"common/invisible"})]}),(0,Oe.jsx)("div",{className:"bottom-line"})]},Ft)})}componentDidMount(){const{runnerState:{activeCanvasKey:Ft}}=this.props;(0,Pt.H1)(Ft)}render(){const{currentCanvasCid:Ft}=this.props,Sn=sdkStore.findAllTypeUnderNoSubPage(Ft,W.x.Canvas).filter(no=>!no.hotAttr.asOverlay).sort((no,wa)=>no.hotAttr.order-wa.hotAttr.order);return(0,Oe.jsx)(dt,{children:Sn&&Sn.map((no,wa)=>this.pageItem(wa,no))})}}var o=s(56202),Gn=s(20640),xt=s(34860);const Ot="sharing",wt="screen",Kt=rn=>{try{const Ft=no=>{let wa=0;const za=[];for(const hr in no){const{hotAttr:{asFolder:ar}}=no[hr];ar||(za.push(no[hr]),wa=wa+sdkStore.findAllTypeUnderNoSubPage(hr,W.x.Canvas).length)}return{canvas:za.length,pages:wa}};if((0,xt.St)()){const{screen_visible_list:no,screen_visible_switch:wa}=rn;if(wa){const{screenDataMap:za}=(0,Gn.wb)(no);return Ft(za)}}const{screenDataMap:Sn}=(0,Gn.tb)();return Ft(Sn)}catch(Ft){return{canvas:0,pages:0}}},fe=rn=>{try{const{screenDataMap:Ft}=(0,Gn.tb)();return Ft[rn]}catch(Ft){console.warn("getCanvasInfo error:",Ft)}return null},bt=68,un=370,gt=an.Ay.div.withConfig({displayName:"styles__StyledPreviewMask",componentId:"sc-addbg1-0"})(["position:absolute;top:0;left:0;right:0;bottom:0;z-index:5;background:#19191A99;"]),Wt=an.Ay.div.withConfig({displayName:"styles__StyledPreviewSetting",componentId:"sc-addbg1-1"})(["position:fixed;bottom:-","px;display:flex;flex-direction:column;z-index:6;height:","px;padding-bottom:15px;width:100%;transition:bottom 0.3s ease-in-out;background:white;border-top-right-radius:24px;border-top-left-radius:24px;overflow:hidden;&.is-open{bottom:0;}.panel-bg{position:absolute;left:0;top:0;width:100%;height:160px;z-index:-1;object-fit:cover;}.theContent{display:flex;flex-grow:1;flex-direction:column;.line{border-bottom:1px solid #F2F2F2;margin:0 20px;}.contentItem{display:flex;flex-direction:row;justify-content:flex-start;margin:0 20px;padding:20px 0;border-bottom:1px solid rgb(242,242,242);.menuBlock{display:flex;justify-content:center;align-items:center;flex-direction:column;margin-right:30px;.menuBlockIcon{border-radius:10px;background-color:white;height:60px;width:60px;margin-bottom:8px;border:1px solid #f2f2f2;display:flex;align-items:center;justify-content:center;.blockIcon{height:36px;width:36px;color:#ffffff;}}.menuBlockName{display:flex;align-items:center;font-size:12px;color:#84817a;.redDot{width:4px;height:4px;background:#eb5648;border-radius:50%;margin-right:2px;}}}}.theHeader{display:flex;align-items:center;justify-content:flex-start;height:","px;margin:0 20px;color:#415058;border-bottom:1px solid #F2F2F2;.headerIcon{height:40px;width:40px;margin-right:12px;border-radius:6px;img{height:40px;width:40px;}svg{width:40px;height:40px;}}.headerTitle{display:flex;flex-direction:column;justify-content:space-between;.headerName{font-weight:500;font-size:16px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:#415058;text-align:left;width:300px;}.headerIntro{margin-top:4px;color:#8d9ea7;font-size:12px;font-weight:400;text-align:left;}}}}.top-line{border-top:1px solid #F2F2F2;}@supports (bottom:env(safe-area-inset-bottom)){&.is-open{margin-bottom:env(safe-area-inset-bottom);}}.close-icon{position:absolute;right:12px;top:12px;}"],un+10,un,bt),Un=an.Ay.div.withConfig({displayName:"styles__StyledScreenSetting",componentId:"sc-50ucr4-0"})(["flex:1;width:100%;height:100%;.theHeader{display:flex;align-items:center;justify-content:space-between;height:","px;margin:0 20px;border-bottom:1px solid #f2f2f2;.header-left{display:flex;align-items:center;}.backBtn{display:flex;}.headerTitle{display:flex;flex-direction:column;justify-content:space-between;.headerName{font-size:16px;color:#000;font-weight:500;}}}.screen-list{width:100%;overflow-x:hidden;overflow-y:auto;height:calc(100% - ","px);}.when-ws .choosed path{fill:#4257ff;}"],bt,bt);class Jn extends T.PureComponent{constructor(Ft){super(Ft),(0,N.A)(this,"initCollapseKeySet",()=>{const{activeCid:Sn}=this.props,no=(0,Ze.e7)(Sn),wa=new Set(no.map(za=>{let{cid:hr}=za;return hr}));this.setState({collapseKeySet:wa})}),(0,N.A)(this,"handleSelectScreenMeta",Sn=>{this.setState({showPageList:!0,currentCanvasCid:Sn.cid})}),(0,N.A)(this,"handleScreenMetaExpand",Sn=>{let{cid:no}=Sn;const{collapseKeySet:wa}=this.state,za=new Set(wa);wa.has(no)?za.delete(no):za.add(no),this.setState({collapseKeySet:za})}),(0,N.A)(this,"backHeader",()=>{const{projectName:Sn,onBack:no,onExitPanel:wa}=this.props,{showPageList:za,currentCanvasCid:hr}=this.state;let ar=Sn;if(za){const mi=fe(hr);if(mi){const{hotAttr:{name:Vi}}=mi;ar=Vi}}return(0,Oe.jsxs)("div",{className:"theHeader",children:[(0,Oe.jsxs)("div",{className:"header-left",children:[(0,Oe.jsx)("div",{className:"backBtn","data-value":"",onClick:()=>{if(za){this.setState({showPageList:!1});return}no()},children:((0,o.Md)()||za)&&(0,Oe.jsx)(Me,{size:24})}),(0,Oe.jsx)("div",{className:"headerTitle",children:(0,Oe.jsx)("div",{className:"headerName",children:ar})})]}),(0,Oe.jsx)("div",{style:{display:"flex",alignItems:"center"},children:!(0,o.Md)()&&!za&&(0,Oe.jsx)(je,{size:24,onClick:wa})})]})}),(0,N.A)(this,"renderScreenMetaItem",Sn=>{let{depth:no,screenMeta:wa,hasScreenMetaChildren:za,collapseScreenMetaCidSet:hr,activeScreenMetaCid:ar,dispatch:mi}=Sn;const{theme:Vi}=this.props,{cid:bs}=wa,Os=ar===bs,ml=hr.has(bs),Ki=za||(0,Ze.Mo)(wa);return(0,Oe.jsx)(sn,{theme:Vi,depth:no,screenMeta:wa,isActive:Os,isExpand:ml,showExpander:Ki,actionProps:this.literalActionProps})}),this.state={collapseKeySet:new Set,showPageList:!1,currentCanvasCid:""},this.literalActionProps={onExpand:this.handleScreenMetaExpand,onSelect:this.handleSelectScreenMeta}}componentDidMount(){const{activeCid:Ft}=this.props;this.setState({currentCanvasCid:Ft}),this.initCollapseKeySet(),(0,Pt.H1)(Ft)}render(){const{activeCid:Ft,screenTreeData:Sn,runnerState:no,dispatch:wa,isStatePanelShow:za}=this.props,{collapseKeySet:hr,showPageList:ar,currentCanvasCid:mi}=this.state;return(0,Oe.jsx)(Oe.Fragment,{children:!za&&(0,Oe.jsxs)(Un,{children:[this.backHeader(),(0,Oe.jsx)("div",{className:B()("screen-list",{"when-ws":!!ENV.IS_MO}),id:"mobile-screen-tree",children:ar?(0,Oe.jsx)(Vn,{currentCanvasCid:mi,runnerState:no,dispatch:wa}):(0,Oe.jsx)(It.A,{collapseScreenMetaCidSet:hr,activeScreenMetaCid:Ft,screenTreeData:Sn,renderScreenMetaItem:this.renderScreenMetaItem,dispatch:wa})})]})})}}const Yt=(0,I.Mz)([J.O4,J.oJ,J.Ur,J.mf,J.t$],(rn,Ft,Sn,no,wa)=>{const za=Sn.cid;return{screenTreeData:Ft,activeCid:za,runnerState:no,isStatePanelShow:wa,theme:rn}}),rt=(0,r.Ng)(rn=>Yt(rn))(Jn);var An=s(18183);const Nt=an.Ay.div.withConfig({displayName:"styles__StyledSharingSetting",componentId:"sc-1gzo5az-0"})(["flex:1;display:flex;flex-grow:1;flex-direction:column;height:100%;padding:0 25px 25px 25px;.nav-header{width:100%;display:flex;align-items:center;justify-content:center;height:","px;color:#415058;.backBtn{position:absolute;left:20px;}}.header-title{display:flex;flex-direction:column;align-items:center;.headerName{font-weight:bold;font-size:16px;color:#19191A;}.headerIntro{margin-top:4px;font-weight:none;font-size:12px;color:#8B8C8F;}}.share-container{flex:1;width:100%;padding:0 25px;display:flex;align-items:center;flex-direction:row;justify-content:space-around;&.disabled{opacity:0.4;pointer-events:none;}.item{color:#414651;font-size:14px;line-height:20px;display:flex;flex-direction:column;align-items:center;gap:6px;}}"],bt),jt=an.Ay.div.withConfig({displayName:"styles__StyledOldVersion",componentId:"sc-1gzo5az-1"})(["display:flex;align-items:center;flex-direction:column;height:calc(100% - ","px);justify-content:center;.version-low{width:100px;}.center{color:#415058;font-size:16px;margin-top:24px;}.bottom{color:#7D8B94;font-size:12px;margin-top:8px;}"],bt);var vn=s(25306),Dt=Object.defineProperty,$t=Object.defineProperties,kn=Object.getOwnPropertyDescriptors,Kn=Object.getOwnPropertySymbols,dn=Object.prototype.hasOwnProperty,ft=Object.prototype.propertyIsEnumerable,Lt=(rn,Ft,Sn)=>Ft in rn?Dt(rn,Ft,{enumerable:!0,configurable:!0,writable:!0,value:Sn}):rn[Ft]=Sn,bn=(rn,Ft)=>{for(var Sn in Ft||(Ft={}))dn.call(Ft,Sn)&&Lt(rn,Sn,Ft[Sn]);if(Kn)for(var Sn of Kn(Ft))ft.call(Ft,Sn)&&Lt(rn,Sn,Ft[Sn]);return rn},Yn=(rn,Ft)=>$t(rn,kn(Ft)),on=(rn,Ft)=>{var Sn={};for(var no in rn)dn.call(rn,no)&&Ft.indexOf(no)<0&&(Sn[no]=rn[no]);if(rn!=null&&Kn)for(var no of Kn(rn))Ft.indexOf(no)<0&&ft.call(rn,no)&&(Sn[no]=rn[no]);return Sn},lo=(0,T.forwardRef)((rn,Ft)=>{var Sn=rn,{size:no,spin:wa,style:za}=Sn,hr=on(Sn,["size","spin","style"]);const ar=bn(bn({width:no||"var(--x-icon-size, 1em)",height:no||"var(--x-icon-size, 1em)",animation:wa?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),za);return T.createElement("svg",Yn(bn({ref:Ft,style:ar},hr),{width:"54",height:"54",viewBox:"0 0 54 54",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),T.createElement("rect",{width:"54",height:"54",rx:"27",fill:"#F7F7F9"}),T.createElement("path",{d:"M19.9424 24.6016C20.409 24.1354 21.1654 24.1351 21.6318 24.6016C22.0984 25.0682 22.0984 25.8254 21.6318 26.292L19.3018 28.6211C17.6237 30.2992 17.6237 33.0202 19.3018 34.6982C20.9798 36.3763 23.7008 36.3763 25.3789 34.6982L27.708 32.3682C28.1746 31.9016 28.9318 31.9016 29.3984 32.3682C29.8649 32.8346 29.8646 33.591 29.3984 34.0576L27.0684 36.3877C24.4571 38.9989 20.2236 38.9989 17.6123 36.3877C15.0011 33.7764 15.0011 29.5429 17.6123 26.9316L19.9424 24.6016ZM29.5215 22.79C29.9881 22.3235 30.7444 22.3235 31.2109 22.79C31.6773 23.2566 31.6774 24.013 31.2109 24.4795L24.4795 31.2109C24.0129 31.6771 23.2565 31.6772 22.79 31.2109C22.3234 30.7443 22.3234 29.9871 22.79 29.5205L29.5215 22.79ZM26.9316 17.6123C29.5429 15.0011 33.7764 15.0011 36.3877 17.6123C38.9989 20.2236 38.9989 24.4571 36.3877 27.0684L34.0576 29.3984C33.591 29.8646 32.8346 29.8649 32.3682 29.3984C31.9016 28.9318 31.9016 28.1746 32.3682 27.708L34.6982 25.3789C36.3763 23.7008 36.3763 20.9798 34.6982 19.3018C33.0202 17.6237 30.2992 17.6237 28.6211 19.3018L26.292 21.6318C25.8254 22.0984 25.0682 22.0984 24.6016 21.6318C24.1351 21.1654 24.1354 20.409 24.6016 19.9424L26.9316 17.6123Z",fill:"#2EA7E0",stroke:"#2EA7E0",strokeWidth:"0.192857"}))}),qn=Object.defineProperty,Wn=Object.defineProperties,Nn=Object.getOwnPropertyDescriptors,xn=Object.getOwnPropertySymbols,Ye=Object.prototype.hasOwnProperty,wn=Object.prototype.propertyIsEnumerable,Hn=(rn,Ft,Sn)=>Ft in rn?qn(rn,Ft,{enumerable:!0,configurable:!0,writable:!0,value:Sn}):rn[Ft]=Sn,zn=(rn,Ft)=>{for(var Sn in Ft||(Ft={}))Ye.call(Ft,Sn)&&Hn(rn,Sn,Ft[Sn]);if(xn)for(var Sn of xn(Ft))wn.call(Ft,Sn)&&Hn(rn,Sn,Ft[Sn]);return rn},ko=(rn,Ft)=>Wn(rn,Nn(Ft)),On=(rn,Ft)=>{var Sn={};for(var no in rn)Ye.call(rn,no)&&Ft.indexOf(no)<0&&(Sn[no]=rn[no]);if(rn!=null&&xn)for(var no of xn(rn))Ft.indexOf(no)<0&&wn.call(rn,no)&&(Sn[no]=rn[no]);return Sn},jn=(0,T.forwardRef)((rn,Ft)=>{var Sn=rn,{size:no,spin:wa,style:za}=Sn,hr=On(Sn,["size","spin","style"]);const ar=zn(zn({width:no||"var(--x-icon-size, 1em)",height:no||"var(--x-icon-size, 1em)",animation:wa?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),za);return T.createElement("svg",ko(zn({ref:Ft,style:ar},hr),{width:"54",height:"54",viewBox:"0 0 54 54",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),T.createElement("rect",{width:"54",height:"54",rx:"27",fill:"#F7F7F9"}),T.createElement("g",{clipPath:"url(#clip0_2376_114)"},T.createElement("path",{d:"M35.4523 29.1998C35.7572 29.1958 36.0486 29.0728 36.2642 28.8572C36.4799 28.6415 36.6028 28.3501 36.6068 28.0452C36.6068 27.4049 36.0938 26.8906 35.4523 26.8906C34.8107 26.8906 34.2977 27.4049 34.2977 28.0452C34.2977 28.688 34.812 29.1998 35.4523 29.1998ZM29.763 29.1998C30.0679 29.1958 30.3593 29.0728 30.575 28.8572C30.7906 28.6415 30.9135 28.3501 30.9175 28.0452C30.9175 27.4049 30.4033 26.8906 29.763 26.8906C29.1201 26.8906 28.6084 27.4049 28.6084 28.0452C28.6084 28.688 29.1214 29.1998 29.763 29.1998ZM38.2063 35.6798C38.1239 35.7255 38.0581 35.7962 38.0184 35.8817C37.9787 35.9671 37.967 36.063 37.9851 36.1555C37.9851 36.2172 37.9851 36.2802 38.0173 36.3445C38.1433 36.8806 38.3953 37.7343 38.3953 37.7665C38.3953 37.8603 38.4274 37.9233 38.4274 37.9876C38.4274 38.0249 38.42 38.0618 38.4057 38.0962C38.3915 38.1306 38.3705 38.1618 38.3441 38.1881C38.3177 38.2144 38.2864 38.2352 38.2519 38.2493C38.2174 38.2634 38.1805 38.2706 38.1433 38.2705C38.079 38.2705 38.0481 38.2396 37.9851 38.2088L36.1221 37.1339C35.9861 37.059 35.8349 37.0159 35.6798 37.0079C35.586 37.0079 35.4908 37.0079 35.4278 37.0388C34.5433 37.292 33.6278 37.418 32.6494 37.418C27.9437 37.418 24.1547 34.259 24.1547 30.3402C24.1547 26.4226 27.9437 23.2623 32.6494 23.2623C37.3538 23.2623 41.1428 26.4226 41.1428 30.3402C41.1428 32.4578 40.0063 34.385 38.2063 35.681V35.6798ZM33.0081 21.9843C32.8882 21.9803 32.7681 21.9782 32.6481 21.9779C27.2815 21.9779 22.869 25.655 22.869 30.3415C22.869 31.0538 22.9718 31.7429 23.1621 32.3986H23.0477C21.9243 32.3873 20.8073 32.2282 19.7254 31.9255C19.6303 31.8933 19.5351 31.8933 19.44 31.8933C19.25 31.8974 19.0645 31.9519 18.9025 32.0515L16.6551 33.3436C16.5908 33.3758 16.5278 33.4079 16.4648 33.4079C16.3731 33.4069 16.2854 33.37 16.2205 33.3051C16.1556 33.2402 16.1187 33.1525 16.1177 33.0608C16.1177 32.9656 16.1485 32.9026 16.1807 32.8075C16.2115 32.7766 16.497 31.7352 16.6551 31.1052C16.6551 31.0409 16.686 30.947 16.686 30.884C16.6856 30.7738 16.6598 30.6652 16.6105 30.5666C16.5612 30.468 16.4898 30.3822 16.4018 30.3158C14.2174 28.769 12.8571 26.4676 12.8571 23.9116C12.8571 19.2149 17.4471 15.4285 23.0785 15.4285C27.9193 15.4285 31.9885 18.2172 33.0081 21.983V21.9843ZM26.3815 22.5218C27.1183 22.5218 27.7007 21.9085 27.7007 21.2026C27.7007 20.4659 27.1183 19.8835 26.3815 19.8835C25.6448 19.8835 25.0624 20.4659 25.0624 21.2026C25.0624 21.9393 25.6448 22.5218 26.3815 22.5218ZM19.6187 22.5218C20.3554 22.5218 20.9391 21.9085 20.9391 21.2026C20.9391 20.4659 20.3554 19.8835 19.6187 19.8835C18.8833 19.8835 18.2995 20.4659 18.2995 21.2026C18.2995 21.9393 18.8833 22.5218 19.6187 22.5218Z",fill:"#00C70A"})),T.createElement("defs",null,T.createElement("clipPath",{id:"clip0_2376_114"},T.createElement("rect",{width:"30.8571",height:"30.8571",fill:"white",transform:"translate(11.5715 11.5713)"}))))}),xo=Object.defineProperty,jo=Object.defineProperties,Qo=Object.getOwnPropertyDescriptors,cn=Object.getOwnPropertySymbols,In=Object.prototype.hasOwnProperty,tn=Object.prototype.propertyIsEnumerable,Jt=(rn,Ft,Sn)=>Ft in rn?xo(rn,Ft,{enumerable:!0,configurable:!0,writable:!0,value:Sn}):rn[Ft]=Sn,Ln=(rn,Ft)=>{for(var Sn in Ft||(Ft={}))In.call(Ft,Sn)&&Jt(rn,Sn,Ft[Sn]);if(cn)for(var Sn of cn(Ft))tn.call(Ft,Sn)&&Jt(rn,Sn,Ft[Sn]);return rn},Xn=(rn,Ft)=>jo(rn,Qo(Ft)),Dn=(rn,Ft)=>{var Sn={};for(var no in rn)In.call(rn,no)&&Ft.indexOf(no)<0&&(Sn[no]=rn[no]);if(rn!=null&&cn)for(var no of cn(rn))Ft.indexOf(no)<0&&tn.call(rn,no)&&(Sn[no]=rn[no]);return Sn},Uo=(0,T.forwardRef)((rn,Ft)=>{var Sn=rn,{size:no,spin:wa,style:za}=Sn,hr=Dn(Sn,["size","spin","style"]);const ar=Ln(Ln({width:no||"var(--x-icon-size, 1em)",height:no||"var(--x-icon-size, 1em)",animation:wa?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),za);return T.createElement("svg",Xn(Ln({ref:Ft,style:ar},hr),{width:"54",height:"54",viewBox:"0 0 54 54",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),T.createElement("rect",{width:"54",height:"54",rx:"27",fill:"#F7F7F9"}),T.createElement("g",{clipPath:"url(#clip0_2376_113)"},T.createElement("path",{d:"M27.0069 14.4639C26.5336 14.4639 26.0603 14.4917 25.6009 14.5474C24.4594 14.6727 23.3875 14.9511 22.3573 15.3687C22.3573 15.3687 30.7794 23.7073 31.0161 24.0136V15.1181C30.7655 15.0346 30.501 14.9511 30.2505 14.8815C29.2064 14.617 28.1345 14.4639 27.0069 14.4639Z",fill:"#F95352"}),T.createElement("path",{d:"M35.819 18.0832C35.4849 17.7491 35.123 17.4428 34.761 17.1505C33.8701 16.4405 32.8956 15.8698 31.8933 15.4382C31.8933 15.4382 31.949 27.2849 31.8933 27.6607L38.1717 21.3685C38.0603 21.1319 37.9211 20.8952 37.7958 20.6585C37.2529 19.7398 36.5986 18.8767 35.819 18.0832Z",fill:"#6367EF"}),T.createElement("path",{d:"M38.5751 22.3711C38.5751 22.3711 30.2365 30.7932 29.9303 31.0299H38.8257C38.9092 30.7793 38.9927 30.5148 39.0623 30.2642C39.3408 29.2341 39.4939 28.1482 39.4939 27.0346C39.4939 26.5613 39.466 26.088 39.4104 25.6286C39.2712 24.4731 38.9927 23.3873 38.5751 22.3711Z",fill:"#5283EF"}),T.createElement("path",{d:"M26.2135 31.9485L32.5057 38.2407C32.7424 38.1293 32.9791 37.9901 33.2157 37.8648C34.1484 37.3359 35.0115 36.6676 35.805 35.8881C36.1391 35.554 36.4453 35.192 36.7377 34.8301C37.4477 33.9392 38.0184 32.9786 38.4499 31.9624C38.436 31.9485 26.5894 32.0181 26.2135 31.9485Z",fill:"#00B0FD"}),T.createElement("path",{d:"M22.9839 29.9717V38.8671C23.2344 38.9506 23.499 39.0342 23.7495 39.1037C24.7797 39.3822 25.8655 39.5353 26.9792 39.5353C27.4525 39.5353 27.9258 39.5074 28.3852 39.4518C29.5267 39.3265 30.5986 39.0481 31.6287 38.6304C31.6287 38.6165 23.2066 30.2779 22.9839 29.9717Z",fill:"#66D01F"}),T.createElement("path",{d:"M22.0932 26.2688L15.8009 32.561C15.9123 32.7977 16.0515 33.0343 16.1768 33.271C16.7058 34.2036 17.374 35.0668 18.1536 35.8602C18.4877 36.1943 18.8496 36.5006 19.2115 36.7929C20.1025 37.5029 21.063 38.0737 22.0792 38.5052C22.0932 38.4913 22.0375 26.6447 22.0932 26.2688Z",fill:"#9AD121"}),T.createElement("path",{d:"M14.9379 23.7493C14.6595 24.7794 14.5063 25.8653 14.5063 26.9789C14.5063 27.4522 14.5342 27.9255 14.5899 28.3849C14.7151 29.5265 14.9936 30.5983 15.4112 31.6285C15.4112 31.6285 23.7498 23.2064 24.056 22.9836H15.1606C15.0771 23.2342 15.0075 23.4848 14.9379 23.7493Z",fill:"#FFC716"}),T.createElement("path",{d:"M20.7147 16.1761C19.782 16.7051 18.9189 17.3733 18.1254 18.1529C17.7913 18.487 17.485 18.849 17.1927 19.2109C16.4827 20.1018 15.912 21.0763 15.4804 22.0925C15.4804 22.0925 27.3271 22.0368 27.7168 22.0925L21.4246 15.8003L20.7146 16.1761H20.7147Z",fill:"#FF7612"})),T.createElement("defs",null,T.createElement("clipPath",{id:"clip0_2376_113"},T.createElement("rect",{width:"24.9912",height:"25.0714",fill:"white",transform:"translate(14.5044 14.4639)"}))))}),Ho=Object.defineProperty,ua=Object.defineProperties,la=Object.getOwnPropertyDescriptors,To=Object.getOwnPropertySymbols,Ia=Object.prototype.hasOwnProperty,ya=Object.prototype.propertyIsEnumerable,eo=(rn,Ft,Sn)=>Ft in rn?Ho(rn,Ft,{enumerable:!0,configurable:!0,writable:!0,value:Sn}):rn[Ft]=Sn,Oo=(rn,Ft)=>{for(var Sn in Ft||(Ft={}))Ia.call(Ft,Sn)&&eo(rn,Sn,Ft[Sn]);if(To)for(var Sn of To(Ft))ya.call(Ft,Sn)&&eo(rn,Sn,Ft[Sn]);return rn},so=(rn,Ft)=>ua(rn,la(Ft)),to=(rn,Ft)=>{var Sn={};for(var no in rn)Ia.call(rn,no)&&Ft.indexOf(no)<0&&(Sn[no]=rn[no]);if(rn!=null&&To)for(var no of To(rn))Ft.indexOf(no)<0&&ya.call(rn,no)&&(Sn[no]=rn[no]);return Sn},ta=(0,T.forwardRef)((rn,Ft)=>{var Sn=rn,{size:no,spin:wa,style:za}=Sn,hr=to(Sn,["size","spin","style"]);const ar=Oo(Oo({width:no||"var(--x-icon-size, 1em)",height:no||"var(--x-icon-size, 1em)",animation:wa?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),za);return T.createElement("svg",so(Oo({ref:Ft,style:ar},hr),{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),T.createElement("g",{clipPath:"url(#clip0_2376_241)"},T.createElement("path",{d:"M7.74414 5.24408C8.06958 4.91864 8.59709 4.91864 8.92252 5.24408L13.0892 9.41074C13.4146 9.73618 13.4146 10.2637 13.0892 10.5891L8.92252 14.7558C8.59709 15.0812 8.06958 15.0812 7.74414 14.7558C7.4187 14.4304 7.4187 13.9028 7.74414 13.5774L11.3216 9.99994L7.74414 6.42246C7.4187 6.09703 7.4187 5.56951 7.74414 5.24408Z",fill:"#414651"})),T.createElement("defs",null,T.createElement("clipPath",{id:"clip0_2376_241"},T.createElement("path",{d:"M0 6C0 2.68629 2.68629 0 6 0H14C17.3137 0 20 2.68629 20 6V14C20 17.3137 17.3137 20 14 20H6C2.68629 20 0 17.3137 0 14V6Z",fill:"white"}))))});const Qa=an.Ay.div.withConfig({displayName:"styles__StyledSettingItem",componentId:"sc-1aj7uzy-0"})(["width:100%;height:56px;display:flex;flex-direction:row;justify-content:space-between;font-size:14px;color:#19191A;align-items:center;&.disabled{opacity:0.4;pointer-events:none;}.item-right{display:flex;align-items:center;flex-direction:row;gap:2px;}"]),qr=rn=>{let{item:Ft}=rn;const{label:Sn,rightChildren:no,disabled:wa,onClick:za}=Ft;return(0,Oe.jsxs)(Qa,{className:wa?"disabled":"",onClick:za,children:[(0,Oe.jsx)("div",{children:Sn}),no]})};var kr=s(66147),ur=s(94586),Mr=s(53034),gr=s(59895),dr=s(94815),wi=s(49358),gi=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],Li=T.forwardRef(function(rn,Ft){var Sn,no=rn.prefixCls,wa=no===void 0?"rc-switch":no,za=rn.className,hr=rn.checked,ar=rn.defaultChecked,mi=rn.disabled,Vi=rn.loadingIcon,bs=rn.checkedChildren,Os=rn.unCheckedChildren,ml=rn.onClick,Ki=rn.onChange,Bs=rn.onKeyDown,ac=(0,gr.A)(rn,gi),qc=(0,dr.A)(!1,{value:hr,defaultValue:ar}),Sc=(0,Mr.A)(qc,2),ei=Sc[0],as=Sc[1];function As(Ql,Id){var _d=ei;return mi||(_d=Ql,as(_d),Ki==null||Ki(_d,Id)),_d}function $s(Ql){Ql.which===wi.A.LEFT?As(!1,Ql):Ql.which===wi.A.RIGHT&&As(!0,Ql),Bs==null||Bs(Ql)}function Ys(Ql){var Id=As(!ei,Ql);ml==null||ml(Id,Ql)}var rc=B()(wa,za,(Sn={},(0,N.A)(Sn,"".concat(wa,"-checked"),ei),(0,N.A)(Sn,"".concat(wa,"-disabled"),mi),Sn));return T.createElement("button",(0,ur.A)({},ac,{type:"button",role:"switch","aria-checked":ei,disabled:mi,className:rc,ref:Ft,onKeyDown:$s,onClick:Ys}),Vi,T.createElement("span",{className:"".concat(wa,"-inner")},T.createElement("span",{className:"".concat(wa,"-inner-checked")},bs),T.createElement("span",{className:"".concat(wa,"-inner-unchecked")},Os)))});Li.displayName="Switch";const Ni=Li;var Ai=s(82745),Bi=s(46757),Ss=s(16981),qi=s(37567),Ga=s(61972),ai=s(95390),kt=s(55095),Qt=s(58196),oo=s(48150);const ao=rn=>{const{componentCls:Ft,trackHeightSM:Sn,trackPadding:no,trackMinWidthSM:wa,innerMinMarginSM:za,innerMaxMarginSM:hr,handleSizeSM:ar,calc:mi}=rn,Vi=Ft+"-inner",bs=(0,Ga.zA)(mi(ar).add(mi(no).mul(2)).equal()),Os=(0,Ga.zA)(mi(hr).mul(2).equal());return{[Ft]:{["&"+Ft+"-small"]:{minWidth:wa,height:Sn,lineHeight:(0,Ga.zA)(Sn),[Ft+"-inner"]:{paddingInlineStart:hr,paddingInlineEnd:za,[Vi+"-checked, "+Vi+"-unchecked"]:{minHeight:Sn},[Vi+"-checked"]:{marginInlineStart:"calc(-100% + "+bs+" - "+Os+")",marginInlineEnd:"calc(100% - "+bs+" + "+Os+")"},[Vi+"-unchecked"]:{marginTop:mi(Sn).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[Ft+"-handle"]:{width:ar,height:ar},[Ft+"-loading-icon"]:{top:mi(mi(ar).sub(rn.switchLoadingIconSize)).div(2).equal(),fontSize:rn.switchLoadingIconSize},["&"+Ft+"-checked"]:{[Ft+"-inner"]:{paddingInlineStart:za,paddingInlineEnd:hr,[Vi+"-checked"]:{marginInlineStart:0,marginInlineEnd:0},[Vi+"-unchecked"]:{marginInlineStart:"calc(100% - "+bs+" + "+Os+")",marginInlineEnd:"calc(-100% + "+bs+" - "+Os+")"}},[Ft+"-handle"]:{insetInlineStart:"calc(100% - "+(0,Ga.zA)(mi(ar).add(no).equal())+")"}},["&:not("+Ft+"-disabled):active"]:{["&:not("+Ft+"-checked) "+Vi]:{[Vi+"-unchecked"]:{marginInlineStart:mi(rn.marginXXS).div(2).equal(),marginInlineEnd:mi(rn.marginXXS).mul(-1).div(2).equal()}},["&"+Ft+"-checked "+Vi]:{[Vi+"-checked"]:{marginInlineStart:mi(rn.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:mi(rn.marginXXS).div(2).equal()}}}}}}},fa=rn=>{const{componentCls:Ft,handleSize:Sn,calc:no}=rn;return{[Ft]:{[Ft+"-loading-icon"+rn.iconCls]:{position:"relative",top:no(no(Sn).sub(rn.fontSize)).div(2).equal(),color:rn.switchLoadingIconColor,verticalAlign:"top"},["&"+Ft+"-checked "+Ft+"-loading-icon"]:{color:rn.switchColor}}}},wr=rn=>{const{componentCls:Ft,trackPadding:Sn,handleBg:no,handleShadow:wa,handleSize:za,calc:hr}=rn,ar=Ft+"-handle";return{[Ft]:{[ar]:{position:"absolute",top:Sn,insetInlineStart:Sn,width:za,height:za,transition:"all "+rn.switchDuration+" ease-in-out","&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:no,borderRadius:hr(za).div(2).equal(),boxShadow:wa,transition:"all "+rn.switchDuration+" ease-in-out",content:'""'}},["&"+Ft+"-checked "+ar]:{insetInlineStart:"calc(100% - "+(0,Ga.zA)(hr(za).add(Sn).equal())+")"},["&:not("+Ft+"-disabled):active"]:{[ar+"::before"]:{insetInlineEnd:rn.switchHandleActiveInset,insetInlineStart:0},["&"+Ft+"-checked "+ar+"::before"]:{insetInlineEnd:0,insetInlineStart:rn.switchHandleActiveInset}}}}},Xa=rn=>{const{componentCls:Ft,trackHeight:Sn,trackPadding:no,innerMinMargin:wa,innerMaxMargin:za,handleSize:hr,calc:ar}=rn,mi=Ft+"-inner",Vi=(0,Ga.zA)(ar(hr).add(ar(no).mul(2)).equal()),bs=(0,Ga.zA)(ar(za).mul(2).equal());return{[Ft]:{[mi]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:za,paddingInlineEnd:wa,transition:"padding-inline-start "+rn.switchDuration+" ease-in-out, padding-inline-end "+rn.switchDuration+" ease-in-out",[mi+"-checked, "+mi+"-unchecked"]:{display:"block",color:rn.colorTextLightSolid,fontSize:rn.fontSizeSM,transition:"margin-inline-start "+rn.switchDuration+" ease-in-out, margin-inline-end "+rn.switchDuration+" ease-in-out",pointerEvents:"none",minHeight:Sn},[mi+"-checked"]:{marginInlineStart:"calc(-100% + "+Vi+" - "+bs+")",marginInlineEnd:"calc(100% - "+Vi+" + "+bs+")"},[mi+"-unchecked"]:{marginTop:ar(Sn).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},["&"+Ft+"-checked "+mi]:{paddingInlineStart:wa,paddingInlineEnd:za,[mi+"-checked"]:{marginInlineStart:0,marginInlineEnd:0},[mi+"-unchecked"]:{marginInlineStart:"calc(100% - "+Vi+" + "+bs+")",marginInlineEnd:"calc(-100% + "+Vi+" - "+bs+")"}},["&:not("+Ft+"-disabled):active"]:{["&:not("+Ft+"-checked) "+mi]:{[mi+"-unchecked"]:{marginInlineStart:ar(no).mul(2).equal(),marginInlineEnd:ar(no).mul(-1).mul(2).equal()}},["&"+Ft+"-checked "+mi]:{[mi+"-checked"]:{marginInlineStart:ar(no).mul(-1).mul(2).equal(),marginInlineEnd:ar(no).mul(2).equal()}}}}}},ir=rn=>{const{componentCls:Ft,trackHeight:Sn,trackMinWidth:no}=rn;return{[Ft]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,kt.dF)(rn)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:no,height:Sn,lineHeight:(0,Ga.zA)(Sn),verticalAlign:"middle",background:rn.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:"all "+rn.motionDurationMid,userSelect:"none",["&:hover:not("+Ft+"-disabled)"]:{background:rn.colorTextTertiary}}),(0,kt.K8)(rn)),{["&"+Ft+"-checked"]:{background:rn.switchColor,["&:hover:not("+Ft+"-disabled)"]:{background:rn.colorPrimaryHover}},["&"+Ft+"-loading, &"+Ft+"-disabled"]:{cursor:"not-allowed",opacity:rn.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},["&"+Ft+"-rtl"]:{direction:"rtl"}})}},Ir=rn=>{const{fontSize:Ft,lineHeight:Sn,controlHeight:no,colorWhite:wa}=rn,za=Ft*Sn,hr=no/2,ar=2,mi=za-ar*2,Vi=hr-ar*2;return{trackHeight:za,trackHeightSM:hr,trackMinWidth:mi*2+ar*4,trackMinWidthSM:Vi*2+ar*2,trackPadding:ar,handleBg:wa,handleSize:mi,handleSizeSM:Vi,handleShadow:"0 2px 4px 0 "+new ai.Y("#00230b").setA(.2).toRgbString(),innerMinMargin:mi/2,innerMaxMargin:mi+ar+ar*2,innerMinMarginSM:Vi/2,innerMaxMarginSM:Vi+ar+ar*2}},Er=(0,Qt.OF)("Switch",rn=>{const Ft=(0,oo.oX)(rn,{switchDuration:rn.motionDurationMid,switchColor:rn.colorPrimary,switchDisabledOpacity:rn.opacityLoading,switchLoadingIconSize:rn.calc(rn.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:"rgba(0, 0, 0, "+rn.opacityLoading+")",switchHandleActiveInset:"-30%"});return[ir(Ft),Xa(Ft),wr(Ft),fa(Ft),ao(Ft)]},Ir);var ji=function(rn,Ft){var Sn={};for(var no in rn)Object.prototype.hasOwnProperty.call(rn,no)&&Ft.indexOf(no)<0&&(Sn[no]=rn[no]);if(rn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var wa=0,no=Object.getOwnPropertySymbols(rn);wa<no.length;wa++)Ft.indexOf(no[wa])<0&&Object.prototype.propertyIsEnumerable.call(rn,no[wa])&&(Sn[no[wa]]=rn[no[wa]]);return Sn};const Cl=T.forwardRef((rn,Ft)=>{const{prefixCls:Sn,size:no,disabled:wa,loading:za,className:hr,rootClassName:ar,style:mi,checked:Vi,value:bs,defaultChecked:Os,defaultValue:ml,onChange:Ki}=rn,Bs=ji(rn,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[ac,qc]=(0,dr.A)(!1,{value:Vi!=null?Vi:bs,defaultValue:Os!=null?Os:ml}),{getPrefixCls:Sc,direction:ei,switch:as}=T.useContext(Bi.QO),As=T.useContext(Ss.A),$s=(wa!=null?wa:As)||za,Ys=Sc("switch",Sn),rc=T.createElement("div",{className:Ys+"-handle"},za&&T.createElement(kr.A,{className:Ys+"-loading-icon"})),[Ql,Id,_d]=Er(Ys),h2=(0,qi.A)(no),vp=B()(as==null?void 0:as.className,{[Ys+"-small"]:h2==="small",[Ys+"-loading"]:za,[Ys+"-rtl"]:ei==="rtl"},hr,ar,Id,_d),U1=Object.assign(Object.assign({},as==null?void 0:as.style),mi),g0=function(){for(var bp=arguments.length,y0=new Array(bp),R0=0;R0<bp;R0++)y0[R0]=arguments[R0];qc(y0[0]),Ki==null||Ki.apply(void 0,y0)};return Ql(T.createElement(Ai.A,{component:"Switch"},T.createElement(Ni,Object.assign({},Bs,{checked:ac,onChange:g0,prefixCls:Ys,className:vp,style:U1,disabled:$s,ref:Ft,loadingIcon:rc}))))});Cl.__ANT_SWITCH=!0;const Di=Cl;var Rs=Object.defineProperty,wc=Object.defineProperties,Vc=Object.getOwnPropertyDescriptors,Wl=Object.getOwnPropertySymbols,ca=Object.prototype.hasOwnProperty,Lr=Object.prototype.propertyIsEnumerable,yi=(rn,Ft,Sn)=>Ft in rn?Rs(rn,Ft,{enumerable:!0,configurable:!0,writable:!0,value:Sn}):rn[Ft]=Sn,Ts=(rn,Ft)=>{for(var Sn in Ft||(Ft={}))ca.call(Ft,Sn)&&yi(rn,Sn,Ft[Sn]);if(Wl)for(var Sn of Wl(Ft))Lr.call(Ft,Sn)&&yi(rn,Sn,Ft[Sn]);return rn},Cc=(rn,Ft)=>wc(rn,Vc(Ft)),Wi=(rn,Ft)=>{var Sn={};for(var no in rn)ca.call(rn,no)&&Ft.indexOf(no)<0&&(Sn[no]=rn[no]);if(rn!=null&&Wl)for(var no of Wl(rn))Ft.indexOf(no)<0&&Lr.call(rn,no)&&(Sn[no]=rn[no]);return Sn},Oi=(0,T.forwardRef)((rn,Ft)=>{var Sn=rn,{size:no,spin:wa,style:za}=Sn,hr=Wi(Sn,["size","spin","style"]);const ar=Ts(Ts({width:no||"var(--x-icon-size, 1em)",height:no||"var(--x-icon-size, 1em)",animation:wa?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),za);return T.createElement("svg",Cc(Ts({ref:Ft,style:ar},hr),{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),T.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.5381 7.94683C18.9775 8.38617 18.9775 9.09848 18.5381 9.53782L10.6742 17.4018C10.4632 17.6128 10.177 17.7313 9.87868 17.7313C9.58031 17.7313 9.29416 17.6128 9.08319 17.4018L4.84054 13.1591C4.4012 12.7198 4.4012 12.0075 4.84054 11.5681C5.27988 11.1288 5.99219 11.1288 6.43153 11.5681L9.87868 15.0153L16.9471 7.94683C17.3865 7.50749 18.0988 7.50749 18.5381 7.94683Z",fill:"#336FFF"}))});const zs=an.Ay.div.withConfig({displayName:"styles__StyledPermissionPanel",componentId:"sc-powogo-0"})(["flex:1;width:100%;display:flex;flex-direction:column;"]),Hl=rn=>{let{access:Ft="public",onChangeAccess:Sn}=rn;const no=(0,T.useMemo)(()=>[{label:"\u6240\u6709\u4EBA",value:"public",rightChildren:Ft==="public"?(0,Oe.jsx)(Oi,{size:24}):(0,Oe.jsx)(Oe.Fragment,{}),onClick:()=>{Sn&&Sn("public")}},{label:"\u4EC5\u56E2\u961F\u6210\u5458",value:"restricted",rightChildren:Ft==="restricted"?(0,Oe.jsx)(Oi,{size:24}):(0,Oe.jsx)(Oe.Fragment,{}),onClick:()=>{Sn&&Sn("restricted")}}],[Ft,Sn]);return(0,Oe.jsx)(zs,{children:no.map((wa,za)=>(0,Oe.jsx)(qr,{item:wa},za))})},El=an.Ay.div.withConfig({displayName:"styles__StyledPasswordPanel",componentId:"sc-4yiitn-0"})(["flex:1;width:100%;display:flex;flex-direction:column;position:relative;.input-box{width:100%;height:44px;padding:0 12px;overflow:hidden;border-radius:10px;background:#F3F3F5;display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:15px;.password-input{flex:1;height:100%;}.random{color:#336FFF;}}.copy-password{position:absolute;bottom:0;left:0;width:100%;height:44px;border-radius:10px;display:flex;align-items:center;justify-content:center;font-family:PingFang SC;font-weight:500;font-style:Medium;font-size:16px;color:white;background:#336FFF;&.disabled{opacity:0.4;pointer-events:none;}}"]);var Xl=s(39572),uc=s(43641),Pl=s(78042);const Pc=rn=>{let{password:Ft="",onChangePassword:Sn}=rn;const no=(0,T.useRef)(null),[wa,za]=(0,T.useState)(Ft),{passwordClose:hr,canCopyPassWord:ar}=(0,T.useMemo)(()=>{const Bs=!Ft||Ft.length===0,ac=wa&&!(/^\s*$/.test(wa)||!/^\w+$/.test(wa));return{passwordClose:Bs,canCopyPassWord:ac}},[Ft,wa]),mi={label:"\u5BC6\u7801\u4FDD\u62A4",rightChildren:(0,Oe.jsx)(Di,{checked:!hr,onChange:Bs=>{if(Bs){Vi();return}za(""),Sn&&Sn("")}})},Vi=(0,T.useCallback)(()=>{const Bs=(0,Xl.I)(6);za(Bs),Sn&&Sn(Bs)},[Sn]),bs=()=>{if(/^\s*$/.test(wa)||!/^\w+$/.test(wa)){try{MB.notice({text:"\u5BC6\u7801\u683C\u5F0F\u9519\u8BEF\uFF0C\u4E0D\u5F97\u4E3A\u7A7A\u6216\u7279\u6B8A\u5B57\u7B26",type:"warning"})}catch(Bs){(0,Pl.A)(JSON.stringify({sharingMessage:"sharing:notice"}),"*")}za(Ft);return}Sn&&Sn(wa)},Os=Bs=>{if(Bs.nativeEvent.key==="Enter"){var ac;bs(),no==null||(ac=no.current)==null||ac.blur()}},ml=Bs=>{za(Bs.target.value)},Ki=async()=>{bs(),await(0,uc.$)(wa),MB.notice({text:"\u590D\u5236\u6210\u529F",type:"success"})};return(0,Oe.jsxs)(El,{children:[(0,Oe.jsx)(qr,{item:mi}),!hr&&(0,Oe.jsxs)("div",{className:"input-box",children:[(0,Oe.jsx)("input",{ref:no,type:"text",className:"password-input",style:{pointerEvents:wa?"auto":"none"},value:wa,onChange:ml,onBlur:bs,onKeyPress:Os}),(0,Oe.jsx)("div",{className:"random",onClick:Vi,children:"\u968F\u673A\u751F\u6210"})]}),(0,Oe.jsx)("div",{className:"copy-password "+(ar?"":"disabled"),onClick:Ki,children:"\u590D\u5236\u5BC6\u7801"})]})};var Gl=s(54844),vo=s(54190);const ia=rn=>{const Ft=(0,r.wA)(),{onBackSetting:Sn,projectShare:no,project:wa}=rn,[za,hr]=(0,T.useState)(!1),[ar,mi]=(0,T.useState)(wa),Vi=wa==null?void 0:wa.is_org_project,{shareDisabled:bs,shareClose:Os}=(0,T.useMemo)(()=>{const As=(ar==null?void 0:ar.visibility)==="close";return{shareClose:As,shareDisabled:As||!za}},[za,ar==null?void 0:ar.visibility]);console.log("~~~shareProject~~~",wa);const[ml,Ki]=(0,T.useState)("main"),Bs=(0,T.useMemo)(()=>({main:I18N.pPreview.mobileMenu.share,permission:"\u8BBF\u95EE\u6743\u9650",password:"\u5BC6\u7801\u4FDD\u62A4"}),[]),ac=(0,T.useMemo)(()=>{const As=()=>{const Ys=(no==null?void 0:no.access_token)||(0,An.H)(location),rc=(no==null?void 0:no.type)==="default"?no==null?void 0:no.view_mode:no==null?void 0:no.device_model;return""+window.location.origin+An.o$+"/"+Ys+"/sharing?view_mode="+(rc||"read_only")},$s=[{label:"\u590D\u5236\u94FE\u63A5",icon:(0,Oe.jsx)(lo,{size:54}),onClick:()=>{var Ys;(Ys=MB)!=null&&Ys.messageBucket&&MB.messageBucket.send(vn.Q8.copyLinkAddress,JSON.stringify({url:As(),shareName:""}))}},{label:"\u5FAE\u4FE1\u597D\u53CB",icon:(0,Oe.jsx)(jn,{size:54}),onClick:()=>{var Ys;(Ys=MB)!=null&&Ys.messageBucket&&MB.messageBucket.send(vn.Q8.shareToWX,JSON.stringify({url:As(),project:wa,shareName:""}))}},{label:"\u670B\u53CB\u5708",icon:(0,Oe.jsx)(Uo,{size:54}),onClick:()=>{var Ys;(Ys=MB)!=null&&Ys.messageBucket&&MB.messageBucket.send(vn.Q8.shareToWXMoments,JSON.stringify({url:As(),project:wa,shareName:""}))}}];return ENV.IS_ON_PREMISES||ENV.IS_MO?$s.slice(0,1):$s},[wa,no]),qc=(0,T.useMemo)(()=>{const As=!Vi||(ar==null?void 0:ar.access)==="public"?"\u6240\u6709\u4EBA":"\u4EC5\u56E2\u961F\u6210\u5458",$s=ar!=null&&ar.password?"\u5DF2\u5F00\u542F":"\u5173\u95ED",Ys=[{label:"\u542F\u7528\u5206\u4EAB",disabled:!za,rightChildren:(0,Oe.jsx)(Di,{checked:!Os,onChange:async()=>{wa!=null&&wa.cid&&(mi(rc=>{if(rc){const Ql=rc.visibility==="close"?"open":"close";return Ft({type:"preview:set:root-project",payload:{rootProject:{...rc,visibility:Ql}}}),{...rc,visibility:Ql}}return rc}),await(0,vo.Yu)(wa.cid,{visibility:(ar==null?void 0:ar.visibility)==="close"?"open":"close"}))}})},{label:"\u8BBF\u95EE\u6743\u9650",disabled:bs||!Vi,rightChildren:(0,Oe.jsxs)("div",{className:"item-right",onClick:()=>{Ki("permission")},children:[As,(0,Oe.jsx)(ta,{size:20})]})},{label:"\u5BC6\u7801\u4FDD\u62A4",disabled:bs,rightChildren:(0,Oe.jsxs)("div",{className:"item-right",onClick:()=>{Ki("password")},children:[$s,(0,Oe.jsx)(ta,{size:20})]})}];return Vi?Ys:Ys.filter(rc=>rc.label!=="\u8BBF\u95EE\u6743\u9650")},[Ft,za,bs,Vi,Os,wa==null?void 0:wa.cid,ar==null?void 0:ar.visibility,ar==null?void 0:ar.access,ar==null?void 0:ar.password]),Sc=()=>{if(ml==="main"){Sn();return}Ki("main")},ei=async As=>{wa!=null&&wa.cid&&(mi($s=>$s&&(Ft({type:"preview:set:root-project",payload:{rootProject:{...$s,password:As}}}),{...$s,password:As})),await(0,vo.Yu)(wa.cid,{password:As}))},as=async As=>{wa!=null&&wa.cid&&(Ki("main"),mi($s=>$s&&(Ft({type:"preview:set:root-project",payload:{rootProject:{...$s,access:As}}}),{...$s,access:As})),await(0,vo.Yu)(wa.cid,{access:As}))};return(0,T.useEffect)(()=>{(async()=>{if(!(wa!=null&&wa.cid))return;const{result:{result:$s},statusOk:Ys}=await(0,Gl.QC)(wa==null?void 0:wa.cid);Ys&&hr($s)})()},[wa==null?void 0:wa.cid]),(0,Oe.jsxs)(Nt,{children:[(0,Oe.jsxs)("div",{className:"nav-header",children:[(0,Oe.jsx)(Me,{className:"backBtn",size:24,onClick:Sc}),(0,Oe.jsxs)("div",{className:"header-title",children:[(0,Oe.jsx)("div",{className:"headerName",children:Bs[ml]}),ml==="main"&&(0,Oe.jsx)("div",{className:"headerIntro",children:I18N.pPreview.mobileMenu.shareTo})]})]}),!ENV.IS_ON_PREMISES&&!ENV.IS_MO&&ml==="main"&&(0,Oe.jsxs)("div",{className:"setting-panel",children:[qc.map((As,$s)=>(0,Oe.jsx)(qr,{item:As},$s)),(0,Oe.jsx)("div",{className:"share-container "+(Os?"disabled":""),children:ac.map(As=>(0,Oe.jsxs)("div",{className:"item",onClick:As.onClick,children:[As.icon,(0,Oe.jsx)("div",{className:"item-label",children:As.label})]},As.label))})]}),ml==="permission"&&(0,Oe.jsx)(Hl,{onChangeAccess:as,access:ar==null?void 0:ar.access}),ml==="password"&&(0,Oe.jsx)(Pc,{onChangePassword:ei,password:ar==null?void 0:ar.password})]})},na=an.Ay.div.withConfig({displayName:"styles__StyledSharingPanel",componentId:"sc-z94kjc-0"})(["flex:1;width:100%;height:100%;.theHeader{display:flex;align-items:center;justify-content:flex-start;height:","px;margin:0 20px;border-bottom:1px solid #F2F2F2;.backBtn{padding:10px 10px 10px 0;.backIcon{height:32px;width:32px;color:#fff;margin-top:4px;margin-left:-10px;}}.headerTitle{display:flex;flex-direction:column;justify-content:space-between;.headerName{font-weight:500;font-size:15px;color:#000000;}.headerIntro{margin-top:4px;font-weight:none;font-size:12px;color:#8D9EA7;}}}.sharing-list{width:100%;overflow-x:hidden;overflow-y:auto;height:calc(100% - ","px);}"],bt,bt);function Sa(rn){const{onBack:Ft,project:Sn,projectShare:no}=rn;return(0,Oe.jsx)(na,{children:(0,Oe.jsx)(ia,{isMultiLink:!0,project:Sn,onBackSetting:Ft,projectShare:no})})}var Na=Object.defineProperty,Tt=Object.defineProperties,mn=Object.getOwnPropertyDescriptors,Rn=Object.getOwnPropertySymbols,gn=Object.prototype.hasOwnProperty,Tn=Object.prototype.propertyIsEnumerable,wo=(rn,Ft,Sn)=>Ft in rn?Na(rn,Ft,{enumerable:!0,configurable:!0,writable:!0,value:Sn}):rn[Ft]=Sn,io=(rn,Ft)=>{for(var Sn in Ft||(Ft={}))gn.call(Ft,Sn)&&wo(rn,Sn,Ft[Sn]);if(Rn)for(var Sn of Rn(Ft))Tn.call(Ft,Sn)&&wo(rn,Sn,Ft[Sn]);return rn},fo=(rn,Ft)=>Tt(rn,mn(Ft)),co=(rn,Ft)=>{var Sn={};for(var no in rn)gn.call(rn,no)&&Ft.indexOf(no)<0&&(Sn[no]=rn[no]);if(rn!=null&&Rn)for(var no of Rn(rn))Ft.indexOf(no)<0&&Tn.call(rn,no)&&(Sn[no]=rn[no]);return Sn},Fo=(0,T.forwardRef)((rn,Ft)=>{var Sn=rn,{size:no,spin:wa,style:za}=Sn,hr=co(Sn,["size","spin","style"]);const ar=io(io({width:no||"var(--x-icon-size, 1em)",height:no||"var(--x-icon-size, 1em)",animation:wa?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),za);return T.createElement("svg",fo(io({ref:Ft,style:ar},hr),{width:"54",height:"54",viewBox:"0 0 54 54",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),T.createElement("rect",{width:"54",height:"54",rx:"27",fill:"#459BFF",fillOpacity:"0.11"}),T.createElement("path",{d:"M18.7287 32.0991C19.2964 32.0993 19.757 32.5596 19.757 33.1274C19.7568 33.6951 19.2963 34.1555 18.7287 34.1558H18.1154C17.5476 34.1557 17.0872 33.6952 17.0871 33.1274C17.0871 32.5595 17.5475 32.0992 18.1154 32.0991H18.7287ZM35.8849 32.0991C36.4527 32.0993 36.9132 32.5596 36.9132 33.1274C36.9131 33.6951 36.4526 34.1555 35.8849 34.1558H22.4044C21.8366 34.1557 21.3763 33.6952 21.3761 33.1274C21.3761 32.5595 21.8365 32.0992 22.4044 32.0991H35.8849ZM18.7287 25.9712C19.2963 25.9714 19.7567 26.4319 19.757 26.9995C19.757 27.5673 19.2964 28.0276 18.7287 28.0278H18.1154C17.5475 28.0278 17.0871 27.5674 17.0871 26.9995C17.0873 26.4318 17.5476 25.9713 18.1154 25.9712H18.7287ZM35.8849 25.9712C36.4525 25.9714 36.913 26.4319 36.9132 26.9995C36.9132 27.5673 36.4527 28.0276 35.8849 28.0278H22.4044C21.8365 28.0278 21.3761 27.5674 21.3761 26.9995C21.3763 26.4318 21.8367 25.9713 22.4044 25.9712H35.8849ZM18.7287 19.8442C19.2964 19.8445 19.7569 20.3048 19.757 20.8726C19.757 21.4404 19.2964 21.9007 18.7287 21.9009H18.1154C17.5475 21.9008 17.0871 21.4405 17.0871 20.8726C17.0871 20.3047 17.5475 19.8443 18.1154 19.8442H18.7287ZM35.8849 19.8442C36.4526 19.8445 36.9131 20.3048 36.9132 20.8726C36.9132 21.4404 36.4527 21.9007 35.8849 21.9009H22.4044C21.8365 21.9008 21.3761 21.4405 21.3761 20.8726C21.3762 20.3047 21.8366 19.8443 22.4044 19.8442H35.8849Z",fill:"#336FFF",stroke:"#336FFF",strokeWidth:"0.218571"}))}),Eo=Object.defineProperty,Oa=Object.defineProperties,Ra=Object.getOwnPropertyDescriptors,tr=Object.getOwnPropertySymbols,Ar=Object.prototype.hasOwnProperty,nr=Object.prototype.propertyIsEnumerable,$a=(rn,Ft,Sn)=>Ft in rn?Eo(rn,Ft,{enumerable:!0,configurable:!0,writable:!0,value:Sn}):rn[Ft]=Sn,Rr=(rn,Ft)=>{for(var Sn in Ft||(Ft={}))Ar.call(Ft,Sn)&&$a(rn,Sn,Ft[Sn]);if(tr)for(var Sn of tr(Ft))nr.call(Ft,Sn)&&$a(rn,Sn,Ft[Sn]);return rn},or=(rn,Ft)=>Oa(rn,Ra(Ft)),Ba=(rn,Ft)=>{var Sn={};for(var no in rn)Ar.call(rn,no)&&Ft.indexOf(no)<0&&(Sn[no]=rn[no]);if(rn!=null&&tr)for(var no of tr(rn))Ft.indexOf(no)<0&&nr.call(rn,no)&&(Sn[no]=rn[no]);return Sn},Za=(0,T.forwardRef)((rn,Ft)=>{var Sn=rn,{size:no,spin:wa,style:za}=Sn,hr=Ba(Sn,["size","spin","style"]);const ar=Rr(Rr({width:no||"var(--x-icon-size, 1em)",height:no||"var(--x-icon-size, 1em)",animation:wa?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),za);return T.createElement("svg",or(Rr({ref:Ft,style:ar},hr),{width:"54",height:"54",viewBox:"0 0 54 54",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),T.createElement("rect",{width:"54",height:"54",rx:"27",fill:"#459BFF",fillOpacity:"0.11"}),T.createElement("path",{d:"M35.0996 17.9229C35.6393 17.9229 36.0771 18.3607 36.0771 18.9004V24.2998C36.0771 24.8395 35.6393 25.2773 35.0996 25.2773H29.7002C29.1605 25.2773 28.7226 24.8395 28.7226 24.2998C28.7227 23.7602 29.1606 23.3232 29.7002 23.3232H33.0986C31.8512 21.2586 29.5879 19.877 27 19.877C23.0661 19.877 19.8769 23.0662 19.8769 27C19.8769 30.9338 23.0661 34.123 27 34.123C30.0701 34.123 32.6866 32.1803 33.6875 29.457C33.8425 29.0353 34.2312 28.7227 34.6894 28.7227C35.3188 28.7227 35.8055 29.3057 35.5986 29.916C34.3841 33.4986 30.9932 36.0771 27 36.0771C21.9868 36.0771 17.9228 32.0132 17.9228 27C17.9228 21.9868 21.9868 17.9229 27 17.9229C29.8892 17.9229 32.4607 19.2747 34.123 21.3779V18.9004C34.123 18.3609 34.5601 17.9231 35.0996 17.9229Z",fill:"#336FFF",stroke:"#336FFF",strokeWidth:"0.154286"}))}),Nr=Object.defineProperty,ii=Object.defineProperties,Ci=Object.getOwnPropertyDescriptors,Zi=Object.getOwnPropertySymbols,Zr=Object.prototype.hasOwnProperty,Hi=Object.prototype.propertyIsEnumerable,yr=(rn,Ft,Sn)=>Ft in rn?Nr(rn,Ft,{enumerable:!0,configurable:!0,writable:!0,value:Sn}):rn[Ft]=Sn,$r=(rn,Ft)=>{for(var Sn in Ft||(Ft={}))Zr.call(Ft,Sn)&&yr(rn,Sn,Ft[Sn]);if(Zi)for(var Sn of Zi(Ft))Hi.call(Ft,Sn)&&yr(rn,Sn,Ft[Sn]);return rn},os=(rn,Ft)=>ii(rn,Ci(Ft)),pt=(rn,Ft)=>{var Sn={};for(var no in rn)Zr.call(rn,no)&&Ft.indexOf(no)<0&&(Sn[no]=rn[no]);if(rn!=null&&Zi)for(var no of Zi(rn))Ft.indexOf(no)<0&&Hi.call(rn,no)&&(Sn[no]=rn[no]);return Sn},Ue=(0,T.forwardRef)((rn,Ft)=>{var Sn=rn,{size:no,spin:wa,style:za}=Sn,hr=pt(Sn,["size","spin","style"]);const ar=$r($r({width:no||"var(--x-icon-size, 1em)",height:no||"var(--x-icon-size, 1em)",animation:wa?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),za);return T.createElement("svg",os($r({ref:Ft,style:ar},hr),{width:"54",height:"54",viewBox:"0 0 54 54",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),T.createElement("rect",{width:"54",height:"54",rx:"27",fill:"#459BFF",fillOpacity:"0.11"}),T.createElement("path",{d:"M31.5967 16.9712C33.6957 16.9713 35.3974 18.673 35.3975 20.772C35.3975 22.8711 33.6958 24.5726 31.5967 24.5728C30.5593 24.5728 29.6194 24.1567 28.9336 23.4829L25.1924 25.6685C25.3475 26.0829 25.4326 26.5312 25.4327 26.9995C25.4327 27.4677 25.3473 27.9162 25.1924 28.3306L28.9336 30.5161C29.6194 29.8426 30.5595 29.4263 31.5967 29.4263C33.6958 29.4264 35.3975 31.1289 35.3975 33.228C35.3973 35.3269 33.6956 37.0287 31.5967 37.0288C29.4977 37.0288 27.7962 35.327 27.7959 33.228C27.7959 32.8867 27.8414 32.5556 27.9258 32.2407L24.0166 29.9575C23.3644 30.484 22.5353 30.8013 21.6319 30.8013C19.5328 30.8011 17.8311 29.0986 17.8311 26.9995C17.8313 24.9006 19.533 23.1989 21.6319 23.1987C22.5352 23.1987 23.3645 23.5152 24.0166 24.0415L27.9258 21.7583C27.8415 21.4437 27.7959 21.113 27.7959 20.772C27.7961 18.6729 29.4976 16.9712 31.5967 16.9712ZM31.5967 31.4233C30.6004 31.4233 29.792 32.2317 29.792 33.228C29.7923 34.2242 30.6005 35.0317 31.5967 35.0317C32.5928 35.0316 33.4002 34.2241 33.4004 33.228C33.4004 32.2318 32.5929 31.4235 31.5967 31.4233ZM21.6319 25.1958C20.6358 25.196 19.8284 26.0035 19.8282 26.9995C19.8282 27.9957 20.6357 28.804 21.6319 28.8042C22.6282 28.8042 23.4366 27.9958 23.4366 26.9995C23.4363 26.0034 22.6281 25.1958 21.6319 25.1958ZM31.5967 18.9683C30.6005 18.9683 29.7922 19.7758 29.792 20.772C29.792 21.7683 30.6004 22.5767 31.5967 22.5767C32.5929 22.5765 33.4004 21.7682 33.4004 20.772C33.4003 19.7759 32.5928 18.9684 31.5967 18.9683Z",fill:"#336FFF",stroke:"#336FFF",strokeWidth:"0.128571"}))}),ke=Object.defineProperty,Ve=Object.defineProperties,st=Object.getOwnPropertyDescriptors,ut=Object.getOwnPropertySymbols,Rt=Object.prototype.hasOwnProperty,en=Object.prototype.propertyIsEnumerable,Xt=(rn,Ft,Sn)=>Ft in rn?ke(rn,Ft,{enumerable:!0,configurable:!0,writable:!0,value:Sn}):rn[Ft]=Sn,Zn=(rn,Ft)=>{for(var Sn in Ft||(Ft={}))Rt.call(Ft,Sn)&&Xt(rn,Sn,Ft[Sn]);if(ut)for(var Sn of ut(Ft))en.call(Ft,Sn)&&Xt(rn,Sn,Ft[Sn]);return rn},bo=(rn,Ft)=>Ve(rn,st(Ft)),Po=(rn,Ft)=>{var Sn={};for(var no in rn)Rt.call(rn,no)&&Ft.indexOf(no)<0&&(Sn[no]=rn[no]);if(rn!=null&&ut)for(var no of ut(rn))Ft.indexOf(no)<0&&en.call(rn,no)&&(Sn[no]=rn[no]);return Sn},xa=(0,T.forwardRef)((rn,Ft)=>{var Sn=rn,{size:no,spin:wa,style:za}=Sn,hr=Po(Sn,["size","spin","style"]);const ar=Zn(Zn({width:no||"var(--x-icon-size, 1em)",height:no||"var(--x-icon-size, 1em)",animation:wa?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),za);return T.createElement("svg",bo(Zn({ref:Ft,style:ar},hr),{width:"54",height:"54",viewBox:"0 0 54 54",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),T.createElement("rect",{width:"54",height:"54",rx:"27",fill:"#459BFF",fillOpacity:"0.11"}),T.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M29.2436 18.7552H20.249V35.2452H29.2436V34.1209C29.2436 33.5 29.747 32.9966 30.3679 32.9966C30.9888 32.9966 31.4922 33.5 31.4922 34.1209V35.2452C31.4922 36.4871 30.4855 37.4939 29.2436 37.4939H20.249C19.0071 37.4939 18.0004 36.4871 18.0004 35.2452V18.7552C18.0004 17.5133 19.0071 16.5066 20.249 16.5066H29.2436C30.4855 16.5066 31.4922 17.5133 31.4922 18.7552V19.8795C31.4922 20.5005 30.9888 21.0039 30.3679 21.0039C29.747 21.0039 29.2436 20.5005 29.2436 19.8795V18.7552ZM33.0473 23.5818C32.6082 23.1427 31.8963 23.1427 31.4572 23.5818C31.0182 24.0209 31.0182 24.7328 31.4572 25.1718L31.832 25.5466L32.1613 25.8759H25.1094C24.4884 25.8759 23.985 26.3793 23.985 27.0002C23.985 27.6212 24.4884 28.1245 25.1094 28.1245H32.1613L31.832 28.4539L31.4572 28.8286C31.0182 29.2677 31.0182 29.9796 31.4572 30.4186C31.8963 30.8577 32.6082 30.8577 33.0473 30.4186L33.422 30.0439L34.1716 29.2943L35.6707 27.7952C36.1098 27.3562 36.1098 26.6443 35.6707 26.2052L34.1716 24.7061L33.422 23.9566L33.0473 23.5818Z",fill:"#336FFF"}))}),da=Object.defineProperty,Ko=Object.defineProperties,Fa=Object.getOwnPropertyDescriptors,Pa=Object.getOwnPropertySymbols,sr=Object.prototype.hasOwnProperty,vr=Object.prototype.propertyIsEnumerable,Or=(rn,Ft,Sn)=>Ft in rn?da(rn,Ft,{enumerable:!0,configurable:!0,writable:!0,value:Sn}):rn[Ft]=Sn,Tr=(rn,Ft)=>{for(var Sn in Ft||(Ft={}))sr.call(Ft,Sn)&&Or(rn,Sn,Ft[Sn]);if(Pa)for(var Sn of Pa(Ft))vr.call(Ft,Sn)&&Or(rn,Sn,Ft[Sn]);return rn},Kr=(rn,Ft)=>Ko(rn,Fa(Ft)),Ha=(rn,Ft)=>{var Sn={};for(var no in rn)sr.call(rn,no)&&Ft.indexOf(no)<0&&(Sn[no]=rn[no]);if(rn!=null&&Pa)for(var no of Pa(rn))Ft.indexOf(no)<0&&vr.call(rn,no)&&(Sn[no]=rn[no]);return Sn},Gi=(0,T.forwardRef)((rn,Ft)=>{var Sn=rn,{size:no,spin:wa,style:za}=Sn,hr=Ha(Sn,["size","spin","style"]);const ar=Tr(Tr({width:no||"var(--x-icon-size, 1em)",height:no||"var(--x-icon-size, 1em)",animation:wa?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),za);return T.createElement("svg",Kr(Tr({ref:Ft,style:ar},hr),{width:"50",height:"50",viewBox:"0 0 50 50",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),T.createElement("rect",{width:"50",height:"50",rx:"14",fill:"#459BFF",fillOpacity:"0.17"}),T.createElement("g",{filter:"url(#filter0_d_2633_83)"},T.createElement("rect",{x:"12",y:"11.999",width:"26",height:"26.002",rx:"5.6875",fill:"url(#paint0_linear_2633_83)"}),T.createElement("rect",{x:"17.218",y:"19.801",width:"7.8",height:"13",rx:"1.12907",fill:"white"}),T.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M26.5892 25.0443C26.5892 24.0959 27.358 23.3271 28.3064 23.3271H32.0066C32.9549 23.3271 33.7237 24.0959 33.7237 25.0443V31.4528C33.7237 32.4011 32.9549 33.1699 32.0066 33.1699H28.3064C27.358 33.1699 26.5892 32.4011 26.5892 31.4528V25.0443ZM28.3064 24.5033C28.0076 24.5033 27.7654 24.7455 27.7654 25.0443V31.4528C27.7654 31.7516 28.0076 31.9938 28.3064 31.9938H32.0066C32.3054 31.9938 32.5476 31.7516 32.5476 31.4528V25.0443C32.5476 24.7455 32.3054 24.5033 32.0066 24.5033H28.3064Z",fill:"white",fillOpacity:"0.8"}),T.createElement("rect",{x:"15.8997",y:"17.1992",width:"18.2",height:"5.2",rx:"1.12907",fill:"#BADAFF",fillOpacity:"0.8"}),T.createElement("rect",{width:"22",height:"10",rx:"4",transform:"matrix(-1 1.74846e-07 1.74846e-07 1 36.26 25.499)",fill:"url(#paint1_linear_2633_83)",fillOpacity:"0.32"})),T.createElement("defs",null,T.createElement("filter",{id:"filter0_d_2633_83",x:"9",y:"10.999",width:"32",height:"32.002",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},T.createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),T.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),T.createElement("feOffset",{dy:"2"}),T.createElement("feGaussianBlur",{stdDeviation:"1.5"}),T.createElement("feComposite",{in2:"hardAlpha",operator:"out"}),T.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.270588 0 0 0 0 0.607843 0 0 0 0 1 0 0 0 0.25 0"}),T.createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_2633_83"}),T.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_2633_83",result:"shape"})),T.createElement("linearGradient",{id:"paint0_linear_2633_83",x1:"25",y1:"11.999",x2:"25",y2:"38.001",gradientUnits:"userSpaceOnUse"},T.createElement("stop",{stopColor:"#459BFF",stopOpacity:"0.64"}),T.createElement("stop",{offset:"1",stopColor:"#459BFF"})),T.createElement("linearGradient",{id:"paint1_linear_2633_83",x1:"8.76001",y1:"1.69995",x2:"14.0525",y2:"10.5245",gradientUnits:"userSpaceOnUse"},T.createElement("stop",{stopColor:"white",stopOpacity:"0"}),T.createElement("stop",{offset:"1",stopColor:"white",stopOpacity:"0.6"}))))});const xi=an.Ay.div.withConfig({displayName:"styles__StyledSettingMainPanel",componentId:"sc-1b0bxt2-0"})(["width:100%;height:100%;padding:0 25px;display:flex;flex-direction:column;gap:24px;align-items:center;overflow:hidden;color:#19191A;.project-info{width:100%;margin-top:50px;display:flex;flex-direction:column;align-items:center;.project-icon{width:50px;height:50px;object-fit:cover;}.project-name{max-width:85%;margin-top:14px;font-family:HarmonyOS Sans SC;font-size:14px;line-height:100%;letter-spacing:0px;vertical-align:middle;text-transform:capitalize;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}.screen-number{margin-top:6px;font-family:HarmonyOS Sans SC;font-weight:400;font-style:Regular;font-size:12px;color:#A2A4A8;}}.item-container{display:flex;width:100%;flex-direction:row;.item{width:75px;display:flex;flex-direction:column;gap:6px;color:#414651;align-items:center;.item-label{font-family:HarmonyOS Sans SC;font-style:Regular;font-size:14px;line-height:20px;letter-spacing:0%;vertical-align:middle;}}}.toggle-link{width:100%;height:56px;display:flex;flex-direction:row;justify-content:space-between;align-items:center;font-size:14px;color:#19191A;};"]),Fi=rn=>{const{project:Ft,isHighlight:Sn,isHTMLZip:no,projectShare:wa,isDummyApk:za,onUpdateSetting:hr,onProjectPreviewReload:ar,onPreviewExit:mi,onUpdateProjectHighlight:Vi}=rn,bs=(0,T.useMemo)(()=>{const ei=[{label:"\u9875\u9762\u5217\u8868",icon:(0,Oe.jsx)(Fo,{size:54}),onClick:()=>{hr(wt)}},{label:"\u5237\u65B0",icon:(0,Oe.jsx)(Za,{size:54}),onClick:()=>{ar()}},{label:"\u5206\u4EAB",icon:(0,Oe.jsx)(Ue,{size:54}),onClick:()=>{hr(Ot)}},{label:"\u9000\u51FA\u9884\u89C8",icon:(0,Oe.jsx)(xa,{size:54}),onClick:()=>{mi()}}];return za?ei.slice(0,ei.length-1):ei},[hr,ar,mi,za]),Os=ei=>{Vi()},{name:ml,icon:Ki}=Ft,Bs=Ki?(no?".":"")+Ki:"/images/app_icon.svg",{canvas:ac,pages:qc}=Kt(wa),Sc=(window.innerWidth-50-75*bs.length)/(bs.length-1);return(0,Oe.jsxs)(xi,{children:[(0,Oe.jsxs)("div",{className:"project-info",children:[Ki?(0,Oe.jsx)("img",{src:Bs,className:"project-icon"}):(0,Oe.jsx)(Gi,{size:50}),(0,Oe.jsx)("div",{className:"project-name",children:ml}),(0,Oe.jsxs)("div",{className:"screen-number",children:[ac,"\u4E2A\u753B\u5E03 \xB7 ",qc,"\u4E2A\u9875\u9762"]})]}),(0,Oe.jsx)("div",{className:"item-container",style:{gap:Sc+"px"},children:bs.map(ei=>(0,Oe.jsxs)("div",{className:"item",onClick:ei.onClick,children:[ei.icon,(0,Oe.jsx)("div",{className:"item-label",children:ei.label})]},ei.label))}),(0,Oe.jsxs)("div",{className:"toggle-link",children:[(0,Oe.jsx)("div",{children:"\u663E\u793A\u94FE\u63A5"}),(0,Oe.jsx)("div",{className:"right-switch-container",children:(0,Oe.jsx)(Di,{checked:Sn,onChange:Os})})]})]})};var Ii=s(39e3);class Ks extends T.PureComponent{constructor(Ft){super(Ft),(0,N.A)(this,"justOpenedUntil",0),(0,N.A)(this,"justClosedUntil",0),(0,N.A)(this,"setElementRef",Sn=>this.$elem=Sn),(0,N.A)(this,"handleBackPreviewSetting",()=>{this.setState({currentMenuType:""})}),(0,N.A)(this,"handleClosePreviewSetting",()=>{this.setState({isOpen:!1,currentMenuType:""}),this.justClosedUntil=Date.now()+300,MB.messageBucket.send(vn.Q8.closePreviewSettingMenu)}),(0,N.A)(this,"handleUpdateProjectHighlight",()=>{const{isHighlight:Sn,dispatch:no}=this.props;no({type:"entry:preview-setting:update:is-highlight",payload:{isHighlight:!Sn}}),MB.messageBucket.send("setDisplayLinkOK",{isHighlight:!Sn})}),(0,N.A)(this,"handleProjectPreviewReload",()=>{MB.messageBucket.send("refreshPreview")}),(0,N.A)(this,"handlePreviewExit",()=>{MB.messageBucket.send("exitAppPreview")}),(0,N.A)(this,"handleUpdateSetting",Sn=>{this.setState({currentMenuType:Sn})}),(0,N.A)(this,"handleShowModal",()=>{MB.messageBucket.send("toggleOffline")}),(0,N.A)(this,"onClickOutside",Sn=>{let{target:no}=Sn;Date.now()<this.justOpenedUntil||this.$elem.contains(no)||this.handleClosePreviewSetting()}),this.state={isOpen:!1,currentMenuType:""}}async componentDidMount(){const Ft=this,Sn=document.querySelector("#workspace"),no=new(q()).Manager(Sn),wa=new(q()).Tap({event:"doubletap",pointers:2}),za=new(q()).Press({event:"press",pointers:2,time:500});no.add([wa,za]),no.on("doubletap",function(hr){Date.now()<Ft.justClosedUntil||(Ft.setState({isOpen:!0}),Ft.justOpenedUntil=Date.now()+300,MB.messageBucket.send(vn.Q8.openPreviewSettingMenu))}),no.on("press",function(hr){Date.now()<Ft.justClosedUntil||(Ft.setState({isOpen:!0}),Ft.justOpenedUntil=Date.now()+300,MB.messageBucket.send(vn.Q8.openPreviewSettingMenu))})}render(){const{project:Ft,isHTMLZip:Sn,isHighlight:no,isDummyApk:wa,isMultiLink:za,projectShare:hr}=this.props,{isOpen:ar,currentMenuType:mi}=this.state;let Vi=mi===Ot,bs=mi===wt,Os=mi==="";return(0,o.Md)()||(Vi=!1,Os=!1,bs=!0),(0,Oe.jsxs)(Oe.Fragment,{children:[ar&&(0,Oe.jsx)(gt,{className:"mask"}),(0,Oe.jsxs)(Wt,{className:B()({"is-open":ar}),ref:this.setElementRef,children:[!bs&&(0,Oe.jsx)("img",{src:"/mb-proto2/images/preview/mobile-setting-panel-bg.png",className:"panel-bg"}),Os&&(0,Oe.jsx)(Fi,{project:Ft,isHTMLZip:Sn,isHighlight:no,isDummyApk:wa,onUpdateSetting:this.handleUpdateSetting,onPreviewExit:this.handlePreviewExit,onProjectPreviewReload:this.handleProjectPreviewReload,onUpdateProjectHighlight:this.handleUpdateProjectHighlight,onShowModal:this.handleShowModal,projectShare:hr}),Vi&&(0,Oe.jsx)(Sa,{isMultiLink:za,project:Ft,onBack:this.handleBackPreviewSetting,projectShare:hr}),bs&&(0,Oe.jsx)(rt,{onBack:this.handleBackPreviewSetting,projectName:Ft.name,onExitPanel:this.handleClosePreviewSetting}),Os&&(0,Oe.jsx)(je,{className:"close-icon",size:24,onClick:this.handleClosePreviewSetting}),ar&&(0,Oe.jsx)(Ii.A,{target:document,onClick:(0,Ii.t)(this.onClickOutside,{capture:!0})})]})]})}}const Ul=(0,I.Mz)([J.PL,J.Re,J.bF,J.ts,J.UB],(rn,Ft,Sn,no,wa)=>{let{isHTMLZip:za,isMultiLink:hr}=Sn;return{project:rn,isHighlight:Ft,isHTMLZip:za,isDummyApk:no,isMultiLink:hr,projectShare:wa}}),ts=(0,r.Ng)(rn=>Ul(rn))(Ks)},78859:(Qn,qe,s)=>{"use strict";var r,I=s(72274).Zz;r=!0,qe.tY=function(){if(arguments.length!==0)return typeof arguments[0]=="object"?I:I.apply(null,arguments)},r=function(){return function(J){return J}}},78903:(Qn,qe,s)=>{"use strict";s.d(qe,{R:()=>w});var r=s(38502),I=s(18381),J=s(72606),N=s(46322),T=s(78257),te=s(67052),q=s(33680),ne=s(70933),B=s(94875),l=s(67787);const U=l.Ay.ul.withConfig({displayName:"styles__StyledAssetThumbnailList",componentId:"sc-199vaeo-0"})(["padding:0 4px 0px 12px;display:grid;gap:8px;grid-template-columns:repeat(auto-fill,109px);"]);var C=s(9501),M=s(72214);const w=(0,r.memo)(y=>{const j=(0,I.wA)(),Q=(0,I.d4)(Le=>(0,te.ld)(Le)),ze=(0,I.d4)(Le=>(0,te.p)(Le)),me=(0,I.d4)(ne.YY),{shouldAuth:Se,canEditLibrary:Me,canAddToOrg:De,currentUserId:tt,assetList:at=[],pictureList:ht=[],assetActions:Je,containerRect:$,canListItemGroup:mt}=y,yt=Le=>{if(!Le)return null;if(Le.includes("findPicture_")){if(!(Q!=null&&Q.length))return null;for(const He of Q)for(const ye of He.imgs)if("findPicture_"+ye[0]===Le)return(0,q.Kb)(He.tab,ye)}if(Le.includes("findSticker_")){if(!(ze!=null&&ze.length))return null;for(const He of ze)for(const ye of(He==null?void 0:He.list)||[])if("findSticker_"+(ye==null?void 0:ye.url)===Le)return(0,q.nA)(He==null?void 0:He.category,ye)}return null};return(0,M.jsxs)(U,{children:[at.map(Le=>(0,M.jsx)(J.O,{asset:Le,shouldAuth:Se,canEditLibrary:Me,canAddToOrg:De,assetActions:Je,containerRect:$,currentUserId:tt,canListItemGroup:mt,createTemplatesData:me,dispatch:j},Le.cid)),((Q==null?void 0:Q.length)||(ze==null?void 0:ze.length))&&ht.map(Le=>{const He=yt(Le);return He?(0,M.jsxs)("div",{children:[Le.includes("findPicture_")&&(0,M.jsx)(N.I,{isHistoryItem:!0,asset:He,popupsName:T.lS.History}),Le.includes("findSticker_")&&(0,M.jsx)(C.B,{asset:He,popupsName:T.lS.History}),(0,M.jsx)(B.f,{children:He.img_tag.join(" ")||He.name})]},Le):null})]})})},80226:(Qn,qe,s)=>{"use strict";s.d(qe,{D:()=>l});var r=s(38502),I=s(53732),J=s.n(I),N=s(17307),T=s(67787);const te=T.Ay.div.withConfig({displayName:"styles__StyledViewModeSwitch",componentId:"sc-m9643m-0"})(["display:flex;width:164px;height:36px;padding:2px;align-items:center;justify-content:center;flex-shrink:0;&:lang(en){width:212px;}&.compact{padding:4px;display:flex;position:absolute;top:16px;left:16px;width:64px;height:36px;padding:4px;background-color:",";color:",";z-index:106;pointer-events:auto;.switch-btn{width:28px;height:28px;padding:0;&.active{background-color:",";}.svg-icon{width:16px;height:16px;}}}&.small{width:120px;height:24px;.switch-btn{padding:1.5px 8px;font-size:12px;line-height:16px;.svg-icon{width:14px;height:14px;}}}&:not(.compact):not(.small){.switch-btn{border:1px solid transparent;&.active{border:1px solid ",";}}}border-radius:6px;background-color:",";color:",";.switch-btn{display:flex;padding:2px 10px;justify-content:center;align-items:center;gap:4px;flex:1 0 0;align-self:stretch;color:",";font-size:14px;cursor:pointer;.svg-icon{display:flex;width:16px;height:16px;padding:1px;justify-content:center;align-items:center;gap:10px;color:",";&.device{padding:1px 3px;> *{fill:transparent;stroke:",";}}}&.active{background-color:",";color:",";font-weight:500;border-radius:6px;.svg-icon{color:",";&.device > *{fill:transparent;stroke:",";}}}}"],U=>U.theme.color_bg_white,U=>U.theme.color_text_L3,U=>U.theme.color_btn_secondary_hover,U=>U.theme.color_bg_border_02,U=>U.theme.color_btn_secondary_hover,U=>U.theme.color_text_L3,U=>U.theme.color_text_L3,U=>U.theme.color_text_L3,U=>U.theme.color_text_L3,U=>U.theme.color_bg_white,U=>U.theme.color_text_L1,U=>U.theme.color_text_L1,U=>U.theme.color_text_L1),q=T.Ay.div.withConfig({displayName:"styles__StyledPreviewViewModeSwitch",componentId:"sc-m9643m-1"})(["display:flex;width:144px;height:36px;align-items:center;justify-content:space-between;flex-shrink:0;.preview-switch-btn{font-size:13px;font-weight:500;line-height:16px;color:",";width:32px;line-height:36px;text-align:center;height:100%;position:relative;cursor:pointer;&::after{content:'';display:inline-block;position:absolute;bottom:2px;left:3px;width:calc(100% - 6px);height:2px;opacity:0;}&:hover:not(.active){&::after{opacity:1;background-color:",";}}&.active{color:",";&::after{opacity:1;background-color:",";}}}"],U=>U.theme.color_text_L1,U=>U.theme.color_slider_normal,U=>U.theme.color_text_link_normal,U=>U.theme.color_text_link_normal);var ne=s(72214);const B=U=>{let{mode:C,size:M,handleModeSwitch:w}=U;return(0,ne.jsxs)(te,{className:M,children:[(0,ne.jsxs)("div",{className:J()("switch-btn",{active:C==="read_only"}),onClick:()=>w("read_only"),children:[(0,ne.jsx)(N.C,{name:"common/mode/read_only"}),M!=="compact"&&I18N.ToolBar.overview]}),(0,ne.jsxs)("div",{className:J()("switch-btn",{active:C==="device"}),onClick:()=>w("device"),children:[(0,ne.jsx)(N.C,{name:"common/mode/device",className:"device"}),M!=="compact"&&I18N.ToolBar.preview]})]})},l=(0,r.memo)(U=>{let{mode:C,size:M,isShowInspect:w,onSwitch:y}=U;const j=Q=>{switch(y&&y(Q),Q){case"read_only":MB.switchToReadOnly();break;case"device":MB.switchToPreview();break;case"inspect":MB.switchToInspect();break;default:break}};return w?(0,ne.jsxs)(q,{children:[(0,ne.jsx)("div",{className:J()("preview-switch-btn",{active:C==="read_only"}),onClick:()=>j("read_only"),children:I18N.ToolBar.overview}),(0,ne.jsx)("div",{className:J()("preview-switch-btn",{active:C==="device"}),onClick:()=>j("device"),children:I18N.ToolBar.preview}),(0,ne.jsx)("div",{className:J()("preview-switch-btn",{active:C==="inspect"}),onClick:()=>j("inspect"),children:I18N.ToolBar.inspect})]}):(0,ne.jsx)(B,{mode:C,size:M,handleModeSwitch:j})})},80595:(Qn,qe,s)=>{"use strict";Object.defineProperty(qe,"__esModule",{value:!0});var r=Object.assign||function(yt){for(var Le=1;Le<arguments.length;Le++){var He=arguments[Le];for(var ye in He)Object.prototype.hasOwnProperty.call(He,ye)&&(yt[ye]=He[ye])}return yt},I=function(){function yt(Le,He){for(var ye=0;ye<He.length;ye++){var je=He[ye];je.enumerable=je.enumerable||!1,je.configurable=!0,"value"in je&&(je.writable=!0),Object.defineProperty(Le,je.key,je)}}return function(Le,He,ye){return He&&yt(Le.prototype,He),ye&&yt(Le,ye),Le}}(),J=s(38502),N=Se(J),T=s(25582),te=Se(T),q=s(34835),ne=Se(q),B=s(27276),l=Se(B),U=s(27122),C=Se(U),M=s(76914),w=Se(M),y=s(65251),j=Se(y),Q=s(52171),ze=Se(Q),me=s(83466);function Se(yt){return yt&&yt.__esModule?yt:{default:yt}}function Me(yt,Le){var He={};for(var ye in yt)Le.indexOf(ye)>=0||Object.prototype.hasOwnProperty.call(yt,ye)&&(He[ye]=yt[ye]);return He}function De(yt,Le){if(!(yt instanceof Le))throw new TypeError("Cannot call a class as a function")}function tt(yt,Le){if(!yt)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Le&&(typeof Le=="object"||typeof Le=="function")?Le:yt}function at(yt,Le){if(typeof Le!="function"&&Le!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof Le);yt.prototype=Object.create(Le&&Le.prototype,{constructor:{value:yt,enumerable:!1,writable:!0,configurable:!0}}),Le&&(Object.setPrototypeOf?Object.setPrototypeOf(yt,Le):yt.__proto__=Le)}var ht=function(Le){return Object.keys(Le).length===0},Je=function(Le,He){for(var ye=[],je=He-Le>0,ot=Le;je?ot<=He:ot>=He;je?ot++:ot--)je?ye.push(ot):ye.unshift(ot);return ye},$=function(Le){return Le.split(/\r\n|\n|\r/).map(function(He){return He.split(" ")})},mt=function(yt){at(Le,yt);function Le(He){De(this,Le);var ye=tt(this,(Le.__proto__||Object.getPrototypeOf(Le)).call(this,He));return ye.onMouseDown=ye.onMouseDown.bind(ye),ye.onMouseUp=ye.onMouseUp.bind(ye),ye.onMouseOver=ye.onMouseOver.bind(ye),ye.onDoubleClick=ye.onDoubleClick.bind(ye),ye.onContextMenu=ye.onContextMenu.bind(ye),ye.handleNavigate=ye.handleNavigate.bind(ye),ye.handleKey=ye.handleKey.bind(ye).bind(ye),ye.handleCut=ye.handleCut.bind(ye),ye.handleCopy=ye.handleCopy.bind(ye),ye.handlePaste=ye.handlePaste.bind(ye),ye.pageClick=ye.pageClick.bind(ye),ye.onChange=ye.onChange.bind(ye),ye.onRevert=ye.onRevert.bind(ye),ye.isSelected=ye.isSelected.bind(ye),ye.isEditing=ye.isEditing.bind(ye),ye.isClearing=ye.isClearing.bind(ye),ye.handleComponentKey=ye.handleComponentKey.bind(ye),ye.handleKeyboardCellMovement=ye.handleKeyboardCellMovement.bind(ye),ye.defaultState={start:{},end:{},selecting:!1,forceEdit:!1,editing:{},clear:{}},ye.state=ye.defaultState,ye.removeAllListeners=ye.removeAllListeners.bind(ye),ye.handleIEClipboardEvents=ye.handleIEClipboardEvents.bind(ye),ye}return I(Le,[{key:"removeAllListeners",value:function(){document.removeEventListener("mousedown",this.pageClick),document.removeEventListener("mouseup",this.onMouseUp),document.removeEventListener("cut",this.handleCut),document.removeEventListener("copy",this.handleCopy),document.removeEventListener("paste",this.handlePaste),document.removeEventListener("keydown",this.handleIEClipboardEvents)}},{key:"componentDidMount",value:function(){this.dgDom&&this.dgDom.addEventListener("keydown",this.handleComponentKey)}},{key:"componentWillUnmount",value:function(){this.dgDom&&this.dgDom.removeEventListener("keydown",this.handleComponentKey),this.removeAllListeners()}},{key:"isSelectionControlled",value:function(){return"selected"in this.props}},{key:"getState",value:function(){var ye=this.state;if(this.isSelectionControlled()){var je=this.props.selected||{},ot=je.start,we=je.end;ot=ot||this.defaultState.start,we=we||this.defaultState.end,ye=r({},ye,{start:ot,end:we})}return ye}},{key:"_setState",value:function(ye){var je=this.props.editModeChanged;if(je&&ye.editing){var ot=!ht(this.state.editing),we=!ht(ye.editing);ot!=we&&je(we)}if(this.isSelectionControlled()&&("start"in ye||"end"in ye)){var $e=ye.start,ge=ye.end,Ze=Me(ye,["start","end"]),W=this.props,an=W.selected,_t=W.onSelect;an=an||{},$e||($e="start"in an?an.start:this.defaultState.start),ge||(ge="end"in an?an.end:this.defaultState.end),_t&&_t({start:$e,end:ge}),this.setState(Ze)}else this.setState(ye)}},{key:"pageClick",value:function(ye){if(!this.props.disablePageClick){var je=this.dgDom;je.contains(ye.target)||(this.setState(this.defaultState),this.removeAllListeners())}}},{key:"handleCut",value:function(ye){if(ht(this.state.editing)){ye.preventDefault(),this.handleCopy(ye);var je=this.getState(),ot=je.start,we=je.end;this.clearSelectedCells(ot,we)}}},{key:"handleIEClipboardEvents",value:function(ye){ye.ctrlKey&&(ye.keyCode===67?this.handleCopy(ye):ye.keyCode===88?this.handleCut(ye):(ye.keyCode===86||ye.which===86)&&this.handlePaste(ye))}},{key:"handleCopy",value:function(ye){if(ht(this.state.editing)){ye.preventDefault();var je=this.props,ot=je.dataRenderer,we=je.valueRenderer,$e=je.data,ge=this.getState(),Ze=ge.start,W=ge.end;if(this.props.handleCopy)this.props.handleCopy({event:ye,dataRenderer:ot,valueRenderer:we,data:$e,start:Ze,end:W,range:Je});else{var an=Je(Ze.i,W.i).map(function(_t){return Je(Ze.j,W.j).map(function(nn){var Oe=$e[_t][nn],sn=ot?ot(Oe,_t,nn):null;return sn===""||sn===null||typeof sn>"u"?we(Oe,_t,nn):sn}).join(" ")}).join("\n");window.clipboardData&&window.clipboardData.setData?window.clipboardData.setData("Text",an):ye.clipboardData.setData("text/plain",an)}}}},{key:"handlePaste",value:function(ye){if(ht(this.state.editing)){var je=this.getState(),ot=je.start,we=je.end;ot={i:Math.min(ot.i,we.i),j:Math.min(ot.j,we.j)},we={i:Math.max(ot.i,we.i),j:Math.max(ot.j,we.j)};var $e=this.props.parsePaste||$,ge=[],Ze=[];window.clipboardData&&window.clipboardData.getData?Ze=$e(window.clipboardData.getData("Text")):ye.clipboardData&&ye.clipboardData.getData&&(Ze=$e(ye.clipboardData.getData("text/plain")));var W=this.props,an=W.data,_t=W.onCellsChanged,nn=W.onPaste,Oe=W.onChange;if(_t){var sn=[];Ze.forEach(function(It,Pt){It.forEach(function(dt,Vn){we={i:ot.i+Pt,j:ot.j+Vn};var o=an[we.i]&&an[we.i][we.j];o?o.readOnly||ge.push({cell:o,row:we.i,col:we.j,value:dt}):sn.push({row:we.i,col:we.j,value:dt})})}),sn.length?_t(ge,sn):_t(ge)}else nn?(Ze.forEach(function(It,Pt){var dt=[];It.forEach(function(Vn,o){we={i:ot.i+Pt,j:ot.j+o};var Gn=an[we.i]&&an[we.i][we.j];dt.push({cell:Gn,data:Vn})}),ge.push(dt)}),nn(ge)):Oe&&Ze.forEach(function(It,Pt){It.forEach(function(dt,Vn){we={i:ot.i+Pt,j:ot.j+Vn};var o=an[we.i]&&an[we.i][we.j];o&&!o.readOnly&&Oe(o,we.i,we.j,dt)})});this._setState({end:we})}}},{key:"handleKeyboardCellMovement",value:function(ye){var je=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ot=this.getState(),we=ot.start,$e=ot.editing,ge=this.props.data,Ze=$e&&!ht($e),W=ge[we.i]&&ge[we.i][we.j];if(Ze&&!je)return!1;var an=W&&W.component,_t=ye.which||ye.keyCode;if(an&&Ze){ye.preventDefault();return}_t===me.TAB_KEY?this.handleNavigate(ye,{i:0,j:ye.shiftKey?-1:1},!0):_t===me.RIGHT_KEY?this.handleNavigate(ye,{i:0,j:1}):_t===me.LEFT_KEY?this.handleNavigate(ye,{i:0,j:-1}):_t===me.UP_KEY?this.handleNavigate(ye,{i:-1,j:0}):_t===me.DOWN_KEY?this.handleNavigate(ye,{i:1,j:0}):je&&_t===me.ENTER_KEY&&this.handleNavigate(ye,{i:ye.shiftKey?-1:1,j:0})}},{key:"handleKey",value:function(ye){if(!(ye.isPropagationStopped&&ye.isPropagationStopped())){var je=ye.which||ye.keyCode,ot=this.getState(),we=ot.start,$e=ot.end,ge=ot.editing,Ze=ge&&!ht(ge),W=!we||ht(we),an=ye.ctrlKey||ye.metaKey,_t=je===me.DELETE_KEY||je===me.BACKSPACE_KEY,nn=je===me.ENTER_KEY,Oe=je>=48&&je<=57,sn=je>=65&&je<=90,It=je>=160&&je<=255,Pt=je>=96&&je<=105,dt=!W&&this.props.data[we.i][we.j],Vn=[187,189,190,107,109,110].indexOf(je)>-1;if(W||an)return!0;Ze||(this.handleKeyboardCellMovement(ye),_t?(ye.preventDefault(),this.clearSelectedCells(we,$e)):dt&&!dt.readOnly&&(nn?(this._setState({editing:we,clear:{},forceEdit:!0}),ye.preventDefault()):(Oe||Pt||sn||It||Vn)&&this._setState({editing:we,clear:we,forceEdit:!1})))}}},{key:"getSelectedCells",value:function(ye,je,ot){var we=[];return Je(je.i,ot.i).map(function($e){Je(je.j,ot.j).map(function(ge){ye[$e]&&ye[$e][ge]&&we.push({cell:ye[$e][ge],row:$e,col:ge})})}),we}},{key:"clearSelectedCells",value:function(ye,je){var ot=this,we=this.props,$e=we.data,ge=we.onCellsChanged,Ze=we.onChange,W=this.getSelectedCells($e,ye,je).filter(function(an){return!an.cell.readOnly}).map(function(an){return r({},an,{value:""})});ge?(ge(W),this.onRevert()):Ze&&setTimeout(function(){W.forEach(function(an){var _t=an.cell,nn=an.row,Oe=an.col,sn=an.value;Ze(_t,nn,Oe,sn)}),ot.onRevert()},0)}},{key:"updateLocationSingleCell",value:function(ye){this._setState({start:ye,end:ye,editing:{}})}},{key:"updateLocationMultipleCells",value:function(ye){var je=this.getState(),ot=je.start,we=je.end,$e=this.props.data,ge={i:ot.i,j:ot.j},Ze={i:we.i+ye.i,j:Math.min($e[0].length-1,Math.max(0,we.j+ye.j))};this._setState({start:ge,end:Ze,editing:{}})}},{key:"searchForNextSelectablePos",value:function(ye,je,ot,we,$e){for(var ge=function(Oe){return{i:Oe.i-1,j:je[0].length-1}},Ze=function(Oe){return{i:Oe.i+1,j:0}},W=function(Oe){return{i:Oe.i+we.i,j:Oe.j+we.j}},an=function(Oe){var sn=Oe.i,It=Oe.j;return je[sn]&&typeof je[sn][It]<"u"},_t=W(ot);an(_t)&&!ye(je[_t.i][_t.j],_t.i,_t.j);)_t=W(_t);if(!an(_t)){if(!$e)return null;we.j<0?_t=ge(_t):_t=Ze(_t)}return an(_t)&&!ye(je[_t.i][_t.j],_t.i,_t.j)?this.searchForNextSelectablePos(ye,je,_t,we,$e):an(_t)?_t:null}},{key:"handleNavigate",value:function(ye,je,ot){if(je&&(je.i||je.j)){var we=this.props.data,$e=this.getState(),ge=$e.start,Ze=ye.shiftKey&&!ot,W=this.props.isCellNavigable?this.props.isCellNavigable:function(){return!0};if(Ze)this.updateLocationMultipleCells(je);else{var an=this.searchForNextSelectablePos(W,we,ge,je,ot);an&&this.updateLocationSingleCell(an)}ye.preventDefault()}}},{key:"handleComponentKey",value:function(ye){var je=this,ot=ye.which||ye.keyCode;if([me.ENTER_KEY,me.ESCAPE_KEY,me.TAB_KEY].includes(ot)){var we=this.state.editing,$e=this.props.data,ge=!ht(we);if(ge){var Ze=$e[we.i][we.j],W=ye.shiftKey?-1:1;if(Ze&&Ze.component&&!Ze.forceComponent){ye.preventDefault();var an=this.onRevert;ot===me.ENTER_KEY?an=function(){return je.handleNavigate(ye,{i:W,j:0})}:ot===me.TAB_KEY&&(an=function(){return je.handleNavigate(ye,{i:0,j:W},!0)}),setTimeout(function(){an(),je.dgDom&&je.dgDom.focus({preventScroll:!0})},1)}}}}},{key:"onContextMenu",value:function(ye,je,ot){var we=this.props.data[je][ot];this.props.onContextMenu&&this.props.onContextMenu(ye,we,je,ot)}},{key:"onDoubleClick",value:function(ye,je){var ot=this.props.data[ye][je];ot.readOnly||this._setState({editing:{i:ye,j:je},forceEdit:!0,clear:{}})}},{key:"onMouseDown",value:function(ye,je,ot){var we=!ht(this.state.editing)&&this.state.editing.i===ye&&this.state.editing.j===je,$e=ht(this.state.editing)||this.state.editing.i!==ye||this.state.editing.j!==je?{}:this.state.editing;this._setState({selecting:!we,start:ot.shiftKey?this.getState().start:{i:ye,j:je},end:{i:ye,j:je},editing:$e,forceEdit:!!we});var ge=window.navigator.userAgent,Ze=/MSIE|Trident/.test(ge);Ze&&document.addEventListener("keydown",this.handleIEClipboardEvents),document.addEventListener("mouseup",this.onMouseUp),document.addEventListener("mousedown",this.pageClick),document.addEventListener("cut",this.handleCut),document.addEventListener("copy",this.handleCopy),document.addEventListener("paste",this.handlePaste)}},{key:"onMouseOver",value:function(ye,je){this.state.selecting&&ht(this.state.editing)&&this._setState({end:{i:ye,j:je}})}},{key:"onMouseUp",value:function(){this._setState({selecting:!1}),document.removeEventListener("mouseup",this.onMouseUp)}},{key:"onChange",value:function(ye,je,ot){var we=this.props,$e=we.onChange,ge=we.onCellsChanged,Ze=we.data;ge?ge([{cell:Ze[ye][je],row:ye,col:je,value:ot}]):$e&&$e(Ze[ye][je],ye,je,ot),this.onRevert()}},{key:"onRevert",value:function(){var ye=this;this._setState({editing:{}}),setTimeout(function(){ye.dgDom&&ye.dgDom.focus({preventScroll:!0})},1)}},{key:"componentDidUpdate",value:function(ye,je){var ot=this.state,we=ot.start,$e=ot.end,ge=je.end;!ht($e)&&!($e.i===ge.i&&$e.j===ge.j)&&!this.isSelectionControlled()&&this.props.onSelect&&this.props.onSelect({start:we,end:$e})}},{key:"isSelectedRow",value:function(ye){var je=this.getState(),ot=je.start,we=je.end,$e=ot.i,ge=we.i;return $e<=ge?ye>=$e&&ye<=ge:ye<=$e&&ye>=ge}},{key:"isSelected",value:function(ye,je){var ot=this.getState(),we=ot.start,$e=ot.end,ge=je>=we.j&&je<=$e.j,Ze=je<=we.j&&je>=$e.j,W=ye>=we.i&&ye<=$e.i,an=ye<=we.i&&ye>=$e.i;return ge&&W||Ze&&W||Ze&&an||ge&&an}},{key:"isEditing",value:function(ye,je){return this.state.editing.i===ye&&this.state.editing.j===je}},{key:"isClearing",value:function(ye,je){return this.state.clear.i===ye&&this.state.clear.j===je}},{key:"render",value:function(){var ye=this,je=this.props,ot=je.sheetRenderer,we=je.rowRenderer,$e=je.cellRenderer,ge=je.dataRenderer,Ze=je.valueRenderer,W=je.dataEditor,an=je.valueViewer,_t=je.attributesRenderer,nn=je.className,Oe=je.overflow,sn=je.data,It=je.keyFn,Pt=this.state.forceEdit;return N.default.createElement("span",{ref:function(Vn){ye.dgDom=Vn},tabIndex:"0",className:"data-grid-container",onKeyDown:this.handleKey},N.default.createElement(ot,{data:sn,className:["data-grid",nn,Oe].filter(function(dt){return dt}).join(" ")},sn.map(function(dt,Vn){return N.default.createElement(we,{key:It?It(Vn):Vn,row:Vn,cells:dt,selected:ye.isSelectedRow(Vn)},dt.map(function(o,Gn){var xt=ye.isEditing(Vn,Gn);return N.default.createElement(w.default,r({key:o.key?o.key:Vn+"-"+Gn,row:Vn,col:Gn,cell:o,forceEdit:!1,onMouseDown:ye.onMouseDown,onMouseOver:ye.onMouseOver,onDoubleClick:ye.onDoubleClick,onContextMenu:ye.onContextMenu,onChange:ye.onChange,onRevert:ye.onRevert,onNavigate:ye.handleKeyboardCellMovement,onKey:ye.handleKey,selected:ye.isSelected(Vn,Gn),editing:xt,clearing:ye.isClearing(Vn,Gn),attributesRenderer:_t,cellRenderer:$e,valueRenderer:Ze,dataRenderer:ge,valueViewer:an,dataEditor:W},xt?{forceEdit:Pt}:{}))}))})))}}]),Le}(J.PureComponent);qe.default=mt,mt.propTypes={data:te.default.array.isRequired,className:te.default.string,disablePageClick:te.default.bool,overflow:te.default.oneOf(["wrap","nowrap","clip"]),onChange:te.default.func,onCellsChanged:te.default.func,onContextMenu:te.default.func,onSelect:te.default.func,isCellNavigable:te.default.func,selected:te.default.shape({start:te.default.shape({i:te.default.number,j:te.default.number}),end:te.default.shape({i:te.default.number,j:te.default.number})}),valueRenderer:te.default.func.isRequired,dataRenderer:te.default.func,sheetRenderer:te.default.func.isRequired,rowRenderer:te.default.func.isRequired,cellRenderer:te.default.func.isRequired,valueViewer:te.default.func,dataEditor:te.default.func,parsePaste:te.default.func,attributesRenderer:te.default.func,keyFn:te.default.func,handleCopy:te.default.func,editModeChanged:te.default.func},mt.defaultProps={sheetRenderer:ne.default,rowRenderer:l.default,cellRenderer:C.default,valueViewer:ze.default,dataEditor:j.default}},80777:(Qn,qe,s)=>{var r=s(71602),I=s(48236),J=s(51071),N=s(52255),T=I(function(te){return J(r(te,1,N,!0))});Qn.exports=T},80783:(Qn,qe,s)=>{"use strict";s.d(qe,{L:()=>I,R:()=>J});var r=s(67787);const I=r.Ay.div.withConfig({displayName:"style__StyledPlatformSubFilter",componentId:"sc-i9rqvv-0"})(["label{width:100%;height:100%;display:flex;padding:0 4px 0 6px;border-radius:6px;.display-name{max-width:80px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;text-align:left;color:",";font-size:12px;}button{display:flex;align-items:center;.Tooltip{display:flex;align-items:center;}.arrow-icon{transition:0.3s ease-out;transform:rotate(0);&.is-expand{transform:rotate(180deg);}path{stroke:",";}}}&:hover,&.is-open{background:",";}}.svg-icon{width:8px;height:8px;margin-right:7px;}"],N=>N.theme.color_text_L1,N=>N.theme.color_text_L1,N=>N.theme.color_btn_secondary_hover),J=(0,r.DU)(["#IBOT_DROPDOWN_MENU_ROOT{.DesignDropdownMenuBase{.DesignDropdownMenu{&.platform-sub-filter-menu{width:100%;overflow-y:overlay;border-radius:9px;box-shadow:",";border:1px solid ",";margin-top:0;&.is-downward{top:0;right:0;left:0;bottom:initial;}&.x-center.is-open{transition:unset;transform:unset;}.content{padding:0;background:",";color:",";width:100%;}ul{width:100%;list-style:none;font-size:12px;padding:8px;li{border-radius:4px;height:28px;padding:0 16px 0 32px;cursor:pointer;display:flex;align-items:center;justify-content:space-between;position:relative;span{color:",";overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%;}.checked{width:16px;height:16px;position:absolute;left:8px;}svg:not(.checked){margin-right:8px;}&:hover{background:",";}}.line{background:",";width:100%;height:1px;margin:4px 0;opacity:0.1;}}}&.official-platform-type-menu{ul{li{padding:0 0 0 28px;svg{path{fill:",";}&.mp-applet{path{stroke:",";fill:none;}}}}}}&.modal-template-drop-menu{max-height:360px;}&.page-detail-dropdown-menu{max-height:300px;}}}}"],N=>N.theme.shadow_m,N=>N.theme.color_bg_border_01,N=>N.theme.color_bg_white,N=>N.theme.color_text_L1,N=>N.theme.color_text_L1,N=>N.theme.color_btn_secondary_hover,N=>N.theme.color_bg_border_01,N=>N.theme.color_text_L1,N=>N.theme.color_text_L1)},81646:(Qn,qe,s)=>{"use strict";s.d(qe,{K:()=>r});class r{constructor(J){this.user=J}getIsMktMemberBeforeOrgMtVip(){const{flags:J}=this.user;return!!(J&128)}getIsMdMember(){const{member:J}=this.user||{};return J}getIsMktMember(){const{mt_next_billing_on:J}=this.user||{};return+new Date(J)-+new Date>1e3*60*60*24}getIsSoloMdMember(){const{next_billing_on:J}=this.user||{};return+new Date(J)-+new Date>1e3*60*60*24}getIsBeforeMdMember(){const{mt_vip_old:J}=this.user||{};return this.getIsMdMember()&&J}getIsNewMdMember(){const{mt_vip_old:J}=this.user||{};return this.getIsMdMember()&&!J}getFreeUsePaidProjectMtCount(){const{usePaidProtoProjectMktInfo:J}=this.user||{},{downloadeds:N}=J||{};return N}getLeftFreeUsePaidProjectMtCount(){const{usePaidProtoProjectMktInfo:J}=this.user||{},{left_downloads:N}=J||{};return N}getUsesPaidProjectMtCidsThisMonth(){const{usePaidProtoProjectMktInfo:J}=this.user||{},{user_uses_vip_mt_cids_this_month:N=[]}=J||{};return N}}},81764:(Qn,qe,s)=>{"use strict";s.d(qe,{Ay:()=>$e,MG:()=>we});var r=s(61972),I=s(55095),J=s(91112),N=s(58196),T=s(48150),te=s(35125);const q=ge=>({borderColor:ge.hoverBorderColor,backgroundColor:ge.hoverBg}),ne=ge=>({color:ge.colorTextDisabled,backgroundColor:ge.colorBgContainerDisabled,borderColor:ge.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled], textarea[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":Object.assign({},q((0,T.oX)(ge,{hoverBorderColor:ge.colorBorder,hoverBg:ge.colorBgContainerDisabled})))}),B=(ge,Ze)=>({background:ge.colorBgContainer,borderWidth:ge.lineWidth,borderStyle:ge.lineType,borderColor:Ze.borderColor,"&:hover":{borderColor:Ze.hoverBorderColor,backgroundColor:ge.hoverBg},"&:focus, &:focus-within":{borderColor:Ze.activeBorderColor,boxShadow:Ze.activeShadow,outline:0,backgroundColor:ge.activeBg}}),l=(ge,Ze)=>({["&"+ge.componentCls+"-status-"+Ze.status+":not("+ge.componentCls+"-disabled)"]:Object.assign(Object.assign({},B(ge,Ze)),{[ge.componentCls+"-prefix, "+ge.componentCls+"-suffix"]:{color:Ze.affixColor}}),["&"+ge.componentCls+"-status-"+Ze.status+ge.componentCls+"-disabled"]:{borderColor:Ze.borderColor}}),U=(ge,Ze)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},B(ge,{borderColor:ge.colorBorder,hoverBorderColor:ge.hoverBorderColor,activeBorderColor:ge.activeBorderColor,activeShadow:ge.activeShadow})),{["&"+ge.componentCls+"-disabled, &[disabled]"]:Object.assign({},ne(ge))}),l(ge,{status:"error",borderColor:ge.colorError,hoverBorderColor:ge.colorErrorBorderHover,activeBorderColor:ge.colorError,activeShadow:ge.errorActiveShadow,affixColor:ge.colorError})),l(ge,{status:"warning",borderColor:ge.colorWarning,hoverBorderColor:ge.colorWarningBorderHover,activeBorderColor:ge.colorWarning,activeShadow:ge.warningActiveShadow,affixColor:ge.colorWarning})),Ze)}),C=(ge,Ze)=>({["&"+ge.componentCls+"-group-wrapper-status-"+Ze.status]:{[ge.componentCls+"-group-addon"]:{borderColor:Ze.addonBorderColor,color:Ze.addonColor}}}),M=ge=>({"&-outlined":Object.assign(Object.assign(Object.assign({[ge.componentCls+"-group"]:{"&-addon":{background:ge.addonBg,border:(0,r.zA)(ge.lineWidth)+" "+ge.lineType+" "+ge.colorBorder},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},C(ge,{status:"error",addonBorderColor:ge.colorError,addonColor:ge.colorErrorText})),C(ge,{status:"warning",addonBorderColor:ge.colorWarning,addonColor:ge.colorWarningText})),{["&"+ge.componentCls+"-group-wrapper-disabled"]:{[ge.componentCls+"-group-addon"]:Object.assign({},ne(ge))}})}),w=(ge,Ze)=>{const{componentCls:W}=ge;return{"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},["&"+W+"-disabled, &[disabled]"]:{color:ge.colorTextDisabled,cursor:"not-allowed"},["&"+W+"-status-error"]:{"&, & input, & textarea":{color:ge.colorError}},["&"+W+"-status-warning"]:{"&, & input, & textarea":{color:ge.colorWarning}}},Ze)}},y=(ge,Ze)=>{var W;return{background:Ze.bg,borderWidth:ge.lineWidth,borderStyle:ge.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:(W=Ze==null?void 0:Ze.inputColor)!==null&&W!==void 0?W:"unset"},"&:hover":{background:Ze.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:Ze.activeBorderColor,backgroundColor:ge.activeBg}}},j=(ge,Ze)=>({["&"+ge.componentCls+"-status-"+Ze.status+":not("+ge.componentCls+"-disabled)"]:Object.assign(Object.assign({},y(ge,Ze)),{[ge.componentCls+"-prefix, "+ge.componentCls+"-suffix"]:{color:Ze.affixColor}})}),Q=(ge,Ze)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},y(ge,{bg:ge.colorFillTertiary,hoverBg:ge.colorFillSecondary,activeBorderColor:ge.activeBorderColor})),{["&"+ge.componentCls+"-disabled, &[disabled]"]:Object.assign({},ne(ge))}),j(ge,{status:"error",bg:ge.colorErrorBg,hoverBg:ge.colorErrorBgHover,activeBorderColor:ge.colorError,inputColor:ge.colorErrorText,affixColor:ge.colorError})),j(ge,{status:"warning",bg:ge.colorWarningBg,hoverBg:ge.colorWarningBgHover,activeBorderColor:ge.colorWarning,inputColor:ge.colorWarningText,affixColor:ge.colorWarning})),Ze)}),ze=(ge,Ze)=>({["&"+ge.componentCls+"-group-wrapper-status-"+Ze.status]:{[ge.componentCls+"-group-addon"]:{background:Ze.addonBg,color:Ze.addonColor}}}),me=ge=>({"&-filled":Object.assign(Object.assign(Object.assign({[ge.componentCls+"-group-addon"]:{background:ge.colorFillTertiary,"&:last-child":{position:"static"}}},ze(ge,{status:"error",addonBg:ge.colorErrorBg,addonColor:ge.colorErrorText})),ze(ge,{status:"warning",addonBg:ge.colorWarningBg,addonColor:ge.colorWarningText})),{["&"+ge.componentCls+"-group-wrapper-disabled"]:{[ge.componentCls+"-group"]:{"&-addon":{background:ge.colorFillTertiary,color:ge.colorTextDisabled},"&-addon:first-child":{borderInlineStart:(0,r.zA)(ge.lineWidth)+" "+ge.lineType+" "+ge.colorBorder,borderTop:(0,r.zA)(ge.lineWidth)+" "+ge.lineType+" "+ge.colorBorder,borderBottom:(0,r.zA)(ge.lineWidth)+" "+ge.lineType+" "+ge.colorBorder},"&-addon:last-child":{borderInlineEnd:(0,r.zA)(ge.lineWidth)+" "+ge.lineType+" "+ge.colorBorder,borderTop:(0,r.zA)(ge.lineWidth)+" "+ge.lineType+" "+ge.colorBorder,borderBottom:(0,r.zA)(ge.lineWidth)+" "+ge.lineType+" "+ge.colorBorder}}}})}),Se=(ge,Ze)=>({background:ge.colorBgContainer,borderWidth:(0,r.zA)(ge.lineWidth)+" 0",borderStyle:ge.lineType+" none",borderColor:"transparent transparent "+Ze.borderColor+" transparent",borderRadius:0,"&:hover":{borderColor:"transparent transparent "+Ze.borderColor+" transparent",backgroundColor:ge.hoverBg},"&:focus, &:focus-within":{borderColor:"transparent transparent "+Ze.borderColor+" transparent",outline:0,backgroundColor:ge.activeBg}}),Me=(ge,Ze)=>({["&"+ge.componentCls+"-status-"+Ze.status+":not("+ge.componentCls+"-disabled)"]:Object.assign(Object.assign({},Se(ge,Ze)),{[ge.componentCls+"-prefix, "+ge.componentCls+"-suffix"]:{color:Ze.affixColor}}),["&"+ge.componentCls+"-status-"+Ze.status+ge.componentCls+"-disabled"]:{borderColor:"transparent transparent "+Ze.borderColor+" transparent"}}),De=(ge,Ze)=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Se(ge,{borderColor:ge.colorBorder,hoverBorderColor:ge.hoverBorderColor,activeBorderColor:ge.activeBorderColor,activeShadow:ge.activeShadow})),{["&"+ge.componentCls+"-disabled, &[disabled]"]:{color:ge.colorTextDisabled,boxShadow:"none",cursor:"not-allowed","&:hover":{borderColor:"transparent transparent "+ge.colorBorder+" transparent"}},"input[disabled], textarea[disabled]":{cursor:"not-allowed"}}),Me(ge,{status:"error",borderColor:ge.colorError,hoverBorderColor:ge.colorErrorBorderHover,activeBorderColor:ge.colorError,activeShadow:ge.errorActiveShadow,affixColor:ge.colorError})),Me(ge,{status:"warning",borderColor:ge.colorWarning,hoverBorderColor:ge.colorWarningBorderHover,activeBorderColor:ge.colorWarning,activeShadow:ge.warningActiveShadow,affixColor:ge.colorWarning})),Ze)}),tt=ge=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:ge,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),at=ge=>({borderColor:ge.activeBorderColor,boxShadow:ge.activeShadow,outline:0,backgroundColor:ge.activeBg}),ht=ge=>{const{paddingBlockLG:Ze,lineHeightLG:W,borderRadiusLG:an,paddingInlineLG:_t}=ge;return{padding:(0,r.zA)(Ze)+" "+(0,r.zA)(_t),fontSize:ge.inputFontSizeLG,lineHeight:W,borderRadius:an}},Je=ge=>({padding:(0,r.zA)(ge.paddingBlockSM)+" "+(0,r.zA)(ge.paddingInlineSM),fontSize:ge.inputFontSizeSM,borderRadius:ge.borderRadiusSM}),$=ge=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:(0,r.zA)(ge.paddingBlock)+" "+(0,r.zA)(ge.paddingInline),color:ge.colorText,fontSize:ge.inputFontSize,lineHeight:ge.lineHeight,borderRadius:ge.borderRadius,transition:"all "+ge.motionDurationMid},tt(ge.colorTextPlaceholder)),{"&-lg":Object.assign({},ht(ge)),"&-sm":Object.assign({},Je(ge)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),mt=ge=>{const{componentCls:Ze,antCls:W}=ge;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:ge.paddingXS,"&:last-child":{paddingInlineEnd:0}},["&-lg "+Ze+", &-lg > "+Ze+"-group-addon"]:Object.assign({},ht(ge)),["&-sm "+Ze+", &-sm > "+Ze+"-group-addon"]:Object.assign({},Je(ge)),["&-lg "+W+"-select-single "+W+"-select-selector"]:{height:ge.controlHeightLG},["&-sm "+W+"-select-single "+W+"-select-selector"]:{height:ge.controlHeightSM},["> "+Ze]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[Ze+"-group"]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:"0 "+(0,r.zA)(ge.paddingInline),color:ge.colorText,fontWeight:"normal",fontSize:ge.inputFontSize,textAlign:"center",borderRadius:ge.borderRadius,transition:"all "+ge.motionDurationSlow,lineHeight:1,[W+"-select"]:{margin:(0,r.zA)(ge.calc(ge.paddingBlock).add(1).mul(-1).equal())+" "+(0,r.zA)(ge.calc(ge.paddingInline).mul(-1).equal()),["&"+W+"-select-single:not("+W+"-select-customize-input):not("+W+"-pagination-size-changer)"]:{[W+"-select-selector"]:{backgroundColor:"inherit",border:(0,r.zA)(ge.lineWidth)+" "+ge.lineType+" transparent",boxShadow:"none"}}},[W+"-cascader-picker"]:{margin:"-9px "+(0,r.zA)(ge.calc(ge.paddingInline).mul(-1).equal()),backgroundColor:"transparent",[W+"-cascader-input"]:{textAlign:"start",border:0,boxShadow:"none"}}}},[Ze]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[Ze+"-search-with-button &"]:{zIndex:0}}},["> "+Ze+":first-child, "+Ze+"-group-addon:first-child"]:{borderStartEndRadius:0,borderEndEndRadius:0,[W+"-select "+W+"-select-selector"]:{borderStartEndRadius:0,borderEndEndRadius:0}},["> "+Ze+"-affix-wrapper"]:{["&:not(:first-child) "+Ze]:{borderStartStartRadius:0,borderEndStartRadius:0},["&:not(:last-child) "+Ze]:{borderStartEndRadius:0,borderEndEndRadius:0}},["> "+Ze+":last-child, "+Ze+"-group-addon:last-child"]:{borderStartStartRadius:0,borderEndStartRadius:0,[W+"-select "+W+"-select-selector"]:{borderStartStartRadius:0,borderEndStartRadius:0}},[Ze+"-affix-wrapper"]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[Ze+"-search &"]:{borderStartStartRadius:ge.borderRadius,borderEndStartRadius:ge.borderRadius}},["&:not(:first-child), "+Ze+"-search &:not(:first-child)"]:{borderStartStartRadius:0,borderEndStartRadius:0}},["&"+Ze+"-group-compact"]:Object.assign(Object.assign({display:"block"},(0,I.t6)()),{[Ze+"-group-addon, "+Ze+"-group-wrap, > "+Ze]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:ge.lineWidth,"&:hover, &:focus":{zIndex:1}}},"& > *":{display:"inline-flex",float:"none",verticalAlign:"top",borderRadius:0},["\n & > "+Ze+"-affix-wrapper,\n & > "+Ze+"-number-affix-wrapper,\n & > "+W+"-picker-range\n "]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:ge.calc(ge.lineWidth).mul(-1).equal(),borderInlineEndWidth:ge.lineWidth},[Ze]:{float:"none"},["& > "+W+"-select > "+W+"-select-selector,\n & > "+W+"-select-auto-complete "+Ze+",\n & > "+W+"-cascader-picker "+Ze+",\n & > "+Ze+"-group-wrapper "+Ze]:{borderInlineEndWidth:ge.lineWidth,borderRadius:0,"&:hover, &:focus":{zIndex:1}},["& > "+W+"-select-focused"]:{zIndex:1},["& > "+W+"-select > "+W+"-select-arrow"]:{zIndex:1},["& > *:first-child,\n & > "+W+"-select:first-child > "+W+"-select-selector,\n & > "+W+"-select-auto-complete:first-child "+Ze+",\n & > "+W+"-cascader-picker:first-child "+Ze]:{borderStartStartRadius:ge.borderRadius,borderEndStartRadius:ge.borderRadius},["& > *:last-child,\n & > "+W+"-select:last-child > "+W+"-select-selector,\n & > "+W+"-cascader-picker:last-child "+Ze+",\n & > "+W+"-cascader-picker-focused:last-child "+Ze]:{borderInlineEndWidth:ge.lineWidth,borderStartEndRadius:ge.borderRadius,borderEndEndRadius:ge.borderRadius},["& > "+W+"-select-auto-complete "+Ze]:{verticalAlign:"top"},[Ze+"-group-wrapper + "+Ze+"-group-wrapper"]:{marginInlineStart:ge.calc(ge.lineWidth).mul(-1).equal(),[Ze+"-affix-wrapper"]:{borderRadius:0}},[Ze+"-group-wrapper:not(:last-child)"]:{["&"+Ze+"-search > "+Ze+"-group"]:{["& > "+Ze+"-group-addon > "+Ze+"-search-button"]:{borderRadius:0},["& > "+Ze]:{borderStartStartRadius:ge.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:ge.borderRadius}}}})}},yt=ge=>{const{componentCls:Ze,controlHeightSM:W,lineWidth:an,calc:_t}=ge,Oe=_t(W).sub(_t(an).mul(2)).sub(16).div(2).equal();return{[Ze]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,I.dF)(ge)),$(ge)),U(ge)),Q(ge)),w(ge)),De(ge)),{'&[type="color"]':{height:ge.controlHeight,["&"+Ze+"-lg"]:{height:ge.controlHeightLG},["&"+Ze+"-sm"]:{height:W,paddingTop:Oe,paddingBottom:Oe}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{appearance:"none"}})}},Le=ge=>{const{componentCls:Ze}=ge;return{[Ze+"-clear-icon"]:{margin:0,padding:0,lineHeight:0,color:ge.colorTextQuaternary,fontSize:ge.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:"color "+ge.motionDurationSlow,border:"none",outline:"none",backgroundColor:"transparent","&:hover":{color:ge.colorIcon},"&:active":{color:ge.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:"0 "+(0,r.zA)(ge.inputAffixPadding)}}}},He=ge=>{const{componentCls:Ze,inputAffixPadding:W,colorTextDescription:an,motionDurationSlow:_t,colorIcon:nn,colorIconHover:Oe,iconCls:sn}=ge,It=Ze+"-affix-wrapper",Pt=Ze+"-affix-wrapper-disabled";return{[It]:Object.assign(Object.assign(Object.assign(Object.assign({},$(ge)),{display:"inline-flex",["&:not("+Ze+"-disabled):hover"]:{zIndex:1,[Ze+"-search-with-button &"]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},["> input"+Ze]:{padding:0},["> input"+Ze+", > textarea"+Ze]:{fontSize:"inherit",border:"none",borderRadius:0,outline:"none",background:"transparent",color:"inherit","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[Ze]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:ge.paddingXS}},"&-show-count-suffix":{color:an,direction:"ltr"},"&-show-count-has-suffix":{marginInlineEnd:ge.paddingXXS},"&-prefix":{marginInlineEnd:W},"&-suffix":{marginInlineStart:W}}}),Le(ge)),{[""+sn+Ze+"-password-icon"]:{color:nn,cursor:"pointer",transition:"all "+_t,"&:hover":{color:Oe}}}),[Ze+"-underlined"]:{borderRadius:0},[Pt]:{[""+sn+Ze+"-password-icon"]:{color:nn,cursor:"not-allowed","&:hover":{color:nn}}}}},ye=ge=>{const{componentCls:Ze,borderRadiusLG:W,borderRadiusSM:an}=ge;return{[Ze+"-group"]:Object.assign(Object.assign(Object.assign({},(0,I.dF)(ge)),mt(ge)),{"&-rtl":{direction:"rtl"},"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[Ze+"-group-addon"]:{borderRadius:W,fontSize:ge.inputFontSizeLG}},"&-sm":{[Ze+"-group-addon"]:{borderRadius:an}}},M(ge)),me(ge)),{["&:not("+Ze+"-compact-first-item):not("+Ze+"-compact-last-item)"+Ze+"-compact-item"]:{[Ze+", "+Ze+"-group-addon"]:{borderRadius:0}},["&:not("+Ze+"-compact-last-item)"+Ze+"-compact-first-item"]:{[Ze+", "+Ze+"-group-addon"]:{borderStartEndRadius:0,borderEndEndRadius:0}},["&:not("+Ze+"-compact-first-item)"+Ze+"-compact-last-item"]:{[Ze+", "+Ze+"-group-addon"]:{borderStartStartRadius:0,borderEndStartRadius:0}},["&:not("+Ze+"-compact-last-item)"+Ze+"-compact-item"]:{[Ze+"-affix-wrapper"]:{borderStartEndRadius:0,borderEndEndRadius:0}},["&:not("+Ze+"-compact-first-item)"+Ze+"-compact-item"]:{[Ze+"-affix-wrapper"]:{borderStartStartRadius:0,borderEndStartRadius:0}}})})}},je=ge=>{const{componentCls:Ze,antCls:W}=ge,an=Ze+"-search";return{[an]:{[Ze]:{"&:hover, &:focus":{["+ "+Ze+"-group-addon "+an+"-button:not("+W+"-btn-color-primary):not("+W+"-btn-variant-text)"]:{borderInlineStartColor:ge.colorPrimaryHover}}},[Ze+"-affix-wrapper"]:{height:ge.controlHeight,borderRadius:0},[Ze+"-lg"]:{lineHeight:ge.calc(ge.lineHeightLG).sub(2e-4).equal()},["> "+Ze+"-group"]:{["> "+Ze+"-group-addon:last-child"]:{insetInlineStart:-1,padding:0,border:0,[an+"-button"]:{marginInlineEnd:-1,borderStartStartRadius:0,borderEndStartRadius:0,boxShadow:"none"},[an+"-button:not("+W+"-btn-color-primary)"]:{color:ge.colorTextDescription,"&:hover":{color:ge.colorPrimaryHover},"&:active":{color:ge.colorPrimaryActive},["&"+W+"-btn-loading::before"]:{inset:0}}}},[an+"-button"]:{height:ge.controlHeight,"&:hover, &:focus":{zIndex:1}},"&-large":{[Ze+"-affix-wrapper, "+an+"-button"]:{height:ge.controlHeightLG}},"&-small":{[Ze+"-affix-wrapper, "+an+"-button"]:{height:ge.controlHeightSM}},"&-rtl":{direction:"rtl"},["&"+Ze+"-compact-item"]:{["&:not("+Ze+"-compact-last-item)"]:{[Ze+"-group-addon"]:{[Ze+"-search-button"]:{marginInlineEnd:ge.calc(ge.lineWidth).mul(-1).equal(),borderRadius:0}}},["&:not("+Ze+"-compact-first-item)"]:{[Ze+","+Ze+"-affix-wrapper"]:{borderRadius:0}},["> "+Ze+"-group-addon "+Ze+"-search-button,\n > "+Ze+",\n "+Ze+"-affix-wrapper"]:{"&:hover, &:focus, &:active":{zIndex:2}},["> "+Ze+"-affix-wrapper-focused"]:{zIndex:2}}}}},ot=ge=>{const{componentCls:Ze}=ge;return{[Ze+"-out-of-range"]:{["&, & input, & textarea, "+Ze+"-show-count-suffix, "+Ze+"-data-count"]:{color:ge.colorError}}}},we=(0,N.OF)(["Input","Shared"],ge=>{const Ze=(0,T.oX)(ge,(0,te.C)(ge));return[yt(Ze),He(Ze)]},te.b,{resetFont:!1}),$e=(0,N.OF)(["Input","Component"],ge=>{const Ze=(0,T.oX)(ge,(0,te.C)(ge));return[ye(Ze),je(Ze),ot(Ze),(0,J.G)(Ze)]},te.b,{resetFont:!1})},81900:(Qn,qe,s)=>{"use strict";s.d(qe,{A:()=>He});var r=s(25582),I=s.n(r),J=s(38502),N=s(67787);function T(ye,je){if(!(ye instanceof je))throw new TypeError("Cannot call a class as a function")}function te(ye,je){for(var ot=0;ot<je.length;ot++){var we=je[ot];we.enumerable=we.enumerable||!1,we.configurable=!0,"value"in we&&(we.writable=!0),Object.defineProperty(ye,we.key,we)}}function q(ye,je,ot){return je&&te(ye.prototype,je),ot&&te(ye,ot),ye}function ne(ye,je,ot){return je in ye?Object.defineProperty(ye,je,{value:ot,enumerable:!0,configurable:!0,writable:!0}):ye[je]=ot,ye}function B(ye){for(var je=1;je<arguments.length;je++){var ot=arguments[je]!=null?arguments[je]:{},we=Object.keys(ot);typeof Object.getOwnPropertySymbols=="function"&&(we=we.concat(Object.getOwnPropertySymbols(ot).filter(function($e){return Object.getOwnPropertyDescriptor(ot,$e).enumerable}))),we.forEach(function($e){ne(ye,$e,ot[$e])})}return ye}function l(ye,je){if(typeof je!="function"&&je!==null)throw new TypeError("Super expression must either be null or a function");ye.prototype=Object.create(je&&je.prototype,{constructor:{value:ye,writable:!0,configurable:!0}}),je&&C(ye,je)}function U(ye){return U=Object.setPrototypeOf?Object.getPrototypeOf:function(ot){return ot.__proto__||Object.getPrototypeOf(ot)},U(ye)}function C(ye,je){return C=Object.setPrototypeOf||function(we,$e){return we.__proto__=$e,we},C(ye,je)}function M(ye){if(ye===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ye}function w(ye,je){return je&&(typeof je=="object"||typeof je=="function")?je:M(ye)}var y=N.Ay.div.withConfig({displayName:"StyledRect",componentId:"sc-1uso172-0"})(["position:absolute;border:1px solid #eb5648;.square{position:absolute;width:7px;height:7px;background:white;border:1px solid #eb5648;border-radius:1px;}.resizable-handler{position:absolute;width:14px;height:14px;cursor:pointer;z-index:1;&.tl,&.t,&.tr{top:-7px;}&.tl,&.l,&.bl{left:-7px;}&.bl,&.b,&.br{bottom:-7px;}&.br,&.r,&.tr{right:-7px;}&.l,&.r{margin-top:-7px;}&.t,&.b{margin-left:-7px;}}.rotate{position:absolute;left:50%;top:-26px;width:18px;height:18px;margin-left:-9px;display:flex;justify-content:center;align-items:center;cursor:pointer;}.t,.tl,.tr{top:-3px;}.b,.bl,.br{bottom:-3px;}.r,.tr,.br{right:-3px;}.tl,.l,.bl{left:-3px;}.l,.r{top:50%;margin-top:-3px;}.t,.b{left:50%;margin-left:-3px;}"]),j=function(je,ot){return Math.sqrt(je*je+ot*ot)},Q=function(je,ot){var we=je.x,$e=je.y,ge=ot.x,Ze=ot.y,W=we*ge+$e*Ze,an=we*Ze-$e*ge,_t=Math.atan2(an,W)/Math.PI*180;return(_t+360)%360},ze=function(je){return je*Math.PI/180},me=function(je){return Math.cos(ze(je))},Se=function(je){return Math.sin(ze(je))},Me=function(je,ot,we){var $e=je+ot;return $e>we?je=$e:(ot=we-je,je=we),{width:je,deltaW:ot}},De=function(je,ot,we){var $e=je+ot;return $e>we?je=$e:(ot=we-je,je=we),{height:je,deltaH:ot}},tt=function(je,ot,we,$e,ge,Ze,W){var an=ot.width,_t=ot.height,nn=ot.centerX,Oe=ot.centerY,sn=ot.rotateAngle,It=an<0?-1:1,Pt=_t<0?-1:1;switch(an=Math.abs(an),_t=Math.abs(_t),je){case"r":{var dt=Me(an,we,Ze);an=dt.width,we=dt.deltaW,ge?($e=we/ge,_t=an/ge,nn+=we/2*me(sn)-$e/2*Se(sn),Oe+=we/2*Se(sn)+$e/2*me(sn)):(nn+=we/2*me(sn),Oe+=we/2*Se(sn));break}case"tr":{$e=-$e;var Vn=Me(an,we,Ze);an=Vn.width,we=Vn.deltaW;var o=De(_t,$e,W);_t=o.height,$e=o.deltaH,ge&&(we=$e*ge,an=_t*ge),nn+=we/2*me(sn)+$e/2*Se(sn),Oe+=we/2*Se(sn)-$e/2*me(sn);break}case"br":{var Gn=Me(an,we,Ze);an=Gn.width,we=Gn.deltaW;var xt=De(_t,$e,W);_t=xt.height,$e=xt.deltaH,ge&&(we=$e*ge,an=_t*ge),nn+=we/2*me(sn)-$e/2*Se(sn),Oe+=we/2*Se(sn)+$e/2*me(sn);break}case"b":{var Ot=De(_t,$e,W);_t=Ot.height,$e=Ot.deltaH,ge?(we=$e*ge,an=_t*ge,nn+=we/2*me(sn)-$e/2*Se(sn),Oe+=we/2*Se(sn)+$e/2*me(sn)):(nn-=$e/2*Se(sn),Oe+=$e/2*me(sn));break}case"bl":{we=-we;var wt=Me(an,we,Ze);an=wt.width,we=wt.deltaW;var Kt=De(_t,$e,W);_t=Kt.height,$e=Kt.deltaH,ge&&(_t=an/ge,$e=we/ge),nn-=we/2*me(sn)+$e/2*Se(sn),Oe-=we/2*Se(sn)-$e/2*me(sn);break}case"l":{we=-we;var fe=Me(an,we,Ze);an=fe.width,we=fe.deltaW,ge?(_t=an/ge,$e=we/ge,nn-=we/2*me(sn)+$e/2*Se(sn),Oe-=we/2*Se(sn)-$e/2*me(sn)):(nn-=we/2*me(sn),Oe-=we/2*Se(sn));break}case"tl":{we=-we,$e=-$e;var bt=Me(an,we,Ze);an=bt.width,we=bt.deltaW;var un=De(_t,$e,W);_t=un.height,$e=un.deltaH,ge&&(an=_t*ge,we=$e*ge),nn-=we/2*me(sn)-$e/2*Se(sn),Oe-=we/2*Se(sn)+$e/2*me(sn);break}case"t":{$e=-$e;var gt=De(_t,$e,W);_t=gt.height,$e=gt.deltaH,ge?(an=_t*ge,we=$e*ge,nn+=we/2*me(sn)+$e/2*Se(sn),Oe+=we/2*Se(sn)-$e/2*me(sn)):(nn+=$e/2*Se(sn),Oe-=$e/2*me(sn));break}}return{position:{centerX:nn,centerY:Oe},size:{width:an*It,height:_t*Pt}}},at=function(je){var ot=je.centerX,we=je.centerY,$e=je.width,ge=je.height,Ze=je.rotateAngle;return{top:we-ge/2,left:ot-$e/2,width:$e,height:ge,rotateAngle:Ze}},ht=function(je){var ot=je.top,we=je.left,$e=je.width,ge=je.height,Ze=je.rotateAngle;return{position:{centerX:we+$e/2,centerY:ot+ge/2},size:{width:$e,height:ge},transform:{rotateAngle:Ze}}},Je={n:"t",s:"b",e:"r",w:"l",ne:"tr",nw:"tl",se:"br",sw:"bl"},$={RESIZE_ARROW_NORMAL:"url(\"data:image/svg+xml,%3Csvg width='31' height='31' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cfilter x='-52.3%25' y='-175.5%25' width='204.6%25' height='450.9%25' filterUnits='objectBoundingBox' id='a'%3E%3CfeOffset dy='1' in='SourceAlpha' result='shadowOffsetOuter1'/%3E%3CfeGaussianBlur stdDeviation='1.5' in='shadowOffsetOuter1' result='shadowBlurOuter1'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.4 0' in='shadowBlurOuter1' result='shadowMatrixOuter1'/%3E%3CfeMerge%3E%3CfeMergeNode in='shadowMatrixOuter1'/%3E%3CfeMergeNode in='SourceGraphic'/%3E%3C/feMerge%3E%3C/filter%3E%3C/defs%3E%3Cg fill='%23000' fill-rule='nonzero' transform='rotate(__absAngle__,16,16)' %3E%3Cg filter='url(%23a)' stroke='%23FFF' transform='rotate(90 5.5 12.5)'%3E%3Crect x='7.5' y='.5' width='2' height='4' rx='.5'/%3E%3Cpath d='M1.5 1.5h14v2h-14z'/%3E%3Cpath d='M-.607 2.72L3.09-.82l.488 6.39L-.607 2.72zM17.607 2.28L13.91 5.82l-.488-6.39 4.185 2.852z'/%3E%3C/g%3E%3Cg transform='rotate(90 5.5 12.5)'%3E%3Crect x='8' y='1' width='1' height='3' rx='.5'/%3E%3Cpath d='M2 2h13v1H2z'/%3E%3Cpath d='M.184 2.346L2.672.273A.2.2 0 013 .427v4.146a.2.2 0 01-.328.154L.184 2.654a.2.2 0 010-.308zM16.816 2.654l-2.488 2.073A.2.2 0 0114 4.573V.427a.2.2 0 01.328-.154l2.488 2.073a.2.2 0 010 .308z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E\") 16 16,auto"},mt={n:0,s:0,e:90,w:90,ne:45,nw:135,se:135,sw:45},yt=function(ye){l(je,ye);function je(){var ot,we;T(this,je);for(var $e=arguments.length,ge=new Array($e),Ze=0;Ze<$e;Ze++)ge[Ze]=arguments[Ze];return we=w(this,(ot=U(je)).call.apply(ot,[this].concat(ge))),ne(M(M(we)),"setElementRef",function(W){we.$element=W}),ne(M(M(we)),"startDrag",function(W){var an=W.clientX,_t=W.clientY;we.props.onDragStart&&we.props.onDragStart(),we._isMouseDown=!0;var nn=function(It){if(we._isMouseDown){It.stopImmediatePropagation();var Pt=It.clientX,dt=It.clientY,Vn=Pt-an,o=dt-_t;we.props.onDrag(Vn,o),an=Pt,_t=dt}},Oe=function sn(){document.removeEventListener("mousemove",nn),document.removeEventListener("mouseup",sn),we._isMouseDown&&(we._isMouseDown=!1,we.props.onDragEnd&&we.props.onDragEnd())};document.addEventListener("mousemove",nn),document.addEventListener("mouseup",Oe)}),ne(M(M(we)),"startRotate",function(W){if(W.button===0){var an=W.clientX,_t=W.clientY,nn=we.props.styles.transform.rotateAngle,Oe=we.$element.getBoundingClientRect(),sn={x:Oe.left+Oe.width/2,y:Oe.top+Oe.height/2},It={x:an-sn.x,y:_t-sn.y};we.props.onRotateStart&&we.props.onRotateStart(),we._isMouseDown=!0;var Pt=function(o){if(we._isMouseDown){o.stopImmediatePropagation();var Gn=o.clientX,xt=o.clientY,Ot={x:Gn-sn.x,y:xt-sn.y},wt=Q(It,Ot);we.props.onRotate(wt,nn)}},dt=function Vn(){document.removeEventListener("mousemove",Pt),document.removeEventListener("mouseup",Vn),we._isMouseDown&&(we._isMouseDown=!1,we.props.onRotateEnd&&we.props.onRotateEnd())};document.addEventListener("mousemove",Pt),document.addEventListener("mouseup",dt)}}),ne(M(M(we)),"startResize",function(W,an){if(W.button===0){document.body.style.cursor=an;var _t=we.props,nn=_t.styles,Oe=nn.position,sn=Oe.centerX,It=Oe.centerY,Pt=nn.size,dt=Pt.width,Vn=Pt.height,o=_t.cursorAngle,Gn=W.clientX,xt=W.clientY,Ot={width:dt,height:Vn,centerX:sn,centerY:It,cursorAngle:o},wt=W.target.getAttribute("class").split(" ")[0];we.props.onResizeStart&&we.props.onResizeStart(),we._isMouseDown=!0;var Kt=function(un){if(we._isMouseDown){un.stopImmediatePropagation();var gt=un.clientX,Wt=un.clientY,Un=gt-Gn,Jn=Wt-xt,Yt=Math.atan2(Jn,Un),rt=j(Un,Jn),An=un.shiftKey;we.props.onResize(rt,Yt,Ot,wt,An)}},fe=function bt(){document.body.style.cursor="auto",document.removeEventListener("mousemove",Kt),document.removeEventListener("mouseup",bt),we._isMouseDown&&(we._isMouseDown=!1,we.props.onResizeEnd&&we.props.onResizeEnd())};document.addEventListener("mousemove",Kt),document.addEventListener("mouseup",fe)}}),we}return q(je,[{key:"render",value:function(){var we=this,$e=this.props,ge=$e.styles,Ze=ge.position,W=Ze.centerX,an=Ze.centerY,_t=ge.size,nn=_t.width,Oe=_t.height,sn=ge.transform.rotateAngle,It=$e.zoomable,Pt=$e.rotatable,dt=$e.cursorAngle,Vn={width:Math.abs(nn),height:Math.abs(Oe),transform:"rotate(".concat(sn,"deg)"),left:W-Math.abs(nn)/2,top:an-Math.abs(Oe)/2},o=It.split(",").map(function(Gn){return Gn.trim()}).filter(function(Gn){return Gn});return J.createElement(y,{ref:this.setElementRef,onMouseDown:this.startDrag,className:"rect single-resizer",style:Vn},Pt&&J.createElement("div",{className:"rotate",onMouseDown:this.startRotate},J.createElement("svg",{width:"14",height:"14",xmlns:"http://www.w3.org/2000/svg"},J.createElement("path",{d:"M10.536 3.464A5 5 0 1 0 11 10l1.424 1.425a7 7 0 1 1-.475-9.374L13.659.34A.2.2 0 0 1 14 .483V5.5a.5.5 0 0 1-.5.5H8.483a.2.2 0 0 1-.142-.341l2.195-2.195z",fill:"#eb5648",fillRule:"nonzero"}))),o.map(function(Gn){var xt=dt+mt[Gn],Ot=$.RESIZE_ARROW_NORMAL.replace("__absAngle__","".concat(xt));return J.createElement("div",{key:Gn,style:{cursor:Ot},className:"".concat(Je[Gn]," resizable-handler"),onMouseDown:function(Kt){return we.startResize(Kt,Ot)}})}),o.map(function(Gn){return J.createElement("div",{key:Gn,className:"".concat(Je[Gn]," square")})}))}}]),je}(J.PureComponent);ne(yt,"propTypes",{styles:I().object,zoomable:I().string,rotatable:I().bool,onResizeStart:I().func,onResize:I().func,onResizeEnd:I().func,onRotateStart:I().func,onRotate:I().func,onRotateEnd:I().func,onDragStart:I().func,onDrag:I().func,onDragEnd:I().func,parentRotateAngle:I().number,cursorAngle:I().number});var Le=function(ye){l(je,ye);function je(){var ot,we;T(this,je);for(var $e=arguments.length,ge=new Array($e),Ze=0;Ze<$e;Ze++)ge[Ze]=arguments[Ze];return we=w(this,(ot=U(je)).call.apply(ot,[this].concat(ge))),ne(M(M(we)),"handleRotate",function(W,an){if(we.props.onRotate){var _t=Math.round(an+W);_t>=360?_t-=360:_t<0&&(_t+=360),_t>356||_t<4?_t=0:_t>86&&_t<94?_t=90:_t>176&&_t<184?_t=180:_t>266&&_t<274&&(_t=270),we.props.onRotate(_t)}}),ne(M(M(we)),"handleResize",function(W,an,_t,nn,Oe){if(we.props.onResize){var sn=we.props,It=sn.aspectRatio,Pt=sn.minWidth,dt=sn.minHeight,Vn=sn.parentRotateAngle,o=sn.cursorAngle,Gn=an-ze(o+Vn),xt=W*Math.cos(Gn),Ot=W*Math.sin(Gn),wt=Oe&&!It?_t.width/_t.height:It,Kt=tt(nn,B({},_t,{rotateAngle:o}),xt,Ot,wt,Pt,dt),fe=Kt.position,bt=fe.centerX,un=fe.centerY,gt=Kt.size,Wt=gt.width,Un=gt.height;we.props.onResize(at({centerX:bt,centerY:un,width:Wt,height:Un,rotateAngle:o}),Oe,nn)}}),ne(M(M(we)),"handleDrag",function(W,an){we.props.onDrag&&we.props.onDrag(W,an)}),we}return q(je,[{key:"render",value:function(){var we=this.props,$e=we.top,ge=we.left,Ze=we.width,W=we.height,an=we.rotateAngle,_t=we.parentRotateAngle,nn=we.zoomable,Oe=we.rotatable,sn=we.onRotate,It=we.onResizeStart,Pt=we.onResizeEnd,dt=we.onRotateStart,Vn=we.onRotateEnd,o=we.onDragStart,Gn=we.onDragEnd,xt=we.cursorAngle,Ot=ht({top:$e,left:ge,width:Ze,height:W,rotateAngle:an});return J.createElement(yt,{styles:Ot,zoomable:nn,rotatable:!!(Oe&&sn),parentRotateAngle:_t,cursorAngle:xt,onResizeStart:It,onResize:this.handleResize,onResizeEnd:Pt,onRotateStart:dt,onRotate:this.handleRotate,onRotateEnd:Vn,onDragStart:o,onDrag:this.handleDrag,onDragEnd:Gn})}}]),je}(J.Component);ne(Le,"propTypes",{left:I().number.isRequired,top:I().number.isRequired,width:I().number.isRequired,height:I().number.isRequired,rotatable:I().bool,rotateAngle:I().number,parentRotateAngle:I().number,zoomable:I().string,minWidth:I().number,minHeight:I().number,aspectRatio:I().oneOfType([I().number,I().bool]),onRotateStart:I().func,onRotate:I().func,onRotateEnd:I().func,onResizeStart:I().func,onResize:I().func,onResizeEnd:I().func,onDragStart:I().func,onDrag:I().func,onDragEnd:I().func,cursorAngle:I().number}),ne(Le,"defaultProps",{parentRotateAngle:0,rotateAngle:0,cursorAngle:0,rotatable:!0,zoomable:"",minWidth:10,minHeight:10});const He=Le},82009:(Qn,qe,s)=>{"use strict";s.d(qe,{Ct:()=>I,NY:()=>N,OO:()=>T,PP:()=>te,Q:()=>q,jC:()=>J});var r=s(19249);const I=async ne=>await(0,r.DE)("/api/upper/web_v1/sclibs/space_libs?space_cid="+ne),J=async()=>{var ne;const{mkts:B,project_metas:l}=await(0,r.DE)("/api/upper/web_v1/sclibs/featured_mkts");return(ne=B==null?void 0:B.map(U=>{var C;return{...U,name:U.title,sclib_cid:(C=l.find(M=>M.upper_cid===U.cid))==null?void 0:C.cid}}))!=null?ne:[]},N=async ne=>{let{cid:B,libs:l}=ne;return await(0,r.zi)("/api/upper/web_v1/sclibs/status",{cid:B,libs:l})},T=async ne=>await(0,r.SN)("/api/upper/web_v1/sclibs/withdraw",{cid:ne}),te=async ne=>{let{cid:B,info:l,notes:U,version:C}=ne;return await(0,r.SN)("/api/upper/web_v1/sclibs/data",{project_cid:B,release_info:l})},q=async ne=>{try{return await(0,r.DE)("/api/upper/web_v1/sclibs/data?project_cid="+ne)}catch(B){console.log("e",B)}}},82066:(Qn,qe,s)=>{"use strict";s.d(qe,{Pd:()=>Se});var r=s(95549),I=s(25582),J=s.n(I),N=s(38502),T=s(17307),te=s(5649),q=s(39e3),ne=s(83199),B=s(67787);const l=B.Ay.div.withConfig({displayName:"styles__CSSDesignZoomBoxDiv",componentId:"sc-ru8w0z-0"})(["position:relative;width:64px;height:32px;display:flex;flex-direction:column;justify-content:center;align-items:center;cursor:pointer;border-radius:6px;transition:all 0.2s ease-out;&.isBorder{outline:1px solid #E5E5E5;margin-right:6px;}.zoom-main{width:100%;height:100%;display:flex;align-items:center;justify-content:center;}.zoom-box{display:flex;align-items:center;line-height:16px;height:16px;font-size:13px;color:",";.zoom-arrow{width:7px;transform:translateY(-1px);margin-left:8px;}}.zoom-tip{margin-top:8px;color:#415058;height:12px;line-height:12px;font-size:12px;}&:hover{background:",";}&.active,&:active{background-color:",";}"],tt=>tt.theme.color_text_L1,tt=>tt.theme.color_btn_secondary_hover,tt=>tt.theme.color_btn_secondary_active),U=B.Ay.div.withConfig({displayName:"styles__StyledZoomOptionsPanel",componentId:"sc-ru8w0z-1"})(["position:absolute;padding:8px;",":",";right:0;border-radius:8px;min-width:178px;font-size:12px;background:",";box-shadow:",";border:1px solid ",";.zoom-input-number-wrap{height:32px;display:flex;align-items:center;justify-content:center;.zoom-input{width:140px;border-color:",";&:hover{border-color:",";}input,.suffix{color:",";}}}.divider{margin:8px 0;border-top:1px solid ",";}.zoom-item{display:flex;align-items:center;justify-content:space-between;height:28px;padding:0 16px 0 32px;border-radius:4px;color:",";.zoom-text{position:relative;}.kbd-size{white-space:nowrap;margin-left:auto;kbd{color:",";display:inline-block;text-align:center;min-width:12px;margin-right:2px;}kbd:first-child{margin-left:0;}.kbd:last-child{margin-right:0;}}&:not(.is-disabled):hover{background:",";}&.is-disabled{cursor:not-allowed;color:",";}.zoom-select{position:absolute;left:-20px;top:7px;width:8px;color:",";}}&.mac .others,&.others .mac{display:none;}"],tt=>tt.position==="top"?"top":"bottom",tt=>tt.position==="top"?"calc(100% + 8px)":"100%",tt=>tt.theme.color_bg_white,tt=>tt.theme.shadow_m,tt=>tt.theme.color_bg_border_01,tt=>tt.theme.color_bg_border_02,tt=>tt.theme.color_proto,tt=>tt.theme.color_text_L1,tt=>tt.theme.color_bg_border_01,tt=>tt.theme.color_text_L1,tt=>tt.theme.color_text_L2,tt=>tt.theme.color_btn_secondary_hover,tt=>tt.theme.color_text_disabled01,tt=>tt.theme.color_text_L1);var C=s(53732),M=s.n(C),w=s(56202),y=s(53940),j=s(94590),Q=s(64580),ze=s(48281),me=s(72214);class Se extends N.PureComponent{constructor(at){super(at),(0,r.A)(this,"handleToggleZoomContentShow",ht=>{const{onlyView:Je,onlyPreview:$}=this.props;ht.stopPropagation(),this.setState({isZoomContentShow:!this.state.isZoomContentShow}),$?(0,ze.v)({operation_type:ze.$.Zoom}):Je?(0,Q.A)({operation_type:Q.D.Zoom}):(0,j.kX)({operation_type:j.mV.View})}),(0,r.A)(this,"handleZoomIn",ht=>{ht.stopPropagation();const{onZoomIn:Je}=this.props;Je()}),(0,r.A)(this,"handleZoomOut",ht=>{ht.stopPropagation();const{onZoomOut:Je}=this.props;Je()}),this.state={isZoomContentShow:!1}}render(){const{scale:at,onZoomInitialScale:ht,onZoomSpecifiedScale:Je,onZoomSelection:$,isShowZoomSelection:mt,className:yt,onlyPreview:Le,isHtmlZipPreview:He,withDropdownMarker:ye}=this.props,{isZoomContentShow:je}=this.state,ot=y.I.indexOf(at),we=ot!==y.I.length-1,$e=ot!==0;return(0,me.jsx)(ne.A,{content:I18N.DesignZoomBox.zoom,direction:"down",distance:8,children:(0,me.jsxs)(l,{onClick:this.handleToggleZoomContentShow,className:M()(yt||"",{active:je},{isBorder:He}),children:[(0,me.jsx)("div",{className:"zoom-main",children:(0,me.jsxs)("div",{className:"zoom-box",children:[(0,me.jsx)("p",{className:"zoom-scale",children:Math.round(at)+"%"}),ye&&(0,me.jsx)(T.C,{className:"zoom-arrow",name:"toolbar/triangle-down"})]})}),je&&(0,me.jsx)(Me,{position:"top",scale:at,minScale:y.sI,maxScale:y.sH,canZoomIn:we,handleZoomIn:this.handleZoomIn,canZoomOut:$e,handleZoomOut:this.handleZoomOut,onZoomInitialScale:ht,onZoomSpecifiedScale:Je,onZoomSelection:$,isShowZoomSelection:mt,isZoomOptionPanelVisible:je,setIsZoomOptionPanelVisible:ge=>this.setState({isZoomContentShow:ge}),onlyPreview:Le})]})})}}(0,r.A)(Se,"propTypes",{scale:J().number,isShowZoomSelection:J().bool,onZoomSpecifiedScale:J().func,onZoomIn:J().func,onZoomOut:J().func,onZoomInitialScale:J().func,onZoomSelection:J().func,className:J().string,onlyPreview:J().bool,isHtmlZipPreview:J().bool,onlyView:J().bool,withDropdownMarker:J().bool}),(0,r.A)(Se,"defaultProps",{isShowZoomSelection:!0,withDropdownMarker:!0});const Me=tt=>{let{position:at,scale:ht,minScale:Je,maxScale:$,canZoomIn:mt,handleZoomIn:yt,canZoomOut:Le,handleZoomOut:He,onZoomInitialScale:ye,onZoomSpecifiedScale:je,onZoomSelection:ot,isShowZoomSelection:we,isZoomOptionPanelVisible:$e,setIsZoomOptionPanelVisible:ge,onlyPreview:Ze}=tt;if(!$e)return null;const W=(0,w.cX)()?"mac":"others",an=(0,N.useRef)(null),_t=Oe=>{const{target:sn}=Oe;if(!sn.closest(".zoom-main")&&$e){var Pt;(Pt=an.current)!=null&&Pt.contains(sn)||ge(!1)}},nn=Oe=>{Oe.stopPropagation();const sn=Oe.currentTarget.dataset.value;je(sn)};return $e&&(0,me.jsxs)(me.Fragment,{children:[(0,me.jsxs)(U,{className:M()("preview-zoom-options-panel",W),position:at,ref:an,children:[(0,me.jsx)("div",{className:"zoom-input-number-wrap",onClick:Oe=>Oe.stopPropagation(),children:(0,me.jsx)("form",{children:(0,me.jsx)(te.A,{className:"zoom-input",min:Je,max:$,precision:0,suffix:"%",actionButton:!1,value:Math.round(ht),isSelect:!0,onConfirm:je,onlyPreview:Ze})})}),(0,me.jsx)("div",{className:"divider"}),(0,me.jsxs)("div",{className:M()("zoom-item",{"is-disabled":!mt}),onClick:yt,children:[(0,me.jsx)("p",{className:"zoom-text",children:I18N.DesignZoomBox.zoomin}),(0,me.jsx)("div",{className:"mac kbd-size",dangerouslySetInnerHTML:{__html:De[W].zoomIn}}),(0,me.jsx)("div",{className:"others kbd-size",dangerouslySetInnerHTML:{__html:De[W].zoomIn}})]}),(0,me.jsxs)("div",{className:M()("zoom-item",{"is-disabled":!Le}),onClick:He,children:[(0,me.jsx)("p",{className:"zoom-text",children:I18N.DesignZoomBox.zoomout}),(0,me.jsx)("div",{className:"mac kbd-size",dangerouslySetInnerHTML:{__html:De[W].zoomOut}}),(0,me.jsx)("div",{className:"others kbd-size",dangerouslySetInnerHTML:{__html:De[W].zoomOut}})]}),(0,me.jsx)("div",{className:"divider"}),(0,me.jsx)("div",{className:"zoom-item","data-value":50,onClick:nn,children:(0,me.jsxs)("p",{className:"zoom-text",children:[Math.round(ht)===50&&(0,me.jsx)(T.C,{className:"zoom-select",name:"toolbar/selected"}),"50%"]})}),(0,me.jsxs)("div",{className:"zoom-item","data-value":100,onClick:nn,children:[(0,me.jsxs)("p",{className:"zoom-text",children:[Math.round(ht)===100&&(0,me.jsx)(T.C,{className:"zoom-select",name:"toolbar/selected"}),"100%"]}),(0,me.jsx)("div",{className:"mac kbd-size",dangerouslySetInnerHTML:{__html:De[W].zoomReset}}),(0,me.jsx)("div",{className:"others kbd-size",dangerouslySetInnerHTML:{__html:De[W].zoomReset}})]}),(0,me.jsx)("div",{className:"zoom-item","data-value":200,onClick:nn,children:(0,me.jsxs)("p",{className:"zoom-text",children:[Math.round(ht)===200&&(0,me.jsx)(T.C,{className:"zoom-select",name:"toolbar/selected"}),"200%"]})}),(0,me.jsx)("div",{className:"divider"}),(0,me.jsxs)("div",{className:"zoom-item",onClick:ye,children:[(0,me.jsx)("p",{className:"zoom-text",children:I18N.DesignZoomBox.fit_canvas}),(0,me.jsx)("div",{className:"mac kbd-size",dangerouslySetInnerHTML:{__html:De[W].zoomFit}}),(0,me.jsx)("div",{className:"others kbd-size",dangerouslySetInnerHTML:{__html:De[W].zoomFit}})]}),we&&(0,me.jsxs)("div",{className:"zoom-item",onClick:ot,children:[(0,me.jsx)("p",{className:"zoom-text",children:I18N.DesignZoomBox.zoom_selection}),(0,me.jsx)("div",{className:"mac kbd-size",dangerouslySetInnerHTML:{__html:De[W].zoomSelect}}),(0,me.jsx)("div",{className:"others kbd-size",dangerouslySetInnerHTML:{__html:De[W].zoomSelect}})]})]}),(0,me.jsx)(q.A,{target:document,onClick:(0,q.t)(_t,{capture:!0})})]})};Me.propTypes={position:J().string,scale:J().number,minScale:J().number,maxScale:J().number,canZoomIn:J().bool,handleZoomIn:J().func,canZoomOut:J().bool,handleZoomOut:J().func,onZoomInitialScale:J().func,onZoomSpecifiedScale:J().func,onZoomSelection:J().func,isShowZoomSelection:J().bool,isZoomOptionPanelVisible:J().bool,setIsZoomOptionPanelVisible:J().func,onlyPreview:J().bool};const De={mac:{zoomOut:"<kbd>\u2318</kbd><kbd>-</kbd>",zoomIn:"<kbd>\u2318</kbd><kbd>+</kbd>",zoomReset:"<kbd>\u2318</kbd><kbd>0</kbd>",zoomFit:"<kbd>\u2318</kbd><kbd>1</kbd>",zoomSelect:"<kbd>\u2318</kbd><kbd>2</kbd>"},others:{zoomOut:"<kbd>Ctrl</kbd><kbd>-</kbd>",zoomIn:"<kbd>Ctrl</kbd><kbd>+</kbd>",zoomReset:"<kbd>Ctrl</kbd><kbd>0</kbd>",zoomFit:"<kbd>Ctrl</kbd><kbd>1</kbd>",zoomSelect:"<kbd>Ctrl</kbd><kbd>2</kbd>"}}},82515:(Qn,qe,s)=>{"use strict";s.d(qe,{Z:()=>I});var r=s(44327);const I=async J=>{let{fcg:N,userId:T,isOrg:te=!1}=J;if(!N||!T)return;const q=!te||(0,r.Bk)(),ne=await(0,r.i_)({...N,userId:T,repaint:!0,isAllowDat:q});ne&&(te?(Object.assign(globalThis,{orgSdk:ne,orgSdkStore:ne.sdkStore}),await MB.action("entry:load:org:combo:group:list")):(Object.assign(globalThis,{userSdk:ne,userSdkStore:ne.sdkStore}),await MB.action("entry:load:user:combo:group:list")))}},83106:(Qn,qe,s)=>{var r=s(71893),I=s(48236),J=s(52255),N=I(function(T,te){return J(T)?r(T,te):[]});Qn.exports=N},83291:(Qn,qe,s)=>{"use strict";s.d(qe,{A:()=>M});var r=s(38502),I=Object.defineProperty,J=Object.defineProperties,N=Object.getOwnPropertyDescriptors,T=Object.getOwnPropertySymbols,te=Object.prototype.hasOwnProperty,q=Object.prototype.propertyIsEnumerable,ne=(w,y,j)=>y in w?I(w,y,{enumerable:!0,configurable:!0,writable:!0,value:j}):w[y]=j,B=(w,y)=>{for(var j in y||(y={}))te.call(y,j)&&ne(w,j,y[j]);if(T)for(var j of T(y))q.call(y,j)&&ne(w,j,y[j]);return w},l=(w,y)=>J(w,N(y)),U=(w,y)=>{var j={};for(var Q in w)te.call(w,Q)&&y.indexOf(Q)<0&&(j[Q]=w[Q]);if(w!=null&&T)for(var Q of T(w))y.indexOf(Q)<0&&q.call(w,Q)&&(j[Q]=w[Q]);return j},M=(0,r.forwardRef)((w,y)=>{var j=w,{size:Q,spin:ze,style:me}=j,Se=U(j,["size","spin","style"]);const Me=B(B({width:Q||"var(--x-icon-size, 1em)",height:Q||"var(--x-icon-size, 1em)",animation:ze?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),me);return r.createElement("svg",l(B({ref:y,style:Me},Se),{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),r.createElement("rect",{width:"32",height:"32",rx:"7",fill:"#5B5CF9"}),r.createElement("path",{opacity:"0.5",d:"M11.983 6.50268C11.9127 6.29519 12.067 6.08002 12.2861 6.08002H16.7304C16.8675 6.08002 16.9895 6.16744 17.0335 6.29736L23.5367 25.4974C23.607 25.7048 23.4527 25.92 23.2336 25.92H18.7893C18.6521 25.92 18.5302 25.8326 18.4862 25.7027L11.983 6.50268Z",fill:"white"}),r.createElement("path",{d:"M15.1831 6.50268C15.1128 6.29519 15.2671 6.08002 15.4862 6.08002H19.9304C20.0676 6.08002 20.1895 6.16744 20.2335 6.29736L26.7368 25.4974C26.807 25.7048 26.6527 25.92 26.4337 25.92H21.9894C21.8522 25.92 21.7303 25.8326 21.6863 25.7027L15.1831 6.50268Z",fill:"white"}),r.createElement("g",{clipPath:"url(#clip0_654_88)"},r.createElement("path",{d:"M8.70013 18.1874C8.86647 17.8309 9.37328 17.8309 9.53962 18.1874L10.5226 20.2935C10.5686 20.3921 10.6478 20.4713 10.7464 20.5174L12.8526 21.5003C13.209 21.6666 13.209 22.1734 12.8526 22.3398L10.7464 23.3227C10.6478 23.3687 10.5686 23.448 10.5226 23.5466L9.53962 25.6527C9.37328 26.0091 8.86647 26.0091 8.70013 25.6527L7.71718 23.5466C7.67117 23.448 7.59192 23.3687 7.49333 23.3227L5.38719 22.3398C5.03077 22.1734 5.03077 21.6666 5.38718 21.5003L7.49333 20.5174C7.59192 20.4713 7.67117 20.3921 7.71718 20.2935L8.70013 18.1874Z",fill:"white"})),r.createElement("defs",null,r.createElement("clipPath",{id:"clip0_654_88"},r.createElement("rect",{width:"8",height:"8",fill:"white",transform:"translate(5.11987 17.92)"}))))})},83413:(Qn,qe,s)=>{"use strict";s.d(qe,{x:()=>T});var r=s(38502),I=s(18381),J=s(70933),N=s(44327);const T=()=>{const te=(0,I.d4)(J.HW),q=(0,I.d4)(J.wA),ne=(0,I.d4)(J.F2),B=(0,I.d4)(J._x),[l,U]=(0,r.useState)(!0),C=async w=>{let{fcg:y,userId:j,isOrg:Q=!1}=w;if(!y||!j)return;const ze=!Q||(0,N.Bk)(),me=await(0,N.i_)({...y,userId:j,repaint:!0,isAllowDat:ze});me&&(Q?(Object.assign(globalThis,{orgSdk:me,orgSdkStore:me.sdkStore}),await MB.action("entry:load:org:combo:group:list")):(Object.assign(globalThis,{userSdk:me,userSdkStore:me.sdkStore}),await MB.action("entry:load:user:combo:group:list")))},M=(0,r.useCallback)(async function(w){w===void 0&&(w=!1);const y=te==null?void 0:te.id;y&&(w&&!window.orgSdkStore&&q&&B&&(U(!0),await C({fcg:B,userId:y,isOrg:!0})),!window.userSdkStore&&ne&&(U(!0),await C({fcg:ne,userId:y})),U(!1))},[te,q,ne,B,C]);return{isLoading:l,initComboSdkStore:M}}},83466:(Qn,qe)=>{"use strict";Object.defineProperty(qe,"__esModule",{value:!0});var s=qe.TAB_KEY=9,r=qe.ENTER_KEY=13,I=qe.ESCAPE_KEY=27,J=qe.LEFT_KEY=37,N=qe.UP_KEY=38,T=qe.RIGHT_KEY=39,te=qe.DOWN_KEY=40,q=qe.DELETE_KEY=46,ne=qe.BACKSPACE_KEY=8},83815:(Qn,qe,s)=>{"use strict";s.d(qe,{A:()=>M});var r=s(38502),I=Object.defineProperty,J=Object.defineProperties,N=Object.getOwnPropertyDescriptors,T=Object.getOwnPropertySymbols,te=Object.prototype.hasOwnProperty,q=Object.prototype.propertyIsEnumerable,ne=(w,y,j)=>y in w?I(w,y,{enumerable:!0,configurable:!0,writable:!0,value:j}):w[y]=j,B=(w,y)=>{for(var j in y||(y={}))te.call(y,j)&&ne(w,j,y[j]);if(T)for(var j of T(y))q.call(y,j)&&ne(w,j,y[j]);return w},l=(w,y)=>J(w,N(y)),U=(w,y)=>{var j={};for(var Q in w)te.call(w,Q)&&y.indexOf(Q)<0&&(j[Q]=w[Q]);if(w!=null&&T)for(var Q of T(w))y.indexOf(Q)<0&&q.call(w,Q)&&(j[Q]=w[Q]);return j},M=(0,r.forwardRef)((w,y)=>{var j=w,{size:Q,spin:ze,style:me}=j,Se=U(j,["size","spin","style"]);const Me=B(B({width:Q||"var(--x-icon-size, 1em)",height:Q||"var(--x-icon-size, 1em)",animation:ze?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),me);return r.createElement("svg",l(B({ref:y,style:Me},Se),{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),r.createElement("rect",{width:"32",height:"32",rx:"7",fill:"#8B63FF"}),r.createElement("path",{d:"M21.0957 15.3115L19.5225 20.0322C19.3805 20.4577 19.042 20.788 18.6133 20.9199L7.94922 24.2012C7.78705 24.251 7.63501 24.0997 7.68457 23.9375L10.9658 13.2734C11.0977 12.8447 11.429 12.5062 11.8545 12.3643L16.5742 10.79L21.0957 15.3115Z",stroke:"white",strokeWidth:"2.11571"}),r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.1956 19.639C13.4562 19.3783 13.8542 19.3333 14.2158 19.4047C14.9102 19.5416 15.6578 19.3411 16.1958 18.8031C17.0535 17.9454 17.0535 16.5548 16.1958 15.6971C15.3381 14.8394 13.9475 14.8394 13.0898 15.6971C12.5515 16.2354 12.3511 16.9836 12.4885 17.6783C12.5601 18.0402 12.5152 18.4384 12.2544 18.6993L7.44618 23.5075C7.37318 23.5805 7.31818 23.6695 7.28553 23.7674C7.11224 24.2873 7.60682 24.7819 8.12668 24.6086C8.22462 24.5759 8.31361 24.5209 8.38661 24.4479L13.1956 19.639Z",fill:"white"}),r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.6901 6.30077L25.8621 12.4728C26.2631 12.8738 26.2631 13.524 25.8621 13.9251C25.382 14.4052 24.8193 14.7951 24.2011 15.0761L22.1141 16.0248C21.5296 16.2905 20.8415 16.1657 20.3875 15.7117L16.4512 11.7754C15.9972 11.3214 15.8724 10.6333 16.1381 10.0488L17.0868 7.96174C17.3678 7.34355 17.7577 6.78094 18.2378 6.30077C18.6389 5.89974 19.289 5.89974 19.6901 6.30077Z",fill:"#ECD7FF",fillOpacity:"0.7"}))})},84748:(Qn,qe,s)=>{"use strict";s.d(qe,{A:()=>M});var r=s(38502),I=Object.defineProperty,J=Object.defineProperties,N=Object.getOwnPropertyDescriptors,T=Object.getOwnPropertySymbols,te=Object.prototype.hasOwnProperty,q=Object.prototype.propertyIsEnumerable,ne=(w,y,j)=>y in w?I(w,y,{enumerable:!0,configurable:!0,writable:!0,value:j}):w[y]=j,B=(w,y)=>{for(var j in y||(y={}))te.call(y,j)&&ne(w,j,y[j]);if(T)for(var j of T(y))q.call(y,j)&&ne(w,j,y[j]);return w},l=(w,y)=>J(w,N(y)),U=(w,y)=>{var j={};for(var Q in w)te.call(w,Q)&&y.indexOf(Q)<0&&(j[Q]=w[Q]);if(w!=null&&T)for(var Q of T(w))y.indexOf(Q)<0&&q.call(w,Q)&&(j[Q]=w[Q]);return j},M=(0,r.forwardRef)((w,y)=>{var j=w,{size:Q,spin:ze,style:me}=j,Se=U(j,["size","spin","style"]);const Me=B(B({width:Q||"var(--x-icon-size, 1em)",height:Q||"var(--x-icon-size, 1em)",animation:ze?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),me);return r.createElement("svg",l(B({ref:y,style:Me},Se),{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),r.createElement("path",{d:"M16.9784 8.22499L16.0003 8.09178C15.7831 8.06181 15.607 7.91861 15.5215 7.72379C15.3283 7.2792 15.082 6.86292 14.7879 6.48328C14.6563 6.31343 14.6169 6.09197 14.699 5.89549L15.0701 5.00465C15.1846 4.73158 15.0735 4.41687 14.8102 4.27034L12.6949 3.07978C12.4316 2.93159 12.0981 2.99486 11.9117 3.22798L11.3064 3.98227C11.1713 4.15211 10.9524 4.23038 10.7336 4.20373C10.4942 4.17376 10.2496 4.15711 10.0017 4.15711C9.75374 4.15711 9.50922 4.17376 9.26982 4.20373C9.05094 4.23038 8.83206 4.15211 8.69697 3.98227L8.09164 3.22798C7.90525 2.99486 7.57181 2.93159 7.30847 3.07978L5.19322 4.26867C4.92988 4.41687 4.82045 4.72991 4.9333 5.00299L5.30437 5.89383C5.38645 6.09197 5.34712 6.31177 5.21545 6.48161C4.92133 6.86126 4.67339 7.27754 4.48187 7.72212C4.39637 7.91861 4.22024 8.06181 4.00307 8.09011L3.02496 8.22332C2.72401 8.26495 2.5 8.51472 2.5 8.81111V11.1906C2.5 11.4853 2.72401 11.7351 3.02325 11.7767L4.00136 11.9099C4.21853 11.9399 4.39466 12.0831 4.48016 12.2779C4.67339 12.7225 4.91962 13.1387 5.21374 13.5184C5.34541 13.6882 5.38474 13.9097 5.30266 14.1062L4.93159 14.997C4.81703 15.2701 4.92817 15.5848 5.19151 15.7313L7.30676 16.9202C7.5701 17.0684 7.90354 17.0051 8.08993 16.772L8.69527 16.0177C8.83035 15.8479 9.04923 15.7696 9.26811 15.7963C9.50751 15.8262 9.75203 15.8429 9.99998 15.8429C10.2479 15.8429 10.4925 15.8262 10.7319 15.7963C10.9507 15.7696 11.1696 15.8479 11.3047 16.0177L11.91 16.772C12.0964 17.0051 12.4299 17.0684 12.6932 16.9202L14.8085 15.7313C15.0718 15.5831 15.1812 15.2701 15.0684 14.997L14.6973 14.1062C14.6152 13.9097 14.6546 13.6882 14.7862 13.5184C15.0803 13.1387 15.3283 12.7225 15.5198 12.2779C15.6053 12.0814 15.7814 11.9382 15.9986 11.9099L16.9767 11.7767C17.2777 11.7351 17.5 11.4853 17.5 11.1906V8.81111C17.5034 8.51472 17.2794 8.26495 16.9784 8.22499ZM10.0017 12.3128C8.69014 12.3128 7.62653 11.2771 7.62653 10C7.62653 8.72286 8.69014 7.68715 10.0017 7.68715C11.3132 7.68715 12.3769 8.72286 12.3769 10C12.3769 11.2771 11.3132 12.3128 10.0017 12.3128Z",fill:"#B7B9BD"}))})},84860:(Qn,qe,s)=>{"use strict";s.d(qe,{_:()=>U,l:()=>C});var r=s(25582),I=s.n(r),J=s(69368),N=s(67787);const T=N.Ay.span.withConfig({displayName:"styled__StyledFormKey",componentId:"sc-1ecbqe2-0"})(["align-self:flex-start;display:flex;align-items:center;flex-basis:7em;height:34px;.required-sign{margin:0 0.25em;color:#eb5648;}"]),te=N.Ay.span.withConfig({displayName:"styled__StyledFormVal",componentId:"sc-1ecbqe2-1"})(["flex:1;& > .Input,.CoreInput{display:block;width:100%;.small{margin-top:12px;margin-bottom:12px;}}.Textarea,.CoreTextarea{display:block;width:100%;}.CoreCheck,.Radio,.CoreRadio,.CheckGroup,.CoreCheckGroup,.RadioGroup,.CoreRadioGroup{margin-top:calc((34px - 1.5em)/2);}"]),q=N.Ay.div.withConfig({displayName:"styled__StyledFormDiv",componentId:"sc-1ecbqe2-2"})(["display:flex;align-items:center;margin:0.5em 0;min-height:34px;"]),ne=N.Ay.label.withConfig({displayName:"styled__StyledFormLabel",componentId:"sc-1ecbqe2-3"})(["display:flex;align-items:center;margin:0.5em 0;min-height:34px;"]);var B=s(72214);function l(M){let{name:w,children:y,isRequired:j}=M;return(0,B.jsxs)(B.Fragment,{children:[w&&(0,B.jsxs)(T,{className:"FormEntry-Key key",children:[w,j&&(0,B.jsx)("span",{className:"required-sign",children:"*"})]}),(0,B.jsx)(te,{className:"FormEntry-Val val",children:y})]})}l.propTypes={children:I().node,name:I().any,isRequired:I().bool};function U(M){const{className:w,type:y}=M;return(0,B.jsx)(q,{className:(0,J.Hn)(["FormEntry",w]),type:y,children:(0,B.jsx)(l,{...M})})}U.propTypes={className:I().string,type:I().string};function C(M){const{className:w,type:y}=M;return(0,B.jsx)(ne,{className:(0,J.Hn)(["FormEntry",w]),type:y,children:(0,B.jsx)(l,{...M})})}C.propTypes={className:I().string,type:I().string}},84864:(Qn,qe,s)=>{"use strict";s.d(qe,{B:()=>te});var r=s(38502),I=s(18381),J=s(70933),N=s(67052),T=s(11032);const te=q=>{let{templateList:ne=[],marketTemplateListMap:B=new Map,isFromSameResource:l=!1}=q;const[U,C]=(0,r.useState)(new Set),[M,w]=(0,r.useState)(null),y=(0,I.d4)(N.fm),j=(0,I.d4)(J.HW),Q=(0,I.d4)(J.wA),ze=(0,I.wA)(),me=Le=>{var He;return(Le==null?void 0:Le.marketTemplateCid)||(Le==null||(He=Le.marketTemplateSource)==null?void 0:He.cid)},Se=Le=>{if(!l){const He=[...Le];He.filter(je=>{const ot=B==null?void 0:B.get(je),{show:we}=(0,T.o3)(ot,j);return we}).length==0&&He.length>0?w(B==null?void 0:B.get(He[0])):w(null)}},Me=Le=>{const He=new Set(U);He.has(Le)?He.delete(Le):He.add(Le),C(He);const ye=new Set;ne.forEach(je=>{He.has(je.key)&&ye.add(me(je))}),Se(ye)},De=()=>{MB.global.experienceLoginModalHelper("isSave")||M&&ze({type:"modal:update:state",payload:{resourcePurchaseModal:{isOpen:!0,resources:M,currentOrg:Q,paidCallback:onPaidResources,isFooter:!0}}})},tt=()=>{if(MB.global.experienceLoginModalHelper("isSave"))return;const{category:Le}=M||{};let He="",ye="";Le==="combo_group"?(He="\u7F16\u8F91\u533A-v8_\u539F\u578B\u7D20\u6750\u9762\u677F-\u7EC4\u4EF6_\u8D2D\u4E70VIP",ye="workspace-v8_components_buy_vip"):Le==="screen_list"?(He="\u7F16\u8F91\u533A-v8_\u539F\u578B\u7D20\u6750\u9762\u677F-\u9875\u9762_\u8D2D\u4E70VIP",ye="workspace-v8_pages_buy_vip"):(He="\u7F16\u8F91\u533A-v8_\u539F\u578B\u7D20\u6750\u9762\u677F-\u4F1A\u5458\u7D20\u6750_\u8D2D\u4E70VIP",ye="workspace-v8_template_buy_vip");const je={mode:"mat",payEntrance:He,checkoutArea:"proto",checkoutPlace:ye};MB.global.popupHelper.chargeAsync(je)},at=Le=>{const{type:He,key:ye,marketTemplateSource:je}=Le;return{isRequestRecent:!0,projectUpperType:He,projectUpperCid:je==null?void 0:je.cid,itemCid:ye,from:"template-modal",isTrack:!0}};return{checkedResourceSet:U,currentResources:M,handleChangeCheckedResource:Me,handleBySeparately:De,handleMemberClick:tt,handleAddItems:()=>{const Le=new Map;ne.forEach(ye=>{if(U.has(ye.key)){var je;const ot=me(ye),we=(je=Le.get(ot))!=null?je:[],$e=at(ye);Le.set(ot,[...we,{...ye,recent:$e}])}});const He=[...Le.keys()].map(ye=>{const je=y.get(ye);return[Le.get(ye),je]});ze({type:"modal:update:state",payload:{templateModal:{isOpen:!1}}}),ze({type:"entry:resources:quick:create:template",payload:{data:He}})},handleAddItemsAll:()=>{const Le=new Map;ne.forEach(ye=>{var je;const ot=me(ye),we=(je=Le.get(ot))!=null?je:[],$e=at(ye);Le.set(ot,[...we,{...ye,recent:$e}])});const He=[...Le.keys()].map(ye=>{const je=y.get(ye);return[Le.get(ye),je]});ze({type:"modal:update:state",payload:{templateModal:{isOpen:!1}}}),ze({type:"entry:resources:quick:create:template",payload:{data:He}})},handleSelectAll:()=>{const Le=ne==null?void 0:ne.map(ye=>ye.key),He=new Set;ne.forEach(ye=>{He.add(me(ye))}),C(new Set(Le)),Se(He)},handleClearAll:()=>{C(new Set)},handleOpenPreviewModal:Le=>{const He=ne.map(je=>je.marketTemplateSource?{...je}:{...je,marketTemplateSource:B.get(je==null?void 0:je.marketTemplateCid)}),ye=He==null?void 0:He.find(je=>je.key===Le);ze({type:"modal:update:state",payload:{resourcesSnapshotPreviewModal:{type:"page",isOpen:!0,list:He,currentTemplate:ye}}})}}}},84877:(Qn,qe,s)=>{"use strict";s.d(qe,{c:()=>yt});var r=s(95549),I=s(38502),J=s(3542),N=s(40867),T=s(53732),te=s.n(T);class q{constructor(){(0,r.A)(this,"inputFocused",!1),(0,r.A)(this,"editorMouseDown",!1),(0,r.A)(this,"onEditorMouseDown",()=>{this.editorFocused=!0}),(0,r.A)(this,"onInputMouseDown",()=>{this.inputFocused=!0}),(0,r.A)(this,"isEditorBlur",He=>(He.target.tagName==="INPUT"||He.target.tagName==="LABEL"||He.target.tagName==="TEXTAREA")&&!this.editorFocused?(this.inputFocused=!1,!0):(He.target.tagName!=="INPUT"||He.target.tagName!=="LABEL"||He.target.tagName!=="TEXTAREA")&&!this.inputFocused?(this.editorFocused=!1,!0):!1),(0,r.A)(this,"isEditorFocused",()=>this.inputFocused?(this.inputFocused=!1,!1):!0),(0,r.A)(this,"isToolbarFocused",()=>this.editorFocused?(this.editorFocused=!1,!1):!0),(0,r.A)(this,"isInputFocused",()=>this.inputFocused)}}let ne=[];const B={onKeyDown:Le=>{ne.forEach(He=>{He(Le)})},registerCallBack:Le=>{ne.push(Le)},deregisterCallBack:Le=>{ne=ne.filter(He=>He!==Le)}};let l;const U={open:()=>{l=!0},close:()=>{l=!1},isOpen:()=>l},M=Le=>He=>{if(!Le)return"";const ye=He.getData()&&He.getData().get("text-align");return ye?"rdw-"+ye+"-aligned-block":""};function w(Le,He){if(Le)for(const ye in Le)({}).hasOwnProperty.call(Le,ye)&&He(ye,Le[ye])}function y(Le,He){let ye=!1;if(Le){for(const je in Le)if({}.hasOwnProperty.call(Le,je)&&He===je){ye=!0;break}}return ye}function j(Le){return!Le||!Le.trim()}function Q(Le){return Object.prototype.toString.call(Le)==="[object Object]"}function ze(Le,He){const ye=Object.keys(Le).filter(ot=>He.indexOf(ot)<0),je={};return ye&&ye.length>0&&ye.forEach(ot=>{je[ot]=Le[ot]}),je}function me(Le){Le.stopPropagation()}const Me=(Le,He)=>ye=>{if(typeof He=="function"){const je=He(ye,Le,Le.getEditorState);if(je)return je}},De=/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205f\u3000]/g,tt=/^(?:(?:https?|ftps?|mailto):|[^a-z]|[a-z+.-]+(?:[^a-z+.:-]|$))/i;function at(Le){return String(Le).replace(De,"").match(tt)?Le:"#"}var ht=s(72214);function Je(Le,He,ye){Le.findEntityRanges(je=>{const ot=je.getEntity();return ot!==null&&ye.getEntity(ot).getType()==="LINK"},He)}function $(Le){return class extends I.Component{constructor(){super(...arguments),(0,r.A)(this,"state",{showPopOver:!1}),(0,r.A)(this,"openLink",()=>{const{entityKey:ye,contentState:je}=this.props,{url:ot}=je.getEntity(ye).getData(),we=window.open(at(ot),"blank");we&&we.focus()}),(0,r.A)(this,"toggleShowPopOver",()=>{const ye=!this.state.showPopOver;this.setState({showPopOver:ye})})}render(){const{children:ye,entityKey:je,contentState:ot}=this.props,{url:we,targetOption:$e}=ot.getEntity(je).getData();return(0,ht.jsx)("span",{className:"rdw-link-decorator-wrapper",onMouseEnter:this.toggleShowPopOver,onMouseLeave:this.toggleShowPopOver,children:(0,ht.jsx)("a",{href:at(we),target:$e,children:ye})})}}}const mt=Le=>({strategy:Je,component:$(Le)});class yt extends I.Component{constructor(He){super(He),(0,r.A)(this,"onEditorBlur",()=>{this.setState({editorFocused:!1})}),(0,r.A)(this,"onEditorFocus",ot=>{const{onFocus:we}=this.props;this.setState({editorFocused:!0});const $e=this.focusHandler.isEditorFocused();we&&$e&&we(ot)}),(0,r.A)(this,"onEditorMouseDown",ot=>{ot.button===2||this.focusHandler.onEditorMouseDown()}),(0,r.A)(this,"keyBindingFn",ot=>{if(ot.key==="Tab"){const{onTab:we}=this.props;if(!we||!we(ot)){const $e=(0,N.ar)(this.state.editorState,ot.shiftKey?-1:1,4);$e&&$e!==this.state.editorState&&(this.onChange($e),ot.preventDefault())}return null}return(ot.key==="ArrowUp"||ot.key==="ArrowDown")&&U.isOpen()&&ot.preventDefault(),(0,J.K6)(ot)}),(0,r.A)(this,"onWrapperBlur",ot=>{const{onBlur:we}=this.props;we&&this.focusHandler.isEditorBlur(ot)&&we(ot,this.getEditorState())}),(0,r.A)(this,"onChange",ot=>{const{readOnly:we,onEditorStateChange:$e}=this.props;!we&&!((0,N.iG)(ot)==="atomic"&&ot.getSelection().isCollapsed)&&($e&&$e(ot,this.props.wrapperId),y(this.props,"editorState")?this.afterChange(ot):this.setState({editorState:ot},this.afterChange(ot)))}),(0,r.A)(this,"setWrapperReference",ot=>{this.props.editorRef&&this.props.editorRef(ot),this.wrapper=ot}),(0,r.A)(this,"setEditorReference",ot=>{this.editor=ot}),(0,r.A)(this,"getCompositeDecorator",()=>{const ot=[...this.props.customDecorators||[],mt({})];return new J.t8(ot)}),(0,r.A)(this,"getWrapperRef",()=>this.wrapper),(0,r.A)(this,"getEditorState",()=>this.state?this.state.editorState:null),(0,r.A)(this,"afterChange",ot=>{setTimeout(()=>{const{onChange:we,onContentStateChange:$e}=this.props;we&&we((0,J.dM)(ot.getCurrentContent())),$e&&$e((0,J.dM)(ot.getCurrentContent()))})}),(0,r.A)(this,"isReadOnly",()=>this.props.readOnly),(0,r.A)(this,"createEditorState",ot=>{let we;if(y(this.props,"editorState"))this.props.editorState&&(we=J.$t.set(this.props.editorState,{decorator:ot}));else if(y(this.props,"defaultEditorState"))this.props.defaultEditorState&&(we=J.$t.set(this.props.defaultEditorState,{decorator:ot}));else if(y(this.props,"contentState")){if(this.props.contentState){const $e=(0,J.Ot)(this.props.contentState);we=J.$t.createWithContent($e,ot),we=J.$t.moveSelectionToEnd(we)}}else if(y(this.props,"defaultContentState")||y(this.props,"initialContentState")){let $e=this.props.defaultContentState||this.props.initialContentState;$e&&($e=(0,J.Ot)($e),we=J.$t.createWithContent($e,ot),we=J.$t.moveSelectionToEnd(we))}return we||(we=J.$t.createEmpty(ot)),we}),(0,r.A)(this,"filterEditorProps",ot=>ze(ot,["onChange","onEditorStateChange","onContentStateChange","initialContentState","defaultContentState","contentState","editorState","defaultEditorState","editorClassName","wrapperClassName","editorStyle","wrapperStyle","uploadCallback","onFocus","onBlur","onTab","mention","hashtag","ariaLabel","customBlockRenderFunc","customDecorators","handlePastedText","customStyleMap"])),(0,r.A)(this,"getStyleMap",ot=>({...(0,N.RM)(),...ot.customStyleMap})),(0,r.A)(this,"changeEditorState",ot=>{const we=(0,J.Ot)(ot);let{editorState:$e}=this.state;return $e=J.$t.push($e,we,"insert-characters"),$e=J.$t.moveSelectionToEnd($e),$e}),(0,r.A)(this,"focusEditor",()=>{setTimeout(()=>{var ot;(ot=this.editor)==null||ot.focus()})}),(0,r.A)(this,"handleKeyCommand",ot=>!1),(0,r.A)(this,"handleReturn",ot=>{if(U.isOpen())return!0;const{editorState:we}=this.state,$e=(0,N.h_)(we,ot);return $e?(this.onChange($e),!0):!1}),(0,r.A)(this,"handlePastedTextFn",(ot,we)=>{const{editorState:$e}=this.state,{handlePastedText:ge}=this.props;return ge?ge(ot,we,$e,this.onChange):!1}),(0,r.A)(this,"preventDefault",ot=>{ot.target.tagName==="INPUT"||ot.target.tagName==="LABEL"||ot.target.tagName==="TEXTAREA"?this.focusHandler.onInputMouseDown():ot.preventDefault()});const ye=He.wrapperId?He.wrapperId:Math.floor(Math.random()*1e4);this.wrapperId="rdw-wrapper-"+ye,this.focusHandler=new q,this.blockRendererFn=Me({isReadOnly:this.isReadOnly,getEditorState:this.getEditorState,onChange:this.onChange},He.customBlockRenderFunc),this.editorProps=this.filterEditorProps(He),this.customStyleMap=this.getStyleMap(He),this.compositeDecorator=this.getCompositeDecorator();const je=this.createEditorState(this.compositeDecorator);(0,N.Mn)(je),this.state={editorState:je,editorFocused:!1}}componentDidCatch(){this.forceUpdate()}componentDidUpdate(He){if(He===this.props)return;const ye={},{editorState:je,contentState:ot}=this.props;if(y(this.props,"editorState")&&je!==He.editorState)je?ye.editorState=J.$t.set(je,{decorator:this.compositeDecorator}):ye.editorState=J.$t.createEmpty(this.compositeDecorator);else if(y(this.props,"contentState")&&ot!==He.contentState)if(ot){const we=this.changeEditorState(ot);we&&(ye.editorState=we)}else ye.editorState=J.$t.createEmpty(this.compositeDecorator);(He.editorState!==je||He.contentState!==ot)&&(0,N.Mn)(ye.editorState),Object.keys(ye).length&&this.setState(ye),this.editorProps=this.filterEditorProps(this.props),this.customStyleMap=this.getStyleMap(this.props)}render(){const{editorState:He}=this.state,{editorClassName:ye,wrapperClassName:je,editorStyle:ot,wrapperStyle:we,ariaLabel:$e,canBlockAlign:ge=!1,lhVersion:Ze}=this.props;return(0,ht.jsx)("div",{id:this.wrapperId,className:te()(je,"rdw-editor-wrapper"),style:we,onBlur:this.onWrapperBlur,"aria-label":"rdw-wrapper",children:(0,ht.jsx)("div",{ref:this.setWrapperReference,className:te()(ye,"rdw-editor-main"),style:ot,onClick:this.focusEditor,onFocus:this.onEditorFocus,onBlur:this.onEditorBlur,onKeyDown:B.onKeyDown,onMouseDown:this.onEditorMouseDown,children:(0,ht.jsx)(J.KE,{ref:this.setEditorReference,keyBindingFn:this.keyBindingFn,editorState:He,onChange:this.onChange,blockStyleFn:M(ge),customStyleMap:this.getStyleMap(this.props),handleReturn:this.handleReturn,handlePastedText:this.handlePastedTextFn,blockRendererFn:this.blockRendererFn,handleKeyCommand:this.handleKeyCommand,ariaLabel:$e||"rdw-editor",blockRenderMap:N.qq,lhVersion:Ze,...this.editorProps})})})}}},85657:Qn=>{const qe=B=>({IMPORTANT:{className:"meta",begin:"!important"},HEXCOLOR:{className:"number",begin:"#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})"},ATTRIBUTE_SELECTOR_MODE:{className:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[B.APOS_STRING_MODE,B.QUOTE_STRING_MODE]}}),s=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],r=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"],I=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"],J=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],N=["align-content","align-items","align-self","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","auto","backface-visibility","background","background-attachment","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","clear","clip","clip-path","color","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","content","counter-increment","counter-reset","cursor","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-variant","font-variant-ligatures","font-variation-settings","font-weight","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inherit","initial","justify-content","left","letter-spacing","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marks","mask","max-height","max-width","min-height","min-width","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","perspective","perspective-origin","pointer-events","position","quotes","resize","right","src","tab-size","table-layout","text-align","text-align-last","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-indent","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","white-space","widows","width","word-break","word-spacing","word-wrap","z-index"].reverse();function T(B){return B?typeof B=="string"?B:B.source:null}function te(B){return q("(?=",B,")")}function q(){for(var B=arguments.length,l=new Array(B),U=0;U<B;U++)l[U]=arguments[U];return l.map(M=>T(M)).join("")}function ne(B){const l=qe(B),U={className:"built_in",begin:/[\w-]+(?=\()/},C={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},M="and or not only",w=/@-?\w[\w]*(-\w+)*/,y="[a-zA-Z-][a-zA-Z0-9_-]*",j=[B.APOS_STRING_MODE,B.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[B.C_BLOCK_COMMENT_MODE,C,B.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+y,relevance:0},l.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+I.join("|")+")"},{begin:"::("+J.join("|")+")"}]},{className:"attribute",begin:"\\b("+N.join("|")+")\\b"},{begin:":",end:"[;}]",contains:[l.HEXCOLOR,l.IMPORTANT,B.CSS_NUMBER_MODE,...j,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},U]},{begin:te(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:w},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:M,attribute:r.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...j,B.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+s.join("|")+")\\b"}]}}Qn.exports=ne},86102:Qn=>{/*!
* screenfull
* v5.2.0 - 2021-11-03
* (c) Sindre Sorhus; MIT License
*/(function(){"use strict";var qe=typeof window<"u"&&typeof window.document<"u"?window.document:{},s=Qn.exports,r=function(){for(var N,T=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],te=0,q=T.length,ne={};te<q;te++)if(N=T[te],N&&N[1]in qe){for(te=0;te<N.length;te++)ne[T[0][te]]=N[te];return ne}return!1}(),I={change:r.fullscreenchange,error:r.fullscreenerror},J={request:function(N,T){return new Promise((function(te,q){var ne=(function(){this.off("change",ne),te()}).bind(this);this.on("change",ne),N=N||qe.documentElement;var B=N[r.requestFullscreen](T);B instanceof Promise&&B.then(ne).catch(q)}).bind(this))},exit:function(){return new Promise((function(N,T){if(!this.isFullscreen){N();return}var te=(function(){this.off("change",te),N()}).bind(this);this.on("change",te);var q=qe[r.exitFullscreen]();q instanceof Promise&&q.then(te).catch(T)}).bind(this))},toggle:function(N,T){return this.isFullscreen?this.exit():this.request(N,T)},onchange:function(N){this.on("change",N)},onerror:function(N){this.on("error",N)},on:function(N,T){var te=I[N];te&&qe.addEventListener(te,T,!1)},off:function(N,T){var te=I[N];te&&qe.removeEventListener(te,T,!1)},raw:r};if(!r){s?Qn.exports={isEnabled:!1}:window.screenfull={isEnabled:!1};return}Object.defineProperties(J,{isFullscreen:{get:function(){return!!qe[r.fullscreenElement]}},element:{enumerable:!0,get:function(){return qe[r.fullscreenElement]}},isEnabled:{enumerable:!0,get:function(){return!!qe[r.fullscreenEnabled]}}}),s?Qn.exports=J:window.screenfull=J})()},87242:(Qn,qe,s)=>{"use strict";s.d(qe,{T:()=>G2});var r=s(70933),I=s(25997),J=s(53940),N=s(20089),T=s(79770),te=s(13217);const q=J.I,ne={"entry:move:canvas":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:f}=P;const{dx:g=0,dy:S=0}=f,_=b(),O=(0,r.ER)(_),V={x:O.x+g,y:O.y+S};u({type:"design:set:canvas:offset",payload:{offset:V}}),u({type:"entry:update:ruler"})},"entry:design:zoom:in":L=>{let{getState:P,dispatch:b}=L;const u=P(),f=(0,r.X_)(u),g=q.findIndex(_=>_>f),S=q[g]||q[q.length-1];b({type:"entry:set:scale",payload:{scale:S}})},"entry:design:zoom:out":L=>{let{getState:P,dispatch:b}=L;const u=P(),f=(0,r.X_)(u),g=q.findIndex(_=>_>=f),S=q[g-1]||q[0];b({type:"entry:set:scale",payload:{scale:S}})},"entry:design:zoom:widget":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{hotItem:f,mindKey:g}}=P;const S=b(),_=(0,I.UV)(S);if(!f)return;const O=document.querySelector('#canvas .group-list [data-cid="'+f.key+'"]')||document.querySelector('#mb-panel-edit-list [data-cid="'+f.key+'"]'),V=document.querySelector(".main-content");if(!O||!V)return;const H=O.getBoundingClientRect(),Y=V.getBoundingClientRect(),{leftSidePanelWidth:re}=(0,te._)(!1),pe=J.xM,Ce=Y.left+re,Pe=Y.top,Ie=Y.width-re-pe,Re=Y.height,We=H.left>=Ce&&H.right<=Ce+Ie,ct=H.top>=Pe&&H.bottom<=Pe+Re;if(!We||!ct){let vt=0,Ut=0,pn=0,fn=0;if(f.hotAttr.type===N.x.WMindNode&&g){const[Ro,ra]=(0,T.C0)(sdkStore,g,f.hotAttr),ka=_.mindTrees.get(g),pa=(ka==null?void 0:ka.getMindPosition())||{x:0,y:0},{w:Ma,h:Ya}=(ka==null?void 0:ka.getNodeSize(f.key))||{w:0,h:0};vt=Ma,Ut=Ya;const{x:di,y:ja}=(ka==null?void 0:ka.getNodePosition(f.key))||{x:0,y:0};pn=Ro+pa.x+di,fn=ra+pa.y+ja}else{const[Ro,ra,ka,pa]=(0,T.C0)(sdkStore,f.key,f.hotAttr);vt=ka-Ro,Ut=pa-ra,pn=Ro,fn=ra}const Mn=(0,r.X_)(S)/100,Gt=-vt/2-pn,yo=-Ut/2-fn,Do=Gt*Mn,Wo=yo*Mn;u({type:"current:update:state",payload:{currentScreenOriginOffset:{x:Do,y:Wo}}}),u({type:"design:set:canvas:offset",payload:{offset:{x:Do,y:Wo}}}),u({type:"entry:update:ruler"})}}};var B=s(79287),l=s.n(B),U=s(15515),C=s(93413),M=s(40625),w=s(29187),y=s(67052),j=s(4410),Q=s(22835),ze=s(30728),me=s(63902),Se=s(47695),Me=s(63763),De=s(4235),tt=s(24229),at=s(21385);const ht={name:"wImage",zIndex:20,r:0,w:500,h:176,opacity:1,isLock:!1,isVisible:!0,isLockAspect:!0,fixPosTo:"none",stickyOffset:null,interactions:[],animation:{aniName:"none",aniDelay:0,aniDuration:"1s",aniCount:1},fill:{fillIsVisible:!1,fill:"solid",solidColor:3857049087},border:{bdrIsVisible:!1,bdrColor:3149642751,bdrWidth:1,bdrStyle:"solid"},borderRadius:0,shadow:{type:"box_shadow",shadowIsVisible:!1,shadowColor:102,offsetX:0,offsetY:2,blurRadius:6,spreadRadius:0},flip:{flipH:!1,flipV:!1}},Je={name:"wImage",zIndex:20,r:0,w:380,h:134,opacity:1,isLock:!1,isVisible:!0,isLockAspect:!0,fixPosTo:"none",stickyOffset:null,interactions:[],animation:{aniName:"none",aniDelay:0,aniDuration:"1s",aniCount:1},fill:{fillIsVisible:!1,fill:"solid",solidColor:3857049087},border:{bdrIsVisible:!1,bdrColor:3149642751,bdrWidth:1,bdrStyle:"solid"},borderRadius:0,shadow:{type:"box_shadow",shadowIsVisible:!1,shadowColor:102,offsetX:0,offsetY:2,blurRadius:6,spreadRadius:0},flip:{flipH:!1,flipV:!1}};var $=s(92272),mt=s(67588),yt=s(75908);const Le=L=>setTimeout(()=>MB.commonGuideHelper.tryToShowGuide(C.c.GUIDE_NOVICE_V9_2408_STEP_1),L),He=()=>{if(MB.commonGuideHelper.checkGuideHasShown(C.c.GUIDE_NOVICE_V9_2408_STEP_1))return null;const L=document.querySelector("."+C.c.GUIDE_NOVICE_V9_2408_STEP_1),P=document.querySelector(".widget-panel-container");if(!L||!P)return null;L.getAttribute("data-cid")==="\u6D41\u7A0B"?setTimeout(()=>(0,yt._)(L,P,()=>Le(200)),50):Le(200)};var ye=s(32060);const je={"entry:initial:guide:type":async L=>{let{getState:P,dispatch:b}=L;const u=P(),{isExperience:f,isLoggedExperience:g}=(0,r.W4)(u);if(f||g)return;const S=(0,r.HW)(u),_=(0,r.wA)(u);if((0,mt.MZ)(u)==="recommend"){var H;!(0,Se.XM)()&&(H=(0,Se.yX)())!=null&&H.isCompleted&&setTimeout(()=>He(),200)}if(l()(S.created_at).isAfter("2023-08-17")&&!MB.commonGuideHelper.checkGuideHasShown(C.c.ENTER_DESIGN_PROTO_IN_SPACE_CREATED_DAY)){const pe=_?_.created_at:S.solo_active_date;l()().isSame(pe,"day")&&MB.commonGuideHelper.markGuideAsRead(C.c.ENTER_DESIGN_PROTO_IN_SPACE_CREATED_DAY)}const Y=(0,w.jN)(),re=(0,U.Yt)(M.d,!0,U.qW.Boolean);if(Y!=null&&Y.isCompleted){re||b({type:"update:taskList:isHide",payload:{isHide:!1}}),Y!=null&&Y.isShowTaskList&&b({type:"entry:show:taskList"});return}else Y!=null&&Y.isToShow&&(b({type:"update:taskList:isHide",payload:{isHide:!1}}),b({type:"update:taskList:isCollapse",payload:{isCollapse:!0}}));(0,ye.iX)(),(0,Se.rB)(u)},"entry:prepare:novice:guide:screen:data":async(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{mtResourceCid:f,marketTemplateKey:g,sceneTag:S}}=P;const _=b(),O=(0,r.X_)(_),V=(0,r.Ur)(_),Y=(0,y.fm)(_).get(f);if(!Y||!g)return;let re=0,pe=!0;const Ce=(0,at.VC)(S)==="PC";g.forEach(Pe=>{const Ie=[Pe],{w:Re,h:We}=(0,j.lY)({sub:Ie},Y);let{left:ct,top:vt}=(0,Q.u5)({width:Re,height:We,scale:O});Ce?(vt+=re,re+=We+80):(ct+=re,re+=Re+80);const Ut=ze.Z.xy(ct,vt),pn=V==null?void 0:V.cid,fn=Y.saveSubtree(Ie),uo=(0,me.BB)({data:fn,worldPos:Ut,keyRndSup:pn,currentPageKey:pn});pe&&(u({type:"entry:select:items",payload:{cids:uo}}),pe=!1),u({type:"entry:refresh:link-list"})}),u({type:"entry:zoom:fit:scale:offset"}),u({type:"entry:show:guide:popup:panel",payload:{isGuidePC:Ce}})},"entry:show:guide:popup:panel":async(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{isGuidePC:f}}=P;const g=(0,De.nE)(b());if(!g||g.length===0)return;const{key:S,hotAttr:{x:_,y:O,w:V,h:H}}=g[0],Y={left:_+V/2-10,top:O+H/2},re={left:_+V/2-650,top:O+H/2+100},pe=(0,tt.cF)("imgtip"),Ce={key:pe,hotAttr:{type:N.x.WImage,x:f?re.left:Y.left,y:f?re.top:Y.top,...f?ht:Je,image:{imageFilter:"",imageClipType:"none",imageRectAspectRatio:3.15,imageRectR:0,imageRectCenterX:f?222.2:168.87,imageRectCenterY:f?80.83:61.43,imageRectWidth:f?506.46:384.91,imageRectHeight:f?161.62:122.83,imageRectOriginalWidth:780,imageRectOriginalHeight:248,imageFillType:"stretch",imageRef:(0,$.q4)("\u5F15\u5BFC\u56FE\u7247","https://cdn.modao.cc/app_guide.png").key}},sub:[],sup:S};sdkStore.updateHotItem(Ce);const Pe=[{key:pe,hotAttr:{...Ce.hotAttr}}];u({type:"entry:widget:change",payload:{flatChgList:Pe,isCreateWidget:!0,shouldReBuildTree:!0}})},"entry:skip:novice:guide":async L=>{let{getState:P,dispatch:b}=L;const u=P(),f=(0,r.Ur)(u),g=sdkStore.findAllTypeUnder(f==null?void 0:f.cid,"rResCanvas");if((g==null?void 0:g.length)!==0)return;const S=(0,Me.gu)({type:N.x.Canvas,screen:f,attrs:{width:0,height:0}});b({type:"entry:batch:create:items",payload:{data:[{items:[S],width:S.w,height:S.h}],isSkipUpdateGuides:!0}}),b({type:"entry:zoom:fit:scale:offset"})},"entry:update:novice:guide:and:task":async(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{guideType:f,taskType:g}}=P;f&&(0,w.EG)(f),g&&u({type:"entry:update:guide:task",payload:{taskType:g}})},"entry:move:screen:right":L=>{var P,b;let{getState:u,dispatch:f}=L;const g=u(),S=(0,r.X_)(g),_=(0,r.ER)(g),O=(0,r.eo)(g),H=(P=(b=sdkStore.findAllTypeUnder(O,N.x.Canvas).pop())==null?void 0:b.key)!=null?P:null;if(H===null)return;const Y=sdkStore.getHotAABB(H),[re,pe]=Y,Pe=(pe-re)*(S/100),Ie={x:_.x+Pe,y:_.y};f({type:"design:set:canvas:offset",payload:{offset:Ie}})}};var ot=s(19249),we=s(18833);const $e=async()=>{let L=null;try{const P=await(0,ot.DE)("/api/library/v4/workspace_labels");P!=null&&P.keywords&&(L=P==null?void 0:P.keywords)}catch(P){(0,we.$r)()}return L},ge=async()=>{let L=[];try{const P=await(0,ot.DE)("/api/web/v3/configuration/square_search_keywords");P!=null&&P.keywords&&(L=P==null?void 0:P.keywords.split(/[,]/))}catch(P){(0,we.$r)()}return L};var Ze=s(93093),W=s(54190),an=s(8293),_t=s(37860);const nn={"entry:init:hotKeyWords":async L=>{let{dispatch:P,getState:b}=L;const u=b();if(!(0,y.t$)(u))try{const g=await ge(),S=g.length>0?g.slice(0,5):[];P({type:"update:popups:state",payload:{hotKeyWords:S}}),P({type:"resources:update:popupLoaded",payload:{isHotKeyWordsLoaded:!0}})}catch(g){(0,Ze.wd)("\u53D1\u751F\u4E25\u91CD\u62A5\u9519"),(0,Ze.Cp)(g)}},"entry:init:design:configurations":async L=>{let{dispatch:P,getState:b}=L;const u=b();if(!(0,y.RD)(u))try{const g=await(0,W.dC)(),S=(0,_t.nh)(),_={...g,...S};(0,an.IP)(g),P({type:"widget-panel:update:state",payload:{sceToPLabelMap:_}});const O=await $e();let V=[];O!=null&&O.screen_list&&(V=Object.keys(O==null?void 0:O.screen_list)),P({type:"page-panel:update:state",payload:{libraryFilterWords:V}}),P({type:"resources:update:popupLoaded",payload:{isFilterWordsLoaded:!0}})}catch(g){(0,Ze.wd)("\u53D1\u751F\u4E25\u91CD\u62A5\u9519"),(0,Ze.Cp)(g)}}};var Oe=s(70248),sn=s(14084),It=s(60651),Pt=s(24496),dt=s(50353),Vn=s(99917),o=s(78915),Gn=s(12410),xt=s(60312),Ot=s(30294),wt=s(19396),Kt=s.n(wt),fe=s(73662),bt=s(65057);const un={"entry:screenContainer:selecting":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{event:f}}=P;const{target:g}=f;if(g.closest(".selection-handler")||g.closest(".gap-adjuster")||g.closest(".imageWrapperResizeBox")||g.closest(".line"))return;const S=b(),_=(0,It.jx)(S),O=(0,Pt.WH)(S);!f.shiftKey&&!O&&setTimeout(()=>u({type:"entry:clear:selection"}),0),_!==o.qi.OnlyView&&u({type:"start:range:select",payload:{startX:f.clientX,startY:f.clientY}})},"entry:screenContainer:enter:editing:widget":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:f}=P;const g=f==null?void 0:f.event,S=b(),O=(0,It.jx)(S)===o.qi.OnlyView,V=(0,De.p$)(S),H=(0,I.UV)(S),Y=(0,sn.j)(S),re=(0,De.U2)(S);if(V.length!==1)return;const pe=H.getHotItem(V[0]);if(!pe)return;const{key:Ce,hotAttr:Pe}=pe,Ie=Pe.type;if(Ie===N.x.Canvas||Ie===N.x.WWrap||Ie===N.x.WIcon||Pe.isLock||Ie===N.x.WElbow&&g.target.classList.contains("line-rect-anchor"))return;if(O){Ie===N.x.WBasket&&Pe&&u({type:"entry:edit:bDanli",payload:{bDanliKey:Ce}});return}if(O)return;const Re=(0,xt.ji)(Pe);if(Ie===N.x.WElbow){const{elbow:{textPositionProportion:vt,dPathList:Ut,elbowType:pn}}=Pe;if(vt===void 0||vt===-1){const fn=(0,Ot.ce)(Ut,pn);u({type:"entry:elbow:update:textPositionProportion",payload:{key:Ce,textPositionProportion:fn}})}}if(Ie===N.x.WBasket){if(Y&&!O)return;Pe.basket==="bDanli"&&u({type:"entry:edit:bDanli",payload:{bDanliKey:re}})}else if((0,dt.a$)(Ie)&&!Re){if(Ie===N.x.WSwimlane)u({type:Gn.X.entryKey["entry:flow:text-edit:prepare"],payload:{event:g}});else{const vt=fe.y.query.getMissFontHiKeySet(S);if(vt&&vt.has(Ce)){u({type:fe.y.entryKey["font:miss:modal:open"]});return}u({type:"entry:set:editing:cid",payload:{item:pe}})}u({type:"entry:select:items",payload:{cids:[Ce]}})}else if(Ie===N.x.WImage){var We,ct;if(!Pe.image||!((We=Pe.image)!=null&&We.imageRef)||(0,Oe.OO)(Ce))return;((ct=Pe.image)==null?void 0:ct.imageClipType)==="none"&&sdkStore.updateHotAttrMerge(Ce,{image:{...Pe.image,imageClipType:Vn.Mg.square}}),u({type:"image:update:state",payload:{isEditingImageWrapperCid:Ce,currentImageOperateType:Vn.bl.cutting}}),u({type:"entry:select:items",payload:{cids:[Ce]}})}else if(Ie===N.x.WChart)u({type:"entry:chart:in:edit",payload:{widget:pe,trackType:"\u53CC\u51FB"}});else if(Re||(0,dt.X3)(Ie))u({type:"entry:select:items",payload:{cids:[Ce]}}),u({type:"mode:update:state",payload:{isEditingEditableWidgetCid:Ce}});else if([N.x.WMind,N.x.WTable].includes(Ie))u({type:"entry:select:items",payload:{cids:[Ce]}});else if(Ie===N.x.WCode)u({type:"entry:aiComponent:in:edit",payload:{cid:Ce}});else if(Ie===N.x.WGraph){if(Y)return;u({type:"entry:widget:graph:edit",payload:{action:"update-widget"}})}},"entry:screenContainer:create:widget:mousemove":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{event:f,isTear:g=!1}}=P;const S=b(),_=(0,r.X_)(S),O=(0,r.ER)(S),V=(0,r.$S)(S),H=(0,r.Ur)(S),Y=(0,De.p$)(S),re=(0,bt.mG)(f,{scale:_,offset:O,viewportRect:V}),pe=f.ctrlKey||f.metaKey,Ce=(0,bt.nS)({isTear:g,world:re,scale:_,newSelection:Y,currentPageKey:H.cid,isCtrlDown:pe});u(o.GO.hoverItem(Ce))},"entry:screenContainer:dragCanvas":(L,P)=>{var b,u;let{getState:f,dispatch:g}=L,{payload:{e:S}}=P;const _=S.clientX,O=S.clientY,V=f(),{x:H,y:Y}=(0,r.ER)(V);g({type:"close:contextmenu"}),g({type:"reducer:flag:set:is-dragging-canvas",payload:{isDraggingCanvas:!0}}),g({type:"comment:update:activeCommentCid",payload:{activeCommentCid:""}});const re=(b=(u=MB).getWidgetStore)==null?void 0:b.call(u).getTreeSize(),pe=Ie=>{const Re={x:H+(Ie.clientX-_),y:Y+(Ie.clientY-O)};g({type:"entry:set:canvas:offset",payload:{offset:Re}}),g(o.GO.toggleIsShowFloatingToolbar(!1))},Ce=re>800?Kt()(pe,16):pe,Pe=Ie=>{var Re;(Re=Ce.flush)==null||Re.call(Ce),document.removeEventListener("mousemove",Ce),document.removeEventListener("mouseup",Pe),g({type:"reducer:flag:set:is-dragging-canvas",payload:{isDraggingCanvas:!1}}),g(o.GO.toggleIsShowFloatingToolbar(!0))};document.addEventListener("mousemove",Ce),document.addEventListener("mouseup",Pe)}};var gt=s(10472),Wt=s(96986),Un=s(77709),Jn=s(7457),Yt=s(99587),rt=s(87765),An=s(63986),Nt=s.n(An),jt=s(59025),vn=s(74945),Dt=s(45815),$t=s(20315),kn=s(14166),Kn=s(40610),dn=s(81717),ft=s(5209),Lt=function(L){return L[L.Toolbar=1]="Toolbar",L[L.ShortCut=2]="ShortCut",L[L.TransformDoubleClick=3]="TransformDoubleClick",L[L.TransformSettingPanel=4]="TransformSettingPanel",L}(Lt||{});const bn={[Lt.Toolbar]:"\u9876\u90E8\u680F\u5355\u51FB",[Lt.ShortCut]:"\u5FEB\u6377\u952E",[Lt.TransformDoubleClick]:"\u7EC4\u4EF6\u8F6C\u6362-\u53CC\u51FB\u8DEF\u5F84",[Lt.TransformSettingPanel]:"\u7EC4\u4EF6\u8F6C\u6362-\u53F3\u4FA7\u9762\u677F\u6309\u94AE"};var Yn=function(L){return L[L.Enter=1]="Enter",L[L.Esc=2]="Esc",L[L.ClickBlank=3]="ClickBlank",L[L.Exit=4]="Exit",L[L.Other=5]="Other",L}(Yn||{});const on={[Yn.Enter]:"Enter",[Yn.Esc]:"Esc",[Yn.ClickBlank]:"\u70B9\u51FB\u7A7A\u767D",[Yn.Exit]:"\u70B9\u51FB\u5B8C\u6210\u7F16\u8F91",[Yn.Other]:"\u5176\u4ED6"},yn=(L,P,b)=>{(0,ft.kH)("add_vector_V8",{source:bn[L],vector_type:P?"\u95ED\u5408":"\u975E\u95ED\u5408",vector_finish:on[b]}),dn.Y4.editProjectNew("\u65B0\u5EFA\u77E2\u91CF")};var lo=s(62532),qn=s(93e3),Wn=s(27480),Nn=s(16402),xn=s(18637),Ye=s(8452);const wn=L=>({x:L.clientX,y:L.clientY}),Hn=(L,P)=>ze.Z.subtract(P,{x:L,y:J.E0}),zn=L=>{const P=MB.__store__.getState(),b=(0,It.lY)(P),{key:u}=b;if(!u)return;const f=(0,It.Je)(P),g=(0,Nn.n)(P),S=(0,Nn.H)(P),_=wn(L),O=Hn(g,_),V=qn.L.applyInverse(S,O),{hotAttr:{vector:H}}=sdkStore.getHotItem(u),Y=(H==null?void 0:H.points)||[],re=(0,xn.YW)(u),pe=Y.map(Re=>{let{x:We,y:ct}=Re;return re.apply({x:We,y:ct})});f!==0&&MB.action("start:range:select",{startX:L.clientX,startY:L.clientY});let Ce=!1;const Pe=Re=>{if(f!==0){const We=wn(Re),ct=Hn(g,We);if(ze.Z.distance(_,We)>2&&(Ce=!0),Ce){const vt=qn.L.applyInverse(S,ct),Ut=V.x<vt.x?V.x:vt.x,pn=V.x>=vt.x?V.x:vt.x,fn=V.y<vt.y?V.y:vt.y,uo=V.y>=vt.y?V.y:vt.y,Mn=Wn.rw.ltrb(Ut,fn,pn,uo),Gt=[];pe.forEach((yo,Do)=>{Wn.rw.contains(Mn,yo)&&Gt.push(Do)}),MB.action("mode:update:state",{vectorEditor:{key:u,selectedIndex:Gt,selectedAssistIndex:void 0}})}}},Ie=()=>{f!==0&&(Ce===!1&&(f===1?MB.action("mode:update:state",{vectorEditor:{key:u,selectedIndex:[],selectedAssistIndex:void 0}}):(b==null?void 0:b.selectedIndex.length)>0?MB.action("mode:update:state",{vectorEditor:{key:u,selectedIndex:[],selectedAssistIndex:void 0}}):MB.action("entry:vector:exit:edit",{end:Ye.z9.ClickBlank})),MB.action("mode:update:state",{enabledRangeSelection:0})),document.removeEventListener("mousemove",Pe),document.removeEventListener("mouseup",Ie)};document.addEventListener("mousemove",Pe),document.addEventListener("mouseup",Ie)};var ko=s(94754),On=s(13642),Mo=s(20119),jn=s(89054),xo=s(34860),jo=s(95657),Qo=s(60589),cn=s(21489),In=s(44229),tn=s(37780);let Jt=!1;const Xn={...un,...{"entry:screenContainer:mousedown":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{e:f}}=P;const g=b(),S=(0,r.wq)(g),_=(0,r.Sb)(g),O=(0,r.L8)(g),V=(0,Wt.sI)(g),H=(0,jo.y1)(g),Y=(0,It.Ro)(g),re=(0,It.lY)(g),pe=(0,vn.Q1)(g),Ce=(0,Wt.EH)(g),Pe=(0,It.jx)(g),{isSpaceDown:Ie}=(0,r.ZS)(g),Re=(0,r.YY)(g);if(f.button!==0)f.button===1?u({type:"entry:screenContainer:dragCanvas",payload:{e:f}}):u({type:"entry:screenContainer:contextmenu",payload:{e:f}});else if(u({type:"close:contextmenu"}),H)u({type:"entry:aiComponent:create:mousedown",payload:{event:f}});else if(Ie||Y)Pe===o.qi.OnlyView&&Y?u({type:"entry:screenContainer:pointDown",payload:{event:f}}):u({type:"entry:screenContainer:dragCanvas",payload:{e:f}});else if(V)u({type:"entry:comment:create:mousedown",payload:{event:f}});else if(re)zn(f);else if(pe)u({type:"entry:elbow:isInElbowMode:create",payload:{event:f,canInstantCreate:!1}});else if(S)if(_===dt.Hq.modal)u({type:"entry:template:screen:create",payload:{e:f}});else{const We=(0,jt.Y$)(S.metaType||S.type);u(We?{type:"entry:widget:quick:create",payload:{e:f}}:{type:"entry:widget:quick:create:noRect",payload:{e:f}})}else Re?u({type:"entry:widget:create:by:data",payload:{e:f}}):O?u({type:"entry:widget:quick:create:noRect",payload:{e:f}}):(Ce&&u({type:"entry:comment:create:mousedown",payload:{event:f}}),u({type:"entry:screenContainer:pointDown",payload:{event:f}}))},"entry:screenContainer:pointDown":(L,P)=>{var b;let{getState:u,dispatch:f}=L,{payload:{event:g}}=P;g.persist();const{target:S}=g,_=u(),O=(0,Mo.c)(_),V=(0,It.jx)(_),H=(0,It.IL)(_),Y=(0,De.p$)(_);if(S.closest(".resizable-handler")||S.closest(".square")||S.closest(".line")||S.closest(".canvas-title .is-editing-title")||g.target.closest('.public-DraftEditor-content[contenteditable="true"] .draft-image-atomic')||g.target.closest(".draft-link-decorator-a"))return;g.target.closest(".draft-link-toast")||!O&&On.A.emit("draft:link-toast:quit");const re=(b=sdkStore.getHotItem(H))==null?void 0:b.hotAttr.type,pe=H?CSS.escape(H):"",Ce=S.closest("#elbow-text-dom-"+pe);(Ce||re==="wElbow"&&S.closest(".wElbow #text-dom-"+pe))&&(Y.length===0||Y.length===1&&Ce.dataset.elbowKey===H)&&f({type:"elbow:update",payload:{isDraggingElbowText:!0}}),u().screencontainer.domVisibilityState||f({type:"update:screenContainer:state",payload:{domVisibilityState:!0}});const Pe=ze.Z.xy(g.clientX,g.clientY);Jt=!!H;const Ie=We=>{const ct=()=>{if(ze.Z.distance(Pe,vt)>1){if(document.removeEventListener("mousemove",Ie),document.removeEventListener("mouseup",Re),V===o.qi.OnlyView){if(g.target.closest(".read-only-text-can-select"))return;f({type:"entry:screenContainer:dragCanvas",payload:{e:g}})}else f({type:"entry:screenContainer:dragStart",payload:{event:g}});Jt=!1}},vt=ze.Z.xy(We.clientX,We.clientY);u().screencontainer.domVisibilityState&&ct()},Re=We=>{if(Jt=!1,V===o.qi.OnlyView){if(We.target.closest(".emoji-toast")||We.target.closest(".project-member-list")){document.removeEventListener("mousemove",Ie),document.removeEventListener("mouseup",Re);return}f({type:"comment:update:activeCommentCid",payload:{activeCommentCid:""}})}if(f({type:"entry:screenContainer:mousedown:hit",payload:{event:g,rehitForContextMenu:!1,gas:0}}),V===o.qi.OnlyView&&!xo.eT){const ct=(0,De.p$)(u());(0,jn.f3)(ct[0])}document.removeEventListener("mousemove",Ie),document.removeEventListener("mouseup",Re),f({type:"entry:screenContainer:mouseup",payload:{event:We}})};document.addEventListener("mousemove",Ie),document.addEventListener("mouseup",Re)},"entry:screenContainer:contextmenu":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{e:f}}=P;const g=b();if((0,r.wq)(g)||MB.f.editing||f.target.closest(".iconWrap")||(f.preventDefault(),f.ctrlKey))return;const _={left:f.clientX,top:f.clientY};u({type:"entry:screenContainer:mousedown:hit",payload:{event:f,rehitForContextMenu:!0,gas:0}}),u({type:"entry:contextmenu:withtype",payload:{position:_}})},"entry:screenContainer:mousemove":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{event:f}}=P;if(MB.f.isResizing||Jt)return;const g=b();if((0,r.pO)(g))return;if((0,$t.LS)(g).bindingKey!==""){u(o.GO.update({isHitVectorPath:!1}));return}const{isKeySDown:O}=(0,r.ZS)(g);if(O||(0,r.AW)(g)||(0,Qo.vv)(g)||(0,Jn.RT)(g))return;if(f.target.closest(".design-widget-portal-menu")){u(o.GO.update({hover:{item:"",panel:""}}));return}if((0,jo.y1)(g)){u({type:"entry:aiComponent:create:mousemove",payload:{event:f}});return}const pe=(0,r.X_)(g),Ce=(0,r.ER)(g),Pe=(0,r.$S)(g),Ie=(0,r.eo)(g),Re=(0,It.jx)(g),We=(0,De.p$)(g),ct=(0,r.iv)(g),vt=(0,r.w8)(g),Ut=(0,It._b)(g),pn=(0,lo.o5)(g),fn=(0,Wt.fd)(g),uo=(0,It.Ro)(g),Mn=(0,Wt.sI)(g),Gt=(0,Wt.Cb)(g),yo=(0,Wt.AU)(g),Do=(0,Jn.nF)(g),Wo=(0,Jn.tC)(g),Ro=(0,r.rV)(g),{isEditingCombo:ra}=(0,gt.r)(g),ka=(0,bt.mG)(f,{scale:pe,offset:Ce,viewportRect:Pe}),pa=f.ctrlKey||f.metaKey||Ut,Ma=(0,vn.rP)(g),Ya=(0,r.wq)(g),di=(0,Un.$7)(g),ja=f.altKey,ri=(0,$t.jy)(g),ks=(0,$t.Hr)(g),ti=(0,$t.tI)(g),vi=(0,It.lY)(g),Hr=(0,It._W)(g),Yr=(0,It.IL)(g),br=Gn.X.query.getIsDeepEditing(g),zi=(0,vn.Q1)(g),mr=(0,bt.mG)(f,{scale:100,offset:Ce,viewportRect:Pe}),pi={x:mr.x/pe*100,y:mr.y/pe*100};if(Ya||ri){const pl=(Ya==null?void 0:Ya.type)===N.x.WTear||(We==null?void 0:We.length)===1,Va=(Ya==null?void 0:Ya.type)===N.x.WVector;pl&&!Va&&u({type:"entry:screenContainer:create:widget:mousemove",payload:{event:f,isTear:pl}}),vi&&Hr&&u(o.GO.update({isHitVectorPath:!1})),(Ya==null?void 0:Ya.type)===N.x.Canvas&&u({type:"update:screenContainer:state",payload:{cursorPos:pi}});return}if(ti&&f.target.closest(".STSticky")){Yr&&u(o.GO.hoverItem(""));return}if((!ri&&(pn||uo&&Re!==o.qi.OnlyView||Ro.isActive||MB.f.isResizing||ks)||vi||br)&&Yr&&u(o.GO.hoverItem("")),fn){const pl=(0,cn.xJ)(ka,Ie);Yr!==pl&&u(o.GO.hoverItem(pl));return}const ui=yo.find(pl=>pl.cid===Gt);if(Mn||ui){u({type:"entry:screenContainer:create:widget:mousemove",payload:{event:f}}),u({type:"entry:comment:create:mousemove",payload:{event:f}});return}const tl=Do||ja||Ma||zi||ri||Wo||(Ya==null?void 0:Ya.type)===N.x.WTear,Yi=!tl,us=(0,T.Dg)(ka,pe/100,Ie,{isDraggingElbow:Ma||zi,isShowSticky:di,isDraggingWTear:ri,needHitCanvasEdge:Yi,event:f},We);if((0,T.h9)(us,We,pa||Ma||zi?"ctrl":"default",tl),us!=null&&us.hitKey){const pl=(ri||Wo)&&us.hitIType===N.x.WSticky;let Va=us.hitKey;if(pl&&(Va=""),Do){const hs=sdkStore.locUpColdCanvasKey(us.hitKey),Xs=sdkStore.locUpColdCanvasKey(We[0]||"");(0,Oe.OO)(Va)?Va=Xs!==hs?Va:"":hs?Va===Xs?Va="":Xs!==hs&&(Va=us.hitIType===N.x.Canvas?Va:hs||""):Va=ra?Va:"",Va===We[0]&&(Va="")}if(Re!==o.qi.OnlyView&&Kn.LM.includes(us.hitIType)&&We.length===1&&We[0]===Va){if(!(0,jt.td)([Va])){const Xs=(0,T.AJ)(ka,pe/100,Va);Xs!==Hr&&u(o.GO.update({isHitVectorPath:Xs}))}}else Hr&&u(o.GO.update({isHitVectorPath:!1}));Yr!==Va&&u(o.GO.hoverItem(Va));const Xi=We.length===1&&us.hitKey===We[0];if(Re!==o.qi.OnlyView&&Xi&&(0,dt.v8)(us.hitIType)&&u({type:"reducer:flag:set-isShowRadiusResizer",payload:{isShowRadiusResizer:!0}}),Re===o.qi.OnlyView&&u(o.GO.toggleHandMode(!1)),zi){const hs=(0,Dt.s)(us.hitKey,pi);u(hs!==void 0?{type:"elbow:update",payload:{highlightAnchor:hs.key}}:{type:"elbow:update",payload:{highlightAnchor:""}})}}else Yr&&u(o.GO.hoverItem("")),Hr&&u(o.GO.update({isHitVectorPath:!1})),Re!==o.qi.OnlyView&&ct&&u({type:"reducer:flag:set-isShowRadiusResizer",payload:{isShowRadiusResizer:vt}}),Re===o.qi.OnlyView&&u(o.GO.toggleHandMode(!0));u({type:"update:screenContainer:state",payload:{cursorPos:pi}})},"entry:screenContainer:mousedown:hit":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{event:f,rehitForContextMenu:g,gas:S}}=P;const _=b(),O=(0,r.X_)(_),V=(0,r.ER)(_),H=(0,r.$S)(_),Y=(0,r.eo)(_),re=(0,De.p$)(_),pe=(0,Yt.P2)(_),Ce=(0,lo.o5)(_),{isAdjustingColGap:Pe,isAdjustingRowGap:Ie}=(0,rt.$)(_),Re=(0,It.jx)(_),We=(0,Wt.sI)(_),ct=(0,Wt.Cb)(_),vt=(0,Wt.AU)(_),Ut=(0,It._b)(_),pn=(0,Un.$7)(_),fn=(0,It.lY)(_),uo=(0,It.IL)(_),{isKeySDown:Mn}=(0,r.ZS)(_);if(Mn)return;const{shiftKey:Gt,ctrlKey:yo,metaKey:Do}=f,Wo=(0,bt.mG)(f,{scale:O,offset:V,viewportRect:H}),Ro=yo||Do||Ut,ra=S>0?"dblclick":Ro?"ctrl":"default";if(ra==="dblclick"){const Hr=document.elementFromPoint(f.clientX,f.clientY);if(Hr!=null&&Hr.closest(".DraftEditor-editorContainer")||Hr!=null&&Hr.closest(".STSticky")||Hr!=null&&Hr.closest(".table-add-handle"))return}if(pe||Ce||Pe||Ie||fn!=null&&fn.key)return;let ka;const pa=vt.find(Hr=>Hr.cid===ct);if(We||pa)return;const Ma=(0,T.Dg)(Wo,O/100,Y,{isShowSticky:pn,needHitCanvasEdge:!0,event:f},re),Ya=Ut&&f.buttons===1&&Ma.hitKey,{hasUnusedDblclick:di}=(0,T.h9)(Ma,re,ra,!1);if(Ma.hitKey&&(ka=Ma.hitKey),Ya&&Ma.hitIType==="wLr"){const Hr=(0,T.Dg)(Wo,O/100,Y,{isShowSticky:pn,needHitCanvasEdge:!0,filterKey:Ma.hitKey,event:f},re);Hr.hitKey!==void 0&&Hr.hitKey!==Ma.hitKey&&MB.notice({text:I18N.ContextMenu.inspect_lr,type:"info"})}let ja=!1;if(Kn.LM.includes(Ma.hitIType)?ja=!(0,jt.td)([ka]):N.x.WMind===Ma.hitIType&&u(o.GO.toggleIsShowFloatingToolbar(!0)),di){if(ka){if(ja&&Ma.hitIType!=="wLine"&&(0,T.AJ)(Wo,O/100,ka)){u({type:"entry:vector:enter:edit",payload:{key:ka}}),u({type:"update:screenContainer:state",payload:{addVectorSource:Ma.hitIType===N.x.WVector?null:Lt.TransformDoubleClick}});return}u({type:"entry:screenContainer:enter:editing:widget",payload:{event:f}})}return}let ri=(0,T.jT)(re,ka,Gt&&!Ut,g);if(ri.length===0&&g){const Hr=(0,T.Tg)(Wo,Y);Hr&&(ri=[Hr])}if(!Nt()(re,ri)){var ks,ti,vi;const Hr=((ks=ri)==null?void 0:ks.length)===1?ri[0]:"";if(uo!==Hr&&u(o.GO.hoverItem(Hr)),u({type:"flow:update:clear"}),(ti=ri)!=null&&ti.length?(u({type:"entry:select:items",payload:{cids:ri}}),(0,In._o)(()=>{const Yr=(0,De.p$)(b());Yr!=null&&Yr.length&&u({type:"entry:expend:groupOrCanvasOrBasket",payload:{cids:Yr}})},{timeout:200})):(u({type:"entry:clear:selection"}),u(tn.R7.command.clearAllCommand({}))),((vi=ri)==null?void 0:vi.length)===1){const Yr=sdkStore.getHotItem(ri[0]);Yr&&Re!==o.qi.OnlyView&&(0,dt.v8)(Yr.hotAttr.type)&&u({type:"reducer:flag:set-isShowRadiusResizer",payload:{isShowRadiusResizer:!0}})}}},"entry:screenContainer:mouseup":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{event:f}}=P;const g=b(),S=(0,De.p$)(g);if((S==null?void 0:S.length)===1){const _=sdkStore.getHotItem(S[0]);if(_.hotAttr.type===N.x.WElbow)u({type:"elbow:update",payload:{isDraggingElbowText:!1,activeElbowKey:"",highlightAnchor:""}});else if(_.hotAttr.type===N.x.WTear){const O=f.button===0;u({type:"ST:toggle:wTearLeftDown",payload:{isLeftDown:O,activeTearKey:_.key}})}}},"entry:screenContainer:dragStart":(L,P)=>{var b;let{getState:u,dispatch:f}=L,{payload:{event:g}}=P;const S=u(),_=(0,r.X_)(S),O=(0,r.ER)(S),V=(0,r.$S)(S),H=(0,De.p$)(S),Y=(0,It.IL)(S),re=(0,vn.CP)(S),pe=Gn.X.query.getIsShallowEditing(S),{isAdjustingColGap:Ce,isAdjustingRowGap:Pe}=(0,rt.$)(S),Ie=(0,Pt.WH)(S);if(re||Ce||Pe||pe)return;const Re=H.filter(Ut=>!sdkStore.getHotItem(Ut).hotAttr.isLock),We=(0,bt.mG)(g,{scale:_,offset:O,viewportRect:V}),ct=Re.length>0&&!Re.includes(Ie)&&(0,kn.N0)(sdkStore.getHotKeyListAABB(Re),We),vt=Y!==""&&!((b=sdkStore.getHotItem(Y))!=null&&(b=b.hotAttr)!=null&&b.isLock)&&(Ie?Y!==Ie:!0);ct||vt?(Y&&!H.includes(Y)&&f({type:"entry:screenContainer:mousedown:hit",payload:{event:g}}),f({type:"entry:event:item:drag-start",payload:{event:g}})):f({type:"entry:screenContainer:selecting",payload:{event:g}})},"entry:screenContainer:drop":async(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{e:f}}=P;f.stopPropagation(),f.preventDefault();const g=b(),S=(0,It.jx)(g),{isExperience:_,isLoggedExperience:O}=(0,r.W4)(g),V=(0,r.Pz)(g),H=(0,r.PL)(g),Y=(0,r.HW)(g),re=(0,r.wA)(g),pe=(0,r.X_)(g);if(S===o.qi.OnlyView)return;if(_||O){MB.notice({text:I18N.LibraryContainer.un_save_tips});return}MB.f.editingRichText&&u({type:"quit:rich:text:editing"}),u({type:"entry:clear:selection"});const Ce=pe/100;let Pe=f.nativeEvent.pageY-(V==null?void 0:V.canvasTop);const Ie=f.nativeEvent.pageX-(V==null?void 0:V.canvasLeft),Re=[];await(0,ko.i3)({files:f.nativeEvent.dataTransfer.files,rootProject:H,isCreate:!0,callback:(We,ct)=>{const vt=(We==null?void 0:We.w)||(We==null?void 0:We.width)||0,Ut=(We==null?void 0:We.h)||(We==null?void 0:We.height)||0;We.top=Math.round(Pe/Ce)+Ut/2,We.left=Math.round(Ie/Ce)+vt/2;const pn=We.type===N.x.WIcon?(0,$.kk)(We):(0,$.BL)(We);Re.push(pn),Pe+=pn.h*Ce,ct&&u({type:"entry:batch:create:items",payload:{data:[{items:Re,width:pn.w,height:pn.h}],offset:{top:0,left:0},isShouldCalcSup:!0}})}},Y,re)}}};var Dn=s(32424),go=s(78401),Uo=s(61627),Ho=s(31348),ua=s(70466),la=s(86493);const To=L=>{const P=(0,r.X_)(L),b=(0,r.ER)(L),u=(0,r.$S)(L);return{scale:P/100,offset:b,size:u}},Ia={...ua.u,"entry:comment:create:mousedown":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{event:f}}=P;const g=b(),S=(0,Wt.sI)(g),_=(0,r.X_)(g),O=(0,r.ER)(g),V=(0,r.$S)(g),H=(0,Wt.nO)(g),Y=(0,Wt.fd)(g),re=(0,Wt.YW)(g),pe=(0,Wt.AU)(g),Ce=(0,Wt.Cb)(g),Pe=(0,Wt.V8)(g);if((0,cn.m0)(f)){H&&u({type:"comment:update:startCommentAnchorPoint",payload:{startCommentAnchorPoint:null}}),Y&&u({type:"entry:comment:benot-dragging"});return}if(re)return;const Ie=(0,ua.F)();if(Ie){u({type:"entry:comment:wigglingCommentCid",payload:{wigglingCommentCid:Ie}});return}if(Pe){u({type:"entry:comment:clear"});return}if(Ce){const Mn=pe.find(Gt=>Gt.cid===Ce);if(Mn){const{comments:Gt}=Mn,yo=(0,Wt.Ou)(g);[Mn,...Gt].find(Wo=>Wo.cid===yo)&&u({type:"comment:update:editingRecordCid",payload:{editingRecordCid:""}})}u({type:"comment:update:activeCommentCid",payload:{activeCommentCid:""}});return}if(!S)return;const We=(0,I.UV)(g).getRootSnapshot().key,ct=(0,bt.mG)(f,{scale:_,offset:O,viewportRect:V}),vt=(0,cn.xJ)(ct,We),Ut=(0,cn.vl)(ct,vt),{cid:pn}=(0,r.Ur)(g),{user:fn}=window.MB,uo={threadType:"point",cid:(0,Dn.xc)(),isCompleted:!1,comments:[],screenCid:pn||"",canvasCid:vt||"",canvasVec2:Ut,message:"",x:ct.x,y:ct.y,w:0,h:0,z:1,userInfo:fn,userId:fn==null?void 0:fn.id,vec2:ct,rect:null,status:"creating"};u({type:"comment:update:startCommentAnchorPoint",payload:{startCommentAnchorPoint:ct}}),u({type:"comment:update:creatingComment",payload:{creatingComment:uo}})},"entry:comment:create:mousemove":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{event:f}}=P;const g=b(),S=(0,Wt.nO)(g),O=(0,I.UV)(g).getRootSnapshot().key,V=(0,r.X_)(g),H=(0,r.ER)(g),Y=(0,r.$S)(g);if(!S)return;let re=(0,Wt.V8)(g);if(!re)return;const pe=(0,bt.mG)(f,{scale:V,offset:H,viewportRect:Y});if(ze.Z.distance(S,pe)<5){const Pe=(0,cn.xJ)(pe,O),Ie=(0,cn.vl)(pe,Pe);re={threadType:"point",...re,canvasVec2:Ie,vec2:pe,rect:null,x:pe.x,y:pe.y,w:0,h:0,canvasCid:Pe||""},u(o.GO.hoverItem(Pe))}else{const{x:Pe,y:Ie}=S,{x:Re,y:We}=pe,ct={x:Pe<=Re?Pe:Re,y:Ie<=We?Ie:We,w:Math.abs(Re-Pe),h:Math.abs(We-Ie),rotate:0},vt=[ct.x,ct.y,ct.x+ct.w,ct.y+ct.h],Ut=(0,cn.kJ)(vt,O),pn=(0,cn.vl)(ct,Ut);re={...re,threadType:"frame",vec2:null,rect:ct,x:Pe<=Re?Pe:Re,y:Ie<=We?Ie:We,w:Math.abs(Re-Pe),h:Math.abs(We-Ie),canvasVec2:pn,canvasCid:Ut||""},u(o.GO.hoverItem(Ut))}u({type:"comment:update:creatingComment",payload:{creatingComment:re}})},"entry:comment:create:mouseup":L=>{let{getState:P,dispatch:b}=L;const u=P();if(!(0,Wt.nO)(u))return;b({type:"comment:update:isCommentDragging",payload:{isCommentDragging:!1}});const g=(0,Wt.V8)(u);g&&(b({type:"comment:update:activeCommentCid",payload:{activeCommentCid:g.cid}}),b({type:"comment:update:editorRawContentObject",payload:{editorRawContentObject:{}}}),b({type:"comment:update:editorIsEditing",payload:{editorIsEditing:!0}}),b({type:"comment:update:editingCommentCid",payload:{editingCommentCid:g.cid}})),b({type:"comment:update:startCommentAnchorPoint",payload:{startCommentAnchorPoint:null}})},"entry:comment:resize":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{cid:f,rect:g}}=P;const S=b(),_=(0,Wt.AU)(S),V=(0,I.UV)(S).getRootSnapshot().key,H=(0,Wt.V8)(S);if(!_.find(Re=>Re.cid===f)&&(H==null?void 0:H.cid)!==f)return;const re=Wn.rw.enclosingRects([g]),pe=[g.x,g.y,g.x+g.w,g.y+g.h],Ce=(0,cn.kJ)(pe,V),Pe=(0,cn.vl)(g,Ce),Ie={x:re.x,y:re.y,w:re.w,h:re.h,canvasVec2:Pe,canvasCid:Ce||""};if((H==null?void 0:H.cid)===f){const Re={...H,...Ie,rect:{...re}};u({type:"comment:update:creatingComment",payload:{creatingComment:Re}})}else u({type:"entry:comment:update:item",payload:{cid:f,attr:Ie}});u(o.GO.hoverItem(Ce))},"entry:comment:cancel":L=>{let{getState:P,dispatch:b}=L;b({type:"entry:comment:clear"})},"entry:comment:confirm":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{cid:f}}=P;const g=b(),S=(0,Wt.V8)(g),_=(0,Wt.AU)(g),O=(0,Wt.uX)(g),V=(0,r.$5)(g),H=S||_.find(ct=>ct.cid===f);if(!H)return;const{user:Y}=window.MB,re=V||[],{content:pe,replyUserCid:Ce,userCids:Pe}=(0,cn.bL)(O);let Ie="";const Re=Pe.concat(Ce).filter(Boolean);if(S)Ie=Re.length>0?"appointed":"comment";else{Ie=Re.length>0?"replied_appoint":"replied_comment";const{userInfo:ct}=H;if(Y.cid!==ct.cid){const vt=re.find(Ut=>Ut.user_cid===ct.cid);vt&&(ct.name=vt.name,ct.avatar=vt.avatar,ct.email=vt.email),ct.cid}}const We=(0,la.qn)(O);u({type:"entry:comment:noticeAtUsers",payload:{content:pe,noticeType:Ie,userCids:Re,commentCid:f}}),u(S?{type:"entry:comment:init:item",payload:{type:"thread",curComment:H,message:We}}:{type:"entry:comment:init:item",payload:{type:"content",curComment:H,message:We}}),u({type:"comment:update:creatingComment",payload:{creatingComment:null}}),u({type:"comment:update:editorRawContentObject",payload:{editorRawContentObject:{}}}),u({type:"comment:update:editorIsEditing",payload:{editorIsEditing:!1}}),u({type:"comment:update:editingCommentCid",payload:{editingCommentCid:""}}),u({type:"comment:update:startCommentAnchorPoint",payload:{startCommentAnchorPoint:null}}),u(o.GO.hoverItem(""))},"entry:comment:delete":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{cid:f}}=P;const g=b(),S=(0,Wt.AU)(g);if(!f)return;const _=S.find(H=>H.cid===f);if(!_)return;const{userInfo:O}=_,{user:V}=window.MB;if(V.cid!==O.cid){MB.notice({text:"\u5220\u9664\u8BC4\u8BBA\u6743\u9650\u4E0D\u8DB3"});return}u({type:"entry:comment:del:item",payload:{cid:f}}),u({type:"comment:update:activeCommentCid",payload:{activeCommentCid:""}}),u({type:"comment:update:editingCommentCid",payload:{editingCommentCid:""}}),u({type:"comment:update:editingRecordCid",payload:{editingRecordCid:""}})},"entry:comment:record:editing":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{cid:f,recordCid:g}}=P;const S=b(),O=(0,Wt.AU)(S).find(H=>H.cid===f);!O||![...O.comments,O].find(H=>H.cid===g)||(u({type:"comment:update:editorIsEditing",payload:{editorIsEditing:!1}}),u({type:"comment:update:editingCommentCid",payload:{editingCommentCid:""}}),u({type:"comment:update:editingRecordCid",payload:{editingRecordCid:g}}))},"entry:comment:record:delete":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{cid:f,recordCid:g}}=P;const S=b(),O=(0,Wt.AU)(S).find(H=>H.cid===f);!O||![...O.comments,O].find(H=>H.cid===g)||(u({type:"entry:comment:del:item",payload:{cid:g||f}}),u({type:"comment:update:editingRecordCid",payload:{editingRecordCid:""}}))},"entry:comment:record:confirm":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{cid:f,recordCid:g,rawContent:S}}=P;const _=b(),V=(0,Wt.AU)(_).find(We=>We.cid===f);if(!V)return;let H=-1,Y=null;if(V.cid===g?Y=V:V.comments.forEach((We,ct)=>{We.cid===g&&(H=ct,Y=We)}),!Y)return;const{content:re,replyUserCid:pe,userCids:Ce}=(0,cn.bL)(S),Pe=Ce.concat(pe).filter(Boolean);let Ie="";H===-1?(Ie="comment",Pe.length>0&&(Ie="appointed")):(Ie="replied_comment",Pe.length>0&&(Ie="replied_appoint")),u({type:"entry:comment:noticeAtUsers",payload:{content:re,noticeType:Ie,userCids:Pe,commentCid:f}});const Re={message:S,mtime:rootSdk.fssCmt.getClockStore().getMtime()};u({type:"entry:comment:update:item",payload:{cid:g||f,attr:Re}}),u({type:"comment:update:editingRecordCid",payload:{editingRecordCid:""}})},"entry:comment:record:cancel":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{cid:f,recordCid:g}}=P;const S=b(),O=(0,Wt.AU)(S).find(Y=>Y.cid===f);!O||![O,...O.comments].find(Y=>Y.cid===g)||!(0,Wt.Ou)(S)||u({type:"comment:update:editingRecordCid",payload:{editingRecordCid:""}})},"entry:comment:anchor:mousedown":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{event:f,comment:g}}=P;const S=b(),_=To(S),O=(0,Wt.V8)(S),V=(0,Wt.Cb)(S),H=(0,Wt.az)(S),Y={x:f.pageX,y:f.pageY},re={...g};let pe;if(re.vec2){const Pe=qn.L.apply(_,re.vec2),Ie=Y.x-Pe.x,Re=Y.y-Pe.y;pe={x:Ie,y:Re}}const Ce=(0,ua.F)();if(Ce){u({type:"entry:comment:wigglingCommentCid",payload:{wigglingCommentCid:Ce}});return}O&&u({type:"comment:update:creatingComment",payload:{creatingComment:null}}),u({type:"entry:clear:selection"}),(0,go.FJ)({onPointerDown:()=>{g.cid===H&&u({type:"entry:comment:clear"})},onDragStart:()=>{const Pe=(0,It.Ro)(S);(0,It.jx)(S)!==o.qi.OnlyView&&Pe||!(0,xo.OB)()&&!MB.canEditByCurrentUser||u({type:"entry:comment:be-dragging"})},onDrag:(Pe,Ie)=>{const Re=(0,It.Ro)(S);(0,It.jx)(S)!==o.qi.OnlyView&&Re||!(0,xo.OB)()&&!MB.canEditByCurrentUser||u({type:"entry:comment:drag",payload:{cid:g.cid,prevComment:re,prevPoint:Y,curPoint:{x:Pe,y:Ie},vec2Delta:pe}})},onDrop:(Pe,Ie)=>{const Re=re&&re.cid;Ie&&!V&&u({type:"comment:update:activeCommentCid",payload:{activeCommentCid:g.cid}}),Ie&&g.cid===Re&&["created","checked"].includes(g.status)?g.cid===V?u({type:"comment:update:activeCommentCid",payload:{activeCommentCid:""}}):u({type:"comment:update:activeCommentCid",payload:{activeCommentCid:g.cid}}):u({type:"comment:update:activeCommentCid",payload:{activeCommentCid:g.cid}}),setTimeout(()=>{u({type:"entry:comment:benot-dragging",payload:{cid:g.cid,undo:!0}}),u(o.GO.hoverItem(""))},16.7)}})},"entry:comment:drag":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{cid:f,prevComment:g,prevPoint:S,curPoint:_,vec2Delta:O}}=P;const V=b(),H=(0,Wt.AU)(V),Y=To(V),re=(0,r.dK)(V),Ce=(0,I.UV)(V).getRootSnapshot().key;if(!H.find(fn=>fn.cid===f))return;const Ie=qn.L.applyInverse(Y,S),Re=qn.L.applyInverse(Y,_);let We,ct;if(re){const[fn,uo]=(0,cn.RR)(Ie,Re,!0,!1);We=uo.x-fn.x,ct=uo.y-fn.y}else We=Re.x-Ie.x,ct=Re.y-Ie.y;const{threadType:vt,vec2:Ut,rect:pn}=g;if(vt==="point"){const fn=ze.Z.add(Ut,{x:We,y:ct}),uo=(0,cn.xJ)(fn,Ce),Mn=(0,cn.vl)(fn,uo),Gt={x:fn.x,y:fn.y,canvasVec2:Mn,canvasCid:uo||""};u({type:"entry:comment:update:item",payload:{cid:f,attr:Gt}}),u(o.GO.hoverItem(uo))}else{const fn={...pn,x:pn.x+We,y:pn.y+ct},uo=Wn.rw.enclosingRects([fn]),Mn=[fn.x,fn.y,fn.x+fn.w,fn.y+fn.h],Gt=(0,cn.kJ)(Mn,Ce),yo=(0,cn.vl)(fn,Gt),Do={rect:fn,x:uo.x,y:uo.y,canvasVec2:yo,canvasCid:Gt||""};u({type:"entry:comment:update:item",payload:{cid:f,attr:Do}}),u(o.GO.hoverItem(Gt))}},"entry:comment:be-dragging":L=>{let{dispatch:P}=L;P({type:"comment:update:isCommentDragging",payload:{isCommentDragging:!0}})},"entry:comment:benot-dragging":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:f}=P;u({type:"comment:update:isCommentDragging",payload:{isCommentDragging:!1}})},"entry:comment:fit-viewport":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{cid:f}}=P;const g=b(),S=To(g),_=(0,r.$S)(g),V=(0,Wt.AU)(g).find(Ie=>Ie.cid===f);if(!V)return;const H={x:_.x,y:_.y,w:_.width,h:_.height},{x:Y,y:re,w:pe,h:Ce,threadType:Pe}=V;if(Pe==="point"){const Ie=qn.L.apply(S,{x:Y,y:re}),Re={x:_.x+_.width/2,y:_.y+_.height/2},We={x:Re.x+Ie.x,y:Re.y+Ie.y};if(!Wn.rw.contains(H,We)){const{offset:vt,scale:Ut}=S,pn=ze.Z.subtract(Re,We),fn=ze.Z.add(vt,pn);u({type:"design:set:canvas:offset",payload:{offset:fn}}),u({type:"design:set:scale",payload:{scale:Ut*100}})}}else{const Ie=qn.L.applyRect(S,{x:Y,y:re,w:pe,h:Ce}),Re={x:_.x+_.width/2,y:_.y+_.height/2},We={...Ie,x:Re.x+Ie.x,y:Re.y+Ie.y};if(!Uo.a.containsRect(Uo.a.fromRect(H),We)){const{offset:vt,scale:Ut}=S,pn=ze.Z.subtract(Re,{x:We.x+We.w/2,y:We.y+We.h/2}),fn=ze.Z.add(vt,pn);u({type:"design:set:canvas:offset",payload:{offset:fn}}),u({type:"design:set:scale",payload:{scale:Ut*100}})}}u({type:"comment:update:activeCommentCid",payload:{activeCommentCid:f}}),u({type:"comment:update:editorRawContentObject",payload:{editorRawContentObject:{}}}),u({type:"comment:update:editorIsEditing",payload:{editorIsEditing:!1}}),u({type:"comment:update:editingCommentCid",payload:{editingCommentCid:""}})},"entry:comment:noticeAtUsers":(L,P)=>{let{getState:b}=L,{payload:{content:u,noticeType:f,userCids:g,commentCid:S}}=P;const _=b(),O=(0,r.PL)(_),V=(0,y.Hs)(_);let H=(0,It.jI)(_);const Y=O.cid;H&&(0,Oe.OO)(H)&&(H=(0,Oe.QL)(H).pop()),Ho.A.noticeCommentAtUsers({projectCid:Y,noticeType:f,userCids:g,content:u,screenCid:V[0],commentCid:S,basketCid:H})},"entry:comment:rightPanel:active":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{commentCid:f}}=P;const g=b(),S=(0,y.He)(g),O=(0,Wt.Vr)(g).find(Y=>Y.cid===f);if(!O)return;const{cid:V}=(0,r.Ur)(g),H=S[V];if(!H){u({type:"entry:comment:fit-viewport",payload:{cid:f}});return}H.key===O.screenCid&&u({type:"entry:comment:fit-viewport",payload:{cid:f}})},"entry:comment:move-canvas":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{updates:f}}=P;const g=b();(0,Wt.AU)(g).forEach(_=>{var O;const V=(O=f.find(H=>H.key===_.canvasCid))==null?void 0:O.hotAttr;if(V){const{canvasVec2:H}=_,Y={x:V.x-V.w/2,y:V.y-V.h/2},re=ze.Z.add(Y,H),pe={x:re.x,y:re.y};u({type:"entry:comment:update:item",payload:{cid:_.cid,attr:pe}})}})},"entry:comment:update:atStyle":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{event:f}}=P;const g=b(),S=(0,r.X_)(g),_=(0,r.ER)(g),O=(0,r.$S)(g),V=(0,bt.mG)(f,{scale:S,offset:_,viewportRect:O}),H=S/100,Y=V.x*H+16,re=V.y*H+16+20;u({type:"comment:update:atStyle",payload:{atStyle:{top:re,left:Y}}})},"entry:comment:update:emojiToastStyle":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{event:f,scrollTop:g}}=P;const S=b(),_=(0,r.X_)(S),O=(0,r.ER)(S),V=(0,r.$S)(S),H=(0,bt.mG)(f,{scale:_,offset:O,viewportRect:V}),Y=_/100;u({type:"comment:update:emojiToastStyle",payload:{emojiToastStyle:{left:H.x*Y-20,top:H.y*Y-g+59}}})}};var ya=s(63917),eo=s(43678),Oo=s(41589),so=s.n(Oo),to=s(47946),Vo=s(2099),ta=s(21856),Qa=s(8926),qr=s(15186),kr=s(82009),ur=s(8614),Mr=s(64320);const gr={"entry:libStyle:add:usedLib:form:usedLibList":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:f}=P;const{key:g}=f,S=b(),O=(0,ur.xg)(S).find(H=>H.key===g),V={...O.hotAttr,extInfo:{...O.hotAttr.extInfo,isRemove:!1}};u({type:"style-lib:add:addedLibList",payload:{...O,hotAttr:V}}),u({type:"style-lib:remove:usedLibList",payload:{key:g}})},"entry:libStyle:add:recommendLib":async(L,P)=>{var b;let{getState:u,dispatch:f}=L,{payload:g}=P;const{lib:S}=g,_=u(),O=(0,ur.xg)(_),V=(0,ur.nC)(_),H=(0,r.HW)(_),Y=S.sclib_cid||(S==null||(b=S.hotAttr)==null||(b=b.extInfo)==null?void 0:b.flatKey);if(!V.get(Y)){const{sdkStore:Ce}=await(0,to.O3)({flpakKey:Y});f({type:"style-lib:set:libSdkStoreMap",payload:{key:Y,value:Ce}})}f({type:"entry:libStyle:update:mubanPanel:libMubanTreeMap",payload:{libFlatKey:Y}});const pe=(0,Qa.$t)(S,H);f({type:"style-lib:add:addedLibList",payload:pe}),O.findIndex(Ce=>Ce.key===pe.key)!==-1&&f({type:"style-lib:remove:usedLibList",payload:{key:pe.key}})},"entry:libStyle:remove:addedLibList":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:f}=P;const{key:g}=f,S=b(),O=(0,ur.oo)(S).find(H=>H.key===g);u({type:"style-lib:remove:addedLibList",payload:{key:g}});const V={...O.hotAttr,extInfo:{...O.hotAttr.extInfo,isRemove:!0}};u({type:"style-lib:add:usedLibList",payload:{...O,hotAttr:V}})},"entry:libStyle:manage:set:needUpdateLibs":async(L,P)=>{let{getState:b,dispatch:u}=L,{payload:f}=P;const g=b();if((0,ur.$Y)(g))return;const _=(0,ur.oo)(g),O=(0,ur.nC)(g),V=[];var H=!1,Y=!1,re;try{for(var pe=(0,eo.A)(_),Ce;H=!(Ce=await pe.next()).done;H=!1){const vt=Ce.value;try{var Pe,Ie;const Ut=(vt==null||(Pe=vt.hotAttr.extInfo)==null?void 0:Pe.projectCid)||(vt==null?void 0:vt.cid);if(Ut.startsWith("mt"))continue;const pn=await(0,kr.Q)(Ut),fn=JSON.parse(pn==null?void 0:pn.release_info);if(fn?l()(vt==null||(Ie=vt.hotAttr.extInfo)==null?void 0:Ie.updateTime).isBefore(l()(fn==null?void 0:fn.updateTime)):!1){var Re;const Mn=sdkStore.getHotItem(vt==null?void 0:vt.key),Gt=Mn==null||(Re=Mn.hotAttr)==null||(Re=Re.extInfo)==null?void 0:Re.flatKey,yo=(0,Vo.xT)({type:"all",libKey:Gt}).map(Ro=>({...Ro,hotAttr:{...Ro.hotAttr,libKey:""}})),Do=(0,Vo.r)(sdkStore,Gt),Wo=(0,Vo.Ny)(sdkStore,Gt);if(yo.length>0||Do.length>0||Wo.length>0){const Ro=O.get(Gt),ra=await(0,Vo.f9)({libKey:Gt,oldStyleList:[...yo,...Do],oldMubanList:[...Wo],sclibSdkStore:Ro});if(ra.length>0){const ka={style:ra.filter(pa=>(pa==null?void 0:pa.hotAttr.type)==="rResStyle"),var:ra.filter(pa=>(pa==null?void 0:pa.hotAttr.type)==="rResVar"),muban:ra.filter(pa=>(pa==null?void 0:pa.hotAttr.type)==="rResBunch")};V.push({...Mn,...fn,updateMap:ka})}}}}catch(Ut){console.log("e",Ut)}}}catch(vt){Y=!0,re=vt}finally{try{H&&pe.return!=null&&await pe.return()}finally{if(Y)throw re}}V.length>0&&u({type:"style-lib:set:needUpdateLibs",payload:V});const We=Date.now(),ct=We-((f==null?void 0:f.startTime)||We);ct>0&&ct<1e3?setTimeout(()=>{u({type:"style-lib:set:attr",payload:{isLoadedNeedUpdateLibs:!0}})},1e3):u({type:"style-lib:set:attr",payload:{isLoadedNeedUpdateLibs:!0}})},"entry:libStyle:manage:add:lib:from:paste:widget":async(L,P)=>{let{getState:b,dispatch:u}=L,{payload:f}=P;const{subs:g}=f,S=new Set;g.forEach(Re=>{var We,ct;const vt=(Re==null||(We=Re.attr)==null?void 0:We.lK)||(Re==null||(ct=Re.hotAttr)==null?void 0:ct.libKey);vt&&S.add(vt)});const _=b(),O=(0,ur.oo)(_),V=(0,r.m1)(_),H=(0,r.HW)(_),Y=(0,ur.xg)(_),re=(0,ur.nC)(_),pe=(0,r.PL)(_),Pe=(await(0,kr.Ct)(V.cid)).filter(Re=>Re.cid!==pe.cid);let Ie=(0,ur.Qe)(_);Ie.length===0&&(Ie=await(0,kr.jC)());for(const Re of Array.from(S)){const We=Pe.findIndex(Gt=>Gt.sclib_cid===Re)!==-1,ct=Ie.findIndex(Gt=>Gt.sclib_cid===Re)!==-1;if(!We&&!ct||O.findIndex(Gt=>{var yo;return(Gt==null||(yo=Gt.hotAttr)==null||(yo=yo.extInfo)==null?void 0:yo.flatKey)===Re})!==-1)continue;const Ut=Y.find(Gt=>{var yo;return(Gt==null||(yo=Gt.hotAttr)==null||(yo=yo.extInfo)==null?void 0:yo.flatKey)===Re});if(Ut){const Gt=(0,Qa.$t)(Ut,H);u({type:"style-lib:add:addedLibList",payload:Gt}),u({type:"style-lib:remove:usedLibList",payload:{key:Ut.key}}),u({type:"entry:libStyle:update:mubanPanel:libMubanTreeMap",payload:{libFlatKey:Re}});continue}const pn=Pe.find(Gt=>Gt.sclib_cid===Re),fn=Ie.find(Gt=>Gt.sclib_cid===Re),uo=pn||fn,Mn=(0,Qa.$t)(uo,H);if(u({type:"style-lib:add:addedLibList",payload:Mn}),!re.get(Re)){const{sdkStore:Gt}=fn?await(0,to.O3)({flpakKey:Re}):await(0,to.tr)({flpakKey:Re});u({type:"style-lib:set:libSdkStoreMap",payload:{key:Re,value:Gt}})}u({type:"entry:libStyle:update:mubanPanel:libMubanTreeMap",payload:{libFlatKey:Re}}),u({type:"style-lib:set:attr",payload:{teamLibList:Pe}})}}};var dr=s(42459);const wi={"entry:libStyle:mubanPanel:init:libMubanTreeMap":async L=>{let{getState:P,dispatch:b}=L;const u=P();if((0,ur.kR)(u))return;const g=(0,ur.nC)(u),S=(0,ur.oo)(u);{const re=new Map,pe=(0,Vo.t_)();if(pe.length&&re.set("local",pe),S.length>0){var _=!1,O=!1,V;try{for(var H=(0,eo.A)(S),Y;_=!(Y=await H.next()).done;_=!1){const Ce=Y.value;{const Pe=Ce.hotAttr.extInfo.flatKey,Ie=g.get(Pe);re.set(Pe,(0,Vo.t_)(Ie))}}}catch(Ce){O=!0,V=Ce}finally{try{_&&H.return!=null&&await H.return()}finally{if(O)throw V}}}re.size>0&&b({type:"style-lib:set:attr",payload:{libMubanTreeMap:re}}),b({type:"style-lib:set:attr",payload:{isFetchMubanData:!0}})}},"entry:libStyle:update:mubanPanel:libMubanTreeMap":(L,P)=>{var b;let{getState:u,dispatch:f}=L,{payload:{libFlatKey:g,needUpdate:S=!1}}=P;const _=u(),O=(0,ur.fn)(_);if(!S&&O.get(g))return;const H=(b=(0,ur.nC)(_).get(g))!=null?b:sdkStore,Y=(0,Vo.t_)(H),re=new Map(O);re.set(g,Y),f({type:"style-lib:set:attr",payload:{libMubanTreeMap:re}})},"entry:libStyle:mubanPanel:libMubanTreeMap:del:treeData":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:f}=P;const{libKey:g,key:S,supKey:_="B@ref-muban"}=f,O=b();let H=[...(0,ur.fn)(O).get(g)];if(_==="B@ref-muban"||!_)H=(0,dr.Op)(H,Y=>Y.key===S);else{const Y=H.find(re=>re.key===_);(Y==null?void 0:Y.sub.length)===1&&(Y==null?void 0:Y.sub[0])===S?H=(0,dr.Op)(H,re=>re.key===_):H=H.map(re=>re.key===_?{...re,children:(0,dr.Op)(re.children,pe=>pe.key===S)}:re)}u({type:"style-lib:update:libMubanTreeMap",payload:{key:g,val:H}})},"entry:libStyle:mubanPanel:libMubanTreeMap:add:treeData":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:f}=P;const{libKey:g,data:S,supKey:_="B@ref-muban"}=f,O=b();let H=[...(0,ur.fn)(O).get(g)];_==="B@ref-muban"||!_?H=(0,dr.u5)(H,S).sort((Y,re)=>{var pe,Ce;return((pe=re.hotAttr)==null?void 0:pe.zIndex)-((Ce=Y.hotAttr)==null?void 0:Ce.zIndex)}):H=H.map(Y=>Y.key===_?{...Y,children:(0,dr.u5)(Y.children,S).sort((re,pe)=>{var Ce,Pe;return((Ce=pe.hotAttr)==null?void 0:Ce.zIndex)-((Pe=re.hotAttr)==null?void 0:Pe.zIndex)})}:Y),u({type:"style-lib:update:libMubanTreeMap",payload:{key:g,val:H}})},"entry:libStyle:mubanPanel:libMubanTreeMap:change:treeData":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:f}=P;const{libKey:g,data:S,supKey:_="B@ref-muban"}=f,O=b();let H=[...(0,ur.fn)(O).get(g)];_==="B@ref-muban"||!_?H=(0,dr.$G)(H,Y=>Y.key===S.key,S):H=H.map(Y=>Y.key===_?{...Y,children:(0,dr.$G)(Y.children,re=>re.key===S.key,S)}:Y),u({type:"style-lib:update:libMubanTreeMap",payload:{key:g,val:H}})}};var gi=s(8580),Li=s(83744);const Ni=L=>{var P,b;const u=so()(L==null||(P=L.refStyles)==null?void 0:P.color),f=so()(L==null||(b=L.refStyles)==null?void 0:b.refVars);if(u){var g,S,_,O,V,H;u!=null&&(g=u.fill)!=null&&g.solidColor&&(u==null||(S=u.fill)==null||delete S.solidColor),u!=null&&(_=u.border)!=null&&_.bdrColor&&(u==null||(O=u.border)==null||delete O.bdrColor),u!=null&&(V=u.shadow)!=null&&V.shadowColor&&(u==null||(H=u.shadow)==null||delete H.shadowColor)}if(f){var Y,re;f!=null&&(Y=f.border)!=null&&Y.bdrWidth&&(f==null||(re=f.border)==null||delete re.bdrWidth),f!=null&&f.borderRadius&&(f==null||delete f.borderRadius),f!=null&&f.shadow&&(f==null||delete f.shadow)}return{color:u,refVars:f}},Ai={"entry:libStyle:init":async L=>{var P,b;let{getState:u,dispatch:f}=L;const g=u();if((0,ur.SP)(g))return;const _=(0,r.PL)(g),O=(0,r.m1)(g),V=sdkStore.getSubHotItemList("B@ext").filter(Mn=>Mn.hotAttr.extType==="extProtoLib"),H=await(0,kr.NY)({cid:_.cid,libs:[...V.map(Mn=>Mn.hotAttr.extInfo.projectCid),_.cid]}),re=(await(0,kr.Ct)(O.cid)).filter(Mn=>Mn.cid!==_.cid),pe=await(0,kr.jC)(),Ce=new Map,Pe=[];var Ie=!1,Re=!1,We;try{for(var ct=(0,eo.A)(V),vt;Ie=!(vt=await ct.next()).done;Ie=!1){const Mn=vt.value;{const Gt=so()(Mn),yo=re.find(Ro=>Ro.cid===Mn.hotAttr.extInfo.projectCid),Do=H.find(Ro=>Ro.cid===Mn.hotAttr.extInfo.projectCid),Wo=Mn.hotAttr.extInfo.projectCid.startsWith("mt");if(Wo){const Ro=pe.find(ra=>ra.cid===Mn.hotAttr.extInfo.projectCid);Ro&&(Ro==null?void 0:Ro.cover)!==Mn.hotAttr.extData&&(Gt.hotAttr.extData=Ro.cover),Pe.push(Gt)}if(Do){var Ut;Mn.hotAttr.name!==Do.name&&(Gt.hotAttr.name=Do.name,sdkStore.updateHotAttrKV(Mn.key,"name",Do.name)),(Do.deleted||Do.is_sclib===!1||Do.in_same_space===!1)&&(Mn.hotAttr.extInfo.isRemove||(Gt.hotAttr.extInfo.isRemove=!0),Gt.hotAttr.isCanNotUse=!0),Mn.hotAttr.extInfo.flatKey!==Do.sclib_cid&&Do.sclib_cid&&(Gt.hotAttr.extInfo.flatKey=Do.sclib_cid);const Ro=yo!=null&&yo.is_custom_cover?yo==null?void 0:yo.custom_cover:(Ut=yo==null?void 0:yo.cover)!=null?Ut:"";Mn.hotAttr.extData!==Ro&&(Gt.hotAttr.extData=Ro),Pe.push(Gt)}if(!Gt.hotAttr.isCanNotUse){const Ro=Gt.hotAttr.extInfo.flatKey,{sdkStore:ra}=Wo?await(0,to.O3)({flpakKey:Ro}):await(0,to.tr)({flpakKey:Ro});Ce.set(Ro,ra)}}}}catch(Mn){Re=!0,We=Mn}finally{try{Ie&&ct.return!=null&&await ct.return()}finally{if(Re)throw We}}const pn=(P=(b=H.find(Mn=>Mn.cid===_.cid))==null?void 0:b.is_sclib)!=null?P:!1;if(pn){const Mn=MB.sclibKey,{sdkStore:Gt}=await(0,to.tr)({flpakKey:Mn});Ce.set(Mn,Gt)}const fn=Pe.filter(Mn=>!Mn.hotAttr.extInfo.isRemove),uo=Pe.filter(Mn=>Mn.hotAttr.extInfo.isRemove);sdkStore.updateHotItemBatch(Pe),f({type:"style-lib:set:attr",payload:{isLoadedInitialData:!0,isCurrentProjectSclib:pn,addedLibList:fn,usedLibList:uo,libSdkStoreMap:Ce,recommendLibList:pe,teamLibList:re}})},"entry:libStyle:text:create":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:f}=P;const g=b(),S=(0,De.p$)(g),{title:_,desc:O,textAttr:V,refStyles:H,sup:Y}=f,{hotItems:re,name:pe}=(0,Vo.ws)(_,"text",Y),Ce=(0,ta.Z_)(Y||"B@style"),Pe={...V},Ie=H!=null?H:{},Re=(0,Vo.QH)({name:pe,zIndex:Ce+1,styleType:"text",desc:O,libKey:"",...Pe},re.length>0?re[re.length-1].key:Y);u({type:"settings:update:currentTextRefStyle",payload:Re});let We=[];S.length>0&&(We=(0,Qa.d0)({selections:S,attrs:V,isAutoSize:!0,currentRefStyle:Re,isDelRef:!0}),(0,Li.Xq)(We.map(vt=>(0,gi.Op)(vt.key,vt.hotAttr))));const{color:ct}=Ni({refStyles:Ie});We.push({key:Re.key,hotAttr:{refStyles:{color:ct}}}),u({type:"entry:widget:change",payload:{flatChgList:We}}),setTimeout(()=>{(0,Vo.qP)(Re.key)},100)},"entry:libStyle:text:edit":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:f}=P;const g=b(),S=(0,De.p$)(g),_=(0,r.eo)(g),{title:O,desc:V,textAttr:H,refStyles:Y,currentKey:re,isNeedUpdateWidget:pe}=f,Ce=sdkStore.getHotItem(re);if(Ce){var Pe,Ie;let ct=Ce.sup,vt=O;const{hotItems:Ut,name:pn}=(0,Vo.ws)(O,"text",ct);Ut.length>0&&(ct=(Pe=Ut[Ut.length-1])==null?void 0:Pe.key),vt=pn;const fn={...Ce,hotAttr:{...Ce.hotAttr,name:vt,desc:V,refStyles:Y,...H},sup:ct};if(sdkStore.updateHotItem(fn),((Ie=(0,Vo.OP)({selections:S,styleType:"text"}))==null?void 0:Ie.key)===re&&u({type:"settings:update:currentTextRefStyle",payload:fn}),pe){var Re,We;const{flatChgList:uo,otherPageFlatChgList:Mn,isUpdateBasket:Gt}=(0,Qa.Gh)({currentPageKey:_,currentKey:re,attrs:H});u({type:"entry:widget:change",payload:{flatChgList:uo}}),Gt&&u({type:"entry:rebuild:screen-widget-tree"});const yo=uo.length>0?(0,gi.Op)((Re=uo[0])==null?void 0:Re.key):Mn.length>0?(0,gi.Op)((We=Mn[0])==null?void 0:We.key):{...fn.hotAttr,...fn,type:"wRichText"};(0,Li.Xq)([yo]),setTimeout(()=>{sdkStore.updateHotItemBatch(Mn)},16)}}},"entry:libStyle:appear:create":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:f}=P;const g=b(),S=(0,De.p$)(g),{title:_,desc:O,appearAttr:V,sup:H,refStyles:Y}=f,{hotItems:re,name:pe}=(0,Vo.ws)(_,"appear",H),Ce=(0,ta.Z_)(H||"B@style"),Pe=Y!=null?Y:{},Ie={...V},Re=(0,Vo.QH)({name:pe,zIndex:Ce+1,styleType:"appear",desc:O,libKey:"",...Ie},re.length>0?re[re.length-1].key:H);u({type:"settings:update:currentAppearRefStyle",payload:Re});let We=[];S.length>0&&(We=S.map(vt=>{var Ut,pn;const fn=(Ut=sdkStore.getHotItem(vt))==null?void 0:Ut.hotAttr,{color:uo,refVars:Mn}=Ni(fn);return{key:vt,hotAttr:{refStyles:{color:uo,text:fn==null||(pn=fn.refStyles)==null?void 0:pn.text,appear:Re==null?void 0:Re.key},refVars:Mn,...V,...(0,Qa.St)({...fn,key:vt},V.borderRadius)}}}));const{color:ct}=(0,Qa.Pn)({refStyles:Pe});We.push({key:Re.key,hotAttr:{refStyles:{color:ct}}}),u({type:"entry:widget:change",payload:{flatChgList:We}}),setTimeout(()=>{(0,Vo.qP)(Re.key)},100)},"entry:libStyle:appear:edit":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:f}=P;const g=b(),S=(0,De.p$)(g),_=(0,r.eo)(g),{title:O,desc:V,appearAttr:H,refStyles:Y,currentKey:re,isNeedUpdateWidget:pe}=f,Ce=sdkStore.getHotItem(re);if(Ce){var Pe,Ie;let Re=Ce.sup,We=O;const{hotItems:ct,name:vt}=(0,Vo.ws)(O,"appear",Re);ct.length>0&&(Re=(Pe=ct[ct.length-1])==null?void 0:Pe.key),We=vt;const Ut={...Ce,hotAttr:{...Ce.hotAttr,name:We,desc:V,refStyles:Y,...H},sup:Re};if(sdkStore.updateHotItem(Ut),((Ie=(0,Vo.OP)({selections:S,styleType:"appear"}))==null?void 0:Ie.key)===re&&u({type:"settings:update:currentAppearRefStyle",payload:Ut}),pe){const{flatChgList:pn,otherPageFlatChgList:fn,isUpdateBasket:uo}=(0,Qa.ER)({currentPageKey:_,currentKey:re,attrs:H});u({type:"entry:widget:change",payload:{flatChgList:pn}}),uo&&u({type:"entry:rebuild:screen-widget-tree"}),setTimeout(()=>{sdkStore.updateHotItemBatch(fn)},16)}}},"entry:libStyle:use:appearRef":(L,P)=>{var b,u;let{getState:f,dispatch:g}=L,{payload:S}=P;const _=f(),O=(0,Qo.I5)(_),V=(0,r.th)(_),H=(0,r.Hi)(_),Y=(0,De.p$)(_),{currentRefStyle:re,onSetRefStyle:pe}=S;if((re==null||(b=re.hotAttr)==null?void 0:b.styleType)==="color"){var Ce,Pe;const Re=(Ce=(Pe=sdkStore.getHotItem(O.currentKey))==null||(Pe=Pe.hotAttr)==null?void 0:Pe.refStyles)!=null?Ce:{};if(O.type==="create")Re.appear=O.currentKey;else{var Ie;const vt=(Ie=so()(Re==null?void 0:Re.color))!=null?Ie:{},Ut=H==null?void 0:H.split("-");(0,Vo.$b)({supAttrArr:Ut,color:vt,key:V,val:re==null?void 0:re.key}),Re.color=vt}let We;switch(V){case"solidColor":We={fill:{...O.attrs.fill,solidColor:re==null?void 0:re.hotAttr.fill}};break;case"bdrColor":We={border:{...O.attrs.border,bdrColor:re==null?void 0:re.hotAttr.fill}};break;case"shadowColor":We={shadow:{...O.attrs.shadow,shadowColor:re==null?void 0:re.hotAttr.fill}};break;default:break}const ct={...O.attrs,...We,refStyles:Re};g({type:"modal:update:libEditAppearModal:attrs",payload:ct}),pe(re)}if((re==null||(u=re.hotAttr)==null?void 0:u.styleType)==="appear"){const Re={borderRadius:re==null?void 0:re.hotAttr.borderRadius,borderVisibility:re==null?void 0:re.hotAttr.borderVisibility,borderRadiusIsVisible:re==null?void 0:re.hotAttr.borderRadiusIsVisible,border:re==null?void 0:re.hotAttr.border,shadow:re==null?void 0:re.hotAttr.shadow,fill:re==null?void 0:re.hotAttr.fill};g({type:"settings:update:currentAppearRefStyle",payload:re});const We=Y.map(ct=>{var vt,Ut;const pn=(vt=sdkStore.getHotItem(ct))==null?void 0:vt.hotAttr,{color:fn,refVars:uo}=Ni(pn);return{key:ct,hotAttr:{...Re,...(0,Qa.St)({...pn,key:ct},Re.borderRadius),refStyles:{color:fn,text:pn==null||(Ut=pn.refStyles)==null?void 0:Ut.text,appear:re==null?void 0:re.key},refVars:uo}}});g({type:"entry:widget:change",payload:{flatChgList:We}})}g({type:"entry:auto:show:hide:item"})},"entry:libStyle:use:textRef":(L,P)=>{var b,u;let{getState:f,dispatch:g}=L,{payload:S}=P;const _=f(),O=(0,Qo.md)(_),V=(0,r.th)(_),H=(0,r.Hi)(_),Y=(0,De.p$)(_),{currentRefStyle:re,onSetRefStyle:pe}=S;if((re==null||(b=re.hotAttr)==null?void 0:b.styleType)==="color"){var Ce,Pe;const Re=(Ce=(Pe=sdkStore.getHotItem(O.currentKey))==null||(Pe=Pe.hotAttr)==null?void 0:Pe.refStyles)!=null?Ce:{};if(O.type==="create")Re.text=O.currentKey;else{var Ie;const ct=(Ie=so()(Re==null?void 0:Re.color))!=null?Ie:{},vt=H==null?void 0:H.split("-");(0,Vo.$b)({supAttrArr:vt,color:ct,key:V,val:re==null?void 0:re.key}),Re.color=ct}const We={...O.attrs,textColor:(0,qr.t0)(re==null?void 0:re.hotAttr.fill),refStyles:Re};g({type:"modal:update:libEditTextModal:attrs",payload:We}),pe(re)}if((re==null||(u=re.hotAttr)==null?void 0:u.styleType)==="text"){const Re={...re.hotAttr};g({type:"settings:update:currentTextRefStyle",payload:re});const We=(0,Qa.d0)({selections:Y,attrs:Re,currentRefStyle:re,isDelRef:!0});g({type:"entry:widget:change",payload:{flatChgList:We}}),(0,Li.Xq)(We.map(ct=>(0,gi.Op)(ct.key,{refStyles:ct.hotAttr.refStyles})))}g({type:"entry:auto:show:hide:item"})},"entry:libStyle:open:color:modal":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:f}=P;const g=b(),S=(0,De.p$)(g),{color:_=Mr.OT,position:O,sup:V,onConfirm:H=()=>{},onCancel:Y=()=>{}}=f;u({type:"modal:update:state",payload:{libEditColorModal:{isOpen:!0,position:O,type:"create",attr:"solidColor",supAttr:"fill",color:_,sup:V,onSetRefStyle:()=>{},onColorChange:re=>{let{value:pe}=re;if(S.length===0)return;const Ce=S.map(Pe=>{const Ie=sdkStore.getHotItem(Pe);return{key:Pe,hotAttr:{fill:{...Ie==null?void 0:Ie.hotAttr.fill,...pe}}}});u({type:"entry:widget:change",payload:{flatChgList:Ce}})},onConfirm:H,onCancel:Y}}})},"entry:libStyle:re-build:treeData":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:f}=P;const{type:g}=f,S=b(),_=(0,ur.Ip)(S);g==="color"&&(_.buildStyleTree("color"),u({type:"style-lib:set:attr",payload:{colorStyleTree:_.colorStyleTree}})),g==="appear"&&(_.buildStyleTree("appear"),u({type:"style-lib:set:attr",payload:{appearStyleTree:_.appearStyleTree}})),g==="text"&&(_.buildStyleTree("text"),u({type:"style-lib:set:attr",payload:{textStyleTree:_.textStyleTree}}))},"entry:libStyle:update:widget:refStyles":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:f}=P;const{selections:g,type:S,key:_,supAttr:O,refKey:V}=f,H=O==null?void 0:O.split("-"),Y=g.map(re=>{var pe,Ce;const Pe=(pe=(Ce=sdkStore.getHotItem(re))==null||(Ce=Ce.hotAttr)==null?void 0:Ce.refStyles)!=null?pe:{};if(S==="color"){var Ie;const Re=(Ie=so()(Pe==null?void 0:Pe.color))!=null?Ie:{};return(0,Vo.$b)({supAttrArr:H,color:Re,key:_,val:V}),{key:re,hotAttr:{refStyles:{...Pe,color:Re}}}}return{key:re,hotAttr:{refStyles:{...Pe,[_]:V}}}});u({type:"entry:widget:change",payload:{flatChgList:Y}}),O==="richTextV1"&&_==="textColor"&&(0,Li.Xq)(Y.map(re=>(0,gi.Op)(re.key,{refStyles:re.hotAttr.refStyles})))},"entry:libStyle:del:widget:refStyles":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:f}=P;const g=b(),S=(0,Qo.md)(g),_=(0,Qo.I5)(g),{type:O,selections:V,key:H,supAttr:Y,updateType:re="widget",refStyle:pe,refKey:Ce,isLibText:Pe=!1}=f,Ie=Y==null?void 0:Y.split("-"),Re=V.map(We=>{var ct,vt,Ut,pn;const fn=re==="textRef"?S.refStyles:re==="appearRef"?_.refStyles:Pe?(ct=(vt=sdkStore.getHotItem(Ce))==null||(vt=vt.hotAttr)==null?void 0:vt.refStyles)!=null?ct:{}:(Ut=(pn=sdkStore.getHotItem(We))==null||(pn=pn.hotAttr)==null?void 0:pn.refStyles)!=null?Ut:{};if(Pe&&fn!=null&&fn.color)return{key:We,hotAttr:{refStyles:{...fn,text:void 0}}};if(O==="color"&&fn!=null&&fn.color){var uo;const Ro=(uo=so()(fn==null?void 0:fn.color))!=null?uo:{};return(0,Vo.$b)({supAttrArr:Ie,color:Ro,key:H,actionType:"del"}),{key:We,hotAttr:{refStyles:{...fn,color:Ro}}}}else{let Ro={};if(O==="appear"){var Mn,Gt,yo;Ro={...(Mn=pe==null||(Gt=pe.hotAttr)==null||(Gt=Gt.refStyles)==null?void 0:Gt.color)!=null?Mn:{},richTextV1:{...fn==null||(yo=fn.color)==null?void 0:yo.richTextV1}}}if(O==="text"){var Do,Wo;Ro={richTextV1:{...pe==null||(Do=pe.hotAttr)==null||(Do=Do.refStyles)==null||(Do=Do.color)==null?void 0:Do.richTextV1},...(Wo=fn==null?void 0:fn.color)!=null?Wo:{}}}return{key:We,hotAttr:{refStyles:{...fn,color:{...fn==null?void 0:fn.color,...Ro},[O]:void 0}}}}});if(Re.length>0)switch(re){case"widget":u({type:"entry:widget:change",payload:{flatChgList:Re}}),u({type:"entry:auto:show:hide:item"});break;case"textRef":u({type:"modal:update:state",payload:{libEditTextModal:{...S,refStyles:Re[0].hotAttr.refStyles}}});break;case"appearRef":u({type:"modal:update:state",payload:{libEditAppearModal:{..._,refStyles:Re[0].hotAttr.refStyles}}});break;default:u({type:"entry:widget:change",payload:{flatChgList:Re}});break}Pe&&O==="color"&&u({type:"settings:update:currentTextRefStyle",payload:null})},"entry:libStyle:del:widget:colorRefStyles:by:refKey":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:f}=P;const{selections:g,refKey:S}=f,_=g.map(O=>{var V,H,Y;const re=(V=(H=sdkStore.getHotItem(O))==null||(H=H.hotAttr)==null?void 0:H.refStyles)!=null?V:{},pe=(Y=so()(re==null?void 0:re.color))!=null?Y:{},Ce=(0,Vo.rf)(pe,S);for(const Pe of Ce){const Ie=Pe.split("-"),Re=Ie[Ie.length-1],We=Ie.splice(0,Ie.length-1);(0,Vo.$b)({supAttrArr:We,color:pe,key:Re,val:S,actionType:"del"})}return{key:O,hotAttr:{refStyles:{...re,color:pe}}}});u({type:"entry:widget:change",payload:{flatChgList:_}})},...gr,...wi};var Bi=s(63172),Ss=s(60129),qi=s(16666);const Ga={"entry:initial:guide:task":async L=>{let{dispatch:P}=L;if((0,Se.Ge)()){const b=MB.commonGuideHelper.getState().commonGuidesHasShown;P({type:"update:taskList:data",payload:{completeList:b}}),Ss._D.every(g=>b.includes(g))&&P({type:"update:taskList:completed"}),Ss.vY.every(g=>b.includes(g))&&(P({type:"update:taskList:completed"}),MB.commonGuideHelper.batchMarkGuideAsRead(Ss._D)),ENV.IS_MO&&Ss._D.every(S=>b.indexOf(S)===-1)&&(0,ft.kH)("novice_task_V8",{operation_type:"\u65E0"})}else P({type:"update:taskList:completed"})},"entry:update:guide:task":async(L,P)=>{var b;let{getState:u,dispatch:f}=L,{payload:{taskType:g}}=P;if(!(0,Se.Ge)())return;const S=u();if((0,r.jj)(S))return;const{scene_tag:O}=(0,r.PL)(S);if((b=MB.commonGuideHelper)!=null&&b.checkGuideHasShown&&MB.commonGuideHelper.checkGuideHasShown(g))return;await MB.commonGuideHelper.markGuideAsRead(g);const V=MB.commonGuideHelper.getState().commonGuidesHasShown;if(f({type:"update:taskList:data",payload:{completeList:V}}),(O==null?void 0:O.split("-")[0])==="DS"&&!MB.commonGuideHelper.checkGuideHasShown(C.c.GUIDE_NOVICE_2309))return;if(Ss._D.every(pe=>V.includes(pe))){f({type:"update:taskList:completed"});try{ENV.IS_MO?f({type:"modal:update:state",payload:{mockittGuideModal:{isOpen:!0,orgCid:"",addDay:!1}}}):await f({type:"entry:fetch:guideTask:award"})}catch(pe){console.error("guide error:",pe)}!ENV.IS_MO&&(0,ft.kH)("novice_task_V8",{operation_type:"\u7ED3\u675F"})}if(ENV.IS_MO){var re;const pe=(re=Ss.Pr.find(Ce=>Ce.guideKey===g))==null?void 0:re.track;(0,ft.kH)("novice_task_V8",{operation_type:pe})}},"entry:show:taskList":L=>{let{dispatch:P}=L;P({type:"update:taskList:isHide",payload:{isHide:!1}}),P({type:"update:taskList:isCollapse",payload:{isCollapse:!1}})},"entry:hide:taskList":L=>{let{dispatch:P}=L;P({type:"update:taskList:isHide",payload:{isHide:!0}}),P({type:"update:taskList:isCollapse",payload:{isCollapse:!0}})},"entry:fetch:guideTask:award":async L=>{var P,b;let{getState:u,dispatch:f}=L;if((P=MB)!=null&&P.commonGuideHelper.checkGuideHasShown(C.c.GUIDE_AWARDED))return;(b=MB)==null||b.commonGuideHelper.markGuideAsRead(C.c.GUIDE_AWARDED);const g=u(),S="v8_proto",_=(0,r.wA)(g),{data:O}=await(0,qi.Qt)(S);setTimeout(()=>f({type:"modal:update:state",payload:{couponReceivedModal:{isOpen:!0,org:_,coupons:[O]}}}),2e3)}};var ai=s(88670),kt=s(3902),Qt=s(75627),oo=s(19713),ao=s(33421);const fa={"entry:findReplacePanel:search":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{isCurrentScreen:f,searchValue:g}}=P;const S=b(),_=(0,r.eo)(S),O=(0,It.jI)(S),V=(0,It.bt)(S);u({type:"findReplacePanel:update",payload:{status:Qt.nW.searching}});const H=(0,oo.wp)({isCurrentScreen:f||O,currentScreenCid:_}),Y=[],re=[];let pe=null;const Ce=O&&sdkStore.getHotItem(O);O&&(pe={widget:Ce,pageKey:(0,oo.bB)(O)});const Pe=new Set;(0,oo.k1)({widgetList:H,searchValue:g,findWidgetList:Y,findWidgetPanelList:re,mubans:Pe,parent:pe});const Ie=Y.length>0,Re=Ie?Qt.nW.hasResults:Qt.nW.notFound;if(u({type:"findReplacePanel:update",payload:{findWidgetList:Y,findWidgetPanelList:re,status:Re}}),Ie)if(u({type:"entry:findReplacePanel:select:widget",payload:{index:1}}),u({type:"mode:update:state",payload:{isEditingEditableWidgetCid:""}}),O){const We=V||(Ce==null?void 0:Ce.hotAttr.basket)==="bMuban";MB.notice({text:I18N.Popups.findReplacePanel.notice.searchedOther.replace(/%name%/,We?"\u6BCD\u7248":"\u52A8\u6001\u7EC4\u4EF6")})}else MB.notice({text:I18N.Popups.findReplacePanel.notice.searched})},"entry:findReplacePanel:select:widget":async(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{index:f}}=P;const g=b(),S=(0,kt.sI)(g),_=(0,It.jI)(g),O=(0,r.eo)(g),{searchValue:V}=(0,kt.Gh)(g),H=S[f-1];if(!H)return;const{index:Y,parent:re}=H;if(re&&!(0,oo.kB)(re)){u({type:"entry:findReplacePanel:delete:current:item",payload:{index:f}});return}const pe=(0,oo.kB)(H);if(!pe){u({type:"entry:findReplacePanel:delete:current:item",payload:{index:f}});return}const Ce=(0,oo.YU)(pe,V);if(Ce.length===0||Y>=Ce.length){u({type:"entry:findReplacePanel:delete:current:item",payload:{index:f}});return}if(H){const{parent:Pe,widget:Ie,pageKey:Re}=H,We=Re===O;if(Pe)We&&_?u({type:"entry:findReplacePanel:goto:widget",payload:{select:H,parent:Pe}}):(_&&u({type:"entry:exit:edit:basket"}),u({type:"entry:findReplacePanel:goto:panel:widget",payload:{parent:Pe}}),u({type:"entry:findReplacePanel:goto:widget",payload:{select:H,parent:Pe}}));else{const{isInPanel:ct}=H;_&&!ct&&u({type:"entry:exit:edit:basket"}),u({type:"entry:findReplacePanel:goto:widget",payload:{select:H,isSamePanel:We}})}u({type:"findReplacePanel:update",payload:{findSelectWidgetCid:Ie.key,selectIndex:f}}),u({type:"entry:design:zoom:widget",payload:{hotItem:pe,mindKey:H.mindKey}})}},"entry:findReplacePanel:goto:widget":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{select:f,parent:g=null,isSamePanel:S=!1}}=P;const _=b(),O=(0,r.eo)(_),{widget:V,isInPanel:H,pageKey:Y,mindKey:re}=f;let pe=!1;Y!==O&&!g&&(H||(u({type:"entry:goto:project-alike",payload:{screenMetaCid:Y}}),u({type:"screen:update:screen-selection",payload:{screenSelection:[Y]}}),pe=!0),S||(u({type:"entry:goto:project-alike",payload:{screenMetaCid:Y}}),pe=!0)),u({type:"entry:update:selection:select:items",payload:{type:"selection:clear"}}),V.hotAttr.type===N.x.WMindNode?re&&u({type:"entry:select:items",payload:{cids:[re]}}):u({type:"entry:select:items",payload:{cids:[V.key]}}),pe&&MB.notice({text:I18N.Popups.findReplacePanel.notice.gotoOtherPages})},"entry:findReplacePanel:goto:panel:widget":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{parent:f}}=P;const{widget:g}=f;u({type:"entry:edit:basket:directly",payload:{basketKey:g.key}})},"entry:findReplacePanel:replace:widget":async L=>{let{getState:P,dispatch:b}=L;const u=P(),f=(0,r.eo)(u),g=fe.y.query.getMissFontHiKeySet(u),{selectIndex:S,findWidgetList:_,searchValue:O,replaceValue:V}=(0,kt.Gh)(u),H=_[S-1],{index:Y,pageKey:re}=H,pe=(0,oo.kB)(H),Ce=_.length,Pe=S>=Ce?1:S;if(pe){const Ie=(0,oo.YU)(pe,O),Re=(0,oo.t$)(V).includes((0,oo.t$)(O)),We=(0,ao.mR)(g,pe.key);if(Ie.length>0&&Y<=Ie.length-1){const ct=Ie[Y];if(We){const Ut=S>=Ce?1:S+1;b({type:"entry:findReplacePanel:select:widget",payload:{index:Ut}}),(0,ao.od)();return}const{newItem:vt}=(0,oo.qk)({hotItem:pe,matchValue:O,replaceValue:V,current:ct});if(vt){if(sdkStore.updateHotItem(vt),re===f&&b({type:"entry:remove:selected:items:from-rich-text",payload:{hotItems:[vt]}}),!Re){const Ut=(0,oo.LH)(_,S,vt);b({type:"findReplacePanel:update",payload:{findWidgetList:Ut,selectIndex:Pe}}),Ut.length===0?b({type:"findReplacePanel:update",payload:{status:Qt.nW.notFound,selectIndex:1}}):(b({type:"findReplacePanel:update",payload:{selectIndex:Pe}}),b({type:"entry:findReplacePanel:select:widget",payload:{index:Pe}}))}MB.notice({text:I18N.Popups.findReplacePanel.notice.singleReplaceSuccess,type:"success"});return}}}MB.notice({text:I18N.Popups.findReplacePanel.notice.searchNotFound})},"entry:findReplacePanel:replace:all:widget":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{handleReplaceAllNotice:f}}=P;const g=b(),S=fe.y.query.getMissFontHiKeySet(g),{findWidgetList:_,searchValue:O,replaceValue:V}=(0,kt.Gh)(g),H=(0,r.eo)(g),Y=(0,oo.FH)(_),re=[];let pe=!1;for(const We of Y)(0,ao.mR)(S,We[0].widget.key)?pe=!0:re.push(We);const Ce=(0,oo.t$)(V).includes((0,oo.t$)(O));let Pe=[];const Ie=[],Re=[];re.forEach(We=>{const{widget:ct,pageKey:vt}=We[0],Ut=(0,oo.kB)(We[0]),pn=(0,oo.YU)(ct,O);if(Ut){const fn=(0,oo.YU)(Ut,O);if(fn.length>0){Ie.push(fn);const uo=(0,oo.Ly)({hotItem:Ut,matchValue:O,replaceValue:V,indexs:fn});Re.push(uo),vt===H&&u({type:"entry:remove:selected:items:from-rich-text",payload:{hotItems:[uo]}})}fn.length<pn.length&&(Pe=Pe.concat(new Array(pn.length-fn.length).fill(1)))}else Pe.push(pn)}),sdkStore.updateHotItemBatch(Re),f(Ie.flat(),Pe.flat()),Ce||u({type:"findReplacePanel:update",payload:{findWidgetList:[],selectIndex:1,status:Qt.nW.notFound}}),pe&&(0,ao.od)()},"entry:findReplacePanel:delete:current:item":async(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{index:f}}=P;const g=b(),_=(0,kt.sI)(g).filter((O,V)=>f-1!==V);if(await u({type:"findReplacePanel:update",payload:{findWidgetList:_}}),_.length===0)u({type:"findReplacePanel:update",payload:{status:Qt.nW.notFound,selectIndex:1}});else{const O=_.length,V=f>=O?O:f;u({type:"entry:findReplacePanel:select:widget",payload:{index:V}})}MB.notice({text:I18N.Popups.findReplacePanel.notice.nextNotFound})},"entry:findReplacePanel:toggle:show":L=>{let{getState:P,dispatch:b}=L;const u=P(),f=(0,y.Xf)(u),g=(0,y.uE)(u),S=(0,kt.jQ)(u),O=f?g+0:0,V=(0,U.Yt)(Qt.nb,56,U.qW.Number),H=(0,U.Yt)(Qt.Zz,O+8,U.qW.Number);b({type:"findReplacePanel:update",payload:{show:!S,isFocusPanel:!S}}),b({type:"findReplacePanel:set:position",payload:{position:{top:V,left:H}}}),b({type:"mind:exit:edit:state"}),S&&b({type:"findReplacePanel:reset:state"})},"entry:findReplacePanel:remove:findSelectWidgetCid":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{selections:f}}=P;const g=b(),S=(0,kt.gP)(g);if(S&&f.includes(S)){const O=(0,kt.sI)(g).filter(V=>V.widget.key!==S);u({type:"findReplacePanel:update",payload:{findSelectWidgetCid:"",selectIndex:0,findWidgetList:O}})}}};var wr=s(77938),Xa=s(70169),ir=s(67526),Ir=s(47163),Er=s(55052),ji=s(87945);const ci={"entry:autoFillPanel:toggle:show":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:f}=P;const g=b(),S=(0,wr.wb)(g),{canClose:_=!0,openFrom:O,defaultTab:V,position:H,isShowClose:Y=!0,canShowAllTab:re=!0}=f;if(H)u({type:"autoFillPanel:set:position",payload:{position:H}});else{const pe=(0,U.Yt)(ir.i,52,U.qW.Number),Ce=(0,U.Yt)(ir.W,215,U.qW.Number);u({type:"autoFillPanel:set:position",payload:{position:{top:pe,left:Ce}}})}_?(u({type:"autoFillPanel:update",payload:{show:!S,openFrom:O,defaultTab:V,isShowClose:Y,canShowAllTab:re}}),S&&u({type:"autoFillPanel:reset:state"})):u({type:"autoFillPanel:update",payload:{show:!0,openFrom:O,defaultTab:V,isShowClose:Y,canShowAllTab:re}})},"entry:autoFill:update:widget":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:f}=P;const g=b(),S=fe.y.query.getMissFontHiKeySet(g),{widgetType:_,data:O,type:V,device:H}=f,Y=(0,It.$W)(g),re=(0,wr.Hh)(g);let pe=!1,Ce;if(V==="create")_===N.x.WRichText?Ce=(0,Me.gu)({type:N.x.WRichText,attrs:{richText:(0,Me.DV)(O.content,(0,Ir.w)(),H)}}):_===N.x.WImage&&(Ce=(0,$.BL)(O)),(0,j.Q7)([Ce],Ce.width||Ce.w,Ce.height||Ce.h);else if(V==="update"){var Pe;let Ie;switch(_){case N.x.WRichText:{const Re=[];O.forEach(We=>{if(S.has(We.key)){pe=!0;return}const ct=(0,Xa.oB)(We,We.content);ct&&Re.push({key:ct.key,hotAttr:ct.hotAttr})}),Re!=null&&Re.length&&(Ie=Re);break}case N.x.WImage:{Ie=O.map(Re=>{const We=(0,Er.JB)(Re.asset,[Re])[0];return delete Re.asset,{key:Re.key,hotAttr:We}});break}case N.x.WPlaceholder:{Ie=O.map(Re=>{const We=(0,Er.De)(Re.asset,[Re])[0];return delete Re.asset,{key:Re.key,hotAttr:We}});break}case N.x.WCarousel:{Ie=O.map(Re=>{const We=so()(Re.carousel.slides);for(let ct=0;ct<Re.carousel.slides.length;ct++){const vt=sdkStore.getHotItem(We[ct].asset)?sdkStore.getHotItem(We[ct].asset).hotAttr.extData:We[ct].asset;We[ct].asset=(0,$.q4)("Carousel",vt).key}return{key:Re.key,hotAttr:{carousel:{...Re.carousel,slides:We}}}});break}default:Ie=O.map(Re=>{var We,ct;const vt={...Re,name:Re.display_name||Re.name},Ut=(We=sdkStore.getHotItem(Re.key))==null?void 0:We.hotAttr;if(vt.type===N.x.WTable&&(ct=Re.refVars)!=null&&ct.cells&&Ut){var pn;const fn={...(pn=Re.refVars)==null?void 0:pn.cells};Object.keys(fn).forEach(uo=>{var Mn,Gt;((Mn=Re.cells[uo])==null?void 0:Mn.data)!==((Gt=Ut.cells[uo])==null?void 0:Gt.data)&&delete fn[uo].data}),vt.refVars={...Ut.refVars,cells:fn}}return{key:Re.key,hotAttr:vt}})}(Pe=Ie)!=null&&Pe.length&&(u({type:"entry:widget:change",payload:{flatChgList:Ie}}),u({type:"entry:auto:show:hide:item"})),pe&&(0,ao._f)(),Y&&[ji.G.QuickMenuText,ji.G.QuickMenuImage].includes(re)&&u({type:"autoFillPanel:reset:state"})}}};var Cl=s(28173),Di=s(78257),Rs=s(81122),wc=s(11446);const Vc=L=>L.replace(/_(\w)/g,(P,b)=>b.toUpperCase()),Wl={"entry:update:preference":async(L,P)=>{let{getState:b,dispatch:u}=L,{payload:f}=P;const g=b(),{isFromAbar:S}=(0,r.fv)(g)||{};await u({type:"entry:update:preference-data",payload:f}),u({type:"entry:update:ui:by:preference"}),S&&(0,Rs.sg)("currentTheme",f)},"entry:update:iconinfo":async(L,P)=>{let{dispatch:b}=L,{payload:u}=P;const{iconDefaultSize:f,iconDefaultColor:g}=u,S={};g&&(S.icon_color=g),f&&(S.icon_size=f),await b({type:"entry:update:preference-data",payload:S}),b({type:"entry:update:ui:by:iconinfo"})},"entry:update:history-colors":(L,P)=>{let{dispatch:b}=L,{payload:u}=P;const{historyColors:f}=u;b({type:"colorpanel:set:historyColors",payload:{historyColors:JSON.parse(f)}}),f&&b({type:"entry:update:preference-data",payload:{history_colors_v2:f}})},"entry:update:favorite-colors":(L,P)=>{let{dispatch:b}=L,{payload:u}=P;const{favoriteColors:f}=u;b({type:"colorpanel:set:favoriteColors",payload:{favoriteColors:JSON.parse(f)}}),f&&b({type:"entry:update:preference-data",payload:{favorite_colors_v2:f}})},"entry:update:auto-fill-history":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{attr:f,value:g}}=P;const S=b(),_={...(0,mt.dd)(S),[f]:g};u({type:"entry:update:preference-data",payload:{auto_fill_history:JSON.stringify(_)}})},"entry:update:color_panel_mode":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{mode:f}}=P;u({type:"entry:update:preference-data",payload:{color_panel_mode:f}})},"entry:update:preference_flags_by_sticky":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{info:f}}=P;const g=b(),S=(0,mt.uI)(g);if(f){const{showAuthor:_,showTime:O}=f;let V=(0,wc.TX)(S,_);V=(0,wc.F1)(V,O),u({type:"entry:update:preference-data",payload:{flags:V}})}},"entry:update:preference_flags":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{option:f,bool:g}}=P;const S=b(),_=(0,mt.uI)(S),O=(0,wc.jy)(_,f,g);u({type:"entry:update:preference-data",payload:{flags:O}})},"entry:update:preference-layout_v8":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{layout_v8:f}}=P;u({type:"entry:update:preference-data",payload:{layout_v8:f}});const g=b(),S=(0,y.OW)(g),{isEmptyScreen:_}=(0,Cl.C)(g);f==="old_right"&&S===Di.lS.Directory&&u({type:"entry:resources:update:current:popup:panel",payload:{name:Di.lS.Builtin}}),S||u({type:"entry:resources:update:current:popup:panel",payload:{name:f==="old_right"?Di.lS.Builtin:Di.lS.Directory}}),_&&f!=="old_right"&&u({type:"entry:resources:update:current:popup:panel",payload:{name:Di.lS.Directory}}),setTimeout(()=>{u({type:"entry:update:viewport:rect"}),u({type:"entry:update:screen_list_rect"})},200)},"entry:update:preference-data":async(L,P)=>{let{getState:b,dispatch:u}=L,{payload:f}=P;const g=b(),{isDesign:S}=(0,r.W4)(g),_={};f&&Object.entries(f).forEach(O=>{let[V,H]=O;const Y=Vc(V);["builtinListInvisible","recentlyUsedScreenMetaIcons"].includes(Y)?_[Y]=new Set(JSON.parse(H)):Y==="autoFillHistory"||Y==="defaultFontFamily"||Y==="defaultFontSize"?_[Y]=JSON.parse(H):_[Y]=H}),await u({type:"preference:update:state",payload:_}),S&&await(0,W.SD)(f)},"preference:toggle:theme":L=>{let{getState:P,dispatch:b}=L;const u=P(),f=(0,mt.O4)(u);b({type:"entry:update:preference",payload:{theme:f===J.Sx.LIGHT?J.Sx.DARK:J.Sx.LIGHT}}),b({type:"entry:init:ruler:canvas"})},"preference:toggle:multiplayerMouse":L=>{let{getState:P,dispatch:b}=L;const u=P(),f=(0,mt.lU)(u);b({type:"entry:update:preference",payload:{isShowMultiCursor:!f}})},"preference:toggle:showRulerReferLine":L=>{let{getState:P,dispatch:b}=L;const u=P();if(!(0,mt.qT)(u)){MB.notice({text:"\u8BF7\u5148\u542F\u7528\u6807\u5C3A\u4EE5\u4F7F\u7528\u6B64\u529F\u80FD",type:"warning"});return}const g=(0,mt.gf)(u);b({type:"entry:update:preference",payload:{show_ruler_line:!g}})},"preference:toggle:ruler":L=>{let{getState:P,dispatch:b}=L;const u=P(),f=(0,mt.qT)(u);b({type:"entry:update:preference",payload:{ruler:!f}})},"preference:toggle:AlignLine":L=>{let{getState:P,dispatch:b}=L;const u=P();if(!(0,mt.qT)(u)){MB.notice({text:"\u8BF7\u5148\u542F\u7528\u6807\u5C3A\u4EE5\u4F7F\u7528\u6B64\u529F\u80FD",type:"warning"});return}const g=(0,mt.Nn)(u);b({type:"entry:update:preference",payload:{show_align_line:!g}})},"preference:toggle:containSelect":L=>{let{getState:P,dispatch:b}=L;const u=P(),f=(0,mt.vZ)(u);b({type:"entry:update:preference",payload:{contain_select:!f}})},"preference:toggle:useNativeEyedropper":L=>{let{getState:P,dispatch:b}=L;const u=P(),f=(0,mt.AM)(u);b({type:"entry:update:preference",payload:{use_native_eyedropper:!f}})},"preference:toggle:dragMode":L=>{let{getState:P,dispatch:b}=L;const u=P(),f=(0,mt.PI)(u);b({type:"entry:update:preference",payload:{show_drag_mode:!f}})},"preference:toggle:panelLinkDefaultTransition":L=>{let{getState:P,dispatch:b}=L;const u=P(),f=(0,mt.Bl)(u);b({type:"entry:update:preference",payload:{panel_link_default_transition:f===0?1:0}})},"preference:toggle:stateLinkDefaultTransition":L=>{let{getState:P,dispatch:b}=L;const u=P(),f=(0,mt.EK)(u);b({type:"entry:update:preference",payload:{state_link_default_transition:f===0?1:0}})}};var ca=s(74923),Lr=s(85584),yi=s(34121),Ts=s(20640),Cc=s(26034),Wi=s(66361),Ml=s(53559),Oi=s(79209),zs=s(72214);const Hl=L=>(0,Lr.e7)(L.key).map(b=>{let{key:u}=b;return u}),El=L=>{const P=L.map(f=>f.cid),b=[],u=f=>f.map(g=>({...g,children:u(g.children.filter(S=>{if(P.includes(S.cid))return b.push(S.cid),!0}))}));return u(L).filter(f=>!b.includes(f.cid))},Xl=L=>{const P=[],b=u=>{const{hotAttr:f,sub:g=[]}=sdkStore.getHotItem(u)||{};(f==null?void 0:f.bunch)===N.x.RbPage&&!(f!=null&&f.asFolder)?P.push(u):g.forEach(S=>b(S))};return L.forEach(u=>b(u)),P},uc=(L,P)=>{let b=vo(L,P);return b||Pl(L,P)},Pl=(L,P)=>{let b=L,u=sdkStore.getHotItem(b.sup);for(;(f=u)!=null&&f.key&&((g=u)==null?void 0:g.key)!=="@@M";){var f,g,S,_;let O=sdkStore.getSubHotItemList((S=u)==null?void 0:S.key).filter(H=>H.hotAttr.type==="rResBunch").sort((H,Y)=>{var re,pe;return((re=H.hotAttr)==null?void 0:re.zIndex)-((pe=Y.hotAttr)==null?void 0:pe.zIndex)});const V=O==null?void 0:O.findIndex(H=>H.key===b.key);if(V>0)for(let H=V-1;H>=0;H--){let Y=Pc(O[H],P);if(Y)return Y}if(!((_=u)!=null&&_.hotAttr.asFolder)&&!P.includes(u.key))return u;b=u,u=sdkStore.getHotItem(b.sup)}return null},Pc=(L,P)=>{if(!L)return L;const b=sdkStore.getSubHotItemList(L.key).filter(u=>u.hotAttr.type==="rResBunch").sort((u,f)=>{var g,S;return((g=u.hotAttr)==null?void 0:g.zIndex)-((S=f.hotAttr)==null?void 0:S.zIndex)});if(b.length!==0)for(let u=b.length-1;u>=0;u--){let f=Pc(b[u],P);if(f)return f}return!L.hotAttr.asFolder&&!P.includes(L.key)?L:null},Gl=(L,P)=>{if(!L||!L.hotAttr.asFolder&&!P.includes(L.key))return L;const b=sdkStore.getSubHotItemList(L.key).filter(u=>u.hotAttr.type==="rResBunch").sort((u,f)=>{var g,S;return((g=u.hotAttr)==null?void 0:g.zIndex)-((S=f.hotAttr)==null?void 0:S.zIndex)});if(b.length!==0)for(let u=0;u<b.length;u++){let f=Gl(b[u],P);if(f)return f}return null},vo=(L,P)=>{let b=L,u=sdkStore.getHotItem(b.sup);for(;(f=u)!=null&&f.key&&((g=u)==null?void 0:g.key)!=="@@M";){var f,g,S;let _=sdkStore.getSubHotItemList((S=u)==null?void 0:S.key).filter(V=>V.hotAttr.type==="rResBunch").sort((V,H)=>{var Y,re;return((Y=V.hotAttr)==null?void 0:Y.zIndex)-((re=H.hotAttr)==null?void 0:re.zIndex)});const O=_==null?void 0:_.findIndex(V=>V.key===b.key);if(O+1<_.length)for(let V=O+1;V<_.length;V++){let H=Gl(_[V],P);if(H)return H}b=u,u=sdkStore.getHotItem(b.sup)}return null},ia={"entry:update:screen:list":L=>{let{getState:P,dispatch:b}=L;const u=P(),f=(0,r.z$)(u);if((0,xo.St)()&&f.screen_visible_switch){const{screenTreeData:g,screenTreeMap:S,screenDataMap:_}=(0,Ts.wb)(f.screen_visible_list);b({type:"screen:set:all:screen-data",payload:{screenTreeData:g,screenTreeMap:S,screenDataMap:_}})}else{const{screenTreeData:g,screenTreeMap:S,screenDataMap:_}=(0,Ts.tb)("B@main");b({type:"screen:set:all:screen-data",payload:{screenTreeData:g,screenTreeMap:S,screenDataMap:_}})}},"entry:create:screen:auto:to:root-project":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:f={isCreateChildren:!1,parentScreen:null,direction:Wi.$.MOVEUP}}=P;const g=b();if(!(0,Oi.Iz)())return;const{isCreateChildren:S,parentScreen:_,direction:O}=f;if(S&&_){u({type:"entry:create:new:child:screen",payload:{screen:_}});return}const V=(0,y.He)(g),H=(0,r.Ur)(g),Y=H==null?void 0:H.cid,re=(0,y.Hs)(g),pe=V[re.length===1?re[0]:Y],Ce=V[Y];u({type:"entry:create:screen:to:root-project",payload:{screen:_||pe||Ce,direction:O}})},"entry:create:screen:to:root-project":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{screen:f,direction:g=Wi.$.MOVEUP}}=P;const S=b(),_=(0,r.PL)(S);if(!f){u({type:"entry:create:and:activate:screen",payload:{attrs:{name:I18N.LeftSidePanel.page,zIndex:1,sup:"B@main"}}});return}const O=(0,Lr.BS)(f),V=O.findIndex(Ce=>Ce.cid===f.key),H=g===Wi.$.MOVEDOWN?V+g<0?0:V+g+1:V+g;O.splice(H,0,null),O.forEach((Ce,Pe)=>{Ce&&(Ce.sup!==f.sup||Ce.zIndex!==Pe+1)&&sdkStore.updateHotAttrMerge(Ce.cid,{zIndex:Pe+1})});const re={name:(0,yi.pV)(O),zIndex:H+1,sup:f.sup};u({type:"entry:create:and:activate:screen",payload:{attrs:re}});const pe=Hl(f);u({type:"screen:del:collapseKeySet",payload:{refs:pe,projectCid:_.cid}})},"entry:create:new:child:screen":(L,P)=>{var b;let{getState:u,dispatch:f}=L,{payload:{screen:g}}=P;const S=u(),_=(0,r.PL)(S);let O=[];if(g!=null&&(b=g.sub)!=null&&b.length){const re=sdkStore.getHotItem(g.sub[0]);O=(0,Lr.BS)(re)}const H={name:(0,yi.pV)(O),zIndex:O.length+1,sup:g.key};f({type:"entry:create:and:activate:screen",payload:{attrs:H}});const Y=Hl(g).concat(g.key);f({type:"screen:del:collapseKeySet",payload:{refs:Y,projectCid:_.cid}})},"entry:create:and:activate:screen":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{attrs:f}}=P;const g=b(),{attr:{orientation:S}}=(0,r.PL)(g),{width:_,height:O,model:V}=(0,r.PL)(g),H=S==="landscape"?O:_,Y=S==="landscape"?_:O;sdkStore.combineMergeMark("create-screen");const re=(0,yi.Hz)({...f,device:V,deviceH:Y,deviceW:H,deviceOrientation:S});u({type:"entry:update:screen:list"}),u({type:"entry:goto:project-alike",payload:{screenMetaCid:re.key}}),u(o.GO.editBasketItemKey("")),u(o.GO.editBasketRefPage("")),u({type:"screen:update:editing-screen-cid",payload:{cid:re.key}});const pe={...Cc.N[N.x.Canvas](),w:H,h:Y,x:0,y:0,name:"\u9875\u9762",orientation:S||"portrait",device:V};u({type:"entry:batch:create:items",payload:{data:[{items:[pe]}],offset:{top:Y/2,left:H/2},sup:re.key}}),u({type:"entry:zoom:fit:scale:offset"}),u({type:"entry:reset:screen:selection",payload:{resetScreenCid:re.key}}),u({type:"entry:memory:last:screenAndCanvas",payload:{screenMetaCid:re.key}}),u({type:"entry:memory:current:screen:offset:scale"}),u({type:"screen:update:state",payload:{currentPage:re}}),sdkStore.combineMerge("create-screen")},"entry:create:screen_folder:auto:to:root-project":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:f={isCreateChildren:!1,parentScreenFolder:null}}=P;const{isCreateChildren:g,parentScreenFolder:S}=f;if(g){let Pe=S;if(!Pe){const Ie=b(),Re=(0,ca.I_)(Ie),We=(0,y.He)(Ie),{contextScreenSelection:ct}=Re,vt=ct.length===1,Ut=We[ct[0]];Pe=vt?Ut:null}if(Pe){u({type:"entry:create:new:child:screen_folder",payload:{screen:Pe}});return}}const _=b(),O=(0,y.He)(_),V=(0,r.Ur)(_),H=V==null?void 0:V.cid,Y=(0,y.Hs)(_),re=O[Y.length===1?Y[0]:H],pe=O[H];u({type:"entry:create:screen_folder:to:root-project",payload:{screen:re||pe}})},"entry:create:creeen_folder:auto:to:current_folder":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:f={curScreenFolder,isCreateNextSibling:!1}}=P;return function(){const{isCreateNextSibling:g,curScreenFolder:S}=f,_=sdkStore.getHotItem(S.sup),O={cid:_.key},V=(0,Lr.BS)(S),H=(0,yi.pV)(V,!0),Y=V.indexOf(V.find(pe=>pe.cid===S.key)),re={name:H,zIndex:g?Y:Y-1,sup:_.key,asFolder:!0};u({type:"entry:create:and:select:screen_folder",payload:{attrs:re,screenGlue:O}})}()},"entry:create:screen_folder:to:root-project":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{screen:f}}=P;const g=b(),S=(0,r.PL)(g),_={cid:S.cid};if(!f){u({type:"entry:create:and:select:screen_folder",payload:{attrs:{name:I18N.LeftSidePanel.page_folder,zIndex:1,sup:"B@main",asFolder:!0},screenGlue:_}});return}const O=(0,Lr.BS)(f),H=O.findIndex(pe=>pe.cid===f.key)+1;O.splice(H,0,null),O.forEach((pe,Ce)=>{if(pe&&(pe.sup!==f.sup||pe.zIndex!==Ce+1)){const Pe=sdkStore.getHotItem(pe.cid),Ie={...Pe,hotAttr:{...Pe.hotAttr,zIndex:Ce+1}};sdkStore.updateHotItem(Ie)}});const Y={name:(0,yi.pV)(O,!0),zIndex:H+1,sup:f.sup,asFolder:!0};u({type:"entry:create:and:select:screen_folder",payload:{attrs:Y,screenGlue:_}});const re=Hl(f);u({type:"screen:del:collapseKeySet",payload:{refs:re,projectCid:S.cid}})},"entry:create:new:child:screen_folder":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{screen:f}}=P;const g=b(),S=(0,r.PL)(g),_={cid:S.cid},O=(0,Lr.BS)(f),H={name:(0,yi.pV)(O,!0),zIndex:O.length+1,sup:f.key,asFolder:!0};u({type:"entry:create:and:select:screen_folder",payload:{attrs:H,screenGlue:_}});const Y=Hl(f).concat(f.cid);u({type:"screen:del:collapseKeySet",payload:{refs:Y,projectCid:S.cid}})},"entry:create:and:select:screen_folder":(L,P)=>{let{dispatch:b}=L,{payload:{attrs:u}}=P;const f=(0,yi.Hz)(u);b({type:"entry:update:screen:list"}),b({type:"screen:update:editing-screen-cid",payload:{cid:f.key}}),b({type:"entry:reset:screen:selection",payload:{resetScreenCid:f.key}})},"entry:check:dup:screen:page:folder:batch":L=>{let{getState:P,dispatch:b}=L;const u=P(),f=(0,y.Hs)(u),g=(0,y.HA)(u),{isEditingCombo:S}=(0,gt.r)(u);let _=!1;const O=f.filter(V=>{var H;const Y=(H=rootSdk.sdkStore.getHotItem(V))==null?void 0:H.hotAttr;return Y?!(Y.bunch===N.x.RbPage&&Y.asFolder):!1});if(!(!S&&!(0,Oi.X9)(O,!1))){if(f.forEach(V=>{var H;const Y=(0,Lr.Bq)(V,g);!(Y!=null&&(H=Y.data)!=null&&H.asFolder)&&(Y==null?void 0:Y.children.length)>0&&(_=!0)}),_){b({type:"modal:update:state",payload:{screenDupModal:{isOpen:!0,isBatch:!0,isEditingCombo:S}}});return}if(S){b({type:"entry:auto:dup:combo:comboGroup:on:screenList",payload:{isWithChildren:!1}});return}b({type:"entry:dup:screen:page:folder:batch",payload:{isWithChildren:!1}})}},"entry:dup:screen:page:folder:batch":(L,P)=>{var b;let{getState:u,dispatch:f}=L,{payload:{isWithChildren:g,isScreenSelectionContextMenu:S=!1}}=P;const _=u(),{isEditingCombo:O}=(0,gt.r)(_),V=(0,y.Hs)(_);if(!O&&!(0,Oi.X9)(V,g))return;const H=(0,y.He)(_),Y=(0,y.HA)(_),re=V[V.length-1],pe=(0,Lr.zK)(re,Y),Ce=[];let Pe=!0;const Ie=V.map(We=>{const ct=H[We],vt=(0,Lr.Bq)(ct==null?void 0:ct.key,Y);if((g||(0,Lr.Mo)(ct.hotAttr))&&!S){const Ut=(0,Lr.QR)(vt);if(pe+Ut-1>7){Pe=!1,MB.notice({text:I18N.ScreenPanel.invalid_screen_nested_level.replace(/%s/,7),type:"error"});return}}return ct});if(!Pe)return;sdkStore.combineMergeMark("dup-folder-batch"),Ie.forEach(We=>{const{key:ct}=(0,yi.o)(We);Ce.push(ct),(g||(0,Lr.Mo)(We.hotAttr))&&!S&&(0,yi.NA)(We,ct)});const Re=(b=Ie[V.length-1])==null?void 0:b.sup;f({type:"entry:update:screen:list"}),f({type:"entry:update:screen_list:by:sort",payload:{pathSelectedIds:Ce,parentCid:Re,cid:re,type:"nextSibling",isSort:!1}}),f({type:"screen:update:screen-selection",payload:{screenSelection:Ce}}),sdkStore.combineMerge("dup-folder-batch")},"entry:check:dup:screen:page:folder":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{screen:f}}=P;const g=b(),S=(0,y.HA)(g),_=(0,Lr.Bq)(f==null?void 0:f.key,S);if((0,Lr.Mo)(_.data))u({type:"entry:dup:screen:folder",payload:{screen:f}});else{const V=_.children.length;u(V?{type:"modal:update:state",payload:{screenDupModal:{isOpen:!0,screen:f,screenTreeNode:_}}}:{type:"entry:dup:screen:page",payload:{screen:f}})}},"entry:dup:screen:selection":async(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{isScreenSelectionContextMenu:f}}=P;const g=b(),_=(0,y.Hs)(g).filter(O=>{var V;const H=(V=rootSdk.sdkStore.getHotItem(O))==null?void 0:V.hotAttr;return H?!(H.bunch===N.x.RbPage&&H.asFolder):!1});(0,Oi.X9)(_,!1)&&u({type:"entry:dup:screen:page:folder:batch",payload:{isWithChildren:!1,isScreenSelectionContextMenu:f}})},"entry:dup:screen:folder":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{screen:f}}=P;const g=b(),S=(0,y.HA)(g),{isEditingCombo:_}=(0,gt.r)(g);if(!_&&!(0,Oi.Rk)(f,!0))return;sdkStore.combineMergeMark("dup-folder");const{key:O}=(0,yi.o)(f);(0,yi.NA)(f,O),(0,yi.Pv)(f,S),sdkStore.combineMerge("dup-folder"),u({type:"entry:update:screen:list"}),u({type:"screen:update:editing-screen-cid",payload:{cid:O}}),u({type:"entry:reset:screen:selection",payload:{resetScreenCid:O}}),_?MB.notice({text:I18N.__entry__.widget_dup_success}):MB.notice({text:I18N.__entry__.copied_successfully})},"entry:dup:screen:page":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{screen:f,isWithChildren:g=!1}}=P;const S=b(),{isEditingCombo:_}=(0,gt.r)(S),O=(0,y.HA)(S),V=(0,It.jI)(S),H=(0,It.bt)(S);if(!_&&!(0,Oi.Rk)(f,g))return;const{key:Y}=(0,yi.o)(f);g&&(0,yi.NA)(f,Y),(0,yi.Pv)(f,O),u({type:"entry:update:screen:list"}),V&&u({type:"entry:exit:edit:basket"}),H||(u({type:"entry:activate:screen",payload:{screenCid:Y}}),u({type:"entry:reset:screen:selection",payload:{resetScreenCid:Y}}),u({type:"screen:update:editing-screen-cid",payload:{cid:Y}})),_?MB.notice({text:I18N.__entry__.widget_dup_success}):MB.notice({text:I18N.__entry__.copy_page_success})},"entry:transfer:screen":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{screen:f,isScreenSelectionContextMenu:g=!1}}=P;const S=b(),_=(0,y.He)(S),O=(0,y.HA)(S),V=(0,y.WU)(S);let H=new Set,Y=[],re=[];if(g){const Ie=(0,y.Hs)(S);Y=Ie,re=El(Ie.map(Re=>(0,Lr.Bq)(Re,O)))}else if(f){const Ie=(0,Lr.Bq)(f.key,O);Y=(0,Lr.kz)(Ie),re=[Ie]}else{const Ie=(0,ca.q3)(S),We=Array.from(Ie).map(ct=>(0,Lr.Bq)(ct,O));Y=We.map(ct=>[...(0,Lr.kz)(ct)]).flat(),re=We}H=new Set(Y);const Ce=Object.values(_).filter(Ie=>!(0,Lr.Mo)(Ie)&&!H.has(Ie.key)).length===0;u({type:"modal:update:state",payload:{screenTransferModal:{isOpen:!0,screenMetaList:re,isAllTransfer:Ce,isMultiplePage:V}}})},"entry:remove:screen:check:del":async(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{screen:f}}=P;const g=b(),S=(0,r.HW)(g),{isEditingCombo:_}=(0,gt.r)(g),O=(0,It.jI)(g),V=(0,It.bt)(g),H=(0,y.p$)(g),{hotAttr:{name:Y,asFolder:re},sub:pe,key:Ce}=f,Pe=Xl(pe),Ie=(0,y.He)(g),Re=(0,y.HA)(g),We=(0,Lr.Bq)(f.key,Re),ct=(0,Lr.kz)(We),vt=new Set(ct);if(Object.values(Ie).filter(fn=>!(0,Lr.Mo)(fn)&&!vt.has(fn.key)).length===0&&!_)return MB.notice({text:I18N.__entry__.cant_remove_screen,type:"warning"});const pn=Pe.length;if(re){if(pn===0)(0,yi.X3)(f.key,S),u({type:"entry:update:screen:list"}),MB.notice({text:I18N.SettingPanel.design.floder_del_success}),u({type:"screen:update:state",payload:{isMultiplePage:!1}});else{const fn=()=>{u({type:"entry:remove:screen:after:new_selection",payload:{delScreenSelection:[f.key,...Pe]}}),(0,yi.X3)(f.key,S),Pe.includes(H==null?void 0:H.key)&&O&&u({type:"entry:exit:edit:basket"}),u({type:"entry:update:screen:list"}),MB.notice({text:I18N.SettingPanel.design.floder_del_success}),u({type:"screen:update:state",payload:{isMultiplePage:!1}}),u({type:"entry:update:screen_list_rect"})};u({type:"modal:update:confirm:state",payload:{isOpen:!0,title:I18N.__entry__.remove_folders,desc:_?I18N.__entry__.del_screen_folder_desc.replace(/%s/,Y).replace(/%d/,pn):""+I18N.__entry__.del_screen_folder_desc.replace(/%s/,Y).replace(/%d/,pn)+I18N.__entry__.restore_in_recycle_in,confirmText:I18N.__entry__.delete,onConfirm:fn}})}return}pn>0?u({type:"modal:update:state",payload:{screenRemovalModal:{isOpen:!0,name:Y,count:pn,isEditingCombo:_,onConfirm:uo=>{u({type:"entry:screen:delete:page:by:father",payload:{screenTreeNode:f,isRemovingAll:uo}}),_?MB.notice({text:I18N.__entry__.widget_del_success}):MB.notice({text:I18N.dModals.page_del_success}),!_&&u({type:"screen:update:state",payload:{isMultiplePage:!1}})}}}}):(u({type:"entry:remove:screen:after:new_selection",payload:{delScreenSelection:[f.key]}}),(0,yi.X3)(f.key,S),(H==null?void 0:H.key)===Ce&&O&&u({type:"entry:exit:edit:basket"}),u({type:"entry:update:screen:list"}),_?MB.notice({text:I18N.__entry__.widget_del_success}):MB.notice({text:I18N.dModals.page_del_success}),!_&&u({type:"screen:update:state",payload:{isMultiplePage:!1}})),u({type:"entry:update:linkNodeList",payload:f})},"entry:remove:screen:after:new_selection":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:f}=P;const g=b(),{delScreenSelection:S}=f,_=(0,y.p$)(g),O=(0,r.PL)(g);if(_&&S.includes(_.key)){const V=uc(_,S);if(!V){u({type:"entry:activate:root-project:home-screen"});return}const{key:H}=V,Y=Hl(V);u({type:"screen:del:collapseKeySet",payload:{refs:Y,projectCid:O.cid}}),u({type:"entry:goto:project-alike",payload:{screenMetaCid:H}}),u({type:"entry:reset:screen:selection",payload:{resetScreenCid:H}}),u({type:"entry:memory:last:screenAndCanvas",payload:{screenMetaCid:H}}),u({type:"screen:update:state",payload:{currentPage:sdkStore.getHotItem(H)}});const re=g.ui.fixedLayout.modals.previewModal;if(re!=null&&re.isOpen){const Ce=re.basketKey;Ce&&sdkStore.isTrashed(Ce)&&u({type:"modal:update:state",payload:{previewModal:{isOpen:!1}}})}const pe=g.ui.fixedLayout.modals.previewComboModal;if(pe!=null&&pe.isOpen){const Ce=pe.activeWidgetKey;Ce&&sdkStore.isTrashed(Ce)&&u({type:"modal:update:state",payload:{previewComboModal:{isOpen:!1}}})}}},"entry:remove:screen:list:by:context_menu":async(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{screenSelection:f}}=P;const g=b(),S=(0,y.He)(g),_=(0,y.HA)(g),O=new Set(f),V=(0,r.HW)(g),H=(0,r.wA)(g),{isEditingCombo:Y}=(0,gt.r)(g),re=(0,It.jI)(g),pe=(0,It.bt)(g),Ce=(0,y.p$)(g);if((0,Lr.sV)(_,We=>{const{cid:ct,children:vt}=We;if(O.has(ct)&&vt.length>0)for(const Ut of We.children)O.add(Ut.cid)}),Object.values(S).filter(We=>!(0,Lr.Mo)(We)&&!O.has(We.key)).length===0&&!Y)return MB.notice({text:I18N.__entry__.cant_remove_screen,type:"warning"});const Ie=(0,Ml.ln)(V,H),Re=()=>{sdkStore.combineMergeMark("remove-screen");const We=[];for(const ct of Array.from(O)){const vt=S[ct];vt&&We.push(vt)}u({type:"entry:remove:screen:after:new_selection",payload:{delScreenSelection:We}}),(0,yi.gu)(We,V),O.has(Ce==null?void 0:Ce.key)&&re&&u({type:"entry:exit:edit:basket"}),u({type:"entry:update:screen:list"}),sdkStore.combineMerge("remove-screen"),MB.notice({text:I18N.dModals.delete_success}),u({type:"screen:update:state",payload:{isMultiplePage:!1}}),u({type:"entry:update:screen_list_rect"})};u({type:"modal:update:confirm:state",payload:{isOpen:!0,title:Y?I18N.__entry__.del_widget_title:I18N.dModals.delete_page_confirm_title,desc:Y?I18N.__entry__.del_multi_widget_desc:I18N.dModals.delete_page_confirm_content,className:"screen-action-modal",renderDesc:()=>Y?null:(0,zs.jsx)("p",{style:{color:"#999",fontSize:"12px",marginTop:"2px"},children:I18N.dModals.delete_page_confirm_des.replace(/{recycleDays}/,Ie)}),confirmText:I18N.__entry__.delete,onConfirm:Re}})},"entry:remove:screen:list:by:managePageModal":async(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{screenSelection:f}}=P;const g=b(),S=(0,y.He)(g),_=new Set(f),O=(0,r.HW)(g),{isEditingCombo:V}=(0,gt.r)(g),H=Object.values(S).filter(re=>!(0,Lr.Mo)(re)&&!_.has(re.key)).map(re=>re==null?void 0:re.key);if(H.length===0&&!V)return MB.notice({text:I18N.__entry__.cant_remove_screen,type:"warning"});sdkStore.combineMergeMark("remove-screen");const Y=[];for(const re of Array.from(_)){const pe=S[re];pe&&Y.push(pe)}for(const re of H){const Ce=sdkStore.findUpHotItemList(re).map(Pe=>Pe==null?void 0:Pe.key).filter(Pe=>Pe!==re).find(Pe=>!_.has(Pe));Ce&&sdkStore.moveHotItem(re,Ce)}u({type:"entry:remove:screen:after:new_selection",payload:{delScreenSelection:Y}}),(0,yi.gu)(Y,O),u({type:"entry:update:screen:list"}),sdkStore.combineMerge("remove-screen"),MB.notice({text:I18N.dModals.delete_success})},"entry:remove:screen:selection:del":async L=>{let{getState:P,dispatch:b}=L;const u=P(),f=(0,r.HW)(u),g=(0,y.Hs)(u),S=(0,y.He)(u),{isEditingCombo:_}=(0,gt.r)(u);if(Object.values(S).filter(H=>!(0,Lr.Mo)(H)&&!g.includes(H.key)).length===0&&!_)return MB.notice({text:I18N.__entry__.cant_remove_screen,type:"warning"});const V=()=>{sdkStore.combineMergeMark("remove-screen-selection"),g.forEach(H=>{const Y=sdkStore.getHotItem(H),{sub:re}=Y;re.filter(Pe=>{const{hotAttr:{bunch:Ie}}=sdkStore.getHotItem(Pe);return Ie===N.x.RbPage}).length>0?b({type:"entry:screen:delete:page:by:father",payload:{screenTreeNode:Y,isRemovingAll:!1}}):(b({type:"entry:remove:screen:after:new_selection",payload:{delScreenSelection:[Y.key]}}),(0,yi.X3)(Y.key,f),b({type:"entry:update:screen:list"}),b({type:"entry:rebuild:screen-widget-tree"}))}),MB.notice({text:I18N.dModals.page_del_success}),sdkStore.combineMerge("remove-screen-selection"),b({type:"screen:update:state",payload:{isMultiplePage:!1}}),b({type:"entry:update:screen_list_rect"})};b({type:"modal:update:confirm:state",payload:{isOpen:!0,title:I18N.__entry__.remove_screens,renderDesc:()=>(0,zs.jsxs)("p",{children:[(0,zs.jsx)("span",{className:"desc-text-1",children:I18N.__entry__.del_screens_desc}),(0,zs.jsx)("span",{className:"desc-text-2",children:I18N.__entry__.del_screens_desc_2})]}),confirmText:I18N.__entry__.delete,onConfirm:V}})},"entry:activate:root-project:home-screen":L=>{let{getState:P,dispatch:b}=L;const{screenTreeData:u,screenTreeMap:f,screenDataMap:g}=(0,Ts.tb)();b({type:"screen:set:all:screen-data",payload:{screenTreeData:u,screenTreeMap:f,screenDataMap:g}});const S=(0,Lr.Ct)(u);if(!S){b({type:"current:update:state",payload:{isEditingCid:"",currentScreen:null}}),b({type:"screen:update:state",payload:{currentPage:{}}});return}const{cid:_}=S;b({type:"entry:goto:project-alike",payload:{screenMetaCid:_}}),b({type:"entry:reset:screen:selection",payload:{resetScreenCid:_}}),b({type:"entry:memory:last:screenAndCanvas",payload:{screenMetaCid:S.cid}}),b({type:"screen:update:state",payload:{currentPage:sdkStore.getHotItem(_)}});const O=P(),V=O.ui.fixedLayout.modals.previewModal;if(V!=null&&V.isOpen){const Y=V.basketKey;Y&&sdkStore.isTrashed(Y)&&b({type:"modal:update:state",payload:{previewModal:{isOpen:!1}}})}const H=O.ui.fixedLayout.modals.previewComboModal;if(H!=null&&H.isOpen){const Y=H.activeWidgetKey;Y&&sdkStore.isTrashed(Y)&&b({type:"modal:update:state",payload:{previewComboModal:{isOpen:!1}}})}},"entry:expand:all:screen":L=>{let{getState:P,dispatch:b}=L;const u=P(),f=(0,r.PL)(u);b({type:"screen:reset:collapseKeySet",payload:{projectCid:f.cid}}),b({type:"entry:update:screen:list"})},"entry:unExpand:all:screen":L=>{let{getState:P,dispatch:b}=L;const u=P(),f=(0,y.HA)(u),g=(0,r.PL)(u),S=(0,Lr.Gw)(f);b({type:"screen:add:collapseKeySet",payload:{refs:S,projectCid:g.cid}}),b({type:"entry:update:screen:list"})},"entry:update:screen_list:by:sort":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{pathSelectedIds:f,parentCid:g,type:S,cid:_,isUndo:O=!0,isSort:V=!0}}=P;const H=b(),Y=(0,r.PL)(H),{cid:re}=(0,r.Ur)(H),{screenDataMap:pe}=(0,Ts.tb)(),Ce=[];for(const ct of f){const vt=pe[ct];vt&&Ce.push(vt)}V&&Ce.sort((ct,vt)=>{var Ut,pn;return((Ut=ct.hotAttr)==null?void 0:Ut.zIndex)-((pn=vt.hotAttr)==null?void 0:pn.zIndex)});const Pe=sdkStore.getHotItem(g),Ie=Pe.sub.filter(ct=>!f.includes(ct)).map(ct=>sdkStore.getHotItem(ct)).sort((ct,vt)=>ct.hotAttr.zIndex-vt.hotAttr.zIndex),Re=Ie.findIndex(ct=>ct.key===_),We=S==="prevSibling"?Re:S==="firstChild"?0:S==="nextSibling"?Re+1:"error";Ie.splice(We,0,...Ce),S==="firstChild"&&Pe&&u({type:"screen:del:collapseKeySet",payload:{refs:[Pe==null?void 0:Pe.key],projectCid:Y==null?void 0:Y.cid}}),sdkStore.combineMergeMark("sort-screen"),Ie.forEach((ct,vt)=>{var Ut;if(ct.sup!==g||((Ut=ct.hotAttr)==null?void 0:Ut.zIndex)!==vt+1){const pn=sdkStore.getHotItem(ct.key),fn={...pn,sup:g,hotAttr:{...pn.hotAttr,zIndex:vt+1}};if(sdkStore.updateHotItem(fn),re===ct.key){const uo=(0,Ts.ON)(fn);u({type:"entry:update:current:screen-mata",payload:{screenMeta:uo}})}}}),sdkStore.combineMerge("sort-screen"),u({type:"entry:update:screen:list"})},"entry:update:screen_list:by:sort:direction":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{screenMeta:f,direction:g}}=P;const S=b(),_=(0,y.Hs)(S),O=(0,y.He)(S),V=f?[f.key]:_,H=V.map(Y=>O[Y]).sort((Y,re)=>{var pe,Ce,Pe,Ie;return g===Wi.$.MOVEUP||g===Wi.$.DOWNGRADE?((pe=Y.hotAttr)==null?void 0:pe.zIndex)-((Ce=re.hotAttr)==null?void 0:Ce.zIndex):((Pe=re.hotAttr)==null?void 0:Pe.zIndex)-((Ie=Y.hotAttr)==null?void 0:Ie.zIndex)});if(sdkStore.combineMergeMark("update-screen"),(g===Wi.$.DOWNGRADE||g===Wi.$.UPGRADE)&&V.length>1){const Y=(0,ca.q3)(S);H.forEach(re=>{Y.has(re.key)&&u({type:"entry:update:screen_list:by:sort:direction:single",payload:{screenMetaList:[re],direction:g,isUndo:!1}})}),sdkStore.combineMerge("update-screen");return}H.forEach(Y=>{u({type:"entry:update:screen_list:by:sort:direction:single",payload:{screenMetaList:[Y],direction:g,isUndo:!1}})}),sdkStore.combineMerge("update-screen")},"entry:screen:delete:page:by:father":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{screenTreeNode:f,isRemovingAll:g}}=P;const S=b(),_=(0,r.HW)(S),O=(0,It.jI)(S),V=(0,It.bt)(S),H=(0,y.p$)(S);if(sdkStore.combineMergeMark("delete-page-by-father"),!g){const{sup:re,key:pe}=f,Ce=sdkStore.getSubHotItemList(pe).filter(ct=>{var vt;return(ct==null||(vt=ct.hotAttr)==null?void 0:vt.bunch)===N.x.RbPage}).map(ct=>ct.key),Pe=sdkStore.getSubHotItemList(re).filter(ct=>{var vt;return(ct==null||(vt=ct.hotAttr)==null?void 0:vt.bunch)===N.x.RbPage}).sort((ct,vt)=>{var Ut,pn;return(ct==null||(Ut=ct.hotAttr)==null?void 0:Ut.zIndex)-(vt==null||(pn=vt.hotAttr)==null?void 0:pn.zIndex)}).map(ct=>ct.key),Ie=Pe.findIndex(ct=>ct===pe),Re=Pe[Ie===Pe.length-1?Ie-1:Ie+1],We=Ie===Pe.length-1?"nextSibling":"prevSibling";u({type:"entry:update:screen_list:by:sort",payload:{pathSelectedIds:Ce,parentCid:re,cid:Re,type:We,isUndo:!1}})}const Y=g?sdkStore.findAllTypeUnder(f.key,"rResBunch").map(re=>re==null?void 0:re.key):[f.key];u({type:"entry:remove:screen:after:new_selection",payload:{delScreenSelection:Y}}),(0,yi.X3)(f.key,_),Y!=null&&Y.includes(H==null?void 0:H.key)&&O&&u({type:"entry:exit:edit:basket"}),u({type:"entry:update:screen:list"}),sdkStore.combineMerge("delete-page-by-father")},"entry:update:screen_list:by:sort:direction:single":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{screenMetaList:f,direction:g,isUndo:S=!0}}=P;const _=b(),O=(0,y.He)(_),V=(0,r.PL)(_),H=(0,ca.ey)(_),Y=f.map(Ut=>Ut.key);if(g===Wi.$.MOVEUP||g===Wi.$.MOVEDOWN){var re,pe;if(g===Wi.$.MOVEUP){var Ce;if(H.has((Ce=f[0])==null?void 0:Ce.key))return}else{var Pe;if((0,ca.Xw)(_).has((Pe=f[0])==null?void 0:Pe.key))return}const Ut=(0,Lr.BS)(f[0]).sort((Mn,Gt)=>Mn.zIndex-Gt.zIndex),fn=Ut.findIndex(Mn=>{var Gt;return Mn.cid===((Gt=f[0])==null?void 0:Gt.key)})-g,uo=(re=Ut[fn])==null?void 0:re.cid;if(!uo)return;u({type:"entry:update:screen_list:by:sort",payload:{isUndo:S,pathSelectedIds:Y,parentCid:(pe=f[0])==null?void 0:pe.sup,cid:uo,type:g===Wi.$.MOVEUP?"prevSibling":"nextSibling"}})}else{if(g===Wi.$.UPGRADE){var Ie;const Ut=O[(Ie=f[0])==null?void 0:Ie.sup];if(!Ut)return;u({type:"entry:update:screen_list:by:sort",payload:{isUndo:S,pathSelectedIds:Y,parentCid:Ut.sup,cid:Ut.key,type:"nextSibling"}})}if(g===Wi.$.DOWNGRADE){var Re,We,ct,vt;if((0,ca.nF)(_).has((Re=f[0])==null?void 0:Re.key)||H.has((We=f[0])==null?void 0:We.key))return;const pn=(0,Lr.BS)(f[0]),fn=pn.findIndex(yo=>{var Do;return yo.cid===((Do=f[0])==null?void 0:Do.key)}),uo=(ct=pn[fn-1])==null?void 0:ct.cid;if(!uo)return;const Mn=O[uo],Gt=Mn==null?void 0:Mn.sub[(Mn==null||(vt=Mn.sub)==null?void 0:vt.length)-1];u({type:"screen:del:collapseKeySet",payload:{refs:[Mn==null?void 0:Mn.key],projectCid:V==null?void 0:V.cid}}),u({type:"entry:update:screen_list:by:sort",payload:{isUndo:S,pathSelectedIds:Y,parentCid:uo,cid:Gt,type:"nextSibling"}})}}},"entry:memory:current:screen:offset:scale":L=>{let{getState:P,dispatch:b}=L;const u=P(),f=(0,r.ER)(u),g=(0,r.X_)(u),S=(0,r.Ur)(u);S&&b({type:"screen:update:screenInfoMap",payload:{key:S.cid,value:{offset:f,scale:g}}})}};var na=s(29078);const Tt={...{"entry:set:default:left-side-panel-width":L=>{let{getState:P,dispatch:b}=L;const u=P(),g=(0,mt.bP)(u)==="old_right"?J.sR:J.Cj;b({type:"left-panel:set:width",payload:{width:g,isNotSaveLocal:!0}})},"entry:toggle:left-nav-panel":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:f={isAlwaysShow:!1}}=P;const{isAlwaysShow:g}=f,S=b(),_=(0,It.T7)(S),O=document.querySelector(".mb-left-panel");if(O&&(O.style.transition="none"),g){u({type:"left-panel:collapse:panel:show",payload:{isMemorize:!_}}),u({type:"entry:observe:dom:size:update-viewport-rect"});return}u({type:"left-panel:collapse:panel",payload:{isMemorize:!_}}),u({type:"entry:observe:dom:size:update-viewport-rect"})},"entry:open:contextmenu:by:component-list":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{key:f,position:g,byComponentList:S=!0,byCanvasLayers:_=!1}}=P;const O=b(),V=(0,I.GO)(O),H=(0,De.p$)(O),Y=H.includes(f)?H:[f],re=V.includes(f),pe=Y.filter(Ce=>re?V.includes(Ce):!V.includes(Ce));u({type:"entry:update:selection:select:items",payload:{cids:pe}}),u({type:"open:contextmenu",payload:{position:g,byComponentList:S,byCanvasLayers:_}})}},...ia,...{"layerExpandedKeySet:open:ref":L=>{let{getState:P,dispatch:b}=L;const u=P(),f=(0,r.Ur)(u).cid,g=(0,na.vl)(f);b({type:"layerExpandedKeySet:delAllSet:ref",payload:{refs:g}})}}};var mn=s(3862),Rn=s(49903),gn=s(75661),Tn=s(11032),wo=s(16335),io=s(12991),fo=s(77277),co=s(5288),ga=s(30275),Fo=s(82515),Eo=s(70812);const Oa=L=>L?io.rf.Org:io.rf.User,Ra=(L,P)=>{var b;return(b=L[P])==null?void 0:b.list},tr=(L,P)=>{var b;return(b=L[P])==null?void 0:b.total},Ar=L=>{var P;let{searchResultListMap:b,category:u,nextSearchResultList:f,nextTotal:g=0}=L;return{...b,[u]:{...b[u],list:f,total:g||((P=b[u])==null?void 0:P.total)}}},nr={"entry:search-panel:update:combo:or:asset:attr":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{cid:f,type:g,attr:S,isOrg:_=!1,category:O}}=P;const V=b(),H=(0,ca.uq)(V),Y=Ra(H,O);if(!(Y!=null&&Y.length))return;const re=Oa(_),pe=(0,io.dU)({list:Y,keys:[re],type:g,mapFunc:Ce=>Ce.map(Pe=>Pe.key===f?{...Pe,hotAttr:{...Pe.hotAttr,...S}}:Pe)});u({type:"searchPanel:update:state",payload:{searchResultListMap:Ar({searchResultListMap:H,category:O,nextSearchResultList:pe})}})},"entry:search-panel:remove:combo:or:asset:from:cidSet":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{cidsSet:f,type:g,isOrg:S=!1,category:_}}=P;const O=b(),V=(0,ca.uq)(O),H=Ra(V,_),Y=tr(V,_),re=(0,ca.Vs)(O),pe=(0,ca.lW)(O);if(!(H!=null&&H.length)||pe)return;const Ce=Oa(S),Pe=(0,io.dU)({list:H,keys:[Ce],type:g,mapFunc:Ie=>Ie.filter(Re=>{let{key:We,cid:ct}=Re;return!f.has(We||ct)})});u({type:"searchPanel:update:state",payload:{searchResultSum:re-f.size,searchResultListMap:Ar({searchResultListMap:V,category:_,nextSearchResultList:Pe,nextTotal:Y-f.size})}})},"entry:search-panel:remove:group":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{matchSelectDelSet:f,isOrg:g=!1,category:S}}=P;const _=b(),O=(0,ca.uq)(_),V=Ra(O,S),H=tr(O,S),Y=(0,ca.Vs)(_);if(!(V!=null&&V.length))return;const re=Oa(g),pe=(0,io.dU)({list:V,keys:[re],type:fo.I.Group,mapFunc:Ce=>Ce.filter(Pe=>{let{cid:Ie}=Pe;return!f.has(Ie)})});u({type:"searchPanel:update:state",payload:{searchResultSum:Y-f.size,searchResultListMap:Ar({searchResultListMap:O,category:S,nextSearchResultList:pe,nextTotal:H-f.size})}})},"entry:search-panel:refresh:group:add":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{category:f,groupAddList:g}}=P;const S=b(),_=(0,ca.uq)(S),O=Ra(_,f),V=tr(_,f),H=(0,ca.Vs)(S);if(!(O!=null&&O.length))return;const Y=(0,io.dU)({list:O,keys:[io.rf.Org],category:f,type:fo.I.Group,addList:g,mapFunc:re=>[...re].concat(g),spliceFunc:(re,pe)=>re.splice(1,0,pe)});u({type:"searchPanel:add:collapsePanelSet",payload:{id:(0,io.wt)(f,io.rf.Org)}}),u({type:"searchPanel:update:state",payload:{searchResultSum:H+1,searchResultListMap:Ar({searchResultListMap:_,category:f,nextSearchResultList:Y,nextTotal:V+1})}})},"entry:search-panel:remove:combo:from:comboCid":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{comboCidsSet:f,isOrg:g=!1}}=P;u({type:"entry:search-panel:remove:combo:or:asset:from:cidSet",payload:{cidsSet:f,type:fo.I.SelfMakeCombo,isOrg:g,category:mn.t_}})},"entry:search-panel:update:combo:name":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{cid:f,name:g,isOrg:S=!1}}=P;u({type:"entry:search-panel:update:combo:or:asset:attr",payload:{cid:f,type:fo.I.SelfMakeCombo,attr:{name:g},isOrg:S,category:mn.t_}})},"entry:search-panel:dup:combo":async(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{cid:f,comboGroupCid:g,isOrg:S=!1,category:_=mn.t_}}=P;const O=b(),V=(0,ca.uq)(O),H=Ra(V,_),Y=tr(V,_),re=(0,ca.Vs)(O),pe=(0,ca.lW)(O);if(!(H!=null&&H.length)||pe)return;const Ce=Oa(S),Pe=(0,ca.wS)(O),Ie=(0,ca.lb)(O),We=(S?Ie:Pe).find(fn=>fn.cid===g),ct=We==null?void 0:We.children;if(!(ct!=null&&ct.length))return;const vt=ct.find(fn=>fn.key===f);if(!vt)return;const Ut={...vt,hotAttr:{...vt.hotAttr,name:vt.hotAttr.name+" "+I18N.__entry__.name_copy},group:We},pn=(0,io.dU)({list:H,keys:[Ce],type:fo.I.SelfMakeCombo,mapFunc:fn=>fn.concat(Ut)});u({type:"searchPanel:update:state",payload:{searchResultSum:re+1,searchResultListMap:Ar({searchResultListMap:V,category:_,nextSearchResultList:pn,nextTotal:Y+1})}})},"entry:search-panel:transfer:combo":async(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{transferCombos:f,isOrg:g=!1,category:S=mn.t_}}=P;const _=b(),O=(0,ca.uq)(_),V=Ra(O,S);if(!(V!=null&&V.length))return;const H=Oa(g),Y=pe=>pe.map(Ce=>f.find(Pe=>Pe.key===Ce.key)||Ce),re=(0,io.dU)({list:V,keys:[H],type:fo.I.SelfMakeCombo,mapFunc:Y});u({type:"searchPanel:update:state",payload:{searchResultListMap:Ar({searchResultListMap:O,category:S,nextSearchResultList:re})}})},"entry:search-panel:refresh:star:resources":async(L,P)=>{var b,u;let{getState:f,dispatch:g}=L,{payload:{category:S,resources:_,isFromIconSelectPopup:O,updateResources:V}}=P;const H=f(),Y=(0,ca.uq)(H),re=(b=Y[S])==null?void 0:b.list,pe=(0,ca.NA)(H),Ce=O?pe:re,Pe=O?"iconSelectPopupSearchResultList":"searchResultListMap";if(!(Ce!=null&&Ce.length))return;const Ie=S===mn.C,Re=S===mn.Gd,We=S===mn.RD,{is_star:ct}=_,vt=io.rf.User,Ut=fn=>fn?vt:io.rf.Find;let pn=[];if(Ie||We)pn=Ce.map(fn=>{if([fo.I.Resources,fo.I.IconList].includes(fn.type)){const uo=fn.items.map(Mn=>Mn.cid===_.cid?V(Mn):Mn);return{...fn,items:uo}}return fn});else if(Re){const fn=V(_);pn=(0,io.o0)(Ce,fn)}else{const fn=V(_);pn=(0,io.dU)({list:re,keys:[Ut(!ct)],category:S,type:fo.I.Resources,addList:[fn],mapFunc:Mn=>[...Mn].concat(fn),spliceFunc:(Mn,Gt)=>{const yo=ct?Mn.length:0;Mn.splice(yo,0,Gt)},otherKeys:[Ut(ct)],filterFunc:Mn=>Mn.filter(Gt=>Gt.cid!==fn.cid)}),pn=(0,io.dU)({list:pn,keys:[io.rf.Find],category:S,type:fo.I.MarketTemplate,mapFunc:Mn=>Mn.map(Gt=>Gt.currentResources.cid===fn.cid?{...Gt,currentResources:fn}:Gt)});const uo=(0,io.wt)(S,Ut(!ct));g({type:"searchPanel:add:collapsePanelSet",payload:{id:uo}})}if((u=pn)!=null&&u.length)if(O)g({type:"searchPanel:update:state",payload:{[Pe]:pn}});else{const fn={...Y,[S]:{...Y[S],list:pn}};g({type:"searchPanel:update:state",payload:{[Pe]:fn}})}},"entry:search-panel:remove:resources":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{resources:f}}=P;const g=b(),S=f.category,_=(0,ca.uq)(g),O=Ra(_,S),V=tr(_,S),H=(0,ca.Vs)(g);if(!(O!=null&&O.length))return;const Y=(0,io.dU)({list:O,keys:[io.rf.Star,io.rf.User,io.rf.Find],type:fo.I.Resources,mapFunc:re=>re.filter(pe=>pe.cid!==f.cid)});u({type:"searchPanel:update:state",payload:{searchResultSum:H-1,searchResultListMap:Ar({searchResultListMap:_,category:S,nextSearchResultList:Y,nextTotal:V-1})}})},"entry:search-panel:update:asset:name":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{cid:f,name:g,isOrg:S=!1}}=P;u({type:"entry:search-panel:update:combo:or:asset:attr",payload:{cid:f,type:fo.I.Asset,attr:{name:g},isOrg:S,category:mn.b4}})},"entry:search-panel:remove:asset:from:asset":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{asset:f,isOrg:g=!1}}=P;const S=new Set([f.cid]);u({type:"entry:search-panel:remove:combo:or:asset:from:cidSet",payload:{cidsSet:S,type:fo.I.Asset,isOrg:g,category:mn.b4}})},"entry:search-panel:transfer:user:asset:to:org":async(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{cid:f,groupCid:g,category:S=mn.b4}}=P;const _=b(),O=(0,ca.uq)(_),V=Ra(O,S),H=tr(O,S),Y=(0,ca.Vs)(_),re=(0,ca.lW)(_);if(!(V!=null&&V.length)||re)return;const{orgAssets:pe}=await(0,W.l9)(),Ce=pe.filter(Re=>We=>We.group_cid===g);if(!Ce)return;for(const Re of Ce)Re.cid=Re.asset_cid;const Pe=Ce.find(Re=>Re.cid===f);if(!Pe)return;const Ie=(0,io.dU)({list:V,keys:[io.rf.Org],type:fo.I.Asset,mapFunc:Re=>Re.concat(Pe),category:mn.b4,addList:[Pe],spliceFunc:(Re,We)=>Re.splice(1,0,We)});u({type:"searchPanel:add:collapsePanelSet",payload:{id:(0,io.wt)(mn.b4,io.rf.Org)}}),u({type:"searchPanel:update:state",payload:{searchResultSum:Y+1,searchResultListMap:Ar({searchResultListMap:O,category:S,nextSearchResultList:Ie,nextTotal:H+1})}})},"entry:search-panel:search:from:keyword":async(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{from:f,category:g,isHistoryWord:S=!1,isHotKeyWord:_=!1}}=P;const O=f===ga.Z.iconSelectPopup,V=b(),{isEditingProjectMain:H,isEditingCombo:Y,isEditingBasket:re,isEditingMuban:pe}=(0,gt.r)(V),Ce=(0,ca.uJ)(V),Pe=(0,ca.TF)(V),Ie=(0,r.wA)(V),Re=(0,y.OW)(V),We=(0,r.HW)(V),ct=(0,r.F2)(V),vt=(0,r._x)(V),Ut=(0,Kn.D1)(H,!(Y||re||pe),Ce),pn=(0,ca.XN)(V),fn=(0,ca.qY)(V),uo=(0,y.aN)(V),Mn=(0,ca.sF)(V),Gt=(0,ca.zX)(V),yo=new Set(Mn.concat(Gt).map(Ma=>{let{cid:Ya}=Ma;return Ya})),Do=Ie==null?void 0:Ie.cid,Wo=O?Pe.trim():Ce.trim(),Ro=O?"isIconSelectPopupLoading":"isLoading",ra=!O;if(Wo){if(u({type:"exalt:panel:order",payload:{name:Di.lS.Search}}),u({type:"searchPanel:update:state",payload:{[Ro]:!0,type:g}}),u(O?{type:"icon-select-popup:update:state",payload:{isShowSearch:!0}}:{type:"searchPanel:update:state",payload:{show:!0}}),ra||g===mn.t_){const Ya=We==null?void 0:We.id;!window.userSdkStore&&ct&&await(0,Fo.Z)({fcg:ct,userId:Ya}),!window.orgSdkStore&&Ie!=null&&Ie.cid&&vt&&await(0,Fo.Z)({fcg:vt,userId:Ya,isOrg:!0})}try{var ka,pa;(0,W.Gx)(Wo);const Ya=O?"iconSelectPopupSearchResultList":"searchResultListMap",di=O?"iconSelectPopupSearchResultSum":"searchResultSum",ja=b(),ri=(0,ca.wS)(ja),ks=(0,ca.lb)(ja),{scene_tag:ti}=(0,r.PL)(ja),vi=Date.now(),Hr=await(0,io.WA)({dispatch:u,category:g,isSearchAll:ra,keyword:Wo,orgCid:Do,builtWidgets:Ut,assetGroupCidSet:yo,userResourcesComboGroup:ri,orgResourcesComboGroup:ks,sceneTag:ti,from:f,userAssetsMap:pn,orgAssetsMap:fn,isSaveAllAssetsMap:uo}),Yr=Date.now()-vi,br=new Map;(ka=Hr.resources)!=null&&ka.length&&Hr.resources.forEach(pi=>{var ui;const{cid:tl,project_metas:Yi}=pi;br.set(tl,(ui=Yi[0])==null?void 0:ui.cid)});let zi;if(ra){({total:zi}=Hr);const{result:pi}=Hr;let ui=[Ut==null?void 0:Ut.cid];Object.entries(pi).forEach(tl=>{let[Yi,{list:us}]=tl;ui=ui.concat(us.map(pl=>{let{cid:Va}=pl;return Va}))}),[mn.t_,mn.Gd,mn.RD,mn.C,mn.b4,co.Jf].forEach(tl=>ui.push(tl)),u({type:"searchPanel:update:state",payload:{searchResultCategory:g,searchCollapsePanelSet:new Set(ui),searchMtMetaCidMap:br}}),u({type:"searchPanel:update:state",payload:{[Ya]:pi,[di]:zi,[Ro]:!1}})}else{({total:zi}=Hr);const{list:pi}=Hr;u({type:"searchPanel:update:state",payload:{[Ya]:pi,[di]:zi,[Ro]:!1}})}const mr=ra?Hr.result?(pa=Hr.result[g])==null?void 0:pa.total:0:Hr.total;Eo.U4.searchResultTrack(Wo,Re,mr)}catch(Ya){console.error("search error",Ya),u({type:"searchPanel:update:state",payload:{[Ro]:!1}})}}else u({type:"entry:search-panel:clear:state",payload:{from:f}})},"entry:search-panel:clear:state":async(L,P)=>{let{dispatch:b}=L,{payload:u}=P,f=!1;u&&(f=u.from===ga.Z.iconSelectPopup),f?(b({type:"searchPanel:clear:search:state:from:icon-select-popup"}),b({type:"icon-select-popup:update:state",payload:{isShowSearch:!1}})):b({type:"entry:search-panel:clear:search:state"}),b({type:"update:popups:state",payload:{showGlobalHeader:!0}})},"entry:search-panel:close:combo-group":async L=>{let{getState:P}=L;const b=P(),u=(0,ca.uq)(b),f=Ra(u,mn.t_);if(f!=null&&f.length){const g=f.map(_=>{let{list:O}=_;if(O&&O!=null&&O.length)return O.map(V=>{let{type:H,items:Y}=V;if(H===fo.I.SelfMakeCombo)return Y.map(re=>{let{project_meta_cid:pe}=re;return pe})})}).flat(1/0).filter(_=>!!_),S=Array.from(new Set(g));S&&S!=null&&S.length&&S.forEach(_=>{})}},"entry:search-panel:clear:search:state":async L=>{let{dispatch:P}=L;P({type:"entry:search-panel:close:combo-group"}),P({type:"searchPanel:clear:search:state"})},"entry:search-panel:resources:set:mtSdkStore:map":async(L,P)=>{let{dispatch:b,getState:u}=L,{payload:{mtResourceCidList:f}}=P;const g=u(),S=(0,ca.FM)(g);b({type:"entry:resources:set:mtSdkStore:map",payload:{mtResourceCidList:f,mtProjectMetaCidMap:S}})}};var $a=s(22440);const Rr=(L,P)=>{const u=new RegExp("^"+P+"(\\s(\\d+))?$").exec(L);return u&&Number(u[2])||0},or=L=>{const P=Math.max.apply(null,L);for(let b=1;b<=P;b++)if(L.indexOf(b)===-1)return b;return P+1},Ba=L=>{const P=[],b=u=>{u.forEach(f=>{P.push(f.name),f.subFolder&&f.subFolder.length>0&&b(f.subFolder)})};return b(L),P},Ja=(L,P)=>{const b=Ba(L),u=new RegExp("^"+P+"\\s(\\d+)$"),f=[];return b.forEach(g=>{u.exec(g)&&f.push(Rr(g,P))}),f.length>0?P+" "+or(f):P+" 1"};var Za=s(61790),Nr=s(95956),ii=s(24640),Ci=s(20085),Zi=s(25306),Zr=s(27845);const Hi={"entry:prepare:asset:to:user:org:group":async(L,P)=>{let{getState:b,dispatch:u}=L,{payload:f={targetType:"user"}}=P;const{targetType:g}=f,S=b(),_=g==="user",O=(0,r.wA)(S),V=(0,r.HW)(S),H=(0,ca.cb)(S),Y=(0,ca.Hl)(S),re=(0,De.nE)(S).filter(Mn=>!(0,Oe.OO)(Mn.key)),pe=_?I18N.dModals.add_image_me_asset:I18N.dModals.add_image_org_asset;MB.safeDelayLoading(I18N.__entry__.in_progress);let Ce=0;const Pe=[];for(const Mn of re){const{image:{imageRef:Gt}}=Mn.hotAttr,yo=(0,$.Kf)(Gt);if(_){const{asset:Do,user_asset:Wo}=await(0,W.E8)(yo);Wo||(Ce+=Do.size,Pe.push(Do))}else{const{asset:Do,org_asset:Wo}=await(0,W.Wr)(yo,O.cid);Wo||(Ce+=Do.size,Pe.push(Do))}}if(!Pe.length){MB.safeDelayLoading(!1),_?MB.notice({text:I18N.dModals.me_asset_exit_image}):MB.notice({text:I18N.dModals.org_asset_exit_image});return}let Ie=null;if(_){if(!H){const{userAssetGroupList:pa}=await(0,W.OJ)();u({type:"image-panel:set:user-assets-groups",payload:{nextGroups:pa}}),u({type:"image-panel:update:state",payload:{isRequestUserAssetGroup:!0}})}const Mn=b(),Gt=(0,ca.sF)(Mn);MB.safeDelayLoading(!1);let yo=0;for(const pa of Gt){const{assets_size:Ma}=pa;yo=yo+Ma}const Do=V.limitation.storage,Wo=Number(Do),Ro=Wo>=1e3?Wo/1e3+"GB":Wo+"MB",ka=Zi.tz.InitialUser(V).planSdk.prototypePlan.getUserPlan()===Zr.L1.Free;if(yo+Ce>Do*1024*1024)return(0,$a.Nd)("storage",{storage:" "+Ro,action:ka?"upgradeByFree":"upgradeByNotFree",role:"user",submit:ka?I18N.__entry__.upgrade_solo:I18N.__entry__.renew_prompt.check_enterprise,gotoPrice:!ka,paymentRenewModalParams:ka?{mode:"solo",payEntrance:"\u7D20\u6750\u5E93\u5BB9\u91CF\u8D85\u8FC7\u9650\u5236"}:null}),!0;Ie=Gt}else{if(!Y){const{orgAssetGroupList:ra}=await(0,W.l9)(O.cid);u({type:"image-panel:set:user-assets-groups",payload:{nextGroups:ra}}),u({type:"image-panel:update:state",payload:{isRequestOrgAssetGroup:!0}})}const Mn=b(),Gt=(0,ca.zX)(Mn);if(MB.safeDelayLoading(!1),!Gt)return;let yo=0;for(const ra of Gt){const{assets_size:ka}=ra;yo=yo+ka}const{storage:Do}=(0,Ml.xR)(V,O),Wo=Number(Do),Ro=Wo>=1e3?Wo/1e3+"GB":Wo+"MB";if(yo+Ce>Do*1024*1024)return(0,$a.Nd)("storage",{storage:" "+Ro,action:"addseats",role:"org",paymentRenewModalParams:{mode:"org_adding_seats",payEntrance:"\u7D20\u6750\u5E93\u5BB9\u91CF\u8D85\u8FC7\u9650\u5236"},submit:I18N.__entry__.renew_prompt.add_seats,orgCid:O.cid}),!0;Ie=Gt}MB.safeDelayLoading(!1);const Re=re.length?(0,Za.KD)(re[0].key):I18N.__entry__.untitled,We=Ja(Ie,I18N.__entry__.folder),ct=Ie.sort((Mn,Gt)=>Gt.created_at-Mn.created_at),vt=ct.length===0,Ut=ct.length&&ct[0].name,pn=String(Ut),fn=(0,Ci.H)(ct);u({type:"modal:update:state",payload:{designCreateWithGroupModal:{isOpen:!0,isCreating:vt,modalTitle:pe,createName:Re,targetGroupCid:pn,groupName:We,optionGroupItemList:fn,onModalConfirm:async Mn=>{let{isCreating:Gt,createName:yo,targetGroupCid:Do,groupName:Wo,onModalClose:Ro}=Mn;Ro();let ra="";if(Gt){if(Ie.some(pa=>pa.name===Wo))return MB.notice({text:I18N.__entry__.folder_dup_of_name,type:"warning"}),!0;if(_){const pa=(0,ca.sF)(S),Ma=V.solo_org.cid,Ya={name:Wo,position:0},{asset_group:di}=await(0,W.A9)(Ma,Ya);ra=di.cid;const ja=(0,ii.ON)(di,pa,W.Qs);await u({type:"image-panel:set:user-assets-groups",payload:{nextGroups:ja}})}else{const pa=(0,ca.zX)(S),Ma=O.cid,Ya={name:Wo,position:0},{asset_group:di}=await(0,W.A9)(Ma,Ya);ra=di.cid;const ja=(0,ii.ON)(di,pa,(0,W.XG)(Ma));await u({type:"image-panel:set:org-assets-groups",payload:{nextGroups:ja}})}}else ra=Do;_?!(0,ca.$L)(S).includes(ra)&&u({type:"image-panel:set:local-user-assets-expand-cids",payload:{oper:"plus",cid:ra}}):!(0,ca.i)(S).includes(ra)&&u({type:"image-panel:set:local-org-assets-expand-cids",payload:{oper:"plus",cid:ra}});for(const ka of Pe)_?await(0,W.Xw)({assetCid:ka.cid,name:yo,groupCid:ra}):await(0,W.ob)({assetCid:ka.cid,name:yo,groupCid:ra});_?(await u({type:"entry:load:user:asset:group:list"}),await u({type:"entry:refresh:user-asset:from:cid",payload:{groupCid:ra}})):(await u({type:"entry:load:org:asset:group:list"}),await u({type:"entry:refresh:org-asset:from:cid",payload:{groupCid:ra}})),u({type:"entry:auto:scroll-to:active-asset-group",payload:{activeAssetGroup:ra,isOrg:!_}})}}}})},"entry:check:asset:auto:to:user:org:group":(L,P)=>{let{dispatch:b}=L,{payload:{isOrg:u}}=P;b({type:"entry:create:asset:to:user:org:group",payload:{targetType:!u?"user":"org"}})},"entry:create:asset:to:user:org:group":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:f={targetType:"user"}}=P;const{targetType:g}=f,S=b(),_=(0,r.wA)(S),O=(0,r.HW)(S),{storage:V}=(0,Ml.xR)(O,_),H=g==="user",Y=H?(0,ca.sF)(S):(0,ca.zX)(S),re=H?I18N.Resources.upload_image_to_my_assets:I18N.Resources.upload_image_to_team_library,pe=I18N.__entry__.folder,Ce=Y.length===0,Ie=Y.length&&Y[0].cid||"";u({type:"modal:update:state",payload:{assetCreateWithGroupModal:{isOpen:!0,isCreating:Ce,modalTitle:re,targetGroupCid:Ie,groupName:pe,optionGroupItemList:Y,onModalConfirm:async We=>{var ct;let{files:vt,isCreating:Ut,targetGroupCid:pn,groupName:fn,onModalClose:uo}=We;uo();let Mn;if(Ut){if(Y.some(ka=>ka.name===fn))return MB.notice({text:I18N.__entry__.folder_dup_of_name,type:"warning"}),!0;if(H){const ka=(0,ca.sF)(S),pa=O.solo_org.cid,Ma={name:fn,position:0},Ya=await(0,W.A9)(pa,Ma);if(!Ya)return;const{asset_group:di}=Ya,ja=di;Mn=ja.cid;const ri=(0,ii.ON)(ja,ka,W.Qs);u({type:"image-panel:set:user-assets-groups",payload:{nextGroups:ri}})}else{const ka=(0,ca.zX)(S),pa=_.cid,Ma={name:fn,position:0},Ya=await(0,W.A9)(pa,Ma);if(!Ya)return;const{asset_group:di}=Ya;Mn=di.cid;const ja=(0,ii.ON)(di,ka,(0,W.XG)(pa));u({type:"image-panel:set:org-assets-groups",payload:{nextGroups:ja}})}}else Mn=pn;H?(!(0,ca.$L)(S).includes(Mn)&&u({type:"image-panel:set:local-user-assets-expand-cids",payload:{oper:"plus",cid:Mn}}),await u({type:"entry:refresh:user-asset:from:cid",payload:{groupCid:Mn}})):(!(0,ca.i)(S).includes(Mn)&&u({type:"image-panel:set:local-org-assets-expand-cids",payload:{oper:"plus",cid:Mn}}),await u({type:"entry:refresh:org-asset:from:cid",payload:{groupCid:Mn}})),u({type:"entry:auto:scroll-to:active-asset-group",payload:{activeAssetGroup:Mn,isOrg:!H}});const Gt={assetType:"flat_image",groupCid:Mn,orgCid:H?O==null||(ct=O.solo_org)==null?void 0:ct.cid:_.cid,userName:O.name},yo=ra=>{u({type:"update:popups:state",payload:{assetUpload:ra}})},Do=ra=>{u({type:"update:popups:state",payload:{assetUploadState:ra}})};let Wo=0;for(const ra of Y){const{assets_size:ka}=ra;Wo=Wo+ka}const Ro=V;yr(vt,{assetAttrs:Gt,userId:O.id,onChangeAssetUpload:yo,onChangeAssetUploadState:Do,exceededChecker:ra=>{const ka=Number(Ro),pa=ka>=1e3?ka/1e3+"GB":ka+"MB",Ya=Zi.tz.InitialUser(O).planSdk.prototypePlan.getUserPlan()===Zr.L1.Free;if(Wo+ra>Ro*1024*1024)return(0,$a.Nd)("storage",{storage:" "+pa,action:Ya?"upgradeByFree":"upgradeByNotFree",role:"user",submit:Ya?I18N.LibraryContainer.renew_prompt.upgrade_solo:I18N.LibraryContainer.renew_prompt.check_enterprise,gotoPrice:!Ya,paymentRenewModalParams:Ya?{mode:"solo",payEntrance:"\u7D20\u6750\u5E93\u5BB9\u91CF\u8D85\u8FC7\u9650\u5236"}:null}),!0},callback:(ra,ka,pa)=>{const Ma=ka===pa;setTimeout(()=>{u({type:"entry:refresh:asset:add",payload:{asset:{...ra,asset_cid:ra==null?void 0:ra.cid},isCreateToUser:H}}),yo({index:ka,indexMax:pa,assetUploaderFailure:[]}),Ma&&setTimeout(()=>{Do("end")},1e3)},100),!H&&dn.Y4.trackLibraryMaterialOperation({materialType:"\u56FE\u7247",materialOperation:"\u4E0A\u4F20\u56FE\u7247"})}},"workspace",O,_)}}}})},"entry:refresh:asset:add":async(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{asset:f,isCreateToUser:g}}=P;const S=b(),_=f.group_cid,V=(g?(0,ca.XN)(S):(0,ca.qY)(S)).get(_);if(V){const H=[...V],Y={},re=[];for(const pe of V)Y[pe.cid]=pe;Y[f.cid]||(H.push(f),re.push(f),g?(u({type:"image-panel:set:user-assets-map",payload:{groupCid:_,userAssets:H}}),u({type:"entry:refresh:image-modal:user:image",payload:{addAssetList:re}}),u({type:"entry:refresh:user-asset:count:url"})):(u({type:"image-panel:set:org-assets-map",payload:{groupCid:_,orgAssets:H}}),u({type:"entry:refresh:image-modal:org:image",payload:{addAssetList:re}})))}else if(g){const H=(0,ca.sF)(S),Y=[];for(const re of H)_===re.cid&&(re.assets_count=re.assets_count+1),Y.push(re);u({type:"image-panel:set:user-assets-groups",payload:{nextGroups:Y}})}}},yr=(L,P,b,u,f)=>{let{assetAttrs:g,userId:S,onChangeAssetUpload:_,onChangeAssetUploadState:O,exceededChecker:V,callback:H}=P;if(L=Array.from(L),!L.length)return;const Y=L.reduce((re,pe)=>re+pe.size,0);V(Y)||(O("start"),$r(L,S,g,H,b,u,f,"design").catch(re=>console.warn("[Asset]",re)).then(re=>{if(!re){O("close");return}const{assetUploaderSuccess:pe,assetUploaderFailure:Ce}=re,Pe=pe.length,Ie=Pe!==0,Re=Ce.length!==0;Ie&&setTimeout(()=>{O("close"),_({index:0,indexMax:0,assetUploaderFailure:[]})},2e3),Re&&setTimeout(()=>{O("failure"),_({index:0,indexMax:0,assetUploaderFailure:Ce})},2e3),setTimeout(()=>{Pe===L.length?MB.notice({text:I18N.LibraryContainer.image_upload_success,type:"success"}):Pe>0&&Pe<L.length?MB.notice({text:I18N.LibraryContainer.someimage_upload_success}):Pe===0&&(MB.notice({text:I18N.LibraryContainer.image_faild_tips,type:"warning"}),O("close"))},2e3)}))},$r=async function(L,P,b,u,f,g,S,_){P===void 0&&(P="");let{assetType:O,groupCid:V,orgCid:H,userName:Y=""}=b;const re=[],pe=[];for(let Ce=0,Pe=L.length;Ce<Pe;Ce++)try{const Ie=L[Ce];(0,Nr.XI)(Ie,f,g,S,_),await(0,ko.lO)(Ie,{assetType:O,orgCid:H,groupCid:V,userId:P},void 0).then(Re=>{Re&&(Re.group_cid=V,Re.user_id=P,Re.user_name=Y,Re.name=Ie.name,Re.size=Ie.size,Re.created_at=new Date().valueOf(),pe.push(Re),O==="org_image"&&(Re.org_cid=H),u&&u(Re,pe.length,Pe))})}catch(Ie){if(console.error(Ie),Ie.asset&&re.push(Ie.asset),MB.currentOrg)return;(Ie==null?void 0:Ie.message)!=="NoErrorTips"&&(0,Nr.lK)(Ie)}return{assetUploaderSuccess:pe,assetUploaderFailure:re}},os={"entry:refresh:user-asset:from:cid":async(L,P)=>{let{dispatch:b}=L,{payload:{groupCid:u}}=P;const{userAssets:f}=await(0,W.OJ)(),g=f.filter(S=>S.group_cid===u);g&&b({type:"image-panel:set:user-assets-map",payload:{groupCid:u,userAssets:g}})},"entry:batch:remove:user-asset":async(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{userAsset:f,callback:g}}=P;const[S,_]=[I18N.LibraryContainer.materialLibrary.dele_image,I18N.LibraryContainer.materialLibrary.image_delete_tips.replace(/%s/,f.name)],O=b(),V=(0,ca.XN)(O);V!=null&&V.get(f.group_cid)||await u({type:"entry:refresh:user-asset:from:cid",payload:{groupCid:f.group_cid}});const H=()=>{u({type:"entry:refresh:user-asset:delete",payload:{userAsset:f}}),u({type:"entry:search-panel:remove:asset:from:asset",payload:{asset:f}}),MB.notice({text:I18N.LibraryContainer.image_del_success}),g&&g()};u({type:"modal:update:confirm:state",payload:{isOpen:!0,title:S,desc:_,onConfirm:()=>{H()}}})},"entry:batch:transfer:user-asset":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{userAsset:f,callback:g}}=P;const S=b(),_=(0,ca.sF)(S),O=async H=>{let{selectedGroupCid:Y}=H;if(Y===f.group_cid){MB.notice({text:"\u56FE\u7247\u5DF2\u5B58\u5728\u5F53\u524D\u6587\u4EF6\u5939\u4E2D",type:"error"});return}const re=[f.group_cid];f.group_cid=Y,re.push(Y),await u({type:"entry:refresh:transfer:user-asset:from:group_cid",payload:{refreshGroupCidList:re,userAsset:f}}),await(0,W.wR)({cids:[f.cid],...f}),MB.notice({text:I18N.LibraryContainer.asset_move_success}),!(0,ca.$L)(S).includes(Y)&&u({type:"image-panel:set:local-user-assets-expand-cids",payload:{oper:"plus",cid:Y}}),await u({type:"entry:refresh:user-asset:from:cid",payload:{groupCid:Y}}),u({type:"entry:auto:scroll-to:active-asset-group",payload:{activeAssetGroup:Y,isOrg:!1}}),g&&g()},V=I18N.LibraryContainer.materialLibrary.asset_move;u({type:"modal:update:state",payload:{designTransferModal:{isOpen:!0,title:V,selectCidSet:new Set(f.cid),itemGroups:_,isImage:!0,onModalTransfer:O}}})},"entry:refresh:user-asset:delete":async(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{userAsset:f}}=P;const g=b(),S=(0,ca.sF)(g),_=(0,ca.XN)(g);for(const O of S)if(f.group_cid===O.cid&&_.get(f.group_cid)){const V=[],H=_.get(f.group_cid);for(const Y of H)Y.cid!==f.cid?V.push(Y):(0,W.Qy)(f);u({type:"image-panel:set:user-assets-map",payload:{groupCid:f.group_cid,userAssets:V}})}u({type:"entry:refresh:user-asset:count:url"})},"entry:refresh:transfer:user-asset:from:group_cid":async(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{refreshGroupCidList:f,userAsset:g}}=P;const S=b(),_=(0,ca.XN)(S),[O,V]=f;if(_.get(O)){const re=[],pe=_.get(O);for(const Ce of pe)Ce.cid!==g.cid&&re.push(Ce);u({type:"image-panel:set:user-assets-map",payload:{groupCid:O,userAssets:re}})}const Y=[..._.get(V)||[],g];u({type:"image-panel:set:user-assets-map",payload:{groupCid:V,userAssets:Y}}),u({type:"entry:refresh:user-asset:count:url"})},"entry:refresh:user-asset:update":async(L,P)=>{var b;let{getState:u,dispatch:f}=L,{payload:{userAssetUpdateList:g}}=P;const S=u(),_=(0,ca.XN)(S),O=(0,y.ut)(S),V=[],H=g[0].group_cid,Y=g[0].cid,re=_.get(H),pe=(0,ca.uq)(S),Ce=(b=pe[mn.b4])==null?void 0:b.list;if(O){var Pe;if(!(Ce!=null&&Ce.length))return;const Re=(0,io.dU)({list:Ce,keys:[io.rf.User],type:fo.I.Asset,mapFunc:function(ct){return ct===void 0&&(ct=[]),ct.map(vt=>(vt==null?void 0:vt.cid)===Y?{...g[0]}:vt)}}),We={...pe,asset:{...pe[io.rf.Org],list:Re,total:(Pe=pe.asset)==null?void 0:Pe.total}};f({type:"searchPanel:update:state",payload:{searchResultListMap:We}})}const Ie={};for(const Re of g)Ie[Re.cid]=Re,(0,W.wR)({cids:[Re.cid],...Re});if(re){for(const Re of re)if(Ie[Re.cid]){const We=Ie[Re.cid];V.push(We)}else V.push(Re);f({type:"image-panel:set:user-assets-map",payload:{groupCid:H,userAssets:V}})}f({type:"entry:refresh:user-asset:count:url"})},"entry:refresh:user-asset:count:url":L=>{let{getState:P,dispatch:b}=L;const u=P(),f=(0,ca.XN)(u),g=(0,ca.sF)(u),S=[];for(const _ of g){const O=f.get(_.cid);if(O){let V=0;for(const Y of O)V=V+Y.size;const H={..._,assets_count:O.length,assets_size:V};S.push(H)}else S.push(_)}b({type:"image-panel:set:user-assets-groups",payload:{nextGroups:S}})},"entry:batch:transfer:user:asset:to:org":async(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{userAsset:f,callback:g}}=P;const S=b(),_=(0,r.wA)(S);let O=0;MB.safeDelayLoading(I18N.LibraryContainer.in_progress);const V=[],{org_asset:H,asset:Y}=await(0,W.Wr)(f.image,_.cid);if(H||V.push(H),MB.safeDelayLoading(!1),!V.length){MB.notice({text:"\u4F01\u4E1A\u7D20\u6750\u5E93\u5DF2\u5B58\u5728\u56FE\u7247",type:"error"});return}O+=f.size,MB.safeDelayLoading(I18N.LibraryContainer.in_progress);const{orgAssetGroupList:re}=await(0,W.l9)(_.cid);if(!re)return;let pe=0;for(const Re of re){const{assets_size:We}=Re;pe=pe+We}MB.safeDelayLoading(!1);const Ce=_?_.limitation.storage:0,Pe=Number(Ce),Ie=Pe>=1e3?Pe/1e3+"GB":Pe+"MB";if(pe+O>Ce*1024*1024)return(0,$a.Nd)("storage",{storage:" "+Ie,action:"addseats",role:"org",paymentRenewModalParams:{mode:"org_adding_seats",payEntrance:"\u7D20\u6750\u5E93\u5BB9\u91CF\u8D85\u8FC7\u9650\u5236"},submit:I18N.LibraryContainer.renew_prompt.add_seats,orgCid:_.cid}),!0;{const Re=async vt=>{let{selectedGroupCid:Ut}=vt;const pn=await(0,W.ob)({assetCid:Y.cid,name:f.name,groupCid:Ut});u({type:"entry:refresh:org-asset:from:cid",payload:{groupCid:Ut}}),u({type:"entry:search-panel:transfer:user:asset:to:org",payload:{cid:pn,groupCid:Ut}}),MB.notice({text:I18N.LibraryContainer.image_move_to_org_success}),g&&g()},We=I18N.LibraryContainer.add_assets_from_personal_to_team,ct=I18N.LibraryContainer.add_to_team_assets;u({type:"modal:update:state",payload:{designTransferModal:{isOpen:!0,title:We,confirmText:ct,selectCidSet:new Set(f.cid),itemGroups:re,isImage:!0,onModalTransfer:Re}}})}}},pt={"entry:refresh:org-asset:from:cid":async(L,P)=>{let{dispatch:b}=L,{payload:{groupCid:u}}=P;const{orgAssets:f}=await(0,W.l9)(),g=f.filter(S=>S.group_cid===u);g&&b({type:"image-panel:set:org-assets-map",payload:{groupCid:u,orgAssets:g}})},"entry:batch:remove:org-asset":async(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{orgAsset:f,callback:g}}=P;const S=b(),_=(0,ca.qY)(S),O=[];if(O.push(f),O.length===0){MB.notice({text:I18N.LibraryContainer.no_image_can_del});return}const[V,H]=[I18N.LibraryContainer.dele_image,I18N.LibraryContainer.materialLibrary.image_delete_tips.replace(/%s/,O[0].name)];_!=null&&_.get(f.group_cid)||await u({type:"entry:refresh:org-asset:from:cid",payload:{groupCid:f.group_cid}});const Y=()=>{const re=new Set(O.map(pe=>{let{cid:Ce}=pe;return Ce}));re.size===1?(u({type:"entry:refresh:org-asset:delete",payload:{orgAsset:f}}),u({type:"entry:search-panel:remove:asset:from:asset",payload:{asset:f,isOrg:!0}}),MB.notice({text:I18N.LibraryContainer.image_del_success}),g&&g()):re.size===0&&MB.notice({text:I18N.LibraryContainer.no_image_can_del}),dn.Y4.trackLibraryMaterialOperation({materialType:"\u56FE\u7247",materialOperation:"\u5220\u9664"})};u({type:"modal:update:confirm:state",payload:{isOpen:!0,title:V,desc:H,onConfirm:()=>{Y()}}})},"entry:batch:transfer:org-asset":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{orgAsset:f,callback:g}}=P;const S=b(),_=(0,ca.zX)(S),O=async H=>{let{selectedGroupCid:Y}=H;if(Y===f.group_cid){MB.notice({text:"\u56FE\u7247\u5DF2\u5B58\u5728\u5F53\u524D\u6587\u4EF6\u5939\u4E2D",type:"error"});return}const re=[f.group_cid];f.group_cid=Y,re.push(Y),await u({type:"entry:refresh:org-asset:from:group_cid",payload:{refreshGroupCidList:re,orgAsset:f}}),await(0,W.hY)({cids:[f.cid],...f}),MB.notice({text:I18N.LibraryContainer.asset_move_success}),!(0,ca.i)(S).includes(Y)&&u({type:"image-panel:set:local-org-assets-expand-cids",payload:{oper:"plus",cid:Y}}),await u({type:"entry:refresh:org-asset:from:cid",payload:{groupCid:Y}}),u({type:"entry:auto:scroll-to:active-asset-group",payload:{activeAssetGroup:Y,isOrg:!0}}),g&&g(),dn.Y4.trackLibraryMaterialOperation({materialType:"\u56FE\u7247",materialOperation:"\u79FB\u52A8"})},V=I18N.LibraryContainer.materialLibrary.asset_move;u({type:"modal:update:state",payload:{designTransferModal:{isOpen:!0,title:V,selectCidSet:new Set(f.cid),itemGroups:_,isImage:!0,onModalTransfer:O}}})},"entry:refresh:org-asset:delete":async(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{orgAsset:f}}=P;const g=b(),S=(0,ca.zX)(g),_=(0,ca.qY)(g);for(const O of S)if(f.group_cid===O.cid&&_.get(f.group_cid)){const V=[],H=_.get(f.group_cid);for(const Y of H)Y.cid!==f.cid?V.push(Y):(0,W.vS)(f);u({type:"image-panel:set:org-assets-map",payload:{groupCid:f.group_cid,orgAssets:V}})}u({type:"entry:refresh:org-asset:count:url"})},"entry:refresh:org-asset:from:group_cid":async(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{refreshGroupCidList:f,orgAsset:g}}=P;const S=b(),_=(0,ca.qY)(S),[O,V]=f;if(_.get(O)){const H=[],Y=_.get(O);for(const re of Y)re.cid!==g.cid&&H.push(re);u({type:"image-panel:set:org-assets-map",payload:{groupCid:O,orgAssets:H}})}if(_.get(V)){const Y=[..._.get(V),g];u({type:"image-panel:set:org-assets-map",payload:{groupCid:V,orgAssets:Y}})}u({type:"entry:refresh:org-asset:count:url"})},"entry:refresh:org-asset:update":async(L,P)=>{var b,u;let{getState:f,dispatch:g}=L,{payload:{orgAssetUpdateList:S}}=P;const _=f(),O=(0,ca.qY)(_),V=[],H=S[0].group_cid,Y=S[0].cid,re=O.get(H),pe=(0,ca.uq)(_),Ce=(b=pe[mn.b4])==null?void 0:b.list;if(!(Ce!=null&&Ce.length))return;const Pe=(0,io.dU)({list:Ce,keys:[io.rf.Org],type:fo.I.Asset,mapFunc:function(We){return We===void 0&&(We=[]),We.map(ct=>(ct==null?void 0:ct.cid)===Y?{...S[0]}:ct)}}),Ie={...pe,asset:{...pe[io.rf.Org],list:Pe,total:(u=pe.asset)==null?void 0:u.total}};g({type:"searchPanel:update:state",payload:{searchResultListMap:Ie}});const Re={};for(const We of S)Re[We.cid]=We,(0,W.hY)({cids:[We.cid],...We});if(re){for(const We of re)if(Re[We.cid]){const ct=Re[We.cid];V.push(ct)}else V.push(We);g({type:"image-panel:set:org-assets-map",payload:{groupCid:H,orgAssets:V}})}g({type:"entry:refresh:org-asset:count:url"}),dn.Y4.trackLibraryMaterialOperation({materialType:"\u56FE\u7247",materialOperation:"\u91CD\u547D\u540D"})},"entry:refresh:org-asset:count:url":L=>{let{getState:P,dispatch:b}=L;const u=P(),f=(0,ca.qY)(u),g=(0,ca.zX)(u),S=[];for(const _ of g){const O=f.get(_.cid);if(O){let V=0;for(const Y of O)V=V+Y.size;const H={..._,assets_count:O.length,assets_size:V};S.push(H)}else S.push(_)}b({type:"image-panel:set:org-assets-groups",payload:{nextGroups:S}})},"entry:update:org:asset":async(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{orgAssetList:f,type:g,fromUser:S}}=P;const _=b();if(!((0,y.OW)(_)===Di.lS.Asset))return;const H=(0,ca.qY)(_),Y=(0,r.HW)(_),re={};for(const pe of f)re[pe.cid]=pe;for(const pe of f)if(H.get(pe.group_cid)){const Ce=H.get(pe.group_cid),Pe={},Ie=[];for(const Re of Ce)Pe[Re.cid]=Re;if(g==="del")for(const Re of Ce)re[Re.cid]||Ie.push(Re);else{for(const Re of Ce)re[Re.cid]&&Pe[Re.cid]?(Ie.push(re[Re.cid]),delete re[Re.cid]):Pe[Re.cid]&&Ie.push(Pe[Re.cid]);for(const Re of Object.values(re))Pe[Re.cid]||Y.id!==S.id&&Ie.push(Re)}u({type:"image-panel:set:org-assets-map",payload:{groupCid:pe.group_cid,orgAssets:Ie}})}}};var Ee=s(98033);const Ue=(L,P)=>{let b=0;for(;P!==null;){const u=L.find(f=>f.cid===P);if(u)P=u.parent_cid,b++;else throw new Error("Parent node "+P+" not found.")}return b},ke=(L,P,b)=>P===null?!0:Ue(L,P)+1<=b,Ve=(L,P)=>{const b=[P];function u(f){const g=L.filter(S=>S.parent_cid===f);b.push(...g),g.forEach(S=>u(S.cid))}return u(P.cid),Array.from(new Set(b))},st=(L,P,b)=>{const u=Ve(P,L),f=[];return u.forEach(g=>{f.push(...b.get(g.cid)||[])}),{groupsAndSub:u,assets:f}},ut=(L,P)=>{const b=(0,Ci.H)(L),u=[],f=(g,S,_)=>{for(const V of g){var O;V.level<=S&&V.cid!==_&&(V.level===S&&(V.subFolder=[]),u.push(V)),((O=V.subFolder)==null?void 0:O.length)>0&&f(V.subFolder,S,_)}};return f(b,P.level,P.cid),u};var Rt=s(29152);const bo={...Hi,...os,...pt,...{"entry:load:user:asset:group:list":async L=>{let{dispatch:P}=L;const{userAssetGroupList:b}=await(0,W.OJ)();await P({type:"image-panel:set:user-assets-groups",payload:{nextGroups:b}}),await P({type:"image-panel:update:state",payload:{isRequestUserAssetGroup:!0}})},"entry:create:user-asset-group":async L=>{let{getState:P,dispatch:b}=L;const u=P(),f=(0,ca.sF)(u),g=(0,r.HW)(u),S={cid:(0,Ee.Z)()?(0,Dn.kt)("oag"):(0,Dn.kt)("uag"),name:Ja(f,I18N.LibraryContainer.folder),expanded:!1,position:0,parent_cid:null},{asset_group:_}=await(0,W.A9)(g.solo_org.cid,S),O=_.cid,V=(0,ii.ON)(_,f,W.Qs);b({type:"image-panel:set:user-assets-groups",payload:{nextGroups:V}}),b({type:"entry:auto:scroll-to:active-asset-group",payload:{activeAssetGroup:O,isOrg:!1}}),b({type:"update:popups:state",payload:{editingCid:O}}),dn.Y4.trackLibraryFolderOperation({folderType:"\u56FE\u7247",folderOperation:"\u65B0\u5EFA\u6587\u4EF6\u5939"})},"entry:create:user-asset-group-insertion":async(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{assetGroup:f,insertionType:g}}=P;const S=b(),_=(0,ca.sF)(S),O=(0,r.HW)(S),{cid:V,position:H,parent_cid:Y}=f;let re;_.forEach(Ie=>{Ie.cid!==V?Ie.position>H&&(Ie.position+=1):g==="up"?(re={cid:(0,Ee.Z)()?(0,Dn.kt)("oag"):(0,Dn.kt)("uag"),name:Ja(_,I18N.LibraryContainer.folder),expanded:!1,position:H,parentCid:Y},Ie.position+=1):re={cid:(0,Ee.Z)()?(0,Dn.kt)("oag"):(0,Dn.kt)("uag"),name:Ja(_,I18N.LibraryContainer.folder),expanded:!1,position:H+1,parentCid:Y}});const{asset_group:pe}=await(0,W.A9)(O.solo_org.cid,re),Ce=pe.cid,Pe=(0,ii.b4)(pe,_,W.Qs);u({type:"image-panel:set:user-assets-groups",payload:{nextGroups:Pe}}),u({type:"entry:auto:scroll-to:active-asset-group",payload:{activeAssetGroup:Ce,isOrg:!1}}),u({type:"update:popups:state",payload:{editingCid:Ce}}),dn.Y4.trackLibraryFolderOperation({folderType:"\u56FE\u7247",folderOperation:g==="up"?"\u4E0A\u65B9\u6DFB\u52A0\u6587\u4EF6\u5939":"\u4E0B\u65B9\u6DFB\u52A0\u6587\u4EF6\u5939"})},"entry:create:user-sub-asset-group":async(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{assetGroup:f}}=P;const g=b(),S=(0,ca.sF)(g),_=(0,r.HW)(g),{cid:O,position:V}=f;try{if(!ke(S,O,4)){MB.notice({text:"\u6700\u591A\u652F\u63014\u7EA7",type:"error"});return}}catch(Ce){}let H;S.forEach(Ce=>{Ce.cid!==O?Ce.position>V&&(Ce.position+=1):H={cid:(0,Ee.Z)()?(0,Dn.kt)("oag"):(0,Dn.kt)("uag"),name:Ja(S,I18N.LibraryContainer.folder),expanded:!1,position:V+1,parentCid:O}});const{asset_group:Y}=await(0,W.A9)(_.solo_org.cid,H),re=Y.cid,pe=(0,ii.b4)(Y,S,W.Qs);u({type:"image-panel:set:user-assets-groups",payload:{nextGroups:pe}}),u({type:"entry:auto:scroll-to:active-asset-group",payload:{activeAssetGroup:re,isOrg:!1}}),u({type:"entry:refresh:user-asset:from:cid",payload:{groupCid:f.cid}}),u({type:"image-panel:set:local-user-assets-expand-cids",payload:{oper:"plus",cid:f.cid}}),u({type:"update:popups:state",payload:{editingCid:re}}),dn.Y4.trackLibraryFolderOperation({folderType:"\u56FE\u7247",folderOperation:"\u65B0\u5EFA\u5B50\u6587\u4EF6\u5939"})},"entry:remove:user-asset-group":async(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{assetGroup:f,callback:g}}=P;const S=b(),_=(0,Rt.IE)(S),O=(0,ca.sF)(S);MB.safeDelayLoading(I18N.LibraryContainer.in_progress);const{userAssets:V}=await(0,W.OJ)(),H=Ve(O,f),Y=new Map;H.forEach(Ie=>{Y.set(Ie.cid,[])}),V.forEach(Ie=>{Y.has(Ie.group_cid)&&Y.set(Ie.group_cid,[...Y.get(Ie.group_cid),Ie])}),Y.forEach((Ie,Re)=>{Re.length>0&&u({type:"image-panel:set:org-assets-map",payload:{groupCid:Ie,orgAssets:Re}})});const re=Y.get(f.cid),{assets:pe}=st(f,O,Y),Ce=ut(O,f),Pe=async Ie=>{let{isDeleteAsset:Re,selectedCid:We}=Ie;if(Re)for(const vt of pe)u({type:"entry:refresh:user-asset:delete",payload:{userAsset:vt}});else{const vt=[],Ut=[];re.forEach(pn=>{vt.push(pn.cid)}),f.subFolder.forEach(pn=>{const fn={cid:pn.cid,parent_cid:We,position:9999};Ut.push(fn)}),Ut.length>0&&await(0,W.Jm)(Ut),vt.length>0&&await(0,W.r3)(vt,{groupCid:We})}const ct=[];for(const vt of O)f.cid!==vt.cid?ct.push(vt):await(0,W.ty)(vt.cid);u({type:"image-panel:set:user-assets-groups",payload:{nextGroups:ct}}),u({type:"entry:search-panel:remove:group",payload:{matchSelectDelSet:new Set([f.cid]),isOrg:!1,category:mn.b4}}),u({type:"entry:load:user:asset:group:list"}),MB.notice({text:I18N.LibraryContainer.floder_del_success}),g&&g(),dn.Y4.trackLibraryFolderOperation({folderType:"\u56FE\u7247",folderOperation:"\u5220\u9664"})};MB.safeDelayLoading(!1),u({type:"modal:update:state",payload:{assetGroupRemoveModal:{isOpen:!0,assetGroup:f,otherAssetGroups:Ce,assetToRemove:pe,onModalDelete:Pe}}})},"entry:refresh:user-asset-group:update":async(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{userAssetGroupUpdateList:f}}=P;const g=b(),S=(0,ca.sF)(g),_={};for(const V of f)_[V.cid]=V;const O=[];for(const V of S)_[V.cid]?(O.push(_[V.cid]),(0,W.V7)(_[V.cid])):O.push(V);u({type:"image-panel:set:user-assets-groups",payload:{nextGroups:O}})},"entry:transfer:to:org:asset-groups":async(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{assetGroup:f,callback:g}}=P;const S=b(),_=(0,r.wA)(S),O=(0,ca.zX)(S);MB.safeDelayLoading(I18N.LibraryContainer.in_progress);const{orgAssetGroupList:V}=await(0,W.l9)(_.cid);if(!V)return;let H=0;for(const Re of V){const{assets_size:We}=Re;H=H+We}const{storage:Y}=(0,Ml.xR)(null,_),re=Number(Y),pe=re>=1e3?re/1e3+"GB":re+"MB";let Ce=0;const{userAssets:Pe}=await(0,W.OJ)();if(Pe.filter(Re=>Re.group_cid===f.cid).forEach(Re=>Ce+=Re.size),MB.safeDelayLoading(!1),H+Ce>Y*1024*1024)return(0,$a.Nd)("storage",{storage:" "+pe,action:"addseats",role:"org",paymentRenewModalParams:{mode:"org_adding_seats",payEntrance:"\u7D20\u6750\u5E93\u5BB9\u91CF\u8D85\u8FC7\u9650\u5236"},submit:I18N.LibraryContainer.renew_prompt.add_seats,orgCid:_.cid}),!0;{const Re=async()=>{const We=(0,Dn.kt)("oag"),{name:ct,cid:vt}=f,Ut=await(0,W.kZ)({org_cid:_.cid,name:ct,group_cid:vt});u({type:"entry:load:org:asset:group:list"}),u({type:"entry:search-panel:refresh:group:add",payload:{category:mn.b4,groupAddList:[Ut]}}),MB.notice({text:I18N.LibraryContainer.image_move_to_org_success}),g&&g()};u({type:"modal:update:confirm:state",payload:{isOpen:!0,title:I18N.LibraryContainer.add_to_org_material,desc:I18N.LibraryContainer.materialLibrary.add_to_org_tips.replace(/%s/,(0,go.rB)().process(f.name)),onConfirm:()=>{Re()}}})}},"entry:refresh:user-asset-group:delete":async(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{matchSelectDelSet:f}}=P;const g=b(),S=(0,ca.sF)(g),_=[];for(const O of S)f.has(O.cid)?(0,W.ty)(O.cid):_.push(O);u({type:"image-panel:set:user-assets-groups",payload:{nextGroups:_}})}},...{"entry:load:org:asset:group:list":async L=>{let{dispatch:P,getState:b}=L;const u=b(),f=(0,r.wA)(u),{orgAssetGroupList:g}=await(0,W.l9)(f.cid);g&&(await P({type:"image-panel:set:org-assets-groups",payload:{nextGroups:g}}),await P({type:"image-panel:update:state",payload:{isRequestOrgAssetGroup:!0}}))},"entry:refresh:org-asset-group:update":async(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{orgAssetGroupUpdateList:f}}=P;const g=b(),S=(0,ca.zX)(g),_={};for(const V of f)_[V.cid]=V;const O=[];for(const V of S)_[V.cid]?(O.push(_[V.cid]),(0,W.A1)(_[V.cid])):O.push(V);u({type:"image-panel:set:org-assets-groups",payload:{nextGroups:O}})},"entry:create:org-asset-group":async L=>{let{getState:P,dispatch:b}=L;const u=P(),f=(0,r.wA)(u),g=(0,ca.zX)(u),S={cid:(0,Dn.kt)("oag"),org_cid:f.cid,name:Ja(g,I18N.LibraryContainer.folder),expanded:!1,position:0},{asset_group:_}=await(0,W.A9)(f.cid,S),O=_.cid,V=(0,ii.ON)(_,g,(0,W.XG)(f.cid));b({type:"image-panel:set:org-assets-groups",payload:{nextGroups:V}}),b({type:"entry:auto:scroll-to:active-asset-group",payload:{activeAssetGroup:O,isOrg:!0}}),b({type:"update:popups:state",payload:{editingCid:O}}),dn.Y4.trackLibraryFolderOperation({folderType:"\u56FE\u7247",folderOperation:"\u65B0\u5EFA\u6587\u4EF6\u5939"})},"entry:create:org-asset-group-insertion":async(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{assetGroup:f,insertionType:g}}=P;const S=b(),_=(0,r.wA)(S),O=(0,ca.zX)(S),{cid:V,position:H,parent_cid:Y}=f;let re;O.forEach(Ie=>{Ie.cid!==V?Ie.position>H&&(Ie.position+=1):g==="up"?(re={cid:(0,Dn.kt)("oag"),name:Ja(O,I18N.LibraryContainer.folder),expanded:!1,position:H,parentCid:Y},Ie.position+=1):re={cid:(0,Dn.kt)("oag"),name:Ja(O,I18N.LibraryContainer.folder),expanded:!1,position:H+1,parentCid:Y}});const{asset_group:pe}=await(0,W.A9)(_.cid,re),Ce=pe.cid,Pe=(0,ii.b4)(pe,O,(0,W.XG)(_.cid));u({type:"image-panel:set:org-assets-groups",payload:{nextGroups:Pe}}),u({type:"entry:auto:scroll-to:active-asset-group",payload:{activeAssetGroup:Ce,isOrg:!0}}),u({type:"update:popups:state",payload:{editingCid:Ce}}),dn.Y4.trackLibraryFolderOperation({folderType:"\u56FE\u7247",folderOperation:g==="up"?"\u4E0A\u65B9\u6DFB\u52A0\u6587\u4EF6\u5939":"\u4E0B\u65B9\u6DFB\u52A0\u6587\u4EF6\u5939"})},"entry:create:org-sub-asset-group":async(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{assetGroup:f}}=P;const g=b(),S=(0,ca.zX)(g),{cid:_,position:O}=f,V=(0,r.wA)(g);try{if(!ke(S,_,4)){MB.notice({text:"\u6700\u591A\u652F\u63014\u7EA7",type:"error"});return}}catch(Ce){}let H;S.forEach(Ce=>{Ce.cid!==_?Ce.position>O&&(Ce.position+=1):H={cid:(0,Dn.kt)("oag"),name:Ja(S,I18N.LibraryContainer.folder),expanded:!1,position:O+1,parentCid:_}});const{asset_group:Y}=await(0,W.A9)(V.cid,H),re=Y.cid,pe=(0,ii.b4)(Y,S,(0,W.XG)(V.cid));u({type:"image-panel:set:org-assets-groups",payload:{nextGroups:pe}}),u({type:"entry:auto:scroll-to:active-asset-group",payload:{activeAssetGroup:re,isOrg:!0}}),u({type:"entry:refresh:org-asset:from:cid",payload:{groupCid:f.cid}}),u({type:"image-panel:set:local-org-assets-expand-cids",payload:{oper:"plus",cid:f.cid}}),u({type:"update:popups:state",payload:{editingCid:re}}),dn.Y4.trackLibraryFolderOperation({folderType:"\u56FE\u7247",folderOperation:"\u65B0\u5EFA\u5B50\u6587\u4EF6\u5939"})},"entry:refresh:org-asset-group:delete":async(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{matchSelectDelSet:f}}=P;const g=b(),S=(0,ca.zX)(g),_=[];for(const O of S)f.has(O.cid)?(0,W.yV)(O.cid):_.push(O);MB.notice({text:I18N.LibraryContainer.floder_del_success}),u({type:"image-panel:set:org-assets-groups",payload:{nextGroups:_}})},"entry:remove:org-asset-group":async(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{assetGroup:f,callback:g}}=P;const S=b(),_=(0,Rt.IE)(S),O=(0,ca.zX)(S);MB.safeDelayLoading(I18N.LibraryContainer.in_progress);const{orgAssets:V}=await(0,W.l9)(_),H=Ve(O,f),Y=new Map;H.forEach(Ie=>{Y.set(Ie.cid,[])}),V.forEach(Ie=>{Y.has(Ie.group_cid)&&Y.set(Ie.group_cid,[...Y.get(Ie.group_cid),Ie])}),Y.forEach((Ie,Re)=>{Re.length>0&&u({type:"image-panel:set:org-assets-map",payload:{groupCid:Ie,orgAssets:Re}})});const re=Y.get(f.cid),{assets:pe}=st(f,O,Y),Ce=ut(O,f),Pe=async Ie=>{let{isDeleteAsset:Re,selectedCid:We}=Ie;if(Re)for(const vt of pe)u({type:"entry:refresh:org-asset:delete",payload:{orgAsset:vt}});else{const vt=[],Ut=[];re.forEach(pn=>{vt.push(pn.cid)}),f.subFolder.forEach(pn=>{const fn={cid:pn.cid,parent_cid:We,position:9999};Ut.push(fn)}),Ut.length>0&&await(0,W.Jm)(Ut),vt.length>0&&await(0,W.r3)(vt,{groupCid:We})}const ct=[];for(const vt of O)f.cid!==vt.cid?ct.push(vt):await(0,W.yV)(vt.cid);u({type:"image-panel:set:org-assets-groups",payload:{nextGroups:ct}}),u({type:"entry:search-panel:remove:group",payload:{matchSelectDelSet:new Set([f.cid]),isOrg:!0,category:mn.b4}}),u({type:"entry:load:org:asset:group:list"}),MB.notice({text:I18N.LibraryContainer.floder_del_success}),g&&g(),dn.Y4.trackLibraryFolderOperation({folderType:"\u56FE\u7247",folderOperation:"\u5220\u9664"})};MB.safeDelayLoading(!1),u({type:"modal:update:state",payload:{assetGroupRemoveModal:{isOpen:!0,assetGroup:f,otherAssetGroups:Ce,assetToRemove:pe,onModalDelete:Pe}}})},"entry:update:org:asset-group":async(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{orgAssetGroupList:f,type:g}}=P;const S=b(),_=(0,ca.zX)(S),O=(0,y.OW)(S),V=[],H={},Y={};if(O===Di.lS.Asset){for(const pe of f)H[pe.cid]=pe;for(const pe of _)Y[pe.cid]=pe;if(g==="del")for(const pe of _)H[pe.cid]||V.push(pe);else{for(const pe of _)H[pe.cid]&&Y[pe.cid]?(V.push(H[pe.cid]),delete H[pe.cid]):Y[pe.cid]&&V.push(Y[pe.cid]);for(const pe of Object.values(H))Y[pe.cid]||V.push(pe)}u({type:"image-panel:set:org-assets-groups",payload:{nextGroups:V}})}}},...{"entry:create:widget:by:asset":(L,P)=>{let{dispatch:b}=L,{payload:{asset:u}}=P;if(!(0,Oi._c)({type:N.x.WImage}))return;const f=(0,$.BL)(u),g=[{items:[f],width:f.w,height:f.h}];b({type:"entry:batch:create:items",payload:{data:g}})},"entry:replace:widget:by:asset":(L,P)=>{let{dispatch:b}=L,{payload:{asset:u,assetReplaceMode:f}}=P;f===N.x.WImage?b({type:"entry:items:set:asset",payload:{asset:u}}):f===N.x.WCarousel&&b({type:"entry:replace:carousel:image",payload:{image:u==null?void 0:u.image,resetSelectIndex:!1}})},"entry:insert:sticky:by:asset":(L,P)=>{var b;let{getState:u,dispatch:f}=L,{payload:{asset:g}}=P;const S=u(),_=(0,r.lh)(S),O=sdkStore.getHotItem(_);O&&[N.x.WSticky,N.x.WTear].includes(O==null||(b=O.hotAttr)==null?void 0:b.type)&&On.A.emit("draft:side-toolbar:image",{asset:g})}}};function Po(L,P,b){if(L.cid===P.sup){L.subFolder.forEach(f=>{f.data.zIndex=f.data.zIndex>=b?(f.data.zIndex||0)+1:f.data.zIndex});return}L&&L.folder&&L.folder.forEach(u=>Po(u,P,b))}function ha(L,P,b){b===void 0&&(b=0);for(const u of L){if(u.cid===P)return b;if(u.subFolder&&u.subFolder.length>0){const f=ha(u.subFolder,P,b+1);if(f!==-1)return f}}return-1}const xa=(L,P,b)=>{const u=ha(L,P);if(u===-1)throw new Error("cid not found");return u<b-1},da=(L,P)=>{const b=u=>{for(const S of u){var f,g;if((f=S.children)!=null&&f.length&&(S.children.some(_=>_.key===P)||b(S.children))||(g=S.subFolder)!=null&&g.length&&b(S.subFolder))return!0}return!1};return b(L)},Ko=(L,P)=>{const b=u=>{for(const g of u){var f;if(g.cid===P)return g;if((f=g.subFolder)!=null&&f.length){const S=b(g.subFolder);if(S)return S}}return null};return b(L)},Fa=function(L,P,b){b===void 0&&(b=null);const u=f=>{for(const _ of f){var g,S;if((g=_.children)!=null&&g.length){const O=_.children.find(H=>H.key===P);if(O)return b&&b(O),L;const V=u(_.children);if(V)return V}if((S=_.subFolder)!=null&&S.length){const O=u(_.subFolder);if(O)return O}}return null};return u(L)},Pa=(L,P)=>{const b=[],u=[],f=(S,_)=>{for(const V of S){var O;if(V.cid===_)return g(V),!0;if(((O=V.subFolder)==null?void 0:O.length)>0&&f(V.subFolder,_))return!0}return!1},g=S=>{var _;if(b.push(...S.children),u.push(S),((_=S.subFolder)==null?void 0:_.length)>0)for(const O of S.subFolder)g(O)};return f(P,L.cid),{combos:b,groupsAndSub:u}},sr=(L,P)=>{const b=[],u=new Set,f=so()(P),g=(S,_,O)=>{for(const H of S){var V;H.level<=_&&(H.level===_&&(H.subFolder=[]),!u.has(H.cid)&&b.push(H),H.subFolder=H.subFolder.filter(Y=>{if(u.add(Y.cid),Y.cid!==O)return Y})),((V=H.subFolder)==null?void 0:V.length)>0&&g(H.subFolder,_,O)}};return g(f,L.level,L.cid),b},vr=(L,P)=>{const b=function(f,g,S){S===void 0&&(S=[]);for(const _ of f){const O=[...S,_.name];if(_.cid===g)return O;if(_.subFolder){const V=b(_.subFolder,g,O);if(V)return V}}return null},u=b(L,P)||[];return u.length===0?"\u9876\u5C42\u6587\u4EF6\u5939":u.join("/")};var Or=s(88987);const Tr=Symbol("CREATE_FOLDER"),Kr=Symbol("DELETE_FOLDER"),Ha=Symbol("RENAME_FOLDER"),Br=Symbol("MOVE_FOLDER"),Gi=Symbol("CREATE_ELEMENT"),xi=Symbol("MOVE_ELEMENT"),Fr=Symbol("DELETE_ELEMENT"),Fi=Symbol("CHANGE_ACCESS"),Ii={[Tr]:4e3,[Kr]:4001,[Ha]:4002,[Br]:4003,[Gi]:4004,[xi]:4005,[Fr]:4006,[Fi]:4010},Ks=(L,P)=>{const{userName:b,folderCid:u,folderName:f,folderNewName:g,folderType:S,folderContainsCount:_,category:O,elementName:V,memberName:H,memberId:Y,policy:re,elementPath:pe,folderPath:Ce}=P;switch(L){case Tr:return{user_name:b,design_folder_cid:u,design_folder_name:f,design_folder_type:S};case Kr:return{user_name:b,design_folder_cid:u,design_folder_name:f,design_folder_type:S,design_folder_contains:_};case Ha:return{user_name:b,design_folder_cid:u,design_folder_name:f,design_folder_type:S,design_folder_new_name:g};case Gi:return{user_name:b,design_category:O,design_element_name:V};case xi:return{user_name:b,design_category:O,design_element_name:V,element_path:pe};case Br:return{user_name:b,design_folder_cid:u,design_folder_name:f,design_folder_type:S,folder_path:Ce};case Fr:return{user_name:b,design_category:O,design_element_name:V};case Fi:return{user_name:b,member_name:H,member_id:Y,policy:re};default:return{}}},Ul={"entry:track:org:library:operation:log":async(L,P)=>{let{getState:b,dispatch:u}=L,{payload:f}=P;const{operationType:g,optional:S}=f,_=b(),{cid:O}=(0,r.wA)(_),V=(0,r.HW)(_),H=Ks(g,{...S,userName:V.name});await(0,Or.VX)({actionType:4,action:Ii[g],orgCid:O,extra:H})}};var ts=s(45611);const rn={"entry:create:combo:to:user:org:group":async(L,P)=>{let{getState:b,dispatch:u}=L,{payload:f={group_cid:"",targetType:"user"}}=P;const{group_cid:g,targetType:S,callback:_}=f,O=b(),V=(0,De.nE)(O).filter(yo=>!(0,Oe.OO)(yo.key)),H=S==="user",Y=(0,r.HW)(O),re=Y==null?void 0:Y.id;if(H&&!window.userSdkStore){const yo=(0,r.F2)(O);await(0,Fo.Z)({fcg:yo,userId:re})}if(!H&&!window.orgSdkStore){const yo=(0,r._x)(O);await(0,Fo.Z)({fcg:yo,userId:re,isOrg:!0})}const pe=b(),Ce=H?(0,ca.wS)(pe):(0,ca.lb)(pe),Pe=(0,jt.ju)(V),Ie=H?userSdkStore:orgSdkStore,Re=V.map(yo=>(0,ts.l8)(yo)).flat();Re.length&&!Pe&&(Re.some(yo=>yo.hotAttr.type===N.x.WBasket)?MB.notice({text:I18N.__entry__.dynamic_create_tips}):MB.notice({text:I18N.__entry__.master_create_tips})),MB.safeDelayLoading(I18N.__entry__.in_progress);const We=(0,De.p$)(O),ct=We.length?(0,Za.KD)(We[0]):I18N.__entry__.untitled,vt=Ja(Ce,I18N.__entry__.folder),Ut=Ce.sort((yo,Do)=>yo.data.zIndex-Do.data.zIndex),pn=Ut.length===0,fn=Ut.length&&Ut[0].cid,uo=g||fn,Mn=H?I18N.__entry__.add_to_my_widget:I18N.__entry__.add_to_org_widget;Ie.combineMergeMark("create-combo");const Gt=async yo=>{let{isCreating:Do,createName:Wo,targetGroupCid:Ro,groupName:ra,onModalClose:ka}=yo,pa;if(Do){const Yr=(0,yi.Hz)({name:ra,sup:"B@main",asFolder:!0,store:Ie,zIndex:0});pa=Yr.key;const br={cid:Yr.key,name:Yr.hotAttr.name,data:Yr.hotAttr,children:[]};H?await u({type:"entry:refresh:user-combo-group:add",payload:{userComboGroupAddList:[br]}}):await u({type:"entry:refresh:org-combo-group:add",payload:{orgComboGroupAddList:[br]}})}else pa=Ro;const Ma=Ko(Ce,Ro),Ya=(Ma==null?void 0:Ma.children)||[],di=(0,yi.Hz)({name:Wo,sup:pa,store:Ie}),ja=sdkStore.saveSubtree(Re.map(Yr=>Yr.key)),{contentFlatTree:ri}=sdkStore.parseSubtree(ja),[ks,ti]=sdkStore.getHotKeyListAABB(V.map(Yr=>Yr.key)),vi={x:-ks,y:-ti};(0,me.BB)({data:ja,worldPos:{x:0,y:0},keyRndSup:di.key,currentPageKey:di.key,store:Ie,option:{isRename:!0,isRenameOnCreate:!1,isOptionDup:!1,isResetStickyPoint:!1},offset:vi});const Hr=[di].concat(Ya).map((Yr,br)=>({...Yr,hotAttr:{...Yr.hotAttr,zIndex:br+1}}));Ie.updateHotItemBatch(Hr),ri.get("B@ref-muban").sub.forEach(Yr=>{Array.from(Ie._calcIntActConnMapCached().refPageToBasket[Yr]||[]).forEach(br=>{u({type:"entry:basket:transform",payload:{itemsKeyList:[br],store:Ie,hasUpdateWidgetTreeData:!1,type:"createCombo"}})})}),Ie.combineMerge("create-combo"),ka(),H?(u({type:"entry:load:user:combo:group:list"}),!(0,ca.MV)(O).includes(pa)&&u({type:"widget-panel:set:local-user-combo-expand-cids",payload:{oper:"plus",cid:pa}}),MB.notice({text:I18N.__entry__.widget_move_to_solo_success}),userSdk.saveAsync()):(u({type:"entry:load:org:combo:group:list"}),!(0,ca.bg)(O).includes(pa)&&u({type:"widget-panel:set:local-org-combo-expand-cids",payload:{oper:"plus",cid:pa}}),MB.notice({text:I18N.__entry__.widget_move_to_org_success}),u({type:"entry:track:org:library:operation:log",payload:{operationType:Gi,optional:{category:"combo",elementName:Wo}}}),orgSdk.saveAsync()),u({type:"entry:auto:scroll-to:active-combo-group",payload:{activeComboGroup:pa,isOrg:!H}}),_&&_()};MB.safeDelayLoading(!1),u({type:"modal:update:state",payload:{designCreateWithGroupModal:{isOpen:!0,isCreating:pn,modalTitle:Mn,createName:ct,targetGroupCid:uo,groupName:vt,optionGroupItemList:Ut,onModalConfirm:Gt}}})},"entry:check:combo:auto:to:user:org:group":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:f}=P;const{isOrg:g}=f;u({type:"entry:create:combo:to:user:org:group",payload:{targetType:g?"org":"user"}})},"entry:batch:transfer:user:combo:to:org":async(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{combo:f,callback:g}}=P;const S=b(),_=(0,r.wA)(S),O=(0,r.HW)(S),V=(0,r._x)(S);!window.orgSdkStore&&_&&V&&O&&await(0,Fo.Z)({fcg:V,userId:O.id,isOrg:!0});const H=async Re=>{let{selectedGroupCid:We}=Re;const ct=re.find(Gt=>Gt.cid===We),vt=userSdkStore.getHotItem(f.key),Ut=(0,yi.Hz)({name:vt.hotAttr.name,sup:We,store:orgSdkStore}),pn=userSdkStore.saveSubtree(vt.sub),{x:fn,y:uo}=(0,j.lY)(vt,userSdkStore);(0,me.BB)({data:pn,worldPos:{x:fn,y:uo},keyRndSup:Ut.key,currentPageKey:Ut.key,store:orgSdkStore,option:{isRename:!0,isRenameOnCreate:!1,isOptionDup:!1,isResetStickyPoint:!1}});const Mn=[Ut].concat((ct==null?void 0:ct.children)||[]).map((Gt,yo)=>({...Gt,sup:We,hotAttr:{...Gt.hotAttr,zIndex:yo+1}}));orgSdkStore.updateHotItemBatch(Mn),g&&g(),MB.notice({text:I18N.__entry__.widget_move_to_org_success}),u({type:"entry:load:org:combo:group:list"})},Y=b(S),re=(0,ca.lb)(Y),pe=new Set([f.key]),Ce=I18N.LibraryContainer.add_assets_from_personal_to_team,Pe=I18N.LibraryContainer.add_to_team_assets;u({type:"modal:update:state",payload:{designTransferModal:{isOpen:!0,title:Ce,confirmText:Pe,selectCidSet:pe,itemGroups:re,onModalTransfer:H}}}),await orgSdk.saveAsync()}},Ft={"entry:batch:remove:user:combo":async(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{group:f,combo:g,callback:S}}=P;const _=b(),O=(0,ca.wS)(_);da(O,g.key)&&u({type:"entry:auto:remove:combo",payload:{group:f,combosToRemove:[g],callback:S}})},"entry:batch:transfer:user:combos":async(L,P)=>{let{getState:b,dispatch:u}=L,{payload:f}=P;const{excludedCombo:g,selectedGroupCid:S}=f,_=b(),V=(0,ca.wS)(_).find(re=>re.cid===S),H=[g].concat((V==null?void 0:V.children)||[]).map((re,pe)=>({...re,sup:S,hotAttr:{...re.hotAttr,zIndex:pe+1}}));userSdkStore.updateHotItemBatch(H),u({type:"entry:load:user:combo:group:list"});const Y=[g].map(re=>({...re,group:V}));u({type:"entry:search-panel:transfer:combo",payload:{transferCombos:Y}}),await userSdk.saveAsync()},"entry:update:user-combo:name":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{groupCid:f,itemCid:g,name:S}}=P;const _=b(),O=(0,ca.wS)(_),V=Fa(O,g,H=>{userSdkStore.updateHotAttrMerge(H.key,{name:S}),H.hotAttr.name=S});u({type:"widget-panel:set:user-combo-groups",payload:{nextComboGroups:V}}),userSdk.saveAsync()}},Sn={"entry:batch:remove:org:combo":async(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{group:f,combo:g,callback:S}}=P;const _=b(),O=(0,ca.lb)(_),V=da(O,g.key),H=[g];V&&u({type:"entry:auto:remove:combo",payload:{group:f,combosToRemove:H,isOrg:!0,callback:()=>{u({type:"entry:track:org:library:operation:log",payload:{operationType:Fr,optional:{elementName:H.map(re=>{let{hotAttr:pe}=re;return pe.name}).join(","),category:"combo"}}}),S&&S()}}})},"entry:batch:transfer:org:combos":async(L,P)=>{let{getState:b,dispatch:u}=L,{payload:f}=P;const{excludedCombo:g,selectedGroupCid:S}=f,_=b(),O=(0,ca.lb)(_),V=O.find(pe=>pe.cid===S),H=[g].concat((V==null?void 0:V.children)||[]).map((pe,Ce)=>({...pe,sup:S,hotAttr:{...pe.hotAttr,zIndex:Ce+1}}));orgSdkStore.updateHotItemBatch(H),u({type:"entry:load:org:combo:group:list"});const Y=[g].map(pe=>({...pe,group:V}));u({type:"entry:search-panel:transfer:combo",payload:{transferCombos:Y,isOrg:!0}});const re=vr(O,S);u({type:"entry:track:org:library:operation:log",payload:{operationType:xi,optional:{category:"combo",elementName:Y.map(pe=>{let{hotAttr:Ce}=pe;return Ce.name}).join(","),elementPath:re}}}),orgSdk.saveAsync()},"entry:update:org-combo:name":async(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{groupCid:f,itemCid:g,name:S}}=P;const _=b(),O=(0,ca.lb)(_),V=Fa(O,g,H=>{orgSdkStore.updateHotAttrMerge(H.key,{name:S}),H.hotAttr.name=S});u({type:"widget-panel:set:org-combo-groups",payload:{nextComboGroups:V}}),orgSdk.saveAsync(),dn.Y4.trackLibraryMaterialOperation({materialType:"\u7EC4\u4EF6",materialOperation:"\u91CD\u547D\u540D"})}},no=L=>{const P=L.sdkStore,{screenDataMap:b}=(0,Ts.tb)("B@main",P),u=(V,H)=>{const Y=[],re=P.getSubHotItemList(V.key).filter(pe=>pe.hotAttr.bunch===N.x.RbPage&&!(0,Lr.Mo)(pe)).map(pe=>({...pe,flpakKey:L.fssDat.flpakKey,level:H})).sort((pe,Ce)=>pe.hotAttr.zIndex-Ce.hotAttr.zIndex);return Y.push(...re),re.forEach(pe=>Y.push(...u(pe,H+1))),Y},f=(V,H)=>V.map(Y=>{const re=b[Y],pe=H+1;if((0,Lr.Mo)(re))return{cid:re.key,name:re.hotAttr.name,data:re.hotAttr,level:pe,subFolder:f(re.sub,pe),children:u(re,pe),sup:re.sup}}).filter(Boolean),g=[];Array.from(Object.values(b)).filter(V=>(0,Lr.Mo)(V)&&V.sup==="B@main").sort((V,H)=>V.hotAttr.zIndex-H.hotAttr.zIndex).forEach(V=>{g.push({cid:V.key,name:V.hotAttr.name,data:V.hotAttr,level:0,subFolder:f(V.sub,0),children:u(V,0),sup:V.sup})});const S=V=>V.sort((H,Y)=>H.data.zIndex-Y.data.zIndex),_=V=>S(V).map((Y,re)=>{const pe=re;return Y.data.zIndex!==pe&&(Y={...Y,data:{...Y.data,zIndex:pe+1}}),Y.subFolder&&Y.subFolder.length>0&&(Y.subFolder=_(Y.subFolder)),Y});return _(g)},wa={"entry:load:user:combo:group:list":async L=>{let{dispatch:P}=L;const b=no(userSdk);await P({type:"widget-panel:set:user-combo-groups",payload:{nextComboGroups:b}})},"entry:upgrade:user:combo:group:list":async(L,P)=>{let{dispatch:b}=L,{payload:{upgradeUserComboGroupList:u}}=P;b({type:"widget-panel:update:state",payload:{upgradeUserComboGroupList:u,isRequestV7UserComboGroup:!0}})},"entry:upgrade:org:combo:group:list":async(L,P)=>{let{dispatch:b}=L,{payload:{upgradeOrgComboGroupList:u}}=P;b({type:"widget-panel:update:state",payload:{upgradeOrgComboGroupList:u,isRequestV7OrgComboGroup:!0}})},"entry:create:user-combo-group":async L=>{let{getState:P,dispatch:b}=L;const u=P(),f=(0,ca.wS)(u),g=(0,yi.Hz)({name:Ja(f,I18N.__entry__.folder),asFolder:!0,sup:"B@main",store:userSdkStore,zIndex:0}),S={cid:g.key,name:g.hotAttr.name,data:g.hotAttr,children:[]};await b({type:"entry:refresh:user-combo-group:add",payload:{userComboGroupAddList:[S]}}),b({type:"update:popups:state",payload:{editingCid:S.cid}}),b({type:"entry:auto:scroll-to:active-combo-group",payload:{activeComboGroup:S.cid,isOrg:!1}}),userSdk.saveAsync(),dn.Y4.trackLibraryFolderOperation({folderType:"\u7EC4\u4EF6",folderOperation:"\u65B0\u5EFA\u6587\u4EF6\u5939"})},"entry:create:user-combo-group-insertion":async(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{comboGroup:f,insertionType:g}}=P;const S=b(),_=(0,ca.wS)(S);g==="up"?Po(_,f,f.data.zIndex):Po(_,f,f.data.zIndex+1);const O=(0,yi.Hz)({name:Ja(_,I18N.__entry__.folder),asFolder:!0,sup:f.sup,store:userSdkStore,zIndex:g==="up"?f.data.zIndex:f.data.zIndex+1}),V={cid:O.key,name:O.hotAttr.name,data:O.hotAttr,children:[],sup:O.sup};await u({type:"entry:refresh:user-combo-group:add",payload:{userComboGroupAddList:[V]}}),u({type:"update:popups:state",payload:{editingCid:V.cid}}),userSdk.saveAsync(),dn.Y4.trackLibraryFolderOperation({folderType:"\u7EC4\u4EF6",folderOperation:g==="up"?"\u4E0A\u65B9\u6DFB\u52A0\u6587\u4EF6\u5939":"\u4E0B\u65B9\u6DFB\u52A0\u6587\u4EF6\u5939"})},"entry:create:user-sub-combo-group":async(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{comboGroup:f}}=P;const g=b(),S=(0,ca.wS)(g);try{if(!xa(S,f.cid,4)){MB.notice({text:"\u6700\u591A\u652F\u63014\u7EA7",type:"error"});return}}catch(V){console.log(V)}const _=(0,yi.Hz)({name:Ja(S,I18N.__entry__.folder),asFolder:!0,sup:f.cid,store:userSdkStore}),O={cid:_.key,name:_.hotAttr.name,data:_.hotAttr,children:[],sup:_.sup};await u({type:"entry:refresh:user-combo-group:add",payload:{userComboGroupAddList:[O]}}),u({type:"widget-panel:set:local-user-combo-expand-cids",payload:{oper:"plus",cid:f.cid}}),u({type:"update:popups:state",payload:{editingCid:O.cid}}),userSdk.saveAsync(),dn.Y4.trackLibraryFolderOperation({folderType:"\u7EC4\u4EF6",folderOperation:"\u65B0\u5EFA\u5B50\u6587\u4EF6\u5939"})},"entry:remove:user-combo-group":async(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{comboGroup:f,callback:g}}=P;const S=b(),_=(0,ca.wS)(S);MB.safeDelayLoading(I18N.__entry__.in_progress);const{combos:O}=Pa(f,_),V=sr(f,_),H=async Y=>{let{isDeleteCombo:re,selectedCid:pe}=Y;if(!re&&Ko(_,pe)){const Ie=[...f.children].map((Re,We)=>({key:Re.key,sup:pe,hotAttr:{...Re.hotAttr,zIndex:We+1},sub:Re.sub})).concat([...f.subFolder.map((Re,We)=>({key:Re.cid,sup:pe,hotAttr:{...Re.data,zIndex:We+1},sub:Re.sub}))]);userSdkStore.updateHotItemBatch(Ie),u({type:"entry:load:user:combo:group:list"})}const Ce=new Set([f.cid]);u({type:"entry:refresh:user-combo-group:delete",payload:{matchSelectDelSet:Ce}}),g&&g(),userSdk.saveAsync(),MB.notice({text:I18N.__entry__.floder_del_success}),dn.Y4.trackLibraryFolderOperation({folderType:"\u7EC4\u4EF6",folderOperation:"\u5220\u9664"})};MB.safeDelayLoading(!1),u({type:"modal:update:state",payload:{comboGroupRemoveModal:{isOpen:!0,comboGroup:f,combosToRemove:O,comboGroupsCanMoveTo:V,onModalDelete:H}}})},"entry:transfer:to:org:combo-groups":async(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{comboGroup:f,callback:g}}=P;const S=b(),_=(0,ca.lb)(S),O=(0,r.wA)(S),V=(0,r.HW)(S),H=(0,r._x)(S);!window.orgSdkStore&&O&&H&&V&&await(0,Fo.Z)({fcg:H,userId:V.id,isOrg:!0});const Y=async()=>{const re=(Ie,Re)=>{Ie.forEach(We=>{const ct=userSdkStore.getHotItem(We);if(ct!=null&&ct.hotAttr.asFolder){const vt=(0,yi.Hz)({name:ct.hotAttr.name,sup:Re,store:orgSdkStore,asFolder:ct.hotAttr.asFolder});ct.sub&&ct.sub.length&&ct.hotAttr.asFolder&&re(ct.sub,vt.key)}else{const vt=userSdkStore.getHotItem(We),Ut=userSdkStore.saveSubtree(vt.sub),pn=(0,yi.Hz)({name:vt.hotAttr.name,sup:Re,store:orgSdkStore,asFolder:vt.hotAttr.asFolder,zIndex:vt.hotAttr.zIndex}),{x:fn,y:uo}=(0,j.lY)(vt,userSdkStore);(0,me.BB)({data:Ut,worldPos:{x:fn,y:uo},keyRndSup:pn.key,currentPageKey:pn.key,store:orgSdkStore,option:{isRename:!0,isRenameOnCreate:!1,isOptionDup:!1,isResetStickyPoint:!1}})}})},pe=userSdkStore.getHotItem(f.cid),Ce=(0,yi.Hz)({name:pe.hotAttr.name,sup:"B@main",store:orgSdkStore,asFolder:pe.hotAttr.asFolder});pe.sub&&pe.sub.length&&re(pe.sub,Ce.key);const Pe=Ie=>{Ie.forEach((Re,We)=>{var ct;((ct=Re.data)==null?void 0:ct.zIndex)!==We+2&&orgSdkStore.updateHotAttrMerge(Re.cid,{zIndex:We+2}),Re.subFolder&&Re.subFolder.length&&Pe(Re.subFolder)})};Pe(_),u({type:"entry:load:org:combo:group:list"}),u({type:"entry:search-panel:refresh:group:add",payload:{category:mn.t_,groupAddList:[{cid:Ce.key,name:Ce.hotAttr.name,data:Ce.hotAttr}]}}),orgSdk.saveAsync(),MB.notice({text:I18N.__entry__.widget_move_to_org_success}),g&&g()};u({type:"modal:update:confirm:state",payload:{isOpen:!0,title:I18N.__entry__.add_to_org_material,desc:I18N.__entry__.add_to_org_tips.replace(/%s/,(0,go.rB)().process(f.name)),onConfirm:()=>{Y()}}})},"entry:refresh:user-combo-group:delete":async(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{matchSelectDelSet:f}}=P;const g=b(),S=(0,r.HW)(g),_=(0,ca.wS)(g),O=H=>H.filter(Y=>{const re=!f.has(Y.cid);return re||(0,yi.X3)(Y.cid,S,userSdkStore),Y.subFolder=O(Y.subFolder),re}),V=O(_);u({type:"widget-panel:set:user-combo-groups",payload:{nextComboGroups:V}})},"entry:refresh:user-combo-group:update":async(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{userComboGroupUpdateList:f}}=P;const g=b(),S=(0,ca.wS)(g),_={};for(const H of f){const Y=(H==null?void 0:H.children)||[];_[H.cid]={...H,children:Y}}const O=H=>H.map(Y=>{if(_[Y.cid]){const re=_[Y.cid],{name:pe}=re;return userSdkStore.updateHotAttrMerge(Y.cid,{name:pe}),re.subFolder=O(Y.subFolder),re}else return Y.subFolder=O(Y.subFolder),Y}),V=O(S);u({type:"widget-panel:set:user-combo-groups",payload:{nextComboGroups:V}}),userSdk.saveAsync()},"entry:refresh:user-combo-group:add":async(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{userComboGroupAddList:f}}=P;const g=b(),S=(0,ca.wS)(g),_=(0,ii.jD)(...f,S,userSdkStore.updateHotAttrMerge);u({type:"widget-panel:set:user-combo-groups",payload:{nextComboGroups:_}})},"entry:refresh:user-combo-group:add:migrate":async(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{oldUserComboGroups:f}}=P;const g=b(),S=(0,ca.wS)(g),_=[];for(const V of S){let H=!1;const{cid:Y}=V;for(const re of f){const{cid:pe}=re;if(pe===Y){H=!0;break}}H||_.push(V)}const O=(0,ii.CF)(_,f,userSdkStore.updateHotAttrMerge);u({type:"widget-panel:set:user-combo-groups",payload:{nextComboGroups:O}}),await userSdk.saveAsync()}},za={"entry:load:org:combo:group:list":async L=>{let{dispatch:P}=L;const b=no(orgSdk);await P({type:"widget-panel:set:org-combo-groups",payload:{nextComboGroups:b}})},"entry:create:org:combo-group":async L=>{let{getState:P,dispatch:b}=L;const u=P(),f=(0,ca.lb)(u),g=(0,yi.Hz)({name:Ja(f,I18N.__entry__.folder),asFolder:!0,sup:"B@main",store:orgSdkStore,zIndex:0}),S={cid:g.key,name:g.hotAttr.name,data:g.hotAttr,children:[]};await b({type:"entry:refresh:org-combo-group:add",payload:{orgComboGroupAddList:[S]}}),b({type:"update:popups:state",payload:{editingCid:S.cid}}),b({type:"entry:auto:scroll-to:active-combo-group",payload:{activeComboGroup:S.cid,isOrg:!0}}),orgSdk.saveAsync(),b({type:"entry:track:org:library:operation:log",payload:{operationType:Tr,optional:{folderCid:S.cid,folderName:S.name,folderType:"combo"}}}),dn.Y4.trackLibraryFolderOperation({folderType:"\u7EC4\u4EF6",folderOperation:"\u65B0\u5EFA\u6587\u4EF6\u5939"})},"entry:create:org-combo-group-insertion":async(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{comboGroup:f,insertionType:g}}=P;const S=b(),_=(0,ca.lb)(S);g==="up"?Po(_,f,f.data.zIndex):Po(_,f,f.data.zIndex+1);const O=(0,yi.Hz)({name:Ja(_,I18N.__entry__.folder),asFolder:!0,sup:f.sup,store:orgSdkStore,zIndex:g==="up"?f.data.zIndex:f.data.zIndex+1}),V={cid:O.key,name:O.hotAttr.name,data:O.hotAttr,children:[],sup:O.sup};await u({type:"entry:refresh:org-combo-group:add",payload:{orgComboGroupAddList:[V]}}),u({type:"update:popups:state",payload:{editingCid:V.cid}}),orgSdk.saveAsync(),u({type:"entry:track:org:library:operation:log",payload:{operationType:Tr,optional:{folderCid:V.cid,folderName:V.name,folderType:"combo"}}}),dn.Y4.trackLibraryFolderOperation({folderType:"\u7EC4\u4EF6",folderOperation:g==="up"?"\u4E0A\u65B9\u6DFB\u52A0\u6587\u4EF6\u5939":"\u4E0B\u65B9\u6DFB\u52A0\u6587\u4EF6\u5939"})},"entry:create:org-sub-combo-group":async(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{comboGroup:f}}=P;const g=b(),S=(0,ca.lb)(g);try{if(!xa(S,f.cid,4)){MB.notice({text:"\u6700\u591A\u652F\u63014\u7EA7",type:"error"});return}}catch(V){console.log(V)}const _=(0,yi.Hz)({name:Ja(S,I18N.__entry__.folder),asFolder:!0,sup:f.cid,store:orgSdkStore}),O={cid:_.key,name:_.hotAttr.name,data:_.hotAttr,children:[],sup:_.sup};await u({type:"entry:refresh:org-combo-group:add",payload:{orgComboGroupAddList:[O]}}),u({type:"widget-panel:set:local-org-combo-expand-cids",payload:{oper:"plus",cid:f.cid}}),u({type:"update:popups:state",payload:{editingCid:O.cid}}),orgSdk.saveAsync(),u({type:"entry:track:org:library:operation:log",payload:{operationType:Tr,optional:{folderCid:O.cid,folderName:O.name,folderType:"combo"}}}),dn.Y4.trackLibraryFolderOperation({folderType:"\u7EC4\u4EF6",folderOperation:"\u65B0\u5EFA\u5B50\u6587\u4EF6\u5939"})},"entry:remove:org-combo-group":async(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{comboGroup:f,callback:g}}=P;const S=b(),_=(0,ca.lb)(S);MB.safeDelayLoading(I18N.__entry__.in_progress);const{combos:O}=Pa(f,_),V=sr(f,_),H=async Y=>{let{isDeleteCombo:re,selectedCid:pe}=Y;if(!re&&Ko(_,pe)){const Ie=[...f.children].map((We,ct)=>({key:We.key,sup:pe,hotAttr:{...We.hotAttr,zIndex:ct+1},sub:We.sub})).concat([...f.subFolder.map((We,ct)=>({key:We.cid,sup:pe,hotAttr:{...We.data,zIndex:ct+1},sub:We.sub}))]);orgSdkStore.updateHotItemBatch(Ie),u({type:"entry:load:org:combo:group:list"});const Re=vr(_,pe);f.children.forEach(We=>{u({type:"entry:track:org:library:operation:log",payload:{operationType:xi,optional:{category:"combo",elementName:We.hotAttr.name,elementPath:Re}}})}),f.subFolder.forEach(We=>{u({type:"entry:track:org:library:operation:log",payload:{operationType:Br,optional:{folderType:"combo",folderCid:We.cid,folderName:We.name,folderPath:Re}}})})}const Ce=new Set([f.cid]);u({type:"entry:refresh:org-combo-group:delete",payload:{matchSelectDelSet:Ce}}),g&&g(),orgSdk.saveAsync(),MB.notice({text:I18N.__entry__.floder_del_success}),u({type:"entry:track:org:library:operation:log",payload:{operationType:Kr,optional:{folderCid:f.cid,folderName:f.name,folderType:"combo",folderContainsCount:re?O.length:0}}}),dn.Y4.trackLibraryFolderOperation({folderType:"\u7EC4\u4EF6",folderOperation:"\u5220\u9664"})};MB.safeDelayLoading(!1),u({type:"modal:update:state",payload:{comboGroupRemoveModal:{isOpen:!0,comboGroup:f,combosToRemove:O,comboGroupsCanMoveTo:V,onModalDelete:H}}})},"entry:refresh:org-combo-group:delete":async(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{matchSelectDelSet:f}}=P;const g=b(),S=(0,r.HW)(g),_=(0,ca.lb)(g),O=H=>H.filter(Y=>{const re=!f.has(Y.cid);return re||(0,yi.X3)(Y.cid,S,orgSdkStore),Y.subFolder=O(Y.subFolder),re}),V=O(_);u({type:"widget-panel:set:org-combo-groups",payload:{nextComboGroups:V}})},"entry:refresh:org-combo-group:update":async(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{orgComboGroupUpdateList:f}}=P;const g=b(),S=(0,ca.lb)(g),_={};for(const H of f){const Y=(H==null?void 0:H.children)||[];_[H.cid]={...H,children:Y}}const O=H=>H.map(Y=>{if(_[Y.cid]){const re=_[Y.cid],{name:pe}=re;return orgSdkStore.updateHotAttrMerge(Y.cid,{name:pe}),re.subFolder=O(Y.subFolder),re}else return Y.subFolder=O(Y.subFolder),Y}),V=O(S);u({type:"widget-panel:set:org-combo-groups",payload:{nextComboGroups:V}}),orgSdk.saveAsync()},"entry:refresh:org-combo-group:add":async(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{orgComboGroupAddList:f}}=P;const g=b(),S=(0,ca.lb)(g),_=f[0],O=(0,ii.jD)(_,S,orgSdkStore.updateHotAttrMerge);u({type:"widget-panel:set:org-combo-groups",payload:{nextComboGroups:O}})},"entry:update:org-combo-group":async(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{orgComboGroupList:f,type:g}}=P;const S=b(),_=(0,ca.lb)(S),O=[],V={},H={};for(const Y of f)V[Y.cid]=Y;for(const Y of _)H[Y.cid]=Y;if(g==="del")for(const Y of _)V[Y.cid]||O.push(Y);else{for(const Y of _)V[Y.cid]&&H[Y.cid]?(O.push(V[Y.cid]),delete V[Y.cid]):H[Y.cid]&&O.push(Y);for(const Y of Object.values(V))H[Y.cid]||O.push(Y)}u({type:"widget-panel:set:org-combo-groups",payload:{nextComboGroups:O}})},"entry:refresh:org-combo-group:add:migrate":async(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{oldOrgComboGroups:f}}=P;const g=b(),S=(0,ca.lb)(g),_=[];for(const V of S){let H=!1;const{cid:Y}=V;for(const re of f){const{cid:pe}=re;if(pe===Y){H=!0;break}}H||_.push(V)}const O=(0,ii.CF)(_,f,orgSdkStore.updateHotAttrMerge);u({type:"widget-panel:set:org-combo-groups",payload:{nextComboGroups:O}}),orgSdk.saveAsync()}},hr=(L,P,b,u)=>{const f=g=>g.map(S=>{if(S.cid===P){const O=b(S.children).map((V,H)=>({...V,hotAttr:{...V.hotAttr,zIndex:H+1}}));return u.updateHotItemBatch(O),{...S,children:O}}return S.subFolder&&S.subFolder.length?{...S,subFolder:f(S.subFolder)}:S.children&&S.children.length?{...S,children:f(S.children)}:S});return f(L)},ar=(L,P)=>{const b=(0,Lr.BS)({sup:L}),u=(0,yi.pV)(b,!1,!0),f=P===void 0?b==null?void 0:b.length:P;return b.splice(f,0,null),b.forEach((g,S)=>{if(g&&g.zIndex!==S+1){const _=sdkStore.getHotItem(g.cid),O={..._,hotAttr:{..._.hotAttr,zIndex:S+1}};sdkStore.updateHotItem(O)}}),{name:u,sup:L,zIndex:f+1}},Vi={...rn,...Ft,...Sn,...wa,...za,...{"entry:auto:duplicate:combo":(L,P)=>{var b;let{getState:u,dispatch:f}=L,{payload:{group:g,combo:S,isOrg:_}}=P;const O=u(),V=(0,ca.lb)(O),H=(0,ca.wS)(O),Y=_?V:H,re=_?orgSdkStore:userSdkStore,pe=(0,yi.Hz)({name:S.hotAttr.name+" "+I18N.__entry__.name_copy,sup:S.sup,store:re});re.dupRBPageSub(S.key,pe.key);const Ce=re.getHotItem(pe.key),Pe=hr(Y,S.sup,Re=>[Ce].concat(Re),re),Ie=_?"orgComboGroups":"userComboGroups";MB.notice({text:I18N.__entry__.widget_dup_success}),f({type:"widget-panel:update:state",payload:{[Ie]:Pe}}),f({type:"entry:search-panel:dup:combo",payload:{cid:pe.key,comboGroupCid:(b=S.group)==null?void 0:b.cid,isOrg:_}}),_?orgSdk.saveAsync():userSdk.saveAsync(),_&&dn.Y4.trackLibraryMaterialOperation({materialType:"\u7EC4\u4EF6",materialOperation:"\u521B\u5EFA\u526F\u672C"})},"entry:auto:batch:remove:combo":(L,P)=>{let{dispatch:b}=L,{payload:{group:u,combo:f,isOrg:g,callback:S}}=P;b(g?{type:"entry:batch:remove:org:combo",payload:{group:u,combo:f,callback:S}}:{type:"entry:batch:remove:user:combo",payload:{group:u,combo:f,callback:S}})},"entry:auto:remove:combo":async(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{group:f,combosToRemove:g,isOrg:S=!1,callback:_}}=P;if(!g.length)return;const O=g[0],[V,H]=g.length===1?[I18N.__entry__.del_widget_title,I18N.__entry__.del_widget_desc.replace(/%s/,(0,go.rB)().process(O.hotAttr.name))]:[I18N.__entry__.del_widget_title,I18N.__entry__.del_multi_widget_desc],Y=S?orgSdkStore:userSdkStore,re=b(),pe=(0,r.HW)(re),Ce=(0,ca.lb)(re),Pe=(0,ca.wS)(re),Ie=S?Ce:Pe,Re=()=>{g.forEach(Ut=>(0,yi.X3)(Ut.key,pe,Y));const We=g.map(Ut=>Ut.key),ct=hr(Ie,f.cid,Ut=>Ut.filter(pn=>!We.includes(pn.key)),Y),vt=S?"orgComboGroups":"userComboGroups";MB.notice({text:I18N.__entry__.widget_del_success}),u({type:"widget-panel:update:state",payload:{[vt]:ct}}),u({type:"entry:search-panel:remove:combo:from:comboCid",payload:{comboCidsSet:new Set(We),isOrg:S}}),_&&_(),S?orgSdk.saveAsync():userSdk.saveAsync(),S&&dn.Y4.trackLibraryMaterialOperation({materialType:"\u7EC4\u4EF6",materialOperation:"\u5220\u9664"})};u({type:"modal:update:confirm:state",payload:{isOpen:!0,title:V,desc:H,confirmText:I18N.__entry__.delete,onConfirm:Re}})},"entry:auto:transfer:combo":async(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{group:f,excludedCombo:g,isOrg:S,callback:_}}=P;const O=b(),V=!S;MB.safeDelayLoading(I18N.__entry__.in_progress);const H=V?(0,ca.wS)(O):(0,ca.lb)(O),Y=new Set([g.key]),re=async Pe=>{let{selectedGroupCid:Ie}=Pe;if(Ie===g.sup){MB.notice({text:"\u7EC4\u4EF6\u5DF2\u5728\u8BE5\u6587\u4EF6\u5939\u4E2D",type:"error"});return}da(H,g.key)&&(V?(u({type:"entry:batch:transfer:user:combos",payload:{excludedCombo:g,selectedGroupCid:Ie}}),!(0,ca.MV)(O).includes(Ie)&&u({type:"widget-panel:set:local-user-combo-expand-cids",payload:{oper:"plus",cid:Ie}})):(u({type:"entry:batch:transfer:org:combos",payload:{excludedCombo:g,selectedGroupCid:Ie}}),!(0,ca.bg)(O).includes(Ie)&&u({type:"widget-panel:set:local-org-combo-expand-cids",payload:{oper:"plus",cid:Ie}})),MB.notice({text:I18N.__entry__.widget_move_success}),u({type:"entry:auto:scroll-to:active-combo-group",payload:{activeComboGroup:Ie,isOrg:!V}}),_&&_(),!V&&dn.Y4.trackLibraryMaterialOperation({materialType:"\u7EC4\u4EF6",materialOperation:"\u79FB\u52A8"}))},Ce={isOpen:!0,title:I18N.LibraryContainer.materialLibrary.combo_move,selectCidSet:Y,itemGroups:H,onModalTransfer:re};MB.safeDelayLoading(!1),u({type:"modal:update:state",payload:{designTransferModal:Ce}})},"entry:auto:create:combo-group":(L,P)=>{let{dispatch:b}=L,{payload:{isOrg:u}}=P;b(u?{type:"entry:create:org:combo-group"}:{type:"entry:create:user-combo-group"})},"entry:auto:create:sub-combo-group":(L,P)=>{let{dispatch:b}=L,{payload:{comboGroup:u,isOrg:f}}=P;b(!f?{type:"entry:create:user-sub-combo-group",payload:{comboGroup:u}}:{type:"entry:create:org-sub-combo-group",payload:{comboGroup:u}})},"entry:auto:create:combo-group-insertion":(L,P)=>{let{dispatch:b}=L,{payload:{comboGroup:u,isOrg:f,insertionType:g}}=P;b(!f?{type:"entry:create:user-combo-group-insertion",payload:{comboGroup:u,insertionType:g}}:{type:"entry:create:org-combo-group-insertion",payload:{comboGroup:u,insertionType:g}})},"entry:auto:change:confirm:combo_group:name":(L,P)=>{let{dispatch:b}=L,{payload:{comboGroup:u,comboGroupName:f,isOrg:g,callback:S}}=P;if(f.trim()==="")b({type:"update:popups:state",payload:{editingCid:""}});else if(u.name===f)b({type:"update:popups:state",payload:{editingCid:""}}),S&&S();else{const O=u.name;u.name=f,g?(b({type:"entry:refresh:org-combo-group:update",payload:{orgComboGroupUpdateList:[u]}}),b({type:"entry:track:org:library:operation:log",payload:{operationType:Ha,optional:{folderCid:u.cid,folderName:O,folderNewName:f,folderType:"combo"}}})):b({type:"entry:refresh:user-combo-group:update",payload:{userComboGroupUpdateList:[u]}}),b({type:"update:popups:state",payload:{editingCid:""}})}g&&dn.Y4.trackLibraryFolderOperation({folderType:"\u7EC4\u4EF6",folderOperation:"\u91CD\u547D\u540D"})},"entry:auto:update:combo:name":(L,P)=>{let{dispatch:b}=L,{payload:{isOrg:u,...f}}=P;b(u?{type:"entry:update:org-combo:name",payload:{...f}}:{type:"entry:update:user-combo:name",payload:{...f}})},"entry:auto:create:combo:on:screenList":L=>{let{getState:P,dispatch:b}=L;const u=P(),{isEditingCombo:f}=(0,gt.r)(u);if(!f)return;const g=(0,r.Ur)(u),S=(0,y.Hs)(u),_=(0,y.He)(u),V=(0,y.HA)(u).children.filter(Ce=>(0,Lr.Mo)(Ce.data)).map(Ce=>Ce.data),H=S==null?void 0:S.find(Ce=>V==null?void 0:V.find(Pe=>Pe.cid===Ce));let Y=null;if(H)Y=ar(H);else if(g){var re;const Ce=(re=_[g.cid])==null?void 0:re.sup;if(!Ce)return;const Re=(0,Lr.BS)({sup:Ce}).findIndex(We=>We.cid===g.cid)+1;Y=ar(Ce,Re)}else if(V!=null&&V.length)Y=ar(V[0].cid);else{const Ce=Ja(V,I18N.__entry__.folder);Y={name:"\u7EC4\u4EF61",sup:(0,yi.Hz)({name:Ce,sup:"B@main",asFolder:!0}).key}}if(!Y)return;const pe=(0,yi.Hz)(Y);b({type:"entry:update:screen:list"}),b({type:"entry:goto:project-alike",payload:{screenMetaCid:pe.key}}),b(o.GO.editBasketItemKey("")),b(o.GO.editBasketHotItem(null)),b({type:"screen:update:editing-screen-cid",payload:{cid:pe.key}}),b({type:"entry:zoom:fit:scale:offset"}),b({type:"entry:reset:screen:selection",payload:{resetScreenCid:pe.key}}),b({type:"entry:memory:last:screenAndCanvas",payload:{screenMetaCid:pe.key}}),b({type:"entry:memory:current:screen:offset:scale"}),b({type:"screen:update:state",payload:{currentPage:pe}})},"entry:auto:create:comboGroup:on:screenList":L=>{let{getState:P,dispatch:b}=L;const u=P(),{isEditingCombo:f}=(0,gt.r)(u);if(!f)return;const S=(0,y.HA)(u).children.filter(Y=>(0,Lr.Mo)(Y.data)).map(Y=>Y.data),_=Ja(S,I18N.__entry__.folder),O=(0,Lr.BS)({sup:"B@main"}),V=0;O.splice(V,0,null),O.forEach((Y,re)=>{if(Y&&Y.zIndex!==re+1){const pe=sdkStore.getHotItem(Y.cid),Ce={...pe,hotAttr:{...pe.hotAttr,zIndex:re+1}};sdkStore.updateHotItem(Ce)}});const H=(0,yi.Hz)({name:_,zIndex:V+1,sup:"B@main",asFolder:!0});b({type:"entry:update:screen:list"}),b({type:"screen:update:editing-screen-cid",payload:{cid:H.key}}),b({type:"entry:reset:screen:selection",payload:{resetScreenCid:H.key}})},"entry:auto:dup:combo:comboGroup:on:screenList":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{isWithChildren:f}}=P;const g=b(),{isEditingCombo:S}=(0,gt.r)(g);if(!S)return;const _=(0,y.Hs)(g),O=(0,y.He)(g),V=(0,y.HA)(g);sdkStore.combineMergeMark("dup-combo-group");const H=_.map(Y=>{const re=O[Y],{key:pe}=(0,yi.o)(re);return(f||(0,Lr.Mo)(re))&&(0,yi.NA)(re,pe),(0,yi.Pv)(re,V),pe});sdkStore.combineMerge("dup-combo-group"),u({type:"entry:update:screen:list"}),u({type:"screen:update:screen-selection",payload:{screenSelection:H}}),MB.notice({text:I18N.__entry__.widget_dup_success})},"entry:auto:change:confirm:asset_group:name":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{assetGroup:f,assetGroupName:g,callback:S,isOrg:_}}=P;const O=b(),V=(0,ca.sF)(O),H=(0,ca.zX)(O),pe=(_?H:V).filter(Pe=>Pe.cid!==f.cid).some(Pe=>Pe.name===g),Ce=g.trim()==="";pe||Ce?(pe&&MB.notice({text:I18N.__entry__.folder_dup_of_name,type:"warning"}),u({type:"update:popups:state",payload:{editingCid:""}})):f.name===g?(u({type:"update:popups:state",payload:{editingCid:""}}),S&&S()):(f.name=g,u(_?{type:"entry:refresh:org-asset-group:update",payload:{orgAssetGroupUpdateList:[f]}}:{type:"entry:refresh:user-asset-group:update",payload:{userAssetGroupUpdateList:[f]}}),u({type:"update:popups:state",payload:{editingCid:""}})),_&&dn.Y4.trackLibraryFolderOperation({folderType:"\u56FE\u7247",folderOperation:"\u91CD\u547D\u540D"})},"entry:auto:create:asset-group":(L,P)=>{let{dispatch:b}=L,{payload:{isOrg:u}}=P;b(!u?{type:"entry:create:user-asset-group"}:{type:"entry:create:org-asset-group"})},"entry:auto:create:asset-group-insertion":(L,P)=>{let{dispatch:b}=L,{payload:{assetGroup:u,isOrg:f,insertionType:g}}=P;b(!f?{type:"entry:create:user-asset-group-insertion",payload:{assetGroup:u,insertionType:g}}:{type:"entry:create:org-asset-group-insertion",payload:{assetGroup:u,insertionType:g}})},"entry:auto:create:sub-asset-group":(L,P)=>{let{dispatch:b}=L,{payload:{assetGroup:u,isOrg:f}}=P;b(!f?{type:"entry:create:user-sub-asset-group",payload:{assetGroup:u}}:{type:"entry:create:org-sub-asset-group",payload:{assetGroup:u}})},"entry:auto:scroll-to:active-combo-group":async(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{activeComboGroup:f}}=P;const g=document.querySelector("#group-list"),S=g==null?void 0:g.querySelector(".combo-group-panel[data-cid="+f+"]");S&&setTimeout(()=>{g.scrollTop=S.offsetTop},300)},"entry:auto:scroll-to:active-asset-group":async(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{activeAssetGroup:f}}=P;const g=document.querySelector("#group-list"),S=g==null?void 0:g.querySelector(".asset-group-panel[data-cid="+f+"]");S&&setTimeout(()=>{g.scrollTop=S.offsetTop},300)}}};var bs=s(14861),Os=s(65791),ml=s(47424),Ki=s(48790),Bs=s(91474);const ac={"entry:resources:set:templatePanel:single:page:fetch:data":async L=>{let{dispatch:P,getState:b}=L;const u=b(),f=(0,ca.CL)(u),g=(0,ca.v3)(u),S=(0,ca.E)(u),_=(0,ca.WG)(u),O=new Map,V=new Map,H=new Map(g),Y=S+"-"+_;if(g.has(Y))return;P({type:"page-panel:update:state",payload:{findLoading:!0}});const re=async(Pe,Ie)=>{const Re=Pe+"-"+Ie;if(!H.has(Re)){let We=[];if(Ie==="recommend"){const ct=await(0,wo.Jv)(Pe),vt=Object.values(ct).map(Ut=>{const{market_template:pn,project_meta_cid:fn,p2mList:uo}=Ut,Mn=(0,Ki.QD)(pn,fn,uo);let Gt=Mn;if((uo==null?void 0:uo.length)>2){const yo=Math.floor(Math.random()*uo.length);let Do=Math.floor(Math.random()*uo.length);Do===yo&&(Do=(yo+1)%uo.length),Gt=[Mn[yo],Mn[Do]]}return We=We.concat(Gt),{marketTemplateCid:pn.cid,marketTemplate:pn,marketTemplateItemGroup:Mn}});return{renderListKey:Re,marketTemplateItemList:We,data:vt}}else{const{marketTemplates:ct,p2mMMap:vt}=await(0,wo.je)({platform:Pe,firstTypeCid:Ie}),Ut=ct&&ct.map(pn=>{const{project_meta_cid:fn,cid:uo}=pn,Mn=Object.values(vt[fn]),Gt=(0,Ki.QD)(pn,fn,Mn);return We=We.concat(Gt),{marketTemplateCid:uo,marketTemplate:pn,marketTemplateItemGroup:Gt}});return{renderListKey:Re,marketTemplateItemList:We,data:Ut}}}};(await(async(Pe,Ie)=>{const Re=Pe.map(async ct=>{let{cid:vt}=ct;return await re(Ie,vt)});return await Promise.all(Re)})(f.get(S),S)).forEach(Pe=>{let{renderListKey:Ie,marketTemplateItemList:Re,data:We}=Pe;H.set(Ie,Re),We.forEach(ct=>{let{marketTemplateCid:vt,marketTemplate:Ut,marketTemplateItemGroup:pn}=ct;O.set(vt,Ut),V.set(vt,pn)})}),P({type:"page-panel:update:state",payload:{findPlatformSubTypeMtDataMap:H}}),P({type:"page-panel:update:map:state",payload:{key:"findMtResourceMap",value:O}}),P({type:"resources:set:resources_marketTemplateItem_list_map",payload:{mtResourcesMtItemListMap:V}}),P({type:"page-panel:update:state",payload:{isLoadedPageSingleData:!0}}),P({type:"page-panel:update:state",payload:{findLoading:!1}})},"entry:resources:set:templatePanel:page:single:init:data":async L=>{var P;let{dispatch:b,getState:u}=L;const f=u(),g=(0,r.Ur)(f),S=(0,ca.E)(f),_=(0,ca.WG)(f),O=(0,ca.xQ)(f),V=(0,r.PL)(f),H={findPlatformType:"mobile",findCurrentMtResourceCid:""};if(!S)try{var re,pe;const We=(0,r.PL)(f),ct=(0,U.kV)(We.cid+"-platformType"),vt=["ipad","web"].includes((re=bs.v2[g==null?void 0:g.device])==null?void 0:re.device)?"web":["display_screen"].includes((pe=bs.v2[g==null?void 0:g.device])==null?void 0:pe.device)?"visual":"mobile",Ut=ct||vt||"mobile";Ut&&Ut!==H.findPlatformType&&(H.findPlatformType=Ut)}catch(We){console.log(We.message)}else H.findPlatformType=S,H.findCurrentMtResourceCid=O;b({type:"page-panel:update:state",payload:H});const Ce=H.findPlatformType;b({type:"page-panel:update:state",payload:{findPlatformType:Ce}}),V.cid&&Ce&&(0,U.cH)(V.cid+"-platformType",Ce),b({type:"page-panel:update:state",payload:{findLoading:!0}});const Pe=new Map;for(const We of Bs.Ny){let ct=[];const vt=await(0,wo.ZF)(We);ct=We==="visual"&&!ENV.IS_ON_PREMISES?[{cid:"recommend",name:I18N.Resources.page_panel.recommend,children:[]},...vt]:vt,Pe.set(We,ct)}const Ie=(P=Pe.get(Ce)[0])==null?void 0:P.cid;b({type:"page-panel:update:state",payload:{findPlatformSubType:Ie}}),b({type:"page-panel:update:map:state",payload:{key:"findPlatformSubTypeListMap",value:Pe}}),b({type:"page-panel:update:map:state",payload:{key:"findPlatformSubTypeMap",value:new Map([[Ce,Ie]])}}),!(0,Os.xN)(f)&&b({type:"entry:resources:set:templatePanel:single:page:fetch:data"})},"entry:resources:set:templatePanel:page:library:init:data":async L=>{let{dispatch:P,getState:b}=L;const u={templateLibraryPlatformType:"\u63A8\u8350",templateLibraryPlatformSubType:"",templateLibraryPlatformSubTypeListMap:new Map,templatePageLibraryList:[]},{screen_list:f}=await $e(),g=Object.keys(f),S=await(0,ml.kz)(g);u.templatePageLibraryList=S,g.forEach(_=>{const O=S==null?void 0:S.find(V=>V.title===_);u.templateLibraryPlatformSubTypeListMap.set(_,f[_].filter(V=>{var H;return((H=O.templateList.find(Y=>Y.title===V))==null||(H=H.list)==null?void 0:H.length)>0}))}),u.templateLibraryPlatformType=g[0]||"\u63A8\u8350",u.templateLibraryPlatformSubType=f[u.templateLibraryPlatformType][0],P({type:"page-panel:update:state",payload:{...u,isLoadedPageLibraryData:!0}})},"entry:resources:set:templatePanel:file:update:data":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:f}=P;const g=b(),{filePlatformType:S}=f;S&&u({type:"page-panel:update:state",payload:{filePlatformType:S}})},"entry:resources:set:templatePanel:modals:page:category:data":async(L,P)=>{let{dispatch:b,getState:u}=L,{payload:{updatedPlatformType:f,updatedPlatformSubType:g,callback:S}}=P;const _=u(),O=(0,r.PL)(_),V=(0,ca.v3)(_),H=f+"-"+g;if(!V.has(H)){let Y=[];const re=[],pe=new Map,Ce=new Map,Pe=new Map,{marketTemplates:Ie,p2mMMap:Re}=await(0,wo.je)({platform:f,firstTypeCid:g,isPopup:!0});Ie&&Ie.forEach(We=>{const{project_meta_cid:ct,cid:vt}=We,Ut=Object.values(Re[ct]),pn=(0,Ki.QD)(We,ct,Ut);Y=Y.concat(pn),re.push(vt),pe.set(vt,ct),Ce.set(vt,We),Pe.set(vt,pn)}),b({type:"page-panel:update:map:state",payload:{key:"findPlatformSubTypeMtDataMap",value:new Map([[H,Y]])}}),b({type:"page-panel:update:map:state",payload:{key:"findMtResourceMap",value:Ce}}),b({type:"resources:set:resources_marketTemplateItem_list_map",payload:{mtResourcesMtItemListMap:Pe}}),b({type:"entry:resources:set:mtSdkStore:map",payload:{mtResourceCidList:re,mtProjectMetaCidMap:pe}})}S()},"entry:resources:reset:templatePanel:filter":L=>{let{getState:P,dispatch:b}=L;const u=P(),f=(0,Os.Lt)(u),g=(0,ca.CL)(u),S=(0,ca.E)(u);if(f==="single"){const V=g.get(S);if((V==null?void 0:V.length)>0){var _;const H=(_=V[0])==null?void 0:_.cid;b({type:"page-panel:update:state",payload:{findPlatformSubType:H}})}}if(f==="library"){var O;const V=(0,Os.XA)(u),H="\u63A8\u8350",Y=(O=V.get(H))==null?void 0:O[0];b({type:"page-panel:update:state",payload:{templateLibraryPlatformType:H,templateLibraryPlatformSubType:Y}})}}};var qc=s(60441),Sc=s(22375),ei=s(15722);const as="/api/community/v1/community_search",As="/api/community/v1/community_search_balanced",$s="/api/community/v1/market_template/star/:cid",Ys="/api/community/v1/market_template/like/:cid",rc=[Sc._n.Everyone,Sc._n.MktMemberFree,Sc._n.MktMemberDiscount,Sc._n.MdMemberFree],Ql={everyone_mt_member_free_mt_member_discount_member_free:"every_md_mt_free",everyone:"everyone",mt_member_free_mt_member_discount:"mt_free_discount",member_free:"member_free",everyone_mt_member_free_mt_member_discount:"every_mt_free",everyone_member_free:"every_md_free",mt_member_free_mt_member_discount_member_free:"md_mt_free"},Id=L=>{const P=L.policy;if(P.length>0&&P.includes(ei.y))return ei.y;const b=rc.map(u=>{if(P.includes(u))return u}).filter(u=>u).join("_");return Ql[b]};function _d(L,P){const b={};return Object.keys(L).forEach(u=>{P(L[u],u)&&(b[u]=L[u])}),b}const h2=L=>!(L==null||L==="default"||L.length===0),vp=async L=>{const P=Id(L),b=_d({...L,policy:P,keyword:ei.y},h2),u=!b.q&&b.order==="recommend"&&!b.policy,f=!b.q&&b.order==="recommend",g=u&&!ENV.IS_ON_PREMISES?As:as,S=f&&!ENV.IS_ON_PREMISES?{...b,content_quality_score:!0}:b;try{return await(0,ot.zi)(g,S)}catch(_){return console.log(_),null}},U1=L=>({page_size:30,version:"v2",q:L.keyword}),g0=async L=>{let{filter:P}=L;const b={...P,...U1(P)},u=await vp(b);if(!u)return{market_templates:[],isFetchingDone:!0,total_count:0};const{market_templates:f,total_count:g}=u;return{market_templates:f.filter(S=>!["design-draft","flow-chart","mind-map"].includes(S.project_type)),isFetchingDone:f.length===0,total_count:g}},bp=L=>{try{return fetchPostHead(Ys.replace(":cid",L),{})}catch(P){console.log(P)}},y0=async L=>{try{return fetchDeleteHeadWithHeader(Ys.replace(":cid",L))}catch(P){console.log(P)}},R0=L=>{try{return fetchPostHead($s.replace(":cid",L),{})}catch(P){console.log(P)}},Eu=L=>{try{return fetchDeleteHeadWithHeader($s.replace(":cid",L))}catch(P){console.log(P)}};var r1=s(75258);const Iu={...{"entry:widget-modal:init":L=>{let{getState:P,dispatch:b}=L;const u=P(),f=(0,ca.f3)(u);let g=0;[r1.Iw.MP_App,r1.Iw.MP_H5].includes(f)?g=1:r1.Iw.MP_Applet===f&&(g=2),b({type:"widget-modal:update:largeFactory",payload:{tab:g}})},"entry:widget-modal:componentLibrary:update:templateList":async(L,P)=>{let{getState:b,dispatch:u}=L,{payload:f}=P;const g=b(),S=(0,qc.ri)(g),_=(0,qc.GL)(g);await u({type:"widget-modal:update:componentLibrary",payload:{isFetchingMktData:!0}});const{page:O,platform:V,order:H,policy:Y,templateList:re}=_,pe={page:O,platform:V,order:H,policy:Y,category:mn.t_,keyword:S},{market_templates:Ce,isFetchingDone:Pe,total_count:Ie}=await g0({filter:pe}),Re=O===1?[...Ce]:[...re,...Ce],We=new Map;Re.forEach(ct=>{We.set(ct.cid,ct)}),u({type:"widget-modal:update:componentLibrary",payload:{templateList:Re,isFetchingMktData:!1,isFetchingDone:Pe,totalCount:Ie,resourcesMap:We}}),f!=null&&f.callback&&(f==null||f.callback())}}},i1=(L,P)=>{const b=new Map,u=[];return L.sort((f,g)=>f.position-g.position).forEach(f=>{const g=P.filter(S=>S.group_cid===f.cid).sort((S,_)=>_.timestamp-S.timestamp);g!=null&&g.length&&(b.set(f.cid,g),u.push(...g))}),{assetsMap:b,assets:u}},Bh={"entry:init:user:image":async L=>{let{dispatch:P}=L;const{userAssetGroupList:b,userAssets:u}=await(0,W.OJ)();await P({type:"image-panel:set:user-assets-groups",payload:{nextGroups:b}}),await P({type:"image-panel:update:state",payload:{isRequestUserAssetGroup:!0}});const{assetsMap:f,assets:g}=i1(b,u);await P({type:"image-panel:update:state",payload:{userAssetsMap:f,userAssets:g,isRequestUserAssets:!0}})},"entry:init:org:image":async L=>{let{dispatch:P}=L;const{orgAssetGroupList:b,orgAssets:u}=await(0,W.l9)();await P({type:"image-panel:set:org-assets-groups",payload:{nextGroups:b}}),await P({type:"image-panel:update:state",payload:{isRequestOrgAssetGroup:!0}});const{assetsMap:f,assets:g}=i1(b,u);await P({type:"image-panel:update:state",payload:{orgAssetsMap:f,orgAssets:g,isRequestOrgAssets:!0}})},"entry:refresh:image-modal:user:image":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{addAssetList:f}}=P;const g=b(),S=(0,ca.sF)(g),_=(0,ca.Qz)(g),O=(0,Qo.$J)(g);if(!(O!=null&&O.isOpen))return;const{assetsMap:V,assets:H}=i1(S,[..._,...f]);u({type:"image-panel:update:state",payload:{userAssetsMap:V,userAssets:H}})},"entry:refresh:image-modal:org:image":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{addAssetList:f}}=P;const g=b(),S=(0,ca.zX)(g),_=(0,ca.pI)(g),O=(0,Qo.$J)(g);if(!(O!=null&&O.isOpen))return;const{assetsMap:V,assets:H}=i1(S,[..._,...f]);u({type:"image-panel:update:state",payload:{orgAssetsMap:V,orgAssets:H}})}},wp=(L,P,b)=>{const{group_cid:u}=L;let f={};if(b==="user_asset"){var g;f={projectUpperType:b,projectUpperCid:u,itemCid:(g=L.cid)!=null?g:L.asset_cid}}else if(b==="picture"||b==="sticker"){var S;f={projectUpperType:"picture",projectUpperCid:(S=L.cid)!=null?S:L.asset_cid}}else{var _;const O=L.asset_cid.includes("findPicture_")||L.asset_cid.includes("findSticker_"),V=O?"picture":"user_asset",H=O?L.asset_cid:L.group_cid,Y=O?"":(_=L.cid)!=null?_:L.asset_cid;f={projectUpperType:V,projectUpperCid:H,itemCid:Y}}return{isRequestRecent:!P,...f}},B0={...Bh,"entry:image-panel:set:image":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:f}=P;const{asset:g,isOrg:S,type:_="user_asset"}=f,O=b(),V=(0,De.nE)(O);if(!(V!=null&&V.length))return;const H=(0,r.lh)(O),Y=(0,Pt.WH)(O),re=(0,Pt.fo)(O),pe=H?sdkStore.getHotItem(H):null;if(!V.some(Ie=>{var Re;const{hotAttr:{type:We}}=Ie;if([N.x.WImage,N.x.WPlaceholder,N.x.WCarousel].includes(We)||Ie.key===H&&pe&&[N.x.WSticky,N.x.WTear].includes(pe==null||(Re=pe.hotAttr)==null?void 0:Re.type)||Ie.key===Y&&(re==null?void 0:re.length)===1)return!0})||(V.forEach(Ie=>{const{hotAttr:{type:Re}}=Ie;[N.x.WImage,N.x.WPlaceholder].includes(Re)?u({type:"entry:replace:widget:by:asset",payload:{asset:g,assetReplaceMode:N.x.WImage}}):Re===N.x.WCarousel&&u({type:"entry:replace:widget:by:asset",payload:{asset:g,assetReplaceMode:N.x.WCarousel}})}),u({type:"entry:insert:sticky:by:asset",payload:{asset:g}}),u({type:"entry:mind:insert:asset",payload:{asset:g}}),u({type:"entry:auto:show:hide:item"}),S))return;const Pe=wp(g,S,_);(0,W.Cp)(Pe)},"entry:image-panel:create:image:by:click":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:f}=P;const{asset:g,isOrg:S,isTrack:_=!1,type:O="user_asset"}=f,V=b(),H=(0,De.nE)(V),Y=(0,r.lh)(V),re=(0,Pt.WH)(V),pe=(0,Pt.fo)(V),Ce=Y?sdkStore.getHotItem(Y):null;if(H.some(ct=>{var vt;const{hotAttr:{type:Ut}}=ct;if([N.x.WImage,N.x.WPlaceholder,N.x.WCarousel].includes(Ut)||ct.key===Y&&Ce&&[N.x.WSticky,N.x.WTear].includes(Ce==null||(vt=Ce.hotAttr)==null?void 0:vt.type)||ct.key===re&&(pe==null?void 0:pe.length)===1)return!0})){u({type:"entry:image-panel:set:image",payload:{asset:g,isOrg:S,type:O}});return}const Ie=(0,$.BL)(g),Re=wp(g,S,O),We=[{...Ie,recent:{...Re,isTrack:_}}];u({type:"entry:resources:quick:create:template",payload:{data:We}})}},x0=L=>{if(L!=null&&L.length){var P,b,u;if((P=[N.x.WIcon,N.x.WImage])!=null&&P.includes((b=L[0])==null?void 0:b.type))return L[0];if((u=L[0])!=null&&u.length){var f;if(((f=L[0][0])==null?void 0:f.length)===1)return L[0][0][0]}}return null},hc={...{...ac,...Iu,...B0,"entry:active:popup:panel":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:f}=P;const{name:g}=f,S=b(),_=(0,mt.bP)(S),O=(0,y.OW)(S);u({type:"historyPanel:set:show",payload:{show:!1}}),u({type:"searchPanel:set:show",payload:{show:!1}}),u({type:"exalt:panel:order",payload:{name:g}}),u({type:"entry:resources:update:current:popup:panel",payload:{name:g}}),Di.Mf[g]&&u({type:"searchPanel:update:state",payload:{type:Di.Mf[g]}}),u({type:"entry:init:hotKeyWords"}),u({type:"entry:init:design:configurations"}),g===Di.lS.Page&&u({type:"entry:resources:reset:templatePanel:filter"}),_==="recommend"&&g!==O&&(g===Di.lS.Directory||O===Di.lS.Directory)&&setTimeout(()=>{u({type:"entry:update:screen_list_rect"})},200)},"entry:toggle:popup:panel":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:f}=P;const{name:g}=f,S=b(),_=(0,y.OW)(S);u({type:"historyPanel:set:show",payload:{show:!1}}),u({type:"searchPanel:set:show",payload:{show:!1}}),_===g?u({type:"entry:resources:update:current:popup:panel",payload:{name:null}}):(u({type:"exalt:panel:order",payload:{name:g}}),u({type:"entry:resources:update:current:popup:panel",payload:{name:g}}),Di.Mf[g]&&u({type:"searchPanel:update:state",payload:{type:Di.Mf[g]}}))},"entry:toggle:icon-select-popup":async(L,P)=>{let{getState:b,dispatch:u}=L,{payload:f}=P;const{iconName:g,source:S}=f,_=b(),O=(0,ca.p8)(_),V=(0,ca.bw)(_);let H=(0,ca.Ou)(_),Y=null;if(g){let re=g==null?void 0:g.slice(0,g==null?void 0:g.indexOf("-"));if(re==="fa"&&(re="fa5"),re){let pe=(0,ca.CQ)(_);if(!pe){const{result:{market_templates:Ce}}=await(0,wo.X)("&category="+mn.C);pe=Ce,u({type:"icon-select-popup:update:state",payload:{iconGroupData:pe}})}Y=pe.find(Ce=>{let{title:Pe}=Ce;return re==="if"?Rn.rJ.includes(Pe):Pe===Rn.jS[re]||Pe===re})}}O===gn.Z.navigationMenuSettingPanel&&V&&(u({type:"icon-select-popup:update:state",payload:{navigationIconResources:V}}),H=V),S===gn.Z.navigationMenuSettingPanel&&!Y&&H&&(Y=H),u({type:"icon-panel:update:state",payload:{iconSelectPopupCurrentIconResources:Y}}),u({type:"icon-select-popup:update:state",payload:{source:S}})},"entry:resources:update:current:popup:panel":async(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{name:f}}=P;const g=b(),S=(0,r.PL)(g),_=(0,mt.bP)(g);if(_==="old_right"&&f===Di.lS.Directory||(S.cid&&f&&(0,U.cH)("current_popup_panel_name_"+S.cid,f),u({type:"set:current:popup:panel",payload:{name:f}}),_==="old_right"))return;const O=J.Cj;f===Di.lS.Directory?u({type:"left-panel:set:width",payload:{width:(0,U.Yt)("layer_left_panel_width_"+S.cid,O,U.qW.Number),isNotSaveLocal:!0}}):u({type:"left-panel:set:width",payload:{width:O,isNotSaveLocal:!0}})},"entry:resources:goto:square":L=>{let{getState:P,dispatch:b}=L;const u=P(),f=(0,r.wA)(u);b({type:"exalt:panel:order",payload:{name:Di.lS.Builtin}}),b({type:"entry:resources:update:current:popup:panel",payload:{name:Di.lS.Builtin}}),b({type:"widget-panel:update:state",payload:{navIndex:f?3:2}})},"entry:resources:starred:icon_groups":async(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{resources:f}}=P;if(MB.global.experienceLoginModalHelper("isSave"))return;const g=b(),S=(0,ca.IR)(g),_=(0,ca.nn)(g),O=(0,ca.Bu)(g),{is_star:V,cid:H}=f;await(0,Tn.lU)(V,H);const Y={...f,is_star:!V},re=O.map(pe=>pe.cid===H?Y:pe);if(V){const pe=[Y].concat(S),Ce=_.filter(Pe=>Pe.cid!==H);u({type:"icon-panel:update:state",payload:{resources:re,unStarResources:pe,starResources:Ce}})}else{const pe=[Y].concat(_),Ce=S.filter(Pe=>Pe.cid!==H);u({type:"icon-panel:update:state",payload:{resources:re,starResources:pe,unStarResources:Ce}})}},"entry:resources:paid:success:goto:starred":async(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{cid:f,category:g}}=P;if(MB.global.experienceLoginModalHelper("isSave"))return;const S=b(),_=(0,y.ut)(S),O=(0,y.SE)(S);_?u({type:"entry:search-panel:clear:state"}):O&&u({type:"historyPanel:set:show",payload:{show:!1}});const V=g===mn.t_?Di.lS.Builtin:g===mn.Gd?Di.lS.Page:Di.lS.Icon;if(u({type:"exalt:panel:order",payload:{name:V}}),u({type:"entry:resources:update:current:popup:panel",payload:{name:V}}),g===mn.t_)u({type:"widget-panel:update:state",payload:{navIndex:1,currentStarResourcesCid:f}});else if(g===mn.Gd)u({type:"page-panel:update:state",payload:{navIndex:2,currentStarResourcesCid:f}});else if(g===mn.C){u({type:"icon-panel:update:state",payload:{navIndex:1}});const H=await(0,wo.Yk)(f);if(H){const{market_template:Y}=H;Y&&u({type:"icon-panel:update:state",payload:{currentIconResources:Y}})}}},"entry:resources:update:find:data":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{cid:f,category:g,updateData:S}}=P;const _=b(),O=(0,ca.AC)(_),V=(0,ca.Cd)(_),H=(0,ca.SQ)(_),Y=(0,ca.zS)(_),pe=S||(Ce=>({...Ce,is_purchased:!0,is_star:!0}));if(g===mn.t_){if(O.has(f)){const Ce=O.get(f).map(Pe=>({...Pe,marketTemplateSource:pe(Pe.marketTemplateSource)}));u({type:"resources:set:resources_marketTemplateItem_list_map",payload:{mtResourcesMtItemListMap:new Map([[f,Ce]])}})}}else if(g===mn.Gd&&V!=null&&V.size){const Ce=H?(0,Tn.Z_)(H,f,pe):null,Pe=Y?pe(Y):null,Ie=(0,Tn.Z1)(V,f,pe);u({type:"page-panel:update:state",payload:{libraryCurrentSquareTopic:Ce,libraryCurrentResources:Pe,libraryTopicListMap:Ie}})}},"entry:resource:open:assetPanel":(L,P)=>{let{dispatch:b,getState:u}=L,{payload:{isToFindPanel:f=!1}={}}=P;const g="asset";if(b({type:"historyPanel:set:show",payload:{show:!1}}),b({type:"searchPanel:set:show",payload:{show:!1}}),b({type:"exalt:panel:order",payload:{name:g}}),b({type:"entry:resources:update:current:popup:panel",payload:{name:g}}),f){const{is_org_project:S}=(0,r.PL)(u());b({type:"image-panel:update:state",payload:{navIndex:S?2:1}})}b({type:"searchPanel:update:state",payload:{type:Di.Mf[g]}}),b({type:"entry:set:default:left-side-panel-width"})},"entry:resources:init:marketTemplateItemList:map":async(L,P)=>{let{dispatch:b,getState:u}=L,{payload:{resourcesCids:f}}=P;const g=u(),S=(0,ca.AC)(g),_=(0,ca.fK)(g),V=Array.from(new Set(f)).filter(Ce=>!S.has(Ce));if(!V.length)return;const{marketTemplateItemListMap:H,marketTemplateListDataMap:Y}=await(0,Tn._4)(V);b({type:"resources:set:resources_marketTemplateItem_list_map",payload:{mtResourcesMtItemListMap:H}});const re=new Map;Y.forEach((Ce,Pe)=>{var Ie;let{projectMetaList:Re}=Ce;re.set(Pe,(Ie=Re[0])==null?void 0:Ie.cid)}),b({type:"entry:resources:set:mtSdkStore:map",payload:{mtResourceCidList:V,mtProjectMetaCidMap:re}});const pe=new Map(_);H.forEach((Ce,Pe)=>{var Ie;const Re=(Ie=Ce[0])==null?void 0:Ie.marketTemplateSource;Re&&pe.set(Pe,Re)}),b({type:"resources:set:resources_map",payload:{mtResourcesMap:pe}})},"entry:resources:set:mtSdkStore:map":async(L,P)=>{let{dispatch:b,getState:u}=L,{payload:{mtResourceCidList:f,mtProjectMetaCidMap:g}}=P;const S=u(),_=(0,y.fm)(S),V=Array.from(new Set(f)).filter(Y=>!_.has(Y)),H=new Map(_);await(0,Tn.jA)(H,V,g),b({type:"resources:set:resources_mtSdkStore_list_map",payload:{mtResourceSdkStoreMap:H}})},"entry:resources:set:pagePanel:find:update:data":async(L,P)=>{let{dispatch:b,getState:u}=L,{payload:f}=P;const g=u(),S=(0,r.PL)(g),_=(0,ca.E)(g),O=(0,ca.WG)(g),{scene_tag:V}=S,{platformType:H,platformSubType:Y,isReRequest:re}=f||{},pe=H||_;let Ce=Y||O||"recommend";b({type:"page-panel:update:state",payload:{findPlatformType:pe}}),S.cid&&pe&&(0,U.cH)(S.cid+"-platformType",pe),b({type:"page-panel:update:state",payload:{findPlatformSubType:Ce}}),b({type:"page-panel:update:map:state",payload:{key:"findPlatformSubTypeMap",value:new Map([[pe,Ce]])}}),b({type:"entry:resources:set:templatePanel:single:page:fetch:data"})},"entry:number:key":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:f}=P;const{key:g}=f,S=b(),_=(0,mt.bP)(S);if([6,7,8].includes(g))return;const O=(0,y.OW)(S),{isEditingBasket:V,isEditingMuban:H,isEditingCombo:Y}=(0,gt.r)(S),re=(0,r.HW)(S),pe=!!(re!=null&&re.id),Ce=Di.qB;if(g>Ce.length)return;const Pe=Ce[g-1];if(!(Pe===Di.lS.AI&&ENV.IS_ON_PREMISES)&&!(Pe===Di.lS.AI&&!pe)&&!(Pe===Di.lS.Asset&&MB.global.experienceLoginModalHelper("isSave"))&&!([Di.lS.Page,Di.lS.Template,Di.lS.AI].includes(Pe)&&Y)&&!([Di.lS.Page,Di.lS.AI].includes(Pe)&&(V||H))){if(Pe&&O!==Pe){_!=="old_right"&&u({type:"entry:toggle:left-nav-panel",payload:{isAlwaysShow:!0}}),u({type:"entry:active:popup:panel",payload:{name:Pe}});return}_!=="old_right"&&u({type:"entry:toggle:left-nav-panel"}),u({type:"entry:active:popup:panel",payload:{name:_==="old_right"?null:Pe}})}},"entry:directory:nav:key":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{key:f}}=P;const g=b(),S=(0,mt.bP)(g),_=(0,y.OW)(g),O=(0,y.AT)(g);if(f>2)return;const V=f-1;if(S==="old_right"||_===Di.lS.Directory){if(O!==V){u({type:"entry:toggle:left-nav-panel",payload:{isAlwaysShow:!0}}),u({type:"directory-panel:bottom:set:nav",payload:{nav:V}});return}u({type:"entry:toggle:left-nav-panel"})}else _!==Di.lS.Directory&&(u({type:"entry:toggle:left-nav-panel",payload:{isAlwaysShow:!0}}),u({type:"entry:active:popup:panel",payload:{name:Di.lS.Directory}}),u({type:"directory-panel:bottom:set:nav",payload:{nav:V}}))},"entry:resources:escape:quickCreateWidget":L=>{let{getState:P,dispatch:b}=L;const u=P(),f=(0,Wt.sI)(u),g=(0,vn.Q1)(u);(0,It.Ro)(u)?b({type:"entry:hand-tool:disable",payload:{triggerMethod:"click"}}):g?b({type:"elbow:update",payload:{isInElbowMode:!1}}):f&&b({type:"entry:comment:create:esc"}),b(o.GO.toggleInspectMode(!1)),b(o.GO.toggleHandMode(!1)),b({type:"entry:pencil:vector:exit:edit"}),b({type:"set:quick-create-widget",payload:{widget:null}}),b({type:"entry:ST:STMode:disable"})},"entry:resources:escape:template":L=>{let{getState:P,dispatch:b}=L;const u=P(),f=(0,Wt.sI)(u),g=(0,vn.Q1)(u);(0,It.Ro)(u)?b({type:"entry:hand-tool:disable",payload:{triggerMethod:"click"}}):g?b({type:"elbow:update",payload:{isInElbowMode:!1}}):f&&b({type:"entry:comment:create:esc"}),b(o.GO.toggleInspectMode(!1)),b(o.GO.toggleHandMode(!1)),b({type:"entry:pencil:vector:exit:edit"}),b({type:"set:quick-create-widget",payload:{widget:null}}),b({type:"entry:ST:STMode:disable"}),b({type:"update:screenContainer:state",payload:{createTemplatesData:null}})},"entry:resources:quick:create:template":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{data:f}}=P;const g=b(),S=(0,r.YY)(g);u({type:"entry:resources:escape:quickCreateWidget"});const _=x0(S),O=x0(f);if(S&&f&&_&&O){if(_.type===N.x.WIcon&&O.type===N.x.WIcon){if(_._icon_id===O._icon_id){u({type:"update:screenContainer:state",payload:{createTemplatesData:null}});return}}else if(_.type===N.x.WImage&&O.type===N.x.WImage){var V,H;if((_==null||(V=_.image)==null?void 0:V.imageRef)===(O==null||(H=O.image)==null?void 0:H.imageRef)){u({type:"update:screenContainer:state",payload:{createTemplatesData:null}});return}}else if((_==null?void 0:_.key)===(O==null?void 0:O.key)){u({type:"update:screenContainer:state",payload:{createTemplatesData:null}});return}}u({type:"update:screenContainer:state",payload:{createTemplatesData:f}})}},...nr,...bo,...Vi,...Ul},zc={...Tt,...hc},m2={"entry:toggle:right-panel":L=>{let{getState:P,dispatch:b}=L;const u=P(),f=(0,It.T7)(u);b({type:"right-side-panel:collapse:panel",payload:{isMemorize:!f}}),b({type:"entry:observe:dom:size:update-viewport-rect"})}};var Wc=s(81973);const Tu={...m2,...{"entry:STPanel:fit-viewport":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{STKey:f}}=P;const g=b(),S=(0,r.X_)(g),_=(0,r.ER)(g),O=(0,r.$S)(g),V=sdkStore.getHotAABB(f),[H,Y,re,pe]=V,Ce={scale:S/100,size:{w:O.width,h:O.height},offset:_};if((0,ta._W)(Ce,O.left,V))return;const Ie=H,Re=Y,We=re-H,ct=pe-Y,vt=S/100,Ut=(-We/2-Ie)*vt,pn=(-ct/2-Re)*vt;u({type:"design:set:canvas:offset",payload:{offset:{x:Ut,y:pn}}})},"entry:STPanel:update:expandKeySet":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{key:f}}=P;const g=b(),S=(0,Wc.zM)(g),_=new Set(S);_.has(f)?_.delete(f):_.add(f),u({type:"STPanel:toggle:expandKeySet",payload:{expandKeySet:_}})},"entry:STPanel:toggle:all:expandKeySet":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{isExpandAll:f,stickyList:g}}=P;const S=b(),_=(0,Wc.ju)(S),O=f?[]:g.map(V=>{let{key:H}=V;return H}).filter(V=>!_.has(V));u({type:"STPanel:toggle:expandKeySet",payload:{expandKeySet:new Set(O)}})}}};var Pu=s(75862),F1=s(58053),al=s(97529),el=s(34394),Cp=s(85131),Lu=s(24437),U0=s(37342),f2=s(64580),Sp=s(94590),g2=s(76863),V1=s(31222),Td=s(93157),cc=s(47266);const La={"entry:toolbar:open:versionControl:modal":L=>{let{getState:P,dispatch:b}=L;const u=P(),f=(0,Wc.UI)(u),g=(0,Wc.vr)(u);f||b({type:"entry:toggle:right-panel"}),b({type:"versions:update",payload:{isVersionManagementPaneShow:!g}})},"entry:toolbar:open:export_menu":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:f}=P;const g=b(),S=(0,Pu.bc)(g);if(!((0,al.Lm)(f==null?void 0:f.open)?f.open:!S)){u({type:"export:update:state",payload:{isExportMenuShow:!1,progress:0}});return}if(!(0,cc.v)()){u({type:"modal:update:state",payload:{mktWMExportModal:{isOpen:!0,onExport:()=>{u({type:"export:update:state",payload:{isExportMenuShow:!0}})}}}}),Eo.U4.watermarkExposureTrack("export");return}u({type:"export:update:state",payload:{isExportMenuShow:!0,progress:0}})},"entry:toolbar:restore:leftrightpane":L=>{let{dispatch:P}=L;const b=(0,U.Yt)((0,xo.OB)()?g2.me:g2.KP,!0,U.qW.Boolean);P({type:"right-side-panel:collapse:panel",payload:{show:b}});const u=(0,U.Yt)((0,xo.OB)()?V1.lS:V1.jm,!0,U.qW.Boolean);P({type:"left-panel:collapse:panel:show",payload:{show:u}})},"entry:toolbar:toggle:fullScreen":async L=>{let{dispatch:P}=L;F1.A.isFullscreen?(await F1.A.exit(),P({type:"entry:update:mode:viewType"}),P({type:"entry:toolbar:restore:leftrightpane"})):(await F1.A.request(),P(o.GO.setOnlyViewMode()),P({type:"right-side-panel:collapse:panel",payload:{show:!1,isMemorize:!1}}),P({type:"left-panel:collapse:panel:show",payload:{show:!1,isMemorize:!1}})),P(o.GO.toggleFullScreenMode()),P(o.GO.toggleHandMode()),setTimeout(()=>{P({type:"entry:update:viewport:rect"})},200)},"entry:toolbar:toggle:handTool":L=>{let{dispatch:P}=L;P({type:"entry:hand-tool:toggle"}),P(o.GO.toggleInspectMode(!1)),P({type:"entry:comment:disabled",payload:{noWigglingCommentCid:!0}}),P({type:"entry:ST:STMode:disable"}),P({type:"elbow:update",payload:{isInElbowMode:!1}})},"entry:open:Launch":(L,P)=>{var b,u;let{getState:f,dispatch:g}=L,{payload:S}=P;if(MB.global.experienceLoginModalHelper("isSave"))return;const _=f(),O=(0,y.Hs)(_),V=(0,De.nE)(_),{isFromAbar:H}=(0,r.fv)(_)||{},Y=(0,r.eo)(_),re=(0,It.rg)(_),pe=(0,It.uu)(_),Ce=(0,r.PL)(_),{isDesign:Pe}=(0,r.W4)(_)||{},{isEditingCombo:Ie}=(0,gt.r)(_)||{},Re=Ie&&Pe,ct=(0,It.jx)(_)===o.qi.OnlyView,vt=(0,r.z$)(_);if(pe||g({type:"entry:start:saving"}),Re){g({type:"entry:preview:combo"});return}const Ut=V.filter(Do=>Do.hotAttr.type===el.x.Canvas),pn=(S==null?void 0:S.activePageKey)||Y||O[0],fn=(S==null?void 0:S.activeCanvasKey)||((b=(u=Ut[Ut.length-1])==null?void 0:u.key)!=null?b:(0,Cp.XV)(pn)),uo=new URLSearchParams(location.search).get("selection"),Mn=(0,xo.St)()?re?"launch":"sharing":"",Gt=(vt==null?void 0:vt.access_token)||Ce.access_token,yo=(0,Lu.s_)({isHtmlZipPreview:pe,isEmbedV2Preview:re,accessToken:Gt,pageId:pn,canvasId:fn,selection:uo,from:Mn});re?(0,U0.JW)(yo,"_self"):(H&&!ct?(0,Rs.sg)(Rs.ZW.enterPreview,{link:yo}):(0,U0.JW)(yo,"_blank","noreferrer"),g({type:"entry:update:novice:guide:and:task",payload:{guideType:C.c.GUIDE_NOVICE_2309_STEP_4,taskType:C.c.GUIDE_NOVICE_2309_TASK_4}})),(0,Td.bO)({currentProject:Ce,preview_type:(S==null?void 0:S.preview_type)||null,source:(S==null?void 0:S.source)||"\u7F16\u8F91\u533A"}),ct?(0,f2.A)({operation_type:f2.D.Device}):(0,Sp.kX)({operation_type:Sp.mV.Device})}};var bl=s(43838),Ps=s(7018),Vr=s(86594);const Ca={"entry:contextmenu:withtype":async(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{position:f,type:g}}=P;const S=b(),_=(0,De.nE)(S);let O=!1,V=!1;if(g==="text")if(await(0,bl.$H)({hasNotice:!1})){const H=await(0,Vr.LD)({isShowPrompt:!1});H!=null&&H.html&&(O=!0)}else{const H=await(0,bl.oV)({itemType:"text/plain"}),Y=await(0,bl.Tq)(),re=await(0,bl.EU)("widget");(re!=null&&re.html||Y||H)&&(O=!0)}else await(0,bl.$H)({hasNotice:!1})?O=!!await(0,Vr.LD)({isShowPrompt:!1}):O=!!await(0,Vr.LD)({isShowPrompt:!1})||await(0,bl.Xy)(),V=(await(0,Vr.FR)(_)).canPaste;u({type:"open:contextmenu",payload:{position:f,canPaste:O,canPasteProperties:V}})},"copy:as:html":async L=>{let{getState:P,dispatch:b}=L;const u=P(),f=(0,De.nE)(u),{injection:g}=f[0].hotAttr,S=(0,Ps.f)(g);try{await(0,bl.ZC)(S),MB.notice({text:"\u4EE3\u7801\u590D\u5236\u6210\u529F",type:"success"})}catch(_){MB.notice({text:"\u4EE3\u7801\u590D\u5236\u5931\u8D25",type:"error"})}}};var rl=s(67934),Ws=s(83535);const Uh={"entry:update:linkNodeList":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:f}=P;const g=b(),S=(0,rl.$_)(g),{isEditingCombo:_}=(0,gt.r)(g),O=[...S],H=(0,mt.Jv)(g)===2;(0,Ws.uG)({linkNodeList:O,widget:f,isShowAllLinks:H,isSet:!0,isEditingCombo:_})&&u({type:"links:update:link-node-list",payload:{linkNodeList:O}})},"entry:remove:linkNodeList":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:f}=P;const{link:g}=f,S=b(),_=(0,rl.$_)(S),O=(0,dr.Op)(_,V=>V.key===g.key);u({type:"links:update:link-node-list",payload:{linkNodeList:O}})}},Nu={...{"entry:observe:dom:size:update-viewport-rect":L=>{let{dispatch:P}=L;const b=document.querySelector(".mb-viewport");if(!b)return;const u=new ResizeObserver(function(f){P({type:"entry:update:viewport:rect"}),u.disconnect()});u.observe(b)}},...Ga,...ai.Q,...fa,...ci,...Wl,...zc,...Tu,...La,...Ca,...Uh};var z1=s(80730),s1=s(49899),Pd=s(55109),Yd=s(65710),Sl=s(77337),Lc=s(78998),Fs=s(73658),dd=s(74302),l1=s(16966),il=s(74222);const dc=L=>{let{trackParams:P,start:b,success:u}=L;const f=performance.now(),g=Math.ceil((f-b)/1e3);(0,ft.kH)("download_project",{...P,is_download_success:u,download_time:g}),dn.Y4.editProjectNew("\u4E0B\u8F7D\u9879\u76EE")};var Il=s(87612),Jl=s(26812),y2=s(96737),x2=s(94529),v2=s(41011),Ap=s(36397),pd=s(547),O0=s(14002);const ud=L=>{var P;if(!(0,Oe.OO)(L))return!1;const b=(0,Oe.QL)(L)[0],u=sdkStore.getHotItem(b);return(u==null||(P=u.hotAttr)==null?void 0:P.basket)!=="bMuban"},Ac=L=>{var P;if(!isShadowKey(L))return!1;const b=fromShadowKey(L)[0],u=sdkStore.getHotItem(b);return(u==null||(P=u.hotAttr)==null?void 0:P.basket)==="bMuban"};var hd=s(88856),md=s(95549),ju=s(28894);class W1{constructor(P){P===void 0&&(P=""),(0,md.A)(this,"files",{}),(0,md.A)(this,"prefix",""),this.prefix=P}async file(P,b){const u=this.prefix?this.prefix+"/"+P:P;let f;b instanceof File||b instanceof Blob?f=new Uint8Array(await b.arrayBuffer()):f=b,this.files[u]=f}folder(P){const b=this.prefix?this.prefix+"/"+P:P,u=new W1(b);return u.files=this.files,u}async generateAsync(){const{zip:P}=await ju.QN.loadLLG(),b=await new Promise((u,f)=>{P(this.files,(g,S)=>{g?f(g):S?u(S):f(new Error("Failed to create zip"))})});return new Blob([new Uint8Array(b)],{type:"application/zip"})}getFiles(){return this.files}}const Du=(L,P,b)=>{const u={source:"\u5DE5\u4F5C\u533A",project_type:"\u539F\u578B V8",project_name:P.name,project_cid:P.cid,download_source:(0,xo.OB)()?"\u7F16\u8F91\u533A\u53F3\u4FA7\u5E95\u90E8\u5BFC\u51FA":b?"\u6807\u6CE8\u6A21\u5F0F\u53F3\u4FA7\u5E95\u90E8\u5BFC\u51FA":"\u603B\u89C8\u6A21\u5F0F\u53F3\u4FA7\u5E95\u90E8\u5BFC\u51FA"},f=L.map(S=>{let{format:_,scale:O,isWithDeviceFrame:V}=S;const H={...u,download_type:_,export_image_times:O+"x",include_device_frame:V?1:0};return _==="png"&&(H.download_page_type="\u5F53\u524D\u9875"),{trackParams:H,start:performance.now()}});return S=>{f.forEach(_=>{let{trackParams:O,start:V}=_;return dc({trackParams:O,start:V,success:S})})}},Vh={...{"entry:export:item":async(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{exportConfigList:f}}=P;u({type:"export:update:state",payload:{isWidgetBeingExported:!0,pdfDimensionExceeded:!1,canvasDimensionExceeded:!1}});const g=b(),S=(0,r.PL)(g),_=(0,It._b)(g),O=S.name,V=(0,Lc.XB)((0,r.HW)(g),(0,r.wA)(g),(0,r.PL)(g));let H=(0,De.p$)(g);H.length===0&&((0,$t.Lc)(g)||(0,Wt.sI)(g)||(0,It.jx)(g)===o.qi.OnlyView)&&(H=(0,Fs.UR)((0,r.Ur)(g).cid).map(pe=>pe.key));const Y=[];for(const pe of H)for(const Ce of f)Y.push({...Ce,hasWatermark:V,itemKey:pe});const re=Du(f,S,_);await(0,Sl.WE)(Y,O,(pe,Ce)=>(0,Sl.oB)(pe,u,Ce),re),u({type:"export:update:state",payload:{isWidgetBeingExported:!1}})},"copy:as:png":async(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{exportConfigList:f}}=P;if(await(0,bl.AU)())return;u({type:"export:update:state",payload:{pdfDimensionExceeded:!1,canvasDimensionExceeded:!1}});const g=b(),S=(0,r.PL)(g),_=(0,r.HW)(g),O=(0,r.wA)(g),V=(0,Lc.XB)(_,O,S);MB.notice({text:I18N.ContextMenu.copy_png_ing,type:"loading"});const H=(0,De.p$)(g),Y=(0,kn.F1)();for(const Ut of H){const pn=sdkStore.getHotItem(Ut);switch((0,kn.il)(Y,(0,Ap.Gq)(sdkStore,Ut,!1,"hot")),pn.hotAttr.type){case"rResCanvas":{if(pn.hotAttr.isClipContent)continue;for(const fn of pn.sub)(0,Ap.Gq)(sdkStore,fn,!1,"hot");break}}}const re=(0,il.gO)("",9,10,10,"",0,0,""),pe={key:(0,tt.cF)("rbp"),hotAttr:re,sup:il.$k,sub:[]},Ce=(0,l1.Nc)("asdf");Ce.w=Y[2]-Y[0],Ce.h=Y[3]-Y[1],Ce.x=Y[0]+Ce.w/2,Ce.y=Y[1]+Ce.h/2,Ce.fill.fillIsVisible=!1,Ce.isClipContent=!1;const Pe={key:(0,tt.cF)("rc"),hotAttr:Ce,sup:pe.key,sub:[]},Ie=(0,y2.aw)((0,x2.b8)(),(0,v2.aF)({})),Re=(0,Jl.uq)(Ie);Re.updateHotItem(pe),Re.updateHotItem(Pe);const We=sdkStore.saveSubtree(H);(0,me.Td)({data:We,worldPos:{x:Pe.hotAttr.x-Pe.hotAttr.w/2,y:Pe.hotAttr.y-Pe.hotAttr.h/2},keyRndSup:Pe.key,commonKeyRndSup:"",currentPageKey:pe.key,store:Re,keepSup:!0});const ct=f[0],vt=(0,Sl.gD)({itemKey:Pe.key,pseudoSdkStore:Re,...ct,hasWatermark:V,isExportSticky:!0});try{try{vt.validateIE(ct.format)}catch(pn){if((0,Sl.oB)(pn,u,{exportLen:f.length,downloadType:"item"})!=="continue")return}const Ut=await vt.toIE(ct.format);await navigator.clipboard.write([new ClipboardItem({[Ut.type]:Ut})]),MB.notice({text:I18N.ContextMenu.copy_png_success,type:"success"})}catch(Ut){if(Ut.name==="NotAllowedError")return;MB.notice({text:I18N.ContextMenu.copy_png_faild_common,type:"error"}),(0,Ze.Cp)(Ut)}},"copy:as:png:thumbnail":async L=>{let{getState:P,dispatch:b}=L;const u=P(),{screenTreeData:f}=(0,Ts.tb)("B@main"),g=(0,Lr.uS)(f),S=(0,r.Ur)(u);if(g!==(S==null?void 0:S.cid))return;const _=(0,r.X_)(u),O=(0,r.ER)(u),V=(0,r.$S)(u),H=(0,I.UV)(u),Y=(0,r.PL)(u),{left:re,top:pe,width:Ce,height:Pe}=V,Ie={clientX:re,clientY:pe},Re={clientX:re+Ce,clientY:pe+Pe},We=(0,bt.mG)(Ie,{scale:_,offset:O,viewportRect:V}),ct=(0,bt.mG)(Re,{scale:_,offset:O,viewportRect:V}),vt={startX:re,startY:0,endX:re+Ce,endY:Pe},Ut=(0,pd.vI)(vt,_)||vt,pn=(0,pd.rn)(Ut),fn={x:pn.left,y:pn.top,w:pn.width,h:pn.height},Mn=(0,O0.I)(H,fn,!1,!1,_).filter(vi=>!(sdkStore.isTrashed(vi)||ud(vi))),Gt=(ct.y-We.y)*1.48,yo=(ct.x+We.x)/2,Do=yo-Gt*.5,Wo=yo+Gt*.5,Ro=(0,kn.il)((0,kn.F1)(),[Do,We.y,Wo,ct.y]),ra=(0,kn.F1)();for(const vi of Mn)(0,kn.il)(ra,(0,Ap.Gq)(sdkStore,vi,!1,"hot"));const ka=(0,il.gO)("",9,10,10,"",0,0,""),pa={key:(0,tt.cF)("rbp"),hotAttr:ka,sup:il.$k,sub:[]},Ma=(0,l1.Nc)("asdf");Ma.fill.solidColor=4109694463,Ma.w=Ro[2]-Ro[0],Ma.h=Ro[3]-Ro[1],Ma.x=Ro[0]+Ma.w/2,Ma.y=Ro[1]+Ma.h/2,Ma.isClipContent=!1;const Ya={key:(0,tt.cF)("rc"),hotAttr:Ma,sup:pa.key,sub:[]},di=(0,y2.aw)((0,x2.b8)(),(0,v2.aF)({})),ja=(0,Jl.uq)(di);ja.updateHotItem(pa),ja.updateHotItem(Ya);const ri=sdkStore.saveSubtree(Mn);(0,me.Td)({data:ri,worldPos:{x:ra[0],y:ra[1]},keyRndSup:Ya.key,commonKeyRndSup:"",currentPageKey:pa.key,store:ja,keepSup:!0});const ks={format:"png",scale:_/150,affix:"suffix",isWithDeviceFrame:!1},ti=(0,Sl.gD)({itemKey:Ya.key,pseudoSdkStore:ja,...ks,hasWatermark:!1,isExportSticky:!0,isIncludeCanvasName:!1});try{ti.validateIE(ks.format);const vi=await ti.toIE(ks.format),Hr=await(0,z1.G6)(vi);await(0,W.Ip)(Y.cid,{cover:Hr})}catch(vi){console.error("err",vi)}ti.destory()},"entry:export:page":async(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{pageToExportKeyList:f,scale:g,isWithDeviceFrame:S,format:_,isExportSticky:O=!1,downloadPageType:V,isIncludeCanvasName:H=!1,trackParams:Y}}=P;const re=_,pe=performance.now();u({type:"export:update:state",payload:{pdfDimensionExceeded:!1,canvasDimensionExceeded:!1}});const Ce=b(),Pe=(0,r.PL)(Ce),Ie=(0,r.HW)(Ce),Re=(0,r.wA)(Ce),We=Pe.name,ct=(0,Lc.XB)(Ie,Re,Pe);S=V===dd.y5.CANVAS?!1:S,H=V===dd.y5.PAGE?!1:H;const vt=[];for(const uo of f){const Mn=(0,Sl.QV)({pageKey:uo,downloadPageType:V,scale:g,hasWatermark:ct,isWithDeviceFrame:S,isExportSticky:O,isIncludeCanvasName:H});try{Mn.validatePE(re),vt.push(Mn)}catch(Gt){const yo=(0,Sl.oB)(Gt,u,{exportLen:f.length,downloadType:"page"});if(yo==="stop"){(0,Il.p)("export-"+re+"-failed",Gt),dc({trackParams:Y,start:pe,success:!1});return}if(yo==="skip")continue;vt.push(Mn)}}if(vt.length===0){const uo=V===dd.y5.CANVAS?new Sl.hk:new Sl.ll;if((0,Sl.oB)(uo,u,{exportLen:f.length,downloadType:"page"})==="stop"){(0,Il.p)("export-"+re+"-failed",uo),dc({trackParams:Y,start:pe,success:!1});return}}u({type:"export:update:state",payload:{type:re,loading:!0,progress:0}}),setTimeout(()=>{!ENV.IS_MO&&MB.notice({text:""+I18N.ExportManager.export_downloading_tips,type:"info",CustomChildComponent:(0,hd.eY)(I18N.Common.view),duration:5e3})},2e3);let Ut,pn;const fn=(0,Lc.K4)(uo=>u({type:"export:update:state",payload:{progress:uo}})).splitTo(vt.length);if(vt.length===1)try{const uo=fn[0],Mn=vt[0];Ut=await(re==="png"?Mn.toPngZipFilePE(re,uo):Mn.toPdfFilePE(re,uo)),pn=Ut.name,(0,s1.saveAs)(Ut,pn),dc({trackParams:Y,start:pe,success:!0})}catch(uo){if((0,Sl.oB)(uo,u,{exportLen:vt.length,downloadType:"page"})==="stop"){(0,Il.p)("export-"+re+"-failed",uo),dc({trackParams:Y,start:pe,success:!1});return}}else{const uo=new W1,Mn=new Map;try{const Gt=vt.map((yo,Do)=>async()=>{var Wo;const Ro=fn[Do],ra=(Wo=Mn.get(yo.name))!=null?Wo:0,ka=Do+" "+(ra>0?yo.name+" ("+(ra+1)+")":yo.name);Mn.set(yo.name,ra+1);const pa=uo.folder(ka);if(re==="png"){const Ma=await yo.toPngFilesPE("png-unzip",Ro);for(const Ya of Ma)await pa.file(""+Ya.name,Ya)}else{const Ma=await yo.toPdfFilePE(re,Ro);await pa.file(Do+" "+Ma.name,Ma)}});for(const yo of Gt)await yo()}catch(Gt){if((0,Sl.oB)(Gt,u,{exportLen:vt.length,downloadType:"page"})==="stop"){(0,Il.p)("export-"+re+"-failed",Gt),dc({trackParams:Y,start:pe,success:!1});return}}(0,Lc.vb)(uo.getFiles()),Ut=await uo.generateAsync(),pn=We+".zip",(0,s1.saveAs)(Ut,pn),dc({trackParams:Y,start:pe,success:!0})}u({type:"export:update:state",payload:{type:re,loading:!1,progress:100,downloadable:Ut,downloadFileName:pn}})},"entry:export:all:page":async(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{scale:f,isWithDeviceFrame:g,format:S,isExportSticky:_,downloadPageType:O,isIncludeCanvasName:V,trackParams:H}}=P;const Y=S,re=performance.now();u({type:"export:update:state",payload:{pdfDimensionExceeded:!1,canvasDimensionExceeded:!1}});const pe=b(),Ce=(0,r.PL)(pe),Pe=(0,r.HW)(pe),Ie=(0,r.wA)(pe),Re=Ce==null?void 0:Ce.name,We=(0,Lc.XB)(Pe,Ie,Ce);g=O===dd.y5.CANVAS?!1:g,V=O===dd.y5.PAGE?!1:V;const ct=sdkStore.findAllTypeUnder("B@main","rResBunch"),vt={};for(const{key:Gt,hotAttr:yo}of ct){if(yo.bunch!=="rbPage"||yo.asFolder)continue;const Do=(0,Sl.QV)({pageKey:Gt,downloadPageType:O,scale:f,hasWatermark:We,isWithDeviceFrame:g,isExportSticky:_,isIncludeCanvasName:V});try{Do.validatePE(Y),vt[Gt]=Do}catch(Wo){const Ro=(0,Sl.oB)(Wo,u,{exportLen:ct.length,downloadType:"page"});if(Ro==="stop"){(0,Il.p)("export-"+Y+"-failed",Wo),dc({trackParams:H,start:re,success:!1});return}if(Ro==="skip")continue;vt[Gt]=Do}}if(Object.values(vt).length===0){const Gt=O===dd.y5.CANVAS?new Sl.hk:new Sl.ll;if((0,Sl.oB)(Gt,u,{exportLen:ct.length,downloadType:"page"})==="stop"){(0,Il.p)("export-"+Y+"-failed",Gt),dc({trackParams:H,start:re,success:!1});return}}u({type:"export:update:state",payload:{type:Y,loading:!0,progress:0}}),setTimeout(()=>{!ENV.IS_MO&&MB.notice({text:""+I18N.ExportManager.export_downloading_tips,type:"info",CustomChildComponent:(0,hd.eY)(I18N.Common.view),duration:5e3})},2e3);const Ut=new Map,pn=async(Gt,yo,Do)=>{const Wo=sdkStore.getSubHotItemList(yo).sort((ka,pa)=>ka.hotAttr.zIndex-pa.hotAttr.zIndex).filter(ka=>ka.hotAttr.bunch==="rbPage"),Ro=Do.splitTo(Wo.length),ra=Wo.map((ka,pa)=>async()=>{const Ma=Ro[pa],Ya=ka.hotAttr;if(Ya.asFolder){const ja=Gt.folder(pa+" "+Ya.name);await pn(ja,ka.key,Ma)}else{var di;const ja=vt[ka.key];if(!ja){Ma.advanceRR(1);return}const ri=(di=Ut.get(ja.name))!=null?di:0,ks=pa+" "+(ri>0?ja.name+" ("+(ri+1)+")":ja.name);Ut.set(ja.name,ri+1);const ti=Gt.folder(ks),[vi,Hr]=Ma.divideAt(1/(1+sdkStore.getSubHotItemList(ka.key).filter(Yr=>Yr.hotAttr.bunch==="rbPage").length));if(Y==="png"){const Yr=await ja.toPngFilesPE("png-unzip",vi);for(const br of Yr)await ti.file(""+br.name,br)}else{const Yr=await ja.toPdfFilePE(Y,vi);await ti.file(pa+" "+Yr.name,Yr)}return pn(ti,ka.key,Hr)}});for(const ka of ra)await ka()},fn=new W1;try{await pn(fn,"B@main",(0,Lc.K4)(Gt=>u({type:"export:update:state",payload:{progress:Gt}})))}catch(Gt){if((0,Sl.oB)(Gt,u,{exportLen:ct.length,downloadType:"page"})==="stop"){(0,Il.p)("export-"+Y+"-failed",Gt),dc({trackParams:H,start:re,success:!1});return}}(0,Lc.vb)(fn.getFiles());const uo=await fn.generateAsync(),Mn=Re+".zip";(0,s1.saveAs)(uo,Mn),dc({trackParams:H,start:re,success:!0}),u({type:"export:update:state",payload:{type:Y,loading:!1,progress:100,downloadable:uo,downloadFileName:Mn}})},"entry:download:project":async(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{type:f="htmlzip",trackParams:g}}=P;const S=performance.now(),_=b(),O=(0,r.PL)(_),V=(0,r.YT)(_),{name:H}=O;u({type:"export:update:state",payload:{type:f,loading:!0,progress:0}});try{if(f===dd.xk.APK){if(!(V!=null&&V.cid))return;const{flcchTimeB36:Y}=await(0,Pd.r_)({flpakKey:V==null?void 0:V.cid}),re=location.origin+"/flatkiq/apk/download?fKey="+(V==null?void 0:V.cid)+"&fTim="+Y,pe=""+H+Yd.Wq[f].postfix;(0,Lc.Q)(re,pe),u({type:"export:update:state",payload:{downloadable:re,downloadFileName:pe,loading:!1,progress:100}}),dc({trackParams:g,start:S,success:!0})}else if(f===dd.xk.HTMLZIP){const{flcchTimeB36:Y}=await(0,Pd.wr)({flpakKey:V==null?void 0:V.cid}),re=location.origin+"/flatkiq/htmlzip/download?fKey="+(V==null?void 0:V.cid)+"&fTim="+Y,pe=""+H+Yd.Wq[f].postfix;(0,Lc.Q)(re,pe),u({type:"export:update:state",payload:{downloadable:re,downloadFileName:"",loading:!1,progress:100}}),dc({trackParams:g,start:S,success:!0})}else if(f===dd.xk.SOURCE_FILE){const{key:Y}=await(0,Pd.ax)({flpakKey:V==null?void 0:V.cid}),re="/go/v1/mdrp/download?key="+Y,pe=""+H+Yd.Wq[f].postfix;(0,Lc.Q)(re,pe),u({type:"export:update:state",payload:{downloadable:re,downloadFileName:"",loading:!1,progress:100}}),dc({trackParams:g,start:S,success:!0})}!ENV.IS_MO&&MB.notice({text:""+I18N.ExportManager.export_downloading_tips,type:"info",CustomChildComponent:(0,hd.eY)(I18N.Common.view),duration:5e3})}catch(Y){Y.status===413?(u({type:"modal:update:state",payload:{flpakSizeWarnModal:{isOpen:!0}}}),u({type:"export:update:state",payload:{loading:!1}})):MB.global.popupHelper.alertAsync({title:"\u79BB\u7EBF\u6F14\u793A\u5305\u4E0B\u8F7D\u5931\u8D25"}),(0,Il.p)("export-"+f+"-failed",Y),dc({trackParams:g,start:S,success:!1})}}}};var Ld=s(50060);const $c={"entry:refresh:combo:status":L=>{let{dispatch:P,getState:b}=L;P({type:"entry:exit:edit:basket"});const u=b(),{isEditingCombo:f}=(0,gt.r)(u);f&&P({type:"entry:exit:combo"})},"entry:edit:combo":(L,P)=>{let{dispatch:b,getState:u}=L,{payload:{isOrg:f,combo:g}}=P;b({type:"modal:reset:preview:modal:state"}),b({type:"update:screenContainer:state",payload:{createTemplatesData:null}}),setTimeout(()=>{b({type:"screen:update:state",payload:{isMultiplePage:!1}}),b({type:"entry:refresh:combo:status"}),b({type:"set:quick-create-widget",payload:{widget:null}});const S=u(),_=(0,r.Ur)(S),O=(0,mt.bP)(S),V=(0,r.F2)(S),H=(0,r._x)(S);b(o.GO.hoverItem("")),b({type:"entry:clear:selection"}),b({type:"current:update:state",payload:{editingComboPageKey:_.cid}}),b(f?o.GO.toggleEditingOrgComboMode(!0):o.GO.toggleEditingUserComboMode(!0)),b({type:"widget-panel:update:state",payload:{navIndex:0}});const Y=f?orgSdk:userSdk;Object.assign(globalThis,{...Y});const re=f?{...H,name:I18N.SettingPanel.team_widgets}:{...V,name:I18N.SettingPanel.my_widgets},pe=re.attr instanceof Object?re:Object.assign(re,{attr:{}}),Ce=f?{cid:H.project_meta_cid}:{cid:V.project_meta_cid},{screenTreeData:Pe,screenTreeMap:Ie,screenDataMap:Re}=(0,Ts.tb)("B@main");(0,Ld.sk)(!0),b({type:"current:update:state",payload:{comboCurrentProject:pe,comboCurrentProjectMeta:Ce}}),b({type:"screen:set:all:screen-data",payload:{screenTreeData:Pe,screenTreeMap:Ie,screenDataMap:Re}}),b({type:"entry:activate:screen",payload:{screenCid:g.key}}),b({type:"entry:init:design:scale"}),b({type:"settings:set:activeIndex",payload:{activeIndex:0}}),b({type:"entry:resources:update:current:popup:panel",payload:{name:O==="old_right"?Di.lS.Builtin:Di.lS.Directory}}),b({type:"entry:update:trash:page"}),b({type:"entry:comment:disabled"}),b({type:fe.y.entryKey["font:cloudFontList:init"],payload:{needUpdateMissFont:!0}}),setTimeout(()=>{b({type:"entry:update:viewport:rect"})},200)}),f&&dn.Y4.trackLibraryMaterialOperation({materialType:"\u7EC4\u4EF6",materialOperation:"\u7F16\u8F91"})},"entry:exit:combo":L=>{let{dispatch:P,getState:b}=L;P({type:"modal:reset:preview:modal:state"}),setTimeout(()=>{P(o.GO.hoverItem("")),P({type:"entry:clear:selection"}),P({type:"entry:exit:edit:basket"});const u=b(),f=(0,r.vD)(u),g=(0,r.PL)(u),S=(0,r.YT)(u),{isEditingUserCombo:_}=(0,gt.r)(u);P(_?o.GO.toggleEditingUserComboMode(!1):o.GO.toggleEditingOrgComboMode(!1)),Object.assign(globalThis,{...rootSdk}),(0,Ld.sk)(),P({type:"entry:activate:root-project",payload:{projectBasic:g,projectMeta:S,screenCid:f}}),P(_?{type:"entry:load:user:combo:group:list"}:{type:"entry:load:org:combo:group:list"}),P({type:"entry:resources:update:current:popup:panel",payload:{name:Di.lS.Builtin}}),P({type:"widget-panel:update:state",payload:{navIndex:_?1:2}}),P({type:fe.y.entryKey["font:cloudFontList:init"],payload:{needUpdateMissFont:!0}}),setTimeout(()=>{P({type:"entry:update:viewport:rect"})},200)})}};var b0=s(60399);const H1={"entry:undo-stack:screen":L=>{let{getState:P,dispatch:b}=L;const u=P(),f=(0,r.Ur)(u);!f||!sdkStore.isTrashed(f.cid)||(b({type:"entry:clear:selection"}),b({type:"current:update:state",payload:{currentScreen:null}}))},"entry:update:root-project:name":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{name:f}}=P;const g=b(),S=(0,r.PL)(g);if((S==null?void 0:S.name)!==f){if(f.trim().length===0){MB.notice({text:I18N.ToolBar.empty_project_name,type:"warning"});return}u({type:"entry:update:root-project:attr",payload:{attr:"name",value:f}}),(0,Rs.sg)(Rs.ZW.projectNameChange,{name:f}),document.title=""+(0,go.qk)(f),MB.notice({text:I18N.ToolBar.project_updated})}},"entry:update:root-project:attr":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{attr:f,value:g}}=P;const S=b();let _=(0,r.PL)(S);_[f]=g,_=(0,b0.n)(_),(0,W.Yu)(_.cid,{[f]:g}),u({type:"current:update:state",payload:{currentProject:_}})},"entry:update:root-project:object":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{currentProject:f}}=P;(0,W.Yu)(f.cid,f),u({type:"current:update:state",payload:{currentProject:f}})},"entry:update:root-project:bgcolor":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{fill:f}}=P;const g=b(),S=(0,r.Ur)(g);S&&(sdkStore.updateHotAttrMerge(S.cid,{fill:f}),u({type:"current:update:state",payload:{currentScreen:{...S,fill:f}}}))},"entry:update:all-screen:bgcolor":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{fill:f}}=P;const g=b(),S=(0,y.Hs)(g);if(S.length===1){u({type:"entry:update:root-project:bgcolor",payload:{fill:{...f,fillIsVisible:!0}}});return}const _=(0,r.Ur)(g),O=S.map(V=>[V,{fill:f}]);sdkStore.updateHotAttrMergeBatch(O),u({type:"current:update:state",payload:{currentScreen:{..._,fill:f}}})},"entry:update:root-project:exportSettings":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:f}=P;const g=b();let S=(0,r.PL)(g);const{exportSettings:_,exportWithDeviceFrame:O}=f;S.attr?(S.attr.export_settings=_,S.attr.export_with_device_frame=O):S.attr={export_settings:_,export_with_device_frame:O},S=(0,b0.n)(S),(0,W.Yu)(S.cid,{cid:S.cid,attr:{export_settings:_,export_with_device_frame:O}}),u({type:"current:update:state",payload:{rootProject:S}})},"entry:update:current:screen-mata":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{screenMeta:f,updateWidgetTreeData:g=!0}}=P;if(g){const V=[{key:f.cid,hotAttr:{device:f.device,deviceW:f.deviceW,deviceH:f.deviceH,deviceOrientation:f.deviceOrientation,deviceScroll:f.deviceScroll}}];u({type:"entry:widget:change",payload:{flatChgList:V}})}u({type:"current:update:state",payload:{currentScreen:f}});const S=b(),_=(0,It.jI)(S),O=(0,It.bt)(S);!_&&!O||u({type:"artboard:update:state",payload:{basketPathCacheTag:Math.random()}})},"entry:memory:last:screenAndCanvas":(L,P)=>{var b;let{getState:u}=L,{payload:{screenMetaCid:f,canvasKey:g}}=P;const S=u(),_=(0,It.jI)(S),O=(0,It.bt)(S);if(_||O)return;const V=(0,r.PL)(S),Y=(0,r.ZI)(S)||V,re=f||((b=(0,r.Ur)(S))==null?void 0:b.cid);(0,U.a0)(J.NF+"-"+Y.cid,re+","+(g||""),U.qW.String)},"entry:update:screen-name":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{attr:f,value:g,screen:S}}=P;if(S[f]===g)return;const _=b(),O=(0,y.He)(_),V=(0,y.HA)(_),H=sdkStore.getHotItem(S.cid),Y={...H,hotAttr:{...H.hotAttr,[f]:g}};sdkStore.updateHotItem(Y),u({type:"screen:update:state",payload:{screenDataMap:(0,yi.iZ)([Y],O),screenTreeData:(0,yi.Ed)([Y],V)}});const re=(0,It.jI)(_),pe=(0,It.bt)(_);if(f==="name"&&!(0,Lr.Mo)(S)&&!re&&!pe){const Ce=(0,Ts.ON)(Y);u({type:"entry:update:current:screen-mata",payload:{screenMeta:Ce}})}}};var G1=s(60892),kp=s(76805),ql=s(18183),Ru=s(53008),w0=s(85449),F0=s(71577);const Mp=async()=>{const L=Date.now();await rootSdk.saveAsync(),await(0,G1.Y_)(Math.max(L+1e3-Date.now(),0)),await(0,F0.G_)()},C0={"entry:leave:project":L=>{let{dispatch:P,getState:b}=L;const u=b(),{isEditingProjectMain:f}=(0,gt.r)(u);MB.commonGuideHelper.closeAllGuide(),(async()=>{if(f&&rootSdk.hasSave()){if(!(0,w0.ys)())return P({type:"modal:update:state",payload:{doNotLeaveProjectModal:{isOpen:!0}}});MB.safeLoading&&MB.safeLoading(I18N.__entry__.saving),await Mp(),P({type:"copy:as:png:thumbnail"}),MB.safeLoading&&MB.safeLoading(!1)}P({type:"entry:clear:selection"}),MB.global.onBackButtonClick()})()},"entry:preview:current-project":L=>{let{getState:P,dispatch:b}=L;const u=P(),f=(0,It.jI)(u),g=(0,It.bt)(u);if(f){const{hotAttr:{refRBPageKey:S},sub:_}=sdkStore.getHotItem(f);b({type:"entry:preview:panel",payload:{activePageKey:S,activeCanvasKey:_[0],basketKey:f}})}else if(g){const S=sdkStore.getHotItem(g).hotAttr;b({type:"entry:preview:panel",payload:{activePageKey:g,activeCanvasKey:S.defaultCanvasKey,basketKey:g}})}},"entry:preview:root-or-current:project":L=>{var P,b;let{getState:u,dispatch:f}=L;const g=u(),{isEditingCombo:S,isDirectlyEditingBasket:_,isEditingBasket:O}=(0,gt.r)(g),V=(0,r.PL)(g),H=(0,y.Hs)(g),{isDesign:Y}=(0,r.W4)(g),re=(0,De.nE)(g),pe=(0,r.z$)(g),Ce=(0,It.rg)(g),Pe=(0,It.uu)(g);if(_||O){f({type:"entry:preview:current-project"});return}const Ie=S&&Y,Re=re.filter(pn=>pn.hotAttr.type===N.x.Canvas),We=pe!=null&&pe.screen_visible_switch?pe==null?void 0:pe.screen_visible_list:[];if(!Pe&&!MB.global.experienceLoginModalHelper("isSave")&&f({type:"entry:start:saving"}),Ie){f({type:"entry:preview:combo"});return}const ct=H[0],vt=(P=(b=Re[Re.length-1])==null?void 0:b.key)!=null?P:(0,Cp.XV)(ct),Ut=(0,Ru.Uh)(We);if(Pe){(0,U0.JW)(location.pathname+"?view_mode=device&screen="+ct+"&canvasId="+vt,"_blank","noreferrer");return}if((0,xo.St)()){const pn=(0,ql.H)({search:"",pathname:location.pathname});Ce?(0,U0.JW)((0,ql.Dw)(pn+"/embed/v2?view_mode=device"+(Ut?"&selection="+Ut:"")+"&screen="+ct+"&canvasId="+vt+"&from=launch"),"_self"):(0,U0.JW)((0,ql.Dw)(pn+"?view_mode=device"+(Ut?"&selection="+Ut:"")+"&screen="+ct+"&canvasId="+vt+"&from=sharing"),"_blank","noreferrer")}else f({type:"entry:update:novice:guide:and:task",payload:{guideType:C.c.GUIDE_NOVICE_2309_STEP_4,taskType:C.c.GUIDE_NOVICE_2309_TASK_4}}),MB.commonGuideHelper.checkGuideHasShown(C.c.GUIDE_2407_PREVIEW)&&MB.commonGuideHelper.closeGuide(C.c.GUIDE_2407_PREVIEW),(0,U0.JW)((0,ql.Dw)(V.access_token+"?view_mode=device"+(Ut?"&selection="+Ut:"")+"&screen="+ct+"&canvasId="+vt),"_blank","noreferrer")},"entry:preview:panel":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{activePageKey:f,activeCanvasKey:g,basketKey:S}}=P;const _=b(),{isEditingCombo:O}=(0,gt.r)(_),V=(0,r.PL)(_),H=(0,r.YT)(_),Y=(0,r.ZI)(_),re=(0,r.SA)(_),pe=(0,r.HW)(_),Ce=O?re:H,Pe=O?Y:V,Ie=_.ui.fixedLayout.modals.previewModal,{hotAttr:{w:Re,h:We,basket:ct}}=sdkStore.getHotItem(S);!g||sdkStore.isTrashed(g)||Ie!=null&&Ie.isOpen&&(Ie==null?void 0:Ie.basketKey)===S||(u({type:"modal:reset:preview:modal:state"}),setTimeout(()=>{sdkStore.isTrashed(g)||u({type:"modal:update:state",payload:{previewModal:{isOpen:!0,activePageKey:f,activeCanvasKey:g,basketKey:S,currentProjectMeta:Ce,projectAlike:Pe,width:Re,height:We}}})},600),Eo.U4.protoEditorPresentTrack(pe==null?void 0:pe.id,ct==="bMuban"?"\u6BCD\u7248\u7EC4\u4EF6\u6F14\u793A":"\u52A8\u6001\u7EC4\u4EF6\u6F14\u793A"))},"entry:preview:combo":L=>{let{getState:P,dispatch:b}=L;const u=P(),f=(0,r.Ur)(u),g=(0,r.ZI)(u),S=(0,r.SA)(u),_=(0,r.HW)(u),O=(0,It.pj)(u),V=u.ui.fixedLayout.modals.previewComboModal,H=f==null?void 0:f.cid;!H||sdkStore.isTrashed(H)||V!=null&&V.isOpen&&!(V!=null&&V.activeWidgetKey)||(b({type:"modal:reset:preview:modal:state"}),setTimeout(()=>{sdkStore.isTrashed(H)||b({type:"modal:update:state",payload:{previewComboModal:{isOpen:!0,activePageKey:H,currentProjectMeta:S,projectAlike:g}}})},600),Eo.U4.protoEditorPresentTrack(_==null?void 0:_.id,O?"\u6211\u7684\u7EC4\u4EF6\u6F14\u793A":"\u56E2\u961F\u7EC4\u4EF6\u6F14\u793A"))},"entry:preview:widget":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{activePageKey:f,activeWidgetKey:g}}=P;const S=b(),_=(0,r.PL)(S),O=(0,r.YT)(S),V=S.ui.fixedLayout.modals.previewComboModal;if(!g||sdkStore.isTrashed(g)||V!=null&&V.isOpen&&(V==null?void 0:V.activeWidgetKey)===g)return;const H=sdkStore.getHotItem(g);!H||!(H!=null&&H.hotAttr)||(u({type:"modal:reset:preview:modal:state"}),setTimeout(()=>{sdkStore.isTrashed(g)||u({type:"modal:update:state",payload:{previewComboModal:{isOpen:!0,activePageKey:f,activeWidgetKey:g,currentProjectMeta:O,projectAlike:_,width:H.hotAttr.w,height:H.hotAttr.h}}})},600))},"entry:preview:canvas":(L,P)=>{var b,u,f;let{getState:g,dispatch:S}=L,{payload:{activePageKey:_,activeCanvasKey:O}}=P;const V=g(),H=(0,r.PL)(V),Y=(0,r.YT)(V),re=(0,r.HW)(V),pe=(0,It.jx)(V),Ce=(b=sdkStore.getHotItem(_))==null?void 0:b.hotAttr,Pe=(u=sdkStore.getHotItem(O))==null?void 0:u.hotAttr,Ie=V.ui.fixedLayout.modals.previewCanvasModal;if(!Ce||!Pe||Ie!=null&&Ie.isOpen&&(Ie==null?void 0:Ie.activeCanvasKey)===O)return;const{deviceW:Re,deviceH:We,deviceOrientation:ct,device:vt}=Ce,{w:Ut,h:pn}=Pe;let{width:fn,height:uo}=ct==="portrait"?{width:Re,height:We}:{width:We,height:Re};vt==="none"&&(fn=Ut,uo=pn),S({type:"modal:reset:preview:modal:state"}),setTimeout(()=>{sdkStore.isTrashed(O)||S({type:"modal:update:state",payload:{previewCanvasModal:{isOpen:!0,activePageKey:_,activeCanvasKey:O,currentProjectMeta:Y,projectAlike:H,width:fn,height:uo}}})},600),pe===o.qi.Edit&&Eo.U4.protoEditorPresentTrack(re==null?void 0:re.id,"\u9875\u9762\u5FEB\u901F\u6F14\u793A",(f=MB.getCurrentScreen())==null?void 0:f.device)},"entry:start:saving":(0,kp.Ds)(async L=>{let{getState:P,dispatch:b}=L;const u=P();if((0,It.jx)(u)===o.qi.OnlyView)return;b({type:"set:saving",payload:{saving:!0}});const S=Date.now();await Mp(),b({type:"set:saving",payload:{saving:!1}}),MB.notice({text:I18N.Common.save_notice}),await(0,G1.Y_)(Math.max(S+3e3-Date.now(),0))}).trigger};var c1=s(37320),Xd=s(50001),d1=s(26781),kc=s(63966),Nd=s(23314),Ep=s(94986),b2=s(58664);const zh=(L,P)=>{const{previewComboModal:b,previewModal:u,previewCanvasModal:f}=L.ui.fixedLayout.modals,g=[];if(b!=null&&b.isOpen){const S=b.activeWidgetKey;S&&sdkStore.isTrashed(S)&&g.push("previewComboModal")}if(u!=null&&u.isOpen){const S=u.basketKey;S&&sdkStore.isTrashed(S)&&g.push("previewModal")}if(f!=null&&f.isOpen){const S=f.activeCanvasKey;S&&sdkStore.isTrashed(S)&&g.push("previewCanvasModal")}g.length&&P({type:"modal:update:state",payload:g.reduce((S,_)=>(S[_]={isOpen:!1},S),{})})};let Ip;const Bu={...$c,...H1,...C0,...{"entry:widget:change":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{flatChgList:f=[],shouldReBuildTree:g=!1,isCombineChange:S=!0,shouldBreakLayerUICache:_=!1,shouldBreakCanvasUICache:O=!1,isCreateWidget:V=!1,shouldReBuildChildren:H=!1}}=P;if(!f.length)return;const Y=b(),{isEditingMuban:re}=(0,gt.r)(Y);S&&sdkStore.combineMergeMark("widget-change");const pe=[];let Ce=g;const Pe=["x","y","r","w","h"],Ie=[];f.forEach(We=>{let{key:ct,sup:vt,hotAttr:Ut}=We;try{const pn=sdkStore.getHotItem(ct);if(!pn)return;const fn=pn.hotAttr;if(Ut&&Object.keys(Ut).length){const uo={key:ct,sup:vt||pn.sup,sub:pn.sub,hotAttr:{...fn,...Ut}};Ie.push(uo),!Ce&&Pe.some(Mn=>Mn in Ut&&pn.hotAttr[Mn]!==Ut[Mn])&&(Ce=!0)}}catch(pn){console.error("[fatal]: sdkStore.getHotItem error",pn,{key:ct,hotAttr:Ut,sup:vt}),(0,Il.p)("[fatal]: sdkStore.getHotItem",pn)}});const Re=(0,It.PR)(Y);if(re&&Re){const We=sdkStore.getHotItem(Re.key);We&&Ie.push({...We,hotAttr:{...We.hotAttr,mtime:rootSdk.fssCmt.getClockStore().getMtime()}})}try{sdkStore.updateHotItemBatch(Ie),(0,Nd.b2)(Ie)}catch(We){console.error("[fatal]: sdkStore.updateHotItemBatch error",We,Ie),(0,Il.p)("[fatal]: sdkStore.updateHotItemBatch",We);return}for(const{key:We}of f){const ct=sdkStore.getHotItem(We);u({type:"entry:update:linkNodeList",payload:ct}),pe.push(ct)}S&&sdkStore.combineMerge("widget-change"),clearTimeout(Ip),Ce&&(Ip=setTimeout(()=>{u({type:"entry:update:ruler"})})),_&&u({type:"selection:update:state",payload:{layerListCacheTag:Math.random()}}),O&&u({type:"directory-panel:bottom:update",payload:{canvasListCacheTag:Math.random()}}),u({type:"entry:comment:move-canvas",payload:{updates:pe}})},"entry:widget:delete":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{keys:f,shouldBreakLayerUICache:g=!1,shouldRefreshLinkList:S=!1,shouldBreakCanvasUICache:_=!1}}=P;const O=b(),V=(0,I.VH)(O),H=(0,vn.Zn)(O);g&&u({type:"selection:update:state",payload:{layerListCacheTag:Math.random()}}),_&&u({type:"directory-panel:bottom:update",payload:{canvasListCacheTag:Math.random()}}),S&&u({type:"entry:refresh:link-list",payload:{updateAllLink:!0}}),V&&sdkStore.isTrashed(V)&&u({type:"set:echo:item",payload:{cid:void 0}}),H&&sdkStore.isTrashed(H)&&u({type:"elbow:clear"}),zh(O,u)},"entry:widget:quick:create":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{e:f}}=P;const g=b(),S=(0,r.wq)(g),_=(0,I.UV)(g),O=(0,mt.PI)(g),V=(0,mt.k3)(g),H=(0,r.ER)(g),Y=(0,r.$S)(g),re=(0,It.jx)(g),pe=(0,r.Ur)(g),Ce=(0,r.X_)(g);if(re===o.qi.OnlyView)return;MB.f.isSelecting=!0;const Ie=document.querySelector(".mb-viewport"),{top:Re,left:We,bottom:ct,right:vt}=Ie.getBoundingClientRect(),Ut=(0,bt.mG)(f,{scale:Ce,offset:H,viewportRect:Y}),pn=(0,T.Tg)(Ut,_.getRootSnapshot().key);let uo=pn&&S.type!==N.x.Canvas?pn:pe==null?void 0:pe.cid,Mn=f.clientX,Gt=f.clientY-Re,yo;(O||V)&&(yo=(0,c1.ay)({movableItems:[],createSnapper:O?Xd.WY:c1.xb,viewport:{scale:Ce/100}}));const Do={startX:Mn,startY:Gt,endX:Mn,endY:Gt},Wo=(0,pd.vI)(Do,Ce),Ro=(0,d1.q2)(S.type,Wo);let ra;if(S.type===N.x.WElbow){const ti={x:Wo.startX,y:Wo.startY};sdkStore.combineMergeMark("elbow-create"),ra=(0,kc.Z1)(ti,pe.cid),u({type:"entry:elbow:create:start",payload:{elbowKey:ra,cursorWorldPos:Ut,moveAnchor:"start"}})}else u({type:"set:quick-create-widget",payload:{widget:{...S,top:Ro.top,left:Ro.left,width:0,height:0,x:Ro.left+S.w/2,y:Ro.top+S.h/2,line:Ro.line}}});if(S.type===N.x.Canvas&&u({type:"reducer:flag:update-state",payload:{isStartCreatingCanvas:!0}}),S.type===N.x.WVector){var ka;if(((ka=S.vector)==null?void 0:ka.toolType)===j.pv.PENCIL){MB.f.isSelecting=!1;return}let ti=ze.Z.xy(Ro.left,Ro.top);if(pn){const vi=sdkStore.getHotItem(pn);if(vi){const{hotAttr:{x:Hr,y:Yr,w:br,h:zi}}=vi;ti=ze.Z.subtract(ti,{x:Hr-br/2,y:Yr-zi/2})}}u({type:"entry:vector:editor:drag",payload:{pos:ti,sup:uo}});return}const[pa,Ma]=[N.x.WLine,N.x.WArrow].includes(S.name)?[45,0]:[90,45];let Ya=!1,di=0;const ja=new Date().getTime(),ri=ti=>{Ya=Ya||Math.abs(ti.clientX-Mn)>1||Math.abs(ti.clientY-Gt+Re)>1,Ya&&di===0&&u({type:"update:screenContainer:state",payload:{isDragClickWidget:!0}}),di++;const vi=ti.clientX,Hr=ti.clientY-Re,Yr={startX:Mn,startY:Gt,endX:vi,endY:Hr};let br=0,zi=0;if(ti.clientX<We?br=10:ti.clientX>vt&&(br=-10),ti.clientY<Re?zi=10:ti.clientY>ct&&(zi=-10),br||zi){Mn+=br,Gt+=zi;const{x:ui,y:tl}=H,Yi={x:ui+br,y:tl+zi};u({type:"entry:set:canvas:offset",payload:{offset:Yi}})}const mr=(0,pd.vI)(Yr,Ce);let pi;if(ti.shiftKey)pi=(0,pd.T7)(mr,pa,Ma);else{const ui={left:vi<Mn,right:vi>=Mn,top:Hr<Gt,bottom:Hr>=Gt},tl=(0,pd.rn)(mr);let Yi,us,pl,Va,Xi,hs,Xs;O||V?({top:Yi,left:us,width:pl,height:Va,alignment:Xi,distributed:hs,sameSize:Xs}=yo({_rect:tl,resizing:(0,Ep.$)(ui),sup:uo}),u({type:"set:alignment",payload:{alignment:Xi}}),u({type:"set:sameSize",payload:{sameSize:Xs}}),u({type:"set:distributed",payload:{distributed:hs}})):{top:Yi,left:us,width:pl,height:Va}=tl,pi={startX:ui.left?us+pl:us,startY:ui.top?Yi+Va:Yi,endX:ui.right?us+pl:us,endY:ui.bottom?Yi+Va:Yi}}if(S.type===N.x.WElbow){const ui={x:pi.endX,y:pi.endY};u({type:"entry:elbow:create:start",payload:{elbowKey:ra,cursorWorldPos:ui,moveAnchor:"end"}})}else if(S.type===N.x.Canvas){const ui=(0,d1.q2)(S.type,pi);u({type:"set:quick-create-widget",payload:{widget:{...S,...ui,w:ui.width,h:ui.height,x:ui.left+ui.width/2,y:ui.top+ui.height/2,line:ui.line,device:"customize"}}})}else{const ui=(0,d1.q2)(S.type,pi);u({type:"set:quick-create-widget",payload:{widget:{...S,...ui,w:ui.width,h:ui.height,x:ui.left+ui.width/2,y:ui.top+ui.height/2,line:ui.line}}})}},ks=ti=>{if(MB.f.isSelecting=!1,u({type:"update:screenContainer:state",payload:{isDragClickWidget:!1}}),document.removeEventListener("mousemove",ri),document.removeEventListener("mouseup",ks),!(0,Oi._c)({type:S.type,count:1})){u({type:"set:quick-create-widget",payload:{widget:null}}),u({type:"entry:ST:STMode:disable"});return}const vi=b(),Hr=(0,gt.r)(vi),Yr=(0,It.IL)(vi),br=(0,r.wq)(vi);if(!br)return;const zi=(0,b2.P)(Hr),mr=1,ui=new Date().getTime()-ja,tl=()=>ui<200||br.width<mr&&br.height<mr||br.width<=4/(Ce/100)&&br.height<=4/(Ce/100)&&Math.pow(br.width,2)+Math.pow(br.height,2)<=Math.pow(4/(Ce/100),2);let Yi;if(S.type===N.x.WRichText){const Va=(0,jn.gg)(br);Yi={...Va,width:Va.w,height:Va.h}}else if([N.x.WLine,N.x.WArrow].includes(S.type)){if(S.type===N.x.WLine?tl():br.width<3&&br.height<3){const{startX:Va,startY:Xi}=(0,pd.vI)({startX:Mn,startY:Gt,endX:0,endY:0},Ce);Yi=(0,d1.q2)(S.type,{startX:Va,startY:Xi,endX:Va+150,endY:Xi}),Yi.x=br.left+Yi.width/2,Yi.y=br.top+Yi.height/2}}else if([N.x.WLR,N.x.WOval,N.x.WRect].includes(S.type)){if(tl()){const Va=zi.find(Xi=>{let{name:hs}=Xi;return hs===S.type});if(Va){const Xi=Va.default.width,hs=Va.default.height;Yi={x:br.left+Xi/2,y:br.top+hs/2,width:Xi,height:hs}}else{const Xi=Math.max(br.width,mr),hs=Math.max(br.height,mr);Yi={x:br.left+Xi/2,y:br.top+hs/2,width:Xi,height:hs}}}}else if([N.x.WSticky].includes(S.type)){let Va=br.width,Xi=br.height;const hs=zi.find(ms=>{let{name:Fl}=ms;return Fl===S.type});hs&&(Va=Va<280?hs.default.width:Va,Xi=Xi<120?hs.default.height:Xi);const Xs=pe.cid,Ti=(0,Fs.Be)(Xs);Yi={x:br.left+Va/2,y:br.top+Xi/2,width:Va,height:Xi,order:Ti+1},uo=pe==null?void 0:pe.cid}else if(S.type===N.x.WImage)if(tl())Yi={x:br.left+200/2,y:br.top+100/2,width:200,height:100};else{const Va=Math.max(br.width,mr),Xi=Math.max(br.height,mr);Yi={x:br.left+Va/2,y:br.top+Xi/2,width:Va,height:Xi}}else if(S.type===N.x.Canvas)if(tl())Yi=(0,Me.X0)(pe),Yi.width=Yi.w,Yi.height=Yi.h,Yi.x=br.left+Yi.w/2,Yi.y=br.top+Yi.h/2;else{const Va=Math.max(br.width,mr),Xi=Math.max(br.height,mr);Yi={x:br.left+Va/2,y:br.top+Xi/2,width:Va,height:Xi}}else if(S.type===N.x.WTear){const Va=(0,Fs.Be)(pe.cid),Xi=(0,T.Tg)(Ut,_.getRootSnapshot().key);let hs;Yr?(0,Fs.yT)(sdkStore.getHotItem(Yr).hotAttr.type)?hs="":hs=Yr:hs=Xi||"",uo=pe==null?void 0:pe.cid,Yi={x:br.x+br.width*.5,y:br.y+br.height*.5,width:20,height:20,order:Va+1,refWCKey:hs},u({type:"ST:update",payload:{isLeftDown:!0}})}else{const Va=Math.max(br.width,10),Xi=Math.max(br.height,10);Yi={x:br.left+Va/2,y:br.top+Xi/2,width:Va,height:Xi}}const us={...br,...Yi},pl={...us,w:(us==null?void 0:us.width)||(us==null?void 0:us.w),h:(us==null?void 0:us.height)||(us==null?void 0:us.h)};(O||V)&&(u({type:"set:alignment",payload:{alignment:{}}}),u({type:"set:sameSize",payload:{sameSize:{}}}),u({type:"set:distributed",payload:{distributed:{}}})),S.type===N.x.WElbow?(u({type:"entry:elbow:after-quick-create",payload:{elbowKey:ra,originalSup:uo}}),u({type:"entry:select:items",payload:{cids:[ra]}}),u({type:"elbow:update",payload:{highlightAnchor:"",isDraggingElbow:!1}}),sdkStore.combineMerge("elbow-create")):u({type:"entry:batch:create:items",payload:{data:[{items:[pl]}],offset:{top:0,left:0},sup:uo,source:"draw"}}),S.type===N.x.Canvas&&u({type:"reducer:flag:update-state",payload:{isStartCreatingCanvas:!1}}),u({type:"set:quick-create-widget",payload:{widget:null}}),u({type:"entry:ST:STMode:disable"})};document.addEventListener("mousemove",ri),document.addEventListener("mouseup",ks)},"entry:widget:quick:create:noRect":(L,P)=>{var b;let{getState:u,dispatch:f}=L,{payload:{e:g}}=P;const S=u(),_=(0,r.wq)(S),O=(0,r.L8)(S),V=(0,It.jx)(S),H=(0,r.X_)(S),Y=(0,r.ER)(S),re=(0,r.$S)(S),pe=((b=(0,r.Ur)(S))==null?void 0:b.cid)||"",Ce=(0,De.p$)(S);if(V===o.qi.OnlyView||!(O||_))return;if(!(0,Oi._c)({type:(_==null?void 0:_.type)||"widget",count:1})){f({type:"set:quick-create-widget",payload:{widget:null}}),f({type:"entry:ST:STMode:disable"});return}let Ie=pe;const Re=(0,ta.dk)(Ce,sdkStore);Re&&sdkStore.getHotItem(Re).hotAttr.type==="wWrap"&&(Ie=Re);const We=(0,bt.mG)(g,{scale:H,offset:Y,viewportRect:re});O?f({type:"entry:paste:items",payload:{data:O,worldPos:We,keyRndSup:Ie,commonKeyRndSup:Ie,isPaste:!1}}):_&&f({type:"entry:batch:create:items",payload:{data:[{items:[_]}],offset:{left:We.x,top:We.y},sup:Ie}}),f({type:"set:quick-create-widget",payload:{widget:null}}),f({type:"entry:ST:STMode:disable"})},"entry:template:screen:create":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{e:f}}=P;const g=b(),S=(0,r.wq)(g),_=(0,r.ER)(g),O=(0,r.$S)(g),V=(0,It.jx)(g),H=(0,r.Ur)(g),Y=(0,r.X_)(g);if(V===o.qi.OnlyView)return;MB.f.isSelecting=!0;const pe=H==null?void 0:H.cid;if(!(0,Oi._c)({type:S.type,count:1})){u({type:"set:quick-create-widget",payload:{widget:null}}),u({type:"entry:ST:STMode:disable"});return}const Pe=(0,y.fm)(g).get(S.mktCid),Ie=[S.key],Re=Pe.saveSubtree(Ie),We=(0,bt.mG)(f,{scale:Y,offset:_,viewportRect:O}),ct=ze.Z.xy(We.x+f.clientX/Y,We.y+f.clientY/Y),vt=(0,me.BB)({data:Re,worldPos:ct,keyRndSup:pe,currentPageKey:pe});MB.action("entry:select:items",{cids:vt}),MB.action("entry:refresh:link-list"),MB.action("entry:publish:create:items:success",{newKeys:vt}),MB.notice({text:I18N.Resources.user_resource_panel.success_create_page}),u({type:"set:quick-create-widget",payload:{widget:null}})},"entry:collaborate:widget:change":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{creates:f,updates:g,deletes:S,shouldReBuildChildren:_}}=P;const O=b(),V=(0,I.UV)(O),H=(0,I.RX)(O),Y=(0,It.jI)(O),re=(0,It.bt)(O),pe=(0,r.Ur)(O),{isEditingCombo:Ce}=(0,gt.r)(O),Pe=(0,Pt.ul)(O),Re={folderKey:pe==null?void 0:pe.cid,isEditingCombo:Ce,editingBasketRefPage:re,editingBDanliKey:Y};if(!((f==null?void 0:f.length)||(S==null?void 0:S.length)||(g==null?void 0:g.length)))return;let ct=H;if(f!=null&&f.length&&f.forEach(vt=>{const Ut={cid:vt.key,...(0,gi.Op)(vt.key),...vt.hotAttr,sup:vt.sup};ct=V.newWidgets([Ut],vt.sup,Re)}),g!=null&&g.length){const vt=[];for(const{key:Ut,hotAttr:pn,sup:fn}of g)vt.push({cid:Ut,...(0,gi.Op)(Ut),...pn,sup:fn});ct=V.updateWidgets(vt,Re,_)}if(S!=null&&S.length&&(ct=V.deleteWidgets(S),Pe!=null&&Pe.length)){const vt=Pe.filter(Ut=>!sdkStore.isTrashed(Ut));u({type:"mind:update:state:selectedMindNodeKeys",payload:{selectedMindNodeKeys:vt}})}u({type:"selection:update:state",payload:{widgetTreeData:ct}}),MB.action("selection:update:state",{layerListCacheTag:Math.random()}),MB.action("entry:refresh:link-list")},"entry:widget:create:by:data":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{e:f}}=P;const g=b(),S=(0,r.YY)(g),_=(0,r.F2)(g),O=(0,r._x)(g),V=(0,It.jx)(g),H=(0,It.bt)(g);if(!(V===o.qi.OnlyView||!S)){if(H){var re;if(((re=S[0])==null||(re=re[0])==null?void 0:re[0]).key===H){MB.notice({text:I18N.SettingPanel.design.master_cannot_nesting,type:"error"}),u({type:"update:screenContainer:state",payload:{createTemplatesData:null}});return}}try{var pe;MB.f.isSelecting=!0;const Ce=((pe=S[0])==null||(pe=pe[0])==null||(pe=pe[0])==null?void 0:pe.category)===mn.Gd,Pe=Ie=>{var Re;if(!(Ie!=null&&(Re=Ie.recent)!=null&&Re.isTrack)||!(Ie!=null&&Ie.recent))return;const{projectUpperType:We,projectUpperCid:ct}=Ie.recent;if(["user_combo",mn.t_].includes(We)){if(Ie.marketTemplateSource){var vt,Ut,pn;const{isVipTemplate:pa,isMdVipTemplate:Ma}=(0,Tn.f9)(Ie.marketTemplateSource);Eo.U4.protoComponentAddTrack({source:(Ie==null||(vt=Ie.recent)==null?void 0:vt.from)==="widget-modal"?"\u7EC4\u4EF6\u5F39\u7A97":"\u5DE6\u4FA7\u680F",component_type:"\u7EC4\u4EF6\u7D20\u6750",component_paytype:Ma?"\u539F\u578B\u4F1A\u5458\u7D20\u6750":pa?"\u7D20\u6750\u4F1A\u5458\u7D20\u6750":"\u514D\u8D39",component_name:(Ut=Ie==null||(pn=Ie.hotAttr)==null?void 0:pn.name)!=null?Ut:"",component_cid:Ie.key})}else if(Ie.flpakKey){var fn,uo;const pa=Ie.flpakKey===(_==null?void 0:_.project_meta_cid)?"\u6211\u7684\u7EC4\u4EF6":Ie.flpakKey===(O==null?void 0:O.project_meta_cid)?"\u56E2\u961F\u7EC4\u4EF6":"";if(!pa)return;Eo.U4.protoComponentAddTrack({source:"\u7EC4\u4EF6\u5F39\u7A97",component_type:pa,component_paytype:"\u514D\u8D39",component_name:(fn=Ie==null||(uo=Ie.hotAttr)==null?void 0:uo.name)!=null?fn:"",component_cid:Ie.key})}}else if(Ie.type===N.x.WImage){var Mn;const pa=ct.includes("findSticker_");Eo.U4.protoComponentAddTrack({source:"\u56FE\u7247\u5F39\u7A97",component_type:"\u56FE\u7247",component_paytype:pa?"\u7D20\u6750\u4F1A\u5458\u7D20\u6750":"\u514D\u8D39",component_name:(Mn=Ie==null?void 0:Ie.name)!=null?Mn:"",component_cid:ct})}else if(Ie.type===N.x.WIcon){var Gt,yo,Do;if(!(Ie!=null&&Ie.iconData))return;Eo.U4.protoComponentAddTrack({source:"\u56FE\u6807\u5F39\u7A97",component_type:"\u56FE\u6807",component_paytype:Ie!=null&&(Gt=Ie.iconData)!=null&&Gt.isMultiColorIcon?"\u7D20\u6750\u4F1A\u5458\u7D20\u6750":"\u514D\u8D39",component_name:(yo=Ie==null||(Do=Ie.iconData)==null?void 0:Do.iconName)!=null?yo:"",component_cid:Ie==null?void 0:Ie._icon_id})}else if(Ie.type==="screen_list"&&Ie.marketTemplateSource){var Wo,Ro,ra,ka;const{isVipTemplate:pa,isMdVipTemplate:Ma}=(0,Tn.f9)(Ie.marketTemplateSource);Eo.U4.protoPageAddTrack((Wo=MB)==null||(Wo=Wo.user)==null?void 0:Wo.id,(Ie==null||(Ro=Ie.recent)==null?void 0:Ro.from)==="template-modal"?"\u6A21\u677F\u5F39\u7A97":"\u6A21\u677F\u5DE6\u4FA7\u680F","\u9875\u9762",Ma?"\u539F\u578B\u4F1A\u5458\u7D20\u6750":pa?"\u7D20\u6750\u4F1A\u5458\u7D20\u6750":"\u514D\u8D39",Ie==null||(ra=Ie.hotAttr)==null?void 0:ra.name,Ie==null||(ka=Ie.marketTemplateSource)==null?void 0:ka.cid)}};Ce?(0,j.aJ)(f,S,Ie=>{var Re;Ie!=null&&(Re=Ie.recent)!=null&&Re.isRequestRecent&&(0,wo.Cp)(Ie.recent),Pe(Ie)}):(0,j.en)(f,S,Ie=>{var Re;Ie!=null&&(Re=Ie.recent)!=null&&Re.isRequestRecent&&(0,wo.Cp)(Ie.recent),Pe(Ie)}),MB.f.isSelecting=!1,u({type:"update:screenContainer:state",payload:{createTemplatesData:null}})}catch(Ce){console.log(Ce)}}}}};var _p=s(15653),Al=s(18630),Zl=s(21191),Nc=s(9634),Z1=s(17573);const V0=function(L,P){P===void 0&&(P=!0);const b=new Map,u={};if(P){const{hotAttr:f,key:g}=sdkStore.getHotItem(L),S=f.type===N.x.WBasket?f==null?void 0:f.refRBPageKey:g,_=(0,Fs.Mn)(S);for(const O of _){const{key:V,hotAttr:{refWCKey:H}}=O;!H||!sdkStore.locUpColdCanvasKey(H)||((0,Al.Ie)(H,u),(0,Al.Ie)(V,u),b.has(H)?b.set(H,b.get(H).concat([V])):b.set(H,[V]))}}return{keyRefWCToKeyTear:b,preDragSnapshot:u}},K1=(L,P)=>{const b={},u=[];return L.forEach((f,g)=>{(0,Al.Ie)(g,b);const S=b[g],_=P[g];if(S&&_&&f!=null&&f.length){const O=S.hb.x-_.hb.x,V=S.hb.y-_.hb.y;for(const H of f){const{hb:Y,wasoX:re,wasoY:pe}=P[H],{x:Ce,y:Pe}=sdkStore.toAttrXY({x:Y.x+O,y:Y.y+V},H);u.push({key:H,hotAttr:{x:Ce+re,y:Pe+pe}})}}}),u},Tp=L=>L.reduce((b,u)=>{const f=sdkStore.getHotItem(u);return f&&f.hotAttr.type===N.x.Canvas?b.concat([u]):b},[])[0],w2={"entry:create:basket":async(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{basketType:f="bDanli",attr:g={},isToDoubleTheCanvas:S=!1,isCreateFolder:_,onSuccess:O=()=>0}={}}=P;u({type:"entry:create:basket:v2",payload:{basketType:f,attr:g,isToDoubleTheCanvas:S,isCreateFolder:_,onSuccess:O}})},"entry:create:basket:v2":async(L,P)=>{var b,u;let{getState:f,dispatch:g}=L,{payload:{basketType:S="bDanli",attr:_={},isToDoubleTheCanvas:O=!1,isCreateFolder:V=!1,onSuccess:H}={}}=P;const Y=f(),re=(0,r.Ur)(Y).cid,pe=(0,De.p$)(Y).filter(Gt=>!(0,Oe.OO)(Gt)),Ce=(0,It.jI)(Y);if(!(pe!=null&&pe.length))return;let Pe=1;const Ie=pe.length;if(S==="bDanli"?Pe=O?Ie*2+1:1:Pe=Ie+1+1,!(0,Oi._c)({type:"basket",count:Pe}))return;setTimeout(()=>{H==null||H()});const Re=pe.map(Gt=>sdkStore.getHotItem(Gt)),We=!Ce&&V;let ct=(_==null?void 0:_.name)||(0,Za.KD)(Re[0].key),vt;if(We&&(0,Z1.bJ)()){const Gt=_==null?void 0:_.name.split("/");Gt.length>1&&(vt=Gt[0],ct=Gt.slice(1).join(""))}if(Re.length===1&&((b=Re[0])==null?void 0:b.hotAttr.type)===N.x.WBasket&&((u=Re[0])==null||(u=u.hotAttr)==null?void 0:u.basket)==="bDanli"&&S==="bMuban"){g({type:"entry:basket:transform",payload:{basketType:S,attr:{name:ct,folderName:vt},type:"danliToMuban",needCreateFolder:We}});return}const Ut=(0,tt.cF)("wb"),pn=(0,tt.cF)("rc"),fn=(0,Zl.Lf)(pe);if(!fn)return;if(sdkStore.combineMergeMark("create-basket"),sdkStore.summonRCanvas(pe,re,pn,I18N.Basket.state1,5),sdkStore.updateHotAttrMerge(pn,{fill:{fillIsVisible:!1,fill:"solid",solidColor:4294967295}}),sdkStore.summonWBasketFromRCanvas(pn,fn.sup,Ut,S,ct,fn.hotAttr.zIndex),Ce&&(0,_p.On)(Ut,Ce),O){const Gt=sdkStore.getHotItem(Ut).hotAttr.refRBPageKey,yo=sdkStore.loadSubtreeTL(sdkStore.saveSubtree([pn]),Gt,0,0)[0];sdkStore.updateHotAttrMerge(yo,{name:I18N.Basket.state2,order:(0,Cp.QN)(Gt)})}const uo=sdkStore.getHotItem(pn).sup,Mn=[];if(sdkStore.walkHotItemSubtree2(uo,Gt=>{(0,Fs.yT)(Gt.hotAttr.type)&&Mn.push([Gt.key,uo])}),sdkStore.moveHotItemBatch(Mn),(0,ta.hf)(pe,re,g),(0,ta.F6)(pe),(0,ta.gs)(uo,pe),(0,ta.gs)(re,[]),We&&vt&&(0,Z1.bJ)()){const Gt=(0,Qa.i)(vt,fn.hotAttr.zIndex),yo=sdkStore.getHotItem(uo);sdkStore.updateHotItem({...yo,sup:Gt}),g({type:"entry:libStyle:update:mubanPanel:libMubanTreeMap",payload:{libFlatKey:"local",needUpdate:!0}})}sdkStore.combineMerge("create-basket"),g({type:"links:active:link",payload:{cid:[]}}),g({type:"links:singleSelectLink:update",payload:{singleSelectLink:void 0}}),g({type:"update:link:selectLinkItem",payload:null}),g({type:"entry:refresh:link-list"}),g(o.GO.select([Ut])),g(o.GO.hoverItem("")),S==="bMuban"&&g({type:"entry:libStyle:update:mubanPanel:libMubanTreeMap",payload:{libFlatKey:"local",needUpdate:!0}})},"entry:basket:transform":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{itemsKeyList:f=[],attr:g={},basketType:S="bDanli",store:_=sdkStore,type:O,needCreateFolder:V=!1}={},hasUpdateWidgetTreeData:H=!0}=P;const Y=b(),pe=(f.length>0?f:(0,De.p$)(Y)).filter(We=>!(0,Oe.OO)(We));if(pe.length===0)return;let Ce=0;if(O==="detachMuban"){var Pe;Ce=(0,Oi.UU)({initKeyList:[(Pe=sdkStore.getHotItem(pe[0]))==null?void 0:Pe.hotAttr.refRBPageKey].filter(Boolean)})}else O==="danliToMuban"?Ce=1:O==="createCombo"&&(Ce=0);if(!(0,Oi._c)({type:"basket",count:Ce}))return;sdkStore.combineMergeMark("transform-basket");const Ie=[];pe.forEach(We=>{const{hotAttr:ct}=_.getHotItem(We);if((ct==null?void 0:ct.type)===N.x.WBasket){var vt,Ut;_.convertWBasketType(We,S);const pn=(vt=_.getHotItem(We).hotAttr)==null?void 0:vt.refRBPageKey,fn=(Ut=_.getHotItem(We))==null?void 0:Ut.hotAttr;if(S==="bDanli"){_.updateHotAttrMerge(pn,{defaultCanvasKey:fn==null?void 0:fn.refContentKey});const uo=(0,Nc.gk)(We,_);uo!=null&&uo.length&&uo.forEach(Mn=>{var Gt,yo,Do;const Wo=_.getHotItem(Mn==null||(Gt=Mn.hotAttr)==null?void 0:Gt.refRBPageKey);if((Wo==null||(yo=Wo.hotAttr)==null?void 0:yo.defaultCanvasKey)!==(Mn==null||(Do=Mn.hotAttr)==null?void 0:Do.refContentKey)){var Ro;_.updateHotAttrMerge(Mn.key,{refContentKey:Wo==null||(Ro=Wo.hotAttr)==null?void 0:Ro.defaultCanvasKey})}})}if(_.updateHotAttrMerge(pn,{w:fn.w,h:fn.h,scroll:fn.scroll,name:g==null?void 0:g.name}),O==="danliToMuban"&&V&&g!=null&&g.folderName&&(0,Z1.bJ)()){const uo=sdkStore.getHotItem(pn),Mn=(0,Qa.i)(g==null?void 0:g.folderName,uo==null?void 0:uo.hotAttr.zIndex);sdkStore.updateHotItem({...uo,sup:Mn}),u({type:"entry:libStyle:update:mubanPanel:libMubanTreeMap",payload:{libFlatKey:"local",needUpdate:!0}})}Ie.push({cid:We,...(0,gi.Op)(We)})}}),sdkStore.combineMerge("transform-basket");const Re=Y.ui.fixedLayout.modals.previewModal;if(Re!=null&&Re.isOpen){const We=Re.basketKey;if(We){const ct=(0,Oe.OO)(We)?(0,Oe.QL)(We).pop():We;pe.includes(ct)&&u({type:"modal:update:state",payload:{previewModal:{isOpen:!1}}})}}},"entry:basket:delete":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{removeList:f}}=P;const g=b(),S=(0,It.jI)(g),_=(0,It.bt)(g),O=(0,It.PR)(g);sdkStore.combineMergeMark("delete-basket"),sdkStore.deleteHotItemBatch(f);let V;if(S){var H;const{refContentKey:re,refRBPageKey:pe}=(H=sdkStore.getHotItem(S))==null?void 0:H.hotAttr,{sub:Ce,hotAttr:{defaultCanvasKey:Pe}}=sdkStore.getHotItem(pe),Ie=Tp(Ce);Ie&&(f.includes(re)&&sdkStore.updateHotAttrKV((0,Oe.OO)(S)?(0,Oe.QL)(S).pop():S,"refContentKey",Ie),f.includes(Pe)&&sdkStore.updateHotAttrKV(pe,"defaultCanvasKey",Ie)),S===(O==null?void 0:O.key)&&(V=sdkStore.getHotItem(S))}if(_){const{hotAttr:{defaultCanvasKey:re},sub:pe}=sdkStore.getHotItem(_),Ce=Tp(pe);if(Ce){f.includes(re)&&sdkStore.updateHotAttrKV(_,"defaultCanvasKey",Ce);for(const Pe of sdkStore.findAllBasketFRBPage(_)){var Y;const{refContentKey:Ie}=(Y=sdkStore.getHotItem(Pe))==null?void 0:Y.hotAttr;f.includes(Ie)&&sdkStore.updateHotAttrKV(Pe,"refContentKey",Ce)}}_===(O==null?void 0:O.key)&&(V=sdkStore.getHotItem(_))}u({type:"entry:refresh:canvas:order"}),u({type:"entry:layout:basket-canvas"}),V&&u(o.GO.editBasketHotItem(V)),sdkStore.combineMerge("delete-basket")},"entry:exit:edit:basket":L=>{var P;let{getState:b,dispatch:u}=L;sdkStore.setPCXYConfigMap(void 0);const f=b(),g=(0,It.jI)(f),S=(0,It.bt)(f);if(!g&&!S)return;const[_]=(0,It.ER)(f),O=(0,y.OW)(f),V=(0,It.uj)(f);u(o.GO.editBasketItemKey("")),u(o.GO.editBasketHotItem(null)),u(o.GO.editBasketRefPage("")),u({type:"entry:clear:selection"}),u({type:"entry:memory:current:screen:offset:scale"}),sdkStore.isTrashed(_)?u({type:"entry:activate:root-project:home-screen"}):(u({type:"entry:goto:project-alike",payload:{screenMetaCid:_}}),u({type:"screen:update:screen-selection",payload:{screenSelection:[_]}})),O===Di.lS.List&&u({type:"set:current:popup:panel",payload:{name:V}}),(P=MB.commonGuideHelper)!=null&&P.checkGuideHasShown&&!MB.commonGuideHelper.checkGuideHasShown(C.c.GUIDE_BASKET_QUICK_COPY_CANVAS)&&(MB.commonGuideHelper.closeGuide(C.c.GUIDE_BASKET_QUICK_COPY_CANVAS),MB.commonGuideHelper.markGuideAsRead(C.c.GUIDE_BASKET_QUICK_COPY_CANVAS)),u({type:"modal:reset:preview:modal:state"})},"entry:detach:basket":L=>{let{getState:P,dispatch:b}=L;b({type:"entry:detach:basket:v2"})},"entry:detach:basket:v1":L=>{let{getState:P,dispatch:b}=L;const u=P(),f=(0,De.p$)(u)[0],g=sdkStore.getHotItem(f),S=sdkStore.locUpRBPageKey(f);sdkStore.combineMergeMark("basket-detach");const{sub:_,hotAttr:{zIndex:O,name:V}}=sdkStore.getHotItem(g==null?void 0:g.hotAttr.refContentKey),{x:H,y:Y,w:re,h:pe}=sdkStore.getHotBound(g.key),Ce=H-re/2,Pe=Y-pe/2;let Ie="";if(_.length>0){Ie=(0,tt.cF)("ww");const vt={key:Ie,sub:[],sup:g.sup,hotAttr:{...Cc.N[N.x.WWrap](),name:V||(0,gi.Mn)(g.hotAttr),zIndex:g.hotAttr.zIndex,fixPosTo:g.hotAttr.fixPosTo}};sdkStore.updateHotItem(vt),sdkStore.loadSubtreeTL(sdkStore.saveSubtree(_),Ie,Ce,Pe)}sdkStore.deleteHotItem(g.hotAttr.refContentKey);const Re=sdkStore.findAllTypeUnder(g.hotAttr.refRBPageKey,"rResCanvas").map(vt=>vt.key);if(Re.length>0){const vt=Re[0];sdkStore.updateHotAttrKV(g.key,"refContentKey",vt),sdkStore.updateHotAttrKV(g.hotAttr.refRBPageKey,"defaultCanvasKey",vt),Ie&&sdkStore.updateHotAttrKV(Ie,"zIndex",(0,ta.Z_)(g.sup)+1)}else{var We;sdkStore.deleteHotItem(g.key),sdkStore.getHotItem(g.hotAttr.refRBPageKey).sub.filter(Gt=>["wSticky","wTear"].includes(sdkStore.getHotItem(Gt).hotAttr.type)).sort((Gt,yo)=>sdkStore.getHotItem(Gt).hotAttr.order-sdkStore.getHotItem(yo).hotAttr.order).forEach(Gt=>{const yo=sdkStore.getHotItem(Gt).hotAttr;yo.type==="wSticky"&&yo.sticky.point.length&&sdkStore.updateHotAttrKV(Gt,"sticky",{...yo.sticky,point:[yo.sticky.point[0]+Ce,yo.sticky.point[1]+Pe]}),sdkStore.updateHotAttrKV(Gt,"order",(0,Fs.Be)(S)+1),sdkStore.changeRndSup(Gt,S);const{x:Do,y:Wo}=sdkStore.getHotBound(Gt);sdkStore.updateHotAttrMerge(Gt,{...sdkStore.toAttrXY({x:Do+Ce,y:Wo+Pe},Gt)})});const Ut=sdkStore.getHotItem(g.hotAttr.refRBPageKey).sub.filter(Gt=>!["wSticky","wTear"].includes(sdkStore.getHotItem(Gt).hotAttr.type)),{lowZIndexItemsKeyList:pn,highZIndexItemsKeyList:fn}=(0,ta.CB)(Ut,O),{lowZIndexItemsKeyList:uo,highZIndexItemsKeyList:Mn}=(0,ta.CB)(sdkStore.getHotItem(g.sup).sub.filter(Gt=>!N.Q.ALWAYS_ON_TOP_NAMES.includes(sdkStore.getHotItem(Gt).hotAttr.type)),g.hotAttr.zIndex);uo.concat(pn).concat(Ie?[Ie]:[]).concat(fn).concat(Mn).forEach((Gt,yo)=>sdkStore.updateHotAttrKV(Gt,"zIndex",yo+1)),Ut.forEach(Gt=>{sdkStore.changeRndSup(Gt,g.sup);const{x:yo,y:Do}=sdkStore.getHotBound(Gt);sdkStore.updateHotAttrMerge(Gt,{...sdkStore.toAttrXY({x:yo+Ce,y:Do+Pe},Gt)})}),(We=rootSdk.cmtStore.getHotItem(g.hotAttr.refRBPageKey))==null||We.sub.forEach(Gt=>{const yo=rootSdk.cmtStore.getHotItem(Gt).hotAttr;if(!rootSdk.cmtStore.getHotItem(S)){const Do=(0,cn.$S)(S);rootSdk.cmtStore.updateHotItem(Do)}rootSdk.cmtStore.moveHotItem(Gt,S),rootSdk.cmtStore.updateHotAttrMerge(Gt,{x:yo.x+Ce,y:yo.y+Pe})})}sdkStore.combineMerge("basket-detach"),b({type:"entry:comment:rebuild:commentList"}),Ie&&b({type:"entry:select:items",payload:{cids:[Ie]}});const ct=u.ui.fixedLayout.modals.previewModal;if(ct!=null&&ct.isOpen){const vt=ct.basketKey;vt&&sdkStore.isTrashed(vt)&&b({type:"modal:update:state",payload:{previewModal:{isOpen:!1}}})}},"entry:detach:basket:v2":L=>{let{getState:P,dispatch:b}=L;const u=P(),f=(0,De.p$)(u)[0],g=sdkStore.getHotItem(f),S=(0,r.eo)(u);sdkStore.combineMergeMark("basket-detach");const{sup:_,hotAttr:{refContentKey:O,refRBPageKey:V,zIndex:H}}=g,{sub:Y,hotAttr:{zIndex:re,name:pe}}=sdkStore.getHotItem(O),Ce=sdkStore.getHotItem(_),[Pe,Ie]=sdkStore.getHotAABB(g.key);let Re=null;const We=(0,Zl.G9)(S),ct=Ce.hotAttr.type==="wWrap";if(ct)Re=_;else if(Y.length>0){const Gt=sdkStore.getHotKeyListAABB(Y),yo=Gt[2]-Gt[0],Do=Gt[3]-Gt[1],Wo=[Pe,Ie,Pe+yo,Ie+Do];Re=We(Wo,Ce.hotAttr.type==="rResCanvas"?Ce.key:null)||S}const vt=new Map,Ut=Gt=>{if(!vt.has(Gt)){const yo=Gt===Re?H:(0,ta.Z_)(Gt),Do=sdkStore.getSubHotItemList(_).filter(Wo=>!Zl.o7.has(Wo.hotAttr.type)&&Wo.hotAttr.zIndex>yo).sort((Wo,Ro)=>Wo.hotAttr.zIndex-Ro.hotAttr.zIndex);vt.set(Gt,{anchorZIndex:yo,theDetachedZ:null,aboveAnchorList:Do})}return vt.get(Gt)},pn=[],fn=sdkStore.getSubHotItemList(V).filter(Gt=>Gt.hotAttr.type==="rResCanvas"&&Gt.key!==O);if(fn.length>0){const Gt=fn[0].key;sdkStore.updateHotAttrKV(f,"refContentKey",Gt)}else{var uo;const Gt=[],yo=[];sdkStore.getSubHotItemList(V).forEach(Ma=>{(0,Fs.yT)(Ma.hotAttr.type)?Gt.push(Ma):Ma.hotAttr.type!=="rResCanvas"&&yo.push(Ma)});let Do=(0,Fs.Be)(S);const Wo=Gt.sort((Ma,Ya)=>Ma.hotAttr.order-Ya.hotAttr.order).map(Ma=>{const{x:Ya,y:di}=sdkStore.getHotBound(Ma.key);return{...Ma,sup:S,hotAttr:{...Ma.hotAttr,...sdkStore.toAttrXY({x:Ya+Pe,y:di+Ie},Ma.key),...Ma.hotAttr.type==="wSticky"&&Ma.hotAttr.sticky.point.length>0&&(Ma.hotAttr.refWCKey===O||sdkStore.isTrashed(Ma.hotAttr.refWCKey))&&{sticky:{...Ma.hotAttr.sticky,point:[Ma.hotAttr.sticky.point[0]+Pe,Ma.hotAttr.sticky.point[1]+Ie]}},order:++Do}}}),Ro=yo.sort((Ma,Ya)=>Ma.hotAttr.zIndex-Ya.hotAttr.zIndex).map(Ma=>{pn.push(Ma.key);let Ya=null,di=null,ja=null;if(ct){const ri=Ut(Re);Ma.hotAttr.zIndex<re?di=ri.anchorZIndex+1:ri.theDetachedZ!==null?(di=ri.anchorZIndex+1,ja=ri.theDetachedZ):(ja=ri.anchorZIndex+1,di=ri.anchorZIndex+2),vt.set(Re,{...ri,anchorZIndex:di,theDetachedZ:ja})}else{const ri=sdkStore.getHotAABB(Ma.key),ks=[ri[0]+Pe,ri[1]+Ie,ri[2]+Pe,ri[3]+Ie];Ya=We(ks,Ce.hotAttr.type==="rResCanvas"?Ce.key:null)||S;const ti=Ut(Ya);Ma.hotAttr.zIndex<re?di=ti.anchorZIndex+1:ti.theDetachedZ!==null?(di=ti.anchorZIndex+1,ja=ti.theDetachedZ):(ja=ti.anchorZIndex+1,di=ti.anchorZIndex+2),vt.set(Ya,{...ti,anchorZIndex:di,theDetachedZ:ja})}return{...Ma,sup:Ya,hotAttr:{...Ma.hotAttr,...sdkStore.toAttrXY({x:Ma.hotAttr.x+Pe,y:Ma.hotAttr.y+Ie},Ma.key,Ya),zIndex:di}}}),ra=Ut(Re);let ka=ra.anchorZIndex;const pa=ra.aboveAnchorList.map(Ma=>(ka+=1,{...Ma,hotAttr:{...Ma.hotAttr,zIndex:ka}}));vt.set(Re,{...ra,anchorZIndex:ka}),sdkStore.updateHotItemBatch(Wo.concat(Ro)),(uo=rootSdk.cmtStore.getHotItem(V))==null||uo.sub.forEach(Ma=>{const Ya=rootSdk.cmtStore.getHotItem(Ma).hotAttr;if(!rootSdk.cmtStore.getHotItem(S)){const di=(0,cn.$S)(S);rootSdk.cmtStore.updateHotItem(di)}rootSdk.cmtStore.moveHotItem(Ma,S),rootSdk.cmtStore.updateHotAttrMerge(Ma,{x:Ya.x+Pe,y:Ya.y+Ie})}),sdkStore.deleteHotItem(f)}if(Y.length>0){const Gt=(0,tt.cF)("ww");pn.push(Gt);const yo=Ut(Re);let Do=yo.anchorZIndex;const Wo=yo.theDetachedZ||++Do;sdkStore.summonWWrap(Y,Re,Gt,pe,Wo,!0,!0);const Ro=sdkStore.getHotKeyListAABB(Y),ra=Ro[2]-Ro[0],ka=Ro[3]-Ro[1];sdkStore.updateHotAttrMerge(Gt,{...sdkStore.toAttrXY({x:Pe+ra/2,y:Ie+ka/2},Gt)});const pa=yo.aboveAnchorList.map(Ma=>(Do+=1,{...Ma,hotAttr:{...Ma.hotAttr,zIndex:Do}}));sdkStore.updateHotItemBatch(pa),vt.set(Re,{...yo,anchorZIndex:Do})}sdkStore.deleteHotItem(O),sdkStore.combineMerge("basket-detach"),b({type:"entry:comment:rebuild:commentList"}),b({type:"entry:select:items",payload:{cids:pn}});const Mn=u.ui.fixedLayout.modals.previewModal;if(Mn!=null&&Mn.isOpen){const Gt=Mn.basketKey;Gt&&sdkStore.isTrashed(Gt)&&b({type:"modal:update:state",payload:{previewModal:{isOpen:!1}}})}},"entry:finish:resize:canvas:within:basket":L=>{let{getState:P,dispatch:b}=L;const u=P(),f=(0,It.jI)(u),g=(0,It.bt)(u),S=(0,It.PR)(u);if(!f&&!g)return;const{hotAttr:_,key:O}=S,{w:V,h:H}=_,Y=_.type===N.x.WBasket?_==null?void 0:_.refRBPageKey:O,re=sdkStore.getSubHotItemList(Y).filter(Ie=>Ie.hotAttr.type===N.x.Canvas),{keyRefWCToKeyTear:pe,preDragSnapshot:Ce}=V0(O);sdkStore.combineMergeMark("resize-basket");for(const{key:Ie,hotAttr:{x:Re,y:We,w:ct,h:vt}}of re){const{x:Ut,y:pn}=sdkStore.getSourceHotItem(Ie).hotAttr,fn=ct*.5,uo=vt*.5;Ut<0-fn?sdkStore.updateHotAttrKV(Ie,"x",Re-Ut-fn):Ut>V+fn&&sdkStore.updateHotAttrKV(Ie,"x",Re-Ut+V+fn),pn<0-uo?sdkStore.updateHotAttrKV(Ie,"y",We-pn-uo):pn>H+uo&&sdkStore.updateHotAttrKV(Ie,"y",We-pn+H+uo)}const Pe=K1(pe,Ce);b({type:"entry:widget:change",payload:{flatChgList:Pe}}),sdkStore.combineMerge("resize-basket")},"entry:layout:basket-canvas":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:f={canUpdateTear:!0}}=P;const g=b(),S=(0,It.jI)(g),_=(0,It.bt)(g),O=(0,It.PR)(g),V=(0,I.UV)(g);if(!S&&!_||!O)return;const H=f==null?void 0:f.canUpdateTear;sdkStore.setPCXYConfigMap(void 0);const Y=(0,_p.fR)(O.key);if(sdkStore.setPCXYConfigMap(Y),H){const{keyRefWCToKeyTear:re,preDragSnapshot:pe}=V0(O.key,H),Ce=K1(re,pe);u({type:"entry:widget:change",payload:{flatChgList:Ce}})}V.triggerSnapshotChange(Object.keys(Y)),u({type:"entry:refresh:link-list"})},"entry:basket:muban:resetOwa":L=>{let{getState:P,dispatch:b}=L;const u=P(),f=(0,De.p$)(u);if(sdkStore.combineMergeMark("owa-reset-to-muban"),f.forEach(_=>sdkStore.resetOwa(_)),f.length===1){var g,S;const _=((g=sdkStore.getHotItem(f[0]))==null||(g=g.hotAttr)==null?void 0:g.interactions.length)>0?(S=sdkStore.getHotItem(f[0]))==null||(S=S.hotAttr)==null?void 0:S.interactions.map(O=>O.key):"";b({type:"links:active:link",payload:{cid:_}})}b({type:"entry:refresh:link-list"}),sdkStore.combineMerge("owa-reset-to-muban")},"entry:basket:muban:commitOwa":L=>{let{getState:P,dispatch:b}=L;const u=P(),f=(0,De.p$)(u);sdkStore.combineMergeMark("owa-commit-to-muban");const g=[];f.forEach(S=>{const _=sdkStore.getHotItem(S),O=_==null?void 0:_.hotAttr.refRBPageKey;if(O){const V=sdkStore.getHotItem(O);V&&g.push({...V,hotAttr:{...V.hotAttr,mtime:rootSdk.fssCmt.getClockStore().getMtime()}})}sdkStore.commitOwa(S)}),sdkStore.updateHotItemBatch(g),sdkStore.combineMerge("owa-commit-to-muban")}},Y1={"entry:set:carousel:attr":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:f}=P;const{attr:g,value:S}=f,_=b(),O=(0,De.nE)(_);if(!(O!=null&&O.length))return;const V=O.map(H=>({key:H.key,hotAttr:{carousel:{...H.hotAttr.carousel,[g]:S}}}));u({type:"entry:widget:change",payload:{flatChgList:V}})},"entry:replace:carousel:image":(L,P)=>{var b,u;let{getState:f,dispatch:g}=L,{payload:S}=P;const{image:_,resetSelectIndex:O=!0,carouselImageIndex:V,carousel:H}=S,Y=f(),re=H!=null?H:(0,De.nE)(Y)[0],pe=(b=V!=null?V:(0,Wc.Yg)(Y))!=null?b:0;if((re==null?void 0:re.hotAttr.type)!==N.x.WCarousel)return;const Ce=JSON.parse(JSON.stringify(re==null||(u=re.hotAttr.carousel)==null?void 0:u.slides));Ce!==void 0&&(Ce[pe].asset=(0,$.q4)("Carousel",_).key,Ce[pe].fillType="fill",g({type:"entry:set:carousel:attr",payload:{attr:"slides",value:Ce}}),O&&g({type:"setting:select:carousel:image",payload:{selectCarouselImageIndex:null}}))},"entry:carousel:image:displayIndex:update":(L,P)=>{let{dispatch:b}=L,{payload:u}=P;b({type:"entry:set:carousel:attr",payload:{attr:"displayIndex",value:u}})}};var Pp=s(18390),Uu=s(68033);const Hh={"entry:set:chart:series:color:attr":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{attr:f,color:g}}=P;const S=b(),_=(0,De.nE)(S);if(!(_.length>0))return;const V=_.map(H=>{const{key:Y,hotAttr:{chartData:re}}=H,pe=(0,Uu.xH)(f),Ce=so()(re.series);Ce[pe].color=g;const Pe={...re,series:Ce};return{key:Y,hotAttr:{chartData:Pe}}});u({type:"entry:widget:change",payload:{flatChgList:V}})},"entry:set:chart:mapSolidColor":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{color:f}}=P;const g=b(),S=(0,De.nE)(g);if(!(S.length>0))return;const O=S.map(V=>{const{key:H,hotAttr:{chartConfig:Y}}=V,re={...Y,mapSolidColor:f};return{key:H,hotAttr:{chartConfig:re}}});u({type:"entry:widget:change",payload:{flatChgList:O}})},"entry:set:chart:chartData:attr":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{attr:f,value:g}}=P;const S=b(),_=(0,De.nE)(S);if(!(_.length>0))return;const V=_.map(H=>{const{key:Y,hotAttr:{chartData:re}}=H,pe={...re,[f]:g};return{key:Y,hotAttr:{chartData:pe}}});u({type:"entry:widget:change",payload:{flatChgList:V}})},"entry:chart:in:edit":async(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{widget:f}}=P;const{key:g,hotAttr:S}=f;if(u({type:"entry:select:items",payload:{cids:[g]}}),u({type:"mode:update:state",payload:{isEditChartDataCid:g}}),![Pp.N.progress_chart,Pp.N.gauge_chart].includes(S.chartConfig.chartType)){const _=b().ui.fixedLayout.modals.chartTableSettingModal;MB.f.editing=!_.isOpen,u({type:"modal:update:state",payload:{chartTableSettingModal:{isOpen:!_.isOpen}}})}},"entry:chart:out:edit":L=>{let{dispatch:P}=L;MB.f.editing=!1,P({type:"modal:update:state",payload:{chartTableSettingModal:{isOpen:!1}}}),P({type:"mode:update:state",payload:{isEditChartDataCid:""}})}};var Gh=s(52049),C2=s(51320),sl=s(70422),X1=s(56202),jc=s(44628),ic=s(93971),rs=s(20166),is=s(34697),Q1=s(96427),Qd=s(55584),Ou=s(9233),Zh=s(29158),S0=s(67167);const p1={"entry:toggle:paste:direct:by:contextmenu":async L=>{let{getState:P,dispatch:b}=L;const u=await(0,Vr.LD)({isShowPrompt:!0});await(0,bl.$H)({hasNotice:!1})?u&&(u.data?b({type:"entry:paste:items:into:current-page",payload:{triggerType:"contextmenu",hasPrompt:!0}}):b({type:"entry:paste:text:create",payload:{content:u.html}})):b({type:"entry:prepare:paste:by:contextmenu",payload:{}})},"entry:copy:items":async(L,P)=>{let{getState:b,dispatch:u}=L,{payload:f}=P;const{needPasteProperties:g}=f||{},S=b(),_=(0,De.nE)(S);if(_.length>0){var O;const V=_.sort((0,Zl.tU)()).map(Ce=>Ce.key),H=_.some(Ce=>{var Pe;return((Pe=Ce.hotAttr)==null?void 0:Pe.type)===dt.Z6.canvas}),Y=(0,ta.dk)(V),re=Y?sdkStore.getHotItem(Y).hotAttr.type===dt.Z6.canvas:!1,pe=sdkStore.saveSubtree(V,re?{x:sdkStore.getHotAABB(Y)[0],y:sdkStore.getHotAABB(Y)[1]}:0);await(0,Vr.NO)({data:pe,commonKeyRndSup:Y,isIncludeCanvas:H,isUnderSameCanvas:re,currentProjectCid:(O=(0,r.PL)(S))==null?void 0:O.cid}),u({type:"entry:update:toolbar"})}g&&u({type:"entry:copy:items:properties"})},"entry:duplicate:items":(L,P)=>{let{dispatch:b}=L,{payload:{shift:u}}=P;b({type:"entry:copy:items"}),b(u?{type:"entry:paste:items:at",payload:{clientPos:{clientX:MB.clientX,clientY:MB.clientY}}}:{type:"entry:paste:items:into:current-page",payload:{triggerType:"shortcut"}})},"entry:prepare:paste:by:shortcut":async(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{e:f}}=P;const g=b(),S=(0,Pt.aJ)(g);if(document.querySelector("input:focus, textarea:focus, .widget div[contenteditable]:focus, .setting-drag-menu-container div[contenteditable]:focus, .annotateEditorItem div[contenteditable]:focus")||MB.f.isEditTable)return;if(MB.f.editing&&!S){f.preventDefault(),S2(f);return}let{pasteType:_,pasteTypeList:O}=await J1(f);if(O.length>2&&_==="FILES"&&(_=O[1]),_==="FILES"&&((0,X1.H8)()||(0,X1.gm)()))u({type:"entry:paste:images:by:shortcut",payload:{e:f}});else if(_==="TEXT"){const V=f.clipboardData.getData("text/plain");u({type:"entry:paste:text:by:shortcut",payload:{e:f,pasteType:_,plainText:V}})}else if(_==="HTML"){const V=f.clipboardData.getData("text/html"),H=await(0,bl.c3)(V,"widget");u(H?{type:"entry:paste:items:into:current-page",payload:{contentFromCBE:H,triggerType:"shortcut"}}:{type:"entry:paste:text:by:shortcut",payload:{e:f,pasteType:_,html:V}})}else if(_==="WIDGET")if(f.preventDefault(),await(0,bl.$H)({hasNotice:!1})){const V=(0,Vr.bC)();if(!V||typeof V!="object")return;V.data?u({type:"entry:paste:items:into:current-page",payload:{triggerType:"shortcut"}}):u({type:"entry:paste:text:create",payload:{e:f,content:V.html}})}else if(await(0,bl.EU)("widget"))u({type:"entry:paste:items:into:current-page",payload:{triggerType:"shortcut"}});else{const V=await(0,bl.oV)({itemType:"text/html"});u({type:"entry:paste:text:create",payload:{e:f,content:V}})}else _==="WIDGET_V7"&&MB.notice({text:"\u6682\u4E0D\u652F\u6301\u7C98\u8D34\u65E7\u7248\u5143\u7D20\uFF0C\u53EF\u901A\u8FC7\u521B\u5EFA\u65B0\u7248\u526F\u672C\u8FC1\u79FB\u6570\u636E\u3002 ",duration:5e3,showClose:!1,CustomChildComponent:(0,hd.At)(I18N.CommonGuides.version_guide_learn_more)})},"entry:prepare:paste:by:contextmenu":async(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{cursorPos:f}}=P;const g=b();let S;if(f){const _=(0,r.Ur)(g).cid,O=(0,r.X_)(g),V=(0,r.ER)(g),H=(0,r.$S)(g),Y=(0,bt.mG)(f,{scale:O,offset:V,viewportRect:H}),re={x:Math.round(Y.x),y:Math.round(Y.y)},pe=(0,T.Tg)(re,_)||_;S={worldPos:Y,keyRndSup:pe}}if(await(0,bl.$H)({hasNotice:!1})){const _=await(0,Vr.LD)({isShowPrompt:!1});_&&(_.data?u({type:"entry:paste:items:at",payload:{clientPos:f}}):u({type:"entry:paste:text:create",payload:{content:_.html,pasteAtData:S}}))}else await(0,bl.oV)({itemType:"image/png"})&&(!await(0,bl.oV)({itemType:"text/plain"})||!await(0,bl.oV)({itemType:"text/html"}))?u({type:"entry:paste:images:by:clipboard",payload:{pasteAtData:S}}):await(0,bl.oV)({itemType:"text/html"})?await(0,bl.EU)("widget")?u(f?{type:"entry:paste:items:at",payload:{clientPos:f}}:{type:"entry:paste:items:into:current-page",payload:{triggerType:"contextmenu"}}):u({type:"entry:paste:text:by:clibpoard",payload:{type:"html",pasteAtData:S}}):await(0,bl.oV)({itemType:"text/plain"})&&u({type:"entry:paste:text:by:clibpoard",payload:{type:"plain",pasteAtData:S}})},"entry:paste:items:into:current-page":async(L,P)=>{var b,u,f,g;let{getState:S,dispatch:_}=L,{payload:{contentFromCBE:O,triggerType:V,hasPrompt:H,isZoom:Y,targetItemKey:re,getWorldPos:pe=mr=>({x:mr[0],y:mr[3]})}}=P;if(document.querySelector("input:focus, textarea:focus")||!(!!O||await(0,Vr.LD)({isShowPrompt:!1})))return;const Pe=S(),Ie=(0,Pt.ul)(Pe),Re=(0,It.jI)(Pe),We=(0,It.bt)(Pe),{isEditingCombo:ct}=(0,gt.r)(Pe),vt=(0,r.Ur)(Pe).cid,Ut=(0,r.X_)(Pe),pn=(0,r.ER)(Pe),fn=(0,r.$S)(Pe),uo=O||await(0,Vr.LD)({isShowPrompt:!H&&V==="contextmenu"});if(!uo)return;const{data:Mn,commonKeyRndSup:Gt,isIncludeCanvas:yo,isUnderSameCanvas:Do,currentProjectCid:Wo,imageUploadTasks:Ro}=uo,ra=await(0,ta.rB)(Mn,Ro);if(Ie.length>0){const{contentFlatTree:mr}=sdkStore.parseSubtree(ra);if(mr.get("B@main").sub.every(pi=>mr.get(pi).attr.T===Gh.H2)){sdkStore.combineMergeMark("paste-mind-nodes");const pi=[];Ie.forEach(ui=>{const tl=sdkStore.loadSubtree(ra,"B@main"),Yi=sdkStore.getSubHotItemList(ui).reduce((Va,Xi)=>Math.max(Va,Xi.hotAttr.order),0),{placement:us,expand:pl}=sdkStore.getHotItem(ui).hotAttr;pl||sdkStore.updateHotAttrKV(ui,"expand",!0),tl.forEach((Va,Xi)=>{const[hs]=sdkStore.getHotItem(sdkStore.getHotItem(Va).hotAttr.refContentKey).sub;sdkStore.moveHotItem(hs,ui),sdkStore.updateHotAttrMerge(hs,{isRoot:!1,order:Yi+Xi+1}),sdkStore.walkHotItemSubtree(hs,Xs=>{sdkStore.updateHotAttrKV(Xs.key,"placement",us)}),sdkStore.deleteHotItem(Va),pi.push(hs)})}),(0,Q1.h)("\u589E\u52A0\u8282\u70B9"),_({type:"mind:update:state:selectedMindNodeKeys",payload:{selectedMindNodeKeys:pi}}),_({type:"entry:mind:update:mind-size"}),sdkStore.combineMerge("paste-mind-nodes");return}else _({type:"mind:update:state:selectedMindNodeKeys",payload:{selectedMindNodeKeys:[]}}),_({type:"mind:update:state",payload:{editMindKey:""}})}if((ct||Re||We)&&yo){MB.notice({text:I18N.SettingPanel.design.widgets_cannot_paste_artboard,type:"warning",duration:3500});return}if(!ra)return;const{contentFlatTree:ka,hotXY:pa,hotAABB:Ma}=sdkStore.parseSubtree(ra),Ya=ka,di=pa,ja=Ma;if(We&&Ya.get("B@ref-muban").sub.includes(We)){MB.notice({text:I18N.SettingPanel.design.master_cannot_nesting,type:"warning"});return}if(ct&&Ya.get("B@ref-muban").sub.length>0){MB.notice({text:I18N.SettingPanel.design.widgets_cannot_paste_master,type:"warning"});return}const ri=re?[re]:(0,De.p$)(Pe),ks=sdkStore.getHotKeyListAABB(ri),ti={scale:Ut/100,size:{w:fn.width,h:fn.height},offset:pn},vi=(0,ta.Dl)(ti,fn.left);if(yo)if(ri.length>0){let mr=ks[2],pi=(0,ta.Q5)(mr,vt);for(;;){if(!pi||pi[0]>mr+ja[2]-ja[0]+50){const ui={x:mr+50,y:ks[1]};_({type:"entry:paste:items",payload:{data:ra,worldPos:ui,keyRndSup:vt,commonKeyRndSup:Gt,isZoom:Y}});break}mr=pi[2],pi=(0,ta.Q5)(mr,vt)}}else if(sdkStore.getHotItem(vt).sub.length){let mr=Gt===vt?ja[2]:-1/0,pi=(0,ta.Q5)(mr,vt);for(mr===-1/0&&(pi?mr=pi[2]:mr=vi.x-(ja[2]-ja[0])/2);;){if(!pi||pi[0]>mr+ja[2]-ja[0]+50){const ui={x:mr+50,y:ja[1]};_({type:"entry:paste:items",payload:{data:ra,worldPos:ui,keyRndSup:vt,commonKeyRndSup:Gt,isZoom:Y}});break}mr=pi[2],pi=(0,ta.Q5)(mr,vt)}}else{const mr={x:vi.x-(ja[2]-ja[0])/2,y:vi.y-(ja[3]-ja[1])/2};_({type:"entry:paste:items",payload:{data:ra,worldPos:mr,keyRndSup:vt,commonKeyRndSup:Gt,isZoom:Y}})}else if(Do)if(ri.length>0)if(ri.every(mr=>sdkStore.getHotItem(mr).hotAttr.type===dt.Z6.canvas)){const mr=ri.map(pi=>{const ui=sdkStore.getHotAABB(pi),{x:tl,y:Yi}=sdkStore.getHotBound(pi),[us,pl]=ui,Va=[us-di.x+ja[0],pl-di.y+ja[1],us-di.x+ja[2],pl-di.y+ja[3]];return{worldPos:(0,kn.cj)(ui,Va)?{x:Va[0],y:Va[1]}:{x:tl-(ja[2]-ja[0])/2,y:Yi-(ja[3]-ja[1])/2},keyRndSup:pi}});_({type:"entry:batch:paste:items",payload:{data:ra,worldPosKeyRndSupList:mr,commonKeyRndSup:Gt}})}else{const mr={x:ks[0],y:ks[3]},pi=(0,ta.dk)(ri)||vt;_({type:"entry:paste:items",payload:{data:ra,worldPos:mr,keyRndSup:pi,commonKeyRndSup:Gt}})}else{const mr=(0,ta.Zb)(ti,fn.left,ja)&&sdkStore.getSubHotItemList(vt).find(ui=>ui.key===Gt)?{x:Math.ceil(ja[0]),y:Math.ceil(ja[1])}:{x:Math.ceil(vi.x-(ja[2]-ja[0])/2),y:Math.ceil(vi.y-(ja[3]-ja[1])/2)},pi=(0,T.Tg)({x:mr.x+.5*(ja[2]-ja[0]),y:mr.y+.5*(ja[3]-ja[1])},vt)||vt;_({type:"entry:paste:items",payload:{data:ra,worldPos:mr,keyRndSup:pi,commonKeyRndSup:Gt}})}else if(ri.length>0)if(ri.every(mr=>sdkStore.getHotItem(mr).hotAttr.type===dt.Z6.canvas)){const mr=ri.map(pi=>{const{x:ui,y:tl}=sdkStore.getHotBound(pi);return{worldPos:{x:ui-(ja[2]-ja[0])/2,y:tl-(ja[3]-ja[1])/2},keyRndSup:pi}});_({type:"entry:batch:paste:items",payload:{data:ra,worldPosKeyRndSupList:mr,commonKeyRndSup:Gt}})}else{const mr=pe(ks),pi=(0,ta.dk)(ri)||vt;_({type:"entry:paste:items",payload:{data:ra,worldPos:mr,newKeyRndSup:pi,commonKeyRndSup:Gt}})}else{const mr=(0,ta.Zb)(ti,fn.left,ja)&&Gt===vt?{x:ja[0],y:ja[1]}:{x:vi.x-(ja[2]-ja[0])/2,y:vi.y-(ja[3]-ja[1])/2},pi=(0,T.Tg)({x:mr.x+.5*(ja[2]-ja[0]),y:mr.y+.5*(ja[3]-ja[1])},vt)||vt;_({type:"entry:paste:items",payload:{data:ra,worldPos:mr,keyRndSup:pi,commonKeyRndSup:Gt}})}const Hr=(b=(u=Ya.get("B@style"))==null?void 0:u.sub)!=null?b:[],Yr=(f=(g=Ya.get("B@ref-muban"))==null?void 0:g.sub)!=null?f:[];if(Hr.length>0||Yr.length>0){var br,zi;const mr=[...(br=Hr.map(pi=>Ya.get(pi)))!=null?br:[],...(zi=Yr.map(pi=>Ya.get(pi)))!=null?zi:[]];_({type:"entry:libStyle:manage:add:lib:from:paste:widget",payload:{subs:mr}})}},"entry:paste:items:at":async(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{clientPos:f,hasPrompt:g}}=P;if(!await(0,Vr.LD)({isShowPrompt:!1})||!u({type:"entry:pre:paste:items"}))return;const _=b(),O=(0,It.jI)(_),V=(0,It.bt)(_),{isEditingCombo:H}=(0,gt.r)(_),Y=(0,r.Ur)(_).cid,re=(0,r.X_)(_),pe=(0,r.ER)(_),Ce=(0,r.$S)(_),Pe=await(0,Vr.LD)({isShowPrompt:!g});if(!Pe)return;const{data:Ie,isIncludeCanvas:Re,commonKeyRndSup:We,imageUploadTasks:ct}=Pe;if((H||O||V)&&Re){MB.notice({text:I18N.SettingPanel.design.widgets_cannot_paste_artboard,type:"warning",duration:3500});return}const vt=await(0,ta.rB)(Ie,ct),Ut=(0,bt.mG)(f,{scale:re,offset:pe,viewportRect:Ce}),pn={x:Math.round(Ut.x),y:Math.round(Ut.y)},fn=Re?Y:(0,T.Tg)(pn,Y)||Y;u({type:"entry:paste:items",payload:{data:vt,worldPos:pn,keyRndSup:fn,commonKeyRndSup:We}})},"entry:batch:paste:items":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{data:f,worldPosKeyRndSupList:g,commonKeyRndSup:S}}=P;const _=b(),O=(0,r.PL)(_),V=(0,r.X_)(_),H=(0,r.ER)(_),Y=(0,r.$S)(_),re=(0,r.eo)(_),pe=(0,De.p$)(_),Ce={scale:V/100,size:{w:Y.width,h:Y.height},offset:H},Pe=(0,ta.Dl)(Ce,Y.left);if(!(0,Oi.z5)(f))return;sdkStore.combineMergeMark("paste-items");const Ie=g.reduce((vt,Ut)=>{const{worldPos:pn,keyRndSup:fn}=Ut,uo=(0,me.Dd)(f,pn,re,pe,S);return[...vt,...uo]},[]);(0,ta.F6)(Ie),(0,ta.gs)(re,Ie),sdkStore.combineMerge("paste-items");const Re=sdkStore.getHotKeyListAABB(Ie);if(!(0,ta.Zb)(Ce,Y.left,Re)){const vt=(Pe.x-(Re[0]+(Re[2]-Re[0])/2))*V/100;u({type:"design:set:canvas:offset",payload:{offset:{x:H.x+vt,y:H.y}}})}let We=!1;if(Ie.forEach(vt=>{sdkStore.getHotItem(vt).hotAttr.type===N.x.WMind&&(We=!0,u({type:"entry:mind:update:mind-size",payload:{keyMindToUpdateSize:vt,resizeOrigin:"tl"}}))}),We&&(0,ic.gJ)("\u7C98\u8D34\u521B\u5EFA"),u({type:"entry:refresh:link-list"}),u({type:fe.y.entryKey["font:cloudFontExtList:refresh"]}),u({type:"entry:clear:selection"}),u({type:"entry:select:items",payload:{cids:Ie}}),u({type:"entry:layout:basket-canvas"}),Ie&&Ie.length===1){var ct;const vt=(ct=sdkStore.getHotItem(Ie[0]))==null?void 0:ct.hotAttr;(0,ic.lF)(vt,O)}},"entry:paste:items":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{data:f,worldPos:g,keyRndSup:S,newKeyRndSup:_,commonKeyRndSup:O,isPaste:V=!0,isZoom:H}}=P;const Y=b(),re=(0,r.PL)(Y),pe=(0,r.X_)(Y),Ce=(0,r.ER)(Y),Pe=(0,r.$S)(Y),Ie=(0,r.eo)(Y),Re=(0,De.p$)(Y),We=(0,It.bt)(Y),{isEditingCombo:ct}=(0,gt.r)(Y),vt={scale:pe/100,size:{w:Pe.width,h:Pe.height},offset:Ce},Ut=(0,ta.Dl)(vt,Pe.left);if(!(0,Oi.z5)(f,g))return;const{contentFlatTree:pn}=sdkStore.parseSubtree(f);if(pn&&We&&pn.get("B@ref-muban").sub.includes(We)){MB.notice({text:I18N.SettingPanel.design.master_cannot_nesting,type:"warning"});return}if(ct&&pn.get("B@ref-muban").sub.length>0){MB.notice({text:I18N.SettingPanel.design.widgets_cannot_paste_master,type:"warning"});return}sdkStore.combineMergeMark("paste-item-single");const fn=_||Ie,uo=(0,me.Dd)(f,g,fn,Re,O);(0,ta.F6)(uo),(0,ta.gs)(fn,uo);const Mn=sdkStore.getHotKeyListAABB(uo);if(!(0,ta.Zb)(vt,Pe.left,Mn)){const Do=(Ut.x-(Mn[0]+(Mn[2]-Mn[0])/2))*pe/100;u({type:"design:set:canvas:offset",payload:{offset:{x:Ce.x+Do,y:Ce.y}}})}let Gt=!1;if(uo.forEach(Do=>{sdkStore.getHotItem(Do).hotAttr.type===N.x.WMind&&(Gt=!0,u({type:"entry:mind:update:mind-size",payload:{keyMindToUpdateSize:Do,resizeOrigin:"tl"}}))}),sdkStore.combineMerge("paste-item-single"),Gt&&V&&(0,ic.gJ)("\u7C98\u8D34\u521B\u5EFA"),u({type:"entry:refresh:link-list"}),u({type:fe.y.entryKey["font:cloudFontExtList:refresh"]}),u({type:"entry:clear:selection"}),u({type:"entry:select:items",payload:{cids:uo}}),H&&u({type:"entry:design:zoom:selection"}),u({type:"entry:publish:create:items:success",payload:{newKeys:uo}}),u({type:"entry:layout:basket-canvas"}),uo&&uo.length===1){var yo;const Do=(yo=sdkStore.getHotItem(uo[0]))==null?void 0:yo.hotAttr;(Do==null?void 0:Do.type)===N.x.Canvas?(0,rs.mB)({page:Do}):(0,ic.lF)(Do,re)}},"entry:paste:images:by:clipboard":async(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{pasteAtData:f}}=P;const g=b(),{isExperience:S,isLoggedExperience:_}=(0,r.W4)(g);if(S||_){MB.notice({text:I18N.LibraryContainer.un_save_tips});return}const O=await navigator.clipboard.read(),V=[];for(const H of O){if(!H.types.includes("image/png"))continue;const Y=await H.getType("image/png");V.push(Y)}V.length!==0&&u({type:"entry:paste:images:command",payload:{files:V,pasteAtData:f}})},"entry:paste:images:by:shortcut":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{e:f}}=P;const g=b(),{isExperience:S,isLoggedExperience:_}=(0,r.W4)(g);if(S||_){MB.notice({text:I18N.LibraryContainer.un_save_tips});return}const O=Array.from(f.clipboardData.items).filter(V=>V.type.match(/^image\//)).map(V=>V.getAsFile()).filter(V=>V);O.length!==0&&u({type:"entry:paste:images:command",payload:{files:O,givinPosition:void 0}})},"entry:paste:images:command":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{files:f,pasteAtData:g}}=P;const S=b(),_=(0,r.Ur)(S),O=(0,r.PL)(S),V=(0,r.HW)(S),H=(0,r.wA)(S),Y=(0,Pt.ul)(S),{isExperience:re,isLoggedExperience:pe}=(0,r.W4)(S);if(re||pe){MB.notice({text:I18N.LibraryContainer.un_save_tips});return}(0,ko.i3)({files:f,rootProject:O,isCreate:Y.length!==1,callback:Ce=>{if(Y.length===1)u({type:"entry:mind:insert:asset",payload:{asset:Ce}});else{const Pe=Ce.type===N.x.WIcon?(0,$.kk)(Ce):(0,$.BL)(Ce);g?(Pe.x=g.worldPos.x,Pe.y=g.worldPos.y,u({type:"entry:batch:create:items",payload:{data:[{items:[Pe],width:Pe.width,height:Pe.height}],offset:{top:0,left:0},sup:g.keyRndSup}})):u({type:"entry:batch:create:items",payload:{data:[{items:[Pe],width:Pe.width,height:Pe.height}]}})}}},V,H)},"entry:cut:items":L=>{let{getState:P,dispatch:b}=L;const u=P(),f=(0,De.p$)(u),g=f.filter(S=>!(0,Oe.OO)(S));if((0,jt.td)(f)){MB.notice({text:"\u5B9E\u4F8B\u5185\u56FE\u5C42\u4E0D\u652F\u6301\u526A\u5207/\u5220\u9664",type:"warning"});return}g.length!==0&&(b({type:"entry:copy:items"}),b({type:"entry:delete:selected-items"}))},"entry:copy:items:properties":L=>{let{getState:P}=L;const b=P(),u=(0,De.nE)(b);if((0,jt.pH)(u)){const f=(0,C2.g)(b);(0,S0.vz)(f)}},"entry:paste:items:properties":async(L,P)=>{let{getState:b,dispatch:u}=L,{payload:f}=P;const g=b(),S=(0,De.nE)(g),_=(0,sl.zX)(g),O=(0,Pt.fo)(g),V=fe.y.query.getMissFontHiKeySet(g),{canPaste:H,trees:Y}=await(0,Vr.FR)(S);if(H){sdkStore.combineMergeMark("paste-propertities");const Ce=await(0,S0.hS)(Y,_,O,V);if(Ce!=null&&Ce.length){var re,pe;await u({type:"entry:widget:change",payload:{flatChgList:Ce}});const Pe=(re=Ce[0])==null||(re=re.hotAttr)==null||(re=re.refStyles)==null?void 0:re.text,Ie=(pe=Ce[0])==null||(pe=pe.hotAttr)==null||(pe=pe.refStyles)==null?void 0:pe.appear;if(Pe){const Re=sdkStore.getHotItem(Pe);Re&&u({type:"settings:update:currentTextRefStyle",payload:Re})}if(Ie){const Re=sdkStore.getHotItem(Ie);Re&&u({type:"settings:update:currentAppearRefStyle",payload:Re})}(0,Li.Xq)(Ce.map(Re=>(0,gi.Op)(Re.key)))}sdkStore.combineMerge("paste-propertities")}},"entry:delete:selected-items":L=>{let{getState:P,dispatch:b}=L;const u=P();if((0,jt.td)((0,De.p$)(u))){MB.notice({text:"\u5B9E\u4F8B\u5185\u56FE\u5C42\u4E0D\u652F\u6301\u526A\u5207/\u5220\u9664",type:"warning"});return}const f=(0,r.eo)(u),g=(0,ta.Ar)((0,De.p$)(u).filter(re=>!(0,Oe.OO)(re))),S=(0,It.jI)(u),_=(0,It.bt)(u),O=u.ui.fixedLayout.modals.previewModal;if(b({type:"entry:clear:selection"}),sdkStore.combineMergeMark("delete-items"),S||_){var V,H,Y;const re=S?(V=sdkStore.getHotItem(S))==null||(V=V.hotAttr)==null?void 0:V.refRBPageKey:_,pe=S?(H=sdkStore.getHotItem(S))==null||(H=H.hotAttr)==null?void 0:H.refContentKey:(Y=sdkStore.getHotItem(_))==null||(Y=Y.hotAttr)==null?void 0:Y.defaultCanvasKey,Pe=sdkStore.findAllTypeUnder(re,N.x.Canvas).map(Ie=>Ie.key).every(Ie=>g.includes(Ie))?g.filter(Ie=>Ie!==pe):g;b({type:"entry:basket:delete",payload:{removeList:Pe}})}else sdkStore.deleteHotItemBatch(g);if((0,ta.hf)(g,f,b),(0,ta.gs)(f,[]),b({type:"entry:refresh:canvas:order",payload:{newSelection:g,combineMergeUndo:"delete-items"}}),b({type:"entry:widget:delete",payload:{keys:g,shouldBreakLayerUICache:!0,shouldRefreshLinkList:!0,shouldBreakCanvasUICache:!0}}),b({type:"elbow:update",payload:{isShowWidgetPopup:!1}}),b({type:"entry:findReplacePanel:remove:findSelectWidgetCid",payload:{selections:g}}),O!=null&&O.isOpen){const re=g.map(pe=>{const Ce=sdkStore.getHotItem(pe);return Ce.hotAttr.type===N.x.WBasket?Ce:null}).filter(Boolean);re!=null&&re.length&&re.some(Ce=>Ce.key===O.basketKey)&&b({type:"modal:update:state",payload:{previewModal:{isOpen:!1}}})}},"entry:refresh:canvas:order":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:f={newSelection:[],combineMergeUndo:null}}=P;const g=b(),S=(0,r.Ur)(g),{combineMergeUndo:_,newSelection:O}=f||{};if(!S)return;sdkStore.getSubHotItemList(S.cid).filter(H=>{var Y;return((Y=H.hotAttr)==null?void 0:Y.type)===N.x.Canvas&&!O.includes(H.key)}).sort((H,Y)=>Y.hotAttr.zIndex-H.hotAttr.zIndex).sort((H,Y)=>{var re,pe;return((re=H.hotAttr)==null?void 0:re.order)-((pe=Y.hotAttr)==null?void 0:pe.order)}).forEach((H,Y)=>{const{key:re,hotAttr:{order:pe}}=H;pe!==Y+1&&sdkStore.updateHotAttrKV(re,"order",Y+1)}),_&&sdkStore.combineMerge(_)},"entry:paste:text:by:shortcut":async(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{e:f,pasteType:g,html:S,plainText:_}}=P;(0,Oi._c)({type:N.x.WImage})&&u(g==="HTML"?{type:"entry:paste:text:create",payload:{e:f,content:S}}:{type:"entry:paste:text:resolve:plain",payload:{e:f,content:_}})},"entry:paste:text:by:clibpoard":async(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{type:f,pasteAtData:g}}=P;if((0,Oi._c)({type:N.x.WImage}))if(f==="plain"){const S=await(0,bl.oV)({itemType:"text/plain"});u({type:"entry:paste:text:resolve:plain",payload:{pasteAtData:g,content:S}})}else{const S=await(0,bl.oV)({itemType:"text/html"});u({type:"entry:paste:text:create",payload:{content:S,pasteAtData:g}})}},"entry:paste:text:resolve:plain":async(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{e:f,content:g,pasteAtData:S}}=P;const _=g.replace(jc.Qt,"");if(jc.Bq.test(_))f==null||f.preventDefault(),u({type:"entry:paste:svg",payload:{pastedPlainText:_,pasteAtData:S}});else if(q1(g)==="TEXT"){const V=g.split("\n").map(H=>"<p>"+H+"</p>").join("");u({type:"entry:paste:text:create",payload:{e:f,content:V,pasteAtData:S}})}},"entry:paste:text:create":async(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{e:f,content:g,pasteAtData:S}}=P;const _=b(),O=(0,Pt.ul)(_);if(g)if(O.length>0){f==null||f.preventDefault();const V=(0,Qd.Ld)({html:g,isClearStyle:!0});let H="";for(const Y of Object.values(V.blocks))H+=Y.text;u({type:"entry:mind:add:node-mind",payload:{defaultText:H,type:is.eB.CHILD_LEVEL}})}else u({type:"entry:paste:text:from:clipboard",payload:{html:g,pasteAtData:S}})},"entry:paste:svg":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{pastedPlainText:f,pasteAtData:g}}=P;const S=b(),_=(0,r.PL)(S),O=(0,r.HW)(S),V=(0,r.wA)(S),H=new Blob([f],{type:"image/svg+xml"}),Y=new File([H],I18N.w.svg_icon_button+".svg",{type:"image/svg+xml"});/<image/.test(f)?(0,ko._E)({imageFiles:[Y],svgFilesCount:0,allCount:1,rootProject:_,callback:async re=>{const pe=(0,$.BL)(re);await u({type:"entry:batch:create:items",payload:{data:[{items:[pe],width:pe.width,height:pe.height}]}})}},!1,O,V):(0,ko.pD)({svgFiles:[Y],rootProject:_,allCount:1,callback:async re=>{const pe={...(0,$.kk)(re),x:0,y:0};g?(pe.x=g.worldPos.x,pe.y=g.worldPos.y,await u({type:"entry:batch:create:items",payload:{data:[{items:[pe],width:pe.width||pe.w,height:pe.height||pe.h}],offset:{top:0,left:0},sup:g.keyRndSup}})):await u({type:"entry:batch:create:items",payload:{data:[{items:[pe],width:pe.width||pe.w,height:pe.height||pe.h}]}})}},O,V)},"entry:copy:canvas":L=>{let{getState:P,dispatch:b}=L;const u=P(),f=(0,De.nE)(u).filter(S=>S.hotAttr.type===N.x.Canvas);if(f.length>0){var g;const S=f.map(H=>H.key),_=(0,ta.dk)(S),O=_?sdkStore.getHotItem(_).hotAttr.type===dt.Z6.canvas:!1,V=sdkStore.saveSubtree(S,O?{x:sdkStore.getHotAABB(_)[0],y:sdkStore.getHotAABB(_)[1]}:0);(0,Vr.NO)({data:V,commonKeyRndSup:_,isIncludeCanvas:!0,isUnderSameCanvas:O,currentProjectCid:(g=(0,r.PL)(u))==null?void 0:g.cid}),b({type:"entry:update:toolbar"})}},"entry:cut:canvas":L=>{let{getState:P,dispatch:b}=L;const u=P(),f=(0,De.p$)(u).filter(S=>{var _;return((_=sdkStore.getHotItem(S))==null||(_=_.hotAttr)==null?void 0:_.type)===N.x.Canvas}),g=f.filter(S=>!(0,Oe.OO)(S));if((0,jt.td)(f)){MB.notice({text:"\u5B9E\u4F8B\u5185\u56FE\u5C42\u4E0D\u652F\u6301\u526A\u5207/\u5220\u9664",type:"warning"});return}g.length!==0&&(b({type:"entry:copy:items"}),b({type:"entry:delete:selected-items"}))}},J1=async L=>{const b=L.clipboardData.types;let u;const f=[];for(let O=0;O<b.length;O++){const V=b[O];(V==="Files"||V.match(/^image\//))&&(u="FILES",f.push("FILES"))}L.clipboardData.getData("text/html")&&(u||(u="HTML"),f.push("HTML"));const S=L.clipboardData.getData("text/plain"),_=q1(S);return _&&(u||(u=_),f.push(_)),{pasteType:u,pasteTypeList:f}},q1=L=>{if(/COPIED__MB__WIDGET_V7/.test(L))return"WIDGET_V7";if(/COPIED__MB__WIDGET/.test(L))return"WIDGET";if(L)return"TEXT"},S2=L=>{const P=L.clipboardData.getData("text/plain");let b;/\r/.test(P)?b=P.replace(/\r\n\r\n/g,"\n"):b=P.replace(/\n\n/g,"\n"),document.execCommand("insertText",!1,b)},Kh=(L,P)=>{const b=createFlatStore(createInitialFlatTree(),createClockStore({})),u=createSdkStore(b),f=newRBPage("",9,10,10,"",0,0,""),g={key:createKey("rbp"),hotAttr:f,sup:KEY_RB_MAIN,sub:[]};u.updateHotItem(g);const S=u.loadSubtreeTL(L,g.key,P.x,P.y),_=[];return S.forEach(O=>{const V=u.getHotItem(O);V&&![WidgetType.WTear,WidgetType.WSticky].includes(V.hotAttr.type)&&_.push(V)}),getIsSelectItemsDisabledForCode(_,u)};var fd=s(13235),Fu=s(40033);function ed(L,P,b,u){const f=[];return L.forEach(g=>{let{items:S,width:_,height:O}=g;if(S.length===0)return;const V=S[0].type===N.x.Canvas,{top:H,left:Y}=P(_,O,V);S.forEach(re=>{if(re.type!==N.x.WWrap){let pe=ze.Z.xy(Y+re.x-re.w/2,H+re.y-re.h/2);const{sup:Ce}=b(pe,re);re.sup=re.gid||Ce,pe=u(pe,re),re.x=pe.x+re.w/2,re.y=pe.y+re.h/2}re.name=(0,Za.aw)(re),f.push(re)})}),f}var jd=s(65209),Ll=s(76431),$1=s(49425);const u1={"entry:batch:create:items":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{data:f,offset:g,sup:S=MB.getCurrentScreen().cid,source:_,isShouldCalcSup:O=!1,isSkipUpdateGuides:V=!1}}=P;const H=b(),Y=(0,r.X_)(H),re=(0,De.nE)(H),pe=(0,I.UV)(H),Ce=(0,r.eo)(H),Pe=(0,De.p$)(H),Ie=sdkStore.getSubHotItemList(Ce).filter(Mn=>{let{hotAttr:{type:Gt}}=Mn;return Gt===N.x.Canvas}).map(Mn=>{let{key:Gt}=Mn;return Gt}),Re=(0,j.ZZ)(Pe),We=S,ct=ed(f,(Mn,Gt,yo)=>{const Do=!!(yo&&(Ie!=null&&Ie.length)),Wo=re.filter(ka=>ka.hotAttr.type===N.x.Canvas),Ro=!!(yo&&Wo.length>0);let ra;return g?ra=g:Ro?ra=(0,Q.hw)(Ce,Mn,Wo):Do?ra=(0,Q.Fw)(pe.getRenderableSubHotItems(pe.getRootSnapshot()),{width:Mn,height:Gt,scale:Y},re):ra=(0,Q.u5)({width:Mn,height:Gt,scale:Y}),{top:ra.top,left:ra.left}},(Mn,Gt)=>{if((Gt==null?void 0:Gt.type)===N.x.Canvas)return{sup:Ce};if((Gt==null?void 0:Gt.type)===N.x.WSticky||(Gt==null?void 0:Gt.type)===N.x.WTear)return{sup:Ce};if(Re)return{sup:Re};{const yo=[Mn.x,Mn.y,Mn.x+Gt.w,Mn.y+Gt.h];return{sup:(0,Zl.G9)(Ce,[])(yo)||Ce}}},(Mn,Gt)=>{if(Gt.type===N.x.Canvas||Gt.gid)return Mn;const yo={x:Mn.x+Gt.w/2,y:Mn.y+Gt.h/2,w:Gt.w,h:Gt.h},{x:Do,y:Wo}=sdkStore.toAttrXY(yo,"",Gt.sup);return{x:Do-Gt.w/2,y:Wo-Gt.h/2}});if(ct.forEach(Mn=>{if(Mn.type===N.x.WImage){const{image:{imageRef:Gt,imageClipType:yo,imageRectOriginalWidth:Do}}=Mn;yo!=="none"&&Gt&&Do?Mn.image=(0,Er.aR)(Mn):Mn.image=(0,Er.VX)(Mn,{originWidth:Mn.w,originHeight:Mn.h}).image}}),ct.length===0)return;const vt=ct.map(Mn=>{const{sup:Gt,...yo}=Mn;let Wo=(0,jd._)(Gt);if(yo.type===N.x.WSticky||yo.type===N.x.WTear){var Ro;const ka=((Ro=(0,Fs.UR)(Gt).at(-1))==null?void 0:Ro.hotAttr.order)||0;Wo=Me.Mh+ka}const ra=yo.type===N.x.Canvas?"rc":"";return{key:(0,tt.cF)(ra),sup:Gt,sub:[],hotAttr:{...yo,zIndex:Wo}}}),Ut=(vt==null?void 0:vt.length)===1&&vt[0].hotAttr.type===N.x.Canvas&&!vt[0].hotAttr.asOverlay,pn=vt.some(Mn=>[N.x.WTear,N.x.WSticky].includes(Mn.hotAttr.type));if(Ut&&sdkStore.combineMergeMark("create-canvas"),sdkStore.updateHotItemBatch(vt),Ut){const Mn=vt[0],Gt=(0,$1.y2)(Mn);Gt!==void 0&&(sdkStore.updateHotItemBatch(Gt),Gt.length===1?Mn.hotAttr.stickyHeaderHeight=Gt[0].hotAttr.h:(Mn.hotAttr.stickyHeaderHeight=Gt[0].hotAttr.h,Mn.hotAttr.stickyFooterHeight=Gt[1].hotAttr.h))}u({type:"entry:widget:change",payload:{flatChgList:vt,isCreateWidget:!0,sup:We,shouldBreakLayerUICache:!0}}),u({type:"entry:refresh:link-list"}),ct.length===1&&([N.x.WRichText,N.x.WTear,N.x.WSticky].includes(ct[0].type)?(ct[0].type===N.x.WSticky?u({type:"entry:ST:drag:sticky:point:real:bind",payload:{stickyKey:vt[0].key,createSource:_}}):ct[0].type===N.x.WTear&&u({type:"entry:ST:tear:bind",payload:{tearKey:vt[0].key,afterCreate:!0}}),u({type:"entry:set:editing:cid",payload:{item:{key:vt[0].key,hotAttr:ct[0]}}})):ct[0].type===N.x.WSwimlane&&u({type:"flow:update:clear"}));const uo=[vt.at(-1).key];u({type:"entry:select:items",payload:{cids:uo}}),u({type:"entry:expend:groupOrCanvasOrBasket",payload:{cids:uo}}),pn&&u({type:"toolbar:update:state",payload:{isShowSticky:!0}}),Ut&&(u({type:"entry:update:free:widget:by:create:canvas",payload:{canvasKey:vt[0].key}}),sdkStore.combineMerge("create-canvas")),u({type:"entry:publish:create:items:success",payload:{newItems:ct,sup:S,isSkipUpdateGuides:V,newHotItemKeys:uo}})},"entry:create:svg_icon_path:by:mousedown":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:f}=P;const g=b(),S=(0,y.QU)(g),_=(0,y.Ct)(g),O=(0,Fu.G)(g),V=(0,r.Pz)(g),H=(0,r.PL)(g),Y=(0,mt.PI)(g),re=(0,mt.k3)(g),pe=(0,y.B8)(g),Ce=(0,De.nE)(g),{event:Pe,iconName:Ie,iconDisplayName:Re,icon:We,callback:ct,isMultiColorIcon:vt,isTrack:Ut=!1}=f,pn={iconData:{viewBox:We.view_box,path:We.path,iconName:Ie,iconSize:_,iconColor:S||"",svgAttr:{fill:We.fill,stroke:We.stroke},isMultiColorIcon:vt},width:_,height:_,display_name:Re,name:Re,z:O,view_box:We.view_box,left:0,top:0,path:We.path},fn=(0,$.kk)(pn),uo={...pn,...fn,fill:{...fn.fill,solidColor:typeof S=="number"?S:(0,fd.Wi)(S)},mktCid:We.groupCid||void 0,_keywords:We.keywords,_type:We.type,_icon_id:We.id};if(Pe.type==="mousedown"){var Mn;const Gt=(Mn=document.getElementById(pe))==null?void 0:Mn.getBoundingClientRect();(0,j.dD)({e:Pe,items:[uo],width:uo.width||uo.w,height:uo.height||uo.h,doNotCreateRect:Gt,callback:ct,canvasRect:V,rootProject:H,showDragMode:Y,isAdsorbentReferenceLine:re})}else if(Pe.type==="click"){if(Ce.some(ra=>{const{hotAttr:{type:ka,iconData:pa}}=ra;return ka===N.x.WIcon?!((pa==null?void 0:pa.iconName)===void 0||(pa==null?void 0:pa.viewBox)===void 0||(pa==null?void 0:pa.path)===void 0):!1})){u({type:"entry:items:set:icon",payload:{icon:We,iconName:Ie,iconDisplayName:Re,isMultiColorIcon:vt}});return}const yo=We.id.split("-"),Do=yo[0],Wo=Do==="fa5"?yo.slice(1,yo.length-1).join("-"):Do===We.type&&Do!=="\u6570\u5B57"?We.id.slice(We.id.indexOf("-")+1):We.id,Ro={isRequestRecent:!0,projectUpperType:"icon_group",projectUpperCid:We.groupCid,itemCid:Wo,isTrack:Ut};u({type:"entry:resources:quick:create:template",payload:{data:[{...uo,recent:Ro}]}})}else(0,j.Q7)([uo],uo.width||uo.w,uo.height||uo.h),ct&&ct()},"entry:update:free:widget:by:create:canvas":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{canvasKey:f}}=P;const g=sdkStore.getHotItem(f),S=sdkStore.getHotAABB(f);if(!g||!g.sup)return;const _=sdkStore.getSubHotItemList(g.sup).filter(O=>{const{hotAttr:{type:V,bunch:H}}=O,Y=H!=null?H:V;if([N.x.Canvas,N.x.WTear,N.x.WSticky,N.x.RbPage].includes(Y))return!1;const re=sdkStore.getHotAABB(O.key);return(0,kn.Pn)(S,re)});_.length&&(_.forEach(O=>{sdkStore.changeRndSup(O.key,f)}),u({type:"layerExpandedKeySet:delAllSet:ref",payload:{refs:[f]}}),u({type:"entry:refresh:link-list"}))},"entry:batch:create:items:position":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{finalWidget:f}}=P;(0,Oi._c)({type:f.type})&&(u({type:"entry:batch:create:items",payload:{data:[{items:[f],width:f.w,height:f.h}]}}),u({type:"entry:batch:set:canvas:offset"}))},"entry:batch:set:canvas:offset":L=>{let{getState:P,dispatch:b}=L;const u=P(),f=(0,r.X_)(u),g=(0,r.$S)(u),S=(0,r.ER)(u),_=(0,r.eo)(u),O=sdkStore.findAllTypeUnder(_,N.x.Canvas).pop().key,V=sdkStore.getHotAABB(O),[H,Y,re,pe]=V,Ce={scale:f/100,size:{w:g.width,h:g.height},offset:S};if(!(0,ta._W)(Ce,g.left,V)){const Ie=H,Re=Y,We=re-H,ct=pe-Y,vt=f/100,Ut=(-We/2-Ie)*vt,pn=(-ct/2-Re)*vt;b({type:"design:set:canvas:offset",payload:{offset:{x:Ut,y:pn}}})}},"entry:publish:create:items:success":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{newItems:f,sup:g,newKeys:S=[],isSkipUpdateGuides:_=!1,newHotItemKeys:O=[]}}=P;try{const V=f||S.map(Pe=>{var Ie;return(Ie=sdkStore.getHotItem(Pe))==null?void 0:Ie.hotAttr}),H=V==null?void 0:V.filter(Pe=>Pe==null?void 0:Pe.type);if(!H||H.length<1||_)return;const Y=H.find(Pe=>Pe.type===N.x.Canvas&&!Pe.asOverlay),re=(H==null?void 0:H.length)===1&&Y,pe=b(),{scene_tag:Ce}=(0,r.PL)(pe);if(re){const Pe=g||(0,r.eo)(pe),Ie=(0,y.OW)(pe);(0,Ll.K)(I18N)[C.c.GUIDE_MORE_PAGE].howToShow({currentPopupPanel:Ie,sup:Pe})}else if((H==null?void 0:H.length)===1&&H[0].type===N.x.Canvas&&H[0].asOverlay)MB.commonGuideHelper.tryToShowGuide(C.c.GUIDE_NEW_OVERLAY_ONCE);else{if(!Ce)return;if(Ce.split("-")[0]==="DS"&&MB.commonGuideHelper.checkGuideHasShown(C.c.GUIDE_NOVICE_2309_STEP_2))u({type:"entry:update:novice:guide:and:task",payload:{guideType:C.c.GUIDE_NOVICE_2309_STEP_3}});else{const Pe=(0,w.jN)(),Ie=(0,r.eo)(pe),Re=(0,Zl.G9)(Ie,[]),We=O[0]||S[0],ct=sdkStore.getHotAABB(We),vt=Re(ct);if(Pe&&Pe.isInProgress){if(vt){const Ut=sdkStore.findAllTypeUnder(Ie,N.x.WImage).filter(pn=>{let{key:fn}=pn;return fn.startsWith("imgtip")});sdkStore.deleteHotItemBatch(Ut.map(pn=>{let{key:fn}=pn;return fn})),u({type:"entry:update:novice:guide:and:task",payload:{guideType:C.c.GUIDE_NOVICE_2309_STEP_2,taskType:C.c.GUIDE_NOVICE_2309_TASK_2}})}}else u({type:"entry:update:novice:guide:and:task",payload:{taskType:C.c.GUIDE_NOVICE_2309_TASK_2}})}}Ce.split("-")[0]==="DS"?Y&&u({type:"entry:update:novice:guide:and:task",payload:{taskType:C.c.GUIDE_NOVICE_2309_TASK_1,guideType:C.c.GUIDE_NOVICE_2309_STEP_1}}):Y&&(u({type:"entry:update:novice:guide:and:task",payload:{taskType:C.c.GUIDE_NOVICE_2309_TASK_1,guideType:C.c.GUIDE_NOVICE_2408_CREATE_PAGE}}),MB.commonGuideHelper.tryToCloseMountGuide(C.c.GUIDE_NOVICE_2408_CREATE_PAGE))}catch(V){console.log(V.message)}},"entry:import:aihtml":async(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{htmlText:f,htmlString:g}}=P;const S=b(),_=(0,It.jI)(S),O=(0,It.bt)(S),{isEditingCombo:V}=(0,gt.r)(S),H=(0,r.Ur)(S).cid,Y=(0,r.X_)(S),re=(0,r.ER)(S),pe=(0,r.$S)(S),Ce=(0,De.p$)(S),Pe=sdkStore.getHotKeyListAABB(Ce),Ie={scale:Y/100,size:{w:pe.width,h:pe.height},offset:re},Re=(0,ta.Dl)(Ie,pe.left),We=await(0,bl.c3)(f,"widget"),{data:ct,imageUploadTasks:vt}=We;if(!(0,Oi.z5)(ct))return;const Ut=await(0,ta.rB)(ct,vt);if(V||_||O){MB.notice({text:I18N.SettingPanel.design.widgets_cannot_paste_artboard,type:"warning",duration:3500});return}if(!Ut)return;const{contentFlatTree:pn,hotAABB:fn}=sdkStore.parseSubtree(Ut),uo=pn,Mn=fn;if(O){var Gt;const Wo=(Gt=uo.get("B@ref-muban"))==null?void 0:Gt.sub;if(Wo!=null&&Wo.includes(O)){MB.notice({text:I18N.SettingPanel.design.master_cannot_nesting,type:"warning"});return}}if(V){MB.notice({text:"\u6211\u7684\u7EC4\u4EF6/\u4F01\u4E1A\u7EC4\u4EF6\u4E2D\u4E0D\u5141\u8BB8\u63D2\u5165 AI \u7EC4\u4EF6",type:"warning"});return}const yo=Wo=>{let{data:Ro,worldPos:ra}=Wo;const ka=(0,me.Dd)(Ro,ra,H,Ce,""),pa=sdkStore.getHotKeyListAABB(ka);if(!(0,ta.Zb)(Ie,pe.left,pa)){const Ma=(Re.x-(pa[0]+(pa[2]-pa[0])/2))*Y/100;u({type:"design:set:canvas:offset",payload:{offset:{x:re.x+Ma,y:re.y}}})}return u({type:"entry:refresh:link-list"}),u({type:"entry:clear:selection"}),u({type:"entry:select:items",payload:{cids:ka}}),u({type:"entry:layout:basket-canvas"}),ka};sdkStore.combineMergeMark("import-aihtml");let Do=[];if(Ce.length>0){let Wo=Pe[2],Ro=(0,ta.Q5)(Wo,H);for(;;){if(!Ro||Ro[0]>Wo+Mn[2]-Mn[0]+50){const ra={x:Wo+50,y:Pe[1]};Do=yo({data:Ut,worldPos:ra});break}Wo=Ro[2],Ro=(0,ta.Q5)(Wo,H)}}else if(sdkStore.getHotItem(H).sub.length){let Wo=Mn[2],Ro=(0,ta.Q5)(Wo,H);for(Wo===-1/0&&(Ro?Wo=Ro[2]:Wo=Re.x-(Mn[2]-Mn[0])/2);;){if(!Ro||Ro[0]>Wo+Mn[2]-Mn[0]+50){const ra={x:Wo+50,y:Mn[1]};Do=yo({data:Ut,worldPos:ra});break}Wo=Ro[2],Ro=(0,ta.Q5)(Wo,H)}}else{const Wo={x:Re.x-(Mn[2]-Mn[0])/2,y:Re.y-(Mn[3]-Mn[1])/2};Do=yo({data:Ut,worldPos:Wo})}sdkStore.combineMerge("import-aihtml"),u({type:"entry:clear:selection"}),u({type:"entry:select:items",payload:{cids:Do}}),u({type:"entry:design:zoom:selection"}),MB.notice({text:I18N.aiHTML.export_succeeded,duration:2e3})}};var A2=s(36449),Nl=s(8281),Lp=s(56696),Dc=s(33848),Vu=s(11135),k2=s(10390),Np=s(71247),zu=s(88944);const Ol=70,ep={"entry:elbow:isInElbowMode:create":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{event:f,key:g,canInstantCreate:S,givinStartInfo:_}}=P;f.persist();const O=ze.Z.xy(f.clientX,f.clientY),V=b(),H=g||(0,It.IL)(V),Y=(0,r.ER)(V),re=(0,r.X_)(V),pe=(0,r.$S)(V),Ce=(0,I.UV)(V),Pe=(0,r.eo)(V),Ie=(0,r.Sb)(V);let Re,We=!1,ct;if(!(0,Oi._c)({type:N.x.WElbow,count:1})||f.target.closest("#widget-popup"))return;const vt=re/100;sdkStore.combineMergeMark("elbowmode-create");const Ut=f.target.tagName==="circle"&&f.target.closest("span.elbow-anchor-start-point");let pn="";Ut&&(pn=Ut.dataset.cid);const fn=Mn=>{const Gt=ze.Z.xy(Mn.clientX,Mn.clientY);let yo=(0,bt.mG)(Mn,{scale:re,offset:Y,viewportRect:pe});if(ze.Z.distance(O,Gt)>1&&We===!1){if(We=!0,_!=null&&_.key){const{x:Do,y:Wo,w:Ro,h:ra}=sdkStore.getHotBound(_.key);switch(_.startDirection){case"left":yo={x:Do-Ro*.5,y:Wo};break;case"right":yo={x:Do+Ro*.5,y:Wo};break;case"top":yo={x:Do,y:Wo-ra*.5};break;case"bottom":yo={x:Do,y:Wo+ra*.5};break;default:break}}Re=(0,kc.Z1)(yo,MB.getCurrentScreen().cid),u({type:"elbow:update",payload:{isDraggingElbow:!0}}),u({type:"entry:elbow:create:start",payload:{elbowKey:Re,cursorWorldPos:yo,moveAnchor:"start",fresh:!1,givinStartInfo:_,isCreateElbowFromItem:!!Ut,eventTargetItemKey:pn}})}Re&&u({type:"entry:elbow:create:start",payload:{elbowKey:Re,cursorWorldPos:yo,moveAnchor:"end"}})},uo=Mn=>{const Gt=(0,bt.mG)(Mn,{scale:re,offset:Y,viewportRect:pe});ct=(0,T.Tg)(Gt,Ce.getRootSnapshot().key)||Pe;let Do={x:0,y:0};const Wo={x:Mn.clientX,y:Mn.clientY};if(We){const Ro=sdkStore.getHotItem(Re).hotAttr;if(_!=null&&_.key){const{x:ra,y:ka,w:pa,h:Ma}=sdkStore.getHotBound(_.key);switch(_.startDirection){case"left":Do={x:ra-pa*.5,y:ka};break;case"right":Do={x:ra+pa*.5,y:ka};break;case"top":Do={x:ra,y:ka-Ma*.5};break;case"bottom":Do={x:ra,y:ka+Ma*.5};break;default:break}u({type:"entry:elbow:create:start",payload:{elbowKey:Re,cursorWorldPos:Do,moveAnchor:"start",fresh:!1,givinStartInfo:_}}),u({type:"entry:elbow:after-quick-create",payload:{elbowKey:Re,originalSup:ct}}),Ro.elbow.elbowType==="curve"&&u({type:"entry:elbow:drag:start",payload:{elbowKey:Re,cursorWorldPos:Gt,moveAnchor:"end",event:Mn}}),u({type:"entry:elbow:after-quick-create:popup",payload:{elbowKey:Re,openFrom:"drag-out",mousePos:Wo}}),sdkStore.combineMerge("elbowmode-create")}else u({type:"entry:elbow:after-quick-create",payload:{elbowKey:Re,originalSup:ct}}),Ro.elbow.elbowType==="curve"&&u({type:"entry:elbow:drag:start",payload:{elbowKey:Re,cursorWorldPos:Gt,moveAnchor:"end",event:Mn}}),u({type:"elbow:update",payload:{highlightAnchor:"",isDraggingElbow:!1}});sdkStore.combineMerge("elbowmode-create")}else if(S){const Ro=sdkStore.getHotItem(H).hotAttr.type;if(![N.x.WTear,N.x.WElbow].includes(Ro)){const{x:ra,y:ka,w:pa,h:Ma}=sdkStore.getHotBound(_.key),Ya=Ol*vt;switch(_.startDirection){case"left":Do={x:ra-pa*.5,y:ka},Wo.x=(0,bt.mY)(Do).x-Ya;break;case"right":Do={x:ra+pa*.5,y:ka},Wo.x=(0,bt.mY)(Do).x+Ya;break;case"top":Do={x:ra,y:ka-Ma*.5},Wo.y=(0,bt.mY)(Do).y-Ya;break;case"bottom":Do={x:ra,y:ka+Ma*.5},Wo.y=(0,bt.mY)(Do).y+Ya;break;default:break}Re=(0,kc.Z1)(Do,MB.getCurrentScreen().cid),u({type:"entry:elbow:create:start",payload:{elbowKey:Re,cursorWorldPos:Do,moveAnchor:"start",fresh:!1}}),u({type:"entry:elbow:popup:elbow:modify",payload:{elbowKey:Re,givinStartInfo:_,sup:ct}}),u({type:"entry:elbow:after-quick-create",payload:{elbowKey:Re,originalSup:ct}}),u({type:"entry:elbow:after-quick-create:popup",payload:{elbowKey:Re,openFrom:"instant",mousePos:Wo}}),sdkStore.combineMerge("elbowmode-create")}}if(u({type:"elbow:update",payload:{isDraggingElbow:!1}}),(0,ic.Yp)({source:Ie===ic.Hq.ToolBar?""+ic.ol.ToolBar+ic.k8.Click:ic.ol.ShortCut,widgetName:(0,ic.KR)(N.x.WElbow)}),Re){const Ro=sdkStore.getHotItem(Re).hotAttr.elbow.elbowType;(0,zu.Zf)(Ro)}document.removeEventListener("mousemove",fn),document.removeEventListener("mouseup",uo)};document.addEventListener("mousemove",fn),document.addEventListener("mouseup",uo)},"entry:elbow:create:start":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{elbowKey:f,cursorWorldPos:g,moveAnchor:S,fresh:_=!0,givinStartInfo:O,isCreateElbowFromItem:V=!1,eventTargetItemKey:H=""}}=P;const Y=b(),re=sdkStore.getHotItem(f),pe=(0,It.IL)(Y),Ce=(0,r.X_)(Y),Pe=(0,I.UV)(Y),Ie=(0,De.p$)(Y),Re=(0,Un.$7)(Y),We=(0,T.Dg)(g,Ce/100,Pe.getRootSnapshot().key,{isDraggingElbow:!0,isShowSticky:Re,isCreateElbowFromItem:V,eventTargetItemKey:H});(0,T.h9)(We,Ie,"ctrl",!0);let ct;if(We.hitKey&&We.hitIType!==N.x.WTear){const vt=sdkStore.getHotBound(We.hitKey);let Ut={...g,key:"",direction:"none"};if(O!==void 0)Ut={...g,key:O.key,direction:O.startDirection};else{const pn=(0,Dc.yT)(vt,g);if(pn!==void 0){const fn=V===!0&&H===We.hitKey?H:pe;Ut={...pn.xy,key:fn,direction:pn.key}}}ct=(0,kc.b)({elbowKey:re.key,worldPos:Ut,moveAnchor:S,refKey:Ut.key,direction:Ut.direction,isUseWroldBound:!0})}else ct=(0,kc.b)({elbowKey:re.key,worldPos:g,moveAnchor:S,refKey:"",direction:"none",isUseWroldBound:!0});ct&&sdkStore.updateHotItem(ct)},"entry:elbow:drag:start":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{elbowKey:f,cursorWorldPos:g,moveAnchor:S,event:_}}=P;const O=b(),V=sdkStore.getHotItem(f);if(V&&V.hotAttr&&V.hotAttr.type!==N.x.WElbow)return;const H=(0,It.IL)(O),Y=(0,r.X_)(O),re=(0,I.UV)(O),pe=(0,De.p$)(O),Ce=(0,Un.$7)(O),Pe=(0,T.Dg)(g,Y/100,re.getRootSnapshot().key,{isDraggingElbow:!0,isShowSticky:Ce,event:_});(0,T.h9)(Pe,pe,"ctrl",!0);let Ie;if(Pe.hitKey&&Pe.hitIType!==N.x.WTear){const{realPos:We,updated:ct,offsetSup:vt}=(0,Nd.GN)(f,g),{hotAttr:Ut}=V,{elbow:pn}=Ut;let fn=We;const uo=sdkStore.getHotBound(Pe.hitKey),Mn=(0,Dc.yT)(uo,g);let Gt="",yo="none";Mn!==void 0?(ct&&pn.elbowType!=="curve"?fn=sdkStore.toAttrXY(Mn.xy,"",vt):fn=Mn.xy,Gt=H,yo=Mn.key,u({type:"elbow:update",payload:{highlightAnchor:Mn.key}})):u({type:"elbow:update",payload:{highlightAnchor:""}}),Ie=(0,kc.b)({elbowKey:V.key,worldPos:fn,moveAnchor:S,refKey:Gt,direction:yo})}else{const{realPos:We}=(0,Nd.GN)(f,g);Ie=(0,kc.b)({elbowKey:V.key,worldPos:We,moveAnchor:S,refKey:"",direction:"none"})}const Re=[Ie];(0,Nd.f7)(Ie.key,Re),u({type:"entry:widget:change",payload:{flatChgList:Re}})},"entry:elbow:line-segment-move":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{event:f,fromIndex:g,toIndex:S,direction:_,elbowKey:O}}=P;const V=b(),H=(0,r.$S)(V),Y=(0,r.X_)(V),re=(0,r.ER)(V),pe=(0,bt.mG)(f,{scale:100,offset:re,viewportRect:H}),Ce={x:pe.x/Y*100,y:pe.y/Y*100},Pe=sdkStore.getHotItem(O),{realPos:Ie}=(0,Nd.GN)(O,Ce),{x:Re,y:We,w:ct,h:vt,elbow:{dPathList:Ut}}=Pe.hotAttr,pn=Re-ct*.5,fn=We-vt*.5,uo=(0,Dc.Ui)(ze.Z.xy(pn,fn),Ut);if(g===0||S===uo.length-1)return;const Gt=(0,Nl.eQ)(uo,Ie,g,S,_,10),yo=Wn.rw.enclosing(Gt),Do=(0,Dc.uK)(ze.Z.xy(yo.x,yo.y),Gt),Wo=yo.w,Ro=yo.h,ra=yo.x+Wo*.5,ka=yo.y+Ro*.5,pa={...Pe,hotAttr:{...Pe.hotAttr,elbow:{...Pe.hotAttr.elbow,dPathList:Do.map((Ma,Ya)=>(Ya===g||Ya===S?Ya!==0&&Ya!==Do.length-1&&(Ma.isAdjusted=!0):Ma.isAdjusted=!1,Ma))},x:ra,y:ka,h:Ro,w:Wo}};sdkStore.updateHotItem(pa)},"entry:elbow:line-anchor-add":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{length:f,index:g,event:S,elbowKey:_,direction:O}}=P;const V=b(),H=(0,r.$S)(V),Y=(0,r.X_)(V),re=(0,r.ER)(V),pe=(0,bt.mG)(S,{scale:100,offset:re,viewportRect:H}),Ce={x:pe.x/Y*100,y:pe.y/Y*100},{realPos:Pe}=(0,Nd.GN)(_,Ce),Ie=sdkStore.getHotItem(_),{x:Re,y:We,elbow:{dPathList:ct},w:vt,h:Ut}=Ie.hotAttr,pn=Re-vt*.5,fn=We-Ut*.5,uo=(0,Dc.Ui)(ze.Z.xy(pn,fn),ct),Mn=!1,Gt=null,yo=!1,Do=null,Wo=JSON.parse(JSON.stringify(uo));let Ro,ra,ka;if(f===1){Ro=1,ra=0;const ti=Wo[0],vi=Wo[1];let Hr,Yr,br,zi;if(O==="horizontal"){const mr=Math.round((ti.y+Pe.y)/2),pi=Math.round((vi.y+Pe.y)/2),ui=Pe.x-ti.x;Mn?(Hr={x:Gt.x,y:Gt.y},Yr={x:Gt.x+ui,y:Gt.y}):(Hr={x:ti.x,y:mr},Yr={x:ti.x+ui,y:mr}),yo?(br={x:Do.x+ui,y:Do.y},zi={x:Do.x,y:Do.y}):(br={x:vi.x+ui,y:pi},zi={x:vi.x,y:pi})}else{const mr=Math.round((ti.x+Pe.x)/2),pi=Math.round((vi.x+Pe.x)/2),ui=Pe.y-ti.y;Mn?(Hr={x:Gt.x,y:Gt.y},Yr={x:Gt.x,y:Gt.y+ui}):(Hr={x:mr,y:ti.y},Yr={x:mr,y:ti.y+ui}),yo?(br={x:Do.x,y:Do.y+ui},zi={x:Do.x,y:Do.y}):(br={x:pi,y:vi.y+ui},zi={x:pi,y:vi.y})}ka=[Hr,Yr,br,zi]}if(f!==1){ra=1;let ti,vi,Hr;if(g===0){const Yr=Wo[0],br=Wo[1];if(Ro=1,O==="horizontal"){const zi=Math.round((Yr.y+Pe.y)/2),mr=Math.round(Pe.x-Yr.x);Mn?(ti={x:Gt.x,y:Gt.y},vi={x:Gt.x+mr,y:Gt.y},Hr={x:br.x+mr,y:br.y}):(ti={x:Yr.x,y:zi},vi={x:Yr.x+mr,y:zi},Hr={x:br.x+mr,y:br.y})}if(O==="vertical"){const zi=Math.round((Yr.x+Pe.x)/2),mr=Math.round(Pe.y-Yr.y);Mn?(ti={x:Gt.x,y:Gt.y},vi={x:Gt.x,y:Gt.y+mr},Hr={x:br.x,y:br.y+mr}):(ti={x:zi,y:Yr.y},vi={x:zi,y:Yr.y+mr},Hr={x:br.x,y:br.y+mr})}ka=[ti,vi,Hr]}else{const Yr=Wo[Wo.length-2],br=Wo[Wo.length-1];if(Ro=Wo.length-2,O==="horizontal"){const zi=Math.round((br.y+Pe.y)/2),mr=Math.round(Pe.x-Yr.x);yo?(ti={x:Yr.x+mr,y:Yr.y},vi={x:Do.x+mr,y:Do.y},Hr={x:Do.x,y:Do.y}):(ti={x:Yr.x+mr,y:Yr.y},vi={x:br.x+mr,y:zi},Hr={x:br.x,y:zi})}if(O==="vertical"){const zi=Math.round((br.x+Pe.x)/2),mr=Math.round(Pe.y-br.y);yo?(ti={x:Yr.x,y:Yr.y+mr},vi={x:Do.x,y:Do.y+mr},Hr={x:Do.x,y:Do.y}):(ti={x:Yr.x,y:Yr.y+mr},vi={x:zi,y:br.y+mr},Hr={x:zi,y:br.y})}ka=[ti,vi,Hr]}}Wo.splice(Ro,ra,...ka);const pa=Wn.rw.enclosing(Wo),Ma=(0,Dc.uK)(ze.Z.xy(pa.x,pa.y),Wo),Ya=pa.w,di=pa.h,ja=pa.x+Ya*.5,ri=pa.y+di*.5,ks={...Ie,hotAttr:{...Ie.hotAttr,elbow:{...Ie.hotAttr.elbow,dPathList:Ma},x:ja,y:ri,h:di,w:Ya}};sdkStore.updateHotItem(ks)},"entry:elbow:line-optimize":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{elbowKey:f}}=P;const g=sdkStore.getHotItem(f),{hotAttr:{x:S,y:_,w:O,h:V,elbow:{dPathList:H}}}=g,Y=S-O*.5,re=_-V*.5,pe=(0,Dc.Ui)(ze.Z.xy(Y,re),H),Ce=(0,Nl.rD)([...pe]),Pe=Wn.rw.enclosing(Ce),Ie=Pe.w,Re=Pe.h,We=Pe.x+Ie*.5,ct=Pe.y+Re*.5,vt=(0,Dc.uK)(ze.Z.xy(Pe.x,Pe.y),Ce),Ut={...g,hotAttr:{...g.hotAttr,elbow:{...g.hotAttr.elbow,dPathList:vt},x:We,y:ct,w:Ie,h:Re}};sdkStore.updateHotItem(Ut)},"entry:elbow:line-adjust":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{elbowKey:f}}=P;const g=sdkStore.getHotItem(f),S=g.hotAttr,{x:_,y:O,elbow:V,w:H,h:Y,refFromKey:re,refToKey:pe}=S,{dPathList:Ce,fromDirection:Pe,toDirection:Ie}=V,Re=_-H*.5,We=O-Y*.5,ct=(0,Dc.Ui)(ze.Z.xy(Re,We),[Ce[0]])[0],vt=(0,Dc.Ui)(ze.Z.xy(Re,We),[Ce[Ce.length-1]])[0],Ut={elbowKey:f,currentElbowItem:g,startPickPoint:{...ct,key:re,direction:Pe},endPickPoint:{...vt,key:pe,direction:Ie},isAdjust:!0},{data:pn}=(0,Lp.X)(Ut),fn=[];if(sdkStore._updateHotItem(pn,fn),fn.length>0){sdkStore.updateHotItem(pn);return}u({type:"entry:set:editing:cid",payload:{item:{...g==null?void 0:g.hotAttr,cid:f}}})},"entry:elbow:after-quick-create":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{elbowKey:f,originalSup:g}}=P;u({type:"entry:elbow:after-quick-create:v2",payload:{elbowKey:f}})},"entry:elbow:after-quick-create:v1":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{elbowKey:f,originalSup:g}}=P;const S=b(),_=(0,It.IL)(S),O=(0,r.eo)(S);let V=g;if(_){const pe=sdkStore.locUpHotCanvasKey(_);pe?(0,Oe.OO)(pe)?V=O:V=pe:V=O}const{sup:H}=sdkStore.getHotItem(f);H!==V&&(0,Nd.F2)(f,V);const Y=(0,Za.aw)({type:"wElbow",sup:V,key:f}),re=(0,jd._)(V);sdkStore.updateHotAttrMerge(f,{name:Y,zIndex:re}),u({type:"entry:publish:create:items:success",payload:{newKeys:[f]}})},"entry:elbow:after-quick-create:v2":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{elbowKey:f}}=P;const g=b(),S=(0,r.eo)(g),_=(0,Zl.G9)(S),O=sdkStore.getHotItem(f),{hotAttr:{elbow:{dPathList:V},w:H,h:Y,refFromKey:re,refToKey:pe}}=O,Ce=sdkStore.getHotAABB(f),Pe={x:.5*(Ce[0]+Ce[2]),y:.5*(Ce[1]+Ce[3])},Ie={x:Pe.x-H*.5,y:Pe.y-Y*.5},Re=sdkStore.getHotItem(re||""),We=sdkStore.getHotItem(pe||""),ct=(0,Dc.Ui)(Ie,[V[0]])[0],vt=(0,Dc.Ui)(Ie,[V[V.length-1]])[0],Ut=(0,T.Tg)(ct,S),pn=(0,T.Tg)(vt,S);let fn;if(Re&&We){const Gt=sdkStore.locUpHotCanvasKey(Re.key),yo=sdkStore.locUpHotCanvasKey(We.key);fn=Gt&&yo&&Gt===yo?Gt:S}else if(Re&&!We){const Gt=sdkStore.locUpHotCanvasKey(Re.key);fn=Gt&&Gt===pn?Gt:S}else if(!Re&&We){const Gt=sdkStore.locUpHotCanvasKey(We.key);fn=Gt&&Gt===Ut?Gt:S}else fn=_(Ce)||S;const uo=(0,Zl.YQ)(),Mn=(0,Zl.Us)();sdkStore.updateHotItem({...O,sup:fn,hotAttr:{...O.hotAttr,...sdkStore.toAttrXY(Pe,f,fn),name:uo(fn,"wElbow",O.hotAttr.name,Gt=>Gt.key!==f),zIndex:Mn(f,fn)}})},"entry:elbow:after-quick-create:popup":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{elbowKey:f,openFrom:g,mousePos:S}}=P;if(sdkStore.getHotItem(f).hotAttr.refToKey)return;const[_,O]=sdkStore.getHotAABB(f),{elbow:{dPathList:V,elbowType:H}}=sdkStore.getHotItem(f).hotAttr;let Y=V.at(-1);H==="curve"&&(Y=(0,xn.Ig)({closed:!1,points:V}).at(-1));const re={x:_+Y.x,y:O+Y.y};u({type:"elbow:update",payload:{isShowWidgetPopup:!0,popupWorldPos:re}}),On.A.emit("elbowPopupShowed",{from:g,mousePos:S,elbowKey:f})},"entry:elbow:popup:create":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{elbowKey:f,widgetType:g,openFrom:S}}=P;if(!(0,Oi._c)({type:"widget",count:1}))return;const _=b(),O=(0,r.Ur)(_),V=(0,vn.Fc)(_),H=(0,Me.gu)({type:g,screen:O}),Y=sdkStore.getHotItem(f),re={...Y,hotAttr:{...Y.hotAttr,elbow:{...Y.hotAttr.elbow}}},{dPathList:pe,elbowType:Ce}=re.hotAttr.elbow,Pe=(0,kc.R)(pe,Ce),Ie=re.hotAttr.refFromKey,Re=Ie&&!sdkStore.isTrashed(Ie);if(S==="instant"&&Re){const fn=sdkStore.getHotBound(Ie),{x:uo,y:Mn,w:Gt,h:yo}=fn;Pe==="up"?(H.x=uo,H.y=Mn-yo*.5-H.h*.5-Ol,re.hotAttr.elbow.toDirection="bottom"):Pe==="down"?(H.x=uo,H.y=Mn+yo*.5+H.h*.5+Ol,re.hotAttr.elbow.toDirection="top"):Pe==="left"?(H.x=uo-Gt*.5-H.w*.5-Ol,H.y=Mn,re.hotAttr.elbow.toDirection="right"):(H.x=uo+Gt*.5+H.w*.5+Ol,H.y=Mn,re.hotAttr.elbow.toDirection="left")}else Pe==="up"?(H.x=V.x,H.y=V.y-H.h*.5,re.hotAttr.elbow.toDirection="bottom"):Pe==="down"?(H.x=V.x,H.y=V.y+H.h*.5,re.hotAttr.elbow.toDirection="top"):Pe==="left"?(H.x=V.x-H.w*.5,H.y=V.y,re.hotAttr.elbow.toDirection="right"):(H.x=V.x+H.w*.5,H.y=V.y,re.hotAttr.elbow.toDirection="left");const ct=(0,T.Tg)(V,O.cid)||O.cid,vt=(0,jd._)(ct),Ut={key:(0,tt.cF)(),sup:O.cid,sub:[],hotAttr:{...H,zIndex:vt}};Ut.hotAttr.name=(0,Za.aw)({...H,sup:ct}),sdkStore.combineMergeMark("widgetpopup-create"),sdkStore.updateHotItem(Ut),sdkStore.changeRndSup(Ut.key,ct),re.hotAttr.refToKey=Ut.key,sdkStore.updateHotItem(re),sdkStore.combineMerge("widgetpopup-create"),u({type:"entry:select:items",payload:{cids:[Ut.key]}});const pn=S==="instant"?"\u7EC4\u4EF6\u52A0\u53F7\u6DFB\u52A0":"\u7EBF\u6761\u62D6\u62FD";(0,Vu.W)({widget_source:pn,widget_type:g})},"entry:elbow:popup:elbow:modify":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{elbowKey:f,givinStartInfo:g,sup:S}}=P;const _=sdkStore.getHotItem(f),{key:O,startDirection:V}=g,Y=sdkStore.getHotBound(O),re=_.hotAttr.elbow.elbowType==="curve"?[...Np.XS]:[{x:0,y:0},{x:0,y:0}],pe={..._,hotAttr:{..._.hotAttr,elbow:{..._.hotAttr.elbow,dPathList:re}}},Ce=re.length-1;pe.hotAttr.refFromKey=g.key,pe.hotAttr.elbow.fromDirection=g.startDirection;let Pe={x:0,y:0},Ie={x:0,y:0};if(V==="left"?(pe.hotAttr.elbow.dPathList[0].x=Ol,pe.hotAttr.elbow.dPathList[0].y=0,pe.hotAttr.elbow.dPathList[Ce].x=0,pe.hotAttr.elbow.dPathList[Ce].y=0,pe.hotAttr.x=Y.x-Y.w*.5-Ol*.5,pe.hotAttr.y=Y.y,pe.hotAttr.w=Ol,pe.hotAttr.h=0,pe.hotAttr.elbow.elbowType==="curve"&&(Pe={x:Y.x-Y.w/2,y:Y.y},Ie={x:Y.x-Y.w/2-Ol,y:Y.y})):V==="right"?(pe.hotAttr.elbow.dPathList[0].x=0,pe.hotAttr.elbow.dPathList[0].y=0,pe.hotAttr.elbow.dPathList[Ce].x=Ol,pe.hotAttr.elbow.dPathList[Ce].y=0,pe.hotAttr.x=Y.x+Y.w*.5+Ol*.5,pe.hotAttr.y=Y.y,pe.hotAttr.w=Ol,pe.hotAttr.h=0,pe.hotAttr.elbow.elbowType==="curve"&&(Pe={x:Y.x+Y.w/2,y:Y.y},Ie={x:Y.x+Y.w/2+Ol,y:Y.y})):V==="bottom"?(pe.hotAttr.elbow.dPathList[0].x=0,pe.hotAttr.elbow.dPathList[0].y=0,pe.hotAttr.elbow.dPathList[Ce].x=0,pe.hotAttr.elbow.dPathList[Ce].y=Ol,pe.hotAttr.x=Y.x,pe.hotAttr.y=Y.y+Y.h*.5+Ol*.5,pe.hotAttr.h=Ol,pe.hotAttr.w=0,pe.hotAttr.elbow.elbowType==="curve"&&(Pe={x:Y.x,y:Y.y+Y.h/2},Ie={x:Y.x,y:Y.y+Y.h/2+Ol})):(pe.hotAttr.elbow.dPathList[0].x=0,pe.hotAttr.elbow.dPathList[0].y=Ol,pe.hotAttr.elbow.dPathList[Ce].x=0,pe.hotAttr.elbow.dPathList[Ce].y=0,pe.hotAttr.x=Y.x,pe.hotAttr.y=Y.y-Y.h*.5-Ol*.5,pe.hotAttr.h=Ol,pe.hotAttr.w=0,pe.hotAttr.elbow.elbowType==="curve"&&(Pe={x:Y.x,y:Y.y-Y.h/2},Ie={x:Y.x,y:Y.y-Y.h/2-Ol})),sdkStore.updateHotItem(pe),pe.hotAttr.elbow.elbowType==="curve"){const Re=(0,kc.b)({elbowKey:f,moveAnchor:"start",worldPos:Pe,refKey:g.key,direction:g.startDirection});sdkStore.updateHotItem(Re);const We=(0,kc.b)({elbowKey:f,moveAnchor:"end",worldPos:Ie,refKey:"",direction:"none"});sdkStore.updateHotItem(We)}sdkStore.changeRndSup(pe.key,S)},"entry:elbow:popup:elbow:from:modify":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{elbowKey:f,givinStartInfo:g,isInstantCreate:S=!1}}=P;const _=sdkStore.getHotItem(f),{key:O,startDirection:V}=g,H={..._,hotAttr:{..._.hotAttr,elbow:{..._.hotAttr.elbow,dPathList:[]}}};H.hotAttr.refFromKey=O,H.hotAttr.elbow.fromDirection=V,sdkStore.updateHotItem(H)},"entry:elbow:isInElbowMode:toggle":L=>{let{getState:P,dispatch:b}=L;const u=P(),f=(0,vn.Q1)(u);b({type:"elbow:update",payload:{isInElbowMode:!f}}),b({type:"entry:clear:selection"})},"entry:elbow:type:transform":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:f}=P;const g=b(),S=(0,De.p$)(g),{nextType:_}=f,O=[];for(const V of S){const H=sdkStore.getHotItem(V),{elbow:Y,w:re,h:pe,x:Ce,y:Pe,refToKey:Ie,refFromKey:Re}=H.hotAttr,{dPathList:We,toDirection:ct,fromDirection:vt}=Y;if(_===Y.elbowType)continue;const Ut={...Y,elbowType:_},pn=Ce-re/2,fn=Pe-pe/2,uo=()=>{const Mn=(0,xn.Ig)({closed:!1,points:Y.dPathList}).map((Ro,ra)=>ra===0||ra===Y.dPathList.length-1?{x:Ro.x+pn,y:Ro.y+fn,isAdjusted:!1}:{x:Ro.x,y:Ro.y,isAdjusted:!1}),Gt=Mn[0],yo=Mn.at(-1),Do=(0,kc.b)({elbowKey:V,moveAnchor:"end",worldPos:yo,refKey:Ie,direction:ct},{...H,hotAttr:{...H.hotAttr,elbow:{...Ut,dPathList:[{x:0,y:0,isAdjusted:!1},yo]}}}),Wo=(0,kc.b)({elbowKey:V,moveAnchor:"start",worldPos:Gt,refKey:Re,direction:vt},Do);O.push({...Wo,notTriggerAttachedUpdate:!0})};switch(Ut.elbowType){case"sharp":case"rounded":{if(Y.elbowType==="straight"){const Mn=We.at(-1),Gt={x:pn+Mn.x,y:fn+Mn.y},yo=(0,kc.b)({elbowKey:V,moveAnchor:"end",worldPos:Gt,refKey:Ie,direction:ct},{...H,hotAttr:{...H.hotAttr,elbow:Ut}});O.push({...yo,notTriggerAttachedUpdate:!0})}else Y.elbowType==="curve"?uo():O.push({key:V,hotAttr:{elbow:Ut},notTriggerAttachedUpdate:!0});break}case"straight":{if(Y.elbowType==="rounded"||Y.elbowType==="sharp"){const Mn=[Y.dPathList[0],Y.dPathList.at(-1)];Ut.dPathList=Mn,O.push({key:V,hotAttr:{elbow:Ut},notTriggerAttachedUpdate:!0})}else Y.elbowType==="curve"&&uo();break}case"curve":{const Mn=(0,Dc.Ui)(ze.Z.xy(pn,fn),[We[0]])[0],Gt=(0,Dc.Ui)(ze.Z.xy(pn,fn),[We[We.length-1]])[0],yo=(Mn.x+Gt.x)/2,Do=(Mn.y+Gt.y)/2,Wo=Math.abs(Gt.x-Mn.x),Ro=Math.abs(Gt.y-Mn.y),ra=[{x:0,y:0,type:"straight",prev:{x:0,y:0},next:{x:0,y:0},radius:0},{x:0,y:0,type:"mirrored",prev:{x:0,y:0},next:{x:0,y:0},radius:0},{x:Gt.x-Mn.x,y:Gt.y-Mn.y,type:"straight",prev:{x:0,y:0},next:{x:0,y:0},radius:0}];(0,kc.eO)(ra),Ut.dPathList=ra,Ut.middleIsAdjusted=!1,O.push({key:V,hotAttr:{elbow:Ut,x:yo,y:Do,w:Wo,h:Ro},notTriggerAttachedUpdate:!0})}}}u({type:"entry:widget:change",payload:{flatChgList:O}})},"entry:elbow:middle-anchor:reset":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:f}=P;const{elbowKey:g}=f,S=sdkStore.getHotItem(g),{elbow:_,elbow:{dPathList:O}}=S.hotAttr,V=JSON.parse(JSON.stringify(O));(0,kc.eO)(V);const{x:H,y:Y,w:re,h:pe}=(0,k2.zh)({key:g,vector:{closed:!1,points:V}}),Ce=[];Ce.push({key:g,hotAttr:{x:H,y:Y,w:re,h:pe,elbow:{..._,dPathList:V,middleIsAdjusted:!1}}}),u({type:"entry:widget:change",payload:{flatChgList:Ce}}),u({type:"entry:select:items",payload:{cids:[g]}})},"entry:elbow:update:textPositionProportion":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:f}=P;const g=b();if(!(g&&(0,vn.CP)(g)))return;const{key:_,textPositionProportion:O}=f||{},V=sdkStore.getHotItem(_);if(!V)return;const H=[{key:_,hotAttr:{...V.hotAttr,elbow:{...V.hotAttr.elbow,textPositionProportion:O}}}];u({type:"entry:widget:change",payload:{flatChgList:H}})}};var M2=s(81592),Wu=s(55514);const Jd={"entry:image-view:edit":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:f}=P;const g=b(),{operationType:S}=f,O=(0,De.nE)(g).filter(H=>{var Y;let{hotAttr:re}=H;return re.type===N.x.WImage&&((Y=re.image)==null?void 0:Y.imageRef)}),V=S===Vn.bl.cutting;(O==null?void 0:O.length)>0&&(u({type:"image:update:state",payload:{isEditingImageWrapperCid:O.map(H=>{let{key:Y}=H;return Y}).join(","),currentImageOperateType:S}}),!V&&MB.commonGuideHelper.checkGuideToBeShown(C.c.GUIDE_IMAGE_SLICING)&&!MB.commonGuideHelper.checkGuideHasShown(C.c.GUIDE_IMAGE_SLICING)&&(MB.commonGuideHelper.closeGuide(C.c.GUIDE_IMAGE_SLICING),MB.commonGuideHelper.markGuideAsRead(C.c.GUIDE_IMAGE_SLICING)))},"entry:image-view:cutting":L=>{var P;let{getState:b,dispatch:u}=L;const f=b(),g=(0,Yt.tl)(f);if(!g||!(g!=null&&g.length))return;const S=g[0];if(((P=S.widget)==null||(P=P.image)==null?void 0:P.imageClipType)==="none"){var _;u({type:"entry:widget:change",payload:{flatChgList:[{key:S.key||S.cid,hotAttr:{image:{...(_=S.widget)==null?void 0:_.image,imageClipType:Vn.Mg.square}}}]}})}},"entry:image-view:exit:edit":L=>{let{dispatch:P}=L;P({type:"image:update:state",payload:{isEditingImageWrapperCid:"",currentImageOperateType:"",currentImageClipSelected:Vn.Q7.cutFrame}})},"entry:image-view:slicing":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{wImageKeyList:f,sliceWorldPos:g,slicingDirection:S}}=P;u({type:"entry:image-view:exit:edit"}),sdkStore.combineMergeMark("image-slice");const _=f.reduce((O,V)=>{const H=(0,M2.A)({sdk:sdkStore,sliceWorldPos:g,wImageKey:V,slicingDirection:S});return H.forEach(Y=>{Y.hotAttr.image.imageFillType="stretch"}),H.length>0&&(sdkStore.deleteHotItem(V),sdkStore.updateHotItemBatch(H)),[...O,...H.map(Y=>Y.key)]},[]);sdkStore.combineMerge("image-slice"),u({type:"entry:refresh:link-list"}),u({type:"entry:select:items",payload:{cids:_}})},"entry:image-view:fill-type":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{imageFillType:f}}=P;const g=b();if(!f)return;let S;const O=((0,De.p$)(g)||[]).map(Ce=>sdkStore.getHotItem(Ce)).filter(Ce=>Ce.hotAttr.type==="wImage");if(!O||O.length===0)return;const V=O[0],{hotAttr:{w:H,h:Y,image:{imageRectOriginalWidth:re,imageRectOriginalHeight:pe}}}=V;if(f==="fill"){const Ce=(0,Wu.Z)({w:H,h:Y,imageRectOriginalWidth:re,imageRectOriginalHeight:pe});S={...V.hotAttr.image,...Ce,imageFillType:f}}else f==="stretch"&&(S={...V.hotAttr.image,imageFillType:f,imageRectWidth:H,imageRectHeight:Y,imageRectCenterX:H/2,imageRectCenterY:Y/2});u({type:"entry:widget:change",payload:{flatChgList:[{key:V.key,hotAttr:{image:S}}]}})},"entry:image-view:horizontal-flip":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{isImage:f}}=P;const g=b(),_=((0,De.p$)(g)||[]).map(O=>sdkStore.getHotItem(O)).filter(O=>{var V;return!!(O.hotAttr.type===N.x.WImage&&(V=O.hotAttr.image)!=null&&V.imageRef&&f||O.hotAttr.type===N.x.WIcon&&!f)});!_||_.length===0||(_.forEach(O=>{O.hotAttr.flip.flipH=!O.hotAttr.flip.flipH}),u({type:"entry:widget:change",payload:{flatChgList:_,shouldReBuildTree:!0}}),u({type:"entry:auto:show:hide:item"}),(0,dn.$j)({operation_type:"\u6C34\u5E73\u7FFB\u8F6C",widget_type:f?"\u56FE\u7247":"\u56FE\u6807"}))},"entry:image-view:vertically-flip":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{isImage:f}}=P;const g=b(),_=((0,De.p$)(g)||[]).map(O=>sdkStore.getHotItem(O)).filter(O=>{var V;return!!(O.hotAttr.type===N.x.WImage&&(V=O.hotAttr.image)!=null&&V.imageRef&&f||O.hotAttr.type===N.x.WIcon&&!f)});!_||_.length===0||(_.forEach(O=>{O.hotAttr.flip.flipV=!O.hotAttr.flip.flipV}),u({type:"entry:widget:change",payload:{flatChgList:_,shouldReBuildTree:!0}}),u({type:"entry:auto:show:hide:item"}),(0,dn.$j)({operation_type:"\u5782\u76F4\u7FFB\u8F6C",widget_type:f?"\u56FE\u7247":"\u56FE\u6807"}))}};var Hu=s(38047),E2=s(31569);const h1=(L,P,b,u)=>{const{x:f,y:g,w:S,h:_}=L,O=P[2]-P[0],V=P[3]-P[1];switch(b){case"left":return{x:u[0]+O/2,y:g,w:S,h:_};case"center":return{x:(u[0]+u[2])*.5,y:g,w:S,h:_};case"right":return{x:u[2]-O/2,y:g,w:S,h:_};case"top":return{x:f,y:u[1]+V/2,w:S,h:_};case"middle":return{x:f,y:(u[1]+u[3])*.5,w:S,h:_};case"bottom":return{x:f,y:u[3]-V/2,w:S,h:_}}},qd=(L,P)=>{const b=L.sub.filter(f=>f!==P);return sdkStore.getHotKeyListAABB(b)},Gu=(L,P,b)=>{const u={};L.forEach(S=>(0,Al.Ie)(S,u));const f=(0,Ld.vC)(L,S=>{var _;const O=((_=sdkStore.getHotItem(S))==null?void 0:_.hotAttr.type)===N.x.WTear;return O&&(0,Al.Ie)(S,u),O}),g=[];if(L.length===1){const S=L[0],_=sdkStore.locUpColdCanvasKey(S),O=sdkStore.getHotItem(S),V=sdkStore.findUpType(O.sup,N.x.WWrap);if(V){const H=qd(V,S),Y=h1(sdkStore.getHotBound(S),sdkStore.getHotAABB(S),P,H);(0,Al.$O)(g,S,Y,u),(0,Nc.PB)(g,S,Y,f,u)}else if(_){const H=h1(sdkStore.getHotBound(S),sdkStore.getHotAABB(S),P,sdkStore.getHotAABB(_));(0,Al.$O)(g,S,H,u),(0,Nc.PB)(g,S,H,f,u)}}else L.forEach(S=>{const _=h1(sdkStore.getHotBound(S),sdkStore.getHotAABB(S),P,sdkStore.getHotKeyListAABB(L));(0,Al.$O)(g,S,_,u),(0,Nc.PB)(g,S,_,f,u)});return g},Zu=(L,P,b)=>{const u={};L.forEach(_=>(0,Al.Ie)(_,u));const f=sdkStore.getHotKeyListAABB(L),g=(0,Ld.vC)(L,_=>{var O;const V=((O=sdkStore.getHotItem(_))==null?void 0:O.hotAttr.type)===N.x.WTear;return V&&(0,Al.Ie)(_,u),V}),S=[];if(L.length>2)switch(P){case"horizontal":{const _=(f[2]-f[0]-L.reduce((H,Y)=>{const re=sdkStore.getHotAABB(Y),pe=re[2]-re[0];return H+pe},0))/(L.length-1),O=L.sort((H,Y)=>sdkStore.getHotAABB(H)[0]-sdkStore.getHotAABB(Y)[0]);let V=sdkStore.getHotAABB(O[0])[2];O.slice(1,-1).forEach((H,Y)=>{const{y:re,w:pe,h:Ce}=sdkStore.getHotBound(H),Pe=sdkStore.getHotAABB(H),Ie=Pe[2]-Pe[0];V+=_+Ie;const Re={x:V-Ie/2,y:re,w:pe,h:Ce};(0,Al.$O)(S,H,Re,u),(0,Nc.PB)(S,H,Re,g,u)});break}case"vertical":{const _=(f[3]-f[1]-L.reduce((H,Y)=>{const re=sdkStore.getHotAABB(Y),pe=re[3]-re[1];return H+pe},0))/(L.length-1),O=L.sort((H,Y)=>sdkStore.getHotAABB(H)[1]-sdkStore.getHotAABB(Y)[1]);let V=sdkStore.getHotAABB(O[0])[3];O.slice(1,-1).forEach((H,Y)=>{const{x:re,w:pe,h:Ce}=sdkStore.getHotBound(H),Pe=sdkStore.getHotAABB(H),Ie=Pe[3]-Pe[1];V+=_+Ie;const Re={x:re,y:V-Ie/2,w:pe,h:Ce};(0,Al.$O)(S,H,Re,u),(0,Nc.PB)(S,H,Re,g,u)});break}}return S},I2=[N.x.WWrap,N.x.Canvas,N.x.RbPage],Ku=L=>{const b=L.map(_=>{if(sdkStore.isTrashed(_.key))return[];const O=sdkStore.findUpHotItemList(_.key);return!O||!(O!=null&&O.length)?[]:O.filter(V=>{let{key:H}=V;return H!==_.key}).map(V=>{let{key:H}=V;return H})}).filter(_=>_==null?void 0:_.length).reduce((_,O)=>_.filter(V=>O.some(H=>V===H))),u=(_,O)=>{const V=[],H=sdkStore.getHotItem(_),Y=O(H);Y&&V.push(Y);const{hotAttr:{type:re,bunch:pe}}=H,Ce=pe!=null?pe:re;return I2.includes(Ce)&&sdkStore.getSubHotItemList(_).sort((Pe,Ie)=>Ie.hotAttr.zIndex-Pe.hotAttr.zIndex).forEach(Pe=>{let{key:Ie}=Pe;return V.push(...u(Ie,O))}),V},f=b[0],g=u(f,_=>_.key);return L.sort((_,O)=>g.indexOf(_.key)-g.indexOf(O.key))[0]},Yh=L=>{const b=L.map(V=>sdkStore.getHotItem(V)).filter(V=>![N.x.WTear,N.x.WSticky].includes(V.hotAttr.type)&&!(0,Oe.OO)(V.key)&&!sdkStore.isTrashed(V.key));if(!(b!=null&&b.length))return[];const u=Ku(b),f=u.sup,g=u.hotAttr.zIndex,S=sdkStore.findAllTypeUnder(f,N.x.WWrap),_=S.length?I18N.w[N.x.WWrap]+" "+(S.length+1):I18N.w[N.x.WWrap],O=(0,tt.cF)("ww");return sdkStore.summonWWrap(b.map(V=>V.key),f,O,_,g,!0,!0),[O]},_2=L=>{const P=new Map,b=(u,f)=>u.hotAttr.zIndex-f.hotAttr.zIndex;return L.forEach(u=>{const f=sdkStore.getHotItem(u),g=P.get(u);let S=g?g.hotAttr.zIndex:f.hotAttr.zIndex;const _=sdkStore.getSubHotItemList(f.sup).sort(b),O=_.findIndex(Y=>Y.key===u),V=_.slice(O+1,_.length);if(sdkStore.getSubHotItemList(f.key).sort(b).forEach(Y=>{P.set(Y.key,{...Y,hotAttr:{...Y.hotAttr,zIndex:++S}})}),V.length){const Y=V[0].hotAttr.zIndex;S>=Y&&V.forEach(re=>{P.set(re.key,{...re,hotAttr:{...re.hotAttr,zIndex:++S}})})}}),Array.from(P.values())},z0=new Set(["rResCanvas","wTear","wSticky"]),td=L=>!z0.has(L.hotAttr.type)&&!(0,Oe.OO)(L.key),T2=L=>{const P=L.map(V=>sdkStore.getHotItem(V)),[b,u]=P.reduce((V,H)=>{let[Y,re]=V;return td(H)?[Y,re.concat([H])]:[Y.concat([H]),re]},[[],[]]);if(!u.length)return;const f=(0,Zl.Lf)(L);if(!f)return;const g=f.sup;if((0,Oe.OO)(g))return;sdkStore.combineMergeMark("summon-wwrap-from-selection");const S=[];L.filter(V=>V!==f.key).forEach(V=>{const H=sdkStore.getHotItem(V).sup,Y=sdkStore.getSubHotItemList(H).filter(re=>re.key!==V);Y!=null&&Y.length||S.push(H)});const _=(0,Zl.YQ)(),O=(0,tt.cF)("ww");return sdkStore.updateHotAttrMergeBatch(u.sort((0,Zl.tU)(g)).map((V,H)=>[V.key,{zIndex:H+1}])),sdkStore.summonWWrap(u.map(V=>V.key),g,O,_(g,"wWrap",I18N.w[N.x.WWrap]),f.hotAttr.zIndex,!0,!0),S!=null&&S.length&&sdkStore.deleteHotItemBatch(S),sdkStore.combineMerge("summon-wwrap-from-selection"),b.map(V=>V.key).concat([O])},jp=function(L,P,b){b===void 0&&(b="zIndex");const u=[];return L.forEach(f=>{const{cids:g,siblings:S}=f,_=[...S].sort((V,H)=>V.hotAttr[b]-H.hotAttr[b]),O=tp(g,_,P,b);u.push(...O)}),u},tp=(L,P,b,u)=>{const f=P.map(H=>H.hotAttr[u]),g=Xh(f),S=P.map(H=>H.key),_=b===1?P2(S,L):np(S,L),O={};_.forEach((H,Y)=>O[H]=g[Y]);const V=[];return P.forEach(H=>{const Y=O[H.key];H.hotAttr[u]!==Y&&V.push({...H,hotAttr:{...H.hotAttr,[u]:Y}})}),V},Xh=L=>{const P=[];return L.forEach((b,u)=>{const f=P[u-1];u===0||b>f?P.push(b):P.push(f+1)}),P},P2=(L,P)=>{const b=[];let u=[];return L.forEach(f=>{P.includes(f)?u.push(f):(b.push(f),b.push(...u),u=[])}),b.push(...u),b},np=(L,P)=>{const b=[...L].reverse();return P2(b,P).reverse()};var L2=s(16249),Yu=s(5621),Qh=s(74413),W0=s(38358);const $d=L=>{var P;if(sdkStore.isTrashed(L))return null;const b=sdkStore.getHotItem(L);return(P=sdkStore.findUpHotItemList(L).find(f=>{let{hotAttr:g}=f;return b.hotAttr.type===N.x.Canvas?g.bunch===N.x.RbPage:g.bunch===N.x.RbPage||g.type===N.x.Canvas&&!(0,Oe.OO)(L)}))==null?void 0:P.key},A0=L=>{let{keyList:P,pageKey:b,pre:u,dir:f}=L;const g={},S=(0,Nc.oh)(P,!0),_=(0,Ld.vC)(S,O=>{var V;const H=((V=sdkStore.getHotItem(O))==null?void 0:V.hotAttr.type)===N.x.WTear;return H&&(0,Al.Ie)(O,g),H});return S.reduce((O,V)=>{const H=$d(V);if(!H)return O;const{hotAttr:Y}=sdkStore.getHotItem(V),{x:re,y:pe,w:Ce,h:Pe}=sdkStore.getRelocateLocalBound(V,H),Ie=sdkStore.getLocalBound(V),Re=_.get(V)||[];if(f==="left"){const We=Y.x-Ie.x,{x:ct}=sdkStore.toAttrXY(sdkStore.fromAttrXY({x:u+Ce/2+We,y:pe},V,H),V),vt=ct-Y.x,Ut=(0,Nc.ol)(Re,vt,0,g);return[...O,...Ut,{key:V,hotAttr:{x:ct}}]}else if(f==="top"){const We=Y.y-Ie.y,{y:ct}=sdkStore.toAttrXY(sdkStore.fromAttrXY({x:re,y:u+Pe/2+We},V,H),V),vt=ct-Y.y,Ut=(0,Nc.ol)(Re,0,vt,g);return[...O,...Ut,{key:V,hotAttr:{y:ct}}]}return[]},[])},ll=L=>{let{keyList:P,pre:b,dir:u}=L;const g=(0,Nc.oh)(P,!0)[0];if(!$d(g))return;const{hotAttr:_}=sdkStore.getHotItem(g),O=MB.getScale()/100,{x:V,y:H,w:Y,h:re}=sdkStore.getHotBound(g),Ce={...u==="left"?{x:V+(b-_.x+Y/2)/O,y:H}:{x:V,y:H+(b-_.y+re/2)/O},r:_.r,w:Y,h:re},{x:Pe,y:Ie}=sdkStore.toAttrXY(Ce,g);return[{key:g,hotAttr:{x:Pe,y:Ie,image:{..._.image,...(0,M2.N)(g,Ce),imageFillType:"stretch"}}}]},nd=L=>{let{keyList:P,pageKey:b,offsetX:u,offsetY:f}=L;const g={},S=(0,Nc.oh)(P,!1,!0),_=(0,Ld.vC)(S,V=>{var H;const Y=((H=sdkStore.getHotItem(V))==null?void 0:H.hotAttr.type)===N.x.WTear;return Y&&(0,Al.Ie)(V,g),Y});return{flatChgList:S.reduce((V,H)=>{const{x:Y,y:re}=sdkStore.getHotItem(H).hotAttr,pe=_.get(H),Ce=(0,Nc.ol)(pe,u,f,g);return[...V,...Ce,{key:H,hotAttr:{x:Y+u,y:re+f}}]},[]),keyList:S}};var Xu=s(34748);const Dp=L=>{if(!(0,Z1._5)()||MB.commonGuideHelper.checkGuideHasShown(C.c.UNGROUP_WITH_WM))return!0;const P=(0,w0.fV)();if(!P)return!0;const{mdWMMktList:b,mtWMMktList:u}=P,f=new Set([...b,...u]),g=[];return L.forEach(S=>{sdkStore.walkHotItemSubtree2(S.key,_=>{_.hotAttr.mktCid&&f.has(_.hotAttr.mktCid)&&g.push(_.key)})}),g.length<2};var Hc=s(9680);const Rp={"entry:group:items":L=>{let{getState:P,dispatch:b}=L;b({type:"entry:group:items:v2"})},"entry:group:items:v1":L=>{let{getState:P,dispatch:b}=L;const u=P(),f=(0,De.p$)(u);if(!(0,jt.kE)(f))return;const S=Yh(f);S!=null&&S.length&&(b({type:"entry:select:items",payload:{cids:S}}),b({type:"entry:refresh:link-list"}),b({type:"mind:exit:edit:state"}),b({type:"toolbar:update:state",payload:{refresh:Math.random()}}))},"entry:group:items:v2":L=>{let{getState:P,dispatch:b}=L;const u=P(),f=(0,De.p$)(u);if(!(0,jt.kE)(f))return;const S=T2(f);S!=null&&S.length&&(b({type:"entry:select:items",payload:{cids:S}}),b({type:"entry:refresh:link-list"}),b({type:"mind:exit:edit:state"}),b({type:"toolbar:update:state",payload:{refresh:Math.random()}}))},"entry:ungroup:items":L=>{let{getState:P,dispatch:b}=L;b({type:"entry:ungroup:items:v2"})},"entry:ungroup:items:v1":L=>{let{getState:P,dispatch:b}=L;const u=P(),f=(0,De.p$)(u);if(!(0,jt.P6)(f))return;const g=(0,r.eo)(u),S=f.map(H=>sdkStore.getHotItem(H)),_=S.reduce((H,Y)=>Y.hotAttr.type===N.x.WWrap?[...H,Y.key]:H,[]).sort(T.tM).reverse();if(_.length===0)return;sdkStore.combineMergeMark("ungroup"),(0,ta.hf)(_,g,b);const O=_2(_);O!=null&&O.length&&sdkStore.updateHotItemBatch(O),_.forEach(H=>sdkStore.dispelWWrap(H));const V=S.reduce((H,Y)=>Y.hotAttr.type===N.x.WWrap?[...H,...Y.sub]:[...H,Y.key],[]);sdkStore.combineMerge("ungroup"),b(o.GO.hoverItem("")),b({type:"clear:echo:item"}),b({type:"entry:select:items",payload:{cids:V}}),b({type:"entry:refresh:link-list"}),b({type:"toolbar:update:state",payload:{refresh:Math.random()}})},"entry:ungroup:items:v2":L=>{let{getState:P,dispatch:b}=L;const u=P(),f=(0,De.p$)(u),g=(0,r.eo)(u),S=f.map(Pe=>sdkStore.getHotItem(Pe)),[_,O]=S.reduce((Pe,Ie)=>{let[Re,We]=Pe;return Ie.hotAttr.type===N.x.WWrap?[Re,We.concat([Ie])]:[Re.concat([Ie]),We]},[[],[]]);if(O.length===0)return;if(!Dp(O)){b({type:"modal:update:state",payload:{mktWMUngroupModal:{isOpen:!0}}}),Eo.U4.watermarkExposureTrack("ungroup");return}const V=[],H=O.map(Pe=>Pe.key);sdkStore.combineMergeMark("ungroup"),(0,ta.hf)(H,g,b);const Y=(0,Zl.wr)(H),re=(0,Zl.G9)(g,[]),pe=[];for(const Pe of O){const{key:Ie,sup:Re,sub:We}=Pe,ct=We.map(fn=>sdkStore.getHotItem(fn)).sort((fn,uo)=>fn.hotAttr.zIndex-uo.hotAttr.zIndex),vt=sdkStore.getHotItem(Re),Ut=vt.hotAttr.type==="wWrap",pn=vt.hotAttr.type==="rResCanvas";for(const fn of ct){const uo=sdkStore.getHotAABB(fn.key),Mn=Ut||pn&&(0,kn.cj)(uo,sdkStore.getHotAABB(Re))?Re:re(uo)||g;pe.push({key:fn.key,sup:Mn,hotAttr:{...sdkStore.getRelocateLocalXYR(fn.key,Mn),zIndex:Y.getReStackZIndex(fn.key,Mn)}}),V.push(fn.key)}sdkStore.dispelWWrap(Ie)}Y.subsequentReStack(pe),sdkStore.deleteHotItemBatch(H),sdkStore.updateHotItemBatch(pe.map(Pe=>{const Ie=sdkStore.getHotItem(Pe.key);return{...Ie,sup:Pe.sup||Ie.sup,hotAttr:{...Ie.hotAttr,...Pe.hotAttr}}})),sdkStore.combineMerge("ungroup");const Ce=V.concat(_.map(Pe=>Pe.key));b(o.GO.hoverItem("")),b({type:"clear:echo:item"}),b({type:"entry:select:items",payload:{cids:Ce}}),b({type:"entry:refresh:link-list"}),b({type:"toolbar:update:state",payload:{refresh:Math.random()}})},"entry:toggle:attr":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:f}=P;const g=b();if((0,It.lY)(g))return;const{attr:_,widget:O}=f,V=O!=null&&O.key?sdkStore.getHotItem(O.key):null,H=V?[V]:(0,De.nE)(g),Y=_==="isVisible"?H.filter(Re=>!(0,Fs.yT)(Re.hotAttr.type)):H,re=(0,r.Ur)(g),pe=Y.length===1&&Y[0].key===re.cid,Ce=Y.length===0;if(pe||Ce)return;const Pe=(0,E2.i)(Y,_),Ie=Y.map(Re=>{let{key:We}=Re;return{key:We,hotAttr:{[_]:!Pe}}});u({type:"entry:widget:change",payload:{flatChgList:Ie,shouldBreakLayerUICache:!0}}),u({type:"mind:exit:edit:state"})},"entry:toggle:lock":(L,P)=>{let{dispatch:b}=L,{payload:u={}}=P;b({type:"entry:toggle:attr",payload:{attr:"isLock",...u}}),b({type:"toolbar:update:state",payload:{refresh:Math.random()}})},"entry:toggle:visible":(L,P)=>{let{dispatch:b}=L,{payload:u={}}=P;b({type:"entry:toggle:attr",payload:{attr:"isVisible",...u}}),b({type:"directory-panel:bottom:update",payload:{canvasListCacheTag:Math.random()}})},"entry:set:Fixed":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{value:f}}=P;const g=b(),_=(0,De.p$)(g).filter(V=>!(0,Oe.OO)(V)).map(sdkStore.getHotItem).filter(V=>!(0,Fs.yT)(V.hotAttr.type));if(_.length===0)return;const O=_.map(V=>{let{key:H}=V;return{key:H,hotAttr:{fixPosTo:f}}});u({type:"entry:widget:change",payload:{flatChgList:O}})},"entry:align:items":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:f}=P;const{direction:g}=f,S=b(),_=(0,De.p$)(S),O=(0,It.lY)(S),V=(0,r.eo)(S);if(!((0,jt.GS)(_)&&!O))return;const Y=(0,Nc.oh)(_),re=Gu(Y,g,V);u({type:"entry:widget:change",payload:{flatChgList:re}}),u({type:"entry:refresh:link-list"}),u({type:"entry:select:smartly"})},"entry:distribute:items":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:f}=P;const{direction:g}=f,S=b(),_=(0,It.lY)(S),O=(0,De.p$)(S),V=(0,r.eo)(S);if(!((0,jt.oR)(O)&&!_))return;const Y=(0,Nc.oh)(O),re=Zu(Y,g,V);u({type:"entry:widget:change",payload:{flatChgList:re}}),u({type:"entry:refresh:link-list"}),u({type:"entry:select:smartly"})},"entry:items:set:icon":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{icon:f,iconName:g,iconDisplayName:S,isMultiColorIcon:_}}=P;const O=b(),V=(0,De.nE)(O);if(V.length===0)return;const H=[],Y=new Set;V.forEach(re=>{let{key:pe,hotAttr:{iconData:Ce,mktCid:Pe}}=re;Pe&&Y.add(Pe),f.groupCid&&Y.delete(f.groupCid),!((Ce==null?void 0:Ce.iconName)===void 0||(Ce==null?void 0:Ce.viewBox)===void 0||(Ce==null?void 0:Ce.path)===void 0)&&(Ce&&(!Ce.iconColor||Ce.iconColor==="unset")&&(Ce.iconColor="rgba(16, 16, 16, 1)"),H.push({key:pe,hotAttr:{w:Ce==null?void 0:Ce.iconSize,h:Ce==null?void 0:Ce.iconSize,name:S,mktCid:f.groupCid||void 0,iconData:{...Ce,iconName:g,viewBox:f.view_box,path:f.path,isMultiColorIcon:_}}}))}),u({type:"entry:widget:change",payload:{flatChgList:H}})},"entry:items:set:asset":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{asset:f}}=P;const g=b(),S=(0,De.nE)(g),_=S.filter(pe=>pe.hotAttr.type===N.x.WImage),O=S.filter(pe=>pe.hotAttr.type===N.x.WPlaceholder),V=(0,Er.JB)(f,_),H=(0,Er.De)(f,O),Y=V.map((pe,Ce)=>({key:_[Ce].key,hotAttr:{...pe}})),re=H.map((pe,Ce)=>({key:O[Ce].key,hotAttr:{...pe}}));u({type:"entry:widget:change",payload:{flatChgList:[...Y,...re]}})},"entry:items:set:clipType":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{clipType:f}}=P;const g=b(),S=(0,De.nE)(g).filter(O=>{var V;return O.hotAttr.type===N.x.WImage&&((V=O.hotAttr.image)==null?void 0:V.imageRef)}),_=(0,Er.lt)(f,S);_.forEach(O=>{let{key:V,hotAttr:H}=O;H.refVars=(0,Hc.VN)(V,H)}),u({type:"entry:widget:change",payload:{flatChgList:_}})},"entry:items:set:top":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{top:f}}=P;const g=b(),S=(0,It.jI)(g),_=(0,It.bt)(g),O=(0,r.eo)(g),V=(0,De.p$)(g);if((0,Yt.tR)(g)===Vn.bl.cutting){const Y=ll({keyList:V,pre:f,dir:"top"});u({type:"entry:widget:change",payload:{flatChgList:Y}})}else{const Y=A0({keyList:V,pageKey:O,pre:f,dir:"top"});u({type:"entry:widget:change",payload:{flatChgList:Y}}),(S||_)&&u({type:"entry:layout:basket-canvas"}),u({type:"entry:select:smartly"})}},"entry:items:set:left":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{left:f}}=P;const g=b(),S=(0,It.jI)(g),_=(0,It.bt)(g),O=(0,r.eo)(g),V=(0,De.p$)(g);if((0,Yt.tR)(g)===Vn.bl.cutting){const Y=ll({keyList:V,pre:f,dir:"left"});u({type:"entry:widget:change",payload:{flatChgList:Y}})}else{const Y=A0({keyList:V,pageKey:O,pre:f,dir:"left"});u({type:"entry:widget:change",payload:{flatChgList:Y}}),(S||_)&&u({type:"entry:layout:basket-canvas"}),u({type:"entry:select:smartly"})}},"entry:items:set:width":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{width:f,refVar:g}}=P;const S=b(),_=(0,De.p$)(S),O=(0,It.jI)(S),V=(0,It.bt)(S);if((0,Yt.tR)(S)===Vn.bl.cutting){const Y=(0,W0.kP)({keyList:_,pre:f,type:"width"});u({type:"entry:widget:change",payload:{flatChgList:Y}})}else{const Y=_.filter(Ce=>sdkStore.getHotItem(Ce).hotAttr.type!==N.x.WMind),re={};Y.forEach(Ce=>(0,Al.Ie)(Ce,re));const pe=[];Y.forEach(Ce=>{if((0,Oe.OO)(Ce))return;const Pe=sdkStore.getHotItem(Ce),{isLockAspect:Ie}=Pe.hotAttr,Re=sdkStore.getHotBound(Ce),We=Ie?(0,Yu.K)(Re.w,Re.h):!1,ct=(0,W0.Wj)(Re,f-Re.w,0,"w",We);(0,Al.$O)(pe,Ce,ct,re,We,void 0,{width:g})}),pe.forEach(Ce=>{var Pe;let{key:Ie,hotAttr:Re}=Ce;const{refVars:We,isLockAspect:ct,w:vt,h:Ut}=sdkStore.getHotItem(Ie).hotAttr;if(Y.includes(Ie)){let pn=g;(We==null?void 0:We.w)!==pn&&(Re.refVars={...We,w:pn})}else We!=null&&We.w&&(Re.refVars={...We,w:void 0});ct&&Re.h!==Ut&&We!=null&&We.h&&(Re.refVars={...Re.refVars||We,h:void 0}),ct&&(Pe=Re.refVars)!=null&&Pe.w&&Re.refVars.h&&(Re.isLockAspect=!1)}),u({type:"entry:widget:change",payload:{flatChgList:pe}}),(O||V)&&u({type:"entry:layout:basket-canvas"}),u({type:"entry:select:smartly"})}},"entry:items:set:height":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{height:f,refVar:g}}=P;const S=b(),_=(0,De.p$)(S),O=(0,It.jI)(S),V=(0,It.bt)(S);if((0,Yt.tR)(S)===Vn.bl.cutting){const Y=(0,W0.kP)({keyList:_,pre:f,type:"height"});u({type:"entry:widget:change",payload:{flatChgList:Y}})}else{const Y=_.filter(Ce=>sdkStore.getHotItem(Ce).hotAttr.type!==N.x.WMind),re={};Y.forEach(Ce=>(0,Al.Ie)(Ce,re));const pe=[];Y.forEach(Ce=>{if((0,Oe.OO)(Ce))return;const{isLockAspect:Pe}=sdkStore.getHotItem(Ce).hotAttr,Ie=sdkStore.getHotBound(Ce),Re=Pe?(0,Yu.K)(Ie.w,Ie.h):!1,We=(0,W0.Wj)(Ie,0,f-Ie.h,"h",Re);(0,Al.$O)(pe,Ce,We,re,Re,void 0,{height:g})}),pe.forEach(Ce=>{var Pe;let{key:Ie,hotAttr:Re}=Ce;const{refVars:We,isLockAspect:ct,w:vt,h:Ut}=sdkStore.getHotItem(Ie).hotAttr;if(Y.includes(Ie)){let pn=g;(We==null?void 0:We.h)!==pn&&(Re.refVars={...We,h:pn})}else We!=null&&We.h&&(Re.refVars={...We,h:void 0});ct&&Re.w!==vt&&We!=null&&We.w&&(Re.refVars={...Re.refVars||We,w:void 0}),ct&&(Pe=Re.refVars)!=null&&Pe.w&&Re.refVars.h&&(Re.isLockAspect=!1)}),u({type:"entry:widget:change",payload:{flatChgList:pe}}),(O||V)&&u({type:"entry:layout:basket-canvas"}),u({type:"entry:select:smartly"})}},"entry:items:move:by:offset":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:f}=P;const{offsetX:g,offsetY:S}=f,_=b(),O=(0,r.eo)(_),V=(0,De.p$)(_),{flatChgList:H,keyList:Y}=nd({keyList:V,pageKey:O,offsetX:g,offsetY:S});u({type:"entry:widget:change",payload:{flatChgList:H}}),(Y==null?void 0:Y.length)>1&&u({type:"entry:select:smartly"})},"entry:items:forward":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:f={attr:"zIndex"}}=P;const{attr:g}=f,S=b(),_=(0,De.p$)(S),O=(0,It.lY)(S);if(!((0,jt.sQ)(_)&&!O))return;const H=(0,ii.GF)(_),Y=jp(H,1,g);Y.length&&u({type:"entry:widget:change",payload:{flatChgList:Y,shouldReBuildTree:!0}})},"entry:items:canvasList:forward":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:f={attr:"zIndex"}}=P;const{attr:g}=f,S=b(),_=(0,De.p$)(S),O=(0,ii.cm)(_),V=jp(O,1,g);V.length&&u({type:"entry:widget:change",payload:{flatChgList:V,shouldBreakCanvasUICache:!0}})},"entry:items:backward":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:f={attr:"zIndex"}}=P;const{attr:g}=f,S=b(),_=(0,De.p$)(S),O=(0,It.lY)(S);if(!((0,jt.sQ)(_)&&!O))return;const H=(0,ii.GF)(_),Y=jp(H,-1,g);Y.length&&u({type:"entry:widget:change",payload:{flatChgList:Y,shouldReBuildTree:!0}})},"entry:items:canvasList:backward":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:f={attr:"zIndex"}}=P;const{attr:g}=f,S=b(),_=(0,De.p$)(S),O=(0,ii.cm)(_),V=jp(O,-1,g);V.length&&u({type:"entry:widget:change",payload:{flatChgList:V,shouldBreakCanvasUICache:!0}})},"entry:items:send:front":L=>{let{getState:P,dispatch:b}=L;const u=P(),f=(0,De.p$)(u),g=(0,It.lY)(u);if(!((0,jt.sQ)(f)&&!g))return;const _=(0,ii.GF)(f),O=(0,L2.j)(_,1);O.length&&b({type:"entry:widget:change",payload:{flatChgList:O,shouldReBuildTree:!0}})},"entry:items:send:back":L=>{let{getState:P,dispatch:b}=L;const u=P(),f=(0,De.p$)(u),g=(0,It.lY)(u);if(!((0,jt.sQ)(f)&&!g))return;const _=(0,ii.GF)(f),O=(0,L2.j)(_,-1);O.length&&b({type:"entry:widget:change",payload:{flatChgList:O,shouldReBuildTree:!0}})},"entry:set:editing:cid":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{item:f}}=P;const g=b(),S=f.cid||f.key,_=(0,Mo.c)(g);_&&_.key!==S&&(0,jn.ay)(_,"remove");const O=f.hotAttr||f;if((0,Kn.gM)(O.type)){const V=(0,Xu.xH)({baseItem:O});u(o.GO.updateTextEditorDefaultAttrs(V))}u({type:"set:editing:cid",payload:{cid:S}}),(0,jn.ay)(f,"add")},"entry:set:line:length":(L,P)=>{var b;let{getState:u,dispatch:f}=L,{payload:{value:g,refVar:S}}=P;const _=u(),O=(0,De.p$)(_);if(!(O!=null&&O.length))return;const V=sdkStore.getHotItem(O[0]);if(!V)return;const{key:H,hotAttr:Y}=V,re=(0,Qh.wh)(Y,g);((b=Y.refVars)==null?void 0:b.w)!==S&&(re.refVars={...Y.refVars,w:S}),f({type:"entry:widget:change",payload:{flatChgList:[{key:H,hotAttr:re}]}})},"entry:set:rotate":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{value:f,refVar:g}}=P;const S=b(),_=(0,De.nE)(S),O=(0,Yt.P2)(S),V=(0,Yt.KF)(S);if(f=(0,Hu.wj)(f),V==="img"&&_.length===1&&_[0].key===O&&_[0].hotAttr.type===N.x.WImage)u({type:"entry:widget:change",payload:{flatChgList:[{key:_[0].key,hotAttr:{image:{..._[0].hotAttr.image,imageRectR:f}}}]}});else{const H=[];_.forEach(re=>{(0,Al.bp)(H,re.key,f,_.length===1)});const Y=_.map(re=>re.key);H.forEach(re=>{var pe;let{key:Ce,hotAttr:Pe}=re;const Ie=((pe=sdkStore.getHotItem(Ce))==null?void 0:pe.hotAttr).refVars;if(Y.includes(Ce)){let Re=g;g&&Pe.r!==f&&(Re=void 0),Re!==(Ie==null?void 0:Ie.r)&&(Pe.refVars={...Ie,r:Re})}else Ie!=null&&Ie.r&&(Pe.refVars={...Ie,r:void 0})}),H.length&&u({type:"entry:widget:change",payload:{flatChgList:H}})}},"entry:shortcut:undoable:items:set:attr:border":(L,P)=>{var b;let{getState:u,dispatch:f}=L,{payload:g}=P;const S=u(),O=(0,De.p$)(S).map(sdkStore.getHotItem),V=(b=O[0])==null||(b=b.hotAttr)==null?void 0:b.type;if(V)if(V===N.x.WSlider){const H=O[0].hotAttr.slider.thumbBorder,Y={...H,bdrIsVisible:!H.bdrIsVisible},re=O.filter(pe=>pe.hotAttr.type===N.x.WSlider).map(pe=>({key:pe.key,hotAttr:{slider:{...pe.hotAttr.slider,thumbBorder:Y}}}));f({type:"entry:widget:change",payload:{flatChgList:re}})}else{const H=O.find(Ce=>Ce.hotAttr.border);if(H===void 0)return;const Y=H.hotAttr.border,re={...Y,bdrIsVisible:!Y.bdrIsVisible},pe=O.map(Ce=>({key:Ce.key,hotAttr:{border:re}}));f({type:"entry:widget:change",payload:{flatChgList:pe}}),f({type:"entry:auto:show:hide:item"})}}};var op=s(62280),Qu=s(5379);const m1=10,N2=L=>{const P=new Set(L);let b=!1;const u=L.reduce((f,g)=>{const S=(0,Oe.OO)(g);if(S||sdkStore.isTrashed(g))return S&&(b=!0),f;const O=sdkStore.findUpHotItemList(g).slice(1).map(H=>H.key).filter(H=>P.has(H));if(O!=null&&O.length)return b=!0,f;const V=sdkStore.getHotItem(g);if(!V||V.hotAttr.isLock)return f;if(V.hotAttr.type==="wElbow"){const{refFromKey:H,refToKey:Y}=V.hotAttr,{isRefFromExist:re,isRefToExist:pe}=(0,Qu.v)(g,H,Y);if(re&&pe){const Ce=sdkStore.findUpHotItemList(H).map(Ie=>Ie.key).filter(Ie=>P.has(Ie)),Pe=sdkStore.findUpHotItemList(Y).map(Ie=>Ie.key).filter(Ie=>P.has(Ie));if(!(Ce.length&&Pe.length))return f}}return f.concat([V])},[]);return{shouldReBuildTree:b,draggableItems:u}},Bp=(L,P,b)=>{let{currPageKey:u,getState:f,draggableItems:g,getScale:S,getOffset:_,getViewportRect:O,getWidgetStore:V,dispatch:H}=P,{onDragStart:Y,onDragEnd:re}=b,pe=!1;const Ce=(0,bt.mG)(L,{scale:S(),offset:_(),viewportRect:O()}),Pe=g.map(pn=>pn.key),Ie={};for(const pn of g)(0,Al.Ie)(pn.key,Ie);const Re=[];(0,Ld.vC)(Pe,pn=>{var fn;const uo=((fn=sdkStore.getHotItem(pn))==null?void 0:fn.hotAttr.type)===N.x.WTear;return uo&&((0,Al.Ie)(pn,Ie),Re.push(pn)),uo}),Ie["@@START-DND"]={hb:(0,op.T3)(sdkStore.getHotKeyListAABB(Pe)),lbR:0,wasoX:0,wasoY:0,sup:"",zIndex:0},H({type:"update:drag-event:state",payload:{isActive:!0,draggableItems:g,boundTearKeyList:Re,worldPosPreDrag:Ce,worldPosLastDrag:Ce,eventOnDrag:L,preDragSnapshot:Ie}}),g.length===1&&g[0].hotAttr.type===N.x.WSticky&&H({type:"ST:update",payload:{fakePointToDir:g[0].hotAttr.pointToDir}});const We=pn=>{if(pe=pe||Math.abs(pn.clientX-L.clientX)>1||Math.abs(pn.clientY-L.clientY)>1,!pe)return;if(g.length===0){H({type:"reducer:flag:set:is-dragging-item",payload:{isDraggingItem:!1}});return}const fn=(0,bt.mG)(pn,{scale:S(),offset:_(),viewportRect:O()});Y();const uo=g.filter(Mn=>Mn.hotAttr.type===N.x.WTear&&!Re.includes(Mn.key)).map(Mn=>Mn.key);if(uo!=null&&uo.length){const Mn=(0,Fs.Cu)(fn,uo[0],pn);H({type:"ST:update",payload:{fakeBindingInfo:{...Mn,stickyKey:uo.join(",")}}})}H({type:"update:drag-event:state",payload:{eventOnDrag:pn,worldPosOnDrag:fn,isToLockDragAxis:pn.shiftKey}})},ct=V().getTreeSize(),vt=ct>400?Kt()(We,Math.min(Math.ceil(ct/400)*8,80)):We,Ut=()=>{var pn;document.removeEventListener("mousemove",vt),document.removeEventListener("mouseup",Ut),(pn=vt.flush)==null||pn.call(vt),re(pe);const fn=f(),uo=O(fn),Mn=(0,r.ER)(fn),yo={scale:S(fn)/100,size:{w:uo.width,h:uo.height},offset:Mn},Do=(0,w.jN)();if(Do&&Do.isInProgress){const Wo=g.some(ra=>{const{x:ka,y:pa}=sdkStore.getHotItem(ra.key).hotAttr;return!ra.key.startsWith("imgtip")&&ka>=0&&ka<=yo.size.w&&pa>=0&&pa<=yo.size.h}),Ro=(0,r.eo)(fn);if(Wo){const ra=sdkStore.findAllTypeUnder(Ro,N.x.WImage).filter(ka=>{let{key:pa}=ka;return pa.startsWith("imgtip")});sdkStore.deleteHotItemBatch(ra.map(ka=>{let{key:pa}=ka;return pa})),H({type:"entry:update:novice:guide:and:task",payload:{guideType:C.c.GUIDE_NOVICE_2309_STEP_2,taskType:C.c.GUIDE_NOVICE_2309_TASK_2}})}}};document.addEventListener("mousemove",vt),document.addEventListener("mouseup",Ut)},j2=L=>{var P;let{getState:b,dispatch:u,subscribe:f,draggableItems:g}=L,S,_,O;const V=b(),H=(0,mt.PI)(V),Y=(0,mt.k3)(V),re=(P=(0,r.Ur)(V))==null?void 0:P.cid;if(!re)return;let pe=[];const Ce=function(Ut,pn){pn===void 0&&(pn=0),pe.push(setTimeout(Ut,pn))},Pe=()=>{pe.forEach(clearTimeout),pe=[]};let Ie=[];const Re=Ut=>{const pn=Ut.some((fn,uo)=>fn!==Ie[uo]);return Ie=Ut,pn},ct=f(()=>{var Ut,pn;const fn=b(),uo=(0,r.$S)(fn),Mn=(0,r.ER)(fn),Gt=fn.screencontainer.dragEventState,yo=(0,r.X_)(fn);if(Re([uo,Mn,Gt,yo])&&Gt.isActive&&Gt.worldPosOnDrag&&(((Ut=S)==null?void 0:Ut.x)!==Gt.worldPosOnDrag.x||((pn=S)==null?void 0:pn.y)!==Gt.worldPosOnDrag.y)){const{draggableItems:Wo,worldPosPreDrag:Ro,worldPosOnDrag:ra,isToLockDragAxis:ka,preDragSnapshot:pa,boundTearKeyList:Ma}=Gt;if(Wo.length===0)return;_=typeof _=="function"?_:!Wo.every(Xs=>Xs.hotAttr.type===N.x.WTear)&&(H||Y)?(0,c1.ay)({movableItems:Wo,createSnapper:H?Xd.WY:c1.xb,viewport:{scale:yo/100}}):null,S=ra;let Ya=ra.x-Ro.x>>0,di=ra.y-Ro.y>>0;ka?O?(O==="y"&&(Ya=0),O==="x"&&(di=0)):Math.abs(Ya)>Math.abs(di)?(di=0,O="x"):(Ya=0,O="y"):O=null;const ja=[],{hb:ri}=pa["@@START-DND"],ks=ri.w*.5,ti=ri.h*.5,vi={left:Math.round(ri.x-ks+Ya),right:Math.round(ri.x+ks+Ya),top:Math.round(ri.y-ti+di),bottom:Math.round(ri.y+ti+di),width:Math.round(ri.w),height:Math.round(ri.h)},Hr=Array.from(new Set(Wo.reduce((Xs,Ti)=>{let{key:ms}=Ti;const Fl=sdkStore.getHotItem(ms);return!Fl||Fl.hotAttr.type==="wSticky"||Fl.hotAttr.type==="wTear"?Xs:Xs.concat([Fl.sup])},[]))),Yr=_?_({_rect:vi,sup:Hr.length===1?Hr[0]:re}):{left:vi.left,top:vi.top},{left:br,top:zi,alignment:mr,sameSize:pi,distributed:ui}=Yr;Ya=br-(ri.x-ks),di=zi-(ri.y-ti);for(const Xs of Wo)if(pa[Xs.key]){const{hb:Ti,wasoX:ms,wasoY:Fl}=pa[Xs.key],{x:b1,y:lp}=sdkStore.toAttrXY({x:Ti.x+Ya,y:Ti.y+di},Xs.key),w1=ja.findIndex(Zp=>Zp.key===Xs.key);w1!==-1?ja[w1]={...ja[w1],hotAttr:{...ja[w1].hotAttr,x:b1+ms,y:lp+Fl}}:ja.push({key:Xs.key,hotAttr:{x:b1+ms,y:lp+Fl}})}for(const Xs of Ma)if(pa[Xs]){const{hb:Ti,wasoX:ms,wasoY:Fl}=pa[Xs],{x:b1,y:lp}=sdkStore.toAttrXY({x:Ti.x+Ya,y:Ti.y+di},Xs);ja.push({key:Xs,hotAttr:{x:b1+ms,y:lp+Fl}})}u({type:"entry:widget:change",payload:{flatChgList:ja,shouldBreakLayerUICache:!1}}),Pe(),typeof _=="function"&&(u({type:"set:alignment",payload:{alignment:mr}}),u({type:"set:sameSize",payload:{sameSize:pi}}),u({type:"set:distributed",payload:{distributed:ui}}));const tl={scale:yo/100,size:{w:uo.width,h:uo.height},offset:Mn},[Yi,us,pl,Va]=(0,ta.WO)(tl,uo.left),Xi=[],hs=10/(yo/100);if(ra.x<Yi+hs?Xi[0]=m1:ra.x>pl-hs&&(Xi[0]=-m1),ra.y<us+hs?Xi[1]=m1:ra.y>Va-hs&&(Xi[1]=-m1),Xi.length){const[Xs=0,Ti=0]=Xi;Ce(()=>u({type:"entry:set:canvas:offset",payload:{offset:{x:Mn.x+Xs,y:Mn.y+Ti}}}))}}});return()=>{ct(),Pe()}};var Ju=s(32286),qu=s(28681);const $u={"entry:event:item:drag-start":(L,P)=>{var b,u;let{getState:f,dispatch:g}=L,{payload:{event:S}}=P,_=f();if((0,It.jx)(_)===o.qi.OnlyView)return;let H=(0,De.p$)(_);const Y=(0,It.Pm)(_),re=(0,De.nE)(_),pe=(0,r.PL)(_),Ce=(0,vn.Zn)(_),Pe=(0,r.lh)(_),Ie=(0,r.Ur)(_),Re=(0,Pt.WH)(_),We=re.every(Do=>{let{hotAttr:Wo}=Do;return(Wo==null?void 0:Wo.type)===N.x.WTear}),{isKeySDown:ct}=(0,r.ZS)(_);if(ct||Ce&&Ce===Pe||((b=re[0])==null?void 0:b.key)===Y||((u=re[0])==null?void 0:u.key)===Re)return;const vt=N2(H);let{draggableItems:Ut}=vt;if(Ut.length===0)return;sdkStore.combineMergeMark("dnd-item");const fn=(0,U.kV)(qu._v)||"alt";if(fn.includes("alt")&&S.altKey||fn.includes("ctrl")&&S.ctrlKey){if(!(0,Oi.x7)(Ut)){sdkStore.combineMerge("dnd-item");return}const Do=Ut.map(ra=>ra.key),Wo=sdkStore.dupWithinPage(Do),Ro=Ut[0].sup;if((0,me.Nt)({selections:Wo,keyRndSup:Ro,commonKeyRndSup:Ro,option:{isOptionDup:!0}}),(0,ta.F6)(Wo),(0,ta.gs)(Ie.cid,Wo),Ut=Wo.map(sdkStore.getHotItem),g({type:"entry:select:items",payload:{cids:Wo}}),(0,Ju.L)("alt+\u9F20\u6807\u62D6\u62FD"),Ut&&Ut.length===1){var uo;const ra=(uo=Ut[0])==null?void 0:uo.hotAttr;(ra==null?void 0:ra.type)===N.x.Canvas?(0,rs.mB)({page:ra}):(0,ic.lF)(ra,pe)}}_=f(),H=(0,De.p$)(_),Ut=N2(H).draggableItems;const Gt=new Map;Ut.forEach(Do=>(0,Zl.s_)(Do.key,Gt));const yo=j2({getState:f,dispatch:g,subscribe:MB.__store__.subscribe,draggableItems:Ut});g({type:"reducer:flag:set:is-dragging-item",payload:{isDraggingItem:!0}}),Bp(S,{getState:f,draggableItems:Ut,currPageKey:Ie.cid,getScale:()=>(0,r.X_)(f()),getOffset:()=>(0,r.ER)(f()),getViewportRect:()=>(0,r.$S)(f()),getWidgetStore:()=>(0,I.UV)(f()),dispatch:g},{onDragStart:()=>{We&&g({type:"ST:update",payload:{isDraggingWTear:!0}}),Ut.length===1&&Ut[0].hotAttr.type===N.x.WSticky&&g({type:"entry:ST:drag:sticky:point:fake:bind",payload:{stickyKey:Ut[0].key}})},onDragEnd:Do=>{if(Do){const Wo=[],Ro=(0,Zl.G9)(Ie.cid,Ut.map(Ya=>Ya.key)),ra=(0,Zl.wr)();let ka=!1;for(const{key:Ya}of Ut.sort((0,Zl.tU)())){const di=(0,Zl.Rv)(Wo,Ya,Gt,Ro,ra);ka=ka||di!==null}g({type:"entry:widget:change",payload:{flatChgList:Wo,shouldBreakLayerUICache:ka}});const pa=S.button===0;if(g({type:"ST:update",payload:{isLeftDown:pa}}),Ut.length===1){const{hotAttr:Ya,key:di}=Ut[0];Ya.type===N.x.WSticky&&g({type:"entry:ST:drag:sticky:point:real:bind",payload:{stickyKey:di}})}const Ma=Ut.filter(Ya=>Ya.hotAttr.type===N.x.WTear).map(Ya=>Ya.key);g({type:"entry:ST:tears:bind",payload:{tearKeys:Ma}}),g({type:"ST:clear:fake-related"}),g({type:"entry:finish:resize:canvas:within:basket"}),g({type:"entry:layout:basket-canvas"}),g({type:"entry:select:smartly"})}g({type:"entry:reset:dragging:state"}),yo==null||yo(),g({type:"entry:refresh:link-list"}),sdkStore.combineMerge("dnd-item")}})},"entry:reset:dragging:state":L=>{let{getState:P,dispatch:b}=L;const u=P(),f=(0,mt.PI)(u);b({type:"reducer:flag:set:is-dragging-item",payload:{isDraggingItem:!1}}),f&&(b({type:"set:alignment",payload:{alignment:{}}}),b({type:"set:sameSize",payload:{sameSize:{}}}),b({type:"set:distributed",payload:{distributed:{}}})),b({type:"reset:drag-event:state"})}};var Up=s(41818),Dd=s(62587);const Op={"entry:enter:key":L=>{var P;let{getState:b,dispatch:u}=L;const f=b(),g=(0,r.rZ)(f),S=fe.y.query.getMissFontHiKeySet(f);g&&(u({type:"colorpanel:set:attr",payload:{attr:void 0}}),u({type:"colorpanel:set:attrPanel",payload:{attrPanel:void 0}})),u({type:"reducer:flag:set-isShowRadiusResizer",payload:{isShowRadiusResizer:!1}}),u({type:"reducer:flag:set-isResizingRadius",payload:{isResizingRadius:!1}});const _=(0,De.nE)(f),O=_.length===1&&_[0],V=(0,kt.u7)(f);if(O&&!(O!=null&&O.hotAttr.isLock)&&O.hotAttr.type!==N.x.WSwimlane&&!/_status_bar$/.test(O==null||(P=O.hotAttr)==null?void 0:P.type)&&!V){var H;const Y=(0,xt.ji)(O);(0,dt.a$)(O==null||(H=O.hotAttr)==null?void 0:H.type)&&!Y&&(S.has(O.key)?u({type:fe.y.entryKey["font:miss:modal:open"]}):u({type:"entry:set:editing:cid",payload:{item:O}}))}},"entry:arrow:key":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:f}=P;const g=b(),S=(0,De.nE)(g),_=(0,r.Ur)(g),O=(0,lo.uE)(g),V=(0,Qo.kA)(g);if(O||(0,jt.td)((0,De.p$)(g))||V)return;const{direction:H,rate:Y}=f,[re,pe]=[Y*10,Y],[Ce,Pe,Ie,Re]=H==="x"?[re,0,pe,0]:[0,re,0,pe],We=S.length===1&&S[0].key===_.cid,ct=S.length===0;u(We||ct?{type:"entry:move:canvas",payload:{dx:Ce,dy:Pe}}:{type:"entry:items:move:by:offset",payload:{offsetX:Ie,offsetY:Re}})},"entry:escape:key":L=>{let{getState:P,dispatch:b}=L;const u=P(),f=(0,Yt.P2)(u),g=(0,Wt.sI)(u),S=(0,$t.Lc)(u),_=(0,r.YY)(u);document.querySelector(".--mb--color-picker")?(b({type:"colorpanel:set:attr",payload:{attr:void 0}}),b({type:"colorpanel:set:attrPanel",payload:{attrPanel:void 0}})):b(f?{type:"entry:image-view:exit:edit"}:g?{type:"entry:comment:create:esc"}:S?{type:"entry:ST:STMode:disable"}:_?{type:"update:screenContainer:state",payload:{createTemplatesData:null}}:{type:"entry:clear:selection"})},"entry:i:key":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:f}=P;const{color:g}=f,S=b(),_=(0,De.nE)(S).map(ts.Dx).flat(),O=(0,r.th)(S),V=(0,r.Hi)(S),H=(0,Qo.Ai)(S),Y=(0,Qo.I5)(S),re=(0,Qo.md)(S);let pe=!1;const Ce=(0,Dd.dT)(g);if(H.isOpen){u({type:"modal:update:state",payload:{libEditColorModal:{...H,color:Ce}}});return}if(Y.isOpen){const ct=V&&O?V:"fill",vt=V&&O?O:"solidColor";u({type:"modal:update:state",payload:{libEditAppearModal:{...Y,attrs:{...Y.attrs,[ct]:{...Y.attrs[ct],[vt]:Ce==null?void 0:Ce.solidColor}}}}}),u({type:"entry:libStyle:del:widget:refStyles",payload:{selections:[Y==null?void 0:Y.currentKey],key:vt,supAttr:ct,type:"color",updateType:"appearRef"}});return}if(re.isOpen){u({type:"modal:update:state",payload:{libEditTextModal:{...re,attrs:{...re.attrs,textColor:Up.Q.hex2rgbaStr(g,1)}}}}),u({type:"entry:libStyle:del:widget:refStyles",payload:{selections:[re==null?void 0:re.currentKey],key:"textColor",supAttr:"richTextV1",type:"color",updateType:"textRef"}});return}if(_.length===0){MB.notice({text:"\u8BF7\u9009\u62E9\u66F4\u6539\u989C\u8272\u7684\u5BF9\u8C61"});return}if(O){const ct=new Fp;ct.generatePathMap(_,O);let vt;if(O==="fill")vt=_.map(pn=>{const fn=ct.deepUpdate(pn.hotAttr,O,(0,Dd.dT)(g));return{key:pn.key,hotAttr:fn}});else if(O==="bgcolor"){u({type:"entry:update:root-project:bgcolor",payload:{bgcolor:Up.Q.hex2rgbaStr(g,1)}});return}else vt=_.map(pn=>{const fn=ct.deepUpdate(pn.hotAttr,O,(0,Dd.zX)(g));return{key:pn.key,hotAttr:fn}});u({type:"entry:widget:change",payload:{flatChgList:vt}});const Ut=vt.map(pn=>pn.key);u({type:"entry:libStyle:del:widget:refStyles",payload:{selections:Ut,key:O,supAttr:V,type:"color",updateType:"widget"}});return}const Pe=_.filter(ct=>{let{hotAttr:{type:vt}}=ct;return vt===N.x.WRichText});if(Pe.length>0){pe=!0,u({type:"entry:set:specify:text:attr",payload:{widgets:Pe,attr:"textColor",value:Up.Q.hex2rgbaStr(g,1)}});const ct=Pe.map(vt=>vt.key);u({type:"settings:update:currentTextRefStyle",payload:null}),u({type:"entry:libStyle:del:widget:refStyles",payload:{selections:ct,key:"textColor",supAttr:"richTextV1",type:"color",updateType:"widget"}})}const Ie=_.filter(ct=>{let{hotAttr:{type:vt}}=ct;return[N.x.Canvas,N.x.WRect,N.x.WOval,N.x.WImage,N.x.WButton,N.x.WButtonSolid,N.x.WPlaceholder,N.x.WMTextInput,N.x.WMTextArea,N.x.WMSelect,N.x.WPolygon,N.x.WStar,N.x.WTriangleB,N.x.WDropMenu,N.x.WTriangleTL,N.x.WIcon].includes(vt)});if(Ie.length>0){pe=!0;const ct=Ie.filter(vt=>{let{hotAttr:{type:Ut}}=vt;return[...N.Q.BACKGROUND_TO_FILLS,...N.Q.TC_TO_FILLS].includes(Ut)});if(ct.length>0){const vt=ct.map(pn=>pn.key),Ut=ct.map(pn=>({key:pn.key,hotAttr:{fill:(0,Dd.dT)(g),refStyles:{...pn.hotAttr.refStyles,appear:void 0}}}));u({type:"entry:widget:change",payload:{flatChgList:Ut}}),u({type:"settings:update:currentAppearRefStyle",payload:null}),u({type:"entry:libStyle:del:widget:refStyles",payload:{selections:vt,key:"solidColor",supAttr:"fill",type:"color",updateType:"widget"}})}}const Re=_.filter(ct=>{let{hotAttr:{type:vt}}=ct;return vt===N.x.WLine});if(Re.length>0){pe=!0;const ct=Re.map(Ut=>Ut.key),vt=Re.map(Ut=>({key:Ut.key,hotAttr:{border:{...Ut.hotAttr.border,bdrColor:(0,Dd.zX)(g)}}}));u({type:"entry:widget:change",payload:{flatChgList:vt}}),u({type:"entry:libStyle:del:widget:refStyles",payload:{selections:ct,key:"bdrColor",supAttr:"border",type:"color",updateType:"widget"}})}const We=_.filter(ct=>{let{hotAttr:{type:vt}}=ct;return vt===N.x.WArrow});if(We.length>0){pe=!0;const ct=We.map(Ut=>Ut.key),vt=We.map(Ut=>({key:Ut.key,hotAttr:{arrow:{...Ut.hotAttr.arrow,arrowStroke:{...Ut.hotAttr.arrow.arrowStroke,bdrColor:(0,Dd.zX)(g)}}}}));u({type:"entry:widget:change",payload:{flatChgList:vt}}),u({type:"entry:libStyle:del:widget:refStyles",payload:{selections:ct,key:"bdrColor",supAttr:"arrow-arrowStroke",type:"color",updateType:"widget"}})}pe||MB.notice({text:"\u9009\u4E2D\u7684\u5BF9\u8C61\u4E0D\u652F\u6301\u5FEB\u901F\u66F4\u6539\u989C\u8272",type:"warning"})},"entry:keyC":L=>{let{getState:P,dispatch:b}=L;const u=P(),{isEditingCombo:f}=(0,gt.r)(u);f||(b({type:"entry:comment:toggle"}),b({type:"entry:ST:STMode:disable"}),b({type:"elbow:update",payload:{isInElbowMode:!1}}))}};class Fp{constructor(){(0,md.A)(this,"pathMap",new Map),(0,md.A)(this,"keyPath",""),(0,md.A)(this,"findObjectPathByTargetKey",(P,b,u)=>{Object.entries(P).forEach(f=>{let[g,S]=f;g===b?this.keyPath=u+":"+g:typeof P[g]=="object"&&P[g]!==null&&this.findObjectPathByTargetKey(P[g],b,(u===""?"":u+":")+g)})}),(0,md.A)(this,"detectWhichPath",(P,b)=>{let u="";const f=this.pathMap.get(b);return f==null||f.forEach(g=>{const S=g.split(":");let _=P[S[0]];if(_!==void 0){for(let O=1;O<S.length&&(_=_[S[O]],_!==void 0);O++);_!==void 0&&(u=g)}}),u}),(0,md.A)(this,"generatePathMap",(P,b)=>{P.forEach(u=>{u.hotAttr[b]!==void 0?this.keyPath=b:this.findObjectPathByTargetKey(u.hotAttr,b,"");const f=this.pathMap.get(b);f===void 0?this.pathMap.set(b,[this.keyPath]):this.pathMap.set(b,[...f,this.keyPath])})}),(0,md.A)(this,"deepUpdate",(P,b,u)=>{const g=this.detectWhichPath(P,b).split(":"),S=(_,O)=>g[O]===b?{..._,[b]:u}:{..._,[g[O]]:{...S(_[g[O]],O+1)}};return S(P,0)})}}const Gc={"entry:select:link":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{link:f}}=P;u({type:"entry:select:items",payload:{cids:[f.data.triggerItemKey]}})},"entry:set:option:item":L=>{let{getState:P,dispatch:b}=L;const u=P(),f=(0,De.nE)(u)[0];b({type:"update:link:selectOptionLinkItem",payload:{selectOptionLinkItem:f}})}};var f1=s(70756),Mc=s(35083),Jh=s(52822);const eh=L=>{const P=L.map(g=>g.mindNodePosition.x),b=Math.min(...P),u=L.map(g=>g.mindNodePosition.x+g.mindNodeSize.w);return Math.max(...u)-b},Rd=L=>{const P=L.map(g=>g.mindNodePosition.y),b=Math.min(...P),u=L.map(g=>g.mindNodePosition.y+g.mindNodeSize.h);return Math.max(...u)-b},qh=(L,P)=>{const b=[],u=P(L);return u&&b.push(u),L.widget.expand&&L.children.forEach(f=>{b.push(...qh(f,P))}),b},th=L=>{const P=[];return qh(L,b=>{P.push(b)}),P},$h=L=>{var P;const b=(P=L.children[0])==null?void 0:P.children.find(S=>S.widget.isRoot),u=th(b),f=eh(u),g=Rd(u);return{w:f+DISTANCE_PADDING_H*2,h:g+DISTANCE_PADDING_V*2}},D2=L=>{let P=L;const b=[];if(!L)return b;for(;P&&(b.push(P),P.sub.length&&P.hotAttr.expand);)P=sdkStore.getHotItem(P.sub[0]);return b},Vp=(L,P)=>L.hotAttr.order-P.hotAttr.order,g1=(L,P)=>{if(!L)return{x:0,y:0};const{hotAttr:{border:{bdrIsVisible:b,bdrWidth:u}}}=P.sdkStore.getHotItem(P.mindKey),f=b?-u:0,S=P.getAllMindNodes().map(We=>P.getNodePosition(We.key).x),_=Math.min(...S),O=DISTANCE_PADDING_H-(_-f),V=L.sub.map(We=>P.sdkStore.getHotItem(We)),H=V.filter(We=>{let{sup:ct,hotAttr:vt}=We;return vt.placement==="left"&&P.getSubTreeSize(ct).h>P.getNodeSize(ct).h}).sort(Vp)[0],Y=V.filter(We=>{let{sup:ct,hotAttr:vt}=We;return vt.placement==="right"&&P.getSubTreeSize(ct).h>P.getNodeSize(ct).h}).sort(Vp)[0],re=D2(H),pe=D2(Y),Ce=re.map(We=>P.getNodePosition(We.key).y),Pe=pe.map(We=>P.getNodePosition(We.key).y),Ie=!Ce.length&&!Pe.length?0:Math.min(...Ce,...Pe),Re=DISTANCE_PADDING_V-(Ie-f);return{x:O,y:Re}},R2=(L,P)=>{const{x:b,y:u}=P,{x:f,y:g,r:S,w:_,h:O}=sdkStore.getHotBound(L);return(0,Mc.of)((0,Mc.bj)(),(0,Mc.CR)(f,g,_*.5,O*.5,(0,Hu.EQ)(S)),(0,Mc.Q6)(b,u,0))},gd=(L,P)=>{const{key:b,sub:u,hotAttr:f}=L,{w:g,h:S}=P.getNodeSize(b),{h:_}=P.getSubTreeSize(b),{x:O,y:V}=P.getNodePosition(b),H=(0,kn.F1)();return!u.length||!f.expand||_<=S?(H[0]=O-(f.placement==="left"?48:0),H[1]=V,H[2]=H[0]+g+48,H[3]=H[1]+S):(H[0]=O-(f.placement==="left"?48:0),H[1]=V-(_-S)/2,H[2]=H[0]+g+48,H[3]=H[1]+_),H},B2=(L,P,b,u)=>{const f=(0,f1.Si)(O=>b.sdkStore.getRenderableSubHotItems(O));let g,S;const _=gd(P,b);return(0,kn.N0)(_,L)?{closestMindNode:P,relPos:(L.x<(_[0]+_[2])/2?"left":"right")+"-"+(L.y<(_[1]+_[3])/2?"top":"bottom")}:(f(P,O=>{const V=gd(O,b);if((0,kn.N0)(V,L))return g=O,S=(L.x<(V[0]+V[2])/2?"left":"right")+"-"+(L.y<(V[1]+V[3])/2?"top":"bottom"),f1.Hs;if(u(O.key)||!O.hotAttr.expand)return f1.NU}),{closestMindNode:g,relPos:S})},mc=(L,P,b)=>{const u=L.hotAttr.placement||"right",f=b.sdkStore.getRenderableSubHotItems(L);if(L.hotAttr.isRoot)if(P==="right-top"||P==="right-bottom"){const g=f.filter(S=>S.hotAttr.placement==="right");return g.length===0?[L,"right",!0]:P==="right-top"?[g[0],"above",!1]:[g.slice(-1)[0],"below",!1]}else{const g=f.filter(S=>S.hotAttr.placement==="left");return g.length===0?[L,"left",!0]:P==="left-top"?[g[0],"above",!1]:[g.slice(-1)[0],"below",!1]}else return u==="right"?P==="left-top"||P==="left-bottom"?[L,P==="left-top"?"above":"below",!1]:f.length===0||!L.hotAttr.expand?[L,"right",!0]:P==="right-top"?[f[0],"above",!1]:[f.slice(-1)[0],"below",!1]:P==="right-top"||P==="right-bottom"?[L,P==="right-top"?"above":"below",!1]:f.length===0||!L.hotAttr.expand?[L,"left",!0]:P==="left-top"?[f[0],"above",!1]:[f.slice(-1)[0],"below",!1]},e0=(L,P,b)=>{let{scale:u,offset:f,viewportRect:g}=P,{onDragStart:S,onDragging:_,onDragEnd:O}=b;const V=u/100;let H=!1;const Y=L.clientX,re=L.clientY;let pe=!1;const Ce=Ie=>{pe=pe||Math.abs(Ie.clientX-Y)>1||Math.abs(Ie.clientY-re)>1,pe&&(!H&&S(),H=!0,_((0,bt.mG)(Ie,{scale:u,offset:f,viewportRect:g})))},Pe=()=>{document.removeEventListener("mousemove",Ce),document.removeEventListener("mouseup",Pe),pe&&O()};document.addEventListener("mousemove",Ce),document.addEventListener("mouseup",Pe)};var U2=s(28068),k0=s(9521),O2=s(39679);const nh={"entry:mind:update:mind-size":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:f}=P;const g=b(),{keyMindToUpdateSize:S="",resizeOrigin:_="ctr",isCombineChange:O=!0}=f!=null?f:{},V=S||(0,Pt.WH)(g),H=(0,I.UV)(g);if(!V)return;const Y=H.mindTrees.get(V);Y&&Y.updateMind()},"entry:mind:mindNode:by:rect":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:f}=P;const{rect:{top:g,left:S,width:_,height:O},originalSelection:V}=f,H=b(),Y=(0,Pt.WH)(H),re=(0,I.UV)(H),pe=(0,mt.vZ)(H);if(!Y)return;const Ce=[S,g,S+_,g+O],Pe=re.mindTrees.get(Y),Ie=Pe.getAllMindNodes(),[Re,We]=sdkStore.getHotKeyAABB(Y),ct=Pe.getMindPosition()||{x:0,y:0},Ut=Ie.filter(fn=>!fn.hotAttr.expand).reduce((fn,uo)=>{let{key:Mn,sub:Gt}=uo;return fn.push(...Gt),fn},[]);let pn=Ie.filter(fn=>{if(Ut.includes(fn.key))return!1;const{x:uo,y:Mn}=Pe.getNodePosition(fn.key),{w:Gt,h:yo}=Pe.getNodeSize(fn.key),Do=Re+uo+ct.x,Wo=We+Mn+ct.y,Ro=[Do,Wo,Do+Gt,Wo+yo];return pe?(0,kn.Pn)(Ce,Ro):(0,kn.cj)(Ce,Ro)}).map(fn=>fn.key);pn=[...pn,...V].filter(fn=>!pn.includes(fn)||!V.includes(fn)),u({type:"mind:update:state:selectedMindNodeKeys",payload:{selectedMindNodeKeys:pn}})},"entry:mind:add:node-mind":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{node:f,type:g,defaultText:S,attr:_={}}}=P;if(!(0,Oi._c)({type:N.x.WMindNode}))return;const O=b(),V=(0,Pt.ul)(O);if(V.length>1)return;const H=(0,I.UV)(O),Y=(0,Pt.WH)(O),re=H.mindTrees.get(Y),pe=f||H.getHotItem(V[0]),Ce=re.addNode(pe,g,_,S);Ce&&u({type:"mind:update:state:selectedMindNodeKeys",payload:{selectedMindNodeKeys:[Ce]}})},"entry:mind:del:selected:node-mind":L=>{let{getState:P,dispatch:b}=L;const u=P(),f=(0,Pt.UN)(u),g=(0,Pt.g0)(u);if(f||g){sdkStore.combineMergeMark("delete-mindNode-param"),f?(b({type:"entry:widget:change",payload:{flatChgList:[{key:f,hotAttr:{icon:""}}],shouldReBuildTree:!0,isCombineChange:!1}}),b({type:"mind:update:state",payload:{selectedMindNodeFlagIconKey:""}}),b({type:"mind:update:state:selectedMindNodeKeys",payload:{selectedMindNodeKeys:[f]}})):(b({type:"entry:widget:change",payload:{flatChgList:[{key:g,hotAttr:{image:{imageRef:"",imageRectWidth:0,imageRectHeight:0}}}],shouldReBuildTree:!0,isCombineChange:!1}}),b({type:"mind:update:state",payload:{selectedMindNodeImageKey:""}}),b({type:"mind:update:state:selectedMindNodeKeys",payload:{selectedMindNodeKeys:[g]}})),b({type:"entry:mind:update:mind-size",payload:{isCombineChange:!1}}),sdkStore.combineMerge("delete-mindNode-param");return}const S=(0,I.UV)(u),_=(0,Pt.WH)(u),O=S.mindTrees.get(_),V=(0,Pt.fo)(u).filter(pe=>!pe.hotAttr.isRoot),H=zp(V);let Y=V[V.length-1],re;if(Y){let pe=sdkStore.getHotItem(Y.sup);for(;pe&&H.find(Re=>Re.key===pe.key);)Y=pe,pe=sdkStore.getHotItem(pe.sup);const Ce=O==null?void 0:O.isRootSub(Y.key);let Pe=S.getRenderableSubHotItems(Y.sup);Ce&&(Pe=Pe.filter(Re=>Re.hotAttr.placement===Y.hotAttr.placement));let Ie=Pe.findIndex(Re=>Re.key===Y.key);for(;Ie-->=0&&!re;)re=Pe[Ie],re&&H.find(Re=>Re.key===re.key)&&(re=null);if(!re)for(re=sdkStore.getHotItem(Y.sup);!re.hotAttr.isRoot&&H.find(Re=>Re.key===re.key);)re=sdkStore.getHotItem(re.sup)}O.deleteNodes(V),re&&(sdkStore.isTrashed(re.key)||b({type:"mind:update:state:selectedMindNodeKeys",payload:{selectedMindNodeKeys:[re.key]}}))},"entry:mind:insert:asset":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{asset:f}}=P;const g=b(),S=(0,Pt.fo)(g);if(S.length===1){const _=(0,$.t$)(f),O=S[0].key,V=[{key:O,hotAttr:{image:_}}];sdkStore.combineMergeMark("insert-mindNode-image"),u({type:"entry:widget:change",payload:{flatChgList:V,shouldReBuildTree:!0,isCombineChange:!1}}),u({type:"entry:mind:update:mind-size",payload:{isCombineChange:!1}}),sdkStore.combineMerge("insert-mindNode-image"),u({type:"mind:update:state",payload:{selectedMindNodeImageKey:O}})}},"entry:mind:copy:node:properties":async(L,P)=>{let{getState:b}=L,{payload:u}=P;const f=b(),g=(0,Pt.fo)(f);if(g.length===1){const S=(0,C2.g)(f);await(0,S0.vz)({...S,selectedItems:g}),await(0,bl.$H)({hasNotice:!1})&&(0,Vr.P8)()}},"entry:mind:cut:node":L=>{let{dispatch:P}=L;P({type:"entry:mind:copy:selected:node-mind"}),P({type:"entry:mind:del:selected:node-mind"})},"entry:mind:paste:node:properties":async(L,P)=>{let{getState:b,dispatch:u}=L,{payload:f}=P;const g=b(),S=(0,Pt.fo)(g),_=await(0,Vr._d)({isShowPrompt:!0});if(_&&S!=null&&S.length){sdkStore.combineMergeMark("paste-propertities");const O=S.map(V=>{let{key:H,hotAttr:Y}=V;const re=new Set,pe=(0,S0.MP)(_,Y,re,!1);return{key:H,hotAttr:pe}});u({type:"entry:widget:change",payload:{flatChgList:O,shouldReBuildTree:!0}}),u({type:"entry:mind:update:mind-size"}),sdkStore.combineMerge("paste-propertities")}},"entry:mind:start:drag:mind-node":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:f}=P;const{e:g,mindNodeKey:S}=f,_=b(),O=(0,r.X_)(_),V=(0,r.$S)(_),H=(0,r.ER)(_),Y=(0,Pt.ul)(_),re=(0,I.UV)(_),pe=(0,Pt.WH)(_),Ce=(0,Pt.UN)(_),Pe=(0,Pt.g0)(_),Ie=(0,Pt.aJ)(_),Re=re.mindTrees.get(pe),ct=Re.getAllMindNodes().find(Mn=>Mn.hotAttr.isRoot),vt=Re.getMindPosition();let Ut=[...Y];if(Y.includes(S)||(Ut=[S]),Ut.length===0||Ut.find(Mn=>sdkStore.getHotItem(Mn).hotAttr.isRoot)||Ce||Pe||!Ie)return;let pn,fn,uo=null;e0(g,{scale:O,viewportRect:V,offset:H},{onDragStart:()=>{Y.includes(S)||u({type:"mind:update:state:selectedMindNodeKeys",payload:{selectedMindNodeKeys:[S]}}),u({type:"mind:update:draggingState",payload:{isDragging:!0}}),u({type:"end:range:select"})},onDragging:Mn=>{const Gt=R2(pe,vt),yo=(0,Mc.fJ)(Gt,Mn.x,Mn.y);let{closestMindNode:Do,relPos:Wo}=B2(yo,ct,Re,Ro=>Ut.includes(Ro))||{};if(Do?fn=yo:fn&&Math.abs(fn.x-yo.x)<100&&Math.abs(fn.y-yo.y)<100&&(Do=pn,Wo=uo),Do!==pn||Wo!==uo){if(pn=Do,uo=Wo,!Do){u({type:"mind:update:draggingState",payload:{mindNodeToAttach:null,attachPosition:null,attachToSelf:null}});return}if(Ut.includes(Do.key)&&(Do.hotAttr.placement==="right"?Wo.startsWith("right"):Wo.startsWith("left"))){u({type:"mind:update:draggingState",payload:{mindNodeToAttach:null,attachPosition:null,attachToSelf:null}});return}const[Ro,ra,ka]=mc(Do,Wo,Re);u({type:"mind:update:draggingState",payload:{mindNodeToAttach:Ro,attachPosition:ra,attachToSelf:ka}})}},onDragEnd:()=>{const Mn=b(),{mindNodeToAttach:Gt,attachPosition:yo}=(0,Pt.H_)(Mn);if(Gt){const Do=Ut.map(Ro=>re.getHotItem(Ro));let Wo=[...Ut];switch(Do.forEach(Ro=>{let{key:ra,sup:ka}=Ro,pa=re.getHotItem(ka);do{var Ma;if(Wo.includes(ka)){Wo=Wo.filter(Ya=>ra!==Ya);break}pa=pa&&re.getHotItem(pa.sup)}while(((Ma=pa)==null?void 0:Ma.hotAttr.type)==="wMindNode")}),sdkStore.combineMergeMark("drag-and-attach"),yo){case"left":{const Ro=sdkStore.getSubHotItemList(Gt.key).reduce((ra,ka)=>Math.max(ka.hotAttr.order,ra),0);Wo.forEach((ra,ka)=>{sdkStore.moveHotItem(ra,Gt.key),sdkStore.updateHotAttrMerge(ra,{placement:"left",order:ka+Ro+1}),sdkStore.walkHotItemSubtree(ra,pa=>{sdkStore.updateHotAttrKV(pa.key,"placement","left")})});break}case"right":{const Ro=sdkStore.getSubHotItemList(Gt.key).reduce((ra,ka)=>Math.max(ka.hotAttr.order,ra),0);Wo.forEach((ra,ka)=>{sdkStore.moveHotItem(ra,Gt.key),sdkStore.updateHotAttrMerge(ra,{placement:"right",order:ka+Ro+1}),sdkStore.walkHotItemSubtree(ra,pa=>{sdkStore.updateHotAttrKV(pa.key,"placement","right")})});break}case"above":{const Ro=sdkStore.getSubHotItemList(Gt.sup).filter(pa=>pa.hotAttr.placement===Gt.hotAttr.placement).sort((pa,Ma)=>pa.hotAttr.order-Ma.hotAttr.order).map(pa=>pa.key),ra=Gt.hotAttr.placement,ka=Ro.findIndex(pa=>pa===Gt.key);Ro.slice(ka,Ro.length).forEach(pa=>{const Ma=sdkStore.getHotItem(pa).hotAttr.order||0;sdkStore.updateHotAttrKV(pa,"order",Ma+Wo.length)}),Wo.forEach((pa,Ma)=>{sdkStore.moveHotItem(pa,Gt.sup),sdkStore.updateHotAttrMerge(pa,{order:Gt.hotAttr.order+Ma,placement:ra}),sdkStore.walkHotItemSubtree(pa,Ya=>{sdkStore.updateHotAttrKV(Ya.key,"placement",ra)})});break}case"below":{const Ro=sdkStore.getSubHotItemList(Gt.sup).filter(pa=>pa.hotAttr.placement===Gt.hotAttr.placement).sort((pa,Ma)=>pa.hotAttr.order-Ma.hotAttr.order).map(pa=>pa.key),ra=Gt.hotAttr.placement,ka=Ro.findIndex(pa=>pa===Gt.key);Ro.slice(ka+1,Ro.length).forEach(pa=>{const Ma=sdkStore.getHotItem(pa).hotAttr.order||0;sdkStore.updateHotAttrKV(pa,"order",Ma+Wo.length)}),Wo.forEach((pa,Ma)=>{sdkStore.moveHotItem(pa,Gt.sup),sdkStore.updateHotAttrMerge(pa,{order:Gt.hotAttr.order+Ma+1,placement:ra}),sdkStore.walkHotItemSubtree(pa,Ya=>{sdkStore.updateHotAttrKV(Ya.key,"placement",ra)})});break}}u({type:"mind:update:state:selectedMindNodeKeys",payload:{selectedMindNodeKeys:Wo}}),u({type:"entry:mind:update:mind-size"}),sdkStore.combineMerge("drag-and-attach")}u({type:"mind:update:draggingState",payload:{isDragging:!1,mindNodeToAttach:null,attachPosition:null,attachToSelf:null}})}})},"entry:mind:copy:selected:node-mind":async L=>{var P;let{getState:b,dispatch:u}=L;const f=b(),g=(0,Pt.ul)(f),S=(0,Pt.WH)(f),_=(0,I.UV)(f),O=g.map(Y=>_.getHotItem(Y));let V=[...g];O.forEach(Y=>{let{key:re,sup:pe}=Y,Ce=_.getHotItem(pe);do{var Pe;if(V.includes(pe)){V=V.filter(Ie=>re!==Ie);break}Ce=Ce&&_.getHotItem(Ce.sup)}while(((Pe=Ce)==null?void 0:Pe.hotAttr.type)==="wMindNode")});const H=sdkStore.saveSubtree(V);await(0,Vr.NO)({data:H,commonKeyRndSup:(P=sdkStore.getHotItem(S))==null?void 0:P.sup}),u({type:"entry:mind:copy:node:properties"})},"entry:mind:enter:text:editing":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{isSelectAll:f=!1}}=P;const g=b(),S=(0,Pt.ul)(g);if(!S.length)return;const _=S[S.length-1];u({type:"mind:update:state:selectedMindNodeKeys",payload:{selectedMindNodeKeys:[_]}}),u({type:"mind:update:isShallowEditText",payload:!1}),u({type:"mind:update:isEditingSelectAll",payload:f}),u({type:"mind:update:isEditingMoveToEnd",payload:!f})},"entry:mind:update:textV1":L=>{let{getState:P,dispatch:b}=L;const u=P(),f=(0,Pt.ux)(u),g=(0,r.Mj)(u),S=(0,I.UV)(u),_=(0,Pt.WH)(u),O=S.mindTrees.get(_);if(!g||!f||!O)return;const{key:V,hotAttr:H}=f,Y=(0,U2.dM)(g.getCurrentContent()),re=(0,la.qn)(Y),pe=(0,Pt.ul)(u);if((0,O2.eI)(re,H.textV1))return;const Ce=(0,k0.zs)([f],"textV1",re);sdkStore.combineMergeMark("edit-mind-node"),b({type:"entry:widget:change",payload:{flatChgList:Ce}}),O.updateMind(),sdkStore.combineMerge("edit-mind-node"),pe.length===1&&pe[0]===V||b({type:"mind:update:state",payload:{selectedMindNodeKeys:[V]}}),b({type:"mind:update:isShallowEditText",payload:!1}),b({type:"mind:update:isEditingSelectAll",payload:!1}),b({type:"mind:update:isEditingMoveToEnd",payload:!1})},"entry:mind:arrow:key":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:f}=P;const{direction:g}=f,S=b(),_=(0,Pt.fo)(S),O=(0,Pt.UN)(S),V=(0,Pt.g0)(S),H=(0,I.UV)(S),Y=(0,Pt.WH)(S),re=H.mindTrees.get(Y);if(_.length===0||O||V)return;const pe=_[_.length-1],{key:Ce,hotAttr:Pe,sup:Ie}=pe,Re=re.isRootSub(Ce);let We="";switch(g){case is.M8.LEFT:We=Pe.isRoot||Pe.placement==="left"?ap(pe,"left",re):Ie;break;case is.M8.RIGHT:We=Pe.placement==="left"?Ie:ap(pe,"right",re);break;case is.M8.UP:if(Pe.isRoot)break;if(Re){var ct;const fn=t0(pe,H);We=(ct=fn[fn.findIndex(uo=>uo.key===Ce)-1])==null?void 0:ct.key}else{var vt;const fn=y1(pe,H);We=(vt=fn[fn.findIndex(uo=>uo.key===Ce)-1])==null?void 0:vt.key}break;case is.M8.DOWN:if(Pe.isRoot)break;if(Re){var Ut;const fn=t0(pe,H);We=(Ut=fn[fn.findIndex(uo=>uo.key===Ce)+1])==null?void 0:Ut.key}else{var pn;const fn=y1(pe,H);We=(pn=fn[fn.findIndex(uo=>uo.key===Ce)+1])==null?void 0:pn.key}break;default:We="";break}We&&(u({type:"mind:update:state:selectedMindNodeKeys",payload:{selectedMindNodeKeys:[We]}}),u({type:"entry:mind:move:in:viewport",payload:{newKey:We}}))},"entry:mind:move:in:viewport":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{newKey:f=""}}=P;const g=b(),S=(0,Pt.WH)(g);if(!f&&!S)return;const O=(0,I.UV)(g).mindTrees.get(S),[V,H]=sdkStore.getHotAABB(S),Y=O.getMindPosition(),re=O.getNodePosition(f),pe=O.getNodeSize(f),Ce=[V,H,V+re.x+Y.x+pe.w,H+re.y+Y.y+pe.h],Pe=(0,r.X_)(g),Ie=(0,r.$S)(g),Re=(0,r.ER)(g),We={scale:Pe/100,size:{w:Ie.width,h:Ie.height},offset:Re};if(!(0,ta._W)(We,Ie.left,Ce)){const vt=(0,ta.WO)(We,Ie.left);let Ut=0,pn=0;vt[0]>Ce[0]&&(Ut=Ce[0]-vt[0]),vt[2]<Ce[2]&&(Ut=Ce[2]-vt[2]),vt[1]>Ce[1]&&(pn=Ce[1]-vt[1]),vt[3]<Ce[3]&&(pn=Ce[3]-vt[3]),u({type:"design:set:canvas:offset",payload:{offset:{x:Re.x-Ut,y:Re.y-pn}}})}}},Bd=L=>{const P=[...L.parent.children],b=P.findIndex(u=>u.key===L.key)+1;P.splice(b,0,null),P.forEach((u,f)=>{if(u&&(u.sup!==L.sup||u.widget.order!==f+1)){const g=sdkStore.getHotItem(u.key),S={...g,hotAttr:{...g.hotAttr,order:f+1}};sdkStore.updateHotItem(S)}})},ap=function(L,P,b){P===void 0&&(P="left");const{key:u,hotAttr:f}=L;if(!f.expand)return"";const S=b.sdkStore.getRenderableSubHotItems(L).filter(re=>re.hotAttr.placement===P);if(S.length===0)return"";const _=S[0],O=b.getNodePosition(u),V=b.getNodePosition(_.key);let H=Math.abs(V.y-O.y),Y=S[0].key;for(let re=1;re<S.length;re++){const pe=b.getNodePosition(S[re].key);Math.abs(pe.y-O.y)<H&&(H=Math.abs(pe.y-O.y),Y=S[re].key)}return Y},y1=(L,P)=>{const b=P.getHotItem(L.sup).sup;return P.getRenderableSubHotItems(b).map(f=>P.getRenderableSubHotItems(f).filter(g=>g.hotAttr.placement===L.hotAttr.placement)).flat()},t0=(L,P)=>{const b=L.hotAttr.placement;return P.getRenderableSubHotItems(L.sup).filter(f=>f.hotAttr.placement===b)},zp=L=>{const P=[];return L.forEach(b=>{P.push(b),Array.prototype.push.apply(P,zp(sdkStore.getSubHotItemList(b.key)))}),P},oh={"entry:navigationMenu:migrate":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:f}=P;const{key:g}=f;if(!sdkStore.getHotItem(g))return;let _=!1;if((0,Oe.OO)(g)){var O;const Y=(0,Oe.QL)(g)[0],re=(O=sdkStore.getHotItem(Y))==null?void 0:O.hotAttr;re&&(_=re.type==="wBasket"&&re.basket==="bDanli")}if(_)return;u({type:"entry:widget:change",payload:{flatChgList:[{key:g,hotAttr:{"!version":2}}]}})},"entry:set:navigationMenu:canExpandOneMenu":L=>{let{getState:P,dispatch:b}=L;const u=P(),f=(0,De.nE)(u);if(!(f.length>0))return;const S=[];f.forEach(_=>{let{key:O,hotAttr:V}=_;if(V.optionData.findIndex(Y=>Y.data.designExpanded)!==-1){const Y=V.optionData.map((re,pe)=>pe?{...re,data:{...re.data,designExpanded:!1}}:{...re,data:{...re.data,designExpanded:!0}});S.push({key:O,hotAttr:{optionData:Y}})}}),b({type:"entry:widget:change",payload:{flatChgList:S}})},"entry:set:navigationMenu:canExpandOneMenu2":L=>{let{getState:P,dispatch:b}=L;const u=P(),f=(0,De.nE)(u);if(!(f.length>0))return;const S=[];f.forEach(_=>{let{key:O,hotAttr:V}=_,H=!1;const{optionDataDesignUnExpanded:Y=[]}=V;let re=[...Y];V.optionData.forEach((pe,Ce)=>{re.findIndex(Pe=>Pe===pe.data.cid)===-1&&Ce&&(re.push(pe.data.cid),H=!0),Y.includes(pe.data.cid)&&!Ce&&(re=re.filter(Pe=>Pe!==pe.data.cid),H=!0)}),H&&S.push({key:O,hotAttr:{optionDataDesignUnExpanded:re}})}),b({type:"entry:widget:change",payload:{flatChgList:S}})}};var Ud=s(69815),M0=s(10549);const n0={"quit:rich:text:editing":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:f}=P;const{isWidgetFirstEdit:g,isNeedMigrateLinkItalic:S,onlySave:_}=f||{};MB.f.isPastingRichText=!1;const O=b(),V=(0,Mo.c)(O),H=(0,Pt.ux)(O),Y=(0,r.Mj)(O),re=V||H;if(!re||(_||V&&(0,jn.ay)(V,"remove"),!Y))return;let pe={...re.hotAttr};const Ce=Y.getCurrentContent(),Pe=(0,U2.dM)(Ce),Ie=(0,la.qn)(Pe),Re=(0,M0.SD)(Ie.blocks);g&&!Re&&(0,Li.p4)(pe.type,pe.richTextV1),S&&(pe["!liVersion"]=3);let We;if(pe.type===N.x.WSwimlane){const{tl:{x:uo,y:Mn}}=Gn.X.query.getSelectedCellsInfo(O),{cells:Gt,table:yo}=pe.database;if(We=yo[Mn][uo],We){const{richTextV1:Do,textV1:Wo}=Gt[We];pe.textV1=Wo,pe.richTextV1=Do}}const ct=(0,k0.zs)([{...re,hotAttr:pe}],"textV1",Ie);if(We&&ct[0]){const{cells:uo}=ct[0].hotAttr.database;uo[We].textV1=ct[0].hotAttr.textV1}const vt=(0,Hc.m5)(re.hotAttr),Ut=Ce.getPlainText();vt&&Ut!==(0,Hc.U_)(vt)&&ct.forEach(uo=>{var Mn;uo.hotAttr.refVars={...uo.hotAttr.refVars,textV1:(0,Hc.JK)((Mn=uo.hotAttr.refVars)==null?void 0:Mn.textV1,"text")}});const fn=ct.map(uo=>({...uo,notTriggerAttachedUpdate:_}));u({type:"entry:widget:change",payload:{flatChgList:fn,shouldBreakLayerUICache:!0}}),!_&&(u({type:"set:editing:cid",payload:{cid:""}}),u({type:"clear:rich:text:editor:state"}),u({type:"flow:update:state",payload:{isDeepEditing:!1}}),u(o.GO.update({textEditor:{selectionAttrs:{},defaultAttrs:{}}})),H&&u({type:"entry:mind:update:mind-size"}))},"entry:remove:selected:items:from-rich-text":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{hotItems:f}}=P;const g=f[0];if(g){const{key:_,hotAttr:{type:O,textV1:V}}=g;if(O===N.x.WRichText){var S;const H=(0,Ud.YZ)(V),Y=document.createElement("div");Y.innerHTML=H,((S=Y.innerText)==null?void 0:S.length)===0&&sdkStore.deleteHotItem(_)}}}};var H0=s(64972),F2=s(40486);let Wp=null;const rp=1e3,Ls={"entry:select:all":L=>{let{getState:P,dispatch:b}=L;const u=P();let f=[];const g=(0,De.p$)(u);let S=!1,_=!1,O=!1,V=!1;const H=[...new Set(g.map(Y=>{let re=!1,pe=Y;const{hotAttr:Ce}=sdkStore.getHotItem(Y),{type:Pe,refWCKey:Ie,isLock:Re}=Ce;Re&&(V=!0),(Pe==="wSticky"||Pe==="wTear")&&(Ie?sdkStore.getHotItem(Ie).hotAttr.type==="rResCanvas"&&(re=!0):S=!0,pe=Ie);let We="";if(pe){const{hotAttr:ct}=sdkStore.getHotItem(pe);ct.type==="rResCanvas"&&!re&&(_=!0),We=sdkStore.locUpColdCanvasKey(pe)}return We||(S=!0),We}))];if(O=H.length===1,!_&&O&&!S){const Y=sdkStore.getHotItem(H[0]).sub.filter(Ce=>{const Pe=sdkStore.getHotItem(Ce);return Pe.hotAttr.type==="wWrap"&&Pe.sub.length===0?!1:V||Pe.hotAttr.isLock!==!0}),re=(0,r.Ur)(u).cid,pe=(0,Fs.GG)(re,H[0]).map(Ce=>Ce.key);f=Y.concat(pe)}else f=(0,It.Bk)(u).map(re=>re.key).filter(re=>V||sdkStore.getHotItem(re).hotAttr.isLock!==!0);b({type:"entry:update:selection:select:items",payload:{cids:f}}),b({type:"entry:select:smartly",payload:{shouldAlign:!0}})},"entry:select:items":(L,P)=>{var b;let{getState:u,dispatch:f}=L,{payload:{cids:g,hasClearVectorEditing:S=!0,fromUndoRedo:_}}=P;const O=u(),V=(0,r.KW)(O),H=(0,It.Pm)(O);if(g=g.filter(Pe=>!(sdkStore.isTrashed(Pe)||ud(Pe))),!(g.length===1&&g[0]===H)&&H&&f({type:"mode:update:state",payload:{isEditingEditableWidgetCid:""}}),V&&(clearTimeout(Wp),f({type:"reducer:flag:set:is-selection-border-resizer",payload:{isHideSelectionBorder_Resizer:!1}})),g.length===1){var Y;const Pe=sdkStore.getHotItem(g[0]);if(Pe&&((Y=Pe.hotAttr)==null?void 0:Y.type)===N.x.WTable){const Ie=(0,sl.nh)(O);(Pe==null?void 0:Pe.key)!==(Ie==null?void 0:Ie.key)&&f({type:"table:update:info",payload:{selectTableCellInfo:null}})}}const re=Array.from(new Set(g));f({type:"entry:update:selection:select:items",payload:{cids:re}}),f({type:"entry:update:select:items:links",payload:{fromUndoRedo:_}});const pe=(0,De.nE)(u());if(pe.length===1&&((b=pe[0])==null||(b=b.hotAttr)==null?void 0:b.type)===N.x.Canvas){var Ce;f({type:"entry:memory:last:screenAndCanvas",payload:{canvasKey:(Ce=pe[0])==null?void 0:Ce.key}})}S&&f({type:"entry:vector:exit:edit"}),setTimeout(()=>{var Pe,Ie,Re;f({type:"entry:select:smartly",payload:{shouldAlign:!0}}),(0,Ll.K)(I18N)[C.c.GUIDE_ALL_REPLACE_PAGE].howToShow(re),(0,Ll.K)(I18N)[C.c.GUIDE_BASKET_MUBAN_USE].howToShow(re),(0,Ll.K)(I18N)[C.c.GUIDE_SELECT_STICKY].howToShow(re),(Pe=MB)==null||(Pe=Pe.commonGuideHelper)==null||Pe.tryToShowGuide(C.c.GUIDE_COMMON_V9_OPERATIONS_GUIDE),!(ENV.IS_MO||MB.f.isSelecting||re.length<2||(Ie=MB)!=null&&(Ie=Ie.commonGuideHelper)!=null&&Ie.checkGuideHasShown(C.c.GUIDE_COPY_AS_PNG))&&((Re=MB)==null||(Re=Re.commonGuideHelper)==null||Re.tryToShowGuide(C.c.GUIDE_COPY_AS_PNG))})},"entry:update:select:items:links":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:f}=P;const g=b();if((0,I.FG)(g))return;const _=(0,rl.yk)(g),O=(0,De.nE)(g),V=(0,rl.vy)(g),H=(0,sl.zX)(g),Y=O.length===1?O[0].hotAttr.interactions.reduce((Ce,Pe)=>Pe.subKey?Ce:Ce.concat([Pe.key]),[]):"",re=Nt()(V,Y);if(H){var pe;if(f!=null&&f.fromUndoRedo&&((pe=O[0])==null||(pe=pe.hotAttr)==null?void 0:pe.type)==="wTable"&&(0,F2.PP)(H)===1){const{interactions:Ce,cells:Pe,table:Ie}=sdkStore.getHotItem(O[0].key).hotAttr,{selectionLeftTopInfo:{x:Re,y:We},selectionRightBottomInfo:{x:ct,y:vt}}=H;(0,F2.In)({x1:Re,x2:ct,y1:We,y2:vt},(Ut,pn)=>{const{oldCellItas:fn}=(0,Ws.iL)({cells:Pe,table:Ie,interactions:Ce,j:pn,i:Ut});u({type:"links:active:link",payload:{cid:fn.map(uo=>uo.key)}})})}}else re||u({type:"links:active:link",payload:{cid:Y}});_&&!Y.includes(_.key)&&u({type:"update:link:selectLinkItem",payload:null}),f!=null&&f.fromUndoRedo||document.getElementById("interaction-panel-float")||u(tn.R7.command.clearAllCommand({}))},"entry:select:items:by:rect":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:f}=P;const{rect:{top:g,left:S,width:_,height:O},originalSelection:V}=f,H=b(),Y=(0,I.UV)(H),re=(0,Un.$7)(H),pe=(0,r.X_)(H);if((0,It.lY)(H))return;const Pe=(0,mt.vZ)(H),Ie={x:S,y:g,w:_,h:O};let Re=(0,O0.I)(Y,Ie,!Pe,re,pe);Re=[...Re,...V].filter(We=>!Re.includes(We)||!V.includes(We)),u({type:"entry:select:items",payload:{cids:Re}})},"entry:auto:show:hide:item":L=>{let{getState:P,dispatch:b}=L;const u=P(),f=!(0,r.KW)(u),g=!(0,rt.$)(u).isHidden;f&&b({type:"reducer:flag:set:is-selection-border-resizer",payload:{isHideSelectionBorder_Resizer:!0}}),g&&b(H0.UU.update({isHidden:!0})),clearTimeout(Wp),Wp=setTimeout(()=>{b({type:"reducer:flag:set:is-selection-border-resizer",payload:{isHideSelectionBorder_Resizer:!1}}),b(H0.UU.update({isHidden:!1}))},rp)},"entry:expend:groupOrCanvasOrBasket":(L,P)=>{let{dispatch:b}=L,{payload:{cids:u}}=P;const f=new Set;u.map(g=>{sdkStore.findUpHotItemList(g).filter(S=>{var _;return[N.x.Canvas,N.x.WWrap,N.x.WBasket].includes(S==null||(_=S.hotAttr)==null?void 0:_.type)&&S.key!==g}).forEach(S=>f.add(S.key))}),f.size!==0&&b({type:"layerExpandedKeySet:delAllSet:ref",payload:{refs:[...Array.from(f)]}})},"entry:isShowSticky:toggle":(L,P)=>{var b;let{getState:u,dispatch:f}=L,{payload:g}=P;const S=u();if(!((b=g==null?void 0:g.isShowSticky)!=null?b:!(0,Un.$7)(S))){const V=(0,De.nE)(S).filter(H=>{var Y;return((Y=H.hotAttr)==null?void 0:Y.type)!==N.x.WSticky}).map(H=>H.key);f({type:"entry:update:selection:select:items",payload:{type:"selection:select:items",cids:V}})}f({type:"toolbar:isShowSticky:toggle",payload:g})}},x1=(L,P,b,u)=>{var f,g;const{hotAttr:S}=sdkStore.getHotItem(L),_=(f=S[P])==null?void 0:f[b],O=S.refVars,V={[P]:{...S[P],[b]:u}};return _!==u&&O!=null&&(g=O[P])!=null&&g[b]&&(O[P][b]=void 0,V.refVars=O),{key:L,hotAttr:V}},Rc={"entry:set:slider:attr":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:f}=P;const{attr:g,value:S}=f,_=b(),V=(0,De.p$)(_).map(H=>x1(H,"slider",g,S));u({type:"entry:widget:change",payload:{flatChgList:V}})},"entry:digital-stepper:attr:set":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:f}=P;const{attr:g,value:S}=f,_=b(),V=(0,De.p$)(_).map(H=>x1(H,"digitalStepper",g,S));u({type:"entry:widget:change",payload:{flatChgList:V}})},"entry:switch:attr:set":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:f}=P;const{attr:g,value:S}=f,_=b(),V=(0,De.p$)(_).map(H=>x1(H,"switch",g,S));u({type:"entry:widget:change",payload:{flatChgList:V}})}};var Zc=s(27879);const ah={"entry:smart-selection:updating:gap":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:f}=P;const g=b(),S=(0,rt.$)(g),_=S.selectedWidgetInfo,{rowGap:O,colGap:V}=f;let H,Y;if(O!==void 0){const{colGap:re,rowStates:pe}=S;({result:H,changes:Y}=(0,Zc.KC)(_,re,O,pe))}else if(V!==void 0){const{rowGap:re,rowStates:pe}=S;({result:H,changes:Y}=(0,Zc.KC)(_,V,re,pe))}u(H0.UU.update({...f,rowStates:H})),u({type:"entry:widget:change",payload:{flatChgList:Y}})},"entry:select:smartly":(L,P)=>{var b;let{getState:u,dispatch:f}=L,{payload:g}=P;const S=u(),_=(0,Zc.$3)((0,De.nE)(S));if(_.length<=1){f(H0.UU.reset());return}const O=(0,Zc.cb)(_),V=(0,Zc.kW)(O,_),H=(b=g==null?void 0:g.shouldAlign)!=null?b:!1;let Y=[],re=[],pe=Zc.jH,Ce=Zc.jH;V&&({result:re,changes:Y,lineSpace:pe,itemMargin:Ce}=(0,Zc.Im)(O,null,null,_.length===2?!1:H)),f(H0.UU.update({isActive:Y.length===0&&V,selectedWidgetInfo:O,rowGap:pe,colGap:Ce,rowStates:re,changes:Y,enableMarginChange:V}))},"entry:smart-selection:arrange:widgets":L=>{let{getState:P,dispatch:b}=L;const u=P(),{changes:f}=(0,rt.$)(u);b({type:"entry:widget:change",payload:{flatChgList:f}});const g=(0,Zc.$3)((0,De.nE)(u)),S=(0,Zc.cb)(g),{result:_}=(0,Zc.Im)(S,null,null);b(H0.UU.update({rowStates:_,isActive:!0,changes:[]}))}},o0=L=>{let{pageKey:P,stickyAABB:b,fakePointToDir:u,isOnlyCanvas:f=!1,isCtrlDown:g,stickyPointVersion:S}=L;const[_,O,V]=b;let H={x:_-35,y:O+9};u==="r"&&(H={x:V+35,y:O+9});const Y=(0,T.Dg)(H,1,P,{isSkipST:!0,isOnlyCanvas:f});if(Y.hitKey){(0,T.h9)(Y,[],g?"ctrl":"default",!0);const{x:re,y:pe,w:Ce,h:Pe}=sdkStore.getHotBound(Y.hitKey);return S===2?{point:[H.x-re+Ce/2,H.y-pe+Pe/2],bindingKey:Y.hitKey}:{point:[H.x-re,H.y-pe],bindingKey:Y.hitKey}}},rh=L=>{let{stickyAABB:P,canvasKey:b}=L;const u=sdkStore.getHotAABB(b),f=[u[0]-40,u[1],u[2]+40,u[3]];return(0,kn.cj)(f,P)},jl={"entry:ST:STMode:disable":L=>{let{dispatch:P}=L;P({type:"ST:update",payload:{STMode:!1}}),P({type:"entry:observe:dom:right-panel-width"})},"entry:ST:STMode:enable":L=>{let{dispatch:P}=L;P(o.GO.select([])),P({type:"ST:update",payload:{STMode:!0}}),P({type:"entry:observe:dom:right-panel-width"})},"entry:ST:tear:bind":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{tearKey:f,afterCreate:g=!1}}=P;const S=b(),_=(0,r.eo)(S),O=(0,De.p$)(S),{isCtrlDown:V}=(0,r.ZS)(S);if(g){const H=sdkStore.getHotItem(f),Y=(0,T.Dg)(H.hotAttr,1,_,{isSkipST:!0});Y&&((0,T.h9)(Y,O,V?"ctrl":"default",!0),u({type:"entry:widget:change",payload:{flatChgList:[{key:f,hotAttr:{refWCKey:Y.hitKey}}]}}))}else{const H=(0,$t.LS)(S);u({type:"entry:widget:change",payload:{flatChgList:[{key:f,hotAttr:{refWCKey:H.bindingKey}}]}})}},"entry:ST:tears:bind":(L,P)=>{var b;let{getState:u,dispatch:f}=L,{payload:{tearKeys:g}}=P;const S=u(),_=(0,$t.LS)(S);if(!_||!(_!=null&&_.stickyKey))return;const O=_==null||(b=_.stickyKey)==null?void 0:b.split(",");if(!(O!=null&&O.length))return;const V=[];g.forEach(H=>{O.includes(H)&&V.push({key:H,hotAttr:{refWCKey:_.bindingKey}})}),f({type:"entry:widget:change",payload:{flatChgList:V}})},"entry:ST:drag:sticky:point:fake:bind":(L,P)=>{var b;let{getState:u,dispatch:f}=L,{payload:{stickyKey:g,stickyAABBP:S,callback:_}}=P;const O=u(),V=(0,r.eo)(O),H=(0,$t.sL)(O),Y=(0,$t.SF)(O),re=sdkStore.getHotItem(g),{isCtrlDown:pe}=(0,r.ZS)(O);if(re!=null&&re.hotAttr.refWCKey||re!=null&&(b=re.hotAttr.sticky.point)!=null&&b.length)return;const Ce=S||sdkStore.getHotAABB(g);let Pe,Ie,Re=Y,We;if(Y)if(rh({stickyAABB:Ce,canvasKey:Y}))Ie=(0,T.di)({stickyAABB:Ce,canvasKey:Y,preDir:H}),We=o0({pageKey:V,stickyAABB:Ce,fakePointToDir:Ie,isCtrlDown:pe});else{const ct=(0,T.VI)(Ce,V);Ie=ct?(0,T.di)({stickyAABB:Ce,canvasKey:ct,preDir:H}):H,Re=ct||"",We=o0({pageKey:V,stickyAABB:Ce,fakePointToDir:Ie,isCtrlDown:pe})}else{const ct=(0,T.VI)(Ce,V);Re=ct||"",Ie=ct?(0,T.di)({stickyAABB:Ce,canvasKey:ct,preDir:H}):H,We=o0({pageKey:V,stickyAABB:Ce,fakePointToDir:Ie,isCtrlDown:pe})}We?Pe={stickyKey:g,bindingKey:We.bindingKey,isBinded:!0}:Pe={stickyKey:g,bindingKey:"",isBinded:!1},f({type:"ST:update",payload:{fakeBindingInfo:Pe,fakePointToDir:Ie,prevBindingCanvasKey:Re}}),_&&_({fakeBindingInfo:Pe,fakePointToDir:Ie})},"entry:ST:drag:sticky:point:real:bind":(L,P)=>{var b;let{getState:u,dispatch:f}=L,{payload:{stickyKey:g,stickyAABBP:S,callback:_,createSource:O}}=P;const V=u(),H=sdkStore.getHotItem(g);if(!H)return;const{isCtrlDown:Y}=(0,r.ZS)(V),{refWCKey:re,sticky:pe,"!stickyPointVersion":Ce}=H.hotAttr;if(re||((b=pe.point)==null?void 0:b.length)>0)return;const Pe=(0,r.eo)(V),Ie=(0,$t.sL)(V),Re=S||sdkStore.getHotAABB(g);let We,ct=!1,vt=!1;if((O==="draw"||O==="click")&&(ct=!0,vt=!0),vt){const pn=o0({pageKey:Pe,stickyAABB:Re,fakePointToDir:"l",isOnlyCanvas:ct,isCtrlDown:Y,stickyPointVersion:Ce});pn?We=pn:We=o0({pageKey:Pe,stickyAABB:Re,fakePointToDir:"r",isOnlyCanvas:ct,isCtrlDown:Y,stickyPointVersion:Ce})}else We=o0({pageKey:Pe,stickyAABB:Re,fakePointToDir:Ie,isOnlyCanvas:ct,isCtrlDown:Y,stickyPointVersion:Ce});f({type:"ST:clear:fake-related"});const Ut=We===void 0?[{key:g,hotAttr:{pointToDir:Ie}}]:[{key:g,hotAttr:{refWCKey:We.bindingKey,sticky:{point:We.point}}}];f({type:"entry:widget:change",payload:{flatChgList:Ut}})}};var Ec=s(89002),yd=s(11619);const V2={"entry:sticky:bind":(L,P)=>{var b;let{getState:u,dispatch:f}=L,{payload:{widget:g,event:S}}=P;const{key:_,hotAttr:O}=g,V=u(),H=(0,It.IL)(V),Y=(0,r.eo)(V),re=(0,r.X_)(V),pe=(0,r.ER)(V),Ce=(0,r.$S)(V);let Ie=(0,$t.LS)(V).bindingKey||H;if(H!==_){if([N.x.WSticky,N.x.WTear].includes((b=sdkStore.getHotItem(H))==null||(b=b.hotAttr)==null?void 0:b.type)){const Re=(0,bt.mG)(S,{scale:re,offset:pe,viewportRect:Ce});Ie=(0,T.Tg)(Re,Y)}if(!Ie)f({type:"entry:widget:change",payload:{flatChgList:[{key:_,hotAttr:{refWCKey:""}}]}});else{const{x:Re,y:We,w:ct,h:vt}=sdkStore.getHotBound(Ie),[Ut=0,pn=0]=[...O.sticky.point],[fn,uo]=(0,yd.OH)({stickyPointVersion:O["!stickyPointVersion"],getV1Offset:()=>[Ut-Re,pn-We],getV2Offset:()=>[Ut-(Re-ct/2),pn-(We-vt/2)]});f({type:"entry:widget:change",payload:{flatChgList:[{key:_,hotAttr:{refWCKey:Ie,sticky:{...O.sticky,point:[fn,uo]}}}]}})}}},"entry:sticky:migrate":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{key:f}}=P;const g=b();if((0,It.jx)(g)===o.qi.OnlyView||(0,Oe.OO)(f)&&!(0,Ec.K)(f))return;const{hotAttr:{refWCKey:_,sticky:O,"!stickyPointVersion":V}}=sdkStore.getHotItem(f);if(V===2)return;let H;if(!_||!sdkStore.getHotItem(_))H=[{key:f,hotAttr:{"!stickyPointVersion":2}}];else{const Y=sdkStore.getHotBound(_),{point:re}=O,pe=[re[0]+Y.w/2,re[1]+Y.h/2];H=[{key:f,hotAttr:{"!stickyPointVersion":2,sticky:{point:pe}}}]}u({type:"entry:widget:change",payload:{flatChgList:H}})}};var cr=s(175);const v1={"entry:set:tabs:selected:optionData":(L,P)=>{var b;let{getState:u,dispatch:f}=L,{payload:g}=P;const{index:S}=g,_=u(),O=(0,De.nE)(_);if(!(O.length>0))return;const H=O[0],Y=(b=H.hotAttr)==null||(b=b.optionData)==null?void 0:b.map((re,pe)=>pe===S?{...re,data:{...re.data,selected:!0}}:{...re,data:{...re.data,selected:!1}});f({type:"entry:widget:change",payload:{flatChgList:[{key:H.key,hotAttr:{optionData:Y}}]}})}},ip={"entry:undo-stack:undo":L=>{let{getState:P,dispatch:b}=L;const u=P(),f=(0,It.jI)(u),g=(0,De.p$)(u),S=(0,It.bt)(u),_=(0,y.Hs)(u),O=(0,r.Ur)(u),V=(0,y.WU)(u),H=(0,y.p$)(u),Y=f||S;if(!sdkStore.canUndo())return;if(sdkStore.undo(),b({type:"entry:vector:rectify:vectorEditor:selectedIndex"}),Y&&sdkStore.isTrashed(Y)){b(o.GO.editBasketHotItem(null)),b({type:"entry:clear:selection"}),b(f?o.GO.editBasketItemKey(""):o.GO.editBasketRefPage("")),_[0]&&b({type:"entry:goto:project-alike",payload:{screenMetaCid:_[0]}});return}b({type:"entry:select:items",payload:{cids:g,fromUndoRedo:!0}}),b({type:"entry:undo-stack:screen"}),b({type:"entry:refresh:link-list"}),b(tn.R7.command.undoCommand({})),Y&&(b(o.GO.editBasketHotItem(sdkStore.getHotItem(Y))),b({type:"entry:layout:basket-canvas"})),b({type:"entry:update:screen:list"}),b({type:"entry:select:smartly"}),b({type:"entry:undo-stack:active:screen"}),b({type:"elbow:update",payload:{isShowWidgetPopup:!1}}),V&&b({type:"entry:reset:screen:selection",payload:{resetScreenCid:O.cid}}),(!(H!=null&&H.key)||H!=null&&H.key&&sdkStore.isTrashed(H.key))&&b({type:"entry:activate:root-project:home-screen"}),b({type:"entry:aiComponent:undo"}),b({type:"settings:update:varList",payload:{varList:(0,Hc.pU)()}});const Ce=(0,I.UV)(u);Ce==null||Ce.refreshMindTrees(),Ce==null||Ce.refreshButtonNodes()},"entry:undo-stack:redo":L=>{let{getState:P,dispatch:b}=L;const u=P(),f=(0,It.jI)(u),g=(0,De.p$)(u),S=(0,It.bt)(u),_=f||S,O=(0,y.Hs)(u),V=(0,r.Ur)(u),H=(0,y.WU)(u),Y=(0,y.p$)(u);if(!sdkStore.canRedo())return;if(sdkStore.redo(),b({type:"entry:vector:rectify:vectorEditor:selectedIndex"}),_&&sdkStore.isTrashed(_)){b(o.GO.editBasketHotItem(null)),b({type:"entry:clear:selection"}),b(f?o.GO.editBasketItemKey(""):o.GO.editBasketRefPage("")),O[0]&&b({type:"entry:goto:project-alike",payload:{screenMetaCid:O[0]}});return}b({type:"entry:select:items",payload:{cids:g,fromUndoRedo:!0}}),b({type:"entry:refresh:link-list"}),_&&b({type:"entry:layout:basket-canvas"}),b({type:"entry:update:screen:list"}),b({type:"entry:select:smartly"}),b({type:"entry:undo-stack:active:screen"}),H&&b({type:"entry:reset:screen:selection",payload:{resetScreenCid:V.cid}}),(!(Y!=null&&Y.key)||Y!=null&&Y.key&&sdkStore.isTrashed(Y.key))&&b({type:"entry:activate:root-project:home-screen"}),b({type:"entry:aiComponent:redo"}),b({type:"settings:update:varList",payload:{varList:(0,Hc.pU)()}});const Ce=(0,I.UV)(u);Ce==null||Ce.refreshMindTrees(),Ce==null||Ce.refreshButtonNodes()},"entry:undo-stack:active:screen":L=>{let{getState:P,dispatch:b}=L;const u=P(),f=(0,r.Ur)(u),g=(0,r.PL)(u),S=(0,y.HA)(u);if(f)return;let _=(0,U.Yt)(J.NF+"-"+g.cid,"",U.qW.String);if(sdkStore.isTrashed(_)){var V;_=(V=(0,Lr.YU)(S).filter(Y=>Y.bunch===N.x.RbPage&&!(0,Lr.Mo)(Y))[0])==null?void 0:V.cid}_&&b({type:"entry:goto:project-alike",payload:{screenMetaCid:_}})}};var z2=s(44115),W2=s(98915);const Hp=()=>{MB.commonGuideHelper.checkGuideToBeShown(C.c.GUIDE_VECTOR_TASK_QUICK_CREATE)&&(MB.commonGuideHelper.markGuideAsRead(C.c.GUIDE_VECTOR_TASK_QUICK_CREATE),MB.commonGuideHelper.closeGuide(C.c.GUIDE_VECTOR_TASK_QUICK_CREATE)),MB.commonGuideHelper.checkGuideToBeShown(C.c.GUIDE_VECTOR_TASK_EDITING_EXIST_VECTOR)&&(MB.commonGuideHelper.markGuideAsRead(C.c.GUIDE_VECTOR_TASK_EDITING_EXIST_VECTOR),MB.commonGuideHelper.closeGuide(C.c.GUIDE_VECTOR_TASK_EDITING_EXIST_VECTOR)),MB.commonGuideHelper.tryToShowGuide(C.c.GUIDE_VECTOR_TASK_ENDING_EDITING)},ih={"entry:vector:clear:vectorEditor":L=>{let{dispatch:P}=L;P(o.GO.update({vectorEditor:null})),P({type:"set:quick-create-widget",payload:{widget:null}})},"entry:vector:esc":L=>{let{getState:P,dispatch:b}=L;const u=P(),f=(0,It.lY)(u),g=(0,r.s3)(u);if(!f)return;const{key:S}=f,{hotAttr:{vector:_}}=sdkStore.getHotItem(S),O=()=>{b({type:"entry:select:items",payload:{cids:[S],hasClearVectorEditing:!1}}),b({type:"entry:vector:clear:vectorEditor"}),b({type:"entry:vector:transform:undo",payload:{key:S}}),b({type:"entry:publish:create:items:success",payload:{newKeys:[S]}}),b(o.GO.update({transformVector:null})),g&&yn(g,_.closed,Yn.Esc),Hp()},V=()=>{b({type:"entry:delete:selected-items"}),b({type:"entry:vector:clear:vectorEditor"}),b(o.GO.update({transformVector:null})),Hp()},H=(0,xn.vm)(f,"Vector",_,O,V);if(H){const{vectorEditor:Y}=H;b(o.GO.update({vectorEditor:Y}))}},"entry:vector:exit:edit":(L,P)=>{var b;let{getState:u,dispatch:f}=L,{payload:g}=P;const S=u(),_=(0,It.lY)(S),O=(0,r.s3)(S);if(!_)return;const{key:V}=_;if(!V||sdkStore.isTrashed(V)||!((b=sdkStore.getHotItem(V))!=null&&(b=b.hotAttr)!=null&&b.vector))return;const{hotAttr:{vector:{points:H,closed:Y}}}=sdkStore.getHotItem(V);H.length===1&&f({type:"entry:delete:selected-items"}),f({type:"entry:vector:clear:vectorEditor"}),f({type:"entry:vector:transform:undo",payload:{key:V}});const re=sdkStore.getHotItem(V);if(!re)return null;if(f({type:"entry:widget:change",payload:{flatChgList:[{key:V,hotAttr:{...!re.hotAttr.richTextV1.isClipText&&{richTextMetric:(0,W2.Ro)(re.hotAttr)}}}]}}),H.length>1&&f({type:"entry:publish:create:items:success",payload:{newKeys:[V]}}),f(o.GO.update({transformVector:null})),H.length>1&&O){const pe=(g==null?void 0:g.end)||Yn.Other;yn(O,Y,pe)}g!=null&&g.isNoGuide||Hp()},"entry:vector:enter:edit":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{key:f}}=P;if(!f)return;const g=b(),S=(0,r.Ur)(g);if((0,It.jx)(g)===o.qi.OnlyView||!!(0,It.pq)(g))return;const H=sdkStore.getHotItem(f);if(!H||![...Kn.LM,N.x.WLine].includes(H.hotAttr.type))return;const Y=(0,Me.gu)({type:N.x.WVector,screen:S,attrs:{width:0,height:0}});if(H.hotAttr.type===N.x.WVector){const pe=H.hotAttr.vector.points;if(!(pe!=null&&pe.length))return;u(o.GO.update({vectorEditor:{key:f,selectedIndex:[pe.length-1]}}))}else{var re;const pe=(0,xn.K1)(H.key),Ce=pe==null||(re=pe.vector)==null?void 0:re.points;if(!(Ce!=null&&Ce.length))return;sdkStore.combineMergeMark("transform-vector"),sdkStore.deleteHotItem(f);const Pe={...H,hotAttr:{...Y,...H.hotAttr,type:N.x.WVector,...pe}};sdkStore.updateHotItem(Pe),sdkStore.combineMerge("transform-vector"),u(o.GO.update({vectorEditor:{key:f,selectedIndex:[Ce.length-1]}}));const{hotAttr:{vector:Ie}}=sdkStore.getHotItem(f);u(o.GO.update({transformVector:{hotItem:H,vector:Ie}}))}u({type:"entry:select:items",payload:{cids:[f],hasClearVectorEditing:!1}}),u({type:"set:quick-create-widget",payload:{widget:Y}}),MB.commonGuideHelper.checkGuideToBeShown(C.c.GUIDE_VECTOR_TASK_ENDING_EDITING)&&(MB.commonGuideHelper.markGuideAsRead(C.c.GUIDE_VECTOR_TASK_ENDING_EDITING),MB.commonGuideHelper.closeGuide(C.c.GUIDE_VECTOR_TASK_ENDING_EDITING)),MB.commonGuideHelper.tryToShowGuide(C.c.GUIDE_VECTOR_TASK_EDITING_EXIST_VECTOR)},"entry:vector:transform:undo":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{key:f}}=P;const g=b(),S=(0,It.AC)(g);if(!S)return;const _=sdkStore.getHotItem(f),{hotAttr:{vector:O}}=_,{hotItem:V,vector:H}=S;if(V.key===f&&Nt()(H,O)){sdkStore.deleteHotItem(f);const Y={...V,..._,hotAttr:{...V.hotAttr,..._.hotAttr,type:V.hotAttr.type,w:V.hotAttr.w,h:V.hotAttr.h,refVars:V.hotAttr.refVars}};sdkStore.updateHotItem(Y),u({type:"entry:widget:change",payload:{flatChgList:[Y],shouldReBuildTree:!0}})}},"entry:vector:open:path":L=>{let{getState:P,dispatch:b}=L;const u=P(),f=(0,It.lY)(u);if(!f)return;const{key:g,selectedIndex:S}=f;if(S.length===0)return;const{hotAttr:{vector:_}}=sdkStore.getHotItem(g);if(_!=null&&_.length)return;const O=[],V=_.points.length;for(let H=1;H<V;H++){const Y=(S[0]+H)%V,re=_.points[Y];O.push(re)}O.length===1?(b({type:"entry:delete:selected-items"}),b({type:"entry:vector:clear:vectorEditor"})):(b(o.GO.update({vectorEditor:{key:g,selectedIndex:[0]}})),b({type:"entry:vector:update:vector",payload:{vector:{points:O,closed:!1}}}))},"entry:vector:update:radius":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{radius:f,refVar:g}}=P;const S=b(),_=(0,De.nE)(S);if(!(_!=null&&_.length))return;const O=_.map(V=>{var H,Y;const{key:re,hotAttr:{vector:pe,refVars:Ce,borderRadiusIsVisible:Pe}}=V;if(!(pe!=null&&(H=pe.points)!=null&&H.length))return null;const{points:Ie}=pe,Re=Ie.map(Ut=>({...Ut,radius:f})),We={...pe,points:Re},ct=(Ce==null||(Y=Ce.vector)==null?void 0:Y.points)||[];if(!Pe)return{key:re,hotAttr:{vector:We,refVars:{...Ce,vector:{...Ce==null?void 0:Ce.vector,points:Ie.map((Ut,pn)=>({...ct==null?void 0:ct[pn],radius:g}))}}}};const vt=(0,xn.GU)({key:re,vector:We});return{key:re,hotAttr:{...vt,vector:We,refVars:{...Ce,vector:{...Ce==null?void 0:Ce.vector,points:Re.map((Ut,pn)=>({...ct==null?void 0:ct[pn],radius:g}))}}}}}).filter(V=>!!V);u({type:"entry:widget:change",payload:{flatChgList:O,shouldReBuildTree:!0}})},"entry:vector:update:borderRadiusIsVisible":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{borderRadiusIsVisible:f}}=P;const g=b(),S=(0,De.nE)(g);if(!(S!=null&&S.length))return;const _=S.map(O=>{const{key:V,hotAttr:{vector:H}}=O,{points:Y}=H,re=Y.map(We=>({...We,radius:f?We.radius:0})),pe={...H,points:re},{x:Ce,y:Pe,w:Ie,h:Re}=(0,xn.GU)({key:V,vector:pe});return{key:V,hotAttr:{x:Ce,y:Pe,w:Ie,h:Re,borderRadiusIsVisible:f}}}).filter(O=>!!O);u({type:"entry:widget:change",payload:{flatChgList:_,shouldReBuildTree:!0}})},"entry:vector:update:vector":(L,P)=>{var b;let{getState:u,dispatch:f}=L,{payload:{vector:g,refVars:S,compressible:_}}=P;const O=u(),V=(0,It.lY)(O);if(!V)return;const{key:H}=V,{x:Y,y:re,w:pe,h:Ce}=(0,xn.GU)({key:H,vector:g}),Pe={x:Y,y:re,w:pe,h:Ce,vector:g},Ie=(b=sdkStore.getHotItem(H))==null?void 0:b.hotAttr.refVars;typeof S<"u"&&(Pe.refVars={...Ie,...S}),Pe.refVars=(0,Hc.VN)(H,Pe),f({type:"entry:widget:change",payload:{flatChgList:[{key:H,hotAttr:Pe}],shouldReBuildTree:!0,isCombineChange:!_}})},"entry:vector:shortcut:by:pointType":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{pointType:f}}=P;const g=b(),S=(0,It.lY)(g);if(!S)return;const{key:_}=S,{hotAttr:{vector:O}}=sdkStore.getHotItem(_),{vector:V}=(0,xn.Vn)(f,S,O),{x:H,y:Y,w:re,h:pe}=(0,xn.GU)({key:_,vector:V}),Ce={x:H,y:Y,w:re,h:pe,vector:V};Ce.refVars=(0,Hc.VN)(_,Ce),u({type:"entry:widget:change",payload:{flatChgList:[{key:_,hotAttr:Ce}],shouldReBuildTree:!0}})},"entry:vector:shortcut:by:arrowKey":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{dir:f,rate:g}}=P;const S=b(),_=(0,It.lY)(S),O=(0,Nn.H)(S);if(!_)return;const{key:V}=_,{hotAttr:{vector:H}}=sdkStore.getHotItem(V),Y=(0,xn.YW)(V),re=qn.L.toMutableTransform(O).append(Y),pe=(0,xn.z3)(f,g,_,H,re);if(!pe||!pe.vector)return;const{vector:Ce}=pe,{x:Pe,y:Ie,w:Re,h:We}=(0,xn.GU)({key:V,vector:Ce}),ct={x:Pe,y:Ie,w:Re,h:We,vector:Ce};ct.refVars=(0,Hc.VN)(V,ct),u({type:"entry:widget:change",payload:{flatChgList:[{key:V,hotAttr:ct}],shouldReBuildTree:!0}})},"entry:vector:shortcut:by:mod":L=>{let{getState:P,dispatch:b}=L;const u=P(),f=(0,It.lY)(u);if(!f)return;const{key:g}=f,{hotAttr:{vector:S}}=sdkStore.getHotItem(g),_=(0,xn.rX)(f,S);if(!_||!_.vector)return;const{vector:O}=_,{x:V,y:H,w:Y,h:re}=(0,xn.GU)({key:g,vector:O}),pe={x:V,y:H,w:Y,h:re,vector:O};pe.refVars=(0,Hc.VN)(g,pe),b({type:"entry:widget:change",payload:{flatChgList:[{key:g,hotAttr:pe}],shouldReBuildTree:!0}})},"entry:vector:shortcut:by:selectAll":L=>{let{getState:P,dispatch:b}=L;const u=P(),f=(0,It.lY)(u);if(!f)return;const{key:g}=f,{hotAttr:{vector:S}}=sdkStore.getHotItem(g),{vectorEditor:_}=(0,xn.sG)(S);b(o.GO.update({vectorEditor:{key:g,..._}}))},"entry:vector:shortcut:by:toggle:closed":L=>{let{getState:P,dispatch:b}=L;const u=P(),f=(0,It.lY)(u);if(!f)return;const{key:g}=f,{hotAttr:{vector:S}}=sdkStore.getHotItem(g),{vector:_}=(0,xn.T_)(S),{x:O,y:V,w:H,h:Y}=(0,xn.GU)({key:g,vector:_}),re={x:O,y:V,w:H,h:Y,vector:_};re.refVars=(0,Hc.VN)(g,re),b({type:"entry:widget:change",payload:{flatChgList:[{key:g,hotAttr:re}],shouldReBuildTree:!0}})},"entry:vector:shortcut:by:tab":L=>{let{getState:P,dispatch:b}=L;const u=P(),f=(0,It.lY)(u);if(!f)return;const{key:g}=f,{hotAttr:{vector:S}}=sdkStore.getHotItem(g),{vectorEditor:_}=(0,xn.VD)(f,S);_&&b(o.GO.update({vectorEditor:{key:g,..._}}))},"entry:vector:shortcut:by:del":L=>{let{getState:P,dispatch:b}=L;const u=P(),f=(0,It.lY)(u);if(!f)return;const{key:g}=f,{hotAttr:{vector:S}}=sdkStore.getHotItem(g),_=()=>{b({type:"entry:delete:selected-items"}),b({type:"entry:vector:clear:vectorEditor"})},O=(0,xn.wc)("Vector",f,S,_);if(!O)return;const{props:{vector:V},mode:{vectorEditor:H}}=O;b(o.GO.update({vectorEditor:{key:g,...H}}));const{x:Y,y:re,w:pe,h:Ce}=(0,xn.GU)({key:g,vector:V}),Pe={x:Y,y:re,w:pe,h:Ce,vector:V};Pe.refVars=(0,Hc.VN)(g,Pe),b({type:"entry:widget:change",payload:{flatChgList:[{key:g,hotAttr:Pe}],shouldReBuildTree:!0}})},"entry:vector:rectify:vectorEditor:selectedIndex":L=>{let{getState:P,dispatch:b}=L;const u=P(),f=(0,It.lY)(u);if(!f)return;const{key:g}=f,S=sdkStore.isTrashed(g),_=sdkStore.getHotItem(g);if(!_||S){b({type:"entry:clear:selection"}),b({type:"entry:vector:clear:vectorEditor"});return}const{hotAttr:{vector:O}}=_,V=O==null?void 0:O.points,{selectedIndex:H}=f;if(!(V!=null&&V.length)){b({type:"entry:clear:selection"}),b({type:"entry:vector:clear:vectorEditor"});return}(H<0||H>=(V==null?void 0:V.length))&&b(o.GO.update({vectorEditor:{key:g,selectedIndex:[V.length-1]}}))},"entry:vector:editor:drag":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{pos:f,sup:g}}=P;const S=b(),_=(0,r.wq)(S);u(o.GO.select([])),sdkStore.combineMergeMark("vector-quick-create");const O={key:(0,tt.cF)(),sup:g,hotAttr:{..._,x:f.x,y:f.y,zIndex:(0,jd._)(g),name:(0,Za.aw)({type:N.x.WVector,sup:g})}};sdkStore.updateHotItem(O),u({type:"entry:select:items",payload:{cids:[O.key],hasClearVectorEditing:!1}}),MB.f.isSelecting=!1;const V=sdkStore.getHotMatrix(O.key),H=new z2.h(V.a,V.b,V.c,V.d,V.tx,V.ty),Y=(0,bt.cj)(O.key),{x:re,y:pe}=Y.apply({x:0,y:0}),Ce=0,Pe=[],Ie={type:xn.pQ.Straight,x:0,y:0,next:ze.Z.zero,prev:ze.Z.zero,radius:0};sdkStore.updateHotAttrMerge(O.key,{vector:{...O.hotAttr.vector,points:[Ie]}}),u(o.GO.update({vectorEditor:{key:O.key,selectedIndex:[Ce]}}));let Re=0;const We=vt=>{if(Re<5)return Re++;const Ut={x:vt.offsetX,y:vt.offsetY},pn=Y.inverted().apply({x:Ut.x,y:Ut.y}),{x:fn,y:uo}=H.apply(pn),{x:Mn,y:Gt}=H.inverted().apply({x:Math.round(fn),y:Math.round(uo)}),yo="next";let Do;u(o.GO.update({vectorEditor:{key:O.key,selectedIndex:[Ce],selectedAssistIndex:yo}}));const Wo={x:Mn,y:Gt};Wo.x===0&&Wo.y===0||Math.abs(re-vt.clientX)<6&&Math.abs(pe-vt.clientY)<6?Do={...Ie,type:xn.pQ.Straight}:(Do={...Ie,type:xn.pQ.Mirrored},Do=(0,xn.Yw)(Do,yo,Wo)),Pe[Ce]=Do;const Ro={points:Pe,closed:!1};sdkStore.updateHotAttrMerge(O.key,{vector:Ro})},ct=()=>{u(o.GO.update({vectorEditor:{key:O.key,selectedIndex:[Ce],selectedAssistIndex:void 0}})),u({type:"entry:ST:STMode:disable"}),document.removeEventListener("mousemove",We),document.removeEventListener("mouseup",ct)};sdkStore.combineMerge("vector-quick-create"),document.addEventListener("mousemove",We),document.addEventListener("mouseup",ct)}};var sp=s(31093);const H2={"entry:pencil:vector:enter:edit":(L,P)=>{let{dispatch:b}=L,{payload:{source:u}}=P;b(o.GO.select([])),b(o.GO.togglePencilMode(!0)),b({type:"settings:set:autoTabIndex",payload:{autoTabIndex:0}}),b(o.GO.updateAddShapeToCanvasTrackSource(u))},"entry:pencil:vector:exit:edit":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:f}=P;u(o.GO.togglePencilMode(!1));const{isSelectLastCreate:g=!1}=f||{},S=(0,sp.n$)(b());S&&g&&u(o.GO.select([S])),u({type:"pencil:clear:lastCreateKey"}),u(o.GO.updateAddShapeToCanvasTrackSource(""))},"entry:pencil:create:vector":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:f}=P;const g=b(),S=(0,r.wq)(g),_=(0,Nn.H)(g),{cid:O}=(0,r.Ur)(g),V=(0,sp.lu)(g),H=(0,sp.E)(g),Y=(0,sp.pp)(g),re=(0,It.kr)(g),{scale:pe}=_,{path:Ce,getRelativeVectorFromPath:Pe}=f,Ie=Ce.segments[0].point;Ce.simplify(100);const{bounds:Re}=Ce,{width:We,height:ct,centerX:vt,centerY:Ut}=Re;if(We<6&&ct<6)return;let pn=qn.L.applyInverse(_,{x:vt,y:Ut}),fn=O;const uo=qn.L.applyInverse(_,{x:Ie.x,y:Ie.y}),Mn=(0,T.Tg)(uo,O);if(Mn){fn=Mn;const ra=sdkStore.getHotItem(Mn);if(ra){const{hotAttr:{x:ka,y:pa,w:Ma,h:Ya}}=ra;pn=ze.Z.subtract(pn,{x:ka-Ma/2,y:pa-Ya/2})}}const Gt=Pe(Ce),yo=fc(Gt,pe),Do={key:(0,tt.cF)(),sup:fn,hotAttr:{...S,border:{...S==null?void 0:S.border,bdrColor:V,bdrWidth:H,bdrStyle:Y},w:E0(We,pe),h:E0(ct,pe),x:pn.x,y:pn.y,zIndex:(0,jd._)(fn),name:(0,Za.aw)({type:el.x.WVector,sup:fn}),vector:{...S==null?void 0:S.vector,...yo}}},Wo=Do.key;sdkStore.combineMergeMark("pencil-vector-quick-create"),sdkStore.updateHotItem(Do),sdkStore.combineMerge("pencil-vector-quick-create");const Ro=sdkStore.getHotItem(Wo);u({type:"pencil:update:lastCreateKey",payload:{lastCreateKey:Wo}}),u({type:"entry:widget:change",payload:{isCreateWidget:!0,shouldReBuildTree:!0,sup:Ro.sup,isCombineChange:!1,flatChgList:[Ro]}}),Eo.U4.addShapeToCanvasTrack("\u94C5\u7B14",re)}},E0=(L,P)=>L/P,fc=(L,P)=>{const{points:b,closed:u}=L,f=b[0],g=b.map(S=>{const _={x:E0(S.x-f.x,P),y:E0(S.y-f.y,P)},O={x:E0(S.prev.x,P),y:E0(S.prev.y,P)},V={x:E0(S.next.x,P),y:E0(S.next.y,P)};return{...S,..._,prev:O,next:V}});return{closed:u,points:g}};var Od=s(71217);const sh=()=>{if(!(0,X1.b8)())return!0;if(!window.MB_DESKTOP_VERSION)return!1;const L=window.MB_DESKTOP_VERSION.split(".").map(P=>parseInt(P,10));return L[0]>=1&&L[1]>=4&&L[2]>=1},lh={"entry:widget:graph:edit":async(L,P)=>{let{getState:b,dispatch:u}=L,{payload:f}=P;if(!sh()){MB.notice({duration:6e3,text:'<a target="_blank" href="https://modao.cc/feature/downloads.html#part1">\u8BF7\u5347\u7EA7\u5BA2\u6237\u7AEF\u7248\u672C\u4F7F\u7528</a>\uFF0C\u6216\u8BF7\u524D\u5F80web\u7AEF\u4F7F\u7528',type:"warning"});return}const{action:g,targetArea:S}=f,_=b(),O=(0,De.p$)(_),V=(0,r.Ur)(_);switch(g){case"new-widget":{let Y={editType:"newWidget"};if(S==="drawio"){const re=(0,Me.gu)({type:"wGraph",screen:V});(0,j.Q7)([{...re,xmlData:Od.j1,...Od.hF}],Od.hF.w,Od.hF.h);const pe=(0,De.p$)(b());pe!=null&&pe.length&&(Y=sdkStore.getHotItem(pe[0]))}u({type:"set:current:drawio:editor:item",payload:{hotItem:Y}});break}case"update-widget":const H=sdkStore.getHotItem(O[0]);u({type:"set:current:drawio:editor:item",payload:{hotItem:H}});break;default:break}}};var Gp=s(24457);const ch={"entry:button:update:textV1":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{firstcall:f}}=P;const g=b(),S=(0,Gp.c)(g),_=(0,r.Mj)(g),O=(0,I.UV)(g);if(!_||!S)return;const{key:V,hotAttr:H}=S,{textV1:Y}=H,re=O.buttonNodes.get(V);if(!re)return;const pe=(0,U2.dM)(_.getCurrentContent()),Ce=(0,la.qn)(pe);if((0,O2.eI)(Ce,Y)&&!f)return;sdkStore.combineMergeMark("edit-button-textV1-node");const Pe=(0,k0.zs)([S],"textV1",Ce);u({type:"entry:widget:change",payload:{flatChgList:Pe}}),re.updateButton(),sdkStore.combineMerge("edit-button-textV1-node")}},dh={...w2,...Y1,...Hh,...p1,...u1,...A2.k.__entry,...ep,...Jd,...Rp,...$u,...Op,...Gc,...nh,...oh,...n0,...Ls,...Rc,...ah,...jl,...V2,...Gn.X.__entry,...cr.Z8,...v1,...Xa.C5,...ip,...ih,...H2,...fe.y.__entry,...tn.R7.__entry,...lh,...ch},ph={...Bu,...dh};var yl=s(53102),Ic=s(29794),uh=s(59323);const hh={...{...{"entry:update:current-screen:screen-align":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:{lines:f}}=P;const g=b(),S=(0,r.eo)(g),_=sdkStore.getHotItem(S),O={..._,hotAttr:{..._.hotAttr,alignH:f.h,alignV:f.v}};sdkStore.updateHotItem(O),u({type:"entry:widget:change",payload:{flatChgList:[O]}})},"entry:update:canvas:align":(L,P)=>{let{dispatch:b}=L,{payload:{canvasCid:u,lines:f}}=P;b({type:"entry:widget:change",payload:{flatChgList:[{key:u,hotAttr:{alignH:f.h,alignV:f.v}}]}})}},"entry:init:ruler:canvas":L=>{let{getState:P,dispatch:b}=L;const u=P();if(!(0,I.UV)(u))return;const g=(0,mt.qT)(u),S=(0,r.X_)(u),_=(0,mt.O4)(u),O=(0,De.p$)(u),{canvasTop:V,canvasLeft:H}=(0,r.Pz)(u),Y=(0,r.$S)(u),re=(0,lo.Hw)(u),pe=(0,mt.MZ)(u);if(!g||!Y)return;const Ce=S/100,{x:Pe,y:Ie,w:Re,h:We}=(0,d1.dP)(O),ct=(0,uh.zB)(O),vt=ct.size===1?[...ct.values()][0]:null,{rulerWidth:Ut,rulerHeight:pn,startX:fn,startY:uo,shadow:Mn,startWithCanvas:Gt}=(0,Ic.eA)({ratio:Ce,viewportRect:Y,canvasTop:V,canvasLeft:H,x:Pe,y:Ie,width:Re,height:We,selectedParentCanvas:vt,rulerLineCanvas:re}),yo={scale:Ce,width:Ut,height:pn,thick:yl.MV,startX:fn,startY:uo,theme:_,shadow:Mn,palette:yl.MF[_],startWithCanvas:Gt,layoutV9:pe};b({type:"ruler:update:state",payload:{rulerConfig:yo,rulerRect:{startX:fn,startY:uo}}})},"entry:update:ruler":(L,P)=>{let{getState:b,dispatch:u}=L,{payload:f}=P;const g=b();if(!(0,I.UV)(g))return;const _=(0,mt.qT)(g),O=(0,r.X_)(g),V=(0,mt.O4)(g),H=(0,De.p$)(g),{canvasTop:Y,canvasLeft:re}=(0,r.Pz)(g),pe=(0,r.$S)(g),Ce=(0,lo.Hw)(g);if(!_||!pe)return;const Pe=O/100,{x:Ie,y:Re,w:We,h:ct}=(0,d1.dP)(H),vt=(0,uh.zB)(H),Ut=vt.size===1?[...vt.values()][0]:null,{rulerWidth:pn,rulerHeight:fn,startX:uo,startY:Mn,shadow:Gt,startWithCanvas:yo}=(0,Ic.eA)({ratio:Pe,viewportRect:pe,canvasTop:Y,canvasLeft:re,x:Ie,y:Re,width:We,height:ct,selectedParentCanvas:Ut,rulerLineCanvas:Ce}),Do={scale:Pe,width:pn,height:fn,thick:yl.MV,startX:uo,startY:Mn,theme:V,shadow:Gt,palette:yl.MF[V],startWithCanvas:yo,isUpdateContext:f==null?void 0:f.isUpdateContext};u({type:"ruler:update:state",payload:{rulerConfig:Do,rulerRect:{startX:uo,startY:Mn}}})}}},G2={...ne,...nn,...Xn,...Ia,...ya.G,...Ai,...je,...Bi.s,...Nu,...Vh,...ph,...hh}},88656:(Qn,qe,s)=>{"use strict";s.d(qe,{X:()=>ht});var r=s(38502),I=s(18381),J=s(53732),N=s.n(J),T=s(12211),te=s(21066),q=s(87332),ne=s(78301),B=s(25067),l=s(17307),U=s(94590),C=s(64580),M=s(70933),w=s(67052),y=s(81973),j=s(28173),Q=s(10472),ze=s(96986),me=s(77709),Se=s(67588),Me=s(60651),De=s(78915),tt=s(78661),at=s(72214);const ht=(0,r.memo)(()=>{var $;const mt=(0,I.wA)(),{onlyView:yt,isLeftShow:Le,isShowRightPanel:He,isShowCommentInCanvas:ye,isShowMultiCursor:je,fullScreenMode:ot,canToggleSticky:we,isShowSticky:$e,isCommunityPreview:ge,isEmbedV2Preview:Ze,isHtmlZipPreview:W,isEditingCombo:an,isEmptyScreen:_t,currentProject:nn,isDisabledComment:Oe}=(0,I.d4)(Je),sn=(0,at.jsx)(l.C,{name:"toolbar/selected",className:"selected-icon"}),It=()=>{mt({type:"entry:update:preference",payload:{isShowMultiCursor:!je}}),yt?(0,C.A)({operation_type:C.D.CollaborationPointer}):(0,U.kX)({operation_type:U.mV.CollaborationPointer})},Pt=()=>{mt({type:"entry:toggle:left-nav-panel"}),yt?(0,C.A)({operation_type:C.D.ShowLeftPanel}):(0,U.kX)({operation_type:U.mV.ShowLeftPanel})},dt=()=>{mt({type:"entry:toggle:right-panel"}),yt?(0,C.A)({operation_type:C.D.ShowRightPanel}):(0,U.kX)({operation_type:U.mV.ShowRightPanel})},Vn=()=>{mt({type:"entry:isShowSticky:toggle"}),yt?(0,C.A)({operation_type:C.D.Sticky}):(0,U.kX)({operation_type:U.mV.Sticky})},o=()=>{mt({type:"comment:toggle:isShowCommentInCanvas"}),yt?(0,C.A)({operation_type:C.D.Comment}):(0,U.kX)({operation_type:U.mV.Comment})};return(0,at.jsx)(q.A,{isDisabled:_t,className:N()("save-tips-dropdown",{isEmbedV2Preview:Ze},{NotFullScreen:!ot},{isCommunity:ge}),renderOpener:(0,at.jsx)(B.A,{className:"fixed-layout-position",name:I18N.pPreviewToolbar.comment,toolTipName:I18N.ToolBar.view,svgIconName:"toolbar/layout",toolTipDistance:8,size:32}),onClickIcon:()=>(0,U.kX)({operation_type:U.mV.Layout}),renderMenu:(0,at.jsx)(ne.Sv,{className:N()("onlyRead",""+((nn==null?void 0:nn.category)||""),{fullScreen:ot},{isCommunity:ge},{isEmbedV2Preview:Ze}),position:{top:46,left:void 0},onClose:()=>({}),style:{right:212},children:ge||Ze?(0,at.jsx)(at.Fragment,{children:(0,at.jsx)(te.Dr,{text:I18N.PreferenceBar.note,className:"SelectOption",disabled:!we,icon:$e?sn:void 0,onClick:Vn})}):(0,at.jsxs)(at.Fragment,{children:[(0,at.jsx)(te.Dr,{text:I18N.PreferenceBar.left_panel,className:"SelectOption",disabled:!1,icon:Le?sn:void 0,onClick:Pt,hotKeyText:tt.V.showLeftPanel}),(0,at.jsx)(te.Dr,{text:I18N.PreferenceBar.right_panel,className:"SelectOption",disabled:!we&&Oe,icon:He?sn:void 0,onClick:dt,hotKeyText:tt.V.showRightPanel}),(0,at.jsx)(te.Dr,{text:I18N.PreferenceBar.note,className:"SelectOption",disabled:!we,icon:$e?sn:void 0,onClick:Vn}),!an&&(($=MB)==null||($=$.user)==null?void 0:$.id)&&(0,at.jsx)(te.Dr,{text:I18N.PreferenceBar.comment,className:"SelectOption",disabled:Oe,icon:!Oe&&ye?sn:void 0,onClick:o}),!W&&(0,at.jsx)(te.Dr,{text:I18N.PreferenceBar.multi_user_mouse_pointer,className:"SelectOption",disabled:!1,icon:je?sn:void 0,onClick:It})]})})})}),Je=(0,T.Mz)([Me.jx,Se.qT,Se.O4,w.Xf,Se.gf,y.UI,Se.lU,Me.T7,me.$7,me.I9,Me.pH,Me.rg,Me.uu,M.PL,Q.r,j.C,ze.EH,M.z$],($,mt,yt,Le,He,ye,je,ot,we,$e,ge,Ze,W,an,_t,nn,Oe,sn)=>{let{isEditingCombo:It}=_t,{isEmptyScreen:Pt}=nn;const dt=$===De.qi.OnlyView,Vn=dt&&(sn==null?void 0:sn.comment_permission)==="off";return{onlyView:dt,showRuler:mt,theme:yt,isLeftShow:Le,isShowReferLine:He,isShowRightPanel:ye,isShowMultiCursor:je,fullScreenMode:ot,isShowSticky:we,canToggleSticky:$e,isCommunityPreview:ge,isEmbedV2Preview:Ze,isHtmlZipPreview:W,isEditingCombo:It,isEmptyScreen:Pt,isShowCommentInCanvas:Oe,currentProject:an,isDisabledComment:Vn}})},88849:(Qn,qe,s)=>{"use strict";s.d(qe,{A:()=>Q});var r=s(95549),I=s(38502),J=s(18381),N=s(12211),T=s(53732),te=s.n(T),q=s(16454),ne=s(79150),B=s(83199),l=s(98267),U=s(48281),C=s(67787);const M=C.Ay.div.withConfig({displayName:"styles__StyledPaging",componentId:"sc-1mu84yq-0"})(["position:absolute;display:flex;padding:0 6px;height:40px;left:50%;transform:translateX(-50%);bottom:24px;background:",";box-shadow:0 2px 6px rgba(39,54,78,0.08);display:flex;align-items:center;justify-content:center;border-radius:6px;pointer-events:auto;z-index:1;gap:6px;.next{transform:rotate(180deg);}.page{font-size:12px;color:",";}.divider{border-left:1px solid ",";height:24px;}.comment,.homepage,.prev,.next,.back{width:28px;height:28px;border-radius:6px;}.svg-icon{[fill]{fill:currentColor;stroke:none;}[stroke]{stroke:currentColor;fill:none;}}.comment{cursor:pointer;&.disabled{cursor:not-allowed;.svg-icon{color:",";}}.svg-icon{display:flex;width:24px;height:24px;justify-content:center;align-items:center;gap:10px;flex-shrink:0;color:",";}}"],ze=>ze.theme.color_bg_white,ze=>ze.theme.color_text_L1,ze=>ze.theme.color_bg_border_02,ze=>ze.theme.color_text_disabled01,ze=>ze.theme.color_text_L1);var w=s(72214);class y extends I.PureComponent{constructor(){super(...arguments),(0,r.A)(this,"handleHomePage",()=>{const{activeCanvasKey:me,history:Se,dispatch:Me}=this.props,De=Se.at(-1);if(!De)return;const[tt,at]=(0,l.Lf)(De);me!==at&&(Me({type:"entry:runner:activate:canvas",payload:{pageKey:tt,canvasKey:at}}),Me({type:"preview:set:canvas:offset:dev",payload:{offset:{x:0,y:0}}})),(0,U.v)({operation_type:U.$.BackHome})}),(0,r.A)(this,"handleBack",me=>{me||(this.props.dispatch({type:"entry:runner:back-to-prev-canvas"}),this.props.dispatch({type:"preview:set:canvas:offset:dev",payload:{offset:{x:0,y:0}}}),(0,U.v)({operation_type:U.$.Back}))}),(0,r.A)(this,"handleGoto",me=>{const{dispatch:Se}=this.props;Se({type:"entry:preview:switch:page",payload:{isPrev:me}}),(0,U.v)({operation_type:me?U.$.previousPage:U.$.NextPage})})}render(){const{activeCanvasKey:me,canvasKeyList:Se,history:Me,isPanelPreviewMode:De}=this.props;if(De)return null;const tt=Se==null?void 0:Se.length,at=Se.indexOf(me)+1,ht=(Me==null?void 0:Me.length)<=1,Je=[0,1].includes(at),$=[0,tt].includes(at);return(0,w.jsxs)(M,{children:[(0,w.jsx)(B.A,{content:I18N.w.home,direction:"up",children:(0,w.jsx)(ne.A,{name:"toolbar/preview/homepage",className:"homepage",onClick:this.handleHomePage})}),(0,w.jsx)(B.A,{content:I18N.w.prev_page,direction:"up",children:(0,w.jsx)(ne.A,{name:"toolbar/preview/arrow",className:te()("prev",{disabled:Je}),onClick:Je?void 0:()=>this.handleGoto(!0)})}),(0,w.jsxs)("div",{className:"page",children:[at," / ",tt]}),(0,w.jsx)(B.A,{content:I18N.w.next_page,direction:"up",children:(0,w.jsx)(ne.A,{name:"toolbar/preview/arrow",className:te()("next",{disabled:$}),onClick:$?void 0:()=>this.handleGoto(!1)})}),(0,w.jsx)(B.A,{content:I18N.pPreviewToolbar.back,direction:"up",children:(0,w.jsx)(ne.A,{name:"toolbar/preview/back",className:te()("back",{disabled:ht}),onClick:()=>this.handleBack(ht)})})]})}}const j=(0,N.Mz)([q.mf,q.lR,q.KR],(ze,me,Se)=>{let{activeCanvasKey:Me,history:De}=ze;return{activeCanvasKey:Me,history:De,canvasKeyList:me,isPanelPreviewMode:Se}}),Q=(0,J.Ng)(ze=>j(ze))(y)},88878:(Qn,qe,s)=>{"use strict";s.d(qe,{A:()=>M});var r=s(38502),I=Object.defineProperty,J=Object.defineProperties,N=Object.getOwnPropertyDescriptors,T=Object.getOwnPropertySymbols,te=Object.prototype.hasOwnProperty,q=Object.prototype.propertyIsEnumerable,ne=(w,y,j)=>y in w?I(w,y,{enumerable:!0,configurable:!0,writable:!0,value:j}):w[y]=j,B=(w,y)=>{for(var j in y||(y={}))te.call(y,j)&&ne(w,j,y[j]);if(T)for(var j of T(y))q.call(y,j)&&ne(w,j,y[j]);return w},l=(w,y)=>J(w,N(y)),U=(w,y)=>{var j={};for(var Q in w)te.call(w,Q)&&y.indexOf(Q)<0&&(j[Q]=w[Q]);if(w!=null&&T)for(var Q of T(w))y.indexOf(Q)<0&&q.call(w,Q)&&(j[Q]=w[Q]);return j},M=(0,r.forwardRef)((w,y)=>{var j=w,{size:Q,spin:ze,style:me}=j,Se=U(j,["size","spin","style"]);const Me=B(B({width:Q||"var(--x-icon-size, 1em)",height:Q||"var(--x-icon-size, 1em)",animation:ze?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),me);return r.createElement("svg",l(B({ref:y,style:Me},Se),{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),r.createElement("path",{d:"M17.6486 10.2282C17.8716 10.4417 17.9885 10.6766 17.9991 10.9328C18.0097 11.189 17.9248 11.4025 17.7442 11.5733C17.5423 11.7547 17.3086 11.8401 17.043 11.8295C16.7775 11.8188 16.565 11.7441 16.4057 11.6053C16.3525 11.5626 16.1905 11.4131 15.9196 11.1569C15.6488 10.9008 15.3248 10.5938 14.9476 10.2362C14.5705 9.87862 14.1668 9.49433 13.7366 9.08334C13.3064 8.67236 12.9 8.28539 12.5176 7.92244C12.1352 7.55949 11.8059 7.24458 11.5297 6.97771C11.2535 6.71083 11.0782 6.54537 11.0038 6.48132C10.6639 6.17175 10.3293 6.0223 9.99994 6.03297C9.67062 6.04365 9.34662 6.1931 9.02792 6.48132C8.92169 6.5774 8.72251 6.76154 8.43038 7.03375C8.13824 7.30596 7.80096 7.62354 7.41853 7.98649C7.0361 8.34944 6.63242 8.7284 6.2075 9.12337C5.78257 9.51834 5.38952 9.88663 5.02834 10.2282C4.66715 10.5698 4.35643 10.8607 4.09616 11.1009C3.8359 11.3411 3.67921 11.4825 3.62609 11.5252C3.46674 11.6533 3.25428 11.7227 2.98871 11.7334C2.72313 11.7441 2.49473 11.664 2.30352 11.4932C2.09105 11.3011 1.99014 11.0689 2.00076 10.7967C2.01138 10.5245 2.10168 10.3083 2.27165 10.1482C2.33539 10.0841 2.53191 9.89731 2.86123 9.58773C3.19054 9.27816 3.5836 8.90987 4.04039 8.48287C4.49718 8.05588 4.9885 7.59685 5.51434 7.10581C6.04018 6.61476 6.52885 6.15574 6.98033 5.72874C7.43181 5.30174 7.81955 4.93612 8.14355 4.63189C8.46756 4.32765 8.65612 4.14884 8.70923 4.09547C9.11291 3.7005 9.54846 3.50034 10.0159 3.495C10.4833 3.48967 10.8817 3.64712 11.211 3.96737C11.2747 4.02075 11.4075 4.14618 11.6093 4.34366C11.8112 4.54115 12.0582 4.78134 12.3503 5.06422C12.6424 5.34711 12.9691 5.66469 13.3303 6.01696C13.6915 6.36923 14.058 6.72418 14.4298 7.08179C14.8016 7.4394 15.1654 7.79434 15.5213 8.14661C15.8772 8.49889 16.2038 8.81647 16.5013 9.09935C16.7987 9.38224 17.0483 9.62509 17.2502 9.82792L17.6486 10.2282ZM9.02792 7.90643C9.2935 7.6609 9.61219 7.53014 9.984 7.51412C10.3558 7.49811 10.6904 7.62888 10.9879 7.90643C11.0198 7.93845 11.1154 8.02919 11.2747 8.17864L11.8802 8.73907C12.1139 8.96325 12.3769 9.21411 12.669 9.49166C12.9611 9.76921 13.2612 10.0468 13.5693 10.3243C14.281 10.9862 15.0778 11.7281 15.9595 12.55V15.5924C15.9595 15.8272 15.8718 16.0354 15.6966 16.2169C15.5213 16.3983 15.2849 16.4944 14.9875 16.5051H11.9758V14.0232C11.9758 13.6709 11.8112 13.4948 11.4819 13.4948H8.43834C8.25775 13.4948 8.13293 13.5481 8.06388 13.6549C7.99483 13.7616 7.96031 13.8844 7.96031 14.0232C7.96031 14.0872 7.95765 14.25 7.95234 14.5116C7.94703 14.7731 7.94437 15.0533 7.94437 15.3522V16.5051H5.02834C4.72027 16.5051 4.47594 16.4357 4.29534 16.2969C4.11475 16.1582 4.02446 15.9607 4.02446 15.7045V12.518C4.89555 11.7174 5.68697 10.9915 6.39871 10.3403C6.69616 10.0628 6.99361 9.78789 7.29105 9.51568C7.5885 9.24346 7.85939 8.99527 8.10372 8.7711C8.34805 8.54692 8.55254 8.35744 8.7172 8.20266C8.88186 8.04787 8.98543 7.94913 9.02792 7.90643Z",fill:"#B7B9BD"}))})},89868:(Qn,qe,s)=>{"use strict";s.d(qe,{A:()=>M});var r=s(38502),I=Object.defineProperty,J=Object.defineProperties,N=Object.getOwnPropertyDescriptors,T=Object.getOwnPropertySymbols,te=Object.prototype.hasOwnProperty,q=Object.prototype.propertyIsEnumerable,ne=(w,y,j)=>y in w?I(w,y,{enumerable:!0,configurable:!0,writable:!0,value:j}):w[y]=j,B=(w,y)=>{for(var j in y||(y={}))te.call(y,j)&&ne(w,j,y[j]);if(T)for(var j of T(y))q.call(y,j)&&ne(w,j,y[j]);return w},l=(w,y)=>J(w,N(y)),U=(w,y)=>{var j={};for(var Q in w)te.call(w,Q)&&y.indexOf(Q)<0&&(j[Q]=w[Q]);if(w!=null&&T)for(var Q of T(w))y.indexOf(Q)<0&&q.call(w,Q)&&(j[Q]=w[Q]);return j},M=(0,r.forwardRef)((w,y)=>{var j=w,{size:Q,spin:ze,style:me}=j,Se=U(j,["size","spin","style"]);const Me=B(B({width:Q||"var(--x-icon-size, 1em)",height:Q||"var(--x-icon-size, 1em)",animation:ze?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),me);return r.createElement("svg",l(B({ref:y,style:Me},Se),{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.57518 10.3084C6.57518 10.7034 6.11161 10.9163 5.81197 10.6589L2.19537 7.55194C1.98364 7.37005 1.98028 7.04339 2.18823 6.85719L5.80484 3.61875C6.10247 3.35224 6.57518 3.56348 6.57518 3.963V4.80583C6.57518 5.06103 6.78206 5.26792 7.03727 5.26792H11.1387C11.3939 5.26792 11.6008 5.4748 11.6008 5.73001V8.57153C11.6008 8.82674 11.3939 9.03362 11.1387 9.03362H7.03727C6.78206 9.03362 6.57518 9.2405 6.57518 9.49571V10.3084ZM12.8466 14.5068C12.8466 14.2516 12.6397 14.0447 12.3845 14.0447H8.29754C8.04233 14.0447 7.83545 13.8378 7.83545 13.5826V10.7411C7.83545 10.4859 8.04233 10.279 8.29754 10.279H12.3845C12.6397 10.279 12.8466 10.0721 12.8466 9.81691V8.69617C12.8466 8.30296 13.3065 8.08943 13.6069 8.34314L17.8017 11.886C18.0154 12.0665 18.021 12.3939 17.8137 12.5816L13.6189 16.3796C13.3218 16.6486 12.8466 16.4378 12.8466 16.0371V14.5068Z",fill:"#B7B9BD"}))})},89960:(Qn,qe,s)=>{"use strict";s.d(qe,{L:()=>q});var r=s(38502),I=s(77595),J=s(72214);function N(ne){var B;const{isShowCompletedComment:l,dispatch:U,selected:C,viewType:M}=ne;return(0,J.jsxs)("div",{className:"filter-header",children:[(0,J.jsx)("h3",{children:I18N.Comment.comment}),((B=MB)==null||(B=B.user)==null?void 0:B.id)&&(0,J.jsx)(I.A,{selected:C,isShowCompletedComment:l,viewType:M,dispatch:U})]})}var T=s(54222),te=s(49420);const q=ne=>{const{commentList:B,activeCommentCid:l,viewType:U,commentPanelWidth:C,isHtmlZipPreview:M,selected:w,isShowCompletedComment:y,theme:j,dispatch:Q}=ne;return(0,J.jsxs)(te.A,{className:"comment-panel",style:{width:C},children:[(0,J.jsx)(N,{isShowCompletedComment:y,selected:w,viewType:U,dispatch:Q}),(0,J.jsx)(T.K,{activeCommentCid:l,commentList:B,viewType:U,commentPanelWidth:C,isHtmlZipPreview:M,theme:j})]})}},90243:(Qn,qe,s)=>{"use strict";s.d(qe,{A:()=>M});var r=s(38502),I=Object.defineProperty,J=Object.defineProperties,N=Object.getOwnPropertyDescriptors,T=Object.getOwnPropertySymbols,te=Object.prototype.hasOwnProperty,q=Object.prototype.propertyIsEnumerable,ne=(w,y,j)=>y in w?I(w,y,{enumerable:!0,configurable:!0,writable:!0,value:j}):w[y]=j,B=(w,y)=>{for(var j in y||(y={}))te.call(y,j)&&ne(w,j,y[j]);if(T)for(var j of T(y))q.call(y,j)&&ne(w,j,y[j]);return w},l=(w,y)=>J(w,N(y)),U=(w,y)=>{var j={};for(var Q in w)te.call(w,Q)&&y.indexOf(Q)<0&&(j[Q]=w[Q]);if(w!=null&&T)for(var Q of T(w))y.indexOf(Q)<0&&q.call(w,Q)&&(j[Q]=w[Q]);return j},M=(0,r.forwardRef)((w,y)=>{var j=w,{size:Q,spin:ze,style:me}=j,Se=U(j,["size","spin","style"]);const Me=B(B({width:Q||"var(--x-icon-size, 1em)",height:Q||"var(--x-icon-size, 1em)",animation:ze?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),me);return r.createElement("svg",l(B({ref:y,style:Me},Se),{width:"12",height:"10",viewBox:"0 0 12 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),r.createElement("path",{d:"M12 5C12 2.23858 9.76142 0 7 0H5C2.23858 0 0 2.23858 0 5C0 7.76142 2.23858 10 5 10H7C9.76142 10 12 7.76142 12 5Z",fill:"url(#paint0_linear_941_74)"}),r.createElement("path",{d:"M12 5C12 2.23858 9.76142 0 7 0H5C2.23858 0 0 2.23858 0 5C0 7.76142 2.23858 10 5 10H7C9.76142 10 12 7.76142 12 5Z",fill:"url(#paint1_linear_941_74)",fillOpacity:"0.68"}),r.createElement("path",{d:"M12 5C12 2.23858 9.76142 0 7 0H5C2.23858 0 0 2.23858 0 5C0 7.76142 2.23858 10 5 10H7C9.76142 10 12 7.76142 12 5Z",fill:"url(#paint2_linear_941_74)",fillOpacity:"0.7"}),r.createElement("g",{filter:"url(#filter0_d_941_74)"},r.createElement("path",{d:"M7.9487 7.625H4.5513C4.083 7.625 3.67742 7.30001 3.57535 6.84296L2.99351 4.23773C2.89935 3.8161 3.34817 3.48155 3.72534 3.69225L4.10411 3.90384C4.32873 4.02932 4.6119 3.96386 4.75865 3.75252L5.82859 2.21172C6.02658 1.92661 6.44771 1.92502 6.64783 2.20864L7.74053 3.75726C7.88803 3.96631 8.16955 4.03028 8.39291 3.9055L8.77466 3.69225C9.15183 3.48155 9.60066 3.8161 9.50649 4.23773L8.92465 6.84296C8.82258 7.30001 8.417 7.625 7.9487 7.625Z",fill:"white"})),r.createElement("mask",{id:"mask0_941_74",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"2",y:"1",width:"8",height:"7"},r.createElement("path",{d:"M7.9487 7.625H4.5513C4.083 7.625 3.67742 7.30001 3.57535 6.84296L2.99351 4.23773C2.89935 3.8161 3.34817 3.48155 3.72534 3.69225L4.10411 3.90384C4.32873 4.02932 4.6119 3.96386 4.75865 3.75252L5.82859 2.21172C6.02658 1.92661 6.44771 1.92502 6.64783 2.20864L7.74053 3.75726C7.88803 3.96631 8.16955 4.03028 8.39291 3.9055L8.77466 3.69225C9.15183 3.48155 9.60066 3.8161 9.50649 4.23773L8.92465 6.84296C8.82258 7.30001 8.417 7.625 7.9487 7.625Z",fill:"white"})),r.createElement("g",{mask:"url(#mask0_941_74)"},r.createElement("path",{d:"M7.25 7.62511V5.12506L6.43054 2.25701C6.43054 2.25701 6.28336 1.91172 5.89453 1.87109C5.61401 1.84179 5.10547 1.79297 5.10547 1.79297C4.55859 1.60547 4.30469 1.44922 3.25 1.125L1.75 2.6251L3.25035 7.62511H7.25Z",fill:"url(#paint3_linear_941_74)"})),r.createElement("defs",null,r.createElement("filter",{id:"filter0_d_941_74",x:"1.98083",y:"0.996948",width:"8.53833",height:"7.62805",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},r.createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),r.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),r.createElement("feOffset",null),r.createElement("feGaussianBlur",{stdDeviation:"0.5"}),r.createElement("feComposite",{in2:"hardAlpha",operator:"out"}),r.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.47 0"}),r.createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_941_74"}),r.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_941_74",result:"shape"})),r.createElement("linearGradient",{id:"paint0_linear_941_74",x1:"6.54545",y1:"1.59583",x2:"1.09229",y2:"7.30091",gradientUnits:"userSpaceOnUse"},r.createElement("stop",{stopColor:"#131210"}),r.createElement("stop",{offset:"1",stopColor:"#515459"})),r.createElement("linearGradient",{id:"paint1_linear_941_74",x1:"11.6786",y1:"10",x2:"8.13035",y2:"9.36952",gradientUnits:"userSpaceOnUse"},r.createElement("stop",{stopColor:"#682B00"}),r.createElement("stop",{offset:"1",stopColor:"#842F00",stopOpacity:"0"})),r.createElement("linearGradient",{id:"paint2_linear_941_74",x1:"11.0294",y1:"0.980891",x2:"7.84283",y2:"3.58088",gradientUnits:"userSpaceOnUse"},r.createElement("stop",{stopColor:"#FFF8DF"}),r.createElement("stop",{offset:"1",stopColor:"white",stopOpacity:"0"})),r.createElement("linearGradient",{id:"paint3_linear_941_74",x1:"6.75",y1:"4.125",x2:"6.75",y2:"7.625",gradientUnits:"userSpaceOnUse"},r.createElement("stop",{stopColor:"#FFE485",stopOpacity:"0.6"}),r.createElement("stop",{offset:"1",stopColor:"#FFE485",stopOpacity:"0"}))))})},90853:(Qn,qe,s)=>{"use strict";s.d(qe,{C:()=>te});var r=s(18381),I=s(67588),J=s(67787),N=s(20862),T=s(72214);const te=ne=>{let{isShowAiButton:B=!0}=ne;const l=(0,r.d4)(I.O4);return(0,T.jsxs)(q,{className:"empty-content",children:[(0,T.jsx)("img",{src:"/mb-proto2/images/workspace/design/no_template_star_"+l+".svg",alt:""}),(0,T.jsx)("span",{className:"title",children:"\u6682\u65E0\u6A21\u677F"}),(0,T.jsx)("span",{className:"desc",children:"\u60A8\u53EF\u4EE5\u5728\u6A21\u677Ftab\u6216\u7D20\u6750\u5E7F\u573A\u6536\u85CF/\u8D2D\u4E70\u9875\u9762\u6587\u4EF6\uFF0C\u65B9\u4FBF\u60A8\u7EDF\u4E00\u7BA1\u7406\u548C\u4F7F\u7528"}),B&&(0,T.jsx)(N.l,{})]})},q=J.Ay.div.withConfig({displayName:"MeEmpty__StyledMeEmpty",componentId:"sc-1i7923a-0"})(["&.empty-content{height:100%;display:flex;justify-content:center;align-items:center;width:180px;text-align:center;font-size:12px;flex-direction:column;margin:0 auto 100px;span{display:block;}svg{margin-bottom:20px;}.title{font-weight:500;line-height:16px;color:",";margin-bottom:10px;}.desc{font-weight:400;line-height:22px;color:",";}}"],ne=>ne.theme.color_text_L1,ne=>ne.theme.color_text_L3)},91429:(Qn,qe,s)=>{"use strict";s.d(qe,{A:()=>M});var r=s(38502),I=Object.defineProperty,J=Object.defineProperties,N=Object.getOwnPropertyDescriptors,T=Object.getOwnPropertySymbols,te=Object.prototype.hasOwnProperty,q=Object.prototype.propertyIsEnumerable,ne=(w,y,j)=>y in w?I(w,y,{enumerable:!0,configurable:!0,writable:!0,value:j}):w[y]=j,B=(w,y)=>{for(var j in y||(y={}))te.call(y,j)&&ne(w,j,y[j]);if(T)for(var j of T(y))q.call(y,j)&&ne(w,j,y[j]);return w},l=(w,y)=>J(w,N(y)),U=(w,y)=>{var j={};for(var Q in w)te.call(w,Q)&&y.indexOf(Q)<0&&(j[Q]=w[Q]);if(w!=null&&T)for(var Q of T(w))y.indexOf(Q)<0&&q.call(w,Q)&&(j[Q]=w[Q]);return j},M=(0,r.forwardRef)((w,y)=>{var j=w,{size:Q,spin:ze,style:me}=j,Se=U(j,["size","spin","style"]);const Me=B(B({width:Q||"var(--x-icon-size, 1em)",height:Q||"var(--x-icon-size, 1em)",animation:ze?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),me);return r.createElement("svg",l(B({ref:y,style:Me},Se),{width:"28",height:"28",viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),r.createElement("g",{clipPath:"url(#clip0_244_156)"},r.createElement("g",{filter:"url(#filter0_i_244_156)"},r.createElement("rect",{width:"28",height:"28",fill:"#00C691"}),r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21.4684 10.3942C21.8038 10.3818 22.1356 10.4698 22.4232 10.6474C22.6962 10.8146 22.905 11.0727 23.0148 11.3788C23.1246 11.6849 23.1287 12.0204 23.0265 12.3292L20.8411 18.7408C20.7876 18.881 20.6934 19.001 20.5712 19.0845C20.4491 19.1681 20.3049 19.2112 20.1582 19.2079H7.85417C7.70742 19.2112 7.56325 19.1681 7.44112 19.0845C7.31899 19.001 7.22479 18.881 7.17124 18.7408L5.89645 15.1321L4.9745 12.4109C4.87106 12.101 4.87581 11.7638 4.98793 11.457C5.10004 11.1502 5.31257 10.8929 5.58913 10.7292C5.88301 10.5359 6.22813 10.4411 6.5768 10.4579C6.92547 10.4746 7.26046 10.6021 7.53547 10.8226L9.81188 12.6328L12.555 6.98033C12.6915 6.70988 12.8995 6.48432 13.1552 6.32943C13.4108 6.17454 13.7037 6.09656 14.0005 6.10442C14.2961 6.10176 14.5864 6.18474 14.8381 6.34381C15.0898 6.50289 15.2926 6.73161 15.4232 7.00368L17.9842 12.6445L20.5338 10.7175C20.8081 10.519 21.1329 10.4067 21.4684 10.3942ZM8.76391 20.363H19.2354C19.4173 20.3861 19.5846 20.4768 19.706 20.618C19.8274 20.7591 19.8943 20.941 19.8943 21.1294C19.8943 21.3177 19.8274 21.4996 19.706 21.6408C19.5846 21.7819 19.4173 21.8726 19.2354 21.8957H8.76391C8.58205 21.8726 8.41469 21.7819 8.29333 21.6408C8.17197 21.4996 8.10499 21.3177 8.10499 21.1294C8.10499 20.941 8.17197 20.7591 8.29333 20.618C8.41469 20.4768 8.58205 20.3861 8.76391 20.363Z",fill:"url(#paint0_linear_244_156)"}))),r.createElement("defs",null,r.createElement("filter",{id:"filter0_i_244_156",x:"0",y:"0",width:"28",height:"28",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},r.createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),r.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),r.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),r.createElement("feOffset",null),r.createElement("feGaussianBlur",{stdDeviation:"0.4305"}),r.createElement("feComposite",{in2:"hardAlpha",operator:"arithmetic",k2:"-1",k3:"1"}),r.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"}),r.createElement("feBlend",{mode:"normal",in2:"shape",result:"effect1_innerShadow_244_156"})),r.createElement("linearGradient",{id:"paint0_linear_244_156",x1:"14.0002",y1:"6.10388",x2:"14.0002",y2:"21.8959",gradientUnits:"userSpaceOnUse"},r.createElement("stop",{stopColor:"white"}),r.createElement("stop",{offset:"1",stopColor:"white"})),r.createElement("clipPath",{id:"clip0_244_156"},r.createElement("rect",{width:"28",height:"28",rx:"7",fill:"white"}))))})},91771:(Qn,qe,s)=>{"use strict";s.d(qe,{E:()=>I});var r=s(83557);const I=async J=>{MB.safeLoading&&MB.safeLoading(I18N.dApis.save);const N=MB.getRootProject(),T={name:N.title,device:N.device,model:N.model,width:N.width,height:N.height,attr:N.attr};try{const{clientData:{upperCid:te}}=await(0,r.Nc)(rootSdk.fssDat.getFlatStore().getFlatTree(),J,T);location.href="/proto/design/"+te}catch(te){console.error("eTASAL",te)}}},92755:(Qn,qe,s)=>{"use strict";s.d(qe,{A:()=>Je});var r=s(38502),I=s(53732),J=s.n(I),N=s(13199),T=s(54254),te=s(46757),q=s(58196),ne=s(48150);const B=["wrap","nowrap","wrap-reverse"],l=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],U=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"],C=($,mt)=>{const yt=mt.wrap===!0?"wrap":mt.wrap;return{[$+"-wrap-"+yt]:yt&&B.includes(yt)}},M=($,mt)=>{const yt={};return U.forEach(Le=>{yt[$+"-align-"+Le]=mt.align===Le}),yt[$+"-align-stretch"]=!mt.align&&!!mt.vertical,yt},w=($,mt)=>{const yt={};return l.forEach(Le=>{yt[$+"-justify-"+Le]=mt.justify===Le}),yt};function y($,mt){return J()(Object.assign(Object.assign(Object.assign({},C($,mt)),M($,mt)),w($,mt)))}const j=y,Q=$=>{const{componentCls:mt}=$;return{[mt]:{display:"flex",margin:0,padding:0,"&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},ze=$=>{const{componentCls:mt}=$;return{[mt]:{"&-gap-small":{gap:$.flexGapSM},"&-gap-middle":{gap:$.flexGap},"&-gap-large":{gap:$.flexGapLG}}}},me=$=>{const{componentCls:mt}=$,yt={};return B.forEach(Le=>{yt[mt+"-wrap-"+Le]={flexWrap:Le}}),yt},Se=$=>{const{componentCls:mt}=$,yt={};return U.forEach(Le=>{yt[mt+"-align-"+Le]={alignItems:Le}}),yt},Me=$=>{const{componentCls:mt}=$,yt={};return l.forEach(Le=>{yt[mt+"-justify-"+Le]={justifyContent:Le}}),yt},De=()=>({}),tt=(0,q.OF)("Flex",$=>{const{paddingXS:mt,padding:yt,paddingLG:Le}=$,He=(0,ne.oX)($,{flexGapSM:mt,flexGap:yt,flexGapLG:Le});return[Q(He),ze(He),me(He),Se(He),Me(He)]},De,{resetStyle:!1});var at=function($,mt){var yt={};for(var Le in $)Object.prototype.hasOwnProperty.call($,Le)&&mt.indexOf(Le)<0&&(yt[Le]=$[Le]);if($!=null&&typeof Object.getOwnPropertySymbols=="function")for(var He=0,Le=Object.getOwnPropertySymbols($);He<Le.length;He++)mt.indexOf(Le[He])<0&&Object.prototype.propertyIsEnumerable.call($,Le[He])&&(yt[Le[He]]=$[Le[He]]);return yt};const Je=r.forwardRef(($,mt)=>{const{prefixCls:yt,rootClassName:Le,className:He,style:ye,flex:je,gap:ot,children:we,vertical:$e=!1,component:ge="div"}=$,Ze=at($,["prefixCls","rootClassName","className","style","flex","gap","children","vertical","component"]),{flex:W,direction:an,getPrefixCls:_t}=r.useContext(te.QO),nn=_t("flex",yt),[Oe,sn,It]=tt(nn),Pt=$e!=null?$e:W==null?void 0:W.vertical,dt=J()(He,Le,W==null?void 0:W.className,nn,sn,It,j(nn,$),{[nn+"-rtl"]:an==="rtl",[nn+"-gap-"+ot]:(0,T.X)(ot),[nn+"-vertical"]:Pt}),Vn=Object.assign(Object.assign({},W==null?void 0:W.style),ye);return je&&(Vn.flex=je),ot&&!(0,T.X)(ot)&&(Vn.gap=ot),Oe(r.createElement(ge,Object.assign({ref:mt,className:dt,style:Vn},(0,N.A)(Ze,["justify","wrap","align"])),we))})},92898:(Qn,qe,s)=>{var r=s(19108),I=1/0,J=17976931348623157e292;function N(T){if(!T)return T===0?T:0;if(T=r(T),T===I||T===-I){var te=T<0?-1:1;return te*J}return T===T?T:0}Qn.exports=N},93157:(Qn,qe,s)=>{"use strict";s.d(qe,{Mg:()=>T,W2:()=>te,bO:()=>ne,fN:()=>q});var r=s(81717),I=s(5209),J=s(76844),N=function(B){return B.NoLogin="\u672A\u767B\u5F55\u7528\u6237",B.LoginButNotOrgMember="\u975E\u56E2\u961F\u767B\u5F55\u7528\u6237",B.ProjectMember="\u534F\u4F5C\u6210\u5458",B.TeamMember="\u56E2\u961F\u6210\u5458",B}(N||{});let T=function(B){return B.NotLogin="\u4EC5\u56E2\u961F\u6210\u5458-\u672A\u767B\u5F55",B.NotOrgMember="\u4EC5\u56E2\u961F\u6210\u5458-\u5DF2\u767B\u5F55\u4F46\u975E\u56E2\u961F\u6210\u5458",B.NeedPwd="\u5BC6\u7801\u67E5\u770B-\u9700\u8F93\u5165\u5BC6\u7801",B.NotPublicAccess="\u516C\u5F00\u8BBF\u95EE\u5173\u95ED",B.Delete="\u5DF2\u5220\u9664",B}({});const te=B=>{let{userId:l,orgPermissions:U,spacePermissions:C,projectPermissions:M}=B;if(!l)return N.NoLogin;const w=U?(0,J.ox)(l,U):!1,y=C?(0,J.ox)(l,C):!1,j=M?(0,J.ox)(l,M):!1;if(!w)return N.LoginButNotOrgMember;if(y||j)return N.ProjectMember;if(w)return N.TeamMember},q=B=>{let{access_success:l,no_access_reason:U,access_from:C,user_type:M}=B;(0,I.kH)("share_links_access_V8",{user_type:M,access_success:l,no_access_reason:U,access_from:C})},ne=B=>{let{currentProject:l,preview_type:U=null,source:C="\u7F16\u8F91\u533A"}=B;(0,I.kH)("preview_project",{project_type:"\u539F\u578B V8",source:C,project_name:l.name,project_cid:l.cid,preview_type:U}),r.Y4.editProjectNew("\u9884\u89C8\u9879\u76EE")}},94319:(Qn,qe,s)=>{var r;/*! Hammer.JS - v2.0.7 - 2016-04-22
* http://hammerjs.github.io/
*
* Copyright (c) 2016 Jorik Tangelder;
* Licensed under the MIT license */(function(I,J,N,T){"use strict";var te=["","webkit","Moz","MS","ms","o"],q=J.createElement("div"),ne="function",B=Math.round,l=Math.abs,U=Date.now;function C(kt,Qt,oo){return setTimeout(Se(kt,oo),Qt)}function M(kt,Qt,oo){return Array.isArray(kt)?(w(kt,oo[Qt],oo),!0):!1}function w(kt,Qt,oo){var ao;if(kt)if(kt.forEach)kt.forEach(Qt,oo);else if(kt.length!==T)for(ao=0;ao<kt.length;)Qt.call(oo,kt[ao],ao,kt),ao++;else for(ao in kt)kt.hasOwnProperty(ao)&&Qt.call(oo,kt[ao],ao,kt)}function y(kt,Qt,oo){var ao="DEPRECATED METHOD: "+Qt+"\n"+oo+" AT \n";return function(){var fa=new Error("get-stack-trace"),wr=fa&&fa.stack?fa.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",Xa=I.console&&(I.console.warn||I.console.log);return Xa&&Xa.call(I.console,ao,wr),kt.apply(this,arguments)}}var j;typeof Object.assign!="function"?j=function(Qt){if(Qt===T||Qt===null)throw new TypeError("Cannot convert undefined or null to object");for(var oo=Object(Qt),ao=1;ao<arguments.length;ao++){var fa=arguments[ao];if(fa!==T&&fa!==null)for(var wr in fa)fa.hasOwnProperty(wr)&&(oo[wr]=fa[wr])}return oo}:j=Object.assign;var Q=y(function(Qt,oo,ao){for(var fa=Object.keys(oo),wr=0;wr<fa.length;)(!ao||ao&&Qt[fa[wr]]===T)&&(Qt[fa[wr]]=oo[fa[wr]]),wr++;return Qt},"extend","Use `assign`."),ze=y(function(Qt,oo){return Q(Qt,oo,!0)},"merge","Use `assign`.");function me(kt,Qt,oo){var ao=Qt.prototype,fa;fa=kt.prototype=Object.create(ao),fa.constructor=kt,fa._super=ao,oo&&j(fa,oo)}function Se(kt,Qt){return function(){return kt.apply(Qt,arguments)}}function Me(kt,Qt){return typeof kt===ne?kt.apply(Qt&&Qt[0]||T,Qt):kt}function De(kt,Qt){return kt===T?Qt:kt}function tt(kt,Qt,oo){w($(Qt),function(ao){kt.addEventListener(ao,oo,!1)})}function at(kt,Qt,oo){w($(Qt),function(ao){kt.removeEventListener(ao,oo,!1)})}function ht(kt,Qt){for(;kt;){if(kt==Qt)return!0;kt=kt.parentNode}return!1}function Je(kt,Qt){return kt.indexOf(Qt)>-1}function $(kt){return kt.trim().split(/\s+/g)}function mt(kt,Qt,oo){if(kt.indexOf&&!oo)return kt.indexOf(Qt);for(var ao=0;ao<kt.length;){if(oo&&kt[ao][oo]==Qt||!oo&&kt[ao]===Qt)return ao;ao++}return-1}function yt(kt){return Array.prototype.slice.call(kt,0)}function Le(kt,Qt,oo){for(var ao=[],fa=[],wr=0;wr<kt.length;){var Xa=Qt?kt[wr][Qt]:kt[wr];mt(fa,Xa)<0&&ao.push(kt[wr]),fa[wr]=Xa,wr++}return oo&&(Qt?ao=ao.sort(function(Ir,Er){return Ir[Qt]>Er[Qt]}):ao=ao.sort()),ao}function He(kt,Qt){for(var oo,ao,fa=Qt[0].toUpperCase()+Qt.slice(1),wr=0;wr<te.length;){if(oo=te[wr],ao=oo?oo+fa:Qt,ao in kt)return ao;wr++}return T}var ye=1;function je(){return ye++}function ot(kt){var Qt=kt.ownerDocument||kt;return Qt.defaultView||Qt.parentWindow||I}var we=/mobile|tablet|ip(ad|hone|od)|android/i,$e="ontouchstart"in I,ge=He(I,"PointerEvent")!==T,Ze=$e&&we.test(navigator.userAgent),W="touch",an="pen",_t="mouse",nn="kinect",Oe=25,sn=1,It=2,Pt=4,dt=8,Vn=1,o=2,Gn=4,xt=8,Ot=16,wt=o|Gn,Kt=xt|Ot,fe=wt|Kt,bt=["x","y"],un=["clientX","clientY"];function gt(kt,Qt){var oo=this;this.manager=kt,this.callback=Qt,this.element=kt.element,this.target=kt.options.inputTarget,this.domHandler=function(ao){Me(kt.options.enable,[kt])&&oo.handler(ao)},this.init()}gt.prototype={handler:function(){},init:function(){this.evEl&&tt(this.element,this.evEl,this.domHandler),this.evTarget&&tt(this.target,this.evTarget,this.domHandler),this.evWin&&tt(ot(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&at(this.element,this.evEl,this.domHandler),this.evTarget&&at(this.target,this.evTarget,this.domHandler),this.evWin&&at(ot(this.element),this.evWin,this.domHandler)}};function Wt(kt){var Qt,oo=kt.options.inputClass;return oo?Qt=oo:ge?Qt=qn:Ze?Qt=ko:$e?Qt=xo:Qt=bn,new Qt(kt,Un)}function Un(kt,Qt,oo){var ao=oo.pointers.length,fa=oo.changedPointers.length,wr=Qt&sn&&ao-fa===0,Xa=Qt&(Pt|dt)&&ao-fa===0;oo.isFirst=!!wr,oo.isFinal=!!Xa,wr&&(kt.session={}),oo.eventType=Qt,Jn(kt,oo),kt.emit("hammer.input",oo),kt.recognize(oo),kt.session.prevInput=oo}function Jn(kt,Qt){var oo=kt.session,ao=Qt.pointers,fa=ao.length;oo.firstInput||(oo.firstInput=An(Qt)),fa>1&&!oo.firstMultiple?oo.firstMultiple=An(Qt):fa===1&&(oo.firstMultiple=!1);var wr=oo.firstInput,Xa=oo.firstMultiple,ir=Xa?Xa.center:wr.center,Ir=Qt.center=Nt(ao);Qt.timeStamp=U(),Qt.deltaTime=Qt.timeStamp-wr.timeStamp,Qt.angle=$t(ir,Ir),Qt.distance=Dt(ir,Ir),Yt(oo,Qt),Qt.offsetDirection=vn(Qt.deltaX,Qt.deltaY);var Er=jt(Qt.deltaTime,Qt.deltaX,Qt.deltaY);Qt.overallVelocityX=Er.x,Qt.overallVelocityY=Er.y,Qt.overallVelocity=l(Er.x)>l(Er.y)?Er.x:Er.y,Qt.scale=Xa?Kn(Xa.pointers,ao):1,Qt.rotation=Xa?kn(Xa.pointers,ao):0,Qt.maxPointers=oo.prevInput?Qt.pointers.length>oo.prevInput.maxPointers?Qt.pointers.length:oo.prevInput.maxPointers:Qt.pointers.length,rt(oo,Qt);var ji=kt.element;ht(Qt.srcEvent.target,ji)&&(ji=Qt.srcEvent.target),Qt.target=ji}function Yt(kt,Qt){var oo=Qt.center,ao=kt.offsetDelta||{},fa=kt.prevDelta||{},wr=kt.prevInput||{};(Qt.eventType===sn||wr.eventType===Pt)&&(fa=kt.prevDelta={x:wr.deltaX||0,y:wr.deltaY||0},ao=kt.offsetDelta={x:oo.x,y:oo.y}),Qt.deltaX=fa.x+(oo.x-ao.x),Qt.deltaY=fa.y+(oo.y-ao.y)}function rt(kt,Qt){var oo=kt.lastInterval||Qt,ao=Qt.timeStamp-oo.timeStamp,fa,wr,Xa,ir;if(Qt.eventType!=dt&&(ao>Oe||oo.velocity===T)){var Ir=Qt.deltaX-oo.deltaX,Er=Qt.deltaY-oo.deltaY,ji=jt(ao,Ir,Er);wr=ji.x,Xa=ji.y,fa=l(ji.x)>l(ji.y)?ji.x:ji.y,ir=vn(Ir,Er),kt.lastInterval=Qt}else fa=oo.velocity,wr=oo.velocityX,Xa=oo.velocityY,ir=oo.direction;Qt.velocity=fa,Qt.velocityX=wr,Qt.velocityY=Xa,Qt.direction=ir}function An(kt){for(var Qt=[],oo=0;oo<kt.pointers.length;)Qt[oo]={clientX:B(kt.pointers[oo].clientX),clientY:B(kt.pointers[oo].clientY)},oo++;return{timeStamp:U(),pointers:Qt,center:Nt(Qt),deltaX:kt.deltaX,deltaY:kt.deltaY}}function Nt(kt){var Qt=kt.length;if(Qt===1)return{x:B(kt[0].clientX),y:B(kt[0].clientY)};for(var oo=0,ao=0,fa=0;fa<Qt;)oo+=kt[fa].clientX,ao+=kt[fa].clientY,fa++;return{x:B(oo/Qt),y:B(ao/Qt)}}function jt(kt,Qt,oo){return{x:Qt/kt||0,y:oo/kt||0}}function vn(kt,Qt){return kt===Qt?Vn:l(kt)>=l(Qt)?kt<0?o:Gn:Qt<0?xt:Ot}function Dt(kt,Qt,oo){oo||(oo=bt);var ao=Qt[oo[0]]-kt[oo[0]],fa=Qt[oo[1]]-kt[oo[1]];return Math.sqrt(ao*ao+fa*fa)}function $t(kt,Qt,oo){oo||(oo=bt);var ao=Qt[oo[0]]-kt[oo[0]],fa=Qt[oo[1]]-kt[oo[1]];return Math.atan2(fa,ao)*180/Math.PI}function kn(kt,Qt){return $t(Qt[1],Qt[0],un)+$t(kt[1],kt[0],un)}function Kn(kt,Qt){return Dt(Qt[0],Qt[1],un)/Dt(kt[0],kt[1],un)}var dn={mousedown:sn,mousemove:It,mouseup:Pt},ft="mousedown",Lt="mousemove mouseup";function bn(){this.evEl=ft,this.evWin=Lt,this.pressed=!1,gt.apply(this,arguments)}me(bn,gt,{handler:function(Qt){var oo=dn[Qt.type];oo&sn&&Qt.button===0&&(this.pressed=!0),oo&It&&Qt.which!==1&&(oo=Pt),this.pressed&&(oo&Pt&&(this.pressed=!1),this.callback(this.manager,oo,{pointers:[Qt],changedPointers:[Qt],pointerType:_t,srcEvent:Qt}))}});var Yn={pointerdown:sn,pointermove:It,pointerup:Pt,pointercancel:dt,pointerout:dt},on={2:W,3:an,4:_t,5:nn},yn="pointerdown",lo="pointermove pointerup pointercancel";I.MSPointerEvent&&!I.PointerEvent&&(yn="MSPointerDown",lo="MSPointerMove MSPointerUp MSPointerCancel");function qn(){this.evEl=yn,this.evWin=lo,gt.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}me(qn,gt,{handler:function(Qt){var oo=this.store,ao=!1,fa=Qt.type.toLowerCase().replace("ms",""),wr=Yn[fa],Xa=on[Qt.pointerType]||Qt.pointerType,ir=Xa==W,Ir=mt(oo,Qt.pointerId,"pointerId");wr&sn&&(Qt.button===0||ir)?Ir<0&&(oo.push(Qt),Ir=oo.length-1):wr&(Pt|dt)&&(ao=!0),!(Ir<0)&&(oo[Ir]=Qt,this.callback(this.manager,wr,{pointers:oo,changedPointers:[Qt],pointerType:Xa,srcEvent:Qt}),ao&&oo.splice(Ir,1))}});var Wn={touchstart:sn,touchmove:It,touchend:Pt,touchcancel:dt},Nn="touchstart",xn="touchstart touchmove touchend touchcancel";function Ye(){this.evTarget=Nn,this.evWin=xn,this.started=!1,gt.apply(this,arguments)}me(Ye,gt,{handler:function(Qt){var oo=Wn[Qt.type];if(oo===sn&&(this.started=!0),!!this.started){var ao=wn.call(this,Qt,oo);oo&(Pt|dt)&&ao[0].length-ao[1].length===0&&(this.started=!1),this.callback(this.manager,oo,{pointers:ao[0],changedPointers:ao[1],pointerType:W,srcEvent:Qt})}}});function wn(kt,Qt){var oo=yt(kt.touches),ao=yt(kt.changedTouches);return Qt&(Pt|dt)&&(oo=Le(oo.concat(ao),"identifier",!0)),[oo,ao]}var Hn={touchstart:sn,touchmove:It,touchend:Pt,touchcancel:dt},zn="touchstart touchmove touchend touchcancel";function ko(){this.evTarget=zn,this.targetIds={},gt.apply(this,arguments)}me(ko,gt,{handler:function(Qt){var oo=Hn[Qt.type],ao=On.call(this,Qt,oo);ao&&this.callback(this.manager,oo,{pointers:ao[0],changedPointers:ao[1],pointerType:W,srcEvent:Qt})}});function On(kt,Qt){var oo=yt(kt.touches),ao=this.targetIds;if(Qt&(sn|It)&&oo.length===1)return ao[oo[0].identifier]=!0,[oo,oo];var fa,wr,Xa=yt(kt.changedTouches),ir=[],Ir=this.target;if(wr=oo.filter(function(Er){return ht(Er.target,Ir)}),Qt===sn)for(fa=0;fa<wr.length;)ao[wr[fa].identifier]=!0,fa++;for(fa=0;fa<Xa.length;)ao[Xa[fa].identifier]&&ir.push(Xa[fa]),Qt&(Pt|dt)&&delete ao[Xa[fa].identifier],fa++;if(ir.length)return[Le(wr.concat(ir),"identifier",!0),ir]}var Mo=2500,jn=25;function xo(){gt.apply(this,arguments);var kt=Se(this.handler,this);this.touch=new ko(this.manager,kt),this.mouse=new bn(this.manager,kt),this.primaryTouch=null,this.lastTouches=[]}me(xo,gt,{handler:function(Qt,oo,ao){var fa=ao.pointerType==W,wr=ao.pointerType==_t;if(!(wr&&ao.sourceCapabilities&&ao.sourceCapabilities.firesTouchEvents)){if(fa)jo.call(this,oo,ao);else if(wr&&cn.call(this,ao))return;this.callback(Qt,oo,ao)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});function jo(kt,Qt){kt&sn?(this.primaryTouch=Qt.changedPointers[0].identifier,Qo.call(this,Qt)):kt&(Pt|dt)&&Qo.call(this,Qt)}function Qo(kt){var Qt=kt.changedPointers[0];if(Qt.identifier===this.primaryTouch){var oo={x:Qt.clientX,y:Qt.clientY};this.lastTouches.push(oo);var ao=this.lastTouches,fa=function(){var wr=ao.indexOf(oo);wr>-1&&ao.splice(wr,1)};setTimeout(fa,Mo)}}function cn(kt){for(var Qt=kt.srcEvent.clientX,oo=kt.srcEvent.clientY,ao=0;ao<this.lastTouches.length;ao++){var fa=this.lastTouches[ao],wr=Math.abs(Qt-fa.x),Xa=Math.abs(oo-fa.y);if(wr<=jn&&Xa<=jn)return!0}return!1}var In=He(q.style,"touchAction"),tn=In!==T,Jt="compute",Ln="auto",Xn="manipulation",Dn="none",go="pan-x",Uo="pan-y",Ho=To();function ua(kt,Qt){this.manager=kt,this.set(Qt)}ua.prototype={set:function(kt){kt==Jt&&(kt=this.compute()),tn&&this.manager.element.style&&Ho[kt]&&(this.manager.element.style[In]=kt),this.actions=kt.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var kt=[];return w(this.manager.recognizers,function(Qt){Me(Qt.options.enable,[Qt])&&(kt=kt.concat(Qt.getTouchAction()))}),la(kt.join(" "))},preventDefaults:function(kt){var Qt=kt.srcEvent,oo=kt.offsetDirection;if(this.manager.session.prevented){Qt.preventDefault();return}var ao=this.actions,fa=Je(ao,Dn)&&!Ho[Dn],wr=Je(ao,Uo)&&!Ho[Uo],Xa=Je(ao,go)&&!Ho[go];if(fa){var ir=kt.pointers.length===1,Ir=kt.distance<2,Er=kt.deltaTime<250;if(ir&&Ir&&Er)return}if(!(Xa&&wr)&&(fa||wr&&oo&wt||Xa&&oo&Kt))return this.preventSrc(Qt)},preventSrc:function(kt){this.manager.session.prevented=!0,kt.preventDefault()}};function la(kt){if(Je(kt,Dn))return Dn;var Qt=Je(kt,go),oo=Je(kt,Uo);return Qt&&oo?Dn:Qt||oo?Qt?go:Uo:Je(kt,Xn)?Xn:Ln}function To(){if(!tn)return!1;var kt={},Qt=I.CSS&&I.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(oo){kt[oo]=Qt?I.CSS.supports("touch-action",oo):!0}),kt}var Ia=1,ya=2,eo=4,Oo=8,so=Oo,to=16,Vo=32;function ta(kt){this.options=j({},this.defaults,kt||{}),this.id=je(),this.manager=null,this.options.enable=De(this.options.enable,!0),this.state=Ia,this.simultaneous={},this.requireFail=[]}ta.prototype={defaults:{},set:function(kt){return j(this.options,kt),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(kt){if(M(kt,"recognizeWith",this))return this;var Qt=this.simultaneous;return kt=kr(kt,this),Qt[kt.id]||(Qt[kt.id]=kt,kt.recognizeWith(this)),this},dropRecognizeWith:function(kt){return M(kt,"dropRecognizeWith",this)?this:(kt=kr(kt,this),delete this.simultaneous[kt.id],this)},requireFailure:function(kt){if(M(kt,"requireFailure",this))return this;var Qt=this.requireFail;return kt=kr(kt,this),mt(Qt,kt)===-1&&(Qt.push(kt),kt.requireFailure(this)),this},dropRequireFailure:function(kt){if(M(kt,"dropRequireFailure",this))return this;kt=kr(kt,this);var Qt=mt(this.requireFail,kt);return Qt>-1&&this.requireFail.splice(Qt,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(kt){return!!this.simultaneous[kt.id]},emit:function(kt){var Qt=this,oo=this.state;function ao(fa){Qt.manager.emit(fa,kt)}oo<Oo&&ao(Qt.options.event+Qa(oo)),ao(Qt.options.event),kt.additionalEvent&&ao(kt.additionalEvent),oo>=Oo&&ao(Qt.options.event+Qa(oo))},tryEmit:function(kt){if(this.canEmit())return this.emit(kt);this.state=Vo},canEmit:function(){for(var kt=0;kt<this.requireFail.length;){if(!(this.requireFail[kt].state&(Vo|Ia)))return!1;kt++}return!0},recognize:function(kt){var Qt=j({},kt);if(!Me(this.options.enable,[this,Qt])){this.reset(),this.state=Vo;return}this.state&(so|to|Vo)&&(this.state=Ia),this.state=this.process(Qt),this.state&(ya|eo|Oo|to)&&this.tryEmit(Qt)},process:function(kt){},getTouchAction:function(){},reset:function(){}};function Qa(kt){return kt&to?"cancel":kt&Oo?"end":kt&eo?"move":kt&ya?"start":""}function qr(kt){return kt==Ot?"down":kt==xt?"up":kt==o?"left":kt==Gn?"right":""}function kr(kt,Qt){var oo=Qt.manager;return oo?oo.get(kt):kt}function ur(){ta.apply(this,arguments)}me(ur,ta,{defaults:{pointers:1},attrTest:function(kt){var Qt=this.options.pointers;return Qt===0||kt.pointers.length===Qt},process:function(kt){var Qt=this.state,oo=kt.eventType,ao=Qt&(ya|eo),fa=this.attrTest(kt);return ao&&(oo&dt||!fa)?Qt|to:ao||fa?oo&Pt?Qt|Oo:Qt&ya?Qt|eo:ya:Vo}});function Mr(){ur.apply(this,arguments),this.pX=null,this.pY=null}me(Mr,ur,{defaults:{event:"pan",threshold:10,pointers:1,direction:fe},getTouchAction:function(){var kt=this.options.direction,Qt=[];return kt&wt&&Qt.push(Uo),kt&Kt&&Qt.push(go),Qt},directionTest:function(kt){var Qt=this.options,oo=!0,ao=kt.distance,fa=kt.direction,wr=kt.deltaX,Xa=kt.deltaY;return fa&Qt.direction||(Qt.direction&wt?(fa=wr===0?Vn:wr<0?o:Gn,oo=wr!=this.pX,ao=Math.abs(kt.deltaX)):(fa=Xa===0?Vn:Xa<0?xt:Ot,oo=Xa!=this.pY,ao=Math.abs(kt.deltaY))),kt.direction=fa,oo&&ao>Qt.threshold&&fa&Qt.direction},attrTest:function(kt){return ur.prototype.attrTest.call(this,kt)&&(this.state&ya||!(this.state&ya)&&this.directionTest(kt))},emit:function(kt){this.pX=kt.deltaX,this.pY=kt.deltaY;var Qt=qr(kt.direction);Qt&&(kt.additionalEvent=this.options.event+Qt),this._super.emit.call(this,kt)}});function gr(){ur.apply(this,arguments)}me(gr,ur,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[Dn]},attrTest:function(kt){return this._super.attrTest.call(this,kt)&&(Math.abs(kt.scale-1)>this.options.threshold||this.state&ya)},emit:function(kt){if(kt.scale!==1){var Qt=kt.scale<1?"in":"out";kt.additionalEvent=this.options.event+Qt}this._super.emit.call(this,kt)}});function dr(){ta.apply(this,arguments),this._timer=null,this._input=null}me(dr,ta,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[Ln]},process:function(kt){var Qt=this.options,oo=kt.pointers.length===Qt.pointers,ao=kt.distance<Qt.threshold,fa=kt.deltaTime>Qt.time;if(this._input=kt,!ao||!oo||kt.eventType&(Pt|dt)&&!fa)this.reset();else if(kt.eventType&sn)this.reset(),this._timer=C(function(){this.state=so,this.tryEmit()},Qt.time,this);else if(kt.eventType&Pt)return so;return Vo},reset:function(){clearTimeout(this._timer)},emit:function(kt){this.state===so&&(kt&&kt.eventType&Pt?this.manager.emit(this.options.event+"up",kt):(this._input.timeStamp=U(),this.manager.emit(this.options.event,this._input)))}});function wi(){ur.apply(this,arguments)}me(wi,ur,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[Dn]},attrTest:function(kt){return this._super.attrTest.call(this,kt)&&(Math.abs(kt.rotation)>this.options.threshold||this.state&ya)}});function gi(){ur.apply(this,arguments)}me(gi,ur,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:wt|Kt,pointers:1},getTouchAction:function(){return Mr.prototype.getTouchAction.call(this)},attrTest:function(kt){var Qt=this.options.direction,oo;return Qt&(wt|Kt)?oo=kt.overallVelocity:Qt&wt?oo=kt.overallVelocityX:Qt&Kt&&(oo=kt.overallVelocityY),this._super.attrTest.call(this,kt)&&Qt&kt.offsetDirection&&kt.distance>this.options.threshold&&kt.maxPointers==this.options.pointers&&l(oo)>this.options.velocity&&kt.eventType&Pt},emit:function(kt){var Qt=qr(kt.offsetDirection);Qt&&this.manager.emit(this.options.event+Qt,kt),this.manager.emit(this.options.event,kt)}});function Li(){ta.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}me(Li,ta,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[Xn]},process:function(kt){var Qt=this.options,oo=kt.pointers.length===Qt.pointers,ao=kt.distance<Qt.threshold,fa=kt.deltaTime<Qt.time;if(this.reset(),kt.eventType&sn&&this.count===0)return this.failTimeout();if(ao&&fa&&oo){if(kt.eventType!=Pt)return this.failTimeout();var wr=this.pTime?kt.timeStamp-this.pTime<Qt.interval:!0,Xa=!this.pCenter||Dt(this.pCenter,kt.center)<Qt.posThreshold;this.pTime=kt.timeStamp,this.pCenter=kt.center,!Xa||!wr?this.count=1:this.count+=1,this._input=kt;var ir=this.count%Qt.taps;if(ir===0)return this.hasRequireFailures()?(this._timer=C(function(){this.state=so,this.tryEmit()},Qt.interval,this),ya):so}return Vo},failTimeout:function(){return this._timer=C(function(){this.state=Vo},this.options.interval,this),Vo},reset:function(){clearTimeout(this._timer)},tryEmit:function(kt,Qt){return Qt===void 0&&(Qt={isForceEmit:!1}),this.emit(kt)},emit:function(){this.state==so&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}});function Ni(kt,Qt){return Qt=Qt||{},Qt.recognizers=De(Qt.recognizers,Ni.defaults.preset),new Ss(kt,Qt)}Ni.VERSION="2.0.7",Ni.defaults={domEvents:!1,touchAction:Jt,enable:!0,inputTarget:null,inputClass:null,preset:[[wi,{enable:!1}],[gr,{enable:!1},["rotate"]],[gi,{direction:wt}],[Mr,{direction:wt},["swipe"]],[Li],[Li,{event:"doubletap",taps:2},["tap"]],[dr]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};var Ai=1,Bi=2;function Ss(kt,Qt){this.options=j({},Ni.defaults,Qt||{}),this.options.inputTarget=this.options.inputTarget||kt,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=kt,this.input=Wt(this),this.touchAction=new ua(this,this.options.touchAction),qi(this,!0),w(this.options.recognizers,function(oo){var ao=this.add(new oo[0](oo[1]));oo[2]&&ao.recognizeWith(oo[2]),oo[3]&&ao.requireFailure(oo[3])},this)}Ss.prototype={set:function(kt){return j(this.options,kt),kt.touchAction&&this.touchAction.update(),kt.inputTarget&&(this.input.destroy(),this.input.target=kt.inputTarget,this.input.init()),this},stop:function(kt){this.session.stopped=kt?Bi:Ai},recognize:function(kt){var Qt=this.session;if(!Qt.stopped){this.touchAction.preventDefaults(kt);var oo,ao=this.recognizers,fa=Qt.curRecognizer;(!fa||fa&&fa.state&so)&&(fa=Qt.curRecognizer=null);for(var wr=0;wr<ao.length;)oo=ao[wr],Qt.stopped!==Bi&&(!fa||oo==fa||oo.canRecognizeWith(fa))?oo.recognize(kt):oo.reset(),!fa&&oo.state&(ya|eo|Oo)&&(fa=Qt.curRecognizer=oo),wr++}},get:function(kt){if(kt instanceof ta)return kt;for(var Qt=this.recognizers,oo=0;oo<Qt.length;oo++)if(Qt[oo].options.event==kt)return Qt[oo];return null},add:function(kt){if(M(kt,"add",this))return this;var Qt=this.get(kt.options.event);return Qt&&this.remove(Qt),this.recognizers.push(kt),kt.manager=this,this.touchAction.update(),kt},remove:function(kt){if(M(kt,"remove",this))return this;if(kt=this.get(kt),kt){var Qt=this.recognizers,oo=mt(Qt,kt);oo!==-1&&(Qt.splice(oo,1),this.touchAction.update())}return this},on:function(kt,Qt){if(kt!==T&&Qt!==T){var oo=this.handlers;return w($(kt),function(ao){oo[ao]=oo[ao]||[],oo[ao].push(Qt)}),this}},off:function(kt,Qt){if(kt!==T){var oo=this.handlers;return w($(kt),function(ao){Qt?oo[ao]&&oo[ao].splice(mt(oo[ao],Qt),1):delete oo[ao]}),this}},emit:function(kt,Qt){this.options.domEvents&&Ga(kt,Qt);var oo=this.handlers[kt]&&this.handlers[kt].slice();if(!(!oo||!oo.length)){Qt.type=kt,Qt.preventDefault=function(){Qt.srcEvent.preventDefault()};for(var ao=0;ao<oo.length;)oo[ao](Qt),ao++}},destroy:function(){this.element&&qi(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}};function qi(kt,Qt){var oo=kt.element;if(oo.style){var ao;w(kt.options.cssProps,function(fa,wr){ao=He(oo.style,wr),Qt?(kt.oldCssProps[ao]=oo.style[ao],oo.style[ao]=fa):oo.style[ao]=kt.oldCssProps[ao]||""}),Qt||(kt.oldCssProps={})}}function Ga(kt,Qt){var oo=J.createEvent("Event");oo.initEvent(kt,!0,!0),oo.gesture=Qt,Qt.target.dispatchEvent(oo)}j(Ni,{INPUT_START:sn,INPUT_MOVE:It,INPUT_END:Pt,INPUT_CANCEL:dt,STATE_POSSIBLE:Ia,STATE_BEGAN:ya,STATE_CHANGED:eo,STATE_ENDED:Oo,STATE_RECOGNIZED:so,STATE_CANCELLED:to,STATE_FAILED:Vo,DIRECTION_NONE:Vn,DIRECTION_LEFT:o,DIRECTION_RIGHT:Gn,DIRECTION_UP:xt,DIRECTION_DOWN:Ot,DIRECTION_HORIZONTAL:wt,DIRECTION_VERTICAL:Kt,DIRECTION_ALL:fe,Manager:Ss,Input:gt,TouchAction:ua,TouchInput:ko,MouseInput:bn,PointerEventInput:qn,TouchMouseInput:xo,SingleTouchInput:Ye,Recognizer:ta,AttrRecognizer:ur,Tap:Li,Pan:Mr,Swipe:gi,Pinch:gr,Rotate:wi,Press:dr,on:tt,off:at,each:w,merge:ze,extend:Q,assign:j,inherit:me,bindFn:Se,prefixed:He});var ai=typeof I<"u"?I:typeof self<"u"?self:{};ai.Hammer=Ni,r=(function(){return Ni}).call(qe,s,qe,Qn),r!==T&&(Qn.exports=r)})(window,document,"Hammer")},94456:(Qn,qe,s)=>{"use strict";s.d(qe,{w:()=>J,y:()=>N});var r=s(56202),I=s(15542);const J={electron:()=>I.um,wondershare:()=>I.um,mac:()=>I.um,windows:()=>I.JL},N=()=>(0,r.b8)()?"electron":ENV.IS_MO?"wondershare":(0,r.cX)()?"mac":"windows"},94590:(Qn,qe,s)=>{"use strict";s.d(qe,{bZ:()=>N,kX:()=>T,mV:()=>J});var r=s(5209),I=s(78257);let J=function(te){return te.BackDropMenu="\u8FD4\u56DE\u4E0B\u62C9\u83DC\u5355",te.TitleDropMenu="\u6807\u9898\u4E0B\u62C9\u83DC\u5355",te.Sharing="\u5206\u4EAB",te.Download="\u4E0B\u8F7D",te.Device="\u6F14\u793A",te.Layout="\u5E03\u5C40",te.View="\u89C6\u56FE",te.FullScreen="\u5168\u5C4F",te.ExitFullScreen="\u9000\u51FA\u5168\u5C4F",te.ShowLeftPanel="\u663E\u793A\u5DE6\u4FA7\u9762\u677F",te.ShowRightPanel="\u663E\u793A\u53F3\u4FA7\u9762\u677F",te.Sticky="\u6279\u6CE8",te.Comment="\u8BC4\u8BBA",te.CollaborationPointer="\u591A\u4EBA\u6307\u9488",te.VersionToDropMenu="\u7248\u672C\u8BB0\u5F55-\u8FD4\u56DE\u4E0B\u62C9\u83DC\u5355",te.VersionToTitleMenu="\u7248\u672C\u8BB0\u5F55-\u6807\u9898\u4E0B\u62C9\u83DC\u5355",te.directory="\u76EE\u5F55",te.directoryPage="\u76EE\u5F55-\u9875\u9762",te.directoryLayer="\u76EE\u5F55-\u56FE\u5C42",te.Widget="\u7EC4\u4EF6",te.Icon="\u56FE\u6807",te.Image="\u56FE\u7247",te.Page="\u9875\u9762",te.Flow="\u6D41\u7A0B",te.Mind="\u8111\u56FE",te.Muban="\u6BCD\u7248",te.BasketPreview="\u52A8\u6001\u7EC4\u4EF6\u6F14\u793A",te.MubanPreview="\u6BCD\u7248\u6F14\u793A",te.PagePreview="\u9875\u9762\u6F14\u793A",te.AI="AI",te.NewbieVideo="\u5FEB\u901F\u5165\u95E8",te.EditMubanPreview="\u7F16\u8F91\u533A-\u6BCD\u7248\u9884\u89C8",te.EditBasketPreview="\u7F16\u8F91\u533A-\u52A8\u6001\u7EC4\u4EF6\u9884\u89C8",te.EditAIComponentPreview="\u7F16\u8F91\u533A-AI\u7EC4\u4EF6\u9884\u89C8",te}({});const N={[I.lS.Directory]:J.directory,[I.lS.Builtin]:J.Widget,[I.lS.Icon]:J.Icon,[I.lS.Page]:J.Page,[I.lS.Asset]:J.Image,[I.lS.Flow]:J.Flow,[I.lS.Mind]:J.Mind,[I.lS.Template]:J.Muban,[I.lS.AI]:J.AI},T=te=>{let{operation_type:q}=te;(0,r.kH)("edit_click_V8",{operation_type:q})}},94986:(Qn,qe,s)=>{"use strict";s.d(qe,{$:()=>J,t:()=>r});const r=N=>{const T=I(N);return J(T)},I=N=>({top:N.includes("t"),left:N.includes("l"),bottom:N.includes("b"),right:N.includes("r")}),J=N=>{const T=[];return Object.entries(N).forEach(te=>{let[q,ne]=te;return ne&&T.push(q)}),T}},95358:(Qn,qe,s)=>{"use strict";s.d(qe,{v:()=>r});const r=I=>{let{data:J,params:N,productId:T="315118",isWonderShare:te=!1,wsLink:q="https://mockitt.wondershare.com/feedback.html"}=I;if(te){window.open(q,"_blank");return}const ne=document.createElement("form");ne.id="TucaoForm",ne.name="form",document.body.appendChild(ne);for(const B in J){const l=document.createElement("input");l.type="text",l.name=B,l.value=J[B],ne.appendChild(l)}ne.method="POST",ne.target="_blank",ne.action="https://support.qq.com/product/"+T+N,ne.submit(),document.body.removeChild(ne)}},95767:function(Qn,qe,s){(function(r,I){Qn.exports=I(s(38502))})(this,function(r){return(()=>{var I={703:(te,q,ne)=>{"use strict";var B=ne(414);function l(){}function U(){}U.resetWarningCache=l,te.exports=function(){function C(y,j,Q,ze,me,Se){if(Se!==B){var Me=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw Me.name="Invariant Violation",Me}}function M(){return C}C.isRequired=C;var w={array:C,bool:C,func:C,number:C,object:C,string:C,symbol:C,any:C,arrayOf:M,element:C,elementType:C,instanceOf:M,node:C,objectOf:M,oneOf:M,oneOfType:M,shape:M,exact:M,checkPropTypes:U,resetWarningCache:l};return w.PropTypes=w,w}},697:(te,q,ne)=>{te.exports=ne(703)()},414:te=>{"use strict";te.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},427:te=>{"use strict";te.exports=r}},J={};function N(te){var q=J[te];if(q!==void 0)return q.exports;var ne=J[te]={exports:{}};return I[te](ne,ne.exports,N),ne.exports}N.n=te=>{var q=te&&te.__esModule?()=>te.default:()=>te;return N.d(q,{a:q}),q},N.d=(te,q)=>{for(var ne in q)N.o(q,ne)&&!N.o(te,ne)&&Object.defineProperty(te,ne,{enumerable:!0,get:q[ne]})},N.o=(te,q)=>Object.prototype.hasOwnProperty.call(te,q),N.r=te=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(te,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(te,"__esModule",{value:!0})};var T={};return(()=>{"use strict";N.r(T),N.d(T,{Component:()=>yt,containCrop:()=>$,default:()=>yt,makeAspectCrop:()=>at});var te=N(427),q=N.n(te),ne=N(697),B=N.n(ne);function l(Le){var He,ye,je="";if(typeof Le=="string"||typeof Le=="number")je+=Le;else if(typeof Le=="object")if(Array.isArray(Le))for(He=0;He<Le.length;He++)Le[He]&&(ye=l(Le[He]))&&(je&&(je+=" "),je+=ye);else for(He in Le)Le[He]&&(je&&(je+=" "),je+=He);return je}function U(Le){return(U=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(He){return typeof He}:function(He){return He&&typeof Symbol=="function"&&He.constructor===Symbol&&He!==Symbol.prototype?"symbol":typeof He})(Le)}function C(Le,He){if(!(Le instanceof He))throw new TypeError("Cannot call a class as a function")}function M(Le,He){for(var ye=0;ye<He.length;ye++){var je=He[ye];je.enumerable=je.enumerable||!1,je.configurable=!0,"value"in je&&(je.writable=!0),Object.defineProperty(Le,je.key,je)}}function w(Le,He){return(w=Object.setPrototypeOf||function(ye,je){return ye.__proto__=je,ye})(Le,He)}function y(Le,He){return!He||U(He)!=="object"&&typeof He!="function"?j(Le):He}function j(Le){if(Le===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Le}function Q(Le){return(Q=Object.setPrototypeOf?Object.getPrototypeOf:function(He){return He.__proto__||Object.getPrototypeOf(He)})(Le)}function ze(Le,He){var ye=Object.keys(Le);if(Object.getOwnPropertySymbols){var je=Object.getOwnPropertySymbols(Le);He&&(je=je.filter(function(ot){return Object.getOwnPropertyDescriptor(Le,ot).enumerable})),ye.push.apply(ye,je)}return ye}function me(Le){for(var He=1;He<arguments.length;He++){var ye=arguments[He]!=null?arguments[He]:{};He%2?ze(Object(ye),!0).forEach(function(je){Se(Le,je,ye[je])}):Object.getOwnPropertyDescriptors?Object.defineProperties(Le,Object.getOwnPropertyDescriptors(ye)):ze(Object(ye)).forEach(function(je){Object.defineProperty(Le,je,Object.getOwnPropertyDescriptor(ye,je))})}return Le}function Se(Le,He,ye){return He in Le?Object.defineProperty(Le,He,{value:ye,enumerable:!0,configurable:!0,writable:!0}):Le[He]=ye,Le}function Me(Le,He,ye){return Math.min(Math.max(Le,He),ye)}function De(Le){return Le&&!isNaN(Le.width)&&!isNaN(Le.height)}function tt(Le){return Le==="n"?"s":Le==="ne"?"sw":Le==="e"?"w":Le==="se"?"nw":Le==="s"?"n":Le==="sw"?"ne":Le==="w"?"e":Le==="nw"?"se":Le}function at(Le,He,ye){if(isNaN(Le.aspect))return console.warn("`crop.aspect` should be a number in order to make an aspect crop",Le),Le;var je=me({unit:"px",x:0,y:0},Le);return Le.width&&(je.height=je.width/Le.aspect),Le.height&&(je.width=je.height*Le.aspect),je.y+je.height>ye&&(je.height=ye-je.y,je.width=je.height*Le.aspect),je.x+je.width>He&&(je.width=He-je.x,je.height=je.width/Le.aspect),je}function ht(Le,He,ye){return Le.unit==="%"?Le:{unit:"%",aspect:Le.aspect,x:Le.x/He*100,y:Le.y/ye*100,width:Le.width/He*100,height:Le.height/ye*100}}function Je(Le,He,ye){return Le.unit?Le.unit==="px"?Le:{unit:"px",aspect:Le.aspect,x:Le.x*He/100,y:Le.y*ye/100,width:Le.width*He/100,height:Le.height*ye/100}:me(me({},Le),{},{unit:"px"})}function $(Le,He,ye,je){var ot=Je(He,ye,je),we=Je(Le,ye,je),$e=me({},ot);if(!ot.aspect)return ot.x<0?($e.x=0,$e.width+=ot.x):ot.x+ot.width>ye&&($e.width=ye-ot.x),ot.y+ot.height>je&&($e.height=je-ot.y),$e;var ge=!1;ot.x<0?($e.x=0,$e.width+=ot.x,$e.height=$e.width/ot.aspect,ge=!0):ot.x+ot.width>ye&&($e.width=ye-ot.x,$e.height=$e.width/ot.aspect,ge=!0),ge&&we.y>$e.y&&($e.y=ot.y+(ot.height-$e.height));var Ze=!1;return $e.y+$e.height>je&&($e.height=je-ot.y,$e.width=$e.height*ot.aspect,Ze=!0),Ze&&we.x>$e.x&&($e.x=ot.x+(ot.width-$e.width)),$e}var mt={capture:!0,passive:!1},yt=function(Le){(function(ge,Ze){if(typeof Ze!="function"&&Ze!==null)throw new TypeError("Super expression must either be null or a function");ge.prototype=Object.create(Ze&&Ze.prototype,{constructor:{value:ge,writable:!0,configurable:!0}}),Ze&&w(ge,Ze)})($e,Le);var He,ye,je,ot,we=(je=$e,ot=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(ge){return!1}}(),function(){var ge,Ze=Q(je);if(ot){var W=Q(this).constructor;ge=Reflect.construct(Ze,arguments,W)}else ge=Ze.apply(this,arguments);return y(this,ge)});function $e(){var ge;C(this,$e);for(var Ze=arguments.length,W=new Array(Ze),an=0;an<Ze;an++)W[an]=arguments[an];return Se(j(ge=we.call.apply(we,[this].concat(W))),"window",typeof window<"u"?window:{}),Se(j(ge),"document",typeof document<"u"?document:{}),Se(j(ge),"state",{}),Se(j(ge),"keysDown",new Set),Se(j(ge),"onCropPointerDown",function(_t){var nn=ge.props,Oe=nn.crop,sn=nn.disabled,It=ge.mediaDimensions,Pt=Je(Oe,It.width,It.height);if(!sn){_t.cancelable&&_t.preventDefault(),ge.bindDocMove(),ge.componentRef.focus({preventScroll:!0});var dt=_t.target.dataset.ord,Vn=dt==="nw"||dt==="w"||dt==="sw",o=dt==="nw"||dt==="n"||dt==="ne";ge.evData={clientStartX:_t.clientX,clientStartY:_t.clientY,cropStartWidth:Pt.width,cropStartHeight:Pt.height,cropStartX:Vn?Pt.x+Pt.width:Pt.x,cropStartY:o?Pt.y+Pt.height:Pt.y,xInversed:Vn,yInversed:o,xCrossOver:Vn,yCrossOver:o,startXCrossOver:Vn,startYCrossOver:o,isResize:_t.target.dataset.ord,ord:dt},ge.mouseDownOnCrop=!0,ge.setState({cropIsActive:!0})}}),Se(j(ge),"onComponentPointerDown",function(_t){var nn=ge.props,Oe=nn.crop,sn=nn.disabled,It=nn.locked,Pt=nn.keepSelection,dt=nn.onChange,Vn=ge.mediaWrapperRef.firstChild;if(_t.target===Vn&&Vn.contains(_t.target)&&!(sn||It||Pt&&De(Oe))){_t.cancelable&&_t.preventDefault(),ge.bindDocMove(),ge.componentRef.focus({preventScroll:!0});var o=ge.mediaWrapperRef.getBoundingClientRect(),Gn=_t.clientX-o.left,xt=_t.clientY-o.top,Ot={unit:"px",aspect:Oe?Oe.aspect:void 0,x:Gn,y:xt,width:0,height:0};ge.evData={clientStartX:_t.clientX,clientStartY:_t.clientY,cropStartWidth:Ot.width,cropStartHeight:Ot.height,cropStartX:Ot.x,cropStartY:Ot.y,xInversed:!1,yInversed:!1,xCrossOver:!1,yCrossOver:!1,startXCrossOver:!1,startYCrossOver:!1,isResize:!0,ord:"nw"},ge.mouseDownOnCrop=!0;var wt=ge.mediaDimensions,Kt=wt.width,fe=wt.height;dt(Je(Ot,Kt,fe),ht(Ot,Kt,fe)),ge.setState({cropIsActive:!0,newCropIsBeingDrawn:!0})}}),Se(j(ge),"onDocPointerMove",function(_t){var nn=ge.props,Oe=nn.crop,sn=nn.disabled,It=nn.onChange,Pt=nn.onDragStart;if(!sn&&ge.mouseDownOnCrop){_t.cancelable&&_t.preventDefault(),ge.dragStarted||(ge.dragStarted=!0,Pt(_t));var dt,Vn=j(ge).evData;if(Vn.xDiff=_t.clientX-Vn.clientStartX,Vn.yDiff=_t.clientY-Vn.clientStartY,(dt=Vn.isResize?ge.resizeCrop():ge.dragCrop())!==Oe){var o=ge.mediaDimensions,Gn=o.width,xt=o.height;It(Je(dt,Gn,xt),ht(dt,Gn,xt))}}}),Se(j(ge),"onComponentKeyDown",function(_t){var nn=ge.props,Oe=nn.crop,sn=nn.disabled,It=nn.onChange,Pt=nn.onComplete;if(!sn){ge.keysDown.add(_t.key);var dt=!1;if(De(Oe)){var Vn=ge.makeNewCrop(),o=(navigator.platform.match("Mac")?_t.metaKey:_t.ctrlKey)?$e.nudgeStepLarge:_t.shiftKey?$e.nudgeStepMedium:$e.nudgeStep;if(ge.keysDown.has("ArrowLeft")&&(Vn.x-=o,dt=!0),ge.keysDown.has("ArrowRight")&&(Vn.x+=o,dt=!0),ge.keysDown.has("ArrowUp")&&(Vn.y-=o,dt=!0),ge.keysDown.has("ArrowDown")&&(Vn.y+=o,dt=!0),dt){_t.cancelable&&_t.preventDefault();var Gn=ge.mediaDimensions,xt=Gn.width,Ot=Gn.height;Vn.x=Me(Vn.x,0,xt-Vn.width),Vn.y=Me(Vn.y,0,Ot-Vn.height);var wt=Je(Vn,xt,Ot),Kt=ht(Vn,xt,Ot);It(wt,Kt),Pt(wt,Kt)}}}}),Se(j(ge),"onComponentKeyUp",function(_t){ge.keysDown.delete(_t.key)}),Se(j(ge),"onDocPointerDone",function(_t){var nn=ge.props,Oe=nn.crop,sn=nn.disabled,It=nn.onComplete,Pt=nn.onDragEnd;if(ge.unbindDocMove(),!sn&&ge.mouseDownOnCrop){ge.mouseDownOnCrop=!1,ge.dragStarted=!1;var dt=ge.mediaDimensions,Vn=dt.width,o=dt.height;Pt(_t),It(Je(Oe,Vn,o),ht(Oe,Vn,o)),ge.setState({cropIsActive:!1,newCropIsBeingDrawn:!1})}}),Se(j(ge),"onMediaLoaded",function(){var _t=ge.props,nn=_t.onComplete,Oe=_t.onChange,sn=ge.createNewCrop(),It=sn.pixelCrop,Pt=sn.percentCrop;Oe(It,Pt),nn(It,Pt)}),Se(j(ge),"onImageLoad",function(_t){var nn=_t.target,Oe=ge.props,sn=Oe.onComplete,It=Oe.onChange;if((0,Oe.onImageLoaded)(nn)!==!1){var Pt=ge.createNewCrop(),dt=Pt.pixelCrop,Vn=Pt.percentCrop;It(dt,Vn),sn(dt,Vn)}}),Se(j(ge),"bindComponentRef",function(_t){ge.componentRef=_t}),Se(j(ge),"bindMediaWrapperRef",function(_t){ge.mediaWrapperRef=_t}),Se(j(ge),"bindImageRef",function(_t){ge.imageRef=_t}),Se(j(ge),"bindCropSelectionRef",function(_t){ge.cropSelectRef=_t}),ge}return He=$e,(ye=[{key:"componentDidMount",value:function(){this.componentRef.addEventListener&&this.componentRef.addEventListener("medialoaded",this.onMediaLoaded)}},{key:"componentWillUnmount",value:function(){this.componentRef.removeEventListener&&this.componentRef.removeEventListener("medialoaded",this.onMediaLoaded)}},{key:"componentDidUpdate",value:function(ge){var Ze=this.props.crop;if(this.imageRef&&ge.crop!==Ze&&Ze.aspect&&(Ze.width&&!Ze.height||!Ze.width&&Ze.height)){var W=this.imageRef,an=W.width,_t=W.height,nn=at(this.makeNewCrop(),an,_t),Oe=Je(nn,an,_t),sn=ht(nn,an,_t);this.props.onChange(Oe,sn),this.props.onComplete(Oe,sn)}}},{key:"bindDocMove",value:function(){this.docMoveBound||(this.document.addEventListener("pointermove",this.onDocPointerMove,mt),this.document.addEventListener("pointerup",this.onDocPointerDone,mt),this.document.addEventListener("pointercancel",this.onDocPointerDone,mt),this.docMoveBound=!0)}},{key:"unbindDocMove",value:function(){this.docMoveBound&&(this.document.removeEventListener("pointermove",this.onDocPointerMove,mt),this.document.removeEventListener("pointerup",this.onDocPointerDone,mt),this.document.removeEventListener("pointercancel",this.onDocPointerDone,mt),this.docMoveBound=!1)}},{key:"createNewCrop",value:function(){var ge,Ze,W,an=this.mediaDimensions,_t=an.width,nn=an.height,Oe=(ge=this.makeNewCrop(),Ze=_t,W=nn,!ge.aspect||ge.width&&ge.height?ge:at(ge,Ze,W));return{pixelCrop:Je(Oe,_t,nn),percentCrop:ht(Oe,_t,nn)}}},{key:"mediaDimensions",get:function(){var ge=this.mediaWrapperRef;return{width:ge.clientWidth,height:ge.clientHeight}}},{key:"getCropStyle",value:function(){var ge=this.makeNewCrop(this.props.crop?this.props.crop.unit:"px");return{top:"".concat(ge.y).concat(ge.unit),left:"".concat(ge.x).concat(ge.unit),width:"".concat(ge.width).concat(ge.unit),height:"".concat(ge.height).concat(ge.unit)}}},{key:"getNewSize",value:function(){var ge,Ze=this.props,W=Ze.crop,an=Ze.minWidth,_t=Ze.maxWidth,nn=Ze.minHeight,Oe=Ze.maxHeight,sn=this.evData,It=this.mediaDimensions,Pt=It.width,dt=It.height,Vn=sn.cropStartWidth+sn.xDiff;return sn.xCrossOver&&(Vn=Math.abs(Vn)),Vn=Me(Vn,an,_t||Pt),ge=W.aspect?Vn/W.aspect:sn.cropStartHeight+sn.yDiff,sn.yCrossOver&&(ge=Math.min(Math.abs(ge),sn.cropStartY)),ge=Me(ge,nn,Oe||dt),W.aspect&&(Vn=Me(ge*W.aspect,0,Pt)),{width:Vn,height:ge}}},{key:"dragCrop",value:function(){var ge=this.makeNewCrop(),Ze=this.evData,W=this.mediaDimensions,an=W.width,_t=W.height;return ge.x=Me(Ze.cropStartX+Ze.xDiff,0,an-ge.width),ge.y=Me(Ze.cropStartY+Ze.yDiff,0,_t-ge.height),ge}},{key:"resizeCrop",value:function(){var ge=this.evData,Ze=this.makeNewCrop(),W=ge.ord;ge.xInversed&&(ge.xDiff-=2*ge.cropStartWidth),ge.yInversed&&(ge.yDiff-=2*ge.cropStartHeight);var an=this.getNewSize(),_t=ge.cropStartX,nn=ge.cropStartY;ge.xCrossOver&&(_t=Ze.x+(Ze.width-an.width)),ge.yCrossOver&&(nn=ge.lastYCrossover===!1?Ze.y-an.height:Ze.y+(Ze.height-an.height));var Oe=this.mediaDimensions,sn=Oe.width,It=Oe.height,Pt=$(this.props.crop,{unit:Ze.unit,x:_t,y:nn,width:an.width,height:an.height,aspect:Ze.aspect},sn,It);return Ze.aspect||$e.xyOrds.indexOf(W)>-1?(Ze.x=Pt.x,Ze.y=Pt.y,Ze.width=Pt.width,Ze.height=Pt.height):$e.xOrds.indexOf(W)>-1?(Ze.x=Pt.x,Ze.width=Pt.width):$e.yOrds.indexOf(W)>-1&&(Ze.y=Pt.y,Ze.height=Pt.height),ge.lastYCrossover=ge.yCrossOver,this.crossOverCheck(),Ze.width<this.props.minWidth||Ze.height<this.props.minHeight?this.props.crop:Ze}},{key:"createCropSelection",value:function(){var ge=this.props,Ze=ge.disabled,W=ge.locked,an=ge.renderSelectionAddon,_t=ge.ruleOfThirds,nn=ge.crop,Oe=this.getCropStyle();return q().createElement("div",{ref:this.bindCropSelectionRef,style:Oe,className:"ReactCrop__crop-selection",onPointerDown:this.onCropPointerDown},!Ze&&!W&&q().createElement("div",{className:"ReactCrop__drag-elements"},q().createElement("div",{className:"ReactCrop__drag-bar ord-n","data-ord":"n"}),q().createElement("div",{className:"ReactCrop__drag-bar ord-e","data-ord":"e"}),q().createElement("div",{className:"ReactCrop__drag-bar ord-s","data-ord":"s"}),q().createElement("div",{className:"ReactCrop__drag-bar ord-w","data-ord":"w"}),q().createElement("div",{className:"ReactCrop__drag-handle ord-nw","data-ord":"nw"}),q().createElement("div",{className:"ReactCrop__drag-handle ord-n","data-ord":"n"}),q().createElement("div",{className:"ReactCrop__drag-handle ord-ne","data-ord":"ne"}),q().createElement("div",{className:"ReactCrop__drag-handle ord-e","data-ord":"e"}),q().createElement("div",{className:"ReactCrop__drag-handle ord-se","data-ord":"se"}),q().createElement("div",{className:"ReactCrop__drag-handle ord-s","data-ord":"s"}),q().createElement("div",{className:"ReactCrop__drag-handle ord-sw","data-ord":"sw"}),q().createElement("div",{className:"ReactCrop__drag-handle ord-w","data-ord":"w"})),an&&De(nn)&&q().createElement("div",{className:"ReactCrop__selection-addon",onMouseDown:function(sn){return sn.stopPropagation()}},an(this.state)),_t&&q().createElement(q().Fragment,null,q().createElement("div",{className:"ReactCrop__rule-of-thirds-hz"}),q().createElement("div",{className:"ReactCrop__rule-of-thirds-vt"})))}},{key:"makeNewCrop",value:function(){var ge=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"px",Ze=me(me({},$e.defaultCrop),this.props.crop||{}),W=this.mediaDimensions,an=W.width,_t=W.height;return ge==="px"?Je(Ze,an,_t):ht(Ze,an,_t)}},{key:"crossOverCheck",value:function(){var ge=this.evData,Ze=this.props,W=Ze.minWidth,an=Ze.minHeight;!W&&(!ge.xCrossOver&&-Math.abs(ge.cropStartWidth)-ge.xDiff>=0||ge.xCrossOver&&-Math.abs(ge.cropStartWidth)-ge.xDiff<=0)&&(ge.xCrossOver=!ge.xCrossOver),!an&&(!ge.yCrossOver&&-Math.abs(ge.cropStartHeight)-ge.yDiff>=0||ge.yCrossOver&&-Math.abs(ge.cropStartHeight)-ge.yDiff<=0)&&(ge.yCrossOver=!ge.yCrossOver);var _t=ge.xCrossOver!==ge.startXCrossOver,nn=ge.yCrossOver!==ge.startYCrossOver;ge.inversedXOrd=!!_t&&tt(ge.ord),ge.inversedYOrd=!!nn&&tt(ge.ord)}},{key:"render",value:function(){var ge=this.props,Ze=ge.children,W=ge.circularCrop,an=ge.className,_t=ge.crossorigin,nn=ge.crop,Oe=ge.disabled,sn=ge.locked,It=ge.imageAlt,Pt=ge.onImageError,dt=ge.renderComponent,Vn=ge.src,o=ge.style,Gn=ge.imageStyle,xt=ge.ruleOfThirds,Ot=this.state,wt=Ot.cropIsActive,Kt=Ot.newCropIsBeingDrawn,fe=De(nn)&&this.componentRef?this.createCropSelection():null,bt=function(){for(var un,gt,Wt=0,Un="";Wt<arguments.length;)(un=arguments[Wt++])&&(gt=l(un))&&(Un&&(Un+=" "),Un+=gt);return Un}("ReactCrop",an,{"ReactCrop--active":wt,"ReactCrop--disabled":Oe,"ReactCrop--locked":sn,"ReactCrop--new-crop":Kt,"ReactCrop--fixed-aspect":nn&&nn.aspect,"ReactCrop--circular-crop":nn&&W,"ReactCrop--rule-of-thirds":nn&&xt,"ReactCrop--invisible-crop":!this.dragStarted&&nn&&!nn.width&&!nn.height});return q().createElement("div",{ref:this.bindComponentRef,className:bt,style:o,onPointerDown:this.onComponentPointerDown,tabIndex:0,onKeyDown:this.onComponentKeyDown,onKeyUp:this.onComponentKeyUp},q().createElement("div",{ref:this.bindMediaWrapperRef},dt||q().createElement("img",{ref:this.bindImageRef,crossOrigin:_t,className:"ReactCrop__image",style:Gn,src:Vn,onLoad:this.onImageLoad,onError:Pt,alt:It})),Ze,fe)}}])&&M(He.prototype,ye),$e}(te.PureComponent);yt.xOrds=["e","w"],yt.yOrds=["n","s"],yt.xyOrds=["nw","ne","se","sw"],yt.nudgeStep=1,yt.nudgeStepMedium=10,yt.nudgeStepLarge=100,yt.defaultCrop={x:0,y:0,width:0,height:0,unit:"px"},yt.propTypes={className:B().string,children:B().oneOfType([B().arrayOf(B().node),B().node]),circularCrop:B().bool,crop:B().shape({aspect:B().number,x:B().number,y:B().number,width:B().number,height:B().number,unit:B().oneOf(["px","%"])}),crossorigin:B().string,disabled:B().bool,locked:B().bool,imageAlt:B().string,imageStyle:B().shape({}),keepSelection:B().bool,minWidth:B().number,minHeight:B().number,maxWidth:B().number,maxHeight:B().number,onChange:B().func.isRequired,onImageError:B().func,onComplete:B().func,onImageLoaded:B().func,onDragStart:B().func,onDragEnd:B().func,src:B().string.isRequired,style:B().shape({}),renderComponent:B().node,renderSelectionAddon:B().func,ruleOfThirds:B().bool},yt.defaultProps={circularCrop:!1,className:void 0,crop:void 0,crossorigin:void 0,disabled:!1,locked:!1,imageAlt:"",maxWidth:void 0,maxHeight:void 0,minWidth:0,minHeight:0,keepSelection:!1,onComplete:function(){},onImageError:function(){},onImageLoaded:function(){},onDragStart:function(){},onDragEnd:function(){},children:void 0,style:void 0,renderComponent:void 0,imageStyle:void 0,renderSelectionAddon:void 0,ruleOfThirds:!1}})(),T})()})},95975:Qn=>{function qe(T){return T?typeof T=="string"?T:T.source:null}function s(T){return I("(?=",T,")")}function r(T){return I("(",T,")?")}function I(){for(var T=arguments.length,te=new Array(T),q=0;q<T;q++)te[q]=arguments[q];return te.map(B=>qe(B)).join("")}function J(){for(var T=arguments.length,te=new Array(T),q=0;q<T;q++)te[q]=arguments[q];return"("+te.map(B=>qe(B)).join("|")+")"}function N(T){const te=I(/[A-Z_]/,r(/[A-Z0-9_.-]*:/),/[A-Z0-9_.-]*/),q=/[A-Za-z0-9._:-]+/,ne={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},B={begin:/\s/,contains:[{className:"meta-keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},l=T.inherit(B,{begin:/\(/,end:/\)/}),U=T.inherit(T.APOS_STRING_MODE,{className:"meta-string"}),C=T.inherit(T.QUOTE_STRING_MODE,{className:"meta-string"}),M={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:q,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[ne]},{begin:/'/,end:/'/,contains:[ne]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,relevance:10,contains:[B,C,U,l,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[B,l,C,U]}]}]},T.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},ne,{className:"meta",begin:/<\?xml/,end:/\?>/,relevance:10},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[M],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[M],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:I(/</,s(I(te,J(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:te,relevance:0,starts:M}]},{className:"tag",begin:I(/<\//,s(I(te,/>/))),contains:[{className:"name",begin:te,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}Qn.exports=N},96163:(Qn,qe,s)=>{"use strict";s.d(qe,{A:()=>M});var r=s(38502),I=Object.defineProperty,J=Object.defineProperties,N=Object.getOwnPropertyDescriptors,T=Object.getOwnPropertySymbols,te=Object.prototype.hasOwnProperty,q=Object.prototype.propertyIsEnumerable,ne=(w,y,j)=>y in w?I(w,y,{enumerable:!0,configurable:!0,writable:!0,value:j}):w[y]=j,B=(w,y)=>{for(var j in y||(y={}))te.call(y,j)&&ne(w,j,y[j]);if(T)for(var j of T(y))q.call(y,j)&&ne(w,j,y[j]);return w},l=(w,y)=>J(w,N(y)),U=(w,y)=>{var j={};for(var Q in w)te.call(w,Q)&&y.indexOf(Q)<0&&(j[Q]=w[Q]);if(w!=null&&T)for(var Q of T(w))y.indexOf(Q)<0&&q.call(w,Q)&&(j[Q]=w[Q]);return j},M=(0,r.forwardRef)((w,y)=>{var j=w,{size:Q,spin:ze,style:me}=j,Se=U(j,["size","spin","style"]);const Me=B(B({width:Q||"var(--x-icon-size, 1em)",height:Q||"var(--x-icon-size, 1em)",animation:ze?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),me);return r.createElement("svg",l(B({ref:y,style:Me},Se),{width:"12",height:"10",viewBox:"0 0 12 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),r.createElement("path",{d:"M12 5C12 2.23858 9.76142 0 7 0H5C2.23858 0 0 2.23858 0 5C0 7.76142 2.23858 10 5 10H7C9.76142 10 12 7.76142 12 5Z",fill:"url(#paint0_linear_941_75)"}),r.createElement("path",{d:"M12 5C12 2.23858 9.76142 0 7 0H5C2.23858 0 0 2.23858 0 5C0 7.76142 2.23858 10 5 10H7C9.76142 10 12 7.76142 12 5Z",fill:"url(#paint1_linear_941_75)",fillOpacity:"0.68"}),r.createElement("path",{d:"M12 5C12 2.23858 9.76142 0 7 0H5C2.23858 0 0 2.23858 0 5C0 7.76142 2.23858 10 5 10H7C9.76142 10 12 7.76142 12 5Z",fill:"url(#paint2_linear_941_75)",fillOpacity:"0.7"}),r.createElement("g",{filter:"url(#filter0_d_941_75)"},r.createElement("path",{d:"M7.9487 7.625H4.5513C4.083 7.625 3.67742 7.30001 3.57535 6.84296L2.99351 4.23773C2.89935 3.8161 3.34817 3.48155 3.72534 3.69225L4.10411 3.90384C4.32873 4.02932 4.6119 3.96386 4.75865 3.75252L5.82859 2.21172C6.02658 1.92661 6.44771 1.92502 6.64783 2.20864L7.74053 3.75726C7.88803 3.96631 8.16955 4.03028 8.39291 3.9055L8.77466 3.69225C9.15183 3.48155 9.60066 3.8161 9.50649 4.23773L8.92465 6.84296C8.82258 7.30001 8.417 7.625 7.9487 7.625Z",fill:"white"})),r.createElement("mask",{id:"mask0_941_75",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"2",y:"1",width:"8",height:"7"},r.createElement("path",{d:"M7.9487 7.625H4.5513C4.083 7.625 3.67742 7.30001 3.57535 6.84296L2.99351 4.23773C2.89935 3.8161 3.34817 3.48155 3.72534 3.69225L4.10411 3.90384C4.32873 4.02932 4.6119 3.96386 4.75865 3.75252L5.82859 2.21172C6.02658 1.92661 6.44771 1.92502 6.64783 2.20864L7.74053 3.75726C7.88803 3.96631 8.16955 4.03028 8.39291 3.9055L8.77466 3.69225C9.15183 3.48155 9.60066 3.8161 9.50649 4.23773L8.92465 6.84296C8.82258 7.30001 8.417 7.625 7.9487 7.625Z",fill:"white"})),r.createElement("g",{mask:"url(#mask0_941_75)"},r.createElement("path",{d:"M7.25 7.62511V5.12506L6.43054 2.25701C6.43054 2.25701 6.28336 1.91172 5.89453 1.87109C5.61401 1.84179 5.10547 1.79297 5.10547 1.79297C4.55859 1.60547 4.30469 1.44922 3.25 1.125L1.75 2.6251L3.25035 7.62511H7.25Z",fill:"url(#paint3_linear_941_75)"})),r.createElement("defs",null,r.createElement("filter",{id:"filter0_d_941_75",x:"1.98083",y:"0.996948",width:"8.53833",height:"7.62805",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},r.createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),r.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),r.createElement("feOffset",null),r.createElement("feGaussianBlur",{stdDeviation:"0.5"}),r.createElement("feComposite",{in2:"hardAlpha",operator:"out"}),r.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.47 0"}),r.createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_941_75"}),r.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_941_75",result:"shape"})),r.createElement("linearGradient",{id:"paint0_linear_941_75",x1:"6.54545",y1:"1.59583",x2:"1.09229",y2:"7.30091",gradientUnits:"userSpaceOnUse"},r.createElement("stop",{stopColor:"#4D4840"}),r.createElement("stop",{offset:"1",stopColor:"#747880"})),r.createElement("linearGradient",{id:"paint1_linear_941_75",x1:"11.6786",y1:"10",x2:"8.13035",y2:"9.36952",gradientUnits:"userSpaceOnUse"},r.createElement("stop",{stopColor:"#E47C31"}),r.createElement("stop",{offset:"1",stopColor:"#E47C31",stopOpacity:"0"})),r.createElement("linearGradient",{id:"paint2_linear_941_75",x1:"11.0294",y1:"0.980891",x2:"7.84283",y2:"3.58088",gradientUnits:"userSpaceOnUse"},r.createElement("stop",{stopColor:"#FFF8DF"}),r.createElement("stop",{offset:"1",stopColor:"white",stopOpacity:"0"})),r.createElement("linearGradient",{id:"paint3_linear_941_75",x1:"6.75",y1:"4.125",x2:"6.75",y2:"7.625",gradientUnits:"userSpaceOnUse"},r.createElement("stop",{stopColor:"#FFE485",stopOpacity:"0.6"}),r.createElement("stop",{offset:"1",stopColor:"#FFE485",stopOpacity:"0"}))))})},96986:(Qn,qe,s)=>{"use strict";s.d(qe,{AU:()=>tt,CI:()=>at,Cb:()=>B,EH:()=>q,Li:()=>y,M5:()=>ne,Ou:()=>Se,QV:()=>Q,RF:()=>w,V8:()=>ze,VT:()=>Je,Vr:()=>te,YW:()=>l,ZA:()=>ht,az:()=>me,c1:()=>M,fd:()=>C,nO:()=>U,sI:()=>T,sT:()=>Me,uX:()=>j,ud:()=>De});var r=s(86493),I=s(70933),J=s(16454),N=s(12211);const T=$=>$.comment.isInCommentMode,te=$=>$.comment.allCommentList,q=$=>$.comment.isShowCommentInCanvas,ne=$=>$.comment.isShowCompletedComment,B=$=>$.comment.activeCommentCid,l=$=>$.comment.wigglingCommentCid,U=$=>$.comment.startCommentAnchorPoint,C=$=>$.comment.isCommentDragging,M=$=>$.comment.commentFilterSelected,w=$=>$.comment.emojiToastStyle,y=$=>$.comment.atStyle,j=$=>$.comment.editorRawContentObject,Q=$=>$.comment.editorIsEditing,ze=$=>$.comment.creatingComment,me=$=>$.comment.editingCommentCid,Se=$=>$.comment.editingRecordCid,Me=$=>$.comment.previewCommentCacheTag,De=(0,N.Mz)([me,Se],($,mt)=>$||mt),tt=(0,N.Mz)([te,I.Ur],($,mt)=>{if(!mt)return[];const{cid:yt}=mt;return $.filter(Le=>Le.screenCid===yt)}),at=(0,N.Mz)([te,J.mf],($,mt)=>{const{activePageKey:yt,activeCanvasKey:Le}=mt;return $.filter(ye=>ye.screenCid===yt&&ye.canvasCid===Le)}),ht=(0,N.Mz)([tt,M,ne],($,mt,yt)=>{const{user:Le}=window.MB;return $.filter(He=>{const{status:ye,userInfo:je,comments:ot,message:we}=He;if(ye==="creating")return!1;if(mt==="")return!0;if(mt==="me")return je.cid===Le.cid;if(mt==="@me"){const $e=(0,r.mx)(we),{entityMap:ge={}}=$e;return Object.values(ge).some(W=>W.type==="LINK"&&W.data&&W.data.url.includes(Le.cid))?!0:ot.some(W=>{let an;try{const _t=(0,r.mx)(W.message),{entityMap:nn}=_t;an=Object.values(nn).some(Oe=>Oe.type==="LINK"&&Oe.data&&Oe.data.url.includes(Le.cid))}catch(_t){an=!1}return an})}return!1}).filter(He=>He.status==="checked"?yt:!0)}),Je=(0,N.Mz)([at,M,ne],($,mt,yt)=>{const{user:Le}=window.MB;return $.filter(He=>{const{status:ye,userInfo:je,comments:ot,message:we}=He;if(ye==="creating")return!1;if(mt==="")return!0;if(mt==="me")return je.cid===Le.cid;if(mt==="@me"){const $e=(0,r.mx)(we),{entityMap:ge={}}=$e;return Object.values(ge).some(W=>W.type==="LINK"&&W.data&&W.data.url.includes(Le.cid))?!0:ot.some(W=>{let an;try{const _t=(0,r.mx)(W.message),{entityMap:nn}=_t;an=Object.values(nn).some(Oe=>Oe.type==="LINK"&&Oe.data&&Oe.data.url.includes(Le.cid))}catch(_t){an=!1}return an})}return!1}).filter(He=>He.status==="checked"?yt:!0)})},97109:(Qn,qe,s)=>{"use strict";s.d(qe,{A:()=>Yt});var r=s(18381),I=s(16454),J=s(95549),N=s(38502),T=s(39e3),te=s(53732),q=s.n(te),ne=s(16976),B=s(29372),l=s(12211),U=s(70629),C=s(72214);const M=rt=>{let{scale:An,dispatch:Nt,isFullScreenMode:jt,isSquare:vn,isEmbedV2:Dt,isCommunityComboPreview:$t,theme:kn}=rt;const Kn=()=>{Nt({type:"entry:preview:zoom-in"})},dn=()=>{Nt({type:"entry:preview:zoom-out"})},ft=bn=>{Nt({type:"entry:preview:set:scale",payload:{scale:bn}})},Lt=()=>{Nt({type:"preview:update:state",payload:{hasChangedScaleManually:!1}}),Nt({type:"entry:auto-fit:preview:scale"})};return(0,C.jsx)(U.j,{isReadOnly:!1,isFullScreenMode:jt,scale:An,theme:kn,isEmbedV2Preview:Dt,isCommunityPreview:vn,isCommunityComboPreview:$t,handleZoomIn:Kn,handleZoomOut:dn,handleZoomInitialScale:Lt,handleZoomSpecifiedScale:ft,dispatch:Nt})},w=(0,l.Mz)([I.St,I.Ph,I.ub,I.m5],(rt,An,Nt,jt)=>({scale:rt,isFullScreenMode:An,isCommunityComboPreview:Nt,theme:jt})),y=(0,r.Ng)(rt=>w(rt))(M);var j=s(17307),Q=s(83199),ze=s(93257),me=s(67787);const Se=me.Ay.a.withConfig({displayName:"styles__StyledSimulatorDisplayModeNav",componentId:"sc-1moc13t-0"})(["position:relative;width:32px;height:36px;display:flex;justify-content:center;align-items:center;border:2px solid ",";background:",";transition:all 0.2s ease-out;cursor:pointer;.svg-icon{color:#fff;}"],rt=>rt.theme.color_proto,rt=>rt.theme.color_proto),Me=me.Ay.ul.withConfig({displayName:"styles__StyledSimulatorDisplay",componentId:"sc-1moc13t-1"})(["list-style:none;position:absolute;padding:4px 0;width:108px;top:125px;left:calc(100% + 8px);background:",";box-shadow:0 2px 10px 0 rgba(39,54,78,0.08),0 12px 40px 0 rgba(39,54,78,0.1);border-radius:2px;.option{display:flex;align-items:center;height:32px;padding:0 12px;color:",";transition:all 0.2s ease-out;cursor:pointer;.outside_artboard-icon{width:19px;height:16px;}.option-icon-box{display:flex;align-items:center;justify-content:center;width:22px;height:22px;margin-right:2px;}.svg-icon{transition:all 0.2s ease-out;color:",";}:hover{background:",";color:",";}&.active{background:",";color:",";.svg-icon{color:",";}}}"],rt=>rt.theme.color_bg_white,rt=>rt.theme.color_text_L2,rt=>rt.theme.color_text_L2,rt=>rt.theme.color_btn_secondary_active,rt=>rt.theme.color_proto,rt=>rt.theme.color_bg_canvas,rt=>rt.theme.color_proto,rt=>rt.theme.color_proto);class De extends N.PureComponent{constructor(){var An;super(...arguments),An=this,(0,J.A)(this,"state",{isShowList:!1}),(0,J.A)(this,"OPTION_LIST",[{iconName:"art_board/preview/device",value:"device",label:I18N.pMainContent.prd_device,tooptipTitle:I18N.pMainContent.prd_device_des},{iconName:"art_board/preview/long_page",value:"long_page",label:I18N.pMainContent.prd_page,tooptipTitle:I18N.pMainContent.prd_page_des},{iconName:"art_board/preview/outside_artboard",value:"outside_artboard",label:I18N.pMainContent.prd_prd,tooptipTitle:I18N.pMainContent.prd_prd_des}]),(0,J.A)(this,"handleToggleDisplayMode",Nt=>{Nt.stopPropagation();const{dispatch:jt}=this.props,vn=Nt.currentTarget.dataset.value;jt({type:"entry:preview-setting:update:simulatorType",payload:{simulatorType:vn}})}),(0,J.A)(this,"handleClickModeNav",Nt=>{Nt.stopPropagation(),this.handleToggleShow()}),(0,J.A)(this,"handleToggleShow",function(Nt){Nt===void 0&&(Nt=void 0);const{isShowList:jt}=An.state,vn=Nt===void 0?!jt:Nt;An.setState({isShowList:vn})}),(0,J.A)(this,"handleClickOutSide",Nt=>{let{target:jt}=Nt;const{isShowList:vn}=this.state;vn&&(jt.closest(".modeNav")||jt.closest(".display-mode-list")||this.handleToggleShow(!1))})}render(){const{simulatorType:An,isInspect:Nt,isShowOutsideArtboardNav:jt}=this.props,{OPTION_LIST:vn}=this,{isShowList:Dt}=this.state;return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(Q.A,{content:I18N.imockSharing.preview_mode,direction:"right",children:(0,C.jsx)(Se,{className:"nav modeNav",onClick:this.handleClickModeNav,children:(0,C.jsx)(j.C,{name:"art_board/preview/"+An,className:"mode-icon "+An+"-icon"})})}),Dt&&(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(Me,{className:"display-mode-list",children:vn.map($t=>{const{iconName:kn,value:Kn,label:dn,tooptipTitle:ft}=$t;return Nt&&Kn==="device"||!jt&&Kn==="outside_artboard"?null:(0,C.jsx)(ze.A,{content:ft,direction:"right",distance:8,maxWidth:"230px",children:(0,C.jsxs)("li",{className:q()("option",{active:Kn===An}),"data-value":Kn,onClick:this.handleToggleDisplayMode,children:[(0,C.jsx)("div",{className:"option-icon-box",children:(0,C.jsx)(j.C,{name:kn,className:Kn+"-icon"})}),(0,C.jsx)("p",{children:dn})]})},Kn)})}),(0,C.jsx)(T.A,{target:document,onMouseDown:(0,T.t)(this.handleClickOutSide,{capture:!0})})]})]})}}var tt=s(28322),at=s.n(tt),ht=s(27660),Je=s(47163),$=s(14861);const mt=(0,ht.R)(()=>({"zh-CN":{android:{customize:I18N.pMainContent.customize},web:{desktop:I18N.pMainContent.desktop,smart_tv:I18N.pMainContent.smart_tv},smart_car:{car_play:I18N.pMainContent.car_play},customize:{customize:I18N.pMainContent.customize}},en:{android:{customize:"Customize"}}})),yt={name:"customize"},Le=rt=>{const{device:An,model:Nt}=rt,jt=(0,Je.w)(),vn=$.v2[Nt]||yt;return at()(mt(),[jt,An,Nt],vn.name)},ye=me.Ay.div.withConfig({displayName:"style__StyledSquareOptionList",componentId:"sc-ixn107-0"})(["position:absolute;left:16px;top:16px;.option-list-wrapper{background:#fff;box-shadow:0 2px 6px rgba(39,54,78,0.08);border-radius:2px;pointer-events:auto;width:32px;height:36px;overflow-y:hidden;&.isExpand{height:100%;overflow:unset;}&.shell-wrapper{margin:16px 0 0 0;.svg-icon{width:24px;height:24px;}}}.nav{border-radius:0 0 2px 2px;&:hover{border:2px solid rgb(22,132,252);}.svg-icon{width:24px;height:24px;}& > .svg-icon path{fill:#fff;}}.expand-btn{display:flex;justify-content:center;width:32px;height:20px;margin:4px 0 0 0;background:#fff;box-shadow:0 2px 6px rgba(39,54,78,0.08);border-radius:4px;cursor:pointer;.svg-icon{transition:all 0.2s ease-in-out;&.isExpand{transform:rotate(-180deg);}}}.command-wrapper{height:36px;display:flex;justify-content:center;align-items:center;cursor:pointer;&:first-child{border-radius:2px 2px 0 0;}&:hover{background:#e8e8e8;}&.active{background:#1684fc;.svg-icon path{fill:#fff !important;}}}.wrapper-top{margin-bottom:8px;border-radius:2px;background:",";box-shadow:0 2px 10px 0 rgba(39,54,78,0.08),0 12px 40px 0 rgba(39,54,78,0.1);}.locate{width:12px;height:16px;}.rotate{width:16px;height:16px;}.link{width:11px;height:16px;}.sticky-icon{width:14px;height:16px;}"],rt=>rt.theme.color_bg_white);class je extends N.PureComponent{constructor(){super(...arguments),(0,J.A)(this,"state",{isExpand:!1}),(0,J.A)(this,"handleToggleHighlight",()=>{const{isHighlight:An}=this.props;this.props.dispatch({type:"entry:preview-setting:update:is-highlight",payload:{isHighlight:!An}})}),(0,J.A)(this,"handleToggleStatePanel",()=>{const{dispatch:An,isEmbedV2:Nt,isStatePanelShow:jt}=this.props;Nt&&An({type:"entry:preview-setting:update:is-statePanel-show",payload:{isStatePanelShow:!jt}})}),(0,J.A)(this,"handleToggleSticky",()=>{const{isStickyShow:An}=this.props;this.props.dispatch({type:"entry:preview-setting:update:is-sticky-show",payload:{isStickyShow:!An}})}),(0,J.A)(this,"handleExpandList",()=>{this.setState({isExpand:!this.state.isExpand})}),(0,J.A)(this,"handleToggleShellType",()=>{const{isShowShell:An,dispatch:Nt}=this.props;Nt({type:"entry:preview-setting:update:show:shell",payload:{isShowShell:!An}})})}render(){const{isHighlight:An,isStickyShow:Nt,isStickyAvailable:jt,dispatch:vn,simulatorType:Dt,isShowOutsideArtboardNav:$t,isShowShell:kn,project:Kn,isEmbedV2:dn,isStatePanelShow:ft}=this.props,{isExpand:Lt}=this.state,bn=Dt==="device";return(0,C.jsxs)(ye,{children:[dn&&(0,C.jsx)(Q.A,{content:I18N.pMainContent.statePanel,direction:"right",children:(0,C.jsx)("a",{className:q()("command-wrapper wrapper-top",{active:ft}),onClick:this.handleToggleStatePanel,children:(0,C.jsx)(j.C,{name:"art_board/state",style:{fontSize:"24px"}})})}),(0,C.jsxs)("div",{className:q()("option-list-wrapper",{isExpand:Lt}),children:[(0,C.jsx)(Q.A,{content:I18N.pSquareOptionsList.highlighted,direction:"left",children:(0,C.jsx)("div",{className:q()("command-wrapper",{active:An}),onClick:this.handleToggleHighlight,children:(0,C.jsx)(j.C,{name:"square/preview/link",className:"link"})})}),jt&&(0,C.jsx)(Q.A,{content:I18N.pMainContent.sticky_visible,direction:"left",children:(0,C.jsx)("div",{className:q()("command-wrapper",{active:Nt}),onClick:this.handleToggleSticky,children:(0,C.jsx)(j.C,{name:"square/preview/sticky",className:"sticky-icon"})})}),(0,C.jsx)(De,{isInspect:!1,simulatorType:Dt,isShowOutsideArtboardNav:$t,dispatch:vn})]}),Lt&&bn&&(0,C.jsx)("div",{className:"option-list-wrapper shell-wrapper",children:(0,C.jsx)(Q.A,{content:kn?""+Le(Kn):I18N.pMainContent.hide_border,direction:"right",children:(0,C.jsx)("div",{className:q()("command-wrapper","shell",{active:kn}),onClick:this.handleToggleShellType,children:kn?(0,C.jsx)(j.C,{name:"art_board/shell/open"}):(0,C.jsx)(j.C,{name:"art_board/shell/close"})})})}),(0,C.jsx)("div",{className:"expand-btn",onClick:this.handleExpandList,children:(0,C.jsx)(j.C,{name:"common/triangle-down",className:q()({isExpand:Lt})})})]})}}const ot=(0,r.Ng)(rt=>{const An=rt.container.previewSetting.isHighlight,Nt=rt.container.previewSetting.isStickyShow,jt=rt.container.previewSetting.isStickyAvailable,vn=rt.container.previewSetting.simulatorType,Dt=rt.container.previewSetting.isShowOutsideArtboardNav,$t=rt.container.previewSetting.isShowShell,kn=rt.container.current.rootProject,Kn=rt.container.previewSetting.isStatePanelShow;return{isHighlight:An,isStickyShow:Nt,isStickyAvailable:jt,simulatorType:vn,isShowOutsideArtboardNav:Dt,isShowShell:$t,project:kn,isStatePanelShow:Kn}})(je);var we=s(88849),$e=s(80226),ge=s(42715);const Ze=rt=>!rt.template&&!rt.combo&&["android","ipad","iphone"].includes(rt.device),W=rt=>!!(0,ge.MR)(rt.model),an=rt=>W(rt)?"device":"none",_t=(rt,An,Nt,jt)=>{const vn=nn(rt,An),[Dt,$t]=Nt?[vn.height,vn.width]:[vn.width,vn.height],kn=jt&&rt.platform!=="web"?60:0;return{width:Dt,height:$t+kn}},nn=(rt,An)=>Oe(rt,An)||sn(rt,An),Oe=(rt,An)=>{let{model:Nt}=rt;if(An!=="device")return null;const jt=(0,ge.MR)(Nt);return jt?{...jt}:null},sn=(rt,An)=>{const Nt=An==="none"?0:12,jt=rt.width+Nt*2,vn=rt.height+Nt*2,[Dt,$t]=Ze(rt)?[Math.min(jt,vn),Math.max(jt,vn)]:[jt,vn];return{device:"default",top:Nt,left:Nt,width:Dt,height:$t}};var It=s(53940);const Pt=me.Ay.div.withConfig({displayName:"styles__StyledAppContainer",componentId:"sc-pkjkb4-0"})(["flex:1;overflow:hidden;position:relative;.app-placeholder{min-width:100%;min-height:100%;display:flex;justify-content:center;align-items:center;.app-content{background:black;&.hide-back{background:inherit;}}&.wait-drag{cursor:grab;}}.layout{position:absolute;top:15px;right:180px;}.preview-footer-toolbar{bottom:0;opacity:1;transition:all 0.3s ease-in-out;&.hidden{opacity:0;}}"]);class dt extends N.PureComponent{constructor(){super(...arguments),(0,J.A)(this,"state",{isDraggingCanvas:!1}),(0,J.A)(this,"setElementRef",An=>this.$elem=An),(0,J.A)(this,"handleKeyDown",An=>{const{dispatch:Nt}=this.props,jt=An.target.matches("input")||An.target.matches("textarea");An.keyCode===32&&!jt&&(An.preventDefault(),Nt({type:"preview:set:key:flags",payload:{isSpaceDown:!0}})),An.keyCode===16&&!jt&&(An.preventDefault(),Nt({type:"preview:set:key:flags",payload:{isShiftDown:!0}}))}),(0,J.A)(this,"handleKeyUp",()=>{this.props.dispatch({type:"preview:reset:key:flags"})}),(0,J.A)(this,"handleWheel",An=>{const{scale:Nt,dispatch:jt,canvasOffset:{x:vn,y:Dt},isPreviewCombo:$t}=this.props;if(An.preventDefault(),$t)return;const kn=Math.max(-1,Math.min(An.deltaY,1));if(An.ctrlKey||An.metaKey){const{top:Kn,left:dn,right:ft,bottom:Lt}=this.$elem.getBoundingClientRect(),bn=(dn+ft)/2,Yn=(Kn+Lt)/2;let on=Nt<=100?Nt-kn*5:Nt-Nt*kn*.05;const yn=An.pageX-bn,lo=An.pageY-Yn;on=Math.min(Math.max(on,It.sI),It.sH);const qn=on/Nt;if(qn===1)return;const Wn=yn+qn*(vn-yn),Nn=lo+qn*(Dt-lo),xn={x:Wn,y:Nn};jt({type:"entry:preview:set:scale",payload:{scale:on}}),jt({type:"preview:set:canvas:offset",payload:{offset:xn}})}else jt({type:"preview:set:canvas:offset",payload:{offset:{x:vn-An.deltaX,y:Dt-An.deltaY}}})}),(0,J.A)(this,"handleMouseDown",An=>{const{isSpaceDown:Nt}=this.props;An.button===1||An.button===2?this.initDraggingCanvas(An):Nt&&this.initDraggingCanvas(An)})}componentDidMount(){this.$elem.addEventListener("wheel",this.handleWheel,{passive:!1}),this.$elem.addEventListener("mousedown",this.handleMouseDown,{passive:!1})}componentWillUnmount(){this.$elem.removeEventListener("wheel",this.handleWheel,{passive:!1}),this.$elem.removeEventListener("mouseDown",this.handleMouseDown,{passive:!1})}initDraggingCanvas(An){const Nt=An.clientX,jt=An.clientY,{canvasOffset:{x:vn,y:Dt},dispatch:$t}=this.props;this.setState({isDraggingCanvas:!0});const kn=dn=>{const ft={x:vn+(dn.clientX-Nt),y:Dt+(dn.clientY-jt)};$t({type:"preview:set:canvas:offset",payload:{offset:ft}})},Kn=()=>{this.setState({isDraggingCanvas:!1}),document.removeEventListener("mousemove",kn),document.removeEventListener("mouseup",Kn)};document.addEventListener("mousemove",kn),document.addEventListener("mouseup",Kn)}render(){const{scale:An,project:Nt,screen:jt,isShowShell:vn,simulatorType:Dt,previewOptions:$t,isSpaceDown:kn,isFullScreenMode:Kn,isCommunityComboPreview:dn,isPreviewCombo:ft,isHiddenToolBar:Lt,dispatch:bn}=this.props,{isDraggingCanvas:Yn}=this.state,on=An/100,yn=jt.orientation==="landscape",lo=Dt==="device"&&vn?an(Nt):"none",{width:qn,height:Wn}=_t(Nt,lo,yn,$t.isSquare),Nn={width:qn*on,height:Wn*on},{isSquare:xn,isEmbedV2:Ye}=$t,wn=!0,Hn=!(xn||Ye)&&!ft,zn=xn&&Nt.category!=="screen_list"&&Nt.category!=="combo_group"&&!Kn;return(0,C.jsxs)(Pt,{ref:this.setElementRef,children:[(0,C.jsx)("div",{className:q()("app-placeholder",{"wait-drag":kn||Yn}),style:Nn,children:(0,C.jsxs)("div",{className:q()("app-content",!wn&&"hide-back"),children:[(0,C.jsx)(ne.A,{}),(0,C.jsx)(B.d,{})]})}),Hn&&(0,C.jsx)(ot,{isEmbedV2:Ye}),zn&&(0,C.jsx)($e.D,{size:"compact",mode:"device",isShowInspect:!1}),!Ye&&!Kn&&!ft&&(0,C.jsx)(y,{isSquare:xn,isEmbedV2:Ye}),!dn&&!ft&&(0,C.jsx)("div",{onMouseEnter:()=>bn({type:"entry:preview:toggle:isHiddenToolBar",payload:{value:!1}}),onMouseLeave:()=>bn({type:"entry:preview:toggle:isHiddenToolBar",payload:{value:!0,isSetTimeout:!0}}),className:q()("preview-footer-toolbar",{hidden:Lt}),children:(0,C.jsx)(we.A,{})}),(0,C.jsx)(T.A,{target:document,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp})]})}}const Vn=(0,r.Ng)(rt=>{const An=(0,I.St)(rt),Nt=(0,I.Ur)(rt)||{},jt=(0,I.PL)(rt)||{},vn=(0,I.J8)(rt),Dt=(0,I.lB)(rt),$t=(0,I.Mh)(rt),kn=(0,I.bF)(rt),Kn=(0,I.lQ)(rt),dn=(0,I.ER)(rt),ft=(0,I.p$)(rt),Lt=(0,I.Nz)(rt),bn=!(dn.x===Lt.x&&dn.y===Lt.y),Yn=16,{isFullScreenMode:on}=(0,I.ZR)(rt),yn=(0,I.ub)(rt),lo=(0,I.hM)(rt),qn=(0,I.kM)(rt);return{scale:An,screen:Nt,project:jt,screenGlue:vn,simulatorType:Dt,isShowShell:$t,previewOptions:kn,isStickyShow:Kn,canvasOffset:dn,isSpaceDown:ft,isDisplaced:bn,zoomOptionBarRight:Yn,isFullScreenMode:on,isCommunityComboPreview:yn,isPreviewCombo:lo,isHiddenToolBar:qn}})(dt);var o=s(9135),Gn=s(13696),xt=s(601),Ot=s(509),wt=s(9338),Kt=s(58053),fe=s(7198),bt=s(3149),un=s(12583),gt=s(82738),Wt=s(33236);const Un=me.Ay.div.withConfig({displayName:"styles__StyledApp",componentId:"sc-vzhfqv-0"})(["width:100%;height:100%;display:flex;flex-direction:",";background:",";"],rt=>rt.isPreviewCombo?"column":"row",rt=>rt.theme.color_bg_canvas);class Jn extends N.PureComponent{constructor(){super(...arguments),(0,J.A)(this,"keyboardManager",new fe.Rr),(0,J.A)(this,"handleFullScreenChange",()=>{Kt.A.isFullscreen||(this.props.dispatch({type:"entry:exit:fill-screen-mode"}),this.props.dispatch({type:"entry:preview-setting:restore:leftrightpane"}))})}preventDefault(An){An.preventDefault()}componentDidMount(){Kt.A.on("change",this.handleFullScreenChange)}componentWillUnmount(){Kt.A.off("change",this.handleFullScreenChange)}render(){const{previewOptions:An,previewSetting:Nt,isCommunityComboPreview:jt,isPreviewCombo:vn,onCloseModal:Dt}=this.props,{isSquare:$t,isEmbedV2:kn}=An,{isFullScreenMode:Kn}=Nt,dn=kn&&Kn||$t&&!jt,ft=kn&&Kn,Lt=kn||$t&&Kn||vn,bn=kn||jt||vn;return(0,C.jsx)(fe.M.Provider,{value:this.keyboardManager,children:(0,C.jsx)(gt.$,{children:(0,C.jsx)(wt.A,{children:(0,C.jsxs)(Un,{onContextMenu:this.preventDefault,isPreviewCombo:vn,children:[Lt&&(0,C.jsx)(o.A,{onCloseModal:Dt}),dn&&(0,C.jsx)(Gn.A,{}),(0,C.jsx)(Vn,{}),ft&&(0,C.jsx)(xt.A,{}),!vn&&(0,C.jsx)(un.Cd,{sheet:$t||kn?bt.r:bt.t}),bn&&(0,C.jsx)(Ot.A,{}),!vn&&(0,C.jsx)(Wt.r,{})]})})})})}}const Yt=(0,r.Ng)(rt=>{const An=(0,I.ZR)(rt),Nt=(0,I.bF)(rt),jt=(0,I.ub)(rt),vn=(0,I.hM)(rt);return{previewOptions:Nt,previewSetting:An,isCommunityComboPreview:jt,isPreviewCombo:vn}})(Jn)},97605:(Qn,qe,s)=>{"use strict";s.d(qe,{Ep:()=>T,Km:()=>N,Qx:()=>te,gE:()=>q});var r=s(14861),I=s(56202),J=s(15170);const N=ne=>{const B=(0,J.y)(ne);return((0,I.cX)()?"mac":(0,I.uF)()?"windows":"other-os")+" "+B+" "+ne},T=ne=>{var B;const l=((B=Object.entries(r.Am).find(U=>{let[C,M]=U;return M.includes(ne)}))==null?void 0:B[0])||"";return(0,J.y)(l)+" "+ne},te=()=>(0,I.cX)()?"mac":(0,I.uF)()?"windows":"other-os",q=(ne,B)=>{const l=ne.orientation,U=T(B);return"mb-screen "+te()+" "+U+" "+l}},97644:(Qn,qe,s)=>{"use strict";s.d(qe,{e:()=>J,l:()=>I});var r=s(67787);/*!
NOTICE: 内含我们的改动, 请勿升级版本
NOTICE: 内含我们的改动, 请勿升级版本
NOTICE: 内含我们的改动, 请勿升级版本
Animate.css - http://daneden.me/animate
Licensed under the MIT license - http://opensource.org/licenses/MIT
Copyright (c) 2015 Daniel Eden
*/const I=(0,r.DU)([".animated{animation-duration:1s;animation-fill-mode:backwards;}.animated.infinite{animation-iteration-count:infinite;}.animated.bounceIn{animation-duration:.75s;}@keyframes bounce{from,20%,53%,80%,to{animation-timing-function:cubic-bezier(0.215,0.610,0.355,1.000);transform:translate3d(0,0,0);}40%,43%{animation-timing-function:cubic-bezier(0.755,0.050,0.855,0.060);transform:translate3d(0,-30px,0);}70%{animation-timing-function:cubic-bezier(0.755,0.050,0.855,0.060);transform:translate3d(0,-15px,0);}90%{transform:translate3d(0,-4px,0);}}.bounce{animation-name:bounce;transform-origin:center bottom;}@keyframes flash{from,50%,to{opacity:1;}25%,75%{opacity:0;}}.flash{animation-name:flash;}@keyframes pulse{from{transform:scale3d(1,1,1);}50%{transform:scale3d(1.05,1.05,1.05);}to{transform:scale3d(1,1,1);}}.pulse{animation-name:pulse;}@keyframes rubberBand{from{transform:scale3d(1,1,1);}30%{transform:scale3d(1.25,0.75,1);}40%{transform:scale3d(0.75,1.25,1);}50%{transform:scale3d(1.15,0.85,1);}65%{transform:scale3d(.95,1.05,1);}75%{transform:scale3d(1.05,.95,1);}to{transform:scale3d(1,1,1);}}.rubberBand{animation-name:rubberBand;}@keyframes shake{from,to{transform:translate3d(0,0,0);}10%,30%,50%,70%,90%{transform:translate3d(-10px,0,0);}20%,40%,60%,80%{transform:translate3d(10px,0,0);}}.shake{animation-name:shake;}@keyframes swing{20%{transform:rotate3d(0,0,1,15deg);}40%{transform:rotate3d(0,0,1,-10deg);}60%{transform:rotate3d(0,0,1,5deg);}80%{transform:rotate3d(0,0,1,-5deg);}to{transform:rotate3d(0,0,1,0deg);}}.swing{transform-origin:top center;animation-name:swing;}@keyframes tada{from{transform:scale3d(1,1,1);}10%,20%{transform:scale3d(.9,.9,.9) rotate3d(0,0,1,-3deg);}30%,50%,70%,90%{transform:scale3d(1.1,1.1,1.1) rotate3d(0,0,1,3deg);}40%,60%,80%{transform:scale3d(1.1,1.1,1.1) rotate3d(0,0,1,-3deg);}to{transform:scale3d(1,1,1);}}.tada{animation-name:tada;}@keyframes wobble{from{transform:none;}15%{transform:translate3d(-25%,0,0) rotate3d(0,0,1,-5deg);}30%{transform:translate3d(20%,0,0) rotate3d(0,0,1,3deg);}45%{transform:translate3d(-15%,0,0) rotate3d(0,0,1,-3deg);}60%{transform:translate3d(10%,0,0) rotate3d(0,0,1,2deg);}75%{transform:translate3d(-5%,0,0) rotate3d(0,0,1,-1deg);}to{transform:none;}}.wobble{animation-name:wobble;}@keyframes jello{from,11.1%,to{transform:none;}22.2%{transform:skewX(-12.5deg) skewY(-12.5deg);}33.3%{transform:skewX(6.25deg) skewY(6.25deg);}44.4%{transform:skewX(-3.125deg) skewY(-3.125deg);}55.5%{transform:skewX(1.5625deg) skewY(1.5625deg);}66.6%{transform:skewX(-0.78125deg) skewY(-0.78125deg);}77.7%{transform:skewX(0.390625deg) skewY(0.390625deg);}88.8%{transform:skewX(-0.1953125deg) skewY(-0.1953125deg);}}.jello{animation-name:jello;transform-origin:center;}@keyframes bounceIn{from,20%,40%,60%,80%,to{animation-timing-function:cubic-bezier(0.215,0.610,0.355,1.000);}0%{opacity:0;transform:scale3d(.3,.3,.3);}20%{transform:scale3d(1.1,1.1,1.1);}40%{transform:scale3d(.9,.9,.9);}60%{opacity:1;transform:scale3d(1.03,1.03,1.03);}80%{transform:scale3d(.97,.97,.97);}to{opacity:1;transform:scale3d(1,1,1);}}.bounceIn{animation-name:bounceIn;}@keyframes bounceInDown{from,60%,75%,90%,to{animation-timing-function:cubic-bezier(0.215,0.610,0.355,1.000);}0%{opacity:0;transform:translate3d(0,-3000px,0);}60%{opacity:1;transform:translate3d(0,25px,0);}75%{transform:translate3d(0,-10px,0);}90%{transform:translate3d(0,5px,0);}to{transform:none;}}.bounceInDown{animation-name:bounceInDown;}@keyframes bounceInLeft{from,60%,75%,90%,to{animation-timing-function:cubic-bezier(0.215,0.610,0.355,1.000);}0%{opacity:0;transform:translate3d(-3000px,0,0);}60%{opacity:1;transform:translate3d(25px,0,0);}75%{transform:translate3d(-10px,0,0);}90%{transform:translate3d(5px,0,0);}to{transform:none;}}.bounceInLeft{animation-name:bounceInLeft;}@keyframes bounceInRight{from,60%,75%,90%,to{animation-timing-function:cubic-bezier(0.215,0.610,0.355,1.000);}from{opacity:0;transform:translate3d(3000px,0,0);}60%{opacity:1;transform:translate3d(-25px,0,0);}75%{transform:translate3d(10px,0,0);}90%{transform:translate3d(-5px,0,0);}to{transform:none;}}.bounceInRight{animation-name:bounceInRight;}@keyframes bounceInUp{from,60%,75%,90%,to{animation-timing-function:cubic-bezier(0.215,0.610,0.355,1.000);}from{opacity:0;transform:translate3d(0,3000px,0);}60%{opacity:1;transform:translate3d(0,-20px,0);}75%{transform:translate3d(0,10px,0);}90%{transform:translate3d(0,-5px,0);}to{transform:translate3d(0,0,0);}}.bounceInUp{animation-name:bounceInUp;}@keyframes fadeIn{from{opacity:0;}to{opacity:1;}}.fadeIn{animation-name:fadeIn;}@keyframes fadeOut{from{opacity:1;}to{opacity:0;}}.fadeOut{animation-name:fadeOut;}@keyframes flipInX{from{transform:perspective(400px) rotate3d(1,0,0,90deg);animation-timing-function:ease-in;opacity:0;}40%{transform:perspective(400px) rotate3d(1,0,0,-20deg);animation-timing-function:ease-in;}60%{transform:perspective(400px) rotate3d(1,0,0,10deg);opacity:1;}80%{transform:perspective(400px) rotate3d(1,0,0,-5deg);}to{transform:perspective(400px);}}.flipInX{backface-visibility:visible !important;animation-name:flipInX;}@keyframes flipInY{from{transform:perspective(400px) rotate3d(0,1,0,90deg);animation-timing-function:ease-in;opacity:0;}40%{transform:perspective(400px) rotate3d(0,1,0,-20deg);animation-timing-function:ease-in;}60%{transform:perspective(400px) rotate3d(0,1,0,10deg);opacity:1;}80%{transform:perspective(400px) rotate3d(0,1,0,-5deg);}to{transform:perspective(400px);}}.flipInY{backface-visibility:visible !important;animation-name:flipInY;}@keyframes spinning{0%{transform:rotate(0deg);}100%{transform:rotate(359deg);}}@keyframes spinning-reverse{0%{transform:rotate(359deg);}100%{transform:rotate(0deg);}}.spinning{animation-name:spinning;animation-timing-function:linear;}.spinning-reverse{animation-name:spinning-reverse;animation-timing-function:linear;}@keyframes rotateIn{from{transform-origin:center;transform:rotate3d(0,0,1,-200deg);opacity:0;}to{transform-origin:center;transform:none;opacity:1;}}.rotateIn{animation-name:rotateIn;}@keyframes rotateInDownLeft{from{transform-origin:left bottom;transform:rotate3d(0,0,1,-45deg);opacity:0;}to{transform-origin:left bottom;transform:none;opacity:1;}}.rotateInDownLeft{animation-name:rotateInDownLeft;}@keyframes rotateInDownRight{from{transform-origin:right bottom;transform:rotate3d(0,0,1,45deg);opacity:0;}to{transform-origin:right bottom;transform:none;opacity:1;}}.rotateInDownRight{animation-name:rotateInDownRight;}@keyframes rotateInUpLeft{from{transform-origin:left bottom;transform:rotate3d(0,0,1,45deg);opacity:0;}to{transform-origin:left bottom;transform:none;opacity:1;}}.rotateInUpLeft{animation-name:rotateInUpLeft;}@keyframes rotateInUpRight{from{transform-origin:right bottom;transform:rotate3d(0,0,1,-90deg);opacity:0;}to{transform-origin:right bottom;transform:none;opacity:1;}}.rotateInUpRight{animation-name:rotateInUpRight;}@keyframes rollIn{from{opacity:0;transform:translate3d(-100%,0,0) rotate3d(0,0,1,-120deg);}to{opacity:1;transform:none;}}.rollIn{animation-name:rollIn;}@keyframes zoomIn{from{opacity:0;transform:scale3d(.3,.3,.3);}50%{opacity:1;}}.zoomIn{animation-name:zoomIn;}@keyframes zoomInDown{from{opacity:0;transform:scale3d(.1,.1,.1) translate3d(0,-1000px,0);animation-timing-function:cubic-bezier(0.550,0.055,0.675,0.190);}60%{opacity:1;transform:scale3d(.475,.475,.475) translate3d(0,60px,0);animation-timing-function:cubic-bezier(0.175,0.885,0.320,1);}}.zoomInDown{animation-name:zoomInDown;}@keyframes zoomInLeft{from{opacity:0;transform:scale3d(.1,.1,.1) translate3d(-1000px,0,0);animation-timing-function:cubic-bezier(0.550,0.055,0.675,0.190);}60%{opacity:1;transform:scale3d(.475,.475,.475) translate3d(10px,0,0);animation-timing-function:cubic-bezier(0.175,0.885,0.320,1);}}.zoomInLeft{animation-name:zoomInLeft;}@keyframes zoomInRight{from{opacity:0;transform:scale3d(.1,.1,.1) translate3d(1000px,0,0);animation-timing-function:cubic-bezier(0.550,0.055,0.675,0.190);}60%{opacity:1;transform:scale3d(.475,.475,.475) translate3d(-10px,0,0);animation-timing-function:cubic-bezier(0.175,0.885,0.320,1);}}.zoomInRight{animation-name:zoomInRight;}@keyframes zoomInUp{from{opacity:0;transform:scale3d(.1,.1,.1) translate3d(0,1000px,0);animation-timing-function:cubic-bezier(0.550,0.055,0.675,0.190);}60%{opacity:1;transform:scale3d(.475,.475,.475) translate3d(0,-60px,0);animation-timing-function:cubic-bezier(0.175,0.885,0.320,1);}}.zoomInUp{animation-name:zoomInUp;}@keyframes slideInDown{from{transform:translate3d(0,-100%,0);visibility:visible;}to{transform:translate3d(0,0,0);}}.slideInDown{animation-name:slideInDown;}@keyframes slideInLeft{from{transform:translate3d(-100%,0,0);visibility:visible;}to{transform:translate3d(0,0,0);}}.slideInLeft{animation-name:slideInLeft;}@keyframes slideInRight{from{transform:translate3d(100%,0,0);visibility:visible;}to{transform:translate3d(0,0,0);}}.slideInRight{animation-name:slideInRight;}@keyframes slideInUp{from{transform:translate3d(0,100%,0);visibility:visible;}to{transform:translate3d(0,0,0);}}.slideInUp{animation-name:slideInUp;}@keyframes lightSpeedIn{from{transform:translate3d(100%,0,0) skewX(-30deg);opacity:0;}60%{transform:skewX(20deg);opacity:1;}80%{transform:skewX(-5deg);opacity:1;}to{transform:none;opacity:1;}}.lightSpeedIn{animation-name:lightSpeedIn;animation-timing-function:ease-out;}@keyframes shakeY{from,to{transform:translate3d(0,0,0);}10%,30%,50%,70%,90%{transform:translate3d(0,-10px,0);}20%,40%,60%,80%{transform:translate3d(0,10px,0);}}.shakeY{animation-name:shakeY;}@keyframes headShake{0%{transform:translateX(0);}6.5%{transform:translateX(-6px) rotateY(-9deg);}18.5%{transform:translateX(5px) rotateY(7deg);}31.5%{transform:translateX(-3px) rotateY(-5deg);}43.5%{transform:translateX(2px) rotateY(3deg);}50%{transform:translateX(0);}}.headShake{animation-name:headShake;animation-timing-function:ease-in-out;}@keyframes heartBeat{0%{transform:scale(1);}14%{transform:scale(1.3);}28%{transform:scale(1);}42%{transform:scale(1.3);}70%{transform:scale(1);}}.heartBeat{animation-name:heartBeat;animation-timing-function:ease-in-out;}@keyframes zoomOut{from{opacity:1;}50%{opacity:0;transform:scale3d(0.3,0.3,0.3);}to{opacity:0;}}.zoomOut{animation-name:zoomOut;}@keyframes zoomOutDown{40%{opacity:1;transform:scale3d(0.475,0.475,0.475) translate3d(0,-60px,0);animation-timing-function:cubic-bezier(0.55,0.055,0.675,0.19);}to{opacity:0;transform:scale3d(0.1,0.1,0.1) translate3d(0,2000px,0);animation-timing-function:cubic-bezier(0.175,0.885,0.32,1);}}.zoomOutDown{animation-name:zoomOutDown;transform-origin:center bottom;}@keyframes zoomOutLeft{40%{opacity:1;transform:scale3d(0.475,0.475,0.475) translate3d(42px,0,0);}to{opacity:0;transform:scale(0.1) translate3d(-2000px,0,0);}}.zoomOutLeft{animation-name:zoomOutLeft;transform-origin:left center;}@keyframes zoomOutRight{40%{opacity:1;transform:scale3d(0.475,0.475,0.475) translate3d(-42px,0,0);}to{opacity:0;transform:scale(0.1) translate3d(2000px,0,0);}}.zoomOutRight{animation-name:zoomOutRight;transform-origin:right center;}@keyframes zoomOutUp{40%{opacity:1;transform:scale3d(0.475,0.475,0.475) translate3d(0,60px,0);animation-timing-function:cubic-bezier(0.55,0.055,0.675,0.19);}to{opacity:0;transform:scale3d(0.1,0.1,0.1) translate3d(0,-2000px,0);animation-timing-function:cubic-bezier(0.175,0.885,0.32,1);}}.zoomOutUp{animation-name:zoomOutUp;transform-origin:center bottom;}@keyframes slideOutDown{from{transform:translate3d(0,0,0);}to{visibility:hidden;transform:translate3d(0,100%,0);}}.slideOutDown{animation-name:slideOutDown;}@keyframes slideOutLeft{from{transform:translate3d(0,0,0);}to{visibility:hidden;transform:translate3d(-100%,0,0);}}.slideOutLeft{animation-name:slideOutLeft;}@keyframes slideOutRight{from{transform:translate3d(0,0,0);}to{visibility:hidden;transform:translate3d(100%,0,0);}}.slideOutRight{animation-name:slideOutRight;}@keyframes slideOutUp{from{transform:translate3d(0,0,0);}to{visibility:hidden;transform:translate3d(0,-100%,0);}}.slideOutUp{animation-name:slideOutUp;}@keyframes rollOut{from{opacity:1;}to{opacity:0;transform:translate3d(100%,0,0) rotate3d(0,0,1,120deg);}}.rollOut{animation-name:rollOut;}@keyframes jackInTheBox{from{opacity:0;transform:scale(0.1) rotate(30deg);transform-origin:center bottom;}50%{transform:rotate(-10deg);}70%{transform:rotate(3deg);}to{opacity:1;transform:scale(1);}}.jackInTheBox{animation-name:jackInTheBox;}@keyframes lightSpeedInLeft{from{transform:translate3d(-100%,0,0) skewX(30deg);opacity:0;}60%{transform:skewX(-20deg);opacity:1;}80%{transform:skewX(5deg);}to{transform:translate3d(0,0,0);}}.lightSpeedInLeft{animation-name:lightSpeedInLeft;animation-timing-function:ease-out;}@keyframes lightSpeedOutRight{from{opacity:1;}to{transform:translate3d(100%,0,0) skewX(30deg);opacity:0;}}.lightSpeedOutRight{animation-name:lightSpeedOutRight;animation-timing-function:ease-in;}@keyframes lightSpeedOutLeft{from{opacity:1;}to{transform:translate3d(-100%,0,0) skewX(-30deg);opacity:0;}}.lightSpeedOutLeft{animation-name:lightSpeedOutLeft;animation-timing-function:ease-in;}@keyframes vanishIn{0%{opacity:0;transform-origin:50% 50%;transform:scale(2,2);filter:blur(90px);}100%{opacity:1;transform-origin:50% 50%;transform:scale(1,1);filter:blur(0px);}}.vanishIn{animation-name:vanishIn;}@keyframes boingInUp{0%{opacity:0;transform-origin:50% 0%;transform:perspective(800px) rotateX(-90deg);}50%{opacity:1;transform-origin:50% 0%;transform:perspective(800px) rotateX(50deg);}100%{opacity:1;transform-origin:50% 0%;transform:perspective(800px) rotateX(0deg);}}.boingInUp{animation-name:boingInUp;}@keyframes fadeInDown{from{opacity:0;transform:translate3d(0,-100%,0);}to{opacity:1;transform:translate3d(0,0,0);}}.fadeInDown{animation-name:fadeInDown;}@keyframes fadeInDownBig{from{opacity:0;transform:translate3d(0,-2000px,0);}to{opacity:1;transform:translate3d(0,0,0);}}.fadeInDownBig{animation-name:fadeInDownBig;}@keyframes fadeInLeft{from{opacity:0;transform:translate3d(-100%,0,0);}to{opacity:1;transform:translate3d(0,0,0);}}.fadeInLeft{animation-name:fadeInLeft;}@keyframes fadeInLeftBig{from{opacity:0;transform:translate3d(-2000px,0,0);}to{opacity:1;transform:translate3d(0,0,0);}}.fadeInLeftBig{animation-name:fadeInLeftBig;}@keyframes fadeInRight{from{opacity:0;transform:translate3d(100%,0,0);}to{opacity:1;transform:translate3d(0,0,0);}}.fadeInRight{animation-name:fadeInRight;}@keyframes fadeInRightBig{from{opacity:0;transform:translate3d(2000px,0,0);}to{opacity:1;transform:translate3d(0,0,0);}}.fadeInRightBig{animation-name:fadeInRightBig;}@keyframes fadeInUp{from{opacity:0;transform:translate3d(0,100%,0);}to{opacity:1;transform:translate3d(0,0,0);}}.fadeInUp{animation-name:fadeInUp;}@keyframes fadeInUpBig{from{opacity:0;transform:translate3d(0,2000px,0);}to{opacity:1;transform:translate3d(0,0,0);}}.fadeInUpBig{animation-name:fadeInUpBig;}@keyframes flip{from{transform:perspective(400px) scale3d(1,1,1) translate3d(0,0,0) rotate3d(0,1,0,-360deg);animation-timing-function:ease-out;}40%{transform:perspective(400px) scale3d(1,1,1) translate3d(0,0,150px) rotate3d(0,1,0,-190deg);animation-timing-function:ease-out;}50%{transform:perspective(400px) scale3d(1,1,1) translate3d(0,0,150px) rotate3d(0,1,0,-170deg);animation-timing-function:ease-in;}80%{transform:perspective(400px) scale3d(0.95,0.95,0.95) translate3d(0,0,0) rotate3d(0,1,0,0deg);animation-timing-function:ease-in;}to{transform:perspective(400px) scale3d(1,1,1) translate3d(0,0,0) rotate3d(0,1,0,0deg);animation-timing-function:ease-in;}}.flip{animation-name:flip;}@keyframes vibrate{0%{transform:translate(0);}20%{transform:translate(-2px,2px);}40%{transform:translate(-2px,-2px);}60%{transform:translate(2px,2px);}80%{transform:translate(2px,-2px);}100%{transform:translate(0);}}.vibrate{animation-name:vibrate;animation-timing-function:linear;}@keyframes wobbleHorBottom{0%,100%{transform:translateX(0%);transform-origin:50% 50%;}15%{transform:translateX(-30px) rotate(-6deg);}30%{transform:translateX(15px) rotate(6deg);}45%{transform:translateX(-15px) rotate(-3.6deg);}60%{transform:translateX(9px) rotate(2.4deg);}75%{transform:translateX(-6px) rotate(-1.2deg);}}.wobbleHorBottom{animation-name:wobbleHorBottom;}@keyframes wobbleHorTop{0%,100%{transform:translateX(0%);transform-origin:50% 50%;}15%{transform:translateX(-30px) rotate(6deg);}30%{transform:translateX(15px) rotate(-6deg);}45%{transform:translateX(-15px) rotate(3.6deg);}60%{transform:translateX(9px) rotate(-2.4deg);}75%{transform:translateX(-6px) rotate(1.2deg);}}.wobbleHorTop{animation-name:wobbleHorTop;}"]),J=(0,r.AH)(['--duration:5s;--easing:linear;--c-color-1:#61acff;--c-color-2:#0058f7;--c-color-3:#1684FC;--c-color-4:#88eafe;@keyframes circle-1{33%{transform:translate(0px,10px);}66%{transform:translate(5px,42px);}}@keyframes circle-2{33%{transform:translate(34px,-6px);}66%{transform:translate(30px,-32px);}}@keyframes circle-3{33%{transform:translate(8px,8px);}66%{transform:translate(5px,2px);}}@keyframes circle-4{33%{transform:translate(32px,-8px);}66%{transform:translate(49px,-5px);}}@keyframes circle-5{33%{transform:translate(36px,18px);}66%{transform:translate(16px,-20px);}}@keyframes circle-6{33%{transform:translate(12px,-10px);}66%{transform:translate(32px,-36px);}}@keyframes circle-7{33%{transform:translate(3px,18px);}66%{transform:translate(8px,-40px);}}@keyframes circle-8{33%{transform:translate(8px,-2px);}66%{transform:translate(24px,-12px);}}@keyframes circle-9{33%{transform:translate(8px,-8px);}66%{transform:translate(34px,-5px);}}@keyframes circle-10{33%{transform:translate(28px,12px);}66%{transform:translate(42px,18px);}}@keyframes circle-11{33%{transform:translate(2px,3px);}66%{transform:translate(28px,12px);}}@keyframes circle-12{33%{transform:translate(24px,0px);}66%{transform:translate(26px,-21px);}}@keyframes opacity{100%{opacity:0;}}position:relative;overflow:hidden;&:before{content:"";pointer-events:none;position:absolute;z-index:1;left:0;top:0;right:0;bottom:0;border-radius:6px;}span{z-index:2;}.circle{position:absolute;left:0;top:0;width:16px;height:20px;border-radius:50%;filter:blur(var(--blur,6px));background:var(--background,transparent);transform:translate(var(--x,0),var(--y,0));animation:var(--animation,none) var(--duration) var(--easing) infinite;}.circle.circle-1,.circle.circle-9,.circle.circle-10{--background:var(--c-color-4);}.circle.circle-3,.circle.circle-4{--background:var(--c-color-2);--blur:5px;}.circle.circle-5,.circle.circle-6{--background:var(--c-color-3);}.circle.circle-2,.circle.circle-7,.circle.circle-8,.circle.circle-11,.circle.circle-12{--background:var(--c-color-1);}.circle.circle-1{--x:0;--y:-20px;--animation:circle-1;}.circle.circle-2{--x:40px;--y:5px;--animation:circle-2;}.circle.circle-3{--x:-6px;--y:-9px;--animation:circle-3;}.circle.circle-4{--x:40px;--y:-8px;--animation:circle-4;}.circle.circle-5{--x:5px;--y:-3px;--animation:circle-5;}.circle.circle-6{--x:24px;--y:10px;--animation:circle-6;}.circle.circle-7{--x:0px;--y:10px;--animation:circle-7;}.circle.circle-8{--x:18px;--y:-3px;--animation:circle-8;}.circle.circle-9{--x:0px;--y:-5px;--animation:circle-9;}.circle.circle-10{--x:20px;--y:6px;--animation:circle-10;}.circle.circle-11{--x:-8px;--y:-9px;--animation:circle-11;}.circle.circle-12{--blur:8px;--x:22px;--y:10px;--animation:circle-12;}.animation-list.is-hidding{animation:opacity var(--duration) var(--easing) forwards;}'])},98033:(Qn,qe,s)=>{"use strict";s.d(qe,{Z:()=>r,n:()=>I});const r=function(J){let{flags:N}=J===void 0?MB.user:J;return!!(N&1<<21)},I=J=>{let{user:N,org:T}=J;const te=(T==null?void 0:T.otype)==="personal"?null:T;return{currentUser:N,currentOrg:te}}},98226:(Qn,qe,s)=>{"use strict";Qn.exports=s(67487)},98267:(Qn,qe,s)=>{"use strict";s.d(qe,{$8:()=>U,AT:()=>ne,Lf:()=>q,N8:()=>B,NG:()=>te,pE:()=>l});var r=s(20089),I=s(70248),J=s(95106),N=s(76613),T=s(16454);const te=(C,M,w)=>({current:C+"/"+M,from:w}),q=C=>C?C.current.split("/"):[],ne=(C,M,w)=>{if(w||sdkStore.isTrashed(C)||sdkStore.isTrashed(M))return;const y=new URL(location.href),j=y.searchParams.get("view_mode");j===null||["read_only","inspect"].includes(j)||(C&&y.searchParams.set("screen",C),M&&y.searchParams.set("canvasId",M),window.history.replaceState("","",y))},B=function(C,M){M===void 0&&(M=!0);const w=new URL(location.href);w.searchParams.get("view_mode")!==null&&(w.searchParams.set("view_mode",C),["read_only","inspect"].includes(C)&&M&&(w.searchParams.delete("screen"),w.searchParams.delete("canvasId")),window.history.replaceState("","",w))},l=C=>{let{isPanelPreviewMode:M,basketKey:w,canvasKey:y,sharing:j}=C,Q=!0;if(y&&sdkStore.isTrashed(y))return!1;if(M)if(w){const ze=(0,I.OO)(y)?(0,I.QL)(y).pop():y,{key:me,sup:Se,hotAttr:Me}=sdkStore.getHotItem(w);if(Me.bunch===r.x.RbPage&&Se==="B@ref-muban"){const{sub:De}=sdkStore.getHotItem(me);Q=De.includes(ze)}else if(Me.basket==="bMuban"){const{sub:De}=sdkStore.getHotItem(Me.refRBPageKey);Q=De.includes(ze)}else if(Me.basket==="bDanli"){const{sub:De}=sdkStore.getHotItem(Me.refRBPageKey);Q=De.includes(ze)}}else Q=!1;if(y&&j&&j.type==="advanced"&&j.screen_visible_switch){for(const ze of j.screen_visible_list)if(sdkStore.isActiveKey(ze)&&sdkStore.getHotItem(ze).sub.find(me=>me===y))return Q=!0,Q;Q=!1}return Q},U=(C,M)=>{let w=C.targetWidgetKey;if(C.targetWidgetKey===N.rE)w=C.triggerItemKey;else if(C.targetWidgetKey===N.VZ){const y=M.store.getState(),j=(0,T.KR)(y),Q=(0,T.Mo)(y);w=j&&sdkStore.locTopRBActiveKey(Q)==="B@ref-muban"?Q:(0,J.JC)(sdkStore,C.triggerItemKey)}return w}},98481:(Qn,qe,s)=>{"use strict";s.d(qe,{A:()=>ko});var r={};s.r(r),s.d(r,{clearSelectedElementInfo:()=>Lt,clearWithoutStreamingKeyList:()=>bn,openRightPanel:()=>Kn,quitEditAI:()=>dn,selectItems:()=>$t,selectedElementInfo:()=>ft,updateWidget:()=>kn});var I=s(18381),J=s(12211),N=s(70933),T=s(28173),te=s(10472),q=s(96986),ne=s(67588),B=s(95657),l=s(60651),U=s(95549),C=s(38502),M=s(53732),w=s.n(M),y=s(79371),j=s.n(y),Q=s(15186),ze=s(67787),me=s(70422),Se=s(74945),Me=s(77709),De=s(55804),tt=s(69594),at=s(20089),ht=s(4410),Je=s(72214);const $=(0,C.memo)(function(Mo){const{isInAIComponentSnapshotCreateMode:jn,isInCommentMode:xo,isDraggingCanvas:jo,children:Qo,...cn}=Mo,{handMode:In,isInElbowMode:tn,isDraggingRadiusResizer:Jt,isHitVectorPath:Ln,isSpaceDown:Xn,vectorEditor:Dn,isTableDragging:go,currentToolBarHeight:Uo,quickCreateWidgetName:Ho,quickCreateWidget:ua,createTemplatesData:la,quickCreateBuiltinSceneData:To}=(0,I.d4)(mt),Ia=w()("cursor-styled",{"wait-drag":Xn||In,dragging:jo||go,"wait-create-comment":!Xn&&!jo&&xo,"wait-radius-resizer":Jt,["wait-create-"+Ho]:!Xn&&!jo&&!Dn&&Ho,"hit-vector-path":Ln,"in-elbow-mode":!Xn&&tn,"wait-create-ai-component":!Xn&&!jo&&jn,"wait-create-widget":!!ua||!!la||!!To});return(0,Je.jsx)(yt,{...cn,currenttoolbarheight:Uo,className:Ia,children:Qo})}),mt=(0,J.Mz)([N.iv,N.w8,l._W,l.Ro,Se.Q1,N.ZS,l.lY,me.sx,Me.wT,N.wq,N.YY,N.L8],(On,Mo,jn,xo,jo,Qo,cn,In,tn,Jt,Ln,Xn)=>{const Dn=On&&Mo,{isSpaceDown:go}=Qo,Uo=(0,ht.F6)(Jt);return{isDraggingRadiusResizer:Dn,isHitVectorPath:jn,handMode:xo,isInElbowMode:jo,isSpaceDown:go,vectorEditor:cn,isTableDragging:In,currentToolBarHeight:tn,quickCreateWidget:Jt,quickCreateWidgetName:Uo,createTemplatesData:Ln,quickCreateBuiltinSceneData:Xn}}),yt=(0,ze.Ay)(De.A).withConfig({displayName:"CursorStyled__StyledCursor",componentId:"sc-1bxy14q-0"})(["position:fixed;top:","px;left:0;right:0;bottom:0;width:auto;height:auto;overflow:hidden;cursor:",";display:flex;justify-content:center;align-items:center;&.wait-drag{cursor:grab;.tree-node{pointer-events:none !important;}}&.dragging{cursor:grabbing;.tree-node{pointer-events:none !important;}}&.wait-radius-resizer{cursor:",';}&[class*="wait-create"]{cursor:',";&:not(.wait-create-annotate){.tree-node{pointer-events:none !important;.line svg path{pointer-events:none !important;}}}&.wait-create-rich_text{cursor:text;}&.wait-create-comment{cursor:",";}&.wait-create-ai-component{cursor:",";}&.wait-create-","{cursor:",";}&.wait-create-","{cursor:",";}&.wait-create-","{cursor:",";}&.wait-create-","{cursor:",";}&.wait-create-","{cursor:",";}&.wait-create-","{cursor:",";}}&.hit-vector-path{cursor:",";}&.in-elbow-mode{cursor:",";}&.wait-create-widget{cursor:",";}"],On=>On.currenttoolbarheight,tt.M.default,tt.M.radiusResize,tt.M.defaultCreate,tt.M.comment,tt.M.aiComponent,at.x.WRect,tt.M.rectCreate,at.x.WOval,tt.M.circleCreate,at.x.Canvas,tt.M.canvasCreate,at.x.WTear,tt.M.annotate,at.x.WVector,tt.M.vectorCreate,ht.pv.PENCIL,tt.M.pencilCreate,tt.M.vectorPathEdit,tt.M.defaultCreate,tt.M.defaultCreate);var Le=s(39e3),He=s(78915),ye=s(58664),je=s(32286),ot=s(77728);class we extends C.PureComponent{render(){if(!this.props.isShow)return null;const{widget:Mo}=this.props,{y:jn,x:xo,w:jo,h:Qo}=Mo,cn=jn-Qo/2,In=xo-jo/2,tn=jo>0&&Qo>0,Ln=MB.getScale()/100,Xn=Mo.type===at.x.WLine,Dn=Mo.type===at.x.WSticky;return(0,Je.jsxs)($e,{ratio:1/Ln,className:Mo.type,style:{top:cn,left:In,width:jo,height:Qo},children:[Xn&&(0,Je.jsx)(ot.E,{widget:{hotAttr:Mo}}),Dn&&(0,Je.jsx)("div",{className:"fake-sticky",children:(0,Je.jsx)("div",{className:"header"})}),tn&&(0,Je.jsx)("div",{className:"meta-info",children:jo+" \xD7 "+(Xn?1:Qo)})]})}}const $e=ze.Ay.div.withConfig({displayName:"WidgetRect__StyledWidget",componentId:"sc-yhlws3-0"})(["z-index:2;position:absolute;pointer-events:none;overflow:visible !important;&.",",&.","{border:1px solid #bbb;}&.",",&.","{background:white;border:1px solid #bbb;}&.","{background:white;border:1px solid #bbb;border-radius:100%;}&.","{background:",";border:1px solid ","}.fake-sticky{width:100%;height:100%;background:white;border:1px solid rgb(253,209,67);.header{background-color:#FDD143;width:100%;height:20px;padding:0 12px;position:relative;}}&.line{path{stroke:rgba(187,187,187,1);stroke-width:1px;}}&.lr{background:","}.meta-info{position:absolute;padding:2px 4px;color:#fff;background:#454647;top:calc(100% + 10px);left:calc(100% + 10px);border-radius:2px;white-space:nowrap;transform-origin:0 0;transform:","}"],at.x.WRichText,at.x.WImage,at.x.Canvas,at.x.WRect,at.x.WOval,at.x.WLR,On=>On.theme.color_hotspot,On=>On.theme.color_comments,On=>On.theme.color_hotspot,On=>"scale("+On.ratio+")");var ge=s(57479),Ze=s(63763),W=s(93413),an=s(12410),_t=s(70812);class nn extends C.PureComponent{constructor(){super(...arguments),(0,U.A)(this,"handleKeyDown",Mo=>{if(MB.isEditing(Mo)||MB.f.isSelecting||MB.f.isEditTable||Mo.metaKey||Mo.ctrlKey||Mo.altKey)return;const{dispatch:jn,isEditingComment:xo,widget:jo,isDirectlyEditingProjectMain:Qo,currentScreen:cn,vectorEditor:In,swimlaneIsShallowEditing:tn}=this.props;if(tn)return;const Jt=(0,ye.P)(Qo),Ln=Jt.filter(Dn=>Dn.keyCode===Mo.keyCode);let Xn=Ln==null?void 0:Ln[0];if(Ln.length>1&&Mo.shiftKey){const Dn=Ln.find(go=>go==null?void 0:go.shiftKey);Dn&&(Xn=Dn)}if(xo){Mo.key===ge._.Escape&&jn({type:"entry:comment:create:esc"});return}if(Xn){const Dn=(()=>{if(!jo)return null;const Ho=Jt.filter(ua=>(0,ht.xy)(ua)===(0,ht.F6)(jo));if(Ho.length===0)return null;if(Ho.length>1)throw new Error("\u7B5B\u9009\u7ED3\u679C\u4E0D\u552F\u4E00");return Ho[0]})(),go=JSON.stringify(Dn)===JSON.stringify(Xn),Uo=(0,ht.xy)(Xn);if(go){if(Uo===at.x.WElbow)jn({type:"elbow:update",payload:{highlightAnchor:""}});else if(at.Q.ST_MODE_WIDGET_NAMES.includes(Uo))jn({type:"entry:ST:STMode:disable"});else if(Uo===at.x.WVector&&In){jn({type:"entry:vector:exit:edit"});const Ho=(0,Ze.gu)({type:Uo,screen:cn,attrs:{width:0,height:0}});jn({type:"set:quick-create-widget",payload:{widget:Ho}});return}else Uo===ht.pv.PENCIL&&jn({type:"entry:pencil:vector:exit:edit",payload:{isSelectLastCreate:!0}});jn({type:"set:quick-create-widget",payload:{widget:null}})}else{Uo===at.x.Canvas&&jn({type:"right-side-panel:show:panel"}),jn({type:"entry:vector:exit:edit",payload:{isNoGuide:!0}}),jn({type:"entry:pencil:vector:exit:edit"}),at.Q.ST_MODE_WIDGET_NAMES.includes(Uo)?(jn({type:"entry:ST:STMode:enable"}),jn({type:"toolbar:update:state",payload:{isShowSticky:!0}})):jn({type:"entry:ST:STMode:disable"}),jn(He.GO.hoverItem("")),jn({type:"entry:image-view:exit:edit"});const Ho=(0,Ze.gu)({type:Xn.name,screen:cn,attrs:{width:0,height:0,...Xn.attrs}});jn({type:"set:quick-create-widget",payload:{widget:Ho}}),jn(He.GO.toggleHandMode(!1)),(0,je.L)(Xn.shortcut),Uo===at.x.WVector&&(MB.commonGuideHelper.checkGuideToBeShown(W.c.GUIDE_VECTOR_TASK_ENDING_EDITING)&&(MB.commonGuideHelper.markGuideAsRead(W.c.GUIDE_VECTOR_TASK_ENDING_EDITING),MB.commonGuideHelper.closeGuide(W.c.GUIDE_VECTOR_TASK_ENDING_EDITING)),MB.commonGuideHelper.tryToShowGuide(W.c.GUIDE_VECTOR_TASK_QUICK_CREATE)),Uo===ht.pv.PENCIL&&jn({type:"entry:pencil:vector:enter:edit",payload:{source:_t.U4.addShapeToCanvasTrackSourceMap.quickCreate}})}jn({type:"entry:comment:disabled",payload:{noWigglingCommentCid:!0}}),jn({type:"elbow:update",payload:{isInElbowMode:!1}}),Uo!==at.x.WTear&&Uo!==at.x.WSticky&&jn({type:"entry:ST:STMode:disable"})}else jo&&Mo.key===ge._.Escape?((jo.type!==at.x.WVector||!In)&&jn({type:"set:quick-create-widget",payload:{widget:null}}),jn(He.GO.toggleHandMode(!1)),jn({type:"entry:pencil:vector:exit:edit",payload:{isSelectLastCreate:!0}}),jn({type:"entry:comment:disabled",payload:{noWigglingCommentCid:!0}}),jn({type:"entry:ST:STMode:disable"})):Mo.key===ge._.Escape&&(jn(He.GO.toggleHandMode(!1)),jn({type:"entry:pencil:vector:exit:edit",payload:{isSelectLastCreate:!0}}),jn({type:"elbow:update",payload:{isInElbowMode:!1}}))})}render(){const{widget:Mo}=this.props;return(0,Je.jsxs)(C.Fragment,{children:[(0,Je.jsx)(Le.A,{target:document,onKeyDown:this.handleKeyDown}),(0,Je.jsx)(we,{isShow:Mo&&Mo.width>0&&Mo.height>0,widget:Mo})]})}}const Oe=(0,J.Mz)([q.ud,l.lY,an.X.query.getIsShallowEditing,N.wq],(On,Mo,jn,xo)=>({isEditingComment:On,vectorEditor:Mo,swimlaneIsShallowEditing:jn,widget:xo})),sn=(0,I.Ng)(On=>Oe(On))(nn);var It=s(53940),Pt=s(16958);const dt=ze.Ay.div.withConfig({displayName:"styles__StyledScreenContainer",componentId:"sc-hwjgpp-0"})(["position:absolute;inset:0;width:100%;height:100%;&.is-community-combo-preview{.zoom-area{left:-100px;}}.zoom-area{position:relative;#canvas{position:absolute;z-index:1;}}.screen-viewport{position:relative;.zoom-area{position:absolute;top:0;left:0;width:100%;height:100%;transform-origin:center center;}.editing-text-area{pointer-events:none;z-index:1;"," ","}}.screen{position:relative;&::after{content:'';position:absolute;top:0;left:0;right:0;bottom:0;box-shadow:0 1px 2px 0 rgba(0,0,0,0.2);}}.first-page-divider{position:absolute;border-bottom:1px dashed ",";border-right:1px dashed ",";}.canvas-bg-area{position:absolute;top:0;left:0;pointer-events:none;z-index:1;&.shield-corner-events{.slider-wrapper,.resizer{pointer-events:none;}}}.canvas-operation-wrap{pointer-events:auto;}.tree-node{input,label,select,textarea{pointer-events:none;}&.is-dynamic-widget-editing{display:none;}&.is-text-editing{.rich-text:not(.wMTooltip),.text,input,textarea,.line-edit-text-input,.label p{display:none !important;}&.",",&.","{.rich-text:not(.wMTooltip),.text,input,textarea,.line-edit-text-input,.label p{display:block !important;visibility:hidden;opacity:0;pointer-events:none;}}.flow-unclosed p{opacity:0;}}&.read-only-text-can-select{div:not(.aboard-line,.wElbow,.wMFileInput),span,span *,text,p,p *,pre,td,form,select,li,button,textarea,input{cursor:text;user-select:text !important;}text,&.widget.wMTextInput input,&.widget.wNavigationMenu span,&.widget.wTree span,&.widget.wTabs li,&.widget.wSelectionControl span,&.widget.wMobileTabBars span,&.widget.wSegmentedControl button,&.widget.wMTextarea textarea,&.widget.wCollapse span,&.widget.wCollapse div,&.widget.wTable .jexcel_container .jexcel_content table tbody td div.tdDiv{pointer-events:auto !important;}}}"],Pt.H0,Pt.PE,On=>On.theme.color_proto,On=>On.theme.color_proto,at.x.WElbow,at.x.WButton);var Vn=s(36449),o=s(4239),Gn=s(75495);const xt=()=>{const{rect:On}=(0,Gn.v)(),Mo=(0,I.d4)(N.X_);if(!On)return{};const{x:jn,y:xo,w:jo,h:Qo}=On,cn=Mo/100,In=jo*cn,tn=Qo*cn,Jt=jn*cn,Ln=xo*cn;return{width:In,height:tn,left:Jt,top:Ln}},Ot=()=>{let On="";for(let Mo=0;Mo<100;Mo++)On+="\n "+Mo+"% {\n --angle: "+Mo*3.6+"deg\n }\n ";return On},wt=ze.Ay.div.withConfig({displayName:"styles__StyledAIComponentSelectedArea",componentId:"sc-vltazm-0"})(["position:absolute;z-index:2;--angle:0deg;background:conic-gradient(from var(--angle),#EF45FE 0%,#4551FE 33%,#1684FC 66%,#EF45FE 100%);mask:linear-gradient(to right,#000 6px,transparent 6px) repeat-x,linear-gradient(to bottom,#000 6px,transparent 6px) repeat-y,linear-gradient(to right,#000 6px,transparent 6px) repeat-x 0 100%,linear-gradient(to bottom,#000 6px,transparent 6px) repeat-y 100% 0;mask-image:linear-gradient(to right,rgb(0,0,0) 6px,transparent 6px),linear-gradient(rgb(0,0,0) 6px,transparent 6px),linear-gradient(to right,rgb(0,0,0) 6px,transparent 6px),linear-gradient(rgb(0,0,0) 6px,transparent 6px);mask-size:8px 2px,2px 8px,8px 2px,2px 8px;animation:selectedAreaRotate 4s infinite;@keyframes selectedAreaRotate{","}"],Ot()),Kt=()=>{const On=xt();return On?(0,Je.jsx)(wt,{style:On}):null},fe=()=>(0,I.d4)(B.l3)?(0,Je.jsx)(bt,{children:(0,Je.jsx)(Kt,{})}):null,bt=ze.Ay.div.withConfig({displayName:"aiComponent__StyledAIComponent",componentId:"sc-jbeefb-0"})(["position:absolute;"]);var un=s(42520);const gt=On=>(0,Je.jsx)(un.A,{mode:"design",...On}),Wt=(0,J.Mz)([N.X_,N.ER,N.$S,q.Cb,q.YW,q.uX,q.QV,q.Ou,q.fd,q.RF,q.Li,q.V8,q.ZA,l.jx,N.wA,ne.O4],(On,Mo,jn,xo,jo,Qo,cn,In,tn,Jt,Ln,Xn,Dn,go,Uo,Ho)=>({viewport:{offset:Mo,scale:On,viewportRect:jn},activeCommentCid:xo,wigglingCommentCid:jo,editorRawContentObject:Qo,commentIsEditing:cn,editingRecordCid:In,isCommentDragging:tn,emojiToastStyle:Jt,atStyle:Ln,creatingComment:Xn,commentList:Dn,viewType:go,currentOrg:Uo,theme:Ho})),Un=(0,I.Ng)(On=>Wt(On))(gt),Jn=(0,J.Mz)([q.sI,q.EH,l.pH,l.rg,l.uu,l._b],(On,Mo,jn,xo,jo,Qo)=>({isShow:!(jn||xo||jo)&&(On||Mo)&&!Qo})),Yt=On=>{const{isShow:Mo}=On;return Mo?(0,Je.jsx)(Un,{}):null},rt=(0,I.Ng)(On=>Jn(On))(Yt),Nt=()=>{const On=(0,I.d4)(l.jx)===He.qi.OnlyView;return(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(o.t5,{onlyView:On}),(0,Je.jsx)(o.bK,{}),(0,Je.jsx)(o.S1,{}),(0,Je.jsx)(rt,{}),(0,Je.jsx)(fe,{}),(0,Je.jsx)(o.vp,{}),(0,Je.jsx)(o.zE,{}),(0,Je.jsx)(o.HN,{}),(0,Je.jsx)(o.kX,{}),(0,Je.jsx)(o.Mc,{}),(0,Je.jsx)(o.wy,{}),(0,Je.jsx)(o.GM,{})]})};var jt=s(92598),vn=s(97605),Dt=s(57892);const $t=On=>{MB.action("entry:select:items",{cids:On})},kn=On=>{MB.action("entry:widget:change",{flatChgList:On})},Kn=On=>{MB.action("right-side-panel:show:panel"),typeof On=="number"&&MB.action("settings:set:autoTabIndex",{autoTabIndex:On})},dn=On=>{MB.action("entry:aiComponent:quit:edit",{widgetKey:On})},ft=(On,Mo,jn)=>{MB.action("ai-component:update:editingInfoMap",{key:On,editingInfo:{selectedElementList:Mo,selectedElementBounds:jn}})},Lt=On=>{MB.action("ai-component:clear:editingInfo",{key:On})},bn=On=>{MB.action("ai-component:remove:withoutStreamingKey",{key:On})};var Yn=s(25997);const on=(0,J.Mz)([N.PL,N.Ur,l.jI,l.bt,l.pj,l.gm,l.jx,l.Pm,Yn.UV],(On,Mo,jn,xo,jo,Qo,cn,In,tn)=>{const Jt=jo||Qo,Ln=cn===He.qi.OnlyView;return{currentScreen:Mo,editingPanelCid:jn,editingPanelRefPage:xo,isEditingCombo:Jt,onlyView:Ln,device:On==null?void 0:On.device,editingEditableWidgetCid:In,sdkStore:tn,actions:r}}),lo=On=>{let{children:Mo}=On;const jn=(0,I.d4)(on);return(0,C.useEffect)(()=>()=>{on.clearCache()},[]),(0,Je.jsx)(Dt.G.Provider,{value:jn,children:Mo})};var qn=s(52183);const Wn=ze.Ay.div.withConfig({displayName:"CanvasContainer__StyledCanvasContainer",componentId:"sc-1lxribq-0"})([""," &.hidden-sticky{.widget.wSticky,.widget.wTear{display:none !important;}}"],Pt.Jj),Nn=()=>{const On=(0,I.d4)(Me.$7),Mo=(0,I.d4)(Yn.RX),jn=(0,Dt.n)()||{},{onlyView:xo,device:jo,currentScreen:Qo,sdkStore:cn}=jn,In=(0,C.useRef)(cn);(0,C.useEffect)(()=>{const Xn=()=>{var Dn;(Dn=window.getSelection())==null||Dn.removeAllRanges()};return performance.measure("canvasRendered","setupSDK:start"),xo&&document.addEventListener("mousedown",Xn,{capture:!0}),()=>{xo&&document.removeEventListener("mousedown",Xn,{capture:!0})}},[xo]),(0,qn.A)(In);const tn=(0,C.useMemo)(()=>{var Xn;return In.current=cn,!cn||!(Mo!=null&&(Xn=Mo.sub)!=null&&Xn.length)?null:cn.getRenderableSubHotItems(Mo,!0).map(Dn=>(0,Je.jsx)(jt.o,{hotItem:Dn,mode:"design"},Dn.key))},[Mo,cn]);if(!Mo||!jn)return null;const{deviceOrientation:Jt,cid:Ln}=Qo;return Ln!==Mo.key&&console.warn("[RootWiget Not Ready!!]"),(0,Je.jsx)(Wn,{id:"canvas",className:w()((0,vn.gE)({orientation:Jt},jo),{"hidden-sticky":!On}),children:(0,Je.jsx)("div",{className:"group-list",children:tn})})},Ye=()=>(0,Je.jsx)(lo,{children:(0,Je.jsx)(Nn,{})});var wn=s(62532);class Hn extends C.PureComponent{constructor(Mo){super(Mo),(0,U.A)(this,"debounceMouseMove",()=>{var jn;((jn=MB.getWidgetStore())==null?void 0:jn.getTreeSize())>800?this.debouncedMouseMove=j()(this.handleMouseMove,10):this.debouncedMouseMove=this.handleMouseMove}),(0,U.A)(this,"handleMouseDown",jn=>{var xo,jo;(xo=(jo=this.debouncedMouseMove).flush)==null||xo.call(jo),this.props.dispatch({type:"entry:screenContainer:mousedown",payload:{e:jn}})}),(0,U.A)(this,"handleMouseUp",jn=>{const{dispatch:xo,isInCommentMode:jo,isInAIComponentSnapshotCreateMode:Qo}=this.props;jo&&xo({type:"entry:comment:create:mouseup"}),Qo&&xo({type:"entry:aiComponent:create:mouseup",payload:{event:jn}}),xo({type:"ST:update",payload:{isDraggingWTear:!1}}),xo({type:"clear:range:select"}),setTimeout(()=>{(0,wn.o5)(MB.__store__.getState())&&(console.error("[Ruler line unexpect dragging state]"),xo({type:"ruler:update:state",payload:{isDraggingLine:!1}}))})}),(0,U.A)(this,"handleVisibilityChange",()=>{document.visibilityState==="hidden"&&this.props.dispatch({type:"update:screenContainer:state",payload:{domVisibilityState:!1}})}),(0,U.A)(this,"handleMouseMove",jn=>{const{clientX:xo,clientY:jo}=jn;Object.assign(MB,{clientX:xo,clientY:jo});const{dispatch:Qo}=this.props;Qo({type:"entry:screenContainer:mousemove",payload:{event:jn}}),Qo({type:Vn.k.EntryKey["entry:draft:screen:mousemove"],payload:{event:jn,from:"design"}})}),(0,U.A)(this,"handleDoubleClick",jn=>this.props.dispatch({type:"entry:screenContainer:mousedown:hit",payload:{event:jn,rehitForContextMenu:!1,gas:1}})),(0,U.A)(this,"handleScaleAndOffsetChange",(jn,xo,jo)=>{this.props.dispatch({type:"design:set:scale-and-offset",payload:{scale:jo,offset:{x:jn,y:xo}}}),this.props.dispatch({type:"entry:update:ruler"})}),(0,U.A)(this,"handleOffsetChange",(jn,xo)=>this.props.dispatch({type:"entry:set:canvas:offset",payload:{offset:{x:jn,y:xo}}})),(0,U.A)(this,"handleScroll",jn=>{jn.target.scrollTop=0,jn.target.scrollLeft=0}),(0,U.A)(this,"handleDrop",jn=>this.props.dispatch({type:"entry:screenContainer:drop",payload:{e:jn}})),this.debounceMouseMove()}UNSAFE_componentWillUpdate(Mo){var jn,xo;((jn=Mo.currentScreen)==null?void 0:jn.cid)!==((xo=this.props.currentScreen)==null?void 0:xo.cid)&&this.debounceMouseMove()}componentDidMount(){document.addEventListener("visibilitychange",this.handleVisibilityChange)}componentWillUnmount(){document.removeEventListener("visibilitychange",this.handleVisibilityChange)}preventDefault(Mo){MB.f.editing||Mo.preventDefault()}handleDragOver(Mo){Mo.stopPropagation(),Mo.preventDefault(),Mo.nativeEvent.dataTransfer.dropEffect="copy"}render(){const{theme:Mo,canvasOffset:jn,isHighlight:xo,isDraggingCanvas:jo,isInCommentMode:Qo,isInAIComponentSnapshotCreateMode:cn,isDirectlyEditingProjectMain:In,currentScreen:tn,onlyView:Jt,isCommunityComboPreview:Ln,isEmptyScreen:Xn}=this.props;if(Xn)return null;const Dn=MB.getScale(),go=Dn/100,{x:Uo,y:Ho}=jn,ua="translate("+Math.round(Uo)+"px, "+Math.round(Ho)+"px)",la={transform:ua},To={transform:ua+" scale("+go+")"},Ia=w()("screen-container",{"is-community-combo-preview":Ln}),ya={backgroundColor:xo?Mo===It.Sx.DARK?"#454647":"rgba(31, 41, 46, 0.3)":(0,Q.t0)((0,It.t6)(Mo,tn))};return(0,Je.jsxs)(dt,{id:"screens",style:ya,className:Ia,onMouseUp:this.handleMouseUp,onMouseDown:this.handleMouseDown,onContextMenu:this.preventDefault,onDragOver:this.handleDragOver,onDrop:this.handleDrop,onMouseMove:this.debouncedMouseMove,onDoubleClick:this.handleDoubleClick,children:[(0,Je.jsxs)($,{isInAIComponentSnapshotCreateMode:cn,isInCommentMode:Qo,isDraggingCanvas:jo,x:Uo,y:Ho,scale:Dn,isDisabled:jo,onScaleAndOffsetChange:this.handleScaleAndOffsetChange,onOffsetChange:this.handleOffsetChange,onScroll:this.handleScroll,children:[(0,Je.jsxs)("div",{className:"zoom-area",style:To,children:[(0,Je.jsx)(Ye,{}),!Jt&&(0,Je.jsx)(sn,{isDirectlyEditingProjectMain:In,currentScreen:tn})]}),(0,Je.jsxs)("div",{className:"screen-viewport",style:la,children:[Jt?(0,Je.jsx)(o.qR,{}):(0,Je.jsx)(o.q,{}),(0,Je.jsx)(Nt,{})]},"1")]}),(0,Je.jsx)(o.rK,{}),!Jt&&(0,Je.jsx)(o.MH,{}),(0,Je.jsx)(o.$j,{})]})}}const zn=(0,J.Mz)([N.ER,N.AW,ne.O4,N.PL,N.Ur,l.jx,l.pH,te.r,T.C,q.sI,N.lh,B.y1],(On,Mo,jn,xo,jo,Qo,cn,In,tn,Jt,Ln,Xn)=>{let{isEditingProjectMain:Dn,isEditingBasket:go,isDirectlyEditingBasket:Uo,isEditingCombo:Ho}=In,{isEmptyScreen:ua}=tn;const la=go||Uo,To=Qo===He.qi.OnlyView,Ia=cn&&(xo==null?void 0:xo.category)==="combo_group";return{isHighlight:la,canvasOffset:On,isDraggingCanvas:Mo,theme:jn,isDirectlyEditingProjectMain:Dn,rootProject:xo,currentScreen:jo,onlyView:To,isCommunityComboPreview:Ia,isEmptyScreen:ua,isInCommentMode:Jt,editingCid:Ln,isInAIComponentSnapshotCreateMode:Xn}}),ko=(0,I.Ng)(On=>zn(On))(Hn)},98722:(Qn,qe,s)=>{"use strict";s.d(qe,{B8:()=>Q,MQ:()=>y,_k:()=>ze,aW:()=>U,tE:()=>C,xk:()=>M});var r=s(78401),I=s(25997),J=s(20089),N=s(59025),T=s(70248),te=s(61790);const q=[J.x.WWrap,J.x.Canvas],ne=me=>q.includes(me.hotAttr.type)||me.hotAttr.type==="wBasket"&&me.hotAttr.basket==="bMuban",B=me=>sdkStore.getSubHotItemList(me).sort((Se,Me)=>Me.hotAttr.zIndex-Se.hotAttr.zIndex),l=(me,Se)=>{const Me=[],De=Se(me);De&&Me.push(De);const{key:tt,hotAttr:{type:at,bunch:ht,basket:Je},sub:$}=me,mt=ht!=null?ht:at;if(q.includes(mt))B(tt).forEach(yt=>{let{key:Le}=yt;return Me.push(...l(sdkStore.getHotItem(Le),Se))});else if(mt===J.x.WBasket&&Je==="bMuban"){const yt=$[0];yt&&B(yt).forEach(Le=>{let{key:He}=Le;return Me.push(...l(sdkStore.getHotItem(He),Se))})}return Me},U=me=>B(me).filter(Me=>Me.hotAttr.bunch!==J.x.RbPage).reduce((Me,De)=>(Me.push(...l(De,tt=>tt.key)),Me),[]),C=(me,Se,Me)=>{const De=document.querySelector("#layer-scroll-list"),tt=document.querySelector("#mb-enabled-layer-list"),at=Array.from(tt.querySelectorAll(".rn-content-item")),ht=De.getBoundingClientRect(),Je=tt.getBoundingClientRect(),$=[],mt={},yt=[],Le=new Set(Se);for(const _t of Se)if(!(0,T.OO)(_t)&&!sdkStore.isTrashed(_t)){const Oe=sdkStore.findUpHotItemList(_t).slice(1).map(sn=>sn.key).filter(sn=>Le.has(sn));Oe!=null&&Oe.length||yt.push(_t)}let He=1;const ye=yt.some(_t=>{var nn;return((nn=sdkStore.getHotItem(_t))==null||(nn=nn.hotAttr)==null?void 0:nn.type)===J.x.Canvas}),je=me.filter(_t=>_t.node.hotAttr.type===J.x.Canvas).map(_t=>{let{key:nn}=_t;return nn}),ot=new Set(yt),we=[];me.forEach(_t=>{l(_t.node,nn=>{const{key:Oe,sub:sn,hotAttr:{type:It}}=nn;ot.has(Oe)&&sn.length>0&&q.includes(It)&&sn.forEach(Pt=>ot.add(Pt)),yt.includes(Oe)&&sn.length>0&&q.includes(It)&&we.push(nn)})});for(const _t of we){const nn=sdkStore.findUpHotItemList(_t.key).filter(Oe=>Oe.hotAttr.type!=="rResBunch").length;He=Math.max(nn,He)}const $e=_t=>{if(!_t)return!1;const{hotAttr:{type:nn,bunch:Oe}}=_t,sn=Oe!=null?Oe:nn,It=sdkStore.findUpHotItemList(_t.key).map(Pt=>{let{key:dt}=Pt;return dt});return ye?sn===J.x.WWrap?!1:!je.some(Pt=>It.includes(Pt)):q.concat(J.x.RbPage).includes(sn)},ge=_t=>sdkStore.getSubHotItemList(_t).sort((nn,Oe)=>Oe.hotAttr.zIndex-nn.hotAttr.zIndex),Ze=_t=>{const{sup:nn,key:Oe}=_t,sn=ge(nn);return{isLastChild:sn[sn.length-1].key===Oe}},W=_t=>{var nn;return(_t==null||(nn=_t.hotAttr)==null?void 0:nn.type)==="rResBunch"||!(_t!=null&&_t.sup)?null:sdkStore.getHotItem(_t.sup)},an=at.length;return at.forEach((_t,nn)=>{const Oe=_t.dataset.cid,sn=sdkStore.getHotItem(Oe),{sub:It,sup:Pt,hotAttr:{type:dt}}=sn,Vn=_t.querySelector(":scope > .rn-list-item"),o=Vn.getBoundingClientRect(),Gn=(0,r.yB)(Vn),xt=_t.getBoundingClientRect(),Ot={top:o.top-Je.top,left:o.left-Je.left,width:o.width,height:o.height},wt={top:Gn.top-Je.top,left:Gn.left-Je.left,width:Gn.width,height:Gn.height},Kt={top:xt.top-Je.top,left:wt.left,width:wt.width,height:xt.height};mt[Oe]={rect:Ot,contentRect:wt,treeRect:Kt};const{left:fe,top:bt,width:un,height:gt}=Ot,Wt=fe+un,Un=bt+gt/3,Jn=bt+gt/3*2,Yt=bt+gt;if(ot.has(Oe)){$.push({cid:Oe,type:null,min:{x:fe,y:bt},max:{x:Wt,y:Yt},isValid:!1});return}const rt=sdkStore.getHotItem(Pt),An=$e(rt)&&!(0,N.td)([Pt]);nn===0&&$.push({cid:Oe,type:"prevSibling",parentCid:Pt,min:{x:fe,y:bt},max:{x:Wt,y:Un},isValid:An}),nn===an-1&&$.push({cid:Oe,type:"nextSibling",parentCid:Pt,min:{x:fe,y:Yt},max:{x:Wt,y:ht.height},isValid:An});const Nt=$e(sn)&&!(0,N.td)([Oe]);q.includes(dt)&&$.push({cid:Oe,type:"firstChild",parentCid:Oe,min:{x:fe,y:bt},max:{x:Wt,y:Jn},isValid:Nt});const jt=Me.has(Oe);if(q.includes(dt)&&jt&&It.length){const kn=ge(Oe)[0].key;$.push({cid:kn,type:"prevSibling",parentCid:Oe,min:{x:fe,y:Jn},max:{x:Wt,y:Yt},isValid:Nt})}else{const $t=rt&&Ze(sn).isLastChild,kn=$e(rt)&&!(0,N.td)([Pt]);if($t){$.push({cid:Oe,type:"nextSibling",parentCid:Pt,min:{x:mt[Oe].contentRect.left,y:Jn},max:{x:Wt,y:Yt},isValid:kn});let Kn=sn,dn=null;for(;Kn&&((vn=Kn)==null||(vn=vn.hotAttr)==null?void 0:vn.bunch)!==J.x.RbPage&&Ze(Kn).isLastChild&&(dn=W(Kn));){var vn,Dt;const ft=W(dn);if(!ft)break;const Lt=$e(ft)&&!(0,N.td)([ft==null?void 0:ft.key]);mt[dn.key]&&$.push({cid:dn.key,type:"nextSibling",parentCid:dn.sup,min:{x:mt[dn.key].contentRect.left,y:Jn},max:{x:(Dt=mt[Kn.key])==null||(Dt=Dt.contentRect)==null?void 0:Dt.left,y:Yt},isValid:Lt}),Kn=dn}}else $.push({cid:Oe,type:"nextSibling",parentCid:Pt,min:{x:fe,y:Jn},max:{x:Wt,y:Yt},isValid:kn})}}),{matchDataList:$,containerRect:ht,rectQueryMap:mt,pathSelectedIds:yt}},M=me=>{const Se=MB.__store__.getState(),Me=(0,I.UV)(Se),De=[],tt=at=>{const ht=[];return Me.getRenderableSubHotItems(at.key).forEach(Je=>{ht.push(Je.key,...tt(Je))}),ht};return me&&me.length>0&&me.map(at=>{const ht=Me.getHotItem(at);!ht||(ht==null?void 0:ht.hotAttr.bunch)===J.x.RbPage||De.push(...tt(ht))}),new Set(De)},w=(me,Se)=>me.findIndex(Me=>Me===Se),y=(me,Se)=>{const Me=me.length,De=me[Me-1]&&sdkStore.getHotItem(me[Me-1]);let tt=!1;De&&(tt=ne(De));const at=tt?l(De,Le=>Le.key):[],ht=me.concat(at),Je=[];let $=[];me.sort((Le,He)=>w(Se,Le)-w(Se,He)).forEach((Le,He)=>{const ye=Je.includes(Le);if((He===0||He===Me-1)&&!ye&&$.push(Le),!ye){const je=sdkStore.getHotItem(Le);if(!je)return;if(ne(je)){const we=l(je,ge=>ge.key);we.every(ge=>ht.includes(ge))&&Je.push(...we)}$.push(Le)}}),$=Array.from(new Set($));const mt=w(Se,$[0]),yt=w(Se,$[$.length-1]);return{rangeStart:mt,rangeEnd:yt,selected:$}},j=[J.x.WSticky,J.x.WTear],Q=me=>Se=>{const{type:Me}=Se.hotAttr;return!j.includes(Me)&&(me?(0,te.KD)(Se).toLowerCase().includes(me):!0)},ze=function(me,Se,Me,De){De===void 0&&(De=!0);const tt=Me(me),{key:at,hotAttr:{type:ht}}=me;if(!De)return tt?{key:at,node:me,children:[]}:void 0;const $=(ht===J.x.WMind?[]:Se.getRenderableSubHotItems?Se.getRenderableSubHotItems(me,!0):Se.getSubHotItemList(at).sort((mt,yt)=>mt.hotAttr.order-yt.hotAttr.order)).map(mt=>ze(mt,Se,Me)).filter(Boolean);if(tt||$.length)return{key:at,node:me,children:$}}},99863:(Qn,qe,s)=>{"use strict";s.d(qe,{j:()=>fe});var r=s(38502),I=s(18381),J=s(53732),N=s.n(J),T=s(87332),te=s(17307),q=s(67787),ne=s(78915),B=s(70812),l=Object.defineProperty,U=Object.defineProperties,C=Object.getOwnPropertyDescriptors,M=Object.getOwnPropertySymbols,w=Object.prototype.hasOwnProperty,y=Object.prototype.propertyIsEnumerable,j=(gt,Wt,Un)=>Wt in gt?l(gt,Wt,{enumerable:!0,configurable:!0,writable:!0,value:Un}):gt[Wt]=Un,Q=(gt,Wt)=>{for(var Un in Wt||(Wt={}))w.call(Wt,Un)&&j(gt,Un,Wt[Un]);if(M)for(var Un of M(Wt))y.call(Wt,Un)&&j(gt,Un,Wt[Un]);return gt},ze=(gt,Wt)=>U(gt,C(Wt)),me=(gt,Wt)=>{var Un={};for(var Jn in gt)w.call(gt,Jn)&&Wt.indexOf(Jn)<0&&(Un[Jn]=gt[Jn]);if(gt!=null&&M)for(var Jn of M(gt))Wt.indexOf(Jn)<0&&y.call(gt,Jn)&&(Un[Jn]=gt[Jn]);return Un},Me=(0,r.forwardRef)((gt,Wt)=>{var Un=gt,{size:Jn,spin:Yt,style:rt}=Un,An=me(Un,["size","spin","style"]);const Nt=Q(Q({width:Jn||"var(--x-icon-size, 1em)",height:Jn||"var(--x-icon-size, 1em)",animation:Yt?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),rt);return r.createElement("svg",ze(Q({ref:Wt,style:Nt},An),{width:"28",height:"28",viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),r.createElement("rect",{width:"28",height:"28",rx:"6",fill:"url(#paint0_linear_3186_161)"}),r.createElement("path",{d:"M8.46045 17.1664V16.3748C8.46045 15.0632 9.52368 14 10.8352 14H17.168C18.4796 14 19.5428 15.0632 19.5428 16.3748V17.1664",stroke:"white",strokeWidth:"1.74152",strokeLinecap:"round"}),r.createElement("foreignObject",{x:"1.36961",y:"14.0347",width:"14.1787",height:"11.8037"},r.createElement("div",{xmlns:"http://www.w3.org/1999/xhtml",style:{backdropFilter:"blur(1.57px)",height:"100%",width:"100%"}})),r.createElement("g",{filter:"url(#filter0_i_3186_161)",dataFigmaBgBlurRadius:"3.13136"},r.createElement("rect",{x:"5.37174",y:"18.0368",width:"6.17447",height:"3.79968",rx:"1.50404",stroke:"white",strokeWidth:"1.74152"})),r.createElement("foreignObject",{x:"12.4536",y:"14.0347",width:"14.1787",height:"11.8037"},r.createElement("div",{xmlns:"http://www.w3.org/1999/xhtml",style:{backdropFilter:"blur(1.57px)",height:"100%",width:"100%"}})),r.createElement("g",{filter:"url(#filter1_i_3186_161)",dataFigmaBgBlurRadius:"3.13136"},r.createElement("rect",{x:"16.4557",y:"18.0368",width:"6.17447",height:"3.79968",rx:"1.50404",stroke:"white",strokeWidth:"1.74152"})),r.createElement("path",{d:"M14.0005 11.625L14.0005 13.2082",stroke:"white",strokeWidth:"1.74152",strokeLinecap:"square"}),r.createElement("foreignObject",{x:"6.9099",y:"2.16112",width:"14.1787",height:"11.8037"},r.createElement("div",{xmlns:"http://www.w3.org/1999/xhtml",style:{backdropFilter:"blur(1.57px)",clipPath:"url(#bgblur_0_3186_161_clip_path)",height:"100%",width:"100%"}})),r.createElement("rect",{dataFigmaBgBlurRadius:"3.13136",x:"10.0413",y:"5.29248",width:"7.91599",height:"5.5412",rx:"2.3748",fill:"white",fillOpacity:"0.6"}),r.createElement("defs",null,r.createElement("filter",{id:"filter0_i_3186_161",x:"1.36961",y:"14.0347",width:"14.1787",height:"11.8037",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},r.createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),r.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),r.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),r.createElement("feOffset",{dy:"0.835031"}),r.createElement("feGaussianBlur",{stdDeviation:"2.50509"}),r.createElement("feComposite",{in2:"hardAlpha",operator:"arithmetic",k2:"-1",k3:"1"}),r.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.5 0"}),r.createElement("feBlend",{mode:"normal",in2:"shape",result:"effect1_innerShadow_3186_161"})),r.createElement("filter",{id:"filter1_i_3186_161",x:"12.4536",y:"14.0347",width:"14.1787",height:"11.8037",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},r.createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),r.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),r.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),r.createElement("feOffset",{dy:"0.835031"}),r.createElement("feGaussianBlur",{stdDeviation:"2.50509"}),r.createElement("feComposite",{in2:"hardAlpha",operator:"arithmetic",k2:"-1",k3:"1"}),r.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.5 0"}),r.createElement("feBlend",{mode:"normal",in2:"shape",result:"effect1_innerShadow_3186_161"})),r.createElement("clipPath",{id:"bgblur_0_3186_161_clip_path",transform:"translate(-6.9099 -2.16112)"},r.createElement("rect",{x:"10.0413",y:"5.29248",width:"7.91599",height:"5.5412",rx:"2.3748"})),r.createElement("linearGradient",{id:"paint0_linear_3186_161",x1:"36.75",y1:"41.5625",x2:"2.625",y2:"1.75",gradientUnits:"userSpaceOnUse"},r.createElement("stop",{stopColor:"#FF409A"}),r.createElement("stop",{offset:"1",stopColor:"#FFBE33"}))))}),De=Object.defineProperty,tt=Object.defineProperties,at=Object.getOwnPropertyDescriptors,ht=Object.getOwnPropertySymbols,Je=Object.prototype.hasOwnProperty,$=Object.prototype.propertyIsEnumerable,mt=(gt,Wt,Un)=>Wt in gt?De(gt,Wt,{enumerable:!0,configurable:!0,writable:!0,value:Un}):gt[Wt]=Un,yt=(gt,Wt)=>{for(var Un in Wt||(Wt={}))Je.call(Wt,Un)&&mt(gt,Un,Wt[Un]);if(ht)for(var Un of ht(Wt))$.call(Wt,Un)&&mt(gt,Un,Wt[Un]);return gt},Le=(gt,Wt)=>tt(gt,at(Wt)),He=(gt,Wt)=>{var Un={};for(var Jn in gt)Je.call(gt,Jn)&&Wt.indexOf(Jn)<0&&(Un[Jn]=gt[Jn]);if(gt!=null&&ht)for(var Jn of ht(gt))Wt.indexOf(Jn)<0&&$.call(gt,Jn)&&(Un[Jn]=gt[Jn]);return Un},je=(0,r.forwardRef)((gt,Wt)=>{var Un=gt,{size:Jn,spin:Yt,style:rt}=Un,An=He(Un,["size","spin","style"]);const Nt=yt(yt({width:Jn||"var(--x-icon-size, 1em)",height:Jn||"var(--x-icon-size, 1em)",animation:Yt?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),rt);return r.createElement("svg",Le(yt({ref:Wt,style:Nt},An),{width:"28",height:"28",viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),r.createElement("rect",{width:"28",height:"28",rx:"6",fill:"url(#paint0_linear_3186_168)"}),r.createElement("path",{d:"M19.4902 15.0801C19.6509 14.9194 19.892 14.9194 20.0527 15.0801L21.8203 17.0889C21.9004 17.1689 21.9004 17.1691 21.9004 17.249C21.9004 17.4097 21.8199 17.4902 21.6592 17.4902H20.6152C20.6152 20.0615 18.5254 22.1514 15.9541 22.1514H15.6328C15.3918 22.1513 15.2314 21.99 15.2314 21.749V20.624C15.2316 20.3832 15.3919 20.2227 15.6328 20.2227H15.9541C17.4808 20.2227 18.7666 18.9369 18.7666 17.4102H17.8828C17.8025 17.4101 17.7217 17.3298 17.7217 17.4102C17.6417 17.3298 17.6417 17.1692 17.7217 17.0889L19.4902 15.0801ZM11.5146 14.5381C12.624 14.5382 13.5234 15.4375 13.5234 16.5469V20.0615C13.5234 21.1709 12.624 22.0702 11.5146 22.0703H7.99902C6.8896 22.0703 5.99023 21.171 5.99023 20.0615V16.5469C5.99023 15.4374 6.8896 14.5381 7.99902 14.5381H11.5146ZM12.168 6C12.4088 6.0001 12.5692 6.1606 12.5693 6.40137V7.44629C12.5693 7.68728 12.4089 7.84756 12.168 7.84766H11.8467C10.3201 7.84766 9.03436 9.13359 9.03418 10.6602H9.91797C9.99816 10.6602 9.99798 10.741 10.0781 10.8213C10.1585 10.9016 10.1585 11.0622 10.0781 11.1426L8.31055 13.1514C8.14984 13.312 7.90872 13.312 7.74805 13.1514L5.98047 11.1426C5.90017 11.0623 5.90039 11.0618 5.90039 10.9814C5.90054 10.8209 5.98104 10.6602 6.1416 10.6602H7.18555C7.18572 8.089 9.27549 6 11.8467 6H12.168Z",fill:"white"}),r.createElement("path",{d:"M14.3281 8.00883C14.3281 6.89938 15.2275 6 16.337 6H19.8524C20.9618 6 21.8612 6.89938 21.8612 8.00883V11.5243C21.8612 12.6337 20.9618 13.5331 19.8524 13.5331H16.337C15.2275 13.5331 14.3281 12.6337 14.3281 11.5243V8.00883Z",fill:"white",fillOpacity:"0.7"}),r.createElement("defs",null,r.createElement("linearGradient",{id:"paint0_linear_3186_168",x1:"26.25",y1:"38.0625",x2:"3.5",y2:"-2.1875",gradientUnits:"userSpaceOnUse"},r.createElement("stop",{stopColor:"#41F4FF"}),r.createElement("stop",{offset:"1",stopColor:"#699CFF"}))))}),ot=Object.defineProperty,we=Object.defineProperties,$e=Object.getOwnPropertyDescriptors,ge=Object.getOwnPropertySymbols,Ze=Object.prototype.hasOwnProperty,W=Object.prototype.propertyIsEnumerable,an=(gt,Wt,Un)=>Wt in gt?ot(gt,Wt,{enumerable:!0,configurable:!0,writable:!0,value:Un}):gt[Wt]=Un,_t=(gt,Wt)=>{for(var Un in Wt||(Wt={}))Ze.call(Wt,Un)&&an(gt,Un,Wt[Un]);if(ge)for(var Un of ge(Wt))W.call(Wt,Un)&&an(gt,Un,Wt[Un]);return gt},nn=(gt,Wt)=>we(gt,$e(Wt)),Oe=(gt,Wt)=>{var Un={};for(var Jn in gt)Ze.call(gt,Jn)&&Wt.indexOf(Jn)<0&&(Un[Jn]=gt[Jn]);if(gt!=null&&ge)for(var Jn of ge(gt))Wt.indexOf(Jn)<0&&W.call(gt,Jn)&&(Un[Jn]=gt[Jn]);return Un},It=(0,r.forwardRef)((gt,Wt)=>{var Un=gt,{size:Jn,spin:Yt,style:rt}=Un,An=Oe(Un,["size","spin","style"]);const Nt=_t(_t({width:Jn||"var(--x-icon-size, 1em)",height:Jn||"var(--x-icon-size, 1em)",animation:Yt?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),rt);return r.createElement("svg",nn(_t({ref:Wt,style:Nt},An),{width:"28",height:"28",viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),r.createElement("rect",{width:"28",height:"28",rx:"6",fill:"url(#paint0_linear_3186_173)"}),r.createElement("path",{d:"M11.7118 9.09843C11.7118 10.2636 10.7672 11.2081 9.60209 11.2081C8.43696 11.2081 7.49243 10.2636 7.49243 9.09843C7.49243 7.9333 8.43696 6.98877 9.60209 6.98877C10.7672 6.98877 11.7118 7.9333 11.7118 9.09843Z",fill:"white"}),r.createElement("path",{opacity:"0.5",d:"M5.08946 19.535L8.95057 15.2449C9.40441 14.7406 10.1951 14.7406 10.6489 15.2449L14.5101 19.535C15.1717 20.2702 14.65 21.4417 13.6609 21.4417H5.93865C4.94954 21.4417 4.42778 20.2702 5.08946 19.535Z",fill:"white"}),r.createElement("path",{d:"M10.8399 19.5274L16.0972 13.7921C16.55 13.2981 17.3288 13.2981 17.7816 13.7921L23.0389 19.5274C23.7106 20.2602 23.1908 21.4418 22.1967 21.4418H11.682C10.688 21.4418 10.1682 20.2602 10.8399 19.5274Z",fill:"white"}),r.createElement("defs",null,r.createElement("linearGradient",{id:"paint0_linear_3186_173",x1:"-4.23752e-08",y1:"-2.625",x2:"24.0625",y2:"32.8125",gradientUnits:"userSpaceOnUse"},r.createElement("stop",{stopColor:"#A56DFF"}),r.createElement("stop",{offset:"1",stopColor:"#7CB2FF"}))))}),Pt=s(72214);const dt=()=>[{key:"drawio",classname:"drawio",title:I18N.LeftSidePanel.graphModal.graph.title,desc:I18N.LeftSidePanel.graphModal.graph.desc,icon:(0,Pt.jsx)(Me,{size:28}),disabled:!1},...ENV.IS_ON_PREMISES?[]:[{key:"htmlimport",classname:"preview",title:"HTML\u8F6C\u58A8\u5200",desc:"\u5C06HTML\u8F6C\u6362\u4E3A\u53EF\u7F16\u8F91\u7684\u9875\u9762",icon:(0,Pt.jsx)(je,{size:28}),disabled:!1},{key:"image2prototype",classname:"image2prototype",title:"\u56FE\u7247\u8F6C\u539F\u578B",desc:"\u4E0A\u4F20\u56FE\u7247\uFF0C\u4E00\u952E\u8F6C\u4E3A\u539F\u578B\u754C\u9762",icon:(0,Pt.jsx)(It,{size:28}),disabled:!1}]],Vn="Ai_image_to_proto_db",o=1,Gn="file_data",xt=()=>new Promise((gt,Wt)=>{const Un=indexedDB.open(Vn,o);Un.onerror=()=>Wt(Un.error),Un.onsuccess=()=>gt(Un.result),Un.onupgradeneeded=Jn=>{const Yt=Jn.target.result;Yt.objectStoreNames.contains(Gn)||Yt.createObjectStore(Gn)}}),Ot=async(gt,Wt)=>{try{const Yt=(await xt()).transaction([Gn],"readwrite").objectStore(Gn);return new Promise((rt,An)=>{const Nt=Yt.put(Wt,gt);Nt.onsuccess=()=>rt(),Nt.onerror=()=>An(Nt.error)})}catch(Un){console.error("IndexedDB \u5B58\u50A8\u5931\u8D25:",Un)}},wt=async()=>{try{await(await xt()).transaction([Gn],"readwrite").objectStore(Gn).clear()}catch(gt){console.error("IndexedDB \u6E05\u7406\u5931\u8D25:",gt)}},Kt=async gt=>{const Wt=document.createElement("input");return Wt.type="file",Wt.accept=".jpeg,.jpg,.png,.gif,.webp",Wt.multiple=!0,new Promise(Un=>{Wt.onchange=async Jn=>{const Yt=Array.from(Jn.target.files||[]);if(Yt.length===0){Un(!1);return}const rt=Yt.slice(0,10);try{const An=rt,Nt="ai_image_to_proto_files_"+Date.now()+"_"+Math.random().toString(36).substring(2,9);try{await wt(),await Ot(Nt,An),gt&&gt(Nt)}catch(jt){gt&&gt("")}Un(!0)}catch(An){Un(!1)}},Wt.click()})},fe=gt=>{let{direction:Wt="right",portalClassName:Un="#left-slide-panel .left-panel-box"}=gt;const[Jn,Yt]=(0,r.useState)(!1),rt=(0,I.wA)(),An=Wt==="left",Nt=Dt=>{Yt(Dt)},jt=Dt=>{rt(ne.GO.updateAIHTMLAgentType("prototyping")),rt(ne.GO.enableAIHTML()),rt(ne.GO.expandAIHTML()),rt(ne.GO.updateAIHTMLFileStorageKey(Dt)),MB.commonGuideHelper.hideAllGuides(),B.U4.AIOpenSourceTrack("AIHTML")},vn=Dt=>{Dt==="drawio"&&rt({type:"entry:widget:graph:edit",payload:{action:"new-widget"}}),Dt==="htmlimport"&&rt({type:"htmlImportPanel:set:show",payload:{show:!0}}),Dt==="image2prototype"&&Kt($t=>jt($t))};return(0,Pt.jsx)(Pt.Fragment,{children:(0,Pt.jsx)(bt,{direction:Wt,className:N()("more-graph-dropdown",{"is-open":Jn}),renderOpener:(0,Pt.jsxs)("div",{className:N()("more-opener"),children:[(0,Pt.jsx)(te.C,{name:Jn?"left_panel/dropdown/more/selected":"left_panel/dropdown/more",className:"item-icon",size:32}),(0,Pt.jsx)("span",{className:"item-label",children:I18N.WorkspaceGuidePane.tool})]}),onClick:Nt,offsetX:An?-8:-4,renderMenu:(0,Pt.jsx)(un,{children:dt().map(Dt=>(0,Pt.jsxs)("li",{className:N()("item-menu",Dt.classname,{disabled:Dt.disabled}),onClick:()=>vn(Dt.key),children:[(0,Pt.jsx)("div",{className:"image-box",children:Dt.icon}),(0,Pt.jsxs)("div",{className:"wrap",children:[(0,Pt.jsx)("span",{className:"title",children:Dt.title}),(0,Pt.jsx)("span",{className:"desc",children:Dt.desc})]})]},Dt.key))})})})},bt=(0,q.Ay)(T.A).withConfig({displayName:"MoreGraphDropDown__StyledMoreGraphDropDown",componentId:"sc-gb2pwg-0"})(["border-radius:6px;"," .more-opener{width:100%;display:flex;flex-direction:column;align-content:center;justify-content:center;align-items:center;cursor:pointer;position:relative;color:",";.item-label{font-size:12px;font-weight:400;line-height:12px;white-space:nowrap;}.item-icon{width:32px;height:32px;}}&:not(.is-open):hover{background-color:",";}&.is-open{background:",";}"],gt=>gt.direction==="right"&&" width: 38px;\n height: 52px;\n margin-top: 8px;\n ",gt=>gt.theme.color_text_L1,gt=>gt.direction==="left"?gt.theme.color_navigation_hover:gt.theme.color_navigation_active,gt=>gt.theme.color_navigation_active),un=q.Ay.ul.withConfig({displayName:"MoreGraphDropDown__StyledMoreGraphMenu",componentId:"sc-gb2pwg-1"})(["width:240px;background:",";box-shadow:",";border-radius:10px;color:",";border:1px solid ",";padding:16px;display:flex;gap:10px;flex-direction:column;li.item-menu{list-style:none;display:flex;border:1px solid ",";height:48px;border-radius:8px;align-items:center;padding-left:10px;.image-box{width:28px;height:28px;margin-right:10px;}&.disabled{.wrap .title{color:",";}}.icon-box{width:32px;height:32px;background:",";border:1px solid ",";border-radius:8px;display:flex;align-items:center;justify-content:center;margin-right:12px;}.wrap{display:flex;font-size:12px;line-height:16px;display:flex;flex-direction:column;.title{font-weight:500;color:",";}.desc{color:",";font-size:11px;}}&:not(.disabled):hover{cursor:pointer;background:",";border-color:",";}}"],gt=>gt.theme.color_bg_white,gt=>gt.theme.shadow_m,gt=>gt.theme.color_text_L0,gt=>gt.theme.color_bg_border_01,gt=>gt.theme.color_bg_border_01,gt=>gt.theme.color_text_L3,gt=>gt.theme.color_bg_white,gt=>gt.theme.color_bg_border_01,gt=>gt.theme.color_text_L1,gt=>gt.theme.color_text_L3,gt=>gt.theme.color_btn_secondary_hover,gt=>gt.theme.color_btn_secondary_hover)}}]);
//# sourceMappingURL=3.h4vam-vendor-5567a1235ac230e00561.js.map